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