1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for ntp 4.2.8p5. 4# 5# Report bugs to <http://bugs.ntp.org./>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 9# 10# 11# This configure script is free software; the Free Software Foundation 12# gives unlimited permission to copy, distribute and modify it. 13## -------------------- ## 14## M4sh Initialization. ## 15## -------------------- ## 16 17# Be more Bourne compatible 18DUALCASE=1; export DUALCASE # for MKS sh 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32esac 33fi 34 35 36as_nl=' 37' 38export as_nl 39# Printing a long string crashes Solaris 7 /usr/bin/printf. 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43# Prefer a ksh shell builtin over an external printf program on Solaris, 44# but without wasting forks for bash or zsh. 45if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83 84# IFS 85# We need space, tab and new line, in precisely that order. Quoting is 86# there to prevent editors from complaining about space-tab. 87# (If _AS_PATH_WALK were called with IFS unset, it would disable word 88# splitting by setting IFS to empty value.) 89IFS=" "" $as_nl" 90 91# Find who we are. Look in the path if we contain no directory separator. 92as_myself= 93case $0 in #(( 94 *[\\/]* ) as_myself=$0 ;; 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96for as_dir in $PATH 97do 98 IFS=$as_save_IFS 99 test -z "$as_dir" && as_dir=. 100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 106# We did not find ourselves, most probably we were run as `sh COMMAND' 107# in which case we are not to be found in the path. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116# Unset variables that we do not need and which cause bugs (e.g. in 117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 118# suppresses any "Segmentation fault" message there. '((' could 119# trigger a bug in pdksh 5.2.14. 120for as_var in BASH_ENV ENV MAIL MAILPATH 121do eval test x\${$as_var+set} = xset \ 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123done 124PS1='$ ' 125PS2='> ' 126PS4='+ ' 127 128# NLS nuisances. 129LC_ALL=C 130export LC_ALL 131LANGUAGE=C 132export LANGUAGE 133 134# CDPATH. 135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136 137# Use a proper internal environment variable to ensure we don't fall 138 # into an infinite loop, continuously re-executing ourselves. 139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 140 _as_can_reexec=no; export _as_can_reexec; 141 # We cannot yet assume a decent shell, so we have to provide a 142# neutralization value for shells without unset; and this also 143# works around shells that cannot unset nonexistent variables. 144# Preserve -v and -x to the replacement shell. 145BASH_ENV=/dev/null 146ENV=/dev/null 147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 148case $- in # (((( 149 *v*x* | *x*v* ) as_opts=-vx ;; 150 *v* ) as_opts=-v ;; 151 *x* ) as_opts=-x ;; 152 * ) as_opts= ;; 153esac 154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 155# Admittedly, this is quite paranoid, since all the known shells bail 156# out after a failed `exec'. 157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 158as_fn_exit 255 159 fi 160 # We don't want this to propagate to other subprocesses. 161 { _as_can_reexec=; unset _as_can_reexec;} 162if test "x$CONFIG_SHELL" = x; then 163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 164 emulate sh 165 NULLCMD=: 166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 167 # is contrary to our usage. Disable this feature. 168 alias -g '\${1+\"\$@\"}'='\"\$@\"' 169 setopt NO_GLOB_SUBST 170else 171 case \`(set -o) 2>/dev/null\` in #( 172 *posix*) : 173 set -o posix ;; #( 174 *) : 175 ;; 176esac 177fi 178" 179 as_required="as_fn_return () { (exit \$1); } 180as_fn_success () { as_fn_return 0; } 181as_fn_failure () { as_fn_return 1; } 182as_fn_ret_success () { return 0; } 183as_fn_ret_failure () { return 1; } 184 185exitcode=0 186as_fn_success || { exitcode=1; echo as_fn_success failed.; } 187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 191 192else 193 exitcode=1; echo positional parameters were not saved. 194fi 195test x\$exitcode = x0 || exit 1 196test -x / || exit 1" 197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 201test \$(( 1 + 1 )) = 2 || exit 1 202 203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 207 PATH=/empty FPATH=/empty; export PATH FPATH 208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" 210 if (eval "$as_required") 2>/dev/null; then : 211 as_have_required=yes 212else 213 as_have_required=no 214fi 215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 216 217else 218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 219as_found=false 220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 221do 222 IFS=$as_save_IFS 223 test -z "$as_dir" && as_dir=. 224 as_found=: 225 case $as_dir in #( 226 /*) 227 for as_base in sh bash ksh sh5; do 228 # Try only shells that exist, to save several forks. 229 as_shell=$as_dir/$as_base 230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 CONFIG_SHELL=$as_shell as_have_required=yes 233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 234 break 2 235fi 236fi 237 done;; 238 esac 239 as_found=false 240done 241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 243 CONFIG_SHELL=$SHELL as_have_required=yes 244fi; } 245IFS=$as_save_IFS 246 247 248 if test "x$CONFIG_SHELL" != x; then : 249 export CONFIG_SHELL 250 # We cannot yet assume a decent shell, so we have to provide a 251# neutralization value for shells without unset; and this also 252# works around shells that cannot unset nonexistent variables. 253# Preserve -v and -x to the replacement shell. 254BASH_ENV=/dev/null 255ENV=/dev/null 256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 257case $- in # (((( 258 *v*x* | *x*v* ) as_opts=-vx ;; 259 *v* ) as_opts=-v ;; 260 *x* ) as_opts=-x ;; 261 * ) as_opts= ;; 262esac 263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 264# Admittedly, this is quite paranoid, since all the known shells bail 265# out after a failed `exec'. 266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 267exit 255 268fi 269 270 if test x$as_have_required = xno; then : 271 $as_echo "$0: This script requires a shell more modern than all" 272 $as_echo "$0: the shells that I found on your system." 273 if test x${ZSH_VERSION+set} = xset ; then 274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 275 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 276 else 277 $as_echo "$0: Please tell bug-autoconf@gnu.org and 278$0: http://bugs.ntp.org./ about your system, including any 279$0: error possibly output before this message. Then install 280$0: a modern shell, or manually run the script under such a 281$0: shell if you do have one." 282 fi 283 exit 1 284fi 285fi 286fi 287SHELL=${CONFIG_SHELL-/bin/sh} 288export SHELL 289# Unset more variables known to interfere with behavior of common tools. 290CLICOLOR_FORCE= GREP_OPTIONS= 291unset CLICOLOR_FORCE GREP_OPTIONS 292 293## --------------------- ## 294## M4sh Shell Functions. ## 295## --------------------- ## 296# as_fn_unset VAR 297# --------------- 298# Portably unset VAR. 299as_fn_unset () 300{ 301 { eval $1=; unset $1;} 302} 303as_unset=as_fn_unset 304 305# as_fn_set_status STATUS 306# ----------------------- 307# Set $? to STATUS, without forking. 308as_fn_set_status () 309{ 310 return $1 311} # as_fn_set_status 312 313# as_fn_exit STATUS 314# ----------------- 315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 316as_fn_exit () 317{ 318 set +e 319 as_fn_set_status $1 320 exit $1 321} # as_fn_exit 322 323# as_fn_mkdir_p 324# ------------- 325# Create "$as_dir" as a directory, including parents if necessary. 326as_fn_mkdir_p () 327{ 328 329 case $as_dir in #( 330 -*) as_dir=./$as_dir;; 331 esac 332 test -d "$as_dir" || eval $as_mkdir_p || { 333 as_dirs= 334 while :; do 335 case $as_dir in #( 336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 337 *) as_qdir=$as_dir;; 338 esac 339 as_dirs="'$as_qdir' $as_dirs" 340 as_dir=`$as_dirname -- "$as_dir" || 341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 342 X"$as_dir" : 'X\(//\)[^/]' \| \ 343 X"$as_dir" : 'X\(//\)$' \| \ 344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 345$as_echo X"$as_dir" | 346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 347 s//\1/ 348 q 349 } 350 /^X\(\/\/\)[^/].*/{ 351 s//\1/ 352 q 353 } 354 /^X\(\/\/\)$/{ 355 s//\1/ 356 q 357 } 358 /^X\(\/\).*/{ 359 s//\1/ 360 q 361 } 362 s/.*/./; q'` 363 test -d "$as_dir" && break 364 done 365 test -z "$as_dirs" || eval "mkdir $as_dirs" 366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 367 368 369} # as_fn_mkdir_p 370 371# as_fn_executable_p FILE 372# ----------------------- 373# Test if FILE is an executable regular file. 374as_fn_executable_p () 375{ 376 test -f "$1" && test -x "$1" 377} # as_fn_executable_p 378# as_fn_append VAR VALUE 379# ---------------------- 380# Append the text in VALUE to the end of the definition contained in VAR. Take 381# advantage of any shell optimizations that allow amortized linear growth over 382# repeated appends, instead of the typical quadratic growth present in naive 383# implementations. 384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 385 eval 'as_fn_append () 386 { 387 eval $1+=\$2 388 }' 389else 390 as_fn_append () 391 { 392 eval $1=\$$1\$2 393 } 394fi # as_fn_append 395 396# as_fn_arith ARG... 397# ------------------ 398# Perform arithmetic evaluation on the ARGs, and store the result in the 399# global $as_val. Take advantage of shells that can avoid forks. The arguments 400# must be portable across $(()) and expr. 401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 402 eval 'as_fn_arith () 403 { 404 as_val=$(( $* )) 405 }' 406else 407 as_fn_arith () 408 { 409 as_val=`expr "$@" || test $? -eq 1` 410 } 411fi # as_fn_arith 412 413 414# as_fn_error STATUS ERROR [LINENO LOG_FD] 415# ---------------------------------------- 416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 418# script with STATUS, using 1 if that was 0. 419as_fn_error () 420{ 421 as_status=$1; test $as_status -eq 0 && as_status=1 422 if test "$4"; then 423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 425 fi 426 $as_echo "$as_me: error: $2" >&2 427 as_fn_exit $as_status 428} # as_fn_error 429 430if expr a : '\(a\)' >/dev/null 2>&1 && 431 test "X`expr 00001 : '.*\(...\)'`" = X001; then 432 as_expr=expr 433else 434 as_expr=false 435fi 436 437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 438 as_basename=basename 439else 440 as_basename=false 441fi 442 443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 444 as_dirname=dirname 445else 446 as_dirname=false 447fi 448 449as_me=`$as_basename -- "$0" || 450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 451 X"$0" : 'X\(//\)$' \| \ 452 X"$0" : 'X\(/\)' \| . 2>/dev/null || 453$as_echo X/"$0" | 454 sed '/^.*\/\([^/][^/]*\)\/*$/{ 455 s//\1/ 456 q 457 } 458 /^X\/\(\/\/\)$/{ 459 s//\1/ 460 q 461 } 462 /^X\/\(\/\).*/{ 463 s//\1/ 464 q 465 } 466 s/.*/./; q'` 467 468# Avoid depending upon Character Ranges. 469as_cr_letters='abcdefghijklmnopqrstuvwxyz' 470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 471as_cr_Letters=$as_cr_letters$as_cr_LETTERS 472as_cr_digits='0123456789' 473as_cr_alnum=$as_cr_Letters$as_cr_digits 474 475 476 as_lineno_1=$LINENO as_lineno_1a=$LINENO 477 as_lineno_2=$LINENO as_lineno_2a=$LINENO 478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 481 sed -n ' 482 p 483 /[$]LINENO/= 484 ' <$as_myself | 485 sed ' 486 s/[$]LINENO.*/&-/ 487 t lineno 488 b 489 :lineno 490 N 491 :loop 492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 493 t loop 494 s/-\n.*// 495 ' >$as_me.lineno && 496 chmod +x "$as_me.lineno" || 497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 498 499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 500 # already done that, so ensure we don't try to do so again and fall 501 # in an infinite loop. This has already happened in practice. 502 _as_can_reexec=no; export _as_can_reexec 503 # Don't try to exec as it changes $[0], causing all sort of problems 504 # (the dirname of $[0] is not the place where we might find the 505 # original and so on. Autoconf is especially sensitive to this). 506 . "./$as_me.lineno" 507 # Exit status is that of the last command. 508 exit 509} 510 511ECHO_C= ECHO_N= ECHO_T= 512case `echo -n x` in #((((( 513-n*) 514 case `echo 'xy\c'` in 515 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 516 xy) ECHO_C='\c';; 517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 518 ECHO_T=' ';; 519 esac;; 520*) 521 ECHO_N='-n';; 522esac 523 524rm -f conf$$ conf$$.exe conf$$.file 525if test -d conf$$.dir; then 526 rm -f conf$$.dir/conf$$.file 527else 528 rm -f conf$$.dir 529 mkdir conf$$.dir 2>/dev/null 530fi 531if (echo >conf$$.file) 2>/dev/null; then 532 if ln -s conf$$.file conf$$ 2>/dev/null; then 533 as_ln_s='ln -s' 534 # ... but there are two gotchas: 535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 537 # In both cases, we have to default to `cp -pR'. 538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 539 as_ln_s='cp -pR' 540 elif ln conf$$.file conf$$ 2>/dev/null; then 541 as_ln_s=ln 542 else 543 as_ln_s='cp -pR' 544 fi 545else 546 as_ln_s='cp -pR' 547fi 548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 549rmdir conf$$.dir 2>/dev/null 550 551if mkdir -p . 2>/dev/null; then 552 as_mkdir_p='mkdir -p "$as_dir"' 553else 554 test -d ./-p && rmdir ./-p 555 as_mkdir_p=false 556fi 557 558as_test_x='test -x' 559as_executable_p=as_fn_executable_p 560 561# Sed expression to map a string onto a valid CPP name. 562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 563 564# Sed expression to map a string onto a valid variable name. 565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 566 567SHELL=${CONFIG_SHELL-/bin/sh} 568 569 570test -n "$DJDIR" || exec 7<&0 </dev/null 571exec 6>&1 572 573# Name of the host. 574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 575# so uname gets run too. 576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 577 578# 579# Initializations. 580# 581ac_default_prefix=/usr/local 582ac_clean_files= 583ac_config_libobj_dir=. 584LIBOBJS= 585cross_compiling=no 586subdirs= 587MFLAGS= 588MAKEFLAGS= 589 590# Identity of this package. 591PACKAGE_NAME='ntp' 592PACKAGE_TARNAME='ntp' 593PACKAGE_VERSION='4.2.8p5' 594PACKAGE_STRING='ntp 4.2.8p5' 595PACKAGE_BUGREPORT='http://bugs.ntp.org./' 596PACKAGE_URL='http://www.ntp.org./' 597 598# Factoring default headers for most tests. 599ac_includes_default="\ 600#include <stdio.h> 601#ifdef HAVE_SYS_TYPES_H 602# include <sys/types.h> 603#endif 604#ifdef HAVE_SYS_STAT_H 605# include <sys/stat.h> 606#endif 607#ifdef STDC_HEADERS 608# include <stdlib.h> 609# include <stddef.h> 610#else 611# ifdef HAVE_STDLIB_H 612# include <stdlib.h> 613# endif 614#endif 615#ifdef HAVE_STRING_H 616# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 617# include <memory.h> 618# endif 619# include <string.h> 620#endif 621#ifdef HAVE_STRINGS_H 622# include <strings.h> 623#endif 624#ifdef HAVE_INTTYPES_H 625# include <inttypes.h> 626#endif 627#ifdef HAVE_STDINT_H 628# include <stdint.h> 629#endif 630#ifdef HAVE_UNISTD_H 631# include <unistd.h> 632#endif" 633 634ac_header_list= 635enable_option_checking=no 636ac_subst_vars='am__EXEEXT_FALSE 637am__EXEEXT_TRUE 638LTLIBOBJS 639subdirs 640PERLLIBDIR 641NTP_KEYSDIR 642BUILD_TEST_NTP_SIGND_FALSE 643BUILD_TEST_NTP_SIGND_TRUE 644BUILD_TEST_NTP_SCANNER_FALSE 645BUILD_TEST_NTP_SCANNER_TRUE 646BUILD_TEST_NTP_RESTRICT_FALSE 647BUILD_TEST_NTP_RESTRICT_TRUE 648GTEST_AVAILABLE_FALSE 649GTEST_AVAILABLE_TRUE 650GTEST_CPPFLAGS 651GTEST_CXXFLAGS 652GTEST_LIBS 653GTEST_LDFLAGS 654GTEST_CONFIG 655UNITYBUILD_AVAILABLE_FALSE 656UNITYBUILD_AVAILABLE_TRUE 657PATH_RUBY 658HAVE_LEAPSMEARINTERVAL 659SAVECONFIG_ENABLED_FALSE 660SAVECONFIG_ENABLED_TRUE 661LSCF 662MAKE_NTPSNMPD 663SNMP_CFLAGS 664SNMP_CPPFLAGS 665SNMP_LIBS 666BUILD_SNTP_FALSE 667BUILD_SNTP_TRUE 668SNTP 669MAKE_NTPDSIM 670MAKE_LIBNTPSIM 671MAKE_TIMETRIM 672MAKE_TICKADJ 673MAKE_NTPTIME 674MAKE_ADJTIMED 675CHUTEST 676PROPDELAY 677MAKE_PARSEKMODULE 678DCFD 679TESTDCF 680MAKE_CHECK_LAYOUT 681VER_SUFFIX 682MAKE_CHECK_Y2K 683MAKE_LIBPARSE_KERNEL 684MAKE_LIBPARSE 685LIBPARSE 686HAVE_RLIMIT_STACK 687HAVE_RLIMIT_MEMLOCK 688LDADD_NLIST 689PATH_NET_SNMP_CONFIG 690CONFIG_SHELL 691PATH_TEST 692PATH_PERL 693LIBOBJS 694PTHREADS_FALSE 695PTHREADS_TRUE 696LIBISC_PTHREADS_NOTHREADS 697PTHREAD_LIBS 698LTHREAD_LIBS 699BUILD_THREAD 700HAVE_INLINE 701LDADD_LIBUTIL 702ALLOCA 703LIBM 704EDITLINE_LIBS 705LDADD_LIBNTP 706NTP_CROSSCOMPILE_FALSE 707NTP_CROSSCOMPILE_TRUE 708BUILD_LIBEVENT_FALSE 709BUILD_LIBEVENT_TRUE 710LDADD_LIBEVENT 711CPPFLAGS_LIBEVENT 712CFLAGS_LIBEVENT 713PKG_CONFIG 714LIBOPTS_DIR 715LIBOPTS_CFLAGS 716LIBOPTS_LDADD 717NEED_LIBOPTS_FALSE 718NEED_LIBOPTS_TRUE 719INSTALL_LIBOPTS_FALSE 720INSTALL_LIBOPTS_TRUE 721POSIX_SHELL 722GL_GENERATE_STDNORETURN_H_FALSE 723GL_GENERATE_STDNORETURN_H_TRUE 724STDNORETURN_H 725LIBTOOL_DEPS 726CXXCPP 727LT_SYS_LIBRARY_PATH 728OTOOL64 729OTOOL 730LIPO 731NMEDIT 732DSYMUTIL 733MANIFEST_TOOL 734RANLIB 735DLLTOOL 736OBJDUMP 737LN_S 738NM 739ac_ct_DUMPBIN 740DUMPBIN 741LD 742FGREP 743SED 744LIBTOOL 745ac_ct_AR 746AR 747INSTALL_UPDATE_LEAP_FALSE 748INSTALL_UPDATE_LEAP_TRUE 749UPDATE_LEAP_NI 750UPDATE_LEAP_MS 751UPDATE_LEAP_DS 752UPDATE_LEAP_DL 753UPDATE_LEAP_DB 754TIMETRIM_NI 755TIMETRIM_MS 756TIMETRIM_DS 757TIMETRIM_DL 758TIMETRIM_DB 759TICKADJ_NI 760TICKADJ_MS 761TICKADJ_DS 762TICKADJ_DL 763TICKADJ_DB 764SNTP_NI 765SNTP_MS 766SNTP_DS 767SNTP_DL 768SNTP_DB 769NTP_WAIT_NI 770NTP_WAIT_MS 771NTP_WAIT_DS 772NTP_WAIT_DL 773NTP_WAIT_DB 774NTP_KEYGEN_NI 775NTP_KEYGEN_MS 776NTP_KEYGEN_DS 777NTP_KEYGEN_DL 778NTP_KEYGEN_DB 779NTPTRACE_NI 780NTPTRACE_MS 781NTPTRACE_DS 782NTPTRACE_DL 783NTPTRACE_DB 784NTPTIME_NI 785NTPTIME_MS 786NTPTIME_DS 787NTPTIME_DL 788NTPTIME_DB 789INSTALL_NTPSWEEP_FALSE 790INSTALL_NTPSWEEP_TRUE 791NTPSWEEP_NI 792NTPSWEEP_MS 793NTPSWEEP_DS 794NTPSWEEP_DL 795NTPSWEEP_DB 796NTPSNMPD_NI 797NTPSNMPD_MS 798NTPSNMPD_DS 799NTPSNMPD_DL 800NTPSNMPD_DB 801NTPQ_NI 802NTPQ_MS 803NTPQ_DS 804NTPQ_DL 805NTPQ_DB 806NTPD_NI 807NTPD_MS 808NTPD_DS 809NTPD_DL 810NTPD_DB 811NTPDSIM_NI 812NTPDSIM_MS 813NTPDSIM_DS 814NTPDSIM_DL 815NTPDSIM_DB 816NTPDC_NI 817NTPDC_MS 818NTPDC_DS 819NTPDC_DL 820NTPDC_DB 821NTPDATE_NI 822NTPDATE_MS 823NTPDATE_DS 824NTPDATE_DL 825NTPDATE_DB 826MANTAGFMT 827CALC_TICKADJ_NI 828CALC_TICKADJ_MS 829CALC_TICKADJ_DS 830CALC_TICKADJ_DL 831CALC_TICKADJ_DB 832WANT_CALC_TICKADJ_MS_FALSE 833WANT_CALC_TICKADJ_MS_TRUE 834VPATH_HACK_FALSE 835VPATH_HACK_TRUE 836YFLAGS 837YACC 838am__fastdepCXX_FALSE 839am__fastdepCXX_TRUE 840CXXDEPMODE 841ac_ct_CXX 842CXXFLAGS 843CXX 844LDFLAGS_NTP 845LDADD_NTP 846CPPFLAGS_NTP 847CFLAGS_NTP 848EGREP 849GREP 850CPP 851am__fastdepCC_FALSE 852am__fastdepCC_TRUE 853CCDEPMODE 854am__nodep 855AMDEPBACKSLASH 856AMDEP_FALSE 857AMDEP_TRUE 858am__quote 859am__include 860DEPDIR 861OBJEXT 862EXEEXT 863ac_ct_CC 864CPPFLAGS 865LDFLAGS 866CFLAGS 867CC 868host_os 869host_vendor 870host_cpu 871host 872build_os 873build_vendor 874build_cpu 875build 876AM_BACKSLASH 877AM_DEFAULT_VERBOSITY 878AM_DEFAULT_V 879AM_V 880am__untar 881am__tar 882AMTAR 883am__leading_dot 884SET_MAKE 885AWK 886mkdir_p 887MKDIR_P 888INSTALL_STRIP_PROGRAM 889STRIP 890install_sh 891MAKEINFO 892AUTOHEADER 893AUTOMAKE 894AUTOCONF 895ACLOCAL 896VERSION 897PACKAGE 898CYGPATH_W 899am__isrc 900INSTALL_DATA 901INSTALL_SCRIPT 902INSTALL_PROGRAM 903target_alias 904host_alias 905build_alias 906LIBS 907ECHO_T 908ECHO_N 909ECHO_C 910DEFS 911mandir 912localedir 913libdir 914psdir 915pdfdir 916dvidir 917htmldir 918infodir 919docdir 920oldincludedir 921includedir 922localstatedir 923sharedstatedir 924sysconfdir 925datadir 926datarootdir 927libexecdir 928sbindir 929bindir 930program_transform_name 931prefix 932exec_prefix 933PACKAGE_URL 934PACKAGE_BUGREPORT 935PACKAGE_STRING 936PACKAGE_VERSION 937PACKAGE_TARNAME 938PACKAGE_NAME 939PATH_SEPARATOR 940SHELL' 941ac_subst_files='calc_tickadj_opts 942ntp_wait_opts 943ntpsweep_opts 944ntptrace_opts 945summary_opts 946plot_summary_opts' 947ac_user_opts=' 948enable_option_checking 949enable_silent_rules 950enable_dependency_tracking 951with_locfile 952enable_shared 953enable_static 954with_pic 955enable_fast_install 956with_aix_soname 957with_gnu_ld 958with_sysroot 959enable_libtool_lock 960enable_nls 961enable_local_libopts 962enable_libopts_install 963with_autoopts_config 964enable_local_libevent 965with_lineeditlibs 966enable_debugging 967enable_thread_support 968with_threads 969with_yielding_select 970enable_c99_snprintf 971enable_clockctl 972enable_linuxcaps 973enable_solarisprivs 974with_arlib 975with_net_snmp_config 976enable_libseccomp 977with_stack_limit 978with_memlock 979enable_debug_timing 980enable_dst_minutes 981enable_ignore_dns_errors 982enable_BANCOMM 983enable_GPSVME 984enable_all_clocks 985enable_ACTS 986enable_ARBITER 987enable_ARCRON_MSF 988enable_AS2201 989enable_ATOM 990enable_CHRONOLOG 991enable_CHU 992enable_AUDIO_CHU 993enable_DATUM 994enable_DUMBCLOCK 995enable_FG 996enable_HEATH 997enable_HOPFSERIAL 998enable_HOPFPCI 999enable_HPGPS 1000enable_IRIG 1001enable_JJY 1002enable_JUPITER 1003enable_LEITCH 1004enable_LOCAL_CLOCK 1005enable_MX4200 1006enable_NEOCLOCK4X 1007enable_NMEA 1008enable_GPSD 1009enable_ONCORE 1010enable_PALISADE 1011enable_PCF 1012enable_PST 1013enable_RIPENCC 1014enable_SHM 1015enable_SPECTRACOM 1016enable_TPRO 1017enable_TRUETIME 1018enable_TT560 1019enable_ULINK 1020enable_TSYNCPCI 1021enable_WWV 1022enable_ZYFER 1023enable_parse_clocks 1024enable_COMPUTIME 1025enable_DCF7000 1026enable_HOPF6021 1027enable_MEINBERG 1028enable_RAWDCF 1029enable_RCC8000 1030enable_SCHMID 1031enable_TRIMTAIP 1032enable_TRIMTSIP 1033enable_WHARTON 1034enable_VARITEXT 1035enable_SEL240X 1036with_crypto 1037with_openssl_libdir 1038with_openssl_incdir 1039with_rpath 1040enable_openssl_random 1041enable_autokey 1042enable_kmem 1043enable_accurate_adjtime 1044enable_tick 1045enable_tickadj 1046enable_simulator 1047with_sntp 1048with_ntpsnmpd 1049enable_slew_always 1050enable_step_slew 1051enable_ntpdate_step 1052enable_hourly_todr_sync 1053enable_kernel_fll_bug 1054enable_bug1243_fix 1055enable_irig_sawtooth 1056enable_nist 1057enable_ntp_signd 1058enable_ipv6 1059with_kame 1060enable_getifaddrs 1061enable_saveconfig 1062enable_leap_smear 1063with_gtest 1064enable_problem_tests 1065' 1066 ac_precious_vars='build_alias 1067host_alias 1068target_alias 1069CC 1070CFLAGS 1071LDFLAGS 1072LIBS 1073CPPFLAGS 1074CPP 1075CXX 1076CXXFLAGS 1077CCC 1078YACC 1079YFLAGS 1080LT_SYS_LIBRARY_PATH 1081CXXCPP' 1082ac_subdirs_all='sntp' 1083 1084# Initialize some variables set by options. 1085ac_init_help= 1086ac_init_version=false 1087ac_unrecognized_opts= 1088ac_unrecognized_sep= 1089# The variables have the same names as the options, with 1090# dashes changed to underlines. 1091cache_file=/dev/null 1092exec_prefix=NONE 1093no_create= 1094no_recursion= 1095prefix=NONE 1096program_prefix=NONE 1097program_suffix=NONE 1098program_transform_name=s,x,x, 1099silent= 1100site= 1101srcdir= 1102verbose= 1103x_includes=NONE 1104x_libraries=NONE 1105 1106# Installation directory options. 1107# These are left unexpanded so users can "make install exec_prefix=/foo" 1108# and all the variables that are supposed to be based on exec_prefix 1109# by default will actually change. 1110# Use braces instead of parens because sh, perl, etc. also accept them. 1111# (The list follows the same order as the GNU Coding Standards.) 1112bindir='${exec_prefix}/bin' 1113sbindir='${exec_prefix}/sbin' 1114libexecdir='${exec_prefix}/libexec' 1115datarootdir='${prefix}/share' 1116datadir='${datarootdir}' 1117sysconfdir='${prefix}/etc' 1118sharedstatedir='${prefix}/com' 1119localstatedir='${prefix}/var' 1120includedir='${prefix}/include' 1121oldincludedir='/usr/include' 1122docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 1123infodir='${datarootdir}/info' 1124htmldir='${docdir}' 1125dvidir='${docdir}' 1126pdfdir='${docdir}' 1127psdir='${docdir}' 1128libdir='${exec_prefix}/lib' 1129localedir='${datarootdir}/locale' 1130mandir='${datarootdir}/man' 1131 1132ac_prev= 1133ac_dashdash= 1134for ac_option 1135do 1136 # If the previous option needs an argument, assign it. 1137 if test -n "$ac_prev"; then 1138 eval $ac_prev=\$ac_option 1139 ac_prev= 1140 continue 1141 fi 1142 1143 case $ac_option in 1144 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1145 *=) ac_optarg= ;; 1146 *) ac_optarg=yes ;; 1147 esac 1148 1149 # Accept the important Cygnus configure options, so we can diagnose typos. 1150 1151 case $ac_dashdash$ac_option in 1152 --) 1153 ac_dashdash=yes ;; 1154 1155 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1156 ac_prev=bindir ;; 1157 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1158 bindir=$ac_optarg ;; 1159 1160 -build | --build | --buil | --bui | --bu) 1161 ac_prev=build_alias ;; 1162 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1163 build_alias=$ac_optarg ;; 1164 1165 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1166 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1167 ac_prev=cache_file ;; 1168 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1169 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1170 cache_file=$ac_optarg ;; 1171 1172 --config-cache | -C) 1173 cache_file=config.cache ;; 1174 1175 -datadir | --datadir | --datadi | --datad) 1176 ac_prev=datadir ;; 1177 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1178 datadir=$ac_optarg ;; 1179 1180 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1181 | --dataroo | --dataro | --datar) 1182 ac_prev=datarootdir ;; 1183 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1184 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1185 datarootdir=$ac_optarg ;; 1186 1187 -disable-* | --disable-*) 1188 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1189 # Reject names that are not valid shell variable names. 1190 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1191 as_fn_error $? "invalid feature name: $ac_useropt" 1192 ac_useropt_orig=$ac_useropt 1193 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1194 case $ac_user_opts in 1195 *" 1196"enable_$ac_useropt" 1197"*) ;; 1198 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1199 ac_unrecognized_sep=', ';; 1200 esac 1201 eval enable_$ac_useropt=no ;; 1202 1203 -docdir | --docdir | --docdi | --doc | --do) 1204 ac_prev=docdir ;; 1205 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1206 docdir=$ac_optarg ;; 1207 1208 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1209 ac_prev=dvidir ;; 1210 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1211 dvidir=$ac_optarg ;; 1212 1213 -enable-* | --enable-*) 1214 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1215 # Reject names that are not valid shell variable names. 1216 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1217 as_fn_error $? "invalid feature name: $ac_useropt" 1218 ac_useropt_orig=$ac_useropt 1219 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1220 case $ac_user_opts in 1221 *" 1222"enable_$ac_useropt" 1223"*) ;; 1224 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1225 ac_unrecognized_sep=', ';; 1226 esac 1227 eval enable_$ac_useropt=\$ac_optarg ;; 1228 1229 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1230 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1231 | --exec | --exe | --ex) 1232 ac_prev=exec_prefix ;; 1233 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1234 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1235 | --exec=* | --exe=* | --ex=*) 1236 exec_prefix=$ac_optarg ;; 1237 1238 -gas | --gas | --ga | --g) 1239 # Obsolete; use --with-gas. 1240 with_gas=yes ;; 1241 1242 -help | --help | --hel | --he | -h) 1243 ac_init_help=long ;; 1244 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1245 ac_init_help=recursive ;; 1246 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1247 ac_init_help=short ;; 1248 1249 -host | --host | --hos | --ho) 1250 ac_prev=host_alias ;; 1251 -host=* | --host=* | --hos=* | --ho=*) 1252 host_alias=$ac_optarg ;; 1253 1254 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1255 ac_prev=htmldir ;; 1256 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1257 | --ht=*) 1258 htmldir=$ac_optarg ;; 1259 1260 -includedir | --includedir | --includedi | --included | --include \ 1261 | --includ | --inclu | --incl | --inc) 1262 ac_prev=includedir ;; 1263 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1264 | --includ=* | --inclu=* | --incl=* | --inc=*) 1265 includedir=$ac_optarg ;; 1266 1267 -infodir | --infodir | --infodi | --infod | --info | --inf) 1268 ac_prev=infodir ;; 1269 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1270 infodir=$ac_optarg ;; 1271 1272 -libdir | --libdir | --libdi | --libd) 1273 ac_prev=libdir ;; 1274 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1275 libdir=$ac_optarg ;; 1276 1277 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1278 | --libexe | --libex | --libe) 1279 ac_prev=libexecdir ;; 1280 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1281 | --libexe=* | --libex=* | --libe=*) 1282 libexecdir=$ac_optarg ;; 1283 1284 -localedir | --localedir | --localedi | --localed | --locale) 1285 ac_prev=localedir ;; 1286 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1287 localedir=$ac_optarg ;; 1288 1289 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1290 | --localstate | --localstat | --localsta | --localst | --locals) 1291 ac_prev=localstatedir ;; 1292 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1293 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1294 localstatedir=$ac_optarg ;; 1295 1296 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1297 ac_prev=mandir ;; 1298 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1299 mandir=$ac_optarg ;; 1300 1301 -nfp | --nfp | --nf) 1302 # Obsolete; use --without-fp. 1303 with_fp=no ;; 1304 1305 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1306 | --no-cr | --no-c | -n) 1307 no_create=yes ;; 1308 1309 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1310 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1311 no_recursion=yes ;; 1312 1313 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1314 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1315 | --oldin | --oldi | --old | --ol | --o) 1316 ac_prev=oldincludedir ;; 1317 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1318 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1319 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1320 oldincludedir=$ac_optarg ;; 1321 1322 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1323 ac_prev=prefix ;; 1324 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1325 prefix=$ac_optarg ;; 1326 1327 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1328 | --program-pre | --program-pr | --program-p) 1329 ac_prev=program_prefix ;; 1330 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1331 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1332 program_prefix=$ac_optarg ;; 1333 1334 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1335 | --program-suf | --program-su | --program-s) 1336 ac_prev=program_suffix ;; 1337 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1338 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1339 program_suffix=$ac_optarg ;; 1340 1341 -program-transform-name | --program-transform-name \ 1342 | --program-transform-nam | --program-transform-na \ 1343 | --program-transform-n | --program-transform- \ 1344 | --program-transform | --program-transfor \ 1345 | --program-transfo | --program-transf \ 1346 | --program-trans | --program-tran \ 1347 | --progr-tra | --program-tr | --program-t) 1348 ac_prev=program_transform_name ;; 1349 -program-transform-name=* | --program-transform-name=* \ 1350 | --program-transform-nam=* | --program-transform-na=* \ 1351 | --program-transform-n=* | --program-transform-=* \ 1352 | --program-transform=* | --program-transfor=* \ 1353 | --program-transfo=* | --program-transf=* \ 1354 | --program-trans=* | --program-tran=* \ 1355 | --progr-tra=* | --program-tr=* | --program-t=*) 1356 program_transform_name=$ac_optarg ;; 1357 1358 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1359 ac_prev=pdfdir ;; 1360 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1361 pdfdir=$ac_optarg ;; 1362 1363 -psdir | --psdir | --psdi | --psd | --ps) 1364 ac_prev=psdir ;; 1365 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1366 psdir=$ac_optarg ;; 1367 1368 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1369 | -silent | --silent | --silen | --sile | --sil) 1370 silent=yes ;; 1371 1372 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1373 ac_prev=sbindir ;; 1374 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1375 | --sbi=* | --sb=*) 1376 sbindir=$ac_optarg ;; 1377 1378 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1379 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1380 | --sharedst | --shareds | --shared | --share | --shar \ 1381 | --sha | --sh) 1382 ac_prev=sharedstatedir ;; 1383 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1384 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1385 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1386 | --sha=* | --sh=*) 1387 sharedstatedir=$ac_optarg ;; 1388 1389 -site | --site | --sit) 1390 ac_prev=site ;; 1391 -site=* | --site=* | --sit=*) 1392 site=$ac_optarg ;; 1393 1394 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1395 ac_prev=srcdir ;; 1396 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1397 srcdir=$ac_optarg ;; 1398 1399 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1400 | --syscon | --sysco | --sysc | --sys | --sy) 1401 ac_prev=sysconfdir ;; 1402 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1403 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1404 sysconfdir=$ac_optarg ;; 1405 1406 -target | --target | --targe | --targ | --tar | --ta | --t) 1407 ac_prev=target_alias ;; 1408 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1409 target_alias=$ac_optarg ;; 1410 1411 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1412 verbose=yes ;; 1413 1414 -version | --version | --versio | --versi | --vers | -V) 1415 ac_init_version=: ;; 1416 1417 -with-* | --with-*) 1418 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1419 # Reject names that are not valid shell variable names. 1420 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1421 as_fn_error $? "invalid package name: $ac_useropt" 1422 ac_useropt_orig=$ac_useropt 1423 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1424 case $ac_user_opts in 1425 *" 1426"with_$ac_useropt" 1427"*) ;; 1428 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1429 ac_unrecognized_sep=', ';; 1430 esac 1431 eval with_$ac_useropt=\$ac_optarg ;; 1432 1433 -without-* | --without-*) 1434 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1435 # Reject names that are not valid shell variable names. 1436 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1437 as_fn_error $? "invalid package name: $ac_useropt" 1438 ac_useropt_orig=$ac_useropt 1439 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1440 case $ac_user_opts in 1441 *" 1442"with_$ac_useropt" 1443"*) ;; 1444 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1445 ac_unrecognized_sep=', ';; 1446 esac 1447 eval with_$ac_useropt=no ;; 1448 1449 --x) 1450 # Obsolete; use --with-x. 1451 with_x=yes ;; 1452 1453 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1454 | --x-incl | --x-inc | --x-in | --x-i) 1455 ac_prev=x_includes ;; 1456 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1457 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1458 x_includes=$ac_optarg ;; 1459 1460 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1461 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1462 ac_prev=x_libraries ;; 1463 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1464 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1465 x_libraries=$ac_optarg ;; 1466 1467 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1468Try \`$0 --help' for more information" 1469 ;; 1470 1471 *=*) 1472 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1473 # Reject names that are not valid shell variable names. 1474 case $ac_envvar in #( 1475 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1476 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1477 esac 1478 eval $ac_envvar=\$ac_optarg 1479 export $ac_envvar ;; 1480 1481 *) 1482 # FIXME: should be removed in autoconf 3.0. 1483 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1484 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1485 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1486 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1487 ;; 1488 1489 esac 1490done 1491 1492if test -n "$ac_prev"; then 1493 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1494 as_fn_error $? "missing argument to $ac_option" 1495fi 1496 1497if test -n "$ac_unrecognized_opts"; then 1498 case $enable_option_checking in 1499 no) ;; 1500 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1501 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1502 esac 1503fi 1504 1505# Check all directory arguments for consistency. 1506for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1507 datadir sysconfdir sharedstatedir localstatedir includedir \ 1508 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1509 libdir localedir mandir 1510do 1511 eval ac_val=\$$ac_var 1512 # Remove trailing slashes. 1513 case $ac_val in 1514 */ ) 1515 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1516 eval $ac_var=\$ac_val;; 1517 esac 1518 # Be sure to have absolute directory names. 1519 case $ac_val in 1520 [\\/$]* | ?:[\\/]* ) continue;; 1521 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1522 esac 1523 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1524done 1525 1526# There might be people who depend on the old broken behavior: `$host' 1527# used to hold the argument of --host etc. 1528# FIXME: To remove some day. 1529build=$build_alias 1530host=$host_alias 1531target=$target_alias 1532 1533# FIXME: To remove some day. 1534if test "x$host_alias" != x; then 1535 if test "x$build_alias" = x; then 1536 cross_compiling=maybe 1537 elif test "x$build_alias" != "x$host_alias"; then 1538 cross_compiling=yes 1539 fi 1540fi 1541 1542ac_tool_prefix= 1543test -n "$host_alias" && ac_tool_prefix=$host_alias- 1544 1545test "$silent" = yes && exec 6>/dev/null 1546 1547 1548ac_pwd=`pwd` && test -n "$ac_pwd" && 1549ac_ls_di=`ls -di .` && 1550ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1551 as_fn_error $? "working directory cannot be determined" 1552test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1553 as_fn_error $? "pwd does not report name of working directory" 1554 1555 1556# Find the source files, if location was not specified. 1557if test -z "$srcdir"; then 1558 ac_srcdir_defaulted=yes 1559 # Try the directory containing this script, then the parent directory. 1560 ac_confdir=`$as_dirname -- "$as_myself" || 1561$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1562 X"$as_myself" : 'X\(//\)[^/]' \| \ 1563 X"$as_myself" : 'X\(//\)$' \| \ 1564 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1565$as_echo X"$as_myself" | 1566 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1567 s//\1/ 1568 q 1569 } 1570 /^X\(\/\/\)[^/].*/{ 1571 s//\1/ 1572 q 1573 } 1574 /^X\(\/\/\)$/{ 1575 s//\1/ 1576 q 1577 } 1578 /^X\(\/\).*/{ 1579 s//\1/ 1580 q 1581 } 1582 s/.*/./; q'` 1583 srcdir=$ac_confdir 1584 if test ! -r "$srcdir/$ac_unique_file"; then 1585 srcdir=.. 1586 fi 1587else 1588 ac_srcdir_defaulted=no 1589fi 1590if test ! -r "$srcdir/$ac_unique_file"; then 1591 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1592 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1593fi 1594ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1595ac_abs_confdir=`( 1596 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1597 pwd)` 1598# When building in place, set srcdir=. 1599if test "$ac_abs_confdir" = "$ac_pwd"; then 1600 srcdir=. 1601fi 1602# Remove unnecessary trailing slashes from srcdir. 1603# Double slashes in file names in object file debugging info 1604# mess up M-x gdb in Emacs. 1605case $srcdir in 1606*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1607esac 1608for ac_var in $ac_precious_vars; do 1609 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1610 eval ac_env_${ac_var}_value=\$${ac_var} 1611 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1612 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1613done 1614 1615# 1616# Report the --help message. 1617# 1618if test "$ac_init_help" = "long"; then 1619 # Omit some internal or obsolete options to make the list less imposing. 1620 # This message is too long to be a string in the A/UX 3.1 sh. 1621 cat <<_ACEOF 1622\`configure' configures ntp 4.2.8p5 to adapt to many kinds of systems. 1623 1624Usage: $0 [OPTION]... [VAR=VALUE]... 1625 1626To assign environment variables (e.g., CC, CFLAGS...), specify them as 1627VAR=VALUE. See below for descriptions of some of the useful variables. 1628 1629Defaults for the options are specified in brackets. 1630 1631Configuration: 1632 -h, --help display this help and exit 1633 --help=short display options specific to this package 1634 --help=recursive display the short help of all the included packages 1635 -V, --version display version information and exit 1636 -q, --quiet, --silent do not print \`checking ...' messages 1637 --cache-file=FILE cache test results in FILE [disabled] 1638 -C, --config-cache alias for \`--cache-file=config.cache' 1639 -n, --no-create do not create output files 1640 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1641 1642Installation directories: 1643 --prefix=PREFIX install architecture-independent files in PREFIX 1644 [$ac_default_prefix] 1645 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1646 [PREFIX] 1647 1648By default, \`make install' will install all the files in 1649\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1650an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1651for instance \`--prefix=\$HOME'. 1652 1653For better control, use the options below. 1654 1655Fine tuning of the installation directories: 1656 --bindir=DIR user executables [EPREFIX/bin] 1657 --sbindir=DIR system admin executables [EPREFIX/sbin] 1658 --libexecdir=DIR program executables [EPREFIX/libexec] 1659 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1660 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1661 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1662 --libdir=DIR object code libraries [EPREFIX/lib] 1663 --includedir=DIR C header files [PREFIX/include] 1664 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1665 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1666 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1667 --infodir=DIR info documentation [DATAROOTDIR/info] 1668 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1669 --mandir=DIR man documentation [DATAROOTDIR/man] 1670 --docdir=DIR documentation root [DATAROOTDIR/doc/ntp] 1671 --htmldir=DIR html documentation [DOCDIR] 1672 --dvidir=DIR dvi documentation [DOCDIR] 1673 --pdfdir=DIR pdf documentation [DOCDIR] 1674 --psdir=DIR ps documentation [DOCDIR] 1675_ACEOF 1676 1677 cat <<\_ACEOF 1678 1679Program names: 1680 --program-prefix=PREFIX prepend PREFIX to installed program names 1681 --program-suffix=SUFFIX append SUFFIX to installed program names 1682 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1683 1684System types: 1685 --build=BUILD configure for building on BUILD [guessed] 1686 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1687_ACEOF 1688fi 1689 1690if test -n "$ac_init_help"; then 1691 case $ac_init_help in 1692 short | recursive ) echo "Configuration of ntp 4.2.8p5:";; 1693 esac 1694 cat <<\_ACEOF 1695 1696Optional Features and Packages: 1697 --disable-option-checking ignore unrecognized --enable/--with options 1698 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1699 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1700 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1701 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1702 --enable-silent-rules less verbose build output (undo: "make V=1") 1703 --disable-silent-rules verbose build output (undo: "make V=0") 1704 --enable-dependency-tracking 1705 do not reject slow dependency extractors 1706 --disable-dependency-tracking 1707 speeds up one-time build 1708 --with-locfile=XXX os-specific or "legacy" 1709 --enable-shared[=PKGS] build shared libraries [default=no] 1710 --enable-static[=PKGS] build static libraries [default=yes] 1711 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1712 both] 1713 --enable-fast-install[=PKGS] 1714 optimize for fast installation [default=yes] 1715 --with-aix-soname=aix|svr4|both 1716 shared library versioning (aka "SONAME") variant to 1717 provide on AIX, [default=aix]. 1718 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1719 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1720 compiler's sysroot if not specified). 1721 --disable-libtool-lock avoid locking (might break parallel builds) 1722 --disable-nls disable nls support in libopts 1723 --enable-local-libopts Use the supplied libopts tearoff code 1724 --enable-libopts-install 1725 Install libopts with client installation 1726 --with-autoopts-config specify the config-info script 1727 --enable-local-libevent Force using the supplied libevent tearoff code 1728 --with-lineeditlibs edit,editline (readline may be specified if desired) 1729 defaults: + yes, - no, s system-specific 1730 --enable-debugging + include ntpd debugging code 1731 --enable-thread-support s use threads (+ if available) 1732 --with-threads with threads [auto] 1733 --with-yielding-select with yielding select [auto] 1734 --enable-c99-snprintf s force replacement 1735 --enable-clockctl s Use /dev/clockctl for non-root clock control 1736 --enable-linuxcaps + Use Linux capabilities for non-root clock control 1737 --enable-solarisprivs + Use Solaris privileges for non-root clock control 1738 --with-arlib - deprecated, arlib not distributed 1739 --with-net-snmp-config + =net-snmp-config 1740 --enable-libseccomp EXPERIMENTAL: enable support for libseccomp 1741 sandboxing (default is no) 1742 --with-stack-limit ? =50 (200 for openbsd) 4k pages 1743 --with-memlock ? =32 (-1 on linux) megabytes 1744 --enable-debug-timing - include processing time debugging code (costs 1745 performance) 1746 --enable-dst-minutes =60 minutes per DST adjustment 1747 --enable-ignore-dns-errors 1748 - retry DNS queries on any error 1749 --enable-BANCOMM - Datum/Bancomm bc635/VME interface 1750 --enable-GPSVME - TrueTime GPS receiver/VME interface 1751 --enable-all-clocks + include all suitable non-PARSE clocks: 1752 --enable-ACTS s ACTS modem service 1753 --enable-ARBITER + Arbiter 1088A/B GPS receiver 1754 --enable-ARCRON-MSF + Arcron MSF receiver 1755 --enable-AS2201 + Austron 2200A/2201A GPS receiver 1756 --enable-ATOM s ATOM PPS interface 1757 --enable-CHRONOLOG + Chrono-log K-series WWVB receiver 1758 --enable-CHU + CHU modem/decoder 1759 --enable-AUDIO-CHU s CHU audio/decoder 1760 --enable-DATUM s Datum Programmable Time System 1761 --enable-DUMBCLOCK + Dumb generic hh:mm:ss local clock 1762 --enable-FG + Forum Graphic GPS 1763 --enable-HEATH s Heath GC-1000 WWV/WWVH receiver 1764 --enable-HOPFSERIAL + hopf serial clock device 1765 --enable-HOPFPCI + hopf 6039 PCI board 1766 --enable-HPGPS + HP 58503A GPS receiver 1767 --enable-IRIG s IRIG audio decoder 1768 --enable-JJY + JJY receiver 1769 --enable-JUPITER s Rockwell Jupiter GPS receiver 1770 --enable-LEITCH + Leitch CSD 5300 Master Clock System Driver 1771 --enable-LOCAL-CLOCK + local clock reference 1772 --enable-MX4200 s Magnavox MX4200 GPS receiver 1773 --enable-NEOCLOCK4X + NeoClock4X DCF77 / TDF receiver 1774 --enable-NMEA + NMEA GPS receiver 1775 --enable-GPSD + GPSD JSON receiver 1776 --enable-ONCORE s Motorola VP/UT Oncore GPS receiver 1777 --enable-PALISADE s Palisade clock 1778 --enable-PCF + Conrad parallel port radio clock 1779 --enable-PST + PST/Traconex 1020 WWV/WWVH receiver 1780 --enable-RIPENCC - RIPENCC specific Trimble driver 1781 --enable-SHM s SHM clock attached thru shared memory 1782 --enable-SPECTRACOM + Spectracom 8170/Netclock/2 WWVB receiver 1783 --enable-TPRO s KSI/Odetics TPRO/S GPS receiver/IRIG interface 1784 --enable-TRUETIME s Kinemetrics/TrueTime receivers 1785 --enable-TT560 - TrueTime 560 IRIG-B decoder 1786 --enable-ULINK + Ultralink WWVB receiver 1787 --enable-TSYNCPCI s Spectracom TSYNC timing board 1788 --enable-WWV s WWV Audio receiver 1789 --enable-ZYFER + Zyfer GPStarplus receiver 1790 --enable-parse-clocks - include all suitable PARSE clocks: 1791 --enable-COMPUTIME s Diem Computime Radio Clock 1792 --enable-DCF7000 s ELV/DCF7000 clock 1793 --enable-HOPF6021 s HOPF 6021 clock 1794 --enable-MEINBERG s Meinberg clocks 1795 --enable-RAWDCF s DCF77 raw time code 1796 --enable-RCC8000 s RCC 8000 clock 1797 --enable-SCHMID s Schmid DCF77 clock 1798 --enable-TRIMTAIP s Trimble GPS receiver/TAIP protocol 1799 --enable-TRIMTSIP s Trimble GPS receiver/TSIP protocol 1800 --enable-WHARTON s WHARTON 400A Series clock 1801 --enable-VARITEXT s VARITEXT clock 1802 --enable-SEL240X s SEL240X clock 1803 --with-crypto + =openssl,libcrypto 1804 1805 --with-openssl-libdir + =/something/reasonable 1806 1807 --with-openssl-incdir + =/something/reasonable 1808 1809 --without-rpath s Disable auto-added -R linker paths 1810 1811 --enable-openssl-random Use OpenSSL's crypto random number functions, if 1812 available (default is yes) 1813 --enable-autokey + support NTP Autokey protocol 1814 --enable-kmem s read /dev/kmem for tick and/or tickadj 1815 --enable-accurate-adjtime 1816 s the adjtime() call is accurate 1817 --enable-tick=VALUE s force a value for 'tick' 1818 --enable-tickadj=VALUE s force a value for 'tickadj' 1819 --enable-simulator - build/install the NTPD simulator? 1820 --without-sntp - disable building sntp and sntp/tests 1821 --with-ntpsnmpd s Build ntpsnmpd MIB agent? 1822 --enable-slew-always s always slew the time 1823 --enable-step-slew s step and slew the time 1824 --enable-ntpdate-step s if ntpdate should step the time 1825 --enable-hourly-todr-sync 1826 s if we should sync TODR hourly 1827 --enable-kernel-fll-bug s if we should avoid a kernel FLL bug 1828 --enable-bug1243-fix + use unmodified autokey session keys 1829 --enable-irig-sawtooth s if we should enable the IRIG sawtooth filter 1830 --enable-nist - if we should enable the NIST lockclock scheme 1831 --enable-ntp-signd - Provide support for Samba's signing daemon, 1832 =/var/run/ntp_signd 1833 --enable-ipv6 s use IPv6? 1834 1835 --with-kame - =/usr/local/v6 1836 --enable-getifaddrs + Enable the use of getifaddrs() [[yes|no]]. 1837 --enable-saveconfig + saveconfig mechanism 1838 --enable-leap-smear - experimental leap smear code 1839 --with-gtest Use the gtest framework (Default: if it's available) 1840 --enable-problem-tests + enable tests with undiagnosed problems 1841 1842Some influential environment variables: 1843 CC C compiler command 1844 CFLAGS C compiler flags 1845 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1846 nonstandard directory <lib dir> 1847 LIBS libraries to pass to the linker, e.g. -l<library> 1848 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1849 you have headers in a nonstandard directory <include dir> 1850 CPP C preprocessor 1851 CXX C++ compiler command 1852 CXXFLAGS C++ compiler flags 1853 YACC The `Yet Another Compiler Compiler' implementation to use. 1854 Defaults to the first program found out of: `bison -y', `byacc', 1855 `yacc'. 1856 YFLAGS The list of arguments that will be passed by default to $YACC. 1857 This script will default YFLAGS to the empty string to avoid a 1858 default value of `-d' given by some make applications. 1859 LT_SYS_LIBRARY_PATH 1860 User-defined run-time library search path. 1861 CXXCPP C++ preprocessor 1862 1863Use these variables to override the choices made by `configure' or to help 1864it to find libraries and programs with nonstandard names/locations. 1865 1866Report bugs to <http://bugs.ntp.org./>. 1867ntp home page: <http://www.ntp.org./>. 1868_ACEOF 1869ac_status=$? 1870fi 1871 1872if test "$ac_init_help" = "recursive"; then 1873 # If there are subdirs, report their specific --help. 1874 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1875 test -d "$ac_dir" || 1876 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1877 continue 1878 ac_builddir=. 1879 1880case "$ac_dir" in 1881.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1882*) 1883 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1884 # A ".." for each directory in $ac_dir_suffix. 1885 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1886 case $ac_top_builddir_sub in 1887 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1888 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1889 esac ;; 1890esac 1891ac_abs_top_builddir=$ac_pwd 1892ac_abs_builddir=$ac_pwd$ac_dir_suffix 1893# for backward compatibility: 1894ac_top_builddir=$ac_top_build_prefix 1895 1896case $srcdir in 1897 .) # We are building in place. 1898 ac_srcdir=. 1899 ac_top_srcdir=$ac_top_builddir_sub 1900 ac_abs_top_srcdir=$ac_pwd ;; 1901 [\\/]* | ?:[\\/]* ) # Absolute name. 1902 ac_srcdir=$srcdir$ac_dir_suffix; 1903 ac_top_srcdir=$srcdir 1904 ac_abs_top_srcdir=$srcdir ;; 1905 *) # Relative name. 1906 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1907 ac_top_srcdir=$ac_top_build_prefix$srcdir 1908 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1909esac 1910ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1911 1912 cd "$ac_dir" || { ac_status=$?; continue; } 1913 # Check for guested configure. 1914 if test -f "$ac_srcdir/configure.gnu"; then 1915 echo && 1916 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1917 elif test -f "$ac_srcdir/configure"; then 1918 echo && 1919 $SHELL "$ac_srcdir/configure" --help=recursive 1920 else 1921 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1922 fi || ac_status=$? 1923 cd "$ac_pwd" || { ac_status=$?; break; } 1924 done 1925fi 1926 1927test -n "$ac_init_help" && exit $ac_status 1928if $ac_init_version; then 1929 cat <<\_ACEOF 1930ntp configure 4.2.8p5 1931generated by GNU Autoconf 2.69 1932 1933Copyright (C) 2012 Free Software Foundation, Inc. 1934This configure script is free software; the Free Software Foundation 1935gives unlimited permission to copy, distribute and modify it. 1936_ACEOF 1937 exit 1938fi 1939 1940## ------------------------ ## 1941## Autoconf initialization. ## 1942## ------------------------ ## 1943 1944# ac_fn_c_try_compile LINENO 1945# -------------------------- 1946# Try to compile conftest.$ac_ext, and return whether this succeeded. 1947ac_fn_c_try_compile () 1948{ 1949 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1950 rm -f conftest.$ac_objext 1951 if { { ac_try="$ac_compile" 1952case "(($ac_try" in 1953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1954 *) ac_try_echo=$ac_try;; 1955esac 1956eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1957$as_echo "$ac_try_echo"; } >&5 1958 (eval "$ac_compile") 2>conftest.err 1959 ac_status=$? 1960 if test -s conftest.err; then 1961 grep -v '^ *+' conftest.err >conftest.er1 1962 cat conftest.er1 >&5 1963 mv -f conftest.er1 conftest.err 1964 fi 1965 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1966 test $ac_status = 0; } && { 1967 test -z "$ac_c_werror_flag" || 1968 test ! -s conftest.err 1969 } && test -s conftest.$ac_objext; then : 1970 ac_retval=0 1971else 1972 $as_echo "$as_me: failed program was:" >&5 1973sed 's/^/| /' conftest.$ac_ext >&5 1974 1975 ac_retval=1 1976fi 1977 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1978 as_fn_set_status $ac_retval 1979 1980} # ac_fn_c_try_compile 1981 1982# ac_fn_c_try_cpp LINENO 1983# ---------------------- 1984# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1985ac_fn_c_try_cpp () 1986{ 1987 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1988 if { { ac_try="$ac_cpp conftest.$ac_ext" 1989case "(($ac_try" in 1990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1991 *) ac_try_echo=$ac_try;; 1992esac 1993eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1994$as_echo "$ac_try_echo"; } >&5 1995 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1996 ac_status=$? 1997 if test -s conftest.err; then 1998 grep -v '^ *+' conftest.err >conftest.er1 1999 cat conftest.er1 >&5 2000 mv -f conftest.er1 conftest.err 2001 fi 2002 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2003 test $ac_status = 0; } > conftest.i && { 2004 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 2005 test ! -s conftest.err 2006 }; then : 2007 ac_retval=0 2008else 2009 $as_echo "$as_me: failed program was:" >&5 2010sed 's/^/| /' conftest.$ac_ext >&5 2011 2012 ac_retval=1 2013fi 2014 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2015 as_fn_set_status $ac_retval 2016 2017} # ac_fn_c_try_cpp 2018 2019# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 2020# ------------------------------------------------------- 2021# Tests whether HEADER exists, giving a warning if it cannot be compiled using 2022# the include files in INCLUDES and setting the cache variable VAR 2023# accordingly. 2024ac_fn_c_check_header_mongrel () 2025{ 2026 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2027 if eval \${$3+:} false; then : 2028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2029$as_echo_n "checking for $2... " >&6; } 2030if eval \${$3+:} false; then : 2031 $as_echo_n "(cached) " >&6 2032fi 2033eval ac_res=\$$3 2034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2035$as_echo "$ac_res" >&6; } 2036else 2037 # Is the header compilable? 2038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 2039$as_echo_n "checking $2 usability... " >&6; } 2040cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2041/* end confdefs.h. */ 2042$4 2043#include <$2> 2044_ACEOF 2045if ac_fn_c_try_compile "$LINENO"; then : 2046 ac_header_compiler=yes 2047else 2048 ac_header_compiler=no 2049fi 2050rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 2052$as_echo "$ac_header_compiler" >&6; } 2053 2054# Is the header present? 2055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 2056$as_echo_n "checking $2 presence... " >&6; } 2057cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2058/* end confdefs.h. */ 2059#include <$2> 2060_ACEOF 2061if ac_fn_c_try_cpp "$LINENO"; then : 2062 ac_header_preproc=yes 2063else 2064 ac_header_preproc=no 2065fi 2066rm -f conftest.err conftest.i conftest.$ac_ext 2067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2068$as_echo "$ac_header_preproc" >&6; } 2069 2070# So? What about this header? 2071case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 2072 yes:no: ) 2073 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2074$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2075 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2076$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2077 ;; 2078 no:yes:* ) 2079 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2080$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2081 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2082$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2083 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2084$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2085 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2086$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2087 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2088$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2089( $as_echo "## ------------------------------------ ## 2090## Report this to http://bugs.ntp.org./ ## 2091## ------------------------------------ ##" 2092 ) | sed "s/^/$as_me: WARNING: /" >&2 2093 ;; 2094esac 2095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2096$as_echo_n "checking for $2... " >&6; } 2097if eval \${$3+:} false; then : 2098 $as_echo_n "(cached) " >&6 2099else 2100 eval "$3=\$ac_header_compiler" 2101fi 2102eval ac_res=\$$3 2103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2104$as_echo "$ac_res" >&6; } 2105fi 2106 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2107 2108} # ac_fn_c_check_header_mongrel 2109 2110# ac_fn_c_try_run LINENO 2111# ---------------------- 2112# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 2113# that executables *can* be run. 2114ac_fn_c_try_run () 2115{ 2116 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2117 if { { ac_try="$ac_link" 2118case "(($ac_try" in 2119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2120 *) ac_try_echo=$ac_try;; 2121esac 2122eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2123$as_echo "$ac_try_echo"; } >&5 2124 (eval "$ac_link") 2>&5 2125 ac_status=$? 2126 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2127 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 2128 { { case "(($ac_try" in 2129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2130 *) ac_try_echo=$ac_try;; 2131esac 2132eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2133$as_echo "$ac_try_echo"; } >&5 2134 (eval "$ac_try") 2>&5 2135 ac_status=$? 2136 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2137 test $ac_status = 0; }; }; then : 2138 ac_retval=0 2139else 2140 $as_echo "$as_me: program exited with status $ac_status" >&5 2141 $as_echo "$as_me: failed program was:" >&5 2142sed 's/^/| /' conftest.$ac_ext >&5 2143 2144 ac_retval=$ac_status 2145fi 2146 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2147 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2148 as_fn_set_status $ac_retval 2149 2150} # ac_fn_c_try_run 2151 2152# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 2153# ------------------------------------------------------- 2154# Tests whether HEADER exists and can be compiled using the include files in 2155# INCLUDES, setting the cache variable VAR accordingly. 2156ac_fn_c_check_header_compile () 2157{ 2158 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2160$as_echo_n "checking for $2... " >&6; } 2161if eval \${$3+:} false; then : 2162 $as_echo_n "(cached) " >&6 2163else 2164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2165/* end confdefs.h. */ 2166$4 2167#include <$2> 2168_ACEOF 2169if ac_fn_c_try_compile "$LINENO"; then : 2170 eval "$3=yes" 2171else 2172 eval "$3=no" 2173fi 2174rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2175fi 2176eval ac_res=\$$3 2177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2178$as_echo "$ac_res" >&6; } 2179 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2180 2181} # ac_fn_c_check_header_compile 2182 2183# ac_fn_c_try_link LINENO 2184# ----------------------- 2185# Try to link conftest.$ac_ext, and return whether this succeeded. 2186ac_fn_c_try_link () 2187{ 2188 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2189 rm -f conftest.$ac_objext conftest$ac_exeext 2190 if { { ac_try="$ac_link" 2191case "(($ac_try" in 2192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2193 *) ac_try_echo=$ac_try;; 2194esac 2195eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2196$as_echo "$ac_try_echo"; } >&5 2197 (eval "$ac_link") 2>conftest.err 2198 ac_status=$? 2199 if test -s conftest.err; then 2200 grep -v '^ *+' conftest.err >conftest.er1 2201 cat conftest.er1 >&5 2202 mv -f conftest.er1 conftest.err 2203 fi 2204 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2205 test $ac_status = 0; } && { 2206 test -z "$ac_c_werror_flag" || 2207 test ! -s conftest.err 2208 } && test -s conftest$ac_exeext && { 2209 test "$cross_compiling" = yes || 2210 test -x conftest$ac_exeext 2211 }; then : 2212 ac_retval=0 2213else 2214 $as_echo "$as_me: failed program was:" >&5 2215sed 's/^/| /' conftest.$ac_ext >&5 2216 2217 ac_retval=1 2218fi 2219 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2220 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2221 # interfere with the next link command; also delete a directory that is 2222 # left behind by Apple's compiler. We do this before executing the actions. 2223 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2224 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2225 as_fn_set_status $ac_retval 2226 2227} # ac_fn_c_try_link 2228 2229# ac_fn_cxx_try_compile LINENO 2230# ---------------------------- 2231# Try to compile conftest.$ac_ext, and return whether this succeeded. 2232ac_fn_cxx_try_compile () 2233{ 2234 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2235 rm -f conftest.$ac_objext 2236 if { { ac_try="$ac_compile" 2237case "(($ac_try" in 2238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2239 *) ac_try_echo=$ac_try;; 2240esac 2241eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2242$as_echo "$ac_try_echo"; } >&5 2243 (eval "$ac_compile") 2>conftest.err 2244 ac_status=$? 2245 if test -s conftest.err; then 2246 grep -v '^ *+' conftest.err >conftest.er1 2247 cat conftest.er1 >&5 2248 mv -f conftest.er1 conftest.err 2249 fi 2250 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2251 test $ac_status = 0; } && { 2252 test -z "$ac_cxx_werror_flag" || 2253 test ! -s conftest.err 2254 } && test -s conftest.$ac_objext; then : 2255 ac_retval=0 2256else 2257 $as_echo "$as_me: failed program was:" >&5 2258sed 's/^/| /' conftest.$ac_ext >&5 2259 2260 ac_retval=1 2261fi 2262 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2263 as_fn_set_status $ac_retval 2264 2265} # ac_fn_cxx_try_compile 2266 2267# ac_fn_c_check_func LINENO FUNC VAR 2268# ---------------------------------- 2269# Tests whether FUNC exists, setting the cache variable VAR accordingly 2270ac_fn_c_check_func () 2271{ 2272 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2274$as_echo_n "checking for $2... " >&6; } 2275if eval \${$3+:} false; then : 2276 $as_echo_n "(cached) " >&6 2277else 2278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2279/* end confdefs.h. */ 2280/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2281 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2282#define $2 innocuous_$2 2283 2284/* System header to define __stub macros and hopefully few prototypes, 2285 which can conflict with char $2 (); below. 2286 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2287 <limits.h> exists even on freestanding compilers. */ 2288 2289#ifdef __STDC__ 2290# include <limits.h> 2291#else 2292# include <assert.h> 2293#endif 2294 2295#undef $2 2296 2297/* Override any GCC internal prototype to avoid an error. 2298 Use char because int might match the return type of a GCC 2299 builtin and then its argument prototype would still apply. */ 2300#ifdef __cplusplus 2301extern "C" 2302#endif 2303char $2 (); 2304/* The GNU C library defines this for functions which it implements 2305 to always fail with ENOSYS. Some functions are actually named 2306 something starting with __ and the normal name is an alias. */ 2307#if defined __stub_$2 || defined __stub___$2 2308choke me 2309#endif 2310 2311int 2312main () 2313{ 2314return $2 (); 2315 ; 2316 return 0; 2317} 2318_ACEOF 2319if ac_fn_c_try_link "$LINENO"; then : 2320 eval "$3=yes" 2321else 2322 eval "$3=no" 2323fi 2324rm -f core conftest.err conftest.$ac_objext \ 2325 conftest$ac_exeext conftest.$ac_ext 2326fi 2327eval ac_res=\$$3 2328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2329$as_echo "$ac_res" >&6; } 2330 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2331 2332} # ac_fn_c_check_func 2333 2334# ac_fn_cxx_try_cpp LINENO 2335# ------------------------ 2336# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 2337ac_fn_cxx_try_cpp () 2338{ 2339 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2340 if { { ac_try="$ac_cpp conftest.$ac_ext" 2341case "(($ac_try" in 2342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2343 *) ac_try_echo=$ac_try;; 2344esac 2345eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2346$as_echo "$ac_try_echo"; } >&5 2347 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 2348 ac_status=$? 2349 if test -s conftest.err; then 2350 grep -v '^ *+' conftest.err >conftest.er1 2351 cat conftest.er1 >&5 2352 mv -f conftest.er1 conftest.err 2353 fi 2354 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2355 test $ac_status = 0; } > conftest.i && { 2356 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 2357 test ! -s conftest.err 2358 }; then : 2359 ac_retval=0 2360else 2361 $as_echo "$as_me: failed program was:" >&5 2362sed 's/^/| /' conftest.$ac_ext >&5 2363 2364 ac_retval=1 2365fi 2366 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2367 as_fn_set_status $ac_retval 2368 2369} # ac_fn_cxx_try_cpp 2370 2371# ac_fn_cxx_try_link LINENO 2372# ------------------------- 2373# Try to link conftest.$ac_ext, and return whether this succeeded. 2374ac_fn_cxx_try_link () 2375{ 2376 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2377 rm -f conftest.$ac_objext conftest$ac_exeext 2378 if { { ac_try="$ac_link" 2379case "(($ac_try" in 2380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2381 *) ac_try_echo=$ac_try;; 2382esac 2383eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2384$as_echo "$ac_try_echo"; } >&5 2385 (eval "$ac_link") 2>conftest.err 2386 ac_status=$? 2387 if test -s conftest.err; then 2388 grep -v '^ *+' conftest.err >conftest.er1 2389 cat conftest.er1 >&5 2390 mv -f conftest.er1 conftest.err 2391 fi 2392 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2393 test $ac_status = 0; } && { 2394 test -z "$ac_cxx_werror_flag" || 2395 test ! -s conftest.err 2396 } && test -s conftest$ac_exeext && { 2397 test "$cross_compiling" = yes || 2398 test -x conftest$ac_exeext 2399 }; then : 2400 ac_retval=0 2401else 2402 $as_echo "$as_me: failed program was:" >&5 2403sed 's/^/| /' conftest.$ac_ext >&5 2404 2405 ac_retval=1 2406fi 2407 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2408 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2409 # interfere with the next link command; also delete a directory that is 2410 # left behind by Apple's compiler. We do this before executing the actions. 2411 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2412 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2413 as_fn_set_status $ac_retval 2414 2415} # ac_fn_cxx_try_link 2416 2417# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2418# ------------------------------------------- 2419# Tests whether TYPE exists after having included INCLUDES, setting cache 2420# variable VAR accordingly. 2421ac_fn_c_check_type () 2422{ 2423 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2425$as_echo_n "checking for $2... " >&6; } 2426if eval \${$3+:} false; then : 2427 $as_echo_n "(cached) " >&6 2428else 2429 eval "$3=no" 2430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2431/* end confdefs.h. */ 2432$4 2433int 2434main () 2435{ 2436if (sizeof ($2)) 2437 return 0; 2438 ; 2439 return 0; 2440} 2441_ACEOF 2442if ac_fn_c_try_compile "$LINENO"; then : 2443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2444/* end confdefs.h. */ 2445$4 2446int 2447main () 2448{ 2449if (sizeof (($2))) 2450 return 0; 2451 ; 2452 return 0; 2453} 2454_ACEOF 2455if ac_fn_c_try_compile "$LINENO"; then : 2456 2457else 2458 eval "$3=yes" 2459fi 2460rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2461fi 2462rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2463fi 2464eval ac_res=\$$3 2465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2466$as_echo "$ac_res" >&6; } 2467 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2468 2469} # ac_fn_c_check_type 2470 2471# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 2472# -------------------------------------------- 2473# Tries to find the compile-time value of EXPR in a program that includes 2474# INCLUDES, setting VAR accordingly. Returns whether the value could be 2475# computed 2476ac_fn_c_compute_int () 2477{ 2478 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2479 if test "$cross_compiling" = yes; then 2480 # Depending upon the size, compute the lo and hi bounds. 2481cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2482/* end confdefs.h. */ 2483$4 2484int 2485main () 2486{ 2487static int test_array [1 - 2 * !(($2) >= 0)]; 2488test_array [0] = 0; 2489return test_array [0]; 2490 2491 ; 2492 return 0; 2493} 2494_ACEOF 2495if ac_fn_c_try_compile "$LINENO"; then : 2496 ac_lo=0 ac_mid=0 2497 while :; do 2498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2499/* end confdefs.h. */ 2500$4 2501int 2502main () 2503{ 2504static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2505test_array [0] = 0; 2506return test_array [0]; 2507 2508 ; 2509 return 0; 2510} 2511_ACEOF 2512if ac_fn_c_try_compile "$LINENO"; then : 2513 ac_hi=$ac_mid; break 2514else 2515 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2516 if test $ac_lo -le $ac_mid; then 2517 ac_lo= ac_hi= 2518 break 2519 fi 2520 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2521fi 2522rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2523 done 2524else 2525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2526/* end confdefs.h. */ 2527$4 2528int 2529main () 2530{ 2531static int test_array [1 - 2 * !(($2) < 0)]; 2532test_array [0] = 0; 2533return test_array [0]; 2534 2535 ; 2536 return 0; 2537} 2538_ACEOF 2539if ac_fn_c_try_compile "$LINENO"; then : 2540 ac_hi=-1 ac_mid=-1 2541 while :; do 2542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2543/* end confdefs.h. */ 2544$4 2545int 2546main () 2547{ 2548static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2549test_array [0] = 0; 2550return test_array [0]; 2551 2552 ; 2553 return 0; 2554} 2555_ACEOF 2556if ac_fn_c_try_compile "$LINENO"; then : 2557 ac_lo=$ac_mid; break 2558else 2559 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2560 if test $ac_mid -le $ac_hi; then 2561 ac_lo= ac_hi= 2562 break 2563 fi 2564 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2565fi 2566rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2567 done 2568else 2569 ac_lo= ac_hi= 2570fi 2571rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2572fi 2573rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2574# Binary search between lo and hi bounds. 2575while test "x$ac_lo" != "x$ac_hi"; do 2576 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2578/* end confdefs.h. */ 2579$4 2580int 2581main () 2582{ 2583static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2584test_array [0] = 0; 2585return test_array [0]; 2586 2587 ; 2588 return 0; 2589} 2590_ACEOF 2591if ac_fn_c_try_compile "$LINENO"; then : 2592 ac_hi=$ac_mid 2593else 2594 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2595fi 2596rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2597done 2598case $ac_lo in #(( 2599?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2600'') ac_retval=1 ;; 2601esac 2602 else 2603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2604/* end confdefs.h. */ 2605$4 2606static long int longval () { return $2; } 2607static unsigned long int ulongval () { return $2; } 2608#include <stdio.h> 2609#include <stdlib.h> 2610int 2611main () 2612{ 2613 2614 FILE *f = fopen ("conftest.val", "w"); 2615 if (! f) 2616 return 1; 2617 if (($2) < 0) 2618 { 2619 long int i = longval (); 2620 if (i != ($2)) 2621 return 1; 2622 fprintf (f, "%ld", i); 2623 } 2624 else 2625 { 2626 unsigned long int i = ulongval (); 2627 if (i != ($2)) 2628 return 1; 2629 fprintf (f, "%lu", i); 2630 } 2631 /* Do not output a trailing newline, as this causes \r\n confusion 2632 on some platforms. */ 2633 return ferror (f) || fclose (f) != 0; 2634 2635 ; 2636 return 0; 2637} 2638_ACEOF 2639if ac_fn_c_try_run "$LINENO"; then : 2640 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2641else 2642 ac_retval=1 2643fi 2644rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2645 conftest.$ac_objext conftest.beam conftest.$ac_ext 2646rm -f conftest.val 2647 2648 fi 2649 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2650 as_fn_set_status $ac_retval 2651 2652} # ac_fn_c_compute_int 2653 2654# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 2655# --------------------------------------------- 2656# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 2657# accordingly. 2658ac_fn_c_check_decl () 2659{ 2660 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2661 as_decl_name=`echo $2|sed 's/ *(.*//'` 2662 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 2663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 2664$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 2665if eval \${$3+:} false; then : 2666 $as_echo_n "(cached) " >&6 2667else 2668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2669/* end confdefs.h. */ 2670$4 2671int 2672main () 2673{ 2674#ifndef $as_decl_name 2675#ifdef __cplusplus 2676 (void) $as_decl_use; 2677#else 2678 (void) $as_decl_name; 2679#endif 2680#endif 2681 2682 ; 2683 return 0; 2684} 2685_ACEOF 2686if ac_fn_c_try_compile "$LINENO"; then : 2687 eval "$3=yes" 2688else 2689 eval "$3=no" 2690fi 2691rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2692fi 2693eval ac_res=\$$3 2694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2695$as_echo "$ac_res" >&6; } 2696 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2697 2698} # ac_fn_c_check_decl 2699 2700# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 2701# ---------------------------------------------------- 2702# Tries to find if the field MEMBER exists in type AGGR, after including 2703# INCLUDES, setting cache variable VAR accordingly. 2704ac_fn_c_check_member () 2705{ 2706 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 2708$as_echo_n "checking for $2.$3... " >&6; } 2709if eval \${$4+:} false; then : 2710 $as_echo_n "(cached) " >&6 2711else 2712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2713/* end confdefs.h. */ 2714$5 2715int 2716main () 2717{ 2718static $2 ac_aggr; 2719if (ac_aggr.$3) 2720return 0; 2721 ; 2722 return 0; 2723} 2724_ACEOF 2725if ac_fn_c_try_compile "$LINENO"; then : 2726 eval "$4=yes" 2727else 2728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2729/* end confdefs.h. */ 2730$5 2731int 2732main () 2733{ 2734static $2 ac_aggr; 2735if (sizeof ac_aggr.$3) 2736return 0; 2737 ; 2738 return 0; 2739} 2740_ACEOF 2741if ac_fn_c_try_compile "$LINENO"; then : 2742 eval "$4=yes" 2743else 2744 eval "$4=no" 2745fi 2746rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2747fi 2748rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2749fi 2750eval ac_res=\$$4 2751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2752$as_echo "$ac_res" >&6; } 2753 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2754 2755} # ac_fn_c_check_member 2756cat >config.log <<_ACEOF 2757This file contains any messages produced by compilers while 2758running configure, to aid debugging if configure makes a mistake. 2759 2760It was created by ntp $as_me 4.2.8p5, which was 2761generated by GNU Autoconf 2.69. Invocation command line was 2762 2763 $ $0 $@ 2764 2765_ACEOF 2766exec 5>>config.log 2767{ 2768cat <<_ASUNAME 2769## --------- ## 2770## Platform. ## 2771## --------- ## 2772 2773hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2774uname -m = `(uname -m) 2>/dev/null || echo unknown` 2775uname -r = `(uname -r) 2>/dev/null || echo unknown` 2776uname -s = `(uname -s) 2>/dev/null || echo unknown` 2777uname -v = `(uname -v) 2>/dev/null || echo unknown` 2778 2779/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2780/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2781 2782/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2783/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2784/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2785/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2786/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2787/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2788/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2789 2790_ASUNAME 2791 2792as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2793for as_dir in $PATH 2794do 2795 IFS=$as_save_IFS 2796 test -z "$as_dir" && as_dir=. 2797 $as_echo "PATH: $as_dir" 2798 done 2799IFS=$as_save_IFS 2800 2801} >&5 2802 2803cat >&5 <<_ACEOF 2804 2805 2806## ----------- ## 2807## Core tests. ## 2808## ----------- ## 2809 2810_ACEOF 2811 2812 2813# Keep a trace of the command line. 2814# Strip out --no-create and --no-recursion so they do not pile up. 2815# Strip out --silent because we don't want to record it for future runs. 2816# Also quote any args containing shell meta-characters. 2817# Make two passes to allow for proper duplicate-argument suppression. 2818ac_configure_args= 2819ac_configure_args0= 2820ac_configure_args1= 2821ac_must_keep_next=false 2822for ac_pass in 1 2 2823do 2824 for ac_arg 2825 do 2826 case $ac_arg in 2827 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2828 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2829 | -silent | --silent | --silen | --sile | --sil) 2830 continue ;; 2831 *\'*) 2832 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2833 esac 2834 case $ac_pass in 2835 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2836 2) 2837 as_fn_append ac_configure_args1 " '$ac_arg'" 2838 if test $ac_must_keep_next = true; then 2839 ac_must_keep_next=false # Got value, back to normal. 2840 else 2841 case $ac_arg in 2842 *=* | --config-cache | -C | -disable-* | --disable-* \ 2843 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2844 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2845 | -with-* | --with-* | -without-* | --without-* | --x) 2846 case "$ac_configure_args0 " in 2847 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2848 esac 2849 ;; 2850 -* ) ac_must_keep_next=true ;; 2851 esac 2852 fi 2853 as_fn_append ac_configure_args " '$ac_arg'" 2854 ;; 2855 esac 2856 done 2857done 2858{ ac_configure_args0=; unset ac_configure_args0;} 2859{ ac_configure_args1=; unset ac_configure_args1;} 2860 2861# When interrupted or exit'd, cleanup temporary files, and complete 2862# config.log. We remove comments because anyway the quotes in there 2863# would cause problems or look ugly. 2864# WARNING: Use '\'' to represent an apostrophe within the trap. 2865# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2866trap 'exit_status=$? 2867 # Save into config.log some information that might help in debugging. 2868 { 2869 echo 2870 2871 $as_echo "## ---------------- ## 2872## Cache variables. ## 2873## ---------------- ##" 2874 echo 2875 # The following way of writing the cache mishandles newlines in values, 2876( 2877 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2878 eval ac_val=\$$ac_var 2879 case $ac_val in #( 2880 *${as_nl}*) 2881 case $ac_var in #( 2882 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2883$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2884 esac 2885 case $ac_var in #( 2886 _ | IFS | as_nl) ;; #( 2887 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2888 *) { eval $ac_var=; unset $ac_var;} ;; 2889 esac ;; 2890 esac 2891 done 2892 (set) 2>&1 | 2893 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2894 *${as_nl}ac_space=\ *) 2895 sed -n \ 2896 "s/'\''/'\''\\\\'\'''\''/g; 2897 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2898 ;; #( 2899 *) 2900 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2901 ;; 2902 esac | 2903 sort 2904) 2905 echo 2906 2907 $as_echo "## ----------------- ## 2908## Output variables. ## 2909## ----------------- ##" 2910 echo 2911 for ac_var in $ac_subst_vars 2912 do 2913 eval ac_val=\$$ac_var 2914 case $ac_val in 2915 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2916 esac 2917 $as_echo "$ac_var='\''$ac_val'\''" 2918 done | sort 2919 echo 2920 2921 if test -n "$ac_subst_files"; then 2922 $as_echo "## ------------------- ## 2923## File substitutions. ## 2924## ------------------- ##" 2925 echo 2926 for ac_var in $ac_subst_files 2927 do 2928 eval ac_val=\$$ac_var 2929 case $ac_val in 2930 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2931 esac 2932 $as_echo "$ac_var='\''$ac_val'\''" 2933 done | sort 2934 echo 2935 fi 2936 2937 if test -s confdefs.h; then 2938 $as_echo "## ----------- ## 2939## confdefs.h. ## 2940## ----------- ##" 2941 echo 2942 cat confdefs.h 2943 echo 2944 fi 2945 test "$ac_signal" != 0 && 2946 $as_echo "$as_me: caught signal $ac_signal" 2947 $as_echo "$as_me: exit $exit_status" 2948 } >&5 2949 rm -f core *.core core.conftest.* && 2950 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2951 exit $exit_status 2952' 0 2953for ac_signal in 1 2 13 15; do 2954 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2955done 2956ac_signal=0 2957 2958# confdefs.h avoids OS command line length limits that DEFS can exceed. 2959rm -f -r conftest* confdefs.h 2960 2961$as_echo "/* confdefs.h */" > confdefs.h 2962 2963# Predefined preprocessor variables. 2964 2965cat >>confdefs.h <<_ACEOF 2966#define PACKAGE_NAME "$PACKAGE_NAME" 2967_ACEOF 2968 2969cat >>confdefs.h <<_ACEOF 2970#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2971_ACEOF 2972 2973cat >>confdefs.h <<_ACEOF 2974#define PACKAGE_VERSION "$PACKAGE_VERSION" 2975_ACEOF 2976 2977cat >>confdefs.h <<_ACEOF 2978#define PACKAGE_STRING "$PACKAGE_STRING" 2979_ACEOF 2980 2981cat >>confdefs.h <<_ACEOF 2982#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2983_ACEOF 2984 2985cat >>confdefs.h <<_ACEOF 2986#define PACKAGE_URL "$PACKAGE_URL" 2987_ACEOF 2988 2989 2990# Let the site file select an alternate cache file if it wants to. 2991# Prefer an explicitly selected file to automatically selected ones. 2992ac_site_file1=NONE 2993ac_site_file2=NONE 2994if test -n "$CONFIG_SITE"; then 2995 # We do not want a PATH search for config.site. 2996 case $CONFIG_SITE in #(( 2997 -*) ac_site_file1=./$CONFIG_SITE;; 2998 */*) ac_site_file1=$CONFIG_SITE;; 2999 *) ac_site_file1=./$CONFIG_SITE;; 3000 esac 3001elif test "x$prefix" != xNONE; then 3002 ac_site_file1=$prefix/share/config.site 3003 ac_site_file2=$prefix/etc/config.site 3004else 3005 ac_site_file1=$ac_default_prefix/share/config.site 3006 ac_site_file2=$ac_default_prefix/etc/config.site 3007fi 3008for ac_site_file in "$ac_site_file1" "$ac_site_file2" 3009do 3010 test "x$ac_site_file" = xNONE && continue 3011 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 3012 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 3013$as_echo "$as_me: loading site script $ac_site_file" >&6;} 3014 sed 's/^/| /' "$ac_site_file" >&5 3015 . "$ac_site_file" \ 3016 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3017$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3018as_fn_error $? "failed to load site script $ac_site_file 3019See \`config.log' for more details" "$LINENO" 5; } 3020 fi 3021done 3022 3023if test -r "$cache_file"; then 3024 # Some versions of bash will fail to source /dev/null (special files 3025 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 3026 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 3027 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 3028$as_echo "$as_me: loading cache $cache_file" >&6;} 3029 case $cache_file in 3030 [\\/]* | ?:[\\/]* ) . "$cache_file";; 3031 *) . "./$cache_file";; 3032 esac 3033 fi 3034else 3035 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 3036$as_echo "$as_me: creating cache $cache_file" >&6;} 3037 >$cache_file 3038fi 3039 3040as_fn_append ac_header_list " stdarg.h" 3041# Check that the precious variables saved in the cache have kept the same 3042# value. 3043ac_cache_corrupted=false 3044for ac_var in $ac_precious_vars; do 3045 eval ac_old_set=\$ac_cv_env_${ac_var}_set 3046 eval ac_new_set=\$ac_env_${ac_var}_set 3047 eval ac_old_val=\$ac_cv_env_${ac_var}_value 3048 eval ac_new_val=\$ac_env_${ac_var}_value 3049 case $ac_old_set,$ac_new_set in 3050 set,) 3051 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 3052$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 3053 ac_cache_corrupted=: ;; 3054 ,set) 3055 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 3056$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 3057 ac_cache_corrupted=: ;; 3058 ,);; 3059 *) 3060 if test "x$ac_old_val" != "x$ac_new_val"; then 3061 # differences in whitespace do not lead to failure. 3062 ac_old_val_w=`echo x $ac_old_val` 3063 ac_new_val_w=`echo x $ac_new_val` 3064 if test "$ac_old_val_w" != "$ac_new_val_w"; then 3065 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 3066$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 3067 ac_cache_corrupted=: 3068 else 3069 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 3070$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 3071 eval $ac_var=\$ac_old_val 3072 fi 3073 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 3074$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 3075 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 3076$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 3077 fi;; 3078 esac 3079 # Pass precious variables to config.status. 3080 if test "$ac_new_set" = set; then 3081 case $ac_new_val in 3082 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 3083 *) ac_arg=$ac_var=$ac_new_val ;; 3084 esac 3085 case " $ac_configure_args " in 3086 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 3087 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 3088 esac 3089 fi 3090done 3091if $ac_cache_corrupted; then 3092 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3093$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3094 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 3095$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 3096 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 3097fi 3098## -------------------- ## 3099## Main body of script. ## 3100## -------------------- ## 3101 3102ac_ext=c 3103ac_cpp='$CPP $CPPFLAGS' 3104ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3105ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3106ac_compiler_gnu=$ac_cv_c_compiler_gnu 3107 3108 3109 3110ac_aux_dir= 3111for ac_dir in sntp/libevent/build-aux "$srcdir"/sntp/libevent/build-aux; do 3112 if test -f "$ac_dir/install-sh"; then 3113 ac_aux_dir=$ac_dir 3114 ac_install_sh="$ac_aux_dir/install-sh -c" 3115 break 3116 elif test -f "$ac_dir/install.sh"; then 3117 ac_aux_dir=$ac_dir 3118 ac_install_sh="$ac_aux_dir/install.sh -c" 3119 break 3120 elif test -f "$ac_dir/shtool"; then 3121 ac_aux_dir=$ac_dir 3122 ac_install_sh="$ac_aux_dir/shtool install -c" 3123 break 3124 fi 3125done 3126if test -z "$ac_aux_dir"; then 3127 as_fn_error $? "cannot find install-sh, install.sh, or shtool in sntp/libevent/build-aux \"$srcdir\"/sntp/libevent/build-aux" "$LINENO" 5 3128fi 3129 3130# These three variables are undocumented and unsupported, 3131# and are intended to be withdrawn in a future Autoconf release. 3132# They can cause serious problems if a builder's source tree is in a directory 3133# whose full name contains unusual characters. 3134ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 3135ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 3136ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 3137 3138 3139ac_ext=c 3140ac_cpp='$CPP $CPPFLAGS' 3141ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3142ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3143ac_compiler_gnu=$ac_cv_c_compiler_gnu 3144 3145 3146 3147 3148 3149 3150# Bump ntp_configure_cache_version for each change to configure.ac or 3151# .m4 files which invalidates cached values from previous configure 3152# runs. 3153# 3154# If the change affects cache variables used only by the main NTP 3155# configure.ac, then only its version number should be bumped, while 3156# the subdir configure.ac version numbers should be unchanged. The 3157# same is true for a test/variable that is used only by one subdir 3158# being changed incompatibly; only that subdir's cache version needs 3159# bumping. 3160# 3161# If a change affects variables shared by all NTP configure scripts, 3162# please bump the version numbers of each. If you are not sure, the 3163# safe choice is to bump all on any cache-invalidating change. 3164# 3165# In order to avoid the risk of version stamp collision between -stable 3166# and -dev branches, do not simply increment the version, instead use 3167# the date YYYYMMDD optionally with -HHMM if there is more than one 3168# bump in a day. 3169 3170ntp_configure_cache_version=20120806 3171 3172# When the cache version of config.cache and configure do not 3173# match, NTP_CACHEVERSION will flush the cache. 3174 3175 3176 3177 ntp_cache_flush=1 3178 3179 case "$ntp_cv_main_cache_version" in 3180 $ntp_configure_cache_version) 3181 # same version, good 3182 ntp_cache_flush=0 3183 ;; 3184 '') 3185 # No cache, predates ntp_cv_main_cache_version, or is empty. 3186 case "$cache_file" in 3187 /dev/null) 3188 ntp_cache_flush=0 3189 ;; 3190 *) 3191 case "$NTP_CACHEVERSION_PARENT" in 3192 '') 3193 # Do not clear the cache immediately after it is created 3194 # empty as it is noisy. Differentiate a newly-created 3195 # config.cache from one predating the cache version 3196 # mechanism by looking for the first cached variable set 3197 # by Autoconf 3198 case "$ac_cv_path_install" in 3199 '') 3200 # empty config.cache file 3201 ntp_cache_flush=0 3202 esac 3203 ;; 3204 *) 3205 # Parent configure just created cache from empty, 3206 # flushing would be counterproductive. 3207 ntp_cache_flush=0; 3208 ;; 3209 esac 3210 esac 3211 ;; 3212 *) 3213 # configure cache version mismatches config.cache version 3214 ;; 3215 esac 3216 3217 case "$ntp_cache_flush" in 3218 1) 3219 c_version="${ntp_cv_main_cache_version:-(no version found)}" 3220 3221 # Do we flush all variables or exclude others' version stamps? 3222 3223 case "$NTP_CACHEVERSION_PARENT" in 3224 '') 3225 # Clear all *_cv_* variables including our child subdirs' 3226 # ntp_cv_*_cache_version variables. This prevents subdir 3227 # configure scripts from noticing a version mismatch just 3228 # after the top configure in the invocation cleared and 3229 # recreated the cache. 3230 3231 c_varname_list=`set | 3232 sed -n -e 's/=.*$//' \ 3233 -e '/_cv_/p' 3234 ` 3235 ;; 3236 *) 3237 # This is not the top configure this particular invocation. 3238 # Clear all *_cv_* variables sparing the version stamps 3239 # of other configure scripts, so we don't trigger 3240 # useless repeated clearings. 3241 3242 c_varname_list=`set | 3243 sed -n -e 's/=.*$//' \ 3244 -e '/ntp_cv_.*_cache_version/d' \ 3245 -e '/_cv_/p' 3246 ` 3247 esac 3248 3249 for c_varname in $c_varname_list 3250 do 3251 { eval $c_varname=; unset $c_varname; } 3252 done 3253 3254 { $as_echo "$as_me:${as_lineno-$LINENO}: $cache_file saved by another version, ignored." >&5 3255$as_echo "$as_me: $cache_file saved by another version, ignored." >&6;} 3256 { $as_echo "$as_me:${as_lineno-$LINENO}: configure script cache version: $ntp_configure_cache_version" >&5 3257$as_echo "$as_me: configure script cache version: $ntp_configure_cache_version" >&6;} 3258 { $as_echo "$as_me:${as_lineno-$LINENO}: $cache_file version: $c_version" >&5 3259$as_echo "$as_me: $cache_file version: $c_version" >&6;} 3260 { c_varname=; unset c_varname;} 3261 { c_varname_list=; unset c_varname_list;} 3262 { c_version=; unset c_version;} 3263 esac 3264 3265 { ntp_cache_flush=; unset ntp_cache_flush;} 3266 3267 # save configure version in config.cache for next time 3268 ntp_cv_main_cache_version="$ntp_configure_cache_version" 3269 3270 # let any subdir configure.ac NTP_CACHEVERSION invocations 3271 # know they are not the top level. 3272 NTP_CACHEVERSION_PARENT='main' ; export NTP_CACHEVERSION_PARENT 3273 3274 3275am__api_version='1.15' 3276 3277# Find a good install program. We prefer a C program (faster), 3278# so one script is as good as another. But avoid the broken or 3279# incompatible versions: 3280# SysV /etc/install, /usr/sbin/install 3281# SunOS /usr/etc/install 3282# IRIX /sbin/install 3283# AIX /bin/install 3284# AmigaOS /C/install, which installs bootblocks on floppy discs 3285# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3286# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3287# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3288# OS/2's system install, which has a completely different semantic 3289# ./install, which can be erroneously created by make from ./install.sh. 3290# Reject install programs that cannot install multiple files. 3291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 3292$as_echo_n "checking for a BSD-compatible install... " >&6; } 3293if test -z "$INSTALL"; then 3294if ${ac_cv_path_install+:} false; then : 3295 $as_echo_n "(cached) " >&6 3296else 3297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3298for as_dir in $PATH 3299do 3300 IFS=$as_save_IFS 3301 test -z "$as_dir" && as_dir=. 3302 # Account for people who put trailing slashes in PATH elements. 3303case $as_dir/ in #(( 3304 ./ | .// | /[cC]/* | \ 3305 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3306 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 3307 /usr/ucb/* ) ;; 3308 *) 3309 # OSF1 and SCO ODT 3.0 have their own names for install. 3310 # Don't use installbsd from OSF since it installs stuff as root 3311 # by default. 3312 for ac_prog in ginstall scoinst install; do 3313 for ac_exec_ext in '' $ac_executable_extensions; do 3314 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 3315 if test $ac_prog = install && 3316 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3317 # AIX install. It has an incompatible calling convention. 3318 : 3319 elif test $ac_prog = install && 3320 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3321 # program-specific install script used by HP pwplus--don't use. 3322 : 3323 else 3324 rm -rf conftest.one conftest.two conftest.dir 3325 echo one > conftest.one 3326 echo two > conftest.two 3327 mkdir conftest.dir 3328 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 3329 test -s conftest.one && test -s conftest.two && 3330 test -s conftest.dir/conftest.one && 3331 test -s conftest.dir/conftest.two 3332 then 3333 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3334 break 3 3335 fi 3336 fi 3337 fi 3338 done 3339 done 3340 ;; 3341esac 3342 3343 done 3344IFS=$as_save_IFS 3345 3346rm -rf conftest.one conftest.two conftest.dir 3347 3348fi 3349 if test "${ac_cv_path_install+set}" = set; then 3350 INSTALL=$ac_cv_path_install 3351 else 3352 # As a last resort, use the slow shell script. Don't cache a 3353 # value for INSTALL within a source directory, because that will 3354 # break other packages using the cache if that directory is 3355 # removed, or if the value is a relative name. 3356 INSTALL=$ac_install_sh 3357 fi 3358fi 3359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 3360$as_echo "$INSTALL" >&6; } 3361 3362# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3363# It thinks the first close brace ends the variable substitution. 3364test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3365 3366test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3367 3368test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3369 3370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 3371$as_echo_n "checking whether build environment is sane... " >&6; } 3372# Reject unsafe characters in $srcdir or the absolute working directory 3373# name. Accept space and tab only in the latter. 3374am_lf=' 3375' 3376case `pwd` in 3377 *[\\\"\#\$\&\'\`$am_lf]*) 3378 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 3379esac 3380case $srcdir in 3381 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 3382 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 3383esac 3384 3385# Do 'set' in a subshell so we don't clobber the current shell's 3386# arguments. Must try -L first in case configure is actually a 3387# symlink; some systems play weird games with the mod time of symlinks 3388# (eg FreeBSD returns the mod time of the symlink's containing 3389# directory). 3390if ( 3391 am_has_slept=no 3392 for am_try in 1 2; do 3393 echo "timestamp, slept: $am_has_slept" > conftest.file 3394 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 3395 if test "$*" = "X"; then 3396 # -L didn't work. 3397 set X `ls -t "$srcdir/configure" conftest.file` 3398 fi 3399 if test "$*" != "X $srcdir/configure conftest.file" \ 3400 && test "$*" != "X conftest.file $srcdir/configure"; then 3401 3402 # If neither matched, then we have a broken ls. This can happen 3403 # if, for instance, CONFIG_SHELL is bash and it inherits a 3404 # broken ls alias from the environment. This has actually 3405 # happened. Such a system could not be considered "sane". 3406 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 3407 alias in your environment" "$LINENO" 5 3408 fi 3409 if test "$2" = conftest.file || test $am_try -eq 2; then 3410 break 3411 fi 3412 # Just in case. 3413 sleep 1 3414 am_has_slept=yes 3415 done 3416 test "$2" = conftest.file 3417 ) 3418then 3419 # Ok. 3420 : 3421else 3422 as_fn_error $? "newly created file is older than distributed files! 3423Check your system clock" "$LINENO" 5 3424fi 3425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3426$as_echo "yes" >&6; } 3427# If we didn't sleep, we still need to ensure time stamps of config.status and 3428# generated files are strictly newer. 3429am_sleep_pid= 3430if grep 'slept: no' conftest.file >/dev/null 2>&1; then 3431 ( sleep 1 ) & 3432 am_sleep_pid=$! 3433fi 3434 3435rm -f conftest.file 3436 3437test "$program_prefix" != NONE && 3438 program_transform_name="s&^&$program_prefix&;$program_transform_name" 3439# Use a double $ so make ignores it. 3440test "$program_suffix" != NONE && 3441 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 3442# Double any \ or $. 3443# By default was `s,x,x', remove it if useless. 3444ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 3445program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 3446 3447# Expand $ac_aux_dir to an absolute path. 3448am_aux_dir=`cd "$ac_aux_dir" && pwd` 3449 3450if test x"${MISSING+set}" != xset; then 3451 case $am_aux_dir in 3452 *\ * | *\ *) 3453 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 3454 *) 3455 MISSING="\${SHELL} $am_aux_dir/missing" ;; 3456 esac 3457fi 3458# Use eval to expand $SHELL 3459if eval "$MISSING --is-lightweight"; then 3460 am_missing_run="$MISSING " 3461else 3462 am_missing_run= 3463 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 3464$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 3465fi 3466 3467if test x"${install_sh+set}" != xset; then 3468 case $am_aux_dir in 3469 *\ * | *\ *) 3470 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 3471 *) 3472 install_sh="\${SHELL} $am_aux_dir/install-sh" 3473 esac 3474fi 3475 3476# Installed binaries are usually stripped using 'strip' when the user 3477# run "make install-strip". However 'strip' might not be the right 3478# tool to use in cross-compilation environments, therefore Automake 3479# will honor the 'STRIP' environment variable to overrule this program. 3480if test "$cross_compiling" != no; then 3481 if test -n "$ac_tool_prefix"; then 3482 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3483set dummy ${ac_tool_prefix}strip; ac_word=$2 3484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3485$as_echo_n "checking for $ac_word... " >&6; } 3486if ${ac_cv_prog_STRIP+:} false; then : 3487 $as_echo_n "(cached) " >&6 3488else 3489 if test -n "$STRIP"; then 3490 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3491else 3492as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3493for as_dir in $PATH 3494do 3495 IFS=$as_save_IFS 3496 test -z "$as_dir" && as_dir=. 3497 for ac_exec_ext in '' $ac_executable_extensions; do 3498 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3499 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3501 break 2 3502 fi 3503done 3504 done 3505IFS=$as_save_IFS 3506 3507fi 3508fi 3509STRIP=$ac_cv_prog_STRIP 3510if test -n "$STRIP"; then 3511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3512$as_echo "$STRIP" >&6; } 3513else 3514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3515$as_echo "no" >&6; } 3516fi 3517 3518 3519fi 3520if test -z "$ac_cv_prog_STRIP"; then 3521 ac_ct_STRIP=$STRIP 3522 # Extract the first word of "strip", so it can be a program name with args. 3523set dummy strip; ac_word=$2 3524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3525$as_echo_n "checking for $ac_word... " >&6; } 3526if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 3527 $as_echo_n "(cached) " >&6 3528else 3529 if test -n "$ac_ct_STRIP"; then 3530 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3531else 3532as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3533for as_dir in $PATH 3534do 3535 IFS=$as_save_IFS 3536 test -z "$as_dir" && as_dir=. 3537 for ac_exec_ext in '' $ac_executable_extensions; do 3538 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3539 ac_cv_prog_ac_ct_STRIP="strip" 3540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3541 break 2 3542 fi 3543done 3544 done 3545IFS=$as_save_IFS 3546 3547fi 3548fi 3549ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3550if test -n "$ac_ct_STRIP"; then 3551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3552$as_echo "$ac_ct_STRIP" >&6; } 3553else 3554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3555$as_echo "no" >&6; } 3556fi 3557 3558 if test "x$ac_ct_STRIP" = x; then 3559 STRIP=":" 3560 else 3561 case $cross_compiling:$ac_tool_warned in 3562yes:) 3563{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3564$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3565ac_tool_warned=yes ;; 3566esac 3567 STRIP=$ac_ct_STRIP 3568 fi 3569else 3570 STRIP="$ac_cv_prog_STRIP" 3571fi 3572 3573fi 3574INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3575 3576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 3577$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 3578if test -z "$MKDIR_P"; then 3579 if ${ac_cv_path_mkdir+:} false; then : 3580 $as_echo_n "(cached) " >&6 3581else 3582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3583for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3584do 3585 IFS=$as_save_IFS 3586 test -z "$as_dir" && as_dir=. 3587 for ac_prog in mkdir gmkdir; do 3588 for ac_exec_ext in '' $ac_executable_extensions; do 3589 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 3590 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 3591 'mkdir (GNU coreutils) '* | \ 3592 'mkdir (coreutils) '* | \ 3593 'mkdir (fileutils) '4.1*) 3594 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 3595 break 3;; 3596 esac 3597 done 3598 done 3599 done 3600IFS=$as_save_IFS 3601 3602fi 3603 3604 test -d ./--version && rmdir ./--version 3605 if test "${ac_cv_path_mkdir+set}" = set; then 3606 MKDIR_P="$ac_cv_path_mkdir -p" 3607 else 3608 # As a last resort, use the slow shell script. Don't cache a 3609 # value for MKDIR_P within a source directory, because that will 3610 # break other packages using the cache if that directory is 3611 # removed, or if the value is a relative name. 3612 MKDIR_P="$ac_install_sh -d" 3613 fi 3614fi 3615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3616$as_echo "$MKDIR_P" >&6; } 3617 3618for ac_prog in gawk mawk nawk awk 3619do 3620 # Extract the first word of "$ac_prog", so it can be a program name with args. 3621set dummy $ac_prog; ac_word=$2 3622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3623$as_echo_n "checking for $ac_word... " >&6; } 3624if ${ac_cv_prog_AWK+:} false; then : 3625 $as_echo_n "(cached) " >&6 3626else 3627 if test -n "$AWK"; then 3628 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3629else 3630as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3631for as_dir in $PATH 3632do 3633 IFS=$as_save_IFS 3634 test -z "$as_dir" && as_dir=. 3635 for ac_exec_ext in '' $ac_executable_extensions; do 3636 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3637 ac_cv_prog_AWK="$ac_prog" 3638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3639 break 2 3640 fi 3641done 3642 done 3643IFS=$as_save_IFS 3644 3645fi 3646fi 3647AWK=$ac_cv_prog_AWK 3648if test -n "$AWK"; then 3649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3650$as_echo "$AWK" >&6; } 3651else 3652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3653$as_echo "no" >&6; } 3654fi 3655 3656 3657 test -n "$AWK" && break 3658done 3659 3660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3661$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3662set x ${MAKE-make} 3663ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3664if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 3665 $as_echo_n "(cached) " >&6 3666else 3667 cat >conftest.make <<\_ACEOF 3668SHELL = /bin/sh 3669all: 3670 @echo '@@@%%%=$(MAKE)=@@@%%%' 3671_ACEOF 3672# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3673case `${MAKE-make} -f conftest.make 2>/dev/null` in 3674 *@@@%%%=?*=@@@%%%*) 3675 eval ac_cv_prog_make_${ac_make}_set=yes;; 3676 *) 3677 eval ac_cv_prog_make_${ac_make}_set=no;; 3678esac 3679rm -f conftest.make 3680fi 3681if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3683$as_echo "yes" >&6; } 3684 SET_MAKE= 3685else 3686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3687$as_echo "no" >&6; } 3688 SET_MAKE="MAKE=${MAKE-make}" 3689fi 3690 3691rm -rf .tst 2>/dev/null 3692mkdir .tst 2>/dev/null 3693if test -d .tst; then 3694 am__leading_dot=. 3695else 3696 am__leading_dot=_ 3697fi 3698rmdir .tst 2>/dev/null 3699 3700# Check whether --enable-silent-rules was given. 3701if test "${enable_silent_rules+set}" = set; then : 3702 enableval=$enable_silent_rules; 3703fi 3704 3705case $enable_silent_rules in # ((( 3706 yes) AM_DEFAULT_VERBOSITY=0;; 3707 no) AM_DEFAULT_VERBOSITY=1;; 3708 *) AM_DEFAULT_VERBOSITY=1;; 3709esac 3710am_make=${MAKE-make} 3711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3712$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 3713if ${am_cv_make_support_nested_variables+:} false; then : 3714 $as_echo_n "(cached) " >&6 3715else 3716 if $as_echo 'TRUE=$(BAR$(V)) 3717BAR0=false 3718BAR1=true 3719V=1 3720am__doit: 3721 @$(TRUE) 3722.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3723 am_cv_make_support_nested_variables=yes 3724else 3725 am_cv_make_support_nested_variables=no 3726fi 3727fi 3728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3729$as_echo "$am_cv_make_support_nested_variables" >&6; } 3730if test $am_cv_make_support_nested_variables = yes; then 3731 AM_V='$(V)' 3732 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3733else 3734 AM_V=$AM_DEFAULT_VERBOSITY 3735 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3736fi 3737AM_BACKSLASH='\' 3738 3739if test "`cd $srcdir && pwd`" != "`pwd`"; then 3740 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3741 # is not polluted with repeated "-I." 3742 am__isrc=' -I$(srcdir)' 3743 # test to see if srcdir already configured 3744 if test -f $srcdir/config.status; then 3745 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3746 fi 3747fi 3748 3749# test whether we have cygpath 3750if test -z "$CYGPATH_W"; then 3751 if (cygpath --version) >/dev/null 2>/dev/null; then 3752 CYGPATH_W='cygpath -w' 3753 else 3754 CYGPATH_W=echo 3755 fi 3756fi 3757 3758 3759# Define the identity of the package. 3760 PACKAGE='ntp' 3761 VERSION='4.2.8p5' 3762 3763 3764cat >>confdefs.h <<_ACEOF 3765#define PACKAGE "$PACKAGE" 3766_ACEOF 3767 3768 3769cat >>confdefs.h <<_ACEOF 3770#define VERSION "$VERSION" 3771_ACEOF 3772 3773# Some tools Automake needs. 3774 3775ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3776 3777 3778AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3779 3780 3781AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3782 3783 3784AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3785 3786 3787MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3788 3789# For better backward compatibility. To be removed once Automake 1.9.x 3790# dies out for good. For more background, see: 3791# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3792# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3793mkdir_p='$(MKDIR_P)' 3794 3795# We need awk for the "check" target (and possibly the TAP driver). The 3796# system "awk" is bad on some platforms. 3797# Always define AMTAR for backward compatibility. Yes, it's still used 3798# in the wild :-( We should find a proper way to deprecate it ... 3799AMTAR='$${TAR-tar}' 3800 3801 3802# We'll loop over all known methods to create a tar archive until one works. 3803_am_tools='gnutar pax cpio none' 3804 3805am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3806 3807 3808 3809 3810 3811 3812# POSIX will say in a future version that running "rm -f" with no argument 3813# is OK; and we want to be able to make that assumption in our Makefile 3814# recipes. So use an aggressive probe to check that the usage we want is 3815# actually supported "in the wild" to an acceptable degree. 3816# See automake bug#10828. 3817# To make any issue more visible, cause the running configure to be aborted 3818# by default if the 'rm' program in use doesn't match our expectations; the 3819# user can still override this though. 3820if rm -f && rm -fr && rm -rf; then : OK; else 3821 cat >&2 <<'END' 3822Oops! 3823 3824Your 'rm' program seems unable to run without file operands specified 3825on the command line, even when the '-f' option is present. This is contrary 3826to the behaviour of most rm programs out there, and not conforming with 3827the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3828 3829Please tell bug-automake@gnu.org about your system, including the value 3830of your $PATH and any error possibly output before this message. This 3831can help us improve future automake versions. 3832 3833END 3834 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3835 echo 'Configuration will proceed anyway, since you have set the' >&2 3836 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3837 echo >&2 3838 else 3839 cat >&2 <<'END' 3840Aborting the configuration process, to ensure you take notice of the issue. 3841 3842You can download and install GNU coreutils to get an 'rm' implementation 3843that behaves properly: <http://www.gnu.org/software/coreutils/>. 3844 3845If you want to complete the configuration process using your problematic 3846'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3847to "yes", and re-run configure. 3848 3849END 3850 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3851 fi 3852fi 3853 3854 3855# Check whether --enable-silent-rules was given. 3856if test "${enable_silent_rules+set}" = set; then : 3857 enableval=$enable_silent_rules; 3858fi 3859 3860case $enable_silent_rules in # ((( 3861 yes) AM_DEFAULT_VERBOSITY=0;; 3862 no) AM_DEFAULT_VERBOSITY=1;; 3863 *) AM_DEFAULT_VERBOSITY=0;; 3864esac 3865am_make=${MAKE-make} 3866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3867$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 3868if ${am_cv_make_support_nested_variables+:} false; then : 3869 $as_echo_n "(cached) " >&6 3870else 3871 if $as_echo 'TRUE=$(BAR$(V)) 3872BAR0=false 3873BAR1=true 3874V=1 3875am__doit: 3876 @$(TRUE) 3877.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3878 am_cv_make_support_nested_variables=yes 3879else 3880 am_cv_make_support_nested_variables=no 3881fi 3882fi 3883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3884$as_echo "$am_cv_make_support_nested_variables" >&6; } 3885if test $am_cv_make_support_nested_variables = yes; then 3886 AM_V='$(V)' 3887 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3888else 3889 AM_V=$AM_DEFAULT_VERBOSITY 3890 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3891fi 3892AM_BACKSLASH='\' 3893 3894 3895# Make sure we can run config.sub. 3896$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 3897 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 3898 3899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 3900$as_echo_n "checking build system type... " >&6; } 3901if ${ac_cv_build+:} false; then : 3902 $as_echo_n "(cached) " >&6 3903else 3904 ac_build_alias=$build_alias 3905test "x$ac_build_alias" = x && 3906 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3907test "x$ac_build_alias" = x && 3908 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 3909ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3910 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 3911 3912fi 3913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 3914$as_echo "$ac_cv_build" >&6; } 3915case $ac_cv_build in 3916*-*-*) ;; 3917*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 3918esac 3919build=$ac_cv_build 3920ac_save_IFS=$IFS; IFS='-' 3921set x $ac_cv_build 3922shift 3923build_cpu=$1 3924build_vendor=$2 3925shift; shift 3926# Remember, the first character of IFS is used to create $*, 3927# except with old shells: 3928build_os=$* 3929IFS=$ac_save_IFS 3930case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3931 3932 3933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 3934$as_echo_n "checking host system type... " >&6; } 3935if ${ac_cv_host+:} false; then : 3936 $as_echo_n "(cached) " >&6 3937else 3938 if test "x$host_alias" = x; then 3939 ac_cv_host=$ac_cv_build 3940else 3941 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3942 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 3943fi 3944 3945fi 3946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 3947$as_echo "$ac_cv_host" >&6; } 3948case $ac_cv_host in 3949*-*-*) ;; 3950*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 3951esac 3952host=$ac_cv_host 3953ac_save_IFS=$IFS; IFS='-' 3954set x $ac_cv_host 3955shift 3956host_cpu=$1 3957host_vendor=$2 3958shift; shift 3959# Remember, the first character of IFS is used to create $*, 3960# except with old shells: 3961host_os=$* 3962IFS=$ac_save_IFS 3963case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3964 3965 3966 3967cat >>confdefs.h <<_ACEOF 3968#define STR_SYSTEM "$host" 3969_ACEOF 3970 3971ac_config_headers="$ac_config_headers config.h" 3972 3973 3974ntp_atom_ok=${ntp_atom_ok=no} 3975ntp_oncore_ok=${ntp_oncore_ok=no} 3976ntp_parse_ok=${ntp_parse_ok=no} 3977ntp_ripe_ncc_ok=${ntp_parse_ok=no} 3978ntp_jupiter_ok=${ntp_jupiter_ok=no} 3979 3980DEPDIR="${am__leading_dot}deps" 3981 3982ac_config_commands="$ac_config_commands depfiles" 3983 3984 3985am_make=${MAKE-make} 3986cat > confinc << 'END' 3987am__doit: 3988 @echo this is the am__doit target 3989.PHONY: am__doit 3990END 3991# If we don't find an include directive, just comment out the code. 3992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3993$as_echo_n "checking for style of include used by $am_make... " >&6; } 3994am__include="#" 3995am__quote= 3996_am_result=none 3997# First try GNU make style include. 3998echo "include confinc" > confmf 3999# Ignore all kinds of additional output from 'make'. 4000case `$am_make -s -f confmf 2> /dev/null` in #( 4001*the\ am__doit\ target*) 4002 am__include=include 4003 am__quote= 4004 _am_result=GNU 4005 ;; 4006esac 4007# Now try BSD make style include. 4008if test "$am__include" = "#"; then 4009 echo '.include "confinc"' > confmf 4010 case `$am_make -s -f confmf 2> /dev/null` in #( 4011 *the\ am__doit\ target*) 4012 am__include=.include 4013 am__quote="\"" 4014 _am_result=BSD 4015 ;; 4016 esac 4017fi 4018 4019 4020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 4021$as_echo "$_am_result" >&6; } 4022rm -f confinc confmf 4023 4024# Check whether --enable-dependency-tracking was given. 4025if test "${enable_dependency_tracking+set}" = set; then : 4026 enableval=$enable_dependency_tracking; 4027fi 4028 4029if test "x$enable_dependency_tracking" != xno; then 4030 am_depcomp="$ac_aux_dir/depcomp" 4031 AMDEPBACKSLASH='\' 4032 am__nodep='_no' 4033fi 4034 if test "x$enable_dependency_tracking" != xno; then 4035 AMDEP_TRUE= 4036 AMDEP_FALSE='#' 4037else 4038 AMDEP_TRUE='#' 4039 AMDEP_FALSE= 4040fi 4041 4042 4043ac_ext=c 4044ac_cpp='$CPP $CPPFLAGS' 4045ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4046ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4047ac_compiler_gnu=$ac_cv_c_compiler_gnu 4048if test -n "$ac_tool_prefix"; then 4049 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 4050set dummy ${ac_tool_prefix}gcc; ac_word=$2 4051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4052$as_echo_n "checking for $ac_word... " >&6; } 4053if ${ac_cv_prog_CC+:} false; then : 4054 $as_echo_n "(cached) " >&6 4055else 4056 if test -n "$CC"; then 4057 ac_cv_prog_CC="$CC" # Let the user override the test. 4058else 4059as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4060for as_dir in $PATH 4061do 4062 IFS=$as_save_IFS 4063 test -z "$as_dir" && as_dir=. 4064 for ac_exec_ext in '' $ac_executable_extensions; do 4065 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4066 ac_cv_prog_CC="${ac_tool_prefix}gcc" 4067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4068 break 2 4069 fi 4070done 4071 done 4072IFS=$as_save_IFS 4073 4074fi 4075fi 4076CC=$ac_cv_prog_CC 4077if test -n "$CC"; then 4078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4079$as_echo "$CC" >&6; } 4080else 4081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4082$as_echo "no" >&6; } 4083fi 4084 4085 4086fi 4087if test -z "$ac_cv_prog_CC"; then 4088 ac_ct_CC=$CC 4089 # Extract the first word of "gcc", so it can be a program name with args. 4090set dummy gcc; ac_word=$2 4091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4092$as_echo_n "checking for $ac_word... " >&6; } 4093if ${ac_cv_prog_ac_ct_CC+:} false; then : 4094 $as_echo_n "(cached) " >&6 4095else 4096 if test -n "$ac_ct_CC"; then 4097 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4098else 4099as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4100for as_dir in $PATH 4101do 4102 IFS=$as_save_IFS 4103 test -z "$as_dir" && as_dir=. 4104 for ac_exec_ext in '' $ac_executable_extensions; do 4105 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4106 ac_cv_prog_ac_ct_CC="gcc" 4107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4108 break 2 4109 fi 4110done 4111 done 4112IFS=$as_save_IFS 4113 4114fi 4115fi 4116ac_ct_CC=$ac_cv_prog_ac_ct_CC 4117if test -n "$ac_ct_CC"; then 4118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4119$as_echo "$ac_ct_CC" >&6; } 4120else 4121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4122$as_echo "no" >&6; } 4123fi 4124 4125 if test "x$ac_ct_CC" = x; then 4126 CC="" 4127 else 4128 case $cross_compiling:$ac_tool_warned in 4129yes:) 4130{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4131$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4132ac_tool_warned=yes ;; 4133esac 4134 CC=$ac_ct_CC 4135 fi 4136else 4137 CC="$ac_cv_prog_CC" 4138fi 4139 4140if test -z "$CC"; then 4141 if test -n "$ac_tool_prefix"; then 4142 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 4143set dummy ${ac_tool_prefix}cc; ac_word=$2 4144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4145$as_echo_n "checking for $ac_word... " >&6; } 4146if ${ac_cv_prog_CC+:} false; then : 4147 $as_echo_n "(cached) " >&6 4148else 4149 if test -n "$CC"; then 4150 ac_cv_prog_CC="$CC" # Let the user override the test. 4151else 4152as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4153for as_dir in $PATH 4154do 4155 IFS=$as_save_IFS 4156 test -z "$as_dir" && as_dir=. 4157 for ac_exec_ext in '' $ac_executable_extensions; do 4158 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4159 ac_cv_prog_CC="${ac_tool_prefix}cc" 4160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4161 break 2 4162 fi 4163done 4164 done 4165IFS=$as_save_IFS 4166 4167fi 4168fi 4169CC=$ac_cv_prog_CC 4170if test -n "$CC"; then 4171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4172$as_echo "$CC" >&6; } 4173else 4174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4175$as_echo "no" >&6; } 4176fi 4177 4178 4179 fi 4180fi 4181if test -z "$CC"; then 4182 # Extract the first word of "cc", so it can be a program name with args. 4183set dummy cc; ac_word=$2 4184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4185$as_echo_n "checking for $ac_word... " >&6; } 4186if ${ac_cv_prog_CC+:} false; then : 4187 $as_echo_n "(cached) " >&6 4188else 4189 if test -n "$CC"; then 4190 ac_cv_prog_CC="$CC" # Let the user override the test. 4191else 4192 ac_prog_rejected=no 4193as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4194for as_dir in $PATH 4195do 4196 IFS=$as_save_IFS 4197 test -z "$as_dir" && as_dir=. 4198 for ac_exec_ext in '' $ac_executable_extensions; do 4199 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4200 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 4201 ac_prog_rejected=yes 4202 continue 4203 fi 4204 ac_cv_prog_CC="cc" 4205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4206 break 2 4207 fi 4208done 4209 done 4210IFS=$as_save_IFS 4211 4212if test $ac_prog_rejected = yes; then 4213 # We found a bogon in the path, so make sure we never use it. 4214 set dummy $ac_cv_prog_CC 4215 shift 4216 if test $# != 0; then 4217 # We chose a different compiler from the bogus one. 4218 # However, it has the same basename, so the bogon will be chosen 4219 # first if we set CC to just the basename; use the full file name. 4220 shift 4221 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 4222 fi 4223fi 4224fi 4225fi 4226CC=$ac_cv_prog_CC 4227if test -n "$CC"; then 4228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4229$as_echo "$CC" >&6; } 4230else 4231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4232$as_echo "no" >&6; } 4233fi 4234 4235 4236fi 4237if test -z "$CC"; then 4238 if test -n "$ac_tool_prefix"; then 4239 for ac_prog in cl.exe 4240 do 4241 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4242set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4244$as_echo_n "checking for $ac_word... " >&6; } 4245if ${ac_cv_prog_CC+:} false; then : 4246 $as_echo_n "(cached) " >&6 4247else 4248 if test -n "$CC"; then 4249 ac_cv_prog_CC="$CC" # Let the user override the test. 4250else 4251as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4252for as_dir in $PATH 4253do 4254 IFS=$as_save_IFS 4255 test -z "$as_dir" && as_dir=. 4256 for ac_exec_ext in '' $ac_executable_extensions; do 4257 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4258 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 4259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4260 break 2 4261 fi 4262done 4263 done 4264IFS=$as_save_IFS 4265 4266fi 4267fi 4268CC=$ac_cv_prog_CC 4269if test -n "$CC"; then 4270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4271$as_echo "$CC" >&6; } 4272else 4273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4274$as_echo "no" >&6; } 4275fi 4276 4277 4278 test -n "$CC" && break 4279 done 4280fi 4281if test -z "$CC"; then 4282 ac_ct_CC=$CC 4283 for ac_prog in cl.exe 4284do 4285 # Extract the first word of "$ac_prog", so it can be a program name with args. 4286set dummy $ac_prog; ac_word=$2 4287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4288$as_echo_n "checking for $ac_word... " >&6; } 4289if ${ac_cv_prog_ac_ct_CC+:} false; then : 4290 $as_echo_n "(cached) " >&6 4291else 4292 if test -n "$ac_ct_CC"; then 4293 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4294else 4295as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4296for as_dir in $PATH 4297do 4298 IFS=$as_save_IFS 4299 test -z "$as_dir" && as_dir=. 4300 for ac_exec_ext in '' $ac_executable_extensions; do 4301 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4302 ac_cv_prog_ac_ct_CC="$ac_prog" 4303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4304 break 2 4305 fi 4306done 4307 done 4308IFS=$as_save_IFS 4309 4310fi 4311fi 4312ac_ct_CC=$ac_cv_prog_ac_ct_CC 4313if test -n "$ac_ct_CC"; then 4314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4315$as_echo "$ac_ct_CC" >&6; } 4316else 4317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4318$as_echo "no" >&6; } 4319fi 4320 4321 4322 test -n "$ac_ct_CC" && break 4323done 4324 4325 if test "x$ac_ct_CC" = x; then 4326 CC="" 4327 else 4328 case $cross_compiling:$ac_tool_warned in 4329yes:) 4330{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4331$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4332ac_tool_warned=yes ;; 4333esac 4334 CC=$ac_ct_CC 4335 fi 4336fi 4337 4338fi 4339 4340 4341test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4342$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4343as_fn_error $? "no acceptable C compiler found in \$PATH 4344See \`config.log' for more details" "$LINENO" 5; } 4345 4346# Provide some information about the compiler. 4347$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 4348set X $ac_compile 4349ac_compiler=$2 4350for ac_option in --version -v -V -qversion; do 4351 { { ac_try="$ac_compiler $ac_option >&5" 4352case "(($ac_try" in 4353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4354 *) ac_try_echo=$ac_try;; 4355esac 4356eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4357$as_echo "$ac_try_echo"; } >&5 4358 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4359 ac_status=$? 4360 if test -s conftest.err; then 4361 sed '10a\ 4362... rest of stderr output deleted ... 4363 10q' conftest.err >conftest.er1 4364 cat conftest.er1 >&5 4365 fi 4366 rm -f conftest.er1 conftest.err 4367 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4368 test $ac_status = 0; } 4369done 4370 4371cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4372/* end confdefs.h. */ 4373 4374int 4375main () 4376{ 4377 4378 ; 4379 return 0; 4380} 4381_ACEOF 4382ac_clean_files_save=$ac_clean_files 4383ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 4384# Try to create an executable without -o first, disregard a.out. 4385# It will help us diagnose broken compilers, and finding out an intuition 4386# of exeext. 4387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 4388$as_echo_n "checking whether the C compiler works... " >&6; } 4389ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 4390 4391# The possible output files: 4392ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 4393 4394ac_rmfiles= 4395for ac_file in $ac_files 4396do 4397 case $ac_file in 4398 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4399 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 4400 esac 4401done 4402rm -f $ac_rmfiles 4403 4404if { { ac_try="$ac_link_default" 4405case "(($ac_try" in 4406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4407 *) ac_try_echo=$ac_try;; 4408esac 4409eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4410$as_echo "$ac_try_echo"; } >&5 4411 (eval "$ac_link_default") 2>&5 4412 ac_status=$? 4413 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4414 test $ac_status = 0; }; then : 4415 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 4416# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 4417# in a Makefile. We should not override ac_cv_exeext if it was cached, 4418# so that the user can short-circuit this test for compilers unknown to 4419# Autoconf. 4420for ac_file in $ac_files '' 4421do 4422 test -f "$ac_file" || continue 4423 case $ac_file in 4424 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 4425 ;; 4426 [ab].out ) 4427 # We found the default executable, but exeext='' is most 4428 # certainly right. 4429 break;; 4430 *.* ) 4431 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 4432 then :; else 4433 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4434 fi 4435 # We set ac_cv_exeext here because the later test for it is not 4436 # safe: cross compilers may not add the suffix if given an `-o' 4437 # argument, so we may need to know it at that point already. 4438 # Even if this section looks crufty: it has the advantage of 4439 # actually working. 4440 break;; 4441 * ) 4442 break;; 4443 esac 4444done 4445test "$ac_cv_exeext" = no && ac_cv_exeext= 4446 4447else 4448 ac_file='' 4449fi 4450if test -z "$ac_file"; then : 4451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4452$as_echo "no" >&6; } 4453$as_echo "$as_me: failed program was:" >&5 4454sed 's/^/| /' conftest.$ac_ext >&5 4455 4456{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4457$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4458as_fn_error 77 "C compiler cannot create executables 4459See \`config.log' for more details" "$LINENO" 5; } 4460else 4461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4462$as_echo "yes" >&6; } 4463fi 4464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 4465$as_echo_n "checking for C compiler default output file name... " >&6; } 4466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 4467$as_echo "$ac_file" >&6; } 4468ac_exeext=$ac_cv_exeext 4469 4470rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 4471ac_clean_files=$ac_clean_files_save 4472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 4473$as_echo_n "checking for suffix of executables... " >&6; } 4474if { { ac_try="$ac_link" 4475case "(($ac_try" in 4476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4477 *) ac_try_echo=$ac_try;; 4478esac 4479eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4480$as_echo "$ac_try_echo"; } >&5 4481 (eval "$ac_link") 2>&5 4482 ac_status=$? 4483 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4484 test $ac_status = 0; }; then : 4485 # If both `conftest.exe' and `conftest' are `present' (well, observable) 4486# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 4487# work properly (i.e., refer to `conftest.exe'), while it won't with 4488# `rm'. 4489for ac_file in conftest.exe conftest conftest.*; do 4490 test -f "$ac_file" || continue 4491 case $ac_file in 4492 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4493 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4494 break;; 4495 * ) break;; 4496 esac 4497done 4498else 4499 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4500$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4501as_fn_error $? "cannot compute suffix of executables: cannot compile and link 4502See \`config.log' for more details" "$LINENO" 5; } 4503fi 4504rm -f conftest conftest$ac_cv_exeext 4505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 4506$as_echo "$ac_cv_exeext" >&6; } 4507 4508rm -f conftest.$ac_ext 4509EXEEXT=$ac_cv_exeext 4510ac_exeext=$EXEEXT 4511cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4512/* end confdefs.h. */ 4513#include <stdio.h> 4514int 4515main () 4516{ 4517FILE *f = fopen ("conftest.out", "w"); 4518 return ferror (f) || fclose (f) != 0; 4519 4520 ; 4521 return 0; 4522} 4523_ACEOF 4524ac_clean_files="$ac_clean_files conftest.out" 4525# Check that the compiler produces executables we can run. If not, either 4526# the compiler is broken, or we cross compile. 4527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4528$as_echo_n "checking whether we are cross compiling... " >&6; } 4529if test "$cross_compiling" != yes; then 4530 { { ac_try="$ac_link" 4531case "(($ac_try" in 4532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4533 *) ac_try_echo=$ac_try;; 4534esac 4535eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4536$as_echo "$ac_try_echo"; } >&5 4537 (eval "$ac_link") 2>&5 4538 ac_status=$? 4539 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4540 test $ac_status = 0; } 4541 if { ac_try='./conftest$ac_cv_exeext' 4542 { { case "(($ac_try" in 4543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4544 *) ac_try_echo=$ac_try;; 4545esac 4546eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4547$as_echo "$ac_try_echo"; } >&5 4548 (eval "$ac_try") 2>&5 4549 ac_status=$? 4550 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4551 test $ac_status = 0; }; }; then 4552 cross_compiling=no 4553 else 4554 if test "$cross_compiling" = maybe; then 4555 cross_compiling=yes 4556 else 4557 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4558$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4559as_fn_error $? "cannot run C compiled programs. 4560If you meant to cross compile, use \`--host'. 4561See \`config.log' for more details" "$LINENO" 5; } 4562 fi 4563 fi 4564fi 4565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4566$as_echo "$cross_compiling" >&6; } 4567 4568rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 4569ac_clean_files=$ac_clean_files_save 4570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4571$as_echo_n "checking for suffix of object files... " >&6; } 4572if ${ac_cv_objext+:} false; then : 4573 $as_echo_n "(cached) " >&6 4574else 4575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4576/* end confdefs.h. */ 4577 4578int 4579main () 4580{ 4581 4582 ; 4583 return 0; 4584} 4585_ACEOF 4586rm -f conftest.o conftest.obj 4587if { { ac_try="$ac_compile" 4588case "(($ac_try" in 4589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4590 *) ac_try_echo=$ac_try;; 4591esac 4592eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4593$as_echo "$ac_try_echo"; } >&5 4594 (eval "$ac_compile") 2>&5 4595 ac_status=$? 4596 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4597 test $ac_status = 0; }; then : 4598 for ac_file in conftest.o conftest.obj conftest.*; do 4599 test -f "$ac_file" || continue; 4600 case $ac_file in 4601 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4602 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4603 break;; 4604 esac 4605done 4606else 4607 $as_echo "$as_me: failed program was:" >&5 4608sed 's/^/| /' conftest.$ac_ext >&5 4609 4610{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4611$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4612as_fn_error $? "cannot compute suffix of object files: cannot compile 4613See \`config.log' for more details" "$LINENO" 5; } 4614fi 4615rm -f conftest.$ac_cv_objext conftest.$ac_ext 4616fi 4617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4618$as_echo "$ac_cv_objext" >&6; } 4619OBJEXT=$ac_cv_objext 4620ac_objext=$OBJEXT 4621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4622$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4623if ${ac_cv_c_compiler_gnu+:} false; then : 4624 $as_echo_n "(cached) " >&6 4625else 4626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4627/* end confdefs.h. */ 4628 4629int 4630main () 4631{ 4632#ifndef __GNUC__ 4633 choke me 4634#endif 4635 4636 ; 4637 return 0; 4638} 4639_ACEOF 4640if ac_fn_c_try_compile "$LINENO"; then : 4641 ac_compiler_gnu=yes 4642else 4643 ac_compiler_gnu=no 4644fi 4645rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4646ac_cv_c_compiler_gnu=$ac_compiler_gnu 4647 4648fi 4649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4650$as_echo "$ac_cv_c_compiler_gnu" >&6; } 4651if test $ac_compiler_gnu = yes; then 4652 GCC=yes 4653else 4654 GCC= 4655fi 4656ac_test_CFLAGS=${CFLAGS+set} 4657ac_save_CFLAGS=$CFLAGS 4658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4659$as_echo_n "checking whether $CC accepts -g... " >&6; } 4660if ${ac_cv_prog_cc_g+:} false; then : 4661 $as_echo_n "(cached) " >&6 4662else 4663 ac_save_c_werror_flag=$ac_c_werror_flag 4664 ac_c_werror_flag=yes 4665 ac_cv_prog_cc_g=no 4666 CFLAGS="-g" 4667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4668/* end confdefs.h. */ 4669 4670int 4671main () 4672{ 4673 4674 ; 4675 return 0; 4676} 4677_ACEOF 4678if ac_fn_c_try_compile "$LINENO"; then : 4679 ac_cv_prog_cc_g=yes 4680else 4681 CFLAGS="" 4682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4683/* end confdefs.h. */ 4684 4685int 4686main () 4687{ 4688 4689 ; 4690 return 0; 4691} 4692_ACEOF 4693if ac_fn_c_try_compile "$LINENO"; then : 4694 4695else 4696 ac_c_werror_flag=$ac_save_c_werror_flag 4697 CFLAGS="-g" 4698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4699/* end confdefs.h. */ 4700 4701int 4702main () 4703{ 4704 4705 ; 4706 return 0; 4707} 4708_ACEOF 4709if ac_fn_c_try_compile "$LINENO"; then : 4710 ac_cv_prog_cc_g=yes 4711fi 4712rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4713fi 4714rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4715fi 4716rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4717 ac_c_werror_flag=$ac_save_c_werror_flag 4718fi 4719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4720$as_echo "$ac_cv_prog_cc_g" >&6; } 4721if test "$ac_test_CFLAGS" = set; then 4722 CFLAGS=$ac_save_CFLAGS 4723elif test $ac_cv_prog_cc_g = yes; then 4724 if test "$GCC" = yes; then 4725 CFLAGS="-g -O2" 4726 else 4727 CFLAGS="-g" 4728 fi 4729else 4730 if test "$GCC" = yes; then 4731 CFLAGS="-O2" 4732 else 4733 CFLAGS= 4734 fi 4735fi 4736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4737$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4738if ${ac_cv_prog_cc_c89+:} false; then : 4739 $as_echo_n "(cached) " >&6 4740else 4741 ac_cv_prog_cc_c89=no 4742ac_save_CC=$CC 4743cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4744/* end confdefs.h. */ 4745#include <stdarg.h> 4746#include <stdio.h> 4747struct stat; 4748/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4749struct buf { int x; }; 4750FILE * (*rcsopen) (struct buf *, struct stat *, int); 4751static char *e (p, i) 4752 char **p; 4753 int i; 4754{ 4755 return p[i]; 4756} 4757static char *f (char * (*g) (char **, int), char **p, ...) 4758{ 4759 char *s; 4760 va_list v; 4761 va_start (v,p); 4762 s = g (p, va_arg (v,int)); 4763 va_end (v); 4764 return s; 4765} 4766 4767/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4768 function prototypes and stuff, but not '\xHH' hex character constants. 4769 These don't provoke an error unfortunately, instead are silently treated 4770 as 'x'. The following induces an error, until -std is added to get 4771 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4772 array size at least. It's necessary to write '\x00'==0 to get something 4773 that's true only with -std. */ 4774int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4775 4776/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4777 inside strings and character constants. */ 4778#define FOO(x) 'x' 4779int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4780 4781int test (int i, double x); 4782struct s1 {int (*f) (int a);}; 4783struct s2 {int (*f) (double a);}; 4784int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4785int argc; 4786char **argv; 4787int 4788main () 4789{ 4790return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4791 ; 4792 return 0; 4793} 4794_ACEOF 4795for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4796 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4797do 4798 CC="$ac_save_CC $ac_arg" 4799 if ac_fn_c_try_compile "$LINENO"; then : 4800 ac_cv_prog_cc_c89=$ac_arg 4801fi 4802rm -f core conftest.err conftest.$ac_objext 4803 test "x$ac_cv_prog_cc_c89" != "xno" && break 4804done 4805rm -f conftest.$ac_ext 4806CC=$ac_save_CC 4807 4808fi 4809# AC_CACHE_VAL 4810case "x$ac_cv_prog_cc_c89" in 4811 x) 4812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4813$as_echo "none needed" >&6; } ;; 4814 xno) 4815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4816$as_echo "unsupported" >&6; } ;; 4817 *) 4818 CC="$CC $ac_cv_prog_cc_c89" 4819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4820$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4821esac 4822if test "x$ac_cv_prog_cc_c89" != xno; then : 4823 4824fi 4825 4826ac_ext=c 4827ac_cpp='$CPP $CPPFLAGS' 4828ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4829ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4830ac_compiler_gnu=$ac_cv_c_compiler_gnu 4831 4832ac_ext=c 4833ac_cpp='$CPP $CPPFLAGS' 4834ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4835ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4836ac_compiler_gnu=$ac_cv_c_compiler_gnu 4837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4838$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 4839if ${am_cv_prog_cc_c_o+:} false; then : 4840 $as_echo_n "(cached) " >&6 4841else 4842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4843/* end confdefs.h. */ 4844 4845int 4846main () 4847{ 4848 4849 ; 4850 return 0; 4851} 4852_ACEOF 4853 # Make sure it works both with $CC and with simple cc. 4854 # Following AC_PROG_CC_C_O, we do the test twice because some 4855 # compilers refuse to overwrite an existing .o file with -o, 4856 # though they will create one. 4857 am_cv_prog_cc_c_o=yes 4858 for am_i in 1 2; do 4859 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4860 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4861 ac_status=$? 4862 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4863 (exit $ac_status); } \ 4864 && test -f conftest2.$ac_objext; then 4865 : OK 4866 else 4867 am_cv_prog_cc_c_o=no 4868 break 4869 fi 4870 done 4871 rm -f core conftest* 4872 unset am_i 4873fi 4874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4875$as_echo "$am_cv_prog_cc_c_o" >&6; } 4876if test "$am_cv_prog_cc_c_o" != yes; then 4877 # Losing compiler, so override with the script. 4878 # FIXME: It is wrong to rewrite CC. 4879 # But if we don't then we get into trouble of one sort or another. 4880 # A longer-term fix would be to have automake use am__CC in this case, 4881 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4882 CC="$am_aux_dir/compile $CC" 4883fi 4884ac_ext=c 4885ac_cpp='$CPP $CPPFLAGS' 4886ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4887ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4888ac_compiler_gnu=$ac_cv_c_compiler_gnu 4889 4890 4891depcc="$CC" am_compiler_list= 4892 4893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4894$as_echo_n "checking dependency style of $depcc... " >&6; } 4895if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4896 $as_echo_n "(cached) " >&6 4897else 4898 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4899 # We make a subdir and do the tests there. Otherwise we can end up 4900 # making bogus files that we don't know about and never remove. For 4901 # instance it was reported that on HP-UX the gcc test will end up 4902 # making a dummy file named 'D' -- because '-MD' means "put the output 4903 # in D". 4904 rm -rf conftest.dir 4905 mkdir conftest.dir 4906 # Copy depcomp to subdir because otherwise we won't find it if we're 4907 # using a relative directory. 4908 cp "$am_depcomp" conftest.dir 4909 cd conftest.dir 4910 # We will build objects and dependencies in a subdirectory because 4911 # it helps to detect inapplicable dependency modes. For instance 4912 # both Tru64's cc and ICC support -MD to output dependencies as a 4913 # side effect of compilation, but ICC will put the dependencies in 4914 # the current directory while Tru64 will put them in the object 4915 # directory. 4916 mkdir sub 4917 4918 am_cv_CC_dependencies_compiler_type=none 4919 if test "$am_compiler_list" = ""; then 4920 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4921 fi 4922 am__universal=false 4923 case " $depcc " in #( 4924 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4925 esac 4926 4927 for depmode in $am_compiler_list; do 4928 # Setup a source with many dependencies, because some compilers 4929 # like to wrap large dependency lists on column 80 (with \), and 4930 # we should not choose a depcomp mode which is confused by this. 4931 # 4932 # We need to recreate these files for each test, as the compiler may 4933 # overwrite some of them when testing with obscure command lines. 4934 # This happens at least with the AIX C compiler. 4935 : > sub/conftest.c 4936 for i in 1 2 3 4 5 6; do 4937 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4938 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4939 # Solaris 10 /bin/sh. 4940 echo '/* dummy */' > sub/conftst$i.h 4941 done 4942 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4943 4944 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4945 # mode. It turns out that the SunPro C++ compiler does not properly 4946 # handle '-M -o', and we need to detect this. Also, some Intel 4947 # versions had trouble with output in subdirs. 4948 am__obj=sub/conftest.${OBJEXT-o} 4949 am__minus_obj="-o $am__obj" 4950 case $depmode in 4951 gcc) 4952 # This depmode causes a compiler race in universal mode. 4953 test "$am__universal" = false || continue 4954 ;; 4955 nosideeffect) 4956 # After this tag, mechanisms are not by side-effect, so they'll 4957 # only be used when explicitly requested. 4958 if test "x$enable_dependency_tracking" = xyes; then 4959 continue 4960 else 4961 break 4962 fi 4963 ;; 4964 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4965 # This compiler won't grok '-c -o', but also, the minuso test has 4966 # not run yet. These depmodes are late enough in the game, and 4967 # so weak that their functioning should not be impacted. 4968 am__obj=conftest.${OBJEXT-o} 4969 am__minus_obj= 4970 ;; 4971 none) break ;; 4972 esac 4973 if depmode=$depmode \ 4974 source=sub/conftest.c object=$am__obj \ 4975 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4976 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4977 >/dev/null 2>conftest.err && 4978 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4979 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4980 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4981 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4982 # icc doesn't choke on unknown options, it will just issue warnings 4983 # or remarks (even with -Werror). So we grep stderr for any message 4984 # that says an option was ignored or not supported. 4985 # When given -MP, icc 7.0 and 7.1 complain thusly: 4986 # icc: Command line warning: ignoring option '-M'; no argument required 4987 # The diagnosis changed in icc 8.0: 4988 # icc: Command line remark: option '-MP' not supported 4989 if (grep 'ignoring option' conftest.err || 4990 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4991 am_cv_CC_dependencies_compiler_type=$depmode 4992 break 4993 fi 4994 fi 4995 done 4996 4997 cd .. 4998 rm -rf conftest.dir 4999else 5000 am_cv_CC_dependencies_compiler_type=none 5001fi 5002 5003fi 5004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 5005$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 5006CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 5007 5008 if 5009 test "x$enable_dependency_tracking" != xno \ 5010 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 5011 am__fastdepCC_TRUE= 5012 am__fastdepCC_FALSE='#' 5013else 5014 am__fastdepCC_TRUE='#' 5015 am__fastdepCC_FALSE= 5016fi 5017 5018 5019 5020ac_ext=c 5021ac_cpp='$CPP $CPPFLAGS' 5022ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5023ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5024ac_compiler_gnu=$ac_cv_c_compiler_gnu 5025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 5026$as_echo_n "checking how to run the C preprocessor... " >&6; } 5027# On Suns, sometimes $CPP names a directory. 5028if test -n "$CPP" && test -d "$CPP"; then 5029 CPP= 5030fi 5031if test -z "$CPP"; then 5032 if ${ac_cv_prog_CPP+:} false; then : 5033 $as_echo_n "(cached) " >&6 5034else 5035 # Double quotes because CPP needs to be expanded 5036 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 5037 do 5038 ac_preproc_ok=false 5039for ac_c_preproc_warn_flag in '' yes 5040do 5041 # Use a header file that comes with gcc, so configuring glibc 5042 # with a fresh cross-compiler works. 5043 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5044 # <limits.h> exists even on freestanding compilers. 5045 # On the NeXT, cc -E runs the code through the compiler's parser, 5046 # not just through cpp. "Syntax error" is here to catch this case. 5047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5048/* end confdefs.h. */ 5049#ifdef __STDC__ 5050# include <limits.h> 5051#else 5052# include <assert.h> 5053#endif 5054 Syntax error 5055_ACEOF 5056if ac_fn_c_try_cpp "$LINENO"; then : 5057 5058else 5059 # Broken: fails on valid input. 5060continue 5061fi 5062rm -f conftest.err conftest.i conftest.$ac_ext 5063 5064 # OK, works on sane cases. Now check whether nonexistent headers 5065 # can be detected and how. 5066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5067/* end confdefs.h. */ 5068#include <ac_nonexistent.h> 5069_ACEOF 5070if ac_fn_c_try_cpp "$LINENO"; then : 5071 # Broken: success on invalid input. 5072continue 5073else 5074 # Passes both tests. 5075ac_preproc_ok=: 5076break 5077fi 5078rm -f conftest.err conftest.i conftest.$ac_ext 5079 5080done 5081# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5082rm -f conftest.i conftest.err conftest.$ac_ext 5083if $ac_preproc_ok; then : 5084 break 5085fi 5086 5087 done 5088 ac_cv_prog_CPP=$CPP 5089 5090fi 5091 CPP=$ac_cv_prog_CPP 5092else 5093 ac_cv_prog_CPP=$CPP 5094fi 5095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 5096$as_echo "$CPP" >&6; } 5097ac_preproc_ok=false 5098for ac_c_preproc_warn_flag in '' yes 5099do 5100 # Use a header file that comes with gcc, so configuring glibc 5101 # with a fresh cross-compiler works. 5102 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5103 # <limits.h> exists even on freestanding compilers. 5104 # On the NeXT, cc -E runs the code through the compiler's parser, 5105 # not just through cpp. "Syntax error" is here to catch this case. 5106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5107/* end confdefs.h. */ 5108#ifdef __STDC__ 5109# include <limits.h> 5110#else 5111# include <assert.h> 5112#endif 5113 Syntax error 5114_ACEOF 5115if ac_fn_c_try_cpp "$LINENO"; then : 5116 5117else 5118 # Broken: fails on valid input. 5119continue 5120fi 5121rm -f conftest.err conftest.i conftest.$ac_ext 5122 5123 # OK, works on sane cases. Now check whether nonexistent headers 5124 # can be detected and how. 5125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5126/* end confdefs.h. */ 5127#include <ac_nonexistent.h> 5128_ACEOF 5129if ac_fn_c_try_cpp "$LINENO"; then : 5130 # Broken: success on invalid input. 5131continue 5132else 5133 # Passes both tests. 5134ac_preproc_ok=: 5135break 5136fi 5137rm -f conftest.err conftest.i conftest.$ac_ext 5138 5139done 5140# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5141rm -f conftest.i conftest.err conftest.$ac_ext 5142if $ac_preproc_ok; then : 5143 5144else 5145 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5146$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5147as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 5148See \`config.log' for more details" "$LINENO" 5; } 5149fi 5150 5151ac_ext=c 5152ac_cpp='$CPP $CPPFLAGS' 5153ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5154ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5155ac_compiler_gnu=$ac_cv_c_compiler_gnu 5156 5157 5158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 5159$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 5160if ${ac_cv_path_GREP+:} false; then : 5161 $as_echo_n "(cached) " >&6 5162else 5163 if test -z "$GREP"; then 5164 ac_path_GREP_found=false 5165 # Loop through the user's path and test for each of PROGNAME-LIST 5166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5167for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5168do 5169 IFS=$as_save_IFS 5170 test -z "$as_dir" && as_dir=. 5171 for ac_prog in grep ggrep; do 5172 for ac_exec_ext in '' $ac_executable_extensions; do 5173 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 5174 as_fn_executable_p "$ac_path_GREP" || continue 5175# Check for GNU ac_path_GREP and select it if it is found. 5176 # Check for GNU $ac_path_GREP 5177case `"$ac_path_GREP" --version 2>&1` in 5178*GNU*) 5179 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 5180*) 5181 ac_count=0 5182 $as_echo_n 0123456789 >"conftest.in" 5183 while : 5184 do 5185 cat "conftest.in" "conftest.in" >"conftest.tmp" 5186 mv "conftest.tmp" "conftest.in" 5187 cp "conftest.in" "conftest.nl" 5188 $as_echo 'GREP' >> "conftest.nl" 5189 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5190 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5191 as_fn_arith $ac_count + 1 && ac_count=$as_val 5192 if test $ac_count -gt ${ac_path_GREP_max-0}; then 5193 # Best one so far, save it but keep looking for a better one 5194 ac_cv_path_GREP="$ac_path_GREP" 5195 ac_path_GREP_max=$ac_count 5196 fi 5197 # 10*(2^10) chars as input seems more than enough 5198 test $ac_count -gt 10 && break 5199 done 5200 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5201esac 5202 5203 $ac_path_GREP_found && break 3 5204 done 5205 done 5206 done 5207IFS=$as_save_IFS 5208 if test -z "$ac_cv_path_GREP"; then 5209 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5210 fi 5211else 5212 ac_cv_path_GREP=$GREP 5213fi 5214 5215fi 5216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 5217$as_echo "$ac_cv_path_GREP" >&6; } 5218 GREP="$ac_cv_path_GREP" 5219 5220 5221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 5222$as_echo_n "checking for egrep... " >&6; } 5223if ${ac_cv_path_EGREP+:} false; then : 5224 $as_echo_n "(cached) " >&6 5225else 5226 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 5227 then ac_cv_path_EGREP="$GREP -E" 5228 else 5229 if test -z "$EGREP"; then 5230 ac_path_EGREP_found=false 5231 # Loop through the user's path and test for each of PROGNAME-LIST 5232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5233for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5234do 5235 IFS=$as_save_IFS 5236 test -z "$as_dir" && as_dir=. 5237 for ac_prog in egrep; do 5238 for ac_exec_ext in '' $ac_executable_extensions; do 5239 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 5240 as_fn_executable_p "$ac_path_EGREP" || continue 5241# Check for GNU ac_path_EGREP and select it if it is found. 5242 # Check for GNU $ac_path_EGREP 5243case `"$ac_path_EGREP" --version 2>&1` in 5244*GNU*) 5245 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 5246*) 5247 ac_count=0 5248 $as_echo_n 0123456789 >"conftest.in" 5249 while : 5250 do 5251 cat "conftest.in" "conftest.in" >"conftest.tmp" 5252 mv "conftest.tmp" "conftest.in" 5253 cp "conftest.in" "conftest.nl" 5254 $as_echo 'EGREP' >> "conftest.nl" 5255 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5256 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5257 as_fn_arith $ac_count + 1 && ac_count=$as_val 5258 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 5259 # Best one so far, save it but keep looking for a better one 5260 ac_cv_path_EGREP="$ac_path_EGREP" 5261 ac_path_EGREP_max=$ac_count 5262 fi 5263 # 10*(2^10) chars as input seems more than enough 5264 test $ac_count -gt 10 && break 5265 done 5266 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5267esac 5268 5269 $ac_path_EGREP_found && break 3 5270 done 5271 done 5272 done 5273IFS=$as_save_IFS 5274 if test -z "$ac_cv_path_EGREP"; then 5275 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5276 fi 5277else 5278 ac_cv_path_EGREP=$EGREP 5279fi 5280 5281 fi 5282fi 5283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 5284$as_echo "$ac_cv_path_EGREP" >&6; } 5285 EGREP="$ac_cv_path_EGREP" 5286 5287 5288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 5289$as_echo_n "checking for ANSI C header files... " >&6; } 5290if ${ac_cv_header_stdc+:} false; then : 5291 $as_echo_n "(cached) " >&6 5292else 5293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5294/* end confdefs.h. */ 5295#include <stdlib.h> 5296#include <stdarg.h> 5297#include <string.h> 5298#include <float.h> 5299 5300int 5301main () 5302{ 5303 5304 ; 5305 return 0; 5306} 5307_ACEOF 5308if ac_fn_c_try_compile "$LINENO"; then : 5309 ac_cv_header_stdc=yes 5310else 5311 ac_cv_header_stdc=no 5312fi 5313rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5314 5315if test $ac_cv_header_stdc = yes; then 5316 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 5317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5318/* end confdefs.h. */ 5319#include <string.h> 5320 5321_ACEOF 5322if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5323 $EGREP "memchr" >/dev/null 2>&1; then : 5324 5325else 5326 ac_cv_header_stdc=no 5327fi 5328rm -f conftest* 5329 5330fi 5331 5332if test $ac_cv_header_stdc = yes; then 5333 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 5334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5335/* end confdefs.h. */ 5336#include <stdlib.h> 5337 5338_ACEOF 5339if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5340 $EGREP "free" >/dev/null 2>&1; then : 5341 5342else 5343 ac_cv_header_stdc=no 5344fi 5345rm -f conftest* 5346 5347fi 5348 5349if test $ac_cv_header_stdc = yes; then 5350 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 5351 if test "$cross_compiling" = yes; then : 5352 : 5353else 5354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5355/* end confdefs.h. */ 5356#include <ctype.h> 5357#include <stdlib.h> 5358#if ((' ' & 0x0FF) == 0x020) 5359# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 5360# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 5361#else 5362# define ISLOWER(c) \ 5363 (('a' <= (c) && (c) <= 'i') \ 5364 || ('j' <= (c) && (c) <= 'r') \ 5365 || ('s' <= (c) && (c) <= 'z')) 5366# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 5367#endif 5368 5369#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 5370int 5371main () 5372{ 5373 int i; 5374 for (i = 0; i < 256; i++) 5375 if (XOR (islower (i), ISLOWER (i)) 5376 || toupper (i) != TOUPPER (i)) 5377 return 2; 5378 return 0; 5379} 5380_ACEOF 5381if ac_fn_c_try_run "$LINENO"; then : 5382 5383else 5384 ac_cv_header_stdc=no 5385fi 5386rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 5387 conftest.$ac_objext conftest.beam conftest.$ac_ext 5388fi 5389 5390fi 5391fi 5392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 5393$as_echo "$ac_cv_header_stdc" >&6; } 5394if test $ac_cv_header_stdc = yes; then 5395 5396$as_echo "#define STDC_HEADERS 1" >>confdefs.h 5397 5398fi 5399 5400# On IRIX 5.3, sys/types and inttypes.h are conflicting. 5401for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 5402 inttypes.h stdint.h unistd.h 5403do : 5404 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 5405ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 5406" 5407if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 5408 cat >>confdefs.h <<_ACEOF 5409#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 5410_ACEOF 5411 5412fi 5413 5414done 5415 5416 5417 5418 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 5419if test "x$ac_cv_header_minix_config_h" = xyes; then : 5420 MINIX=yes 5421else 5422 MINIX= 5423fi 5424 5425 5426 if test "$MINIX" = yes; then 5427 5428$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 5429 5430 5431$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 5432 5433 5434$as_echo "#define _MINIX 1" >>confdefs.h 5435 5436 fi 5437 5438 5439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 5440$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 5441if ${ac_cv_safe_to_define___extensions__+:} false; then : 5442 $as_echo_n "(cached) " >&6 5443else 5444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5445/* end confdefs.h. */ 5446 5447# define __EXTENSIONS__ 1 5448 $ac_includes_default 5449int 5450main () 5451{ 5452 5453 ; 5454 return 0; 5455} 5456_ACEOF 5457if ac_fn_c_try_compile "$LINENO"; then : 5458 ac_cv_safe_to_define___extensions__=yes 5459else 5460 ac_cv_safe_to_define___extensions__=no 5461fi 5462rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5463fi 5464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 5465$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 5466 test $ac_cv_safe_to_define___extensions__ = yes && 5467 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 5468 5469 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 5470 5471 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 5472 5473 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 5474 5475 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 5476 5477 5478 5479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 5480$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 5481if ${ac_cv_prog_cc_c89+:} false; then : 5482 $as_echo_n "(cached) " >&6 5483else 5484 ac_cv_prog_cc_c89=no 5485ac_save_CC=$CC 5486cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5487/* end confdefs.h. */ 5488#include <stdarg.h> 5489#include <stdio.h> 5490struct stat; 5491/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 5492struct buf { int x; }; 5493FILE * (*rcsopen) (struct buf *, struct stat *, int); 5494static char *e (p, i) 5495 char **p; 5496 int i; 5497{ 5498 return p[i]; 5499} 5500static char *f (char * (*g) (char **, int), char **p, ...) 5501{ 5502 char *s; 5503 va_list v; 5504 va_start (v,p); 5505 s = g (p, va_arg (v,int)); 5506 va_end (v); 5507 return s; 5508} 5509 5510/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 5511 function prototypes and stuff, but not '\xHH' hex character constants. 5512 These don't provoke an error unfortunately, instead are silently treated 5513 as 'x'. The following induces an error, until -std is added to get 5514 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 5515 array size at least. It's necessary to write '\x00'==0 to get something 5516 that's true only with -std. */ 5517int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 5518 5519/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 5520 inside strings and character constants. */ 5521#define FOO(x) 'x' 5522int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 5523 5524int test (int i, double x); 5525struct s1 {int (*f) (int a);}; 5526struct s2 {int (*f) (double a);}; 5527int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 5528int argc; 5529char **argv; 5530int 5531main () 5532{ 5533return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 5534 ; 5535 return 0; 5536} 5537_ACEOF 5538for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 5539 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 5540do 5541 CC="$ac_save_CC $ac_arg" 5542 if ac_fn_c_try_compile "$LINENO"; then : 5543 ac_cv_prog_cc_c89=$ac_arg 5544fi 5545rm -f core conftest.err conftest.$ac_objext 5546 test "x$ac_cv_prog_cc_c89" != "xno" && break 5547done 5548rm -f conftest.$ac_ext 5549CC=$ac_save_CC 5550 5551fi 5552# AC_CACHE_VAL 5553case "x$ac_cv_prog_cc_c89" in 5554 x) 5555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5556$as_echo "none needed" >&6; } ;; 5557 xno) 5558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5559$as_echo "unsupported" >&6; } ;; 5560 *) 5561 CC="$CC $ac_cv_prog_cc_c89" 5562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 5563$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 5564esac 5565if test "x$ac_cv_prog_cc_c89" != xno; then : 5566 5567fi 5568 5569 5570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 5571$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 5572if ${ac_cv_prog_cc_c99+:} false; then : 5573 $as_echo_n "(cached) " >&6 5574else 5575 ac_cv_prog_cc_c99=no 5576ac_save_CC=$CC 5577cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5578/* end confdefs.h. */ 5579#include <stdarg.h> 5580#include <stdbool.h> 5581#include <stdlib.h> 5582#include <wchar.h> 5583#include <stdio.h> 5584 5585// Check varargs macros. These examples are taken from C99 6.10.3.5. 5586#define debug(...) fprintf (stderr, __VA_ARGS__) 5587#define showlist(...) puts (#__VA_ARGS__) 5588#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 5589static void 5590test_varargs_macros (void) 5591{ 5592 int x = 1234; 5593 int y = 5678; 5594 debug ("Flag"); 5595 debug ("X = %d\n", x); 5596 showlist (The first, second, and third items.); 5597 report (x>y, "x is %d but y is %d", x, y); 5598} 5599 5600// Check long long types. 5601#define BIG64 18446744073709551615ull 5602#define BIG32 4294967295ul 5603#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 5604#if !BIG_OK 5605 your preprocessor is broken; 5606#endif 5607#if BIG_OK 5608#else 5609 your preprocessor is broken; 5610#endif 5611static long long int bignum = -9223372036854775807LL; 5612static unsigned long long int ubignum = BIG64; 5613 5614struct incomplete_array 5615{ 5616 int datasize; 5617 double data[]; 5618}; 5619 5620struct named_init { 5621 int number; 5622 const wchar_t *name; 5623 double average; 5624}; 5625 5626typedef const char *ccp; 5627 5628static inline int 5629test_restrict (ccp restrict text) 5630{ 5631 // See if C++-style comments work. 5632 // Iterate through items via the restricted pointer. 5633 // Also check for declarations in for loops. 5634 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 5635 continue; 5636 return 0; 5637} 5638 5639// Check varargs and va_copy. 5640static void 5641test_varargs (const char *format, ...) 5642{ 5643 va_list args; 5644 va_start (args, format); 5645 va_list args_copy; 5646 va_copy (args_copy, args); 5647 5648 const char *str; 5649 int number; 5650 float fnumber; 5651 5652 while (*format) 5653 { 5654 switch (*format++) 5655 { 5656 case 's': // string 5657 str = va_arg (args_copy, const char *); 5658 break; 5659 case 'd': // int 5660 number = va_arg (args_copy, int); 5661 break; 5662 case 'f': // float 5663 fnumber = va_arg (args_copy, double); 5664 break; 5665 default: 5666 break; 5667 } 5668 } 5669 va_end (args_copy); 5670 va_end (args); 5671} 5672 5673int 5674main () 5675{ 5676 5677 // Check bool. 5678 _Bool success = false; 5679 5680 // Check restrict. 5681 if (test_restrict ("String literal") == 0) 5682 success = true; 5683 char *restrict newvar = "Another string"; 5684 5685 // Check varargs. 5686 test_varargs ("s, d' f .", "string", 65, 34.234); 5687 test_varargs_macros (); 5688 5689 // Check flexible array members. 5690 struct incomplete_array *ia = 5691 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 5692 ia->datasize = 10; 5693 for (int i = 0; i < ia->datasize; ++i) 5694 ia->data[i] = i * 1.234; 5695 5696 // Check named initializers. 5697 struct named_init ni = { 5698 .number = 34, 5699 .name = L"Test wide string", 5700 .average = 543.34343, 5701 }; 5702 5703 ni.number = 58; 5704 5705 int dynamic_array[ni.number]; 5706 dynamic_array[ni.number - 1] = 543; 5707 5708 // work around unused variable warnings 5709 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 5710 || dynamic_array[ni.number - 1] != 543); 5711 5712 ; 5713 return 0; 5714} 5715_ACEOF 5716for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 5717do 5718 CC="$ac_save_CC $ac_arg" 5719 if ac_fn_c_try_compile "$LINENO"; then : 5720 ac_cv_prog_cc_c99=$ac_arg 5721fi 5722rm -f core conftest.err conftest.$ac_objext 5723 test "x$ac_cv_prog_cc_c99" != "xno" && break 5724done 5725rm -f conftest.$ac_ext 5726CC=$ac_save_CC 5727 5728fi 5729# AC_CACHE_VAL 5730case "x$ac_cv_prog_cc_c99" in 5731 x) 5732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5733$as_echo "none needed" >&6; } ;; 5734 xno) 5735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5736$as_echo "unsupported" >&6; } ;; 5737 *) 5738 CC="$CC $ac_cv_prog_cc_c99" 5739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 5740$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 5741esac 5742if test "x$ac_cv_prog_cc_c99" != xno; then : 5743 5744fi 5745 5746 5747 5748 5749 5750 5751ac_ext=c 5752ac_cpp='$CPP $CPPFLAGS' 5753ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5754ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5755ac_compiler_gnu=$ac_cv_c_compiler_gnu 5756if test -n "$ac_tool_prefix"; then 5757 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 5758set dummy ${ac_tool_prefix}gcc; ac_word=$2 5759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5760$as_echo_n "checking for $ac_word... " >&6; } 5761if ${ac_cv_prog_CC+:} false; then : 5762 $as_echo_n "(cached) " >&6 5763else 5764 if test -n "$CC"; then 5765 ac_cv_prog_CC="$CC" # Let the user override the test. 5766else 5767as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5768for as_dir in $PATH 5769do 5770 IFS=$as_save_IFS 5771 test -z "$as_dir" && as_dir=. 5772 for ac_exec_ext in '' $ac_executable_extensions; do 5773 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5774 ac_cv_prog_CC="${ac_tool_prefix}gcc" 5775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5776 break 2 5777 fi 5778done 5779 done 5780IFS=$as_save_IFS 5781 5782fi 5783fi 5784CC=$ac_cv_prog_CC 5785if test -n "$CC"; then 5786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5787$as_echo "$CC" >&6; } 5788else 5789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5790$as_echo "no" >&6; } 5791fi 5792 5793 5794fi 5795if test -z "$ac_cv_prog_CC"; then 5796 ac_ct_CC=$CC 5797 # Extract the first word of "gcc", so it can be a program name with args. 5798set dummy gcc; ac_word=$2 5799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5800$as_echo_n "checking for $ac_word... " >&6; } 5801if ${ac_cv_prog_ac_ct_CC+:} false; then : 5802 $as_echo_n "(cached) " >&6 5803else 5804 if test -n "$ac_ct_CC"; then 5805 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 5806else 5807as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5808for as_dir in $PATH 5809do 5810 IFS=$as_save_IFS 5811 test -z "$as_dir" && as_dir=. 5812 for ac_exec_ext in '' $ac_executable_extensions; do 5813 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5814 ac_cv_prog_ac_ct_CC="gcc" 5815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5816 break 2 5817 fi 5818done 5819 done 5820IFS=$as_save_IFS 5821 5822fi 5823fi 5824ac_ct_CC=$ac_cv_prog_ac_ct_CC 5825if test -n "$ac_ct_CC"; then 5826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 5827$as_echo "$ac_ct_CC" >&6; } 5828else 5829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5830$as_echo "no" >&6; } 5831fi 5832 5833 if test "x$ac_ct_CC" = x; then 5834 CC="" 5835 else 5836 case $cross_compiling:$ac_tool_warned in 5837yes:) 5838{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5839$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5840ac_tool_warned=yes ;; 5841esac 5842 CC=$ac_ct_CC 5843 fi 5844else 5845 CC="$ac_cv_prog_CC" 5846fi 5847 5848if test -z "$CC"; then 5849 if test -n "$ac_tool_prefix"; then 5850 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 5851set dummy ${ac_tool_prefix}cc; ac_word=$2 5852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5853$as_echo_n "checking for $ac_word... " >&6; } 5854if ${ac_cv_prog_CC+:} false; then : 5855 $as_echo_n "(cached) " >&6 5856else 5857 if test -n "$CC"; then 5858 ac_cv_prog_CC="$CC" # Let the user override the test. 5859else 5860as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5861for as_dir in $PATH 5862do 5863 IFS=$as_save_IFS 5864 test -z "$as_dir" && as_dir=. 5865 for ac_exec_ext in '' $ac_executable_extensions; do 5866 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5867 ac_cv_prog_CC="${ac_tool_prefix}cc" 5868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5869 break 2 5870 fi 5871done 5872 done 5873IFS=$as_save_IFS 5874 5875fi 5876fi 5877CC=$ac_cv_prog_CC 5878if test -n "$CC"; then 5879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5880$as_echo "$CC" >&6; } 5881else 5882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5883$as_echo "no" >&6; } 5884fi 5885 5886 5887 fi 5888fi 5889if test -z "$CC"; then 5890 # Extract the first word of "cc", so it can be a program name with args. 5891set dummy cc; ac_word=$2 5892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5893$as_echo_n "checking for $ac_word... " >&6; } 5894if ${ac_cv_prog_CC+:} false; then : 5895 $as_echo_n "(cached) " >&6 5896else 5897 if test -n "$CC"; then 5898 ac_cv_prog_CC="$CC" # Let the user override the test. 5899else 5900 ac_prog_rejected=no 5901as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5902for as_dir in $PATH 5903do 5904 IFS=$as_save_IFS 5905 test -z "$as_dir" && as_dir=. 5906 for ac_exec_ext in '' $ac_executable_extensions; do 5907 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5908 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 5909 ac_prog_rejected=yes 5910 continue 5911 fi 5912 ac_cv_prog_CC="cc" 5913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5914 break 2 5915 fi 5916done 5917 done 5918IFS=$as_save_IFS 5919 5920if test $ac_prog_rejected = yes; then 5921 # We found a bogon in the path, so make sure we never use it. 5922 set dummy $ac_cv_prog_CC 5923 shift 5924 if test $# != 0; then 5925 # We chose a different compiler from the bogus one. 5926 # However, it has the same basename, so the bogon will be chosen 5927 # first if we set CC to just the basename; use the full file name. 5928 shift 5929 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 5930 fi 5931fi 5932fi 5933fi 5934CC=$ac_cv_prog_CC 5935if test -n "$CC"; then 5936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5937$as_echo "$CC" >&6; } 5938else 5939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5940$as_echo "no" >&6; } 5941fi 5942 5943 5944fi 5945if test -z "$CC"; then 5946 if test -n "$ac_tool_prefix"; then 5947 for ac_prog in cl.exe 5948 do 5949 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5950set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5952$as_echo_n "checking for $ac_word... " >&6; } 5953if ${ac_cv_prog_CC+:} false; then : 5954 $as_echo_n "(cached) " >&6 5955else 5956 if test -n "$CC"; then 5957 ac_cv_prog_CC="$CC" # Let the user override the test. 5958else 5959as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5960for as_dir in $PATH 5961do 5962 IFS=$as_save_IFS 5963 test -z "$as_dir" && as_dir=. 5964 for ac_exec_ext in '' $ac_executable_extensions; do 5965 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5966 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 5967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5968 break 2 5969 fi 5970done 5971 done 5972IFS=$as_save_IFS 5973 5974fi 5975fi 5976CC=$ac_cv_prog_CC 5977if test -n "$CC"; then 5978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5979$as_echo "$CC" >&6; } 5980else 5981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5982$as_echo "no" >&6; } 5983fi 5984 5985 5986 test -n "$CC" && break 5987 done 5988fi 5989if test -z "$CC"; then 5990 ac_ct_CC=$CC 5991 for ac_prog in cl.exe 5992do 5993 # Extract the first word of "$ac_prog", so it can be a program name with args. 5994set dummy $ac_prog; ac_word=$2 5995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5996$as_echo_n "checking for $ac_word... " >&6; } 5997if ${ac_cv_prog_ac_ct_CC+:} false; then : 5998 $as_echo_n "(cached) " >&6 5999else 6000 if test -n "$ac_ct_CC"; then 6001 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 6002else 6003as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6004for as_dir in $PATH 6005do 6006 IFS=$as_save_IFS 6007 test -z "$as_dir" && as_dir=. 6008 for ac_exec_ext in '' $ac_executable_extensions; do 6009 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6010 ac_cv_prog_ac_ct_CC="$ac_prog" 6011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6012 break 2 6013 fi 6014done 6015 done 6016IFS=$as_save_IFS 6017 6018fi 6019fi 6020ac_ct_CC=$ac_cv_prog_ac_ct_CC 6021if test -n "$ac_ct_CC"; then 6022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 6023$as_echo "$ac_ct_CC" >&6; } 6024else 6025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6026$as_echo "no" >&6; } 6027fi 6028 6029 6030 test -n "$ac_ct_CC" && break 6031done 6032 6033 if test "x$ac_ct_CC" = x; then 6034 CC="" 6035 else 6036 case $cross_compiling:$ac_tool_warned in 6037yes:) 6038{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6039$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6040ac_tool_warned=yes ;; 6041esac 6042 CC=$ac_ct_CC 6043 fi 6044fi 6045 6046fi 6047 6048 6049test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6050$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6051as_fn_error $? "no acceptable C compiler found in \$PATH 6052See \`config.log' for more details" "$LINENO" 5; } 6053 6054# Provide some information about the compiler. 6055$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 6056set X $ac_compile 6057ac_compiler=$2 6058for ac_option in --version -v -V -qversion; do 6059 { { ac_try="$ac_compiler $ac_option >&5" 6060case "(($ac_try" in 6061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6062 *) ac_try_echo=$ac_try;; 6063esac 6064eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 6065$as_echo "$ac_try_echo"; } >&5 6066 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 6067 ac_status=$? 6068 if test -s conftest.err; then 6069 sed '10a\ 6070... rest of stderr output deleted ... 6071 10q' conftest.err >conftest.er1 6072 cat conftest.er1 >&5 6073 fi 6074 rm -f conftest.er1 conftest.err 6075 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6076 test $ac_status = 0; } 6077done 6078 6079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 6080$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 6081if ${ac_cv_c_compiler_gnu+:} false; then : 6082 $as_echo_n "(cached) " >&6 6083else 6084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6085/* end confdefs.h. */ 6086 6087int 6088main () 6089{ 6090#ifndef __GNUC__ 6091 choke me 6092#endif 6093 6094 ; 6095 return 0; 6096} 6097_ACEOF 6098if ac_fn_c_try_compile "$LINENO"; then : 6099 ac_compiler_gnu=yes 6100else 6101 ac_compiler_gnu=no 6102fi 6103rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6104ac_cv_c_compiler_gnu=$ac_compiler_gnu 6105 6106fi 6107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 6108$as_echo "$ac_cv_c_compiler_gnu" >&6; } 6109if test $ac_compiler_gnu = yes; then 6110 GCC=yes 6111else 6112 GCC= 6113fi 6114ac_test_CFLAGS=${CFLAGS+set} 6115ac_save_CFLAGS=$CFLAGS 6116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 6117$as_echo_n "checking whether $CC accepts -g... " >&6; } 6118if ${ac_cv_prog_cc_g+:} false; then : 6119 $as_echo_n "(cached) " >&6 6120else 6121 ac_save_c_werror_flag=$ac_c_werror_flag 6122 ac_c_werror_flag=yes 6123 ac_cv_prog_cc_g=no 6124 CFLAGS="-g" 6125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6126/* end confdefs.h. */ 6127 6128int 6129main () 6130{ 6131 6132 ; 6133 return 0; 6134} 6135_ACEOF 6136if ac_fn_c_try_compile "$LINENO"; then : 6137 ac_cv_prog_cc_g=yes 6138else 6139 CFLAGS="" 6140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6141/* end confdefs.h. */ 6142 6143int 6144main () 6145{ 6146 6147 ; 6148 return 0; 6149} 6150_ACEOF 6151if ac_fn_c_try_compile "$LINENO"; then : 6152 6153else 6154 ac_c_werror_flag=$ac_save_c_werror_flag 6155 CFLAGS="-g" 6156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6157/* end confdefs.h. */ 6158 6159int 6160main () 6161{ 6162 6163 ; 6164 return 0; 6165} 6166_ACEOF 6167if ac_fn_c_try_compile "$LINENO"; then : 6168 ac_cv_prog_cc_g=yes 6169fi 6170rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6171fi 6172rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6173fi 6174rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6175 ac_c_werror_flag=$ac_save_c_werror_flag 6176fi 6177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 6178$as_echo "$ac_cv_prog_cc_g" >&6; } 6179if test "$ac_test_CFLAGS" = set; then 6180 CFLAGS=$ac_save_CFLAGS 6181elif test $ac_cv_prog_cc_g = yes; then 6182 if test "$GCC" = yes; then 6183 CFLAGS="-g -O2" 6184 else 6185 CFLAGS="-g" 6186 fi 6187else 6188 if test "$GCC" = yes; then 6189 CFLAGS="-O2" 6190 else 6191 CFLAGS= 6192 fi 6193fi 6194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 6195$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 6196if ${ac_cv_prog_cc_c89+:} false; then : 6197 $as_echo_n "(cached) " >&6 6198else 6199 ac_cv_prog_cc_c89=no 6200ac_save_CC=$CC 6201cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6202/* end confdefs.h. */ 6203#include <stdarg.h> 6204#include <stdio.h> 6205struct stat; 6206/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 6207struct buf { int x; }; 6208FILE * (*rcsopen) (struct buf *, struct stat *, int); 6209static char *e (p, i) 6210 char **p; 6211 int i; 6212{ 6213 return p[i]; 6214} 6215static char *f (char * (*g) (char **, int), char **p, ...) 6216{ 6217 char *s; 6218 va_list v; 6219 va_start (v,p); 6220 s = g (p, va_arg (v,int)); 6221 va_end (v); 6222 return s; 6223} 6224 6225/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 6226 function prototypes and stuff, but not '\xHH' hex character constants. 6227 These don't provoke an error unfortunately, instead are silently treated 6228 as 'x'. The following induces an error, until -std is added to get 6229 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 6230 array size at least. It's necessary to write '\x00'==0 to get something 6231 that's true only with -std. */ 6232int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 6233 6234/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 6235 inside strings and character constants. */ 6236#define FOO(x) 'x' 6237int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 6238 6239int test (int i, double x); 6240struct s1 {int (*f) (int a);}; 6241struct s2 {int (*f) (double a);}; 6242int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 6243int argc; 6244char **argv; 6245int 6246main () 6247{ 6248return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 6249 ; 6250 return 0; 6251} 6252_ACEOF 6253for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 6254 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 6255do 6256 CC="$ac_save_CC $ac_arg" 6257 if ac_fn_c_try_compile "$LINENO"; then : 6258 ac_cv_prog_cc_c89=$ac_arg 6259fi 6260rm -f core conftest.err conftest.$ac_objext 6261 test "x$ac_cv_prog_cc_c89" != "xno" && break 6262done 6263rm -f conftest.$ac_ext 6264CC=$ac_save_CC 6265 6266fi 6267# AC_CACHE_VAL 6268case "x$ac_cv_prog_cc_c89" in 6269 x) 6270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 6271$as_echo "none needed" >&6; } ;; 6272 xno) 6273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 6274$as_echo "unsupported" >&6; } ;; 6275 *) 6276 CC="$CC $ac_cv_prog_cc_c89" 6277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 6278$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 6279esac 6280if test "x$ac_cv_prog_cc_c89" != xno; then : 6281 6282fi 6283 6284ac_ext=c 6285ac_cpp='$CPP $CPPFLAGS' 6286ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6287ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6288ac_compiler_gnu=$ac_cv_c_compiler_gnu 6289 6290ac_ext=c 6291ac_cpp='$CPP $CPPFLAGS' 6292ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6293ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6294ac_compiler_gnu=$ac_cv_c_compiler_gnu 6295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 6296$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 6297if ${am_cv_prog_cc_c_o+:} false; then : 6298 $as_echo_n "(cached) " >&6 6299else 6300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6301/* end confdefs.h. */ 6302 6303int 6304main () 6305{ 6306 6307 ; 6308 return 0; 6309} 6310_ACEOF 6311 # Make sure it works both with $CC and with simple cc. 6312 # Following AC_PROG_CC_C_O, we do the test twice because some 6313 # compilers refuse to overwrite an existing .o file with -o, 6314 # though they will create one. 6315 am_cv_prog_cc_c_o=yes 6316 for am_i in 1 2; do 6317 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 6318 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 6319 ac_status=$? 6320 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6321 (exit $ac_status); } \ 6322 && test -f conftest2.$ac_objext; then 6323 : OK 6324 else 6325 am_cv_prog_cc_c_o=no 6326 break 6327 fi 6328 done 6329 rm -f core conftest* 6330 unset am_i 6331fi 6332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 6333$as_echo "$am_cv_prog_cc_c_o" >&6; } 6334if test "$am_cv_prog_cc_c_o" != yes; then 6335 # Losing compiler, so override with the script. 6336 # FIXME: It is wrong to rewrite CC. 6337 # But if we don't then we get into trouble of one sort or another. 6338 # A longer-term fix would be to have automake use am__CC in this case, 6339 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 6340 CC="$am_aux_dir/compile $CC" 6341fi 6342ac_ext=c 6343ac_cpp='$CPP $CPPFLAGS' 6344ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6345ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6346ac_compiler_gnu=$ac_cv_c_compiler_gnu 6347 6348 6349depcc="$CC" am_compiler_list= 6350 6351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 6352$as_echo_n "checking dependency style of $depcc... " >&6; } 6353if ${am_cv_CC_dependencies_compiler_type+:} false; then : 6354 $as_echo_n "(cached) " >&6 6355else 6356 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 6357 # We make a subdir and do the tests there. Otherwise we can end up 6358 # making bogus files that we don't know about and never remove. For 6359 # instance it was reported that on HP-UX the gcc test will end up 6360 # making a dummy file named 'D' -- because '-MD' means "put the output 6361 # in D". 6362 rm -rf conftest.dir 6363 mkdir conftest.dir 6364 # Copy depcomp to subdir because otherwise we won't find it if we're 6365 # using a relative directory. 6366 cp "$am_depcomp" conftest.dir 6367 cd conftest.dir 6368 # We will build objects and dependencies in a subdirectory because 6369 # it helps to detect inapplicable dependency modes. For instance 6370 # both Tru64's cc and ICC support -MD to output dependencies as a 6371 # side effect of compilation, but ICC will put the dependencies in 6372 # the current directory while Tru64 will put them in the object 6373 # directory. 6374 mkdir sub 6375 6376 am_cv_CC_dependencies_compiler_type=none 6377 if test "$am_compiler_list" = ""; then 6378 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 6379 fi 6380 am__universal=false 6381 case " $depcc " in #( 6382 *\ -arch\ *\ -arch\ *) am__universal=true ;; 6383 esac 6384 6385 for depmode in $am_compiler_list; do 6386 # Setup a source with many dependencies, because some compilers 6387 # like to wrap large dependency lists on column 80 (with \), and 6388 # we should not choose a depcomp mode which is confused by this. 6389 # 6390 # We need to recreate these files for each test, as the compiler may 6391 # overwrite some of them when testing with obscure command lines. 6392 # This happens at least with the AIX C compiler. 6393 : > sub/conftest.c 6394 for i in 1 2 3 4 5 6; do 6395 echo '#include "conftst'$i'.h"' >> sub/conftest.c 6396 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 6397 # Solaris 10 /bin/sh. 6398 echo '/* dummy */' > sub/conftst$i.h 6399 done 6400 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 6401 6402 # We check with '-c' and '-o' for the sake of the "dashmstdout" 6403 # mode. It turns out that the SunPro C++ compiler does not properly 6404 # handle '-M -o', and we need to detect this. Also, some Intel 6405 # versions had trouble with output in subdirs. 6406 am__obj=sub/conftest.${OBJEXT-o} 6407 am__minus_obj="-o $am__obj" 6408 case $depmode in 6409 gcc) 6410 # This depmode causes a compiler race in universal mode. 6411 test "$am__universal" = false || continue 6412 ;; 6413 nosideeffect) 6414 # After this tag, mechanisms are not by side-effect, so they'll 6415 # only be used when explicitly requested. 6416 if test "x$enable_dependency_tracking" = xyes; then 6417 continue 6418 else 6419 break 6420 fi 6421 ;; 6422 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 6423 # This compiler won't grok '-c -o', but also, the minuso test has 6424 # not run yet. These depmodes are late enough in the game, and 6425 # so weak that their functioning should not be impacted. 6426 am__obj=conftest.${OBJEXT-o} 6427 am__minus_obj= 6428 ;; 6429 none) break ;; 6430 esac 6431 if depmode=$depmode \ 6432 source=sub/conftest.c object=$am__obj \ 6433 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 6434 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 6435 >/dev/null 2>conftest.err && 6436 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 6437 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 6438 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 6439 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 6440 # icc doesn't choke on unknown options, it will just issue warnings 6441 # or remarks (even with -Werror). So we grep stderr for any message 6442 # that says an option was ignored or not supported. 6443 # When given -MP, icc 7.0 and 7.1 complain thusly: 6444 # icc: Command line warning: ignoring option '-M'; no argument required 6445 # The diagnosis changed in icc 8.0: 6446 # icc: Command line remark: option '-MP' not supported 6447 if (grep 'ignoring option' conftest.err || 6448 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 6449 am_cv_CC_dependencies_compiler_type=$depmode 6450 break 6451 fi 6452 fi 6453 done 6454 6455 cd .. 6456 rm -rf conftest.dir 6457else 6458 am_cv_CC_dependencies_compiler_type=none 6459fi 6460 6461fi 6462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 6463$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 6464CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 6465 6466 if 6467 test "x$enable_dependency_tracking" != xno \ 6468 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 6469 am__fastdepCC_TRUE= 6470 am__fastdepCC_FALSE='#' 6471else 6472 am__fastdepCC_TRUE='#' 6473 am__fastdepCC_FALSE= 6474fi 6475 6476 6477# Ralf Wildenhues: With per-target flags we need CC_C_O 6478# AM_PROG_CC_C_O supersets AC_PROG_CC_C_O 6479 6480if test $ac_cv_c_compiler_gnu = yes; then 6481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5 6482$as_echo_n "checking whether $CC needs -traditional... " >&6; } 6483if ${ac_cv_prog_gcc_traditional+:} false; then : 6484 $as_echo_n "(cached) " >&6 6485else 6486 ac_pattern="Autoconf.*'x'" 6487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6488/* end confdefs.h. */ 6489#include <sgtty.h> 6490Autoconf TIOCGETP 6491_ACEOF 6492if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6493 $EGREP "$ac_pattern" >/dev/null 2>&1; then : 6494 ac_cv_prog_gcc_traditional=yes 6495else 6496 ac_cv_prog_gcc_traditional=no 6497fi 6498rm -f conftest* 6499 6500 6501 if test $ac_cv_prog_gcc_traditional = no; then 6502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6503/* end confdefs.h. */ 6504#include <termio.h> 6505Autoconf TCGETA 6506_ACEOF 6507if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6508 $EGREP "$ac_pattern" >/dev/null 2>&1; then : 6509 ac_cv_prog_gcc_traditional=yes 6510fi 6511rm -f conftest* 6512 6513 fi 6514fi 6515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5 6516$as_echo "$ac_cv_prog_gcc_traditional" >&6; } 6517 if test $ac_cv_prog_gcc_traditional = yes; then 6518 CC="$CC -traditional" 6519 fi 6520fi 6521 6522 6523 6524 6525 6526CFLAGS_NTP= 6527CPPFLAGS_NTP= 6528LDADD_NTP= 6529LDFLAGS_NTP= 6530 6531 6532 6533 6534 6535case "$ac_cv_prog_cc_c89" in 6536 no) 6537 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ANSI C89/ISO C90 is the minimum to compile NTP 6538 version 4.2.5 and higher." >&5 6539$as_echo "$as_me: WARNING: ANSI C89/ISO C90 is the minimum to compile NTP 6540 version 4.2.5 and higher." >&2;} 6541 ;; 6542esac 6543 6544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle #warning" >&5 6545$as_echo_n "checking if $CC can handle #warning... " >&6; } 6546if ${ntp_cv_cpp_warning+:} false; then : 6547 $as_echo_n "(cached) " >&6 6548else 6549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6550/* end confdefs.h. */ 6551 6552int 6553main () 6554{ 6555#warning foo 6556 ; 6557 return 0; 6558} 6559_ACEOF 6560if ac_fn_c_try_compile "$LINENO"; then : 6561 ntp_cv_cpp_warning=yes 6562else 6563 ntp_cv_cpp_warning=no 6564 6565fi 6566rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6567 6568fi 6569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_cpp_warning" >&5 6570$as_echo "$ntp_cv_cpp_warning" >&6; } 6571case "$ntp_cv_cpp_warning" in 6572 no) 6573 6574$as_echo "#define NO_OPTION_NAME_WARNINGS 1" >>confdefs.h 6575 6576esac 6577 6578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports __attribute__((...))" >&5 6579$as_echo_n "checking if $CC supports __attribute__((...))... " >&6; } 6580if ${ntp_cv_cc_attribute+:} false; then : 6581 $as_echo_n "(cached) " >&6 6582else 6583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6584/* end confdefs.h. */ 6585 6586int 6587main () 6588{ 6589void foo(void) __attribute__((__noreturn__)); 6590 6591 ; 6592 return 0; 6593} 6594_ACEOF 6595if ac_fn_c_try_compile "$LINENO"; then : 6596 ntp_cv_cc_attribute=yes 6597else 6598 ntp_cv_cc_attribute=no 6599 6600fi 6601rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6602 6603fi 6604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_cc_attribute" >&5 6605$as_echo "$ntp_cv_cc_attribute" >&6; } 6606case "$ntp_cv_cc_attribute" in 6607 yes) 6608 6609$as_echo "#define HAVE___ATTRIBUTE__ /**/" >>confdefs.h 6610 6611esac 6612 6613 6614case "$GCC" in 6615 yes) 6616 SAVED_CFLAGS="$CFLAGS" 6617 CFLAGS="$CFLAGS -Wstrict-overflow" 6618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle -Wstrict-overflow" >&5 6619$as_echo_n "checking if $CC can handle -Wstrict-overflow... " >&6; } 6620if ${ntp_cv_gcc_Wstrict_overflow+:} false; then : 6621 $as_echo_n "(cached) " >&6 6622else 6623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6624/* end confdefs.h. */ 6625 6626int 6627main () 6628{ 6629 6630 ; 6631 return 0; 6632} 6633_ACEOF 6634if ac_fn_c_try_compile "$LINENO"; then : 6635 ntp_cv_gcc_Wstrict_overflow=yes 6636else 6637 ntp_cv_gcc_Wstrict_overflow=no 6638 6639fi 6640rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6641 6642fi 6643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_gcc_Wstrict_overflow" >&5 6644$as_echo "$ntp_cv_gcc_Wstrict_overflow" >&6; } 6645 # 6646 # $ntp_cv_gcc_Wstrict_overflow is tested later to add the 6647 # flag to CFLAGS. 6648 # 6649 CFLAGS="$SAVED_CFLAGS -Winit-self" 6650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle -Winit-self" >&5 6651$as_echo_n "checking if $CC can handle -Winit-self... " >&6; } 6652if ${ntp_cv_gcc_Winit_self+:} false; then : 6653 $as_echo_n "(cached) " >&6 6654else 6655 6656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6657/* end confdefs.h. */ 6658 6659int 6660main () 6661{ 6662 6663 ; 6664 return 0; 6665} 6666_ACEOF 6667if ac_fn_c_try_compile "$LINENO"; then : 6668 ntp_cv_gcc_Winit_self=yes 6669else 6670 ntp_cv_gcc_Winit_self=no 6671 6672fi 6673rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6674 6675 6676fi 6677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_gcc_Winit_self" >&5 6678$as_echo "$ntp_cv_gcc_Winit_self" >&6; } 6679 CFLAGS="$SAVED_CFLAGS" 6680 { SAVED_CFLAGS=; unset SAVED_CFLAGS;} 6681 # 6682 # $ntp_cv_gcc_Winit_self is tested later to add the 6683 # flag to CFLAGS_NTP. 6684 # 6685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker supports omitting unused code and data" >&5 6686$as_echo_n "checking if linker supports omitting unused code and data... " >&6; } 6687if ${ntp_cv_gc_sections_runs+:} false; then : 6688 $as_echo_n "(cached) " >&6 6689else 6690 6691 origCFLAGS="$CFLAGS" 6692 CFLAGS="$CFLAGS -Wl,--gc-sections" 6693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6694/* end confdefs.h. */ 6695 6696 #include <stdlib.h> 6697 #include <stdio.h> 6698 6699int 6700main () 6701{ 6702 6703 FILE * fpC; 6704 char buf[32]; 6705 size_t cch; 6706 int read_success_once; 6707 6708 fpC = fopen("conftest.c", "r"); 6709 if (NULL == fpC) 6710 exit(1); 6711 do { 6712 cch = fread(buf, sizeof(buf), 1, fpC); 6713 read_success_once |= (0 != cch); 6714 } while (0 != cch); 6715 if (!read_success_once) 6716 exit(2); 6717 if (!feof(fpC)) 6718 exit(3); 6719 if (0 != fclose(fpC)) 6720 exit(4); 6721 6722 exit(EXIT_SUCCESS); 6723 6724 6725 ; 6726 return 0; 6727} 6728_ACEOF 6729if ac_fn_c_try_link "$LINENO"; then : 6730 6731 if test "X$cross_compiling" = "Xyes" || grep gc-sections conftest.err ; then 6732 ntp_cv_gc_sections_runs=no 6733 else 6734 ntp_cv_gc_sections_runs=no 6735 ./conftest >/dev/null 2>&1 && ntp_cv_gc_sections_runs=yes 6736 fi 6737 6738else 6739 ntp_cv_gc_sections_runs=no 6740 6741fi 6742rm -f core conftest.err conftest.$ac_objext \ 6743 conftest$ac_exeext conftest.$ac_ext 6744 CFLAGS="$origCFLAGS" 6745 { origCFLAGS=; unset origCFLAGS;} 6746 6747 6748fi 6749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_gc_sections_runs" >&5 6750$as_echo "$ntp_cv_gc_sections_runs" >&6; } 6751 case "$ntp_cv_gc_sections_runs" in 6752 yes) 6753 LDADD_LIBNTP="-Wl,--gc-sections" 6754 CFLAGS_NTP="$CFLAGS_NTP -ffunction-sections -fdata-sections" 6755 ;; 6756 no) 6757 LDADD_LIBNTP= 6758 ;; 6759 esac 6760 CFLAGS_NTP="$CFLAGS_NTP -Wall" 6761 CFLAGS_NTP="$CFLAGS_NTP -Wcast-align" 6762 CFLAGS_NTP="$CFLAGS_NTP -Wcast-qual" 6763 # CFLAGS_NTP="$CFLAGS_NTP -Wconversion" 6764 # CFLAGS_NTP="$CFLAGS_NTP -Werror" 6765 # CFLAGS_NTP="$CFLAGS_NTP -Wextra" 6766 # CFLAGS_NTP="$CFLAGS_NTP -Wfloat-equal" 6767 CFLAGS_NTP="$CFLAGS_NTP -Wmissing-prototypes" 6768 CFLAGS_NTP="$CFLAGS_NTP -Wpointer-arith" 6769 CFLAGS_NTP="$CFLAGS_NTP -Wshadow" 6770 # CFLAGS_NTP="$CFLAGS_NTP -Wtraditional" 6771 # CFLAGS_NTP="$CFLAGS_NTP -Wwrite-strings" 6772 case "$ntp_cv_gcc_Winit_self" in 6773 yes) 6774 CFLAGS_NTP="$CFLAGS_NTP -Winit-self" 6775 esac 6776 case "$ntp_cv_gcc_Wstrict_overflow" in 6777 yes) 6778 CFLAGS_NTP="$CFLAGS_NTP -Wstrict-overflow" 6779 esac 6780 # -W[no-]strict-prototypes might be added by NTP_OPENSSL 6781esac 6782 6783 6784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking additional compiler flags" >&5 6785$as_echo_n "checking additional compiler flags... " >&6; } 6786 # allow ntp_os_cflags to be preset to skip this stuff 6787 case "${ntp_os_cflags+set}" in 6788 set) 6789 ;; 6790 *) 6791 ntp_os_cflags= 6792 case "$host_os" in 6793 aix[1-3]*) 6794 ;; 6795 aix4.[0-2]*) 6796 # turn on additional headers 6797 ntp_os_cflags="-D_XOPEN_EXTENDED_SOURCE" 6798 ;; 6799 aix5.3*) 6800 # avoid circular dependencies in yp headers, and more 6801 ntp_os_cflags="-DHAVE_BAD_HEADERS -D_XOPEN_EXTENDED_SOURCE" 6802 ntp_os_cflags="${ntp_os_cflags} -D_USE_IRS -D_MSGQSUPPORT" 6803 ;; 6804 aix*) 6805 # XXX Only verified thru AIX6. 6806 # aix7 seems to need a different XOPEN_SOURCE_EXTENDED thing. 6807 # avoid circular dependencies in yp headers 6808 # _XOPEN_SOURCE=500 = X/Open 5: POSIX 1995 6809 # _XOPEN_SOURCE=600 = X/Open 6: POSIX 2004 6810 # _XOPEN_SOURCE=700 = X/Open 7: POSIX 2008 6811 ntp_os_cflags="-DHAVE_BAD_HEADERS -D_XOPEN_SOURCE=600" 6812 ntp_os_cflags="${ntp_os_cflags} -D_USE_IRS" 6813 ;; 6814 amigaos) 6815 ntp_os_cflags="-DSYS_AMIGA" 6816 ;; 6817 darwin*|macosx*|rhapsody*) 6818 ntp_os_cflags="-D_P1003_1B_VISIBLE" 6819 ;; 6820 hpux10.*) # at least for hppa2.0-hp-hpux10.20 6821 case "$GCC" in 6822 yes) 6823 ;; 6824 *) 6825 # use Ansi compiler on HPUX, and some -Wp magic 6826 ntp_os_cflags="-Ae -Wp,-H18816" 6827 ;; 6828 esac 6829 ntp_os_cflags="${ntp_os_cflags} -D_HPUX_SOURCE -D__STDC_VERSION__=199901L" 6830 ;; 6831 hpux*) 6832 case "$GCC" in 6833 yes) 6834 ;; 6835 *) 6836 # use Ansi compiler on HPUX 6837 ntp_os_cflags="-Ae" 6838 esac 6839 ntp_os_cflags="${ntp_os_cflags} -D_HPUX_SOURCE -D__STDC_VERSION__=199901L" 6840 ;; 6841 irix6*) 6842 case "$CC" in 6843 cc) 6844 # do not use 64-bit compiler 6845 ntp_os_cflags="-n32 -mips3 -Wl,-woff,84" 6846 esac 6847 ;; 6848 nextstep3) 6849 ntp_os_cflags="-posix" 6850 ;; 6851 solaris1*|solaris2.[0-5]|solaris2.5.*) 6852 ;; 6853 sunos[34]*|sunos5.[0-5]|sunos5.5.*) 6854 ;; 6855 solaris2*|sunos5*) 6856 # turn on 64-bit file offset interface 6857 ntp_os_cflags="-D_LARGEFILE64_SOURCE" 6858 ;; 6859 vxworks*) 6860 case "$build" in 6861 $host) 6862 ;; 6863 *) 6864 # Quick and dirty sanity check 6865 case "$VX_KERNEL" in 6866 '') 6867 as_fn_error $? "See html/build/hints/vxworks.html" "$LINENO" 5 6868 esac 6869 ntp_os_cflags="-DSYS_VXWORKS" 6870 esac 6871 ;; 6872 esac 6873 esac 6874 case "$ntp_os_cflags" in 6875 '') 6876 ntp_os_cflags_msg="none needed" 6877 ;; 6878 *) 6879 ntp_os_cflags_msg="$ntp_os_cflags" 6880 esac 6881 CFLAGS_NTP="$CFLAGS_NTP $ntp_os_cflags" 6882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_os_cflags_msg" >&5 6883$as_echo "$ntp_os_cflags_msg" >&6; } 6884 { ntp_os_cflags_msg=; unset ntp_os_cflags_msg;} 6885 ### 6886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking additional linker flags" >&5 6887$as_echo_n "checking additional linker flags... " >&6; } 6888 # HMS: The following might still need tweaking 6889 # allow ntp_os_ldflags to be preset to skip this stuff 6890 case "${ntp_os_ldflags+set}" in 6891 set) 6892 ;; 6893 *) 6894 ntp_os_ldflags= 6895 case "$host_os" in 6896 hpux*) 6897 case "$GCC" in 6898 yes) 6899 ntp_os_ldflags="-Wl,+allowdups" 6900 ;; 6901 esac 6902 ;; 6903 esac 6904 ;; 6905 esac 6906 case "$ntp_os_ldflags" in 6907 '') 6908 ntp_os_ldflags_msg="none needed" 6909 ;; 6910 *) 6911 ntp_os_ldflags_msg="$ntp_os_ldflags" 6912 esac 6913 LDFLAGS_NTP="$LDFLAGS_NTP $ntp_os_ldflags" 6914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_os_ldflags_msg" >&5 6915$as_echo "$ntp_os_ldflags_msg" >&6; } 6916 { ntp_os_ldflags_msg=; unset ntp_os_ldflags_msg;} 6917 6918 6919 6920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 6921$as_echo_n "checking whether byte ordering is bigendian... " >&6; } 6922if ${ac_cv_c_bigendian+:} false; then : 6923 $as_echo_n "(cached) " >&6 6924else 6925 ac_cv_c_bigendian=unknown 6926 # See if we're dealing with a universal compiler. 6927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6928/* end confdefs.h. */ 6929#ifndef __APPLE_CC__ 6930 not a universal capable compiler 6931 #endif 6932 typedef int dummy; 6933 6934_ACEOF 6935if ac_fn_c_try_compile "$LINENO"; then : 6936 6937 # Check for potential -arch flags. It is not universal unless 6938 # there are at least two -arch flags with different values. 6939 ac_arch= 6940 ac_prev= 6941 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 6942 if test -n "$ac_prev"; then 6943 case $ac_word in 6944 i?86 | x86_64 | ppc | ppc64) 6945 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 6946 ac_arch=$ac_word 6947 else 6948 ac_cv_c_bigendian=universal 6949 break 6950 fi 6951 ;; 6952 esac 6953 ac_prev= 6954 elif test "x$ac_word" = "x-arch"; then 6955 ac_prev=arch 6956 fi 6957 done 6958fi 6959rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6960 if test $ac_cv_c_bigendian = unknown; then 6961 # See if sys/param.h defines the BYTE_ORDER macro. 6962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6963/* end confdefs.h. */ 6964#include <sys/types.h> 6965 #include <sys/param.h> 6966 6967int 6968main () 6969{ 6970#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 6971 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 6972 && LITTLE_ENDIAN) 6973 bogus endian macros 6974 #endif 6975 6976 ; 6977 return 0; 6978} 6979_ACEOF 6980if ac_fn_c_try_compile "$LINENO"; then : 6981 # It does; now see whether it defined to BIG_ENDIAN or not. 6982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6983/* end confdefs.h. */ 6984#include <sys/types.h> 6985 #include <sys/param.h> 6986 6987int 6988main () 6989{ 6990#if BYTE_ORDER != BIG_ENDIAN 6991 not big endian 6992 #endif 6993 6994 ; 6995 return 0; 6996} 6997_ACEOF 6998if ac_fn_c_try_compile "$LINENO"; then : 6999 ac_cv_c_bigendian=yes 7000else 7001 ac_cv_c_bigendian=no 7002fi 7003rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7004fi 7005rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7006 fi 7007 if test $ac_cv_c_bigendian = unknown; then 7008 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 7009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7010/* end confdefs.h. */ 7011#include <limits.h> 7012 7013int 7014main () 7015{ 7016#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 7017 bogus endian macros 7018 #endif 7019 7020 ; 7021 return 0; 7022} 7023_ACEOF 7024if ac_fn_c_try_compile "$LINENO"; then : 7025 # It does; now see whether it defined to _BIG_ENDIAN or not. 7026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7027/* end confdefs.h. */ 7028#include <limits.h> 7029 7030int 7031main () 7032{ 7033#ifndef _BIG_ENDIAN 7034 not big endian 7035 #endif 7036 7037 ; 7038 return 0; 7039} 7040_ACEOF 7041if ac_fn_c_try_compile "$LINENO"; then : 7042 ac_cv_c_bigendian=yes 7043else 7044 ac_cv_c_bigendian=no 7045fi 7046rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7047fi 7048rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7049 fi 7050 if test $ac_cv_c_bigendian = unknown; then 7051 # Compile a test program. 7052 if test "$cross_compiling" = yes; then : 7053 # Try to guess by grepping values from an object file. 7054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7055/* end confdefs.h. */ 7056short int ascii_mm[] = 7057 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 7058 short int ascii_ii[] = 7059 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 7060 int use_ascii (int i) { 7061 return ascii_mm[i] + ascii_ii[i]; 7062 } 7063 short int ebcdic_ii[] = 7064 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 7065 short int ebcdic_mm[] = 7066 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 7067 int use_ebcdic (int i) { 7068 return ebcdic_mm[i] + ebcdic_ii[i]; 7069 } 7070 extern int foo; 7071 7072int 7073main () 7074{ 7075return use_ascii (foo) == use_ebcdic (foo); 7076 ; 7077 return 0; 7078} 7079_ACEOF 7080if ac_fn_c_try_compile "$LINENO"; then : 7081 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 7082 ac_cv_c_bigendian=yes 7083 fi 7084 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 7085 if test "$ac_cv_c_bigendian" = unknown; then 7086 ac_cv_c_bigendian=no 7087 else 7088 # finding both strings is unlikely to happen, but who knows? 7089 ac_cv_c_bigendian=unknown 7090 fi 7091 fi 7092fi 7093rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7094else 7095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7096/* end confdefs.h. */ 7097$ac_includes_default 7098int 7099main () 7100{ 7101 7102 /* Are we little or big endian? From Harbison&Steele. */ 7103 union 7104 { 7105 long int l; 7106 char c[sizeof (long int)]; 7107 } u; 7108 u.l = 1; 7109 return u.c[sizeof (long int) - 1] == 1; 7110 7111 ; 7112 return 0; 7113} 7114_ACEOF 7115if ac_fn_c_try_run "$LINENO"; then : 7116 ac_cv_c_bigendian=no 7117else 7118 ac_cv_c_bigendian=yes 7119fi 7120rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7121 conftest.$ac_objext conftest.beam conftest.$ac_ext 7122fi 7123 7124 fi 7125fi 7126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 7127$as_echo "$ac_cv_c_bigendian" >&6; } 7128 case $ac_cv_c_bigendian in #( 7129 yes) 7130 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h 7131;; #( 7132 no) 7133 ;; #( 7134 universal) 7135 7136$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 7137 7138 ;; #( 7139 *) 7140 as_fn_error $? "unknown endianness 7141 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 7142 esac 7143 7144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5 7145$as_echo_n "checking for working volatile... " >&6; } 7146if ${ac_cv_c_volatile+:} false; then : 7147 $as_echo_n "(cached) " >&6 7148else 7149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7150/* end confdefs.h. */ 7151 7152int 7153main () 7154{ 7155 7156volatile int x; 7157int * volatile y = (int *) 0; 7158return !x && !y; 7159 ; 7160 return 0; 7161} 7162_ACEOF 7163if ac_fn_c_try_compile "$LINENO"; then : 7164 ac_cv_c_volatile=yes 7165else 7166 ac_cv_c_volatile=no 7167fi 7168rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7169fi 7170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5 7171$as_echo "$ac_cv_c_volatile" >&6; } 7172if test $ac_cv_c_volatile = no; then 7173 7174$as_echo "#define volatile /**/" >>confdefs.h 7175 7176fi 7177 7178ac_ext=c 7179ac_cpp='$CPP $CPPFLAGS' 7180ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7181ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7182ac_compiler_gnu=$ac_cv_c_compiler_gnu 7183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 7184$as_echo_n "checking how to run the C preprocessor... " >&6; } 7185# On Suns, sometimes $CPP names a directory. 7186if test -n "$CPP" && test -d "$CPP"; then 7187 CPP= 7188fi 7189if test -z "$CPP"; then 7190 if ${ac_cv_prog_CPP+:} false; then : 7191 $as_echo_n "(cached) " >&6 7192else 7193 # Double quotes because CPP needs to be expanded 7194 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 7195 do 7196 ac_preproc_ok=false 7197for ac_c_preproc_warn_flag in '' yes 7198do 7199 # Use a header file that comes with gcc, so configuring glibc 7200 # with a fresh cross-compiler works. 7201 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7202 # <limits.h> exists even on freestanding compilers. 7203 # On the NeXT, cc -E runs the code through the compiler's parser, 7204 # not just through cpp. "Syntax error" is here to catch this case. 7205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7206/* end confdefs.h. */ 7207#ifdef __STDC__ 7208# include <limits.h> 7209#else 7210# include <assert.h> 7211#endif 7212 Syntax error 7213_ACEOF 7214if ac_fn_c_try_cpp "$LINENO"; then : 7215 7216else 7217 # Broken: fails on valid input. 7218continue 7219fi 7220rm -f conftest.err conftest.i conftest.$ac_ext 7221 7222 # OK, works on sane cases. Now check whether nonexistent headers 7223 # can be detected and how. 7224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7225/* end confdefs.h. */ 7226#include <ac_nonexistent.h> 7227_ACEOF 7228if ac_fn_c_try_cpp "$LINENO"; then : 7229 # Broken: success on invalid input. 7230continue 7231else 7232 # Passes both tests. 7233ac_preproc_ok=: 7234break 7235fi 7236rm -f conftest.err conftest.i conftest.$ac_ext 7237 7238done 7239# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7240rm -f conftest.i conftest.err conftest.$ac_ext 7241if $ac_preproc_ok; then : 7242 break 7243fi 7244 7245 done 7246 ac_cv_prog_CPP=$CPP 7247 7248fi 7249 CPP=$ac_cv_prog_CPP 7250else 7251 ac_cv_prog_CPP=$CPP 7252fi 7253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 7254$as_echo "$CPP" >&6; } 7255ac_preproc_ok=false 7256for ac_c_preproc_warn_flag in '' yes 7257do 7258 # Use a header file that comes with gcc, so configuring glibc 7259 # with a fresh cross-compiler works. 7260 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7261 # <limits.h> exists even on freestanding compilers. 7262 # On the NeXT, cc -E runs the code through the compiler's parser, 7263 # not just through cpp. "Syntax error" is here to catch this case. 7264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7265/* end confdefs.h. */ 7266#ifdef __STDC__ 7267# include <limits.h> 7268#else 7269# include <assert.h> 7270#endif 7271 Syntax error 7272_ACEOF 7273if ac_fn_c_try_cpp "$LINENO"; then : 7274 7275else 7276 # Broken: fails on valid input. 7277continue 7278fi 7279rm -f conftest.err conftest.i conftest.$ac_ext 7280 7281 # OK, works on sane cases. Now check whether nonexistent headers 7282 # can be detected and how. 7283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7284/* end confdefs.h. */ 7285#include <ac_nonexistent.h> 7286_ACEOF 7287if ac_fn_c_try_cpp "$LINENO"; then : 7288 # Broken: success on invalid input. 7289continue 7290else 7291 # Passes both tests. 7292ac_preproc_ok=: 7293break 7294fi 7295rm -f conftest.err conftest.i conftest.$ac_ext 7296 7297done 7298# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7299rm -f conftest.i conftest.err conftest.$ac_ext 7300if $ac_preproc_ok; then : 7301 7302else 7303 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7304$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7305as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 7306See \`config.log' for more details" "$LINENO" 5; } 7307fi 7308 7309ac_ext=c 7310ac_cpp='$CPP $CPPFLAGS' 7311ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7312ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7313ac_compiler_gnu=$ac_cv_c_compiler_gnu 7314 7315 7316 7317ac_ext=c 7318ac_cpp='$CPP $CPPFLAGS' 7319ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7320ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7321ac_compiler_gnu=$ac_cv_c_compiler_gnu 7322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 7323$as_echo_n "checking how to run the C preprocessor... " >&6; } 7324# On Suns, sometimes $CPP names a directory. 7325if test -n "$CPP" && test -d "$CPP"; then 7326 CPP= 7327fi 7328if test -z "$CPP"; then 7329 if ${ac_cv_prog_CPP+:} false; then : 7330 $as_echo_n "(cached) " >&6 7331else 7332 # Double quotes because CPP needs to be expanded 7333 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 7334 do 7335 ac_preproc_ok=false 7336for ac_c_preproc_warn_flag in '' yes 7337do 7338 # Use a header file that comes with gcc, so configuring glibc 7339 # with a fresh cross-compiler works. 7340 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7341 # <limits.h> exists even on freestanding compilers. 7342 # On the NeXT, cc -E runs the code through the compiler's parser, 7343 # not just through cpp. "Syntax error" is here to catch this case. 7344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7345/* end confdefs.h. */ 7346#ifdef __STDC__ 7347# include <limits.h> 7348#else 7349# include <assert.h> 7350#endif 7351 Syntax error 7352_ACEOF 7353if ac_fn_c_try_cpp "$LINENO"; then : 7354 7355else 7356 # Broken: fails on valid input. 7357continue 7358fi 7359rm -f conftest.err conftest.i conftest.$ac_ext 7360 7361 # OK, works on sane cases. Now check whether nonexistent headers 7362 # can be detected and how. 7363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7364/* end confdefs.h. */ 7365#include <ac_nonexistent.h> 7366_ACEOF 7367if ac_fn_c_try_cpp "$LINENO"; then : 7368 # Broken: success on invalid input. 7369continue 7370else 7371 # Passes both tests. 7372ac_preproc_ok=: 7373break 7374fi 7375rm -f conftest.err conftest.i conftest.$ac_ext 7376 7377done 7378# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7379rm -f conftest.i conftest.err conftest.$ac_ext 7380if $ac_preproc_ok; then : 7381 break 7382fi 7383 7384 done 7385 ac_cv_prog_CPP=$CPP 7386 7387fi 7388 CPP=$ac_cv_prog_CPP 7389else 7390 ac_cv_prog_CPP=$CPP 7391fi 7392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 7393$as_echo "$CPP" >&6; } 7394ac_preproc_ok=false 7395for ac_c_preproc_warn_flag in '' yes 7396do 7397 # Use a header file that comes with gcc, so configuring glibc 7398 # with a fresh cross-compiler works. 7399 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7400 # <limits.h> exists even on freestanding compilers. 7401 # On the NeXT, cc -E runs the code through the compiler's parser, 7402 # not just through cpp. "Syntax error" is here to catch this case. 7403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7404/* end confdefs.h. */ 7405#ifdef __STDC__ 7406# include <limits.h> 7407#else 7408# include <assert.h> 7409#endif 7410 Syntax error 7411_ACEOF 7412if ac_fn_c_try_cpp "$LINENO"; then : 7413 7414else 7415 # Broken: fails on valid input. 7416continue 7417fi 7418rm -f conftest.err conftest.i conftest.$ac_ext 7419 7420 # OK, works on sane cases. Now check whether nonexistent headers 7421 # can be detected and how. 7422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7423/* end confdefs.h. */ 7424#include <ac_nonexistent.h> 7425_ACEOF 7426if ac_fn_c_try_cpp "$LINENO"; then : 7427 # Broken: success on invalid input. 7428continue 7429else 7430 # Passes both tests. 7431ac_preproc_ok=: 7432break 7433fi 7434rm -f conftest.err conftest.i conftest.$ac_ext 7435 7436done 7437# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7438rm -f conftest.i conftest.err conftest.$ac_ext 7439if $ac_preproc_ok; then : 7440 7441else 7442 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7443$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7444as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 7445See \`config.log' for more details" "$LINENO" 5; } 7446fi 7447 7448ac_ext=c 7449ac_cpp='$CPP $CPPFLAGS' 7450ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7451ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7452ac_compiler_gnu=$ac_cv_c_compiler_gnu 7453 7454# Do we need CXX for anything besides google test? 7455ac_ext=cpp 7456ac_cpp='$CXXCPP $CPPFLAGS' 7457ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7458ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7459ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 7460if test -z "$CXX"; then 7461 if test -n "$CCC"; then 7462 CXX=$CCC 7463 else 7464 if test -n "$ac_tool_prefix"; then 7465 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 7466 do 7467 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 7468set dummy $ac_tool_prefix$ac_prog; ac_word=$2 7469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7470$as_echo_n "checking for $ac_word... " >&6; } 7471if ${ac_cv_prog_CXX+:} false; then : 7472 $as_echo_n "(cached) " >&6 7473else 7474 if test -n "$CXX"; then 7475 ac_cv_prog_CXX="$CXX" # Let the user override the test. 7476else 7477as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7478for as_dir in $PATH 7479do 7480 IFS=$as_save_IFS 7481 test -z "$as_dir" && as_dir=. 7482 for ac_exec_ext in '' $ac_executable_extensions; do 7483 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7484 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 7485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7486 break 2 7487 fi 7488done 7489 done 7490IFS=$as_save_IFS 7491 7492fi 7493fi 7494CXX=$ac_cv_prog_CXX 7495if test -n "$CXX"; then 7496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 7497$as_echo "$CXX" >&6; } 7498else 7499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7500$as_echo "no" >&6; } 7501fi 7502 7503 7504 test -n "$CXX" && break 7505 done 7506fi 7507if test -z "$CXX"; then 7508 ac_ct_CXX=$CXX 7509 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 7510do 7511 # Extract the first word of "$ac_prog", so it can be a program name with args. 7512set dummy $ac_prog; ac_word=$2 7513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7514$as_echo_n "checking for $ac_word... " >&6; } 7515if ${ac_cv_prog_ac_ct_CXX+:} false; then : 7516 $as_echo_n "(cached) " >&6 7517else 7518 if test -n "$ac_ct_CXX"; then 7519 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 7520else 7521as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7522for as_dir in $PATH 7523do 7524 IFS=$as_save_IFS 7525 test -z "$as_dir" && as_dir=. 7526 for ac_exec_ext in '' $ac_executable_extensions; do 7527 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7528 ac_cv_prog_ac_ct_CXX="$ac_prog" 7529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7530 break 2 7531 fi 7532done 7533 done 7534IFS=$as_save_IFS 7535 7536fi 7537fi 7538ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 7539if test -n "$ac_ct_CXX"; then 7540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 7541$as_echo "$ac_ct_CXX" >&6; } 7542else 7543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7544$as_echo "no" >&6; } 7545fi 7546 7547 7548 test -n "$ac_ct_CXX" && break 7549done 7550 7551 if test "x$ac_ct_CXX" = x; then 7552 CXX="g++" 7553 else 7554 case $cross_compiling:$ac_tool_warned in 7555yes:) 7556{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7557$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7558ac_tool_warned=yes ;; 7559esac 7560 CXX=$ac_ct_CXX 7561 fi 7562fi 7563 7564 fi 7565fi 7566# Provide some information about the compiler. 7567$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 7568set X $ac_compile 7569ac_compiler=$2 7570for ac_option in --version -v -V -qversion; do 7571 { { ac_try="$ac_compiler $ac_option >&5" 7572case "(($ac_try" in 7573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7574 *) ac_try_echo=$ac_try;; 7575esac 7576eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 7577$as_echo "$ac_try_echo"; } >&5 7578 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 7579 ac_status=$? 7580 if test -s conftest.err; then 7581 sed '10a\ 7582... rest of stderr output deleted ... 7583 10q' conftest.err >conftest.er1 7584 cat conftest.er1 >&5 7585 fi 7586 rm -f conftest.er1 conftest.err 7587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7588 test $ac_status = 0; } 7589done 7590 7591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 7592$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 7593if ${ac_cv_cxx_compiler_gnu+:} false; then : 7594 $as_echo_n "(cached) " >&6 7595else 7596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7597/* end confdefs.h. */ 7598 7599int 7600main () 7601{ 7602#ifndef __GNUC__ 7603 choke me 7604#endif 7605 7606 ; 7607 return 0; 7608} 7609_ACEOF 7610if ac_fn_cxx_try_compile "$LINENO"; then : 7611 ac_compiler_gnu=yes 7612else 7613 ac_compiler_gnu=no 7614fi 7615rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7616ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 7617 7618fi 7619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 7620$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 7621if test $ac_compiler_gnu = yes; then 7622 GXX=yes 7623else 7624 GXX= 7625fi 7626ac_test_CXXFLAGS=${CXXFLAGS+set} 7627ac_save_CXXFLAGS=$CXXFLAGS 7628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 7629$as_echo_n "checking whether $CXX accepts -g... " >&6; } 7630if ${ac_cv_prog_cxx_g+:} false; then : 7631 $as_echo_n "(cached) " >&6 7632else 7633 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 7634 ac_cxx_werror_flag=yes 7635 ac_cv_prog_cxx_g=no 7636 CXXFLAGS="-g" 7637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7638/* end confdefs.h. */ 7639 7640int 7641main () 7642{ 7643 7644 ; 7645 return 0; 7646} 7647_ACEOF 7648if ac_fn_cxx_try_compile "$LINENO"; then : 7649 ac_cv_prog_cxx_g=yes 7650else 7651 CXXFLAGS="" 7652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7653/* end confdefs.h. */ 7654 7655int 7656main () 7657{ 7658 7659 ; 7660 return 0; 7661} 7662_ACEOF 7663if ac_fn_cxx_try_compile "$LINENO"; then : 7664 7665else 7666 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 7667 CXXFLAGS="-g" 7668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7669/* end confdefs.h. */ 7670 7671int 7672main () 7673{ 7674 7675 ; 7676 return 0; 7677} 7678_ACEOF 7679if ac_fn_cxx_try_compile "$LINENO"; then : 7680 ac_cv_prog_cxx_g=yes 7681fi 7682rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7683fi 7684rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7685fi 7686rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7687 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 7688fi 7689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 7690$as_echo "$ac_cv_prog_cxx_g" >&6; } 7691if test "$ac_test_CXXFLAGS" = set; then 7692 CXXFLAGS=$ac_save_CXXFLAGS 7693elif test $ac_cv_prog_cxx_g = yes; then 7694 if test "$GXX" = yes; then 7695 CXXFLAGS="-g -O2" 7696 else 7697 CXXFLAGS="-g" 7698 fi 7699else 7700 if test "$GXX" = yes; then 7701 CXXFLAGS="-O2" 7702 else 7703 CXXFLAGS= 7704 fi 7705fi 7706ac_ext=c 7707ac_cpp='$CPP $CPPFLAGS' 7708ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7709ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7710ac_compiler_gnu=$ac_cv_c_compiler_gnu 7711 7712depcc="$CXX" am_compiler_list= 7713 7714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 7715$as_echo_n "checking dependency style of $depcc... " >&6; } 7716if ${am_cv_CXX_dependencies_compiler_type+:} false; then : 7717 $as_echo_n "(cached) " >&6 7718else 7719 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 7720 # We make a subdir and do the tests there. Otherwise we can end up 7721 # making bogus files that we don't know about and never remove. For 7722 # instance it was reported that on HP-UX the gcc test will end up 7723 # making a dummy file named 'D' -- because '-MD' means "put the output 7724 # in D". 7725 rm -rf conftest.dir 7726 mkdir conftest.dir 7727 # Copy depcomp to subdir because otherwise we won't find it if we're 7728 # using a relative directory. 7729 cp "$am_depcomp" conftest.dir 7730 cd conftest.dir 7731 # We will build objects and dependencies in a subdirectory because 7732 # it helps to detect inapplicable dependency modes. For instance 7733 # both Tru64's cc and ICC support -MD to output dependencies as a 7734 # side effect of compilation, but ICC will put the dependencies in 7735 # the current directory while Tru64 will put them in the object 7736 # directory. 7737 mkdir sub 7738 7739 am_cv_CXX_dependencies_compiler_type=none 7740 if test "$am_compiler_list" = ""; then 7741 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 7742 fi 7743 am__universal=false 7744 case " $depcc " in #( 7745 *\ -arch\ *\ -arch\ *) am__universal=true ;; 7746 esac 7747 7748 for depmode in $am_compiler_list; do 7749 # Setup a source with many dependencies, because some compilers 7750 # like to wrap large dependency lists on column 80 (with \), and 7751 # we should not choose a depcomp mode which is confused by this. 7752 # 7753 # We need to recreate these files for each test, as the compiler may 7754 # overwrite some of them when testing with obscure command lines. 7755 # This happens at least with the AIX C compiler. 7756 : > sub/conftest.c 7757 for i in 1 2 3 4 5 6; do 7758 echo '#include "conftst'$i'.h"' >> sub/conftest.c 7759 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 7760 # Solaris 10 /bin/sh. 7761 echo '/* dummy */' > sub/conftst$i.h 7762 done 7763 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 7764 7765 # We check with '-c' and '-o' for the sake of the "dashmstdout" 7766 # mode. It turns out that the SunPro C++ compiler does not properly 7767 # handle '-M -o', and we need to detect this. Also, some Intel 7768 # versions had trouble with output in subdirs. 7769 am__obj=sub/conftest.${OBJEXT-o} 7770 am__minus_obj="-o $am__obj" 7771 case $depmode in 7772 gcc) 7773 # This depmode causes a compiler race in universal mode. 7774 test "$am__universal" = false || continue 7775 ;; 7776 nosideeffect) 7777 # After this tag, mechanisms are not by side-effect, so they'll 7778 # only be used when explicitly requested. 7779 if test "x$enable_dependency_tracking" = xyes; then 7780 continue 7781 else 7782 break 7783 fi 7784 ;; 7785 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 7786 # This compiler won't grok '-c -o', but also, the minuso test has 7787 # not run yet. These depmodes are late enough in the game, and 7788 # so weak that their functioning should not be impacted. 7789 am__obj=conftest.${OBJEXT-o} 7790 am__minus_obj= 7791 ;; 7792 none) break ;; 7793 esac 7794 if depmode=$depmode \ 7795 source=sub/conftest.c object=$am__obj \ 7796 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 7797 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 7798 >/dev/null 2>conftest.err && 7799 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 7800 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 7801 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 7802 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 7803 # icc doesn't choke on unknown options, it will just issue warnings 7804 # or remarks (even with -Werror). So we grep stderr for any message 7805 # that says an option was ignored or not supported. 7806 # When given -MP, icc 7.0 and 7.1 complain thusly: 7807 # icc: Command line warning: ignoring option '-M'; no argument required 7808 # The diagnosis changed in icc 8.0: 7809 # icc: Command line remark: option '-MP' not supported 7810 if (grep 'ignoring option' conftest.err || 7811 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 7812 am_cv_CXX_dependencies_compiler_type=$depmode 7813 break 7814 fi 7815 fi 7816 done 7817 7818 cd .. 7819 rm -rf conftest.dir 7820else 7821 am_cv_CXX_dependencies_compiler_type=none 7822fi 7823 7824fi 7825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 7826$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 7827CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 7828 7829 if 7830 test "x$enable_dependency_tracking" != xno \ 7831 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 7832 am__fastdepCXX_TRUE= 7833 am__fastdepCXX_FALSE='#' 7834else 7835 am__fastdepCXX_TRUE='#' 7836 am__fastdepCXX_FALSE= 7837fi 7838 7839 7840for ac_prog in 'bison -y' byacc 7841do 7842 # Extract the first word of "$ac_prog", so it can be a program name with args. 7843set dummy $ac_prog; ac_word=$2 7844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7845$as_echo_n "checking for $ac_word... " >&6; } 7846if ${ac_cv_prog_YACC+:} false; then : 7847 $as_echo_n "(cached) " >&6 7848else 7849 if test -n "$YACC"; then 7850 ac_cv_prog_YACC="$YACC" # Let the user override the test. 7851else 7852as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7853for as_dir in $PATH 7854do 7855 IFS=$as_save_IFS 7856 test -z "$as_dir" && as_dir=. 7857 for ac_exec_ext in '' $ac_executable_extensions; do 7858 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7859 ac_cv_prog_YACC="$ac_prog" 7860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7861 break 2 7862 fi 7863done 7864 done 7865IFS=$as_save_IFS 7866 7867fi 7868fi 7869YACC=$ac_cv_prog_YACC 7870if test -n "$YACC"; then 7871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 7872$as_echo "$YACC" >&6; } 7873else 7874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7875$as_echo "no" >&6; } 7876fi 7877 7878 7879 test -n "$YACC" && break 7880done 7881test -n "$YACC" || YACC="yacc" 7882 7883if test "x$CC" != xcc; then 7884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5 7885$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; } 7886else 7887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5 7888$as_echo_n "checking whether cc understands -c and -o together... " >&6; } 7889fi 7890set dummy $CC; ac_cc=`$as_echo "$2" | 7891 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` 7892if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then : 7893 $as_echo_n "(cached) " >&6 7894else 7895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7896/* end confdefs.h. */ 7897 7898int 7899main () 7900{ 7901 7902 ; 7903 return 0; 7904} 7905_ACEOF 7906# Make sure it works both with $CC and with simple cc. 7907# We do the test twice because some compilers refuse to overwrite an 7908# existing .o file with -o, though they will create one. 7909ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5' 7910rm -f conftest2.* 7911if { { case "(($ac_try" in 7912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7913 *) ac_try_echo=$ac_try;; 7914esac 7915eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 7916$as_echo "$ac_try_echo"; } >&5 7917 (eval "$ac_try") 2>&5 7918 ac_status=$? 7919 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7920 test $ac_status = 0; } && 7921 test -f conftest2.$ac_objext && { { case "(($ac_try" in 7922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7923 *) ac_try_echo=$ac_try;; 7924esac 7925eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 7926$as_echo "$ac_try_echo"; } >&5 7927 (eval "$ac_try") 2>&5 7928 ac_status=$? 7929 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7930 test $ac_status = 0; }; 7931then 7932 eval ac_cv_prog_cc_${ac_cc}_c_o=yes 7933 if test "x$CC" != xcc; then 7934 # Test first that cc exists at all. 7935 if { ac_try='cc -c conftest.$ac_ext >&5' 7936 { { case "(($ac_try" in 7937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7938 *) ac_try_echo=$ac_try;; 7939esac 7940eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 7941$as_echo "$ac_try_echo"; } >&5 7942 (eval "$ac_try") 2>&5 7943 ac_status=$? 7944 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7945 test $ac_status = 0; }; }; then 7946 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5' 7947 rm -f conftest2.* 7948 if { { case "(($ac_try" in 7949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7950 *) ac_try_echo=$ac_try;; 7951esac 7952eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 7953$as_echo "$ac_try_echo"; } >&5 7954 (eval "$ac_try") 2>&5 7955 ac_status=$? 7956 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7957 test $ac_status = 0; } && 7958 test -f conftest2.$ac_objext && { { case "(($ac_try" in 7959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7960 *) ac_try_echo=$ac_try;; 7961esac 7962eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 7963$as_echo "$ac_try_echo"; } >&5 7964 (eval "$ac_try") 2>&5 7965 ac_status=$? 7966 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7967 test $ac_status = 0; }; 7968 then 7969 # cc works too. 7970 : 7971 else 7972 # cc exists but doesn't like -o. 7973 eval ac_cv_prog_cc_${ac_cc}_c_o=no 7974 fi 7975 fi 7976 fi 7977else 7978 eval ac_cv_prog_cc_${ac_cc}_c_o=no 7979fi 7980rm -f core conftest* 7981 7982fi 7983if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then 7984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7985$as_echo "yes" >&6; } 7986else 7987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7988$as_echo "no" >&6; } 7989 7990$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h 7991 7992fi 7993 7994 7995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports C99 structure initialization" >&5 7996$as_echo_n "checking whether the compiler supports C99 structure initialization... " >&6; } 7997 7998 7999 ac_ext=c 8000ac_cpp='$CPP $CPPFLAGS' 8001ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8002ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8003ac_compiler_gnu=$ac_cv_c_compiler_gnu 8004 8005 8006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8007/* end confdefs.h. */ 8008 8009 struct foo_s {int i1; int i2;}; 8010 int main() { struct foo_s foo[] = { { .i1 = 1, .i2 = 1 }, { .i1 = 2, .i2 = 2 }, { .i1 = 0, .i2 = 0 } }; } 8011 8012_ACEOF 8013if ac_fn_c_try_compile "$LINENO"; then : 8014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8015$as_echo "yes" >&6; } 8016else 8017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8018$as_echo "no" >&6; } 8019 8020$as_echo "#define MISSING_C99_STRUCT_INIT 1" >>confdefs.h 8021 8022fi 8023rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8024 8025 ac_ext=c 8026ac_cpp='$CPP $CPPFLAGS' 8027ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8028ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8029ac_compiler_gnu=$ac_cv_c_compiler_gnu 8030 8031 8032 8033 8034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if we need ylwrap VPATH hack" >&5 8035$as_echo_n "checking to see if we need ylwrap VPATH hack... " >&6; } 8036ntp_vpath_hack="no" 8037case "$srcdir::${force_ntp_vpath_hack-no}" in 8038 .::*) 8039 ;; # VPATH_HACK path is for VPATH builds only. 8040 *::yes) 8041 ntp_vpath_hack="yes" 8042 ;; 8043 *::*) 8044 case "`${MAKE-make} -v -f /dev/null 2>/dev/null | grep 'GNU Make'`" in 8045 '') 8046 ntp_vpath_hack="yes" 8047 esac 8048esac 8049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_vpath_hack" >&5 8050$as_echo "$ntp_vpath_hack" >&6; } 8051 if test x$ntp_vpath_hack = xyes; then 8052 VPATH_HACK_TRUE= 8053 VPATH_HACK_FALSE='#' 8054else 8055 VPATH_HACK_TRUE='#' 8056 VPATH_HACK_FALSE= 8057fi 8058 8059 8060 8061 8062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for install dir and man conventions" >&5 8063$as_echo_n "checking for install dir and man conventions... " >&6; } 8064 8065 8066# Check whether --with-locfile was given. 8067if test "${with_locfile+set}" = set; then : 8068 withval=$with_locfile; 8069else 8070 with_locfile=no 8071 8072fi 8073 8074 8075( \ 8076 SENTINEL_DIR="$PWD" && \ 8077 cd $srcdir/sntp && \ 8078 case "$with_locfile" in \ 8079 yes|no|'') \ 8080 scripts/genLocInfo -d "$SENTINEL_DIR" \ 8081 ;; \ 8082 *) \ 8083 scripts/genLocInfo -d "$SENTINEL_DIR" -f "$with_locfile" \ 8084 ;; \ 8085 esac \ 8086) > genLocInfo.i 2> genLocInfo.err 8087. ./genLocInfo.i 8088 8089case "$GENLOCINFO" in 8090 OK) 8091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in file $GENLOCINFOFILE" >&5 8092$as_echo "in file $GENLOCINFOFILE" >&6; } 8093 rm genLocInfo.err genLocInfo.i 8094 ;; 8095 *) 8096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed." >&5 8097$as_echo "failed." >&6; } 8098 as_fn_error $? "Problem with genLocInfo!" "$LINENO" 5 8099 ;; 8100esac 8101 8102 if test "$CALC_TICKADJ_MS" ; then 8103 WANT_CALC_TICKADJ_MS_TRUE= 8104 WANT_CALC_TICKADJ_MS_FALSE='#' 8105else 8106 WANT_CALC_TICKADJ_MS_TRUE='#' 8107 WANT_CALC_TICKADJ_MS_FALSE= 8108fi 8109 8110 8111 8112 8113 8114 8115 8116 8117 8118 8119 8120 8121 8122 8123 8124 8125 8126 8127 8128 8129 8130 8131 8132 8133 8134 8135 8136 8137 8138 8139 8140 8141 8142 8143 8144 8145 8146 8147 8148 8149 8150 8151 8152 if test -z "$NTPSWEEP_NI" ; then 8153 INSTALL_NTPSWEEP_TRUE= 8154 INSTALL_NTPSWEEP_FALSE='#' 8155else 8156 INSTALL_NTPSWEEP_TRUE='#' 8157 INSTALL_NTPSWEEP_FALSE= 8158fi 8159 8160 8161 8162 8163 8164 8165 8166 8167 8168 8169 8170 8171 8172 8173 8174 8175 8176 8177 8178 8179 8180 8181 8182 8183 8184 8185 8186 8187 8188 8189 8190 8191 8192 8193 8194 8195 8196 8197 8198 8199 8200 if test -z "$UPDATE_LEAP_NI" ; then 8201 INSTALL_UPDATE_LEAP_TRUE= 8202 INSTALL_UPDATE_LEAP_FALSE='#' 8203else 8204 INSTALL_UPDATE_LEAP_TRUE='#' 8205 INSTALL_UPDATE_LEAP_FALSE= 8206fi 8207 8208 8209 8210if test -n "$ac_tool_prefix"; then 8211 for ac_prog in ar lib "link -lib" 8212 do 8213 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 8214set dummy $ac_tool_prefix$ac_prog; ac_word=$2 8215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8216$as_echo_n "checking for $ac_word... " >&6; } 8217if ${ac_cv_prog_AR+:} false; then : 8218 $as_echo_n "(cached) " >&6 8219else 8220 if test -n "$AR"; then 8221 ac_cv_prog_AR="$AR" # Let the user override the test. 8222else 8223as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8224for as_dir in $PATH 8225do 8226 IFS=$as_save_IFS 8227 test -z "$as_dir" && as_dir=. 8228 for ac_exec_ext in '' $ac_executable_extensions; do 8229 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8230 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 8231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8232 break 2 8233 fi 8234done 8235 done 8236IFS=$as_save_IFS 8237 8238fi 8239fi 8240AR=$ac_cv_prog_AR 8241if test -n "$AR"; then 8242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 8243$as_echo "$AR" >&6; } 8244else 8245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8246$as_echo "no" >&6; } 8247fi 8248 8249 8250 test -n "$AR" && break 8251 done 8252fi 8253if test -z "$AR"; then 8254 ac_ct_AR=$AR 8255 for ac_prog in ar lib "link -lib" 8256do 8257 # Extract the first word of "$ac_prog", so it can be a program name with args. 8258set dummy $ac_prog; ac_word=$2 8259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8260$as_echo_n "checking for $ac_word... " >&6; } 8261if ${ac_cv_prog_ac_ct_AR+:} false; then : 8262 $as_echo_n "(cached) " >&6 8263else 8264 if test -n "$ac_ct_AR"; then 8265 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 8266else 8267as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8268for as_dir in $PATH 8269do 8270 IFS=$as_save_IFS 8271 test -z "$as_dir" && as_dir=. 8272 for ac_exec_ext in '' $ac_executable_extensions; do 8273 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8274 ac_cv_prog_ac_ct_AR="$ac_prog" 8275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8276 break 2 8277 fi 8278done 8279 done 8280IFS=$as_save_IFS 8281 8282fi 8283fi 8284ac_ct_AR=$ac_cv_prog_ac_ct_AR 8285if test -n "$ac_ct_AR"; then 8286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 8287$as_echo "$ac_ct_AR" >&6; } 8288else 8289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8290$as_echo "no" >&6; } 8291fi 8292 8293 8294 test -n "$ac_ct_AR" && break 8295done 8296 8297 if test "x$ac_ct_AR" = x; then 8298 AR="false" 8299 else 8300 case $cross_compiling:$ac_tool_warned in 8301yes:) 8302{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8303$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8304ac_tool_warned=yes ;; 8305esac 8306 AR=$ac_ct_AR 8307 fi 8308fi 8309 8310: ${AR=ar} 8311 8312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5 8313$as_echo_n "checking the archiver ($AR) interface... " >&6; } 8314if ${am_cv_ar_interface+:} false; then : 8315 $as_echo_n "(cached) " >&6 8316else 8317 ac_ext=c 8318ac_cpp='$CPP $CPPFLAGS' 8319ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8320ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8321ac_compiler_gnu=$ac_cv_c_compiler_gnu 8322 8323 am_cv_ar_interface=ar 8324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8325/* end confdefs.h. */ 8326int some_variable = 0; 8327_ACEOF 8328if ac_fn_c_try_compile "$LINENO"; then : 8329 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5' 8330 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 8331 (eval $am_ar_try) 2>&5 8332 ac_status=$? 8333 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8334 test $ac_status = 0; } 8335 if test "$ac_status" -eq 0; then 8336 am_cv_ar_interface=ar 8337 else 8338 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5' 8339 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 8340 (eval $am_ar_try) 2>&5 8341 ac_status=$? 8342 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8343 test $ac_status = 0; } 8344 if test "$ac_status" -eq 0; then 8345 am_cv_ar_interface=lib 8346 else 8347 am_cv_ar_interface=unknown 8348 fi 8349 fi 8350 rm -f conftest.lib libconftest.a 8351 8352fi 8353rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8354 ac_ext=c 8355ac_cpp='$CPP $CPPFLAGS' 8356ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8357ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8358ac_compiler_gnu=$ac_cv_c_compiler_gnu 8359 8360fi 8361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5 8362$as_echo "$am_cv_ar_interface" >&6; } 8363 8364case $am_cv_ar_interface in 8365ar) 8366 ;; 8367lib) 8368 # Microsoft lib, so override with the ar-lib wrapper script. 8369 # FIXME: It is wrong to rewrite AR. 8370 # But if we don't then we get into trouble of one sort or another. 8371 # A longer-term fix would be to have automake use am__AR in this case, 8372 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something 8373 # similar. 8374 AR="$am_aux_dir/ar-lib $AR" 8375 ;; 8376unknown) 8377 as_fn_error $? "could not determine $AR interface" "$LINENO" 5 8378 ;; 8379esac 8380 8381 8382 8383# So far, the only shared library we might use is libopts. 8384# It's a small library - we might as well use a static version of it. 8385# Check whether --enable-shared was given. 8386if test "${enable_shared+set}" = set; then : 8387 enableval=$enable_shared; p=${PACKAGE-default} 8388 case $enableval in 8389 yes) enable_shared=yes ;; 8390 no) enable_shared=no ;; 8391 *) 8392 enable_shared=no 8393 # Look at the argument we got. We use all the common list separators. 8394 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8395 for pkg in $enableval; do 8396 IFS=$lt_save_ifs 8397 if test "X$pkg" = "X$p"; then 8398 enable_shared=yes 8399 fi 8400 done 8401 IFS=$lt_save_ifs 8402 ;; 8403 esac 8404else 8405 enable_shared=no 8406fi 8407 8408 8409 8410 8411 8412 8413 8414 8415 8416case `pwd` in 8417 *\ * | *\ *) 8418 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 8419$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 8420esac 8421 8422 8423 8424macro_version='2.4.6' 8425macro_revision='2.4.6' 8426 8427 8428 8429 8430 8431 8432 8433 8434 8435 8436 8437 8438 8439ltmain=$ac_aux_dir/ltmain.sh 8440 8441# Backslashify metacharacters that are still active within 8442# double-quoted strings. 8443sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 8444 8445# Same as above, but do not quote variable references. 8446double_quote_subst='s/\(["`\\]\)/\\\1/g' 8447 8448# Sed substitution to delay expansion of an escaped shell variable in a 8449# double_quote_subst'ed string. 8450delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 8451 8452# Sed substitution to delay expansion of an escaped single quote. 8453delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 8454 8455# Sed substitution to avoid accidental globbing in evaled expressions 8456no_glob_subst='s/\*/\\\*/g' 8457 8458ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 8459ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 8460ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 8461 8462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 8463$as_echo_n "checking how to print strings... " >&6; } 8464# Test print first, because it will be a builtin if present. 8465if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 8466 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 8467 ECHO='print -r --' 8468elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 8469 ECHO='printf %s\n' 8470else 8471 # Use this function as a fallback that always works. 8472 func_fallback_echo () 8473 { 8474 eval 'cat <<_LTECHO_EOF 8475$1 8476_LTECHO_EOF' 8477 } 8478 ECHO='func_fallback_echo' 8479fi 8480 8481# func_echo_all arg... 8482# Invoke $ECHO with all args, space-separated. 8483func_echo_all () 8484{ 8485 $ECHO "" 8486} 8487 8488case $ECHO in 8489 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 8490$as_echo "printf" >&6; } ;; 8491 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 8492$as_echo "print -r" >&6; } ;; 8493 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 8494$as_echo "cat" >&6; } ;; 8495esac 8496 8497 8498 8499 8500 8501 8502 8503 8504 8505 8506 8507 8508 8509 8510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 8511$as_echo_n "checking for a sed that does not truncate output... " >&6; } 8512if ${ac_cv_path_SED+:} false; then : 8513 $as_echo_n "(cached) " >&6 8514else 8515 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 8516 for ac_i in 1 2 3 4 5 6 7; do 8517 ac_script="$ac_script$as_nl$ac_script" 8518 done 8519 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 8520 { ac_script=; unset ac_script;} 8521 if test -z "$SED"; then 8522 ac_path_SED_found=false 8523 # Loop through the user's path and test for each of PROGNAME-LIST 8524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8525for as_dir in $PATH 8526do 8527 IFS=$as_save_IFS 8528 test -z "$as_dir" && as_dir=. 8529 for ac_prog in sed gsed; do 8530 for ac_exec_ext in '' $ac_executable_extensions; do 8531 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 8532 as_fn_executable_p "$ac_path_SED" || continue 8533# Check for GNU ac_path_SED and select it if it is found. 8534 # Check for GNU $ac_path_SED 8535case `"$ac_path_SED" --version 2>&1` in 8536*GNU*) 8537 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 8538*) 8539 ac_count=0 8540 $as_echo_n 0123456789 >"conftest.in" 8541 while : 8542 do 8543 cat "conftest.in" "conftest.in" >"conftest.tmp" 8544 mv "conftest.tmp" "conftest.in" 8545 cp "conftest.in" "conftest.nl" 8546 $as_echo '' >> "conftest.nl" 8547 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 8548 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 8549 as_fn_arith $ac_count + 1 && ac_count=$as_val 8550 if test $ac_count -gt ${ac_path_SED_max-0}; then 8551 # Best one so far, save it but keep looking for a better one 8552 ac_cv_path_SED="$ac_path_SED" 8553 ac_path_SED_max=$ac_count 8554 fi 8555 # 10*(2^10) chars as input seems more than enough 8556 test $ac_count -gt 10 && break 8557 done 8558 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 8559esac 8560 8561 $ac_path_SED_found && break 3 8562 done 8563 done 8564 done 8565IFS=$as_save_IFS 8566 if test -z "$ac_cv_path_SED"; then 8567 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 8568 fi 8569else 8570 ac_cv_path_SED=$SED 8571fi 8572 8573fi 8574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 8575$as_echo "$ac_cv_path_SED" >&6; } 8576 SED="$ac_cv_path_SED" 8577 rm -f conftest.sed 8578 8579test -z "$SED" && SED=sed 8580Xsed="$SED -e 1s/^X//" 8581 8582 8583 8584 8585 8586 8587 8588 8589 8590 8591 8592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 8593$as_echo_n "checking for fgrep... " >&6; } 8594if ${ac_cv_path_FGREP+:} false; then : 8595 $as_echo_n "(cached) " >&6 8596else 8597 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 8598 then ac_cv_path_FGREP="$GREP -F" 8599 else 8600 if test -z "$FGREP"; then 8601 ac_path_FGREP_found=false 8602 # Loop through the user's path and test for each of PROGNAME-LIST 8603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8604for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 8605do 8606 IFS=$as_save_IFS 8607 test -z "$as_dir" && as_dir=. 8608 for ac_prog in fgrep; do 8609 for ac_exec_ext in '' $ac_executable_extensions; do 8610 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 8611 as_fn_executable_p "$ac_path_FGREP" || continue 8612# Check for GNU ac_path_FGREP and select it if it is found. 8613 # Check for GNU $ac_path_FGREP 8614case `"$ac_path_FGREP" --version 2>&1` in 8615*GNU*) 8616 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 8617*) 8618 ac_count=0 8619 $as_echo_n 0123456789 >"conftest.in" 8620 while : 8621 do 8622 cat "conftest.in" "conftest.in" >"conftest.tmp" 8623 mv "conftest.tmp" "conftest.in" 8624 cp "conftest.in" "conftest.nl" 8625 $as_echo 'FGREP' >> "conftest.nl" 8626 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 8627 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 8628 as_fn_arith $ac_count + 1 && ac_count=$as_val 8629 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 8630 # Best one so far, save it but keep looking for a better one 8631 ac_cv_path_FGREP="$ac_path_FGREP" 8632 ac_path_FGREP_max=$ac_count 8633 fi 8634 # 10*(2^10) chars as input seems more than enough 8635 test $ac_count -gt 10 && break 8636 done 8637 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 8638esac 8639 8640 $ac_path_FGREP_found && break 3 8641 done 8642 done 8643 done 8644IFS=$as_save_IFS 8645 if test -z "$ac_cv_path_FGREP"; then 8646 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 8647 fi 8648else 8649 ac_cv_path_FGREP=$FGREP 8650fi 8651 8652 fi 8653fi 8654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 8655$as_echo "$ac_cv_path_FGREP" >&6; } 8656 FGREP="$ac_cv_path_FGREP" 8657 8658 8659test -z "$GREP" && GREP=grep 8660 8661 8662 8663 8664 8665 8666 8667 8668 8669 8670 8671 8672 8673 8674 8675 8676 8677 8678 8679# Check whether --with-gnu-ld was given. 8680if test "${with_gnu_ld+set}" = set; then : 8681 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 8682else 8683 with_gnu_ld=no 8684fi 8685 8686ac_prog=ld 8687if test yes = "$GCC"; then 8688 # Check if gcc -print-prog-name=ld gives a path. 8689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 8690$as_echo_n "checking for ld used by $CC... " >&6; } 8691 case $host in 8692 *-*-mingw*) 8693 # gcc leaves a trailing carriage return, which upsets mingw 8694 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 8695 *) 8696 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 8697 esac 8698 case $ac_prog in 8699 # Accept absolute paths. 8700 [\\/]* | ?:[\\/]*) 8701 re_direlt='/[^/][^/]*/\.\./' 8702 # Canonicalize the pathname of ld 8703 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 8704 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 8705 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 8706 done 8707 test -z "$LD" && LD=$ac_prog 8708 ;; 8709 "") 8710 # If it fails, then pretend we aren't using GCC. 8711 ac_prog=ld 8712 ;; 8713 *) 8714 # If it is relative, then search for the first ld in PATH. 8715 with_gnu_ld=unknown 8716 ;; 8717 esac 8718elif test yes = "$with_gnu_ld"; then 8719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 8720$as_echo_n "checking for GNU ld... " >&6; } 8721else 8722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 8723$as_echo_n "checking for non-GNU ld... " >&6; } 8724fi 8725if ${lt_cv_path_LD+:} false; then : 8726 $as_echo_n "(cached) " >&6 8727else 8728 if test -z "$LD"; then 8729 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8730 for ac_dir in $PATH; do 8731 IFS=$lt_save_ifs 8732 test -z "$ac_dir" && ac_dir=. 8733 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 8734 lt_cv_path_LD=$ac_dir/$ac_prog 8735 # Check to see if the program is GNU ld. I'd rather use --version, 8736 # but apparently some variants of GNU ld only accept -v. 8737 # Break only if it was the GNU/non-GNU ld that we prefer. 8738 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 8739 *GNU* | *'with BFD'*) 8740 test no != "$with_gnu_ld" && break 8741 ;; 8742 *) 8743 test yes != "$with_gnu_ld" && break 8744 ;; 8745 esac 8746 fi 8747 done 8748 IFS=$lt_save_ifs 8749else 8750 lt_cv_path_LD=$LD # Let the user override the test with a path. 8751fi 8752fi 8753 8754LD=$lt_cv_path_LD 8755if test -n "$LD"; then 8756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 8757$as_echo "$LD" >&6; } 8758else 8759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8760$as_echo "no" >&6; } 8761fi 8762test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 8763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 8764$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 8765if ${lt_cv_prog_gnu_ld+:} false; then : 8766 $as_echo_n "(cached) " >&6 8767else 8768 # I'd rather use --version here, but apparently some GNU lds only accept -v. 8769case `$LD -v 2>&1 </dev/null` in 8770*GNU* | *'with BFD'*) 8771 lt_cv_prog_gnu_ld=yes 8772 ;; 8773*) 8774 lt_cv_prog_gnu_ld=no 8775 ;; 8776esac 8777fi 8778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 8779$as_echo "$lt_cv_prog_gnu_ld" >&6; } 8780with_gnu_ld=$lt_cv_prog_gnu_ld 8781 8782 8783 8784 8785 8786 8787 8788 8789 8790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 8791$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 8792if ${lt_cv_path_NM+:} false; then : 8793 $as_echo_n "(cached) " >&6 8794else 8795 if test -n "$NM"; then 8796 # Let the user override the test. 8797 lt_cv_path_NM=$NM 8798else 8799 lt_nm_to_check=${ac_tool_prefix}nm 8800 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 8801 lt_nm_to_check="$lt_nm_to_check nm" 8802 fi 8803 for lt_tmp_nm in $lt_nm_to_check; do 8804 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8805 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 8806 IFS=$lt_save_ifs 8807 test -z "$ac_dir" && ac_dir=. 8808 tmp_nm=$ac_dir/$lt_tmp_nm 8809 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 8810 # Check to see if the nm accepts a BSD-compat flag. 8811 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 8812 # nm: unknown option "B" ignored 8813 # Tru64's nm complains that /dev/null is an invalid object file 8814 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 8815 case $build_os in 8816 mingw*) lt_bad_file=conftest.nm/nofile ;; 8817 *) lt_bad_file=/dev/null ;; 8818 esac 8819 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 8820 *$lt_bad_file* | *'Invalid file or object type'*) 8821 lt_cv_path_NM="$tmp_nm -B" 8822 break 2 8823 ;; 8824 *) 8825 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 8826 */dev/null*) 8827 lt_cv_path_NM="$tmp_nm -p" 8828 break 2 8829 ;; 8830 *) 8831 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 8832 continue # so that we can try to find one that supports BSD flags 8833 ;; 8834 esac 8835 ;; 8836 esac 8837 fi 8838 done 8839 IFS=$lt_save_ifs 8840 done 8841 : ${lt_cv_path_NM=no} 8842fi 8843fi 8844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 8845$as_echo "$lt_cv_path_NM" >&6; } 8846if test no != "$lt_cv_path_NM"; then 8847 NM=$lt_cv_path_NM 8848else 8849 # Didn't find any BSD compatible name lister, look for dumpbin. 8850 if test -n "$DUMPBIN"; then : 8851 # Let the user override the test. 8852 else 8853 if test -n "$ac_tool_prefix"; then 8854 for ac_prog in dumpbin "link -dump" 8855 do 8856 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 8857set dummy $ac_tool_prefix$ac_prog; ac_word=$2 8858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8859$as_echo_n "checking for $ac_word... " >&6; } 8860if ${ac_cv_prog_DUMPBIN+:} false; then : 8861 $as_echo_n "(cached) " >&6 8862else 8863 if test -n "$DUMPBIN"; then 8864 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 8865else 8866as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8867for as_dir in $PATH 8868do 8869 IFS=$as_save_IFS 8870 test -z "$as_dir" && as_dir=. 8871 for ac_exec_ext in '' $ac_executable_extensions; do 8872 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8873 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 8874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8875 break 2 8876 fi 8877done 8878 done 8879IFS=$as_save_IFS 8880 8881fi 8882fi 8883DUMPBIN=$ac_cv_prog_DUMPBIN 8884if test -n "$DUMPBIN"; then 8885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 8886$as_echo "$DUMPBIN" >&6; } 8887else 8888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8889$as_echo "no" >&6; } 8890fi 8891 8892 8893 test -n "$DUMPBIN" && break 8894 done 8895fi 8896if test -z "$DUMPBIN"; then 8897 ac_ct_DUMPBIN=$DUMPBIN 8898 for ac_prog in dumpbin "link -dump" 8899do 8900 # Extract the first word of "$ac_prog", so it can be a program name with args. 8901set dummy $ac_prog; ac_word=$2 8902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8903$as_echo_n "checking for $ac_word... " >&6; } 8904if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 8905 $as_echo_n "(cached) " >&6 8906else 8907 if test -n "$ac_ct_DUMPBIN"; then 8908 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 8909else 8910as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8911for as_dir in $PATH 8912do 8913 IFS=$as_save_IFS 8914 test -z "$as_dir" && as_dir=. 8915 for ac_exec_ext in '' $ac_executable_extensions; do 8916 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8917 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 8918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8919 break 2 8920 fi 8921done 8922 done 8923IFS=$as_save_IFS 8924 8925fi 8926fi 8927ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 8928if test -n "$ac_ct_DUMPBIN"; then 8929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 8930$as_echo "$ac_ct_DUMPBIN" >&6; } 8931else 8932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8933$as_echo "no" >&6; } 8934fi 8935 8936 8937 test -n "$ac_ct_DUMPBIN" && break 8938done 8939 8940 if test "x$ac_ct_DUMPBIN" = x; then 8941 DUMPBIN=":" 8942 else 8943 case $cross_compiling:$ac_tool_warned in 8944yes:) 8945{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8946$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8947ac_tool_warned=yes ;; 8948esac 8949 DUMPBIN=$ac_ct_DUMPBIN 8950 fi 8951fi 8952 8953 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 8954 *COFF*) 8955 DUMPBIN="$DUMPBIN -symbols -headers" 8956 ;; 8957 *) 8958 DUMPBIN=: 8959 ;; 8960 esac 8961 fi 8962 8963 if test : != "$DUMPBIN"; then 8964 NM=$DUMPBIN 8965 fi 8966fi 8967test -z "$NM" && NM=nm 8968 8969 8970 8971 8972 8973 8974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 8975$as_echo_n "checking the name lister ($NM) interface... " >&6; } 8976if ${lt_cv_nm_interface+:} false; then : 8977 $as_echo_n "(cached) " >&6 8978else 8979 lt_cv_nm_interface="BSD nm" 8980 echo "int some_variable = 0;" > conftest.$ac_ext 8981 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 8982 (eval "$ac_compile" 2>conftest.err) 8983 cat conftest.err >&5 8984 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 8985 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 8986 cat conftest.err >&5 8987 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 8988 cat conftest.out >&5 8989 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 8990 lt_cv_nm_interface="MS dumpbin" 8991 fi 8992 rm -f conftest* 8993fi 8994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 8995$as_echo "$lt_cv_nm_interface" >&6; } 8996 8997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 8998$as_echo_n "checking whether ln -s works... " >&6; } 8999LN_S=$as_ln_s 9000if test "$LN_S" = "ln -s"; then 9001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9002$as_echo "yes" >&6; } 9003else 9004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 9005$as_echo "no, using $LN_S" >&6; } 9006fi 9007 9008# find the maximum length of command line arguments 9009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 9010$as_echo_n "checking the maximum length of command line arguments... " >&6; } 9011if ${lt_cv_sys_max_cmd_len+:} false; then : 9012 $as_echo_n "(cached) " >&6 9013else 9014 i=0 9015 teststring=ABCD 9016 9017 case $build_os in 9018 msdosdjgpp*) 9019 # On DJGPP, this test can blow up pretty badly due to problems in libc 9020 # (any single argument exceeding 2000 bytes causes a buffer overrun 9021 # during glob expansion). Even if it were fixed, the result of this 9022 # check would be larger than it should be. 9023 lt_cv_sys_max_cmd_len=12288; # 12K is about right 9024 ;; 9025 9026 gnu*) 9027 # Under GNU Hurd, this test is not required because there is 9028 # no limit to the length of command line arguments. 9029 # Libtool will interpret -1 as no limit whatsoever 9030 lt_cv_sys_max_cmd_len=-1; 9031 ;; 9032 9033 cygwin* | mingw* | cegcc*) 9034 # On Win9x/ME, this test blows up -- it succeeds, but takes 9035 # about 5 minutes as the teststring grows exponentially. 9036 # Worse, since 9x/ME are not pre-emptively multitasking, 9037 # you end up with a "frozen" computer, even though with patience 9038 # the test eventually succeeds (with a max line length of 256k). 9039 # Instead, let's just punt: use the minimum linelength reported by 9040 # all of the supported platforms: 8192 (on NT/2K/XP). 9041 lt_cv_sys_max_cmd_len=8192; 9042 ;; 9043 9044 mint*) 9045 # On MiNT this can take a long time and run out of memory. 9046 lt_cv_sys_max_cmd_len=8192; 9047 ;; 9048 9049 amigaos*) 9050 # On AmigaOS with pdksh, this test takes hours, literally. 9051 # So we just punt and use a minimum line length of 8192. 9052 lt_cv_sys_max_cmd_len=8192; 9053 ;; 9054 9055 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 9056 # This has been around since 386BSD, at least. Likely further. 9057 if test -x /sbin/sysctl; then 9058 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 9059 elif test -x /usr/sbin/sysctl; then 9060 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 9061 else 9062 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 9063 fi 9064 # And add a safety zone 9065 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 9066 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 9067 ;; 9068 9069 interix*) 9070 # We know the value 262144 and hardcode it with a safety zone (like BSD) 9071 lt_cv_sys_max_cmd_len=196608 9072 ;; 9073 9074 os2*) 9075 # The test takes a long time on OS/2. 9076 lt_cv_sys_max_cmd_len=8192 9077 ;; 9078 9079 osf*) 9080 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 9081 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 9082 # nice to cause kernel panics so lets avoid the loop below. 9083 # First set a reasonable default. 9084 lt_cv_sys_max_cmd_len=16384 9085 # 9086 if test -x /sbin/sysconfig; then 9087 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 9088 *1*) lt_cv_sys_max_cmd_len=-1 ;; 9089 esac 9090 fi 9091 ;; 9092 sco3.2v5*) 9093 lt_cv_sys_max_cmd_len=102400 9094 ;; 9095 sysv5* | sco5v6* | sysv4.2uw2*) 9096 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 9097 if test -n "$kargmax"; then 9098 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 9099 else 9100 lt_cv_sys_max_cmd_len=32768 9101 fi 9102 ;; 9103 *) 9104 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 9105 if test -n "$lt_cv_sys_max_cmd_len" && \ 9106 test undefined != "$lt_cv_sys_max_cmd_len"; then 9107 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 9108 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 9109 else 9110 # Make teststring a little bigger before we do anything with it. 9111 # a 1K string should be a reasonable start. 9112 for i in 1 2 3 4 5 6 7 8; do 9113 teststring=$teststring$teststring 9114 done 9115 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 9116 # If test is not a shell built-in, we'll probably end up computing a 9117 # maximum length that is only half of the actual maximum length, but 9118 # we can't tell. 9119 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 9120 = "X$teststring$teststring"; } >/dev/null 2>&1 && 9121 test 17 != "$i" # 1/2 MB should be enough 9122 do 9123 i=`expr $i + 1` 9124 teststring=$teststring$teststring 9125 done 9126 # Only check the string length outside the loop. 9127 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 9128 teststring= 9129 # Add a significant safety factor because C++ compilers can tack on 9130 # massive amounts of additional arguments before passing them to the 9131 # linker. It appears as though 1/2 is a usable value. 9132 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 9133 fi 9134 ;; 9135 esac 9136 9137fi 9138 9139if test -n "$lt_cv_sys_max_cmd_len"; then 9140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 9141$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 9142else 9143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 9144$as_echo "none" >&6; } 9145fi 9146max_cmd_len=$lt_cv_sys_max_cmd_len 9147 9148 9149 9150 9151 9152 9153: ${CP="cp -f"} 9154: ${MV="mv -f"} 9155: ${RM="rm -f"} 9156 9157if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 9158 lt_unset=unset 9159else 9160 lt_unset=false 9161fi 9162 9163 9164 9165 9166 9167# test EBCDIC or ASCII 9168case `echo X|tr X '\101'` in 9169 A) # ASCII based system 9170 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 9171 lt_SP2NL='tr \040 \012' 9172 lt_NL2SP='tr \015\012 \040\040' 9173 ;; 9174 *) # EBCDIC based system 9175 lt_SP2NL='tr \100 \n' 9176 lt_NL2SP='tr \r\n \100\100' 9177 ;; 9178esac 9179 9180 9181 9182 9183 9184 9185 9186 9187 9188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 9189$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 9190if ${lt_cv_to_host_file_cmd+:} false; then : 9191 $as_echo_n "(cached) " >&6 9192else 9193 case $host in 9194 *-*-mingw* ) 9195 case $build in 9196 *-*-mingw* ) # actually msys 9197 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 9198 ;; 9199 *-*-cygwin* ) 9200 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 9201 ;; 9202 * ) # otherwise, assume *nix 9203 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 9204 ;; 9205 esac 9206 ;; 9207 *-*-cygwin* ) 9208 case $build in 9209 *-*-mingw* ) # actually msys 9210 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 9211 ;; 9212 *-*-cygwin* ) 9213 lt_cv_to_host_file_cmd=func_convert_file_noop 9214 ;; 9215 * ) # otherwise, assume *nix 9216 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 9217 ;; 9218 esac 9219 ;; 9220 * ) # unhandled hosts (and "normal" native builds) 9221 lt_cv_to_host_file_cmd=func_convert_file_noop 9222 ;; 9223esac 9224 9225fi 9226 9227to_host_file_cmd=$lt_cv_to_host_file_cmd 9228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 9229$as_echo "$lt_cv_to_host_file_cmd" >&6; } 9230 9231 9232 9233 9234 9235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 9236$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 9237if ${lt_cv_to_tool_file_cmd+:} false; then : 9238 $as_echo_n "(cached) " >&6 9239else 9240 #assume ordinary cross tools, or native build. 9241lt_cv_to_tool_file_cmd=func_convert_file_noop 9242case $host in 9243 *-*-mingw* ) 9244 case $build in 9245 *-*-mingw* ) # actually msys 9246 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 9247 ;; 9248 esac 9249 ;; 9250esac 9251 9252fi 9253 9254to_tool_file_cmd=$lt_cv_to_tool_file_cmd 9255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 9256$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 9257 9258 9259 9260 9261 9262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 9263$as_echo_n "checking for $LD option to reload object files... " >&6; } 9264if ${lt_cv_ld_reload_flag+:} false; then : 9265 $as_echo_n "(cached) " >&6 9266else 9267 lt_cv_ld_reload_flag='-r' 9268fi 9269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 9270$as_echo "$lt_cv_ld_reload_flag" >&6; } 9271reload_flag=$lt_cv_ld_reload_flag 9272case $reload_flag in 9273"" | " "*) ;; 9274*) reload_flag=" $reload_flag" ;; 9275esac 9276reload_cmds='$LD$reload_flag -o $output$reload_objs' 9277case $host_os in 9278 cygwin* | mingw* | pw32* | cegcc*) 9279 if test yes != "$GCC"; then 9280 reload_cmds=false 9281 fi 9282 ;; 9283 darwin*) 9284 if test yes = "$GCC"; then 9285 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 9286 else 9287 reload_cmds='$LD$reload_flag -o $output$reload_objs' 9288 fi 9289 ;; 9290esac 9291 9292 9293 9294 9295 9296 9297 9298 9299 9300if test -n "$ac_tool_prefix"; then 9301 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 9302set dummy ${ac_tool_prefix}objdump; ac_word=$2 9303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9304$as_echo_n "checking for $ac_word... " >&6; } 9305if ${ac_cv_prog_OBJDUMP+:} false; then : 9306 $as_echo_n "(cached) " >&6 9307else 9308 if test -n "$OBJDUMP"; then 9309 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 9310else 9311as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9312for as_dir in $PATH 9313do 9314 IFS=$as_save_IFS 9315 test -z "$as_dir" && as_dir=. 9316 for ac_exec_ext in '' $ac_executable_extensions; do 9317 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9318 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 9319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9320 break 2 9321 fi 9322done 9323 done 9324IFS=$as_save_IFS 9325 9326fi 9327fi 9328OBJDUMP=$ac_cv_prog_OBJDUMP 9329if test -n "$OBJDUMP"; then 9330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 9331$as_echo "$OBJDUMP" >&6; } 9332else 9333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9334$as_echo "no" >&6; } 9335fi 9336 9337 9338fi 9339if test -z "$ac_cv_prog_OBJDUMP"; then 9340 ac_ct_OBJDUMP=$OBJDUMP 9341 # Extract the first word of "objdump", so it can be a program name with args. 9342set dummy objdump; ac_word=$2 9343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9344$as_echo_n "checking for $ac_word... " >&6; } 9345if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 9346 $as_echo_n "(cached) " >&6 9347else 9348 if test -n "$ac_ct_OBJDUMP"; then 9349 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 9350else 9351as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9352for as_dir in $PATH 9353do 9354 IFS=$as_save_IFS 9355 test -z "$as_dir" && as_dir=. 9356 for ac_exec_ext in '' $ac_executable_extensions; do 9357 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9358 ac_cv_prog_ac_ct_OBJDUMP="objdump" 9359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9360 break 2 9361 fi 9362done 9363 done 9364IFS=$as_save_IFS 9365 9366fi 9367fi 9368ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 9369if test -n "$ac_ct_OBJDUMP"; then 9370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 9371$as_echo "$ac_ct_OBJDUMP" >&6; } 9372else 9373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9374$as_echo "no" >&6; } 9375fi 9376 9377 if test "x$ac_ct_OBJDUMP" = x; then 9378 OBJDUMP="false" 9379 else 9380 case $cross_compiling:$ac_tool_warned in 9381yes:) 9382{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9383$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9384ac_tool_warned=yes ;; 9385esac 9386 OBJDUMP=$ac_ct_OBJDUMP 9387 fi 9388else 9389 OBJDUMP="$ac_cv_prog_OBJDUMP" 9390fi 9391 9392test -z "$OBJDUMP" && OBJDUMP=objdump 9393 9394 9395 9396 9397 9398 9399 9400 9401 9402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 9403$as_echo_n "checking how to recognize dependent libraries... " >&6; } 9404if ${lt_cv_deplibs_check_method+:} false; then : 9405 $as_echo_n "(cached) " >&6 9406else 9407 lt_cv_file_magic_cmd='$MAGIC_CMD' 9408lt_cv_file_magic_test_file= 9409lt_cv_deplibs_check_method='unknown' 9410# Need to set the preceding variable on all platforms that support 9411# interlibrary dependencies. 9412# 'none' -- dependencies not supported. 9413# 'unknown' -- same as none, but documents that we really don't know. 9414# 'pass_all' -- all dependencies passed with no checks. 9415# 'test_compile' -- check by making test program. 9416# 'file_magic [[regex]]' -- check by looking for files in library path 9417# that responds to the $file_magic_cmd with a given extended regex. 9418# If you have 'file' or equivalent on your system and you're not sure 9419# whether 'pass_all' will *always* work, you probably want this one. 9420 9421case $host_os in 9422aix[4-9]*) 9423 lt_cv_deplibs_check_method=pass_all 9424 ;; 9425 9426beos*) 9427 lt_cv_deplibs_check_method=pass_all 9428 ;; 9429 9430bsdi[45]*) 9431 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 9432 lt_cv_file_magic_cmd='/usr/bin/file -L' 9433 lt_cv_file_magic_test_file=/shlib/libc.so 9434 ;; 9435 9436cygwin*) 9437 # func_win32_libid is a shell function defined in ltmain.sh 9438 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 9439 lt_cv_file_magic_cmd='func_win32_libid' 9440 ;; 9441 9442mingw* | pw32*) 9443 # Base MSYS/MinGW do not provide the 'file' command needed by 9444 # func_win32_libid shell function, so use a weaker test based on 'objdump', 9445 # unless we find 'file', for example because we are cross-compiling. 9446 if ( file / ) >/dev/null 2>&1; then 9447 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 9448 lt_cv_file_magic_cmd='func_win32_libid' 9449 else 9450 # Keep this pattern in sync with the one in func_win32_libid. 9451 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 9452 lt_cv_file_magic_cmd='$OBJDUMP -f' 9453 fi 9454 ;; 9455 9456cegcc*) 9457 # use the weaker test based on 'objdump'. See mingw*. 9458 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 9459 lt_cv_file_magic_cmd='$OBJDUMP -f' 9460 ;; 9461 9462darwin* | rhapsody*) 9463 lt_cv_deplibs_check_method=pass_all 9464 ;; 9465 9466freebsd* | dragonfly*) 9467 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 9468 case $host_cpu in 9469 i*86 ) 9470 # Not sure whether the presence of OpenBSD here was a mistake. 9471 # Let's accept both of them until this is cleared up. 9472 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 9473 lt_cv_file_magic_cmd=/usr/bin/file 9474 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 9475 ;; 9476 esac 9477 else 9478 lt_cv_deplibs_check_method=pass_all 9479 fi 9480 ;; 9481 9482haiku*) 9483 lt_cv_deplibs_check_method=pass_all 9484 ;; 9485 9486hpux10.20* | hpux11*) 9487 lt_cv_file_magic_cmd=/usr/bin/file 9488 case $host_cpu in 9489 ia64*) 9490 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 9491 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 9492 ;; 9493 hppa*64*) 9494 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]' 9495 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 9496 ;; 9497 *) 9498 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 9499 lt_cv_file_magic_test_file=/usr/lib/libc.sl 9500 ;; 9501 esac 9502 ;; 9503 9504interix[3-9]*) 9505 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 9506 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 9507 ;; 9508 9509irix5* | irix6* | nonstopux*) 9510 case $LD in 9511 *-32|*"-32 ") libmagic=32-bit;; 9512 *-n32|*"-n32 ") libmagic=N32;; 9513 *-64|*"-64 ") libmagic=64-bit;; 9514 *) libmagic=never-match;; 9515 esac 9516 lt_cv_deplibs_check_method=pass_all 9517 ;; 9518 9519# This must be glibc/ELF. 9520linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 9521 lt_cv_deplibs_check_method=pass_all 9522 ;; 9523 9524netbsd*) 9525 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 9526 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 9527 else 9528 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 9529 fi 9530 ;; 9531 9532newos6*) 9533 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 9534 lt_cv_file_magic_cmd=/usr/bin/file 9535 lt_cv_file_magic_test_file=/usr/lib/libnls.so 9536 ;; 9537 9538*nto* | *qnx*) 9539 lt_cv_deplibs_check_method=pass_all 9540 ;; 9541 9542openbsd* | bitrig*) 9543 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 9544 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 9545 else 9546 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 9547 fi 9548 ;; 9549 9550osf3* | osf4* | osf5*) 9551 lt_cv_deplibs_check_method=pass_all 9552 ;; 9553 9554rdos*) 9555 lt_cv_deplibs_check_method=pass_all 9556 ;; 9557 9558solaris*) 9559 lt_cv_deplibs_check_method=pass_all 9560 ;; 9561 9562sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 9563 lt_cv_deplibs_check_method=pass_all 9564 ;; 9565 9566sysv4 | sysv4.3*) 9567 case $host_vendor in 9568 motorola) 9569 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]' 9570 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 9571 ;; 9572 ncr) 9573 lt_cv_deplibs_check_method=pass_all 9574 ;; 9575 sequent) 9576 lt_cv_file_magic_cmd='/bin/file' 9577 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 9578 ;; 9579 sni) 9580 lt_cv_file_magic_cmd='/bin/file' 9581 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 9582 lt_cv_file_magic_test_file=/lib/libc.so 9583 ;; 9584 siemens) 9585 lt_cv_deplibs_check_method=pass_all 9586 ;; 9587 pc) 9588 lt_cv_deplibs_check_method=pass_all 9589 ;; 9590 esac 9591 ;; 9592 9593tpf*) 9594 lt_cv_deplibs_check_method=pass_all 9595 ;; 9596os2*) 9597 lt_cv_deplibs_check_method=pass_all 9598 ;; 9599esac 9600 9601fi 9602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 9603$as_echo "$lt_cv_deplibs_check_method" >&6; } 9604 9605file_magic_glob= 9606want_nocaseglob=no 9607if test "$build" = "$host"; then 9608 case $host_os in 9609 mingw* | pw32*) 9610 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 9611 want_nocaseglob=yes 9612 else 9613 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 9614 fi 9615 ;; 9616 esac 9617fi 9618 9619file_magic_cmd=$lt_cv_file_magic_cmd 9620deplibs_check_method=$lt_cv_deplibs_check_method 9621test -z "$deplibs_check_method" && deplibs_check_method=unknown 9622 9623 9624 9625 9626 9627 9628 9629 9630 9631 9632 9633 9634 9635 9636 9637 9638 9639 9640 9641 9642 9643 9644if test -n "$ac_tool_prefix"; then 9645 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 9646set dummy ${ac_tool_prefix}dlltool; ac_word=$2 9647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9648$as_echo_n "checking for $ac_word... " >&6; } 9649if ${ac_cv_prog_DLLTOOL+:} false; then : 9650 $as_echo_n "(cached) " >&6 9651else 9652 if test -n "$DLLTOOL"; then 9653 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 9654else 9655as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9656for as_dir in $PATH 9657do 9658 IFS=$as_save_IFS 9659 test -z "$as_dir" && as_dir=. 9660 for ac_exec_ext in '' $ac_executable_extensions; do 9661 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9662 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 9663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9664 break 2 9665 fi 9666done 9667 done 9668IFS=$as_save_IFS 9669 9670fi 9671fi 9672DLLTOOL=$ac_cv_prog_DLLTOOL 9673if test -n "$DLLTOOL"; then 9674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 9675$as_echo "$DLLTOOL" >&6; } 9676else 9677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9678$as_echo "no" >&6; } 9679fi 9680 9681 9682fi 9683if test -z "$ac_cv_prog_DLLTOOL"; then 9684 ac_ct_DLLTOOL=$DLLTOOL 9685 # Extract the first word of "dlltool", so it can be a program name with args. 9686set dummy dlltool; ac_word=$2 9687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9688$as_echo_n "checking for $ac_word... " >&6; } 9689if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 9690 $as_echo_n "(cached) " >&6 9691else 9692 if test -n "$ac_ct_DLLTOOL"; then 9693 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 9694else 9695as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9696for as_dir in $PATH 9697do 9698 IFS=$as_save_IFS 9699 test -z "$as_dir" && as_dir=. 9700 for ac_exec_ext in '' $ac_executable_extensions; do 9701 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9702 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 9703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9704 break 2 9705 fi 9706done 9707 done 9708IFS=$as_save_IFS 9709 9710fi 9711fi 9712ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 9713if test -n "$ac_ct_DLLTOOL"; then 9714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 9715$as_echo "$ac_ct_DLLTOOL" >&6; } 9716else 9717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9718$as_echo "no" >&6; } 9719fi 9720 9721 if test "x$ac_ct_DLLTOOL" = x; then 9722 DLLTOOL="false" 9723 else 9724 case $cross_compiling:$ac_tool_warned in 9725yes:) 9726{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9727$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9728ac_tool_warned=yes ;; 9729esac 9730 DLLTOOL=$ac_ct_DLLTOOL 9731 fi 9732else 9733 DLLTOOL="$ac_cv_prog_DLLTOOL" 9734fi 9735 9736test -z "$DLLTOOL" && DLLTOOL=dlltool 9737 9738 9739 9740 9741 9742 9743 9744 9745 9746 9747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 9748$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 9749if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 9750 $as_echo_n "(cached) " >&6 9751else 9752 lt_cv_sharedlib_from_linklib_cmd='unknown' 9753 9754case $host_os in 9755cygwin* | mingw* | pw32* | cegcc*) 9756 # two different shell functions defined in ltmain.sh; 9757 # decide which one to use based on capabilities of $DLLTOOL 9758 case `$DLLTOOL --help 2>&1` in 9759 *--identify-strict*) 9760 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 9761 ;; 9762 *) 9763 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 9764 ;; 9765 esac 9766 ;; 9767*) 9768 # fallback: assume linklib IS sharedlib 9769 lt_cv_sharedlib_from_linklib_cmd=$ECHO 9770 ;; 9771esac 9772 9773fi 9774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 9775$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 9776sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 9777test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 9778 9779 9780 9781 9782 9783 9784 9785if test -n "$ac_tool_prefix"; then 9786 for ac_prog in ar 9787 do 9788 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 9789set dummy $ac_tool_prefix$ac_prog; ac_word=$2 9790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9791$as_echo_n "checking for $ac_word... " >&6; } 9792if ${ac_cv_prog_AR+:} false; then : 9793 $as_echo_n "(cached) " >&6 9794else 9795 if test -n "$AR"; then 9796 ac_cv_prog_AR="$AR" # Let the user override the test. 9797else 9798as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9799for as_dir in $PATH 9800do 9801 IFS=$as_save_IFS 9802 test -z "$as_dir" && as_dir=. 9803 for ac_exec_ext in '' $ac_executable_extensions; do 9804 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9805 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 9806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9807 break 2 9808 fi 9809done 9810 done 9811IFS=$as_save_IFS 9812 9813fi 9814fi 9815AR=$ac_cv_prog_AR 9816if test -n "$AR"; then 9817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 9818$as_echo "$AR" >&6; } 9819else 9820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9821$as_echo "no" >&6; } 9822fi 9823 9824 9825 test -n "$AR" && break 9826 done 9827fi 9828if test -z "$AR"; then 9829 ac_ct_AR=$AR 9830 for ac_prog in ar 9831do 9832 # Extract the first word of "$ac_prog", so it can be a program name with args. 9833set dummy $ac_prog; ac_word=$2 9834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9835$as_echo_n "checking for $ac_word... " >&6; } 9836if ${ac_cv_prog_ac_ct_AR+:} false; then : 9837 $as_echo_n "(cached) " >&6 9838else 9839 if test -n "$ac_ct_AR"; then 9840 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 9841else 9842as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9843for as_dir in $PATH 9844do 9845 IFS=$as_save_IFS 9846 test -z "$as_dir" && as_dir=. 9847 for ac_exec_ext in '' $ac_executable_extensions; do 9848 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9849 ac_cv_prog_ac_ct_AR="$ac_prog" 9850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9851 break 2 9852 fi 9853done 9854 done 9855IFS=$as_save_IFS 9856 9857fi 9858fi 9859ac_ct_AR=$ac_cv_prog_ac_ct_AR 9860if test -n "$ac_ct_AR"; then 9861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 9862$as_echo "$ac_ct_AR" >&6; } 9863else 9864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9865$as_echo "no" >&6; } 9866fi 9867 9868 9869 test -n "$ac_ct_AR" && break 9870done 9871 9872 if test "x$ac_ct_AR" = x; then 9873 AR="false" 9874 else 9875 case $cross_compiling:$ac_tool_warned in 9876yes:) 9877{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9878$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9879ac_tool_warned=yes ;; 9880esac 9881 AR=$ac_ct_AR 9882 fi 9883fi 9884 9885: ${AR=ar} 9886: ${AR_FLAGS=cru} 9887 9888 9889 9890 9891 9892 9893 9894 9895 9896 9897 9898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 9899$as_echo_n "checking for archiver @FILE support... " >&6; } 9900if ${lt_cv_ar_at_file+:} false; then : 9901 $as_echo_n "(cached) " >&6 9902else 9903 lt_cv_ar_at_file=no 9904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9905/* end confdefs.h. */ 9906 9907int 9908main () 9909{ 9910 9911 ; 9912 return 0; 9913} 9914_ACEOF 9915if ac_fn_c_try_compile "$LINENO"; then : 9916 echo conftest.$ac_objext > conftest.lst 9917 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 9918 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 9919 (eval $lt_ar_try) 2>&5 9920 ac_status=$? 9921 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9922 test $ac_status = 0; } 9923 if test 0 -eq "$ac_status"; then 9924 # Ensure the archiver fails upon bogus file names. 9925 rm -f conftest.$ac_objext libconftest.a 9926 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 9927 (eval $lt_ar_try) 2>&5 9928 ac_status=$? 9929 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9930 test $ac_status = 0; } 9931 if test 0 -ne "$ac_status"; then 9932 lt_cv_ar_at_file=@ 9933 fi 9934 fi 9935 rm -f conftest.* libconftest.a 9936 9937fi 9938rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9939 9940fi 9941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 9942$as_echo "$lt_cv_ar_at_file" >&6; } 9943 9944if test no = "$lt_cv_ar_at_file"; then 9945 archiver_list_spec= 9946else 9947 archiver_list_spec=$lt_cv_ar_at_file 9948fi 9949 9950 9951 9952 9953 9954 9955 9956if test -n "$ac_tool_prefix"; then 9957 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 9958set dummy ${ac_tool_prefix}strip; ac_word=$2 9959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9960$as_echo_n "checking for $ac_word... " >&6; } 9961if ${ac_cv_prog_STRIP+:} false; then : 9962 $as_echo_n "(cached) " >&6 9963else 9964 if test -n "$STRIP"; then 9965 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 9966else 9967as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9968for as_dir in $PATH 9969do 9970 IFS=$as_save_IFS 9971 test -z "$as_dir" && as_dir=. 9972 for ac_exec_ext in '' $ac_executable_extensions; do 9973 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9974 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 9975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9976 break 2 9977 fi 9978done 9979 done 9980IFS=$as_save_IFS 9981 9982fi 9983fi 9984STRIP=$ac_cv_prog_STRIP 9985if test -n "$STRIP"; then 9986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 9987$as_echo "$STRIP" >&6; } 9988else 9989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9990$as_echo "no" >&6; } 9991fi 9992 9993 9994fi 9995if test -z "$ac_cv_prog_STRIP"; then 9996 ac_ct_STRIP=$STRIP 9997 # Extract the first word of "strip", so it can be a program name with args. 9998set dummy strip; ac_word=$2 9999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10000$as_echo_n "checking for $ac_word... " >&6; } 10001if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 10002 $as_echo_n "(cached) " >&6 10003else 10004 if test -n "$ac_ct_STRIP"; then 10005 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 10006else 10007as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10008for as_dir in $PATH 10009do 10010 IFS=$as_save_IFS 10011 test -z "$as_dir" && as_dir=. 10012 for ac_exec_ext in '' $ac_executable_extensions; do 10013 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10014 ac_cv_prog_ac_ct_STRIP="strip" 10015 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10016 break 2 10017 fi 10018done 10019 done 10020IFS=$as_save_IFS 10021 10022fi 10023fi 10024ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 10025if test -n "$ac_ct_STRIP"; then 10026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 10027$as_echo "$ac_ct_STRIP" >&6; } 10028else 10029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10030$as_echo "no" >&6; } 10031fi 10032 10033 if test "x$ac_ct_STRIP" = x; then 10034 STRIP=":" 10035 else 10036 case $cross_compiling:$ac_tool_warned in 10037yes:) 10038{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10039$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10040ac_tool_warned=yes ;; 10041esac 10042 STRIP=$ac_ct_STRIP 10043 fi 10044else 10045 STRIP="$ac_cv_prog_STRIP" 10046fi 10047 10048test -z "$STRIP" && STRIP=: 10049 10050 10051 10052 10053 10054 10055if test -n "$ac_tool_prefix"; then 10056 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 10057set dummy ${ac_tool_prefix}ranlib; ac_word=$2 10058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10059$as_echo_n "checking for $ac_word... " >&6; } 10060if ${ac_cv_prog_RANLIB+:} false; then : 10061 $as_echo_n "(cached) " >&6 10062else 10063 if test -n "$RANLIB"; then 10064 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 10065else 10066as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10067for as_dir in $PATH 10068do 10069 IFS=$as_save_IFS 10070 test -z "$as_dir" && as_dir=. 10071 for ac_exec_ext in '' $ac_executable_extensions; do 10072 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10073 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 10074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10075 break 2 10076 fi 10077done 10078 done 10079IFS=$as_save_IFS 10080 10081fi 10082fi 10083RANLIB=$ac_cv_prog_RANLIB 10084if test -n "$RANLIB"; then 10085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 10086$as_echo "$RANLIB" >&6; } 10087else 10088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10089$as_echo "no" >&6; } 10090fi 10091 10092 10093fi 10094if test -z "$ac_cv_prog_RANLIB"; then 10095 ac_ct_RANLIB=$RANLIB 10096 # Extract the first word of "ranlib", so it can be a program name with args. 10097set dummy ranlib; ac_word=$2 10098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10099$as_echo_n "checking for $ac_word... " >&6; } 10100if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 10101 $as_echo_n "(cached) " >&6 10102else 10103 if test -n "$ac_ct_RANLIB"; then 10104 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 10105else 10106as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10107for as_dir in $PATH 10108do 10109 IFS=$as_save_IFS 10110 test -z "$as_dir" && as_dir=. 10111 for ac_exec_ext in '' $ac_executable_extensions; do 10112 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10113 ac_cv_prog_ac_ct_RANLIB="ranlib" 10114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10115 break 2 10116 fi 10117done 10118 done 10119IFS=$as_save_IFS 10120 10121fi 10122fi 10123ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 10124if test -n "$ac_ct_RANLIB"; then 10125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 10126$as_echo "$ac_ct_RANLIB" >&6; } 10127else 10128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10129$as_echo "no" >&6; } 10130fi 10131 10132 if test "x$ac_ct_RANLIB" = x; then 10133 RANLIB=":" 10134 else 10135 case $cross_compiling:$ac_tool_warned in 10136yes:) 10137{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10138$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10139ac_tool_warned=yes ;; 10140esac 10141 RANLIB=$ac_ct_RANLIB 10142 fi 10143else 10144 RANLIB="$ac_cv_prog_RANLIB" 10145fi 10146 10147test -z "$RANLIB" && RANLIB=: 10148 10149 10150 10151 10152 10153 10154# Determine commands to create old-style static archives. 10155old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 10156old_postinstall_cmds='chmod 644 $oldlib' 10157old_postuninstall_cmds= 10158 10159if test -n "$RANLIB"; then 10160 case $host_os in 10161 bitrig* | openbsd*) 10162 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 10163 ;; 10164 *) 10165 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 10166 ;; 10167 esac 10168 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 10169fi 10170 10171case $host_os in 10172 darwin*) 10173 lock_old_archive_extraction=yes ;; 10174 *) 10175 lock_old_archive_extraction=no ;; 10176esac 10177 10178 10179 10180 10181 10182 10183 10184 10185 10186 10187 10188 10189 10190 10191 10192 10193 10194 10195 10196 10197 10198 10199 10200 10201 10202 10203 10204 10205 10206 10207 10208 10209 10210 10211 10212 10213 10214 10215 10216# If no C compiler was specified, use CC. 10217LTCC=${LTCC-"$CC"} 10218 10219# If no C compiler flags were specified, use CFLAGS. 10220LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 10221 10222# Allow CC to be a program name with arguments. 10223compiler=$CC 10224 10225 10226# Check for command to grab the raw symbol name followed by C symbol from nm. 10227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 10228$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 10229if ${lt_cv_sys_global_symbol_pipe+:} false; then : 10230 $as_echo_n "(cached) " >&6 10231else 10232 10233# These are sane defaults that work on at least a few old systems. 10234# [They come from Ultrix. What could be older than Ultrix?!! ;)] 10235 10236# Character class describing NM global symbol codes. 10237symcode='[BCDEGRST]' 10238 10239# Regexp to match symbols that can be accessed directly from C. 10240sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 10241 10242# Define system-specific variables. 10243case $host_os in 10244aix*) 10245 symcode='[BCDT]' 10246 ;; 10247cygwin* | mingw* | pw32* | cegcc*) 10248 symcode='[ABCDGISTW]' 10249 ;; 10250hpux*) 10251 if test ia64 = "$host_cpu"; then 10252 symcode='[ABCDEGRST]' 10253 fi 10254 ;; 10255irix* | nonstopux*) 10256 symcode='[BCDEGRST]' 10257 ;; 10258osf*) 10259 symcode='[BCDEGQRST]' 10260 ;; 10261solaris*) 10262 symcode='[BDRT]' 10263 ;; 10264sco3.2v5*) 10265 symcode='[DT]' 10266 ;; 10267sysv4.2uw2*) 10268 symcode='[DT]' 10269 ;; 10270sysv5* | sco5v6* | unixware* | OpenUNIX*) 10271 symcode='[ABDT]' 10272 ;; 10273sysv4) 10274 symcode='[DFNSTU]' 10275 ;; 10276esac 10277 10278# If we're using GNU nm, then use its standard symbol codes. 10279case `$NM -V 2>&1` in 10280*GNU* | *'with BFD'*) 10281 symcode='[ABCDGIRSTW]' ;; 10282esac 10283 10284if test "$lt_cv_nm_interface" = "MS dumpbin"; then 10285 # Gets list of data symbols to import. 10286 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 10287 # Adjust the below global symbol transforms to fixup imported variables. 10288 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 10289 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 10290 lt_c_name_lib_hook="\ 10291 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 10292 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 10293else 10294 # Disable hooks by default. 10295 lt_cv_sys_global_symbol_to_import= 10296 lt_cdecl_hook= 10297 lt_c_name_hook= 10298 lt_c_name_lib_hook= 10299fi 10300 10301# Transform an extracted symbol line into a proper C declaration. 10302# Some systems (esp. on ia64) link data and code symbols differently, 10303# so use this general approach. 10304lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 10305$lt_cdecl_hook\ 10306" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 10307" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 10308 10309# Transform an extracted symbol line into symbol name and symbol address 10310lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 10311$lt_c_name_hook\ 10312" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 10313" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 10314 10315# Transform an extracted symbol line into symbol name with lib prefix and 10316# symbol address. 10317lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 10318$lt_c_name_lib_hook\ 10319" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 10320" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 10321" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 10322 10323# Handle CRLF in mingw tool chain 10324opt_cr= 10325case $build_os in 10326mingw*) 10327 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 10328 ;; 10329esac 10330 10331# Try without a prefix underscore, then with it. 10332for ac_symprfx in "" "_"; do 10333 10334 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 10335 symxfrm="\\1 $ac_symprfx\\2 \\2" 10336 10337 # Write the raw and C identifiers. 10338 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 10339 # Fake it for dumpbin and say T for any non-static function, 10340 # D for any global variable and I for any imported variable. 10341 # Also find C++ and __fastcall symbols from MSVC++, 10342 # which start with @ or ?. 10343 lt_cv_sys_global_symbol_pipe="$AWK '"\ 10344" {last_section=section; section=\$ 3};"\ 10345" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 10346" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 10347" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 10348" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 10349" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 10350" \$ 0!~/External *\|/{next};"\ 10351" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 10352" {if(hide[section]) next};"\ 10353" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 10354" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 10355" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 10356" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 10357" ' prfx=^$ac_symprfx" 10358 else 10359 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 10360 fi 10361 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 10362 10363 # Check to see that the pipe works correctly. 10364 pipe_works=no 10365 10366 rm -f conftest* 10367 cat > conftest.$ac_ext <<_LT_EOF 10368#ifdef __cplusplus 10369extern "C" { 10370#endif 10371char nm_test_var; 10372void nm_test_func(void); 10373void nm_test_func(void){} 10374#ifdef __cplusplus 10375} 10376#endif 10377int main(){nm_test_var='a';nm_test_func();return(0);} 10378_LT_EOF 10379 10380 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10381 (eval $ac_compile) 2>&5 10382 ac_status=$? 10383 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10384 test $ac_status = 0; }; then 10385 # Now try to grab the symbols. 10386 nlist=conftest.nm 10387 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 10388 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 10389 ac_status=$? 10390 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10391 test $ac_status = 0; } && test -s "$nlist"; then 10392 # Try sorting and uniquifying the output. 10393 if sort "$nlist" | uniq > "$nlist"T; then 10394 mv -f "$nlist"T "$nlist" 10395 else 10396 rm -f "$nlist"T 10397 fi 10398 10399 # Make sure that we snagged all the symbols we need. 10400 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 10401 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 10402 cat <<_LT_EOF > conftest.$ac_ext 10403/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 10404#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 10405/* DATA imports from DLLs on WIN32 can't be const, because runtime 10406 relocations are performed -- see ld's documentation on pseudo-relocs. */ 10407# define LT_DLSYM_CONST 10408#elif defined __osf__ 10409/* This system does not cope well with relocations in const data. */ 10410# define LT_DLSYM_CONST 10411#else 10412# define LT_DLSYM_CONST const 10413#endif 10414 10415#ifdef __cplusplus 10416extern "C" { 10417#endif 10418 10419_LT_EOF 10420 # Now generate the symbol file. 10421 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 10422 10423 cat <<_LT_EOF >> conftest.$ac_ext 10424 10425/* The mapping between symbol names and symbols. */ 10426LT_DLSYM_CONST struct { 10427 const char *name; 10428 void *address; 10429} 10430lt__PROGRAM__LTX_preloaded_symbols[] = 10431{ 10432 { "@PROGRAM@", (void *) 0 }, 10433_LT_EOF 10434 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 10435 cat <<\_LT_EOF >> conftest.$ac_ext 10436 {0, (void *) 0} 10437}; 10438 10439/* This works around a problem in FreeBSD linker */ 10440#ifdef FREEBSD_WORKAROUND 10441static const void *lt_preloaded_setup() { 10442 return lt__PROGRAM__LTX_preloaded_symbols; 10443} 10444#endif 10445 10446#ifdef __cplusplus 10447} 10448#endif 10449_LT_EOF 10450 # Now try linking the two files. 10451 mv conftest.$ac_objext conftstm.$ac_objext 10452 lt_globsym_save_LIBS=$LIBS 10453 lt_globsym_save_CFLAGS=$CFLAGS 10454 LIBS=conftstm.$ac_objext 10455 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 10456 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 10457 (eval $ac_link) 2>&5 10458 ac_status=$? 10459 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10460 test $ac_status = 0; } && test -s conftest$ac_exeext; then 10461 pipe_works=yes 10462 fi 10463 LIBS=$lt_globsym_save_LIBS 10464 CFLAGS=$lt_globsym_save_CFLAGS 10465 else 10466 echo "cannot find nm_test_func in $nlist" >&5 10467 fi 10468 else 10469 echo "cannot find nm_test_var in $nlist" >&5 10470 fi 10471 else 10472 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 10473 fi 10474 else 10475 echo "$progname: failed program was:" >&5 10476 cat conftest.$ac_ext >&5 10477 fi 10478 rm -rf conftest* conftst* 10479 10480 # Do not use the global_symbol_pipe unless it works. 10481 if test yes = "$pipe_works"; then 10482 break 10483 else 10484 lt_cv_sys_global_symbol_pipe= 10485 fi 10486done 10487 10488fi 10489 10490if test -z "$lt_cv_sys_global_symbol_pipe"; then 10491 lt_cv_sys_global_symbol_to_cdecl= 10492fi 10493if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 10494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 10495$as_echo "failed" >&6; } 10496else 10497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 10498$as_echo "ok" >&6; } 10499fi 10500 10501# Response file support. 10502if test "$lt_cv_nm_interface" = "MS dumpbin"; then 10503 nm_file_list_spec='@' 10504elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 10505 nm_file_list_spec='@' 10506fi 10507 10508 10509 10510 10511 10512 10513 10514 10515 10516 10517 10518 10519 10520 10521 10522 10523 10524 10525 10526 10527 10528 10529 10530 10531 10532 10533 10534 10535 10536 10537 10538 10539 10540 10541 10542 10543 10544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 10545$as_echo_n "checking for sysroot... " >&6; } 10546 10547# Check whether --with-sysroot was given. 10548if test "${with_sysroot+set}" = set; then : 10549 withval=$with_sysroot; 10550else 10551 with_sysroot=no 10552fi 10553 10554 10555lt_sysroot= 10556case $with_sysroot in #( 10557 yes) 10558 if test yes = "$GCC"; then 10559 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 10560 fi 10561 ;; #( 10562 /*) 10563 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 10564 ;; #( 10565 no|'') 10566 ;; #( 10567 *) 10568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 10569$as_echo "$with_sysroot" >&6; } 10570 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 10571 ;; 10572esac 10573 10574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 10575$as_echo "${lt_sysroot:-no}" >&6; } 10576 10577 10578 10579 10580 10581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 10582$as_echo_n "checking for a working dd... " >&6; } 10583if ${ac_cv_path_lt_DD+:} false; then : 10584 $as_echo_n "(cached) " >&6 10585else 10586 printf 0123456789abcdef0123456789abcdef >conftest.i 10587cat conftest.i conftest.i >conftest2.i 10588: ${lt_DD:=$DD} 10589if test -z "$lt_DD"; then 10590 ac_path_lt_DD_found=false 10591 # Loop through the user's path and test for each of PROGNAME-LIST 10592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10593for as_dir in $PATH 10594do 10595 IFS=$as_save_IFS 10596 test -z "$as_dir" && as_dir=. 10597 for ac_prog in dd; do 10598 for ac_exec_ext in '' $ac_executable_extensions; do 10599 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 10600 as_fn_executable_p "$ac_path_lt_DD" || continue 10601if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 10602 cmp -s conftest.i conftest.out \ 10603 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 10604fi 10605 $ac_path_lt_DD_found && break 3 10606 done 10607 done 10608 done 10609IFS=$as_save_IFS 10610 if test -z "$ac_cv_path_lt_DD"; then 10611 : 10612 fi 10613else 10614 ac_cv_path_lt_DD=$lt_DD 10615fi 10616 10617rm -f conftest.i conftest2.i conftest.out 10618fi 10619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 10620$as_echo "$ac_cv_path_lt_DD" >&6; } 10621 10622 10623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 10624$as_echo_n "checking how to truncate binary pipes... " >&6; } 10625if ${lt_cv_truncate_bin+:} false; then : 10626 $as_echo_n "(cached) " >&6 10627else 10628 printf 0123456789abcdef0123456789abcdef >conftest.i 10629cat conftest.i conftest.i >conftest2.i 10630lt_cv_truncate_bin= 10631if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 10632 cmp -s conftest.i conftest.out \ 10633 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 10634fi 10635rm -f conftest.i conftest2.i conftest.out 10636test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 10637fi 10638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 10639$as_echo "$lt_cv_truncate_bin" >&6; } 10640 10641 10642 10643 10644 10645 10646 10647# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 10648func_cc_basename () 10649{ 10650 for cc_temp in $*""; do 10651 case $cc_temp in 10652 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 10653 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 10654 \-*) ;; 10655 *) break;; 10656 esac 10657 done 10658 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 10659} 10660 10661# Check whether --enable-libtool-lock was given. 10662if test "${enable_libtool_lock+set}" = set; then : 10663 enableval=$enable_libtool_lock; 10664fi 10665 10666test no = "$enable_libtool_lock" || enable_libtool_lock=yes 10667 10668# Some flags need to be propagated to the compiler or linker for good 10669# libtool support. 10670case $host in 10671ia64-*-hpux*) 10672 # Find out what ABI is being produced by ac_compile, and set mode 10673 # options accordingly. 10674 echo 'int i;' > conftest.$ac_ext 10675 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10676 (eval $ac_compile) 2>&5 10677 ac_status=$? 10678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10679 test $ac_status = 0; }; then 10680 case `/usr/bin/file conftest.$ac_objext` in 10681 *ELF-32*) 10682 HPUX_IA64_MODE=32 10683 ;; 10684 *ELF-64*) 10685 HPUX_IA64_MODE=64 10686 ;; 10687 esac 10688 fi 10689 rm -rf conftest* 10690 ;; 10691*-*-irix6*) 10692 # Find out what ABI is being produced by ac_compile, and set linker 10693 # options accordingly. 10694 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 10695 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10696 (eval $ac_compile) 2>&5 10697 ac_status=$? 10698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10699 test $ac_status = 0; }; then 10700 if test yes = "$lt_cv_prog_gnu_ld"; then 10701 case `/usr/bin/file conftest.$ac_objext` in 10702 *32-bit*) 10703 LD="${LD-ld} -melf32bsmip" 10704 ;; 10705 *N32*) 10706 LD="${LD-ld} -melf32bmipn32" 10707 ;; 10708 *64-bit*) 10709 LD="${LD-ld} -melf64bmip" 10710 ;; 10711 esac 10712 else 10713 case `/usr/bin/file conftest.$ac_objext` in 10714 *32-bit*) 10715 LD="${LD-ld} -32" 10716 ;; 10717 *N32*) 10718 LD="${LD-ld} -n32" 10719 ;; 10720 *64-bit*) 10721 LD="${LD-ld} -64" 10722 ;; 10723 esac 10724 fi 10725 fi 10726 rm -rf conftest* 10727 ;; 10728 10729mips64*-*linux*) 10730 # Find out what ABI is being produced by ac_compile, and set linker 10731 # options accordingly. 10732 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 10733 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10734 (eval $ac_compile) 2>&5 10735 ac_status=$? 10736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10737 test $ac_status = 0; }; then 10738 emul=elf 10739 case `/usr/bin/file conftest.$ac_objext` in 10740 *32-bit*) 10741 emul="${emul}32" 10742 ;; 10743 *64-bit*) 10744 emul="${emul}64" 10745 ;; 10746 esac 10747 case `/usr/bin/file conftest.$ac_objext` in 10748 *MSB*) 10749 emul="${emul}btsmip" 10750 ;; 10751 *LSB*) 10752 emul="${emul}ltsmip" 10753 ;; 10754 esac 10755 case `/usr/bin/file conftest.$ac_objext` in 10756 *N32*) 10757 emul="${emul}n32" 10758 ;; 10759 esac 10760 LD="${LD-ld} -m $emul" 10761 fi 10762 rm -rf conftest* 10763 ;; 10764 10765x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 10766s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 10767 # Find out what ABI is being produced by ac_compile, and set linker 10768 # options accordingly. Note that the listed cases only cover the 10769 # situations where additional linker options are needed (such as when 10770 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 10771 # vice versa); the common cases where no linker options are needed do 10772 # not appear in the list. 10773 echo 'int i;' > conftest.$ac_ext 10774 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10775 (eval $ac_compile) 2>&5 10776 ac_status=$? 10777 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10778 test $ac_status = 0; }; then 10779 case `/usr/bin/file conftest.o` in 10780 *32-bit*) 10781 case $host in 10782 x86_64-*kfreebsd*-gnu) 10783 LD="${LD-ld} -m elf_i386_fbsd" 10784 ;; 10785 x86_64-*linux*) 10786 case `/usr/bin/file conftest.o` in 10787 *x86-64*) 10788 LD="${LD-ld} -m elf32_x86_64" 10789 ;; 10790 *) 10791 LD="${LD-ld} -m elf_i386" 10792 ;; 10793 esac 10794 ;; 10795 powerpc64le-*linux*) 10796 LD="${LD-ld} -m elf32lppclinux" 10797 ;; 10798 powerpc64-*linux*) 10799 LD="${LD-ld} -m elf32ppclinux" 10800 ;; 10801 s390x-*linux*) 10802 LD="${LD-ld} -m elf_s390" 10803 ;; 10804 sparc64-*linux*) 10805 LD="${LD-ld} -m elf32_sparc" 10806 ;; 10807 esac 10808 ;; 10809 *64-bit*) 10810 case $host in 10811 x86_64-*kfreebsd*-gnu) 10812 LD="${LD-ld} -m elf_x86_64_fbsd" 10813 ;; 10814 x86_64-*linux*) 10815 LD="${LD-ld} -m elf_x86_64" 10816 ;; 10817 powerpcle-*linux*) 10818 LD="${LD-ld} -m elf64lppc" 10819 ;; 10820 powerpc-*linux*) 10821 LD="${LD-ld} -m elf64ppc" 10822 ;; 10823 s390*-*linux*|s390*-*tpf*) 10824 LD="${LD-ld} -m elf64_s390" 10825 ;; 10826 sparc*-*linux*) 10827 LD="${LD-ld} -m elf64_sparc" 10828 ;; 10829 esac 10830 ;; 10831 esac 10832 fi 10833 rm -rf conftest* 10834 ;; 10835 10836*-*-sco3.2v5*) 10837 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 10838 SAVE_CFLAGS=$CFLAGS 10839 CFLAGS="$CFLAGS -belf" 10840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 10841$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 10842if ${lt_cv_cc_needs_belf+:} false; then : 10843 $as_echo_n "(cached) " >&6 10844else 10845 ac_ext=c 10846ac_cpp='$CPP $CPPFLAGS' 10847ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10848ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10849ac_compiler_gnu=$ac_cv_c_compiler_gnu 10850 10851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10852/* end confdefs.h. */ 10853 10854int 10855main () 10856{ 10857 10858 ; 10859 return 0; 10860} 10861_ACEOF 10862if ac_fn_c_try_link "$LINENO"; then : 10863 lt_cv_cc_needs_belf=yes 10864else 10865 lt_cv_cc_needs_belf=no 10866fi 10867rm -f core conftest.err conftest.$ac_objext \ 10868 conftest$ac_exeext conftest.$ac_ext 10869 ac_ext=c 10870ac_cpp='$CPP $CPPFLAGS' 10871ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10872ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10873ac_compiler_gnu=$ac_cv_c_compiler_gnu 10874 10875fi 10876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 10877$as_echo "$lt_cv_cc_needs_belf" >&6; } 10878 if test yes != "$lt_cv_cc_needs_belf"; then 10879 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 10880 CFLAGS=$SAVE_CFLAGS 10881 fi 10882 ;; 10883*-*solaris*) 10884 # Find out what ABI is being produced by ac_compile, and set linker 10885 # options accordingly. 10886 echo 'int i;' > conftest.$ac_ext 10887 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10888 (eval $ac_compile) 2>&5 10889 ac_status=$? 10890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10891 test $ac_status = 0; }; then 10892 case `/usr/bin/file conftest.o` in 10893 *64-bit*) 10894 case $lt_cv_prog_gnu_ld in 10895 yes*) 10896 case $host in 10897 i?86-*-solaris*|x86_64-*-solaris*) 10898 LD="${LD-ld} -m elf_x86_64" 10899 ;; 10900 sparc*-*-solaris*) 10901 LD="${LD-ld} -m elf64_sparc" 10902 ;; 10903 esac 10904 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 10905 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 10906 LD=${LD-ld}_sol2 10907 fi 10908 ;; 10909 *) 10910 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 10911 LD="${LD-ld} -64" 10912 fi 10913 ;; 10914 esac 10915 ;; 10916 esac 10917 fi 10918 rm -rf conftest* 10919 ;; 10920esac 10921 10922need_locks=$enable_libtool_lock 10923 10924if test -n "$ac_tool_prefix"; then 10925 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 10926set dummy ${ac_tool_prefix}mt; ac_word=$2 10927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10928$as_echo_n "checking for $ac_word... " >&6; } 10929if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 10930 $as_echo_n "(cached) " >&6 10931else 10932 if test -n "$MANIFEST_TOOL"; then 10933 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 10934else 10935as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10936for as_dir in $PATH 10937do 10938 IFS=$as_save_IFS 10939 test -z "$as_dir" && as_dir=. 10940 for ac_exec_ext in '' $ac_executable_extensions; do 10941 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10942 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 10943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10944 break 2 10945 fi 10946done 10947 done 10948IFS=$as_save_IFS 10949 10950fi 10951fi 10952MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 10953if test -n "$MANIFEST_TOOL"; then 10954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 10955$as_echo "$MANIFEST_TOOL" >&6; } 10956else 10957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10958$as_echo "no" >&6; } 10959fi 10960 10961 10962fi 10963if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 10964 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 10965 # Extract the first word of "mt", so it can be a program name with args. 10966set dummy mt; ac_word=$2 10967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10968$as_echo_n "checking for $ac_word... " >&6; } 10969if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 10970 $as_echo_n "(cached) " >&6 10971else 10972 if test -n "$ac_ct_MANIFEST_TOOL"; then 10973 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 10974else 10975as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10976for as_dir in $PATH 10977do 10978 IFS=$as_save_IFS 10979 test -z "$as_dir" && as_dir=. 10980 for ac_exec_ext in '' $ac_executable_extensions; do 10981 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10982 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 10983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10984 break 2 10985 fi 10986done 10987 done 10988IFS=$as_save_IFS 10989 10990fi 10991fi 10992ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 10993if test -n "$ac_ct_MANIFEST_TOOL"; then 10994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 10995$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 10996else 10997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10998$as_echo "no" >&6; } 10999fi 11000 11001 if test "x$ac_ct_MANIFEST_TOOL" = x; then 11002 MANIFEST_TOOL=":" 11003 else 11004 case $cross_compiling:$ac_tool_warned in 11005yes:) 11006{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11007$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11008ac_tool_warned=yes ;; 11009esac 11010 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 11011 fi 11012else 11013 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 11014fi 11015 11016test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 11017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 11018$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 11019if ${lt_cv_path_mainfest_tool+:} false; then : 11020 $as_echo_n "(cached) " >&6 11021else 11022 lt_cv_path_mainfest_tool=no 11023 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 11024 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 11025 cat conftest.err >&5 11026 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 11027 lt_cv_path_mainfest_tool=yes 11028 fi 11029 rm -f conftest* 11030fi 11031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 11032$as_echo "$lt_cv_path_mainfest_tool" >&6; } 11033if test yes != "$lt_cv_path_mainfest_tool"; then 11034 MANIFEST_TOOL=: 11035fi 11036 11037 11038 11039 11040 11041 11042 case $host_os in 11043 rhapsody* | darwin*) 11044 if test -n "$ac_tool_prefix"; then 11045 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 11046set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 11047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11048$as_echo_n "checking for $ac_word... " >&6; } 11049if ${ac_cv_prog_DSYMUTIL+:} false; then : 11050 $as_echo_n "(cached) " >&6 11051else 11052 if test -n "$DSYMUTIL"; then 11053 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 11054else 11055as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11056for as_dir in $PATH 11057do 11058 IFS=$as_save_IFS 11059 test -z "$as_dir" && as_dir=. 11060 for ac_exec_ext in '' $ac_executable_extensions; do 11061 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11062 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 11063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11064 break 2 11065 fi 11066done 11067 done 11068IFS=$as_save_IFS 11069 11070fi 11071fi 11072DSYMUTIL=$ac_cv_prog_DSYMUTIL 11073if test -n "$DSYMUTIL"; then 11074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 11075$as_echo "$DSYMUTIL" >&6; } 11076else 11077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11078$as_echo "no" >&6; } 11079fi 11080 11081 11082fi 11083if test -z "$ac_cv_prog_DSYMUTIL"; then 11084 ac_ct_DSYMUTIL=$DSYMUTIL 11085 # Extract the first word of "dsymutil", so it can be a program name with args. 11086set dummy dsymutil; ac_word=$2 11087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11088$as_echo_n "checking for $ac_word... " >&6; } 11089if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 11090 $as_echo_n "(cached) " >&6 11091else 11092 if test -n "$ac_ct_DSYMUTIL"; then 11093 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 11094else 11095as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11096for as_dir in $PATH 11097do 11098 IFS=$as_save_IFS 11099 test -z "$as_dir" && as_dir=. 11100 for ac_exec_ext in '' $ac_executable_extensions; do 11101 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11102 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 11103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11104 break 2 11105 fi 11106done 11107 done 11108IFS=$as_save_IFS 11109 11110fi 11111fi 11112ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 11113if test -n "$ac_ct_DSYMUTIL"; then 11114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 11115$as_echo "$ac_ct_DSYMUTIL" >&6; } 11116else 11117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11118$as_echo "no" >&6; } 11119fi 11120 11121 if test "x$ac_ct_DSYMUTIL" = x; then 11122 DSYMUTIL=":" 11123 else 11124 case $cross_compiling:$ac_tool_warned in 11125yes:) 11126{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11127$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11128ac_tool_warned=yes ;; 11129esac 11130 DSYMUTIL=$ac_ct_DSYMUTIL 11131 fi 11132else 11133 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 11134fi 11135 11136 if test -n "$ac_tool_prefix"; then 11137 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 11138set dummy ${ac_tool_prefix}nmedit; ac_word=$2 11139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11140$as_echo_n "checking for $ac_word... " >&6; } 11141if ${ac_cv_prog_NMEDIT+:} false; then : 11142 $as_echo_n "(cached) " >&6 11143else 11144 if test -n "$NMEDIT"; then 11145 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 11146else 11147as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11148for as_dir in $PATH 11149do 11150 IFS=$as_save_IFS 11151 test -z "$as_dir" && as_dir=. 11152 for ac_exec_ext in '' $ac_executable_extensions; do 11153 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11154 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 11155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11156 break 2 11157 fi 11158done 11159 done 11160IFS=$as_save_IFS 11161 11162fi 11163fi 11164NMEDIT=$ac_cv_prog_NMEDIT 11165if test -n "$NMEDIT"; then 11166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 11167$as_echo "$NMEDIT" >&6; } 11168else 11169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11170$as_echo "no" >&6; } 11171fi 11172 11173 11174fi 11175if test -z "$ac_cv_prog_NMEDIT"; then 11176 ac_ct_NMEDIT=$NMEDIT 11177 # Extract the first word of "nmedit", so it can be a program name with args. 11178set dummy nmedit; ac_word=$2 11179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11180$as_echo_n "checking for $ac_word... " >&6; } 11181if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 11182 $as_echo_n "(cached) " >&6 11183else 11184 if test -n "$ac_ct_NMEDIT"; then 11185 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 11186else 11187as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11188for as_dir in $PATH 11189do 11190 IFS=$as_save_IFS 11191 test -z "$as_dir" && as_dir=. 11192 for ac_exec_ext in '' $ac_executable_extensions; do 11193 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11194 ac_cv_prog_ac_ct_NMEDIT="nmedit" 11195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11196 break 2 11197 fi 11198done 11199 done 11200IFS=$as_save_IFS 11201 11202fi 11203fi 11204ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 11205if test -n "$ac_ct_NMEDIT"; then 11206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 11207$as_echo "$ac_ct_NMEDIT" >&6; } 11208else 11209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11210$as_echo "no" >&6; } 11211fi 11212 11213 if test "x$ac_ct_NMEDIT" = x; then 11214 NMEDIT=":" 11215 else 11216 case $cross_compiling:$ac_tool_warned in 11217yes:) 11218{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11219$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11220ac_tool_warned=yes ;; 11221esac 11222 NMEDIT=$ac_ct_NMEDIT 11223 fi 11224else 11225 NMEDIT="$ac_cv_prog_NMEDIT" 11226fi 11227 11228 if test -n "$ac_tool_prefix"; then 11229 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 11230set dummy ${ac_tool_prefix}lipo; ac_word=$2 11231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11232$as_echo_n "checking for $ac_word... " >&6; } 11233if ${ac_cv_prog_LIPO+:} false; then : 11234 $as_echo_n "(cached) " >&6 11235else 11236 if test -n "$LIPO"; then 11237 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 11238else 11239as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11240for as_dir in $PATH 11241do 11242 IFS=$as_save_IFS 11243 test -z "$as_dir" && as_dir=. 11244 for ac_exec_ext in '' $ac_executable_extensions; do 11245 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11246 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 11247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11248 break 2 11249 fi 11250done 11251 done 11252IFS=$as_save_IFS 11253 11254fi 11255fi 11256LIPO=$ac_cv_prog_LIPO 11257if test -n "$LIPO"; then 11258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 11259$as_echo "$LIPO" >&6; } 11260else 11261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11262$as_echo "no" >&6; } 11263fi 11264 11265 11266fi 11267if test -z "$ac_cv_prog_LIPO"; then 11268 ac_ct_LIPO=$LIPO 11269 # Extract the first word of "lipo", so it can be a program name with args. 11270set dummy lipo; ac_word=$2 11271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11272$as_echo_n "checking for $ac_word... " >&6; } 11273if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 11274 $as_echo_n "(cached) " >&6 11275else 11276 if test -n "$ac_ct_LIPO"; then 11277 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 11278else 11279as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11280for as_dir in $PATH 11281do 11282 IFS=$as_save_IFS 11283 test -z "$as_dir" && as_dir=. 11284 for ac_exec_ext in '' $ac_executable_extensions; do 11285 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11286 ac_cv_prog_ac_ct_LIPO="lipo" 11287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11288 break 2 11289 fi 11290done 11291 done 11292IFS=$as_save_IFS 11293 11294fi 11295fi 11296ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 11297if test -n "$ac_ct_LIPO"; then 11298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 11299$as_echo "$ac_ct_LIPO" >&6; } 11300else 11301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11302$as_echo "no" >&6; } 11303fi 11304 11305 if test "x$ac_ct_LIPO" = x; then 11306 LIPO=":" 11307 else 11308 case $cross_compiling:$ac_tool_warned in 11309yes:) 11310{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11311$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11312ac_tool_warned=yes ;; 11313esac 11314 LIPO=$ac_ct_LIPO 11315 fi 11316else 11317 LIPO="$ac_cv_prog_LIPO" 11318fi 11319 11320 if test -n "$ac_tool_prefix"; then 11321 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 11322set dummy ${ac_tool_prefix}otool; ac_word=$2 11323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11324$as_echo_n "checking for $ac_word... " >&6; } 11325if ${ac_cv_prog_OTOOL+:} false; then : 11326 $as_echo_n "(cached) " >&6 11327else 11328 if test -n "$OTOOL"; then 11329 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 11330else 11331as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11332for as_dir in $PATH 11333do 11334 IFS=$as_save_IFS 11335 test -z "$as_dir" && as_dir=. 11336 for ac_exec_ext in '' $ac_executable_extensions; do 11337 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11338 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 11339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11340 break 2 11341 fi 11342done 11343 done 11344IFS=$as_save_IFS 11345 11346fi 11347fi 11348OTOOL=$ac_cv_prog_OTOOL 11349if test -n "$OTOOL"; then 11350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 11351$as_echo "$OTOOL" >&6; } 11352else 11353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11354$as_echo "no" >&6; } 11355fi 11356 11357 11358fi 11359if test -z "$ac_cv_prog_OTOOL"; then 11360 ac_ct_OTOOL=$OTOOL 11361 # Extract the first word of "otool", so it can be a program name with args. 11362set dummy otool; ac_word=$2 11363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11364$as_echo_n "checking for $ac_word... " >&6; } 11365if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 11366 $as_echo_n "(cached) " >&6 11367else 11368 if test -n "$ac_ct_OTOOL"; then 11369 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 11370else 11371as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11372for as_dir in $PATH 11373do 11374 IFS=$as_save_IFS 11375 test -z "$as_dir" && as_dir=. 11376 for ac_exec_ext in '' $ac_executable_extensions; do 11377 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11378 ac_cv_prog_ac_ct_OTOOL="otool" 11379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11380 break 2 11381 fi 11382done 11383 done 11384IFS=$as_save_IFS 11385 11386fi 11387fi 11388ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 11389if test -n "$ac_ct_OTOOL"; then 11390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 11391$as_echo "$ac_ct_OTOOL" >&6; } 11392else 11393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11394$as_echo "no" >&6; } 11395fi 11396 11397 if test "x$ac_ct_OTOOL" = x; then 11398 OTOOL=":" 11399 else 11400 case $cross_compiling:$ac_tool_warned in 11401yes:) 11402{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11403$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11404ac_tool_warned=yes ;; 11405esac 11406 OTOOL=$ac_ct_OTOOL 11407 fi 11408else 11409 OTOOL="$ac_cv_prog_OTOOL" 11410fi 11411 11412 if test -n "$ac_tool_prefix"; then 11413 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 11414set dummy ${ac_tool_prefix}otool64; ac_word=$2 11415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11416$as_echo_n "checking for $ac_word... " >&6; } 11417if ${ac_cv_prog_OTOOL64+:} false; then : 11418 $as_echo_n "(cached) " >&6 11419else 11420 if test -n "$OTOOL64"; then 11421 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 11422else 11423as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11424for as_dir in $PATH 11425do 11426 IFS=$as_save_IFS 11427 test -z "$as_dir" && as_dir=. 11428 for ac_exec_ext in '' $ac_executable_extensions; do 11429 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11430 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 11431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11432 break 2 11433 fi 11434done 11435 done 11436IFS=$as_save_IFS 11437 11438fi 11439fi 11440OTOOL64=$ac_cv_prog_OTOOL64 11441if test -n "$OTOOL64"; then 11442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 11443$as_echo "$OTOOL64" >&6; } 11444else 11445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11446$as_echo "no" >&6; } 11447fi 11448 11449 11450fi 11451if test -z "$ac_cv_prog_OTOOL64"; then 11452 ac_ct_OTOOL64=$OTOOL64 11453 # Extract the first word of "otool64", so it can be a program name with args. 11454set dummy otool64; ac_word=$2 11455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11456$as_echo_n "checking for $ac_word... " >&6; } 11457if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 11458 $as_echo_n "(cached) " >&6 11459else 11460 if test -n "$ac_ct_OTOOL64"; then 11461 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 11462else 11463as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11464for as_dir in $PATH 11465do 11466 IFS=$as_save_IFS 11467 test -z "$as_dir" && as_dir=. 11468 for ac_exec_ext in '' $ac_executable_extensions; do 11469 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11470 ac_cv_prog_ac_ct_OTOOL64="otool64" 11471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11472 break 2 11473 fi 11474done 11475 done 11476IFS=$as_save_IFS 11477 11478fi 11479fi 11480ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 11481if test -n "$ac_ct_OTOOL64"; then 11482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 11483$as_echo "$ac_ct_OTOOL64" >&6; } 11484else 11485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11486$as_echo "no" >&6; } 11487fi 11488 11489 if test "x$ac_ct_OTOOL64" = x; then 11490 OTOOL64=":" 11491 else 11492 case $cross_compiling:$ac_tool_warned in 11493yes:) 11494{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11495$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11496ac_tool_warned=yes ;; 11497esac 11498 OTOOL64=$ac_ct_OTOOL64 11499 fi 11500else 11501 OTOOL64="$ac_cv_prog_OTOOL64" 11502fi 11503 11504 11505 11506 11507 11508 11509 11510 11511 11512 11513 11514 11515 11516 11517 11518 11519 11520 11521 11522 11523 11524 11525 11526 11527 11528 11529 11530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 11531$as_echo_n "checking for -single_module linker flag... " >&6; } 11532if ${lt_cv_apple_cc_single_mod+:} false; then : 11533 $as_echo_n "(cached) " >&6 11534else 11535 lt_cv_apple_cc_single_mod=no 11536 if test -z "$LT_MULTI_MODULE"; then 11537 # By default we will add the -single_module flag. You can override 11538 # by either setting the environment variable LT_MULTI_MODULE 11539 # non-empty at configure time, or by adding -multi_module to the 11540 # link flags. 11541 rm -rf libconftest.dylib* 11542 echo "int foo(void){return 1;}" > conftest.c 11543 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 11544-dynamiclib -Wl,-single_module conftest.c" >&5 11545 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 11546 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 11547 _lt_result=$? 11548 # If there is a non-empty error log, and "single_module" 11549 # appears in it, assume the flag caused a linker warning 11550 if test -s conftest.err && $GREP single_module conftest.err; then 11551 cat conftest.err >&5 11552 # Otherwise, if the output was created with a 0 exit code from 11553 # the compiler, it worked. 11554 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 11555 lt_cv_apple_cc_single_mod=yes 11556 else 11557 cat conftest.err >&5 11558 fi 11559 rm -rf libconftest.dylib* 11560 rm -f conftest.* 11561 fi 11562fi 11563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 11564$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 11565 11566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 11567$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 11568if ${lt_cv_ld_exported_symbols_list+:} false; then : 11569 $as_echo_n "(cached) " >&6 11570else 11571 lt_cv_ld_exported_symbols_list=no 11572 save_LDFLAGS=$LDFLAGS 11573 echo "_main" > conftest.sym 11574 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 11575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11576/* end confdefs.h. */ 11577 11578int 11579main () 11580{ 11581 11582 ; 11583 return 0; 11584} 11585_ACEOF 11586if ac_fn_c_try_link "$LINENO"; then : 11587 lt_cv_ld_exported_symbols_list=yes 11588else 11589 lt_cv_ld_exported_symbols_list=no 11590fi 11591rm -f core conftest.err conftest.$ac_objext \ 11592 conftest$ac_exeext conftest.$ac_ext 11593 LDFLAGS=$save_LDFLAGS 11594 11595fi 11596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 11597$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 11598 11599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 11600$as_echo_n "checking for -force_load linker flag... " >&6; } 11601if ${lt_cv_ld_force_load+:} false; then : 11602 $as_echo_n "(cached) " >&6 11603else 11604 lt_cv_ld_force_load=no 11605 cat > conftest.c << _LT_EOF 11606int forced_loaded() { return 2;} 11607_LT_EOF 11608 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 11609 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 11610 echo "$AR cru libconftest.a conftest.o" >&5 11611 $AR cru libconftest.a conftest.o 2>&5 11612 echo "$RANLIB libconftest.a" >&5 11613 $RANLIB libconftest.a 2>&5 11614 cat > conftest.c << _LT_EOF 11615int main() { return 0;} 11616_LT_EOF 11617 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 11618 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 11619 _lt_result=$? 11620 if test -s conftest.err && $GREP force_load conftest.err; then 11621 cat conftest.err >&5 11622 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 11623 lt_cv_ld_force_load=yes 11624 else 11625 cat conftest.err >&5 11626 fi 11627 rm -f conftest.err libconftest.a conftest conftest.c 11628 rm -rf conftest.dSYM 11629 11630fi 11631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 11632$as_echo "$lt_cv_ld_force_load" >&6; } 11633 case $host_os in 11634 rhapsody* | darwin1.[012]) 11635 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 11636 darwin1.*) 11637 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 11638 darwin*) # darwin 5.x on 11639 # if running on 10.5 or later, the deployment target defaults 11640 # to the OS version, if on x86, and 10.4, the deployment 11641 # target defaults to 10.4. Don't you love it? 11642 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 11643 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 11644 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 11645 10.[012][,.]*) 11646 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 11647 10.*) 11648 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 11649 esac 11650 ;; 11651 esac 11652 if test yes = "$lt_cv_apple_cc_single_mod"; then 11653 _lt_dar_single_mod='$single_module' 11654 fi 11655 if test yes = "$lt_cv_ld_exported_symbols_list"; then 11656 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 11657 else 11658 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 11659 fi 11660 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 11661 _lt_dsymutil='~$DSYMUTIL $lib || :' 11662 else 11663 _lt_dsymutil= 11664 fi 11665 ;; 11666 esac 11667 11668# func_munge_path_list VARIABLE PATH 11669# ----------------------------------- 11670# VARIABLE is name of variable containing _space_ separated list of 11671# directories to be munged by the contents of PATH, which is string 11672# having a format: 11673# "DIR[:DIR]:" 11674# string "DIR[ DIR]" will be prepended to VARIABLE 11675# ":DIR[:DIR]" 11676# string "DIR[ DIR]" will be appended to VARIABLE 11677# "DIRP[:DIRP]::[DIRA:]DIRA" 11678# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 11679# "DIRA[ DIRA]" will be appended to VARIABLE 11680# "DIR[:DIR]" 11681# VARIABLE will be replaced by "DIR[ DIR]" 11682func_munge_path_list () 11683{ 11684 case x$2 in 11685 x) 11686 ;; 11687 *:) 11688 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 11689 ;; 11690 x:*) 11691 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 11692 ;; 11693 *::*) 11694 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 11695 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 11696 ;; 11697 *) 11698 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 11699 ;; 11700 esac 11701} 11702 11703for ac_header in dlfcn.h 11704do : 11705 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 11706" 11707if test "x$ac_cv_header_dlfcn_h" = xyes; then : 11708 cat >>confdefs.h <<_ACEOF 11709#define HAVE_DLFCN_H 1 11710_ACEOF 11711 11712fi 11713 11714done 11715 11716 11717 11718 11719func_stripname_cnf () 11720{ 11721 case $2 in 11722 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;; 11723 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;; 11724 esac 11725} # func_stripname_cnf 11726 11727 11728 11729 11730 11731# Set options 11732 11733 11734 11735 enable_dlopen=no 11736 11737 11738 enable_win32_dll=no 11739 11740 11741 11742 # Check whether --enable-static was given. 11743if test "${enable_static+set}" = set; then : 11744 enableval=$enable_static; p=${PACKAGE-default} 11745 case $enableval in 11746 yes) enable_static=yes ;; 11747 no) enable_static=no ;; 11748 *) 11749 enable_static=no 11750 # Look at the argument we got. We use all the common list separators. 11751 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 11752 for pkg in $enableval; do 11753 IFS=$lt_save_ifs 11754 if test "X$pkg" = "X$p"; then 11755 enable_static=yes 11756 fi 11757 done 11758 IFS=$lt_save_ifs 11759 ;; 11760 esac 11761else 11762 enable_static=yes 11763fi 11764 11765 11766 11767 11768 11769 11770 11771 11772 11773 11774# Check whether --with-pic was given. 11775if test "${with_pic+set}" = set; then : 11776 withval=$with_pic; lt_p=${PACKAGE-default} 11777 case $withval in 11778 yes|no) pic_mode=$withval ;; 11779 *) 11780 pic_mode=default 11781 # Look at the argument we got. We use all the common list separators. 11782 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 11783 for lt_pkg in $withval; do 11784 IFS=$lt_save_ifs 11785 if test "X$lt_pkg" = "X$lt_p"; then 11786 pic_mode=yes 11787 fi 11788 done 11789 IFS=$lt_save_ifs 11790 ;; 11791 esac 11792else 11793 pic_mode=default 11794fi 11795 11796 11797 11798 11799 11800 11801 11802 11803 # Check whether --enable-fast-install was given. 11804if test "${enable_fast_install+set}" = set; then : 11805 enableval=$enable_fast_install; p=${PACKAGE-default} 11806 case $enableval in 11807 yes) enable_fast_install=yes ;; 11808 no) enable_fast_install=no ;; 11809 *) 11810 enable_fast_install=no 11811 # Look at the argument we got. We use all the common list separators. 11812 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 11813 for pkg in $enableval; do 11814 IFS=$lt_save_ifs 11815 if test "X$pkg" = "X$p"; then 11816 enable_fast_install=yes 11817 fi 11818 done 11819 IFS=$lt_save_ifs 11820 ;; 11821 esac 11822else 11823 enable_fast_install=yes 11824fi 11825 11826 11827 11828 11829 11830 11831 11832 11833 shared_archive_member_spec= 11834case $host,$enable_shared in 11835power*-*-aix[5-9]*,yes) 11836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 11837$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 11838 11839# Check whether --with-aix-soname was given. 11840if test "${with_aix_soname+set}" = set; then : 11841 withval=$with_aix_soname; case $withval in 11842 aix|svr4|both) 11843 ;; 11844 *) 11845 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 11846 ;; 11847 esac 11848 lt_cv_with_aix_soname=$with_aix_soname 11849else 11850 if ${lt_cv_with_aix_soname+:} false; then : 11851 $as_echo_n "(cached) " >&6 11852else 11853 lt_cv_with_aix_soname=aix 11854fi 11855 11856 with_aix_soname=$lt_cv_with_aix_soname 11857fi 11858 11859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 11860$as_echo "$with_aix_soname" >&6; } 11861 if test aix != "$with_aix_soname"; then 11862 # For the AIX way of multilib, we name the shared archive member 11863 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 11864 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 11865 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 11866 # the AIX toolchain works better with OBJECT_MODE set (default 32). 11867 if test 64 = "${OBJECT_MODE-32}"; then 11868 shared_archive_member_spec=shr_64 11869 else 11870 shared_archive_member_spec=shr 11871 fi 11872 fi 11873 ;; 11874*) 11875 with_aix_soname=aix 11876 ;; 11877esac 11878 11879 11880 11881 11882 11883 11884 11885 11886 11887 11888# This can be used to rebuild libtool when needed 11889LIBTOOL_DEPS=$ltmain 11890 11891# Always use our own libtool. 11892LIBTOOL='$(SHELL) $(top_builddir)/libtool' 11893 11894 11895 11896 11897 11898 11899 11900 11901 11902 11903 11904 11905 11906 11907 11908 11909 11910 11911 11912 11913 11914 11915 11916 11917 11918 11919 11920 11921 11922 11923test -z "$LN_S" && LN_S="ln -s" 11924 11925 11926 11927 11928 11929 11930 11931 11932 11933 11934 11935 11936 11937 11938if test -n "${ZSH_VERSION+set}"; then 11939 setopt NO_GLOB_SUBST 11940fi 11941 11942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 11943$as_echo_n "checking for objdir... " >&6; } 11944if ${lt_cv_objdir+:} false; then : 11945 $as_echo_n "(cached) " >&6 11946else 11947 rm -f .libs 2>/dev/null 11948mkdir .libs 2>/dev/null 11949if test -d .libs; then 11950 lt_cv_objdir=.libs 11951else 11952 # MS-DOS does not allow filenames that begin with a dot. 11953 lt_cv_objdir=_libs 11954fi 11955rmdir .libs 2>/dev/null 11956fi 11957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 11958$as_echo "$lt_cv_objdir" >&6; } 11959objdir=$lt_cv_objdir 11960 11961 11962 11963 11964 11965cat >>confdefs.h <<_ACEOF 11966#define LT_OBJDIR "$lt_cv_objdir/" 11967_ACEOF 11968 11969 11970 11971 11972case $host_os in 11973aix3*) 11974 # AIX sometimes has problems with the GCC collect2 program. For some 11975 # reason, if we set the COLLECT_NAMES environment variable, the problems 11976 # vanish in a puff of smoke. 11977 if test set != "${COLLECT_NAMES+set}"; then 11978 COLLECT_NAMES= 11979 export COLLECT_NAMES 11980 fi 11981 ;; 11982esac 11983 11984# Global variables: 11985ofile=libtool 11986can_build_shared=yes 11987 11988# All known linkers require a '.a' archive for static linking (except MSVC, 11989# which needs '.lib'). 11990libext=a 11991 11992with_gnu_ld=$lt_cv_prog_gnu_ld 11993 11994old_CC=$CC 11995old_CFLAGS=$CFLAGS 11996 11997# Set sane defaults for various variables 11998test -z "$CC" && CC=cc 11999test -z "$LTCC" && LTCC=$CC 12000test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 12001test -z "$LD" && LD=ld 12002test -z "$ac_objext" && ac_objext=o 12003 12004func_cc_basename $compiler 12005cc_basename=$func_cc_basename_result 12006 12007 12008# Only perform the check for file, if the check method requires it 12009test -z "$MAGIC_CMD" && MAGIC_CMD=file 12010case $deplibs_check_method in 12011file_magic*) 12012 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 12013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 12014$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 12015if ${lt_cv_path_MAGIC_CMD+:} false; then : 12016 $as_echo_n "(cached) " >&6 12017else 12018 case $MAGIC_CMD in 12019[\\/*] | ?:[\\/]*) 12020 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 12021 ;; 12022*) 12023 lt_save_MAGIC_CMD=$MAGIC_CMD 12024 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 12025 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 12026 for ac_dir in $ac_dummy; do 12027 IFS=$lt_save_ifs 12028 test -z "$ac_dir" && ac_dir=. 12029 if test -f "$ac_dir/${ac_tool_prefix}file"; then 12030 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 12031 if test -n "$file_magic_test_file"; then 12032 case $deplibs_check_method in 12033 "file_magic "*) 12034 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 12035 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 12036 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 12037 $EGREP "$file_magic_regex" > /dev/null; then 12038 : 12039 else 12040 cat <<_LT_EOF 1>&2 12041 12042*** Warning: the command libtool uses to detect shared libraries, 12043*** $file_magic_cmd, produces output that libtool cannot recognize. 12044*** The result is that libtool may fail to recognize shared libraries 12045*** as such. This will affect the creation of libtool libraries that 12046*** depend on shared libraries, but programs linked with such libtool 12047*** libraries will work regardless of this problem. Nevertheless, you 12048*** may want to report the problem to your system manager and/or to 12049*** bug-libtool@gnu.org 12050 12051_LT_EOF 12052 fi ;; 12053 esac 12054 fi 12055 break 12056 fi 12057 done 12058 IFS=$lt_save_ifs 12059 MAGIC_CMD=$lt_save_MAGIC_CMD 12060 ;; 12061esac 12062fi 12063 12064MAGIC_CMD=$lt_cv_path_MAGIC_CMD 12065if test -n "$MAGIC_CMD"; then 12066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 12067$as_echo "$MAGIC_CMD" >&6; } 12068else 12069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12070$as_echo "no" >&6; } 12071fi 12072 12073 12074 12075 12076 12077if test -z "$lt_cv_path_MAGIC_CMD"; then 12078 if test -n "$ac_tool_prefix"; then 12079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 12080$as_echo_n "checking for file... " >&6; } 12081if ${lt_cv_path_MAGIC_CMD+:} false; then : 12082 $as_echo_n "(cached) " >&6 12083else 12084 case $MAGIC_CMD in 12085[\\/*] | ?:[\\/]*) 12086 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 12087 ;; 12088*) 12089 lt_save_MAGIC_CMD=$MAGIC_CMD 12090 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 12091 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 12092 for ac_dir in $ac_dummy; do 12093 IFS=$lt_save_ifs 12094 test -z "$ac_dir" && ac_dir=. 12095 if test -f "$ac_dir/file"; then 12096 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 12097 if test -n "$file_magic_test_file"; then 12098 case $deplibs_check_method in 12099 "file_magic "*) 12100 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 12101 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 12102 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 12103 $EGREP "$file_magic_regex" > /dev/null; then 12104 : 12105 else 12106 cat <<_LT_EOF 1>&2 12107 12108*** Warning: the command libtool uses to detect shared libraries, 12109*** $file_magic_cmd, produces output that libtool cannot recognize. 12110*** The result is that libtool may fail to recognize shared libraries 12111*** as such. This will affect the creation of libtool libraries that 12112*** depend on shared libraries, but programs linked with such libtool 12113*** libraries will work regardless of this problem. Nevertheless, you 12114*** may want to report the problem to your system manager and/or to 12115*** bug-libtool@gnu.org 12116 12117_LT_EOF 12118 fi ;; 12119 esac 12120 fi 12121 break 12122 fi 12123 done 12124 IFS=$lt_save_ifs 12125 MAGIC_CMD=$lt_save_MAGIC_CMD 12126 ;; 12127esac 12128fi 12129 12130MAGIC_CMD=$lt_cv_path_MAGIC_CMD 12131if test -n "$MAGIC_CMD"; then 12132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 12133$as_echo "$MAGIC_CMD" >&6; } 12134else 12135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12136$as_echo "no" >&6; } 12137fi 12138 12139 12140 else 12141 MAGIC_CMD=: 12142 fi 12143fi 12144 12145 fi 12146 ;; 12147esac 12148 12149# Use C for the default configuration in the libtool script 12150 12151lt_save_CC=$CC 12152ac_ext=c 12153ac_cpp='$CPP $CPPFLAGS' 12154ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12155ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12156ac_compiler_gnu=$ac_cv_c_compiler_gnu 12157 12158 12159# Source file extension for C test sources. 12160ac_ext=c 12161 12162# Object file extension for compiled C test sources. 12163objext=o 12164objext=$objext 12165 12166# Code to be used in simple compile tests 12167lt_simple_compile_test_code="int some_variable = 0;" 12168 12169# Code to be used in simple link tests 12170lt_simple_link_test_code='int main(){return(0);}' 12171 12172 12173 12174 12175 12176 12177 12178# If no C compiler was specified, use CC. 12179LTCC=${LTCC-"$CC"} 12180 12181# If no C compiler flags were specified, use CFLAGS. 12182LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 12183 12184# Allow CC to be a program name with arguments. 12185compiler=$CC 12186 12187# Save the default compiler, since it gets overwritten when the other 12188# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 12189compiler_DEFAULT=$CC 12190 12191# save warnings/boilerplate of simple test code 12192ac_outfile=conftest.$ac_objext 12193echo "$lt_simple_compile_test_code" >conftest.$ac_ext 12194eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 12195_lt_compiler_boilerplate=`cat conftest.err` 12196$RM conftest* 12197 12198ac_outfile=conftest.$ac_objext 12199echo "$lt_simple_link_test_code" >conftest.$ac_ext 12200eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 12201_lt_linker_boilerplate=`cat conftest.err` 12202$RM -r conftest* 12203 12204 12205## CAVEAT EMPTOR: 12206## There is no encapsulation within the following macros, do not change 12207## the running order or otherwise move them around unless you know exactly 12208## what you are doing... 12209if test -n "$compiler"; then 12210 12211lt_prog_compiler_no_builtin_flag= 12212 12213if test yes = "$GCC"; then 12214 case $cc_basename in 12215 nvcc*) 12216 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 12217 *) 12218 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 12219 esac 12220 12221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 12222$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 12223if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 12224 $as_echo_n "(cached) " >&6 12225else 12226 lt_cv_prog_compiler_rtti_exceptions=no 12227 ac_outfile=conftest.$ac_objext 12228 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12229 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 12230 # Insert the option either (1) after the last *FLAGS variable, or 12231 # (2) before a word containing "conftest.", or (3) at the end. 12232 # Note that $ac_compile itself does not contain backslashes and begins 12233 # with a dollar sign (not a hyphen), so the echo should work correctly. 12234 # The option is referenced via a variable to avoid confusing sed. 12235 lt_compile=`echo "$ac_compile" | $SED \ 12236 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12237 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12238 -e 's:$: $lt_compiler_flag:'` 12239 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 12240 (eval "$lt_compile" 2>conftest.err) 12241 ac_status=$? 12242 cat conftest.err >&5 12243 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12244 if (exit $ac_status) && test -s "$ac_outfile"; then 12245 # The compiler can only warn and ignore the option if not recognized 12246 # So say no if there are warnings other than the usual output. 12247 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 12248 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12249 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 12250 lt_cv_prog_compiler_rtti_exceptions=yes 12251 fi 12252 fi 12253 $RM conftest* 12254 12255fi 12256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 12257$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 12258 12259if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 12260 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 12261else 12262 : 12263fi 12264 12265fi 12266 12267 12268 12269 12270 12271 12272 lt_prog_compiler_wl= 12273lt_prog_compiler_pic= 12274lt_prog_compiler_static= 12275 12276 12277 if test yes = "$GCC"; then 12278 lt_prog_compiler_wl='-Wl,' 12279 lt_prog_compiler_static='-static' 12280 12281 case $host_os in 12282 aix*) 12283 # All AIX code is PIC. 12284 if test ia64 = "$host_cpu"; then 12285 # AIX 5 now supports IA64 processor 12286 lt_prog_compiler_static='-Bstatic' 12287 fi 12288 lt_prog_compiler_pic='-fPIC' 12289 ;; 12290 12291 amigaos*) 12292 case $host_cpu in 12293 powerpc) 12294 # see comment about AmigaOS4 .so support 12295 lt_prog_compiler_pic='-fPIC' 12296 ;; 12297 m68k) 12298 # FIXME: we need at least 68020 code to build shared libraries, but 12299 # adding the '-m68020' flag to GCC prevents building anything better, 12300 # like '-m68040'. 12301 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 12302 ;; 12303 esac 12304 ;; 12305 12306 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 12307 # PIC is the default for these OSes. 12308 ;; 12309 12310 mingw* | cygwin* | pw32* | os2* | cegcc*) 12311 # This hack is so that the source file can tell whether it is being 12312 # built for inclusion in a dll (and should export symbols for example). 12313 # Although the cygwin gcc ignores -fPIC, still need this for old-style 12314 # (--disable-auto-import) libraries 12315 lt_prog_compiler_pic='-DDLL_EXPORT' 12316 case $host_os in 12317 os2*) 12318 lt_prog_compiler_static='$wl-static' 12319 ;; 12320 esac 12321 ;; 12322 12323 darwin* | rhapsody*) 12324 # PIC is the default on this platform 12325 # Common symbols not allowed in MH_DYLIB files 12326 lt_prog_compiler_pic='-fno-common' 12327 ;; 12328 12329 haiku*) 12330 # PIC is the default for Haiku. 12331 # The "-static" flag exists, but is broken. 12332 lt_prog_compiler_static= 12333 ;; 12334 12335 hpux*) 12336 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 12337 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 12338 # sets the default TLS model and affects inlining. 12339 case $host_cpu in 12340 hppa*64*) 12341 # +Z the default 12342 ;; 12343 *) 12344 lt_prog_compiler_pic='-fPIC' 12345 ;; 12346 esac 12347 ;; 12348 12349 interix[3-9]*) 12350 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 12351 # Instead, we relocate shared libraries at runtime. 12352 ;; 12353 12354 msdosdjgpp*) 12355 # Just because we use GCC doesn't mean we suddenly get shared libraries 12356 # on systems that don't support them. 12357 lt_prog_compiler_can_build_shared=no 12358 enable_shared=no 12359 ;; 12360 12361 *nto* | *qnx*) 12362 # QNX uses GNU C++, but need to define -shared option too, otherwise 12363 # it will coredump. 12364 lt_prog_compiler_pic='-fPIC -shared' 12365 ;; 12366 12367 sysv4*MP*) 12368 if test -d /usr/nec; then 12369 lt_prog_compiler_pic=-Kconform_pic 12370 fi 12371 ;; 12372 12373 *) 12374 lt_prog_compiler_pic='-fPIC' 12375 ;; 12376 esac 12377 12378 case $cc_basename in 12379 nvcc*) # Cuda Compiler Driver 2.2 12380 lt_prog_compiler_wl='-Xlinker ' 12381 if test -n "$lt_prog_compiler_pic"; then 12382 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 12383 fi 12384 ;; 12385 esac 12386 else 12387 # PORTME Check for flag to pass linker flags through the system compiler. 12388 case $host_os in 12389 aix*) 12390 lt_prog_compiler_wl='-Wl,' 12391 if test ia64 = "$host_cpu"; then 12392 # AIX 5 now supports IA64 processor 12393 lt_prog_compiler_static='-Bstatic' 12394 else 12395 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 12396 fi 12397 ;; 12398 12399 darwin* | rhapsody*) 12400 # PIC is the default on this platform 12401 # Common symbols not allowed in MH_DYLIB files 12402 lt_prog_compiler_pic='-fno-common' 12403 case $cc_basename in 12404 nagfor*) 12405 # NAG Fortran compiler 12406 lt_prog_compiler_wl='-Wl,-Wl,,' 12407 lt_prog_compiler_pic='-PIC' 12408 lt_prog_compiler_static='-Bstatic' 12409 ;; 12410 esac 12411 ;; 12412 12413 mingw* | cygwin* | pw32* | os2* | cegcc*) 12414 # This hack is so that the source file can tell whether it is being 12415 # built for inclusion in a dll (and should export symbols for example). 12416 lt_prog_compiler_pic='-DDLL_EXPORT' 12417 case $host_os in 12418 os2*) 12419 lt_prog_compiler_static='$wl-static' 12420 ;; 12421 esac 12422 ;; 12423 12424 hpux9* | hpux10* | hpux11*) 12425 lt_prog_compiler_wl='-Wl,' 12426 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 12427 # not for PA HP-UX. 12428 case $host_cpu in 12429 hppa*64*|ia64*) 12430 # +Z the default 12431 ;; 12432 *) 12433 lt_prog_compiler_pic='+Z' 12434 ;; 12435 esac 12436 # Is there a better lt_prog_compiler_static that works with the bundled CC? 12437 lt_prog_compiler_static='$wl-a ${wl}archive' 12438 ;; 12439 12440 irix5* | irix6* | nonstopux*) 12441 lt_prog_compiler_wl='-Wl,' 12442 # PIC (with -KPIC) is the default. 12443 lt_prog_compiler_static='-non_shared' 12444 ;; 12445 12446 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 12447 case $cc_basename in 12448 # old Intel for x86_64, which still supported -KPIC. 12449 ecc*) 12450 lt_prog_compiler_wl='-Wl,' 12451 lt_prog_compiler_pic='-KPIC' 12452 lt_prog_compiler_static='-static' 12453 ;; 12454 # icc used to be incompatible with GCC. 12455 # ICC 10 doesn't accept -KPIC any more. 12456 icc* | ifort*) 12457 lt_prog_compiler_wl='-Wl,' 12458 lt_prog_compiler_pic='-fPIC' 12459 lt_prog_compiler_static='-static' 12460 ;; 12461 # Lahey Fortran 8.1. 12462 lf95*) 12463 lt_prog_compiler_wl='-Wl,' 12464 lt_prog_compiler_pic='--shared' 12465 lt_prog_compiler_static='--static' 12466 ;; 12467 nagfor*) 12468 # NAG Fortran compiler 12469 lt_prog_compiler_wl='-Wl,-Wl,,' 12470 lt_prog_compiler_pic='-PIC' 12471 lt_prog_compiler_static='-Bstatic' 12472 ;; 12473 tcc*) 12474 # Fabrice Bellard et al's Tiny C Compiler 12475 lt_prog_compiler_wl='-Wl,' 12476 lt_prog_compiler_pic='-fPIC' 12477 lt_prog_compiler_static='-static' 12478 ;; 12479 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 12480 # Portland Group compilers (*not* the Pentium gcc compiler, 12481 # which looks to be a dead project) 12482 lt_prog_compiler_wl='-Wl,' 12483 lt_prog_compiler_pic='-fpic' 12484 lt_prog_compiler_static='-Bstatic' 12485 ;; 12486 ccc*) 12487 lt_prog_compiler_wl='-Wl,' 12488 # All Alpha code is PIC. 12489 lt_prog_compiler_static='-non_shared' 12490 ;; 12491 xl* | bgxl* | bgf* | mpixl*) 12492 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 12493 lt_prog_compiler_wl='-Wl,' 12494 lt_prog_compiler_pic='-qpic' 12495 lt_prog_compiler_static='-qstaticlink' 12496 ;; 12497 *) 12498 case `$CC -V 2>&1 | sed 5q` in 12499 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 12500 # Sun Fortran 8.3 passes all unrecognized flags to the linker 12501 lt_prog_compiler_pic='-KPIC' 12502 lt_prog_compiler_static='-Bstatic' 12503 lt_prog_compiler_wl='' 12504 ;; 12505 *Sun\ F* | *Sun*Fortran*) 12506 lt_prog_compiler_pic='-KPIC' 12507 lt_prog_compiler_static='-Bstatic' 12508 lt_prog_compiler_wl='-Qoption ld ' 12509 ;; 12510 *Sun\ C*) 12511 # Sun C 5.9 12512 lt_prog_compiler_pic='-KPIC' 12513 lt_prog_compiler_static='-Bstatic' 12514 lt_prog_compiler_wl='-Wl,' 12515 ;; 12516 *Intel*\ [CF]*Compiler*) 12517 lt_prog_compiler_wl='-Wl,' 12518 lt_prog_compiler_pic='-fPIC' 12519 lt_prog_compiler_static='-static' 12520 ;; 12521 *Portland\ Group*) 12522 lt_prog_compiler_wl='-Wl,' 12523 lt_prog_compiler_pic='-fpic' 12524 lt_prog_compiler_static='-Bstatic' 12525 ;; 12526 esac 12527 ;; 12528 esac 12529 ;; 12530 12531 newsos6) 12532 lt_prog_compiler_pic='-KPIC' 12533 lt_prog_compiler_static='-Bstatic' 12534 ;; 12535 12536 *nto* | *qnx*) 12537 # QNX uses GNU C++, but need to define -shared option too, otherwise 12538 # it will coredump. 12539 lt_prog_compiler_pic='-fPIC -shared' 12540 ;; 12541 12542 osf3* | osf4* | osf5*) 12543 lt_prog_compiler_wl='-Wl,' 12544 # All OSF/1 code is PIC. 12545 lt_prog_compiler_static='-non_shared' 12546 ;; 12547 12548 rdos*) 12549 lt_prog_compiler_static='-non_shared' 12550 ;; 12551 12552 solaris*) 12553 lt_prog_compiler_pic='-KPIC' 12554 lt_prog_compiler_static='-Bstatic' 12555 case $cc_basename in 12556 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 12557 lt_prog_compiler_wl='-Qoption ld ';; 12558 *) 12559 lt_prog_compiler_wl='-Wl,';; 12560 esac 12561 ;; 12562 12563 sunos4*) 12564 lt_prog_compiler_wl='-Qoption ld ' 12565 lt_prog_compiler_pic='-PIC' 12566 lt_prog_compiler_static='-Bstatic' 12567 ;; 12568 12569 sysv4 | sysv4.2uw2* | sysv4.3*) 12570 lt_prog_compiler_wl='-Wl,' 12571 lt_prog_compiler_pic='-KPIC' 12572 lt_prog_compiler_static='-Bstatic' 12573 ;; 12574 12575 sysv4*MP*) 12576 if test -d /usr/nec; then 12577 lt_prog_compiler_pic='-Kconform_pic' 12578 lt_prog_compiler_static='-Bstatic' 12579 fi 12580 ;; 12581 12582 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 12583 lt_prog_compiler_wl='-Wl,' 12584 lt_prog_compiler_pic='-KPIC' 12585 lt_prog_compiler_static='-Bstatic' 12586 ;; 12587 12588 unicos*) 12589 lt_prog_compiler_wl='-Wl,' 12590 lt_prog_compiler_can_build_shared=no 12591 ;; 12592 12593 uts4*) 12594 lt_prog_compiler_pic='-pic' 12595 lt_prog_compiler_static='-Bstatic' 12596 ;; 12597 12598 *) 12599 lt_prog_compiler_can_build_shared=no 12600 ;; 12601 esac 12602 fi 12603 12604case $host_os in 12605 # For platforms that do not support PIC, -DPIC is meaningless: 12606 *djgpp*) 12607 lt_prog_compiler_pic= 12608 ;; 12609 *) 12610 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 12611 ;; 12612esac 12613 12614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 12615$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 12616if ${lt_cv_prog_compiler_pic+:} false; then : 12617 $as_echo_n "(cached) " >&6 12618else 12619 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 12620fi 12621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 12622$as_echo "$lt_cv_prog_compiler_pic" >&6; } 12623lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 12624 12625# 12626# Check to make sure the PIC flag actually works. 12627# 12628if test -n "$lt_prog_compiler_pic"; then 12629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 12630$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 12631if ${lt_cv_prog_compiler_pic_works+:} false; then : 12632 $as_echo_n "(cached) " >&6 12633else 12634 lt_cv_prog_compiler_pic_works=no 12635 ac_outfile=conftest.$ac_objext 12636 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12637 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 12638 # Insert the option either (1) after the last *FLAGS variable, or 12639 # (2) before a word containing "conftest.", or (3) at the end. 12640 # Note that $ac_compile itself does not contain backslashes and begins 12641 # with a dollar sign (not a hyphen), so the echo should work correctly. 12642 # The option is referenced via a variable to avoid confusing sed. 12643 lt_compile=`echo "$ac_compile" | $SED \ 12644 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12645 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12646 -e 's:$: $lt_compiler_flag:'` 12647 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 12648 (eval "$lt_compile" 2>conftest.err) 12649 ac_status=$? 12650 cat conftest.err >&5 12651 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12652 if (exit $ac_status) && test -s "$ac_outfile"; then 12653 # The compiler can only warn and ignore the option if not recognized 12654 # So say no if there are warnings other than the usual output. 12655 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 12656 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12657 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 12658 lt_cv_prog_compiler_pic_works=yes 12659 fi 12660 fi 12661 $RM conftest* 12662 12663fi 12664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 12665$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 12666 12667if test yes = "$lt_cv_prog_compiler_pic_works"; then 12668 case $lt_prog_compiler_pic in 12669 "" | " "*) ;; 12670 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 12671 esac 12672else 12673 lt_prog_compiler_pic= 12674 lt_prog_compiler_can_build_shared=no 12675fi 12676 12677fi 12678 12679 12680 12681 12682 12683 12684 12685 12686 12687 12688 12689# 12690# Check to make sure the static flag actually works. 12691# 12692wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 12693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 12694$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 12695if ${lt_cv_prog_compiler_static_works+:} false; then : 12696 $as_echo_n "(cached) " >&6 12697else 12698 lt_cv_prog_compiler_static_works=no 12699 save_LDFLAGS=$LDFLAGS 12700 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 12701 echo "$lt_simple_link_test_code" > conftest.$ac_ext 12702 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 12703 # The linker can only warn and ignore the option if not recognized 12704 # So say no if there are warnings 12705 if test -s conftest.err; then 12706 # Append any errors to the config.log. 12707 cat conftest.err 1>&5 12708 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 12709 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12710 if diff conftest.exp conftest.er2 >/dev/null; then 12711 lt_cv_prog_compiler_static_works=yes 12712 fi 12713 else 12714 lt_cv_prog_compiler_static_works=yes 12715 fi 12716 fi 12717 $RM -r conftest* 12718 LDFLAGS=$save_LDFLAGS 12719 12720fi 12721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 12722$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 12723 12724if test yes = "$lt_cv_prog_compiler_static_works"; then 12725 : 12726else 12727 lt_prog_compiler_static= 12728fi 12729 12730 12731 12732 12733 12734 12735 12736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 12737$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 12738if ${lt_cv_prog_compiler_c_o+:} false; then : 12739 $as_echo_n "(cached) " >&6 12740else 12741 lt_cv_prog_compiler_c_o=no 12742 $RM -r conftest 2>/dev/null 12743 mkdir conftest 12744 cd conftest 12745 mkdir out 12746 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12747 12748 lt_compiler_flag="-o out/conftest2.$ac_objext" 12749 # Insert the option either (1) after the last *FLAGS variable, or 12750 # (2) before a word containing "conftest.", or (3) at the end. 12751 # Note that $ac_compile itself does not contain backslashes and begins 12752 # with a dollar sign (not a hyphen), so the echo should work correctly. 12753 lt_compile=`echo "$ac_compile" | $SED \ 12754 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12755 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12756 -e 's:$: $lt_compiler_flag:'` 12757 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 12758 (eval "$lt_compile" 2>out/conftest.err) 12759 ac_status=$? 12760 cat out/conftest.err >&5 12761 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12762 if (exit $ac_status) && test -s out/conftest2.$ac_objext 12763 then 12764 # The compiler can only warn and ignore the option if not recognized 12765 # So say no if there are warnings 12766 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 12767 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 12768 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 12769 lt_cv_prog_compiler_c_o=yes 12770 fi 12771 fi 12772 chmod u+w . 2>&5 12773 $RM conftest* 12774 # SGI C++ compiler will create directory out/ii_files/ for 12775 # template instantiation 12776 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 12777 $RM out/* && rmdir out 12778 cd .. 12779 $RM -r conftest 12780 $RM conftest* 12781 12782fi 12783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 12784$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 12785 12786 12787 12788 12789 12790 12791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 12792$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 12793if ${lt_cv_prog_compiler_c_o+:} false; then : 12794 $as_echo_n "(cached) " >&6 12795else 12796 lt_cv_prog_compiler_c_o=no 12797 $RM -r conftest 2>/dev/null 12798 mkdir conftest 12799 cd conftest 12800 mkdir out 12801 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12802 12803 lt_compiler_flag="-o out/conftest2.$ac_objext" 12804 # Insert the option either (1) after the last *FLAGS variable, or 12805 # (2) before a word containing "conftest.", or (3) at the end. 12806 # Note that $ac_compile itself does not contain backslashes and begins 12807 # with a dollar sign (not a hyphen), so the echo should work correctly. 12808 lt_compile=`echo "$ac_compile" | $SED \ 12809 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12810 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12811 -e 's:$: $lt_compiler_flag:'` 12812 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 12813 (eval "$lt_compile" 2>out/conftest.err) 12814 ac_status=$? 12815 cat out/conftest.err >&5 12816 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12817 if (exit $ac_status) && test -s out/conftest2.$ac_objext 12818 then 12819 # The compiler can only warn and ignore the option if not recognized 12820 # So say no if there are warnings 12821 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 12822 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 12823 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 12824 lt_cv_prog_compiler_c_o=yes 12825 fi 12826 fi 12827 chmod u+w . 2>&5 12828 $RM conftest* 12829 # SGI C++ compiler will create directory out/ii_files/ for 12830 # template instantiation 12831 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 12832 $RM out/* && rmdir out 12833 cd .. 12834 $RM -r conftest 12835 $RM conftest* 12836 12837fi 12838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 12839$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 12840 12841 12842 12843 12844hard_links=nottested 12845if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 12846 # do not overwrite the value of need_locks provided by the user 12847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 12848$as_echo_n "checking if we can lock with hard links... " >&6; } 12849 hard_links=yes 12850 $RM conftest* 12851 ln conftest.a conftest.b 2>/dev/null && hard_links=no 12852 touch conftest.a 12853 ln conftest.a conftest.b 2>&5 || hard_links=no 12854 ln conftest.a conftest.b 2>/dev/null && hard_links=no 12855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 12856$as_echo "$hard_links" >&6; } 12857 if test no = "$hard_links"; then 12858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 12859$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 12860 need_locks=warn 12861 fi 12862else 12863 need_locks=no 12864fi 12865 12866 12867 12868 12869 12870 12871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 12872$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 12873 12874 runpath_var= 12875 allow_undefined_flag= 12876 always_export_symbols=no 12877 archive_cmds= 12878 archive_expsym_cmds= 12879 compiler_needs_object=no 12880 enable_shared_with_static_runtimes=no 12881 export_dynamic_flag_spec= 12882 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 12883 hardcode_automatic=no 12884 hardcode_direct=no 12885 hardcode_direct_absolute=no 12886 hardcode_libdir_flag_spec= 12887 hardcode_libdir_separator= 12888 hardcode_minus_L=no 12889 hardcode_shlibpath_var=unsupported 12890 inherit_rpath=no 12891 link_all_deplibs=unknown 12892 module_cmds= 12893 module_expsym_cmds= 12894 old_archive_from_new_cmds= 12895 old_archive_from_expsyms_cmds= 12896 thread_safe_flag_spec= 12897 whole_archive_flag_spec= 12898 # include_expsyms should be a list of space-separated symbols to be *always* 12899 # included in the symbol list 12900 include_expsyms= 12901 # exclude_expsyms can be an extended regexp of symbols to exclude 12902 # it will be wrapped by ' (' and ')$', so one must not match beginning or 12903 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 12904 # as well as any symbol that contains 'd'. 12905 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 12906 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 12907 # platforms (ab)use it in PIC code, but their linkers get confused if 12908 # the symbol is explicitly referenced. Since portable code cannot 12909 # rely on this symbol name, it's probably fine to never include it in 12910 # preloaded symbol tables. 12911 # Exclude shared library initialization/finalization symbols. 12912 extract_expsyms_cmds= 12913 12914 case $host_os in 12915 cygwin* | mingw* | pw32* | cegcc*) 12916 # FIXME: the MSVC++ port hasn't been tested in a loooong time 12917 # When not using gcc, we currently assume that we are using 12918 # Microsoft Visual C++. 12919 if test yes != "$GCC"; then 12920 with_gnu_ld=no 12921 fi 12922 ;; 12923 interix*) 12924 # we just hope/assume this is gcc and not c89 (= MSVC++) 12925 with_gnu_ld=yes 12926 ;; 12927 openbsd* | bitrig*) 12928 with_gnu_ld=no 12929 ;; 12930 esac 12931 12932 ld_shlibs=yes 12933 12934 # On some targets, GNU ld is compatible enough with the native linker 12935 # that we're better off using the native interface for both. 12936 lt_use_gnu_ld_interface=no 12937 if test yes = "$with_gnu_ld"; then 12938 case $host_os in 12939 aix*) 12940 # The AIX port of GNU ld has always aspired to compatibility 12941 # with the native linker. However, as the warning in the GNU ld 12942 # block says, versions before 2.19.5* couldn't really create working 12943 # shared libraries, regardless of the interface used. 12944 case `$LD -v 2>&1` in 12945 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 12946 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 12947 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 12948 *) 12949 lt_use_gnu_ld_interface=yes 12950 ;; 12951 esac 12952 ;; 12953 *) 12954 lt_use_gnu_ld_interface=yes 12955 ;; 12956 esac 12957 fi 12958 12959 if test yes = "$lt_use_gnu_ld_interface"; then 12960 # If archive_cmds runs LD, not CC, wlarc should be empty 12961 wlarc='$wl' 12962 12963 # Set some defaults for GNU ld with shared library support. These 12964 # are reset later if shared libraries are not supported. Putting them 12965 # here allows them to be overridden if necessary. 12966 runpath_var=LD_RUN_PATH 12967 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 12968 export_dynamic_flag_spec='$wl--export-dynamic' 12969 # ancient GNU ld didn't support --whole-archive et. al. 12970 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 12971 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 12972 else 12973 whole_archive_flag_spec= 12974 fi 12975 supports_anon_versioning=no 12976 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 12977 *GNU\ gold*) supports_anon_versioning=yes ;; 12978 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 12979 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 12980 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 12981 *\ 2.11.*) ;; # other 2.11 versions 12982 *) supports_anon_versioning=yes ;; 12983 esac 12984 12985 # See if GNU ld supports shared libraries. 12986 case $host_os in 12987 aix[3-9]*) 12988 # On AIX/PPC, the GNU linker is very broken 12989 if test ia64 != "$host_cpu"; then 12990 ld_shlibs=no 12991 cat <<_LT_EOF 1>&2 12992 12993*** Warning: the GNU linker, at least up to release 2.19, is reported 12994*** to be unable to reliably create shared libraries on AIX. 12995*** Therefore, libtool is disabling shared libraries support. If you 12996*** really care for shared libraries, you may want to install binutils 12997*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 12998*** You will then need to restart the configuration process. 12999 13000_LT_EOF 13001 fi 13002 ;; 13003 13004 amigaos*) 13005 case $host_cpu in 13006 powerpc) 13007 # see comment about AmigaOS4 .so support 13008 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 13009 archive_expsym_cmds='' 13010 ;; 13011 m68k) 13012 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' 13013 hardcode_libdir_flag_spec='-L$libdir' 13014 hardcode_minus_L=yes 13015 ;; 13016 esac 13017 ;; 13018 13019 beos*) 13020 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 13021 allow_undefined_flag=unsupported 13022 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 13023 # support --undefined. This deserves some investigation. FIXME 13024 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 13025 else 13026 ld_shlibs=no 13027 fi 13028 ;; 13029 13030 cygwin* | mingw* | pw32* | cegcc*) 13031 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 13032 # as there is no search path for DLLs. 13033 hardcode_libdir_flag_spec='-L$libdir' 13034 export_dynamic_flag_spec='$wl--export-all-symbols' 13035 allow_undefined_flag=unsupported 13036 always_export_symbols=no 13037 enable_shared_with_static_runtimes=yes 13038 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' 13039 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 13040 13041 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 13042 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 13043 # If the export-symbols file already is a .def file, use it as 13044 # is; otherwise, prepend EXPORTS... 13045 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 13046 cp $export_symbols $output_objdir/$soname.def; 13047 else 13048 echo EXPORTS > $output_objdir/$soname.def; 13049 cat $export_symbols >> $output_objdir/$soname.def; 13050 fi~ 13051 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 13052 else 13053 ld_shlibs=no 13054 fi 13055 ;; 13056 13057 haiku*) 13058 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 13059 link_all_deplibs=yes 13060 ;; 13061 13062 os2*) 13063 hardcode_libdir_flag_spec='-L$libdir' 13064 hardcode_minus_L=yes 13065 allow_undefined_flag=unsupported 13066 shrext_cmds=.dll 13067 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 13068 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 13069 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 13070 $ECHO EXPORTS >> $output_objdir/$libname.def~ 13071 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 13072 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 13073 emximp -o $lib $output_objdir/$libname.def' 13074 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 13075 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 13076 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 13077 $ECHO EXPORTS >> $output_objdir/$libname.def~ 13078 prefix_cmds="$SED"~ 13079 if test EXPORTS = "`$SED 1q $export_symbols`"; then 13080 prefix_cmds="$prefix_cmds -e 1d"; 13081 fi~ 13082 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 13083 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 13084 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 13085 emximp -o $lib $output_objdir/$libname.def' 13086 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 13087 enable_shared_with_static_runtimes=yes 13088 ;; 13089 13090 interix[3-9]*) 13091 hardcode_direct=no 13092 hardcode_shlibpath_var=no 13093 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 13094 export_dynamic_flag_spec='$wl-E' 13095 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 13096 # Instead, shared libraries are loaded at an image base (0x10000000 by 13097 # default) and relocated if they conflict, which is a slow very memory 13098 # consuming and fragmenting process. To avoid this, we pick a random, 13099 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 13100 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 13101 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 13102 archive_expsym_cmds='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 13103 ;; 13104 13105 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 13106 tmp_diet=no 13107 if test linux-dietlibc = "$host_os"; then 13108 case $cc_basename in 13109 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 13110 esac 13111 fi 13112 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 13113 && test no = "$tmp_diet" 13114 then 13115 tmp_addflag=' $pic_flag' 13116 tmp_sharedflag='-shared' 13117 case $cc_basename,$host_cpu in 13118 pgcc*) # Portland Group C compiler 13119 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' 13120 tmp_addflag=' $pic_flag' 13121 ;; 13122 pgf77* | pgf90* | pgf95* | pgfortran*) 13123 # Portland Group f77 and f90 compilers 13124 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' 13125 tmp_addflag=' $pic_flag -Mnomain' ;; 13126 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 13127 tmp_addflag=' -i_dynamic' ;; 13128 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 13129 tmp_addflag=' -i_dynamic -nofor_main' ;; 13130 ifc* | ifort*) # Intel Fortran compiler 13131 tmp_addflag=' -nofor_main' ;; 13132 lf95*) # Lahey Fortran 8.1 13133 whole_archive_flag_spec= 13134 tmp_sharedflag='--shared' ;; 13135 nagfor*) # NAGFOR 5.3 13136 tmp_sharedflag='-Wl,-shared' ;; 13137 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 13138 tmp_sharedflag='-qmkshrobj' 13139 tmp_addflag= ;; 13140 nvcc*) # Cuda Compiler Driver 2.2 13141 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' 13142 compiler_needs_object=yes 13143 ;; 13144 esac 13145 case `$CC -V 2>&1 | sed 5q` in 13146 *Sun\ C*) # Sun C 5.9 13147 whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' 13148 compiler_needs_object=yes 13149 tmp_sharedflag='-G' ;; 13150 *Sun\ F*) # Sun Fortran 8.3 13151 tmp_sharedflag='-G' ;; 13152 esac 13153 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 13154 13155 if test yes = "$supports_anon_versioning"; then 13156 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 13157 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 13158 echo "local: *; };" >> $output_objdir/$libname.ver~ 13159 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 13160 fi 13161 13162 case $cc_basename in 13163 tcc*) 13164 export_dynamic_flag_spec='-rdynamic' 13165 ;; 13166 xlf* | bgf* | bgxlf* | mpixlf*) 13167 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 13168 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 13169 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 13170 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 13171 if test yes = "$supports_anon_versioning"; then 13172 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 13173 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 13174 echo "local: *; };" >> $output_objdir/$libname.ver~ 13175 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 13176 fi 13177 ;; 13178 esac 13179 else 13180 ld_shlibs=no 13181 fi 13182 ;; 13183 13184 netbsd*) 13185 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 13186 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 13187 wlarc= 13188 else 13189 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 13190 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 13191 fi 13192 ;; 13193 13194 solaris*) 13195 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 13196 ld_shlibs=no 13197 cat <<_LT_EOF 1>&2 13198 13199*** Warning: The releases 2.8.* of the GNU linker cannot reliably 13200*** create shared libraries on Solaris systems. Therefore, libtool 13201*** is disabling shared libraries support. We urge you to upgrade GNU 13202*** binutils to release 2.9.1 or newer. Another option is to modify 13203*** your PATH or compiler configuration so that the native linker is 13204*** used, and then restart. 13205 13206_LT_EOF 13207 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 13208 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 13209 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 13210 else 13211 ld_shlibs=no 13212 fi 13213 ;; 13214 13215 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 13216 case `$LD -v 2>&1` in 13217 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 13218 ld_shlibs=no 13219 cat <<_LT_EOF 1>&2 13220 13221*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 13222*** reliably create shared libraries on SCO systems. Therefore, libtool 13223*** is disabling shared libraries support. We urge you to upgrade GNU 13224*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 13225*** your PATH or compiler configuration so that the native linker is 13226*** used, and then restart. 13227 13228_LT_EOF 13229 ;; 13230 *) 13231 # For security reasons, it is highly recommended that you always 13232 # use absolute paths for naming shared libraries, and exclude the 13233 # DT_RUNPATH tag from executables and libraries. But doing so 13234 # requires that you compile everything twice, which is a pain. 13235 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 13236 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 13237 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 13238 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 13239 else 13240 ld_shlibs=no 13241 fi 13242 ;; 13243 esac 13244 ;; 13245 13246 sunos4*) 13247 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 13248 wlarc= 13249 hardcode_direct=yes 13250 hardcode_shlibpath_var=no 13251 ;; 13252 13253 *) 13254 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 13255 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 13256 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 13257 else 13258 ld_shlibs=no 13259 fi 13260 ;; 13261 esac 13262 13263 if test no = "$ld_shlibs"; then 13264 runpath_var= 13265 hardcode_libdir_flag_spec= 13266 export_dynamic_flag_spec= 13267 whole_archive_flag_spec= 13268 fi 13269 else 13270 # PORTME fill in a description of your system's linker (not GNU ld) 13271 case $host_os in 13272 aix3*) 13273 allow_undefined_flag=unsupported 13274 always_export_symbols=yes 13275 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' 13276 # Note: this linker hardcodes the directories in LIBPATH if there 13277 # are no directories specified by -L. 13278 hardcode_minus_L=yes 13279 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 13280 # Neither direct hardcoding nor static linking is supported with a 13281 # broken collect2. 13282 hardcode_direct=unsupported 13283 fi 13284 ;; 13285 13286 aix[4-9]*) 13287 if test ia64 = "$host_cpu"; then 13288 # On IA64, the linker does run time linking by default, so we don't 13289 # have to do anything special. 13290 aix_use_runtimelinking=no 13291 exp_sym_flag='-Bexport' 13292 no_entry_flag= 13293 else 13294 # If we're using GNU nm, then we don't want the "-C" option. 13295 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 13296 # Without the "-l" option, or with the "-B" option, AIX nm treats 13297 # weak defined symbols like other global defined symbols, whereas 13298 # GNU nm marks them as "W". 13299 # While the 'weak' keyword is ignored in the Export File, we need 13300 # it in the Import File for the 'aix-soname' feature, so we have 13301 # to replace the "-B" option with "-P" for AIX nm. 13302 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 13303 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' 13304 else 13305 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' 13306 fi 13307 aix_use_runtimelinking=no 13308 13309 # Test if we are trying to use run time linking or normal 13310 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 13311 # have runtime linking enabled, and use it for executables. 13312 # For shared libraries, we enable/disable runtime linking 13313 # depending on the kind of the shared library created - 13314 # when "with_aix_soname,aix_use_runtimelinking" is: 13315 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 13316 # "aix,yes" lib.so shared, rtl:yes, for executables 13317 # lib.a static archive 13318 # "both,no" lib.so.V(shr.o) shared, rtl:yes 13319 # lib.a(lib.so.V) shared, rtl:no, for executables 13320 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 13321 # lib.a(lib.so.V) shared, rtl:no 13322 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 13323 # lib.a static archive 13324 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 13325 for ld_flag in $LDFLAGS; do 13326 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 13327 aix_use_runtimelinking=yes 13328 break 13329 fi 13330 done 13331 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 13332 # With aix-soname=svr4, we create the lib.so.V shared archives only, 13333 # so we don't have lib.a shared libs to link our executables. 13334 # We have to force runtime linking in this case. 13335 aix_use_runtimelinking=yes 13336 LDFLAGS="$LDFLAGS -Wl,-brtl" 13337 fi 13338 ;; 13339 esac 13340 13341 exp_sym_flag='-bexport' 13342 no_entry_flag='-bnoentry' 13343 fi 13344 13345 # When large executables or shared objects are built, AIX ld can 13346 # have problems creating the table of contents. If linking a library 13347 # or program results in "error TOC overflow" add -mminimal-toc to 13348 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 13349 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 13350 13351 archive_cmds='' 13352 hardcode_direct=yes 13353 hardcode_direct_absolute=yes 13354 hardcode_libdir_separator=':' 13355 link_all_deplibs=yes 13356 file_list_spec='$wl-f,' 13357 case $with_aix_soname,$aix_use_runtimelinking in 13358 aix,*) ;; # traditional, no import file 13359 svr4,* | *,yes) # use import file 13360 # The Import File defines what to hardcode. 13361 hardcode_direct=no 13362 hardcode_direct_absolute=no 13363 ;; 13364 esac 13365 13366 if test yes = "$GCC"; then 13367 case $host_os in aix4.[012]|aix4.[012].*) 13368 # We only want to do this on AIX 4.2 and lower, the check 13369 # below for broken collect2 doesn't work under 4.3+ 13370 collect2name=`$CC -print-prog-name=collect2` 13371 if test -f "$collect2name" && 13372 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 13373 then 13374 # We have reworked collect2 13375 : 13376 else 13377 # We have old collect2 13378 hardcode_direct=unsupported 13379 # It fails to find uninstalled libraries when the uninstalled 13380 # path is not listed in the libpath. Setting hardcode_minus_L 13381 # to unsupported forces relinking 13382 hardcode_minus_L=yes 13383 hardcode_libdir_flag_spec='-L$libdir' 13384 hardcode_libdir_separator= 13385 fi 13386 ;; 13387 esac 13388 shared_flag='-shared' 13389 if test yes = "$aix_use_runtimelinking"; then 13390 shared_flag="$shared_flag "'$wl-G' 13391 fi 13392 # Need to ensure runtime linking is disabled for the traditional 13393 # shared library, or the linker may eventually find shared libraries 13394 # /with/ Import File - we do not want to mix them. 13395 shared_flag_aix='-shared' 13396 shared_flag_svr4='-shared $wl-G' 13397 else 13398 # not using gcc 13399 if test ia64 = "$host_cpu"; then 13400 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 13401 # chokes on -Wl,-G. The following line is correct: 13402 shared_flag='-G' 13403 else 13404 if test yes = "$aix_use_runtimelinking"; then 13405 shared_flag='$wl-G' 13406 else 13407 shared_flag='$wl-bM:SRE' 13408 fi 13409 shared_flag_aix='$wl-bM:SRE' 13410 shared_flag_svr4='$wl-G' 13411 fi 13412 fi 13413 13414 export_dynamic_flag_spec='$wl-bexpall' 13415 # It seems that -bexpall does not export symbols beginning with 13416 # underscore (_), so it is better to generate a list of symbols to export. 13417 always_export_symbols=yes 13418 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 13419 # Warning - without using the other runtime loading flags (-brtl), 13420 # -berok will link without error, but may produce a broken library. 13421 allow_undefined_flag='-berok' 13422 # Determine the default libpath from the value encoded in an 13423 # empty executable. 13424 if test set = "${lt_cv_aix_libpath+set}"; then 13425 aix_libpath=$lt_cv_aix_libpath 13426else 13427 if ${lt_cv_aix_libpath_+:} false; then : 13428 $as_echo_n "(cached) " >&6 13429else 13430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13431/* end confdefs.h. */ 13432 13433int 13434main () 13435{ 13436 13437 ; 13438 return 0; 13439} 13440_ACEOF 13441if ac_fn_c_try_link "$LINENO"; then : 13442 13443 lt_aix_libpath_sed=' 13444 /Import File Strings/,/^$/ { 13445 /^0/ { 13446 s/^0 *\([^ ]*\) *$/\1/ 13447 p 13448 } 13449 }' 13450 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13451 # Check for a 64-bit object if we didn't find anything. 13452 if test -z "$lt_cv_aix_libpath_"; then 13453 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13454 fi 13455fi 13456rm -f core conftest.err conftest.$ac_objext \ 13457 conftest$ac_exeext conftest.$ac_ext 13458 if test -z "$lt_cv_aix_libpath_"; then 13459 lt_cv_aix_libpath_=/usr/lib:/lib 13460 fi 13461 13462fi 13463 13464 aix_libpath=$lt_cv_aix_libpath_ 13465fi 13466 13467 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 13468 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag 13469 else 13470 if test ia64 = "$host_cpu"; then 13471 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 13472 allow_undefined_flag="-z nodefs" 13473 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols" 13474 else 13475 # Determine the default libpath from the value encoded in an 13476 # empty executable. 13477 if test set = "${lt_cv_aix_libpath+set}"; then 13478 aix_libpath=$lt_cv_aix_libpath 13479else 13480 if ${lt_cv_aix_libpath_+:} false; then : 13481 $as_echo_n "(cached) " >&6 13482else 13483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13484/* end confdefs.h. */ 13485 13486int 13487main () 13488{ 13489 13490 ; 13491 return 0; 13492} 13493_ACEOF 13494if ac_fn_c_try_link "$LINENO"; then : 13495 13496 lt_aix_libpath_sed=' 13497 /Import File Strings/,/^$/ { 13498 /^0/ { 13499 s/^0 *\([^ ]*\) *$/\1/ 13500 p 13501 } 13502 }' 13503 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13504 # Check for a 64-bit object if we didn't find anything. 13505 if test -z "$lt_cv_aix_libpath_"; then 13506 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13507 fi 13508fi 13509rm -f core conftest.err conftest.$ac_objext \ 13510 conftest$ac_exeext conftest.$ac_ext 13511 if test -z "$lt_cv_aix_libpath_"; then 13512 lt_cv_aix_libpath_=/usr/lib:/lib 13513 fi 13514 13515fi 13516 13517 aix_libpath=$lt_cv_aix_libpath_ 13518fi 13519 13520 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 13521 # Warning - without using the other run time loading flags, 13522 # -berok will link without error, but may produce a broken library. 13523 no_undefined_flag=' $wl-bernotok' 13524 allow_undefined_flag=' $wl-berok' 13525 if test yes = "$with_gnu_ld"; then 13526 # We only use this code for GNU lds that support --whole-archive. 13527 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 13528 else 13529 # Exported symbols can be pulled into shared objects from archives 13530 whole_archive_flag_spec='$convenience' 13531 fi 13532 archive_cmds_need_lc=yes 13533 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 13534 # -brtl affects multiple linker settings, -berok does not and is overridden later 13535 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 13536 if test svr4 != "$with_aix_soname"; then 13537 # This is similar to how AIX traditionally builds its shared libraries. 13538 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' 13539 fi 13540 if test aix != "$with_aix_soname"; then 13541 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' 13542 else 13543 # used by -dlpreopen to get the symbols 13544 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 13545 fi 13546 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 13547 fi 13548 fi 13549 ;; 13550 13551 amigaos*) 13552 case $host_cpu in 13553 powerpc) 13554 # see comment about AmigaOS4 .so support 13555 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 13556 archive_expsym_cmds='' 13557 ;; 13558 m68k) 13559 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' 13560 hardcode_libdir_flag_spec='-L$libdir' 13561 hardcode_minus_L=yes 13562 ;; 13563 esac 13564 ;; 13565 13566 bsdi[45]*) 13567 export_dynamic_flag_spec=-rdynamic 13568 ;; 13569 13570 cygwin* | mingw* | pw32* | cegcc*) 13571 # When not using gcc, we currently assume that we are using 13572 # Microsoft Visual C++. 13573 # hardcode_libdir_flag_spec is actually meaningless, as there is 13574 # no search path for DLLs. 13575 case $cc_basename in 13576 cl*) 13577 # Native MSVC 13578 hardcode_libdir_flag_spec=' ' 13579 allow_undefined_flag=unsupported 13580 always_export_symbols=yes 13581 file_list_spec='@' 13582 # Tell ltmain to make .lib files, not .a files. 13583 libext=lib 13584 # Tell ltmain to make .dll files, not .so files. 13585 shrext_cmds=.dll 13586 # FIXME: Setting linknames here is a bad hack. 13587 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 13588 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 13589 cp "$export_symbols" "$output_objdir/$soname.def"; 13590 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 13591 else 13592 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 13593 fi~ 13594 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 13595 linknames=' 13596 # The linker will not automatically build a static lib if we build a DLL. 13597 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 13598 enable_shared_with_static_runtimes=yes 13599 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 13600 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 13601 # Don't use ranlib 13602 old_postinstall_cmds='chmod 644 $oldlib' 13603 postlink_cmds='lt_outputfile="@OUTPUT@"~ 13604 lt_tool_outputfile="@TOOL_OUTPUT@"~ 13605 case $lt_outputfile in 13606 *.exe|*.EXE) ;; 13607 *) 13608 lt_outputfile=$lt_outputfile.exe 13609 lt_tool_outputfile=$lt_tool_outputfile.exe 13610 ;; 13611 esac~ 13612 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 13613 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 13614 $RM "$lt_outputfile.manifest"; 13615 fi' 13616 ;; 13617 *) 13618 # Assume MSVC wrapper 13619 hardcode_libdir_flag_spec=' ' 13620 allow_undefined_flag=unsupported 13621 # Tell ltmain to make .lib files, not .a files. 13622 libext=lib 13623 # Tell ltmain to make .dll files, not .so files. 13624 shrext_cmds=.dll 13625 # FIXME: Setting linknames here is a bad hack. 13626 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 13627 # The linker will automatically build a .lib file if we build a DLL. 13628 old_archive_from_new_cmds='true' 13629 # FIXME: Should let the user specify the lib program. 13630 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 13631 enable_shared_with_static_runtimes=yes 13632 ;; 13633 esac 13634 ;; 13635 13636 darwin* | rhapsody*) 13637 13638 13639 archive_cmds_need_lc=no 13640 hardcode_direct=no 13641 hardcode_automatic=yes 13642 hardcode_shlibpath_var=unsupported 13643 if test yes = "$lt_cv_ld_force_load"; then 13644 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' 13645 13646 else 13647 whole_archive_flag_spec='' 13648 fi 13649 link_all_deplibs=yes 13650 allow_undefined_flag=$_lt_dar_allow_undefined 13651 case $cc_basename in 13652 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 13653 *) _lt_dar_can_shared=$GCC ;; 13654 esac 13655 if test yes = "$_lt_dar_can_shared"; then 13656 output_verbose_link_cmd=func_echo_all 13657 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 13658 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 13659 archive_expsym_cmds="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil" 13660 module_expsym_cmds="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil" 13661 13662 else 13663 ld_shlibs=no 13664 fi 13665 13666 ;; 13667 13668 dgux*) 13669 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13670 hardcode_libdir_flag_spec='-L$libdir' 13671 hardcode_shlibpath_var=no 13672 ;; 13673 13674 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 13675 # support. Future versions do this automatically, but an explicit c++rt0.o 13676 # does not break anything, and helps significantly (at the cost of a little 13677 # extra space). 13678 freebsd2.2*) 13679 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 13680 hardcode_libdir_flag_spec='-R$libdir' 13681 hardcode_direct=yes 13682 hardcode_shlibpath_var=no 13683 ;; 13684 13685 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 13686 freebsd2.*) 13687 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 13688 hardcode_direct=yes 13689 hardcode_minus_L=yes 13690 hardcode_shlibpath_var=no 13691 ;; 13692 13693 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 13694 freebsd* | dragonfly*) 13695 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 13696 hardcode_libdir_flag_spec='-R$libdir' 13697 hardcode_direct=yes 13698 hardcode_shlibpath_var=no 13699 ;; 13700 13701 hpux9*) 13702 if test yes = "$GCC"; then 13703 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 13704 else 13705 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 13706 fi 13707 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 13708 hardcode_libdir_separator=: 13709 hardcode_direct=yes 13710 13711 # hardcode_minus_L: Not really in the search PATH, 13712 # but as the default location of the library. 13713 hardcode_minus_L=yes 13714 export_dynamic_flag_spec='$wl-E' 13715 ;; 13716 13717 hpux10*) 13718 if test yes,no = "$GCC,$with_gnu_ld"; then 13719 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 13720 else 13721 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 13722 fi 13723 if test no = "$with_gnu_ld"; then 13724 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 13725 hardcode_libdir_separator=: 13726 hardcode_direct=yes 13727 hardcode_direct_absolute=yes 13728 export_dynamic_flag_spec='$wl-E' 13729 # hardcode_minus_L: Not really in the search PATH, 13730 # but as the default location of the library. 13731 hardcode_minus_L=yes 13732 fi 13733 ;; 13734 13735 hpux11*) 13736 if test yes,no = "$GCC,$with_gnu_ld"; then 13737 case $host_cpu in 13738 hppa*64*) 13739 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 13740 ;; 13741 ia64*) 13742 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 13743 ;; 13744 *) 13745 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 13746 ;; 13747 esac 13748 else 13749 case $host_cpu in 13750 hppa*64*) 13751 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 13752 ;; 13753 ia64*) 13754 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 13755 ;; 13756 *) 13757 13758 # Older versions of the 11.00 compiler do not understand -b yet 13759 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 13760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 13761$as_echo_n "checking if $CC understands -b... " >&6; } 13762if ${lt_cv_prog_compiler__b+:} false; then : 13763 $as_echo_n "(cached) " >&6 13764else 13765 lt_cv_prog_compiler__b=no 13766 save_LDFLAGS=$LDFLAGS 13767 LDFLAGS="$LDFLAGS -b" 13768 echo "$lt_simple_link_test_code" > conftest.$ac_ext 13769 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 13770 # The linker can only warn and ignore the option if not recognized 13771 # So say no if there are warnings 13772 if test -s conftest.err; then 13773 # Append any errors to the config.log. 13774 cat conftest.err 1>&5 13775 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 13776 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13777 if diff conftest.exp conftest.er2 >/dev/null; then 13778 lt_cv_prog_compiler__b=yes 13779 fi 13780 else 13781 lt_cv_prog_compiler__b=yes 13782 fi 13783 fi 13784 $RM -r conftest* 13785 LDFLAGS=$save_LDFLAGS 13786 13787fi 13788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 13789$as_echo "$lt_cv_prog_compiler__b" >&6; } 13790 13791if test yes = "$lt_cv_prog_compiler__b"; then 13792 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 13793else 13794 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 13795fi 13796 13797 ;; 13798 esac 13799 fi 13800 if test no = "$with_gnu_ld"; then 13801 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 13802 hardcode_libdir_separator=: 13803 13804 case $host_cpu in 13805 hppa*64*|ia64*) 13806 hardcode_direct=no 13807 hardcode_shlibpath_var=no 13808 ;; 13809 *) 13810 hardcode_direct=yes 13811 hardcode_direct_absolute=yes 13812 export_dynamic_flag_spec='$wl-E' 13813 13814 # hardcode_minus_L: Not really in the search PATH, 13815 # but as the default location of the library. 13816 hardcode_minus_L=yes 13817 ;; 13818 esac 13819 fi 13820 ;; 13821 13822 irix5* | irix6* | nonstopux*) 13823 if test yes = "$GCC"; then 13824 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' 13825 # Try to use the -exported_symbol ld option, if it does not 13826 # work, assume that -exports_file does not work either and 13827 # implicitly export all symbols. 13828 # This should be the same for all languages, so no per-tag cache variable. 13829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 13830$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 13831if ${lt_cv_irix_exported_symbol+:} false; then : 13832 $as_echo_n "(cached) " >&6 13833else 13834 save_LDFLAGS=$LDFLAGS 13835 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 13836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13837/* end confdefs.h. */ 13838int foo (void) { return 0; } 13839_ACEOF 13840if ac_fn_c_try_link "$LINENO"; then : 13841 lt_cv_irix_exported_symbol=yes 13842else 13843 lt_cv_irix_exported_symbol=no 13844fi 13845rm -f core conftest.err conftest.$ac_objext \ 13846 conftest$ac_exeext conftest.$ac_ext 13847 LDFLAGS=$save_LDFLAGS 13848fi 13849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 13850$as_echo "$lt_cv_irix_exported_symbol" >&6; } 13851 if test yes = "$lt_cv_irix_exported_symbol"; then 13852 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib' 13853 fi 13854 else 13855 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' 13856 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib' 13857 fi 13858 archive_cmds_need_lc='no' 13859 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 13860 hardcode_libdir_separator=: 13861 inherit_rpath=yes 13862 link_all_deplibs=yes 13863 ;; 13864 13865 linux*) 13866 case $cc_basename in 13867 tcc*) 13868 # Fabrice Bellard et al's Tiny C Compiler 13869 ld_shlibs=yes 13870 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 13871 ;; 13872 esac 13873 ;; 13874 13875 netbsd*) 13876 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 13877 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 13878 else 13879 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 13880 fi 13881 hardcode_libdir_flag_spec='-R$libdir' 13882 hardcode_direct=yes 13883 hardcode_shlibpath_var=no 13884 ;; 13885 13886 newsos6) 13887 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13888 hardcode_direct=yes 13889 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 13890 hardcode_libdir_separator=: 13891 hardcode_shlibpath_var=no 13892 ;; 13893 13894 *nto* | *qnx*) 13895 ;; 13896 13897 openbsd* | bitrig*) 13898 if test -f /usr/libexec/ld.so; then 13899 hardcode_direct=yes 13900 hardcode_shlibpath_var=no 13901 hardcode_direct_absolute=yes 13902 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 13903 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 13904 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 13905 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 13906 export_dynamic_flag_spec='$wl-E' 13907 else 13908 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 13909 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 13910 fi 13911 else 13912 ld_shlibs=no 13913 fi 13914 ;; 13915 13916 os2*) 13917 hardcode_libdir_flag_spec='-L$libdir' 13918 hardcode_minus_L=yes 13919 allow_undefined_flag=unsupported 13920 shrext_cmds=.dll 13921 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 13922 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 13923 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 13924 $ECHO EXPORTS >> $output_objdir/$libname.def~ 13925 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 13926 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 13927 emximp -o $lib $output_objdir/$libname.def' 13928 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 13929 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 13930 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 13931 $ECHO EXPORTS >> $output_objdir/$libname.def~ 13932 prefix_cmds="$SED"~ 13933 if test EXPORTS = "`$SED 1q $export_symbols`"; then 13934 prefix_cmds="$prefix_cmds -e 1d"; 13935 fi~ 13936 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 13937 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 13938 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 13939 emximp -o $lib $output_objdir/$libname.def' 13940 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 13941 enable_shared_with_static_runtimes=yes 13942 ;; 13943 13944 osf3*) 13945 if test yes = "$GCC"; then 13946 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 13947 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' 13948 else 13949 allow_undefined_flag=' -expect_unresolved \*' 13950 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' 13951 fi 13952 archive_cmds_need_lc='no' 13953 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 13954 hardcode_libdir_separator=: 13955 ;; 13956 13957 osf4* | osf5*) # as osf3* with the addition of -msym flag 13958 if test yes = "$GCC"; then 13959 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 13960 archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' 13961 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 13962 else 13963 allow_undefined_flag=' -expect_unresolved \*' 13964 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' 13965 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ 13966 $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp' 13967 13968 # Both c and cxx compiler support -rpath directly 13969 hardcode_libdir_flag_spec='-rpath $libdir' 13970 fi 13971 archive_cmds_need_lc='no' 13972 hardcode_libdir_separator=: 13973 ;; 13974 13975 solaris*) 13976 no_undefined_flag=' -z defs' 13977 if test yes = "$GCC"; then 13978 wlarc='$wl' 13979 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 13980 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13981 $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 13982 else 13983 case `$CC -V 2>&1` in 13984 *"Compilers 5.0"*) 13985 wlarc='' 13986 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 13987 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13988 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 13989 ;; 13990 *) 13991 wlarc='$wl' 13992 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 13993 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13994 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 13995 ;; 13996 esac 13997 fi 13998 hardcode_libdir_flag_spec='-R$libdir' 13999 hardcode_shlibpath_var=no 14000 case $host_os in 14001 solaris2.[0-5] | solaris2.[0-5].*) ;; 14002 *) 14003 # The compiler driver will combine and reorder linker options, 14004 # but understands '-z linker_flag'. GCC discards it without '$wl', 14005 # but is careful enough not to reorder. 14006 # Supported since Solaris 2.6 (maybe 2.5.1?) 14007 if test yes = "$GCC"; then 14008 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 14009 else 14010 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 14011 fi 14012 ;; 14013 esac 14014 link_all_deplibs=yes 14015 ;; 14016 14017 sunos4*) 14018 if test sequent = "$host_vendor"; then 14019 # Use $CC to link under sequent, because it throws in some extra .o 14020 # files that make .init and .fini sections work. 14021 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 14022 else 14023 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 14024 fi 14025 hardcode_libdir_flag_spec='-L$libdir' 14026 hardcode_direct=yes 14027 hardcode_minus_L=yes 14028 hardcode_shlibpath_var=no 14029 ;; 14030 14031 sysv4) 14032 case $host_vendor in 14033 sni) 14034 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14035 hardcode_direct=yes # is this really true??? 14036 ;; 14037 siemens) 14038 ## LD is ld it makes a PLAMLIB 14039 ## CC just makes a GrossModule. 14040 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 14041 reload_cmds='$CC -r -o $output$reload_objs' 14042 hardcode_direct=no 14043 ;; 14044 motorola) 14045 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14046 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 14047 ;; 14048 esac 14049 runpath_var='LD_RUN_PATH' 14050 hardcode_shlibpath_var=no 14051 ;; 14052 14053 sysv4.3*) 14054 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14055 hardcode_shlibpath_var=no 14056 export_dynamic_flag_spec='-Bexport' 14057 ;; 14058 14059 sysv4*MP*) 14060 if test -d /usr/nec; then 14061 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14062 hardcode_shlibpath_var=no 14063 runpath_var=LD_RUN_PATH 14064 hardcode_runpath_var=yes 14065 ld_shlibs=yes 14066 fi 14067 ;; 14068 14069 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 14070 no_undefined_flag='$wl-z,text' 14071 archive_cmds_need_lc=no 14072 hardcode_shlibpath_var=no 14073 runpath_var='LD_RUN_PATH' 14074 14075 if test yes = "$GCC"; then 14076 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14077 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14078 else 14079 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14080 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14081 fi 14082 ;; 14083 14084 sysv5* | sco3.2v5* | sco5v6*) 14085 # Note: We CANNOT use -z defs as we might desire, because we do not 14086 # link with -lc, and that would cause any symbols used from libc to 14087 # always be unresolved, which means just about no library would 14088 # ever link correctly. If we're not using GNU ld we use -z text 14089 # though, which does catch some bad symbols but isn't as heavy-handed 14090 # as -z defs. 14091 no_undefined_flag='$wl-z,text' 14092 allow_undefined_flag='$wl-z,nodefs' 14093 archive_cmds_need_lc=no 14094 hardcode_shlibpath_var=no 14095 hardcode_libdir_flag_spec='$wl-R,$libdir' 14096 hardcode_libdir_separator=':' 14097 link_all_deplibs=yes 14098 export_dynamic_flag_spec='$wl-Bexport' 14099 runpath_var='LD_RUN_PATH' 14100 14101 if test yes = "$GCC"; then 14102 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14103 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14104 else 14105 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14106 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14107 fi 14108 ;; 14109 14110 uts4*) 14111 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14112 hardcode_libdir_flag_spec='-L$libdir' 14113 hardcode_shlibpath_var=no 14114 ;; 14115 14116 *) 14117 ld_shlibs=no 14118 ;; 14119 esac 14120 14121 if test sni = "$host_vendor"; then 14122 case $host in 14123 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 14124 export_dynamic_flag_spec='$wl-Blargedynsym' 14125 ;; 14126 esac 14127 fi 14128 fi 14129 14130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 14131$as_echo "$ld_shlibs" >&6; } 14132test no = "$ld_shlibs" && can_build_shared=no 14133 14134with_gnu_ld=$with_gnu_ld 14135 14136 14137 14138 14139 14140 14141 14142 14143 14144 14145 14146 14147 14148 14149 14150# 14151# Do we need to explicitly link libc? 14152# 14153case "x$archive_cmds_need_lc" in 14154x|xyes) 14155 # Assume -lc should be added 14156 archive_cmds_need_lc=yes 14157 14158 if test yes,yes = "$GCC,$enable_shared"; then 14159 case $archive_cmds in 14160 *'~'*) 14161 # FIXME: we may have to deal with multi-command sequences. 14162 ;; 14163 '$CC '*) 14164 # Test whether the compiler implicitly links with -lc since on some 14165 # systems, -lgcc has to come before -lc. If gcc already passes -lc 14166 # to ld, don't add -lc before -lgcc. 14167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 14168$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 14169if ${lt_cv_archive_cmds_need_lc+:} false; then : 14170 $as_echo_n "(cached) " >&6 14171else 14172 $RM conftest* 14173 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14174 14175 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14176 (eval $ac_compile) 2>&5 14177 ac_status=$? 14178 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14179 test $ac_status = 0; } 2>conftest.err; then 14180 soname=conftest 14181 lib=conftest 14182 libobjs=conftest.$ac_objext 14183 deplibs= 14184 wl=$lt_prog_compiler_wl 14185 pic_flag=$lt_prog_compiler_pic 14186 compiler_flags=-v 14187 linker_flags=-v 14188 verstring= 14189 output_objdir=. 14190 libname=conftest 14191 lt_save_allow_undefined_flag=$allow_undefined_flag 14192 allow_undefined_flag= 14193 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 14194 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 14195 ac_status=$? 14196 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14197 test $ac_status = 0; } 14198 then 14199 lt_cv_archive_cmds_need_lc=no 14200 else 14201 lt_cv_archive_cmds_need_lc=yes 14202 fi 14203 allow_undefined_flag=$lt_save_allow_undefined_flag 14204 else 14205 cat conftest.err 1>&5 14206 fi 14207 $RM conftest* 14208 14209fi 14210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 14211$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 14212 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 14213 ;; 14214 esac 14215 fi 14216 ;; 14217esac 14218 14219 14220 14221 14222 14223 14224 14225 14226 14227 14228 14229 14230 14231 14232 14233 14234 14235 14236 14237 14238 14239 14240 14241 14242 14243 14244 14245 14246 14247 14248 14249 14250 14251 14252 14253 14254 14255 14256 14257 14258 14259 14260 14261 14262 14263 14264 14265 14266 14267 14268 14269 14270 14271 14272 14273 14274 14275 14276 14277 14278 14279 14280 14281 14282 14283 14284 14285 14286 14287 14288 14289 14290 14291 14292 14293 14294 14295 14296 14297 14298 14299 14300 14301 14302 14303 14304 14305 14306 14307 14308 14309 14310 14311 14312 14313 14314 14315 14316 14317 14318 14319 14320 14321 14322 14323 14324 14325 14326 14327 14328 14329 14330 14331 14332 14333 14334 14335 14336 14337 14338 14339 14340 14341 14342 14343 14344 14345 14346 14347 14348 14349 14350 14351 14352 14353 14354 14355 14356 14357 14358 14359 14360 14361 14362 14363 14364 14365 14366 14367 14368 14369 14370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 14371$as_echo_n "checking dynamic linker characteristics... " >&6; } 14372 14373if test yes = "$GCC"; then 14374 case $host_os in 14375 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 14376 *) lt_awk_arg='/^libraries:/' ;; 14377 esac 14378 case $host_os in 14379 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 14380 *) lt_sed_strip_eq='s|=/|/|g' ;; 14381 esac 14382 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 14383 case $lt_search_path_spec in 14384 *\;*) 14385 # if the path contains ";" then we assume it to be the separator 14386 # otherwise default to the standard path separator (i.e. ":") - it is 14387 # assumed that no part of a normal pathname contains ";" but that should 14388 # okay in the real world where ";" in dirpaths is itself problematic. 14389 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 14390 ;; 14391 *) 14392 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 14393 ;; 14394 esac 14395 # Ok, now we have the path, separated by spaces, we can step through it 14396 # and add multilib dir if necessary... 14397 lt_tmp_lt_search_path_spec= 14398 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 14399 # ...but if some path component already ends with the multilib dir we assume 14400 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 14401 case "$lt_multi_os_dir; $lt_search_path_spec " in 14402 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 14403 lt_multi_os_dir= 14404 ;; 14405 esac 14406 for lt_sys_path in $lt_search_path_spec; do 14407 if test -d "$lt_sys_path$lt_multi_os_dir"; then 14408 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 14409 elif test -n "$lt_multi_os_dir"; then 14410 test -d "$lt_sys_path" && \ 14411 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 14412 fi 14413 done 14414 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 14415BEGIN {RS = " "; FS = "/|\n";} { 14416 lt_foo = ""; 14417 lt_count = 0; 14418 for (lt_i = NF; lt_i > 0; lt_i--) { 14419 if ($lt_i != "" && $lt_i != ".") { 14420 if ($lt_i == "..") { 14421 lt_count++; 14422 } else { 14423 if (lt_count == 0) { 14424 lt_foo = "/" $lt_i lt_foo; 14425 } else { 14426 lt_count--; 14427 } 14428 } 14429 } 14430 } 14431 if (lt_foo != "") { lt_freq[lt_foo]++; } 14432 if (lt_freq[lt_foo] == 1) { print lt_foo; } 14433}'` 14434 # AWK program above erroneously prepends '/' to C:/dos/paths 14435 # for these hosts. 14436 case $host_os in 14437 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 14438 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 14439 esac 14440 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 14441else 14442 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 14443fi 14444library_names_spec= 14445libname_spec='lib$name' 14446soname_spec= 14447shrext_cmds=.so 14448postinstall_cmds= 14449postuninstall_cmds= 14450finish_cmds= 14451finish_eval= 14452shlibpath_var= 14453shlibpath_overrides_runpath=unknown 14454version_type=none 14455dynamic_linker="$host_os ld.so" 14456sys_lib_dlsearch_path_spec="/lib /usr/lib" 14457need_lib_prefix=unknown 14458hardcode_into_libs=no 14459 14460# when you set need_version to no, make sure it does not cause -set_version 14461# flags to be left without arguments 14462need_version=unknown 14463 14464 14465 14466case $host_os in 14467aix3*) 14468 version_type=linux # correct to gnu/linux during the next big refactor 14469 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 14470 shlibpath_var=LIBPATH 14471 14472 # AIX 3 has no versioning support, so we append a major version to the name. 14473 soname_spec='$libname$release$shared_ext$major' 14474 ;; 14475 14476aix[4-9]*) 14477 version_type=linux # correct to gnu/linux during the next big refactor 14478 need_lib_prefix=no 14479 need_version=no 14480 hardcode_into_libs=yes 14481 if test ia64 = "$host_cpu"; then 14482 # AIX 5 supports IA64 14483 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 14484 shlibpath_var=LD_LIBRARY_PATH 14485 else 14486 # With GCC up to 2.95.x, collect2 would create an import file 14487 # for dependence libraries. The import file would start with 14488 # the line '#! .'. This would cause the generated library to 14489 # depend on '.', always an invalid library. This was fixed in 14490 # development snapshots of GCC prior to 3.0. 14491 case $host_os in 14492 aix4 | aix4.[01] | aix4.[01].*) 14493 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 14494 echo ' yes ' 14495 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 14496 : 14497 else 14498 can_build_shared=no 14499 fi 14500 ;; 14501 esac 14502 # Using Import Files as archive members, it is possible to support 14503 # filename-based versioning of shared library archives on AIX. While 14504 # this would work for both with and without runtime linking, it will 14505 # prevent static linking of such archives. So we do filename-based 14506 # shared library versioning with .so extension only, which is used 14507 # when both runtime linking and shared linking is enabled. 14508 # Unfortunately, runtime linking may impact performance, so we do 14509 # not want this to be the default eventually. Also, we use the 14510 # versioned .so libs for executables only if there is the -brtl 14511 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 14512 # To allow for filename-based versioning support, we need to create 14513 # libNAME.so.V as an archive file, containing: 14514 # *) an Import File, referring to the versioned filename of the 14515 # archive as well as the shared archive member, telling the 14516 # bitwidth (32 or 64) of that shared object, and providing the 14517 # list of exported symbols of that shared object, eventually 14518 # decorated with the 'weak' keyword 14519 # *) the shared object with the F_LOADONLY flag set, to really avoid 14520 # it being seen by the linker. 14521 # At run time we better use the real file rather than another symlink, 14522 # but for link time we create the symlink libNAME.so -> libNAME.so.V 14523 14524 case $with_aix_soname,$aix_use_runtimelinking in 14525 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 14526 # soname into executable. Probably we can add versioning support to 14527 # collect2, so additional links can be useful in future. 14528 aix,yes) # traditional libtool 14529 dynamic_linker='AIX unversionable lib.so' 14530 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 14531 # instead of lib<name>.a to let people know that these are not 14532 # typical AIX shared libraries. 14533 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14534 ;; 14535 aix,no) # traditional AIX only 14536 dynamic_linker='AIX lib.a(lib.so.V)' 14537 # We preserve .a as extension for shared libraries through AIX4.2 14538 # and later when we are not doing run time linking. 14539 library_names_spec='$libname$release.a $libname.a' 14540 soname_spec='$libname$release$shared_ext$major' 14541 ;; 14542 svr4,*) # full svr4 only 14543 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 14544 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 14545 # We do not specify a path in Import Files, so LIBPATH fires. 14546 shlibpath_overrides_runpath=yes 14547 ;; 14548 *,yes) # both, prefer svr4 14549 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 14550 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 14551 # unpreferred sharedlib libNAME.a needs extra handling 14552 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' 14553 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' 14554 # We do not specify a path in Import Files, so LIBPATH fires. 14555 shlibpath_overrides_runpath=yes 14556 ;; 14557 *,no) # both, prefer aix 14558 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 14559 library_names_spec='$libname$release.a $libname.a' 14560 soname_spec='$libname$release$shared_ext$major' 14561 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 14562 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' 14563 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' 14564 ;; 14565 esac 14566 shlibpath_var=LIBPATH 14567 fi 14568 ;; 14569 14570amigaos*) 14571 case $host_cpu in 14572 powerpc) 14573 # Since July 2007 AmigaOS4 officially supports .so libraries. 14574 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 14575 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14576 ;; 14577 m68k) 14578 library_names_spec='$libname.ixlibrary $libname.a' 14579 # Create ${libname}_ixlibrary.a entries in /sys/libs. 14580 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 14581 ;; 14582 esac 14583 ;; 14584 14585beos*) 14586 library_names_spec='$libname$shared_ext' 14587 dynamic_linker="$host_os ld.so" 14588 shlibpath_var=LIBRARY_PATH 14589 ;; 14590 14591bsdi[45]*) 14592 version_type=linux # correct to gnu/linux during the next big refactor 14593 need_version=no 14594 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14595 soname_spec='$libname$release$shared_ext$major' 14596 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 14597 shlibpath_var=LD_LIBRARY_PATH 14598 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 14599 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 14600 # the default ld.so.conf also contains /usr/contrib/lib and 14601 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 14602 # libtool to hard-code these into programs 14603 ;; 14604 14605cygwin* | mingw* | pw32* | cegcc*) 14606 version_type=windows 14607 shrext_cmds=.dll 14608 need_version=no 14609 need_lib_prefix=no 14610 14611 case $GCC,$cc_basename in 14612 yes,*) 14613 # gcc 14614 library_names_spec='$libname.dll.a' 14615 # DLL is installed to $(libdir)/../bin by postinstall_cmds 14616 postinstall_cmds='base_file=`basename \$file`~ 14617 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 14618 dldir=$destdir/`dirname \$dlpath`~ 14619 test -d \$dldir || mkdir -p \$dldir~ 14620 $install_prog $dir/$dlname \$dldir/$dlname~ 14621 chmod a+x \$dldir/$dlname~ 14622 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 14623 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 14624 fi' 14625 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 14626 dlpath=$dir/\$dldll~ 14627 $RM \$dlpath' 14628 shlibpath_overrides_runpath=yes 14629 14630 case $host_os in 14631 cygwin*) 14632 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 14633 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 14634 14635 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 14636 ;; 14637 mingw* | cegcc*) 14638 # MinGW DLLs use traditional 'lib' prefix 14639 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 14640 ;; 14641 pw32*) 14642 # pw32 DLLs use 'pw' prefix rather than 'lib' 14643 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 14644 ;; 14645 esac 14646 dynamic_linker='Win32 ld.exe' 14647 ;; 14648 14649 *,cl*) 14650 # Native MSVC 14651 libname_spec='$name' 14652 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 14653 library_names_spec='$libname.dll.lib' 14654 14655 case $build_os in 14656 mingw*) 14657 sys_lib_search_path_spec= 14658 lt_save_ifs=$IFS 14659 IFS=';' 14660 for lt_path in $LIB 14661 do 14662 IFS=$lt_save_ifs 14663 # Let DOS variable expansion print the short 8.3 style file name. 14664 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 14665 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 14666 done 14667 IFS=$lt_save_ifs 14668 # Convert to MSYS style. 14669 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 14670 ;; 14671 cygwin*) 14672 # Convert to unix form, then to dos form, then back to unix form 14673 # but this time dos style (no spaces!) so that the unix form looks 14674 # like /cygdrive/c/PROGRA~1:/cygdr... 14675 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 14676 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 14677 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 14678 ;; 14679 *) 14680 sys_lib_search_path_spec=$LIB 14681 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 14682 # It is most probably a Windows format PATH. 14683 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 14684 else 14685 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 14686 fi 14687 # FIXME: find the short name or the path components, as spaces are 14688 # common. (e.g. "Program Files" -> "PROGRA~1") 14689 ;; 14690 esac 14691 14692 # DLL is installed to $(libdir)/../bin by postinstall_cmds 14693 postinstall_cmds='base_file=`basename \$file`~ 14694 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 14695 dldir=$destdir/`dirname \$dlpath`~ 14696 test -d \$dldir || mkdir -p \$dldir~ 14697 $install_prog $dir/$dlname \$dldir/$dlname' 14698 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 14699 dlpath=$dir/\$dldll~ 14700 $RM \$dlpath' 14701 shlibpath_overrides_runpath=yes 14702 dynamic_linker='Win32 link.exe' 14703 ;; 14704 14705 *) 14706 # Assume MSVC wrapper 14707 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 14708 dynamic_linker='Win32 ld.exe' 14709 ;; 14710 esac 14711 # FIXME: first we should search . and the directory the executable is in 14712 shlibpath_var=PATH 14713 ;; 14714 14715darwin* | rhapsody*) 14716 dynamic_linker="$host_os dyld" 14717 version_type=darwin 14718 need_lib_prefix=no 14719 need_version=no 14720 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 14721 soname_spec='$libname$release$major$shared_ext' 14722 shlibpath_overrides_runpath=yes 14723 shlibpath_var=DYLD_LIBRARY_PATH 14724 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 14725 14726 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 14727 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 14728 ;; 14729 14730dgux*) 14731 version_type=linux # correct to gnu/linux during the next big refactor 14732 need_lib_prefix=no 14733 need_version=no 14734 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14735 soname_spec='$libname$release$shared_ext$major' 14736 shlibpath_var=LD_LIBRARY_PATH 14737 ;; 14738 14739freebsd* | dragonfly*) 14740 # DragonFly does not have aout. When/if they implement a new 14741 # versioning mechanism, adjust this. 14742 if test -x /usr/bin/objformat; then 14743 objformat=`/usr/bin/objformat` 14744 else 14745 case $host_os in 14746 freebsd[23].*) objformat=aout ;; 14747 *) objformat=elf ;; 14748 esac 14749 fi 14750 version_type=freebsd-$objformat 14751 case $version_type in 14752 freebsd-elf*) 14753 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14754 soname_spec='$libname$release$shared_ext$major' 14755 need_version=no 14756 need_lib_prefix=no 14757 ;; 14758 freebsd-*) 14759 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 14760 need_version=yes 14761 ;; 14762 esac 14763 shlibpath_var=LD_LIBRARY_PATH 14764 case $host_os in 14765 freebsd2.*) 14766 shlibpath_overrides_runpath=yes 14767 ;; 14768 freebsd3.[01]* | freebsdelf3.[01]*) 14769 shlibpath_overrides_runpath=yes 14770 hardcode_into_libs=yes 14771 ;; 14772 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 14773 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 14774 shlibpath_overrides_runpath=no 14775 hardcode_into_libs=yes 14776 ;; 14777 *) # from 4.6 on, and DragonFly 14778 shlibpath_overrides_runpath=yes 14779 hardcode_into_libs=yes 14780 ;; 14781 esac 14782 ;; 14783 14784haiku*) 14785 version_type=linux # correct to gnu/linux during the next big refactor 14786 need_lib_prefix=no 14787 need_version=no 14788 dynamic_linker="$host_os runtime_loader" 14789 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14790 soname_spec='$libname$release$shared_ext$major' 14791 shlibpath_var=LIBRARY_PATH 14792 shlibpath_overrides_runpath=no 14793 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 14794 hardcode_into_libs=yes 14795 ;; 14796 14797hpux9* | hpux10* | hpux11*) 14798 # Give a soname corresponding to the major version so that dld.sl refuses to 14799 # link against other versions. 14800 version_type=sunos 14801 need_lib_prefix=no 14802 need_version=no 14803 case $host_cpu in 14804 ia64*) 14805 shrext_cmds='.so' 14806 hardcode_into_libs=yes 14807 dynamic_linker="$host_os dld.so" 14808 shlibpath_var=LD_LIBRARY_PATH 14809 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 14810 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14811 soname_spec='$libname$release$shared_ext$major' 14812 if test 32 = "$HPUX_IA64_MODE"; then 14813 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 14814 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 14815 else 14816 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 14817 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 14818 fi 14819 ;; 14820 hppa*64*) 14821 shrext_cmds='.sl' 14822 hardcode_into_libs=yes 14823 dynamic_linker="$host_os dld.sl" 14824 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 14825 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 14826 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14827 soname_spec='$libname$release$shared_ext$major' 14828 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 14829 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 14830 ;; 14831 *) 14832 shrext_cmds='.sl' 14833 dynamic_linker="$host_os dld.sl" 14834 shlibpath_var=SHLIB_PATH 14835 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 14836 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14837 soname_spec='$libname$release$shared_ext$major' 14838 ;; 14839 esac 14840 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 14841 postinstall_cmds='chmod 555 $lib' 14842 # or fails outright, so override atomically: 14843 install_override_mode=555 14844 ;; 14845 14846interix[3-9]*) 14847 version_type=linux # correct to gnu/linux during the next big refactor 14848 need_lib_prefix=no 14849 need_version=no 14850 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14851 soname_spec='$libname$release$shared_ext$major' 14852 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 14853 shlibpath_var=LD_LIBRARY_PATH 14854 shlibpath_overrides_runpath=no 14855 hardcode_into_libs=yes 14856 ;; 14857 14858irix5* | irix6* | nonstopux*) 14859 case $host_os in 14860 nonstopux*) version_type=nonstopux ;; 14861 *) 14862 if test yes = "$lt_cv_prog_gnu_ld"; then 14863 version_type=linux # correct to gnu/linux during the next big refactor 14864 else 14865 version_type=irix 14866 fi ;; 14867 esac 14868 need_lib_prefix=no 14869 need_version=no 14870 soname_spec='$libname$release$shared_ext$major' 14871 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 14872 case $host_os in 14873 irix5* | nonstopux*) 14874 libsuff= shlibsuff= 14875 ;; 14876 *) 14877 case $LD in # libtool.m4 will add one of these switches to LD 14878 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 14879 libsuff= shlibsuff= libmagic=32-bit;; 14880 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 14881 libsuff=32 shlibsuff=N32 libmagic=N32;; 14882 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 14883 libsuff=64 shlibsuff=64 libmagic=64-bit;; 14884 *) libsuff= shlibsuff= libmagic=never-match;; 14885 esac 14886 ;; 14887 esac 14888 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 14889 shlibpath_overrides_runpath=no 14890 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 14891 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 14892 hardcode_into_libs=yes 14893 ;; 14894 14895# No shared lib support for Linux oldld, aout, or coff. 14896linux*oldld* | linux*aout* | linux*coff*) 14897 dynamic_linker=no 14898 ;; 14899 14900linux*android*) 14901 version_type=none # Android doesn't support versioned libraries. 14902 need_lib_prefix=no 14903 need_version=no 14904 library_names_spec='$libname$release$shared_ext' 14905 soname_spec='$libname$release$shared_ext' 14906 finish_cmds= 14907 shlibpath_var=LD_LIBRARY_PATH 14908 shlibpath_overrides_runpath=yes 14909 14910 # This implies no fast_install, which is unacceptable. 14911 # Some rework will be needed to allow for fast_install 14912 # before this can be enabled. 14913 hardcode_into_libs=yes 14914 14915 dynamic_linker='Android linker' 14916 # Don't embed -rpath directories since the linker doesn't support them. 14917 hardcode_libdir_flag_spec='-L$libdir' 14918 ;; 14919 14920# This must be glibc/ELF. 14921linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 14922 version_type=linux # correct to gnu/linux during the next big refactor 14923 need_lib_prefix=no 14924 need_version=no 14925 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14926 soname_spec='$libname$release$shared_ext$major' 14927 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 14928 shlibpath_var=LD_LIBRARY_PATH 14929 shlibpath_overrides_runpath=no 14930 14931 # Some binutils ld are patched to set DT_RUNPATH 14932 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 14933 $as_echo_n "(cached) " >&6 14934else 14935 lt_cv_shlibpath_overrides_runpath=no 14936 save_LDFLAGS=$LDFLAGS 14937 save_libdir=$libdir 14938 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 14939 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 14940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14941/* end confdefs.h. */ 14942 14943int 14944main () 14945{ 14946 14947 ; 14948 return 0; 14949} 14950_ACEOF 14951if ac_fn_c_try_link "$LINENO"; then : 14952 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 14953 lt_cv_shlibpath_overrides_runpath=yes 14954fi 14955fi 14956rm -f core conftest.err conftest.$ac_objext \ 14957 conftest$ac_exeext conftest.$ac_ext 14958 LDFLAGS=$save_LDFLAGS 14959 libdir=$save_libdir 14960 14961fi 14962 14963 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 14964 14965 # This implies no fast_install, which is unacceptable. 14966 # Some rework will be needed to allow for fast_install 14967 # before this can be enabled. 14968 hardcode_into_libs=yes 14969 14970 # Ideally, we could use ldconfig to report *all* directores which are 14971 # searched for libraries, however this is still not possible. Aside from not 14972 # being certain /sbin/ldconfig is available, command 14973 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 14974 # even though it is searched at run-time. Try to do the best guess by 14975 # appending ld.so.conf contents (and includes) to the search path. 14976 if test -f /etc/ld.so.conf; then 14977 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` 14978 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 14979 fi 14980 14981 # We used to test for /lib/ld.so.1 and disable shared libraries on 14982 # powerpc, because MkLinux only supported shared libraries with the 14983 # GNU dynamic linker. Since this was broken with cross compilers, 14984 # most powerpc-linux boxes support dynamic linking these days and 14985 # people can always --disable-shared, the test was removed, and we 14986 # assume the GNU/Linux dynamic linker is in use. 14987 dynamic_linker='GNU/Linux ld.so' 14988 ;; 14989 14990netbsd*) 14991 version_type=sunos 14992 need_lib_prefix=no 14993 need_version=no 14994 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 14995 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 14996 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 14997 dynamic_linker='NetBSD (a.out) ld.so' 14998 else 14999 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15000 soname_spec='$libname$release$shared_ext$major' 15001 dynamic_linker='NetBSD ld.elf_so' 15002 fi 15003 shlibpath_var=LD_LIBRARY_PATH 15004 shlibpath_overrides_runpath=yes 15005 hardcode_into_libs=yes 15006 ;; 15007 15008newsos6) 15009 version_type=linux # correct to gnu/linux during the next big refactor 15010 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15011 shlibpath_var=LD_LIBRARY_PATH 15012 shlibpath_overrides_runpath=yes 15013 ;; 15014 15015*nto* | *qnx*) 15016 version_type=qnx 15017 need_lib_prefix=no 15018 need_version=no 15019 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15020 soname_spec='$libname$release$shared_ext$major' 15021 shlibpath_var=LD_LIBRARY_PATH 15022 shlibpath_overrides_runpath=no 15023 hardcode_into_libs=yes 15024 dynamic_linker='ldqnx.so' 15025 ;; 15026 15027openbsd* | bitrig*) 15028 version_type=sunos 15029 sys_lib_dlsearch_path_spec=/usr/lib 15030 need_lib_prefix=no 15031 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 15032 need_version=no 15033 else 15034 need_version=yes 15035 fi 15036 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 15037 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15038 shlibpath_var=LD_LIBRARY_PATH 15039 shlibpath_overrides_runpath=yes 15040 ;; 15041 15042os2*) 15043 libname_spec='$name' 15044 version_type=windows 15045 shrext_cmds=.dll 15046 need_version=no 15047 need_lib_prefix=no 15048 # OS/2 can only load a DLL with a base name of 8 characters or less. 15049 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 15050 v=$($ECHO $release$versuffix | tr -d .-); 15051 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 15052 $ECHO $n$v`$shared_ext' 15053 library_names_spec='${libname}_dll.$libext' 15054 dynamic_linker='OS/2 ld.exe' 15055 shlibpath_var=BEGINLIBPATH 15056 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 15057 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15058 postinstall_cmds='base_file=`basename \$file`~ 15059 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 15060 dldir=$destdir/`dirname \$dlpath`~ 15061 test -d \$dldir || mkdir -p \$dldir~ 15062 $install_prog $dir/$dlname \$dldir/$dlname~ 15063 chmod a+x \$dldir/$dlname~ 15064 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 15065 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 15066 fi' 15067 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 15068 dlpath=$dir/\$dldll~ 15069 $RM \$dlpath' 15070 ;; 15071 15072osf3* | osf4* | osf5*) 15073 version_type=osf 15074 need_lib_prefix=no 15075 need_version=no 15076 soname_spec='$libname$release$shared_ext$major' 15077 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15078 shlibpath_var=LD_LIBRARY_PATH 15079 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 15080 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15081 ;; 15082 15083rdos*) 15084 dynamic_linker=no 15085 ;; 15086 15087solaris*) 15088 version_type=linux # correct to gnu/linux during the next big refactor 15089 need_lib_prefix=no 15090 need_version=no 15091 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15092 soname_spec='$libname$release$shared_ext$major' 15093 shlibpath_var=LD_LIBRARY_PATH 15094 shlibpath_overrides_runpath=yes 15095 hardcode_into_libs=yes 15096 # ldd complains unless libraries are executable 15097 postinstall_cmds='chmod +x $lib' 15098 ;; 15099 15100sunos4*) 15101 version_type=sunos 15102 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 15103 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 15104 shlibpath_var=LD_LIBRARY_PATH 15105 shlibpath_overrides_runpath=yes 15106 if test yes = "$with_gnu_ld"; then 15107 need_lib_prefix=no 15108 fi 15109 need_version=yes 15110 ;; 15111 15112sysv4 | sysv4.3*) 15113 version_type=linux # correct to gnu/linux during the next big refactor 15114 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15115 soname_spec='$libname$release$shared_ext$major' 15116 shlibpath_var=LD_LIBRARY_PATH 15117 case $host_vendor in 15118 sni) 15119 shlibpath_overrides_runpath=no 15120 need_lib_prefix=no 15121 runpath_var=LD_RUN_PATH 15122 ;; 15123 siemens) 15124 need_lib_prefix=no 15125 ;; 15126 motorola) 15127 need_lib_prefix=no 15128 need_version=no 15129 shlibpath_overrides_runpath=no 15130 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 15131 ;; 15132 esac 15133 ;; 15134 15135sysv4*MP*) 15136 if test -d /usr/nec; then 15137 version_type=linux # correct to gnu/linux during the next big refactor 15138 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 15139 soname_spec='$libname$shared_ext.$major' 15140 shlibpath_var=LD_LIBRARY_PATH 15141 fi 15142 ;; 15143 15144sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 15145 version_type=sco 15146 need_lib_prefix=no 15147 need_version=no 15148 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 15149 soname_spec='$libname$release$shared_ext$major' 15150 shlibpath_var=LD_LIBRARY_PATH 15151 shlibpath_overrides_runpath=yes 15152 hardcode_into_libs=yes 15153 if test yes = "$with_gnu_ld"; then 15154 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 15155 else 15156 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 15157 case $host_os in 15158 sco3.2v5*) 15159 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 15160 ;; 15161 esac 15162 fi 15163 sys_lib_dlsearch_path_spec='/usr/lib' 15164 ;; 15165 15166tpf*) 15167 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 15168 version_type=linux # correct to gnu/linux during the next big refactor 15169 need_lib_prefix=no 15170 need_version=no 15171 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15172 shlibpath_var=LD_LIBRARY_PATH 15173 shlibpath_overrides_runpath=no 15174 hardcode_into_libs=yes 15175 ;; 15176 15177uts4*) 15178 version_type=linux # correct to gnu/linux during the next big refactor 15179 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15180 soname_spec='$libname$release$shared_ext$major' 15181 shlibpath_var=LD_LIBRARY_PATH 15182 ;; 15183 15184*) 15185 dynamic_linker=no 15186 ;; 15187esac 15188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 15189$as_echo "$dynamic_linker" >&6; } 15190test no = "$dynamic_linker" && can_build_shared=no 15191 15192variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 15193if test yes = "$GCC"; then 15194 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 15195fi 15196 15197if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 15198 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 15199fi 15200 15201if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 15202 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 15203fi 15204 15205# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 15206configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 15207 15208# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 15209func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 15210 15211# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 15212configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 15213 15214 15215 15216 15217 15218 15219 15220 15221 15222 15223 15224 15225 15226 15227 15228 15229 15230 15231 15232 15233 15234 15235 15236 15237 15238 15239 15240 15241 15242 15243 15244 15245 15246 15247 15248 15249 15250 15251 15252 15253 15254 15255 15256 15257 15258 15259 15260 15261 15262 15263 15264 15265 15266 15267 15268 15269 15270 15271 15272 15273 15274 15275 15276 15277 15278 15279 15280 15281 15282 15283 15284 15285 15286 15287 15288 15289 15290 15291 15292 15293 15294 15295 15296 15297 15298 15299 15300 15301 15302 15303 15304 15305 15306 15307 15308 15309 15310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 15311$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 15312hardcode_action= 15313if test -n "$hardcode_libdir_flag_spec" || 15314 test -n "$runpath_var" || 15315 test yes = "$hardcode_automatic"; then 15316 15317 # We can hardcode non-existent directories. 15318 if test no != "$hardcode_direct" && 15319 # If the only mechanism to avoid hardcoding is shlibpath_var, we 15320 # have to relink, otherwise we might link with an installed library 15321 # when we should be linking with a yet-to-be-installed one 15322 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 15323 test no != "$hardcode_minus_L"; then 15324 # Linking always hardcodes the temporary library directory. 15325 hardcode_action=relink 15326 else 15327 # We can link without hardcoding, and we can hardcode nonexisting dirs. 15328 hardcode_action=immediate 15329 fi 15330else 15331 # We cannot hardcode anything, or else we can only hardcode existing 15332 # directories. 15333 hardcode_action=unsupported 15334fi 15335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 15336$as_echo "$hardcode_action" >&6; } 15337 15338if test relink = "$hardcode_action" || 15339 test yes = "$inherit_rpath"; then 15340 # Fast installation is not supported 15341 enable_fast_install=no 15342elif test yes = "$shlibpath_overrides_runpath" || 15343 test no = "$enable_shared"; then 15344 # Fast installation is not necessary 15345 enable_fast_install=needless 15346fi 15347 15348 15349 15350 15351 15352 15353 if test yes != "$enable_dlopen"; then 15354 enable_dlopen=unknown 15355 enable_dlopen_self=unknown 15356 enable_dlopen_self_static=unknown 15357else 15358 lt_cv_dlopen=no 15359 lt_cv_dlopen_libs= 15360 15361 case $host_os in 15362 beos*) 15363 lt_cv_dlopen=load_add_on 15364 lt_cv_dlopen_libs= 15365 lt_cv_dlopen_self=yes 15366 ;; 15367 15368 mingw* | pw32* | cegcc*) 15369 lt_cv_dlopen=LoadLibrary 15370 lt_cv_dlopen_libs= 15371 ;; 15372 15373 cygwin*) 15374 lt_cv_dlopen=dlopen 15375 lt_cv_dlopen_libs= 15376 ;; 15377 15378 darwin*) 15379 # if libdl is installed we need to link against it 15380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 15381$as_echo_n "checking for dlopen in -ldl... " >&6; } 15382if ${ac_cv_lib_dl_dlopen+:} false; then : 15383 $as_echo_n "(cached) " >&6 15384else 15385 ac_check_lib_save_LIBS=$LIBS 15386LIBS="-ldl $LIBS" 15387cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15388/* end confdefs.h. */ 15389 15390/* Override any GCC internal prototype to avoid an error. 15391 Use char because int might match the return type of a GCC 15392 builtin and then its argument prototype would still apply. */ 15393#ifdef __cplusplus 15394extern "C" 15395#endif 15396char dlopen (); 15397int 15398main () 15399{ 15400return dlopen (); 15401 ; 15402 return 0; 15403} 15404_ACEOF 15405if ac_fn_c_try_link "$LINENO"; then : 15406 ac_cv_lib_dl_dlopen=yes 15407else 15408 ac_cv_lib_dl_dlopen=no 15409fi 15410rm -f core conftest.err conftest.$ac_objext \ 15411 conftest$ac_exeext conftest.$ac_ext 15412LIBS=$ac_check_lib_save_LIBS 15413fi 15414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 15415$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 15416if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 15417 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 15418else 15419 15420 lt_cv_dlopen=dyld 15421 lt_cv_dlopen_libs= 15422 lt_cv_dlopen_self=yes 15423 15424fi 15425 15426 ;; 15427 15428 tpf*) 15429 # Don't try to run any link tests for TPF. We know it's impossible 15430 # because TPF is a cross-compiler, and we know how we open DSOs. 15431 lt_cv_dlopen=dlopen 15432 lt_cv_dlopen_libs= 15433 lt_cv_dlopen_self=no 15434 ;; 15435 15436 *) 15437 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 15438if test "x$ac_cv_func_shl_load" = xyes; then : 15439 lt_cv_dlopen=shl_load 15440else 15441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 15442$as_echo_n "checking for shl_load in -ldld... " >&6; } 15443if ${ac_cv_lib_dld_shl_load+:} false; then : 15444 $as_echo_n "(cached) " >&6 15445else 15446 ac_check_lib_save_LIBS=$LIBS 15447LIBS="-ldld $LIBS" 15448cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15449/* end confdefs.h. */ 15450 15451/* Override any GCC internal prototype to avoid an error. 15452 Use char because int might match the return type of a GCC 15453 builtin and then its argument prototype would still apply. */ 15454#ifdef __cplusplus 15455extern "C" 15456#endif 15457char shl_load (); 15458int 15459main () 15460{ 15461return shl_load (); 15462 ; 15463 return 0; 15464} 15465_ACEOF 15466if ac_fn_c_try_link "$LINENO"; then : 15467 ac_cv_lib_dld_shl_load=yes 15468else 15469 ac_cv_lib_dld_shl_load=no 15470fi 15471rm -f core conftest.err conftest.$ac_objext \ 15472 conftest$ac_exeext conftest.$ac_ext 15473LIBS=$ac_check_lib_save_LIBS 15474fi 15475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 15476$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 15477if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 15478 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 15479else 15480 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 15481if test "x$ac_cv_func_dlopen" = xyes; then : 15482 lt_cv_dlopen=dlopen 15483else 15484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 15485$as_echo_n "checking for dlopen in -ldl... " >&6; } 15486if ${ac_cv_lib_dl_dlopen+:} false; then : 15487 $as_echo_n "(cached) " >&6 15488else 15489 ac_check_lib_save_LIBS=$LIBS 15490LIBS="-ldl $LIBS" 15491cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15492/* end confdefs.h. */ 15493 15494/* Override any GCC internal prototype to avoid an error. 15495 Use char because int might match the return type of a GCC 15496 builtin and then its argument prototype would still apply. */ 15497#ifdef __cplusplus 15498extern "C" 15499#endif 15500char dlopen (); 15501int 15502main () 15503{ 15504return dlopen (); 15505 ; 15506 return 0; 15507} 15508_ACEOF 15509if ac_fn_c_try_link "$LINENO"; then : 15510 ac_cv_lib_dl_dlopen=yes 15511else 15512 ac_cv_lib_dl_dlopen=no 15513fi 15514rm -f core conftest.err conftest.$ac_objext \ 15515 conftest$ac_exeext conftest.$ac_ext 15516LIBS=$ac_check_lib_save_LIBS 15517fi 15518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 15519$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 15520if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 15521 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 15522else 15523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 15524$as_echo_n "checking for dlopen in -lsvld... " >&6; } 15525if ${ac_cv_lib_svld_dlopen+:} false; then : 15526 $as_echo_n "(cached) " >&6 15527else 15528 ac_check_lib_save_LIBS=$LIBS 15529LIBS="-lsvld $LIBS" 15530cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15531/* end confdefs.h. */ 15532 15533/* Override any GCC internal prototype to avoid an error. 15534 Use char because int might match the return type of a GCC 15535 builtin and then its argument prototype would still apply. */ 15536#ifdef __cplusplus 15537extern "C" 15538#endif 15539char dlopen (); 15540int 15541main () 15542{ 15543return dlopen (); 15544 ; 15545 return 0; 15546} 15547_ACEOF 15548if ac_fn_c_try_link "$LINENO"; then : 15549 ac_cv_lib_svld_dlopen=yes 15550else 15551 ac_cv_lib_svld_dlopen=no 15552fi 15553rm -f core conftest.err conftest.$ac_objext \ 15554 conftest$ac_exeext conftest.$ac_ext 15555LIBS=$ac_check_lib_save_LIBS 15556fi 15557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 15558$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 15559if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 15560 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 15561else 15562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 15563$as_echo_n "checking for dld_link in -ldld... " >&6; } 15564if ${ac_cv_lib_dld_dld_link+:} false; then : 15565 $as_echo_n "(cached) " >&6 15566else 15567 ac_check_lib_save_LIBS=$LIBS 15568LIBS="-ldld $LIBS" 15569cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15570/* end confdefs.h. */ 15571 15572/* Override any GCC internal prototype to avoid an error. 15573 Use char because int might match the return type of a GCC 15574 builtin and then its argument prototype would still apply. */ 15575#ifdef __cplusplus 15576extern "C" 15577#endif 15578char dld_link (); 15579int 15580main () 15581{ 15582return dld_link (); 15583 ; 15584 return 0; 15585} 15586_ACEOF 15587if ac_fn_c_try_link "$LINENO"; then : 15588 ac_cv_lib_dld_dld_link=yes 15589else 15590 ac_cv_lib_dld_dld_link=no 15591fi 15592rm -f core conftest.err conftest.$ac_objext \ 15593 conftest$ac_exeext conftest.$ac_ext 15594LIBS=$ac_check_lib_save_LIBS 15595fi 15596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 15597$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 15598if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 15599 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 15600fi 15601 15602 15603fi 15604 15605 15606fi 15607 15608 15609fi 15610 15611 15612fi 15613 15614 15615fi 15616 15617 ;; 15618 esac 15619 15620 if test no = "$lt_cv_dlopen"; then 15621 enable_dlopen=no 15622 else 15623 enable_dlopen=yes 15624 fi 15625 15626 case $lt_cv_dlopen in 15627 dlopen) 15628 save_CPPFLAGS=$CPPFLAGS 15629 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 15630 15631 save_LDFLAGS=$LDFLAGS 15632 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 15633 15634 save_LIBS=$LIBS 15635 LIBS="$lt_cv_dlopen_libs $LIBS" 15636 15637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 15638$as_echo_n "checking whether a program can dlopen itself... " >&6; } 15639if ${lt_cv_dlopen_self+:} false; then : 15640 $as_echo_n "(cached) " >&6 15641else 15642 if test yes = "$cross_compiling"; then : 15643 lt_cv_dlopen_self=cross 15644else 15645 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 15646 lt_status=$lt_dlunknown 15647 cat > conftest.$ac_ext <<_LT_EOF 15648#line $LINENO "configure" 15649#include "confdefs.h" 15650 15651#if HAVE_DLFCN_H 15652#include <dlfcn.h> 15653#endif 15654 15655#include <stdio.h> 15656 15657#ifdef RTLD_GLOBAL 15658# define LT_DLGLOBAL RTLD_GLOBAL 15659#else 15660# ifdef DL_GLOBAL 15661# define LT_DLGLOBAL DL_GLOBAL 15662# else 15663# define LT_DLGLOBAL 0 15664# endif 15665#endif 15666 15667/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 15668 find out it does not work in some platform. */ 15669#ifndef LT_DLLAZY_OR_NOW 15670# ifdef RTLD_LAZY 15671# define LT_DLLAZY_OR_NOW RTLD_LAZY 15672# else 15673# ifdef DL_LAZY 15674# define LT_DLLAZY_OR_NOW DL_LAZY 15675# else 15676# ifdef RTLD_NOW 15677# define LT_DLLAZY_OR_NOW RTLD_NOW 15678# else 15679# ifdef DL_NOW 15680# define LT_DLLAZY_OR_NOW DL_NOW 15681# else 15682# define LT_DLLAZY_OR_NOW 0 15683# endif 15684# endif 15685# endif 15686# endif 15687#endif 15688 15689/* When -fvisibility=hidden is used, assume the code has been annotated 15690 correspondingly for the symbols needed. */ 15691#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 15692int fnord () __attribute__((visibility("default"))); 15693#endif 15694 15695int fnord () { return 42; } 15696int main () 15697{ 15698 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 15699 int status = $lt_dlunknown; 15700 15701 if (self) 15702 { 15703 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 15704 else 15705 { 15706 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 15707 else puts (dlerror ()); 15708 } 15709 /* dlclose (self); */ 15710 } 15711 else 15712 puts (dlerror ()); 15713 15714 return status; 15715} 15716_LT_EOF 15717 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 15718 (eval $ac_link) 2>&5 15719 ac_status=$? 15720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15721 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 15722 (./conftest; exit; ) >&5 2>/dev/null 15723 lt_status=$? 15724 case x$lt_status in 15725 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 15726 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 15727 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 15728 esac 15729 else : 15730 # compilation failed 15731 lt_cv_dlopen_self=no 15732 fi 15733fi 15734rm -fr conftest* 15735 15736 15737fi 15738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 15739$as_echo "$lt_cv_dlopen_self" >&6; } 15740 15741 if test yes = "$lt_cv_dlopen_self"; then 15742 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 15743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 15744$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 15745if ${lt_cv_dlopen_self_static+:} false; then : 15746 $as_echo_n "(cached) " >&6 15747else 15748 if test yes = "$cross_compiling"; then : 15749 lt_cv_dlopen_self_static=cross 15750else 15751 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 15752 lt_status=$lt_dlunknown 15753 cat > conftest.$ac_ext <<_LT_EOF 15754#line $LINENO "configure" 15755#include "confdefs.h" 15756 15757#if HAVE_DLFCN_H 15758#include <dlfcn.h> 15759#endif 15760 15761#include <stdio.h> 15762 15763#ifdef RTLD_GLOBAL 15764# define LT_DLGLOBAL RTLD_GLOBAL 15765#else 15766# ifdef DL_GLOBAL 15767# define LT_DLGLOBAL DL_GLOBAL 15768# else 15769# define LT_DLGLOBAL 0 15770# endif 15771#endif 15772 15773/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 15774 find out it does not work in some platform. */ 15775#ifndef LT_DLLAZY_OR_NOW 15776# ifdef RTLD_LAZY 15777# define LT_DLLAZY_OR_NOW RTLD_LAZY 15778# else 15779# ifdef DL_LAZY 15780# define LT_DLLAZY_OR_NOW DL_LAZY 15781# else 15782# ifdef RTLD_NOW 15783# define LT_DLLAZY_OR_NOW RTLD_NOW 15784# else 15785# ifdef DL_NOW 15786# define LT_DLLAZY_OR_NOW DL_NOW 15787# else 15788# define LT_DLLAZY_OR_NOW 0 15789# endif 15790# endif 15791# endif 15792# endif 15793#endif 15794 15795/* When -fvisibility=hidden is used, assume the code has been annotated 15796 correspondingly for the symbols needed. */ 15797#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 15798int fnord () __attribute__((visibility("default"))); 15799#endif 15800 15801int fnord () { return 42; } 15802int main () 15803{ 15804 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 15805 int status = $lt_dlunknown; 15806 15807 if (self) 15808 { 15809 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 15810 else 15811 { 15812 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 15813 else puts (dlerror ()); 15814 } 15815 /* dlclose (self); */ 15816 } 15817 else 15818 puts (dlerror ()); 15819 15820 return status; 15821} 15822_LT_EOF 15823 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 15824 (eval $ac_link) 2>&5 15825 ac_status=$? 15826 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15827 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 15828 (./conftest; exit; ) >&5 2>/dev/null 15829 lt_status=$? 15830 case x$lt_status in 15831 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 15832 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 15833 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 15834 esac 15835 else : 15836 # compilation failed 15837 lt_cv_dlopen_self_static=no 15838 fi 15839fi 15840rm -fr conftest* 15841 15842 15843fi 15844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 15845$as_echo "$lt_cv_dlopen_self_static" >&6; } 15846 fi 15847 15848 CPPFLAGS=$save_CPPFLAGS 15849 LDFLAGS=$save_LDFLAGS 15850 LIBS=$save_LIBS 15851 ;; 15852 esac 15853 15854 case $lt_cv_dlopen_self in 15855 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 15856 *) enable_dlopen_self=unknown ;; 15857 esac 15858 15859 case $lt_cv_dlopen_self_static in 15860 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 15861 *) enable_dlopen_self_static=unknown ;; 15862 esac 15863fi 15864 15865 15866 15867 15868 15869 15870 15871 15872 15873 15874 15875 15876 15877 15878 15879 15880 15881striplib= 15882old_striplib= 15883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 15884$as_echo_n "checking whether stripping libraries is possible... " >&6; } 15885if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 15886 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 15887 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 15888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15889$as_echo "yes" >&6; } 15890else 15891# FIXME - insert some real tests, host_os isn't really good enough 15892 case $host_os in 15893 darwin*) 15894 if test -n "$STRIP"; then 15895 striplib="$STRIP -x" 15896 old_striplib="$STRIP -S" 15897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15898$as_echo "yes" >&6; } 15899 else 15900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15901$as_echo "no" >&6; } 15902 fi 15903 ;; 15904 *) 15905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15906$as_echo "no" >&6; } 15907 ;; 15908 esac 15909fi 15910 15911 15912 15913 15914 15915 15916 15917 15918 15919 15920 15921 15922 # Report what library types will actually be built 15923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 15924$as_echo_n "checking if libtool supports shared libraries... " >&6; } 15925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 15926$as_echo "$can_build_shared" >&6; } 15927 15928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 15929$as_echo_n "checking whether to build shared libraries... " >&6; } 15930 test no = "$can_build_shared" && enable_shared=no 15931 15932 # On AIX, shared libraries and static libraries use the same namespace, and 15933 # are all built from PIC. 15934 case $host_os in 15935 aix3*) 15936 test yes = "$enable_shared" && enable_static=no 15937 if test -n "$RANLIB"; then 15938 archive_cmds="$archive_cmds~\$RANLIB \$lib" 15939 postinstall_cmds='$RANLIB $lib' 15940 fi 15941 ;; 15942 15943 aix[4-9]*) 15944 if test ia64 != "$host_cpu"; then 15945 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 15946 yes,aix,yes) ;; # shared object as lib.so file only 15947 yes,svr4,*) ;; # shared object as lib.so archive member only 15948 yes,*) enable_static=no ;; # shared object in lib.a archive as well 15949 esac 15950 fi 15951 ;; 15952 esac 15953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 15954$as_echo "$enable_shared" >&6; } 15955 15956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 15957$as_echo_n "checking whether to build static libraries... " >&6; } 15958 # Make sure either enable_shared or enable_static is yes. 15959 test yes = "$enable_shared" || enable_static=yes 15960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 15961$as_echo "$enable_static" >&6; } 15962 15963 15964 15965 15966fi 15967ac_ext=c 15968ac_cpp='$CPP $CPPFLAGS' 15969ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15970ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15971ac_compiler_gnu=$ac_cv_c_compiler_gnu 15972 15973CC=$lt_save_CC 15974 15975 if test -n "$CXX" && ( test no != "$CXX" && 15976 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) || 15977 (test g++ != "$CXX"))); then 15978 ac_ext=cpp 15979ac_cpp='$CXXCPP $CPPFLAGS' 15980ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15981ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15982ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 15983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 15984$as_echo_n "checking how to run the C++ preprocessor... " >&6; } 15985if test -z "$CXXCPP"; then 15986 if ${ac_cv_prog_CXXCPP+:} false; then : 15987 $as_echo_n "(cached) " >&6 15988else 15989 # Double quotes because CXXCPP needs to be expanded 15990 for CXXCPP in "$CXX -E" "/lib/cpp" 15991 do 15992 ac_preproc_ok=false 15993for ac_cxx_preproc_warn_flag in '' yes 15994do 15995 # Use a header file that comes with gcc, so configuring glibc 15996 # with a fresh cross-compiler works. 15997 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 15998 # <limits.h> exists even on freestanding compilers. 15999 # On the NeXT, cc -E runs the code through the compiler's parser, 16000 # not just through cpp. "Syntax error" is here to catch this case. 16001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16002/* end confdefs.h. */ 16003#ifdef __STDC__ 16004# include <limits.h> 16005#else 16006# include <assert.h> 16007#endif 16008 Syntax error 16009_ACEOF 16010if ac_fn_cxx_try_cpp "$LINENO"; then : 16011 16012else 16013 # Broken: fails on valid input. 16014continue 16015fi 16016rm -f conftest.err conftest.i conftest.$ac_ext 16017 16018 # OK, works on sane cases. Now check whether nonexistent headers 16019 # can be detected and how. 16020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16021/* end confdefs.h. */ 16022#include <ac_nonexistent.h> 16023_ACEOF 16024if ac_fn_cxx_try_cpp "$LINENO"; then : 16025 # Broken: success on invalid input. 16026continue 16027else 16028 # Passes both tests. 16029ac_preproc_ok=: 16030break 16031fi 16032rm -f conftest.err conftest.i conftest.$ac_ext 16033 16034done 16035# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 16036rm -f conftest.i conftest.err conftest.$ac_ext 16037if $ac_preproc_ok; then : 16038 break 16039fi 16040 16041 done 16042 ac_cv_prog_CXXCPP=$CXXCPP 16043 16044fi 16045 CXXCPP=$ac_cv_prog_CXXCPP 16046else 16047 ac_cv_prog_CXXCPP=$CXXCPP 16048fi 16049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 16050$as_echo "$CXXCPP" >&6; } 16051ac_preproc_ok=false 16052for ac_cxx_preproc_warn_flag in '' yes 16053do 16054 # Use a header file that comes with gcc, so configuring glibc 16055 # with a fresh cross-compiler works. 16056 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 16057 # <limits.h> exists even on freestanding compilers. 16058 # On the NeXT, cc -E runs the code through the compiler's parser, 16059 # not just through cpp. "Syntax error" is here to catch this case. 16060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16061/* end confdefs.h. */ 16062#ifdef __STDC__ 16063# include <limits.h> 16064#else 16065# include <assert.h> 16066#endif 16067 Syntax error 16068_ACEOF 16069if ac_fn_cxx_try_cpp "$LINENO"; then : 16070 16071else 16072 # Broken: fails on valid input. 16073continue 16074fi 16075rm -f conftest.err conftest.i conftest.$ac_ext 16076 16077 # OK, works on sane cases. Now check whether nonexistent headers 16078 # can be detected and how. 16079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16080/* end confdefs.h. */ 16081#include <ac_nonexistent.h> 16082_ACEOF 16083if ac_fn_cxx_try_cpp "$LINENO"; then : 16084 # Broken: success on invalid input. 16085continue 16086else 16087 # Passes both tests. 16088ac_preproc_ok=: 16089break 16090fi 16091rm -f conftest.err conftest.i conftest.$ac_ext 16092 16093done 16094# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 16095rm -f conftest.i conftest.err conftest.$ac_ext 16096if $ac_preproc_ok; then : 16097 16098else 16099 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16100$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 16101as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 16102See \`config.log' for more details" "$LINENO" 5; } 16103fi 16104 16105ac_ext=c 16106ac_cpp='$CPP $CPPFLAGS' 16107ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16108ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16109ac_compiler_gnu=$ac_cv_c_compiler_gnu 16110 16111else 16112 _lt_caught_CXX_error=yes 16113fi 16114 16115ac_ext=cpp 16116ac_cpp='$CXXCPP $CPPFLAGS' 16117ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16118ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16119ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 16120 16121archive_cmds_need_lc_CXX=no 16122allow_undefined_flag_CXX= 16123always_export_symbols_CXX=no 16124archive_expsym_cmds_CXX= 16125compiler_needs_object_CXX=no 16126export_dynamic_flag_spec_CXX= 16127hardcode_direct_CXX=no 16128hardcode_direct_absolute_CXX=no 16129hardcode_libdir_flag_spec_CXX= 16130hardcode_libdir_separator_CXX= 16131hardcode_minus_L_CXX=no 16132hardcode_shlibpath_var_CXX=unsupported 16133hardcode_automatic_CXX=no 16134inherit_rpath_CXX=no 16135module_cmds_CXX= 16136module_expsym_cmds_CXX= 16137link_all_deplibs_CXX=unknown 16138old_archive_cmds_CXX=$old_archive_cmds 16139reload_flag_CXX=$reload_flag 16140reload_cmds_CXX=$reload_cmds 16141no_undefined_flag_CXX= 16142whole_archive_flag_spec_CXX= 16143enable_shared_with_static_runtimes_CXX=no 16144 16145# Source file extension for C++ test sources. 16146ac_ext=cpp 16147 16148# Object file extension for compiled C++ test sources. 16149objext=o 16150objext_CXX=$objext 16151 16152# No sense in running all these tests if we already determined that 16153# the CXX compiler isn't working. Some variables (like enable_shared) 16154# are currently assumed to apply to all compilers on this platform, 16155# and will be corrupted by setting them based on a non-working compiler. 16156if test yes != "$_lt_caught_CXX_error"; then 16157 # Code to be used in simple compile tests 16158 lt_simple_compile_test_code="int some_variable = 0;" 16159 16160 # Code to be used in simple link tests 16161 lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 16162 16163 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 16164 16165 16166 16167 16168 16169 16170# If no C compiler was specified, use CC. 16171LTCC=${LTCC-"$CC"} 16172 16173# If no C compiler flags were specified, use CFLAGS. 16174LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 16175 16176# Allow CC to be a program name with arguments. 16177compiler=$CC 16178 16179 16180 # save warnings/boilerplate of simple test code 16181 ac_outfile=conftest.$ac_objext 16182echo "$lt_simple_compile_test_code" >conftest.$ac_ext 16183eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 16184_lt_compiler_boilerplate=`cat conftest.err` 16185$RM conftest* 16186 16187 ac_outfile=conftest.$ac_objext 16188echo "$lt_simple_link_test_code" >conftest.$ac_ext 16189eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 16190_lt_linker_boilerplate=`cat conftest.err` 16191$RM -r conftest* 16192 16193 16194 # Allow CC to be a program name with arguments. 16195 lt_save_CC=$CC 16196 lt_save_CFLAGS=$CFLAGS 16197 lt_save_LD=$LD 16198 lt_save_GCC=$GCC 16199 GCC=$GXX 16200 lt_save_with_gnu_ld=$with_gnu_ld 16201 lt_save_path_LD=$lt_cv_path_LD 16202 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 16203 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 16204 else 16205 $as_unset lt_cv_prog_gnu_ld 16206 fi 16207 if test -n "${lt_cv_path_LDCXX+set}"; then 16208 lt_cv_path_LD=$lt_cv_path_LDCXX 16209 else 16210 $as_unset lt_cv_path_LD 16211 fi 16212 test -z "${LDCXX+set}" || LD=$LDCXX 16213 CC=${CXX-"c++"} 16214 CFLAGS=$CXXFLAGS 16215 compiler=$CC 16216 compiler_CXX=$CC 16217 func_cc_basename $compiler 16218cc_basename=$func_cc_basename_result 16219 16220 16221 if test -n "$compiler"; then 16222 # We don't want -fno-exception when compiling C++ code, so set the 16223 # no_builtin_flag separately 16224 if test yes = "$GXX"; then 16225 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 16226 else 16227 lt_prog_compiler_no_builtin_flag_CXX= 16228 fi 16229 16230 if test yes = "$GXX"; then 16231 # Set up default GNU C++ configuration 16232 16233 16234 16235# Check whether --with-gnu-ld was given. 16236if test "${with_gnu_ld+set}" = set; then : 16237 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 16238else 16239 with_gnu_ld=no 16240fi 16241 16242ac_prog=ld 16243if test yes = "$GCC"; then 16244 # Check if gcc -print-prog-name=ld gives a path. 16245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 16246$as_echo_n "checking for ld used by $CC... " >&6; } 16247 case $host in 16248 *-*-mingw*) 16249 # gcc leaves a trailing carriage return, which upsets mingw 16250 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 16251 *) 16252 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 16253 esac 16254 case $ac_prog in 16255 # Accept absolute paths. 16256 [\\/]* | ?:[\\/]*) 16257 re_direlt='/[^/][^/]*/\.\./' 16258 # Canonicalize the pathname of ld 16259 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 16260 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 16261 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 16262 done 16263 test -z "$LD" && LD=$ac_prog 16264 ;; 16265 "") 16266 # If it fails, then pretend we aren't using GCC. 16267 ac_prog=ld 16268 ;; 16269 *) 16270 # If it is relative, then search for the first ld in PATH. 16271 with_gnu_ld=unknown 16272 ;; 16273 esac 16274elif test yes = "$with_gnu_ld"; then 16275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 16276$as_echo_n "checking for GNU ld... " >&6; } 16277else 16278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 16279$as_echo_n "checking for non-GNU ld... " >&6; } 16280fi 16281if ${lt_cv_path_LD+:} false; then : 16282 $as_echo_n "(cached) " >&6 16283else 16284 if test -z "$LD"; then 16285 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 16286 for ac_dir in $PATH; do 16287 IFS=$lt_save_ifs 16288 test -z "$ac_dir" && ac_dir=. 16289 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 16290 lt_cv_path_LD=$ac_dir/$ac_prog 16291 # Check to see if the program is GNU ld. I'd rather use --version, 16292 # but apparently some variants of GNU ld only accept -v. 16293 # Break only if it was the GNU/non-GNU ld that we prefer. 16294 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 16295 *GNU* | *'with BFD'*) 16296 test no != "$with_gnu_ld" && break 16297 ;; 16298 *) 16299 test yes != "$with_gnu_ld" && break 16300 ;; 16301 esac 16302 fi 16303 done 16304 IFS=$lt_save_ifs 16305else 16306 lt_cv_path_LD=$LD # Let the user override the test with a path. 16307fi 16308fi 16309 16310LD=$lt_cv_path_LD 16311if test -n "$LD"; then 16312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 16313$as_echo "$LD" >&6; } 16314else 16315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16316$as_echo "no" >&6; } 16317fi 16318test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 16319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 16320$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 16321if ${lt_cv_prog_gnu_ld+:} false; then : 16322 $as_echo_n "(cached) " >&6 16323else 16324 # I'd rather use --version here, but apparently some GNU lds only accept -v. 16325case `$LD -v 2>&1 </dev/null` in 16326*GNU* | *'with BFD'*) 16327 lt_cv_prog_gnu_ld=yes 16328 ;; 16329*) 16330 lt_cv_prog_gnu_ld=no 16331 ;; 16332esac 16333fi 16334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 16335$as_echo "$lt_cv_prog_gnu_ld" >&6; } 16336with_gnu_ld=$lt_cv_prog_gnu_ld 16337 16338 16339 16340 16341 16342 16343 16344 # Check if GNU C++ uses GNU ld as the underlying linker, since the 16345 # archiving commands below assume that GNU ld is being used. 16346 if test yes = "$with_gnu_ld"; then 16347 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 16348 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 16349 16350 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 16351 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 16352 16353 # If archive_cmds runs LD, not CC, wlarc should be empty 16354 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 16355 # investigate it a little bit more. (MM) 16356 wlarc='$wl' 16357 16358 # ancient GNU ld didn't support --whole-archive et. al. 16359 if eval "`$CC -print-prog-name=ld` --help 2>&1" | 16360 $GREP 'no-whole-archive' > /dev/null; then 16361 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 16362 else 16363 whole_archive_flag_spec_CXX= 16364 fi 16365 else 16366 with_gnu_ld=no 16367 wlarc= 16368 16369 # A generic and very simple default shared library creation 16370 # command for GNU C++ for the case where it uses the native 16371 # linker, instead of GNU ld. If possible, this setting should 16372 # overridden to take advantage of the native linker features on 16373 # the platform it is being used on. 16374 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 16375 fi 16376 16377 # Commands to make compiler produce verbose output that lists 16378 # what "hidden" libraries, object files and flags are used when 16379 # linking a shared library. 16380 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 16381 16382 else 16383 GXX=no 16384 with_gnu_ld=no 16385 wlarc= 16386 fi 16387 16388 # PORTME: fill in a description of your system's C++ link characteristics 16389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 16390$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 16391 ld_shlibs_CXX=yes 16392 case $host_os in 16393 aix3*) 16394 # FIXME: insert proper C++ library support 16395 ld_shlibs_CXX=no 16396 ;; 16397 aix[4-9]*) 16398 if test ia64 = "$host_cpu"; then 16399 # On IA64, the linker does run time linking by default, so we don't 16400 # have to do anything special. 16401 aix_use_runtimelinking=no 16402 exp_sym_flag='-Bexport' 16403 no_entry_flag= 16404 else 16405 aix_use_runtimelinking=no 16406 16407 # Test if we are trying to use run time linking or normal 16408 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 16409 # have runtime linking enabled, and use it for executables. 16410 # For shared libraries, we enable/disable runtime linking 16411 # depending on the kind of the shared library created - 16412 # when "with_aix_soname,aix_use_runtimelinking" is: 16413 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 16414 # "aix,yes" lib.so shared, rtl:yes, for executables 16415 # lib.a static archive 16416 # "both,no" lib.so.V(shr.o) shared, rtl:yes 16417 # lib.a(lib.so.V) shared, rtl:no, for executables 16418 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 16419 # lib.a(lib.so.V) shared, rtl:no 16420 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 16421 # lib.a static archive 16422 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 16423 for ld_flag in $LDFLAGS; do 16424 case $ld_flag in 16425 *-brtl*) 16426 aix_use_runtimelinking=yes 16427 break 16428 ;; 16429 esac 16430 done 16431 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 16432 # With aix-soname=svr4, we create the lib.so.V shared archives only, 16433 # so we don't have lib.a shared libs to link our executables. 16434 # We have to force runtime linking in this case. 16435 aix_use_runtimelinking=yes 16436 LDFLAGS="$LDFLAGS -Wl,-brtl" 16437 fi 16438 ;; 16439 esac 16440 16441 exp_sym_flag='-bexport' 16442 no_entry_flag='-bnoentry' 16443 fi 16444 16445 # When large executables or shared objects are built, AIX ld can 16446 # have problems creating the table of contents. If linking a library 16447 # or program results in "error TOC overflow" add -mminimal-toc to 16448 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 16449 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 16450 16451 archive_cmds_CXX='' 16452 hardcode_direct_CXX=yes 16453 hardcode_direct_absolute_CXX=yes 16454 hardcode_libdir_separator_CXX=':' 16455 link_all_deplibs_CXX=yes 16456 file_list_spec_CXX='$wl-f,' 16457 case $with_aix_soname,$aix_use_runtimelinking in 16458 aix,*) ;; # no import file 16459 svr4,* | *,yes) # use import file 16460 # The Import File defines what to hardcode. 16461 hardcode_direct_CXX=no 16462 hardcode_direct_absolute_CXX=no 16463 ;; 16464 esac 16465 16466 if test yes = "$GXX"; then 16467 case $host_os in aix4.[012]|aix4.[012].*) 16468 # We only want to do this on AIX 4.2 and lower, the check 16469 # below for broken collect2 doesn't work under 4.3+ 16470 collect2name=`$CC -print-prog-name=collect2` 16471 if test -f "$collect2name" && 16472 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 16473 then 16474 # We have reworked collect2 16475 : 16476 else 16477 # We have old collect2 16478 hardcode_direct_CXX=unsupported 16479 # It fails to find uninstalled libraries when the uninstalled 16480 # path is not listed in the libpath. Setting hardcode_minus_L 16481 # to unsupported forces relinking 16482 hardcode_minus_L_CXX=yes 16483 hardcode_libdir_flag_spec_CXX='-L$libdir' 16484 hardcode_libdir_separator_CXX= 16485 fi 16486 esac 16487 shared_flag='-shared' 16488 if test yes = "$aix_use_runtimelinking"; then 16489 shared_flag=$shared_flag' $wl-G' 16490 fi 16491 # Need to ensure runtime linking is disabled for the traditional 16492 # shared library, or the linker may eventually find shared libraries 16493 # /with/ Import File - we do not want to mix them. 16494 shared_flag_aix='-shared' 16495 shared_flag_svr4='-shared $wl-G' 16496 else 16497 # not using gcc 16498 if test ia64 = "$host_cpu"; then 16499 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 16500 # chokes on -Wl,-G. The following line is correct: 16501 shared_flag='-G' 16502 else 16503 if test yes = "$aix_use_runtimelinking"; then 16504 shared_flag='$wl-G' 16505 else 16506 shared_flag='$wl-bM:SRE' 16507 fi 16508 shared_flag_aix='$wl-bM:SRE' 16509 shared_flag_svr4='$wl-G' 16510 fi 16511 fi 16512 16513 export_dynamic_flag_spec_CXX='$wl-bexpall' 16514 # It seems that -bexpall does not export symbols beginning with 16515 # underscore (_), so it is better to generate a list of symbols to 16516 # export. 16517 always_export_symbols_CXX=yes 16518 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 16519 # Warning - without using the other runtime loading flags (-brtl), 16520 # -berok will link without error, but may produce a broken library. 16521 # The "-G" linker flag allows undefined symbols. 16522 no_undefined_flag_CXX='-bernotok' 16523 # Determine the default libpath from the value encoded in an empty 16524 # executable. 16525 if test set = "${lt_cv_aix_libpath+set}"; then 16526 aix_libpath=$lt_cv_aix_libpath 16527else 16528 if ${lt_cv_aix_libpath__CXX+:} false; then : 16529 $as_echo_n "(cached) " >&6 16530else 16531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16532/* end confdefs.h. */ 16533 16534int 16535main () 16536{ 16537 16538 ; 16539 return 0; 16540} 16541_ACEOF 16542if ac_fn_cxx_try_link "$LINENO"; then : 16543 16544 lt_aix_libpath_sed=' 16545 /Import File Strings/,/^$/ { 16546 /^0/ { 16547 s/^0 *\([^ ]*\) *$/\1/ 16548 p 16549 } 16550 }' 16551 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 16552 # Check for a 64-bit object if we didn't find anything. 16553 if test -z "$lt_cv_aix_libpath__CXX"; then 16554 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 16555 fi 16556fi 16557rm -f core conftest.err conftest.$ac_objext \ 16558 conftest$ac_exeext conftest.$ac_ext 16559 if test -z "$lt_cv_aix_libpath__CXX"; then 16560 lt_cv_aix_libpath__CXX=/usr/lib:/lib 16561 fi 16562 16563fi 16564 16565 aix_libpath=$lt_cv_aix_libpath__CXX 16566fi 16567 16568 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" 16569 16570 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag 16571 else 16572 if test ia64 = "$host_cpu"; then 16573 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib' 16574 allow_undefined_flag_CXX="-z nodefs" 16575 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols" 16576 else 16577 # Determine the default libpath from the value encoded in an 16578 # empty executable. 16579 if test set = "${lt_cv_aix_libpath+set}"; then 16580 aix_libpath=$lt_cv_aix_libpath 16581else 16582 if ${lt_cv_aix_libpath__CXX+:} false; then : 16583 $as_echo_n "(cached) " >&6 16584else 16585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16586/* end confdefs.h. */ 16587 16588int 16589main () 16590{ 16591 16592 ; 16593 return 0; 16594} 16595_ACEOF 16596if ac_fn_cxx_try_link "$LINENO"; then : 16597 16598 lt_aix_libpath_sed=' 16599 /Import File Strings/,/^$/ { 16600 /^0/ { 16601 s/^0 *\([^ ]*\) *$/\1/ 16602 p 16603 } 16604 }' 16605 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 16606 # Check for a 64-bit object if we didn't find anything. 16607 if test -z "$lt_cv_aix_libpath__CXX"; then 16608 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 16609 fi 16610fi 16611rm -f core conftest.err conftest.$ac_objext \ 16612 conftest$ac_exeext conftest.$ac_ext 16613 if test -z "$lt_cv_aix_libpath__CXX"; then 16614 lt_cv_aix_libpath__CXX=/usr/lib:/lib 16615 fi 16616 16617fi 16618 16619 aix_libpath=$lt_cv_aix_libpath__CXX 16620fi 16621 16622 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" 16623 # Warning - without using the other run time loading flags, 16624 # -berok will link without error, but may produce a broken library. 16625 no_undefined_flag_CXX=' $wl-bernotok' 16626 allow_undefined_flag_CXX=' $wl-berok' 16627 if test yes = "$with_gnu_ld"; then 16628 # We only use this code for GNU lds that support --whole-archive. 16629 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' 16630 else 16631 # Exported symbols can be pulled into shared objects from archives 16632 whole_archive_flag_spec_CXX='$convenience' 16633 fi 16634 archive_cmds_need_lc_CXX=yes 16635 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 16636 # -brtl affects multiple linker settings, -berok does not and is overridden later 16637 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 16638 if test svr4 != "$with_aix_soname"; then 16639 # This is similar to how AIX traditionally builds its shared 16640 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS. 16641 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' 16642 fi 16643 if test aix != "$with_aix_soname"; then 16644 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' 16645 else 16646 # used by -dlpreopen to get the symbols 16647 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 16648 fi 16649 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d' 16650 fi 16651 fi 16652 ;; 16653 16654 beos*) 16655 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 16656 allow_undefined_flag_CXX=unsupported 16657 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 16658 # support --undefined. This deserves some investigation. FIXME 16659 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16660 else 16661 ld_shlibs_CXX=no 16662 fi 16663 ;; 16664 16665 chorus*) 16666 case $cc_basename in 16667 *) 16668 # FIXME: insert proper C++ library support 16669 ld_shlibs_CXX=no 16670 ;; 16671 esac 16672 ;; 16673 16674 cygwin* | mingw* | pw32* | cegcc*) 16675 case $GXX,$cc_basename in 16676 ,cl* | no,cl*) 16677 # Native MSVC 16678 # hardcode_libdir_flag_spec is actually meaningless, as there is 16679 # no search path for DLLs. 16680 hardcode_libdir_flag_spec_CXX=' ' 16681 allow_undefined_flag_CXX=unsupported 16682 always_export_symbols_CXX=yes 16683 file_list_spec_CXX='@' 16684 # Tell ltmain to make .lib files, not .a files. 16685 libext=lib 16686 # Tell ltmain to make .dll files, not .so files. 16687 shrext_cmds=.dll 16688 # FIXME: Setting linknames here is a bad hack. 16689 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 16690 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 16691 cp "$export_symbols" "$output_objdir/$soname.def"; 16692 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 16693 else 16694 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 16695 fi~ 16696 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 16697 linknames=' 16698 # The linker will not automatically build a static lib if we build a DLL. 16699 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true' 16700 enable_shared_with_static_runtimes_CXX=yes 16701 # Don't use ranlib 16702 old_postinstall_cmds_CXX='chmod 644 $oldlib' 16703 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~ 16704 lt_tool_outputfile="@TOOL_OUTPUT@"~ 16705 case $lt_outputfile in 16706 *.exe|*.EXE) ;; 16707 *) 16708 lt_outputfile=$lt_outputfile.exe 16709 lt_tool_outputfile=$lt_tool_outputfile.exe 16710 ;; 16711 esac~ 16712 func_to_tool_file "$lt_outputfile"~ 16713 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 16714 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 16715 $RM "$lt_outputfile.manifest"; 16716 fi' 16717 ;; 16718 *) 16719 # g++ 16720 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 16721 # as there is no search path for DLLs. 16722 hardcode_libdir_flag_spec_CXX='-L$libdir' 16723 export_dynamic_flag_spec_CXX='$wl--export-all-symbols' 16724 allow_undefined_flag_CXX=unsupported 16725 always_export_symbols_CXX=no 16726 enable_shared_with_static_runtimes_CXX=yes 16727 16728 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 16729 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 16730 # If the export-symbols file already is a .def file, use it as 16731 # is; otherwise, prepend EXPORTS... 16732 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 16733 cp $export_symbols $output_objdir/$soname.def; 16734 else 16735 echo EXPORTS > $output_objdir/$soname.def; 16736 cat $export_symbols >> $output_objdir/$soname.def; 16737 fi~ 16738 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 16739 else 16740 ld_shlibs_CXX=no 16741 fi 16742 ;; 16743 esac 16744 ;; 16745 darwin* | rhapsody*) 16746 16747 16748 archive_cmds_need_lc_CXX=no 16749 hardcode_direct_CXX=no 16750 hardcode_automatic_CXX=yes 16751 hardcode_shlibpath_var_CXX=unsupported 16752 if test yes = "$lt_cv_ld_force_load"; then 16753 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' 16754 16755 else 16756 whole_archive_flag_spec_CXX='' 16757 fi 16758 link_all_deplibs_CXX=yes 16759 allow_undefined_flag_CXX=$_lt_dar_allow_undefined 16760 case $cc_basename in 16761 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 16762 *) _lt_dar_can_shared=$GCC ;; 16763 esac 16764 if test yes = "$_lt_dar_can_shared"; then 16765 output_verbose_link_cmd=func_echo_all 16766 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 16767 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 16768 archive_expsym_cmds_CXX="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil" 16769 module_expsym_cmds_CXX="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil" 16770 if test yes != "$lt_cv_apple_cc_single_mod"; then 16771 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dsymutil" 16772 archive_expsym_cmds_CXX="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dar_export_syms$_lt_dsymutil" 16773 fi 16774 16775 else 16776 ld_shlibs_CXX=no 16777 fi 16778 16779 ;; 16780 16781 os2*) 16782 hardcode_libdir_flag_spec_CXX='-L$libdir' 16783 hardcode_minus_L_CXX=yes 16784 allow_undefined_flag_CXX=unsupported 16785 shrext_cmds=.dll 16786 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 16787 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 16788 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 16789 $ECHO EXPORTS >> $output_objdir/$libname.def~ 16790 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 16791 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 16792 emximp -o $lib $output_objdir/$libname.def' 16793 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 16794 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 16795 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 16796 $ECHO EXPORTS >> $output_objdir/$libname.def~ 16797 prefix_cmds="$SED"~ 16798 if test EXPORTS = "`$SED 1q $export_symbols`"; then 16799 prefix_cmds="$prefix_cmds -e 1d"; 16800 fi~ 16801 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 16802 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 16803 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 16804 emximp -o $lib $output_objdir/$libname.def' 16805 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 16806 enable_shared_with_static_runtimes_CXX=yes 16807 ;; 16808 16809 dgux*) 16810 case $cc_basename in 16811 ec++*) 16812 # FIXME: insert proper C++ library support 16813 ld_shlibs_CXX=no 16814 ;; 16815 ghcx*) 16816 # Green Hills C++ Compiler 16817 # FIXME: insert proper C++ library support 16818 ld_shlibs_CXX=no 16819 ;; 16820 *) 16821 # FIXME: insert proper C++ library support 16822 ld_shlibs_CXX=no 16823 ;; 16824 esac 16825 ;; 16826 16827 freebsd2.*) 16828 # C++ shared libraries reported to be fairly broken before 16829 # switch to ELF 16830 ld_shlibs_CXX=no 16831 ;; 16832 16833 freebsd-elf*) 16834 archive_cmds_need_lc_CXX=no 16835 ;; 16836 16837 freebsd* | dragonfly*) 16838 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 16839 # conventions 16840 ld_shlibs_CXX=yes 16841 ;; 16842 16843 haiku*) 16844 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16845 link_all_deplibs_CXX=yes 16846 ;; 16847 16848 hpux9*) 16849 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' 16850 hardcode_libdir_separator_CXX=: 16851 export_dynamic_flag_spec_CXX='$wl-E' 16852 hardcode_direct_CXX=yes 16853 hardcode_minus_L_CXX=yes # Not in the search PATH, 16854 # but as the default 16855 # location of the library. 16856 16857 case $cc_basename in 16858 CC*) 16859 # FIXME: insert proper C++ library support 16860 ld_shlibs_CXX=no 16861 ;; 16862 aCC*) 16863 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 16864 # Commands to make compiler produce verbose output that lists 16865 # what "hidden" libraries, object files and flags are used when 16866 # linking a shared library. 16867 # 16868 # There doesn't appear to be a way to prevent this compiler from 16869 # explicitly linking system object files so we need to strip them 16870 # from the output so that they don't get included in the library 16871 # dependencies. 16872 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 16873 ;; 16874 *) 16875 if test yes = "$GXX"; then 16876 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 16877 else 16878 # FIXME: insert proper C++ library support 16879 ld_shlibs_CXX=no 16880 fi 16881 ;; 16882 esac 16883 ;; 16884 16885 hpux10*|hpux11*) 16886 if test no = "$with_gnu_ld"; then 16887 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' 16888 hardcode_libdir_separator_CXX=: 16889 16890 case $host_cpu in 16891 hppa*64*|ia64*) 16892 ;; 16893 *) 16894 export_dynamic_flag_spec_CXX='$wl-E' 16895 ;; 16896 esac 16897 fi 16898 case $host_cpu in 16899 hppa*64*|ia64*) 16900 hardcode_direct_CXX=no 16901 hardcode_shlibpath_var_CXX=no 16902 ;; 16903 *) 16904 hardcode_direct_CXX=yes 16905 hardcode_direct_absolute_CXX=yes 16906 hardcode_minus_L_CXX=yes # Not in the search PATH, 16907 # but as the default 16908 # location of the library. 16909 ;; 16910 esac 16911 16912 case $cc_basename in 16913 CC*) 16914 # FIXME: insert proper C++ library support 16915 ld_shlibs_CXX=no 16916 ;; 16917 aCC*) 16918 case $host_cpu in 16919 hppa*64*) 16920 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 16921 ;; 16922 ia64*) 16923 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 16924 ;; 16925 *) 16926 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 16927 ;; 16928 esac 16929 # Commands to make compiler produce verbose output that lists 16930 # what "hidden" libraries, object files and flags are used when 16931 # linking a shared library. 16932 # 16933 # There doesn't appear to be a way to prevent this compiler from 16934 # explicitly linking system object files so we need to strip them 16935 # from the output so that they don't get included in the library 16936 # dependencies. 16937 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 16938 ;; 16939 *) 16940 if test yes = "$GXX"; then 16941 if test no = "$with_gnu_ld"; then 16942 case $host_cpu in 16943 hppa*64*) 16944 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 16945 ;; 16946 ia64*) 16947 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 16948 ;; 16949 *) 16950 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 16951 ;; 16952 esac 16953 fi 16954 else 16955 # FIXME: insert proper C++ library support 16956 ld_shlibs_CXX=no 16957 fi 16958 ;; 16959 esac 16960 ;; 16961 16962 interix[3-9]*) 16963 hardcode_direct_CXX=no 16964 hardcode_shlibpath_var_CXX=no 16965 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 16966 export_dynamic_flag_spec_CXX='$wl-E' 16967 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 16968 # Instead, shared libraries are loaded at an image base (0x10000000 by 16969 # default) and relocated if they conflict, which is a slow very memory 16970 # consuming and fragmenting process. To avoid this, we pick a random, 16971 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 16972 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 16973 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 16974 archive_expsym_cmds_CXX='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 16975 ;; 16976 irix5* | irix6*) 16977 case $cc_basename in 16978 CC*) 16979 # SGI C++ 16980 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' 16981 16982 # Archives containing C++ object files must be created using 16983 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 16984 # necessary to make sure instantiated templates are included 16985 # in the archive. 16986 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 16987 ;; 16988 *) 16989 if test yes = "$GXX"; then 16990 if test no = "$with_gnu_ld"; then 16991 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' 16992 else 16993 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` -o $lib' 16994 fi 16995 fi 16996 link_all_deplibs_CXX=yes 16997 ;; 16998 esac 16999 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 17000 hardcode_libdir_separator_CXX=: 17001 inherit_rpath_CXX=yes 17002 ;; 17003 17004 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 17005 case $cc_basename in 17006 KCC*) 17007 # Kuck and Associates, Inc. (KAI) C++ Compiler 17008 17009 # KCC will only create a shared library if the output file 17010 # ends with ".so" (or ".sl" for HP-UX), so rename the library 17011 # to its proper name (with version) after linking. 17012 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' 17013 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib $wl-retain-symbols-file,$export_symbols; mv \$templib $lib' 17014 # Commands to make compiler produce verbose output that lists 17015 # what "hidden" libraries, object files and flags are used when 17016 # linking a shared library. 17017 # 17018 # There doesn't appear to be a way to prevent this compiler from 17019 # explicitly linking system object files so we need to strip them 17020 # from the output so that they don't get included in the library 17021 # dependencies. 17022 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 17023 17024 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 17025 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 17026 17027 # Archives containing C++ object files must be created using 17028 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 17029 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 17030 ;; 17031 icpc* | ecpc* ) 17032 # Intel C++ 17033 with_gnu_ld=yes 17034 # version 8.0 and above of icpc choke on multiply defined symbols 17035 # if we add $predep_objects and $postdep_objects, however 7.1 and 17036 # earlier do not add the objects themselves. 17037 case `$CC -V 2>&1` in 17038 *"Version 7."*) 17039 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 17040 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 17041 ;; 17042 *) # Version 8.0 or newer 17043 tmp_idyn= 17044 case $host_cpu in 17045 ia64*) tmp_idyn=' -i_dynamic';; 17046 esac 17047 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 17048 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 17049 ;; 17050 esac 17051 archive_cmds_need_lc_CXX=no 17052 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 17053 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 17054 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' 17055 ;; 17056 pgCC* | pgcpp*) 17057 # Portland Group C++ compiler 17058 case `$CC -V` in 17059 *pgCC\ [1-5].* | *pgcpp\ [1-5].*) 17060 prelink_cmds_CXX='tpldir=Template.dir~ 17061 rm -rf $tpldir~ 17062 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 17063 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' 17064 old_archive_cmds_CXX='tpldir=Template.dir~ 17065 rm -rf $tpldir~ 17066 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 17067 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ 17068 $RANLIB $oldlib' 17069 archive_cmds_CXX='tpldir=Template.dir~ 17070 rm -rf $tpldir~ 17071 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 17072 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 17073 archive_expsym_cmds_CXX='tpldir=Template.dir~ 17074 rm -rf $tpldir~ 17075 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 17076 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 17077 ;; 17078 *) # Version 6 and above use weak symbols 17079 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 17080 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 17081 ;; 17082 esac 17083 17084 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir' 17085 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 17086 whole_archive_flag_spec_CXX='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' 17087 ;; 17088 cxx*) 17089 # Compaq C++ 17090 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 17091 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib $wl-retain-symbols-file $wl$export_symbols' 17092 17093 runpath_var=LD_RUN_PATH 17094 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 17095 hardcode_libdir_separator_CXX=: 17096 17097 # Commands to make compiler produce verbose output that lists 17098 # what "hidden" libraries, object files and flags are used when 17099 # linking a shared library. 17100 # 17101 # There doesn't appear to be a way to prevent this compiler from 17102 # explicitly linking system object files so we need to strip them 17103 # from the output so that they don't get included in the library 17104 # dependencies. 17105 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed' 17106 ;; 17107 xl* | mpixl* | bgxl*) 17108 # IBM XL 8.0 on PPC, with GNU ld 17109 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 17110 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 17111 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 17112 if test yes = "$supports_anon_versioning"; then 17113 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ 17114 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 17115 echo "local: *; };" >> $output_objdir/$libname.ver~ 17116 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 17117 fi 17118 ;; 17119 *) 17120 case `$CC -V 2>&1 | sed 5q` in 17121 *Sun\ C*) 17122 # Sun C++ 5.9 17123 no_undefined_flag_CXX=' -zdefs' 17124 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 17125 archive_expsym_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file $wl$export_symbols' 17126 hardcode_libdir_flag_spec_CXX='-R$libdir' 17127 whole_archive_flag_spec_CXX='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' 17128 compiler_needs_object_CXX=yes 17129 17130 # Not sure whether something based on 17131 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 17132 # would be better. 17133 output_verbose_link_cmd='func_echo_all' 17134 17135 # Archives containing C++ object files must be created using 17136 # "CC -xar", where "CC" is the Sun C++ compiler. This is 17137 # necessary to make sure instantiated templates are included 17138 # in the archive. 17139 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 17140 ;; 17141 esac 17142 ;; 17143 esac 17144 ;; 17145 17146 lynxos*) 17147 # FIXME: insert proper C++ library support 17148 ld_shlibs_CXX=no 17149 ;; 17150 17151 m88k*) 17152 # FIXME: insert proper C++ library support 17153 ld_shlibs_CXX=no 17154 ;; 17155 17156 mvs*) 17157 case $cc_basename in 17158 cxx*) 17159 # FIXME: insert proper C++ library support 17160 ld_shlibs_CXX=no 17161 ;; 17162 *) 17163 # FIXME: insert proper C++ library support 17164 ld_shlibs_CXX=no 17165 ;; 17166 esac 17167 ;; 17168 17169 netbsd*) 17170 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 17171 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 17172 wlarc= 17173 hardcode_libdir_flag_spec_CXX='-R$libdir' 17174 hardcode_direct_CXX=yes 17175 hardcode_shlibpath_var_CXX=no 17176 fi 17177 # Workaround some broken pre-1.5 toolchains 17178 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 17179 ;; 17180 17181 *nto* | *qnx*) 17182 ld_shlibs_CXX=yes 17183 ;; 17184 17185 openbsd* | bitrig*) 17186 if test -f /usr/libexec/ld.so; then 17187 hardcode_direct_CXX=yes 17188 hardcode_shlibpath_var_CXX=no 17189 hardcode_direct_absolute_CXX=yes 17190 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 17191 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 17192 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then 17193 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib' 17194 export_dynamic_flag_spec_CXX='$wl-E' 17195 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 17196 fi 17197 output_verbose_link_cmd=func_echo_all 17198 else 17199 ld_shlibs_CXX=no 17200 fi 17201 ;; 17202 17203 osf3* | osf4* | osf5*) 17204 case $cc_basename in 17205 KCC*) 17206 # Kuck and Associates, Inc. (KAI) C++ Compiler 17207 17208 # KCC will only create a shared library if the output file 17209 # ends with ".so" (or ".sl" for HP-UX), so rename the library 17210 # to its proper name (with version) after linking. 17211 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' 17212 17213 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 17214 hardcode_libdir_separator_CXX=: 17215 17216 # Archives containing C++ object files must be created using 17217 # the KAI C++ compiler. 17218 case $host in 17219 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; 17220 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; 17221 esac 17222 ;; 17223 RCC*) 17224 # Rational C++ 2.4.1 17225 # FIXME: insert proper C++ library support 17226 ld_shlibs_CXX=no 17227 ;; 17228 cxx*) 17229 case $host in 17230 osf3*) 17231 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' 17232 archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $soname `test -n "$verstring" && func_echo_all "$wl-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' 17233 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 17234 ;; 17235 *) 17236 allow_undefined_flag_CXX=' -expect_unresolved \*' 17237 archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' 17238 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 17239 echo "-hidden">> $lib.exp~ 17240 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname $wl-input $wl$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~ 17241 $RM $lib.exp' 17242 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 17243 ;; 17244 esac 17245 17246 hardcode_libdir_separator_CXX=: 17247 17248 # Commands to make compiler produce verbose output that lists 17249 # what "hidden" libraries, object files and flags are used when 17250 # linking a shared library. 17251 # 17252 # There doesn't appear to be a way to prevent this compiler from 17253 # explicitly linking system object files so we need to strip them 17254 # from the output so that they don't get included in the library 17255 # dependencies. 17256 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 17257 ;; 17258 *) 17259 if test yes,no = "$GXX,$with_gnu_ld"; then 17260 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' 17261 case $host in 17262 osf3*) 17263 archive_cmds_CXX='$CC -shared -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' 17264 ;; 17265 *) 17266 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' 17267 ;; 17268 esac 17269 17270 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 17271 hardcode_libdir_separator_CXX=: 17272 17273 # Commands to make compiler produce verbose output that lists 17274 # what "hidden" libraries, object files and flags are used when 17275 # linking a shared library. 17276 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 17277 17278 else 17279 # FIXME: insert proper C++ library support 17280 ld_shlibs_CXX=no 17281 fi 17282 ;; 17283 esac 17284 ;; 17285 17286 psos*) 17287 # FIXME: insert proper C++ library support 17288 ld_shlibs_CXX=no 17289 ;; 17290 17291 sunos4*) 17292 case $cc_basename in 17293 CC*) 17294 # Sun C++ 4.x 17295 # FIXME: insert proper C++ library support 17296 ld_shlibs_CXX=no 17297 ;; 17298 lcc*) 17299 # Lucid 17300 # FIXME: insert proper C++ library support 17301 ld_shlibs_CXX=no 17302 ;; 17303 *) 17304 # FIXME: insert proper C++ library support 17305 ld_shlibs_CXX=no 17306 ;; 17307 esac 17308 ;; 17309 17310 solaris*) 17311 case $cc_basename in 17312 CC* | sunCC*) 17313 # Sun C++ 4.2, 5.x and Centerline C++ 17314 archive_cmds_need_lc_CXX=yes 17315 no_undefined_flag_CXX=' -zdefs' 17316 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 17317 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 17318 $CC -G$allow_undefined_flag $wl-M $wl$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 17319 17320 hardcode_libdir_flag_spec_CXX='-R$libdir' 17321 hardcode_shlibpath_var_CXX=no 17322 case $host_os in 17323 solaris2.[0-5] | solaris2.[0-5].*) ;; 17324 *) 17325 # The compiler driver will combine and reorder linker options, 17326 # but understands '-z linker_flag'. 17327 # Supported since Solaris 2.6 (maybe 2.5.1?) 17328 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 17329 ;; 17330 esac 17331 link_all_deplibs_CXX=yes 17332 17333 output_verbose_link_cmd='func_echo_all' 17334 17335 # Archives containing C++ object files must be created using 17336 # "CC -xar", where "CC" is the Sun C++ compiler. This is 17337 # necessary to make sure instantiated templates are included 17338 # in the archive. 17339 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 17340 ;; 17341 gcx*) 17342 # Green Hills C++ Compiler 17343 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 17344 17345 # The C++ compiler must be used to create the archive. 17346 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 17347 ;; 17348 *) 17349 # GNU C++ compiler with Solaris linker 17350 if test yes,no = "$GXX,$with_gnu_ld"; then 17351 no_undefined_flag_CXX=' $wl-z ${wl}defs' 17352 if $CC --version | $GREP -v '^2\.7' > /dev/null; then 17353 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 17354 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 17355 $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 17356 17357 # Commands to make compiler produce verbose output that lists 17358 # what "hidden" libraries, object files and flags are used when 17359 # linking a shared library. 17360 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 17361 else 17362 # g++ 2.7 appears to require '-G' NOT '-shared' on this 17363 # platform. 17364 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 17365 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 17366 $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 17367 17368 # Commands to make compiler produce verbose output that lists 17369 # what "hidden" libraries, object files and flags are used when 17370 # linking a shared library. 17371 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 17372 fi 17373 17374 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir' 17375 case $host_os in 17376 solaris2.[0-5] | solaris2.[0-5].*) ;; 17377 *) 17378 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 17379 ;; 17380 esac 17381 fi 17382 ;; 17383 esac 17384 ;; 17385 17386 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 17387 no_undefined_flag_CXX='$wl-z,text' 17388 archive_cmds_need_lc_CXX=no 17389 hardcode_shlibpath_var_CXX=no 17390 runpath_var='LD_RUN_PATH' 17391 17392 case $cc_basename in 17393 CC*) 17394 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17395 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17396 ;; 17397 *) 17398 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17399 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17400 ;; 17401 esac 17402 ;; 17403 17404 sysv5* | sco3.2v5* | sco5v6*) 17405 # Note: We CANNOT use -z defs as we might desire, because we do not 17406 # link with -lc, and that would cause any symbols used from libc to 17407 # always be unresolved, which means just about no library would 17408 # ever link correctly. If we're not using GNU ld we use -z text 17409 # though, which does catch some bad symbols but isn't as heavy-handed 17410 # as -z defs. 17411 no_undefined_flag_CXX='$wl-z,text' 17412 allow_undefined_flag_CXX='$wl-z,nodefs' 17413 archive_cmds_need_lc_CXX=no 17414 hardcode_shlibpath_var_CXX=no 17415 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir' 17416 hardcode_libdir_separator_CXX=':' 17417 link_all_deplibs_CXX=yes 17418 export_dynamic_flag_spec_CXX='$wl-Bexport' 17419 runpath_var='LD_RUN_PATH' 17420 17421 case $cc_basename in 17422 CC*) 17423 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17424 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17425 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ 17426 '"$old_archive_cmds_CXX" 17427 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ 17428 '"$reload_cmds_CXX" 17429 ;; 17430 *) 17431 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17432 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17433 ;; 17434 esac 17435 ;; 17436 17437 tandem*) 17438 case $cc_basename in 17439 NCC*) 17440 # NonStop-UX NCC 3.20 17441 # FIXME: insert proper C++ library support 17442 ld_shlibs_CXX=no 17443 ;; 17444 *) 17445 # FIXME: insert proper C++ library support 17446 ld_shlibs_CXX=no 17447 ;; 17448 esac 17449 ;; 17450 17451 vxworks*) 17452 # FIXME: insert proper C++ library support 17453 ld_shlibs_CXX=no 17454 ;; 17455 17456 *) 17457 # FIXME: insert proper C++ library support 17458 ld_shlibs_CXX=no 17459 ;; 17460 esac 17461 17462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 17463$as_echo "$ld_shlibs_CXX" >&6; } 17464 test no = "$ld_shlibs_CXX" && can_build_shared=no 17465 17466 GCC_CXX=$GXX 17467 LD_CXX=$LD 17468 17469 ## CAVEAT EMPTOR: 17470 ## There is no encapsulation within the following macros, do not change 17471 ## the running order or otherwise move them around unless you know exactly 17472 ## what you are doing... 17473 # Dependencies to place before and after the object being linked: 17474predep_objects_CXX= 17475postdep_objects_CXX= 17476predeps_CXX= 17477postdeps_CXX= 17478compiler_lib_search_path_CXX= 17479 17480cat > conftest.$ac_ext <<_LT_EOF 17481class Foo 17482{ 17483public: 17484 Foo (void) { a = 0; } 17485private: 17486 int a; 17487}; 17488_LT_EOF 17489 17490 17491_lt_libdeps_save_CFLAGS=$CFLAGS 17492case "$CC $CFLAGS " in #( 17493*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; 17494*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; 17495*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; 17496esac 17497 17498if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 17499 (eval $ac_compile) 2>&5 17500 ac_status=$? 17501 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17502 test $ac_status = 0; }; then 17503 # Parse the compiler output and extract the necessary 17504 # objects, libraries and library flags. 17505 17506 # Sentinel used to keep track of whether or not we are before 17507 # the conftest object file. 17508 pre_test_object_deps_done=no 17509 17510 for p in `eval "$output_verbose_link_cmd"`; do 17511 case $prev$p in 17512 17513 -L* | -R* | -l*) 17514 # Some compilers place space between "-{L,R}" and the path. 17515 # Remove the space. 17516 if test x-L = "$p" || 17517 test x-R = "$p"; then 17518 prev=$p 17519 continue 17520 fi 17521 17522 # Expand the sysroot to ease extracting the directories later. 17523 if test -z "$prev"; then 17524 case $p in 17525 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; 17526 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; 17527 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; 17528 esac 17529 fi 17530 case $p in 17531 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; 17532 esac 17533 if test no = "$pre_test_object_deps_done"; then 17534 case $prev in 17535 -L | -R) 17536 # Internal compiler library paths should come after those 17537 # provided the user. The postdeps already come after the 17538 # user supplied libs so there is no need to process them. 17539 if test -z "$compiler_lib_search_path_CXX"; then 17540 compiler_lib_search_path_CXX=$prev$p 17541 else 17542 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p" 17543 fi 17544 ;; 17545 # The "-l" case would never come before the object being 17546 # linked, so don't bother handling this case. 17547 esac 17548 else 17549 if test -z "$postdeps_CXX"; then 17550 postdeps_CXX=$prev$p 17551 else 17552 postdeps_CXX="${postdeps_CXX} $prev$p" 17553 fi 17554 fi 17555 prev= 17556 ;; 17557 17558 *.lto.$objext) ;; # Ignore GCC LTO objects 17559 *.$objext) 17560 # This assumes that the test object file only shows up 17561 # once in the compiler output. 17562 if test "$p" = "conftest.$objext"; then 17563 pre_test_object_deps_done=yes 17564 continue 17565 fi 17566 17567 if test no = "$pre_test_object_deps_done"; then 17568 if test -z "$predep_objects_CXX"; then 17569 predep_objects_CXX=$p 17570 else 17571 predep_objects_CXX="$predep_objects_CXX $p" 17572 fi 17573 else 17574 if test -z "$postdep_objects_CXX"; then 17575 postdep_objects_CXX=$p 17576 else 17577 postdep_objects_CXX="$postdep_objects_CXX $p" 17578 fi 17579 fi 17580 ;; 17581 17582 *) ;; # Ignore the rest. 17583 17584 esac 17585 done 17586 17587 # Clean up. 17588 rm -f a.out a.exe 17589else 17590 echo "libtool.m4: error: problem compiling CXX test program" 17591fi 17592 17593$RM -f confest.$objext 17594CFLAGS=$_lt_libdeps_save_CFLAGS 17595 17596# PORTME: override above test on systems where it is broken 17597case $host_os in 17598interix[3-9]*) 17599 # Interix 3.5 installs completely hosed .la files for C++, so rather than 17600 # hack all around it, let's just trust "g++" to DTRT. 17601 predep_objects_CXX= 17602 postdep_objects_CXX= 17603 postdeps_CXX= 17604 ;; 17605esac 17606 17607 17608case " $postdeps_CXX " in 17609*" -lc "*) archive_cmds_need_lc_CXX=no ;; 17610esac 17611 compiler_lib_search_dirs_CXX= 17612if test -n "${compiler_lib_search_path_CXX}"; then 17613 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'` 17614fi 17615 17616 17617 17618 17619 17620 17621 17622 17623 17624 17625 17626 17627 17628 17629 17630 17631 17632 17633 17634 17635 17636 17637 17638 17639 17640 17641 17642 17643 17644 17645 17646 lt_prog_compiler_wl_CXX= 17647lt_prog_compiler_pic_CXX= 17648lt_prog_compiler_static_CXX= 17649 17650 17651 # C++ specific cases for pic, static, wl, etc. 17652 if test yes = "$GXX"; then 17653 lt_prog_compiler_wl_CXX='-Wl,' 17654 lt_prog_compiler_static_CXX='-static' 17655 17656 case $host_os in 17657 aix*) 17658 # All AIX code is PIC. 17659 if test ia64 = "$host_cpu"; then 17660 # AIX 5 now supports IA64 processor 17661 lt_prog_compiler_static_CXX='-Bstatic' 17662 fi 17663 lt_prog_compiler_pic_CXX='-fPIC' 17664 ;; 17665 17666 amigaos*) 17667 case $host_cpu in 17668 powerpc) 17669 # see comment about AmigaOS4 .so support 17670 lt_prog_compiler_pic_CXX='-fPIC' 17671 ;; 17672 m68k) 17673 # FIXME: we need at least 68020 code to build shared libraries, but 17674 # adding the '-m68020' flag to GCC prevents building anything better, 17675 # like '-m68040'. 17676 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 17677 ;; 17678 esac 17679 ;; 17680 17681 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 17682 # PIC is the default for these OSes. 17683 ;; 17684 mingw* | cygwin* | os2* | pw32* | cegcc*) 17685 # This hack is so that the source file can tell whether it is being 17686 # built for inclusion in a dll (and should export symbols for example). 17687 # Although the cygwin gcc ignores -fPIC, still need this for old-style 17688 # (--disable-auto-import) libraries 17689 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 17690 case $host_os in 17691 os2*) 17692 lt_prog_compiler_static_CXX='$wl-static' 17693 ;; 17694 esac 17695 ;; 17696 darwin* | rhapsody*) 17697 # PIC is the default on this platform 17698 # Common symbols not allowed in MH_DYLIB files 17699 lt_prog_compiler_pic_CXX='-fno-common' 17700 ;; 17701 *djgpp*) 17702 # DJGPP does not support shared libraries at all 17703 lt_prog_compiler_pic_CXX= 17704 ;; 17705 haiku*) 17706 # PIC is the default for Haiku. 17707 # The "-static" flag exists, but is broken. 17708 lt_prog_compiler_static_CXX= 17709 ;; 17710 interix[3-9]*) 17711 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 17712 # Instead, we relocate shared libraries at runtime. 17713 ;; 17714 sysv4*MP*) 17715 if test -d /usr/nec; then 17716 lt_prog_compiler_pic_CXX=-Kconform_pic 17717 fi 17718 ;; 17719 hpux*) 17720 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 17721 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 17722 # sets the default TLS model and affects inlining. 17723 case $host_cpu in 17724 hppa*64*) 17725 ;; 17726 *) 17727 lt_prog_compiler_pic_CXX='-fPIC' 17728 ;; 17729 esac 17730 ;; 17731 *qnx* | *nto*) 17732 # QNX uses GNU C++, but need to define -shared option too, otherwise 17733 # it will coredump. 17734 lt_prog_compiler_pic_CXX='-fPIC -shared' 17735 ;; 17736 *) 17737 lt_prog_compiler_pic_CXX='-fPIC' 17738 ;; 17739 esac 17740 else 17741 case $host_os in 17742 aix[4-9]*) 17743 # All AIX code is PIC. 17744 if test ia64 = "$host_cpu"; then 17745 # AIX 5 now supports IA64 processor 17746 lt_prog_compiler_static_CXX='-Bstatic' 17747 else 17748 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 17749 fi 17750 ;; 17751 chorus*) 17752 case $cc_basename in 17753 cxch68*) 17754 # Green Hills C++ Compiler 17755 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" 17756 ;; 17757 esac 17758 ;; 17759 mingw* | cygwin* | os2* | pw32* | cegcc*) 17760 # This hack is so that the source file can tell whether it is being 17761 # built for inclusion in a dll (and should export symbols for example). 17762 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 17763 ;; 17764 dgux*) 17765 case $cc_basename in 17766 ec++*) 17767 lt_prog_compiler_pic_CXX='-KPIC' 17768 ;; 17769 ghcx*) 17770 # Green Hills C++ Compiler 17771 lt_prog_compiler_pic_CXX='-pic' 17772 ;; 17773 *) 17774 ;; 17775 esac 17776 ;; 17777 freebsd* | dragonfly*) 17778 # FreeBSD uses GNU C++ 17779 ;; 17780 hpux9* | hpux10* | hpux11*) 17781 case $cc_basename in 17782 CC*) 17783 lt_prog_compiler_wl_CXX='-Wl,' 17784 lt_prog_compiler_static_CXX='$wl-a ${wl}archive' 17785 if test ia64 != "$host_cpu"; then 17786 lt_prog_compiler_pic_CXX='+Z' 17787 fi 17788 ;; 17789 aCC*) 17790 lt_prog_compiler_wl_CXX='-Wl,' 17791 lt_prog_compiler_static_CXX='$wl-a ${wl}archive' 17792 case $host_cpu in 17793 hppa*64*|ia64*) 17794 # +Z the default 17795 ;; 17796 *) 17797 lt_prog_compiler_pic_CXX='+Z' 17798 ;; 17799 esac 17800 ;; 17801 *) 17802 ;; 17803 esac 17804 ;; 17805 interix*) 17806 # This is c89, which is MS Visual C++ (no shared libs) 17807 # Anyone wants to do a port? 17808 ;; 17809 irix5* | irix6* | nonstopux*) 17810 case $cc_basename in 17811 CC*) 17812 lt_prog_compiler_wl_CXX='-Wl,' 17813 lt_prog_compiler_static_CXX='-non_shared' 17814 # CC pic flag -KPIC is the default. 17815 ;; 17816 *) 17817 ;; 17818 esac 17819 ;; 17820 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 17821 case $cc_basename in 17822 KCC*) 17823 # KAI C++ Compiler 17824 lt_prog_compiler_wl_CXX='--backend -Wl,' 17825 lt_prog_compiler_pic_CXX='-fPIC' 17826 ;; 17827 ecpc* ) 17828 # old Intel C++ for x86_64, which still supported -KPIC. 17829 lt_prog_compiler_wl_CXX='-Wl,' 17830 lt_prog_compiler_pic_CXX='-KPIC' 17831 lt_prog_compiler_static_CXX='-static' 17832 ;; 17833 icpc* ) 17834 # Intel C++, used to be incompatible with GCC. 17835 # ICC 10 doesn't accept -KPIC any more. 17836 lt_prog_compiler_wl_CXX='-Wl,' 17837 lt_prog_compiler_pic_CXX='-fPIC' 17838 lt_prog_compiler_static_CXX='-static' 17839 ;; 17840 pgCC* | pgcpp*) 17841 # Portland Group C++ compiler 17842 lt_prog_compiler_wl_CXX='-Wl,' 17843 lt_prog_compiler_pic_CXX='-fpic' 17844 lt_prog_compiler_static_CXX='-Bstatic' 17845 ;; 17846 cxx*) 17847 # Compaq C++ 17848 # Make sure the PIC flag is empty. It appears that all Alpha 17849 # Linux and Compaq Tru64 Unix objects are PIC. 17850 lt_prog_compiler_pic_CXX= 17851 lt_prog_compiler_static_CXX='-non_shared' 17852 ;; 17853 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) 17854 # IBM XL 8.0, 9.0 on PPC and BlueGene 17855 lt_prog_compiler_wl_CXX='-Wl,' 17856 lt_prog_compiler_pic_CXX='-qpic' 17857 lt_prog_compiler_static_CXX='-qstaticlink' 17858 ;; 17859 *) 17860 case `$CC -V 2>&1 | sed 5q` in 17861 *Sun\ C*) 17862 # Sun C++ 5.9 17863 lt_prog_compiler_pic_CXX='-KPIC' 17864 lt_prog_compiler_static_CXX='-Bstatic' 17865 lt_prog_compiler_wl_CXX='-Qoption ld ' 17866 ;; 17867 esac 17868 ;; 17869 esac 17870 ;; 17871 lynxos*) 17872 ;; 17873 m88k*) 17874 ;; 17875 mvs*) 17876 case $cc_basename in 17877 cxx*) 17878 lt_prog_compiler_pic_CXX='-W c,exportall' 17879 ;; 17880 *) 17881 ;; 17882 esac 17883 ;; 17884 netbsd*) 17885 ;; 17886 *qnx* | *nto*) 17887 # QNX uses GNU C++, but need to define -shared option too, otherwise 17888 # it will coredump. 17889 lt_prog_compiler_pic_CXX='-fPIC -shared' 17890 ;; 17891 osf3* | osf4* | osf5*) 17892 case $cc_basename in 17893 KCC*) 17894 lt_prog_compiler_wl_CXX='--backend -Wl,' 17895 ;; 17896 RCC*) 17897 # Rational C++ 2.4.1 17898 lt_prog_compiler_pic_CXX='-pic' 17899 ;; 17900 cxx*) 17901 # Digital/Compaq C++ 17902 lt_prog_compiler_wl_CXX='-Wl,' 17903 # Make sure the PIC flag is empty. It appears that all Alpha 17904 # Linux and Compaq Tru64 Unix objects are PIC. 17905 lt_prog_compiler_pic_CXX= 17906 lt_prog_compiler_static_CXX='-non_shared' 17907 ;; 17908 *) 17909 ;; 17910 esac 17911 ;; 17912 psos*) 17913 ;; 17914 solaris*) 17915 case $cc_basename in 17916 CC* | sunCC*) 17917 # Sun C++ 4.2, 5.x and Centerline C++ 17918 lt_prog_compiler_pic_CXX='-KPIC' 17919 lt_prog_compiler_static_CXX='-Bstatic' 17920 lt_prog_compiler_wl_CXX='-Qoption ld ' 17921 ;; 17922 gcx*) 17923 # Green Hills C++ Compiler 17924 lt_prog_compiler_pic_CXX='-PIC' 17925 ;; 17926 *) 17927 ;; 17928 esac 17929 ;; 17930 sunos4*) 17931 case $cc_basename in 17932 CC*) 17933 # Sun C++ 4.x 17934 lt_prog_compiler_pic_CXX='-pic' 17935 lt_prog_compiler_static_CXX='-Bstatic' 17936 ;; 17937 lcc*) 17938 # Lucid 17939 lt_prog_compiler_pic_CXX='-pic' 17940 ;; 17941 *) 17942 ;; 17943 esac 17944 ;; 17945 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 17946 case $cc_basename in 17947 CC*) 17948 lt_prog_compiler_wl_CXX='-Wl,' 17949 lt_prog_compiler_pic_CXX='-KPIC' 17950 lt_prog_compiler_static_CXX='-Bstatic' 17951 ;; 17952 esac 17953 ;; 17954 tandem*) 17955 case $cc_basename in 17956 NCC*) 17957 # NonStop-UX NCC 3.20 17958 lt_prog_compiler_pic_CXX='-KPIC' 17959 ;; 17960 *) 17961 ;; 17962 esac 17963 ;; 17964 vxworks*) 17965 ;; 17966 *) 17967 lt_prog_compiler_can_build_shared_CXX=no 17968 ;; 17969 esac 17970 fi 17971 17972case $host_os in 17973 # For platforms that do not support PIC, -DPIC is meaningless: 17974 *djgpp*) 17975 lt_prog_compiler_pic_CXX= 17976 ;; 17977 *) 17978 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 17979 ;; 17980esac 17981 17982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 17983$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 17984if ${lt_cv_prog_compiler_pic_CXX+:} false; then : 17985 $as_echo_n "(cached) " >&6 17986else 17987 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX 17988fi 17989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 17990$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; } 17991lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX 17992 17993# 17994# Check to make sure the PIC flag actually works. 17995# 17996if test -n "$lt_prog_compiler_pic_CXX"; then 17997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 17998$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } 17999if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then : 18000 $as_echo_n "(cached) " >&6 18001else 18002 lt_cv_prog_compiler_pic_works_CXX=no 18003 ac_outfile=conftest.$ac_objext 18004 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 18005 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment 18006 # Insert the option either (1) after the last *FLAGS variable, or 18007 # (2) before a word containing "conftest.", or (3) at the end. 18008 # Note that $ac_compile itself does not contain backslashes and begins 18009 # with a dollar sign (not a hyphen), so the echo should work correctly. 18010 # The option is referenced via a variable to avoid confusing sed. 18011 lt_compile=`echo "$ac_compile" | $SED \ 18012 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 18013 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 18014 -e 's:$: $lt_compiler_flag:'` 18015 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 18016 (eval "$lt_compile" 2>conftest.err) 18017 ac_status=$? 18018 cat conftest.err >&5 18019 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18020 if (exit $ac_status) && test -s "$ac_outfile"; then 18021 # The compiler can only warn and ignore the option if not recognized 18022 # So say no if there are warnings other than the usual output. 18023 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 18024 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 18025 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 18026 lt_cv_prog_compiler_pic_works_CXX=yes 18027 fi 18028 fi 18029 $RM conftest* 18030 18031fi 18032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 18033$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } 18034 18035if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then 18036 case $lt_prog_compiler_pic_CXX in 18037 "" | " "*) ;; 18038 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 18039 esac 18040else 18041 lt_prog_compiler_pic_CXX= 18042 lt_prog_compiler_can_build_shared_CXX=no 18043fi 18044 18045fi 18046 18047 18048 18049 18050 18051# 18052# Check to make sure the static flag actually works. 18053# 18054wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 18055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 18056$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 18057if ${lt_cv_prog_compiler_static_works_CXX+:} false; then : 18058 $as_echo_n "(cached) " >&6 18059else 18060 lt_cv_prog_compiler_static_works_CXX=no 18061 save_LDFLAGS=$LDFLAGS 18062 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 18063 echo "$lt_simple_link_test_code" > conftest.$ac_ext 18064 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 18065 # The linker can only warn and ignore the option if not recognized 18066 # So say no if there are warnings 18067 if test -s conftest.err; then 18068 # Append any errors to the config.log. 18069 cat conftest.err 1>&5 18070 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 18071 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 18072 if diff conftest.exp conftest.er2 >/dev/null; then 18073 lt_cv_prog_compiler_static_works_CXX=yes 18074 fi 18075 else 18076 lt_cv_prog_compiler_static_works_CXX=yes 18077 fi 18078 fi 18079 $RM -r conftest* 18080 LDFLAGS=$save_LDFLAGS 18081 18082fi 18083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 18084$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } 18085 18086if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then 18087 : 18088else 18089 lt_prog_compiler_static_CXX= 18090fi 18091 18092 18093 18094 18095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 18096$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 18097if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 18098 $as_echo_n "(cached) " >&6 18099else 18100 lt_cv_prog_compiler_c_o_CXX=no 18101 $RM -r conftest 2>/dev/null 18102 mkdir conftest 18103 cd conftest 18104 mkdir out 18105 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 18106 18107 lt_compiler_flag="-o out/conftest2.$ac_objext" 18108 # Insert the option either (1) after the last *FLAGS variable, or 18109 # (2) before a word containing "conftest.", or (3) at the end. 18110 # Note that $ac_compile itself does not contain backslashes and begins 18111 # with a dollar sign (not a hyphen), so the echo should work correctly. 18112 lt_compile=`echo "$ac_compile" | $SED \ 18113 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 18114 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 18115 -e 's:$: $lt_compiler_flag:'` 18116 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 18117 (eval "$lt_compile" 2>out/conftest.err) 18118 ac_status=$? 18119 cat out/conftest.err >&5 18120 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18121 if (exit $ac_status) && test -s out/conftest2.$ac_objext 18122 then 18123 # The compiler can only warn and ignore the option if not recognized 18124 # So say no if there are warnings 18125 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 18126 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 18127 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 18128 lt_cv_prog_compiler_c_o_CXX=yes 18129 fi 18130 fi 18131 chmod u+w . 2>&5 18132 $RM conftest* 18133 # SGI C++ compiler will create directory out/ii_files/ for 18134 # template instantiation 18135 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 18136 $RM out/* && rmdir out 18137 cd .. 18138 $RM -r conftest 18139 $RM conftest* 18140 18141fi 18142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 18143$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 18144 18145 18146 18147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 18148$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 18149if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 18150 $as_echo_n "(cached) " >&6 18151else 18152 lt_cv_prog_compiler_c_o_CXX=no 18153 $RM -r conftest 2>/dev/null 18154 mkdir conftest 18155 cd conftest 18156 mkdir out 18157 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 18158 18159 lt_compiler_flag="-o out/conftest2.$ac_objext" 18160 # Insert the option either (1) after the last *FLAGS variable, or 18161 # (2) before a word containing "conftest.", or (3) at the end. 18162 # Note that $ac_compile itself does not contain backslashes and begins 18163 # with a dollar sign (not a hyphen), so the echo should work correctly. 18164 lt_compile=`echo "$ac_compile" | $SED \ 18165 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 18166 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 18167 -e 's:$: $lt_compiler_flag:'` 18168 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 18169 (eval "$lt_compile" 2>out/conftest.err) 18170 ac_status=$? 18171 cat out/conftest.err >&5 18172 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18173 if (exit $ac_status) && test -s out/conftest2.$ac_objext 18174 then 18175 # The compiler can only warn and ignore the option if not recognized 18176 # So say no if there are warnings 18177 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 18178 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 18179 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 18180 lt_cv_prog_compiler_c_o_CXX=yes 18181 fi 18182 fi 18183 chmod u+w . 2>&5 18184 $RM conftest* 18185 # SGI C++ compiler will create directory out/ii_files/ for 18186 # template instantiation 18187 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 18188 $RM out/* && rmdir out 18189 cd .. 18190 $RM -r conftest 18191 $RM conftest* 18192 18193fi 18194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 18195$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 18196 18197 18198 18199 18200hard_links=nottested 18201if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then 18202 # do not overwrite the value of need_locks provided by the user 18203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 18204$as_echo_n "checking if we can lock with hard links... " >&6; } 18205 hard_links=yes 18206 $RM conftest* 18207 ln conftest.a conftest.b 2>/dev/null && hard_links=no 18208 touch conftest.a 18209 ln conftest.a conftest.b 2>&5 || hard_links=no 18210 ln conftest.a conftest.b 2>/dev/null && hard_links=no 18211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 18212$as_echo "$hard_links" >&6; } 18213 if test no = "$hard_links"; then 18214 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 18215$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 18216 need_locks=warn 18217 fi 18218else 18219 need_locks=no 18220fi 18221 18222 18223 18224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 18225$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 18226 18227 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 18228 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 18229 case $host_os in 18230 aix[4-9]*) 18231 # If we're using GNU nm, then we don't want the "-C" option. 18232 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 18233 # Without the "-l" option, or with the "-B" option, AIX nm treats 18234 # weak defined symbols like other global defined symbols, whereas 18235 # GNU nm marks them as "W". 18236 # While the 'weak' keyword is ignored in the Export File, we need 18237 # it in the Import File for the 'aix-soname' feature, so we have 18238 # to replace the "-B" option with "-P" for AIX nm. 18239 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 18240 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' 18241 else 18242 export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' 18243 fi 18244 ;; 18245 pw32*) 18246 export_symbols_cmds_CXX=$ltdll_cmds 18247 ;; 18248 cygwin* | mingw* | cegcc*) 18249 case $cc_basename in 18250 cl*) 18251 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 18252 ;; 18253 *) 18254 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' 18255 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 18256 ;; 18257 esac 18258 ;; 18259 *) 18260 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 18261 ;; 18262 esac 18263 18264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 18265$as_echo "$ld_shlibs_CXX" >&6; } 18266test no = "$ld_shlibs_CXX" && can_build_shared=no 18267 18268with_gnu_ld_CXX=$with_gnu_ld 18269 18270 18271 18272 18273 18274 18275# 18276# Do we need to explicitly link libc? 18277# 18278case "x$archive_cmds_need_lc_CXX" in 18279x|xyes) 18280 # Assume -lc should be added 18281 archive_cmds_need_lc_CXX=yes 18282 18283 if test yes,yes = "$GCC,$enable_shared"; then 18284 case $archive_cmds_CXX in 18285 *'~'*) 18286 # FIXME: we may have to deal with multi-command sequences. 18287 ;; 18288 '$CC '*) 18289 # Test whether the compiler implicitly links with -lc since on some 18290 # systems, -lgcc has to come before -lc. If gcc already passes -lc 18291 # to ld, don't add -lc before -lgcc. 18292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 18293$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 18294if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then : 18295 $as_echo_n "(cached) " >&6 18296else 18297 $RM conftest* 18298 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 18299 18300 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 18301 (eval $ac_compile) 2>&5 18302 ac_status=$? 18303 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18304 test $ac_status = 0; } 2>conftest.err; then 18305 soname=conftest 18306 lib=conftest 18307 libobjs=conftest.$ac_objext 18308 deplibs= 18309 wl=$lt_prog_compiler_wl_CXX 18310 pic_flag=$lt_prog_compiler_pic_CXX 18311 compiler_flags=-v 18312 linker_flags=-v 18313 verstring= 18314 output_objdir=. 18315 libname=conftest 18316 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 18317 allow_undefined_flag_CXX= 18318 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 18319 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 18320 ac_status=$? 18321 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18322 test $ac_status = 0; } 18323 then 18324 lt_cv_archive_cmds_need_lc_CXX=no 18325 else 18326 lt_cv_archive_cmds_need_lc_CXX=yes 18327 fi 18328 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 18329 else 18330 cat conftest.err 1>&5 18331 fi 18332 $RM conftest* 18333 18334fi 18335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 18336$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } 18337 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX 18338 ;; 18339 esac 18340 fi 18341 ;; 18342esac 18343 18344 18345 18346 18347 18348 18349 18350 18351 18352 18353 18354 18355 18356 18357 18358 18359 18360 18361 18362 18363 18364 18365 18366 18367 18368 18369 18370 18371 18372 18373 18374 18375 18376 18377 18378 18379 18380 18381 18382 18383 18384 18385 18386 18387 18388 18389 18390 18391 18392 18393 18394 18395 18396 18397 18398 18399 18400 18401 18402 18403 18404 18405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 18406$as_echo_n "checking dynamic linker characteristics... " >&6; } 18407 18408library_names_spec= 18409libname_spec='lib$name' 18410soname_spec= 18411shrext_cmds=.so 18412postinstall_cmds= 18413postuninstall_cmds= 18414finish_cmds= 18415finish_eval= 18416shlibpath_var= 18417shlibpath_overrides_runpath=unknown 18418version_type=none 18419dynamic_linker="$host_os ld.so" 18420sys_lib_dlsearch_path_spec="/lib /usr/lib" 18421need_lib_prefix=unknown 18422hardcode_into_libs=no 18423 18424# when you set need_version to no, make sure it does not cause -set_version 18425# flags to be left without arguments 18426need_version=unknown 18427 18428 18429 18430case $host_os in 18431aix3*) 18432 version_type=linux # correct to gnu/linux during the next big refactor 18433 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 18434 shlibpath_var=LIBPATH 18435 18436 # AIX 3 has no versioning support, so we append a major version to the name. 18437 soname_spec='$libname$release$shared_ext$major' 18438 ;; 18439 18440aix[4-9]*) 18441 version_type=linux # correct to gnu/linux during the next big refactor 18442 need_lib_prefix=no 18443 need_version=no 18444 hardcode_into_libs=yes 18445 if test ia64 = "$host_cpu"; then 18446 # AIX 5 supports IA64 18447 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 18448 shlibpath_var=LD_LIBRARY_PATH 18449 else 18450 # With GCC up to 2.95.x, collect2 would create an import file 18451 # for dependence libraries. The import file would start with 18452 # the line '#! .'. This would cause the generated library to 18453 # depend on '.', always an invalid library. This was fixed in 18454 # development snapshots of GCC prior to 3.0. 18455 case $host_os in 18456 aix4 | aix4.[01] | aix4.[01].*) 18457 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 18458 echo ' yes ' 18459 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 18460 : 18461 else 18462 can_build_shared=no 18463 fi 18464 ;; 18465 esac 18466 # Using Import Files as archive members, it is possible to support 18467 # filename-based versioning of shared library archives on AIX. While 18468 # this would work for both with and without runtime linking, it will 18469 # prevent static linking of such archives. So we do filename-based 18470 # shared library versioning with .so extension only, which is used 18471 # when both runtime linking and shared linking is enabled. 18472 # Unfortunately, runtime linking may impact performance, so we do 18473 # not want this to be the default eventually. Also, we use the 18474 # versioned .so libs for executables only if there is the -brtl 18475 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 18476 # To allow for filename-based versioning support, we need to create 18477 # libNAME.so.V as an archive file, containing: 18478 # *) an Import File, referring to the versioned filename of the 18479 # archive as well as the shared archive member, telling the 18480 # bitwidth (32 or 64) of that shared object, and providing the 18481 # list of exported symbols of that shared object, eventually 18482 # decorated with the 'weak' keyword 18483 # *) the shared object with the F_LOADONLY flag set, to really avoid 18484 # it being seen by the linker. 18485 # At run time we better use the real file rather than another symlink, 18486 # but for link time we create the symlink libNAME.so -> libNAME.so.V 18487 18488 case $with_aix_soname,$aix_use_runtimelinking in 18489 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 18490 # soname into executable. Probably we can add versioning support to 18491 # collect2, so additional links can be useful in future. 18492 aix,yes) # traditional libtool 18493 dynamic_linker='AIX unversionable lib.so' 18494 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 18495 # instead of lib<name>.a to let people know that these are not 18496 # typical AIX shared libraries. 18497 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18498 ;; 18499 aix,no) # traditional AIX only 18500 dynamic_linker='AIX lib.a(lib.so.V)' 18501 # We preserve .a as extension for shared libraries through AIX4.2 18502 # and later when we are not doing run time linking. 18503 library_names_spec='$libname$release.a $libname.a' 18504 soname_spec='$libname$release$shared_ext$major' 18505 ;; 18506 svr4,*) # full svr4 only 18507 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 18508 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 18509 # We do not specify a path in Import Files, so LIBPATH fires. 18510 shlibpath_overrides_runpath=yes 18511 ;; 18512 *,yes) # both, prefer svr4 18513 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 18514 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 18515 # unpreferred sharedlib libNAME.a needs extra handling 18516 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' 18517 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' 18518 # We do not specify a path in Import Files, so LIBPATH fires. 18519 shlibpath_overrides_runpath=yes 18520 ;; 18521 *,no) # both, prefer aix 18522 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 18523 library_names_spec='$libname$release.a $libname.a' 18524 soname_spec='$libname$release$shared_ext$major' 18525 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 18526 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' 18527 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' 18528 ;; 18529 esac 18530 shlibpath_var=LIBPATH 18531 fi 18532 ;; 18533 18534amigaos*) 18535 case $host_cpu in 18536 powerpc) 18537 # Since July 2007 AmigaOS4 officially supports .so libraries. 18538 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 18539 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18540 ;; 18541 m68k) 18542 library_names_spec='$libname.ixlibrary $libname.a' 18543 # Create ${libname}_ixlibrary.a entries in /sys/libs. 18544 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 18545 ;; 18546 esac 18547 ;; 18548 18549beos*) 18550 library_names_spec='$libname$shared_ext' 18551 dynamic_linker="$host_os ld.so" 18552 shlibpath_var=LIBRARY_PATH 18553 ;; 18554 18555bsdi[45]*) 18556 version_type=linux # correct to gnu/linux during the next big refactor 18557 need_version=no 18558 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18559 soname_spec='$libname$release$shared_ext$major' 18560 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 18561 shlibpath_var=LD_LIBRARY_PATH 18562 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 18563 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 18564 # the default ld.so.conf also contains /usr/contrib/lib and 18565 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 18566 # libtool to hard-code these into programs 18567 ;; 18568 18569cygwin* | mingw* | pw32* | cegcc*) 18570 version_type=windows 18571 shrext_cmds=.dll 18572 need_version=no 18573 need_lib_prefix=no 18574 18575 case $GCC,$cc_basename in 18576 yes,*) 18577 # gcc 18578 library_names_spec='$libname.dll.a' 18579 # DLL is installed to $(libdir)/../bin by postinstall_cmds 18580 postinstall_cmds='base_file=`basename \$file`~ 18581 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 18582 dldir=$destdir/`dirname \$dlpath`~ 18583 test -d \$dldir || mkdir -p \$dldir~ 18584 $install_prog $dir/$dlname \$dldir/$dlname~ 18585 chmod a+x \$dldir/$dlname~ 18586 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 18587 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 18588 fi' 18589 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 18590 dlpath=$dir/\$dldll~ 18591 $RM \$dlpath' 18592 shlibpath_overrides_runpath=yes 18593 18594 case $host_os in 18595 cygwin*) 18596 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 18597 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 18598 18599 ;; 18600 mingw* | cegcc*) 18601 # MinGW DLLs use traditional 'lib' prefix 18602 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 18603 ;; 18604 pw32*) 18605 # pw32 DLLs use 'pw' prefix rather than 'lib' 18606 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 18607 ;; 18608 esac 18609 dynamic_linker='Win32 ld.exe' 18610 ;; 18611 18612 *,cl*) 18613 # Native MSVC 18614 libname_spec='$name' 18615 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 18616 library_names_spec='$libname.dll.lib' 18617 18618 case $build_os in 18619 mingw*) 18620 sys_lib_search_path_spec= 18621 lt_save_ifs=$IFS 18622 IFS=';' 18623 for lt_path in $LIB 18624 do 18625 IFS=$lt_save_ifs 18626 # Let DOS variable expansion print the short 8.3 style file name. 18627 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 18628 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 18629 done 18630 IFS=$lt_save_ifs 18631 # Convert to MSYS style. 18632 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 18633 ;; 18634 cygwin*) 18635 # Convert to unix form, then to dos form, then back to unix form 18636 # but this time dos style (no spaces!) so that the unix form looks 18637 # like /cygdrive/c/PROGRA~1:/cygdr... 18638 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 18639 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 18640 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 18641 ;; 18642 *) 18643 sys_lib_search_path_spec=$LIB 18644 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 18645 # It is most probably a Windows format PATH. 18646 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 18647 else 18648 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 18649 fi 18650 # FIXME: find the short name or the path components, as spaces are 18651 # common. (e.g. "Program Files" -> "PROGRA~1") 18652 ;; 18653 esac 18654 18655 # DLL is installed to $(libdir)/../bin by postinstall_cmds 18656 postinstall_cmds='base_file=`basename \$file`~ 18657 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 18658 dldir=$destdir/`dirname \$dlpath`~ 18659 test -d \$dldir || mkdir -p \$dldir~ 18660 $install_prog $dir/$dlname \$dldir/$dlname' 18661 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 18662 dlpath=$dir/\$dldll~ 18663 $RM \$dlpath' 18664 shlibpath_overrides_runpath=yes 18665 dynamic_linker='Win32 link.exe' 18666 ;; 18667 18668 *) 18669 # Assume MSVC wrapper 18670 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 18671 dynamic_linker='Win32 ld.exe' 18672 ;; 18673 esac 18674 # FIXME: first we should search . and the directory the executable is in 18675 shlibpath_var=PATH 18676 ;; 18677 18678darwin* | rhapsody*) 18679 dynamic_linker="$host_os dyld" 18680 version_type=darwin 18681 need_lib_prefix=no 18682 need_version=no 18683 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 18684 soname_spec='$libname$release$major$shared_ext' 18685 shlibpath_overrides_runpath=yes 18686 shlibpath_var=DYLD_LIBRARY_PATH 18687 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 18688 18689 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 18690 ;; 18691 18692dgux*) 18693 version_type=linux # correct to gnu/linux during the next big refactor 18694 need_lib_prefix=no 18695 need_version=no 18696 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18697 soname_spec='$libname$release$shared_ext$major' 18698 shlibpath_var=LD_LIBRARY_PATH 18699 ;; 18700 18701freebsd* | dragonfly*) 18702 # DragonFly does not have aout. When/if they implement a new 18703 # versioning mechanism, adjust this. 18704 if test -x /usr/bin/objformat; then 18705 objformat=`/usr/bin/objformat` 18706 else 18707 case $host_os in 18708 freebsd[23].*) objformat=aout ;; 18709 *) objformat=elf ;; 18710 esac 18711 fi 18712 version_type=freebsd-$objformat 18713 case $version_type in 18714 freebsd-elf*) 18715 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18716 soname_spec='$libname$release$shared_ext$major' 18717 need_version=no 18718 need_lib_prefix=no 18719 ;; 18720 freebsd-*) 18721 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 18722 need_version=yes 18723 ;; 18724 esac 18725 shlibpath_var=LD_LIBRARY_PATH 18726 case $host_os in 18727 freebsd2.*) 18728 shlibpath_overrides_runpath=yes 18729 ;; 18730 freebsd3.[01]* | freebsdelf3.[01]*) 18731 shlibpath_overrides_runpath=yes 18732 hardcode_into_libs=yes 18733 ;; 18734 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 18735 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 18736 shlibpath_overrides_runpath=no 18737 hardcode_into_libs=yes 18738 ;; 18739 *) # from 4.6 on, and DragonFly 18740 shlibpath_overrides_runpath=yes 18741 hardcode_into_libs=yes 18742 ;; 18743 esac 18744 ;; 18745 18746haiku*) 18747 version_type=linux # correct to gnu/linux during the next big refactor 18748 need_lib_prefix=no 18749 need_version=no 18750 dynamic_linker="$host_os runtime_loader" 18751 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18752 soname_spec='$libname$release$shared_ext$major' 18753 shlibpath_var=LIBRARY_PATH 18754 shlibpath_overrides_runpath=no 18755 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 18756 hardcode_into_libs=yes 18757 ;; 18758 18759hpux9* | hpux10* | hpux11*) 18760 # Give a soname corresponding to the major version so that dld.sl refuses to 18761 # link against other versions. 18762 version_type=sunos 18763 need_lib_prefix=no 18764 need_version=no 18765 case $host_cpu in 18766 ia64*) 18767 shrext_cmds='.so' 18768 hardcode_into_libs=yes 18769 dynamic_linker="$host_os dld.so" 18770 shlibpath_var=LD_LIBRARY_PATH 18771 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18772 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18773 soname_spec='$libname$release$shared_ext$major' 18774 if test 32 = "$HPUX_IA64_MODE"; then 18775 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 18776 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 18777 else 18778 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 18779 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 18780 fi 18781 ;; 18782 hppa*64*) 18783 shrext_cmds='.sl' 18784 hardcode_into_libs=yes 18785 dynamic_linker="$host_os dld.sl" 18786 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 18787 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18788 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18789 soname_spec='$libname$release$shared_ext$major' 18790 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 18791 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18792 ;; 18793 *) 18794 shrext_cmds='.sl' 18795 dynamic_linker="$host_os dld.sl" 18796 shlibpath_var=SHLIB_PATH 18797 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 18798 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18799 soname_spec='$libname$release$shared_ext$major' 18800 ;; 18801 esac 18802 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 18803 postinstall_cmds='chmod 555 $lib' 18804 # or fails outright, so override atomically: 18805 install_override_mode=555 18806 ;; 18807 18808interix[3-9]*) 18809 version_type=linux # correct to gnu/linux during the next big refactor 18810 need_lib_prefix=no 18811 need_version=no 18812 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18813 soname_spec='$libname$release$shared_ext$major' 18814 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 18815 shlibpath_var=LD_LIBRARY_PATH 18816 shlibpath_overrides_runpath=no 18817 hardcode_into_libs=yes 18818 ;; 18819 18820irix5* | irix6* | nonstopux*) 18821 case $host_os in 18822 nonstopux*) version_type=nonstopux ;; 18823 *) 18824 if test yes = "$lt_cv_prog_gnu_ld"; then 18825 version_type=linux # correct to gnu/linux during the next big refactor 18826 else 18827 version_type=irix 18828 fi ;; 18829 esac 18830 need_lib_prefix=no 18831 need_version=no 18832 soname_spec='$libname$release$shared_ext$major' 18833 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 18834 case $host_os in 18835 irix5* | nonstopux*) 18836 libsuff= shlibsuff= 18837 ;; 18838 *) 18839 case $LD in # libtool.m4 will add one of these switches to LD 18840 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 18841 libsuff= shlibsuff= libmagic=32-bit;; 18842 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 18843 libsuff=32 shlibsuff=N32 libmagic=N32;; 18844 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 18845 libsuff=64 shlibsuff=64 libmagic=64-bit;; 18846 *) libsuff= shlibsuff= libmagic=never-match;; 18847 esac 18848 ;; 18849 esac 18850 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 18851 shlibpath_overrides_runpath=no 18852 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 18853 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 18854 hardcode_into_libs=yes 18855 ;; 18856 18857# No shared lib support for Linux oldld, aout, or coff. 18858linux*oldld* | linux*aout* | linux*coff*) 18859 dynamic_linker=no 18860 ;; 18861 18862linux*android*) 18863 version_type=none # Android doesn't support versioned libraries. 18864 need_lib_prefix=no 18865 need_version=no 18866 library_names_spec='$libname$release$shared_ext' 18867 soname_spec='$libname$release$shared_ext' 18868 finish_cmds= 18869 shlibpath_var=LD_LIBRARY_PATH 18870 shlibpath_overrides_runpath=yes 18871 18872 # This implies no fast_install, which is unacceptable. 18873 # Some rework will be needed to allow for fast_install 18874 # before this can be enabled. 18875 hardcode_into_libs=yes 18876 18877 dynamic_linker='Android linker' 18878 # Don't embed -rpath directories since the linker doesn't support them. 18879 hardcode_libdir_flag_spec_CXX='-L$libdir' 18880 ;; 18881 18882# This must be glibc/ELF. 18883linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 18884 version_type=linux # correct to gnu/linux during the next big refactor 18885 need_lib_prefix=no 18886 need_version=no 18887 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18888 soname_spec='$libname$release$shared_ext$major' 18889 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 18890 shlibpath_var=LD_LIBRARY_PATH 18891 shlibpath_overrides_runpath=no 18892 18893 # Some binutils ld are patched to set DT_RUNPATH 18894 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 18895 $as_echo_n "(cached) " >&6 18896else 18897 lt_cv_shlibpath_overrides_runpath=no 18898 save_LDFLAGS=$LDFLAGS 18899 save_libdir=$libdir 18900 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ 18901 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" 18902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18903/* end confdefs.h. */ 18904 18905int 18906main () 18907{ 18908 18909 ; 18910 return 0; 18911} 18912_ACEOF 18913if ac_fn_cxx_try_link "$LINENO"; then : 18914 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 18915 lt_cv_shlibpath_overrides_runpath=yes 18916fi 18917fi 18918rm -f core conftest.err conftest.$ac_objext \ 18919 conftest$ac_exeext conftest.$ac_ext 18920 LDFLAGS=$save_LDFLAGS 18921 libdir=$save_libdir 18922 18923fi 18924 18925 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 18926 18927 # This implies no fast_install, which is unacceptable. 18928 # Some rework will be needed to allow for fast_install 18929 # before this can be enabled. 18930 hardcode_into_libs=yes 18931 18932 # Ideally, we could use ldconfig to report *all* directores which are 18933 # searched for libraries, however this is still not possible. Aside from not 18934 # being certain /sbin/ldconfig is available, command 18935 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 18936 # even though it is searched at run-time. Try to do the best guess by 18937 # appending ld.so.conf contents (and includes) to the search path. 18938 if test -f /etc/ld.so.conf; then 18939 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` 18940 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 18941 fi 18942 18943 # We used to test for /lib/ld.so.1 and disable shared libraries on 18944 # powerpc, because MkLinux only supported shared libraries with the 18945 # GNU dynamic linker. Since this was broken with cross compilers, 18946 # most powerpc-linux boxes support dynamic linking these days and 18947 # people can always --disable-shared, the test was removed, and we 18948 # assume the GNU/Linux dynamic linker is in use. 18949 dynamic_linker='GNU/Linux ld.so' 18950 ;; 18951 18952netbsd*) 18953 version_type=sunos 18954 need_lib_prefix=no 18955 need_version=no 18956 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 18957 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 18958 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18959 dynamic_linker='NetBSD (a.out) ld.so' 18960 else 18961 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18962 soname_spec='$libname$release$shared_ext$major' 18963 dynamic_linker='NetBSD ld.elf_so' 18964 fi 18965 shlibpath_var=LD_LIBRARY_PATH 18966 shlibpath_overrides_runpath=yes 18967 hardcode_into_libs=yes 18968 ;; 18969 18970newsos6) 18971 version_type=linux # correct to gnu/linux during the next big refactor 18972 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18973 shlibpath_var=LD_LIBRARY_PATH 18974 shlibpath_overrides_runpath=yes 18975 ;; 18976 18977*nto* | *qnx*) 18978 version_type=qnx 18979 need_lib_prefix=no 18980 need_version=no 18981 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18982 soname_spec='$libname$release$shared_ext$major' 18983 shlibpath_var=LD_LIBRARY_PATH 18984 shlibpath_overrides_runpath=no 18985 hardcode_into_libs=yes 18986 dynamic_linker='ldqnx.so' 18987 ;; 18988 18989openbsd* | bitrig*) 18990 version_type=sunos 18991 sys_lib_dlsearch_path_spec=/usr/lib 18992 need_lib_prefix=no 18993 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 18994 need_version=no 18995 else 18996 need_version=yes 18997 fi 18998 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 18999 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 19000 shlibpath_var=LD_LIBRARY_PATH 19001 shlibpath_overrides_runpath=yes 19002 ;; 19003 19004os2*) 19005 libname_spec='$name' 19006 version_type=windows 19007 shrext_cmds=.dll 19008 need_version=no 19009 need_lib_prefix=no 19010 # OS/2 can only load a DLL with a base name of 8 characters or less. 19011 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 19012 v=$($ECHO $release$versuffix | tr -d .-); 19013 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 19014 $ECHO $n$v`$shared_ext' 19015 library_names_spec='${libname}_dll.$libext' 19016 dynamic_linker='OS/2 ld.exe' 19017 shlibpath_var=BEGINLIBPATH 19018 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 19019 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 19020 postinstall_cmds='base_file=`basename \$file`~ 19021 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 19022 dldir=$destdir/`dirname \$dlpath`~ 19023 test -d \$dldir || mkdir -p \$dldir~ 19024 $install_prog $dir/$dlname \$dldir/$dlname~ 19025 chmod a+x \$dldir/$dlname~ 19026 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 19027 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 19028 fi' 19029 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 19030 dlpath=$dir/\$dldll~ 19031 $RM \$dlpath' 19032 ;; 19033 19034osf3* | osf4* | osf5*) 19035 version_type=osf 19036 need_lib_prefix=no 19037 need_version=no 19038 soname_spec='$libname$release$shared_ext$major' 19039 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 19040 shlibpath_var=LD_LIBRARY_PATH 19041 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 19042 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 19043 ;; 19044 19045rdos*) 19046 dynamic_linker=no 19047 ;; 19048 19049solaris*) 19050 version_type=linux # correct to gnu/linux during the next big refactor 19051 need_lib_prefix=no 19052 need_version=no 19053 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 19054 soname_spec='$libname$release$shared_ext$major' 19055 shlibpath_var=LD_LIBRARY_PATH 19056 shlibpath_overrides_runpath=yes 19057 hardcode_into_libs=yes 19058 # ldd complains unless libraries are executable 19059 postinstall_cmds='chmod +x $lib' 19060 ;; 19061 19062sunos4*) 19063 version_type=sunos 19064 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 19065 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 19066 shlibpath_var=LD_LIBRARY_PATH 19067 shlibpath_overrides_runpath=yes 19068 if test yes = "$with_gnu_ld"; then 19069 need_lib_prefix=no 19070 fi 19071 need_version=yes 19072 ;; 19073 19074sysv4 | sysv4.3*) 19075 version_type=linux # correct to gnu/linux during the next big refactor 19076 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 19077 soname_spec='$libname$release$shared_ext$major' 19078 shlibpath_var=LD_LIBRARY_PATH 19079 case $host_vendor in 19080 sni) 19081 shlibpath_overrides_runpath=no 19082 need_lib_prefix=no 19083 runpath_var=LD_RUN_PATH 19084 ;; 19085 siemens) 19086 need_lib_prefix=no 19087 ;; 19088 motorola) 19089 need_lib_prefix=no 19090 need_version=no 19091 shlibpath_overrides_runpath=no 19092 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 19093 ;; 19094 esac 19095 ;; 19096 19097sysv4*MP*) 19098 if test -d /usr/nec; then 19099 version_type=linux # correct to gnu/linux during the next big refactor 19100 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 19101 soname_spec='$libname$shared_ext.$major' 19102 shlibpath_var=LD_LIBRARY_PATH 19103 fi 19104 ;; 19105 19106sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 19107 version_type=sco 19108 need_lib_prefix=no 19109 need_version=no 19110 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 19111 soname_spec='$libname$release$shared_ext$major' 19112 shlibpath_var=LD_LIBRARY_PATH 19113 shlibpath_overrides_runpath=yes 19114 hardcode_into_libs=yes 19115 if test yes = "$with_gnu_ld"; then 19116 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 19117 else 19118 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 19119 case $host_os in 19120 sco3.2v5*) 19121 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 19122 ;; 19123 esac 19124 fi 19125 sys_lib_dlsearch_path_spec='/usr/lib' 19126 ;; 19127 19128tpf*) 19129 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 19130 version_type=linux # correct to gnu/linux during the next big refactor 19131 need_lib_prefix=no 19132 need_version=no 19133 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 19134 shlibpath_var=LD_LIBRARY_PATH 19135 shlibpath_overrides_runpath=no 19136 hardcode_into_libs=yes 19137 ;; 19138 19139uts4*) 19140 version_type=linux # correct to gnu/linux during the next big refactor 19141 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 19142 soname_spec='$libname$release$shared_ext$major' 19143 shlibpath_var=LD_LIBRARY_PATH 19144 ;; 19145 19146*) 19147 dynamic_linker=no 19148 ;; 19149esac 19150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 19151$as_echo "$dynamic_linker" >&6; } 19152test no = "$dynamic_linker" && can_build_shared=no 19153 19154variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 19155if test yes = "$GCC"; then 19156 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 19157fi 19158 19159if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 19160 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 19161fi 19162 19163if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 19164 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 19165fi 19166 19167# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 19168configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 19169 19170# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 19171func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 19172 19173# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 19174configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 19175 19176 19177 19178 19179 19180 19181 19182 19183 19184 19185 19186 19187 19188 19189 19190 19191 19192 19193 19194 19195 19196 19197 19198 19199 19200 19201 19202 19203 19204 19205 19206 19207 19208 19209 19210 19211 19212 19213 19214 19215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 19216$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 19217hardcode_action_CXX= 19218if test -n "$hardcode_libdir_flag_spec_CXX" || 19219 test -n "$runpath_var_CXX" || 19220 test yes = "$hardcode_automatic_CXX"; then 19221 19222 # We can hardcode non-existent directories. 19223 if test no != "$hardcode_direct_CXX" && 19224 # If the only mechanism to avoid hardcoding is shlibpath_var, we 19225 # have to relink, otherwise we might link with an installed library 19226 # when we should be linking with a yet-to-be-installed one 19227 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" && 19228 test no != "$hardcode_minus_L_CXX"; then 19229 # Linking always hardcodes the temporary library directory. 19230 hardcode_action_CXX=relink 19231 else 19232 # We can link without hardcoding, and we can hardcode nonexisting dirs. 19233 hardcode_action_CXX=immediate 19234 fi 19235else 19236 # We cannot hardcode anything, or else we can only hardcode existing 19237 # directories. 19238 hardcode_action_CXX=unsupported 19239fi 19240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 19241$as_echo "$hardcode_action_CXX" >&6; } 19242 19243if test relink = "$hardcode_action_CXX" || 19244 test yes = "$inherit_rpath_CXX"; then 19245 # Fast installation is not supported 19246 enable_fast_install=no 19247elif test yes = "$shlibpath_overrides_runpath" || 19248 test no = "$enable_shared"; then 19249 # Fast installation is not necessary 19250 enable_fast_install=needless 19251fi 19252 19253 19254 19255 19256 19257 19258 19259 fi # test -n "$compiler" 19260 19261 CC=$lt_save_CC 19262 CFLAGS=$lt_save_CFLAGS 19263 LDCXX=$LD 19264 LD=$lt_save_LD 19265 GCC=$lt_save_GCC 19266 with_gnu_ld=$lt_save_with_gnu_ld 19267 lt_cv_path_LDCXX=$lt_cv_path_LD 19268 lt_cv_path_LD=$lt_save_path_LD 19269 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 19270 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 19271fi # test yes != "$_lt_caught_CXX_error" 19272 19273ac_ext=c 19274ac_cpp='$CPP $CPPFLAGS' 19275ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19276ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19277ac_compiler_gnu=$ac_cv_c_compiler_gnu 19278 19279 19280 19281 19282 19283 19284 19285 19286 19287 19288 19289 19290 19291 19292 19293 ac_config_commands="$ac_config_commands libtool" 19294 19295 19296 19297 19298# Only expand once: 19299 19300 19301 19302 19303# NTP has (so far) been relying on leading-edge autogen, which 19304# means we need the appropriate corresponding libopts as well. 19305# Therefore, by default: 19306# - use the version of libopts we ship with 19307# - do not install it 19308# - build a static copy (AC_DISABLE_SHARED - done earlier) 19309case "${enable_local_libopts+set}" in 19310 set) ;; 19311 *) enable_local_libopts=yes ;; 19312esac 19313case "${enable_libopts_install+set}" in 19314 set) ;; 19315 *) enable_libopts_install=no ;; 19316esac 19317enable_nls=no 19318ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" 19319if test "x$ac_cv_type_pid_t" = xyes; then : 19320 19321else 19322 19323cat >>confdefs.h <<_ACEOF 19324#define pid_t int 19325_ACEOF 19326 19327fi 19328 19329 19330 19331 ac_header_dirent=no 19332for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 19333 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` 19334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 19335$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } 19336if eval \${$as_ac_Header+:} false; then : 19337 $as_echo_n "(cached) " >&6 19338else 19339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19340/* end confdefs.h. */ 19341#include <sys/types.h> 19342#include <$ac_hdr> 19343 19344int 19345main () 19346{ 19347if ((DIR *) 0) 19348return 0; 19349 ; 19350 return 0; 19351} 19352_ACEOF 19353if ac_fn_c_try_compile "$LINENO"; then : 19354 eval "$as_ac_Header=yes" 19355else 19356 eval "$as_ac_Header=no" 19357fi 19358rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19359fi 19360eval ac_res=\$$as_ac_Header 19361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 19362$as_echo "$ac_res" >&6; } 19363if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 19364 cat >>confdefs.h <<_ACEOF 19365#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 19366_ACEOF 19367 19368ac_header_dirent=$ac_hdr; break 19369fi 19370 19371done 19372# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 19373if test $ac_header_dirent = dirent.h; then 19374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 19375$as_echo_n "checking for library containing opendir... " >&6; } 19376if ${ac_cv_search_opendir+:} false; then : 19377 $as_echo_n "(cached) " >&6 19378else 19379 ac_func_search_save_LIBS=$LIBS 19380cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19381/* end confdefs.h. */ 19382 19383/* Override any GCC internal prototype to avoid an error. 19384 Use char because int might match the return type of a GCC 19385 builtin and then its argument prototype would still apply. */ 19386#ifdef __cplusplus 19387extern "C" 19388#endif 19389char opendir (); 19390int 19391main () 19392{ 19393return opendir (); 19394 ; 19395 return 0; 19396} 19397_ACEOF 19398for ac_lib in '' dir; do 19399 if test -z "$ac_lib"; then 19400 ac_res="none required" 19401 else 19402 ac_res=-l$ac_lib 19403 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 19404 fi 19405 if ac_fn_c_try_link "$LINENO"; then : 19406 ac_cv_search_opendir=$ac_res 19407fi 19408rm -f core conftest.err conftest.$ac_objext \ 19409 conftest$ac_exeext 19410 if ${ac_cv_search_opendir+:} false; then : 19411 break 19412fi 19413done 19414if ${ac_cv_search_opendir+:} false; then : 19415 19416else 19417 ac_cv_search_opendir=no 19418fi 19419rm conftest.$ac_ext 19420LIBS=$ac_func_search_save_LIBS 19421fi 19422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 19423$as_echo "$ac_cv_search_opendir" >&6; } 19424ac_res=$ac_cv_search_opendir 19425if test "$ac_res" != no; then : 19426 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 19427 19428fi 19429 19430else 19431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 19432$as_echo_n "checking for library containing opendir... " >&6; } 19433if ${ac_cv_search_opendir+:} false; then : 19434 $as_echo_n "(cached) " >&6 19435else 19436 ac_func_search_save_LIBS=$LIBS 19437cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19438/* end confdefs.h. */ 19439 19440/* Override any GCC internal prototype to avoid an error. 19441 Use char because int might match the return type of a GCC 19442 builtin and then its argument prototype would still apply. */ 19443#ifdef __cplusplus 19444extern "C" 19445#endif 19446char opendir (); 19447int 19448main () 19449{ 19450return opendir (); 19451 ; 19452 return 0; 19453} 19454_ACEOF 19455for ac_lib in '' x; do 19456 if test -z "$ac_lib"; then 19457 ac_res="none required" 19458 else 19459 ac_res=-l$ac_lib 19460 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 19461 fi 19462 if ac_fn_c_try_link "$LINENO"; then : 19463 ac_cv_search_opendir=$ac_res 19464fi 19465rm -f core conftest.err conftest.$ac_objext \ 19466 conftest$ac_exeext 19467 if ${ac_cv_search_opendir+:} false; then : 19468 break 19469fi 19470done 19471if ${ac_cv_search_opendir+:} false; then : 19472 19473else 19474 ac_cv_search_opendir=no 19475fi 19476rm conftest.$ac_ext 19477LIBS=$ac_func_search_save_LIBS 19478fi 19479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 19480$as_echo "$ac_cv_search_opendir" >&6; } 19481ac_res=$ac_cv_search_opendir 19482if test "$ac_res" != no; then : 19483 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 19484 19485fi 19486 19487fi 19488 19489 19490 # ================= 19491 # AC_CHECK_HEADERS 19492 # ================= 19493 for ac_header in \ 19494 sys/mman.h sys/param.h sys/poll.h sys/procset.h \ 19495 sys/select.h sys/socket.h sys/stropts.h sys/time.h \ 19496 sys/un.h sys/wait.h dlfcn.h errno.h \ 19497 fcntl.h libgen.h libintl.h memory.h \ 19498 netinet/in.h setjmp.h stdbool.h sysexits.h \ 19499 unistd.h utime.h 19500do : 19501 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 19502ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 19503if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 19504 cat >>confdefs.h <<_ACEOF 19505#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 19506_ACEOF 19507 19508fi 19509 19510done 19511 19512 19513 for ac_header in stdarg.h varargs.h 19514do : 19515 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 19516ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 19517if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 19518 cat >>confdefs.h <<_ACEOF 19519#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 19520_ACEOF 19521 lo_have_arg_hdr=true;break 19522else 19523 lo_have_arg_hdr=false 19524fi 19525 19526done 19527 19528 19529 for ac_header in string.h strings.h 19530do : 19531 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 19532ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 19533if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 19534 cat >>confdefs.h <<_ACEOF 19535#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 19536_ACEOF 19537 lo_have_str_hdr=true;break 19538else 19539 lo_have_str_hdr=false 19540fi 19541 19542done 19543 19544 19545 for ac_header in limits.h sys/limits.h values.h 19546do : 19547 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 19548ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 19549if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 19550 cat >>confdefs.h <<_ACEOF 19551#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 19552_ACEOF 19553 lo_have_lim_hdr=true;break 19554else 19555 lo_have_lim_hdr=false 19556fi 19557 19558done 19559 19560 19561 for ac_header in inttypes.h stdint.h 19562do : 19563 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 19564ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 19565if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 19566 cat >>confdefs.h <<_ACEOF 19567#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 19568_ACEOF 19569 lo_have_typ_hdr=true;break 19570else 19571 lo_have_typ_hdr=false 19572fi 19573 19574done 19575 19576 19577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stdnoreturn.h" >&5 19578$as_echo_n "checking for working stdnoreturn.h... " >&6; } 19579if ${gl_cv_header_working_stdnoreturn_h+:} false; then : 19580 $as_echo_n "(cached) " >&6 19581else 19582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19583/* end confdefs.h. */ 19584#include <stdlib.h> 19585 #include <stdnoreturn.h> 19586 /* Do not check for 'noreturn' after the return type. 19587 C11 allows it, but it's rarely done that way 19588 and circa-2012 bleeding-edge GCC rejects it when given 19589 -Werror=old-style-declaration. */ 19590 noreturn void foo1 (void) { exit (0); } 19591 _Noreturn void foo2 (void) { exit (0); } 19592 int testit (int argc, char **argv) { 19593 if (argc & 1) 19594 return 0; 19595 (argv[0][0] ? foo1 : foo2) (); 19596 } 19597 19598int 19599main () 19600{ 19601 19602 ; 19603 return 0; 19604} 19605_ACEOF 19606if ac_fn_c_try_compile "$LINENO"; then : 19607 gl_cv_header_working_stdnoreturn_h=yes 19608else 19609 gl_cv_header_working_stdnoreturn_h=no 19610fi 19611rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19612fi 19613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdnoreturn_h" >&5 19614$as_echo "$gl_cv_header_working_stdnoreturn_h" >&6; } 19615 19616 if test $gl_cv_header_working_stdnoreturn_h = yes; then 19617 STDNORETURN_H='' 19618 else 19619 STDNORETURN_H='stdnoreturn.h' 19620 fi 19621 19622 19623 if test -n "$STDNORETURN_H"; then 19624 GL_GENERATE_STDNORETURN_H_TRUE= 19625 GL_GENERATE_STDNORETURN_H_FALSE='#' 19626else 19627 GL_GENERATE_STDNORETURN_H_TRUE='#' 19628 GL_GENERATE_STDNORETURN_H_FALSE= 19629fi 19630 19631 19632 19633 # ---------------------------------------------------------------------- 19634 # check for various programs used during the build. 19635 # On OS/X, "wchar.h" needs "runetype.h" to work properly. 19636 # ---------------------------------------------------------------------- 19637 for ac_header in runetype.h wchar.h 19638do : 19639 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 19640ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" " 19641 $ac_includes_default 19642 #if HAVE_RUNETYPE_H 19643 # include <runetype.h> 19644 #endif 19645 19646" 19647if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 19648 cat >>confdefs.h <<_ACEOF 19649#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 19650_ACEOF 19651 19652fi 19653 19654done 19655 19656 19657 # Check whether --enable-nls was given. 19658if test "${enable_nls+set}" = set; then : 19659 enableval=$enable_nls; 19660fi 19661 19662 if test "x$enable_nls" != "xno" && \ 19663 test "X${ac_cv_header_libintl_h}" = Xyes; then : 19664 19665 19666$as_echo "#define ENABLE_NLS 1" >>confdefs.h 19667 19668fi 19669 19670 # -------------------------------------------- 19671 # Verify certain entries from AC_CHECK_HEADERS 19672 # -------------------------------------------- 19673 ${lo_have_arg_hdr} || \ 19674 as_fn_error $? "you must have stdarg.h or varargs.h on your system" "$LINENO" 5 19675 19676 ${lo_have_str_hdr} || \ 19677 as_fn_error $? "you must have string.h or strings.h on your system" "$LINENO" 5 19678 19679 ${lo_have_lim_hdr} || \ 19680 as_fn_error $? "you must have one of limits.h, sys/limits.h or values.h" "$LINENO" 5 19681 19682 ${lo_have_typ_hdr} || \ 19683 as_fn_error $? "you must have inttypes.h or stdint.h on your system" "$LINENO" 5 19684 19685 for f in sys_types sys_param sys_stat string errno stdlib memory setjmp 19686 do eval as_ac_var=\${ac_cv_header_${f}_h} 19687 test "X${as_ac_var}" = Xyes || { 19688 as_fn_error $? "you must have ${f}.h on your system" "$LINENO" 5 19689 } 19690 done 19691 test "X${ac_cv_header_inttypes_h-no}" = Xyes || \ 19692 echo '#include <stdint.h>' > inttypes.h 19693 19694 # ---------------------------------------------------------------------- 19695 # Checks for typedefs 19696 # ---------------------------------------------------------------------- 19697 ac_fn_c_check_type "$LINENO" "wchar_t" "ac_cv_type_wchar_t" "$ac_includes_default" 19698if test "x$ac_cv_type_wchar_t" = xyes; then : 19699 19700cat >>confdefs.h <<_ACEOF 19701#define HAVE_WCHAR_T 1 19702_ACEOF 19703 19704 19705fi 19706 19707 ac_fn_c_check_type "$LINENO" "wint_t" "ac_cv_type_wint_t" " 19708 $ac_includes_default 19709 #if HAVE_RUNETYPE_H 19710 # include <runetype.h> 19711 #endif 19712 #if HAVE_WCHAR_H 19713 # include <wchar.h> 19714 #endif 19715 19716" 19717if test "x$ac_cv_type_wint_t" = xyes; then : 19718 19719cat >>confdefs.h <<_ACEOF 19720#define HAVE_WINT_T 1 19721_ACEOF 19722 19723 19724fi 19725 19726 ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default" 19727if test "x$ac_cv_type_int8_t" = xyes; then : 19728 19729cat >>confdefs.h <<_ACEOF 19730#define HAVE_INT8_T 1 19731_ACEOF 19732 19733 19734fi 19735ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default" 19736if test "x$ac_cv_type_uint8_t" = xyes; then : 19737 19738cat >>confdefs.h <<_ACEOF 19739#define HAVE_UINT8_T 1 19740_ACEOF 19741 19742 19743fi 19744ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default" 19745if test "x$ac_cv_type_int16_t" = xyes; then : 19746 19747cat >>confdefs.h <<_ACEOF 19748#define HAVE_INT16_T 1 19749_ACEOF 19750 19751 19752fi 19753ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default" 19754if test "x$ac_cv_type_uint16_t" = xyes; then : 19755 19756cat >>confdefs.h <<_ACEOF 19757#define HAVE_UINT16_T 1 19758_ACEOF 19759 19760 19761fi 19762ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default" 19763if test "x$ac_cv_type_int32_t" = xyes; then : 19764 19765cat >>confdefs.h <<_ACEOF 19766#define HAVE_INT32_T 1 19767_ACEOF 19768 19769 19770fi 19771ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default" 19772if test "x$ac_cv_type_uint32_t" = xyes; then : 19773 19774cat >>confdefs.h <<_ACEOF 19775#define HAVE_UINT32_T 1 19776_ACEOF 19777 19778 19779fi 19780ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default" 19781if test "x$ac_cv_type_intptr_t" = xyes; then : 19782 19783cat >>confdefs.h <<_ACEOF 19784#define HAVE_INTPTR_T 1 19785_ACEOF 19786 19787 19788fi 19789ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default" 19790if test "x$ac_cv_type_uintptr_t" = xyes; then : 19791 19792cat >>confdefs.h <<_ACEOF 19793#define HAVE_UINTPTR_T 1 19794_ACEOF 19795 19796 19797fi 19798ac_fn_c_check_type "$LINENO" "uint_t" "ac_cv_type_uint_t" "$ac_includes_default" 19799if test "x$ac_cv_type_uint_t" = xyes; then : 19800 19801cat >>confdefs.h <<_ACEOF 19802#define HAVE_UINT_T 1 19803_ACEOF 19804 19805 19806fi 19807ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" 19808if test "x$ac_cv_type_pid_t" = xyes; then : 19809 19810cat >>confdefs.h <<_ACEOF 19811#define HAVE_PID_T 1 19812_ACEOF 19813 19814 19815fi 19816ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 19817if test "x$ac_cv_type_size_t" = xyes; then : 19818 19819cat >>confdefs.h <<_ACEOF 19820#define HAVE_SIZE_T 1 19821_ACEOF 19822 19823 19824fi 19825ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default" 19826if test "x$ac_cv_type_ptrdiff_t" = xyes; then : 19827 19828cat >>confdefs.h <<_ACEOF 19829#define HAVE_PTRDIFF_T 1 19830_ACEOF 19831 19832 19833fi 19834 19835 # The cast to long int works around a bug in the HP C Compiler 19836# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 19837# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 19838# This bug is HP SR number 8606223364. 19839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char *" >&5 19840$as_echo_n "checking size of char *... " >&6; } 19841if ${ac_cv_sizeof_char_p+:} false; then : 19842 $as_echo_n "(cached) " >&6 19843else 19844 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char *))" "ac_cv_sizeof_char_p" "$ac_includes_default"; then : 19845 19846else 19847 if test "$ac_cv_type_char_p" = yes; then 19848 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19849$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 19850as_fn_error 77 "cannot compute sizeof (char *) 19851See \`config.log' for more details" "$LINENO" 5; } 19852 else 19853 ac_cv_sizeof_char_p=0 19854 fi 19855fi 19856 19857fi 19858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char_p" >&5 19859$as_echo "$ac_cv_sizeof_char_p" >&6; } 19860 19861 19862 19863cat >>confdefs.h <<_ACEOF 19864#define SIZEOF_CHAR_P $ac_cv_sizeof_char_p 19865_ACEOF 19866 19867 19868 # The cast to long int works around a bug in the HP C Compiler 19869# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 19870# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 19871# This bug is HP SR number 8606223364. 19872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 19873$as_echo_n "checking size of int... " >&6; } 19874if ${ac_cv_sizeof_int+:} false; then : 19875 $as_echo_n "(cached) " >&6 19876else 19877 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : 19878 19879else 19880 if test "$ac_cv_type_int" = yes; then 19881 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19882$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 19883as_fn_error 77 "cannot compute sizeof (int) 19884See \`config.log' for more details" "$LINENO" 5; } 19885 else 19886 ac_cv_sizeof_int=0 19887 fi 19888fi 19889 19890fi 19891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 19892$as_echo "$ac_cv_sizeof_int" >&6; } 19893 19894 19895 19896cat >>confdefs.h <<_ACEOF 19897#define SIZEOF_INT $ac_cv_sizeof_int 19898_ACEOF 19899 19900 19901 # The cast to long int works around a bug in the HP C Compiler 19902# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 19903# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 19904# This bug is HP SR number 8606223364. 19905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 19906$as_echo_n "checking size of long... " >&6; } 19907if ${ac_cv_sizeof_long+:} false; then : 19908 $as_echo_n "(cached) " >&6 19909else 19910 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : 19911 19912else 19913 if test "$ac_cv_type_long" = yes; then 19914 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19915$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 19916as_fn_error 77 "cannot compute sizeof (long) 19917See \`config.log' for more details" "$LINENO" 5; } 19918 else 19919 ac_cv_sizeof_long=0 19920 fi 19921fi 19922 19923fi 19924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 19925$as_echo "$ac_cv_sizeof_long" >&6; } 19926 19927 19928 19929cat >>confdefs.h <<_ACEOF 19930#define SIZEOF_LONG $ac_cv_sizeof_long 19931_ACEOF 19932 19933 19934 # The cast to long int works around a bug in the HP C Compiler 19935# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 19936# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 19937# This bug is HP SR number 8606223364. 19938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 19939$as_echo_n "checking size of short... " >&6; } 19940if ${ac_cv_sizeof_short+:} false; then : 19941 $as_echo_n "(cached) " >&6 19942else 19943 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then : 19944 19945else 19946 if test "$ac_cv_type_short" = yes; then 19947 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19948$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 19949as_fn_error 77 "cannot compute sizeof (short) 19950See \`config.log' for more details" "$LINENO" 5; } 19951 else 19952 ac_cv_sizeof_short=0 19953 fi 19954fi 19955 19956fi 19957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 19958$as_echo "$ac_cv_sizeof_short" >&6; } 19959 19960 19961 19962cat >>confdefs.h <<_ACEOF 19963#define SIZEOF_SHORT $ac_cv_sizeof_short 19964_ACEOF 19965 19966 19967 19968 # ------------ 19969 # AC_CHECK_LIB 19970 # ------------ 19971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pathfind in -lgen" >&5 19972$as_echo_n "checking for pathfind in -lgen... " >&6; } 19973if ${ac_cv_lib_gen_pathfind+:} false; then : 19974 $as_echo_n "(cached) " >&6 19975else 19976 ac_check_lib_save_LIBS=$LIBS 19977LIBS="-lgen $LIBS" 19978cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19979/* end confdefs.h. */ 19980 19981/* Override any GCC internal prototype to avoid an error. 19982 Use char because int might match the return type of a GCC 19983 builtin and then its argument prototype would still apply. */ 19984#ifdef __cplusplus 19985extern "C" 19986#endif 19987char pathfind (); 19988int 19989main () 19990{ 19991return pathfind (); 19992 ; 19993 return 0; 19994} 19995_ACEOF 19996if ac_fn_c_try_link "$LINENO"; then : 19997 ac_cv_lib_gen_pathfind=yes 19998else 19999 ac_cv_lib_gen_pathfind=no 20000fi 20001rm -f core conftest.err conftest.$ac_objext \ 20002 conftest$ac_exeext conftest.$ac_ext 20003LIBS=$ac_check_lib_save_LIBS 20004fi 20005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_pathfind" >&5 20006$as_echo "$ac_cv_lib_gen_pathfind" >&6; } 20007if test "x$ac_cv_lib_gen_pathfind" = xyes; then : 20008 cat >>confdefs.h <<_ACEOF 20009#define HAVE_LIBGEN 1 20010_ACEOF 20011 20012 LIBS="-lgen $LIBS" 20013 20014fi 20015 20016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext in -lintl" >&5 20017$as_echo_n "checking for gettext in -lintl... " >&6; } 20018if ${ac_cv_lib_intl_gettext+:} false; then : 20019 $as_echo_n "(cached) " >&6 20020else 20021 ac_check_lib_save_LIBS=$LIBS 20022LIBS="-lintl $LIBS" 20023cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20024/* end confdefs.h. */ 20025 20026/* Override any GCC internal prototype to avoid an error. 20027 Use char because int might match the return type of a GCC 20028 builtin and then its argument prototype would still apply. */ 20029#ifdef __cplusplus 20030extern "C" 20031#endif 20032char gettext (); 20033int 20034main () 20035{ 20036return gettext (); 20037 ; 20038 return 0; 20039} 20040_ACEOF 20041if ac_fn_c_try_link "$LINENO"; then : 20042 ac_cv_lib_intl_gettext=yes 20043else 20044 ac_cv_lib_intl_gettext=no 20045fi 20046rm -f core conftest.err conftest.$ac_objext \ 20047 conftest$ac_exeext conftest.$ac_ext 20048LIBS=$ac_check_lib_save_LIBS 20049fi 20050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_gettext" >&5 20051$as_echo "$ac_cv_lib_intl_gettext" >&6; } 20052if test "x$ac_cv_lib_intl_gettext" = xyes; then : 20053 cat >>confdefs.h <<_ACEOF 20054#define HAVE_LIBINTL 1 20055_ACEOF 20056 20057 LIBS="-lintl $LIBS" 20058 20059fi 20060 20061 for ac_func in vprintf 20062do : 20063 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf" 20064if test "x$ac_cv_func_vprintf" = xyes; then : 20065 cat >>confdefs.h <<_ACEOF 20066#define HAVE_VPRINTF 1 20067_ACEOF 20068 20069ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt" 20070if test "x$ac_cv_func__doprnt" = xyes; then : 20071 20072$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h 20073 20074fi 20075 20076fi 20077done 20078 20079 20080 for ac_header in vfork.h 20081do : 20082 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default" 20083if test "x$ac_cv_header_vfork_h" = xyes; then : 20084 cat >>confdefs.h <<_ACEOF 20085#define HAVE_VFORK_H 1 20086_ACEOF 20087 20088fi 20089 20090done 20091 20092for ac_func in fork vfork 20093do : 20094 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 20095ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 20096if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 20097 cat >>confdefs.h <<_ACEOF 20098#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 20099_ACEOF 20100 20101fi 20102done 20103 20104if test "x$ac_cv_func_fork" = xyes; then 20105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5 20106$as_echo_n "checking for working fork... " >&6; } 20107if ${ac_cv_func_fork_works+:} false; then : 20108 $as_echo_n "(cached) " >&6 20109else 20110 if test "$cross_compiling" = yes; then : 20111 ac_cv_func_fork_works=cross 20112else 20113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20114/* end confdefs.h. */ 20115$ac_includes_default 20116int 20117main () 20118{ 20119 20120 /* By Ruediger Kuhlmann. */ 20121 return fork () < 0; 20122 20123 ; 20124 return 0; 20125} 20126_ACEOF 20127if ac_fn_c_try_run "$LINENO"; then : 20128 ac_cv_func_fork_works=yes 20129else 20130 ac_cv_func_fork_works=no 20131fi 20132rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 20133 conftest.$ac_objext conftest.beam conftest.$ac_ext 20134fi 20135 20136fi 20137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5 20138$as_echo "$ac_cv_func_fork_works" >&6; } 20139 20140else 20141 ac_cv_func_fork_works=$ac_cv_func_fork 20142fi 20143if test "x$ac_cv_func_fork_works" = xcross; then 20144 case $host in 20145 *-*-amigaos* | *-*-msdosdjgpp*) 20146 # Override, as these systems have only a dummy fork() stub 20147 ac_cv_func_fork_works=no 20148 ;; 20149 *) 20150 ac_cv_func_fork_works=yes 20151 ;; 20152 esac 20153 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 20154$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} 20155fi 20156ac_cv_func_vfork_works=$ac_cv_func_vfork 20157if test "x$ac_cv_func_vfork" = xyes; then 20158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5 20159$as_echo_n "checking for working vfork... " >&6; } 20160if ${ac_cv_func_vfork_works+:} false; then : 20161 $as_echo_n "(cached) " >&6 20162else 20163 if test "$cross_compiling" = yes; then : 20164 ac_cv_func_vfork_works=cross 20165else 20166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20167/* end confdefs.h. */ 20168/* Thanks to Paul Eggert for this test. */ 20169$ac_includes_default 20170#include <sys/wait.h> 20171#ifdef HAVE_VFORK_H 20172# include <vfork.h> 20173#endif 20174/* On some sparc systems, changes by the child to local and incoming 20175 argument registers are propagated back to the parent. The compiler 20176 is told about this with #include <vfork.h>, but some compilers 20177 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a 20178 static variable whose address is put into a register that is 20179 clobbered by the vfork. */ 20180static void 20181#ifdef __cplusplus 20182sparc_address_test (int arg) 20183# else 20184sparc_address_test (arg) int arg; 20185#endif 20186{ 20187 static pid_t child; 20188 if (!child) { 20189 child = vfork (); 20190 if (child < 0) { 20191 perror ("vfork"); 20192 _exit(2); 20193 } 20194 if (!child) { 20195 arg = getpid(); 20196 write(-1, "", 0); 20197 _exit (arg); 20198 } 20199 } 20200} 20201 20202int 20203main () 20204{ 20205 pid_t parent = getpid (); 20206 pid_t child; 20207 20208 sparc_address_test (0); 20209 20210 child = vfork (); 20211 20212 if (child == 0) { 20213 /* Here is another test for sparc vfork register problems. This 20214 test uses lots of local variables, at least as many local 20215 variables as main has allocated so far including compiler 20216 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris 20217 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should 20218 reuse the register of parent for one of the local variables, 20219 since it will think that parent can't possibly be used any more 20220 in this routine. Assigning to the local variable will thus 20221 munge parent in the parent process. */ 20222 pid_t 20223 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), 20224 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); 20225 /* Convince the compiler that p..p7 are live; otherwise, it might 20226 use the same hardware register for all 8 local variables. */ 20227 if (p != p1 || p != p2 || p != p3 || p != p4 20228 || p != p5 || p != p6 || p != p7) 20229 _exit(1); 20230 20231 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent 20232 from child file descriptors. If the child closes a descriptor 20233 before it execs or exits, this munges the parent's descriptor 20234 as well. Test for this by closing stdout in the child. */ 20235 _exit(close(fileno(stdout)) != 0); 20236 } else { 20237 int status; 20238 struct stat st; 20239 20240 while (wait(&status) != child) 20241 ; 20242 return ( 20243 /* Was there some problem with vforking? */ 20244 child < 0 20245 20246 /* Did the child fail? (This shouldn't happen.) */ 20247 || status 20248 20249 /* Did the vfork/compiler bug occur? */ 20250 || parent != getpid() 20251 20252 /* Did the file descriptor bug occur? */ 20253 || fstat(fileno(stdout), &st) != 0 20254 ); 20255 } 20256} 20257_ACEOF 20258if ac_fn_c_try_run "$LINENO"; then : 20259 ac_cv_func_vfork_works=yes 20260else 20261 ac_cv_func_vfork_works=no 20262fi 20263rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 20264 conftest.$ac_objext conftest.beam conftest.$ac_ext 20265fi 20266 20267fi 20268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5 20269$as_echo "$ac_cv_func_vfork_works" >&6; } 20270 20271fi; 20272if test "x$ac_cv_func_fork_works" = xcross; then 20273 ac_cv_func_vfork_works=$ac_cv_func_vfork 20274 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 20275$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} 20276fi 20277 20278if test "x$ac_cv_func_vfork_works" = xyes; then 20279 20280$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h 20281 20282else 20283 20284$as_echo "#define vfork fork" >>confdefs.h 20285 20286fi 20287if test "x$ac_cv_func_fork_works" = xyes; then 20288 20289$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h 20290 20291fi 20292 20293 for ac_func in mmap canonicalize_file_name snprintf strdup strchr \ 20294 strrchr strsignal fchmod fstat chmod 20295do : 20296 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 20297ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 20298if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 20299 cat >>confdefs.h <<_ACEOF 20300#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 20301_ACEOF 20302 20303fi 20304done 20305 20306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 20307$as_echo_n "checking for a sed that does not truncate output... " >&6; } 20308if ${ac_cv_path_SED+:} false; then : 20309 $as_echo_n "(cached) " >&6 20310else 20311 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 20312 for ac_i in 1 2 3 4 5 6 7; do 20313 ac_script="$ac_script$as_nl$ac_script" 20314 done 20315 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 20316 { ac_script=; unset ac_script;} 20317 if test -z "$SED"; then 20318 ac_path_SED_found=false 20319 # Loop through the user's path and test for each of PROGNAME-LIST 20320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20321for as_dir in $PATH 20322do 20323 IFS=$as_save_IFS 20324 test -z "$as_dir" && as_dir=. 20325 for ac_prog in sed gsed; do 20326 for ac_exec_ext in '' $ac_executable_extensions; do 20327 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 20328 as_fn_executable_p "$ac_path_SED" || continue 20329# Check for GNU ac_path_SED and select it if it is found. 20330 # Check for GNU $ac_path_SED 20331case `"$ac_path_SED" --version 2>&1` in 20332*GNU*) 20333 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 20334*) 20335 ac_count=0 20336 $as_echo_n 0123456789 >"conftest.in" 20337 while : 20338 do 20339 cat "conftest.in" "conftest.in" >"conftest.tmp" 20340 mv "conftest.tmp" "conftest.in" 20341 cp "conftest.in" "conftest.nl" 20342 $as_echo '' >> "conftest.nl" 20343 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 20344 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 20345 as_fn_arith $ac_count + 1 && ac_count=$as_val 20346 if test $ac_count -gt ${ac_path_SED_max-0}; then 20347 # Best one so far, save it but keep looking for a better one 20348 ac_cv_path_SED="$ac_path_SED" 20349 ac_path_SED_max=$ac_count 20350 fi 20351 # 10*(2^10) chars as input seems more than enough 20352 test $ac_count -gt 10 && break 20353 done 20354 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 20355esac 20356 20357 $ac_path_SED_found && break 3 20358 done 20359 done 20360 done 20361IFS=$as_save_IFS 20362 if test -z "$ac_cv_path_SED"; then 20363 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 20364 fi 20365else 20366 ac_cv_path_SED=$SED 20367fi 20368 20369fi 20370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 20371$as_echo "$ac_cv_path_SED" >&6; } 20372 SED="$ac_cv_path_SED" 20373 rm -f conftest.sed 20374 20375 while : 20376 do 20377 POSIX_SHELL=`which bash` 20378 test -x "$POSIX_SHELL" && break 20379 POSIX_SHELL=`which dash` 20380 test -x "$POSIX_SHELL" && break 20381 POSIX_SHELL=/usr/xpg4/bin/sh 20382 test -x "$POSIX_SHELL" && break 20383 POSIX_SHELL=`/bin/sh -c ' 20384 exec 2>/dev/null 20385 if ! true ; then exit 1 ; fi 20386 echo /bin/sh'` 20387 test -x "$POSIX_SHELL" && break 20388 as_fn_error $? "cannot locate a working POSIX shell" "$LINENO" 5 20389 done 20390 20391cat >>confdefs.h <<_ACEOF 20392#define POSIX_SHELL "${POSIX_SHELL}" 20393_ACEOF 20394 20395 20396 20397 20398 20399 LIBOPTS_BUILD_BLOCKED=true 20400 20401 20402 NEED_LIBOPTS_DIR='' 20403 20404 # Check whether --enable-local-libopts was given. 20405if test "${enable_local_libopts+set}" = set; then : 20406 enableval=$enable_local_libopts; 20407 if test x$enableval = xyes ; then 20408 { $as_echo "$as_me:${as_lineno-$LINENO}: Using supplied libopts tearoff" >&5 20409$as_echo "$as_me: Using supplied libopts tearoff" >&6;} 20410 LIBOPTS_CFLAGS='-I$(top_srcdir)/sntp/libopts' 20411 NEED_LIBOPTS_DIR=true 20412 LIBOPTS_LDADD='$(top_builddir)/sntp/libopts/libopts.la' 20413 fi 20414fi 20415 20416 20417 # Check whether --enable-libopts-install was given. 20418if test "${enable_libopts_install+set}" = set; then : 20419 enableval=$enable_libopts_install; 20420fi 20421 20422 if test "X${enable_libopts_install}" = Xyes; then 20423 INSTALL_LIBOPTS_TRUE= 20424 INSTALL_LIBOPTS_FALSE='#' 20425else 20426 INSTALL_LIBOPTS_TRUE='#' 20427 INSTALL_LIBOPTS_FALSE= 20428fi 20429 20430 20431 if test -z "${NEED_LIBOPTS_DIR}" ; then 20432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether autoopts-config can be found" >&5 20433$as_echo_n "checking whether autoopts-config can be found... " >&6; } 20434 20435# Check whether --with-autoopts-config was given. 20436if test "${with_autoopts_config+set}" = set; then : 20437 withval=$with_autoopts_config; lo_cv_with_autoopts_config=${with_autoopts_config} 20438else 20439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether autoopts-config is specified" >&5 20440$as_echo_n "checking whether autoopts-config is specified... " >&6; } 20441if ${lo_cv_with_autoopts_config+:} false; then : 20442 $as_echo_n "(cached) " >&6 20443else 20444 if autoopts-config --help 2>/dev/null 1>&2 20445 then lo_cv_with_autoopts_config=autoopts-config 20446 elif libopts-config --help 2>/dev/null 1>&2 20447 then lo_cv_with_autoopts_config=libopts-config 20448 else lo_cv_with_autoopts_config=no ; fi 20449fi 20450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lo_cv_with_autoopts_config" >&5 20451$as_echo "$lo_cv_with_autoopts_config" >&6; } 20452 20453fi 20454 # end of AC_ARG_WITH 20455 20456 if ${lo_cv_test_autoopts+:} false; then : 20457 $as_echo_n "(cached) " >&6 20458else 20459 20460 if test -z "${lo_cv_with_autoopts_config}" \ 20461 -o X"${lo_cv_with_autoopts_config}" = Xno 20462 then 20463 if autoopts-config --help 2>/dev/null 1>&2 20464 then lo_cv_with_autoopts_config=autoopts-config 20465 elif libopts-config --help 2>/dev/null 1>&2 20466 then lo_cv_with_autoopts_config=libopts-config 20467 else lo_cv_with_autoopts_config=false ; fi 20468 fi 20469 lo_cv_test_autoopts=` 20470 ${lo_cv_with_autoopts_config} --libs` 2> /dev/null 20471 if test $? -ne 0 -o -z "${lo_cv_test_autoopts}" 20472 then lo_cv_test_autoopts=no ; fi 20473 20474fi 20475 # end of CACHE_VAL 20476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lo_cv_test_autoopts}" >&5 20477$as_echo "${lo_cv_test_autoopts}" >&6; } 20478 20479 if test "X${lo_cv_test_autoopts}" != Xno 20480 then 20481 LIBOPTS_LDADD="${lo_cv_test_autoopts}" 20482 LIBOPTS_CFLAGS="`${lo_cv_with_autoopts_config} --cflags`" 20483 else 20484 LIBOPTS_LDADD='$(top_builddir)/sntp/libopts/libopts.la' 20485 LIBOPTS_CFLAGS='-I$(top_srcdir)/sntp/libopts' 20486 NEED_LIBOPTS_DIR=true 20487 fi 20488 fi # end of if test -z "${NEED_LIBOPTS_DIR}" 20489 if test -n "${LIBOPTS_BUILD_BLOCKED}" ; then 20490 NEED_LIBOPTS_DIR='' 20491 fi 20492 if test -n "${NEED_LIBOPTS_DIR}"; then 20493 NEED_LIBOPTS_TRUE= 20494 NEED_LIBOPTS_FALSE='#' 20495else 20496 NEED_LIBOPTS_TRUE='#' 20497 NEED_LIBOPTS_FALSE= 20498fi 20499 20500 20501 20502 LIBOPTS_DIR=sntp/libopts 20503 20504 20505# end of AC_DEFUN of LIBOPTS_CHECK_COMMON 20506 20507 # end of AC_DEFUN of LIBOPTS_CHECK_NOBUILD 20508 20509 20510 20511 20512ntp_pkgconfig_min_version='0.15.0' 20513if test -n "$ac_tool_prefix"; then 20514 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 20515set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 20516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20517$as_echo_n "checking for $ac_word... " >&6; } 20518if ${ac_cv_path_PKG_CONFIG+:} false; then : 20519 $as_echo_n "(cached) " >&6 20520else 20521 case $PKG_CONFIG in 20522 [\\/]* | ?:[\\/]*) 20523 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 20524 ;; 20525 *) 20526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20527for as_dir in $PATH 20528do 20529 IFS=$as_save_IFS 20530 test -z "$as_dir" && as_dir=. 20531 for ac_exec_ext in '' $ac_executable_extensions; do 20532 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20533 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 20534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20535 break 2 20536 fi 20537done 20538 done 20539IFS=$as_save_IFS 20540 20541 ;; 20542esac 20543fi 20544PKG_CONFIG=$ac_cv_path_PKG_CONFIG 20545if test -n "$PKG_CONFIG"; then 20546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 20547$as_echo "$PKG_CONFIG" >&6; } 20548else 20549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20550$as_echo "no" >&6; } 20551fi 20552 20553 20554fi 20555if test -z "$ac_cv_path_PKG_CONFIG"; then 20556 ac_pt_PKG_CONFIG=$PKG_CONFIG 20557 # Extract the first word of "pkg-config", so it can be a program name with args. 20558set dummy pkg-config; ac_word=$2 20559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20560$as_echo_n "checking for $ac_word... " >&6; } 20561if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 20562 $as_echo_n "(cached) " >&6 20563else 20564 case $ac_pt_PKG_CONFIG in 20565 [\\/]* | ?:[\\/]*) 20566 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 20567 ;; 20568 *) 20569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20570for as_dir in $PATH 20571do 20572 IFS=$as_save_IFS 20573 test -z "$as_dir" && as_dir=. 20574 for ac_exec_ext in '' $ac_executable_extensions; do 20575 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20576 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 20577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20578 break 2 20579 fi 20580done 20581 done 20582IFS=$as_save_IFS 20583 20584 ;; 20585esac 20586fi 20587ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 20588if test -n "$ac_pt_PKG_CONFIG"; then 20589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 20590$as_echo "$ac_pt_PKG_CONFIG" >&6; } 20591else 20592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20593$as_echo "no" >&6; } 20594fi 20595 20596 if test "x$ac_pt_PKG_CONFIG" = x; then 20597 PKG_CONFIG="" 20598 else 20599 case $cross_compiling:$ac_tool_warned in 20600yes:) 20601{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 20602$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 20603ac_tool_warned=yes ;; 20604esac 20605 PKG_CONFIG=$ac_pt_PKG_CONFIG 20606 fi 20607else 20608 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 20609fi 20610 20611{ ac_cv_path_PKG_CONFIG=; unset ac_cv_path_PKG_CONFIG;} 20612{ ac_cv_path_ac_pt_PKG_CONFIG=; unset ac_cv_path_ac_pt_PKG_CONFIG;} 20613 20614case "$PKG_CONFIG" in 20615 /*) 20616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if pkg-config is at least version $ntp_pkgconfig_min_version" >&5 20617$as_echo_n "checking if pkg-config is at least version $ntp_pkgconfig_min_version... " >&6; } 20618 if $PKG_CONFIG --atleast-pkgconfig-version $ntp_pkgconfig_min_version; then 20619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20620$as_echo "yes" >&6; } 20621 else 20622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20623$as_echo "no" >&6; } 20624 PKG_CONFIG="" 20625 fi 20626 ;; 20627esac 20628 20629 20630 20631 20632# Check whether --enable-local-libevent was given. 20633if test "${enable_local_libevent+set}" = set; then : 20634 enableval=$enable_local_libevent; ntp_use_local_libevent=$enableval 20635else 20636 ntp_use_local_libevent=${ntp_use_local_libevent-detect} 20637 20638fi 20639 20640 20641 20642 20643 20644ntp_libevent_min_version=2 20645ntp_libevent_tearoff=sntp/libevent 20646 20647 20648 20649 20650 20651case "$ntp_use_local_libevent" in 20652 yes) 20653 ;; 20654 *) # If we have (a good enough) pkg-config, see if it can find libevent 20655 case "$PKG_CONFIG" in 20656 /*) 20657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libevent $ntp_libevent_min_version or later is installed" >&5 20658$as_echo_n "checking if libevent $ntp_libevent_min_version or later is installed... " >&6; } 20659 if $PKG_CONFIG --atleast-version=$ntp_libevent_min_version libevent 20660 then 20661 ntp_use_local_libevent=no 20662 { $as_echo "$as_me:${as_lineno-$LINENO}: Using the installed libevent" >&5 20663$as_echo "$as_me: Using the installed libevent" >&6;} 20664 CFLAGS_LIBEVENT=`$PKG_CONFIG --cflags libevent_pthreads` 20665 CPPFLAGS_LIBEVENT=`$PKG_CONFIG --cflags-only-I libevent` 20666 # HMS: I hope the following is accurate. 20667 # We don't need -levent, we only need -levent_core. 20668 # While we could grab only the -L stuff, there *might* be 20669 # other flags there we want. Originally we just removed -levent 20670 # but then somebody decided to install -levent-2.0 20671 # LDADD_LIBEVENT=`$PKG_CONFIG --libs libevent | sed 's:-levent::'` 20672 # So now we dance... 20673 LDADD_LIBEVENT= 20674 for i in `$PKG_CONFIG --libs libevent` `$PKG_CONFIG --cflags-only-other libevent_pthreads` 20675 do 20676 case "$i" in 20677 -D*) ;; 20678 -levent*) ;; 20679 *) case "$LDADD_LIBEVENT" in 20680 '') LDADD_LIBEVENT="$i" ;; 20681 *) LDADD_LIBEVENT="$LDADD_LIBEVENT $i" ;; 20682 esac 20683 ;; 20684 esac 20685 done 20686 case "$LIBISC_PTHREADS_NOTHREADS" in 20687 pthreads) 20688 LDADD_LIBEVENT="$LDADD_LIBEVENT -levent_pthreads" 20689 esac 20690 LDADD_LIBEVENT="$LDADD_LIBEVENT -levent_core" 20691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20692$as_echo "yes" >&6; } 20693 else 20694 ntp_use_local_libevent=yes 20695 # HMS: do we only need to do this if LIBISC_PTHREADS_NOTHREADS 20696 # is "pthreads"? 20697 CFLAGS_LIBEVENT=`$PKG_CONFIG --cflags libevent_pthreads` 20698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20699$as_echo "no" >&6; } 20700 fi 20701 ;; 20702 *) 20703 ntp_use_local_libevent=yes 20704 ;; 20705 esac 20706 ;; 20707esac 20708 20709case "$ntp_use_local_libevent" in 20710 yes) 20711 { $as_echo "$as_me:${as_lineno-$LINENO}: Using libevent tearoff" >&5 20712$as_echo "$as_me: Using libevent tearoff" >&6;} 20713 CPPFLAGS_LIBEVENT="-I\$(top_builddir)/$ntp_libevent_tearoff/include -I\$(top_srcdir)/$ntp_libevent_tearoff/include" 20714 case "$LIBISC_PTHREADS_NOTHREADS" in 20715 pthreads) 20716 LDADD_LIBEVENT="\$(top_builddir)/$ntp_libevent_tearoff/libevent_pthreads.la \$(top_builddir)/$ntp_libevent_tearoff/libevent_core.la" 20717 ;; 20718 *) 20719 LDADD_LIBEVENT="\$(top_builddir)/$ntp_libevent_tearoff/libevent_core.la" 20720 esac 20721esac 20722 20723 20724 if test "x$ntp_use_local_libevent" = "xyes"; then 20725 BUILD_LIBEVENT_TRUE= 20726 BUILD_LIBEVENT_FALSE='#' 20727else 20728 BUILD_LIBEVENT_TRUE='#' 20729 BUILD_LIBEVENT_FALSE= 20730fi 20731 20732 20733 20734 20735 20736 20737# Expose a cross-compilation indicator to makefiles 20738 if test $build != $host; then 20739 NTP_CROSSCOMPILE_TRUE= 20740 NTP_CROSSCOMPILE_FALSE='#' 20741else 20742 NTP_CROSSCOMPILE_TRUE='#' 20743 NTP_CROSSCOMPILE_FALSE= 20744fi 20745 20746 20747 20748ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 20749if test "x$ac_cv_type_size_t" = xyes; then : 20750 20751else 20752 20753cat >>confdefs.h <<_ACEOF 20754#define size_t unsigned int 20755_ACEOF 20756 20757fi 20758 20759 20760 # Check whether --enable-c99-snprintf was given. 20761if test "${enable_c99_snprintf+set}" = set; then : 20762 enableval=$enable_c99_snprintf; force_c99_snprintf=$enableval 20763else 20764 force_c99_snprintf=no 20765 20766fi 20767 20768 case "$force_c99_snprintf" in 20769 yes) 20770 hw_force_rpl_snprintf=yes 20771 hw_force_rpl_vsnprintf=yes 20772 esac 20773 20774 20775 20776 20777 20778 20779 for ac_header in $ac_header_list 20780do : 20781 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 20782ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 20783" 20784if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 20785 cat >>confdefs.h <<_ACEOF 20786#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 20787_ACEOF 20788 20789fi 20790 20791done 20792 20793 20794 20795 20796 20797 20798 20799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5 20800$as_echo_n "checking for unsigned long long int... " >&6; } 20801if ${ac_cv_type_unsigned_long_long_int+:} false; then : 20802 $as_echo_n "(cached) " >&6 20803else 20804 ac_cv_type_unsigned_long_long_int=yes 20805 if test "x${ac_cv_prog_cc_c99-no}" = xno; then 20806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20807/* end confdefs.h. */ 20808 20809 /* For now, do not test the preprocessor; as of 2007 there are too many 20810 implementations with broken preprocessors. Perhaps this can 20811 be revisited in 2012. In the meantime, code should not expect 20812 #if to work with literals wider than 32 bits. */ 20813 /* Test literals. */ 20814 long long int ll = 9223372036854775807ll; 20815 long long int nll = -9223372036854775807LL; 20816 unsigned long long int ull = 18446744073709551615ULL; 20817 /* Test constant expressions. */ 20818 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll) 20819 ? 1 : -1)]; 20820 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1 20821 ? 1 : -1)]; 20822 int i = 63; 20823int 20824main () 20825{ 20826/* Test availability of runtime routines for shift and division. */ 20827 long long int llmax = 9223372036854775807ll; 20828 unsigned long long int ullmax = 18446744073709551615ull; 20829 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i) 20830 | (llmax / ll) | (llmax % ll) 20831 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i) 20832 | (ullmax / ull) | (ullmax % ull)); 20833 ; 20834 return 0; 20835} 20836 20837_ACEOF 20838if ac_fn_c_try_link "$LINENO"; then : 20839 20840else 20841 ac_cv_type_unsigned_long_long_int=no 20842fi 20843rm -f core conftest.err conftest.$ac_objext \ 20844 conftest$ac_exeext conftest.$ac_ext 20845 fi 20846fi 20847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5 20848$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; } 20849 if test $ac_cv_type_unsigned_long_long_int = yes; then 20850 20851$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h 20852 20853 fi 20854 20855 20856 ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf" 20857if test "x$ac_cv_func_vsnprintf" = xyes; then : 20858 hw_cv_func_vsnprintf=yes 20859else 20860 hw_cv_func_vsnprintf=no 20861fi 20862 20863 if test "$hw_cv_func_vsnprintf" = yes; then : 20864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vsnprintf is C99 compliant" >&5 20865$as_echo_n "checking whether vsnprintf is C99 compliant... " >&6; } 20866if ${hw_cv_func_vsnprintf_c99+:} false; then : 20867 $as_echo_n "(cached) " >&6 20868else 20869 if test "$cross_compiling" = yes; then : 20870 hw_cv_func_vsnprintf_c99=no 20871else 20872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20873/* end confdefs.h. */ 20874#if HAVE_STDARG_H 20875 #include <stdarg.h> 20876 #endif 20877 #include <stdio.h> 20878 static int testprintf(char *buf, size_t size, const char *format, ...) 20879 { 20880 int result; 20881 va_list ap; 20882 va_start(ap, format); 20883 result = vsnprintf(buf, size, format, ap); 20884 va_end(ap); 20885 return result; 20886 } 20887int 20888main () 20889{ 20890char buf[43]; 20891 if (testprintf(buf, 4, "The answer is %27.2g.", 42.0) != 42 || 20892 testprintf(buf, 0, "No, it's %32zu.", (size_t)42) != 42 || 20893 buf[0] != 'T' || buf[3] != '\0') 20894 return 1; 20895 ; 20896 return 0; 20897} 20898_ACEOF 20899if ac_fn_c_try_run "$LINENO"; then : 20900 hw_cv_func_vsnprintf_c99=yes 20901else 20902 hw_cv_func_vsnprintf_c99=no 20903fi 20904rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 20905 conftest.$ac_objext conftest.beam conftest.$ac_ext 20906fi 20907 20908fi 20909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_cv_func_vsnprintf_c99" >&5 20910$as_echo "$hw_cv_func_vsnprintf_c99" >&6; } 20911else 20912 hw_cv_func_vsnprintf_c99=no 20913fi 20914 20915$as_echo "#define HAVE_VSNPRINTF 1" >>confdefs.h 20916 20917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C99-snprintf replacement vsnprintf will be used" >&5 20918$as_echo_n "checking if C99-snprintf replacement vsnprintf will be used... " >&6; } 20919 if test "${hw_force_rpl_vsnprintf=no}" = yes -o "$hw_cv_func_vsnprintf_c99" = no; then : 20920 hw_use_rpl_vsnprintf=yes 20921else 20922 hw_use_rpl_vsnprintf=no 20923fi 20924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_use_rpl_vsnprintf" >&5 20925$as_echo "$hw_use_rpl_vsnprintf" >&6; } 20926 if test "$hw_use_rpl_vsnprintf" = yes; then : 20927 20928$as_echo "#define HW_WANT_RPL_VSNPRINTF 1" >>confdefs.h 20929 20930 if test ${hw_nodef_vsnprintf=no} = no; then : 20931 20932$as_echo "#define vsnprintf rpl_vsnprintf" >>confdefs.h 20933 20934fi 20935 for ac_header in inttypes.h locale.h stddef.h stdint.h 20936do : 20937 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 20938ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 20939if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 20940 cat >>confdefs.h <<_ACEOF 20941#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 20942_ACEOF 20943 20944fi 20945 20946done 20947 20948 ac_fn_c_check_member "$LINENO" "struct lconv" "decimal_point" "ac_cv_member_struct_lconv_decimal_point" "#include <locale.h> 20949" 20950if test "x$ac_cv_member_struct_lconv_decimal_point" = xyes; then : 20951 20952cat >>confdefs.h <<_ACEOF 20953#define HAVE_STRUCT_LCONV_DECIMAL_POINT 1 20954_ACEOF 20955 20956 20957fi 20958ac_fn_c_check_member "$LINENO" "struct lconv" "thousands_sep" "ac_cv_member_struct_lconv_thousands_sep" "#include <locale.h> 20959" 20960if test "x$ac_cv_member_struct_lconv_thousands_sep" = xyes; then : 20961 20962cat >>confdefs.h <<_ACEOF 20963#define HAVE_STRUCT_LCONV_THOUSANDS_SEP 1 20964_ACEOF 20965 20966 20967fi 20968 20969 20970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5 20971$as_echo_n "checking for long double... " >&6; } 20972if ${ac_cv_type_long_double+:} false; then : 20973 $as_echo_n "(cached) " >&6 20974else 20975 if test "$GCC" = yes; then 20976 ac_cv_type_long_double=yes 20977 else 20978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20979/* end confdefs.h. */ 20980/* The Stardent Vistra knows sizeof (long double), but does 20981 not support it. */ 20982 long double foo = 0.0L; 20983int 20984main () 20985{ 20986static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8. */ 20987 sizeof (double) <= sizeof (long double))]; 20988test_array [0] = 0; 20989return test_array [0]; 20990 20991 ; 20992 return 0; 20993} 20994_ACEOF 20995if ac_fn_c_try_compile "$LINENO"; then : 20996 ac_cv_type_long_double=yes 20997else 20998 ac_cv_type_long_double=no 20999fi 21000rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21001 fi 21002fi 21003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5 21004$as_echo "$ac_cv_type_long_double" >&6; } 21005 if test $ac_cv_type_long_double = yes; then 21006 21007$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h 21008 21009 fi 21010 21011 21012 21013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5 21014$as_echo_n "checking for long long int... " >&6; } 21015if ${ac_cv_type_long_long_int+:} false; then : 21016 $as_echo_n "(cached) " >&6 21017else 21018 ac_cv_type_long_long_int=yes 21019 if test "x${ac_cv_prog_cc_c99-no}" = xno; then 21020 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int 21021 if test $ac_cv_type_long_long_int = yes; then 21022 if test "$cross_compiling" = yes; then : 21023 : 21024else 21025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21026/* end confdefs.h. */ 21027#include <limits.h> 21028 #ifndef LLONG_MAX 21029 # define HALF \ 21030 (1LL << (sizeof (long long int) * CHAR_BIT - 2)) 21031 # define LLONG_MAX (HALF - 1 + HALF) 21032 #endif 21033int 21034main () 21035{ 21036long long int n = 1; 21037 int i; 21038 for (i = 0; ; i++) 21039 { 21040 long long int m = n << i; 21041 if (m >> i != n) 21042 return 1; 21043 if (LLONG_MAX / 2 < m) 21044 break; 21045 } 21046 return 0; 21047 ; 21048 return 0; 21049} 21050_ACEOF 21051if ac_fn_c_try_run "$LINENO"; then : 21052 21053else 21054 ac_cv_type_long_long_int=no 21055fi 21056rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 21057 conftest.$ac_objext conftest.beam conftest.$ac_ext 21058fi 21059 21060 fi 21061 fi 21062fi 21063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5 21064$as_echo "$ac_cv_type_long_long_int" >&6; } 21065 if test $ac_cv_type_long_long_int = yes; then 21066 21067$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h 21068 21069 fi 21070 21071 21072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5 21073$as_echo_n "checking for unsigned long long int... " >&6; } 21074if ${ac_cv_type_unsigned_long_long_int+:} false; then : 21075 $as_echo_n "(cached) " >&6 21076else 21077 ac_cv_type_unsigned_long_long_int=yes 21078 if test "x${ac_cv_prog_cc_c99-no}" = xno; then 21079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21080/* end confdefs.h. */ 21081 21082 /* For now, do not test the preprocessor; as of 2007 there are too many 21083 implementations with broken preprocessors. Perhaps this can 21084 be revisited in 2012. In the meantime, code should not expect 21085 #if to work with literals wider than 32 bits. */ 21086 /* Test literals. */ 21087 long long int ll = 9223372036854775807ll; 21088 long long int nll = -9223372036854775807LL; 21089 unsigned long long int ull = 18446744073709551615ULL; 21090 /* Test constant expressions. */ 21091 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll) 21092 ? 1 : -1)]; 21093 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1 21094 ? 1 : -1)]; 21095 int i = 63; 21096int 21097main () 21098{ 21099/* Test availability of runtime routines for shift and division. */ 21100 long long int llmax = 9223372036854775807ll; 21101 unsigned long long int ullmax = 18446744073709551615ull; 21102 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i) 21103 | (llmax / ll) | (llmax % ll) 21104 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i) 21105 | (ullmax / ull) | (ullmax % ull)); 21106 ; 21107 return 0; 21108} 21109 21110_ACEOF 21111if ac_fn_c_try_link "$LINENO"; then : 21112 21113else 21114 ac_cv_type_unsigned_long_long_int=no 21115fi 21116rm -f core conftest.err conftest.$ac_objext \ 21117 conftest$ac_exeext conftest.$ac_ext 21118 fi 21119fi 21120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5 21121$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; } 21122 if test $ac_cv_type_unsigned_long_long_int = yes; then 21123 21124$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h 21125 21126 fi 21127 21128 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 21129if test "x$ac_cv_type_size_t" = xyes; then : 21130 21131else 21132 21133cat >>confdefs.h <<_ACEOF 21134#define size_t unsigned int 21135_ACEOF 21136 21137fi 21138 21139 21140 21141 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default" 21142if test "x$ac_cv_type_intmax_t" = xyes; then : 21143 21144$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h 21145 21146else 21147 test $ac_cv_type_long_long_int = yes \ 21148 && ac_type='long long int' \ 21149 || ac_type='long int' 21150 21151cat >>confdefs.h <<_ACEOF 21152#define intmax_t $ac_type 21153_ACEOF 21154 21155fi 21156 21157 21158 21159 21160 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default" 21161if test "x$ac_cv_type_uintmax_t" = xyes; then : 21162 21163$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h 21164 21165else 21166 test $ac_cv_type_unsigned_long_long_int = yes \ 21167 && ac_type='unsigned long long int' \ 21168 || ac_type='unsigned long int' 21169 21170cat >>confdefs.h <<_ACEOF 21171#define uintmax_t $ac_type 21172_ACEOF 21173 21174fi 21175 21176 21177 21178 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default" 21179if test "x$ac_cv_type_uintptr_t" = xyes; then : 21180 21181$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h 21182 21183else 21184 for ac_type in 'unsigned int' 'unsigned long int' \ 21185 'unsigned long long int'; do 21186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21187/* end confdefs.h. */ 21188$ac_includes_default 21189int 21190main () 21191{ 21192static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))]; 21193test_array [0] = 0; 21194return test_array [0]; 21195 21196 ; 21197 return 0; 21198} 21199_ACEOF 21200if ac_fn_c_try_compile "$LINENO"; then : 21201 21202cat >>confdefs.h <<_ACEOF 21203#define uintptr_t $ac_type 21204_ACEOF 21205 21206 ac_type= 21207fi 21208rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21209 test -z "$ac_type" && break 21210 done 21211fi 21212 21213 21214 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default" 21215if test "x$ac_cv_type_ptrdiff_t" = xyes; then : 21216 21217cat >>confdefs.h <<_ACEOF 21218#define HAVE_PTRDIFF_T 1 21219_ACEOF 21220 21221 21222fi 21223 21224 for ac_func in localeconv 21225do : 21226 ac_fn_c_check_func "$LINENO" "localeconv" "ac_cv_func_localeconv" 21227if test "x$ac_cv_func_localeconv" = xyes; then : 21228 cat >>confdefs.h <<_ACEOF 21229#define HAVE_LOCALECONV 1 21230_ACEOF 21231 21232fi 21233done 21234 21235 21236 if test "x$_hw_cv_func_xprintf_replace_done" != xyes; then : 21237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 21238$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 21239if ${ac_cv_c_const+:} false; then : 21240 $as_echo_n "(cached) " >&6 21241else 21242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21243/* end confdefs.h. */ 21244 21245int 21246main () 21247{ 21248 21249#ifndef __cplusplus 21250 /* Ultrix mips cc rejects this sort of thing. */ 21251 typedef int charset[2]; 21252 const charset cs = { 0, 0 }; 21253 /* SunOS 4.1.1 cc rejects this. */ 21254 char const *const *pcpcc; 21255 char **ppc; 21256 /* NEC SVR4.0.2 mips cc rejects this. */ 21257 struct point {int x, y;}; 21258 static struct point const zero = {0,0}; 21259 /* AIX XL C 1.02.0.0 rejects this. 21260 It does not let you subtract one const X* pointer from another in 21261 an arm of an if-expression whose if-part is not a constant 21262 expression */ 21263 const char *g = "string"; 21264 pcpcc = &g + (g ? g-g : 0); 21265 /* HPUX 7.0 cc rejects these. */ 21266 ++pcpcc; 21267 ppc = (char**) pcpcc; 21268 pcpcc = (char const *const *) ppc; 21269 { /* SCO 3.2v4 cc rejects this sort of thing. */ 21270 char tx; 21271 char *t = &tx; 21272 char const *s = 0 ? (char *) 0 : (char const *) 0; 21273 21274 *t++ = 0; 21275 if (s) return 0; 21276 } 21277 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 21278 int x[] = {25, 17}; 21279 const int *foo = &x[0]; 21280 ++foo; 21281 } 21282 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 21283 typedef const int *iptr; 21284 iptr p = 0; 21285 ++p; 21286 } 21287 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 21288 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 21289 struct s { int j; const int *ap[3]; } bx; 21290 struct s *b = &bx; b->j = 5; 21291 } 21292 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 21293 const int foo = 10; 21294 if (!foo) return 0; 21295 } 21296 return !cs[0] && !zero.x; 21297#endif 21298 21299 ; 21300 return 0; 21301} 21302_ACEOF 21303if ac_fn_c_try_compile "$LINENO"; then : 21304 ac_cv_c_const=yes 21305else 21306 ac_cv_c_const=no 21307fi 21308rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21309fi 21310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 21311$as_echo "$ac_cv_c_const" >&6; } 21312if test $ac_cv_c_const = no; then 21313 21314$as_echo "#define const /**/" >>confdefs.h 21315 21316fi 21317 21318 21319 21320 21321 case " $LIBOBJS " in 21322 *" snprintf.$ac_objext "* ) ;; 21323 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext" 21324 ;; 21325esac 21326 21327 _hw_cv_func_xprintf_replace_done=yes 21328fi 21329 21330fi 21331 21332 21333 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf" 21334if test "x$ac_cv_func_snprintf" = xyes; then : 21335 hw_cv_func_snprintf=yes 21336else 21337 hw_cv_func_snprintf=no 21338fi 21339 21340 if test "$hw_cv_func_snprintf" = yes; then : 21341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf is C99 compliant" >&5 21342$as_echo_n "checking whether snprintf is C99 compliant... " >&6; } 21343if ${hw_cv_func_snprintf_c99+:} false; then : 21344 $as_echo_n "(cached) " >&6 21345else 21346 if test "$cross_compiling" = yes; then : 21347 hw_cv_func_snprintf_c99=no 21348else 21349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21350/* end confdefs.h. */ 21351#include <stdio.h> 21352int 21353main () 21354{ 21355char buf[43]; 21356 if (snprintf(buf, 4, "The answer is %27.2g.", 42.0) != 42 || 21357 snprintf(buf, 0, "No, it's %32zu.", (size_t)42) != 42 || 21358 buf[0] != 'T' || buf[3] != '\0') 21359 return 1; 21360 ; 21361 return 0; 21362} 21363_ACEOF 21364if ac_fn_c_try_run "$LINENO"; then : 21365 hw_cv_func_snprintf_c99=yes 21366else 21367 hw_cv_func_snprintf_c99=no 21368fi 21369rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 21370 conftest.$ac_objext conftest.beam conftest.$ac_ext 21371fi 21372 21373fi 21374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_cv_func_snprintf_c99" >&5 21375$as_echo "$hw_cv_func_snprintf_c99" >&6; } 21376else 21377 hw_cv_func_snprintf_c99=no 21378fi 21379 21380$as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h 21381 21382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C99-snprintf replacement snprintf will be used" >&5 21383$as_echo_n "checking if C99-snprintf replacement snprintf will be used... " >&6; } 21384 if test "${hw_force_rpl_snprintf=no}" = yes -o "$hw_cv_func_snprintf_c99" = no; then : 21385 hw_use_rpl_snprintf=yes 21386else 21387 hw_use_rpl_snprintf=no 21388fi 21389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_use_rpl_snprintf" >&5 21390$as_echo "$hw_use_rpl_snprintf" >&6; } 21391 if test "$hw_use_rpl_snprintf" = yes; then : 21392 21393$as_echo "#define HW_WANT_RPL_SNPRINTF 1" >>confdefs.h 21394 21395 if test ${hw_nodef_snprintf=no} = no; then : 21396 21397$as_echo "#define snprintf rpl_snprintf" >>confdefs.h 21398 21399fi 21400 21401 if test "x$_hw_cv_func_xprintf_replace_done" != xyes; then : 21402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 21403$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 21404if ${ac_cv_c_const+:} false; then : 21405 $as_echo_n "(cached) " >&6 21406else 21407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21408/* end confdefs.h. */ 21409 21410int 21411main () 21412{ 21413 21414#ifndef __cplusplus 21415 /* Ultrix mips cc rejects this sort of thing. */ 21416 typedef int charset[2]; 21417 const charset cs = { 0, 0 }; 21418 /* SunOS 4.1.1 cc rejects this. */ 21419 char const *const *pcpcc; 21420 char **ppc; 21421 /* NEC SVR4.0.2 mips cc rejects this. */ 21422 struct point {int x, y;}; 21423 static struct point const zero = {0,0}; 21424 /* AIX XL C 1.02.0.0 rejects this. 21425 It does not let you subtract one const X* pointer from another in 21426 an arm of an if-expression whose if-part is not a constant 21427 expression */ 21428 const char *g = "string"; 21429 pcpcc = &g + (g ? g-g : 0); 21430 /* HPUX 7.0 cc rejects these. */ 21431 ++pcpcc; 21432 ppc = (char**) pcpcc; 21433 pcpcc = (char const *const *) ppc; 21434 { /* SCO 3.2v4 cc rejects this sort of thing. */ 21435 char tx; 21436 char *t = &tx; 21437 char const *s = 0 ? (char *) 0 : (char const *) 0; 21438 21439 *t++ = 0; 21440 if (s) return 0; 21441 } 21442 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 21443 int x[] = {25, 17}; 21444 const int *foo = &x[0]; 21445 ++foo; 21446 } 21447 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 21448 typedef const int *iptr; 21449 iptr p = 0; 21450 ++p; 21451 } 21452 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 21453 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 21454 struct s { int j; const int *ap[3]; } bx; 21455 struct s *b = &bx; b->j = 5; 21456 } 21457 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 21458 const int foo = 10; 21459 if (!foo) return 0; 21460 } 21461 return !cs[0] && !zero.x; 21462#endif 21463 21464 ; 21465 return 0; 21466} 21467_ACEOF 21468if ac_fn_c_try_compile "$LINENO"; then : 21469 ac_cv_c_const=yes 21470else 21471 ac_cv_c_const=no 21472fi 21473rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21474fi 21475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 21476$as_echo "$ac_cv_c_const" >&6; } 21477if test $ac_cv_c_const = no; then 21478 21479$as_echo "#define const /**/" >>confdefs.h 21480 21481fi 21482 21483 21484 21485 21486 case " $LIBOBJS " in 21487 *" snprintf.$ac_objext "* ) ;; 21488 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext" 21489 ;; 21490esac 21491 21492 _hw_cv_func_xprintf_replace_done=yes 21493fi 21494 21495fi 21496 21497 21498 21499 21500 21501# HMS: Save $LIBS and empty it. 21502# any LIBS we add here should go in to LDADD_LIBNTP 21503 21504__LIBS=$LIBS 21505LIBS= 21506 21507 21508 21509# [Bug 2332] because we need to know if we are using GNU ld... 21510 21511 21512# Check whether --with-gnu-ld was given. 21513if test "${with_gnu_ld+set}" = set; then : 21514 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 21515else 21516 with_gnu_ld=no 21517fi 21518 21519ac_prog=ld 21520if test yes = "$GCC"; then 21521 # Check if gcc -print-prog-name=ld gives a path. 21522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 21523$as_echo_n "checking for ld used by $CC... " >&6; } 21524 case $host in 21525 *-*-mingw*) 21526 # gcc leaves a trailing carriage return, which upsets mingw 21527 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 21528 *) 21529 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 21530 esac 21531 case $ac_prog in 21532 # Accept absolute paths. 21533 [\\/]* | ?:[\\/]*) 21534 re_direlt='/[^/][^/]*/\.\./' 21535 # Canonicalize the pathname of ld 21536 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 21537 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 21538 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 21539 done 21540 test -z "$LD" && LD=$ac_prog 21541 ;; 21542 "") 21543 # If it fails, then pretend we aren't using GCC. 21544 ac_prog=ld 21545 ;; 21546 *) 21547 # If it is relative, then search for the first ld in PATH. 21548 with_gnu_ld=unknown 21549 ;; 21550 esac 21551elif test yes = "$with_gnu_ld"; then 21552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 21553$as_echo_n "checking for GNU ld... " >&6; } 21554else 21555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 21556$as_echo_n "checking for non-GNU ld... " >&6; } 21557fi 21558if ${lt_cv_path_LD+:} false; then : 21559 $as_echo_n "(cached) " >&6 21560else 21561 if test -z "$LD"; then 21562 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 21563 for ac_dir in $PATH; do 21564 IFS=$lt_save_ifs 21565 test -z "$ac_dir" && ac_dir=. 21566 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 21567 lt_cv_path_LD=$ac_dir/$ac_prog 21568 # Check to see if the program is GNU ld. I'd rather use --version, 21569 # but apparently some variants of GNU ld only accept -v. 21570 # Break only if it was the GNU/non-GNU ld that we prefer. 21571 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 21572 *GNU* | *'with BFD'*) 21573 test no != "$with_gnu_ld" && break 21574 ;; 21575 *) 21576 test yes != "$with_gnu_ld" && break 21577 ;; 21578 esac 21579 fi 21580 done 21581 IFS=$lt_save_ifs 21582else 21583 lt_cv_path_LD=$LD # Let the user override the test with a path. 21584fi 21585fi 21586 21587LD=$lt_cv_path_LD 21588if test -n "$LD"; then 21589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 21590$as_echo "$LD" >&6; } 21591else 21592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21593$as_echo "no" >&6; } 21594fi 21595test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 21596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 21597$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 21598if ${lt_cv_prog_gnu_ld+:} false; then : 21599 $as_echo_n "(cached) " >&6 21600else 21601 # I'd rather use --version here, but apparently some GNU lds only accept -v. 21602case `$LD -v 2>&1 </dev/null` in 21603*GNU* | *'with BFD'*) 21604 lt_cv_prog_gnu_ld=yes 21605 ;; 21606*) 21607 lt_cv_prog_gnu_ld=no 21608 ;; 21609esac 21610fi 21611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 21612$as_echo "$lt_cv_prog_gnu_ld" >&6; } 21613with_gnu_ld=$lt_cv_prog_gnu_ld 21614 21615 21616 21617 21618 21619 21620 21621 21622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for directory path separator" >&5 21623$as_echo_n "checking for directory path separator... " >&6; } 21624if ${ntp_cv_dir_sep+:} false; then : 21625 $as_echo_n "(cached) " >&6 21626else 21627 21628 case "$ntp_cv_dir_sep" in 21629 '') 21630 case "$host_os" in 21631 *djgpp | *mingw32* | *emx*) 21632 ntp_cv_dir_sep="'\\'" 21633 ;; 21634 *) 21635 ntp_cv_dir_sep="'/'" 21636 ;; 21637 esac 21638 esac 21639 21640 21641fi 21642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_dir_sep" >&5 21643$as_echo "$ntp_cv_dir_sep" >&6; } 21644 21645cat >>confdefs.h <<_ACEOF 21646#define DIR_SEP $ntp_cv_dir_sep 21647_ACEOF 21648 21649 21650 21651 NTP_ORIG_LIBS="$LIBS" 21652 21653# Check whether --with-lineeditlibs was given. 21654if test "${with_lineeditlibs+set}" = set; then : 21655 withval=$with_lineeditlibs; use_lineeditlibs="$withval" 21656else 21657 use_lineeditlibs="edit,editline" 21658 21659fi 21660 21661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking line editing libraries" >&5 21662$as_echo_n "checking line editing libraries... " >&6; } 21663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_lineeditlibs" >&5 21664$as_echo "$use_lineeditlibs" >&6; } 21665 case "$use_lineeditlibs" in 21666 no) 21667 ntp_lib_lineedit=no 21668 ;; 21669 *) 21670 for lineedit_lib in `echo $use_lineeditlibs | sed -e 's/,/ /'`; do 21671 for term_lib in "" termcap curses ncurses; do 21672 case "$term_lib" in 21673 '') 21674 TRY_LIB="-l$lineedit_lib" 21675 ;; 21676 *) 21677 TRY_LIB="-l$lineedit_lib -l$term_lib" 21678 ;; 21679 esac 21680 LIBS="$NTP_ORIG_LIBS $TRY_LIB" 21681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline() with $TRY_LIB" >&5 21682$as_echo_n "checking for readline() with $TRY_LIB... " >&6; } 21683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21684/* end confdefs.h. */ 21685 21686/* Override any GCC internal prototype to avoid an error. 21687 Use char because int might match the return type of a GCC 21688 builtin and then its argument prototype would still apply. */ 21689#ifdef __cplusplus 21690extern "C" 21691#endif 21692char readline (); 21693int 21694main () 21695{ 21696return readline (); 21697 ; 21698 return 0; 21699} 21700_ACEOF 21701if ac_fn_c_try_link "$LINENO"; then : 21702 ntp_lib_lineedit="$TRY_LIB" 21703fi 21704rm -f core conftest.err conftest.$ac_objext \ 21705 conftest$ac_exeext conftest.$ac_ext 21706 case "$ntp_lib_lineedit" in 21707 '') 21708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21709$as_echo "no" >&6; } 21710 ;; 21711 *) 21712 # Use readline() 21713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21714$as_echo "yes" >&6; } 21715 break 21716 esac 21717 case "$term_lib" in 21718 '') 21719 # do not try el_gets without a terminal library 21720 ;; 21721 *) 21722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for el_gets() with $TRY_LIB" >&5 21723$as_echo_n "checking for el_gets() with $TRY_LIB... " >&6; } 21724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21725/* end confdefs.h. */ 21726 21727/* Override any GCC internal prototype to avoid an error. 21728 Use char because int might match the return type of a GCC 21729 builtin and then its argument prototype would still apply. */ 21730#ifdef __cplusplus 21731extern "C" 21732#endif 21733char el_gets (); 21734int 21735main () 21736{ 21737return el_gets (); 21738 ; 21739 return 0; 21740} 21741_ACEOF 21742if ac_fn_c_try_link "$LINENO"; then : 21743 ntp_lib_lineedit="$TRY_LIB" 21744fi 21745rm -f core conftest.err conftest.$ac_objext \ 21746 conftest$ac_exeext conftest.$ac_ext 21747 case "$ntp_lib_lineedit" in 21748 '') 21749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21750$as_echo "no" >&6; } 21751 ;; 21752 *) # Use el_gets() 21753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21754$as_echo "yes" >&6; } 21755 break 21756 ;; 21757 esac # $ntp_lib_lineedit 21758 esac # $term_lib 21759 done 21760 case "$ntp_lib_lineedit" in 21761 '') 21762 ;; 21763 *) 21764 break 21765 ;; 21766 esac 21767 done 21768 LIBS="$NTP_ORIG_LIBS" 21769 ;; 21770 esac # $use_lineeditlibs 21771 21772 case "$ntp_lib_lineedit" in 21773 '') 21774 ntp_lib_lineedit="no" 21775 ;; 21776 no) 21777 ;; 21778 *) 21779 EDITLINE_LIBS="$ntp_lib_lineedit" 21780 21781 ;; 21782 esac # $ntp_lib_lineedit 21783 21784 case "$ntp_lib_lineedit" in 21785 no) 21786 ;; 21787 *) 21788 for ac_header in readline.h readline/readline.h histedit.h 21789do : 21790 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 21791ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 21792if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 21793 cat >>confdefs.h <<_ACEOF 21794#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 21795_ACEOF 21796 21797fi 21798 21799done 21800 21801 for ac_header in history.h readline/history.h 21802do : 21803 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 21804ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 21805if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 21806 cat >>confdefs.h <<_ACEOF 21807#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 21808_ACEOF 21809 21810fi 21811 21812done 21813 21814 21815 case "$ac_cv_header_histedit_h" in 21816 yes) 21817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of arguments to el_init()" >&5 21818$as_echo_n "checking number of arguments to el_init()... " >&6; } 21819if ${ntp_cv_el_init_args+:} false; then : 21820 $as_echo_n "(cached) " >&6 21821else 21822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21823/* end confdefs.h. */ 21824 21825 #include <stdio.h> 21826 #include <histedit.h> 21827 21828int 21829main () 21830{ 21831 21832 el_init("conftest", stdin, stdout, stderr); 21833 21834 21835 ; 21836 return 0; 21837} 21838_ACEOF 21839if ac_fn_c_try_compile "$LINENO"; then : 21840 ntp_cv_el_init_args=4 21841else 21842 ntp_cv_el_init_args=3 21843 21844fi 21845rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21846 21847fi 21848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_el_init_args" >&5 21849$as_echo "$ntp_cv_el_init_args" >&6; } 21850 21851cat >>confdefs.h <<_ACEOF 21852#define EL_INIT_ARGS $ntp_cv_el_init_args 21853_ACEOF 21854 21855 esac 21856 21857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5 21858$as_echo_n "checking whether readline supports history... " >&6; } 21859 21860 ntp_lib_lineedit_history="no" 21861 ORIG_LIBS="$LIBS" 21862 LIBS="$ORIG_LIBS $ntp_lib_lineedit" 21863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21864/* end confdefs.h. */ 21865 21866/* Override any GCC internal prototype to avoid an error. 21867 Use char because int might match the return type of a GCC 21868 builtin and then its argument prototype would still apply. */ 21869#ifdef __cplusplus 21870extern "C" 21871#endif 21872char add_history (); 21873int 21874main () 21875{ 21876return add_history (); 21877 ; 21878 return 0; 21879} 21880_ACEOF 21881if ac_fn_c_try_link "$LINENO"; then : 21882 ntp_lib_lineedit_history="yes" 21883fi 21884rm -f core conftest.err conftest.$ac_objext \ 21885 conftest$ac_exeext conftest.$ac_ext 21886 LIBS="$ORIG_LIBS" 21887 21888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_lib_lineedit_history" >&5 21889$as_echo "$ntp_lib_lineedit_history" >&6; } 21890 21891 case "$ntp_lib_lineedit_history" in 21892 yes) 21893 21894$as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h 21895 21896 esac 21897 esac # $ntp_lib_lineedit 21898 { NTP_ORIG_LIBS=; unset NTP_ORIG_LIBS;} 21899 { ORIG_LIBS=; unset ORIG_LIBS;} 21900 { TRY_LIB=; unset TRY_LIB;} 21901 { use_lineeditlibs=; unset use_lineeditlibs;} 21902 21903 21904LIBM= 21905case "$host" in 21906 *-*-darwin*) 21907 ;; 21908 *) 21909 _libs=$LIBS 21910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cos" >&5 21911$as_echo_n "checking for library containing cos... " >&6; } 21912if ${ac_cv_search_cos+:} false; then : 21913 $as_echo_n "(cached) " >&6 21914else 21915 ac_func_search_save_LIBS=$LIBS 21916cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21917/* end confdefs.h. */ 21918 21919/* Override any GCC internal prototype to avoid an error. 21920 Use char because int might match the return type of a GCC 21921 builtin and then its argument prototype would still apply. */ 21922#ifdef __cplusplus 21923extern "C" 21924#endif 21925char cos (); 21926int 21927main () 21928{ 21929return cos (); 21930 ; 21931 return 0; 21932} 21933_ACEOF 21934for ac_lib in '' m; do 21935 if test -z "$ac_lib"; then 21936 ac_res="none required" 21937 else 21938 ac_res=-l$ac_lib 21939 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 21940 fi 21941 if ac_fn_c_try_link "$LINENO"; then : 21942 ac_cv_search_cos=$ac_res 21943fi 21944rm -f core conftest.err conftest.$ac_objext \ 21945 conftest$ac_exeext 21946 if ${ac_cv_search_cos+:} false; then : 21947 break 21948fi 21949done 21950if ${ac_cv_search_cos+:} false; then : 21951 21952else 21953 ac_cv_search_cos=no 21954fi 21955rm conftest.$ac_ext 21956LIBS=$ac_func_search_save_LIBS 21957fi 21958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cos" >&5 21959$as_echo "$ac_cv_search_cos" >&6; } 21960ac_res=$ac_cv_search_cos 21961if test "$ac_res" != no; then : 21962 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 21963 LIBM="-lm" 21964fi 21965 21966 LIBS=$_libs 21967 ;; 21968esac 21969 21970{ _libs=; unset _libs;} 21971 21972 21973for ac_header in vfork.h 21974do : 21975 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default" 21976if test "x$ac_cv_header_vfork_h" = xyes; then : 21977 cat >>confdefs.h <<_ACEOF 21978#define HAVE_VFORK_H 1 21979_ACEOF 21980 21981fi 21982 21983done 21984 21985for ac_func in fork vfork 21986do : 21987 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 21988ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 21989if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 21990 cat >>confdefs.h <<_ACEOF 21991#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 21992_ACEOF 21993 21994fi 21995done 21996 21997if test "x$ac_cv_func_fork" = xyes; then 21998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5 21999$as_echo_n "checking for working fork... " >&6; } 22000if ${ac_cv_func_fork_works+:} false; then : 22001 $as_echo_n "(cached) " >&6 22002else 22003 if test "$cross_compiling" = yes; then : 22004 ac_cv_func_fork_works=cross 22005else 22006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22007/* end confdefs.h. */ 22008$ac_includes_default 22009int 22010main () 22011{ 22012 22013 /* By Ruediger Kuhlmann. */ 22014 return fork () < 0; 22015 22016 ; 22017 return 0; 22018} 22019_ACEOF 22020if ac_fn_c_try_run "$LINENO"; then : 22021 ac_cv_func_fork_works=yes 22022else 22023 ac_cv_func_fork_works=no 22024fi 22025rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 22026 conftest.$ac_objext conftest.beam conftest.$ac_ext 22027fi 22028 22029fi 22030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5 22031$as_echo "$ac_cv_func_fork_works" >&6; } 22032 22033else 22034 ac_cv_func_fork_works=$ac_cv_func_fork 22035fi 22036if test "x$ac_cv_func_fork_works" = xcross; then 22037 case $host in 22038 *-*-amigaos* | *-*-msdosdjgpp*) 22039 # Override, as these systems have only a dummy fork() stub 22040 ac_cv_func_fork_works=no 22041 ;; 22042 *) 22043 ac_cv_func_fork_works=yes 22044 ;; 22045 esac 22046 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 22047$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} 22048fi 22049ac_cv_func_vfork_works=$ac_cv_func_vfork 22050if test "x$ac_cv_func_vfork" = xyes; then 22051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5 22052$as_echo_n "checking for working vfork... " >&6; } 22053if ${ac_cv_func_vfork_works+:} false; then : 22054 $as_echo_n "(cached) " >&6 22055else 22056 if test "$cross_compiling" = yes; then : 22057 ac_cv_func_vfork_works=cross 22058else 22059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22060/* end confdefs.h. */ 22061/* Thanks to Paul Eggert for this test. */ 22062$ac_includes_default 22063#include <sys/wait.h> 22064#ifdef HAVE_VFORK_H 22065# include <vfork.h> 22066#endif 22067/* On some sparc systems, changes by the child to local and incoming 22068 argument registers are propagated back to the parent. The compiler 22069 is told about this with #include <vfork.h>, but some compilers 22070 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a 22071 static variable whose address is put into a register that is 22072 clobbered by the vfork. */ 22073static void 22074#ifdef __cplusplus 22075sparc_address_test (int arg) 22076# else 22077sparc_address_test (arg) int arg; 22078#endif 22079{ 22080 static pid_t child; 22081 if (!child) { 22082 child = vfork (); 22083 if (child < 0) { 22084 perror ("vfork"); 22085 _exit(2); 22086 } 22087 if (!child) { 22088 arg = getpid(); 22089 write(-1, "", 0); 22090 _exit (arg); 22091 } 22092 } 22093} 22094 22095int 22096main () 22097{ 22098 pid_t parent = getpid (); 22099 pid_t child; 22100 22101 sparc_address_test (0); 22102 22103 child = vfork (); 22104 22105 if (child == 0) { 22106 /* Here is another test for sparc vfork register problems. This 22107 test uses lots of local variables, at least as many local 22108 variables as main has allocated so far including compiler 22109 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris 22110 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should 22111 reuse the register of parent for one of the local variables, 22112 since it will think that parent can't possibly be used any more 22113 in this routine. Assigning to the local variable will thus 22114 munge parent in the parent process. */ 22115 pid_t 22116 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), 22117 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); 22118 /* Convince the compiler that p..p7 are live; otherwise, it might 22119 use the same hardware register for all 8 local variables. */ 22120 if (p != p1 || p != p2 || p != p3 || p != p4 22121 || p != p5 || p != p6 || p != p7) 22122 _exit(1); 22123 22124 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent 22125 from child file descriptors. If the child closes a descriptor 22126 before it execs or exits, this munges the parent's descriptor 22127 as well. Test for this by closing stdout in the child. */ 22128 _exit(close(fileno(stdout)) != 0); 22129 } else { 22130 int status; 22131 struct stat st; 22132 22133 while (wait(&status) != child) 22134 ; 22135 return ( 22136 /* Was there some problem with vforking? */ 22137 child < 0 22138 22139 /* Did the child fail? (This shouldn't happen.) */ 22140 || status 22141 22142 /* Did the vfork/compiler bug occur? */ 22143 || parent != getpid() 22144 22145 /* Did the file descriptor bug occur? */ 22146 || fstat(fileno(stdout), &st) != 0 22147 ); 22148 } 22149} 22150_ACEOF 22151if ac_fn_c_try_run "$LINENO"; then : 22152 ac_cv_func_vfork_works=yes 22153else 22154 ac_cv_func_vfork_works=no 22155fi 22156rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 22157 conftest.$ac_objext conftest.beam conftest.$ac_ext 22158fi 22159 22160fi 22161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5 22162$as_echo "$ac_cv_func_vfork_works" >&6; } 22163 22164fi; 22165if test "x$ac_cv_func_fork_works" = xcross; then 22166 ac_cv_func_vfork_works=$ac_cv_func_vfork 22167 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 22168$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} 22169fi 22170 22171if test "x$ac_cv_func_vfork_works" = xyes; then 22172 22173$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h 22174 22175else 22176 22177$as_echo "#define vfork fork" >>confdefs.h 22178 22179fi 22180if test "x$ac_cv_func_fork_works" = xyes; then 22181 22182$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h 22183 22184fi 22185 22186# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 22187# for constant arguments. Useless! 22188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 22189$as_echo_n "checking for working alloca.h... " >&6; } 22190if ${ac_cv_working_alloca_h+:} false; then : 22191 $as_echo_n "(cached) " >&6 22192else 22193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22194/* end confdefs.h. */ 22195#include <alloca.h> 22196int 22197main () 22198{ 22199char *p = (char *) alloca (2 * sizeof (int)); 22200 if (p) return 0; 22201 ; 22202 return 0; 22203} 22204_ACEOF 22205if ac_fn_c_try_link "$LINENO"; then : 22206 ac_cv_working_alloca_h=yes 22207else 22208 ac_cv_working_alloca_h=no 22209fi 22210rm -f core conftest.err conftest.$ac_objext \ 22211 conftest$ac_exeext conftest.$ac_ext 22212fi 22213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 22214$as_echo "$ac_cv_working_alloca_h" >&6; } 22215if test $ac_cv_working_alloca_h = yes; then 22216 22217$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h 22218 22219fi 22220 22221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 22222$as_echo_n "checking for alloca... " >&6; } 22223if ${ac_cv_func_alloca_works+:} false; then : 22224 $as_echo_n "(cached) " >&6 22225else 22226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22227/* end confdefs.h. */ 22228#ifdef __GNUC__ 22229# define alloca __builtin_alloca 22230#else 22231# ifdef _MSC_VER 22232# include <malloc.h> 22233# define alloca _alloca 22234# else 22235# ifdef HAVE_ALLOCA_H 22236# include <alloca.h> 22237# else 22238# ifdef _AIX 22239 #pragma alloca 22240# else 22241# ifndef alloca /* predefined by HP cc +Olibcalls */ 22242void *alloca (size_t); 22243# endif 22244# endif 22245# endif 22246# endif 22247#endif 22248 22249int 22250main () 22251{ 22252char *p = (char *) alloca (1); 22253 if (p) return 0; 22254 ; 22255 return 0; 22256} 22257_ACEOF 22258if ac_fn_c_try_link "$LINENO"; then : 22259 ac_cv_func_alloca_works=yes 22260else 22261 ac_cv_func_alloca_works=no 22262fi 22263rm -f core conftest.err conftest.$ac_objext \ 22264 conftest$ac_exeext conftest.$ac_ext 22265fi 22266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 22267$as_echo "$ac_cv_func_alloca_works" >&6; } 22268 22269if test $ac_cv_func_alloca_works = yes; then 22270 22271$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h 22272 22273else 22274 # The SVR3 libPW and SVR4 libucb both contain incompatible functions 22275# that cause trouble. Some versions do not even contain alloca or 22276# contain a buggy version. If you still want to use their alloca, 22277# use ar to extract alloca.o from them instead of compiling alloca.c. 22278 22279ALLOCA=\${LIBOBJDIR}alloca.$ac_objext 22280 22281$as_echo "#define C_ALLOCA 1" >>confdefs.h 22282 22283 22284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 22285$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } 22286if ${ac_cv_os_cray+:} false; then : 22287 $as_echo_n "(cached) " >&6 22288else 22289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22290/* end confdefs.h. */ 22291#if defined CRAY && ! defined CRAY2 22292webecray 22293#else 22294wenotbecray 22295#endif 22296 22297_ACEOF 22298if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 22299 $EGREP "webecray" >/dev/null 2>&1; then : 22300 ac_cv_os_cray=yes 22301else 22302 ac_cv_os_cray=no 22303fi 22304rm -f conftest* 22305 22306fi 22307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 22308$as_echo "$ac_cv_os_cray" >&6; } 22309if test $ac_cv_os_cray = yes; then 22310 for ac_func in _getb67 GETB67 getb67; do 22311 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 22312ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 22313if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 22314 22315cat >>confdefs.h <<_ACEOF 22316#define CRAY_STACKSEG_END $ac_func 22317_ACEOF 22318 22319 break 22320fi 22321 22322 done 22323fi 22324 22325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 22326$as_echo_n "checking stack direction for C alloca... " >&6; } 22327if ${ac_cv_c_stack_direction+:} false; then : 22328 $as_echo_n "(cached) " >&6 22329else 22330 if test "$cross_compiling" = yes; then : 22331 ac_cv_c_stack_direction=0 22332else 22333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22334/* end confdefs.h. */ 22335$ac_includes_default 22336int 22337find_stack_direction (int *addr, int depth) 22338{ 22339 int dir, dummy = 0; 22340 if (! addr) 22341 addr = &dummy; 22342 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1; 22343 dir = depth ? find_stack_direction (addr, depth - 1) : 0; 22344 return dir + dummy; 22345} 22346 22347int 22348main (int argc, char **argv) 22349{ 22350 return find_stack_direction (0, argc + !argv + 20) < 0; 22351} 22352_ACEOF 22353if ac_fn_c_try_run "$LINENO"; then : 22354 ac_cv_c_stack_direction=1 22355else 22356 ac_cv_c_stack_direction=-1 22357fi 22358rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 22359 conftest.$ac_objext conftest.beam conftest.$ac_ext 22360fi 22361 22362fi 22363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 22364$as_echo "$ac_cv_c_stack_direction" >&6; } 22365cat >>confdefs.h <<_ACEOF 22366#define STACK_DIRECTION $ac_cv_c_stack_direction 22367_ACEOF 22368 22369 22370fi 22371 22372ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default" 22373if test "x$ac_cv_have_decl_strerror_r" = xyes; then : 22374 ac_have_decl=1 22375else 22376 ac_have_decl=0 22377fi 22378 22379cat >>confdefs.h <<_ACEOF 22380#define HAVE_DECL_STRERROR_R $ac_have_decl 22381_ACEOF 22382 22383for ac_func in strerror_r 22384do : 22385 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r" 22386if test "x$ac_cv_func_strerror_r" = xyes; then : 22387 cat >>confdefs.h <<_ACEOF 22388#define HAVE_STRERROR_R 1 22389_ACEOF 22390 22391fi 22392done 22393 22394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5 22395$as_echo_n "checking whether strerror_r returns char *... " >&6; } 22396if ${ac_cv_func_strerror_r_char_p+:} false; then : 22397 $as_echo_n "(cached) " >&6 22398else 22399 22400 ac_cv_func_strerror_r_char_p=no 22401 if test $ac_cv_have_decl_strerror_r = yes; then 22402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22403/* end confdefs.h. */ 22404$ac_includes_default 22405int 22406main () 22407{ 22408 22409 char buf[100]; 22410 char x = *strerror_r (0, buf, sizeof buf); 22411 char *p = strerror_r (0, buf, sizeof buf); 22412 return !p || x; 22413 22414 ; 22415 return 0; 22416} 22417_ACEOF 22418if ac_fn_c_try_compile "$LINENO"; then : 22419 ac_cv_func_strerror_r_char_p=yes 22420fi 22421rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22422 else 22423 # strerror_r is not declared. Choose between 22424 # systems that have relatively inaccessible declarations for the 22425 # function. BeOS and DEC UNIX 4.0 fall in this category, but the 22426 # former has a strerror_r that returns char*, while the latter 22427 # has a strerror_r that returns `int'. 22428 # This test should segfault on the DEC system. 22429 if test "$cross_compiling" = yes; then : 22430 : 22431else 22432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22433/* end confdefs.h. */ 22434$ac_includes_default 22435 extern char *strerror_r (); 22436int 22437main () 22438{ 22439char buf[100]; 22440 char x = *strerror_r (0, buf, sizeof buf); 22441 return ! isalpha (x); 22442 ; 22443 return 0; 22444} 22445_ACEOF 22446if ac_fn_c_try_run "$LINENO"; then : 22447 ac_cv_func_strerror_r_char_p=yes 22448fi 22449rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 22450 conftest.$ac_objext conftest.beam conftest.$ac_ext 22451fi 22452 22453 fi 22454 22455fi 22456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5 22457$as_echo "$ac_cv_func_strerror_r_char_p" >&6; } 22458if test $ac_cv_func_strerror_r_char_p = yes; then 22459 22460$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h 22461 22462fi 22463 22464 22465ac_busted_vpath_in_make=no 22466case "$build" in 22467 *-*-irix6.1*) # 64 bit only 22468 # busted vpath? 22469 ;; 22470 *-*-irix6*) # 6.2 (and later?) 22471 ac_busted_vpath_in_make=yes 22472 ;; 22473 *-*-solaris2.5.1) 22474 ac_busted_vpath_in_make=yes 22475 ;; 22476 *-*-unicosmp*) 22477 ac_busted_vpath_in_make=yes 22478 ;; 22479esac 22480 22481case "$ac_busted_vpath_in_make$srcdir" in 22482 yes.|no*) 22483 ;; 22484 *) case "`${MAKE-make} -v -f /dev/null 2>/dev/null | grep 'GNU Make'`" in 22485 '') 22486 as_fn_error $? "building outside of the main directory requires GNU make" "$LINENO" 5 22487 esac 22488 ;; 22489esac 22490 22491case "$host" in 22492 *-*-aix4*) 22493 # Bug 2516: 22494 # Was *-*-aix[[4-9]]* 22495 # XXX only verified thru AIX6. But... 22496 # Ken Link says this is fine for AIX 5.3 and 7.1, and sees no reason 22497 # that this support would be in 5.3, removed in 6, and added back. 22498 # 22499 # (prr) aix 4.1 doesn't have clock_settime, but in aix 4.3 it's a stub 22500 # (returning ENOSYS). I didn't check 4.2. If, in the future, 22501 # IBM pulls its thumbs out long enough to implement clock_settime, 22502 # this conditional will need to change. Maybe use AC_TRY_RUN 22503 # instead to try to set the time to itself and check errno. 22504 ;; 22505 *) 22506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5 22507$as_echo_n "checking for library containing clock_gettime... " >&6; } 22508if ${ac_cv_search_clock_gettime+:} false; then : 22509 $as_echo_n "(cached) " >&6 22510else 22511 ac_func_search_save_LIBS=$LIBS 22512cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22513/* end confdefs.h. */ 22514 22515/* Override any GCC internal prototype to avoid an error. 22516 Use char because int might match the return type of a GCC 22517 builtin and then its argument prototype would still apply. */ 22518#ifdef __cplusplus 22519extern "C" 22520#endif 22521char clock_gettime (); 22522int 22523main () 22524{ 22525return clock_gettime (); 22526 ; 22527 return 0; 22528} 22529_ACEOF 22530for ac_lib in '' rt; do 22531 if test -z "$ac_lib"; then 22532 ac_res="none required" 22533 else 22534 ac_res=-l$ac_lib 22535 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 22536 fi 22537 if ac_fn_c_try_link "$LINENO"; then : 22538 ac_cv_search_clock_gettime=$ac_res 22539fi 22540rm -f core conftest.err conftest.$ac_objext \ 22541 conftest$ac_exeext 22542 if ${ac_cv_search_clock_gettime+:} false; then : 22543 break 22544fi 22545done 22546if ${ac_cv_search_clock_gettime+:} false; then : 22547 22548else 22549 ac_cv_search_clock_gettime=no 22550fi 22551rm conftest.$ac_ext 22552LIBS=$ac_func_search_save_LIBS 22553fi 22554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5 22555$as_echo "$ac_cv_search_clock_gettime" >&6; } 22556ac_res=$ac_cv_search_clock_gettime 22557if test "$ac_res" != no; then : 22558 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 22559 case "$ac_cv_search_clock_gettime" in 22560 'none required') ;; 22561 no) ;; 22562 *) LDADD_LIBNTP="$ac_cv_search_clock_gettime $LDADD_LIBNTP" ;; 22563 esac 22564 22565fi 22566 22567 for ac_func in clock_getres clock_gettime clock_settime 22568do : 22569 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 22570ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 22571if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 22572 cat >>confdefs.h <<_ACEOF 22573#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 22574_ACEOF 22575 22576fi 22577done 22578 22579 ;; 22580esac 22581 22582for ac_func in getclock stime timegm strlcpy strlcat 22583do : 22584 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 22585ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 22586if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 22587 cat >>confdefs.h <<_ACEOF 22588#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 22589_ACEOF 22590 22591fi 22592done 22593 22594 22595# Bug 2713 22596LDADD_LIBUTIL= 22597 22598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing snprintb" >&5 22599$as_echo_n "checking for library containing snprintb... " >&6; } 22600if ${ac_cv_search_snprintb+:} false; then : 22601 $as_echo_n "(cached) " >&6 22602else 22603 ac_func_search_save_LIBS=$LIBS 22604cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22605/* end confdefs.h. */ 22606 22607/* Override any GCC internal prototype to avoid an error. 22608 Use char because int might match the return type of a GCC 22609 builtin and then its argument prototype would still apply. */ 22610#ifdef __cplusplus 22611extern "C" 22612#endif 22613char snprintb (); 22614int 22615main () 22616{ 22617return snprintb (); 22618 ; 22619 return 0; 22620} 22621_ACEOF 22622for ac_lib in '' util; do 22623 if test -z "$ac_lib"; then 22624 ac_res="none required" 22625 else 22626 ac_res=-l$ac_lib 22627 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 22628 fi 22629 if ac_fn_c_try_link "$LINENO"; then : 22630 ac_cv_search_snprintb=$ac_res 22631fi 22632rm -f core conftest.err conftest.$ac_objext \ 22633 conftest$ac_exeext 22634 if ${ac_cv_search_snprintb+:} false; then : 22635 break 22636fi 22637done 22638if ${ac_cv_search_snprintb+:} false; then : 22639 22640else 22641 ac_cv_search_snprintb=no 22642fi 22643rm conftest.$ac_ext 22644LIBS=$ac_func_search_save_LIBS 22645fi 22646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_snprintb" >&5 22647$as_echo "$ac_cv_search_snprintb" >&6; } 22648ac_res=$ac_cv_search_snprintb 22649if test "$ac_res" != no; then : 22650 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 22651 case "$ac_cv_search_snprintb" in 22652 'none required') ;; 22653 no) ;; 22654 *) LDADD_LIBUTIL="$ac_cv_search_snprintb $LDADD_LIBUTIL" ;; 22655 esac 22656 22657$as_echo "#define USE_SNPRINTB 1" >>confdefs.h 22658 22659fi 22660 22661 22662# 22663for ac_header in errno.h sys/socket.h sys/types.h time.h 22664do : 22665 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 22666ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 22667if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 22668 cat >>confdefs.h <<_ACEOF 22669#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 22670_ACEOF 22671 22672fi 22673 22674done 22675 22676for ac_header in net/if.h 22677do : 22678 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" " 22679 #ifdef HAVE_SYS_SOCKET_H 22680 # include <sys/socket.h> 22681 #endif 22682 22683" 22684if test "x$ac_cv_header_net_if_h" = xyes; then : 22685 cat >>confdefs.h <<_ACEOF 22686#define HAVE_NET_IF_H 1 22687_ACEOF 22688 22689fi 22690 22691done 22692 22693case "$host" in 22694 *-hp-hpux*) 22695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if net/if.h requires mpinfou predeclaration" >&5 22696$as_echo_n "checking if net/if.h requires mpinfou predeclaration... " >&6; } 22697if ${ntp_cv_predecl_mpinfou+:} false; then : 22698 $as_echo_n "(cached) " >&6 22699else 22700 22701 np_cv_predecl_mpinfou=no 22702 case "$ac_cv_header_net_if_h" in 22703 no) 22704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22705/* end confdefs.h. */ 22706 22707 typedef union mpinfou { 22708 struct pdk_mpinfo *pdkptr; 22709 struct mpinfo *pikptr; 22710 } mpinfou_t; 22711 #ifdef HAVE_SYS_SOCKET_H 22712 # include <sys/socket.h> 22713 #endif 22714 #include <net/if.h> 22715 22716int 22717main () 22718{ 22719 22720 22721 22722 ; 22723 return 0; 22724} 22725_ACEOF 22726if ac_fn_c_try_compile "$LINENO"; then : 22727 22728 ntp_cv_predecl_mpinfou=yes 22729 ac_cv_header_net_if_h=yes 22730 22731 22732fi 22733rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22734 esac 22735 22736 22737fi 22738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_predecl_mpinfou" >&5 22739$as_echo "$ntp_cv_predecl_mpinfou" >&6; } 22740 case "$ntp_cv_predecl_mpinfou" in 22741 yes) 22742 cat >>confdefs.h <<_ACEOF 22743#ifndef MPINFOU_PREDECLARED 22744# define MPINFOU_PREDECLARED 22745typedef union mpinfou { 22746 struct pdk_mpinfo *pdkptr; 22747 struct mpinfo *pikptr; 22748} mpinfou_t; 22749#endif 22750_ACEOF 22751 22752 esac 22753esac 22754 22755case "$host" in 22756 *-linux*) 22757 for ac_header in linux/if_addr.h 22758do : 22759 ac_fn_c_check_header_compile "$LINENO" "linux/if_addr.h" "ac_cv_header_linux_if_addr_h" " 22760 #ifdef HAVE_SYS_SOCKET_H 22761 # include <sys/socket.h> 22762 #endif 22763 22764" 22765if test "x$ac_cv_header_linux_if_addr_h" = xyes; then : 22766 cat >>confdefs.h <<_ACEOF 22767#define HAVE_LINUX_IF_ADDR_H 1 22768_ACEOF 22769 22770fi 22771 22772done 22773 22774esac 22775 22776for ac_header in arpa/nameser.h sys/param.h sys/time.h sys/timers.h 22777do : 22778 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 22779ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 22780if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 22781 cat >>confdefs.h <<_ACEOF 22782#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 22783_ACEOF 22784 22785fi 22786 22787done 22788 22789# sys/sysctl.h depends on sys/param.h on OpenBSD - Bug 1576 22790for ac_header in sys/sysctl.h 22791do : 22792 ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" " 22793 #if defined HAVE_SYS_PARAM_H 22794 # include <sys/param.h> 22795 #endif 22796 22797" 22798if test "x$ac_cv_header_sys_sysctl_h" = xyes; then : 22799 cat >>confdefs.h <<_ACEOF 22800#define HAVE_SYS_SYSCTL_H 1 22801_ACEOF 22802 22803fi 22804 22805done 22806 22807for ac_header in netinet/in_system.h netinet/in_systm.h netinet/in.h 22808do : 22809 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 22810ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 22811if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 22812 cat >>confdefs.h <<_ACEOF 22813#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 22814_ACEOF 22815 22816fi 22817 22818done 22819 22820 22821for ac_header in resolv.h 22822do : 22823 ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" " 22824 #ifdef HAVE_SYS_TYPES_H 22825 # include <sys/types.h> 22826 #endif 22827 #ifdef HAVE_NETINET_IN_H 22828 # include <netinet/in.h> 22829 #endif 22830 #ifdef HAVE_ARPA_NAMESER_H 22831 # include <arpa/nameser.h> 22832 #endif 22833 22834" 22835if test "x$ac_cv_header_resolv_h" = xyes; then : 22836 cat >>confdefs.h <<_ACEOF 22837#define HAVE_RESOLV_H 1 22838_ACEOF 22839 22840fi 22841 22842done 22843 22844 22845for ac_header in net/if_var.h 22846do : 22847 ac_fn_c_check_header_compile "$LINENO" "net/if_var.h" "ac_cv_header_net_if_var_h" " 22848 #if HAVE_SYS_TYPES_H 22849 # include <sys/types.h> 22850 #endif 22851 #ifdef HAVE_SYS_SOCKET_H 22852 # include <sys/socket.h> 22853 #endif 22854 #ifdef HAVE_NETINET_IN_H 22855 # include <netinet/in.h> 22856 #endif 22857 #ifdef HAVE_NET_IF_H 22858 # include <net/if.h> 22859 #endif 22860 22861" 22862if test "x$ac_cv_header_net_if_var_h" = xyes; then : 22863 cat >>confdefs.h <<_ACEOF 22864#define HAVE_NET_IF_VAR_H 1 22865_ACEOF 22866 22867fi 22868 22869done 22870 22871 22872for ac_header in netinet/ip.h netinet/in_var.h 22873do : 22874 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 22875ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" " 22876 #ifdef HAVE_SYS_TYPES_H 22877 # include <sys/types.h> 22878 #endif 22879 #ifdef HAVE_SYS_SOCKET_H 22880 # include <sys/socket.h> 22881 #endif 22882 #ifdef HAVE_NET_IF_H 22883 # include <net/if.h> 22884 #endif 22885 #ifdef HAVE_NETINET_IN_H 22886 # include <netinet/in.h> 22887 #endif 22888 #ifdef HAVE_NET_IF_VAR_H 22889 # include <net/if_var.h> 22890 #endif 22891 #ifdef HAVE_NETINET_IN_SYSTM_H 22892 # include <netinet/in_systm.h> 22893 #endif 22894 22895" 22896if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 22897 cat >>confdefs.h <<_ACEOF 22898#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 22899_ACEOF 22900 22901fi 22902 22903done 22904 22905 22906# HMS: Do we need to check for -lsocket before or after these tests? 22907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_pton" >&5 22908$as_echo_n "checking for library containing inet_pton... " >&6; } 22909if ${ac_cv_search_inet_pton+:} false; then : 22910 $as_echo_n "(cached) " >&6 22911else 22912 ac_func_search_save_LIBS=$LIBS 22913cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22914/* end confdefs.h. */ 22915 22916/* Override any GCC internal prototype to avoid an error. 22917 Use char because int might match the return type of a GCC 22918 builtin and then its argument prototype would still apply. */ 22919#ifdef __cplusplus 22920extern "C" 22921#endif 22922char inet_pton (); 22923int 22924main () 22925{ 22926return inet_pton (); 22927 ; 22928 return 0; 22929} 22930_ACEOF 22931for ac_lib in '' nsl; do 22932 if test -z "$ac_lib"; then 22933 ac_res="none required" 22934 else 22935 ac_res=-l$ac_lib 22936 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 22937 fi 22938 if ac_fn_c_try_link "$LINENO"; then : 22939 ac_cv_search_inet_pton=$ac_res 22940fi 22941rm -f core conftest.err conftest.$ac_objext \ 22942 conftest$ac_exeext 22943 if ${ac_cv_search_inet_pton+:} false; then : 22944 break 22945fi 22946done 22947if ${ac_cv_search_inet_pton+:} false; then : 22948 22949else 22950 ac_cv_search_inet_pton=no 22951fi 22952rm conftest.$ac_ext 22953LIBS=$ac_func_search_save_LIBS 22954fi 22955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_pton" >&5 22956$as_echo "$ac_cv_search_inet_pton" >&6; } 22957ac_res=$ac_cv_search_inet_pton 22958if test "$ac_res" != no; then : 22959 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 22960 case "$ac_cv_search_inet_pton" in 22961 'none required') ;; 22962 no) ;; 22963 *) LDADD_LIBNTP="$ac_cv_search_inet_pton $LDADD_LIBNTP" ;; 22964 esac 22965 22966fi 22967 22968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntop" >&5 22969$as_echo_n "checking for library containing inet_ntop... " >&6; } 22970if ${ac_cv_search_inet_ntop+:} false; then : 22971 $as_echo_n "(cached) " >&6 22972else 22973 ac_func_search_save_LIBS=$LIBS 22974cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22975/* end confdefs.h. */ 22976 22977/* Override any GCC internal prototype to avoid an error. 22978 Use char because int might match the return type of a GCC 22979 builtin and then its argument prototype would still apply. */ 22980#ifdef __cplusplus 22981extern "C" 22982#endif 22983char inet_ntop (); 22984int 22985main () 22986{ 22987return inet_ntop (); 22988 ; 22989 return 0; 22990} 22991_ACEOF 22992for ac_lib in '' resolv; do 22993 if test -z "$ac_lib"; then 22994 ac_res="none required" 22995 else 22996 ac_res=-l$ac_lib 22997 LIBS="-l$ac_lib -lnsl $ac_func_search_save_LIBS" 22998 fi 22999 if ac_fn_c_try_link "$LINENO"; then : 23000 ac_cv_search_inet_ntop=$ac_res 23001fi 23002rm -f core conftest.err conftest.$ac_objext \ 23003 conftest$ac_exeext 23004 if ${ac_cv_search_inet_ntop+:} false; then : 23005 break 23006fi 23007done 23008if ${ac_cv_search_inet_ntop+:} false; then : 23009 23010else 23011 ac_cv_search_inet_ntop=no 23012fi 23013rm conftest.$ac_ext 23014LIBS=$ac_func_search_save_LIBS 23015fi 23016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntop" >&5 23017$as_echo "$ac_cv_search_inet_ntop" >&6; } 23018ac_res=$ac_cv_search_inet_ntop 23019if test "$ac_res" != no; then : 23020 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 23021 case "$ac_cv_search_inet_ntop" in 23022 'none required') ;; 23023 no) ;; 23024 *) LDADD_LIBNTP="$ac_cv_search_inet_ntop $LDADD_LIBNTP" ;; 23025 esac 23026 23027fi 23028 23029 23030# [Bug 1628] On Solaris, we need -lxnet -lsocket. Generalize this to 23031# avoid keying on the OS name: If we find socket functions in 23032# libsocket, next try for them in libxnet without libsocket, if found, 23033# list both. If we simply tested libxnet first, we would find the 23034# functions there and never add libsocket. See also [Bug 660] 23035# http://bugs.ntp.org/show_bug.cgi?id=660#c9 23036saved_LIBS=$LIBS 23037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setsockopt" >&5 23038$as_echo_n "checking for library containing setsockopt... " >&6; } 23039if ${ac_cv_search_setsockopt+:} false; then : 23040 $as_echo_n "(cached) " >&6 23041else 23042 ac_func_search_save_LIBS=$LIBS 23043cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23044/* end confdefs.h. */ 23045 23046/* Override any GCC internal prototype to avoid an error. 23047 Use char because int might match the return type of a GCC 23048 builtin and then its argument prototype would still apply. */ 23049#ifdef __cplusplus 23050extern "C" 23051#endif 23052char setsockopt (); 23053int 23054main () 23055{ 23056return setsockopt (); 23057 ; 23058 return 0; 23059} 23060_ACEOF 23061for ac_lib in '' socket; do 23062 if test -z "$ac_lib"; then 23063 ac_res="none required" 23064 else 23065 ac_res=-l$ac_lib 23066 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 23067 fi 23068 if ac_fn_c_try_link "$LINENO"; then : 23069 ac_cv_search_setsockopt=$ac_res 23070fi 23071rm -f core conftest.err conftest.$ac_objext \ 23072 conftest$ac_exeext 23073 if ${ac_cv_search_setsockopt+:} false; then : 23074 break 23075fi 23076done 23077if ${ac_cv_search_setsockopt+:} false; then : 23078 23079else 23080 ac_cv_search_setsockopt=no 23081fi 23082rm conftest.$ac_ext 23083LIBS=$ac_func_search_save_LIBS 23084fi 23085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setsockopt" >&5 23086$as_echo "$ac_cv_search_setsockopt" >&6; } 23087ac_res=$ac_cv_search_setsockopt 23088if test "$ac_res" != no; then : 23089 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 23090 case "$ac_cv_search_setsockopt" in 23091 'none required') ;; 23092 no) ;; 23093 *) LDADD_LIBNTP="$ac_cv_search_setsockopt $LDADD_LIBNTP" ;; 23094 esac 23095 23096fi 23097 23098case "$ac_cv_search_setsockopt" in 23099 -lsocket) 23100 LIBS="$saved_LIBS" 23101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getsockopt" >&5 23102$as_echo_n "checking for library containing getsockopt... " >&6; } 23103if ${ac_cv_search_getsockopt+:} false; then : 23104 $as_echo_n "(cached) " >&6 23105else 23106 ac_func_search_save_LIBS=$LIBS 23107cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23108/* end confdefs.h. */ 23109 23110/* Override any GCC internal prototype to avoid an error. 23111 Use char because int might match the return type of a GCC 23112 builtin and then its argument prototype would still apply. */ 23113#ifdef __cplusplus 23114extern "C" 23115#endif 23116char getsockopt (); 23117int 23118main () 23119{ 23120return getsockopt (); 23121 ; 23122 return 0; 23123} 23124_ACEOF 23125for ac_lib in '' xnet; do 23126 if test -z "$ac_lib"; then 23127 ac_res="none required" 23128 else 23129 ac_res=-l$ac_lib 23130 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 23131 fi 23132 if ac_fn_c_try_link "$LINENO"; then : 23133 ac_cv_search_getsockopt=$ac_res 23134fi 23135rm -f core conftest.err conftest.$ac_objext \ 23136 conftest$ac_exeext 23137 if ${ac_cv_search_getsockopt+:} false; then : 23138 break 23139fi 23140done 23141if ${ac_cv_search_getsockopt+:} false; then : 23142 23143else 23144 ac_cv_search_getsockopt=no 23145fi 23146rm conftest.$ac_ext 23147LIBS=$ac_func_search_save_LIBS 23148fi 23149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getsockopt" >&5 23150$as_echo "$ac_cv_search_getsockopt" >&6; } 23151ac_res=$ac_cv_search_getsockopt 23152if test "$ac_res" != no; then : 23153 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 23154 case "$ac_cv_search_getsockopt" in 23155 'none required') ;; 23156 no) ;; 23157 *) LDADD_LIBNTP="$ac_cv_search_getsockopt $LDADD_LIBNTP" ;; 23158 esac 23159 23160fi 23161 23162 # XXX Possible trouble here - reading the comments above and looking at the 23163 # code below I wonder if we'll add -lxnet when we don't need it. 23164 # Also, do we need to add -lxnet to LDADD_LIBNTP, or perhaps see if it's 23165 # there when it is not needed? 23166 case "$ac_cv_search_getsockopt" in 23167 -lxnet) 23168 LIBS="-lxnet -lsocket $saved_LIBS" 23169 ;; 23170 *) LIBS="-lsocket $saved_LIBS" 23171 ;; 23172 esac 23173 ;; 23174esac 23175{ saved_LIBS=; unset saved_LIBS;} 23176 23177# Bug 2427 - look for recvmsg here. 23178for ac_func in recvmsg 23179do : 23180 ac_fn_c_check_func "$LINENO" "recvmsg" "ac_cv_func_recvmsg" 23181if test "x$ac_cv_func_recvmsg" = xyes; then : 23182 cat >>confdefs.h <<_ACEOF 23183#define HAVE_RECVMSG 1 23184_ACEOF 23185 23186fi 23187done 23188 23189 23190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 23191$as_echo_n "checking for inline... " >&6; } 23192if ${ac_cv_c_inline+:} false; then : 23193 $as_echo_n "(cached) " >&6 23194else 23195 ac_cv_c_inline=no 23196for ac_kw in inline __inline__ __inline; do 23197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23198/* end confdefs.h. */ 23199#ifndef __cplusplus 23200typedef int foo_t; 23201static $ac_kw foo_t static_foo () {return 0; } 23202$ac_kw foo_t foo () {return 0; } 23203#endif 23204 23205_ACEOF 23206if ac_fn_c_try_compile "$LINENO"; then : 23207 ac_cv_c_inline=$ac_kw 23208fi 23209rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23210 test "$ac_cv_c_inline" != no && break 23211done 23212 23213fi 23214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 23215$as_echo "$ac_cv_c_inline" >&6; } 23216 23217case $ac_cv_c_inline in 23218 inline | yes) ;; 23219 *) 23220 case $ac_cv_c_inline in 23221 no) ac_val=;; 23222 *) ac_val=$ac_cv_c_inline;; 23223 esac 23224 cat >>confdefs.h <<_ACEOF 23225#ifndef __cplusplus 23226#define inline $ac_val 23227#endif 23228_ACEOF 23229 ;; 23230esac 23231 23232 23233case "$ac_cv_c_inline" in 23234 '') 23235 ;; 23236 *) 23237 23238$as_echo "#define HAVE_INLINE 1" >>confdefs.h 23239 23240 23241esac 23242 23243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 23244$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } 23245if ${ac_cv_header_time+:} false; then : 23246 $as_echo_n "(cached) " >&6 23247else 23248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23249/* end confdefs.h. */ 23250#include <sys/types.h> 23251#include <sys/time.h> 23252#include <time.h> 23253 23254int 23255main () 23256{ 23257if ((struct tm *) 0) 23258return 0; 23259 ; 23260 return 0; 23261} 23262_ACEOF 23263if ac_fn_c_try_compile "$LINENO"; then : 23264 ac_cv_header_time=yes 23265else 23266 ac_cv_header_time=no 23267fi 23268rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23269fi 23270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 23271$as_echo "$ac_cv_header_time" >&6; } 23272if test $ac_cv_header_time = yes; then 23273 23274$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h 23275 23276fi 23277 23278# The cast to long int works around a bug in the HP C Compiler 23279# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 23280# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 23281# This bug is HP SR number 8606223364. 23282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5 23283$as_echo_n "checking size of time_t... " >&6; } 23284if ${ac_cv_sizeof_time_t+:} false; then : 23285 $as_echo_n "(cached) " >&6 23286else 23287 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "$ac_includes_default"; then : 23288 23289else 23290 if test "$ac_cv_type_time_t" = yes; then 23291 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 23292$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 23293as_fn_error 77 "cannot compute sizeof (time_t) 23294See \`config.log' for more details" "$LINENO" 5; } 23295 else 23296 ac_cv_sizeof_time_t=0 23297 fi 23298fi 23299 23300fi 23301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5 23302$as_echo "$ac_cv_sizeof_time_t" >&6; } 23303 23304 23305 23306cat >>confdefs.h <<_ACEOF 23307#define SIZEOF_TIME_T $ac_cv_sizeof_time_t 23308_ACEOF 23309 23310 23311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5 23312$as_echo_n "checking whether char is unsigned... " >&6; } 23313if ${ac_cv_c_char_unsigned+:} false; then : 23314 $as_echo_n "(cached) " >&6 23315else 23316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23317/* end confdefs.h. */ 23318$ac_includes_default 23319int 23320main () 23321{ 23322static int test_array [1 - 2 * !(((char) -1) < 0)]; 23323test_array [0] = 0; 23324return test_array [0]; 23325 23326 ; 23327 return 0; 23328} 23329_ACEOF 23330if ac_fn_c_try_compile "$LINENO"; then : 23331 ac_cv_c_char_unsigned=no 23332else 23333 ac_cv_c_char_unsigned=yes 23334fi 23335rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23336fi 23337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5 23338$as_echo "$ac_cv_c_char_unsigned" >&6; } 23339if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then 23340 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h 23341 23342fi 23343 # The cast to long int works around a bug in the HP C Compiler 23344# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 23345# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 23346# This bug is HP SR number 8606223364. 23347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed char" >&5 23348$as_echo_n "checking size of signed char... " >&6; } 23349if ${ac_cv_sizeof_signed_char+:} false; then : 23350 $as_echo_n "(cached) " >&6 23351else 23352 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed char))" "ac_cv_sizeof_signed_char" "$ac_includes_default"; then : 23353 23354else 23355 if test "$ac_cv_type_signed_char" = yes; then 23356 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 23357$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 23358as_fn_error 77 "cannot compute sizeof (signed char) 23359See \`config.log' for more details" "$LINENO" 5; } 23360 else 23361 ac_cv_sizeof_signed_char=0 23362 fi 23363fi 23364 23365fi 23366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_char" >&5 23367$as_echo "$ac_cv_sizeof_signed_char" >&6; } 23368 23369 23370 23371cat >>confdefs.h <<_ACEOF 23372#define SIZEOF_SIGNED_CHAR $ac_cv_sizeof_signed_char 23373_ACEOF 23374 23375 23376ac_fn_c_check_type "$LINENO" "s_char" "ac_cv_type_s_char" "$ac_includes_default" 23377if test "x$ac_cv_type_s_char" = xyes; then : 23378 23379cat >>confdefs.h <<_ACEOF 23380#define HAVE_S_CHAR 1 23381_ACEOF 23382 23383 23384fi 23385ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default" 23386if test "x$ac_cv_type_long_long" = xyes; then : 23387 23388cat >>confdefs.h <<_ACEOF 23389#define HAVE_LONG_LONG 1 23390_ACEOF 23391 23392 23393fi 23394 23395# The cast to long int works around a bug in the HP C Compiler 23396# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 23397# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 23398# This bug is HP SR number 8606223364. 23399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 23400$as_echo_n "checking size of short... " >&6; } 23401if ${ac_cv_sizeof_short+:} false; then : 23402 $as_echo_n "(cached) " >&6 23403else 23404 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then : 23405 23406else 23407 if test "$ac_cv_type_short" = yes; then 23408 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 23409$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 23410as_fn_error 77 "cannot compute sizeof (short) 23411See \`config.log' for more details" "$LINENO" 5; } 23412 else 23413 ac_cv_sizeof_short=0 23414 fi 23415fi 23416 23417fi 23418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 23419$as_echo "$ac_cv_sizeof_short" >&6; } 23420 23421 23422 23423cat >>confdefs.h <<_ACEOF 23424#define SIZEOF_SHORT $ac_cv_sizeof_short 23425_ACEOF 23426 23427 23428# The cast to long int works around a bug in the HP C Compiler 23429# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 23430# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 23431# This bug is HP SR number 8606223364. 23432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 23433$as_echo_n "checking size of int... " >&6; } 23434if ${ac_cv_sizeof_int+:} false; then : 23435 $as_echo_n "(cached) " >&6 23436else 23437 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : 23438 23439else 23440 if test "$ac_cv_type_int" = yes; then 23441 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 23442$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 23443as_fn_error 77 "cannot compute sizeof (int) 23444See \`config.log' for more details" "$LINENO" 5; } 23445 else 23446 ac_cv_sizeof_int=0 23447 fi 23448fi 23449 23450fi 23451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 23452$as_echo "$ac_cv_sizeof_int" >&6; } 23453 23454 23455 23456cat >>confdefs.h <<_ACEOF 23457#define SIZEOF_INT $ac_cv_sizeof_int 23458_ACEOF 23459 23460 23461# The cast to long int works around a bug in the HP C Compiler 23462# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 23463# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 23464# This bug is HP SR number 8606223364. 23465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 23466$as_echo_n "checking size of long... " >&6; } 23467if ${ac_cv_sizeof_long+:} false; then : 23468 $as_echo_n "(cached) " >&6 23469else 23470 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : 23471 23472else 23473 if test "$ac_cv_type_long" = yes; then 23474 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 23475$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 23476as_fn_error 77 "cannot compute sizeof (long) 23477See \`config.log' for more details" "$LINENO" 5; } 23478 else 23479 ac_cv_sizeof_long=0 23480 fi 23481fi 23482 23483fi 23484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 23485$as_echo "$ac_cv_sizeof_long" >&6; } 23486 23487 23488 23489cat >>confdefs.h <<_ACEOF 23490#define SIZEOF_LONG $ac_cv_sizeof_long 23491_ACEOF 23492 23493 23494 23495case "$ac_cv_type_long_long" in 23496 no) 23497 ;; 23498 *) 23499 # The cast to long int works around a bug in the HP C Compiler 23500# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 23501# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 23502# This bug is HP SR number 8606223364. 23503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 23504$as_echo_n "checking size of long long... " >&6; } 23505if ${ac_cv_sizeof_long_long+:} false; then : 23506 $as_echo_n "(cached) " >&6 23507else 23508 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then : 23509 23510else 23511 if test "$ac_cv_type_long_long" = yes; then 23512 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 23513$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 23514as_fn_error 77 "cannot compute sizeof (long long) 23515See \`config.log' for more details" "$LINENO" 5; } 23516 else 23517 ac_cv_sizeof_long_long=0 23518 fi 23519fi 23520 23521fi 23522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 23523$as_echo "$ac_cv_sizeof_long_long" >&6; } 23524 23525 23526 23527cat >>confdefs.h <<_ACEOF 23528#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long 23529_ACEOF 23530 23531 23532 ;; 23533esac 23534 23535case "$ac_cv_c_char_unsigned$ac_cv_sizeof_signed_char$ac_cv_type_s_char" in 23536 *yes) 23537 # We have a typedef for s_char. Might as well believe it... 23538 ;; 23539 no0no) 23540 # We have signed chars, can't say 'signed char', no s_char typedef. 23541 23542$as_echo "#define NEED_S_CHAR_TYPEDEF 1" >>confdefs.h 23543 23544 ;; 23545 no1no) 23546 # We have signed chars, can say 'signed char', no s_char typedef. 23547 23548$as_echo "#define NEED_S_CHAR_TYPEDEF 1" >>confdefs.h 23549 23550 ;; 23551 yes0no) 23552 # We have unsigned chars, can't say 'signed char', no s_char typedef. 23553 as_fn_error $? "No way to specify a signed character!" "$LINENO" 5 23554 ;; 23555 yes1no) 23556 # We have unsigned chars, can say 'signed char', no s_char typedef. 23557 23558$as_echo "#define NEED_S_CHAR_TYPEDEF 1" >>confdefs.h 23559 23560 ;; 23561esac 23562 23563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 23564$as_echo_n "checking for uid_t in sys/types.h... " >&6; } 23565if ${ac_cv_type_uid_t+:} false; then : 23566 $as_echo_n "(cached) " >&6 23567else 23568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23569/* end confdefs.h. */ 23570#include <sys/types.h> 23571 23572_ACEOF 23573if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 23574 $EGREP "uid_t" >/dev/null 2>&1; then : 23575 ac_cv_type_uid_t=yes 23576else 23577 ac_cv_type_uid_t=no 23578fi 23579rm -f conftest* 23580 23581fi 23582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 23583$as_echo "$ac_cv_type_uid_t" >&6; } 23584if test $ac_cv_type_uid_t = no; then 23585 23586$as_echo "#define uid_t int" >>confdefs.h 23587 23588 23589$as_echo "#define gid_t int" >>confdefs.h 23590 23591fi 23592 23593 23594 23595 23596 23597 23598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we're including debugging code" >&5 23599$as_echo_n "checking if we're including debugging code... " >&6; } 23600# Check whether --enable-debugging was given. 23601if test "${enable_debugging+set}" = set; then : 23602 enableval=$enable_debugging; ntp_ok=$enableval 23603else 23604 ntp_ok=yes 23605 23606fi 23607 23608case "$ntp_ok" in 23609 yes) 23610 23611$as_echo "#define DEBUG 1" >>confdefs.h 23612 23613esac 23614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 23615$as_echo "$ntp_ok" >&6; } 23616 23617 23618 23619# check if we can compile with pthreads 23620for ac_header in semaphore.h 23621do : 23622 ac_fn_c_check_header_mongrel "$LINENO" "semaphore.h" "ac_cv_header_semaphore_h" "$ac_includes_default" 23623if test "x$ac_cv_header_semaphore_h" = xyes; then : 23624 cat >>confdefs.h <<_ACEOF 23625#define HAVE_SEMAPHORE_H 1 23626_ACEOF 23627 23628fi 23629 23630done 23631 23632for ac_func in socketpair 23633do : 23634 ac_fn_c_check_func "$LINENO" "socketpair" "ac_cv_func_socketpair" 23635if test "x$ac_cv_func_socketpair" = xyes; then : 23636 cat >>confdefs.h <<_ACEOF 23637#define HAVE_SOCKETPAIR 1 23638_ACEOF 23639 23640fi 23641done 23642 23643# Check whether --enable-thread-support was given. 23644if test "${enable_thread_support+set}" = set; then : 23645 enableval=$enable_thread_support; 23646else 23647 enable_thread_support=yes 23648 23649fi 23650 23651have_pthreads=no 23652case "$enable_thread_support" in 23653 no) ;; 23654 *) 23655 ol_found_pthreads=no 23656 23657 23658 23659ac_ext=c 23660ac_cpp='$CPP $CPPFLAGS' 23661ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 23662ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 23663ac_compiler_gnu=$ac_cv_c_compiler_gnu 23664 23665# OpenLDAP --with-threads 23666 23667# Check whether --with-threads was given. 23668if test "${with_threads+set}" = set; then : 23669 withval=$with_threads; 23670 ol_arg=invalid 23671 for ol_val in auto nt posix mach pth lwp yes no manual ; do 23672 if test "$withval" = "$ol_val" ; then 23673 ol_arg="$ol_val" 23674 fi 23675 done 23676 if test "$ol_arg" = "invalid" ; then 23677 as_fn_error $? "bad value $withval for --with-threads" "$LINENO" 5 23678 fi 23679 ol_with_threads="$ol_arg" 23680 23681else 23682 ol_with_threads="auto" 23683fi 23684# end --with-threads 23685 23686 23687case "$ol_with_threads$host" in 23688 auto*-*-solaris2.[0-6]) 23689 ol_with_threads=no 23690 ;; 23691esac 23692 23693 23694ol_aix_threads=no 23695case "$host" in 23696*-*-aix*) if test -z "$CC" ; then 23697 case "$ol_with_threads" in 23698 auto | yes | posix) ol_aix_threads=yes ;; 23699 esac 23700 fi 23701;; 23702esac 23703 23704if test $ol_aix_threads = yes ; then 23705 if test -z "${CC}" ; then 23706 for ac_prog in cc_r xlc_r cc 23707do 23708 # Extract the first word of "$ac_prog", so it can be a program name with args. 23709set dummy $ac_prog; ac_word=$2 23710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23711$as_echo_n "checking for $ac_word... " >&6; } 23712if ${ac_cv_prog_CC+:} false; then : 23713 $as_echo_n "(cached) " >&6 23714else 23715 if test -n "$CC"; then 23716 ac_cv_prog_CC="$CC" # Let the user override the test. 23717else 23718as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23719for as_dir in $PATH 23720do 23721 IFS=$as_save_IFS 23722 test -z "$as_dir" && as_dir=. 23723 for ac_exec_ext in '' $ac_executable_extensions; do 23724 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23725 ac_cv_prog_CC="$ac_prog" 23726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23727 break 2 23728 fi 23729done 23730 done 23731IFS=$as_save_IFS 23732 23733fi 23734fi 23735CC=$ac_cv_prog_CC 23736if test -n "$CC"; then 23737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 23738$as_echo "$CC" >&6; } 23739else 23740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23741$as_echo "no" >&6; } 23742fi 23743 23744 23745 test -n "$CC" && break 23746done 23747 23748 23749 if test "$CC" = cc ; then 23750 if test $ol_with_threads != auto ; then 23751 as_fn_error $? "--with-threads requires cc_r (or other suitable compiler) on AIX" "$LINENO" 5 23752 else 23753 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling threads, no cc_r on AIX" >&5 23754$as_echo "$as_me: WARNING: disabling threads, no cc_r on AIX" >&2;} 23755 fi 23756 ol_with_threads=no 23757 fi 23758 fi 23759 23760 case ${CC} in cc_r | xlc_r) 23761 ol_with_threads=posix 23762 ol_cv_pthread_create=yes 23763 ;; 23764 esac 23765fi 23766 23767ol_link_threads=no 23768# OpenLDAP --with-yielding_select 23769 23770# Check whether --with-yielding_select was given. 23771if test "${with_yielding_select+set}" = set; then : 23772 withval=$with_yielding_select; 23773 ol_arg=invalid 23774 for ol_val in auto yes no manual ; do 23775 if test "$withval" = "$ol_val" ; then 23776 ol_arg="$ol_val" 23777 fi 23778 done 23779 if test "$ol_arg" = "invalid" ; then 23780 as_fn_error $? "bad value $withval for --with-yielding_select" "$LINENO" 5 23781 fi 23782 ol_with_yielding_select="$ol_arg" 23783 23784else 23785 ol_with_yielding_select="auto" 23786fi 23787# end --with-yielding_select 23788 23789 23790case $ol_with_threads in auto | yes | nt) 23791 23792 23793 ac_fn_c_check_func "$LINENO" "_beginthread" "ac_cv_func__beginthread" 23794if test "x$ac_cv_func__beginthread" = xyes; then : 23795 23796fi 23797 23798 23799 if test $ac_cv_func__beginthread = yes ; then 23800 23801$as_echo "#define HAVE_NT_THREADS 1" >>confdefs.h 23802 23803 ol_cv_nt_threads=yes 23804 fi 23805 23806 23807 if test "$ol_cv_nt_threads" = yes ; then 23808 ol_link_threads=nt 23809 ol_with_threads=found 23810 ol_with_yielding_select=yes 23811 23812 23813$as_echo "#define HAVE_NT_SERVICE_MANAGER 1" >>confdefs.h 23814 23815 23816$as_echo "#define HAVE_NT_EVENT_LOG 1" >>confdefs.h 23817 23818 fi 23819 23820 if test $ol_with_threads = nt ; then 23821 as_fn_error $? "could not locate NT Threads" "$LINENO" 5 23822 fi 23823 ;; 23824esac 23825 23826case $ol_with_threads in auto | yes | posix) 23827 23828 for ac_header in pthread.h 23829do : 23830 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default" 23831if test "x$ac_cv_header_pthread_h" = xyes; then : 23832 cat >>confdefs.h <<_ACEOF 23833#define HAVE_PTHREAD_H 1 23834_ACEOF 23835 23836fi 23837 23838done 23839 23840 23841 if test $ac_cv_header_pthread_h = yes ; then 23842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking POSIX thread version" >&5 23843$as_echo_n "checking POSIX thread version... " >&6; } 23844if ${ol_cv_pthread_version+:} false; then : 23845 $as_echo_n "(cached) " >&6 23846else 23847 23848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23849/* end confdefs.h. */ 23850 23851# include <pthread.h> 23852 23853int 23854main () 23855{ 23856 23857 int i = PTHREAD_CREATE_JOINABLE; 23858 23859 ; 23860 return 0; 23861} 23862_ACEOF 23863if ac_fn_c_try_compile "$LINENO"; then : 23864 23865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23866/* end confdefs.h. */ 23867#include <pthread.h> 23868 23869_ACEOF 23870if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 23871 $EGREP "pthread_detach" >/dev/null 2>&1; then : 23872 ol_cv_pthread_version=10 23873else 23874 ol_cv_pthread_version=8 23875fi 23876rm -f conftest* 23877 23878else 23879 23880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23881/* end confdefs.h. */ 23882 23883# include <pthread.h> 23884# ifdef PTHREAD_CREATE_UNDETACHED 23885 draft7 23886# endif 23887 23888_ACEOF 23889if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 23890 $EGREP "draft7" >/dev/null 2>&1; then : 23891 ol_cv_pthread_version=7 23892else 23893 23894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23895/* end confdefs.h. */ 23896#include <pthread.h> 23897 23898_ACEOF 23899if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 23900 $EGREP "pthread_attr_init" >/dev/null 2>&1; then : 23901 ol_cv_pthread_version=6 23902else 23903 23904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23905/* end confdefs.h. */ 23906 23907# include <pthread.h> 23908#ifdef PTHREAD_MUTEX_INITIALIZER 23909 draft5 23910#endif 23911 23912_ACEOF 23913if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 23914 $EGREP "draft5" >/dev/null 2>&1; then : 23915 ol_cv_pthread_version=5 23916else 23917 ol_cv_pthread_version=4 23918fi 23919rm -f conftest* 23920 23921fi 23922rm -f conftest* 23923 23924fi 23925rm -f conftest* 23926 23927fi 23928rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23929 23930fi 23931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_version" >&5 23932$as_echo "$ol_cv_pthread_version" >&6; } 23933 23934 23935 if test $ol_cv_pthread_version != 0 ; then 23936 23937cat >>confdefs.h <<_ACEOF 23938#define HAVE_PTHREADS $ol_cv_pthread_version 23939_ACEOF 23940 23941 else 23942 as_fn_error $? "unknown pthread version" "$LINENO" 5 23943 fi 23944 23945 # consider threads found 23946 ol_with_threads=found 23947 23948 23949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads pthread.h" >&5 23950$as_echo_n "checking for LinuxThreads pthread.h... " >&6; } 23951if ${ol_cv_header_linux_threads+:} false; then : 23952 $as_echo_n "(cached) " >&6 23953else 23954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23955/* end confdefs.h. */ 23956#include <pthread.h> 23957_ACEOF 23958if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 23959 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then : 23960 ol_cv_header_linux_threads=yes 23961else 23962 ol_cv_header_linux_threads=no 23963fi 23964rm -f conftest* 23965 23966 23967fi 23968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_linux_threads" >&5 23969$as_echo "$ol_cv_header_linux_threads" >&6; } 23970 if test $ol_cv_header_linux_threads = yes; then 23971 23972$as_echo "#define HAVE_LINUX_THREADS 1" >>confdefs.h 23973 23974 fi 23975 23976 23977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU Pth pthread.h" >&5 23978$as_echo_n "checking for GNU Pth pthread.h... " >&6; } 23979if ${ol_cv_header_gnu_pth_pthread_h+:} false; then : 23980 $as_echo_n "(cached) " >&6 23981else 23982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23983/* end confdefs.h. */ 23984#include <pthread.h> 23985#ifdef _POSIX_THREAD_IS_GNU_PTH 23986 __gnu_pth__; 23987#endif 23988 23989_ACEOF 23990if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 23991 $EGREP "__gnu_pth__" >/dev/null 2>&1; then : 23992 ol_cv_header_gnu_pth_pthread_h=yes 23993else 23994 ol_cv_header_gnu_pth_pthread_h=no 23995fi 23996rm -f conftest* 23997 23998 23999fi 24000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_gnu_pth_pthread_h" >&5 24001$as_echo "$ol_cv_header_gnu_pth_pthread_h" >&6; } 24002 24003 24004 if test $ol_cv_header_gnu_pth_pthread_h = no ; then 24005 for ac_header in sched.h 24006do : 24007 ac_fn_c_check_header_mongrel "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default" 24008if test "x$ac_cv_header_sched_h" = xyes; then : 24009 cat >>confdefs.h <<_ACEOF 24010#define HAVE_SCHED_H 1 24011_ACEOF 24012 24013fi 24014 24015done 24016 24017 fi 24018 24019 24020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in default libraries" >&5 24021$as_echo_n "checking for pthread_create in default libraries... " >&6; } 24022if ${ol_cv_pthread_create+:} false; then : 24023 $as_echo_n "(cached) " >&6 24024else 24025 24026 if test "$cross_compiling" = yes; then : 24027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24028/* end confdefs.h. */ 24029 24030/* pthread test headers */ 24031#include <pthread.h> 24032#if HAVE_PTHREADS < 7 24033#include <errno.h> 24034#endif 24035#ifndef NULL 24036#define NULL (void*)0 24037#endif 24038 24039static void *task(p) 24040 void *p; 24041{ 24042 return (void *) (p == NULL); 24043} 24044 24045int 24046main () 24047{ 24048 24049 /* pthread test function */ 24050#ifndef PTHREAD_CREATE_DETACHED 24051#define PTHREAD_CREATE_DETACHED 1 24052#endif 24053 pthread_t t; 24054 int status; 24055 int detach = PTHREAD_CREATE_DETACHED; 24056 24057#if HAVE_PTHREADS > 4 24058 /* Final pthreads */ 24059 pthread_attr_t attr; 24060 24061 status = pthread_attr_init(&attr); 24062 if( status ) return status; 24063 24064#if HAVE_PTHREADS < 7 24065 status = pthread_attr_setdetachstate(&attr, &detach); 24066 if( status < 0 ) status = errno; 24067#else 24068 status = pthread_attr_setdetachstate(&attr, detach); 24069#endif 24070 if( status ) return status; 24071 status = pthread_create( &t, &attr, task, NULL ); 24072#if HAVE_PTHREADS < 7 24073 if( status < 0 ) status = errno; 24074#endif 24075 if( status ) return status; 24076#else 24077 /* Draft 4 pthreads */ 24078 status = pthread_create( &t, pthread_attr_default, task, NULL ); 24079 if( status ) return errno; 24080 24081 /* give thread a chance to complete */ 24082 /* it should remain joinable and hence detachable */ 24083 sleep( 1 ); 24084 24085 status = pthread_detach( &t ); 24086 if( status ) return errno; 24087#endif 24088 24089#ifdef HAVE_LINUX_THREADS 24090 pthread_kill_other_threads_np(); 24091#endif 24092 24093 return 0; 24094 24095 ; 24096 return 0; 24097} 24098_ACEOF 24099if ac_fn_c_try_link "$LINENO"; then : 24100 ol_cv_pthread_create=yes 24101else 24102 ol_cv_pthread_create=no 24103fi 24104rm -f core conftest.err conftest.$ac_objext \ 24105 conftest$ac_exeext conftest.$ac_ext 24106else 24107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24108/* end confdefs.h. */ 24109 24110 24111/* pthread test headers */ 24112#include <pthread.h> 24113#if HAVE_PTHREADS < 7 24114#include <errno.h> 24115#endif 24116#ifndef NULL 24117#define NULL (void*)0 24118#endif 24119 24120static void *task(p) 24121 void *p; 24122{ 24123 return (void *) (p == NULL); 24124} 24125 24126 24127int main(argc, argv) 24128 int argc; 24129 char **argv; 24130{ 24131 24132 /* pthread test function */ 24133#ifndef PTHREAD_CREATE_DETACHED 24134#define PTHREAD_CREATE_DETACHED 1 24135#endif 24136 pthread_t t; 24137 int status; 24138 int detach = PTHREAD_CREATE_DETACHED; 24139 24140#if HAVE_PTHREADS > 4 24141 /* Final pthreads */ 24142 pthread_attr_t attr; 24143 24144 status = pthread_attr_init(&attr); 24145 if( status ) return status; 24146 24147#if HAVE_PTHREADS < 7 24148 status = pthread_attr_setdetachstate(&attr, &detach); 24149 if( status < 0 ) status = errno; 24150#else 24151 status = pthread_attr_setdetachstate(&attr, detach); 24152#endif 24153 if( status ) return status; 24154 status = pthread_create( &t, &attr, task, NULL ); 24155#if HAVE_PTHREADS < 7 24156 if( status < 0 ) status = errno; 24157#endif 24158 if( status ) return status; 24159#else 24160 /* Draft 4 pthreads */ 24161 status = pthread_create( &t, pthread_attr_default, task, NULL ); 24162 if( status ) return errno; 24163 24164 /* give thread a chance to complete */ 24165 /* it should remain joinable and hence detachable */ 24166 sleep( 1 ); 24167 24168 status = pthread_detach( &t ); 24169 if( status ) return errno; 24170#endif 24171 24172#ifdef HAVE_LINUX_THREADS 24173 pthread_kill_other_threads_np(); 24174#endif 24175 24176 return 0; 24177 24178} 24179 24180_ACEOF 24181if ac_fn_c_try_run "$LINENO"; then : 24182 ol_cv_pthread_create=yes 24183else 24184 ol_cv_pthread_create=no 24185fi 24186rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 24187 conftest.$ac_objext conftest.beam conftest.$ac_ext 24188fi 24189 24190fi 24191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_create" >&5 24192$as_echo "$ol_cv_pthread_create" >&6; } 24193 24194 if test $ol_cv_pthread_create != no ; then 24195 ol_link_threads=posix 24196 ol_link_pthreads="" 24197 fi 24198 24199 # Pthread try link: -kthread (ol_cv_pthread_kthread) 24200if test "$ol_link_threads" = no ; then 24201 # try -kthread 24202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -kthread" >&5 24203$as_echo_n "checking for pthread link with -kthread... " >&6; } 24204if ${ol_cv_pthread_kthread+:} false; then : 24205 $as_echo_n "(cached) " >&6 24206else 24207 24208 # save the flags 24209 ol_LIBS="$LIBS" 24210 LIBS="-kthread $LIBS" 24211 24212 if test "$cross_compiling" = yes; then : 24213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24214/* end confdefs.h. */ 24215 24216/* pthread test headers */ 24217#include <pthread.h> 24218#if HAVE_PTHREADS < 7 24219#include <errno.h> 24220#endif 24221#ifndef NULL 24222#define NULL (void*)0 24223#endif 24224 24225static void *task(p) 24226 void *p; 24227{ 24228 return (void *) (p == NULL); 24229} 24230 24231int 24232main () 24233{ 24234 24235 /* pthread test function */ 24236#ifndef PTHREAD_CREATE_DETACHED 24237#define PTHREAD_CREATE_DETACHED 1 24238#endif 24239 pthread_t t; 24240 int status; 24241 int detach = PTHREAD_CREATE_DETACHED; 24242 24243#if HAVE_PTHREADS > 4 24244 /* Final pthreads */ 24245 pthread_attr_t attr; 24246 24247 status = pthread_attr_init(&attr); 24248 if( status ) return status; 24249 24250#if HAVE_PTHREADS < 7 24251 status = pthread_attr_setdetachstate(&attr, &detach); 24252 if( status < 0 ) status = errno; 24253#else 24254 status = pthread_attr_setdetachstate(&attr, detach); 24255#endif 24256 if( status ) return status; 24257 status = pthread_create( &t, &attr, task, NULL ); 24258#if HAVE_PTHREADS < 7 24259 if( status < 0 ) status = errno; 24260#endif 24261 if( status ) return status; 24262#else 24263 /* Draft 4 pthreads */ 24264 status = pthread_create( &t, pthread_attr_default, task, NULL ); 24265 if( status ) return errno; 24266 24267 /* give thread a chance to complete */ 24268 /* it should remain joinable and hence detachable */ 24269 sleep( 1 ); 24270 24271 status = pthread_detach( &t ); 24272 if( status ) return errno; 24273#endif 24274 24275#ifdef HAVE_LINUX_THREADS 24276 pthread_kill_other_threads_np(); 24277#endif 24278 24279 return 0; 24280 24281 ; 24282 return 0; 24283} 24284_ACEOF 24285if ac_fn_c_try_link "$LINENO"; then : 24286 ol_cv_pthread_kthread=yes 24287else 24288 ol_cv_pthread_kthread=no 24289fi 24290rm -f core conftest.err conftest.$ac_objext \ 24291 conftest$ac_exeext conftest.$ac_ext 24292else 24293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24294/* end confdefs.h. */ 24295 24296 24297/* pthread test headers */ 24298#include <pthread.h> 24299#if HAVE_PTHREADS < 7 24300#include <errno.h> 24301#endif 24302#ifndef NULL 24303#define NULL (void*)0 24304#endif 24305 24306static void *task(p) 24307 void *p; 24308{ 24309 return (void *) (p == NULL); 24310} 24311 24312 24313int main(argc, argv) 24314 int argc; 24315 char **argv; 24316{ 24317 24318 /* pthread test function */ 24319#ifndef PTHREAD_CREATE_DETACHED 24320#define PTHREAD_CREATE_DETACHED 1 24321#endif 24322 pthread_t t; 24323 int status; 24324 int detach = PTHREAD_CREATE_DETACHED; 24325 24326#if HAVE_PTHREADS > 4 24327 /* Final pthreads */ 24328 pthread_attr_t attr; 24329 24330 status = pthread_attr_init(&attr); 24331 if( status ) return status; 24332 24333#if HAVE_PTHREADS < 7 24334 status = pthread_attr_setdetachstate(&attr, &detach); 24335 if( status < 0 ) status = errno; 24336#else 24337 status = pthread_attr_setdetachstate(&attr, detach); 24338#endif 24339 if( status ) return status; 24340 status = pthread_create( &t, &attr, task, NULL ); 24341#if HAVE_PTHREADS < 7 24342 if( status < 0 ) status = errno; 24343#endif 24344 if( status ) return status; 24345#else 24346 /* Draft 4 pthreads */ 24347 status = pthread_create( &t, pthread_attr_default, task, NULL ); 24348 if( status ) return errno; 24349 24350 /* give thread a chance to complete */ 24351 /* it should remain joinable and hence detachable */ 24352 sleep( 1 ); 24353 24354 status = pthread_detach( &t ); 24355 if( status ) return errno; 24356#endif 24357 24358#ifdef HAVE_LINUX_THREADS 24359 pthread_kill_other_threads_np(); 24360#endif 24361 24362 return 0; 24363 24364} 24365 24366_ACEOF 24367if ac_fn_c_try_run "$LINENO"; then : 24368 ol_cv_pthread_kthread=yes 24369else 24370 ol_cv_pthread_kthread=no 24371fi 24372rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 24373 conftest.$ac_objext conftest.beam conftest.$ac_ext 24374fi 24375 24376 24377 # restore the LIBS 24378 LIBS="$ol_LIBS" 24379 24380fi 24381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_kthread" >&5 24382$as_echo "$ol_cv_pthread_kthread" >&6; } 24383 24384 if test $ol_cv_pthread_kthread = yes ; then 24385 ol_link_pthreads="-kthread" 24386 ol_link_threads=posix 24387 fi 24388fi 24389 24390 # Pthread try link: -pthread (ol_cv_pthread_pthread) 24391if test "$ol_link_threads" = no ; then 24392 # try -pthread 24393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -pthread" >&5 24394$as_echo_n "checking for pthread link with -pthread... " >&6; } 24395if ${ol_cv_pthread_pthread+:} false; then : 24396 $as_echo_n "(cached) " >&6 24397else 24398 24399 # save the flags 24400 ol_LIBS="$LIBS" 24401 LIBS="-pthread $LIBS" 24402 24403 if test "$cross_compiling" = yes; then : 24404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24405/* end confdefs.h. */ 24406 24407/* pthread test headers */ 24408#include <pthread.h> 24409#if HAVE_PTHREADS < 7 24410#include <errno.h> 24411#endif 24412#ifndef NULL 24413#define NULL (void*)0 24414#endif 24415 24416static void *task(p) 24417 void *p; 24418{ 24419 return (void *) (p == NULL); 24420} 24421 24422int 24423main () 24424{ 24425 24426 /* pthread test function */ 24427#ifndef PTHREAD_CREATE_DETACHED 24428#define PTHREAD_CREATE_DETACHED 1 24429#endif 24430 pthread_t t; 24431 int status; 24432 int detach = PTHREAD_CREATE_DETACHED; 24433 24434#if HAVE_PTHREADS > 4 24435 /* Final pthreads */ 24436 pthread_attr_t attr; 24437 24438 status = pthread_attr_init(&attr); 24439 if( status ) return status; 24440 24441#if HAVE_PTHREADS < 7 24442 status = pthread_attr_setdetachstate(&attr, &detach); 24443 if( status < 0 ) status = errno; 24444#else 24445 status = pthread_attr_setdetachstate(&attr, detach); 24446#endif 24447 if( status ) return status; 24448 status = pthread_create( &t, &attr, task, NULL ); 24449#if HAVE_PTHREADS < 7 24450 if( status < 0 ) status = errno; 24451#endif 24452 if( status ) return status; 24453#else 24454 /* Draft 4 pthreads */ 24455 status = pthread_create( &t, pthread_attr_default, task, NULL ); 24456 if( status ) return errno; 24457 24458 /* give thread a chance to complete */ 24459 /* it should remain joinable and hence detachable */ 24460 sleep( 1 ); 24461 24462 status = pthread_detach( &t ); 24463 if( status ) return errno; 24464#endif 24465 24466#ifdef HAVE_LINUX_THREADS 24467 pthread_kill_other_threads_np(); 24468#endif 24469 24470 return 0; 24471 24472 ; 24473 return 0; 24474} 24475_ACEOF 24476if ac_fn_c_try_link "$LINENO"; then : 24477 ol_cv_pthread_pthread=yes 24478else 24479 ol_cv_pthread_pthread=no 24480fi 24481rm -f core conftest.err conftest.$ac_objext \ 24482 conftest$ac_exeext conftest.$ac_ext 24483else 24484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24485/* end confdefs.h. */ 24486 24487 24488/* pthread test headers */ 24489#include <pthread.h> 24490#if HAVE_PTHREADS < 7 24491#include <errno.h> 24492#endif 24493#ifndef NULL 24494#define NULL (void*)0 24495#endif 24496 24497static void *task(p) 24498 void *p; 24499{ 24500 return (void *) (p == NULL); 24501} 24502 24503 24504int main(argc, argv) 24505 int argc; 24506 char **argv; 24507{ 24508 24509 /* pthread test function */ 24510#ifndef PTHREAD_CREATE_DETACHED 24511#define PTHREAD_CREATE_DETACHED 1 24512#endif 24513 pthread_t t; 24514 int status; 24515 int detach = PTHREAD_CREATE_DETACHED; 24516 24517#if HAVE_PTHREADS > 4 24518 /* Final pthreads */ 24519 pthread_attr_t attr; 24520 24521 status = pthread_attr_init(&attr); 24522 if( status ) return status; 24523 24524#if HAVE_PTHREADS < 7 24525 status = pthread_attr_setdetachstate(&attr, &detach); 24526 if( status < 0 ) status = errno; 24527#else 24528 status = pthread_attr_setdetachstate(&attr, detach); 24529#endif 24530 if( status ) return status; 24531 status = pthread_create( &t, &attr, task, NULL ); 24532#if HAVE_PTHREADS < 7 24533 if( status < 0 ) status = errno; 24534#endif 24535 if( status ) return status; 24536#else 24537 /* Draft 4 pthreads */ 24538 status = pthread_create( &t, pthread_attr_default, task, NULL ); 24539 if( status ) return errno; 24540 24541 /* give thread a chance to complete */ 24542 /* it should remain joinable and hence detachable */ 24543 sleep( 1 ); 24544 24545 status = pthread_detach( &t ); 24546 if( status ) return errno; 24547#endif 24548 24549#ifdef HAVE_LINUX_THREADS 24550 pthread_kill_other_threads_np(); 24551#endif 24552 24553 return 0; 24554 24555} 24556 24557_ACEOF 24558if ac_fn_c_try_run "$LINENO"; then : 24559 ol_cv_pthread_pthread=yes 24560else 24561 ol_cv_pthread_pthread=no 24562fi 24563rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 24564 conftest.$ac_objext conftest.beam conftest.$ac_ext 24565fi 24566 24567 24568 # restore the LIBS 24569 LIBS="$ol_LIBS" 24570 24571fi 24572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_pthread" >&5 24573$as_echo "$ol_cv_pthread_pthread" >&6; } 24574 24575 if test $ol_cv_pthread_pthread = yes ; then 24576 ol_link_pthreads="-pthread" 24577 ol_link_threads=posix 24578 fi 24579fi 24580 24581 # Pthread try link: -pthreads (ol_cv_pthread_pthreads) 24582if test "$ol_link_threads" = no ; then 24583 # try -pthreads 24584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -pthreads" >&5 24585$as_echo_n "checking for pthread link with -pthreads... " >&6; } 24586if ${ol_cv_pthread_pthreads+:} false; then : 24587 $as_echo_n "(cached) " >&6 24588else 24589 24590 # save the flags 24591 ol_LIBS="$LIBS" 24592 LIBS="-pthreads $LIBS" 24593 24594 if test "$cross_compiling" = yes; then : 24595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24596/* end confdefs.h. */ 24597 24598/* pthread test headers */ 24599#include <pthread.h> 24600#if HAVE_PTHREADS < 7 24601#include <errno.h> 24602#endif 24603#ifndef NULL 24604#define NULL (void*)0 24605#endif 24606 24607static void *task(p) 24608 void *p; 24609{ 24610 return (void *) (p == NULL); 24611} 24612 24613int 24614main () 24615{ 24616 24617 /* pthread test function */ 24618#ifndef PTHREAD_CREATE_DETACHED 24619#define PTHREAD_CREATE_DETACHED 1 24620#endif 24621 pthread_t t; 24622 int status; 24623 int detach = PTHREAD_CREATE_DETACHED; 24624 24625#if HAVE_PTHREADS > 4 24626 /* Final pthreads */ 24627 pthread_attr_t attr; 24628 24629 status = pthread_attr_init(&attr); 24630 if( status ) return status; 24631 24632#if HAVE_PTHREADS < 7 24633 status = pthread_attr_setdetachstate(&attr, &detach); 24634 if( status < 0 ) status = errno; 24635#else 24636 status = pthread_attr_setdetachstate(&attr, detach); 24637#endif 24638 if( status ) return status; 24639 status = pthread_create( &t, &attr, task, NULL ); 24640#if HAVE_PTHREADS < 7 24641 if( status < 0 ) status = errno; 24642#endif 24643 if( status ) return status; 24644#else 24645 /* Draft 4 pthreads */ 24646 status = pthread_create( &t, pthread_attr_default, task, NULL ); 24647 if( status ) return errno; 24648 24649 /* give thread a chance to complete */ 24650 /* it should remain joinable and hence detachable */ 24651 sleep( 1 ); 24652 24653 status = pthread_detach( &t ); 24654 if( status ) return errno; 24655#endif 24656 24657#ifdef HAVE_LINUX_THREADS 24658 pthread_kill_other_threads_np(); 24659#endif 24660 24661 return 0; 24662 24663 ; 24664 return 0; 24665} 24666_ACEOF 24667if ac_fn_c_try_link "$LINENO"; then : 24668 ol_cv_pthread_pthreads=yes 24669else 24670 ol_cv_pthread_pthreads=no 24671fi 24672rm -f core conftest.err conftest.$ac_objext \ 24673 conftest$ac_exeext conftest.$ac_ext 24674else 24675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24676/* end confdefs.h. */ 24677 24678 24679/* pthread test headers */ 24680#include <pthread.h> 24681#if HAVE_PTHREADS < 7 24682#include <errno.h> 24683#endif 24684#ifndef NULL 24685#define NULL (void*)0 24686#endif 24687 24688static void *task(p) 24689 void *p; 24690{ 24691 return (void *) (p == NULL); 24692} 24693 24694 24695int main(argc, argv) 24696 int argc; 24697 char **argv; 24698{ 24699 24700 /* pthread test function */ 24701#ifndef PTHREAD_CREATE_DETACHED 24702#define PTHREAD_CREATE_DETACHED 1 24703#endif 24704 pthread_t t; 24705 int status; 24706 int detach = PTHREAD_CREATE_DETACHED; 24707 24708#if HAVE_PTHREADS > 4 24709 /* Final pthreads */ 24710 pthread_attr_t attr; 24711 24712 status = pthread_attr_init(&attr); 24713 if( status ) return status; 24714 24715#if HAVE_PTHREADS < 7 24716 status = pthread_attr_setdetachstate(&attr, &detach); 24717 if( status < 0 ) status = errno; 24718#else 24719 status = pthread_attr_setdetachstate(&attr, detach); 24720#endif 24721 if( status ) return status; 24722 status = pthread_create( &t, &attr, task, NULL ); 24723#if HAVE_PTHREADS < 7 24724 if( status < 0 ) status = errno; 24725#endif 24726 if( status ) return status; 24727#else 24728 /* Draft 4 pthreads */ 24729 status = pthread_create( &t, pthread_attr_default, task, NULL ); 24730 if( status ) return errno; 24731 24732 /* give thread a chance to complete */ 24733 /* it should remain joinable and hence detachable */ 24734 sleep( 1 ); 24735 24736 status = pthread_detach( &t ); 24737 if( status ) return errno; 24738#endif 24739 24740#ifdef HAVE_LINUX_THREADS 24741 pthread_kill_other_threads_np(); 24742#endif 24743 24744 return 0; 24745 24746} 24747 24748_ACEOF 24749if ac_fn_c_try_run "$LINENO"; then : 24750 ol_cv_pthread_pthreads=yes 24751else 24752 ol_cv_pthread_pthreads=no 24753fi 24754rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 24755 conftest.$ac_objext conftest.beam conftest.$ac_ext 24756fi 24757 24758 24759 # restore the LIBS 24760 LIBS="$ol_LIBS" 24761 24762fi 24763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_pthreads" >&5 24764$as_echo "$ol_cv_pthread_pthreads" >&6; } 24765 24766 if test $ol_cv_pthread_pthreads = yes ; then 24767 ol_link_pthreads="-pthreads" 24768 ol_link_threads=posix 24769 fi 24770fi 24771 24772 # Pthread try link: -mthreads (ol_cv_pthread_mthreads) 24773if test "$ol_link_threads" = no ; then 24774 # try -mthreads 24775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -mthreads" >&5 24776$as_echo_n "checking for pthread link with -mthreads... " >&6; } 24777if ${ol_cv_pthread_mthreads+:} false; then : 24778 $as_echo_n "(cached) " >&6 24779else 24780 24781 # save the flags 24782 ol_LIBS="$LIBS" 24783 LIBS="-mthreads $LIBS" 24784 24785 if test "$cross_compiling" = yes; then : 24786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24787/* end confdefs.h. */ 24788 24789/* pthread test headers */ 24790#include <pthread.h> 24791#if HAVE_PTHREADS < 7 24792#include <errno.h> 24793#endif 24794#ifndef NULL 24795#define NULL (void*)0 24796#endif 24797 24798static void *task(p) 24799 void *p; 24800{ 24801 return (void *) (p == NULL); 24802} 24803 24804int 24805main () 24806{ 24807 24808 /* pthread test function */ 24809#ifndef PTHREAD_CREATE_DETACHED 24810#define PTHREAD_CREATE_DETACHED 1 24811#endif 24812 pthread_t t; 24813 int status; 24814 int detach = PTHREAD_CREATE_DETACHED; 24815 24816#if HAVE_PTHREADS > 4 24817 /* Final pthreads */ 24818 pthread_attr_t attr; 24819 24820 status = pthread_attr_init(&attr); 24821 if( status ) return status; 24822 24823#if HAVE_PTHREADS < 7 24824 status = pthread_attr_setdetachstate(&attr, &detach); 24825 if( status < 0 ) status = errno; 24826#else 24827 status = pthread_attr_setdetachstate(&attr, detach); 24828#endif 24829 if( status ) return status; 24830 status = pthread_create( &t, &attr, task, NULL ); 24831#if HAVE_PTHREADS < 7 24832 if( status < 0 ) status = errno; 24833#endif 24834 if( status ) return status; 24835#else 24836 /* Draft 4 pthreads */ 24837 status = pthread_create( &t, pthread_attr_default, task, NULL ); 24838 if( status ) return errno; 24839 24840 /* give thread a chance to complete */ 24841 /* it should remain joinable and hence detachable */ 24842 sleep( 1 ); 24843 24844 status = pthread_detach( &t ); 24845 if( status ) return errno; 24846#endif 24847 24848#ifdef HAVE_LINUX_THREADS 24849 pthread_kill_other_threads_np(); 24850#endif 24851 24852 return 0; 24853 24854 ; 24855 return 0; 24856} 24857_ACEOF 24858if ac_fn_c_try_link "$LINENO"; then : 24859 ol_cv_pthread_mthreads=yes 24860else 24861 ol_cv_pthread_mthreads=no 24862fi 24863rm -f core conftest.err conftest.$ac_objext \ 24864 conftest$ac_exeext conftest.$ac_ext 24865else 24866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24867/* end confdefs.h. */ 24868 24869 24870/* pthread test headers */ 24871#include <pthread.h> 24872#if HAVE_PTHREADS < 7 24873#include <errno.h> 24874#endif 24875#ifndef NULL 24876#define NULL (void*)0 24877#endif 24878 24879static void *task(p) 24880 void *p; 24881{ 24882 return (void *) (p == NULL); 24883} 24884 24885 24886int main(argc, argv) 24887 int argc; 24888 char **argv; 24889{ 24890 24891 /* pthread test function */ 24892#ifndef PTHREAD_CREATE_DETACHED 24893#define PTHREAD_CREATE_DETACHED 1 24894#endif 24895 pthread_t t; 24896 int status; 24897 int detach = PTHREAD_CREATE_DETACHED; 24898 24899#if HAVE_PTHREADS > 4 24900 /* Final pthreads */ 24901 pthread_attr_t attr; 24902 24903 status = pthread_attr_init(&attr); 24904 if( status ) return status; 24905 24906#if HAVE_PTHREADS < 7 24907 status = pthread_attr_setdetachstate(&attr, &detach); 24908 if( status < 0 ) status = errno; 24909#else 24910 status = pthread_attr_setdetachstate(&attr, detach); 24911#endif 24912 if( status ) return status; 24913 status = pthread_create( &t, &attr, task, NULL ); 24914#if HAVE_PTHREADS < 7 24915 if( status < 0 ) status = errno; 24916#endif 24917 if( status ) return status; 24918#else 24919 /* Draft 4 pthreads */ 24920 status = pthread_create( &t, pthread_attr_default, task, NULL ); 24921 if( status ) return errno; 24922 24923 /* give thread a chance to complete */ 24924 /* it should remain joinable and hence detachable */ 24925 sleep( 1 ); 24926 24927 status = pthread_detach( &t ); 24928 if( status ) return errno; 24929#endif 24930 24931#ifdef HAVE_LINUX_THREADS 24932 pthread_kill_other_threads_np(); 24933#endif 24934 24935 return 0; 24936 24937} 24938 24939_ACEOF 24940if ac_fn_c_try_run "$LINENO"; then : 24941 ol_cv_pthread_mthreads=yes 24942else 24943 ol_cv_pthread_mthreads=no 24944fi 24945rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 24946 conftest.$ac_objext conftest.beam conftest.$ac_ext 24947fi 24948 24949 24950 # restore the LIBS 24951 LIBS="$ol_LIBS" 24952 24953fi 24954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_mthreads" >&5 24955$as_echo "$ol_cv_pthread_mthreads" >&6; } 24956 24957 if test $ol_cv_pthread_mthreads = yes ; then 24958 ol_link_pthreads="-mthreads" 24959 ol_link_threads=posix 24960 fi 24961fi 24962 24963 # Pthread try link: -thread (ol_cv_pthread_thread) 24964if test "$ol_link_threads" = no ; then 24965 # try -thread 24966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -thread" >&5 24967$as_echo_n "checking for pthread link with -thread... " >&6; } 24968if ${ol_cv_pthread_thread+:} false; then : 24969 $as_echo_n "(cached) " >&6 24970else 24971 24972 # save the flags 24973 ol_LIBS="$LIBS" 24974 LIBS="-thread $LIBS" 24975 24976 if test "$cross_compiling" = yes; then : 24977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24978/* end confdefs.h. */ 24979 24980/* pthread test headers */ 24981#include <pthread.h> 24982#if HAVE_PTHREADS < 7 24983#include <errno.h> 24984#endif 24985#ifndef NULL 24986#define NULL (void*)0 24987#endif 24988 24989static void *task(p) 24990 void *p; 24991{ 24992 return (void *) (p == NULL); 24993} 24994 24995int 24996main () 24997{ 24998 24999 /* pthread test function */ 25000#ifndef PTHREAD_CREATE_DETACHED 25001#define PTHREAD_CREATE_DETACHED 1 25002#endif 25003 pthread_t t; 25004 int status; 25005 int detach = PTHREAD_CREATE_DETACHED; 25006 25007#if HAVE_PTHREADS > 4 25008 /* Final pthreads */ 25009 pthread_attr_t attr; 25010 25011 status = pthread_attr_init(&attr); 25012 if( status ) return status; 25013 25014#if HAVE_PTHREADS < 7 25015 status = pthread_attr_setdetachstate(&attr, &detach); 25016 if( status < 0 ) status = errno; 25017#else 25018 status = pthread_attr_setdetachstate(&attr, detach); 25019#endif 25020 if( status ) return status; 25021 status = pthread_create( &t, &attr, task, NULL ); 25022#if HAVE_PTHREADS < 7 25023 if( status < 0 ) status = errno; 25024#endif 25025 if( status ) return status; 25026#else 25027 /* Draft 4 pthreads */ 25028 status = pthread_create( &t, pthread_attr_default, task, NULL ); 25029 if( status ) return errno; 25030 25031 /* give thread a chance to complete */ 25032 /* it should remain joinable and hence detachable */ 25033 sleep( 1 ); 25034 25035 status = pthread_detach( &t ); 25036 if( status ) return errno; 25037#endif 25038 25039#ifdef HAVE_LINUX_THREADS 25040 pthread_kill_other_threads_np(); 25041#endif 25042 25043 return 0; 25044 25045 ; 25046 return 0; 25047} 25048_ACEOF 25049if ac_fn_c_try_link "$LINENO"; then : 25050 ol_cv_pthread_thread=yes 25051else 25052 ol_cv_pthread_thread=no 25053fi 25054rm -f core conftest.err conftest.$ac_objext \ 25055 conftest$ac_exeext conftest.$ac_ext 25056else 25057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25058/* end confdefs.h. */ 25059 25060 25061/* pthread test headers */ 25062#include <pthread.h> 25063#if HAVE_PTHREADS < 7 25064#include <errno.h> 25065#endif 25066#ifndef NULL 25067#define NULL (void*)0 25068#endif 25069 25070static void *task(p) 25071 void *p; 25072{ 25073 return (void *) (p == NULL); 25074} 25075 25076 25077int main(argc, argv) 25078 int argc; 25079 char **argv; 25080{ 25081 25082 /* pthread test function */ 25083#ifndef PTHREAD_CREATE_DETACHED 25084#define PTHREAD_CREATE_DETACHED 1 25085#endif 25086 pthread_t t; 25087 int status; 25088 int detach = PTHREAD_CREATE_DETACHED; 25089 25090#if HAVE_PTHREADS > 4 25091 /* Final pthreads */ 25092 pthread_attr_t attr; 25093 25094 status = pthread_attr_init(&attr); 25095 if( status ) return status; 25096 25097#if HAVE_PTHREADS < 7 25098 status = pthread_attr_setdetachstate(&attr, &detach); 25099 if( status < 0 ) status = errno; 25100#else 25101 status = pthread_attr_setdetachstate(&attr, detach); 25102#endif 25103 if( status ) return status; 25104 status = pthread_create( &t, &attr, task, NULL ); 25105#if HAVE_PTHREADS < 7 25106 if( status < 0 ) status = errno; 25107#endif 25108 if( status ) return status; 25109#else 25110 /* Draft 4 pthreads */ 25111 status = pthread_create( &t, pthread_attr_default, task, NULL ); 25112 if( status ) return errno; 25113 25114 /* give thread a chance to complete */ 25115 /* it should remain joinable and hence detachable */ 25116 sleep( 1 ); 25117 25118 status = pthread_detach( &t ); 25119 if( status ) return errno; 25120#endif 25121 25122#ifdef HAVE_LINUX_THREADS 25123 pthread_kill_other_threads_np(); 25124#endif 25125 25126 return 0; 25127 25128} 25129 25130_ACEOF 25131if ac_fn_c_try_run "$LINENO"; then : 25132 ol_cv_pthread_thread=yes 25133else 25134 ol_cv_pthread_thread=no 25135fi 25136rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 25137 conftest.$ac_objext conftest.beam conftest.$ac_ext 25138fi 25139 25140 25141 # restore the LIBS 25142 LIBS="$ol_LIBS" 25143 25144fi 25145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_thread" >&5 25146$as_echo "$ol_cv_pthread_thread" >&6; } 25147 25148 if test $ol_cv_pthread_thread = yes ; then 25149 ol_link_pthreads="-thread" 25150 ol_link_threads=posix 25151 fi 25152fi 25153 25154 25155 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r) 25156if test "$ol_link_threads" = no ; then 25157 # try -lpthread -lmach -lexc -lc_r 25158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5 25159$as_echo_n "checking for pthread link with -lpthread -lmach -lexc -lc_r... " >&6; } 25160if ${ol_cv_pthread_lpthread_lmach_lexc_lc_r+:} false; then : 25161 $as_echo_n "(cached) " >&6 25162else 25163 25164 # save the flags 25165 ol_LIBS="$LIBS" 25166 LIBS="-lpthread -lmach -lexc -lc_r $LIBS" 25167 25168 if test "$cross_compiling" = yes; then : 25169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25170/* end confdefs.h. */ 25171 25172/* pthread test headers */ 25173#include <pthread.h> 25174#if HAVE_PTHREADS < 7 25175#include <errno.h> 25176#endif 25177#ifndef NULL 25178#define NULL (void*)0 25179#endif 25180 25181static void *task(p) 25182 void *p; 25183{ 25184 return (void *) (p == NULL); 25185} 25186 25187int 25188main () 25189{ 25190 25191 /* pthread test function */ 25192#ifndef PTHREAD_CREATE_DETACHED 25193#define PTHREAD_CREATE_DETACHED 1 25194#endif 25195 pthread_t t; 25196 int status; 25197 int detach = PTHREAD_CREATE_DETACHED; 25198 25199#if HAVE_PTHREADS > 4 25200 /* Final pthreads */ 25201 pthread_attr_t attr; 25202 25203 status = pthread_attr_init(&attr); 25204 if( status ) return status; 25205 25206#if HAVE_PTHREADS < 7 25207 status = pthread_attr_setdetachstate(&attr, &detach); 25208 if( status < 0 ) status = errno; 25209#else 25210 status = pthread_attr_setdetachstate(&attr, detach); 25211#endif 25212 if( status ) return status; 25213 status = pthread_create( &t, &attr, task, NULL ); 25214#if HAVE_PTHREADS < 7 25215 if( status < 0 ) status = errno; 25216#endif 25217 if( status ) return status; 25218#else 25219 /* Draft 4 pthreads */ 25220 status = pthread_create( &t, pthread_attr_default, task, NULL ); 25221 if( status ) return errno; 25222 25223 /* give thread a chance to complete */ 25224 /* it should remain joinable and hence detachable */ 25225 sleep( 1 ); 25226 25227 status = pthread_detach( &t ); 25228 if( status ) return errno; 25229#endif 25230 25231#ifdef HAVE_LINUX_THREADS 25232 pthread_kill_other_threads_np(); 25233#endif 25234 25235 return 0; 25236 25237 ; 25238 return 0; 25239} 25240_ACEOF 25241if ac_fn_c_try_link "$LINENO"; then : 25242 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes 25243else 25244 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no 25245fi 25246rm -f core conftest.err conftest.$ac_objext \ 25247 conftest$ac_exeext conftest.$ac_ext 25248else 25249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25250/* end confdefs.h. */ 25251 25252 25253/* pthread test headers */ 25254#include <pthread.h> 25255#if HAVE_PTHREADS < 7 25256#include <errno.h> 25257#endif 25258#ifndef NULL 25259#define NULL (void*)0 25260#endif 25261 25262static void *task(p) 25263 void *p; 25264{ 25265 return (void *) (p == NULL); 25266} 25267 25268 25269int main(argc, argv) 25270 int argc; 25271 char **argv; 25272{ 25273 25274 /* pthread test function */ 25275#ifndef PTHREAD_CREATE_DETACHED 25276#define PTHREAD_CREATE_DETACHED 1 25277#endif 25278 pthread_t t; 25279 int status; 25280 int detach = PTHREAD_CREATE_DETACHED; 25281 25282#if HAVE_PTHREADS > 4 25283 /* Final pthreads */ 25284 pthread_attr_t attr; 25285 25286 status = pthread_attr_init(&attr); 25287 if( status ) return status; 25288 25289#if HAVE_PTHREADS < 7 25290 status = pthread_attr_setdetachstate(&attr, &detach); 25291 if( status < 0 ) status = errno; 25292#else 25293 status = pthread_attr_setdetachstate(&attr, detach); 25294#endif 25295 if( status ) return status; 25296 status = pthread_create( &t, &attr, task, NULL ); 25297#if HAVE_PTHREADS < 7 25298 if( status < 0 ) status = errno; 25299#endif 25300 if( status ) return status; 25301#else 25302 /* Draft 4 pthreads */ 25303 status = pthread_create( &t, pthread_attr_default, task, NULL ); 25304 if( status ) return errno; 25305 25306 /* give thread a chance to complete */ 25307 /* it should remain joinable and hence detachable */ 25308 sleep( 1 ); 25309 25310 status = pthread_detach( &t ); 25311 if( status ) return errno; 25312#endif 25313 25314#ifdef HAVE_LINUX_THREADS 25315 pthread_kill_other_threads_np(); 25316#endif 25317 25318 return 0; 25319 25320} 25321 25322_ACEOF 25323if ac_fn_c_try_run "$LINENO"; then : 25324 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes 25325else 25326 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no 25327fi 25328rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 25329 conftest.$ac_objext conftest.beam conftest.$ac_ext 25330fi 25331 25332 25333 # restore the LIBS 25334 LIBS="$ol_LIBS" 25335 25336fi 25337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&5 25338$as_echo "$ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&6; } 25339 25340 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then 25341 ol_link_pthreads="-lpthread -lmach -lexc -lc_r" 25342 ol_link_threads=posix 25343 fi 25344fi 25345 25346 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc) 25347if test "$ol_link_threads" = no ; then 25348 # try -lpthread -lmach -lexc 25349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread -lmach -lexc" >&5 25350$as_echo_n "checking for pthread link with -lpthread -lmach -lexc... " >&6; } 25351if ${ol_cv_pthread_lpthread_lmach_lexc+:} false; then : 25352 $as_echo_n "(cached) " >&6 25353else 25354 25355 # save the flags 25356 ol_LIBS="$LIBS" 25357 LIBS="-lpthread -lmach -lexc $LIBS" 25358 25359 if test "$cross_compiling" = yes; then : 25360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25361/* end confdefs.h. */ 25362 25363/* pthread test headers */ 25364#include <pthread.h> 25365#if HAVE_PTHREADS < 7 25366#include <errno.h> 25367#endif 25368#ifndef NULL 25369#define NULL (void*)0 25370#endif 25371 25372static void *task(p) 25373 void *p; 25374{ 25375 return (void *) (p == NULL); 25376} 25377 25378int 25379main () 25380{ 25381 25382 /* pthread test function */ 25383#ifndef PTHREAD_CREATE_DETACHED 25384#define PTHREAD_CREATE_DETACHED 1 25385#endif 25386 pthread_t t; 25387 int status; 25388 int detach = PTHREAD_CREATE_DETACHED; 25389 25390#if HAVE_PTHREADS > 4 25391 /* Final pthreads */ 25392 pthread_attr_t attr; 25393 25394 status = pthread_attr_init(&attr); 25395 if( status ) return status; 25396 25397#if HAVE_PTHREADS < 7 25398 status = pthread_attr_setdetachstate(&attr, &detach); 25399 if( status < 0 ) status = errno; 25400#else 25401 status = pthread_attr_setdetachstate(&attr, detach); 25402#endif 25403 if( status ) return status; 25404 status = pthread_create( &t, &attr, task, NULL ); 25405#if HAVE_PTHREADS < 7 25406 if( status < 0 ) status = errno; 25407#endif 25408 if( status ) return status; 25409#else 25410 /* Draft 4 pthreads */ 25411 status = pthread_create( &t, pthread_attr_default, task, NULL ); 25412 if( status ) return errno; 25413 25414 /* give thread a chance to complete */ 25415 /* it should remain joinable and hence detachable */ 25416 sleep( 1 ); 25417 25418 status = pthread_detach( &t ); 25419 if( status ) return errno; 25420#endif 25421 25422#ifdef HAVE_LINUX_THREADS 25423 pthread_kill_other_threads_np(); 25424#endif 25425 25426 return 0; 25427 25428 ; 25429 return 0; 25430} 25431_ACEOF 25432if ac_fn_c_try_link "$LINENO"; then : 25433 ol_cv_pthread_lpthread_lmach_lexc=yes 25434else 25435 ol_cv_pthread_lpthread_lmach_lexc=no 25436fi 25437rm -f core conftest.err conftest.$ac_objext \ 25438 conftest$ac_exeext conftest.$ac_ext 25439else 25440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25441/* end confdefs.h. */ 25442 25443 25444/* pthread test headers */ 25445#include <pthread.h> 25446#if HAVE_PTHREADS < 7 25447#include <errno.h> 25448#endif 25449#ifndef NULL 25450#define NULL (void*)0 25451#endif 25452 25453static void *task(p) 25454 void *p; 25455{ 25456 return (void *) (p == NULL); 25457} 25458 25459 25460int main(argc, argv) 25461 int argc; 25462 char **argv; 25463{ 25464 25465 /* pthread test function */ 25466#ifndef PTHREAD_CREATE_DETACHED 25467#define PTHREAD_CREATE_DETACHED 1 25468#endif 25469 pthread_t t; 25470 int status; 25471 int detach = PTHREAD_CREATE_DETACHED; 25472 25473#if HAVE_PTHREADS > 4 25474 /* Final pthreads */ 25475 pthread_attr_t attr; 25476 25477 status = pthread_attr_init(&attr); 25478 if( status ) return status; 25479 25480#if HAVE_PTHREADS < 7 25481 status = pthread_attr_setdetachstate(&attr, &detach); 25482 if( status < 0 ) status = errno; 25483#else 25484 status = pthread_attr_setdetachstate(&attr, detach); 25485#endif 25486 if( status ) return status; 25487 status = pthread_create( &t, &attr, task, NULL ); 25488#if HAVE_PTHREADS < 7 25489 if( status < 0 ) status = errno; 25490#endif 25491 if( status ) return status; 25492#else 25493 /* Draft 4 pthreads */ 25494 status = pthread_create( &t, pthread_attr_default, task, NULL ); 25495 if( status ) return errno; 25496 25497 /* give thread a chance to complete */ 25498 /* it should remain joinable and hence detachable */ 25499 sleep( 1 ); 25500 25501 status = pthread_detach( &t ); 25502 if( status ) return errno; 25503#endif 25504 25505#ifdef HAVE_LINUX_THREADS 25506 pthread_kill_other_threads_np(); 25507#endif 25508 25509 return 0; 25510 25511} 25512 25513_ACEOF 25514if ac_fn_c_try_run "$LINENO"; then : 25515 ol_cv_pthread_lpthread_lmach_lexc=yes 25516else 25517 ol_cv_pthread_lpthread_lmach_lexc=no 25518fi 25519rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 25520 conftest.$ac_objext conftest.beam conftest.$ac_ext 25521fi 25522 25523 25524 # restore the LIBS 25525 LIBS="$ol_LIBS" 25526 25527fi 25528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthread_lmach_lexc" >&5 25529$as_echo "$ol_cv_pthread_lpthread_lmach_lexc" >&6; } 25530 25531 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then 25532 ol_link_pthreads="-lpthread -lmach -lexc" 25533 ol_link_threads=posix 25534 fi 25535fi 25536 25537 25538 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff) 25539if test "$ol_link_threads" = no ; then 25540 # try -lpthread -Wl,-woff,85 25541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread -Wl,-woff,85" >&5 25542$as_echo_n "checking for pthread link with -lpthread -Wl,-woff,85... " >&6; } 25543if ${ol_cv_pthread_lib_lpthread_woff+:} false; then : 25544 $as_echo_n "(cached) " >&6 25545else 25546 25547 # save the flags 25548 ol_LIBS="$LIBS" 25549 LIBS="-lpthread -Wl,-woff,85 $LIBS" 25550 25551 if test "$cross_compiling" = yes; then : 25552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25553/* end confdefs.h. */ 25554 25555/* pthread test headers */ 25556#include <pthread.h> 25557#if HAVE_PTHREADS < 7 25558#include <errno.h> 25559#endif 25560#ifndef NULL 25561#define NULL (void*)0 25562#endif 25563 25564static void *task(p) 25565 void *p; 25566{ 25567 return (void *) (p == NULL); 25568} 25569 25570int 25571main () 25572{ 25573 25574 /* pthread test function */ 25575#ifndef PTHREAD_CREATE_DETACHED 25576#define PTHREAD_CREATE_DETACHED 1 25577#endif 25578 pthread_t t; 25579 int status; 25580 int detach = PTHREAD_CREATE_DETACHED; 25581 25582#if HAVE_PTHREADS > 4 25583 /* Final pthreads */ 25584 pthread_attr_t attr; 25585 25586 status = pthread_attr_init(&attr); 25587 if( status ) return status; 25588 25589#if HAVE_PTHREADS < 7 25590 status = pthread_attr_setdetachstate(&attr, &detach); 25591 if( status < 0 ) status = errno; 25592#else 25593 status = pthread_attr_setdetachstate(&attr, detach); 25594#endif 25595 if( status ) return status; 25596 status = pthread_create( &t, &attr, task, NULL ); 25597#if HAVE_PTHREADS < 7 25598 if( status < 0 ) status = errno; 25599#endif 25600 if( status ) return status; 25601#else 25602 /* Draft 4 pthreads */ 25603 status = pthread_create( &t, pthread_attr_default, task, NULL ); 25604 if( status ) return errno; 25605 25606 /* give thread a chance to complete */ 25607 /* it should remain joinable and hence detachable */ 25608 sleep( 1 ); 25609 25610 status = pthread_detach( &t ); 25611 if( status ) return errno; 25612#endif 25613 25614#ifdef HAVE_LINUX_THREADS 25615 pthread_kill_other_threads_np(); 25616#endif 25617 25618 return 0; 25619 25620 ; 25621 return 0; 25622} 25623_ACEOF 25624if ac_fn_c_try_link "$LINENO"; then : 25625 ol_cv_pthread_lib_lpthread_woff=yes 25626else 25627 ol_cv_pthread_lib_lpthread_woff=no 25628fi 25629rm -f core conftest.err conftest.$ac_objext \ 25630 conftest$ac_exeext conftest.$ac_ext 25631else 25632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25633/* end confdefs.h. */ 25634 25635 25636/* pthread test headers */ 25637#include <pthread.h> 25638#if HAVE_PTHREADS < 7 25639#include <errno.h> 25640#endif 25641#ifndef NULL 25642#define NULL (void*)0 25643#endif 25644 25645static void *task(p) 25646 void *p; 25647{ 25648 return (void *) (p == NULL); 25649} 25650 25651 25652int main(argc, argv) 25653 int argc; 25654 char **argv; 25655{ 25656 25657 /* pthread test function */ 25658#ifndef PTHREAD_CREATE_DETACHED 25659#define PTHREAD_CREATE_DETACHED 1 25660#endif 25661 pthread_t t; 25662 int status; 25663 int detach = PTHREAD_CREATE_DETACHED; 25664 25665#if HAVE_PTHREADS > 4 25666 /* Final pthreads */ 25667 pthread_attr_t attr; 25668 25669 status = pthread_attr_init(&attr); 25670 if( status ) return status; 25671 25672#if HAVE_PTHREADS < 7 25673 status = pthread_attr_setdetachstate(&attr, &detach); 25674 if( status < 0 ) status = errno; 25675#else 25676 status = pthread_attr_setdetachstate(&attr, detach); 25677#endif 25678 if( status ) return status; 25679 status = pthread_create( &t, &attr, task, NULL ); 25680#if HAVE_PTHREADS < 7 25681 if( status < 0 ) status = errno; 25682#endif 25683 if( status ) return status; 25684#else 25685 /* Draft 4 pthreads */ 25686 status = pthread_create( &t, pthread_attr_default, task, NULL ); 25687 if( status ) return errno; 25688 25689 /* give thread a chance to complete */ 25690 /* it should remain joinable and hence detachable */ 25691 sleep( 1 ); 25692 25693 status = pthread_detach( &t ); 25694 if( status ) return errno; 25695#endif 25696 25697#ifdef HAVE_LINUX_THREADS 25698 pthread_kill_other_threads_np(); 25699#endif 25700 25701 return 0; 25702 25703} 25704 25705_ACEOF 25706if ac_fn_c_try_run "$LINENO"; then : 25707 ol_cv_pthread_lib_lpthread_woff=yes 25708else 25709 ol_cv_pthread_lib_lpthread_woff=no 25710fi 25711rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 25712 conftest.$ac_objext conftest.beam conftest.$ac_ext 25713fi 25714 25715 25716 # restore the LIBS 25717 LIBS="$ol_LIBS" 25718 25719fi 25720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lib_lpthread_woff" >&5 25721$as_echo "$ol_cv_pthread_lib_lpthread_woff" >&6; } 25722 25723 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then 25724 ol_link_pthreads="-lpthread -Wl,-woff,85" 25725 ol_link_threads=posix 25726 fi 25727fi 25728 25729 25730 # Pthread try link: -lpthread (ol_cv_pthread_lpthread) 25731if test "$ol_link_threads" = no ; then 25732 # try -lpthread 25733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread" >&5 25734$as_echo_n "checking for pthread link with -lpthread... " >&6; } 25735if ${ol_cv_pthread_lpthread+:} false; then : 25736 $as_echo_n "(cached) " >&6 25737else 25738 25739 # save the flags 25740 ol_LIBS="$LIBS" 25741 LIBS="-lpthread $LIBS" 25742 25743 if test "$cross_compiling" = yes; then : 25744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25745/* end confdefs.h. */ 25746 25747/* pthread test headers */ 25748#include <pthread.h> 25749#if HAVE_PTHREADS < 7 25750#include <errno.h> 25751#endif 25752#ifndef NULL 25753#define NULL (void*)0 25754#endif 25755 25756static void *task(p) 25757 void *p; 25758{ 25759 return (void *) (p == NULL); 25760} 25761 25762int 25763main () 25764{ 25765 25766 /* pthread test function */ 25767#ifndef PTHREAD_CREATE_DETACHED 25768#define PTHREAD_CREATE_DETACHED 1 25769#endif 25770 pthread_t t; 25771 int status; 25772 int detach = PTHREAD_CREATE_DETACHED; 25773 25774#if HAVE_PTHREADS > 4 25775 /* Final pthreads */ 25776 pthread_attr_t attr; 25777 25778 status = pthread_attr_init(&attr); 25779 if( status ) return status; 25780 25781#if HAVE_PTHREADS < 7 25782 status = pthread_attr_setdetachstate(&attr, &detach); 25783 if( status < 0 ) status = errno; 25784#else 25785 status = pthread_attr_setdetachstate(&attr, detach); 25786#endif 25787 if( status ) return status; 25788 status = pthread_create( &t, &attr, task, NULL ); 25789#if HAVE_PTHREADS < 7 25790 if( status < 0 ) status = errno; 25791#endif 25792 if( status ) return status; 25793#else 25794 /* Draft 4 pthreads */ 25795 status = pthread_create( &t, pthread_attr_default, task, NULL ); 25796 if( status ) return errno; 25797 25798 /* give thread a chance to complete */ 25799 /* it should remain joinable and hence detachable */ 25800 sleep( 1 ); 25801 25802 status = pthread_detach( &t ); 25803 if( status ) return errno; 25804#endif 25805 25806#ifdef HAVE_LINUX_THREADS 25807 pthread_kill_other_threads_np(); 25808#endif 25809 25810 return 0; 25811 25812 ; 25813 return 0; 25814} 25815_ACEOF 25816if ac_fn_c_try_link "$LINENO"; then : 25817 ol_cv_pthread_lpthread=yes 25818else 25819 ol_cv_pthread_lpthread=no 25820fi 25821rm -f core conftest.err conftest.$ac_objext \ 25822 conftest$ac_exeext conftest.$ac_ext 25823else 25824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25825/* end confdefs.h. */ 25826 25827 25828/* pthread test headers */ 25829#include <pthread.h> 25830#if HAVE_PTHREADS < 7 25831#include <errno.h> 25832#endif 25833#ifndef NULL 25834#define NULL (void*)0 25835#endif 25836 25837static void *task(p) 25838 void *p; 25839{ 25840 return (void *) (p == NULL); 25841} 25842 25843 25844int main(argc, argv) 25845 int argc; 25846 char **argv; 25847{ 25848 25849 /* pthread test function */ 25850#ifndef PTHREAD_CREATE_DETACHED 25851#define PTHREAD_CREATE_DETACHED 1 25852#endif 25853 pthread_t t; 25854 int status; 25855 int detach = PTHREAD_CREATE_DETACHED; 25856 25857#if HAVE_PTHREADS > 4 25858 /* Final pthreads */ 25859 pthread_attr_t attr; 25860 25861 status = pthread_attr_init(&attr); 25862 if( status ) return status; 25863 25864#if HAVE_PTHREADS < 7 25865 status = pthread_attr_setdetachstate(&attr, &detach); 25866 if( status < 0 ) status = errno; 25867#else 25868 status = pthread_attr_setdetachstate(&attr, detach); 25869#endif 25870 if( status ) return status; 25871 status = pthread_create( &t, &attr, task, NULL ); 25872#if HAVE_PTHREADS < 7 25873 if( status < 0 ) status = errno; 25874#endif 25875 if( status ) return status; 25876#else 25877 /* Draft 4 pthreads */ 25878 status = pthread_create( &t, pthread_attr_default, task, NULL ); 25879 if( status ) return errno; 25880 25881 /* give thread a chance to complete */ 25882 /* it should remain joinable and hence detachable */ 25883 sleep( 1 ); 25884 25885 status = pthread_detach( &t ); 25886 if( status ) return errno; 25887#endif 25888 25889#ifdef HAVE_LINUX_THREADS 25890 pthread_kill_other_threads_np(); 25891#endif 25892 25893 return 0; 25894 25895} 25896 25897_ACEOF 25898if ac_fn_c_try_run "$LINENO"; then : 25899 ol_cv_pthread_lpthread=yes 25900else 25901 ol_cv_pthread_lpthread=no 25902fi 25903rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 25904 conftest.$ac_objext conftest.beam conftest.$ac_ext 25905fi 25906 25907 25908 # restore the LIBS 25909 LIBS="$ol_LIBS" 25910 25911fi 25912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthread" >&5 25913$as_echo "$ol_cv_pthread_lpthread" >&6; } 25914 25915 if test $ol_cv_pthread_lpthread = yes ; then 25916 ol_link_pthreads="-lpthread" 25917 ol_link_threads=posix 25918 fi 25919fi 25920 25921 # Pthread try link: -lc_r (ol_cv_pthread_lc_r) 25922if test "$ol_link_threads" = no ; then 25923 # try -lc_r 25924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lc_r" >&5 25925$as_echo_n "checking for pthread link with -lc_r... " >&6; } 25926if ${ol_cv_pthread_lc_r+:} false; then : 25927 $as_echo_n "(cached) " >&6 25928else 25929 25930 # save the flags 25931 ol_LIBS="$LIBS" 25932 LIBS="-lc_r $LIBS" 25933 25934 if test "$cross_compiling" = yes; then : 25935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25936/* end confdefs.h. */ 25937 25938/* pthread test headers */ 25939#include <pthread.h> 25940#if HAVE_PTHREADS < 7 25941#include <errno.h> 25942#endif 25943#ifndef NULL 25944#define NULL (void*)0 25945#endif 25946 25947static void *task(p) 25948 void *p; 25949{ 25950 return (void *) (p == NULL); 25951} 25952 25953int 25954main () 25955{ 25956 25957 /* pthread test function */ 25958#ifndef PTHREAD_CREATE_DETACHED 25959#define PTHREAD_CREATE_DETACHED 1 25960#endif 25961 pthread_t t; 25962 int status; 25963 int detach = PTHREAD_CREATE_DETACHED; 25964 25965#if HAVE_PTHREADS > 4 25966 /* Final pthreads */ 25967 pthread_attr_t attr; 25968 25969 status = pthread_attr_init(&attr); 25970 if( status ) return status; 25971 25972#if HAVE_PTHREADS < 7 25973 status = pthread_attr_setdetachstate(&attr, &detach); 25974 if( status < 0 ) status = errno; 25975#else 25976 status = pthread_attr_setdetachstate(&attr, detach); 25977#endif 25978 if( status ) return status; 25979 status = pthread_create( &t, &attr, task, NULL ); 25980#if HAVE_PTHREADS < 7 25981 if( status < 0 ) status = errno; 25982#endif 25983 if( status ) return status; 25984#else 25985 /* Draft 4 pthreads */ 25986 status = pthread_create( &t, pthread_attr_default, task, NULL ); 25987 if( status ) return errno; 25988 25989 /* give thread a chance to complete */ 25990 /* it should remain joinable and hence detachable */ 25991 sleep( 1 ); 25992 25993 status = pthread_detach( &t ); 25994 if( status ) return errno; 25995#endif 25996 25997#ifdef HAVE_LINUX_THREADS 25998 pthread_kill_other_threads_np(); 25999#endif 26000 26001 return 0; 26002 26003 ; 26004 return 0; 26005} 26006_ACEOF 26007if ac_fn_c_try_link "$LINENO"; then : 26008 ol_cv_pthread_lc_r=yes 26009else 26010 ol_cv_pthread_lc_r=no 26011fi 26012rm -f core conftest.err conftest.$ac_objext \ 26013 conftest$ac_exeext conftest.$ac_ext 26014else 26015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26016/* end confdefs.h. */ 26017 26018 26019/* pthread test headers */ 26020#include <pthread.h> 26021#if HAVE_PTHREADS < 7 26022#include <errno.h> 26023#endif 26024#ifndef NULL 26025#define NULL (void*)0 26026#endif 26027 26028static void *task(p) 26029 void *p; 26030{ 26031 return (void *) (p == NULL); 26032} 26033 26034 26035int main(argc, argv) 26036 int argc; 26037 char **argv; 26038{ 26039 26040 /* pthread test function */ 26041#ifndef PTHREAD_CREATE_DETACHED 26042#define PTHREAD_CREATE_DETACHED 1 26043#endif 26044 pthread_t t; 26045 int status; 26046 int detach = PTHREAD_CREATE_DETACHED; 26047 26048#if HAVE_PTHREADS > 4 26049 /* Final pthreads */ 26050 pthread_attr_t attr; 26051 26052 status = pthread_attr_init(&attr); 26053 if( status ) return status; 26054 26055#if HAVE_PTHREADS < 7 26056 status = pthread_attr_setdetachstate(&attr, &detach); 26057 if( status < 0 ) status = errno; 26058#else 26059 status = pthread_attr_setdetachstate(&attr, detach); 26060#endif 26061 if( status ) return status; 26062 status = pthread_create( &t, &attr, task, NULL ); 26063#if HAVE_PTHREADS < 7 26064 if( status < 0 ) status = errno; 26065#endif 26066 if( status ) return status; 26067#else 26068 /* Draft 4 pthreads */ 26069 status = pthread_create( &t, pthread_attr_default, task, NULL ); 26070 if( status ) return errno; 26071 26072 /* give thread a chance to complete */ 26073 /* it should remain joinable and hence detachable */ 26074 sleep( 1 ); 26075 26076 status = pthread_detach( &t ); 26077 if( status ) return errno; 26078#endif 26079 26080#ifdef HAVE_LINUX_THREADS 26081 pthread_kill_other_threads_np(); 26082#endif 26083 26084 return 0; 26085 26086} 26087 26088_ACEOF 26089if ac_fn_c_try_run "$LINENO"; then : 26090 ol_cv_pthread_lc_r=yes 26091else 26092 ol_cv_pthread_lc_r=no 26093fi 26094rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 26095 conftest.$ac_objext conftest.beam conftest.$ac_ext 26096fi 26097 26098 26099 # restore the LIBS 26100 LIBS="$ol_LIBS" 26101 26102fi 26103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lc_r" >&5 26104$as_echo "$ol_cv_pthread_lc_r" >&6; } 26105 26106 if test $ol_cv_pthread_lc_r = yes ; then 26107 ol_link_pthreads="-lc_r" 26108 ol_link_threads=posix 26109 fi 26110fi 26111 26112 26113 # Pthread try link: -threads (ol_cv_pthread_threads) 26114if test "$ol_link_threads" = no ; then 26115 # try -threads 26116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -threads" >&5 26117$as_echo_n "checking for pthread link with -threads... " >&6; } 26118if ${ol_cv_pthread_threads+:} false; then : 26119 $as_echo_n "(cached) " >&6 26120else 26121 26122 # save the flags 26123 ol_LIBS="$LIBS" 26124 LIBS="-threads $LIBS" 26125 26126 if test "$cross_compiling" = yes; then : 26127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26128/* end confdefs.h. */ 26129 26130/* pthread test headers */ 26131#include <pthread.h> 26132#if HAVE_PTHREADS < 7 26133#include <errno.h> 26134#endif 26135#ifndef NULL 26136#define NULL (void*)0 26137#endif 26138 26139static void *task(p) 26140 void *p; 26141{ 26142 return (void *) (p == NULL); 26143} 26144 26145int 26146main () 26147{ 26148 26149 /* pthread test function */ 26150#ifndef PTHREAD_CREATE_DETACHED 26151#define PTHREAD_CREATE_DETACHED 1 26152#endif 26153 pthread_t t; 26154 int status; 26155 int detach = PTHREAD_CREATE_DETACHED; 26156 26157#if HAVE_PTHREADS > 4 26158 /* Final pthreads */ 26159 pthread_attr_t attr; 26160 26161 status = pthread_attr_init(&attr); 26162 if( status ) return status; 26163 26164#if HAVE_PTHREADS < 7 26165 status = pthread_attr_setdetachstate(&attr, &detach); 26166 if( status < 0 ) status = errno; 26167#else 26168 status = pthread_attr_setdetachstate(&attr, detach); 26169#endif 26170 if( status ) return status; 26171 status = pthread_create( &t, &attr, task, NULL ); 26172#if HAVE_PTHREADS < 7 26173 if( status < 0 ) status = errno; 26174#endif 26175 if( status ) return status; 26176#else 26177 /* Draft 4 pthreads */ 26178 status = pthread_create( &t, pthread_attr_default, task, NULL ); 26179 if( status ) return errno; 26180 26181 /* give thread a chance to complete */ 26182 /* it should remain joinable and hence detachable */ 26183 sleep( 1 ); 26184 26185 status = pthread_detach( &t ); 26186 if( status ) return errno; 26187#endif 26188 26189#ifdef HAVE_LINUX_THREADS 26190 pthread_kill_other_threads_np(); 26191#endif 26192 26193 return 0; 26194 26195 ; 26196 return 0; 26197} 26198_ACEOF 26199if ac_fn_c_try_link "$LINENO"; then : 26200 ol_cv_pthread_threads=yes 26201else 26202 ol_cv_pthread_threads=no 26203fi 26204rm -f core conftest.err conftest.$ac_objext \ 26205 conftest$ac_exeext conftest.$ac_ext 26206else 26207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26208/* end confdefs.h. */ 26209 26210 26211/* pthread test headers */ 26212#include <pthread.h> 26213#if HAVE_PTHREADS < 7 26214#include <errno.h> 26215#endif 26216#ifndef NULL 26217#define NULL (void*)0 26218#endif 26219 26220static void *task(p) 26221 void *p; 26222{ 26223 return (void *) (p == NULL); 26224} 26225 26226 26227int main(argc, argv) 26228 int argc; 26229 char **argv; 26230{ 26231 26232 /* pthread test function */ 26233#ifndef PTHREAD_CREATE_DETACHED 26234#define PTHREAD_CREATE_DETACHED 1 26235#endif 26236 pthread_t t; 26237 int status; 26238 int detach = PTHREAD_CREATE_DETACHED; 26239 26240#if HAVE_PTHREADS > 4 26241 /* Final pthreads */ 26242 pthread_attr_t attr; 26243 26244 status = pthread_attr_init(&attr); 26245 if( status ) return status; 26246 26247#if HAVE_PTHREADS < 7 26248 status = pthread_attr_setdetachstate(&attr, &detach); 26249 if( status < 0 ) status = errno; 26250#else 26251 status = pthread_attr_setdetachstate(&attr, detach); 26252#endif 26253 if( status ) return status; 26254 status = pthread_create( &t, &attr, task, NULL ); 26255#if HAVE_PTHREADS < 7 26256 if( status < 0 ) status = errno; 26257#endif 26258 if( status ) return status; 26259#else 26260 /* Draft 4 pthreads */ 26261 status = pthread_create( &t, pthread_attr_default, task, NULL ); 26262 if( status ) return errno; 26263 26264 /* give thread a chance to complete */ 26265 /* it should remain joinable and hence detachable */ 26266 sleep( 1 ); 26267 26268 status = pthread_detach( &t ); 26269 if( status ) return errno; 26270#endif 26271 26272#ifdef HAVE_LINUX_THREADS 26273 pthread_kill_other_threads_np(); 26274#endif 26275 26276 return 0; 26277 26278} 26279 26280_ACEOF 26281if ac_fn_c_try_run "$LINENO"; then : 26282 ol_cv_pthread_threads=yes 26283else 26284 ol_cv_pthread_threads=no 26285fi 26286rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 26287 conftest.$ac_objext conftest.beam conftest.$ac_ext 26288fi 26289 26290 26291 # restore the LIBS 26292 LIBS="$ol_LIBS" 26293 26294fi 26295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_threads" >&5 26296$as_echo "$ol_cv_pthread_threads" >&6; } 26297 26298 if test $ol_cv_pthread_threads = yes ; then 26299 ol_link_pthreads="-threads" 26300 ol_link_threads=posix 26301 fi 26302fi 26303 26304 26305 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r) 26306if test "$ol_link_threads" = no ; then 26307 # try -lpthreads -lmach -lexc -lc_r 26308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5 26309$as_echo_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r... " >&6; } 26310if ${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+:} false; then : 26311 $as_echo_n "(cached) " >&6 26312else 26313 26314 # save the flags 26315 ol_LIBS="$LIBS" 26316 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS" 26317 26318 if test "$cross_compiling" = yes; then : 26319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26320/* end confdefs.h. */ 26321 26322/* pthread test headers */ 26323#include <pthread.h> 26324#if HAVE_PTHREADS < 7 26325#include <errno.h> 26326#endif 26327#ifndef NULL 26328#define NULL (void*)0 26329#endif 26330 26331static void *task(p) 26332 void *p; 26333{ 26334 return (void *) (p == NULL); 26335} 26336 26337int 26338main () 26339{ 26340 26341 /* pthread test function */ 26342#ifndef PTHREAD_CREATE_DETACHED 26343#define PTHREAD_CREATE_DETACHED 1 26344#endif 26345 pthread_t t; 26346 int status; 26347 int detach = PTHREAD_CREATE_DETACHED; 26348 26349#if HAVE_PTHREADS > 4 26350 /* Final pthreads */ 26351 pthread_attr_t attr; 26352 26353 status = pthread_attr_init(&attr); 26354 if( status ) return status; 26355 26356#if HAVE_PTHREADS < 7 26357 status = pthread_attr_setdetachstate(&attr, &detach); 26358 if( status < 0 ) status = errno; 26359#else 26360 status = pthread_attr_setdetachstate(&attr, detach); 26361#endif 26362 if( status ) return status; 26363 status = pthread_create( &t, &attr, task, NULL ); 26364#if HAVE_PTHREADS < 7 26365 if( status < 0 ) status = errno; 26366#endif 26367 if( status ) return status; 26368#else 26369 /* Draft 4 pthreads */ 26370 status = pthread_create( &t, pthread_attr_default, task, NULL ); 26371 if( status ) return errno; 26372 26373 /* give thread a chance to complete */ 26374 /* it should remain joinable and hence detachable */ 26375 sleep( 1 ); 26376 26377 status = pthread_detach( &t ); 26378 if( status ) return errno; 26379#endif 26380 26381#ifdef HAVE_LINUX_THREADS 26382 pthread_kill_other_threads_np(); 26383#endif 26384 26385 return 0; 26386 26387 ; 26388 return 0; 26389} 26390_ACEOF 26391if ac_fn_c_try_link "$LINENO"; then : 26392 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes 26393else 26394 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no 26395fi 26396rm -f core conftest.err conftest.$ac_objext \ 26397 conftest$ac_exeext conftest.$ac_ext 26398else 26399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26400/* end confdefs.h. */ 26401 26402 26403/* pthread test headers */ 26404#include <pthread.h> 26405#if HAVE_PTHREADS < 7 26406#include <errno.h> 26407#endif 26408#ifndef NULL 26409#define NULL (void*)0 26410#endif 26411 26412static void *task(p) 26413 void *p; 26414{ 26415 return (void *) (p == NULL); 26416} 26417 26418 26419int main(argc, argv) 26420 int argc; 26421 char **argv; 26422{ 26423 26424 /* pthread test function */ 26425#ifndef PTHREAD_CREATE_DETACHED 26426#define PTHREAD_CREATE_DETACHED 1 26427#endif 26428 pthread_t t; 26429 int status; 26430 int detach = PTHREAD_CREATE_DETACHED; 26431 26432#if HAVE_PTHREADS > 4 26433 /* Final pthreads */ 26434 pthread_attr_t attr; 26435 26436 status = pthread_attr_init(&attr); 26437 if( status ) return status; 26438 26439#if HAVE_PTHREADS < 7 26440 status = pthread_attr_setdetachstate(&attr, &detach); 26441 if( status < 0 ) status = errno; 26442#else 26443 status = pthread_attr_setdetachstate(&attr, detach); 26444#endif 26445 if( status ) return status; 26446 status = pthread_create( &t, &attr, task, NULL ); 26447#if HAVE_PTHREADS < 7 26448 if( status < 0 ) status = errno; 26449#endif 26450 if( status ) return status; 26451#else 26452 /* Draft 4 pthreads */ 26453 status = pthread_create( &t, pthread_attr_default, task, NULL ); 26454 if( status ) return errno; 26455 26456 /* give thread a chance to complete */ 26457 /* it should remain joinable and hence detachable */ 26458 sleep( 1 ); 26459 26460 status = pthread_detach( &t ); 26461 if( status ) return errno; 26462#endif 26463 26464#ifdef HAVE_LINUX_THREADS 26465 pthread_kill_other_threads_np(); 26466#endif 26467 26468 return 0; 26469 26470} 26471 26472_ACEOF 26473if ac_fn_c_try_run "$LINENO"; then : 26474 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes 26475else 26476 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no 26477fi 26478rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 26479 conftest.$ac_objext conftest.beam conftest.$ac_ext 26480fi 26481 26482 26483 # restore the LIBS 26484 LIBS="$ol_LIBS" 26485 26486fi 26487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&5 26488$as_echo "$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&6; } 26489 26490 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then 26491 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r" 26492 ol_link_threads=posix 26493 fi 26494fi 26495 26496 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc) 26497if test "$ol_link_threads" = no ; then 26498 # try -lpthreads -lmach -lexc 26499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads -lmach -lexc" >&5 26500$as_echo_n "checking for pthread link with -lpthreads -lmach -lexc... " >&6; } 26501if ${ol_cv_pthread_lpthreads_lmach_lexc+:} false; then : 26502 $as_echo_n "(cached) " >&6 26503else 26504 26505 # save the flags 26506 ol_LIBS="$LIBS" 26507 LIBS="-lpthreads -lmach -lexc $LIBS" 26508 26509 if test "$cross_compiling" = yes; then : 26510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26511/* end confdefs.h. */ 26512 26513/* pthread test headers */ 26514#include <pthread.h> 26515#if HAVE_PTHREADS < 7 26516#include <errno.h> 26517#endif 26518#ifndef NULL 26519#define NULL (void*)0 26520#endif 26521 26522static void *task(p) 26523 void *p; 26524{ 26525 return (void *) (p == NULL); 26526} 26527 26528int 26529main () 26530{ 26531 26532 /* pthread test function */ 26533#ifndef PTHREAD_CREATE_DETACHED 26534#define PTHREAD_CREATE_DETACHED 1 26535#endif 26536 pthread_t t; 26537 int status; 26538 int detach = PTHREAD_CREATE_DETACHED; 26539 26540#if HAVE_PTHREADS > 4 26541 /* Final pthreads */ 26542 pthread_attr_t attr; 26543 26544 status = pthread_attr_init(&attr); 26545 if( status ) return status; 26546 26547#if HAVE_PTHREADS < 7 26548 status = pthread_attr_setdetachstate(&attr, &detach); 26549 if( status < 0 ) status = errno; 26550#else 26551 status = pthread_attr_setdetachstate(&attr, detach); 26552#endif 26553 if( status ) return status; 26554 status = pthread_create( &t, &attr, task, NULL ); 26555#if HAVE_PTHREADS < 7 26556 if( status < 0 ) status = errno; 26557#endif 26558 if( status ) return status; 26559#else 26560 /* Draft 4 pthreads */ 26561 status = pthread_create( &t, pthread_attr_default, task, NULL ); 26562 if( status ) return errno; 26563 26564 /* give thread a chance to complete */ 26565 /* it should remain joinable and hence detachable */ 26566 sleep( 1 ); 26567 26568 status = pthread_detach( &t ); 26569 if( status ) return errno; 26570#endif 26571 26572#ifdef HAVE_LINUX_THREADS 26573 pthread_kill_other_threads_np(); 26574#endif 26575 26576 return 0; 26577 26578 ; 26579 return 0; 26580} 26581_ACEOF 26582if ac_fn_c_try_link "$LINENO"; then : 26583 ol_cv_pthread_lpthreads_lmach_lexc=yes 26584else 26585 ol_cv_pthread_lpthreads_lmach_lexc=no 26586fi 26587rm -f core conftest.err conftest.$ac_objext \ 26588 conftest$ac_exeext conftest.$ac_ext 26589else 26590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26591/* end confdefs.h. */ 26592 26593 26594/* pthread test headers */ 26595#include <pthread.h> 26596#if HAVE_PTHREADS < 7 26597#include <errno.h> 26598#endif 26599#ifndef NULL 26600#define NULL (void*)0 26601#endif 26602 26603static void *task(p) 26604 void *p; 26605{ 26606 return (void *) (p == NULL); 26607} 26608 26609 26610int main(argc, argv) 26611 int argc; 26612 char **argv; 26613{ 26614 26615 /* pthread test function */ 26616#ifndef PTHREAD_CREATE_DETACHED 26617#define PTHREAD_CREATE_DETACHED 1 26618#endif 26619 pthread_t t; 26620 int status; 26621 int detach = PTHREAD_CREATE_DETACHED; 26622 26623#if HAVE_PTHREADS > 4 26624 /* Final pthreads */ 26625 pthread_attr_t attr; 26626 26627 status = pthread_attr_init(&attr); 26628 if( status ) return status; 26629 26630#if HAVE_PTHREADS < 7 26631 status = pthread_attr_setdetachstate(&attr, &detach); 26632 if( status < 0 ) status = errno; 26633#else 26634 status = pthread_attr_setdetachstate(&attr, detach); 26635#endif 26636 if( status ) return status; 26637 status = pthread_create( &t, &attr, task, NULL ); 26638#if HAVE_PTHREADS < 7 26639 if( status < 0 ) status = errno; 26640#endif 26641 if( status ) return status; 26642#else 26643 /* Draft 4 pthreads */ 26644 status = pthread_create( &t, pthread_attr_default, task, NULL ); 26645 if( status ) return errno; 26646 26647 /* give thread a chance to complete */ 26648 /* it should remain joinable and hence detachable */ 26649 sleep( 1 ); 26650 26651 status = pthread_detach( &t ); 26652 if( status ) return errno; 26653#endif 26654 26655#ifdef HAVE_LINUX_THREADS 26656 pthread_kill_other_threads_np(); 26657#endif 26658 26659 return 0; 26660 26661} 26662 26663_ACEOF 26664if ac_fn_c_try_run "$LINENO"; then : 26665 ol_cv_pthread_lpthreads_lmach_lexc=yes 26666else 26667 ol_cv_pthread_lpthreads_lmach_lexc=no 26668fi 26669rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 26670 conftest.$ac_objext conftest.beam conftest.$ac_ext 26671fi 26672 26673 26674 # restore the LIBS 26675 LIBS="$ol_LIBS" 26676 26677fi 26678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthreads_lmach_lexc" >&5 26679$as_echo "$ol_cv_pthread_lpthreads_lmach_lexc" >&6; } 26680 26681 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then 26682 ol_link_pthreads="-lpthreads -lmach -lexc" 26683 ol_link_threads=posix 26684 fi 26685fi 26686 26687 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc) 26688if test "$ol_link_threads" = no ; then 26689 # try -lpthreads -lexc 26690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads -lexc" >&5 26691$as_echo_n "checking for pthread link with -lpthreads -lexc... " >&6; } 26692if ${ol_cv_pthread_lpthreads_lexc+:} false; then : 26693 $as_echo_n "(cached) " >&6 26694else 26695 26696 # save the flags 26697 ol_LIBS="$LIBS" 26698 LIBS="-lpthreads -lexc $LIBS" 26699 26700 if test "$cross_compiling" = yes; then : 26701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26702/* end confdefs.h. */ 26703 26704/* pthread test headers */ 26705#include <pthread.h> 26706#if HAVE_PTHREADS < 7 26707#include <errno.h> 26708#endif 26709#ifndef NULL 26710#define NULL (void*)0 26711#endif 26712 26713static void *task(p) 26714 void *p; 26715{ 26716 return (void *) (p == NULL); 26717} 26718 26719int 26720main () 26721{ 26722 26723 /* pthread test function */ 26724#ifndef PTHREAD_CREATE_DETACHED 26725#define PTHREAD_CREATE_DETACHED 1 26726#endif 26727 pthread_t t; 26728 int status; 26729 int detach = PTHREAD_CREATE_DETACHED; 26730 26731#if HAVE_PTHREADS > 4 26732 /* Final pthreads */ 26733 pthread_attr_t attr; 26734 26735 status = pthread_attr_init(&attr); 26736 if( status ) return status; 26737 26738#if HAVE_PTHREADS < 7 26739 status = pthread_attr_setdetachstate(&attr, &detach); 26740 if( status < 0 ) status = errno; 26741#else 26742 status = pthread_attr_setdetachstate(&attr, detach); 26743#endif 26744 if( status ) return status; 26745 status = pthread_create( &t, &attr, task, NULL ); 26746#if HAVE_PTHREADS < 7 26747 if( status < 0 ) status = errno; 26748#endif 26749 if( status ) return status; 26750#else 26751 /* Draft 4 pthreads */ 26752 status = pthread_create( &t, pthread_attr_default, task, NULL ); 26753 if( status ) return errno; 26754 26755 /* give thread a chance to complete */ 26756 /* it should remain joinable and hence detachable */ 26757 sleep( 1 ); 26758 26759 status = pthread_detach( &t ); 26760 if( status ) return errno; 26761#endif 26762 26763#ifdef HAVE_LINUX_THREADS 26764 pthread_kill_other_threads_np(); 26765#endif 26766 26767 return 0; 26768 26769 ; 26770 return 0; 26771} 26772_ACEOF 26773if ac_fn_c_try_link "$LINENO"; then : 26774 ol_cv_pthread_lpthreads_lexc=yes 26775else 26776 ol_cv_pthread_lpthreads_lexc=no 26777fi 26778rm -f core conftest.err conftest.$ac_objext \ 26779 conftest$ac_exeext conftest.$ac_ext 26780else 26781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26782/* end confdefs.h. */ 26783 26784 26785/* pthread test headers */ 26786#include <pthread.h> 26787#if HAVE_PTHREADS < 7 26788#include <errno.h> 26789#endif 26790#ifndef NULL 26791#define NULL (void*)0 26792#endif 26793 26794static void *task(p) 26795 void *p; 26796{ 26797 return (void *) (p == NULL); 26798} 26799 26800 26801int main(argc, argv) 26802 int argc; 26803 char **argv; 26804{ 26805 26806 /* pthread test function */ 26807#ifndef PTHREAD_CREATE_DETACHED 26808#define PTHREAD_CREATE_DETACHED 1 26809#endif 26810 pthread_t t; 26811 int status; 26812 int detach = PTHREAD_CREATE_DETACHED; 26813 26814#if HAVE_PTHREADS > 4 26815 /* Final pthreads */ 26816 pthread_attr_t attr; 26817 26818 status = pthread_attr_init(&attr); 26819 if( status ) return status; 26820 26821#if HAVE_PTHREADS < 7 26822 status = pthread_attr_setdetachstate(&attr, &detach); 26823 if( status < 0 ) status = errno; 26824#else 26825 status = pthread_attr_setdetachstate(&attr, detach); 26826#endif 26827 if( status ) return status; 26828 status = pthread_create( &t, &attr, task, NULL ); 26829#if HAVE_PTHREADS < 7 26830 if( status < 0 ) status = errno; 26831#endif 26832 if( status ) return status; 26833#else 26834 /* Draft 4 pthreads */ 26835 status = pthread_create( &t, pthread_attr_default, task, NULL ); 26836 if( status ) return errno; 26837 26838 /* give thread a chance to complete */ 26839 /* it should remain joinable and hence detachable */ 26840 sleep( 1 ); 26841 26842 status = pthread_detach( &t ); 26843 if( status ) return errno; 26844#endif 26845 26846#ifdef HAVE_LINUX_THREADS 26847 pthread_kill_other_threads_np(); 26848#endif 26849 26850 return 0; 26851 26852} 26853 26854_ACEOF 26855if ac_fn_c_try_run "$LINENO"; then : 26856 ol_cv_pthread_lpthreads_lexc=yes 26857else 26858 ol_cv_pthread_lpthreads_lexc=no 26859fi 26860rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 26861 conftest.$ac_objext conftest.beam conftest.$ac_ext 26862fi 26863 26864 26865 # restore the LIBS 26866 LIBS="$ol_LIBS" 26867 26868fi 26869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthreads_lexc" >&5 26870$as_echo "$ol_cv_pthread_lpthreads_lexc" >&6; } 26871 26872 if test $ol_cv_pthread_lpthreads_lexc = yes ; then 26873 ol_link_pthreads="-lpthreads -lexc" 26874 ol_link_threads=posix 26875 fi 26876fi 26877 26878 26879 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads) 26880if test "$ol_link_threads" = no ; then 26881 # try -lpthreads 26882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads" >&5 26883$as_echo_n "checking for pthread link with -lpthreads... " >&6; } 26884if ${ol_cv_pthread_lib_lpthreads+:} false; then : 26885 $as_echo_n "(cached) " >&6 26886else 26887 26888 # save the flags 26889 ol_LIBS="$LIBS" 26890 LIBS="-lpthreads $LIBS" 26891 26892 if test "$cross_compiling" = yes; then : 26893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26894/* end confdefs.h. */ 26895 26896/* pthread test headers */ 26897#include <pthread.h> 26898#if HAVE_PTHREADS < 7 26899#include <errno.h> 26900#endif 26901#ifndef NULL 26902#define NULL (void*)0 26903#endif 26904 26905static void *task(p) 26906 void *p; 26907{ 26908 return (void *) (p == NULL); 26909} 26910 26911int 26912main () 26913{ 26914 26915 /* pthread test function */ 26916#ifndef PTHREAD_CREATE_DETACHED 26917#define PTHREAD_CREATE_DETACHED 1 26918#endif 26919 pthread_t t; 26920 int status; 26921 int detach = PTHREAD_CREATE_DETACHED; 26922 26923#if HAVE_PTHREADS > 4 26924 /* Final pthreads */ 26925 pthread_attr_t attr; 26926 26927 status = pthread_attr_init(&attr); 26928 if( status ) return status; 26929 26930#if HAVE_PTHREADS < 7 26931 status = pthread_attr_setdetachstate(&attr, &detach); 26932 if( status < 0 ) status = errno; 26933#else 26934 status = pthread_attr_setdetachstate(&attr, detach); 26935#endif 26936 if( status ) return status; 26937 status = pthread_create( &t, &attr, task, NULL ); 26938#if HAVE_PTHREADS < 7 26939 if( status < 0 ) status = errno; 26940#endif 26941 if( status ) return status; 26942#else 26943 /* Draft 4 pthreads */ 26944 status = pthread_create( &t, pthread_attr_default, task, NULL ); 26945 if( status ) return errno; 26946 26947 /* give thread a chance to complete */ 26948 /* it should remain joinable and hence detachable */ 26949 sleep( 1 ); 26950 26951 status = pthread_detach( &t ); 26952 if( status ) return errno; 26953#endif 26954 26955#ifdef HAVE_LINUX_THREADS 26956 pthread_kill_other_threads_np(); 26957#endif 26958 26959 return 0; 26960 26961 ; 26962 return 0; 26963} 26964_ACEOF 26965if ac_fn_c_try_link "$LINENO"; then : 26966 ol_cv_pthread_lib_lpthreads=yes 26967else 26968 ol_cv_pthread_lib_lpthreads=no 26969fi 26970rm -f core conftest.err conftest.$ac_objext \ 26971 conftest$ac_exeext conftest.$ac_ext 26972else 26973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26974/* end confdefs.h. */ 26975 26976 26977/* pthread test headers */ 26978#include <pthread.h> 26979#if HAVE_PTHREADS < 7 26980#include <errno.h> 26981#endif 26982#ifndef NULL 26983#define NULL (void*)0 26984#endif 26985 26986static void *task(p) 26987 void *p; 26988{ 26989 return (void *) (p == NULL); 26990} 26991 26992 26993int main(argc, argv) 26994 int argc; 26995 char **argv; 26996{ 26997 26998 /* pthread test function */ 26999#ifndef PTHREAD_CREATE_DETACHED 27000#define PTHREAD_CREATE_DETACHED 1 27001#endif 27002 pthread_t t; 27003 int status; 27004 int detach = PTHREAD_CREATE_DETACHED; 27005 27006#if HAVE_PTHREADS > 4 27007 /* Final pthreads */ 27008 pthread_attr_t attr; 27009 27010 status = pthread_attr_init(&attr); 27011 if( status ) return status; 27012 27013#if HAVE_PTHREADS < 7 27014 status = pthread_attr_setdetachstate(&attr, &detach); 27015 if( status < 0 ) status = errno; 27016#else 27017 status = pthread_attr_setdetachstate(&attr, detach); 27018#endif 27019 if( status ) return status; 27020 status = pthread_create( &t, &attr, task, NULL ); 27021#if HAVE_PTHREADS < 7 27022 if( status < 0 ) status = errno; 27023#endif 27024 if( status ) return status; 27025#else 27026 /* Draft 4 pthreads */ 27027 status = pthread_create( &t, pthread_attr_default, task, NULL ); 27028 if( status ) return errno; 27029 27030 /* give thread a chance to complete */ 27031 /* it should remain joinable and hence detachable */ 27032 sleep( 1 ); 27033 27034 status = pthread_detach( &t ); 27035 if( status ) return errno; 27036#endif 27037 27038#ifdef HAVE_LINUX_THREADS 27039 pthread_kill_other_threads_np(); 27040#endif 27041 27042 return 0; 27043 27044} 27045 27046_ACEOF 27047if ac_fn_c_try_run "$LINENO"; then : 27048 ol_cv_pthread_lib_lpthreads=yes 27049else 27050 ol_cv_pthread_lib_lpthreads=no 27051fi 27052rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 27053 conftest.$ac_objext conftest.beam conftest.$ac_ext 27054fi 27055 27056 27057 # restore the LIBS 27058 LIBS="$ol_LIBS" 27059 27060fi 27061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lib_lpthreads" >&5 27062$as_echo "$ol_cv_pthread_lib_lpthreads" >&6; } 27063 27064 if test $ol_cv_pthread_lib_lpthreads = yes ; then 27065 ol_link_pthreads="-lpthreads" 27066 ol_link_threads=posix 27067 fi 27068fi 27069 27070 27071{ $as_echo "$as_me:${as_lineno-$LINENO}: ol_link_threads: <$ol_link_threads> ol_link_pthreads <$ol_link_pthreads>" >&5 27072$as_echo "$as_me: ol_link_threads: <$ol_link_threads> ol_link_pthreads <$ol_link_pthreads>" >&6;} 27073 27074 if test $ol_link_threads != no ; then 27075 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads" 27076 27077 save_CPPFLAGS="$CPPFLAGS" 27078 save_LIBS="$LIBS" 27079 LIBS="$LTHREAD_LIBS $LIBS" 27080 27081 for ac_func in sched_yield pthread_yield thr_yield 27082do : 27083 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 27084ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 27085if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 27086 cat >>confdefs.h <<_ACEOF 27087#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 27088_ACEOF 27089 27090fi 27091done 27092 27093 27094 if test $ac_cv_func_sched_yield = no && 27095 test $ac_cv_func_pthread_yield = no && 27096 test $ac_cv_func_thr_yield = no ; then 27097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5 27098$as_echo_n "checking for sched_yield in -lrt... " >&6; } 27099if ${ac_cv_lib_rt_sched_yield+:} false; then : 27100 $as_echo_n "(cached) " >&6 27101else 27102 ac_check_lib_save_LIBS=$LIBS 27103LIBS="-lrt $LIBS" 27104cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27105/* end confdefs.h. */ 27106 27107/* Override any GCC internal prototype to avoid an error. 27108 Use char because int might match the return type of a GCC 27109 builtin and then its argument prototype would still apply. */ 27110#ifdef __cplusplus 27111extern "C" 27112#endif 27113char sched_yield (); 27114int 27115main () 27116{ 27117return sched_yield (); 27118 ; 27119 return 0; 27120} 27121_ACEOF 27122if ac_fn_c_try_link "$LINENO"; then : 27123 ac_cv_lib_rt_sched_yield=yes 27124else 27125 ac_cv_lib_rt_sched_yield=no 27126fi 27127rm -f core conftest.err conftest.$ac_objext \ 27128 conftest$ac_exeext conftest.$ac_ext 27129LIBS=$ac_check_lib_save_LIBS 27130fi 27131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5 27132$as_echo "$ac_cv_lib_rt_sched_yield" >&6; } 27133if test "x$ac_cv_lib_rt_sched_yield" = xyes; then : 27134 LTHREAD_LIBS="$LTHREAD_LIBS -lrt" 27135 27136$as_echo "#define HAVE_SCHED_YIELD 1" >>confdefs.h 27137 27138 ac_cv_func_sched_yield=yes 27139else 27140 ac_cv_func_sched_yield=no 27141fi 27142 27143 fi 27144 if test $ac_cv_func_sched_yield = no && 27145 test $ac_cv_func_pthread_yield = no && 27146 test "$ac_cv_func_thr_yield" = no ; then 27147 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not locate sched_yield() or pthread_yield()" >&5 27148$as_echo "$as_me: WARNING: could not locate sched_yield() or pthread_yield()" >&2;} 27149 fi 27150 27151 for ac_func in pthread_kill 27152do : 27153 ac_fn_c_check_func "$LINENO" "pthread_kill" "ac_cv_func_pthread_kill" 27154if test "x$ac_cv_func_pthread_kill" = xyes; then : 27155 cat >>confdefs.h <<_ACEOF 27156#define HAVE_PTHREAD_KILL 1 27157_ACEOF 27158 27159fi 27160done 27161 27162 27163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_rwlock_destroy with <pthread.h>" >&5 27164$as_echo_n "checking for pthread_rwlock_destroy with <pthread.h>... " >&6; } 27165if ${ol_cv_func_pthread_rwlock_destroy+:} false; then : 27166 $as_echo_n "(cached) " >&6 27167else 27168 27169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27170/* end confdefs.h. */ 27171 27172#include <pthread.h> 27173pthread_rwlock_t rwlock; 27174 27175int 27176main () 27177{ 27178pthread_rwlock_destroy(&rwlock); 27179 ; 27180 return 0; 27181} 27182_ACEOF 27183if ac_fn_c_try_link "$LINENO"; then : 27184 ol_cv_func_pthread_rwlock_destroy=yes 27185else 27186 ol_cv_func_pthread_rwlock_destroy=no 27187fi 27188rm -f core conftest.err conftest.$ac_objext \ 27189 conftest$ac_exeext conftest.$ac_ext 27190 27191fi 27192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_func_pthread_rwlock_destroy" >&5 27193$as_echo "$ol_cv_func_pthread_rwlock_destroy" >&6; } 27194 if test $ol_cv_func_pthread_rwlock_destroy = yes ; then 27195 27196$as_echo "#define HAVE_PTHREAD_RWLOCK_DESTROY 1" >>confdefs.h 27197 27198 fi 27199 27200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_detach with <pthread.h>" >&5 27201$as_echo_n "checking for pthread_detach with <pthread.h>... " >&6; } 27202if ${ol_cv_func_pthread_detach+:} false; then : 27203 $as_echo_n "(cached) " >&6 27204else 27205 27206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27207/* end confdefs.h. */ 27208 27209#include <pthread.h> 27210#ifndef NULL 27211#define NULL (void*)0 27212#endif 27213 27214int 27215main () 27216{ 27217pthread_detach(NULL); 27218 ; 27219 return 0; 27220} 27221_ACEOF 27222if ac_fn_c_try_link "$LINENO"; then : 27223 ol_cv_func_pthread_detach=yes 27224else 27225 ol_cv_func_pthread_detach=no 27226fi 27227rm -f core conftest.err conftest.$ac_objext \ 27228 conftest$ac_exeext conftest.$ac_ext 27229 27230fi 27231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_func_pthread_detach" >&5 27232$as_echo "$ol_cv_func_pthread_detach" >&6; } 27233 27234 if test $ol_cv_func_pthread_detach = no ; then 27235 as_fn_error $? "could not locate pthread_detach()" "$LINENO" 5 27236 fi 27237 27238 27239$as_echo "#define HAVE_PTHREAD_DETACH 1" >>confdefs.h 27240 27241 27242 for ac_func in \ 27243 pthread_setconcurrency \ 27244 pthread_getconcurrency \ 27245 thr_setconcurrency \ 27246 thr_getconcurrency \ 27247 27248do : 27249 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 27250ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 27251if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 27252 cat >>confdefs.h <<_ACEOF 27253#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 27254_ACEOF 27255 27256fi 27257done 27258 27259 27260 27261 for ac_func in pthread_kill_other_threads_np 27262do : 27263 ac_fn_c_check_func "$LINENO" "pthread_kill_other_threads_np" "ac_cv_func_pthread_kill_other_threads_np" 27264if test "x$ac_cv_func_pthread_kill_other_threads_np" = xyes; then : 27265 cat >>confdefs.h <<_ACEOF 27266#define HAVE_PTHREAD_KILL_OTHER_THREADS_NP 1 27267_ACEOF 27268 27269fi 27270done 27271 27272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads implementation" >&5 27273$as_echo_n "checking for LinuxThreads implementation... " >&6; } 27274if ${ol_cv_sys_linux_threads+:} false; then : 27275 $as_echo_n "(cached) " >&6 27276else 27277 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np 27278fi 27279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_sys_linux_threads" >&5 27280$as_echo "$ol_cv_sys_linux_threads" >&6; } 27281 27282 27283 27284 27285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads consistency" >&5 27286$as_echo_n "checking for LinuxThreads consistency... " >&6; } 27287if ${ol_cv_linux_threads+:} false; then : 27288 $as_echo_n "(cached) " >&6 27289else 27290 27291 if test $ol_cv_header_linux_threads = yes && 27292 test $ol_cv_sys_linux_threads = yes; then 27293 ol_cv_linux_threads=yes 27294 elif test $ol_cv_header_linux_threads = no && 27295 test $ol_cv_sys_linux_threads = no; then 27296 ol_cv_linux_threads=no 27297 else 27298 ol_cv_linux_threads=error 27299 fi 27300 27301fi 27302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_linux_threads" >&5 27303$as_echo "$ol_cv_linux_threads" >&6; } 27304 27305 27306 if test $ol_cv_linux_threads = error; then 27307 as_fn_error $? "LinuxThreads header/library mismatch" "$LINENO" 5; 27308 fi 27309 27310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if pthread_create() works" >&5 27311$as_echo_n "checking if pthread_create() works... " >&6; } 27312if ${ol_cv_pthread_create_works+:} false; then : 27313 $as_echo_n "(cached) " >&6 27314else 27315 27316 if test "$cross_compiling" = yes; then : 27317 ol_cv_pthread_create_works=yes 27318else 27319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27320/* end confdefs.h. */ 27321 27322 27323/* pthread test headers */ 27324#include <pthread.h> 27325#if HAVE_PTHREADS < 7 27326#include <errno.h> 27327#endif 27328#ifndef NULL 27329#define NULL (void*)0 27330#endif 27331 27332static void *task(p) 27333 void *p; 27334{ 27335 return (void *) (p == NULL); 27336} 27337 27338 27339int main(argc, argv) 27340 int argc; 27341 char **argv; 27342{ 27343 27344 /* pthread test function */ 27345#ifndef PTHREAD_CREATE_DETACHED 27346#define PTHREAD_CREATE_DETACHED 1 27347#endif 27348 pthread_t t; 27349 int status; 27350 int detach = PTHREAD_CREATE_DETACHED; 27351 27352#if HAVE_PTHREADS > 4 27353 /* Final pthreads */ 27354 pthread_attr_t attr; 27355 27356 status = pthread_attr_init(&attr); 27357 if( status ) return status; 27358 27359#if HAVE_PTHREADS < 7 27360 status = pthread_attr_setdetachstate(&attr, &detach); 27361 if( status < 0 ) status = errno; 27362#else 27363 status = pthread_attr_setdetachstate(&attr, detach); 27364#endif 27365 if( status ) return status; 27366 status = pthread_create( &t, &attr, task, NULL ); 27367#if HAVE_PTHREADS < 7 27368 if( status < 0 ) status = errno; 27369#endif 27370 if( status ) return status; 27371#else 27372 /* Draft 4 pthreads */ 27373 status = pthread_create( &t, pthread_attr_default, task, NULL ); 27374 if( status ) return errno; 27375 27376 /* give thread a chance to complete */ 27377 /* it should remain joinable and hence detachable */ 27378 sleep( 1 ); 27379 27380 status = pthread_detach( &t ); 27381 if( status ) return errno; 27382#endif 27383 27384#ifdef HAVE_LINUX_THREADS 27385 pthread_kill_other_threads_np(); 27386#endif 27387 27388 return 0; 27389 27390} 27391 27392_ACEOF 27393if ac_fn_c_try_run "$LINENO"; then : 27394 ol_cv_pthread_create_works=yes 27395else 27396 ol_cv_pthread_create_works=no 27397fi 27398rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 27399 conftest.$ac_objext conftest.beam conftest.$ac_ext 27400fi 27401 27402fi 27403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_create_works" >&5 27404$as_echo "$ol_cv_pthread_create_works" >&6; } 27405 27406 if test $ol_cv_pthread_create_works = no ; then 27407 as_fn_error $? "pthread_create is not usable, check environment settings" "$LINENO" 5 27408 fi 27409 27410 ol_replace_broken_yield=no 27411 27412 if test $ol_replace_broken_yield = yes ; then 27413 27414$as_echo "#define REPLACE_BROKEN_YIELD 1" >>confdefs.h 27415 27416 fi 27417 27418 if test x$ol_with_yielding_select = xauto ; then 27419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if select yields when using pthreads" >&5 27420$as_echo_n "checking if select yields when using pthreads... " >&6; } 27421if ${ol_cv_pthread_select_yields+:} false; then : 27422 $as_echo_n "(cached) " >&6 27423else 27424 27425 if test "$cross_compiling" = yes; then : 27426 ol_cv_pthread_select_yields=cross 27427else 27428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27429/* end confdefs.h. */ 27430 27431#include <sys/types.h> 27432#include <sys/time.h> 27433#include <unistd.h> 27434#include <pthread.h> 27435#ifndef NULL 27436#define NULL (void*) 0 27437#endif 27438 27439static int fildes[2]; 27440 27441static void *task(p) 27442 void *p; 27443{ 27444 int i; 27445 struct timeval tv; 27446 27447 fd_set rfds; 27448 27449 tv.tv_sec=10; 27450 tv.tv_usec=0; 27451 27452 FD_ZERO(&rfds); 27453 FD_SET(fildes[0], &rfds); 27454 27455 /* we're not interested in any fds */ 27456 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv); 27457 27458 if(i < 0) { 27459 perror("select"); 27460 exit(10); 27461 } 27462 27463 exit(0); /* if we exit here, the select blocked the whole process */ 27464} 27465 27466int main(argc, argv) 27467 int argc; 27468 char **argv; 27469{ 27470 pthread_t t; 27471 27472 /* create a pipe to select */ 27473 if(pipe(&fildes[0])) { 27474 perror("select"); 27475 exit(1); 27476 } 27477 27478#ifdef HAVE_PTHREAD_SETCONCURRENCY 27479 (void) pthread_setconcurrency(2); 27480#else 27481#ifdef HAVE_THR_SETCONCURRENCY 27482 /* Set Solaris LWP concurrency to 2 */ 27483 thr_setconcurrency(2); 27484#endif 27485#endif 27486 27487#if HAVE_PTHREADS < 6 27488 pthread_create(&t, pthread_attr_default, task, NULL); 27489#else 27490 pthread_create(&t, NULL, task, NULL); 27491#endif 27492 27493 /* make sure task runs first */ 27494#ifdef HAVE_THR_YIELD 27495 thr_yield(); 27496#elif defined( HAVE_SCHED_YIELD ) 27497 sched_yield(); 27498#elif defined( HAVE_PTHREAD_YIELD ) 27499 pthread_yield(); 27500#endif 27501 27502 exit(2); 27503} 27504_ACEOF 27505if ac_fn_c_try_run "$LINENO"; then : 27506 ol_cv_pthread_select_yields=no 27507else 27508 ol_cv_pthread_select_yields=yes 27509fi 27510rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 27511 conftest.$ac_objext conftest.beam conftest.$ac_ext 27512fi 27513 27514fi 27515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_select_yields" >&5 27516$as_echo "$ol_cv_pthread_select_yields" >&6; } 27517 27518 if test $ol_cv_pthread_select_yields = cross ; then 27519 as_fn_error $? "crossing compiling: use --with-yielding-select=yes|no|manual" "$LINENO" 5 27520 fi 27521 27522 if test $ol_cv_pthread_select_yields = yes ; then 27523 ol_with_yielding_select=yes 27524 fi 27525 fi 27526 27527 CPPFLAGS="$save_CPPFLAGS" 27528 LIBS="$save_LIBS" 27529 else 27530 as_fn_error $? "could not locate usable POSIX Threads" "$LINENO" 5 27531 fi 27532 fi 27533 27534 if test $ol_with_threads = posix ; then 27535 as_fn_error $? "could not locate POSIX Threads" "$LINENO" 5 27536 fi 27537 ;; 27538esac 27539 27540case $ol_with_threads in auto | yes | mach) 27541 27542 for ac_header in mach/cthreads.h cthreads.h 27543do : 27544 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 27545ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 27546if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 27547 cat >>confdefs.h <<_ACEOF 27548#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 27549_ACEOF 27550 27551fi 27552 27553done 27554 27555 if test $ac_cv_header_mach_cthreads_h = yes ; then 27556 ol_with_threads=found 27557 27558 ac_fn_c_check_func "$LINENO" "cthread_fork" "ac_cv_func_cthread_fork" 27559if test "x$ac_cv_func_cthread_fork" = xyes; then : 27560 ol_link_threads=yes 27561fi 27562 27563 27564 if test $ol_link_threads = no ; then 27565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cthread_fork with -all_load" >&5 27566$as_echo_n "checking for cthread_fork with -all_load... " >&6; } 27567if ${ol_cv_cthread_all_load+:} false; then : 27568 $as_echo_n "(cached) " >&6 27569else 27570 27571 save_LIBS="$LIBS" 27572 LIBS="-all_load $LIBS" 27573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27574/* end confdefs.h. */ 27575#include <mach/cthreads.h> 27576int 27577main () 27578{ 27579 27580 cthread_fork((void *)0, (void *)0); 27581 27582 ; 27583 return 0; 27584} 27585_ACEOF 27586if ac_fn_c_try_link "$LINENO"; then : 27587 ol_cv_cthread_all_load=yes 27588else 27589 ol_cv_cthread_all_load=no 27590fi 27591rm -f core conftest.err conftest.$ac_objext \ 27592 conftest$ac_exeext conftest.$ac_ext 27593 LIBS="$save_LIBS" 27594 27595fi 27596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_cthread_all_load" >&5 27597$as_echo "$ol_cv_cthread_all_load" >&6; } 27598 27599 if test $ol_cv_cthread_all_load = yes ; then 27600 LTHREAD_LIBS="$LTHREAD_LIBS -all_load" 27601 ol_link_threads=mach 27602 ol_with_threads=found 27603 fi 27604 fi 27605 27606 elif test $ac_cv_header_cthreads_h = yes ; then 27607 27608 ol_with_threads=found 27609 27610 save_LIBS="$LIBS" 27611 LIBS="$LIBS -lthreads" 27612 ac_fn_c_check_func "$LINENO" "cthread_fork" "ac_cv_func_cthread_fork" 27613if test "x$ac_cv_func_cthread_fork" = xyes; then : 27614 ol_link_threads=yes 27615fi 27616 27617 LIBS="$save_LIBS" 27618 27619 if test $ol_link_threads = yes ; then 27620 LTHREAD_LIBS="-lthreads" 27621 ol_link_threads=mach 27622 ol_with_threads=found 27623 else 27624 as_fn_error $? "could not link with Mach CThreads" "$LINENO" 5 27625 fi 27626 27627 elif test $ol_with_threads = mach ; then 27628 as_fn_error $? "could not locate Mach CThreads" "$LINENO" 5 27629 fi 27630 27631 if test $ol_link_threads = mach ; then 27632 27633$as_echo "#define HAVE_MACH_CTHREADS 1" >>confdefs.h 27634 27635 elif test $ol_with_threads = found ; then 27636 as_fn_error $? "could not link with Mach CThreads" "$LINENO" 5 27637 fi 27638 ;; 27639esac 27640 27641case $ol_with_threads in auto | yes | pth) 27642 27643 for ac_header in pth.h 27644do : 27645 ac_fn_c_check_header_mongrel "$LINENO" "pth.h" "ac_cv_header_pth_h" "$ac_includes_default" 27646if test "x$ac_cv_header_pth_h" = xyes; then : 27647 cat >>confdefs.h <<_ACEOF 27648#define HAVE_PTH_H 1 27649_ACEOF 27650 27651fi 27652 27653done 27654 27655 27656 if test $ac_cv_header_pth_h = yes ; then 27657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pth_version in -lpth" >&5 27658$as_echo_n "checking for pth_version in -lpth... " >&6; } 27659if ${ac_cv_lib_pth_pth_version+:} false; then : 27660 $as_echo_n "(cached) " >&6 27661else 27662 ac_check_lib_save_LIBS=$LIBS 27663LIBS="-lpth $LIBS" 27664cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27665/* end confdefs.h. */ 27666 27667/* Override any GCC internal prototype to avoid an error. 27668 Use char because int might match the return type of a GCC 27669 builtin and then its argument prototype would still apply. */ 27670#ifdef __cplusplus 27671extern "C" 27672#endif 27673char pth_version (); 27674int 27675main () 27676{ 27677return pth_version (); 27678 ; 27679 return 0; 27680} 27681_ACEOF 27682if ac_fn_c_try_link "$LINENO"; then : 27683 ac_cv_lib_pth_pth_version=yes 27684else 27685 ac_cv_lib_pth_pth_version=no 27686fi 27687rm -f core conftest.err conftest.$ac_objext \ 27688 conftest$ac_exeext conftest.$ac_ext 27689LIBS=$ac_check_lib_save_LIBS 27690fi 27691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pth_pth_version" >&5 27692$as_echo "$ac_cv_lib_pth_pth_version" >&6; } 27693if test "x$ac_cv_lib_pth_pth_version" = xyes; then : 27694 have_pth=yes 27695else 27696 have_pth=no 27697fi 27698 27699 27700 if test $have_pth = yes ; then 27701 27702$as_echo "#define HAVE_GNU_PTH 1" >>confdefs.h 27703 27704 LTHREAD_LIBS="$LTHREAD_LIBS -lpth" 27705 ol_link_threads=pth 27706 ol_with_threads=found 27707 27708 if test x$ol_with_yielding_select = xauto ; then 27709 ol_with_yielding_select=yes 27710 fi 27711 fi 27712 fi 27713 ;; 27714esac 27715 27716case $ol_with_threads in auto | yes | lwp) 27717 27718 for ac_header in thread.h synch.h 27719do : 27720 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 27721ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 27722if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 27723 cat >>confdefs.h <<_ACEOF 27724#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 27725_ACEOF 27726 27727fi 27728 27729done 27730 27731 if test $ac_cv_header_thread_h = yes && 27732 test $ac_cv_header_synch_h = yes ; then 27733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thr_create in -lthread" >&5 27734$as_echo_n "checking for thr_create in -lthread... " >&6; } 27735if ${ac_cv_lib_thread_thr_create+:} false; then : 27736 $as_echo_n "(cached) " >&6 27737else 27738 ac_check_lib_save_LIBS=$LIBS 27739LIBS="-lthread $LIBS" 27740cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27741/* end confdefs.h. */ 27742 27743/* Override any GCC internal prototype to avoid an error. 27744 Use char because int might match the return type of a GCC 27745 builtin and then its argument prototype would still apply. */ 27746#ifdef __cplusplus 27747extern "C" 27748#endif 27749char thr_create (); 27750int 27751main () 27752{ 27753return thr_create (); 27754 ; 27755 return 0; 27756} 27757_ACEOF 27758if ac_fn_c_try_link "$LINENO"; then : 27759 ac_cv_lib_thread_thr_create=yes 27760else 27761 ac_cv_lib_thread_thr_create=no 27762fi 27763rm -f core conftest.err conftest.$ac_objext \ 27764 conftest$ac_exeext conftest.$ac_ext 27765LIBS=$ac_check_lib_save_LIBS 27766fi 27767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_thread_thr_create" >&5 27768$as_echo "$ac_cv_lib_thread_thr_create" >&6; } 27769if test "x$ac_cv_lib_thread_thr_create" = xyes; then : 27770 have_thr=yes 27771else 27772 have_thr=no 27773fi 27774 27775 27776 if test $have_thr = yes ; then 27777 27778$as_echo "#define HAVE_THR 1" >>confdefs.h 27779 27780 LTHREAD_LIBS="$LTHREAD_LIBS -lthread" 27781 ol_link_threads=thr 27782 27783 if test x$ol_with_yielding_select = xauto ; then 27784 ol_with_yielding_select=yes 27785 fi 27786 27787 for ac_func in \ 27788 thr_setconcurrency \ 27789 thr_getconcurrency \ 27790 27791do : 27792 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 27793ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 27794if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 27795 cat >>confdefs.h <<_ACEOF 27796#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 27797_ACEOF 27798 27799fi 27800done 27801 27802 fi 27803 fi 27804 27805 for ac_header in lwp/lwp.h 27806do : 27807 ac_fn_c_check_header_mongrel "$LINENO" "lwp/lwp.h" "ac_cv_header_lwp_lwp_h" "$ac_includes_default" 27808if test "x$ac_cv_header_lwp_lwp_h" = xyes; then : 27809 cat >>confdefs.h <<_ACEOF 27810#define HAVE_LWP_LWP_H 1 27811_ACEOF 27812 27813fi 27814 27815done 27816 27817 if test $ac_cv_header_lwp_lwp_h = yes ; then 27818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwp_create in -llwp" >&5 27819$as_echo_n "checking for lwp_create in -llwp... " >&6; } 27820if ${ac_cv_lib_lwp_lwp_create+:} false; then : 27821 $as_echo_n "(cached) " >&6 27822else 27823 ac_check_lib_save_LIBS=$LIBS 27824LIBS="-llwp $LIBS" 27825cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27826/* end confdefs.h. */ 27827 27828/* Override any GCC internal prototype to avoid an error. 27829 Use char because int might match the return type of a GCC 27830 builtin and then its argument prototype would still apply. */ 27831#ifdef __cplusplus 27832extern "C" 27833#endif 27834char lwp_create (); 27835int 27836main () 27837{ 27838return lwp_create (); 27839 ; 27840 return 0; 27841} 27842_ACEOF 27843if ac_fn_c_try_link "$LINENO"; then : 27844 ac_cv_lib_lwp_lwp_create=yes 27845else 27846 ac_cv_lib_lwp_lwp_create=no 27847fi 27848rm -f core conftest.err conftest.$ac_objext \ 27849 conftest$ac_exeext conftest.$ac_ext 27850LIBS=$ac_check_lib_save_LIBS 27851fi 27852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lwp_lwp_create" >&5 27853$as_echo "$ac_cv_lib_lwp_lwp_create" >&6; } 27854if test "x$ac_cv_lib_lwp_lwp_create" = xyes; then : 27855 have_lwp=yes 27856else 27857 have_lwp=no 27858fi 27859 27860 27861 if test $have_lwp = yes ; then 27862 27863$as_echo "#define HAVE_LWP 1" >>confdefs.h 27864 27865 LTHREAD_LIBS="$LTHREAD_LIBS -llwp" 27866 ol_link_threads=lwp 27867 27868 if test x$ol_with_yielding_select = xauto ; then 27869 ol_with_yielding_select=no 27870 fi 27871 fi 27872 fi 27873 ;; 27874esac 27875 27876if test $ol_with_yielding_select = yes ; then 27877 27878$as_echo "#define HAVE_YIELDING_SELECT 1" >>confdefs.h 27879 27880fi 27881 27882if test $ol_with_threads = manual ; then 27883 ol_link_threads=yes 27884 27885 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: thread defines and link options must be set manually" >&5 27886$as_echo "$as_me: WARNING: thread defines and link options must be set manually" >&2;} 27887 27888 for ac_header in pthread.h sched.h 27889do : 27890 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 27891ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 27892if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 27893 cat >>confdefs.h <<_ACEOF 27894#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 27895_ACEOF 27896 27897fi 27898 27899done 27900 27901 for ac_func in sched_yield pthread_yield 27902do : 27903 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 27904ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 27905if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 27906 cat >>confdefs.h <<_ACEOF 27907#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 27908_ACEOF 27909 27910fi 27911done 27912 27913 27914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads pthread.h" >&5 27915$as_echo_n "checking for LinuxThreads pthread.h... " >&6; } 27916if ${ol_cv_header_linux_threads+:} false; then : 27917 $as_echo_n "(cached) " >&6 27918else 27919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27920/* end confdefs.h. */ 27921#include <pthread.h> 27922_ACEOF 27923if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 27924 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then : 27925 ol_cv_header_linux_threads=yes 27926else 27927 ol_cv_header_linux_threads=no 27928fi 27929rm -f conftest* 27930 27931 27932fi 27933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_linux_threads" >&5 27934$as_echo "$ol_cv_header_linux_threads" >&6; } 27935 if test $ol_cv_header_linux_threads = yes; then 27936 27937$as_echo "#define HAVE_LINUX_THREADS 1" >>confdefs.h 27938 27939 fi 27940 27941 27942 for ac_header in mach/cthreads.h 27943do : 27944 ac_fn_c_check_header_mongrel "$LINENO" "mach/cthreads.h" "ac_cv_header_mach_cthreads_h" "$ac_includes_default" 27945if test "x$ac_cv_header_mach_cthreads_h" = xyes; then : 27946 cat >>confdefs.h <<_ACEOF 27947#define HAVE_MACH_CTHREADS_H 1 27948_ACEOF 27949 27950fi 27951 27952done 27953 27954 for ac_header in lwp/lwp.h 27955do : 27956 ac_fn_c_check_header_mongrel "$LINENO" "lwp/lwp.h" "ac_cv_header_lwp_lwp_h" "$ac_includes_default" 27957if test "x$ac_cv_header_lwp_lwp_h" = xyes; then : 27958 cat >>confdefs.h <<_ACEOF 27959#define HAVE_LWP_LWP_H 1 27960_ACEOF 27961 27962fi 27963 27964done 27965 27966 for ac_header in thread.h synch.h 27967do : 27968 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 27969ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 27970if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 27971 cat >>confdefs.h <<_ACEOF 27972#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 27973_ACEOF 27974 27975fi 27976 27977done 27978 27979fi 27980 27981if test $ol_link_threads != no && test $ol_link_threads != nt ; then 27982 27983$as_echo "#define REENTRANT 1" >>confdefs.h 27984 27985 27986$as_echo "#define _REENTRANT 1" >>confdefs.h 27987 27988 27989$as_echo "#define THREAD_SAFE 1" >>confdefs.h 27990 27991 27992$as_echo "#define _THREAD_SAFE 1" >>confdefs.h 27993 27994 27995$as_echo "#define THREADSAFE 1" >>confdefs.h 27996 27997 27998$as_echo "#define _THREADSAFE 1" >>confdefs.h 27999 28000 28001$as_echo "#define _SGI_MP_SOURCE 1" >>confdefs.h 28002 28003 28004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread specific errno" >&5 28005$as_echo_n "checking for thread specific errno... " >&6; } 28006if ${ol_cv_errno_thread_specific+:} false; then : 28007 $as_echo_n "(cached) " >&6 28008else 28009 28010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28011/* end confdefs.h. */ 28012#include <errno.h> 28013int 28014main () 28015{ 28016errno = 0; 28017 ; 28018 return 0; 28019} 28020_ACEOF 28021if ac_fn_c_try_link "$LINENO"; then : 28022 ol_cv_errno_thread_specific=yes 28023else 28024 ol_cv_errno_thread_specific=no 28025fi 28026rm -f core conftest.err conftest.$ac_objext \ 28027 conftest$ac_exeext conftest.$ac_ext 28028 28029fi 28030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_errno_thread_specific" >&5 28031$as_echo "$ol_cv_errno_thread_specific" >&6; } 28032 28033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread specific h_errno" >&5 28034$as_echo_n "checking for thread specific h_errno... " >&6; } 28035if ${ol_cv_h_errno_thread_specific+:} false; then : 28036 $as_echo_n "(cached) " >&6 28037else 28038 28039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28040/* end confdefs.h. */ 28041#include <netdb.h> 28042int 28043main () 28044{ 28045h_errno = 0; 28046 ; 28047 return 0; 28048} 28049_ACEOF 28050if ac_fn_c_try_link "$LINENO"; then : 28051 ol_cv_h_errno_thread_specific=yes 28052else 28053 ol_cv_h_errno_thread_specific=no 28054fi 28055rm -f core conftest.err conftest.$ac_objext \ 28056 conftest$ac_exeext conftest.$ac_ext 28057 28058fi 28059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_h_errno_thread_specific" >&5 28060$as_echo "$ol_cv_h_errno_thread_specific" >&6; } 28061 28062 if test $ol_cv_errno_thread_specific != yes || 28063 test $ol_cv_h_errno_thread_specific != yes ; then 28064 LIBS="$LTHREAD_LIBS $LIBS" 28065 LTHREAD_LIBS="" 28066 fi 28067 28068fi 28069 28070if test $ol_link_threads = no ; then 28071 if test $ol_with_threads = yes ; then 28072 as_fn_error $? "no suitable thread support" "$LINENO" 5 28073 fi 28074 28075 if test $ol_with_threads = auto ; then 28076 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no suitable thread support, disabling threads" >&5 28077$as_echo "$as_me: WARNING: no suitable thread support, disabling threads" >&2;} 28078 ol_with_threads=no 28079 fi 28080 28081 28082$as_echo "#define NO_THREADS 1" >>confdefs.h 28083 28084 LTHREAD_LIBS="" 28085 BUILD_THREAD=no 28086else 28087 BUILD_THREAD=yes 28088fi 28089 28090if test $ol_link_threads != no ; then 28091 28092$as_echo "#define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1" >>confdefs.h 28093 28094fi 28095 28096# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: 28097case "$ol_with_threads" in 28098 no) 28099 ol_pthread_ok=no 28100 28101 ;; 28102 *) 28103 ol_found_pthreads=yes 28104 ;; 28105esac 28106 28107ac_ext=c 28108ac_cpp='$CPP $CPPFLAGS' 28109ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 28110ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 28111ac_compiler_gnu=$ac_cv_c_compiler_gnu 28112 28113 28114 28115 28116 28117 28118 case "$ol_found_pthreads" in 28119 yes) 28120 saved_LIBS="$LIBS" 28121 LIBS="$LTHREAD_LIBS $LIBS" 28122 saved_CFLAGS="$CFLAGS" 28123 CFLAGS="$PTHREAD_CFLAGS $CFLAGS" 28124 for ac_func in sem_timedwait 28125do : 28126 ac_fn_c_check_func "$LINENO" "sem_timedwait" "ac_cv_func_sem_timedwait" 28127if test "x$ac_cv_func_sem_timedwait" = xyes; then : 28128 cat >>confdefs.h <<_ACEOF 28129#define HAVE_SEM_TIMEDWAIT 1 28130_ACEOF 28131 28132fi 28133done 28134 28135 LIBS="$saved_LIBS" 28136 { saved_LIBS=; unset saved_LIBS;} 28137 CFLAGS="$saved_CFLAGS" 28138 { saved_CFLAGS=; unset saved_CFLAGS;} 28139 case "$ac_cv_func_sem_timedwait" in 28140 yes) 28141 PTHREAD_LIBS="$LTHREAD_LIBS" 28142 have_pthreads=yes 28143 esac 28144 esac 28145esac 28146 28147case "$have_pthreads" in 28148 yes) 28149 CFLAGS_NTP="$CFLAGS_NTP $PTHREAD_CFLAGS" 28150 saved_LIBS="$LIBS" 28151 LIBS="$LTHREAD_LIBS $LIBS" 28152 saved_CFLAGS="$CFLAGS" 28153 CFLAGS="$PTHREAD_CFLAGS $CFLAGS" 28154 # The cast to long int works around a bug in the HP C Compiler 28155# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 28156# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 28157# This bug is HP SR number 8606223364. 28158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pthread_t" >&5 28159$as_echo_n "checking size of pthread_t... " >&6; } 28160if ${ac_cv_sizeof_pthread_t+:} false; then : 28161 $as_echo_n "(cached) " >&6 28162else 28163 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pthread_t))" "ac_cv_sizeof_pthread_t" " 28164 $ac_includes_default 28165 #include <pthread.h> 28166 28167 28168"; then : 28169 28170else 28171 if test "$ac_cv_type_pthread_t" = yes; then 28172 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 28173$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 28174as_fn_error 77 "cannot compute sizeof (pthread_t) 28175See \`config.log' for more details" "$LINENO" 5; } 28176 else 28177 ac_cv_sizeof_pthread_t=0 28178 fi 28179fi 28180 28181fi 28182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_t" >&5 28183$as_echo "$ac_cv_sizeof_pthread_t" >&6; } 28184 28185 28186 28187cat >>confdefs.h <<_ACEOF 28188#define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t 28189_ACEOF 28190 28191 28192 LIBISC_PTHREADS_NOTHREADS=pthreads 28193 28194$as_echo "#define ISC_PLATFORM_USETHREADS 1" >>confdefs.h 28195 28196 # 28197 # We'd like to use sigwait() too 28198 # 28199 ac_fn_c_check_func "$LINENO" "sigwait" "ac_cv_func_sigwait" 28200if test "x$ac_cv_func_sigwait" = xyes; then : 28201 have_sigwait=yes 28202else 28203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigwait in -lc" >&5 28204$as_echo_n "checking for sigwait in -lc... " >&6; } 28205if ${ac_cv_lib_c_sigwait+:} false; then : 28206 $as_echo_n "(cached) " >&6 28207else 28208 ac_check_lib_save_LIBS=$LIBS 28209LIBS="-lc $LIBS" 28210cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28211/* end confdefs.h. */ 28212 28213/* Override any GCC internal prototype to avoid an error. 28214 Use char because int might match the return type of a GCC 28215 builtin and then its argument prototype would still apply. */ 28216#ifdef __cplusplus 28217extern "C" 28218#endif 28219char sigwait (); 28220int 28221main () 28222{ 28223return sigwait (); 28224 ; 28225 return 0; 28226} 28227_ACEOF 28228if ac_fn_c_try_link "$LINENO"; then : 28229 ac_cv_lib_c_sigwait=yes 28230else 28231 ac_cv_lib_c_sigwait=no 28232fi 28233rm -f core conftest.err conftest.$ac_objext \ 28234 conftest$ac_exeext conftest.$ac_ext 28235LIBS=$ac_check_lib_save_LIBS 28236fi 28237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_sigwait" >&5 28238$as_echo "$ac_cv_lib_c_sigwait" >&6; } 28239if test "x$ac_cv_lib_c_sigwait" = xyes; then : 28240 have_sigwait=yes 28241else 28242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigwait in -lpthread" >&5 28243$as_echo_n "checking for sigwait in -lpthread... " >&6; } 28244if ${ac_cv_lib_pthread_sigwait+:} false; then : 28245 $as_echo_n "(cached) " >&6 28246else 28247 ac_check_lib_save_LIBS=$LIBS 28248LIBS="-lpthread $LIBS" 28249cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28250/* end confdefs.h. */ 28251 28252/* Override any GCC internal prototype to avoid an error. 28253 Use char because int might match the return type of a GCC 28254 builtin and then its argument prototype would still apply. */ 28255#ifdef __cplusplus 28256extern "C" 28257#endif 28258char sigwait (); 28259int 28260main () 28261{ 28262return sigwait (); 28263 ; 28264 return 0; 28265} 28266_ACEOF 28267if ac_fn_c_try_link "$LINENO"; then : 28268 ac_cv_lib_pthread_sigwait=yes 28269else 28270 ac_cv_lib_pthread_sigwait=no 28271fi 28272rm -f core conftest.err conftest.$ac_objext \ 28273 conftest$ac_exeext conftest.$ac_ext 28274LIBS=$ac_check_lib_save_LIBS 28275fi 28276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sigwait" >&5 28277$as_echo "$ac_cv_lib_pthread_sigwait" >&6; } 28278if test "x$ac_cv_lib_pthread_sigwait" = xyes; then : 28279 have_sigwait=yes 28280else 28281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Psigwait in -lpthread" >&5 28282$as_echo_n "checking for _Psigwait in -lpthread... " >&6; } 28283if ${ac_cv_lib_pthread__Psigwait+:} false; then : 28284 $as_echo_n "(cached) " >&6 28285else 28286 ac_check_lib_save_LIBS=$LIBS 28287LIBS="-lpthread $LIBS" 28288cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28289/* end confdefs.h. */ 28290 28291/* Override any GCC internal prototype to avoid an error. 28292 Use char because int might match the return type of a GCC 28293 builtin and then its argument prototype would still apply. */ 28294#ifdef __cplusplus 28295extern "C" 28296#endif 28297char _Psigwait (); 28298int 28299main () 28300{ 28301return _Psigwait (); 28302 ; 28303 return 0; 28304} 28305_ACEOF 28306if ac_fn_c_try_link "$LINENO"; then : 28307 ac_cv_lib_pthread__Psigwait=yes 28308else 28309 ac_cv_lib_pthread__Psigwait=no 28310fi 28311rm -f core conftest.err conftest.$ac_objext \ 28312 conftest$ac_exeext conftest.$ac_ext 28313LIBS=$ac_check_lib_save_LIBS 28314fi 28315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread__Psigwait" >&5 28316$as_echo "$ac_cv_lib_pthread__Psigwait" >&6; } 28317if test "x$ac_cv_lib_pthread__Psigwait" = xyes; then : 28318 have_sigwait=yes 28319else 28320 have_sigwait=no 28321 28322fi 28323 28324 28325fi 28326 28327 28328fi 28329 28330 28331fi 28332 28333 case "$host:$have_sigwait" in 28334 *-freebsd*:no) 28335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigwait in -lc_r" >&5 28336$as_echo_n "checking for sigwait in -lc_r... " >&6; } 28337if ${ac_cv_lib_c_r_sigwait+:} false; then : 28338 $as_echo_n "(cached) " >&6 28339else 28340 ac_check_lib_save_LIBS=$LIBS 28341LIBS="-lc_r $LIBS" 28342cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28343/* end confdefs.h. */ 28344 28345/* Override any GCC internal prototype to avoid an error. 28346 Use char because int might match the return type of a GCC 28347 builtin and then its argument prototype would still apply. */ 28348#ifdef __cplusplus 28349extern "C" 28350#endif 28351char sigwait (); 28352int 28353main () 28354{ 28355return sigwait (); 28356 ; 28357 return 0; 28358} 28359_ACEOF 28360if ac_fn_c_try_link "$LINENO"; then : 28361 ac_cv_lib_c_r_sigwait=yes 28362else 28363 ac_cv_lib_c_r_sigwait=no 28364fi 28365rm -f core conftest.err conftest.$ac_objext \ 28366 conftest$ac_exeext conftest.$ac_ext 28367LIBS=$ac_check_lib_save_LIBS 28368fi 28369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_sigwait" >&5 28370$as_echo "$ac_cv_lib_c_r_sigwait" >&6; } 28371if test "x$ac_cv_lib_c_r_sigwait" = xyes; then : 28372 have_sigwait=yes 28373 28374fi 28375 28376 esac 28377 case "$have_sigwait" in 28378 yes) 28379 ac_cv_func_sigwait=yes 28380 28381$as_echo "#define HAVE_SIGWAIT 1" >>confdefs.h 28382 28383 esac 28384 28385 for ac_func in pthread_attr_getstacksize 28386do : 28387 ac_fn_c_check_func "$LINENO" "pthread_attr_getstacksize" "ac_cv_func_pthread_attr_getstacksize" 28388if test "x$ac_cv_func_pthread_attr_getstacksize" = xyes; then : 28389 cat >>confdefs.h <<_ACEOF 28390#define HAVE_PTHREAD_ATTR_GETSTACKSIZE 1 28391_ACEOF 28392 28393fi 28394done 28395 28396 for ac_func in pthread_attr_setstacksize sysconf 28397do : 28398 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 28399ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 28400if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 28401 cat >>confdefs.h <<_ACEOF 28402#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 28403_ACEOF 28404 28405fi 28406done 28407 28408 28409 case "$host" in 28410 *-freebsd5.[012]|*-freebsd5.[012].*) 28411 ;; 28412 *-freebsd5.[3456789]|*-freebsd5.[3456789].*|*-freebsd6.*) 28413 28414$as_echo "#define NEED_PTHREAD_SCOPE_SYSTEM 1" >>confdefs.h 28415 28416 ;; 28417 *-bsdi3.*|*-bsdi4.0*) 28418 28419$as_echo "#define NEED_PTHREAD_INIT 1" >>confdefs.h 28420 28421 ;; 28422 *-linux*) 28423 28424$as_echo "#define HAVE_LINUXTHREADS 1" >>confdefs.h 28425 28426 ;; 28427 *-solaris*) 28428 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 28429 28430 for ac_func in pthread_setconcurrency 28431do : 28432 ac_fn_c_check_func "$LINENO" "pthread_setconcurrency" "ac_cv_func_pthread_setconcurrency" 28433if test "x$ac_cv_func_pthread_setconcurrency" = xyes; then : 28434 cat >>confdefs.h <<_ACEOF 28435#define HAVE_PTHREAD_SETCONCURRENCY 1 28436_ACEOF 28437 28438fi 28439done 28440 28441 case "$ac_cv_func_pthread_setconcurrency" in 28442 yes) 28443 28444$as_echo "#define CALL_PTHREAD_SETCONCURRENCY 1" >>confdefs.h 28445 28446 esac 28447 ;; 28448 *-sco-sysv*uw*|*-*-sysv*UnixWare*|*-*-sysv*OpenUNIX*) 28449 28450$as_echo "#define HAVE_UNIXWARE_SIGWAIT 1" >>confdefs.h 28451 28452 ;; 28453 esac 28454 hack_shutup_pthreadonceinit=no 28455 case "$host" in 28456 *-aix5.[123].*) 28457 hack_shutup_pthreadonceinit=yes 28458 ;; 28459 *-solaris2.[89]) 28460 hack_shutup_pthreadonceinit=yes 28461 ;; 28462 *-solaris2.1[0-9]) 28463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if extra braces are needed for PTHREAD_ONCE_INIT" >&5 28464$as_echo_n "checking if extra braces are needed for PTHREAD_ONCE_INIT... " >&6; } 28465if ${ntp_cv_braces_around_pthread_once_init+:} false; then : 28466 $as_echo_n "(cached) " >&6 28467else 28468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28469/* end confdefs.h. */ 28470 28471 #include <pthread.h> 28472 28473int 28474main () 28475{ 28476 28477 static pthread_once_t once_test = 28478 PTHREAD_ONCE_INIT; 28479 28480 28481 ; 28482 return 0; 28483} 28484_ACEOF 28485if ac_fn_c_try_compile "$LINENO"; then : 28486 ntp_cv_braces_around_pthread_once_init=no 28487else 28488 ntp_cv_braces_around_pthread_once_init=yes 28489 28490fi 28491rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28492 28493fi 28494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_braces_around_pthread_once_init" >&5 28495$as_echo "$ntp_cv_braces_around_pthread_once_init" >&6; } 28496 case "$ntp_cv_braces_around_pthread_once_init" in 28497 yes) 28498 hack_shutup_pthreadonceinit=yes 28499 esac 28500 ;; 28501 esac 28502 case "$hack_shutup_pthreadonceinit" in 28503 yes) 28504 28505$as_echo "#define ISC_PLATFORM_BRACEPTHREADONCEINIT 1" >>confdefs.h 28506 28507 esac 28508 LIBS="$saved_LIBS" 28509 { saved_LIBS=; unset saved_LIBS;} 28510 CFLAGS="$saved_CFLAGS" 28511 { saved_CFLAGS=; unset saved_CFLAGS;} 28512 ;; 28513 *) 28514 LIBISC_PTHREADS_NOTHREADS=nothreads 28515 ;; 28516esac 28517 28518 if test "$have_pthreads" != "no"; then 28519 PTHREADS_TRUE= 28520 PTHREADS_FALSE='#' 28521else 28522 PTHREADS_TRUE='#' 28523 PTHREADS_FALSE= 28524fi 28525 28526 28527 28528 28529 28530 28531 28532case "$hw_use_rpl_vsnprintf:$hw_cv_func_vsnprintf" in 28533 no:yes) 28534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if vsnprintf expands \"%m\" to strerror(errno)" >&5 28535$as_echo_n "checking if vsnprintf expands \"%m\" to strerror(errno)... " >&6; } 28536if ${ntp_cv_vsnprintf_percent_m+:} false; then : 28537 $as_echo_n "(cached) " >&6 28538else 28539 if test "$cross_compiling" = yes; then : 28540 ntp_cv_vsnprintf_percent_m=no 28541 28542else 28543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28544/* end confdefs.h. */ 28545 28546 #include <stdarg.h> 28547 #include <errno.h> 28548 #include <stdio.h> 28549 #include <string.h> 28550 28551 int call_vsnprintf( 28552 char * dst, 28553 size_t sz, 28554 const char *fmt, 28555 ... 28556 ); 28557 28558 int call_vsnprintf( 28559 char * dst, 28560 size_t sz, 28561 const char *fmt, 28562 ... 28563 ) 28564 { 28565 va_list ap; 28566 int rc; 28567 28568 va_start(ap, fmt); 28569 rc = vsnprintf(dst, sz, fmt, ap); 28570 va_end(ap); 28571 28572 return rc; 28573 } 28574 28575int 28576main () 28577{ 28578 28579 char sbuf[512]; 28580 char pbuf[512]; 28581 int slen; 28582 28583 strcpy(sbuf, strerror(ENOENT)); 28584 errno = ENOENT; 28585 slen = call_vsnprintf(pbuf, sizeof(pbuf), "%m", 28586 "wrong"); 28587 return strcmp(sbuf, pbuf); 28588 28589 28590 ; 28591 return 0; 28592} 28593_ACEOF 28594if ac_fn_c_try_run "$LINENO"; then : 28595 ntp_cv_vsnprintf_percent_m=yes 28596else 28597 ntp_cv_vsnprintf_percent_m=no 28598fi 28599rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 28600 conftest.$ac_objext conftest.beam conftest.$ac_ext 28601fi 28602 28603 28604fi 28605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_vsnprintf_percent_m" >&5 28606$as_echo "$ntp_cv_vsnprintf_percent_m" >&6; } 28607 case "$ntp_cv_vsnprintf_percent_m" in 28608 yes) 28609 28610$as_echo "#define VSNPRINTF_PERCENT_M 1" >>confdefs.h 28611 28612 esac 28613esac 28614 28615for ac_header in sys/clockctl.h 28616do : 28617 ac_fn_c_check_header_mongrel "$LINENO" "sys/clockctl.h" "ac_cv_header_sys_clockctl_h" "$ac_includes_default" 28618if test "x$ac_cv_header_sys_clockctl_h" = xyes; then : 28619 cat >>confdefs.h <<_ACEOF 28620#define HAVE_SYS_CLOCKCTL_H 1 28621_ACEOF 28622 28623fi 28624 28625done 28626 28627 28628# Check whether --enable-clockctl was given. 28629if test "${enable_clockctl+set}" = set; then : 28630 enableval=$enable_clockctl; ntp_use_dev_clockctl=$enableval 28631else 28632 ntp_use_dev_clockctl=$ac_cv_header_sys_clockctl_h 28633 28634fi 28635 28636 28637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should use /dev/clockctl" >&5 28638$as_echo_n "checking if we should use /dev/clockctl... " >&6; } 28639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_use_dev_clockctl" >&5 28640$as_echo "$ntp_use_dev_clockctl" >&6; } 28641 28642 28643for ac_header in sys/capability.h sys/prctl.h 28644do : 28645 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 28646ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 28647if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 28648 cat >>confdefs.h <<_ACEOF 28649#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 28650_ACEOF 28651 28652fi 28653 28654done 28655 28656 28657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have linux capabilities (libcap)" >&5 28658$as_echo_n "checking if we have linux capabilities (libcap)... " >&6; } 28659 28660case "$ac_cv_header_sys_capability_h$ac_cv_header_sys_prctl_h" in 28661 yesyes) 28662 case "$host" in 28663 mips-sgi-irix*) 28664 ntp_have_linuxcaps=no 28665 ;; 28666 *) ntp_have_linuxcaps=yes 28667 ;; 28668 esac 28669 ;; 28670 *) 28671 ntp_have_linuxcaps=no 28672 ;; 28673esac 28674 28675# Check whether --enable-linuxcaps was given. 28676if test "${enable_linuxcaps+set}" = set; then : 28677 enableval=$enable_linuxcaps; ntp_have_linuxcaps=$enableval 28678 28679fi 28680 28681 28682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_have_linuxcaps" >&5 28683$as_echo "$ntp_have_linuxcaps" >&6; } 28684 28685case "$ntp_have_linuxcaps" in 28686 yes) 28687 28688$as_echo "#define HAVE_LINUX_CAPABILITIES 1" >>confdefs.h 28689 28690 LIBS="$LIBS -lcap" 28691 ;; 28692esac 28693 28694 28695for ac_header in priv.h 28696do : 28697 ac_fn_c_check_header_mongrel "$LINENO" "priv.h" "ac_cv_header_priv_h" "$ac_includes_default" 28698if test "x$ac_cv_header_priv_h" = xyes; then : 28699 cat >>confdefs.h <<_ACEOF 28700#define HAVE_PRIV_H 1 28701_ACEOF 28702 28703fi 28704 28705done 28706 28707 28708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have solaris privileges" >&5 28709$as_echo_n "checking if we have solaris privileges... " >&6; } 28710 28711case "$ac_cv_header_priv_h" in 28712 yes) 28713 case "$host" in 28714 *-solaris*) 28715 ac_fn_c_check_func "$LINENO" "setppriv" "ac_cv_func_setppriv" 28716if test "x$ac_cv_func_setppriv" = xyes; then : 28717 ntp_have_solarisprivs=yes 28718else 28719 ntp_have_solarisprivs=no 28720 28721fi 28722 28723 ;; 28724 esac 28725esac 28726 28727# Check whether --enable-solarisprivs was given. 28728if test "${enable_solarisprivs+set}" = set; then : 28729 enableval=$enable_solarisprivs; ntp_have_solarisprivs=$enableval 28730 28731fi 28732 28733 28734 28735case "$ntp_have_solarisprivs" in 28736 yes) 28737 28738$as_echo "#define HAVE_SOLARIS_PRIVS 1" >>confdefs.h 28739 28740esac 28741 28742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_have_solarisprivs" >&5 28743$as_echo "$ntp_have_solarisprivs" >&6; } 28744 28745case "$ntp_use_dev_clockctl$ntp_have_linuxcaps$ntp_have_solarisprivs" in 28746 *yes*) 28747 28748$as_echo "#define HAVE_DROPROOT 1" >>confdefs.h 28749 28750esac 28751 28752case "$host" in 28753 *-*-darwin*) 28754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_9_init" >&5 28755$as_echo_n "checking for library containing res_9_init... " >&6; } 28756if ${ac_cv_search_res_9_init+:} false; then : 28757 $as_echo_n "(cached) " >&6 28758else 28759 ac_func_search_save_LIBS=$LIBS 28760cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28761/* end confdefs.h. */ 28762 28763/* Override any GCC internal prototype to avoid an error. 28764 Use char because int might match the return type of a GCC 28765 builtin and then its argument prototype would still apply. */ 28766#ifdef __cplusplus 28767extern "C" 28768#endif 28769char res_9_init (); 28770int 28771main () 28772{ 28773return res_9_init (); 28774 ; 28775 return 0; 28776} 28777_ACEOF 28778for ac_lib in '' resolv; do 28779 if test -z "$ac_lib"; then 28780 ac_res="none required" 28781 else 28782 ac_res=-l$ac_lib 28783 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 28784 fi 28785 if ac_fn_c_try_link "$LINENO"; then : 28786 ac_cv_search_res_9_init=$ac_res 28787fi 28788rm -f core conftest.err conftest.$ac_objext \ 28789 conftest$ac_exeext 28790 if ${ac_cv_search_res_9_init+:} false; then : 28791 break 28792fi 28793done 28794if ${ac_cv_search_res_9_init+:} false; then : 28795 28796else 28797 ac_cv_search_res_9_init=no 28798fi 28799rm conftest.$ac_ext 28800LIBS=$ac_func_search_save_LIBS 28801fi 28802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_9_init" >&5 28803$as_echo "$ac_cv_search_res_9_init" >&6; } 28804ac_res=$ac_cv_search_res_9_init 28805if test "$ac_res" != no; then : 28806 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 28807 28808fi 28809 28810 ;; 28811 *) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_init" >&5 28812$as_echo_n "checking for library containing res_init... " >&6; } 28813if ${ac_cv_search_res_init+:} false; then : 28814 $as_echo_n "(cached) " >&6 28815else 28816 ac_func_search_save_LIBS=$LIBS 28817cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28818/* end confdefs.h. */ 28819 28820/* Override any GCC internal prototype to avoid an error. 28821 Use char because int might match the return type of a GCC 28822 builtin and then its argument prototype would still apply. */ 28823#ifdef __cplusplus 28824extern "C" 28825#endif 28826char res_init (); 28827int 28828main () 28829{ 28830return res_init (); 28831 ; 28832 return 0; 28833} 28834_ACEOF 28835for ac_lib in '' resolv; do 28836 if test -z "$ac_lib"; then 28837 ac_res="none required" 28838 else 28839 ac_res=-l$ac_lib 28840 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 28841 fi 28842 if ac_fn_c_try_link "$LINENO"; then : 28843 ac_cv_search_res_init=$ac_res 28844fi 28845rm -f core conftest.err conftest.$ac_objext \ 28846 conftest$ac_exeext 28847 if ${ac_cv_search_res_init+:} false; then : 28848 break 28849fi 28850done 28851if ${ac_cv_search_res_init+:} false; then : 28852 28853else 28854 ac_cv_search_res_init=no 28855fi 28856rm conftest.$ac_ext 28857LIBS=$ac_func_search_save_LIBS 28858fi 28859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_init" >&5 28860$as_echo "$ac_cv_search_res_init" >&6; } 28861ac_res=$ac_cv_search_res_init 28862if test "$ac_res" != no; then : 28863 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 28864 28865fi 28866 28867 ;; 28868esac 28869for ac_header in sys/types.h netinet/in.h arpa/nameser.h netdb.h resolv.h 28870do : 28871 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 28872ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_SYS_TYPES_H 28873# include <sys/types.h> 28874#endif 28875#ifdef HAVE_NETINET_IN_H 28876# include <netinet/in.h> /* inet_ functions / structs */ 28877#endif 28878#ifdef HAVE_ARPA_NAMESER_H 28879# include <arpa/nameser.h> /* DNS HEADER struct */ 28880#endif 28881#ifdef HAVE_NETDB_H 28882# include <netdb.h> 28883#endif 28884" 28885if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 28886 cat >>confdefs.h <<_ACEOF 28887#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 28888_ACEOF 28889 28890fi 28891 28892done 28893 28894 28895#HMS: Why do we do this check so "early"? 28896for ac_func in res_init 28897do : 28898 ac_fn_c_check_func "$LINENO" "res_init" "ac_cv_func_res_init" 28899if test "x$ac_cv_func_res_init" = xyes; then : 28900 cat >>confdefs.h <<_ACEOF 28901#define HAVE_RES_INIT 1 28902_ACEOF 28903 28904else 28905 for ac_func in __res_init 28906do : 28907 ac_fn_c_check_func "$LINENO" "__res_init" "ac_cv_func___res_init" 28908if test "x$ac_cv_func___res_init" = xyes; then : 28909 cat >>confdefs.h <<_ACEOF 28910#define HAVE___RES_INIT 1 28911_ACEOF 28912 28913fi 28914done 28915 28916fi 28917done 28918 28919 28920# We also need -lsocket, but we have tested for that already. 28921ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop" 28922if test "x$ac_cv_func_inet_ntop" = xyes; then : 28923 28924else 28925 28926$as_echo "#define ISC_PLATFORM_NEEDNTOP 1" >>confdefs.h 28927 28928fi 28929 28930ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton" 28931if test "x$ac_cv_func_inet_pton" = xyes; then : 28932 28933else 28934 28935$as_echo "#define ISC_PLATFORM_NEEDPTON 1" >>confdefs.h 28936 28937fi 28938 28939 28940ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default" 28941if test "x$ac_cv_type_uintptr_t" = xyes; then : 28942 28943cat >>confdefs.h <<_ACEOF 28944#define HAVE_UINTPTR_T 1 28945_ACEOF 28946 28947 28948fi 28949ac_fn_c_check_type "$LINENO" "int32" "ac_cv_type_int32" "$ac_includes_default" 28950if test "x$ac_cv_type_int32" = xyes; then : 28951 28952cat >>confdefs.h <<_ACEOF 28953#define HAVE_INT32 1 28954_ACEOF 28955 28956 28957fi 28958ac_fn_c_check_type "$LINENO" "u_int32" "ac_cv_type_u_int32" "$ac_includes_default" 28959if test "x$ac_cv_type_u_int32" = xyes; then : 28960 28961cat >>confdefs.h <<_ACEOF 28962#define HAVE_U_INT32 1 28963_ACEOF 28964 28965 28966fi 28967 28968 28969 28970 28971case "$ac_cv_type_int32::$ac_cv_header_resolv_h" in 28972 no::yes) 28973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int32 with DNS headers included" >&5 28974$as_echo_n "checking for int32 with DNS headers included... " >&6; } 28975if ${ntp_cv_type_int32_with_dns+:} false; then : 28976 $as_echo_n "(cached) " >&6 28977else 28978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28979/* end confdefs.h. */ 28980 28981 #ifdef HAVE_ARPA_NAMESER_H 28982 # include <arpa/nameser.h> 28983 #endif 28984 #include <resolv.h> 28985 28986int 28987main () 28988{ 28989 28990 size_t cb = sizeof(int32); 28991 28992 28993 ; 28994 return 0; 28995} 28996_ACEOF 28997if ac_fn_c_try_compile "$LINENO"; then : 28998 ntp_cv_type_int32_with_dns=yes 28999else 29000 ntp_cv_type_int32_with_dns=no 29001 29002fi 29003rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 29004 29005fi 29006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_type_int32_with_dns" >&5 29007$as_echo "$ntp_cv_type_int32_with_dns" >&6; } 29008 case "$ntp_cv_type_int32_with_dns" in 29009 yes) 29010 29011$as_echo "#define HAVE_INT32_ONLY_WITH_DNS 1" >>confdefs.h 29012 29013 esac 29014esac 29015 29016case "$ac_cv_type_u_int32::$ac_cv_header_resolv_h" in 29017 no::yes) 29018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int32 with DNS headers included" >&5 29019$as_echo_n "checking for u_int32 with DNS headers included... " >&6; } 29020if ${ntp_cv_type_u_int32_with_dns+:} false; then : 29021 $as_echo_n "(cached) " >&6 29022else 29023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29024/* end confdefs.h. */ 29025 29026 #ifdef HAVE_ARPA_NAMESER_H 29027 # include <arpa/nameser.h> 29028 #endif 29029 #include <resolv.h> 29030 29031int 29032main () 29033{ 29034 29035 size_t cb = sizeof(u_int32); 29036 29037 29038 ; 29039 return 0; 29040} 29041_ACEOF 29042if ac_fn_c_try_compile "$LINENO"; then : 29043 ntp_cv_type_u_int32_with_dns=yes 29044else 29045 ntp_cv_type_u_int32_with_dns=no 29046 29047fi 29048rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 29049 29050fi 29051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_type_u_int32_with_dns" >&5 29052$as_echo "$ntp_cv_type_u_int32_with_dns" >&6; } 29053 case "$ntp_cv_type_u_int32_with_dns" in 29054 yes) 29055 29056$as_echo "#define HAVE_U_INT32_ONLY_WITH_DNS 1" >>confdefs.h 29057 29058 esac 29059esac 29060 29061for ac_header in sys/timepps.h 29062do : 29063 ac_fn_c_check_header_compile "$LINENO" "sys/timepps.h" "ac_cv_header_sys_timepps_h" " 29064 #ifdef HAVE_SYS_TIME_H 29065 # include <sys/time.h> 29066 #endif 29067 #ifdef HAVE_ERRNO_H 29068 # include <errno.h> 29069 #endif 29070 29071 29072" 29073if test "x$ac_cv_header_sys_timepps_h" = xyes; then : 29074 cat >>confdefs.h <<_ACEOF 29075#define HAVE_SYS_TIMEPPS_H 1 29076_ACEOF 29077 29078fi 29079 29080done 29081 29082 29083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec" >&5 29084$as_echo_n "checking for struct timespec... " >&6; } 29085if ${ntp_cv_struct_timespec+:} false; then : 29086 $as_echo_n "(cached) " >&6 29087else 29088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29089/* end confdefs.h. */ 29090 29091 #include <sys/time.h> 29092 /* Under SunOS, timespec is in sys/timepps.h, 29093 which needs errno.h and FRAC */ 29094 #ifdef HAVE_ERRNO_H 29095 # include <errno.h> 29096 #endif 29097 #ifdef HAVE_SYS_TIMEPPS_H 29098 # define FRAC 4294967296 29099 # include <sys/timepps.h> 29100 #endif 29101 29102int 29103main () 29104{ 29105 29106 struct timespec n; 29107 29108 29109 ; 29110 return 0; 29111} 29112_ACEOF 29113if ac_fn_c_try_compile "$LINENO"; then : 29114 ntp_cv_struct_timespec=yes 29115else 29116 ntp_cv_struct_timespec=no 29117 29118fi 29119rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 29120 29121fi 29122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_timespec" >&5 29123$as_echo "$ntp_cv_struct_timespec" >&6; } 29124case "$ntp_cv_struct_timespec" in 29125 yes) 29126 29127$as_echo "#define HAVE_STRUCT_TIMESPEC 1" >>confdefs.h 29128 29129esac 29130 29131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct ntptimeval" >&5 29132$as_echo_n "checking for struct ntptimeval... " >&6; } 29133if ${ntp_cv_struct_ntptimeval+:} false; then : 29134 $as_echo_n "(cached) " >&6 29135else 29136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29137/* end confdefs.h. */ 29138 29139 #include <sys/time.h> 29140 #include <sys/timex.h> 29141 29142int 29143main () 29144{ 29145 29146 struct ntptimeval n; 29147 29148 29149 ; 29150 return 0; 29151} 29152_ACEOF 29153if ac_fn_c_try_compile "$LINENO"; then : 29154 ntp_cv_struct_ntptimeval=yes 29155else 29156 ntp_cv_struct_ntptimeval=no 29157 29158fi 29159rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 29160 29161fi 29162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_ntptimeval" >&5 29163$as_echo "$ntp_cv_struct_ntptimeval" >&6; } 29164case "$ntp_cv_struct_ntptimeval" in 29165 yes) 29166 29167$as_echo "#define HAVE_STRUCT_NTPTIMEVAL 1" >>confdefs.h 29168 29169esac 29170 29171for ac_header in md5.h 29172do : 29173 ac_fn_c_check_header_compile "$LINENO" "md5.h" "ac_cv_header_md5_h" " 29174 #ifdef HAVE_SYS_TYPES_H 29175 # include <sys/types.h> 29176 #endif 29177 29178 29179" 29180if test "x$ac_cv_header_md5_h" = xyes; then : 29181 cat >>confdefs.h <<_ACEOF 29182#define HAVE_MD5_H 1 29183_ACEOF 29184 29185fi 29186 29187done 29188 29189 29190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing MD5Init" >&5 29191$as_echo_n "checking for library containing MD5Init... " >&6; } 29192if ${ac_cv_search_MD5Init+:} false; then : 29193 $as_echo_n "(cached) " >&6 29194else 29195 ac_func_search_save_LIBS=$LIBS 29196cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29197/* end confdefs.h. */ 29198 29199/* Override any GCC internal prototype to avoid an error. 29200 Use char because int might match the return type of a GCC 29201 builtin and then its argument prototype would still apply. */ 29202#ifdef __cplusplus 29203extern "C" 29204#endif 29205char MD5Init (); 29206int 29207main () 29208{ 29209return MD5Init (); 29210 ; 29211 return 0; 29212} 29213_ACEOF 29214for ac_lib in '' md5 md; do 29215 if test -z "$ac_lib"; then 29216 ac_res="none required" 29217 else 29218 ac_res=-l$ac_lib 29219 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 29220 fi 29221 if ac_fn_c_try_link "$LINENO"; then : 29222 ac_cv_search_MD5Init=$ac_res 29223fi 29224rm -f core conftest.err conftest.$ac_objext \ 29225 conftest$ac_exeext 29226 if ${ac_cv_search_MD5Init+:} false; then : 29227 break 29228fi 29229done 29230if ${ac_cv_search_MD5Init+:} false; then : 29231 29232else 29233 ac_cv_search_MD5Init=no 29234fi 29235rm conftest.$ac_ext 29236LIBS=$ac_func_search_save_LIBS 29237fi 29238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_MD5Init" >&5 29239$as_echo "$ac_cv_search_MD5Init" >&6; } 29240ac_res=$ac_cv_search_MD5Init 29241if test "$ac_res" != no; then : 29242 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 29243 29244fi 29245 29246for ac_func in MD5Init sysconf getdtablesize sigaction sigset sigvec 29247do : 29248 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 29249ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 29250if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 29251 cat >>confdefs.h <<_ACEOF 29252#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 29253_ACEOF 29254 29255fi 29256done 29257 29258 29259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIGIO" >&5 29260$as_echo_n "checking for SIGIO... " >&6; } 29261if ${ntp_cv_hdr_def_sigio+:} false; then : 29262 $as_echo_n "(cached) " >&6 29263else 29264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29265/* end confdefs.h. */ 29266 29267 #include <signal.h> 29268 29269 #ifndef SIGIO 29270 # error 29271 #endif 29272 29273_ACEOF 29274if ac_fn_c_try_cpp "$LINENO"; then : 29275 ntp_cv_hdr_def_sigio=yes 29276else 29277 ntp_cv_hdr_def_sigio=no 29278 29279fi 29280rm -f conftest.err conftest.i conftest.$ac_ext 29281 29282fi 29283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_hdr_def_sigio" >&5 29284$as_echo "$ntp_cv_hdr_def_sigio" >&6; } 29285 29286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to use SIGIO" >&5 29287$as_echo_n "checking if we want to use SIGIO... " >&6; } 29288ans=no 29289case "$ntp_cv_hdr_def_sigio" in 29290 yes) 29291 ans=yes 29292 case "$host" in 29293 alpha*-dec-osf4*|alpha*-dec-osf5*) 29294 ans=no 29295 ;; 29296 *-convex-*) 29297 ans=no 29298 ;; 29299 *-dec-*) 29300 ans=no 29301 ;; 29302 *-pc-cygwin*) 29303 ans=no 29304 ;; 29305 *-sni-sysv*) 29306 ans=no 29307 ;; 29308 *-stratus-vos) 29309 ans=no 29310 ;; 29311 *-univel-sysv*) 29312 ans=no 29313 ;; 29314 *-*-irix6*) 29315 ans=no 29316 ;; 29317 *-*-freebsd*) 29318 ans=no 29319 ;; 29320 *-*-*linux*) 29321 ans=no 29322 ;; 29323 *-*-unicosmp*) 29324 ans=no 29325 ;; 29326 *-*-kfreebsd*) 29327 ans=no 29328 ;; 29329 m68k-*-mint*) 29330 ans=no 29331 ;; 29332 esac 29333 ;; 29334esac 29335case "$ans" in 29336 yes) 29337 29338$as_echo "#define HAVE_SIGNALED_IO 1" >>confdefs.h 29339 29340esac 29341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 29342$as_echo "$ans" >&6; } 29343 29344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIGPOLL" >&5 29345$as_echo_n "checking for SIGPOLL... " >&6; } 29346if ${ntp_cv_hdr_def_sigpoll+:} false; then : 29347 $as_echo_n "(cached) " >&6 29348else 29349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29350/* end confdefs.h. */ 29351 29352 #include <signal.h> 29353 29354 #ifndef SIGPOLL 29355 # error 29356 #endif 29357 29358_ACEOF 29359if ac_fn_c_try_cpp "$LINENO"; then : 29360 ntp_cv_hdr_def_sigpoll=yes 29361else 29362 ntp_cv_hdr_def_sigpoll=no 29363 29364fi 29365rm -f conftest.err conftest.i conftest.$ac_ext 29366 29367fi 29368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_hdr_def_sigpoll" >&5 29369$as_echo "$ntp_cv_hdr_def_sigpoll" >&6; } 29370 29371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can use SIGPOLL for UDP I/O" >&5 29372$as_echo_n "checking if we can use SIGPOLL for UDP I/O... " >&6; } 29373ans=no 29374case "$ntp_cv_hdr_def_sigpoll" in 29375 yes) 29376 case "$host" in 29377 mips-sgi-irix*) 29378 ans=no 29379 ;; 29380 vax-dec-bsd) 29381 ans=no 29382 ;; 29383 *-pc-cygwin*) 29384 ans=no 29385 ;; 29386 *-sni-sysv*) 29387 ans=no 29388 ;; 29389 *-stratus-vos) 29390 ans=no 29391 ;; 29392 *-*-aix[4-9]*) 29393 # XXX Only verified thru AIX6 29394 ans=no 29395 ;; 29396 *-*-hpux*) 29397 ans=no 29398 ;; 29399 *-*-*linux*) 29400 ans=no 29401 ;; 29402 *-*-osf*) 29403 ans=no 29404 ;; 29405 *-*-qnx*) 29406 ans=no 29407 ;; 29408 *-*-sunos*) 29409 ans=no 29410 ;; 29411 *-*-solaris*) 29412 ans=no 29413 ;; 29414 *-*-ultrix*) 29415 ans=no 29416 ;; 29417 *-*-unicosmp*) 29418 ans=no 29419 ;; 29420 *-*-kfreebsd*) 29421 ans=no 29422 ;; 29423 *) ans=yes 29424 ;; 29425 esac 29426 ;; 29427esac 29428case "$ans" in 29429 yes) 29430 29431$as_echo "#define USE_UDP_SIGPOLL 1" >>confdefs.h 29432 29433esac 29434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 29435$as_echo "$ans" >&6; } 29436 29437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can use SIGPOLL for TTY I/O" >&5 29438$as_echo_n "checking if we can use SIGPOLL for TTY I/O... " >&6; } 29439ans=no 29440case "$ntp_cv_hdr_def_sigpoll" in 29441 yes) 29442 case "$host" in 29443 mips-sgi-irix*) 29444 ans=no 29445 ;; 29446 vax-dec-bsd) 29447 ans=no 29448 ;; 29449 *-pc-cygwin*) 29450 ans=no 29451 ;; 29452 *-sni-sysv*) 29453 ans=no 29454 ;; 29455 *-stratus-vos) 29456 ans=no 29457 ;; 29458 *-*-aix[4-9]*) 29459 # XXX Only verified thru AIX6 29460 ans=no 29461 ;; 29462 *-*-hpux*) 29463 ans=no 29464 ;; 29465 *-*-*linux*) 29466 ans=no 29467 ;; 29468 *-*-osf*) 29469 ans=no 29470 ;; 29471 *-*-sunos*) 29472 ans=no 29473 ;; 29474 *-*-ultrix*) 29475 ans=no 29476 ;; 29477 *-*-qnx*) 29478 ans=no 29479 ;; 29480 *-*-unicosmp*) 29481 ans=no 29482 ;; 29483 *-*-kfreebsd*) 29484 ans=no 29485 ;; 29486 *) ans=yes 29487 ;; 29488 esac 29489 ;; 29490esac 29491case "$ans" in 29492 yes) 29493 29494$as_echo "#define USE_TTY_SIGPOLL 1" >>confdefs.h 29495 29496esac 29497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 29498$as_echo "$ans" >&6; } 29499 29500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking number of arguments to gettimeofday()" >&5 29501$as_echo_n "checking number of arguments to gettimeofday()... " >&6; } 29502if ${ntp_cv_func_Xettimeofday_nargs+:} false; then : 29503 $as_echo_n "(cached) " >&6 29504else 29505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29506/* end confdefs.h. */ 29507 29508 #include <sys/time.h> 29509 29510int 29511main () 29512{ 29513 29514 gettimeofday(0, 0); 29515 settimeofday(0, 0); 29516 29517 29518 ; 29519 return 0; 29520} 29521_ACEOF 29522if ac_fn_c_try_compile "$LINENO"; then : 29523 ntp_cv_func_Xettimeofday_nargs=2 29524else 29525 ntp_cv_func_Xettimeofday_nargs=1 29526 29527fi 29528rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 29529 29530fi 29531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_func_Xettimeofday_nargs" >&5 29532$as_echo "$ntp_cv_func_Xettimeofday_nargs" >&6; } 29533case "$ntp_cv_func_Xettimeofday_nargs" in 29534 1) 29535 29536$as_echo "#define SYSV_TIMEOFDAY 1" >>confdefs.h 29537 29538esac 29539 29540for ac_func in settimeofday 29541do : 29542 ac_fn_c_check_func "$LINENO" "settimeofday" "ac_cv_func_settimeofday" 29543if test "x$ac_cv_func_settimeofday" = xyes; then : 29544 cat >>confdefs.h <<_ACEOF 29545#define HAVE_SETTIMEOFDAY 1 29546_ACEOF 29547 29548else 29549 29550 case "$host" in 29551 *-*-mpeix*) ac_cv_func_settimeofday=yes 29552 esac 29553 29554fi 29555done 29556 29557 29558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we'll use clock_settime or settimeofday or stime" >&5 29559$as_echo_n "checking if we'll use clock_settime or settimeofday or stime... " >&6; } 29560ntp_warning='GRONK' 29561ans=none 29562case "$ac_cv_func_clock_settime$ac_cv_func_settimeofday$ac_cv_func_stime" in 29563 yes*) 29564 ntp_warning='' 29565 ans='clock_settime()' 29566 ;; 29567 noyes*) 29568 ntp_warning='But clock_settime() would be better (if we had it)' 29569 ans='settimeofday()' 29570 ;; 29571 nonoyes) 29572 ntp_warning='Which is the worst of the three' 29573 ans='stime()' 29574 ;; 29575 *) 29576 case "$build" in 29577 $host) 29578 ntp_warning='Which leaves us with nothing to use!' 29579 esac 29580esac 29581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 29582$as_echo "$ans" >&6; } 29583case "$ntp_warning" in 29584 '') 29585 ;; 29586 *) 29587 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** $ntp_warning ***" >&5 29588$as_echo "$as_me: WARNING: *** $ntp_warning ***" >&2;} 29589 ;; 29590esac 29591 29592 29593LDADD_LIBNTP="$LDADD_LIBNTP $LIBS" 29594LIBS=$__LIBS 29595{ __LIBS=; unset __LIBS;} 29596 29597 29598 29599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for deprecated --with-arlib" >&5 29600$as_echo_n "checking for deprecated --with-arlib... " >&6; } 29601 29602# Check whether --with-arlib was given. 29603if test "${with_arlib+set}" = set; then : 29604 withval=$with_arlib; ans=$withval 29605else 29606 ans=no 29607fi 29608 29609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 29610$as_echo "$ans" >&6; } 29611 29612case "$ans" in 29613 yes) 29614 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Please do not use --with-arlib, arlib is no longer included. In the future, --with-arlib will not be recognized." >&5 29615$as_echo "$as_me: WARNING: Please do not use --with-arlib, arlib is no longer included. In the future, --with-arlib will not be recognized." >&2;} 29616 ;; 29617esac 29618 29619for ac_prog in gawk mawk nawk awk 29620do 29621 # Extract the first word of "$ac_prog", so it can be a program name with args. 29622set dummy $ac_prog; ac_word=$2 29623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 29624$as_echo_n "checking for $ac_word... " >&6; } 29625if ${ac_cv_prog_AWK+:} false; then : 29626 $as_echo_n "(cached) " >&6 29627else 29628 if test -n "$AWK"; then 29629 ac_cv_prog_AWK="$AWK" # Let the user override the test. 29630else 29631as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 29632for as_dir in $PATH 29633do 29634 IFS=$as_save_IFS 29635 test -z "$as_dir" && as_dir=. 29636 for ac_exec_ext in '' $ac_executable_extensions; do 29637 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 29638 ac_cv_prog_AWK="$ac_prog" 29639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 29640 break 2 29641 fi 29642done 29643 done 29644IFS=$as_save_IFS 29645 29646fi 29647fi 29648AWK=$ac_cv_prog_AWK 29649if test -n "$AWK"; then 29650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 29651$as_echo "$AWK" >&6; } 29652else 29653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29654$as_echo "no" >&6; } 29655fi 29656 29657 29658 test -n "$AWK" && break 29659done 29660 29661{ ac_cv_prog_AWK=; unset ac_cv_prog_AWK;} 29662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 29663$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 29664set x ${MAKE-make} 29665ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 29666if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 29667 $as_echo_n "(cached) " >&6 29668else 29669 cat >conftest.make <<\_ACEOF 29670SHELL = /bin/sh 29671all: 29672 @echo '@@@%%%=$(MAKE)=@@@%%%' 29673_ACEOF 29674# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 29675case `${MAKE-make} -f conftest.make 2>/dev/null` in 29676 *@@@%%%=?*=@@@%%%*) 29677 eval ac_cv_prog_make_${ac_make}_set=yes;; 29678 *) 29679 eval ac_cv_prog_make_${ac_make}_set=no;; 29680esac 29681rm -f conftest.make 29682fi 29683if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 29684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29685$as_echo "yes" >&6; } 29686 SET_MAKE= 29687else 29688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29689$as_echo "no" >&6; } 29690 SET_MAKE="MAKE=${MAKE-make}" 29691fi 29692 29693 29694 29695 29696 29697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 29698$as_echo_n "checking whether ln -s works... " >&6; } 29699LN_S=$as_ln_s 29700if test "$LN_S" = "ln -s"; then 29701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29702$as_echo "yes" >&6; } 29703else 29704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 29705$as_echo "no, using $LN_S" >&6; } 29706fi 29707 29708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5 29709$as_echo_n "checking for library containing strerror... " >&6; } 29710if ${ac_cv_search_strerror+:} false; then : 29711 $as_echo_n "(cached) " >&6 29712else 29713 ac_func_search_save_LIBS=$LIBS 29714cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29715/* end confdefs.h. */ 29716 29717/* Override any GCC internal prototype to avoid an error. 29718 Use char because int might match the return type of a GCC 29719 builtin and then its argument prototype would still apply. */ 29720#ifdef __cplusplus 29721extern "C" 29722#endif 29723char strerror (); 29724int 29725main () 29726{ 29727return strerror (); 29728 ; 29729 return 0; 29730} 29731_ACEOF 29732for ac_lib in '' cposix; do 29733 if test -z "$ac_lib"; then 29734 ac_res="none required" 29735 else 29736 ac_res=-l$ac_lib 29737 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 29738 fi 29739 if ac_fn_c_try_link "$LINENO"; then : 29740 ac_cv_search_strerror=$ac_res 29741fi 29742rm -f core conftest.err conftest.$ac_objext \ 29743 conftest$ac_exeext 29744 if ${ac_cv_search_strerror+:} false; then : 29745 break 29746fi 29747done 29748if ${ac_cv_search_strerror+:} false; then : 29749 29750else 29751 ac_cv_search_strerror=no 29752fi 29753rm conftest.$ac_ext 29754LIBS=$ac_func_search_save_LIBS 29755fi 29756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5 29757$as_echo "$ac_cv_search_strerror" >&6; } 29758ac_res=$ac_cv_search_strerror 29759if test "$ac_res" != no; then : 29760 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 29761 29762fi 29763 29764 29765 29766# Extract the first word of "perl", so it can be a program name with args. 29767set dummy perl; ac_word=$2 29768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 29769$as_echo_n "checking for $ac_word... " >&6; } 29770if ${ac_cv_path_PATH_PERL+:} false; then : 29771 $as_echo_n "(cached) " >&6 29772else 29773 case $PATH_PERL in 29774 [\\/]* | ?:[\\/]*) 29775 ac_cv_path_PATH_PERL="$PATH_PERL" # Let the user override the test with a path. 29776 ;; 29777 *) 29778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 29779for as_dir in $PATH 29780do 29781 IFS=$as_save_IFS 29782 test -z "$as_dir" && as_dir=. 29783 for ac_exec_ext in '' $ac_executable_extensions; do 29784 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 29785 ac_cv_path_PATH_PERL="$as_dir/$ac_word$ac_exec_ext" 29786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 29787 break 2 29788 fi 29789done 29790 done 29791IFS=$as_save_IFS 29792 29793 ;; 29794esac 29795fi 29796PATH_PERL=$ac_cv_path_PATH_PERL 29797if test -n "$PATH_PERL"; then 29798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_PERL" >&5 29799$as_echo "$PATH_PERL" >&6; } 29800else 29801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29802$as_echo "no" >&6; } 29803fi 29804 29805 29806{ ac_cv_path_PATH_PERL=; unset ac_cv_path_PATH_PERL;} 29807# Extract the first word of "test", so it can be a program name with args. 29808set dummy test; ac_word=$2 29809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 29810$as_echo_n "checking for $ac_word... " >&6; } 29811if ${ac_cv_path_PATH_TEST+:} false; then : 29812 $as_echo_n "(cached) " >&6 29813else 29814 case $PATH_TEST in 29815 [\\/]* | ?:[\\/]*) 29816 ac_cv_path_PATH_TEST="$PATH_TEST" # Let the user override the test with a path. 29817 ;; 29818 *) 29819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 29820for as_dir in $PATH 29821do 29822 IFS=$as_save_IFS 29823 test -z "$as_dir" && as_dir=. 29824 for ac_exec_ext in '' $ac_executable_extensions; do 29825 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 29826 ac_cv_path_PATH_TEST="$as_dir/$ac_word$ac_exec_ext" 29827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 29828 break 2 29829 fi 29830done 29831 done 29832IFS=$as_save_IFS 29833 29834 ;; 29835esac 29836fi 29837PATH_TEST=$ac_cv_path_PATH_TEST 29838if test -n "$PATH_TEST"; then 29839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_TEST" >&5 29840$as_echo "$PATH_TEST" >&6; } 29841else 29842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29843$as_echo "no" >&6; } 29844fi 29845 29846 29847{ ac_cv_path_PATH_TEST=; unset ac_cv_path_PATH_TEST;} 29848test -z "$CONFIG_SHELL" && CONFIG_SHELL=/bin/sh 29849 29850 29851# Check whether --with-net-snmp-config was given. 29852if test "${with_net_snmp_config+set}" = set; then : 29853 withval=$with_net_snmp_config; ans=$withval 29854else 29855 ans=yes 29856 29857fi 29858 29859case "$ans" in 29860 no) 29861 ;; 29862 yes) 29863 ans=net-snmp-config 29864 ;; 29865 /*) 29866 ;; 29867 */*) 29868 as_fn_error $? "--with-net-snmp-config takes either a name or an absolute path" "$LINENO" 5 29869 ;; 29870 *) 29871 ;; 29872esac 29873PROG_NET_SNMP_CONFIG=$ans 29874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for net-snmp-config path" >&5 29875$as_echo_n "checking for net-snmp-config path... " >&6; } 29876case "$PROG_NET_SNMP_CONFIG" in 29877 no) ;; 29878 /*) 29879 PATH_NET_SNMP_CONFIG=$PROG_NET_SNMP_CONFIG 29880 ;; 29881 *) 29882 # Extract the first word of "$PROG_NET_SNMP_CONFIG", so it can be a program name with args. 29883set dummy $PROG_NET_SNMP_CONFIG; ac_word=$2 29884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 29885$as_echo_n "checking for $ac_word... " >&6; } 29886if ${ac_cv_path_PATH_NET_SNMP_CONFIG+:} false; then : 29887 $as_echo_n "(cached) " >&6 29888else 29889 case $PATH_NET_SNMP_CONFIG in 29890 [\\/]* | ?:[\\/]*) 29891 ac_cv_path_PATH_NET_SNMP_CONFIG="$PATH_NET_SNMP_CONFIG" # Let the user override the test with a path. 29892 ;; 29893 *) 29894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 29895for as_dir in $PATH 29896do 29897 IFS=$as_save_IFS 29898 test -z "$as_dir" && as_dir=. 29899 for ac_exec_ext in '' $ac_executable_extensions; do 29900 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 29901 ac_cv_path_PATH_NET_SNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext" 29902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 29903 break 2 29904 fi 29905done 29906 done 29907IFS=$as_save_IFS 29908 29909 ;; 29910esac 29911fi 29912PATH_NET_SNMP_CONFIG=$ac_cv_path_PATH_NET_SNMP_CONFIG 29913if test -n "$PATH_NET_SNMP_CONFIG"; then 29914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_NET_SNMP_CONFIG" >&5 29915$as_echo "$PATH_NET_SNMP_CONFIG" >&6; } 29916else 29917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29918$as_echo "no" >&6; } 29919fi 29920 29921 29922 { ac_cv_path_PATH_NET_SNMP_CONFIG=; unset ac_cv_path_PATH_NET_SNMP_CONFIG;} 29923;; 29924esac 29925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_NET_SNMP_CONFIG" >&5 29926$as_echo "$PATH_NET_SNMP_CONFIG" >&6; } 29927 29928case "$PATH_NET_SNMP_CONFIG" in 29929 /*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for net-snmp version" >&5 29930$as_echo_n "checking for net-snmp version... " >&6; } 29931if ${ntp_cv_net_snmp_version+:} false; then : 29932 $as_echo_n "(cached) " >&6 29933else 29934 ntp_cv_net_snmp_version=`$PATH_NET_SNMP_CONFIG --version` 29935 29936fi 29937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_net_snmp_version" >&5 29938$as_echo "$ntp_cv_net_snmp_version" >&6; } 29939 ;; 29940esac 29941 29942case "$host" in 29943 *-*-vxworks*) 29944 ac_link="$ac_link $VX_KERNEL" 29945 ;; 29946esac 29947 29948# HMS: a check for -lnsl used to be here - now being done in NTP_LIBNTP 29949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing openlog" >&5 29950$as_echo_n "checking for library containing openlog... " >&6; } 29951if ${ac_cv_search_openlog+:} false; then : 29952 $as_echo_n "(cached) " >&6 29953else 29954 ac_func_search_save_LIBS=$LIBS 29955cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29956/* end confdefs.h. */ 29957 29958/* Override any GCC internal prototype to avoid an error. 29959 Use char because int might match the return type of a GCC 29960 builtin and then its argument prototype would still apply. */ 29961#ifdef __cplusplus 29962extern "C" 29963#endif 29964char openlog (); 29965int 29966main () 29967{ 29968return openlog (); 29969 ; 29970 return 0; 29971} 29972_ACEOF 29973for ac_lib in '' gen syslog; do 29974 if test -z "$ac_lib"; then 29975 ac_res="none required" 29976 else 29977 ac_res=-l$ac_lib 29978 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 29979 fi 29980 if ac_fn_c_try_link "$LINENO"; then : 29981 ac_cv_search_openlog=$ac_res 29982fi 29983rm -f core conftest.err conftest.$ac_objext \ 29984 conftest$ac_exeext 29985 if ${ac_cv_search_openlog+:} false; then : 29986 break 29987fi 29988done 29989if ${ac_cv_search_openlog+:} false; then : 29990 29991else 29992 ac_cv_search_openlog=no 29993fi 29994rm conftest.$ac_ext 29995LIBS=$ac_func_search_save_LIBS 29996fi 29997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_openlog" >&5 29998$as_echo "$ac_cv_search_openlog" >&6; } 29999ac_res=$ac_cv_search_openlog 30000if test "$ac_res" != no; then : 30001 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 30002 30003fi 30004 30005# XXX library list will be in ac_cv_search_openlog 30006 30007# LIBSECCOMP is off by default -- needs testing with all the features 30008# Please send bug reports to loganaden@gmail.com 30009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to use libseccomp sandboxing (EXPERIMENTAL)" >&5 30010$as_echo_n "checking if we want to use libseccomp sandboxing (EXPERIMENTAL)... " >&6; } 30011# Check whether --enable-libseccomp was given. 30012if test "${enable_libseccomp+set}" = set; then : 30013 enableval=$enable_libseccomp; ntp_ok=$enableval 30014else 30015 ntp_ok=no 30016 30017fi 30018 30019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 30020$as_echo "$ntp_ok" >&6; } 30021case "$ntp_ok" in 30022 yes) 30023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing seccomp_init" >&5 30024$as_echo_n "checking for library containing seccomp_init... " >&6; } 30025if ${ac_cv_search_seccomp_init+:} false; then : 30026 $as_echo_n "(cached) " >&6 30027else 30028 ac_func_search_save_LIBS=$LIBS 30029cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30030/* end confdefs.h. */ 30031 30032/* Override any GCC internal prototype to avoid an error. 30033 Use char because int might match the return type of a GCC 30034 builtin and then its argument prototype would still apply. */ 30035#ifdef __cplusplus 30036extern "C" 30037#endif 30038char seccomp_init (); 30039int 30040main () 30041{ 30042return seccomp_init (); 30043 ; 30044 return 0; 30045} 30046_ACEOF 30047for ac_lib in '' seccomp; do 30048 if test -z "$ac_lib"; then 30049 ac_res="none required" 30050 else 30051 ac_res=-l$ac_lib 30052 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 30053 fi 30054 if ac_fn_c_try_link "$LINENO"; then : 30055 ac_cv_search_seccomp_init=$ac_res 30056fi 30057rm -f core conftest.err conftest.$ac_objext \ 30058 conftest$ac_exeext 30059 if ${ac_cv_search_seccomp_init+:} false; then : 30060 break 30061fi 30062done 30063if ${ac_cv_search_seccomp_init+:} false; then : 30064 30065else 30066 ac_cv_search_seccomp_init=no 30067fi 30068rm conftest.$ac_ext 30069LIBS=$ac_func_search_save_LIBS 30070fi 30071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_seccomp_init" >&5 30072$as_echo "$ac_cv_search_seccomp_init" >&6; } 30073ac_res=$ac_cv_search_seccomp_init 30074if test "$ac_res" != no; then : 30075 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 30076 30077$as_echo "#define LIBSECCOMP 1" >>confdefs.h 30078 30079 30080fi 30081 30082 if test "$cross_compiling" = yes; then : 30083 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 30084$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 30085as_fn_error $? "cannot run test program while cross compiling 30086See \`config.log' for more details" "$LINENO" 5; } 30087else 30088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30089/* end confdefs.h. */ 30090 30091 #include <stdio.h> 30092 #include <stdlib.h> 30093 #include <errno.h> 30094 #include <sys/prctl.h> 30095 #include <linux/seccomp.h> 30096 30097 int main(void) 30098 { 30099 int ret; 30100 ret = prctl(PR_GET_SECCOMP, 0, 0, 0, 0); 30101 if (ret < 0) { 30102 switch (errno) { 30103 case ENOSYS: 30104 return 1; 30105 case EINVAL: 30106 return 1; 30107 default: 30108 return 1; 30109 } 30110 } 30111 ret = 30112 prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, NULL, 0, 0); 30113 if (ret < 0) { 30114 switch (errno) { 30115 case EINVAL: 30116 return 1; 30117 case EFAULT: 30118 return 0; 30119 default: 30120 return 1; 30121 } 30122 } 30123return 1; 30124} 30125 30126 30127_ACEOF 30128if ac_fn_c_try_run "$LINENO"; then : 30129 30130$as_echo "#define KERN_SECCOMP 1" >>confdefs.h 30131 30132 30133fi 30134rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 30135 conftest.$ac_objext conftest.beam conftest.$ac_ext 30136fi 30137 30138 ;; 30139esac 30140 30141 30142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for facilitynames in syslog.h" >&5 30143$as_echo_n "checking for facilitynames in syslog.h... " >&6; } 30144if ${ac_cv_HAVE_SYSLOG_FACILITYNAMES+:} false; then : 30145 $as_echo_n "(cached) " >&6 30146else 30147 30148cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30149/* end confdefs.h. */ 30150 30151#define SYSLOG_NAMES 30152#include <stdlib.h> 30153#include <syslog.h> 30154 30155int 30156main () 30157{ 30158 void *fnames; fnames = facilitynames; 30159 ; 30160 return 0; 30161} 30162_ACEOF 30163if ac_fn_c_try_compile "$LINENO"; then : 30164 ac_cv_HAVE_SYSLOG_FACILITYNAMES=yes 30165else 30166 ac_cv_HAVE_SYSLOG_FACILITYNAMES=no 30167fi 30168rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 30169fi 30170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_HAVE_SYSLOG_FACILITYNAMES" >&5 30171$as_echo "$ac_cv_HAVE_SYSLOG_FACILITYNAMES" >&6; } 30172case "$ac_cv_HAVE_SYSLOG_FACILITYNAMES" in 30173 yes) 30174 30175$as_echo "#define HAVE_SYSLOG_FACILITYNAMES 1" >>confdefs.h 30176 30177 ;; 30178 no) 30179 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No facilitynames in <syslog.h>" >&5 30180$as_echo "$as_me: WARNING: No facilitynames in <syslog.h>" >&2;} 30181 ;; 30182 cross) 30183 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: facilitynames in <syslog.h> - cross-compiling" >&5 30184$as_echo "$as_me: WARNING: facilitynames in <syslog.h> - cross-compiling" >&2;} 30185 ;; 30186esac 30187 30188 30189 30190case "$host" in 30191 *-*-*linux*) ;; 30192 *-*-osf4*) ;; 30193 *-*-osf5*) ;; 30194 *) 30195 # HMS: Make sure we check for -lrt for clock_* before this... 30196 case "$ac_cv_search_clock_gettime" in 30197 '') as_fn_error $? "Internal Error: Haven't looked for clock_gettime() yet!" "$LINENO" 5 ;; 30198 esac 30199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sched_setscheduler" >&5 30200$as_echo_n "checking for library containing sched_setscheduler... " >&6; } 30201if ${ac_cv_search_sched_setscheduler+:} false; then : 30202 $as_echo_n "(cached) " >&6 30203else 30204 ac_func_search_save_LIBS=$LIBS 30205cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30206/* end confdefs.h. */ 30207 30208/* Override any GCC internal prototype to avoid an error. 30209 Use char because int might match the return type of a GCC 30210 builtin and then its argument prototype would still apply. */ 30211#ifdef __cplusplus 30212extern "C" 30213#endif 30214char sched_setscheduler (); 30215int 30216main () 30217{ 30218return sched_setscheduler (); 30219 ; 30220 return 0; 30221} 30222_ACEOF 30223for ac_lib in '' rt posix4; do 30224 if test -z "$ac_lib"; then 30225 ac_res="none required" 30226 else 30227 ac_res=-l$ac_lib 30228 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 30229 fi 30230 if ac_fn_c_try_link "$LINENO"; then : 30231 ac_cv_search_sched_setscheduler=$ac_res 30232fi 30233rm -f core conftest.err conftest.$ac_objext \ 30234 conftest$ac_exeext 30235 if ${ac_cv_search_sched_setscheduler+:} false; then : 30236 break 30237fi 30238done 30239if ${ac_cv_search_sched_setscheduler+:} false; then : 30240 30241else 30242 ac_cv_search_sched_setscheduler=no 30243fi 30244rm conftest.$ac_ext 30245LIBS=$ac_func_search_save_LIBS 30246fi 30247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sched_setscheduler" >&5 30248$as_echo "$ac_cv_search_sched_setscheduler" >&6; } 30249ac_res=$ac_cv_search_sched_setscheduler 30250if test "$ac_res" != no; then : 30251 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 30252 30253fi 30254 30255 ;; 30256esac 30257 30258for ac_header in bstring.h 30259do : 30260 ac_fn_c_check_header_mongrel "$LINENO" "bstring.h" "ac_cv_header_bstring_h" "$ac_includes_default" 30261if test "x$ac_cv_header_bstring_h" = xyes; then : 30262 cat >>confdefs.h <<_ACEOF 30263#define HAVE_BSTRING_H 1 30264_ACEOF 30265 30266fi 30267 30268done 30269 30270ac_fn_c_check_header_mongrel "$LINENO" "dns_sd.h" "ac_cv_header_dns_sd_h" "$ac_includes_default" 30271if test "x$ac_cv_header_dns_sd_h" = xyes; then : 30272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing DNSServiceRegister" >&5 30273$as_echo_n "checking for library containing DNSServiceRegister... " >&6; } 30274if ${ac_cv_search_DNSServiceRegister+:} false; then : 30275 $as_echo_n "(cached) " >&6 30276else 30277 ac_func_search_save_LIBS=$LIBS 30278cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30279/* end confdefs.h. */ 30280 30281/* Override any GCC internal prototype to avoid an error. 30282 Use char because int might match the return type of a GCC 30283 builtin and then its argument prototype would still apply. */ 30284#ifdef __cplusplus 30285extern "C" 30286#endif 30287char DNSServiceRegister (); 30288int 30289main () 30290{ 30291return DNSServiceRegister (); 30292 ; 30293 return 0; 30294} 30295_ACEOF 30296for ac_lib in '' dns_sd; do 30297 if test -z "$ac_lib"; then 30298 ac_res="none required" 30299 else 30300 ac_res=-l$ac_lib 30301 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 30302 fi 30303 if ac_fn_c_try_link "$LINENO"; then : 30304 ac_cv_search_DNSServiceRegister=$ac_res 30305fi 30306rm -f core conftest.err conftest.$ac_objext \ 30307 conftest$ac_exeext 30308 if ${ac_cv_search_DNSServiceRegister+:} false; then : 30309 break 30310fi 30311done 30312if ${ac_cv_search_DNSServiceRegister+:} false; then : 30313 30314else 30315 ac_cv_search_DNSServiceRegister=no 30316fi 30317rm conftest.$ac_ext 30318LIBS=$ac_func_search_save_LIBS 30319fi 30320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_DNSServiceRegister" >&5 30321$as_echo "$ac_cv_search_DNSServiceRegister" >&6; } 30322ac_res=$ac_cv_search_DNSServiceRegister 30323if test "$ac_res" != no; then : 30324 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 30325 30326$as_echo "#define HAVE_DNSREGISTRATION 1" >>confdefs.h 30327 30328 30329fi 30330 30331 30332fi 30333 30334 30335for ac_header in fcntl.h fnmatch.h ieeefp.h inttypes.h kvm.h math.h 30336do : 30337 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 30338ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 30339if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 30340 cat >>confdefs.h <<_ACEOF 30341#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 30342_ACEOF 30343 30344fi 30345 30346done 30347 30348 30349for ac_header in memory.h netdb.h poll.h 30350do : 30351 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 30352ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 30353if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 30354 cat >>confdefs.h <<_ACEOF 30355#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 30356_ACEOF 30357 30358fi 30359 30360done 30361 30362for ac_header in sgtty.h stdatomic.h stdlib.h string.h termio.h 30363do : 30364 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 30365ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 30366if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 30367 cat >>confdefs.h <<_ACEOF 30368#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 30369_ACEOF 30370 30371fi 30372 30373done 30374 30375for ac_header in termios.h timepps.h timex.h unistd.h 30376do : 30377 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 30378ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 30379if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 30380 cat >>confdefs.h <<_ACEOF 30381#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 30382_ACEOF 30383 30384fi 30385 30386done 30387 30388 30389case "$host" in 30390 *-*-aix*) 30391 for ac_header in utmpx.h 30392do : 30393 ac_fn_c_check_header_mongrel "$LINENO" "utmpx.h" "ac_cv_header_utmpx_h" "$ac_includes_default" 30394if test "x$ac_cv_header_utmpx_h" = xyes; then : 30395 cat >>confdefs.h <<_ACEOF 30396#define HAVE_UTMPX_H 1 30397_ACEOF 30398 30399fi 30400 30401done 30402 30403 case "$ac_cv_header_utmpx_h" in 30404 yes) 30405 ;; 30406 *) 30407 for ac_header in utmp.h 30408do : 30409 ac_fn_c_check_header_mongrel "$LINENO" "utmp.h" "ac_cv_header_utmp_h" "$ac_includes_default" 30410if test "x$ac_cv_header_utmp_h" = xyes; then : 30411 cat >>confdefs.h <<_ACEOF 30412#define HAVE_UTMP_H 1 30413_ACEOF 30414 30415fi 30416 30417done 30418 30419 ;; 30420 esac 30421 ;; 30422 *) 30423 for ac_header in utmp.h utmpx.h 30424do : 30425 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 30426ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 30427if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 30428 cat >>confdefs.h <<_ACEOF 30429#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 30430_ACEOF 30431 30432fi 30433 30434done 30435 30436 ;; 30437esac 30438 30439# 30440# On Suns only (so far) getpass() truncates the typed password to 8 30441# characters, but getpassphrase() allows up to 257. Most systems' 30442# getpass() does not truncate, at least not so as to affect ntpq and 30443# ntpdc password prompts. 30444# 30445# So check for getpassphrase(), but only on Sun operating systems. 30446# 30447case "$host" in 30448 *-*-sunos*|*-*-solaris*) 30449 for ac_func in getpassphrase 30450do : 30451 ac_fn_c_check_func "$LINENO" "getpassphrase" "ac_cv_func_getpassphrase" 30452if test "x$ac_cv_func_getpassphrase" = xyes; then : 30453 cat >>confdefs.h <<_ACEOF 30454#define HAVE_GETPASSPHRASE 1 30455_ACEOF 30456 30457fi 30458done 30459 30460esac 30461 30462 30463for ac_header in net/if6.h 30464do : 30465 ac_fn_c_check_header_mongrel "$LINENO" "net/if6.h" "ac_cv_header_net_if6_h" "$ac_includes_default" 30466if test "x$ac_cv_header_net_if6_h" = xyes; then : 30467 cat >>confdefs.h <<_ACEOF 30468#define HAVE_NET_IF6_H 1 30469_ACEOF 30470 30471fi 30472 30473done 30474 30475for ac_header in net/route.h 30476do : 30477 ac_fn_c_check_header_compile "$LINENO" "net/route.h" "ac_cv_header_net_route_h" " 30478 #include <sys/types.h> 30479 #include <sys/socket.h> 30480 #include <net/if.h> 30481 30482" 30483if test "x$ac_cv_header_net_route_h" = xyes; then : 30484 cat >>confdefs.h <<_ACEOF 30485#define HAVE_NET_ROUTE_H 1 30486_ACEOF 30487 30488fi 30489 30490done 30491 30492 30493for ac_header in netinfo/ni.h 30494do : 30495 ac_fn_c_check_header_mongrel "$LINENO" "netinfo/ni.h" "ac_cv_header_netinfo_ni_h" "$ac_includes_default" 30496if test "x$ac_cv_header_netinfo_ni_h" = xyes; then : 30497 cat >>confdefs.h <<_ACEOF 30498#define HAVE_NETINFO_NI_H 1 30499_ACEOF 30500 30501fi 30502 30503done 30504 30505case "$ac_cv_header_netinfo_ni_h" in 30506 yes) 30507 30508$as_echo "#define HAVE_NETINFO 1" >>confdefs.h 30509 30510esac 30511for ac_header in sun/audioio.h sys/audioio.h sys/file.h 30512do : 30513 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 30514ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 30515if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 30516 cat >>confdefs.h <<_ACEOF 30517#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 30518_ACEOF 30519 30520fi 30521 30522done 30523 30524case "$host" in 30525 *-*-sunos4*) 30526 ;; 30527 *) 30528 for ac_header in sys/ioctl.h 30529do : 30530 ac_fn_c_check_header_mongrel "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default" 30531if test "x$ac_cv_header_sys_ioctl_h" = xyes; then : 30532 cat >>confdefs.h <<_ACEOF 30533#define HAVE_SYS_IOCTL_H 1 30534_ACEOF 30535 30536fi 30537 30538done 30539 30540 ;; 30541esac 30542for ac_header in sys/ipc.h sys/lock.h sys/mman.h 30543do : 30544 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 30545ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 30546if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 30547 cat >>confdefs.h <<_ACEOF 30548#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 30549_ACEOF 30550 30551fi 30552 30553done 30554 30555# HMS: Check sys/proc.h and sys/resource.h after some others 30556for ac_header in sys/modem.h sys/ppsclock.h sys/ppstime.h sched.h 30557do : 30558 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 30559ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 30560if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 30561 cat >>confdefs.h <<_ACEOF 30562#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 30563_ACEOF 30564 30565fi 30566 30567done 30568 30569case "$ac_cv_header_sched_h" in 30570 yes) 30571 ;; 30572 *) 30573 for ac_header in sys/sched.h 30574do : 30575 ac_fn_c_check_header_mongrel "$LINENO" "sys/sched.h" "ac_cv_header_sys_sched_h" "$ac_includes_default" 30576if test "x$ac_cv_header_sys_sched_h" = xyes; then : 30577 cat >>confdefs.h <<_ACEOF 30578#define HAVE_SYS_SCHED_H 1 30579_ACEOF 30580 30581fi 30582 30583done 30584 30585 ;; 30586esac 30587# HMS: Check sys/shm.h after some others 30588for ac_header in sys/select.h sys/signal.h sys/sockio.h 30589do : 30590 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 30591ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 30592if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 30593 cat >>confdefs.h <<_ACEOF 30594#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 30595_ACEOF 30596 30597fi 30598 30599done 30600 30601# HMS: Checked sys/socket.h earlier 30602case "$host" in 30603 *-*-netbsd*) 30604 ;; 30605 *) 30606 for ac_header in machine/soundcard.h sys/soundcard.h 30607do : 30608 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 30609ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 30610if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 30611 cat >>confdefs.h <<_ACEOF 30612#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 30613_ACEOF 30614 30615fi 30616 30617done 30618 30619 ;; 30620esac 30621for ac_header in sys/stat.h sys/stream.h stropts.h sys/stropts.h sys/syssgi.h 30622do : 30623 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 30624ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 30625if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 30626 cat >>confdefs.h <<_ACEOF 30627#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 30628_ACEOF 30629 30630fi 30631 30632done 30633 30634for ac_header in sys/systune.h sys/termios.h sys/tpro.h sys/wait.h 30635do : 30636 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 30637ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 30638if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 30639 cat >>confdefs.h <<_ACEOF 30640#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 30641_ACEOF 30642 30643fi 30644 30645done 30646 30647case "$host" in 30648*-convex-*) 30649 for ac_header in /sys/sync/queue.h /sys/sync/sema.h 30650do : 30651 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 30652ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 30653if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 30654 cat >>confdefs.h <<_ACEOF 30655#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 30656_ACEOF 30657 30658fi 30659 30660done 30661 30662 ;; 30663*-*-bsdi*) 30664 for ac_header in machine/inline.h sys/pcl720.h sys/i8253.h 30665do : 30666 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 30667ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 30668if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 30669 cat >>confdefs.h <<_ACEOF 30670#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 30671_ACEOF 30672 30673fi 30674 30675done 30676 30677 ;; 30678esac 30679 30680case "$ac_cv_header_stdatomic_h" in 30681 yes) 30682 for ac_func in atomic_thread_fence 30683do : 30684 ac_fn_c_check_func "$LINENO" "atomic_thread_fence" "ac_cv_func_atomic_thread_fence" 30685if test "x$ac_cv_func_atomic_thread_fence" = xyes; then : 30686 cat >>confdefs.h <<_ACEOF 30687#define HAVE_ATOMIC_THREAD_FENCE 1 30688_ACEOF 30689 30690fi 30691done 30692 30693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic_thread_fence()" >&5 30694$as_echo_n "checking for atomic_thread_fence()... " >&6; } 30695if ${ntp_cv_func_atomic_thread_fence+:} false; then : 30696 $as_echo_n "(cached) " >&6 30697else 30698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30699/* end confdefs.h. */ 30700 30701 #include <stdatomic.h> 30702 30703int 30704main () 30705{ 30706 30707 atomic_thread_fence(memory_order_seq_cst); 30708 30709 30710 ; 30711 return 0; 30712} 30713 ntp_cv_func_atomic_thread_fence=yes 30714_ACEOF 30715if ac_fn_c_try_compile "$LINENO"; then : 30716 ntp_cv_func_atomic_thread_fence=no 30717 30718fi 30719rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 30720 30721fi 30722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_func_atomic_thread_fence" >&5 30723$as_echo "$ntp_cv_func_atomic_thread_fence" >&6; } 30724 ;; 30725esac 30726 30727case "$host" in 30728 *-*-solaris2.6) 30729 # Broken... 30730 ;; 30731 *) 30732 for ac_func in ntp_adjtime ntp_gettime 30733do : 30734 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 30735ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 30736if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 30737 cat >>confdefs.h <<_ACEOF 30738#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 30739_ACEOF 30740 30741fi 30742done 30743 30744 ;; 30745esac 30746 30747case "$host" in 30748 *-*-*linux*) 30749 case "$ac_cv_func_ntp_gettime" in 30750 yes) 30751 ;; 30752 *) 30753 for ac_func in __ntp_gettime 30754do : 30755 ac_fn_c_check_func "$LINENO" "__ntp_gettime" "ac_cv_func___ntp_gettime" 30756if test "x$ac_cv_func___ntp_gettime" = xyes; then : 30757 cat >>confdefs.h <<_ACEOF 30758#define HAVE___NTP_GETTIME 1 30759_ACEOF 30760 30761fi 30762done 30763 30764 case "$ac_cv_func___ntp_gettime" in 30765 yes) 30766 30767$as_echo "#define ntp_gettime __ntp_gettime" >>confdefs.h 30768 30769 30770$as_echo "#define HAVE_NTP_GETTIME 1" >>confdefs.h 30771 30772 esac 30773 ;; 30774 esac 30775 for ac_func in adjtimex 30776do : 30777 ac_fn_c_check_func "$LINENO" "adjtimex" "ac_cv_func_adjtimex" 30778if test "x$ac_cv_func_adjtimex" = xyes; then : 30779 cat >>confdefs.h <<_ACEOF 30780#define HAVE_ADJTIMEX 1 30781_ACEOF 30782 30783fi 30784done 30785 30786 case "$ac_cv_func_adjtimex" in 30787 yes) 30788 30789$as_echo "#define ntp_adjtime adjtimex" >>confdefs.h 30790 30791 30792$as_echo "#define HAVE_NTP_ADJTIME 1" >>confdefs.h 30793 30794 have_adjtimex=1 30795 ;; 30796 *) 30797 for ac_func in __adjtimex 30798do : 30799 ac_fn_c_check_func "$LINENO" "__adjtimex" "ac_cv_func___adjtimex" 30800if test "x$ac_cv_func___adjtimex" = xyes; then : 30801 cat >>confdefs.h <<_ACEOF 30802#define HAVE___ADJTIMEX 1 30803_ACEOF 30804 30805fi 30806done 30807 30808 case "$ac_cv_func___adjtimex" in 30809 yes) 30810 30811$as_echo "#define ntp_adjtime __adjtimex" >>confdefs.h 30812 30813 30814$as_echo "#define HAVE_NTP_ADJTIME 1" >>confdefs.h 30815 30816 30817$as_echo "#define adjtimex __adjtimex" >>confdefs.h 30818 30819 30820$as_echo "#define HAVE_ADJTIMEX 1" >>confdefs.h 30821 30822 have_adjtimex=1 30823 esac 30824 ;; 30825 esac 30826esac 30827case "$have_adjtimex" in 30828 '') 30829 # nlist stuff is only needed for tickadj. 30830 saved_LIBS="$LIBS" 30831 LIBS= 30832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nlist" >&5 30833$as_echo_n "checking for library containing nlist... " >&6; } 30834if ${ac_cv_search_nlist+:} false; then : 30835 $as_echo_n "(cached) " >&6 30836else 30837 ac_func_search_save_LIBS=$LIBS 30838cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30839/* end confdefs.h. */ 30840 30841/* Override any GCC internal prototype to avoid an error. 30842 Use char because int might match the return type of a GCC 30843 builtin and then its argument prototype would still apply. */ 30844#ifdef __cplusplus 30845extern "C" 30846#endif 30847char nlist (); 30848int 30849main () 30850{ 30851return nlist (); 30852 ; 30853 return 0; 30854} 30855_ACEOF 30856for ac_lib in '' elf ld mld; do 30857 if test -z "$ac_lib"; then 30858 ac_res="none required" 30859 else 30860 ac_res=-l$ac_lib 30861 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 30862 fi 30863 if ac_fn_c_try_link "$LINENO"; then : 30864 ac_cv_search_nlist=$ac_res 30865fi 30866rm -f core conftest.err conftest.$ac_objext \ 30867 conftest$ac_exeext 30868 if ${ac_cv_search_nlist+:} false; then : 30869 break 30870fi 30871done 30872if ${ac_cv_search_nlist+:} false; then : 30873 30874else 30875 ac_cv_search_nlist=no 30876fi 30877rm conftest.$ac_ext 30878LIBS=$ac_func_search_save_LIBS 30879fi 30880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nlist" >&5 30881$as_echo "$ac_cv_search_nlist" >&6; } 30882ac_res=$ac_cv_search_nlist 30883if test "$ac_res" != no; then : 30884 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 30885 30886fi 30887 30888 # XXX ac_cv_search_nlist will be 'none required', 'no', or '-l...' 30889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kvm_open" >&5 30890$as_echo_n "checking for library containing kvm_open... " >&6; } 30891if ${ac_cv_search_kvm_open+:} false; then : 30892 $as_echo_n "(cached) " >&6 30893else 30894 ac_func_search_save_LIBS=$LIBS 30895cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30896/* end confdefs.h. */ 30897 30898/* Override any GCC internal prototype to avoid an error. 30899 Use char because int might match the return type of a GCC 30900 builtin and then its argument prototype would still apply. */ 30901#ifdef __cplusplus 30902extern "C" 30903#endif 30904char kvm_open (); 30905int 30906main () 30907{ 30908return kvm_open (); 30909 ; 30910 return 0; 30911} 30912_ACEOF 30913for ac_lib in '' kvm; do 30914 if test -z "$ac_lib"; then 30915 ac_res="none required" 30916 else 30917 ac_res=-l$ac_lib 30918 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 30919 fi 30920 if ac_fn_c_try_link "$LINENO"; then : 30921 ac_cv_search_kvm_open=$ac_res 30922fi 30923rm -f core conftest.err conftest.$ac_objext \ 30924 conftest$ac_exeext 30925 if ${ac_cv_search_kvm_open+:} false; then : 30926 break 30927fi 30928done 30929if ${ac_cv_search_kvm_open+:} false; then : 30930 30931else 30932 ac_cv_search_kvm_open=no 30933fi 30934rm conftest.$ac_ext 30935LIBS=$ac_func_search_save_LIBS 30936fi 30937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kvm_open" >&5 30938$as_echo "$ac_cv_search_kvm_open" >&6; } 30939ac_res=$ac_cv_search_kvm_open 30940if test "$ac_res" != no; then : 30941 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 30942 30943fi 30944 # XXX ac_cv_search_kvm_open will be 'none required', 'no', or '-l...' 30945 for ac_header in nlist.h sys/var.h 30946do : 30947 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 30948ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 30949if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 30950 cat >>confdefs.h <<_ACEOF 30951#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 30952_ACEOF 30953 30954fi 30955 30956done 30957 30958 case "$ac_cv_header_nlist_h" in 30959 yes) 30960 30961$as_echo "#define NLIST_STRUCT 1" >>confdefs.h 30962 30963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for n_un in struct nlist" >&5 30964$as_echo_n "checking for n_un in struct nlist... " >&6; } 30965if ${ntp_cv_struct_nlist_n_un+:} false; then : 30966 $as_echo_n "(cached) " >&6 30967else 30968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30969/* end confdefs.h. */ 30970 30971 #include <nlist.h> 30972 30973int 30974main () 30975{ 30976 30977 struct nlist n; 30978 n.n_un.n_name = 0; 30979 30980 30981 ; 30982 return 0; 30983} 30984 ntp_cv_struct_nlist_n_un=yes 30985_ACEOF 30986if ac_fn_c_try_compile "$LINENO"; then : 30987 ntp_cv_struct_nlist_n_un=no 30988 30989fi 30990rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 30991 30992fi 30993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_nlist_n_un" >&5 30994$as_echo "$ntp_cv_struct_nlist_n_un" >&6; } 30995 case "$ntp_cv_struct_nlist_n_un" in 30996 yes) 30997 30998$as_echo "#define NLIST_NAME_UNION 1" >>confdefs.h 30999 31000 esac 31001 esac 31002 31003 LDADD_NLIST="$LIBS" 31004 LIBS="$saved_LIBS" 31005 { saved_LIBS=; unset saved_LIBS;} 31006esac 31007 31008for ac_header in sys/proc.h 31009do : 31010 ac_fn_c_check_header_compile "$LINENO" "sys/proc.h" "ac_cv_header_sys_proc_h" " 31011 #ifdef HAVE_SYS_TYPES_H 31012 # include <sys/types.h> 31013 #endif 31014 #ifdef HAVE_SYS_TIME_H 31015 # include <sys/time.h> 31016 #endif 31017 31018" 31019if test "x$ac_cv_header_sys_proc_h" = xyes; then : 31020 cat >>confdefs.h <<_ACEOF 31021#define HAVE_SYS_PROC_H 1 31022_ACEOF 31023 31024fi 31025 31026done 31027 31028 31029for ac_header in sys/resource.h 31030do : 31031 ac_fn_c_check_header_compile "$LINENO" "sys/resource.h" "ac_cv_header_sys_resource_h" " 31032 #ifdef HAVE_SYS_TIME_H 31033 # include <sys/time.h> 31034 #endif 31035 31036" 31037if test "x$ac_cv_header_sys_resource_h" = xyes; then : 31038 cat >>confdefs.h <<_ACEOF 31039#define HAVE_SYS_RESOURCE_H 1 31040_ACEOF 31041 31042fi 31043 31044done 31045 31046 31047for ac_header in sys/shm.h 31048do : 31049 ac_fn_c_check_header_compile "$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" " 31050 #ifdef HAVE_SYS_TYPES_H 31051 # include <sys/types.h> 31052 #endif 31053 #ifdef HAVE_SYS_IPC_H 31054 # include <sys/ipc.h> 31055 #endif 31056 31057" 31058if test "x$ac_cv_header_sys_shm_h" = xyes; then : 31059 cat >>confdefs.h <<_ACEOF 31060#define HAVE_SYS_SHM_H 1 31061_ACEOF 31062 31063fi 31064 31065done 31066 31067 31068for ac_header in sys/timex.h 31069do : 31070 ac_fn_c_check_header_compile "$LINENO" "sys/timex.h" "ac_cv_header_sys_timex_h" " 31071 #ifdef HAVE_SYS_TIME_H 31072 # include <sys/time.h> 31073 #endif 31074 31075" 31076if test "x$ac_cv_header_sys_timex_h" = xyes; then : 31077 cat >>confdefs.h <<_ACEOF 31078#define HAVE_SYS_TIMEX_H 1 31079_ACEOF 31080 31081fi 31082 31083done 31084 31085 31086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 31087$as_echo_n "checking return type of signal handlers... " >&6; } 31088if ${ac_cv_type_signal+:} false; then : 31089 $as_echo_n "(cached) " >&6 31090else 31091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31092/* end confdefs.h. */ 31093#include <sys/types.h> 31094#include <signal.h> 31095 31096int 31097main () 31098{ 31099return *(signal (0, 0)) (0) == 1; 31100 ; 31101 return 0; 31102} 31103_ACEOF 31104if ac_fn_c_try_compile "$LINENO"; then : 31105 ac_cv_type_signal=int 31106else 31107 ac_cv_type_signal=void 31108fi 31109rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 31110fi 31111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 31112$as_echo "$ac_cv_type_signal" >&6; } 31113 31114cat >>confdefs.h <<_ACEOF 31115#define RETSIGTYPE $ac_cv_type_signal 31116_ACEOF 31117 31118 31119ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" 31120if test "x$ac_cv_type_off_t" = xyes; then : 31121 31122else 31123 31124cat >>confdefs.h <<_ACEOF 31125#define off_t long int 31126_ACEOF 31127 31128fi 31129 31130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 31131$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } 31132if ${ac_cv_struct_tm+:} false; then : 31133 $as_echo_n "(cached) " >&6 31134else 31135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31136/* end confdefs.h. */ 31137#include <sys/types.h> 31138#include <time.h> 31139 31140int 31141main () 31142{ 31143struct tm tm; 31144 int *p = &tm.tm_sec; 31145 return !p; 31146 ; 31147 return 0; 31148} 31149_ACEOF 31150if ac_fn_c_try_compile "$LINENO"; then : 31151 ac_cv_struct_tm=time.h 31152else 31153 ac_cv_struct_tm=sys/time.h 31154fi 31155rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 31156fi 31157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 31158$as_echo "$ac_cv_struct_tm" >&6; } 31159if test $ac_cv_struct_tm = sys/time.h; then 31160 31161$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h 31162 31163fi 31164 31165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a fallback value for HZ" >&5 31166$as_echo_n "checking for a fallback value for HZ... " >&6; } 31167if ${ntp_cv_default_hz+:} false; then : 31168 $as_echo_n "(cached) " >&6 31169else 31170 31171 ntp_cv_default_hz=100 31172 case "$host" in 31173 alpha*-dec-osf4*|alpha*-dec-osf5*) 31174 ntp_cv_default_hz=1024 31175 ;; 31176 mips-dec-ultrix4*) 31177 ntp_cv_default_hz=256 31178 ;; 31179 esac 31180 31181 31182fi 31183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_default_hz" >&5 31184$as_echo "$ntp_cv_default_hz" >&6; } 31185 31186cat >>confdefs.h <<_ACEOF 31187#define DEFAULT_HZ $ntp_cv_default_hz 31188_ACEOF 31189 31190 31191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need to override the system's value for HZ" >&5 31192$as_echo_n "checking if we need to override the system's value for HZ... " >&6; } 31193if ${ntp_cv_override_hz+:} false; then : 31194 $as_echo_n "(cached) " >&6 31195else 31196 31197 ntp_cv_override_hz=no 31198 case "$host" in 31199 alpha*-dec-osf4*|alpha*-dec-osf5*) 31200 ntp_cv_override_hz=yes 31201 ;; 31202 mips-dec-ultrix4*) 31203 ntp_cv_override_hz=yes 31204 ;; 31205 *-*-freebsd*) 31206 ntp_cv_override_hz=yes 31207 ;; 31208 *-*-sunos4*) 31209 ntp_cv_override_hz=yes 31210 ;; 31211 *-*-kfreebsd*) 31212 ntp_cv_override_hz=yes 31213 ;; 31214 esac 31215 31216 31217fi 31218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_override_hz" >&5 31219$as_echo "$ntp_cv_override_hz" >&6; } 31220case "$ntp_cv_override_hz" in 31221 yes) 31222 31223$as_echo "#define OVERRIDE_HZ 1" >>confdefs.h 31224 31225esac 31226 31227 31228 31229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct rt_msghdr" >&5 31230$as_echo_n "checking for struct rt_msghdr... " >&6; } 31231if ${ntp_cv_struct_rt_msghdr+:} false; then : 31232 $as_echo_n "(cached) " >&6 31233else 31234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31235/* end confdefs.h. */ 31236 31237 #include <sys/types.h> 31238 #include <sys/socket.h> 31239 #include <net/if.h> 31240 #include <net/route.h> 31241 31242int 31243main () 31244{ 31245 31246 struct rt_msghdr p; 31247 31248 31249 ; 31250 return 0; 31251} 31252_ACEOF 31253if ac_fn_c_try_compile "$LINENO"; then : 31254 ntp_cv_struct_rt_msghdr=yes 31255else 31256 ntp_cv_struct_rt_msghdr=no 31257 31258fi 31259rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 31260 31261fi 31262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_rt_msghdr" >&5 31263$as_echo "$ntp_cv_struct_rt_msghdr" >&6; } 31264 31265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct rtattr" >&5 31266$as_echo_n "checking for struct rtattr... " >&6; } 31267if ${ntp_cv_rtattr+:} false; then : 31268 $as_echo_n "(cached) " >&6 31269else 31270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31271/* end confdefs.h. */ 31272 31273 #include <stddef.h> 31274 #include <sys/socket.h> 31275 #include <linux/rtnetlink.h> 31276 31277int 31278main () 31279{ 31280 31281 struct rtattr p; 31282 31283 31284 ; 31285 return 0; 31286} 31287_ACEOF 31288if ac_fn_c_try_compile "$LINENO"; then : 31289 ntp_cv_rtattr=yes 31290else 31291 ntp_cv_rtattr=no 31292 31293fi 31294rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 31295 31296fi 31297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_rtattr" >&5 31298$as_echo "$ntp_cv_rtattr" >&6; } 31299 31300case "$ntp_cv_struct_rt_msghdr$ntp_cv_rtattr" in 31301 *yes*) 31302 31303$as_echo "#define HAS_ROUTING_SOCKET 1" >>confdefs.h 31304 31305 case "$ntp_cv_rtattr" in 31306 yes) 31307 31308$as_echo "#define HAVE_RTNETLINK 1" >>confdefs.h 31309 31310 esac 31311esac 31312 31313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking struct sigaction for sa_sigaction" >&5 31314$as_echo_n "checking struct sigaction for sa_sigaction... " >&6; } 31315if ${ntp_cv_struct_sigaction_has_sa_sigaction+:} false; then : 31316 $as_echo_n "(cached) " >&6 31317else 31318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31319/* end confdefs.h. */ 31320 31321 #include <signal.h> 31322 31323int 31324main () 31325{ 31326 31327 struct sigaction act; 31328 act.sa_sigaction = 0; 31329 31330 31331 ; 31332 return 0; 31333} 31334_ACEOF 31335if ac_fn_c_try_compile "$LINENO"; then : 31336 ntp_cv_struct_sigaction_has_sa_sigaction=yes 31337else 31338 ntp_cv_struct_sigaction_has_sa_sigaction=no 31339 31340fi 31341rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 31342 31343fi 31344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_sigaction_has_sa_sigaction" >&5 31345$as_echo "$ntp_cv_struct_sigaction_has_sa_sigaction" >&6; } 31346case "$ntp_cv_struct_sigaction_has_sa_sigaction" in 31347 yes) 31348 31349$as_echo "#define HAVE_SA_SIGACTION_IN_STRUCT_SIGACTION 1" >>confdefs.h 31350 31351esac 31352 31353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct ppsclockev" >&5 31354$as_echo_n "checking for struct ppsclockev... " >&6; } 31355if ${ntp_cv_struct_ppsclockev+:} false; then : 31356 $as_echo_n "(cached) " >&6 31357else 31358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31359/* end confdefs.h. */ 31360 31361 #ifdef HAVE_SYS_TYPES_H 31362 # include <sys/types.h> 31363 #endif 31364 #ifdef HAVE_SYS_TERMIOS_H 31365 # include <sys/termios.h> 31366 #endif 31367 #ifdef HAVE_SYS_TIME_H 31368 # include <sys/time.h> 31369 #endif 31370 #ifdef HAVE_SYS_PPSCLOCK_H 31371 # include <sys/ppsclock.h> 31372 #endif 31373 31374int 31375main () 31376{ 31377 31378 extern struct ppsclockev *pce; 31379 return pce->serial; 31380 31381 31382 ; 31383 return 0; 31384} 31385_ACEOF 31386if ac_fn_c_try_compile "$LINENO"; then : 31387 ntp_cv_struct_ppsclockev=yes 31388else 31389 ntp_cv_struct_ppsclockev=no 31390 31391fi 31392rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 31393 31394fi 31395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_ppsclockev" >&5 31396$as_echo "$ntp_cv_struct_ppsclockev" >&6; } 31397case "$ntp_cv_struct_ppsclockev" in 31398 yes) 31399 31400$as_echo "#define HAVE_STRUCT_PPSCLOCKEV 1" >>confdefs.h 31401 31402esac 31403 31404case "$ac_cv_header_machine_soundcard_h$ac_cv_header_sys_soundcard_h" in 31405 *yes*) 31406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct snd_size" >&5 31407$as_echo_n "checking for struct snd_size... " >&6; } 31408if ${ntp_cv_struct_snd_size+:} false; then : 31409 $as_echo_n "(cached) " >&6 31410else 31411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31412/* end confdefs.h. */ 31413 31414 #ifdef HAVE_MACHINE_SOUNDCARD_H 31415 # include <machine/soundcard.h> 31416 #endif 31417 #ifdef HAVE_SYS_SOUNDCARD_H 31418 # include <sys/soundcard.h> 31419 #endif 31420 31421int 31422main () 31423{ 31424 31425 extern struct snd_size *ss; 31426 return ss->rec_size; 31427 31428 31429 ; 31430 return 0; 31431} 31432_ACEOF 31433if ac_fn_c_try_compile "$LINENO"; then : 31434 ntp_cv_struct_snd_size=yes 31435else 31436 ntp_cv_struct_snd_size=no 31437 31438fi 31439rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 31440 31441fi 31442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_snd_size" >&5 31443$as_echo "$ntp_cv_struct_snd_size" >&6; } 31444 case "$ntp_cv_struct_snd_size" in 31445 yes) 31446 31447$as_echo "#define HAVE_STRUCT_SND_SIZE 1" >>confdefs.h 31448 31449 esac 31450esac 31451 31452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking struct clockinfo for hz" >&5 31453$as_echo_n "checking struct clockinfo for hz... " >&6; } 31454if ${ntp_cv_struct_clockinfo_has_hz+:} false; then : 31455 $as_echo_n "(cached) " >&6 31456else 31457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31458/* end confdefs.h. */ 31459 31460 #include <sys/time.h> 31461 31462int 31463main () 31464{ 31465 31466 extern struct clockinfo *pc; 31467 return pc->hz; 31468 31469 31470 ; 31471 return 0; 31472} 31473_ACEOF 31474if ac_fn_c_try_compile "$LINENO"; then : 31475 ntp_cv_struct_clockinfo_has_hz=yes 31476else 31477 ntp_cv_struct_clockinfo_has_hz=no 31478 31479fi 31480rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 31481 31482fi 31483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_clockinfo_has_hz" >&5 31484$as_echo "$ntp_cv_struct_clockinfo_has_hz" >&6; } 31485case "$ntp_cv_struct_clockinfo_has_hz" in 31486 yes) 31487 31488$as_echo "#define HAVE_HZ_IN_STRUCT_CLOCKINFO 1" >>confdefs.h 31489 31490esac 31491 31492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking struct clockinfo for tickadj" >&5 31493$as_echo_n "checking struct clockinfo for tickadj... " >&6; } 31494if ${ntp_cv_struct_clockinfo_has_hz+:} false; then : 31495 $as_echo_n "(cached) " >&6 31496else 31497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31498/* end confdefs.h. */ 31499 31500 #include <sys/time.h> 31501 31502int 31503main () 31504{ 31505 31506 extern struct clockinfo *pc; 31507 return pc->tickadj; 31508 31509 31510 ; 31511 return 0; 31512} 31513_ACEOF 31514if ac_fn_c_try_compile "$LINENO"; then : 31515 ntp_cv_struct_clockinfo_has_hz=yes 31516else 31517 ntp_cv_struct_clockinfo_has_hz=no 31518 31519fi 31520rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 31521 31522fi 31523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_clockinfo_has_hz" >&5 31524$as_echo "$ntp_cv_struct_clockinfo_has_hz" >&6; } 31525case "$ntp_cv_struct_clockinfo_has_hz" in 31526 yes) 31527 31528$as_echo "#define HAVE_TICKADJ_IN_STRUCT_CLOCKINFO 1" >>confdefs.h 31529 31530esac 31531 31532case "$ntp_cv_struct_ntptimeval" in 31533 yes) 31534 ac_fn_c_check_member "$LINENO" "struct ntptimeval" "time.tv_nsec" "ac_cv_member_struct_ntptimeval_time_tv_nsec" " 31535 #ifdef HAVE_SYS_TIME_H 31536 # include <sys/time.h> 31537 #else 31538 # ifdef HAVE_TIME_H 31539 # include <time.h> 31540 # endif 31541 #endif 31542 #ifdef HAVE_SYS_TIMEX_H 31543 # include <sys/timex.h> 31544 #else 31545 # ifdef HAVE_TIMEX_H 31546 # include <timex.h> 31547 # endif 31548 #endif 31549 31550 31551" 31552if test "x$ac_cv_member_struct_ntptimeval_time_tv_nsec" = xyes; then : 31553 31554cat >>confdefs.h <<_ACEOF 31555#define HAVE_STRUCT_NTPTIMEVAL_TIME_TV_NSEC 1 31556_ACEOF 31557 31558 31559fi 31560 31561esac 31562 31563#### 31564 31565for ac_func in arc4random_buf 31566do : 31567 ac_fn_c_check_func "$LINENO" "arc4random_buf" "ac_cv_func_arc4random_buf" 31568if test "x$ac_cv_func_arc4random_buf" = xyes; then : 31569 cat >>confdefs.h <<_ACEOF 31570#define HAVE_ARC4RANDOM_BUF 1 31571_ACEOF 31572 31573fi 31574done 31575 31576 31577#### 31578 31579saved_LIBS="$LIBS" 31580LIBS="$LIBS $LDADD_LIBNTP" 31581for ac_func in daemon 31582do : 31583 ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon" 31584if test "x$ac_cv_func_daemon" = xyes; then : 31585 cat >>confdefs.h <<_ACEOF 31586#define HAVE_DAEMON 1 31587_ACEOF 31588 31589fi 31590done 31591 31592# XXX if we keep everything in LIBS and also keep separate lists, this simplifies. 31593LIBS="$saved_LIBS" 31594{ saved_LIBS=; unset saved_LIBS;} 31595 31596for ac_func in finite 31597do : 31598 ac_fn_c_check_func "$LINENO" "finite" "ac_cv_func_finite" 31599if test "x$ac_cv_func_finite" = xyes; then : 31600 cat >>confdefs.h <<_ACEOF 31601#define HAVE_FINITE 1 31602_ACEOF 31603 31604else 31605 for ac_func in isfinite 31606do : 31607 ac_fn_c_check_func "$LINENO" "isfinite" "ac_cv_func_isfinite" 31608if test "x$ac_cv_func_isfinite" = xyes; then : 31609 cat >>confdefs.h <<_ACEOF 31610#define HAVE_ISFINITE 1 31611_ACEOF 31612 31613else 31614 31615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isfinite with <math.h>" >&5 31616$as_echo_n "checking for isfinite with <math.h>... " >&6; } 31617 _libs=$LIBS 31618 # XXX 31619 LIBS="$LIBS -lm" 31620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31621/* end confdefs.h. */ 31622 31623 #include <math.h> 31624 31625int 31626main () 31627{ 31628 31629 float f = 0.0; 31630 isfinite(f); 31631 31632 31633 ; 31634 return 0; 31635} 31636_ACEOF 31637if ac_fn_c_try_link "$LINENO"; then : 31638 ans=yes 31639else 31640 ans=no 31641 31642fi 31643rm -f core conftest.err conftest.$ac_objext \ 31644 conftest$ac_exeext conftest.$ac_ext 31645 LIBS=$_libs 31646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 31647$as_echo "$ans" >&6; } 31648 case "$ans" in 31649 yes) 31650 $as_echo "#define HAVE_ISFINITE 1" >>confdefs.h 31651 31652 esac 31653 31654 31655fi 31656done 31657 31658 31659fi 31660done 31661 31662 31663for ac_func in fnmatch getbootfile getuid getrusage nanosleep strsignal 31664do : 31665 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 31666ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 31667if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 31668 cat >>confdefs.h <<_ACEOF 31669#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 31670_ACEOF 31671 31672fi 31673done 31674 31675 31676# kvm_open() is only used by tickadj. Also see above. 31677case "$ac_cv_header_kvm_h" in 31678 yes) 31679 for ac_func in kvm_open 31680do : 31681 ac_fn_c_check_func "$LINENO" "kvm_open" "ac_cv_func_kvm_open" 31682if test "x$ac_cv_func_kvm_open" = xyes; then : 31683 cat >>confdefs.h <<_ACEOF 31684#define HAVE_KVM_OPEN 1 31685_ACEOF 31686 31687fi 31688done 31689 31690 ;; 31691esac 31692 31693case "$host" in 31694 *-*-sco3.2v5.0.*) 31695 # Just stubs. Sigh. 31696 ;; 31697 *) for ac_func in mkstemp 31698do : 31699 ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp" 31700if test "x$ac_cv_func_mkstemp" = xyes; then : 31701 cat >>confdefs.h <<_ACEOF 31702#define HAVE_MKSTEMP 1 31703_ACEOF 31704 31705fi 31706done 31707 31708 ;; 31709esac 31710for ac_func in mktime 31711do : 31712 ac_fn_c_check_func "$LINENO" "mktime" "ac_cv_func_mktime" 31713if test "x$ac_cv_func_mktime" = xyes; then : 31714 cat >>confdefs.h <<_ACEOF 31715#define HAVE_MKTIME 1 31716_ACEOF 31717 31718fi 31719done 31720 31721case "$host" in 31722 *-*-aix[4-9]*) 31723 # XXX only verified thru AIX6. 31724 # Just a stub. Sigh. 31725 ;; 31726 *-*-irix[45]*) 31727 # Just a stub in "old" Irix. Sigh. 31728 ;; 31729# In the belief that the fix for bug 1223 fixes mlockall() under linux... 31730# *-*-*linux*) 31731# # there, but more trouble than it is worth for now (resolver problems) 31732# ;; 31733 *-*-qnx*) 31734 # Apparently there but not working in QNX. Sigh? 31735 ;; 31736 *-*-sco3.2v5.0.*) 31737 # Just a stub. Sigh. 31738 ;; 31739 alpha*-dec-osf4*|alpha*-dec-osf5*) 31740 # mlockall is there, as a #define calling memlk via <sys/mman.h> 31741 # Not easy to test for - cheat. 31742 for ac_func in memlk 31743do : 31744 ac_fn_c_check_func "$LINENO" "memlk" "ac_cv_func_memlk" 31745if test "x$ac_cv_func_memlk" = xyes; then : 31746 cat >>confdefs.h <<_ACEOF 31747#define HAVE_MEMLK 1 31748_ACEOF 31749 ac_cv_func_mlockall=yes 31750fi 31751done 31752 31753 for ac_func in mlockall 31754do : 31755 ac_fn_c_check_func "$LINENO" "mlockall" "ac_cv_func_mlockall" 31756if test "x$ac_cv_func_mlockall" = xyes; then : 31757 cat >>confdefs.h <<_ACEOF 31758#define HAVE_MLOCKALL 1 31759_ACEOF 31760 31761fi 31762done 31763 31764 ;; 31765 *) for ac_func in mlockall 31766do : 31767 ac_fn_c_check_func "$LINENO" "mlockall" "ac_cv_func_mlockall" 31768if test "x$ac_cv_func_mlockall" = xyes; then : 31769 cat >>confdefs.h <<_ACEOF 31770#define HAVE_MLOCKALL 1 31771_ACEOF 31772 31773fi 31774done 31775 31776 ;; 31777esac 31778for ac_func in nice plock pututline pututxline readlink rtprio 31779do : 31780 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 31781ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 31782if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 31783 cat >>confdefs.h <<_ACEOF 31784#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 31785_ACEOF 31786 31787fi 31788done 31789 31790case "$host" in 31791 *-*-aix[4-9]*) 31792 # XXX only verified thru AIX6. 31793 # Just a stub in AIX 4. Sigh. 31794 ;; 31795 *-*-solaris2.5*) 31796 # Just stubs in solaris2.5. Sigh. 31797 ;; 31798 *) for ac_func in sched_setscheduler 31799do : 31800 ac_fn_c_check_func "$LINENO" "sched_setscheduler" "ac_cv_func_sched_setscheduler" 31801if test "x$ac_cv_func_sched_setscheduler" = xyes; then : 31802 cat >>confdefs.h <<_ACEOF 31803#define HAVE_SCHED_SETSCHEDULER 1 31804_ACEOF 31805 31806fi 31807done 31808 31809 ;; 31810esac 31811for ac_func in setlinebuf setpgid setpriority setsid setvbuf 31812do : 31813 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 31814ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 31815if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 31816 cat >>confdefs.h <<_ACEOF 31817#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 31818_ACEOF 31819 31820fi 31821done 31822 31823for ac_func in strdup strerror setrlimit strchr 31824do : 31825 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 31826ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 31827if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 31828 cat >>confdefs.h <<_ACEOF 31829#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 31830_ACEOF 31831 31832fi 31833done 31834 31835case "$host" in 31836 *-*-aix[4-9]*) 31837 # XXX only verified thru AIX6. 31838 # Just stubs. Sigh. 31839 ;; 31840 *-*-netbsd1*) 31841 # Just stubs. Sigh. 31842 ;; 31843 *-*-netbsdelf1*) 31844 # Just stubs. Sigh. 31845 ;; 31846 *-*-openbsd*) 31847 # Just stubs. Sigh. 31848 ;; 31849 *) 31850 for ac_func in timer_create 31851do : 31852 ac_fn_c_check_func "$LINENO" "timer_create" "ac_cv_func_timer_create" 31853if test "x$ac_cv_func_timer_create" = xyes; then : 31854 cat >>confdefs.h <<_ACEOF 31855#define HAVE_TIMER_CREATE 1 31856_ACEOF 31857 31858fi 31859done 31860 31861 ;; 31862esac 31863 31864 31865 31866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RLIMIT_MEMLOCK" >&5 31867$as_echo_n "checking for RLIMIT_MEMLOCK... " >&6; } 31868if ${ntp_cv_rlimit_memlock+:} false; then : 31869 $as_echo_n "(cached) " >&6 31870else 31871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31872/* end confdefs.h. */ 31873 31874 #ifdef HAVE_SYS_TYPES_H 31875 # include <sys/types.h> 31876 #endif 31877 #ifdef HAVE_SYS_TIME_H 31878 # include <sys/time.h> 31879 #endif 31880 #ifdef HAVE_SYS_RESOURCE_H 31881 # include <sys/resource.h> 31882 #endif 31883 31884int 31885main () 31886{ 31887 31888 getrlimit(RLIMIT_MEMLOCK, 0); 31889 31890 31891 ; 31892 return 0; 31893} 31894_ACEOF 31895if ac_fn_c_try_compile "$LINENO"; then : 31896 ntp_cv_rlimit_memlock=yes 31897else 31898 ntp_cv_rlimit_memlock=no 31899 31900fi 31901rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 31902 31903fi 31904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_rlimit_memlock" >&5 31905$as_echo "$ntp_cv_rlimit_memlock" >&6; } 31906case "$host" in 31907 *-*-*linux*) 31908 ntp_dflt_rlimit_memlock="-1" ;; 31909 *) ntp_dflt_rlimit_memlock="32" ;; 31910esac 31911case "$ntp_cv_rlimit_memlock" in 31912 yes) 31913 31914 HAVE_RLIMIT_MEMLOCK=" memlock $ntp_dflt_rlimit_memlock" ;; 31915esac 31916 31917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RLIMIT_STACK" >&5 31918$as_echo_n "checking for RLIMIT_STACK... " >&6; } 31919if ${ntp_cv_rlimit_stack+:} false; then : 31920 $as_echo_n "(cached) " >&6 31921else 31922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31923/* end confdefs.h. */ 31924 31925 #ifdef HAVE_SYS_TYPES_H 31926 # include <sys/types.h> 31927 #endif 31928 #ifdef HAVE_SYS_TIME_H 31929 # include <sys/time.h> 31930 #endif 31931 #ifdef HAVE_SYS_RESOURCE_H 31932 # include <sys/resource.h> 31933 #endif 31934 31935int 31936main () 31937{ 31938 31939 getrlimit(RLIMIT_STACK, 0); 31940 31941 31942 ; 31943 return 0; 31944} 31945_ACEOF 31946if ac_fn_c_try_compile "$LINENO"; then : 31947 ntp_cv_rlimit_stack=yes 31948else 31949 ntp_cv_rlimit_stack=no 31950 31951fi 31952rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 31953 31954fi 31955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_rlimit_stack" >&5 31956$as_echo "$ntp_cv_rlimit_stack" >&6; } 31957case "$ntp_cv_rlimit_stack" in 31958 yes) 31959 31960 HAVE_RLIMIT_STACK=" stacksize 50" 31961esac 31962 31963# HMS: Only if we are doing the MLOCKALL stuff... 31964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default number of 4k stack pages" >&5 31965$as_echo_n "checking for the default number of 4k stack pages... " >&6; } 31966 31967# Check whether --with-stack-limit was given. 31968if test "${with_stack_limit+set}" = set; then : 31969 withval=$with_stack_limit; ans=$withval 31970else 31971 ans=yes 31972 31973fi 31974 31975case "$ans" in 31976 yes | no) 31977 case "$host" in 31978 *-*-openbsd*) 31979 ans=200 31980 ;; 31981 *) ans=50 31982 ;; 31983 esac 31984 ;; 31985 [1-9][0-9]*) 31986 ;; 31987 *) as_fn_error $? "\"--with-stack-limit requires an integer argument.\"" "$LINENO" 5 31988 ;; 31989esac 31990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 31991$as_echo "$ans" >&6; } 31992 31993cat >>confdefs.h <<_ACEOF 31994#define DFLT_RLIMIT_STACK $ans 31995_ACEOF 31996 31997 31998# HMS: only if we have RLIMIT_MEMLOCK 31999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default number of megabytes to MEMLOCK" >&5 32000$as_echo_n "checking for the default number of megabytes to MEMLOCK... " >&6; } 32001 32002# Check whether --with-memlock was given. 32003if test "${with_memlock+set}" = set; then : 32004 withval=$with_memlock; ans=$withval 32005else 32006 ans=yes 32007 32008fi 32009 32010case "$ans" in 32011 yes | no) 32012 ans=$ntp_dflt_rlimit_memlock 32013 ;; 32014 [1-9][0-9]*) ;; 32015 *) as_fn_error $? "\"--with-memlock requires an integer argument.\"" "$LINENO" 5 32016 ;; 32017esac 32018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 32019$as_echo "$ans" >&6; } 32020 32021cat >>confdefs.h <<_ACEOF 32022#define DFLT_RLIMIT_MEMLOCK $ans 32023_ACEOF 32024 32025 32026 32027 32028# some OSes prefer _exit() in forked children to exit() 32029for ac_func in _exit 32030do : 32031 ac_fn_c_check_func "$LINENO" "_exit" "ac_cv_func__exit" 32032if test "x$ac_cv_func__exit" = xyes; then : 32033 cat >>confdefs.h <<_ACEOF 32034#define HAVE__EXIT 1 32035_ACEOF 32036 32037fi 32038done 32039 32040ntp_worker_child_exit=exit 32041case "$ac_cv_func__exit::$host_os" in 32042 yes::netbsd*) 32043 ntp_worker_child_exit=_exit 32044 ;; 32045 yes::openbsd*) 32046 ntp_worker_child_exit=_exit 32047 ;; 32048esac 32049 32050cat >>confdefs.h <<_ACEOF 32051#define WORKER_CHILD_EXIT $ntp_worker_child_exit 32052_ACEOF 32053 32054 32055for ac_func in umask uname updwtmp updwtmpx 32056do : 32057 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 32058ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 32059if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 32060 cat >>confdefs.h <<_ACEOF 32061#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 32062_ACEOF 32063 32064fi 32065done 32066 32067 32068### 32069 32070# http://bugs.ntp.org/737 32071case "$ac_cv_func_recvmsg" in 32072 yes) 32073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need extra help to define struct iovec" >&5 32074$as_echo_n "checking if we need extra help to define struct iovec... " >&6; } 32075if ${ntp_cv_struct_iovec_help+:} false; then : 32076 $as_echo_n "(cached) " >&6 32077else 32078 32079 compiled=no 32080 for ntp_cv_struct_iovec_help in '0' '1'; do 32081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32082/* end confdefs.h. */ 32083 32084 #ifdef HAVE_SYS_TYPES_H 32085 # include <sys/types.h> 32086 #endif 32087 #ifdef HAVE_SYS_SOCKET_H 32088 # include <sys/socket.h> 32089 #endif 32090 #if $ntp_cv_struct_iovec_help 32091 # include <sys/uio.h> 32092 #endif 32093 32094int 32095main () 32096{ 32097 32098 void foo(void) { 32099 ssize_t x; 32100 int s = 0; 32101 struct iovec iov; 32102 struct msghdr mh; 32103 int flags = 0; 32104 32105 mh.msg_iov = &iov; 32106 x = recvmsg(s, &mh, flags); 32107 } 32108 32109 32110 ; 32111 return 0; 32112} 32113_ACEOF 32114if ac_fn_c_try_compile "$LINENO"; then : 32115 compiled=yes ; break 1 32116fi 32117rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 32118 done 32119 case "$compiled" in 32120 no) 32121 ntp_cv_struct_iovec_help=0 32122 esac 32123 { compiled=; unset compiled;} 32124 32125 32126fi 32127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_iovec_help" >&5 32128$as_echo "$ntp_cv_struct_iovec_help" >&6; } 32129 case "$ntp_cv_struct_iovec_help" in 32130 1) 32131 32132$as_echo "#define HAVE_SYS_UIO_H 1" >>confdefs.h 32133 32134 esac 32135esac 32136 32137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking number of arguments taken by setpgrp()" >&5 32138$as_echo_n "checking number of arguments taken by setpgrp()... " >&6; } 32139if ${ntp_cv_func_setpgrp_nargs+:} false; then : 32140 $as_echo_n "(cached) " >&6 32141else 32142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32143/* end confdefs.h. */ 32144 32145 #ifdef HAVE_SYS_TYPES_H 32146 # include <sys/types.h> 32147 #endif 32148 #ifdef HAVE_UNISTD_H 32149 # include <unistd.h> 32150 #endif 32151 32152int 32153main () 32154{ 32155 32156 setpgrp(0, 0); 32157 32158 32159 ; 32160 return 0; 32161} 32162_ACEOF 32163if ac_fn_c_try_compile "$LINENO"; then : 32164 ntp_cv_func_setpgrp_nargs=2 32165else 32166 ntp_cv_func_setpgrp_nargs=0 32167 32168fi 32169rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 32170 32171fi 32172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_func_setpgrp_nargs" >&5 32173$as_echo "$ntp_cv_func_setpgrp_nargs" >&6; } 32174case "$ntp_cv_func_setpgrp_nargs" in 32175 0) 32176 32177$as_echo "#define HAVE_SETPGRP_0 1" >>confdefs.h 32178 32179esac 32180 32181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need to declare 'errno'" >&5 32182$as_echo_n "checking if we need to declare 'errno'... " >&6; } 32183if ${ntp_cv_decl_errno+:} false; then : 32184 $as_echo_n "(cached) " >&6 32185else 32186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32187/* end confdefs.h. */ 32188 32189 #ifdef HAVE_ERRNO_H 32190 # include <errno.h> 32191 #endif 32192 32193int 32194main () 32195{ 32196 32197 errno = 0; 32198 32199 32200 ; 32201 return 0; 32202} 32203_ACEOF 32204if ac_fn_c_try_compile "$LINENO"; then : 32205 ntp_cv_decl_errno=no 32206else 32207 ntp_cv_decl_errno=yes 32208 32209fi 32210rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 32211 32212fi 32213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_decl_errno" >&5 32214$as_echo "$ntp_cv_decl_errno" >&6; } 32215case "$ntp_cv_decl_errno" in 32216 yes) 32217 32218$as_echo "#define DECL_ERRNO 1" >>confdefs.h 32219 32220esac 32221 32222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we may declare 'h_errno'" >&5 32223$as_echo_n "checking if we may declare 'h_errno'... " >&6; } 32224if ${ntp_cv_decl_h_errno+:} false; then : 32225 $as_echo_n "(cached) " >&6 32226else 32227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32228/* end confdefs.h. */ 32229 32230 #include <sys/types.h> 32231 #ifdef HAVE_NETINET_IN_H 32232 # include <netinet/in.h> 32233 #endif 32234 #ifdef HAVE_ARPA_NAMESER_H 32235 # include <arpa/nameser.h> 32236 #endif 32237 #ifdef HAVE_NETDB_H 32238 # include <netdb.h> 32239 #endif 32240 #ifdef HAVE_RESOLV_H 32241 # include <resolv.h> 32242 #endif 32243 32244int 32245main () 32246{ 32247 32248 extern int h_errno; 32249 32250 32251 ; 32252 return 0; 32253} 32254_ACEOF 32255if ac_fn_c_try_compile "$LINENO"; then : 32256 ntp_cv_decl_h_errno=yes 32257else 32258 ntp_cv_decl_h_errno=no 32259 32260fi 32261rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 32262 32263fi 32264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_decl_h_errno" >&5 32265$as_echo "$ntp_cv_decl_h_errno" >&6; } 32266case "$ntp_cv_decl_h_errno" in 32267 yes) 32268 32269$as_echo "#define DECL_H_ERRNO 1" >>confdefs.h 32270 32271esac 32272 32273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if declaring 'syscall()' is ok" >&5 32274$as_echo_n "checking if declaring 'syscall()' is ok... " >&6; } 32275if ${ntp_cv_decl_syscall+:} false; then : 32276 $as_echo_n "(cached) " >&6 32277else 32278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32279/* end confdefs.h. */ 32280 32281 #ifdef HAVE_SYS_TYPES_H 32282 # include <sys/types.h> 32283 #endif 32284 #ifdef HAVE_UNISTD_H 32285 # include <unistd.h> 32286 #endif 32287 32288int 32289main () 32290{ 32291 32292 extern int syscall (int, ...); 32293 32294 32295 ; 32296 return 0; 32297} 32298 ntp_cv_decl_syscall=yes 32299_ACEOF 32300if ac_fn_c_try_compile "$LINENO"; then : 32301 ntp_cv_decl_syscall=no 32302 32303fi 32304rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 32305 32306fi 32307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_decl_syscall" >&5 32308$as_echo "$ntp_cv_decl_syscall" >&6; } 32309case "$ntp_cv_decl_syscall" in 32310 yes) 32311 32312$as_echo "#define DECL_SYSCALL 1" >>confdefs.h 32313 32314esac 32315 32316case "$host" in 32317 *-*-aix4.3.*) 32318 32319$as_echo "#define DECL_HSTRERROR_0 1" >>confdefs.h 32320 # Needed for XLC under AIX 4.3.2 32321 ;; 32322 *-*-mpeix*) 32323 32324$as_echo "#define DECL_ADJTIME_0 1" >>confdefs.h 32325 32326 32327$as_echo "#define DECL_INET_NTOA_0 1" >>confdefs.h 32328 32329 32330$as_echo "#define DECL_MKTEMP_0 1" >>confdefs.h 32331 32332 32333$as_echo "#define DECL_SELECT_0 1" >>confdefs.h 32334 32335 32336$as_echo "#define DECL_SETITIMER_0 1" >>confdefs.h 32337 32338 32339$as_echo "#define DECL_SYSLOG_0 1" >>confdefs.h 32340 32341 32342$as_echo "#define DECL_TIMEOFDAY_0 1" >>confdefs.h 32343 32344 ;; 32345 *-*-osf[45]*) 32346 32347$as_echo "#define DECL_PLOCK_0 1" >>confdefs.h 32348 32349 32350$as_echo "#define DECL_STIME_1 1" >>confdefs.h 32351 32352 ;; 32353 *-*-qnx*) 32354 32355$as_echo "#define DECL_ADJTIME_0 1" >>confdefs.h 32356 32357 ;; 32358 *-*-riscos4*) 32359 32360$as_echo "#define DECL_ADJTIME_0 1" >>confdefs.h 32361 32362 32363$as_echo "#define DECL_BZERO_0 1" >>confdefs.h 32364 32365 32366$as_echo "#define DECL_IOCTL_0 1" >>confdefs.h 32367 32368 32369$as_echo "#define DECL_IPC_0 1" >>confdefs.h 32370 32371 32372$as_echo "#define DECL_MEMMOVE_0 1" >>confdefs.h 32373 32374 32375$as_echo "#define DECL_MKTEMP_0 1" >>confdefs.h 32376 32377 32378$as_echo "#define DECL_RENAME_0 1" >>confdefs.h 32379 32380 32381$as_echo "#define DECL_SELECT_0 1" >>confdefs.h 32382 32383 32384$as_echo "#define DECL_SETITIMER_0 1" >>confdefs.h 32385 32386 32387$as_echo "#define DECL_SETPRIORITY_0 1" >>confdefs.h 32388 32389 32390$as_echo "#define DECL_STDIO_0 1" >>confdefs.h 32391 32392 32393$as_echo "#define DECL_STRTOL_0 1" >>confdefs.h 32394 32395 32396$as_echo "#define DECL_SYSLOG_0 1" >>confdefs.h 32397 32398 32399$as_echo "#define DECL_TIME_0 1" >>confdefs.h 32400 32401 32402$as_echo "#define DECL_TIMEOFDAY_0 1" >>confdefs.h 32403 32404 32405$as_echo "#define DECL_TOLOWER_0 1" >>confdefs.h 32406 32407 ;; 32408 *-*-solaris2*) 32409 32410$as_echo "#define DECL_MKSTEMP_0 1" >>confdefs.h 32411 32412 32413$as_echo "#define DECL_SETPRIORITY_1 1" >>confdefs.h 32414 32415 case "$host" in 32416 *-*-solaris2.4) 32417 32418$as_echo "#define DECL_TIMEOFDAY_0 1" >>confdefs.h 32419 32420 ;; 32421 esac 32422 ;; 32423 *-*-sunos4*) 32424 32425$as_echo "#define DECL_ADJTIME_0 1" >>confdefs.h 32426 32427 32428$as_echo "#define DECL_BCOPY_0 1" >>confdefs.h 32429 32430 32431$as_echo "#define DECL_BZERO_0 1" >>confdefs.h 32432 32433 32434$as_echo "#define DECL_IOCTL_0 1" >>confdefs.h 32435 32436 32437$as_echo "#define DECL_IPC_0 1" >>confdefs.h 32438 32439 32440$as_echo "#define DECL_MEMMOVE_0 1" >>confdefs.h 32441 32442 32443$as_echo "#define DECL_MKTEMP_0 1" >>confdefs.h 32444 32445 32446$as_echo "#define DECL_MKSTEMP_0 1" >>confdefs.h 32447 32448 32449$as_echo "#define DECL_RENAME_0 1" >>confdefs.h 32450 32451 32452$as_echo "#define DECL_SELECT_0 1" >>confdefs.h 32453 32454 32455$as_echo "#define DECL_SETITIMER_0 1" >>confdefs.h 32456 32457 32458$as_echo "#define DECL_SETPRIORITY_0 1" >>confdefs.h 32459 32460 32461$as_echo "#define DECL_SIGVEC_0 1" >>confdefs.h 32462 32463 case "`basename $ac_cv_prog_CC`" in 32464 acc*) ;; 32465 *) 32466$as_echo "#define DECL_STDIO_0 1" >>confdefs.h 32467 32468 ;; 32469 esac 32470 32471$as_echo "#define DECL_STRTOL_0 1" >>confdefs.h 32472 32473 32474$as_echo "#define DECL_SYSLOG_0 1" >>confdefs.h 32475 32476 32477$as_echo "#define DECL_TIME_0 1" >>confdefs.h 32478 32479 32480$as_echo "#define DECL_TIMEOFDAY_0 1" >>confdefs.h 32481 32482 32483$as_echo "#define DECL_TOLOWER_0 1" >>confdefs.h 32484 32485 32486$as_echo "#define DECL_TOUPPER_0 1" >>confdefs.h 32487 32488 32489$as_echo "#define DECL_STRERROR_0 1" >>confdefs.h 32490 32491 ;; 32492 *-*-ultrix4*) 32493 32494$as_echo "#define DECL_ADJTIME_0 1" >>confdefs.h 32495 32496 32497$as_echo "#define DECL_BZERO_0 1" >>confdefs.h 32498 32499 32500$as_echo "#define DECL_CFSETISPEED_0 1" >>confdefs.h 32501 32502 32503$as_echo "#define DECL_IOCTL_0 1" >>confdefs.h 32504 32505 32506$as_echo "#define DECL_IPC_0 1" >>confdefs.h 32507 32508 32509$as_echo "#define DECL_MKTEMP_0 1" >>confdefs.h 32510 32511 32512$as_echo "#define DECL_NLIST_0 1" >>confdefs.h 32513 32514 32515$as_echo "#define DECL_PLOCK_0 1" >>confdefs.h 32516 32517 32518$as_echo "#define DECL_SELECT_0 1" >>confdefs.h 32519 32520 32521$as_echo "#define DECL_SETITIMER_0 1" >>confdefs.h 32522 32523 32524$as_echo "#define DECL_SETPRIORITY_0 1" >>confdefs.h 32525 32526 32527$as_echo "#define DECL_STIME_0 1" >>confdefs.h 32528 32529 32530$as_echo "#define DECL_SYSLOG_0 1" >>confdefs.h 32531 32532 32533$as_echo "#define DECL_TIMEOFDAY_0 1" >>confdefs.h 32534 32535 ;; 32536esac 32537 32538case "$host" in 32539 *-*-sco3.2*) 32540 32541$as_echo "#define TERMIOS_NEEDS__SVID3 1" >>confdefs.h 32542 32543 ;; 32544esac 32545 32546case "$host" in 32547 *-*-hpux[567]*) 32548 32549$as_echo "#define NEED_RCVBUF_SLOP 1" >>confdefs.h 32550 32551esac 32552 32553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we will open the broadcast socket" >&5 32554$as_echo_n "checking if we will open the broadcast socket... " >&6; } 32555if ${ntp_cv_var_open_bcast_socket+:} false; then : 32556 $as_echo_n "(cached) " >&6 32557else 32558 32559 ans=yes 32560 case "$host" in 32561 *-*-domainos) 32562 ans=no 32563 esac 32564 ntp_cv_var_open_bcast_socket=$ans 32565 32566 32567fi 32568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_var_open_bcast_socket" >&5 32569$as_echo "$ntp_cv_var_open_bcast_socket" >&6; } 32570case "$ntp_cv_var_open_bcast_socket" in 32571 yes) 32572 32573$as_echo "#define OPEN_BCAST_SOCKET 1" >>confdefs.h 32574 32575esac 32576 32577case "$host" in 32578 *-*-hpux*) 32579 32580$as_echo "#define NEED_HPUX_FINDCONFIG 1" >>confdefs.h 32581 32582esac 32583 32584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if process groups are set with -pid" >&5 32585$as_echo_n "checking if process groups are set with -pid... " >&6; } 32586if ${ntp_cv_arg_setpgrp_negpid+:} false; then : 32587 $as_echo_n "(cached) " >&6 32588else 32589 32590 case "$host" in 32591 *-*-hpux[567]*) 32592 ans=no 32593 ;; 32594 *-*-hpux*) 32595 ans=yes 32596 ;; 32597 *-*-*linux*) 32598 ans=yes 32599 ;; 32600 *-*-sunos3*) 32601 ans=yes 32602 ;; 32603 *-*-ultrix2*) 32604 ans=yes 32605 ;; 32606 *) 32607 ans=no 32608 ;; 32609 esac 32610 ntp_cv_arg_setpgrp_negpid=$ans 32611 32612 32613fi 32614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_arg_setpgrp_negpid" >&5 32615$as_echo "$ntp_cv_arg_setpgrp_negpid" >&6; } 32616case "$ntp_cv_arg_setpgrp_negpid" in 32617 yes) 32618 32619$as_echo "#define UDP_BACKWARDS_SETOWN 1" >>confdefs.h 32620 32621esac 32622 32623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need a ctty for F_SETOWN" >&5 32624$as_echo_n "checking if we need a ctty for F_SETOWN... " >&6; } 32625if ${ntp_cv_func_ctty_for_f_setown+:} false; then : 32626 $as_echo_n "(cached) " >&6 32627else 32628 32629 case "$host" in 32630 *-*-bsdi[23]*) 32631 ans=yes 32632 ;; 32633 *-*-freebsd*) 32634 ans=yes 32635 ;; 32636 # NetBSD versions prior to 3.99.8 require a CTTY for F_SETOWN, 32637 # while later versions will fail a ioctl(TIOCSCTTY, 0) call in 32638 # some cases and so should not have USE_FSETOWNCTTY. "netbsd" 32639 # in $host may be followed by "aout", "ecoff", or "elf". 32640 *-*-netbsd*[a-z]3.[0-8]*|*-*-netbsd*[a-z][0-2].*|*-*-netbsd*[a-z]3.99.[0-7]) 32641 ans=yes 32642 ;; 32643 *-*-netbsd3.[0-8]*|*-*-netbsd[0-2].*|*-*-netbsd3.99.[0-7]) 32644 ans=yes 32645 ;; 32646 *-*-openbsd*) 32647 ans=yes 32648 ;; 32649 *-*-osf*) 32650 ans=yes 32651 ;; 32652 *-*-darwin*) 32653 ans=yes 32654 ;; 32655 *) 32656 ans=no 32657 ;; 32658 esac 32659 ntp_cv_func_ctty_for_f_setown=$ans 32660 32661 32662fi 32663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_func_ctty_for_f_setown" >&5 32664$as_echo "$ntp_cv_func_ctty_for_f_setown" >&6; } 32665case "$ntp_cv_func_ctty_for_f_setown" in 32666 yes) 32667 32668$as_echo "#define USE_FSETOWNCTTY 1" >>confdefs.h 32669 32670esac 32671 32672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the OS clears cached routes when more specifics become available" >&5 32673$as_echo_n "checking if the OS clears cached routes when more specifics become available... " >&6; } 32674if ${ntp_cv_os_routeupdates+:} false; then : 32675 $as_echo_n "(cached) " >&6 32676else 32677 32678 case "$host" in 32679 *-*-netbsd*) 32680 ans=yes 32681 ;; 32682 *) 32683 ans=no 32684 ;; 32685 esac 32686 ntp_cv_os_routeupdates=$ans 32687 32688 32689fi 32690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_os_routeupdates" >&5 32691$as_echo "$ntp_cv_os_routeupdates" >&6; } 32692case "$ntp_cv_os_routeupdates" in 32693 yes) 32694 32695$as_echo "#define OS_MISSES_SPECIFIC_ROUTE_UPDATES 1" >>confdefs.h 32696 32697esac 32698 32699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the wildcard socket needs REUSEADDR to bind other addresses" >&5 32700$as_echo_n "checking if the wildcard socket needs REUSEADDR to bind other addresses... " >&6; } 32701if ${ntp_cv_os_wildcardreuse+:} false; then : 32702 $as_echo_n "(cached) " >&6 32703else 32704 32705 case "$host" in 32706 *-*-*linux*) 32707 ans=yes 32708 ;; 32709 *) ans=no 32710 ;; 32711 esac 32712 ntp_cv_os_wildcardreuse=$ans 32713 32714 32715fi 32716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_os_wildcardreuse" >&5 32717$as_echo "$ntp_cv_os_wildcardreuse" >&6; } 32718case "$ntp_cv_os_wildcardreuse" in 32719 yes) 32720 32721$as_echo "#define OS_NEEDS_REUSEADDR_FOR_IFADDRBIND 1" >>confdefs.h 32722 32723esac 32724 32725case "$host" in 32726 *-*-aix*) 32727 32728$as_echo "#define NLIST_EXTRA_INDIRECTION 1" >>confdefs.h 32729 32730esac 32731 32732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a minimum recommended value of tickadj" >&5 32733$as_echo_n "checking for a minimum recommended value of tickadj... " >&6; } 32734if ${ntp_cv_var_min_rec_tickadj+:} false; then : 32735 $as_echo_n "(cached) " >&6 32736else 32737 32738 ans=no 32739 case "$host" in 32740 *-*-aix*) 32741 ans=40 32742 ;; 32743 esac 32744 ntp_cv_var_min_rec_tickadj=$ans 32745 32746 32747fi 32748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_var_min_rec_tickadj" >&5 32749$as_echo "$ntp_cv_var_min_rec_tickadj" >&6; } 32750case "$ntp_cv_var_min_rec_tickadj" in 32751 ''|no) 32752 ;; 32753 *) 32754 32755cat >>confdefs.h <<_ACEOF 32756#define MIN_REC_TICKADJ $ntp_cv_var_min_rec_tickadj 32757_ACEOF 32758 32759esac 32760 32761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the TTY code permits PARENB and IGNPAR" >&5 32762$as_echo_n "checking if the TTY code permits PARENB and IGNPAR... " >&6; } 32763if ${ntp_cv_no_parenb_ignpar+:} false; then : 32764 $as_echo_n "(cached) " >&6 32765else 32766 32767 ans=no 32768 case "$host" in 32769 i?86-*-*linux*) 32770 ans=yes 32771 ;; 32772 mips-sgi-irix*) 32773 ans=yes 32774 ;; 32775 i?86-*-freebsd[123].*) 32776 ;; 32777 i?86-*-freebsd*) 32778 ans=yes 32779 ;; 32780 *-*-unicosmp*) 32781 ans=yes 32782 ;; 32783 esac 32784 ntp_cv_no_parenb_ignpar=$ans 32785 32786 32787fi 32788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_no_parenb_ignpar" >&5 32789$as_echo "$ntp_cv_no_parenb_ignpar" >&6; } 32790case "$ntp_cv_no_parenb_ignpar" in 32791 yes) 32792 32793$as_echo "#define NO_PARENB_IGNPAR 1" >>confdefs.h 32794 32795esac 32796 32797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we're including processing time debugging code" >&5 32798$as_echo_n "checking if we're including processing time debugging code... " >&6; } 32799# Check whether --enable-debug-timing was given. 32800if test "${enable_debug_timing+set}" = set; then : 32801 enableval=$enable_debug_timing; ntp_ok=$enableval 32802else 32803 ntp_ok=no 32804 32805fi 32806 32807case "$ntp_ok" in 32808 yes) 32809 32810$as_echo "#define DEBUG_TIMING 1" >>confdefs.h 32811 32812esac 32813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 32814$as_echo "$ntp_ok" >&6; } 32815 32816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a the number of minutes in a DST adjustment" >&5 32817$as_echo_n "checking for a the number of minutes in a DST adjustment... " >&6; } 32818# Check whether --enable-dst-minutes was given. 32819if test "${enable_dst_minutes+set}" = set; then : 32820 enableval=$enable_dst_minutes; ans=$enableval 32821else 32822 ans=60 32823 32824fi 32825 32826 32827cat >>confdefs.h <<_ACEOF 32828#define DSTMINUTES $ans 32829_ACEOF 32830 32831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 32832$as_echo "$ans" >&6; } 32833 32834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if ntpd will retry permanent DNS failures" >&5 32835$as_echo_n "checking if ntpd will retry permanent DNS failures... " >&6; } 32836# Check whether --enable-ignore-dns-errors was given. 32837if test "${enable_ignore_dns_errors+set}" = set; then : 32838 enableval=$enable_ignore_dns_errors; ans=$enableval 32839else 32840 ans=no 32841 32842fi 32843 32844case "$ans" in 32845 yes) 32846 32847$as_echo "#define IGNORE_DNS_ERRORS 1" >>confdefs.h 32848 32849esac 32850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 32851$as_echo "$ans" >&6; } 32852 32853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking availability of ntp_{adj,get}time()" >&5 32854$as_echo_n "checking availability of ntp_{adj,get}time()... " >&6; } 32855if ${ntp_cv_var_ntp_syscalls+:} false; then : 32856 $as_echo_n "(cached) " >&6 32857else 32858 32859 ntp_cv_var_ntp_syscalls=no 32860 case "$ac_cv_func_ntp_adjtime$ac_cv_func_ntp_gettime$ac_cv_func___adjtimex" in 32861 yesyes*) 32862 ntp_cv_var_ntp_syscalls=libc 32863 ;; 32864 *yes) 32865 ntp_cv_var_ntp_syscalls=inline 32866 ;; 32867 *) 32868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32869/* end confdefs.h. */ 32870 32871 #include <sys/syscall.h> 32872 #if !defined(SYS_ntp_gettime) || !defined(SYS_ntp_adjtime) 32873 # error 32874 #endif 32875 32876_ACEOF 32877if ac_fn_c_try_cpp "$LINENO"; then : 32878 ntp_cv_var_ntp_syscalls=kernel 32879 32880fi 32881rm -f conftest.err conftest.i conftest.$ac_ext 32882 ;; 32883 esac 32884 32885 32886fi 32887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_var_ntp_syscalls" >&5 32888$as_echo "$ntp_cv_var_ntp_syscalls" >&6; } 32889case "$ntp_cv_var_ntp_syscalls" in 32890 libc) 32891 32892$as_echo "#define NTP_SYSCALLS_LIBC 1" >>confdefs.h 32893 32894 ;; 32895 kernel) 32896 32897$as_echo "#define NTP_SYSCALLS_STD 1" >>confdefs.h 32898 32899 ;; 32900esac 32901 32902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if sys/timex.h has STA_FLL" >&5 32903$as_echo_n "checking if sys/timex.h has STA_FLL... " >&6; } 32904if ${ntp_cv_var_sta_fll+:} false; then : 32905 $as_echo_n "(cached) " >&6 32906else 32907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32908/* end confdefs.h. */ 32909 32910 #include <sys/timex.h> 32911 #ifndef STA_FLL 32912 # error 32913 #endif 32914 32915_ACEOF 32916if ac_fn_c_try_cpp "$LINENO"; then : 32917 ntp_cv_var_sta_fll=yes 32918else 32919 ntp_cv_var_sta_fll=no 32920 32921fi 32922rm -f conftest.err conftest.i conftest.$ac_ext 32923 32924fi 32925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_var_sta_fll" >&5 32926$as_echo "$ntp_cv_var_sta_fll" >&6; } 32927 32928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have kernel PLL support" >&5 32929$as_echo_n "checking if we have kernel PLL support... " >&6; } 32930if ${ntp_cv_var_kernel_pll+:} false; then : 32931 $as_echo_n "(cached) " >&6 32932else 32933 case "$ac_cv_header_sys_timex_h$ntp_cv_struct_ntptimeval$ntp_cv_var_sta_fll$ntp_cv_var_ntp_syscalls" in 32934 *no*) 32935 ntp_cv_var_kernel_pll=no 32936 ;; 32937 *) ntp_cv_var_kernel_pll=yes 32938 ;; 32939 esac 32940 32941 32942fi 32943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_var_kernel_pll" >&5 32944$as_echo "$ntp_cv_var_kernel_pll" >&6; } 32945case "$ntp_cv_var_kernel_pll" in 32946 yes) 32947 32948$as_echo "#define KERNEL_PLL 1" >>confdefs.h 32949 32950esac 32951 32952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if SIOCGIFCONF returns buffer size in the buffer" >&5 32953$as_echo_n "checking if SIOCGIFCONF returns buffer size in the buffer... " >&6; } 32954if ${ntp_cv_size_returned_in_buffer+:} false; then : 32955 $as_echo_n "(cached) " >&6 32956else 32957 32958 ans=no 32959 case "$host" in 32960 *-fujitsu-uxp*) 32961 ans=yes 32962 ;; 32963 *-ncr-sysv4*) 32964 ans=yes 32965 ;; 32966 *-univel-sysv*) 32967 ans=yes 32968 ;; 32969 esac 32970 ntp_cv_size_returned_in_buffer=$ans 32971 32972 32973fi 32974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_size_returned_in_buffer" >&5 32975$as_echo "$ntp_cv_size_returned_in_buffer" >&6; } 32976case "$ntp_cv_size_returned_in_buffer" in 32977 yes) 32978 32979$as_echo "#define SIZE_RETURNED_IN_BUFFER 1" >>confdefs.h 32980 32981esac 32982 32983# Check for ioctls TIOCGPPSEV 32984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for TTY PPS ioctl TIOCGPPSEV" >&5 32985$as_echo_n "checking for TTY PPS ioctl TIOCGPPSEV... " >&6; } 32986case "$ac_cv_header_termios_h" in 32987 yes) 32988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32989/* end confdefs.h. */ 32990 32991 #include <termios.h> 32992 #ifndef TIOCGPPSEV 32993 # error 32994 #endif 32995 32996_ACEOF 32997if ac_fn_c_try_cpp "$LINENO"; then : 32998 ntp_ok=yes 32999else 33000 ntp_ok=no 33001 33002fi 33003rm -f conftest.err conftest.i conftest.$ac_ext 33004 ;; 33005 *) 33006 ntp_ok=no 33007 ;; 33008esac 33009case "$ntp_ok" in 33010 yes) 33011 33012$as_echo "#define HAVE_TIOCGPPSEV 1" >>confdefs.h 33013 33014esac 33015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 33016$as_echo "$ntp_ok" >&6; } 33017 33018# Check for ioctls TIOCSPPS 33019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for TTY PPS ioctl TIOCSPPS" >&5 33020$as_echo_n "checking for TTY PPS ioctl TIOCSPPS... " >&6; } 33021case "$ac_cv_header_termios_h" in 33022 yes) 33023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33024/* end confdefs.h. */ 33025 33026 #include <termios.h> 33027 #ifndef TIOCSPPS 33028 # error 33029 #endif 33030 33031_ACEOF 33032if ac_fn_c_try_cpp "$LINENO"; then : 33033 ntp_ok=yes 33034else 33035 ntp_ok=no 33036 33037fi 33038rm -f conftest.err conftest.i conftest.$ac_ext 33039 ;; 33040 *) 33041 ntp_ok=no 33042 ;; 33043esac 33044case "$ntp_ok" in 33045 yes) 33046 33047$as_echo "#define HAVE_TIOCSPPS 1" >>confdefs.h 33048 33049esac 33050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 33051$as_echo "$ntp_ok" >&6; } 33052 33053# Check for ioctls CIOGETEV 33054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for TTY PPS ioctl CIOGETEV" >&5 33055$as_echo_n "checking for TTY PPS ioctl CIOGETEV... " >&6; } 33056case "$ac_cv_header_sys_ppsclock_h" in 33057 yes) 33058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33059/* end confdefs.h. */ 33060 33061 #include <sys/ppsclock.h> 33062 #ifndef CIOGETEV 33063 # error 33064 #endif 33065 33066_ACEOF 33067if ac_fn_c_try_cpp "$LINENO"; then : 33068 ntp_ok=yes 33069else 33070 ntp_ok=no 33071 33072fi 33073rm -f conftest.err conftest.i conftest.$ac_ext 33074 ;; 33075 *) 33076 ntp_ok=no 33077 ;; 33078esac 33079case "$ntp_ok" in 33080 yes) 33081 33082$as_echo "#define HAVE_CIOGETEV 1" >>confdefs.h 33083 33084esac 33085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 33086$as_echo "$ntp_ok" >&6; } 33087 33088# ATOM/PPSAPI stuff. 33089 33090ntp_atom_ok=yes 33091 33092# Check for header timepps.h, if found then we have PPS API (Draft RFC) stuff. 33093 33094# The PPSAPI headers need "inline" ($ac_cv_c_inline='inline') 33095# The PPSAPI needs struct timespec. 33096# The PPSAPI also needs a timepps header. 33097 33098case "$ac_cv_c_inline$ntp_cv_struct_timespec" in 33099 inlineyes) 33100 case "$ac_cv_header_timepps_h$ac_cv_header_sys_timepps_h$host_os" in 33101 *yes* | *sunos* | *solaris* | *sco* | *netbsd* ) 33102 33103$as_echo "#define HAVE_PPSAPI 1" >>confdefs.h 33104 33105 ntp_jupiter_ok=yes 33106 ntp_oncore_ok=yes 33107 ntp_parse_ok=yes 33108 ntp_ripe_ncc_ok=yes 33109 ;; 33110 esac 33111 ;; 33112esac 33113 33114# Check for ioctls TIOCGSERIAL, TIOCSSERIAL, ASYNC_PPS_CD_POS, ASYNC_PPS_CD_NEG 33115ac_fn_c_check_header_mongrel "$LINENO" "linux/serial.h" "ac_cv_header_linux_serial_h" "$ac_includes_default" 33116if test "x$ac_cv_header_linux_serial_h" = xyes; then : 33117 33118fi 33119 33120 33121case "$ac_cv_header_sys_ppsclock_h$ac_cv_header_linux_serial_h" in 33122 yesyes) 33123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ioctl TIOCGSERIAL, TIOCSSERIAL, ASYNC_PPS_CD_POS, ASYNC_PPS_CD_NEG" >&5 33124$as_echo_n "checking ioctl TIOCGSERIAL, TIOCSSERIAL, ASYNC_PPS_CD_POS, ASYNC_PPS_CD_NEG... " >&6; } 33125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33126/* end confdefs.h. */ 33127 33128 #include <sys/time.h> 33129 typedef int u_int; 33130 #include <sys/ppsclock.h> 33131 #include <linux/serial.h> 33132 33133 #ifndef TIOCGSERIAL 33134 # error 33135 #endif 33136 #ifndef TIOCSSERIAL 33137 # error 33138 #endif 33139 #ifndef ASYNC_PPS_CD_POS 33140 # error 33141 #endif 33142 #ifndef ASYNC_PPS_CD_NEG 33143 # error 33144 #endif 33145 #ifndef CIOGETEV 33146 # error 33147 #endif 33148 33149_ACEOF 33150if ac_fn_c_try_cpp "$LINENO"; then : 33151 ntp_ok=yes 33152else 33153 ntp_ok=no 33154 33155fi 33156rm -f conftest.err conftest.i conftest.$ac_ext 33157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 33158$as_echo "$ntp_ok" >&6; } 33159 ;; 33160 *) 33161 ntp_ok=no 33162 ;; 33163esac 33164case "$ntp_ok" in 33165 yes) 33166 33167$as_echo "#define HAVE_TIO_SERIAL_STUFF 1" >>confdefs.h 33168 33169esac 33170 33171# Check for SHMEM_STATUS support 33172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking SHMEM_STATUS support" >&5 33173$as_echo_n "checking SHMEM_STATUS support... " >&6; } 33174case "$ac_cv_header_sys_mman_h" in 33175 yes) 33176 ntp_ok=yes 33177 ;; 33178 *) 33179 ntp_ok=no 33180 ;; 33181esac 33182case "$ntp_ok" in 33183 yes) 33184 33185$as_echo "#define ONCORE_SHMEM_STATUS 1" >>confdefs.h 33186 33187esac 33188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 33189$as_echo "$ntp_ok" >&6; } 33190 33191ntp_refclock=no 33192 33193# HPUX only, and by explicit request 33194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Datum/Bancomm bc635/VME interface" >&5 33195$as_echo_n "checking Datum/Bancomm bc635/VME interface... " >&6; } 33196# Check whether --enable-BANCOMM was given. 33197if test "${enable_BANCOMM+set}" = set; then : 33198 enableval=$enable_BANCOMM; ntp_ok=$enableval 33199else 33200 ntp_ok=no 33201 33202fi 33203 33204case "$ntp_ok" in 33205 yes) 33206 ntp_refclock=yes 33207 33208$as_echo "#define CLOCK_BANC 1" >>confdefs.h 33209 33210 ;; 33211esac 33212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 33213$as_echo "$ntp_ok" >&6; } 33214case "$ntp_ok$host" in 33215 yes*-*-hpux*) ;; 33216 yes*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5 33217$as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;; 33218esac 33219 33220#HPUX only, and only by explicit request 33221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking TrueTime GPS receiver/VME interface" >&5 33222$as_echo_n "checking TrueTime GPS receiver/VME interface... " >&6; } 33223# Check whether --enable-GPSVME was given. 33224if test "${enable_GPSVME+set}" = set; then : 33225 enableval=$enable_GPSVME; ntp_ok=$enableval 33226else 33227 ntp_ok=no 33228 33229fi 33230 33231case "$ntp_ok" in 33232 yes) 33233 ntp_refclock=yes 33234 33235$as_echo "#define CLOCK_GPSVME 1" >>confdefs.h 33236 33237 ;; 33238esac 33239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 33240$as_echo "$ntp_ok" >&6; } 33241case "$ntp_ok$host" in 33242 yes*-*-hpux*) ;; 33243 yes*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5 33244$as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;; 33245esac 33246 33247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL720 clock support" >&5 33248$as_echo_n "checking for PCL720 clock support... " >&6; } 33249case "$ac_cv_header_machine_inline_h$ac_cv_header_sys_pcl720_h$ac_cv_header_sys_i8253_h" in 33250 yesyesyes) 33251 33252$as_echo "#define CLOCK_PPS720 1" >>confdefs.h 33253 33254 ans=yes 33255 ;; 33256 *) 33257 ans=no 33258 ;; 33259esac 33260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 33261$as_echo "$ans" >&6; } 33262 33263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default inclusion of all suitable non-PARSE clocks" >&5 33264$as_echo_n "checking for default inclusion of all suitable non-PARSE clocks... " >&6; } 33265# Check whether --enable-all-clocks was given. 33266if test "${enable_all_clocks+set}" = set; then : 33267 enableval=$enable_all_clocks; ntp_eac=$enableval 33268else 33269 ntp_eac=yes 33270 33271fi 33272 33273{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_eac" >&5 33274$as_echo "$ntp_eac" >&6; } 33275 33276# HMS: Should we also require ntp_parse_ok? 33277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have support for PARSE clocks" >&5 33278$as_echo_n "checking if we have support for PARSE clocks... " >&6; } 33279case "$ntp_atom_ok$ac_cv_header_termio_h$ac_cv_header_termios_h" in 33280 yes*yes*) 33281 ntp_canparse=yes 33282 ;; 33283 *) ntp_canparse=no 33284 ;; 33285esac 33286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_canparse" >&5 33287$as_echo "$ntp_canparse" >&6; } 33288 33289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have support for audio clocks" >&5 33290$as_echo_n "checking if we have support for audio clocks... " >&6; } 33291case "$ac_cv_header_sun_audioio_h$ac_cv_header_sys_audioio_h$ac_cv_header_machine_soundcard_h$ac_cv_header_sys_soundcard_h" in 33292 *yes*) 33293 ntp_canaudio=yes 33294 33295$as_echo "#define HAVE_AUDIO /**/" >>confdefs.h 33296 33297 ;; 33298 *) ntp_canaudio=no ;; 33299esac 33300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_canaudio" >&5 33301$as_echo "$ntp_canaudio" >&6; } 33302 33303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have support for the SHM refclock interface" >&5 33304$as_echo_n "checking if we have support for the SHM refclock interface... " >&6; } 33305case "$ac_cv_header_sys_ipc_h$ac_cv_header_sys_shm_h" in 33306 yesyes) 33307 ntp_canshm=yes 33308 ;; 33309 *) ntp_canshm=no ;; 33310esac 33311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_canshm" >&5 33312$as_echo "$ntp_canshm" >&6; } 33313 33314# Test for termios TIOCMBIS modem control (ACTS, Heath, Palisade) 33315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for termios modem control" >&5 33316$as_echo_n "checking for termios modem control... " >&6; } 33317if ${ntp_cv_modem_control+:} false; then : 33318 $as_echo_n "(cached) " >&6 33319else 33320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33321/* end confdefs.h. */ 33322 33323 #ifdef HAVE_UNISTD_H 33324 # include <unistd.h> 33325 #endif 33326 #ifdef HAVE_TERMIOS_H 33327 # include <termios.h> 33328 #endif 33329 #ifdef HAVE_SYS_IOCTL_H 33330 # include <sys/ioctl.h> 33331 #endif 33332 33333int 33334main () 33335{ 33336 33337 int dtr = TIOCM_DTR; 33338 33339 ioctl(1, TIOCMBIS, (char *)&dtr); 33340 33341 33342 ; 33343 return 0; 33344} 33345_ACEOF 33346if ac_fn_c_try_compile "$LINENO"; then : 33347 ntp_cv_modem_control=yes 33348else 33349 ntp_cv_modem_control=no 33350 33351fi 33352rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 33353 33354fi 33355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_modem_control" >&5 33356$as_echo "$ntp_cv_modem_control" >&6; } 33357case "$ntp_eac::$ntp_cv_modem_control" in 33358 yes::yes) 33359 ntp_enable_all_modem_control_clocks=yes 33360 ;; 33361 *) 33362 ntp_enable_all_modem_control_clocks=no 33363 ;; 33364esac 33365 33366# Requires modem control 33367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking ACTS modem service" >&5 33368$as_echo_n "checking ACTS modem service... " >&6; } 33369# Check whether --enable-ACTS was given. 33370if test "${enable_ACTS+set}" = set; then : 33371 enableval=$enable_ACTS; ntp_ok=$enableval 33372else 33373 ntp_ok=$ntp_enable_all_modem_control_clocks 33374 33375fi 33376 33377case "$ntp_ok" in 33378 yes) 33379 ntp_refclock=yes 33380 33381$as_echo "#define CLOCK_ACTS 1" >>confdefs.h 33382 33383 ;; 33384esac 33385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 33386$as_echo "$ntp_ok" >&6; } 33387 33388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Arbiter 1088A/B GPS receiver" >&5 33389$as_echo_n "checking Arbiter 1088A/B GPS receiver... " >&6; } 33390# Check whether --enable-ARBITER was given. 33391if test "${enable_ARBITER+set}" = set; then : 33392 enableval=$enable_ARBITER; ntp_ok=$enableval 33393else 33394 ntp_ok=$ntp_eac 33395 33396fi 33397 33398case "$ntp_ok" in 33399 yes) 33400 ntp_refclock=yes 33401 33402$as_echo "#define CLOCK_ARBITER 1" >>confdefs.h 33403 33404 ;; 33405esac 33406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 33407$as_echo "$ntp_ok" >&6; } 33408 33409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Arcron MSF receiver" >&5 33410$as_echo_n "checking Arcron MSF receiver... " >&6; } 33411# Check whether --enable-ARCRON_MSF was given. 33412if test "${enable_ARCRON_MSF+set}" = set; then : 33413 enableval=$enable_ARCRON_MSF; ntp_ok=$enableval 33414else 33415 ntp_ok=$ntp_eac 33416 33417fi 33418 33419case "$ntp_ok" in 33420 yes) 33421 ntp_refclock=yes 33422 33423$as_echo "#define CLOCK_ARCRON_MSF 1" >>confdefs.h 33424 33425 ;; 33426esac 33427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 33428$as_echo "$ntp_ok" >&6; } 33429 33430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Austron 2200A/2201A GPS receiver" >&5 33431$as_echo_n "checking Austron 2200A/2201A GPS receiver... " >&6; } 33432# Check whether --enable-AS2201 was given. 33433if test "${enable_AS2201+set}" = set; then : 33434 enableval=$enable_AS2201; ntp_ok=$enableval 33435else 33436 ntp_ok=$ntp_eac 33437 33438fi 33439 33440case "$ntp_ok" in 33441 yes) 33442 ntp_refclock=yes 33443 33444$as_echo "#define CLOCK_AS2201 1" >>confdefs.h 33445 33446 ;; 33447esac 33448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 33449$as_echo "$ntp_ok" >&6; } 33450 33451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking ATOM PPS interface" >&5 33452$as_echo_n "checking ATOM PPS interface... " >&6; } 33453# Check whether --enable-ATOM was given. 33454if test "${enable_ATOM+set}" = set; then : 33455 enableval=$enable_ATOM; ntp_ok=$enableval 33456else 33457 ntp_ok=$ntp_eac 33458 33459fi 33460 33461case "$ntp_atom_ok" in 33462 no) ntp_ok=no ;; 33463esac 33464case "$ntp_ok" in 33465 yes) 33466 ntp_refclock=yes 33467 33468$as_echo "#define CLOCK_ATOM 1" >>confdefs.h 33469 33470 ;; 33471esac 33472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 33473$as_echo "$ntp_ok" >&6; } 33474 33475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Chrono-log K-series WWVB receiver" >&5 33476$as_echo_n "checking Chrono-log K-series WWVB receiver... " >&6; } 33477# Check whether --enable-CHRONOLOG was given. 33478if test "${enable_CHRONOLOG+set}" = set; then : 33479 enableval=$enable_CHRONOLOG; ntp_ok=$enableval 33480else 33481 ntp_ok=$ntp_eac 33482 33483fi 33484 33485case "$ntp_ok" in 33486 yes) 33487 ntp_refclock=yes 33488 33489$as_echo "#define CLOCK_CHRONOLOG 1" >>confdefs.h 33490 33491 ;; 33492esac 33493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 33494$as_echo "$ntp_ok" >&6; } 33495 33496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CHU modem/decoder" >&5 33497$as_echo_n "checking CHU modem/decoder... " >&6; } 33498# Check whether --enable-CHU was given. 33499if test "${enable_CHU+set}" = set; then : 33500 enableval=$enable_CHU; ntp_ok=$enableval 33501else 33502 ntp_ok=$ntp_eac 33503 33504fi 33505 33506case "$ntp_ok" in 33507 yes) 33508 ntp_refclock=yes 33509 33510$as_echo "#define CLOCK_CHU 1" >>confdefs.h 33511 33512 ;; 33513esac 33514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 33515$as_echo "$ntp_ok" >&6; } 33516ntp_refclock_chu=$ntp_ok 33517 33518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CHU audio/decoder" >&5 33519$as_echo_n "checking CHU audio/decoder... " >&6; } 33520# Check whether --enable-AUDIO-CHU was given. 33521if test "${enable_AUDIO_CHU+set}" = set; then : 33522 enableval=$enable_AUDIO_CHU; ntp_ok=$enableval 33523else 33524 33525 case "$ntp_eac$ntp_refclock_chu$ntp_canaudio" in 33526 *no*) ntp_ok=no ;; 33527 *) ntp_ok=yes ;; 33528 esac 33529 33530 33531fi 33532 33533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 33534$as_echo "$ntp_ok" >&6; } 33535# We used to check for sunos/solaris target... 33536case "$ntp_ok$ntp_refclock_chu$ntp_canaudio" in 33537 yes*no*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is...no ***" >&5 33538$as_echo "$as_me: WARNING: *** But the expected answer is...no ***" >&2;} 33539esac 33540 33541# Not under HP-UX 33542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Datum Programmable Time System" >&5 33543$as_echo_n "checking Datum Programmable Time System... " >&6; } 33544# Check whether --enable-DATUM was given. 33545if test "${enable_DATUM+set}" = set; then : 33546 enableval=$enable_DATUM; ntp_ok=$enableval 33547else 33548 33549 case "$ac_cv_header_termios_h" in 33550 yes) 33551 ntp_ok=$ntp_eac 33552 ;; 33553 *) ntp_ok=no 33554 ;; 33555 esac 33556 33557 33558fi 33559 33560case "$ntp_ok" in 33561 yes) 33562 ntp_refclock=yes 33563 33564$as_echo "#define CLOCK_DATUM 1" >>confdefs.h 33565 33566 ;; 33567esac 33568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 33569$as_echo "$ntp_ok" >&6; } 33570 33571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Dumb generic hh:mm:ss local clock" >&5 33572$as_echo_n "checking Dumb generic hh:mm:ss local clock... " >&6; } 33573# Check whether --enable-DUMBCLOCK was given. 33574if test "${enable_DUMBCLOCK+set}" = set; then : 33575 enableval=$enable_DUMBCLOCK; ntp_ok=$enableval 33576else 33577 ntp_ok=$ntp_eac 33578 33579fi 33580 33581case "$ntp_ok" in 33582 yes) 33583 ntp_refclock=yes 33584 33585$as_echo "#define CLOCK_DUMBCLOCK 1" >>confdefs.h 33586 33587 ;; 33588esac 33589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 33590$as_echo "$ntp_ok" >&6; } 33591 33592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Forum Graphic GPS" >&5 33593$as_echo_n "checking Forum Graphic GPS... " >&6; } 33594# Check whether --enable-FG was given. 33595if test "${enable_FG+set}" = set; then : 33596 enableval=$enable_FG; ntp_ok=$enableval 33597else 33598 ntp_ok=$ntp_eac 33599 33600fi 33601 33602case "$ntp_ok" in 33603 yes) 33604 ntp_refclock=yes 33605 33606$as_echo "#define CLOCK_FG 1" >>confdefs.h 33607 33608 ;; 33609esac 33610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 33611$as_echo "$ntp_ok" >&6; } 33612 33613# Requires modem control 33614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Heath GC-1000 WWV/WWVH receiver" >&5 33615$as_echo_n "checking Heath GC-1000 WWV/WWVH receiver... " >&6; } 33616# Check whether --enable-HEATH was given. 33617if test "${enable_HEATH+set}" = set; then : 33618 enableval=$enable_HEATH; ntp_ok=$enableval 33619else 33620 ntp_ok=$ntp_enable_all_modem_control_clocks 33621 33622fi 33623 33624case "$ntp_ok" in 33625 yes) 33626 ntp_refclock=yes 33627 33628$as_echo "#define CLOCK_HEATH 1" >>confdefs.h 33629 33630 ;; 33631esac 33632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 33633$as_echo "$ntp_ok" >&6; } 33634 33635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for hopf serial clock device" >&5 33636$as_echo_n "checking for hopf serial clock device... " >&6; } 33637# Check whether --enable-HOPFSERIAL was given. 33638if test "${enable_HOPFSERIAL+set}" = set; then : 33639 enableval=$enable_HOPFSERIAL; ntp_ok=$enableval 33640else 33641 ntp_ok=$ntp_eac 33642 33643fi 33644 33645case "$ntp_ok" in 33646 yes) 33647 ntp_refclock=yes 33648 33649$as_echo "#define CLOCK_HOPF_SERIAL 1" >>confdefs.h 33650 33651 ;; 33652esac 33653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 33654$as_echo "$ntp_ok" >&6; } 33655 33656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for hopf PCI clock 6039" >&5 33657$as_echo_n "checking for hopf PCI clock 6039... " >&6; } 33658# Check whether --enable-HOPFPCI was given. 33659if test "${enable_HOPFPCI+set}" = set; then : 33660 enableval=$enable_HOPFPCI; ntp_ok=$enableval 33661else 33662 ntp_ok=$ntp_eac 33663 33664fi 33665 33666case "$ntp_ok" in 33667 yes) 33668 ntp_refclock=yes 33669 33670$as_echo "#define CLOCK_HOPF_PCI 1" >>confdefs.h 33671 33672 ;; 33673esac 33674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 33675$as_echo "$ntp_ok" >&6; } 33676 33677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking HP 58503A GPS receiver" >&5 33678$as_echo_n "checking HP 58503A GPS receiver... " >&6; } 33679# Check whether --enable-HPGPS was given. 33680if test "${enable_HPGPS+set}" = set; then : 33681 enableval=$enable_HPGPS; ntp_ok=$enableval 33682else 33683 ntp_ok=$ntp_eac 33684 33685fi 33686 33687case "$ntp_ok" in 33688 yes) 33689 ntp_refclock=yes 33690 33691$as_echo "#define CLOCK_HPGPS 1" >>confdefs.h 33692 33693 ;; 33694esac 33695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 33696$as_echo "$ntp_ok" >&6; } 33697 33698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking IRIG audio decoder" >&5 33699$as_echo_n "checking IRIG audio decoder... " >&6; } 33700# Check whether --enable-IRIG was given. 33701if test "${enable_IRIG+set}" = set; then : 33702 enableval=$enable_IRIG; ntp_ok=$enableval 33703else 33704 33705 case "$ntp_eac$ntp_canaudio" in 33706 *no*) ntp_ok=no ;; 33707 *) ntp_ok=yes ;; 33708 esac 33709 33710 33711fi 33712 33713case "$ntp_ok" in 33714 yes) 33715 ntp_refclock=yes 33716 33717$as_echo "#define CLOCK_IRIG 1" >>confdefs.h 33718 33719 ;; 33720esac 33721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 33722$as_echo "$ntp_ok" >&6; } 33723case "$ntp_ok$ntp_canaudio" in 33724 yesno) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5 33725$as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} 33726esac 33727 33728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JJY receiver" >&5 33729$as_echo_n "checking for JJY receiver... " >&6; } 33730# Check whether --enable-JJY was given. 33731if test "${enable_JJY+set}" = set; then : 33732 enableval=$enable_JJY; ntp_ok=$enableval 33733else 33734 ntp_ok=$ntp_eac 33735 33736fi 33737 33738case "$ntp_ok" in 33739 yes) 33740 ntp_refclock=yes 33741 33742$as_echo "#define CLOCK_JJY 1" >>confdefs.h 33743 33744 ;; 33745esac 33746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 33747$as_echo "$ntp_ok" >&6; } 33748 33749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Rockwell Jupiter GPS receiver" >&5 33750$as_echo_n "checking Rockwell Jupiter GPS receiver... " >&6; } 33751# Check whether --enable-JUPITER was given. 33752if test "${enable_JUPITER+set}" = set; then : 33753 enableval=$enable_JUPITER; ntp_ok=$enableval 33754else 33755 ntp_ok=$ntp_eac 33756fi 33757 33758case "$ntp_jupiter_ok" in 33759 no) ntp_ok=no ;; 33760esac 33761case "$ntp_ok" in 33762 yes) 33763 ntp_refclock=yes 33764 33765$as_echo "#define CLOCK_JUPITER 1" >>confdefs.h 33766 33767 ;; 33768esac 33769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 33770$as_echo "$ntp_ok" >&6; } 33771 33772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Leitch CSD 5300 Master Clock System Driver" >&5 33773$as_echo_n "checking Leitch CSD 5300 Master Clock System Driver... " >&6; } 33774# Check whether --enable-LEITCH was given. 33775if test "${enable_LEITCH+set}" = set; then : 33776 enableval=$enable_LEITCH; ntp_ok=$enableval 33777else 33778 ntp_ok=$ntp_eac 33779 33780fi 33781 33782case "$ntp_ok" in 33783 yes) 33784 ntp_refclock=yes 33785 33786$as_echo "#define CLOCK_LEITCH 1" >>confdefs.h 33787 33788 ;; 33789esac 33790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 33791$as_echo "$ntp_ok" >&6; } 33792 33793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking local clock reference" >&5 33794$as_echo_n "checking local clock reference... " >&6; } 33795# Check whether --enable-LOCAL-CLOCK was given. 33796if test "${enable_LOCAL_CLOCK+set}" = set; then : 33797 enableval=$enable_LOCAL_CLOCK; ntp_ok=$enableval 33798else 33799 ntp_ok=$ntp_eac 33800 33801fi 33802 33803case "$ntp_ok" in 33804 yes) 33805 ntp_refclock=yes 33806 33807$as_echo "#define CLOCK_LOCAL 1" >>confdefs.h 33808 33809 ;; 33810esac 33811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 33812$as_echo "$ntp_ok" >&6; } 33813 33814 33815# Not Ultrix 33816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Magnavox MX4200 GPS receiver" >&5 33817$as_echo_n "checking Magnavox MX4200 GPS receiver... " >&6; } 33818# Check whether --enable-MX4200 was given. 33819if test "${enable_MX4200+set}" = set; then : 33820 enableval=$enable_MX4200; ntp_ok=$enableval 33821else 33822 33823 case "$ac_cv_var_ppsclock" in 33824 yes) 33825 ntp_ok=$ntp_eac 33826 ;; 33827 *) 33828 ntp_ok=no 33829 ;; 33830 esac 33831 33832 33833fi 33834 33835case "$ntp_ok" in 33836 yes) 33837 ntp_refclock=yes 33838 33839$as_echo "#define CLOCK_MX4200 1" >>confdefs.h 33840 33841 ;; 33842esac 33843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 33844$as_echo "$ntp_ok" >&6; } 33845case "$ntp_ok$host" in 33846 yes*-*-ultrix*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5 33847$as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} 33848esac 33849 33850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for NeoClock4X receiver" >&5 33851$as_echo_n "checking for NeoClock4X receiver... " >&6; } 33852# Check whether --enable-NEOCLOCK4X was given. 33853if test "${enable_NEOCLOCK4X+set}" = set; then : 33854 enableval=$enable_NEOCLOCK4X; ntp_ok=$enableval 33855else 33856 ntp_ok=$ntp_eac 33857 33858fi 33859 33860case "$ntp_ok" in 33861 yes) 33862 ntp_refclock=yes 33863 33864$as_echo "#define CLOCK_NEOCLOCK4X 1" >>confdefs.h 33865 33866 ;; 33867esac 33868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 33869$as_echo "$ntp_ok" >&6; } 33870 33871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking NMEA GPS receiver" >&5 33872$as_echo_n "checking NMEA GPS receiver... " >&6; } 33873# Check whether --enable-NMEA was given. 33874if test "${enable_NMEA+set}" = set; then : 33875 enableval=$enable_NMEA; ntp_ok=$enableval 33876else 33877 ntp_ok=$ntp_eac 33878 33879fi 33880 33881case "$ntp_ok" in 33882 yes) 33883 ntp_refclock=yes 33884 33885$as_echo "#define CLOCK_NMEA 1" >>confdefs.h 33886 33887 ;; 33888esac 33889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 33890$as_echo "$ntp_ok" >&6; } 33891 33892for ac_func in strtoll 33893do : 33894 ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll" 33895if test "x$ac_cv_func_strtoll" = xyes; then : 33896 cat >>confdefs.h <<_ACEOF 33897#define HAVE_STRTOLL 1 33898_ACEOF 33899 33900fi 33901done 33902 33903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GPSD JSON receiver" >&5 33904$as_echo_n "checking for GPSD JSON receiver... " >&6; } 33905# Check whether --enable-GPSD was given. 33906if test "${enable_GPSD+set}" = set; then : 33907 enableval=$enable_GPSD; ntp_ok=$enableval 33908else 33909 case "$ac_cv_func_strtoll" in 33910 yes) ntp_ok=$ntp_eac ;; 33911 *) ntp_ok="no" ;; 33912 esac 33913 33914fi 33915 33916case "$ntp_ok" in 33917 yes) 33918 ntp_refclock=yes 33919 33920$as_echo "#define CLOCK_GPSDJSON 1" >>confdefs.h 33921 33922 ;; 33923esac 33924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 33925$as_echo "$ntp_ok" >&6; } 33926 33927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ONCORE Motorola VP/UT Oncore GPS" >&5 33928$as_echo_n "checking for ONCORE Motorola VP/UT Oncore GPS... " >&6; } 33929# Check whether --enable-ONCORE was given. 33930if test "${enable_ONCORE+set}" = set; then : 33931 enableval=$enable_ONCORE; ntp_ok=$enableval 33932else 33933 ntp_ok=$ntp_eac 33934 33935fi 33936 33937case "$ntp_oncore_ok" in 33938 no) ntp_ok=no ;; 33939esac 33940case "$ntp_ok" in 33941 yes) 33942 ntp_refclock=yes 33943 33944$as_echo "#define CLOCK_ONCORE 1" >>confdefs.h 33945 33946 ;; 33947esac 33948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 33949$as_echo "$ntp_ok" >&6; } 33950 33951# Requires modem control 33952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Palisade clock" >&5 33953$as_echo_n "checking for Palisade clock... " >&6; } 33954# Check whether --enable-PALISADE was given. 33955if test "${enable_PALISADE+set}" = set; then : 33956 enableval=$enable_PALISADE; ntp_ok=$enableval 33957else 33958 ntp_ok=$ntp_enable_all_modem_control_clocks 33959 33960fi 33961 33962case "$ntp_ok" in 33963 yes) 33964 ntp_refclock=yes 33965 33966$as_echo "#define CLOCK_PALISADE 1" >>confdefs.h 33967 33968 ;; 33969esac 33970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 33971$as_echo "$ntp_ok" >&6; } 33972 33973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Conrad parallel port radio clock" >&5 33974$as_echo_n "checking Conrad parallel port radio clock... " >&6; } 33975# Check whether --enable-PCF was given. 33976if test "${enable_PCF+set}" = set; then : 33977 enableval=$enable_PCF; ntp_ok=$enableval 33978else 33979 ntp_ok=$ntp_eac 33980 33981fi 33982 33983case "$ntp_ok" in 33984 yes) 33985 ntp_refclock=yes 33986 33987$as_echo "#define CLOCK_PCF 1" >>confdefs.h 33988 33989 ;; 33990esac 33991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 33992$as_echo "$ntp_ok" >&6; } 33993 33994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking PST/Traconex 1020 WWV/WWVH receiver" >&5 33995$as_echo_n "checking PST/Traconex 1020 WWV/WWVH receiver... " >&6; } 33996# Check whether --enable-PST was given. 33997if test "${enable_PST+set}" = set; then : 33998 enableval=$enable_PST; ntp_ok=$enableval 33999else 34000 ntp_ok=$ntp_eac 34001 34002fi 34003 34004case "$ntp_ok" in 34005 yes) 34006 ntp_refclock=yes 34007 34008$as_echo "#define CLOCK_PST 1" >>confdefs.h 34009 34010 ;; 34011esac 34012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 34013$as_echo "$ntp_ok" >&6; } 34014 34015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking RIPENCC specific Trimble driver" >&5 34016$as_echo_n "checking RIPENCC specific Trimble driver... " >&6; } 34017# Check whether --enable-RIPENCC was given. 34018if test "${enable_RIPENCC+set}" = set; then : 34019 enableval=$enable_RIPENCC; ntp_ok=$enableval 34020else 34021 ntp_ok=no 34022 34023fi 34024 34025# 020629: HMS: s/$ntp_eac -> -/no because of ptr += sprintf(ptr, ...) usage 34026case "$ntp_ripe_ncc_ok" in 34027 no) ntp_ok=no ;; 34028esac 34029case "$ntp_ok" in 34030 yes) 34031 ntp_refclock=yes 34032 34033$as_echo "#define CLOCK_RIPENCC /**/" >>confdefs.h 34034 34035 ;; 34036esac 34037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 34038$as_echo "$ntp_ok" >&6; } 34039 34040# Danny Meyer says SHM compiles (with a few warnings) under Win32. 34041# For *IX, we need sys/ipc.h and sys/shm.h. 34042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SHM clock attached thru shared memory" >&5 34043$as_echo_n "checking for SHM clock attached thru shared memory... " >&6; } 34044# Check whether --enable-SHM was given. 34045if test "${enable_SHM+set}" = set; then : 34046 enableval=$enable_SHM; ntp_ok=$enableval 34047else 34048 34049 case "$ntp_eac$ntp_canshm" in 34050 *no*) ntp_ok=no ;; 34051 *) ntp_ok=yes ;; 34052 esac 34053 34054 34055fi 34056 34057case "$ntp_ok" in 34058 yes) 34059 ntp_refclock=yes 34060 34061$as_echo "#define CLOCK_SHM 1" >>confdefs.h 34062 34063 ;; 34064esac 34065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 34066$as_echo "$ntp_ok" >&6; } 34067 34068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Spectracom 8170/Netclock/2 WWVB receiver" >&5 34069$as_echo_n "checking Spectracom 8170/Netclock/2 WWVB receiver... " >&6; } 34070# Check whether --enable-SPECTRACOM was given. 34071if test "${enable_SPECTRACOM+set}" = set; then : 34072 enableval=$enable_SPECTRACOM; ntp_ok=$enableval 34073else 34074 ntp_ok=$ntp_eac 34075 34076fi 34077 34078case "$ntp_ok" in 34079 yes) 34080 ntp_refclock=yes 34081 34082$as_echo "#define CLOCK_SPECTRACOM 1" >>confdefs.h 34083 34084 ;; 34085esac 34086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 34087$as_echo "$ntp_ok" >&6; } 34088 34089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking KSI/Odetics TPRO/S GPS receiver/IRIG interface" >&5 34090$as_echo_n "checking KSI/Odetics TPRO/S GPS receiver/IRIG interface... " >&6; } 34091# Check whether --enable-TPRO was given. 34092if test "${enable_TPRO+set}" = set; then : 34093 enableval=$enable_TPRO; ntp_ok=$enableval 34094else 34095 34096 case "$ac_cv_header_sys_tpro_h" in 34097 yes) 34098 ntp_ok=$ntp_eac 34099 ;; 34100 *) 34101 ntp_ok=no 34102 ;; 34103 esac 34104 34105 34106fi 34107 34108case "$ntp_ok" in 34109 yes) 34110 ntp_refclock=yes 34111 34112$as_echo "#define CLOCK_TPRO 1" >>confdefs.h 34113 34114 ;; 34115esac 34116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 34117$as_echo "$ntp_ok" >&6; } 34118case "$ntp_ok$ac_cv_header_sys_tpro" in 34119 yesno) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5 34120$as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} 34121esac 34122 34123# Not on a vax-dec-bsd 34124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Kinemetrics/TrueTime receivers" >&5 34125$as_echo_n "checking Kinemetrics/TrueTime receivers... " >&6; } 34126# Check whether --enable-TRUETIME was given. 34127if test "${enable_TRUETIME+set}" = set; then : 34128 enableval=$enable_TRUETIME; ntp_ok=$enableval 34129else 34130 34131 case "$host" in 34132 vax-dec-bsd) 34133 ntp_ok=no 34134 ;; 34135 *) 34136 ntp_ok=$ntp_eac 34137 ;; 34138 esac 34139 34140 34141fi 34142 34143case "$ntp_ok" in 34144 yes) 34145 ntp_refclock=yes 34146 34147$as_echo "#define CLOCK_TRUETIME 1" >>confdefs.h 34148 34149 ;; 34150esac 34151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 34152$as_echo "$ntp_ok" >&6; } 34153case "$ntp_ok$host" in 34154 yesvax-dec-bsd) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5 34155$as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} 34156esac 34157 34158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking TrueTime 560 IRIG-B decoder" >&5 34159$as_echo_n "checking TrueTime 560 IRIG-B decoder... " >&6; } 34160# Check whether --enable-TT560 was given. 34161if test "${enable_TT560+set}" = set; then : 34162 enableval=$enable_TT560; ntp_ok=$enableval 34163else 34164 ntp_ok=no 34165 34166fi 34167 34168case "$ntp_ok" in 34169 yes) 34170 ntp_refclock=yes 34171 34172$as_echo "#define CLOCK_TT560 /**/" >>confdefs.h 34173 34174 ;; 34175esac 34176{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 34177$as_echo "$ntp_ok" >&6; } 34178 34179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Ultralink M320 WWVB receiver" >&5 34180$as_echo_n "checking Ultralink M320 WWVB receiver... " >&6; } 34181# Check whether --enable-ULINK was given. 34182if test "${enable_ULINK+set}" = set; then : 34183 enableval=$enable_ULINK; ntp_ok=$enableval 34184else 34185 ntp_ok=$ntp_eac 34186 34187fi 34188 34189case "$ntp_ok" in 34190 yes) 34191 ntp_refclock=yes 34192 34193$as_echo "#define CLOCK_ULINK 1" >>confdefs.h 34194 34195 ;; 34196esac 34197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 34198$as_echo "$ntp_ok" >&6; } 34199 34200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Spectracom TSYNC PCI timing board" >&5 34201$as_echo_n "checking Spectracom TSYNC PCI timing board... " >&6; } 34202# Check whether --enable-TSYNCPCI was given. 34203if test "${enable_TSYNCPCI+set}" = set; then : 34204 enableval=$enable_TSYNCPCI; ntp_ok=$enableval 34205else 34206 34207 case "$host" in 34208 *-*-*linux*) 34209 ntp_ok=$ntp_eac 34210 ;; 34211 *) 34212 ntp_ok=no 34213 esac 34214 34215 34216fi 34217 34218case "$ntp_ok" in 34219 yes) 34220 ntp_refclock=yes 34221 34222$as_echo "#define CLOCK_TSYNCPCI 1" >>confdefs.h 34223 34224 ;; 34225esac 34226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 34227$as_echo "$ntp_ok" >&6; } 34228 34229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking WWV receiver" >&5 34230$as_echo_n "checking WWV receiver... " >&6; } 34231# Check whether --enable-WWV was given. 34232if test "${enable_WWV+set}" = set; then : 34233 enableval=$enable_WWV; ntp_ok=$enableval 34234else 34235 34236 case "$ntp_eac$ntp_canaudio" in 34237 *no*) ntp_ok=no ;; 34238 *) ntp_ok=yes ;; 34239 esac 34240 34241 34242fi 34243 34244case "$ntp_ok" in 34245 yes) 34246 ntp_refclock=yes 34247 34248$as_echo "#define CLOCK_WWV 1" >>confdefs.h 34249 34250 ;; 34251esac 34252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 34253$as_echo "$ntp_ok" >&6; } 34254case "$ntp_ok$ntp_canaudio" in 34255 yesno) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5 34256$as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} 34257esac 34258 34259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Zyfer receiver" >&5 34260$as_echo_n "checking for Zyfer receiver... " >&6; } 34261# Check whether --enable-ZYFER was given. 34262if test "${enable_ZYFER+set}" = set; then : 34263 enableval=$enable_ZYFER; ntp_ok=$enableval 34264else 34265 ntp_ok=$ntp_eac 34266 34267fi 34268 34269case "$ntp_ok" in 34270 yes) 34271 ntp_refclock=yes 34272 34273$as_echo "#define CLOCK_ZYFER 1" >>confdefs.h 34274 34275 ;; 34276esac 34277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 34278$as_echo "$ntp_ok" >&6; } 34279 34280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default inclusion of all suitable PARSE clocks" >&5 34281$as_echo_n "checking for default inclusion of all suitable PARSE clocks... " >&6; } 34282# Check whether --enable-parse-clocks was given. 34283if test "${enable_parse_clocks+set}" = set; then : 34284 enableval=$enable_parse_clocks; ntp_eapc=$enableval 34285else 34286 34287 case "$ntp_eac" in 34288 yes) ntp_eapc=$ntp_canparse ;; 34289 *) ntp_eapc=no ;; 34290 esac 34291 # Delete the next line one of these days 34292 ntp_eapc=no 34293 34294 34295fi 34296 34297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_eapc" >&5 34298$as_echo "$ntp_eapc" >&6; } 34299 34300case "$ntp_eac$ntp_eapc$ntp_canparse" in 34301 noyes*) 34302 as_fn_error $? "\"--enable-parse-clocks\" requires \"--enable-all-clocks\"." "$LINENO" 5 34303 ;; 34304 yesyesno) 34305 as_fn_error $? "You said \"--enable-parse-clocks\" but PARSE isn't supported on this platform!" "$LINENO" 5 34306 ;; 34307esac 34308 34309ntp_libparse=no 34310ntp_parseutil=no 34311ntp_rawdcf=no 34312 34313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Diem Computime Radio Clock" >&5 34314$as_echo_n "checking Diem Computime Radio Clock... " >&6; } 34315# Check whether --enable-COMPUTIME was given. 34316if test "${enable_COMPUTIME+set}" = set; then : 34317 enableval=$enable_COMPUTIME; ntp_ok=$enableval 34318else 34319 ntp_ok=$ntp_eapc 34320 34321fi 34322 34323case "$ntp_ok" in 34324 yes) 34325 ntp_libparse=yes 34326 ntp_refclock=yes 34327 34328$as_echo "#define CLOCK_COMPUTIME 1" >>confdefs.h 34329 34330 ;; 34331esac 34332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 34333$as_echo "$ntp_ok" >&6; } 34334case "$ntp_ok$ntp_canparse" in 34335 yesno) 34336 as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5 34337esac 34338 34339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking ELV/DCF7000 clock" >&5 34340$as_echo_n "checking ELV/DCF7000 clock... " >&6; } 34341# Check whether --enable-DCF7000 was given. 34342if test "${enable_DCF7000+set}" = set; then : 34343 enableval=$enable_DCF7000; ntp_ok=$enableval 34344else 34345 ntp_ok=$ntp_eapc 34346 34347fi 34348 34349case "$ntp_ok" in 34350 yes) 34351 ntp_libparse=yes 34352 ntp_refclock=yes 34353 34354$as_echo "#define CLOCK_DCF7000 1" >>confdefs.h 34355 34356 ;; 34357esac 34358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 34359$as_echo "$ntp_ok" >&6; } 34360case "$ntp_ok$ntp_canparse" in 34361 yesno) 34362 as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5 34363esac 34364 34365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking HOPF 6021 clock" >&5 34366$as_echo_n "checking HOPF 6021 clock... " >&6; } 34367# Check whether --enable-HOPF6021 was given. 34368if test "${enable_HOPF6021+set}" = set; then : 34369 enableval=$enable_HOPF6021; ntp_ok=$enableval 34370else 34371 ntp_ok=$ntp_eapc 34372 34373fi 34374 34375case "$ntp_ok" in 34376 yes) 34377 ntp_libparse=yes 34378 ntp_refclock=yes 34379 34380$as_echo "#define CLOCK_HOPF6021 1" >>confdefs.h 34381 34382 ;; 34383esac 34384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 34385$as_echo "$ntp_ok" >&6; } 34386case "$ntp_ok$ntp_canparse" in 34387 yesno) 34388 as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5 34389esac 34390 34391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Meinberg clocks" >&5 34392$as_echo_n "checking Meinberg clocks... " >&6; } 34393# Check whether --enable-MEINBERG was given. 34394if test "${enable_MEINBERG+set}" = set; then : 34395 enableval=$enable_MEINBERG; ntp_ok=$enableval 34396else 34397 ntp_ok=$ntp_eapc 34398 34399fi 34400 34401case "$ntp_ok" in 34402 yes) 34403 ntp_libparse=yes 34404 ntp_refclock=yes 34405 34406$as_echo "#define CLOCK_MEINBERG 1" >>confdefs.h 34407 34408 ;; 34409esac 34410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 34411$as_echo "$ntp_ok" >&6; } 34412case "$ntp_ok$ntp_canparse" in 34413 yesno) 34414 as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5 34415esac 34416 34417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking DCF77 raw time code" >&5 34418$as_echo_n "checking DCF77 raw time code... " >&6; } 34419# Check whether --enable-RAWDCF was given. 34420if test "${enable_RAWDCF+set}" = set; then : 34421 enableval=$enable_RAWDCF; ntp_ok=$enableval 34422else 34423 ntp_ok=$ntp_eapc 34424 34425fi 34426 34427case "$ntp_ok" in 34428 yes) 34429 ntp_libparse=yes 34430 ntp_parseutil=yes 34431 ntp_refclock=yes 34432 ntp_rawdcf=yes 34433 34434$as_echo "#define CLOCK_RAWDCF 1" >>confdefs.h 34435 34436 ;; 34437esac 34438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 34439$as_echo "$ntp_ok" >&6; } 34440case "$ntp_ok$ntp_canparse" in 34441 yesno) 34442 as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5 34443esac 34444 34445case "$ntp_rawdcf" in 34446 yes) 34447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we must enable parity for RAWDCF" >&5 34448$as_echo_n "checking if we must enable parity for RAWDCF... " >&6; } 34449if ${ntp_cv_rawdcf_parity+:} false; then : 34450 $as_echo_n "(cached) " >&6 34451else 34452 34453 ans=no 34454 case "$host" in 34455 *-*-*linux*) 34456 ans=yes 34457 ;; 34458 esac 34459 ntp_cv_rawdcf_parity=$ans 34460 34461 34462fi 34463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_rawdcf_parity" >&5 34464$as_echo "$ntp_cv_rawdcf_parity" >&6; } 34465 case "$ntp_cv_rawdcf_parity" in 34466 yes) 34467 34468$as_echo "#define RAWDCF_NO_IGNPAR 1" >>confdefs.h 34469 ;; 34470 esac 34471esac 34472 34473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking RCC 8000 clock" >&5 34474$as_echo_n "checking RCC 8000 clock... " >&6; } 34475# Check whether --enable-RCC8000 was given. 34476if test "${enable_RCC8000+set}" = set; then : 34477 enableval=$enable_RCC8000; ntp_ok=$enableval 34478else 34479 ntp_ok=$ntp_eapc 34480 34481fi 34482 34483case "$ntp_ok" in 34484 yes) 34485 ntp_libparse=yes 34486 ntp_refclock=yes 34487 34488$as_echo "#define CLOCK_RCC8000 1" >>confdefs.h 34489 34490 ;; 34491esac 34492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 34493$as_echo "$ntp_ok" >&6; } 34494case "$ntp_ok$ntp_canparse" in 34495 yesno) 34496 as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5 34497esac 34498 34499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Schmid DCF77 clock" >&5 34500$as_echo_n "checking Schmid DCF77 clock... " >&6; } 34501# Check whether --enable-SCHMID was given. 34502if test "${enable_SCHMID+set}" = set; then : 34503 enableval=$enable_SCHMID; ntp_ok=$enableval 34504else 34505 ntp_ok=$ntp_eapc 34506 34507fi 34508 34509case "$ntp_ok" in 34510 yes) 34511 ntp_libparse=yes 34512 ntp_refclock=yes 34513 34514$as_echo "#define CLOCK_SCHMID 1" >>confdefs.h 34515 34516 ;; 34517esac 34518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 34519$as_echo "$ntp_ok" >&6; } 34520case "$ntp_ok$ntp_canparse" in 34521 yesno) 34522 as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5 34523esac 34524 34525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Trimble GPS receiver/TAIP protocol" >&5 34526$as_echo_n "checking Trimble GPS receiver/TAIP protocol... " >&6; } 34527# Check whether --enable-TRIMTAIP was given. 34528if test "${enable_TRIMTAIP+set}" = set; then : 34529 enableval=$enable_TRIMTAIP; ntp_ok=$enableval 34530else 34531 ntp_ok=$ntp_eapc 34532 34533fi 34534 34535case "$ntp_ok" in 34536 yes) 34537 ntp_libparse=yes 34538 ntp_refclock=yes 34539 34540$as_echo "#define CLOCK_TRIMTAIP 1" >>confdefs.h 34541 34542 ;; 34543esac 34544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 34545$as_echo "$ntp_ok" >&6; } 34546case "$ntp_ok$ntp_canparse" in 34547 yesno) 34548 as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5 34549esac 34550 34551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Trimble GPS receiver/TSIP protocol" >&5 34552$as_echo_n "checking Trimble GPS receiver/TSIP protocol... " >&6; } 34553# Check whether --enable-TRIMTSIP was given. 34554if test "${enable_TRIMTSIP+set}" = set; then : 34555 enableval=$enable_TRIMTSIP; ntp_ok=$enableval 34556else 34557 ntp_ok=$ntp_eapc 34558 34559fi 34560 34561case "$ntp_ok" in 34562 yes) 34563 ntp_libparse=yes 34564 ntp_refclock=yes 34565 34566$as_echo "#define CLOCK_TRIMTSIP 1" >>confdefs.h 34567 34568 ;; 34569esac 34570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 34571$as_echo "$ntp_ok" >&6; } 34572case "$ntp_ok$ntp_canparse" in 34573 yesno) 34574 as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5 34575esac 34576 34577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking WHARTON 400A Series clock" >&5 34578$as_echo_n "checking WHARTON 400A Series clock... " >&6; } 34579# Check whether --enable-WHARTON was given. 34580if test "${enable_WHARTON+set}" = set; then : 34581 enableval=$enable_WHARTON; ntp_ok=$enableval 34582else 34583 ntp_ok=$ntp_eapc 34584 34585fi 34586 34587case "$ntp_ok" in 34588 yes) 34589 ntp_libparse=yes 34590 ntp_refclock=yes 34591 34592$as_echo "#define CLOCK_WHARTON_400A 1" >>confdefs.h 34593 34594 ;; 34595esac 34596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 34597$as_echo "$ntp_ok" >&6; } 34598case "$ntp_ok$ntp_canparse" in 34599 yesno) 34600 as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5 34601esac 34602 34603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking VARITEXT clock" >&5 34604$as_echo_n "checking VARITEXT clock... " >&6; } 34605# Check whether --enable-VARITEXT was given. 34606if test "${enable_VARITEXT+set}" = set; then : 34607 enableval=$enable_VARITEXT; ntp_ok=$enableval 34608else 34609 ntp_ok=$ntp_eapc 34610 34611fi 34612 34613case "$ntp_ok" in 34614 yes) 34615 ntp_libparse=yes 34616 ntp_refclock=yes 34617 34618$as_echo "#define CLOCK_VARITEXT 1" >>confdefs.h 34619 34620 ;; 34621esac 34622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 34623$as_echo "$ntp_ok" >&6; } 34624case "$ntp_ok$ntp_canparse" in 34625 yesno) 34626 as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5 34627esac 34628 34629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking SEL240X clock" >&5 34630$as_echo_n "checking SEL240X clock... " >&6; } 34631# Check whether --enable-SEL240X was given. 34632if test "${enable_SEL240X+set}" = set; then : 34633 enableval=$enable_SEL240X; ntp_ok=$enableval 34634else 34635 ntp_ok=$ntp_eapc 34636fi 34637 34638if test "$ntp_ok" = "yes"; then 34639 ntp_libparse=yes 34640 ntp_refclock=yes 34641 34642$as_echo "#define CLOCK_SEL240X 1" >>confdefs.h 34643 34644fi 34645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 34646$as_echo "$ntp_ok" >&6; } 34647case "$ntp_ok$ntp_canparse" in 34648 yesno) 34649 as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5 34650 ;; 34651esac 34652 34653 34654 34655 34656 34657 34658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need to make and use the parse libraries" >&5 34659$as_echo_n "checking if we need to make and use the parse libraries... " >&6; } 34660ans=no 34661case "$ntp_libparse" in 34662 yes) 34663 ans=yes 34664 34665$as_echo "#define CLOCK_PARSE 1" >>confdefs.h 34666 34667 LIBPARSE=../libparse/libparse.a 34668 MAKE_LIBPARSE=libparse.a 34669 # HMS: check_y2k trips the 34 year problem now... 34670 false && MAKE_CHECK_Y2K=check_y2k 34671esac 34672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 34673$as_echo "$ans" >&6; } 34674 34675 34676 34677 34678VER_SUFFIX= 34679 34680 34681 34682 34683# Check whether --with-crypto was given. 34684if test "${with_crypto+set}" = set; then : 34685 withval=$with_crypto; 34686fi 34687 34688 34689# Check whether --with-openssl-libdir was given. 34690if test "${with_openssl_libdir+set}" = set; then : 34691 withval=$with_openssl_libdir; 34692fi 34693 34694 34695# Check whether --with-openssl-incdir was given. 34696if test "${with_openssl_incdir+set}" = set; then : 34697 withval=$with_openssl_incdir; 34698fi 34699 34700 34701# Check whether --with-rpath was given. 34702if test "${with_rpath+set}" = set; then : 34703 withval=$with_rpath; 34704fi 34705 34706ntp_openssl=no 34707ntp_openssl_from_pkg_config=no 34708with_crypto=${with_crypto:-openssl,libcrypto} 34709case "$with_crypto" in 34710 yes) 34711 with_crypto=openssl,libcrypto 34712esac 34713case "$with_crypto:${PKG_CONFIG:+notempty}:${with_openssl_libdir-notgiven}:${with_openssl_incdir-notgiven}" in 34714 no:*) ;; 34715 *:notempty:notgiven:notgiven) 34716 for pkg in `echo $with_crypto | sed -e 's/,/ /'`; do 34717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config for $pkg" >&5 34718$as_echo_n "checking pkg-config for $pkg... " >&6; } 34719 if $PKG_CONFIG --exists $pkg ; then 34720 CPPFLAGS_NTP="$CPPFLAGS_NTP `$PKG_CONFIG --cflags-only-I $pkg`" 34721 CFLAGS_NTP="$CFLAGS_NTP `$PKG_CONFIG --cflags-only-other $pkg`" 34722 LDADD_NTP="$LDADD_NTP `$PKG_CONFIG --libs-only-L $pkg`" 34723 LDADD_NTP="$LDADD_NTP `$PKG_CONFIG --libs-only-l $pkg`" 34724 LDFLAGS_NTP="$LDFLAGS_NTP `$PKG_CONFIG --libs-only-other $pkg`" 34725 VER_SUFFIX=o 34726 ntp_openssl=yes 34727 ntp_openssl_from_pkg_config=yes 34728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 34729$as_echo "yes" >&6; } 34730 34731 break 34732 fi 34733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34734$as_echo "no" >&6; } 34735 done 34736esac 34737case "$with_crypto:$ntp_openssl" in 34738 no:*) ;; 34739 *:no) 34740 need_dash_r= 34741 need_dash_Wlrpath= 34742 case "${with_rpath-notgiven}" in 34743 yes) 34744 # Lame - what to do if we need -Wl... but not -R? 34745 need_dash_r=1 34746 ;; 34747 notgiven) 34748 case "$host" in 34749 *-*-linux*) 34750 # This may really only be true for gcc 34751 need_dash_Wlrpath=1 34752 ;; 34753 *-*-netbsd*) 34754 need_dash_r=1 34755 ;; 34756 *-*-solaris*) 34757 need_dash_r=1 34758 ;; 34759 esac 34760 ;; 34761 esac 34762 34763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl library directory" >&5 34764$as_echo_n "checking for openssl library directory... " >&6; } 34765 with_openssl_libdir=${with_openssl_libdir-notgiven} 34766 case "$with_openssl_libdir" in 34767 notgiven) 34768 case "$build" in 34769 $host) 34770 with_openssl_libdir=default 34771 ;; 34772 *) 34773 with_openssl_libdir=no 34774 ;; 34775 esac 34776 esac 34777 case "$with_openssl_libdir" in 34778 default) 34779 # Look in: 34780 with_openssl_libdir="/usr/lib /usr/lib/openssl /usr/sfw/lib" 34781 with_openssl_libdir="$with_openssl_libdir /usr/local/lib" 34782 with_openssl_libdir="$with_openssl_libdir /usr/local/ssl/lib /lib" 34783 esac 34784 case "$with_openssl_libdir" in 34785 no) 34786 ;; 34787 *) # Look for libcrypto.a and libssl.a: 34788 for i in $with_openssl_libdir no 34789 do 34790 case "$host" in 34791 *-*-darwin*) 34792 test -f $i/libcrypto.dylib -a -f $i/libssl.dylib && break 34793 ;; 34794 *) 34795 test -f $i/libcrypto.so -a -f $i/libssl.so && break 34796 test -f $i/libcrypto.a -a -f $i/libssl.a && break 34797 ;; 34798 esac 34799 done 34800 openssl_libdir=$i 34801 ;; 34802 esac 34803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $openssl_libdir" >&5 34804$as_echo "$openssl_libdir" >&6; } 34805 case "$openssl_libdir" in 34806 no) 34807 openssl_libdir= 34808 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libcrypto and libssl not found in any of $with_openssl_libdir" >&5 34809$as_echo "$as_me: WARNING: libcrypto and libssl not found in any of $with_openssl_libdir" >&2;} 34810 esac 34811 34812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl include directory" >&5 34813$as_echo_n "checking for openssl include directory... " >&6; } 34814 with_openssl_incdir=${with_openssl_incdir-notgiven} 34815 case "$with_openssl_incdir" in 34816 notgiven) 34817 # Look in: 34818 with_openssl_incdir="/usr/include /usr/sfw/include" 34819 with_openssl_incdir="$with_openssl_incdir /usr/local/include" 34820 with_openssl_incdir="$with_openssl_incdir /usr/local/ssl/include" 34821 esac 34822 case "$with_openssl_incdir" in 34823 no) 34824 ;; 34825 *) # look for openssl/evp.h: 34826 for i in $with_openssl_incdir no 34827 do 34828 test -f $i/openssl/evp.h && break 34829 done 34830 openssl_incdir=$i 34831 ;; 34832 esac 34833 { i=; unset i;} 34834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $openssl_incdir" >&5 34835$as_echo "$openssl_incdir" >&6; } 34836 case "$openssl_incdir" in 34837 no) 34838 openssl_incdir= 34839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: did not find openssl/evp.h in any of $with_openssl_incdir" >&5 34840$as_echo "$as_me: WARNING: did not find openssl/evp.h in any of $with_openssl_incdir" >&2;} 34841 esac 34842 if test -z "$openssl_libdir" -o -z "$openssl_incdir" 34843 then 34844 ntp_openssl=no 34845 else 34846 ntp_openssl=yes 34847 VER_SUFFIX=o 34848 fi 34849 case "$ntp_openssl" in 34850 yes) 34851 # We have OpenSSL inc/lib dirs - use them. 34852 case "$openssl_incdir" in 34853 /usr/include) 34854 ;; 34855 *) 34856 CPPFLAGS_NTP="$CPPFLAGS_NTP -I$openssl_incdir" 34857 ;; 34858 esac 34859 case "$openssl_libdir" in 34860 /usr/lib) 34861 ;; 34862 *) 34863 LDADD_NTP="$LDADD_NTP -L$openssl_libdir" 34864 case "$need_dash_r" in 34865 1) 34866 LDFLAGS_NTP="$LDFLAGS_NTP -R$openssl_libdir" 34867 esac 34868 case "$need_dash_Wlrpath" in 34869 1) 34870 LDFLAGS_NTP="$LDFLAGS_NTP -Wl,-rpath,$openssl_libdir" 34871 esac 34872 ;; 34873 esac 34874 LDADD_NTP="$LDADD_NTP -lcrypto" 34875 esac 34876esac 34877 34878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we will use crypto" >&5 34879$as_echo_n "checking if we will use crypto... " >&6; } 34880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_openssl" >&5 34881$as_echo "$ntp_openssl" >&6; } 34882 34883case "$ntp_openssl" in 34884 yes) 34885 34886$as_echo "#define OPENSSL /**/" >>confdefs.h 34887 34888 case "$VER_SUFFIX" in 34889 *o*) ;; 34890 *) as_fn_error $? "OPENSSL set but no 'o' in VER_SUFFIX!" "$LINENO" 5 ;; 34891 esac 34892 ;; 34893esac 34894 34895NTPO_SAVED_CPPFLAGS="$CPPFLAGS" 34896CPPFLAGS="$CPPFLAGS $CPPFLAGS_NTP" 34897NTPO_SAVED_LIBS="$LIBS" 34898 34899# 34900# check for linking with -lcrypto failure, and try -lcrypto -lz. 34901# Helps m68k-atari-mint 34902# 34903case "$ntp_openssl:$ntp_openssl_from_pkg_config" in 34904 yes:no) 34905 LIBS="$NTPO_SAVED_LIBS $LDADD_NTP" 34906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linking with -lcrypto alone works" >&5 34907$as_echo_n "checking if linking with -lcrypto alone works... " >&6; } 34908if ${ntp_cv_bare_lcrypto+:} false; then : 34909 $as_echo_n "(cached) " >&6 34910else 34911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34912/* end confdefs.h. */ 34913 34914 #include "openssl/err.h" 34915 #include "openssl/evp.h" 34916 34917int 34918main () 34919{ 34920 34921 ERR_load_crypto_strings(); 34922 OpenSSL_add_all_algorithms(); 34923 34924 34925 ; 34926 return 0; 34927} 34928_ACEOF 34929if ac_fn_c_try_link "$LINENO"; then : 34930 ntp_cv_bare_lcrypto=yes 34931else 34932 ntp_cv_bare_lcrypto=no 34933 34934fi 34935rm -f core conftest.err conftest.$ac_objext \ 34936 conftest$ac_exeext conftest.$ac_ext 34937 34938fi 34939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_bare_lcrypto" >&5 34940$as_echo "$ntp_cv_bare_lcrypto" >&6; } 34941 case "$ntp_cv_bare_lcrypto" in 34942 no) 34943 LIBS="$NTPO_SAVED_LIBS $LDADD_NTP -lz" 34944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linking with -lcrypto -lz works" >&5 34945$as_echo_n "checking if linking with -lcrypto -lz works... " >&6; } 34946if ${ntp_cv_lcrypto_lz+:} false; then : 34947 $as_echo_n "(cached) " >&6 34948else 34949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34950/* end confdefs.h. */ 34951 34952 #include "openssl/err.h" 34953 #include "openssl/evp.h" 34954 34955int 34956main () 34957{ 34958 34959 ERR_load_crypto_strings(); 34960 OpenSSL_add_all_algorithms(); 34961 34962 34963 ; 34964 return 0; 34965} 34966_ACEOF 34967if ac_fn_c_try_link "$LINENO"; then : 34968 ntp_cv_lcrypto_lz=yes 34969else 34970 ntp_cv_lcrypto_lz=no 34971 34972fi 34973rm -f core conftest.err conftest.$ac_objext \ 34974 conftest$ac_exeext conftest.$ac_ext 34975 34976fi 34977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_lcrypto_lz" >&5 34978$as_echo "$ntp_cv_lcrypto_lz" >&6; } 34979 case "$ntp_cv_lcrypto_lz" in 34980 yes) 34981 LDADD_NTP="$LDADD_NTP -lz" 34982 esac 34983 esac 34984esac 34985 34986# 34987# Older OpenSSL headers have a number of callback prototypes inside 34988# other function prototypes which trigger copious warnings with gcc's 34989# -Wstrict-prototypes, which is included in -Wall. 34990# 34991# An example: 34992# 34993# int i2d_RSA_NET(const RSA *a, unsigned char **pp, 34994# int (*cb)(), int sgckey); 34995# ^^^^^^^^^^^ 34996# 34997# 34998# 34999openssl_triggers_warnings=unknown 35000NTPO_SAVED_CFLAGS="$CFLAGS" 35001 35002case "$ntp_openssl:$GCC" in 35003 yes:yes) 35004 CFLAGS="$CFLAGS -Werror" 35005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35006/* end confdefs.h. */ 35007 35008 35009int 35010main () 35011{ 35012 35013 /* see if -Werror breaks gcc */ 35014 35015 35016 ; 35017 return 0; 35018} 35019_ACEOF 35020if ac_fn_c_try_compile "$LINENO"; then : 35021 gcc_handles_Werror=yes 35022else 35023 gcc_handles_Werror=no 35024 35025fi 35026rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 35027 case "$gcc_handles_Werror" in 35028 no) 35029 # if this gcc doesn't do -Werror go ahead and use 35030 # -Wstrict-prototypes. 35031 openssl_triggers_warnings=yes 35032 ;; 35033 yes) 35034 CFLAGS="$CFLAGS -Wstrict-prototypes" 35035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35036/* end confdefs.h. */ 35037 35038 #include "openssl/asn1_mac.h" 35039 #include "openssl/bn.h" 35040 #include "openssl/err.h" 35041 #include "openssl/evp.h" 35042 #include "openssl/pem.h" 35043 #include "openssl/rand.h" 35044 #include "openssl/x509v3.h" 35045 35046int 35047main () 35048{ 35049 35050 /* empty body */ 35051 35052 35053 ; 35054 return 0; 35055} 35056_ACEOF 35057if ac_fn_c_try_compile "$LINENO"; then : 35058 openssl_triggers_warnings=no 35059else 35060 openssl_triggers_warnings=yes 35061 35062fi 35063rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 35064 esac 35065 case "$openssl_triggers_warnings" in 35066 yes) 35067 CFLAGS_NTP="$CFLAGS_NTP -Wno-strict-prototypes" 35068 ;; 35069 *) 35070 CFLAGS_NTP="$CFLAGS_NTP -Wstrict-prototypes" 35071 esac 35072 ;; 35073 no:yes) 35074 # gcc without OpenSSL 35075 CFLAGS_NTP="$CFLAGS_NTP -Wstrict-prototypes" 35076esac 35077 35078# Because we don't want -Werror for the EVP_MD_do_all_sorted check 35079CFLAGS="$NTPO_SAVED_CFLAGS" 35080 35081case "$ntp_openssl" in 35082 yes) 35083 LIBS="$NTPO_SAVED_LIBS $LDADD_NTP" 35084 for ac_func in EVP_MD_do_all_sorted 35085do : 35086 ac_fn_c_check_func "$LINENO" "EVP_MD_do_all_sorted" "ac_cv_func_EVP_MD_do_all_sorted" 35087if test "x$ac_cv_func_EVP_MD_do_all_sorted" = xyes; then : 35088 cat >>confdefs.h <<_ACEOF 35089#define HAVE_EVP_MD_DO_ALL_SORTED 1 35090_ACEOF 35091 35092fi 35093done 35094 35095 ;; 35096esac 35097 35098CPPFLAGS="$NTPO_SAVED_CPPFLAGS" 35099LIBS="$NTPO_SAVED_LIBS" 35100{ NTPO_SAVED_CFLAGS=; unset NTPO_SAVED_CFLAGS;} 35101{ NTPO_SAVED_CPPFLAGS=; unset NTPO_SAVED_CPPFLAGS;} 35102{ NTPO_SAVED_LIBS=; unset NTPO_SAVED_LIBS;} 35103{ openssl_triggers_warnings=; unset openssl_triggers_warnings;} 35104{ ntp_openssl_from_pkg_config=; unset ntp_openssl_from_pkg_config;} 35105 35106 35107 35108 35109 35110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to use OpenSSL's crypto random (if available)" >&5 35111$as_echo_n "checking if we want to use OpenSSL's crypto random (if available)... " >&6; } 35112# Check whether --enable-openssl-random was given. 35113if test "${enable_openssl_random+set}" = set; then : 35114 enableval=$enable_openssl_random; ntp_use_openssl_random=$enableval 35115else 35116 ntp_use_openssl_random=yes 35117 35118fi 35119 35120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_use_openssl_random" >&5 35121$as_echo "$ntp_use_openssl_random" >&6; } 35122 35123# The following might need extra libraries 35124NTPO_SAVED_LIBS="$LIBS" 35125LIBS="$NTPO_SAVED_LIBS $LDADD_NTP" 35126for ac_func in RAND_bytes RAND_poll 35127do : 35128 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 35129ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 35130if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 35131 cat >>confdefs.h <<_ACEOF 35132#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 35133_ACEOF 35134 35135fi 35136done 35137 35138LIBS="$NTPO_SAVED_LIBS" 35139case "$ntp_use_openssl_random$ac_cv_func_RAND_bytes$ac_cv_func_RAND_poll" in 35140 yesyesyes) 35141 35142$as_echo "#define USE_OPENSSL_CRYPTO_RAND 1" >>confdefs.h 35143 35144 ;; 35145 *) ntp_use_openssl_random=no ;; 35146esac 35147 35148 35149 35150# if we are using OpenSSL (--with-crypto), by default Autokey is enabled 35151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to include NTP Autokey protocol support" >&5 35152$as_echo_n "checking if we want to include NTP Autokey protocol support... " >&6; } 35153# Check whether --enable-autokey was given. 35154if test "${enable_autokey+set}" = set; then : 35155 enableval=$enable_autokey; ntp_autokey=$enableval 35156else 35157 ntp_autokey=$ntp_openssl 35158 35159fi 35160 35161case "$ntp_autokey" in 35162 no) 35163 ;; 35164 *) 35165 case "$ntp_openssl" in 35166 no) 35167 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling Autokey, --enable-autokey requires --with-crypto." >&5 35168$as_echo "$as_me: WARNING: Disabling Autokey, --enable-autokey requires --with-crypto." >&2;} 35169 ntp_autokey=no 35170 ;; 35171 *) 35172 35173$as_echo "#define AUTOKEY 1" >>confdefs.h 35174 35175 ntp_autokey=yes 35176 ;; 35177 esac 35178 ;; 35179esac 35180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_autokey" >&5 35181$as_echo "$ntp_autokey" >&6; } 35182 35183 35184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to run check-layout" >&5 35185$as_echo_n "checking if we want to run check-layout... " >&6; } 35186case "$cross_compiling$PATH_PERL" in 35187 no/*) 35188 MAKE_CHECK_LAYOUT=check-layout 35189 ans=yes 35190 ;; 35191 *) 35192 ans=no 35193 ;; 35194esac 35195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 35196$as_echo "$ans" >&6; } 35197 35198 35199 35200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can make dcf parse utilities" >&5 35201$as_echo_n "checking if we can make dcf parse utilities... " >&6; } 35202ans=no 35203case "$ntp_parseutil" in 35204 yes) 35205 case "$host" in 35206 *-*-sunos4*|*-*-solaris2*|*-*-*linux*|*-*-netbsd*) 35207 ans="dcfd testdcf" 35208 DCFD=dcfd 35209 TESTDCF=testdcf 35210 esac 35211 ;; 35212esac 35213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 35214$as_echo "$ans" >&6; } 35215 35216 35217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can build kernel streams modules for parse" >&5 35218$as_echo_n "checking if we can build kernel streams modules for parse... " >&6; } 35219ans=no 35220case "$ntp_parseutil$ac_cv_header_sys_stropts_h" in 35221 yesyes) 35222 case "$host" in 35223 sparc-*-sunos4*) 35224 case "$ntp_cv_var_kernel_pll" in 35225 yes) 35226 35227$as_echo "#define PPS_SYNC 1" >>confdefs.h 35228 35229 ;; 35230 esac 35231 ans=parsestreams 35232 MAKE_PARSEKMODULE=parsestreams.loadable_module.o 35233 ;; 35234 sparc-*-solaris2*) 35235 ans=parsesolaris 35236 MAKE_PARSEKMODULE=parse 35237 for ac_header in strings.h 35238do : 35239 ac_fn_c_check_header_mongrel "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default" 35240if test "x$ac_cv_header_strings_h" = xyes; then : 35241 cat >>confdefs.h <<_ACEOF 35242#define HAVE_STRINGS_H 1 35243_ACEOF 35244 35245fi 35246 35247done 35248 35249 ;; 35250 esac 35251 ;; 35252esac 35253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 35254$as_echo "$ans" >&6; } 35255 35256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need basic refclock support" >&5 35257$as_echo_n "checking if we need basic refclock support... " >&6; } 35258case "$ntp_refclock" in 35259 yes) 35260 35261$as_echo "#define REFCLOCK 1" >>confdefs.h 35262 35263 ;; 35264esac 35265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_refclock" >&5 35266$as_echo "$ntp_refclock" >&6; } 35267 35268PROPDELAY=propdelay 35269 35270 35271 35272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want HP-UX adjtimed support" >&5 35273$as_echo_n "checking if we want HP-UX adjtimed support... " >&6; } 35274case "$host" in 35275 *-*-hpux[56789]*) 35276 ans=yes 35277 ;; 35278 *) ans=no 35279 ;; 35280esac 35281case "$ans" in 35282 yes) 35283 MAKE_ADJTIMED=adjtimed 35284 35285$as_echo "#define NEED_HPUX_ADJTIME 1" >>confdefs.h 35286 35287 ;; 35288 *) ADJTIMED_DB= 35289 ADJTIMED_DL= 35290 ADJTIMED_DS= 35291 ADJTIMED_MS= 35292 ;; 35293esac 35294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 35295$as_echo "$ans" >&6; } 35296 35297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want QNX adjtime support" >&5 35298$as_echo_n "checking if we want QNX adjtime support... " >&6; } 35299case "$host" in 35300 *-*-qnx*) 35301 ans=yes 35302 ;; 35303 *) ans=no 35304 ;; 35305esac 35306case "$ans" in 35307 yes) 35308 35309$as_echo "#define NEED_QNX_ADJTIME 1" >>confdefs.h 35310 35311 ;; 35312esac 35313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 35314$as_echo "$ans" >&6; } 35315 35316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can read kmem" >&5 35317$as_echo_n "checking if we can read kmem... " >&6; } 35318 35319# the default is to enable it if the system has the capability 35320 35321case "$ac_cv_func_nlist$ac_cv_func_K_open$ac_cv_func_kvm_open" in 35322 *yes*) 35323 ans=yes 35324 ;; 35325 *) ans=no 35326 ;; 35327esac 35328 35329case "$host" in 35330 *-*-domainos) # Won't be found... 35331 ans=no 35332 ;; 35333 *-*-hpux*) 35334 #ans=no 35335 ;; 35336 *-*-irix[456]*) 35337 ans=no 35338 ;; 35339 *-*-*linux*) 35340 ans=no 35341 ;; 35342 *-*-winnt3.5) 35343 ans=no 35344 ;; 35345 *-*-unicosmp*) 35346 ans=no 35347 ;; 35348esac 35349 35350# --enable-kmem / --disable-kmem controls if present 35351# Check whether --enable-kmem was given. 35352if test "${enable_kmem+set}" = set; then : 35353 enableval=$enable_kmem; ans=$enableval 35354 35355fi 35356 35357 35358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 35359$as_echo "$ans" >&6; } 35360 35361case "$ans" in 35362 yes) 35363 can_kmem=yes 35364 ;; 35365 *) 35366 can_kmem=no 35367 35368$as_echo "#define NOKMEM 1" >>confdefs.h 35369 35370esac 35371 35372 35373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if adjtime is accurate" >&5 35374$as_echo_n "checking if adjtime is accurate... " >&6; } 35375 35376# target-dependent defaults 35377 35378case "$host" in 35379 i386-sequent-ptx*) 35380 ans=no 35381 ;; 35382 i386-unknown-osf1*) 35383 ans=yes 35384 ;; 35385 mips-sgi-irix[456]*) 35386 ans=yes 35387 ;; 35388 *-fujitsu-uxp*) 35389 ans=yes 35390 ;; 35391 *-ibm-aix[4-9]*) 35392 # XXX only verified thru AIX6. 35393 ans=yes 35394 ;; 35395 *-*-*linux*) 35396 ans=yes 35397 ;; 35398 *-*-solaris2.[01]) 35399 ans=no 35400 ;; 35401 *-*-solaris2*) 35402 ans=yes 35403 ;; 35404 *-*-unicosmp*) 35405 ans=yes 35406 ;; 35407 *) ans=no 35408 ;; 35409esac 35410 35411# --enable-accurate-adjtime / --disable-accurate-adjtime 35412# override the default 35413# Check whether --enable-accurate-adjtime was given. 35414if test "${enable_accurate_adjtime+set}" = set; then : 35415 enableval=$enable_accurate_adjtime; ans=$enableval 35416 35417fi 35418 35419 35420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 35421$as_echo "$ans" >&6; } 35422 35423case "$ans" in 35424 yes) 35425 35426$as_echo "#define ADJTIME_IS_ACCURATE 1" >>confdefs.h 35427 35428 adjtime_is_accurate=yes 35429 ;; 35430 *) 35431 adjtime_is_accurate=no 35432 ;; 35433esac 35434 35435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name of 'tick' in the kernel" >&5 35436$as_echo_n "checking the name of 'tick' in the kernel... " >&6; } 35437if ${ntp_cv_nlist_tick+:} false; then : 35438 $as_echo_n "(cached) " >&6 35439else 35440 35441 ans=_tick 35442 case "$host" in 35443 m68*-hp-hpux*) # HP9000/300? 35444 ans=_old_tick 35445 ;; 35446 *-apple-aux[23]*) 35447 ans=tick 35448 ;; 35449 *-hp-hpux*) 35450 ans=old_tick 35451 ;; 35452 *-ibm-aix[3-9]*) 35453 # XXX only verified thru AIX6. 35454 ans=no 35455 ;; 35456 *-*-mpeix*) 35457 ans=no 35458 ;; 35459 *-*-ptx*) 35460 ans=tick 35461 ;; 35462 *-*-sco3.2v[45]*) 35463 ans=no 35464 ;; 35465 *-*-solaris2*) 35466 ans=nsec_per_tick 35467 ;; 35468 *-*-sysv4*) 35469 ans=tick 35470 ;; 35471 esac 35472 ntp_cv_nlist_tick=$ans 35473 35474 35475fi 35476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_nlist_tick" >&5 35477$as_echo "$ntp_cv_nlist_tick" >&6; } 35478case "$ntp_cv_nlist_tick" in 35479 ''|no) 35480 ;; # HMS: I think we can only get 'no' here... 35481 *) 35482 35483cat >>confdefs.h <<_ACEOF 35484#define K_TICK_NAME "$ntp_cv_nlist_tick" 35485_ACEOF 35486 35487esac 35488 35489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the units of 'tick'" >&5 35490$as_echo_n "checking for the units of 'tick'... " >&6; } 35491if ${ntp_cv_tick_nano+:} false; then : 35492 $as_echo_n "(cached) " >&6 35493else 35494 35495 ans=usec 35496 case "$host" in 35497 *-*-solaris2*) 35498 ans=nsec 35499 ;; 35500 esac 35501 ntp_cv_tick_nano=$ans 35502 35503 35504fi 35505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_tick_nano" >&5 35506$as_echo "$ntp_cv_tick_nano" >&6; } 35507case "$ntp_cv_tick_nano" in 35508 nsec) 35509 35510$as_echo "#define TICK_NANO 1" >>confdefs.h 35511 35512esac 35513 35514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name of 'tickadj' in the kernel" >&5 35515$as_echo_n "checking the name of 'tickadj' in the kernel... " >&6; } 35516if ${ntp_cv_nlist_tickadj+:} false; then : 35517 $as_echo_n "(cached) " >&6 35518else 35519 35520 ans=_tickadj 35521 case "$host" in 35522 m68*-hp-hpux*) # HP9000/300? 35523 ans=_tickadj 35524 ;; 35525 *-apple-aux[23]*) 35526 ans=tickadj 35527 ;; 35528 *-hp-hpux10*) 35529 ans=no 35530 ;; 35531 *-hp-hpux9*) 35532 ans=no 35533 ;; 35534 *-hp-hpux*) 35535 ans=tickadj 35536 ;; 35537 *-*-aix*) 35538 ans=tickadj 35539 ;; 35540 *-*-mpeix*) 35541 ans=no 35542 ;; 35543 *-*-ptx*) 35544 ans=tickadj 35545 ;; 35546 *-*-sco3.2v4*) 35547 ans=no 35548 ;; 35549 *-*-sco3.2v5.0*) 35550 ans=clock_drift 35551 ;; 35552 *-*-solaris2*) 35553 ans=no # hrestime_adj 35554 ;; 35555 *-*-sysv4*) 35556 ans=tickadj 35557 ;; 35558 esac 35559 ntp_cv_nlist_tickadj=$ans 35560 35561 35562fi 35563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_nlist_tickadj" >&5 35564$as_echo "$ntp_cv_nlist_tickadj" >&6; } 35565case "$ntp_cv_nlist_tickadj" in 35566 ''|no) 35567 ;; # HMS: I think we can only get 'no' here... 35568 *) 35569 35570cat >>confdefs.h <<_ACEOF 35571#define K_TICKADJ_NAME "$ntp_cv_nlist_tickadj" 35572_ACEOF 35573 35574esac 35575 35576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the units of 'tickadj'" >&5 35577$as_echo_n "checking for the units of 'tickadj'... " >&6; } 35578if ${ntp_cv_tickadj_nano+:} false; then : 35579 $as_echo_n "(cached) " >&6 35580else 35581 35582 ans=usec 35583 case "$host" in 35584 *-*-solaris2*) 35585 ans=nsec 35586 ;; 35587 esac 35588 ntp_cv_tickadj_nano=$ans 35589 35590 35591fi 35592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_tickadj_nano" >&5 35593$as_echo "$ntp_cv_tickadj_nano" >&6; } 35594case "$ntp_cv_tickadj_nano" in 35595 nsec) 35596 35597$as_echo "#define TICKADJ_NANO 1" >>confdefs.h 35598 35599esac 35600 35601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking half-heartedly for 'dosynctodr' in the kernel" >&5 35602$as_echo_n "checking half-heartedly for 'dosynctodr' in the kernel... " >&6; } 35603if ${ntp_cv_nlist_dosynctodr+:} false; then : 35604 $as_echo_n "(cached) " >&6 35605else 35606 35607 case "$host" in 35608 *-apple-aux[23]*) 35609 ans=no 35610 ;; 35611 *-sni-sysv*) 35612 ans=dosynctodr 35613 ;; 35614 *-stratus-vos) 35615 ans=no 35616 ;; 35617 *-*-aix*) 35618 ans=dosynctodr 35619 ;; 35620 *-*-hpux*) 35621 ans=no 35622 ;; 35623 *-*-mpeix*) 35624 ans=no 35625 ;; 35626 *-*-nextstep*) 35627 ans=_dosynctodr 35628 ;; 35629 *-*-ptx*) 35630 ans=doresettodr 35631 ;; 35632 *-*-sco3.2v4*) 35633 ans=no 35634 ;; 35635 *-*-sco3.2v5*) 35636 ans=track_rtc 35637 ;; 35638 *-*-solaris2*) 35639 ans=dosynctodr 35640 ;; 35641 *-*-sysv4*) 35642 ans=doresettodr 35643 ;; 35644 *) 35645 ans=_dosynctodr 35646 ;; 35647 esac 35648 ntp_cv_nlist_dosynctodr=$ans 35649 35650 35651fi 35652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_nlist_dosynctodr" >&5 35653$as_echo "$ntp_cv_nlist_dosynctodr" >&6; } 35654case "$ntp_cv_nlist_dosynctodr" in 35655 no) 35656 ;; 35657 *) 35658 35659cat >>confdefs.h <<_ACEOF 35660#define K_DOSYNCTODR_NAME "$ntp_cv_nlist_dosynctodr" 35661_ACEOF 35662 35663 ;; 35664esac 35665 35666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking half-heartedly for 'noprintf' in the kernel" >&5 35667$as_echo_n "checking half-heartedly for 'noprintf' in the kernel... " >&6; } 35668if ${ntp_cv_nlist_noprintf+:} false; then : 35669 $as_echo_n "(cached) " >&6 35670else 35671 35672 case "$host" in 35673 *-apple-aux[23]*) 35674 ans=no 35675 ;; 35676 *-sni-sysv*) 35677 ans=noprintf 35678 ;; 35679 *-stratus-vos) 35680 ans=no 35681 ;; 35682 *-*-aix*) 35683 ans=noprintf 35684 ;; 35685 *-*-hpux*) 35686 ans=no 35687 ;; 35688 *-*-mpeix*) 35689 ans=no 35690 ;; 35691 *-*-ptx*) 35692 ans=noprintf 35693 ;; 35694 *-*-nextstep*) 35695 ans=_noprintf 35696 ;; 35697 *-*-solaris2*) 35698 ans=noprintf 35699 ;; 35700 *-*-sysv4*) 35701 ans=noprintf 35702 ;; 35703 *) 35704 ans=_noprintf 35705 ;; 35706 esac 35707 ntp_cv_nlist_noprintf=$ans 35708 35709 35710fi 35711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_nlist_noprintf" >&5 35712$as_echo "$ntp_cv_nlist_noprintf" >&6; } 35713case "$ntp_cv_nlist_noprintf" in 35714 no) 35715 ;; 35716 *) 35717 35718cat >>confdefs.h <<_ACEOF 35719#define K_NOPRINTF_NAME "$ntp_cv_nlist_noprintf" 35720_ACEOF 35721 35722 ;; 35723esac 35724 35725 35726 35727 35728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a default value for 'tick'" >&5 35729$as_echo_n "checking for a default value for 'tick'... " >&6; } 35730 35731# target-dependent default for tick 35732 35733case "$host" in 35734 *-*-pc-cygwin*) 35735 as_fn_error $? "tick needs work for cygwin" "$LINENO" 5 35736 ;; 35737 *-univel-sysv*) 35738 ans=10000 35739 ;; 35740 *-*-irix*) 35741 ans=10000 35742 ;; 35743 *-*-*linux*) 35744 ans=txc.tick 35745 ;; 35746 *-*-mpeix*) 35747 ans=no 35748 ;; 35749 *-*-winnt3.5) 35750 ans='(every / 10)' 35751 ;; 35752 *-*-unicosmp*) 35753 ans=10000 35754 ;; 35755 *) 35756 ans='1000000L/hz' 35757 ;; 35758esac 35759 35760# Check whether --enable-tick was given. 35761if test "${enable_tick+set}" = set; then : 35762 enableval=$enable_tick; ans=$enableval 35763 35764fi 35765 35766 35767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 35768$as_echo "$ans" >&6; } 35769 35770case "$ans" in 35771 ''|no) 35772 ;; # HMS: I think we can only get 'no' here... 35773 *) 35774 35775cat >>confdefs.h <<_ACEOF 35776#define PRESET_TICK $ans 35777_ACEOF 35778 35779esac 35780 35781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a default value for 'tickadj'" >&5 35782$as_echo_n "checking for a default value for 'tickadj'... " >&6; } 35783 35784# target-specific default 35785ans='500/hz' 35786case "$host" in 35787 *-fujitsu-uxp*) 35788 case "$adjtime_is_accurate" in 35789 yes) 35790 ans='tick/16' 35791 esac 35792 ;; 35793 *-univel-sysv*) 35794 ans=80 35795 ;; 35796 *-*-aix*) 35797 case "$can_kmem" in 35798 no) 35799 ans=1000 35800 ;; 35801 esac 35802 ;; 35803 *-*-domainos) # Skippy: won't be found... 35804 case "$can_kmem" in 35805 no) 35806 ans=668 35807 ;; 35808 esac 35809 ;; 35810 *-*-hpux*) 35811 case "$adjtime_is_accurate" in 35812 yes) 35813 ans='tick/16' 35814 ;; 35815 esac 35816 ;; 35817 *-*-irix*) 35818 ans=150 35819 ;; 35820 *-*-mpeix*) 35821 ans=no 35822 ;; 35823 *-*-sco3.2v5.0*) 35824 ans=10000L/hz 35825 ;; 35826 *-*-winnt3.5) 35827 ans=50 35828 ;; 35829 *-*-unicosmp*) 35830 ans=150 35831 ;; 35832esac 35833 35834# Check whether --enable-tickadj was given. 35835if test "${enable_tickadj+set}" = set; then : 35836 enableval=$enable_tickadj; ans=$enableval 35837 35838fi 35839 35840 35841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 35842$as_echo "$ans" >&6; } 35843 35844default_tickadj=$ans 35845 35846case "$default_tickadj" in 35847 ''|no) 35848 ;; # HMS: I think we can only get 'no' here... 35849 *) 35850 35851cat >>confdefs.h <<_ACEOF 35852#define PRESET_TICKADJ $default_tickadj 35853_ACEOF 35854 ;; 35855esac 35856 35857# Newer versions of ReliantUNIX round adjtime() values down to 35858# 1/100s (system tick). Sigh ... 35859# Unfortunately, there is no easy way to know if particular release 35860# has this "feature" or any obvious way to test for it. 35861case "$host" in 35862 mips-sni-sysv4*) 35863 35864$as_echo "#define RELIANTUNIX_CLOCK 1" >>confdefs.h 35865 35866esac 35867 35868case "$host" in 35869 *-*-sco3.2v5*) 35870 35871$as_echo "#define SCO5_CLOCK 1" >>confdefs.h 35872 35873esac 35874 35875ntp_cv_make_tickadj=yes 35876case "$can_kmem$ac_cv_var_tick$default_tickadj" in 35877 nonono) # Don't read KMEM, no presets. Bogus. 35878 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't read kmem, no PRESET_TICK or PRESET_TICKADJ. No tickadj." >&5 35879$as_echo "$as_me: WARNING: Can't read kmem, no PRESET_TICK or PRESET_TICKADJ. No tickadj." >&2;} 35880 ntp_cv_make_tickadj=no 35881 ;; 35882 nono*) # Don't read KMEM, no PRESET_TICK but PRESET_TICKADJ. Bogus. 35883 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't read kmem but no PRESET_TICK. No tickadj." >&5 35884$as_echo "$as_me: WARNING: Can't read kmem but no PRESET_TICK. No tickadj." >&2;} 35885 ntp_cv_make_tickadj=no 35886 ;; 35887 no*no) # Don't read KMEM, PRESET_TICK but no PRESET_TICKADJ. Bogus. 35888 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't read kmem but no PRESET_TICKADJ. No tickadj." >&5 35889$as_echo "$as_me: WARNING: Can't read kmem but no PRESET_TICKADJ. No tickadj." >&2;} 35890 ntp_cv_make_tickadj=no 35891 ;; 35892 no*) # Don't read KMEM, PRESET_TICK and PRESET_TICKADJ. Cool. 35893 ;; 35894 yesnono) # Read KMEM, no presets. Cool. 35895 ;; 35896 yesno*) # Read KMEM, no PRESET_TICK but PRESET_TICKADJ. Bogus. 35897 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PRESET_TICKADJ is defined but not PRESET_TICK. Please report this." >&5 35898$as_echo "$as_me: WARNING: PRESET_TICKADJ is defined but not PRESET_TICK. Please report this." >&2;} 35899 ;; 35900 yes*no) # Read KMEM, PRESET_TICK but no PRESET_TICKADJ. Cool. 35901 ;; 35902 yes*) # READ KMEM, PRESET_TICK and PRESET_TICKADJ. 35903 ;; 35904 *) # Generally bogus. 35905 as_fn_error $? "This shouldn't happen." "$LINENO" 5 35906 ;; 35907esac 35908 35909 35910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want and can make the ntptime utility" >&5 35911$as_echo_n "checking if we want and can make the ntptime utility... " >&6; } 35912if ${ac_cv_make_ntptime+:} false; then : 35913 $as_echo_n "(cached) " >&6 35914else 35915 case "$host" in 35916 *) case "$ntp_cv_struct_ntptimeval$ntp_cv_var_kernel_pll" in 35917 yesyes) 35918 ans=yes 35919 ;; 35920 *) 35921 ans=no 35922 ;; 35923 esac 35924 ;; 35925esac 35926ac_cv_make_ntptime=$ans 35927fi 35928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_make_ntptime" >&5 35929$as_echo "$ac_cv_make_ntptime" >&6; } 35930case "$ac_cv_make_ntptime" in 35931 yes) 35932 MAKE_NTPTIME=ntptime 35933 ;; 35934 *) 35935 NTPTIME_DB= 35936 NTPTIME_DL= 35937 NTPTIME_DS= 35938 NTPTIME_MS= 35939 ;; 35940esac 35941 35942 35943case "$host" in 35944 mips-sni-sysv4*) 35945 # tickadj is pretty useless on newer versions of ReliantUNIX 35946 # Do not bother 35947 ntp_cv_make_tickadj=no 35948 ;; 35949 *-*-irix*) 35950 ntp_cv_make_tickadj=no 35951 ;; 35952 *-*-solaris2*) 35953 # DLM says tickadj is a no-no starting with solaris2.5 35954 case "$host" in 35955 *-*-solaris2.1[0-9]*) 35956 ntp_cv_make_tickadj=no 35957 ;; 35958 *-*-solaris2.[0-4]*) ;; 35959 *) ntp_cv_make_tickadj=no ;; 35960 esac 35961 ;; 35962 *-*-unicosmp*) 35963 ntp_cv_make_tickadj=no 35964 ;; 35965esac 35966 35967# 35968# Despite all the above, we always make tickadj. Setting 35969# ntp_cv_make_tickadj before AC_CACHE_CHECK will cause a false 35970# report that the configuration variable was cached. It may 35971# be better to simply remove the hunk above, I did not want 35972# to remove it if there is hope it will be used again. 35973# 35974{ ntp_cv_make_tickadj=; unset ntp_cv_make_tickadj;} 35975 35976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want and can make the tickadj utility" >&5 35977$as_echo_n "checking if we want and can make the tickadj utility... " >&6; } 35978if ${ntp_cv_make_tickadj+:} false; then : 35979 $as_echo_n "(cached) " >&6 35980else 35981 ntp_cv_make_tickadj=yes 35982 35983fi 35984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_make_tickadj" >&5 35985$as_echo "$ntp_cv_make_tickadj" >&6; } 35986case "$ntp_cv_make_tickadj" in 35987 yes) 35988 MAKE_TICKADJ=tickadj 35989 ;; 35990 *) 35991 CALC_TICKADJ_DB= 35992 CALC_TICKADJ_DL= 35993 CALC_TICKADJ_DS= 35994 CALC_TICKADJ_MS= 35995 TICKADJ_DB= 35996 TICKADJ_DL= 35997 TICKADJ_DS= 35998 TICKADJ_MS= 35999 ;; 36000esac 36001 36002 36003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want and can make the timetrim utility" >&5 36004$as_echo_n "checking if we want and can make the timetrim utility... " >&6; } 36005if ${ntp_cv_make_timetrim+:} false; then : 36006 $as_echo_n "(cached) " >&6 36007else 36008 36009 case "$host" in 36010 *-*-irix*) 36011 ntp_cv_make_timetrim=yes 36012 ;; 36013 *-*-unicosmp*) 36014 ntp_cv_make_timetrim=yes 36015 ;; 36016 *) 36017 ntp_cv_make_timetrim=no 36018 ;; 36019 esac 36020 36021 36022fi 36023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_make_timetrim" >&5 36024$as_echo "$ntp_cv_make_timetrim" >&6; } 36025case "$ntp_cv_make_timetrim" in 36026 yes) 36027 MAKE_TIMETRIM=timetrim 36028 ;; 36029 *) TIMETRIM_DB= 36030 TIMETRIM_DL= 36031 TIMETRIM_DS= 36032 TIMETRIM_MS= 36033 ;; 36034esac 36035 36036 36037 36038 36039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to build the NTPD simulator" >&5 36040$as_echo_n "checking if we want to build the NTPD simulator... " >&6; } 36041# Check whether --enable-simulator was given. 36042if test "${enable_simulator+set}" = set; then : 36043 enableval=$enable_simulator; ans=$enableval 36044else 36045 ans=no 36046 36047fi 36048 36049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 36050$as_echo "$ans" >&6; } 36051case "$ans" in 36052 yes) 36053 MAKE_NTPDSIM=ntpdsim 36054 MAKE_LIBNTPSIM=libntpsim.a 36055 ;; 36056 *) 36057 NTPDSIM_DB= 36058 NTPDSIM_DL= 36059 NTPDSIM_DS= 36060 NTPDSIM_MS= 36061 ;; 36062esac 36063 36064case "$build" in 36065 $host) 36066 ;; 36067 *) case "$host" in 36068 *-*-vxworks*) 36069 LDFLAGS="$LDFLAGS -r" 36070 ;; 36071 esac 36072 ;; 36073esac 36074 36075 36076 36077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if sntp will be built" >&5 36078$as_echo_n "checking if sntp will be built... " >&6; } 36079 36080# Check whether --with-sntp was given. 36081if test "${with_sntp+set}" = set; then : 36082 withval=$with_sntp; 36083else 36084 with_sntp="${withsntp=yes}" 36085 36086fi 36087 36088case "$with_sntp" in 36089 no) 36090 SNTP= 36091 ;; 36092 *) 36093 SNTP=sntp 36094 ;; 36095esac 36096 36097 if test -n "$SNTP"; then 36098 BUILD_SNTP_TRUE= 36099 BUILD_SNTP_FALSE='#' 36100else 36101 BUILD_SNTP_TRUE='#' 36102 BUILD_SNTP_FALSE= 36103fi 36104 36105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sntp" >&5 36106$as_echo "$with_sntp" >&6; } 36107 36108 36109 36110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to build ntpsnmpd" >&5 36111$as_echo_n "checking if we want to build ntpsnmpd... " >&6; } 36112 36113# Check whether --with-ntpsnmpd was given. 36114if test "${with_ntpsnmpd+set}" = set; then : 36115 withval=$with_ntpsnmpd; ans=$withval 36116else 36117 36118 case "$PATH_NET_SNMP_CONFIG" in 36119 /*) ans=yes ;; 36120 *) ans=no ;; 36121 esac 36122 36123 36124fi 36125 36126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 36127$as_echo "$ans" >&6; } 36128case "$ans" in 36129 yes) 36130 case "$PATH_NET_SNMP_CONFIG" in 36131 /*) 36132 SNMP_LIBS=`$PATH_NET_SNMP_CONFIG --agent-libs` 36133 # Bug 2815. This is a bit of a hack, but it works... 36134 case "$ntp_cv_net_snmp_version" in 36135 5.3*) SNMP_LIBS=`echo $SNMP_LIBS | $SED -e 's/-lnetsnmpagent/-lnetsnmpagent -lnetsnmpmibs/'` 36136 ;; 36137 esac 36138 36139 # HMS: we really want to separate CPPFLAGS and CFLAGS 36140 foo=`$PATH_NET_SNMP_CONFIG --cflags` 36141 SNMP_CPPFLAGS= 36142 SNMP_CFLAGS= 36143 for i in $foo; do 36144 case "$i" in 36145 -D*|-U*|-I*) 36146 SNMP_CPPFLAGS="$SNMP_CPPFLAGS $i" 36147 ;; 36148 *) SNMP_CFLAGS="$SNMP_CFLAGS $i" 36149 ;; 36150 esac 36151 done 36152 36153 36154 36155 save_CFLAGS=$CFLAGS 36156 save_CPPFLAGS=$CPPFLAGS 36157 save_LIBS=$LIBS 36158 CFLAGS=$SNMP_CFLAGS 36159 CPPFLAGS=$SNMP_CPPFLAGS 36160 36161 ac_fn_c_check_header_mongrel "$LINENO" "net-snmp/net-snmp-config.h" "ac_cv_header_net_snmp_net_snmp_config_h" "$ac_includes_default" 36162if test "x$ac_cv_header_net_snmp_net_snmp_config_h" = xyes; then : 36163 MAKE_NTPSNMPD=ntpsnmpd 36164else 36165 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: net-snmp-config present but net-snmp headers are not available!" >&5 36166$as_echo "$as_me: WARNING: net-snmp-config present but net-snmp headers are not available!" >&2;} 36167 36168fi 36169 36170 36171 36172 # Do this last, as we're messing up LIBS. 36173 # check -lnetsnmp for netsnmp_daemonize 36174 LIBS=`$PATH_NET_SNMP_CONFIG --libs` 36175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for netsnmp_daemonize in -lnetsnmp" >&5 36176$as_echo_n "checking for netsnmp_daemonize in -lnetsnmp... " >&6; } 36177if ${ac_cv_lib_netsnmp_netsnmp_daemonize+:} false; then : 36178 $as_echo_n "(cached) " >&6 36179else 36180 ac_check_lib_save_LIBS=$LIBS 36181LIBS="-lnetsnmp $LIBS" 36182cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36183/* end confdefs.h. */ 36184 36185/* Override any GCC internal prototype to avoid an error. 36186 Use char because int might match the return type of a GCC 36187 builtin and then its argument prototype would still apply. */ 36188#ifdef __cplusplus 36189extern "C" 36190#endif 36191char netsnmp_daemonize (); 36192int 36193main () 36194{ 36195return netsnmp_daemonize (); 36196 ; 36197 return 0; 36198} 36199_ACEOF 36200if ac_fn_c_try_link "$LINENO"; then : 36201 ac_cv_lib_netsnmp_netsnmp_daemonize=yes 36202else 36203 ac_cv_lib_netsnmp_netsnmp_daemonize=no 36204fi 36205rm -f core conftest.err conftest.$ac_objext \ 36206 conftest$ac_exeext conftest.$ac_ext 36207LIBS=$ac_check_lib_save_LIBS 36208fi 36209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_netsnmp_netsnmp_daemonize" >&5 36210$as_echo "$ac_cv_lib_netsnmp_netsnmp_daemonize" >&6; } 36211if test "x$ac_cv_lib_netsnmp_netsnmp_daemonize" = xyes; then : 36212 ans=yes 36213else 36214 ans=no 36215 36216fi 36217 36218 case "$ans" in 36219 no) 36220 36221$as_echo "#define NEED_NETSNMP_DAEMONIZE 1" >>confdefs.h 36222 36223 esac 36224 36225 CFLAGS=$save_CFLAGS 36226 { save_CFLAGS=; unset save_CFLAGS;} 36227 CPPFLAGS=$save_CPPFLAGS 36228 { save_CPPFLAGS=; unset save_CPPFLAGS;} 36229 LIBS=$save_LIBS 36230 { save_LIBS=; unset save_LIBS;} 36231 ;; 36232 *) 36233 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot build ntpsnmpd - net-snmp-config cannot be found" >&5 36234$as_echo "$as_me: WARNING: Cannot build ntpsnmpd - net-snmp-config cannot be found" >&2;} 36235 ;; 36236 esac 36237 ;; 36238esac 36239 36240 36241case "$MAKE_NTPSNMPD" in 36242 '') 36243 NTPSNMPD_DB= 36244 NTPSNMPD_DL= 36245 NTPSNMPD_DS= 36246 NTPSNMPD_MS= 36247 ;; 36248esac 36249 36250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should always slew the time" >&5 36251$as_echo_n "checking if we should always slew the time... " >&6; } 36252 36253# target-specific defaults 36254 36255case "$host" in 36256 *-apple-aux[23]*) 36257 ans=yes 36258 ;; 36259 *-*-bsdi[012]*) 36260 ans=no 36261 ;; 36262 *-*-bsdi*) 36263 ans=yes 36264 ;; 36265 *-*-openvms*) # HMS: won't be found 36266 ans=yes 36267 ;; 36268 *) ans=no 36269 ;; 36270esac 36271 36272# --enable-slew-always / --disable-slew-always overrides default 36273 36274# Check whether --enable-slew-always was given. 36275if test "${enable_slew_always+set}" = set; then : 36276 enableval=$enable_slew_always; ans=$enableval 36277 36278fi 36279 36280 36281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 36282$as_echo "$ans" >&6; } 36283 36284case "$ans" in 36285 yes) 36286 36287$as_echo "#define SLEWALWAYS 1" >>confdefs.h 36288 36289esac 36290 36291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should step and slew the time" >&5 36292$as_echo_n "checking if we should step and slew the time... " >&6; } 36293 36294case "$host" in 36295 *-sni-sysv*) 36296 ans=yes 36297 ;; 36298 *-stratus-vos) 36299 ans=no 36300 ;; 36301 *-univel-sysv*) 36302 ans=no 36303 ;; 36304 *-*-ptx*) 36305 ans=yes 36306 ;; 36307 *-*-solaris2.1[0-9]*) 36308 ans=no 36309 ;; 36310 *-*-solaris2.[012]*) 36311 ans=yes 36312 ;; 36313 *-*-sysv4*) # HMS: Does this catch Fujitsu UXP? 36314 ans=yes 36315 ;; 36316 *) ans=no 36317 ;; 36318esac 36319 36320# Check whether --enable-step-slew was given. 36321if test "${enable_step_slew+set}" = set; then : 36322 enableval=$enable_step_slew; ans=$enableval 36323 36324fi 36325 36326 36327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 36328$as_echo "$ans" >&6; } 36329 36330case "$ans" in 36331 yes) 36332 36333$as_echo "#define STEP_SLEW 1" >>confdefs.h 36334 36335esac 36336 36337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if ntpdate should step the time" >&5 36338$as_echo_n "checking if ntpdate should step the time... " >&6; } 36339 36340case "$host" in 36341 *-apple-aux[23]*) 36342 ans=yes 36343 ;; 36344 *) ans=no 36345 ;; 36346esac 36347 36348# Check whether --enable-ntpdate-step was given. 36349if test "${enable_ntpdate_step+set}" = set; then : 36350 enableval=$enable_ntpdate_step; ans=$enableval 36351 36352fi 36353 36354 36355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 36356$as_echo "$ans" >&6; } 36357 36358case "$ans" in 36359 yes) 36360 36361$as_echo "#define FORCE_NTPDATE_STEP 1" >>confdefs.h 36362 36363esac 36364 36365 36366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should sync TODR clock every hour" >&5 36367$as_echo_n "checking if we should sync TODR clock every hour... " >&6; } 36368 36369case "$host" in 36370 *-*-nextstep*) 36371 ans=yes 36372 ;; 36373 *-*-openvms*) # HMS: won't be found 36374 ans=yes 36375 ;; 36376 *) 36377 ans=no 36378 ;; 36379esac 36380 36381# Check whether --enable-hourly-todr-sync was given. 36382if test "${enable_hourly_todr_sync+set}" = set; then : 36383 enableval=$enable_hourly_todr_sync; ans=$enableval 36384 36385fi 36386 36387 36388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 36389$as_echo "$ans" >&6; } 36390 36391case "$ac_cv_var_sync_todr" in 36392 yes) 36393 36394$as_echo "#define DOSYNCTODR 1" >>confdefs.h 36395 ;; 36396esac 36397 36398 36399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should avoid kernel FLL bug" >&5 36400$as_echo_n "checking if we should avoid kernel FLL bug... " >&6; } 36401 36402case "$host" in 36403 *-*-solaris2.6) 36404 unamev=`uname -v` 36405 case "$unamev" in 36406 Generic_105181-*) 36407 old_IFS="$IFS" 36408 IFS="-" 36409 set $unamev 36410 IFS="$old_IFS" 36411 if test "$2" -ge 17 36412 then 36413 # Generic_105181-17 and higher 36414 ans=no 36415 else 36416 ans=yes 36417 fi 36418 ;; 36419 *) 36420 ans=yes 36421 ;; 36422 esac 36423 ;; 36424 *-*-solaris2.7) 36425 unamev=`uname -v` 36426 case "$unamev" in 36427 Generic_106541-*) 36428 old_IFS="$IFS" 36429 IFS="-" 36430 set $unamev 36431 IFS="$old_IFS" 36432 if test "$2" -ge 07 36433 then 36434 # Generic_106541-07 and higher 36435 ans=no 36436 else 36437 ans=yes 36438 fi 36439 ;; 36440 *) 36441 ans=yes 36442 ;; 36443 esac 36444 ;; 36445 *) 36446 ans=no 36447 ;; 36448esac 36449 36450# Check whether --enable-kernel-fll-bug was given. 36451if test "${enable_kernel_fll_bug+set}" = set; then : 36452 enableval=$enable_kernel_fll_bug; ans=$enableval 36453 36454fi 36455 36456 36457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 36458$as_echo "$ans" >&6; } 36459 36460case "$ans" in 36461 yes) 36462 36463$as_echo "#define KERNEL_FLL_BUG 1" >>confdefs.h 36464 36465esac 36466 36467 36468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want new session key behavior" >&5 36469$as_echo_n "checking if we want new session key behavior... " >&6; } 36470# Check whether --enable-bug1243-fix was given. 36471if test "${enable_bug1243_fix+set}" = set; then : 36472 enableval=$enable_bug1243_fix; ans=$enableval 36473else 36474 ans=yes 36475 36476fi 36477 36478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 36479$as_echo "$ans" >&6; } 36480case "$ans" in 36481 no) 36482 36483$as_echo "#define DISABLE_BUG1243_FIX 1" >>confdefs.h 36484 36485esac 36486 36487 36488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should use the IRIG sawtooth filter" >&5 36489$as_echo_n "checking if we should use the IRIG sawtooth filter... " >&6; } 36490 36491case "$host" in 36492 *-*-solaris2.[89]) 36493 ans=yes 36494 ;; 36495 *-*-solaris2.1[0-9]*) 36496 ans=yes 36497 ;; 36498 *) ans=no 36499 ;; 36500esac 36501 36502# Check whether --enable-irig-sawtooth was given. 36503if test "${enable_irig_sawtooth+set}" = set; then : 36504 enableval=$enable_irig_sawtooth; ans=$enableval 36505 36506fi 36507 36508 36509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 36510$as_echo "$ans" >&6; } 36511 36512case "$ans" in 36513 yes) 36514 36515$as_echo "#define IRIG_SUCKS 1" >>confdefs.h 36516 36517esac 36518 36519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should enable NIST lockclock scheme" >&5 36520$as_echo_n "checking if we should enable NIST lockclock scheme... " >&6; } 36521# Check whether --enable-nist was given. 36522if test "${enable_nist+set}" = set; then : 36523 enableval=$enable_nist; ans=$enableval 36524else 36525 ans=no 36526 36527fi 36528 36529 36530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 36531$as_echo "$ans" >&6; } 36532 36533case "$ans" in 36534 yes) 36535 36536$as_echo "#define LOCKCLOCK 1" >>confdefs.h 36537 ;; 36538esac 36539 36540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want support for Samba's signing daemon" >&5 36541$as_echo_n "checking if we want support for Samba's signing daemon... " >&6; } 36542# Check whether --enable-ntp-signd was given. 36543if test "${enable_ntp_signd+set}" = set; then : 36544 enableval=$enable_ntp_signd; ans=$enableval 36545else 36546 ans=no 36547 36548fi 36549 36550 36551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 36552$as_echo "$ans" >&6; } 36553 36554case "$ans" in 36555 no) 36556 ntp_signd_path= 36557 ;; 36558 yes) 36559 ntp_signd_path=/var/run/ntp_signd 36560 ;; 36561 *) 36562 ntp_signd_path="$ans" 36563esac 36564 36565case "$ntp_signd_path" in 36566 '') 36567 ;; 36568 *) 36569 36570$as_echo "#define HAVE_NTP_SIGND 1" >>confdefs.h 36571 36572 36573cat >>confdefs.h <<_ACEOF 36574#define NTP_SIGND_PATH "$ntp_signd_path" 36575_ACEOF 36576 36577 ;; 36578esac 36579 36580for ac_header in libscf.h 36581do : 36582 ac_fn_c_check_header_mongrel "$LINENO" "libscf.h" "ac_cv_header_libscf_h" "$ac_includes_default" 36583if test "x$ac_cv_header_libscf_h" = xyes; then : 36584 cat >>confdefs.h <<_ACEOF 36585#define HAVE_LIBSCF_H 1 36586_ACEOF 36587 36588fi 36589 36590done 36591 36592LSCF= 36593case "$ac_cv_header_libscf_h" in 36594 yes) 36595 LSCF='-lscf' 36596esac 36597 36598 36599 36600 36601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_storage" >&5 36602$as_echo_n "checking for struct sockaddr_storage... " >&6; } 36603if ${ntp_cv_sockaddr_storage+:} false; then : 36604 $as_echo_n "(cached) " >&6 36605else 36606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36607/* end confdefs.h. */ 36608 36609 #ifdef HAVE_SYS_TYPES_H 36610 # include <sys/types.h> 36611 #endif 36612 #ifdef HAVE_SYS_SOCKET_H 36613 # include <sys/socket.h> 36614 #endif 36615 #ifdef HAVE_NETINET_IN_H 36616 # include <netinet/in.h> 36617 #endif 36618 36619int 36620main () 36621{ 36622 36623 struct sockaddr_storage n; 36624 36625 36626 ; 36627 return 0; 36628} 36629_ACEOF 36630if ac_fn_c_try_compile "$LINENO"; then : 36631 ntp_cv_sockaddr_storage=yes 36632else 36633 ntp_cv_sockaddr_storage=no 36634 36635fi 36636rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 36637 36638fi 36639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_sockaddr_storage" >&5 36640$as_echo "$ntp_cv_sockaddr_storage" >&6; } 36641case "$ntp_cv_sockaddr_storage" in 36642 yes) 36643 36644$as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h 36645 36646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_storage.__ss_family" >&5 36647$as_echo_n "checking for sockaddr_storage.__ss_family... " >&6; } 36648if ${ntp_cv_have___ss_family+:} false; then : 36649 $as_echo_n "(cached) " >&6 36650else 36651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36652/* end confdefs.h. */ 36653 36654 #ifdef HAVE_SYS_TYPES_H 36655 # include <sys/types.h> 36656 #endif 36657 #ifdef HAVE_SYS_SOCKET_H 36658 # include <sys/socket.h> 36659 #endif 36660 #ifdef HAVE_NETINET_IN_H 36661 # include <netinet/in.h> 36662 #endif 36663 36664int 36665main () 36666{ 36667 36668 struct sockaddr_storage s; 36669 s.__ss_family = 1; 36670 36671 36672 ; 36673 return 0; 36674} 36675_ACEOF 36676if ac_fn_c_try_compile "$LINENO"; then : 36677 ntp_cv_have___ss_family=yes 36678else 36679 ntp_cv_have___ss_family=no 36680 36681fi 36682rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 36683 36684fi 36685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_have___ss_family" >&5 36686$as_echo "$ntp_cv_have___ss_family" >&6; } 36687 case "$ntp_cv_have___ss_family" in 36688 yes) 36689 36690$as_echo "#define HAVE___SS_FAMILY_IN_SS 1" >>confdefs.h 36691 36692 esac 36693 36694esac 36695 36696 36697# 36698# Look for in_port_t. 36699# 36700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for in_port_t" >&5 36701$as_echo_n "checking for in_port_t... " >&6; } 36702if ${isc_cv_have_in_port_t+:} false; then : 36703 $as_echo_n "(cached) " >&6 36704else 36705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36706/* end confdefs.h. */ 36707 36708 #include <sys/types.h> 36709 #include <netinet/in.h> 36710 36711int 36712main () 36713{ 36714 36715 in_port_t port = 25; 36716 return (0); 36717 36718 36719 ; 36720 return 0; 36721} 36722_ACEOF 36723if ac_fn_c_try_compile "$LINENO"; then : 36724 isc_cv_have_in_port_t=yes 36725else 36726 isc_cv_have_in_port_t=no 36727 36728fi 36729rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 36730 36731fi 36732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_have_in_port_t" >&5 36733$as_echo "$isc_cv_have_in_port_t" >&6; } 36734case "$isc_cv_have_in_port_t" in 36735 no) 36736 36737$as_echo "#define ISC_PLATFORM_NEEDPORTT 1" >>confdefs.h 36738 36739esac 36740 36741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking type of socklen arg for getsockname()" >&5 36742$as_echo_n "checking type of socklen arg for getsockname()... " >&6; } 36743if ${ntp_cv_getsockname_socklen_type+:} false; then : 36744 $as_echo_n "(cached) " >&6 36745else 36746 36747 getsockname_socklen_type_found=no 36748 for getsockname_arg2 in 'struct sockaddr *' 'void *'; do 36749 for ntp_cv_getsockname_socklen_type in 'socklen_t' 'size_t' 'unsigned int' 'int'; do 36750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36751/* end confdefs.h. */ 36752 36753 #ifdef HAVE_SYS_TYPES_H 36754 # include <sys/types.h> 36755 #endif 36756 #ifdef HAVE_SYS_SOCKET_H 36757 # include <sys/socket.h> 36758 #endif 36759 36760int 36761main () 36762{ 36763 36764 extern 36765 getsockname(int, $getsockname_arg2, 36766 $ntp_cv_getsockname_socklen_type *); 36767 36768 36769 ; 36770 return 0; 36771} 36772_ACEOF 36773if ac_fn_c_try_compile "$LINENO"; then : 36774 getsockname_socklen_type_found=yes ; break 2 36775fi 36776rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 36777 done 36778 done 36779 case "$getsockname_socklen_type_found" in 36780 no) 36781 ntp_cv_getsockname_socklen_type='socklen_t' 36782 esac 36783 { getsockname_arg2=; unset getsockname_arg2;} 36784 { getsockname_socklen_type_found=; unset getsockname_socklen_type_found;} 36785 36786 36787fi 36788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_getsockname_socklen_type" >&5 36789$as_echo "$ntp_cv_getsockname_socklen_type" >&6; } 36790 36791cat >>confdefs.h <<_ACEOF 36792#define GETSOCKNAME_SOCKLEN_TYPE $ntp_cv_getsockname_socklen_type 36793_ACEOF 36794 36795 36796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking struct sockaddr for sa_len" >&5 36797$as_echo_n "checking struct sockaddr for sa_len... " >&6; } 36798if ${isc_cv_platform_havesalen+:} false; then : 36799 $as_echo_n "(cached) " >&6 36800else 36801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36802/* end confdefs.h. */ 36803 36804 #include <sys/types.h> 36805 #include <sys/socket.h> 36806 36807int 36808main () 36809{ 36810 36811 extern struct sockaddr *ps; 36812 return ps->sa_len; 36813 36814 36815 ; 36816 return 0; 36817} 36818_ACEOF 36819if ac_fn_c_try_compile "$LINENO"; then : 36820 isc_cv_platform_havesalen=yes 36821else 36822 isc_cv_platform_havesalen=no 36823 36824fi 36825rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 36826 36827fi 36828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_platform_havesalen" >&5 36829$as_echo "$isc_cv_platform_havesalen" >&6; } 36830case "$isc_cv_platform_havesalen" in 36831 yes) 36832 36833$as_echo "#define ISC_PLATFORM_HAVESALEN 1" >>confdefs.h 36834 36835esac 36836 36837# Check whether --enable-ipv6 was given. 36838if test "${enable_ipv6+set}" = set; then : 36839 enableval=$enable_ipv6; 36840fi 36841 36842 36843case "$enable_ipv6" in 36844 yes|''|autodetect) 36845 case "$host" in 36846 powerpc-ibm-aix4*) 36847 ;; 36848 *) 36849 36850$as_echo "#define WANT_IPV6 1" >>confdefs.h 36851 36852 ;; 36853 esac 36854 ;; 36855 no) 36856 ;; 36857esac 36858 36859 36860case "$host" in 36861 *-*-darwin*) 36862 36863$as_echo "#define __APPLE_USE_RFC_3542 1" >>confdefs.h 36864 36865esac 36866 36867 36868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv6 structures" >&5 36869$as_echo_n "checking for IPv6 structures... " >&6; } 36870if ${isc_cv_found_ipv6+:} false; then : 36871 $as_echo_n "(cached) " >&6 36872else 36873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36874/* end confdefs.h. */ 36875 36876 #include <sys/types.h> 36877 #include <sys/socket.h> 36878 #include <netinet/in.h> 36879 36880int 36881main () 36882{ 36883 36884 struct sockaddr_in6 sin6; 36885 36886 36887 ; 36888 return 0; 36889} 36890_ACEOF 36891if ac_fn_c_try_compile "$LINENO"; then : 36892 isc_cv_found_ipv6=yes 36893else 36894 isc_cv_found_ipv6=no 36895 36896fi 36897rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 36898 36899fi 36900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_found_ipv6" >&5 36901$as_echo "$isc_cv_found_ipv6" >&6; } 36902 36903# 36904# See whether IPv6 support is provided via a Kame add-on. 36905# This is done before other IPv6 linking tests so LIBS is properly set. 36906# 36907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Kame IPv6 support" >&5 36908$as_echo_n "checking for Kame IPv6 support... " >&6; } 36909 36910# Check whether --with-kame was given. 36911if test "${with_kame+set}" = set; then : 36912 withval=$with_kame; use_kame="$withval" 36913else 36914 use_kame="no" 36915 36916fi 36917 36918case "$use_kame" in 36919 no) 36920 ;; 36921 yes) 36922 kame_path=/usr/local/v6 36923 ;; 36924 *) 36925 kame_path="$use_kame" 36926 ;; 36927esac 36928case "$use_kame" in 36929 no) 36930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36931$as_echo "no" >&6; } 36932 ;; 36933 *) 36934 if test -f $kame_path/lib/libinet6.a; then 36935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kame_path/lib/libinet6.a" >&5 36936$as_echo "$kame_path/lib/libinet6.a" >&6; } 36937 LIBS="-L$kame_path/lib -linet6 $LIBS" 36938 else 36939 as_fn_error $? "$kame_path/lib/libinet6.a not found. 36940 36941Please choose the proper path with the following command: 36942 36943 configure --with-kame=PATH 36944" "$LINENO" 5 36945 fi 36946 ;; 36947esac 36948 36949# 36950# Whether netinet6/in6.h is needed has to be defined in isc/platform.h. 36951# Including it on Kame-using platforms is very bad, though, because 36952# Kame uses #error against direct inclusion. So include it on only 36953# the platform that is otherwise broken without it -- BSD/OS 4.0 through 4.1. 36954# This is done before the in6_pktinfo check because that's what 36955# netinet6/in6.h is needed for. 36956# 36957case "$host" in 36958 *-bsdi4.[01]*) 36959 36960$as_echo "#define ISC_PLATFORM_NEEDNETINET6IN6H 1" >>confdefs.h 36961 36962 isc_netinet6in6_hack="#include <netinet6/in6.h>" 36963 ;; 36964 *) 36965 isc_netinet6in6_hack="" 36966 ;; 36967esac 36968 36969# 36970# This is similar to the netinet6/in6.h issue. 36971# 36972case "$host" in 36973 *-sco-sysv*uw*|*-*-sysv*UnixWare*|*-*-sysv*OpenUNIX*) 36974 36975$as_echo "#define ISC_PLATFORM_FIXIN6ISADDR 1" >>confdefs.h 36976 36977 isc_netinetin6_hack="#include <netinet/in6.h>" 36978 ;; 36979 *) 36980 isc_netinetin6_hack="" 36981 ;; 36982esac 36983 36984 36985case "$isc_cv_found_ipv6" in 36986 yes) 36987 36988$as_echo "#define ISC_PLATFORM_HAVEIPV6 1" >>confdefs.h 36989 36990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in6_pktinfo" >&5 36991$as_echo_n "checking for in6_pktinfo... " >&6; } 36992if ${isc_cv_have_in6_pktinfo+:} false; then : 36993 $as_echo_n "(cached) " >&6 36994else 36995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36996/* end confdefs.h. */ 36997 36998 #include <sys/types.h> 36999 #include <sys/socket.h> 37000 #include <netinet/in.h> 37001 $isc_netinetin6_hack 37002 $isc_netinet6in6_hack 37003 37004int 37005main () 37006{ 37007 37008 struct in6_pktinfo xyzzy; 37009 37010 37011 ; 37012 return 0; 37013} 37014_ACEOF 37015if ac_fn_c_try_compile "$LINENO"; then : 37016 isc_cv_have_in6_pktinfo=yes 37017else 37018 isc_cv_have_in6_pktinfo=no 37019 37020fi 37021rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 37022 37023fi 37024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_have_in6_pktinfo" >&5 37025$as_echo "$isc_cv_have_in6_pktinfo" >&6; } 37026 case "$isc_cv_have_in6_pktinfo" in 37027 yes) 37028 37029$as_echo "#define ISC_PLATFORM_HAVEIN6PKTINFO 1" >>confdefs.h 37030 37031 esac 37032 37033 37034 # HMS: Use HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID instead? 37035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_in6.sin6_scope_id" >&5 37036$as_echo_n "checking for sockaddr_in6.sin6_scope_id... " >&6; } 37037if ${isc_cv_have_sin6_scope_id+:} false; then : 37038 $as_echo_n "(cached) " >&6 37039else 37040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 37041/* end confdefs.h. */ 37042 37043 #include <sys/types.h> 37044 #include <sys/socket.h> 37045 #include <netinet/in.h> 37046 $isc_netinetin6_hack 37047 $isc_netinet6in6_hack 37048 37049int 37050main () 37051{ 37052 37053 struct sockaddr_in6 xyzzy; 37054 xyzzy.sin6_scope_id = 0; 37055 37056 37057 ; 37058 return 0; 37059} 37060_ACEOF 37061if ac_fn_c_try_compile "$LINENO"; then : 37062 isc_cv_have_sin6_scope_id=yes 37063else 37064 isc_cv_have_sin6_scope_id=no 37065 37066fi 37067rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 37068 37069fi 37070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_have_sin6_scope_id" >&5 37071$as_echo "$isc_cv_have_sin6_scope_id" >&6; } 37072 37073 case "$isc_cv_have_sin6_scope_id" in 37074 yes) 37075 37076$as_echo "#define ISC_PLATFORM_HAVESCOPEID 1" >>confdefs.h 37077 37078 esac 37079esac 37080 37081 37082# We need this check run even without isc_cv_found_ipv6=yes 37083 37084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for in6addr_any" >&5 37085$as_echo_n "checking for in6addr_any... " >&6; } 37086if ${isc_cv_in6addr_any_links+:} false; then : 37087 $as_echo_n "(cached) " >&6 37088else 37089 37090 SAVED_LIBS="$LIBS" 37091 LIBS="$LDADD_LIBNTP $LIBS" 37092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 37093/* end confdefs.h. */ 37094$ac_includes_default 37095 #include <sys/socket.h> 37096 #include <netinet/in.h> 37097 $isc_netinetin6_hack 37098 $isc_netinet6in6_hack 37099 37100int 37101main () 37102{ 37103 37104 printf("%x", in6addr_any.s6_addr[15]); 37105 37106 37107 ; 37108 return 0; 37109} 37110_ACEOF 37111if ac_fn_c_try_link "$LINENO"; then : 37112 isc_cv_in6addr_any_links=yes 37113else 37114 isc_cv_in6addr_any_links=no 37115 37116fi 37117rm -f core conftest.err conftest.$ac_objext \ 37118 conftest$ac_exeext conftest.$ac_ext 37119 LIBS="$SAVED_LIBS" 37120 { SAVED_LIBS=; unset SAVED_LIBS;} 37121 37122 37123fi 37124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_in6addr_any_links" >&5 37125$as_echo "$isc_cv_in6addr_any_links" >&6; } 37126 37127case "$isc_cv_in6addr_any_links" in 37128 no) 37129 37130$as_echo "#define ISC_PLATFORM_NEEDIN6ADDRANY 1" >>confdefs.h 37131 37132esac 37133 37134 37135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct if_laddrconf" >&5 37136$as_echo_n "checking for struct if_laddrconf... " >&6; } 37137if ${isc_cv_struct_if_laddrconf+:} false; then : 37138 $as_echo_n "(cached) " >&6 37139else 37140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 37141/* end confdefs.h. */ 37142 37143 #include <sys/types.h> 37144 #include <net/if6.h> 37145 37146int 37147main () 37148{ 37149 37150 struct if_laddrconf a; 37151 37152 37153 ; 37154 return 0; 37155} 37156_ACEOF 37157if ac_fn_c_try_compile "$LINENO"; then : 37158 isc_cv_struct_if_laddrconf=yes 37159else 37160 isc_cv_struct_if_laddrconf=no 37161 37162fi 37163rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 37164 37165fi 37166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_struct_if_laddrconf" >&5 37167$as_echo "$isc_cv_struct_if_laddrconf" >&6; } 37168 37169case "$isc_cv_struct_if_laddrconf" in 37170 yes) 37171 37172$as_echo "#define ISC_PLATFORM_HAVEIF_LADDRCONF 1" >>confdefs.h 37173 37174esac 37175 37176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct if_laddrreq" >&5 37177$as_echo_n "checking for struct if_laddrreq... " >&6; } 37178if ${isc_cv_struct_if_laddrreq+:} false; then : 37179 $as_echo_n "(cached) " >&6 37180else 37181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 37182/* end confdefs.h. */ 37183 37184 #include <sys/types.h> 37185 #include <net/if6.h> 37186 37187int 37188main () 37189{ 37190 37191 struct if_laddrreq a; 37192 37193 37194 ; 37195 return 0; 37196} 37197_ACEOF 37198if ac_fn_c_try_compile "$LINENO"; then : 37199 isc_cv_struct_if_laddrreq=yes 37200else 37201 isc_cv_struct_if_laddrreq=no 37202 37203fi 37204rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 37205 37206fi 37207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_struct_if_laddrreq" >&5 37208$as_echo "$isc_cv_struct_if_laddrreq" >&6; } 37209 37210case "$isc_cv_struct_if_laddrreq" in 37211 yes) 37212 37213$as_echo "#define ISC_PLATFORM_HAVEIF_LADDRREQ 1" >>confdefs.h 37214 37215esac 37216 37217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for multicast IP support" >&5 37218$as_echo_n "checking for multicast IP support... " >&6; } 37219if ${ntp_cv_multicast+:} false; then : 37220 $as_echo_n "(cached) " >&6 37221else 37222 37223 ntp_cv_multicast=no 37224 case "$host" in 37225 i386-sequent-sysv4) 37226 ;; 37227 *) 37228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 37229/* end confdefs.h. */ 37230 37231 #ifdef HAVE_NETINET_IN_H 37232 # include <netinet/in.h> 37233 #endif 37234 37235int 37236main () 37237{ 37238 37239 struct ip_mreq ipmr; 37240 ipmr.imr_interface.s_addr = 0; 37241 37242 37243 ; 37244 return 0; 37245} 37246_ACEOF 37247if ac_fn_c_try_compile "$LINENO"; then : 37248 ntp_cv_multicast=yes 37249fi 37250rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 37251 ;; 37252 esac 37253 37254 37255fi 37256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_multicast" >&5 37257$as_echo "$ntp_cv_multicast" >&6; } 37258case "$ntp_cv_multicast" in 37259 yes) 37260 37261$as_echo "#define MCAST 1" >>confdefs.h 37262 37263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking arg type needed for setsockopt() IP*_MULTICAST_LOOP" >&5 37264$as_echo_n "checking arg type needed for setsockopt() IP*_MULTICAST_LOOP... " >&6; } 37265if ${ntp_cv_typeof_ip_multicast_loop+:} false; then : 37266 $as_echo_n "(cached) " >&6 37267else 37268 37269 case "$host" in 37270 *-*-netbsd*|*-*-*linux*) 37271 ntp_cv_typeof_ip_multicast_loop=u_int 37272 ;; 37273 *) 37274 ntp_cv_typeof_ip_multicast_loop=u_char 37275 ;; 37276 esac 37277 37278 37279fi 37280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_typeof_ip_multicast_loop" >&5 37281$as_echo "$ntp_cv_typeof_ip_multicast_loop" >&6; } 37282 37283cat >>confdefs.h <<_ACEOF 37284#define TYPEOF_IP_MULTICAST_LOOP $ntp_cv_typeof_ip_multicast_loop 37285_ACEOF 37286 37287esac 37288 37289# Check whether --enable-getifaddrs was given. 37290if test "${enable_getifaddrs+set}" = set; then : 37291 enableval=$enable_getifaddrs; want_getifaddrs="$enableval" 37292else 37293 want_getifaddrs="yes" 37294 37295fi 37296 37297 37298case $want_getifaddrs in 37299 glibc) 37300 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-getifaddrs=glibc is no longer required" >&5 37301$as_echo "$as_me: WARNING: --enable-getifaddrs=glibc is no longer required" >&2;} 37302esac 37303case $want_getifaddrs in 37304 no) 37305 ;; 37306 *) 37307 SAVED_LIBS="$LIBS" 37308 LIBS="$LDADD_LIBNTP $LIBS" 37309 for ac_func in getifaddrs 37310do : 37311 ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs" 37312if test "x$ac_cv_func_getifaddrs" = xyes; then : 37313 cat >>confdefs.h <<_ACEOF 37314#define HAVE_GETIFADDRS 1 37315_ACEOF 37316 37317fi 37318done 37319 37320 LIBS="$SAVED_LIBS" 37321 { SAVED_LIBS=; unset SAVED_LIBS;} 37322 ;; 37323esac 37324 37325# 37326# Check for if_nametoindex() for IPv6 scoped addresses support 37327# 37328case "$host" in 37329 *-hp-hpux*) 37330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing if_nametoindex" >&5 37331$as_echo_n "checking for library containing if_nametoindex... " >&6; } 37332if ${ac_cv_search_if_nametoindex+:} false; then : 37333 $as_echo_n "(cached) " >&6 37334else 37335 ac_func_search_save_LIBS=$LIBS 37336cat confdefs.h - <<_ACEOF >conftest.$ac_ext 37337/* end confdefs.h. */ 37338 37339/* Override any GCC internal prototype to avoid an error. 37340 Use char because int might match the return type of a GCC 37341 builtin and then its argument prototype would still apply. */ 37342#ifdef __cplusplus 37343extern "C" 37344#endif 37345char if_nametoindex (); 37346int 37347main () 37348{ 37349return if_nametoindex (); 37350 ; 37351 return 0; 37352} 37353_ACEOF 37354for ac_lib in '' ipv6; do 37355 if test -z "$ac_lib"; then 37356 ac_res="none required" 37357 else 37358 ac_res=-l$ac_lib 37359 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 37360 fi 37361 if ac_fn_c_try_link "$LINENO"; then : 37362 ac_cv_search_if_nametoindex=$ac_res 37363fi 37364rm -f core conftest.err conftest.$ac_objext \ 37365 conftest$ac_exeext 37366 if ${ac_cv_search_if_nametoindex+:} false; then : 37367 break 37368fi 37369done 37370if ${ac_cv_search_if_nametoindex+:} false; then : 37371 37372else 37373 ac_cv_search_if_nametoindex=no 37374fi 37375rm conftest.$ac_ext 37376LIBS=$ac_func_search_save_LIBS 37377fi 37378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_if_nametoindex" >&5 37379$as_echo "$ac_cv_search_if_nametoindex" >&6; } 37380ac_res=$ac_cv_search_if_nametoindex 37381if test "$ac_res" != no; then : 37382 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 37383 37384fi 37385 37386esac 37387SAVED_LIBS="$LIBS" 37388LIBS="$LDADD_LIBNTP $LIBS" 37389for ac_func in if_nametoindex 37390do : 37391 ac_fn_c_check_func "$LINENO" "if_nametoindex" "ac_cv_func_if_nametoindex" 37392if test "x$ac_cv_func_if_nametoindex" = xyes; then : 37393 cat >>confdefs.h <<_ACEOF 37394#define HAVE_IF_NAMETOINDEX 1 37395_ACEOF 37396 37397fi 37398done 37399 37400LIBS="$SAVED_LIBS" 37401{ SAVED_LIBS=; unset SAVED_LIBS;} 37402case "$ac_cv_func_if_nametoindex" in 37403 yes) 37404 37405$as_echo "#define ISC_PLATFORM_HAVEIFNAMETOINDEX 1" >>confdefs.h 37406 37407esac 37408 37409 37410 37411 37412# 37413# Look for a sysctl call to get the list of network interfaces. 37414# 37415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for interface list sysctl" >&5 37416$as_echo_n "checking for interface list sysctl... " >&6; } 37417if ${ntp_cv_iflist_sysctl+:} false; then : 37418 $as_echo_n "(cached) " >&6 37419else 37420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 37421/* end confdefs.h. */ 37422 37423 #include <sys/param.h> 37424 #include <sys/sysctl.h> 37425 #include <sys/socket.h> 37426 #ifndef NET_RT_IFLIST 37427 # error 37428 #endif 37429 37430_ACEOF 37431if ac_fn_c_try_cpp "$LINENO"; then : 37432 ntp_cv_iflist_sysctl=yes 37433else 37434 ntp_cv_iflist_sysctl=no 37435 37436fi 37437rm -f conftest.err conftest.i conftest.$ac_ext 37438 37439fi 37440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_iflist_sysctl" >&5 37441$as_echo "$ntp_cv_iflist_sysctl" >&6; } 37442case "$ntp_cv_iflist_sysctl" in 37443 yes) 37444 37445$as_echo "#define HAVE_IFLIST_SYSCTL 1" >>confdefs.h 37446 37447esac 37448 37449### 37450 37451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want the saveconfig mechanism" >&5 37452$as_echo_n "checking if we want the saveconfig mechanism... " >&6; } 37453# Check whether --enable-saveconfig was given. 37454if test "${enable_saveconfig+set}" = set; then : 37455 enableval=$enable_saveconfig; ntp_ok=$enableval 37456else 37457 ntp_ok=yes 37458 37459fi 37460 37461ntp_saveconfig_enabled=0 37462case "$ntp_ok" in 37463 yes) 37464 ntp_saveconfig_enabled=1 37465 37466$as_echo "#define SAVECONFIG 1" >>confdefs.h 37467 37468 ;; 37469esac 37470 if test x$ntp_saveconfig_enabled = x1; then 37471 SAVECONFIG_ENABLED_TRUE= 37472 SAVECONFIG_ENABLED_FALSE='#' 37473else 37474 SAVECONFIG_ENABLED_TRUE='#' 37475 SAVECONFIG_ENABLED_FALSE= 37476fi 37477 37478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 37479$as_echo "$ntp_ok" >&6; } 37480 37481### 37482 37483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want the experimental leap smear code" >&5 37484$as_echo_n "checking if we want the experimental leap smear code... " >&6; } 37485# Check whether --enable-leap-smear was given. 37486if test "${enable_leap_smear+set}" = set; then : 37487 enableval=$enable_leap_smear; ntp_ok=$enableval 37488else 37489 ntp_ok=no 37490 37491fi 37492 37493ntp_leap_smear_enabled=0 37494case "$ntp_ok" in 37495 yes) 37496 ntp_leap_smear_enabled=1 37497 37498$as_echo "#define LEAP_SMEAR 1" >>confdefs.h 37499 37500 37501 HAVE_LEAPSMEARINTERVAL="leapsmearinterval 0" 37502 ;; 37503esac 37504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 37505$as_echo "$ntp_ok" >&6; } 37506 37507 37508# We may not need have_unity 37509have_unity=false 37510# Extract the first word of "ruby", so it can be a program name with args. 37511set dummy ruby; ac_word=$2 37512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37513$as_echo_n "checking for $ac_word... " >&6; } 37514if ${ac_cv_path_PATH_RUBY+:} false; then : 37515 $as_echo_n "(cached) " >&6 37516else 37517 case $PATH_RUBY in 37518 [\\/]* | ?:[\\/]*) 37519 ac_cv_path_PATH_RUBY="$PATH_RUBY" # Let the user override the test with a path. 37520 ;; 37521 *) 37522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37523for as_dir in $PATH 37524do 37525 IFS=$as_save_IFS 37526 test -z "$as_dir" && as_dir=. 37527 for ac_exec_ext in '' $ac_executable_extensions; do 37528 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37529 ac_cv_path_PATH_RUBY="$as_dir/$ac_word$ac_exec_ext" 37530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37531 break 2 37532 fi 37533done 37534 done 37535IFS=$as_save_IFS 37536 37537 ;; 37538esac 37539fi 37540PATH_RUBY=$ac_cv_path_PATH_RUBY 37541if test -n "$PATH_RUBY"; then 37542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_RUBY" >&5 37543$as_echo "$PATH_RUBY" >&6; } 37544else 37545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37546$as_echo "no" >&6; } 37547fi 37548 37549 37550case "$PATH_RUBY" in 37551 /*) 37552 have_unity=true 37553 ;; 37554 *) PATH_RUBY="false" 37555 ;; 37556esac 37557# We may not need UNITYBUILD_AVAILABLE 37558 if $have_unity; then 37559 UNITYBUILD_AVAILABLE_TRUE= 37560 UNITYBUILD_AVAILABLE_FALSE='#' 37561else 37562 UNITYBUILD_AVAILABLE_TRUE='#' 37563 UNITYBUILD_AVAILABLE_FALSE= 37564fi 37565 37566 37567 37568 37569 37570gta=false 37571 37572# Check whether --with-gtest was given. 37573if test "${with_gtest+set}" = set; then : 37574 withval=$with_gtest; try_gtest=$withval 37575else 37576 try_gtest=yes 37577 37578fi 37579 37580case "$try_gtest" in 37581 yes) 37582 # Extract the first word of "gtest-config", so it can be a program name with args. 37583set dummy gtest-config; ac_word=$2 37584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37585$as_echo_n "checking for $ac_word... " >&6; } 37586if ${ac_cv_path_GTEST_CONFIG+:} false; then : 37587 $as_echo_n "(cached) " >&6 37588else 37589 case $GTEST_CONFIG in 37590 [\\/]* | ?:[\\/]*) 37591 ac_cv_path_GTEST_CONFIG="$GTEST_CONFIG" # Let the user override the test with a path. 37592 ;; 37593 *) 37594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37595for as_dir in $PATH 37596do 37597 IFS=$as_save_IFS 37598 test -z "$as_dir" && as_dir=. 37599 for ac_exec_ext in '' $ac_executable_extensions; do 37600 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37601 ac_cv_path_GTEST_CONFIG="$as_dir/$ac_word$ac_exec_ext" 37602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37603 break 2 37604 fi 37605done 37606 done 37607IFS=$as_save_IFS 37608 37609 ;; 37610esac 37611fi 37612GTEST_CONFIG=$ac_cv_path_GTEST_CONFIG 37613if test -n "$GTEST_CONFIG"; then 37614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTEST_CONFIG" >&5 37615$as_echo "$GTEST_CONFIG" >&6; } 37616else 37617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37618$as_echo "no" >&6; } 37619fi 37620 37621 37622 { ac_cv_path_GTEST_CONFIG=; unset ac_cv_path_GTEST_CONFIG;} 37623 case x${GTEST_CONFIG} in 37624 x) ;; 37625 *) 37626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gtest version" >&5 37627$as_echo_n "checking gtest version... " >&6; } 37628 gtest_version_test=`$GTEST_CONFIG --min-version=1.5 || echo toolow` 37629 case "$gtest_version_test" in 37630 toolow*) 37631 ;; 37632 *) 37633 GTEST_LDFLAGS=`$GTEST_CONFIG --ldflags` 37634 GTEST_LIBS=`$GTEST_CONFIG --libs` 37635 GTEST_CXXFLAGS=`$GTEST_CONFIG --cxxflags` 37636 GTEST_CPPFLAGS=`$GTEST_CONFIG --cppflags` 37637 37638 37639 37640 37641 gta=true 37642 ;; 37643 esac 37644 gtest_version=`$GTEST_CONFIG --version` 37645 case "$gta" in 37646 true) 37647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ($gtest_version) ok" >&5 37648$as_echo "($gtest_version) ok" >&6; } 37649 ;; 37650 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: ($gtest_version) not ok" >&5 37651$as_echo "($gtest_version) not ok" >&6; } 37652 ;; 37653 esac 37654 { gtest_version_test=; unset gtest_version_test;} 37655 { gtest_version=; unset gtest_version;} 37656 esac 37657esac 37658 if $gta; then 37659 GTEST_AVAILABLE_TRUE= 37660 GTEST_AVAILABLE_FALSE='#' 37661else 37662 GTEST_AVAILABLE_TRUE='#' 37663 GTEST_AVAILABLE_FALSE= 37664fi 37665 37666 37667 37668 37669 37670case "$build" in 37671 $host) cross=0 ;; 37672 *) cross=1 ;; 37673esac 37674 37675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to enable tests with undiagnosed problems" >&5 37676$as_echo_n "checking if we want to enable tests with undiagnosed problems... " >&6; } 37677# Check whether --enable-problem-tests was given. 37678if test "${enable_problem_tests+set}" = set; then : 37679 enableval=$enable_problem_tests; ntp_ept=$enableval 37680else 37681 ntp_ept=yes 37682 37683fi 37684 37685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ept" >&5 37686$as_echo "$ntp_ept" >&6; } 37687 37688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can run test-ntp_restrict" >&5 37689$as_echo_n "checking if we can run test-ntp_restrict... " >&6; } 37690ntp_test_ntp_restrict="no" 37691case "$ntp_ept:$cross:$host" in 37692 no:0:*-*-freebsd6.4) ;; 37693 no:0:*-*-hpux11.23*) ;; 37694 no:0:*-*-solaris*) ;; 37695 *) ntp_test_ntp_restrict="yes" ;; 37696esac 37697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_test_ntp_restrict" >&5 37698$as_echo "$ntp_test_ntp_restrict" >&6; } 37699 if test x$ntp_test_ntp_restrict = xyes; then 37700 BUILD_TEST_NTP_RESTRICT_TRUE= 37701 BUILD_TEST_NTP_RESTRICT_FALSE='#' 37702else 37703 BUILD_TEST_NTP_RESTRICT_TRUE='#' 37704 BUILD_TEST_NTP_RESTRICT_FALSE= 37705fi 37706 37707 37708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can run test-ntp_scanner" >&5 37709$as_echo_n "checking if we can run test-ntp_scanner... " >&6; } 37710ntp_test_ntp_scanner="no" 37711case "$ntp_ept:$cross:$host" in 37712 no:0:*-*-freebsd6.4) ;; 37713 no:0:*-*-solaris*) ;; 37714 *) ntp_test_ntp_scanner="yes" ;; 37715esac 37716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_test_ntp_scanner" >&5 37717$as_echo "$ntp_test_ntp_scanner" >&6; } 37718 if test x$ntp_test_ntp_scanner = xyes; then 37719 BUILD_TEST_NTP_SCANNER_TRUE= 37720 BUILD_TEST_NTP_SCANNER_FALSE='#' 37721else 37722 BUILD_TEST_NTP_SCANNER_TRUE='#' 37723 BUILD_TEST_NTP_SCANNER_FALSE= 37724fi 37725 37726 37727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can run test-ntp_signd" >&5 37728$as_echo_n "checking if we can run test-ntp_signd... " >&6; } 37729ntp_test_ntp_signd="no" 37730case "$ntp_ept:$cross:$host" in 37731 no:0:*-*-freebsd6.4) ;; 37732 no:0:*-*-solaris*) ;; 37733 *) ntp_test_ntp_signd="yes" ;; 37734esac 37735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_test_ntp_signd" >&5 37736$as_echo "$ntp_test_ntp_signd" >&6; } 37737 if test x$ntp_test_ntp_signd = xyes; then 37738 BUILD_TEST_NTP_SIGND_TRUE= 37739 BUILD_TEST_NTP_SIGND_FALSE='#' 37740else 37741 BUILD_TEST_NTP_SIGND_TRUE='#' 37742 BUILD_TEST_NTP_SIGND_FALSE= 37743fi 37744 37745 37746 37747### 37748 37749 37750 prefix_NONE= 37751 exec_prefix_NONE= 37752 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 37753 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 37754 eval ac_define_dir="\"$sysconfdir\"" 37755 eval ac_define_dir="\"$ac_define_dir\"" 37756 NTP_KEYSDIR="$ac_define_dir" 37757 37758 37759cat >>confdefs.h <<_ACEOF 37760#define NTP_KEYSDIR "$ac_define_dir" 37761_ACEOF 37762 37763 test "$prefix_NONE" && prefix=NONE 37764 test "$exec_prefix_NONE" && exec_prefix=NONE 37765 37766 37767ac_config_files="$ac_config_files Makefile" 37768 37769ac_config_files="$ac_config_files adjtimed/Makefile" 37770 37771ac_config_files="$ac_config_files clockstuff/Makefile" 37772 37773ac_config_files="$ac_config_files include/Makefile" 37774 37775ac_config_files="$ac_config_files include/isc/Makefile" 37776 37777ac_config_files="$ac_config_files kernel/Makefile" 37778 37779ac_config_files="$ac_config_files kernel/sys/Makefile" 37780 37781ac_config_files="$ac_config_files libntp/Makefile" 37782 37783ac_config_files="$ac_config_files libparse/Makefile" 37784 37785ac_config_files="$ac_config_files ntpd/Makefile" 37786 37787ac_config_files="$ac_config_files ntpd/complete.conf" 37788 37789ac_config_files="$ac_config_files ntpdate/Makefile" 37790 37791ac_config_files="$ac_config_files ntpdc/Makefile" 37792 37793ac_config_files="$ac_config_files ntpdc/nl.pl" 37794 37795ac_config_files="$ac_config_files ntpq/Makefile" 37796 37797ac_config_files="$ac_config_files ntpsnmpd/Makefile" 37798 37799ac_config_files="$ac_config_files parseutil/Makefile" 37800 37801ac_config_files="$ac_config_files scripts/Makefile" 37802 37803ac_config_files="$ac_config_files scripts/build/Makefile" 37804 37805ac_config_files="$ac_config_files scripts/build/mkver" 37806 37807ac_config_files="$ac_config_files scripts/calc_tickadj/Makefile" 37808 37809ac_config_files="$ac_config_files scripts/calc_tickadj/calc_tickadj" 37810 37811ac_config_files="$ac_config_files scripts/lib/Makefile" 37812 37813ac_config_files="$ac_config_files scripts/ntp-wait/Makefile" 37814 37815ac_config_files="$ac_config_files scripts/ntp-wait/ntp-wait" 37816 37817ac_config_files="$ac_config_files scripts/ntpsweep/Makefile" 37818 37819ac_config_files="$ac_config_files scripts/ntpsweep/ntpsweep" 37820 37821ac_config_files="$ac_config_files scripts/ntptrace/Makefile" 37822 37823ac_config_files="$ac_config_files scripts/ntptrace/ntptrace" 37824 37825ac_config_files="$ac_config_files scripts/ntpver" 37826 37827ac_config_files="$ac_config_files scripts/plot_summary" 37828 37829ac_config_files="$ac_config_files scripts/summary" 37830 37831ac_config_files="$ac_config_files scripts/update-leap/Makefile" 37832 37833ac_config_files="$ac_config_files scripts/update-leap/update-leap" 37834 37835ac_config_files="$ac_config_files tests/Makefile" 37836 37837ac_config_files="$ac_config_files tests/bug-2803/Makefile" 37838 37839ac_config_files="$ac_config_files tests/libntp/Makefile" 37840 37841ac_config_files="$ac_config_files tests/ntpd/Makefile" 37842 37843ac_config_files="$ac_config_files tests/ntpq/Makefile" 37844 37845ac_config_files="$ac_config_files tests/sandbox/Makefile" 37846 37847ac_config_files="$ac_config_files tests/sec-2853/Makefile" 37848 37849ac_config_files="$ac_config_files util/Makefile" 37850 37851 37852perllibdir="${datadir}/ntp/lib" 37853 37854 prefix_NONE= 37855 exec_prefix_NONE= 37856 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 37857 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 37858 eval ac_define_dir="\"$perllibdir\"" 37859 eval ac_define_dir="\"$ac_define_dir\"" 37860 PERLLIBDIR="$ac_define_dir" 37861 37862 37863cat >>confdefs.h <<_ACEOF 37864#define PERLLIBDIR "$ac_define_dir" 37865_ACEOF 37866 37867 test "$prefix_NONE" && prefix=NONE 37868 test "$exec_prefix_NONE" && exec_prefix=NONE 37869 37870 37871calc_tickadj_opts="$srcdir/scripts/calc_tickadj/calc_tickadj-opts" 37872 37873ntp_wait_opts="$srcdir/scripts/ntp-wait/ntp-wait-opts" 37874 37875ntpsweep_opts="$srcdir/scripts/ntpsweep/ntpsweep-opts" 37876 37877ntptrace_opts="$srcdir/scripts/ntptrace/ntptrace-opts" 37878 37879summary_opts="$srcdir/scripts/summary-opts" 37880 37881plot_summary_opts="$srcdir/scripts/plot_summary-opts" 37882 37883 37884 37885 37886subdirs="$subdirs sntp" 37887 37888 37889cat >confcache <<\_ACEOF 37890# This file is a shell script that caches the results of configure 37891# tests run on this system so they can be shared between configure 37892# scripts and configure runs, see configure's option --config-cache. 37893# It is not useful on other systems. If it contains results you don't 37894# want to keep, you may remove or edit it. 37895# 37896# config.status only pays attention to the cache file if you give it 37897# the --recheck option to rerun configure. 37898# 37899# `ac_cv_env_foo' variables (set or unset) will be overridden when 37900# loading this file, other *unset* `ac_cv_foo' will be assigned the 37901# following values. 37902 37903_ACEOF 37904 37905# The following way of writing the cache mishandles newlines in values, 37906# but we know of no workaround that is simple, portable, and efficient. 37907# So, we kill variables containing newlines. 37908# Ultrix sh set writes to stderr and can't be redirected directly, 37909# and sets the high bit in the cache file unless we assign to the vars. 37910( 37911 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 37912 eval ac_val=\$$ac_var 37913 case $ac_val in #( 37914 *${as_nl}*) 37915 case $ac_var in #( 37916 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 37917$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 37918 esac 37919 case $ac_var in #( 37920 _ | IFS | as_nl) ;; #( 37921 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 37922 *) { eval $ac_var=; unset $ac_var;} ;; 37923 esac ;; 37924 esac 37925 done 37926 37927 (set) 2>&1 | 37928 case $as_nl`(ac_space=' '; set) 2>&1` in #( 37929 *${as_nl}ac_space=\ *) 37930 # `set' does not quote correctly, so add quotes: double-quote 37931 # substitution turns \\\\ into \\, and sed turns \\ into \. 37932 sed -n \ 37933 "s/'/'\\\\''/g; 37934 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 37935 ;; #( 37936 *) 37937 # `set' quotes correctly as required by POSIX, so do not add quotes. 37938 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 37939 ;; 37940 esac | 37941 sort 37942) | 37943 sed ' 37944 /^ac_cv_env_/b end 37945 t clear 37946 :clear 37947 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 37948 t end 37949 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 37950 :end' >>confcache 37951if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 37952 if test -w "$cache_file"; then 37953 if test "x$cache_file" != "x/dev/null"; then 37954 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 37955$as_echo "$as_me: updating cache $cache_file" >&6;} 37956 if test ! -f "$cache_file" || test -h "$cache_file"; then 37957 cat confcache >"$cache_file" 37958 else 37959 case $cache_file in #( 37960 */* | ?:*) 37961 mv -f confcache "$cache_file"$$ && 37962 mv -f "$cache_file"$$ "$cache_file" ;; #( 37963 *) 37964 mv -f confcache "$cache_file" ;; 37965 esac 37966 fi 37967 fi 37968 else 37969 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 37970$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 37971 fi 37972fi 37973rm -f confcache 37974 37975test "x$prefix" = xNONE && prefix=$ac_default_prefix 37976# Let make expand exec_prefix. 37977test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 37978 37979DEFS=-DHAVE_CONFIG_H 37980 37981ac_libobjs= 37982ac_ltlibobjs= 37983U= 37984for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 37985 # 1. Remove the extension, and $U if already installed. 37986 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 37987 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 37988 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 37989 # will be set to the directory where LIBOBJS objects are built. 37990 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 37991 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 37992done 37993LIBOBJS=$ac_libobjs 37994 37995LTLIBOBJS=$ac_ltlibobjs 37996 37997 37998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 37999$as_echo_n "checking that generated files are newer than configure... " >&6; } 38000 if test -n "$am_sleep_pid"; then 38001 # Hide warnings about reused PIDs. 38002 wait $am_sleep_pid 2>/dev/null 38003 fi 38004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 38005$as_echo "done" >&6; } 38006 if test -n "$EXEEXT"; then 38007 am__EXEEXT_TRUE= 38008 am__EXEEXT_FALSE='#' 38009else 38010 am__EXEEXT_TRUE='#' 38011 am__EXEEXT_FALSE= 38012fi 38013 38014if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 38015 as_fn_error $? "conditional \"AMDEP\" was never defined. 38016Usually this means the macro was only invoked conditionally." "$LINENO" 5 38017fi 38018if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 38019 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 38020Usually this means the macro was only invoked conditionally." "$LINENO" 5 38021fi 38022if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 38023 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 38024Usually this means the macro was only invoked conditionally." "$LINENO" 5 38025fi 38026 38027if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 38028 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. 38029Usually this means the macro was only invoked conditionally." "$LINENO" 5 38030fi 38031if test -z "${VPATH_HACK_TRUE}" && test -z "${VPATH_HACK_FALSE}"; then 38032 as_fn_error $? "conditional \"VPATH_HACK\" was never defined. 38033Usually this means the macro was only invoked conditionally." "$LINENO" 5 38034fi 38035if test -z "${WANT_CALC_TICKADJ_MS_TRUE}" && test -z "${WANT_CALC_TICKADJ_MS_FALSE}"; then 38036 as_fn_error $? "conditional \"WANT_CALC_TICKADJ_MS\" was never defined. 38037Usually this means the macro was only invoked conditionally." "$LINENO" 5 38038fi 38039if test -z "${INSTALL_NTPSWEEP_TRUE}" && test -z "${INSTALL_NTPSWEEP_FALSE}"; then 38040 as_fn_error $? "conditional \"INSTALL_NTPSWEEP\" was never defined. 38041Usually this means the macro was only invoked conditionally." "$LINENO" 5 38042fi 38043if test -z "${INSTALL_UPDATE_LEAP_TRUE}" && test -z "${INSTALL_UPDATE_LEAP_FALSE}"; then 38044 as_fn_error $? "conditional \"INSTALL_UPDATE_LEAP\" was never defined. 38045Usually this means the macro was only invoked conditionally." "$LINENO" 5 38046fi 38047if test -z "${GL_GENERATE_STDNORETURN_H_TRUE}" && test -z "${GL_GENERATE_STDNORETURN_H_FALSE}"; then 38048 as_fn_error $? "conditional \"GL_GENERATE_STDNORETURN_H\" was never defined. 38049Usually this means the macro was only invoked conditionally." "$LINENO" 5 38050fi 38051if test -z "${INSTALL_LIBOPTS_TRUE}" && test -z "${INSTALL_LIBOPTS_FALSE}"; then 38052 as_fn_error $? "conditional \"INSTALL_LIBOPTS\" was never defined. 38053Usually this means the macro was only invoked conditionally." "$LINENO" 5 38054fi 38055if test -z "${NEED_LIBOPTS_TRUE}" && test -z "${NEED_LIBOPTS_FALSE}"; then 38056 as_fn_error $? "conditional \"NEED_LIBOPTS\" was never defined. 38057Usually this means the macro was only invoked conditionally." "$LINENO" 5 38058fi 38059if test -z "${BUILD_LIBEVENT_TRUE}" && test -z "${BUILD_LIBEVENT_FALSE}"; then 38060 as_fn_error $? "conditional \"BUILD_LIBEVENT\" was never defined. 38061Usually this means the macro was only invoked conditionally." "$LINENO" 5 38062fi 38063if test -z "${NTP_CROSSCOMPILE_TRUE}" && test -z "${NTP_CROSSCOMPILE_FALSE}"; then 38064 as_fn_error $? "conditional \"NTP_CROSSCOMPILE\" was never defined. 38065Usually this means the macro was only invoked conditionally." "$LINENO" 5 38066fi 38067if test -z "${PTHREADS_TRUE}" && test -z "${PTHREADS_FALSE}"; then 38068 as_fn_error $? "conditional \"PTHREADS\" was never defined. 38069Usually this means the macro was only invoked conditionally." "$LINENO" 5 38070fi 38071if test -z "${BUILD_SNTP_TRUE}" && test -z "${BUILD_SNTP_FALSE}"; then 38072 as_fn_error $? "conditional \"BUILD_SNTP\" was never defined. 38073Usually this means the macro was only invoked conditionally." "$LINENO" 5 38074fi 38075if test -z "${SAVECONFIG_ENABLED_TRUE}" && test -z "${SAVECONFIG_ENABLED_FALSE}"; then 38076 as_fn_error $? "conditional \"SAVECONFIG_ENABLED\" was never defined. 38077Usually this means the macro was only invoked conditionally." "$LINENO" 5 38078fi 38079if test -z "${UNITYBUILD_AVAILABLE_TRUE}" && test -z "${UNITYBUILD_AVAILABLE_FALSE}"; then 38080 as_fn_error $? "conditional \"UNITYBUILD_AVAILABLE\" was never defined. 38081Usually this means the macro was only invoked conditionally." "$LINENO" 5 38082fi 38083if test -z "${GTEST_AVAILABLE_TRUE}" && test -z "${GTEST_AVAILABLE_FALSE}"; then 38084 as_fn_error $? "conditional \"GTEST_AVAILABLE\" was never defined. 38085Usually this means the macro was only invoked conditionally." "$LINENO" 5 38086fi 38087if test -z "${BUILD_TEST_NTP_RESTRICT_TRUE}" && test -z "${BUILD_TEST_NTP_RESTRICT_FALSE}"; then 38088 as_fn_error $? "conditional \"BUILD_TEST_NTP_RESTRICT\" was never defined. 38089Usually this means the macro was only invoked conditionally." "$LINENO" 5 38090fi 38091if test -z "${BUILD_TEST_NTP_SCANNER_TRUE}" && test -z "${BUILD_TEST_NTP_SCANNER_FALSE}"; then 38092 as_fn_error $? "conditional \"BUILD_TEST_NTP_SCANNER\" was never defined. 38093Usually this means the macro was only invoked conditionally." "$LINENO" 5 38094fi 38095if test -z "${BUILD_TEST_NTP_SIGND_TRUE}" && test -z "${BUILD_TEST_NTP_SIGND_FALSE}"; then 38096 as_fn_error $? "conditional \"BUILD_TEST_NTP_SIGND\" was never defined. 38097Usually this means the macro was only invoked conditionally." "$LINENO" 5 38098fi 38099 38100: "${CONFIG_STATUS=./config.status}" 38101ac_write_fail=0 38102ac_clean_files_save=$ac_clean_files 38103ac_clean_files="$ac_clean_files $CONFIG_STATUS" 38104{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 38105$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 38106as_write_fail=0 38107cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 38108#! $SHELL 38109# Generated by $as_me. 38110# Run this file to recreate the current configuration. 38111# Compiler output produced by configure, useful for debugging 38112# configure, is in config.log if it exists. 38113 38114debug=false 38115ac_cs_recheck=false 38116ac_cs_silent=false 38117 38118SHELL=\${CONFIG_SHELL-$SHELL} 38119export SHELL 38120_ASEOF 38121cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 38122## -------------------- ## 38123## M4sh Initialization. ## 38124## -------------------- ## 38125 38126# Be more Bourne compatible 38127DUALCASE=1; export DUALCASE # for MKS sh 38128if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 38129 emulate sh 38130 NULLCMD=: 38131 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 38132 # is contrary to our usage. Disable this feature. 38133 alias -g '${1+"$@"}'='"$@"' 38134 setopt NO_GLOB_SUBST 38135else 38136 case `(set -o) 2>/dev/null` in #( 38137 *posix*) : 38138 set -o posix ;; #( 38139 *) : 38140 ;; 38141esac 38142fi 38143 38144 38145as_nl=' 38146' 38147export as_nl 38148# Printing a long string crashes Solaris 7 /usr/bin/printf. 38149as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 38150as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 38151as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 38152# Prefer a ksh shell builtin over an external printf program on Solaris, 38153# but without wasting forks for bash or zsh. 38154if test -z "$BASH_VERSION$ZSH_VERSION" \ 38155 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 38156 as_echo='print -r --' 38157 as_echo_n='print -rn --' 38158elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 38159 as_echo='printf %s\n' 38160 as_echo_n='printf %s' 38161else 38162 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 38163 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 38164 as_echo_n='/usr/ucb/echo -n' 38165 else 38166 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 38167 as_echo_n_body='eval 38168 arg=$1; 38169 case $arg in #( 38170 *"$as_nl"*) 38171 expr "X$arg" : "X\\(.*\\)$as_nl"; 38172 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 38173 esac; 38174 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 38175 ' 38176 export as_echo_n_body 38177 as_echo_n='sh -c $as_echo_n_body as_echo' 38178 fi 38179 export as_echo_body 38180 as_echo='sh -c $as_echo_body as_echo' 38181fi 38182 38183# The user is always right. 38184if test "${PATH_SEPARATOR+set}" != set; then 38185 PATH_SEPARATOR=: 38186 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 38187 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 38188 PATH_SEPARATOR=';' 38189 } 38190fi 38191 38192 38193# IFS 38194# We need space, tab and new line, in precisely that order. Quoting is 38195# there to prevent editors from complaining about space-tab. 38196# (If _AS_PATH_WALK were called with IFS unset, it would disable word 38197# splitting by setting IFS to empty value.) 38198IFS=" "" $as_nl" 38199 38200# Find who we are. Look in the path if we contain no directory separator. 38201as_myself= 38202case $0 in #(( 38203 *[\\/]* ) as_myself=$0 ;; 38204 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38205for as_dir in $PATH 38206do 38207 IFS=$as_save_IFS 38208 test -z "$as_dir" && as_dir=. 38209 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 38210 done 38211IFS=$as_save_IFS 38212 38213 ;; 38214esac 38215# We did not find ourselves, most probably we were run as `sh COMMAND' 38216# in which case we are not to be found in the path. 38217if test "x$as_myself" = x; then 38218 as_myself=$0 38219fi 38220if test ! -f "$as_myself"; then 38221 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 38222 exit 1 38223fi 38224 38225# Unset variables that we do not need and which cause bugs (e.g. in 38226# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 38227# suppresses any "Segmentation fault" message there. '((' could 38228# trigger a bug in pdksh 5.2.14. 38229for as_var in BASH_ENV ENV MAIL MAILPATH 38230do eval test x\${$as_var+set} = xset \ 38231 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 38232done 38233PS1='$ ' 38234PS2='> ' 38235PS4='+ ' 38236 38237# NLS nuisances. 38238LC_ALL=C 38239export LC_ALL 38240LANGUAGE=C 38241export LANGUAGE 38242 38243# CDPATH. 38244(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 38245 38246 38247# as_fn_error STATUS ERROR [LINENO LOG_FD] 38248# ---------------------------------------- 38249# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 38250# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 38251# script with STATUS, using 1 if that was 0. 38252as_fn_error () 38253{ 38254 as_status=$1; test $as_status -eq 0 && as_status=1 38255 if test "$4"; then 38256 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 38257 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 38258 fi 38259 $as_echo "$as_me: error: $2" >&2 38260 as_fn_exit $as_status 38261} # as_fn_error 38262 38263 38264# as_fn_set_status STATUS 38265# ----------------------- 38266# Set $? to STATUS, without forking. 38267as_fn_set_status () 38268{ 38269 return $1 38270} # as_fn_set_status 38271 38272# as_fn_exit STATUS 38273# ----------------- 38274# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 38275as_fn_exit () 38276{ 38277 set +e 38278 as_fn_set_status $1 38279 exit $1 38280} # as_fn_exit 38281 38282# as_fn_unset VAR 38283# --------------- 38284# Portably unset VAR. 38285as_fn_unset () 38286{ 38287 { eval $1=; unset $1;} 38288} 38289as_unset=as_fn_unset 38290# as_fn_append VAR VALUE 38291# ---------------------- 38292# Append the text in VALUE to the end of the definition contained in VAR. Take 38293# advantage of any shell optimizations that allow amortized linear growth over 38294# repeated appends, instead of the typical quadratic growth present in naive 38295# implementations. 38296if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 38297 eval 'as_fn_append () 38298 { 38299 eval $1+=\$2 38300 }' 38301else 38302 as_fn_append () 38303 { 38304 eval $1=\$$1\$2 38305 } 38306fi # as_fn_append 38307 38308# as_fn_arith ARG... 38309# ------------------ 38310# Perform arithmetic evaluation on the ARGs, and store the result in the 38311# global $as_val. Take advantage of shells that can avoid forks. The arguments 38312# must be portable across $(()) and expr. 38313if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 38314 eval 'as_fn_arith () 38315 { 38316 as_val=$(( $* )) 38317 }' 38318else 38319 as_fn_arith () 38320 { 38321 as_val=`expr "$@" || test $? -eq 1` 38322 } 38323fi # as_fn_arith 38324 38325 38326if expr a : '\(a\)' >/dev/null 2>&1 && 38327 test "X`expr 00001 : '.*\(...\)'`" = X001; then 38328 as_expr=expr 38329else 38330 as_expr=false 38331fi 38332 38333if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 38334 as_basename=basename 38335else 38336 as_basename=false 38337fi 38338 38339if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 38340 as_dirname=dirname 38341else 38342 as_dirname=false 38343fi 38344 38345as_me=`$as_basename -- "$0" || 38346$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 38347 X"$0" : 'X\(//\)$' \| \ 38348 X"$0" : 'X\(/\)' \| . 2>/dev/null || 38349$as_echo X/"$0" | 38350 sed '/^.*\/\([^/][^/]*\)\/*$/{ 38351 s//\1/ 38352 q 38353 } 38354 /^X\/\(\/\/\)$/{ 38355 s//\1/ 38356 q 38357 } 38358 /^X\/\(\/\).*/{ 38359 s//\1/ 38360 q 38361 } 38362 s/.*/./; q'` 38363 38364# Avoid depending upon Character Ranges. 38365as_cr_letters='abcdefghijklmnopqrstuvwxyz' 38366as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 38367as_cr_Letters=$as_cr_letters$as_cr_LETTERS 38368as_cr_digits='0123456789' 38369as_cr_alnum=$as_cr_Letters$as_cr_digits 38370 38371ECHO_C= ECHO_N= ECHO_T= 38372case `echo -n x` in #((((( 38373-n*) 38374 case `echo 'xy\c'` in 38375 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 38376 xy) ECHO_C='\c';; 38377 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 38378 ECHO_T=' ';; 38379 esac;; 38380*) 38381 ECHO_N='-n';; 38382esac 38383 38384rm -f conf$$ conf$$.exe conf$$.file 38385if test -d conf$$.dir; then 38386 rm -f conf$$.dir/conf$$.file 38387else 38388 rm -f conf$$.dir 38389 mkdir conf$$.dir 2>/dev/null 38390fi 38391if (echo >conf$$.file) 2>/dev/null; then 38392 if ln -s conf$$.file conf$$ 2>/dev/null; then 38393 as_ln_s='ln -s' 38394 # ... but there are two gotchas: 38395 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 38396 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 38397 # In both cases, we have to default to `cp -pR'. 38398 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 38399 as_ln_s='cp -pR' 38400 elif ln conf$$.file conf$$ 2>/dev/null; then 38401 as_ln_s=ln 38402 else 38403 as_ln_s='cp -pR' 38404 fi 38405else 38406 as_ln_s='cp -pR' 38407fi 38408rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 38409rmdir conf$$.dir 2>/dev/null 38410 38411 38412# as_fn_mkdir_p 38413# ------------- 38414# Create "$as_dir" as a directory, including parents if necessary. 38415as_fn_mkdir_p () 38416{ 38417 38418 case $as_dir in #( 38419 -*) as_dir=./$as_dir;; 38420 esac 38421 test -d "$as_dir" || eval $as_mkdir_p || { 38422 as_dirs= 38423 while :; do 38424 case $as_dir in #( 38425 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 38426 *) as_qdir=$as_dir;; 38427 esac 38428 as_dirs="'$as_qdir' $as_dirs" 38429 as_dir=`$as_dirname -- "$as_dir" || 38430$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 38431 X"$as_dir" : 'X\(//\)[^/]' \| \ 38432 X"$as_dir" : 'X\(//\)$' \| \ 38433 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 38434$as_echo X"$as_dir" | 38435 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 38436 s//\1/ 38437 q 38438 } 38439 /^X\(\/\/\)[^/].*/{ 38440 s//\1/ 38441 q 38442 } 38443 /^X\(\/\/\)$/{ 38444 s//\1/ 38445 q 38446 } 38447 /^X\(\/\).*/{ 38448 s//\1/ 38449 q 38450 } 38451 s/.*/./; q'` 38452 test -d "$as_dir" && break 38453 done 38454 test -z "$as_dirs" || eval "mkdir $as_dirs" 38455 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 38456 38457 38458} # as_fn_mkdir_p 38459if mkdir -p . 2>/dev/null; then 38460 as_mkdir_p='mkdir -p "$as_dir"' 38461else 38462 test -d ./-p && rmdir ./-p 38463 as_mkdir_p=false 38464fi 38465 38466 38467# as_fn_executable_p FILE 38468# ----------------------- 38469# Test if FILE is an executable regular file. 38470as_fn_executable_p () 38471{ 38472 test -f "$1" && test -x "$1" 38473} # as_fn_executable_p 38474as_test_x='test -x' 38475as_executable_p=as_fn_executable_p 38476 38477# Sed expression to map a string onto a valid CPP name. 38478as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 38479 38480# Sed expression to map a string onto a valid variable name. 38481as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 38482 38483 38484exec 6>&1 38485## ----------------------------------- ## 38486## Main body of $CONFIG_STATUS script. ## 38487## ----------------------------------- ## 38488_ASEOF 38489test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 38490 38491cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 38492# Save the log message, to keep $0 and so on meaningful, and to 38493# report actual input values of CONFIG_FILES etc. instead of their 38494# values after options handling. 38495ac_log=" 38496This file was extended by ntp $as_me 4.2.8p5, which was 38497generated by GNU Autoconf 2.69. Invocation command line was 38498 38499 CONFIG_FILES = $CONFIG_FILES 38500 CONFIG_HEADERS = $CONFIG_HEADERS 38501 CONFIG_LINKS = $CONFIG_LINKS 38502 CONFIG_COMMANDS = $CONFIG_COMMANDS 38503 $ $0 $@ 38504 38505on `(hostname || uname -n) 2>/dev/null | sed 1q` 38506" 38507 38508_ACEOF 38509 38510case $ac_config_files in *" 38511"*) set x $ac_config_files; shift; ac_config_files=$*;; 38512esac 38513 38514case $ac_config_headers in *" 38515"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 38516esac 38517 38518 38519cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 38520# Files that config.status was made for. 38521config_files="$ac_config_files" 38522config_headers="$ac_config_headers" 38523config_commands="$ac_config_commands" 38524 38525_ACEOF 38526 38527cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 38528ac_cs_usage="\ 38529\`$as_me' instantiates files and other configuration actions 38530from templates according to the current configuration. Unless the files 38531and actions are specified as TAGs, all are instantiated by default. 38532 38533Usage: $0 [OPTION]... [TAG]... 38534 38535 -h, --help print this help, then exit 38536 -V, --version print version number and configuration settings, then exit 38537 --config print configuration, then exit 38538 -q, --quiet, --silent 38539 do not print progress messages 38540 -d, --debug don't remove temporary files 38541 --recheck update $as_me by reconfiguring in the same conditions 38542 --file=FILE[:TEMPLATE] 38543 instantiate the configuration file FILE 38544 --header=FILE[:TEMPLATE] 38545 instantiate the configuration header FILE 38546 38547Configuration files: 38548$config_files 38549 38550Configuration headers: 38551$config_headers 38552 38553Configuration commands: 38554$config_commands 38555 38556Report bugs to <http://bugs.ntp.org./>. 38557ntp home page: <http://www.ntp.org./>." 38558 38559_ACEOF 38560cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 38561ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 38562ac_cs_version="\\ 38563ntp config.status 4.2.8p5 38564configured by $0, generated by GNU Autoconf 2.69, 38565 with options \\"\$ac_cs_config\\" 38566 38567Copyright (C) 2012 Free Software Foundation, Inc. 38568This config.status script is free software; the Free Software Foundation 38569gives unlimited permission to copy, distribute and modify it." 38570 38571ac_pwd='$ac_pwd' 38572srcdir='$srcdir' 38573INSTALL='$INSTALL' 38574MKDIR_P='$MKDIR_P' 38575AWK='$AWK' 38576test -n "\$AWK" || AWK=awk 38577_ACEOF 38578 38579cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 38580# The default lists apply if the user does not specify any file. 38581ac_need_defaults=: 38582while test $# != 0 38583do 38584 case $1 in 38585 --*=?*) 38586 ac_option=`expr "X$1" : 'X\([^=]*\)='` 38587 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 38588 ac_shift=: 38589 ;; 38590 --*=) 38591 ac_option=`expr "X$1" : 'X\([^=]*\)='` 38592 ac_optarg= 38593 ac_shift=: 38594 ;; 38595 *) 38596 ac_option=$1 38597 ac_optarg=$2 38598 ac_shift=shift 38599 ;; 38600 esac 38601 38602 case $ac_option in 38603 # Handling of the options. 38604 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 38605 ac_cs_recheck=: ;; 38606 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 38607 $as_echo "$ac_cs_version"; exit ;; 38608 --config | --confi | --conf | --con | --co | --c ) 38609 $as_echo "$ac_cs_config"; exit ;; 38610 --debug | --debu | --deb | --de | --d | -d ) 38611 debug=: ;; 38612 --file | --fil | --fi | --f ) 38613 $ac_shift 38614 case $ac_optarg in 38615 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 38616 '') as_fn_error $? "missing file argument" ;; 38617 esac 38618 as_fn_append CONFIG_FILES " '$ac_optarg'" 38619 ac_need_defaults=false;; 38620 --header | --heade | --head | --hea ) 38621 $ac_shift 38622 case $ac_optarg in 38623 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 38624 esac 38625 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 38626 ac_need_defaults=false;; 38627 --he | --h) 38628 # Conflict between --help and --header 38629 as_fn_error $? "ambiguous option: \`$1' 38630Try \`$0 --help' for more information.";; 38631 --help | --hel | -h ) 38632 $as_echo "$ac_cs_usage"; exit ;; 38633 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 38634 | -silent | --silent | --silen | --sile | --sil | --si | --s) 38635 ac_cs_silent=: ;; 38636 38637 # This is an error. 38638 -*) as_fn_error $? "unrecognized option: \`$1' 38639Try \`$0 --help' for more information." ;; 38640 38641 *) as_fn_append ac_config_targets " $1" 38642 ac_need_defaults=false ;; 38643 38644 esac 38645 shift 38646done 38647 38648ac_configure_extra_args= 38649 38650if $ac_cs_silent; then 38651 exec 6>/dev/null 38652 ac_configure_extra_args="$ac_configure_extra_args --silent" 38653fi 38654 38655_ACEOF 38656cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 38657if \$ac_cs_recheck; then 38658 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 38659 shift 38660 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 38661 CONFIG_SHELL='$SHELL' 38662 export CONFIG_SHELL 38663 exec "\$@" 38664fi 38665 38666_ACEOF 38667cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 38668exec 5>>config.log 38669{ 38670 echo 38671 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 38672## Running $as_me. ## 38673_ASBOX 38674 $as_echo "$ac_log" 38675} >&5 38676 38677_ACEOF 38678cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 38679# 38680# INIT-COMMANDS 38681# 38682AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 38683 38684 38685# The HP-UX ksh and POSIX shell print the target directory to stdout 38686# if CDPATH is set. 38687(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 38688 38689sed_quote_subst='$sed_quote_subst' 38690double_quote_subst='$double_quote_subst' 38691delay_variable_subst='$delay_variable_subst' 38692enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 38693macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 38694macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 38695enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 38696pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 38697enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 38698shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 38699SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 38700ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 38701PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 38702host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 38703host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 38704host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 38705build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 38706build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 38707build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 38708SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 38709Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 38710GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 38711EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 38712FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 38713LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 38714NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 38715LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 38716max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 38717ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 38718exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 38719lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 38720lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 38721lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 38722lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 38723lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 38724reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 38725reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 38726OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 38727deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 38728file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 38729file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 38730want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 38731DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 38732sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 38733AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 38734AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 38735archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 38736STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 38737RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 38738old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 38739old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 38740old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 38741lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 38742CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 38743CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 38744compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 38745GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 38746lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 38747lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 38748lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 38749lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 38750lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`' 38751lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 38752nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 38753lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 38754lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 38755objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 38756MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 38757lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 38758lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 38759lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 38760lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 38761lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 38762need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 38763MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 38764DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 38765NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 38766LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 38767OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 38768OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 38769libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 38770shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 38771extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 38772archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 38773enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 38774export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 38775whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 38776compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 38777old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 38778old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 38779archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 38780archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 38781module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 38782module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 38783with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 38784allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 38785no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 38786hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 38787hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 38788hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 38789hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 38790hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 38791hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 38792hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 38793inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 38794link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 38795always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 38796export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 38797exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 38798include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 38799prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 38800postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 38801file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 38802variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 38803need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 38804need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 38805version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 38806runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 38807shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 38808shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 38809libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 38810library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 38811soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 38812install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 38813postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 38814postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 38815finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 38816finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 38817hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 38818sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 38819configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 38820configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 38821hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 38822enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 38823enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 38824enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 38825old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 38826striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 38827compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' 38828predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' 38829postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' 38830predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' 38831postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' 38832compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' 38833LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' 38834reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' 38835reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' 38836old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 38837compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' 38838GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' 38839lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' 38840lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' 38841lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' 38842lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' 38843lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' 38844archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' 38845enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' 38846export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 38847whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 38848compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' 38849old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' 38850old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' 38851archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 38852archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 38853module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' 38854module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 38855with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' 38856allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 38857no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 38858hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 38859hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' 38860hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' 38861hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' 38862hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' 38863hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' 38864hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' 38865inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' 38866link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' 38867always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' 38868export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' 38869exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 38870include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 38871prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 38872postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 38873file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' 38874hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' 38875compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' 38876predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' 38877postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' 38878predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' 38879postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' 38880compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' 38881 38882LTCC='$LTCC' 38883LTCFLAGS='$LTCFLAGS' 38884compiler='$compiler_DEFAULT' 38885 38886# A function that is used when there is no print builtin or printf. 38887func_fallback_echo () 38888{ 38889 eval 'cat <<_LTECHO_EOF 38890\$1 38891_LTECHO_EOF' 38892} 38893 38894# Quote evaled strings. 38895for var in SHELL \ 38896ECHO \ 38897PATH_SEPARATOR \ 38898SED \ 38899GREP \ 38900EGREP \ 38901FGREP \ 38902LD \ 38903NM \ 38904LN_S \ 38905lt_SP2NL \ 38906lt_NL2SP \ 38907reload_flag \ 38908OBJDUMP \ 38909deplibs_check_method \ 38910file_magic_cmd \ 38911file_magic_glob \ 38912want_nocaseglob \ 38913DLLTOOL \ 38914sharedlib_from_linklib_cmd \ 38915AR \ 38916AR_FLAGS \ 38917archiver_list_spec \ 38918STRIP \ 38919RANLIB \ 38920CC \ 38921CFLAGS \ 38922compiler \ 38923lt_cv_sys_global_symbol_pipe \ 38924lt_cv_sys_global_symbol_to_cdecl \ 38925lt_cv_sys_global_symbol_to_import \ 38926lt_cv_sys_global_symbol_to_c_name_address \ 38927lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 38928lt_cv_nm_interface \ 38929nm_file_list_spec \ 38930lt_cv_truncate_bin \ 38931lt_prog_compiler_no_builtin_flag \ 38932lt_prog_compiler_pic \ 38933lt_prog_compiler_wl \ 38934lt_prog_compiler_static \ 38935lt_cv_prog_compiler_c_o \ 38936need_locks \ 38937MANIFEST_TOOL \ 38938DSYMUTIL \ 38939NMEDIT \ 38940LIPO \ 38941OTOOL \ 38942OTOOL64 \ 38943shrext_cmds \ 38944export_dynamic_flag_spec \ 38945whole_archive_flag_spec \ 38946compiler_needs_object \ 38947with_gnu_ld \ 38948allow_undefined_flag \ 38949no_undefined_flag \ 38950hardcode_libdir_flag_spec \ 38951hardcode_libdir_separator \ 38952exclude_expsyms \ 38953include_expsyms \ 38954file_list_spec \ 38955variables_saved_for_relink \ 38956libname_spec \ 38957library_names_spec \ 38958soname_spec \ 38959install_override_mode \ 38960finish_eval \ 38961old_striplib \ 38962striplib \ 38963compiler_lib_search_dirs \ 38964predep_objects \ 38965postdep_objects \ 38966predeps \ 38967postdeps \ 38968compiler_lib_search_path \ 38969LD_CXX \ 38970reload_flag_CXX \ 38971compiler_CXX \ 38972lt_prog_compiler_no_builtin_flag_CXX \ 38973lt_prog_compiler_pic_CXX \ 38974lt_prog_compiler_wl_CXX \ 38975lt_prog_compiler_static_CXX \ 38976lt_cv_prog_compiler_c_o_CXX \ 38977export_dynamic_flag_spec_CXX \ 38978whole_archive_flag_spec_CXX \ 38979compiler_needs_object_CXX \ 38980with_gnu_ld_CXX \ 38981allow_undefined_flag_CXX \ 38982no_undefined_flag_CXX \ 38983hardcode_libdir_flag_spec_CXX \ 38984hardcode_libdir_separator_CXX \ 38985exclude_expsyms_CXX \ 38986include_expsyms_CXX \ 38987file_list_spec_CXX \ 38988compiler_lib_search_dirs_CXX \ 38989predep_objects_CXX \ 38990postdep_objects_CXX \ 38991predeps_CXX \ 38992postdeps_CXX \ 38993compiler_lib_search_path_CXX; do 38994 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 38995 *[\\\\\\\`\\"\\\$]*) 38996 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 38997 ;; 38998 *) 38999 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 39000 ;; 39001 esac 39002done 39003 39004# Double-quote double-evaled strings. 39005for var in reload_cmds \ 39006old_postinstall_cmds \ 39007old_postuninstall_cmds \ 39008old_archive_cmds \ 39009extract_expsyms_cmds \ 39010old_archive_from_new_cmds \ 39011old_archive_from_expsyms_cmds \ 39012archive_cmds \ 39013archive_expsym_cmds \ 39014module_cmds \ 39015module_expsym_cmds \ 39016export_symbols_cmds \ 39017prelink_cmds \ 39018postlink_cmds \ 39019postinstall_cmds \ 39020postuninstall_cmds \ 39021finish_cmds \ 39022sys_lib_search_path_spec \ 39023configure_time_dlsearch_path \ 39024configure_time_lt_sys_library_path \ 39025reload_cmds_CXX \ 39026old_archive_cmds_CXX \ 39027old_archive_from_new_cmds_CXX \ 39028old_archive_from_expsyms_cmds_CXX \ 39029archive_cmds_CXX \ 39030archive_expsym_cmds_CXX \ 39031module_cmds_CXX \ 39032module_expsym_cmds_CXX \ 39033export_symbols_cmds_CXX \ 39034prelink_cmds_CXX \ 39035postlink_cmds_CXX; do 39036 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 39037 *[\\\\\\\`\\"\\\$]*) 39038 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 39039 ;; 39040 *) 39041 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 39042 ;; 39043 esac 39044done 39045 39046ac_aux_dir='$ac_aux_dir' 39047 39048# See if we are running on zsh, and set the options that allow our 39049# commands through without removal of \ escapes INIT. 39050if test -n "\${ZSH_VERSION+set}"; then 39051 setopt NO_GLOB_SUBST 39052fi 39053 39054 39055 PACKAGE='$PACKAGE' 39056 VERSION='$VERSION' 39057 RM='$RM' 39058 ofile='$ofile' 39059 39060 39061 39062 39063 39064 39065_ACEOF 39066 39067cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 39068 39069# Handling of arguments. 39070for ac_config_target in $ac_config_targets 39071do 39072 case $ac_config_target in 39073 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 39074 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 39075 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 39076 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 39077 "adjtimed/Makefile") CONFIG_FILES="$CONFIG_FILES adjtimed/Makefile" ;; 39078 "clockstuff/Makefile") CONFIG_FILES="$CONFIG_FILES clockstuff/Makefile" ;; 39079 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; 39080 "include/isc/Makefile") CONFIG_FILES="$CONFIG_FILES include/isc/Makefile" ;; 39081 "kernel/Makefile") CONFIG_FILES="$CONFIG_FILES kernel/Makefile" ;; 39082 "kernel/sys/Makefile") CONFIG_FILES="$CONFIG_FILES kernel/sys/Makefile" ;; 39083 "libntp/Makefile") CONFIG_FILES="$CONFIG_FILES libntp/Makefile" ;; 39084 "libparse/Makefile") CONFIG_FILES="$CONFIG_FILES libparse/Makefile" ;; 39085 "ntpd/Makefile") CONFIG_FILES="$CONFIG_FILES ntpd/Makefile" ;; 39086 "ntpd/complete.conf") CONFIG_FILES="$CONFIG_FILES ntpd/complete.conf" ;; 39087 "ntpdate/Makefile") CONFIG_FILES="$CONFIG_FILES ntpdate/Makefile" ;; 39088 "ntpdc/Makefile") CONFIG_FILES="$CONFIG_FILES ntpdc/Makefile" ;; 39089 "ntpdc/nl.pl") CONFIG_FILES="$CONFIG_FILES ntpdc/nl.pl" ;; 39090 "ntpq/Makefile") CONFIG_FILES="$CONFIG_FILES ntpq/Makefile" ;; 39091 "ntpsnmpd/Makefile") CONFIG_FILES="$CONFIG_FILES ntpsnmpd/Makefile" ;; 39092 "parseutil/Makefile") CONFIG_FILES="$CONFIG_FILES parseutil/Makefile" ;; 39093 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;; 39094 "scripts/build/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/build/Makefile" ;; 39095 "scripts/build/mkver") CONFIG_FILES="$CONFIG_FILES scripts/build/mkver" ;; 39096 "scripts/calc_tickadj/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/calc_tickadj/Makefile" ;; 39097 "scripts/calc_tickadj/calc_tickadj") CONFIG_FILES="$CONFIG_FILES scripts/calc_tickadj/calc_tickadj" ;; 39098 "scripts/lib/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/lib/Makefile" ;; 39099 "scripts/ntp-wait/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/ntp-wait/Makefile" ;; 39100 "scripts/ntp-wait/ntp-wait") CONFIG_FILES="$CONFIG_FILES scripts/ntp-wait/ntp-wait" ;; 39101 "scripts/ntpsweep/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/ntpsweep/Makefile" ;; 39102 "scripts/ntpsweep/ntpsweep") CONFIG_FILES="$CONFIG_FILES scripts/ntpsweep/ntpsweep" ;; 39103 "scripts/ntptrace/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/ntptrace/Makefile" ;; 39104 "scripts/ntptrace/ntptrace") CONFIG_FILES="$CONFIG_FILES scripts/ntptrace/ntptrace" ;; 39105 "scripts/ntpver") CONFIG_FILES="$CONFIG_FILES scripts/ntpver" ;; 39106 "scripts/plot_summary") CONFIG_FILES="$CONFIG_FILES scripts/plot_summary" ;; 39107 "scripts/summary") CONFIG_FILES="$CONFIG_FILES scripts/summary" ;; 39108 "scripts/update-leap/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/update-leap/Makefile" ;; 39109 "scripts/update-leap/update-leap") CONFIG_FILES="$CONFIG_FILES scripts/update-leap/update-leap" ;; 39110 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; 39111 "tests/bug-2803/Makefile") CONFIG_FILES="$CONFIG_FILES tests/bug-2803/Makefile" ;; 39112 "tests/libntp/Makefile") CONFIG_FILES="$CONFIG_FILES tests/libntp/Makefile" ;; 39113 "tests/ntpd/Makefile") CONFIG_FILES="$CONFIG_FILES tests/ntpd/Makefile" ;; 39114 "tests/ntpq/Makefile") CONFIG_FILES="$CONFIG_FILES tests/ntpq/Makefile" ;; 39115 "tests/sandbox/Makefile") CONFIG_FILES="$CONFIG_FILES tests/sandbox/Makefile" ;; 39116 "tests/sec-2853/Makefile") CONFIG_FILES="$CONFIG_FILES tests/sec-2853/Makefile" ;; 39117 "util/Makefile") CONFIG_FILES="$CONFIG_FILES util/Makefile" ;; 39118 39119 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 39120 esac 39121done 39122 39123 39124# If the user did not use the arguments to specify the items to instantiate, 39125# then the envvar interface is used. Set only those that are not. 39126# We use the long form for the default assignment because of an extremely 39127# bizarre bug on SunOS 4.1.3. 39128if $ac_need_defaults; then 39129 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 39130 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 39131 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 39132fi 39133 39134# Have a temporary directory for convenience. Make it in the build tree 39135# simply because there is no reason against having it here, and in addition, 39136# creating and moving files from /tmp can sometimes cause problems. 39137# Hook for its removal unless debugging. 39138# Note that there is a small window in which the directory will not be cleaned: 39139# after its creation but before its name has been assigned to `$tmp'. 39140$debug || 39141{ 39142 tmp= ac_tmp= 39143 trap 'exit_status=$? 39144 : "${ac_tmp:=$tmp}" 39145 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 39146' 0 39147 trap 'as_fn_exit 1' 1 2 13 15 39148} 39149# Create a (secure) tmp directory for tmp files. 39150 39151{ 39152 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 39153 test -d "$tmp" 39154} || 39155{ 39156 tmp=./conf$$-$RANDOM 39157 (umask 077 && mkdir "$tmp") 39158} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 39159ac_tmp=$tmp 39160 39161# Set up the scripts for CONFIG_FILES section. 39162# No need to generate them if there are no CONFIG_FILES. 39163# This happens for instance with `./config.status config.h'. 39164if test -n "$CONFIG_FILES"; then 39165 39166if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then 39167 ac_cs_awk_getline=: 39168 ac_cs_awk_pipe_init= 39169 ac_cs_awk_read_file=' 39170 while ((getline aline < (F[key])) > 0) 39171 print(aline) 39172 close(F[key])' 39173 ac_cs_awk_pipe_fini= 39174else 39175 ac_cs_awk_getline=false 39176 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\"" 39177 ac_cs_awk_read_file=' 39178 print "|#_!!_#|" 39179 print "cat " F[key] " &&" 39180 '$ac_cs_awk_pipe_init 39181 # The final `:' finishes the AND list. 39182 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }' 39183fi 39184ac_cr=`echo X | tr X '\015'` 39185# On cygwin, bash can eat \r inside `` if the user requested igncr. 39186# But we know of no other shell where ac_cr would be empty at this 39187# point, so we can use a bashism as a fallback. 39188if test "x$ac_cr" = x; then 39189 eval ac_cr=\$\'\\r\' 39190fi 39191ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 39192if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 39193 ac_cs_awk_cr='\\r' 39194else 39195 ac_cs_awk_cr=$ac_cr 39196fi 39197 39198echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 39199_ACEOF 39200 39201# Create commands to substitute file output variables. 39202{ 39203 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" && 39204 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' && 39205 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' && 39206 echo "_ACAWK" && 39207 echo "_ACEOF" 39208} >conf$$files.sh && 39209. ./conf$$files.sh || 39210 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 39211rm -f conf$$files.sh 39212 39213{ 39214 echo "cat >conf$$subs.awk <<_ACEOF" && 39215 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 39216 echo "_ACEOF" 39217} >conf$$subs.sh || 39218 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 39219ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 39220ac_delim='%!_!# ' 39221for ac_last_try in false false false false false :; do 39222 . ./conf$$subs.sh || 39223 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 39224 39225 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 39226 if test $ac_delim_n = $ac_delim_num; then 39227 break 39228 elif $ac_last_try; then 39229 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 39230 else 39231 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 39232 fi 39233done 39234rm -f conf$$subs.sh 39235 39236cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 39237cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 39238_ACEOF 39239sed -n ' 39240h 39241s/^/S["/; s/!.*/"]=/ 39242p 39243g 39244s/^[^!]*!// 39245:repl 39246t repl 39247s/'"$ac_delim"'$// 39248t delim 39249:nl 39250h 39251s/\(.\{148\}\)..*/\1/ 39252t more1 39253s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 39254p 39255n 39256b repl 39257:more1 39258s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 39259p 39260g 39261s/.\{148\}// 39262t nl 39263:delim 39264h 39265s/\(.\{148\}\)..*/\1/ 39266t more2 39267s/["\\]/\\&/g; s/^/"/; s/$/"/ 39268p 39269b 39270:more2 39271s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 39272p 39273g 39274s/.\{148\}// 39275t delim 39276' <conf$$subs.awk | sed ' 39277/^[^""]/{ 39278 N 39279 s/\n// 39280} 39281' >>$CONFIG_STATUS || ac_write_fail=1 39282rm -f conf$$subs.awk 39283cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 39284_ACAWK 39285cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 39286 for (key in S) S_is_set[key] = 1 39287 FS = "" 39288 \$ac_cs_awk_pipe_init 39289} 39290{ 39291 line = $ 0 39292 nfields = split(line, field, "@") 39293 substed = 0 39294 len = length(field[1]) 39295 for (i = 2; i < nfields; i++) { 39296 key = field[i] 39297 keylen = length(key) 39298 if (S_is_set[key]) { 39299 value = S[key] 39300 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 39301 len += length(value) + length(field[++i]) 39302 substed = 1 39303 } else 39304 len += 1 + keylen 39305 } 39306 if (nfields == 3 && !substed) { 39307 key = field[2] 39308 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) { 39309 \$ac_cs_awk_read_file 39310 next 39311 } 39312 } 39313 print line 39314} 39315\$ac_cs_awk_pipe_fini 39316_ACAWK 39317_ACEOF 39318cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 39319if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 39320 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 39321else 39322 cat 39323fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 39324 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 39325_ACEOF 39326 39327# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 39328# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 39329# trailing colons and then remove the whole line if VPATH becomes empty 39330# (actually we leave an empty line to preserve line numbers). 39331if test "x$srcdir" = x.; then 39332 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 39333h 39334s/// 39335s/^/:/ 39336s/[ ]*$/:/ 39337s/:\$(srcdir):/:/g 39338s/:\${srcdir}:/:/g 39339s/:@srcdir@:/:/g 39340s/^:*// 39341s/:*$// 39342x 39343s/\(=[ ]*\).*/\1/ 39344G 39345s/\n// 39346s/^[^=]*=[ ]*$// 39347}' 39348fi 39349 39350cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 39351fi # test -n "$CONFIG_FILES" 39352 39353# Set up the scripts for CONFIG_HEADERS section. 39354# No need to generate them if there are no CONFIG_HEADERS. 39355# This happens for instance with `./config.status Makefile'. 39356if test -n "$CONFIG_HEADERS"; then 39357cat >"$ac_tmp/defines.awk" <<\_ACAWK || 39358BEGIN { 39359_ACEOF 39360 39361# Transform confdefs.h into an awk script `defines.awk', embedded as 39362# here-document in config.status, that substitutes the proper values into 39363# config.h.in to produce config.h. 39364 39365# Create a delimiter string that does not exist in confdefs.h, to ease 39366# handling of long lines. 39367ac_delim='%!_!# ' 39368for ac_last_try in false false :; do 39369 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 39370 if test -z "$ac_tt"; then 39371 break 39372 elif $ac_last_try; then 39373 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 39374 else 39375 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 39376 fi 39377done 39378 39379# For the awk script, D is an array of macro values keyed by name, 39380# likewise P contains macro parameters if any. Preserve backslash 39381# newline sequences. 39382 39383ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 39384sed -n ' 39385s/.\{148\}/&'"$ac_delim"'/g 39386t rset 39387:rset 39388s/^[ ]*#[ ]*define[ ][ ]*/ / 39389t def 39390d 39391:def 39392s/\\$// 39393t bsnl 39394s/["\\]/\\&/g 39395s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 39396D["\1"]=" \3"/p 39397s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 39398d 39399:bsnl 39400s/["\\]/\\&/g 39401s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 39402D["\1"]=" \3\\\\\\n"\\/p 39403t cont 39404s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 39405t cont 39406d 39407:cont 39408n 39409s/.\{148\}/&'"$ac_delim"'/g 39410t clear 39411:clear 39412s/\\$// 39413t bsnlc 39414s/["\\]/\\&/g; s/^/"/; s/$/"/p 39415d 39416:bsnlc 39417s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 39418b cont 39419' <confdefs.h | sed ' 39420s/'"$ac_delim"'/"\\\ 39421"/g' >>$CONFIG_STATUS || ac_write_fail=1 39422 39423cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 39424 for (key in D) D_is_set[key] = 1 39425 FS = "" 39426} 39427/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 39428 line = \$ 0 39429 split(line, arg, " ") 39430 if (arg[1] == "#") { 39431 defundef = arg[2] 39432 mac1 = arg[3] 39433 } else { 39434 defundef = substr(arg[1], 2) 39435 mac1 = arg[2] 39436 } 39437 split(mac1, mac2, "(") #) 39438 macro = mac2[1] 39439 prefix = substr(line, 1, index(line, defundef) - 1) 39440 if (D_is_set[macro]) { 39441 # Preserve the white space surrounding the "#". 39442 print prefix "define", macro P[macro] D[macro] 39443 next 39444 } else { 39445 # Replace #undef with comments. This is necessary, for example, 39446 # in the case of _POSIX_SOURCE, which is predefined and required 39447 # on some systems where configure will not decide to define it. 39448 if (defundef == "undef") { 39449 print "/*", prefix defundef, macro, "*/" 39450 next 39451 } 39452 } 39453} 39454{ print } 39455_ACAWK 39456_ACEOF 39457cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 39458 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 39459fi # test -n "$CONFIG_HEADERS" 39460 39461 39462eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 39463shift 39464for ac_tag 39465do 39466 case $ac_tag in 39467 :[FHLC]) ac_mode=$ac_tag; continue;; 39468 esac 39469 case $ac_mode$ac_tag in 39470 :[FHL]*:*);; 39471 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 39472 :[FH]-) ac_tag=-:-;; 39473 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 39474 esac 39475 ac_save_IFS=$IFS 39476 IFS=: 39477 set x $ac_tag 39478 IFS=$ac_save_IFS 39479 shift 39480 ac_file=$1 39481 shift 39482 39483 case $ac_mode in 39484 :L) ac_source=$1;; 39485 :[FH]) 39486 ac_file_inputs= 39487 for ac_f 39488 do 39489 case $ac_f in 39490 -) ac_f="$ac_tmp/stdin";; 39491 *) # Look for the file first in the build tree, then in the source tree 39492 # (if the path is not absolute). The absolute path cannot be DOS-style, 39493 # because $ac_f cannot contain `:'. 39494 test -f "$ac_f" || 39495 case $ac_f in 39496 [\\/$]*) false;; 39497 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 39498 esac || 39499 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 39500 esac 39501 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 39502 as_fn_append ac_file_inputs " '$ac_f'" 39503 done 39504 39505 # Let's still pretend it is `configure' which instantiates (i.e., don't 39506 # use $as_me), people would be surprised to read: 39507 # /* config.h. Generated by config.status. */ 39508 configure_input='Generated from '` 39509 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 39510 `' by configure.' 39511 if test x"$ac_file" != x-; then 39512 configure_input="$ac_file. $configure_input" 39513 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 39514$as_echo "$as_me: creating $ac_file" >&6;} 39515 fi 39516 # Neutralize special characters interpreted by sed in replacement strings. 39517 case $configure_input in #( 39518 *\&* | *\|* | *\\* ) 39519 ac_sed_conf_input=`$as_echo "$configure_input" | 39520 sed 's/[\\\\&|]/\\\\&/g'`;; #( 39521 *) ac_sed_conf_input=$configure_input;; 39522 esac 39523 39524 case $ac_tag in 39525 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 39526 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 39527 esac 39528 ;; 39529 esac 39530 39531 ac_dir=`$as_dirname -- "$ac_file" || 39532$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 39533 X"$ac_file" : 'X\(//\)[^/]' \| \ 39534 X"$ac_file" : 'X\(//\)$' \| \ 39535 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 39536$as_echo X"$ac_file" | 39537 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 39538 s//\1/ 39539 q 39540 } 39541 /^X\(\/\/\)[^/].*/{ 39542 s//\1/ 39543 q 39544 } 39545 /^X\(\/\/\)$/{ 39546 s//\1/ 39547 q 39548 } 39549 /^X\(\/\).*/{ 39550 s//\1/ 39551 q 39552 } 39553 s/.*/./; q'` 39554 as_dir="$ac_dir"; as_fn_mkdir_p 39555 ac_builddir=. 39556 39557case "$ac_dir" in 39558.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 39559*) 39560 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 39561 # A ".." for each directory in $ac_dir_suffix. 39562 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 39563 case $ac_top_builddir_sub in 39564 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 39565 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 39566 esac ;; 39567esac 39568ac_abs_top_builddir=$ac_pwd 39569ac_abs_builddir=$ac_pwd$ac_dir_suffix 39570# for backward compatibility: 39571ac_top_builddir=$ac_top_build_prefix 39572 39573case $srcdir in 39574 .) # We are building in place. 39575 ac_srcdir=. 39576 ac_top_srcdir=$ac_top_builddir_sub 39577 ac_abs_top_srcdir=$ac_pwd ;; 39578 [\\/]* | ?:[\\/]* ) # Absolute name. 39579 ac_srcdir=$srcdir$ac_dir_suffix; 39580 ac_top_srcdir=$srcdir 39581 ac_abs_top_srcdir=$srcdir ;; 39582 *) # Relative name. 39583 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 39584 ac_top_srcdir=$ac_top_build_prefix$srcdir 39585 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 39586esac 39587ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 39588 39589 39590 case $ac_mode in 39591 :F) 39592 # 39593 # CONFIG_FILE 39594 # 39595 39596 case $INSTALL in 39597 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 39598 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 39599 esac 39600 ac_MKDIR_P=$MKDIR_P 39601 case $MKDIR_P in 39602 [\\/$]* | ?:[\\/]* ) ;; 39603 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 39604 esac 39605_ACEOF 39606 39607cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 39608# If the template does not know about datarootdir, expand it. 39609# FIXME: This hack should be removed a few years after 2.60. 39610ac_datarootdir_hack=; ac_datarootdir_seen= 39611ac_sed_dataroot=' 39612/datarootdir/ { 39613 p 39614 q 39615} 39616/@datadir@/p 39617/@docdir@/p 39618/@infodir@/p 39619/@localedir@/p 39620/@mandir@/p' 39621case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 39622*datarootdir*) ac_datarootdir_seen=yes;; 39623*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 39624 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 39625$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 39626_ACEOF 39627cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 39628 ac_datarootdir_hack=' 39629 s&@datadir@&$datadir&g 39630 s&@docdir@&$docdir&g 39631 s&@infodir@&$infodir&g 39632 s&@localedir@&$localedir&g 39633 s&@mandir@&$mandir&g 39634 s&\\\${datarootdir}&$datarootdir&g' ;; 39635esac 39636_ACEOF 39637 39638# Neutralize VPATH when `$srcdir' = `.'. 39639# Shell code in configure.ac might set extrasub. 39640# FIXME: do we really want to maintain this feature? 39641cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 39642ac_sed_extra="$ac_vpsub 39643$extrasub 39644_ACEOF 39645cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 39646:t 39647/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 39648s|@configure_input@|$ac_sed_conf_input|;t t 39649s&@top_builddir@&$ac_top_builddir_sub&;t t 39650s&@top_build_prefix@&$ac_top_build_prefix&;t t 39651s&@srcdir@&$ac_srcdir&;t t 39652s&@abs_srcdir@&$ac_abs_srcdir&;t t 39653s&@top_srcdir@&$ac_top_srcdir&;t t 39654s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 39655s&@builddir@&$ac_builddir&;t t 39656s&@abs_builddir@&$ac_abs_builddir&;t t 39657s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 39658s&@INSTALL@&$ac_INSTALL&;t t 39659s&@MKDIR_P@&$ac_MKDIR_P&;t t 39660$ac_datarootdir_hack 39661" 39662eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | 39663if $ac_cs_awk_getline; then 39664 $AWK -f "$ac_tmp/subs.awk" 39665else 39666 $AWK -f "$ac_tmp/subs.awk" | $SHELL 39667fi \ 39668 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 39669 39670test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 39671 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 39672 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 39673 "$ac_tmp/out"`; test -z "$ac_out"; } && 39674 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 39675which seems to be undefined. Please make sure it is defined" >&5 39676$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 39677which seems to be undefined. Please make sure it is defined" >&2;} 39678 39679 rm -f "$ac_tmp/stdin" 39680 case $ac_file in 39681 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 39682 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 39683 esac \ 39684 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 39685 ;; 39686 :H) 39687 # 39688 # CONFIG_HEADER 39689 # 39690 if test x"$ac_file" != x-; then 39691 { 39692 $as_echo "/* $configure_input */" \ 39693 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 39694 } >"$ac_tmp/config.h" \ 39695 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 39696 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 39697 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 39698$as_echo "$as_me: $ac_file is unchanged" >&6;} 39699 else 39700 rm -f "$ac_file" 39701 mv "$ac_tmp/config.h" "$ac_file" \ 39702 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 39703 fi 39704 else 39705 $as_echo "/* $configure_input */" \ 39706 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 39707 || as_fn_error $? "could not create -" "$LINENO" 5 39708 fi 39709# Compute "$ac_file"'s index in $config_headers. 39710_am_arg="$ac_file" 39711_am_stamp_count=1 39712for _am_header in $config_headers :; do 39713 case $_am_header in 39714 $_am_arg | $_am_arg:* ) 39715 break ;; 39716 * ) 39717 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 39718 esac 39719done 39720echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 39721$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 39722 X"$_am_arg" : 'X\(//\)[^/]' \| \ 39723 X"$_am_arg" : 'X\(//\)$' \| \ 39724 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 39725$as_echo X"$_am_arg" | 39726 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 39727 s//\1/ 39728 q 39729 } 39730 /^X\(\/\/\)[^/].*/{ 39731 s//\1/ 39732 q 39733 } 39734 /^X\(\/\/\)$/{ 39735 s//\1/ 39736 q 39737 } 39738 /^X\(\/\).*/{ 39739 s//\1/ 39740 q 39741 } 39742 s/.*/./; q'`/stamp-h$_am_stamp_count 39743 ;; 39744 39745 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 39746$as_echo "$as_me: executing $ac_file commands" >&6;} 39747 ;; 39748 esac 39749 39750 39751 case $ac_file$ac_mode in 39752 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 39753 # Older Autoconf quotes --file arguments for eval, but not when files 39754 # are listed without --file. Let's play safe and only enable the eval 39755 # if we detect the quoting. 39756 case $CONFIG_FILES in 39757 *\'*) eval set x "$CONFIG_FILES" ;; 39758 *) set x $CONFIG_FILES ;; 39759 esac 39760 shift 39761 for mf 39762 do 39763 # Strip MF so we end up with the name of the file. 39764 mf=`echo "$mf" | sed -e 's/:.*$//'` 39765 # Check whether this is an Automake generated Makefile or not. 39766 # We used to match only the files named 'Makefile.in', but 39767 # some people rename them; so instead we look at the file content. 39768 # Grep'ing the first line is not enough: some people post-process 39769 # each Makefile.in and add a new line on top of each file to say so. 39770 # Grep'ing the whole file is not good either: AIX grep has a line 39771 # limit of 2048, but all sed's we know have understand at least 4000. 39772 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 39773 dirpart=`$as_dirname -- "$mf" || 39774$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 39775 X"$mf" : 'X\(//\)[^/]' \| \ 39776 X"$mf" : 'X\(//\)$' \| \ 39777 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 39778$as_echo X"$mf" | 39779 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 39780 s//\1/ 39781 q 39782 } 39783 /^X\(\/\/\)[^/].*/{ 39784 s//\1/ 39785 q 39786 } 39787 /^X\(\/\/\)$/{ 39788 s//\1/ 39789 q 39790 } 39791 /^X\(\/\).*/{ 39792 s//\1/ 39793 q 39794 } 39795 s/.*/./; q'` 39796 else 39797 continue 39798 fi 39799 # Extract the definition of DEPDIR, am__include, and am__quote 39800 # from the Makefile without running 'make'. 39801 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 39802 test -z "$DEPDIR" && continue 39803 am__include=`sed -n 's/^am__include = //p' < "$mf"` 39804 test -z "$am__include" && continue 39805 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 39806 # Find all dependency output files, they are included files with 39807 # $(DEPDIR) in their names. We invoke sed twice because it is the 39808 # simplest approach to changing $(DEPDIR) to its actual value in the 39809 # expansion. 39810 for file in `sed -n " 39811 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 39812 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 39813 # Make sure the directory exists. 39814 test -f "$dirpart/$file" && continue 39815 fdir=`$as_dirname -- "$file" || 39816$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 39817 X"$file" : 'X\(//\)[^/]' \| \ 39818 X"$file" : 'X\(//\)$' \| \ 39819 X"$file" : 'X\(/\)' \| . 2>/dev/null || 39820$as_echo X"$file" | 39821 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 39822 s//\1/ 39823 q 39824 } 39825 /^X\(\/\/\)[^/].*/{ 39826 s//\1/ 39827 q 39828 } 39829 /^X\(\/\/\)$/{ 39830 s//\1/ 39831 q 39832 } 39833 /^X\(\/\).*/{ 39834 s//\1/ 39835 q 39836 } 39837 s/.*/./; q'` 39838 as_dir=$dirpart/$fdir; as_fn_mkdir_p 39839 # echo "creating $dirpart/$file" 39840 echo '# dummy' > "$dirpart/$file" 39841 done 39842 done 39843} 39844 ;; 39845 "libtool":C) 39846 39847 # See if we are running on zsh, and set the options that allow our 39848 # commands through without removal of \ escapes. 39849 if test -n "${ZSH_VERSION+set}"; then 39850 setopt NO_GLOB_SUBST 39851 fi 39852 39853 cfgfile=${ofile}T 39854 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 39855 $RM "$cfgfile" 39856 39857 cat <<_LT_EOF >> "$cfgfile" 39858#! $SHELL 39859# Generated automatically by $as_me ($PACKAGE) $VERSION 39860# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 39861# NOTE: Changes made to this file will be lost: look at ltmain.sh. 39862 39863# Provide generalized library-building support services. 39864# Written by Gordon Matzigkeit, 1996 39865 39866# Copyright (C) 2014 Free Software Foundation, Inc. 39867# This is free software; see the source for copying conditions. There is NO 39868# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 39869 39870# GNU Libtool is free software; you can redistribute it and/or modify 39871# it under the terms of the GNU General Public License as published by 39872# the Free Software Foundation; either version 2 of of the License, or 39873# (at your option) any later version. 39874# 39875# As a special exception to the GNU General Public License, if you 39876# distribute this file as part of a program or library that is built 39877# using GNU Libtool, you may include this file under the same 39878# distribution terms that you use for the rest of that program. 39879# 39880# GNU Libtool is distributed in the hope that it will be useful, but 39881# WITHOUT ANY WARRANTY; without even the implied warranty of 39882# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 39883# GNU General Public License for more details. 39884# 39885# You should have received a copy of the GNU General Public License 39886# along with this program. If not, see <http://www.gnu.org/licenses/>. 39887 39888 39889# The names of the tagged configurations supported by this script. 39890available_tags='CXX ' 39891 39892# Configured defaults for sys_lib_dlsearch_path munging. 39893: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 39894 39895# ### BEGIN LIBTOOL CONFIG 39896 39897# Whether or not to build shared libraries. 39898build_libtool_libs=$enable_shared 39899 39900# Which release of libtool.m4 was used? 39901macro_version=$macro_version 39902macro_revision=$macro_revision 39903 39904# Whether or not to build static libraries. 39905build_old_libs=$enable_static 39906 39907# What type of objects to build. 39908pic_mode=$pic_mode 39909 39910# Whether or not to optimize for fast installation. 39911fast_install=$enable_fast_install 39912 39913# Shared archive member basename,for filename based shared library versioning on AIX. 39914shared_archive_member_spec=$shared_archive_member_spec 39915 39916# Shell to use when invoking shell scripts. 39917SHELL=$lt_SHELL 39918 39919# An echo program that protects backslashes. 39920ECHO=$lt_ECHO 39921 39922# The PATH separator for the build system. 39923PATH_SEPARATOR=$lt_PATH_SEPARATOR 39924 39925# The host system. 39926host_alias=$host_alias 39927host=$host 39928host_os=$host_os 39929 39930# The build system. 39931build_alias=$build_alias 39932build=$build 39933build_os=$build_os 39934 39935# A sed program that does not truncate output. 39936SED=$lt_SED 39937 39938# Sed that helps us avoid accidentally triggering echo(1) options like -n. 39939Xsed="\$SED -e 1s/^X//" 39940 39941# A grep program that handles long lines. 39942GREP=$lt_GREP 39943 39944# An ERE matcher. 39945EGREP=$lt_EGREP 39946 39947# A literal string matcher. 39948FGREP=$lt_FGREP 39949 39950# A BSD- or MS-compatible name lister. 39951NM=$lt_NM 39952 39953# Whether we need soft or hard links. 39954LN_S=$lt_LN_S 39955 39956# What is the maximum length of a command? 39957max_cmd_len=$max_cmd_len 39958 39959# Object file suffix (normally "o"). 39960objext=$ac_objext 39961 39962# Executable file suffix (normally ""). 39963exeext=$exeext 39964 39965# whether the shell understands "unset". 39966lt_unset=$lt_unset 39967 39968# turn spaces into newlines. 39969SP2NL=$lt_lt_SP2NL 39970 39971# turn newlines into spaces. 39972NL2SP=$lt_lt_NL2SP 39973 39974# convert \$build file names to \$host format. 39975to_host_file_cmd=$lt_cv_to_host_file_cmd 39976 39977# convert \$build files to toolchain format. 39978to_tool_file_cmd=$lt_cv_to_tool_file_cmd 39979 39980# An object symbol dumper. 39981OBJDUMP=$lt_OBJDUMP 39982 39983# Method to check whether dependent libraries are shared objects. 39984deplibs_check_method=$lt_deplibs_check_method 39985 39986# Command to use when deplibs_check_method = "file_magic". 39987file_magic_cmd=$lt_file_magic_cmd 39988 39989# How to find potential files when deplibs_check_method = "file_magic". 39990file_magic_glob=$lt_file_magic_glob 39991 39992# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 39993want_nocaseglob=$lt_want_nocaseglob 39994 39995# DLL creation program. 39996DLLTOOL=$lt_DLLTOOL 39997 39998# Command to associate shared and link libraries. 39999sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 40000 40001# The archiver. 40002AR=$lt_AR 40003 40004# Flags to create an archive. 40005AR_FLAGS=$lt_AR_FLAGS 40006 40007# How to feed a file listing to the archiver. 40008archiver_list_spec=$lt_archiver_list_spec 40009 40010# A symbol stripping program. 40011STRIP=$lt_STRIP 40012 40013# Commands used to install an old-style archive. 40014RANLIB=$lt_RANLIB 40015old_postinstall_cmds=$lt_old_postinstall_cmds 40016old_postuninstall_cmds=$lt_old_postuninstall_cmds 40017 40018# Whether to use a lock for old archive extraction. 40019lock_old_archive_extraction=$lock_old_archive_extraction 40020 40021# A C compiler. 40022LTCC=$lt_CC 40023 40024# LTCC compiler flags. 40025LTCFLAGS=$lt_CFLAGS 40026 40027# Take the output of nm and produce a listing of raw symbols and C names. 40028global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 40029 40030# Transform the output of nm in a proper C declaration. 40031global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 40032 40033# Transform the output of nm into a list of symbols to manually relocate. 40034global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 40035 40036# Transform the output of nm in a C name address pair. 40037global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 40038 40039# Transform the output of nm in a C name address pair when lib prefix is needed. 40040global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 40041 40042# The name lister interface. 40043nm_interface=$lt_lt_cv_nm_interface 40044 40045# Specify filename containing input files for \$NM. 40046nm_file_list_spec=$lt_nm_file_list_spec 40047 40048# The root where to search for dependent libraries,and where our libraries should be installed. 40049lt_sysroot=$lt_sysroot 40050 40051# Command to truncate a binary pipe. 40052lt_truncate_bin=$lt_lt_cv_truncate_bin 40053 40054# The name of the directory that contains temporary libtool files. 40055objdir=$objdir 40056 40057# Used to examine libraries when file_magic_cmd begins with "file". 40058MAGIC_CMD=$MAGIC_CMD 40059 40060# Must we lock files when doing compilation? 40061need_locks=$lt_need_locks 40062 40063# Manifest tool. 40064MANIFEST_TOOL=$lt_MANIFEST_TOOL 40065 40066# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 40067DSYMUTIL=$lt_DSYMUTIL 40068 40069# Tool to change global to local symbols on Mac OS X. 40070NMEDIT=$lt_NMEDIT 40071 40072# Tool to manipulate fat objects and archives on Mac OS X. 40073LIPO=$lt_LIPO 40074 40075# ldd/readelf like tool for Mach-O binaries on Mac OS X. 40076OTOOL=$lt_OTOOL 40077 40078# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 40079OTOOL64=$lt_OTOOL64 40080 40081# Old archive suffix (normally "a"). 40082libext=$libext 40083 40084# Shared library suffix (normally ".so"). 40085shrext_cmds=$lt_shrext_cmds 40086 40087# The commands to extract the exported symbol list from a shared archive. 40088extract_expsyms_cmds=$lt_extract_expsyms_cmds 40089 40090# Variables whose values should be saved in libtool wrapper scripts and 40091# restored at link time. 40092variables_saved_for_relink=$lt_variables_saved_for_relink 40093 40094# Do we need the "lib" prefix for modules? 40095need_lib_prefix=$need_lib_prefix 40096 40097# Do we need a version for libraries? 40098need_version=$need_version 40099 40100# Library versioning type. 40101version_type=$version_type 40102 40103# Shared library runtime path variable. 40104runpath_var=$runpath_var 40105 40106# Shared library path variable. 40107shlibpath_var=$shlibpath_var 40108 40109# Is shlibpath searched before the hard-coded library search path? 40110shlibpath_overrides_runpath=$shlibpath_overrides_runpath 40111 40112# Format of library name prefix. 40113libname_spec=$lt_libname_spec 40114 40115# List of archive names. First name is the real one, the rest are links. 40116# The last name is the one that the linker finds with -lNAME 40117library_names_spec=$lt_library_names_spec 40118 40119# The coded name of the library, if different from the real name. 40120soname_spec=$lt_soname_spec 40121 40122# Permission mode override for installation of shared libraries. 40123install_override_mode=$lt_install_override_mode 40124 40125# Command to use after installation of a shared archive. 40126postinstall_cmds=$lt_postinstall_cmds 40127 40128# Command to use after uninstallation of a shared archive. 40129postuninstall_cmds=$lt_postuninstall_cmds 40130 40131# Commands used to finish a libtool library installation in a directory. 40132finish_cmds=$lt_finish_cmds 40133 40134# As "finish_cmds", except a single script fragment to be evaled but 40135# not shown. 40136finish_eval=$lt_finish_eval 40137 40138# Whether we should hardcode library paths into libraries. 40139hardcode_into_libs=$hardcode_into_libs 40140 40141# Compile-time system search path for libraries. 40142sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 40143 40144# Detected run-time system search path for libraries. 40145sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 40146 40147# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 40148configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 40149 40150# Whether dlopen is supported. 40151dlopen_support=$enable_dlopen 40152 40153# Whether dlopen of programs is supported. 40154dlopen_self=$enable_dlopen_self 40155 40156# Whether dlopen of statically linked programs is supported. 40157dlopen_self_static=$enable_dlopen_self_static 40158 40159# Commands to strip libraries. 40160old_striplib=$lt_old_striplib 40161striplib=$lt_striplib 40162 40163 40164# The linker used to build libraries. 40165LD=$lt_LD 40166 40167# How to create reloadable object files. 40168reload_flag=$lt_reload_flag 40169reload_cmds=$lt_reload_cmds 40170 40171# Commands used to build an old-style archive. 40172old_archive_cmds=$lt_old_archive_cmds 40173 40174# A language specific compiler. 40175CC=$lt_compiler 40176 40177# Is the compiler the GNU compiler? 40178with_gcc=$GCC 40179 40180# Compiler flag to turn off builtin functions. 40181no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 40182 40183# Additional compiler flags for building library objects. 40184pic_flag=$lt_lt_prog_compiler_pic 40185 40186# How to pass a linker flag through the compiler. 40187wl=$lt_lt_prog_compiler_wl 40188 40189# Compiler flag to prevent dynamic linking. 40190link_static_flag=$lt_lt_prog_compiler_static 40191 40192# Does compiler simultaneously support -c and -o options? 40193compiler_c_o=$lt_lt_cv_prog_compiler_c_o 40194 40195# Whether or not to add -lc for building shared libraries. 40196build_libtool_need_lc=$archive_cmds_need_lc 40197 40198# Whether or not to disallow shared libs when runtime libs are static. 40199allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 40200 40201# Compiler flag to allow reflexive dlopens. 40202export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 40203 40204# Compiler flag to generate shared objects directly from archives. 40205whole_archive_flag_spec=$lt_whole_archive_flag_spec 40206 40207# Whether the compiler copes with passing no objects directly. 40208compiler_needs_object=$lt_compiler_needs_object 40209 40210# Create an old-style archive from a shared archive. 40211old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 40212 40213# Create a temporary old-style archive to link instead of a shared archive. 40214old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 40215 40216# Commands used to build a shared archive. 40217archive_cmds=$lt_archive_cmds 40218archive_expsym_cmds=$lt_archive_expsym_cmds 40219 40220# Commands used to build a loadable module if different from building 40221# a shared archive. 40222module_cmds=$lt_module_cmds 40223module_expsym_cmds=$lt_module_expsym_cmds 40224 40225# Whether we are building with GNU ld or not. 40226with_gnu_ld=$lt_with_gnu_ld 40227 40228# Flag that allows shared libraries with undefined symbols to be built. 40229allow_undefined_flag=$lt_allow_undefined_flag 40230 40231# Flag that enforces no undefined symbols. 40232no_undefined_flag=$lt_no_undefined_flag 40233 40234# Flag to hardcode \$libdir into a binary during linking. 40235# This must work even if \$libdir does not exist 40236hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 40237 40238# Whether we need a single "-rpath" flag with a separated argument. 40239hardcode_libdir_separator=$lt_hardcode_libdir_separator 40240 40241# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 40242# DIR into the resulting binary. 40243hardcode_direct=$hardcode_direct 40244 40245# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 40246# DIR into the resulting binary and the resulting library dependency is 40247# "absolute",i.e impossible to change by setting \$shlibpath_var if the 40248# library is relocated. 40249hardcode_direct_absolute=$hardcode_direct_absolute 40250 40251# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 40252# into the resulting binary. 40253hardcode_minus_L=$hardcode_minus_L 40254 40255# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 40256# into the resulting binary. 40257hardcode_shlibpath_var=$hardcode_shlibpath_var 40258 40259# Set to "yes" if building a shared library automatically hardcodes DIR 40260# into the library and all subsequent libraries and executables linked 40261# against it. 40262hardcode_automatic=$hardcode_automatic 40263 40264# Set to yes if linker adds runtime paths of dependent libraries 40265# to runtime path list. 40266inherit_rpath=$inherit_rpath 40267 40268# Whether libtool must link a program against all its dependency libraries. 40269link_all_deplibs=$link_all_deplibs 40270 40271# Set to "yes" if exported symbols are required. 40272always_export_symbols=$always_export_symbols 40273 40274# The commands to list exported symbols. 40275export_symbols_cmds=$lt_export_symbols_cmds 40276 40277# Symbols that should not be listed in the preloaded symbols. 40278exclude_expsyms=$lt_exclude_expsyms 40279 40280# Symbols that must always be exported. 40281include_expsyms=$lt_include_expsyms 40282 40283# Commands necessary for linking programs (against libraries) with templates. 40284prelink_cmds=$lt_prelink_cmds 40285 40286# Commands necessary for finishing linking programs. 40287postlink_cmds=$lt_postlink_cmds 40288 40289# Specify filename containing input files. 40290file_list_spec=$lt_file_list_spec 40291 40292# How to hardcode a shared library path into an executable. 40293hardcode_action=$hardcode_action 40294 40295# The directories searched by this compiler when creating a shared library. 40296compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 40297 40298# Dependencies to place before and after the objects being linked to 40299# create a shared library. 40300predep_objects=$lt_predep_objects 40301postdep_objects=$lt_postdep_objects 40302predeps=$lt_predeps 40303postdeps=$lt_postdeps 40304 40305# The library search path used internally by the compiler when linking 40306# a shared library. 40307compiler_lib_search_path=$lt_compiler_lib_search_path 40308 40309# ### END LIBTOOL CONFIG 40310 40311_LT_EOF 40312 40313 cat <<'_LT_EOF' >> "$cfgfile" 40314 40315# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 40316 40317# func_munge_path_list VARIABLE PATH 40318# ----------------------------------- 40319# VARIABLE is name of variable containing _space_ separated list of 40320# directories to be munged by the contents of PATH, which is string 40321# having a format: 40322# "DIR[:DIR]:" 40323# string "DIR[ DIR]" will be prepended to VARIABLE 40324# ":DIR[:DIR]" 40325# string "DIR[ DIR]" will be appended to VARIABLE 40326# "DIRP[:DIRP]::[DIRA:]DIRA" 40327# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 40328# "DIRA[ DIRA]" will be appended to VARIABLE 40329# "DIR[:DIR]" 40330# VARIABLE will be replaced by "DIR[ DIR]" 40331func_munge_path_list () 40332{ 40333 case x$2 in 40334 x) 40335 ;; 40336 *:) 40337 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 40338 ;; 40339 x:*) 40340 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 40341 ;; 40342 *::*) 40343 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 40344 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 40345 ;; 40346 *) 40347 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 40348 ;; 40349 esac 40350} 40351 40352 40353# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 40354func_cc_basename () 40355{ 40356 for cc_temp in $*""; do 40357 case $cc_temp in 40358 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 40359 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 40360 \-*) ;; 40361 *) break;; 40362 esac 40363 done 40364 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 40365} 40366 40367 40368# ### END FUNCTIONS SHARED WITH CONFIGURE 40369 40370_LT_EOF 40371 40372 case $host_os in 40373 aix3*) 40374 cat <<\_LT_EOF >> "$cfgfile" 40375# AIX sometimes has problems with the GCC collect2 program. For some 40376# reason, if we set the COLLECT_NAMES environment variable, the problems 40377# vanish in a puff of smoke. 40378if test set != "${COLLECT_NAMES+set}"; then 40379 COLLECT_NAMES= 40380 export COLLECT_NAMES 40381fi 40382_LT_EOF 40383 ;; 40384 esac 40385 40386 40387ltmain=$ac_aux_dir/ltmain.sh 40388 40389 40390 # We use sed instead of cat because bash on DJGPP gets confused if 40391 # if finds mixed CR/LF and LF-only lines. Since sed operates in 40392 # text mode, it properly converts lines to CR/LF. This bash problem 40393 # is reportedly fixed, but why not run on old versions too? 40394 sed '$q' "$ltmain" >> "$cfgfile" \ 40395 || (rm -f "$cfgfile"; exit 1) 40396 40397 mv -f "$cfgfile" "$ofile" || 40398 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 40399 chmod +x "$ofile" 40400 40401 40402 cat <<_LT_EOF >> "$ofile" 40403 40404# ### BEGIN LIBTOOL TAG CONFIG: CXX 40405 40406# The linker used to build libraries. 40407LD=$lt_LD_CXX 40408 40409# How to create reloadable object files. 40410reload_flag=$lt_reload_flag_CXX 40411reload_cmds=$lt_reload_cmds_CXX 40412 40413# Commands used to build an old-style archive. 40414old_archive_cmds=$lt_old_archive_cmds_CXX 40415 40416# A language specific compiler. 40417CC=$lt_compiler_CXX 40418 40419# Is the compiler the GNU compiler? 40420with_gcc=$GCC_CXX 40421 40422# Compiler flag to turn off builtin functions. 40423no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 40424 40425# Additional compiler flags for building library objects. 40426pic_flag=$lt_lt_prog_compiler_pic_CXX 40427 40428# How to pass a linker flag through the compiler. 40429wl=$lt_lt_prog_compiler_wl_CXX 40430 40431# Compiler flag to prevent dynamic linking. 40432link_static_flag=$lt_lt_prog_compiler_static_CXX 40433 40434# Does compiler simultaneously support -c and -o options? 40435compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 40436 40437# Whether or not to add -lc for building shared libraries. 40438build_libtool_need_lc=$archive_cmds_need_lc_CXX 40439 40440# Whether or not to disallow shared libs when runtime libs are static. 40441allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 40442 40443# Compiler flag to allow reflexive dlopens. 40444export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 40445 40446# Compiler flag to generate shared objects directly from archives. 40447whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 40448 40449# Whether the compiler copes with passing no objects directly. 40450compiler_needs_object=$lt_compiler_needs_object_CXX 40451 40452# Create an old-style archive from a shared archive. 40453old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 40454 40455# Create a temporary old-style archive to link instead of a shared archive. 40456old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 40457 40458# Commands used to build a shared archive. 40459archive_cmds=$lt_archive_cmds_CXX 40460archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 40461 40462# Commands used to build a loadable module if different from building 40463# a shared archive. 40464module_cmds=$lt_module_cmds_CXX 40465module_expsym_cmds=$lt_module_expsym_cmds_CXX 40466 40467# Whether we are building with GNU ld or not. 40468with_gnu_ld=$lt_with_gnu_ld_CXX 40469 40470# Flag that allows shared libraries with undefined symbols to be built. 40471allow_undefined_flag=$lt_allow_undefined_flag_CXX 40472 40473# Flag that enforces no undefined symbols. 40474no_undefined_flag=$lt_no_undefined_flag_CXX 40475 40476# Flag to hardcode \$libdir into a binary during linking. 40477# This must work even if \$libdir does not exist 40478hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 40479 40480# Whether we need a single "-rpath" flag with a separated argument. 40481hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 40482 40483# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 40484# DIR into the resulting binary. 40485hardcode_direct=$hardcode_direct_CXX 40486 40487# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 40488# DIR into the resulting binary and the resulting library dependency is 40489# "absolute",i.e impossible to change by setting \$shlibpath_var if the 40490# library is relocated. 40491hardcode_direct_absolute=$hardcode_direct_absolute_CXX 40492 40493# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 40494# into the resulting binary. 40495hardcode_minus_L=$hardcode_minus_L_CXX 40496 40497# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 40498# into the resulting binary. 40499hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 40500 40501# Set to "yes" if building a shared library automatically hardcodes DIR 40502# into the library and all subsequent libraries and executables linked 40503# against it. 40504hardcode_automatic=$hardcode_automatic_CXX 40505 40506# Set to yes if linker adds runtime paths of dependent libraries 40507# to runtime path list. 40508inherit_rpath=$inherit_rpath_CXX 40509 40510# Whether libtool must link a program against all its dependency libraries. 40511link_all_deplibs=$link_all_deplibs_CXX 40512 40513# Set to "yes" if exported symbols are required. 40514always_export_symbols=$always_export_symbols_CXX 40515 40516# The commands to list exported symbols. 40517export_symbols_cmds=$lt_export_symbols_cmds_CXX 40518 40519# Symbols that should not be listed in the preloaded symbols. 40520exclude_expsyms=$lt_exclude_expsyms_CXX 40521 40522# Symbols that must always be exported. 40523include_expsyms=$lt_include_expsyms_CXX 40524 40525# Commands necessary for linking programs (against libraries) with templates. 40526prelink_cmds=$lt_prelink_cmds_CXX 40527 40528# Commands necessary for finishing linking programs. 40529postlink_cmds=$lt_postlink_cmds_CXX 40530 40531# Specify filename containing input files. 40532file_list_spec=$lt_file_list_spec_CXX 40533 40534# How to hardcode a shared library path into an executable. 40535hardcode_action=$hardcode_action_CXX 40536 40537# The directories searched by this compiler when creating a shared library. 40538compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX 40539 40540# Dependencies to place before and after the objects being linked to 40541# create a shared library. 40542predep_objects=$lt_predep_objects_CXX 40543postdep_objects=$lt_postdep_objects_CXX 40544predeps=$lt_predeps_CXX 40545postdeps=$lt_postdeps_CXX 40546 40547# The library search path used internally by the compiler when linking 40548# a shared library. 40549compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 40550 40551# ### END LIBTOOL TAG CONFIG: CXX 40552_LT_EOF 40553 40554 ;; 40555 "ntpd/complete.conf":F) sed -e '/^rlimit$/d' -e '/^$/d' < ntpd/complete.conf > ntpd/complete.conf.new && mv ntpd/complete.conf.new ntpd/complete.conf ;; 40556 "ntpdc/nl.pl":F) chmod +x ntpdc/nl.pl ;; 40557 "scripts/build/mkver":F) chmod +x scripts/build/mkver ;; 40558 "scripts/calc_tickadj/calc_tickadj":F) chmod +x scripts/calc_tickadj/calc_tickadj ;; 40559 "scripts/ntp-wait/ntp-wait":F) chmod +x scripts/ntp-wait/ntp-wait ;; 40560 "scripts/ntpsweep/ntpsweep":F) chmod +x scripts/ntpsweep/ntpsweep ;; 40561 "scripts/ntptrace/ntptrace":F) chmod +x scripts/ntptrace/ntptrace ;; 40562 "scripts/ntpver":F) chmod +x scripts/ntpver ;; 40563 "scripts/plot_summary":F) chmod +x scripts/plot_summary ;; 40564 "scripts/summary":F) chmod +x scripts/summary ;; 40565 "scripts/update-leap/update-leap":F) chmod +x scripts/update-leap/update-leap ;; 40566 40567 esac 40568done # for ac_tag 40569 40570 40571as_fn_exit 0 40572_ACEOF 40573ac_clean_files=$ac_clean_files_save 40574 40575test $ac_write_fail = 0 || 40576 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 40577 40578 40579# configure is writing to config.log, and then calls config.status. 40580# config.status does its own redirection, appending to config.log. 40581# Unfortunately, on DOS this fails, as config.log is still kept open 40582# by configure, so config.status won't be able to write to it; its 40583# output is simply discarded. So we exec the FD to /dev/null, 40584# effectively closing config.log, so it can be properly (re)opened and 40585# appended to by config.status. When coming back to configure, we 40586# need to make the FD available again. 40587if test "$no_create" != yes; then 40588 ac_cs_success=: 40589 ac_config_status_args= 40590 test "$silent" = yes && 40591 ac_config_status_args="$ac_config_status_args --quiet" 40592 exec 5>/dev/null 40593 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 40594 exec 5>>config.log 40595 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 40596 # would make configure fail if this is the last instruction. 40597 $ac_cs_success || as_fn_exit 1 40598fi 40599 40600# 40601# CONFIG_SUBDIRS section. 40602# 40603if test "$no_recursion" != yes; then 40604 40605 # Remove --cache-file, --srcdir, and --disable-option-checking arguments 40606 # so they do not pile up. 40607 ac_sub_configure_args= 40608 ac_prev= 40609 eval "set x $ac_configure_args" 40610 shift 40611 for ac_arg 40612 do 40613 if test -n "$ac_prev"; then 40614 ac_prev= 40615 continue 40616 fi 40617 case $ac_arg in 40618 -cache-file | --cache-file | --cache-fil | --cache-fi \ 40619 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 40620 ac_prev=cache_file ;; 40621 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 40622 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ 40623 | --c=*) 40624 ;; 40625 --config-cache | -C) 40626 ;; 40627 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 40628 ac_prev=srcdir ;; 40629 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 40630 ;; 40631 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 40632 ac_prev=prefix ;; 40633 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 40634 ;; 40635 --disable-option-checking) 40636 ;; 40637 *) 40638 case $ac_arg in 40639 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 40640 esac 40641 as_fn_append ac_sub_configure_args " '$ac_arg'" ;; 40642 esac 40643 done 40644 40645 # Always prepend --prefix to ensure using the same prefix 40646 # in subdir configurations. 40647 ac_arg="--prefix=$prefix" 40648 case $ac_arg in 40649 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 40650 esac 40651 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args" 40652 40653 # Pass --silent 40654 if test "$silent" = yes; then 40655 ac_sub_configure_args="--silent $ac_sub_configure_args" 40656 fi 40657 40658 # Always prepend --disable-option-checking to silence warnings, since 40659 # different subdirs can have different --enable and --with options. 40660 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args" 40661 40662 ac_popdir=`pwd` 40663 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue 40664 40665 # Do not complain, so a configure script can configure whichever 40666 # parts of a large source tree are present. 40667 test -d "$srcdir/$ac_dir" || continue 40668 40669 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" 40670 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5 40671 $as_echo "$ac_msg" >&6 40672 as_dir="$ac_dir"; as_fn_mkdir_p 40673 ac_builddir=. 40674 40675case "$ac_dir" in 40676.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 40677*) 40678 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 40679 # A ".." for each directory in $ac_dir_suffix. 40680 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 40681 case $ac_top_builddir_sub in 40682 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 40683 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 40684 esac ;; 40685esac 40686ac_abs_top_builddir=$ac_pwd 40687ac_abs_builddir=$ac_pwd$ac_dir_suffix 40688# for backward compatibility: 40689ac_top_builddir=$ac_top_build_prefix 40690 40691case $srcdir in 40692 .) # We are building in place. 40693 ac_srcdir=. 40694 ac_top_srcdir=$ac_top_builddir_sub 40695 ac_abs_top_srcdir=$ac_pwd ;; 40696 [\\/]* | ?:[\\/]* ) # Absolute name. 40697 ac_srcdir=$srcdir$ac_dir_suffix; 40698 ac_top_srcdir=$srcdir 40699 ac_abs_top_srcdir=$srcdir ;; 40700 *) # Relative name. 40701 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 40702 ac_top_srcdir=$ac_top_build_prefix$srcdir 40703 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 40704esac 40705ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 40706 40707 40708 cd "$ac_dir" 40709 40710 # Check for guested configure; otherwise get Cygnus style configure. 40711 if test -f "$ac_srcdir/configure.gnu"; then 40712 ac_sub_configure=$ac_srcdir/configure.gnu 40713 elif test -f "$ac_srcdir/configure"; then 40714 ac_sub_configure=$ac_srcdir/configure 40715 elif test -f "$ac_srcdir/configure.in"; then 40716 # This should be Cygnus configure. 40717 ac_sub_configure=$ac_aux_dir/configure 40718 else 40719 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5 40720$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} 40721 ac_sub_configure= 40722 fi 40723 40724 # The recursion is here. 40725 if test -n "$ac_sub_configure"; then 40726 # Make the cache file name correct relative to the subdirectory. 40727 case $cache_file in 40728 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; 40729 *) # Relative name. 40730 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; 40731 esac 40732 40733 { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 40734$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} 40735 # The eval makes quoting arguments work. 40736 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ 40737 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || 40738 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5 40739 fi 40740 40741 cd "$ac_popdir" 40742 done 40743fi 40744if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 40745 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 40746$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 40747fi 40748 40749