/contrib/ntp/configure
Shell | 16251 lines | 14747 code | 636 blank | 868 comment | 645 complexity | 05e1828a59a7c48b290a0618022a31b1 MD5 | raw file
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.65 for ntp 4.2.4p8. 4# 5# 6# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 7# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, 8# Inc. 9# 10# 11# This configure script is free software; the Free Software Foundation 12# gives unlimited permission to copy, distribute and modify it. 13## -------------------- ## 14## M4sh Initialization. ## 15## -------------------- ## 16 17# Be more Bourne compatible 18DUALCASE=1; export DUALCASE # for MKS sh 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32esac 33fi 34 35 36as_nl=' 37' 38export as_nl 39# Printing a long string crashes Solaris 7 /usr/bin/printf. 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43# Prefer a ksh shell builtin over an external printf program on Solaris, 44# but without wasting forks for bash or zsh. 45if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83 84# IFS 85# We need space, tab and new line, in precisely that order. Quoting is 86# there to prevent editors from complaining about space-tab. 87# (If _AS_PATH_WALK were called with IFS unset, it would disable word 88# splitting by setting IFS to empty value.) 89IFS=" "" $as_nl" 90 91# Find who we are. Look in the path if we contain no directory separator. 92case $0 in #(( 93 *[\\/]* ) as_myself=$0 ;; 94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 95for as_dir in $PATH 96do 97 IFS=$as_save_IFS 98 test -z "$as_dir" && as_dir=. 99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 100 done 101IFS=$as_save_IFS 102 103 ;; 104esac 105# We did not find ourselves, most probably we were run as `sh COMMAND' 106# in which case we are not to be found in the path. 107if test "x$as_myself" = x; then 108 as_myself=$0 109fi 110if test ! -f "$as_myself"; then 111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 112 exit 1 113fi 114 115# Unset variables that we do not need and which cause bugs (e.g. in 116# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 117# suppresses any "Segmentation fault" message there. '((' could 118# trigger a bug in pdksh 5.2.14. 119for as_var in BASH_ENV ENV MAIL MAILPATH 120do eval test x\${$as_var+set} = xset \ 121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 122done 123PS1='$ ' 124PS2='> ' 125PS4='+ ' 126 127# NLS nuisances. 128LC_ALL=C 129export LC_ALL 130LANGUAGE=C 131export LANGUAGE 132 133# CDPATH. 134(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 135 136if test "x$CONFIG_SHELL" = x; then 137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 138 emulate sh 139 NULLCMD=: 140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 141 # is contrary to our usage. Disable this feature. 142 alias -g '\${1+\"\$@\"}'='\"\$@\"' 143 setopt NO_GLOB_SUBST 144else 145 case \`(set -o) 2>/dev/null\` in #( 146 *posix*) : 147 set -o posix ;; #( 148 *) : 149 ;; 150esac 151fi 152" 153 as_required="as_fn_return () { (exit \$1); } 154as_fn_success () { as_fn_return 0; } 155as_fn_failure () { as_fn_return 1; } 156as_fn_ret_success () { return 0; } 157as_fn_ret_failure () { return 1; } 158 159exitcode=0 160as_fn_success || { exitcode=1; echo as_fn_success failed.; } 161as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 162as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 163as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 164if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 165 166else 167 exitcode=1; echo positional parameters were not saved. 168fi 169test x\$exitcode = x0 || exit 1" 170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 174test \$(( 1 + 1 )) = 2 || exit 1" 175 if (eval "$as_required") 2>/dev/null; then : 176 as_have_required=yes 177else 178 as_have_required=no 179fi 180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 181 182else 183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 184as_found=false 185for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 186do 187 IFS=$as_save_IFS 188 test -z "$as_dir" && as_dir=. 189 as_found=: 190 case $as_dir in #( 191 /*) 192 for as_base in sh bash ksh sh5; do 193 # Try only shells that exist, to save several forks. 194 as_shell=$as_dir/$as_base 195 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 196 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 197 CONFIG_SHELL=$as_shell as_have_required=yes 198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 199 break 2 200fi 201fi 202 done;; 203 esac 204 as_found=false 205done 206$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 208 CONFIG_SHELL=$SHELL as_have_required=yes 209fi; } 210IFS=$as_save_IFS 211 212 213 if test "x$CONFIG_SHELL" != x; then : 214 # We cannot yet assume a decent shell, so we have to provide a 215 # neutralization value for shells without unset; and this also 216 # works around shells that cannot unset nonexistent variables. 217 BASH_ENV=/dev/null 218 ENV=/dev/null 219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 220 export CONFIG_SHELL 221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 222fi 223 224 if test x$as_have_required = xno; then : 225 $as_echo "$0: This script requires a shell more modern than all" 226 $as_echo "$0: the shells that I found on your system." 227 if test x${ZSH_VERSION+set} = xset ; then 228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 229 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 230 else 231 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, 232$0: including any error possibly output before this 233$0: message. Then install a modern shell, or manually run 234$0: the script under such a shell if you do have one." 235 fi 236 exit 1 237fi 238fi 239fi 240SHELL=${CONFIG_SHELL-/bin/sh} 241export SHELL 242# Unset more variables known to interfere with behavior of common tools. 243CLICOLOR_FORCE= GREP_OPTIONS= 244unset CLICOLOR_FORCE GREP_OPTIONS 245 246## --------------------- ## 247## M4sh Shell Functions. ## 248## --------------------- ## 249# as_fn_unset VAR 250# --------------- 251# Portably unset VAR. 252as_fn_unset () 253{ 254 { eval $1=; unset $1;} 255} 256as_unset=as_fn_unset 257 258# as_fn_set_status STATUS 259# ----------------------- 260# Set $? to STATUS, without forking. 261as_fn_set_status () 262{ 263 return $1 264} # as_fn_set_status 265 266# as_fn_exit STATUS 267# ----------------- 268# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 269as_fn_exit () 270{ 271 set +e 272 as_fn_set_status $1 273 exit $1 274} # as_fn_exit 275 276# as_fn_mkdir_p 277# ------------- 278# Create "$as_dir" as a directory, including parents if necessary. 279as_fn_mkdir_p () 280{ 281 282 case $as_dir in #( 283 -*) as_dir=./$as_dir;; 284 esac 285 test -d "$as_dir" || eval $as_mkdir_p || { 286 as_dirs= 287 while :; do 288 case $as_dir in #( 289 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 290 *) as_qdir=$as_dir;; 291 esac 292 as_dirs="'$as_qdir' $as_dirs" 293 as_dir=`$as_dirname -- "$as_dir" || 294$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 295 X"$as_dir" : 'X\(//\)[^/]' \| \ 296 X"$as_dir" : 'X\(//\)$' \| \ 297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 298$as_echo X"$as_dir" | 299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 300 s//\1/ 301 q 302 } 303 /^X\(\/\/\)[^/].*/{ 304 s//\1/ 305 q 306 } 307 /^X\(\/\/\)$/{ 308 s//\1/ 309 q 310 } 311 /^X\(\/\).*/{ 312 s//\1/ 313 q 314 } 315 s/.*/./; q'` 316 test -d "$as_dir" && break 317 done 318 test -z "$as_dirs" || eval "mkdir $as_dirs" 319 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" 320 321 322} # as_fn_mkdir_p 323# as_fn_append VAR VALUE 324# ---------------------- 325# Append the text in VALUE to the end of the definition contained in VAR. Take 326# advantage of any shell optimizations that allow amortized linear growth over 327# repeated appends, instead of the typical quadratic growth present in naive 328# implementations. 329if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 330 eval 'as_fn_append () 331 { 332 eval $1+=\$2 333 }' 334else 335 as_fn_append () 336 { 337 eval $1=\$$1\$2 338 } 339fi # as_fn_append 340 341# as_fn_arith ARG... 342# ------------------ 343# Perform arithmetic evaluation on the ARGs, and store the result in the 344# global $as_val. Take advantage of shells that can avoid forks. The arguments 345# must be portable across $(()) and expr. 346if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 347 eval 'as_fn_arith () 348 { 349 as_val=$(( $* )) 350 }' 351else 352 as_fn_arith () 353 { 354 as_val=`expr "$@" || test $? -eq 1` 355 } 356fi # as_fn_arith 357 358 359# as_fn_error ERROR [LINENO LOG_FD] 360# --------------------------------- 361# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 362# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 363# script with status $?, using 1 if that was 0. 364as_fn_error () 365{ 366 as_status=$?; test $as_status -eq 0 && as_status=1 367 if test "$3"; then 368 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 370 fi 371 $as_echo "$as_me: error: $1" >&2 372 as_fn_exit $as_status 373} # as_fn_error 374 375if expr a : '\(a\)' >/dev/null 2>&1 && 376 test "X`expr 00001 : '.*\(...\)'`" = X001; then 377 as_expr=expr 378else 379 as_expr=false 380fi 381 382if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 383 as_basename=basename 384else 385 as_basename=false 386fi 387 388if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 389 as_dirname=dirname 390else 391 as_dirname=false 392fi 393 394as_me=`$as_basename -- "$0" || 395$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 396 X"$0" : 'X\(//\)$' \| \ 397 X"$0" : 'X\(/\)' \| . 2>/dev/null || 398$as_echo X/"$0" | 399 sed '/^.*\/\([^/][^/]*\)\/*$/{ 400 s//\1/ 401 q 402 } 403 /^X\/\(\/\/\)$/{ 404 s//\1/ 405 q 406 } 407 /^X\/\(\/\).*/{ 408 s//\1/ 409 q 410 } 411 s/.*/./; q'` 412 413# Avoid depending upon Character Ranges. 414as_cr_letters='abcdefghijklmnopqrstuvwxyz' 415as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 416as_cr_Letters=$as_cr_letters$as_cr_LETTERS 417as_cr_digits='0123456789' 418as_cr_alnum=$as_cr_Letters$as_cr_digits 419 420 421 as_lineno_1=$LINENO as_lineno_1a=$LINENO 422 as_lineno_2=$LINENO as_lineno_2a=$LINENO 423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 426 sed -n ' 427 p 428 /[$]LINENO/= 429 ' <$as_myself | 430 sed ' 431 s/[$]LINENO.*/&-/ 432 t lineno 433 b 434 :lineno 435 N 436 :loop 437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 438 t loop 439 s/-\n.*// 440 ' >$as_me.lineno && 441 chmod +x "$as_me.lineno" || 442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 443 444 # Don't try to exec as it changes $[0], causing all sort of problems 445 # (the dirname of $[0] is not the place where we might find the 446 # original and so on. Autoconf is especially sensitive to this). 447 . "./$as_me.lineno" 448 # Exit status is that of the last command. 449 exit 450} 451 452ECHO_C= ECHO_N= ECHO_T= 453case `echo -n x` in #((((( 454-n*) 455 case `echo 'xy\c'` in 456 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 457 xy) ECHO_C='\c';; 458 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 459 ECHO_T=' ';; 460 esac;; 461*) 462 ECHO_N='-n';; 463esac 464 465rm -f conf$$ conf$$.exe conf$$.file 466if test -d conf$$.dir; then 467 rm -f conf$$.dir/conf$$.file 468else 469 rm -f conf$$.dir 470 mkdir conf$$.dir 2>/dev/null 471fi 472if (echo >conf$$.file) 2>/dev/null; then 473 if ln -s conf$$.file conf$$ 2>/dev/null; then 474 as_ln_s='ln -s' 475 # ... but there are two gotchas: 476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 478 # In both cases, we have to default to `cp -p'. 479 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 480 as_ln_s='cp -p' 481 elif ln conf$$.file conf$$ 2>/dev/null; then 482 as_ln_s=ln 483 else 484 as_ln_s='cp -p' 485 fi 486else 487 as_ln_s='cp -p' 488fi 489rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 490rmdir conf$$.dir 2>/dev/null 491 492if mkdir -p . 2>/dev/null; then 493 as_mkdir_p='mkdir -p "$as_dir"' 494else 495 test -d ./-p && rmdir ./-p 496 as_mkdir_p=false 497fi 498 499if test -x / >/dev/null 2>&1; then 500 as_test_x='test -x' 501else 502 if ls -dL / >/dev/null 2>&1; then 503 as_ls_L_option=L 504 else 505 as_ls_L_option= 506 fi 507 as_test_x=' 508 eval sh -c '\'' 509 if test -d "$1"; then 510 test -d "$1/."; 511 else 512 case $1 in #( 513 -*)set "./$1";; 514 esac; 515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 516 ???[sx]*):;;*)false;;esac;fi 517 '\'' sh 518 ' 519fi 520as_executable_p=$as_test_x 521 522# Sed expression to map a string onto a valid CPP name. 523as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 524 525# Sed expression to map a string onto a valid variable name. 526as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 527 528 529 530# Check that we are running under the correct shell. 531SHELL=${CONFIG_SHELL-/bin/sh} 532 533case X$ECHO in 534X*--fallback-echo) 535 # Remove one level of quotation (which was required for Make). 536 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` 537 ;; 538esac 539 540echo=${ECHO-echo} 541if test "X$1" = X--no-reexec; then 542 # Discard the --no-reexec flag, and continue. 543 shift 544elif test "X$1" = X--fallback-echo; then 545 # Avoid inline document here, it may be left over 546 : 547elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then 548 # Yippee, $echo works! 549 : 550else 551 # Restart under the correct shell. 552 exec $SHELL "$0" --no-reexec ${1+"$@"} 553fi 554 555if test "X$1" = X--fallback-echo; then 556 # used as fallback echo 557 shift 558 cat <<EOF 559$* 560EOF 561 exit 0 562fi 563 564# The HP-UX ksh and POSIX shell print the target directory to stdout 565# if CDPATH is set. 566(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 567 568if test -z "$ECHO"; then 569if test "X${echo_test_string+set}" != Xset; then 570# find a string as large as possible, as long as the shell can cope with it 571 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do 572 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 573 if (echo_test_string=`eval $cmd`) 2>/dev/null && 574 echo_test_string=`eval $cmd` && 575 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null 576 then 577 break 578 fi 579 done 580fi 581 582if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 583 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 584 test "X$echo_testing_string" = "X$echo_test_string"; then 585 : 586else 587 # The Solaris, AIX, and Digital Unix default echo programs unquote 588 # backslashes. This makes it impossible to quote backslashes using 589 # echo "$something" | sed 's/\\/\\\\/g' 590 # 591 # So, first we look for a working echo in the user's PATH. 592 593 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 594 for dir in $PATH /usr/ucb; do 595 IFS="$lt_save_ifs" 596 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 597 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 598 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 599 test "X$echo_testing_string" = "X$echo_test_string"; then 600 echo="$dir/echo" 601 break 602 fi 603 done 604 IFS="$lt_save_ifs" 605 606 if test "X$echo" = Xecho; then 607 # We didn't find a better echo, so look for alternatives. 608 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && 609 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && 610 test "X$echo_testing_string" = "X$echo_test_string"; then 611 # This shell has a builtin print -r that does the trick. 612 echo='print -r' 613 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && 614 test "X$CONFIG_SHELL" != X/bin/ksh; then 615 # If we have ksh, try running configure again with it. 616 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 617 export ORIGINAL_CONFIG_SHELL 618 CONFIG_SHELL=/bin/ksh 619 export CONFIG_SHELL 620 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} 621 else 622 # Try using printf. 623 echo='printf %s\n' 624 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 625 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 626 test "X$echo_testing_string" = "X$echo_test_string"; then 627 # Cool, printf works 628 : 629 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 630 test "X$echo_testing_string" = 'X\t' && 631 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 632 test "X$echo_testing_string" = "X$echo_test_string"; then 633 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 634 export CONFIG_SHELL 635 SHELL="$CONFIG_SHELL" 636 export SHELL 637 echo="$CONFIG_SHELL $0 --fallback-echo" 638 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 639 test "X$echo_testing_string" = 'X\t' && 640 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 641 test "X$echo_testing_string" = "X$echo_test_string"; then 642 echo="$CONFIG_SHELL $0 --fallback-echo" 643 else 644 # maybe with a smaller string... 645 prev=: 646 647 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do 648 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null 649 then 650 break 651 fi 652 prev="$cmd" 653 done 654 655 if test "$prev" != 'sed 50q "$0"'; then 656 echo_test_string=`eval $prev` 657 export echo_test_string 658 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} 659 else 660 # Oops. We lost completely, so just stick with echo. 661 echo=echo 662 fi 663 fi 664 fi 665 fi 666fi 667fi 668 669# Copy echo and quote the copy suitably for passing to libtool from 670# the Makefile, instead of quoting the original, which is used later. 671ECHO=$echo 672if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then 673 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" 674fi 675 676 677 678 679test -n "$DJDIR" || exec 7<&0 </dev/null 680exec 6>&1 681 682# Name of the host. 683# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 684# so uname gets run too. 685ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 686 687# 688# Initializations. 689# 690ac_default_prefix=/usr/local 691ac_clean_files= 692ac_config_libobj_dir=. 693LIBOBJS= 694cross_compiling=no 695subdirs= 696MFLAGS= 697MAKEFLAGS= 698 699# Identity of this package. 700PACKAGE_NAME='ntp' 701PACKAGE_TARNAME='ntp' 702PACKAGE_VERSION='4.2.4p8' 703PACKAGE_STRING='ntp 4.2.4p8' 704PACKAGE_BUGREPORT='' 705PACKAGE_URL='' 706 707# Factoring default headers for most tests. 708ac_includes_default="\ 709#include <stdio.h> 710#ifdef HAVE_SYS_TYPES_H 711# include <sys/types.h> 712#endif 713#ifdef HAVE_SYS_STAT_H 714# include <sys/stat.h> 715#endif 716#ifdef STDC_HEADERS 717# include <stdlib.h> 718# include <stddef.h> 719#else 720# ifdef HAVE_STDLIB_H 721# include <stdlib.h> 722# endif 723#endif 724#ifdef HAVE_STRING_H 725# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 726# include <memory.h> 727# endif 728# include <string.h> 729#endif 730#ifdef HAVE_STRINGS_H 731# include <strings.h> 732#endif 733#ifdef HAVE_INTTYPES_H 734# include <inttypes.h> 735#endif 736#ifdef HAVE_STDINT_H 737# include <stdint.h> 738#endif 739#ifdef HAVE_UNISTD_H 740# include <unistd.h> 741#endif" 742 743enable_option_checking=no 744ac_subst_vars='am__EXEEXT_FALSE 745am__EXEEXT_TRUE 746LTLIBOBJS 747LIBOBJS 748LSCF 749MAKE_NTPDSIM 750MAKE_LIBNTPSIM 751MAKE_TIMETRIM 752MAKE_TICKADJ 753MAKE_NTPTIME 754MAKE_ADJTIMED 755CLKTEST 756CHUTEST 757PROPDELAY 758MAKE_PARSEKMODULE 759DCFD 760TESTDCF 761MAKE_CHECK_LAYOUT 762EF_LIBS 763EF_PROGS 764LCRYPTO 765OPENSSL_LIB 766OPENSSL_INC 767OPENSSL 768MAKE_CHECK_Y2K 769MAKE_LIBPARSE_KERNEL 770MAKE_LIBPARSE 771LIBPARSE 772HAVE_INLINE 773ANSI2KNR 774U 775READLINE_LIBS 776PATH_PERL 777PATH_SH 778LIBTOOL 779RANLIB 780AR 781ECHO 782LN_S 783ARLIB_DIR 784subdirs 785BINSUBDIR 786LIBOPTS_CFLAGS 787LIBOPTS_LDADD 788NEED_LIBOPTS_FALSE 789NEED_LIBOPTS_TRUE 790INSTALL_LIBOPTS_FALSE 791INSTALL_LIBOPTS_TRUE 792LIBOPTS_DIR 793EGREP 794GREP 795CPP 796am__fastdepCC_FALSE 797am__fastdepCC_TRUE 798CCDEPMODE 799AMDEPBACKSLASH 800AMDEP_FALSE 801AMDEP_TRUE 802am__quote 803am__include 804DEPDIR 805OBJEXT 806EXEEXT 807ac_ct_CC 808CPPFLAGS 809LDFLAGS 810CFLAGS 811CC 812host_os 813host_vendor 814host_cpu 815host 816build_os 817build_vendor 818build_cpu 819build 820am__untar 821am__tar 822AMTAR 823am__leading_dot 824SET_MAKE 825AWK 826mkdir_p 827MKDIR_P 828INSTALL_STRIP_PROGRAM 829STRIP 830install_sh 831MAKEINFO 832AUTOHEADER 833AUTOMAKE 834AUTOCONF 835ACLOCAL 836VERSION 837PACKAGE 838CYGPATH_W 839am__isrc 840INSTALL_DATA 841INSTALL_SCRIPT 842INSTALL_PROGRAM 843target_alias 844host_alias 845build_alias 846LIBS 847ECHO_T 848ECHO_N 849ECHO_C 850DEFS 851mandir 852localedir 853libdir 854psdir 855pdfdir 856dvidir 857htmldir 858infodir 859docdir 860oldincludedir 861includedir 862localstatedir 863sharedstatedir 864sysconfdir 865datadir 866datarootdir 867libexecdir 868sbindir 869bindir 870program_transform_name 871prefix 872exec_prefix 873PACKAGE_URL 874PACKAGE_BUGREPORT 875PACKAGE_STRING 876PACKAGE_VERSION 877PACKAGE_TARNAME 878PACKAGE_NAME 879PATH_SEPARATOR 880SHELL' 881ac_subst_files='' 882ac_user_opts=' 883enable_option_checking 884enable_dependency_tracking 885enable_shared 886enable_local_libopts 887enable_libopts_install 888with_autoopts_config 889with_regex_header 890with_libregex 891with_libregex_cflags 892with_libregex_libs 893enable_optional_args 894with_binsubdir 895with_arlib 896with_rpath 897enable_static 898enable_fast_install 899with_gnu_ld 900enable_libtool_lock 901with_pic 902with_tags 903enable_getifaddrs 904enable_debugging 905enable_debug_timing 906enable_dst_minutes 907enable_ignore_dns_errors 908enable_BANCOMM 909enable_GPSVME 910enable_all_clocks 911enable_ACTS 912enable_ARBITER 913enable_ARCRON_MSF 914enable_AS2201 915enable_ATOM 916enable_CHRONOLOG 917enable_CHU 918enable_AUDIO_CHU 919enable_DATUM 920enable_DUMBCLOCK 921enable_FG 922enable_HEATH 923enable_HOPFSERIAL 924enable_HOPFPCI 925enable_HPGPS 926enable_IRIG 927enable_JJY 928enable_JUPITER 929enable_LEITCH 930enable_LOCAL_CLOCK 931enable_MX4200 932enable_NEOCLOCK4X 933enable_NMEA 934enable_ONCORE 935enable_PALISADE 936enable_PCF 937enable_PST 938enable_RIPENCC 939enable_SHM 940enable_SPECTRACOM 941enable_TPRO 942enable_TRUETIME 943enable_TT560 944enable_ULINK 945enable_WWV 946enable_ZYFER 947enable_parse_clocks 948enable_COMPUTIME 949enable_DCF7000 950enable_HOPF6021 951enable_MEINBERG 952enable_RAWDCF 953enable_RCC8000 954enable_SCHMID 955enable_TRIMTAIP 956enable_TRIMTSIP 957enable_WHARTON 958enable_VARITEXT 959with_openssl_libdir 960with_openssl_incdir 961with_crypto 962with_electricfence 963enable_kmem 964enable_accurate_adjtime 965enable_tick 966enable_tickadj 967enable_simulator 968enable_slew_always 969enable_step_slew 970enable_ntpdate_step 971enable_hourly_todr_sync 972enable_kernel_fll_bug 973enable_irig_sawtooth 974enable_nist 975enable_ntp_signd 976enable_wintime 977enable_clockctl 978enable_linuxcaps 979enable_ipv6 980with_kame 981' 982 ac_precious_vars='build_alias 983host_alias 984target_alias 985CC 986CFLAGS 987LDFLAGS 988LIBS 989CPPFLAGS 990CPP' 991ac_subdirs_all='arlib 992sntp' 993 994# Initialize some variables set by options. 995ac_init_help= 996ac_init_version=false 997ac_unrecognized_opts= 998ac_unrecognized_sep= 999# The variables have the same names as the options, with 1000# dashes changed to underlines. 1001cache_file=/dev/null 1002exec_prefix=NONE 1003no_create= 1004no_recursion= 1005prefix=NONE 1006program_prefix=NONE 1007program_suffix=NONE 1008program_transform_name=s,x,x, 1009silent= 1010site= 1011srcdir= 1012verbose= 1013x_includes=NONE 1014x_libraries=NONE 1015 1016# Installation directory options. 1017# These are left unexpanded so users can "make install exec_prefix=/foo" 1018# and all the variables that are supposed to be based on exec_prefix 1019# by default will actually change. 1020# Use braces instead of parens because sh, perl, etc. also accept them. 1021# (The list follows the same order as the GNU Coding Standards.) 1022bindir='${exec_prefix}/bin' 1023sbindir='${exec_prefix}/sbin' 1024libexecdir='${exec_prefix}/libexec' 1025datarootdir='${prefix}/share' 1026datadir='${datarootdir}' 1027sysconfdir='${prefix}/etc' 1028sharedstatedir='${prefix}/com' 1029localstatedir='${prefix}/var' 1030includedir='${prefix}/include' 1031oldincludedir='/usr/include' 1032docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 1033infodir='${datarootdir}/info' 1034htmldir='${docdir}' 1035dvidir='${docdir}' 1036pdfdir='${docdir}' 1037psdir='${docdir}' 1038libdir='${exec_prefix}/lib' 1039localedir='${datarootdir}/locale' 1040mandir='${datarootdir}/man' 1041 1042ac_prev= 1043ac_dashdash= 1044for ac_option 1045do 1046 # If the previous option needs an argument, assign it. 1047 if test -n "$ac_prev"; then 1048 eval $ac_prev=\$ac_option 1049 ac_prev= 1050 continue 1051 fi 1052 1053 case $ac_option in 1054 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1055 *) ac_optarg=yes ;; 1056 esac 1057 1058 # Accept the important Cygnus configure options, so we can diagnose typos. 1059 1060 case $ac_dashdash$ac_option in 1061 --) 1062 ac_dashdash=yes ;; 1063 1064 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1065 ac_prev=bindir ;; 1066 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1067 bindir=$ac_optarg ;; 1068 1069 -build | --build | --buil | --bui | --bu) 1070 ac_prev=build_alias ;; 1071 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1072 build_alias=$ac_optarg ;; 1073 1074 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1075 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1076 ac_prev=cache_file ;; 1077 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1078 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1079 cache_file=$ac_optarg ;; 1080 1081 --config-cache | -C) 1082 cache_file=config.cache ;; 1083 1084 -datadir | --datadir | --datadi | --datad) 1085 ac_prev=datadir ;; 1086 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1087 datadir=$ac_optarg ;; 1088 1089 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1090 | --dataroo | --dataro | --datar) 1091 ac_prev=datarootdir ;; 1092 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1093 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1094 datarootdir=$ac_optarg ;; 1095 1096 -disable-* | --disable-*) 1097 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1098 # Reject names that are not valid shell variable names. 1099 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1100 as_fn_error "invalid feature name: $ac_useropt" 1101 ac_useropt_orig=$ac_useropt 1102 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1103 case $ac_user_opts in 1104 *" 1105"enable_$ac_useropt" 1106"*) ;; 1107 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1108 ac_unrecognized_sep=', ';; 1109 esac 1110 eval enable_$ac_useropt=no ;; 1111 1112 -docdir | --docdir | --docdi | --doc | --do) 1113 ac_prev=docdir ;; 1114 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1115 docdir=$ac_optarg ;; 1116 1117 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1118 ac_prev=dvidir ;; 1119 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1120 dvidir=$ac_optarg ;; 1121 1122 -enable-* | --enable-*) 1123 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1124 # Reject names that are not valid shell variable names. 1125 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1126 as_fn_error "invalid feature name: $ac_useropt" 1127 ac_useropt_orig=$ac_useropt 1128 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1129 case $ac_user_opts in 1130 *" 1131"enable_$ac_useropt" 1132"*) ;; 1133 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1134 ac_unrecognized_sep=', ';; 1135 esac 1136 eval enable_$ac_useropt=\$ac_optarg ;; 1137 1138 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1139 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1140 | --exec | --exe | --ex) 1141 ac_prev=exec_prefix ;; 1142 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1143 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1144 | --exec=* | --exe=* | --ex=*) 1145 exec_prefix=$ac_optarg ;; 1146 1147 -gas | --gas | --ga | --g) 1148 # Obsolete; use --with-gas. 1149 with_gas=yes ;; 1150 1151 -help | --help | --hel | --he | -h) 1152 ac_init_help=long ;; 1153 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1154 ac_init_help=recursive ;; 1155 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1156 ac_init_help=short ;; 1157 1158 -host | --host | --hos | --ho) 1159 ac_prev=host_alias ;; 1160 -host=* | --host=* | --hos=* | --ho=*) 1161 host_alias=$ac_optarg ;; 1162 1163 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1164 ac_prev=htmldir ;; 1165 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1166 | --ht=*) 1167 htmldir=$ac_optarg ;; 1168 1169 -includedir | --includedir | --includedi | --included | --include \ 1170 | --includ | --inclu | --incl | --inc) 1171 ac_prev=includedir ;; 1172 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1173 | --includ=* | --inclu=* | --incl=* | --inc=*) 1174 includedir=$ac_optarg ;; 1175 1176 -infodir | --infodir | --infodi | --infod | --info | --inf) 1177 ac_prev=infodir ;; 1178 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1179 infodir=$ac_optarg ;; 1180 1181 -libdir | --libdir | --libdi | --libd) 1182 ac_prev=libdir ;; 1183 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1184 libdir=$ac_optarg ;; 1185 1186 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1187 | --libexe | --libex | --libe) 1188 ac_prev=libexecdir ;; 1189 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1190 | --libexe=* | --libex=* | --libe=*) 1191 libexecdir=$ac_optarg ;; 1192 1193 -localedir | --localedir | --localedi | --localed | --locale) 1194 ac_prev=localedir ;; 1195 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1196 localedir=$ac_optarg ;; 1197 1198 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1199 | --localstate | --localstat | --localsta | --localst | --locals) 1200 ac_prev=localstatedir ;; 1201 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1202 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1203 localstatedir=$ac_optarg ;; 1204 1205 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1206 ac_prev=mandir ;; 1207 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1208 mandir=$ac_optarg ;; 1209 1210 -nfp | --nfp | --nf) 1211 # Obsolete; use --without-fp. 1212 with_fp=no ;; 1213 1214 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1215 | --no-cr | --no-c | -n) 1216 no_create=yes ;; 1217 1218 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1219 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1220 no_recursion=yes ;; 1221 1222 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1223 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1224 | --oldin | --oldi | --old | --ol | --o) 1225 ac_prev=oldincludedir ;; 1226 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1227 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1228 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1229 oldincludedir=$ac_optarg ;; 1230 1231 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1232 ac_prev=prefix ;; 1233 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1234 prefix=$ac_optarg ;; 1235 1236 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1237 | --program-pre | --program-pr | --program-p) 1238 ac_prev=program_prefix ;; 1239 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1240 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1241 program_prefix=$ac_optarg ;; 1242 1243 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1244 | --program-suf | --program-su | --program-s) 1245 ac_prev=program_suffix ;; 1246 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1247 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1248 program_suffix=$ac_optarg ;; 1249 1250 -program-transform-name | --program-transform-name \ 1251 | --program-transform-nam | --program-transform-na \ 1252 | --program-transform-n | --program-transform- \ 1253 | --program-transform | --program-transfor \ 1254 | --program-transfo | --program-transf \ 1255 | --program-trans | --program-tran \ 1256 | --progr-tra | --program-tr | --program-t) 1257 ac_prev=program_transform_name ;; 1258 -program-transform-name=* | --program-transform-name=* \ 1259 | --program-transform-nam=* | --program-transform-na=* \ 1260 | --program-transform-n=* | --program-transform-=* \ 1261 | --program-transform=* | --program-transfor=* \ 1262 | --program-transfo=* | --program-transf=* \ 1263 | --program-trans=* | --program-tran=* \ 1264 | --progr-tra=* | --program-tr=* | --program-t=*) 1265 program_transform_name=$ac_optarg ;; 1266 1267 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1268 ac_prev=pdfdir ;; 1269 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1270 pdfdir=$ac_optarg ;; 1271 1272 -psdir | --psdir | --psdi | --psd | --ps) 1273 ac_prev=psdir ;; 1274 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1275 psdir=$ac_optarg ;; 1276 1277 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1278 | -silent | --silent | --silen | --sile | --sil) 1279 silent=yes ;; 1280 1281 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1282 ac_prev=sbindir ;; 1283 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1284 | --sbi=* | --sb=*) 1285 sbindir=$ac_optarg ;; 1286 1287 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1288 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1289 | --sharedst | --shareds | --shared | --share | --shar \ 1290 | --sha | --sh) 1291 ac_prev=sharedstatedir ;; 1292 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1293 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1294 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1295 | --sha=* | --sh=*) 1296 sharedstatedir=$ac_optarg ;; 1297 1298 -site | --site | --sit) 1299 ac_prev=site ;; 1300 -site=* | --site=* | --sit=*) 1301 site=$ac_optarg ;; 1302 1303 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1304 ac_prev=srcdir ;; 1305 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1306 srcdir=$ac_optarg ;; 1307 1308 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1309 | --syscon | --sysco | --sysc | --sys | --sy) 1310 ac_prev=sysconfdir ;; 1311 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1312 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1313 sysconfdir=$ac_optarg ;; 1314 1315 -target | --target | --targe | --targ | --tar | --ta | --t) 1316 ac_prev=target_alias ;; 1317 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1318 target_alias=$ac_optarg ;; 1319 1320 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1321 verbose=yes ;; 1322 1323 -version | --version | --versio | --versi | --vers | -V) 1324 ac_init_version=: ;; 1325 1326 -with-* | --with-*) 1327 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1328 # Reject names that are not valid shell variable names. 1329 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1330 as_fn_error "invalid package name: $ac_useropt" 1331 ac_useropt_orig=$ac_useropt 1332 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1333 case $ac_user_opts in 1334 *" 1335"with_$ac_useropt" 1336"*) ;; 1337 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1338 ac_unrecognized_sep=', ';; 1339 esac 1340 eval with_$ac_useropt=\$ac_optarg ;; 1341 1342 -without-* | --without-*) 1343 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1344 # Reject names that are not valid shell variable names. 1345 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1346 as_fn_error "invalid package name: $ac_useropt" 1347 ac_useropt_orig=$ac_useropt 1348 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1349 case $ac_user_opts in 1350 *" 1351"with_$ac_useropt" 1352"*) ;; 1353 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1354 ac_unrecognized_sep=', ';; 1355 esac 1356 eval with_$ac_useropt=no ;; 1357 1358 --x) 1359 # Obsolete; use --with-x. 1360 with_x=yes ;; 1361 1362 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1363 | --x-incl | --x-inc | --x-in | --x-i) 1364 ac_prev=x_includes ;; 1365 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1366 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1367 x_includes=$ac_optarg ;; 1368 1369 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1370 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1371 ac_prev=x_libraries ;; 1372 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1373 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1374 x_libraries=$ac_optarg ;; 1375 1376 -*) as_fn_error "unrecognized option: \`$ac_option' 1377Try \`$0 --help' for more information." 1378 ;; 1379 1380 *=*) 1381 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1382 # Reject names that are not valid shell variable names. 1383 case $ac_envvar in #( 1384 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1385 as_fn_error "invalid variable name: \`$ac_envvar'" ;; 1386 esac 1387 eval $ac_envvar=\$ac_optarg 1388 export $ac_envvar ;; 1389 1390 *) 1391 # FIXME: should be removed in autoconf 3.0. 1392 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1393 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1394 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1395 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1396 ;; 1397 1398 esac 1399done 1400 1401if test -n "$ac_prev"; then 1402 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1403 as_fn_error "missing argument to $ac_option" 1404fi 1405 1406if test -n "$ac_unrecognized_opts"; then 1407 case $enable_option_checking in 1408 no) ;; 1409 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; 1410 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1411 esac 1412fi 1413 1414# Check all directory arguments for consistency. 1415for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1416 datadir sysconfdir sharedstatedir localstatedir includedir \ 1417 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1418 libdir localedir mandir 1419do 1420 eval ac_val=\$$ac_var 1421 # Remove trailing slashes. 1422 case $ac_val in 1423 */ ) 1424 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1425 eval $ac_var=\$ac_val;; 1426 esac 1427 # Be sure to have absolute directory names. 1428 case $ac_val in 1429 [\\/$]* | ?:[\\/]* ) continue;; 1430 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1431 esac 1432 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" 1433done 1434 1435# There might be people who depend on the old broken behavior: `$host' 1436# used to hold the argument of --host etc. 1437# FIXME: To remove some day. 1438build=$build_alias 1439host=$host_alias 1440target=$target_alias 1441 1442# FIXME: To remove some day. 1443if test "x$host_alias" != x; then 1444 if test "x$build_alias" = x; then 1445 cross_compiling=maybe 1446 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1447 If a cross compiler is detected then cross compile mode will be used." >&2 1448 elif test "x$build_alias" != "x$host_alias"; then 1449 cross_compiling=yes 1450 fi 1451fi 1452 1453ac_tool_prefix= 1454test -n "$host_alias" && ac_tool_prefix=$host_alias- 1455 1456test "$silent" = yes && exec 6>/dev/null 1457 1458 1459ac_pwd=`pwd` && test -n "$ac_pwd" && 1460ac_ls_di=`ls -di .` && 1461ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1462 as_fn_error "working directory cannot be determined" 1463test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1464 as_fn_error "pwd does not report name of working directory" 1465 1466 1467# Find the source files, if location was not specified. 1468if test -z "$srcdir"; then 1469 ac_srcdir_defaulted=yes 1470 # Try the directory containing this script, then the parent directory. 1471 ac_confdir=`$as_dirname -- "$as_myself" || 1472$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1473 X"$as_myself" : 'X\(//\)[^/]' \| \ 1474 X"$as_myself" : 'X\(//\)$' \| \ 1475 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1476$as_echo X"$as_myself" | 1477 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1478 s//\1/ 1479 q 1480 } 1481 /^X\(\/\/\)[^/].*/{ 1482 s//\1/ 1483 q 1484 } 1485 /^X\(\/\/\)$/{ 1486 s//\1/ 1487 q 1488 } 1489 /^X\(\/\).*/{ 1490 s//\1/ 1491 q 1492 } 1493 s/.*/./; q'` 1494 srcdir=$ac_confdir 1495 if test ! -r "$srcdir/$ac_unique_file"; then 1496 srcdir=.. 1497 fi 1498else 1499 ac_srcdir_defaulted=no 1500fi 1501if test ! -r "$srcdir/$ac_unique_file"; then 1502 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1503 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" 1504fi 1505ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1506ac_abs_confdir=`( 1507 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" 1508 pwd)` 1509# When building in place, set srcdir=. 1510if test "$ac_abs_confdir" = "$ac_pwd"; then 1511 srcdir=. 1512fi 1513# Remove unnecessary trailing slashes from srcdir. 1514# Double slashes in file names in object file debugging info 1515# mess up M-x gdb in Emacs. 1516case $srcdir in 1517*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1518esac 1519for ac_var in $ac_precious_vars; do 1520 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1521 eval ac_env_${ac_var}_value=\$${ac_var} 1522 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1523 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1524done 1525 1526# 1527# Report the --help message. 1528# 1529if test "$ac_init_help" = "long"; then 1530 # Omit some internal or obsolete options to make the list less imposing. 1531 # This message is too long to be a string in the A/UX 3.1 sh. 1532 cat <<_ACEOF 1533\`configure' configures ntp 4.2.4p8 to adapt to many kinds of systems. 1534 1535Usage: $0 [OPTION]... [VAR=VALUE]... 1536 1537To assign environment variables (e.g., CC, CFLAGS...), specify them as 1538VAR=VALUE. See below for descriptions of some of the useful variables. 1539 1540Defaults for the options are specified in brackets. 1541 1542Configuration: 1543 -h, --help display this help and exit 1544 --help=short display options specific to this package 1545 --help=recursive display the short help of all the included packages 1546 -V, --version display version information and exit 1547 -q, --quiet, --silent do not print \`checking...' messages 1548 --cache-file=FILE cache test results in FILE [disabled] 1549 -C, --config-cache alias for \`--cache-file=config.cache' 1550 -n, --no-create do not create output files 1551 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1552 1553Installation directories: 1554 --prefix=PREFIX install architecture-independent files in PREFIX 1555 [$ac_default_prefix] 1556 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1557 [PREFIX] 1558 1559By default, \`make install' will install all the files in 1560\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1561an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1562for instance \`--prefix=\$HOME'. 1563 1564For better control, use the options below. 1565 1566Fine tuning of the installation directories: 1567 --bindir=DIR user executables [EPREFIX/bin] 1568 --sbindir=DIR system admin executables [EPREFIX/sbin] 1569 --libexecdir=DIR program executables [EPREFIX/libexec] 1570 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1571 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1572 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1573 --libdir=DIR object code libraries [EPREFIX/lib] 1574 --includedir=DIR C header files [PREFIX/include] 1575 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1576 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1577 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1578 --infodir=DIR info documentation [DATAROOTDIR/info] 1579 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1580 --mandir=DIR man documentation [DATAROOTDIR/man] 1581 --docdir=DIR documentation root [DATAROOTDIR/doc/ntp] 1582 --htmldir=DIR html documentation [DOCDIR] 1583 --dvidir=DIR dvi documentation [DOCDIR] 1584 --pdfdir=DIR pdf documentation [DOCDIR] 1585 --psdir=DIR ps documentation [DOCDIR] 1586_ACEOF 1587 1588 cat <<\_ACEOF 1589 1590Program names: 1591 --program-prefix=PREFIX prepend PREFIX to installed program names 1592 --program-suffix=SUFFIX append SUFFIX to installed program names 1593 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1594 1595System types: 1596 --build=BUILD configure for building on BUILD [guessed] 1597 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1598_ACEOF 1599fi 1600 1601if test -n "$ac_init_help"; then 1602 case $ac_init_help in 1603 short | recursive ) echo "Configuration of ntp 4.2.4p8:";; 1604 esac 1605 cat <<\_ACEOF 1606 1607Optional Features: 1608 --disable-option-checking ignore unrecognized --enable/--with options 1609 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1610 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1611 --disable-dependency-tracking speeds up one-time build 1612 --enable-dependency-tracking do not reject slow dependency extractors 1613 --enable-shared[=PKGS] build shared libraries [default=no] 1614 --enable-local-libopts Force using the supplied libopts tearoff code 1615 --disable-libopts-install 1616 Do not install libopts with client installation 1617 --disable-optional-args not wanting optional option args 1618 --enable-static[=PKGS] build static libraries [default=yes] 1619 --enable-fast-install[=PKGS] 1620 optimize for fast installation [default=yes] 1621 --disable-libtool-lock avoid locking (might break parallel builds) 1622 --enable-getifaddrs s Enable the use of getifaddrs() [[yes|no|glibc]]. 1623 glibc: Use getifaddrs() in glibc if you know it 1624 supports IPv6. 1625 --enable-debugging + include debugging code 1626 --enable-debug-timing - include processing time debugging code (costs 1627 performance) 1628 --enable-dst-minutes n minutes per DST adjustment [60] 1629 --enable-ignore-dns-errors 1630 - retry DNS queries on any error 1631 --enable-BANCOMM - Datum/Bancomm bc635/VME interface 1632 --enable-GPSVME - TrueTime GPS receiver/VME interface 1633 --enable-all-clocks + include all suitable non-PARSE clocks: 1634 --enable-ACTS s ACTS modem service 1635 --enable-ARBITER + Arbiter 1088A/B GPS receiver 1636 --enable-ARCRON-MSF + Arcron MSF receiver 1637 --enable-AS2201 + Austron 2200A/2201A GPS receiver 1638 --enable-ATOM s ATOM PPS interface 1639 --enable-CHRONOLOG + Chrono-log K-series WWVB receiver 1640 --enable-CHU + CHU modem/decoder 1641 --enable-AUDIO-CHU s CHU audio/decoder 1642 --enable-DATUM s Datum Programmable Time System 1643 --enable-DUMBCLOCK + Dumb generic hh:mm:ss local clock 1644 --enable-FG + Forum Graphic GPS 1645 --enable-HEATH s Heath GC-1000 WWV/WWVH receiver 1646 --enable-HOPFSERIAL + hopf serial clock device 1647 --enable-HOPFPCI + hopf 6039 PCI board 1648 --enable-HPGPS + HP 58503A GPS receiver 1649 --enable-IRIG s IRIG audio decoder 1650 --enable-JJY + JJY receiver 1651 --enable-JUPITER s Rockwell Jupiter GPS receiver 1652 --enable-LEITCH + Leitch CSD 5300 Master Clock System Driver 1653 --enable-LOCAL-CLOCK + local clock reference 1654 --enable-MX4200 s Magnavox MX4200 GPS receiver 1655 --enable-NEOCLOCK4X + NeoClock4X DCF77 / TDF receiver 1656 --enable-NMEA + NMEA GPS receiver 1657 --enable-ONCORE s Motorola VP/UT Oncore GPS receiver 1658 --enable-PALISADE s Palisade clock 1659 --enable-PCF + Conrad parallel port radio clock 1660 --enable-PST + PST/Traconex 1020 WWV/WWVH receiver 1661 --enable-RIPENCC - RIPENCC specific Trimble driver 1662 --enable-SHM s SHM clock attached thru shared memory 1663 --enable-SPECTRACOM + Spectracom 8170/Netclock/2 WWVB receiver 1664 --enable-TPRO s KSI/Odetics TPRO/S GPS receiver/IRIG interface 1665 --enable-TRUETIME s Kinemetrics/TrueTime receivers 1666 --enable-TT560 - TrueTime 560 IRIG-B decoder 1667 --enable-ULINK + Ultralink WWVB receiver 1668 --enable-WWV s WWV Audio receiver 1669 --enable-ZYFER + Zyfer GPStarplus receiver 1670 --enable-parse-clocks - include all suitable PARSE clocks: 1671 --enable-COMPUTIME s Diem Computime Radio Clock 1672 --enable-DCF7000 s ELV/DCF7000 clock 1673 --enable-HOPF6021 s HOPF 6021 clock 1674 --enable-MEINBERG s Meinberg clocks 1675 --enable-RAWDCF s DCF77 raw time code 1676 --enable-RCC8000 s RCC 8000 clock 1677 --enable-SCHMID s Schmid DCF77 clock 1678 --enable-TRIMTAIP s Trimble GPS receiver/TAIP protocol 1679 --enable-TRIMTSIP s Trimble GPS receiver/TSIP protocol 1680 --enable-WHARTON s WHARTON 400A Series clock 1681 --enable-VARITEXT s VARITEXT clock 1682 --enable-kmem s read /dev/kmem for tick and/or tickadj 1683 --enable-accurate-adjtime 1684 s the adjtime() call is accurate 1685 --enable-tick=VALUE s force a value for 'tick' 1686 --enable-tickadj=VALUE s force a value for 'tickadj' 1687 --enable-simulator - build/install the NTPD simulator? 1688 --enable-slew-always s always slew the time 1689 --enable-step-slew s step and slew the time 1690 --enable-ntpdate-step s if ntpdate should step the time 1691 --enable-hourly-todr-sync 1692 s if we should sync TODR hourly 1693 --enable-kernel-fll-bug s if we should avoid a kernel FLL bug 1694 --enable-irig-sawtooth s if we should enable the IRIG sawtooth filter 1695 --enable-nist - if we should enable the NIST lockclock scheme 1696 --enable-ntp-signd - Provide support for Samba's signing daemon, 1697 =/var/run/ntp_signd 1698 --enable-wintime - Provide the windows symmetric client hack 1699 --enable-clockctl s Use /dev/clockctl for non-root clock control 1700 --enable-linuxcaps + Use Linux capabilities for non-root clock control 1701 --enable-ipv6 s use IPv6? 1702 1703Optional Packages: 1704 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1705 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1706 --with-autoopts-config specify the config-info script 1707 --with-regex-header a reg expr header is specified 1708 --with-libregex libregex installation prefix 1709 --with-libregex-cflags libregex compile flags 1710 --with-libregex-libs libregex link command arguments 1711 --with-binsubdir bin ={bin,sbin} 1712 --with-arlib - Compile the async resolver library? 1713 --without-rpath s Disable auto-added -R linker paths 1714 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1715 --with-pic try to use only PIC/non-PIC objects [default=use 1716 both] 1717 --with-tags[=TAGS] include additional configurations [automatic] 1718 --with-openssl-libdir + =/something/reasonable 1719 --with-openssl-incdir + =/something/reasonable 1720 --with-crypto + =openssl 1721 --with-electricfence - compile with ElectricFence malloc debugger 1722 --with-kame - =/usr/local/v6 1723 1724Some influential environment variables: 1725 CC C compiler command 1726 CFLAGS C compiler flags 1727 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1728 nonstandard directory <lib dir> 1729 LIBS libraries to pass to the linker, e.g. -l<library> 1730 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1731 you have headers in a nonstandard directory <include dir> 1732 CPP C preprocessor 1733 1734Use these variables to override the choices made by `configure' or to help 1735it to find libraries and programs with nonstandard names/locations. 1736 1737Report bugs to the package provider. 1738_ACEOF 1739ac_status=$? 1740fi 1741 1742if test "$ac_init_help" = "recursive"; then 1743 # If there are subdirs, report their specific --help. 1744 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1745 test -d "$ac_dir" || 1746 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1747 continue 1748 ac_builddir=. 1749 1750case "$ac_dir" in 1751.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1752*) 1753 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1754 # A ".." for each directory in $ac_dir_suffix. 1755 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1756 case $ac_top_builddir_sub in 1757 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1758 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1759 esac ;; 1760esac 1761ac_abs_top_builddir=$ac_pwd 1762ac_abs_builddir=$ac_pwd$ac_dir_suffix 1763# for backward compatibility: 1764ac_top_builddir=$ac_top_build_prefix 1765 1766case $srcdir in 1767 .) # We are building in place. 1768 ac_srcdir=. 1769 ac_top_srcdir=$ac_top_builddir_sub 1770 ac_abs_top_srcdir=$ac_pwd ;; 1771 [\\/]* | ?:[\\/]* ) # Absolute name. 1772 ac_srcdir=$srcdir$ac_dir_suffix; 1773 ac_top_srcdir=$srcdir 1774 ac_abs_top_srcdir=$srcdir ;; 1775 *) # Relative name. 1776 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1777 ac_top_srcdir=$ac_top_build_prefix$srcdir 1778 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1779esac 1780ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1781 1782 cd "$ac_dir" || { ac_status=$?; continue; } 1783 # Check for guested configure. 1784 if test -f "$ac_srcdir/configure.gnu"; then 1785 echo && 1786 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1787 elif test -f "$ac_srcdir/configure"; then 1788 echo && 1789 $SHELL "$ac_srcdir/configure" --help=recursive 1790 else 1791 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1792 fi || ac_status=$? 1793 cd "$ac_pwd" || { ac_status=$?; break; } 1794 done 1795fi 1796 1797test -n "$ac_init_help" && exit $ac_status 1798if $ac_init_version; then 1799 cat <<\_ACEOF 1800ntp configure 4.2.4p8 1801generated by GNU Autoconf 2.65 1802 1803Copyright (C) 2009 Free Software Foundation, Inc. 1804This configure script is free software; the Free Software Foundation 1805gives unlimited permission to copy, distribute and modify it. 1806_ACEOF 1807 exit 1808fi 1809 1810## ------------------------ ## 1811## Autoconf initialization. ## 1812## ------------------------ ## 1813 1814# ac_fn_c_try_compile LINENO 1815# -------------------------- 1816# Try to compile conftest.$ac_ext, and return whether this succeeded. 1817ac_fn_c_try_compile () 1818{ 1819 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1820 rm -f conftest.$ac_objext 1821 if { { ac_try="$ac_compile" 1822case "(($ac_try" in 1823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1824 *) ac_try_echo=$ac_try;; 1825esac 1826eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1827$as_echo "$ac_try_echo"; } >&5 1828 (eval "$ac_compile") 2>conftest.err 1829 ac_status=$? 1830 if test -s conftest.err; then 1831 grep -v '^ *+' conftest.err >conftest.er1 1832 cat conftest.er1 >&5 1833 mv -f conftest.er1 conftest.err 1834 fi 1835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1836 test $ac_status = 0; } && { 1837 test -z "$ac_c_werror_flag" || 1838 test ! -s conftest.err 1839 } && test -s conftest.$ac_objext; then : 1840 ac_retval=0 1841else 1842 $as_echo "$as_me: failed program was:" >&5 1843sed 's/^/| /' conftest.$ac_ext >&5 1844 1845 ac_retval=1 1846fi 1847 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1848 as_fn_set_status $ac_retval 1849 1850} # ac_fn_c_try_compile 1851 1852# ac_fn_c_try_cpp LINENO 1853# ---------------------- 1854# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1855ac_fn_c_try_cpp () 1856{ 1857 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1858 if { { ac_try="$ac_cpp conftest.$ac_ext" 1859case "(($ac_try" in 1860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1861 *) ac_try_echo=$ac_try;; 1862esac 1863eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1864$as_echo "$ac_try_echo"; } >&5 1865 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1866 ac_status=$? 1867 if test -s conftest.err; then 1868 grep -v '^ *+' conftest.err >conftest.er1 1869 cat conftest.er1 >&5 1870 mv -f conftest.er1 conftest.err 1871 fi 1872 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1873 test $ac_status = 0; } >/dev/null && { 1874 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1875 test ! -s conftest.err 1876 }; then : 1877 ac_retval=0 1878else 1879 $as_echo "$as_me: failed program was:" >&5 1880sed 's/^/| /' conftest.$ac_ext >&5 1881 1882 ac_retval=1 1883fi 1884 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1885 as_fn_set_status $ac_retval 1886 1887} # ac_fn_c_try_cpp 1888 1889# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1890# ------------------------------------------------------- 1891# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1892# the include files in INCLUDES and setting the cache variable VAR 1893# accordingly. 1894ac_fn_c_check_header_mongrel () 1895{ 1896 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1897 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1899$as_echo_n "checking for $2... " >&6; } 1900if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1901 $as_echo_n "(cached) " >&6 1902fi 1903eval ac_res=\$$3 1904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1905$as_echo "$ac_res" >&6; } 1906else 1907 # Is the header compilable? 1908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1909$as_echo_n "checking $2 usability... " >&6; } 1910cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1911/* end confdefs.h. */ 1912$4 1913#include <$2> 1914_ACEOF 1915if ac_fn_c_try_compile "$LINENO"; then : 1916 ac_header_compiler=yes 1917else 1918 ac_header_compiler=no 1919fi 1920rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1922$as_echo "$ac_header_compiler" >&6; } 1923 1924# Is the header present? 1925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1926$as_echo_n "checking $2 presence... " >&6; } 1927cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1928/* end confdefs.h. */ 1929#include <$2> 1930_ACEOF 1931if ac_fn_c_try_cpp "$LINENO"; then : 1932 ac_header_preproc=yes 1933else 1934 ac_header_preproc=no 1935fi 1936rm -f conftest.err conftest.$ac_ext 1937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1938$as_echo "$ac_header_preproc" >&6; } 1939 1940# So? What about this header? 1941case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1942 yes:no: ) 1943 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1944$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1945 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1946$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1947 ;; 1948 no:yes:* ) 1949 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1950$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1951 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1952$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1953 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1954$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1955 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1956$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1957 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1958$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1959 ;; 1960esac 1961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1962$as_echo_n "checking for $2... " >&6; } 1963if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1964 $as_echo_n "(cached) " >&6 1965else 1966 eval "$3=\$ac_header_compiler" 1967fi 1968eval ac_res=\$$3 1969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1970$as_echo "$ac_res" >&6; } 1971fi 1972 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1973 1974} # ac_fn_c_check_header_mongrel 1975 1976# ac_fn_c_try_run LINENO 1977# ---------------------- 1978# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1979# that executables *can* be run. 1980ac_fn_c_try_run () 1981{ 1982 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1983 if { { ac_try="$ac_link" 1984case "(($ac_try" in 1985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1986 *) ac_try_echo=$ac_try;; 1987esac 1988eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1989$as_echo "$ac_try_echo"; } >&5 1990 (eval "$ac_link") 2>&5 1991 ac_status=$? 1992 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1993 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1994 { { case "(($ac_try" in 1995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1996 *) ac_try_echo=$ac_try;; 1997esac 1998eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1999$as_echo "$ac_try_echo"; } >&5 2000 (eval "$ac_try") 2>&5 2001 ac_status=$? 2002 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2003 test $ac_status = 0; }; }; then : 2004 ac_retval=0 2005else 2006 $as_echo "$as_me: program exited with status $ac_status" >&5 2007 $as_echo "$as_me: failed program was:" >&5 2008sed 's/^/| /' conftest.$ac_ext >&5 2009 2010 ac_retval=$ac_status 2011fi 2012 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2013 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2014 as_fn_set_status $ac_retval 2015 2016} # ac_fn_c_try_run 2017 2018# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 2019# ------------------------------------------------------- 2020# Tests whether HEADER exists and can be compiled using the include files in 2021# INCLUDES, setting the cache variable VAR accordingly. 2022ac_fn_c_check_header_compile () 2023{ 2024 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2026$as_echo_n "checking for $2... " >&6; } 2027if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 2028 $as_echo_n "(cached) " >&6 2029else 2030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2031/* end confdefs.h. */ 2032$4 2033#include <$2> 2034_ACEOF 2035if ac_fn_c_try_compile "$LINENO"; then : 2036 eval "$3=yes" 2037else 2038 eval "$3=no" 2039fi 2040rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2041fi 2042eval ac_res=\$$3 2043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2044$as_echo "$ac_res" >&6; } 2045 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2046 2047} # ac_fn_c_check_header_compile 2048 2049# ac_fn_c_try_link LINENO 2050# ----------------------- 2051# Try to link conftest.$ac_ext, and return whether this succeeded. 2052ac_fn_c_try_link () 2053{ 2054 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2055 rm -f conftest.$ac_objext conftest$ac_exeext 2056 if { { ac_try="$ac_link" 2057case "(($ac_try" in 2058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2059 *) ac_try_echo=$ac_try;; 2060esac 2061eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2062$as_echo "$ac_try_echo"; } >&5 2063 (eval "$ac_link") 2>conftest.err 2064 ac_status=$? 2065 if test -s conftest.err; then 2066 grep -v '^ *+' conftest.err >conftest.er1 2067 cat conftest.er1 >&5 2068 mv -f conftest.er1 conftest.err 2069 fi 2070 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2071 test $ac_status = 0; } && { 2072 test -z "$ac_c_werror_flag" || 2073 test ! -s conftest.err 2074 } && test -s conftest$ac_exeext && { 2075 test "$cross_compiling" = yes || 2076 $as_test_x conftest$ac_exeext 2077 }; then : 2078 ac_retval=0 2079else 2080 $as_echo "$as_me: failed program was:" >&5 2081sed 's/^/| /' conftest.$ac_ext >&5 2082 2083 ac_retval=1 2084fi 2085 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2086 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2087 # interfere with the next link command; also delete a directory that is 2088 # left behind by Apple's compiler. We do this before executing the actions. 2089 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2090 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2091 as_fn_set_status $ac_retval 2092 2093} # ac_fn_c_try_link 2094 2095# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2096# ------------------------------------------- 2097# Tests whether TYPE exists after having included INCLUDES, setting cache 2098# variable VAR accordingly. 2099ac_fn_c_check_type () 2100{ 2101 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2103$as_echo_n "checking for $2... " >&6; } 2104if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 2105 $as_echo_n "(cached) " >&6 2106else 2107 eval "$3=no" 2108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2109/* end confdefs.h. */ 2110$4 2111int 2112main () 2113{ 2114if (sizeof ($2)) 2115 return 0; 2116 ; 2117 return 0; 2118} 2119_ACEOF 2120if ac_fn_c_try_compile "$LINENO"; then : 2121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2122/* end confdefs.h. */ 2123$4 2124int 2125main () 2126{ 2127if (sizeof (($2))) 2128 return 0; 2129 ; 2130 return 0; 2131} 2132_ACEOF 2133if ac_fn_c_try_compile "$LINENO"; then : 2134 2135else 2136 eval "$3=yes" 2137fi 2138rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2139fi 2140rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2141fi 2142eval ac_res=\$$3 2143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2144$as_echo "$ac_res" >&6; } 2145 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2146 2147} # ac_fn_c_check_type 2148 2149# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 2150# -------------------------------------------- 2151# Tries to find the compile-time value of EXPR in a program that includes 2152# INCLUDES, setting VAR accordingly. Returns whether the value could be 2153# computed 2154ac_fn_c_compute_int () 2155{ 2156 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2157 if test "$cross_compiling" = yes; then 2158 # Depending upon the size, compute the lo and hi bounds. 2159cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2160/* end confdefs.h. */ 2161$4 2162int 2163main () 2164{ 2165static int test_array [1 - 2 * !(($2) >= 0)]; 2166test_array [0] = 0 2167 2168 ; 2169 return 0; 2170} 2171_ACEOF 2172if ac_fn_c_try_compile "$LINENO"; then : 2173 ac_lo=0 ac_mid=0 2174 while :; do 2175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2176/* end confdefs.h. */ 2177$4 2178int 2179main () 2180{ 2181static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2182test_array [0] = 0 2183 2184 ; 2185 return 0; 2186} 2187_ACEOF 2188if ac_fn_c_try_compile "$LINENO"; then : 2189 ac_hi=$ac_mid; break 2190else 2191 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2192 if test $ac_lo -le $ac_mid; then 2193 ac_lo= ac_hi= 2194 break 2195 fi 2196 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2197fi 2198rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2199 done 2200else 2201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2202/* end confdefs.h. */ 2203$4 2204int 2205main () 2206{ 2207static int test_array [1 - 2 * !(($2) < 0)]; 2208test_array [0] = 0 2209 2210 ; 2211 return 0; 2212} 2213_ACEOF 2214if ac_fn_c_try_compile "$LINENO"; then : 2215 ac_hi=-1 ac_mid=-1 2216 while :; do 2217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2218/* end confdefs.h. */ 2219$4 2220int 2221main () 2222{ 2223static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2224test_array [0] = 0 2225 2226 ; 2227 return 0; 2228} 2229_ACEOF 2230if ac_fn_c_try_compile "$LINENO"; then : 2231 ac_lo=$ac_mid; break 2232else 2233 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2234 if test $ac_mid -le $ac_hi; then 2235 ac_lo= ac_hi= 2236 break 2237 fi 2238 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2239fi 2240rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2241 done 2242else 2243 ac_lo= ac_hi= 2244fi 2245rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2246fi 2247rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2248# Binary search between lo and hi bounds. 2249while test "x$ac_lo" != "x$ac_hi"; do 2250 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2252/* end confdefs.h. */ 2253$4 2254int 2255main () 2256{ 2257static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2258test_array [0] = 0 2259 2260 ; 2261 return 0; 2262} 2263_ACEOF 2264if ac_fn_c_try_compile "$LINENO"; then : 2265 ac_hi=$ac_mid 2266else 2267 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2268fi 2269rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2270done 2271case $ac_lo in #(( 2272?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2273'') ac_retval=1 ;; 2274esac 2275 else 2276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2277/* end confdefs.h. */ 2278$4 2279static long int longval () { return $2; } 2280static unsigned long int ulongval () { return $2; } 2281#include <stdio.h> 2282#include <stdlib.h> 2283int 2284main () 2285{ 2286 2287 FILE *f = fopen ("conftest.val", "w"); 2288 if (! f) 2289 return 1; 2290 if (($2) < 0) 2291 { 2292 long int i = longval (); 2293 if (i != ($2)) 2294 return 1; 2295 fprintf (f, "%ld", i); 2296 } 2297 else 2298 { 2299 unsigned long int i = ulongval (); 2300 if (i != ($2)) 2301 return 1; 2302 fprintf (f, "%lu", i); 2303 } 2304 /* Do not output a trailing newline, as this causes \r\n confusion 2305 on some platforms. */ 2306 return ferror (f) || fclose (f) != 0; 2307 2308 ; 2309 return 0; 2310} 2311_ACEOF 2312if ac_fn_c_try_run "$LINENO"; then : 2313 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2314else 2315 ac_retval=1 2316fi 2317rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2318 conftest.$ac_objext conftest.beam conftest.$ac_ext 2319rm -f conftest.val 2320 2321 fi 2322 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2323 as_fn_set_status $ac_retval 2324 2325} # ac_fn_c_compute_int 2326 2327# ac_fn_c_check_func LINENO FUNC VAR 2328# ---------------------------------- 2329# Tests whether FUNC exists, setting the cache variable VAR accordingly 2330ac_fn_c_check_func () 2331{ 2332 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2334$as_echo_n "checking for $2... " >&6; } 2335if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 2336 $as_echo_n "(cached) " >&6 2337else 2338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2339/* end confdefs.h. */ 2340/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2341 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2342#define $2 innocuous_$2 2343 2344/* System header to define __stub macros and hopefully few prototypes, 2345 which can conflict with char $2 (); below. 2346 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2347 <limits.h> exists even on freestanding compilers. */ 2348 2349#ifdef __STDC__ 2350# include <limits.h> 2351#else 2352# include <assert.h> 2353#endif 2354 2355#undef $2 2356 2357/* Override any GCC internal prototype to avoid an error. 2358 Use char because int might match the return type of a GCC 2359 builtin and then its argument prototype would still apply. */ 2360#ifdef __cplusplus 2361extern "C" 2362#endif 2363char $2 (); 2364/* The GNU C library defines this for functions which it implements 2365 to always fail with ENOSYS. Some functions are actually named 2366 something starting with __ and the normal name is an alias. */ 2367#if defined __stub_$2 || defined __stub___$2 2368choke me 2369#endif 2370 2371int 2372main () 2373{ 2374return $2 (); 2375 ; 2376 return 0; 2377} 2378_ACEOF 2379if ac_fn_c_try_link "$LINENO"; then : 2380 eval "$3=yes" 2381else 2382 eval "$3=no" 2383fi 2384rm -f core conftest.err conftest.$ac_objext \ 2385 conftest$ac_exeext conftest.$ac_ext 2386fi 2387eval ac_res=\$$3 2388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2389$as_echo "$ac_res" >&6; } 2390 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2391 2392} # ac_fn_c_check_func 2393 2394# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 2395# ---------------------------------------------------- 2396# Tries to find if the field MEMBER exists in type AGGR, after including 2397# INCLUDES, setting cache variable VAR accordingly. 2398ac_fn_c_check_member () 2399{ 2400 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 2402$as_echo_n "checking for $2.$3... " >&6; } 2403if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then : 2404 $as_echo_n "(cached) " >&6 2405else 2406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2407/* end confdefs.h. */ 2408$5 2409int 2410main () 2411{ 2412static $2 ac_aggr; 2413if (ac_aggr.$3) 2414return 0; 2415 ; 2416 return 0; 2417} 2418_ACEOF 2419if ac_fn_c_try_compile "$LINENO"; then : 2420 eval "$4=yes" 2421else 2422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2423/* end confdefs.h. */ 2424$5 2425int 2426main () 2427{ 2428static $2 ac_aggr; 2429if (sizeof ac_aggr.$3) 2430return 0; 2431 ; 2432 return 0; 2433} 2434_ACEOF 2435if ac_fn_c_try_compile "$LINENO"; then : 2436 eval "$4=yes" 2437else 2438 eval "$4=no" 2439fi 2440rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2441fi 2442rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2443fi 2444eval ac_res=\$$4 2445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2446$as_echo "$ac_res" >&6; } 2447 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2448 2449} # ac_fn_c_check_member 2450cat >config.log <<_ACEOF 2451This file contains any messages produced by compilers while 2452running configure, to aid debugging if configure makes a mistake. 2453 2454It was created by ntp $as_me 4.2.4p8, which was 2455generated by GNU Autoconf 2.65. Invocation command line was 2456 2457 $ $0 $@ 2458 2459_ACEOF 2460exec 5>>config.log 2461{ 2462cat <<_ASUNAME 2463## --------- ## 2464## Platform. ## 2465## --------- ## 2466 2467hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2468uname -m = `(uname -m) 2>/dev/null || echo unknown` 2469uname -r = `(uname -r) 2>/dev/null || echo unknown` 2470uname -s = `(uname -s) 2>/dev/null || echo unknown` 2471uname -v = `(uname -v) 2>/dev/null || echo unknown` 2472 2473/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2474/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2475 2476/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2477/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2478/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2479/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2480/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2481/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2482/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2483 2484_ASUNAME 2485 2486as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2487for as_dir in $PATH 2488do 2489 IFS=$as_save_IFS 2490 test -z "$as_dir" && as_dir=. 2491 $as_echo "PATH: $as_dir" 2492 done 2493IFS=$as_save_IFS 2494 2495} >&5 2496 2497cat >&5 <<_ACEOF 2498 2499 2500## ----------- ## 2501## Core tests. ## 2502## ----------- ## 2503 2504_ACEOF 2505 2506 2507# Keep a trace of the command line. 2508# Strip out --no-create and --no-recursion so they do not pile up. 2509# Strip out --silent because we don't want to record it for future runs. 2510# Also quote any args containing shell meta-characters. 2511# Make two passes to allow for proper duplicate-argument suppression. 2512ac_configure_args= 2513ac_configure_args0= 2514ac_configure_args1= 2515ac_must_keep_next=false 2516for ac_pass in 1 2 2517do 2518 for ac_arg 2519 do 2520 case $ac_arg in 2521 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2522 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2523 | -silent | --silent | --silen | --sile | --sil) 2524 continue ;; 2525 *\'*) 2526 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2527 esac 2528 case $ac_pass in 2529 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2530 2) 2531 as_fn_append ac_configure_args1 " '$ac_arg'" 2532 if test $ac_must_keep_next = true; then 2533 ac_must_keep_next=false # Got value, back to normal. 2534 else 2535 case $ac_arg in 2536 *=* | --config-cache | -C | -disable-* | --disable-* \ 2537 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2538 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2539 | -with-* | --with-* | -without-* | --without-* | --x) 2540 case "$ac_configure_args0 " in 2541 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2542 esac 2543 ;; 2544 -* ) ac_must_keep_next=true ;; 2545 esac 2546 fi 2547 as_fn_append ac_configure_args " '$ac_arg'" 2548 ;; 2549 esac 2550 done 2551done 2552{ ac_configure_args0=; unset ac_configure_args0;} 2553{ ac_configure_args1=; unset ac_configure_args1;} 2554 2555# When interrupted or exit'd, cleanup temporary files, and complete 2556# config.log. We remove comments because anyway the quotes in there 2557# would cause problems or look ugly. 2558# WARNING: Use '\'' to represent an apostrophe within the trap. 2559# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2560trap 'exit_status=$? 2561 # Save into config.log some information that might help in debugging. 2562 { 2563 echo 2564 2565 cat <<\_ASBOX 2566## ---------------- ## 2567## Cache variables. ## 2568## ---------------- ## 2569_ASBOX 2570 echo 2571 # The following way of writing the cache mishandles newlines in values, 2572( 2573 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2574 eval ac_val=\$$ac_var 2575 case $ac_val in #( 2576 *${as_nl}*) 2577 case $ac_var in #( 2578 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2579$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2580 esac 2581 case $ac_var in #( 2582 _ | IFS | as_nl) ;; #( 2583 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2584 *) { eval $ac_var=; unset $ac_var;} ;; 2585 esac ;; 2586 esac 2587 done 2588 (set) 2>&1 | 2589 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2590 *${as_nl}ac_space=\ *) 2591 sed -n \ 2592 "s/'\''/'\''\\\\'\'''\''/g; 2593 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2594 ;; #( 2595 *) 2596 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2597 ;; 2598 esac | 2599 sort 2600) 2601 echo 2602 2603 cat <<\_ASBOX 2604## ----------------- ## 2605## Output variables. ## 2606## ----------------- ## 2607_ASBOX 2608 echo 2609 for ac_var in $ac_subst_vars 2610 do 2611 eval ac_val=\$$ac_var 2612 case $ac_val in 2613 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2614 esac 2615 $as_echo "$ac_var='\''$ac_val'\''" 2616 done | sort 2617 echo 2618 2619 if test -n "$ac_subst_files"; then 2620 cat <<\_ASBOX 2621## ------------------- ## 2622## File substitutions. ## 2623## ------------------- ## 2624_ASBOX 2625 echo 2626 for ac_var in $ac_subst_files 2627 do 2628 eval ac_val=\$$ac_var 2629 case $ac_val in 2630 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2631 esac 2632 $as_echo "$ac_var='\''$ac_val'\''" 2633 done | sort 2634 echo 2635 fi 2636 2637 if test -s confdefs.h; then 2638 cat <<\_ASBOX 2639## ----------- ## 2640## confdefs.h. ## 2641## ----------- ## 2642_ASBOX 2643 echo 2644 cat confdefs.h 2645 echo 2646 fi 2647 test "$ac_signal" != 0 && 2648 $as_echo "$as_me: caught signal $ac_signal" 2649 $as_echo "$as_me: exit $exit_status" 2650 } >&5 2651 rm -f core *.core core.conftest.* && 2652 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2653 exit $exit_status 2654' 0 2655for ac_signal in 1 2 13 15; do 2656 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2657done 2658ac_signal=0 2659 2660# confdefs.h avoids OS command line length limits that DEFS can exceed. 2661rm -f -r conftest* confdefs.h 2662 2663$as_echo "/* confdefs.h */" > confdefs.h 2664 2665# Predefined preprocessor variables. 2666 2667cat >>confdefs.h <<_ACEOF 2668#define PACKAGE_NAME "$PACKAGE_NAME" 2669_ACEOF 2670 2671cat >>confdefs.h <<_ACEOF 2672#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2673_ACEOF 2674 2675cat >>confdefs.h <<_ACEOF 2676#define PACKAGE_VERSION "$PACKAGE_VERSION" 2677_ACEOF 2678 2679cat >>confdefs.h <<_ACEOF 2680#define PACKAGE_STRING "$PACKAGE_STRING" 2681_ACEOF 2682 2683cat >>confdefs.h <<_ACEOF 2684#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2685_ACEOF 2686 2687cat >>confdefs.h <<_ACEOF 2688#define PACKAGE_URL "$PACKAGE_URL" 2689_ACEOF 2690 2691 2692# Let the site file select an alternate cache file if it wants to. 2693# Prefer an explicitly selected file to automatically selected ones. 2694ac_site_file1=NONE 2695ac_site_file2=NONE 2696if test -n "$CONFIG_SITE"; then 2697 ac_site_file1=$CONFIG_SITE 2698elif test "x$prefix" != xNONE; then 2699 ac_site_file1=$prefix/share/config.site 2700 ac_site_file2=$prefix/etc/config.site 2701else 2702 ac_site_file1=$ac_default_prefix/share/config.site 2703 ac_site_file2=$ac_default_prefix/etc/config.site 2704fi 2705for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2706do 2707 test "x$ac_site_file" = xNONE && continue 2708 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2709 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2710$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2711 sed 's/^/| /' "$ac_site_file" >&5 2712 . "$ac_site_file" 2713 fi 2714done 2715 2716if test -r "$cache_file"; then 2717 # Some versions of bash will fail to source /dev/null (special files 2718 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2719 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2720 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2721$as_echo "$as_me: loading cache $cache_file" >&6;} 2722 case $cache_file in 2723 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2724 *) . "./$cache_file";; 2725 esac 2726 fi 2727else 2728 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2729$as_echo "$as_me: creating cache $cache_file" >&6;} 2730 >$cache_file 2731fi 2732 2733# Check that the precious variables saved in the cache have kept the same 2734# value. 2735ac_cache_corrupted=false 2736for ac_var in $ac_precious_vars; do 2737 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2738 eval ac_new_set=\$ac_env_${ac_var}_set 2739 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2740 eval ac_new_val=\$ac_env_${ac_var}_value 2741 case $ac_old_set,$ac_new_set in 2742 set,) 2743 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2744$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2745 ac_cache_corrupted=: ;; 2746 ,set) 2747 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2748$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2749 ac_cache_corrupted=: ;; 2750 ,);; 2751 *) 2752 if test "x$ac_old_val" != "x$ac_new_val"; then 2753 # differences in whitespace do not lead to failure. 2754 ac_old_val_w=`echo x $ac_old_val` 2755 ac_new_val_w=`echo x $ac_new_val` 2756 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2757 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2758$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2759 ac_cache_corrupted=: 2760 else 2761 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2762$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2763 eval $ac_var=\$ac_old_val 2764 fi 2765 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2766$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2767 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2768$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2769 fi;; 2770 esac 2771 # Pass precious variables to config.status. 2772 if test "$ac_new_set" = set; then 2773 case $ac_new_val in 2774 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2775 *) ac_arg=$ac_var=$ac_new_val ;; 2776 esac 2777 case " $ac_configure_args " in 2778 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2779 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2780 esac 2781 fi 2782done 2783if $ac_cache_corrupted; then 2784 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2785$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2786 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2787$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2788 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2789fi 2790## -------------------- ## 2791## Main body of script. ## 2792## -------------------- ## 2793 2794ac_ext=c 2795ac_cpp='$CPP $CPPFLAGS' 2796ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2797ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2798ac_compiler_gnu=$ac_cv_c_compiler_gnu 2799 2800 2801am__api_version='1.11' 2802 2803ac_aux_dir= 2804for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2805 for ac_t in install-sh install.sh shtool; do 2806 if test -f "$ac_dir/$ac_t"; then 2807 ac_aux_dir=$ac_dir 2808 ac_install_sh="$ac_aux_dir/$ac_t -c" 2809 break 2 2810 fi 2811 done 2812done 2813if test -z "$ac_aux_dir"; then 2814 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2815fi 2816 2817# These three variables are undocumented and unsupported, 2818# and are intended to be withdrawn in a future Autoconf release. 2819# They can cause serious problems if a builder's source tree is in a directory 2820# whose full name contains unusual characters. 2821ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2822ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2823ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2824 2825 2826# Find a good install program. We prefer a C program (faster), 2827# so one script is as good as another. But avoid the broken or 2828# incompatible versions: 2829# SysV /etc/install, /usr/sbin/install 2830# SunOS /usr/etc/install 2831# IRIX /sbin/install 2832# AIX /bin/install 2833# AmigaOS /C/install, which installs bootblocks on floppy discs 2834# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2835# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2836# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2837# OS/2's system install, which has a completely different semantic 2838# ./install, which can be erroneously created by make from ./install.sh. 2839# Reject install programs that cannot install multiple files. 2840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2841$as_echo_n "checking for a BSD-compatible install... " >&6; } 2842if test -z "$INSTALL"; then 2843if test "${ac_cv_path_install+set}" = set; then : 2844 $as_echo_n "(cached) " >&6 2845else 2846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2847for as_dir in $PATH 2848do 2849 IFS=$as_save_IFS 2850 test -z "$as_dir" && as_dir=. 2851 # Account for people who put trailing slashes in PATH elements. 2852case $as_dir/ in #(( 2853 ./ | .// | /[cC]/* | \ 2854 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2855 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2856 /usr/ucb/* ) ;; 2857 *) 2858 # OSF1 and SCO ODT 3.0 have their own names for install. 2859 # Don't use installbsd from OSF since it installs stuff as root 2860 # by default. 2861 for ac_prog in ginstall scoinst install; do 2862 for ac_exec_ext in '' $ac_executable_extensions; do 2863 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2864 if test $ac_prog = install && 2865 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2866 # AIX install. It has an incompatible calling convention. 2867 : 2868 elif test $ac_prog = install && 2869 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2870 # program-specific install script used by HP pwplus--don't use. 2871 : 2872 else 2873 rm -rf conftest.one conftest.two conftest.dir 2874 echo one > conftest.one 2875 echo two > conftest.two 2876 mkdir conftest.dir 2877 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2878 test -s conftest.one && test -s conftest.two && 2879 test -s conftest.dir/conftest.one && 2880 test -s conftest.dir/conftest.two 2881 then 2882 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2883 break 3 2884 fi 2885 fi 2886 fi 2887 done 2888 done 2889 ;; 2890esac 2891 2892 done 2893IFS=$as_save_IFS 2894 2895rm -rf conftest.one conftest.two conftest.dir 2896 2897fi 2898 if test "${ac_cv_path_install+set}" = set; then 2899 INSTALL=$ac_cv_path_install 2900 else 2901 # As a last resort, use the slow shell script. Don't cache a 2902 # value for INSTALL within a source directory, because that will 2903 # break other packages using the cache if that directory is 2904 # removed, or if the value is a relative name. 2905 INSTALL=$ac_install_sh 2906 fi 2907fi 2908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2909$as_echo "$INSTALL" >&6; } 2910 2911# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2912# It thinks the first close brace ends the variable substitution. 2913test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2914 2915test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2916 2917test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2918 2919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2920$as_echo_n "checking whether build environment is sane... " >&6; } 2921# Just in case 2922sleep 1 2923echo timestamp > conftest.file 2924# Reject unsafe characters in $srcdir or the absolute working directory 2925# name. Accept space and tab only in the latter. 2926am_lf=' 2927' 2928case `pwd` in 2929 *[\\\"\#\$\&\'\`$am_lf]*) 2930 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;; 2931esac 2932case $srcdir in 2933 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2934 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; 2935esac 2936 2937# Do `set' in a subshell so we don't clobber the current shell's 2938# arguments. Must try -L first in case configure is actually a 2939# symlink; some systems play weird games with the mod time of symlinks 2940# (eg FreeBSD returns the mod time of the symlink's containing 2941# directory). 2942if ( 2943 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2944 if test "$*" = "X"; then 2945 # -L didn't work. 2946 set X `ls -t "$srcdir/configure" conftest.file` 2947 fi 2948 rm -f conftest.file 2949 if test "$*" != "X $srcdir/configure conftest.file" \ 2950 && test "$*" != "X conftest.file $srcdir/configure"; then 2951 2952 # If neither matched, then we have a broken ls. This can happen 2953 # if, for instance, CONFIG_SHELL is bash and it inherits a 2954 # broken ls alias from the environment. This has actually 2955 # happened. Such a system could not be considered "sane". 2956 as_fn_error "ls -t appears to fail. Make sure there is not a broken 2957alias in your environment" "$LINENO" 5 2958 fi 2959 2960 test "$2" = conftest.file 2961 ) 2962then 2963 # Ok. 2964 : 2965else 2966 as_fn_error "newly created file is older than distributed files! 2967Check your system clock" "$LINENO" 5 2968fi 2969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2970$as_echo "yes" >&6; } 2971test "$program_prefix" != NONE && 2972 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2973# Use a double $ so make ignores it. 2974test "$program_suffix" != NONE && 2975 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2976# Double any \ or $. 2977# By default was `s,x,x', remove it if useless. 2978ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2979program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2980 2981# expand $ac_aux_dir to an absolute path 2982am_aux_dir=`cd $ac_aux_dir && pwd` 2983 2984if test x"${MISSING+set}" != xset; then 2985 case $am_aux_dir in 2986 *\ * | *\ *) 2987 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2988 *) 2989 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2990 esac 2991fi 2992# Use eval to expand $SHELL 2993if eval "$MISSING --run true"; then 2994 am_missing_run="$MISSING --run " 2995else 2996 am_missing_run= 2997 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 2998$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2999fi 3000 3001if test x"${install_sh}" != xset; then 3002 case $am_aux_dir in 3003 *\ * | *\ *) 3004 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 3005 *) 3006 install_sh="\${SHELL} $am_aux_dir/install-sh" 3007 esac 3008fi 3009 3010# Installed binaries are usually stripped using `strip' when the user 3011# run `make install-strip'. However `strip' might not be the right 3012# tool to use in cross-compilation environments, therefore Automake 3013# will honor the `STRIP' environment variable to overrule this program. 3014if test "$cross_compiling" != no; then 3015 if test -n "$ac_tool_prefix"; then 3016 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3017set dummy ${ac_tool_prefix}strip; ac_word=$2 3018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3019$as_echo_n "checking for $ac_word... " >&6; } 3020if test "${ac_cv_prog_STRIP+set}" = set; then : 3021 $as_echo_n "(cached) " >&6 3022else 3023 if test -n "$STRIP"; then 3024 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3025else 3026as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3027for as_dir in $PATH 3028do 3029 IFS=$as_save_IFS 3030 test -z "$as_dir" && as_dir=. 3031 for ac_exec_ext in '' $ac_executable_extensions; do 3032 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3033 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3035 break 2 3036 fi 3037done 3038 done 3039IFS=$as_save_IFS 3040 3041fi 3042fi 3043STRIP=$ac_cv_prog_STRIP 3044if test -n "$STRIP"; then 3045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3046$as_echo "$STRIP" >&6; } 3047else 3048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3049$as_echo "no" >&6; } 3050fi 3051 3052 3053fi 3054if test -z "$ac_cv_prog_STRIP"; then 3055 ac_ct_STRIP=$STRIP 3056 # Extract the first word of "strip", so it can be a program name with args. 3057set dummy strip; ac_word=$2 3058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3059$as_echo_n "checking for $ac_word... " >&6; } 3060if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : 3061 $as_echo_n "(cached) " >&6 3062else 3063 if test -n "$ac_ct_STRIP"; then 3064 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3065else 3066as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3067for as_dir in $PATH 3068do 3069 IFS=$as_save_IFS 3070 test -z "$as_dir" && as_dir=. 3071 for ac_exec_ext in '' $ac_executable_extensions; do 3072 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3073 ac_cv_prog_ac_ct_STRIP="strip" 3074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3075 break 2 3076 fi 3077done 3078 done 3079IFS=$as_save_IFS 3080 3081fi 3082fi 3083ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3084if test -n "$ac_ct_STRIP"; then 3085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3086$as_echo "$ac_ct_STRIP" >&6; } 3087else 3088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3089$as_echo "no" >&6; } 3090fi 3091 3092 if test "x$ac_ct_STRIP" = x; then 3093 STRIP=":" 3094 else 3095 case $cross_compiling:$ac_tool_warned in 3096yes:) 3097{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3098$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3099ac_tool_warned=yes ;; 3100esac 3101 STRIP=$ac_ct_STRIP 3102 fi 3103else 3104 STRIP="$ac_cv_prog_STRIP" 3105fi 3106 3107fi 3108INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3109 3110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 3111$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 3112if test -z "$MKDIR_P"; then 3113 if test "${ac_cv_path_mkdir+set}" = set; then : 3114 $as_echo_n "(cached) " >&6 3115else 3116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3117for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3118do 3119 IFS=$as_save_IFS 3120 test -z "$as_dir" && as_dir=. 3121 for ac_prog in mkdir gmkdir; do 3122 for ac_exec_ext in '' $ac_executable_extensions; do 3123 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 3124 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 3125 'mkdir (GNU coreutils) '* | \ 3126 'mkdir (coreutils) '* | \ 3127 'mkdir (fileutils) '4.1*) 3128 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 3129 break 3;; 3130 esac 3131 done 3132 done 3133 done 3134IFS=$as_save_IFS 3135 3136fi 3137 3138 test -d ./--version && rmdir ./--version 3139 if test "${ac_cv_path_mkdir+set}" = set; then 3140 MKDIR_P="$ac_cv_path_mkdir -p" 3141 else 3142 # As a last resort, use the slow shell script. Don't cache a 3143 # value for MKDIR_P within a source directory, because that will 3144 # break other packages using the cache if that directory is 3145 # removed, or if the value is a relative name. 3146 MKDIR_P="$ac_install_sh -d" 3147 fi 3148fi 3149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3150$as_echo "$MKDIR_P" >&6; } 3151 3152mkdir_p="$MKDIR_P" 3153case $mkdir_p in 3154 [\\/$]* | ?:[\\/]*) ;; 3155 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 3156esac 3157 3158for ac_prog in gawk mawk nawk awk 3159do 3160 # Extract the first word of "$ac_prog", so it can be a program name with args. 3161set dummy $ac_prog; ac_word=$2 3162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3163$as_echo_n "checking for $ac_word... " >&6; } 3164if test "${ac_cv_prog_AWK+set}" = set; then : 3165 $as_echo_n "(cached) " >&6 3166else 3167 if test -n "$AWK"; then 3168 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3169else 3170as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3171for as_dir in $PATH 3172do 3173 IFS=$as_save_IFS 3174 test -z "$as_dir" && as_dir=. 3175 for ac_exec_ext in '' $ac_executable_extensions; do 3176 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3177 ac_cv_prog_AWK="$ac_prog" 3178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3179 break 2 3180 fi 3181done 3182 done 3183IFS=$as_save_IFS 3184 3185fi 3186fi 3187AWK=$ac_cv_prog_AWK 3188if test -n "$AWK"; then 3189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3190$as_echo "$AWK" >&6; } 3191else 3192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3193$as_echo "no" >&6; } 3194fi 3195 3196 3197 test -n "$AWK" && break 3198done 3199 3200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3201$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3202set x ${MAKE-make} 3203ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3204if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then : 3205 $as_echo_n "(cached) " >&6 3206else 3207 cat >conftest.make <<\_ACEOF 3208SHELL = /bin/sh 3209all: 3210 @echo '@@@%%%=$(MAKE)=@@@%%%' 3211_ACEOF 3212# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 3213case `${MAKE-make} -f conftest.make 2>/dev/null` in 3214 *@@@%%%=?*=@@@%%%*) 3215 eval ac_cv_prog_make_${ac_make}_set=yes;; 3216 *) 3217 eval ac_cv_prog_make_${ac_make}_set=no;; 3218esac 3219rm -f conftest.make 3220fi 3221if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3223$as_echo "yes" >&6; } 3224 SET_MAKE= 3225else 3226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3227$as_echo "no" >&6; } 3228 SET_MAKE="MAKE=${MAKE-make}" 3229fi 3230 3231rm -rf .tst 2>/dev/null 3232mkdir .tst 2>/dev/null 3233if test -d .tst; then 3234 am__leading_dot=. 3235else 3236 am__leading_dot=_ 3237fi 3238rmdir .tst 2>/dev/null 3239 3240if test "`cd $srcdir && pwd`" != "`pwd`"; then 3241 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3242 # is not polluted with repeated "-I." 3243 am__isrc=' -I$(srcdir)' 3244 # test to see if srcdir already configured 3245 if test -f $srcdir/config.status; then 3246 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3247 fi 3248fi 3249 3250# test whether we have cygpath 3251if test -z "$CYGPATH_W"; then 3252 if (cygpath --version) >/dev/null 2>/dev/null; then 3253 CYGPATH_W='cygpath -w' 3254 else 3255 CYGPATH_W=echo 3256 fi 3257fi 3258 3259 3260# Define the identity of the package. 3261 PACKAGE='ntp' 3262 VERSION='4.2.4p8' 3263 3264 3265cat >>confdefs.h <<_ACEOF 3266#define PACKAGE "$PACKAGE" 3267_ACEOF 3268 3269 3270cat >>confdefs.h <<_ACEOF 3271#define VERSION "$VERSION" 3272_ACEOF 3273 3274# Some tools Automake needs. 3275 3276ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3277 3278 3279AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3280 3281 3282AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3283 3284 3285AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3286 3287 3288MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3289 3290# We need awk for the "check" target. The system "awk" is bad on 3291# some platforms. 3292# Always define AMTAR for backward compatibility. 3293 3294AMTAR=${AMTAR-"${am_missing_run}tar"} 3295 3296am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 3297 3298 3299 3300 3301 3302# Make sure we can run config.sub. 3303$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 3304 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 3305 3306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 3307$as_echo_n "checking build system type... " >&6; } 3308if test "${ac_cv_build+set}" = set; then : 3309 $as_echo_n "(cached) " >&6 3310else 3311 ac_build_alias=$build_alias 3312test "x$ac_build_alias" = x && 3313 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3314test "x$ac_build_alias" = x && 3315 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 3316ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3317 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 3318 3319fi 3320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 3321$as_echo "$ac_cv_build" >&6; } 3322case $ac_cv_build in 3323*-*-*) ;; 3324*) as_fn_error "invalid value of canonical build" "$LINENO" 5;; 3325esac 3326build=$ac_cv_build 3327ac_save_IFS=$IFS; IFS='-' 3328set x $ac_cv_build 3329shift 3330build_cpu=$1 3331build_vendor=$2 3332shift; shift 3333# Remember, the first character of IFS is used to create $*, 3334# except with old shells: 3335build_os=$* 3336IFS=$ac_save_IFS 3337case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3338 3339 3340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 3341$as_echo_n "checking host system type... " >&6; } 3342if test "${ac_cv_host+set}" = set; then : 3343 $as_echo_n "(cached) " >&6 3344else 3345 if test "x$host_alias" = x; then 3346 ac_cv_host=$ac_cv_build 3347else 3348 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3349 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 3350fi 3351 3352fi 3353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 3354$as_echo "$ac_cv_host" >&6; } 3355case $ac_cv_host in 3356*-*-*) ;; 3357*) as_fn_error "invalid value of canonical host" "$LINENO" 5;; 3358esac 3359host=$ac_cv_host 3360ac_save_IFS=$IFS; IFS='-' 3361set x $ac_cv_host 3362shift 3363host_cpu=$1 3364host_vendor=$2 3365shift; shift 3366# Remember, the first character of IFS is used to create $*, 3367# except with old shells: 3368host_os=$* 3369IFS=$ac_save_IFS 3370case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3371 3372 3373 3374cat >>confdefs.h <<_ACEOF 3375#define STR_SYSTEM "$host" 3376_ACEOF 3377 3378ac_config_headers="$ac_config_headers config.h" 3379 3380 3381 3382ac_cv_var_atom_ok=no 3383ac_cv_var_oncore_ok=no 3384ac_cv_var_parse_ok=no 3385ac_cv_var_ripe_ncc_ok=no 3386ac_cv_var_jupiter_ok=no 3387 3388iCFLAGS="$CFLAGS" 3389 3390DEPDIR="${am__leading_dot}deps" 3391 3392ac_config_commands="$ac_config_commands depfiles" 3393 3394 3395am_make=${MAKE-make} 3396cat > confinc << 'END' 3397am__doit: 3398 @echo this is the am__doit target 3399.PHONY: am__doit 3400END 3401# If we don't find an include directive, just comment out the code. 3402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3403$as_echo_n "checking for style of include used by $am_make... " >&6; } 3404am__include="#" 3405am__quote= 3406_am_result=none 3407# First try GNU make style include. 3408echo "include confinc" > confmf 3409# Ignore all kinds of additional output from `make'. 3410case `$am_make -s -f confmf 2> /dev/null` in #( 3411*the\ am__doit\ target*) 3412 am__include=include 3413 am__quote= 3414 _am_result=GNU 3415 ;; 3416esac 3417# Now try BSD make style include. 3418if test "$am__include" = "#"; then 3419 echo '.include "confinc"' > confmf 3420 case `$am_make -s -f confmf 2> /dev/null` in #( 3421 *the\ am__doit\ target*) 3422 am__include=.include 3423 am__quote="\"" 3424 _am_result=BSD 3425 ;; 3426 esac 3427fi 3428 3429 3430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3431$as_echo "$_am_result" >&6; } 3432rm -f confinc confmf 3433 3434# Check whether --enable-dependency-tracking was given. 3435if test "${enable_dependency_tracking+set}" = set; then : 3436 enableval=$enable_dependency_tracking; 3437fi 3438 3439if test "x$enable_dependency_tracking" != xno; then 3440 am_depcomp="$ac_aux_dir/depcomp" 3441 AMDEPBACKSLASH='\' 3442fi 3443 if test "x$enable_dependency_tracking" != xno; then 3444 AMDEP_TRUE= 3445 AMDEP_FALSE='#' 3446else 3447 AMDEP_TRUE='#' 3448 AMDEP_FALSE= 3449fi 3450 3451 3452ac_ext=c 3453ac_cpp='$CPP $CPPFLAGS' 3454ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3455ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3456ac_compiler_gnu=$ac_cv_c_compiler_gnu 3457if test -n "$ac_tool_prefix"; then 3458 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3459set dummy ${ac_tool_prefix}gcc; ac_word=$2 3460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3461$as_echo_n "checking for $ac_word... " >&6; } 3462if test "${ac_cv_prog_CC+set}" = set; then : 3463 $as_echo_n "(cached) " >&6 3464else 3465 if test -n "$CC"; then 3466 ac_cv_prog_CC="$CC" # Let the user override the test. 3467else 3468as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3469for as_dir in $PATH 3470do 3471 IFS=$as_save_IFS 3472 test -z "$as_dir" && as_dir=. 3473 for ac_exec_ext in '' $ac_executable_extensions; do 3474 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3475 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3477 break 2 3478 fi 3479done 3480 done 3481IFS=$as_save_IFS 3482 3483fi 3484fi 3485CC=$ac_cv_prog_CC 3486if test -n "$CC"; then 3487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3488$as_echo "$CC" >&6; } 3489else 3490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3491$as_echo "no" >&6; } 3492fi 3493 3494 3495fi 3496if test -z "$ac_cv_prog_CC"; then 3497 ac_ct_CC=$CC 3498 # Extract the first word of "gcc", so it can be a program name with args. 3499set dummy gcc; ac_word=$2 3500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3501$as_echo_n "checking for $ac_word... " >&6; } 3502if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 3503 $as_echo_n "(cached) " >&6 3504else 3505 if test -n "$ac_ct_CC"; then 3506 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3507else 3508as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3509for as_dir in $PATH 3510do 3511 IFS=$as_save_IFS 3512 test -z "$as_dir" && as_dir=. 3513 for ac_exec_ext in '' $ac_executable_extensions; do 3514 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3515 ac_cv_prog_ac_ct_CC="gcc" 3516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3517 break 2 3518 fi 3519done 3520 done 3521IFS=$as_save_IFS 3522 3523fi 3524fi 3525ac_ct_CC=$ac_cv_prog_ac_ct_CC 3526if test -n "$ac_ct_CC"; then 3527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3528$as_echo "$ac_ct_CC" >&6; } 3529else 3530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3531$as_echo "no" >&6; } 3532fi 3533 3534 if test "x$ac_ct_CC" = x; then 3535 CC="" 3536 else 3537 case $cross_compiling:$ac_tool_warned in 3538yes:) 3539{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3540$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3541ac_tool_warned=yes ;; 3542esac 3543 CC=$ac_ct_CC 3544 fi 3545else 3546 CC="$ac_cv_prog_CC" 3547fi 3548 3549if test -z "$CC"; then 3550 if test -n "$ac_tool_prefix"; then 3551 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3552set dummy ${ac_tool_prefix}cc; ac_word=$2 3553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3554$as_echo_n "checking for $ac_word... " >&6; } 3555if test "${ac_cv_prog_CC+set}" = set; then : 3556 $as_echo_n "(cached) " >&6 3557else 3558 if test -n "$CC"; then 3559 ac_cv_prog_CC="$CC" # Let the user override the test. 3560else 3561as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3562for as_dir in $PATH 3563do 3564 IFS=$as_save_IFS 3565 test -z "$as_dir" && as_dir=. 3566 for ac_exec_ext in '' $ac_executable_extensions; do 3567 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3568 ac_cv_prog_CC="${ac_tool_prefix}cc" 3569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3570 break 2 3571 fi 3572done 3573 done 3574IFS=$as_save_IFS 3575 3576fi 3577fi 3578CC=$ac_cv_prog_CC 3579if test -n "$CC"; then 3580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3581$as_echo "$CC" >&6; } 3582else 3583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3584$as_echo "no" >&6; } 3585fi 3586 3587 3588 fi 3589fi 3590if test -z "$CC"; then 3591 # Extract the first word of "cc", so it can be a program name with args. 3592set dummy cc; ac_word=$2 3593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3594$as_echo_n "checking for $ac_word... " >&6; } 3595if test "${ac_cv_prog_CC+set}" = set; then : 3596 $as_echo_n "(cached) " >&6 3597else 3598 if test -n "$CC"; then 3599 ac_cv_prog_CC="$CC" # Let the user override the test. 3600else 3601 ac_prog_rejected=no 3602as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3603for as_dir in $PATH 3604do 3605 IFS=$as_save_IFS 3606 test -z "$as_dir" && as_dir=. 3607 for ac_exec_ext in '' $ac_executable_extensions; do 3608 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3609 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3610 ac_prog_rejected=yes 3611 continue 3612 fi 3613 ac_cv_prog_CC="cc" 3614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3615 break 2 3616 fi 3617done 3618 done 3619IFS=$as_save_IFS 3620 3621if test $ac_prog_rejected = yes; then 3622 # We found a bogon in the path, so make sure we never use it. 3623 set dummy $ac_cv_prog_CC 3624 shift 3625 if test $# != 0; then 3626 # We chose a different compiler from the bogus one. 3627 # However, it has the same basename, so the bogon will be chosen 3628 # first if we set CC to just the basename; use the full file name. 3629 shift 3630 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3631 fi 3632fi 3633fi 3634fi 3635CC=$ac_cv_prog_CC 3636if test -n "$CC"; then 3637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3638$as_echo "$CC" >&6; } 3639else 3640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3641$as_echo "no" >&6; } 3642fi 3643 3644 3645fi 3646if test -z "$CC"; then 3647 if test -n "$ac_tool_prefix"; then 3648 for ac_prog in cl.exe 3649 do 3650 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3651set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3653$as_echo_n "checking for $ac_word... " >&6; } 3654if test "${ac_cv_prog_CC+set}" = set; then : 3655 $as_echo_n "(cached) " >&6 3656else 3657 if test -n "$CC"; then 3658 ac_cv_prog_CC="$CC" # Let the user override the test. 3659else 3660as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3661for as_dir in $PATH 3662do 3663 IFS=$as_save_IFS 3664 test -z "$as_dir" && as_dir=. 3665 for ac_exec_ext in '' $ac_executable_extensions; do 3666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3667 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3669 break 2 3670 fi 3671done 3672 done 3673IFS=$as_save_IFS 3674 3675fi 3676fi 3677CC=$ac_cv_prog_CC 3678if test -n "$CC"; then 3679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3680$as_echo "$CC" >&6; } 3681else 3682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3683$as_echo "no" >&6; } 3684fi 3685 3686 3687 test -n "$CC" && break 3688 done 3689fi 3690if test -z "$CC"; then 3691 ac_ct_CC=$CC 3692 for ac_prog in cl.exe 3693do 3694 # Extract the first word of "$ac_prog", so it can be a program name with args. 3695set dummy $ac_prog; ac_word=$2 3696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3697$as_echo_n "checking for $ac_word... " >&6; } 3698if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 3699 $as_echo_n "(cached) " >&6 3700else 3701 if test -n "$ac_ct_CC"; then 3702 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3703else 3704as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3705for as_dir in $PATH 3706do 3707 IFS=$as_save_IFS 3708 test -z "$as_dir" && as_dir=. 3709 for ac_exec_ext in '' $ac_executable_extensions; do 3710 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3711 ac_cv_prog_ac_ct_CC="$ac_prog" 3712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3713 break 2 3714 fi 3715done 3716 done 3717IFS=$as_save_IFS 3718 3719fi 3720fi 3721ac_ct_CC=$ac_cv_prog_ac_ct_CC 3722if test -n "$ac_ct_CC"; then 3723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3724$as_echo "$ac_ct_CC" >&6; } 3725else 3726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3727$as_echo "no" >&6; } 3728fi 3729 3730 3731 test -n "$ac_ct_CC" && break 3732done 3733 3734 if test "x$ac_ct_CC" = x; then 3735 CC="" 3736 else 3737 case $cross_compiling:$ac_tool_warned in 3738yes:) 3739{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3740$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3741ac_tool_warned=yes ;; 3742esac 3743 CC=$ac_ct_CC 3744 fi 3745fi 3746 3747fi 3748 3749 3750test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3751$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3752as_fn_error "no acceptable C compiler found in \$PATH 3753See \`config.log' for more details." "$LINENO" 5; } 3754 3755# Provide some information about the compiler. 3756$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3757set X $ac_compile 3758ac_compiler=$2 3759for ac_option in --version -v -V -qversion; do 3760 { { ac_try="$ac_compiler $ac_option >&5" 3761case "(($ac_try" in 3762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3763 *) ac_try_echo=$ac_try;; 3764esac 3765eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3766$as_echo "$ac_try_echo"; } >&5 3767 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3768 ac_status=$? 3769 if test -s conftest.err; then 3770 sed '10a\ 3771... rest of stderr output deleted ... 3772 10q' conftest.err >conftest.er1 3773 cat conftest.er1 >&5 3774 fi 3775 rm -f conftest.er1 conftest.err 3776 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3777 test $ac_status = 0; } 3778done 3779 3780cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3781/* end confdefs.h. */ 3782 3783int 3784main () 3785{ 3786 3787 ; 3788 return 0; 3789} 3790_ACEOF 3791ac_clean_files_save=$ac_clean_files 3792ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3793# Try to create an executable without -o first, disregard a.out. 3794# It will help us diagnose broken compilers, and finding out an intuition 3795# of exeext. 3796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3797$as_echo_n "checking whether the C compiler works... " >&6; } 3798ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3799 3800# The possible output files: 3801ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3802 3803ac_rmfiles= 3804for ac_file in $ac_files 3805do 3806 case $ac_file in 3807 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3808 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3809 esac 3810done 3811rm -f $ac_rmfiles 3812 3813if { { ac_try="$ac_link_default" 3814case "(($ac_try" in 3815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3816 *) ac_try_echo=$ac_try;; 3817esac 3818eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3819$as_echo "$ac_try_echo"; } >&5 3820 (eval "$ac_link_default") 2>&5 3821 ac_status=$? 3822 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3823 test $ac_status = 0; }; then : 3824 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3825# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3826# in a Makefile. We should not override ac_cv_exeext if it was cached, 3827# so that the user can short-circuit this test for compilers unknown to 3828# Autoconf. 3829for ac_file in $ac_files '' 3830do 3831 test -f "$ac_file" || continue 3832 case $ac_file in 3833 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3834 ;; 3835 [ab].out ) 3836 # We found the default executable, but exeext='' is most 3837 # certainly right. 3838 break;; 3839 *.* ) 3840 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3841 then :; else 3842 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3843 fi 3844 # We set ac_cv_exeext here because the later test for it is not 3845 # safe: cross compilers may not add the suffix if given an `-o' 3846 # argument, so we may need to know it at that point already. 3847 # Even if this section looks crufty: it has the advantage of 3848 # actually working. 3849 break;; 3850 * ) 3851 break;; 3852 esac 3853done 3854test "$ac_cv_exeext" = no && ac_cv_exeext= 3855 3856else 3857 ac_file='' 3858fi 3859if test -z "$ac_file"; then : 3860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3861$as_echo "no" >&6; } 3862$as_echo "$as_me: failed program was:" >&5 3863sed 's/^/| /' conftest.$ac_ext >&5 3864 3865{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3866$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3867{ as_fn_set_status 77 3868as_fn_error "C compiler cannot create executables 3869See \`config.log' for more details." "$LINENO" 5; }; } 3870else 3871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3872$as_echo "yes" >&6; } 3873fi 3874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3875$as_echo_n "checking for C compiler default output file name... " >&6; } 3876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3877$as_echo "$ac_file" >&6; } 3878ac_exeext=$ac_cv_exeext 3879 3880rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3881ac_clean_files=$ac_clean_files_save 3882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3883$as_echo_n "checking for suffix of executables... " >&6; } 3884if { { ac_try="$ac_link" 3885case "(($ac_try" in 3886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3887 *) ac_try_echo=$ac_try;; 3888esac 3889eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3890$as_echo "$ac_try_echo"; } >&5 3891 (eval "$ac_link") 2>&5 3892 ac_status=$? 3893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3894 test $ac_status = 0; }; then : 3895 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3896# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3897# work properly (i.e., refer to `conftest.exe'), while it won't with 3898# `rm'. 3899for ac_file in conftest.exe conftest conftest.*; do 3900 test -f "$ac_file" || continue 3901 case $ac_file in 3902 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3903 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3904 break;; 3905 * ) break;; 3906 esac 3907done 3908else 3909 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3910$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3911as_fn_error "cannot compute suffix of executables: cannot compile and link 3912See \`config.log' for more details." "$LINENO" 5; } 3913fi 3914rm -f conftest conftest$ac_cv_exeext 3915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3916$as_echo "$ac_cv_exeext" >&6; } 3917 3918rm -f conftest.$ac_ext 3919EXEEXT=$ac_cv_exeext 3920ac_exeext=$EXEEXT 3921cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3922/* end confdefs.h. */ 3923#include <stdio.h> 3924int 3925main () 3926{ 3927FILE *f = fopen ("conftest.out", "w"); 3928 return ferror (f) || fclose (f) != 0; 3929 3930 ; 3931 return 0; 3932} 3933_ACEOF 3934ac_clean_files="$ac_clean_files conftest.out" 3935# Check that the compiler produces executables we can run. If not, either 3936# the compiler is broken, or we cross compile. 3937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3938$as_echo_n "checking whether we are cross compiling... " >&6; } 3939if test "$cross_compiling" != yes; then 3940 { { ac_try="$ac_link" 3941case "(($ac_try" in 3942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3943 *) ac_try_echo=$ac_try;; 3944esac 3945eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3946$as_echo "$ac_try_echo"; } >&5 3947 (eval "$ac_link") 2>&5 3948 ac_status=$? 3949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3950 test $ac_status = 0; } 3951 if { ac_try='./conftest$ac_cv_exeext' 3952 { { case "(($ac_try" in 3953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3954 *) ac_try_echo=$ac_try;; 3955esac 3956eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3957$as_echo "$ac_try_echo"; } >&5 3958 (eval "$ac_try") 2>&5 3959 ac_status=$? 3960 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3961 test $ac_status = 0; }; }; then 3962 cross_compiling=no 3963 else 3964 if test "$cross_compiling" = maybe; then 3965 cross_compiling=yes 3966 else 3967 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3968$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3969as_fn_error "cannot run C compiled programs. 3970If you meant to cross compile, use \`--host'. 3971See \`config.log' for more details." "$LINENO" 5; } 3972 fi 3973 fi 3974fi 3975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3976$as_echo "$cross_compiling" >&6; } 3977 3978rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3979ac_clean_files=$ac_clean_files_save 3980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3981$as_echo_n "checking for suffix of object files... " >&6; } 3982if test "${ac_cv_objext+set}" = set; then : 3983 $as_echo_n "(cached) " >&6 3984else 3985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3986/* end confdefs.h. */ 3987 3988int 3989main () 3990{ 3991 3992 ; 3993 return 0; 3994} 3995_ACEOF 3996rm -f conftest.o conftest.obj 3997if { { ac_try="$ac_compile" 3998case "(($ac_try" in 3999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4000 *) ac_try_echo=$ac_try;; 4001esac 4002eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4003$as_echo "$ac_try_echo"; } >&5 4004 (eval "$ac_compile") 2>&5 4005 ac_status=$? 4006 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4007 test $ac_status = 0; }; then : 4008 for ac_file in conftest.o conftest.obj conftest.*; do 4009 test -f "$ac_file" || continue; 4010 case $ac_file in 4011 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4012 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4013 break;; 4014 esac 4015done 4016else 4017 $as_echo "$as_me: failed program was:" >&5 4018sed 's/^/| /' conftest.$ac_ext >&5 4019 4020{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4021$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4022as_fn_error "cannot compute suffix of object files: cannot compile 4023See \`config.log' for more details." "$LINENO" 5; } 4024fi 4025rm -f conftest.$ac_cv_objext conftest.$ac_ext 4026fi 4027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4028$as_echo "$ac_cv_objext" >&6; } 4029OBJEXT=$ac_cv_objext 4030ac_objext=$OBJEXT 4031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4032$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4033if test "${ac_cv_c_compiler_gnu+set}" = set; then : 4034 $as_echo_n "(cached) " >&6 4035else 4036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4037/* end confdefs.h. */ 4038 4039int 4040main () 4041{ 4042#ifndef __GNUC__ 4043 choke me 4044#endif 4045 4046 ; 4047 return 0; 4048} 4049_ACEOF 4050if ac_fn_c_try_compile "$LINENO"; then : 4051 ac_compiler_gnu=yes 4052else 4053 ac_compiler_gnu=no 4054fi 4055rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4056ac_cv_c_compiler_gnu=$ac_compiler_gnu 4057 4058fi 4059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4060$as_echo "$ac_cv_c_compiler_gnu" >&6; } 4061if test $ac_compiler_gnu = yes; then 4062 GCC=yes 4063else 4064 GCC= 4065fi 4066ac_test_CFLAGS=${CFLAGS+set} 4067ac_save_CFLAGS=$CFLAGS 4068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4069$as_echo_n "checking whether $CC accepts -g... " >&6; } 4070if test "${ac_cv_prog_cc_g+set}" = set; then : 4071 $as_echo_n "(cached) " >&6 4072else 4073 ac_save_c_werror_flag=$ac_c_werror_flag 4074 ac_c_werror_flag=yes 4075 ac_cv_prog_cc_g=no 4076 CFLAGS="-g" 4077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4078/* end confdefs.h. */ 4079 4080int 4081main () 4082{ 4083 4084 ; 4085 return 0; 4086} 4087_ACEOF 4088if ac_fn_c_try_compile "$LINENO"; then : 4089 ac_cv_prog_cc_g=yes 4090else 4091 CFLAGS="" 4092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4093/* end confdefs.h. */ 4094 4095int 4096main () 4097{ 4098 4099 ; 4100 return 0; 4101} 4102_ACEOF 4103if ac_fn_c_try_compile "$LINENO"; then : 4104 4105else 4106 ac_c_werror_flag=$ac_save_c_werror_flag 4107 CFLAGS="-g" 4108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4109/* end confdefs.h. */ 4110 4111int 4112main () 4113{ 4114 4115 ; 4116 return 0; 4117} 4118_ACEOF 4119if ac_fn_c_try_compile "$LINENO"; then : 4120 ac_cv_prog_cc_g=yes 4121fi 4122rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4123fi 4124rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4125fi 4126rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4127 ac_c_werror_flag=$ac_save_c_werror_flag 4128fi 4129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4130$as_echo "$ac_cv_prog_cc_g" >&6; } 4131if test "$ac_test_CFLAGS" = set; then 4132 CFLAGS=$ac_save_CFLAGS 4133elif test $ac_cv_prog_cc_g = yes; then 4134 if test "$GCC" = yes; then 4135 CFLAGS="-g -O2" 4136 else 4137 CFLAGS="-g" 4138 fi 4139else 4140 if test "$GCC" = yes; then 4141 CFLAGS="-O2" 4142 else 4143 CFLAGS= 4144 fi 4145fi 4146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4147$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4148if test "${ac_cv_prog_cc_c89+set}" = set; then : 4149 $as_echo_n "(cached) " >&6 4150else 4151 ac_cv_prog_cc_c89=no 4152ac_save_CC=$CC 4153cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4154/* end confdefs.h. */ 4155#include <stdarg.h> 4156#include <stdio.h> 4157#include <sys/types.h> 4158#include <sys/stat.h> 4159/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4160struct buf { int x; }; 4161FILE * (*rcsopen) (struct buf *, struct stat *, int); 4162static char *e (p, i) 4163 char **p; 4164 int i; 4165{ 4166 return p[i]; 4167} 4168static char *f (char * (*g) (char **, int), char **p, ...) 4169{ 4170 char *s; 4171 va_list v; 4172 va_start (v,p); 4173 s = g (p, va_arg (v,int)); 4174 va_end (v); 4175 return s; 4176} 4177 4178/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4179 function prototypes and stuff, but not '\xHH' hex character constants. 4180 These don't provoke an error unfortunately, instead are silently treated 4181 as 'x'. The following induces an error, until -std is added to get 4182 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4183 array size at least. It's necessary to write '\x00'==0 to get something 4184 that's true only with -std. */ 4185int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4186 4187/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4188 inside strings and character constants. */ 4189#define FOO(x) 'x' 4190int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4191 4192int test (int i, double x); 4193struct s1 {int (*f) (int a);}; 4194struct s2 {int (*f) (double a);}; 4195int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4196int argc; 4197char **argv; 4198int 4199main () 4200{ 4201return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4202 ; 4203 return 0; 4204} 4205_ACEOF 4206for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4207 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4208do 4209 CC="$ac_save_CC $ac_arg" 4210 if ac_fn_c_try_compile "$LINENO"; then : 4211 ac_cv_prog_cc_c89=$ac_arg 4212fi 4213rm -f core conftest.err conftest.$ac_objext 4214 test "x$ac_cv_prog_cc_c89" != "xno" && break 4215done 4216rm -f conftest.$ac_ext 4217CC=$ac_save_CC 4218 4219fi 4220# AC_CACHE_VAL 4221case "x$ac_cv_prog_cc_c89" in 4222 x) 4223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4224$as_echo "none needed" >&6; } ;; 4225 xno) 4226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4227$as_echo "unsupported" >&6; } ;; 4228 *) 4229 CC="$CC $ac_cv_prog_cc_c89" 4230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4231$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4232esac 4233if test "x$ac_cv_prog_cc_c89" != xno; then : 4234 4235fi 4236 4237ac_ext=c 4238ac_cpp='$CPP $CPPFLAGS' 4239ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4240ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4241ac_compiler_gnu=$ac_cv_c_compiler_gnu 4242 4243depcc="$CC" am_compiler_list= 4244 4245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4246$as_echo_n "checking dependency style of $depcc... " >&6; } 4247if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : 4248 $as_echo_n "(cached) " >&6 4249else 4250 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4251 # We make a subdir and do the tests there. Otherwise we can end up 4252 # making bogus files that we don't know about and never remove. For 4253 # instance it was reported that on HP-UX the gcc test will end up 4254 # making a dummy file named `D' -- because `-MD' means `put the output 4255 # in D'. 4256 mkdir conftest.dir 4257 # Copy depcomp to subdir because otherwise we won't find it if we're 4258 # using a relative directory. 4259 cp "$am_depcomp" conftest.dir 4260 cd conftest.dir 4261 # We will build objects and dependencies in a subdirectory because 4262 # it helps to detect inapplicable dependency modes. For instance 4263 # both Tru64's cc and ICC support -MD to output dependencies as a 4264 # side effect of compilation, but ICC will put the dependencies in 4265 # the current directory while Tru64 will put them in the object 4266 # directory. 4267 mkdir sub 4268 4269 am_cv_CC_dependencies_compiler_type=none 4270 if test "$am_compiler_list" = ""; then 4271 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4272 fi 4273 am__universal=false 4274 case " $depcc " in #( 4275 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4276 esac 4277 4278 for depmode in $am_compiler_list; do 4279 # Setup a source with many dependencies, because some compilers 4280 # like to wrap large dependency lists on column 80 (with \), and 4281 # we should not choose a depcomp mode which is confused by this. 4282 # 4283 # We need to recreate these files for each test, as the compiler may 4284 # overwrite some of them when testing with obscure command lines. 4285 # This happens at least with the AIX C compiler. 4286 : > sub/conftest.c 4287 for i in 1 2 3 4 5 6; do 4288 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4289 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 4290 # Solaris 8's {/usr,}/bin/sh. 4291 touch sub/conftst$i.h 4292 done 4293 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4294 4295 # We check with `-c' and `-o' for the sake of the "dashmstdout" 4296 # mode. It turns out that the SunPro C++ compiler does not properly 4297 # handle `-M -o', and we need to detect this. Also, some Intel 4298 # versions had trouble with output in subdirs 4299 am__obj=sub/conftest.${OBJEXT-o} 4300 am__minus_obj="-o $am__obj" 4301 case $depmode in 4302 gcc) 4303 # This depmode causes a compiler race in universal mode. 4304 test "$am__universal" = false || continue 4305 ;; 4306 nosideeffect) 4307 # after this tag, mechanisms are not by side-effect, so they'll 4308 # only be used when explicitly requested 4309 if test "x$enable_dependency_tracking" = xyes; then 4310 continue 4311 else 4312 break 4313 fi 4314 ;; 4315 msvisualcpp | msvcmsys) 4316 # This compiler won't grok `-c -o', but also, the minuso test has 4317 # not run yet. These depmodes are late enough in the game, and 4318 # so weak that their functioning should not be impacted. 4319 am__obj=conftest.${OBJEXT-o} 4320 am__minus_obj= 4321 ;; 4322 none) break ;; 4323 esac 4324 if depmode=$depmode \ 4325 source=sub/conftest.c object=$am__obj \ 4326 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4327 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4328 >/dev/null 2>conftest.err && 4329 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4330 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4331 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4332 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4333 # icc doesn't choke on unknown options, it will just issue warnings 4334 # or remarks (even with -Werror). So we grep stderr for any message 4335 # that says an option was ignored or not supported. 4336 # When given -MP, icc 7.0 and 7.1 complain thusly: 4337 # icc: Command line warning: ignoring option '-M'; no argument required 4338 # The diagnosis changed in icc 8.0: 4339 # icc: Command line remark: option '-MP' not supported 4340 if (grep 'ignoring option' conftest.err || 4341 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4342 am_cv_CC_dependencies_compiler_type=$depmode 4343 break 4344 fi 4345 fi 4346 done 4347 4348 cd .. 4349 rm -rf conftest.dir 4350else 4351 am_cv_CC_dependencies_compiler_type=none 4352fi 4353 4354fi 4355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4356$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4357CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4358 4359 if 4360 test "x$enable_dependency_tracking" != xno \ 4361 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4362 am__fastdepCC_TRUE= 4363 am__fastdepCC_FALSE='#' 4364else 4365 am__fastdepCC_TRUE='#' 4366 am__fastdepCC_FALSE= 4367fi 4368 4369 4370 4371ac_ext=c 4372ac_cpp='$CPP $CPPFLAGS' 4373ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4374ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4375ac_compiler_gnu=$ac_cv_c_compiler_gnu 4376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4377$as_echo_n "checking how to run the C preprocessor... " >&6; } 4378# On Suns, sometimes $CPP names a directory. 4379if test -n "$CPP" && test -d "$CPP"; then 4380 CPP= 4381fi 4382if test -z "$CPP"; then 4383 if test "${ac_cv_prog_CPP+set}" = set; then : 4384 $as_echo_n "(cached) " >&6 4385else 4386 # Double quotes because CPP needs to be expanded 4387 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4388 do 4389 ac_preproc_ok=false 4390for ac_c_preproc_warn_flag in '' yes 4391do 4392 # Use a header file that comes with gcc, so configuring glibc 4393 # with a fresh cross-compiler works. 4394 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4395 # <limits.h> exists even on freestanding compilers. 4396 # On the NeXT, cc -E runs the code through the compiler's parser, 4397 # not just through cpp. "Syntax error" is here to catch this case. 4398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4399/* end confdefs.h. */ 4400#ifdef __STDC__ 4401# include <limits.h> 4402#else 4403# include <assert.h> 4404#endif 4405 Syntax error 4406_ACEOF 4407if ac_fn_c_try_cpp "$LINENO"; then : 4408 4409else 4410 # Broken: fails on valid input. 4411continue 4412fi 4413rm -f conftest.err conftest.$ac_ext 4414 4415 # OK, works on sane cases. Now check whether nonexistent headers 4416 # can be detected and how. 4417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4418/* end confdefs.h. */ 4419#include <ac_nonexistent.h> 4420_ACEOF 4421if ac_fn_c_try_cpp "$LINENO"; then : 4422 # Broken: success on invalid input. 4423continue 4424else 4425 # Passes both tests. 4426ac_preproc_ok=: 4427break 4428fi 4429rm -f conftest.err conftest.$ac_ext 4430 4431done 4432# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4433rm -f conftest.err conftest.$ac_ext 4434if $ac_preproc_ok; then : 4435 break 4436fi 4437 4438 done 4439 ac_cv_prog_CPP=$CPP 4440 4441fi 4442 CPP=$ac_cv_prog_CPP 4443else 4444 ac_cv_prog_CPP=$CPP 4445fi 4446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4447$as_echo "$CPP" >&6; } 4448ac_preproc_ok=false 4449for ac_c_preproc_warn_flag in '' yes 4450do 4451 # Use a header file that comes with gcc, so configuring glibc 4452 # with a fresh cross-compiler works. 4453 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4454 # <limits.h> exists even on freestanding compilers. 4455 # On the NeXT, cc -E runs the code through the compiler's parser, 4456 # not just through cpp. "Syntax error" is here to catch this case. 4457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4458/* end confdefs.h. */ 4459#ifdef __STDC__ 4460# include <limits.h> 4461#else 4462# include <assert.h> 4463#endif 4464 Syntax error 4465_ACEOF 4466if ac_fn_c_try_cpp "$LINENO"; then : 4467 4468else 4469 # Broken: fails on valid input. 4470continue 4471fi 4472rm -f conftest.err conftest.$ac_ext 4473 4474 # OK, works on sane cases. Now check whether nonexistent headers 4475 # can be detected and how. 4476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4477/* end confdefs.h. */ 4478#include <ac_nonexistent.h> 4479_ACEOF 4480if ac_fn_c_try_cpp "$LINENO"; then : 4481 # Broken: success on invalid input. 4482continue 4483else 4484 # Passes both tests. 4485ac_preproc_ok=: 4486break 4487fi 4488rm -f conftest.err conftest.$ac_ext 4489 4490done 4491# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4492rm -f conftest.err conftest.$ac_ext 4493if $ac_preproc_ok; then : 4494 4495else 4496 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4497$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4498as_fn_error "C preprocessor \"$CPP\" fails sanity check 4499See \`config.log' for more details." "$LINENO" 5; } 4500fi 4501 4502ac_ext=c 4503ac_cpp='$CPP $CPPFLAGS' 4504ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4505ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4506ac_compiler_gnu=$ac_cv_c_compiler_gnu 4507 4508 4509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4510$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4511if test "${ac_cv_path_GREP+set}" = set; then : 4512 $as_echo_n "(cached) " >&6 4513else 4514 if test -z "$GREP"; then 4515 ac_path_GREP_found=false 4516 # Loop through the user's path and test for each of PROGNAME-LIST 4517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4518for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4519do 4520 IFS=$as_save_IFS 4521 test -z "$as_dir" && as_dir=. 4522 for ac_prog in grep ggrep; do 4523 for ac_exec_ext in '' $ac_executable_extensions; do 4524 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4525 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4526# Check for GNU ac_path_GREP and select it if it is found. 4527 # Check for GNU $ac_path_GREP 4528case `"$ac_path_GREP" --version 2>&1` in 4529*GNU*) 4530 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4531*) 4532 ac_count=0 4533 $as_echo_n 0123456789 >"conftest.in" 4534 while : 4535 do 4536 cat "conftest.in" "conftest.in" >"conftest.tmp" 4537 mv "conftest.tmp" "conftest.in" 4538 cp "conftest.in" "conftest.nl" 4539 $as_echo 'GREP' >> "conftest.nl" 4540 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4541 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4542 as_fn_arith $ac_count + 1 && ac_count=$as_val 4543 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4544 # Best one so far, save it but keep looking for a better one 4545 ac_cv_path_GREP="$ac_path_GREP" 4546 ac_path_GREP_max=$ac_count 4547 fi 4548 # 10*(2^10) chars as input seems more than enough 4549 test $ac_count -gt 10 && break 4550 done 4551 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4552esac 4553 4554 $ac_path_GREP_found && break 3 4555 done 4556 done 4557 done 4558IFS=$as_save_IFS 4559 if test -z "$ac_cv_path_GREP"; then 4560 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4561 fi 4562else 4563 ac_cv_path_GREP=$GREP 4564fi 4565 4566fi 4567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4568$as_echo "$ac_cv_path_GREP" >&6; } 4569 GREP="$ac_cv_path_GREP" 4570 4571 4572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4573$as_echo_n "checking for egrep... " >&6; } 4574if test "${ac_cv_path_EGREP+set}" = set; then : 4575 $as_echo_n "(cached) " >&6 4576else 4577 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4578 then ac_cv_path_EGREP="$GREP -E" 4579 else 4580 if test -z "$EGREP"; then 4581 ac_path_EGREP_found=false 4582 # Loop through the user's path and test for each of PROGNAME-LIST 4583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4584for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4585do 4586 IFS=$as_save_IFS 4587 test -z "$as_dir" && as_dir=. 4588 for ac_prog in egrep; do 4589 for ac_exec_ext in '' $ac_executable_extensions; do 4590 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4591 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4592# Check for GNU ac_path_EGREP and select it if it is found. 4593 # Check for GNU $ac_path_EGREP 4594case `"$ac_path_EGREP" --version 2>&1` in 4595*GNU*) 4596 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4597*) 4598 ac_count=0 4599 $as_echo_n 0123456789 >"conftest.in" 4600 while : 4601 do 4602 cat "conftest.in" "conftest.in" >"conftest.tmp" 4603 mv "conftest.tmp" "conftest.in" 4604 cp "conftest.in" "conftest.nl" 4605 $as_echo 'EGREP' >> "conftest.nl" 4606 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4607 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4608 as_fn_arith $ac_count + 1 && ac_count=$as_val 4609 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4610 # Best one so far, save it but keep looking for a better one 4611 ac_cv_path_EGREP="$ac_path_EGREP" 4612 ac_path_EGREP_max=$ac_count 4613 fi 4614 # 10*(2^10) chars as input seems more than enough 4615 test $ac_count -gt 10 && break 4616 done 4617 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4618esac 4619 4620 $ac_path_EGREP_found && break 3 4621 done 4622 done 4623 done 4624IFS=$as_save_IFS 4625 if test -z "$ac_cv_path_EGREP"; then 4626 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4627 fi 4628else 4629 ac_cv_path_EGREP=$EGREP 4630fi 4631 4632 fi 4633fi 4634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4635$as_echo "$ac_cv_path_EGREP" >&6; } 4636 EGREP="$ac_cv_path_EGREP" 4637 4638 4639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4640$as_echo_n "checking for ANSI C header files... " >&6; } 4641if test "${ac_cv_header_stdc+set}" = set; then : 4642 $as_echo_n "(cached) " >&6 4643else 4644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4645/* end confdefs.h. */ 4646#include <stdlib.h> 4647#include <stdarg.h> 4648#include <string.h> 4649#include <float.h> 4650 4651int 4652main () 4653{ 4654 4655 ; 4656 return 0; 4657} 4658_ACEOF 4659if ac_fn_c_try_compile "$LINENO"; then : 4660 ac_cv_header_stdc=yes 4661else 4662 ac_cv_header_stdc=no 4663fi 4664rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4665 4666if test $ac_cv_header_stdc = yes; then 4667 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4669/* end confdefs.h. */ 4670#include <string.h> 4671 4672_ACEOF 4673if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4674 $EGREP "memchr" >/dev/null 2>&1; then : 4675 4676else 4677 ac_cv_header_stdc=no 4678fi 4679rm -f conftest* 4680 4681fi 4682 4683if test $ac_cv_header_stdc = yes; then 4684 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4686/* end confdefs.h. */ 4687#include <stdlib.h> 4688 4689_ACEOF 4690if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4691 $EGREP "free" >/dev/null 2>&1; then : 4692 4693else 4694 ac_cv_header_stdc=no 4695fi 4696rm -f conftest* 4697 4698fi 4699 4700if test $ac_cv_header_stdc = yes; then 4701 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4702 if test "$cross_compiling" = yes; then : 4703 : 4704else 4705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4706/* end confdefs.h. */ 4707#include <ctype.h> 4708#include <stdlib.h> 4709#if ((' ' & 0x0FF) == 0x020) 4710# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4711# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4712#else 4713# define ISLOWER(c) \ 4714 (('a' <= (c) && (c) <= 'i') \ 4715 || ('j' <= (c) && (c) <= 'r') \ 4716 || ('s' <= (c) && (c) <= 'z')) 4717# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4718#endif 4719 4720#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4721int 4722main () 4723{ 4724 int i; 4725 for (i = 0; i < 256; i++) 4726 if (XOR (islower (i), ISLOWER (i)) 4727 || toupper (i) != TOUPPER (i)) 4728 return 2; 4729 return 0; 4730} 4731_ACEOF 4732if ac_fn_c_try_run "$LINENO"; then : 4733 4734else 4735 ac_cv_header_stdc=no 4736fi 4737rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4738 conftest.$ac_objext conftest.beam conftest.$ac_ext 4739fi 4740 4741fi 4742fi 4743{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4744$as_echo "$ac_cv_header_stdc" >&6; } 4745if test $ac_cv_header_stdc = yes; then 4746 4747$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4748 4749fi 4750 4751# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4752for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4753 inttypes.h stdint.h unistd.h 4754do : 4755 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4756ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4757" 4758eval as_val=\$$as_ac_Header 4759 if test "x$as_val" = x""yes; then : 4760 cat >>confdefs.h <<_ACEOF 4761#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4762_ACEOF 4763 4764fi 4765 4766done 4767 4768 4769 4770 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 4771if test "x$ac_cv_header_minix_config_h" = x""yes; then : 4772 MINIX=yes 4773else 4774 MINIX= 4775fi 4776 4777 4778 if test "$MINIX" = yes; then 4779 4780$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 4781 4782 4783$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 4784 4785 4786$as_echo "#define _MINIX 1" >>confdefs.h 4787 4788 fi 4789 4790 4791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 4792$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 4793if test "${ac_cv_safe_to_define___extensions__+set}" = set; then : 4794 $as_echo_n "(cached) " >&6 4795else 4796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4797/* end confdefs.h. */ 4798 4799# define __EXTENSIONS__ 1 4800 $ac_includes_default 4801int 4802main () 4803{ 4804 4805 ; 4806 return 0; 4807} 4808_ACEOF 4809if ac_fn_c_try_compile "$LINENO"; then : 4810 ac_cv_safe_to_define___extensions__=yes 4811else 4812 ac_cv_safe_to_define___extensions__=no 4813fi 4814rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4815fi 4816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 4817$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 4818 test $ac_cv_safe_to_define___extensions__ = yes && 4819 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 4820 4821 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 4822 4823 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 4824 4825 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 4826 4827 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 4828 4829 4830 4831 4832 4833# So far, the only shared library we might use is libopts. 4834# It's a small library - we might as well use a static version of it. 4835# Check whether --enable-shared was given. 4836if test "${enable_shared+set}" = set; then : 4837 enableval=$enable_shared; p=${PACKAGE-default} 4838 case $enableval in 4839 yes) enable_shared=yes ;; 4840 no) enable_shared=no ;; 4841 *) 4842 enable_shared=no 4843 # Look at the argument we got. We use all the common list separators. 4844 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 4845 for pkg in $enableval; do 4846 IFS="$lt_save_ifs" 4847 if test "X$pkg" = "X$p"; then 4848 enable_shared=yes 4849 fi 4850 done 4851 IFS="$lt_save_ifs" 4852 ;; 4853 esac 4854else 4855 enable_shared=no 4856fi 4857 4858 4859 4860 4861ac_ext=c 4862ac_cpp='$CPP $CPPFLAGS' 4863ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4864ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4865ac_compiler_gnu=$ac_cv_c_compiler_gnu 4866if test -n "$ac_tool_prefix"; then 4867 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 4868set dummy ${ac_tool_prefix}gcc; ac_word=$2 4869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4870$as_echo_n "checking for $ac_word... " >&6; } 4871if test "${ac_cv_prog_CC+set}" = set; then : 4872 $as_echo_n "(cached) " >&6 4873else 4874 if test -n "$CC"; then 4875 ac_cv_prog_CC="$CC" # Let the user override the test. 4876else 4877as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4878for as_dir in $PATH 4879do 4880 IFS=$as_save_IFS 4881 test -z "$as_dir" && as_dir=. 4882 for ac_exec_ext in '' $ac_executable_extensions; do 4883 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4884 ac_cv_prog_CC="${ac_tool_prefix}gcc" 4885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4886 break 2 4887 fi 4888done 4889 done 4890IFS=$as_save_IFS 4891 4892fi 4893fi 4894CC=$ac_cv_prog_CC 4895if test -n "$CC"; then 4896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4897$as_echo "$CC" >&6; } 4898else 4899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4900$as_echo "no" >&6; } 4901fi 4902 4903 4904fi 4905if test -z "$ac_cv_prog_CC"; then 4906 ac_ct_CC=$CC 4907 # Extract the first word of "gcc", so it can be a program name with args. 4908set dummy gcc; ac_word=$2 4909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4910$as_echo_n "checking for $ac_word... " >&6; } 4911if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 4912 $as_echo_n "(cached) " >&6 4913else 4914 if test -n "$ac_ct_CC"; then 4915 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4916else 4917as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4918for as_dir in $PATH 4919do 4920 IFS=$as_save_IFS 4921 test -z "$as_dir" && as_dir=. 4922 for ac_exec_ext in '' $ac_executable_extensions; do 4923 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4924 ac_cv_prog_ac_ct_CC="gcc" 4925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4926 break 2 4927 fi 4928done 4929 done 4930IFS=$as_save_IFS 4931 4932fi 4933fi 4934ac_ct_CC=$ac_cv_prog_ac_ct_CC 4935if test -n "$ac_ct_CC"; then 4936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4937$as_echo "$ac_ct_CC" >&6; } 4938else 4939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4940$as_echo "no" >&6; } 4941fi 4942 4943 if test "x$ac_ct_CC" = x; then 4944 CC="" 4945 else 4946 case $cross_compiling:$ac_tool_warned in 4947yes:) 4948{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4949$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4950ac_tool_warned=yes ;; 4951esac 4952 CC=$ac_ct_CC 4953 fi 4954else 4955 CC="$ac_cv_prog_CC" 4956fi 4957 4958if test -z "$CC"; then 4959 if test -n "$ac_tool_prefix"; then 4960 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 4961set dummy ${ac_tool_prefix}cc; ac_word=$2 4962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4963$as_echo_n "checking for $ac_word... " >&6; } 4964if test "${ac_cv_prog_CC+set}" = set; then : 4965 $as_echo_n "(cached) " >&6 4966else 4967 if test -n "$CC"; then 4968 ac_cv_prog_CC="$CC" # Let the user override the test. 4969else 4970as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4971for as_dir in $PATH 4972do 4973 IFS=$as_save_IFS 4974 test -z "$as_dir" && as_dir=. 4975 for ac_exec_ext in '' $ac_executable_extensions; do 4976 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4977 ac_cv_prog_CC="${ac_tool_prefix}cc" 4978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4979 break 2 4980 fi 4981done 4982 done 4983IFS=$as_save_IFS 4984 4985fi 4986fi 4987CC=$ac_cv_prog_CC 4988if test -n "$CC"; then 4989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4990$as_echo "$CC" >&6; } 4991else 4992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4993$as_echo "no" >&6; } 4994fi 4995 4996 4997 fi 4998fi 4999if test -z "$CC"; then 5000 # Extract the first word of "cc", so it can be a program name with args. 5001set dummy cc; ac_word=$2 5002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5003$as_echo_n "checking for $ac_word... " >&6; } 5004if test "${ac_cv_prog_CC+set}" = set; then : 5005 $as_echo_n "(cached) " >&6 5006else 5007 if test -n "$CC"; then 5008 ac_cv_prog_CC="$CC" # Let the user override the test. 5009else 5010 ac_prog_rejected=no 5011as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5012for as_dir in $PATH 5013do 5014 IFS=$as_save_IFS 5015 test -z "$as_dir" && as_dir=. 5016 for ac_exec_ext in '' $ac_executable_extensions; do 5017 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5018 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 5019 ac_prog_rejected=yes 5020 continue 5021 fi 5022 ac_cv_prog_CC="cc" 5023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5024 break 2 5025 fi 5026done 5027 done 5028IFS=$as_save_IFS 5029 5030if test $ac_prog_rejected = yes; then 5031 # We found a bogon in the path, so make sure we never use it. 5032 set dummy $ac_cv_prog_CC 5033 shift 5034 if test $# != 0; then 5035 # We chose a different compiler from the bogus one. 5036 # However, it has the same basename, so the bogon will be chosen 5037 # first if we set CC to just the basename; use the full file name. 5038 shift 5039 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 5040 fi 5041fi 5042fi 5043fi 5044CC=$ac_cv_prog_CC 5045if test -n "$CC"; then 5046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5047$as_echo "$CC" >&6; } 5048else 5049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5050$as_echo "no" >&6; } 5051fi 5052 5053 5054fi 5055if test -z "$CC"; then 5056 if test -n "$ac_tool_prefix"; then 5057 for ac_prog in cl.exe 5058 do 5059 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5060set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5062$as_echo_n "checking for $ac_word... " >&6; } 5063if test "${ac_cv_prog_CC+set}" = set; then : 5064 $as_echo_n "(cached) " >&6 5065else 5066 if test -n "$CC"; then 5067 ac_cv_prog_CC="$CC" # Let the user override the test. 5068else 5069as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5070for as_dir in $PATH 5071do 5072 IFS=$as_save_IFS 5073 test -z "$as_dir" && as_dir=. 5074 for ac_exec_ext in '' $ac_executable_extensions; do 5075 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5076 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 5077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5078 break 2 5079 fi 5080done 5081 done 5082IFS=$as_save_IFS 5083 5084fi 5085fi 5086CC=$ac_cv_prog_CC 5087if test -n "$CC"; then 5088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5089$as_echo "$CC" >&6; } 5090else 5091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5092$as_echo "no" >&6; } 5093fi 5094 5095 5096 test -n "$CC" && break 5097 done 5098fi 5099if test -z "$CC"; then 5100 ac_ct_CC=$CC 5101 for ac_prog in cl.exe 5102do 5103 # Extract the first word of "$ac_prog", so it can be a program name with args. 5104set dummy $ac_prog; ac_word=$2 5105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5106$as_echo_n "checking for $ac_word... " >&6; } 5107if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 5108 $as_echo_n "(cached) " >&6 5109else 5110 if test -n "$ac_ct_CC"; then 5111 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 5112else 5113as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5114for as_dir in $PATH 5115do 5116 IFS=$as_save_IFS 5117 test -z "$as_dir" && as_dir=. 5118 for ac_exec_ext in '' $ac_executable_extensions; do 5119 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5120 ac_cv_prog_ac_ct_CC="$ac_prog" 5121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5122 break 2 5123 fi 5124done 5125 done 5126IFS=$as_save_IFS 5127 5128fi 5129fi 5130ac_ct_CC=$ac_cv_prog_ac_ct_CC 5131if test -n "$ac_ct_CC"; then 5132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 5133$as_echo "$ac_ct_CC" >&6; } 5134else 5135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5136$as_echo "no" >&6; } 5137fi 5138 5139 5140 test -n "$ac_ct_CC" && break 5141done 5142 5143 if test "x$ac_ct_CC" = x; then 5144 CC="" 5145 else 5146 case $cross_compiling:$ac_tool_warned in 5147yes:) 5148{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5149$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5150ac_tool_warned=yes ;; 5151esac 5152 CC=$ac_ct_CC 5153 fi 5154fi 5155 5156fi 5157 5158 5159test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5160$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5161as_fn_error "no acceptable C compiler found in \$PATH 5162See \`config.log' for more details." "$LINENO" 5; } 5163 5164# Provide some information about the compiler. 5165$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 5166set X $ac_compile 5167ac_compiler=$2 5168for ac_option in --version -v -V -qversion; do 5169 { { ac_try="$ac_compiler $ac_option >&5" 5170case "(($ac_try" in 5171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5172 *) ac_try_echo=$ac_try;; 5173esac 5174eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5175$as_echo "$ac_try_echo"; } >&5 5176 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 5177 ac_status=$? 5178 if test -s conftest.err; then 5179 sed '10a\ 5180... rest of stderr output deleted ... 5181 10q' conftest.err >conftest.er1 5182 cat conftest.er1 >&5 5183 fi 5184 rm -f conftest.er1 conftest.err 5185 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5186 test $ac_status = 0; } 5187done 5188 5189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 5190$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 5191if test "${ac_cv_c_compiler_gnu+set}" = set; then : 5192 $as_echo_n "(cached) " >&6 5193else 5194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5195/* end confdefs.h. */ 5196 5197int 5198main () 5199{ 5200#ifndef __GNUC__ 5201 choke me 5202#endif 5203 5204 ; 5205 return 0; 5206} 5207_ACEOF 5208if ac_fn_c_try_compile "$LINENO"; then : 5209 ac_compiler_gnu=yes 5210else 5211 ac_compiler_gnu=no 5212fi 5213rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5214ac_cv_c_compiler_gnu=$ac_compiler_gnu 5215 5216fi 5217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 5218$as_echo "$ac_cv_c_compiler_gnu" >&6; } 5219if test $ac_compiler_gnu = yes; then 5220 GCC=yes 5221else 5222 GCC= 5223fi 5224ac_test_CFLAGS=${CFLAGS+set} 5225ac_save_CFLAGS=$CFLAGS 5226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 5227$as_echo_n "checking whether $CC accepts -g... " >&6; } 5228if test "${ac_cv_prog_cc_g+set}" = set; then : 5229 $as_echo_n "(cached) " >&6 5230else 5231 ac_save_c_werror_flag=$ac_c_werror_flag 5232 ac_c_werror_flag=yes 5233 ac_cv_prog_cc_g=no 5234 CFLAGS="-g" 5235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5236/* end confdefs.h. */ 5237 5238int 5239main () 5240{ 5241 5242 ; 5243 return 0; 5244} 5245_ACEOF 5246if ac_fn_c_try_compile "$LINENO"; then : 5247 ac_cv_prog_cc_g=yes 5248else 5249 CFLAGS="" 5250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5251/* end confdefs.h. */ 5252 5253int 5254main () 5255{ 5256 5257 ; 5258 return 0; 5259} 5260_ACEOF 5261if ac_fn_c_try_compile "$LINENO"; then : 5262 5263else 5264 ac_c_werror_flag=$ac_save_c_werror_flag 5265 CFLAGS="-g" 5266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5267/* end confdefs.h. */ 5268 5269int 5270main () 5271{ 5272 5273 ; 5274 return 0; 5275} 5276_ACEOF 5277if ac_fn_c_try_compile "$LINENO"; then : 5278 ac_cv_prog_cc_g=yes 5279fi 5280rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5281fi 5282rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5283fi 5284rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5285 ac_c_werror_flag=$ac_save_c_werror_flag 5286fi 5287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 5288$as_echo "$ac_cv_prog_cc_g" >&6; } 5289if test "$ac_test_CFLAGS" = set; then 5290 CFLAGS=$ac_save_CFLAGS 5291elif test $ac_cv_prog_cc_g = yes; then 5292 if test "$GCC" = yes; then 5293 CFLAGS="-g -O2" 5294 else 5295 CFLAGS="-g" 5296 fi 5297else 5298 if test "$GCC" = yes; then 5299 CFLAGS="-O2" 5300 else 5301 CFLAGS= 5302 fi 5303fi 5304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 5305$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 5306if test "${ac_cv_prog_cc_c89+set}" = set; then : 5307 $as_echo_n "(cached) " >&6 5308else 5309 ac_cv_prog_cc_c89=no 5310ac_save_CC=$CC 5311cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5312/* end confdefs.h. */ 5313#include <stdarg.h> 5314#include <stdio.h> 5315#include <sys/types.h> 5316#include <sys/stat.h> 5317/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 5318struct buf { int x; }; 5319FILE * (*rcsopen) (struct buf *, struct stat *, int); 5320static char *e (p, i) 5321 char **p; 5322 int i; 5323{ 5324 return p[i]; 5325} 5326static char *f (char * (*g) (char **, int), char **p, ...) 5327{ 5328 char *s; 5329 va_list v; 5330 va_start (v,p); 5331 s = g (p, va_arg (v,int)); 5332 va_end (v); 5333 return s; 5334} 5335 5336/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 5337 function prototypes and stuff, but not '\xHH' hex character constants. 5338 These don't provoke an error unfortunately, instead are silently treated 5339 as 'x'. The following induces an error, until -std is added to get 5340 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 5341 array size at least. It's necessary to write '\x00'==0 to get something 5342 that's true only with -std. */ 5343int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 5344 5345/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 5346 inside strings and character constants. */ 5347#define FOO(x) 'x' 5348int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 5349 5350int test (int i, double x); 5351struct s1 {int (*f) (int a);}; 5352struct s2 {int (*f) (double a);}; 5353int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 5354int argc; 5355char **argv; 5356int 5357main () 5358{ 5359return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 5360 ; 5361 return 0; 5362} 5363_ACEOF 5364for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 5365 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 5366do 5367 CC="$ac_save_CC $ac_arg" 5368 if ac_fn_c_try_compile "$LINENO"; then : 5369 ac_cv_prog_cc_c89=$ac_arg 5370fi 5371rm -f core conftest.err conftest.$ac_objext 5372 test "x$ac_cv_prog_cc_c89" != "xno" && break 5373done 5374rm -f conftest.$ac_ext 5375CC=$ac_save_CC 5376 5377fi 5378# AC_CACHE_VAL 5379case "x$ac_cv_prog_cc_c89" in 5380 x) 5381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5382$as_echo "none needed" >&6; } ;; 5383 xno) 5384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5385$as_echo "unsupported" >&6; } ;; 5386 *) 5387 CC="$CC $ac_cv_prog_cc_c89" 5388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 5389$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 5390esac 5391if test "x$ac_cv_prog_cc_c89" != xno; then : 5392 5393fi 5394 5395ac_ext=c 5396ac_cpp='$CPP $CPPFLAGS' 5397ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5398ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5399ac_compiler_gnu=$ac_cv_c_compiler_gnu 5400 5401depcc="$CC" am_compiler_list= 5402 5403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 5404$as_echo_n "checking dependency style of $depcc... " >&6; } 5405if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : 5406 $as_echo_n "(cached) " >&6 5407else 5408 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5409 # We make a subdir and do the tests there. Otherwise we can end up 5410 # making bogus files that we don't know about and never remove. For 5411 # instance it was reported that on HP-UX the gcc test will end up 5412 # making a dummy file named `D' -- because `-MD' means `put the output 5413 # in D'. 5414 mkdir conftest.dir 5415 # Copy depcomp to subdir because otherwise we won't find it if we're 5416 # using a relative directory. 5417 cp "$am_depcomp" conftest.dir 5418 cd conftest.dir 5419 # We will build objects and dependencies in a subdirectory because 5420 # it helps to detect inapplicable dependency modes. For instance 5421 # both Tru64's cc and ICC support -MD to output dependencies as a 5422 # side effect of compilation, but ICC will put the dependencies in 5423 # the current directory while Tru64 will put them in the object 5424 # directory. 5425 mkdir sub 5426 5427 am_cv_CC_dependencies_compiler_type=none 5428 if test "$am_compiler_list" = ""; then 5429 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5430 fi 5431 am__universal=false 5432 case " $depcc " in #( 5433 *\ -arch\ *\ -arch\ *) am__universal=true ;; 5434 esac 5435 5436 for depmode in $am_compiler_list; do 5437 # Setup a source with many dependencies, because some compilers 5438 # like to wrap large dependency lists on column 80 (with \), and 5439 # we should not choose a depcomp mode which is confused by this. 5440 # 5441 # We need to recreate these files for each test, as the compiler may 5442 # overwrite some of them when testing with obscure command lines. 5443 # This happens at least with the AIX C compiler. 5444 : > sub/conftest.c 5445 for i in 1 2 3 4 5 6; do 5446 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5447 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 5448 # Solaris 8's {/usr,}/bin/sh. 5449 touch sub/conftst$i.h 5450 done 5451 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5452 5453 # We check with `-c' and `-o' for the sake of the "dashmstdout" 5454 # mode. It turns out that the SunPro C++ compiler does not properly 5455 # handle `-M -o', and we need to detect this. Also, some Intel 5456 # versions had trouble with output in subdirs 5457 am__obj=sub/conftest.${OBJEXT-o} 5458 am__minus_obj="-o $am__obj" 5459 case $depmode in 5460 gcc) 5461 # This depmode causes a compiler race in universal mode. 5462 test "$am__universal" = false || continue 5463 ;; 5464 nosideeffect) 5465 # after this tag, mechanisms are not by side-effect, so they'll 5466 # only be used when explicitly requested 5467 if test "x$enable_dependency_tracking" = xyes; then 5468 continue 5469 else 5470 break 5471 fi 5472 ;; 5473 msvisualcpp | msvcmsys) 5474 # This compiler won't grok `-c -o', but also, the minuso test has 5475 # not run yet. These depmodes are late enough in the game, and 5476 # so weak that their functioning should not be impacted. 5477 am__obj=conftest.${OBJEXT-o} 5478 am__minus_obj= 5479 ;; 5480 none) break ;; 5481 esac 5482 if depmode=$depmode \ 5483 source=sub/conftest.c object=$am__obj \ 5484 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5485 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 5486 >/dev/null 2>conftest.err && 5487 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 5488 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5489 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 5490 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5491 # icc doesn't choke on unknown options, it will just issue warnings 5492 # or remarks (even with -Werror). So we grep stderr for any message 5493 # that says an option was ignored or not supported. 5494 # When given -MP, icc 7.0 and 7.1 complain thusly: 5495 # icc: Command line warning: ignoring option '-M'; no argument required 5496 # The diagnosis changed in icc 8.0: 5497 # icc: Command line remark: option '-MP' not supported 5498 if (grep 'ignoring option' conftest.err || 5499 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5500 am_cv_CC_dependencies_compiler_type=$depmode 5501 break 5502 fi 5503 fi 5504 done 5505 5506 cd .. 5507 rm -rf conftest.dir 5508else 5509 am_cv_CC_dependencies_compiler_type=none 5510fi 5511 5512fi 5513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 5514$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 5515CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 5516 5517 if 5518 test "x$enable_dependency_tracking" != xno \ 5519 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 5520 am__fastdepCC_TRUE= 5521 am__fastdepCC_FALSE='#' 5522else 5523 am__fastdepCC_TRUE='#' 5524 am__fastdepCC_FALSE= 5525fi 5526 5527 5528# Ralf Wildenhues: With per-target flags we need CC_C_O 5529# AM_PROG_CC_C_O supersets AC_PROG_CC_C_O 5530if test "x$CC" != xcc; then 5531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5 5532$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; } 5533else 5534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5 5535$as_echo_n "checking whether cc understands -c and -o together... " >&6; } 5536fi 5537set dummy $CC; ac_cc=`$as_echo "$2" | 5538 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` 5539if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then : 5540 $as_echo_n "(cached) " >&6 5541else 5542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5543/* end confdefs.h. */ 5544 5545int 5546main () 5547{ 5548 5549 ; 5550 return 0; 5551} 5552_ACEOF 5553# Make sure it works both with $CC and with simple cc. 5554# We do the test twice because some compilers refuse to overwrite an 5555# existing .o file with -o, though they will create one. 5556ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5' 5557rm -f conftest2.* 5558if { { case "(($ac_try" in 5559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5560 *) ac_try_echo=$ac_try;; 5561esac 5562eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5563$as_echo "$ac_try_echo"; } >&5 5564 (eval "$ac_try") 2>&5 5565 ac_status=$? 5566 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5567 test $ac_status = 0; } && 5568 test -f conftest2.$ac_objext && { { case "(($ac_try" in 5569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5570 *) ac_try_echo=$ac_try;; 5571esac 5572eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5573$as_echo "$ac_try_echo"; } >&5 5574 (eval "$ac_try") 2>&5 5575 ac_status=$? 5576 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5577 test $ac_status = 0; }; 5578then 5579 eval ac_cv_prog_cc_${ac_cc}_c_o=yes 5580 if test "x$CC" != xcc; then 5581 # Test first that cc exists at all. 5582 if { ac_try='cc -c conftest.$ac_ext >&5' 5583 { { case "(($ac_try" in 5584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5585 *) ac_try_echo=$ac_try;; 5586esac 5587eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5588$as_echo "$ac_try_echo"; } >&5 5589 (eval "$ac_try") 2>&5 5590 ac_status=$? 5591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5592 test $ac_status = 0; }; }; then 5593 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5' 5594 rm -f conftest2.* 5595 if { { case "(($ac_try" in 5596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5597 *) ac_try_echo=$ac_try;; 5598esac 5599eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5600$as_echo "$ac_try_echo"; } >&5 5601 (eval "$ac_try") 2>&5 5602 ac_status=$? 5603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5604 test $ac_status = 0; } && 5605 test -f conftest2.$ac_objext && { { case "(($ac_try" in 5606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5607 *) ac_try_echo=$ac_try;; 5608esac 5609eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5610$as_echo "$ac_try_echo"; } >&5 5611 (eval "$ac_try") 2>&5 5612 ac_status=$? 5613 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5614 test $ac_status = 0; }; 5615 then 5616 # cc works too. 5617 : 5618 else 5619 # cc exists but doesn't like -o. 5620 eval ac_cv_prog_cc_${ac_cc}_c_o=no 5621 fi 5622 fi 5623 fi 5624else 5625 eval ac_cv_prog_cc_${ac_cc}_c_o=no 5626fi 5627rm -f core conftest* 5628 5629fi 5630if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then 5631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5632$as_echo "yes" >&6; } 5633else 5634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5635$as_echo "no" >&6; } 5636 5637$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h 5638 5639fi 5640 5641# FIXME: we rely on the cache variable name because 5642# there is no other way. 5643set dummy $CC 5644am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` 5645eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o 5646if test "$am_t" != yes; then 5647 # Losing compiler, so override with the script. 5648 # FIXME: It is wrong to rewrite CC. 5649 # But if we don't then we get into trouble of one sort or another. 5650 # A longer-term fix would be to have automake use am__CC in this case, 5651 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 5652 CC="$am_aux_dir/compile $CC" 5653fi 5654 5655 5656 case $ac_cv_prog_cc_stdc in #( 5657 no) : 5658 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #( 5659 *) : 5660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 5661$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 5662if test "${ac_cv_prog_cc_c99+set}" = set; then : 5663 $as_echo_n "(cached) " >&6 5664else 5665 ac_cv_prog_cc_c99=no 5666ac_save_CC=$CC 5667cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5668/* end confdefs.h. */ 5669#include <stdarg.h> 5670#include <stdbool.h> 5671#include <stdlib.h> 5672#include <wchar.h> 5673#include <stdio.h> 5674 5675// Check varargs macros. These examples are taken from C99 6.10.3.5. 5676#define debug(...) fprintf (stderr, __VA_ARGS__) 5677#define showlist(...) puts (#__VA_ARGS__) 5678#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 5679static void 5680test_varargs_macros (void) 5681{ 5682 int x = 1234; 5683 int y = 5678; 5684 debug ("Flag"); 5685 debug ("X = %d\n", x); 5686 showlist (The first, second, and third items.); 5687 report (x>y, "x is %d but y is %d", x, y); 5688} 5689 5690// Check long long types. 5691#define BIG64 18446744073709551615ull 5692#define BIG32 4294967295ul 5693#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 5694#if !BIG_OK 5695 your preprocessor is broken; 5696#endif 5697#if BIG_OK 5698#else 5699 your preprocessor is broken; 5700#endif 5701static long long int bignum = -9223372036854775807LL; 5702static unsigned long long int ubignum = BIG64; 5703 5704struct incomplete_array 5705{ 5706 int datasize; 5707 double data[]; 5708}; 5709 5710struct named_init { 5711 int number; 5712 const wchar_t *name; 5713 double average; 5714}; 5715 5716typedef const char *ccp; 5717 5718static inline int 5719test_restrict (ccp restrict text) 5720{ 5721 // See if C++-style comments work. 5722 // Iterate through items via the restricted pointer. 5723 // Also check for declarations in for loops. 5724 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 5725 continue; 5726 return 0; 5727} 5728 5729// Check varargs and va_copy. 5730static void 5731test_varargs (const char *format, ...) 5732{ 5733 va_list args; 5734 va_start (args, format); 5735 va_list args_copy; 5736 va_copy (args_copy, args); 5737 5738 const char *str; 5739 int number; 5740 float fnumber; 5741 5742 while (*format) 5743 { 5744 switch (*format++) 5745 { 5746 case 's': // string 5747 str = va_arg (args_copy, const char *); 5748 break; 5749 case 'd': // int 5750 number = va_arg (args_copy, int); 5751 break; 5752 case 'f': // float 5753 fnumber = va_arg (args_copy, double); 5754 break; 5755 default: 5756 break; 5757 } 5758 } 5759 va_end (args_copy); 5760 va_end (args); 5761} 5762 5763int 5764main () 5765{ 5766 5767 // Check bool. 5768 _Bool success = false; 5769 5770 // Check restrict. 5771 if (test_restrict ("String literal") == 0) 5772 success = true; 5773 char *restrict newvar = "Another string"; 5774 5775 // Check varargs. 5776 test_varargs ("s, d' f .", "string", 65, 34.234); 5777 test_varargs_macros (); 5778 5779 // Check flexible array members. 5780 struct incomplete_array *ia = 5781 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 5782 ia->datasize = 10; 5783 for (int i = 0; i < ia->datasize; ++i) 5784 ia->data[i] = i * 1.234; 5785 5786 // Check named initializers. 5787 struct named_init ni = { 5788 .number = 34, 5789 .name = L"Test wide string", 5790 .average = 543.34343, 5791 }; 5792 5793 ni.number = 58; 5794 5795 int dynamic_array[ni.number]; 5796 dynamic_array[ni.number - 1] = 543; 5797 5798 // work around unused variable warnings 5799 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 5800 || dynamic_array[ni.number - 1] != 543); 5801 5802 ; 5803 return 0; 5804} 5805_ACEOF 5806for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99 5807do 5808 CC="$ac_save_CC $ac_arg" 5809 if ac_fn_c_try_compile "$LINENO"; then : 5810 ac_cv_prog_cc_c99=$ac_arg 5811fi 5812rm -f core conftest.err conftest.$ac_objext 5813 test "x$ac_cv_prog_cc_c99" != "xno" && break 5814done 5815rm -f conftest.$ac_ext 5816CC=$ac_save_CC 5817 5818fi 5819# AC_CACHE_VAL 5820case "x$ac_cv_prog_cc_c99" in 5821 x) 5822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5823$as_echo "none needed" >&6; } ;; 5824 xno) 5825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5826$as_echo "unsupported" >&6; } ;; 5827 *) 5828 CC="$CC $ac_cv_prog_cc_c99" 5829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 5830$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 5831esac 5832if test "x$ac_cv_prog_cc_c99" != xno; then : 5833 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 5834else 5835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 5836$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 5837if test "${ac_cv_prog_cc_c89+set}" = set; then : 5838 $as_echo_n "(cached) " >&6 5839else 5840 ac_cv_prog_cc_c89=no 5841ac_save_CC=$CC 5842cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5843/* end confdefs.h. */ 5844#include <stdarg.h> 5845#include <stdio.h> 5846#include <sys/types.h> 5847#include <sys/stat.h> 5848/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 5849struct buf { int x; }; 5850FILE * (*rcsopen) (struct buf *, struct stat *, int); 5851static char *e (p, i) 5852 char **p; 5853 int i; 5854{ 5855 return p[i]; 5856} 5857static char *f (char * (*g) (char **, int), char **p, ...) 5858{ 5859 char *s; 5860 va_list v; 5861 va_start (v,p); 5862 s = g (p, va_arg (v,int)); 5863 va_end (v); 5864 return s; 5865} 5866 5867/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 5868 function prototypes and stuff, but not '\xHH' hex character constants. 5869 These don't provoke an error unfortunately, instead are silently treated 5870 as 'x'. The following induces an error, until -std is added to get 5871 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 5872 array size at least. It's necessary to write '\x00'==0 to get something 5873 that's true only with -std. */ 5874int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 5875 5876/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 5877 inside strings and character constants. */ 5878#define FOO(x) 'x' 5879int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 5880 5881int test (int i, double x); 5882struct s1 {int (*f) (int a);}; 5883struct s2 {int (*f) (double a);}; 5884int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 5885int argc; 5886char **argv; 5887int 5888main () 5889{ 5890return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 5891 ; 5892 return 0; 5893} 5894_ACEOF 5895for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 5896 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 5897do 5898 CC="$ac_save_CC $ac_arg" 5899 if ac_fn_c_try_compile "$LINENO"; then : 5900 ac_cv_prog_cc_c89=$ac_arg 5901fi 5902rm -f core conftest.err conftest.$ac_objext 5903 test "x$ac_cv_prog_cc_c89" != "xno" && break 5904done 5905rm -f conftest.$ac_ext 5906CC=$ac_save_CC 5907 5908fi 5909# AC_CACHE_VAL 5910case "x$ac_cv_prog_cc_c89" in 5911 x) 5912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5913$as_echo "none needed" >&6; } ;; 5914 xno) 5915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5916$as_echo "unsupported" >&6; } ;; 5917 *) 5918 CC="$CC $ac_cv_prog_cc_c89" 5919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 5920$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 5921esac 5922if test "x$ac_cv_prog_cc_c89" != xno; then : 5923 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 5924else 5925 ac_cv_prog_cc_stdc=no 5926fi 5927 5928fi 5929 ;; 5930esac 5931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5 5932$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; } 5933 if test "${ac_cv_prog_cc_stdc+set}" = set; then : 5934 $as_echo_n "(cached) " >&6 5935fi 5936 5937 case $ac_cv_prog_cc_stdc in #( 5938 no) : 5939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5940$as_echo "unsupported" >&6; } ;; #( 5941 '') : 5942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5943$as_echo "none needed" >&6; } ;; #( 5944 *) : 5945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5 5946$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;; 5947esac 5948 5949ac_ext=c 5950ac_cpp='$CPP $CPPFLAGS' 5951ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5952ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5953ac_compiler_gnu=$ac_cv_c_compiler_gnu 5954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 5955$as_echo_n "checking how to run the C preprocessor... " >&6; } 5956# On Suns, sometimes $CPP names a directory. 5957if test -n "$CPP" && test -d "$CPP"; then 5958 CPP= 5959fi 5960if test -z "$CPP"; then 5961 if test "${ac_cv_prog_CPP+set}" = set; then : 5962 $as_echo_n "(cached) " >&6 5963else 5964 # Double quotes because CPP needs to be expanded 5965 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 5966 do 5967 ac_preproc_ok=false 5968for ac_c_preproc_warn_flag in '' yes 5969do 5970 # Use a header file that comes with gcc, so configuring glibc 5971 # with a fresh cross-compiler works. 5972 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5973 # <limits.h> exists even on freestanding compilers. 5974 # On the NeXT, cc -E runs the code through the compiler's parser, 5975 # not just through cpp. "Syntax error" is here to catch this case. 5976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5977/* end confdefs.h. */ 5978#ifdef __STDC__ 5979# include <limits.h> 5980#else 5981# include <assert.h> 5982#endif 5983 Syntax error 5984_ACEOF 5985if ac_fn_c_try_cpp "$LINENO"; then : 5986 5987else 5988 # Broken: fails on valid input. 5989continue 5990fi 5991rm -f conftest.err conftest.$ac_ext 5992 5993 # OK, works on sane cases. Now check whether nonexistent headers 5994 # can be detected and how. 5995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5996/* end confdefs.h. */ 5997#include <ac_nonexistent.h> 5998_ACEOF 5999if ac_fn_c_try_cpp "$LINENO"; then : 6000 # Broken: success on invalid input. 6001continue 6002else 6003 # Passes both tests. 6004ac_preproc_ok=: 6005break 6006fi 6007rm -f conftest.err conftest.$ac_ext 6008 6009done 6010# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6011rm -f conftest.err conftest.$ac_ext 6012if $ac_preproc_ok; then : 6013 break 6014fi 6015 6016 done 6017 ac_cv_prog_CPP=$CPP 6018 6019fi 6020 CPP=$ac_cv_prog_CPP 6021else 6022 ac_cv_prog_CPP=$CPP 6023fi 6024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 6025$as_echo "$CPP" >&6; } 6026ac_preproc_ok=false 6027for ac_c_preproc_warn_flag in '' yes 6028do 6029 # Use a header file that comes with gcc, so configuring glibc 6030 # with a fresh cross-compiler works. 6031 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6032 # <limits.h> exists even on freestanding compilers. 6033 # On the NeXT, cc -E runs the code through the compiler's parser, 6034 # not just through cpp. "Syntax error" is here to catch this case. 6035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6036/* end confdefs.h. */ 6037#ifdef __STDC__ 6038# include <limits.h> 6039#else 6040# include <assert.h> 6041#endif 6042 Syntax error 6043_ACEOF 6044if ac_fn_c_try_cpp "$LINENO"; then : 6045 6046else 6047 # Broken: fails on valid input. 6048continue 6049fi 6050rm -f conftest.err conftest.$ac_ext 6051 6052 # OK, works on sane cases. Now check whether nonexistent headers 6053 # can be detected and how. 6054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6055/* end confdefs.h. */ 6056#include <ac_nonexistent.h> 6057_ACEOF 6058if ac_fn_c_try_cpp "$LINENO"; then : 6059 # Broken: success on invalid input. 6060continue 6061else 6062 # Passes both tests. 6063ac_preproc_ok=: 6064break 6065fi 6066rm -f conftest.err conftest.$ac_ext 6067 6068done 6069# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6070rm -f conftest.err conftest.$ac_ext 6071if $ac_preproc_ok; then : 6072 6073else 6074 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6075$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6076as_fn_error "C preprocessor \"$CPP\" fails sanity check 6077See \`config.log' for more details." "$LINENO" 5; } 6078fi 6079 6080ac_ext=c 6081ac_cpp='$CPP $CPPFLAGS' 6082ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6083ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6084ac_compiler_gnu=$ac_cv_c_compiler_gnu 6085 6086 6087# HMS: These need to be moved to AM_CPPFLAGS and/or AM_CFLAGS 6088case "$host" in 6089 *-*-amigaos) 6090 CFLAGS="$CFLAGS -Dfork=vfork -DSYS_AMIGA" 6091 ;; 6092 *-*-hpux10.*) # at least for hppa2.0-hp-hpux10.20 6093 case "$GCC" in 6094 yes) 6095 ;; 6096 *) CFLAGS="$CFLAGS -Wp,-H18816" 6097 ;; 6098 esac 6099 ;; 6100 *-pc-cygwin*) 6101 CFLAGS="$CFLAGS -DSYS_CYGWIN32" 6102 ;; 6103 i386-sequent-sysv4) 6104 case "$CC" in 6105 cc) 6106 CFLAGS="$CFLAGS -Wc,+abi-socket" 6107 ;; 6108 esac 6109 ;; 6110 *-*-mpeix*) 6111 CPPFLAGS="$CPPFLAGS -DMPE -D_POSIX_SOURCE -D_SOCKET_SOURCE -I/SYSLOG/PUB" 6112 LDFLAGS="$LDFLAGS -L/SYSLOG/PUB" 6113 LIBS="$LIBS -lcurses" 6114 ;; 6115 *-*-solaris*) 6116 # see "man standards". 6117 # -D_XOPEN_SOURCE=500 is probably OK for c89 and before 6118 # -D_XOPEN_SOURCE=600 seems OK for c99 6119 #CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=500 -D__EXTENSIONS__" 6120 CPPFLAGS="$CPPFLAGS -D__EXTENSIONS__" 6121 libxnet=-lxnet 6122 ;; 6123esac 6124 6125 6126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking additional compiler flags" >&5 6127$as_echo_n "checking additional compiler flags... " >&6; } 6128if test "${ac_cv_os_cflags+set}" = set; then : 6129 $as_echo_n "(cached) " >&6 6130else 6131 6132case "${host_os}" in 6133 irix6* ) 6134 case "${CC}" in 6135 cc ) 6136 # do not use 64-bit compiler 6137 ac_cv_os_cflags="-n32 -mips3 -Wl,-woff,84" 6138 ;; 6139 esac 6140 ;; 6141# HMS: am-utils needed this but we don't (apparently) 6142# osf[[1-3]]* ) 6143# # get the right version of struct sockaddr 6144# case "${CC}" in 6145# cc ) 6146# ac_cv_os_cflags="-std -D_SOCKADDR_LEN -D_NO_PROTO" 6147# ;; 6148# * ) 6149# ac_cv_os_cflags="-D_SOCKADDR_LEN -D_NO_PROTO" 6150# ;; 6151# esac 6152# ;; 6153# osf* ) 6154# # get the right version of struct sockaddr 6155# case "${CC}" in 6156# cc ) 6157# ac_cv_os_cflags="-std -D_SOCKADDR_LEN" 6158# ;; 6159# * ) 6160# ac_cv_os_cflags="-D_SOCKADDR_LEN" 6161# ;; 6162# esac 6163# ;; 6164 aix[1-3]* ) 6165 ac_cv_os_cflags="" ;; 6166 aix4.[0-2]* ) 6167 # turn on additional headers 6168 ac_cv_os_cflags="-D_XOPEN_EXTENDED_SOURCE" 6169 ;; 6170 aix* ) 6171 # avoid circular dependencies in yp headers 6172 ac_cv_os_cflags="-DHAVE_BAD_HEADERS -D_XOPEN_EXTENDED_SOURCE" 6173 ;; 6174 OFF-sunos4* ) 6175 # make sure passing whole structures is handled in gcc 6176 case "${CC}" in 6177 gcc ) 6178 ac_cv_os_cflags="-fpcc-struct-return" 6179 ;; 6180 esac 6181 ;; 6182 sunos[34]* | solaris1* | solaris2.[0-5]* | sunos5.[0-5]* ) 6183 ac_cv_os_cflags="" ;; 6184 solaris* | sunos* ) 6185 # turn on 64-bit file offset interface 6186 case "${CC}" in 6187 * ) 6188 ac_cv_os_cflags="-D_LARGEFILE64_SOURCE" 6189 ;; 6190 esac 6191 ;; 6192 hpux* ) 6193 # use Ansi compiler on HPUX 6194 case "${CC}" in 6195 cc ) 6196 ac_cv_os_cflags="-Ae" 6197 ;; 6198 esac 6199 ;; 6200 darwin* | rhapsody* ) 6201 ac_cv_os_cflags="-D_P1003_1B_VISIBLE" 6202 ;; 6203 * ) 6204 ac_cv_os_cflags="" 6205 ;; 6206esac 6207 6208fi 6209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cflags" >&5 6210$as_echo "$ac_cv_os_cflags" >&6; } 6211CFLAGS="$CFLAGS $ac_cv_os_cflags" 6212 6213 6214# NTP has (so far) been relying on leading-edge autogen. 6215# Therefore, by default: 6216# - use the version we ship with 6217# - do not install it 6218# - build a static copy (AC_DISABLE_SHARED - done earlier) 6219case "${enable_local_libopts+set}" in 6220 set) ;; 6221 *) enable_local_libopts=yes ;; 6222esac 6223case "${enable_libopts_install+set}" in 6224 set) ;; 6225 *) enable_libopts_install=no ;; 6226esac 6227 6228 NEED_LIBOPTS_DIR='' 6229 6230 LIBOPTS_DIR=libopts 6231 6232 # Check whether --enable-local-libopts was given. 6233if test "${enable_local_libopts+set}" = set; then : 6234 enableval=$enable_local_libopts; 6235 if test x$enableval = xyes ; then 6236 { $as_echo "$as_me:${as_lineno-$LINENO}: Using supplied libopts tearoff" >&5 6237$as_echo "$as_me: Using supplied libopts tearoff" >&6;} 6238 LIBOPTS_LDADD='$(top_builddir)/libopts/libopts.la' 6239 LIBOPTS_CFLAGS='-I$(top_srcdir)/libopts' 6240 NEED_LIBOPTS_DIR=true 6241 fi 6242fi 6243 6244 6245 # Check whether --enable-libopts-install was given. 6246if test "${enable_libopts_install+set}" = set; then : 6247 enableval=$enable_libopts_install; 6248fi 6249 6250 if test "X${enable_libopts_install}" != Xno; then 6251 INSTALL_LIBOPTS_TRUE= 6252 INSTALL_LIBOPTS_FALSE='#' 6253else 6254 INSTALL_LIBOPTS_TRUE='#' 6255 INSTALL_LIBOPTS_FALSE= 6256fi 6257 6258 6259 if test -z "${NEED_LIBOPTS_DIR}" ; then 6260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether autoopts-config can be found" >&5 6261$as_echo_n "checking whether autoopts-config can be found... " >&6; } 6262 6263# Check whether --with-autoopts-config was given. 6264if test "${with_autoopts_config+set}" = set; then : 6265 withval=$with_autoopts_config; lo_cv_with_autoopts_config=${with_autoopts_config} 6266else 6267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether autoopts-config is specified" >&5 6268$as_echo_n "checking whether autoopts-config is specified... " >&6; } 6269if test "${lo_cv_with_autoopts_config+set}" = set; then : 6270 $as_echo_n "(cached) " >&6 6271else 6272 if autoopts-config --help 2>/dev/null 1>&2 6273 then lo_cv_with_autoopts_config=autoopts-config 6274 elif libopts-config --help 2>/dev/null 1>&2 6275 then lo_cv_with_autoopts_config=libopts-config 6276 else lo_cv_with_autoopts_config=no ; fi 6277fi 6278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lo_cv_with_autoopts_config" >&5 6279$as_echo "$lo_cv_with_autoopts_config" >&6; } 6280 6281fi 6282 # end of AC_ARG_WITH 6283 6284 if test "${lo_cv_test_autoopts+set}" = set; then : 6285 $as_echo_n "(cached) " >&6 6286else 6287 6288 if test -z "${lo_cv_with_autoopts_config}" \ 6289 -o X"${lo_cv_with_autoopts_config}" = Xno 6290 then 6291 if autoopts-config --help 2>/dev/null 1>&2 6292 then lo_cv_with_autoopts_config=autoopts-config 6293 elif libopts-config --help 2>/dev/null 1>&2 6294 then lo_cv_with_autoopts_config=libopts-config 6295 else lo_cv_with_autoopts_config=false ; fi 6296 fi 6297 lo_cv_test_autoopts=` 6298 ${lo_cv_with_autoopts_config} --libs` 2> /dev/null 6299 if test $? -ne 0 -o -z "${lo_cv_test_autoopts}" 6300 then lo_cv_test_autoopts=no ; fi 6301 6302fi 6303 # end of CACHE_VAL 6304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lo_cv_test_autoopts}" >&5 6305$as_echo "${lo_cv_test_autoopts}" >&6; } 6306 6307 if test "X${lo_cv_test_autoopts}" != Xno 6308 then 6309 LIBOPTS_LDADD="${lo_cv_test_autoopts}" 6310 LIBOPTS_CFLAGS="`${lo_cv_with_autoopts_config} --cflags`" 6311 else 6312 LIBOPTS_LDADD='$(top_builddir)/libopts/libopts.la' 6313 LIBOPTS_CFLAGS='-I$(top_srcdir)/libopts' 6314 NEED_LIBOPTS_DIR=true 6315 fi 6316 fi # end of if test -z "${NEED_LIBOPTS_DIR}" 6317 6318 if test -n "${NEED_LIBOPTS_DIR}"; then 6319 NEED_LIBOPTS_TRUE= 6320 NEED_LIBOPTS_FALSE='#' 6321else 6322 NEED_LIBOPTS_TRUE='#' 6323 NEED_LIBOPTS_FALSE= 6324fi 6325 6326 6327 6328 LIBOPTS_DIR=libopts 6329 6330 ac_config_files="$ac_config_files libopts/Makefile" 6331 6332 6333 6334 if test -n "${NEED_LIBOPTS_DIR}" ; then 6335 6336 6337if test X${INVOKE_LIBOPTS_MACROS_FIRST_done} != Xyes ; then 6338 # ================= 6339 # AC_HEADER_STDC 6340 # ================= 6341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 6342$as_echo_n "checking for ANSI C header files... " >&6; } 6343if test "${ac_cv_header_stdc+set}" = set; then : 6344 $as_echo_n "(cached) " >&6 6345else 6346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6347/* end confdefs.h. */ 6348#include <stdlib.h> 6349#include <stdarg.h> 6350#include <string.h> 6351#include <float.h> 6352 6353int 6354main () 6355{ 6356 6357 ; 6358 return 0; 6359} 6360_ACEOF 6361if ac_fn_c_try_compile "$LINENO"; then : 6362 ac_cv_header_stdc=yes 6363else 6364 ac_cv_header_stdc=no 6365fi 6366rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6367 6368if test $ac_cv_header_stdc = yes; then 6369 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 6370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6371/* end confdefs.h. */ 6372#include <string.h> 6373 6374_ACEOF 6375if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6376 $EGREP "memchr" >/dev/null 2>&1; then : 6377 6378else 6379 ac_cv_header_stdc=no 6380fi 6381rm -f conftest* 6382 6383fi 6384 6385if test $ac_cv_header_stdc = yes; then 6386 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 6387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6388/* end confdefs.h. */ 6389#include <stdlib.h> 6390 6391_ACEOF 6392if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6393 $EGREP "free" >/dev/null 2>&1; then : 6394 6395else 6396 ac_cv_header_stdc=no 6397fi 6398rm -f conftest* 6399 6400fi 6401 6402if test $ac_cv_header_stdc = yes; then 6403 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 6404 if test "$cross_compiling" = yes; then : 6405 : 6406else 6407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6408/* end confdefs.h. */ 6409#include <ctype.h> 6410#include <stdlib.h> 6411#if ((' ' & 0x0FF) == 0x020) 6412# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 6413# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 6414#else 6415# define ISLOWER(c) \ 6416 (('a' <= (c) && (c) <= 'i') \ 6417 || ('j' <= (c) && (c) <= 'r') \ 6418 || ('s' <= (c) && (c) <= 'z')) 6419# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 6420#endif 6421 6422#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 6423int 6424main () 6425{ 6426 int i; 6427 for (i = 0; i < 256; i++) 6428 if (XOR (islower (i), ISLOWER (i)) 6429 || toupper (i) != TOUPPER (i)) 6430 return 2; 6431 return 0; 6432} 6433_ACEOF 6434if ac_fn_c_try_run "$LINENO"; then : 6435 6436else 6437 ac_cv_header_stdc=no 6438fi 6439rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 6440 conftest.$ac_objext conftest.beam conftest.$ac_ext 6441fi 6442 6443fi 6444fi 6445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 6446$as_echo "$ac_cv_header_stdc" >&6; } 6447if test $ac_cv_header_stdc = yes; then 6448 6449$as_echo "#define STDC_HEADERS 1" >>confdefs.h 6450 6451fi 6452 6453 # ================= 6454 # AC_HEADER_DIRENT 6455 # ================= 6456 ac_header_dirent=no 6457for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 6458 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` 6459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 6460$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } 6461if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then : 6462 $as_echo_n "(cached) " >&6 6463else 6464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6465/* end confdefs.h. */ 6466#include <sys/types.h> 6467#include <$ac_hdr> 6468 6469int 6470main () 6471{ 6472if ((DIR *) 0) 6473return 0; 6474 ; 6475 return 0; 6476} 6477_ACEOF 6478if ac_fn_c_try_compile "$LINENO"; then : 6479 eval "$as_ac_Header=yes" 6480else 6481 eval "$as_ac_Header=no" 6482fi 6483rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6484fi 6485eval ac_res=\$$as_ac_Header 6486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 6487$as_echo "$ac_res" >&6; } 6488eval as_val=\$$as_ac_Header 6489 if test "x$as_val" = x""yes; then : 6490 cat >>confdefs.h <<_ACEOF 6491#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 6492_ACEOF 6493 6494ac_header_dirent=$ac_hdr; break 6495fi 6496 6497done 6498# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 6499if test $ac_header_dirent = dirent.h; then 6500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 6501$as_echo_n "checking for library containing opendir... " >&6; } 6502if test "${ac_cv_search_opendir+set}" = set; then : 6503 $as_echo_n "(cached) " >&6 6504else 6505 ac_func_search_save_LIBS=$LIBS 6506cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6507/* end confdefs.h. */ 6508 6509/* Override any GCC internal prototype to avoid an error. 6510 Use char because int might match the return type of a GCC 6511 builtin and then its argument prototype would still apply. */ 6512#ifdef __cplusplus 6513extern "C" 6514#endif 6515char opendir (); 6516int 6517main () 6518{ 6519return opendir (); 6520 ; 6521 return 0; 6522} 6523_ACEOF 6524for ac_lib in '' dir; do 6525 if test -z "$ac_lib"; then 6526 ac_res="none required" 6527 else 6528 ac_res=-l$ac_lib 6529 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 6530 fi 6531 if ac_fn_c_try_link "$LINENO"; then : 6532 ac_cv_search_opendir=$ac_res 6533fi 6534rm -f core conftest.err conftest.$ac_objext \ 6535 conftest$ac_exeext 6536 if test "${ac_cv_search_opendir+set}" = set; then : 6537 break 6538fi 6539done 6540if test "${ac_cv_search_opendir+set}" = set; then : 6541 6542else 6543 ac_cv_search_opendir=no 6544fi 6545rm conftest.$ac_ext 6546LIBS=$ac_func_search_save_LIBS 6547fi 6548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 6549$as_echo "$ac_cv_search_opendir" >&6; } 6550ac_res=$ac_cv_search_opendir 6551if test "$ac_res" != no; then : 6552 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 6553 6554fi 6555 6556else 6557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 6558$as_echo_n "checking for library containing opendir... " >&6; } 6559if test "${ac_cv_search_opendir+set}" = set; then : 6560 $as_echo_n "(cached) " >&6 6561else 6562 ac_func_search_save_LIBS=$LIBS 6563cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6564/* end confdefs.h. */ 6565 6566/* Override any GCC internal prototype to avoid an error. 6567 Use char because int might match the return type of a GCC 6568 builtin and then its argument prototype would still apply. */ 6569#ifdef __cplusplus 6570extern "C" 6571#endif 6572char opendir (); 6573int 6574main () 6575{ 6576return opendir (); 6577 ; 6578 return 0; 6579} 6580_ACEOF 6581for ac_lib in '' x; do 6582 if test -z "$ac_lib"; then 6583 ac_res="none required" 6584 else 6585 ac_res=-l$ac_lib 6586 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 6587 fi 6588 if ac_fn_c_try_link "$LINENO"; then : 6589 ac_cv_search_opendir=$ac_res 6590fi 6591rm -f core conftest.err conftest.$ac_objext \ 6592 conftest$ac_exeext 6593 if test "${ac_cv_search_opendir+set}" = set; then : 6594 break 6595fi 6596done 6597if test "${ac_cv_search_opendir+set}" = set; then : 6598 6599else 6600 ac_cv_search_opendir=no 6601fi 6602rm conftest.$ac_ext 6603LIBS=$ac_func_search_save_LIBS 6604fi 6605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 6606$as_echo "$ac_cv_search_opendir" >&6; } 6607ac_res=$ac_cv_search_opendir 6608if test "$ac_res" != no; then : 6609 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 6610 6611fi 6612 6613fi 6614 6615 6616 # ================= 6617 # AC_CHECK_HEADERS 6618 # ================= 6619 for ac_header in dlfcn.h errno.h fcntl.h libgen.h memory.h netinet/in.h \ 6620 setjmp.h sys/mman.h sys/param.h sys/poll.h sys/procset.h sys/select.h \ 6621 sys/socket.h sys/stropts.h sys/time.h sys/un.h sys/wait.h unistd.h \ 6622 utime.h sysexits.h 6623do : 6624 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 6625ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 6626eval as_val=\$$as_ac_Header 6627 if test "x$as_val" = x""yes; then : 6628 cat >>confdefs.h <<_ACEOF 6629#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 6630_ACEOF 6631 6632fi 6633 6634done 6635 6636 6637 # -------------------------------------------- 6638 # Verify certain entries from AC_CHECK_HEADERS 6639 # -------------------------------------------- 6640 for f in sys_types sys_mman sys_param sys_stat sys_wait \ 6641 string errno stdlib memory setjmp 6642 do eval as_ac_var=\${ac_cv_header_${f}_h+set} 6643 test "${as_ac_var}" = set || \ 6644 as_fn_error "You must have ${f}.h on your system" "$LINENO" 5 6645 done 6646 6647 # ================================================ 6648 # AC_CHECK_HEADERS: stdarg.h is present define HAVE_STDARG_H, otherwise 6649 # if varargs.h is present define HAVE_VARARGS_H. 6650 # ================================================ 6651 for ac_header in stdarg.h varargs.h 6652do : 6653 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 6654ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 6655eval as_val=\$$as_ac_Header 6656 if test "x$as_val" = x""yes; then : 6657 cat >>confdefs.h <<_ACEOF 6658#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 6659_ACEOF 6660 break 6661fi 6662 6663done 6664 6665 if test `eval echo '${'$as_ac_Header'}'` != yes; then 6666 as_fn_error "You must have stdarg.h or varargs.h on your system" "$LINENO" 5 6667 fi 6668 6669 # ================================================ 6670 # Similarly for the string.h and strings.h headers 6671 # ================================================ 6672 for ac_header in string.h strings.h 6673do : 6674 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 6675ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 6676eval as_val=\$$as_ac_Header 6677 if test "x$as_val" = x""yes; then : 6678 cat >>confdefs.h <<_ACEOF 6679#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 6680_ACEOF 6681 break 6682fi 6683 6684done 6685 6686 if test `eval echo '${'$as_ac_Header'}'` != yes; then 6687 as_fn_error "You must have string.h or strings.h on your system" "$LINENO" 5 6688 fi 6689 6690 # ===================== 6691 # ...and limits headers 6692 # ===================== 6693 for ac_header in limits.h sys/limits.h values.h 6694do : 6695 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 6696ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 6697eval as_val=\$$as_ac_Header 6698 if test "x$as_val" = x""yes; then : 6699 cat >>confdefs.h <<_ACEOF 6700#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 6701_ACEOF 6702 break 6703fi 6704 6705done 6706 6707 if test `eval echo '${'$as_ac_Header'}'` != yes; then 6708 as_fn_error "You must have one of limits.h, sys/limits.h or values.h" "$LINENO" 5 6709 fi 6710 6711 # ======================== 6712 # ...and int types headers 6713 # ======================== 6714 for ac_header in stdint.h inttypes.h 6715do : 6716 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 6717ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 6718eval as_val=\$$as_ac_Header 6719 if test "x$as_val" = x""yes; then : 6720 cat >>confdefs.h <<_ACEOF 6721#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 6722_ACEOF 6723 break 6724fi 6725 6726done 6727 6728 ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default" 6729if test "x$ac_cv_type_int8_t" = x""yes; then : 6730 6731cat >>confdefs.h <<_ACEOF 6732#define HAVE_INT8_T 1 6733_ACEOF 6734 6735 6736fi 6737ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default" 6738if test "x$ac_cv_type_uint8_t" = x""yes; then : 6739 6740cat >>confdefs.h <<_ACEOF 6741#define HAVE_UINT8_T 1 6742_ACEOF 6743 6744 6745fi 6746ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default" 6747if test "x$ac_cv_type_int16_t" = x""yes; then : 6748 6749cat >>confdefs.h <<_ACEOF 6750#define HAVE_INT16_T 1 6751_ACEOF 6752 6753 6754fi 6755ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default" 6756if test "x$ac_cv_type_uint16_t" = x""yes; then : 6757 6758cat >>confdefs.h <<_ACEOF 6759#define HAVE_UINT16_T 1 6760_ACEOF 6761 6762 6763fi 6764ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default" 6765if test "x$ac_cv_type_int32_t" = x""yes; then : 6766 6767cat >>confdefs.h <<_ACEOF 6768#define HAVE_INT32_T 1 6769_ACEOF 6770 6771 6772fi 6773ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default" 6774if test "x$ac_cv_type_uint32_t" = x""yes; then : 6775 6776cat >>confdefs.h <<_ACEOF 6777#define HAVE_UINT32_T 1 6778_ACEOF 6779 6780 6781fi 6782ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default" 6783if test "x$ac_cv_type_intptr_t" = x""yes; then : 6784 6785cat >>confdefs.h <<_ACEOF 6786#define HAVE_INTPTR_T 1 6787_ACEOF 6788 6789 6790fi 6791ac_fn_c_check_type "$LINENO" "uint_t" "ac_cv_type_uint_t" "$ac_includes_default" 6792if test "x$ac_cv_type_uint_t" = x""yes; then : 6793 6794cat >>confdefs.h <<_ACEOF 6795#define HAVE_UINT_T 1 6796_ACEOF 6797 6798 6799fi 6800 6801 6802 # ==================== 6803 # uintptr type & sizes 6804 # ==================== 6805 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default" 6806if test "x$ac_cv_type_uintptr_t" = x""yes; then : 6807 6808cat >>confdefs.h <<_ACEOF 6809#define HAVE_UINTPTR_T 1 6810_ACEOF 6811 6812 6813else 6814 6815$as_echo "#define uintptr_t unsigned long" >>confdefs.h 6816 6817fi 6818 6819 # The cast to long int works around a bug in the HP C Compiler 6820# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 6821# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 6822# This bug is HP SR number 8606223364. 6823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char*" >&5 6824$as_echo_n "checking size of char*... " >&6; } 6825if test "${ac_cv_sizeof_charp+set}" = set; then : 6826 $as_echo_n "(cached) " >&6 6827else 6828 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char*))" "ac_cv_sizeof_charp" "$ac_includes_default"; then : 6829 6830else 6831 if test "$ac_cv_type_charp" = yes; then 6832 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6833$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6834{ as_fn_set_status 77 6835as_fn_error "cannot compute sizeof (char*) 6836See \`config.log' for more details." "$LINENO" 5; }; } 6837 else 6838 ac_cv_sizeof_charp=0 6839 fi 6840fi 6841 6842fi 6843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_charp" >&5 6844$as_echo "$ac_cv_sizeof_charp" >&6; } 6845 6846 6847 6848cat >>confdefs.h <<_ACEOF 6849#define SIZEOF_CHARP $ac_cv_sizeof_charp 6850_ACEOF 6851 6852 6853 # The cast to long int works around a bug in the HP C Compiler 6854# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 6855# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 6856# This bug is HP SR number 8606223364. 6857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 6858$as_echo_n "checking size of int... " >&6; } 6859if test "${ac_cv_sizeof_int+set}" = set; then : 6860 $as_echo_n "(cached) " >&6 6861else 6862 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : 6863 6864else 6865 if test "$ac_cv_type_int" = yes; then 6866 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6867$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6868{ as_fn_set_status 77 6869as_fn_error "cannot compute sizeof (int) 6870See \`config.log' for more details." "$LINENO" 5; }; } 6871 else 6872 ac_cv_sizeof_int=0 6873 fi 6874fi 6875 6876fi 6877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 6878$as_echo "$ac_cv_sizeof_int" >&6; } 6879 6880 6881 6882cat >>confdefs.h <<_ACEOF 6883#define SIZEOF_INT $ac_cv_sizeof_int 6884_ACEOF 6885 6886 6887 # The cast to long int works around a bug in the HP C Compiler 6888# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 6889# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 6890# This bug is HP SR number 8606223364. 6891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 6892$as_echo_n "checking size of long... " >&6; } 6893if test "${ac_cv_sizeof_long+set}" = set; then : 6894 $as_echo_n "(cached) " >&6 6895else 6896 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : 6897 6898else 6899 if test "$ac_cv_type_long" = yes; then 6900 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6901$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6902{ as_fn_set_status 77 6903as_fn_error "cannot compute sizeof (long) 6904See \`config.log' for more details." "$LINENO" 5; }; } 6905 else 6906 ac_cv_sizeof_long=0 6907 fi 6908fi 6909 6910fi 6911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 6912$as_echo "$ac_cv_sizeof_long" >&6; } 6913 6914 6915 6916cat >>confdefs.h <<_ACEOF 6917#define SIZEOF_LONG $ac_cv_sizeof_long 6918_ACEOF 6919 6920 6921 # The cast to long int works around a bug in the HP C Compiler 6922# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 6923# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 6924# This bug is HP SR number 8606223364. 6925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 6926$as_echo_n "checking size of short... " >&6; } 6927if test "${ac_cv_sizeof_short+set}" = set; then : 6928 $as_echo_n "(cached) " >&6 6929else 6930 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then : 6931 6932else 6933 if test "$ac_cv_type_short" = yes; then 6934 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6935$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6936{ as_fn_set_status 77 6937as_fn_error "cannot compute sizeof (short) 6938See \`config.log' for more details." "$LINENO" 5; }; } 6939 else 6940 ac_cv_sizeof_short=0 6941 fi 6942fi 6943 6944fi 6945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 6946$as_echo "$ac_cv_sizeof_short" >&6; } 6947 6948 6949 6950cat >>confdefs.h <<_ACEOF 6951#define SIZEOF_SHORT $ac_cv_sizeof_short 6952_ACEOF 6953 6954 6955 6956 # ---------------------------------------------------------------------- 6957 # AC_CHECK_LIB for SVR4 libgen, and use it if it defines pathfind. 6958 # ---------------------------------------------------------------------- 6959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pathfind in -lgen" >&5 6960$as_echo_n "checking for pathfind in -lgen... " >&6; } 6961if test "${ac_cv_lib_gen_pathfind+set}" = set; then : 6962 $as_echo_n "(cached) " >&6 6963else 6964 ac_check_lib_save_LIBS=$LIBS 6965LIBS="-lgen $LIBS" 6966cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6967/* end confdefs.h. */ 6968 6969/* Override any GCC internal prototype to avoid an error. 6970 Use char because int might match the return type of a GCC 6971 builtin and then its argument prototype would still apply. */ 6972#ifdef __cplusplus 6973extern "C" 6974#endif 6975char pathfind (); 6976int 6977main () 6978{ 6979return pathfind (); 6980 ; 6981 return 0; 6982} 6983_ACEOF 6984if ac_fn_c_try_link "$LINENO"; then : 6985 ac_cv_lib_gen_pathfind=yes 6986else 6987 ac_cv_lib_gen_pathfind=no 6988fi 6989rm -f core conftest.err conftest.$ac_objext \ 6990 conftest$ac_exeext conftest.$ac_ext 6991LIBS=$ac_check_lib_save_LIBS 6992fi 6993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_pathfind" >&5 6994$as_echo "$ac_cv_lib_gen_pathfind" >&6; } 6995if test "x$ac_cv_lib_gen_pathfind" = x""yes; then : 6996 cat >>confdefs.h <<_ACEOF 6997#define HAVE_LIBGEN 1 6998_ACEOF 6999 7000 LIBS="-lgen $LIBS" 7001 7002fi 7003 7004 for ac_func in vprintf 7005do : 7006 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf" 7007if test "x$ac_cv_func_vprintf" = x""yes; then : 7008 cat >>confdefs.h <<_ACEOF 7009#define HAVE_VPRINTF 1 7010_ACEOF 7011 7012ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt" 7013if test "x$ac_cv_func__doprnt" = x""yes; then : 7014 7015$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h 7016 7017fi 7018 7019fi 7020done 7021 7022 7023 for ac_func in mmap canonicalize_file_name snprintf strdup strchr strrchr 7024do : 7025 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 7026ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 7027eval as_val=\$$as_ac_var 7028 if test "x$as_val" = x""yes; then : 7029 cat >>confdefs.h <<_ACEOF 7030#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 7031_ACEOF 7032 7033fi 7034done 7035 7036 INVOKE_LIBOPTS_MACROS_FIRST_done=yes 7037fi 7038 # Check to see if a reg expr header is specified. 7039 7040 7041# Check whether --with-regex-header was given. 7042if test "${with_regex_header+set}" = set; then : 7043 withval=$with_regex_header; libopts_cv_with_regex_header=${with_regex_header} 7044else 7045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a reg expr header is specified" >&5 7046$as_echo_n "checking whether a reg expr header is specified... " >&6; } 7047if test "${libopts_cv_with_regex_header+set}" = set; then : 7048 $as_echo_n "(cached) " >&6 7049else 7050 libopts_cv_with_regex_header=no 7051fi 7052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_regex_header" >&5 7053$as_echo "$libopts_cv_with_regex_header" >&6; } 7054 7055fi 7056 # end of AC_ARG_WITH 7057 7058 if test "X${libopts_cv_with_regex_header}" != Xno 7059 then 7060 cat >>confdefs.h <<_ACEOF 7061#define REGEX_HEADER <${libopts_cv_with_regex_header}> 7062_ACEOF 7063 7064 else 7065 7066$as_echo "#define REGEX_HEADER <regex.h>" >>confdefs.h 7067 7068 fi 7069 7070 7071 7072 # Check to see if a working libregex can be found. 7073 7074 7075# Check whether --with-libregex was given. 7076if test "${with_libregex+set}" = set; then : 7077 withval=$with_libregex; libopts_cv_with_libregex_root=${with_libregex} 7078else 7079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether with-libregex was specified" >&5 7080$as_echo_n "checking whether with-libregex was specified... " >&6; } 7081if test "${libopts_cv_with_libregex_root+set}" = set; then : 7082 $as_echo_n "(cached) " >&6 7083else 7084 libopts_cv_with_libregex_root=no 7085fi 7086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_libregex_root" >&5 7087$as_echo "$libopts_cv_with_libregex_root" >&6; } 7088 7089fi 7090 # end of AC_ARG_WITH libregex 7091 7092 if test "${with_libguile+set}" = set && \ 7093 test "${withval}" = no 7094 then ## disabled by request 7095 libopts_cv_with_libregex_root=no 7096 libopts_cv_with_libregex_cflags=no 7097 libopts_cv_with_libregex_libs=no 7098 else 7099 7100 7101# Check whether --with-libregex-cflags was given. 7102if test "${with_libregex_cflags+set}" = set; then : 7103 withval=$with_libregex_cflags; libopts_cv_with_libregex_cflags=${with_regex_cflags} 7104else 7105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether with-libregex-cflags was specified" >&5 7106$as_echo_n "checking whether with-libregex-cflags was specified... " >&6; } 7107if test "${libopts_cv_with_libregex_cflags+set}" = set; then : 7108 $as_echo_n "(cached) " >&6 7109else 7110 libopts_cv_with_libregex_cflags=no 7111fi 7112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_libregex_cflags" >&5 7113$as_echo "$libopts_cv_with_libregex_cflags" >&6; } 7114 7115fi 7116 # end of AC_ARG_WITH libregex-cflags 7117 7118 7119# Check whether --with-libregex-libs was given. 7120if test "${with_libregex_libs+set}" = set; then : 7121 withval=$with_libregex_libs; libopts_cv_with_libregex_libs=${with_regex_libs} 7122else 7123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether with-libregex-libs was specified" >&5 7124$as_echo_n "checking whether with-libregex-libs was specified... " >&6; } 7125if test "${libopts_cv_with_libregex_libs+set}" = set; then : 7126 $as_echo_n "(cached) " >&6 7127else 7128 libopts_cv_with_libregex_libs=no 7129fi 7130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_libregex_libs" >&5 7131$as_echo "$libopts_cv_with_libregex_libs" >&6; } 7132 7133fi 7134 # end of AC_ARG_WITH libregex-libs 7135 7136 case "X${libopts_cv_with_libregex_cflags}" in 7137 Xyes|Xno|X ) 7138 case "X${libopts_cv_with_libregex_root}" in 7139 Xyes|Xno|X ) libopts_cv_with_libregex_cflags=no ;; 7140 * ) libopts_cv_with_libregex_cflags=-I${libopts_cv_with_libregex_root}/include ;; 7141 esac 7142 esac 7143 case "X${libopts_cv_with_libregex_libs}" in 7144 Xyes|Xno|X ) 7145 case "X${libopts_cv_with_libregex_root}" in 7146 Xyes|Xno|X ) libopts_cv_with_libregex_libs=no ;; 7147 * ) libopts_cv_with_libregex_libs="-L${libopts_cv_with_libregex_root}/lib -lregex";; 7148 esac 7149 esac 7150 libopts_save_CPPFLAGS="${CPPFLAGS}" 7151 libopts_save_LIBS="${LIBS}" 7152 fi ## disabled by request 7153 7154 case "X${libopts_cv_with_libregex_cflags}" in 7155 Xyes|Xno|X ) 7156 libopts_cv_with_libregex_cflags="" ;; 7157 * ) CPPFLAGS="${CPPFLAGS} ${libopts_cv_with_libregex_cflags}" ;; 7158 esac 7159 case "X${libopts_cv_with_libregex_libs}" in 7160 Xyes|Xno|X ) 7161 libopts_cv_with_libregex_libs="" ;; 7162 * ) 7163 LIBS="${LIBS} ${libopts_cv_with_libregex_libs}" ;; 7164 esac 7165 LIBREGEX_CFLAGS="" 7166 LIBREGEX_LIBS="" 7167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libregex functions properly" >&5 7168$as_echo_n "checking whether libregex functions properly... " >&6; } 7169 if test "${libopts_cv_with_libregex+set}" = set; then : 7170 $as_echo_n "(cached) " >&6 7171else 7172 7173 if test "$cross_compiling" = yes; then : 7174 libopts_cv_with_libregex=no 7175else 7176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7177/* end confdefs.h. */ 7178#include <stdio.h> 7179#include <stdlib.h> 7180#include <sys/types.h> 7181#include REGEX_HEADER 7182static regex_t re; 7183void comp_re( char const* pzPat ) { 7184 int res = regcomp( &re, pzPat, REG_EXTENDED|REG_ICASE|REG_NEWLINE ); 7185 if (res == 0) return; 7186 exit( res ); } 7187int main() { 7188 regmatch_t m[2]; 7189 comp_re( "^.*\$" ); 7190 comp_re( "()|no.*" ); 7191 comp_re( "." ); 7192 if (regexec( &re, "X", 2, m, 0 ) != 0) return 1; 7193 if ((m[0].rm_so != 0) || (m[0].rm_eo != 1)) { 7194 fputs( "error: regex -->.<-- did not match\n", stderr ); 7195 return 1; 7196 } 7197 return 0; } 7198_ACEOF 7199if ac_fn_c_try_run "$LINENO"; then : 7200 libopts_cv_with_libregex=yes 7201else 7202 libopts_cv_with_libregex=no 7203fi 7204rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7205 conftest.$ac_objext conftest.beam conftest.$ac_ext 7206fi 7207 # end of AC_TRY_RUN 7208 7209fi 7210 # end of AC_CACHE_VAL for libopts_cv_with_libregex 7211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_with_libregex}" >&5 7212$as_echo "${libopts_cv_with_libregex}" >&6; } 7213 7214 if test "X${libopts_cv_with_libregex}" != Xno 7215 then 7216 7217$as_echo "#define WITH_LIBREGEX 1" >>confdefs.h 7218 7219 else 7220 CPPFLAGS="${libopts_save_CPPFLAGS}" 7221 LIBS="${libopts_save_LIBS}" 7222 fi 7223 7224 7225 7226 # Check to see if pathfind(3) works. 7227 7228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pathfind(3) works" >&5 7229$as_echo_n "checking whether pathfind(3) works... " >&6; } 7230 if test "${libopts_cv_run_pathfind+set}" = set; then : 7231 $as_echo_n "(cached) " >&6 7232else 7233 7234 if test "$cross_compiling" = yes; then : 7235 libopts_cv_run_pathfind=no 7236 7237else 7238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7239/* end confdefs.h. */ 7240#include <string.h> 7241#include <stdlib.h> 7242int main (int argc, char** argv) { 7243 char* pz = pathfind( getenv( "PATH" ), "sh", "x" ); 7244 return (pz == 0) ? 1 : 0; 7245} 7246_ACEOF 7247if ac_fn_c_try_run "$LINENO"; then : 7248 libopts_cv_run_pathfind=yes 7249else 7250 libopts_cv_run_pathfind=no 7251fi 7252rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7253 conftest.$ac_objext conftest.beam conftest.$ac_ext 7254fi 7255 # end of TRY_RUN 7256 7257fi 7258 # end of AC_CACHE_VAL for libopts_cv_run_pathfind 7259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_pathfind}" >&5 7260$as_echo "${libopts_cv_run_pathfind}" >&6; } 7261 7262 if test "X${libopts_cv_run_pathfind}" != Xno 7263 then 7264 7265$as_echo "#define HAVE_PATHFIND 1" >>confdefs.h 7266 7267 fi 7268 7269 7270 7271 # Check to see if /dev/zero is readable device. 7272 7273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether /dev/zero is readable device" >&5 7274$as_echo_n "checking whether /dev/zero is readable device... " >&6; } 7275 if test "${libopts_cv_test_dev_zero+set}" = set; then : 7276 $as_echo_n "(cached) " >&6 7277else 7278 7279 libopts_cv_test_dev_zero=`exec 2> /dev/null 7280dzero=\`ls -lL /dev/zero | egrep ^c......r\` 7281test -z "${dzero}" && exit 1 7282echo ${dzero}` 7283 if test $? -ne 0 7284 then libopts_cv_test_dev_zero=no 7285 elif test -z "$libopts_cv_test_dev_zero" 7286 then libopts_cv_test_dev_zero=no 7287 fi 7288 7289fi 7290 # end of CACHE_VAL of libopts_cv_test_dev_zero 7291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_test_dev_zero}" >&5 7292$as_echo "${libopts_cv_test_dev_zero}" >&6; } 7293 7294 if test "X${libopts_cv_test_dev_zero}" != Xno 7295 then 7296 7297$as_echo "#define HAVE_DEV_ZERO 1" >>confdefs.h 7298 7299 fi 7300 7301 7302 7303 # Check to see if we have a functional realpath(3C). 7304 7305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have a functional realpath(3C)" >&5 7306$as_echo_n "checking whether we have a functional realpath(3C)... " >&6; } 7307 if test "${libopts_cv_run_realpath+set}" = set; then : 7308 $as_echo_n "(cached) " >&6 7309else 7310 7311 if test "$cross_compiling" = yes; then : 7312 libopts_cv_run_realpath=no 7313 7314else 7315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7316/* end confdefs.h. */ 7317#include <limits.h> 7318#include <stdlib.h> 7319int main (int argc, char** argv) { 7320#ifndef PATH_MAX 7321choke me!! 7322#else 7323 char zPath[PATH_MAX+1]; 7324#endif 7325 char *pz = realpath(argv[0], zPath); 7326 return (pz == zPath) ? 0 : 1; 7327} 7328_ACEOF 7329if ac_fn_c_try_run "$LINENO"; then : 7330 libopts_cv_run_realpath=yes 7331else 7332 libopts_cv_run_realpath=no 7333fi 7334rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7335 conftest.$ac_objext conftest.beam conftest.$ac_ext 7336fi 7337 # end of TRY_RUN 7338 7339fi 7340 # end of AC_CACHE_VAL for libopts_cv_run_realpath 7341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_realpath}" >&5 7342$as_echo "${libopts_cv_run_realpath}" >&6; } 7343 7344 if test "X${libopts_cv_run_realpath}" != Xno 7345 then 7346 7347$as_echo "#define HAVE_REALPATH 1" >>confdefs.h 7348 7349 fi 7350 7351 7352 7353 # Check to see if strftime() works. 7354 7355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strftime() works" >&5 7356$as_echo_n "checking whether strftime() works... " >&6; } 7357 if test "${libopts_cv_run_strftime+set}" = set; then : 7358 $as_echo_n "(cached) " >&6 7359else 7360 7361 if test "$cross_compiling" = yes; then : 7362 libopts_cv_run_strftime=no 7363 7364else 7365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7366/* end confdefs.h. */ 7367#include <time.h> 7368#include <string.h> 7369char t_buf[ 64 ]; 7370int main() { 7371 static char const z[] = "Thursday Aug 28 240"; 7372 struct tm tm; 7373 tm.tm_sec = 36; /* seconds after the minute [0, 61] */ 7374 tm.tm_min = 44; /* minutes after the hour [0, 59] */ 7375 tm.tm_hour = 12; /* hour since midnight [0, 23] */ 7376 tm.tm_mday = 28; /* day of the month [1, 31] */ 7377 tm.tm_mon = 7; /* months since January [0, 11] */ 7378 tm.tm_year = 86; /* years since 1900 */ 7379 tm.tm_wday = 4; /* days since Sunday [0, 6] */ 7380 tm.tm_yday = 239; /* days since January 1 [0, 365] */ 7381 tm.tm_isdst = 1; /* flag for daylight savings time */ 7382 strftime( t_buf, sizeof( t_buf ), "%A %b %d %j", &tm ); 7383 return (strcmp( t_buf, z ) != 0); } 7384_ACEOF 7385if ac_fn_c_try_run "$LINENO"; then : 7386 libopts_cv_run_strftime=yes 7387else 7388 libopts_cv_run_strftime=no 7389fi 7390rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7391 conftest.$ac_objext conftest.beam conftest.$ac_ext 7392fi 7393 # end of TRY_RUN 7394 7395fi 7396 # end of AC_CACHE_VAL for libopts_cv_run_strftime 7397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_strftime}" >&5 7398$as_echo "${libopts_cv_run_strftime}" >&6; } 7399 7400 if test "X${libopts_cv_run_strftime}" != Xno 7401 then 7402 7403$as_echo "#define HAVE_STRFTIME 1" >>confdefs.h 7404 7405 fi 7406 7407 7408 7409 # Check to see if fopen accepts "b" mode. 7410 7411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fopen accepts \"b\" mode" >&5 7412$as_echo_n "checking whether fopen accepts \"b\" mode... " >&6; } 7413 if test "${libopts_cv_run_fopen_binary+set}" = set; then : 7414 $as_echo_n "(cached) " >&6 7415else 7416 7417 if test "$cross_compiling" = yes; then : 7418 libopts_cv_run_fopen_binary=no 7419 7420else 7421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7422/* end confdefs.h. */ 7423#include <stdio.h> 7424int main (int argc, char** argv) { 7425FILE* fp = fopen("conftest.$ac_ext", "rb"); 7426return (fp == NULL) ? 1 : fclose(fp); } 7427_ACEOF 7428if ac_fn_c_try_run "$LINENO"; then : 7429 libopts_cv_run_fopen_binary=yes 7430else 7431 libopts_cv_run_fopen_binary=no 7432fi 7433rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7434 conftest.$ac_objext conftest.beam conftest.$ac_ext 7435fi 7436 # end of TRY_RUN 7437 7438fi 7439 # end of AC_CACHE_VAL for libopts_cv_run_fopen_binary 7440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_fopen_binary}" >&5 7441$as_echo "${libopts_cv_run_fopen_binary}" >&6; } 7442 7443 if test "X${libopts_cv_run_fopen_binary}" != Xno 7444 then 7445 7446$as_echo "#define FOPEN_BINARY_FLAG \"b\"" >>confdefs.h 7447 7448 else 7449 7450$as_echo "#define FOPEN_BINARY_FLAG \"\"" >>confdefs.h 7451 7452 fi 7453 7454 7455 7456 # Check to see if fopen accepts "t" mode. 7457 7458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fopen accepts \"t\" mode" >&5 7459$as_echo_n "checking whether fopen accepts \"t\" mode... " >&6; } 7460 if test "${libopts_cv_run_fopen_text+set}" = set; then : 7461 $as_echo_n "(cached) " >&6 7462else 7463 7464 if test "$cross_compiling" = yes; then : 7465 libopts_cv_run_fopen_text=no 7466 7467else 7468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7469/* end confdefs.h. */ 7470#include <stdio.h> 7471int main (int argc, char** argv) { 7472FILE* fp = fopen("conftest.$ac_ext", "rt"); 7473return (fp == NULL) ? 1 : fclose(fp); } 7474_ACEOF 7475if ac_fn_c_try_run "$LINENO"; then : 7476 libopts_cv_run_fopen_text=yes 7477else 7478 libopts_cv_run_fopen_text=no 7479fi 7480rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7481 conftest.$ac_objext conftest.beam conftest.$ac_ext 7482fi 7483 # end of TRY_RUN 7484 7485fi 7486 # end of AC_CACHE_VAL for libopts_cv_run_fopen_text 7487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_fopen_text}" >&5 7488$as_echo "${libopts_cv_run_fopen_text}" >&6; } 7489 7490 if test "X${libopts_cv_run_fopen_text}" != Xno 7491 then 7492 7493$as_echo "#define FOPEN_TEXT_FLAG \"t\"" >>confdefs.h 7494 7495 else 7496 7497$as_echo "#define FOPEN_TEXT_FLAG \"\"" >>confdefs.h 7498 7499 fi 7500 7501 7502 7503 # Check to see if not wanting optional option args. 7504 7505 # Check whether --enable-optional-args was given. 7506if test "${enable_optional_args+set}" = set; then : 7507 enableval=$enable_optional_args; libopts_cv_enable_optional_args=${enable_optional_args} 7508else 7509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether not wanting optional option args" >&5 7510$as_echo_n "checking whether not wanting optional option args... " >&6; } 7511if test "${libopts_cv_enable_optional_args+set}" = set; then : 7512 $as_echo_n "(cached) " >&6 7513else 7514 libopts_cv_enable_optional_args=yes 7515fi 7516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_enable_optional_args" >&5 7517$as_echo "$libopts_cv_enable_optional_args" >&6; } 7518 7519fi 7520 # end of AC_ARG_ENABLE 7521 7522 if test "X${libopts_cv_enable_optional_args}" = Xno 7523 then 7524 7525$as_echo "#define NO_OPTIONAL_OPT_ARGS 1" >>confdefs.h 7526 7527 fi 7528 7529 7530 7531 7532 else 7533 7534if test X${INVOKE_LIBOPTS_MACROS_FIRST_done} != Xyes ; then 7535 # ================= 7536 # AC_HEADER_STDC 7537 # ================= 7538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 7539$as_echo_n "checking for ANSI C header files... " >&6; } 7540if test "${ac_cv_header_stdc+set}" = set; then : 7541 $as_echo_n "(cached) " >&6 7542else 7543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7544/* end confdefs.h. */ 7545#include <stdlib.h> 7546#include <stdarg.h> 7547#include <string.h> 7548#include <float.h> 7549 7550int 7551main () 7552{ 7553 7554 ; 7555 return 0; 7556} 7557_ACEOF 7558if ac_fn_c_try_compile "$LINENO"; then : 7559 ac_cv_header_stdc=yes 7560else 7561 ac_cv_header_stdc=no 7562fi 7563rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7564 7565