A hint: This file contains one or more very long lines, so maybe it is better readable using the pure text view mode that shows the contents as wrapped lines within the browser window.
1 #! /bin/sh 2 # Guess values for system-dependent variables and create Makefiles. 3 # Generated by GNU Autoconf 2.69 for ntp 4.2.8p15. 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 18 DUALCASE=1; export DUALCASE # for MKS sh 19 if 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 26 else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32 esac 33 fi 34 35 36 as_nl=' 37 ' 38 export as_nl 39 # Printing a long string crashes Solaris 7 /usr/bin/printf. 40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42 as_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. 45 if 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 --' 49 elif (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' 52 else 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' 72 fi 73 74 # The user is always right. 75 if 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 } 81 fi 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.) 89 IFS=" "" $as_nl" 90 91 # Find who we are. Look in the path if we contain no directory separator. 92 as_myself= 93 case $0 in #(( 94 *[\\/]* ) as_myself=$0 ;; 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96 for as_dir in $PATH 97 do 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 102 IFS=$as_save_IFS 103 104 ;; 105 esac 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. 108 if test "x$as_myself" = x; then 109 as_myself=$0 110 fi 111 if test ! -f "$as_myself"; then 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114 fi 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. 120 for as_var in BASH_ENV ENV MAIL MAILPATH 121 do eval test x\${$as_var+set} = xset \ 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123 done 124 PS1='$ ' 125 PS2='> ' 126 PS4='+ ' 127 128 # NLS nuisances. 129 LC_ALL=C 130 export LC_ALL 131 LANGUAGE=C 132 export 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. 145 BASH_ENV=/dev/null 146 ENV=/dev/null 147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 148 case $- in # (((( 149 *v*x* | *x*v* ) as_opts=-vx ;; 150 *v* ) as_opts=-v ;; 151 *x* ) as_opts=-x ;; 152 * ) as_opts= ;; 153 esac 154 exec $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 158 as_fn_exit 255 159 fi 160 # We don't want this to propagate to other subprocesses. 161 { _as_can_reexec=; unset _as_can_reexec;} 162 if 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 170 else 171 case \`(set -o) 2>/dev/null\` in #( 172 *posix*) : 173 set -o posix ;; #( 174 *) : 175 ;; 176 esac 177 fi 178 " 179 as_required="as_fn_return () { (exit \$1); } 180 as_fn_success () { as_fn_return 0; } 181 as_fn_failure () { as_fn_return 1; } 182 as_fn_ret_success () { return 0; } 183 as_fn_ret_failure () { return 1; } 184 185 exitcode=0 186 as_fn_success || { exitcode=1; echo as_fn_success failed.; } 187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 191 192 else 193 exitcode=1; echo positional parameters were not saved. 194 fi 195 test x\$exitcode = x0 || exit 1 196 test -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 201 test \$(( 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 212 else 213 as_have_required=no 214 fi 215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 216 217 else 218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 219 as_found=false 220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 221 do 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 235 fi 236 fi 237 done;; 238 esac 239 as_found=false 240 done 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 244 fi; } 245 IFS=$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. 254 BASH_ENV=/dev/null 255 ENV=/dev/null 256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 257 case $- in # (((( 258 *v*x* | *x*v* ) as_opts=-vx ;; 259 *v* ) as_opts=-v ;; 260 *x* ) as_opts=-x ;; 261 * ) as_opts= ;; 262 esac 263 exec $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 267 exit 255 268 fi 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 284 fi 285 fi 286 fi 287 SHELL=${CONFIG_SHELL-/bin/sh} 288 export SHELL 289 # Unset more variables known to interfere with behavior of common tools. 290 CLICOLOR_FORCE= GREP_OPTIONS= 291 unset CLICOLOR_FORCE GREP_OPTIONS 292 293 ## --------------------- ## 294 ## M4sh Shell Functions. ## 295 ## --------------------- ## 296 # as_fn_unset VAR 297 # --------------- 298 # Portably unset VAR. 299 as_fn_unset () 300 { 301 { eval $1=; unset $1;} 302 } 303 as_unset=as_fn_unset 304 305 # as_fn_set_status STATUS 306 # ----------------------- 307 # Set $? to STATUS, without forking. 308 as_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. 316 as_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. 326 as_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. 374 as_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. 384 if (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 }' 389 else 390 as_fn_append () 391 { 392 eval $1=\$$1\$2 393 } 394 fi # 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. 401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 402 eval 'as_fn_arith () 403 { 404 as_val=$(( $* )) 405 }' 406 else 407 as_fn_arith () 408 { 409 as_val=`expr "$@" || test $? -eq 1` 410 } 411 fi # 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. 419 as_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 430 if expr a : '\(a\)' >/dev/null 2>&1 && 431 test "X`expr 00001 : '.*\(...\)'`" = X001; then 432 as_expr=expr 433 else 434 as_expr=false 435 fi 436 437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 438 as_basename=basename 439 else 440 as_basename=false 441 fi 442 443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 444 as_dirname=dirname 445 else 446 as_dirname=false 447 fi 448 449 as_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. 469 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 472 as_cr_digits='0123456789' 473 as_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 511 ECHO_C= ECHO_N= ECHO_T= 512 case `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';; 522 esac 523 524 rm -f conf$$ conf$$.exe conf$$.file 525 if test -d conf$$.dir; then 526 rm -f conf$$.dir/conf$$.file 527 else 528 rm -f conf$$.dir 529 mkdir conf$$.dir 2>/dev/null 530 fi 531 if (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 545 else 546 as_ln_s='cp -pR' 547 fi 548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 549 rmdir conf$$.dir 2>/dev/null 550 551 if mkdir -p . 2>/dev/null; then 552 as_mkdir_p='mkdir -p "$as_dir"' 553 else 554 test -d ./-p && rmdir ./-p 555 as_mkdir_p=false 556 fi 557 558 as_test_x='test -x' 559 as_executable_p=as_fn_executable_p 560 561 # Sed expression to map a string onto a valid CPP name. 562 as_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. 565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 566 567 SHELL=${CONFIG_SHELL-/bin/sh} 568 569 570 test -n "$DJDIR" || exec 7<&0 </dev/null 571 exec 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. 576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 577 578 # 579 # Initializations. 580 # 581 ac_default_prefix=/usr/local 582 ac_clean_files= 583 ac_config_libobj_dir=. 584 LIBOBJS= 585 cross_compiling=no 586 subdirs= 587 MFLAGS= 588 MAKEFLAGS= 589 590 # Identity of this package. 591 PACKAGE_NAME='ntp' 592 PACKAGE_TARNAME='ntp' 593 PACKAGE_VERSION='4.2.8p15' 594 PACKAGE_STRING='ntp 4.2.8p15' 595 PACKAGE_BUGREPORT='http://bugs.ntp.org./' 596 PACKAGE_URL='http://www.ntp.org./' 597 598 # Factoring default headers for most tests. 599 ac_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 634 ac_header_list= 635 enable_option_checking=no 636 ac_subst_vars='am__EXEEXT_FALSE 637 am__EXEEXT_TRUE 638 LTLIBOBJS 639 subdirs 640 PERLLIBDIR 641 NTP_KEYSDIR 642 BUILD_TEST_NTP_SIGND_FALSE 643 BUILD_TEST_NTP_SIGND_TRUE 644 BUILD_TEST_NTP_SCANNER_FALSE 645 BUILD_TEST_NTP_SCANNER_TRUE 646 BUILD_TEST_NTP_RESTRICT_FALSE 647 BUILD_TEST_NTP_RESTRICT_TRUE 648 GTEST_AVAILABLE_FALSE 649 GTEST_AVAILABLE_TRUE 650 GTEST_CPPFLAGS 651 GTEST_CXXFLAGS 652 GTEST_LIBS 653 GTEST_LDFLAGS 654 GTEST_CONFIG 655 UNITYBUILD_AVAILABLE_FALSE 656 UNITYBUILD_AVAILABLE_TRUE 657 PATH_RUBY 658 HAVE_LEAPSMEARINTERVAL 659 SAVECONFIG_ENABLED_FALSE 660 SAVECONFIG_ENABLED_TRUE 661 LSCF 662 MAKE_NTPSNMPD 663 SNMP_CFLAGS 664 SNMP_CPPFLAGS 665 SNMP_LIBS 666 BUILD_SNTP_FALSE 667 BUILD_SNTP_TRUE 668 SNTP 669 MAKE_NTPDSIM 670 MAKE_LIBNTPSIM 671 MAKE_TIMETRIM 672 MAKE_TICKADJ 673 MAKE_NTPTIME 674 MAKE_ADJTIMED 675 CHUTEST 676 PROPDELAY 677 MAKE_PARSEKMODULE 678 DCFD 679 TESTDCF 680 MAKE_CHECK_LAYOUT 681 VER_SUFFIX 682 MAKE_CHECK_Y2K 683 MAKE_LIBPARSE_KERNEL 684 MAKE_LIBPARSE 685 LIBPARSE 686 HAVE_RLIMIT_STACK 687 HAVE_RLIMIT_MEMLOCK 688 LDADD_NLIST 689 PATH_NET_SNMP_CONFIG 690 CONFIG_SHELL 691 PATH_TEST 692 PATH_PERL 693 LIBOBJS 694 PTHREADS_FALSE 695 PTHREADS_TRUE 696 LIBISC_PTHREADS_NOTHREADS 697 PTHREAD_LIBS 698 LTHREAD_LIBS 699 BUILD_THREAD 700 HAVE_INLINE 701 LDADD_LIBUTIL 702 ALLOCA 703 LIBM 704 EDITLINE_LIBS 705 LDADD_LIBNTP 706 NTP_CROSSCOMPILE_FALSE 707 NTP_CROSSCOMPILE_TRUE 708 BUILD_LIBEVENT_FALSE 709 BUILD_LIBEVENT_TRUE 710 LDADD_LIBEVENT 711 CPPFLAGS_LIBEVENT 712 CFLAGS_LIBEVENT 713 PKG_CONFIG 714 LIBOPTS_DIR 715 LIBOPTS_CFLAGS 716 LIBOPTS_LDADD 717 NEED_LIBOPTS_FALSE 718 NEED_LIBOPTS_TRUE 719 INSTALL_LIBOPTS_FALSE 720 INSTALL_LIBOPTS_TRUE 721 POSIX_SHELL 722 GL_GENERATE_STDNORETURN_H_FALSE 723 GL_GENERATE_STDNORETURN_H_TRUE 724 STDNORETURN_H 725 LIBTOOL_DEPS 726 LT_SYS_LIBRARY_PATH 727 OTOOL64 728 OTOOL 729 LIPO 730 NMEDIT 731 DSYMUTIL 732 MANIFEST_TOOL 733 RANLIB 734 DLLTOOL 735 OBJDUMP 736 LN_S 737 NM 738 ac_ct_DUMPBIN 739 DUMPBIN 740 LD 741 FGREP 742 SED 743 LIBTOOL 744 ac_ct_AR 745 AR 746 INSTALL_UPDATE_LEAP_FALSE 747 INSTALL_UPDATE_LEAP_TRUE 748 UPDATE_LEAP_NI 749 UPDATE_LEAP_MS 750 UPDATE_LEAP_DS 751 UPDATE_LEAP_DL 752 UPDATE_LEAP_DB 753 TIMETRIM_NI 754 TIMETRIM_MS 755 TIMETRIM_DS 756 TIMETRIM_DL 757 TIMETRIM_DB 758 TICKADJ_NI 759 TICKADJ_MS 760 TICKADJ_DS 761 TICKADJ_DL 762 TICKADJ_DB 763 SNTP_NI 764 SNTP_MS 765 SNTP_DS 766 SNTP_DL 767 SNTP_DB 768 NTP_WAIT_NI 769 NTP_WAIT_MS 770 NTP_WAIT_DS 771 NTP_WAIT_DL 772 NTP_WAIT_DB 773 NTP_KEYGEN_NI 774 NTP_KEYGEN_MS 775 NTP_KEYGEN_DS 776 NTP_KEYGEN_DL 777 NTP_KEYGEN_DB 778 NTPTRACE_NI 779 NTPTRACE_MS 780 NTPTRACE_DS 781 NTPTRACE_DL 782 NTPTRACE_DB 783 NTPTIME_NI 784 NTPTIME_MS 785 NTPTIME_DS 786 NTPTIME_DL 787 NTPTIME_DB 788 INSTALL_NTPSWEEP_FALSE 789 INSTALL_NTPSWEEP_TRUE 790 NTPSWEEP_NI 791 NTPSWEEP_MS 792 NTPSWEEP_DS 793 NTPSWEEP_DL 794 NTPSWEEP_DB 795 NTPSNMPD_NI 796 NTPSNMPD_MS 797 NTPSNMPD_DS 798 NTPSNMPD_DL 799 NTPSNMPD_DB 800 NTPQ_NI 801 NTPQ_MS 802 NTPQ_DS 803 NTPQ_DL 804 NTPQ_DB 805 NTPD_NI 806 NTPD_MS 807 NTPD_DS 808 NTPD_DL 809 NTPD_DB 810 NTPDSIM_NI 811 NTPDSIM_MS 812 NTPDSIM_DS 813 NTPDSIM_DL 814 NTPDSIM_DB 815 NTPDC_NI 816 NTPDC_MS 817 NTPDC_DS 818 NTPDC_DL 819 NTPDC_DB 820 NTPDATE_NI 821 NTPDATE_MS 822 NTPDATE_DS 823 NTPDATE_DL 824 NTPDATE_DB 825 MANTAGFMT 826 CALC_TICKADJ_NI 827 CALC_TICKADJ_MS 828 CALC_TICKADJ_DS 829 CALC_TICKADJ_DL 830 CALC_TICKADJ_DB 831 WANT_CALC_TICKADJ_MS_FALSE 832 WANT_CALC_TICKADJ_MS_TRUE 833 VPATH_HACK_FALSE 834 VPATH_HACK_TRUE 835 NTP_HARD_LDFLAGS 836 NTP_HARD_CPPFLAGS 837 NTP_HARD_CFLAGS 838 YFLAGS 839 YACC 840 LDFLAGS_NTP 841 LDADD_NTP 842 CPPFLAGS_NTP 843 CFLAGS_NTP 844 EGREP 845 GREP 846 CPP 847 am__fastdepCC_FALSE 848 am__fastdepCC_TRUE 849 CCDEPMODE 850 am__nodep 851 AMDEPBACKSLASH 852 AMDEP_FALSE 853 AMDEP_TRUE 854 am__quote 855 am__include 856 DEPDIR 857 OBJEXT 858 EXEEXT 859 ac_ct_CC 860 CPPFLAGS 861 LDFLAGS 862 CFLAGS 863 CC 864 host_os 865 host_vendor 866 host_cpu 867 host 868 build_os 869 build_vendor 870 build_cpu 871 build 872 AM_BACKSLASH 873 AM_DEFAULT_VERBOSITY 874 AM_DEFAULT_V 875 AM_V 876 am__untar 877 am__tar 878 AMTAR 879 am__leading_dot 880 SET_MAKE 881 AWK 882 mkdir_p 883 MKDIR_P 884 INSTALL_STRIP_PROGRAM 885 STRIP 886 install_sh 887 MAKEINFO 888 AUTOHEADER 889 AUTOMAKE 890 AUTOCONF 891 ACLOCAL 892 VERSION 893 PACKAGE 894 CYGPATH_W 895 am__isrc 896 INSTALL_DATA 897 INSTALL_SCRIPT 898 INSTALL_PROGRAM 899 target_alias 900 host_alias 901 build_alias 902 LIBS 903 ECHO_T 904 ECHO_N 905 ECHO_C 906 DEFS 907 mandir 908 localedir 909 libdir 910 psdir 911 pdfdir 912 dvidir 913 htmldir 914 infodir 915 docdir 916 oldincludedir 917 includedir 918 localstatedir 919 sharedstatedir 920 sysconfdir 921 datadir 922 datarootdir 923 libexecdir 924 sbindir 925 bindir 926 program_transform_name 927 prefix 928 exec_prefix 929 PACKAGE_URL 930 PACKAGE_BUGREPORT 931 PACKAGE_STRING 932 PACKAGE_VERSION 933 PACKAGE_TARNAME 934 PACKAGE_NAME 935 PATH_SEPARATOR 936 SHELL' 937 ac_subst_files='calc_tickadj_opts 938 ntp_wait_opts 939 ntpsweep_opts 940 ntptrace_opts 941 summary_opts 942 plot_summary_opts' 943 ac_user_opts=' 944 enable_option_checking 945 enable_silent_rules 946 enable_dependency_tracking 947 with_hardenfile 948 with_locfile 949 enable_shared 950 enable_static 951 with_pic 952 enable_fast_install 953 with_aix_soname 954 with_gnu_ld 955 with_sysroot 956 enable_libtool_lock 957 enable_nls 958 enable_local_libopts 959 enable_libopts_install 960 with_autoopts_config 961 enable_local_libevent 962 with_lineeditlibs 963 enable_debugging 964 enable_thread_support 965 with_threads 966 with_yielding_select 967 enable_c99_snprintf 968 enable_clockctl 969 enable_linuxcaps 970 enable_solarisprivs 971 enable_trustedbsd_mac 972 enable_signalled_io 973 with_arlib 974 with_net_snmp_config 975 enable_libseccomp 976 with_stack_limit 977 with_memlock 978 enable_debug_timing 979 enable_dst_minutes 980 enable_ignore_dns_errors 981 enable_BANCOMM 982 enable_GPSVME 983 enable_all_clocks 984 enable_ACTS 985 enable_ARBITER 986 enable_ARCRON_MSF 987 enable_AS2201 988 enable_ATOM 989 enable_CHRONOLOG 990 enable_CHU 991 enable_AUDIO_CHU 992 enable_DATUM 993 enable_DUMBCLOCK 994 enable_FG 995 enable_HEATH 996 enable_HOPFSERIAL 997 enable_HOPFPCI 998 enable_HPGPS 999 enable_IRIG 1000 enable_JJY 1001 enable_JUPITER 1002 enable_LEITCH 1003 enable_LOCAL_CLOCK 1004 enable_MX4200 1005 enable_NEOCLOCK4X 1006 enable_NMEA 1007 enable_GPSD 1008 enable_ONCORE 1009 enable_PALISADE 1010 enable_PCF 1011 enable_PST 1012 enable_RIPENCC 1013 enable_SHM 1014 enable_SPECTRACOM 1015 enable_TPRO 1016 enable_TRUETIME 1017 enable_TT560 1018 enable_ULINK 1019 enable_TSYNCPCI 1020 enable_WWV 1021 enable_ZYFER 1022 enable_parse_clocks 1023 enable_COMPUTIME 1024 enable_DCF7000 1025 enable_HOPF6021 1026 enable_MEINBERG 1027 enable_RAWDCF 1028 enable_RCC8000 1029 enable_SCHMID 1030 enable_TRIMTAIP 1031 enable_TRIMTSIP 1032 enable_WHARTON 1033 enable_VARITEXT 1034 enable_SEL240X 1035 with_crypto 1036 with_openssl_libdir 1037 with_openssl_incdir 1038 with_rpath 1039 enable_openssl_random 1040 enable_autokey 1041 enable_kmem 1042 enable_accurate_adjtime 1043 enable_tick 1044 enable_tickadj 1045 enable_simulator 1046 with_sntp 1047 with_ntpsnmpd 1048 enable_slew_always 1049 enable_step_slew 1050 enable_ntpdate_step 1051 enable_hourly_todr_sync 1052 enable_kernel_fll_bug 1053 enable_bug1243_fix 1054 enable_bug3020_fix 1055 enable_bug3527_fix 1056 enable_irig_sawtooth 1057 enable_nist 1058 enable_ntp_signd 1059 enable_ipv6 1060 with_kame 1061 enable_getifaddrs 1062 enable_saveconfig 1063 enable_leap_smear 1064 enable_dynamic_interleave 1065 with_gtest 1066 enable_problem_tests 1067 ' 1068 ac_precious_vars='build_alias 1069 host_alias 1070 target_alias 1071 CC 1072 CFLAGS 1073 LDFLAGS 1074 LIBS 1075 CPPFLAGS 1076 CPP 1077 YACC 1078 YFLAGS 1079 LT_SYS_LIBRARY_PATH' 1080 ac_subdirs_all='sntp' 1081 1082 # Initialize some variables set by options. 1083 ac_init_help= 1084 ac_init_version=false 1085 ac_unrecognized_opts= 1086 ac_unrecognized_sep= 1087 # The variables have the same names as the options, with 1088 # dashes changed to underlines. 1089 cache_file=/dev/null 1090 exec_prefix=NONE 1091 no_create= 1092 no_recursion= 1093 prefix=NONE 1094 program_prefix=NONE 1095 program_suffix=NONE 1096 program_transform_name=s,x,x, 1097 silent= 1098 site= 1099 srcdir= 1100 verbose= 1101 x_includes=NONE 1102 x_libraries=NONE 1103 1104 # Installation directory options. 1105 # These are left unexpanded so users can "make install exec_prefix=/foo" 1106 # and all the variables that are supposed to be based on exec_prefix 1107 # by default will actually change. 1108 # Use braces instead of parens because sh, perl, etc. also accept them. 1109 # (The list follows the same order as the GNU Coding Standards.) 1110 bindir='${exec_prefix}/bin' 1111 sbindir='${exec_prefix}/sbin' 1112 libexecdir='${exec_prefix}/libexec' 1113 datarootdir='${prefix}/share' 1114 datadir='${datarootdir}' 1115 sysconfdir='${prefix}/etc' 1116 sharedstatedir='${prefix}/com' 1117 localstatedir='${prefix}/var' 1118 includedir='${prefix}/include' 1119 oldincludedir='/usr/include' 1120 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 1121 infodir='${datarootdir}/info' 1122 htmldir='${docdir}' 1123 dvidir='${docdir}' 1124 pdfdir='${docdir}' 1125 psdir='${docdir}' 1126 libdir='${exec_prefix}/lib' 1127 localedir='${datarootdir}/locale' 1128 mandir='${datarootdir}/man' 1129 1130 ac_prev= 1131 ac_dashdash= 1132 for ac_option 1133 do 1134 # If the previous option needs an argument, assign it. 1135 if test -n "$ac_prev"; then 1136 eval $ac_prev=\$ac_option 1137 ac_prev= 1138 continue 1139 fi 1140 1141 case $ac_option in 1142 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1143 *=) ac_optarg= ;; 1144 *) ac_optarg=yes ;; 1145 esac 1146 1147 # Accept the important Cygnus configure options, so we can diagnose typos. 1148 1149 case $ac_dashdash$ac_option in 1150 --) 1151 ac_dashdash=yes ;; 1152 1153 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1154 ac_prev=bindir ;; 1155 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1156 bindir=$ac_optarg ;; 1157 1158 -build | --build | --buil | --bui | --bu) 1159 ac_prev=build_alias ;; 1160 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1161 build_alias=$ac_optarg ;; 1162 1163 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1164 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1165 ac_prev=cache_file ;; 1166 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1167 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1168 cache_file=$ac_optarg ;; 1169 1170 --config-cache | -C) 1171 cache_file=config.cache ;; 1172 1173 -datadir | --datadir | --datadi | --datad) 1174 ac_prev=datadir ;; 1175 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1176 datadir=$ac_optarg ;; 1177 1178 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1179 | --dataroo | --dataro | --datar) 1180 ac_prev=datarootdir ;; 1181 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1182 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1183 datarootdir=$ac_optarg ;; 1184 1185 -disable-* | --disable-*) 1186 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1187 # Reject names that are not valid shell variable names. 1188 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1189 as_fn_error $? "invalid feature name: $ac_useropt" 1190 ac_useropt_orig=$ac_useropt 1191 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1192 case $ac_user_opts in 1193 *" 1194 "enable_$ac_useropt" 1195 "*) ;; 1196 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1197 ac_unrecognized_sep=', ';; 1198 esac 1199 eval enable_$ac_useropt=no ;; 1200 1201 -docdir | --docdir | --docdi | --doc | --do) 1202 ac_prev=docdir ;; 1203 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1204 docdir=$ac_optarg ;; 1205 1206 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1207 ac_prev=dvidir ;; 1208 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1209 dvidir=$ac_optarg ;; 1210 1211 -enable-* | --enable-*) 1212 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1213 # Reject names that are not valid shell variable names. 1214 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1215 as_fn_error $? "invalid feature name: $ac_useropt" 1216 ac_useropt_orig=$ac_useropt 1217 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1218 case $ac_user_opts in 1219 *" 1220 "enable_$ac_useropt" 1221 "*) ;; 1222 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1223 ac_unrecognized_sep=', ';; 1224 esac 1225 eval enable_$ac_useropt=\$ac_optarg ;; 1226 1227 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1228 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1229 | --exec | --exe | --ex) 1230 ac_prev=exec_prefix ;; 1231 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1232 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1233 | --exec=* | --exe=* | --ex=*) 1234 exec_prefix=$ac_optarg ;; 1235 1236 -gas | --gas | --ga | --g) 1237 # Obsolete; use --with-gas. 1238 with_gas=yes ;; 1239 1240 -help | --help | --hel | --he | -h) 1241 ac_init_help=long ;; 1242 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1243 ac_init_help=recursive ;; 1244 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1245 ac_init_help=short ;; 1246 1247 -host | --host | --hos | --ho) 1248 ac_prev=host_alias ;; 1249 -host=* | --host=* | --hos=* | --ho=*) 1250 host_alias=$ac_optarg ;; 1251 1252 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1253 ac_prev=htmldir ;; 1254 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1255 | --ht=*) 1256 htmldir=$ac_optarg ;; 1257 1258 -includedir | --includedir | --includedi | --included | --include \ 1259 | --includ | --inclu | --incl | --inc) 1260 ac_prev=includedir ;; 1261 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1262 | --includ=* | --inclu=* | --incl=* | --inc=*) 1263 includedir=$ac_optarg ;; 1264 1265 -infodir | --infodir | --infodi | --infod | --info | --inf) 1266 ac_prev=infodir ;; 1267 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1268 infodir=$ac_optarg ;; 1269 1270 -libdir | --libdir | --libdi | --libd) 1271 ac_prev=libdir ;; 1272 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1273 libdir=$ac_optarg ;; 1274 1275 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1276 | --libexe | --libex | --libe) 1277 ac_prev=libexecdir ;; 1278 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1279 | --libexe=* | --libex=* | --libe=*) 1280 libexecdir=$ac_optarg ;; 1281 1282 -localedir | --localedir | --localedi | --localed | --locale) 1283 ac_prev=localedir ;; 1284 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1285 localedir=$ac_optarg ;; 1286 1287 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1288 | --localstate | --localstat | --localsta | --localst | --locals) 1289 ac_prev=localstatedir ;; 1290 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1291 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1292 localstatedir=$ac_optarg ;; 1293 1294 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1295 ac_prev=mandir ;; 1296 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1297 mandir=$ac_optarg ;; 1298 1299 -nfp | --nfp | --nf) 1300 # Obsolete; use --without-fp. 1301 with_fp=no ;; 1302 1303 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1304 | --no-cr | --no-c | -n) 1305 no_create=yes ;; 1306 1307 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1308 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1309 no_recursion=yes ;; 1310 1311 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1312 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1313 | --oldin | --oldi | --old | --ol | --o) 1314 ac_prev=oldincludedir ;; 1315 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1316 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1317 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1318 oldincludedir=$ac_optarg ;; 1319 1320 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1321 ac_prev=prefix ;; 1322 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1323 prefix=$ac_optarg ;; 1324 1325 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1326 | --program-pre | --program-pr | --program-p) 1327 ac_prev=program_prefix ;; 1328 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1329 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1330 program_prefix=$ac_optarg ;; 1331 1332 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1333 | --program-suf | --program-su | --program-s) 1334 ac_prev=program_suffix ;; 1335 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1336 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1337 program_suffix=$ac_optarg ;; 1338 1339 -program-transform-name | --program-transform-name \ 1340 | --program-transform-nam | --program-transform-na \ 1341 | --program-transform-n | --program-transform- \ 1342 | --program-transform | --program-transfor \ 1343 | --program-transfo | --program-transf \ 1344 | --program-trans | --program-tran \ 1345 | --progr-tra | --program-tr | --program-t) 1346 ac_prev=program_transform_name ;; 1347 -program-transform-name=* | --program-transform-name=* \ 1348 | --program-transform-nam=* | --program-transform-na=* \ 1349 | --program-transform-n=* | --program-transform-=* \ 1350 | --program-transform=* | --program-transfor=* \ 1351 | --program-transfo=* | --program-transf=* \ 1352 | --program-trans=* | --program-tran=* \ 1353 | --progr-tra=* | --program-tr=* | --program-t=*) 1354 program_transform_name=$ac_optarg ;; 1355 1356 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1357 ac_prev=pdfdir ;; 1358 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1359 pdfdir=$ac_optarg ;; 1360 1361 -psdir | --psdir | --psdi | --psd | --ps) 1362 ac_prev=psdir ;; 1363 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1364 psdir=$ac_optarg ;; 1365 1366 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1367 | -silent | --silent | --silen | --sile | --sil) 1368 silent=yes ;; 1369 1370 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1371 ac_prev=sbindir ;; 1372 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1373 | --sbi=* | --sb=*) 1374 sbindir=$ac_optarg ;; 1375 1376 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1377 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1378 | --sharedst | --shareds | --shared | --share | --shar \ 1379 | --sha | --sh) 1380 ac_prev=sharedstatedir ;; 1381 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1382 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1383 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1384 | --sha=* | --sh=*) 1385 sharedstatedir=$ac_optarg ;; 1386 1387 -site | --site | --sit) 1388 ac_prev=site ;; 1389 -site=* | --site=* | --sit=*) 1390 site=$ac_optarg ;; 1391 1392 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1393 ac_prev=srcdir ;; 1394 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1395 srcdir=$ac_optarg ;; 1396 1397 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1398 | --syscon | --sysco | --sysc | --sys | --sy) 1399 ac_prev=sysconfdir ;; 1400 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1401 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1402 sysconfdir=$ac_optarg ;; 1403 1404 -target | --target | --targe | --targ | --tar | --ta | --t) 1405 ac_prev=target_alias ;; 1406 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1407 target_alias=$ac_optarg ;; 1408 1409 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1410 verbose=yes ;; 1411 1412 -version | --version | --versio | --versi | --vers | -V) 1413 ac_init_version=: ;; 1414 1415 -with-* | --with-*) 1416 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1417 # Reject names that are not valid shell variable names. 1418 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1419 as_fn_error $? "invalid package name: $ac_useropt" 1420 ac_useropt_orig=$ac_useropt 1421 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1422 case $ac_user_opts in 1423 *" 1424 "with_$ac_useropt" 1425 "*) ;; 1426 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1427 ac_unrecognized_sep=', ';; 1428 esac 1429 eval with_$ac_useropt=\$ac_optarg ;; 1430 1431 -without-* | --without-*) 1432 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1433 # Reject names that are not valid shell variable names. 1434 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1435 as_fn_error $? "invalid package name: $ac_useropt" 1436 ac_useropt_orig=$ac_useropt 1437 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1438 case $ac_user_opts in 1439 *" 1440 "with_$ac_useropt" 1441 "*) ;; 1442 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1443 ac_unrecognized_sep=', ';; 1444 esac 1445 eval with_$ac_useropt=no ;; 1446 1447 --x) 1448 # Obsolete; use --with-x. 1449 with_x=yes ;; 1450 1451 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1452 | --x-incl | --x-inc | --x-in | --x-i) 1453 ac_prev=x_includes ;; 1454 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1455 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1456 x_includes=$ac_optarg ;; 1457 1458 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1459 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1460 ac_prev=x_libraries ;; 1461 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1462 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1463 x_libraries=$ac_optarg ;; 1464 1465 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1466 Try \`$0 --help' for more information" 1467 ;; 1468 1469 *=*) 1470 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1471 # Reject names that are not valid shell variable names. 1472 case $ac_envvar in #( 1473 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1474 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1475 esac 1476 eval $ac_envvar=\$ac_optarg 1477 export $ac_envvar ;; 1478 1479 *) 1480 # FIXME: should be removed in autoconf 3.0. 1481 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1482 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1483 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1484 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1485 ;; 1486 1487 esac 1488 done 1489 1490 if test -n "$ac_prev"; then 1491 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1492 as_fn_error $? "missing argument to $ac_option" 1493 fi 1494 1495 if test -n "$ac_unrecognized_opts"; then 1496 case $enable_option_checking in 1497 no) ;; 1498 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1499 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1500 esac 1501 fi 1502 1503 # Check all directory arguments for consistency. 1504 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1505 datadir sysconfdir sharedstatedir localstatedir includedir \ 1506 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1507 libdir localedir mandir 1508 do 1509 eval ac_val=\$$ac_var 1510 # Remove trailing slashes. 1511 case $ac_val in 1512 */ ) 1513 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1514 eval $ac_var=\$ac_val;; 1515 esac 1516 # Be sure to have absolute directory names. 1517 case $ac_val in 1518 [\\/$]* | ?:[\\/]* ) continue;; 1519 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1520 esac 1521 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1522 done 1523 1524 # There might be people who depend on the old broken behavior: `$host' 1525 # used to hold the argument of --host etc. 1526 # FIXME: To remove some day. 1527 build=$build_alias 1528 host=$host_alias 1529 target=$target_alias 1530 1531 # FIXME: To remove some day. 1532 if test "x$host_alias" != x; then 1533 if test "x$build_alias" = x; then 1534 cross_compiling=maybe 1535 elif test "x$build_alias" != "x$host_alias"; then 1536 cross_compiling=yes 1537 fi 1538 fi 1539 1540 ac_tool_prefix= 1541 test -n "$host_alias" && ac_tool_prefix=$host_alias- 1542 1543 test "$silent" = yes && exec 6>/dev/null 1544 1545 1546 ac_pwd=`pwd` && test -n "$ac_pwd" && 1547 ac_ls_di=`ls -di .` && 1548 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1549 as_fn_error $? "working directory cannot be determined" 1550 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1551 as_fn_error $? "pwd does not report name of working directory" 1552 1553 1554 # Find the source files, if location was not specified. 1555 if test -z "$srcdir"; then 1556 ac_srcdir_defaulted=yes 1557 # Try the directory containing this script, then the parent directory. 1558 ac_confdir=`$as_dirname -- "$as_myself" || 1559 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1560 X"$as_myself" : 'X\(//\)[^/]' \| \ 1561 X"$as_myself" : 'X\(//\)$' \| \ 1562 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1563 $as_echo X"$as_myself" | 1564 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1565 s//\1/ 1566 q 1567 } 1568 /^X\(\/\/\)[^/].*/{ 1569 s//\1/ 1570 q 1571 } 1572 /^X\(\/\/\)$/{ 1573 s//\1/ 1574 q 1575 } 1576 /^X\(\/\).*/{ 1577 s//\1/ 1578 q 1579 } 1580 s/.*/./; q'` 1581 srcdir=$ac_confdir 1582 if test ! -r "$srcdir/$ac_unique_file"; then 1583 srcdir=.. 1584 fi 1585 else 1586 ac_srcdir_defaulted=no 1587 fi 1588 if test ! -r "$srcdir/$ac_unique_file"; then 1589 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1590 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1591 fi 1592 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1593 ac_abs_confdir=`( 1594 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1595 pwd)` 1596 # When building in place, set srcdir=. 1597 if test "$ac_abs_confdir" = "$ac_pwd"; then 1598 srcdir=. 1599 fi 1600 # Remove unnecessary trailing slashes from srcdir. 1601 # Double slashes in file names in object file debugging info 1602 # mess up M-x gdb in Emacs. 1603 case $srcdir in 1604 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1605 esac 1606 for ac_var in $ac_precious_vars; do 1607 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1608 eval ac_env_${ac_var}_value=\$${ac_var} 1609 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1610 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1611 done 1612 1613 # 1614 # Report the --help message. 1615 # 1616 if test "$ac_init_help" = "long"; then 1617 # Omit some internal or obsolete options to make the list less imposing. 1618 # This message is too long to be a string in the A/UX 3.1 sh. 1619 cat <<_ACEOF 1620 \`configure' configures ntp 4.2.8p15 to adapt to many kinds of systems. 1621 1622 Usage: $0 [OPTION]... [VAR=VALUE]... 1623 1624 To assign environment variables (e.g., CC, CFLAGS...), specify them as 1625 VAR=VALUE. See below for descriptions of some of the useful variables. 1626 1627 Defaults for the options are specified in brackets. 1628 1629 Configuration: 1630 -h, --help display this help and exit 1631 --help=short display options specific to this package 1632 --help=recursive display the short help of all the included packages 1633 -V, --version display version information and exit 1634 -q, --quiet, --silent do not print \`checking ...' messages 1635 --cache-file=FILE cache test results in FILE [disabled] 1636 -C, --config-cache alias for \`--cache-file=config.cache' 1637 -n, --no-create do not create output files 1638 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1639 1640 Installation directories: 1641 --prefix=PREFIX install architecture-independent files in PREFIX 1642 [$ac_default_prefix] 1643 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1644 [PREFIX] 1645 1646 By default, \`make install' will install all the files in 1647 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1648 an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1649 for instance \`--prefix=\$HOME'. 1650 1651 For better control, use the options below. 1652 1653 Fine tuning of the installation directories: 1654 --bindir=DIR user executables [EPREFIX/bin] 1655 --sbindir=DIR system admin executables [EPREFIX/sbin] 1656 --libexecdir=DIR program executables [EPREFIX/libexec] 1657 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1658 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1659 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1660 --libdir=DIR object code libraries [EPREFIX/lib] 1661 --includedir=DIR C header files [PREFIX/include] 1662 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1663 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1664 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1665 --infodir=DIR info documentation [DATAROOTDIR/info] 1666 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1667 --mandir=DIR man documentation [DATAROOTDIR/man] 1668 --docdir=DIR documentation root [DATAROOTDIR/doc/ntp] 1669 --htmldir=DIR html documentation [DOCDIR] 1670 --dvidir=DIR dvi documentation [DOCDIR] 1671 --pdfdir=DIR pdf documentation [DOCDIR] 1672 --psdir=DIR ps documentation [DOCDIR] 1673 _ACEOF 1674 1675 cat <<\_ACEOF 1676 1677 Program names: 1678 --program-prefix=PREFIX prepend PREFIX to installed program names 1679 --program-suffix=SUFFIX append SUFFIX to installed program names 1680 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1681 1682 System types: 1683 --build=BUILD configure for building on BUILD [guessed] 1684 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1685 _ACEOF 1686 fi 1687 1688 if test -n "$ac_init_help"; then 1689 case $ac_init_help in 1690 short | recursive ) echo "Configuration of ntp 4.2.8p15:";; 1691 esac 1692 cat <<\_ACEOF 1693 1694 Optional Features and Packages: 1695 --disable-option-checking ignore unrecognized --enable/--with options 1696 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1697 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1698 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1699 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1700 --enable-silent-rules less verbose build output (undo: "make V=1") 1701 --disable-silent-rules verbose build output (undo: "make V=0") 1702 --enable-dependency-tracking 1703 do not reject slow dependency extractors 1704 --disable-dependency-tracking 1705 speeds up one-time build 1706 --with-hardenfile=XXX os-specific or "/dev/null" 1707 --with-locfile=XXX os-specific or "legacy" 1708 --enable-shared[=PKGS] build shared libraries [default=no] 1709 --enable-static[=PKGS] build static libraries [default=yes] 1710 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1711 both] 1712 --enable-fast-install[=PKGS] 1713 optimize for fast installation [default=yes] 1714 --with-aix-soname=aix|svr4|both 1715 shared library versioning (aka "SONAME") variant to 1716 provide on AIX, [default=aix]. 1717 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1718 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1719 compiler's sysroot if not specified). 1720 --disable-libtool-lock avoid locking (might break parallel builds) 1721 --disable-nls disable nls support in libopts 1722 --enable-local-libopts Use the supplied libopts tearoff code 1723 --enable-libopts-install 1724 Install libopts with client installation 1725 --with-autoopts-config specify the config-info script 1726 --enable-local-libevent Force using the supplied libevent tearoff code 1727 --with-lineeditlibs edit,editline (readline may be specified if desired) 1728 defaults: + yes, - no, s system-specific 1729 --enable-debugging + include ntpd debugging code 1730 --enable-thread-support s use threads (+ if available) 1731 --with-threads with threads [auto] 1732 --with-yielding-select with yielding select [auto] 1733 --enable-c99-snprintf s force replacement 1734 --enable-clockctl s Use /dev/clockctl for non-root clock control 1735 --enable-linuxcaps + Use Linux capabilities for non-root clock control 1736 --enable-solarisprivs + Use Solaris privileges for non-root clock control 1737 --enable-trustedbsd-mac s Use TrustedBSD MAC policy for non-root clock 1738 control 1739 --enable-signalled-io s Use signalled IO if we can 1740 --with-arlib - deprecated, arlib not distributed 1741 --with-net-snmp-config + =net-snmp-config 1742 --enable-libseccomp EXPERIMENTAL: enable support for libseccomp 1743 sandboxing (default is no) 1744 --with-stack-limit ? =50 (200 for openbsd) 4k pages 1745 --with-memlock ? =32 (-1 on linux) megabytes 1746 --enable-debug-timing - include processing time debugging code (costs 1747 performance) 1748 --enable-dst-minutes =60 minutes per DST adjustment 1749 --enable-ignore-dns-errors 1750 - retry DNS queries on any error 1751 --enable-BANCOMM - Datum/Bancomm bc635/VME interface 1752 --enable-GPSVME - TrueTime GPS receiver/VME interface 1753 --enable-all-clocks + include all suitable non-PARSE clocks: 1754 --enable-ACTS s ACTS modem service 1755 --enable-ARBITER + Arbiter 1088A/B GPS receiver 1756 --enable-ARCRON-MSF + Arcron MSF receiver 1757 --enable-AS2201 + Austron 2200A/2201A GPS receiver 1758 --enable-ATOM s ATOM PPS interface 1759 --enable-CHRONOLOG + Chrono-log K-series WWVB receiver 1760 --enable-CHU + CHU modem/decoder 1761 --enable-AUDIO-CHU s CHU audio/decoder 1762 --enable-DATUM s Datum Programmable Time System 1763 --enable-DUMBCLOCK + Dumb generic hh:mm:ss local clock 1764 --enable-FG + Forum Graphic GPS 1765 --enable-HEATH s Heath GC-1000 WWV/WWVH receiver 1766 --enable-HOPFSERIAL + hopf serial clock device 1767 --enable-HOPFPCI + hopf 6039 PCI board 1768 --enable-HPGPS + HP 58503A GPS receiver 1769 --enable-IRIG s IRIG audio decoder 1770 --enable-JJY + JJY receiver 1771 --enable-JUPITER s Rockwell Jupiter GPS receiver 1772 --enable-LEITCH + Leitch CSD 5300 Master Clock System Driver 1773 --enable-LOCAL-CLOCK + local clock reference 1774 --enable-MX4200 s Magnavox MX4200 GPS receiver 1775 --enable-NEOCLOCK4X + NeoClock4X DCF77 / TDF receiver 1776 --enable-NMEA + NMEA GPS receiver 1777 --enable-GPSD + GPSD JSON receiver 1778 --enable-ONCORE s Motorola VP/UT Oncore GPS receiver 1779 --enable-PALISADE s Palisade clock 1780 --enable-PCF + Conrad parallel port radio clock 1781 --enable-PST + PST/Traconex 1020 WWV/WWVH receiver 1782 --enable-RIPENCC - RIPENCC specific Trimble driver 1783 --enable-SHM s SHM clock attached thru shared memory 1784 --enable-SPECTRACOM + Spectracom 8170/Netclock/2 WWVB receiver 1785 --enable-TPRO s KSI/Odetics TPRO/S GPS receiver/IRIG interface 1786 --enable-TRUETIME s Kinemetrics/TrueTime receivers 1787 --enable-TT560 - TrueTime 560 IRIG-B decoder 1788 --enable-ULINK + Ultralink WWVB receiver 1789 --enable-TSYNCPCI s Spectracom TSYNC timing board 1790 --enable-WWV s WWV Audio receiver 1791 --enable-ZYFER + Zyfer GPStarplus receiver 1792 --enable-parse-clocks - include all suitable PARSE clocks: 1793 --enable-COMPUTIME s Diem Computime Radio Clock 1794 --enable-DCF7000 s ELV/DCF7000 clock 1795 --enable-HOPF6021 s HOPF 6021 clock 1796 --enable-MEINBERG s Meinberg clocks 1797 --enable-RAWDCF s DCF77 raw time code 1798 --enable-RCC8000 s RCC 8000 clock 1799 --enable-SCHMID s Schmid DCF77 clock 1800 --enable-TRIMTAIP s Trimble GPS receiver/TAIP protocol 1801 --enable-TRIMTSIP s Trimble GPS receiver/TSIP protocol 1802 --enable-WHARTON s WHARTON 400A Series clock 1803 --enable-VARITEXT s VARITEXT clock 1804 --enable-SEL240X s SEL240X clock 1805 --with-crypto + =openssl,libcrypto 1806 1807 --with-openssl-libdir + =/something/reasonable 1808 1809 --with-openssl-incdir + =/something/reasonable 1810 1811 --without-rpath s Disable auto-added -R linker paths 1812 1813 --enable-openssl-random Use OpenSSL's crypto random number functions, if 1814 available (default is yes) 1815 --enable-autokey + support NTP Autokey protocol 1816 --enable-kmem s read /dev/kmem for tick and/or tickadj 1817 --enable-accurate-adjtime 1818 s the adjtime() call is accurate 1819 --enable-tick=VALUE s force a value for 'tick' 1820 --enable-tickadj=VALUE s force a value for 'tickadj' 1821 --enable-simulator - build/install the NTPD simulator? 1822 --without-sntp - disable building sntp and sntp/tests 1823 --with-ntpsnmpd s Build ntpsnmpd MIB agent? 1824 --enable-slew-always s always slew the time 1825 --enable-step-slew s step and slew the time 1826 --enable-ntpdate-step s if ntpdate should step the time 1827 --enable-hourly-todr-sync 1828 s if we should sync TODR hourly 1829 --enable-kernel-fll-bug s if we should avoid a kernel FLL bug 1830 --enable-bug1243-fix + use unmodified autokey session keys 1831 --enable-bug3020-fix + Provide the explicit 127.0.0.0/8 martian filter 1832 --enable-bug3527-fix + provide correct mode7 fudgetime2 behavior 1833 --enable-irig-sawtooth s if we should enable the IRIG sawtooth filter 1834 --enable-nist - if we should enable the NIST lockclock scheme 1835 --enable-ntp-signd - Provide support for Samba's signing daemon, 1836 =/var/run/ntp_signd 1837 --enable-ipv6 s use IPv6? 1838 1839 --with-kame - =/usr/local/v6 1840 --enable-getifaddrs + Enable the use of getifaddrs() [[yes|no]]. 1841 --enable-saveconfig + saveconfig mechanism 1842 --enable-leap-smear - experimental leap smear code 1843 --enable-dynamic-interleave 1844 - dynamic interleave support 1845 --with-gtest Use the gtest framework (Default: if it's available) 1846 --enable-problem-tests + enable tests with undiagnosed problems 1847 1848 Some influential environment variables: 1849 CC C compiler command 1850 CFLAGS C compiler flags 1851 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1852 nonstandard directory <lib dir> 1853 LIBS libraries to pass to the linker, e.g. -l<library> 1854 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1855 you have headers in a nonstandard directory <include dir> 1856 CPP C preprocessor 1857 YACC The `Yet Another Compiler Compiler' implementation to use. 1858 Defaults to the first program found out of: `bison -y', `byacc', 1859 `yacc'. 1860 YFLAGS The list of arguments that will be passed by default to $YACC. 1861 This script will default YFLAGS to the empty string to avoid a 1862 default value of `-d' given by some make applications. 1863 LT_SYS_LIBRARY_PATH 1864 User-defined run-time library search path. 1865 1866 Use these variables to override the choices made by `configure' or to help 1867 it to find libraries and programs with nonstandard names/locations. 1868 1869 Report bugs to <http://bugs.ntp.org./>. 1870 ntp home page: <http://www.ntp.org./>. 1871 _ACEOF 1872 ac_status=$? 1873 fi 1874 1875 if test "$ac_init_help" = "recursive"; then 1876 # If there are subdirs, report their specific --help. 1877 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1878 test -d "$ac_dir" || 1879 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1880 continue 1881 ac_builddir=. 1882 1883 case "$ac_dir" in 1884 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1885 *) 1886 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1887 # A ".." for each directory in $ac_dir_suffix. 1888 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1889 case $ac_top_builddir_sub in 1890 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1891 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1892 esac ;; 1893 esac 1894 ac_abs_top_builddir=$ac_pwd 1895 ac_abs_builddir=$ac_pwd$ac_dir_suffix 1896 # for backward compatibility: 1897 ac_top_builddir=$ac_top_build_prefix 1898 1899 case $srcdir in 1900 .) # We are building in place. 1901 ac_srcdir=. 1902 ac_top_srcdir=$ac_top_builddir_sub 1903 ac_abs_top_srcdir=$ac_pwd ;; 1904 [\\/]* | ?:[\\/]* ) # Absolute name. 1905 ac_srcdir=$srcdir$ac_dir_suffix; 1906 ac_top_srcdir=$srcdir 1907 ac_abs_top_srcdir=$srcdir ;; 1908 *) # Relative name. 1909 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1910 ac_top_srcdir=$ac_top_build_prefix$srcdir 1911 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1912 esac 1913 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1914 1915 cd "$ac_dir" || { ac_status=$?; continue; } 1916 # Check for guested configure. 1917 if test -f "$ac_srcdir/configure.gnu"; then 1918 echo && 1919 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1920 elif test -f "$ac_srcdir/configure"; then 1921 echo && 1922 $SHELL "$ac_srcdir/configure" --help=recursive 1923 else 1924 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1925 fi || ac_status=$? 1926 cd "$ac_pwd" || { ac_status=$?; break; } 1927 done 1928 fi 1929 1930 test -n "$ac_init_help" && exit $ac_status 1931 if $ac_init_version; then 1932 cat <<\_ACEOF 1933 ntp configure 4.2.8p15 1934 generated by GNU Autoconf 2.69 1935 1936 Copyright (C) 2012 Free Software Foundation, Inc. 1937 This configure script is free software; the Free Software Foundation 1938 gives unlimited permission to copy, distribute and modify it. 1939 _ACEOF 1940 exit 1941 fi 1942 1943 ## ------------------------ ## 1944 ## Autoconf initialization. ## 1945 ## ------------------------ ## 1946 1947 # ac_fn_c_try_compile LINENO 1948 # -------------------------- 1949 # Try to compile conftest.$ac_ext, and return whether this succeeded. 1950 ac_fn_c_try_compile () 1951 { 1952 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1953 rm -f conftest.$ac_objext 1954 if { { ac_try="$ac_compile" 1955 case "(($ac_try" in 1956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1957 *) ac_try_echo=$ac_try;; 1958 esac 1959 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1960 $as_echo "$ac_try_echo"; } >&5 1961 (eval "$ac_compile") 2>conftest.err 1962 ac_status=$? 1963 if test -s conftest.err; then 1964 grep -v '^ *+' conftest.err >conftest.er1 1965 cat conftest.er1 >&5 1966 mv -f conftest.er1 conftest.err 1967 fi 1968 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1969 test $ac_status = 0; } && { 1970 test -z "$ac_c_werror_flag" || 1971 test ! -s conftest.err 1972 } && test -s conftest.$ac_objext; then : 1973 ac_retval=0 1974 else 1975 $as_echo "$as_me: failed program was:" >&5 1976 sed 's/^/| /' conftest.$ac_ext >&5 1977 1978 ac_retval=1 1979 fi 1980 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1981 as_fn_set_status $ac_retval 1982 1983 } # ac_fn_c_try_compile 1984 1985 # ac_fn_c_try_cpp LINENO 1986 # ---------------------- 1987 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1988 ac_fn_c_try_cpp () 1989 { 1990 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1991 if { { ac_try="$ac_cpp conftest.$ac_ext" 1992 case "(($ac_try" in 1993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1994 *) ac_try_echo=$ac_try;; 1995 esac 1996 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1997 $as_echo "$ac_try_echo"; } >&5 1998 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1999 ac_status=$? 2000 if test -s conftest.err; then 2001 grep -v '^ *+' conftest.err >conftest.er1 2002 cat conftest.er1 >&5 2003 mv -f conftest.er1 conftest.err 2004 fi 2005 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2006 test $ac_status = 0; } > conftest.i && { 2007 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 2008 test ! -s conftest.err 2009 }; then : 2010 ac_retval=0 2011 else 2012 $as_echo "$as_me: failed program was:" >&5 2013 sed 's/^/| /' conftest.$ac_ext >&5 2014 2015 ac_retval=1 2016 fi 2017 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2018 as_fn_set_status $ac_retval 2019 2020 } # ac_fn_c_try_cpp 2021 2022 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 2023 # ------------------------------------------------------- 2024 # Tests whether HEADER exists, giving a warning if it cannot be compiled using 2025 # the include files in INCLUDES and setting the cache variable VAR 2026 # accordingly. 2027 ac_fn_c_check_header_mongrel () 2028 { 2029 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2030 if eval \${$3+:} false; then : 2031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2032 $as_echo_n "checking for $2... " >&6; } 2033 if eval \${$3+:} false; then : 2034 $as_echo_n "(cached) " >&6 2035 fi 2036 eval ac_res=\$$3 2037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2038 $as_echo "$ac_res" >&6; } 2039 else 2040 # Is the header compilable? 2041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 2042 $as_echo_n "checking $2 usability... " >&6; } 2043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2044 /* end confdefs.h. */ 2045 $4 2046 #include <$2> 2047 _ACEOF 2048 if ac_fn_c_try_compile "$LINENO"; then : 2049 ac_header_compiler=yes 2050 else 2051 ac_header_compiler=no 2052 fi 2053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 2055 $as_echo "$ac_header_compiler" >&6; } 2056 2057 # Is the header present? 2058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 2059 $as_echo_n "checking $2 presence... " >&6; } 2060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2061 /* end confdefs.h. */ 2062 #include <$2> 2063 _ACEOF 2064 if ac_fn_c_try_cpp "$LINENO"; then : 2065 ac_header_preproc=yes 2066 else 2067 ac_header_preproc=no 2068 fi 2069 rm -f conftest.err conftest.i conftest.$ac_ext 2070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2071 $as_echo "$ac_header_preproc" >&6; } 2072 2073 # So? What about this header? 2074 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 2075 yes:no: ) 2076 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2077 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2078 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2079 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2080 ;; 2081 no:yes:* ) 2082 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2083 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2084 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2085 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2086 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2087 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2088 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2089 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2090 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2091 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2092 ( $as_echo "## ------------------------------------ ## 2093 ## Report this to http://bugs.ntp.org./ ## 2094 ## ------------------------------------ ##" 2095 ) | sed "s/^/$as_me: WARNING: /" >&2 2096 ;; 2097 esac 2098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2099 $as_echo_n "checking for $2... " >&6; } 2100 if eval \${$3+:} false; then : 2101 $as_echo_n "(cached) " >&6 2102 else 2103 eval "$3=\$ac_header_compiler" 2104 fi 2105 eval ac_res=\$$3 2106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2107 $as_echo "$ac_res" >&6; } 2108 fi 2109 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2110 2111 } # ac_fn_c_check_header_mongrel 2112 2113 # ac_fn_c_try_run LINENO 2114 # ---------------------- 2115 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 2116 # that executables *can* be run. 2117 ac_fn_c_try_run () 2118 { 2119 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2120 if { { ac_try="$ac_link" 2121 case "(($ac_try" in 2122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2123 *) ac_try_echo=$ac_try;; 2124 esac 2125 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2126 $as_echo "$ac_try_echo"; } >&5 2127 (eval "$ac_link") 2>&5 2128 ac_status=$? 2129 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2130 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 2131 { { case "(($ac_try" in 2132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2133 *) ac_try_echo=$ac_try;; 2134 esac 2135 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2136 $as_echo "$ac_try_echo"; } >&5 2137 (eval "$ac_try") 2>&5 2138 ac_status=$? 2139 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2140 test $ac_status = 0; }; }; then : 2141 ac_retval=0 2142 else 2143 $as_echo "$as_me: program exited with status $ac_status" >&5 2144 $as_echo "$as_me: failed program was:" >&5 2145 sed 's/^/| /' conftest.$ac_ext >&5 2146 2147 ac_retval=$ac_status 2148 fi 2149 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2150 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2151 as_fn_set_status $ac_retval 2152 2153 } # ac_fn_c_try_run 2154 2155 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 2156 # ------------------------------------------------------- 2157 # Tests whether HEADER exists and can be compiled using the include files in 2158 # INCLUDES, setting the cache variable VAR accordingly. 2159 ac_fn_c_check_header_compile () 2160 { 2161 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2163 $as_echo_n "checking for $2... " >&6; } 2164 if eval \${$3+:} false; then : 2165 $as_echo_n "(cached) " >&6 2166 else 2167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2168 /* end confdefs.h. */ 2169 $4 2170 #include <$2> 2171 _ACEOF 2172 if ac_fn_c_try_compile "$LINENO"; then : 2173 eval "$3=yes" 2174 else 2175 eval "$3=no" 2176 fi 2177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2178 fi 2179 eval ac_res=\$$3 2180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2181 $as_echo "$ac_res" >&6; } 2182 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2183 2184 } # ac_fn_c_check_header_compile 2185 2186 # ac_fn_c_try_link LINENO 2187 # ----------------------- 2188 # Try to link conftest.$ac_ext, and return whether this succeeded. 2189 ac_fn_c_try_link () 2190 { 2191 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2192 rm -f conftest.$ac_objext conftest$ac_exeext 2193 if { { ac_try="$ac_link" 2194 case "(($ac_try" in 2195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2196 *) ac_try_echo=$ac_try;; 2197 esac 2198 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2199 $as_echo "$ac_try_echo"; } >&5 2200 (eval "$ac_link") 2>conftest.err 2201 ac_status=$? 2202 if test -s conftest.err; then 2203 grep -v '^ *+' conftest.err >conftest.er1 2204 cat conftest.er1 >&5 2205 mv -f conftest.er1 conftest.err 2206 fi 2207 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2208 test $ac_status = 0; } && { 2209 test -z "$ac_c_werror_flag" || 2210 test ! -s conftest.err 2211 } && test -s conftest$ac_exeext && { 2212 test "$cross_compiling" = yes || 2213 test -x conftest$ac_exeext 2214 }; then : 2215 ac_retval=0 2216 else 2217 $as_echo "$as_me: failed program was:" >&5 2218 sed 's/^/| /' conftest.$ac_ext >&5 2219 2220 ac_retval=1 2221 fi 2222 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2223 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2224 # interfere with the next link command; also delete a directory that is 2225 # left behind by Apple's compiler. We do this before executing the actions. 2226 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2227 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2228 as_fn_set_status $ac_retval 2229 2230 } # ac_fn_c_try_link 2231 2232 # ac_fn_c_check_func LINENO FUNC VAR 2233 # ---------------------------------- 2234 # Tests whether FUNC exists, setting the cache variable VAR accordingly 2235 ac_fn_c_check_func () 2236 { 2237 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2239 $as_echo_n "checking for $2... " >&6; } 2240 if eval \${$3+:} false; then : 2241 $as_echo_n "(cached) " >&6 2242 else 2243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2244 /* end confdefs.h. */ 2245 /* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2246 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2247 #define $2 innocuous_$2 2248 2249 /* System header to define __stub macros and hopefully few prototypes, 2250 which can conflict with char $2 (); below. 2251 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2252 <limits.h> exists even on freestanding compilers. */ 2253 2254 #ifdef __STDC__ 2255 # include <limits.h> 2256 #else 2257 # include <assert.h> 2258 #endif 2259 2260 #undef $2 2261 2262 /* Override any GCC internal prototype to avoid an error. 2263 Use char because int might match the return type of a GCC 2264 builtin and then its argument prototype would still apply. */ 2265 #ifdef __cplusplus 2266 extern "C" 2267 #endif 2268 char $2 (); 2269 /* The GNU C library defines this for functions which it implements 2270 to always fail with ENOSYS. Some functions are actually named 2271 something starting with __ and the normal name is an alias. */ 2272 #if defined __stub_$2 || defined __stub___$2 2273 choke me 2274 #endif 2275 2276 int 2277 main () 2278 { 2279 return $2 (); 2280 ; 2281 return 0; 2282 } 2283 _ACEOF 2284 if ac_fn_c_try_link "$LINENO"; then : 2285 eval "$3=yes" 2286 else 2287 eval "$3=no" 2288 fi 2289 rm -f core conftest.err conftest.$ac_objext \ 2290 conftest$ac_exeext conftest.$ac_ext 2291 fi 2292 eval ac_res=\$$3 2293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2294 $as_echo "$ac_res" >&6; } 2295 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2296 2297 } # ac_fn_c_check_func 2298 2299 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2300 # ------------------------------------------- 2301 # Tests whether TYPE exists after having included INCLUDES, setting cache 2302 # variable VAR accordingly. 2303 ac_fn_c_check_type () 2304 { 2305 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2307 $as_echo_n "checking for $2... " >&6; } 2308 if eval \${$3+:} false; then : 2309 $as_echo_n "(cached) " >&6 2310 else 2311 eval "$3=no" 2312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2313 /* end confdefs.h. */ 2314 $4 2315 int 2316 main () 2317 { 2318 if (sizeof ($2)) 2319 return 0; 2320 ; 2321 return 0; 2322 } 2323 _ACEOF 2324 if ac_fn_c_try_compile "$LINENO"; then : 2325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2326 /* end confdefs.h. */ 2327 $4 2328 int 2329 main () 2330 { 2331 if (sizeof (($2))) 2332 return 0; 2333 ; 2334 return 0; 2335 } 2336 _ACEOF 2337 if ac_fn_c_try_compile "$LINENO"; then : 2338 2339 else 2340 eval "$3=yes" 2341 fi 2342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2343 fi 2344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2345 fi 2346 eval ac_res=\$$3 2347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2348 $as_echo "$ac_res" >&6; } 2349 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2350 2351 } # ac_fn_c_check_type 2352 2353 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 2354 # -------------------------------------------- 2355 # Tries to find the compile-time value of EXPR in a program that includes 2356 # INCLUDES, setting VAR accordingly. Returns whether the value could be 2357 # computed 2358 ac_fn_c_compute_int () 2359 { 2360 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2361 if test "$cross_compiling" = yes; then 2362 # Depending upon the size, compute the lo and hi bounds. 2363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2364 /* end confdefs.h. */ 2365 $4 2366 int 2367 main () 2368 { 2369 static int test_array [1 - 2 * !(($2) >= 0)]; 2370 test_array [0] = 0; 2371 return test_array [0]; 2372 2373 ; 2374 return 0; 2375 } 2376 _ACEOF 2377 if ac_fn_c_try_compile "$LINENO"; then : 2378 ac_lo=0 ac_mid=0 2379 while :; do 2380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2381 /* end confdefs.h. */ 2382 $4 2383 int 2384 main () 2385 { 2386 static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2387 test_array [0] = 0; 2388 return test_array [0]; 2389 2390 ; 2391 return 0; 2392 } 2393 _ACEOF 2394 if ac_fn_c_try_compile "$LINENO"; then : 2395 ac_hi=$ac_mid; break 2396 else 2397 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2398 if test $ac_lo -le $ac_mid; then 2399 ac_lo= ac_hi= 2400 break 2401 fi 2402 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2403 fi 2404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2405 done 2406 else 2407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2408 /* end confdefs.h. */ 2409 $4 2410 int 2411 main () 2412 { 2413 static int test_array [1 - 2 * !(($2) < 0)]; 2414 test_array [0] = 0; 2415 return test_array [0]; 2416 2417 ; 2418 return 0; 2419 } 2420 _ACEOF 2421 if ac_fn_c_try_compile "$LINENO"; then : 2422 ac_hi=-1 ac_mid=-1 2423 while :; do 2424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2425 /* end confdefs.h. */ 2426 $4 2427 int 2428 main () 2429 { 2430 static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2431 test_array [0] = 0; 2432 return test_array [0]; 2433 2434 ; 2435 return 0; 2436 } 2437 _ACEOF 2438 if ac_fn_c_try_compile "$LINENO"; then : 2439 ac_lo=$ac_mid; break 2440 else 2441 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2442 if test $ac_mid -le $ac_hi; then 2443 ac_lo= ac_hi= 2444 break 2445 fi 2446 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2447 fi 2448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2449 done 2450 else 2451 ac_lo= ac_hi= 2452 fi 2453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2454 fi 2455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2456 # Binary search between lo and hi bounds. 2457 while test "x$ac_lo" != "x$ac_hi"; do 2458 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2460 /* end confdefs.h. */ 2461 $4 2462 int 2463 main () 2464 { 2465 static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2466 test_array [0] = 0; 2467 return test_array [0]; 2468 2469 ; 2470 return 0; 2471 } 2472 _ACEOF 2473 if ac_fn_c_try_compile "$LINENO"; then : 2474 ac_hi=$ac_mid 2475 else 2476 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2477 fi 2478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2479 done 2480 case $ac_lo in #(( 2481 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2482 '') ac_retval=1 ;; 2483 esac 2484 else 2485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2486 /* end confdefs.h. */ 2487 $4 2488 static long int longval () { return $2; } 2489 static unsigned long int ulongval () { return $2; } 2490 #include <stdio.h> 2491 #include <stdlib.h> 2492 int 2493 main () 2494 { 2495 2496 FILE *f = fopen ("conftest.val", "w"); 2497 if (! f) 2498 return 1; 2499 if (($2) < 0) 2500 { 2501 long int i = longval (); 2502 if (i != ($2)) 2503 return 1; 2504 fprintf (f, "%ld", i); 2505 } 2506 else 2507 { 2508 unsigned long int i = ulongval (); 2509 if (i != ($2)) 2510 return 1; 2511 fprintf (f, "%lu", i); 2512 } 2513 /* Do not output a trailing newline, as this causes \r\n confusion 2514 on some platforms. */ 2515 return ferror (f) || fclose (f) != 0; 2516 2517 ; 2518 return 0; 2519 } 2520 _ACEOF 2521 if ac_fn_c_try_run "$LINENO"; then : 2522 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2523 else 2524 ac_retval=1 2525 fi 2526 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2527 conftest.$ac_objext conftest.beam conftest.$ac_ext 2528 rm -f conftest.val 2529 2530 fi 2531 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2532 as_fn_set_status $ac_retval 2533 2534 } # ac_fn_c_compute_int 2535 2536 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 2537 # --------------------------------------------- 2538 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 2539 # accordingly. 2540 ac_fn_c_check_decl () 2541 { 2542 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2543 as_decl_name=`echo $2|sed 's/ *(.*//'` 2544 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 2545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 2546 $as_echo_n "checking whether $as_decl_name is declared... " >&6; } 2547 if eval \${$3+:} false; then : 2548 $as_echo_n "(cached) " >&6 2549 else 2550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2551 /* end confdefs.h. */ 2552 $4 2553 int 2554 main () 2555 { 2556 #ifndef $as_decl_name 2557 #ifdef __cplusplus 2558 (void) $as_decl_use; 2559 #else 2560 (void) $as_decl_name; 2561 #endif 2562 #endif 2563 2564 ; 2565 return 0; 2566 } 2567 _ACEOF 2568 if ac_fn_c_try_compile "$LINENO"; then : 2569 eval "$3=yes" 2570 else 2571 eval "$3=no" 2572 fi 2573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2574 fi 2575 eval ac_res=\$$3 2576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2577 $as_echo "$ac_res" >&6; } 2578 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2579 2580 } # ac_fn_c_check_decl 2581 2582 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 2583 # ---------------------------------------------------- 2584 # Tries to find if the field MEMBER exists in type AGGR, after including 2585 # INCLUDES, setting cache variable VAR accordingly. 2586 ac_fn_c_check_member () 2587 { 2588 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 2590 $as_echo_n "checking for $2.$3... " >&6; } 2591 if eval \${$4+:} false; then : 2592 $as_echo_n "(cached) " >&6 2593 else 2594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2595 /* end confdefs.h. */ 2596 $5 2597 int 2598 main () 2599 { 2600 static $2 ac_aggr; 2601 if (ac_aggr.$3) 2602 return 0; 2603 ; 2604 return 0; 2605 } 2606 _ACEOF 2607 if ac_fn_c_try_compile "$LINENO"; then : 2608 eval "$4=yes" 2609 else 2610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2611 /* end confdefs.h. */ 2612 $5 2613 int 2614 main () 2615 { 2616 static $2 ac_aggr; 2617 if (sizeof ac_aggr.$3) 2618 return 0; 2619 ; 2620 return 0; 2621 } 2622 _ACEOF 2623 if ac_fn_c_try_compile "$LINENO"; then : 2624 eval "$4=yes" 2625 else 2626 eval "$4=no" 2627 fi 2628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2629 fi 2630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2631 fi 2632 eval ac_res=\$$4 2633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2634 $as_echo "$ac_res" >&6; } 2635 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2636 2637 } # ac_fn_c_check_member 2638 cat >config.log <<_ACEOF 2639 This file contains any messages produced by compilers while 2640 running configure, to aid debugging if configure makes a mistake. 2641 2642 It was created by ntp $as_me 4.2.8p15, which was 2643 generated by GNU Autoconf 2.69. Invocation command line was 2644 2645 $ $0 $@ 2646 2647 _ACEOF 2648 exec 5>>config.log 2649 { 2650 cat <<_ASUNAME 2651 ## --------- ## 2652 ## Platform. ## 2653 ## --------- ## 2654 2655 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2656 uname -m = `(uname -m) 2>/dev/null || echo unknown` 2657 uname -r = `(uname -r) 2>/dev/null || echo unknown` 2658 uname -s = `(uname -s) 2>/dev/null || echo unknown` 2659 uname -v = `(uname -v) 2>/dev/null || echo unknown` 2660 2661 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2662 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2663 2664 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2665 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2666 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2667 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2668 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2669 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2670 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2671 2672 _ASUNAME 2673 2674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2675 for as_dir in $PATH 2676 do 2677 IFS=$as_save_IFS 2678 test -z "$as_dir" && as_dir=. 2679 $as_echo "PATH: $as_dir" 2680 done 2681 IFS=$as_save_IFS 2682 2683 } >&5 2684 2685 cat >&5 <<_ACEOF 2686 2687 2688 ## ----------- ## 2689 ## Core tests. ## 2690 ## ----------- ## 2691 2692 _ACEOF 2693 2694 2695 # Keep a trace of the command line. 2696 # Strip out --no-create and --no-recursion so they do not pile up. 2697 # Strip out --silent because we don't want to record it for future runs. 2698 # Also quote any args containing shell meta-characters. 2699 # Make two passes to allow for proper duplicate-argument suppression. 2700 ac_configure_args= 2701 ac_configure_args0= 2702 ac_configure_args1= 2703 ac_must_keep_next=false 2704 for ac_pass in 1 2 2705 do 2706 for ac_arg 2707 do 2708 case $ac_arg in 2709 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2710 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2711 | -silent | --silent | --silen | --sile | --sil) 2712 continue ;; 2713 *\'*) 2714 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2715 esac 2716 case $ac_pass in 2717 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2718 2) 2719 as_fn_append ac_configure_args1 " '$ac_arg'" 2720 if test $ac_must_keep_next = true; then 2721 ac_must_keep_next=false # Got value, back to normal. 2722 else 2723 case $ac_arg in 2724 *=* | --config-cache | -C | -disable-* | --disable-* \ 2725 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2726 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2727 | -with-* | --with-* | -without-* | --without-* | --x) 2728 case "$ac_configure_args0 " in 2729 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2730 esac 2731 ;; 2732 -* ) ac_must_keep_next=true ;; 2733 esac 2734 fi 2735 as_fn_append ac_configure_args " '$ac_arg'" 2736 ;; 2737 esac 2738 done 2739 done 2740 { ac_configure_args0=; unset ac_configure_args0;} 2741 { ac_configure_args1=; unset ac_configure_args1;} 2742 2743 # When interrupted or exit'd, cleanup temporary files, and complete 2744 # config.log. We remove comments because anyway the quotes in there 2745 # would cause problems or look ugly. 2746 # WARNING: Use '\'' to represent an apostrophe within the trap. 2747 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2748 trap 'exit_status=$? 2749 # Save into config.log some information that might help in debugging. 2750 { 2751 echo 2752 2753 $as_echo "## ---------------- ## 2754 ## Cache variables. ## 2755 ## ---------------- ##" 2756 echo 2757 # The following way of writing the cache mishandles newlines in values, 2758 ( 2759 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2760 eval ac_val=\$$ac_var 2761 case $ac_val in #( 2762 *${as_nl}*) 2763 case $ac_var in #( 2764 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2765 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2766 esac 2767 case $ac_var in #( 2768 _ | IFS | as_nl) ;; #( 2769 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2770 *) { eval $ac_var=; unset $ac_var;} ;; 2771 esac ;; 2772 esac 2773 done 2774 (set) 2>&1 | 2775 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2776 *${as_nl}ac_space=\ *) 2777 sed -n \ 2778 "s/'\''/'\''\\\\'\'''\''/g; 2779 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2780 ;; #( 2781 *) 2782 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2783 ;; 2784 esac | 2785 sort 2786 ) 2787 echo 2788 2789 $as_echo "## ----------------- ## 2790 ## Output variables. ## 2791 ## ----------------- ##" 2792 echo 2793 for ac_var in $ac_subst_vars 2794 do 2795 eval ac_val=\$$ac_var 2796 case $ac_val in 2797 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2798 esac 2799 $as_echo "$ac_var='\''$ac_val'\''" 2800 done | sort 2801 echo 2802 2803 if test -n "$ac_subst_files"; then 2804 $as_echo "## ------------------- ## 2805 ## File substitutions. ## 2806 ## ------------------- ##" 2807 echo 2808 for ac_var in $ac_subst_files 2809 do 2810 eval ac_val=\$$ac_var 2811 case $ac_val in 2812 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2813 esac 2814 $as_echo "$ac_var='\''$ac_val'\''" 2815 done | sort 2816 echo 2817 fi 2818 2819 if test -s confdefs.h; then 2820 $as_echo "## ----------- ## 2821 ## confdefs.h. ## 2822 ## ----------- ##" 2823 echo 2824 cat confdefs.h 2825 echo 2826 fi 2827 test "$ac_signal" != 0 && 2828 $as_echo "$as_me: caught signal $ac_signal" 2829 $as_echo "$as_me: exit $exit_status" 2830 } >&5 2831 rm -f core *.core core.conftest.* && 2832 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2833 exit $exit_status 2834 ' 0 2835 for ac_signal in 1 2 13 15; do 2836 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2837 done 2838 ac_signal=0 2839 2840 # confdefs.h avoids OS command line length limits that DEFS can exceed. 2841 rm -f -r conftest* confdefs.h 2842 2843 $as_echo "/* confdefs.h */" > confdefs.h 2844 2845 # Predefined preprocessor variables. 2846 2847 cat >>confdefs.h <<_ACEOF 2848 #define PACKAGE_NAME "$PACKAGE_NAME" 2849 _ACEOF 2850 2851 cat >>confdefs.h <<_ACEOF 2852 #define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2853 _ACEOF 2854 2855 cat >>confdefs.h <<_ACEOF 2856 #define PACKAGE_VERSION "$PACKAGE_VERSION" 2857 _ACEOF 2858 2859 cat >>confdefs.h <<_ACEOF 2860 #define PACKAGE_STRING "$PACKAGE_STRING" 2861 _ACEOF 2862 2863 cat >>confdefs.h <<_ACEOF 2864 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2865 _ACEOF 2866 2867 cat >>confdefs.h <<_ACEOF 2868 #define PACKAGE_URL "$PACKAGE_URL" 2869 _ACEOF 2870 2871 2872 # Let the site file select an alternate cache file if it wants to. 2873 # Prefer an explicitly selected file to automatically selected ones. 2874 ac_site_file1=NONE 2875 ac_site_file2=NONE 2876 if test -n "$CONFIG_SITE"; then 2877 # We do not want a PATH search for config.site. 2878 case $CONFIG_SITE in #(( 2879 -*) ac_site_file1=./$CONFIG_SITE;; 2880 */*) ac_site_file1=$CONFIG_SITE;; 2881 *) ac_site_file1=./$CONFIG_SITE;; 2882 esac 2883 elif test "x$prefix" != xNONE; then 2884 ac_site_file1=$prefix/share/config.site 2885 ac_site_file2=$prefix/etc/config.site 2886 else 2887 ac_site_file1=$ac_default_prefix/share/config.site 2888 ac_site_file2=$ac_default_prefix/etc/config.site 2889 fi 2890 for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2891 do 2892 test "x$ac_site_file" = xNONE && continue 2893 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2894 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2895 $as_echo "$as_me: loading site script $ac_site_file" >&6;} 2896 sed 's/^/| /' "$ac_site_file" >&5 2897 . "$ac_site_file" \ 2898 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2899 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2900 as_fn_error $? "failed to load site script $ac_site_file 2901 See \`config.log' for more details" "$LINENO" 5; } 2902 fi 2903 done 2904 2905 if test -r "$cache_file"; then 2906 # Some versions of bash will fail to source /dev/null (special files 2907 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2908 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2909 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2910 $as_echo "$as_me: loading cache $cache_file" >&6;} 2911 case $cache_file in 2912 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2913 *) . "./$cache_file";; 2914 esac 2915 fi 2916 else 2917 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2918 $as_echo "$as_me: creating cache $cache_file" >&6;} 2919 >$cache_file 2920 fi 2921 2922 as_fn_append ac_header_list " stdarg.h" 2923 # Check that the precious variables saved in the cache have kept the same 2924 # value. 2925 ac_cache_corrupted=false 2926 for ac_var in $ac_precious_vars; do 2927 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2928 eval ac_new_set=\$ac_env_${ac_var}_set 2929 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2930 eval ac_new_val=\$ac_env_${ac_var}_value 2931 case $ac_old_set,$ac_new_set in 2932 set,) 2933 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2934 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2935 ac_cache_corrupted=: ;; 2936 ,set) 2937 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2938 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2939 ac_cache_corrupted=: ;; 2940 ,);; 2941 *) 2942 if test "x$ac_old_val" != "x$ac_new_val"; then 2943 # differences in whitespace do not lead to failure. 2944 ac_old_val_w=`echo x $ac_old_val` 2945 ac_new_val_w=`echo x $ac_new_val` 2946 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2947 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2948 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2949 ac_cache_corrupted=: 2950 else 2951 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2952 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2953 eval $ac_var=\$ac_old_val 2954 fi 2955 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2956 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2957 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2958 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2959 fi;; 2960 esac 2961 # Pass precious variables to config.status. 2962 if test "$ac_new_set" = set; then 2963 case $ac_new_val in 2964 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2965 *) ac_arg=$ac_var=$ac_new_val ;; 2966 esac 2967 case " $ac_configure_args " in 2968 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2969 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2970 esac 2971 fi 2972 done 2973 if $ac_cache_corrupted; then 2974 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2975 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2976 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2977 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2978 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2979 fi 2980 ## -------------------- ## 2981 ## Main body of script. ## 2982 ## -------------------- ## 2983 2984 ac_ext=c 2985 ac_cpp='$CPP $CPPFLAGS' 2986 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2987 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2988 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2989 2990 2991 2992 ac_aux_dir= 2993 for ac_dir in sntp/libevent/build-aux "$srcdir"/sntp/libevent/build-aux; do 2994 if test -f "$ac_dir/install-sh"; then 2995 ac_aux_dir=$ac_dir 2996 ac_install_sh="$ac_aux_dir/install-sh -c" 2997 break 2998 elif test -f "$ac_dir/install.sh"; then 2999 ac_aux_dir=$ac_dir 3000 ac_install_sh="$ac_aux_dir/install.sh -c" 3001 break 3002 elif test -f "$ac_dir/shtool"; then 3003 ac_aux_dir=$ac_dir 3004 ac_install_sh="$ac_aux_dir/shtool install -c" 3005 break 3006 fi 3007 done 3008 if test -z "$ac_aux_dir"; then 3009 as_fn_error $? "cannot find install-sh, install.sh, or shtool in sntp/libevent/build-aux \"$srcdir\"/sntp/libevent/build-aux" "$LINENO" 5 3010 fi 3011 3012 # These three variables are undocumented and unsupported, 3013 # and are intended to be withdrawn in a future Autoconf release. 3014 # They can cause serious problems if a builder's source tree is in a directory 3015 # whose full name contains unusual characters. 3016 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 3017 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 3018 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 3019 3020 3021 ac_ext=c 3022 ac_cpp='$CPP $CPPFLAGS' 3023 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3024 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3025 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3026 3027 3028 3029 3030 3031 3032 # Bump ntp_configure_cache_version for each change to configure.ac or 3033 # .m4 files which invalidates cached values from previous configure 3034 # runs. 3035 # 3036 # If the change affects cache variables used only by the main NTP 3037 # configure.ac, then only its version number should be bumped, while 3038 # the subdir configure.ac version numbers should be unchanged. The 3039 # same is true for a test/variable that is used only by one subdir 3040 # being changed incompatibly; only that subdir's cache version needs 3041 # bumping. 3042 # 3043 # If a change affects variables shared by all NTP configure scripts, 3044 # please bump the version numbers of each. If you are not sure, the 3045 # safe choice is to bump all on any cache-invalidating change. 3046 # 3047 # In order to avoid the risk of version stamp collision between -stable 3048 # and -dev branches, do not simply increment the version, instead use 3049 # the date YYYYMMDD optionally with -HHMM if there is more than one 3050 # bump in a day. 3051 3052 ntp_configure_cache_version=20120806 3053 3054 # When the cache version of config.cache and configure do not 3055 # match, NTP_CACHEVERSION will flush the cache. 3056 3057 3058 3059 ntp_cache_flush=1 3060 3061 case "$ntp_cv_main_cache_version" in 3062 $ntp_configure_cache_version) 3063 # same version, good 3064 ntp_cache_flush=0 3065 ;; 3066 '') 3067 # No cache, predates ntp_cv_main_cache_version, or is empty. 3068 case "$cache_file" in 3069 /dev/null) 3070 ntp_cache_flush=0 3071 ;; 3072 *) 3073 case "$NTP_CACHEVERSION_PARENT" in 3074 '') 3075 # Do not clear the cache immediately after it is created 3076 # empty as it is noisy. Differentiate a newly-created 3077 # config.cache from one predating the cache version 3078 # mechanism by looking for the first cached variable set 3079 # by Autoconf 3080 case "$ac_cv_path_install" in 3081 '') 3082 # empty config.cache file 3083 ntp_cache_flush=0 3084 esac 3085 ;; 3086 *) 3087 # Parent configure just created cache from empty, 3088 # flushing would be counterproductive. 3089 ntp_cache_flush=0; 3090 ;; 3091 esac 3092 esac 3093 ;; 3094 *) 3095 # configure cache version mismatches config.cache version 3096 ;; 3097 esac 3098 3099 case "$ntp_cache_flush" in 3100 1) 3101 c_version="${ntp_cv_main_cache_version:-(no version found)}" 3102 3103 # Do we flush all variables or exclude others' version stamps? 3104 3105 case "$NTP_CACHEVERSION_PARENT" in 3106 '') 3107 # Clear all *_cv_* variables including our child subdirs' 3108 # ntp_cv_*_cache_version variables. This prevents subdir 3109 # configure scripts from noticing a version mismatch just 3110 # after the top configure in the invocation cleared and 3111 # recreated the cache. 3112 3113 c_varname_list=`set | 3114 sed -n -e 's/=.*$//' \ 3115 -e '/_cv_/p' 3116 ` 3117 ;; 3118 *) 3119 # This is not the top configure this particular invocation. 3120 # Clear all *_cv_* variables sparing the version stamps 3121 # of other configure scripts, so we don't trigger 3122 # useless repeated clearings. 3123 3124 c_varname_list=`set | 3125 sed -n -e 's/=.*$//' \ 3126 -e '/ntp_cv_.*_cache_version/d' \ 3127 -e '/_cv_/p' 3128 ` 3129 esac 3130 3131 for c_varname in $c_varname_list 3132 do 3133 { eval $c_varname=; unset $c_varname; } 3134 done 3135 3136 { $as_echo "$as_me:${as_lineno-$LINENO}: $cache_file saved by another version, ignored." >&5 3137 $as_echo "$as_me: $cache_file saved by another version, ignored." >&6;} 3138 { $as_echo "$as_me:${as_lineno-$LINENO}: configure script cache version: $ntp_configure_cache_version" >&5 3139 $as_echo "$as_me: configure script cache version: $ntp_configure_cache_version" >&6;} 3140 { $as_echo "$as_me:${as_lineno-$LINENO}: $cache_file version: $c_version" >&5 3141 $as_echo "$as_me: $cache_file version: $c_version" >&6;} 3142 { c_varname=; unset c_varname;} 3143 { c_varname_list=; unset c_varname_list;} 3144 { c_version=; unset c_version;} 3145 esac 3146 3147 { ntp_cache_flush=; unset ntp_cache_flush;} 3148 3149 # save configure version in config.cache for next time 3150 ntp_cv_main_cache_version="$ntp_configure_cache_version" 3151 3152 # let any subdir configure.ac NTP_CACHEVERSION invocations 3153 # know they are not the top level. 3154 NTP_CACHEVERSION_PARENT='main' ; export NTP_CACHEVERSION_PARENT 3155 3156 3157 am__api_version='1.15' 3158 3159 # Find a good install program. We prefer a C program (faster), 3160 # so one script is as good as another. But avoid the broken or 3161 # incompatible versions: 3162 # SysV /etc/install, /usr/sbin/install 3163 # SunOS /usr/etc/install 3164 # IRIX /sbin/install 3165 # AIX /bin/install 3166 # AmigaOS /C/install, which installs bootblocks on floppy discs 3167 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3168 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 3169 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3170 # OS/2's system install, which has a completely different semantic 3171 # ./install, which can be erroneously created by make from ./install.sh. 3172 # Reject install programs that cannot install multiple files. 3173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 3174 $as_echo_n "checking for a BSD-compatible install... " >&6; } 3175 if test -z "$INSTALL"; then 3176 if ${ac_cv_path_install+:} false; then : 3177 $as_echo_n "(cached) " >&6 3178 else 3179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3180 for as_dir in $PATH 3181 do 3182 IFS=$as_save_IFS 3183 test -z "$as_dir" && as_dir=. 3184 # Account for people who put trailing slashes in PATH elements. 3185 case $as_dir/ in #(( 3186 ./ | .// | /[cC]/* | \ 3187 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3188 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 3189 /usr/ucb/* ) ;; 3190 *) 3191 # OSF1 and SCO ODT 3.0 have their own names for install. 3192 # Don't use installbsd from OSF since it installs stuff as root 3193 # by default. 3194 for ac_prog in ginstall scoinst install; do 3195 for ac_exec_ext in '' $ac_executable_extensions; do 3196 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 3197 if test $ac_prog = install && 3198 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3199 # AIX install. It has an incompatible calling convention. 3200 : 3201 elif test $ac_prog = install && 3202 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3203 # program-specific install script used by HP pwplus--don't use. 3204 : 3205 else 3206 rm -rf conftest.one conftest.two conftest.dir 3207 echo one > conftest.one 3208 echo two > conftest.two 3209 mkdir conftest.dir 3210 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 3211 test -s conftest.one && test -s conftest.two && 3212 test -s conftest.dir/conftest.one && 3213 test -s conftest.dir/conftest.two 3214 then 3215 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3216 break 3 3217 fi 3218 fi 3219 fi 3220 done 3221 done 3222 ;; 3223 esac 3224 3225 done 3226 IFS=$as_save_IFS 3227 3228 rm -rf conftest.one conftest.two conftest.dir 3229 3230 fi 3231 if test "${ac_cv_path_install+set}" = set; then 3232 INSTALL=$ac_cv_path_install 3233 else 3234 # As a last resort, use the slow shell script. Don't cache a 3235 # value for INSTALL within a source directory, because that will 3236 # break other packages using the cache if that directory is 3237 # removed, or if the value is a relative name. 3238 INSTALL=$ac_install_sh 3239 fi 3240 fi 3241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 3242 $as_echo "$INSTALL" >&6; } 3243 3244 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3245 # It thinks the first close brace ends the variable substitution. 3246 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3247 3248 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3249 3250 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3251 3252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 3253 $as_echo_n "checking whether build environment is sane... " >&6; } 3254 # Reject unsafe characters in $srcdir or the absolute working directory 3255 # name. Accept space and tab only in the latter. 3256 am_lf=' 3257 ' 3258 case `pwd` in 3259 *[\\\"\#\$\&\'\`$am_lf]*) 3260 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 3261 esac 3262 case $srcdir in 3263 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 3264 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 3265 esac 3266 3267 # Do 'set' in a subshell so we don't clobber the current shell's 3268 # arguments. Must try -L first in case configure is actually a 3269 # symlink; some systems play weird games with the mod time of symlinks 3270 # (eg FreeBSD returns the mod time of the symlink's containing 3271 # directory). 3272 if ( 3273 am_has_slept=no 3274 for am_try in 1 2; do 3275 echo "timestamp, slept: $am_has_slept" > conftest.file 3276 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 3277 if test "$*" = "X"; then 3278 # -L didn't work. 3279 set X `ls -t "$srcdir/configure" conftest.file` 3280 fi 3281 if test "$*" != "X $srcdir/configure conftest.file" \ 3282 && test "$*" != "X conftest.file $srcdir/configure"; then 3283 3284 # If neither matched, then we have a broken ls. This can happen 3285 # if, for instance, CONFIG_SHELL is bash and it inherits a 3286 # broken ls alias from the environment. This has actually 3287 # happened. Such a system could not be considered "sane". 3288 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 3289 alias in your environment" "$LINENO" 5 3290 fi 3291 if test "$2" = conftest.file || test $am_try -eq 2; then 3292 break 3293 fi 3294 # Just in case. 3295 sleep 1 3296 am_has_slept=yes 3297 done 3298 test "$2" = conftest.file 3299 ) 3300 then 3301 # Ok. 3302 : 3303 else 3304 as_fn_error $? "newly created file is older than distributed files! 3305 Check your system clock" "$LINENO" 5 3306 fi 3307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3308 $as_echo "yes" >&6; } 3309 # If we didn't sleep, we still need to ensure time stamps of config.status and 3310 # generated files are strictly newer. 3311 am_sleep_pid= 3312 if grep 'slept: no' conftest.file >/dev/null 2>&1; then 3313 ( sleep 1 ) & 3314 am_sleep_pid=$! 3315 fi 3316 3317 rm -f conftest.file 3318 3319 test "$program_prefix" != NONE && 3320 program_transform_name="s&^&$program_prefix&;$program_transform_name" 3321 # Use a double $ so make ignores it. 3322 test "$program_suffix" != NONE && 3323 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 3324 # Double any \ or $. 3325 # By default was `s,x,x', remove it if useless. 3326 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 3327 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 3328 3329 # Expand $ac_aux_dir to an absolute path. 3330 am_aux_dir=`cd "$ac_aux_dir" && pwd` 3331 3332 if test x"${MISSING+set}" != xset; then 3333 case $am_aux_dir in 3334 *\ * | *\ *) 3335 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 3336 *) 3337 MISSING="\${SHELL} $am_aux_dir/missing" ;; 3338 esac 3339 fi 3340 # Use eval to expand $SHELL 3341 if eval "$MISSING --is-lightweight"; then 3342 am_missing_run="$MISSING " 3343 else 3344 am_missing_run= 3345 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 3346 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 3347 fi 3348 3349 if test x"${install_sh+set}" != xset; then 3350 case $am_aux_dir in 3351 *\ * | *\ *) 3352 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 3353 *) 3354 install_sh="\${SHELL} $am_aux_dir/install-sh" 3355 esac 3356 fi 3357 3358 # Installed binaries are usually stripped using 'strip' when the user 3359 # run "make install-strip". However 'strip' might not be the right 3360 # tool to use in cross-compilation environments, therefore Automake 3361 # will honor the 'STRIP' environment variable to overrule this program. 3362 if test "$cross_compiling" != no; then 3363 if test -n "$ac_tool_prefix"; then 3364 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3365 set dummy ${ac_tool_prefix}strip; ac_word=$2 3366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3367 $as_echo_n "checking for $ac_word... " >&6; } 3368 if ${ac_cv_prog_STRIP+:} false; then : 3369 $as_echo_n "(cached) " >&6 3370 else 3371 if test -n "$STRIP"; then 3372 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3373 else 3374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3375 for as_dir in $PATH 3376 do 3377 IFS=$as_save_IFS 3378 test -z "$as_dir" && as_dir=. 3379 for ac_exec_ext in '' $ac_executable_extensions; do 3380 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3381 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3383 break 2 3384 fi 3385 done 3386 done 3387 IFS=$as_save_IFS 3388 3389 fi 3390 fi 3391 STRIP=$ac_cv_prog_STRIP 3392 if test -n "$STRIP"; then 3393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3394 $as_echo "$STRIP" >&6; } 3395 else 3396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3397 $as_echo "no" >&6; } 3398 fi 3399 3400 3401 fi 3402 if test -z "$ac_cv_prog_STRIP"; then 3403 ac_ct_STRIP=$STRIP 3404 # Extract the first word of "strip", so it can be a program name with args. 3405 set dummy strip; ac_word=$2 3406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3407 $as_echo_n "checking for $ac_word... " >&6; } 3408 if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 3409 $as_echo_n "(cached) " >&6 3410 else 3411 if test -n "$ac_ct_STRIP"; then 3412 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3413 else 3414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3415 for as_dir in $PATH 3416 do 3417 IFS=$as_save_IFS 3418 test -z "$as_dir" && as_dir=. 3419 for ac_exec_ext in '' $ac_executable_extensions; do 3420 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3421 ac_cv_prog_ac_ct_STRIP="strip" 3422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3423 break 2 3424 fi 3425 done 3426 done 3427 IFS=$as_save_IFS 3428 3429 fi 3430 fi 3431 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3432 if test -n "$ac_ct_STRIP"; then 3433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3434 $as_echo "$ac_ct_STRIP" >&6; } 3435 else 3436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3437 $as_echo "no" >&6; } 3438 fi 3439 3440 if test "x$ac_ct_STRIP" = x; then 3441 STRIP=":" 3442 else 3443 case $cross_compiling:$ac_tool_warned in 3444 yes:) 3445 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3446 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3447 ac_tool_warned=yes ;; 3448 esac 3449 STRIP=$ac_ct_STRIP 3450 fi 3451 else 3452 STRIP="$ac_cv_prog_STRIP" 3453 fi 3454 3455 fi 3456 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3457 3458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 3459 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 3460 if test -z "$MKDIR_P"; then 3461 if ${ac_cv_path_mkdir+:} false; then : 3462 $as_echo_n "(cached) " >&6 3463 else 3464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3465 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3466 do 3467 IFS=$as_save_IFS 3468 test -z "$as_dir" && as_dir=. 3469 for ac_prog in mkdir gmkdir; do 3470 for ac_exec_ext in '' $ac_executable_extensions; do 3471 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 3472 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 3473 'mkdir (GNU coreutils) '* | \ 3474 'mkdir (coreutils) '* | \ 3475 'mkdir (fileutils) '4.1*) 3476 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 3477 break 3;; 3478 esac 3479 done 3480 done 3481 done 3482 IFS=$as_save_IFS 3483 3484 fi 3485 3486 test -d ./--version && rmdir ./--version 3487 if test "${ac_cv_path_mkdir+set}" = set; then 3488 MKDIR_P="$ac_cv_path_mkdir -p" 3489 else 3490 # As a last resort, use the slow shell script. Don't cache a 3491 # value for MKDIR_P within a source directory, because that will 3492 # break other packages using the cache if that directory is 3493 # removed, or if the value is a relative name. 3494 MKDIR_P="$ac_install_sh -d" 3495 fi 3496 fi 3497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3498 $as_echo "$MKDIR_P" >&6; } 3499 3500 for ac_prog in gawk mawk nawk awk 3501 do 3502 # Extract the first word of "$ac_prog", so it can be a program name with args. 3503 set dummy $ac_prog; ac_word=$2 3504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3505 $as_echo_n "checking for $ac_word... " >&6; } 3506 if ${ac_cv_prog_AWK+:} false; then : 3507 $as_echo_n "(cached) " >&6 3508 else 3509 if test -n "$AWK"; then 3510 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3511 else 3512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3513 for as_dir in $PATH 3514 do 3515 IFS=$as_save_IFS 3516 test -z "$as_dir" && as_dir=. 3517 for ac_exec_ext in '' $ac_executable_extensions; do 3518 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3519 ac_cv_prog_AWK="$ac_prog" 3520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3521 break 2 3522 fi 3523 done 3524 done 3525 IFS=$as_save_IFS 3526 3527 fi 3528 fi 3529 AWK=$ac_cv_prog_AWK 3530 if test -n "$AWK"; then 3531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3532 $as_echo "$AWK" >&6; } 3533 else 3534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3535 $as_echo "no" >&6; } 3536 fi 3537 3538 3539 test -n "$AWK" && break 3540 done 3541 3542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3543 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3544 set x ${MAKE-make} 3545 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3546 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 3547 $as_echo_n "(cached) " >&6 3548 else 3549 cat >conftest.make <<\_ACEOF 3550 SHELL = /bin/sh 3551 all: 3552 @echo '@@@%%%=$(MAKE)=@@@%%%' 3553 _ACEOF 3554 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3555 case `${MAKE-make} -f conftest.make 2>/dev/null` in 3556 *@@@%%%=?*=@@@%%%*) 3557 eval ac_cv_prog_make_${ac_make}_set=yes;; 3558 *) 3559 eval ac_cv_prog_make_${ac_make}_set=no;; 3560 esac 3561 rm -f conftest.make 3562 fi 3563 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3565 $as_echo "yes" >&6; } 3566 SET_MAKE= 3567 else 3568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3569 $as_echo "no" >&6; } 3570 SET_MAKE="MAKE=${MAKE-make}" 3571 fi 3572 3573 rm -rf .tst 2>/dev/null 3574 mkdir .tst 2>/dev/null 3575 if test -d .tst; then 3576 am__leading_dot=. 3577 else 3578 am__leading_dot=_ 3579 fi 3580 rmdir .tst 2>/dev/null 3581 3582 # Check whether --enable-silent-rules was given. 3583 if test "${enable_silent_rules+set}" = set; then : 3584 enableval=$enable_silent_rules; 3585 fi 3586 3587 case $enable_silent_rules in # ((( 3588 yes) AM_DEFAULT_VERBOSITY=0;; 3589 no) AM_DEFAULT_VERBOSITY=1;; 3590 *) AM_DEFAULT_VERBOSITY=1;; 3591 esac 3592 am_make=${MAKE-make} 3593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3594 $as_echo_n "checking whether $am_make supports nested variables... " >&6; } 3595 if ${am_cv_make_support_nested_variables+:} false; then : 3596 $as_echo_n "(cached) " >&6 3597 else 3598 if $as_echo 'TRUE=$(BAR$(V)) 3599 BAR0=false 3600 BAR1=true 3601 V=1 3602 am__doit: 3603 @$(TRUE) 3604 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3605 am_cv_make_support_nested_variables=yes 3606 else 3607 am_cv_make_support_nested_variables=no 3608 fi 3609 fi 3610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3611 $as_echo "$am_cv_make_support_nested_variables" >&6; } 3612 if test $am_cv_make_support_nested_variables = yes; then 3613 AM_V='$(V)' 3614 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3615 else 3616 AM_V=$AM_DEFAULT_VERBOSITY 3617 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3618 fi 3619 AM_BACKSLASH='\' 3620 3621 if test "`cd $srcdir && pwd`" != "`pwd`"; then 3622 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3623 # is not polluted with repeated "-I." 3624 am__isrc=' -I$(srcdir)' 3625 # test to see if srcdir already configured 3626 if test -f $srcdir/config.status; then 3627 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3628 fi 3629 fi 3630 3631 # test whether we have cygpath 3632 if test -z "$CYGPATH_W"; then 3633 if (cygpath --version) >/dev/null 2>/dev/null; then 3634 CYGPATH_W='cygpath -w' 3635 else 3636 CYGPATH_W=echo 3637 fi 3638 fi 3639 3640 3641 # Define the identity of the package. 3642 PACKAGE='ntp' 3643 VERSION='4.2.8p15' 3644 3645 3646 cat >>confdefs.h <<_ACEOF 3647 #define PACKAGE "$PACKAGE" 3648 _ACEOF 3649 3650 3651 cat >>confdefs.h <<_ACEOF 3652 #define VERSION "$VERSION" 3653 _ACEOF 3654 3655 # Some tools Automake needs. 3656 3657 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3658 3659 3660 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3661 3662 3663 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3664 3665 3666 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3667 3668 3669 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3670 3671 # For better backward compatibility. To be removed once Automake 1.9.x 3672 # dies out for good. For more background, see: 3673 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3674 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3675 mkdir_p='$(MKDIR_P)' 3676 3677 # We need awk for the "check" target (and possibly the TAP driver). The 3678 # system "awk" is bad on some platforms. 3679 # Always define AMTAR for backward compatibility. Yes, it's still used 3680 # in the wild :-( We should find a proper way to deprecate it ... 3681 AMTAR='$${TAR-tar}' 3682 3683 3684 # We'll loop over all known methods to create a tar archive until one works. 3685 _am_tools='gnutar pax cpio none' 3686 3687 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3688 3689 3690 3691 3692 3693 3694 # POSIX will say in a future version that running "rm -f" with no argument 3695 # is OK; and we want to be able to make that assumption in our Makefile 3696 # recipes. So use an aggressive probe to check that the usage we want is 3697 # actually supported "in the wild" to an acceptable degree. 3698 # See automake bug#10828. 3699 # To make any issue more visible, cause the running configure to be aborted 3700 # by default if the 'rm' program in use doesn't match our expectations; the 3701 # user can still override this though. 3702 if rm -f && rm -fr && rm -rf; then : OK; else 3703 cat >&2 <<'END' 3704 Oops! 3705 3706 Your 'rm' program seems unable to run without file operands specified 3707 on the command line, even when the '-f' option is present. This is contrary 3708 to the behaviour of most rm programs out there, and not conforming with 3709 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3710 3711 Please tell bug-automake@gnu.org about your system, including the value 3712 of your $PATH and any error possibly output before this message. This 3713 can help us improve future automake versions. 3714 3715 END 3716 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3717 echo 'Configuration will proceed anyway, since you have set the' >&2 3718 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3719 echo >&2 3720 else 3721 cat >&2 <<'END' 3722 Aborting the configuration process, to ensure you take notice of the issue. 3723 3724 You can download and install GNU coreutils to get an 'rm' implementation 3725 that behaves properly: <http://www.gnu.org/software/coreutils/>. 3726 3727 If you want to complete the configuration process using your problematic 3728 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3729 to "yes", and re-run configure. 3730 3731 END 3732 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3733 fi 3734 fi 3735 3736 3737 # Check whether --enable-silent-rules was given. 3738 if test "${enable_silent_rules+set}" = set; then : 3739 enableval=$enable_silent_rules; 3740 fi 3741 3742 case $enable_silent_rules in # ((( 3743 yes) AM_DEFAULT_VERBOSITY=0;; 3744 no) AM_DEFAULT_VERBOSITY=1;; 3745 *) AM_DEFAULT_VERBOSITY=0;; 3746 esac 3747 am_make=${MAKE-make} 3748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3749 $as_echo_n "checking whether $am_make supports nested variables... " >&6; } 3750 if ${am_cv_make_support_nested_variables+:} false; then : 3751 $as_echo_n "(cached) " >&6 3752 else 3753 if $as_echo 'TRUE=$(BAR$(V)) 3754 BAR0=false 3755 BAR1=true 3756 V=1 3757 am__doit: 3758 @$(TRUE) 3759 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3760 am_cv_make_support_nested_variables=yes 3761 else 3762 am_cv_make_support_nested_variables=no 3763 fi 3764 fi 3765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3766 $as_echo "$am_cv_make_support_nested_variables" >&6; } 3767 if test $am_cv_make_support_nested_variables = yes; then 3768 AM_V='$(V)' 3769 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3770 else 3771 AM_V=$AM_DEFAULT_VERBOSITY 3772 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3773 fi 3774 AM_BACKSLASH='\' 3775 3776 3777 # Make sure we can run config.sub. 3778 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 3779 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 3780 3781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 3782 $as_echo_n "checking build system type... " >&6; } 3783 if ${ac_cv_build+:} false; then : 3784 $as_echo_n "(cached) " >&6 3785 else 3786 ac_build_alias=$build_alias 3787 test "x$ac_build_alias" = x && 3788 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3789 test "x$ac_build_alias" = x && 3790 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 3791 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3792 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 3793 3794 fi 3795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 3796 $as_echo "$ac_cv_build" >&6; } 3797 case $ac_cv_build in 3798 *-*-*) ;; 3799 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 3800 esac 3801 build=$ac_cv_build 3802 ac_save_IFS=$IFS; IFS='-' 3803 set x $ac_cv_build 3804 shift 3805 build_cpu=$1 3806 build_vendor=$2 3807 shift; shift 3808 # Remember, the first character of IFS is used to create $*, 3809 # except with old shells: 3810 build_os=$* 3811 IFS=$ac_save_IFS 3812 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3813 3814 3815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 3816 $as_echo_n "checking host system type... " >&6; } 3817 if ${ac_cv_host+:} false; then : 3818 $as_echo_n "(cached) " >&6 3819 else 3820 if test "x$host_alias" = x; then 3821 ac_cv_host=$ac_cv_build 3822 else 3823 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3824 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 3825 fi 3826 3827 fi 3828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 3829 $as_echo "$ac_cv_host" >&6; } 3830 case $ac_cv_host in 3831 *-*-*) ;; 3832 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 3833 esac 3834 host=$ac_cv_host 3835 ac_save_IFS=$IFS; IFS='-' 3836 set x $ac_cv_host 3837 shift 3838 host_cpu=$1 3839 host_vendor=$2 3840 shift; shift 3841 # Remember, the first character of IFS is used to create $*, 3842 # except with old shells: 3843 host_os=$* 3844 IFS=$ac_save_IFS 3845 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3846 3847 3848 3849 cat >>confdefs.h <<_ACEOF 3850 #define STR_SYSTEM "$host" 3851 _ACEOF 3852 3853 ac_config_headers="$ac_config_headers config.h" 3854 3855 3856 ntp_atom_ok=${ntp_atom_ok=no} 3857 ntp_oncore_ok=${ntp_oncore_ok=no} 3858 ntp_parse_ok=${ntp_parse_ok=no} 3859 ntp_ripe_ncc_ok=${ntp_parse_ok=no} 3860 ntp_jupiter_ok=${ntp_jupiter_ok=no} 3861 3862 DEPDIR="${am__leading_dot}deps" 3863 3864 ac_config_commands="$ac_config_commands depfiles" 3865 3866 3867 am_make=${MAKE-make} 3868 cat > confinc << 'END' 3869 am__doit: 3870 @echo this is the am__doit target 3871 .PHONY: am__doit 3872 END 3873 # If we don't find an include directive, just comment out the code. 3874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3875 $as_echo_n "checking for style of include used by $am_make... " >&6; } 3876 am__include="#" 3877 am__quote= 3878 _am_result=none 3879 # First try GNU make style include. 3880 echo "include confinc" > confmf 3881 # Ignore all kinds of additional output from 'make'. 3882 case `$am_make -s -f confmf 2> /dev/null` in #( 3883 *the\ am__doit\ target*) 3884 am__include=include 3885 am__quote= 3886 _am_result=GNU 3887 ;; 3888 esac 3889 # Now try BSD make style include. 3890 if test "$am__include" = "#"; then 3891 echo '.include "confinc"' > confmf 3892 case `$am_make -s -f confmf 2> /dev/null` in #( 3893 *the\ am__doit\ target*) 3894 am__include=.include 3895 am__quote="\"" 3896 _am_result=BSD 3897 ;; 3898 esac 3899 fi 3900 3901 3902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3903 $as_echo "$_am_result" >&6; } 3904 rm -f confinc confmf 3905 3906 # Check whether --enable-dependency-tracking was given. 3907 if test "${enable_dependency_tracking+set}" = set; then : 3908 enableval=$enable_dependency_tracking; 3909 fi 3910 3911 if test "x$enable_dependency_tracking" != xno; then 3912 am_depcomp="$ac_aux_dir/depcomp" 3913 AMDEPBACKSLASH='\' 3914 am__nodep='_no' 3915 fi 3916 if test "x$enable_dependency_tracking" != xno; then 3917 AMDEP_TRUE= 3918 AMDEP_FALSE='#' 3919 else 3920 AMDEP_TRUE='#' 3921 AMDEP_FALSE= 3922 fi 3923 3924 3925 3926 case "$build" in 3927 *-*-freebsd1?.*) 3928 cclist=cc 3929 ;; 3930 *) 3931 cclist="cc gcc" 3932 ;; 3933 esac 3934 3935 3936 #AC_USE_SYSTEM_EXTENSIONS 3937 3938 ac_ext=c 3939 ac_cpp='$CPP $CPPFLAGS' 3940 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3941 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3942 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3943 if test -n "$ac_tool_prefix"; then 3944 for ac_prog in $cclist 3945 do 3946 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3947 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3949 $as_echo_n "checking for $ac_word... " >&6; } 3950 if ${ac_cv_prog_CC+:} false; then : 3951 $as_echo_n "(cached) " >&6 3952 else 3953 if test -n "$CC"; then 3954 ac_cv_prog_CC="$CC" # Let the user override the test. 3955 else 3956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3957 for as_dir in $PATH 3958 do 3959 IFS=$as_save_IFS 3960 test -z "$as_dir" && as_dir=. 3961 for ac_exec_ext in '' $ac_executable_extensions; do 3962 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3963 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3965 break 2 3966 fi 3967 done 3968 done 3969 IFS=$as_save_IFS 3970 3971 fi 3972 fi 3973 CC=$ac_cv_prog_CC 3974 if test -n "$CC"; then 3975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3976 $as_echo "$CC" >&6; } 3977 else 3978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3979 $as_echo "no" >&6; } 3980 fi 3981 3982 3983 test -n "$CC" && break 3984 done 3985 fi 3986 if test -z "$CC"; then 3987 ac_ct_CC=$CC 3988 for ac_prog in $cclist 3989 do 3990 # Extract the first word of "$ac_prog", so it can be a program name with args. 3991 set dummy $ac_prog; ac_word=$2 3992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3993 $as_echo_n "checking for $ac_word... " >&6; } 3994 if ${ac_cv_prog_ac_ct_CC+:} false; then : 3995 $as_echo_n "(cached) " >&6 3996 else 3997 if test -n "$ac_ct_CC"; then 3998 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3999 else 4000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4001 for as_dir in $PATH 4002 do 4003 IFS=$as_save_IFS 4004 test -z "$as_dir" && as_dir=. 4005 for ac_exec_ext in '' $ac_executable_extensions; do 4006 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4007 ac_cv_prog_ac_ct_CC="$ac_prog" 4008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4009 break 2 4010 fi 4011 done 4012 done 4013 IFS=$as_save_IFS 4014 4015 fi 4016 fi 4017 ac_ct_CC=$ac_cv_prog_ac_ct_CC 4018 if test -n "$ac_ct_CC"; then 4019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4020 $as_echo "$ac_ct_CC" >&6; } 4021 else 4022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4023 $as_echo "no" >&6; } 4024 fi 4025 4026 4027 test -n "$ac_ct_CC" && break 4028 done 4029 4030 if test "x$ac_ct_CC" = x; then 4031 CC="" 4032 else 4033 case $cross_compiling:$ac_tool_warned in 4034 yes:) 4035 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4036 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4037 ac_tool_warned=yes ;; 4038 esac 4039 CC=$ac_ct_CC 4040 fi 4041 fi 4042 4043 4044 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4045 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4046 as_fn_error $? "no acceptable C compiler found in \$PATH 4047 See \`config.log' for more details" "$LINENO" 5; } 4048 4049 # Provide some information about the compiler. 4050 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 4051 set X $ac_compile 4052 ac_compiler=$2 4053 for ac_option in --version -v -V -qversion; do 4054 { { ac_try="$ac_compiler $ac_option >&5" 4055 case "(($ac_try" in 4056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4057 *) ac_try_echo=$ac_try;; 4058 esac 4059 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4060 $as_echo "$ac_try_echo"; } >&5 4061 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4062 ac_status=$? 4063 if test -s conftest.err; then 4064 sed '10a\ 4065 ... rest of stderr output deleted ... 4066 10q' conftest.err >conftest.er1 4067 cat conftest.er1 >&5 4068 fi 4069 rm -f conftest.er1 conftest.err 4070 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4071 test $ac_status = 0; } 4072 done 4073 4074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4075 /* end confdefs.h. */ 4076 4077 int 4078 main () 4079 { 4080 4081 ; 4082 return 0; 4083 } 4084 _ACEOF 4085 ac_clean_files_save=$ac_clean_files 4086 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 4087 # Try to create an executable without -o first, disregard a.out. 4088 # It will help us diagnose broken compilers, and finding out an intuition 4089 # of exeext. 4090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 4091 $as_echo_n "checking whether the C compiler works... " >&6; } 4092 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 4093 4094 # The possible output files: 4095 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 4096 4097 ac_rmfiles= 4098 for ac_file in $ac_files 4099 do 4100 case $ac_file in 4101 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4102 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 4103 esac 4104 done 4105 rm -f $ac_rmfiles 4106 4107 if { { ac_try="$ac_link_default" 4108 case "(($ac_try" in 4109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4110 *) ac_try_echo=$ac_try;; 4111 esac 4112 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4113 $as_echo "$ac_try_echo"; } >&5 4114 (eval "$ac_link_default") 2>&5 4115 ac_status=$? 4116 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4117 test $ac_status = 0; }; then : 4118 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 4119 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 4120 # in a Makefile. We should not override ac_cv_exeext if it was cached, 4121 # so that the user can short-circuit this test for compilers unknown to 4122 # Autoconf. 4123 for ac_file in $ac_files '' 4124 do 4125 test -f "$ac_file" || continue 4126 case $ac_file in 4127 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 4128 ;; 4129 [ab].out ) 4130 # We found the default executable, but exeext='' is most 4131 # certainly right. 4132 break;; 4133 *.* ) 4134 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 4135 then :; else 4136 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4137 fi 4138 # We set ac_cv_exeext here because the later test for it is not 4139 # safe: cross compilers may not add the suffix if given an `-o' 4140 # argument, so we may need to know it at that point already. 4141 # Even if this section looks crufty: it has the advantage of 4142 # actually working. 4143 break;; 4144 * ) 4145 break;; 4146 esac 4147 done 4148 test "$ac_cv_exeext" = no && ac_cv_exeext= 4149 4150 else 4151 ac_file='' 4152 fi 4153 if test -z "$ac_file"; then : 4154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4155 $as_echo "no" >&6; } 4156 $as_echo "$as_me: failed program was:" >&5 4157 sed 's/^/| /' conftest.$ac_ext >&5 4158 4159 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4160 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4161 as_fn_error 77 "C compiler cannot create executables 4162 See \`config.log' for more details" "$LINENO" 5; } 4163 else 4164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4165 $as_echo "yes" >&6; } 4166 fi 4167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 4168 $as_echo_n "checking for C compiler default output file name... " >&6; } 4169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 4170 $as_echo "$ac_file" >&6; } 4171 ac_exeext=$ac_cv_exeext 4172 4173 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 4174 ac_clean_files=$ac_clean_files_save 4175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 4176 $as_echo_n "checking for suffix of executables... " >&6; } 4177 if { { ac_try="$ac_link" 4178 case "(($ac_try" in 4179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4180 *) ac_try_echo=$ac_try;; 4181 esac 4182 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4183 $as_echo "$ac_try_echo"; } >&5 4184 (eval "$ac_link") 2>&5 4185 ac_status=$? 4186 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4187 test $ac_status = 0; }; then : 4188 # If both `conftest.exe' and `conftest' are `present' (well, observable) 4189 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 4190 # work properly (i.e., refer to `conftest.exe'), while it won't with 4191 # `rm'. 4192 for ac_file in conftest.exe conftest conftest.*; do 4193 test -f "$ac_file" || continue 4194 case $ac_file in 4195 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4196 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4197 break;; 4198 * ) break;; 4199 esac 4200 done 4201 else 4202 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4203 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4204 as_fn_error $? "cannot compute suffix of executables: cannot compile and link 4205 See \`config.log' for more details" "$LINENO" 5; } 4206 fi 4207 rm -f conftest conftest$ac_cv_exeext 4208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 4209 $as_echo "$ac_cv_exeext" >&6; } 4210 4211 rm -f conftest.$ac_ext 4212 EXEEXT=$ac_cv_exeext 4213 ac_exeext=$EXEEXT 4214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4215 /* end confdefs.h. */ 4216 #include <stdio.h> 4217 int 4218 main () 4219 { 4220 FILE *f = fopen ("conftest.out", "w"); 4221 return ferror (f) || fclose (f) != 0; 4222 4223 ; 4224 return 0; 4225 } 4226 _ACEOF 4227 ac_clean_files="$ac_clean_files conftest.out" 4228 # Check that the compiler produces executables we can run. If not, either 4229 # the compiler is broken, or we cross compile. 4230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4231 $as_echo_n "checking whether we are cross compiling... " >&6; } 4232 if test "$cross_compiling" != yes; then 4233 { { ac_try="$ac_link" 4234 case "(($ac_try" in 4235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4236 *) ac_try_echo=$ac_try;; 4237 esac 4238 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4239 $as_echo "$ac_try_echo"; } >&5 4240 (eval "$ac_link") 2>&5 4241 ac_status=$? 4242 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4243 test $ac_status = 0; } 4244 if { ac_try='./conftest$ac_cv_exeext' 4245 { { case "(($ac_try" in 4246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4247 *) ac_try_echo=$ac_try;; 4248 esac 4249 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4250 $as_echo "$ac_try_echo"; } >&5 4251 (eval "$ac_try") 2>&5 4252 ac_status=$? 4253 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4254 test $ac_status = 0; }; }; then 4255 cross_compiling=no 4256 else 4257 if test "$cross_compiling" = maybe; then 4258 cross_compiling=yes 4259 else 4260 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4261 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4262 as_fn_error $? "cannot run C compiled programs. 4263 If you meant to cross compile, use \`--host'. 4264 See \`config.log' for more details" "$LINENO" 5; } 4265 fi 4266 fi 4267 fi 4268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4269 $as_echo "$cross_compiling" >&6; } 4270 4271 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 4272 ac_clean_files=$ac_clean_files_save 4273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4274 $as_echo_n "checking for suffix of object files... " >&6; } 4275 if ${ac_cv_objext+:} false; then : 4276 $as_echo_n "(cached) " >&6 4277 else 4278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4279 /* end confdefs.h. */ 4280 4281 int 4282 main () 4283 { 4284 4285 ; 4286 return 0; 4287 } 4288 _ACEOF 4289 rm -f conftest.o conftest.obj 4290 if { { ac_try="$ac_compile" 4291 case "(($ac_try" in 4292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4293 *) ac_try_echo=$ac_try;; 4294 esac 4295 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4296 $as_echo "$ac_try_echo"; } >&5 4297 (eval "$ac_compile") 2>&5 4298 ac_status=$? 4299 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4300 test $ac_status = 0; }; then : 4301 for ac_file in conftest.o conftest.obj conftest.*; do 4302 test -f "$ac_file" || continue; 4303 case $ac_file in 4304 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4305 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4306 break;; 4307 esac 4308 done 4309 else 4310 $as_echo "$as_me: failed program was:" >&5 4311 sed 's/^/| /' conftest.$ac_ext >&5 4312 4313 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4314 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4315 as_fn_error $? "cannot compute suffix of object files: cannot compile 4316 See \`config.log' for more details" "$LINENO" 5; } 4317 fi 4318 rm -f conftest.$ac_cv_objext conftest.$ac_ext 4319 fi 4320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4321 $as_echo "$ac_cv_objext" >&6; } 4322 OBJEXT=$ac_cv_objext 4323 ac_objext=$OBJEXT 4324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4325 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4326 if ${ac_cv_c_compiler_gnu+:} false; then : 4327 $as_echo_n "(cached) " >&6 4328 else 4329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4330 /* end confdefs.h. */ 4331 4332 int 4333 main () 4334 { 4335 #ifndef __GNUC__ 4336 choke me 4337 #endif 4338 4339 ; 4340 return 0; 4341 } 4342 _ACEOF 4343 if ac_fn_c_try_compile "$LINENO"; then : 4344 ac_compiler_gnu=yes 4345 else 4346 ac_compiler_gnu=no 4347 fi 4348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4349 ac_cv_c_compiler_gnu=$ac_compiler_gnu 4350 4351 fi 4352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4353 $as_echo "$ac_cv_c_compiler_gnu" >&6; } 4354 if test $ac_compiler_gnu = yes; then 4355 GCC=yes 4356 else 4357 GCC= 4358 fi 4359 ac_test_CFLAGS=${CFLAGS+set} 4360 ac_save_CFLAGS=$CFLAGS 4361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4362 $as_echo_n "checking whether $CC accepts -g... " >&6; } 4363 if ${ac_cv_prog_cc_g+:} false; then : 4364 $as_echo_n "(cached) " >&6 4365 else 4366 ac_save_c_werror_flag=$ac_c_werror_flag 4367 ac_c_werror_flag=yes 4368 ac_cv_prog_cc_g=no 4369 CFLAGS="-g" 4370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4371 /* end confdefs.h. */ 4372 4373 int 4374 main () 4375 { 4376 4377 ; 4378 return 0; 4379 } 4380 _ACEOF 4381 if ac_fn_c_try_compile "$LINENO"; then : 4382 ac_cv_prog_cc_g=yes 4383 else 4384 CFLAGS="" 4385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4386 /* end confdefs.h. */ 4387 4388 int 4389 main () 4390 { 4391 4392 ; 4393 return 0; 4394 } 4395 _ACEOF 4396 if ac_fn_c_try_compile "$LINENO"; then : 4397 4398 else 4399 ac_c_werror_flag=$ac_save_c_werror_flag 4400 CFLAGS="-g" 4401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4402 /* end confdefs.h. */ 4403 4404 int 4405 main () 4406 { 4407 4408 ; 4409 return 0; 4410 } 4411 _ACEOF 4412 if ac_fn_c_try_compile "$LINENO"; then : 4413 ac_cv_prog_cc_g=yes 4414 fi 4415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4416 fi 4417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4418 fi 4419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4420 ac_c_werror_flag=$ac_save_c_werror_flag 4421 fi 4422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4423 $as_echo "$ac_cv_prog_cc_g" >&6; } 4424 if test "$ac_test_CFLAGS" = set; then 4425 CFLAGS=$ac_save_CFLAGS 4426 elif test $ac_cv_prog_cc_g = yes; then 4427 if test "$GCC" = yes; then 4428 CFLAGS="-g -O2" 4429 else 4430 CFLAGS="-g" 4431 fi 4432 else 4433 if test "$GCC" = yes; then 4434 CFLAGS="-O2" 4435 else 4436 CFLAGS= 4437 fi 4438 fi 4439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4440 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4441 if ${ac_cv_prog_cc_c89+:} false; then : 4442 $as_echo_n "(cached) " >&6 4443 else 4444 ac_cv_prog_cc_c89=no 4445 ac_save_CC=$CC 4446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4447 /* end confdefs.h. */ 4448 #include <stdarg.h> 4449 #include <stdio.h> 4450 struct stat; 4451 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4452 struct buf { int x; }; 4453 FILE * (*rcsopen) (struct buf *, struct stat *, int); 4454 static char *e (p, i) 4455 char **p; 4456 int i; 4457 { 4458 return p[i]; 4459 } 4460 static char *f (char * (*g) (char **, int), char **p, ...) 4461 { 4462 char *s; 4463 va_list v; 4464 va_start (v,p); 4465 s = g (p, va_arg (v,int)); 4466 va_end (v); 4467 return s; 4468 } 4469 4470 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4471 function prototypes and stuff, but not '\xHH' hex character constants. 4472 These don't provoke an error unfortunately, instead are silently treated 4473 as 'x'. The following induces an error, until -std is added to get 4474 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4475 array size at least. It's necessary to write '\x00'==0 to get something 4476 that's true only with -std. */ 4477 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4478 4479 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4480 inside strings and character constants. */ 4481 #define FOO(x) 'x' 4482 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4483 4484 int test (int i, double x); 4485 struct s1 {int (*f) (int a);}; 4486 struct s2 {int (*f) (double a);}; 4487 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4488 int argc; 4489 char **argv; 4490 int 4491 main () 4492 { 4493 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4494 ; 4495 return 0; 4496 } 4497 _ACEOF 4498 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4499 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4500 do 4501 CC="$ac_save_CC $ac_arg" 4502 if ac_fn_c_try_compile "$LINENO"; then : 4503 ac_cv_prog_cc_c89=$ac_arg 4504 fi 4505 rm -f core conftest.err conftest.$ac_objext 4506 test "x$ac_cv_prog_cc_c89" != "xno" && break 4507 done 4508 rm -f conftest.$ac_ext 4509 CC=$ac_save_CC 4510 4511 fi 4512 # AC_CACHE_VAL 4513 case "x$ac_cv_prog_cc_c89" in 4514 x) 4515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4516 $as_echo "none needed" >&6; } ;; 4517 xno) 4518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4519 $as_echo "unsupported" >&6; } ;; 4520 *) 4521 CC="$CC $ac_cv_prog_cc_c89" 4522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4523 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4524 esac 4525 if test "x$ac_cv_prog_cc_c89" != xno; then : 4526 4527 fi 4528 4529 ac_ext=c 4530 ac_cpp='$CPP $CPPFLAGS' 4531 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4532 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4533 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4534 4535 ac_ext=c 4536 ac_cpp='$CPP $CPPFLAGS' 4537 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4538 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4539 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4541 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 4542 if ${am_cv_prog_cc_c_o+:} false; then : 4543 $as_echo_n "(cached) " >&6 4544 else 4545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4546 /* end confdefs.h. */ 4547 4548 int 4549 main () 4550 { 4551 4552 ; 4553 return 0; 4554 } 4555 _ACEOF 4556 # Make sure it works both with $CC and with simple cc. 4557 # Following AC_PROG_CC_C_O, we do the test twice because some 4558 # compilers refuse to overwrite an existing .o file with -o, 4559 # though they will create one. 4560 am_cv_prog_cc_c_o=yes 4561 for am_i in 1 2; do 4562 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4563 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4564 ac_status=$? 4565 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4566 (exit $ac_status); } \ 4567 && test -f conftest2.$ac_objext; then 4568 : OK 4569 else 4570 am_cv_prog_cc_c_o=no 4571 break 4572 fi 4573 done 4574 rm -f core conftest* 4575 unset am_i 4576 fi 4577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4578 $as_echo "$am_cv_prog_cc_c_o" >&6; } 4579 if test "$am_cv_prog_cc_c_o" != yes; then 4580 # Losing compiler, so override with the script. 4581 # FIXME: It is wrong to rewrite CC. 4582 # But if we don't then we get into trouble of one sort or another. 4583 # A longer-term fix would be to have automake use am__CC in this case, 4584 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4585 CC="$am_aux_dir/compile $CC" 4586 fi 4587 ac_ext=c 4588 ac_cpp='$CPP $CPPFLAGS' 4589 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4590 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4591 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4592 4593 4594 depcc="$CC" am_compiler_list= 4595 4596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4597 $as_echo_n "checking dependency style of $depcc... " >&6; } 4598 if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4599 $as_echo_n "(cached) " >&6 4600 else 4601 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4602 # We make a subdir and do the tests there. Otherwise we can end up 4603 # making bogus files that we don't know about and never remove. For 4604 # instance it was reported that on HP-UX the gcc test will end up 4605 # making a dummy file named 'D' -- because '-MD' means "put the output 4606 # in D". 4607 rm -rf conftest.dir 4608 mkdir conftest.dir 4609 # Copy depcomp to subdir because otherwise we won't find it if we're 4610 # using a relative directory. 4611 cp "$am_depcomp" conftest.dir 4612 cd conftest.dir 4613 # We will build objects and dependencies in a subdirectory because 4614 # it helps to detect inapplicable dependency modes. For instance 4615 # both Tru64's cc and ICC support -MD to output dependencies as a 4616 # side effect of compilation, but ICC will put the dependencies in 4617 # the current directory while Tru64 will put them in the object 4618 # directory. 4619 mkdir sub 4620 4621 am_cv_CC_dependencies_compiler_type=none 4622 if test "$am_compiler_list" = ""; then 4623 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4624 fi 4625 am__universal=false 4626 case " $depcc " in #( 4627 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4628 esac 4629 4630 for depmode in $am_compiler_list; do 4631 # Setup a source with many dependencies, because some compilers 4632 # like to wrap large dependency lists on column 80 (with \), and 4633 # we should not choose a depcomp mode which is confused by this. 4634 # 4635 # We need to recreate these files for each test, as the compiler may 4636 # overwrite some of them when testing with obscure command lines. 4637 # This happens at least with the AIX C compiler. 4638 : > sub/conftest.c 4639 for i in 1 2 3 4 5 6; do 4640 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4641 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4642 # Solaris 10 /bin/sh. 4643 echo '/* dummy */' > sub/conftst$i.h 4644 done 4645 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4646 4647 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4648 # mode. It turns out that the SunPro C++ compiler does not properly 4649 # handle '-M -o', and we need to detect this. Also, some Intel 4650 # versions had trouble with output in subdirs. 4651 am__obj=sub/conftest.${OBJEXT-o} 4652 am__minus_obj="-o $am__obj" 4653 case $depmode in 4654 gcc) 4655 # This depmode causes a compiler race in universal mode. 4656 test "$am__universal" = false || continue 4657 ;; 4658 nosideeffect) 4659 # After this tag, mechanisms are not by side-effect, so they'll 4660 # only be used when explicitly requested. 4661 if test "x$enable_dependency_tracking" = xyes; then 4662 continue 4663 else 4664 break 4665 fi 4666 ;; 4667 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4668 # This compiler won't grok '-c -o', but also, the minuso test has 4669 # not run yet. These depmodes are late enough in the game, and 4670 # so weak that their functioning should not be impacted. 4671 am__obj=conftest.${OBJEXT-o} 4672 am__minus_obj= 4673 ;; 4674 none) break ;; 4675 esac 4676 if depmode=$depmode \ 4677 source=sub/conftest.c object=$am__obj \ 4678 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4679 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4680 >/dev/null 2>conftest.err && 4681 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4682 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4683 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4684 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4685 # icc doesn't choke on unknown options, it will just issue warnings 4686 # or remarks (even with -Werror). So we grep stderr for any message 4687 # that says an option was ignored or not supported. 4688 # When given -MP, icc 7.0 and 7.1 complain thusly: 4689 # icc: Command line warning: ignoring option '-M'; no argument required 4690 # The diagnosis changed in icc 8.0: 4691 # icc: Command line remark: option '-MP' not supported 4692 if (grep 'ignoring option' conftest.err || 4693 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4694 am_cv_CC_dependencies_compiler_type=$depmode 4695 break 4696 fi 4697 fi 4698 done 4699 4700 cd .. 4701 rm -rf conftest.dir 4702 else 4703 am_cv_CC_dependencies_compiler_type=none 4704 fi 4705 4706 fi 4707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4708 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4709 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4710 4711 if 4712 test "x$enable_dependency_tracking" != xno \ 4713 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4714 am__fastdepCC_TRUE= 4715 am__fastdepCC_FALSE='#' 4716 else 4717 am__fastdepCC_TRUE='#' 4718 am__fastdepCC_FALSE= 4719 fi 4720 4721 4722 4723 4724 4725 ac_ext=c 4726 ac_cpp='$CPP $CPPFLAGS' 4727 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4728 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4729 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4731 $as_echo_n "checking how to run the C preprocessor... " >&6; } 4732 # On Suns, sometimes $CPP names a directory. 4733 if test -n "$CPP" && test -d "$CPP"; then 4734 CPP= 4735 fi 4736 if test -z "$CPP"; then 4737 if ${ac_cv_prog_CPP+:} false; then : 4738 $as_echo_n "(cached) " >&6 4739 else 4740 # Double quotes because CPP needs to be expanded 4741 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4742 do 4743 ac_preproc_ok=false 4744 for ac_c_preproc_warn_flag in '' yes 4745 do 4746 # Use a header file that comes with gcc, so configuring glibc 4747 # with a fresh cross-compiler works. 4748 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4749 # <limits.h> exists even on freestanding compilers. 4750 # On the NeXT, cc -E runs the code through the compiler's parser, 4751 # not just through cpp. "Syntax error" is here to catch this case. 4752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4753 /* end confdefs.h. */ 4754 #ifdef __STDC__ 4755 # include <limits.h> 4756 #else 4757 # include <assert.h> 4758 #endif 4759 Syntax error 4760 _ACEOF 4761 if ac_fn_c_try_cpp "$LINENO"; then : 4762 4763 else 4764 # Broken: fails on valid input. 4765 continue 4766 fi 4767 rm -f conftest.err conftest.i conftest.$ac_ext 4768 4769 # OK, works on sane cases. Now check whether nonexistent headers 4770 # can be detected and how. 4771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4772 /* end confdefs.h. */ 4773 #include <ac_nonexistent.h> 4774 _ACEOF 4775 if ac_fn_c_try_cpp "$LINENO"; then : 4776 # Broken: success on invalid input. 4777 continue 4778 else 4779 # Passes both tests. 4780 ac_preproc_ok=: 4781 break 4782 fi 4783 rm -f conftest.err conftest.i conftest.$ac_ext 4784 4785 done 4786 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4787 rm -f conftest.i conftest.err conftest.$ac_ext 4788 if $ac_preproc_ok; then : 4789 break 4790 fi 4791 4792 done 4793 ac_cv_prog_CPP=$CPP 4794 4795 fi 4796 CPP=$ac_cv_prog_CPP 4797 else 4798 ac_cv_prog_CPP=$CPP 4799 fi 4800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4801 $as_echo "$CPP" >&6; } 4802 ac_preproc_ok=false 4803 for ac_c_preproc_warn_flag in '' yes 4804 do 4805 # Use a header file that comes with gcc, so configuring glibc 4806 # with a fresh cross-compiler works. 4807 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4808 # <limits.h> exists even on freestanding compilers. 4809 # On the NeXT, cc -E runs the code through the compiler's parser, 4810 # not just through cpp. "Syntax error" is here to catch this case. 4811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4812 /* end confdefs.h. */ 4813 #ifdef __STDC__ 4814 # include <limits.h> 4815 #else 4816 # include <assert.h> 4817 #endif 4818 Syntax error 4819 _ACEOF 4820 if ac_fn_c_try_cpp "$LINENO"; then : 4821 4822 else 4823 # Broken: fails on valid input. 4824 continue 4825 fi 4826 rm -f conftest.err conftest.i conftest.$ac_ext 4827 4828 # OK, works on sane cases. Now check whether nonexistent headers 4829 # can be detected and how. 4830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4831 /* end confdefs.h. */ 4832 #include <ac_nonexistent.h> 4833 _ACEOF 4834 if ac_fn_c_try_cpp "$LINENO"; then : 4835 # Broken: success on invalid input. 4836 continue 4837 else 4838 # Passes both tests. 4839 ac_preproc_ok=: 4840 break 4841 fi 4842 rm -f conftest.err conftest.i conftest.$ac_ext 4843 4844 done 4845 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4846 rm -f conftest.i conftest.err conftest.$ac_ext 4847 if $ac_preproc_ok; then : 4848 4849 else 4850 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4851 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4852 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4853 See \`config.log' for more details" "$LINENO" 5; } 4854 fi 4855 4856 ac_ext=c 4857 ac_cpp='$CPP $CPPFLAGS' 4858 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4859 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4860 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4861 4862 4863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4864 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4865 if ${ac_cv_path_GREP+:} false; then : 4866 $as_echo_n "(cached) " >&6 4867 else 4868 if test -z "$GREP"; then 4869 ac_path_GREP_found=false 4870 # Loop through the user's path and test for each of PROGNAME-LIST 4871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4872 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4873 do 4874 IFS=$as_save_IFS 4875 test -z "$as_dir" && as_dir=. 4876 for ac_prog in grep ggrep; do 4877 for ac_exec_ext in '' $ac_executable_extensions; do 4878 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4879 as_fn_executable_p "$ac_path_GREP" || continue 4880 # Check for GNU ac_path_GREP and select it if it is found. 4881 # Check for GNU $ac_path_GREP 4882 case `"$ac_path_GREP" --version 2>&1` in 4883 *GNU*) 4884 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4885 *) 4886 ac_count=0 4887 $as_echo_n 0123456789 >"conftest.in" 4888 while : 4889 do 4890 cat "conftest.in" "conftest.in" >"conftest.tmp" 4891 mv "conftest.tmp" "conftest.in" 4892 cp "conftest.in" "conftest.nl" 4893 $as_echo 'GREP' >> "conftest.nl" 4894 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4895 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4896 as_fn_arith $ac_count + 1 && ac_count=$as_val 4897 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4898 # Best one so far, save it but keep looking for a better one 4899 ac_cv_path_GREP="$ac_path_GREP" 4900 ac_path_GREP_max=$ac_count 4901 fi 4902 # 10*(2^10) chars as input seems more than enough 4903 test $ac_count -gt 10 && break 4904 done 4905 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4906 esac 4907 4908 $ac_path_GREP_found && break 3 4909 done 4910 done 4911 done 4912 IFS=$as_save_IFS 4913 if test -z "$ac_cv_path_GREP"; then 4914 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4915 fi 4916 else 4917 ac_cv_path_GREP=$GREP 4918 fi 4919 4920 fi 4921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4922 $as_echo "$ac_cv_path_GREP" >&6; } 4923 GREP="$ac_cv_path_GREP" 4924 4925 4926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4927 $as_echo_n "checking for egrep... " >&6; } 4928 if ${ac_cv_path_EGREP+:} false; then : 4929 $as_echo_n "(cached) " >&6 4930 else 4931 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4932 then ac_cv_path_EGREP="$GREP -E" 4933 else 4934 if test -z "$EGREP"; then 4935 ac_path_EGREP_found=false 4936 # Loop through the user's path and test for each of PROGNAME-LIST 4937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4938 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4939 do 4940 IFS=$as_save_IFS 4941 test -z "$as_dir" && as_dir=. 4942 for ac_prog in egrep; do 4943 for ac_exec_ext in '' $ac_executable_extensions; do 4944 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4945 as_fn_executable_p "$ac_path_EGREP" || continue 4946 # Check for GNU ac_path_EGREP and select it if it is found. 4947 # Check for GNU $ac_path_EGREP 4948 case `"$ac_path_EGREP" --version 2>&1` in 4949 *GNU*) 4950 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4951 *) 4952 ac_count=0 4953 $as_echo_n 0123456789 >"conftest.in" 4954 while : 4955 do 4956 cat "conftest.in" "conftest.in" >"conftest.tmp" 4957 mv "conftest.tmp" "conftest.in" 4958 cp "conftest.in" "conftest.nl" 4959 $as_echo 'EGREP' >> "conftest.nl" 4960 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4961 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4962 as_fn_arith $ac_count + 1 && ac_count=$as_val 4963 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4964 # Best one so far, save it but keep looking for a better one 4965 ac_cv_path_EGREP="$ac_path_EGREP" 4966 ac_path_EGREP_max=$ac_count 4967 fi 4968 # 10*(2^10) chars as input seems more than enough 4969 test $ac_count -gt 10 && break 4970 done 4971 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4972 esac 4973 4974 $ac_path_EGREP_found && break 3 4975 done 4976 done 4977 done 4978 IFS=$as_save_IFS 4979 if test -z "$ac_cv_path_EGREP"; then 4980 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4981 fi 4982 else 4983 ac_cv_path_EGREP=$EGREP 4984 fi 4985 4986 fi 4987 fi 4988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4989 $as_echo "$ac_cv_path_EGREP" >&6; } 4990 EGREP="$ac_cv_path_EGREP" 4991 4992 4993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4994 $as_echo_n "checking for ANSI C header files... " >&6; } 4995 if ${ac_cv_header_stdc+:} false; then : 4996 $as_echo_n "(cached) " >&6 4997 else 4998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4999 /* end confdefs.h. */ 5000 #include <stdlib.h> 5001 #include <stdarg.h> 5002 #include <string.h> 5003 #include <float.h> 5004 5005 int 5006 main () 5007 { 5008 5009 ; 5010 return 0; 5011 } 5012 _ACEOF 5013 if ac_fn_c_try_compile "$LINENO"; then : 5014 ac_cv_header_stdc=yes 5015 else 5016 ac_cv_header_stdc=no 5017 fi 5018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5019 5020 if test $ac_cv_header_stdc = yes; then 5021 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 5022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5023 /* end confdefs.h. */ 5024 #include <string.h> 5025 5026 _ACEOF 5027 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5028 $EGREP "memchr" >/dev/null 2>&1; then : 5029 5030 else 5031 ac_cv_header_stdc=no 5032 fi 5033 rm -f conftest* 5034 5035 fi 5036 5037 if test $ac_cv_header_stdc = yes; then 5038 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 5039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5040 /* end confdefs.h. */ 5041 #include <stdlib.h> 5042 5043 _ACEOF 5044 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5045 $EGREP "free" >/dev/null 2>&1; then : 5046 5047 else 5048 ac_cv_header_stdc=no 5049 fi 5050 rm -f conftest* 5051 5052 fi 5053 5054 if test $ac_cv_header_stdc = yes; then 5055 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 5056 if test "$cross_compiling" = yes; then : 5057 : 5058 else 5059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5060 /* end confdefs.h. */ 5061 #include <ctype.h> 5062 #include <stdlib.h> 5063 #if ((' ' & 0x0FF) == 0x020) 5064 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 5065 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 5066 #else 5067 # define ISLOWER(c) \ 5068 (('a' <= (c) && (c) <= 'i') \ 5069 || ('j' <= (c) && (c) <= 'r') \ 5070 || ('s' <= (c) && (c) <= 'z')) 5071 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 5072 #endif 5073 5074 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 5075 int 5076 main () 5077 { 5078 int i; 5079 for (i = 0; i < 256; i++) 5080 if (XOR (islower (i), ISLOWER (i)) 5081 || toupper (i) != TOUPPER (i)) 5082 return 2; 5083 return 0; 5084 } 5085 _ACEOF 5086 if ac_fn_c_try_run "$LINENO"; then : 5087 5088 else 5089 ac_cv_header_stdc=no 5090 fi 5091 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 5092 conftest.$ac_objext conftest.beam conftest.$ac_ext 5093 fi 5094 5095 fi 5096 fi 5097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 5098 $as_echo "$ac_cv_header_stdc" >&6; } 5099 if test $ac_cv_header_stdc = yes; then 5100 5101 $as_echo "#define STDC_HEADERS 1" >>confdefs.h 5102 5103 fi 5104 5105 # On IRIX 5.3, sys/types and inttypes.h are conflicting. 5106 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 5107 inttypes.h stdint.h unistd.h 5108 do : 5109 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 5110 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 5111 " 5112 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 5113 cat >>confdefs.h <<_ACEOF 5114 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 5115 _ACEOF 5116 5117 fi 5118 5119 done 5120 5121 5122 5123 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 5124 if test "x$ac_cv_header_minix_config_h" = xyes; then : 5125 MINIX=yes 5126 else 5127 MINIX= 5128 fi 5129 5130 5131 if test "$MINIX" = yes; then 5132 5133 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 5134 5135 5136 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 5137 5138 5139 $as_echo "#define _MINIX 1" >>confdefs.h 5140 5141 fi 5142 5143 5144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 5145 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 5146 if ${ac_cv_safe_to_define___extensions__+:} false; then : 5147 $as_echo_n "(cached) " >&6 5148 else 5149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5150 /* end confdefs.h. */ 5151 5152 # define __EXTENSIONS__ 1 5153 $ac_includes_default 5154 int 5155 main () 5156 { 5157 5158 ; 5159 return 0; 5160 } 5161 _ACEOF 5162 if ac_fn_c_try_compile "$LINENO"; then : 5163 ac_cv_safe_to_define___extensions__=yes 5164 else 5165 ac_cv_safe_to_define___extensions__=no 5166 fi 5167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5168 fi 5169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 5170 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 5171 test $ac_cv_safe_to_define___extensions__ = yes && 5172 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 5173 5174 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 5175 5176 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 5177 5178 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 5179 5180 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 5181 5182 5183 5184 case $ac_cv_prog_cc_stdc in #( 5185 no) : 5186 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #( 5187 *) : 5188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 5189 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 5190 if ${ac_cv_prog_cc_c99+:} false; then : 5191 $as_echo_n "(cached) " >&6 5192 else 5193 ac_cv_prog_cc_c99=no 5194 ac_save_CC=$CC 5195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5196 /* end confdefs.h. */ 5197 #include <stdarg.h> 5198 #include <stdbool.h> 5199 #include <stdlib.h> 5200 #include <wchar.h> 5201 #include <stdio.h> 5202 5203 // Check varargs macros. These examples are taken from C99 6.10.3.5. 5204 #define debug(...) fprintf (stderr, __VA_ARGS__) 5205 #define showlist(...) puts (#__VA_ARGS__) 5206 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 5207 static void 5208 test_varargs_macros (void) 5209 { 5210 int x = 1234; 5211 int y = 5678; 5212 debug ("Flag"); 5213 debug ("X = %d\n", x); 5214 showlist (The first, second, and third items.); 5215 report (x>y, "x is %d but y is %d", x, y); 5216 } 5217 5218 // Check long long types. 5219 #define BIG64 18446744073709551615ull 5220 #define BIG32 4294967295ul 5221 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 5222 #if !BIG_OK 5223 your preprocessor is broken; 5224 #endif 5225 #if BIG_OK 5226 #else 5227 your preprocessor is broken; 5228 #endif 5229 static long long int bignum = -9223372036854775807LL; 5230 static unsigned long long int ubignum = BIG64; 5231 5232 struct incomplete_array 5233 { 5234 int datasize; 5235 double data[]; 5236 }; 5237 5238 struct named_init { 5239 int number; 5240 const wchar_t *name; 5241 double average; 5242 }; 5243 5244 typedef const char *ccp; 5245 5246 static inline int 5247 test_restrict (ccp restrict text) 5248 { 5249 // See if C++-style comments work. 5250 // Iterate through items via the restricted pointer. 5251 // Also check for declarations in for loops. 5252 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 5253 continue; 5254 return 0; 5255 } 5256 5257 // Check varargs and va_copy. 5258 static void 5259 test_varargs (const char *format, ...) 5260 { 5261 va_list args; 5262 va_start (args, format); 5263 va_list args_copy; 5264 va_copy (args_copy, args); 5265 5266 const char *str; 5267 int number; 5268 float fnumber; 5269 5270 while (*format) 5271 { 5272 switch (*format++) 5273 { 5274 case 's': // string 5275 str = va_arg (args_copy, const char *); 5276 break; 5277 case 'd': // int 5278 number = va_arg (args_copy, int); 5279 break; 5280 case 'f': // float 5281 fnumber = va_arg (args_copy, double); 5282 break; 5283 default: 5284 break; 5285 } 5286 } 5287 va_end (args_copy); 5288 va_end (args); 5289 } 5290 5291 int 5292 main () 5293 { 5294 5295 // Check bool. 5296 _Bool success = false; 5297 5298 // Check restrict. 5299 if (test_restrict ("String literal") == 0) 5300 success = true; 5301 char *restrict newvar = "Another string"; 5302 5303 // Check varargs. 5304 test_varargs ("s, d' f .", "string", 65, 34.234); 5305 test_varargs_macros (); 5306 5307 // Check flexible array members. 5308 struct incomplete_array *ia = 5309 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 5310 ia->datasize = 10; 5311 for (int i = 0; i < ia->datasize; ++i) 5312 ia->data[i] = i * 1.234; 5313 5314 // Check named initializers. 5315 struct named_init ni = { 5316 .number = 34, 5317 .name = L"Test wide string", 5318 .average = 543.34343, 5319 }; 5320 5321 ni.number = 58; 5322 5323 int dynamic_array[ni.number]; 5324 dynamic_array[ni.number - 1] = 543; 5325 5326 // work around unused variable warnings 5327 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 5328 || dynamic_array[ni.number - 1] != 543); 5329 5330 ; 5331 return 0; 5332 } 5333 _ACEOF 5334 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 5335 do 5336 CC="$ac_save_CC $ac_arg" 5337 if ac_fn_c_try_compile "$LINENO"; then : 5338 ac_cv_prog_cc_c99=$ac_arg 5339 fi 5340 rm -f core conftest.err conftest.$ac_objext 5341 test "x$ac_cv_prog_cc_c99" != "xno" && break 5342 done 5343 rm -f conftest.$ac_ext 5344 CC=$ac_save_CC 5345 5346 fi 5347 # AC_CACHE_VAL 5348 case "x$ac_cv_prog_cc_c99" in 5349 x) 5350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5351 $as_echo "none needed" >&6; } ;; 5352 xno) 5353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5354 $as_echo "unsupported" >&6; } ;; 5355 *) 5356 CC="$CC $ac_cv_prog_cc_c99" 5357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 5358 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 5359 esac 5360 if test "x$ac_cv_prog_cc_c99" != xno; then : 5361 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 5362 else 5363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 5364 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 5365 if ${ac_cv_prog_cc_c89+:} false; then : 5366 $as_echo_n "(cached) " >&6 5367 else 5368 ac_cv_prog_cc_c89=no 5369 ac_save_CC=$CC 5370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5371 /* end confdefs.h. */ 5372 #include <stdarg.h> 5373 #include <stdio.h> 5374 struct stat; 5375 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 5376 struct buf { int x; }; 5377 FILE * (*rcsopen) (struct buf *, struct stat *, int); 5378 static char *e (p, i) 5379 char **p; 5380 int i; 5381 { 5382 return p[i]; 5383 } 5384 static char *f (char * (*g) (char **, int), char **p, ...) 5385 { 5386 char *s; 5387 va_list v; 5388 va_start (v,p); 5389 s = g (p, va_arg (v,int)); 5390 va_end (v); 5391 return s; 5392 } 5393 5394 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 5395 function prototypes and stuff, but not '\xHH' hex character constants. 5396 These don't provoke an error unfortunately, instead are silently treated 5397 as 'x'. The following induces an error, until -std is added to get 5398 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 5399 array size at least. It's necessary to write '\x00'==0 to get something 5400 that's true only with -std. */ 5401 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 5402 5403 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 5404 inside strings and character constants. */ 5405 #define FOO(x) 'x' 5406 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 5407 5408 int test (int i, double x); 5409 struct s1 {int (*f) (int a);}; 5410 struct s2 {int (*f) (double a);}; 5411 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 5412 int argc; 5413 char **argv; 5414 int 5415 main () 5416 { 5417 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 5418 ; 5419 return 0; 5420 } 5421 _ACEOF 5422 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 5423 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 5424 do 5425 CC="$ac_save_CC $ac_arg" 5426 if ac_fn_c_try_compile "$LINENO"; then : 5427 ac_cv_prog_cc_c89=$ac_arg 5428 fi 5429 rm -f core conftest.err conftest.$ac_objext 5430 test "x$ac_cv_prog_cc_c89" != "xno" && break 5431 done 5432 rm -f conftest.$ac_ext 5433 CC=$ac_save_CC 5434 5435 fi 5436 # AC_CACHE_VAL 5437 case "x$ac_cv_prog_cc_c89" in 5438 x) 5439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5440 $as_echo "none needed" >&6; } ;; 5441 xno) 5442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5443 $as_echo "unsupported" >&6; } ;; 5444 *) 5445 CC="$CC $ac_cv_prog_cc_c89" 5446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 5447 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 5448 esac 5449 if test "x$ac_cv_prog_cc_c89" != xno; then : 5450 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 5451 else 5452 ac_cv_prog_cc_stdc=no 5453 fi 5454 5455 fi 5456 ;; 5457 esac 5458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5 5459 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; } 5460 if ${ac_cv_prog_cc_stdc+:} false; then : 5461 $as_echo_n "(cached) " >&6 5462 fi 5463 5464 case $ac_cv_prog_cc_stdc in #( 5465 no) : 5466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5467 $as_echo "unsupported" >&6; } ;; #( 5468 '') : 5469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5470 $as_echo "none needed" >&6; } ;; #( 5471 *) : 5472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5 5473 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;; 5474 esac 5475 5476 5477 5478 5479 5480 # Ralf Wildenhues: With per-target flags we need CC_C_O 5481 # AM_PROG_CC_C_O supersets AC_PROG_CC_C_O 5482 5483 if test $ac_cv_c_compiler_gnu = yes; then 5484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5 5485 $as_echo_n "checking whether $CC needs -traditional... " >&6; } 5486 if ${ac_cv_prog_gcc_traditional+:} false; then : 5487 $as_echo_n "(cached) " >&6 5488 else 5489 ac_pattern="Autoconf.*'x'" 5490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5491 /* end confdefs.h. */ 5492 #include <sgtty.h> 5493 Autoconf TIOCGETP 5494 _ACEOF 5495 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5496 $EGREP "$ac_pattern" >/dev/null 2>&1; then : 5497 ac_cv_prog_gcc_traditional=yes 5498 else 5499 ac_cv_prog_gcc_traditional=no 5500 fi 5501 rm -f conftest* 5502 5503 5504 if test $ac_cv_prog_gcc_traditional = no; then 5505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5506 /* end confdefs.h. */ 5507 #include <termio.h> 5508 Autoconf TCGETA 5509 _ACEOF 5510 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5511 $EGREP "$ac_pattern" >/dev/null 2>&1; then : 5512 ac_cv_prog_gcc_traditional=yes 5513 fi 5514 rm -f conftest* 5515 5516 fi 5517 fi 5518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5 5519 $as_echo "$ac_cv_prog_gcc_traditional" >&6; } 5520 if test $ac_cv_prog_gcc_traditional = yes; then 5521 CC="$CC -traditional" 5522 fi 5523 fi 5524 5525 5526 5527 CFLAGS_NTP= 5528 CPPFLAGS_NTP= 5529 LDADD_NTP= 5530 LDFLAGS_NTP= 5531 5532 5533 5534 5535 5536 case "$ac_cv_prog_cc_c89" in 5537 no) 5538 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ANSI C89/ISO C90 is the minimum to compile NTP 5539 version 4.2.5 and higher." >&5 5540 $as_echo "$as_me: WARNING: ANSI C89/ISO C90 is the minimum to compile NTP 5541 version 4.2.5 and higher." >&2;} 5542 ;; 5543 esac 5544 5545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle #warning" >&5 5546 $as_echo_n "checking if $CC can handle #warning... " >&6; } 5547 if ${ntp_cv_cpp_warning+:} false; then : 5548 $as_echo_n "(cached) " >&6 5549 else 5550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5551 /* end confdefs.h. */ 5552 5553 int 5554 main () 5555 { 5556 #warning foo 5557 ; 5558 return 0; 5559 } 5560 _ACEOF 5561 if ac_fn_c_try_compile "$LINENO"; then : 5562 ntp_cv_cpp_warning=yes 5563 else 5564 ntp_cv_cpp_warning=no 5565 5566 fi 5567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5568 5569 fi 5570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_cpp_warning" >&5 5571 $as_echo "$ntp_cv_cpp_warning" >&6; } 5572 case "$ntp_cv_cpp_warning" in 5573 no) 5574 5575 $as_echo "#define NO_OPTION_NAME_WARNINGS 1" >>confdefs.h 5576 5577 esac 5578 5579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports __attribute__((...))" >&5 5580 $as_echo_n "checking if $CC supports __attribute__((...))... " >&6; } 5581 if ${ntp_cv_cc_attribute+:} false; then : 5582 $as_echo_n "(cached) " >&6 5583 else 5584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5585 /* end confdefs.h. */ 5586 5587 int 5588 main () 5589 { 5590 void foo(void) __attribute__((__noreturn__)); 5591 5592 ; 5593 return 0; 5594 } 5595 _ACEOF 5596 if ac_fn_c_try_compile "$LINENO"; then : 5597 ntp_cv_cc_attribute=yes 5598 else 5599 ntp_cv_cc_attribute=no 5600 5601 fi 5602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5603 5604 fi 5605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_cc_attribute" >&5 5606 $as_echo "$ntp_cv_cc_attribute" >&6; } 5607 case "$ntp_cv_cc_attribute" in 5608 yes) 5609 5610 $as_echo "#define HAVE___ATTRIBUTE__ /**/" >>confdefs.h 5611 5612 esac 5613 5614 5615 case "$GCC" in 5616 yes) 5617 SAVED_CFLAGS="$CFLAGS" 5618 CFLAGS="$CFLAGS -Wstrict-overflow" 5619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle -Wstrict-overflow" >&5 5620 $as_echo_n "checking if $CC can handle -Wstrict-overflow... " >&6; } 5621 if ${ntp_cv_gcc_Wstrict_overflow+:} false; then : 5622 $as_echo_n "(cached) " >&6 5623 else 5624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5625 /* end confdefs.h. */ 5626 5627 int 5628 main () 5629 { 5630 5631 ; 5632 return 0; 5633 } 5634 _ACEOF 5635 if ac_fn_c_try_compile "$LINENO"; then : 5636 ntp_cv_gcc_Wstrict_overflow=yes 5637 else 5638 ntp_cv_gcc_Wstrict_overflow=no 5639 5640 fi 5641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5642 5643 fi 5644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_gcc_Wstrict_overflow" >&5 5645 $as_echo "$ntp_cv_gcc_Wstrict_overflow" >&6; } 5646 # 5647 # $ntp_cv_gcc_Wstrict_overflow is tested later to add the 5648 # flag to CFLAGS. 5649 # 5650 CFLAGS="$SAVED_CFLAGS -Winit-self" 5651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle -Winit-self" >&5 5652 $as_echo_n "checking if $CC can handle -Winit-self... " >&6; } 5653 if ${ntp_cv_gcc_Winit_self+:} false; then : 5654 $as_echo_n "(cached) " >&6 5655 else 5656 5657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5658 /* end confdefs.h. */ 5659 5660 int 5661 main () 5662 { 5663 5664 ; 5665 return 0; 5666 } 5667 _ACEOF 5668 if ac_fn_c_try_compile "$LINENO"; then : 5669 ntp_cv_gcc_Winit_self=yes 5670 else 5671 ntp_cv_gcc_Winit_self=no 5672 5673 fi 5674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5675 5676 5677 fi 5678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_gcc_Winit_self" >&5 5679 $as_echo "$ntp_cv_gcc_Winit_self" >&6; } 5680 CFLAGS="$SAVED_CFLAGS" 5681 { SAVED_CFLAGS=; unset SAVED_CFLAGS;} 5682 # 5683 # $ntp_cv_gcc_Winit_self is tested later to add the 5684 # flag to CFLAGS_NTP. 5685 # 5686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker supports omitting unused code and data" >&5 5687 $as_echo_n "checking if linker supports omitting unused code and data... " >&6; } 5688 if ${ntp_cv_gc_sections_runs+:} false; then : 5689 $as_echo_n "(cached) " >&6 5690 else 5691 5692 origCFLAGS="$CFLAGS" 5693 CFLAGS="$CFLAGS -Wl,--gc-sections" 5694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5695 /* end confdefs.h. */ 5696 5697 #include <stdlib.h> 5698 #include <stdio.h> 5699 5700 int 5701 main () 5702 { 5703 5704 FILE * fpC; 5705 char buf[32]; 5706 size_t cch; 5707 int read_success_once; 5708 5709 fpC = fopen("conftest.c", "r"); 5710 if (NULL == fpC) 5711 exit(1); 5712 do { 5713 cch = fread(buf, sizeof(buf), 1, fpC); 5714 read_success_once |= (0 != cch); 5715 } while (0 != cch); 5716 if (!read_success_once) 5717 exit(2); 5718 if (!feof(fpC)) 5719 exit(3); 5720 if (0 != fclose(fpC)) 5721 exit(4); 5722 5723 exit(EXIT_SUCCESS); 5724 5725 5726 ; 5727 return 0; 5728 } 5729 _ACEOF 5730 if ac_fn_c_try_link "$LINENO"; then : 5731 5732 if test "X$cross_compiling" = "Xyes" || grep gc-sections conftest.err ; then 5733 ntp_cv_gc_sections_runs=no 5734 else 5735 ntp_cv_gc_sections_runs=no 5736 ./conftest >/dev/null 2>&1 && ntp_cv_gc_sections_runs=yes 5737 fi 5738 5739 else 5740 ntp_cv_gc_sections_runs=no 5741 5742 fi 5743 rm -f core conftest.err conftest.$ac_objext \ 5744 conftest$ac_exeext conftest.$ac_ext 5745 CFLAGS="$origCFLAGS" 5746 { origCFLAGS=; unset origCFLAGS;} 5747 5748 5749 fi 5750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_gc_sections_runs" >&5 5751 $as_echo "$ntp_cv_gc_sections_runs" >&6; } 5752 case "$ntp_cv_gc_sections_runs" in 5753 yes) 5754 LDADD_LIBNTP="-Wl,--gc-sections" 5755 CFLAGS_NTP="$CFLAGS_NTP