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 7565if test $ac_cv_header_stdc = yes; then 7566 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 7567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7568/* end confdefs.h. */ 7569#include <string.h> 7570 7571_ACEOF 7572if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7573 $EGREP "memchr" >/dev/null 2>&1; then : 7574 7575else 7576 ac_cv_header_stdc=no 7577fi 7578rm -f conftest* 7579 7580fi 7581 7582if test $ac_cv_header_stdc = yes; then 7583 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 7584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7585/* end confdefs.h. */ 7586#include <stdlib.h> 7587 7588_ACEOF 7589if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7590 $EGREP "free" >/dev/null 2>&1; then : 7591 7592else 7593 ac_cv_header_stdc=no 7594fi 7595rm -f conftest* 7596 7597fi 7598 7599if test $ac_cv_header_stdc = yes; then 7600 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 7601 if test "$cross_compiling" = yes; then : 7602 : 7603else 7604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7605/* end confdefs.h. */ 7606#include <ctype.h> 7607#include <stdlib.h> 7608#if ((' ' & 0x0FF) == 0x020) 7609# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 7610# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 7611#else 7612# define ISLOWER(c) \ 7613 (('a' <= (c) && (c) <= 'i') \ 7614 || ('j' <= (c) && (c) <= 'r') \ 7615 || ('s' <= (c) && (c) <= 'z')) 7616# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 7617#endif 7618 7619#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 7620int 7621main () 7622{ 7623 int i; 7624 for (i = 0; i < 256; i++) 7625 if (XOR (islower (i), ISLOWER (i)) 7626 || toupper (i) != TOUPPER (i)) 7627 return 2; 7628 return 0; 7629} 7630_ACEOF 7631if ac_fn_c_try_run "$LINENO"; then : 7632 7633else 7634 ac_cv_header_stdc=no 7635fi 7636rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7637 conftest.$ac_objext conftest.beam conftest.$ac_ext 7638fi 7639 7640fi 7641fi 7642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 7643$as_echo "$ac_cv_header_stdc" >&6; } 7644if test $ac_cv_header_stdc = yes; then 7645 7646$as_echo "#define STDC_HEADERS 1" >>confdefs.h 7647 7648fi 7649 7650 # ================= 7651 # AC_HEADER_DIRENT 7652 # ================= 7653 ac_header_dirent=no 7654for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 7655 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` 7656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 7657$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } 7658if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then : 7659 $as_echo_n "(cached) " >&6 7660else 7661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7662/* end confdefs.h. */ 7663#include <sys/types.h> 7664#include <$ac_hdr> 7665 7666int 7667main () 7668{ 7669if ((DIR *) 0) 7670return 0; 7671 ; 7672 return 0; 7673} 7674_ACEOF 7675if ac_fn_c_try_compile "$LINENO"; then : 7676 eval "$as_ac_Header=yes" 7677else 7678 eval "$as_ac_Header=no" 7679fi 7680rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7681fi 7682eval ac_res=\$$as_ac_Header 7683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 7684$as_echo "$ac_res" >&6; } 7685eval as_val=\$$as_ac_Header 7686 if test "x$as_val" = x""yes; then : 7687 cat >>confdefs.h <<_ACEOF 7688#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 7689_ACEOF 7690 7691ac_header_dirent=$ac_hdr; break 7692fi 7693 7694done 7695# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 7696if test $ac_header_dirent = dirent.h; then 7697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 7698$as_echo_n "checking for library containing opendir... " >&6; } 7699if test "${ac_cv_search_opendir+set}" = set; then : 7700 $as_echo_n "(cached) " >&6 7701else 7702 ac_func_search_save_LIBS=$LIBS 7703cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7704/* end confdefs.h. */ 7705 7706/* Override any GCC internal prototype to avoid an error. 7707 Use char because int might match the return type of a GCC 7708 builtin and then its argument prototype would still apply. */ 7709#ifdef __cplusplus 7710extern "C" 7711#endif 7712char opendir (); 7713int 7714main () 7715{ 7716return opendir (); 7717 ; 7718 return 0; 7719} 7720_ACEOF 7721for ac_lib in '' dir; do 7722 if test -z "$ac_lib"; then 7723 ac_res="none required" 7724 else 7725 ac_res=-l$ac_lib 7726 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 7727 fi 7728 if ac_fn_c_try_link "$LINENO"; then : 7729 ac_cv_search_opendir=$ac_res 7730fi 7731rm -f core conftest.err conftest.$ac_objext \ 7732 conftest$ac_exeext 7733 if test "${ac_cv_search_opendir+set}" = set; then : 7734 break 7735fi 7736done 7737if test "${ac_cv_search_opendir+set}" = set; then : 7738 7739else 7740 ac_cv_search_opendir=no 7741fi 7742rm conftest.$ac_ext 7743LIBS=$ac_func_search_save_LIBS 7744fi 7745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 7746$as_echo "$ac_cv_search_opendir" >&6; } 7747ac_res=$ac_cv_search_opendir 7748if test "$ac_res" != no; then : 7749 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 7750 7751fi 7752 7753else 7754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 7755$as_echo_n "checking for library containing opendir... " >&6; } 7756if test "${ac_cv_search_opendir+set}" = set; then : 7757 $as_echo_n "(cached) " >&6 7758else 7759 ac_func_search_save_LIBS=$LIBS 7760cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7761/* end confdefs.h. */ 7762 7763/* Override any GCC internal prototype to avoid an error. 7764 Use char because int might match the return type of a GCC 7765 builtin and then its argument prototype would still apply. */ 7766#ifdef __cplusplus 7767extern "C" 7768#endif 7769char opendir (); 7770int 7771main () 7772{ 7773return opendir (); 7774 ; 7775 return 0; 7776} 7777_ACEOF 7778for ac_lib in '' x; do 7779 if test -z "$ac_lib"; then 7780 ac_res="none required" 7781 else 7782 ac_res=-l$ac_lib 7783 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 7784 fi 7785 if ac_fn_c_try_link "$LINENO"; then : 7786 ac_cv_search_opendir=$ac_res 7787fi 7788rm -f core conftest.err conftest.$ac_objext \ 7789 conftest$ac_exeext 7790 if test "${ac_cv_search_opendir+set}" = set; then : 7791 break 7792fi 7793done 7794if test "${ac_cv_search_opendir+set}" = set; then : 7795 7796else 7797 ac_cv_search_opendir=no 7798fi 7799rm conftest.$ac_ext 7800LIBS=$ac_func_search_save_LIBS 7801fi 7802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 7803$as_echo "$ac_cv_search_opendir" >&6; } 7804ac_res=$ac_cv_search_opendir 7805if test "$ac_res" != no; then : 7806 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 7807 7808fi 7809 7810fi 7811 7812 7813 # ================= 7814 # AC_CHECK_HEADERS 7815 # ================= 7816 for ac_header in dlfcn.h errno.h fcntl.h libgen.h memory.h netinet/in.h \ 7817 setjmp.h sys/mman.h sys/param.h sys/poll.h sys/procset.h sys/select.h \ 7818 sys/socket.h sys/stropts.h sys/time.h sys/un.h sys/wait.h unistd.h \ 7819 utime.h sysexits.h 7820do : 7821 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7822ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 7823eval as_val=\$$as_ac_Header 7824 if test "x$as_val" = x""yes; then : 7825 cat >>confdefs.h <<_ACEOF 7826#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7827_ACEOF 7828 7829fi 7830 7831done 7832 7833 7834 # -------------------------------------------- 7835 # Verify certain entries from AC_CHECK_HEADERS 7836 # -------------------------------------------- 7837 for f in sys_types sys_mman sys_param sys_stat sys_wait \ 7838 string errno stdlib memory setjmp 7839 do eval as_ac_var=\${ac_cv_header_${f}_h+set} 7840 test "${as_ac_var}" = set || \ 7841 as_fn_error "You must have ${f}.h on your system" "$LINENO" 5 7842 done 7843 7844 # ================================================ 7845 # AC_CHECK_HEADERS: stdarg.h is present define HAVE_STDARG_H, otherwise 7846 # if varargs.h is present define HAVE_VARARGS_H. 7847 # ================================================ 7848 for ac_header in stdarg.h varargs.h 7849do : 7850 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7851ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 7852eval as_val=\$$as_ac_Header 7853 if test "x$as_val" = x""yes; then : 7854 cat >>confdefs.h <<_ACEOF 7855#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7856_ACEOF 7857 break 7858fi 7859 7860done 7861 7862 if test `eval echo '${'$as_ac_Header'}'` != yes; then 7863 as_fn_error "You must have stdarg.h or varargs.h on your system" "$LINENO" 5 7864 fi 7865 7866 # ================================================ 7867 # Similarly for the string.h and strings.h headers 7868 # ================================================ 7869 for ac_header in string.h strings.h 7870do : 7871 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7872ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 7873eval as_val=\$$as_ac_Header 7874 if test "x$as_val" = x""yes; then : 7875 cat >>confdefs.h <<_ACEOF 7876#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7877_ACEOF 7878 break 7879fi 7880 7881done 7882 7883 if test `eval echo '${'$as_ac_Header'}'` != yes; then 7884 as_fn_error "You must have string.h or strings.h on your system" "$LINENO" 5 7885 fi 7886 7887 # ===================== 7888 # ...and limits headers 7889 # ===================== 7890 for ac_header in limits.h sys/limits.h values.h 7891do : 7892 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7893ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 7894eval as_val=\$$as_ac_Header 7895 if test "x$as_val" = x""yes; then : 7896 cat >>confdefs.h <<_ACEOF 7897#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7898_ACEOF 7899 break 7900fi 7901 7902done 7903 7904 if test `eval echo '${'$as_ac_Header'}'` != yes; then 7905 as_fn_error "You must have one of limits.h, sys/limits.h or values.h" "$LINENO" 5 7906 fi 7907 7908 # ======================== 7909 # ...and int types headers 7910 # ======================== 7911 for ac_header in stdint.h inttypes.h 7912do : 7913 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7914ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 7915eval as_val=\$$as_ac_Header 7916 if test "x$as_val" = x""yes; then : 7917 cat >>confdefs.h <<_ACEOF 7918#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7919_ACEOF 7920 break 7921fi 7922 7923done 7924 7925 ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default" 7926if test "x$ac_cv_type_int8_t" = x""yes; then : 7927 7928cat >>confdefs.h <<_ACEOF 7929#define HAVE_INT8_T 1 7930_ACEOF 7931 7932 7933fi 7934ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default" 7935if test "x$ac_cv_type_uint8_t" = x""yes; then : 7936 7937cat >>confdefs.h <<_ACEOF 7938#define HAVE_UINT8_T 1 7939_ACEOF 7940 7941 7942fi 7943ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default" 7944if test "x$ac_cv_type_int16_t" = x""yes; then : 7945 7946cat >>confdefs.h <<_ACEOF 7947#define HAVE_INT16_T 1 7948_ACEOF 7949 7950 7951fi 7952ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default" 7953if test "x$ac_cv_type_uint16_t" = x""yes; then : 7954 7955cat >>confdefs.h <<_ACEOF 7956#define HAVE_UINT16_T 1 7957_ACEOF 7958 7959 7960fi 7961ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default" 7962if test "x$ac_cv_type_int32_t" = x""yes; then : 7963 7964cat >>confdefs.h <<_ACEOF 7965#define HAVE_INT32_T 1 7966_ACEOF 7967 7968 7969fi 7970ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default" 7971if test "x$ac_cv_type_uint32_t" = x""yes; then : 7972 7973cat >>confdefs.h <<_ACEOF 7974#define HAVE_UINT32_T 1 7975_ACEOF 7976 7977 7978fi 7979ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default" 7980if test "x$ac_cv_type_intptr_t" = x""yes; then : 7981 7982cat >>confdefs.h <<_ACEOF 7983#define HAVE_INTPTR_T 1 7984_ACEOF 7985 7986 7987fi 7988ac_fn_c_check_type "$LINENO" "uint_t" "ac_cv_type_uint_t" "$ac_includes_default" 7989if test "x$ac_cv_type_uint_t" = x""yes; then : 7990 7991cat >>confdefs.h <<_ACEOF 7992#define HAVE_UINT_T 1 7993_ACEOF 7994 7995 7996fi 7997 7998 7999 # ==================== 8000 # uintptr type & sizes 8001 # ==================== 8002 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default" 8003if test "x$ac_cv_type_uintptr_t" = x""yes; then : 8004 8005cat >>confdefs.h <<_ACEOF 8006#define HAVE_UINTPTR_T 1 8007_ACEOF 8008 8009 8010else 8011 8012$as_echo "#define uintptr_t unsigned long" >>confdefs.h 8013 8014fi 8015 8016 # The cast to long int works around a bug in the HP C Compiler 8017# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 8018# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 8019# This bug is HP SR number 8606223364. 8020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char*" >&5 8021$as_echo_n "checking size of char*... " >&6; } 8022if test "${ac_cv_sizeof_charp+set}" = set; then : 8023 $as_echo_n "(cached) " >&6 8024else 8025 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char*))" "ac_cv_sizeof_charp" "$ac_includes_default"; then : 8026 8027else 8028 if test "$ac_cv_type_charp" = yes; then 8029 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 8030$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 8031{ as_fn_set_status 77 8032as_fn_error "cannot compute sizeof (char*) 8033See \`config.log' for more details." "$LINENO" 5; }; } 8034 else 8035 ac_cv_sizeof_charp=0 8036 fi 8037fi 8038 8039fi 8040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_charp" >&5 8041$as_echo "$ac_cv_sizeof_charp" >&6; } 8042 8043 8044 8045cat >>confdefs.h <<_ACEOF 8046#define SIZEOF_CHARP $ac_cv_sizeof_charp 8047_ACEOF 8048 8049 8050 # The cast to long int works around a bug in the HP C Compiler 8051# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 8052# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 8053# This bug is HP SR number 8606223364. 8054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 8055$as_echo_n "checking size of int... " >&6; } 8056if test "${ac_cv_sizeof_int+set}" = set; then : 8057 $as_echo_n "(cached) " >&6 8058else 8059 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : 8060 8061else 8062 if test "$ac_cv_type_int" = yes; then 8063 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 8064$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 8065{ as_fn_set_status 77 8066as_fn_error "cannot compute sizeof (int) 8067See \`config.log' for more details." "$LINENO" 5; }; } 8068 else 8069 ac_cv_sizeof_int=0 8070 fi 8071fi 8072 8073fi 8074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 8075$as_echo "$ac_cv_sizeof_int" >&6; } 8076 8077 8078 8079cat >>confdefs.h <<_ACEOF 8080#define SIZEOF_INT $ac_cv_sizeof_int 8081_ACEOF 8082 8083 8084 # The cast to long int works around a bug in the HP C Compiler 8085# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 8086# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 8087# This bug is HP SR number 8606223364. 8088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 8089$as_echo_n "checking size of long... " >&6; } 8090if test "${ac_cv_sizeof_long+set}" = set; then : 8091 $as_echo_n "(cached) " >&6 8092else 8093 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : 8094 8095else 8096 if test "$ac_cv_type_long" = yes; then 8097 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 8098$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 8099{ as_fn_set_status 77 8100as_fn_error "cannot compute sizeof (long) 8101See \`config.log' for more details." "$LINENO" 5; }; } 8102 else 8103 ac_cv_sizeof_long=0 8104 fi 8105fi 8106 8107fi 8108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 8109$as_echo "$ac_cv_sizeof_long" >&6; } 8110 8111 8112 8113cat >>confdefs.h <<_ACEOF 8114#define SIZEOF_LONG $ac_cv_sizeof_long 8115_ACEOF 8116 8117 8118 # The cast to long int works around a bug in the HP C Compiler 8119# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 8120# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 8121# This bug is HP SR number 8606223364. 8122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 8123$as_echo_n "checking size of short... " >&6; } 8124if test "${ac_cv_sizeof_short+set}" = set; then : 8125 $as_echo_n "(cached) " >&6 8126else 8127 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then : 8128 8129else 8130 if test "$ac_cv_type_short" = yes; then 8131 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 8132$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 8133{ as_fn_set_status 77 8134as_fn_error "cannot compute sizeof (short) 8135See \`config.log' for more details." "$LINENO" 5; }; } 8136 else 8137 ac_cv_sizeof_short=0 8138 fi 8139fi 8140 8141fi 8142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 8143$as_echo "$ac_cv_sizeof_short" >&6; } 8144 8145 8146 8147cat >>confdefs.h <<_ACEOF 8148#define SIZEOF_SHORT $ac_cv_sizeof_short 8149_ACEOF 8150 8151 8152 8153 # ---------------------------------------------------------------------- 8154 # AC_CHECK_LIB for SVR4 libgen, and use it if it defines pathfind. 8155 # ---------------------------------------------------------------------- 8156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pathfind in -lgen" >&5 8157$as_echo_n "checking for pathfind in -lgen... " >&6; } 8158if test "${ac_cv_lib_gen_pathfind+set}" = set; then : 8159 $as_echo_n "(cached) " >&6 8160else 8161 ac_check_lib_save_LIBS=$LIBS 8162LIBS="-lgen $LIBS" 8163cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8164/* end confdefs.h. */ 8165 8166/* Override any GCC internal prototype to avoid an error. 8167 Use char because int might match the return type of a GCC 8168 builtin and then its argument prototype would still apply. */ 8169#ifdef __cplusplus 8170extern "C" 8171#endif 8172char pathfind (); 8173int 8174main () 8175{ 8176return pathfind (); 8177 ; 8178 return 0; 8179} 8180_ACEOF 8181if ac_fn_c_try_link "$LINENO"; then : 8182 ac_cv_lib_gen_pathfind=yes 8183else 8184 ac_cv_lib_gen_pathfind=no 8185fi 8186rm -f core conftest.err conftest.$ac_objext \ 8187 conftest$ac_exeext conftest.$ac_ext 8188LIBS=$ac_check_lib_save_LIBS 8189fi 8190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_pathfind" >&5 8191$as_echo "$ac_cv_lib_gen_pathfind" >&6; } 8192if test "x$ac_cv_lib_gen_pathfind" = x""yes; then : 8193 cat >>confdefs.h <<_ACEOF 8194#define HAVE_LIBGEN 1 8195_ACEOF 8196 8197 LIBS="-lgen $LIBS" 8198 8199fi 8200 8201 for ac_func in vprintf 8202do : 8203 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf" 8204if test "x$ac_cv_func_vprintf" = x""yes; then : 8205 cat >>confdefs.h <<_ACEOF 8206#define HAVE_VPRINTF 1 8207_ACEOF 8208 8209ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt" 8210if test "x$ac_cv_func__doprnt" = x""yes; then : 8211 8212$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h 8213 8214fi 8215 8216fi 8217done 8218 8219 8220 for ac_func in mmap canonicalize_file_name snprintf strdup strchr strrchr 8221do : 8222 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 8223ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 8224eval as_val=\$$as_ac_var 8225 if test "x$as_val" = x""yes; then : 8226 cat >>confdefs.h <<_ACEOF 8227#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 8228_ACEOF 8229 8230fi 8231done 8232 8233 INVOKE_LIBOPTS_MACROS_FIRST_done=yes 8234fi 8235 fi 8236# end of AC_DEFUN of LIBOPTS_CHECK 8237 8238 8239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle #warning" >&5 8240$as_echo_n "checking if $CC can handle #warning... " >&6; } 8241if test "${ac_cv_cpp_warning+set}" = set; then : 8242 $as_echo_n "(cached) " >&6 8243else 8244 8245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8246/* end confdefs.h. */ 8247 8248int 8249main () 8250{ 8251#warning foo 8252 ; 8253 return 0; 8254} 8255_ACEOF 8256if ac_fn_c_try_compile "$LINENO"; then : 8257 ac_cv_cpp_warning=yes 8258else 8259 ac_cv_cpp_warning=no 8260fi 8261rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8262 8263 8264fi 8265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_warning" >&5 8266$as_echo "$ac_cv_cpp_warning" >&6; } 8267 8268case "$ac_cv_cpp_warning" in 8269 no) 8270 8271$as_echo "#define NO_OPTION_NAME_WARNINGS 1" >>confdefs.h 8272 8273esac 8274 8275case "$GCC" in 8276 yes) 8277 SAVED_CFLAGS_AC="$CFLAGS" 8278 CFLAGS="$CFLAGS -Wstrict-overflow" 8279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle -Wstrict-overflow" >&5 8280$as_echo_n "checking if $CC can handle -Wstrict-overflow... " >&6; } 8281if test "${ac_cv_gcc_Wstrict_overflow+set}" = set; then : 8282 $as_echo_n "(cached) " >&6 8283else 8284 8285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8286/* end confdefs.h. */ 8287 8288int 8289main () 8290{ 8291 8292 ; 8293 return 0; 8294} 8295_ACEOF 8296if ac_fn_c_try_compile "$LINENO"; then : 8297 ac_cv_gcc_Wstrict_overflow=yes 8298else 8299 ac_cv_gcc_Wstrict_overflow=no 8300 8301fi 8302rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8303 8304 8305fi 8306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gcc_Wstrict_overflow" >&5 8307$as_echo "$ac_cv_gcc_Wstrict_overflow" >&6; } 8308 CFLAGS="$SAVED_CFLAGS_AC" 8309 unset SAVED_CFLAGS_AC 8310 # 8311 # $ac_cv_gcc_Wstrict_overflow is tested later to add the 8312 # flag to CFLAGS. 8313 # 8314esac 8315 8316 8317case "$GCC" in 8318 yes) 8319 SAVED_CFLAGS_AC="$CFLAGS" 8320 CFLAGS="$CFLAGS -Winit-self" 8321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle -Winit-self" >&5 8322$as_echo_n "checking if $CC can handle -Winit-self... " >&6; } 8323if test "${ac_cv_gcc_Winit_self+set}" = set; then : 8324 $as_echo_n "(cached) " >&6 8325else 8326 8327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8328/* end confdefs.h. */ 8329 8330int 8331main () 8332{ 8333 8334 ; 8335 return 0; 8336} 8337_ACEOF 8338if ac_fn_c_try_compile "$LINENO"; then : 8339 ac_cv_gcc_Winit_self=yes 8340else 8341 ac_cv_gcc_Winit_self=no 8342 8343fi 8344rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8345 8346 8347fi 8348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gcc_Winit_self" >&5 8349$as_echo "$ac_cv_gcc_Winit_self" >&6; } 8350 CFLAGS="$SAVED_CFLAGS_AC" 8351 unset SAVED_CFLAGS_AC 8352 # 8353 # $ac_cv_gcc_Winit_self is tested later to add the 8354 # flag to CFLAGS. 8355 # 8356esac 8357 8358 8359 8360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for bin subdirectory" >&5 8361$as_echo_n "checking for bin subdirectory... " >&6; } 8362 8363# Check whether --with-binsubdir was given. 8364if test "${with_binsubdir+set}" = set; then : 8365 withval=$with_binsubdir; use_binsubdir="$withval" 8366else 8367 use_binsubdir="bin" 8368fi 8369 8370 8371case "$use_binsubdir" in 8372 bin) 8373 ;; 8374 sbin) 8375 ;; 8376 *) 8377 as_fn_error "<$use_binsubdir> is illegal - must be \"bin\" or \"sbin\"" "$LINENO" 5 8378 ;; 8379esac 8380{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_binsubdir" >&5 8381$as_echo "$use_binsubdir" >&6; } 8382BINSUBDIR=$use_binsubdir 8383 8384 8385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to use arlib" >&5 8386$as_echo_n "checking if we want to use arlib... " >&6; } 8387 8388# Check whether --with-arlib was given. 8389if test "${with_arlib+set}" = set; then : 8390 withval=$with_arlib; ans=$withval 8391else 8392 ans=no 8393fi 8394 8395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 8396$as_echo "$ans" >&6; } 8397 8398if test -d $srcdir/arlib 8399then 8400 case "$ans" in 8401 yes) 8402 ARLIB_DIR=arlib 8403 8404 8405subdirs="$subdirs arlib" 8406 8407 ;; 8408 esac 8409fi 8410 8411 8412 8413# Check whether --with-rpath was given. 8414if test "${with_rpath+set}" = set; then : 8415 withval=$with_rpath; ans=$withval 8416else 8417 ans=x 8418fi 8419 8420case "$ans" in 8421 no) 8422 need_dash_r= 8423 ;; 8424 yes) 8425 need_dash_r=1 8426 ;; 8427esac 8428# HMS: Why isn't this $build? 8429# Well, that depends on if we need this for the build toolchain or 8430# for info in the host executable... 8431# I still have no idea which way this should go, but nobody has complained. 8432case "$host" in 8433 *-*-netbsd*) 8434 case "$need_dash_r" in 8435 no) ;; 8436 *) need_dash_r=1 8437 ;; 8438 esac 8439 ;; 8440 *-*-solaris*) 8441 case "$need_dash_r" in 8442 no) ;; 8443 *) need_dash_r=1 8444 ;; 8445 esac 8446 ;; 8447esac 8448 8449 8450case "$build" in 8451 $host) 8452 ;; 8453 *) case "$host" in 8454 *-*-vxworks*) 8455 # Quick and dirty sanity check 8456 case "$VX_KERNEL" in 8457 '') as_fn_error "Please follow the directions in html/build/hints/vxworks.html!" "$LINENO" 5 8458 ;; 8459 esac 8460 CFLAGS="$CFLAGS -DSYS_VXWORKS" 8461 ;; 8462 esac 8463 ;; 8464esac 8465 8466for ac_prog in gawk mawk nawk awk 8467do 8468 # Extract the first word of "$ac_prog", so it can be a program name with args. 8469set dummy $ac_prog; ac_word=$2 8470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8471$as_echo_n "checking for $ac_word... " >&6; } 8472if test "${ac_cv_prog_AWK+set}" = set; then : 8473 $as_echo_n "(cached) " >&6 8474else 8475 if test -n "$AWK"; then 8476 ac_cv_prog_AWK="$AWK" # Let the user override the test. 8477else 8478as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8479for as_dir in $PATH 8480do 8481 IFS=$as_save_IFS 8482 test -z "$as_dir" && as_dir=. 8483 for ac_exec_ext in '' $ac_executable_extensions; do 8484 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8485 ac_cv_prog_AWK="$ac_prog" 8486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8487 break 2 8488 fi 8489done 8490 done 8491IFS=$as_save_IFS 8492 8493fi 8494fi 8495AWK=$ac_cv_prog_AWK 8496if test -n "$AWK"; then 8497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 8498$as_echo "$AWK" >&6; } 8499else 8500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8501$as_echo "no" >&6; } 8502fi 8503 8504 8505 test -n "$AWK" && break 8506done 8507 8508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 8509$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 8510set x ${MAKE-make} 8511ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 8512if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then : 8513 $as_echo_n "(cached) " >&6 8514else 8515 cat >conftest.make <<\_ACEOF 8516SHELL = /bin/sh 8517all: 8518 @echo '@@@%%%=$(MAKE)=@@@%%%' 8519_ACEOF 8520# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 8521case `${MAKE-make} -f conftest.make 2>/dev/null` in 8522 *@@@%%%=?*=@@@%%%*) 8523 eval ac_cv_prog_make_${ac_make}_set=yes;; 8524 *) 8525 eval ac_cv_prog_make_${ac_make}_set=no;; 8526esac 8527rm -f conftest.make 8528fi 8529if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 8530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8531$as_echo "yes" >&6; } 8532 SET_MAKE= 8533else 8534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8535$as_echo "no" >&6; } 8536 SET_MAKE="MAKE=${MAKE-make}" 8537fi 8538 8539 8540rm -f conftest* 8541 8542case "$GCC" in 8543 yes) 8544 CFLAGS="$CFLAGS -Wall" 8545 # CFLAGS="$CFLAGS -Wcast-align" 8546 CFLAGS="$CFLAGS -Wcast-qual" 8547 # CFLAGS="$CFLAGS -Wconversion" 8548 # CFLAGS="$CFLAGS -Werror" 8549 # CFLAGS="$CFLAGS -Wextra" 8550 # CFLAGS="$CFLAGS -Wfloat-equal" 8551 CFLAGS="$CFLAGS -Wmissing-prototypes" 8552 CFLAGS="$CFLAGS -Wpointer-arith" 8553 CFLAGS="$CFLAGS -Wshadow" 8554 # 8555 # OpenSSL has a number of callback prototypes 8556 # inside other function prototypes which trigger 8557 # warnings with -Wstrict-prototypes, such as: 8558 # 8559 # int i2d_RSA_NET(const RSA *a, unsigned char **pp, 8560 # int (*cb)(), int sgckey); 8561 # ^^^^^^^^^^^ 8562 # 8563 CFLAGS="$CFLAGS -Wno-strict-prototypes" 8564 # CFLAGS="$CFLAGS -Wtraditional" 8565 # CFLAGS="$CFLAGS -Wwrite-strings" 8566 case "$ac_cv_gcc_Winit_self" in 8567 yes) 8568 CFLAGS="$CFLAGS -Winit-self" 8569 esac 8570 case "$ac_cv_gcc_Wstrict_overflow" in 8571 yes) 8572 #not yet: CFLAGS="$CFLAGS -Wstrict-overflow" 8573 esac 8574 ;; 8575esac 8576 8577case "$host" in 8578 *-next-nextstep3) 8579 CFLAGS="$CFLAGS -posix" 8580 ;; 8581esac 8582 8583ac_busted_vpath_in_make=no 8584 8585case "$build" in 8586 *-*-irix6.1*) # 64 bit only 8587 # busted vpath? 8588 ;; 8589 *-*-irix6*) # 6.2 (and later?) 8590 ac_busted_vpath_in_make=yes 8591 ;; 8592 *-*-solaris2.5.1) 8593 ac_busted_vpath_in_make=yes 8594 ;; 8595 *-*-unicosmp*) 8596 ac_busted_vpath_in_make=yes 8597 ;; 8598esac 8599 8600case "$ac_busted_vpath_in_make$srcdir" in 8601 no*) ;; 8602 yes.) ;; 8603 *) case "`${MAKE-make} -v -f /dev/null 2>/dev/null | sed -e 's/GNU Make version \(1-9.]*\).*/\1/' -e q`" in 8604 '') 8605 as_fn_error "building outside of the main directory requires GNU make" "$LINENO" 5 8606 ;; 8607 *) ;; 8608 esac 8609 ;; 8610esac 8611 8612 8613 8614 8615 8616# Check whether --enable-static was given. 8617if test "${enable_static+set}" = set; then : 8618 enableval=$enable_static; p=${PACKAGE-default} 8619 case $enableval in 8620 yes) enable_static=yes ;; 8621 no) enable_static=no ;; 8622 *) 8623 enable_static=no 8624 # Look at the argument we got. We use all the common list separators. 8625 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8626 for pkg in $enableval; do 8627 IFS="$lt_save_ifs" 8628 if test "X$pkg" = "X$p"; then 8629 enable_static=yes 8630 fi 8631 done 8632 IFS="$lt_save_ifs" 8633 ;; 8634 esac 8635else 8636 enable_static=yes 8637fi 8638 8639 8640# Check whether --enable-fast-install was given. 8641if test "${enable_fast_install+set}" = set; then : 8642 enableval=$enable_fast_install; p=${PACKAGE-default} 8643 case $enableval in 8644 yes) enable_fast_install=yes ;; 8645 no) enable_fast_install=no ;; 8646 *) 8647 enable_fast_install=no 8648 # Look at the argument we got. We use all the common list separators. 8649 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8650 for pkg in $enableval; do 8651 IFS="$lt_save_ifs" 8652 if test "X$pkg" = "X$p"; then 8653 enable_fast_install=yes 8654 fi 8655 done 8656 IFS="$lt_save_ifs" 8657 ;; 8658 esac 8659else 8660 enable_fast_install=yes 8661fi 8662 8663 8664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 8665$as_echo_n "checking for a sed that does not truncate output... " >&6; } 8666if test "${lt_cv_path_SED+set}" = set; then : 8667 $as_echo_n "(cached) " >&6 8668else 8669 # Loop through the user's path and test for sed and gsed. 8670# Then use that list of sed's as ones to test for truncation. 8671as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8672for as_dir in $PATH 8673do 8674 IFS=$as_save_IFS 8675 test -z "$as_dir" && as_dir=. 8676 for lt_ac_prog in sed gsed; do 8677 for ac_exec_ext in '' $ac_executable_extensions; do 8678 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then 8679 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 8680 fi 8681 done 8682 done 8683done 8684lt_ac_max=0 8685lt_ac_count=0 8686# Add /usr/xpg4/bin/sed as it is typically found on Solaris 8687# along with /bin/sed that truncates output. 8688for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 8689 test ! -f $lt_ac_sed && continue 8690 cat /dev/null > conftest.in 8691 lt_ac_count=0 8692 echo $ECHO_N "0123456789$ECHO_C" >conftest.in 8693 # Check for GNU sed and select it if it is found. 8694 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 8695 lt_cv_path_SED=$lt_ac_sed 8696 break 8697 fi 8698 while true; do 8699 cat conftest.in conftest.in >conftest.tmp 8700 mv conftest.tmp conftest.in 8701 cp conftest.in conftest.nl 8702 echo >>conftest.nl 8703 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 8704 cmp -s conftest.out conftest.nl || break 8705 # 10000 chars as input seems more than enough 8706 test $lt_ac_count -gt 10 && break 8707 lt_ac_count=`expr $lt_ac_count + 1` 8708 if test $lt_ac_count -gt $lt_ac_max; then 8709 lt_ac_max=$lt_ac_count 8710 lt_cv_path_SED=$lt_ac_sed 8711 fi 8712 done 8713done 8714 8715fi 8716 8717SED=$lt_cv_path_SED 8718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5 8719$as_echo "$SED" >&6; } 8720 8721 8722# Check whether --with-gnu-ld was given. 8723if test "${with_gnu_ld+set}" = set; then : 8724 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 8725else 8726 with_gnu_ld=no 8727fi 8728 8729ac_prog=ld 8730if test "$GCC" = yes; then 8731 # Check if gcc -print-prog-name=ld gives a path. 8732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 8733$as_echo_n "checking for ld used by $CC... " >&6; } 8734 case $host in 8735 *-*-mingw*) 8736 # gcc leaves a trailing carriage return which upsets mingw 8737 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 8738 *) 8739 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 8740 esac 8741 case $ac_prog in 8742 # Accept absolute paths. 8743 [\\/]* | ?:[\\/]*) 8744 re_direlt='/[^/][^/]*/\.\./' 8745 # Canonicalize the pathname of ld 8746 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 8747 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 8748 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 8749 done 8750 test -z "$LD" && LD="$ac_prog" 8751 ;; 8752 "") 8753 # If it fails, then pretend we aren't using GCC. 8754 ac_prog=ld 8755 ;; 8756 *) 8757 # If it is relative, then search for the first ld in PATH. 8758 with_gnu_ld=unknown 8759 ;; 8760 esac 8761elif test "$with_gnu_ld" = yes; then 8762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 8763$as_echo_n "checking for GNU ld... " >&6; } 8764else 8765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 8766$as_echo_n "checking for non-GNU ld... " >&6; } 8767fi 8768if test "${lt_cv_path_LD+set}" = set; then : 8769 $as_echo_n "(cached) " >&6 8770else 8771 if test -z "$LD"; then 8772 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8773 for ac_dir in $PATH; do 8774 IFS="$lt_save_ifs" 8775 test -z "$ac_dir" && ac_dir=. 8776 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 8777 lt_cv_path_LD="$ac_dir/$ac_prog" 8778 # Check to see if the program is GNU ld. I'd rather use --version, 8779 # but apparently some variants of GNU ld only accept -v. 8780 # Break only if it was the GNU/non-GNU ld that we prefer. 8781 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 8782 *GNU* | *'with BFD'*) 8783 test "$with_gnu_ld" != no && break 8784 ;; 8785 *) 8786 test "$with_gnu_ld" != yes && break 8787 ;; 8788 esac 8789 fi 8790 done 8791 IFS="$lt_save_ifs" 8792else 8793 lt_cv_path_LD="$LD" # Let the user override the test with a path. 8794fi 8795fi 8796 8797LD="$lt_cv_path_LD" 8798if test -n "$LD"; then 8799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 8800$as_echo "$LD" >&6; } 8801else 8802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8803$as_echo "no" >&6; } 8804fi 8805test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5 8806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 8807$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 8808if test "${lt_cv_prog_gnu_ld+set}" = set; then : 8809 $as_echo_n "(cached) " >&6 8810else 8811 # I'd rather use --version here, but apparently some GNU lds only accept -v. 8812case `$LD -v 2>&1 </dev/null` in 8813*GNU* | *'with BFD'*) 8814 lt_cv_prog_gnu_ld=yes 8815 ;; 8816*) 8817 lt_cv_prog_gnu_ld=no 8818 ;; 8819esac 8820fi 8821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 8822$as_echo "$lt_cv_prog_gnu_ld" >&6; } 8823with_gnu_ld=$lt_cv_prog_gnu_ld 8824 8825 8826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 8827$as_echo_n "checking for $LD option to reload object files... " >&6; } 8828if test "${lt_cv_ld_reload_flag+set}" = set; then : 8829 $as_echo_n "(cached) " >&6 8830else 8831 lt_cv_ld_reload_flag='-r' 8832fi 8833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 8834$as_echo "$lt_cv_ld_reload_flag" >&6; } 8835reload_flag=$lt_cv_ld_reload_flag 8836case $reload_flag in 8837"" | " "*) ;; 8838*) reload_flag=" $reload_flag" ;; 8839esac 8840reload_cmds='$LD$reload_flag -o $output$reload_objs' 8841case $host_os in 8842 darwin*) 8843 if test "$GCC" = yes; then 8844 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs' 8845 else 8846 reload_cmds='$LD$reload_flag -o $output$reload_objs' 8847 fi 8848 ;; 8849esac 8850 8851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD-compatible nm" >&5 8852$as_echo_n "checking for BSD-compatible nm... " >&6; } 8853if test "${lt_cv_path_NM+set}" = set; then : 8854 $as_echo_n "(cached) " >&6 8855else 8856 if test -n "$NM"; then 8857 # Let the user override the test. 8858 lt_cv_path_NM="$NM" 8859else 8860 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8861 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do 8862 IFS="$lt_save_ifs" 8863 test -z "$ac_dir" && ac_dir=. 8864 tmp_nm="$ac_dir/${ac_tool_prefix}nm" 8865 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 8866 # Check to see if the nm accepts a BSD-compat flag. 8867 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 8868 # nm: unknown option "B" ignored 8869 # Tru64's nm complains that /dev/null is an invalid object file 8870 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 8871 */dev/null* | *'Invalid file or object type'*) 8872 lt_cv_path_NM="$tmp_nm -B" 8873 break 8874 ;; 8875 *) 8876 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 8877 */dev/null*) 8878 lt_cv_path_NM="$tmp_nm -p" 8879 break 8880 ;; 8881 *) 8882 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 8883 continue # so that we can try to find one that supports BSD flags 8884 ;; 8885 esac 8886 esac 8887 fi 8888 done 8889 IFS="$lt_save_ifs" 8890 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 8891fi 8892fi 8893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 8894$as_echo "$lt_cv_path_NM" >&6; } 8895NM="$lt_cv_path_NM" 8896 8897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 8898$as_echo_n "checking whether ln -s works... " >&6; } 8899LN_S=$as_ln_s 8900if test "$LN_S" = "ln -s"; then 8901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8902$as_echo "yes" >&6; } 8903else 8904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 8905$as_echo "no, using $LN_S" >&6; } 8906fi 8907 8908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognise dependent libraries" >&5 8909$as_echo_n "checking how to recognise dependent libraries... " >&6; } 8910if test "${lt_cv_deplibs_check_method+set}" = set; then : 8911 $as_echo_n "(cached) " >&6 8912else 8913 lt_cv_file_magic_cmd='$MAGIC_CMD' 8914lt_cv_file_magic_test_file= 8915lt_cv_deplibs_check_method='unknown' 8916# Need to set the preceding variable on all platforms that support 8917# interlibrary dependencies. 8918# 'none' -- dependencies not supported. 8919# `unknown' -- same as none, but documents that we really don't know. 8920# 'pass_all' -- all dependencies passed with no checks. 8921# 'test_compile' -- check by making test program. 8922# 'file_magic [[regex]]' -- check by looking for files in library path 8923# which responds to the $file_magic_cmd with a given extended regex. 8924# If you have `file' or equivalent on your system and you're not sure 8925# whether `pass_all' will *always* work, you probably want this one. 8926 8927case $host_os in 8928aix4* | aix5*) 8929 lt_cv_deplibs_check_method=pass_all 8930 ;; 8931 8932beos*) 8933 lt_cv_deplibs_check_method=pass_all 8934 ;; 8935 8936bsdi[45]*) 8937 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 8938 lt_cv_file_magic_cmd='/usr/bin/file -L' 8939 lt_cv_file_magic_test_file=/shlib/libc.so 8940 ;; 8941 8942cygwin*) 8943 # func_win32_libid is a shell function defined in ltmain.sh 8944 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 8945 lt_cv_file_magic_cmd='func_win32_libid' 8946 ;; 8947 8948mingw* | pw32*) 8949 # Base MSYS/MinGW do not provide the 'file' command needed by 8950 # func_win32_libid shell function, so use a weaker test based on 'objdump'. 8951 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 8952 lt_cv_file_magic_cmd='$OBJDUMP -f' 8953 ;; 8954 8955darwin* | rhapsody*) 8956 lt_cv_deplibs_check_method=pass_all 8957 ;; 8958 8959freebsd* | kfreebsd*-gnu | dragonfly*) 8960 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 8961 case $host_cpu in 8962 i*86 ) 8963 # Not sure whether the presence of OpenBSD here was a mistake. 8964 # Let's accept both of them until this is cleared up. 8965 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 8966 lt_cv_file_magic_cmd=/usr/bin/file 8967 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 8968 ;; 8969 esac 8970 else 8971 lt_cv_deplibs_check_method=pass_all 8972 fi 8973 ;; 8974 8975gnu*) 8976 lt_cv_deplibs_check_method=pass_all 8977 ;; 8978 8979hpux10.20* | hpux11*) 8980 lt_cv_file_magic_cmd=/usr/bin/file 8981 case $host_cpu in 8982 ia64*) 8983 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 8984 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 8985 ;; 8986 hppa*64*) 8987 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]' 8988 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 8989 ;; 8990 *) 8991 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 8992 lt_cv_file_magic_test_file=/usr/lib/libc.sl 8993 ;; 8994 esac 8995 ;; 8996 8997irix5* | irix6* | nonstopux*) 8998 case $LD in 8999 *-32|*"-32 ") libmagic=32-bit;; 9000 *-n32|*"-n32 ") libmagic=N32;; 9001 *-64|*"-64 ") libmagic=64-bit;; 9002 *) libmagic=never-match;; 9003 esac 9004 lt_cv_deplibs_check_method=pass_all 9005 ;; 9006 9007# This must be Linux ELF. 9008linux*) 9009 lt_cv_deplibs_check_method=pass_all 9010 ;; 9011 9012netbsd*) 9013 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 9014 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 9015 else 9016 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 9017 fi 9018 ;; 9019 9020newos6*) 9021 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 9022 lt_cv_file_magic_cmd=/usr/bin/file 9023 lt_cv_file_magic_test_file=/usr/lib/libnls.so 9024 ;; 9025 9026nto-qnx*) 9027 lt_cv_deplibs_check_method=unknown 9028 ;; 9029 9030openbsd*) 9031 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9032 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 9033 else 9034 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 9035 fi 9036 ;; 9037 9038osf3* | osf4* | osf5*) 9039 lt_cv_deplibs_check_method=pass_all 9040 ;; 9041 9042sco3.2v5*) 9043 lt_cv_deplibs_check_method=pass_all 9044 ;; 9045 9046solaris*) 9047 lt_cv_deplibs_check_method=pass_all 9048 ;; 9049 9050sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 9051 case $host_vendor in 9052 motorola) 9053 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]' 9054 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 9055 ;; 9056 ncr) 9057 lt_cv_deplibs_check_method=pass_all 9058 ;; 9059 sequent) 9060 lt_cv_file_magic_cmd='/bin/file' 9061 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 9062 ;; 9063 sni) 9064 lt_cv_file_magic_cmd='/bin/file' 9065 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 9066 lt_cv_file_magic_test_file=/lib/libc.so 9067 ;; 9068 siemens) 9069 lt_cv_deplibs_check_method=pass_all 9070 ;; 9071 esac 9072 ;; 9073 9074sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*) 9075 lt_cv_deplibs_check_method=pass_all 9076 ;; 9077esac 9078 9079fi 9080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 9081$as_echo "$lt_cv_deplibs_check_method" >&6; } 9082file_magic_cmd=$lt_cv_file_magic_cmd 9083deplibs_check_method=$lt_cv_deplibs_check_method 9084test -z "$deplibs_check_method" && deplibs_check_method=unknown 9085 9086 9087 9088 9089# If no C compiler was specified, use CC. 9090LTCC=${LTCC-"$CC"} 9091 9092# Allow CC to be a program name with arguments. 9093compiler=$CC 9094 9095# Check whether --enable-libtool-lock was given. 9096if test "${enable_libtool_lock+set}" = set; then : 9097 enableval=$enable_libtool_lock; 9098fi 9099 9100test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 9101 9102# Some flags need to be propagated to the compiler or linker for good 9103# libtool support. 9104case $host in 9105ia64-*-hpux*) 9106 # Find out which ABI we are using. 9107 echo 'int i;' > conftest.$ac_ext 9108 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9109 (eval $ac_compile) 2>&5 9110 ac_status=$? 9111 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9112 test $ac_status = 0; }; then 9113 case `/usr/bin/file conftest.$ac_objext` in 9114 *ELF-32*) 9115 HPUX_IA64_MODE="32" 9116 ;; 9117 *ELF-64*) 9118 HPUX_IA64_MODE="64" 9119 ;; 9120 esac 9121 fi 9122 rm -rf conftest* 9123 ;; 9124*-*-irix6*) 9125 # Find out which ABI we are using. 9126 echo '#line 9126 "configure"' > conftest.$ac_ext 9127 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9128 (eval $ac_compile) 2>&5 9129 ac_status=$? 9130 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9131 test $ac_status = 0; }; then 9132 if test "$lt_cv_prog_gnu_ld" = yes; then 9133 case `/usr/bin/file conftest.$ac_objext` in 9134 *32-bit*) 9135 LD="${LD-ld} -melf32bsmip" 9136 ;; 9137 *N32*) 9138 LD="${LD-ld} -melf32bmipn32" 9139 ;; 9140 *64-bit*) 9141 LD="${LD-ld} -melf64bmip" 9142 ;; 9143 esac 9144 else 9145 case `/usr/bin/file conftest.$ac_objext` in 9146 *32-bit*) 9147 LD="${LD-ld} -32" 9148 ;; 9149 *N32*) 9150 LD="${LD-ld} -n32" 9151 ;; 9152 *64-bit*) 9153 LD="${LD-ld} -64" 9154 ;; 9155 esac 9156 fi 9157 fi 9158 rm -rf conftest* 9159 ;; 9160 9161x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) 9162 # Find out which ABI we are using. 9163 echo 'int i;' > conftest.$ac_ext 9164 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9165 (eval $ac_compile) 2>&5 9166 ac_status=$? 9167 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9168 test $ac_status = 0; }; then 9169 case `/usr/bin/file conftest.o` in 9170 *32-bit*) 9171 case $host in 9172 x86_64-*linux*) 9173 LD="${LD-ld} -m elf_i386" 9174 ;; 9175 ppc64-*linux*|powerpc64-*linux*) 9176 LD="${LD-ld} -m elf32ppclinux" 9177 ;; 9178 s390x-*linux*) 9179 LD="${LD-ld} -m elf_s390" 9180 ;; 9181 sparc64-*linux*) 9182 LD="${LD-ld} -m elf32_sparc" 9183 ;; 9184 esac 9185 ;; 9186 *64-bit*) 9187 case $host in 9188 x86_64-*linux*) 9189 LD="${LD-ld} -m elf_x86_64" 9190 ;; 9191 ppc*-*linux*|powerpc*-*linux*) 9192 LD="${LD-ld} -m elf64ppc" 9193 ;; 9194 s390*-*linux*) 9195 LD="${LD-ld} -m elf64_s390" 9196 ;; 9197 sparc*-*linux*) 9198 LD="${LD-ld} -m elf64_sparc" 9199 ;; 9200 esac 9201 ;; 9202 esac 9203 fi 9204 rm -rf conftest* 9205 ;; 9206 9207*-*-sco3.2v5*) 9208 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 9209 SAVE_CFLAGS="$CFLAGS" 9210 CFLAGS="$CFLAGS -belf" 9211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 9212$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 9213if test "${lt_cv_cc_needs_belf+set}" = set; then : 9214 $as_echo_n "(cached) " >&6 9215else 9216 ac_ext=c 9217ac_cpp='$CPP $CPPFLAGS' 9218ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9219ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9220ac_compiler_gnu=$ac_cv_c_compiler_gnu 9221 9222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9223/* end confdefs.h. */ 9224 9225int 9226main () 9227{ 9228 9229 ; 9230 return 0; 9231} 9232_ACEOF 9233if ac_fn_c_try_link "$LINENO"; then : 9234 lt_cv_cc_needs_belf=yes 9235else 9236 lt_cv_cc_needs_belf=no 9237fi 9238rm -f core conftest.err conftest.$ac_objext \ 9239 conftest$ac_exeext conftest.$ac_ext 9240 ac_ext=c 9241ac_cpp='$CPP $CPPFLAGS' 9242ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9243ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9244ac_compiler_gnu=$ac_cv_c_compiler_gnu 9245 9246fi 9247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 9248$as_echo "$lt_cv_cc_needs_belf" >&6; } 9249 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 9250 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 9251 CFLAGS="$SAVE_CFLAGS" 9252 fi 9253 ;; 9254 9255esac 9256 9257need_locks="$enable_libtool_lock" 9258 9259 9260for ac_header in dlfcn.h 9261do : 9262 ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default" 9263if test "x$ac_cv_header_dlfcn_h" = x""yes; then : 9264 cat >>confdefs.h <<_ACEOF 9265#define HAVE_DLFCN_H 1 9266_ACEOF 9267 9268fi 9269 9270done 9271 9272 9273# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! 9274 9275# find the maximum length of command line arguments 9276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 9277$as_echo_n "checking the maximum length of command line arguments... " >&6; } 9278if test "${lt_cv_sys_max_cmd_len+set}" = set; then : 9279 $as_echo_n "(cached) " >&6 9280else 9281 i=0 9282 teststring="ABCD" 9283 9284 case $build_os in 9285 msdosdjgpp*) 9286 # On DJGPP, this test can blow up pretty badly due to problems in libc 9287 # (any single argument exceeding 2000 bytes causes a buffer overrun 9288 # during glob expansion). Even if it were fixed, the result of this 9289 # check would be larger than it should be. 9290 lt_cv_sys_max_cmd_len=12288; # 12K is about right 9291 ;; 9292 9293 gnu*) 9294 # Under GNU Hurd, this test is not required because there is 9295 # no limit to the length of command line arguments. 9296 # Libtool will interpret -1 as no limit whatsoever 9297 lt_cv_sys_max_cmd_len=-1; 9298 ;; 9299 9300 cygwin* | mingw*) 9301 # On Win9x/ME, this test blows up -- it succeeds, but takes 9302 # about 5 minutes as the teststring grows exponentially. 9303 # Worse, since 9x/ME are not pre-emptively multitasking, 9304 # you end up with a "frozen" computer, even though with patience 9305 # the test eventually succeeds (with a max line length of 256k). 9306 # Instead, let's just punt: use the minimum linelength reported by 9307 # all of the supported platforms: 8192 (on NT/2K/XP). 9308 lt_cv_sys_max_cmd_len=8192; 9309 ;; 9310 9311 amigaos*) 9312 # On AmigaOS with pdksh, this test takes hours, literally. 9313 # So we just punt and use a minimum line length of 8192. 9314 lt_cv_sys_max_cmd_len=8192; 9315 ;; 9316 9317 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 9318 # This has been around since 386BSD, at least. Likely further. 9319 if test -x /sbin/sysctl; then 9320 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 9321 elif test -x /usr/sbin/sysctl; then 9322 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 9323 else 9324 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 9325 fi 9326 # And add a safety zone 9327 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 9328 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 9329 ;; 9330 osf*) 9331 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 9332 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 9333 # nice to cause kernel panics so lets avoid the loop below. 9334 # First set a reasonable default. 9335 lt_cv_sys_max_cmd_len=16384 9336 # 9337 if test -x /sbin/sysconfig; then 9338 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 9339 *1*) lt_cv_sys_max_cmd_len=-1 ;; 9340 esac 9341 fi 9342 ;; 9343 *) 9344 # If test is not a shell built-in, we'll probably end up computing a 9345 # maximum length that is only half of the actual maximum length, but 9346 # we can't tell. 9347 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 9348 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ 9349 = "XX$teststring") >/dev/null 2>&1 && 9350 new_result=`expr "X$teststring" : ".*" 2>&1` && 9351 lt_cv_sys_max_cmd_len=$new_result && 9352 test $i != 17 # 1/2 MB should be enough 9353 do 9354 i=`expr $i + 1` 9355 teststring=$teststring$teststring 9356 done 9357 teststring= 9358 # Add a significant safety factor because C++ compilers can tack on massive 9359 # amounts of additional arguments before passing them to the linker. 9360 # It appears as though 1/2 is a usable value. 9361 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 9362 ;; 9363 esac 9364 9365fi 9366 9367if test -n $lt_cv_sys_max_cmd_len ; then 9368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 9369$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 9370else 9371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 9372$as_echo "none" >&6; } 9373fi 9374 9375 9376 9377 9378# Check for command to grab the raw symbol name followed by C symbol from nm. 9379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 9380$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 9381if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then : 9382 $as_echo_n "(cached) " >&6 9383else 9384 9385# These are sane defaults that work on at least a few old systems. 9386# [They come from Ultrix. What could be older than Ultrix?!! ;)] 9387 9388# Character class describing NM global symbol codes. 9389symcode='[BCDEGRST]' 9390 9391# Regexp to match symbols that can be accessed directly from C. 9392sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 9393 9394# Transform an extracted symbol line into a proper C declaration 9395lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" 9396 9397# Transform an extracted symbol line into symbol name and symbol address 9398lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" 9399 9400# Define system-specific variables. 9401case $host_os in 9402aix*) 9403 symcode='[BCDT]' 9404 ;; 9405cygwin* | mingw* | pw32*) 9406 symcode='[ABCDGISTW]' 9407 ;; 9408hpux*) # Its linker distinguishes data from code symbols 9409 if test "$host_cpu" = ia64; then 9410 symcode='[ABCDEGRST]' 9411 fi 9412 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 9413 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" 9414 ;; 9415linux*) 9416 if test "$host_cpu" = ia64; then 9417 symcode='[ABCDGIRSTW]' 9418 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 9419 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" 9420 fi 9421 ;; 9422irix* | nonstopux*) 9423 symcode='[BCDEGRST]' 9424 ;; 9425osf*) 9426 symcode='[BCDEGQRST]' 9427 ;; 9428solaris* | sysv5*) 9429 symcode='[BDRT]' 9430 ;; 9431sysv4) 9432 symcode='[DFNSTU]' 9433 ;; 9434esac 9435 9436# Handle CRLF in mingw tool chain 9437opt_cr= 9438case $build_os in 9439mingw*) 9440 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 9441 ;; 9442esac 9443 9444# If we're using GNU nm, then use its standard symbol codes. 9445case `$NM -V 2>&1` in 9446*GNU* | *'with BFD'*) 9447 symcode='[ABCDGIRSTW]' ;; 9448esac 9449 9450# Try without a prefix undercore, then with it. 9451for ac_symprfx in "" "_"; do 9452 9453 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 9454 symxfrm="\\1 $ac_symprfx\\2 \\2" 9455 9456 # Write the raw and C identifiers. 9457 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 9458 9459 # Check to see that the pipe works correctly. 9460 pipe_works=no 9461 9462 rm -f conftest* 9463 cat > conftest.$ac_ext <<EOF 9464#ifdef __cplusplus 9465extern "C" { 9466#endif 9467char nm_test_var; 9468void nm_test_func(){} 9469#ifdef __cplusplus 9470} 9471#endif 9472int main(){nm_test_var='a';nm_test_func();return(0);} 9473EOF 9474 9475 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9476 (eval $ac_compile) 2>&5 9477 ac_status=$? 9478 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9479 test $ac_status = 0; }; then 9480 # Now try to grab the symbols. 9481 nlist=conftest.nm 9482 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5 9483 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 9484 ac_status=$? 9485 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9486 test $ac_status = 0; } && test -s "$nlist"; then 9487 # Try sorting and uniquifying the output. 9488 if sort "$nlist" | uniq > "$nlist"T; then 9489 mv -f "$nlist"T "$nlist" 9490 else 9491 rm -f "$nlist"T 9492 fi 9493 9494 # Make sure that we snagged all the symbols we need. 9495 if grep ' nm_test_var$' "$nlist" >/dev/null; then 9496 if grep ' nm_test_func$' "$nlist" >/dev/null; then 9497 cat <<EOF > conftest.$ac_ext 9498#ifdef __cplusplus 9499extern "C" { 9500#endif 9501 9502EOF 9503 # Now generate the symbol file. 9504 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' 9505 9506 cat <<EOF >> conftest.$ac_ext 9507#if defined (__STDC__) && __STDC__ 9508# define lt_ptr_t void * 9509#else 9510# define lt_ptr_t char * 9511# define const 9512#endif 9513 9514/* The mapping between symbol names and symbols. */ 9515const struct { 9516 const char *name; 9517 lt_ptr_t address; 9518} 9519lt_preloaded_symbols[] = 9520{ 9521EOF 9522 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext 9523 cat <<\EOF >> conftest.$ac_ext 9524 {0, (lt_ptr_t) 0} 9525}; 9526 9527#ifdef __cplusplus 9528} 9529#endif 9530EOF 9531 # Now try linking the two files. 9532 mv conftest.$ac_objext conftstm.$ac_objext 9533 lt_save_LIBS="$LIBS" 9534 lt_save_CFLAGS="$CFLAGS" 9535 LIBS="conftstm.$ac_objext" 9536 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 9537 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 9538 (eval $ac_link) 2>&5 9539 ac_status=$? 9540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9541 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 9542 pipe_works=yes 9543 fi 9544 LIBS="$lt_save_LIBS" 9545 CFLAGS="$lt_save_CFLAGS" 9546 else 9547 echo "cannot find nm_test_func in $nlist" >&5 9548 fi 9549 else 9550 echo "cannot find nm_test_var in $nlist" >&5 9551 fi 9552 else 9553 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 9554 fi 9555 else 9556 echo "$progname: failed program was:" >&5 9557 cat conftest.$ac_ext >&5 9558 fi 9559 rm -f conftest* conftst* 9560 9561 # Do not use the global_symbol_pipe unless it works. 9562 if test "$pipe_works" = yes; then 9563 break 9564 else 9565 lt_cv_sys_global_symbol_pipe= 9566 fi 9567done 9568 9569fi 9570 9571if test -z "$lt_cv_sys_global_symbol_pipe"; then 9572 lt_cv_sys_global_symbol_to_cdecl= 9573fi 9574if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 9575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 9576$as_echo "failed" >&6; } 9577else 9578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 9579$as_echo "ok" >&6; } 9580fi 9581 9582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 9583$as_echo_n "checking for objdir... " >&6; } 9584if test "${lt_cv_objdir+set}" = set; then : 9585 $as_echo_n "(cached) " >&6 9586else 9587 rm -f .libs 2>/dev/null 9588mkdir .libs 2>/dev/null 9589if test -d .libs; then 9590 lt_cv_objdir=.libs 9591else 9592 # MS-DOS does not allow filenames that begin with a dot. 9593 lt_cv_objdir=_libs 9594fi 9595rmdir .libs 2>/dev/null 9596fi 9597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 9598$as_echo "$lt_cv_objdir" >&6; } 9599objdir=$lt_cv_objdir 9600 9601 9602 9603 9604 9605case $host_os in 9606aix3*) 9607 # AIX sometimes has problems with the GCC collect2 program. For some 9608 # reason, if we set the COLLECT_NAMES environment variable, the problems 9609 # vanish in a puff of smoke. 9610 if test "X${COLLECT_NAMES+set}" != Xset; then 9611 COLLECT_NAMES= 9612 export COLLECT_NAMES 9613 fi 9614 ;; 9615esac 9616 9617# Sed substitution that helps us do robust quoting. It backslashifies 9618# metacharacters that are still active within double-quoted strings. 9619Xsed='sed -e 1s/^X//' 9620sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' 9621 9622# Same as above, but do not quote variable references. 9623double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' 9624 9625# Sed substitution to delay expansion of an escaped shell variable in a 9626# double_quote_subst'ed string. 9627delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 9628 9629# Sed substitution to avoid accidental globbing in evaled expressions 9630no_glob_subst='s/\*/\\\*/g' 9631 9632# Constants: 9633rm="rm -f" 9634 9635# Global variables: 9636default_ofile=libtool 9637can_build_shared=yes 9638 9639# All known linkers require a `.a' archive for static linking (except MSVC, 9640# which needs '.lib'). 9641libext=a 9642ltmain="$ac_aux_dir/ltmain.sh" 9643ofile="$default_ofile" 9644with_gnu_ld="$lt_cv_prog_gnu_ld" 9645 9646if test -n "$ac_tool_prefix"; then 9647 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 9648set dummy ${ac_tool_prefix}ar; ac_word=$2 9649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9650$as_echo_n "checking for $ac_word... " >&6; } 9651if test "${ac_cv_prog_AR+set}" = set; then : 9652 $as_echo_n "(cached) " >&6 9653else 9654 if test -n "$AR"; then 9655 ac_cv_prog_AR="$AR" # Let the user override the test. 9656else 9657as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9658for as_dir in $PATH 9659do 9660 IFS=$as_save_IFS 9661 test -z "$as_dir" && as_dir=. 9662 for ac_exec_ext in '' $ac_executable_extensions; do 9663 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9664 ac_cv_prog_AR="${ac_tool_prefix}ar" 9665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9666 break 2 9667 fi 9668done 9669 done 9670IFS=$as_save_IFS 9671 9672fi 9673fi 9674AR=$ac_cv_prog_AR 9675if test -n "$AR"; then 9676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 9677$as_echo "$AR" >&6; } 9678else 9679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9680$as_echo "no" >&6; } 9681fi 9682 9683 9684fi 9685if test -z "$ac_cv_prog_AR"; then 9686 ac_ct_AR=$AR 9687 # Extract the first word of "ar", so it can be a program name with args. 9688set dummy ar; ac_word=$2 9689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9690$as_echo_n "checking for $ac_word... " >&6; } 9691if test "${ac_cv_prog_ac_ct_AR+set}" = set; then : 9692 $as_echo_n "(cached) " >&6 9693else 9694 if test -n "$ac_ct_AR"; then 9695 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 9696else 9697as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9698for as_dir in $PATH 9699do 9700 IFS=$as_save_IFS 9701 test -z "$as_dir" && as_dir=. 9702 for ac_exec_ext in '' $ac_executable_extensions; do 9703 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9704 ac_cv_prog_ac_ct_AR="ar" 9705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9706 break 2 9707 fi 9708done 9709 done 9710IFS=$as_save_IFS 9711 9712fi 9713fi 9714ac_ct_AR=$ac_cv_prog_ac_ct_AR 9715if test -n "$ac_ct_AR"; then 9716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 9717$as_echo "$ac_ct_AR" >&6; } 9718else 9719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9720$as_echo "no" >&6; } 9721fi 9722 9723 if test "x$ac_ct_AR" = x; then 9724 AR="false" 9725 else 9726 case $cross_compiling:$ac_tool_warned in 9727yes:) 9728{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9729$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9730ac_tool_warned=yes ;; 9731esac 9732 AR=$ac_ct_AR 9733 fi 9734else 9735 AR="$ac_cv_prog_AR" 9736fi 9737 9738if test -n "$ac_tool_prefix"; then 9739 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 9740set dummy ${ac_tool_prefix}ranlib; ac_word=$2 9741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9742$as_echo_n "checking for $ac_word... " >&6; } 9743if test "${ac_cv_prog_RANLIB+set}" = set; then : 9744 $as_echo_n "(cached) " >&6 9745else 9746 if test -n "$RANLIB"; then 9747 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 9748else 9749as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9750for as_dir in $PATH 9751do 9752 IFS=$as_save_IFS 9753 test -z "$as_dir" && as_dir=. 9754 for ac_exec_ext in '' $ac_executable_extensions; do 9755 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9756 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 9757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9758 break 2 9759 fi 9760done 9761 done 9762IFS=$as_save_IFS 9763 9764fi 9765fi 9766RANLIB=$ac_cv_prog_RANLIB 9767if test -n "$RANLIB"; then 9768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 9769$as_echo "$RANLIB" >&6; } 9770else 9771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9772$as_echo "no" >&6; } 9773fi 9774 9775 9776fi 9777if test -z "$ac_cv_prog_RANLIB"; then 9778 ac_ct_RANLIB=$RANLIB 9779 # Extract the first word of "ranlib", so it can be a program name with args. 9780set dummy ranlib; ac_word=$2 9781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9782$as_echo_n "checking for $ac_word... " >&6; } 9783if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : 9784 $as_echo_n "(cached) " >&6 9785else 9786 if test -n "$ac_ct_RANLIB"; then 9787 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 9788else 9789as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9790for as_dir in $PATH 9791do 9792 IFS=$as_save_IFS 9793 test -z "$as_dir" && as_dir=. 9794 for ac_exec_ext in '' $ac_executable_extensions; do 9795 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9796 ac_cv_prog_ac_ct_RANLIB="ranlib" 9797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9798 break 2 9799 fi 9800done 9801 done 9802IFS=$as_save_IFS 9803 9804fi 9805fi 9806ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 9807if test -n "$ac_ct_RANLIB"; then 9808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 9809$as_echo "$ac_ct_RANLIB" >&6; } 9810else 9811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9812$as_echo "no" >&6; } 9813fi 9814 9815 if test "x$ac_ct_RANLIB" = x; then 9816 RANLIB=":" 9817 else 9818 case $cross_compiling:$ac_tool_warned in 9819yes:) 9820{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9821$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9822ac_tool_warned=yes ;; 9823esac 9824 RANLIB=$ac_ct_RANLIB 9825 fi 9826else 9827 RANLIB="$ac_cv_prog_RANLIB" 9828fi 9829 9830if test -n "$ac_tool_prefix"; then 9831 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 9832set dummy ${ac_tool_prefix}strip; ac_word=$2 9833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9834$as_echo_n "checking for $ac_word... " >&6; } 9835if test "${ac_cv_prog_STRIP+set}" = set; then : 9836 $as_echo_n "(cached) " >&6 9837else 9838 if test -n "$STRIP"; then 9839 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 9840else 9841as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9842for as_dir in $PATH 9843do 9844 IFS=$as_save_IFS 9845 test -z "$as_dir" && as_dir=. 9846 for ac_exec_ext in '' $ac_executable_extensions; do 9847 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9848 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 9849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9850 break 2 9851 fi 9852done 9853 done 9854IFS=$as_save_IFS 9855 9856fi 9857fi 9858STRIP=$ac_cv_prog_STRIP 9859if test -n "$STRIP"; then 9860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 9861$as_echo "$STRIP" >&6; } 9862else 9863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9864$as_echo "no" >&6; } 9865fi 9866 9867 9868fi 9869if test -z "$ac_cv_prog_STRIP"; then 9870 ac_ct_STRIP=$STRIP 9871 # Extract the first word of "strip", so it can be a program name with args. 9872set dummy strip; ac_word=$2 9873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9874$as_echo_n "checking for $ac_word... " >&6; } 9875if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : 9876 $as_echo_n "(cached) " >&6 9877else 9878 if test -n "$ac_ct_STRIP"; then 9879 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 9880else 9881as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9882for as_dir in $PATH 9883do 9884 IFS=$as_save_IFS 9885 test -z "$as_dir" && as_dir=. 9886 for ac_exec_ext in '' $ac_executable_extensions; do 9887 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9888 ac_cv_prog_ac_ct_STRIP="strip" 9889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9890 break 2 9891 fi 9892done 9893 done 9894IFS=$as_save_IFS 9895 9896fi 9897fi 9898ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 9899if test -n "$ac_ct_STRIP"; then 9900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 9901$as_echo "$ac_ct_STRIP" >&6; } 9902else 9903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9904$as_echo "no" >&6; } 9905fi 9906 9907 if test "x$ac_ct_STRIP" = x; then 9908 STRIP=":" 9909 else 9910 case $cross_compiling:$ac_tool_warned in 9911yes:) 9912{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9913$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9914ac_tool_warned=yes ;; 9915esac 9916 STRIP=$ac_ct_STRIP 9917 fi 9918else 9919 STRIP="$ac_cv_prog_STRIP" 9920fi 9921 9922 9923old_CC="$CC" 9924old_CFLAGS="$CFLAGS" 9925 9926# Set sane defaults for various variables 9927test -z "$AR" && AR=ar 9928test -z "$AR_FLAGS" && AR_FLAGS=cru 9929test -z "$AS" && AS=as 9930test -z "$CC" && CC=cc 9931test -z "$LTCC" && LTCC=$CC 9932test -z "$DLLTOOL" && DLLTOOL=dlltool 9933test -z "$LD" && LD=ld 9934test -z "$LN_S" && LN_S="ln -s" 9935test -z "$MAGIC_CMD" && MAGIC_CMD=file 9936test -z "$NM" && NM=nm 9937test -z "$SED" && SED=sed 9938test -z "$OBJDUMP" && OBJDUMP=objdump 9939test -z "$RANLIB" && RANLIB=: 9940test -z "$STRIP" && STRIP=: 9941test -z "$ac_objext" && ac_objext=o 9942 9943# Determine commands to create old-style static archives. 9944old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' 9945old_postinstall_cmds='chmod 644 $oldlib' 9946old_postuninstall_cmds= 9947 9948if test -n "$RANLIB"; then 9949 case $host_os in 9950 openbsd*) 9951 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds" 9952 ;; 9953 *) 9954 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds" 9955 ;; 9956 esac 9957 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 9958fi 9959 9960for cc_temp in $compiler""; do 9961 case $cc_temp in 9962 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 9963 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 9964 \-*) ;; 9965 *) break;; 9966 esac 9967done 9968cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 9969 9970 9971# Only perform the check for file, if the check method requires it 9972case $deplibs_check_method in 9973file_magic*) 9974 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 9975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 9976$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 9977if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : 9978 $as_echo_n "(cached) " >&6 9979else 9980 case $MAGIC_CMD in 9981[\\/*] | ?:[\\/]*) 9982 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 9983 ;; 9984*) 9985 lt_save_MAGIC_CMD="$MAGIC_CMD" 9986 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 9987 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9988 for ac_dir in $ac_dummy; do 9989 IFS="$lt_save_ifs" 9990 test -z "$ac_dir" && ac_dir=. 9991 if test -f $ac_dir/${ac_tool_prefix}file; then 9992 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 9993 if test -n "$file_magic_test_file"; then 9994 case $deplibs_check_method in 9995 "file_magic "*) 9996 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9997 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 9998 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9999 $EGREP "$file_magic_regex" > /dev/null; then 10000 : 10001 else 10002 cat <<EOF 1>&2 10003 10004*** Warning: the command libtool uses to detect shared libraries, 10005*** $file_magic_cmd, produces output that libtool cannot recognize. 10006*** The result is that libtool may fail to recognize shared libraries 10007*** as such. This will affect the creation of libtool libraries that 10008*** depend on shared libraries, but programs linked with such libtool 10009*** libraries will work regardless of this problem. Nevertheless, you 10010*** may want to report the problem to your system manager and/or to 10011*** bug-libtool@gnu.org 10012 10013EOF 10014 fi ;; 10015 esac 10016 fi 10017 break 10018 fi 10019 done 10020 IFS="$lt_save_ifs" 10021 MAGIC_CMD="$lt_save_MAGIC_CMD" 10022 ;; 10023esac 10024fi 10025 10026MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 10027if test -n "$MAGIC_CMD"; then 10028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 10029$as_echo "$MAGIC_CMD" >&6; } 10030else 10031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10032$as_echo "no" >&6; } 10033fi 10034 10035if test -z "$lt_cv_path_MAGIC_CMD"; then 10036 if test -n "$ac_tool_prefix"; then 10037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 10038$as_echo_n "checking for file... " >&6; } 10039if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : 10040 $as_echo_n "(cached) " >&6 10041else 10042 case $MAGIC_CMD in 10043[\\/*] | ?:[\\/]*) 10044 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 10045 ;; 10046*) 10047 lt_save_MAGIC_CMD="$MAGIC_CMD" 10048 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 10049 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 10050 for ac_dir in $ac_dummy; do 10051 IFS="$lt_save_ifs" 10052 test -z "$ac_dir" && ac_dir=. 10053 if test -f $ac_dir/file; then 10054 lt_cv_path_MAGIC_CMD="$ac_dir/file" 10055 if test -n "$file_magic_test_file"; then 10056 case $deplibs_check_method in 10057 "file_magic "*) 10058 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 10059 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 10060 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 10061 $EGREP "$file_magic_regex" > /dev/null; then 10062 : 10063 else 10064 cat <<EOF 1>&2 10065 10066*** Warning: the command libtool uses to detect shared libraries, 10067*** $file_magic_cmd, produces output that libtool cannot recognize. 10068*** The result is that libtool may fail to recognize shared libraries 10069*** as such. This will affect the creation of libtool libraries that 10070*** depend on shared libraries, but programs linked with such libtool 10071*** libraries will work regardless of this problem. Nevertheless, you 10072*** may want to report the problem to your system manager and/or to 10073*** bug-libtool@gnu.org 10074 10075EOF 10076 fi ;; 10077 esac 10078 fi 10079 break 10080 fi 10081 done 10082 IFS="$lt_save_ifs" 10083 MAGIC_CMD="$lt_save_MAGIC_CMD" 10084 ;; 10085esac 10086fi 10087 10088MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 10089if test -n "$MAGIC_CMD"; then 10090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 10091$as_echo "$MAGIC_CMD" >&6; } 10092else 10093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10094$as_echo "no" >&6; } 10095fi 10096 10097 else 10098 MAGIC_CMD=: 10099 fi 10100fi 10101 10102 fi 10103 ;; 10104esac 10105 10106enable_dlopen=no 10107enable_win32_dll=no 10108 10109# Check whether --enable-libtool-lock was given. 10110if test "${enable_libtool_lock+set}" = set; then : 10111 enableval=$enable_libtool_lock; 10112fi 10113 10114test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 10115 10116 10117# Check whether --with-pic was given. 10118if test "${with_pic+set}" = set; then : 10119 withval=$with_pic; pic_mode="$withval" 10120else 10121 pic_mode=default 10122fi 10123 10124test -z "$pic_mode" && pic_mode=default 10125 10126# Use C for the default configuration in the libtool script 10127tagname= 10128lt_save_CC="$CC" 10129ac_ext=c 10130ac_cpp='$CPP $CPPFLAGS' 10131ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10132ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10133ac_compiler_gnu=$ac_cv_c_compiler_gnu 10134 10135 10136# Source file extension for C test sources. 10137ac_ext=c 10138 10139# Object file extension for compiled C test sources. 10140objext=o 10141objext=$objext 10142 10143# Code to be used in simple compile tests 10144lt_simple_compile_test_code="int some_variable = 0;\n" 10145 10146# Code to be used in simple link tests 10147lt_simple_link_test_code='int main(){return(0);}\n' 10148 10149 10150# If no C compiler was specified, use CC. 10151LTCC=${LTCC-"$CC"} 10152 10153# Allow CC to be a program name with arguments. 10154compiler=$CC 10155 10156 10157# save warnings/boilerplate of simple test code 10158ac_outfile=conftest.$ac_objext 10159printf "$lt_simple_compile_test_code" >conftest.$ac_ext 10160eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 10161_lt_compiler_boilerplate=`cat conftest.err` 10162$rm conftest* 10163 10164ac_outfile=conftest.$ac_objext 10165printf "$lt_simple_link_test_code" >conftest.$ac_ext 10166eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 10167_lt_linker_boilerplate=`cat conftest.err` 10168$rm conftest* 10169 10170 10171# 10172# Check for any special shared library compilation flags. 10173# 10174lt_prog_cc_shlib= 10175if test "$GCC" = no; then 10176 case $host_os in 10177 sco3.2v5*) 10178 lt_prog_cc_shlib='-belf' 10179 ;; 10180 esac 10181fi 10182if test -n "$lt_prog_cc_shlib"; then 10183 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5 10184$as_echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;} 10185 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then : 10186 else 10187 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5 10188$as_echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;} 10189 lt_cv_prog_cc_can_build_shared=no 10190 fi 10191fi 10192 10193 10194# 10195# Check to make sure the static flag actually works. 10196# 10197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_prog_compiler_static works" >&5 10198$as_echo_n "checking if $compiler static flag $lt_prog_compiler_static works... " >&6; } 10199if test "${lt_prog_compiler_static_works+set}" = set; then : 10200 $as_echo_n "(cached) " >&6 10201else 10202 lt_prog_compiler_static_works=no 10203 save_LDFLAGS="$LDFLAGS" 10204 LDFLAGS="$LDFLAGS $lt_prog_compiler_static" 10205 printf "$lt_simple_link_test_code" > conftest.$ac_ext 10206 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10207 # The linker can only warn and ignore the option if not recognized 10208 # So say no if there are warnings 10209 if test -s conftest.err; then 10210 # Append any errors to the config.log. 10211 cat conftest.err 1>&5 10212 $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp 10213 $SED '/^$/d' conftest.err >conftest.er2 10214 if diff conftest.exp conftest.er2 >/dev/null; then 10215 lt_prog_compiler_static_works=yes 10216 fi 10217 else 10218 lt_prog_compiler_static_works=yes 10219 fi 10220 fi 10221 $rm conftest* 10222 LDFLAGS="$save_LDFLAGS" 10223 10224fi 10225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_static_works" >&5 10226$as_echo "$lt_prog_compiler_static_works" >&6; } 10227 10228if test x"$lt_prog_compiler_static_works" = xyes; then 10229 : 10230else 10231 lt_prog_compiler_static= 10232fi 10233 10234 10235 10236 10237lt_prog_compiler_no_builtin_flag= 10238 10239if test "$GCC" = yes; then 10240 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 10241 10242 10243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 10244$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 10245if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then : 10246 $as_echo_n "(cached) " >&6 10247else 10248 lt_cv_prog_compiler_rtti_exceptions=no 10249 ac_outfile=conftest.$ac_objext 10250 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 10251 lt_compiler_flag="-fno-rtti -fno-exceptions" 10252 # Insert the option either (1) after the last *FLAGS variable, or 10253 # (2) before a word containing "conftest.", or (3) at the end. 10254 # Note that $ac_compile itself does not contain backslashes and begins 10255 # with a dollar sign (not a hyphen), so the echo should work correctly. 10256 # The option is referenced via a variable to avoid confusing sed. 10257 lt_compile=`echo "$ac_compile" | $SED \ 10258 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10259 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10260 -e 's:$: $lt_compiler_flag:'` 10261 (eval echo "\"\$as_me:10261: $lt_compile\"" >&5) 10262 (eval "$lt_compile" 2>conftest.err) 10263 ac_status=$? 10264 cat conftest.err >&5 10265 echo "$as_me:10265: \$? = $ac_status" >&5 10266 if (exit $ac_status) && test -s "$ac_outfile"; then 10267 # The compiler can only warn and ignore the option if not recognized 10268 # So say no if there are warnings other than the usual output. 10269 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp 10270 $SED '/^$/d' conftest.err >conftest.er2 10271 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then 10272 lt_cv_prog_compiler_rtti_exceptions=yes 10273 fi 10274 fi 10275 $rm conftest* 10276 10277fi 10278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 10279$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 10280 10281if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 10282 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 10283else 10284 : 10285fi 10286 10287fi 10288 10289lt_prog_compiler_wl= 10290lt_prog_compiler_pic= 10291lt_prog_compiler_static= 10292 10293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 10294$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 10295 10296 if test "$GCC" = yes; then 10297 lt_prog_compiler_wl='-Wl,' 10298 lt_prog_compiler_static='-static' 10299 10300 case $host_os in 10301 aix*) 10302 # All AIX code is PIC. 10303 if test "$host_cpu" = ia64; then 10304 # AIX 5 now supports IA64 processor 10305 lt_prog_compiler_static='-Bstatic' 10306 fi 10307 ;; 10308 10309 amigaos*) 10310 # FIXME: we need at least 68020 code to build shared libraries, but 10311 # adding the `-m68020' flag to GCC prevents building anything better, 10312 # like `-m68040'. 10313 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 10314 ;; 10315 10316 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 10317 # PIC is the default for these OSes. 10318 ;; 10319 10320 mingw* | pw32* | os2*) 10321 # This hack is so that the source file can tell whether it is being 10322 # built for inclusion in a dll (and should export symbols for example). 10323 lt_prog_compiler_pic='-DDLL_EXPORT' 10324 ;; 10325 10326 darwin* | rhapsody*) 10327 # PIC is the default on this platform 10328 # Common symbols not allowed in MH_DYLIB files 10329 lt_prog_compiler_pic='-fno-common' 10330 ;; 10331 10332 msdosdjgpp*) 10333 # Just because we use GCC doesn't mean we suddenly get shared libraries 10334 # on systems that don't support them. 10335 lt_prog_compiler_can_build_shared=no 10336 enable_shared=no 10337 ;; 10338 10339 sysv4*MP*) 10340 if test -d /usr/nec; then 10341 lt_prog_compiler_pic=-Kconform_pic 10342 fi 10343 ;; 10344 10345 hpux*) 10346 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 10347 # not for PA HP-UX. 10348 case $host_cpu in 10349 hppa*64*|ia64*) 10350 # +Z the default 10351 ;; 10352 *) 10353 lt_prog_compiler_pic='-fPIC' 10354 ;; 10355 esac 10356 ;; 10357 10358 *) 10359 lt_prog_compiler_pic='-fPIC' 10360 ;; 10361 esac 10362 else 10363 # PORTME Check for flag to pass linker flags through the system compiler. 10364 case $host_os in 10365 aix*) 10366 lt_prog_compiler_wl='-Wl,' 10367 if test "$host_cpu" = ia64; then 10368 # AIX 5 now supports IA64 processor 10369 lt_prog_compiler_static='-Bstatic' 10370 else 10371 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 10372 fi 10373 ;; 10374 darwin*) 10375 # PIC is the default on this platform 10376 # Common symbols not allowed in MH_DYLIB files 10377 case $cc_basename in 10378 xlc*) 10379 lt_prog_compiler_pic='-qnocommon' 10380 lt_prog_compiler_wl='-Wl,' 10381 ;; 10382 esac 10383 ;; 10384 10385 mingw* | pw32* | os2*) 10386 # This hack is so that the source file can tell whether it is being 10387 # built for inclusion in a dll (and should export symbols for example). 10388 lt_prog_compiler_pic='-DDLL_EXPORT' 10389 ;; 10390 10391 hpux9* | hpux10* | hpux11*) 10392 lt_prog_compiler_wl='-Wl,' 10393 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 10394 # not for PA HP-UX. 10395 case $host_cpu in 10396 hppa*64*|ia64*) 10397 # +Z the default 10398 ;; 10399 *) 10400 lt_prog_compiler_pic='+Z' 10401 ;; 10402 esac 10403 # Is there a better lt_prog_compiler_static that works with the bundled CC? 10404 lt_prog_compiler_static='${wl}-a ${wl}archive' 10405 ;; 10406 10407 irix5* | irix6* | nonstopux*) 10408 lt_prog_compiler_wl='-Wl,' 10409 # PIC (with -KPIC) is the default. 10410 lt_prog_compiler_static='-non_shared' 10411 ;; 10412 10413 newsos6) 10414 lt_prog_compiler_pic='-KPIC' 10415 lt_prog_compiler_static='-Bstatic' 10416 ;; 10417 10418 linux*) 10419 case $cc_basename in 10420 icc* | ecc*) 10421 lt_prog_compiler_wl='-Wl,' 10422 lt_prog_compiler_pic='-KPIC' 10423 lt_prog_compiler_static='-static' 10424 ;; 10425 pgcc* | pgf77* | pgf90* | pgf95*) 10426 # Portland Group compilers (*not* the Pentium gcc compiler, 10427 # which looks to be a dead project) 10428 lt_prog_compiler_wl='-Wl,' 10429 lt_prog_compiler_pic='-fpic' 10430 lt_prog_compiler_static='-Bstatic' 10431 ;; 10432 ccc*) 10433 lt_prog_compiler_wl='-Wl,' 10434 # All Alpha code is PIC. 10435 lt_prog_compiler_static='-non_shared' 10436 ;; 10437 esac 10438 ;; 10439 10440 osf3* | osf4* | osf5*) 10441 lt_prog_compiler_wl='-Wl,' 10442 # All OSF/1 code is PIC. 10443 lt_prog_compiler_static='-non_shared' 10444 ;; 10445 10446 sco3.2v5*) 10447 lt_prog_compiler_pic='-Kpic' 10448 lt_prog_compiler_static='-dn' 10449 ;; 10450 10451 solaris*) 10452 lt_prog_compiler_pic='-KPIC' 10453 lt_prog_compiler_static='-Bstatic' 10454 case $cc_basename in 10455 f77* | f90* | f95*) 10456 lt_prog_compiler_wl='-Qoption ld ';; 10457 *) 10458 lt_prog_compiler_wl='-Wl,';; 10459 esac 10460 ;; 10461 10462 sunos4*) 10463 lt_prog_compiler_wl='-Qoption ld ' 10464 lt_prog_compiler_pic='-PIC' 10465 lt_prog_compiler_static='-Bstatic' 10466 ;; 10467 10468 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10469 lt_prog_compiler_wl='-Wl,' 10470 lt_prog_compiler_pic='-KPIC' 10471 lt_prog_compiler_static='-Bstatic' 10472 ;; 10473 10474 sysv4*MP*) 10475 if test -d /usr/nec ;then 10476 lt_prog_compiler_pic='-Kconform_pic' 10477 lt_prog_compiler_static='-Bstatic' 10478 fi 10479 ;; 10480 10481 unicos*) 10482 lt_prog_compiler_wl='-Wl,' 10483 lt_prog_compiler_can_build_shared=no 10484 ;; 10485 10486 uts4*) 10487 lt_prog_compiler_pic='-pic' 10488 lt_prog_compiler_static='-Bstatic' 10489 ;; 10490 10491 *) 10492 lt_prog_compiler_can_build_shared=no 10493 ;; 10494 esac 10495 fi 10496 10497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 10498$as_echo "$lt_prog_compiler_pic" >&6; } 10499 10500# 10501# Check to make sure the PIC flag actually works. 10502# 10503if test -n "$lt_prog_compiler_pic"; then 10504 10505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 10506$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 10507if test "${lt_prog_compiler_pic_works+set}" = set; then : 10508 $as_echo_n "(cached) " >&6 10509else 10510 lt_prog_compiler_pic_works=no 10511 ac_outfile=conftest.$ac_objext 10512 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 10513 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 10514 # Insert the option either (1) after the last *FLAGS variable, or 10515 # (2) before a word containing "conftest.", or (3) at the end. 10516 # Note that $ac_compile itself does not contain backslashes and begins 10517 # with a dollar sign (not a hyphen), so the echo should work correctly. 10518 # The option is referenced via a variable to avoid confusing sed. 10519 lt_compile=`echo "$ac_compile" | $SED \ 10520 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10521 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10522 -e 's:$: $lt_compiler_flag:'` 10523 (eval echo "\"\$as_me:10523: $lt_compile\"" >&5) 10524 (eval "$lt_compile" 2>conftest.err) 10525 ac_status=$? 10526 cat conftest.err >&5 10527 echo "$as_me:10527: \$? = $ac_status" >&5 10528 if (exit $ac_status) && test -s "$ac_outfile"; then 10529 # The compiler can only warn and ignore the option if not recognized 10530 # So say no if there are warnings other than the usual output. 10531 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp 10532 $SED '/^$/d' conftest.err >conftest.er2 10533 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then 10534 lt_prog_compiler_pic_works=yes 10535 fi 10536 fi 10537 $rm conftest* 10538 10539fi 10540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_works" >&5 10541$as_echo "$lt_prog_compiler_pic_works" >&6; } 10542 10543if test x"$lt_prog_compiler_pic_works" = xyes; then 10544 case $lt_prog_compiler_pic in 10545 "" | " "*) ;; 10546 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 10547 esac 10548else 10549 lt_prog_compiler_pic= 10550 lt_prog_compiler_can_build_shared=no 10551fi 10552 10553fi 10554case $host_os in 10555 # For platforms which do not support PIC, -DPIC is meaningless: 10556 *djgpp*) 10557 lt_prog_compiler_pic= 10558 ;; 10559 *) 10560 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 10561 ;; 10562esac 10563 10564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 10565$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 10566if test "${lt_cv_prog_compiler_c_o+set}" = set; then : 10567 $as_echo_n "(cached) " >&6 10568else 10569 lt_cv_prog_compiler_c_o=no 10570 $rm -r conftest 2>/dev/null 10571 mkdir conftest 10572 cd conftest 10573 mkdir out 10574 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 10575 10576 lt_compiler_flag="-o out/conftest2.$ac_objext" 10577 # Insert the option either (1) after the last *FLAGS variable, or 10578 # (2) before a word containing "conftest.", or (3) at the end. 10579 # Note that $ac_compile itself does not contain backslashes and begins 10580 # with a dollar sign (not a hyphen), so the echo should work correctly. 10581 lt_compile=`echo "$ac_compile" | $SED \ 10582 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10583 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10584 -e 's:$: $lt_compiler_flag:'` 10585 (eval echo "\"\$as_me:10585: $lt_compile\"" >&5) 10586 (eval "$lt_compile" 2>out/conftest.err) 10587 ac_status=$? 10588 cat out/conftest.err >&5 10589 echo "$as_me:10589: \$? = $ac_status" >&5 10590 if (exit $ac_status) && test -s out/conftest2.$ac_objext 10591 then 10592 # The compiler can only warn and ignore the option if not recognized 10593 # So say no if there are warnings 10594 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp 10595 $SED '/^$/d' out/conftest.err >out/conftest.er2 10596 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then 10597 lt_cv_prog_compiler_c_o=yes 10598 fi 10599 fi 10600 chmod u+w . 2>&5 10601 $rm conftest* 10602 # SGI C++ compiler will create directory out/ii_files/ for 10603 # template instantiation 10604 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 10605 $rm out/* && rmdir out 10606 cd .. 10607 rmdir conftest 10608 $rm conftest* 10609 10610fi 10611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 10612$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 10613 10614 10615hard_links="nottested" 10616if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 10617 # do not overwrite the value of need_locks provided by the user 10618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 10619$as_echo_n "checking if we can lock with hard links... " >&6; } 10620 hard_links=yes 10621 $rm conftest* 10622 ln conftest.a conftest.b 2>/dev/null && hard_links=no 10623 touch conftest.a 10624 ln conftest.a conftest.b 2>&5 || hard_links=no 10625 ln conftest.a conftest.b 2>/dev/null && hard_links=no 10626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 10627$as_echo "$hard_links" >&6; } 10628 if test "$hard_links" = no; then 10629 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 10630$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 10631 need_locks=warn 10632 fi 10633else 10634 need_locks=no 10635fi 10636 10637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 10638$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 10639 10640 runpath_var= 10641 allow_undefined_flag= 10642 enable_shared_with_static_runtimes=no 10643 archive_cmds= 10644 archive_expsym_cmds= 10645 old_archive_From_new_cmds= 10646 old_archive_from_expsyms_cmds= 10647 export_dynamic_flag_spec= 10648 whole_archive_flag_spec= 10649 thread_safe_flag_spec= 10650 hardcode_libdir_flag_spec= 10651 hardcode_libdir_flag_spec_ld= 10652 hardcode_libdir_separator= 10653 hardcode_direct=no 10654 hardcode_minus_L=no 10655 hardcode_shlibpath_var=unsupported 10656 link_all_deplibs=unknown 10657 hardcode_automatic=no 10658 module_cmds= 10659 module_expsym_cmds= 10660 always_export_symbols=no 10661 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 10662 # include_expsyms should be a list of space-separated symbols to be *always* 10663 # included in the symbol list 10664 include_expsyms= 10665 # exclude_expsyms can be an extended regexp of symbols to exclude 10666 # it will be wrapped by ` (' and `)$', so one must not match beginning or 10667 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 10668 # as well as any symbol that contains `d'. 10669 exclude_expsyms="_GLOBAL_OFFSET_TABLE_" 10670 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 10671 # platforms (ab)use it in PIC code, but their linkers get confused if 10672 # the symbol is explicitly referenced. Since portable code cannot 10673 # rely on this symbol name, it's probably fine to never include it in 10674 # preloaded symbol tables. 10675 extract_expsyms_cmds= 10676 # Just being paranoid about ensuring that cc_basename is set. 10677 for cc_temp in $compiler""; do 10678 case $cc_temp in 10679 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 10680 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 10681 \-*) ;; 10682 *) break;; 10683 esac 10684done 10685cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 10686 10687 case $host_os in 10688 cygwin* | mingw* | pw32*) 10689 # FIXME: the MSVC++ port hasn't been tested in a loooong time 10690 # When not using gcc, we currently assume that we are using 10691 # Microsoft Visual C++. 10692 if test "$GCC" != yes; then 10693 with_gnu_ld=no 10694 fi 10695 ;; 10696 openbsd*) 10697 with_gnu_ld=no 10698 ;; 10699 esac 10700 10701 ld_shlibs=yes 10702 if test "$with_gnu_ld" = yes; then 10703 # If archive_cmds runs LD, not CC, wlarc should be empty 10704 wlarc='${wl}' 10705 10706 # Set some defaults for GNU ld with shared library support. These 10707 # are reset later if shared libraries are not supported. Putting them 10708 # here allows them to be overridden if necessary. 10709 runpath_var=LD_RUN_PATH 10710 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' 10711 export_dynamic_flag_spec='${wl}--export-dynamic' 10712 # ancient GNU ld didn't support --whole-archive et. al. 10713 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 10714 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 10715 else 10716 whole_archive_flag_spec= 10717 fi 10718 supports_anon_versioning=no 10719 case `$LD -v 2>/dev/null` in 10720 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 10721 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 10722 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 10723 *\ 2.11.*) ;; # other 2.11 versions 10724 *) supports_anon_versioning=yes ;; 10725 esac 10726 10727 # See if GNU ld supports shared libraries. 10728 case $host_os in 10729 aix3* | aix4* | aix5*) 10730 # On AIX/PPC, the GNU linker is very broken 10731 if test "$host_cpu" != ia64; then 10732 ld_shlibs=no 10733 cat <<EOF 1>&2 10734 10735*** Warning: the GNU linker, at least up to release 2.9.1, is reported 10736*** to be unable to reliably create shared libraries on AIX. 10737*** Therefore, libtool is disabling shared libraries support. If you 10738*** really care for shared libraries, you may want to modify your PATH 10739*** so that a non-GNU linker is found, and then restart. 10740 10741EOF 10742 fi 10743 ;; 10744 10745 amigaos*) 10746 archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' 10747 hardcode_libdir_flag_spec='-L$libdir' 10748 hardcode_minus_L=yes 10749 10750 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 10751 # that the semantics of dynamic libraries on AmigaOS, at least up 10752 # to version 4, is to share data among multiple programs linked 10753 # with the same dynamic library. Since this doesn't match the 10754 # behavior of shared libraries on other platforms, we can't use 10755 # them. 10756 ld_shlibs=no 10757 ;; 10758 10759 beos*) 10760 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 10761 allow_undefined_flag=unsupported 10762 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 10763 # support --undefined. This deserves some investigation. FIXME 10764 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10765 else 10766 ld_shlibs=no 10767 fi 10768 ;; 10769 10770 cygwin* | mingw* | pw32*) 10771 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 10772 # as there is no search path for DLLs. 10773 hardcode_libdir_flag_spec='-L$libdir' 10774 allow_undefined_flag=unsupported 10775 always_export_symbols=no 10776 enable_shared_with_static_runtimes=yes 10777 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 10778 10779 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 10780 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 10781 # If the export-symbols file already is a .def file (1st line 10782 # is EXPORTS), use it as is; otherwise, prepend... 10783 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 10784 cp $export_symbols $output_objdir/$soname.def; 10785 else 10786 echo EXPORTS > $output_objdir/$soname.def; 10787 cat $export_symbols >> $output_objdir/$soname.def; 10788 fi~ 10789 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 10790 else 10791 ld_shlibs=no 10792 fi 10793 ;; 10794 10795 linux*) 10796 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 10797 tmp_addflag= 10798 case $cc_basename,$host_cpu in 10799 pgcc*) # Portland Group C compiler 10800 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 10801 tmp_addflag=' $pic_flag' 10802 ;; 10803 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 10804 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 10805 tmp_addflag=' $pic_flag -Mnomain' ;; 10806 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 10807 tmp_addflag=' -i_dynamic' ;; 10808 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 10809 tmp_addflag=' -i_dynamic -nofor_main' ;; 10810 ifc* | ifort*) # Intel Fortran compiler 10811 tmp_addflag=' -nofor_main' ;; 10812 esac 10813 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10814 10815 if test $supports_anon_versioning = yes; then 10816 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ 10817 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10818 $echo "local: *; };" >> $output_objdir/$libname.ver~ 10819 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 10820 fi 10821 else 10822 ld_shlibs=no 10823 fi 10824 ;; 10825 10826 netbsd*) 10827 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 10828 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 10829 wlarc= 10830 else 10831 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10832 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 10833 fi 10834 ;; 10835 10836 solaris* | sysv5*) 10837 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 10838 ld_shlibs=no 10839 cat <<EOF 1>&2 10840 10841*** Warning: The releases 2.8.* of the GNU linker cannot reliably 10842*** create shared libraries on Solaris systems. Therefore, libtool 10843*** is disabling shared libraries support. We urge you to upgrade GNU 10844*** binutils to release 2.9.1 or newer. Another option is to modify 10845*** your PATH or compiler configuration so that the native linker is 10846*** used, and then restart. 10847 10848EOF 10849 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 10850 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10851 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 10852 else 10853 ld_shlibs=no 10854 fi 10855 ;; 10856 10857 sunos4*) 10858 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10859 wlarc= 10860 hardcode_direct=yes 10861 hardcode_shlibpath_var=no 10862 ;; 10863 10864 *) 10865 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 10866 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10867 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 10868 else 10869 ld_shlibs=no 10870 fi 10871 ;; 10872 esac 10873 10874 if test "$ld_shlibs" = no; then 10875 runpath_var= 10876 hardcode_libdir_flag_spec= 10877 export_dynamic_flag_spec= 10878 whole_archive_flag_spec= 10879 fi 10880 else 10881 # PORTME fill in a description of your system's linker (not GNU ld) 10882 case $host_os in 10883 aix3*) 10884 allow_undefined_flag=unsupported 10885 always_export_symbols=yes 10886 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' 10887 # Note: this linker hardcodes the directories in LIBPATH if there 10888 # are no directories specified by -L. 10889 hardcode_minus_L=yes 10890 if test "$GCC" = yes && test -z "$link_static_flag"; then 10891 # Neither direct hardcoding nor static linking is supported with a 10892 # broken collect2. 10893 hardcode_direct=unsupported 10894 fi 10895 ;; 10896 10897 aix4* | aix5*) 10898 if test "$host_cpu" = ia64; then 10899 # On IA64, the linker does run time linking by default, so we don't 10900 # have to do anything special. 10901 aix_use_runtimelinking=no 10902 exp_sym_flag='-Bexport' 10903 no_entry_flag="" 10904 else 10905 # If we're using GNU nm, then we don't want the "-C" option. 10906 # -C means demangle to AIX nm, but means don't demangle with GNU nm 10907 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 10908 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' 10909 else 10910 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' 10911 fi 10912 aix_use_runtimelinking=no 10913 10914 # Test if we are trying to use run time linking or normal 10915 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10916 # need to do runtime linking. 10917 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 10918 for ld_flag in $LDFLAGS; do 10919 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 10920 aix_use_runtimelinking=yes 10921 break 10922 fi 10923 done 10924 esac 10925 10926 exp_sym_flag='-bexport' 10927 no_entry_flag='-bnoentry' 10928 fi 10929 10930 # When large executables or shared objects are built, AIX ld can 10931 # have problems creating the table of contents. If linking a library 10932 # or program results in "error TOC overflow" add -mminimal-toc to 10933 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10934 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10935 10936 archive_cmds='' 10937 hardcode_direct=yes 10938 hardcode_libdir_separator=':' 10939 link_all_deplibs=yes 10940 10941 if test "$GCC" = yes; then 10942 case $host_os in aix4.[012]|aix4.[012].*) 10943 # We only want to do this on AIX 4.2 and lower, the check 10944 # below for broken collect2 doesn't work under 4.3+ 10945 collect2name=`${CC} -print-prog-name=collect2` 10946 if test -f "$collect2name" && \ 10947 strings "$collect2name" | grep resolve_lib_name >/dev/null 10948 then 10949 # We have reworked collect2 10950 hardcode_direct=yes 10951 else 10952 # We have old collect2 10953 hardcode_direct=unsupported 10954 # It fails to find uninstalled libraries when the uninstalled 10955 # path is not listed in the libpath. Setting hardcode_minus_L 10956 # to unsupported forces relinking 10957 hardcode_minus_L=yes 10958 hardcode_libdir_flag_spec='-L$libdir' 10959 hardcode_libdir_separator= 10960 fi 10961 esac 10962 shared_flag='-shared' 10963 if test "$aix_use_runtimelinking" = yes; then 10964 shared_flag="$shared_flag "'${wl}-G' 10965 fi 10966 else 10967 # not using gcc 10968 if test "$host_cpu" = ia64; then 10969 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10970 # chokes on -Wl,-G. The following line is correct: 10971 shared_flag='-G' 10972 else 10973 if test "$aix_use_runtimelinking" = yes; then 10974 shared_flag='${wl}-G' 10975 else 10976 shared_flag='${wl}-bM:SRE' 10977 fi 10978 fi 10979 fi 10980 10981 # It seems that -bexpall does not export symbols beginning with 10982 # underscore (_), so it is better to generate a list of symbols to export. 10983 always_export_symbols=yes 10984 if test "$aix_use_runtimelinking" = yes; then 10985 # Warning - without using the other runtime loading flags (-brtl), 10986 # -berok will link without error, but may produce a broken library. 10987 allow_undefined_flag='-berok' 10988 # Determine the default libpath from the value encoded in an empty executable. 10989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10990/* end confdefs.h. */ 10991 10992int 10993main () 10994{ 10995 10996 ; 10997 return 0; 10998} 10999_ACEOF 11000if ac_fn_c_try_link "$LINENO"; then : 11001 11002aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 11003}'` 11004# Check for a 64-bit object if we didn't find anything. 11005if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 11006}'`; fi 11007fi 11008rm -f core conftest.err conftest.$ac_objext \ 11009 conftest$ac_exeext conftest.$ac_ext 11010if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 11011 11012 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 11013 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" 11014 else 11015 if test "$host_cpu" = ia64; then 11016 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 11017 allow_undefined_flag="-z nodefs" 11018 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" 11019 else 11020 # Determine the default libpath from the value encoded in an empty executable. 11021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11022/* end confdefs.h. */ 11023 11024int 11025main () 11026{ 11027 11028 ; 11029 return 0; 11030} 11031_ACEOF 11032if ac_fn_c_try_link "$LINENO"; then : 11033 11034aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 11035}'` 11036# Check for a 64-bit object if we didn't find anything. 11037if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 11038}'`; fi 11039fi 11040rm -f core conftest.err conftest.$ac_objext \ 11041 conftest$ac_exeext conftest.$ac_ext 11042if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 11043 11044 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 11045 # Warning - without using the other run time loading flags, 11046 # -berok will link without error, but may produce a broken library. 11047 no_undefined_flag=' ${wl}-bernotok' 11048 allow_undefined_flag=' ${wl}-berok' 11049 # -bexpall does not export symbols beginning with underscore (_) 11050 always_export_symbols=yes 11051 # Exported symbols can be pulled into shared objects from archives 11052 whole_archive_flag_spec=' ' 11053 archive_cmds_need_lc=yes 11054 # This is similar to how AIX traditionally builds its shared libraries. 11055 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 11056 fi 11057 fi 11058 ;; 11059 11060 amigaos*) 11061 archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' 11062 hardcode_libdir_flag_spec='-L$libdir' 11063 hardcode_minus_L=yes 11064 # see comment about different semantics on the GNU ld section 11065 ld_shlibs=no 11066 ;; 11067 11068 bsdi[45]*) 11069 export_dynamic_flag_spec=-rdynamic 11070 ;; 11071 11072 cygwin* | mingw* | pw32*) 11073 # When not using gcc, we currently assume that we are using 11074 # Microsoft Visual C++. 11075 # hardcode_libdir_flag_spec is actually meaningless, as there is 11076 # no search path for DLLs. 11077 hardcode_libdir_flag_spec=' ' 11078 allow_undefined_flag=unsupported 11079 # Tell ltmain to make .lib files, not .a files. 11080 libext=lib 11081 # Tell ltmain to make .dll files, not .so files. 11082 shrext_cmds=".dll" 11083 # FIXME: Setting linknames here is a bad hack. 11084 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 11085 # The linker will automatically build a .lib file if we build a DLL. 11086 old_archive_From_new_cmds='true' 11087 # FIXME: Should let the user specify the lib program. 11088 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' 11089 fix_srcfile_path='`cygpath -w "$srcfile"`' 11090 enable_shared_with_static_runtimes=yes 11091 ;; 11092 11093 darwin* | rhapsody*) 11094 case $host_os in 11095 rhapsody* | darwin1.[012]) 11096 allow_undefined_flag='${wl}-undefined ${wl}suppress' 11097 ;; 11098 *) # Darwin 1.3 on 11099 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 11100 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 11101 else 11102 case ${MACOSX_DEPLOYMENT_TARGET} in 11103 10.[012]) 11104 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 11105 ;; 11106 10.*) 11107 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' 11108 ;; 11109 esac 11110 fi 11111 ;; 11112 esac 11113 archive_cmds_need_lc=no 11114 hardcode_direct=no 11115 hardcode_automatic=yes 11116 hardcode_shlibpath_var=unsupported 11117 whole_archive_flag_spec='' 11118 link_all_deplibs=yes 11119 if test "$GCC" = yes ; then 11120 output_verbose_link_cmd='echo' 11121 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 11122 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 11123 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 11124 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 11125 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 11126 else 11127 case $cc_basename in 11128 xlc*) 11129 output_verbose_link_cmd='echo' 11130 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 11131 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 11132 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 11133 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 11134 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 11135 ;; 11136 *) 11137 ld_shlibs=no 11138 ;; 11139 esac 11140 fi 11141 ;; 11142 11143 dgux*) 11144 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11145 hardcode_libdir_flag_spec='-L$libdir' 11146 hardcode_shlibpath_var=no 11147 ;; 11148 11149 freebsd1*) 11150 ld_shlibs=no 11151 ;; 11152 11153 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 11154 # support. Future versions do this automatically, but an explicit c++rt0.o 11155 # does not break anything, and helps significantly (at the cost of a little 11156 # extra space). 11157 freebsd2.2*) 11158 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 11159 hardcode_libdir_flag_spec='-R$libdir' 11160 hardcode_direct=yes 11161 hardcode_shlibpath_var=no 11162 ;; 11163 11164 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 11165 freebsd2*) 11166 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 11167 hardcode_direct=yes 11168 hardcode_minus_L=yes 11169 hardcode_shlibpath_var=no 11170 ;; 11171 11172 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 11173 freebsd* | kfreebsd*-gnu | dragonfly*) 11174 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 11175 hardcode_libdir_flag_spec='-R$libdir' 11176 hardcode_direct=yes 11177 hardcode_shlibpath_var=no 11178 ;; 11179 11180 hpux9*) 11181 if test "$GCC" = yes; then 11182 archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 11183 else 11184 archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 11185 fi 11186 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 11187 hardcode_libdir_separator=: 11188 hardcode_direct=yes 11189 11190 # hardcode_minus_L: Not really in the search PATH, 11191 # but as the default location of the library. 11192 hardcode_minus_L=yes 11193 export_dynamic_flag_spec='${wl}-E' 11194 ;; 11195 11196 hpux10* | hpux11*) 11197 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 11198 case $host_cpu in 11199 hppa*64*|ia64*) 11200 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 11201 ;; 11202 *) 11203 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11204 ;; 11205 esac 11206 else 11207 case $host_cpu in 11208 hppa*64*|ia64*) 11209 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' 11210 ;; 11211 *) 11212 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 11213 ;; 11214 esac 11215 fi 11216 if test "$with_gnu_ld" = no; then 11217 case $host_cpu in 11218 hppa*64*) 11219 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 11220 hardcode_libdir_flag_spec_ld='+b $libdir' 11221 hardcode_libdir_separator=: 11222 hardcode_direct=no 11223 hardcode_shlibpath_var=no 11224 ;; 11225 ia64*) 11226 hardcode_libdir_flag_spec='-L$libdir' 11227 hardcode_direct=no 11228 hardcode_shlibpath_var=no 11229 11230 # hardcode_minus_L: Not really in the search PATH, 11231 # but as the default location of the library. 11232 hardcode_minus_L=yes 11233 ;; 11234 *) 11235 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 11236 hardcode_libdir_separator=: 11237 hardcode_direct=yes 11238 export_dynamic_flag_spec='${wl}-E' 11239 11240 # hardcode_minus_L: Not really in the search PATH, 11241 # but as the default location of the library. 11242 hardcode_minus_L=yes 11243 ;; 11244 esac 11245 fi 11246 ;; 11247 11248 irix5* | irix6* | nonstopux*) 11249 if test "$GCC" = yes; then 11250 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 11251 else 11252 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 11253 hardcode_libdir_flag_spec_ld='-rpath $libdir' 11254 fi 11255 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 11256 hardcode_libdir_separator=: 11257 link_all_deplibs=yes 11258 ;; 11259 11260 netbsd*) 11261 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 11262 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 11263 else 11264 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 11265 fi 11266 hardcode_libdir_flag_spec='-R$libdir' 11267 hardcode_direct=yes 11268 hardcode_shlibpath_var=no 11269 ;; 11270 11271 newsos6) 11272 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11273 hardcode_direct=yes 11274 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 11275 hardcode_libdir_separator=: 11276 hardcode_shlibpath_var=no 11277 ;; 11278 11279 openbsd*) 11280 hardcode_direct=yes 11281 hardcode_shlibpath_var=no 11282 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 11283 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11284 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 11285 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 11286 export_dynamic_flag_spec='${wl}-E' 11287 else 11288 case $host_os in 11289 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 11290 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 11291 hardcode_libdir_flag_spec='-R$libdir' 11292 ;; 11293 *) 11294 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11295 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 11296 ;; 11297 esac 11298 fi 11299 ;; 11300 11301 os2*) 11302 hardcode_libdir_flag_spec='-L$libdir' 11303 hardcode_minus_L=yes 11304 allow_undefined_flag=unsupported 11305 archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' 11306 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 11307 ;; 11308 11309 osf3*) 11310 if test "$GCC" = yes; then 11311 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 11312 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 11313 else 11314 allow_undefined_flag=' -expect_unresolved \*' 11315 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 11316 fi 11317 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 11318 hardcode_libdir_separator=: 11319 ;; 11320 11321 osf4* | osf5*) # as osf3* with the addition of -msym flag 11322 if test "$GCC" = yes; then 11323 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 11324 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 11325 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 11326 else 11327 allow_undefined_flag=' -expect_unresolved \*' 11328 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 11329 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 11330 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' 11331 11332 # Both c and cxx compiler support -rpath directly 11333 hardcode_libdir_flag_spec='-rpath $libdir' 11334 fi 11335 hardcode_libdir_separator=: 11336 ;; 11337 11338 sco3.2v5*) 11339 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11340 hardcode_shlibpath_var=no 11341 export_dynamic_flag_spec='${wl}-Bexport' 11342 runpath_var=LD_RUN_PATH 11343 hardcode_runpath_var=yes 11344 ;; 11345 11346 solaris*) 11347 no_undefined_flag=' -z text' 11348 if test "$GCC" = yes; then 11349 wlarc='${wl}' 11350 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 11351 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 11352 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 11353 else 11354 wlarc='' 11355 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 11356 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 11357 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 11358 fi 11359 hardcode_libdir_flag_spec='-R$libdir' 11360 hardcode_shlibpath_var=no 11361 case $host_os in 11362 solaris2.[0-5] | solaris2.[0-5].*) ;; 11363 *) 11364 # The compiler driver will combine linker options so we 11365 # cannot just pass the convience library names through 11366 # without $wl, iff we do not link with $LD. 11367 # Luckily, gcc supports the same syntax we need for Sun Studio. 11368 # Supported since Solaris 2.6 (maybe 2.5.1?) 11369 case $wlarc in 11370 '') 11371 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; 11372 *) 11373 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; 11374 esac ;; 11375 esac 11376 link_all_deplibs=yes 11377 ;; 11378 11379 sunos4*) 11380 if test "x$host_vendor" = xsequent; then 11381 # Use $CC to link under sequent, because it throws in some extra .o 11382 # files that make .init and .fini sections work. 11383 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 11384 else 11385 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 11386 fi 11387 hardcode_libdir_flag_spec='-L$libdir' 11388 hardcode_direct=yes 11389 hardcode_minus_L=yes 11390 hardcode_shlibpath_var=no 11391 ;; 11392 11393 sysv4) 11394 case $host_vendor in 11395 sni) 11396 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11397 hardcode_direct=yes # is this really true??? 11398 ;; 11399 siemens) 11400 ## LD is ld it makes a PLAMLIB 11401 ## CC just makes a GrossModule. 11402 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 11403 reload_cmds='$CC -r -o $output$reload_objs' 11404 hardcode_direct=no 11405 ;; 11406 motorola) 11407 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11408 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 11409 ;; 11410 esac 11411 runpath_var='LD_RUN_PATH' 11412 hardcode_shlibpath_var=no 11413 ;; 11414 11415 sysv4.3*) 11416 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11417 hardcode_shlibpath_var=no 11418 export_dynamic_flag_spec='-Bexport' 11419 ;; 11420 11421 sysv4*MP*) 11422 if test -d /usr/nec; then 11423 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11424 hardcode_shlibpath_var=no 11425 runpath_var=LD_RUN_PATH 11426 hardcode_runpath_var=yes 11427 ld_shlibs=yes 11428 fi 11429 ;; 11430 11431 sysv4.2uw2*) 11432 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 11433 hardcode_direct=yes 11434 hardcode_minus_L=no 11435 hardcode_shlibpath_var=no 11436 hardcode_runpath_var=yes 11437 runpath_var=LD_RUN_PATH 11438 ;; 11439 11440 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) 11441 no_undefined_flag='${wl}-z ${wl}text' 11442 if test "$GCC" = yes; then 11443 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 11444 else 11445 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 11446 fi 11447 runpath_var='LD_RUN_PATH' 11448 hardcode_shlibpath_var=no 11449 ;; 11450 11451 sysv5*) 11452 no_undefined_flag=' -z text' 11453 # $CC -shared without GNU ld will not create a library from C++ 11454 # object files and a static libstdc++, better avoid it by now 11455 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 11456 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 11457 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 11458 hardcode_libdir_flag_spec= 11459 hardcode_shlibpath_var=no 11460 runpath_var='LD_RUN_PATH' 11461 ;; 11462 11463 uts4*) 11464 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11465 hardcode_libdir_flag_spec='-L$libdir' 11466 hardcode_shlibpath_var=no 11467 ;; 11468 11469 *) 11470 ld_shlibs=no 11471 ;; 11472 esac 11473 fi 11474 11475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 11476$as_echo "$ld_shlibs" >&6; } 11477test "$ld_shlibs" = no && can_build_shared=no 11478 11479variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11480if test "$GCC" = yes; then 11481 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11482fi 11483 11484# 11485# Do we need to explicitly link libc? 11486# 11487case "x$archive_cmds_need_lc" in 11488x|xyes) 11489 # Assume -lc should be added 11490 archive_cmds_need_lc=yes 11491 11492 if test "$enable_shared" = yes && test "$GCC" = yes; then 11493 case $archive_cmds in 11494 *'~'*) 11495 # FIXME: we may have to deal with multi-command sequences. 11496 ;; 11497 '$CC '*) 11498 # Test whether the compiler implicitly links with -lc since on some 11499 # systems, -lgcc has to come before -lc. If gcc already passes -lc 11500 # to ld, don't add -lc before -lgcc. 11501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 11502$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 11503 $rm conftest* 11504 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 11505 11506 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 11507 (eval $ac_compile) 2>&5 11508 ac_status=$? 11509 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11510 test $ac_status = 0; } 2>conftest.err; then 11511 soname=conftest 11512 lib=conftest 11513 libobjs=conftest.$ac_objext 11514 deplibs= 11515 wl=$lt_prog_compiler_wl 11516 compiler_flags=-v 11517 linker_flags=-v 11518 verstring= 11519 output_objdir=. 11520 libname=conftest 11521 lt_save_allow_undefined_flag=$allow_undefined_flag 11522 allow_undefined_flag= 11523 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5 11524 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 11525 ac_status=$? 11526 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11527 test $ac_status = 0; } 11528 then 11529 archive_cmds_need_lc=no 11530 else 11531 archive_cmds_need_lc=yes 11532 fi 11533 allow_undefined_flag=$lt_save_allow_undefined_flag 11534 else 11535 cat conftest.err 1>&5 11536 fi 11537 $rm conftest* 11538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5 11539$as_echo "$archive_cmds_need_lc" >&6; } 11540 ;; 11541 esac 11542 fi 11543 ;; 11544esac 11545 11546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 11547$as_echo_n "checking dynamic linker characteristics... " >&6; } 11548library_names_spec= 11549libname_spec='lib$name' 11550soname_spec= 11551shrext_cmds=".so" 11552postinstall_cmds= 11553postuninstall_cmds= 11554finish_cmds= 11555finish_eval= 11556shlibpath_var= 11557shlibpath_overrides_runpath=unknown 11558version_type=none 11559dynamic_linker="$host_os ld.so" 11560sys_lib_dlsearch_path_spec="/lib /usr/lib" 11561if test "$GCC" = yes; then 11562 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 11563 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 11564 # if the path contains ";" then we assume it to be the separator 11565 # otherwise default to the standard path separator (i.e. ":") - it is 11566 # assumed that no part of a normal pathname contains ";" but that should 11567 # okay in the real world where ";" in dirpaths is itself problematic. 11568 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11569 else 11570 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11571 fi 11572else 11573 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11574fi 11575need_lib_prefix=unknown 11576hardcode_into_libs=no 11577 11578# when you set need_version to no, make sure it does not cause -set_version 11579# flags to be left without arguments 11580need_version=unknown 11581 11582case $host_os in 11583aix3*) 11584 version_type=linux 11585 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 11586 shlibpath_var=LIBPATH 11587 11588 # AIX 3 has no versioning support, so we append a major version to the name. 11589 soname_spec='${libname}${release}${shared_ext}$major' 11590 ;; 11591 11592aix4* | aix5*) 11593 version_type=linux 11594 need_lib_prefix=no 11595 need_version=no 11596 hardcode_into_libs=yes 11597 if test "$host_cpu" = ia64; then 11598 # AIX 5 supports IA64 11599 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 11600 shlibpath_var=LD_LIBRARY_PATH 11601 else 11602 # With GCC up to 2.95.x, collect2 would create an import file 11603 # for dependence libraries. The import file would start with 11604 # the line `#! .'. This would cause the generated library to 11605 # depend on `.', always an invalid library. This was fixed in 11606 # development snapshots of GCC prior to 3.0. 11607 case $host_os in 11608 aix4 | aix4.[01] | aix4.[01].*) 11609 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11610 echo ' yes ' 11611 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 11612 : 11613 else 11614 can_build_shared=no 11615 fi 11616 ;; 11617 esac 11618 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 11619 # soname into executable. Probably we can add versioning support to 11620 # collect2, so additional links can be useful in future. 11621 if test "$aix_use_runtimelinking" = yes; then 11622 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 11623 # instead of lib<name>.a to let people know that these are not 11624 # typical AIX shared libraries. 11625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11626 else 11627 # We preserve .a as extension for shared libraries through AIX4.2 11628 # and later when we are not doing run time linking. 11629 library_names_spec='${libname}${release}.a $libname.a' 11630 soname_spec='${libname}${release}${shared_ext}$major' 11631 fi 11632 shlibpath_var=LIBPATH 11633 fi 11634 ;; 11635 11636amigaos*) 11637 library_names_spec='$libname.ixlibrary $libname.a' 11638 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11639 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 11640 ;; 11641 11642beos*) 11643 library_names_spec='${libname}${shared_ext}' 11644 dynamic_linker="$host_os ld.so" 11645 shlibpath_var=LIBRARY_PATH 11646 ;; 11647 11648bsdi[45]*) 11649 version_type=linux 11650 need_version=no 11651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11652 soname_spec='${libname}${release}${shared_ext}$major' 11653 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11654 shlibpath_var=LD_LIBRARY_PATH 11655 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11656 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11657 # the default ld.so.conf also contains /usr/contrib/lib and 11658 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11659 # libtool to hard-code these into programs 11660 ;; 11661 11662cygwin* | mingw* | pw32*) 11663 version_type=windows 11664 shrext_cmds=".dll" 11665 need_version=no 11666 need_lib_prefix=no 11667 11668 case $GCC,$host_os in 11669 yes,cygwin* | yes,mingw* | yes,pw32*) 11670 library_names_spec='$libname.dll.a' 11671 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11672 postinstall_cmds='base_file=`basename \${file}`~ 11673 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 11674 dldir=$destdir/`dirname \$dlpath`~ 11675 test -d \$dldir || mkdir -p \$dldir~ 11676 $install_prog $dir/$dlname \$dldir/$dlname~ 11677 chmod a+x \$dldir/$dlname' 11678 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11679 dlpath=$dir/\$dldll~ 11680 $rm \$dlpath' 11681 shlibpath_overrides_runpath=yes 11682 11683 case $host_os in 11684 cygwin*) 11685 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11686 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11687 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 11688 ;; 11689 mingw*) 11690 # MinGW DLLs use traditional 'lib' prefix 11691 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11692 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 11693 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 11694 # It is most probably a Windows format PATH printed by 11695 # mingw gcc, but we are running on Cygwin. Gcc prints its search 11696 # path with ; separators, and with drive letters. We can handle the 11697 # drive letters (cygwin fileutils understands them), so leave them, 11698 # especially as we might pass files found there to a mingw objdump, 11699 # which wouldn't understand a cygwinified path. Ahh. 11700 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11701 else 11702 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11703 fi 11704 ;; 11705 pw32*) 11706 # pw32 DLLs use 'pw' prefix rather than 'lib' 11707 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11708 ;; 11709 esac 11710 ;; 11711 11712 *) 11713 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 11714 ;; 11715 esac 11716 dynamic_linker='Win32 ld.exe' 11717 # FIXME: first we should search . and the directory the executable is in 11718 shlibpath_var=PATH 11719 ;; 11720 11721darwin* | rhapsody*) 11722 dynamic_linker="$host_os dyld" 11723 version_type=darwin 11724 need_lib_prefix=no 11725 need_version=no 11726 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 11727 soname_spec='${libname}${release}${major}$shared_ext' 11728 shlibpath_overrides_runpath=yes 11729 shlibpath_var=DYLD_LIBRARY_PATH 11730 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 11731 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 11732 if test "$GCC" = yes; then 11733 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` 11734 else 11735 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 11736 fi 11737 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11738 ;; 11739 11740dgux*) 11741 version_type=linux 11742 need_lib_prefix=no 11743 need_version=no 11744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 11745 soname_spec='${libname}${release}${shared_ext}$major' 11746 shlibpath_var=LD_LIBRARY_PATH 11747 ;; 11748 11749freebsd1*) 11750 dynamic_linker=no 11751 ;; 11752 11753kfreebsd*-gnu) 11754 version_type=linux 11755 need_lib_prefix=no 11756 need_version=no 11757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11758 soname_spec='${libname}${release}${shared_ext}$major' 11759 shlibpath_var=LD_LIBRARY_PATH 11760 shlibpath_overrides_runpath=no 11761 hardcode_into_libs=yes 11762 dynamic_linker='GNU ld.so' 11763 ;; 11764 11765freebsd* | dragonfly*) 11766 # DragonFly does not have aout. When/if they implement a new 11767 # versioning mechanism, adjust this. 11768 if test -x /usr/bin/objformat; then 11769 objformat=`/usr/bin/objformat` 11770 else 11771 case $host_os in 11772 freebsd[123]*) objformat=aout ;; 11773 *) objformat=elf ;; 11774 esac 11775 fi 11776 version_type=freebsd-$objformat 11777 case $version_type in 11778 freebsd-elf*) 11779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 11780 need_version=no 11781 need_lib_prefix=no 11782 ;; 11783 freebsd-*) 11784 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 11785 need_version=yes 11786 ;; 11787 esac 11788 shlibpath_var=LD_LIBRARY_PATH 11789 case $host_os in 11790 freebsd2*) 11791 shlibpath_overrides_runpath=yes 11792 ;; 11793 freebsd3.[01]* | freebsdelf3.[01]*) 11794 shlibpath_overrides_runpath=yes 11795 hardcode_into_libs=yes 11796 ;; 11797 *) # from 3.2 on 11798 shlibpath_overrides_runpath=no 11799 hardcode_into_libs=yes 11800 ;; 11801 esac 11802 ;; 11803 11804gnu*) 11805 version_type=linux 11806 need_lib_prefix=no 11807 need_version=no 11808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 11809 soname_spec='${libname}${release}${shared_ext}$major' 11810 shlibpath_var=LD_LIBRARY_PATH 11811 hardcode_into_libs=yes 11812 ;; 11813 11814hpux9* | hpux10* | hpux11*) 11815 # Give a soname corresponding to the major version so that dld.sl refuses to 11816 # link against other versions. 11817 version_type=sunos 11818 need_lib_prefix=no 11819 need_version=no 11820 case $host_cpu in 11821 ia64*) 11822 shrext_cmds='.so' 11823 hardcode_into_libs=yes 11824 dynamic_linker="$host_os dld.so" 11825 shlibpath_var=LD_LIBRARY_PATH 11826 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11828 soname_spec='${libname}${release}${shared_ext}$major' 11829 if test "X$HPUX_IA64_MODE" = X32; then 11830 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11831 else 11832 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11833 fi 11834 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11835 ;; 11836 hppa*64*) 11837 shrext_cmds='.sl' 11838 hardcode_into_libs=yes 11839 dynamic_linker="$host_os dld.sl" 11840 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11841 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11843 soname_spec='${libname}${release}${shared_ext}$major' 11844 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11845 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11846 ;; 11847 *) 11848 shrext_cmds='.sl' 11849 dynamic_linker="$host_os dld.sl" 11850 shlibpath_var=SHLIB_PATH 11851 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11852 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11853 soname_spec='${libname}${release}${shared_ext}$major' 11854 ;; 11855 esac 11856 # HP-UX runs *really* slowly unless shared libraries are mode 555. 11857 postinstall_cmds='chmod 555 $lib' 11858 ;; 11859 11860irix5* | irix6* | nonstopux*) 11861 case $host_os in 11862 nonstopux*) version_type=nonstopux ;; 11863 *) 11864 if test "$lt_cv_prog_gnu_ld" = yes; then 11865 version_type=linux 11866 else 11867 version_type=irix 11868 fi ;; 11869 esac 11870 need_lib_prefix=no 11871 need_version=no 11872 soname_spec='${libname}${release}${shared_ext}$major' 11873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 11874 case $host_os in 11875 irix5* | nonstopux*) 11876 libsuff= shlibsuff= 11877 ;; 11878 *) 11879 case $LD in # libtool.m4 will add one of these switches to LD 11880 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11881 libsuff= shlibsuff= libmagic=32-bit;; 11882 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11883 libsuff=32 shlibsuff=N32 libmagic=N32;; 11884 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11885 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11886 *) libsuff= shlibsuff= libmagic=never-match;; 11887 esac 11888 ;; 11889 esac 11890 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11891 shlibpath_overrides_runpath=no 11892 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 11893 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 11894 hardcode_into_libs=yes 11895 ;; 11896 11897# No shared lib support for Linux oldld, aout, or coff. 11898linux*oldld* | linux*aout* | linux*coff*) 11899 dynamic_linker=no 11900 ;; 11901 11902# This must be Linux ELF. 11903linux*) 11904 version_type=linux 11905 need_lib_prefix=no 11906 need_version=no 11907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11908 soname_spec='${libname}${release}${shared_ext}$major' 11909 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11910 shlibpath_var=LD_LIBRARY_PATH 11911 shlibpath_overrides_runpath=no 11912 # This implies no fast_install, which is unacceptable. 11913 # Some rework will be needed to allow for fast_install 11914 # before this can be enabled. 11915 hardcode_into_libs=yes 11916 11917 # Append ld.so.conf contents to the search path 11918 if test -f /etc/ld.so.conf; then 11919 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 11920 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 11921 fi 11922 11923 # We used to test for /lib/ld.so.1 and disable shared libraries on 11924 # powerpc, because MkLinux only supported shared libraries with the 11925 # GNU dynamic linker. Since this was broken with cross compilers, 11926 # most powerpc-linux boxes support dynamic linking these days and 11927 # people can always --disable-shared, the test was removed, and we 11928 # assume the GNU/Linux dynamic linker is in use. 11929 dynamic_linker='GNU/Linux ld.so' 11930 ;; 11931 11932knetbsd*-gnu) 11933 version_type=linux 11934 need_lib_prefix=no 11935 need_version=no 11936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11937 soname_spec='${libname}${release}${shared_ext}$major' 11938 shlibpath_var=LD_LIBRARY_PATH 11939 shlibpath_overrides_runpath=no 11940 hardcode_into_libs=yes 11941 dynamic_linker='GNU ld.so' 11942 ;; 11943 11944netbsd*) 11945 version_type=sunos 11946 need_lib_prefix=no 11947 need_version=no 11948 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 11949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11950 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11951 dynamic_linker='NetBSD (a.out) ld.so' 11952 else 11953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11954 soname_spec='${libname}${release}${shared_ext}$major' 11955 dynamic_linker='NetBSD ld.elf_so' 11956 fi 11957 shlibpath_var=LD_LIBRARY_PATH 11958 shlibpath_overrides_runpath=yes 11959 hardcode_into_libs=yes 11960 ;; 11961 11962newsos6) 11963 version_type=linux 11964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11965 shlibpath_var=LD_LIBRARY_PATH 11966 shlibpath_overrides_runpath=yes 11967 ;; 11968 11969nto-qnx*) 11970 version_type=linux 11971 need_lib_prefix=no 11972 need_version=no 11973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11974 soname_spec='${libname}${release}${shared_ext}$major' 11975 shlibpath_var=LD_LIBRARY_PATH 11976 shlibpath_overrides_runpath=yes 11977 ;; 11978 11979openbsd*) 11980 version_type=sunos 11981 need_lib_prefix=no 11982 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 11983 case $host_os in 11984 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 11985 *) need_version=no ;; 11986 esac 11987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11988 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11989 shlibpath_var=LD_LIBRARY_PATH 11990 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 11991 case $host_os in 11992 openbsd2.[89] | openbsd2.[89].*) 11993 shlibpath_overrides_runpath=no 11994 ;; 11995 *) 11996 shlibpath_overrides_runpath=yes 11997 ;; 11998 esac 11999 else 12000 shlibpath_overrides_runpath=yes 12001 fi 12002 ;; 12003 12004os2*) 12005 libname_spec='$name' 12006 shrext_cmds=".dll" 12007 need_lib_prefix=no 12008 library_names_spec='$libname${shared_ext} $libname.a' 12009 dynamic_linker='OS/2 ld.exe' 12010 shlibpath_var=LIBPATH 12011 ;; 12012 12013osf3* | osf4* | osf5*) 12014 version_type=osf 12015 need_lib_prefix=no 12016 need_version=no 12017 soname_spec='${libname}${release}${shared_ext}$major' 12018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12019 shlibpath_var=LD_LIBRARY_PATH 12020 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 12021 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 12022 ;; 12023 12024sco3.2v5*) 12025 version_type=osf 12026 soname_spec='${libname}${release}${shared_ext}$major' 12027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12028 shlibpath_var=LD_LIBRARY_PATH 12029 ;; 12030 12031solaris*) 12032 version_type=linux 12033 need_lib_prefix=no 12034 need_version=no 12035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12036 soname_spec='${libname}${release}${shared_ext}$major' 12037 shlibpath_var=LD_LIBRARY_PATH 12038 shlibpath_overrides_runpath=yes 12039 hardcode_into_libs=yes 12040 # ldd complains unless libraries are executable 12041 postinstall_cmds='chmod +x $lib' 12042 ;; 12043 12044sunos4*) 12045 version_type=sunos 12046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12047 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 12048 shlibpath_var=LD_LIBRARY_PATH 12049 shlibpath_overrides_runpath=yes 12050 if test "$with_gnu_ld" = yes; then 12051 need_lib_prefix=no 12052 fi 12053 need_version=yes 12054 ;; 12055 12056sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 12057 version_type=linux 12058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12059 soname_spec='${libname}${release}${shared_ext}$major' 12060 shlibpath_var=LD_LIBRARY_PATH 12061 case $host_vendor in 12062 sni) 12063 shlibpath_overrides_runpath=no 12064 need_lib_prefix=no 12065 export_dynamic_flag_spec='${wl}-Blargedynsym' 12066 runpath_var=LD_RUN_PATH 12067 ;; 12068 siemens) 12069 need_lib_prefix=no 12070 ;; 12071 motorola) 12072 need_lib_prefix=no 12073 need_version=no 12074 shlibpath_overrides_runpath=no 12075 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 12076 ;; 12077 esac 12078 ;; 12079 12080sysv4*MP*) 12081 if test -d /usr/nec ;then 12082 version_type=linux 12083 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 12084 soname_spec='$libname${shared_ext}.$major' 12085 shlibpath_var=LD_LIBRARY_PATH 12086 fi 12087 ;; 12088 12089uts4*) 12090 version_type=linux 12091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12092 soname_spec='${libname}${release}${shared_ext}$major' 12093 shlibpath_var=LD_LIBRARY_PATH 12094 ;; 12095 12096*) 12097 dynamic_linker=no 12098 ;; 12099esac 12100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 12101$as_echo "$dynamic_linker" >&6; } 12102test "$dynamic_linker" = no && can_build_shared=no 12103 12104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 12105$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 12106hardcode_action= 12107if test -n "$hardcode_libdir_flag_spec" || \ 12108 test -n "$runpath_var" || \ 12109 test "X$hardcode_automatic" = "Xyes" ; then 12110 12111 # We can hardcode non-existant directories. 12112 if test "$hardcode_direct" != no && 12113 # If the only mechanism to avoid hardcoding is shlibpath_var, we 12114 # have to relink, otherwise we might link with an installed library 12115 # when we should be linking with a yet-to-be-installed one 12116 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && 12117 test "$hardcode_minus_L" != no; then 12118 # Linking always hardcodes the temporary library directory. 12119 hardcode_action=relink 12120 else 12121 # We can link without hardcoding, and we can hardcode nonexisting dirs. 12122 hardcode_action=immediate 12123 fi 12124else 12125 # We cannot hardcode anything, or else we can only hardcode existing 12126 # directories. 12127 hardcode_action=unsupported 12128fi 12129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 12130$as_echo "$hardcode_action" >&6; } 12131 12132if test "$hardcode_action" = relink; then 12133 # Fast installation is not supported 12134 enable_fast_install=no 12135elif test "$shlibpath_overrides_runpath" = yes || 12136 test "$enable_shared" = no; then 12137 # Fast installation is not necessary 12138 enable_fast_install=needless 12139fi 12140 12141striplib= 12142old_striplib= 12143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 12144$as_echo_n "checking whether stripping libraries is possible... " >&6; } 12145if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 12146 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 12147 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 12148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12149$as_echo "yes" >&6; } 12150else 12151# FIXME - insert some real tests, host_os isn't really good enough 12152 case $host_os in 12153 darwin*) 12154 if test -n "$STRIP" ; then 12155 striplib="$STRIP -x" 12156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12157$as_echo "yes" >&6; } 12158 else 12159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12160$as_echo "no" >&6; } 12161fi 12162 ;; 12163 *) 12164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12165$as_echo "no" >&6; } 12166 ;; 12167 esac 12168fi 12169 12170if test "x$enable_dlopen" != xyes; then 12171 enable_dlopen=unknown 12172 enable_dlopen_self=unknown 12173 enable_dlopen_self_static=unknown 12174else 12175 lt_cv_dlopen=no 12176 lt_cv_dlopen_libs= 12177 12178 case $host_os in 12179 beos*) 12180 lt_cv_dlopen="load_add_on" 12181 lt_cv_dlopen_libs= 12182 lt_cv_dlopen_self=yes 12183 ;; 12184 12185 mingw* | pw32*) 12186 lt_cv_dlopen="LoadLibrary" 12187 lt_cv_dlopen_libs= 12188 ;; 12189 12190 cygwin*) 12191 lt_cv_dlopen="dlopen" 12192 lt_cv_dlopen_libs= 12193 ;; 12194 12195 darwin*) 12196 # if libdl is installed we need to link against it 12197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12198$as_echo_n "checking for dlopen in -ldl... " >&6; } 12199if test "${ac_cv_lib_dl_dlopen+set}" = set; then : 12200 $as_echo_n "(cached) " >&6 12201else 12202 ac_check_lib_save_LIBS=$LIBS 12203LIBS="-ldl $LIBS" 12204cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12205/* end confdefs.h. */ 12206 12207/* Override any GCC internal prototype to avoid an error. 12208 Use char because int might match the return type of a GCC 12209 builtin and then its argument prototype would still apply. */ 12210#ifdef __cplusplus 12211extern "C" 12212#endif 12213char dlopen (); 12214int 12215main () 12216{ 12217return dlopen (); 12218 ; 12219 return 0; 12220} 12221_ACEOF 12222if ac_fn_c_try_link "$LINENO"; then : 12223 ac_cv_lib_dl_dlopen=yes 12224else 12225 ac_cv_lib_dl_dlopen=no 12226fi 12227rm -f core conftest.err conftest.$ac_objext \ 12228 conftest$ac_exeext conftest.$ac_ext 12229LIBS=$ac_check_lib_save_LIBS 12230fi 12231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12232$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12233if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : 12234 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 12235else 12236 12237 lt_cv_dlopen="dyld" 12238 lt_cv_dlopen_libs= 12239 lt_cv_dlopen_self=yes 12240 12241fi 12242 12243 ;; 12244 12245 *) 12246 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 12247if test "x$ac_cv_func_shl_load" = x""yes; then : 12248 lt_cv_dlopen="shl_load" 12249else 12250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 12251$as_echo_n "checking for shl_load in -ldld... " >&6; } 12252if test "${ac_cv_lib_dld_shl_load+set}" = set; then : 12253 $as_echo_n "(cached) " >&6 12254else 12255 ac_check_lib_save_LIBS=$LIBS 12256LIBS="-ldld $LIBS" 12257cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12258/* end confdefs.h. */ 12259 12260/* Override any GCC internal prototype to avoid an error. 12261 Use char because int might match the return type of a GCC 12262 builtin and then its argument prototype would still apply. */ 12263#ifdef __cplusplus 12264extern "C" 12265#endif 12266char shl_load (); 12267int 12268main () 12269{ 12270return shl_load (); 12271 ; 12272 return 0; 12273} 12274_ACEOF 12275if ac_fn_c_try_link "$LINENO"; then : 12276 ac_cv_lib_dld_shl_load=yes 12277else 12278 ac_cv_lib_dld_shl_load=no 12279fi 12280rm -f core conftest.err conftest.$ac_objext \ 12281 conftest$ac_exeext conftest.$ac_ext 12282LIBS=$ac_check_lib_save_LIBS 12283fi 12284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 12285$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 12286if test "x$ac_cv_lib_dld_shl_load" = x""yes; then : 12287 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 12288else 12289 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 12290if test "x$ac_cv_func_dlopen" = x""yes; then : 12291 lt_cv_dlopen="dlopen" 12292else 12293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12294$as_echo_n "checking for dlopen in -ldl... " >&6; } 12295if test "${ac_cv_lib_dl_dlopen+set}" = set; then : 12296 $as_echo_n "(cached) " >&6 12297else 12298 ac_check_lib_save_LIBS=$LIBS 12299LIBS="-ldl $LIBS" 12300cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12301/* end confdefs.h. */ 12302 12303/* Override any GCC internal prototype to avoid an error. 12304 Use char because int might match the return type of a GCC 12305 builtin and then its argument prototype would still apply. */ 12306#ifdef __cplusplus 12307extern "C" 12308#endif 12309char dlopen (); 12310int 12311main () 12312{ 12313return dlopen (); 12314 ; 12315 return 0; 12316} 12317_ACEOF 12318if ac_fn_c_try_link "$LINENO"; then : 12319 ac_cv_lib_dl_dlopen=yes 12320else 12321 ac_cv_lib_dl_dlopen=no 12322fi 12323rm -f core conftest.err conftest.$ac_objext \ 12324 conftest$ac_exeext conftest.$ac_ext 12325LIBS=$ac_check_lib_save_LIBS 12326fi 12327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12328$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12329if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : 12330 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 12331else 12332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 12333$as_echo_n "checking for dlopen in -lsvld... " >&6; } 12334if test "${ac_cv_lib_svld_dlopen+set}" = set; then : 12335 $as_echo_n "(cached) " >&6 12336else 12337 ac_check_lib_save_LIBS=$LIBS 12338LIBS="-lsvld $LIBS" 12339cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12340/* end confdefs.h. */ 12341 12342/* Override any GCC internal prototype to avoid an error. 12343 Use char because int might match the return type of a GCC 12344 builtin and then its argument prototype would still apply. */ 12345#ifdef __cplusplus 12346extern "C" 12347#endif 12348char dlopen (); 12349int 12350main () 12351{ 12352return dlopen (); 12353 ; 12354 return 0; 12355} 12356_ACEOF 12357if ac_fn_c_try_link "$LINENO"; then : 12358 ac_cv_lib_svld_dlopen=yes 12359else 12360 ac_cv_lib_svld_dlopen=no 12361fi 12362rm -f core conftest.err conftest.$ac_objext \ 12363 conftest$ac_exeext conftest.$ac_ext 12364LIBS=$ac_check_lib_save_LIBS 12365fi 12366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 12367$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 12368if test "x$ac_cv_lib_svld_dlopen" = x""yes; then : 12369 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 12370else 12371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 12372$as_echo_n "checking for dld_link in -ldld... " >&6; } 12373if test "${ac_cv_lib_dld_dld_link+set}" = set; then : 12374 $as_echo_n "(cached) " >&6 12375else 12376 ac_check_lib_save_LIBS=$LIBS 12377LIBS="-ldld $LIBS" 12378cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12379/* end confdefs.h. */ 12380 12381/* Override any GCC internal prototype to avoid an error. 12382 Use char because int might match the return type of a GCC 12383 builtin and then its argument prototype would still apply. */ 12384#ifdef __cplusplus 12385extern "C" 12386#endif 12387char dld_link (); 12388int 12389main () 12390{ 12391return dld_link (); 12392 ; 12393 return 0; 12394} 12395_ACEOF 12396if ac_fn_c_try_link "$LINENO"; then : 12397 ac_cv_lib_dld_dld_link=yes 12398else 12399 ac_cv_lib_dld_dld_link=no 12400fi 12401rm -f core conftest.err conftest.$ac_objext \ 12402 conftest$ac_exeext conftest.$ac_ext 12403LIBS=$ac_check_lib_save_LIBS 12404fi 12405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 12406$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 12407if test "x$ac_cv_lib_dld_dld_link" = x""yes; then : 12408 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 12409fi 12410 12411 12412fi 12413 12414 12415fi 12416 12417 12418fi 12419 12420 12421fi 12422 12423 12424fi 12425 12426 ;; 12427 esac 12428 12429 if test "x$lt_cv_dlopen" != xno; then 12430 enable_dlopen=yes 12431 else 12432 enable_dlopen=no 12433 fi 12434 12435 case $lt_cv_dlopen in 12436 dlopen) 12437 save_CPPFLAGS="$CPPFLAGS" 12438 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 12439 12440 save_LDFLAGS="$LDFLAGS" 12441 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 12442 12443 save_LIBS="$LIBS" 12444 LIBS="$lt_cv_dlopen_libs $LIBS" 12445 12446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 12447$as_echo_n "checking whether a program can dlopen itself... " >&6; } 12448if test "${lt_cv_dlopen_self+set}" = set; then : 12449 $as_echo_n "(cached) " >&6 12450else 12451 if test "$cross_compiling" = yes; then : 12452 lt_cv_dlopen_self=cross 12453else 12454 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12455 lt_status=$lt_dlunknown 12456 cat > conftest.$ac_ext <<EOF 12457#line 12457 "configure" 12458#include "confdefs.h" 12459 12460#if HAVE_DLFCN_H 12461#include <dlfcn.h> 12462#endif 12463 12464#include <stdio.h> 12465 12466#ifdef RTLD_GLOBAL 12467# define LT_DLGLOBAL RTLD_GLOBAL 12468#else 12469# ifdef DL_GLOBAL 12470# define LT_DLGLOBAL DL_GLOBAL 12471# else 12472# define LT_DLGLOBAL 0 12473# endif 12474#endif 12475 12476/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12477 find out it does not work in some platform. */ 12478#ifndef LT_DLLAZY_OR_NOW 12479# ifdef RTLD_LAZY 12480# define LT_DLLAZY_OR_NOW RTLD_LAZY 12481# else 12482# ifdef DL_LAZY 12483# define LT_DLLAZY_OR_NOW DL_LAZY 12484# else 12485# ifdef RTLD_NOW 12486# define LT_DLLAZY_OR_NOW RTLD_NOW 12487# else 12488# ifdef DL_NOW 12489# define LT_DLLAZY_OR_NOW DL_NOW 12490# else 12491# define LT_DLLAZY_OR_NOW 0 12492# endif 12493# endif 12494# endif 12495# endif 12496#endif 12497 12498#ifdef __cplusplus 12499extern "C" void exit (int); 12500#endif 12501 12502void fnord() { int i=42;} 12503int main () 12504{ 12505 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12506 int status = $lt_dlunknown; 12507 12508 if (self) 12509 { 12510 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12511 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12512 /* dlclose (self); */ 12513 } 12514 12515 exit (status); 12516} 12517EOF 12518 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12519 (eval $ac_link) 2>&5 12520 ac_status=$? 12521 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12522 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 12523 (./conftest; exit; ) >&5 2>/dev/null 12524 lt_status=$? 12525 case x$lt_status in 12526 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 12527 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 12528 x$lt_unknown|x*) lt_cv_dlopen_self=no ;; 12529 esac 12530 else : 12531 # compilation failed 12532 lt_cv_dlopen_self=no 12533 fi 12534fi 12535rm -fr conftest* 12536 12537 12538fi 12539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 12540$as_echo "$lt_cv_dlopen_self" >&6; } 12541 12542 if test "x$lt_cv_dlopen_self" = xyes; then 12543 LDFLAGS="$LDFLAGS $link_static_flag" 12544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 12545$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 12546if test "${lt_cv_dlopen_self_static+set}" = set; then : 12547 $as_echo_n "(cached) " >&6 12548else 12549 if test "$cross_compiling" = yes; then : 12550 lt_cv_dlopen_self_static=cross 12551else 12552 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12553 lt_status=$lt_dlunknown 12554 cat > conftest.$ac_ext <<EOF 12555#line 12555 "configure" 12556#include "confdefs.h" 12557 12558#if HAVE_DLFCN_H 12559#include <dlfcn.h> 12560#endif 12561 12562#include <stdio.h> 12563 12564#ifdef RTLD_GLOBAL 12565# define LT_DLGLOBAL RTLD_GLOBAL 12566#else 12567# ifdef DL_GLOBAL 12568# define LT_DLGLOBAL DL_GLOBAL 12569# else 12570# define LT_DLGLOBAL 0 12571# endif 12572#endif 12573 12574/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12575 find out it does not work in some platform. */ 12576#ifndef LT_DLLAZY_OR_NOW 12577# ifdef RTLD_LAZY 12578# define LT_DLLAZY_OR_NOW RTLD_LAZY 12579# else 12580# ifdef DL_LAZY 12581# define LT_DLLAZY_OR_NOW DL_LAZY 12582# else 12583# ifdef RTLD_NOW 12584# define LT_DLLAZY_OR_NOW RTLD_NOW 12585# else 12586# ifdef DL_NOW 12587# define LT_DLLAZY_OR_NOW DL_NOW 12588# else 12589# define LT_DLLAZY_OR_NOW 0 12590# endif 12591# endif 12592# endif 12593# endif 12594#endif 12595 12596#ifdef __cplusplus 12597extern "C" void exit (int); 12598#endif 12599 12600void fnord() { int i=42;} 12601int main () 12602{ 12603 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12604 int status = $lt_dlunknown; 12605 12606 if (self) 12607 { 12608 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12609 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12610 /* dlclose (self); */ 12611 } 12612 12613 exit (status); 12614} 12615EOF 12616 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12617 (eval $ac_link) 2>&5 12618 ac_status=$? 12619 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12620 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 12621 (./conftest; exit; ) >&5 2>/dev/null 12622 lt_status=$? 12623 case x$lt_status in 12624 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12625 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12626 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; 12627 esac 12628 else : 12629 # compilation failed 12630 lt_cv_dlopen_self_static=no 12631 fi 12632fi 12633rm -fr conftest* 12634 12635 12636fi 12637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 12638$as_echo "$lt_cv_dlopen_self_static" >&6; } 12639 fi 12640 12641 CPPFLAGS="$save_CPPFLAGS" 12642 LDFLAGS="$save_LDFLAGS" 12643 LIBS="$save_LIBS" 12644 ;; 12645 esac 12646 12647 case $lt_cv_dlopen_self in 12648 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 12649 *) enable_dlopen_self=unknown ;; 12650 esac 12651 12652 case $lt_cv_dlopen_self_static in 12653 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 12654 *) enable_dlopen_self_static=unknown ;; 12655 esac 12656fi 12657 12658 12659# Report which librarie types wil actually be built 12660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 12661$as_echo_n "checking if libtool supports shared libraries... " >&6; } 12662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 12663$as_echo "$can_build_shared" >&6; } 12664 12665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 12666$as_echo_n "checking whether to build shared libraries... " >&6; } 12667test "$can_build_shared" = "no" && enable_shared=no 12668 12669# On AIX, shared libraries and static libraries use the same namespace, and 12670# are all built from PIC. 12671case $host_os in 12672aix3*) 12673 test "$enable_shared" = yes && enable_static=no 12674 if test -n "$RANLIB"; then 12675 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12676 postinstall_cmds='$RANLIB $lib' 12677 fi 12678 ;; 12679 12680aix4* | aix5*) 12681 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 12682 test "$enable_shared" = yes && enable_static=no 12683 fi 12684 ;; 12685esac 12686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 12687$as_echo "$enable_shared" >&6; } 12688 12689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 12690$as_echo_n "checking whether to build static libraries... " >&6; } 12691# Make sure either enable_shared or enable_static is yes. 12692test "$enable_shared" = yes || enable_static=yes 12693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 12694$as_echo "$enable_static" >&6; } 12695 12696# The else clause should only fire when bootstrapping the 12697# libtool distribution, otherwise you forgot to ship ltmain.sh 12698# with your package, and you will get complaints that there are 12699# no rules to generate ltmain.sh. 12700if test -f "$ltmain"; then 12701 # See if we are running on zsh, and set the options which allow our commands through 12702 # without removal of \ escapes. 12703 if test -n "${ZSH_VERSION+set}" ; then 12704 setopt NO_GLOB_SUBST 12705 fi 12706 # Now quote all the things that may contain metacharacters while being 12707 # careful not to overquote the AC_SUBSTed values. We take copies of the 12708 # variables and quote the copies for generation of the libtool script. 12709 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ 12710 SED SHELL STRIP \ 12711 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 12712 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 12713 deplibs_check_method reload_flag reload_cmds need_locks \ 12714 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 12715 lt_cv_sys_global_symbol_to_c_name_address \ 12716 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 12717 old_postinstall_cmds old_postuninstall_cmds \ 12718 compiler \ 12719 CC \ 12720 LD \ 12721 lt_prog_compiler_wl \ 12722 lt_prog_compiler_pic \ 12723 lt_prog_compiler_static \ 12724 lt_prog_compiler_no_builtin_flag \ 12725 export_dynamic_flag_spec \ 12726 thread_safe_flag_spec \ 12727 whole_archive_flag_spec \ 12728 enable_shared_with_static_runtimes \ 12729 old_archive_cmds \ 12730 old_archive_from_new_cmds \ 12731 predep_objects \ 12732 postdep_objects \ 12733 predeps \ 12734 postdeps \ 12735 compiler_lib_search_path \ 12736 archive_cmds \ 12737 archive_expsym_cmds \ 12738 postinstall_cmds \ 12739 postuninstall_cmds \ 12740 old_archive_from_expsyms_cmds \ 12741 allow_undefined_flag \ 12742 no_undefined_flag \ 12743 export_symbols_cmds \ 12744 hardcode_libdir_flag_spec \ 12745 hardcode_libdir_flag_spec_ld \ 12746 hardcode_libdir_separator \ 12747 hardcode_automatic \ 12748 module_cmds \ 12749 module_expsym_cmds \ 12750 lt_cv_prog_compiler_c_o \ 12751 exclude_expsyms \ 12752 include_expsyms; do 12753 12754 case $var in 12755 old_archive_cmds | \ 12756 old_archive_from_new_cmds | \ 12757 archive_cmds | \ 12758 archive_expsym_cmds | \ 12759 module_cmds | \ 12760 module_expsym_cmds | \ 12761 old_archive_from_expsyms_cmds | \ 12762 export_symbols_cmds | \ 12763 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 12764 postinstall_cmds | postuninstall_cmds | \ 12765 old_postinstall_cmds | old_postuninstall_cmds | \ 12766 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 12767 # Double-quote double-evaled strings. 12768 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 12769 ;; 12770 *) 12771 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 12772 ;; 12773 esac 12774 done 12775 12776 case $lt_echo in 12777 *'\$0 --fallback-echo"') 12778 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 12779 ;; 12780 esac 12781 12782cfgfile="${ofile}T" 12783 trap "$rm \"$cfgfile\"; exit 1" 1 2 15 12784 $rm -f "$cfgfile" 12785 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ofile" >&5 12786$as_echo "$as_me: creating $ofile" >&6;} 12787 12788 cat <<__EOF__ >> "$cfgfile" 12789#! $SHELL 12790 12791# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 12792# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) 12793# NOTE: Changes made to this file will be lost: look at ltmain.sh. 12794# 12795# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 12796# Free Software Foundation, Inc. 12797# 12798# This file is part of GNU Libtool: 12799# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 12800# 12801# This program is free software; you can redistribute it and/or modify 12802# it under the terms of the GNU General Public License as published by 12803# the Free Software Foundation; either version 2 of the License, or 12804# (at your option) any later version. 12805# 12806# This program is distributed in the hope that it will be useful, but 12807# WITHOUT ANY WARRANTY; without even the implied warranty of 12808# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12809# General Public License for more details. 12810# 12811# You should have received a copy of the GNU General Public License 12812# along with this program; if not, write to the Free Software 12813# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 12814# 12815# As a special exception to the GNU General Public License, if you 12816# distribute this file as part of a program that contains a 12817# configuration script generated by Autoconf, you may include it under 12818# the same distribution terms that you use for the rest of that program. 12819 12820# A sed program that does not truncate output. 12821SED=$lt_SED 12822 12823# Sed that helps us avoid accidentally triggering echo(1) options like -n. 12824Xsed="$SED -e 1s/^X//" 12825 12826# The HP-UX ksh and POSIX shell print the target directory to stdout 12827# if CDPATH is set. 12828(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 12829 12830# The names of the tagged configurations supported by this script. 12831available_tags= 12832 12833# ### BEGIN LIBTOOL CONFIG 12834 12835# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 12836 12837# Shell to use when invoking shell scripts. 12838SHELL=$lt_SHELL 12839 12840# Whether or not to build shared libraries. 12841build_libtool_libs=$enable_shared 12842 12843# Whether or not to build static libraries. 12844build_old_libs=$enable_static 12845 12846# Whether or not to add -lc for building shared libraries. 12847build_libtool_need_lc=$archive_cmds_need_lc 12848 12849# Whether or not to disallow shared libs when runtime libs are static 12850allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 12851 12852# Whether or not to optimize for fast installation. 12853fast_install=$enable_fast_install 12854 12855# The host system. 12856host_alias=$host_alias 12857host=$host 12858host_os=$host_os 12859 12860# The build system. 12861build_alias=$build_alias 12862build=$build 12863build_os=$build_os 12864 12865# An echo program that does not interpret backslashes. 12866echo=$lt_echo 12867 12868# The archiver. 12869AR=$lt_AR 12870AR_FLAGS=$lt_AR_FLAGS 12871 12872# A C compiler. 12873LTCC=$lt_LTCC 12874 12875# A language-specific compiler. 12876CC=$lt_compiler 12877 12878# Is the compiler the GNU C compiler? 12879with_gcc=$GCC 12880 12881# An ERE matcher. 12882EGREP=$lt_EGREP 12883 12884# The linker used to build libraries. 12885LD=$lt_LD 12886 12887# Whether we need hard or soft links. 12888LN_S=$lt_LN_S 12889 12890# A BSD-compatible nm program. 12891NM=$lt_NM 12892 12893# A symbol stripping program 12894STRIP=$lt_STRIP 12895 12896# Used to examine libraries when file_magic_cmd begins "file" 12897MAGIC_CMD=$MAGIC_CMD 12898 12899# Used on cygwin: DLL creation program. 12900DLLTOOL="$DLLTOOL" 12901 12902# Used on cygwin: object dumper. 12903OBJDUMP="$OBJDUMP" 12904 12905# Used on cygwin: assembler. 12906AS="$AS" 12907 12908# The name of the directory that contains temporary libtool files. 12909objdir=$objdir 12910 12911# How to create reloadable object files. 12912reload_flag=$lt_reload_flag 12913reload_cmds=$lt_reload_cmds 12914 12915# How to pass a linker flag through the compiler. 12916wl=$lt_lt_prog_compiler_wl 12917 12918# Object file suffix (normally "o"). 12919objext="$ac_objext" 12920 12921# Old archive suffix (normally "a"). 12922libext="$libext" 12923 12924# Shared library suffix (normally ".so"). 12925shrext_cmds='$shrext_cmds' 12926 12927# Executable file suffix (normally ""). 12928exeext="$exeext" 12929 12930# Additional compiler flags for building library objects. 12931pic_flag=$lt_lt_prog_compiler_pic 12932pic_mode=$pic_mode 12933 12934# What is the maximum length of a command? 12935max_cmd_len=$lt_cv_sys_max_cmd_len 12936 12937# Does compiler simultaneously support -c and -o options? 12938compiler_c_o=$lt_lt_cv_prog_compiler_c_o 12939 12940# Must we lock files when doing compilation? 12941need_locks=$lt_need_locks 12942 12943# Do we need the lib prefix for modules? 12944need_lib_prefix=$need_lib_prefix 12945 12946# Do we need a version for libraries? 12947need_version=$need_version 12948 12949# Whether dlopen is supported. 12950dlopen_support=$enable_dlopen 12951 12952# Whether dlopen of programs is supported. 12953dlopen_self=$enable_dlopen_self 12954 12955# Whether dlopen of statically linked programs is supported. 12956dlopen_self_static=$enable_dlopen_self_static 12957 12958# Compiler flag to prevent dynamic linking. 12959link_static_flag=$lt_lt_prog_compiler_static 12960 12961# Compiler flag to turn off builtin functions. 12962no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 12963 12964# Compiler flag to allow reflexive dlopens. 12965export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 12966 12967# Compiler flag to generate shared objects directly from archives. 12968whole_archive_flag_spec=$lt_whole_archive_flag_spec 12969 12970# Compiler flag to generate thread-safe objects. 12971thread_safe_flag_spec=$lt_thread_safe_flag_spec 12972 12973# Library versioning type. 12974version_type=$version_type 12975 12976# Format of library name prefix. 12977libname_spec=$lt_libname_spec 12978 12979# List of archive names. First name is the real one, the rest are links. 12980# The last name is the one that the linker finds with -lNAME. 12981library_names_spec=$lt_library_names_spec 12982 12983# The coded name of the library, if different from the real name. 12984soname_spec=$lt_soname_spec 12985 12986# Commands used to build and install an old-style archive. 12987RANLIB=$lt_RANLIB 12988old_archive_cmds=$lt_old_archive_cmds 12989old_postinstall_cmds=$lt_old_postinstall_cmds 12990old_postuninstall_cmds=$lt_old_postuninstall_cmds 12991 12992# Create an old-style archive from a shared archive. 12993old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 12994 12995# Create a temporary old-style archive to link instead of a shared archive. 12996old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 12997 12998# Commands used to build and install a shared archive. 12999archive_cmds=$lt_archive_cmds 13000archive_expsym_cmds=$lt_archive_expsym_cmds 13001postinstall_cmds=$lt_postinstall_cmds 13002postuninstall_cmds=$lt_postuninstall_cmds 13003 13004# Commands used to build a loadable module (assumed same as above if empty) 13005module_cmds=$lt_module_cmds 13006module_expsym_cmds=$lt_module_expsym_cmds 13007 13008# Commands to strip libraries. 13009old_striplib=$lt_old_striplib 13010striplib=$lt_striplib 13011 13012# Dependencies to place before the objects being linked to create a 13013# shared library. 13014predep_objects=$lt_predep_objects 13015 13016# Dependencies to place after the objects being linked to create a 13017# shared library. 13018postdep_objects=$lt_postdep_objects 13019 13020# Dependencies to place before the objects being linked to create a 13021# shared library. 13022predeps=$lt_predeps 13023 13024# Dependencies to place after the objects being linked to create a 13025# shared library. 13026postdeps=$lt_postdeps 13027 13028# The library search path used internally by the compiler when linking 13029# a shared library. 13030compiler_lib_search_path=$lt_compiler_lib_search_path 13031 13032# Method to check whether dependent libraries are shared objects. 13033deplibs_check_method=$lt_deplibs_check_method 13034 13035# Command to use when deplibs_check_method == file_magic. 13036file_magic_cmd=$lt_file_magic_cmd 13037 13038# Flag that allows shared libraries with undefined symbols to be built. 13039allow_undefined_flag=$lt_allow_undefined_flag 13040 13041# Flag that forces no undefined symbols. 13042no_undefined_flag=$lt_no_undefined_flag 13043 13044# Commands used to finish a libtool library installation in a directory. 13045finish_cmds=$lt_finish_cmds 13046 13047# Same as above, but a single script fragment to be evaled but not shown. 13048finish_eval=$lt_finish_eval 13049 13050# Take the output of nm and produce a listing of raw symbols and C names. 13051global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 13052 13053# Transform the output of nm in a proper C declaration 13054global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 13055 13056# Transform the output of nm in a C name address pair 13057global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 13058 13059# This is the shared library runtime path variable. 13060runpath_var=$runpath_var 13061 13062# This is the shared library path variable. 13063shlibpath_var=$shlibpath_var 13064 13065# Is shlibpath searched before the hard-coded library search path? 13066shlibpath_overrides_runpath=$shlibpath_overrides_runpath 13067 13068# How to hardcode a shared library path into an executable. 13069hardcode_action=$hardcode_action 13070 13071# Whether we should hardcode library paths into libraries. 13072hardcode_into_libs=$hardcode_into_libs 13073 13074# Flag to hardcode \$libdir into a binary during linking. 13075# This must work even if \$libdir does not exist. 13076hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 13077 13078# If ld is used when linking, flag to hardcode \$libdir into 13079# a binary during linking. This must work even if \$libdir does 13080# not exist. 13081hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 13082 13083# Whether we need a single -rpath flag with a separated argument. 13084hardcode_libdir_separator=$lt_hardcode_libdir_separator 13085 13086# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 13087# resulting binary. 13088hardcode_direct=$hardcode_direct 13089 13090# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 13091# resulting binary. 13092hardcode_minus_L=$hardcode_minus_L 13093 13094# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 13095# the resulting binary. 13096hardcode_shlibpath_var=$hardcode_shlibpath_var 13097 13098# Set to yes if building a shared library automatically hardcodes DIR into the library 13099# and all subsequent libraries and executables linked against it. 13100hardcode_automatic=$hardcode_automatic 13101 13102# Variables whose values should be saved in libtool wrapper scripts and 13103# restored at relink time. 13104variables_saved_for_relink="$variables_saved_for_relink" 13105 13106# Whether libtool must link a program against all its dependency libraries. 13107link_all_deplibs=$link_all_deplibs 13108 13109# Compile-time system search path for libraries 13110sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 13111 13112# Run-time system search path for libraries 13113sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 13114 13115# Fix the shell variable \$srcfile for the compiler. 13116fix_srcfile_path="$fix_srcfile_path" 13117 13118# Set to yes if exported symbols are required. 13119always_export_symbols=$always_export_symbols 13120 13121# The commands to list exported symbols. 13122export_symbols_cmds=$lt_export_symbols_cmds 13123 13124# The commands to extract the exported symbol list from a shared archive. 13125extract_expsyms_cmds=$lt_extract_expsyms_cmds 13126 13127# Symbols that should not be listed in the preloaded symbols. 13128exclude_expsyms=$lt_exclude_expsyms 13129 13130# Symbols that must always be exported. 13131include_expsyms=$lt_include_expsyms 13132 13133# ### END LIBTOOL CONFIG 13134 13135__EOF__ 13136 13137 13138 case $host_os in 13139 aix3*) 13140 cat <<\EOF >> "$cfgfile" 13141 13142# AIX sometimes has problems with the GCC collect2 program. For some 13143# reason, if we set the COLLECT_NAMES environment variable, the problems 13144# vanish in a puff of smoke. 13145if test "X${COLLECT_NAMES+set}" != Xset; then 13146 COLLECT_NAMES= 13147 export COLLECT_NAMES 13148fi 13149EOF 13150 ;; 13151 esac 13152 13153 # We use sed instead of cat because bash on DJGPP gets confused if 13154 # if finds mixed CR/LF and LF-only lines. Since sed operates in 13155 # text mode, it properly converts lines to CR/LF. This bash problem 13156 # is reportedly fixed, but why not run on old versions too? 13157 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) 13158 13159 mv -f "$cfgfile" "$ofile" || \ 13160 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 13161 chmod +x "$ofile" 13162 13163else 13164 # If there is no Makefile yet, we rely on a make rule to execute 13165 # `config.status --recheck' to rerun these tests and create the 13166 # libtool script then. 13167 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 13168 if test -f "$ltmain_in"; then 13169 test -f Makefile && make "$ltmain" 13170 fi 13171fi 13172 13173 13174ac_ext=c 13175ac_cpp='$CPP $CPPFLAGS' 13176ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13177ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13178ac_compiler_gnu=$ac_cv_c_compiler_gnu 13179 13180CC="$lt_save_CC" 13181 13182 13183# Check whether --with-tags was given. 13184if test "${with_tags+set}" = set; then : 13185 withval=$with_tags; tagnames="$withval" 13186fi 13187 13188 13189if test -f "$ltmain" && test -n "$tagnames"; then 13190 if test ! -f "${ofile}"; then 13191 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not exist" >&5 13192$as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} 13193 fi 13194 13195 if test -z "$LTCC"; then 13196 eval "`$SHELL ${ofile} --config | grep '^LTCC='`" 13197 if test -z "$LTCC"; then 13198 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not look like a libtool script" >&5 13199$as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} 13200 else 13201 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 13202$as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} 13203 fi 13204 fi 13205 13206 # Extract list of available tagged configurations in $ofile. 13207 # Note that this assumes the entire list is on one line. 13208 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` 13209 13210 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 13211 for tagname in $tagnames; do 13212 IFS="$lt_save_ifs" 13213 # Check whether tagname contains only valid characters 13214 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in 13215 "") ;; 13216 *) as_fn_error "invalid tag name: $tagname" "$LINENO" 5 13217 ;; 13218 esac 13219 13220 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null 13221 then 13222 as_fn_error "tag name \"$tagname\" already exists" "$LINENO" 5 13223 fi 13224 13225 # Update the list of available tags. 13226 if test -n "$tagname"; then 13227 echo appending configuration tag \"$tagname\" to $ofile 13228 13229 case $tagname in 13230 CXX) 13231 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 13232 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 13233 (test "X$CXX" != "Xg++"))) ; then 13234 : 13235 else 13236 tagname="" 13237 fi 13238 ;; 13239 13240 F77) 13241 if test -n "$F77" && test "X$F77" != "Xno"; then 13242 : 13243 else 13244 tagname="" 13245 fi 13246 ;; 13247 13248 GCJ) 13249 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then 13250 13251 13252# Source file extension for Java test sources. 13253ac_ext=java 13254 13255# Object file extension for compiled Java test sources. 13256objext=o 13257objext_GCJ=$objext 13258 13259# Code to be used in simple compile tests 13260lt_simple_compile_test_code="class foo {}\n" 13261 13262# Code to be used in simple link tests 13263lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n' 13264 13265# ltmain only uses $CC for tagged configurations so make sure $CC is set. 13266 13267# If no C compiler was specified, use CC. 13268LTCC=${LTCC-"$CC"} 13269 13270# Allow CC to be a program name with arguments. 13271compiler=$CC 13272 13273 13274# save warnings/boilerplate of simple test code 13275ac_outfile=conftest.$ac_objext 13276printf "$lt_simple_compile_test_code" >conftest.$ac_ext 13277eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 13278_lt_compiler_boilerplate=`cat conftest.err` 13279$rm conftest* 13280 13281ac_outfile=conftest.$ac_objext 13282printf "$lt_simple_link_test_code" >conftest.$ac_ext 13283eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 13284_lt_linker_boilerplate=`cat conftest.err` 13285$rm conftest* 13286 13287 13288# Allow CC to be a program name with arguments. 13289lt_save_CC="$CC" 13290CC=${GCJ-"gcj"} 13291compiler=$CC 13292compiler_GCJ=$CC 13293for cc_temp in $compiler""; do 13294 case $cc_temp in 13295 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 13296 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 13297 \-*) ;; 13298 *) break;; 13299 esac 13300done 13301cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 13302 13303 13304# GCJ did not exist at the time GCC didn't implicitly link libc in. 13305archive_cmds_need_lc_GCJ=no 13306 13307old_archive_cmds_GCJ=$old_archive_cmds 13308 13309 13310lt_prog_compiler_no_builtin_flag_GCJ= 13311 13312if test "$GCC" = yes; then 13313 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' 13314 13315 13316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 13317$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 13318if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then : 13319 $as_echo_n "(cached) " >&6 13320else 13321 lt_cv_prog_compiler_rtti_exceptions=no 13322 ac_outfile=conftest.$ac_objext 13323 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 13324 lt_compiler_flag="-fno-rtti -fno-exceptions" 13325 # Insert the option either (1) after the last *FLAGS variable, or 13326 # (2) before a word containing "conftest.", or (3) at the end. 13327 # Note that $ac_compile itself does not contain backslashes and begins 13328 # with a dollar sign (not a hyphen), so the echo should work correctly. 13329 # The option is referenced via a variable to avoid confusing sed. 13330 lt_compile=`echo "$ac_compile" | $SED \ 13331 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13332 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13333 -e 's:$: $lt_compiler_flag:'` 13334 (eval echo "\"\$as_me:13334: $lt_compile\"" >&5) 13335 (eval "$lt_compile" 2>conftest.err) 13336 ac_status=$? 13337 cat conftest.err >&5 13338 echo "$as_me:13338: \$? = $ac_status" >&5 13339 if (exit $ac_status) && test -s "$ac_outfile"; then 13340 # The compiler can only warn and ignore the option if not recognized 13341 # So say no if there are warnings other than the usual output. 13342 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp 13343 $SED '/^$/d' conftest.err >conftest.er2 13344 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then 13345 lt_cv_prog_compiler_rtti_exceptions=yes 13346 fi 13347 fi 13348 $rm conftest* 13349 13350fi 13351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 13352$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 13353 13354if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 13355 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" 13356else 13357 : 13358fi 13359 13360fi 13361 13362lt_prog_compiler_wl_GCJ= 13363lt_prog_compiler_pic_GCJ= 13364lt_prog_compiler_static_GCJ= 13365 13366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 13367$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 13368 13369 if test "$GCC" = yes; then 13370 lt_prog_compiler_wl_GCJ='-Wl,' 13371 lt_prog_compiler_static_GCJ='-static' 13372 13373 case $host_os in 13374 aix*) 13375 # All AIX code is PIC. 13376 if test "$host_cpu" = ia64; then 13377 # AIX 5 now supports IA64 processor 13378 lt_prog_compiler_static_GCJ='-Bstatic' 13379 fi 13380 ;; 13381 13382 amigaos*) 13383 # FIXME: we need at least 68020 code to build shared libraries, but 13384 # adding the `-m68020' flag to GCC prevents building anything better, 13385 # like `-m68040'. 13386 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' 13387 ;; 13388 13389 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 13390 # PIC is the default for these OSes. 13391 ;; 13392 13393 mingw* | pw32* | os2*) 13394 # This hack is so that the source file can tell whether it is being 13395 # built for inclusion in a dll (and should export symbols for example). 13396 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 13397 ;; 13398 13399 darwin* | rhapsody*) 13400 # PIC is the default on this platform 13401 # Common symbols not allowed in MH_DYLIB files 13402 lt_prog_compiler_pic_GCJ='-fno-common' 13403 ;; 13404 13405 msdosdjgpp*) 13406 # Just because we use GCC doesn't mean we suddenly get shared libraries 13407 # on systems that don't support them. 13408 lt_prog_compiler_can_build_shared_GCJ=no 13409 enable_shared=no 13410 ;; 13411 13412 sysv4*MP*) 13413 if test -d /usr/nec; then 13414 lt_prog_compiler_pic_GCJ=-Kconform_pic 13415 fi 13416 ;; 13417 13418 hpux*) 13419 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 13420 # not for PA HP-UX. 13421 case $host_cpu in 13422 hppa*64*|ia64*) 13423 # +Z the default 13424 ;; 13425 *) 13426 lt_prog_compiler_pic_GCJ='-fPIC' 13427 ;; 13428 esac 13429 ;; 13430 13431 *) 13432 lt_prog_compiler_pic_GCJ='-fPIC' 13433 ;; 13434 esac 13435 else 13436 # PORTME Check for flag to pass linker flags through the system compiler. 13437 case $host_os in 13438 aix*) 13439 lt_prog_compiler_wl_GCJ='-Wl,' 13440 if test "$host_cpu" = ia64; then 13441 # AIX 5 now supports IA64 processor 13442 lt_prog_compiler_static_GCJ='-Bstatic' 13443 else 13444 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' 13445 fi 13446 ;; 13447 darwin*) 13448 # PIC is the default on this platform 13449 # Common symbols not allowed in MH_DYLIB files 13450 case $cc_basename in 13451 xlc*) 13452 lt_prog_compiler_pic_GCJ='-qnocommon' 13453 lt_prog_compiler_wl_GCJ='-Wl,' 13454 ;; 13455 esac 13456 ;; 13457 13458 mingw* | pw32* | os2*) 13459 # This hack is so that the source file can tell whether it is being 13460 # built for inclusion in a dll (and should export symbols for example). 13461 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 13462 ;; 13463 13464 hpux9* | hpux10* | hpux11*) 13465 lt_prog_compiler_wl_GCJ='-Wl,' 13466 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 13467 # not for PA HP-UX. 13468 case $host_cpu in 13469 hppa*64*|ia64*) 13470 # +Z the default 13471 ;; 13472 *) 13473 lt_prog_compiler_pic_GCJ='+Z' 13474 ;; 13475 esac 13476 # Is there a better lt_prog_compiler_static that works with the bundled CC? 13477 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' 13478 ;; 13479 13480 irix5* | irix6* | nonstopux*) 13481 lt_prog_compiler_wl_GCJ='-Wl,' 13482 # PIC (with -KPIC) is the default. 13483 lt_prog_compiler_static_GCJ='-non_shared' 13484 ;; 13485 13486 newsos6) 13487 lt_prog_compiler_pic_GCJ='-KPIC' 13488 lt_prog_compiler_static_GCJ='-Bstatic' 13489 ;; 13490 13491 linux*) 13492 case $cc_basename in 13493 icc* | ecc*) 13494 lt_prog_compiler_wl_GCJ='-Wl,' 13495 lt_prog_compiler_pic_GCJ='-KPIC' 13496 lt_prog_compiler_static_GCJ='-static' 13497 ;; 13498 pgcc* | pgf77* | pgf90* | pgf95*) 13499 # Portland Group compilers (*not* the Pentium gcc compiler, 13500 # which looks to be a dead project) 13501 lt_prog_compiler_wl_GCJ='-Wl,' 13502 lt_prog_compiler_pic_GCJ='-fpic' 13503 lt_prog_compiler_static_GCJ='-Bstatic' 13504 ;; 13505 ccc*) 13506 lt_prog_compiler_wl_GCJ='-Wl,' 13507 # All Alpha code is PIC. 13508 lt_prog_compiler_static_GCJ='-non_shared' 13509 ;; 13510 esac 13511 ;; 13512 13513 osf3* | osf4* | osf5*) 13514 lt_prog_compiler_wl_GCJ='-Wl,' 13515 # All OSF/1 code is PIC. 13516 lt_prog_compiler_static_GCJ='-non_shared' 13517 ;; 13518 13519 sco3.2v5*) 13520 lt_prog_compiler_pic_GCJ='-Kpic' 13521 lt_prog_compiler_static_GCJ='-dn' 13522 ;; 13523 13524 solaris*) 13525 lt_prog_compiler_pic_GCJ='-KPIC' 13526 lt_prog_compiler_static_GCJ='-Bstatic' 13527 case $cc_basename in 13528 f77* | f90* | f95*) 13529 lt_prog_compiler_wl_GCJ='-Qoption ld ';; 13530 *) 13531 lt_prog_compiler_wl_GCJ='-Wl,';; 13532 esac 13533 ;; 13534 13535 sunos4*) 13536 lt_prog_compiler_wl_GCJ='-Qoption ld ' 13537 lt_prog_compiler_pic_GCJ='-PIC' 13538 lt_prog_compiler_static_GCJ='-Bstatic' 13539 ;; 13540 13541 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 13542 lt_prog_compiler_wl_GCJ='-Wl,' 13543 lt_prog_compiler_pic_GCJ='-KPIC' 13544 lt_prog_compiler_static_GCJ='-Bstatic' 13545 ;; 13546 13547 sysv4*MP*) 13548 if test -d /usr/nec ;then 13549 lt_prog_compiler_pic_GCJ='-Kconform_pic' 13550 lt_prog_compiler_static_GCJ='-Bstatic' 13551 fi 13552 ;; 13553 13554 unicos*) 13555 lt_prog_compiler_wl_GCJ='-Wl,' 13556 lt_prog_compiler_can_build_shared_GCJ=no 13557 ;; 13558 13559 uts4*) 13560 lt_prog_compiler_pic_GCJ='-pic' 13561 lt_prog_compiler_static_GCJ='-Bstatic' 13562 ;; 13563 13564 *) 13565 lt_prog_compiler_can_build_shared_GCJ=no 13566 ;; 13567 esac 13568 fi 13569 13570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GCJ" >&5 13571$as_echo "$lt_prog_compiler_pic_GCJ" >&6; } 13572 13573# 13574# Check to make sure the PIC flag actually works. 13575# 13576if test -n "$lt_prog_compiler_pic_GCJ"; then 13577 13578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 13579$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; } 13580if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then : 13581 $as_echo_n "(cached) " >&6 13582else 13583 lt_prog_compiler_pic_works_GCJ=no 13584 ac_outfile=conftest.$ac_objext 13585 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 13586 lt_compiler_flag="$lt_prog_compiler_pic_GCJ" 13587 # Insert the option either (1) after the last *FLAGS variable, or 13588 # (2) before a word containing "conftest.", or (3) at the end. 13589 # Note that $ac_compile itself does not contain backslashes and begins 13590 # with a dollar sign (not a hyphen), so the echo should work correctly. 13591 # The option is referenced via a variable to avoid confusing sed. 13592 lt_compile=`echo "$ac_compile" | $SED \ 13593 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13594 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13595 -e 's:$: $lt_compiler_flag:'` 13596 (eval echo "\"\$as_me:13596: $lt_compile\"" >&5) 13597 (eval "$lt_compile" 2>conftest.err) 13598 ac_status=$? 13599 cat conftest.err >&5 13600 echo "$as_me:13600: \$? = $ac_status" >&5 13601 if (exit $ac_status) && test -s "$ac_outfile"; then 13602 # The compiler can only warn and ignore the option if not recognized 13603 # So say no if there are warnings other than the usual output. 13604 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp 13605 $SED '/^$/d' conftest.err >conftest.er2 13606 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then 13607 lt_prog_compiler_pic_works_GCJ=yes 13608 fi 13609 fi 13610 $rm conftest* 13611 13612fi 13613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_works_GCJ" >&5 13614$as_echo "$lt_prog_compiler_pic_works_GCJ" >&6; } 13615 13616if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then 13617 case $lt_prog_compiler_pic_GCJ in 13618 "" | " "*) ;; 13619 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; 13620 esac 13621else 13622 lt_prog_compiler_pic_GCJ= 13623 lt_prog_compiler_can_build_shared_GCJ=no 13624fi 13625 13626fi 13627case $host_os in 13628 # For platforms which do not support PIC, -DPIC is meaningless: 13629 *djgpp*) 13630 lt_prog_compiler_pic_GCJ= 13631 ;; 13632 *) 13633 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" 13634 ;; 13635esac 13636 13637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 13638$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 13639if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then : 13640 $as_echo_n "(cached) " >&6 13641else 13642 lt_cv_prog_compiler_c_o_GCJ=no 13643 $rm -r conftest 2>/dev/null 13644 mkdir conftest 13645 cd conftest 13646 mkdir out 13647 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 13648 13649 lt_compiler_flag="-o out/conftest2.$ac_objext" 13650 # Insert the option either (1) after the last *FLAGS variable, or 13651 # (2) before a word containing "conftest.", or (3) at the end. 13652 # Note that $ac_compile itself does not contain backslashes and begins 13653 # with a dollar sign (not a hyphen), so the echo should work correctly. 13654 lt_compile=`echo "$ac_compile" | $SED \ 13655 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13656 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13657 -e 's:$: $lt_compiler_flag:'` 13658 (eval echo "\"\$as_me:13658: $lt_compile\"" >&5) 13659 (eval "$lt_compile" 2>out/conftest.err) 13660 ac_status=$? 13661 cat out/conftest.err >&5 13662 echo "$as_me:13662: \$? = $ac_status" >&5 13663 if (exit $ac_status) && test -s out/conftest2.$ac_objext 13664 then 13665 # The compiler can only warn and ignore the option if not recognized 13666 # So say no if there are warnings 13667 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp 13668 $SED '/^$/d' out/conftest.err >out/conftest.er2 13669 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then 13670 lt_cv_prog_compiler_c_o_GCJ=yes 13671 fi 13672 fi 13673 chmod u+w . 2>&5 13674 $rm conftest* 13675 # SGI C++ compiler will create directory out/ii_files/ for 13676 # template instantiation 13677 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 13678 $rm out/* && rmdir out 13679 cd .. 13680 rmdir conftest 13681 $rm conftest* 13682 13683fi 13684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 13685$as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; } 13686 13687 13688hard_links="nottested" 13689if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then 13690 # do not overwrite the value of need_locks provided by the user 13691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 13692$as_echo_n "checking if we can lock with hard links... " >&6; } 13693 hard_links=yes 13694 $rm conftest* 13695 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13696 touch conftest.a 13697 ln conftest.a conftest.b 2>&5 || hard_links=no 13698 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 13700$as_echo "$hard_links" >&6; } 13701 if test "$hard_links" = no; then 13702 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 13703$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 13704 need_locks=warn 13705 fi 13706else 13707 need_locks=no 13708fi 13709 13710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 13711$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 13712 13713 runpath_var= 13714 allow_undefined_flag_GCJ= 13715 enable_shared_with_static_runtimes_GCJ=no 13716 archive_cmds_GCJ= 13717 archive_expsym_cmds_GCJ= 13718 old_archive_From_new_cmds_GCJ= 13719 old_archive_from_expsyms_cmds_GCJ= 13720 export_dynamic_flag_spec_GCJ= 13721 whole_archive_flag_spec_GCJ= 13722 thread_safe_flag_spec_GCJ= 13723 hardcode_libdir_flag_spec_GCJ= 13724 hardcode_libdir_flag_spec_ld_GCJ= 13725 hardcode_libdir_separator_GCJ= 13726 hardcode_direct_GCJ=no 13727 hardcode_minus_L_GCJ=no 13728 hardcode_shlibpath_var_GCJ=unsupported 13729 link_all_deplibs_GCJ=unknown 13730 hardcode_automatic_GCJ=no 13731 module_cmds_GCJ= 13732 module_expsym_cmds_GCJ= 13733 always_export_symbols_GCJ=no 13734 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 13735 # include_expsyms should be a list of space-separated symbols to be *always* 13736 # included in the symbol list 13737 include_expsyms_GCJ= 13738 # exclude_expsyms can be an extended regexp of symbols to exclude 13739 # it will be wrapped by ` (' and `)$', so one must not match beginning or 13740 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 13741 # as well as any symbol that contains `d'. 13742 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" 13743 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 13744 # platforms (ab)use it in PIC code, but their linkers get confused if 13745 # the symbol is explicitly referenced. Since portable code cannot 13746 # rely on this symbol name, it's probably fine to never include it in 13747 # preloaded symbol tables. 13748 extract_expsyms_cmds= 13749 # Just being paranoid about ensuring that cc_basename is set. 13750 for cc_temp in $compiler""; do 13751 case $cc_temp in 13752 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 13753 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 13754 \-*) ;; 13755 *) break;; 13756 esac 13757done 13758cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 13759 13760 case $host_os in 13761 cygwin* | mingw* | pw32*) 13762 # FIXME: the MSVC++ port hasn't been tested in a loooong time 13763 # When not using gcc, we currently assume that we are using 13764 # Microsoft Visual C++. 13765 if test "$GCC" != yes; then 13766 with_gnu_ld=no 13767 fi 13768 ;; 13769 openbsd*) 13770 with_gnu_ld=no 13771 ;; 13772 esac 13773 13774 ld_shlibs_GCJ=yes 13775 if test "$with_gnu_ld" = yes; then 13776 # If archive_cmds runs LD, not CC, wlarc should be empty 13777 wlarc='${wl}' 13778 13779 # Set some defaults for GNU ld with shared library support. These 13780 # are reset later if shared libraries are not supported. Putting them 13781 # here allows them to be overridden if necessary. 13782 runpath_var=LD_RUN_PATH 13783 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' 13784 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' 13785 # ancient GNU ld didn't support --whole-archive et. al. 13786 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 13787 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 13788 else 13789 whole_archive_flag_spec_GCJ= 13790 fi 13791 supports_anon_versioning=no 13792 case `$LD -v 2>/dev/null` in 13793 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 13794 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 13795 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 13796 *\ 2.11.*) ;; # other 2.11 versions 13797 *) supports_anon_versioning=yes ;; 13798 esac 13799 13800 # See if GNU ld supports shared libraries. 13801 case $host_os in 13802 aix3* | aix4* | aix5*) 13803 # On AIX/PPC, the GNU linker is very broken 13804 if test "$host_cpu" != ia64; then 13805 ld_shlibs_GCJ=no 13806 cat <<EOF 1>&2 13807 13808*** Warning: the GNU linker, at least up to release 2.9.1, is reported 13809*** to be unable to reliably create shared libraries on AIX. 13810*** Therefore, libtool is disabling shared libraries support. If you 13811*** really care for shared libraries, you may want to modify your PATH 13812*** so that a non-GNU linker is found, and then restart. 13813 13814EOF 13815 fi 13816 ;; 13817 13818 amigaos*) 13819 archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' 13820 hardcode_libdir_flag_spec_GCJ='-L$libdir' 13821 hardcode_minus_L_GCJ=yes 13822 13823 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 13824 # that the semantics of dynamic libraries on AmigaOS, at least up 13825 # to version 4, is to share data among multiple programs linked 13826 # with the same dynamic library. Since this doesn't match the 13827 # behavior of shared libraries on other platforms, we can't use 13828 # them. 13829 ld_shlibs_GCJ=no 13830 ;; 13831 13832 beos*) 13833 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 13834 allow_undefined_flag_GCJ=unsupported 13835 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 13836 # support --undefined. This deserves some investigation. FIXME 13837 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13838 else 13839 ld_shlibs_GCJ=no 13840 fi 13841 ;; 13842 13843 cygwin* | mingw* | pw32*) 13844 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, 13845 # as there is no search path for DLLs. 13846 hardcode_libdir_flag_spec_GCJ='-L$libdir' 13847 allow_undefined_flag_GCJ=unsupported 13848 always_export_symbols_GCJ=no 13849 enable_shared_with_static_runtimes_GCJ=yes 13850 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 13851 13852 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 13853 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 13854 # If the export-symbols file already is a .def file (1st line 13855 # is EXPORTS), use it as is; otherwise, prepend... 13856 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 13857 cp $export_symbols $output_objdir/$soname.def; 13858 else 13859 echo EXPORTS > $output_objdir/$soname.def; 13860 cat $export_symbols >> $output_objdir/$soname.def; 13861 fi~ 13862 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 13863 else 13864 ld_shlibs_GCJ=no 13865 fi 13866 ;; 13867 13868 linux*) 13869 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 13870 tmp_addflag= 13871 case $cc_basename,$host_cpu in 13872 pgcc*) # Portland Group C compiler 13873 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 13874 tmp_addflag=' $pic_flag' 13875 ;; 13876 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 13877 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 13878 tmp_addflag=' $pic_flag -Mnomain' ;; 13879 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 13880 tmp_addflag=' -i_dynamic' ;; 13881 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 13882 tmp_addflag=' -i_dynamic -nofor_main' ;; 13883 ifc* | ifort*) # Intel Fortran compiler 13884 tmp_addflag=' -nofor_main' ;; 13885 esac 13886 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13887 13888 if test $supports_anon_versioning = yes; then 13889 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ 13890 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 13891 $echo "local: *; };" >> $output_objdir/$libname.ver~ 13892 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 13893 fi 13894 else 13895 ld_shlibs_GCJ=no 13896 fi 13897 ;; 13898 13899 netbsd*) 13900 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 13901 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 13902 wlarc= 13903 else 13904 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13905 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 13906 fi 13907 ;; 13908 13909 solaris* | sysv5*) 13910 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 13911 ld_shlibs_GCJ=no 13912 cat <<EOF 1>&2 13913 13914*** Warning: The releases 2.8.* of the GNU linker cannot reliably 13915*** create shared libraries on Solaris systems. Therefore, libtool 13916*** is disabling shared libraries support. We urge you to upgrade GNU 13917*** binutils to release 2.9.1 or newer. Another option is to modify 13918*** your PATH or compiler configuration so that the native linker is 13919*** used, and then restart. 13920 13921EOF 13922 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 13923 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13924 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 13925 else 13926 ld_shlibs_GCJ=no 13927 fi 13928 ;; 13929 13930 sunos4*) 13931 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 13932 wlarc= 13933 hardcode_direct_GCJ=yes 13934 hardcode_shlibpath_var_GCJ=no 13935 ;; 13936 13937 *) 13938 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 13939 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13940 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 13941 else 13942 ld_shlibs_GCJ=no 13943 fi 13944 ;; 13945 esac 13946 13947 if test "$ld_shlibs_GCJ" = no; then 13948 runpath_var= 13949 hardcode_libdir_flag_spec_GCJ= 13950 export_dynamic_flag_spec_GCJ= 13951 whole_archive_flag_spec_GCJ= 13952 fi 13953 else 13954 # PORTME fill in a description of your system's linker (not GNU ld) 13955 case $host_os in 13956 aix3*) 13957 allow_undefined_flag_GCJ=unsupported 13958 always_export_symbols_GCJ=yes 13959 archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' 13960 # Note: this linker hardcodes the directories in LIBPATH if there 13961 # are no directories specified by -L. 13962 hardcode_minus_L_GCJ=yes 13963 if test "$GCC" = yes && test -z "$link_static_flag"; then 13964 # Neither direct hardcoding nor static linking is supported with a 13965 # broken collect2. 13966 hardcode_direct_GCJ=unsupported 13967 fi 13968 ;; 13969 13970 aix4* | aix5*) 13971 if test "$host_cpu" = ia64; then 13972 # On IA64, the linker does run time linking by default, so we don't 13973 # have to do anything special. 13974 aix_use_runtimelinking=no 13975 exp_sym_flag='-Bexport' 13976 no_entry_flag="" 13977 else 13978 # If we're using GNU nm, then we don't want the "-C" option. 13979 # -C means demangle to AIX nm, but means don't demangle with GNU nm 13980 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 13981 export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' 13982 else 13983 export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' 13984 fi 13985 aix_use_runtimelinking=no 13986 13987 # Test if we are trying to use run time linking or normal 13988 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 13989 # need to do runtime linking. 13990 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 13991 for ld_flag in $LDFLAGS; do 13992 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 13993 aix_use_runtimelinking=yes 13994 break 13995 fi 13996 done 13997 esac 13998 13999 exp_sym_flag='-bexport' 14000 no_entry_flag='-bnoentry' 14001 fi 14002 14003 # When large executables or shared objects are built, AIX ld can 14004 # have problems creating the table of contents. If linking a library 14005 # or program results in "error TOC overflow" add -mminimal-toc to 14006 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 14007 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 14008 14009 archive_cmds_GCJ='' 14010 hardcode_direct_GCJ=yes 14011 hardcode_libdir_separator_GCJ=':' 14012 link_all_deplibs_GCJ=yes 14013 14014 if test "$GCC" = yes; then 14015 case $host_os in aix4.[012]|aix4.[012].*) 14016 # We only want to do this on AIX 4.2 and lower, the check 14017 # below for broken collect2 doesn't work under 4.3+ 14018 collect2name=`${CC} -print-prog-name=collect2` 14019 if test -f "$collect2name" && \ 14020 strings "$collect2name" | grep resolve_lib_name >/dev/null 14021 then 14022 # We have reworked collect2 14023 hardcode_direct_GCJ=yes 14024 else 14025 # We have old collect2 14026 hardcode_direct_GCJ=unsupported 14027 # It fails to find uninstalled libraries when the uninstalled 14028 # path is not listed in the libpath. Setting hardcode_minus_L 14029 # to unsupported forces relinking 14030 hardcode_minus_L_GCJ=yes 14031 hardcode_libdir_flag_spec_GCJ='-L$libdir' 14032 hardcode_libdir_separator_GCJ= 14033 fi 14034 esac 14035 shared_flag='-shared' 14036 if test "$aix_use_runtimelinking" = yes; then 14037 shared_flag="$shared_flag "'${wl}-G' 14038 fi 14039 else 14040 # not using gcc 14041 if test "$host_cpu" = ia64; then 14042 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 14043 # chokes on -Wl,-G. The following line is correct: 14044 shared_flag='-G' 14045 else 14046 if test "$aix_use_runtimelinking" = yes; then 14047 shared_flag='${wl}-G' 14048 else 14049 shared_flag='${wl}-bM:SRE' 14050 fi 14051 fi 14052 fi 14053 14054 # It seems that -bexpall does not export symbols beginning with 14055 # underscore (_), so it is better to generate a list of symbols to export. 14056 always_export_symbols_GCJ=yes 14057 if test "$aix_use_runtimelinking" = yes; then 14058 # Warning - without using the other runtime loading flags (-brtl), 14059 # -berok will link without error, but may produce a broken library. 14060 allow_undefined_flag_GCJ='-berok' 14061 # Determine the default libpath from the value encoded in an empty executable. 14062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14063/* end confdefs.h. */ 14064 14065int 14066main () 14067{ 14068 14069 ; 14070 return 0; 14071} 14072_ACEOF 14073if ac_fn_c_try_link "$LINENO"; then : 14074 14075aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 14076}'` 14077# Check for a 64-bit object if we didn't find anything. 14078if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 14079}'`; fi 14080fi 14081rm -f core conftest.err conftest.$ac_objext \ 14082 conftest$ac_exeext conftest.$ac_ext 14083if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 14084 14085 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 14086 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" 14087 else 14088 if test "$host_cpu" = ia64; then 14089 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' 14090 allow_undefined_flag_GCJ="-z nodefs" 14091 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" 14092 else 14093 # Determine the default libpath from the value encoded in an empty executable. 14094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14095/* end confdefs.h. */ 14096 14097int 14098main () 14099{ 14100 14101 ; 14102 return 0; 14103} 14104_ACEOF 14105if ac_fn_c_try_link "$LINENO"; then : 14106 14107aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 14108}'` 14109# Check for a 64-bit object if we didn't find anything. 14110if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 14111}'`; fi 14112fi 14113rm -f core conftest.err conftest.$ac_objext \ 14114 conftest$ac_exeext conftest.$ac_ext 14115if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 14116 14117 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 14118 # Warning - without using the other run time loading flags, 14119 # -berok will link without error, but may produce a broken library. 14120 no_undefined_flag_GCJ=' ${wl}-bernotok' 14121 allow_undefined_flag_GCJ=' ${wl}-berok' 14122 # -bexpall does not export symbols beginning with underscore (_) 14123 always_export_symbols_GCJ=yes 14124 # Exported symbols can be pulled into shared objects from archives 14125 whole_archive_flag_spec_GCJ=' ' 14126 archive_cmds_need_lc_GCJ=yes 14127 # This is similar to how AIX traditionally builds its shared libraries. 14128 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 14129 fi 14130 fi 14131 ;; 14132 14133 amigaos*) 14134 archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' 14135 hardcode_libdir_flag_spec_GCJ='-L$libdir' 14136 hardcode_minus_L_GCJ=yes 14137 # see comment about different semantics on the GNU ld section 14138 ld_shlibs_GCJ=no 14139 ;; 14140 14141 bsdi[45]*) 14142 export_dynamic_flag_spec_GCJ=-rdynamic 14143 ;; 14144 14145 cygwin* | mingw* | pw32*) 14146 # When not using gcc, we currently assume that we are using 14147 # Microsoft Visual C++. 14148 # hardcode_libdir_flag_spec is actually meaningless, as there is 14149 # no search path for DLLs. 14150 hardcode_libdir_flag_spec_GCJ=' ' 14151 allow_undefined_flag_GCJ=unsupported 14152 # Tell ltmain to make .lib files, not .a files. 14153 libext=lib 14154 # Tell ltmain to make .dll files, not .so files. 14155 shrext_cmds=".dll" 14156 # FIXME: Setting linknames here is a bad hack. 14157 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 14158 # The linker will automatically build a .lib file if we build a DLL. 14159 old_archive_From_new_cmds_GCJ='true' 14160 # FIXME: Should let the user specify the lib program. 14161 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' 14162 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' 14163 enable_shared_with_static_runtimes_GCJ=yes 14164 ;; 14165 14166 darwin* | rhapsody*) 14167 case $host_os in 14168 rhapsody* | darwin1.[012]) 14169 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' 14170 ;; 14171 *) # Darwin 1.3 on 14172 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 14173 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 14174 else 14175 case ${MACOSX_DEPLOYMENT_TARGET} in 14176 10.[012]) 14177 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 14178 ;; 14179 10.*) 14180 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' 14181 ;; 14182 esac 14183 fi 14184 ;; 14185 esac 14186 archive_cmds_need_lc_GCJ=no 14187 hardcode_direct_GCJ=no 14188 hardcode_automatic_GCJ=yes 14189 hardcode_shlibpath_var_GCJ=unsupported 14190 whole_archive_flag_spec_GCJ='' 14191 link_all_deplibs_GCJ=yes 14192 if test "$GCC" = yes ; then 14193 output_verbose_link_cmd='echo' 14194 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 14195 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 14196 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 14197 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 14198 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 14199 else 14200 case $cc_basename in 14201 xlc*) 14202 output_verbose_link_cmd='echo' 14203 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 14204 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 14205 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 14206 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 14207 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 14208 ;; 14209 *) 14210 ld_shlibs_GCJ=no 14211 ;; 14212 esac 14213 fi 14214 ;; 14215 14216 dgux*) 14217 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14218 hardcode_libdir_flag_spec_GCJ='-L$libdir' 14219 hardcode_shlibpath_var_GCJ=no 14220 ;; 14221 14222 freebsd1*) 14223 ld_shlibs_GCJ=no 14224 ;; 14225 14226 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 14227 # support. Future versions do this automatically, but an explicit c++rt0.o 14228 # does not break anything, and helps significantly (at the cost of a little 14229 # extra space). 14230 freebsd2.2*) 14231 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 14232 hardcode_libdir_flag_spec_GCJ='-R$libdir' 14233 hardcode_direct_GCJ=yes 14234 hardcode_shlibpath_var_GCJ=no 14235 ;; 14236 14237 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 14238 freebsd2*) 14239 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14240 hardcode_direct_GCJ=yes 14241 hardcode_minus_L_GCJ=yes 14242 hardcode_shlibpath_var_GCJ=no 14243 ;; 14244 14245 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 14246 freebsd* | kfreebsd*-gnu | dragonfly*) 14247 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 14248 hardcode_libdir_flag_spec_GCJ='-R$libdir' 14249 hardcode_direct_GCJ=yes 14250 hardcode_shlibpath_var_GCJ=no 14251 ;; 14252 14253 hpux9*) 14254 if test "$GCC" = yes; then 14255 archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 14256 else 14257 archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 14258 fi 14259 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 14260 hardcode_libdir_separator_GCJ=: 14261 hardcode_direct_GCJ=yes 14262 14263 # hardcode_minus_L: Not really in the search PATH, 14264 # but as the default location of the library. 14265 hardcode_minus_L_GCJ=yes 14266 export_dynamic_flag_spec_GCJ='${wl}-E' 14267 ;; 14268 14269 hpux10* | hpux11*) 14270 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 14271 case $host_cpu in 14272 hppa*64*|ia64*) 14273 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14274 ;; 14275 *) 14276 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 14277 ;; 14278 esac 14279 else 14280 case $host_cpu in 14281 hppa*64*|ia64*) 14282 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' 14283 ;; 14284 *) 14285 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 14286 ;; 14287 esac 14288 fi 14289 if test "$with_gnu_ld" = no; then 14290 case $host_cpu in 14291 hppa*64*) 14292 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 14293 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' 14294 hardcode_libdir_separator_GCJ=: 14295 hardcode_direct_GCJ=no 14296 hardcode_shlibpath_var_GCJ=no 14297 ;; 14298 ia64*) 14299 hardcode_libdir_flag_spec_GCJ='-L$libdir' 14300 hardcode_direct_GCJ=no 14301 hardcode_shlibpath_var_GCJ=no 14302 14303 # hardcode_minus_L: Not really in the search PATH, 14304 # but as the default location of the library. 14305 hardcode_minus_L_GCJ=yes 14306 ;; 14307 *) 14308 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 14309 hardcode_libdir_separator_GCJ=: 14310 hardcode_direct_GCJ=yes 14311 export_dynamic_flag_spec_GCJ='${wl}-E' 14312 14313 # hardcode_minus_L: Not really in the search PATH, 14314 # but as the default location of the library. 14315 hardcode_minus_L_GCJ=yes 14316 ;; 14317 esac 14318 fi 14319 ;; 14320 14321 irix5* | irix6* | nonstopux*) 14322 if test "$GCC" = yes; then 14323 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 14324 else 14325 archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 14326 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' 14327 fi 14328 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 14329 hardcode_libdir_separator_GCJ=: 14330 link_all_deplibs_GCJ=yes 14331 ;; 14332 14333 netbsd*) 14334 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 14335 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 14336 else 14337 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 14338 fi 14339 hardcode_libdir_flag_spec_GCJ='-R$libdir' 14340 hardcode_direct_GCJ=yes 14341 hardcode_shlibpath_var_GCJ=no 14342 ;; 14343 14344 newsos6) 14345 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14346 hardcode_direct_GCJ=yes 14347 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 14348 hardcode_libdir_separator_GCJ=: 14349 hardcode_shlibpath_var_GCJ=no 14350 ;; 14351 14352 openbsd*) 14353 hardcode_direct_GCJ=yes 14354 hardcode_shlibpath_var_GCJ=no 14355 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 14356 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 14357 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 14358 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 14359 export_dynamic_flag_spec_GCJ='${wl}-E' 14360 else 14361 case $host_os in 14362 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 14363 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14364 hardcode_libdir_flag_spec_GCJ='-R$libdir' 14365 ;; 14366 *) 14367 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 14368 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 14369 ;; 14370 esac 14371 fi 14372 ;; 14373 14374 os2*) 14375 hardcode_libdir_flag_spec_GCJ='-L$libdir' 14376 hardcode_minus_L_GCJ=yes 14377 allow_undefined_flag_GCJ=unsupported 14378 archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' 14379 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 14380 ;; 14381 14382 osf3*) 14383 if test "$GCC" = yes; then 14384 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 14385 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 14386 else 14387 allow_undefined_flag_GCJ=' -expect_unresolved \*' 14388 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 14389 fi 14390 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 14391 hardcode_libdir_separator_GCJ=: 14392 ;; 14393 14394 osf4* | osf5*) # as osf3* with the addition of -msym flag 14395 if test "$GCC" = yes; then 14396 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 14397 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 14398 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 14399 else 14400 allow_undefined_flag_GCJ=' -expect_unresolved \*' 14401 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 14402 archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 14403 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' 14404 14405 # Both c and cxx compiler support -rpath directly 14406 hardcode_libdir_flag_spec_GCJ='-rpath $libdir' 14407 fi 14408 hardcode_libdir_separator_GCJ=: 14409 ;; 14410 14411 sco3.2v5*) 14412 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14413 hardcode_shlibpath_var_GCJ=no 14414 export_dynamic_flag_spec_GCJ='${wl}-Bexport' 14415 runpath_var=LD_RUN_PATH 14416 hardcode_runpath_var=yes 14417 ;; 14418 14419 solaris*) 14420 no_undefined_flag_GCJ=' -z text' 14421 if test "$GCC" = yes; then 14422 wlarc='${wl}' 14423 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14424 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 14425 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 14426 else 14427 wlarc='' 14428 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 14429 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 14430 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 14431 fi 14432 hardcode_libdir_flag_spec_GCJ='-R$libdir' 14433 hardcode_shlibpath_var_GCJ=no 14434 case $host_os in 14435 solaris2.[0-5] | solaris2.[0-5].*) ;; 14436 *) 14437 # The compiler driver will combine linker options so we 14438 # cannot just pass the convience library names through 14439 # without $wl, iff we do not link with $LD. 14440 # Luckily, gcc supports the same syntax we need for Sun Studio. 14441 # Supported since Solaris 2.6 (maybe 2.5.1?) 14442 case $wlarc in 14443 '') 14444 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; 14445 *) 14446 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; 14447 esac ;; 14448 esac 14449 link_all_deplibs_GCJ=yes 14450 ;; 14451 14452 sunos4*) 14453 if test "x$host_vendor" = xsequent; then 14454 # Use $CC to link under sequent, because it throws in some extra .o 14455 # files that make .init and .fini sections work. 14456 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 14457 else 14458 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 14459 fi 14460 hardcode_libdir_flag_spec_GCJ='-L$libdir' 14461 hardcode_direct_GCJ=yes 14462 hardcode_minus_L_GCJ=yes 14463 hardcode_shlibpath_var_GCJ=no 14464 ;; 14465 14466 sysv4) 14467 case $host_vendor in 14468 sni) 14469 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14470 hardcode_direct_GCJ=yes # is this really true??? 14471 ;; 14472 siemens) 14473 ## LD is ld it makes a PLAMLIB 14474 ## CC just makes a GrossModule. 14475 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' 14476 reload_cmds_GCJ='$CC -r -o $output$reload_objs' 14477 hardcode_direct_GCJ=no 14478 ;; 14479 motorola) 14480 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14481 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie 14482 ;; 14483 esac 14484 runpath_var='LD_RUN_PATH' 14485 hardcode_shlibpath_var_GCJ=no 14486 ;; 14487 14488 sysv4.3*) 14489 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14490 hardcode_shlibpath_var_GCJ=no 14491 export_dynamic_flag_spec_GCJ='-Bexport' 14492 ;; 14493 14494 sysv4*MP*) 14495 if test -d /usr/nec; then 14496 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14497 hardcode_shlibpath_var_GCJ=no 14498 runpath_var=LD_RUN_PATH 14499 hardcode_runpath_var=yes 14500 ld_shlibs_GCJ=yes 14501 fi 14502 ;; 14503 14504 sysv4.2uw2*) 14505 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' 14506 hardcode_direct_GCJ=yes 14507 hardcode_minus_L_GCJ=no 14508 hardcode_shlibpath_var_GCJ=no 14509 hardcode_runpath_var=yes 14510 runpath_var=LD_RUN_PATH 14511 ;; 14512 14513 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) 14514 no_undefined_flag_GCJ='${wl}-z ${wl}text' 14515 if test "$GCC" = yes; then 14516 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14517 else 14518 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14519 fi 14520 runpath_var='LD_RUN_PATH' 14521 hardcode_shlibpath_var_GCJ=no 14522 ;; 14523 14524 sysv5*) 14525 no_undefined_flag_GCJ=' -z text' 14526 # $CC -shared without GNU ld will not create a library from C++ 14527 # object files and a static libstdc++, better avoid it by now 14528 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 14529 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 14530 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 14531 hardcode_libdir_flag_spec_GCJ= 14532 hardcode_shlibpath_var_GCJ=no 14533 runpath_var='LD_RUN_PATH' 14534 ;; 14535 14536 uts4*) 14537 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14538 hardcode_libdir_flag_spec_GCJ='-L$libdir' 14539 hardcode_shlibpath_var_GCJ=no 14540 ;; 14541 14542 *) 14543 ld_shlibs_GCJ=no 14544 ;; 14545 esac 14546 fi 14547 14548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GCJ" >&5 14549$as_echo "$ld_shlibs_GCJ" >&6; } 14550test "$ld_shlibs_GCJ" = no && can_build_shared=no 14551 14552variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 14553if test "$GCC" = yes; then 14554 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 14555fi 14556 14557# 14558# Do we need to explicitly link libc? 14559# 14560case "x$archive_cmds_need_lc_GCJ" in 14561x|xyes) 14562 # Assume -lc should be added 14563 archive_cmds_need_lc_GCJ=yes 14564 14565 if test "$enable_shared" = yes && test "$GCC" = yes; then 14566 case $archive_cmds_GCJ in 14567 *'~'*) 14568 # FIXME: we may have to deal with multi-command sequences. 14569 ;; 14570 '$CC '*) 14571 # Test whether the compiler implicitly links with -lc since on some 14572 # systems, -lgcc has to come before -lc. If gcc already passes -lc 14573 # to ld, don't add -lc before -lgcc. 14574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 14575$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 14576 $rm conftest* 14577 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 14578 14579 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14580 (eval $ac_compile) 2>&5 14581 ac_status=$? 14582 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14583 test $ac_status = 0; } 2>conftest.err; then 14584 soname=conftest 14585 lib=conftest 14586 libobjs=conftest.$ac_objext 14587 deplibs= 14588 wl=$lt_prog_compiler_wl_GCJ 14589 compiler_flags=-v 14590 linker_flags=-v 14591 verstring= 14592 output_objdir=. 14593 libname=conftest 14594 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ 14595 allow_undefined_flag_GCJ= 14596 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5 14597 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 14598 ac_status=$? 14599 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14600 test $ac_status = 0; } 14601 then 14602 archive_cmds_need_lc_GCJ=no 14603 else 14604 archive_cmds_need_lc_GCJ=yes 14605 fi 14606 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag 14607 else 14608 cat conftest.err 1>&5 14609 fi 14610 $rm conftest* 14611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_GCJ" >&5 14612$as_echo "$archive_cmds_need_lc_GCJ" >&6; } 14613 ;; 14614 esac 14615 fi 14616 ;; 14617esac 14618 14619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 14620$as_echo_n "checking dynamic linker characteristics... " >&6; } 14621library_names_spec= 14622libname_spec='lib$name' 14623soname_spec= 14624shrext_cmds=".so" 14625postinstall_cmds= 14626postuninstall_cmds= 14627finish_cmds= 14628finish_eval= 14629shlibpath_var= 14630shlibpath_overrides_runpath=unknown 14631version_type=none 14632dynamic_linker="$host_os ld.so" 14633sys_lib_dlsearch_path_spec="/lib /usr/lib" 14634if test "$GCC" = yes; then 14635 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 14636 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 14637 # if the path contains ";" then we assume it to be the separator 14638 # otherwise default to the standard path separator (i.e. ":") - it is 14639 # assumed that no part of a normal pathname contains ";" but that should 14640 # okay in the real world where ";" in dirpaths is itself problematic. 14641 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 14642 else 14643 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 14644 fi 14645else 14646 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 14647fi 14648need_lib_prefix=unknown 14649hardcode_into_libs=no 14650 14651# when you set need_version to no, make sure it does not cause -set_version 14652# flags to be left without arguments 14653need_version=unknown 14654 14655case $host_os in 14656aix3*) 14657 version_type=linux 14658 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 14659 shlibpath_var=LIBPATH 14660 14661 # AIX 3 has no versioning support, so we append a major version to the name. 14662 soname_spec='${libname}${release}${shared_ext}$major' 14663 ;; 14664 14665aix4* | aix5*) 14666 version_type=linux 14667 need_lib_prefix=no 14668 need_version=no 14669 hardcode_into_libs=yes 14670 if test "$host_cpu" = ia64; then 14671 # AIX 5 supports IA64 14672 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 14673 shlibpath_var=LD_LIBRARY_PATH 14674 else 14675 # With GCC up to 2.95.x, collect2 would create an import file 14676 # for dependence libraries. The import file would start with 14677 # the line `#! .'. This would cause the generated library to 14678 # depend on `.', always an invalid library. This was fixed in 14679 # development snapshots of GCC prior to 3.0. 14680 case $host_os in 14681 aix4 | aix4.[01] | aix4.[01].*) 14682 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 14683 echo ' yes ' 14684 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 14685 : 14686 else 14687 can_build_shared=no 14688 fi 14689 ;; 14690 esac 14691 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 14692 # soname into executable. Probably we can add versioning support to 14693 # collect2, so additional links can be useful in future. 14694 if test "$aix_use_runtimelinking" = yes; then 14695 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 14696 # instead of lib<name>.a to let people know that these are not 14697 # typical AIX shared libraries. 14698 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14699 else 14700 # We preserve .a as extension for shared libraries through AIX4.2 14701 # and later when we are not doing run time linking. 14702 library_names_spec='${libname}${release}.a $libname.a' 14703 soname_spec='${libname}${release}${shared_ext}$major' 14704 fi 14705 shlibpath_var=LIBPATH 14706 fi 14707 ;; 14708 14709amigaos*) 14710 library_names_spec='$libname.ixlibrary $libname.a' 14711 # Create ${libname}_ixlibrary.a entries in /sys/libs. 14712 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 14713 ;; 14714 14715beos*) 14716 library_names_spec='${libname}${shared_ext}' 14717 dynamic_linker="$host_os ld.so" 14718 shlibpath_var=LIBRARY_PATH 14719 ;; 14720 14721bsdi[45]*) 14722 version_type=linux 14723 need_version=no 14724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14725 soname_spec='${libname}${release}${shared_ext}$major' 14726 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 14727 shlibpath_var=LD_LIBRARY_PATH 14728 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 14729 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 14730 # the default ld.so.conf also contains /usr/contrib/lib and 14731 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 14732 # libtool to hard-code these into programs 14733 ;; 14734 14735cygwin* | mingw* | pw32*) 14736 version_type=windows 14737 shrext_cmds=".dll" 14738 need_version=no 14739 need_lib_prefix=no 14740 14741 case $GCC,$host_os in 14742 yes,cygwin* | yes,mingw* | yes,pw32*) 14743 library_names_spec='$libname.dll.a' 14744 # DLL is installed to $(libdir)/../bin by postinstall_cmds 14745 postinstall_cmds='base_file=`basename \${file}`~ 14746 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 14747 dldir=$destdir/`dirname \$dlpath`~ 14748 test -d \$dldir || mkdir -p \$dldir~ 14749 $install_prog $dir/$dlname \$dldir/$dlname~ 14750 chmod a+x \$dldir/$dlname' 14751 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 14752 dlpath=$dir/\$dldll~ 14753 $rm \$dlpath' 14754 shlibpath_overrides_runpath=yes 14755 14756 case $host_os in 14757 cygwin*) 14758 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 14759 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14760 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 14761 ;; 14762 mingw*) 14763 # MinGW DLLs use traditional 'lib' prefix 14764 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14765 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 14766 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 14767 # It is most probably a Windows format PATH printed by 14768 # mingw gcc, but we are running on Cygwin. Gcc prints its search 14769 # path with ; separators, and with drive letters. We can handle the 14770 # drive letters (cygwin fileutils understands them), so leave them, 14771 # especially as we might pass files found there to a mingw objdump, 14772 # which wouldn't understand a cygwinified path. Ahh. 14773 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 14774 else 14775 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 14776 fi 14777 ;; 14778 pw32*) 14779 # pw32 DLLs use 'pw' prefix rather than 'lib' 14780 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14781 ;; 14782 esac 14783 ;; 14784 14785 *) 14786 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 14787 ;; 14788 esac 14789 dynamic_linker='Win32 ld.exe' 14790 # FIXME: first we should search . and the directory the executable is in 14791 shlibpath_var=PATH 14792 ;; 14793 14794darwin* | rhapsody*) 14795 dynamic_linker="$host_os dyld" 14796 version_type=darwin 14797 need_lib_prefix=no 14798 need_version=no 14799 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 14800 soname_spec='${libname}${release}${major}$shared_ext' 14801 shlibpath_overrides_runpath=yes 14802 shlibpath_var=DYLD_LIBRARY_PATH 14803 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 14804 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 14805 if test "$GCC" = yes; then 14806 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` 14807 else 14808 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 14809 fi 14810 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 14811 ;; 14812 14813dgux*) 14814 version_type=linux 14815 need_lib_prefix=no 14816 need_version=no 14817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 14818 soname_spec='${libname}${release}${shared_ext}$major' 14819 shlibpath_var=LD_LIBRARY_PATH 14820 ;; 14821 14822freebsd1*) 14823 dynamic_linker=no 14824 ;; 14825 14826kfreebsd*-gnu) 14827 version_type=linux 14828 need_lib_prefix=no 14829 need_version=no 14830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14831 soname_spec='${libname}${release}${shared_ext}$major' 14832 shlibpath_var=LD_LIBRARY_PATH 14833 shlibpath_overrides_runpath=no 14834 hardcode_into_libs=yes 14835 dynamic_linker='GNU ld.so' 14836 ;; 14837 14838freebsd* | dragonfly*) 14839 # DragonFly does not have aout. When/if they implement a new 14840 # versioning mechanism, adjust this. 14841 if test -x /usr/bin/objformat; then 14842 objformat=`/usr/bin/objformat` 14843 else 14844 case $host_os in 14845 freebsd[123]*) objformat=aout ;; 14846 *) objformat=elf ;; 14847 esac 14848 fi 14849 version_type=freebsd-$objformat 14850 case $version_type in 14851 freebsd-elf*) 14852 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 14853 need_version=no 14854 need_lib_prefix=no 14855 ;; 14856 freebsd-*) 14857 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 14858 need_version=yes 14859 ;; 14860 esac 14861 shlibpath_var=LD_LIBRARY_PATH 14862 case $host_os in 14863 freebsd2*) 14864 shlibpath_overrides_runpath=yes 14865 ;; 14866 freebsd3.[01]* | freebsdelf3.[01]*) 14867 shlibpath_overrides_runpath=yes 14868 hardcode_into_libs=yes 14869 ;; 14870 *) # from 3.2 on 14871 shlibpath_overrides_runpath=no 14872 hardcode_into_libs=yes 14873 ;; 14874 esac 14875 ;; 14876 14877gnu*) 14878 version_type=linux 14879 need_lib_prefix=no 14880 need_version=no 14881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 14882 soname_spec='${libname}${release}${shared_ext}$major' 14883 shlibpath_var=LD_LIBRARY_PATH 14884 hardcode_into_libs=yes 14885 ;; 14886 14887hpux9* | hpux10* | hpux11*) 14888 # Give a soname corresponding to the major version so that dld.sl refuses to 14889 # link against other versions. 14890 version_type=sunos 14891 need_lib_prefix=no 14892 need_version=no 14893 case $host_cpu in 14894 ia64*) 14895 shrext_cmds='.so' 14896 hardcode_into_libs=yes 14897 dynamic_linker="$host_os dld.so" 14898 shlibpath_var=LD_LIBRARY_PATH 14899 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 14900 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14901 soname_spec='${libname}${release}${shared_ext}$major' 14902 if test "X$HPUX_IA64_MODE" = X32; then 14903 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 14904 else 14905 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 14906 fi 14907 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 14908 ;; 14909 hppa*64*) 14910 shrext_cmds='.sl' 14911 hardcode_into_libs=yes 14912 dynamic_linker="$host_os dld.sl" 14913 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 14914 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 14915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14916 soname_spec='${libname}${release}${shared_ext}$major' 14917 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 14918 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 14919 ;; 14920 *) 14921 shrext_cmds='.sl' 14922 dynamic_linker="$host_os dld.sl" 14923 shlibpath_var=SHLIB_PATH 14924 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 14925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14926 soname_spec='${libname}${release}${shared_ext}$major' 14927 ;; 14928 esac 14929 # HP-UX runs *really* slowly unless shared libraries are mode 555. 14930 postinstall_cmds='chmod 555 $lib' 14931 ;; 14932 14933irix5* | irix6* | nonstopux*) 14934 case $host_os in 14935 nonstopux*) version_type=nonstopux ;; 14936 *) 14937 if test "$lt_cv_prog_gnu_ld" = yes; then 14938 version_type=linux 14939 else 14940 version_type=irix 14941 fi ;; 14942 esac 14943 need_lib_prefix=no 14944 need_version=no 14945 soname_spec='${libname}${release}${shared_ext}$major' 14946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 14947 case $host_os in 14948 irix5* | nonstopux*) 14949 libsuff= shlibsuff= 14950 ;; 14951 *) 14952 case $LD in # libtool.m4 will add one of these switches to LD 14953 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 14954 libsuff= shlibsuff= libmagic=32-bit;; 14955 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 14956 libsuff=32 shlibsuff=N32 libmagic=N32;; 14957 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 14958 libsuff=64 shlibsuff=64 libmagic=64-bit;; 14959 *) libsuff= shlibsuff= libmagic=never-match;; 14960 esac 14961 ;; 14962 esac 14963 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 14964 shlibpath_overrides_runpath=no 14965 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 14966 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 14967 hardcode_into_libs=yes 14968 ;; 14969 14970# No shared lib support for Linux oldld, aout, or coff. 14971linux*oldld* | linux*aout* | linux*coff*) 14972 dynamic_linker=no 14973 ;; 14974 14975# This must be Linux ELF. 14976linux*) 14977 version_type=linux 14978 need_lib_prefix=no 14979 need_version=no 14980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14981 soname_spec='${libname}${release}${shared_ext}$major' 14982 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 14983 shlibpath_var=LD_LIBRARY_PATH 14984 shlibpath_overrides_runpath=no 14985 # This implies no fast_install, which is unacceptable. 14986 # Some rework will be needed to allow for fast_install 14987 # before this can be enabled. 14988 hardcode_into_libs=yes 14989 14990 # Append ld.so.conf contents to the search path 14991 if test -f /etc/ld.so.conf; then 14992 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 14993 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 14994 fi 14995 14996 # We used to test for /lib/ld.so.1 and disable shared libraries on 14997 # powerpc, because MkLinux only supported shared libraries with the 14998 # GNU dynamic linker. Since this was broken with cross compilers, 14999 # most powerpc-linux boxes support dynamic linking these days and 15000 # people can always --disable-shared, the test was removed, and we 15001 # assume the GNU/Linux dynamic linker is in use. 15002 dynamic_linker='GNU/Linux ld.so' 15003 ;; 15004 15005knetbsd*-gnu) 15006 version_type=linux 15007 need_lib_prefix=no 15008 need_version=no 15009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15010 soname_spec='${libname}${release}${shared_ext}$major' 15011 shlibpath_var=LD_LIBRARY_PATH 15012 shlibpath_overrides_runpath=no 15013 hardcode_into_libs=yes 15014 dynamic_linker='GNU ld.so' 15015 ;; 15016 15017netbsd*) 15018 version_type=sunos 15019 need_lib_prefix=no 15020 need_version=no 15021 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 15022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15023 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15024 dynamic_linker='NetBSD (a.out) ld.so' 15025 else 15026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15027 soname_spec='${libname}${release}${shared_ext}$major' 15028 dynamic_linker='NetBSD ld.elf_so' 15029 fi 15030 shlibpath_var=LD_LIBRARY_PATH 15031 shlibpath_overrides_runpath=yes 15032 hardcode_into_libs=yes 15033 ;; 15034 15035newsos6) 15036 version_type=linux 15037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15038 shlibpath_var=LD_LIBRARY_PATH 15039 shlibpath_overrides_runpath=yes 15040 ;; 15041 15042nto-qnx*) 15043 version_type=linux 15044 need_lib_prefix=no 15045 need_version=no 15046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15047 soname_spec='${libname}${release}${shared_ext}$major' 15048 shlibpath_var=LD_LIBRARY_PATH 15049 shlibpath_overrides_runpath=yes 15050 ;; 15051 15052openbsd*) 15053 version_type=sunos 15054 need_lib_prefix=no 15055 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 15056 case $host_os in 15057 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 15058 *) need_version=no ;; 15059 esac 15060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15061 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15062 shlibpath_var=LD_LIBRARY_PATH 15063 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 15064 case $host_os in 15065 openbsd2.[89] | openbsd2.[89].*) 15066 shlibpath_overrides_runpath=no 15067 ;; 15068 *) 15069 shlibpath_overrides_runpath=yes 15070 ;; 15071 esac 15072 else 15073 shlibpath_overrides_runpath=yes 15074 fi 15075 ;; 15076 15077os2*) 15078 libname_spec='$name' 15079 shrext_cmds=".dll" 15080 need_lib_prefix=no 15081 library_names_spec='$libname${shared_ext} $libname.a' 15082 dynamic_linker='OS/2 ld.exe' 15083 shlibpath_var=LIBPATH 15084 ;; 15085 15086osf3* | osf4* | osf5*) 15087 version_type=osf 15088 need_lib_prefix=no 15089 need_version=no 15090 soname_spec='${libname}${release}${shared_ext}$major' 15091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15092 shlibpath_var=LD_LIBRARY_PATH 15093 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 15094 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 15095 ;; 15096 15097sco3.2v5*) 15098 version_type=osf 15099 soname_spec='${libname}${release}${shared_ext}$major' 15100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15101 shlibpath_var=LD_LIBRARY_PATH 15102 ;; 15103 15104solaris*) 15105 version_type=linux 15106 need_lib_prefix=no 15107 need_version=no 15108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15109 soname_spec='${libname}${release}${shared_ext}$major' 15110 shlibpath_var=LD_LIBRARY_PATH 15111 shlibpath_overrides_runpath=yes 15112 hardcode_into_libs=yes 15113 # ldd complains unless libraries are executable 15114 postinstall_cmds='chmod +x $lib' 15115 ;; 15116 15117sunos4*) 15118 version_type=sunos 15119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15120 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 15121 shlibpath_var=LD_LIBRARY_PATH 15122 shlibpath_overrides_runpath=yes 15123 if test "$with_gnu_ld" = yes; then 15124 need_lib_prefix=no 15125 fi 15126 need_version=yes 15127 ;; 15128 15129sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 15130 version_type=linux 15131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15132 soname_spec='${libname}${release}${shared_ext}$major' 15133 shlibpath_var=LD_LIBRARY_PATH 15134 case $host_vendor in 15135 sni) 15136 shlibpath_overrides_runpath=no 15137 need_lib_prefix=no 15138 export_dynamic_flag_spec='${wl}-Blargedynsym' 15139 runpath_var=LD_RUN_PATH 15140 ;; 15141 siemens) 15142 need_lib_prefix=no 15143 ;; 15144 motorola) 15145 need_lib_prefix=no 15146 need_version=no 15147 shlibpath_overrides_runpath=no 15148 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 15149 ;; 15150 esac 15151 ;; 15152 15153sysv4*MP*) 15154 if test -d /usr/nec ;then 15155 version_type=linux 15156 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 15157 soname_spec='$libname${shared_ext}.$major' 15158 shlibpath_var=LD_LIBRARY_PATH 15159 fi 15160 ;; 15161 15162uts4*) 15163 version_type=linux 15164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15165 soname_spec='${libname}${release}${shared_ext}$major' 15166 shlibpath_var=LD_LIBRARY_PATH 15167 ;; 15168 15169*) 15170 dynamic_linker=no 15171 ;; 15172esac 15173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 15174$as_echo "$dynamic_linker" >&6; } 15175test "$dynamic_linker" = no && can_build_shared=no 15176 15177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 15178$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 15179hardcode_action_GCJ= 15180if test -n "$hardcode_libdir_flag_spec_GCJ" || \ 15181 test -n "$runpath_var_GCJ" || \ 15182 test "X$hardcode_automatic_GCJ" = "Xyes" ; then 15183 15184 # We can hardcode non-existant directories. 15185 if test "$hardcode_direct_GCJ" != no && 15186 # If the only mechanism to avoid hardcoding is shlibpath_var, we 15187 # have to relink, otherwise we might link with an installed library 15188 # when we should be linking with a yet-to-be-installed one 15189 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && 15190 test "$hardcode_minus_L_GCJ" != no; then 15191 # Linking always hardcodes the temporary library directory. 15192 hardcode_action_GCJ=relink 15193 else 15194 # We can link without hardcoding, and we can hardcode nonexisting dirs. 15195 hardcode_action_GCJ=immediate 15196 fi 15197else 15198 # We cannot hardcode anything, or else we can only hardcode existing 15199 # directories. 15200 hardcode_action_GCJ=unsupported 15201fi 15202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GCJ" >&5 15203$as_echo "$hardcode_action_GCJ" >&6; } 15204 15205if test "$hardcode_action_GCJ" = relink; then 15206 # Fast installation is not supported 15207 enable_fast_install=no 15208elif test "$shlibpath_overrides_runpath" = yes || 15209 test "$enable_shared" = no; then 15210 # Fast installation is not necessary 15211 enable_fast_install=needless 15212fi 15213 15214striplib= 15215old_striplib= 15216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 15217$as_echo_n "checking whether stripping libraries is possible... " >&6; } 15218if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 15219 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 15220 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 15221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15222$as_echo "yes" >&6; } 15223else 15224# FIXME - insert some real tests, host_os isn't really good enough 15225 case $host_os in 15226 darwin*) 15227 if test -n "$STRIP" ; then 15228 striplib="$STRIP -x" 15229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15230$as_echo "yes" >&6; } 15231 else 15232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15233$as_echo "no" >&6; } 15234fi 15235 ;; 15236 *) 15237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15238$as_echo "no" >&6; } 15239 ;; 15240 esac 15241fi 15242 15243if test "x$enable_dlopen" != xyes; then 15244 enable_dlopen=unknown 15245 enable_dlopen_self=unknown 15246 enable_dlopen_self_static=unknown 15247else 15248 lt_cv_dlopen=no 15249 lt_cv_dlopen_libs= 15250 15251 case $host_os in 15252 beos*) 15253 lt_cv_dlopen="load_add_on" 15254 lt_cv_dlopen_libs= 15255 lt_cv_dlopen_self=yes 15256 ;; 15257 15258 mingw* | pw32*) 15259 lt_cv_dlopen="LoadLibrary" 15260 lt_cv_dlopen_libs= 15261 ;; 15262 15263 cygwin*) 15264 lt_cv_dlopen="dlopen" 15265 lt_cv_dlopen_libs= 15266 ;; 15267 15268 darwin*) 15269 # if libdl is installed we need to link against it 15270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 15271$as_echo_n "checking for dlopen in -ldl... " >&6; } 15272if test "${ac_cv_lib_dl_dlopen+set}" = set; then : 15273 $as_echo_n "(cached) " >&6 15274else 15275 ac_check_lib_save_LIBS=$LIBS 15276LIBS="-ldl $LIBS" 15277cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15278/* end confdefs.h. */ 15279 15280/* Override any GCC internal prototype to avoid an error. 15281 Use char because int might match the return type of a GCC 15282 builtin and then its argument prototype would still apply. */ 15283#ifdef __cplusplus 15284extern "C" 15285#endif 15286char dlopen (); 15287int 15288main () 15289{ 15290return dlopen (); 15291 ; 15292 return 0; 15293} 15294_ACEOF 15295if ac_fn_c_try_link "$LINENO"; then : 15296 ac_cv_lib_dl_dlopen=yes 15297else 15298 ac_cv_lib_dl_dlopen=no 15299fi 15300rm -f core conftest.err conftest.$ac_objext \ 15301 conftest$ac_exeext conftest.$ac_ext 15302LIBS=$ac_check_lib_save_LIBS 15303fi 15304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 15305$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 15306if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : 15307 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 15308else 15309 15310 lt_cv_dlopen="dyld" 15311 lt_cv_dlopen_libs= 15312 lt_cv_dlopen_self=yes 15313 15314fi 15315 15316 ;; 15317 15318 *) 15319 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 15320if test "x$ac_cv_func_shl_load" = x""yes; then : 15321 lt_cv_dlopen="shl_load" 15322else 15323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 15324$as_echo_n "checking for shl_load in -ldld... " >&6; } 15325if test "${ac_cv_lib_dld_shl_load+set}" = set; then : 15326 $as_echo_n "(cached) " >&6 15327else 15328 ac_check_lib_save_LIBS=$LIBS 15329LIBS="-ldld $LIBS" 15330cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15331/* end confdefs.h. */ 15332 15333/* Override any GCC internal prototype to avoid an error. 15334 Use char because int might match the return type of a GCC 15335 builtin and then its argument prototype would still apply. */ 15336#ifdef __cplusplus 15337extern "C" 15338#endif 15339char shl_load (); 15340int 15341main () 15342{ 15343return shl_load (); 15344 ; 15345 return 0; 15346} 15347_ACEOF 15348if ac_fn_c_try_link "$LINENO"; then : 15349 ac_cv_lib_dld_shl_load=yes 15350else 15351 ac_cv_lib_dld_shl_load=no 15352fi 15353rm -f core conftest.err conftest.$ac_objext \ 15354 conftest$ac_exeext conftest.$ac_ext 15355LIBS=$ac_check_lib_save_LIBS 15356fi 15357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 15358$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 15359if test "x$ac_cv_lib_dld_shl_load" = x""yes; then : 15360 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 15361else 15362 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 15363if test "x$ac_cv_func_dlopen" = x""yes; then : 15364 lt_cv_dlopen="dlopen" 15365else 15366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 15367$as_echo_n "checking for dlopen in -ldl... " >&6; } 15368if test "${ac_cv_lib_dl_dlopen+set}" = set; then : 15369 $as_echo_n "(cached) " >&6 15370else 15371 ac_check_lib_save_LIBS=$LIBS 15372LIBS="-ldl $LIBS" 15373cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15374/* end confdefs.h. */ 15375 15376/* Override any GCC internal prototype to avoid an error. 15377 Use char because int might match the return type of a GCC 15378 builtin and then its argument prototype would still apply. */ 15379#ifdef __cplusplus 15380extern "C" 15381#endif 15382char dlopen (); 15383int 15384main () 15385{ 15386return dlopen (); 15387 ; 15388 return 0; 15389} 15390_ACEOF 15391if ac_fn_c_try_link "$LINENO"; then : 15392 ac_cv_lib_dl_dlopen=yes 15393else 15394 ac_cv_lib_dl_dlopen=no 15395fi 15396rm -f core conftest.err conftest.$ac_objext \ 15397 conftest$ac_exeext conftest.$ac_ext 15398LIBS=$ac_check_lib_save_LIBS 15399fi 15400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 15401$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 15402if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : 15403 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 15404else 15405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 15406$as_echo_n "checking for dlopen in -lsvld... " >&6; } 15407if test "${ac_cv_lib_svld_dlopen+set}" = set; then : 15408 $as_echo_n "(cached) " >&6 15409else 15410 ac_check_lib_save_LIBS=$LIBS 15411LIBS="-lsvld $LIBS" 15412cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15413/* end confdefs.h. */ 15414 15415/* Override any GCC internal prototype to avoid an error. 15416 Use char because int might match the return type of a GCC 15417 builtin and then its argument prototype would still apply. */ 15418#ifdef __cplusplus 15419extern "C" 15420#endif 15421char dlopen (); 15422int 15423main () 15424{ 15425return dlopen (); 15426 ; 15427 return 0; 15428} 15429_ACEOF 15430if ac_fn_c_try_link "$LINENO"; then : 15431 ac_cv_lib_svld_dlopen=yes 15432else 15433 ac_cv_lib_svld_dlopen=no 15434fi 15435rm -f core conftest.err conftest.$ac_objext \ 15436 conftest$ac_exeext conftest.$ac_ext 15437LIBS=$ac_check_lib_save_LIBS 15438fi 15439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 15440$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 15441if test "x$ac_cv_lib_svld_dlopen" = x""yes; then : 15442 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 15443else 15444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 15445$as_echo_n "checking for dld_link in -ldld... " >&6; } 15446if test "${ac_cv_lib_dld_dld_link+set}" = set; then : 15447 $as_echo_n "(cached) " >&6 15448else 15449 ac_check_lib_save_LIBS=$LIBS 15450LIBS="-ldld $LIBS" 15451cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15452/* end confdefs.h. */ 15453 15454/* Override any GCC internal prototype to avoid an error. 15455 Use char because int might match the return type of a GCC 15456 builtin and then its argument prototype would still apply. */ 15457#ifdef __cplusplus 15458extern "C" 15459#endif 15460char dld_link (); 15461int 15462main () 15463{ 15464return dld_link (); 15465 ; 15466 return 0; 15467} 15468_ACEOF 15469if ac_fn_c_try_link "$LINENO"; then : 15470 ac_cv_lib_dld_dld_link=yes 15471else 15472 ac_cv_lib_dld_dld_link=no 15473fi 15474rm -f core conftest.err conftest.$ac_objext \ 15475 conftest$ac_exeext conftest.$ac_ext 15476LIBS=$ac_check_lib_save_LIBS 15477fi 15478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 15479$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 15480if test "x$ac_cv_lib_dld_dld_link" = x""yes; then : 15481 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 15482fi 15483 15484 15485fi 15486 15487 15488fi 15489 15490 15491fi 15492 15493 15494fi 15495 15496 15497fi 15498 15499 ;; 15500 esac 15501 15502 if test "x$lt_cv_dlopen" != xno; then 15503 enable_dlopen=yes 15504 else 15505 enable_dlopen=no 15506 fi 15507 15508 case $lt_cv_dlopen in 15509 dlopen) 15510 save_CPPFLAGS="$CPPFLAGS" 15511 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 15512 15513 save_LDFLAGS="$LDFLAGS" 15514 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 15515 15516 save_LIBS="$LIBS" 15517 LIBS="$lt_cv_dlopen_libs $LIBS" 15518 15519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 15520$as_echo_n "checking whether a program can dlopen itself... " >&6; } 15521if test "${lt_cv_dlopen_self+set}" = set; then : 15522 $as_echo_n "(cached) " >&6 15523else 15524 if test "$cross_compiling" = yes; then : 15525 lt_cv_dlopen_self=cross 15526else 15527 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 15528 lt_status=$lt_dlunknown 15529 cat > conftest.$ac_ext <<EOF 15530#line 15530 "configure" 15531#include "confdefs.h" 15532 15533#if HAVE_DLFCN_H 15534#include <dlfcn.h> 15535#endif 15536 15537#include <stdio.h> 15538 15539#ifdef RTLD_GLOBAL 15540# define LT_DLGLOBAL RTLD_GLOBAL 15541#else 15542# ifdef DL_GLOBAL 15543# define LT_DLGLOBAL DL_GLOBAL 15544# else 15545# define LT_DLGLOBAL 0 15546# endif 15547#endif 15548 15549/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 15550 find out it does not work in some platform. */ 15551#ifndef LT_DLLAZY_OR_NOW 15552# ifdef RTLD_LAZY 15553# define LT_DLLAZY_OR_NOW RTLD_LAZY 15554# else 15555# ifdef DL_LAZY 15556# define LT_DLLAZY_OR_NOW DL_LAZY 15557# else 15558# ifdef RTLD_NOW 15559# define LT_DLLAZY_OR_NOW RTLD_NOW 15560# else 15561# ifdef DL_NOW 15562# define LT_DLLAZY_OR_NOW DL_NOW 15563# else 15564# define LT_DLLAZY_OR_NOW 0 15565# endif 15566# endif 15567# endif 15568# endif 15569#endif 15570 15571#ifdef __cplusplus 15572extern "C" void exit (int); 15573#endif 15574 15575void fnord() { int i=42;} 15576int main () 15577{ 15578 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 15579 int status = $lt_dlunknown; 15580 15581 if (self) 15582 { 15583 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 15584 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 15585 /* dlclose (self); */ 15586 } 15587 15588 exit (status); 15589} 15590EOF 15591 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 15592 (eval $ac_link) 2>&5 15593 ac_status=$? 15594 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15595 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 15596 (./conftest; exit; ) >&5 2>/dev/null 15597 lt_status=$? 15598 case x$lt_status in 15599 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 15600 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 15601 x$lt_unknown|x*) lt_cv_dlopen_self=no ;; 15602 esac 15603 else : 15604 # compilation failed 15605 lt_cv_dlopen_self=no 15606 fi 15607fi 15608rm -fr conftest* 15609 15610 15611fi 15612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 15613$as_echo "$lt_cv_dlopen_self" >&6; } 15614 15615 if test "x$lt_cv_dlopen_self" = xyes; then 15616 LDFLAGS="$LDFLAGS $link_static_flag" 15617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 15618$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 15619if test "${lt_cv_dlopen_self_static+set}" = set; then : 15620 $as_echo_n "(cached) " >&6 15621else 15622 if test "$cross_compiling" = yes; then : 15623 lt_cv_dlopen_self_static=cross 15624else 15625 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 15626 lt_status=$lt_dlunknown 15627 cat > conftest.$ac_ext <<EOF 15628#line 15628 "configure" 15629#include "confdefs.h" 15630 15631#if HAVE_DLFCN_H 15632#include <dlfcn.h> 15633#endif 15634 15635#include <stdio.h> 15636 15637#ifdef RTLD_GLOBAL 15638# define LT_DLGLOBAL RTLD_GLOBAL 15639#else 15640# ifdef DL_GLOBAL 15641# define LT_DLGLOBAL DL_GLOBAL 15642# else 15643# define LT_DLGLOBAL 0 15644# endif 15645#endif 15646 15647/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 15648 find out it does not work in some platform. */ 15649#ifndef LT_DLLAZY_OR_NOW 15650# ifdef RTLD_LAZY 15651# define LT_DLLAZY_OR_NOW RTLD_LAZY 15652# else 15653# ifdef DL_LAZY 15654# define LT_DLLAZY_OR_NOW DL_LAZY 15655# else 15656# ifdef RTLD_NOW 15657# define LT_DLLAZY_OR_NOW RTLD_NOW 15658# else 15659# ifdef DL_NOW 15660# define LT_DLLAZY_OR_NOW DL_NOW 15661# else 15662# define LT_DLLAZY_OR_NOW 0 15663# endif 15664# endif 15665# endif 15666# endif 15667#endif 15668 15669#ifdef __cplusplus 15670extern "C" void exit (int); 15671#endif 15672 15673void fnord() { int i=42;} 15674int main () 15675{ 15676 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 15677 int status = $lt_dlunknown; 15678 15679 if (self) 15680 { 15681 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 15682 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 15683 /* dlclose (self); */ 15684 } 15685 15686 exit (status); 15687} 15688EOF 15689 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 15690 (eval $ac_link) 2>&5 15691 ac_status=$? 15692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15693 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 15694 (./conftest; exit; ) >&5 2>/dev/null 15695 lt_status=$? 15696 case x$lt_status in 15697 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 15698 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 15699 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; 15700 esac 15701 else : 15702 # compilation failed 15703 lt_cv_dlopen_self_static=no 15704 fi 15705fi 15706rm -fr conftest* 15707 15708 15709fi 15710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 15711$as_echo "$lt_cv_dlopen_self_static" >&6; } 15712 fi 15713 15714 CPPFLAGS="$save_CPPFLAGS" 15715 LDFLAGS="$save_LDFLAGS" 15716 LIBS="$save_LIBS" 15717 ;; 15718 esac 15719 15720 case $lt_cv_dlopen_self in 15721 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 15722 *) enable_dlopen_self=unknown ;; 15723 esac 15724 15725 case $lt_cv_dlopen_self_static in 15726 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 15727 *) enable_dlopen_self_static=unknown ;; 15728 esac 15729fi 15730 15731 15732# The else clause should only fire when bootstrapping the 15733# libtool distribution, otherwise you forgot to ship ltmain.sh 15734# with your package, and you will get complaints that there are 15735# no rules to generate ltmain.sh. 15736if test -f "$ltmain"; then 15737 # See if we are running on zsh, and set the options which allow our commands through 15738 # without removal of \ escapes. 15739 if test -n "${ZSH_VERSION+set}" ; then 15740 setopt NO_GLOB_SUBST 15741 fi 15742 # Now quote all the things that may contain metacharacters while being 15743 # careful not to overquote the AC_SUBSTed values. We take copies of the 15744 # variables and quote the copies for generation of the libtool script. 15745 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ 15746 SED SHELL STRIP \ 15747 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 15748 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 15749 deplibs_check_method reload_flag reload_cmds need_locks \ 15750 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 15751 lt_cv_sys_global_symbol_to_c_name_address \ 15752 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 15753 old_postinstall_cmds old_postuninstall_cmds \ 15754 compiler_GCJ \ 15755 CC_GCJ \ 15756 LD_GCJ \ 15757 lt_prog_compiler_wl_GCJ \ 15758 lt_prog_compiler_pic_GCJ \ 15759 lt_prog_compiler_static_GCJ \ 15760 lt_prog_compiler_no_builtin_flag_GCJ \ 15761 export_dynamic_flag_spec_GCJ \ 15762 thread_safe_flag_spec_GCJ \ 15763 whole_archive_flag_spec_GCJ \ 15764 enable_shared_with_static_runtimes_GCJ \ 15765 old_archive_cmds_GCJ \ 15766 old_archive_from_new_cmds_GCJ \ 15767 predep_objects_GCJ \ 15768 postdep_objects_GCJ \ 15769 predeps_GCJ \ 15770 postdeps_GCJ \ 15771 compiler_lib_search_path_GCJ \ 15772 archive_cmds_GCJ \ 15773 archive_expsym_cmds_GCJ \ 15774 postinstall_cmds_GCJ \ 15775 postuninstall_cmds_GCJ \ 15776 old_archive_from_expsyms_cmds_GCJ \ 15777 allow_undefined_flag_GCJ \ 15778 no_undefined_flag_GCJ \ 15779 export_symbols_cmds_GCJ \ 15780 hardcode_libdir_flag_spec_GCJ \ 15781 hardcode_libdir_flag_spec_ld_GCJ \ 15782 hardcode_libdir_separator_GCJ \ 15783 hardcode_automatic_GCJ \ 15784 module_cmds_GCJ \ 15785 module_expsym_cmds_GCJ \ 15786 lt_cv_prog_compiler_c_o_GCJ \ 15787 exclude_expsyms_GCJ \ 15788 include_expsyms_GCJ; do 15789 15790 case $var in 15791 old_archive_cmds_GCJ | \ 15792 old_archive_from_new_cmds_GCJ | \ 15793 archive_cmds_GCJ | \ 15794 archive_expsym_cmds_GCJ | \ 15795 module_cmds_GCJ | \ 15796 module_expsym_cmds_GCJ | \ 15797 old_archive_from_expsyms_cmds_GCJ | \ 15798 export_symbols_cmds_GCJ | \ 15799 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 15800 postinstall_cmds | postuninstall_cmds | \ 15801 old_postinstall_cmds | old_postuninstall_cmds | \ 15802 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 15803 # Double-quote double-evaled strings. 15804 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 15805 ;; 15806 *) 15807 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 15808 ;; 15809 esac 15810 done 15811 15812 case $lt_echo in 15813 *'\$0 --fallback-echo"') 15814 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 15815 ;; 15816 esac 15817 15818cfgfile="$ofile" 15819 15820 cat <<__EOF__ >> "$cfgfile" 15821# ### BEGIN LIBTOOL TAG CONFIG: $tagname 15822 15823# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 15824 15825# Shell to use when invoking shell scripts. 15826SHELL=$lt_SHELL 15827 15828# Whether or not to build shared libraries. 15829build_libtool_libs=$enable_shared 15830 15831# Whether or not to build static libraries. 15832build_old_libs=$enable_static 15833 15834# Whether or not to add -lc for building shared libraries. 15835build_libtool_need_lc=$archive_cmds_need_lc_GCJ 15836 15837# Whether or not to disallow shared libs when runtime libs are static 15838allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ 15839 15840# Whether or not to optimize for fast installation. 15841fast_install=$enable_fast_install 15842 15843# The host system. 15844host_alias=$host_alias 15845host=$host 15846host_os=$host_os 15847 15848# The build system. 15849build_alias=$build_alias 15850build=$build 15851build_os=$build_os 15852 15853# An echo program that does not interpret backslashes. 15854echo=$lt_echo 15855 15856# The archiver. 15857AR=$lt_AR 15858AR_FLAGS=$lt_AR_FLAGS 15859 15860# A C compiler. 15861LTCC=$lt_LTCC 15862 15863# A language-specific compiler. 15864CC=$lt_compiler_GCJ 15865 15866# Is the compiler the GNU C compiler? 15867with_gcc=$GCC_GCJ 15868 15869# An ERE matcher. 15870EGREP=$lt_EGREP 15871 15872# The linker used to build libraries. 15873LD=$lt_LD_GCJ 15874 15875# Whether we need hard or soft links. 15876LN_S=$lt_LN_S 15877 15878# A BSD-compatible nm program. 15879NM=$lt_NM 15880 15881# A symbol stripping program 15882STRIP=$lt_STRIP 15883 15884# Used to examine libraries when file_magic_cmd begins "file" 15885MAGIC_CMD=$MAGIC_CMD 15886 15887# Used on cygwin: DLL creation program. 15888DLLTOOL="$DLLTOOL" 15889 15890# Used on cygwin: object dumper. 15891OBJDUMP="$OBJDUMP" 15892 15893# Used on cygwin: assembler. 15894AS="$AS" 15895 15896# The name of the directory that contains temporary libtool files. 15897objdir=$objdir 15898 15899# How to create reloadable object files. 15900reload_flag=$lt_reload_flag 15901reload_cmds=$lt_reload_cmds 15902 15903# How to pass a linker flag through the compiler. 15904wl=$lt_lt_prog_compiler_wl_GCJ 15905 15906# Object file suffix (normally "o"). 15907objext="$ac_objext" 15908 15909# Old archive suffix (normally "a"). 15910libext="$libext" 15911 15912# Shared library suffix (normally ".so"). 15913shrext_cmds='$shrext_cmds' 15914 15915# Executable file suffix (normally ""). 15916exeext="$exeext" 15917 15918# Additional compiler flags for building library objects. 15919pic_flag=$lt_lt_prog_compiler_pic_GCJ 15920pic_mode=$pic_mode 15921 15922# What is the maximum length of a command? 15923max_cmd_len=$lt_cv_sys_max_cmd_len 15924 15925# Does compiler simultaneously support -c and -o options? 15926compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ 15927 15928# Must we lock files when doing compilation? 15929need_locks=$lt_need_locks 15930 15931# Do we need the lib prefix for modules? 15932need_lib_prefix=$need_lib_prefix 15933 15934# Do we need a version for libraries? 15935need_version=$need_version 15936 15937# Whether dlopen is supported. 15938dlopen_support=$enable_dlopen 15939 15940# Whether dlopen of programs is supported. 15941dlopen_self=$enable_dlopen_self 15942 15943# Whether dlopen of statically linked programs is supported. 15944dlopen_self_static=$enable_dlopen_self_static 15945 15946# Compiler flag to prevent dynamic linking. 15947link_static_flag=$lt_lt_prog_compiler_static_GCJ 15948 15949# Compiler flag to turn off builtin functions. 15950no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ 15951 15952# Compiler flag to allow reflexive dlopens. 15953export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ 15954 15955# Compiler flag to generate shared objects directly from archives. 15956whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ 15957 15958# Compiler flag to generate thread-safe objects. 15959thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ 15960 15961# Library versioning type. 15962version_type=$version_type 15963 15964# Format of library name prefix. 15965libname_spec=$lt_libname_spec 15966 15967# List of archive names. First name is the real one, the rest are links. 15968# The last name is the one that the linker finds with -lNAME. 15969library_names_spec=$lt_library_names_spec 15970 15971# The coded name of the library, if different from the real name. 15972soname_spec=$lt_soname_spec 15973 15974# Commands used to build and install an old-style archive. 15975RANLIB=$lt_RANLIB 15976old_archive_cmds=$lt_old_archive_cmds_GCJ 15977old_postinstall_cmds=$lt_old_postinstall_cmds 15978old_postuninstall_cmds=$lt_old_postuninstall_cmds 15979 15980# Create an old-style archive from a shared archive. 15981old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ 15982 15983# Create a temporary old-style archive to link instead of a shared archive. 15984old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ 15985 15986# Commands used to build and install a shared archive. 15987archive_cmds=$lt_archive_cmds_GCJ 15988archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ 15989postinstall_cmds=$lt_postinstall_cmds 15990postuninstall_cmds=$lt_postuninstall_cmds 15991 15992# Commands used to build a loadable module (assumed same as above if empty) 15993module_cmds=$lt_module_cmds_GCJ 15994module_expsym_cmds=$lt_module_expsym_cmds_GCJ 15995 15996# Commands to strip libraries. 15997old_striplib=$lt_old_striplib 15998striplib=$lt_striplib 15999 16000# Dependencies to place before the objects being linked to create a 16001# shared library. 16002predep_objects=$lt_predep_objects_GCJ 16003 16004# Dependencies to place after the objects being linked to create a 16005# shared library. 16006postdep_objects=$lt_postdep_objects_GCJ 16007 16008# Dependencies to place before the objects being linked to create a 16009# shared library. 16010predeps=$lt_predeps_GCJ 16011 16012# Dependencies to place after the objects being linked to create a 16013# shared library. 16014postdeps=$lt_postdeps_GCJ 16015 16016# The library search path used internally by the compiler when linking 16017# a shared library. 16018compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ 16019 16020# Method to check whether dependent libraries are shared objects. 16021deplibs_check_method=$lt_deplibs_check_method 16022 16023# Command to use when deplibs_check_method == file_magic. 16024file_magic_cmd=$lt_file_magic_cmd 16025 16026# Flag that allows shared libraries with undefined symbols to be built. 16027allow_undefined_flag=$lt_allow_undefined_flag_GCJ 16028 16029# Flag that forces no undefined symbols. 16030no_undefined_flag=$lt_no_undefined_flag_GCJ 16031 16032# Commands used to finish a libtool library installation in a directory. 16033finish_cmds=$lt_finish_cmds 16034 16035# Same as above, but a single script fragment to be evaled but not shown. 16036finish_eval=$lt_finish_eval 16037 16038# Take the output of nm and produce a listing of raw symbols and C names. 16039global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 16040 16041# Transform the output of nm in a proper C declaration 16042global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 16043 16044# Transform the output of nm in a C name address pair 16045global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 16046 16047# This is the shared library runtime path variable. 16048runpath_var=$runpath_var 16049 16050# This is the shared library path variable. 16051shlibpath_var=$shlibpath_var 16052 16053# Is shlibpath searched before the hard-coded library search path? 16054shlibpath_overrides_runpath=$shlibpath_overrides_runpath 16055 16056# How to hardcode a shared library path into an executable. 16057hardcode_action=$hardcode_action_GCJ 16058 16059# Whether we should hardcode library paths into libraries. 16060hardcode_into_libs=$hardcode_into_libs 16061 16062# Flag to hardcode \$libdir into a binary during linking. 16063# This must work even if \$libdir does not exist. 16064hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ 16065 16066# If ld is used when linking, flag to hardcode \$libdir into 16067# a binary during linking. This must work even if \$libdir does 16068# not exist. 16069hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ 16070 16071# Whether we need a single -rpath flag with a separated argument. 16072hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ 16073 16074# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 16075# resulting binary. 16076hardcode_direct=$hardcode_direct_GCJ 16077 16078# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 16079# resulting binary. 16080hardcode_minus_L=$hardcode_minus_L_GCJ 16081 16082# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 16083# the resulting binary. 16084hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ 16085 16086# Set to yes if building a shared library automatically hardcodes DIR into the library 16087# and all subsequent libraries and executables linked against it. 16088hardcode_automatic=$hardcode_automatic_GCJ 16089 16090# Variables whose values should be saved in libtool wrapper scripts and 16091# restored at relink time. 16092variables_saved_for_relink="$variables_saved_for_relink" 16093 16094# Whether libtool must link a program against all its dependency libraries. 16095link_all_deplibs=$link_all_deplibs_GCJ 16096 16097# Compile-time system search path for libraries 16098sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 16099 16100# Run-time system search path for libraries 16101sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 16102 16103# Fix the shell variable \$srcfile for the compiler. 16104fix_srcfile_path="$fix_srcfile_path_GCJ" 16105 16106# Set to yes if exported symbols are required. 16107always_export_symbols=$always_export_symbols_GCJ 16108 16109# The commands to list exported symbols. 16110export_symbols_cmds=$lt_export_symbols_cmds_GCJ 16111 16112# The commands to extract the exported symbol list from a shared archive. 16113extract_expsyms_cmds=$lt_extract_expsyms_cmds 16114 16115# Symbols that should not be listed in the preloaded symbols. 16116exclude_expsyms=$lt_exclude_expsyms_GCJ 16117 16118# Symbols that must always be exported. 16119include_expsyms=$lt_include_expsyms_GCJ 16120 16121# ### END LIBTOOL TAG CONFIG: $tagname 16122 16123__EOF__ 16124 16125 16126else 16127 # If there is no Makefile yet, we rely on a make rule to execute 16128 # `config.status --recheck' to rerun these tests and create the 16129 # libtool script then. 16130 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 16131 if test -f "$ltmain_in"; then 16132 test -f Makefile && make "$ltmain" 16133 fi 16134fi 16135 16136 16137ac_ext=c 16138ac_cpp='$CPP $CPPFLAGS' 16139ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16140ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16141ac_compiler_gnu=$ac_cv_c_compiler_gnu 16142 16143CC="$lt_save_CC" 16144 16145 else 16146 tagname="" 16147 fi 16148 ;; 16149 16150 RC) 16151 16152 16153# Source file extension for RC test sources. 16154ac_ext=rc 16155 16156# Object file extension for compiled RC test sources. 16157objext=o 16158objext_RC=$objext 16159 16160# Code to be used in simple compile tests 16161lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' 16162 16163# Code to be used in simple link tests 16164lt_simple_link_test_code="$lt_simple_compile_test_code" 16165 16166# ltmain only uses $CC for tagged configurations so make sure $CC is set. 16167 16168# If no C compiler was specified, use CC. 16169LTCC=${LTCC-"$CC"} 16170 16171# Allow CC to be a program name with arguments. 16172compiler=$CC 16173 16174 16175# save warnings/boilerplate of simple test code 16176ac_outfile=conftest.$ac_objext 16177printf "$lt_simple_compile_test_code" >conftest.$ac_ext 16178eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 16179_lt_compiler_boilerplate=`cat conftest.err` 16180$rm conftest* 16181 16182ac_outfile=conftest.$ac_objext 16183printf "$lt_simple_link_test_code" >conftest.$ac_ext 16184eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 16185_lt_linker_boilerplate=`cat conftest.err` 16186$rm conftest* 16187 16188 16189# Allow CC to be a program name with arguments. 16190lt_save_CC="$CC" 16191CC=${RC-"windres"} 16192compiler=$CC 16193compiler_RC=$CC 16194for cc_temp in $compiler""; do 16195 case $cc_temp in 16196 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 16197 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 16198 \-*) ;; 16199 *) break;; 16200 esac 16201done 16202cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 16203 16204lt_cv_prog_compiler_c_o_RC=yes 16205 16206# The else clause should only fire when bootstrapping the 16207# libtool distribution, otherwise you forgot to ship ltmain.sh 16208# with your package, and you will get complaints that there are 16209# no rules to generate ltmain.sh. 16210if test -f "$ltmain"; then 16211 # See if we are running on zsh, and set the options which allow our commands through 16212 # without removal of \ escapes. 16213 if test -n "${ZSH_VERSION+set}" ; then 16214 setopt NO_GLOB_SUBST 16215 fi 16216 # Now quote all the things that may contain metacharacters while being 16217 # careful not to overquote the AC_SUBSTed values. We take copies of the 16218 # variables and quote the copies for generation of the libtool script. 16219 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ 16220 SED SHELL STRIP \ 16221 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 16222 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 16223 deplibs_check_method reload_flag reload_cmds need_locks \ 16224 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 16225 lt_cv_sys_global_symbol_to_c_name_address \ 16226 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 16227 old_postinstall_cmds old_postuninstall_cmds \ 16228 compiler_RC \ 16229 CC_RC \ 16230 LD_RC \ 16231 lt_prog_compiler_wl_RC \ 16232 lt_prog_compiler_pic_RC \ 16233 lt_prog_compiler_static_RC \ 16234 lt_prog_compiler_no_builtin_flag_RC \ 16235 export_dynamic_flag_spec_RC \ 16236 thread_safe_flag_spec_RC \ 16237 whole_archive_flag_spec_RC \ 16238 enable_shared_with_static_runtimes_RC \ 16239 old_archive_cmds_RC \ 16240 old_archive_from_new_cmds_RC \ 16241 predep_objects_RC \ 16242 postdep_objects_RC \ 16243 predeps_RC \ 16244 postdeps_RC \ 16245 compiler_lib_search_path_RC \ 16246 archive_cmds_RC \ 16247 archive_expsym_cmds_RC \ 16248 postinstall_cmds_RC \ 16249 postuninstall_cmds_RC \ 16250 old_archive_from_expsyms_cmds_RC \ 16251 allow_undefined_flag_RC \ 16252 no_undefined_flag_RC \ 16253 export_symbols_cmds_RC \ 16254 hardcode_libdir_flag_spec_RC \ 16255 hardcode_libdir_flag_spec_ld_RC \ 16256 hardcode_libdir_separator_RC \ 16257 hardcode_automatic_RC \ 16258 module_cmds_RC \ 16259 module_expsym_cmds_RC \ 16260 lt_cv_prog_compiler_c_o_RC \ 16261 exclude_expsyms_RC \ 16262 include_expsyms_RC; do 16263 16264 case $var in 16265 old_archive_cmds_RC | \ 16266 old_archive_from_new_cmds_RC | \ 16267 archive_cmds_RC | \ 16268 archive_expsym_cmds_RC | \ 16269 module_cmds_RC | \ 16270 module_expsym_cmds_RC | \ 16271 old_archive_from_expsyms_cmds_RC | \ 16272 export_symbols_cmds_RC | \ 16273 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 16274 postinstall_cmds | postuninstall_cmds | \ 16275 old_postinstall_cmds | old_postuninstall_cmds | \ 16276 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 16277 # Double-quote double-evaled strings. 16278 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 16279 ;; 16280 *) 16281 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 16282 ;; 16283 esac 16284 done 16285 16286 case $lt_echo in 16287 *'\$0 --fallback-echo"') 16288 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 16289 ;; 16290 esac 16291 16292cfgfile="$ofile" 16293 16294 cat <<__EOF__ >> "$cfgfile" 16295# ### BEGIN LIBTOOL TAG CONFIG: $tagname 16296 16297# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 16298 16299# Shell to use when invoking shell scripts. 16300SHELL=$lt_SHELL 16301 16302# Whether or not to build shared libraries. 16303build_libtool_libs=$enable_shared 16304 16305# Whether or not to build static libraries. 16306build_old_libs=$enable_static 16307 16308# Whether or not to add -lc for building shared libraries. 16309build_libtool_need_lc=$archive_cmds_need_lc_RC 16310 16311# Whether or not to disallow shared libs when runtime libs are static 16312allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC 16313 16314# Whether or not to optimize for fast installation. 16315fast_install=$enable_fast_install 16316 16317# The host system. 16318host_alias=$host_alias 16319host=$host 16320host_os=$host_os 16321 16322# The build system. 16323build_alias=$build_alias 16324build=$build 16325build_os=$build_os 16326 16327# An echo program that does not interpret backslashes. 16328echo=$lt_echo 16329 16330# The archiver. 16331AR=$lt_AR 16332AR_FLAGS=$lt_AR_FLAGS 16333 16334# A C compiler. 16335LTCC=$lt_LTCC 16336 16337# A language-specific compiler. 16338CC=$lt_compiler_RC 16339 16340# Is the compiler the GNU C compiler? 16341with_gcc=$GCC_RC 16342 16343# An ERE matcher. 16344EGREP=$lt_EGREP 16345 16346# The linker used to build libraries. 16347LD=$lt_LD_RC 16348 16349# Whether we need hard or soft links. 16350LN_S=$lt_LN_S 16351 16352# A BSD-compatible nm program. 16353NM=$lt_NM 16354 16355# A symbol stripping program 16356STRIP=$lt_STRIP 16357 16358# Used to examine libraries when file_magic_cmd begins "file" 16359MAGIC_CMD=$MAGIC_CMD 16360 16361# Used on cygwin: DLL creation program. 16362DLLTOOL="$DLLTOOL" 16363 16364# Used on cygwin: object dumper. 16365OBJDUMP="$OBJDUMP" 16366 16367# Used on cygwin: assembler. 16368AS="$AS" 16369 16370# The name of the directory that contains temporary libtool files. 16371objdir=$objdir 16372 16373# How to create reloadable object files. 16374reload_flag=$lt_reload_flag 16375reload_cmds=$lt_reload_cmds 16376 16377# How to pass a linker flag through the compiler. 16378wl=$lt_lt_prog_compiler_wl_RC 16379 16380# Object file suffix (normally "o"). 16381objext="$ac_objext" 16382 16383# Old archive suffix (normally "a"). 16384libext="$libext" 16385 16386# Shared library suffix (normally ".so"). 16387shrext_cmds='$shrext_cmds' 16388 16389# Executable file suffix (normally ""). 16390exeext="$exeext" 16391 16392# Additional compiler flags for building library objects. 16393pic_flag=$lt_lt_prog_compiler_pic_RC 16394pic_mode=$pic_mode 16395 16396# What is the maximum length of a command? 16397max_cmd_len=$lt_cv_sys_max_cmd_len 16398 16399# Does compiler simultaneously support -c and -o options? 16400compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC 16401 16402# Must we lock files when doing compilation? 16403need_locks=$lt_need_locks 16404 16405# Do we need the lib prefix for modules? 16406need_lib_prefix=$need_lib_prefix 16407 16408# Do we need a version for libraries? 16409need_version=$need_version 16410 16411# Whether dlopen is supported. 16412dlopen_support=$enable_dlopen 16413 16414# Whether dlopen of programs is supported. 16415dlopen_self=$enable_dlopen_self 16416 16417# Whether dlopen of statically linked programs is supported. 16418dlopen_self_static=$enable_dlopen_self_static 16419 16420# Compiler flag to prevent dynamic linking. 16421link_static_flag=$lt_lt_prog_compiler_static_RC 16422 16423# Compiler flag to turn off builtin functions. 16424no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC 16425 16426# Compiler flag to allow reflexive dlopens. 16427export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC 16428 16429# Compiler flag to generate shared objects directly from archives. 16430whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC 16431 16432# Compiler flag to generate thread-safe objects. 16433thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC 16434 16435# Library versioning type. 16436version_type=$version_type 16437 16438# Format of library name prefix. 16439libname_spec=$lt_libname_spec 16440 16441# List of archive names. First name is the real one, the rest are links. 16442# The last name is the one that the linker finds with -lNAME. 16443library_names_spec=$lt_library_names_spec 16444 16445# The coded name of the library, if different from the real name. 16446soname_spec=$lt_soname_spec 16447 16448# Commands used to build and install an old-style archive. 16449RANLIB=$lt_RANLIB 16450old_archive_cmds=$lt_old_archive_cmds_RC 16451old_postinstall_cmds=$lt_old_postinstall_cmds 16452old_postuninstall_cmds=$lt_old_postuninstall_cmds 16453 16454# Create an old-style archive from a shared archive. 16455old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC 16456 16457# Create a temporary old-style archive to link instead of a shared archive. 16458old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC 16459 16460# Commands used to build and install a shared archive. 16461archive_cmds=$lt_archive_cmds_RC 16462archive_expsym_cmds=$lt_archive_expsym_cmds_RC 16463postinstall_cmds=$lt_postinstall_cmds 16464postuninstall_cmds=$lt_postuninstall_cmds 16465 16466# Commands used to build a loadable module (assumed same as above if empty) 16467module_cmds=$lt_module_cmds_RC 16468module_expsym_cmds=$lt_module_expsym_cmds_RC 16469 16470# Commands to strip libraries. 16471old_striplib=$lt_old_striplib 16472striplib=$lt_striplib 16473 16474# Dependencies to place before the objects being linked to create a 16475# shared library. 16476predep_objects=$lt_predep_objects_RC 16477 16478# Dependencies to place after the objects being linked to create a 16479# shared library. 16480postdep_objects=$lt_postdep_objects_RC 16481 16482# Dependencies to place before the objects being linked to create a 16483# shared library. 16484predeps=$lt_predeps_RC 16485 16486# Dependencies to place after the objects being linked to create a 16487# shared library. 16488postdeps=$lt_postdeps_RC 16489 16490# The library search path used internally by the compiler when linking 16491# a shared library. 16492compiler_lib_search_path=$lt_compiler_lib_search_path_RC 16493 16494# Method to check whether dependent libraries are shared objects. 16495deplibs_check_method=$lt_deplibs_check_method 16496 16497# Command to use when deplibs_check_method == file_magic. 16498file_magic_cmd=$lt_file_magic_cmd 16499 16500# Flag that allows shared libraries with undefined symbols to be built. 16501allow_undefined_flag=$lt_allow_undefined_flag_RC 16502 16503# Flag that forces no undefined symbols. 16504no_undefined_flag=$lt_no_undefined_flag_RC 16505 16506# Commands used to finish a libtool library installation in a directory. 16507finish_cmds=$lt_finish_cmds 16508 16509# Same as above, but a single script fragment to be evaled but not shown. 16510finish_eval=$lt_finish_eval 16511 16512# Take the output of nm and produce a listing of raw symbols and C names. 16513global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 16514 16515# Transform the output of nm in a proper C declaration 16516global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 16517 16518# Transform the output of nm in a C name address pair 16519global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 16520 16521# This is the shared library runtime path variable. 16522runpath_var=$runpath_var 16523 16524# This is the shared library path variable. 16525shlibpath_var=$shlibpath_var 16526 16527# Is shlibpath searched before the hard-coded library search path? 16528shlibpath_overrides_runpath=$shlibpath_overrides_runpath 16529 16530# How to hardcode a shared library path into an executable. 16531hardcode_action=$hardcode_action_RC 16532 16533# Whether we should hardcode library paths into libraries. 16534hardcode_into_libs=$hardcode_into_libs 16535 16536# Flag to hardcode \$libdir into a binary during linking. 16537# This must work even if \$libdir does not exist. 16538hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC 16539 16540# If ld is used when linking, flag to hardcode \$libdir into 16541# a binary during linking. This must work even if \$libdir does 16542# not exist. 16543hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC 16544 16545# Whether we need a single -rpath flag with a separated argument. 16546hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC 16547 16548# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 16549# resulting binary. 16550hardcode_direct=$hardcode_direct_RC 16551 16552# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 16553# resulting binary. 16554hardcode_minus_L=$hardcode_minus_L_RC 16555 16556# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 16557# the resulting binary. 16558hardcode_shlibpath_var=$hardcode_shlibpath_var_RC 16559 16560# Set to yes if building a shared library automatically hardcodes DIR into the library 16561# and all subsequent libraries and executables linked against it. 16562hardcode_automatic=$hardcode_automatic_RC 16563 16564# Variables whose values should be saved in libtool wrapper scripts and 16565# restored at relink time. 16566variables_saved_for_relink="$variables_saved_for_relink" 16567 16568# Whether libtool must link a program against all its dependency libraries. 16569link_all_deplibs=$link_all_deplibs_RC 16570 16571# Compile-time system search path for libraries 16572sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 16573 16574# Run-time system search path for libraries 16575sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 16576 16577# Fix the shell variable \$srcfile for the compiler. 16578fix_srcfile_path="$fix_srcfile_path_RC" 16579 16580# Set to yes if exported symbols are required. 16581always_export_symbols=$always_export_symbols_RC 16582 16583# The commands to list exported symbols. 16584export_symbols_cmds=$lt_export_symbols_cmds_RC 16585 16586# The commands to extract the exported symbol list from a shared archive. 16587extract_expsyms_cmds=$lt_extract_expsyms_cmds 16588 16589# Symbols that should not be listed in the preloaded symbols. 16590exclude_expsyms=$lt_exclude_expsyms_RC 16591 16592# Symbols that must always be exported. 16593include_expsyms=$lt_include_expsyms_RC 16594 16595# ### END LIBTOOL TAG CONFIG: $tagname 16596 16597__EOF__ 16598 16599 16600else 16601 # If there is no Makefile yet, we rely on a make rule to execute 16602 # `config.status --recheck' to rerun these tests and create the 16603 # libtool script then. 16604 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 16605 if test -f "$ltmain_in"; then 16606 test -f Makefile && make "$ltmain" 16607 fi 16608fi 16609 16610 16611ac_ext=c 16612ac_cpp='$CPP $CPPFLAGS' 16613ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16614ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16615ac_compiler_gnu=$ac_cv_c_compiler_gnu 16616 16617CC="$lt_save_CC" 16618 16619 ;; 16620 16621 *) 16622 as_fn_error "Unsupported tag name: $tagname" "$LINENO" 5 16623 ;; 16624 esac 16625 16626 # Append the new tag name to the list of available tags. 16627 if test -n "$tagname" ; then 16628 available_tags="$available_tags $tagname" 16629 fi 16630 fi 16631 done 16632 IFS="$lt_save_ifs" 16633 16634 # Now substitute the updated list of available tags. 16635 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then 16636 mv "${ofile}T" "$ofile" 16637 chmod +x "$ofile" 16638 else 16639 rm -f "${ofile}T" 16640 as_fn_error "unable to update list of available tagged configurations." "$LINENO" 5 16641 fi 16642fi 16643 16644 16645 16646# This can be used to rebuild libtool when needed 16647LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" 16648 16649# Always use our own libtool. 16650LIBTOOL='$(SHELL) $(top_builddir)/libtool' 16651 16652# Prevent multiple expansion 16653 16654 16655 16656 16657 16658 16659 16660 16661 16662 16663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 16664$as_echo_n "checking whether ln -s works... " >&6; } 16665LN_S=$as_ln_s 16666if test "$LN_S" = "ln -s"; then 16667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16668$as_echo "yes" >&6; } 16669else 16670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 16671$as_echo "no, using $LN_S" >&6; } 16672fi 16673 16674if test $ac_cv_c_compiler_gnu = yes; then 16675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5 16676$as_echo_n "checking whether $CC needs -traditional... " >&6; } 16677if test "${ac_cv_prog_gcc_traditional+set}" = set; then : 16678 $as_echo_n "(cached) " >&6 16679else 16680 ac_pattern="Autoconf.*'x'" 16681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16682/* end confdefs.h. */ 16683#include <sgtty.h> 16684Autoconf TIOCGETP 16685_ACEOF 16686if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 16687 $EGREP "$ac_pattern" >/dev/null 2>&1; then : 16688 ac_cv_prog_gcc_traditional=yes 16689else 16690 ac_cv_prog_gcc_traditional=no 16691fi 16692rm -f conftest* 16693 16694 16695 if test $ac_cv_prog_gcc_traditional = no; then 16696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16697/* end confdefs.h. */ 16698#include <termio.h> 16699Autoconf TCGETA 16700_ACEOF 16701if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 16702 $EGREP "$ac_pattern" >/dev/null 2>&1; then : 16703 ac_cv_prog_gcc_traditional=yes 16704fi 16705rm -f conftest* 16706 16707 fi 16708fi 16709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5 16710$as_echo "$ac_cv_prog_gcc_traditional" >&6; } 16711 if test $ac_cv_prog_gcc_traditional = yes; then 16712 CC="$CC -traditional" 16713 fi 16714fi 16715 16716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5 16717$as_echo_n "checking for working volatile... " >&6; } 16718if test "${ac_cv_c_volatile+set}" = set; then : 16719 $as_echo_n "(cached) " >&6 16720else 16721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16722/* end confdefs.h. */ 16723 16724int 16725main () 16726{ 16727 16728volatile int x; 16729int * volatile y = (int *) 0; 16730return !x && !y; 16731 ; 16732 return 0; 16733} 16734_ACEOF 16735if ac_fn_c_try_compile "$LINENO"; then : 16736 ac_cv_c_volatile=yes 16737else 16738 ac_cv_c_volatile=no 16739fi 16740rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16741fi 16742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5 16743$as_echo "$ac_cv_c_volatile" >&6; } 16744if test $ac_cv_c_volatile = no; then 16745 16746$as_echo "#define volatile /**/" >>confdefs.h 16747 16748fi 16749 16750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5 16751$as_echo_n "checking for library containing strerror... " >&6; } 16752if test "${ac_cv_search_strerror+set}" = set; then : 16753 $as_echo_n "(cached) " >&6 16754else 16755 ac_func_search_save_LIBS=$LIBS 16756cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16757/* end confdefs.h. */ 16758 16759/* Override any GCC internal prototype to avoid an error. 16760 Use char because int might match the return type of a GCC 16761 builtin and then its argument prototype would still apply. */ 16762#ifdef __cplusplus 16763extern "C" 16764#endif 16765char strerror (); 16766int 16767main () 16768{ 16769return strerror (); 16770 ; 16771 return 0; 16772} 16773_ACEOF 16774for ac_lib in '' cposix; do 16775 if test -z "$ac_lib"; then 16776 ac_res="none required" 16777 else 16778 ac_res=-l$ac_lib 16779 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 16780 fi 16781 if ac_fn_c_try_link "$LINENO"; then : 16782 ac_cv_search_strerror=$ac_res 16783fi 16784rm -f core conftest.err conftest.$ac_objext \ 16785 conftest$ac_exeext 16786 if test "${ac_cv_search_strerror+set}" = set; then : 16787 break 16788fi 16789done 16790if test "${ac_cv_search_strerror+set}" = set; then : 16791 16792else 16793 ac_cv_search_strerror=no 16794fi 16795rm conftest.$ac_ext 16796LIBS=$ac_func_search_save_LIBS 16797fi 16798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5 16799$as_echo "$ac_cv_search_strerror" >&6; } 16800ac_res=$ac_cv_search_strerror 16801if test "$ac_res" != no; then : 16802 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 16803 16804fi 16805 16806# Extract the first word of "sh", so it can be a program name with args. 16807set dummy sh; ac_word=$2 16808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16809$as_echo_n "checking for $ac_word... " >&6; } 16810if test "${ac_cv_path_PATH_SH+set}" = set; then : 16811 $as_echo_n "(cached) " >&6 16812else 16813 case $PATH_SH in 16814 [\\/]* | ?:[\\/]*) 16815 ac_cv_path_PATH_SH="$PATH_SH" # Let the user override the test with a path. 16816 ;; 16817 *) 16818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16819for as_dir in $PATH 16820do 16821 IFS=$as_save_IFS 16822 test -z "$as_dir" && as_dir=. 16823 for ac_exec_ext in '' $ac_executable_extensions; do 16824 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 16825 ac_cv_path_PATH_SH="$as_dir/$ac_word$ac_exec_ext" 16826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16827 break 2 16828 fi 16829done 16830 done 16831IFS=$as_save_IFS 16832 16833 ;; 16834esac 16835fi 16836PATH_SH=$ac_cv_path_PATH_SH 16837if test -n "$PATH_SH"; then 16838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_SH" >&5 16839$as_echo "$PATH_SH" >&6; } 16840else 16841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16842$as_echo "no" >&6; } 16843fi 16844 16845 16846# Extract the first word of "perl", so it can be a program name with args. 16847set dummy perl; ac_word=$2 16848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16849$as_echo_n "checking for $ac_word... " >&6; } 16850if test "${ac_cv_path_PATH_PERL+set}" = set; then : 16851 $as_echo_n "(cached) " >&6 16852else 16853 case $PATH_PERL in 16854 [\\/]* | ?:[\\/]*) 16855 ac_cv_path_PATH_PERL="$PATH_PERL" # Let the user override the test with a path. 16856 ;; 16857 *) 16858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16859for as_dir in $PATH 16860do 16861 IFS=$as_save_IFS 16862 test -z "$as_dir" && as_dir=. 16863 for ac_exec_ext in '' $ac_executable_extensions; do 16864 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 16865 ac_cv_path_PATH_PERL="$as_dir/$ac_word$ac_exec_ext" 16866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16867 break 2 16868 fi 16869done 16870 done 16871IFS=$as_save_IFS 16872 16873 ;; 16874esac 16875fi 16876PATH_PERL=$ac_cv_path_PATH_PERL 16877if test -n "$PATH_PERL"; then 16878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_PERL" >&5 16879$as_echo "$PATH_PERL" >&6; } 16880else 16881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16882$as_echo "no" >&6; } 16883fi 16884 16885 16886 16887 16888cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16889/* end confdefs.h. */ 16890#define ACAT(a,b)a ## b 16891ACAT(Cir,cus) 16892 16893_ACEOF 16894if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 16895 $EGREP "Circus" >/dev/null 2>&1; then : 16896 $as_echo "#define ULONG_CONST(a) a ## UL" >>confdefs.h 16897 16898else 16899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16900/* end confdefs.h. */ 16901#define RCAT(a,b)a/**/b 16902RCAT(Rei,ser) 16903 16904_ACEOF 16905if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 16906 $EGREP "Reiser" >/dev/null 2>&1; then : 16907 $as_echo "#define ULONG_CONST(a) a/**/L" >>confdefs.h 16908 16909else 16910 as_fn_error "How do we create an unsigned long constant?" "$LINENO" 5 16911fi 16912rm -f conftest* 16913 16914fi 16915rm -f conftest* 16916 # remove for 4.2.5 16917 16918case "$host" in 16919 *-*-vxworks*) 16920 ac_link="$ac_link $VX_KERNEL" 16921 ;; 16922esac 16923 16924 16925 16926case "$host" in 16927 *-pc-cygwin*) 16928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ladvapi32" >&5 16929$as_echo_n "checking for main in -ladvapi32... " >&6; } 16930if test "${ac_cv_lib_advapi32_main+set}" = set; then : 16931 $as_echo_n "(cached) " >&6 16932else 16933 ac_check_lib_save_LIBS=$LIBS 16934LIBS="-ladvapi32 $LIBS" 16935cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16936/* end confdefs.h. */ 16937 16938 16939int 16940main () 16941{ 16942return main (); 16943 ; 16944 return 0; 16945} 16946_ACEOF 16947if ac_fn_c_try_link "$LINENO"; then : 16948 ac_cv_lib_advapi32_main=yes 16949else 16950 ac_cv_lib_advapi32_main=no 16951fi 16952rm -f core conftest.err conftest.$ac_objext \ 16953 conftest$ac_exeext conftest.$ac_ext 16954LIBS=$ac_check_lib_save_LIBS 16955fi 16956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_advapi32_main" >&5 16957$as_echo "$ac_cv_lib_advapi32_main" >&6; } 16958if test "x$ac_cv_lib_advapi32_main" = x""yes; then : 16959 cat >>confdefs.h <<_ACEOF 16960#define HAVE_LIBADVAPI32 1 16961_ACEOF 16962 16963 LIBS="-ladvapi32 $LIBS" 16964 16965fi 16966 16967 ;; 16968esac 16969 16970ac_fn_c_check_func "$LINENO" "gethostent" "ac_cv_func_gethostent" 16971if test "x$ac_cv_func_gethostent" = x""yes; then : 16972 16973else 16974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostent" >&5 16975$as_echo_n "checking for library containing gethostent... " >&6; } 16976if test "${ac_cv_search_gethostent+set}" = set; then : 16977 $as_echo_n "(cached) " >&6 16978else 16979 ac_func_search_save_LIBS=$LIBS 16980cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16981/* end confdefs.h. */ 16982 16983/* Override any GCC internal prototype to avoid an error. 16984 Use char because int might match the return type of a GCC 16985 builtin and then its argument prototype would still apply. */ 16986#ifdef __cplusplus 16987extern "C" 16988#endif 16989char gethostent (); 16990int 16991main () 16992{ 16993return gethostent (); 16994 ; 16995 return 0; 16996} 16997_ACEOF 16998for ac_lib in '' nsl; do 16999 if test -z "$ac_lib"; then 17000 ac_res="none required" 17001 else 17002 ac_res=-l$ac_lib 17003 LIBS="-l$ac_lib $libxnet -lsocket $ac_func_search_save_LIBS" 17004 fi 17005 if ac_fn_c_try_link "$LINENO"; then : 17006 ac_cv_search_gethostent=$ac_res 17007fi 17008rm -f core conftest.err conftest.$ac_objext \ 17009 conftest$ac_exeext 17010 if test "${ac_cv_search_gethostent+set}" = set; then : 17011 break 17012fi 17013done 17014if test "${ac_cv_search_gethostent+set}" = set; then : 17015 17016else 17017 ac_cv_search_gethostent=no 17018fi 17019rm conftest.$ac_ext 17020LIBS=$ac_func_search_save_LIBS 17021fi 17022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostent" >&5 17023$as_echo "$ac_cv_search_gethostent" >&6; } 17024ac_res=$ac_cv_search_gethostent 17025if test "$ac_res" != no; then : 17026 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 17027 17028fi 17029 17030fi 17031 17032ac_fn_c_check_func "$LINENO" "openlog" "ac_cv_func_openlog" 17033if test "x$ac_cv_func_openlog" = x""yes; then : 17034 17035else 17036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing openlog" >&5 17037$as_echo_n "checking for library containing openlog... " >&6; } 17038if test "${ac_cv_search_openlog+set}" = set; then : 17039 $as_echo_n "(cached) " >&6 17040else 17041 ac_func_search_save_LIBS=$LIBS 17042cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17043/* end confdefs.h. */ 17044 17045/* Override any GCC internal prototype to avoid an error. 17046 Use char because int might match the return type of a GCC 17047 builtin and then its argument prototype would still apply. */ 17048#ifdef __cplusplus 17049extern "C" 17050#endif 17051char openlog (); 17052int 17053main () 17054{ 17055return openlog (); 17056 ; 17057 return 0; 17058} 17059_ACEOF 17060for ac_lib in '' gen; do 17061 if test -z "$ac_lib"; then 17062 ac_res="none required" 17063 else 17064 ac_res=-l$ac_lib 17065 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 17066 fi 17067 if ac_fn_c_try_link "$LINENO"; then : 17068 ac_cv_search_openlog=$ac_res 17069fi 17070rm -f core conftest.err conftest.$ac_objext \ 17071 conftest$ac_exeext 17072 if test "${ac_cv_search_openlog+set}" = set; then : 17073 break 17074fi 17075done 17076if test "${ac_cv_search_openlog+set}" = set; then : 17077 17078else 17079 ac_cv_search_openlog=no 17080fi 17081rm conftest.$ac_ext 17082LIBS=$ac_func_search_save_LIBS 17083fi 17084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_openlog" >&5 17085$as_echo "$ac_cv_search_openlog" >&6; } 17086ac_res=$ac_cv_search_openlog 17087if test "$ac_res" != no; then : 17088 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 17089 17090else 17091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing openlog" >&5 17092$as_echo_n "checking for library containing openlog... " >&6; } 17093if test "${ac_cv_search_openlog+set}" = set; then : 17094 $as_echo_n "(cached) " >&6 17095else 17096 ac_func_search_save_LIBS=$LIBS 17097cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17098/* end confdefs.h. */ 17099 17100/* Override any GCC internal prototype to avoid an error. 17101 Use char because int might match the return type of a GCC 17102 builtin and then its argument prototype would still apply. */ 17103#ifdef __cplusplus 17104extern "C" 17105#endif 17106char openlog (); 17107int 17108main () 17109{ 17110return openlog (); 17111 ; 17112 return 0; 17113} 17114_ACEOF 17115for ac_lib in '' syslog; do 17116 if test -z "$ac_lib"; then 17117 ac_res="none required" 17118 else 17119 ac_res=-l$ac_lib 17120 LIBS="-l$ac_lib $libxnet -lsocket $ac_func_search_save_LIBS" 17121 fi 17122 if ac_fn_c_try_link "$LINENO"; then : 17123 ac_cv_search_openlog=$ac_res 17124fi 17125rm -f core conftest.err conftest.$ac_objext \ 17126 conftest$ac_exeext 17127 if test "${ac_cv_search_openlog+set}" = set; then : 17128 break 17129fi 17130done 17131if test "${ac_cv_search_openlog+set}" = set; then : 17132 17133else 17134 ac_cv_search_openlog=no 17135fi 17136rm conftest.$ac_ext 17137LIBS=$ac_func_search_save_LIBS 17138fi 17139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_openlog" >&5 17140$as_echo "$ac_cv_search_openlog" >&6; } 17141ac_res=$ac_cv_search_openlog 17142if test "$ac_res" != no; then : 17143 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 17144 17145fi 17146 17147fi 17148 17149fi 17150 17151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing MD5Init" >&5 17152$as_echo_n "checking for library containing MD5Init... " >&6; } 17153if test "${ac_cv_search_MD5Init+set}" = set; then : 17154 $as_echo_n "(cached) " >&6 17155else 17156 ac_func_search_save_LIBS=$LIBS 17157cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17158/* end confdefs.h. */ 17159 17160/* Override any GCC internal prototype to avoid an error. 17161 Use char because int might match the return type of a GCC 17162 builtin and then its argument prototype would still apply. */ 17163#ifdef __cplusplus 17164extern "C" 17165#endif 17166char MD5Init (); 17167int 17168main () 17169{ 17170return MD5Init (); 17171 ; 17172 return 0; 17173} 17174_ACEOF 17175for ac_lib in '' md5 md; do 17176 if test -z "$ac_lib"; then 17177 ac_res="none required" 17178 else 17179 ac_res=-l$ac_lib 17180 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 17181 fi 17182 if ac_fn_c_try_link "$LINENO"; then : 17183 ac_cv_search_MD5Init=$ac_res 17184fi 17185rm -f core conftest.err conftest.$ac_objext \ 17186 conftest$ac_exeext 17187 if test "${ac_cv_search_MD5Init+set}" = set; then : 17188 break 17189fi 17190done 17191if test "${ac_cv_search_MD5Init+set}" = set; then : 17192 17193else 17194 ac_cv_search_MD5Init=no 17195fi 17196rm conftest.$ac_ext 17197LIBS=$ac_func_search_save_LIBS 17198fi 17199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_MD5Init" >&5 17200$as_echo "$ac_cv_search_MD5Init" >&6; } 17201ac_res=$ac_cv_search_MD5Init 17202if test "$ac_res" != no; then : 17203 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 17204 17205fi 17206 17207for ac_func in MD5Init 17208do : 17209 ac_fn_c_check_func "$LINENO" "MD5Init" "ac_cv_func_MD5Init" 17210if test "x$ac_cv_func_MD5Init" = x""yes; then : 17211 cat >>confdefs.h <<_ACEOF 17212#define HAVE_MD5INIT 1 17213_ACEOF 17214 17215fi 17216done 17217 17218 17219# following block becomes on 4.2.5: NTP_LINEEDITLIBS 17220for ac_header in readline/history.h readline/readline.h 17221do : 17222 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 17223ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 17224eval as_val=\$$as_ac_Header 17225 if test "x$as_val" = x""yes; then : 17226 cat >>confdefs.h <<_ACEOF 17227#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 17228_ACEOF 17229 17230fi 17231 17232done 17233 17234case "$ac_cv_header_readline_history_h$ac_cv_header_readline_readline_h" in 17235 *no*) ;; 17236 *) save_LIBS=$LIBS 17237 LIBS= 17238 # Ralf Wildenhues: either unset ... or cache READLINE_LIBS 17239 unset ac_cv_lib_readline_readline 17240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5 17241$as_echo_n "checking for readline in -lreadline... " >&6; } 17242if test "${ac_cv_lib_readline_readline+set}" = set; then : 17243 $as_echo_n "(cached) " >&6 17244else 17245 ac_check_lib_save_LIBS=$LIBS 17246LIBS="-lreadline $LIBS" 17247cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17248/* end confdefs.h. */ 17249 17250/* Override any GCC internal prototype to avoid an error. 17251 Use char because int might match the return type of a GCC 17252 builtin and then its argument prototype would still apply. */ 17253#ifdef __cplusplus 17254extern "C" 17255#endif 17256char readline (); 17257int 17258main () 17259{ 17260return readline (); 17261 ; 17262 return 0; 17263} 17264_ACEOF 17265if ac_fn_c_try_link "$LINENO"; then : 17266 ac_cv_lib_readline_readline=yes 17267else 17268 ac_cv_lib_readline_readline=no 17269fi 17270rm -f core conftest.err conftest.$ac_objext \ 17271 conftest$ac_exeext conftest.$ac_ext 17272LIBS=$ac_check_lib_save_LIBS 17273fi 17274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5 17275$as_echo "$ac_cv_lib_readline_readline" >&6; } 17276if test "x$ac_cv_lib_readline_readline" = x""yes; then : 17277 cat >>confdefs.h <<_ACEOF 17278#define HAVE_LIBREADLINE 1 17279_ACEOF 17280 17281 LIBS="-lreadline $LIBS" 17282 17283else 17284 { $as_echo "$as_me:${as_lineno-$LINENO}: Trying again with -lcurses" >&5 17285$as_echo "$as_me: Trying again with -lcurses" >&6;} 17286 unset ac_cv_lib_readline_readline 17287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5 17288$as_echo_n "checking for readline in -lreadline... " >&6; } 17289if test "${ac_cv_lib_readline_readline+set}" = set; then : 17290 $as_echo_n "(cached) " >&6 17291else 17292 ac_check_lib_save_LIBS=$LIBS 17293LIBS="-lreadline -lcurses $LIBS" 17294cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17295/* end confdefs.h. */ 17296 17297/* Override any GCC internal prototype to avoid an error. 17298 Use char because int might match the return type of a GCC 17299 builtin and then its argument prototype would still apply. */ 17300#ifdef __cplusplus 17301extern "C" 17302#endif 17303char readline (); 17304int 17305main () 17306{ 17307return readline (); 17308 ; 17309 return 0; 17310} 17311_ACEOF 17312if ac_fn_c_try_link "$LINENO"; then : 17313 ac_cv_lib_readline_readline=yes 17314else 17315 ac_cv_lib_readline_readline=no 17316fi 17317rm -f core conftest.err conftest.$ac_objext \ 17318 conftest$ac_exeext conftest.$ac_ext 17319LIBS=$ac_check_lib_save_LIBS 17320fi 17321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5 17322$as_echo "$ac_cv_lib_readline_readline" >&6; } 17323if test "x$ac_cv_lib_readline_readline" = x""yes; then : 17324 LIBS="-lreadline -lcurses $LIBS" 17325 $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h 17326 17327 17328$as_echo "#define HAVE_LIBCURSES /**/" >>confdefs.h 17329 17330else 17331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -ledit" >&5 17332$as_echo_n "checking for readline in -ledit... " >&6; } 17333if test "${ac_cv_lib_edit_readline+set}" = set; then : 17334 $as_echo_n "(cached) " >&6 17335else 17336 ac_check_lib_save_LIBS=$LIBS 17337LIBS="-ledit -lcurses $LIBS" 17338cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17339/* end confdefs.h. */ 17340 17341/* Override any GCC internal prototype to avoid an error. 17342 Use char because int might match the return type of a GCC 17343 builtin and then its argument prototype would still apply. */ 17344#ifdef __cplusplus 17345extern "C" 17346#endif 17347char readline (); 17348int 17349main () 17350{ 17351return readline (); 17352 ; 17353 return 0; 17354} 17355_ACEOF 17356if ac_fn_c_try_link "$LINENO"; then : 17357 ac_cv_lib_edit_readline=yes 17358else 17359 ac_cv_lib_edit_readline=no 17360fi 17361rm -f core conftest.err conftest.$ac_objext \ 17362 conftest$ac_exeext conftest.$ac_ext 17363LIBS=$ac_check_lib_save_LIBS 17364fi 17365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_edit_readline" >&5 17366$as_echo "$ac_cv_lib_edit_readline" >&6; } 17367if test "x$ac_cv_lib_edit_readline" = x""yes; then : 17368 LIBS="-ledit -lcurses" 17369 17370$as_echo "#define HAVE_LIBEDIT /**/" >>confdefs.h 17371 17372 17373$as_echo "#define HAVE_LIBCURSES /**/" >>confdefs.h 17374 17375 17376fi 17377 17378 17379fi 17380 17381fi 17382 17383 READLINE_LIBS=$LIBS 17384 17385 LIBS=$save_LIBS 17386 ;; 17387esac 17388 17389 17390case "$host" in 17391 *-*-*linux*) ;; 17392 *) 17393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_setscheduler in -lrt" >&5 17394$as_echo_n "checking for sched_setscheduler in -lrt... " >&6; } 17395if test "${ac_cv_lib_rt_sched_setscheduler+set}" = set; then : 17396 $as_echo_n "(cached) " >&6 17397else 17398 ac_check_lib_save_LIBS=$LIBS 17399LIBS="-lrt $LIBS" 17400cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17401/* end confdefs.h. */ 17402 17403/* Override any GCC internal prototype to avoid an error. 17404 Use char because int might match the return type of a GCC 17405 builtin and then its argument prototype would still apply. */ 17406#ifdef __cplusplus 17407extern "C" 17408#endif 17409char sched_setscheduler (); 17410int 17411main () 17412{ 17413return sched_setscheduler (); 17414 ; 17415 return 0; 17416} 17417_ACEOF 17418if ac_fn_c_try_link "$LINENO"; then : 17419 ac_cv_lib_rt_sched_setscheduler=yes 17420else 17421 ac_cv_lib_rt_sched_setscheduler=no 17422fi 17423rm -f core conftest.err conftest.$ac_objext \ 17424 conftest$ac_exeext conftest.$ac_ext 17425LIBS=$ac_check_lib_save_LIBS 17426fi 17427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_setscheduler" >&5 17428$as_echo "$ac_cv_lib_rt_sched_setscheduler" >&6; } 17429if test "x$ac_cv_lib_rt_sched_setscheduler" = x""yes; then : 17430 cat >>confdefs.h <<_ACEOF 17431#define HAVE_LIBRT 1 17432_ACEOF 17433 17434 LIBS="-lrt $LIBS" 17435 17436else 17437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_setscheduler in -lposix4" >&5 17438$as_echo_n "checking for sched_setscheduler in -lposix4... " >&6; } 17439if test "${ac_cv_lib_posix4_sched_setscheduler+set}" = set; then : 17440 $as_echo_n "(cached) " >&6 17441else 17442 ac_check_lib_save_LIBS=$LIBS 17443LIBS="-lposix4 $LIBS" 17444cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17445/* end confdefs.h. */ 17446 17447/* Override any GCC internal prototype to avoid an error. 17448 Use char because int might match the return type of a GCC 17449 builtin and then its argument prototype would still apply. */ 17450#ifdef __cplusplus 17451extern "C" 17452#endif 17453char sched_setscheduler (); 17454int 17455main () 17456{ 17457return sched_setscheduler (); 17458 ; 17459 return 0; 17460} 17461_ACEOF 17462if ac_fn_c_try_link "$LINENO"; then : 17463 ac_cv_lib_posix4_sched_setscheduler=yes 17464else 17465 ac_cv_lib_posix4_sched_setscheduler=no 17466fi 17467rm -f core conftest.err conftest.$ac_objext \ 17468 conftest$ac_exeext conftest.$ac_ext 17469LIBS=$ac_check_lib_save_LIBS 17470fi 17471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sched_setscheduler" >&5 17472$as_echo "$ac_cv_lib_posix4_sched_setscheduler" >&6; } 17473if test "x$ac_cv_lib_posix4_sched_setscheduler" = x""yes; then : 17474 cat >>confdefs.h <<_ACEOF 17475#define HAVE_LIBPOSIX4 1 17476_ACEOF 17477 17478 LIBS="-lposix4 $LIBS" 17479 17480fi 17481 17482fi 17483 17484 ;; 17485esac 17486 17487ac_fn_c_check_func "$LINENO" "setsockopt" "ac_cv_func_setsockopt" 17488if test "x$ac_cv_func_setsockopt" = x""yes; then : 17489 17490else 17491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setsockopt" >&5 17492$as_echo_n "checking for library containing setsockopt... " >&6; } 17493if test "${ac_cv_search_setsockopt+set}" = set; then : 17494 $as_echo_n "(cached) " >&6 17495else 17496 ac_func_search_save_LIBS=$LIBS 17497cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17498/* end confdefs.h. */ 17499 17500/* Override any GCC internal prototype to avoid an error. 17501 Use char because int might match the return type of a GCC 17502 builtin and then its argument prototype would still apply. */ 17503#ifdef __cplusplus 17504extern "C" 17505#endif 17506char setsockopt (); 17507int 17508main () 17509{ 17510return setsockopt (); 17511 ; 17512 return 0; 17513} 17514_ACEOF 17515for ac_lib in '' socket xnet; do 17516 if test -z "$ac_lib"; then 17517 ac_res="none required" 17518 else 17519 ac_res=-l$ac_lib 17520 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 17521 fi 17522 if ac_fn_c_try_link "$LINENO"; then : 17523 ac_cv_search_setsockopt=$ac_res 17524fi 17525rm -f core conftest.err conftest.$ac_objext \ 17526 conftest$ac_exeext 17527 if test "${ac_cv_search_setsockopt+set}" = set; then : 17528 break 17529fi 17530done 17531if test "${ac_cv_search_setsockopt+set}" = set; then : 17532 17533else 17534 ac_cv_search_setsockopt=no 17535fi 17536rm conftest.$ac_ext 17537LIBS=$ac_func_search_save_LIBS 17538fi 17539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setsockopt" >&5 17540$as_echo "$ac_cv_search_setsockopt" >&6; } 17541ac_res=$ac_cv_search_setsockopt 17542if test "$ac_res" != no; then : 17543 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 17544 17545fi 17546 17547fi 17548 17549 17550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 17551$as_echo_n "checking for ANSI C header files... " >&6; } 17552if test "${ac_cv_header_stdc+set}" = set; then : 17553 $as_echo_n "(cached) " >&6 17554else 17555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17556/* end confdefs.h. */ 17557#include <stdlib.h> 17558#include <stdarg.h> 17559#include <string.h> 17560#include <float.h> 17561 17562int 17563main () 17564{ 17565 17566 ; 17567 return 0; 17568} 17569_ACEOF 17570if ac_fn_c_try_compile "$LINENO"; then : 17571 ac_cv_header_stdc=yes 17572else 17573 ac_cv_header_stdc=no 17574fi 17575rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17576 17577if test $ac_cv_header_stdc = yes; then 17578 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 17579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17580/* end confdefs.h. */ 17581#include <string.h> 17582 17583_ACEOF 17584if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 17585 $EGREP "memchr" >/dev/null 2>&1; then : 17586 17587else 17588 ac_cv_header_stdc=no 17589fi 17590rm -f conftest* 17591 17592fi 17593 17594if test $ac_cv_header_stdc = yes; then 17595 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 17596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17597/* end confdefs.h. */ 17598#include <stdlib.h> 17599 17600_ACEOF 17601if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 17602 $EGREP "free" >/dev/null 2>&1; then : 17603 17604else 17605 ac_cv_header_stdc=no 17606fi 17607rm -f conftest* 17608 17609fi 17610 17611if test $ac_cv_header_stdc = yes; then 17612 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 17613 if test "$cross_compiling" = yes; then : 17614 : 17615else 17616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17617/* end confdefs.h. */ 17618#include <ctype.h> 17619#include <stdlib.h> 17620#if ((' ' & 0x0FF) == 0x020) 17621# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 17622# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 17623#else 17624# define ISLOWER(c) \ 17625 (('a' <= (c) && (c) <= 'i') \ 17626 || ('j' <= (c) && (c) <= 'r') \ 17627 || ('s' <= (c) && (c) <= 'z')) 17628# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 17629#endif 17630 17631#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 17632int 17633main () 17634{ 17635 int i; 17636 for (i = 0; i < 256; i++) 17637 if (XOR (islower (i), ISLOWER (i)) 17638 || toupper (i) != TOUPPER (i)) 17639 return 2; 17640 return 0; 17641} 17642_ACEOF 17643if ac_fn_c_try_run "$LINENO"; then : 17644 17645else 17646 ac_cv_header_stdc=no 17647fi 17648rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 17649 conftest.$ac_objext conftest.beam conftest.$ac_ext 17650fi 17651 17652fi 17653fi 17654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 17655$as_echo "$ac_cv_header_stdc" >&6; } 17656if test $ac_cv_header_stdc = yes; then 17657 17658$as_echo "#define STDC_HEADERS 1" >>confdefs.h 17659 17660fi 17661 17662for ac_header in bstring.h 17663do : 17664 ac_fn_c_check_header_mongrel "$LINENO" "bstring.h" "ac_cv_header_bstring_h" "$ac_includes_default" 17665if test "x$ac_cv_header_bstring_h" = x""yes; then : 17666 cat >>confdefs.h <<_ACEOF 17667#define HAVE_BSTRING_H 1 17668_ACEOF 17669 17670fi 17671 17672done 17673 17674ac_fn_c_check_header_mongrel "$LINENO" "dns_sd.h" "ac_cv_header_dns_sd_h" "$ac_includes_default" 17675if test "x$ac_cv_header_dns_sd_h" = x""yes; then : 17676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DNSServiceRegister in -ldns_sd" >&5 17677$as_echo_n "checking for DNSServiceRegister in -ldns_sd... " >&6; } 17678if test "${ac_cv_lib_dns_sd_DNSServiceRegister+set}" = set; then : 17679 $as_echo_n "(cached) " >&6 17680else 17681 ac_check_lib_save_LIBS=$LIBS 17682LIBS="-ldns_sd $LIBS" 17683cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17684/* end confdefs.h. */ 17685 17686/* Override any GCC internal prototype to avoid an error. 17687 Use char because int might match the return type of a GCC 17688 builtin and then its argument prototype would still apply. */ 17689#ifdef __cplusplus 17690extern "C" 17691#endif 17692char DNSServiceRegister (); 17693int 17694main () 17695{ 17696return DNSServiceRegister (); 17697 ; 17698 return 0; 17699} 17700_ACEOF 17701if ac_fn_c_try_link "$LINENO"; then : 17702 ac_cv_lib_dns_sd_DNSServiceRegister=yes 17703else 17704 ac_cv_lib_dns_sd_DNSServiceRegister=no 17705fi 17706rm -f core conftest.err conftest.$ac_objext \ 17707 conftest$ac_exeext conftest.$ac_ext 17708LIBS=$ac_check_lib_save_LIBS 17709fi 17710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dns_sd_DNSServiceRegister" >&5 17711$as_echo "$ac_cv_lib_dns_sd_DNSServiceRegister" >&6; } 17712if test "x$ac_cv_lib_dns_sd_DNSServiceRegister" = x""yes; then : 17713 17714$as_echo "#define HAVE_DNSREGISTRATION 1" >>confdefs.h 17715 17716fi 17717 17718fi 17719 17720 17721case "$ac_cv_lib_dns_sd_DNSServiceRegister" in 17722 yes) LIBS="-ldns_sd $LIBS" ;; 17723esac 17724for ac_header in errno.h fcntl.h ieeefp.h math.h 17725do : 17726 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 17727ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 17728eval as_val=\$$as_ac_Header 17729 if test "x$as_val" = x""yes; then : 17730 cat >>confdefs.h <<_ACEOF 17731#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 17732_ACEOF 17733 17734fi 17735 17736done 17737 17738 17739# HMS: Lame, but fast. 17740if test -f /etc/redhat-release 17741then 17742 : 17743else 17744 for ac_header in md5.h 17745do : 17746 ac_fn_c_check_header_compile "$LINENO" "md5.h" "ac_cv_header_md5_h" "#if HAVE_SYS_TYPES_H 17747#include <sys/types.h> 17748#endif 17749 17750" 17751if test "x$ac_cv_header_md5_h" = x""yes; then : 17752 cat >>confdefs.h <<_ACEOF 17753#define HAVE_MD5_H 1 17754_ACEOF 17755 17756fi 17757 17758done 17759 17760fi 17761for ac_header in memory.h netdb.h poll.h 17762do : 17763 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 17764ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 17765eval as_val=\$$as_ac_Header 17766 if test "x$as_val" = x""yes; then : 17767 cat >>confdefs.h <<_ACEOF 17768#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 17769_ACEOF 17770 17771fi 17772 17773done 17774 17775for ac_header in sched.h sgtty.h stdlib.h string.h termio.h 17776do : 17777 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 17778ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 17779eval as_val=\$$as_ac_Header 17780 if test "x$as_val" = x""yes; then : 17781 cat >>confdefs.h <<_ACEOF 17782#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 17783_ACEOF 17784 17785fi 17786 17787done 17788 17789for ac_header in termios.h timepps.h timex.h unistd.h 17790do : 17791 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 17792ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 17793eval as_val=\$$as_ac_Header 17794 if test "x$as_val" = x""yes; then : 17795 cat >>confdefs.h <<_ACEOF 17796#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 17797_ACEOF 17798 17799fi 17800 17801done 17802 17803case "$host" in 17804 *-*-aix*) 17805 for ac_header in utmpx.h 17806do : 17807 ac_fn_c_check_header_mongrel "$LINENO" "utmpx.h" "ac_cv_header_utmpx_h" "$ac_includes_default" 17808if test "x$ac_cv_header_utmpx_h" = x""yes; then : 17809 cat >>confdefs.h <<_ACEOF 17810#define HAVE_UTMPX_H 1 17811_ACEOF 17812 17813fi 17814 17815done 17816 17817 case "$ac_cv_header_utmpx_h" in 17818 yes) ;; 17819 *) for ac_header in utmp.h 17820do : 17821 ac_fn_c_check_header_mongrel "$LINENO" "utmp.h" "ac_cv_header_utmp_h" "$ac_includes_default" 17822if test "x$ac_cv_header_utmp_h" = x""yes; then : 17823 cat >>confdefs.h <<_ACEOF 17824#define HAVE_UTMP_H 1 17825_ACEOF 17826 17827fi 17828 17829done 17830 ;; 17831 esac 17832 ;; 17833 *) for ac_header in utmp.h utmpx.h 17834do : 17835 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 17836ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 17837eval as_val=\$$as_ac_Header 17838 if test "x$as_val" = x""yes; then : 17839 cat >>confdefs.h <<_ACEOF 17840#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 17841_ACEOF 17842 17843fi 17844 17845done 17846 ;; 17847esac 17848for ac_header in arpa/nameser.h 17849do : 17850 ac_fn_c_check_header_mongrel "$LINENO" "arpa/nameser.h" "ac_cv_header_arpa_nameser_h" "$ac_includes_default" 17851if test "x$ac_cv_header_arpa_nameser_h" = x""yes; then : 17852 cat >>confdefs.h <<_ACEOF 17853#define HAVE_ARPA_NAMESER_H 1 17854_ACEOF 17855 17856fi 17857 17858done 17859 17860for ac_header in sys/socket.h 17861do : 17862 ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default" 17863if test "x$ac_cv_header_sys_socket_h" = x""yes; then : 17864 cat >>confdefs.h <<_ACEOF 17865#define HAVE_SYS_SOCKET_H 1 17866_ACEOF 17867 17868fi 17869 17870done 17871 17872for ac_header in net/if.h 17873do : 17874 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "#if HAVE_SYS_SOCKET_H 17875#include <sys/socket.h> 17876#endif 17877 17878" 17879if test "x$ac_cv_header_net_if_h" = x""yes; then : 17880 cat >>confdefs.h <<_ACEOF 17881#define HAVE_NET_IF_H 1 17882_ACEOF 17883 17884fi 17885 17886done 17887 17888for ac_header in net/if6.h 17889do : 17890 ac_fn_c_check_header_mongrel "$LINENO" "net/if6.h" "ac_cv_header_net_if6_h" "$ac_includes_default" 17891if test "x$ac_cv_header_net_if6_h" = x""yes; then : 17892 cat >>confdefs.h <<_ACEOF 17893#define HAVE_NET_IF6_H 1 17894_ACEOF 17895 17896fi 17897 17898done 17899 17900for ac_header in net/route.h 17901do : 17902 ac_fn_c_check_header_compile "$LINENO" "net/route.h" "ac_cv_header_net_route_h" " 17903#include <sys/types.h> 17904#include <sys/socket.h> 17905#include <net/if.h> 17906 17907" 17908if test "x$ac_cv_header_net_route_h" = x""yes; then : 17909 cat >>confdefs.h <<_ACEOF 17910#define HAVE_NET_ROUTE_H 1 17911_ACEOF 17912 17913fi 17914 17915done 17916 17917for ac_header in netinet/in_system.h netinet/in_systm.h 17918do : 17919 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 17920ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 17921eval as_val=\$$as_ac_Header 17922 if test "x$as_val" = x""yes; then : 17923 cat >>confdefs.h <<_ACEOF 17924#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 17925_ACEOF 17926 17927fi 17928 17929done 17930 17931for ac_header in netinet/in.h 17932do : 17933 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default" 17934if test "x$ac_cv_header_netinet_in_h" = x""yes; then : 17935 cat >>confdefs.h <<_ACEOF 17936#define HAVE_NETINET_IN_H 1 17937_ACEOF 17938 17939fi 17940 17941done 17942 17943for ac_header in netinet/ip.h 17944do : 17945 ac_fn_c_check_header_compile "$LINENO" "netinet/ip.h" "ac_cv_header_netinet_ip_h" "#if HAVE_SYS_TYPES_H 17946#include <sys/types.h> 17947#endif 17948#if HAVE_NETINET_IN_H 17949#include <netinet/in.h> 17950#endif 17951#if HAVE_NETINET_IN_SYSTM_H 17952#include <netinet/in_systm.h> 17953#endif 17954 17955" 17956if test "x$ac_cv_header_netinet_ip_h" = x""yes; then : 17957 cat >>confdefs.h <<_ACEOF 17958#define HAVE_NETINET_IP_H 1 17959_ACEOF 17960 17961fi 17962 17963done 17964 17965 17966# Check for IPTOS_PREC 17967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking IPPROTO_IP IP_TOS IPTOS_LOWDELAY" >&5 17968$as_echo_n "checking IPPROTO_IP IP_TOS IPTOS_LOWDELAY... " >&6; } 17969if test "${ac_cv_ip_tos+set}" = set; then : 17970 $as_echo_n "(cached) " >&6 17971else 17972 17973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17974/* end confdefs.h. */ 17975 17976 #if HAVE_SYS_TYPES_H 17977 #include <sys/types.h> 17978 #endif 17979 #if HAVE_NETINET_IP_H 17980 #include <netinet/in.h> 17981 #include <netinet/ip.h> 17982 #endif 17983 #if defined(IPPROTO_IP) && defined(IP_TOS) && defined(IPTOS_LOWDELAY) 17984 yes 17985 #endif 17986 17987_ACEOF 17988if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 17989 $EGREP "yes" >/dev/null 2>&1; then : 17990 ac_cv_ip_tos=yes 17991else 17992 ac_cv_ip_tos=no 17993 17994fi 17995rm -f conftest* 17996 17997 17998 17999fi 18000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ip_tos" >&5 18001$as_echo "$ac_cv_ip_tos" >&6; } 18002 18003case "$ac_cv_ip_tos" in 18004 yes) 18005 18006$as_echo "#define HAVE_IPTOS_SUPPORT 1" >>confdefs.h 18007 18008esac 18009 18010for ac_header in netinfo/ni.h 18011do : 18012 ac_fn_c_check_header_mongrel "$LINENO" "netinfo/ni.h" "ac_cv_header_netinfo_ni_h" "$ac_includes_default" 18013if test "x$ac_cv_header_netinfo_ni_h" = x""yes; then : 18014 cat >>confdefs.h <<_ACEOF 18015#define HAVE_NETINFO_NI_H 1 18016_ACEOF 18017 18018$as_echo "#define HAVE_NETINFO 1" >>confdefs.h 18019 18020fi 18021 18022done 18023 18024for ac_header in sun/audioio.h sys/audioio.h 18025do : 18026 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 18027ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 18028eval as_val=\$$as_ac_Header 18029 if test "x$as_val" = x""yes; then : 18030 cat >>confdefs.h <<_ACEOF 18031#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 18032_ACEOF 18033 18034fi 18035 18036done 18037 18038for ac_header in sys/clkdefs.h sys/file.h 18039do : 18040 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 18041ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 18042eval as_val=\$$as_ac_Header 18043 if test "x$as_val" = x""yes; then : 18044 cat >>confdefs.h <<_ACEOF 18045#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 18046_ACEOF 18047 18048fi 18049 18050done 18051 18052case "$host" in 18053 *-*-sunos4*) ;; 18054 *) for ac_header in sys/ioctl.h 18055do : 18056 ac_fn_c_check_header_mongrel "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default" 18057if test "x$ac_cv_header_sys_ioctl_h" = x""yes; then : 18058 cat >>confdefs.h <<_ACEOF 18059#define HAVE_SYS_IOCTL_H 1 18060_ACEOF 18061 18062fi 18063 18064done 18065 18066 ;; 18067esac 18068for ac_header in sys/ipc.h 18069do : 18070 ac_fn_c_check_header_mongrel "$LINENO" "sys/ipc.h" "ac_cv_header_sys_ipc_h" "$ac_includes_default" 18071if test "x$ac_cv_header_sys_ipc_h" = x""yes; then : 18072 cat >>confdefs.h <<_ACEOF 18073#define HAVE_SYS_IPC_H 1 18074_ACEOF 18075 18076fi 18077 18078done 18079 18080for ac_header in sys/lock.h sys/mman.h sys/modem.h sys/param.h sys/ppsclock.h 18081do : 18082 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 18083ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 18084eval as_val=\$$as_ac_Header 18085 if test "x$as_val" = x""yes; then : 18086 cat >>confdefs.h <<_ACEOF 18087#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 18088_ACEOF 18089 18090fi 18091 18092done 18093 18094# HMS: Check sys/proc.h and sys/resource.h after some others 18095for ac_header in sys/ppstime.h 18096do : 18097 ac_fn_c_check_header_mongrel "$LINENO" "sys/ppstime.h" "ac_cv_header_sys_ppstime_h" "$ac_includes_default" 18098if test "x$ac_cv_header_sys_ppstime_h" = x""yes; then : 18099 cat >>confdefs.h <<_ACEOF 18100#define HAVE_SYS_PPSTIME_H 1 18101_ACEOF 18102 18103fi 18104 18105done 18106 18107case "$ac_cv_header_sched_h" in 18108 yes) ;; 18109 *) for ac_header in sys/sched.h 18110do : 18111 ac_fn_c_check_header_mongrel "$LINENO" "sys/sched.h" "ac_cv_header_sys_sched_h" "$ac_includes_default" 18112if test "x$ac_cv_header_sys_sched_h" = x""yes; then : 18113 cat >>confdefs.h <<_ACEOF 18114#define HAVE_SYS_SCHED_H 1 18115_ACEOF 18116 18117fi 18118 18119done 18120 ;; 18121esac 18122case "$host" in 18123 *-*-sco*) 18124 for ac_header in sys/sio.h 18125do : 18126 ac_fn_c_check_header_mongrel "$LINENO" "sys/sio.h" "ac_cv_header_sys_sio_h" "$ac_includes_default" 18127if test "x$ac_cv_header_sys_sio_h" = x""yes; then : 18128 cat >>confdefs.h <<_ACEOF 18129#define HAVE_SYS_SIO_H 1 18130_ACEOF 18131 18132fi 18133 18134done 18135 18136 ;; 18137esac 18138# HMS: Check sys/shm.h after some others 18139for ac_header in sys/select.h sys/signal.h sys/sockio.h 18140do : 18141 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 18142ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 18143eval as_val=\$$as_ac_Header 18144 if test "x$as_val" = x""yes; then : 18145 cat >>confdefs.h <<_ACEOF 18146#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 18147_ACEOF 18148 18149fi 18150 18151done 18152 18153# HMS: Checked sys/socket.h earlier 18154case "$host" in 18155 *-*-netbsd*) ;; 18156 *) for ac_header in machine/soundcard.h sys/soundcard.h 18157do : 18158 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 18159ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 18160eval as_val=\$$as_ac_Header 18161 if test "x$as_val" = x""yes; then : 18162 cat >>confdefs.h <<_ACEOF 18163#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 18164_ACEOF 18165 18166fi 18167 18168done 18169 18170 ;; 18171esac 18172for ac_header in sys/stat.h sys/stream.h 18173do : 18174 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 18175ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 18176eval as_val=\$$as_ac_Header 18177 if test "x$as_val" = x""yes; then : 18178 cat >>confdefs.h <<_ACEOF 18179#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 18180_ACEOF 18181 18182fi 18183 18184done 18185 18186for ac_header in sys/stropts.h sys/sysctl.h sys/syssgi.h sys/systune.h 18187do : 18188 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 18189ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 18190eval as_val=\$$as_ac_Header 18191 if test "x$as_val" = x""yes; then : 18192 cat >>confdefs.h <<_ACEOF 18193#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 18194_ACEOF 18195 18196fi 18197 18198done 18199 18200for ac_header in sys/termios.h sys/time.h sys/signal.h 18201do : 18202 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 18203ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 18204eval as_val=\$$as_ac_Header 18205 if test "x$as_val" = x""yes; then : 18206 cat >>confdefs.h <<_ACEOF 18207#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 18208_ACEOF 18209 18210fi 18211 18212done 18213 18214cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18215/* end confdefs.h. */ 18216#if HAVE_SYS_TIME_H 18217# include <sys/time.h> 18218#endif 18219#if HAVE_ERRNO_H 18220# include <errno.h> 18221#endif 18222#include <sys/timepps.h> 18223#ifdef PPS_API_VERS_1 18224yes 18225#endif 18226 18227_ACEOF 18228if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 18229 $EGREP "yes" >/dev/null 2>&1; then : 18230 for ac_header in sys/timepps.h 18231do : 18232 ac_fn_c_check_header_compile "$LINENO" "sys/timepps.h" "ac_cv_header_sys_timepps_h" "#if HAVE_SYS_TIME_H 18233# include <sys/time.h> 18234#endif 18235#if HAVE_ERRNO_H 18236# include <errno.h> 18237#endif 18238 18239" 18240if test "x$ac_cv_header_sys_timepps_h" = x""yes; then : 18241 cat >>confdefs.h <<_ACEOF 18242#define HAVE_SYS_TIMEPPS_H 1 18243_ACEOF 18244 18245fi 18246 18247done 18248 18249 18250fi 18251rm -f conftest* 18252 18253for ac_header in sys/timers.h sys/tpro.h sys/types.h sys/wait.h 18254do : 18255 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 18256ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 18257eval as_val=\$$as_ac_Header 18258 if test "x$as_val" = x""yes; then : 18259 cat >>confdefs.h <<_ACEOF 18260#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 18261_ACEOF 18262 18263fi 18264 18265done 18266 18267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 18268$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } 18269if test "${ac_cv_header_time+set}" = set; then : 18270 $as_echo_n "(cached) " >&6 18271else 18272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18273/* end confdefs.h. */ 18274#include <sys/types.h> 18275#include <sys/time.h> 18276#include <time.h> 18277 18278int 18279main () 18280{ 18281if ((struct tm *) 0) 18282return 0; 18283 ; 18284 return 0; 18285} 18286_ACEOF 18287if ac_fn_c_try_compile "$LINENO"; then : 18288 ac_cv_header_time=yes 18289else 18290 ac_cv_header_time=no 18291fi 18292rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18293fi 18294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 18295$as_echo "$ac_cv_header_time" >&6; } 18296if test $ac_cv_header_time = yes; then 18297 18298$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h 18299 18300fi 18301 18302case "$host" in 18303*-convex-*) 18304 for ac_header in /sys/sync/queue.h /sys/sync/sema.h 18305do : 18306 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 18307ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 18308eval as_val=\$$as_ac_Header 18309 if test "x$as_val" = x""yes; then : 18310 cat >>confdefs.h <<_ACEOF 18311#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 18312_ACEOF 18313 18314fi 18315 18316done 18317 18318 ;; 18319*-*-bsdi*) 18320 for ac_header in machine/inline.h sys/pcl720.h sys/i8253.h 18321do : 18322 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 18323ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 18324eval as_val=\$$as_ac_Header 18325 if test "x$as_val" = x""yes; then : 18326 cat >>confdefs.h <<_ACEOF 18327#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 18328_ACEOF 18329 18330fi 18331 18332done 18333 18334 ;; 18335esac 18336 18337case "$host" in 18338 *-*-*linux*) 18339 for ac_func in __adjtimex __ntp_gettime 18340do : 18341 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 18342ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 18343eval as_val=\$$as_ac_var 18344 if test "x$as_val" = x""yes; then : 18345 cat >>confdefs.h <<_ACEOF 18346#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 18347_ACEOF 18348 18349fi 18350done 18351 18352 ;; 18353esac 18354case "$ac_cv_func___adjtimex" in 18355 yes) ;; 18356 *) 18357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nlist in -lelf" >&5 18358$as_echo_n "checking for nlist in -lelf... " >&6; } 18359if test "${ac_cv_lib_elf_nlist+set}" = set; then : 18360 $as_echo_n "(cached) " >&6 18361else 18362 ac_check_lib_save_LIBS=$LIBS 18363LIBS="-lelf $LIBS" 18364cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18365/* end confdefs.h. */ 18366 18367/* Override any GCC internal prototype to avoid an error. 18368 Use char because int might match the return type of a GCC 18369 builtin and then its argument prototype would still apply. */ 18370#ifdef __cplusplus 18371extern "C" 18372#endif 18373char nlist (); 18374int 18375main () 18376{ 18377return nlist (); 18378 ; 18379 return 0; 18380} 18381_ACEOF 18382if ac_fn_c_try_link "$LINENO"; then : 18383 ac_cv_lib_elf_nlist=yes 18384else 18385 ac_cv_lib_elf_nlist=no 18386fi 18387rm -f core conftest.err conftest.$ac_objext \ 18388 conftest$ac_exeext conftest.$ac_ext 18389LIBS=$ac_check_lib_save_LIBS 18390fi 18391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_nlist" >&5 18392$as_echo "$ac_cv_lib_elf_nlist" >&6; } 18393if test "x$ac_cv_lib_elf_nlist" = x""yes; then : 18394 cat >>confdefs.h <<_ACEOF 18395#define HAVE_LIBELF 1 18396_ACEOF 18397 18398 LIBS="-lelf $LIBS" 18399 18400fi 18401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lkvm" >&5 18402$as_echo_n "checking for main in -lkvm... " >&6; } 18403if test "${ac_cv_lib_kvm_main+set}" = set; then : 18404 $as_echo_n "(cached) " >&6 18405else 18406 ac_check_lib_save_LIBS=$LIBS 18407LIBS="-lkvm $LIBS" 18408cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18409/* end confdefs.h. */ 18410 18411 18412int 18413main () 18414{ 18415return main (); 18416 ; 18417 return 0; 18418} 18419_ACEOF 18420if ac_fn_c_try_link "$LINENO"; then : 18421 ac_cv_lib_kvm_main=yes 18422else 18423 ac_cv_lib_kvm_main=no 18424fi 18425rm -f core conftest.err conftest.$ac_objext \ 18426 conftest$ac_exeext conftest.$ac_ext 18427LIBS=$ac_check_lib_save_LIBS 18428fi 18429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_main" >&5 18430$as_echo "$ac_cv_lib_kvm_main" >&6; } 18431if test "x$ac_cv_lib_kvm_main" = x""yes; then : 18432 cat >>confdefs.h <<_ACEOF 18433#define HAVE_LIBKVM 1 18434_ACEOF 18435 18436 LIBS="-lkvm $LIBS" 18437 18438fi 18439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nlist in -lld" >&5 18440$as_echo_n "checking for nlist in -lld... " >&6; } 18441if test "${ac_cv_lib_ld_nlist+set}" = set; then : 18442 $as_echo_n "(cached) " >&6 18443else 18444 ac_check_lib_save_LIBS=$LIBS 18445LIBS="-lld $LIBS" 18446cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18447/* end confdefs.h. */ 18448 18449/* Override any GCC internal prototype to avoid an error. 18450 Use char because int might match the return type of a GCC 18451 builtin and then its argument prototype would still apply. */ 18452#ifdef __cplusplus 18453extern "C" 18454#endif 18455char nlist (); 18456int 18457main () 18458{ 18459return nlist (); 18460 ; 18461 return 0; 18462} 18463_ACEOF 18464if ac_fn_c_try_link "$LINENO"; then : 18465 ac_cv_lib_ld_nlist=yes 18466else 18467 ac_cv_lib_ld_nlist=no 18468fi 18469rm -f core conftest.err conftest.$ac_objext \ 18470 conftest$ac_exeext conftest.$ac_ext 18471LIBS=$ac_check_lib_save_LIBS 18472fi 18473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ld_nlist" >&5 18474$as_echo "$ac_cv_lib_ld_nlist" >&6; } 18475if test "x$ac_cv_lib_ld_nlist" = x""yes; then : 18476 cat >>confdefs.h <<_ACEOF 18477#define HAVE_LIBLD 1 18478_ACEOF 18479 18480 LIBS="-lld $LIBS" 18481 18482fi 18483 18484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nlist in -lmld" >&5 18485$as_echo_n "checking for nlist in -lmld... " >&6; } 18486if test "${ac_cv_lib_mld_nlist+set}" = set; then : 18487 $as_echo_n "(cached) " >&6 18488else 18489 ac_check_lib_save_LIBS=$LIBS 18490LIBS="-lmld $LIBS" 18491cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18492/* end confdefs.h. */ 18493 18494/* Override any GCC internal prototype to avoid an error. 18495 Use char because int might match the return type of a GCC 18496 builtin and then its argument prototype would still apply. */ 18497#ifdef __cplusplus 18498extern "C" 18499#endif 18500char nlist (); 18501int 18502main () 18503{ 18504return nlist (); 18505 ; 18506 return 0; 18507} 18508_ACEOF 18509if ac_fn_c_try_link "$LINENO"; then : 18510 ac_cv_lib_mld_nlist=yes 18511else 18512 ac_cv_lib_mld_nlist=no 18513fi 18514rm -f core conftest.err conftest.$ac_objext \ 18515 conftest$ac_exeext conftest.$ac_ext 18516LIBS=$ac_check_lib_save_LIBS 18517fi 18518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mld_nlist" >&5 18519$as_echo "$ac_cv_lib_mld_nlist" >&6; } 18520if test "x$ac_cv_lib_mld_nlist" = x""yes; then : 18521 cat >>confdefs.h <<_ACEOF 18522#define HAVE_LIBMLD 1 18523_ACEOF 18524 18525 LIBS="-lmld $LIBS" 18526 18527fi 18528 18529 ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default" 18530if test "x$ac_cv_header_nlist_h" = x""yes; then : 18531 18532$as_echo "#define NLIST_STRUCT 1" >>confdefs.h 18533 18534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for n_un in struct nlist" >&5 18535$as_echo_n "checking for n_un in struct nlist... " >&6; } 18536if test "${ac_cv_struct_nlist_n_un+set}" = set; then : 18537 $as_echo_n "(cached) " >&6 18538else 18539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18540/* end confdefs.h. */ 18541#include <nlist.h> 18542int 18543main () 18544{ 18545struct nlist n; n.n_un.n_name = 0; 18546 ; 18547 return 0; 18548} 18549_ACEOF 18550if ac_fn_c_try_compile "$LINENO"; then : 18551 ac_cv_struct_nlist_n_un=yes 18552else 18553 ac_cv_struct_nlist_n_un=no 18554fi 18555rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18556fi 18557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_nlist_n_un" >&5 18558$as_echo "$ac_cv_struct_nlist_n_un" >&6; } 18559 if test $ac_cv_struct_nlist_n_un = yes; then 18560 18561$as_echo "#define NLIST_NAME_UNION 1" >>confdefs.h 18562 18563 fi 18564 18565fi 18566 18567 ;; 18568esac 18569 18570 18571for ac_header in sys/proc.h 18572do : 18573 ac_fn_c_check_header_compile "$LINENO" "sys/proc.h" "ac_cv_header_sys_proc_h" "#if HAVE_SYS_TYPES_H 18574# include <sys/types.h> 18575#endif 18576#if HAVE_SYS_TIME_H 18577# include <sys/time.h> 18578#endif 18579 18580" 18581if test "x$ac_cv_header_sys_proc_h" = x""yes; then : 18582 cat >>confdefs.h <<_ACEOF 18583#define HAVE_SYS_PROC_H 1 18584_ACEOF 18585 18586fi 18587 18588done 18589 18590 18591for ac_header in sys/resource.h 18592do : 18593 ac_fn_c_check_header_compile "$LINENO" "sys/resource.h" "ac_cv_header_sys_resource_h" "#if HAVE_SYS_TIME_H 18594# include <sys/time.h> 18595#endif 18596 18597" 18598if test "x$ac_cv_header_sys_resource_h" = x""yes; then : 18599 cat >>confdefs.h <<_ACEOF 18600#define HAVE_SYS_RESOURCE_H 1 18601_ACEOF 18602 18603fi 18604 18605done 18606 18607 18608for ac_header in sys/shm.h 18609do : 18610 ac_fn_c_check_header_compile "$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" "#if HAVE_SYS_TYPES_H 18611# include <sys/types.h> 18612#endif 18613#if HAVE_SYS_IPC_H 18614# include <sys/ipc.h> 18615#endif 18616 18617" 18618if test "x$ac_cv_header_sys_shm_h" = x""yes; then : 18619 cat >>confdefs.h <<_ACEOF 18620#define HAVE_SYS_SHM_H 1 18621_ACEOF 18622 18623fi 18624 18625done 18626 18627 18628for ac_header in sys/timex.h 18629do : 18630 ac_fn_c_check_header_compile "$LINENO" "sys/timex.h" "ac_cv_header_sys_timex_h" "#if HAVE_SYS_TIME_H 18631# include <sys/time.h> 18632#endif 18633 18634" 18635if test "x$ac_cv_header_sys_timex_h" = x""yes; then : 18636 cat >>confdefs.h <<_ACEOF 18637#define HAVE_SYS_TIMEX_H 1 18638_ACEOF 18639 18640fi 18641 18642done 18643 18644 18645for ac_header in resolv.h 18646do : 18647 ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "#if HAVE_SYS_TYPES_H 18648#include <sys/types.h> 18649#endif 18650#if HAVE_NETINET_IN_H 18651#include <netinet/in.h> 18652#endif 18653#if HAVE_ARPA_NAMESER_H 18654#include <arpa/nameser.h> 18655#endif 18656 18657" 18658if test "x$ac_cv_header_resolv_h" = x""yes; then : 18659 cat >>confdefs.h <<_ACEOF 18660#define HAVE_RESOLV_H 1 18661_ACEOF 18662 18663fi 18664 18665done 18666 18667 18668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for basic volatile support" >&5 18669$as_echo_n "checking for basic volatile support... " >&6; } 18670if test "${ac_cv_c_volatile+set}" = set; then : 18671 $as_echo_n "(cached) " >&6 18672else 18673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18674/* end confdefs.h. */ 18675 18676int 18677main () 18678{ 18679 18680volatile int x; 18681 ; 18682 return 0; 18683} 18684_ACEOF 18685if ac_fn_c_try_compile "$LINENO"; then : 18686 ac_cv_c_volatile=yes 18687else 18688 ac_cv_c_volatile=no 18689fi 18690rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18691 18692fi 18693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5 18694$as_echo "$ac_cv_c_volatile" >&6; } 18695case "$ac_cv_c_volatile" in 18696 yes) 18697 ;; 18698 *) 18699$as_echo "#define volatile /**/" >>confdefs.h 18700 18701 ;; 18702esac 18703 18704# 18705# following block goes away in 4.2.5 18706# 18707# AM_C_PROTOTYPES gives us ansi2knr 18708case "$build" in 18709 *-*-solaris2*) 18710 # Assume that solaris2 is Ansi C... 18711 ;; 18712 *) 18713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5 18714$as_echo_n "checking for function prototypes... " >&6; } 18715if test "$ac_cv_prog_cc_c89" != no; then 18716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18717$as_echo "yes" >&6; } 18718 18719$as_echo "#define PROTOTYPES 1" >>confdefs.h 18720 18721 18722$as_echo "#define __PROTOTYPES 1" >>confdefs.h 18723 18724else 18725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18726$as_echo "no" >&6; } 18727fi 18728 18729 18730if test "$ac_cv_prog_cc_stdc" != no; then 18731 U= ANSI2KNR= 18732else 18733 U=_ ANSI2KNR=./ansi2knr 18734fi 18735# Ensure some checks needed by ansi2knr itself. 18736 18737for ac_header in string.h 18738do : 18739 ac_fn_c_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default" 18740if test "x$ac_cv_header_string_h" = x""yes; then : 18741 cat >>confdefs.h <<_ACEOF 18742#define HAVE_STRING_H 1 18743_ACEOF 18744 18745fi 18746 18747done 18748 18749 18750 ;; 18751esac 18752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if C compiler permits function prototypes" >&5 18753$as_echo_n "checking if C compiler permits function prototypes... " >&6; } 18754if test "${ac_cv_have_prototypes+set}" = set; then : 18755 $as_echo_n "(cached) " >&6 18756else 18757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18758/* end confdefs.h. */ 18759 18760extern int foo (short); 18761int foo(short i) { return i; } 18762int 18763main () 18764{ 18765 18766int i; 18767 ; 18768 return 0; 18769} 18770_ACEOF 18771if ac_fn_c_try_compile "$LINENO"; then : 18772 ac_cv_have_prototypes=yes 18773else 18774 ac_cv_have_prototypes=no 18775fi 18776rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18777 18778fi 18779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_prototypes" >&5 18780$as_echo "$ac_cv_have_prototypes" >&6; } 18781if test "$ac_cv_have_prototypes" = yes; then 18782 18783$as_echo "#define HAVE_PROTOTYPES 1" >>confdefs.h 18784 18785fi 18786# 18787# end block 18788# 18789 18790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 18791$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 18792if test "${ac_cv_c_const+set}" = set; then : 18793 $as_echo_n "(cached) " >&6 18794else 18795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18796/* end confdefs.h. */ 18797 18798int 18799main () 18800{ 18801/* FIXME: Include the comments suggested by Paul. */ 18802#ifndef __cplusplus 18803 /* Ultrix mips cc rejects this. */ 18804 typedef int charset[2]; 18805 const charset cs; 18806 /* SunOS 4.1.1 cc rejects this. */ 18807 char const *const *pcpcc; 18808 char **ppc; 18809 /* NEC SVR4.0.2 mips cc rejects this. */ 18810 struct point {int x, y;}; 18811 static struct point const zero = {0,0}; 18812 /* AIX XL C 1.02.0.0 rejects this. 18813 It does not let you subtract one const X* pointer from another in 18814 an arm of an if-expression whose if-part is not a constant 18815 expression */ 18816 const char *g = "string"; 18817 pcpcc = &g + (g ? g-g : 0); 18818 /* HPUX 7.0 cc rejects these. */ 18819 ++pcpcc; 18820 ppc = (char**) pcpcc; 18821 pcpcc = (char const *const *) ppc; 18822 { /* SCO 3.2v4 cc rejects this. */ 18823 char *t; 18824 char const *s = 0 ? (char *) 0 : (char const *) 0; 18825 18826 *t++ = 0; 18827 if (s) return 0; 18828 } 18829 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 18830 int x[] = {25, 17}; 18831 const int *foo = &x[0]; 18832 ++foo; 18833 } 18834 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 18835 typedef const int *iptr; 18836 iptr p = 0; 18837 ++p; 18838 } 18839 { /* AIX XL C 1.02.0.0 rejects this saying 18840 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 18841 struct s { int j; const int *ap[3]; }; 18842 struct s *b; b->j = 5; 18843 } 18844 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 18845 const int foo = 10; 18846 if (!foo) return 0; 18847 } 18848 return !cs[0] && !zero.x; 18849#endif 18850 18851 ; 18852 return 0; 18853} 18854_ACEOF 18855if ac_fn_c_try_compile "$LINENO"; then : 18856 ac_cv_c_const=yes 18857else 18858 ac_cv_c_const=no 18859fi 18860rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18861fi 18862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 18863$as_echo "$ac_cv_c_const" >&6; } 18864if test $ac_cv_c_const = no; then 18865 18866$as_echo "#define const /**/" >>confdefs.h 18867 18868fi 18869 18870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 18871$as_echo_n "checking whether byte ordering is bigendian... " >&6; } 18872if test "${ac_cv_c_bigendian+set}" = set; then : 18873 $as_echo_n "(cached) " >&6 18874else 18875 ac_cv_c_bigendian=unknown 18876 # See if we're dealing with a universal compiler. 18877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18878/* end confdefs.h. */ 18879#ifndef __APPLE_CC__ 18880 not a universal capable compiler 18881 #endif 18882 typedef int dummy; 18883 18884_ACEOF 18885if ac_fn_c_try_compile "$LINENO"; then : 18886 18887 # Check for potential -arch flags. It is not universal unless 18888 # there are at least two -arch flags with different values. 18889 ac_arch= 18890 ac_prev= 18891 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 18892 if test -n "$ac_prev"; then 18893 case $ac_word in 18894 i?86 | x86_64 | ppc | ppc64) 18895 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 18896 ac_arch=$ac_word 18897 else 18898 ac_cv_c_bigendian=universal 18899 break 18900 fi 18901 ;; 18902 esac 18903 ac_prev= 18904 elif test "x$ac_word" = "x-arch"; then 18905 ac_prev=arch 18906 fi 18907 done 18908fi 18909rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18910 if test $ac_cv_c_bigendian = unknown; then 18911 # See if sys/param.h defines the BYTE_ORDER macro. 18912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18913/* end confdefs.h. */ 18914#include <sys/types.h> 18915 #include <sys/param.h> 18916 18917int 18918main () 18919{ 18920#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 18921 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 18922 && LITTLE_ENDIAN) 18923 bogus endian macros 18924 #endif 18925 18926 ; 18927 return 0; 18928} 18929_ACEOF 18930if ac_fn_c_try_compile "$LINENO"; then : 18931 # It does; now see whether it defined to BIG_ENDIAN or not. 18932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18933/* end confdefs.h. */ 18934#include <sys/types.h> 18935 #include <sys/param.h> 18936 18937int 18938main () 18939{ 18940#if BYTE_ORDER != BIG_ENDIAN 18941 not big endian 18942 #endif 18943 18944 ; 18945 return 0; 18946} 18947_ACEOF 18948if ac_fn_c_try_compile "$LINENO"; then : 18949 ac_cv_c_bigendian=yes 18950else 18951 ac_cv_c_bigendian=no 18952fi 18953rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18954fi 18955rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18956 fi 18957 if test $ac_cv_c_bigendian = unknown; then 18958 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 18959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18960/* end confdefs.h. */ 18961#include <limits.h> 18962 18963int 18964main () 18965{ 18966#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 18967 bogus endian macros 18968 #endif 18969 18970 ; 18971 return 0; 18972} 18973_ACEOF 18974if ac_fn_c_try_compile "$LINENO"; then : 18975 # It does; now see whether it defined to _BIG_ENDIAN or not. 18976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18977/* end confdefs.h. */ 18978#include <limits.h> 18979 18980int 18981main () 18982{ 18983#ifndef _BIG_ENDIAN 18984 not big endian 18985 #endif 18986 18987 ; 18988 return 0; 18989} 18990_ACEOF 18991if ac_fn_c_try_compile "$LINENO"; then : 18992 ac_cv_c_bigendian=yes 18993else 18994 ac_cv_c_bigendian=no 18995fi 18996rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18997fi 18998rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18999 fi 19000 if test $ac_cv_c_bigendian = unknown; then 19001 # Compile a test program. 19002 if test "$cross_compiling" = yes; then : 19003 # Try to guess by grepping values from an object file. 19004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19005/* end confdefs.h. */ 19006short int ascii_mm[] = 19007 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 19008 short int ascii_ii[] = 19009 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 19010 int use_ascii (int i) { 19011 return ascii_mm[i] + ascii_ii[i]; 19012 } 19013 short int ebcdic_ii[] = 19014 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 19015 short int ebcdic_mm[] = 19016 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 19017 int use_ebcdic (int i) { 19018 return ebcdic_mm[i] + ebcdic_ii[i]; 19019 } 19020 extern int foo; 19021 19022int 19023main () 19024{ 19025return use_ascii (foo) == use_ebcdic (foo); 19026 ; 19027 return 0; 19028} 19029_ACEOF 19030if ac_fn_c_try_compile "$LINENO"; then : 19031 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 19032 ac_cv_c_bigendian=yes 19033 fi 19034 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 19035 if test "$ac_cv_c_bigendian" = unknown; then 19036 ac_cv_c_bigendian=no 19037 else 19038 # finding both strings is unlikely to happen, but who knows? 19039 ac_cv_c_bigendian=unknown 19040 fi 19041 fi 19042fi 19043rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19044else 19045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19046/* end confdefs.h. */ 19047$ac_includes_default 19048int 19049main () 19050{ 19051 19052 /* Are we little or big endian? From Harbison&Steele. */ 19053 union 19054 { 19055 long int l; 19056 char c[sizeof (long int)]; 19057 } u; 19058 u.l = 1; 19059 return u.c[sizeof (long int) - 1] == 1; 19060 19061 ; 19062 return 0; 19063} 19064_ACEOF 19065if ac_fn_c_try_run "$LINENO"; then : 19066 ac_cv_c_bigendian=no 19067else 19068 ac_cv_c_bigendian=yes 19069fi 19070rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 19071 conftest.$ac_objext conftest.beam conftest.$ac_ext 19072fi 19073 19074 fi 19075fi 19076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 19077$as_echo "$ac_cv_c_bigendian" >&6; } 19078 case $ac_cv_c_bigendian in #( 19079 yes) 19080 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h 19081;; #( 19082 no) 19083 ;; #( 19084 universal) 19085 19086$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 19087 19088 ;; #( 19089 *) 19090 as_fn_error "unknown endianness 19091 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 19092 esac 19093 19094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 19095$as_echo_n "checking return type of signal handlers... " >&6; } 19096if test "${ac_cv_type_signal+set}" = set; then : 19097 $as_echo_n "(cached) " >&6 19098else 19099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19100/* end confdefs.h. */ 19101#include <sys/types.h> 19102#include <signal.h> 19103 19104int 19105main () 19106{ 19107return *(signal (0, 0)) (0) == 1; 19108 ; 19109 return 0; 19110} 19111_ACEOF 19112if ac_fn_c_try_compile "$LINENO"; then : 19113 ac_cv_type_signal=int 19114else 19115 ac_cv_type_signal=void 19116fi 19117rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19118fi 19119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 19120$as_echo "$ac_cv_type_signal" >&6; } 19121 19122cat >>confdefs.h <<_ACEOF 19123#define RETSIGTYPE $ac_cv_type_signal 19124_ACEOF 19125 19126 19127ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" 19128if test "x$ac_cv_type_off_t" = x""yes; then : 19129 19130else 19131 19132cat >>confdefs.h <<_ACEOF 19133#define off_t long int 19134_ACEOF 19135 19136fi 19137 19138ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 19139if test "x$ac_cv_type_size_t" = x""yes; then : 19140 19141else 19142 19143cat >>confdefs.h <<_ACEOF 19144#define size_t unsigned int 19145_ACEOF 19146 19147fi 19148 19149ac_fn_c_check_type "$LINENO" "time_t" "ac_cv_type_time_t" "$ac_includes_default" 19150if test "x$ac_cv_type_time_t" = x""yes; then : 19151 19152else 19153 19154cat >>confdefs.h <<_ACEOF 19155#define time_t long 19156_ACEOF 19157 19158fi 19159 19160# The cast to long int works around a bug in the HP C Compiler 19161# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 19162# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 19163# This bug is HP SR number 8606223364. 19164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5 19165$as_echo_n "checking size of time_t... " >&6; } 19166if test "${ac_cv_sizeof_time_t+set}" = set; then : 19167 $as_echo_n "(cached) " >&6 19168else 19169 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "$ac_includes_default"; then : 19170 19171else 19172 if test "$ac_cv_type_time_t" = yes; then 19173 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19174$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 19175{ as_fn_set_status 77 19176as_fn_error "cannot compute sizeof (time_t) 19177See \`config.log' for more details." "$LINENO" 5; }; } 19178 else 19179 ac_cv_sizeof_time_t=0 19180 fi 19181fi 19182 19183fi 19184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5 19185$as_echo "$ac_cv_sizeof_time_t" >&6; } 19186 19187 19188 19189cat >>confdefs.h <<_ACEOF 19190#define SIZEOF_TIME_T $ac_cv_sizeof_time_t 19191_ACEOF 19192 19193 19194ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default" 19195if test "x$ac_cv_type_uintptr_t" = x""yes; then : 19196 19197cat >>confdefs.h <<_ACEOF 19198#define HAVE_UINTPTR_T 1 19199_ACEOF 19200 19201 19202fi 19203 19204 19205 19206 19207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 19208$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } 19209if test "${ac_cv_struct_tm+set}" = set; then : 19210 $as_echo_n "(cached) " >&6 19211else 19212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19213/* end confdefs.h. */ 19214#include <sys/types.h> 19215#include <time.h> 19216 19217int 19218main () 19219{ 19220struct tm tm; 19221 int *p = &tm.tm_sec; 19222 return !p; 19223 ; 19224 return 0; 19225} 19226_ACEOF 19227if ac_fn_c_try_compile "$LINENO"; then : 19228 ac_cv_struct_tm=time.h 19229else 19230 ac_cv_struct_tm=sys/time.h 19231fi 19232rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19233fi 19234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 19235$as_echo "$ac_cv_struct_tm" >&6; } 19236if test $ac_cv_struct_tm = sys/time.h; then 19237 19238$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h 19239 19240fi 19241 19242 19243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int8_t" >&5 19244$as_echo_n "checking for u_int8_t... " >&6; } 19245if test "${ac_cv_type_u_int8_t+set}" = set; then : 19246 $as_echo_n "(cached) " >&6 19247else 19248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19249/* end confdefs.h. */ 19250#include <sys/types.h> 19251int 19252main () 19253{ 19254u_int8_t len = 42; return 0; 19255 ; 19256 return 0; 19257} 19258_ACEOF 19259if ac_fn_c_try_compile "$LINENO"; then : 19260 ac_cv_type_u_int8_t=yes 19261else 19262 ac_cv_type_u_int8_t=no 19263fi 19264rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19265 19266fi 19267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_u_int8_t" >&5 19268$as_echo "$ac_cv_type_u_int8_t" >&6; } 19269if test $ac_cv_type_u_int8_t = yes; then 19270 19271$as_echo "#define HAVE_TYPE_U_INT8_T 1" >>confdefs.h 19272 19273fi 19274 19275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int64_t" >&5 19276$as_echo_n "checking for u_int64_t... " >&6; } 19277if test "${ac_cv_type_u_int64_t+set}" = set; then : 19278 $as_echo_n "(cached) " >&6 19279else 19280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19281/* end confdefs.h. */ 19282#include <sys/types.h> 19283int 19284main () 19285{ 19286u_int64_t len = 42; return 0; 19287 ; 19288 return 0; 19289} 19290_ACEOF 19291if ac_fn_c_try_compile "$LINENO"; then : 19292 ac_cv_type_u_int64_t=yes 19293else 19294 ac_cv_type_u_int64_t=no 19295fi 19296rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19297 19298fi 19299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_u_int64_t" >&5 19300$as_echo "$ac_cv_type_u_int64_t" >&6; } 19301if test $ac_cv_type_u_int64_t = yes; then 19302 19303$as_echo "#define HAVE_TYPE_U_INT64_T 1" >>confdefs.h 19304 19305fi 19306 19307# 19308# Look for in_port_t. 19309# 19310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for in_port_t" >&5 19311$as_echo_n "checking for in_port_t... " >&6; } 19312cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19313/* end confdefs.h. */ 19314 19315#include <sys/types.h> 19316#include <netinet/in.h> 19317int 19318main () 19319{ 19320in_port_t port = 25; return (0); 19321 ; 19322 return 0; 19323} 19324_ACEOF 19325if ac_fn_c_try_compile "$LINENO"; then : 19326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19327$as_echo "yes" >&6; } 19328 19329else 19330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19331$as_echo "no" >&6; } 19332 19333$as_echo "#define ISC_PLATFORM_NEEDPORTT 1" >>confdefs.h 19334 19335 19336fi 19337rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19338 19339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a fallback value for HZ" >&5 19340$as_echo_n "checking for a fallback value for HZ... " >&6; } 19341if test "${ac_cv_var_default_hz+set}" = set; then : 19342 $as_echo_n "(cached) " >&6 19343else 19344 ac_cv_var_default_hz=100 19345case "$host" in 19346 alpha*-dec-osf4*|alpha*-dec-osf5*) 19347 ac_cv_var_default_hz=1024 19348 ;; 19349 mips-dec-ultrix4*) 19350 ac_cv_var_default_hz=256 19351 ;; 19352esac 19353fi 19354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_default_hz" >&5 19355$as_echo "$ac_cv_var_default_hz" >&6; } 19356 19357cat >>confdefs.h <<_ACEOF 19358#define DEFAULT_HZ $ac_cv_var_default_hz 19359_ACEOF 19360 19361 19362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need to override the system's value for HZ" >&5 19363$as_echo_n "checking if we need to override the system's value for HZ... " >&6; } 19364if test "${ac_cv_var_override_hz+set}" = set; then : 19365 $as_echo_n "(cached) " >&6 19366else 19367 ac_cv_var_override_hz=no 19368case "$host" in 19369 alpha*-dec-osf4*|alpha*-dec-osf5*) 19370 ac_cv_var_override_hz=yes 19371 ;; 19372 mips-dec-ultrix4*) 19373 ac_cv_var_override_hz=yes 19374 ;; 19375 *-*-freebsd*) 19376 ac_cv_var_override_hz=yes 19377 ;; 19378 *-*-sunos4*) 19379 ac_cv_var_override_hz=yes 19380 ;; 19381esac 19382fi 19383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_override_hz" >&5 19384$as_echo "$ac_cv_var_override_hz" >&6; } 19385case "$ac_cv_var_override_hz" in 19386 yes) 19387 19388$as_echo "#define OVERRIDE_HZ 1" >>confdefs.h 19389 19390 ;; 19391esac 19392 19393 19394 19395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct rt_msghdr" >&5 19396$as_echo_n "checking for struct rt_msghdr... " >&6; } 19397if test "${ac_cv_struct_rt_msghdr+set}" = set; then : 19398 $as_echo_n "(cached) " >&6 19399else 19400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19401/* end confdefs.h. */ 19402 19403#include <sys/types.h> 19404#include <sys/socket.h> 19405#include <net/if.h> 19406#include <net/route.h> 19407int 19408main () 19409{ 19410struct rt_msghdr p; 19411 ; 19412 return 0; 19413} 19414_ACEOF 19415if ac_fn_c_try_compile "$LINENO"; then : 19416 ac_cv_struct_rt_msghdr=yes 19417else 19418 ac_cv_struct_rt_msghdr=no 19419fi 19420rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19421 19422fi 19423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_rt_msghdr" >&5 19424$as_echo "$ac_cv_struct_rt_msghdr" >&6; } 19425 19426if test $ac_cv_struct_rt_msghdr = yes; then 19427 19428$as_echo "#define HAS_ROUTING_SOCKET 1" >>confdefs.h 19429 19430fi 19431 19432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking struct sigaction for sa_sigaction" >&5 19433$as_echo_n "checking struct sigaction for sa_sigaction... " >&6; } 19434if test "${ac_cv_struct_sigaction_has_sa_sigaction+set}" = set; then : 19435 $as_echo_n "(cached) " >&6 19436else 19437 19438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19439/* end confdefs.h. */ 19440#include <signal.h> 19441int 19442main () 19443{ 19444struct sigaction act; act.sa_sigaction = 0; 19445 ; 19446 return 0; 19447} 19448_ACEOF 19449if ac_fn_c_try_compile "$LINENO"; then : 19450 ac_cv_struct_sigaction_has_sa_sigaction=yes 19451else 19452 ac_cv_struct_sigaction_has_sa_sigaction=no 19453 19454fi 19455rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19456 19457 19458fi 19459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sigaction_has_sa_sigaction" >&5 19460$as_echo "$ac_cv_struct_sigaction_has_sa_sigaction" >&6; } 19461if test $ac_cv_struct_sigaction_has_sa_sigaction = yes; then 19462 19463$as_echo "#define HAVE_SA_SIGACTION_IN_STRUCT_SIGACTION 1" >>confdefs.h 19464 19465fi 19466 19467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct ppsclockev" >&5 19468$as_echo_n "checking for struct ppsclockev... " >&6; } 19469if test "${ac_cv_struct_ppsclockev+set}" = set; then : 19470 $as_echo_n "(cached) " >&6 19471else 19472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19473/* end confdefs.h. */ 19474 19475#include <sys/types.h> 19476#ifdef HAVE_SYS_TERMIOS_H 19477# include <sys/termios.h> 19478#endif 19479#ifdef HAVE_SYS_TIME_H 19480# include <sys/time.h> 19481#endif 19482#ifdef HAVE_SYS_PPSCLOCK_H 19483# include <sys/ppsclock.h> 19484#endif 19485int 19486main () 19487{ 19488 19489extern struct ppsclockev *pce; 19490return pce->serial; 19491 ; 19492 return 0; 19493} 19494_ACEOF 19495if ac_fn_c_try_compile "$LINENO"; then : 19496 ac_cv_struct_ppsclockev=yes 19497else 19498 ac_cv_struct_ppsclockev=no 19499fi 19500rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19501 19502fi 19503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_ppsclockev" >&5 19504$as_echo "$ac_cv_struct_ppsclockev" >&6; } 19505if test $ac_cv_struct_ppsclockev = yes; then 19506 19507$as_echo "#define HAVE_STRUCT_PPSCLOCKEV 1" >>confdefs.h 19508 19509fi 19510 19511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking struct sockaddr for sa_len" >&5 19512$as_echo_n "checking struct sockaddr for sa_len... " >&6; } 19513if test "${ac_cv_struct_sockaddr_has_sa_len+set}" = set; then : 19514 $as_echo_n "(cached) " >&6 19515else 19516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19517/* end confdefs.h. */ 19518 19519#include <sys/types.h> 19520#include <sys/socket.h> 19521int 19522main () 19523{ 19524 19525extern struct sockaddr *ps; 19526return ps->sa_len; 19527 ; 19528 return 0; 19529} 19530_ACEOF 19531if ac_fn_c_try_compile "$LINENO"; then : 19532 ac_cv_struct_sockaddr_has_sa_len=yes 19533else 19534 ac_cv_struct_sockaddr_has_sa_len=no 19535fi 19536rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19537 19538fi 19539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_has_sa_len" >&5 19540$as_echo "$ac_cv_struct_sockaddr_has_sa_len" >&6; } 19541if test $ac_cv_struct_sockaddr_has_sa_len = yes; then 19542 19543$as_echo "#define HAVE_SA_LEN_IN_STRUCT_SOCKADDR 1" >>confdefs.h 19544 19545fi 19546 19547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_storage" >&5 19548$as_echo_n "checking for struct sockaddr_storage... " >&6; } 19549if test "${ac_cv_struct_sockaddr_storage+set}" = set; then : 19550 $as_echo_n "(cached) " >&6 19551else 19552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19553/* end confdefs.h. */ 19554 19555#include <sys/types.h> 19556#include <sys/socket.h> 19557#include <netinet/in.h> 19558 19559int 19560main () 19561{ 19562 19563struct sockaddr_storage n; 19564 ; 19565 return 0; 19566} 19567_ACEOF 19568if ac_fn_c_try_compile "$LINENO"; then : 19569 ac_cv_struct_sockaddr_storage=yes 19570else 19571 ac_cv_struct_sockaddr_storage=no 19572fi 19573rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19574 19575fi 19576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_storage" >&5 19577$as_echo "$ac_cv_struct_sockaddr_storage" >&6; } 19578if test $ac_cv_struct_sockaddr_storage = yes; then 19579 19580$as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h 19581 19582fi 19583 19584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ss_family field in struct sockaddr_storage" >&5 19585$as_echo_n "checking for ss_family field in struct sockaddr_storage... " >&6; } 19586if test "${ac_cv_have_ss_family_in_struct_ss+set}" = set; then : 19587 $as_echo_n "(cached) " >&6 19588else 19589 19590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19591/* end confdefs.h. */ 19592 19593#include <sys/types.h> 19594#include <sys/socket.h> 19595 19596int 19597main () 19598{ 19599 struct sockaddr_storage s; s.ss_family = 1; 19600 ; 19601 return 0; 19602} 19603_ACEOF 19604if ac_fn_c_try_compile "$LINENO"; then : 19605 ac_cv_have_ss_family_in_struct_ss="yes" 19606else 19607 ac_cv_have_ss_family_in_struct_ss="no" 19608fi 19609rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19610 19611fi 19612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_ss_family_in_struct_ss" >&5 19613$as_echo "$ac_cv_have_ss_family_in_struct_ss" >&6; } 19614if test "x$ac_cv_have_ss_family_in_struct_ss" = "xyes" ; then 19615 19616$as_echo "#define HAVE_SS_FAMILY_IN_SS 1" >>confdefs.h 19617 19618else 19619 # Hack around a problem... 19620 # HMS: This is $host because we need the -D if we are building *for* it. 19621 # HMS: 061029: Now that we separate the ss_* checks this is causing 19622 # a problem - disable it until we get to the bottom of it. 19623 case "$host" in 19624 XXX*-*-hpux11.11) CPPFLAGS="$CPPFLAGS -D_NETINET_IN6_H" 19625 ;; 19626 esac 19627fi 19628 19629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __ss_family field in struct sockaddr_storage" >&5 19630$as_echo_n "checking for __ss_family field in struct sockaddr_storage... " >&6; } 19631if test "${ac_cv_have___ss_family_in_struct_ss+set}" = set; then : 19632 $as_echo_n "(cached) " >&6 19633else 19634 19635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19636/* end confdefs.h. */ 19637 19638#include <sys/types.h> 19639#include <sys/socket.h> 19640 19641int 19642main () 19643{ 19644 struct sockaddr_storage s; s.__ss_family = 1; 19645 ; 19646 return 0; 19647} 19648_ACEOF 19649if ac_fn_c_try_compile "$LINENO"; then : 19650 ac_cv_have___ss_family_in_struct_ss="yes" 19651else 19652 ac_cv_have___ss_family_in_struct_ss="no" 19653 19654fi 19655rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19656 19657fi 19658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have___ss_family_in_struct_ss" >&5 19659$as_echo "$ac_cv_have___ss_family_in_struct_ss" >&6; } 19660if test "x$ac_cv_have___ss_family_in_struct_ss" = "xyes" ; then 19661 19662$as_echo "#define HAVE___SS_FAMILY_IN_SS 1" >>confdefs.h 19663 19664fi 19665 19666 19667 19668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ss_len field in struct sockaddr_storage" >&5 19669$as_echo_n "checking for ss_len field in struct sockaddr_storage... " >&6; } 19670if test "${ac_cv_have_ss_len_in_struct_ss+set}" = set; then : 19671 $as_echo_n "(cached) " >&6 19672else 19673 19674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19675/* end confdefs.h. */ 19676 19677#include <sys/types.h> 19678#include <sys/socket.h> 19679 19680int 19681main () 19682{ 19683 struct sockaddr_storage s; s.ss_len = 1; 19684 ; 19685 return 0; 19686} 19687_ACEOF 19688if ac_fn_c_try_compile "$LINENO"; then : 19689 ac_cv_have_ss_len_in_struct_ss="yes" 19690else 19691 ac_cv_have_ss_len_in_struct_ss="no" 19692fi 19693rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19694 19695fi 19696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_ss_len_in_struct_ss" >&5 19697$as_echo "$ac_cv_have_ss_len_in_struct_ss" >&6; } 19698if test "x$ac_cv_have_ss_len_in_struct_ss" = "xyes" ; then 19699 19700$as_echo "#define HAVE_SS_LEN_IN_SS 1" >>confdefs.h 19701 19702fi 19703 19704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __ss_len field in struct sockaddr_storage" >&5 19705$as_echo_n "checking for __ss_len field in struct sockaddr_storage... " >&6; } 19706if test "${ac_cv_have___ss_len_in_struct_ss+set}" = set; then : 19707 $as_echo_n "(cached) " >&6 19708else 19709 19710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19711/* end confdefs.h. */ 19712 19713#include <sys/types.h> 19714#include <sys/socket.h> 19715 19716int 19717main () 19718{ 19719 struct sockaddr_storage s; s.__ss_len = 1; 19720 ; 19721 return 0; 19722} 19723_ACEOF 19724if ac_fn_c_try_compile "$LINENO"; then : 19725 ac_cv_have___ss_len_in_struct_ss="yes" 19726else 19727 ac_cv_have___ss_len_in_struct_ss="no" 19728 19729fi 19730rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19731 19732fi 19733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have___ss_len_in_struct_ss" >&5 19734$as_echo "$ac_cv_have___ss_len_in_struct_ss" >&6; } 19735if test "x$ac_cv_have___ss_len_in_struct_ss" = "xyes" ; then 19736 19737$as_echo "#define HAVE___SS_LEN_IN_SS 1" >>confdefs.h 19738 19739fi 19740 19741 19742 19743case "$ac_cv_header_machine_soundcard_h$ac_cv_header_sys_soundcard_h" in 19744 *yes*) 19745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct snd_size" >&5 19746$as_echo_n "checking for struct snd_size... " >&6; } 19747if test "${ac_cv_struct_snd_size+set}" = set; then : 19748 $as_echo_n "(cached) " >&6 19749else 19750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19751/* end confdefs.h. */ 19752 19753#ifdef HAVE_MACHINE_SOUNDCARD_H 19754# include <machine/soundcard.h> 19755#endif 19756#ifdef HAVE_SYS_SOUNDCARD_H 19757# include <sys/soundcard.h> 19758#endif 19759int 19760main () 19761{ 19762 19763extern struct snd_size *ss; 19764return ss->rec_size; 19765 ; 19766 return 0; 19767} 19768_ACEOF 19769if ac_fn_c_try_compile "$LINENO"; then : 19770 ac_cv_struct_snd_size=yes 19771else 19772 ac_cv_struct_snd_size=no 19773fi 19774rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19775 19776fi 19777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_snd_size" >&5 19778$as_echo "$ac_cv_struct_snd_size" >&6; } 19779 case "$ac_cv_struct_snd_size" in 19780 yes) 19781$as_echo "#define HAVE_STRUCT_SND_SIZE 1" >>confdefs.h 19782 ;; 19783 esac 19784 ;; 19785esac 19786 19787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking struct clockinfo for hz" >&5 19788$as_echo_n "checking struct clockinfo for hz... " >&6; } 19789if test "${ac_cv_struct_clockinfo_has_hz+set}" = set; then : 19790 $as_echo_n "(cached) " >&6 19791else 19792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19793/* end confdefs.h. */ 19794 19795#include <sys/time.h> 19796int 19797main () 19798{ 19799 19800extern struct clockinfo *pc; 19801return pc->hz; 19802 ; 19803 return 0; 19804} 19805_ACEOF 19806if ac_fn_c_try_compile "$LINENO"; then : 19807 ac_cv_struct_clockinfo_has_hz=yes 19808else 19809 ac_cv_struct_clockinfo_has_hz=no 19810fi 19811rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19812 19813fi 19814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_clockinfo_has_hz" >&5 19815$as_echo "$ac_cv_struct_clockinfo_has_hz" >&6; } 19816if test $ac_cv_struct_clockinfo_has_hz = yes; then 19817 19818$as_echo "#define HAVE_HZ_IN_STRUCT_CLOCKINFO 1" >>confdefs.h 19819 19820fi 19821 19822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking struct clockinfo for tickadj" >&5 19823$as_echo_n "checking struct clockinfo for tickadj... " >&6; } 19824if test "${ac_cv_struct_clockinfo_has_tickadj+set}" = set; then : 19825 $as_echo_n "(cached) " >&6 19826else 19827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19828/* end confdefs.h. */ 19829 19830#include <sys/time.h> 19831int 19832main () 19833{ 19834 19835extern struct clockinfo *pc; 19836return pc->tickadj; 19837 ; 19838 return 0; 19839} 19840_ACEOF 19841if ac_fn_c_try_compile "$LINENO"; then : 19842 ac_cv_struct_clockinfo_has_tickadj=yes 19843else 19844 ac_cv_struct_clockinfo_has_tickadj=no 19845fi 19846rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19847 19848fi 19849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_clockinfo_has_tickadj" >&5 19850$as_echo "$ac_cv_struct_clockinfo_has_tickadj" >&6; } 19851if test $ac_cv_struct_clockinfo_has_tickadj = yes; then 19852 19853$as_echo "#define HAVE_TICKADJ_IN_STRUCT_CLOCKINFO 1" >>confdefs.h 19854 19855fi 19856 19857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec" >&5 19858$as_echo_n "checking for struct timespec... " >&6; } 19859if test "${ac_cv_struct_timespec+set}" = set; then : 19860 $as_echo_n "(cached) " >&6 19861else 19862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19863/* end confdefs.h. */ 19864 19865#include <sys/time.h> 19866/* Under SunOS, timespec is in sys/timepps.h, which needs errno.h and FRAC */ 19867#ifdef HAVE_ERRNO_H 19868# include <errno.h> 19869#endif 19870#ifdef HAVE_SYS_TIMEPPS_H 19871# define FRAC 4294967296 19872# include <sys/timepps.h> 19873#endif 19874int 19875main () 19876{ 19877struct timespec n; 19878 ; 19879 return 0; 19880} 19881_ACEOF 19882if ac_fn_c_try_compile "$LINENO"; then : 19883 ac_cv_struct_timespec=yes 19884else 19885 ac_cv_struct_timespec=no 19886fi 19887rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19888fi 19889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_timespec" >&5 19890$as_echo "$ac_cv_struct_timespec" >&6; } 19891if test $ac_cv_struct_timespec = yes; then 19892 19893$as_echo "#define HAVE_STRUCT_TIMESPEC 1" >>confdefs.h 19894 19895fi 19896 19897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct ntptimeval" >&5 19898$as_echo_n "checking for struct ntptimeval... " >&6; } 19899if test "${ac_cv_struct_ntptimeval+set}" = set; then : 19900 $as_echo_n "(cached) " >&6 19901else 19902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19903/* end confdefs.h. */ 19904 19905#include <sys/time.h> 19906#include <sys/timex.h> 19907int 19908main () 19909{ 19910struct ntptimeval n; 19911 ; 19912 return 0; 19913} 19914_ACEOF 19915if ac_fn_c_try_compile "$LINENO"; then : 19916 ac_cv_struct_ntptimeval=yes 19917else 19918 ac_cv_struct_ntptimeval=no 19919fi 19920rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19921fi 19922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_ntptimeval" >&5 19923$as_echo "$ac_cv_struct_ntptimeval" >&6; } 19924if test $ac_cv_struct_ntptimeval = yes; then 19925 19926$as_echo "#define HAVE_STRUCT_NTPTIMEVAL 1" >>confdefs.h 19927 19928fi 19929 19930ac_fn_c_check_member "$LINENO" "struct ntptimeval" "time.tv_nsec" "ac_cv_member_struct_ntptimeval_time_tv_nsec" "#ifdef HAVE_SYS_TIME_H 19931#include <sys/time.h> 19932#else 19933# ifdef HAVE_TIME_H 19934# include <time.h> 19935# endif 19936#endif 19937#ifdef HAVE_SYS_TIMEX_H 19938#include <sys/timex.h> 19939#else 19940# ifdef HAVE_TIMEX_H 19941# include <timex.h> 19942# endif 19943#endif 19944" 19945if test "x$ac_cv_member_struct_ntptimeval_time_tv_nsec" = x""yes; then : 19946 19947cat >>confdefs.h <<_ACEOF 19948#define HAVE_STRUCT_NTPTIMEVAL_TIME_TV_NSEC 1 19949_ACEOF 19950 19951 19952fi 19953 19954 19955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 19956$as_echo_n "checking for inline... " >&6; } 19957if test "${ac_cv_c_inline+set}" = set; then : 19958 $as_echo_n "(cached) " >&6 19959else 19960 ac_cv_c_inline=no 19961for ac_kw in inline __inline__ __inline; do 19962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19963/* end confdefs.h. */ 19964#ifndef __cplusplus 19965typedef int foo_t; 19966static $ac_kw foo_t static_foo () {return 0; } 19967$ac_kw foo_t foo () {return 0; } 19968#endif 19969 19970_ACEOF 19971if ac_fn_c_try_compile "$LINENO"; then : 19972 ac_cv_c_inline=$ac_kw 19973fi 19974rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19975 test "$ac_cv_c_inline" != no && break 19976done 19977 19978fi 19979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 19980$as_echo "$ac_cv_c_inline" >&6; } 19981 19982case $ac_cv_c_inline in 19983 inline | yes) ;; 19984 *) 19985 case $ac_cv_c_inline in 19986 no) ac_val=;; 19987 *) ac_val=$ac_cv_c_inline;; 19988 esac 19989 cat >>confdefs.h <<_ACEOF 19990#ifndef __cplusplus 19991#define inline $ac_val 19992#endif 19993_ACEOF 19994 ;; 19995esac 19996 19997 19998case "$ac_cv_c_inline" in 19999 '') 20000 ;; 20001 *) 20002 20003$as_echo "#define HAVE_INLINE 1" >>confdefs.h 20004 20005 20006esac 20007 20008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5 20009$as_echo_n "checking whether char is unsigned... " >&6; } 20010if test "${ac_cv_c_char_unsigned+set}" = set; then : 20011 $as_echo_n "(cached) " >&6 20012else 20013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20014/* end confdefs.h. */ 20015$ac_includes_default 20016int 20017main () 20018{ 20019static int test_array [1 - 2 * !(((char) -1) < 0)]; 20020test_array [0] = 0 20021 20022 ; 20023 return 0; 20024} 20025_ACEOF 20026if ac_fn_c_try_compile "$LINENO"; then : 20027 ac_cv_c_char_unsigned=no 20028else 20029 ac_cv_c_char_unsigned=yes 20030fi 20031rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20032fi 20033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5 20034$as_echo "$ac_cv_c_char_unsigned" >&6; } 20035if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then 20036 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h 20037 20038fi 20039 # The cast to long int works around a bug in the HP C Compiler 20040# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 20041# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 20042# This bug is HP SR number 8606223364. 20043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed char" >&5 20044$as_echo_n "checking size of signed char... " >&6; } 20045if test "${ac_cv_sizeof_signed_char+set}" = set; then : 20046 $as_echo_n "(cached) " >&6 20047else 20048 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed char))" "ac_cv_sizeof_signed_char" "$ac_includes_default"; then : 20049 20050else 20051 if test "$ac_cv_type_signed_char" = yes; then 20052 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 20053$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 20054{ as_fn_set_status 77 20055as_fn_error "cannot compute sizeof (signed char) 20056See \`config.log' for more details." "$LINENO" 5; }; } 20057 else 20058 ac_cv_sizeof_signed_char=0 20059 fi 20060fi 20061 20062fi 20063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_char" >&5 20064$as_echo "$ac_cv_sizeof_signed_char" >&6; } 20065 20066 20067 20068cat >>confdefs.h <<_ACEOF 20069#define SIZEOF_SIGNED_CHAR $ac_cv_sizeof_signed_char 20070_ACEOF 20071 20072 20073# The cast to long int works around a bug in the HP C Compiler 20074# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 20075# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 20076# This bug is HP SR number 8606223364. 20077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 20078$as_echo_n "checking size of int... " >&6; } 20079if test "${ac_cv_sizeof_int+set}" = set; then : 20080 $as_echo_n "(cached) " >&6 20081else 20082 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : 20083 20084else 20085 if test "$ac_cv_type_int" = yes; then 20086 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 20087$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 20088{ as_fn_set_status 77 20089as_fn_error "cannot compute sizeof (int) 20090See \`config.log' for more details." "$LINENO" 5; }; } 20091 else 20092 ac_cv_sizeof_int=0 20093 fi 20094fi 20095 20096fi 20097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 20098$as_echo "$ac_cv_sizeof_int" >&6; } 20099 20100 20101 20102cat >>confdefs.h <<_ACEOF 20103#define SIZEOF_INT $ac_cv_sizeof_int 20104_ACEOF 20105 20106 20107# The cast to long int works around a bug in the HP C Compiler 20108# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 20109# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 20110# This bug is HP SR number 8606223364. 20111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 20112$as_echo_n "checking size of long... " >&6; } 20113if test "${ac_cv_sizeof_long+set}" = set; then : 20114 $as_echo_n "(cached) " >&6 20115else 20116 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : 20117 20118else 20119 if test "$ac_cv_type_long" = yes; then 20120 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 20121$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 20122{ as_fn_set_status 77 20123as_fn_error "cannot compute sizeof (long) 20124See \`config.log' for more details." "$LINENO" 5; }; } 20125 else 20126 ac_cv_sizeof_long=0 20127 fi 20128fi 20129 20130fi 20131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 20132$as_echo "$ac_cv_sizeof_long" >&6; } 20133 20134 20135 20136cat >>confdefs.h <<_ACEOF 20137#define SIZEOF_LONG $ac_cv_sizeof_long 20138_ACEOF 20139 20140 20141 20142ac_fn_c_check_type "$LINENO" "s_char" "ac_cv_type_s_char" "$ac_includes_default" 20143if test "x$ac_cv_type_s_char" = x""yes; then : 20144 20145cat >>confdefs.h <<_ACEOF 20146#define HAVE_S_CHAR 1 20147_ACEOF 20148 20149 20150fi 20151 20152case "$ac_cv_c_char_unsigned$ac_cv_sizeof_signed_char$ac_cv_type_s_char" in 20153 *yes) 20154 # We have a typedef for s_char. Might as well believe it... 20155 ;; 20156 no0no) 20157 # We have signed chars, can't say 'signed char', no s_char typedef. 20158 20159$as_echo "#define NEED_S_CHAR_TYPEDEF 1" >>confdefs.h 20160 20161 ;; 20162 no1no) 20163 # We have signed chars, can say 'signed char', no s_char typedef. 20164 $as_echo "#define NEED_S_CHAR_TYPEDEF 1" >>confdefs.h 20165 20166 ;; 20167 yes0no) 20168 # We have unsigned chars, can't say 'signed char', no s_char typedef. 20169 as_fn_error "No way to specify a signed character!" "$LINENO" 5 20170 ;; 20171 yes1no) 20172 # We have unsigned chars, can say 'signed char', no s_char typedef. 20173 $as_echo "#define NEED_S_CHAR_TYPEDEF 1" >>confdefs.h 20174 20175 ;; 20176esac 20177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 20178$as_echo_n "checking for uid_t in sys/types.h... " >&6; } 20179if test "${ac_cv_type_uid_t+set}" = set; then : 20180 $as_echo_n "(cached) " >&6 20181else 20182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20183/* end confdefs.h. */ 20184#include <sys/types.h> 20185 20186_ACEOF 20187if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 20188 $EGREP "uid_t" >/dev/null 2>&1; then : 20189 ac_cv_type_uid_t=yes 20190else 20191 ac_cv_type_uid_t=no 20192fi 20193rm -f conftest* 20194 20195fi 20196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 20197$as_echo "$ac_cv_type_uid_t" >&6; } 20198if test $ac_cv_type_uid_t = no; then 20199 20200$as_echo "#define uid_t int" >>confdefs.h 20201 20202 20203$as_echo "#define gid_t int" >>confdefs.h 20204 20205fi 20206 20207 20208case "$host" in 20209 *-*-aix[456]*) 20210 # (prr) aix 4.1 doesn't have clock_settime, but in aix 4.3 it's a stub 20211 # (returning ENOSYS). I didn't check 4.2. If, in the future, 20212 # IBM pulls its thumbs out long enough to implement clock_settime, 20213 # this conditional will need to change. Maybe use AC_TRY_RUN 20214 # instead to try to set the time to itself and check errno. 20215 ;; 20216 *) for ac_func in clock_gettime clock_settime 20217do : 20218 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 20219ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 20220eval as_val=\$$as_ac_var 20221 if test "x$as_val" = x""yes; then : 20222 cat >>confdefs.h <<_ACEOF 20223#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 20224_ACEOF 20225 20226fi 20227done 20228 20229 ;; 20230esac 20231for ac_func in daemon 20232do : 20233 ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon" 20234if test "x$ac_cv_func_daemon" = x""yes; then : 20235 cat >>confdefs.h <<_ACEOF 20236#define HAVE_DAEMON 1 20237_ACEOF 20238 20239fi 20240done 20241 20242for ac_func in finite 20243do : 20244 ac_fn_c_check_func "$LINENO" "finite" "ac_cv_func_finite" 20245if test "x$ac_cv_func_finite" = x""yes; then : 20246 cat >>confdefs.h <<_ACEOF 20247#define HAVE_FINITE 1 20248_ACEOF 20249 20250else 20251 for ac_func in isfinite 20252do : 20253 ac_fn_c_check_func "$LINENO" "isfinite" "ac_cv_func_isfinite" 20254if test "x$ac_cv_func_isfinite" = x""yes; then : 20255 cat >>confdefs.h <<_ACEOF 20256#define HAVE_ISFINITE 1 20257_ACEOF 20258 20259else 20260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isfinite with <math.h>" >&5 20261$as_echo_n "checking for isfinite with <math.h>... " >&6; } 20262 _libs=$LIBS 20263 LIBS="$LIBS -lm" 20264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20265/* end confdefs.h. */ 20266#include <math.h> 20267int 20268main () 20269{ 20270float f = 0.0; isfinite(f) 20271 ; 20272 return 0; 20273} 20274_ACEOF 20275if ac_fn_c_try_link "$LINENO"; then : 20276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20277$as_echo "yes" >&6; } 20278 $as_echo "#define HAVE_ISFINITE 1" >>confdefs.h 20279 20280else 20281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20282$as_echo "no" >&6; } 20283fi 20284rm -f core conftest.err conftest.$ac_objext \ 20285 conftest$ac_exeext conftest.$ac_ext 20286 LIBS=$_libs 20287fi 20288done 20289 20290fi 20291done 20292 20293for ac_func in getbootfile getclock getdtablesize 20294do : 20295 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 20296ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 20297eval as_val=\$$as_ac_var 20298 if test "x$as_val" = x""yes; then : 20299 cat >>confdefs.h <<_ACEOF 20300#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 20301_ACEOF 20302 20303fi 20304done 20305 20306 20307# Check whether --enable-getifaddrs was given. 20308if test "${enable_getifaddrs+set}" = set; then : 20309 enableval=$enable_getifaddrs; want_getifaddrs="$enableval" 20310else 20311 want_getifaddrs="yes" 20312fi 20313 20314 20315case $want_getifaddrs in 20316yes|glibc) 20317# 20318# Do we have getifaddrs() ? 20319# 20320case $host in 20321*-*linux*) 20322 # Some recent versions of glibc support getifaddrs() which does not 20323 # provide AF_INET6 addresses while the function provided by the USAGI 20324 # project handles the AF_INET6 case correctly. We need to avoid 20325 # using the former but prefer the latter unless overridden by 20326 # --enable-getifaddrs=glibc. 20327 if test $want_getifaddrs = glibc 20328 then 20329 for ac_func in getifaddrs 20330do : 20331 ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs" 20332if test "x$ac_cv_func_getifaddrs" = x""yes; then : 20333 cat >>confdefs.h <<_ACEOF 20334#define HAVE_GETIFADDRS 1 20335_ACEOF 20336 20337fi 20338done 20339 20340 else 20341 save_LIBS="$LIBS" 20342 LIBS="-L/usr/local/v6/lib $LIBS" 20343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getifaddrs in -linet6" >&5 20344$as_echo_n "checking for getifaddrs in -linet6... " >&6; } 20345if test "${ac_cv_lib_inet6_getifaddrs+set}" = set; then : 20346 $as_echo_n "(cached) " >&6 20347else 20348 ac_check_lib_save_LIBS=$LIBS 20349LIBS="-linet6 $LIBS" 20350cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20351/* end confdefs.h. */ 20352 20353/* Override any GCC internal prototype to avoid an error. 20354 Use char because int might match the return type of a GCC 20355 builtin and then its argument prototype would still apply. */ 20356#ifdef __cplusplus 20357extern "C" 20358#endif 20359char getifaddrs (); 20360int 20361main () 20362{ 20363return getifaddrs (); 20364 ; 20365 return 0; 20366} 20367_ACEOF 20368if ac_fn_c_try_link "$LINENO"; then : 20369 ac_cv_lib_inet6_getifaddrs=yes 20370else 20371 ac_cv_lib_inet6_getifaddrs=no 20372fi 20373rm -f core conftest.err conftest.$ac_objext \ 20374 conftest$ac_exeext conftest.$ac_ext 20375LIBS=$ac_check_lib_save_LIBS 20376fi 20377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet6_getifaddrs" >&5 20378$as_echo "$ac_cv_lib_inet6_getifaddrs" >&6; } 20379if test "x$ac_cv_lib_inet6_getifaddrs" = x""yes; then : 20380 LIBS="$LIBS -linet6" 20381 $as_echo "#define HAVE_GETIFADDRS 1" >>confdefs.h 20382 20383else 20384 LIBS=${save_LIBS} 20385fi 20386 20387 fi 20388 ;; 20389*) 20390 for ac_func in getifaddrs 20391do : 20392 ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs" 20393if test "x$ac_cv_func_getifaddrs" = x""yes; then : 20394 cat >>confdefs.h <<_ACEOF 20395#define HAVE_GETIFADDRS 1 20396_ACEOF 20397 20398fi 20399done 20400 20401 ;; 20402esac 20403;; 20404no) 20405;; 20406esac 20407 20408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking type of socklen arg for getsockname()" >&5 20409$as_echo_n "checking type of socklen arg for getsockname()... " >&6; } 20410if test "${ac_cv_func_getsockname_arg2+set}" = set; then : 20411 $as_echo_n "(cached) " >&6 20412else 20413 if test "${ac_cv_func_getsockname_socklen_type+set}" = set; then : 20414 $as_echo_n "(cached) " >&6 20415else 20416 for ac_cv_func_getsockname_arg2 in 'struct sockaddr *' 'void *'; do 20417 for ac_cv_func_getsockname_socklen_type in 'socklen_t' 'size_t' 'unsigned int' 'int'; do 20418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20419/* end confdefs.h. */ 20420#ifdef HAVE_SYS_TYPES_H 20421#include <sys/types.h> 20422#endif 20423#ifdef HAVE_SYS_SOCKET_H 20424#include <sys/socket.h> 20425#endif 20426extern getsockname (int, $ac_cv_func_getsockname_arg2, $ac_cv_func_getsockname_socklen_type *); 20427int 20428main () 20429{ 20430 20431 ; 20432 return 0; 20433} 20434_ACEOF 20435if ac_fn_c_try_compile "$LINENO"; then : 20436 ac_not_found=no ; break 2 20437else 20438 ac_not_found=yes 20439fi 20440rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20441 done 20442 done 20443 20444fi 20445 20446fi 20447if test "$ac_not_found" = yes; then 20448 ac_cv_func_getsockname_socklen_type='socklen_t' 20449fi 20450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getsockname_socklen_type" >&5 20451$as_echo "$ac_cv_func_getsockname_socklen_type" >&6; } 20452 20453cat >>confdefs.h <<_ACEOF 20454#define GETSOCKNAME_SOCKLEN_TYPE $ac_cv_func_getsockname_socklen_type 20455_ACEOF 20456 20457 20458for ac_func in getrusage 20459do : 20460 ac_fn_c_check_func "$LINENO" "getrusage" "ac_cv_func_getrusage" 20461if test "x$ac_cv_func_getrusage" = x""yes; then : 20462 cat >>confdefs.h <<_ACEOF 20463#define HAVE_GETRUSAGE 1 20464_ACEOF 20465 20466fi 20467done 20468 20469ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday" 20470if test "x$ac_cv_func_gettimeofday" = x""yes; then : 20471 20472else 20473 20474case "$host" in 20475 *-*-mpeix*) ac_cv_func_gettimeofday=yes 20476 ;; 20477esac 20478fi 20479 20480case "$host" in 20481 *-pc-cygwin*) 20482 ;; 20483 *) for ac_func in getuid 20484do : 20485 ac_fn_c_check_func "$LINENO" "getuid" "ac_cv_func_getuid" 20486if test "x$ac_cv_func_getuid" = x""yes; then : 20487 cat >>confdefs.h <<_ACEOF 20488#define HAVE_GETUID 1 20489_ACEOF 20490 20491fi 20492done 20493 20494 ;; 20495esac 20496for ac_func in hstrerror 20497do : 20498 ac_fn_c_check_func "$LINENO" "hstrerror" "ac_cv_func_hstrerror" 20499if test "x$ac_cv_func_hstrerror" = x""yes; then : 20500 cat >>confdefs.h <<_ACEOF 20501#define HAVE_HSTRERROR 1 20502_ACEOF 20503 20504fi 20505done 20506 20507 20508# 20509# Check for if_nametoindex() for IPv6 scoped addresses support 20510# 20511ac_fn_c_check_func "$LINENO" "if_nametoindex" "ac_cv_func_if_nametoindex" 20512if test "x$ac_cv_func_if_nametoindex" = x""yes; then : 20513 ac_cv_have_if_nametoindex=yes 20514else 20515 ac_cv_have_if_nametoindex=no 20516fi 20517 20518case $ac_cv_have_if_nametoindex in 20519 no) 20520 case "$host" in 20521 *-hp-hpux*) 20522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for if_nametoindex in -lipv6" >&5 20523$as_echo_n "checking for if_nametoindex in -lipv6... " >&6; } 20524if test "${ac_cv_lib_ipv6_if_nametoindex+set}" = set; then : 20525 $as_echo_n "(cached) " >&6 20526else 20527 ac_check_lib_save_LIBS=$LIBS 20528LIBS="-lipv6 $LIBS" 20529cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20530/* end confdefs.h. */ 20531 20532/* Override any GCC internal prototype to avoid an error. 20533 Use char because int might match the return type of a GCC 20534 builtin and then its argument prototype would still apply. */ 20535#ifdef __cplusplus 20536extern "C" 20537#endif 20538char if_nametoindex (); 20539int 20540main () 20541{ 20542return if_nametoindex (); 20543 ; 20544 return 0; 20545} 20546_ACEOF 20547if ac_fn_c_try_link "$LINENO"; then : 20548 ac_cv_lib_ipv6_if_nametoindex=yes 20549else 20550 ac_cv_lib_ipv6_if_nametoindex=no 20551fi 20552rm -f core conftest.err conftest.$ac_objext \ 20553 conftest$ac_exeext conftest.$ac_ext 20554LIBS=$ac_check_lib_save_LIBS 20555fi 20556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipv6_if_nametoindex" >&5 20557$as_echo "$ac_cv_lib_ipv6_if_nametoindex" >&6; } 20558if test "x$ac_cv_lib_ipv6_if_nametoindex" = x""yes; then : 20559 ac_cv_have_if_nametoindex=yes 20560 LIBS="-lipv6 $LIBS" 20561fi 20562 20563 ;; 20564 esac 20565esac 20566case $ac_cv_have_if_nametoindex in 20567 yes) 20568 20569$as_echo "#define ISC_PLATFORM_HAVEIFNAMETOINDEX 1" >>confdefs.h 20570 20571 ;; 20572esac 20573 20574ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop" 20575if test "x$ac_cv_func_inet_ntop" = x""yes; then : 20576 20577else 20578 20579$as_echo "#define ISC_PLATFORM_NEEDNTOP 1" >>confdefs.h 20580 20581fi 20582 20583ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton" 20584if test "x$ac_cv_func_inet_pton" = x""yes; then : 20585 20586else 20587 20588$as_echo "#define ISC_PLATFORM_NEEDPTON 1" >>confdefs.h 20589 20590fi 20591 20592ac_fn_c_check_func "$LINENO" "inet_aton" "ac_cv_func_inet_aton" 20593if test "x$ac_cv_func_inet_aton" = x""yes; then : 20594 20595else 20596 20597$as_echo "#define ISC_PLATFORM_NEEDATON 1" >>confdefs.h 20598 20599fi 20600 20601for ac_func in K_open kvm_open memcpy memmove memset 20602do : 20603 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 20604ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 20605eval as_val=\$$as_ac_var 20606 if test "x$as_val" = x""yes; then : 20607 cat >>confdefs.h <<_ACEOF 20608#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 20609_ACEOF 20610 20611fi 20612done 20613 20614case "$host" in 20615 *-*-sco3.2v5.0.*) 20616 # Just stubs. Idiots. 20617 ;; 20618 *) for ac_func in mkstemp 20619do : 20620 ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp" 20621if test "x$ac_cv_func_mkstemp" = x""yes; then : 20622 cat >>confdefs.h <<_ACEOF 20623#define HAVE_MKSTEMP 1 20624_ACEOF 20625 20626fi 20627done 20628 20629 ;; 20630esac 20631for ac_func in mktime 20632do : 20633 ac_fn_c_check_func "$LINENO" "mktime" "ac_cv_func_mktime" 20634if test "x$ac_cv_func_mktime" = x""yes; then : 20635 cat >>confdefs.h <<_ACEOF 20636#define HAVE_MKTIME 1 20637_ACEOF 20638 20639fi 20640done 20641 20642case "$host" in 20643 *-*-aix[456]*) 20644 # Just a stub. Idiots. 20645 ;; 20646 *-*-irix[45]*) 20647 # Just a stub in "old" Irix. Idiots. 20648 ;; 20649 *-*-*linux*) 20650 # there, but more trouble than it is worth for now (resolver problems) 20651 ;; 20652 *-*-qnx*) 20653 # Apparently there but not working in QNX. Idiots? 20654 ;; 20655 *-*-sco3.2v5.0.*) 20656 # Just a stub. Idiots. 20657 ;; 20658 alpha*-dec-osf4*|alpha*-dec-osf5*) 20659 # mlockall is there, as a #define calling memlk via <sys/mman.h> 20660 # Not easy to test for - cheat. 20661 for ac_func in memlk 20662do : 20663 ac_fn_c_check_func "$LINENO" "memlk" "ac_cv_func_memlk" 20664if test "x$ac_cv_func_memlk" = x""yes; then : 20665 cat >>confdefs.h <<_ACEOF 20666#define HAVE_MEMLK 1 20667_ACEOF 20668 ac_cv_func_mlockall='yes' 20669fi 20670done 20671 20672 for ac_func in mlockall 20673do : 20674 ac_fn_c_check_func "$LINENO" "mlockall" "ac_cv_func_mlockall" 20675if test "x$ac_cv_func_mlockall" = x""yes; then : 20676 cat >>confdefs.h <<_ACEOF 20677#define HAVE_MLOCKALL 1 20678_ACEOF 20679 20680fi 20681done 20682 20683 ;; 20684 *) for ac_func in mlockall 20685do : 20686 ac_fn_c_check_func "$LINENO" "mlockall" "ac_cv_func_mlockall" 20687if test "x$ac_cv_func_mlockall" = x""yes; then : 20688 cat >>confdefs.h <<_ACEOF 20689#define HAVE_MLOCKALL 1 20690_ACEOF 20691 20692fi 20693done 20694 20695 ;; 20696esac 20697for ac_func in nice nlist 20698do : 20699 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 20700ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 20701eval as_val=\$$as_ac_var 20702 if test "x$as_val" = x""yes; then : 20703 cat >>confdefs.h <<_ACEOF 20704#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 20705_ACEOF 20706 20707fi 20708done 20709 20710case "$host" in 20711 *-*-solaris2.6) 20712 # Broken... 20713 ;; 20714 *) for ac_func in ntp_adjtime ntp_gettime 20715do : 20716 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 20717ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 20718eval as_val=\$$as_ac_var 20719 if test "x$as_val" = x""yes; then : 20720 cat >>confdefs.h <<_ACEOF 20721#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 20722_ACEOF 20723 20724fi 20725done 20726 20727 ;; 20728esac 20729for ac_func in plock pututline pututxline readlink recvmsg rtprio 20730do : 20731 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 20732ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 20733eval as_val=\$$as_ac_var 20734 if test "x$as_val" = x""yes; then : 20735 cat >>confdefs.h <<_ACEOF 20736#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 20737_ACEOF 20738 20739fi 20740done 20741 20742case "$host" in 20743 *-*-aix[456]*) 20744 # Just a stub in AIX 4. Idiots. 20745 ;; 20746 *-*-solaris2.5*) 20747 # Just stubs in solaris2.5. Idiots. 20748 ;; 20749 *) for ac_func in sched_setscheduler 20750do : 20751 ac_fn_c_check_func "$LINENO" "sched_setscheduler" "ac_cv_func_sched_setscheduler" 20752if test "x$ac_cv_func_sched_setscheduler" = x""yes; then : 20753 cat >>confdefs.h <<_ACEOF 20754#define HAVE_SCHED_SETSCHEDULER 1 20755_ACEOF 20756 20757fi 20758done 20759 20760 ;; 20761esac 20762for ac_func in setlinebuf setpgid setpriority setsid 20763do : 20764 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 20765ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 20766eval as_val=\$$as_ac_var 20767 if test "x$as_val" = x""yes; then : 20768 cat >>confdefs.h <<_ACEOF 20769#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 20770_ACEOF 20771 20772fi 20773done 20774 20775for ac_func in setrlimit 20776do : 20777 ac_fn_c_check_func "$LINENO" "setrlimit" "ac_cv_func_setrlimit" 20778if test "x$ac_cv_func_setrlimit" = x""yes; then : 20779 cat >>confdefs.h <<_ACEOF 20780#define HAVE_SETRLIMIT 1 20781_ACEOF 20782 20783fi 20784done 20785 20786for ac_func in settimeofday 20787do : 20788 ac_fn_c_check_func "$LINENO" "settimeofday" "ac_cv_func_settimeofday" 20789if test "x$ac_cv_func_settimeofday" = x""yes; then : 20790 cat >>confdefs.h <<_ACEOF 20791#define HAVE_SETTIMEOFDAY 1 20792_ACEOF 20793 20794else 20795 20796case "$host" in 20797 *-*-mpeix*) ac_cv_func_settimeofday=yes 20798 ;; 20799esac 20800fi 20801done 20802 20803for ac_func in setvbuf sigaction 20804do : 20805 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 20806ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 20807eval as_val=\$$as_ac_var 20808 if test "x$as_val" = x""yes; then : 20809 cat >>confdefs.h <<_ACEOF 20810#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 20811_ACEOF 20812 20813fi 20814done 20815 20816for ac_func in sigvec sigset sigsuspend stime strchr sysconf sysctl 20817do : 20818 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 20819ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 20820eval as_val=\$$as_ac_var 20821 if test "x$as_val" = x""yes; then : 20822 cat >>confdefs.h <<_ACEOF 20823#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 20824_ACEOF 20825 20826fi 20827done 20828 20829for ac_func in snprintf strdup strerror strstr 20830do : 20831 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 20832ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 20833eval as_val=\$$as_ac_var 20834 if test "x$as_val" = x""yes; then : 20835 cat >>confdefs.h <<_ACEOF 20836#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 20837_ACEOF 20838 20839fi 20840done 20841 20842for ac_func in timegm 20843do : 20844 ac_fn_c_check_func "$LINENO" "timegm" "ac_cv_func_timegm" 20845if test "x$ac_cv_func_timegm" = x""yes; then : 20846 cat >>confdefs.h <<_ACEOF 20847#define HAVE_TIMEGM 1 20848_ACEOF 20849 20850fi 20851done 20852 20853case "$host" in 20854 *-*-aix[456]*) 20855 # Just stubs. Idiots. 20856 ;; 20857 *-*-netbsd1*) 20858 # Just stubs. Idiots. 20859 ;; 20860 *-*-netbsdelf1*) 20861 # Just stubs. Idiots. 20862 ;; 20863 *-*-openbsd*) 20864 # Just stubs. Idiots. 20865 ;; 20866 *) for ac_func in timer_create timer_settime 20867do : 20868 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 20869ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 20870eval as_val=\$$as_ac_var 20871 if test "x$as_val" = x""yes; then : 20872 cat >>confdefs.h <<_ACEOF 20873#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 20874_ACEOF 20875 20876fi 20877done 20878 20879 ;; 20880esac 20881case "$host" in 20882 *-pc-cygwin*) 20883 # I have no idea... 20884 ;; 20885 *) for ac_func in umask 20886do : 20887 ac_fn_c_check_func "$LINENO" "umask" "ac_cv_func_umask" 20888if test "x$ac_cv_func_umask" = x""yes; then : 20889 cat >>confdefs.h <<_ACEOF 20890#define HAVE_UMASK 1 20891_ACEOF 20892 20893fi 20894done 20895 20896 ;; 20897esac 20898for ac_func in uname updwtmp updwtmpx vsnprintf vsprintf 20899do : 20900 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 20901ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 20902eval as_val=\$$as_ac_var 20903 if test "x$as_val" = x""yes; then : 20904 cat >>confdefs.h <<_ACEOF 20905#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 20906_ACEOF 20907 20908fi 20909done 20910 20911 20912### 20913 20914# http://bugs.ntp.org/737 20915case "$ac_cv_func_recvmsg" in 20916 yes) 20917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need extra help to define struct iovec" >&5 20918$as_echo_n "checking if we need extra help to define struct iovec... " >&6; } 20919 if test "${ac_cv_struct_iovec_help+set}" = set; then : 20920 $as_echo_n "(cached) " >&6 20921else 20922 for ac_cv_struct_iovec_help in '0' '1'; do 20923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20924/* end confdefs.h. */ 20925#ifdef HAVE_SYS_TYPES_H 20926#include <sys/types.h> 20927#endif 20928#ifdef HAVE_SYS_SOCKET_H 20929#include <sys/socket.h> 20930#endif 20931#if $ac_cv_struct_iovec_help 20932#include <sys/uio.h> 20933#endif 20934 20935void foo(); 20936void foo() { 20937 ssize_t x; 20938 int s = 0; 20939 struct iovec iov; 20940 struct msghdr mh; 20941 int flags = 0; 20942 20943 mh.msg_iov = &iov; 20944 x = recvmsg(s, &mh, flags); 20945} 20946int 20947main () 20948{ 20949 20950 ; 20951 return 0; 20952} 20953_ACEOF 20954if ac_fn_c_try_compile "$LINENO"; then : 20955 ac_worked=yes ; break 1 20956else 20957 ac_worked=no 20958fi 20959rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20960 done 20961 20962fi 20963 case "$ac_worked$ac_cv_struct_iovec_help" in 20964 yes1) 20965 20966$as_echo "#define HAVE_SYS_UIO_H 1" >>confdefs.h 20967 20968 ans=yes 20969 ;; 20970 *) ans=no 20971 esac 20972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 20973$as_echo "$ans" >&6; } 20974 ;; 20975esac 20976 20977case "$host" in 20978 *-*-sunos4*) 20979 20980$as_echo "#define SPRINTF_CHAR 1" >>confdefs.h 20981 20982 ;; 20983esac 20984 20985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking number of arguments to gettimeofday()" >&5 20986$as_echo_n "checking number of arguments to gettimeofday()... " >&6; } 20987if test "${ac_cv_func_Xettimeofday_nargs+set}" = set; then : 20988 $as_echo_n "(cached) " >&6 20989else 20990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20991/* end confdefs.h. */ 20992#include <sys/time.h> 20993int 20994main () 20995{ 20996 20997gettimeofday((struct timeval*)0,(struct timezone*)0); 20998settimeofday((struct timeval*)0,(struct timezone*)0); 20999 21000 ; 21001 return 0; 21002} 21003_ACEOF 21004if ac_fn_c_try_compile "$LINENO"; then : 21005 ac_cv_func_Xettimeofday_nargs=2 21006else 21007 ac_cv_func_Xettimeofday_nargs=1 21008fi 21009rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21010 21011fi 21012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_Xettimeofday_nargs" >&5 21013$as_echo "$ac_cv_func_Xettimeofday_nargs" >&6; } 21014if test $ac_cv_func_Xettimeofday_nargs = 1; then 21015 21016$as_echo "#define SYSV_TIMEOFDAY 1" >>confdefs.h 21017 21018fi 21019 21020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking number of arguments taken by setpgrp()" >&5 21021$as_echo_n "checking number of arguments taken by setpgrp()... " >&6; } 21022if test "${ac_cv_func_setpgrp_nargs+set}" = set; then : 21023 $as_echo_n "(cached) " >&6 21024else 21025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21026/* end confdefs.h. */ 21027 21028#ifdef HAVE_SYS_TYPES_H 21029# include <sys/types.h> 21030#endif 21031#ifdef HAVE_UNISTD_H 21032# include <unistd.h> 21033#endif 21034 21035int 21036main () 21037{ 21038setpgrp(0,0); 21039 ; 21040 return 0; 21041} 21042_ACEOF 21043if ac_fn_c_try_compile "$LINENO"; then : 21044 ac_cv_func_setpgrp_nargs=2 21045else 21046 ac_cv_func_setpgrp_nargs=0 21047fi 21048rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21049 21050fi 21051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_nargs" >&5 21052$as_echo "$ac_cv_func_setpgrp_nargs" >&6; } 21053if test $ac_cv_func_setpgrp_nargs = 0; then 21054 21055$as_echo "#define HAVE_SETPGRP_0 1" >>confdefs.h 21056 21057fi 21058 21059save_CFLAGS=$CFLAGS 21060CFLAGS="$CFLAGS -I$srcdir/include" 21061 21062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking argument pointer type of qsort()'s compare function and base" >&5 21063$as_echo_n "checking argument pointer type of qsort()'s compare function and base... " >&6; } 21064if test "${ac_cv_func_qsort_argtype+set}" = set; then : 21065 $as_echo_n "(cached) " >&6 21066else 21067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21068/* end confdefs.h. */ 21069 21070#include "l_stdlib.h" 21071 21072#ifdef HAVE_PROTOTYPES 21073#define P(x) x 21074#else 21075#define P(x) () 21076#endif 21077 21078extern void *base; 21079extern sortfunc P((const void *, const void *)); 21080int sortfunc(a, b) 21081 const void *a; 21082 const void *b; { return 0; } 21083 21084int 21085main () 21086{ 21087 21088qsort(base, 2, sizeof(char *), sortfunc); 21089 21090 ; 21091 return 0; 21092} 21093_ACEOF 21094if ac_fn_c_try_compile "$LINENO"; then : 21095 ac_cv_func_qsort_argtype=void 21096else 21097 ac_cv_func_qsort_argtype=char 21098fi 21099rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21100 21101fi 21102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_qsort_argtype" >&5 21103$as_echo "$ac_cv_func_qsort_argtype" >&6; } 21104case "$ac_cv_func_qsort_argtype" in 21105 void) 21106 21107$as_echo "#define QSORT_USES_VOID_P 1" >>confdefs.h 21108 21109 ;; 21110esac 21111 21112CFLAGS=$save_CFLAGS 21113 21114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need to declare 'errno'" >&5 21115$as_echo_n "checking if we need to declare 'errno'... " >&6; } 21116if test "${ac_cv_decl_errno+set}" = set; then : 21117 $as_echo_n "(cached) " >&6 21118else 21119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21120/* end confdefs.h. */ 21121#ifdef HAVE_ERRNO_H 21122#include <errno.h> 21123#endif 21124int 21125main () 21126{ 21127errno = 0; 21128 ; 21129 return 0; 21130} 21131_ACEOF 21132if ac_fn_c_try_compile "$LINENO"; then : 21133 ac_cv_decl_errno=no 21134else 21135 ac_cv_decl_errno=yes 21136fi 21137rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21138fi 21139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_decl_errno" >&5 21140$as_echo "$ac_cv_decl_errno" >&6; } 21141case "$ac_cv_decl_errno" in 21142 yes) 21143$as_echo "#define DECL_ERRNO 1" >>confdefs.h 21144 ;; 21145esac 21146 21147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we may declare 'h_errno'" >&5 21148$as_echo_n "checking if we may declare 'h_errno'... " >&6; } 21149if test "${ac_cv_decl_h_errno+set}" = set; then : 21150 $as_echo_n "(cached) " >&6 21151else 21152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21153/* end confdefs.h. */ 21154#include <sys/types.h> 21155#ifdef HAVE_NETINET_IN_H 21156#include <netinet/in.h> 21157#endif 21158#ifdef HAVE_ARPA_NAMESER_H 21159#include <arpa/nameser.h> 21160#endif 21161#ifdef HAVE_NETDB_H 21162#include <netdb.h> 21163#endif 21164#ifdef HAVE_RESOLV_H 21165#include <resolv.h> 21166#endif 21167int 21168main () 21169{ 21170extern int h_errno; 21171 ; 21172 return 0; 21173} 21174_ACEOF 21175if ac_fn_c_try_compile "$LINENO"; then : 21176 ac_cv_decl_h_errno=yes 21177else 21178 ac_cv_decl_h_errno=no 21179fi 21180rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21181fi 21182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_decl_h_errno" >&5 21183$as_echo "$ac_cv_decl_h_errno" >&6; } 21184case "$ac_cv_decl_h_errno" in 21185 yes) 21186$as_echo "#define DECL_H_ERRNO 1" >>confdefs.h 21187 ;; 21188esac 21189 21190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if declaring 'char *sys_errlist[]' is ok" >&5 21191$as_echo_n "checking if declaring 'char *sys_errlist[]' is ok... " >&6; } 21192if test "${ac_cv_decl_sys_errlist+set}" = set; then : 21193 $as_echo_n "(cached) " >&6 21194else 21195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21196/* end confdefs.h. */ 21197#include <stdio.h> 21198#ifdef HAVE_ERRNO_H 21199#include <errno.h> 21200#endif 21201int 21202main () 21203{ 21204extern char *sys_errlist[]; 21205 21206 ; 21207 return 0; 21208} 21209_ACEOF 21210if ac_fn_c_try_compile "$LINENO"; then : 21211 ac_cv_decl_sys_errlist=yes 21212else 21213 ac_cv_decl_sys_errlist=no 21214fi 21215rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21216fi 21217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_decl_sys_errlist" >&5 21218$as_echo "$ac_cv_decl_sys_errlist" >&6; } 21219case "$ac_cv_decl_sys_errlist" in 21220 yes) 21221$as_echo "#define CHAR_SYS_ERRLIST 1" >>confdefs.h 21222 ;; 21223esac 21224 21225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if declaring 'syscall()' is ok" >&5 21226$as_echo_n "checking if declaring 'syscall()' is ok... " >&6; } 21227if test "${ac_cv_decl_syscall+set}" = set; then : 21228 $as_echo_n "(cached) " >&6 21229else 21230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21231/* end confdefs.h. */ 21232 21233#ifdef HAVE_SYS_TYPES_H 21234# include <sys/types.h> 21235#endif 21236#ifdef HAVE_UNISTD_H 21237# include <unistd.h> 21238#endif 21239#ifdef HAVE_PROTOTYPES 21240#define P(x) x 21241#else 21242#define P(x) () 21243#endif 21244 21245int 21246main () 21247{ 21248extern int syscall P((int, ...)); 21249 ; 21250 return 0; 21251} 21252_ACEOF 21253if ac_fn_c_try_compile "$LINENO"; then : 21254 ac_cv_decl_syscall=yes 21255else 21256 ac_cv_decl_syscall=no 21257fi 21258rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21259fi 21260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_decl_syscall" >&5 21261$as_echo "$ac_cv_decl_syscall" >&6; } 21262case "$ac_cv_decl_syscall" in 21263 yes) 21264$as_echo "#define DECL_SYSCALL 1" >>confdefs.h 21265 ;; 21266esac 21267 21268case "$host" in 21269 *-*-aix4.3.*) 21270 21271$as_echo "#define DECL_HSTRERROR_0 1" >>confdefs.h 21272 # Needed for XLC under AIX 4.3.2 21273 ;; 21274 *-*-mpeix*) 21275 21276$as_echo "#define DECL_ADJTIME_0 1" >>confdefs.h 21277 21278 21279$as_echo "#define DECL_INET_NTOA_0 1" >>confdefs.h 21280 21281 21282$as_echo "#define DECL_MKTEMP_0 1" >>confdefs.h 21283 21284 21285$as_echo "#define DECL_SELECT_0 1" >>confdefs.h 21286 21287 21288$as_echo "#define DECL_SETITIMER_0 1" >>confdefs.h 21289 21290 21291$as_echo "#define DECL_SYSLOG_0 1" >>confdefs.h 21292 21293 21294$as_echo "#define DECL_TIMEOFDAY_0 1" >>confdefs.h 21295 21296 ;; 21297 *-*-osf[45]*) 21298 21299$as_echo "#define DECL_PLOCK_0 1" >>confdefs.h 21300 21301 21302$as_echo "#define DECL_STIME_1 1" >>confdefs.h 21303 21304 ;; 21305 *-*-qnx*) 21306 21307$as_echo "#define DECL_ADJTIME_0 1" >>confdefs.h 21308 21309 ;; 21310 *-*-riscos4*) 21311 21312$as_echo "#define DECL_ADJTIME_0 1" >>confdefs.h 21313 21314 21315$as_echo "#define DECL_BZERO_0 1" >>confdefs.h 21316 21317 21318$as_echo "#define DECL_IOCTL_0 1" >>confdefs.h 21319 21320 21321$as_echo "#define DECL_IPC_0 1" >>confdefs.h 21322 21323 21324$as_echo "#define DECL_MEMMOVE_0 1" >>confdefs.h 21325 21326 21327$as_echo "#define DECL_MKTEMP_0 1" >>confdefs.h 21328 21329 21330$as_echo "#define DECL_RENAME_0 1" >>confdefs.h 21331 21332 21333$as_echo "#define DECL_SELECT_0 1" >>confdefs.h 21334 21335 21336$as_echo "#define DECL_SETITIMER_0 1" >>confdefs.h 21337 21338 21339$as_echo "#define DECL_SETPRIORITY_0 1" >>confdefs.h 21340 21341 21342$as_echo "#define DECL_STDIO_0 1" >>confdefs.h 21343 21344 21345$as_echo "#define DECL_STRTOL_0 1" >>confdefs.h 21346 21347 21348$as_echo "#define DECL_SYSLOG_0 1" >>confdefs.h 21349 21350 21351$as_echo "#define DECL_TIME_0 1" >>confdefs.h 21352 21353 21354$as_echo "#define DECL_TIMEOFDAY_0 1" >>confdefs.h 21355 21356 21357$as_echo "#define DECL_TOLOWER_0 1" >>confdefs.h 21358 21359 ;; 21360 *-*-solaris2*) 21361 21362$as_echo "#define DECL_MKSTEMP_0 1" >>confdefs.h 21363 21364 21365$as_echo "#define DECL_SETPRIORITY_1 1" >>confdefs.h 21366 21367 case "$host" in 21368 *-*-solaris2.4) 21369 21370$as_echo "#define DECL_TIMEOFDAY_0 1" >>confdefs.h 21371 21372 ;; 21373 esac 21374 ;; 21375 *-*-sunos4*) 21376 21377$as_echo "#define DECL_ADJTIME_0 1" >>confdefs.h 21378 21379 21380$as_echo "#define DECL_BCOPY_0 1" >>confdefs.h 21381 21382 21383$as_echo "#define DECL_BZERO_0 1" >>confdefs.h 21384 21385 21386$as_echo "#define DECL_IOCTL_0 1" >>confdefs.h 21387 21388 21389$as_echo "#define DECL_IPC_0 1" >>confdefs.h 21390 21391 21392$as_echo "#define DECL_MEMMOVE_0 1" >>confdefs.h 21393 21394 21395$as_echo "#define DECL_MKTEMP_0 1" >>confdefs.h 21396 21397 21398$as_echo "#define DECL_MKSTEMP_0 1" >>confdefs.h 21399 21400 21401$as_echo "#define DECL_RENAME_0 1" >>confdefs.h 21402 21403 21404$as_echo "#define DECL_SELECT_0 1" >>confdefs.h 21405 21406 21407$as_echo "#define DECL_SETITIMER_0 1" >>confdefs.h 21408 21409 21410$as_echo "#define DECL_SETPRIORITY_0 1" >>confdefs.h 21411 21412 21413$as_echo "#define DECL_SIGVEC_0 1" >>confdefs.h 21414 21415 case "`basename $ac_cv_prog_CC`" in 21416 acc*) ;; 21417 *) 21418$as_echo "#define DECL_STDIO_0 1" >>confdefs.h 21419 21420 ;; 21421 esac 21422 21423$as_echo "#define DECL_STRTOL_0 1" >>confdefs.h 21424 21425 21426$as_echo "#define DECL_SYSLOG_0 1" >>confdefs.h 21427 21428 21429$as_echo "#define DECL_TIME_0 1" >>confdefs.h 21430 21431 21432$as_echo "#define DECL_TIMEOFDAY_0 1" >>confdefs.h 21433 21434 21435$as_echo "#define DECL_TOLOWER_0 1" >>confdefs.h 21436 21437 21438$as_echo "#define DECL_TOUPPER_0 1" >>confdefs.h 21439 21440 21441$as_echo "#define DECL_STRERROR_0 1" >>confdefs.h 21442 21443 ;; 21444 *-*-ultrix4*) 21445 21446$as_echo "#define DECL_ADJTIME_0 1" >>confdefs.h 21447 21448 21449$as_echo "#define DECL_BZERO_0 1" >>confdefs.h 21450 21451 21452$as_echo "#define DECL_CFSETISPEED_0 1" >>confdefs.h 21453 21454 21455$as_echo "#define DECL_IOCTL_0 1" >>confdefs.h 21456 21457 21458$as_echo "#define DECL_IPC_0 1" >>confdefs.h 21459 21460 21461$as_echo "#define DECL_MKTEMP_0 1" >>confdefs.h 21462 21463 21464$as_echo "#define DECL_NLIST_0 1" >>confdefs.h 21465 21466 21467$as_echo "#define DECL_PLOCK_0 1" >>confdefs.h 21468 21469 21470$as_echo "#define DECL_SELECT_0 1" >>confdefs.h 21471 21472 21473$as_echo "#define DECL_SETITIMER_0 1" >>confdefs.h 21474 21475 21476$as_echo "#define DECL_SETPRIORITY_0 1" >>confdefs.h 21477 21478 21479$as_echo "#define DECL_STIME_0 1" >>confdefs.h 21480 21481 21482$as_echo "#define DECL_SYSLOG_0 1" >>confdefs.h 21483 21484 21485$as_echo "#define DECL_TIMEOFDAY_0 1" >>confdefs.h 21486 21487 ;; 21488esac 21489 21490case "$host" in 21491 *-*-sco3.2*) 21492 21493$as_echo "#define TERMIOS_NEEDS__SVID3 1" >>confdefs.h 21494 21495 ;; 21496esac 21497 21498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need extra room for SO_RCVBUF" >&5 21499$as_echo_n "checking if we need extra room for SO_RCVBUF... " >&6; } 21500if test "${ac_cv_var_rcvbuf_slop+set}" = set; then : 21501 $as_echo_n "(cached) " >&6 21502else 21503 ans=no 21504case "$host" in 21505 *-*-hpux[567]*) 21506 ans=yes 21507 ;; 21508esac 21509ac_cv_var_rcvbuf_slop=$ans 21510fi 21511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_rcvbuf_slop" >&5 21512$as_echo "$ac_cv_var_rcvbuf_slop" >&6; } 21513case "$ac_cv_var_rcvbuf_slop" in 21514 yes) 21515$as_echo "#define NEED_RCVBUF_SLOP 1" >>confdefs.h 21516 ;; 21517esac 21518 21519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we will open the broadcast socket" >&5 21520$as_echo_n "checking if we will open the broadcast socket... " >&6; } 21521if test "${ac_cv_var_open_bcast_socket+set}" = set; then : 21522 $as_echo_n "(cached) " >&6 21523else 21524 ans=yes 21525case "$host" in 21526 *-*-domainos) 21527 ans=no 21528 ;; 21529esac 21530ac_cv_var_open_bcast_socket=$ans 21531fi 21532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_open_bcast_socket" >&5 21533$as_echo "$ac_cv_var_open_bcast_socket" >&6; } 21534case "$ac_cv_var_open_bcast_socket" in 21535 yes) 21536$as_echo "#define OPEN_BCAST_SOCKET 1" >>confdefs.h 21537 ;; 21538esac 21539 21540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want the HPUX version of FindConfig()" >&5 21541$as_echo_n "checking if we want the HPUX version of FindConfig()... " >&6; } 21542if test "${ac_cv_var_hpux_findconfig+set}" = set; then : 21543 $as_echo_n "(cached) " >&6 21544else 21545 ans=no 21546case "$host" in 21547 *-*-hpux*) 21548 ans=yes 21549 ;; 21550esac 21551ac_cv_var_hpux_findconfig=$ans 21552fi 21553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_hpux_findconfig" >&5 21554$as_echo "$ac_cv_var_hpux_findconfig" >&6; } 21555case "$ac_cv_var_hpux_findconfig" in 21556 yes) 21557$as_echo "#define NEED_HPUX_FINDCONFIG 1" >>confdefs.h 21558 ;; 21559esac 21560 21561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if process groups are set with -pid" >&5 21562$as_echo_n "checking if process groups are set with -pid... " >&6; } 21563if test "${ac_cv_arg_setpgrp_negpid+set}" = set; then : 21564 $as_echo_n "(cached) " >&6 21565else 21566 case "$host" in 21567 *-*-hpux[567]*) 21568 ans=no 21569 ;; 21570 *-*-hpux*) 21571 ans=yes 21572 ;; 21573 *-*-*linux*) 21574 ans=yes 21575 ;; 21576 *-*-sunos3*) 21577 ans=yes 21578 ;; 21579 *-*-ultrix2*) 21580 ans=yes 21581 ;; 21582 *) 21583 ans=no 21584 ;; 21585esac 21586ac_cv_arg_setpgrp_negpid=$ans 21587fi 21588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_arg_setpgrp_negpid" >&5 21589$as_echo "$ac_cv_arg_setpgrp_negpid" >&6; } 21590case "$ac_cv_arg_setpgrp_negpid" in 21591 yes) 21592$as_echo "#define UDP_BACKWARDS_SETOWN 1" >>confdefs.h 21593 ;; 21594esac 21595 21596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need a ctty for F_SETOWN" >&5 21597$as_echo_n "checking if we need a ctty for F_SETOWN... " >&6; } 21598if test "${ac_cv_func_ctty_for_f_setown+set}" = set; then : 21599 $as_echo_n "(cached) " >&6 21600else 21601 case "$host" in 21602 *-*-bsdi[23]*) 21603 ans=yes 21604 ;; 21605 *-*-freebsd*) 21606 ans=yes 21607 ;; 21608 *-*-netbsd*3.[0-8]*|*-*-netbsd*[0-2].*|*-*-netbsd*3.99.[0-7]) 21609 ans=yes 21610 ;; 21611 *-*-openbsd*) 21612 ans=yes 21613 ;; 21614 *-*-osf*) 21615 ans=yes 21616 ;; 21617 *-*-darwin*) 21618 ans=yes 21619 ;; 21620 *) ans=no 21621 ;; 21622esac 21623ac_cv_func_ctty_for_f_setown=$ans 21624fi 21625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_ctty_for_f_setown" >&5 21626$as_echo "$ac_cv_func_ctty_for_f_setown" >&6; } 21627case "$ac_cv_func_ctty_for_f_setown" in 21628 yes) 21629$as_echo "#define USE_FSETOWNCTTY 1" >>confdefs.h 21630 ;; 21631esac 21632 21633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the OS fails to clear cached routes when more specific routes become available" >&5 21634$as_echo_n "checking if the OS fails to clear cached routes when more specific routes become available... " >&6; } 21635if test "${ac_cv_os_routeupdates+set}" = set; then : 21636 $as_echo_n "(cached) " >&6 21637else 21638 case "$host" in 21639 *-*-netbsd*) 21640 ans=yes 21641 ;; 21642 *) ans=no 21643 ;; 21644esac 21645ac_cv_os_routeupdates=$ans 21646fi 21647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_routeupdates" >&5 21648$as_echo "$ac_cv_os_routeupdates" >&6; } 21649case "$ac_cv_os_routeupdates" in 21650 yes) 21651$as_echo "#define OS_MISSES_SPECIFIC_ROUTE_UPDATES 1" >>confdefs.h 21652 ;; 21653esac 21654 21655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the OS needs the wildcard socket set to REUSEADDR for binding interface addresses" >&5 21656$as_echo_n "checking if the OS needs the wildcard socket set to REUSEADDR for binding interface addresses... " >&6; } 21657if test "${ac_cv_os_wildcardreuse+set}" = set; then : 21658 $as_echo_n "(cached) " >&6 21659else 21660 case "$host" in 21661 *-*-*linux*) 21662 ans=yes 21663 ;; 21664 *) ans=no 21665 ;; 21666esac 21667ac_cv_os_wildcardreuse=$ans 21668fi 21669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_wildcardreuse" >&5 21670$as_echo "$ac_cv_os_wildcardreuse" >&6; } 21671case "$ac_cv_os_wildcardreuse" in 21672 yes) 21673$as_echo "#define OS_NEEDS_REUSEADDR_FOR_IFADDRBIND 1" >>confdefs.h 21674 ;; 21675esac 21676 21677ntp_warning='GRONK' 21678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we'll use clock_settime or settimeofday or stime" >&5 21679$as_echo_n "checking if we'll use clock_settime or settimeofday or stime... " >&6; } 21680case "$ac_cv_func_clock_settime$ac_cv_func_settimeofday$ac_cv_func_stime" in 21681 yes*) 21682 ntp_warning='' 21683 ans='clock_settime()' 21684 ;; 21685 noyes*) 21686 ntp_warning='But clock_settime() would be better (if we had it)' 21687 ans='settimeofday()' 21688 ;; 21689 nonoyes) 21690 ntp_warning='Which is the worst of the three' 21691 ans='stime()' 21692 ;; 21693 *) 21694 case "$build" in 21695 $host) ntp_warning='Which leaves us with nothing to use!' 21696 ans=none 21697 ;; 21698esac 21699esac 21700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 21701$as_echo "$ans" >&6; } 21702case "$ntp_warning" in 21703 '') ;; 21704 *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** $ntp_warning ***" >&5 21705$as_echo "$as_me: WARNING: *** $ntp_warning ***" >&2;} 21706 ;; 21707esac 21708 21709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have a losing syscall()" >&5 21710$as_echo_n "checking if we have a losing syscall()... " >&6; } 21711if test "${ac_cv_var_syscall_bug+set}" = set; then : 21712 $as_echo_n "(cached) " >&6 21713else 21714 case "$host" in 21715 *-*-solaris2.4*) 21716 ans=yes 21717 ;; 21718 *) ans=no 21719 ;; 21720esac 21721ac_cv_var_syscall_bug=$ans 21722fi 21723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_syscall_bug" >&5 21724$as_echo "$ac_cv_var_syscall_bug" >&6; } 21725case "$ac_cv_var_syscall_bug" in 21726 yes) 21727$as_echo "#define SYSCALL_BUG 1" >>confdefs.h 21728 ;; 21729esac 21730 21731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIGIO" >&5 21732$as_echo_n "checking for SIGIO... " >&6; } 21733if test "${ac_cv_hdr_def_sigio+set}" = set; then : 21734 $as_echo_n "(cached) " >&6 21735else 21736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21737/* end confdefs.h. */ 21738#include <signal.h> 21739#ifdef SIGIO 21740 yes 21741#endif 21742 21743_ACEOF 21744if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 21745 $EGREP "yes" >/dev/null 2>&1; then : 21746 ac_cv_hdr_def_sigio=yes 21747else 21748 ac_cv_hdr_def_sigio=no 21749fi 21750rm -f conftest* 21751 21752fi 21753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_hdr_def_sigio" >&5 21754$as_echo "$ac_cv_hdr_def_sigio" >&6; } 21755 21756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to use signalled IO" >&5 21757$as_echo_n "checking if we want to use signalled IO... " >&6; } 21758if test "${ac_cv_var_signalled_io+set}" = set; then : 21759 $as_echo_n "(cached) " >&6 21760else 21761 ans=no 21762case "$ac_cv_hdr_def_sigio" in 21763 yes) 21764 ans=yes 21765 case "$host" in 21766 alpha*-dec-osf4*|alpha*-dec-osf5*) 21767 ans=no 21768 ;; 21769 *-convex-*) 21770 ans=no 21771 ;; 21772 *-dec-*) 21773 ans=no 21774 ;; 21775 *-pc-cygwin*) 21776 ans=no 21777 ;; 21778 *-sni-sysv*) 21779 ans=no 21780 ;; 21781 *-univel-sysv*) 21782 ans=no 21783 ;; 21784 *-*-irix6*) 21785 ans=no 21786 ;; 21787 *-*-freebsd*) 21788 ans=no 21789 ;; 21790 *-*-*linux*) 21791 ans=no 21792 ;; 21793 *-*-unicosmp*) 21794 ans=no 21795 ;; 21796 esac 21797 ;; 21798esac 21799ac_cv_var_signalled_io=$ans 21800fi 21801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_signalled_io" >&5 21802$as_echo "$ac_cv_var_signalled_io" >&6; } 21803case "$ac_cv_var_signalled_io" in 21804 yes) 21805$as_echo "#define HAVE_SIGNALED_IO 1" >>confdefs.h 21806 ;; 21807esac 21808 21809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIGPOLL" >&5 21810$as_echo_n "checking for SIGPOLL... " >&6; } 21811if test "${ac_cv_hdr_def_sigpoll+set}" = set; then : 21812 $as_echo_n "(cached) " >&6 21813else 21814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21815/* end confdefs.h. */ 21816#include <signal.h> 21817#ifdef SIGPOLL 21818 yes 21819#endif 21820 21821_ACEOF 21822if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 21823 $EGREP "yes" >/dev/null 2>&1; then : 21824 ac_cv_hdr_def_sigpoll=yes 21825else 21826 ac_cv_hdr_def_sigpoll=no 21827fi 21828rm -f conftest* 21829 21830fi 21831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_hdr_def_sigpoll" >&5 21832$as_echo "$ac_cv_hdr_def_sigpoll" >&6; } 21833 21834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIGSYS" >&5 21835$as_echo_n "checking for SIGSYS... " >&6; } 21836if test "${ac_cv_hdr_def_sigsys+set}" = set; then : 21837 $as_echo_n "(cached) " >&6 21838else 21839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21840/* end confdefs.h. */ 21841#include <signal.h> 21842#ifdef SIGSYS 21843 yes 21844#endif 21845 21846_ACEOF 21847if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 21848 $EGREP "yes" >/dev/null 2>&1; then : 21849 ac_cv_hdr_def_sigsys=yes 21850else 21851 ac_cv_hdr_def_sigsys=no 21852fi 21853rm -f conftest* 21854 21855fi 21856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_hdr_def_sigsys" >&5 21857$as_echo "$ac_cv_hdr_def_sigsys" >&6; } 21858 21859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can use SIGPOLL for UDP I/O" >&5 21860$as_echo_n "checking if we can use SIGPOLL for UDP I/O... " >&6; } 21861if test "${ac_cv_var_use_udp_sigpoll+set}" = set; then : 21862 $as_echo_n "(cached) " >&6 21863else 21864 ans=no 21865case "$ac_cv_hdr_def_sigpoll" in 21866 yes) 21867 case "$host" in 21868 mips-sgi-irix*) 21869 ans=no 21870 ;; 21871 vax-dec-bsd) 21872 ans=no 21873 ;; 21874 *-pc-cygwin*) 21875 ans=no 21876 ;; 21877 *-sni-sysv*) 21878 ans=no 21879 ;; 21880 *-*-aix[456]*) 21881 ans=no 21882 ;; 21883 *-*-hpux*) 21884 ans=no 21885 ;; 21886 *-*-*linux*) 21887 ans=no 21888 ;; 21889 *-*-osf*) 21890 ans=no 21891 ;; 21892 *-*-qnx*) 21893 ans=no 21894 ;; 21895 *-*-sunos*) 21896 ans=no 21897 ;; 21898 *-*-solaris*) 21899 ans=no 21900 ;; 21901 *-*-ultrix*) 21902 ans=no 21903 ;; 21904 *-*-unicosmp*) 21905 ans=no 21906 ;; 21907 *) ans=yes 21908 ;; 21909 esac 21910 ;; 21911esac 21912ac_cv_var_use_udp_sigpoll=$ans 21913fi 21914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_use_udp_sigpoll" >&5 21915$as_echo "$ac_cv_var_use_udp_sigpoll" >&6; } 21916case "$ac_cv_var_use_udp_sigpoll" in 21917 yes) 21918$as_echo "#define USE_UDP_SIGPOLL 1" >>confdefs.h 21919 ;; 21920esac 21921 21922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can use SIGPOLL for TTY I/O" >&5 21923$as_echo_n "checking if we can use SIGPOLL for TTY I/O... " >&6; } 21924if test "${ac_cv_var_use_tty_sigpoll+set}" = set; then : 21925 $as_echo_n "(cached) " >&6 21926else 21927 ans=no 21928case "$ac_cv_hdr_def_sigpoll" in 21929 yes) 21930 case "$host" in 21931 mips-sgi-irix*) 21932 ans=no 21933 ;; 21934 vax-dec-bsd) 21935 ans=no 21936 ;; 21937 *-pc-cygwin*) 21938 ans=no 21939 ;; 21940 *-sni-sysv*) 21941 ans=no 21942 ;; 21943 *-*-aix[456]*) 21944 ans=no 21945 ;; 21946 *-*-hpux*) 21947 ans=no 21948 ;; 21949 *-*-*linux*) 21950 ans=no 21951 ;; 21952 *-*-osf*) 21953 ans=no 21954 ;; 21955 *-*-sunos*) 21956 ans=no 21957 ;; 21958 *-*-ultrix*) 21959 ans=no 21960 ;; 21961 *-*-qnx*) 21962 ans=no 21963 ;; 21964 *-*-unicosmp*) 21965 ans=no 21966 ;; 21967 *) ans=yes 21968 ;; 21969 esac 21970 ;; 21971esac 21972ac_cv_var_use_tty_sigpoll=$ans 21973fi 21974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_use_tty_sigpoll" >&5 21975$as_echo "$ac_cv_var_use_tty_sigpoll" >&6; } 21976case "$ac_cv_var_use_tty_sigpoll" in 21977 yes) 21978$as_echo "#define USE_TTY_SIGPOLL 1" >>confdefs.h 21979 ;; 21980esac 21981 21982case "$ac_cv_header_sys_sio_h" in 21983 yes) 21984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sio.h for TIOCDCDTIMESTAMP" >&5 21985$as_echo_n "checking sys/sio.h for TIOCDCDTIMESTAMP... " >&6; } 21986if test "${ac_cv_hdr_def_tiocdcdtimestamp+set}" = set; then : 21987 $as_echo_n "(cached) " >&6 21988else 21989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21990/* end confdefs.h. */ 21991#include <sys/sio.h> 21992#ifdef TIOCDCDTIMESTAMP 21993 yes 21994#endif 21995 21996_ACEOF 21997if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 21998 $EGREP "yes" >/dev/null 2>&1; then : 21999 ac_cv_hdr_def_tiocdcdtimestamp=yes 22000else 22001 ac_cv_hdr_def_tiocdcdtimestamp=no 22002fi 22003rm -f conftest* 22004 22005fi 22006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_hdr_def_tiocdcdtimestamp" >&5 22007$as_echo "$ac_cv_hdr_def_tiocdcdtimestamp" >&6; } 22008 ;; 22009esac 22010 22011case "$ac_cv_hdr_def_tiocdcdtimestamp" in 22012 yes) 22013 ac_cv_var_oncore_ok=yes 22014 ;; 22015esac 22016 22017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if nlist() values might require extra indirection" >&5 22018$as_echo_n "checking if nlist() values might require extra indirection... " >&6; } 22019if test "${ac_cv_var_nlist_extra_indirection+set}" = set; then : 22020 $as_echo_n "(cached) " >&6 22021else 22022 ans=no 22023case "$host" in 22024 *-*-aix*) 22025 ans=yes 22026 ;; 22027esac 22028ac_cv_var_nlist_extra_indirection=$ans 22029fi 22030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_nlist_extra_indirection" >&5 22031$as_echo "$ac_cv_var_nlist_extra_indirection" >&6; } 22032case "$ac_cv_var_nlist_extra_indirection" in 22033 yes) 22034$as_echo "#define NLIST_EXTRA_INDIRECTION 1" >>confdefs.h 22035 ;; 22036esac 22037 22038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a minimum recommended value of tickadj" >&5 22039$as_echo_n "checking for a minimum recommended value of tickadj... " >&6; } 22040if test "${ac_cv_var_min_rec_tickadj+set}" = set; then : 22041 $as_echo_n "(cached) " >&6 22042else 22043 ans=no 22044case "$host" in 22045 *-*-aix*) 22046 ans=40 22047 ;; 22048esac 22049ac_cv_var_min_rec_tickadj=$ans 22050fi 22051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_min_rec_tickadj" >&5 22052$as_echo "$ac_cv_var_min_rec_tickadj" >&6; } 22053case "$ac_cv_var_min_rec_tickadj" in 22054 ''|no) ;; 22055 *) 22056cat >>confdefs.h <<_ACEOF 22057#define MIN_REC_TICKADJ $ac_cv_var_min_rec_tickadj 22058_ACEOF 22059 ;; 22060esac 22061 22062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the TTY code permits PARENB and IGNPAR" >&5 22063$as_echo_n "checking if the TTY code permits PARENB and IGNPAR... " >&6; } 22064if test "${ac_cv_var_no_parenb_ignpar+set}" = set; then : 22065 $as_echo_n "(cached) " >&6 22066else 22067 ans=no 22068case "$host" in 22069 i?86-*-*linux*) 22070 ans=yes 22071 ;; 22072 mips-sgi-irix*) 22073 ans=yes 22074 ;; 22075 i?86-*-freebsd[123].*) 22076 ;; 22077 i?86-*-freebsd*) 22078 ans=yes 22079 ;; 22080 *-*-unicosmp*) 22081 ans=yes 22082 ;; 22083esac 22084ac_cv_var_no_parenb_ignpar=$ans 22085fi 22086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_no_parenb_ignpar" >&5 22087$as_echo "$ac_cv_var_no_parenb_ignpar" >&6; } 22088case "$ac_cv_var_no_parenb_ignpar" in 22089 yes) 22090$as_echo "#define NO_PARENB_IGNPAR 1" >>confdefs.h 22091 ;; 22092esac 22093 22094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we're including debugging code" >&5 22095$as_echo_n "checking if we're including debugging code... " >&6; } 22096# Check whether --enable-debugging was given. 22097if test "${enable_debugging+set}" = set; then : 22098 enableval=$enable_debugging; ntp_ok=$enableval 22099else 22100 ntp_ok=yes 22101fi 22102 22103if test "$ntp_ok" = "yes"; then 22104 22105$as_echo "#define DEBUG 1" >>confdefs.h 22106 22107fi 22108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 22109$as_echo "$ntp_ok" >&6; } 22110 22111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we including processing time debugging code" >&5 22112$as_echo_n "checking if we including processing time debugging code... " >&6; } 22113# Check whether --enable-debug-timing was given. 22114if test "${enable_debug_timing+set}" = set; then : 22115 enableval=$enable_debug_timing; ntp_ok=$enableval 22116else 22117 ntp_ok=no 22118fi 22119 22120if test "$ntp_ok" = "yes"; then 22121 22122$as_echo "#define DEBUG_TIMING 1" >>confdefs.h 22123 22124fi 22125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 22126$as_echo "$ntp_ok" >&6; } 22127 22128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a the number of minutes in a DST adjustment" >&5 22129$as_echo_n "checking for a the number of minutes in a DST adjustment... " >&6; } 22130# Check whether --enable-dst_minutes was given. 22131if test "${enable_dst_minutes+set}" = set; then : 22132 enableval=$enable_dst_minutes; ans=$enableval 22133else 22134 ans=60 22135 22136fi 22137 22138 22139cat >>confdefs.h <<_ACEOF 22140#define DSTMINUTES $ans 22141_ACEOF 22142 22143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 22144$as_echo "$ans" >&6; } 22145 22146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if ntpd will retry on permanent DNS errors" >&5 22147$as_echo_n "checking if ntpd will retry on permanent DNS errors... " >&6; } 22148# Check whether --enable-ignore-dns-errors was given. 22149if test "${enable_ignore_dns_errors+set}" = set; then : 22150 enableval=$enable_ignore_dns_errors; ans=$enableval 22151else 22152 ans=no 22153 22154fi 22155 22156case "$ans" in 22157 yes) 22158 22159$as_echo "#define IGNORE_DNS_ERRORS 1" >>confdefs.h 22160 22161esac 22162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 22163$as_echo "$ans" >&6; } 22164 22165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have the tty_clk line discipline/streams module" >&5 22166$as_echo_n "checking if we have the tty_clk line discipline/streams module... " >&6; } 22167if test "${ac_cv_var_tty_clk+set}" = set; then : 22168 $as_echo_n "(cached) " >&6 22169else 22170 case "$ac_cv_header_sys_clkdefs_h$ac_cv_hdr_def_tiocdcdtimestamp" in 22171 *yes*) ac_cv_var_tty_clk=yes ;; 22172 *) ac_cv_var_tty_clk=no ;; 22173 esac 22174fi 22175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tty_clk" >&5 22176$as_echo "$ac_cv_var_tty_clk" >&6; } 22177case "$ac_cv_var_tty_clk" in 22178 yes) 22179$as_echo "#define TTYCLK 1" >>confdefs.h 22180 ;; 22181esac 22182 22183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the ppsclock streams module" >&5 22184$as_echo_n "checking for the ppsclock streams module... " >&6; } 22185if test "${ac_cv_var_ppsclock+set}" = set; then : 22186 $as_echo_n "(cached) " >&6 22187else 22188 ac_cv_var_ppsclock=$ac_cv_struct_ppsclockev 22189fi 22190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_ppsclock" >&5 22191$as_echo "$ac_cv_var_ppsclock" >&6; } 22192case "$ac_cv_var_ppsclock" in 22193 yes) 22194$as_echo "#define PPS 1" >>confdefs.h 22195 ;; 22196esac 22197 22198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for kernel multicast support" >&5 22199$as_echo_n "checking for kernel multicast support... " >&6; } 22200if test "${ac_cv_var_mcast+set}" = set; then : 22201 $as_echo_n "(cached) " >&6 22202else 22203 ac_cv_var_mcast=no 22204 case "$host" in 22205 i386-sequent-sysv4) ;; 22206 *) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22207/* end confdefs.h. */ 22208#include <netinet/in.h> 22209#ifdef IP_ADD_MEMBERSHIP 22210 yes 22211#endif 22212 22213_ACEOF 22214if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 22215 $EGREP "yes" >/dev/null 2>&1; then : 22216 ac_cv_var_mcast=yes 22217fi 22218rm -f conftest* 22219 ;; 22220 esac 22221fi 22222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_mcast" >&5 22223$as_echo "$ac_cv_var_mcast" >&6; } 22224case "$ac_cv_var_mcast" in 22225 yes) 22226 22227$as_echo "#define MCAST 1" >>confdefs.h 22228 22229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking arg type needed for IP*_MULTICAST_LOOP for setsockopt()" >&5 22230$as_echo_n "checking arg type needed for IP*_MULTICAST_LOOP for setsockopt()... " >&6; } 22231if test "${ac_cv_var_typeof_ip_multicast_loop+set}" = set; then : 22232 $as_echo_n "(cached) " >&6 22233else 22234 case "$host" in 22235 *-*-netbsd*|*-*-*linux*) 22236 ac_cv_var_typeof_ip_multicast_loop=u_int 22237 ;; 22238 *-*-winnt*) 22239 ac_cv_var_typeof_ip_multicast_loop=BOOL 22240 ;; 22241 *) ac_cv_var_typeof_ip_multicast_loop=u_char 22242 ;; 22243 esac 22244fi 22245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_typeof_ip_multicast_loop" >&5 22246$as_echo "$ac_cv_var_typeof_ip_multicast_loop" >&6; } 22247 22248cat >>confdefs.h <<_ACEOF 22249#define TYPEOF_IP_MULTICAST_LOOP $ac_cv_var_typeof_ip_multicast_loop 22250_ACEOF 22251 22252 ;; 22253esac 22254 22255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking availability of ntp_{adj,get}time()" >&5 22256$as_echo_n "checking availability of ntp_{adj,get}time()... " >&6; } 22257if test "${ac_cv_var_ntp_syscalls+set}" = set; then : 22258 $as_echo_n "(cached) " >&6 22259else 22260 ac_cv_var_ntp_syscalls=no 22261 case "$ac_cv_func_ntp_adjtime$ac_cv_func_ntp_gettime$ac_cv_func___adjtimex" in 22262 yesyes*) 22263 ac_cv_var_ntp_syscalls=libc 22264 ;; 22265 *yes) 22266 ac_cv_var_ntp_syscalls=inline 22267 ;; 22268 *) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22269/* end confdefs.h. */ 22270#include <sys/syscall.h> 22271#if defined(SYS_ntp_gettime) && defined(SYS_ntp_adjtime) 22272 yes 22273#endif 22274 22275_ACEOF 22276if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 22277 $EGREP "yes" >/dev/null 2>&1; then : 22278 ac_cv_var_ntp_syscalls=kernel 22279fi 22280rm -f conftest* 22281 22282 ;; 22283 esac 22284fi 22285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_ntp_syscalls" >&5 22286$as_echo "$ac_cv_var_ntp_syscalls" >&6; } 22287case "$ac_cv_var_ntp_syscalls" in 22288 libc) 22289 22290$as_echo "#define NTP_SYSCALLS_LIBC 1" >>confdefs.h 22291 22292 ;; 22293 kernel) 22294 22295$as_echo "#define NTP_SYSCALLS_STD 1" >>confdefs.h 22296 22297 ;; 22298 *) 22299 ;; 22300esac 22301 22302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if sys/timex.h has STA_FLL" >&5 22303$as_echo_n "checking if sys/timex.h has STA_FLL... " >&6; } 22304if test "${ac_cv_var_sta_fll+set}" = set; then : 22305 $as_echo_n "(cached) " >&6 22306else 22307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22308/* end confdefs.h. */ 22309#include <sys/timex.h> 22310#ifdef STA_FLL 22311 yes 22312#endif 22313 22314_ACEOF 22315if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 22316 $EGREP "yes" >/dev/null 2>&1; then : 22317 ac_cv_var_sta_fll=yes 22318else 22319 ac_cv_var_sta_fll=no 22320fi 22321rm -f conftest* 22322 22323fi 22324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_sta_fll" >&5 22325$as_echo "$ac_cv_var_sta_fll" >&6; } 22326 22327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have kernel PLL support" >&5 22328$as_echo_n "checking if we have kernel PLL support... " >&6; } 22329if test "${ac_cv_var_kernel_pll+set}" = set; then : 22330 $as_echo_n "(cached) " >&6 22331else 22332 case "$ac_cv_header_sys_timex_h$ac_cv_struct_ntptimeval$ac_cv_var_sta_fll$ac_cv_var_ntp_syscalls" in 22333 *no*) 22334 ac_cv_var_kernel_pll=no 22335 ;; 22336 *) ac_cv_var_kernel_pll=yes 22337 ;; 22338esac 22339fi 22340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_kernel_pll" >&5 22341$as_echo "$ac_cv_var_kernel_pll" >&6; } 22342case "$ac_cv_var_kernel_pll" in 22343 yes) 22344 22345$as_echo "#define KERNEL_PLL 1" >>confdefs.h 22346 22347 ;; 22348esac 22349 22350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if SIOCGIFCONF returns buffer size in the buffer" >&5 22351$as_echo_n "checking if SIOCGIFCONF returns buffer size in the buffer... " >&6; } 22352if test "${ac_cv_var_size_returned_in_buffer+set}" = set; then : 22353 $as_echo_n "(cached) " >&6 22354else 22355 ans=no 22356 case "$host" in 22357 *-fujitsu-uxp*) 22358 ans=yes 22359 ;; 22360 *-ncr-sysv4*) 22361 ans=yes 22362 ;; 22363 *-univel-sysv*) 22364 ans=yes 22365 ;; 22366 esac 22367 ac_cv_var_size_returned_in_buffer=$ans 22368fi 22369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_size_returned_in_buffer" >&5 22370$as_echo "$ac_cv_var_size_returned_in_buffer" >&6; } 22371case "$ac_cv_var_size_returned_in_buffer" in 22372 yes) 22373$as_echo "#define SIZE_RETURNED_IN_BUFFER 1" >>confdefs.h 22374 ;; 22375esac 22376 22377 22378# Check for ioctls TIOCGPPSEV 22379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking ioctl TIOCGPPSEV" >&5 22380$as_echo_n "checking ioctl TIOCGPPSEV... " >&6; } 22381if test "$ac_cv_header_termios_h" = "yes"; then 22382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22383/* end confdefs.h. */ 22384#include <termios.h> 22385#ifdef TIOCGPPSEV 22386 yes 22387#endif 22388 22389_ACEOF 22390if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 22391 $EGREP "yes" >/dev/null 2>&1; then : 22392 ntp_ok=yes 22393else 22394 ntp_ok=no 22395fi 22396rm -f conftest* 22397 22398else 22399ntp_ok=no 22400fi 22401if test "$ntp_ok" = "yes"; then 22402 22403$as_echo "#define HAVE_TIOCGPPSEV 1" >>confdefs.h 22404 22405 ac_cv_var_oncore_ok=yes 22406fi 22407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 22408$as_echo "$ntp_ok" >&6; } 22409 22410# Check for ioctls TIOCSPPS 22411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking ioctl TIOCSPPS" >&5 22412$as_echo_n "checking ioctl TIOCSPPS... " >&6; } 22413if test "$ac_cv_header_termios_h" = "yes"; then 22414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22415/* end confdefs.h. */ 22416#include <termios.h> 22417#ifdef TIOCSPPS 22418 yes 22419#endif 22420 22421_ACEOF 22422if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 22423 $EGREP "yes" >/dev/null 2>&1; then : 22424 ntp_ok=yes 22425else 22426 ntp_ok=no 22427fi 22428rm -f conftest* 22429 22430else 22431 ntp_ok=no 22432fi 22433 22434if test "$ntp_ok" = "yes"; then 22435 22436$as_echo "#define HAVE_TIOCSPPS 1" >>confdefs.h 22437 22438fi 22439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 22440$as_echo "$ntp_ok" >&6; } 22441 22442# Check for ioctls CIOGETEV 22443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking ioctl CIOGETEV" >&5 22444$as_echo_n "checking ioctl CIOGETEV... " >&6; } 22445if test "$ac_cv_header_sys_ppsclock_h" = "yes"; then 22446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22447/* end confdefs.h. */ 22448#include <sys/ppsclock.h> 22449#ifdef CIOGETEV 22450 yes 22451#endif 22452 22453_ACEOF 22454if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 22455 $EGREP "yes" >/dev/null 2>&1; then : 22456 ntp_ok=yes 22457else 22458 ntp_ok=no 22459fi 22460rm -f conftest* 22461 22462else 22463ntp_ok=no 22464fi 22465if test "$ntp_ok" = "yes"; then 22466 ac_cv_var_oncore_ok=yes 22467 22468$as_echo "#define HAVE_CIOGETEV 1" >>confdefs.h 22469 22470fi 22471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 22472$as_echo "$ntp_ok" >&6; } 22473 22474 22475# ATOM/PPSAPI stuff. 22476 22477# ATOM used to require struct timespec, but that's been fixed now. 22478 22479# case "$ac_cv_struct_timespec" in 22480# 'yes') 22481# ac_cv_var_atom_ok=yes 22482# ;; 22483# esac 22484ac_cv_var_atom_ok=yes 22485 22486# Check for header timepps.h, if found then we have PPS API (Draft RFC) stuff. 22487 22488# The PPSAPI headers need "inline" ($ac_cv_c_inline='inline') 22489 22490# The PPSAPI needs struct timespec. 22491 22492# The PPSAPI also needs a timepps header. 22493 22494case "$ac_cv_c_inline$ac_cv_struct_timespec" in 22495 inlineyes) 22496 case "$ac_cv_header_timepps_h$ac_cv_header_sys_timepps_h$host_os" in 22497 *yes* | *sunos* | *solaris* | *sco* | *netbsd* ) 22498 22499$as_echo "#define HAVE_PPSAPI 1" >>confdefs.h 22500 22501 ac_cv_var_jupiter_ok=yes 22502 ac_cv_var_oncore_ok=yes 22503 ac_cv_var_parse_ok=yes 22504 ac_cv_var_ripe_ncc_ok=yes 22505 ;; 22506 esac 22507 ;; 22508esac 22509 22510# Check for ioctls TIOCGSERIAL, TIOCSSERIAL, ASYNC_PPS_CD_POS, ASYNC_PPS_CD_NEG 22511ac_fn_c_check_header_mongrel "$LINENO" "linux/serial.h" "ac_cv_header_linux_serial_h" "$ac_includes_default" 22512if test "x$ac_cv_header_linux_serial_h" = x""yes; then : 22513 22514fi 22515 22516 22517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking ioctl TIOCGSERIAL, TIOCSSERIAL, ASYNC_PPS_CD_POS, ASYNC_PPS_CD_NEG" >&5 22518$as_echo_n "checking ioctl TIOCGSERIAL, TIOCSSERIAL, ASYNC_PPS_CD_POS, ASYNC_PPS_CD_NEG... " >&6; } 22519case "$ac_cv_header_sys_ppsclock_h$ac_cv_header_linux_serial_h" in 22520 yesyes) 22521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22522/* end confdefs.h. */ 22523#include <sys/time.h> 22524typedef int u_int; 22525 22526#include <sys/ppsclock.h> 22527#include <linux/serial.h> 22528 22529#ifdef TIOCGSERIAL 22530#ifdef TIOCSSERIAL 22531#ifdef ASYNC_PPS_CD_POS 22532#ifdef ASYNC_PPS_CD_NEG 22533#ifdef CIOGETEV 22534 yes 22535#endif 22536#endif 22537#endif 22538#endif 22539#endif 22540 22541_ACEOF 22542if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 22543 $EGREP "yes" >/dev/null 2>&1; then : 22544 ntp_ok=yes 22545fi 22546rm -f conftest* 22547 22548 ;; 22549 *) 22550 ntp_ok=no 22551 ;; 22552esac 22553if test "$ntp_ok" = "yes"; then 22554 22555$as_echo "#define HAVE_TIO_SERIAL_STUFF 1" >>confdefs.h 22556 22557fi 22558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 22559$as_echo "$ntp_ok" >&6; } 22560 22561# Check for SHMEM_STATUS support 22562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking SHMEM_STATUS support" >&5 22563$as_echo_n "checking SHMEM_STATUS support... " >&6; } 22564case "$ac_cv_header_sys_mman_h" in 22565 yes) ntp_ok=yes ;; 22566 *) ntp_ok=no ;; 22567esac 22568if test "$ntp_ok" = "yes"; then 22569 22570$as_echo "#define ONCORE_SHMEM_STATUS 1" >>confdefs.h 22571 22572fi 22573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 22574$as_echo "$ntp_ok" >&6; } 22575 22576 22577ntp_refclock=no 22578 22579# HPUX only, and by explicit request 22580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Datum/Bancomm bc635/VME interface" >&5 22581$as_echo_n "checking Datum/Bancomm bc635/VME interface... " >&6; } 22582# Check whether --enable-BANCOMM was given. 22583if test "${enable_BANCOMM+set}" = set; then : 22584 enableval=$enable_BANCOMM; ntp_ok=$enableval 22585else 22586 ntp_ok=no 22587fi 22588 22589if test "$ntp_ok" = "yes"; then 22590 ntp_refclock=yes 22591 22592$as_echo "#define CLOCK_BANC 1" >>confdefs.h 22593 22594fi 22595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 22596$as_echo "$ntp_ok" >&6; } 22597case "$ntp_ok$host" in 22598 yes*-*-hpux*) ;; 22599 yes*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5 22600$as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;; 22601esac 22602 22603#HPUX only, and only by explicit request 22604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking TrueTime GPS receiver/VME interface" >&5 22605$as_echo_n "checking TrueTime GPS receiver/VME interface... " >&6; } 22606# Check whether --enable-GPSVME was given. 22607if test "${enable_GPSVME+set}" = set; then : 22608 enableval=$enable_GPSVME; ntp_ok=$enableval 22609else 22610 ntp_ok=no 22611fi 22612 22613if test "$ntp_ok" = "yes"; then 22614 ntp_refclock=yes 22615 22616$as_echo "#define CLOCK_GPSVME 1" >>confdefs.h 22617 22618fi 22619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 22620$as_echo "$ntp_ok" >&6; } 22621case "$ntp_ok$host" in 22622 yes*-*-hpux*) ;; 22623 yes*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5 22624$as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;; 22625esac 22626 22627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL720 clock support" >&5 22628$as_echo_n "checking for PCL720 clock support... " >&6; } 22629case "$ac_cv_header_machine_inline_h$ac_cv_header_sys_pcl720_h$ac_cv_header_sys_i8253_h" in 22630 yesyesyes) 22631 22632$as_echo "#define CLOCK_PPS720 1" >>confdefs.h 22633 22634 ans=yes 22635 ;; 22636 *) 22637 ans=no 22638 ;; 22639esac 22640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 22641$as_echo "$ans" >&6; } 22642 22643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default inclusion of all suitable non-PARSE clocks" >&5 22644$as_echo_n "checking for default inclusion of all suitable non-PARSE clocks... " >&6; } 22645# Check whether --enable-all-clocks was given. 22646if test "${enable_all_clocks+set}" = set; then : 22647 enableval=$enable_all_clocks; ntp_eac=$enableval 22648else 22649 ntp_eac=yes 22650fi 22651 22652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_eac" >&5 22653$as_echo "$ntp_eac" >&6; } 22654 22655# HMS: Should we also require ac_cv_var_parse_ok? 22656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have support for PARSE clocks" >&5 22657$as_echo_n "checking if we have support for PARSE clocks... " >&6; } 22658case "$ac_cv_var_atom_ok$ac_cv_header_termio_h$ac_cv_header_termios_h" in 22659 yes*yes*) 22660 ntp_canparse=yes 22661 ;; 22662 *) ntp_canparse=no 22663 ;; 22664esac 22665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_canparse" >&5 22666$as_echo "$ntp_canparse" >&6; } 22667 22668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have support for audio clocks" >&5 22669$as_echo_n "checking if we have support for audio clocks... " >&6; } 22670case "$ac_cv_header_sun_audioio_h$ac_cv_header_sys_audioio_h$ac_cv_header_machine_soundcard_h$ac_cv_header_sys_soundcard_h" in 22671 *yes*) 22672 ntp_canaudio=yes 22673 22674$as_echo "#define HAVE_AUDIO /**/" >>confdefs.h 22675 22676 ;; 22677 *) ntp_canaudio=no ;; 22678esac 22679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_canaudio" >&5 22680$as_echo "$ntp_canaudio" >&6; } 22681 22682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have support for the SHM refclock interface" >&5 22683$as_echo_n "checking if we have support for the SHM refclock interface... " >&6; } 22684case "$ac_cv_header_sys_ipc_h$ac_cv_header_sys_shm_h" in 22685 yesyes) 22686 ntp_canshm=yes 22687 ;; 22688 *) ntp_canshm=no ;; 22689esac 22690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_canshm" >&5 22691$as_echo "$ntp_canshm" >&6; } 22692 22693# Requires modem control 22694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking ACTS modem service" >&5 22695$as_echo_n "checking ACTS modem service... " >&6; } 22696# Check whether --enable-ACTS was given. 22697if test "${enable_ACTS+set}" = set; then : 22698 enableval=$enable_ACTS; ntp_ok=$enableval 22699else 22700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22701/* end confdefs.h. */ 22702#include <termios.h> 22703#ifdef HAVE_SYS_IOCTL_H 22704#include <sys/ioctl.h> 22705#endif 22706#ifdef TIOCMBIS 22707 yes 22708#endif 22709 22710_ACEOF 22711if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 22712 $EGREP "yes" >/dev/null 2>&1; then : 22713 ntp_ok=$ntp_eac 22714else 22715 ntp_ok=no 22716fi 22717rm -f conftest* 22718 22719fi 22720 22721if test "$ntp_ok" = "yes"; then 22722 ntp_refclock=yes 22723 22724$as_echo "#define CLOCK_ACTS 1" >>confdefs.h 22725 22726fi 22727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 22728$as_echo "$ntp_ok" >&6; } 22729 22730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Arbiter 1088A/B GPS receiver" >&5 22731$as_echo_n "checking Arbiter 1088A/B GPS receiver... " >&6; } 22732# Check whether --enable-ARBITER was given. 22733if test "${enable_ARBITER+set}" = set; then : 22734 enableval=$enable_ARBITER; ntp_ok=$enableval 22735else 22736 ntp_ok=$ntp_eac 22737fi 22738 22739if test "$ntp_ok" = "yes"; then 22740 ntp_refclock=yes 22741 22742$as_echo "#define CLOCK_ARBITER 1" >>confdefs.h 22743 22744fi 22745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 22746$as_echo "$ntp_ok" >&6; } 22747 22748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Arcron MSF receiver" >&5 22749$as_echo_n "checking Arcron MSF receiver... " >&6; } 22750# Check whether --enable-ARCRON_MSF was given. 22751if test "${enable_ARCRON_MSF+set}" = set; then : 22752 enableval=$enable_ARCRON_MSF; ntp_ok=$enableval 22753else 22754 ntp_ok=$ntp_eac 22755fi 22756 22757if test "$ntp_ok" = "yes"; then 22758 ntp_refclock=yes 22759 22760$as_echo "#define CLOCK_ARCRON_MSF 1" >>confdefs.h 22761 22762fi 22763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 22764$as_echo "$ntp_ok" >&6; } 22765 22766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Austron 2200A/2201A GPS receiver" >&5 22767$as_echo_n "checking Austron 2200A/2201A GPS receiver... " >&6; } 22768# Check whether --enable-AS2201 was given. 22769if test "${enable_AS2201+set}" = set; then : 22770 enableval=$enable_AS2201; ntp_ok=$enableval 22771else 22772 ntp_ok=$ntp_eac 22773fi 22774 22775if test "$ntp_ok" = "yes"; then 22776 ntp_refclock=yes 22777 22778$as_echo "#define CLOCK_AS2201 1" >>confdefs.h 22779 22780fi 22781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 22782$as_echo "$ntp_ok" >&6; } 22783 22784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking ATOM PPS interface" >&5 22785$as_echo_n "checking ATOM PPS interface... " >&6; } 22786# Check whether --enable-ATOM was given. 22787if test "${enable_ATOM+set}" = set; then : 22788 enableval=$enable_ATOM; ntp_ok=$enableval 22789else 22790 ntp_ok=$ntp_eac 22791fi 22792 22793case "$ac_cv_var_atom_ok" in 22794 no) ntp_ok=no ;; 22795esac 22796if test "$ntp_ok" = "yes"; then 22797 ntp_refclock=yes 22798 22799$as_echo "#define CLOCK_ATOM 1" >>confdefs.h 22800 22801fi 22802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 22803$as_echo "$ntp_ok" >&6; } 22804 22805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Chrono-log K-series WWVB receiver" >&5 22806$as_echo_n "checking Chrono-log K-series WWVB receiver... " >&6; } 22807# Check whether --enable-CHRONOLOG was given. 22808if test "${enable_CHRONOLOG+set}" = set; then : 22809 enableval=$enable_CHRONOLOG; ntp_ok=$enableval 22810else 22811 ntp_ok=$ntp_eac 22812fi 22813 22814if test "$ntp_ok" = "yes"; then 22815 ntp_refclock=yes 22816 22817$as_echo "#define CLOCK_CHRONOLOG 1" >>confdefs.h 22818 22819fi 22820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 22821$as_echo "$ntp_ok" >&6; } 22822 22823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CHU modem/decoder" >&5 22824$as_echo_n "checking CHU modem/decoder... " >&6; } 22825# Check whether --enable-CHU was given. 22826if test "${enable_CHU+set}" = set; then : 22827 enableval=$enable_CHU; ntp_ok=$enableval 22828else 22829 ntp_ok=$ntp_eac 22830fi 22831 22832if test "$ntp_ok" = "yes"; then 22833 ntp_refclock=yes 22834 22835$as_echo "#define CLOCK_CHU 1" >>confdefs.h 22836 22837fi 22838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 22839$as_echo "$ntp_ok" >&6; } 22840ac_refclock_chu=$ntp_ok 22841 22842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CHU audio/decoder" >&5 22843$as_echo_n "checking CHU audio/decoder... " >&6; } 22844# Check whether --enable-AUDIO-CHU was given. 22845if test "${enable_AUDIO_CHU+set}" = set; then : 22846 enableval=$enable_AUDIO_CHU; ntp_ok=$enableval 22847else 22848 case "$ntp_eac$ac_refclock_chu$ntp_canaudio" in 22849 *no*) ntp_ok=no ;; 22850 *) ntp_ok=yes ;; 22851esac 22852fi 22853 22854if test "$ntp_ok" = "yes"; then 22855 22856$as_echo "#define AUDIO_CHU 1" >>confdefs.h 22857 22858fi 22859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 22860$as_echo "$ntp_ok" >&6; } 22861# We used to check for sunos/solaris target... 22862case "$ntp_ok$ac_refclock_chu$ntp_canaudio" in 22863 yes*no*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is...no ***" >&5 22864$as_echo "$as_me: WARNING: *** But the expected answer is...no ***" >&2;} ;; 22865esac 22866 22867# Not under HP-UX 22868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Datum Programmable Time System" >&5 22869$as_echo_n "checking Datum Programmable Time System... " >&6; } 22870# Check whether --enable-DATUM was given. 22871if test "${enable_DATUM+set}" = set; then : 22872 enableval=$enable_DATUM; ntp_ok=$enableval 22873else 22874 case "$ac_cv_header_termios_h" in 22875 yes) 22876 ntp_ok=$ntp_eac 22877 ;; 22878 *) ntp_ok=no 22879 ;; 22880 esac 22881fi 22882 22883if test "$ntp_ok" = "yes"; then 22884 ntp_refclock=yes 22885 22886$as_echo "#define CLOCK_DATUM 1" >>confdefs.h 22887 22888fi 22889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 22890$as_echo "$ntp_ok" >&6; } 22891 22892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Dumb generic hh:mm:ss local clock" >&5 22893$as_echo_n "checking Dumb generic hh:mm:ss local clock... " >&6; } 22894# Check whether --enable-DUMBCLOCK was given. 22895if test "${enable_DUMBCLOCK+set}" = set; then : 22896 enableval=$enable_DUMBCLOCK; ntp_ok=$enableval 22897else 22898 ntp_ok=$ntp_eac 22899fi 22900 22901if test "$ntp_ok" = "yes"; then 22902 ntp_refclock=yes 22903 22904$as_echo "#define CLOCK_DUMBCLOCK 1" >>confdefs.h 22905 22906fi 22907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 22908$as_echo "$ntp_ok" >&6; } 22909 22910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Forum Graphic GPS" >&5 22911$as_echo_n "checking Forum Graphic GPS... " >&6; } 22912# Check whether --enable-FG was given. 22913if test "${enable_FG+set}" = set; then : 22914 enableval=$enable_FG; ntp_ok=$enableval 22915else 22916 ntp_ok=$ntp_eac 22917fi 22918 22919if test "$ntp_ok" = "yes"; then 22920 ntp_refclock=yes 22921 22922$as_echo "#define CLOCK_FG 1" >>confdefs.h 22923 22924fi 22925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 22926$as_echo "$ntp_ok" >&6; } 22927 22928# Requires modem control 22929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Heath GC-1000 WWV/WWVH receiver" >&5 22930$as_echo_n "checking Heath GC-1000 WWV/WWVH receiver... " >&6; } 22931# Check whether --enable-HEATH was given. 22932if test "${enable_HEATH+set}" = set; then : 22933 enableval=$enable_HEATH; ntp_ok=$enableval 22934else 22935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22936/* end confdefs.h. */ 22937#include <termios.h> 22938#ifdef HAVE_SYS_IOCTL_H 22939#include <sys/ioctl.h> 22940#endif 22941#ifdef TIOCMBIS 22942 yes 22943#endif 22944 22945_ACEOF 22946if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 22947 $EGREP "yes" >/dev/null 2>&1; then : 22948 ntp_ok=$ntp_eac 22949else 22950 ntp_ok=no 22951fi 22952rm -f conftest* 22953 22954fi 22955 22956if test "$ntp_ok" = "yes"; then 22957 ntp_refclock=yes 22958 22959$as_echo "#define CLOCK_HEATH 1" >>confdefs.h 22960 22961fi 22962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 22963$as_echo "$ntp_ok" >&6; } 22964 22965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for hopf serial clock device" >&5 22966$as_echo_n "checking for hopf serial clock device... " >&6; } 22967# Check whether --enable-HOPFSERIAL was given. 22968if test "${enable_HOPFSERIAL+set}" = set; then : 22969 enableval=$enable_HOPFSERIAL; ntp_ok=$enableval 22970else 22971 ntp_ok=$ntp_eac 22972fi 22973 22974if test "$ntp_ok" = "yes"; then 22975 ntp_refclock=yes 22976 22977$as_echo "#define CLOCK_HOPF_SERIAL 1" >>confdefs.h 22978 22979fi 22980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 22981$as_echo "$ntp_ok" >&6; } 22982 22983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for hopf PCI clock 6039" >&5 22984$as_echo_n "checking for hopf PCI clock 6039... " >&6; } 22985# Check whether --enable-HOPFPCI was given. 22986if test "${enable_HOPFPCI+set}" = set; then : 22987 enableval=$enable_HOPFPCI; ntp_ok=$enableval 22988else 22989 ntp_ok=$ntp_eac 22990fi 22991 22992if test "$ntp_ok" = "yes"; then 22993 ntp_refclock=yes 22994 22995$as_echo "#define CLOCK_HOPF_PCI 1" >>confdefs.h 22996 22997fi 22998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 22999$as_echo "$ntp_ok" >&6; } 23000 23001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking HP 58503A GPS receiver" >&5 23002$as_echo_n "checking HP 58503A GPS receiver... " >&6; } 23003# Check whether --enable-HPGPS was given. 23004if test "${enable_HPGPS+set}" = set; then : 23005 enableval=$enable_HPGPS; ntp_ok=$enableval 23006else 23007 ntp_ok=$ntp_eac 23008fi 23009 23010if test "$ntp_ok" = "yes"; then 23011 ntp_refclock=yes 23012 23013$as_echo "#define CLOCK_HPGPS 1" >>confdefs.h 23014 23015fi 23016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 23017$as_echo "$ntp_ok" >&6; } 23018 23019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking IRIG audio decoder" >&5 23020$as_echo_n "checking IRIG audio decoder... " >&6; } 23021# Check whether --enable-IRIG was given. 23022if test "${enable_IRIG+set}" = set; then : 23023 enableval=$enable_IRIG; ntp_ok=$enableval 23024else 23025 case "$ntp_eac$ntp_canaudio" in 23026 *no*) ntp_ok=no ;; 23027 *) ntp_ok=yes ;; 23028 esac 23029fi 23030 23031if test "$ntp_ok" = "yes"; then 23032 ntp_refclock=yes 23033 23034$as_echo "#define CLOCK_IRIG 1" >>confdefs.h 23035 23036fi 23037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 23038$as_echo "$ntp_ok" >&6; } 23039case "$ntp_ok$ntp_canaudio" in 23040 yesno) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5 23041$as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;; 23042esac 23043 23044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JJY receiver" >&5 23045$as_echo_n "checking for JJY receiver... " >&6; } 23046# Check whether --enable-JJY was given. 23047if test "${enable_JJY+set}" = set; then : 23048 enableval=$enable_JJY; ntp_ok=$enableval 23049else 23050 ntp_ok=$ntp_eac 23051fi 23052 23053if test "$ntp_ok" = "yes"; then 23054 ntp_refclock=yes 23055 23056$as_echo "#define CLOCK_JJY 1" >>confdefs.h 23057 23058fi 23059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 23060$as_echo "$ntp_ok" >&6; } 23061 23062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Rockwell Jupiter GPS receiver" >&5 23063$as_echo_n "checking Rockwell Jupiter GPS receiver... " >&6; } 23064# Check whether --enable-JUPITER was given. 23065if test "${enable_JUPITER+set}" = set; then : 23066 enableval=$enable_JUPITER; ntp_ok=$enableval 23067else 23068 ntp_ok=$ntp_eac 23069fi 23070 23071case "$ac_cv_var_jupiter_ok" in 23072 no) ntp_ok=no ;; 23073esac 23074if test "$ntp_ok" = "yes"; then 23075 ntp_refclock=yes 23076 23077$as_echo "#define CLOCK_JUPITER 1" >>confdefs.h 23078 23079fi 23080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 23081$as_echo "$ntp_ok" >&6; } 23082 23083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Leitch CSD 5300 Master Clock System Driver" >&5 23084$as_echo_n "checking Leitch CSD 5300 Master Clock System Driver... " >&6; } 23085# Check whether --enable-LEITCH was given. 23086if test "${enable_LEITCH+set}" = set; then : 23087 enableval=$enable_LEITCH; ntp_ok=$enableval 23088else 23089 ntp_ok=$ntp_eac 23090fi 23091 23092if test "$ntp_ok" = "yes"; then 23093 ntp_refclock=yes 23094 23095$as_echo "#define CLOCK_LEITCH 1" >>confdefs.h 23096 23097fi 23098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 23099$as_echo "$ntp_ok" >&6; } 23100 23101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking local clock reference" >&5 23102$as_echo_n "checking local clock reference... " >&6; } 23103# Check whether --enable-LOCAL-CLOCK was given. 23104if test "${enable_LOCAL_CLOCK+set}" = set; then : 23105 enableval=$enable_LOCAL_CLOCK; ntp_ok=$enableval 23106else 23107 ntp_ok=$ntp_eac 23108fi 23109 23110if test "$ntp_ok" = "yes"; then 23111 ntp_refclock=yes 23112 23113$as_echo "#define CLOCK_LOCAL 1" >>confdefs.h 23114 23115fi 23116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 23117$as_echo "$ntp_ok" >&6; } 23118 23119 23120# Not Ultrix 23121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Magnavox MX4200 GPS receiver" >&5 23122$as_echo_n "checking Magnavox MX4200 GPS receiver... " >&6; } 23123# Check whether --enable-MX4200 was given. 23124if test "${enable_MX4200+set}" = set; then : 23125 enableval=$enable_MX4200; ntp_ok=$enableval 23126else 23127 case "$ac_cv_var_ppsclock" in 23128 yes) ntp_ok=$ntp_eac 23129 ;; 23130 *) ntp_ok=no 23131 ;; 23132 esac 23133fi 23134 23135if test "$ntp_ok" = "yes"; then 23136 ntp_refclock=yes 23137 23138$as_echo "#define CLOCK_MX4200 1" >>confdefs.h 23139 23140fi 23141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 23142$as_echo "$ntp_ok" >&6; } 23143case "$ntp_ok$host" in 23144 yes*-*-ultrix*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5 23145$as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;; 23146esac 23147 23148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for NeoClock4X receiver" >&5 23149$as_echo_n "checking for NeoClock4X receiver... " >&6; } 23150# Check whether --enable-NEOCLOCK4X was given. 23151if test "${enable_NEOCLOCK4X+set}" = set; then : 23152 enableval=$enable_NEOCLOCK4X; ntp_ok=$enableval 23153else 23154 ntp_ok=$ntp_eac 23155fi 23156 23157if test "$ntp_ok" = "yes"; then 23158 ntp_refclock=yes 23159 23160$as_echo "#define CLOCK_NEOCLOCK4X 1" >>confdefs.h 23161 23162fi 23163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 23164$as_echo "$ntp_ok" >&6; } 23165 23166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking NMEA GPS receiver" >&5 23167$as_echo_n "checking NMEA GPS receiver... " >&6; } 23168# Check whether --enable-NMEA was given. 23169if test "${enable_NMEA+set}" = set; then : 23170 enableval=$enable_NMEA; ntp_ok=$enableval 23171else 23172 ntp_ok=$ntp_eac 23173fi 23174 23175if test "$ntp_ok" = "yes"; then 23176 ntp_refclock=yes 23177 23178$as_echo "#define CLOCK_NMEA 1" >>confdefs.h 23179 23180fi 23181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 23182$as_echo "$ntp_ok" >&6; } 23183 23184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ONCORE Motorola VP/UT Oncore GPS" >&5 23185$as_echo_n "checking for ONCORE Motorola VP/UT Oncore GPS... " >&6; } 23186# Check whether --enable-ONCORE was given. 23187if test "${enable_ONCORE+set}" = set; then : 23188 enableval=$enable_ONCORE; ntp_ok=$enableval 23189else 23190 ntp_ok=$ntp_eac 23191fi 23192 23193case "$ac_cv_var_oncore_ok" in 23194 no) ntp_ok=no ;; 23195esac 23196if test "$ntp_ok" = "yes"; then 23197 ntp_refclock=yes 23198 23199$as_echo "#define CLOCK_ONCORE 1" >>confdefs.h 23200 23201fi 23202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 23203$as_echo "$ntp_ok" >&6; } 23204 23205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Palisade clock" >&5 23206$as_echo_n "checking for Palisade clock... " >&6; } 23207# Check whether --enable-PALISADE was given. 23208if test "${enable_PALISADE+set}" = set; then : 23209 enableval=$enable_PALISADE; ntp_ok=$enableval 23210else 23211 case "$ac_cv_header_termios_h" in 23212 yes) 23213 ntp_ok=$ntp_eac 23214 ;; 23215 *) ntp_ok=no 23216 ;; 23217 esac 23218fi 23219 23220 23221if test "$ntp_ok" = "yes"; then 23222 ntp_refclock=yes 23223 23224$as_echo "#define CLOCK_PALISADE 1" >>confdefs.h 23225 23226fi 23227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 23228$as_echo "$ntp_ok" >&6; } 23229 23230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Conrad parallel port radio clock" >&5 23231$as_echo_n "checking Conrad parallel port radio clock... " >&6; } 23232# Check whether --enable-PCF was given. 23233if test "${enable_PCF+set}" = set; then : 23234 enableval=$enable_PCF; ntp_ok=$enableval 23235else 23236 ntp_ok=$ntp_eac 23237fi 23238 23239if test "$ntp_ok" = "yes"; then 23240 ntp_refclock=yes 23241 23242$as_echo "#define CLOCK_PCF 1" >>confdefs.h 23243 23244fi 23245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 23246$as_echo "$ntp_ok" >&6; } 23247 23248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking PST/Traconex 1020 WWV/WWVH receiver" >&5 23249$as_echo_n "checking PST/Traconex 1020 WWV/WWVH receiver... " >&6; } 23250# Check whether --enable-PST was given. 23251if test "${enable_PST+set}" = set; then : 23252 enableval=$enable_PST; ntp_ok=$enableval 23253else 23254 ntp_ok=$ntp_eac 23255fi 23256 23257if test "$ntp_ok" = "yes"; then 23258 ntp_refclock=yes 23259 23260$as_echo "#define CLOCK_PST 1" >>confdefs.h 23261 23262fi 23263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 23264$as_echo "$ntp_ok" >&6; } 23265 23266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking RIPENCC specific Trimble driver" >&5 23267$as_echo_n "checking RIPENCC specific Trimble driver... " >&6; } 23268# Check whether --enable-RIPENCC was given. 23269if test "${enable_RIPENCC+set}" = set; then : 23270 enableval=$enable_RIPENCC; ntp_ok=$enableval 23271else 23272 ntp_ok=no 23273fi 23274 23275# 020629: HMS: s/$ntp_eac -> -/no because of ptr += sprintf(ptr, ...) usage 23276case "$ac_cv_var_ripe_ncc_ok" in 23277 no) ntp_ok=no ;; 23278esac 23279if test "$ntp_ok" = "yes"; then 23280 ntp_refclock=yes 23281 23282$as_echo "#define CLOCK_RIPENCC /**/" >>confdefs.h 23283 23284fi 23285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 23286$as_echo "$ntp_ok" >&6; } 23287 23288# Danny Meyer says SHM compiles (with a few warnings) under Win32. 23289# For *IX, we need sys/ipc.h and sys/shm.h. 23290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SHM clock attached thru shared memory" >&5 23291$as_echo_n "checking for SHM clock attached thru shared memory... " >&6; } 23292# Check whether --enable-SHM was given. 23293if test "${enable_SHM+set}" = set; then : 23294 enableval=$enable_SHM; ntp_ok=$enableval 23295else 23296 case "$ntp_eac$ntp_canshm" in 23297 *no*) ntp_ok=no ;; 23298 *) ntp_ok=yes ;; 23299esac 23300fi 23301 23302if test "$ntp_ok" = "yes"; then 23303 ntp_refclock=yes 23304 23305$as_echo "#define CLOCK_SHM 1" >>confdefs.h 23306 23307fi 23308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 23309$as_echo "$ntp_ok" >&6; } 23310 23311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Spectracom 8170/Netclock/2 WWVB receiver" >&5 23312$as_echo_n "checking Spectracom 8170/Netclock/2 WWVB receiver... " >&6; } 23313# Check whether --enable-SPECTRACOM was given. 23314if test "${enable_SPECTRACOM+set}" = set; then : 23315 enableval=$enable_SPECTRACOM; ntp_ok=$enableval 23316else 23317 ntp_ok=$ntp_eac 23318fi 23319 23320if test "$ntp_ok" = "yes"; then 23321 ntp_refclock=yes 23322 23323$as_echo "#define CLOCK_SPECTRACOM 1" >>confdefs.h 23324 23325fi 23326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 23327$as_echo "$ntp_ok" >&6; } 23328 23329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking KSI/Odetics TPRO/S GPS receiver/IRIG interface" >&5 23330$as_echo_n "checking KSI/Odetics TPRO/S GPS receiver/IRIG interface... " >&6; } 23331# Check whether --enable-TPRO was given. 23332if test "${enable_TPRO+set}" = set; then : 23333 enableval=$enable_TPRO; ntp_ok=$enableval 23334else 23335 case "$ac_cv_header_sys_tpro_h" in 23336 yes) 23337 ntp_ok=$ntp_eac 23338 ;; 23339 *) ntp_ok=no 23340 ;; 23341 esac 23342fi 23343 23344if test "$ntp_ok" = "yes"; then 23345 ntp_refclock=yes 23346 23347$as_echo "#define CLOCK_TPRO 1" >>confdefs.h 23348 23349fi 23350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 23351$as_echo "$ntp_ok" >&6; } 23352case "$ntp_ok$ac_cv_header_sys_tpro" in 23353 yesno) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5 23354$as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;; 23355esac 23356 23357 23358# Not on a vax-dec-bsd 23359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Kinemetrics/TrueTime receivers" >&5 23360$as_echo_n "checking Kinemetrics/TrueTime receivers... " >&6; } 23361# Check whether --enable-TRUETIME was given. 23362if test "${enable_TRUETIME+set}" = set; then : 23363 enableval=$enable_TRUETIME; ntp_ok=$enableval 23364else 23365 case "$host" in 23366 vax-dec-bsd) 23367 ntp_ok=no 23368 ;; 23369 *) 23370 ntp_ok=$ntp_eac 23371 ;; 23372 esac 23373fi 23374 23375 23376if test "$ntp_ok" = "yes"; then 23377 ntp_refclock=yes 23378 23379$as_echo "#define CLOCK_TRUETIME 1" >>confdefs.h 23380 23381fi 23382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 23383$as_echo "$ntp_ok" >&6; } 23384case "$ntp_ok$host" in 23385 yesvax-dec-bsd) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5 23386$as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;; 23387esac 23388 23389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking TrueTime 560 IRIG-B decoder" >&5 23390$as_echo_n "checking TrueTime 560 IRIG-B decoder... " >&6; } 23391# Check whether --enable-TT560 was given. 23392if test "${enable_TT560+set}" = set; then : 23393 enableval=$enable_TT560; ntp_ok=$enableval 23394else 23395 ntp_ok=no 23396fi 23397 23398if test "$ntp_ok" = "yes"; then 23399 ntp_refclock=yes 23400 23401$as_echo "#define CLOCK_TT560 /**/" >>confdefs.h 23402 23403fi 23404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 23405$as_echo "$ntp_ok" >&6; } 23406 23407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Ultralink M320 WWVB receiver" >&5 23408$as_echo_n "checking Ultralink M320 WWVB receiver... " >&6; } 23409# Check whether --enable-ULINK was given. 23410if test "${enable_ULINK+set}" = set; then : 23411 enableval=$enable_ULINK; ntp_ok=$enableval 23412else 23413 ntp_ok=$ntp_eac 23414fi 23415 23416if test "$ntp_ok" = "yes"; then 23417 ntp_refclock=yes 23418 23419$as_echo "#define CLOCK_ULINK 1" >>confdefs.h 23420 23421fi 23422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 23423$as_echo "$ntp_ok" >&6; } 23424 23425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking WWV receiver" >&5 23426$as_echo_n "checking WWV receiver... " >&6; } 23427# Check whether --enable-WWV was given. 23428if test "${enable_WWV+set}" = set; then : 23429 enableval=$enable_WWV; ntp_ok=$enableval 23430else 23431 case "$ntp_eac$ntp_canaudio" in 23432 *no*) ntp_ok=no ;; 23433 *) ntp_ok=yes ;; 23434 esac 23435fi 23436 23437if test "$ntp_ok" = "yes"; then 23438 ntp_refclock=yes 23439 23440$as_echo "#define CLOCK_WWV 1" >>confdefs.h 23441 23442fi 23443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 23444$as_echo "$ntp_ok" >&6; } 23445case "$ntp_ok$ntp_canaudio" in 23446 yesno) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5 23447$as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;; 23448esac 23449 23450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Zyfer receiver" >&5 23451$as_echo_n "checking for Zyfer receiver... " >&6; } 23452# Check whether --enable-ZYFER was given. 23453if test "${enable_ZYFER+set}" = set; then : 23454 enableval=$enable_ZYFER; ntp_ok=$enableval 23455else 23456 ntp_ok=$ntp_eac 23457fi 23458 23459if test "$ntp_ok" = "yes"; then 23460 ntp_refclock=yes 23461 23462$as_echo "#define CLOCK_ZYFER 1" >>confdefs.h 23463 23464fi 23465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 23466$as_echo "$ntp_ok" >&6; } 23467 23468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default inclusion of all suitable PARSE clocks" >&5 23469$as_echo_n "checking for default inclusion of all suitable PARSE clocks... " >&6; } 23470# Check whether --enable-parse-clocks was given. 23471if test "${enable_parse_clocks+set}" = set; then : 23472 enableval=$enable_parse_clocks; ntp_eapc=$enableval 23473else 23474 case "$ntp_eac" in 23475 yes) ntp_eapc=$ntp_canparse ;; 23476 *) ntp_eapc=no ;; 23477 esac 23478 # Delete the next line one of these days 23479 ntp_eapc=no 23480fi 23481 23482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_eapc" >&5 23483$as_echo "$ntp_eapc" >&6; } 23484 23485case "$ntp_eac$ntp_eapc$ntp_canparse" in 23486 noyes*) 23487 as_fn_error "\"--enable-parse-clocks\" requires \"--enable-all-clocks\"." "$LINENO" 5 23488 ;; 23489 yesyesno) 23490 as_fn_error "You said \"--enable-parse-clocks\" but PARSE isn't supported on this platform!" "$LINENO" 5 23491 ;; 23492 *) ;; 23493esac 23494 23495ntp_libparse=no 23496ntp_parseutil=no 23497ntp_rawdcf=no 23498 23499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Diem Computime Radio Clock" >&5 23500$as_echo_n "checking Diem Computime Radio Clock... " >&6; } 23501# Check whether --enable-COMPUTIME was given. 23502if test "${enable_COMPUTIME+set}" = set; then : 23503 enableval=$enable_COMPUTIME; ntp_ok=$enableval 23504else 23505 ntp_ok=$ntp_eapc 23506fi 23507 23508if test "$ntp_ok" = "yes"; then 23509 ntp_libparse=yes 23510 ntp_refclock=yes 23511 23512$as_echo "#define CLOCK_COMPUTIME 1" >>confdefs.h 23513 23514fi 23515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 23516$as_echo "$ntp_ok" >&6; } 23517case "$ntp_ok$ntp_canparse" in 23518 yesno) 23519 as_fn_error "That's a parse clock and this system doesn't support it!" "$LINENO" 5 23520 ;; 23521esac 23522 23523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking ELV/DCF7000 clock" >&5 23524$as_echo_n "checking ELV/DCF7000 clock... " >&6; } 23525# Check whether --enable-DCF7000 was given. 23526if test "${enable_DCF7000+set}" = set; then : 23527 enableval=$enable_DCF7000; ntp_ok=$enableval 23528else 23529 ntp_ok=$ntp_eapc 23530fi 23531 23532if test "$ntp_ok" = "yes"; then 23533 ntp_libparse=yes 23534 ntp_refclock=yes 23535 23536$as_echo "#define CLOCK_DCF7000 1" >>confdefs.h 23537 23538fi 23539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 23540$as_echo "$ntp_ok" >&6; } 23541case "$ntp_ok$ntp_canparse" in 23542 yesno) 23543 as_fn_error "That's a parse clock and this system doesn't support it!" "$LINENO" 5 23544 ;; 23545esac 23546 23547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking HOPF 6021 clock" >&5 23548$as_echo_n "checking HOPF 6021 clock... " >&6; } 23549# Check whether --enable-HOPF6021 was given. 23550if test "${enable_HOPF6021+set}" = set; then : 23551 enableval=$enable_HOPF6021; ntp_ok=$enableval 23552else 23553 ntp_ok=$ntp_eapc 23554fi 23555 23556if test "$ntp_ok" = "yes"; then 23557 ntp_libparse=yes 23558 ntp_refclock=yes 23559 23560$as_echo "#define CLOCK_HOPF6021 1" >>confdefs.h 23561 23562fi 23563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 23564$as_echo "$ntp_ok" >&6; } 23565case "$ntp_ok$ntp_canparse" in 23566 yesno) 23567 as_fn_error "That's a parse clock and this system doesn't support it!" "$LINENO" 5 23568 ;; 23569esac 23570 23571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Meinberg clocks" >&5 23572$as_echo_n "checking Meinberg clocks... " >&6; } 23573# Check whether --enable-MEINBERG was given. 23574if test "${enable_MEINBERG+set}" = set; then : 23575 enableval=$enable_MEINBERG; ntp_ok=$enableval 23576else 23577 ntp_ok=$ntp_eapc 23578fi 23579 23580if test "$ntp_ok" = "yes"; then 23581 ntp_libparse=yes 23582 ntp_refclock=yes 23583 23584$as_echo "#define CLOCK_MEINBERG 1" >>confdefs.h 23585 23586fi 23587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 23588$as_echo "$ntp_ok" >&6; } 23589case "$ntp_ok$ntp_canparse" in 23590 yesno) 23591 as_fn_error "That's a parse clock and this system doesn't support it!" "$LINENO" 5 23592 ;; 23593esac 23594 23595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking DCF77 raw time code" >&5 23596$as_echo_n "checking DCF77 raw time code... " >&6; } 23597# Check whether --enable-RAWDCF was given. 23598if test "${enable_RAWDCF+set}" = set; then : 23599 enableval=$enable_RAWDCF; ntp_ok=$enableval 23600else 23601 ntp_ok=$ntp_eapc 23602fi 23603 23604if test "$ntp_ok" = "yes"; then 23605 ntp_libparse=yes 23606 ntp_parseutil=yes 23607 ntp_refclock=yes 23608 ntp_rawdcf=yes 23609 23610$as_echo "#define CLOCK_RAWDCF 1" >>confdefs.h 23611 23612fi 23613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 23614$as_echo "$ntp_ok" >&6; } 23615case "$ntp_ok$ntp_canparse" in 23616 yesno) 23617 as_fn_error "That's a parse clock and this system doesn't support it!" "$LINENO" 5 23618 ;; 23619esac 23620 23621case "$ntp_rawdcf" in 23622 yes) 23623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we must enable parity for RAWDCF" >&5 23624$as_echo_n "checking if we must enable parity for RAWDCF... " >&6; } 23625if test "${ac_cv_var_rawdcf_parity+set}" = set; then : 23626 $as_echo_n "(cached) " >&6 23627else 23628 ans=no 23629 case "$host" in 23630 *-*-*linux*) 23631 ans=yes 23632 ;; 23633 esac 23634 ac_cv_var_rawdcf_parity=$ans 23635fi 23636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_rawdcf_parity" >&5 23637$as_echo "$ac_cv_var_rawdcf_parity" >&6; } 23638 case "$ac_cv_var_rawdcf_parity" in 23639 yes) 23640$as_echo "#define RAWDCF_NO_IGNPAR 1" >>confdefs.h 23641 ;; 23642 esac 23643 ;; 23644 23645 *) # HMS: Is this a good idea? 23646 ac_cv_var_rawdcf_parity=no 23647 ;; 23648esac 23649 23650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking RCC 8000 clock" >&5 23651$as_echo_n "checking RCC 8000 clock... " >&6; } 23652# Check whether --enable-RCC8000 was given. 23653if test "${enable_RCC8000+set}" = set; then : 23654 enableval=$enable_RCC8000; ntp_ok=$enableval 23655else 23656 ntp_ok=$ntp_eapc 23657fi 23658 23659if test "$ntp_ok" = "yes"; then 23660 ntp_libparse=yes 23661 ntp_refclock=yes 23662 23663$as_echo "#define CLOCK_RCC8000 1" >>confdefs.h 23664 23665fi 23666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 23667$as_echo "$ntp_ok" >&6; } 23668case "$ntp_ok$ntp_canparse" in 23669 yesno) 23670 as_fn_error "That's a parse clock and this system doesn't support it!" "$LINENO" 5 23671 ;; 23672esac 23673 23674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Schmid DCF77 clock" >&5 23675$as_echo_n "checking Schmid DCF77 clock... " >&6; } 23676# Check whether --enable-SCHMID was given. 23677if test "${enable_SCHMID+set}" = set; then : 23678 enableval=$enable_SCHMID; ntp_ok=$enableval 23679else 23680 ntp_ok=$ntp_eapc 23681fi 23682 23683if test "$ntp_ok" = "yes"; then 23684 ntp_libparse=yes 23685 ntp_refclock=yes 23686 23687$as_echo "#define CLOCK_SCHMID 1" >>confdefs.h 23688 23689fi 23690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 23691$as_echo "$ntp_ok" >&6; } 23692case "$ntp_ok$ntp_canparse" in 23693 yesno) 23694 as_fn_error "That's a parse clock and this system doesn't support it!" "$LINENO" 5 23695 ;; 23696esac 23697 23698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Trimble GPS receiver/TAIP protocol" >&5 23699$as_echo_n "checking Trimble GPS receiver/TAIP protocol... " >&6; } 23700# Check whether --enable-TRIMTAIP was given. 23701if test "${enable_TRIMTAIP+set}" = set; then : 23702 enableval=$enable_TRIMTAIP; ntp_ok=$enableval 23703else 23704 ntp_ok=$ntp_eapc 23705fi 23706 23707if test "$ntp_ok" = "yes"; then 23708 ntp_libparse=yes 23709 ntp_refclock=yes 23710 23711$as_echo "#define CLOCK_TRIMTAIP 1" >>confdefs.h 23712 23713fi 23714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 23715$as_echo "$ntp_ok" >&6; } 23716case "$ntp_ok$ntp_canparse" in 23717 yesno) 23718 as_fn_error "That's a parse clock and this system doesn't support it!" "$LINENO" 5 23719 ;; 23720esac 23721 23722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Trimble GPS receiver/TSIP protocol" >&5 23723$as_echo_n "checking Trimble GPS receiver/TSIP protocol... " >&6; } 23724# Check whether --enable-TRIMTSIP was given. 23725if test "${enable_TRIMTSIP+set}" = set; then : 23726 enableval=$enable_TRIMTSIP; ntp_ok=$enableval 23727else 23728 ntp_ok=$ntp_eapc 23729fi 23730 23731if test "$ntp_ok" = "yes"; then 23732 ntp_libparse=yes 23733 ntp_refclock=yes 23734 23735$as_echo "#define CLOCK_TRIMTSIP 1" >>confdefs.h 23736 23737fi 23738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 23739$as_echo "$ntp_ok" >&6; } 23740case "$ntp_ok$ntp_canparse" in 23741 yesno) 23742 as_fn_error "That's a parse clock and this system doesn't support it!" "$LINENO" 5 23743 ;; 23744esac 23745 23746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking WHARTON 400A Series clock" >&5 23747$as_echo_n "checking WHARTON 400A Series clock... " >&6; } 23748# Check whether --enable-WHARTON was given. 23749if test "${enable_WHARTON+set}" = set; then : 23750 enableval=$enable_WHARTON; ntp_ok=$enableval 23751else 23752 ntp_ok=$ntp_eapc 23753fi 23754 23755if test "$ntp_ok" = "yes"; then 23756 ntp_libparse=yes 23757 ntp_refclock=yes 23758 23759$as_echo "#define CLOCK_WHARTON_400A 1" >>confdefs.h 23760 23761fi 23762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 23763$as_echo "$ntp_ok" >&6; } 23764case "$ntp_ok$ntp_canparse" in 23765 yesno) 23766 as_fn_error "That's a parse clock and this system doesn't support it!" "$LINENO" 5 23767 ;; 23768esac 23769 23770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking VARITEXT clock" >&5 23771$as_echo_n "checking VARITEXT clock... " >&6; } 23772# Check whether --enable-VARITEXT was given. 23773if test "${enable_VARITEXT+set}" = set; then : 23774 enableval=$enable_VARITEXT; ntp_ok=$enableval 23775else 23776 ntp_ok=$ntp_eapc 23777fi 23778 23779if test "$ntp_ok" = "yes"; then 23780 ntp_libparse=yes 23781 ntp_refclock=yes 23782 23783$as_echo "#define CLOCK_VARITEXT 1" >>confdefs.h 23784 23785fi 23786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 23787$as_echo "$ntp_ok" >&6; } 23788case "$ntp_ok$ntp_canparse" in 23789 yesno) 23790 as_fn_error "That's a parse clock and this system doesn't support it!" "$LINENO" 5 23791 ;; 23792esac 23793 23794 23795 23796 23797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need to make and use the parse libraries" >&5 23798$as_echo_n "checking if we need to make and use the parse libraries... " >&6; } 23799ans=no 23800case "$ntp_libparse" in 23801 yes) 23802 ans=yes 23803 23804$as_echo "#define CLOCK_PARSE 1" >>confdefs.h 23805 23806 LIBPARSE=../libparse/libparse.a 23807 MAKE_LIBPARSE=libparse.a 23808 # HMS: check_y2k trips the 34 year problem now... 23809 false && MAKE_CHECK_Y2K=check_y2k 23810 23811$as_echo "#define PPS_SAMPLE 1" >>confdefs.h 23812 23813 $as_echo "#define CLOCK_ATOM 1" >>confdefs.h 23814 23815 ;; 23816esac 23817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 23818$as_echo "$ans" >&6; } 23819 23820# AC_SUBST(RSAOBJS) 23821# AC_SUBST(RSASRCS) 23822# AC_SUBST(RSADIR) 23823# AC_SUBST(RSAREF) 23824# AC_SUBST(LIBRSAREF) 23825# AC_SUBST(MAKE_LIBRSAREF) 23826 23827 23828 23829 23830 23831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl library directory" >&5 23832$as_echo_n "checking for openssl library directory... " >&6; } 23833 23834# Check whether --with-openssl-libdir was given. 23835if test "${with_openssl_libdir+set}" = set; then : 23836 withval=$with_openssl_libdir; ans=$withval 23837else 23838 case "$build" in 23839 $host) ans=yes ;; 23840 *) ans=no ;; 23841esac 23842fi 23843 23844case "$ans" in 23845 no) ;; 23846 yes) # Look in: 23847 ans="/usr/lib /usr/lib/openssl /usr/sfw/lib /usr/local/lib /usr/local/ssl/lib" 23848 ;; 23849 *) # Look where they said 23850 ;; 23851esac 23852case "$ans" in 23853 no) ;; 23854 *) # Look for libcrypto.a and libssl.a: 23855 for i in $ans no 23856 do 23857 case "$host" in 23858 *-*-darwin*) 23859 test -f $i/libcrypto.dylib -a -f $i/libssl.dylib && break 23860 ;; 23861 *) 23862 test -f $i/libcrypto.so -a -f $i/libssl.so && break 23863 test -f $i/libcrypto.a -a -f $i/libssl.a && break 23864 ;; 23865 esac 23866 done 23867 case "$i" in 23868 no) 23869 ans=no 23870 OPENSSL_LIB= 23871 ;; 23872 *) ans=$i 23873 OPENSSL_LIB=$ans 23874 ;; 23875 esac 23876 ;; 23877esac 23878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 23879$as_echo "$ans" >&6; } 23880 23881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl include directory" >&5 23882$as_echo_n "checking for openssl include directory... " >&6; } 23883 23884# Check whether --with-openssl-incdir was given. 23885if test "${with_openssl_incdir+set}" = set; then : 23886 withval=$with_openssl_incdir; ans=$withval 23887else 23888 case "$build" in 23889 $host) ans=yes ;; 23890 *) ans=no ;; 23891esac 23892fi 23893 23894case "$ans" in 23895 no) ;; 23896 yes) # look in: 23897 ans="/usr/include /usr/sfw/include /usr/local/include /usr/local/ssl/include" 23898 ;; 23899 *) # Look where they said 23900 ;; 23901esac 23902case "$ans" in 23903 no) ;; 23904 *) # look for openssl/opensslconf.h: 23905 for i in $ans no 23906 do 23907 test -f $i/openssl/opensslconf.h && break 23908 done 23909 case "$i" in 23910 no) 23911 ans=no 23912 OPENSSL_INC= 23913 ;; 23914 *) ans=$i 23915 OPENSSL_INC=$ans 23916 ;; 23917 esac 23918 ;; 23919esac 23920{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 23921$as_echo "$ans" >&6; } 23922 23923 23924# Check whether --with-crypto was given. 23925if test "${with_crypto+set}" = set; then : 23926 withval=$with_crypto; ans=$withval 23927else 23928 ans=yes 23929fi 23930 23931case "$ans" in 23932 no) ;; 23933 yes|openssl) 23934 if test -z "$OPENSSL_LIB" -o -z "$OPENSSL_INC" 23935 then 23936 ans=no 23937 else 23938 # We have OpenSSL inc/lib - use them. 23939 ans=openssl 23940 CPPFLAGS="$CPPFLAGS -I$OPENSSL_INC" 23941 LDFLAGS="$LDFLAGS -L$OPENSSL_LIB" 23942 case "$need_dash_r" in 23943 1) LDFLAGS="$LDFLAGS -R$OPENSSL_LIB" 23944 ;; 23945 esac 23946 LCRYPTO=-lcrypto 23947 23948 23949$as_echo "#define OPENSSL /**/" >>confdefs.h 23950 23951 for ac_func in EVP_md2 EVP_mdc2 23952do : 23953 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 23954ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 23955eval as_val=\$$as_ac_var 23956 if test "x$as_val" = x""yes; then : 23957 cat >>confdefs.h <<_ACEOF 23958#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 23959_ACEOF 23960 23961fi 23962done 23963 23964 fi 23965 ;; 23966esac 23967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the level of crypto support" >&5 23968$as_echo_n "checking for the level of crypto support... " >&6; } 23969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 23970$as_echo "$ans" >&6; } 23971 23972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to compile with ElectricFence" >&5 23973$as_echo_n "checking if we want to compile with ElectricFence... " >&6; } 23974 23975# Check whether --with-electricfence was given. 23976if test "${with_electricfence+set}" = set; then : 23977 withval=$with_electricfence; ans=$withval 23978else 23979 ans=no 23980fi 23981 23982case "$ans" in 23983 no) ;; 23984 *) 23985 LIBS="$LIBS \${top_builddir}/ElectricFence/libefence.a" 23986 EF_PROGS="eftest tstheap" 23987 23988 EF_LIBS=libefence.a 23989 23990 ans=yes 23991 ;; 23992esac 23993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 23994$as_echo "$ans" >&6; } 23995 23996 23997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to run check-layout" >&5 23998$as_echo_n "checking if we want to run check-layout... " >&6; } 23999case "$cross_compiling$PATH_PERL" in 24000 no/*) 24001 MAKE_CHECK_LAYOUT=check-layout 24002 ans=yes 24003 ;; 24004 *) 24005 ans=no 24006 ;; 24007esac 24008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 24009$as_echo "$ans" >&6; } 24010 24011 24012 24013 24014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can make dcf parse utilities" >&5 24015$as_echo_n "checking if we can make dcf parse utilities... " >&6; } 24016ans=no 24017if test "$ntp_parseutil" = "yes"; then 24018 case "$host" in 24019 *-*-sunos4*|*-*-solaris2*|*-*-*linux*|*-*-netbsd*) 24020 ans="dcfd testdcf" 24021 DCFD=dcfd 24022 TESTDCF=testdcf 24023 ;; 24024 esac 24025fi 24026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 24027$as_echo "$ans" >&6; } 24028 24029 24030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can build kernel streams modules for parse" >&5 24031$as_echo_n "checking if we can build kernel streams modules for parse... " >&6; } 24032ans=no 24033case "$ntp_parseutil$ac_cv_header_sys_stropts_h" in 24034 yesyes) 24035 case "$host" in 24036 sparc-*-sunos4*) 24037 case "$ac_cv_var_kernel_pll" in 24038 yes) 24039 24040$as_echo "#define PPS_SYNC 1" >>confdefs.h 24041 24042 ;; 24043 esac 24044 ans=parsestreams 24045 MAKE_PARSEKMODULE=parsestreams.loadable_module.o 24046 ;; 24047 sparc-*-solaris2*) 24048 ans=parsesolaris 24049 MAKE_PARSEKMODULE=parse 24050 ;; 24051 esac 24052 ;; 24053esac 24054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 24055$as_echo "$ans" >&6; } 24056 24057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need basic refclock support" >&5 24058$as_echo_n "checking if we need basic refclock support... " >&6; } 24059if test "$ntp_refclock" = "yes"; then 24060 24061$as_echo "#define REFCLOCK 1" >>confdefs.h 24062 24063fi 24064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_refclock" >&5 24065$as_echo "$ntp_refclock" >&6; } 24066 24067 24068 24069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want HP-UX adjtimed support" >&5 24070$as_echo_n "checking if we want HP-UX adjtimed support... " >&6; } 24071case "$host" in 24072 *-*-hpux[56789]*) 24073 ans=yes 24074 ;; 24075 *) ans=no 24076 ;; 24077esac 24078if test "$ans" = "yes"; then 24079 MAKE_ADJTIMED=adjtimed 24080 24081$as_echo "#define NEED_HPUX_ADJTIME 1" >>confdefs.h 24082 24083fi 24084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 24085$as_echo "$ans" >&6; } 24086 24087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want QNX adjtime support" >&5 24088$as_echo_n "checking if we want QNX adjtime support... " >&6; } 24089case "$host" in 24090 *-*-qnx*) 24091 ans=yes 24092 ;; 24093 *) ans=no 24094 ;; 24095esac 24096if test "$ans" = "yes"; then 24097 24098$as_echo "#define NEED_QNX_ADJTIME 1" >>confdefs.h 24099 24100fi 24101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 24102$as_echo "$ans" >&6; } 24103 24104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can read kmem" >&5 24105$as_echo_n "checking if we can read kmem... " >&6; } 24106 24107# the default is to enable it if the system has the capability 24108 24109case "$ac_cv_func_nlist$ac_cv_func_K_open$ac_cv_func_kvm_open" in 24110 *yes*) 24111 ans=yes 24112 ;; 24113 *) ans=no 24114esac 24115 24116case "$host" in 24117 *-*-domainos) # Won't be found... 24118 ans=no 24119 ;; 24120 *-*-hpux*) 24121 #ans=no 24122 ;; 24123 *-*-irix[456]*) 24124 ans=no 24125 ;; 24126 *-*-*linux*) 24127 ans=no 24128 ;; 24129 *-*-winnt3.5) 24130 ans=no 24131 ;; 24132 *-*-unicosmp*) 24133 ans=no 24134 ;; 24135esac 24136 24137# --enable-kmem / --disable-kmem controls if present 24138# Check whether --enable-kmem was given. 24139if test "${enable_kmem+set}" = set; then : 24140 enableval=$enable_kmem; ans=$enableval 24141 24142fi 24143 24144 24145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 24146$as_echo "$ans" >&6; } 24147 24148case "$ans" in 24149 yes) 24150 can_kmem=yes 24151 ;; 24152 *) 24153 can_kmem=no 24154 24155$as_echo "#define NOKMEM 1" >>confdefs.h 24156 24157esac 24158 24159 24160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if adjtime is accurate" >&5 24161$as_echo_n "checking if adjtime is accurate... " >&6; } 24162 24163# target-dependent defaults 24164 24165case "$host" in 24166 i386-sequent-ptx*) 24167 ans=no 24168 ;; 24169 i386-unknown-osf1*) 24170 ans=yes 24171 ;; 24172 mips-sgi-irix[456]*) 24173 ans=yes 24174 ;; 24175 *-fujitsu-uxp*) 24176 ans=yes 24177 ;; 24178 *-ibm-aix[456]*) 24179 ans=yes 24180 ;; 24181 *-*-*linux*) 24182 ans=yes 24183 ;; 24184 *-*-solaris2.[01]) 24185 ans=no 24186 ;; 24187 *-*-solaris2*) 24188 ans=yes 24189 ;; 24190 *-*-unicosmp*) 24191 ans=yes 24192 ;; 24193 *) ans=no 24194esac 24195 24196# --enable-accurate-adjtime / --disable-accurate-adjtime 24197# override the default 24198# Check whether --enable-accurate-adjtime was given. 24199if test "${enable_accurate_adjtime+set}" = set; then : 24200 enableval=$enable_accurate_adjtime; ans=$enableval 24201fi 24202 24203 24204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 24205$as_echo "$ans" >&6; } 24206 24207case "$ans" in 24208 yes) 24209 24210$as_echo "#define ADJTIME_IS_ACCURATE 1" >>confdefs.h 24211 24212 adjtime_is_accurate=yes 24213 ;; 24214 *) 24215 adjtime_is_accurate=no 24216esac 24217 24218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name of 'tick' in the kernel" >&5 24219$as_echo_n "checking the name of 'tick' in the kernel... " >&6; } 24220if test "${ac_cv_var_nlist_tick+set}" = set; then : 24221 $as_echo_n "(cached) " >&6 24222else 24223 ans=_tick 24224case "$host" in 24225 m68*-hp-hpux*) # HP9000/300? 24226 ans=_old_tick 24227 ;; 24228 *-apple-aux[23]*) 24229 ans=tick 24230 ;; 24231 *-hp-hpux*) 24232 ans=old_tick 24233 ;; 24234 *-ibm-aix[3456]*) 24235 ans=no 24236 ;; 24237 *-*-mpeix*) 24238 ans=no 24239 ;; 24240 *-*-ptx*) 24241 ans=tick 24242 ;; 24243 *-*-sco3.2v[45]*) 24244 ans=no 24245 ;; 24246 *-*-solaris2*) 24247 ans=nsec_per_tick 24248 ;; 24249 *-*-sysv4*) 24250 ans=tick 24251 ;; 24252esac 24253ac_cv_var_nlist_tick=$ans 24254fi 24255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_nlist_tick" >&5 24256$as_echo "$ac_cv_var_nlist_tick" >&6; } 24257case "$ac_cv_var_nlist_tick" in 24258 ''|no) ;; # HMS: I think we can only get 'no' here... 24259 *) 24260cat >>confdefs.h <<_ACEOF 24261#define K_TICK_NAME "$ac_cv_var_nlist_tick" 24262_ACEOF 24263 ;; 24264esac 24265# 24266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the units of 'tick'" >&5 24267$as_echo_n "checking for the units of 'tick'... " >&6; } 24268if test "${ac_cv_var_tick_nano+set}" = set; then : 24269 $as_echo_n "(cached) " >&6 24270else 24271 ans=usec 24272case "$host" in 24273 *-*-solaris2*) 24274 ans=nsec 24275 ;; 24276esac 24277ac_cv_var_tick_nano=$ans 24278fi 24279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tick_nano" >&5 24280$as_echo "$ac_cv_var_tick_nano" >&6; } 24281case "$ac_cv_var_tick_nano" in 24282 nsec) 24283 24284$as_echo "#define TICK_NANO 1" >>confdefs.h 24285 24286 ;; 24287esac 24288# 24289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name of 'tickadj' in the kernel" >&5 24290$as_echo_n "checking the name of 'tickadj' in the kernel... " >&6; } 24291if test "${ac_cv_var_nlist_tickadj+set}" = set; then : 24292 $as_echo_n "(cached) " >&6 24293else 24294 ans=_tickadj 24295case "$host" in 24296 m68*-hp-hpux*) # HP9000/300? 24297 ans=_tickadj 24298 ;; 24299 *-apple-aux[23]*) 24300 ans=tickadj 24301 ;; 24302 *-hp-hpux10*) 24303 ans=no 24304 ;; 24305 *-hp-hpux9*) 24306 ans=no 24307 ;; 24308 *-hp-hpux*) 24309 ans=tickadj 24310 ;; 24311 *-*-aix*) 24312 ans=tickadj 24313 ;; 24314 *-*-mpeix*) 24315 ans=no 24316 ;; 24317 *-*-ptx*) 24318 ans=tickadj 24319 ;; 24320 *-*-sco3.2v4*) 24321 ans=no 24322 ;; 24323 *-*-sco3.2v5.0*) 24324 ans=clock_drift 24325 ;; 24326 *-*-solaris2*) 24327 ans=no # hrestime_adj 24328 ;; 24329 *-*-sysv4*) 24330 ans=tickadj 24331 ;; 24332esac 24333ac_cv_var_nlist_tickadj=$ans 24334fi 24335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_nlist_tickadj" >&5 24336$as_echo "$ac_cv_var_nlist_tickadj" >&6; } 24337case "$ac_cv_var_nlist_tickadj" in 24338 ''|no) ;; # HMS: I think we can only get 'no' here... 24339 *) 24340cat >>confdefs.h <<_ACEOF 24341#define K_TICKADJ_NAME "$ac_cv_var_nlist_tickadj" 24342_ACEOF 24343 ;; 24344esac 24345# 24346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the units of 'tickadj'" >&5 24347$as_echo_n "checking for the units of 'tickadj'... " >&6; } 24348if test "${ac_cv_var_tickadj_nano+set}" = set; then : 24349 $as_echo_n "(cached) " >&6 24350else 24351 ans=usec 24352case "$host" in 24353 *-*-solaris2*) 24354 ans=nsec 24355 ;; 24356esac 24357ac_cv_var_tickadj_nano=$ans 24358fi 24359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tickadj_nano" >&5 24360$as_echo "$ac_cv_var_tickadj_nano" >&6; } 24361case "$ac_cv_var_tickadj_nano" in 24362 nsec) 24363 24364$as_echo "#define TICKADJ_NANO 1" >>confdefs.h 24365 24366 ;; 24367esac 24368# 24369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking half-heartedly for 'dosynctodr' in the kernel" >&5 24370$as_echo_n "checking half-heartedly for 'dosynctodr' in the kernel... " >&6; } 24371if test "${ac_cv_var_nlist_dosynctodr+set}" = set; then : 24372 $as_echo_n "(cached) " >&6 24373else 24374 case "$host" in 24375 *-apple-aux[23]*) 24376 ans=no 24377 ;; 24378 *-sni-sysv*) 24379 ans=dosynctodr 24380 ;; 24381 *-*-aix*) 24382 ans=dosynctodr 24383 ;; 24384 *-*-hpux*) 24385 ans=no 24386 ;; 24387 *-*-mpeix*) 24388 ans=no 24389 ;; 24390 *-*-nextstep*) 24391 ans=_dosynctodr 24392 ;; 24393 *-*-ptx*) 24394 ans=doresettodr 24395 ;; 24396 *-*-sco3.2v4*) 24397 ans=no 24398 ;; 24399 *-*-sco3.2v5*) 24400 ans=track_rtc 24401 ;; 24402 *-*-solaris2*) 24403 ans=dosynctodr 24404 ;; 24405 *-*-sysv4*) 24406 ans=doresettodr 24407 ;; 24408 *) 24409 ans=_dosynctodr 24410 ;; 24411esac 24412ac_cv_var_nlist_dosynctodr=$ans 24413fi 24414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_nlist_dosynctodr" >&5 24415$as_echo "$ac_cv_var_nlist_dosynctodr" >&6; } 24416case "$ac_cv_var_nlist_dosynctodr" in 24417 no) ;; 24418 *) 24419cat >>confdefs.h <<_ACEOF 24420#define K_DOSYNCTODR_NAME "$ac_cv_var_nlist_dosynctodr" 24421_ACEOF 24422 24423 ;; 24424esac 24425# 24426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking half-heartedly for 'noprintf' in the kernel" >&5 24427$as_echo_n "checking half-heartedly for 'noprintf' in the kernel... " >&6; } 24428if test "${ac_cv_var_nlist_noprintf+set}" = set; then : 24429 $as_echo_n "(cached) " >&6 24430else 24431 case "$host" in 24432 *-apple-aux[23]*) 24433 ans=no 24434 ;; 24435 *-sni-sysv*) 24436 ans=noprintf 24437 ;; 24438 *-*-aix*) 24439 ans=noprintf 24440 ;; 24441 *-*-hpux*) 24442 ans=no 24443 ;; 24444 *-*-mpeix*) 24445 ans=no 24446 ;; 24447 *-*-ptx*) 24448 ans=noprintf 24449 ;; 24450 *-*-nextstep*) 24451 ans=_noprintf 24452 ;; 24453 *-*-solaris2*) 24454 ans=noprintf 24455 ;; 24456 *-*-sysv4*) 24457 ans=noprintf 24458 ;; 24459 *) 24460 ans=_noprintf 24461 ;; 24462esac 24463ac_cv_var_nlist_noprintf=$ans 24464fi 24465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_nlist_noprintf" >&5 24466$as_echo "$ac_cv_var_nlist_noprintf" >&6; } 24467case "$ac_cv_var_nlist_noprintf" in 24468 no) ;; 24469 *) 24470cat >>confdefs.h <<_ACEOF 24471#define K_NOPRINTF_NAME "$ac_cv_var_nlist_noprintf" 24472_ACEOF 24473 24474 ;; 24475esac 24476 24477 24478 24479 24480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a default value for 'tick'" >&5 24481$as_echo_n "checking for a default value for 'tick'... " >&6; } 24482 24483# target-dependent default for tick 24484 24485case "$host" in 24486 *-*-pc-cygwin*) 24487 as_fn_error "tick needs work for cygwin" "$LINENO" 5 24488 ;; 24489 *-univel-sysv*) 24490 ans=10000 24491 ;; 24492 *-*-irix*) 24493 ans=10000 24494 ;; 24495 *-*-*linux*) 24496 ans=txc.tick 24497 ;; 24498 *-*-mpeix*) 24499 ans=no 24500 ;; 24501 *-*-winnt3.5) 24502 ans='(every / 10)' 24503 ;; 24504 *-*-unicosmp*) 24505 ans=10000 24506 ;; 24507 *) 24508 ans='1000000L/hz' 24509 ;; 24510esac 24511 24512# Check whether --enable-tick was given. 24513if test "${enable_tick+set}" = set; then : 24514 enableval=$enable_tick; ans=$enableval 24515 24516fi 24517 24518 24519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 24520$as_echo "$ans" >&6; } 24521 24522case "$ans" in 24523 ''|no) ;; # HMS: I think we can only get 'no' here... 24524 *) 24525cat >>confdefs.h <<_ACEOF 24526#define PRESET_TICK $ans 24527_ACEOF 24528 ;; 24529esac 24530 24531 24532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a default value for 'tickadj'" >&5 24533$as_echo_n "checking for a default value for 'tickadj'... " >&6; } 24534 24535# target-specific default 24536 24537ans='500/hz' 24538 24539case "$host" in 24540 *-fujitsu-uxp*) 24541 case "$adjtime_is_accurate" in 24542 yes) 24543 ans='tick/16' 24544 esac 24545 ;; 24546 XXX-*-pc-cygwin*) 24547 ans=no 24548 ;; 24549 *-univel-sysv*) 24550 ans=80 24551 ;; 24552 *-*-aix*) 24553 case "$can_kmem" in 24554 no) 24555 ans=1000 24556 esac 24557 ;; 24558 *-*-domainos) # Skippy: won't be found... 24559 case "$can_kmem" in 24560 no) 24561 ans=668 24562 esac 24563 ;; 24564 *-*-hpux*) 24565 case "$adjtime_is_accurate" in 24566 yes) 24567 ans='tick/16' 24568 esac 24569 ;; 24570 *-*-irix*) 24571 ans=150 24572 ;; 24573 *-*-mpeix*) 24574 ans=no 24575 ;; 24576 *-*-sco3.2v5.0*) 24577 ans=10000L/hz 24578 ;; 24579 *-*-winnt3.5) 24580 ans=50 24581 ;; 24582 *-*-unicosmp*) 24583 ans=150 24584esac 24585 24586# Check whether --enable-tickadj was given. 24587if test "${enable_tickadj+set}" = set; then : 24588 enableval=$enable_tickadj; ans=$enableval 24589 24590fi 24591 24592 24593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 24594$as_echo "$ans" >&6; } 24595 24596default_tickadj=$ans 24597 24598case "$default_tickadj" in 24599 ''|no) ;; # HMS: I think we can only get 'no' here... 24600 *) 24601cat >>confdefs.h <<_ACEOF 24602#define PRESET_TICKADJ $default_tickadj 24603_ACEOF 24604 ;; 24605esac 24606 24607# Newer versions of ReliantUNIX round adjtime() values down to 24608# 1/100s (system tick). Sigh ... 24609# Unfortunately, there is no easy way to know if particular release 24610# has this "feature" or any obvious way to test for it. 24611case "$host" in 24612 mips-sni-sysv4*) 24613$as_echo "#define RELIANTUNIX_CLOCK 1" >>confdefs.h 24614 ;; 24615esac 24616 24617case "$host" in 24618 *-*-sco3.2v5*) 24619$as_echo "#define SCO5_CLOCK 1" >>confdefs.h 24620 ;; 24621esac 24622 24623ac_cv_make_tickadj=yes 24624case "$can_kmem$ac_cv_var_tick$default_tickadj" in 24625 nonono) # Don't read KMEM, no presets. Bogus. 24626 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't read kmem, no PRESET_TICK or PRESET_TICKADJ. No tickadj." >&5 24627$as_echo "$as_me: WARNING: Can't read kmem, no PRESET_TICK or PRESET_TICKADJ. No tickadj." >&2;} 24628 ac_cv_make_tickadj=no 24629 ;; 24630 nono*) # Don't read KMEM, no PRESET_TICK but PRESET_TICKADJ. Bogus. 24631 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't read kmem but no PRESET_TICK. No tickadj." >&5 24632$as_echo "$as_me: WARNING: Can't read kmem but no PRESET_TICK. No tickadj." >&2;} 24633 ac_cv_make_tickadj=no 24634 ;; 24635 no*no) # Don't read KMEM, PRESET_TICK but no PRESET_TICKADJ. Bogus. 24636 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't read kmem but no PRESET_TICKADJ. No tickadj." >&5 24637$as_echo "$as_me: WARNING: Can't read kmem but no PRESET_TICKADJ. No tickadj." >&2;} 24638 ac_cv_make_tickadj=no 24639 ;; 24640 no*) # Don't read KMEM, PRESET_TICK and PRESET_TICKADJ. Cool. 24641 ;; 24642 yesnono) # Read KMEM, no presets. Cool. 24643 ;; 24644 yesno*) # Read KMEM, no PRESET_TICK but PRESET_TICKADJ. Bogus. 24645 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PRESET_TICKADJ is defined but not PRESET_TICK. Please report this." >&5 24646$as_echo "$as_me: WARNING: PRESET_TICKADJ is defined but not PRESET_TICK. Please report this." >&2;} 24647 ;; 24648 yes*no) # Read KMEM, PRESET_TICK but no PRESET_TICKADJ. Cool. 24649 ;; 24650 yes*) # READ KMEM, PRESET_TICK and PRESET_TICKADJ. 24651 ;; 24652 *) # Generally bogus. 24653 as_fn_error "This shouldn't happen." "$LINENO" 5 24654 ;; 24655esac 24656 24657 24658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want and can make the ntptime utility" >&5 24659$as_echo_n "checking if we want and can make the ntptime utility... " >&6; } 24660if test "${ac_cv_make_ntptime+set}" = set; then : 24661 $as_echo_n "(cached) " >&6 24662else 24663 case "$host" in 24664 *) case "$ac_cv_struct_ntptimeval$ac_cv_var_kernel_pll" in 24665 yesyes) 24666 ans=yes 24667 ;; 24668 *) 24669 ans=no 24670 ;; 24671 esac 24672 ;; 24673esac 24674ac_cv_make_ntptime=$ans 24675fi 24676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_make_ntptime" >&5 24677$as_echo "$ac_cv_make_ntptime" >&6; } 24678case "$ac_cv_make_ntptime" in 24679 yes) 24680 MAKE_NTPTIME=ntptime 24681 ;; 24682esac 24683 24684 24685case "$host" in 24686 mips-sni-sysv4*) 24687 # tickadj is pretty useless on newer versions of ReliantUNIX 24688 # Do not bother 24689 ac_cv_make_tickadj=no 24690 ;; 24691 *-*-irix*) 24692 ac_cv_make_tickadj=no 24693 ;; 24694 *-*-solaris2*) 24695 # DLM says tickadj is a no-no starting with solaris2.5 24696 case "$host" in 24697 *-*-solaris2.1[0-9]*) 24698 ac_cv_make_tickadj=no 24699 ;; 24700 *-*-solaris2.[0-4]*) ;; 24701 *) ac_cv_make_tickadj=no ;; 24702 esac 24703 ;; 24704 *-*-unicosmp*) 24705 ac_cv_make_tickadj=no 24706 ;; 24707esac 24708 24709# 24710# Despite all the above, we always make tickadj. Setting 24711# ac_cv_make_tickadj before AC_CACHE_CHECK will cause a false 24712# report that the configuration variable was cached. It may 24713# be better to simply remove the hunk above, I did not want 24714# to remove it if there is hope it will be used again. 24715# 24716unset ac_cv_make_tickadj 24717 24718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want and can make the tickadj utility" >&5 24719$as_echo_n "checking if we want and can make the tickadj utility... " >&6; } 24720if test "${ac_cv_make_tickadj+set}" = set; then : 24721 $as_echo_n "(cached) " >&6 24722else 24723 ac_cv_make_tickadj=yes 24724fi 24725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_make_tickadj" >&5 24726$as_echo "$ac_cv_make_tickadj" >&6; } 24727case "$ac_cv_make_tickadj" in 24728 yes) 24729 MAKE_TICKADJ=tickadj 24730 ;; 24731esac 24732 24733 24734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want and can make the timetrim utility" >&5 24735$as_echo_n "checking if we want and can make the timetrim utility... " >&6; } 24736if test "${ac_cv_make_timetrim+set}" = set; then : 24737 $as_echo_n "(cached) " >&6 24738else 24739 case "$host" in 24740 *-*-irix*) 24741 ac_cv_make_timetrim=yes 24742 ;; 24743 *-*-unicosmp*) 24744 ac_cv_make_timetrim=yes 24745 ;; 24746 *) 24747 ac_cv_make_timetrim=no 24748 ;; 24749esac 24750fi 24751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_make_timetrim" >&5 24752$as_echo "$ac_cv_make_timetrim" >&6; } 24753case "$ac_cv_make_timetrim" in 24754 yes) 24755 MAKE_TIMETRIM=timetrim 24756 ;; 24757esac 24758 24759 24760 24761 24762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to build the NTPD simulator" >&5 24763$as_echo_n "checking if we want to build the NTPD simulator... " >&6; } 24764 24765# Check whether --enable-simulator was given. 24766if test "${enable_simulator+set}" = set; then : 24767 enableval=$enable_simulator; ans=$enableval 24768else 24769 ans=no 24770 24771fi 24772 24773 24774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 24775$as_echo "$ans" >&6; } 24776 24777case "$ans" in 24778 yes) 24779 MAKE_NTPDSIM=ntpdsim 24780 MAKE_LIBNTPSIM=libntpsim.a 24781 ;; 24782esac 24783 24784case "$build" in 24785 $host) 24786 ;; 24787 *) case "$host" in 24788 *-*-vxworks*) 24789 LDFLAGS="$LDFLAGS -r" 24790 ;; 24791 esac 24792 ;; 24793esac 24794 24795 24796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should always slew the time" >&5 24797$as_echo_n "checking if we should always slew the time... " >&6; } 24798 24799# target-specific defaults 24800 24801case "$host" in 24802 *-apple-aux[23]*) 24803 ans=yes 24804 ;; 24805 *-*-bsdi[012]*) 24806 ans=no 24807 ;; 24808 *-*-bsdi*) 24809 ans=yes 24810 ;; 24811 *-*-openvms*) # HMS: won't be found 24812 ans=yes 24813 ;; 24814 *) ans=no 24815 ;; 24816esac 24817 24818# --enable-slew-always / --disable-slew-always overrides default 24819 24820# Check whether --enable-slew-always was given. 24821if test "${enable_slew_always+set}" = set; then : 24822 enableval=$enable_slew_always; ans=$enableval 24823 24824fi 24825 24826 24827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 24828$as_echo "$ans" >&6; } 24829 24830case "$ans" in 24831 yes) 24832$as_echo "#define SLEWALWAYS 1" >>confdefs.h 24833 ;; 24834esac 24835 24836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should step and slew the time" >&5 24837$as_echo_n "checking if we should step and slew the time... " >&6; } 24838 24839case "$host" in 24840 *-sni-sysv*) 24841 ans=yes 24842 ;; 24843 *-univel-sysv*) 24844 ans=no 24845 ;; 24846 *-*-ptx*) 24847 ans=yes 24848 ;; 24849 *-*-solaris2.1[0-9]*) 24850 ans=no 24851 ;; 24852 *-*-solaris2.[012]*) 24853 ans=yes 24854 ;; 24855 *-*-sysv4*) # HMS: Does this catch Fujitsu UXP? 24856 ans=yes 24857 ;; 24858 *) ans=no 24859 ;; 24860esac 24861 24862 24863# Check whether --enable-step-slew was given. 24864if test "${enable_step_slew+set}" = set; then : 24865 enableval=$enable_step_slew; ans=$enableval 24866 24867fi 24868 24869 24870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 24871$as_echo "$ans" >&6; } 24872 24873case "$ans" in 24874 yes) 24875$as_echo "#define STEP_SLEW 1" >>confdefs.h 24876 ;; 24877esac 24878 24879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if ntpdate should step the time" >&5 24880$as_echo_n "checking if ntpdate should step the time... " >&6; } 24881 24882case "$host" in 24883 *-apple-aux[23]*) 24884 ans=yes 24885 ;; 24886 *) ans=no 24887esac 24888 24889# Check whether --enable-ntpdate-step was given. 24890if test "${enable_ntpdate_step+set}" = set; then : 24891 enableval=$enable_ntpdate_step; ans=$enableval 24892 24893fi 24894 24895 24896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 24897$as_echo "$ans" >&6; } 24898 24899case "$ans" in 24900 yes) 24901$as_echo "#define FORCE_NTPDATE_STEP 1" >>confdefs.h 24902 ;; 24903esac 24904 24905 24906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should sync TODR clock every hour" >&5 24907$as_echo_n "checking if we should sync TODR clock every hour... " >&6; } 24908 24909case "$host" in 24910 *-*-nextstep*) 24911 ans=yes 24912 ;; 24913 *-*-openvms*) # HMS: won't be found 24914 ans=yes 24915 ;; 24916 *) 24917 ans=no 24918esac 24919 24920# Check whether --enable-hourly-todr-sync was given. 24921if test "${enable_hourly_todr_sync+set}" = set; then : 24922 enableval=$enable_hourly_todr_sync; ans=$enableval 24923 24924fi 24925 24926 24927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 24928$as_echo "$ans" >&6; } 24929 24930case "$ac_cv_var_sync_todr" in 24931 yes) 24932$as_echo "#define DOSYNCTODR 1" >>confdefs.h 24933 ;; 24934esac 24935 24936 24937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should avoid kernel FLL bug" >&5 24938$as_echo_n "checking if we should avoid kernel FLL bug... " >&6; } 24939 24940case "$host" in 24941 *-*-solaris2.6) 24942 unamev=`uname -v` 24943 case "$unamev" in 24944 Generic_105181-*) 24945 old_IFS="$IFS" 24946 IFS="-" 24947 set $unamev 24948 IFS="$old_IFS" 24949 if test "$2" -ge 17 24950 then 24951 # Generic_105181-17 and higher 24952 ans=no 24953 else 24954 ans=yes 24955 fi 24956 ;; 24957 *) 24958 ans=yes 24959 esac 24960 ;; 24961 *-*-solaris2.7) 24962 unamev=`uname -v` 24963 case "$unamev" in 24964 Generic_106541-*) 24965 old_IFS="$IFS" 24966 IFS="-" 24967 set $unamev 24968 IFS="$old_IFS" 24969 if test "$2" -ge 07 24970 then 24971 # Generic_106541-07 and higher 24972 ans=no 24973 else 24974 ans=yes 24975 fi 24976 ;; 24977 *) 24978 ans=yes 24979 esac 24980 ;; 24981 *) 24982 ans=no 24983esac 24984 24985# Check whether --enable-kernel-fll-bug was given. 24986if test "${enable_kernel_fll_bug+set}" = set; then : 24987 enableval=$enable_kernel_fll_bug; ans=$enableval 24988 24989fi 24990 24991 24992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 24993$as_echo "$ans" >&6; } 24994 24995case "$ans" in 24996 yes) 24997$as_echo "#define KERNEL_FLL_BUG 1" >>confdefs.h 24998 ;; 24999esac 25000 25001 25002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should use the IRIG sawtooth filter" >&5 25003$as_echo_n "checking if we should use the IRIG sawtooth filter... " >&6; } 25004 25005case "$host" in 25006 *-*-solaris2.[89]) 25007 ans=yes 25008 ;; 25009 *-*-solaris2.1[0-9]*) 25010 ans=yes 25011 ;; 25012 *) ans=no 25013esac 25014 25015# Check whether --enable-irig-sawtooth was given. 25016if test "${enable_irig_sawtooth+set}" = set; then : 25017 enableval=$enable_irig_sawtooth; ans=$enableval 25018 25019fi 25020 25021 25022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 25023$as_echo "$ans" >&6; } 25024 25025case "$ans" in 25026 yes) 25027$as_echo "#define IRIG_SUCKS 1" >>confdefs.h 25028 ;; 25029esac 25030 25031 25032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should enable NIST lockclock scheme" >&5 25033$as_echo_n "checking if we should enable NIST lockclock scheme... " >&6; } 25034 25035# Check whether --enable-nist was given. 25036if test "${enable_nist+set}" = set; then : 25037 enableval=$enable_nist; ans=$enableval 25038else 25039 ans=no 25040 25041fi 25042 25043 25044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 25045$as_echo "$ans" >&6; } 25046 25047case "$ans" in 25048 yes) 25049$as_echo "#define LOCKCLOCK 1" >>confdefs.h 25050 ;; 25051esac 25052 25053 25054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want support for Samba's signing daemon" >&5 25055$as_echo_n "checking if we want support for Samba's signing daemon... " >&6; } 25056 25057# Check whether --enable-ntp-signd was given. 25058if test "${enable_ntp_signd+set}" = set; then : 25059 enableval=$enable_ntp_signd; ans=$enableval 25060else 25061 ans=no 25062 25063fi 25064 25065 25066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 25067$as_echo "$ans" >&6; } 25068 25069case "$ans" in 25070 no) 25071 ntp_signd_path= 25072 ;; 25073 yes) 25074 ntp_signd_path=/var/run/ntp_signd 25075 ;; 25076 *) 25077 ntp_signd_path="$ans" 25078esac 25079 25080case "$ntp_signd_path" in 25081 '') 25082 wintime_default=no 25083 ;; 25084 *) 25085 wintime_default=yes 25086 25087$as_echo "#define HAVE_NTP_SIGND /**/" >>confdefs.h 25088 25089 25090cat >>confdefs.h <<_ACEOF 25091#define NTP_SIGND_PATH "$ntp_signd_path" 25092_ACEOF 25093 25094esac 25095 25096 25097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want the windows symmetric client hack" >&5 25098$as_echo_n "checking if we want the windows symmetric client hack... " >&6; } 25099 25100# default is no, unless --enable-ntp-signd was given 25101ans=$wintime_default 25102unset wintime_default 25103 25104# Check whether --enable-wintime was given. 25105if test "${enable_wintime+set}" = set; then : 25106 enableval=$enable_wintime; ans=$enableval 25107fi 25108 25109 25110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 25111$as_echo "$ans" >&6; } 25112 25113case "$ans" in 25114 yes) 25115 25116$as_echo "#define WINTIME /**/" >>confdefs.h 25117 25118esac 25119 25120 25121for ac_header in sys/clockctl.h 25122do : 25123 ac_fn_c_check_header_mongrel "$LINENO" "sys/clockctl.h" "ac_cv_header_sys_clockctl_h" "$ac_includes_default" 25124if test "x$ac_cv_header_sys_clockctl_h" = x""yes; then : 25125 cat >>confdefs.h <<_ACEOF 25126#define HAVE_SYS_CLOCKCTL_H 1 25127_ACEOF 25128 25129fi 25130 25131done 25132 25133 25134case "$host" in 25135 *-*-netbsd*) 25136 ans=yes 25137 ;; 25138 *) ans=no 25139 ;; 25140esac 25141 25142# Check whether --enable-clockctl was given. 25143if test "${enable_clockctl+set}" = set; then : 25144 enableval=$enable_clockctl; ntp_use_dev_clockctl=$enableval 25145else 25146 ntp_use_dev_clockctl=$ac_cv_header_sys_clockctl_h 25147 25148fi 25149 25150 25151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should use /dev/clockctl" >&5 25152$as_echo_n "checking if we should use /dev/clockctl... " >&6; } 25153{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_use_dev_clockctl" >&5 25154$as_echo "$ntp_use_dev_clockctl" >&6; } 25155 25156 25157for ac_header in sys/capability.h 25158do : 25159 ac_fn_c_check_header_mongrel "$LINENO" "sys/capability.h" "ac_cv_header_sys_capability_h" "$ac_includes_default" 25160if test "x$ac_cv_header_sys_capability_h" = x""yes; then : 25161 cat >>confdefs.h <<_ACEOF 25162#define HAVE_SYS_CAPABILITY_H 1 25163_ACEOF 25164 25165fi 25166 25167done 25168 25169for ac_header in sys/prctl.h 25170do : 25171 ac_fn_c_check_header_mongrel "$LINENO" "sys/prctl.h" "ac_cv_header_sys_prctl_h" "$ac_includes_default" 25172if test "x$ac_cv_header_sys_prctl_h" = x""yes; then : 25173 cat >>confdefs.h <<_ACEOF 25174#define HAVE_SYS_PRCTL_H 1 25175_ACEOF 25176 25177fi 25178 25179done 25180 25181 25182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have linux capabilities (libcap)" >&5 25183$as_echo_n "checking if we have linux capabilities (libcap)... " >&6; } 25184 25185case "$ac_cv_header_sys_capability_h$ac_cv_header_sys_prctl_h" in 25186 yesyes) 25187 ntp_have_linuxcaps=yes 25188 ;; 25189 *) 25190 ntp_have_linuxcaps=no 25191esac 25192 25193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_have_linuxcaps" >&5 25194$as_echo "$ntp_have_linuxcaps" >&6; } 25195 25196 25197# Check whether --enable-linuxcaps was given. 25198if test "${enable_linuxcaps+set}" = set; then : 25199 enableval=$enable_linuxcaps; ntp_have_linuxcaps=$enableval 25200 25201fi 25202 25203 25204 25205case "$ntp_have_linuxcaps" in 25206 yes) 25207 25208$as_echo "#define HAVE_LINUX_CAPABILITIES /**/" >>confdefs.h 25209 25210 LIBS="$LIBS -lcap" 25211esac 25212 25213 25214case "$ntp_use_dev_clockctl$ntp_have_linuxcaps" in 25215 *yes*) 25216 25217$as_echo "#define HAVE_DROPROOT /**/" >>confdefs.h 25218 25219esac 25220 25221 25222for ac_header in libscf.h 25223do : 25224 ac_fn_c_check_header_mongrel "$LINENO" "libscf.h" "ac_cv_header_libscf_h" "$ac_includes_default" 25225if test "x$ac_cv_header_libscf_h" = x""yes; then : 25226 cat >>confdefs.h <<_ACEOF 25227#define HAVE_LIBSCF_H 1 25228_ACEOF 25229 25230fi 25231 25232done 25233 25234 25235case "$ac_cv_header_libscf_h" in 25236 yes) 25237 LSCF=-lscf 25238 25239esac 25240 25241ac_fn_c_check_func "$LINENO" "setppriv" "ac_cv_func_setppriv" 25242if test "x$ac_cv_func_setppriv" = x""yes; then : 25243 25244$as_echo "#define HAVE_SOLARIS_PRIVS /**/" >>confdefs.h 25245 25246 25247fi 25248 25249 25250 25251# 25252# ISC stuff 25253# 25254 25255if test $ac_cv_struct_sockaddr_has_sa_len = yes; then 25256 25257$as_echo "#define ISC_PLATFORM_HAVESALEN /**/" >>confdefs.h 25258 25259fi 25260 25261# Check whether --enable-ipv6 was given. 25262if test "${enable_ipv6+set}" = set; then : 25263 enableval=$enable_ipv6; 25264fi 25265 25266 25267case "$enable_ipv6" in 25268 yes|''|autodetect) 25269 case "$host" in 25270 powerpc-ibm-aix4*) ;; 25271 *) 25272 25273$as_echo "#define WANT_IPV6 /**/" >>confdefs.h 25274 25275 ;; 25276 esac 25277 ;; 25278 no) 25279 ;; 25280esac 25281 25282 25283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv6 structures" >&5 25284$as_echo_n "checking for IPv6 structures... " >&6; } 25285if test "${ac_cv_isc_found_ipv6+set}" = set; then : 25286 $as_echo_n "(cached) " >&6 25287else 25288 25289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25290/* end confdefs.h. */ 25291 25292 25293 #include <sys/types.h> 25294 #include <sys/socket.h> 25295 #include <netinet/in.h> 25296 25297int 25298main () 25299{ 25300 25301 struct sockaddr_in6 sin6; 25302 25303 25304 ; 25305 return 0; 25306} 25307 25308_ACEOF 25309if ac_fn_c_try_compile "$LINENO"; then : 25310 ac_cv_isc_found_ipv6=yes 25311else 25312 ac_cv_isc_found_ipv6=no 25313 25314fi 25315rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25316 25317 25318fi 25319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_isc_found_ipv6" >&5 25320$as_echo "$ac_cv_isc_found_ipv6" >&6; } 25321 25322# 25323# See whether IPv6 support is provided via a Kame add-on. 25324# This is done before other IPv6 linking tests so LIBS is properly set. 25325# 25326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Kame IPv6 support" >&5 25327$as_echo_n "checking for Kame IPv6 support... " >&6; } 25328 25329# Check whether --with-kame was given. 25330if test "${with_kame+set}" = set; then : 25331 withval=$with_kame; use_kame="$withval" 25332else 25333 use_kame="no" 25334fi 25335 25336 25337case "$use_kame" in 25338 no) 25339 ;; 25340 yes) 25341 kame_path=/usr/local/v6 25342 ;; 25343 *) 25344 kame_path="$use_kame" 25345 ;; 25346esac 25347 25348case "$use_kame" in 25349 no) 25350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25351$as_echo "no" >&6; } 25352 ;; 25353 *) 25354 if test -f $kame_path/lib/libinet6.a; then 25355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kame_path/lib/libinet6.a" >&5 25356$as_echo "$kame_path/lib/libinet6.a" >&6; } 25357 LIBS="-L$kame_path/lib -linet6 $LIBS" 25358 else 25359 as_fn_error "$kame_path/lib/libinet6.a not found. 25360 25361Please choose the proper path with the following command: 25362 25363 configure --with-kame=PATH 25364" "$LINENO" 5 25365 fi 25366 ;; 25367esac 25368 25369# 25370# Whether netinet6/in6.h is needed has to be defined in isc/platform.h. 25371# Including it on Kame-using platforms is very bad, though, because 25372# Kame uses #error against direct inclusion. So include it on only 25373# the platform that is otherwise broken without it -- BSD/OS 4.0 through 4.1. 25374# This is done before the in6_pktinfo check because that's what 25375# netinet6/in6.h is needed for. 25376# 25377case "$host" in 25378 *-bsdi4.[01]*) 25379 25380$as_echo "#define ISC_PLATFORM_NEEDNETINET6IN6H 1" >>confdefs.h 25381 25382 isc_netinet6in6_hack="#include <netinet6/in6.h>" 25383 ;; 25384 *) 25385 isc_netinet6in6_hack="" 25386esac 25387 25388# 25389# This is similar to the netinet6/in6.h issue. 25390# 25391case "$host" in 25392 *-sco-sysv*uw*|*-*-sysv*UnixWare*|*-*-sysv*OpenUNIX*) 25393 25394$as_echo "#define ISC_PLATFORM_FIXIN6ISADDR 1" >>confdefs.h 25395 25396 isc_netinetin6_hack="#include <netinet/in6.h>" 25397 ;; 25398 *) 25399 isc_netinetin6_hack="" 25400esac 25401 25402 25403case "$ac_cv_isc_found_ipv6" in 25404 yes) 25405 25406$as_echo "#define ISC_PLATFORM_HAVEIPV6 /**/" >>confdefs.h 25407 25408 25409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in6_pktinfo" >&5 25410$as_echo_n "checking for in6_pktinfo... " >&6; } 25411if test "${ac_cv_have_in6_pktinfo+set}" = set; then : 25412 $as_echo_n "(cached) " >&6 25413else 25414 25415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25416/* end confdefs.h. */ 25417 25418 25419 #include <sys/types.h> 25420 #include <sys/socket.h> 25421 #include <netinet/in.h> 25422 $isc_netinetin6_hack 25423 $isc_netinet6in6_hack 25424 25425int 25426main () 25427{ 25428 25429 struct in6_pktinfo xyzzy; 25430 25431 25432 ; 25433 return 0; 25434} 25435 25436_ACEOF 25437if ac_fn_c_try_compile "$LINENO"; then : 25438 ac_cv_have_in6_pktinfo=yes 25439else 25440 ac_cv_have_in6_pktinfo=no 25441 25442fi 25443rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25444 25445 25446fi 25447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_in6_pktinfo" >&5 25448$as_echo "$ac_cv_have_in6_pktinfo" >&6; } 25449 25450 case "$ac_cv_have_in6_pktinfo" in 25451 yes) 25452 25453$as_echo "#define ISC_PLATFORM_HAVEIN6PKTINFO /**/" >>confdefs.h 25454 25455 esac 25456 25457 25458 # HMS: Use HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID instead? 25459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_in6.sin6_scope_id" >&5 25460$as_echo_n "checking for sockaddr_in6.sin6_scope_id... " >&6; } 25461if test "${ac_cv_have_sin6_scope_id+set}" = set; then : 25462 $as_echo_n "(cached) " >&6 25463else 25464 25465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25466/* end confdefs.h. */ 25467 25468 25469 #include <sys/types.h> 25470 #include <sys/socket.h> 25471 #include <netinet/in.h> 25472 $isc_netinetin6_hack 25473 $isc_netinet6in6_hack 25474 25475int 25476main () 25477{ 25478 25479 struct sockaddr_in6 xyzzy; 25480 xyzzy.sin6_scope_id = 0; 25481 25482 25483 ; 25484 return 0; 25485} 25486 25487_ACEOF 25488if ac_fn_c_try_compile "$LINENO"; then : 25489 ac_cv_have_sin6_scope_id=yes 25490else 25491 ac_cv_have_sin6_scope_id=no 25492 25493fi 25494rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25495 25496 25497fi 25498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_sin6_scope_id" >&5 25499$as_echo "$ac_cv_have_sin6_scope_id" >&6; } 25500 25501 case "$ac_cv_have_sin6_scope_id" in 25502 yes) 25503 25504$as_echo "#define ISC_PLATFORM_HAVESCOPEID /**/" >>confdefs.h 25505 25506 esac 25507esac 25508 25509 25510# We need this check run even without ac_cv_isc_found_ipv6=yes 25511 25512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for in6addr_any" >&5 25513$as_echo_n "checking for in6addr_any... " >&6; } 25514if test "${ac_cv_have_in6addr_any+set}" = set; then : 25515 $as_echo_n "(cached) " >&6 25516else 25517 25518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25519/* end confdefs.h. */ 25520 25521 25522 #include <sys/types.h> 25523 #include <sys/socket.h> 25524 #include <netinet/in.h> 25525 $isc_netinetin6_hack 25526 $isc_netinet6in6_hack 25527 25528int 25529main () 25530{ 25531 25532 struct in6_addr in6; 25533 in6 = in6addr_any; 25534 25535 25536 ; 25537 return 0; 25538} 25539 25540_ACEOF 25541if ac_fn_c_try_compile "$LINENO"; then : 25542 ac_cv_have_in6addr_any=yes 25543else 25544 ac_cv_have_in6addr_any=no 25545 25546fi 25547rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25548 25549 25550fi 25551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_in6addr_any" >&5 25552$as_echo "$ac_cv_have_in6addr_any" >&6; } 25553 25554case "$ac_cv_have_in6addr_any" in 25555 no) 25556 25557$as_echo "#define ISC_PLATFORM_NEEDIN6ADDRANY /**/" >>confdefs.h 25558 25559esac 25560 25561 25562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct if_laddrconf" >&5 25563$as_echo_n "checking for struct if_laddrconf... " >&6; } 25564if test "${ac_cv_isc_struct_if_laddrconf+set}" = set; then : 25565 $as_echo_n "(cached) " >&6 25566else 25567 25568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25569/* end confdefs.h. */ 25570 25571 25572 #include <sys/types.h> 25573 #include <net/if6.h> 25574 25575int 25576main () 25577{ 25578 25579 struct if_laddrconf a; 25580 25581 25582 ; 25583 return 0; 25584} 25585 25586_ACEOF 25587if ac_fn_c_try_compile "$LINENO"; then : 25588 ac_cv_isc_struct_if_laddrconf=yes 25589else 25590 ac_cv_isc_struct_if_laddrconf=no 25591 25592fi 25593rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25594 25595 25596fi 25597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_isc_struct_if_laddrconf" >&5 25598$as_echo "$ac_cv_isc_struct_if_laddrconf" >&6; } 25599 25600case "$ac_cv_isc_struct_if_laddrconf" in 25601 yes) 25602 25603$as_echo "#define ISC_PLATFORM_HAVEIF_LADDRCONF /**/" >>confdefs.h 25604 25605esac 25606 25607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct if_laddrreq" >&5 25608$as_echo_n "checking for struct if_laddrreq... " >&6; } 25609if test "${ac_cv_isc_struct_if_laddrreq+set}" = set; then : 25610 $as_echo_n "(cached) " >&6 25611else 25612 25613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25614/* end confdefs.h. */ 25615 25616 25617 #include <sys/types.h> 25618 #include <net/if6.h> 25619 25620int 25621main () 25622{ 25623 25624 struct if_laddrreq a; 25625 25626 25627 ; 25628 return 0; 25629} 25630 25631_ACEOF 25632if ac_fn_c_try_compile "$LINENO"; then : 25633 ac_cv_isc_struct_if_laddrreq=yes 25634else 25635 ac_cv_isc_struct_if_laddrreq=no 25636 25637fi 25638rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25639 25640 25641fi 25642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_isc_struct_if_laddrreq" >&5 25643$as_echo "$ac_cv_isc_struct_if_laddrreq" >&6; } 25644 25645case "$ac_cv_isc_struct_if_laddrreq" in 25646 yes) 25647 25648$as_echo "#define ISC_PLATFORM_HAVEIF_LADDRREQ /**/" >>confdefs.h 25649 25650esac 25651 25652# 25653# Look for a sysctl call to get the list of network interfaces. 25654# 25655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for interface list sysctl" >&5 25656$as_echo_n "checking for interface list sysctl... " >&6; } 25657if test "${ac_cv_iflist_sysctl+set}" = set; then : 25658 $as_echo_n "(cached) " >&6 25659else 25660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25661/* end confdefs.h. */ 25662 25663 #include <sys/param.h> 25664 #include <sys/sysctl.h> 25665 #include <sys/socket.h> 25666 #ifdef NET_RT_IFLIST 25667 found_rt_iflist 25668 #endif 25669 25670_ACEOF 25671if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 25672 $EGREP "found_rt_iflist" >/dev/null 2>&1; then : 25673 ac_cv_iflist_sysctl=yes 25674else 25675 ac_cv_iflist_sysctl=no 25676 25677fi 25678rm -f conftest* 25679 25680 25681fi 25682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_iflist_sysctl" >&5 25683$as_echo "$ac_cv_iflist_sysctl" >&6; } 25684 25685case "$ac_cv_iflist_sysctl" in 25686 yes) 25687 25688$as_echo "#define HAVE_IFLIST_SYSCTL 1" >>confdefs.h 25689 25690esac 25691 25692 25693### 25694 25695 25696 ac_expanded=`( 25697 test "x$prefix" = xNONE && prefix="$ac_default_prefix" 25698 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" 25699 eval echo \""$sysconfdir"\" 25700 )` 25701 25702cat >>confdefs.h <<_ACEOF 25703#define NTP_KEYSDIR "$ac_expanded" 25704_ACEOF 25705 25706 25707 25708ac_config_files="$ac_config_files Makefile" 25709 25710ac_config_files="$ac_config_files ElectricFence/Makefile" 25711 25712ac_config_files="$ac_config_files adjtimed/Makefile" 25713 25714ac_config_files="$ac_config_files clockstuff/Makefile" 25715 25716ac_config_files="$ac_config_files include/Makefile" 25717 25718ac_config_files="$ac_config_files include/isc/Makefile" 25719 25720ac_config_files="$ac_config_files kernel/Makefile" 25721 25722ac_config_files="$ac_config_files kernel/sys/Makefile" 25723 25724ac_config_files="$ac_config_files libntp/Makefile" 25725 25726ac_config_files="$ac_config_files libparse/Makefile" 25727 25728ac_config_files="$ac_config_files ntpd/Makefile" 25729 25730ac_config_files="$ac_config_files ntpdate/Makefile" 25731 25732ac_config_files="$ac_config_files ntpdc/Makefile" 25733 25734ac_config_files="$ac_config_files ntpdc/nl.pl" 25735 25736ac_config_files="$ac_config_files ntpq/Makefile" 25737 25738ac_config_files="$ac_config_files parseutil/Makefile" 25739 25740ac_config_files="$ac_config_files scripts/Makefile" 25741 25742ac_config_files="$ac_config_files scripts/calc_tickadj" 25743 25744ac_config_files="$ac_config_files scripts/checktime" 25745 25746ac_config_files="$ac_config_files scripts/freq_adj" 25747 25748ac_config_files="$ac_config_files scripts/html2man" 25749 25750ac_config_files="$ac_config_files scripts/mkver" 25751 25752ac_config_files="$ac_config_files scripts/ntp-wait" 25753 25754ac_config_files="$ac_config_files scripts/ntpsweep" 25755 25756ac_config_files="$ac_config_files scripts/ntptrace" 25757 25758ac_config_files="$ac_config_files scripts/ntpver" 25759 25760ac_config_files="$ac_config_files scripts/plot_summary" 25761 25762ac_config_files="$ac_config_files scripts/summary" 25763 25764ac_config_files="$ac_config_files util/Makefile" 25765 25766 25767subdirs="$subdirs sntp" 25768 25769 25770cat >confcache <<\_ACEOF 25771# This file is a shell script that caches the results of configure 25772# tests run on this system so they can be shared between configure 25773# scripts and configure runs, see configure's option --config-cache. 25774# It is not useful on other systems. If it contains results you don't 25775# want to keep, you may remove or edit it. 25776# 25777# config.status only pays attention to the cache file if you give it 25778# the --recheck option to rerun configure. 25779# 25780# `ac_cv_env_foo' variables (set or unset) will be overridden when 25781# loading this file, other *unset* `ac_cv_foo' will be assigned the 25782# following values. 25783 25784_ACEOF 25785 25786# The following way of writing the cache mishandles newlines in values, 25787# but we know of no workaround that is simple, portable, and efficient. 25788# So, we kill variables containing newlines. 25789# Ultrix sh set writes to stderr and can't be redirected directly, 25790# and sets the high bit in the cache file unless we assign to the vars. 25791( 25792 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 25793 eval ac_val=\$$ac_var 25794 case $ac_val in #( 25795 *${as_nl}*) 25796 case $ac_var in #( 25797 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 25798$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 25799 esac 25800 case $ac_var in #( 25801 _ | IFS | as_nl) ;; #( 25802 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 25803 *) { eval $ac_var=; unset $ac_var;} ;; 25804 esac ;; 25805 esac 25806 done 25807 25808 (set) 2>&1 | 25809 case $as_nl`(ac_space=' '; set) 2>&1` in #( 25810 *${as_nl}ac_space=\ *) 25811 # `set' does not quote correctly, so add quotes: double-quote 25812 # substitution turns \\\\ into \\, and sed turns \\ into \. 25813 sed -n \ 25814 "s/'/'\\\\''/g; 25815 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 25816 ;; #( 25817 *) 25818 # `set' quotes correctly as required by POSIX, so do not add quotes. 25819 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 25820 ;; 25821 esac | 25822 sort 25823) | 25824 sed ' 25825 /^ac_cv_env_/b end 25826 t clear 25827 :clear 25828 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 25829 t end 25830 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 25831 :end' >>confcache 25832if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 25833 if test -w "$cache_file"; then 25834 test "x$cache_file" != "x/dev/null" && 25835 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 25836$as_echo "$as_me: updating cache $cache_file" >&6;} 25837 cat confcache >$cache_file 25838 else 25839 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 25840$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 25841 fi 25842fi 25843rm -f confcache 25844 25845test "x$prefix" = xNONE && prefix=$ac_default_prefix 25846# Let make expand exec_prefix. 25847test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 25848 25849DEFS=-DHAVE_CONFIG_H 25850 25851ac_libobjs= 25852ac_ltlibobjs= 25853for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 25854 # 1. Remove the extension, and $U if already installed. 25855 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 25856 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 25857 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 25858 # will be set to the directory where LIBOBJS objects are built. 25859 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 25860 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 25861done 25862LIBOBJS=$ac_libobjs 25863 25864LTLIBOBJS=$ac_ltlibobjs 25865 25866 25867 if test -n "$EXEEXT"; then 25868 am__EXEEXT_TRUE= 25869 am__EXEEXT_FALSE='#' 25870else 25871 am__EXEEXT_TRUE='#' 25872 am__EXEEXT_FALSE= 25873fi 25874 25875if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 25876 as_fn_error "conditional \"AMDEP\" was never defined. 25877Usually this means the macro was only invoked conditionally." "$LINENO" 5 25878fi 25879if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 25880 as_fn_error "conditional \"am__fastdepCC\" was never defined. 25881Usually this means the macro was only invoked conditionally." "$LINENO" 5 25882fi 25883if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 25884 as_fn_error "conditional \"am__fastdepCC\" was never defined. 25885Usually this means the macro was only invoked conditionally." "$LINENO" 5 25886fi 25887if test -z "${INSTALL_LIBOPTS_TRUE}" && test -z "${INSTALL_LIBOPTS_FALSE}"; then 25888 as_fn_error "conditional \"INSTALL_LIBOPTS\" was never defined. 25889Usually this means the macro was only invoked conditionally." "$LINENO" 5 25890fi 25891if test -z "${NEED_LIBOPTS_TRUE}" && test -z "${NEED_LIBOPTS_FALSE}"; then 25892 as_fn_error "conditional \"NEED_LIBOPTS\" was never defined. 25893Usually this means the macro was only invoked conditionally." "$LINENO" 5 25894fi 25895 25896 25897: ${CONFIG_STATUS=./config.status} 25898ac_write_fail=0 25899ac_clean_files_save=$ac_clean_files 25900ac_clean_files="$ac_clean_files $CONFIG_STATUS" 25901{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 25902$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 25903as_write_fail=0 25904cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 25905#! $SHELL 25906# Generated by $as_me. 25907# Run this file to recreate the current configuration. 25908# Compiler output produced by configure, useful for debugging 25909# configure, is in config.log if it exists. 25910 25911debug=false 25912ac_cs_recheck=false 25913ac_cs_silent=false 25914 25915SHELL=\${CONFIG_SHELL-$SHELL} 25916export SHELL 25917_ASEOF 25918cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 25919## -------------------- ## 25920## M4sh Initialization. ## 25921## -------------------- ## 25922 25923# Be more Bourne compatible 25924DUALCASE=1; export DUALCASE # for MKS sh 25925if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 25926 emulate sh 25927 NULLCMD=: 25928 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 25929 # is contrary to our usage. Disable this feature. 25930 alias -g '${1+"$@"}'='"$@"' 25931 setopt NO_GLOB_SUBST 25932else 25933 case `(set -o) 2>/dev/null` in #( 25934 *posix*) : 25935 set -o posix ;; #( 25936 *) : 25937 ;; 25938esac 25939fi 25940 25941 25942as_nl=' 25943' 25944export as_nl 25945# Printing a long string crashes Solaris 7 /usr/bin/printf. 25946as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 25947as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 25948as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 25949# Prefer a ksh shell builtin over an external printf program on Solaris, 25950# but without wasting forks for bash or zsh. 25951if test -z "$BASH_VERSION$ZSH_VERSION" \ 25952 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 25953 as_echo='print -r --' 25954 as_echo_n='print -rn --' 25955elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 25956 as_echo='printf %s\n' 25957 as_echo_n='printf %s' 25958else 25959 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 25960 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 25961 as_echo_n='/usr/ucb/echo -n' 25962 else 25963 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 25964 as_echo_n_body='eval 25965 arg=$1; 25966 case $arg in #( 25967 *"$as_nl"*) 25968 expr "X$arg" : "X\\(.*\\)$as_nl"; 25969 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 25970 esac; 25971 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 25972 ' 25973 export as_echo_n_body 25974 as_echo_n='sh -c $as_echo_n_body as_echo' 25975 fi 25976 export as_echo_body 25977 as_echo='sh -c $as_echo_body as_echo' 25978fi 25979 25980# The user is always right. 25981if test "${PATH_SEPARATOR+set}" != set; then 25982 PATH_SEPARATOR=: 25983 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 25984 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 25985 PATH_SEPARATOR=';' 25986 } 25987fi 25988 25989 25990# IFS 25991# We need space, tab and new line, in precisely that order. Quoting is 25992# there to prevent editors from complaining about space-tab. 25993# (If _AS_PATH_WALK were called with IFS unset, it would disable word 25994# splitting by setting IFS to empty value.) 25995IFS=" "" $as_nl" 25996 25997# Find who we are. Look in the path if we contain no directory separator. 25998case $0 in #(( 25999 *[\\/]* ) as_myself=$0 ;; 26000 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 26001for as_dir in $PATH 26002do 26003 IFS=$as_save_IFS 26004 test -z "$as_dir" && as_dir=. 26005 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 26006 done 26007IFS=$as_save_IFS 26008 26009 ;; 26010esac 26011# We did not find ourselves, most probably we were run as `sh COMMAND' 26012# in which case we are not to be found in the path. 26013if test "x$as_myself" = x; then 26014 as_myself=$0 26015fi 26016if test ! -f "$as_myself"; then 26017 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 26018 exit 1 26019fi 26020 26021# Unset variables that we do not need and which cause bugs (e.g. in 26022# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 26023# suppresses any "Segmentation fault" message there. '((' could 26024# trigger a bug in pdksh 5.2.14. 26025for as_var in BASH_ENV ENV MAIL MAILPATH 26026do eval test x\${$as_var+set} = xset \ 26027 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 26028done 26029PS1='$ ' 26030PS2='> ' 26031PS4='+ ' 26032 26033# NLS nuisances. 26034LC_ALL=C 26035export LC_ALL 26036LANGUAGE=C 26037export LANGUAGE 26038 26039# CDPATH. 26040(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 26041 26042 26043# as_fn_error ERROR [LINENO LOG_FD] 26044# --------------------------------- 26045# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 26046# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 26047# script with status $?, using 1 if that was 0. 26048as_fn_error () 26049{ 26050 as_status=$?; test $as_status -eq 0 && as_status=1 26051 if test "$3"; then 26052 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 26053 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 26054 fi 26055 $as_echo "$as_me: error: $1" >&2 26056 as_fn_exit $as_status 26057} # as_fn_error 26058 26059 26060# as_fn_set_status STATUS 26061# ----------------------- 26062# Set $? to STATUS, without forking. 26063as_fn_set_status () 26064{ 26065 return $1 26066} # as_fn_set_status 26067 26068# as_fn_exit STATUS 26069# ----------------- 26070# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 26071as_fn_exit () 26072{ 26073 set +e 26074 as_fn_set_status $1 26075 exit $1 26076} # as_fn_exit 26077 26078# as_fn_unset VAR 26079# --------------- 26080# Portably unset VAR. 26081as_fn_unset () 26082{ 26083 { eval $1=; unset $1;} 26084} 26085as_unset=as_fn_unset 26086# as_fn_append VAR VALUE 26087# ---------------------- 26088# Append the text in VALUE to the end of the definition contained in VAR. Take 26089# advantage of any shell optimizations that allow amortized linear growth over 26090# repeated appends, instead of the typical quadratic growth present in naive 26091# implementations. 26092if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 26093 eval 'as_fn_append () 26094 { 26095 eval $1+=\$2 26096 }' 26097else 26098 as_fn_append () 26099 { 26100 eval $1=\$$1\$2 26101 } 26102fi # as_fn_append 26103 26104# as_fn_arith ARG... 26105# ------------------ 26106# Perform arithmetic evaluation on the ARGs, and store the result in the 26107# global $as_val. Take advantage of shells that can avoid forks. The arguments 26108# must be portable across $(()) and expr. 26109if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 26110 eval 'as_fn_arith () 26111 { 26112 as_val=$(( $* )) 26113 }' 26114else 26115 as_fn_arith () 26116 { 26117 as_val=`expr "$@" || test $? -eq 1` 26118 } 26119fi # as_fn_arith 26120 26121 26122if expr a : '\(a\)' >/dev/null 2>&1 && 26123 test "X`expr 00001 : '.*\(...\)'`" = X001; then 26124 as_expr=expr 26125else 26126 as_expr=false 26127fi 26128 26129if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 26130 as_basename=basename 26131else 26132 as_basename=false 26133fi 26134 26135if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 26136 as_dirname=dirname 26137else 26138 as_dirname=false 26139fi 26140 26141as_me=`$as_basename -- "$0" || 26142$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 26143 X"$0" : 'X\(//\)$' \| \ 26144 X"$0" : 'X\(/\)' \| . 2>/dev/null || 26145$as_echo X/"$0" | 26146 sed '/^.*\/\([^/][^/]*\)\/*$/{ 26147 s//\1/ 26148 q 26149 } 26150 /^X\/\(\/\/\)$/{ 26151 s//\1/ 26152 q 26153 } 26154 /^X\/\(\/\).*/{ 26155 s//\1/ 26156 q 26157 } 26158 s/.*/./; q'` 26159 26160# Avoid depending upon Character Ranges. 26161as_cr_letters='abcdefghijklmnopqrstuvwxyz' 26162as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 26163as_cr_Letters=$as_cr_letters$as_cr_LETTERS 26164as_cr_digits='0123456789' 26165as_cr_alnum=$as_cr_Letters$as_cr_digits 26166 26167ECHO_C= ECHO_N= ECHO_T= 26168case `echo -n x` in #((((( 26169-n*) 26170 case `echo 'xy\c'` in 26171 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 26172 xy) ECHO_C='\c';; 26173 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 26174 ECHO_T=' ';; 26175 esac;; 26176*) 26177 ECHO_N='-n';; 26178esac 26179 26180rm -f conf$$ conf$$.exe conf$$.file 26181if test -d conf$$.dir; then 26182 rm -f conf$$.dir/conf$$.file 26183else 26184 rm -f conf$$.dir 26185 mkdir conf$$.dir 2>/dev/null 26186fi 26187if (echo >conf$$.file) 2>/dev/null; then 26188 if ln -s conf$$.file conf$$ 2>/dev/null; then 26189 as_ln_s='ln -s' 26190 # ... but there are two gotchas: 26191 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 26192 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 26193 # In both cases, we have to default to `cp -p'. 26194 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 26195 as_ln_s='cp -p' 26196 elif ln conf$$.file conf$$ 2>/dev/null; then 26197 as_ln_s=ln 26198 else 26199 as_ln_s='cp -p' 26200 fi 26201else 26202 as_ln_s='cp -p' 26203fi 26204rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 26205rmdir conf$$.dir 2>/dev/null 26206 26207 26208# as_fn_mkdir_p 26209# ------------- 26210# Create "$as_dir" as a directory, including parents if necessary. 26211as_fn_mkdir_p () 26212{ 26213 26214 case $as_dir in #( 26215 -*) as_dir=./$as_dir;; 26216 esac 26217 test -d "$as_dir" || eval $as_mkdir_p || { 26218 as_dirs= 26219 while :; do 26220 case $as_dir in #( 26221 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 26222 *) as_qdir=$as_dir;; 26223 esac 26224 as_dirs="'$as_qdir' $as_dirs" 26225 as_dir=`$as_dirname -- "$as_dir" || 26226$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 26227 X"$as_dir" : 'X\(//\)[^/]' \| \ 26228 X"$as_dir" : 'X\(//\)$' \| \ 26229 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 26230$as_echo X"$as_dir" | 26231 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 26232 s//\1/ 26233 q 26234 } 26235 /^X\(\/\/\)[^/].*/{ 26236 s//\1/ 26237 q 26238 } 26239 /^X\(\/\/\)$/{ 26240 s//\1/ 26241 q 26242 } 26243 /^X\(\/\).*/{ 26244 s//\1/ 26245 q 26246 } 26247 s/.*/./; q'` 26248 test -d "$as_dir" && break 26249 done 26250 test -z "$as_dirs" || eval "mkdir $as_dirs" 26251 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" 26252 26253 26254} # as_fn_mkdir_p 26255if mkdir -p . 2>/dev/null; then 26256 as_mkdir_p='mkdir -p "$as_dir"' 26257else 26258 test -d ./-p && rmdir ./-p 26259 as_mkdir_p=false 26260fi 26261 26262if test -x / >/dev/null 2>&1; then 26263 as_test_x='test -x' 26264else 26265 if ls -dL / >/dev/null 2>&1; then 26266 as_ls_L_option=L 26267 else 26268 as_ls_L_option= 26269 fi 26270 as_test_x=' 26271 eval sh -c '\'' 26272 if test -d "$1"; then 26273 test -d "$1/."; 26274 else 26275 case $1 in #( 26276 -*)set "./$1";; 26277 esac; 26278 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 26279 ???[sx]*):;;*)false;;esac;fi 26280 '\'' sh 26281 ' 26282fi 26283as_executable_p=$as_test_x 26284 26285# Sed expression to map a string onto a valid CPP name. 26286as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 26287 26288# Sed expression to map a string onto a valid variable name. 26289as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 26290 26291 26292exec 6>&1 26293## ----------------------------------- ## 26294## Main body of $CONFIG_STATUS script. ## 26295## ----------------------------------- ## 26296_ASEOF 26297test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 26298 26299cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 26300# Save the log message, to keep $0 and so on meaningful, and to 26301# report actual input values of CONFIG_FILES etc. instead of their 26302# values after options handling. 26303ac_log=" 26304This file was extended by ntp $as_me 4.2.4p8, which was 26305generated by GNU Autoconf 2.65. Invocation command line was 26306 26307 CONFIG_FILES = $CONFIG_FILES 26308 CONFIG_HEADERS = $CONFIG_HEADERS 26309 CONFIG_LINKS = $CONFIG_LINKS 26310 CONFIG_COMMANDS = $CONFIG_COMMANDS 26311 $ $0 $@ 26312 26313on `(hostname || uname -n) 2>/dev/null | sed 1q` 26314" 26315 26316_ACEOF 26317 26318case $ac_config_files in *" 26319"*) set x $ac_config_files; shift; ac_config_files=$*;; 26320esac 26321 26322case $ac_config_headers in *" 26323"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 26324esac 26325 26326 26327cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 26328# Files that config.status was made for. 26329config_files="$ac_config_files" 26330config_headers="$ac_config_headers" 26331config_commands="$ac_config_commands" 26332 26333_ACEOF 26334 26335cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 26336ac_cs_usage="\ 26337\`$as_me' instantiates files and other configuration actions 26338from templates according to the current configuration. Unless the files 26339and actions are specified as TAGs, all are instantiated by default. 26340 26341Usage: $0 [OPTION]... [TAG]... 26342 26343 -h, --help print this help, then exit 26344 -V, --version print version number and configuration settings, then exit 26345 --config print configuration, then exit 26346 -q, --quiet, --silent 26347 do not print progress messages 26348 -d, --debug don't remove temporary files 26349 --recheck update $as_me by reconfiguring in the same conditions 26350 --file=FILE[:TEMPLATE] 26351 instantiate the configuration file FILE 26352 --header=FILE[:TEMPLATE] 26353 instantiate the configuration header FILE 26354 26355Configuration files: 26356$config_files 26357 26358Configuration headers: 26359$config_headers 26360 26361Configuration commands: 26362$config_commands 26363 26364Report bugs to the package provider." 26365 26366_ACEOF 26367cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 26368ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 26369ac_cs_version="\\ 26370ntp config.status 4.2.4p8 26371configured by $0, generated by GNU Autoconf 2.65, 26372 with options \\"\$ac_cs_config\\" 26373 26374Copyright (C) 2009 Free Software Foundation, Inc. 26375This config.status script is free software; the Free Software Foundation 26376gives unlimited permission to copy, distribute and modify it." 26377 26378ac_pwd='$ac_pwd' 26379srcdir='$srcdir' 26380INSTALL='$INSTALL' 26381MKDIR_P='$MKDIR_P' 26382AWK='$AWK' 26383test -n "\$AWK" || AWK=awk 26384_ACEOF 26385 26386cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 26387# The default lists apply if the user does not specify any file. 26388ac_need_defaults=: 26389while test $# != 0 26390do 26391 case $1 in 26392 --*=*) 26393 ac_option=`expr "X$1" : 'X\([^=]*\)='` 26394 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 26395 ac_shift=: 26396 ;; 26397 *) 26398 ac_option=$1 26399 ac_optarg=$2 26400 ac_shift=shift 26401 ;; 26402 esac 26403 26404 case $ac_option in 26405 # Handling of the options. 26406 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 26407 ac_cs_recheck=: ;; 26408 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 26409 $as_echo "$ac_cs_version"; exit ;; 26410 --config | --confi | --conf | --con | --co | --c ) 26411 $as_echo "$ac_cs_config"; exit ;; 26412 --debug | --debu | --deb | --de | --d | -d ) 26413 debug=: ;; 26414 --file | --fil | --fi | --f ) 26415 $ac_shift 26416 case $ac_optarg in 26417 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 26418 esac 26419 as_fn_append CONFIG_FILES " '$ac_optarg'" 26420 ac_need_defaults=false;; 26421 --header | --heade | --head | --hea ) 26422 $ac_shift 26423 case $ac_optarg in 26424 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 26425 esac 26426 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 26427 ac_need_defaults=false;; 26428 --he | --h) 26429 # Conflict between --help and --header 26430 as_fn_error "ambiguous option: \`$1' 26431Try \`$0 --help' for more information.";; 26432 --help | --hel | -h ) 26433 $as_echo "$ac_cs_usage"; exit ;; 26434 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 26435 | -silent | --silent | --silen | --sile | --sil | --si | --s) 26436 ac_cs_silent=: ;; 26437 26438 # This is an error. 26439 -*) as_fn_error "unrecognized option: \`$1' 26440Try \`$0 --help' for more information." ;; 26441 26442 *) as_fn_append ac_config_targets " $1" 26443 ac_need_defaults=false ;; 26444 26445 esac 26446 shift 26447done 26448 26449ac_configure_extra_args= 26450 26451if $ac_cs_silent; then 26452 exec 6>/dev/null 26453 ac_configure_extra_args="$ac_configure_extra_args --silent" 26454fi 26455 26456_ACEOF 26457cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 26458if \$ac_cs_recheck; then 26459 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 26460 shift 26461 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 26462 CONFIG_SHELL='$SHELL' 26463 export CONFIG_SHELL 26464 exec "\$@" 26465fi 26466 26467_ACEOF 26468cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 26469exec 5>>config.log 26470{ 26471 echo 26472 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 26473## Running $as_me. ## 26474_ASBOX 26475 $as_echo "$ac_log" 26476} >&5 26477 26478_ACEOF 26479cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 26480# 26481# INIT-COMMANDS 26482# 26483AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 26484 26485_ACEOF 26486 26487cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 26488 26489# Handling of arguments. 26490for ac_config_target in $ac_config_targets 26491do 26492 case $ac_config_target in 26493 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 26494 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 26495 "libopts/Makefile") CONFIG_FILES="$CONFIG_FILES libopts/Makefile" ;; 26496 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 26497 "ElectricFence/Makefile") CONFIG_FILES="$CONFIG_FILES ElectricFence/Makefile" ;; 26498 "adjtimed/Makefile") CONFIG_FILES="$CONFIG_FILES adjtimed/Makefile" ;; 26499 "clockstuff/Makefile") CONFIG_FILES="$CONFIG_FILES clockstuff/Makefile" ;; 26500 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; 26501 "include/isc/Makefile") CONFIG_FILES="$CONFIG_FILES include/isc/Makefile" ;; 26502 "kernel/Makefile") CONFIG_FILES="$CONFIG_FILES kernel/Makefile" ;; 26503 "kernel/sys/Makefile") CONFIG_FILES="$CONFIG_FILES kernel/sys/Makefile" ;; 26504 "libntp/Makefile") CONFIG_FILES="$CONFIG_FILES libntp/Makefile" ;; 26505 "libparse/Makefile") CONFIG_FILES="$CONFIG_FILES libparse/Makefile" ;; 26506 "ntpd/Makefile") CONFIG_FILES="$CONFIG_FILES ntpd/Makefile" ;; 26507 "ntpdate/Makefile") CONFIG_FILES="$CONFIG_FILES ntpdate/Makefile" ;; 26508 "ntpdc/Makefile") CONFIG_FILES="$CONFIG_FILES ntpdc/Makefile" ;; 26509 "ntpdc/nl.pl") CONFIG_FILES="$CONFIG_FILES ntpdc/nl.pl" ;; 26510 "ntpq/Makefile") CONFIG_FILES="$CONFIG_FILES ntpq/Makefile" ;; 26511 "parseutil/Makefile") CONFIG_FILES="$CONFIG_FILES parseutil/Makefile" ;; 26512 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;; 26513 "scripts/calc_tickadj") CONFIG_FILES="$CONFIG_FILES scripts/calc_tickadj" ;; 26514 "scripts/checktime") CONFIG_FILES="$CONFIG_FILES scripts/checktime" ;; 26515 "scripts/freq_adj") CONFIG_FILES="$CONFIG_FILES scripts/freq_adj" ;; 26516 "scripts/html2man") CONFIG_FILES="$CONFIG_FILES scripts/html2man" ;; 26517 "scripts/mkver") CONFIG_FILES="$CONFIG_FILES scripts/mkver" ;; 26518 "scripts/ntp-wait") CONFIG_FILES="$CONFIG_FILES scripts/ntp-wait" ;; 26519 "scripts/ntpsweep") CONFIG_FILES="$CONFIG_FILES scripts/ntpsweep" ;; 26520 "scripts/ntptrace") CONFIG_FILES="$CONFIG_FILES scripts/ntptrace" ;; 26521 "scripts/ntpver") CONFIG_FILES="$CONFIG_FILES scripts/ntpver" ;; 26522 "scripts/plot_summary") CONFIG_FILES="$CONFIG_FILES scripts/plot_summary" ;; 26523 "scripts/summary") CONFIG_FILES="$CONFIG_FILES scripts/summary" ;; 26524 "util/Makefile") CONFIG_FILES="$CONFIG_FILES util/Makefile" ;; 26525 26526 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 26527 esac 26528done 26529 26530 26531# If the user did not use the arguments to specify the items to instantiate, 26532# then the envvar interface is used. Set only those that are not. 26533# We use the long form for the default assignment because of an extremely 26534# bizarre bug on SunOS 4.1.3. 26535if $ac_need_defaults; then 26536 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 26537 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 26538 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 26539fi 26540 26541# Have a temporary directory for convenience. Make it in the build tree 26542# simply because there is no reason against having it here, and in addition, 26543# creating and moving files from /tmp can sometimes cause problems. 26544# Hook for its removal unless debugging. 26545# Note that there is a small window in which the directory will not be cleaned: 26546# after its creation but before its name has been assigned to `$tmp'. 26547$debug || 26548{ 26549 tmp= 26550 trap 'exit_status=$? 26551 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 26552' 0 26553 trap 'as_fn_exit 1' 1 2 13 15 26554} 26555# Create a (secure) tmp directory for tmp files. 26556 26557{ 26558 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 26559 test -n "$tmp" && test -d "$tmp" 26560} || 26561{ 26562 tmp=./conf$$-$RANDOM 26563 (umask 077 && mkdir "$tmp") 26564} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 26565 26566# Set up the scripts for CONFIG_FILES section. 26567# No need to generate them if there are no CONFIG_FILES. 26568# This happens for instance with `./config.status config.h'. 26569if test -n "$CONFIG_FILES"; then 26570 26571 26572ac_cr=`echo X | tr X '\015'` 26573# On cygwin, bash can eat \r inside `` if the user requested igncr. 26574# But we know of no other shell where ac_cr would be empty at this 26575# point, so we can use a bashism as a fallback. 26576if test "x$ac_cr" = x; then 26577 eval ac_cr=\$\'\\r\' 26578fi 26579ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 26580if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 26581 ac_cs_awk_cr='\r' 26582else 26583 ac_cs_awk_cr=$ac_cr 26584fi 26585 26586echo 'BEGIN {' >"$tmp/subs1.awk" && 26587_ACEOF 26588 26589 26590{ 26591 echo "cat >conf$$subs.awk <<_ACEOF" && 26592 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 26593 echo "_ACEOF" 26594} >conf$$subs.sh || 26595 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 26596ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` 26597ac_delim='%!_!# ' 26598for ac_last_try in false false false false false :; do 26599 . ./conf$$subs.sh || 26600 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 26601 26602 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 26603 if test $ac_delim_n = $ac_delim_num; then 26604 break 26605 elif $ac_last_try; then 26606 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 26607 else 26608 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 26609 fi 26610done 26611rm -f conf$$subs.sh 26612 26613cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 26614cat >>"\$tmp/subs1.awk" <<\\_ACAWK && 26615_ACEOF 26616sed -n ' 26617h 26618s/^/S["/; s/!.*/"]=/ 26619p 26620g 26621s/^[^!]*!// 26622:repl 26623t repl 26624s/'"$ac_delim"'$// 26625t delim 26626:nl 26627h 26628s/\(.\{148\}\)..*/\1/ 26629t more1 26630s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 26631p 26632n 26633b repl 26634:more1 26635s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 26636p 26637g 26638s/.\{148\}// 26639t nl 26640:delim 26641h 26642s/\(.\{148\}\)..*/\1/ 26643t more2 26644s/["\\]/\\&/g; s/^/"/; s/$/"/ 26645p 26646b 26647:more2 26648s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 26649p 26650g 26651s/.\{148\}// 26652t delim 26653' <conf$$subs.awk | sed ' 26654/^[^""]/{ 26655 N 26656 s/\n// 26657} 26658' >>$CONFIG_STATUS || ac_write_fail=1 26659rm -f conf$$subs.awk 26660cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 26661_ACAWK 26662cat >>"\$tmp/subs1.awk" <<_ACAWK && 26663 for (key in S) S_is_set[key] = 1 26664 FS = "" 26665 26666} 26667{ 26668 line = $ 0 26669 nfields = split(line, field, "@") 26670 substed = 0 26671 len = length(field[1]) 26672 for (i = 2; i < nfields; i++) { 26673 key = field[i] 26674 keylen = length(key) 26675 if (S_is_set[key]) { 26676 value = S[key] 26677 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 26678 len += length(value) + length(field[++i]) 26679 substed = 1 26680 } else 26681 len += 1 + keylen 26682 } 26683 26684 print line 26685} 26686 26687_ACAWK 26688_ACEOF 26689cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 26690if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 26691 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 26692else 26693 cat 26694fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 26695 || as_fn_error "could not setup config files machinery" "$LINENO" 5 26696_ACEOF 26697 26698# VPATH may cause trouble with some makes, so we remove $(srcdir), 26699# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 26700# trailing colons and then remove the whole line if VPATH becomes empty 26701# (actually we leave an empty line to preserve line numbers). 26702if test "x$srcdir" = x.; then 26703 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 26704s/:*\$(srcdir):*/:/ 26705s/:*\${srcdir}:*/:/ 26706s/:*@srcdir@:*/:/ 26707s/^\([^=]*=[ ]*\):*/\1/ 26708s/:*$// 26709s/^[^=]*=[ ]*$// 26710}' 26711fi 26712 26713cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 26714fi # test -n "$CONFIG_FILES" 26715 26716# Set up the scripts for CONFIG_HEADERS section. 26717# No need to generate them if there are no CONFIG_HEADERS. 26718# This happens for instance with `./config.status Makefile'. 26719if test -n "$CONFIG_HEADERS"; then 26720cat >"$tmp/defines.awk" <<\_ACAWK || 26721BEGIN { 26722_ACEOF 26723 26724# Transform confdefs.h into an awk script `defines.awk', embedded as 26725# here-document in config.status, that substitutes the proper values into 26726# config.h.in to produce config.h. 26727 26728# Create a delimiter string that does not exist in confdefs.h, to ease 26729# handling of long lines. 26730ac_delim='%!_!# ' 26731for ac_last_try in false false :; do 26732 ac_t=`sed -n "/$ac_delim/p" confdefs.h` 26733 if test -z "$ac_t"; then 26734 break 26735 elif $ac_last_try; then 26736 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5 26737 else 26738 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 26739 fi 26740done 26741 26742# For the awk script, D is an array of macro values keyed by name, 26743# likewise P contains macro parameters if any. Preserve backslash 26744# newline sequences. 26745 26746ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 26747sed -n ' 26748s/.\{148\}/&'"$ac_delim"'/g 26749t rset 26750:rset 26751s/^[ ]*#[ ]*define[ ][ ]*/ / 26752t def 26753d 26754:def 26755s/\\$// 26756t bsnl 26757s/["\\]/\\&/g 26758s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 26759D["\1"]=" \3"/p 26760s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 26761d 26762:bsnl 26763s/["\\]/\\&/g 26764s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 26765D["\1"]=" \3\\\\\\n"\\/p 26766t cont 26767s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 26768t cont 26769d 26770:cont 26771n 26772s/.\{148\}/&'"$ac_delim"'/g 26773t clear 26774:clear 26775s/\\$// 26776t bsnlc 26777s/["\\]/\\&/g; s/^/"/; s/$/"/p 26778d 26779:bsnlc 26780s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 26781b cont 26782' <confdefs.h | sed ' 26783s/'"$ac_delim"'/"\\\ 26784"/g' >>$CONFIG_STATUS || ac_write_fail=1 26785 26786cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 26787 for (key in D) D_is_set[key] = 1 26788 FS = "" 26789} 26790/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 26791 line = \$ 0 26792 split(line, arg, " ") 26793 if (arg[1] == "#") { 26794 defundef = arg[2] 26795 mac1 = arg[3] 26796 } else { 26797 defundef = substr(arg[1], 2) 26798 mac1 = arg[2] 26799 } 26800 split(mac1, mac2, "(") #) 26801 macro = mac2[1] 26802 prefix = substr(line, 1, index(line, defundef) - 1) 26803 if (D_is_set[macro]) { 26804 # Preserve the white space surrounding the "#". 26805 print prefix "define", macro P[macro] D[macro] 26806 next 26807 } else { 26808 # Replace #undef with comments. This is necessary, for example, 26809 # in the case of _POSIX_SOURCE, which is predefined and required 26810 # on some systems where configure will not decide to define it. 26811 if (defundef == "undef") { 26812 print "/*", prefix defundef, macro, "*/" 26813 next 26814 } 26815 } 26816} 26817{ print } 26818_ACAWK 26819_ACEOF 26820cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 26821 as_fn_error "could not setup config headers machinery" "$LINENO" 5 26822fi # test -n "$CONFIG_HEADERS" 26823 26824 26825eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 26826shift 26827for ac_tag 26828do 26829 case $ac_tag in 26830 :[FHLC]) ac_mode=$ac_tag; continue;; 26831 esac 26832 case $ac_mode$ac_tag in 26833 :[FHL]*:*);; 26834 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; 26835 :[FH]-) ac_tag=-:-;; 26836 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 26837 esac 26838 ac_save_IFS=$IFS 26839 IFS=: 26840 set x $ac_tag 26841 IFS=$ac_save_IFS 26842 shift 26843 ac_file=$1 26844 shift 26845 26846 case $ac_mode in 26847 :L) ac_source=$1;; 26848 :[FH]) 26849 ac_file_inputs= 26850 for ac_f 26851 do 26852 case $ac_f in 26853 -) ac_f="$tmp/stdin";; 26854 *) # Look for the file first in the build tree, then in the source tree 26855 # (if the path is not absolute). The absolute path cannot be DOS-style, 26856 # because $ac_f cannot contain `:'. 26857 test -f "$ac_f" || 26858 case $ac_f in 26859 [\\/$]*) false;; 26860 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 26861 esac || 26862 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; 26863 esac 26864 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 26865 as_fn_append ac_file_inputs " '$ac_f'" 26866 done 26867 26868 # Let's still pretend it is `configure' which instantiates (i.e., don't 26869 # use $as_me), people would be surprised to read: 26870 # /* config.h. Generated by config.status. */ 26871 configure_input='Generated from '` 26872 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 26873 `' by configure.' 26874 if test x"$ac_file" != x-; then 26875 configure_input="$ac_file. $configure_input" 26876 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 26877$as_echo "$as_me: creating $ac_file" >&6;} 26878 fi 26879 # Neutralize special characters interpreted by sed in replacement strings. 26880 case $configure_input in #( 26881 *\&* | *\|* | *\\* ) 26882 ac_sed_conf_input=`$as_echo "$configure_input" | 26883 sed 's/[\\\\&|]/\\\\&/g'`;; #( 26884 *) ac_sed_conf_input=$configure_input;; 26885 esac 26886 26887 case $ac_tag in 26888 *:-:* | *:-) cat >"$tmp/stdin" \ 26889 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; 26890 esac 26891 ;; 26892 esac 26893 26894 ac_dir=`$as_dirname -- "$ac_file" || 26895$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 26896 X"$ac_file" : 'X\(//\)[^/]' \| \ 26897 X"$ac_file" : 'X\(//\)$' \| \ 26898 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 26899$as_echo X"$ac_file" | 26900 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 26901 s//\1/ 26902 q 26903 } 26904 /^X\(\/\/\)[^/].*/{ 26905 s//\1/ 26906 q 26907 } 26908 /^X\(\/\/\)$/{ 26909 s//\1/ 26910 q 26911 } 26912 /^X\(\/\).*/{ 26913 s//\1/ 26914 q 26915 } 26916 s/.*/./; q'` 26917 as_dir="$ac_dir"; as_fn_mkdir_p 26918 ac_builddir=. 26919 26920case "$ac_dir" in 26921.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 26922*) 26923 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 26924 # A ".." for each directory in $ac_dir_suffix. 26925 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 26926 case $ac_top_builddir_sub in 26927 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 26928 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 26929 esac ;; 26930esac 26931ac_abs_top_builddir=$ac_pwd 26932ac_abs_builddir=$ac_pwd$ac_dir_suffix 26933# for backward compatibility: 26934ac_top_builddir=$ac_top_build_prefix 26935 26936case $srcdir in 26937 .) # We are building in place. 26938 ac_srcdir=. 26939 ac_top_srcdir=$ac_top_builddir_sub 26940 ac_abs_top_srcdir=$ac_pwd ;; 26941 [\\/]* | ?:[\\/]* ) # Absolute name. 26942 ac_srcdir=$srcdir$ac_dir_suffix; 26943 ac_top_srcdir=$srcdir 26944 ac_abs_top_srcdir=$srcdir ;; 26945 *) # Relative name. 26946 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 26947 ac_top_srcdir=$ac_top_build_prefix$srcdir 26948 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 26949esac 26950ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 26951 26952 26953 case $ac_mode in 26954 :F) 26955 # 26956 # CONFIG_FILE 26957 # 26958 26959 case $INSTALL in 26960 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 26961 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 26962 esac 26963 ac_MKDIR_P=$MKDIR_P 26964 case $MKDIR_P in 26965 [\\/$]* | ?:[\\/]* ) ;; 26966 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 26967 esac 26968_ACEOF 26969 26970cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 26971# If the template does not know about datarootdir, expand it. 26972# FIXME: This hack should be removed a few years after 2.60. 26973ac_datarootdir_hack=; ac_datarootdir_seen= 26974ac_sed_dataroot=' 26975/datarootdir/ { 26976 p 26977 q 26978} 26979/@datadir@/p 26980/@docdir@/p 26981/@infodir@/p 26982/@localedir@/p 26983/@mandir@/p' 26984case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 26985*datarootdir*) ac_datarootdir_seen=yes;; 26986*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 26987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 26988$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 26989_ACEOF 26990cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 26991 ac_datarootdir_hack=' 26992 s&@datadir@&$datadir&g 26993 s&@docdir@&$docdir&g 26994 s&@infodir@&$infodir&g 26995 s&@localedir@&$localedir&g 26996 s&@mandir@&$mandir&g 26997 s&\\\${datarootdir}&$datarootdir&g' ;; 26998esac 26999_ACEOF 27000 27001# Neutralize VPATH when `$srcdir' = `.'. 27002# Shell code in configure.ac might set extrasub. 27003# FIXME: do we really want to maintain this feature? 27004cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 27005ac_sed_extra="$ac_vpsub 27006$extrasub 27007_ACEOF 27008cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 27009:t 27010/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 27011s|@configure_input@|$ac_sed_conf_input|;t t 27012s&@top_builddir@&$ac_top_builddir_sub&;t t 27013s&@top_build_prefix@&$ac_top_build_prefix&;t t 27014s&@srcdir@&$ac_srcdir&;t t 27015s&@abs_srcdir@&$ac_abs_srcdir&;t t 27016s&@top_srcdir@&$ac_top_srcdir&;t t 27017s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 27018s&@builddir@&$ac_builddir&;t t 27019s&@abs_builddir@&$ac_abs_builddir&;t t 27020s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 27021s&@INSTALL@&$ac_INSTALL&;t t 27022s&@MKDIR_P@&$ac_MKDIR_P&;t t 27023$ac_datarootdir_hack 27024" 27025eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ 27026 || as_fn_error "could not create $ac_file" "$LINENO" 5 27027 27028test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 27029 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 27030 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 27031 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 27032which seems to be undefined. Please make sure it is defined." >&5 27033$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 27034which seems to be undefined. Please make sure it is defined." >&2;} 27035 27036 rm -f "$tmp/stdin" 27037 case $ac_file in 27038 -) cat "$tmp/out" && rm -f "$tmp/out";; 27039 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; 27040 esac \ 27041 || as_fn_error "could not create $ac_file" "$LINENO" 5 27042 ;; 27043 :H) 27044 # 27045 # CONFIG_HEADER 27046 # 27047 if test x"$ac_file" != x-; then 27048 { 27049 $as_echo "/* $configure_input */" \ 27050 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" 27051 } >"$tmp/config.h" \ 27052 || as_fn_error "could not create $ac_file" "$LINENO" 5 27053 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then 27054 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 27055$as_echo "$as_me: $ac_file is unchanged" >&6;} 27056 else 27057 rm -f "$ac_file" 27058 mv "$tmp/config.h" "$ac_file" \ 27059 || as_fn_error "could not create $ac_file" "$LINENO" 5 27060 fi 27061 else 27062 $as_echo "/* $configure_input */" \ 27063 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ 27064 || as_fn_error "could not create -" "$LINENO" 5 27065 fi 27066# Compute "$ac_file"'s index in $config_headers. 27067_am_arg="$ac_file" 27068_am_stamp_count=1 27069for _am_header in $config_headers :; do 27070 case $_am_header in 27071 $_am_arg | $_am_arg:* ) 27072 break ;; 27073 * ) 27074 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 27075 esac 27076done 27077echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 27078$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 27079 X"$_am_arg" : 'X\(//\)[^/]' \| \ 27080 X"$_am_arg" : 'X\(//\)$' \| \ 27081 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 27082$as_echo X"$_am_arg" | 27083 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 27084 s//\1/ 27085 q 27086 } 27087 /^X\(\/\/\)[^/].*/{ 27088 s//\1/ 27089 q 27090 } 27091 /^X\(\/\/\)$/{ 27092 s//\1/ 27093 q 27094 } 27095 /^X\(\/\).*/{ 27096 s//\1/ 27097 q 27098 } 27099 s/.*/./; q'`/stamp-h$_am_stamp_count 27100 ;; 27101 27102 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 27103$as_echo "$as_me: executing $ac_file commands" >&6;} 27104 ;; 27105 esac 27106 27107 27108 case $ac_file$ac_mode in 27109 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 27110 # Autoconf 2.62 quotes --file arguments for eval, but not when files 27111 # are listed without --file. Let's play safe and only enable the eval 27112 # if we detect the quoting. 27113 case $CONFIG_FILES in 27114 *\'*) eval set x "$CONFIG_FILES" ;; 27115 *) set x $CONFIG_FILES ;; 27116 esac 27117 shift 27118 for mf 27119 do 27120 # Strip MF so we end up with the name of the file. 27121 mf=`echo "$mf" | sed -e 's/:.*$//'` 27122 # Check whether this is an Automake generated Makefile or not. 27123 # We used to match only the files named `Makefile.in', but 27124 # some people rename them; so instead we look at the file content. 27125 # Grep'ing the first line is not enough: some people post-process 27126 # each Makefile.in and add a new line on top of each file to say so. 27127 # Grep'ing the whole file is not good either: AIX grep has a line 27128 # limit of 2048, but all sed's we know have understand at least 4000. 27129 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 27130 dirpart=`$as_dirname -- "$mf" || 27131$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 27132 X"$mf" : 'X\(//\)[^/]' \| \ 27133 X"$mf" : 'X\(//\)$' \| \ 27134 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 27135$as_echo X"$mf" | 27136 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 27137 s//\1/ 27138 q 27139 } 27140 /^X\(\/\/\)[^/].*/{ 27141 s//\1/ 27142 q 27143 } 27144 /^X\(\/\/\)$/{ 27145 s//\1/ 27146 q 27147 } 27148 /^X\(\/\).*/{ 27149 s//\1/ 27150 q 27151 } 27152 s/.*/./; q'` 27153 else 27154 continue 27155 fi 27156 # Extract the definition of DEPDIR, am__include, and am__quote 27157 # from the Makefile without running `make'. 27158 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 27159 test -z "$DEPDIR" && continue 27160 am__include=`sed -n 's/^am__include = //p' < "$mf"` 27161 test -z "am__include" && continue 27162 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 27163 # When using ansi2knr, U may be empty or an underscore; expand it 27164 U=`sed -n 's/^U = //p' < "$mf"` 27165 # Find all dependency output files, they are included files with 27166 # $(DEPDIR) in their names. We invoke sed twice because it is the 27167 # simplest approach to changing $(DEPDIR) to its actual value in the 27168 # expansion. 27169 for file in `sed -n " 27170 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 27171 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 27172 # Make sure the directory exists. 27173 test -f "$dirpart/$file" && continue 27174 fdir=`$as_dirname -- "$file" || 27175$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 27176 X"$file" : 'X\(//\)[^/]' \| \ 27177 X"$file" : 'X\(//\)$' \| \ 27178 X"$file" : 'X\(/\)' \| . 2>/dev/null || 27179$as_echo X"$file" | 27180 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 27181 s//\1/ 27182 q 27183 } 27184 /^X\(\/\/\)[^/].*/{ 27185 s//\1/ 27186 q 27187 } 27188 /^X\(\/\/\)$/{ 27189 s//\1/ 27190 q 27191 } 27192 /^X\(\/\).*/{ 27193 s//\1/ 27194 q 27195 } 27196 s/.*/./; q'` 27197 as_dir=$dirpart/$fdir; as_fn_mkdir_p 27198 # echo "creating $dirpart/$file" 27199 echo '# dummy' > "$dirpart/$file" 27200 done 27201 done 27202} 27203 ;; 27204 "ntpdc/nl.pl":F) chmod +x ntpdc/nl.pl ;; 27205 "scripts/calc_tickadj":F) chmod +x scripts/calc_tickadj ;; 27206 "scripts/checktime":F) chmod +x scripts/checktime ;; 27207 "scripts/freq_adj":F) chmod +x scripts/freq_adj ;; 27208 "scripts/html2man":F) chmod +x scripts/html2man ;; 27209 "scripts/mkver":F) chmod +x scripts/mkver ;; 27210 "scripts/ntp-wait":F) chmod +x scripts/ntp-wait ;; 27211 "scripts/ntpsweep":F) chmod +x scripts/ntpsweep ;; 27212 "scripts/ntptrace":F) chmod +x scripts/ntptrace ;; 27213 "scripts/ntpver":F) chmod +x scripts/ntpver ;; 27214 "scripts/plot_summary":F) chmod +x scripts/plot_summary ;; 27215 "scripts/summary":F) chmod +x scripts/summary ;; 27216 27217 esac 27218done # for ac_tag 27219 27220 27221as_fn_exit 0 27222_ACEOF 27223ac_clean_files=$ac_clean_files_save 27224 27225test $ac_write_fail = 0 || 27226 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 27227 27228 27229# configure is writing to config.log, and then calls config.status. 27230# config.status does its own redirection, appending to config.log. 27231# Unfortunately, on DOS this fails, as config.log is still kept open 27232# by configure, so config.status won't be able to write to it; its 27233# output is simply discarded. So we exec the FD to /dev/null, 27234# effectively closing config.log, so it can be properly (re)opened and 27235# appended to by config.status. When coming back to configure, we 27236# need to make the FD available again. 27237if test "$no_create" != yes; then 27238 ac_cs_success=: 27239 ac_config_status_args= 27240 test "$silent" = yes && 27241 ac_config_status_args="$ac_config_status_args --quiet" 27242 exec 5>/dev/null 27243 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 27244 exec 5>>config.log 27245 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 27246 # would make configure fail if this is the last instruction. 27247 $ac_cs_success || as_fn_exit $? 27248fi 27249 27250# 27251# CONFIG_SUBDIRS section. 27252# 27253if test "$no_recursion" != yes; then 27254 27255 # Remove --cache-file, --srcdir, and --disable-option-checking arguments 27256 # so they do not pile up. 27257 ac_sub_configure_args= 27258 ac_prev= 27259 eval "set x $ac_configure_args" 27260 shift 27261 for ac_arg 27262 do 27263 if test -n "$ac_prev"; then 27264 ac_prev= 27265 continue 27266 fi 27267 case $ac_arg in 27268 -cache-file | --cache-file | --cache-fil | --cache-fi \ 27269 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 27270 ac_prev=cache_file ;; 27271 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 27272 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ 27273 | --c=*) 27274 ;; 27275 --config-cache | -C) 27276 ;; 27277 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 27278 ac_prev=srcdir ;; 27279 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 27280 ;; 27281 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 27282 ac_prev=prefix ;; 27283 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 27284 ;; 27285 --disable-option-checking) 27286 ;; 27287 *) 27288 case $ac_arg in 27289 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 27290 esac 27291 as_fn_append ac_sub_configure_args " '$ac_arg'" ;; 27292 esac 27293 done 27294 27295 # Always prepend --prefix to ensure using the same prefix 27296 # in subdir configurations. 27297 ac_arg="--prefix=$prefix" 27298 case $ac_arg in 27299 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 27300 esac 27301 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args" 27302 27303 # Pass --silent 27304 if test "$silent" = yes; then 27305 ac_sub_configure_args="--silent $ac_sub_configure_args" 27306 fi 27307 27308 # Always prepend --disable-option-checking to silence warnings, since 27309 # different subdirs can have different --enable and --with options. 27310 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args" 27311 27312 ac_popdir=`pwd` 27313 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue 27314 27315 # Do not complain, so a configure script can configure whichever 27316 # parts of a large source tree are present. 27317 test -d "$srcdir/$ac_dir" || continue 27318 27319 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" 27320 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5 27321 $as_echo "$ac_msg" >&6 27322 as_dir="$ac_dir"; as_fn_mkdir_p 27323 ac_builddir=. 27324 27325case "$ac_dir" in 27326.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 27327*) 27328 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 27329 # A ".." for each directory in $ac_dir_suffix. 27330 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 27331 case $ac_top_builddir_sub in 27332 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 27333 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 27334 esac ;; 27335esac 27336ac_abs_top_builddir=$ac_pwd 27337ac_abs_builddir=$ac_pwd$ac_dir_suffix 27338# for backward compatibility: 27339ac_top_builddir=$ac_top_build_prefix 27340 27341case $srcdir in 27342 .) # We are building in place. 27343 ac_srcdir=. 27344 ac_top_srcdir=$ac_top_builddir_sub 27345 ac_abs_top_srcdir=$ac_pwd ;; 27346 [\\/]* | ?:[\\/]* ) # Absolute name. 27347 ac_srcdir=$srcdir$ac_dir_suffix; 27348 ac_top_srcdir=$srcdir 27349 ac_abs_top_srcdir=$srcdir ;; 27350 *) # Relative name. 27351 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 27352 ac_top_srcdir=$ac_top_build_prefix$srcdir 27353 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 27354esac 27355ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 27356 27357 27358 cd "$ac_dir" 27359 27360 # Check for guested configure; otherwise get Cygnus style configure. 27361 if test -f "$ac_srcdir/configure.gnu"; then 27362 ac_sub_configure=$ac_srcdir/configure.gnu 27363 elif test -f "$ac_srcdir/configure"; then 27364 ac_sub_configure=$ac_srcdir/configure 27365 elif test -f "$ac_srcdir/configure.in"; then 27366 # This should be Cygnus configure. 27367 ac_sub_configure=$ac_aux_dir/configure 27368 else 27369 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5 27370$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} 27371 ac_sub_configure= 27372 fi 27373 27374 # The recursion is here. 27375 if test -n "$ac_sub_configure"; then 27376 # Make the cache file name correct relative to the subdirectory. 27377 case $cache_file in 27378 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; 27379 *) # Relative name. 27380 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; 27381 esac 27382 27383 { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 27384$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} 27385 # The eval makes quoting arguments work. 27386 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ 27387 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || 27388 as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5 27389 fi 27390 27391 cd "$ac_popdir" 27392 done 27393fi 27394if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 27395 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 27396$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 27397fi 27398 27399