1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.59 for ntp 4.2.4p5. 4# 5# Copyright (C) 2003 Free Software Foundation, Inc. 6# This configure script is free software; the Free Software Foundation 7# gives unlimited permission to copy, distribute and modify it. 8## --------------------- ## 9## M4sh Initialization. ## 10## --------------------- ## 11 12# Be Bourne compatible 13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 14 emulate sh 15 NULLCMD=: 16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 17 # is contrary to our usage. Disable this feature. 18 alias -g '${1+"$@"}'='"$@"' 19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 20 set -o posix 21fi 22DUALCASE=1; export DUALCASE # for MKS sh 23 24# Support unset when possible. 25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 26 as_unset=unset 27else 28 as_unset=false 29fi 30 31 32# Work around bugs in pre-3.0 UWIN ksh. 33$as_unset ENV MAIL MAILPATH 34PS1='$ ' 35PS2='> ' 36PS4='+ ' 37 38# NLS nuisances. 39for as_var in \ 40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 42 LC_TELEPHONE LC_TIME 43do 44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 45 eval $as_var=C; export $as_var 46 else 47 $as_unset $as_var 48 fi 49done 50 51# Required to use basename. 52if expr a : '\(a\)' >/dev/null 2>&1; then 53 as_expr=expr 54else 55 as_expr=false 56fi 57 58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 59 as_basename=basename 60else 61 as_basename=false 62fi 63 64 65# Name of the executable. 66as_me=`$as_basename "$0" || 67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 68 X"$0" : 'X\(//\)$' \| \ 69 X"$0" : 'X\(/\)$' \| \ 70 . : '\(.\)' 2>/dev/null || 71echo X/"$0" | 72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 73 /^X\/\(\/\/\)$/{ s//\1/; q; } 74 /^X\/\(\/\).*/{ s//\1/; q; } 75 s/.*/./; q'` 76 77 78# PATH needs CR, and LINENO needs CR and PATH. 79# Avoid depending upon Character Ranges. 80as_cr_letters='abcdefghijklmnopqrstuvwxyz' 81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 82as_cr_Letters=$as_cr_letters$as_cr_LETTERS 83as_cr_digits='0123456789' 84as_cr_alnum=$as_cr_Letters$as_cr_digits 85 86# The user is always right. 87if test "${PATH_SEPARATOR+set}" != set; then 88 echo "#! /bin/sh" >conf$$.sh 89 echo "exit 0" >>conf$$.sh 90 chmod +x conf$$.sh 91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 92 PATH_SEPARATOR=';' 93 else 94 PATH_SEPARATOR=: 95 fi 96 rm -f conf$$.sh 97fi 98 99 100 as_lineno_1=$LINENO 101 as_lineno_2=$LINENO 102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 103 test "x$as_lineno_1" != "x$as_lineno_2" && 104 test "x$as_lineno_3" = "x$as_lineno_2" || { 105 # Find who we are. Look in the path if we contain no path at all 106 # relative or not. 107 case $0 in 108 *[\\/]* ) as_myself=$0 ;; 109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 110for as_dir in $PATH 111do 112 IFS=$as_save_IFS 113 test -z "$as_dir" && as_dir=. 114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 115done 116 117 ;; 118 esac 119 # We did not find ourselves, most probably we were run as `sh COMMAND' 120 # in which case we are not to be found in the path. 121 if test "x$as_myself" = x; then 122 as_myself=$0 123 fi 124 if test ! -f "$as_myself"; then 125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 126 { (exit 1); exit 1; }; } 127 fi 128 case $CONFIG_SHELL in 129 '') 130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 132do 133 IFS=$as_save_IFS 134 test -z "$as_dir" && as_dir=. 135 for as_base in sh bash ksh sh5; do 136 case $as_dir in 137 /*) 138 if ("$as_dir/$as_base" -c ' 139 as_lineno_1=$LINENO 140 as_lineno_2=$LINENO 141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 142 test "x$as_lineno_1" != "x$as_lineno_2" && 143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 146 CONFIG_SHELL=$as_dir/$as_base 147 export CONFIG_SHELL 148 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 149 fi;; 150 esac 151 done 152done 153;; 154 esac 155 156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 157 # uniformly replaced by the line number. The first 'sed' inserts a 158 # line-number line before each line; the second 'sed' does the real 159 # work. The second script uses 'N' to pair each line-number line 160 # with the numbered line, and appends trailing '-' during 161 # substitution so that $LINENO is not a special case at line end. 162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 164 sed '=' <$as_myself | 165 sed ' 166 N 167 s,$,-, 168 : loop 169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 170 t loop 171 s,-$,, 172 s,^['$as_cr_digits']*\n,, 173 ' >$as_me.lineno && 174 chmod +x $as_me.lineno || 175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 176 { (exit 1); exit 1; }; } 177 178 # Don't try to exec as it changes $[0], causing all sort of problems 179 # (the dirname of $[0] is not the place where we might find the 180 # original and so on. Autoconf is especially sensible to this). 181 . ./$as_me.lineno 182 # Exit status is that of the last command. 183 exit 184} 185 186 187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 188 *c*,-n*) ECHO_N= ECHO_C=' 189' ECHO_T=' ' ;; 190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 192esac 193 194if expr a : '\(a\)' >/dev/null 2>&1; then 195 as_expr=expr 196else 197 as_expr=false 198fi 199 200rm -f conf$$ conf$$.exe conf$$.file 201echo >conf$$.file 202if ln -s conf$$.file conf$$ 2>/dev/null; then 203 # We could just check for DJGPP; but this test a) works b) is more generic 204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 205 if test -f conf$$.exe; then 206 # Don't use ln at all; we don't have any links 207 as_ln_s='cp -p' 208 else 209 as_ln_s='ln -s' 210 fi 211elif ln conf$$.file conf$$ 2>/dev/null; then 212 as_ln_s=ln 213else 214 as_ln_s='cp -p' 215fi 216rm -f conf$$ conf$$.exe conf$$.file 217 218if mkdir -p . 2>/dev/null; then 219 as_mkdir_p=: 220else 221 test -d ./-p && rmdir ./-p 222 as_mkdir_p=false 223fi 224 225as_executable_p="test -f" 226 227# Sed expression to map a string onto a valid CPP name. 228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 229 230# Sed expression to map a string onto a valid variable name. 231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 232 233 234# IFS 235# We need space, tab and new line, in precisely that order. 236as_nl=' 237' 238IFS=" $as_nl" 239 240# CDPATH. 241$as_unset CDPATH 242 243 244 245# Check that we are running under the correct shell. 246SHELL=${CONFIG_SHELL-/bin/sh} 247 248case X$ECHO in 249X*--fallback-echo) 250 # Remove one level of quotation (which was required for Make). 251 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` 252 ;; 253esac 254 255echo=${ECHO-echo} 256if test "X$1" = X--no-reexec; then 257 # Discard the --no-reexec flag, and continue. 258 shift 259elif test "X$1" = X--fallback-echo; then 260 # Avoid inline document here, it may be left over 261 : 262elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then 263 # Yippee, $echo works! 264 : 265else 266 # Restart under the correct shell. 267 exec $SHELL "$0" --no-reexec ${1+"$@"} 268fi 269 270if test "X$1" = X--fallback-echo; then 271 # used as fallback echo 272 shift 273 cat <<EOF 274$* 275EOF 276 exit 0 277fi 278 279# The HP-UX ksh and POSIX shell print the target directory to stdout 280# if CDPATH is set. 281(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 282 283if test -z "$ECHO"; then 284if test "X${echo_test_string+set}" != Xset; then 285# find a string as large as possible, as long as the shell can cope with it 286 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do 287 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 288 if (echo_test_string=`eval $cmd`) 2>/dev/null && 289 echo_test_string=`eval $cmd` && 290 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null 291 then 292 break 293 fi 294 done 295fi 296 297if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 298 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 299 test "X$echo_testing_string" = "X$echo_test_string"; then 300 : 301else 302 # The Solaris, AIX, and Digital Unix default echo programs unquote 303 # backslashes. This makes it impossible to quote backslashes using 304 # echo "$something" | sed 's/\\/\\\\/g' 305 # 306 # So, first we look for a working echo in the user's PATH. 307 308 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 309 for dir in $PATH /usr/ucb; do 310 IFS="$lt_save_ifs" 311 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 312 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 313 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 314 test "X$echo_testing_string" = "X$echo_test_string"; then 315 echo="$dir/echo" 316 break 317 fi 318 done 319 IFS="$lt_save_ifs" 320 321 if test "X$echo" = Xecho; then 322 # We didn't find a better echo, so look for alternatives. 323 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && 324 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && 325 test "X$echo_testing_string" = "X$echo_test_string"; then 326 # This shell has a builtin print -r that does the trick. 327 echo='print -r' 328 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && 329 test "X$CONFIG_SHELL" != X/bin/ksh; then 330 # If we have ksh, try running configure again with it. 331 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 332 export ORIGINAL_CONFIG_SHELL 333 CONFIG_SHELL=/bin/ksh 334 export CONFIG_SHELL 335 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} 336 else 337 # Try using printf. 338 echo='printf %s\n' 339 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 340 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 341 test "X$echo_testing_string" = "X$echo_test_string"; then 342 # Cool, printf works 343 : 344 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 345 test "X$echo_testing_string" = 'X\t' && 346 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 347 test "X$echo_testing_string" = "X$echo_test_string"; then 348 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 349 export CONFIG_SHELL 350 SHELL="$CONFIG_SHELL" 351 export SHELL 352 echo="$CONFIG_SHELL $0 --fallback-echo" 353 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 354 test "X$echo_testing_string" = 'X\t' && 355 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 356 test "X$echo_testing_string" = "X$echo_test_string"; then 357 echo="$CONFIG_SHELL $0 --fallback-echo" 358 else 359 # maybe with a smaller string... 360 prev=: 361 362 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do 363 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null 364 then 365 break 366 fi 367 prev="$cmd" 368 done 369 370 if test "$prev" != 'sed 50q "$0"'; then 371 echo_test_string=`eval $prev` 372 export echo_test_string 373 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} 374 else 375 # Oops. We lost completely, so just stick with echo. 376 echo=echo 377 fi 378 fi 379 fi 380 fi 381fi 382fi 383 384# Copy echo and quote the copy suitably for passing to libtool from 385# the Makefile, instead of quoting the original, which is used later. 386ECHO=$echo 387if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then 388 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" 389fi 390 391 392 393 394tagnames=${tagnames+${tagnames},}CXX 395 396tagnames=${tagnames+${tagnames},}F77 397 398# Name of the host. 399# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 400# so uname gets run too. 401ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 402 403exec 6>&1 404 405# 406# Initializations. 407# 408ac_default_prefix=/usr/local 409ac_config_libobj_dir=. 410cross_compiling=no 411subdirs= 412MFLAGS= 413MAKEFLAGS= 414SHELL=${CONFIG_SHELL-/bin/sh} 415 416# Maximum number of lines to put in a shell here document. 417# This variable seems obsolete. It should probably be removed, and 418# only ac_max_sed_lines should be used. 419: ${ac_max_here_lines=38} 420 421# Identity of this package. 422PACKAGE_NAME='ntp' 423PACKAGE_TARNAME='ntp' 424PACKAGE_VERSION='4.2.4p5' 425PACKAGE_STRING='ntp 4.2.4p5' 426PACKAGE_BUGREPORT='' 427 428# Factoring default headers for most tests. 429ac_includes_default="\ 430#include <stdio.h> 431#if HAVE_SYS_TYPES_H 432# include <sys/types.h> 433#endif 434#if HAVE_SYS_STAT_H 435# include <sys/stat.h> 436#endif 437#if STDC_HEADERS 438# include <stdlib.h> 439# include <stddef.h> 440#else 441# if HAVE_STDLIB_H 442# include <stdlib.h> 443# endif 444#endif 445#if HAVE_STRING_H 446# if !STDC_HEADERS && HAVE_MEMORY_H 447# include <memory.h> 448# endif 449# include <string.h> 450#endif 451#if HAVE_STRINGS_H 452# include <strings.h> 453#endif 454#if HAVE_INTTYPES_H 455# include <inttypes.h> 456#else 457# if HAVE_STDINT_H 458# include <stdint.h> 459# endif 460#endif 461#if HAVE_UNISTD_H 462# include <unistd.h> 463#endif" 464 465ac_subdirs_all="$ac_subdirs_all arlib" 466ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP EGREP LIBOPTS_DIR INSTALL_LIBOPTS_TRUE INSTALL_LIBOPTS_FALSE NEED_LIBOPTS_TRUE NEED_LIBOPTS_FALSE LIBOPTS_LDADD LIBOPTS_CFLAGS BINSUBDIR subdirs ARLIB_DIR LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL PATH_SH PATH_PERL READLINE_LIBS U ANSI2KNR LIBPARSE MAKE_LIBPARSE MAKE_LIBPARSE_KERNEL MAKE_CHECK_Y2K OPENSSL OPENSSL_INC OPENSSL_LIB LCRYPTO EF_PROGS EF_LIBS MAKE_CHECK_LAYOUT TESTDCF DCFD MAKE_PARSEKMODULE PROPDELAY CHUTEST CLKTEST MAKE_ADJTIMED MAKE_NTPTIME MAKE_TICKADJ MAKE_TIMETRIM MAKE_LIBNTPSIM MAKE_NTPDSIM LIBOBJS LTLIBOBJS' 467ac_subst_files='' 468 469# Initialize some variables set by options. 470ac_init_help= 471ac_init_version=false 472# The variables have the same names as the options, with 473# dashes changed to underlines. 474cache_file=/dev/null 475exec_prefix=NONE 476no_create= 477no_recursion= 478prefix=NONE 479program_prefix=NONE 480program_suffix=NONE 481program_transform_name=s,x,x, 482silent= 483site= 484srcdir= 485verbose= 486x_includes=NONE 487x_libraries=NONE 488 489# Installation directory options. 490# These are left unexpanded so users can "make install exec_prefix=/foo" 491# and all the variables that are supposed to be based on exec_prefix 492# by default will actually change. 493# Use braces instead of parens because sh, perl, etc. also accept them. 494bindir='${exec_prefix}/bin' 495sbindir='${exec_prefix}/sbin' 496libexecdir='${exec_prefix}/libexec' 497datadir='${prefix}/share' 498sysconfdir='${prefix}/etc' 499sharedstatedir='${prefix}/com' 500localstatedir='${prefix}/var' 501libdir='${exec_prefix}/lib' 502includedir='${prefix}/include' 503oldincludedir='/usr/include' 504infodir='${prefix}/info' 505mandir='${prefix}/man' 506 507ac_prev= 508for ac_option 509do 510 # If the previous option needs an argument, assign it. 511 if test -n "$ac_prev"; then 512 eval "$ac_prev=\$ac_option" 513 ac_prev= 514 continue 515 fi 516 517 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` 518 519 # Accept the important Cygnus configure options, so we can diagnose typos. 520 521 case $ac_option in 522 523 -bindir | --bindir | --bindi | --bind | --bin | --bi) 524 ac_prev=bindir ;; 525 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 526 bindir=$ac_optarg ;; 527 528 -build | --build | --buil | --bui | --bu) 529 ac_prev=build_alias ;; 530 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 531 build_alias=$ac_optarg ;; 532 533 -cache-file | --cache-file | --cache-fil | --cache-fi \ 534 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 535 ac_prev=cache_file ;; 536 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 537 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 538 cache_file=$ac_optarg ;; 539 540 --config-cache | -C) 541 cache_file=config.cache ;; 542 543 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 544 ac_prev=datadir ;; 545 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 546 | --da=*) 547 datadir=$ac_optarg ;; 548 549 -disable-* | --disable-*) 550 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 551 # Reject names that are not valid shell variable names. 552 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 553 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 554 { (exit 1); exit 1; }; } 555 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 556 eval "enable_$ac_feature=no" ;; 557 558 -enable-* | --enable-*) 559 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 560 # Reject names that are not valid shell variable names. 561 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 562 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 563 { (exit 1); exit 1; }; } 564 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 565 case $ac_option in 566 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 567 *) ac_optarg=yes ;; 568 esac 569 eval "enable_$ac_feature='$ac_optarg'" ;; 570 571 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 572 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 573 | --exec | --exe | --ex) 574 ac_prev=exec_prefix ;; 575 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 576 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 577 | --exec=* | --exe=* | --ex=*) 578 exec_prefix=$ac_optarg ;; 579 580 -gas | --gas | --ga | --g) 581 # Obsolete; use --with-gas. 582 with_gas=yes ;; 583 584 -help | --help | --hel | --he | -h) 585 ac_init_help=long ;; 586 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 587 ac_init_help=recursive ;; 588 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 589 ac_init_help=short ;; 590 591 -host | --host | --hos | --ho) 592 ac_prev=host_alias ;; 593 -host=* | --host=* | --hos=* | --ho=*) 594 host_alias=$ac_optarg ;; 595 596 -includedir | --includedir | --includedi | --included | --include \ 597 | --includ | --inclu | --incl | --inc) 598 ac_prev=includedir ;; 599 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 600 | --includ=* | --inclu=* | --incl=* | --inc=*) 601 includedir=$ac_optarg ;; 602 603 -infodir | --infodir | --infodi | --infod | --info | --inf) 604 ac_prev=infodir ;; 605 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 606 infodir=$ac_optarg ;; 607 608 -libdir | --libdir | --libdi | --libd) 609 ac_prev=libdir ;; 610 -libdir=* | --libdir=* | --libdi=* | --libd=*) 611 libdir=$ac_optarg ;; 612 613 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 614 | --libexe | --libex | --libe) 615 ac_prev=libexecdir ;; 616 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 617 | --libexe=* | --libex=* | --libe=*) 618 libexecdir=$ac_optarg ;; 619 620 -localstatedir | --localstatedir | --localstatedi | --localstated \ 621 | --localstate | --localstat | --localsta | --localst \ 622 | --locals | --local | --loca | --loc | --lo) 623 ac_prev=localstatedir ;; 624 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 625 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 626 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 627 localstatedir=$ac_optarg ;; 628 629 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 630 ac_prev=mandir ;; 631 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 632 mandir=$ac_optarg ;; 633 634 -nfp | --nfp | --nf) 635 # Obsolete; use --without-fp. 636 with_fp=no ;; 637 638 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 639 | --no-cr | --no-c | -n) 640 no_create=yes ;; 641 642 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 643 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 644 no_recursion=yes ;; 645 646 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 647 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 648 | --oldin | --oldi | --old | --ol | --o) 649 ac_prev=oldincludedir ;; 650 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 651 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 652 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 653 oldincludedir=$ac_optarg ;; 654 655 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 656 ac_prev=prefix ;; 657 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 658 prefix=$ac_optarg ;; 659 660 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 661 | --program-pre | --program-pr | --program-p) 662 ac_prev=program_prefix ;; 663 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 664 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 665 program_prefix=$ac_optarg ;; 666 667 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 668 | --program-suf | --program-su | --program-s) 669 ac_prev=program_suffix ;; 670 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 671 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 672 program_suffix=$ac_optarg ;; 673 674 -program-transform-name | --program-transform-name \ 675 | --program-transform-nam | --program-transform-na \ 676 | --program-transform-n | --program-transform- \ 677 | --program-transform | --program-transfor \ 678 | --program-transfo | --program-transf \ 679 | --program-trans | --program-tran \ 680 | --progr-tra | --program-tr | --program-t) 681 ac_prev=program_transform_name ;; 682 -program-transform-name=* | --program-transform-name=* \ 683 | --program-transform-nam=* | --program-transform-na=* \ 684 | --program-transform-n=* | --program-transform-=* \ 685 | --program-transform=* | --program-transfor=* \ 686 | --program-transfo=* | --program-transf=* \ 687 | --program-trans=* | --program-tran=* \ 688 | --progr-tra=* | --program-tr=* | --program-t=*) 689 program_transform_name=$ac_optarg ;; 690 691 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 692 | -silent | --silent | --silen | --sile | --sil) 693 silent=yes ;; 694 695 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 696 ac_prev=sbindir ;; 697 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 698 | --sbi=* | --sb=*) 699 sbindir=$ac_optarg ;; 700 701 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 702 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 703 | --sharedst | --shareds | --shared | --share | --shar \ 704 | --sha | --sh) 705 ac_prev=sharedstatedir ;; 706 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 707 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 708 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 709 | --sha=* | --sh=*) 710 sharedstatedir=$ac_optarg ;; 711 712 -site | --site | --sit) 713 ac_prev=site ;; 714 -site=* | --site=* | --sit=*) 715 site=$ac_optarg ;; 716 717 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 718 ac_prev=srcdir ;; 719 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 720 srcdir=$ac_optarg ;; 721 722 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 723 | --syscon | --sysco | --sysc | --sys | --sy) 724 ac_prev=sysconfdir ;; 725 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 726 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 727 sysconfdir=$ac_optarg ;; 728 729 -target | --target | --targe | --targ | --tar | --ta | --t) 730 ac_prev=target_alias ;; 731 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 732 target_alias=$ac_optarg ;; 733 734 -v | -verbose | --verbose | --verbos | --verbo | --verb) 735 verbose=yes ;; 736 737 -version | --version | --versio | --versi | --vers | -V) 738 ac_init_version=: ;; 739 740 -with-* | --with-*) 741 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 742 # Reject names that are not valid shell variable names. 743 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 744 { echo "$as_me: error: invalid package name: $ac_package" >&2 745 { (exit 1); exit 1; }; } 746 ac_package=`echo $ac_package| sed 's/-/_/g'` 747 case $ac_option in 748 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 749 *) ac_optarg=yes ;; 750 esac 751 eval "with_$ac_package='$ac_optarg'" ;; 752 753 -without-* | --without-*) 754 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 755 # Reject names that are not valid shell variable names. 756 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 757 { echo "$as_me: error: invalid package name: $ac_package" >&2 758 { (exit 1); exit 1; }; } 759 ac_package=`echo $ac_package | sed 's/-/_/g'` 760 eval "with_$ac_package=no" ;; 761 762 --x) 763 # Obsolete; use --with-x. 764 with_x=yes ;; 765 766 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 767 | --x-incl | --x-inc | --x-in | --x-i) 768 ac_prev=x_includes ;; 769 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 770 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 771 x_includes=$ac_optarg ;; 772 773 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 774 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 775 ac_prev=x_libraries ;; 776 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 777 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 778 x_libraries=$ac_optarg ;; 779 780 -*) { echo "$as_me: error: unrecognized option: $ac_option 781Try \`$0 --help' for more information." >&2 782 { (exit 1); exit 1; }; } 783 ;; 784 785 *=*) 786 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 787 # Reject names that are not valid shell variable names. 788 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 789 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 790 { (exit 1); exit 1; }; } 791 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` 792 eval "$ac_envvar='$ac_optarg'" 793 export $ac_envvar ;; 794 795 *) 796 # FIXME: should be removed in autoconf 3.0. 797 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 798 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 799 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 800 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 801 ;; 802 803 esac 804done 805 806if test -n "$ac_prev"; then 807 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 808 { echo "$as_me: error: missing argument to $ac_option" >&2 809 { (exit 1); exit 1; }; } 810fi 811 812# Be sure to have absolute paths. 813for ac_var in exec_prefix prefix 814do 815 eval ac_val=$`echo $ac_var` 816 case $ac_val in 817 [\\/$]* | ?:[\\/]* | NONE | '' ) ;; 818 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 819 { (exit 1); exit 1; }; };; 820 esac 821done 822 823# Be sure to have absolute paths. 824for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ 825 localstatedir libdir includedir oldincludedir infodir mandir 826do 827 eval ac_val=$`echo $ac_var` 828 case $ac_val in 829 [\\/$]* | ?:[\\/]* ) ;; 830 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 831 { (exit 1); exit 1; }; };; 832 esac 833done 834 835# There might be people who depend on the old broken behavior: `$host' 836# used to hold the argument of --host etc. 837# FIXME: To remove some day. 838build=$build_alias 839host=$host_alias 840target=$target_alias 841 842# FIXME: To remove some day. 843if test "x$host_alias" != x; then 844 if test "x$build_alias" = x; then 845 cross_compiling=maybe 846 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 847 If a cross compiler is detected then cross compile mode will be used." >&2 848 elif test "x$build_alias" != "x$host_alias"; then 849 cross_compiling=yes 850 fi 851fi 852 853ac_tool_prefix= 854test -n "$host_alias" && ac_tool_prefix=$host_alias- 855 856test "$silent" = yes && exec 6>/dev/null 857 858 859# Find the source files, if location was not specified. 860if test -z "$srcdir"; then 861 ac_srcdir_defaulted=yes 862 # Try the directory containing this script, then its parent. 863 ac_confdir=`(dirname "$0") 2>/dev/null || 864$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 865 X"$0" : 'X\(//\)[^/]' \| \ 866 X"$0" : 'X\(//\)$' \| \ 867 X"$0" : 'X\(/\)' \| \ 868 . : '\(.\)' 2>/dev/null || 869echo X"$0" | 870 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 871 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 872 /^X\(\/\/\)$/{ s//\1/; q; } 873 /^X\(\/\).*/{ s//\1/; q; } 874 s/.*/./; q'` 875 srcdir=$ac_confdir 876 if test ! -r $srcdir/$ac_unique_file; then 877 srcdir=.. 878 fi 879else 880 ac_srcdir_defaulted=no 881fi 882if test ! -r $srcdir/$ac_unique_file; then 883 if test "$ac_srcdir_defaulted" = yes; then 884 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 885 { (exit 1); exit 1; }; } 886 else 887 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 888 { (exit 1); exit 1; }; } 889 fi 890fi 891(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || 892 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 893 { (exit 1); exit 1; }; } 894srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` 895ac_env_build_alias_set=${build_alias+set} 896ac_env_build_alias_value=$build_alias 897ac_cv_env_build_alias_set=${build_alias+set} 898ac_cv_env_build_alias_value=$build_alias 899ac_env_host_alias_set=${host_alias+set} 900ac_env_host_alias_value=$host_alias 901ac_cv_env_host_alias_set=${host_alias+set} 902ac_cv_env_host_alias_value=$host_alias 903ac_env_target_alias_set=${target_alias+set} 904ac_env_target_alias_value=$target_alias 905ac_cv_env_target_alias_set=${target_alias+set} 906ac_cv_env_target_alias_value=$target_alias 907ac_env_CC_set=${CC+set} 908ac_env_CC_value=$CC 909ac_cv_env_CC_set=${CC+set} 910ac_cv_env_CC_value=$CC 911ac_env_CFLAGS_set=${CFLAGS+set} 912ac_env_CFLAGS_value=$CFLAGS 913ac_cv_env_CFLAGS_set=${CFLAGS+set} 914ac_cv_env_CFLAGS_value=$CFLAGS 915ac_env_LDFLAGS_set=${LDFLAGS+set} 916ac_env_LDFLAGS_value=$LDFLAGS 917ac_cv_env_LDFLAGS_set=${LDFLAGS+set} 918ac_cv_env_LDFLAGS_value=$LDFLAGS 919ac_env_CPPFLAGS_set=${CPPFLAGS+set} 920ac_env_CPPFLAGS_value=$CPPFLAGS 921ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} 922ac_cv_env_CPPFLAGS_value=$CPPFLAGS 923ac_env_CPP_set=${CPP+set} 924ac_env_CPP_value=$CPP 925ac_cv_env_CPP_set=${CPP+set} 926ac_cv_env_CPP_value=$CPP 927ac_env_CXX_set=${CXX+set} 928ac_env_CXX_value=$CXX 929ac_cv_env_CXX_set=${CXX+set} 930ac_cv_env_CXX_value=$CXX 931ac_env_CXXFLAGS_set=${CXXFLAGS+set} 932ac_env_CXXFLAGS_value=$CXXFLAGS 933ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} 934ac_cv_env_CXXFLAGS_value=$CXXFLAGS 935ac_env_CXXCPP_set=${CXXCPP+set} 936ac_env_CXXCPP_value=$CXXCPP 937ac_cv_env_CXXCPP_set=${CXXCPP+set} 938ac_cv_env_CXXCPP_value=$CXXCPP 939ac_env_F77_set=${F77+set} 940ac_env_F77_value=$F77 941ac_cv_env_F77_set=${F77+set} 942ac_cv_env_F77_value=$F77 943ac_env_FFLAGS_set=${FFLAGS+set} 944ac_env_FFLAGS_value=$FFLAGS 945ac_cv_env_FFLAGS_set=${FFLAGS+set} 946ac_cv_env_FFLAGS_value=$FFLAGS 947 948# 949# Report the --help message. 950# 951if test "$ac_init_help" = "long"; then 952 # Omit some internal or obsolete options to make the list less imposing. 953 # This message is too long to be a string in the A/UX 3.1 sh. 954 cat <<_ACEOF 955\`configure' configures ntp 4.2.4p5 to adapt to many kinds of systems. 956 957Usage: $0 [OPTION]... [VAR=VALUE]... 958 959To assign environment variables (e.g., CC, CFLAGS...), specify them as 960VAR=VALUE. See below for descriptions of some of the useful variables. 961 962Defaults for the options are specified in brackets. 963 964Configuration: 965 -h, --help display this help and exit 966 --help=short display options specific to this package 967 --help=recursive display the short help of all the included packages 968 -V, --version display version information and exit 969 -q, --quiet, --silent do not print \`checking...' messages 970 --cache-file=FILE cache test results in FILE [disabled] 971 -C, --config-cache alias for \`--cache-file=config.cache' 972 -n, --no-create do not create output files 973 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 974 975_ACEOF 976 977 cat <<_ACEOF 978Installation directories: 979 --prefix=PREFIX install architecture-independent files in PREFIX 980 [$ac_default_prefix] 981 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 982 [PREFIX] 983 984By default, \`make install' will install all the files in 985\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 986an installation prefix other than \`$ac_default_prefix' using \`--prefix', 987for instance \`--prefix=\$HOME'. 988 989For better control, use the options below. 990 991Fine tuning of the installation directories: 992 --bindir=DIR user executables [EPREFIX/bin] 993 --sbindir=DIR system admin executables [EPREFIX/sbin] 994 --libexecdir=DIR program executables [EPREFIX/libexec] 995 --datadir=DIR read-only architecture-independent data [PREFIX/share] 996 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 997 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 998 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 999 --libdir=DIR object code libraries [EPREFIX/lib] 1000 --includedir=DIR C header files [PREFIX/include] 1001 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1002 --infodir=DIR info documentation [PREFIX/info] 1003 --mandir=DIR man documentation [PREFIX/man] 1004_ACEOF 1005 1006 cat <<\_ACEOF 1007 1008Program names: 1009 --program-prefix=PREFIX prepend PREFIX to installed program names 1010 --program-suffix=SUFFIX append SUFFIX to installed program names 1011 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1012 1013System types: 1014 --build=BUILD configure for building on BUILD [guessed] 1015 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1016_ACEOF 1017fi 1018 1019if test -n "$ac_init_help"; then 1020 case $ac_init_help in 1021 short | recursive ) echo "Configuration of ntp 4.2.4p5:";; 1022 esac 1023 cat <<\_ACEOF 1024 1025Optional Features: 1026 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1027 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1028 --disable-dependency-tracking speeds up one-time build 1029 --enable-dependency-tracking do not reject slow dependency extractors 1030 --enable-local-libopts Force using the supplied libopts tearoff code 1031 --disable-libopts-install 1032 Do not install libopts with client installation 1033 --disable-optional-args not wanting optional option args 1034 --enable-clockctl s Use /dev/clockctl for non-root clock control 1035 --enable-linuxcaps s Use Linux capabilities for non-root clock control 1036 --enable-shared[=PKGS] 1037 build shared libraries [default=no] 1038 --enable-static[=PKGS] 1039 build static libraries [default=yes] 1040 --enable-fast-install[=PKGS] 1041 optimize for fast installation [default=yes] 1042 --disable-libtool-lock avoid locking (might break parallel builds) 1043 --enable-getifaddrs s Enable the use of getifaddrs() [yes|no|glibc]. 1044 glibc: Use getifaddrs() in glibc if you know it 1045 supports IPv6. 1046 --enable-debugging + include debugging code 1047 --enable-debug-timing - include processing time debugging code (costs 1048 performance) 1049 --enable-dst-minutes=60 + minutes per DST adjustment 1050 --enable-BANCOMM - Datum/Bancomm bc635/VME interface 1051 --enable-GPSVME - TrueTime GPS receiver/VME interface 1052 --enable-all-clocks + include all suitable non-PARSE clocks: 1053 --enable-ACTS s ACTS modem service 1054 --enable-ARBITER + Arbiter 1088A/B GPS receiver 1055 --enable-ARCRON-MSF + Arcron MSF receiver 1056 --enable-AS2201 + Austron 2200A/2201A GPS receiver 1057 --enable-ATOM s ATOM PPS interface 1058 --enable-CHRONOLOG + Chrono-log K-series WWVB receiver 1059 --enable-CHU + CHU modem/decoder 1060 --enable-AUDIO-CHU s CHU audio/decoder 1061 --enable-DATUM s Datum Programmable Time System 1062 --enable-DUMBCLOCK + Dumb generic hh:mm:ss local clock 1063 --enable-FG + Forum Graphic GPS 1064 --enable-HEATH s Heath GC-1000 WWV/WWVH receiver 1065 --enable-HOPFSERIAL + hopf serial clock device 1066 --enable-HOPFPCI + hopf 6039 PCI board 1067 --enable-HPGPS + HP 58503A GPS receiver 1068 --enable-IRIG s IRIG audio decoder 1069 --enable-JJY + JJY receiver 1070 --enable-JUPITER s Rockwell Jupiter GPS receiver 1071 --enable-LEITCH + Leitch CSD 5300 Master Clock System Driver 1072 --enable-LOCAL-CLOCK + local clock reference 1073 --enable-MX4200 s Magnavox MX4200 GPS receiver 1074 --enable-NEOCLOCK4X + NeoClock4X DCF77 / TDF receiver 1075 --enable-NMEA + NMEA GPS receiver 1076 --enable-ONCORE s Motorola VP/UT Oncore GPS receiver 1077 --enable-PALISADE s Palisade clock 1078 --enable-PCF + Conrad parallel port radio clock 1079 --enable-PST + PST/Traconex 1020 WWV/WWVH receiver 1080 --enable-RIPENCC - RIPENCC specific Trimble driver 1081 --enable-SHM s SHM clock attached thru shared memory 1082 --enable-SPECTRACOM + Spectracom 8170/Netclock/2 WWVB receiver 1083 --enable-TPRO s KSI/Odetics TPRO/S GPS receiver/IRIG interface 1084 --enable-TRUETIME s Kinemetrics/TrueTime receivers 1085 --enable-TT560 - TrueTime 560 IRIG-B decoder 1086 --enable-ULINK + Ultralink WWVB receiver 1087 --enable-WWV s WWV Audio receiver 1088 --enable-ZYFER + Zyfer GPStarplus receiver 1089 --enable-parse-clocks - include all suitable PARSE clocks: 1090 --enable-COMPUTIME s Diem Computime Radio Clock 1091 --enable-DCF7000 s ELV/DCF7000 clock 1092 --enable-HOPF6021 s HOPF 6021 clock 1093 --enable-MEINBERG s Meinberg clocks 1094 --enable-RAWDCF s DCF77 raw time code 1095 --enable-RCC8000 s RCC 8000 clock 1096 --enable-SCHMID s Schmid DCF77 clock 1097 --enable-TRIMTAIP s Trimble GPS receiver/TAIP protocol 1098 --enable-TRIMTSIP s Trimble GPS receiver/TSIP protocol 1099 --enable-WHARTON s WHARTON 400A Series clock 1100 --enable-VARITEXT s VARITEXT clock 1101 --enable-kmem s read /dev/kmem for tick and/or tickadj 1102 --enable-accurate-adjtime 1103 s the adjtime() call is accurate 1104 --enable-tick=VALUE s force a value for 'tick' 1105 --enable-tickadj=VALUE s force a value for 'tickadj' 1106 --enable-simulator - build/install the NTPD simulator? 1107 --enable-slew-always s always slew the time 1108 --enable-step-slew s step and slew the time 1109 --enable-ntpdate-step s if ntpdate should step the time 1110 --enable-hourly-todr-sync 1111 s if we should sync TODR hourly 1112 --enable-kernel-fll-bug s if we should avoid a kernel FLL bug 1113 --enable-irig-sawtooth s if we should enable the IRIG sawtooth filter 1114 --enable-nist - if we should enable the NIST lockclock scheme 1115 --enable-ipv6 s use IPv6? 1116 1117Optional Packages: 1118 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1119 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1120 --with-autoopts-config specify the config-info script 1121 --with-regex-header a reg expr header is specified 1122 --with-libregex libregex installation prefix 1123 --with-libregex-cflags libregex compile flags 1124 --with-libregex-libs libregex link command arguments 1125 --with-binsubdir bin ={bin,sbin} 1126 --with-arlib - Compile the async resolver library? 1127 --without-rpath s Disable auto-added -R linker paths 1128 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1129 --with-pic try to use only PIC/non-PIC objects [default=use 1130 both] 1131 --with-tags[=TAGS] 1132 include additional configurations [automatic] 1133 --with-openssl-libdir + =/something/reasonable 1134 --with-openssl-incdir + =/something/reasonable 1135 --with-crypto + =openssl 1136 --with-electricfence - compile with ElectricFence malloc debugger 1137 --with-kame - =/usr/local/v6 1138 1139Some influential environment variables: 1140 CC C compiler command 1141 CFLAGS C compiler flags 1142 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1143 nonstandard directory <lib dir> 1144 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 1145 headers in a nonstandard directory <include dir> 1146 CPP C preprocessor 1147 CXX C++ compiler command 1148 CXXFLAGS C++ compiler flags 1149 CXXCPP C++ preprocessor 1150 F77 Fortran 77 compiler command 1151 FFLAGS Fortran 77 compiler flags 1152 1153Use these variables to override the choices made by `configure' or to help 1154it to find libraries and programs with nonstandard names/locations. 1155 1156_ACEOF 1157fi 1158 1159if test "$ac_init_help" = "recursive"; then 1160 # If there are subdirs, report their specific --help. 1161 ac_popdir=`pwd` 1162 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1163 test -d $ac_dir || continue 1164 ac_builddir=. 1165 1166if test "$ac_dir" != .; then 1167 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1168 # A "../" for each directory in $ac_dir_suffix. 1169 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 1170else 1171 ac_dir_suffix= ac_top_builddir= 1172fi 1173 1174case $srcdir in 1175 .) # No --srcdir option. We are building in place. 1176 ac_srcdir=. 1177 if test -z "$ac_top_builddir"; then 1178 ac_top_srcdir=. 1179 else 1180 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 1181 fi ;; 1182 [\\/]* | ?:[\\/]* ) # Absolute path. 1183 ac_srcdir=$srcdir$ac_dir_suffix; 1184 ac_top_srcdir=$srcdir ;; 1185 *) # Relative path. 1186 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 1187 ac_top_srcdir=$ac_top_builddir$srcdir ;; 1188esac 1189 1190# Do not use `cd foo && pwd` to compute absolute paths, because 1191# the directories may not exist. 1192case `pwd` in 1193.) ac_abs_builddir="$ac_dir";; 1194*) 1195 case "$ac_dir" in 1196 .) ac_abs_builddir=`pwd`;; 1197 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 1198 *) ac_abs_builddir=`pwd`/"$ac_dir";; 1199 esac;; 1200esac 1201case $ac_abs_builddir in 1202.) ac_abs_top_builddir=${ac_top_builddir}.;; 1203*) 1204 case ${ac_top_builddir}. in 1205 .) ac_abs_top_builddir=$ac_abs_builddir;; 1206 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 1207 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 1208 esac;; 1209esac 1210case $ac_abs_builddir in 1211.) ac_abs_srcdir=$ac_srcdir;; 1212*) 1213 case $ac_srcdir in 1214 .) ac_abs_srcdir=$ac_abs_builddir;; 1215 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 1216 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 1217 esac;; 1218esac 1219case $ac_abs_builddir in 1220.) ac_abs_top_srcdir=$ac_top_srcdir;; 1221*) 1222 case $ac_top_srcdir in 1223 .) ac_abs_top_srcdir=$ac_abs_builddir;; 1224 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 1225 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 1226 esac;; 1227esac 1228 1229 cd $ac_dir 1230 # Check for guested configure; otherwise get Cygnus style configure. 1231 if test -f $ac_srcdir/configure.gnu; then 1232 echo 1233 $SHELL $ac_srcdir/configure.gnu --help=recursive 1234 elif test -f $ac_srcdir/configure; then 1235 echo 1236 $SHELL $ac_srcdir/configure --help=recursive 1237 elif test -f $ac_srcdir/configure.ac || 1238 test -f $ac_srcdir/configure.in; then 1239 echo 1240 $ac_configure --help 1241 else 1242 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1243 fi 1244 cd $ac_popdir 1245 done 1246fi 1247 1248test -n "$ac_init_help" && exit 0 1249if $ac_init_version; then 1250 cat <<\_ACEOF 1251ntp configure 4.2.4p5 1252generated by GNU Autoconf 2.59 1253 1254Copyright (C) 2003 Free Software Foundation, Inc. 1255This configure script is free software; the Free Software Foundation 1256gives unlimited permission to copy, distribute and modify it. 1257_ACEOF 1258 exit 0 1259fi 1260exec 5>config.log 1261cat >&5 <<_ACEOF 1262This file contains any messages produced by compilers while 1263running configure, to aid debugging if configure makes a mistake. 1264 1265It was created by ntp $as_me 4.2.4p5, which was 1266generated by GNU Autoconf 2.59. Invocation command line was 1267 1268 $ $0 $@ 1269 1270_ACEOF 1271{ 1272cat <<_ASUNAME 1273## --------- ## 1274## Platform. ## 1275## --------- ## 1276 1277hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1278uname -m = `(uname -m) 2>/dev/null || echo unknown` 1279uname -r = `(uname -r) 2>/dev/null || echo unknown` 1280uname -s = `(uname -s) 2>/dev/null || echo unknown` 1281uname -v = `(uname -v) 2>/dev/null || echo unknown` 1282 1283/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1284/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1285 1286/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1287/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1288/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1289hostinfo = `(hostinfo) 2>/dev/null || echo unknown` 1290/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1291/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1292/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1293 1294_ASUNAME 1295 1296as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1297for as_dir in $PATH 1298do 1299 IFS=$as_save_IFS 1300 test -z "$as_dir" && as_dir=. 1301 echo "PATH: $as_dir" 1302done 1303 1304} >&5 1305 1306cat >&5 <<_ACEOF 1307 1308 1309## ----------- ## 1310## Core tests. ## 1311## ----------- ## 1312 1313_ACEOF 1314 1315 1316# Keep a trace of the command line. 1317# Strip out --no-create and --no-recursion so they do not pile up. 1318# Strip out --silent because we don't want to record it for future runs. 1319# Also quote any args containing shell meta-characters. 1320# Make two passes to allow for proper duplicate-argument suppression. 1321ac_configure_args= 1322ac_configure_args0= 1323ac_configure_args1= 1324ac_sep= 1325ac_must_keep_next=false 1326for ac_pass in 1 2 1327do 1328 for ac_arg 1329 do 1330 case $ac_arg in 1331 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1332 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1333 | -silent | --silent | --silen | --sile | --sil) 1334 continue ;; 1335 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1336 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1337 esac 1338 case $ac_pass in 1339 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1340 2) 1341 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1342 if test $ac_must_keep_next = true; then 1343 ac_must_keep_next=false # Got value, back to normal. 1344 else 1345 case $ac_arg in 1346 *=* | --config-cache | -C | -disable-* | --disable-* \ 1347 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1348 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1349 | -with-* | --with-* | -without-* | --without-* | --x) 1350 case "$ac_configure_args0 " in 1351 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1352 esac 1353 ;; 1354 -* ) ac_must_keep_next=true ;; 1355 esac 1356 fi 1357 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" 1358 # Get rid of the leading space. 1359 ac_sep=" " 1360 ;; 1361 esac 1362 done 1363done 1364$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1365$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1366 1367# When interrupted or exit'd, cleanup temporary files, and complete 1368# config.log. We remove comments because anyway the quotes in there 1369# would cause problems or look ugly. 1370# WARNING: Be sure not to use single quotes in there, as some shells, 1371# such as our DU 5.0 friend, will then `close' the trap. 1372trap 'exit_status=$? 1373 # Save into config.log some information that might help in debugging. 1374 { 1375 echo 1376 1377 cat <<\_ASBOX 1378## ---------------- ## 1379## Cache variables. ## 1380## ---------------- ## 1381_ASBOX 1382 echo 1383 # The following way of writing the cache mishandles newlines in values, 1384{ 1385 (set) 2>&1 | 1386 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in 1387 *ac_space=\ *) 1388 sed -n \ 1389 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; 1390 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" 1391 ;; 1392 *) 1393 sed -n \ 1394 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 1395 ;; 1396 esac; 1397} 1398 echo 1399 1400 cat <<\_ASBOX 1401## ----------------- ## 1402## Output variables. ## 1403## ----------------- ## 1404_ASBOX 1405 echo 1406 for ac_var in $ac_subst_vars 1407 do 1408 eval ac_val=$`echo $ac_var` 1409 echo "$ac_var='"'"'$ac_val'"'"'" 1410 done | sort 1411 echo 1412 1413 if test -n "$ac_subst_files"; then 1414 cat <<\_ASBOX 1415## ------------- ## 1416## Output files. ## 1417## ------------- ## 1418_ASBOX 1419 echo 1420 for ac_var in $ac_subst_files 1421 do 1422 eval ac_val=$`echo $ac_var` 1423 echo "$ac_var='"'"'$ac_val'"'"'" 1424 done | sort 1425 echo 1426 fi 1427 1428 if test -s confdefs.h; then 1429 cat <<\_ASBOX 1430## ----------- ## 1431## confdefs.h. ## 1432## ----------- ## 1433_ASBOX 1434 echo 1435 sed "/^$/d" confdefs.h | sort 1436 echo 1437 fi 1438 test "$ac_signal" != 0 && 1439 echo "$as_me: caught signal $ac_signal" 1440 echo "$as_me: exit $exit_status" 1441 } >&5 1442 rm -f core *.core && 1443 rm -rf conftest* confdefs* conf$$* $ac_clean_files && 1444 exit $exit_status 1445 ' 0 1446for ac_signal in 1 2 13 15; do 1447 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1448done 1449ac_signal=0 1450 1451# confdefs.h avoids OS command line length limits that DEFS can exceed. 1452rm -rf conftest* confdefs.h 1453# AIX cpp loses on an empty file, so make sure it contains at least a newline. 1454echo >confdefs.h 1455 1456# Predefined preprocessor variables. 1457 1458cat >>confdefs.h <<_ACEOF 1459#define PACKAGE_NAME "$PACKAGE_NAME" 1460_ACEOF 1461 1462 1463cat >>confdefs.h <<_ACEOF 1464#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1465_ACEOF 1466 1467 1468cat >>confdefs.h <<_ACEOF 1469#define PACKAGE_VERSION "$PACKAGE_VERSION" 1470_ACEOF 1471 1472 1473cat >>confdefs.h <<_ACEOF 1474#define PACKAGE_STRING "$PACKAGE_STRING" 1475_ACEOF 1476 1477 1478cat >>confdefs.h <<_ACEOF 1479#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1480_ACEOF 1481 1482 1483# Let the site file select an alternate cache file if it wants to. 1484# Prefer explicitly selected file to automatically selected ones. 1485if test -z "$CONFIG_SITE"; then 1486 if test "x$prefix" != xNONE; then 1487 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 1488 else 1489 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 1490 fi 1491fi 1492for ac_site_file in $CONFIG_SITE; do 1493 if test -r "$ac_site_file"; then 1494 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1495echo "$as_me: loading site script $ac_site_file" >&6;} 1496 sed 's/^/| /' "$ac_site_file" >&5 1497 . "$ac_site_file" 1498 fi 1499done 1500 1501if test -r "$cache_file"; then 1502 # Some versions of bash will fail to source /dev/null (special 1503 # files actually), so we avoid doing that. 1504 if test -f "$cache_file"; then 1505 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1506echo "$as_me: loading cache $cache_file" >&6;} 1507 case $cache_file in 1508 [\\/]* | ?:[\\/]* ) . $cache_file;; 1509 *) . ./$cache_file;; 1510 esac 1511 fi 1512else 1513 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1514echo "$as_me: creating cache $cache_file" >&6;} 1515 >$cache_file 1516fi 1517 1518# Check that the precious variables saved in the cache have kept the same 1519# value. 1520ac_cache_corrupted=false 1521for ac_var in `(set) 2>&1 | 1522 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do 1523 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1524 eval ac_new_set=\$ac_env_${ac_var}_set 1525 eval ac_old_val="\$ac_cv_env_${ac_var}_value" 1526 eval ac_new_val="\$ac_env_${ac_var}_value" 1527 case $ac_old_set,$ac_new_set in 1528 set,) 1529 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1530echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1531 ac_cache_corrupted=: ;; 1532 ,set) 1533 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1534echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1535 ac_cache_corrupted=: ;; 1536 ,);; 1537 *) 1538 if test "x$ac_old_val" != "x$ac_new_val"; then 1539 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1540echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1541 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1542echo "$as_me: former value: $ac_old_val" >&2;} 1543 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1544echo "$as_me: current value: $ac_new_val" >&2;} 1545 ac_cache_corrupted=: 1546 fi;; 1547 esac 1548 # Pass precious variables to config.status. 1549 if test "$ac_new_set" = set; then 1550 case $ac_new_val in 1551 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1552 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1553 *) ac_arg=$ac_var=$ac_new_val ;; 1554 esac 1555 case " $ac_configure_args " in 1556 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1557 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1558 esac 1559 fi 1560done 1561if $ac_cache_corrupted; then 1562 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1563echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1564 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1565echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1566 { (exit 1); exit 1; }; } 1567fi 1568 1569ac_ext=c 1570ac_cpp='$CPP $CPPFLAGS' 1571ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1572ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1573ac_compiler_gnu=$ac_cv_c_compiler_gnu 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601am__api_version="1.9" 1602ac_aux_dir= 1603for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do 1604 if test -f $ac_dir/install-sh; then 1605 ac_aux_dir=$ac_dir 1606 ac_install_sh="$ac_aux_dir/install-sh -c" 1607 break 1608 elif test -f $ac_dir/install.sh; then 1609 ac_aux_dir=$ac_dir 1610 ac_install_sh="$ac_aux_dir/install.sh -c" 1611 break 1612 elif test -f $ac_dir/shtool; then 1613 ac_aux_dir=$ac_dir 1614 ac_install_sh="$ac_aux_dir/shtool install -c" 1615 break 1616 fi 1617done 1618if test -z "$ac_aux_dir"; then 1619 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 1620echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} 1621 { (exit 1); exit 1; }; } 1622fi 1623ac_config_guess="$SHELL $ac_aux_dir/config.guess" 1624ac_config_sub="$SHELL $ac_aux_dir/config.sub" 1625ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 1626 1627# Find a good install program. We prefer a C program (faster), 1628# so one script is as good as another. But avoid the broken or 1629# incompatible versions: 1630# SysV /etc/install, /usr/sbin/install 1631# SunOS /usr/etc/install 1632# IRIX /sbin/install 1633# AIX /bin/install 1634# AmigaOS /C/install, which installs bootblocks on floppy discs 1635# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 1636# AFS /usr/afsws/bin/install, which mishandles nonexistent args 1637# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 1638# OS/2's system install, which has a completely different semantic 1639# ./install, which can be erroneously created by make from ./install.sh. 1640echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 1641echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 1642if test -z "$INSTALL"; then 1643if test "${ac_cv_path_install+set}" = set; then 1644 echo $ECHO_N "(cached) $ECHO_C" >&6 1645else 1646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1647for as_dir in $PATH 1648do 1649 IFS=$as_save_IFS 1650 test -z "$as_dir" && as_dir=. 1651 # Account for people who put trailing slashes in PATH elements. 1652case $as_dir/ in 1653 ./ | .// | /cC/* | \ 1654 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 1655 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 1656 /usr/ucb/* ) ;; 1657 *) 1658 # OSF1 and SCO ODT 3.0 have their own names for install. 1659 # Don't use installbsd from OSF since it installs stuff as root 1660 # by default. 1661 for ac_prog in ginstall scoinst install; do 1662 for ac_exec_ext in '' $ac_executable_extensions; do 1663 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 1664 if test $ac_prog = install && 1665 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 1666 # AIX install. It has an incompatible calling convention. 1667 : 1668 elif test $ac_prog = install && 1669 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 1670 # program-specific install script used by HP pwplus--don't use. 1671 : 1672 else 1673 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 1674 break 3 1675 fi 1676 fi 1677 done 1678 done 1679 ;; 1680esac 1681done 1682 1683 1684fi 1685 if test "${ac_cv_path_install+set}" = set; then 1686 INSTALL=$ac_cv_path_install 1687 else 1688 # As a last resort, use the slow shell script. We don't cache a 1689 # path for INSTALL within a source directory, because that will 1690 # break other packages using the cache if that directory is 1691 # removed, or if the path is relative. 1692 INSTALL=$ac_install_sh 1693 fi 1694fi 1695echo "$as_me:$LINENO: result: $INSTALL" >&5 1696echo "${ECHO_T}$INSTALL" >&6 1697 1698# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 1699# It thinks the first close brace ends the variable substitution. 1700test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 1701 1702test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 1703 1704test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 1705 1706echo "$as_me:$LINENO: checking whether build environment is sane" >&5 1707echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 1708# Just in case 1709sleep 1 1710echo timestamp > conftest.file 1711# Do `set' in a subshell so we don't clobber the current shell's 1712# arguments. Must try -L first in case configure is actually a 1713# symlink; some systems play weird games with the mod time of symlinks 1714# (eg FreeBSD returns the mod time of the symlink's containing 1715# directory). 1716if ( 1717 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 1718 if test "$*" = "X"; then 1719 # -L didn't work. 1720 set X `ls -t $srcdir/configure conftest.file` 1721 fi 1722 rm -f conftest.file 1723 if test "$*" != "X $srcdir/configure conftest.file" \ 1724 && test "$*" != "X conftest.file $srcdir/configure"; then 1725 1726 # If neither matched, then we have a broken ls. This can happen 1727 # if, for instance, CONFIG_SHELL is bash and it inherits a 1728 # broken ls alias from the environment. This has actually 1729 # happened. Such a system could not be considered "sane". 1730 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 1731alias in your environment" >&5 1732echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 1733alias in your environment" >&2;} 1734 { (exit 1); exit 1; }; } 1735 fi 1736 1737 test "$2" = conftest.file 1738 ) 1739then 1740 # Ok. 1741 : 1742else 1743 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! 1744Check your system clock" >&5 1745echo "$as_me: error: newly created file is older than distributed files! 1746Check your system clock" >&2;} 1747 { (exit 1); exit 1; }; } 1748fi 1749echo "$as_me:$LINENO: result: yes" >&5 1750echo "${ECHO_T}yes" >&6 1751test "$program_prefix" != NONE && 1752 program_transform_name="s,^,$program_prefix,;$program_transform_name" 1753# Use a double $ so make ignores it. 1754test "$program_suffix" != NONE && 1755 program_transform_name="s,\$,$program_suffix,;$program_transform_name" 1756# Double any \ or $. echo might interpret backslashes. 1757# By default was `s,x,x', remove it if useless. 1758cat <<\_ACEOF >conftest.sed 1759s/[\\$]/&&/g;s/;s,x,x,$// 1760_ACEOF 1761program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 1762rm conftest.sed 1763 1764# expand $ac_aux_dir to an absolute path 1765am_aux_dir=`cd $ac_aux_dir && pwd` 1766 1767test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 1768# Use eval to expand $SHELL 1769if eval "$MISSING --run true"; then 1770 am_missing_run="$MISSING --run " 1771else 1772 am_missing_run= 1773 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 1774echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 1775fi 1776 1777if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then 1778 # We used to keeping the `.' as first argument, in order to 1779 # allow $(mkdir_p) to be used without argument. As in 1780 # $(mkdir_p) $(somedir) 1781 # where $(somedir) is conditionally defined. However this is wrong 1782 # for two reasons: 1783 # 1. if the package is installed by a user who cannot write `.' 1784 # make install will fail, 1785 # 2. the above comment should most certainly read 1786 # $(mkdir_p) $(DESTDIR)$(somedir) 1787 # so it does not work when $(somedir) is undefined and 1788 # $(DESTDIR) is not. 1789 # To support the latter case, we have to write 1790 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), 1791 # so the `.' trick is pointless. 1792 mkdir_p='mkdir -p --' 1793else 1794 # On NextStep and OpenStep, the `mkdir' command does not 1795 # recognize any option. It will interpret all options as 1796 # directories to create, and then abort because `.' already 1797 # exists. 1798 for d in ./-p ./--version; 1799 do 1800 test -d $d && rmdir $d 1801 done 1802 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. 1803 if test -f "$ac_aux_dir/mkinstalldirs"; then 1804 mkdir_p='$(mkinstalldirs)' 1805 else 1806 mkdir_p='$(install_sh) -d' 1807 fi 1808fi 1809 1810for ac_prog in gawk mawk nawk awk 1811do 1812 # Extract the first word of "$ac_prog", so it can be a program name with args. 1813set dummy $ac_prog; ac_word=$2 1814echo "$as_me:$LINENO: checking for $ac_word" >&5 1815echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1816if test "${ac_cv_prog_AWK+set}" = set; then 1817 echo $ECHO_N "(cached) $ECHO_C" >&6 1818else 1819 if test -n "$AWK"; then 1820 ac_cv_prog_AWK="$AWK" # Let the user override the test. 1821else 1822as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1823for as_dir in $PATH 1824do 1825 IFS=$as_save_IFS 1826 test -z "$as_dir" && as_dir=. 1827 for ac_exec_ext in '' $ac_executable_extensions; do 1828 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1829 ac_cv_prog_AWK="$ac_prog" 1830 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1831 break 2 1832 fi 1833done 1834done 1835 1836fi 1837fi 1838AWK=$ac_cv_prog_AWK 1839if test -n "$AWK"; then 1840 echo "$as_me:$LINENO: result: $AWK" >&5 1841echo "${ECHO_T}$AWK" >&6 1842else 1843 echo "$as_me:$LINENO: result: no" >&5 1844echo "${ECHO_T}no" >&6 1845fi 1846 1847 test -n "$AWK" && break 1848done 1849 1850echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 1851echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 1852set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` 1853if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then 1854 echo $ECHO_N "(cached) $ECHO_C" >&6 1855else 1856 cat >conftest.make <<\_ACEOF 1857all: 1858 @echo 'ac_maketemp="$(MAKE)"' 1859_ACEOF 1860# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 1861eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` 1862if test -n "$ac_maketemp"; then 1863 eval ac_cv_prog_make_${ac_make}_set=yes 1864else 1865 eval ac_cv_prog_make_${ac_make}_set=no 1866fi 1867rm -f conftest.make 1868fi 1869if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 1870 echo "$as_me:$LINENO: result: yes" >&5 1871echo "${ECHO_T}yes" >&6 1872 SET_MAKE= 1873else 1874 echo "$as_me:$LINENO: result: no" >&5 1875echo "${ECHO_T}no" >&6 1876 SET_MAKE="MAKE=${MAKE-make}" 1877fi 1878 1879rm -rf .tst 2>/dev/null 1880mkdir .tst 2>/dev/null 1881if test -d .tst; then 1882 am__leading_dot=. 1883else 1884 am__leading_dot=_ 1885fi 1886rmdir .tst 2>/dev/null 1887 1888# test to see if srcdir already configured 1889if test "`cd $srcdir && pwd`" != "`pwd`" && 1890 test -f $srcdir/config.status; then 1891 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 1892echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 1893 { (exit 1); exit 1; }; } 1894fi 1895 1896# test whether we have cygpath 1897if test -z "$CYGPATH_W"; then 1898 if (cygpath --version) >/dev/null 2>/dev/null; then 1899 CYGPATH_W='cygpath -w' 1900 else 1901 CYGPATH_W=echo 1902 fi 1903fi 1904 1905 1906# Define the identity of the package. 1907 PACKAGE='ntp' 1908 VERSION='4.2.4p5' 1909 1910 1911cat >>confdefs.h <<_ACEOF 1912#define PACKAGE "$PACKAGE" 1913_ACEOF 1914 1915 1916cat >>confdefs.h <<_ACEOF 1917#define VERSION "$VERSION" 1918_ACEOF 1919 1920# Some tools Automake needs. 1921 1922ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 1923 1924 1925AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 1926 1927 1928AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 1929 1930 1931AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 1932 1933 1934MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 1935 1936install_sh=${install_sh-"$am_aux_dir/install-sh"} 1937 1938# Installed binaries are usually stripped using `strip' when the user 1939# run `make install-strip'. However `strip' might not be the right 1940# tool to use in cross-compilation environments, therefore Automake 1941# will honor the `STRIP' environment variable to overrule this program. 1942if test "$cross_compiling" != no; then 1943 if test -n "$ac_tool_prefix"; then 1944 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 1945set dummy ${ac_tool_prefix}strip; ac_word=$2 1946echo "$as_me:$LINENO: checking for $ac_word" >&5 1947echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1948if test "${ac_cv_prog_STRIP+set}" = set; then 1949 echo $ECHO_N "(cached) $ECHO_C" >&6 1950else 1951 if test -n "$STRIP"; then 1952 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 1953else 1954as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1955for as_dir in $PATH 1956do 1957 IFS=$as_save_IFS 1958 test -z "$as_dir" && as_dir=. 1959 for ac_exec_ext in '' $ac_executable_extensions; do 1960 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1961 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 1962 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1963 break 2 1964 fi 1965done 1966done 1967 1968fi 1969fi 1970STRIP=$ac_cv_prog_STRIP 1971if test -n "$STRIP"; then 1972 echo "$as_me:$LINENO: result: $STRIP" >&5 1973echo "${ECHO_T}$STRIP" >&6 1974else 1975 echo "$as_me:$LINENO: result: no" >&5 1976echo "${ECHO_T}no" >&6 1977fi 1978 1979fi 1980if test -z "$ac_cv_prog_STRIP"; then 1981 ac_ct_STRIP=$STRIP 1982 # Extract the first word of "strip", so it can be a program name with args. 1983set dummy strip; ac_word=$2 1984echo "$as_me:$LINENO: checking for $ac_word" >&5 1985echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1986if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 1987 echo $ECHO_N "(cached) $ECHO_C" >&6 1988else 1989 if test -n "$ac_ct_STRIP"; then 1990 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 1991else 1992as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1993for as_dir in $PATH 1994do 1995 IFS=$as_save_IFS 1996 test -z "$as_dir" && as_dir=. 1997 for ac_exec_ext in '' $ac_executable_extensions; do 1998 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1999 ac_cv_prog_ac_ct_STRIP="strip" 2000 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2001 break 2 2002 fi 2003done 2004done 2005 2006 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" 2007fi 2008fi 2009ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2010if test -n "$ac_ct_STRIP"; then 2011 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 2012echo "${ECHO_T}$ac_ct_STRIP" >&6 2013else 2014 echo "$as_me:$LINENO: result: no" >&5 2015echo "${ECHO_T}no" >&6 2016fi 2017 2018 STRIP=$ac_ct_STRIP 2019else 2020 STRIP="$ac_cv_prog_STRIP" 2021fi 2022 2023fi 2024INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" 2025 2026# We need awk for the "check" target. The system "awk" is bad on 2027# some platforms. 2028# Always define AMTAR for backward compatibility. 2029 2030AMTAR=${AMTAR-"${am_missing_run}tar"} 2031 2032am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 2033 2034 2035 2036 2037 2038# Make sure we can run config.sub. 2039$ac_config_sub sun4 >/dev/null 2>&1 || 2040 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 2041echo "$as_me: error: cannot run $ac_config_sub" >&2;} 2042 { (exit 1); exit 1; }; } 2043 2044echo "$as_me:$LINENO: checking build system type" >&5 2045echo $ECHO_N "checking build system type... $ECHO_C" >&6 2046if test "${ac_cv_build+set}" = set; then 2047 echo $ECHO_N "(cached) $ECHO_C" >&6 2048else 2049 ac_cv_build_alias=$build_alias 2050test -z "$ac_cv_build_alias" && 2051 ac_cv_build_alias=`$ac_config_guess` 2052test -z "$ac_cv_build_alias" && 2053 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 2054echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 2055 { (exit 1); exit 1; }; } 2056ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || 2057 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 2058echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} 2059 { (exit 1); exit 1; }; } 2060 2061fi 2062echo "$as_me:$LINENO: result: $ac_cv_build" >&5 2063echo "${ECHO_T}$ac_cv_build" >&6 2064build=$ac_cv_build 2065build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 2066build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 2067build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 2068 2069 2070echo "$as_me:$LINENO: checking host system type" >&5 2071echo $ECHO_N "checking host system type... $ECHO_C" >&6 2072if test "${ac_cv_host+set}" = set; then 2073 echo $ECHO_N "(cached) $ECHO_C" >&6 2074else 2075 ac_cv_host_alias=$host_alias 2076test -z "$ac_cv_host_alias" && 2077 ac_cv_host_alias=$ac_cv_build_alias 2078ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || 2079 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 2080echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} 2081 { (exit 1); exit 1; }; } 2082 2083fi 2084echo "$as_me:$LINENO: result: $ac_cv_host" >&5 2085echo "${ECHO_T}$ac_cv_host" >&6 2086host=$ac_cv_host 2087host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 2088host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 2089host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 2090 2091 2092 2093cat >>confdefs.h <<_ACEOF 2094#define STR_SYSTEM "$host" 2095_ACEOF 2096 2097 ac_config_headers="$ac_config_headers config.h" 2098 2099 2100 2101ac_cv_var_atom_ok=no 2102ac_cv_var_oncore_ok=no 2103ac_cv_var_parse_ok=no 2104ac_cv_var_ripe_ncc_ok=no 2105ac_cv_var_jupiter_ok=no 2106 2107iCFLAGS="$CFLAGS" 2108 2109DEPDIR="${am__leading_dot}deps" 2110 2111 ac_config_commands="$ac_config_commands depfiles" 2112 2113 2114am_make=${MAKE-make} 2115cat > confinc << 'END' 2116am__doit: 2117 @echo done 2118.PHONY: am__doit 2119END 2120# If we don't find an include directive, just comment out the code. 2121echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 2122echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 2123am__include="#" 2124am__quote= 2125_am_result=none 2126# First try GNU make style include. 2127echo "include confinc" > confmf 2128# We grep out `Entering directory' and `Leaving directory' 2129# messages which can occur if `w' ends up in MAKEFLAGS. 2130# In particular we don't look at `^make:' because GNU make might 2131# be invoked under some other name (usually "gmake"), in which 2132# case it prints its new name instead of `make'. 2133if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 2134 am__include=include 2135 am__quote= 2136 _am_result=GNU 2137fi 2138# Now try BSD make style include. 2139if test "$am__include" = "#"; then 2140 echo '.include "confinc"' > confmf 2141 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 2142 am__include=.include 2143 am__quote="\"" 2144 _am_result=BSD 2145 fi 2146fi 2147 2148 2149echo "$as_me:$LINENO: result: $_am_result" >&5 2150echo "${ECHO_T}$_am_result" >&6 2151rm -f confinc confmf 2152 2153# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. 2154if test "${enable_dependency_tracking+set}" = set; then 2155 enableval="$enable_dependency_tracking" 2156 2157fi; 2158if test "x$enable_dependency_tracking" != xno; then 2159 am_depcomp="$ac_aux_dir/depcomp" 2160 AMDEPBACKSLASH='\' 2161fi 2162 2163 2164if test "x$enable_dependency_tracking" != xno; then 2165 AMDEP_TRUE= 2166 AMDEP_FALSE='#' 2167else 2168 AMDEP_TRUE='#' 2169 AMDEP_FALSE= 2170fi 2171 2172 2173 2174ac_ext=c 2175ac_cpp='$CPP $CPPFLAGS' 2176ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2177ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2178ac_compiler_gnu=$ac_cv_c_compiler_gnu 2179if test -n "$ac_tool_prefix"; then 2180 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2181set dummy ${ac_tool_prefix}gcc; ac_word=$2 2182echo "$as_me:$LINENO: checking for $ac_word" >&5 2183echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2184if test "${ac_cv_prog_CC+set}" = set; then 2185 echo $ECHO_N "(cached) $ECHO_C" >&6 2186else 2187 if test -n "$CC"; then 2188 ac_cv_prog_CC="$CC" # Let the user override the test. 2189else 2190as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2191for as_dir in $PATH 2192do 2193 IFS=$as_save_IFS 2194 test -z "$as_dir" && as_dir=. 2195 for ac_exec_ext in '' $ac_executable_extensions; do 2196 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2197 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2198 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2199 break 2 2200 fi 2201done 2202done 2203 2204fi 2205fi 2206CC=$ac_cv_prog_CC 2207if test -n "$CC"; then 2208 echo "$as_me:$LINENO: result: $CC" >&5 2209echo "${ECHO_T}$CC" >&6 2210else 2211 echo "$as_me:$LINENO: result: no" >&5 2212echo "${ECHO_T}no" >&6 2213fi 2214 2215fi 2216if test -z "$ac_cv_prog_CC"; then 2217 ac_ct_CC=$CC 2218 # Extract the first word of "gcc", so it can be a program name with args. 2219set dummy gcc; ac_word=$2 2220echo "$as_me:$LINENO: checking for $ac_word" >&5 2221echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2222if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2223 echo $ECHO_N "(cached) $ECHO_C" >&6 2224else 2225 if test -n "$ac_ct_CC"; then 2226 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2227else 2228as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2229for as_dir in $PATH 2230do 2231 IFS=$as_save_IFS 2232 test -z "$as_dir" && as_dir=. 2233 for ac_exec_ext in '' $ac_executable_extensions; do 2234 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2235 ac_cv_prog_ac_ct_CC="gcc" 2236 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2237 break 2 2238 fi 2239done 2240done 2241 2242fi 2243fi 2244ac_ct_CC=$ac_cv_prog_ac_ct_CC 2245if test -n "$ac_ct_CC"; then 2246 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2247echo "${ECHO_T}$ac_ct_CC" >&6 2248else 2249 echo "$as_me:$LINENO: result: no" >&5 2250echo "${ECHO_T}no" >&6 2251fi 2252 2253 CC=$ac_ct_CC 2254else 2255 CC="$ac_cv_prog_CC" 2256fi 2257 2258if test -z "$CC"; then 2259 if test -n "$ac_tool_prefix"; then 2260 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2261set dummy ${ac_tool_prefix}cc; ac_word=$2 2262echo "$as_me:$LINENO: checking for $ac_word" >&5 2263echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2264if test "${ac_cv_prog_CC+set}" = set; then 2265 echo $ECHO_N "(cached) $ECHO_C" >&6 2266else 2267 if test -n "$CC"; then 2268 ac_cv_prog_CC="$CC" # Let the user override the test. 2269else 2270as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2271for as_dir in $PATH 2272do 2273 IFS=$as_save_IFS 2274 test -z "$as_dir" && as_dir=. 2275 for ac_exec_ext in '' $ac_executable_extensions; do 2276 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2277 ac_cv_prog_CC="${ac_tool_prefix}cc" 2278 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2279 break 2 2280 fi 2281done 2282done 2283 2284fi 2285fi 2286CC=$ac_cv_prog_CC 2287if test -n "$CC"; then 2288 echo "$as_me:$LINENO: result: $CC" >&5 2289echo "${ECHO_T}$CC" >&6 2290else 2291 echo "$as_me:$LINENO: result: no" >&5 2292echo "${ECHO_T}no" >&6 2293fi 2294 2295fi 2296if test -z "$ac_cv_prog_CC"; then 2297 ac_ct_CC=$CC 2298 # Extract the first word of "cc", so it can be a program name with args. 2299set dummy cc; ac_word=$2 2300echo "$as_me:$LINENO: checking for $ac_word" >&5 2301echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2302if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2303 echo $ECHO_N "(cached) $ECHO_C" >&6 2304else 2305 if test -n "$ac_ct_CC"; then 2306 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2307else 2308as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2309for as_dir in $PATH 2310do 2311 IFS=$as_save_IFS 2312 test -z "$as_dir" && as_dir=. 2313 for ac_exec_ext in '' $ac_executable_extensions; do 2314 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2315 ac_cv_prog_ac_ct_CC="cc" 2316 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2317 break 2 2318 fi 2319done 2320done 2321 2322fi 2323fi 2324ac_ct_CC=$ac_cv_prog_ac_ct_CC 2325if test -n "$ac_ct_CC"; then 2326 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2327echo "${ECHO_T}$ac_ct_CC" >&6 2328else 2329 echo "$as_me:$LINENO: result: no" >&5 2330echo "${ECHO_T}no" >&6 2331fi 2332 2333 CC=$ac_ct_CC 2334else 2335 CC="$ac_cv_prog_CC" 2336fi 2337 2338fi 2339if test -z "$CC"; then 2340 # Extract the first word of "cc", so it can be a program name with args. 2341set dummy cc; ac_word=$2 2342echo "$as_me:$LINENO: checking for $ac_word" >&5 2343echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2344if test "${ac_cv_prog_CC+set}" = set; then 2345 echo $ECHO_N "(cached) $ECHO_C" >&6 2346else 2347 if test -n "$CC"; then 2348 ac_cv_prog_CC="$CC" # Let the user override the test. 2349else 2350 ac_prog_rejected=no 2351as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2352for as_dir in $PATH 2353do 2354 IFS=$as_save_IFS 2355 test -z "$as_dir" && as_dir=. 2356 for ac_exec_ext in '' $ac_executable_extensions; do 2357 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2358 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2359 ac_prog_rejected=yes 2360 continue 2361 fi 2362 ac_cv_prog_CC="cc" 2363 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2364 break 2 2365 fi 2366done 2367done 2368 2369if test $ac_prog_rejected = yes; then 2370 # We found a bogon in the path, so make sure we never use it. 2371 set dummy $ac_cv_prog_CC 2372 shift 2373 if test $# != 0; then 2374 # We chose a different compiler from the bogus one. 2375 # However, it has the same basename, so the bogon will be chosen 2376 # first if we set CC to just the basename; use the full file name. 2377 shift 2378 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2379 fi 2380fi 2381fi 2382fi 2383CC=$ac_cv_prog_CC 2384if test -n "$CC"; then 2385 echo "$as_me:$LINENO: result: $CC" >&5 2386echo "${ECHO_T}$CC" >&6 2387else 2388 echo "$as_me:$LINENO: result: no" >&5 2389echo "${ECHO_T}no" >&6 2390fi 2391 2392fi 2393if test -z "$CC"; then 2394 if test -n "$ac_tool_prefix"; then 2395 for ac_prog in cl 2396 do 2397 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2398set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2399echo "$as_me:$LINENO: checking for $ac_word" >&5 2400echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2401if test "${ac_cv_prog_CC+set}" = set; then 2402 echo $ECHO_N "(cached) $ECHO_C" >&6 2403else 2404 if test -n "$CC"; then 2405 ac_cv_prog_CC="$CC" # Let the user override the test. 2406else 2407as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2408for as_dir in $PATH 2409do 2410 IFS=$as_save_IFS 2411 test -z "$as_dir" && as_dir=. 2412 for ac_exec_ext in '' $ac_executable_extensions; do 2413 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2414 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2415 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2416 break 2 2417 fi 2418done 2419done 2420 2421fi 2422fi 2423CC=$ac_cv_prog_CC 2424if test -n "$CC"; then 2425 echo "$as_me:$LINENO: result: $CC" >&5 2426echo "${ECHO_T}$CC" >&6 2427else 2428 echo "$as_me:$LINENO: result: no" >&5 2429echo "${ECHO_T}no" >&6 2430fi 2431 2432 test -n "$CC" && break 2433 done 2434fi 2435if test -z "$CC"; then 2436 ac_ct_CC=$CC 2437 for ac_prog in cl 2438do 2439 # Extract the first word of "$ac_prog", so it can be a program name with args. 2440set dummy $ac_prog; ac_word=$2 2441echo "$as_me:$LINENO: checking for $ac_word" >&5 2442echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2443if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2444 echo $ECHO_N "(cached) $ECHO_C" >&6 2445else 2446 if test -n "$ac_ct_CC"; then 2447 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2448else 2449as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2450for as_dir in $PATH 2451do 2452 IFS=$as_save_IFS 2453 test -z "$as_dir" && as_dir=. 2454 for ac_exec_ext in '' $ac_executable_extensions; do 2455 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2456 ac_cv_prog_ac_ct_CC="$ac_prog" 2457 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2458 break 2 2459 fi 2460done 2461done 2462 2463fi 2464fi 2465ac_ct_CC=$ac_cv_prog_ac_ct_CC 2466if test -n "$ac_ct_CC"; then 2467 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2468echo "${ECHO_T}$ac_ct_CC" >&6 2469else 2470 echo "$as_me:$LINENO: result: no" >&5 2471echo "${ECHO_T}no" >&6 2472fi 2473 2474 test -n "$ac_ct_CC" && break 2475done 2476 2477 CC=$ac_ct_CC 2478fi 2479 2480fi 2481 2482 2483test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2484See \`config.log' for more details." >&5 2485echo "$as_me: error: no acceptable C compiler found in \$PATH 2486See \`config.log' for more details." >&2;} 2487 { (exit 1); exit 1; }; } 2488 2489# Provide some information about the compiler. 2490echo "$as_me:$LINENO:" \ 2491 "checking for C compiler version" >&5 2492ac_compiler=`set X $ac_compile; echo $2` 2493{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 2494 (eval $ac_compiler --version </dev/null >&5) 2>&5 2495 ac_status=$? 2496 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2497 (exit $ac_status); } 2498{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 2499 (eval $ac_compiler -v </dev/null >&5) 2>&5 2500 ac_status=$? 2501 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2502 (exit $ac_status); } 2503{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 2504 (eval $ac_compiler -V </dev/null >&5) 2>&5 2505 ac_status=$? 2506 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2507 (exit $ac_status); } 2508 2509cat >conftest.$ac_ext <<_ACEOF 2510/* confdefs.h. */ 2511_ACEOF 2512cat confdefs.h >>conftest.$ac_ext 2513cat >>conftest.$ac_ext <<_ACEOF 2514/* end confdefs.h. */ 2515 2516int 2517main () 2518{ 2519 2520 ; 2521 return 0; 2522} 2523_ACEOF 2524ac_clean_files_save=$ac_clean_files 2525ac_clean_files="$ac_clean_files a.out a.exe b.out" 2526# Try to create an executable without -o first, disregard a.out. 2527# It will help us diagnose broken compilers, and finding out an intuition 2528# of exeext. 2529echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2530echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 2531ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2532if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 2533 (eval $ac_link_default) 2>&5 2534 ac_status=$? 2535 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2536 (exit $ac_status); }; then 2537 # Find the output, starting from the most likely. This scheme is 2538# not robust to junk in `.', hence go to wildcards (a.*) only as a last 2539# resort. 2540 2541# Be careful to initialize this variable, since it used to be cached. 2542# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. 2543ac_cv_exeext= 2544# b.out is created by i960 compilers. 2545for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out 2546do 2547 test -f "$ac_file" || continue 2548 case $ac_file in 2549 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) 2550 ;; 2551 conftest.$ac_ext ) 2552 # This is the source file. 2553 ;; 2554 [ab].out ) 2555 # We found the default executable, but exeext='' is most 2556 # certainly right. 2557 break;; 2558 *.* ) 2559 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2560 # FIXME: I believe we export ac_cv_exeext for Libtool, 2561 # but it would be cool to find out if it's true. Does anybody 2562 # maintain Libtool? --akim. 2563 export ac_cv_exeext 2564 break;; 2565 * ) 2566 break;; 2567 esac 2568done 2569else 2570 echo "$as_me: failed program was:" >&5 2571sed 's/^/| /' conftest.$ac_ext >&5 2572 2573{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 2574See \`config.log' for more details." >&5 2575echo "$as_me: error: C compiler cannot create executables 2576See \`config.log' for more details." >&2;} 2577 { (exit 77); exit 77; }; } 2578fi 2579 2580ac_exeext=$ac_cv_exeext 2581echo "$as_me:$LINENO: result: $ac_file" >&5 2582echo "${ECHO_T}$ac_file" >&6 2583 2584# Check the compiler produces executables we can run. If not, either 2585# the compiler is broken, or we cross compile. 2586echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2587echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 2588# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2589# If not cross compiling, check that we can run a simple program. 2590if test "$cross_compiling" != yes; then 2591 if { ac_try='./$ac_file' 2592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2593 (eval $ac_try) 2>&5 2594 ac_status=$? 2595 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2596 (exit $ac_status); }; }; then 2597 cross_compiling=no 2598 else 2599 if test "$cross_compiling" = maybe; then 2600 cross_compiling=yes 2601 else 2602 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2603If you meant to cross compile, use \`--host'. 2604See \`config.log' for more details." >&5 2605echo "$as_me: error: cannot run C compiled programs. 2606If you meant to cross compile, use \`--host'. 2607See \`config.log' for more details." >&2;} 2608 { (exit 1); exit 1; }; } 2609 fi 2610 fi 2611fi 2612echo "$as_me:$LINENO: result: yes" >&5 2613echo "${ECHO_T}yes" >&6 2614 2615rm -f a.out a.exe conftest$ac_cv_exeext b.out 2616ac_clean_files=$ac_clean_files_save 2617# Check the compiler produces executables we can run. If not, either 2618# the compiler is broken, or we cross compile. 2619echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2620echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 2621echo "$as_me:$LINENO: result: $cross_compiling" >&5 2622echo "${ECHO_T}$cross_compiling" >&6 2623 2624echo "$as_me:$LINENO: checking for suffix of executables" >&5 2625echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 2626if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2627 (eval $ac_link) 2>&5 2628 ac_status=$? 2629 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2630 (exit $ac_status); }; then 2631 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2632# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2633# work properly (i.e., refer to `conftest.exe'), while it won't with 2634# `rm'. 2635for ac_file in conftest.exe conftest conftest.*; do 2636 test -f "$ac_file" || continue 2637 case $ac_file in 2638 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; 2639 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2640 export ac_cv_exeext 2641 break;; 2642 * ) break;; 2643 esac 2644done 2645else 2646 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2647See \`config.log' for more details." >&5 2648echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2649See \`config.log' for more details." >&2;} 2650 { (exit 1); exit 1; }; } 2651fi 2652 2653rm -f conftest$ac_cv_exeext 2654echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2655echo "${ECHO_T}$ac_cv_exeext" >&6 2656 2657rm -f conftest.$ac_ext 2658EXEEXT=$ac_cv_exeext 2659ac_exeext=$EXEEXT 2660echo "$as_me:$LINENO: checking for suffix of object files" >&5 2661echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 2662if test "${ac_cv_objext+set}" = set; then 2663 echo $ECHO_N "(cached) $ECHO_C" >&6 2664else 2665 cat >conftest.$ac_ext <<_ACEOF 2666/* confdefs.h. */ 2667_ACEOF 2668cat confdefs.h >>conftest.$ac_ext 2669cat >>conftest.$ac_ext <<_ACEOF 2670/* end confdefs.h. */ 2671 2672int 2673main () 2674{ 2675 2676 ; 2677 return 0; 2678} 2679_ACEOF 2680rm -f conftest.o conftest.obj 2681if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2682 (eval $ac_compile) 2>&5 2683 ac_status=$? 2684 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2685 (exit $ac_status); }; then 2686 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 2687 case $ac_file in 2688 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; 2689 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2690 break;; 2691 esac 2692done 2693else 2694 echo "$as_me: failed program was:" >&5 2695sed 's/^/| /' conftest.$ac_ext >&5 2696 2697{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2698See \`config.log' for more details." >&5 2699echo "$as_me: error: cannot compute suffix of object files: cannot compile 2700See \`config.log' for more details." >&2;} 2701 { (exit 1); exit 1; }; } 2702fi 2703 2704rm -f conftest.$ac_cv_objext conftest.$ac_ext 2705fi 2706echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2707echo "${ECHO_T}$ac_cv_objext" >&6 2708OBJEXT=$ac_cv_objext 2709ac_objext=$OBJEXT 2710echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2711echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 2712if test "${ac_cv_c_compiler_gnu+set}" = set; then 2713 echo $ECHO_N "(cached) $ECHO_C" >&6 2714else 2715 cat >conftest.$ac_ext <<_ACEOF 2716/* confdefs.h. */ 2717_ACEOF 2718cat confdefs.h >>conftest.$ac_ext 2719cat >>conftest.$ac_ext <<_ACEOF 2720/* end confdefs.h. */ 2721 2722int 2723main () 2724{ 2725#ifndef __GNUC__ 2726 choke me 2727#endif 2728 2729 ; 2730 return 0; 2731} 2732_ACEOF 2733rm -f conftest.$ac_objext 2734if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2735 (eval $ac_compile) 2>conftest.er1 2736 ac_status=$? 2737 grep -v '^ *+' conftest.er1 >conftest.err 2738 rm -f conftest.er1 2739 cat conftest.err >&5 2740 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2741 (exit $ac_status); } && 2742 { ac_try='test -z "$ac_c_werror_flag" 2743 || test ! -s conftest.err' 2744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2745 (eval $ac_try) 2>&5 2746 ac_status=$? 2747 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2748 (exit $ac_status); }; } && 2749 { ac_try='test -s conftest.$ac_objext' 2750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2751 (eval $ac_try) 2>&5 2752 ac_status=$? 2753 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2754 (exit $ac_status); }; }; then 2755 ac_compiler_gnu=yes 2756else 2757 echo "$as_me: failed program was:" >&5 2758sed 's/^/| /' conftest.$ac_ext >&5 2759 2760ac_compiler_gnu=no 2761fi 2762rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2763ac_cv_c_compiler_gnu=$ac_compiler_gnu 2764 2765fi 2766echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2767echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 2768GCC=`test $ac_compiler_gnu = yes && echo yes` 2769ac_test_CFLAGS=${CFLAGS+set} 2770ac_save_CFLAGS=$CFLAGS 2771CFLAGS="-g" 2772echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2773echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 2774if test "${ac_cv_prog_cc_g+set}" = set; then 2775 echo $ECHO_N "(cached) $ECHO_C" >&6 2776else 2777 cat >conftest.$ac_ext <<_ACEOF 2778/* confdefs.h. */ 2779_ACEOF 2780cat confdefs.h >>conftest.$ac_ext 2781cat >>conftest.$ac_ext <<_ACEOF 2782/* end confdefs.h. */ 2783 2784int 2785main () 2786{ 2787 2788 ; 2789 return 0; 2790} 2791_ACEOF 2792rm -f conftest.$ac_objext 2793if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2794 (eval $ac_compile) 2>conftest.er1 2795 ac_status=$? 2796 grep -v '^ *+' conftest.er1 >conftest.err 2797 rm -f conftest.er1 2798 cat conftest.err >&5 2799 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2800 (exit $ac_status); } && 2801 { ac_try='test -z "$ac_c_werror_flag" 2802 || test ! -s conftest.err' 2803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2804 (eval $ac_try) 2>&5 2805 ac_status=$? 2806 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2807 (exit $ac_status); }; } && 2808 { ac_try='test -s conftest.$ac_objext' 2809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2810 (eval $ac_try) 2>&5 2811 ac_status=$? 2812 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2813 (exit $ac_status); }; }; then 2814 ac_cv_prog_cc_g=yes 2815else 2816 echo "$as_me: failed program was:" >&5 2817sed 's/^/| /' conftest.$ac_ext >&5 2818 2819ac_cv_prog_cc_g=no 2820fi 2821rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2822fi 2823echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 2824echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 2825if test "$ac_test_CFLAGS" = set; then 2826 CFLAGS=$ac_save_CFLAGS 2827elif test $ac_cv_prog_cc_g = yes; then 2828 if test "$GCC" = yes; then 2829 CFLAGS="-g -O2" 2830 else 2831 CFLAGS="-g" 2832 fi 2833else 2834 if test "$GCC" = yes; then 2835 CFLAGS="-O2" 2836 else 2837 CFLAGS= 2838 fi 2839fi 2840echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 2841echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 2842if test "${ac_cv_prog_cc_stdc+set}" = set; then 2843 echo $ECHO_N "(cached) $ECHO_C" >&6 2844else 2845 ac_cv_prog_cc_stdc=no 2846ac_save_CC=$CC 2847cat >conftest.$ac_ext <<_ACEOF 2848/* confdefs.h. */ 2849_ACEOF 2850cat confdefs.h >>conftest.$ac_ext 2851cat >>conftest.$ac_ext <<_ACEOF 2852/* end confdefs.h. */ 2853#include <stdarg.h> 2854#include <stdio.h> 2855#include <sys/types.h> 2856#include <sys/stat.h> 2857/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2858struct buf { int x; }; 2859FILE * (*rcsopen) (struct buf *, struct stat *, int); 2860static char *e (p, i) 2861 char **p; 2862 int i; 2863{ 2864 return p[i]; 2865} 2866static char *f (char * (*g) (char **, int), char **p, ...) 2867{ 2868 char *s; 2869 va_list v; 2870 va_start (v,p); 2871 s = g (p, va_arg (v,int)); 2872 va_end (v); 2873 return s; 2874} 2875 2876/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2877 function prototypes and stuff, but not '\xHH' hex character constants. 2878 These don't provoke an error unfortunately, instead are silently treated 2879 as 'x'. The following induces an error, until -std1 is added to get 2880 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 2881 array size at least. It's necessary to write '\x00'==0 to get something 2882 that's true only with -std1. */ 2883int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 2884 2885int test (int i, double x); 2886struct s1 {int (*f) (int a);}; 2887struct s2 {int (*f) (double a);}; 2888int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2889int argc; 2890char **argv; 2891int 2892main () 2893{ 2894return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2895 ; 2896 return 0; 2897} 2898_ACEOF 2899# Don't try gcc -ansi; that turns off useful extensions and 2900# breaks some systems' header files. 2901# AIX -qlanglvl=ansi 2902# Ultrix and OSF/1 -std1 2903# HP-UX 10.20 and later -Ae 2904# HP-UX older versions -Aa -D_HPUX_SOURCE 2905# SVR4 -Xc -D__EXTENSIONS__ 2906for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2907do 2908 CC="$ac_save_CC $ac_arg" 2909 rm -f conftest.$ac_objext 2910if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2911 (eval $ac_compile) 2>conftest.er1 2912 ac_status=$? 2913 grep -v '^ *+' conftest.er1 >conftest.err 2914 rm -f conftest.er1 2915 cat conftest.err >&5 2916 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2917 (exit $ac_status); } && 2918 { ac_try='test -z "$ac_c_werror_flag" 2919 || test ! -s conftest.err' 2920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2921 (eval $ac_try) 2>&5 2922 ac_status=$? 2923 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2924 (exit $ac_status); }; } && 2925 { ac_try='test -s conftest.$ac_objext' 2926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2927 (eval $ac_try) 2>&5 2928 ac_status=$? 2929 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2930 (exit $ac_status); }; }; then 2931 ac_cv_prog_cc_stdc=$ac_arg 2932break 2933else 2934 echo "$as_me: failed program was:" >&5 2935sed 's/^/| /' conftest.$ac_ext >&5 2936 2937fi 2938rm -f conftest.err conftest.$ac_objext 2939done 2940rm -f conftest.$ac_ext conftest.$ac_objext 2941CC=$ac_save_CC 2942 2943fi 2944 2945case "x$ac_cv_prog_cc_stdc" in 2946 x|xno) 2947 echo "$as_me:$LINENO: result: none needed" >&5 2948echo "${ECHO_T}none needed" >&6 ;; 2949 *) 2950 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 2951echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 2952 CC="$CC $ac_cv_prog_cc_stdc" ;; 2953esac 2954 2955# Some people use a C++ compiler to compile C. Since we use `exit', 2956# in C++ we need to declare it. In case someone uses the same compiler 2957# for both compiling C and C++ we need to have the C++ compiler decide 2958# the declaration of exit, since it's the most demanding environment. 2959cat >conftest.$ac_ext <<_ACEOF 2960#ifndef __cplusplus 2961 choke me 2962#endif 2963_ACEOF 2964rm -f conftest.$ac_objext 2965if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2966 (eval $ac_compile) 2>conftest.er1 2967 ac_status=$? 2968 grep -v '^ *+' conftest.er1 >conftest.err 2969 rm -f conftest.er1 2970 cat conftest.err >&5 2971 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2972 (exit $ac_status); } && 2973 { ac_try='test -z "$ac_c_werror_flag" 2974 || test ! -s conftest.err' 2975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2976 (eval $ac_try) 2>&5 2977 ac_status=$? 2978 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2979 (exit $ac_status); }; } && 2980 { ac_try='test -s conftest.$ac_objext' 2981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2982 (eval $ac_try) 2>&5 2983 ac_status=$? 2984 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2985 (exit $ac_status); }; }; then 2986 for ac_declaration in \ 2987 '' \ 2988 'extern "C" void std::exit (int) throw (); using std::exit;' \ 2989 'extern "C" void std::exit (int); using std::exit;' \ 2990 'extern "C" void exit (int) throw ();' \ 2991 'extern "C" void exit (int);' \ 2992 'void exit (int);' 2993do 2994 cat >conftest.$ac_ext <<_ACEOF 2995/* confdefs.h. */ 2996_ACEOF 2997cat confdefs.h >>conftest.$ac_ext 2998cat >>conftest.$ac_ext <<_ACEOF 2999/* end confdefs.h. */ 3000$ac_declaration 3001#include <stdlib.h> 3002int 3003main () 3004{ 3005exit (42); 3006 ; 3007 return 0; 3008} 3009_ACEOF 3010rm -f conftest.$ac_objext 3011if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3012 (eval $ac_compile) 2>conftest.er1 3013 ac_status=$? 3014 grep -v '^ *+' conftest.er1 >conftest.err 3015 rm -f conftest.er1 3016 cat conftest.err >&5 3017 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3018 (exit $ac_status); } && 3019 { ac_try='test -z "$ac_c_werror_flag" 3020 || test ! -s conftest.err' 3021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3022 (eval $ac_try) 2>&5 3023 ac_status=$? 3024 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3025 (exit $ac_status); }; } && 3026 { ac_try='test -s conftest.$ac_objext' 3027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3028 (eval $ac_try) 2>&5 3029 ac_status=$? 3030 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3031 (exit $ac_status); }; }; then 3032 : 3033else 3034 echo "$as_me: failed program was:" >&5 3035sed 's/^/| /' conftest.$ac_ext >&5 3036 3037continue 3038fi 3039rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3040 cat >conftest.$ac_ext <<_ACEOF 3041/* confdefs.h. */ 3042_ACEOF 3043cat confdefs.h >>conftest.$ac_ext 3044cat >>conftest.$ac_ext <<_ACEOF 3045/* end confdefs.h. */ 3046$ac_declaration 3047int 3048main () 3049{ 3050exit (42); 3051 ; 3052 return 0; 3053} 3054_ACEOF 3055rm -f conftest.$ac_objext 3056if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3057 (eval $ac_compile) 2>conftest.er1 3058 ac_status=$? 3059 grep -v '^ *+' conftest.er1 >conftest.err 3060 rm -f conftest.er1 3061 cat conftest.err >&5 3062 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3063 (exit $ac_status); } && 3064 { ac_try='test -z "$ac_c_werror_flag" 3065 || test ! -s conftest.err' 3066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3067 (eval $ac_try) 2>&5 3068 ac_status=$? 3069 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3070 (exit $ac_status); }; } && 3071 { ac_try='test -s conftest.$ac_objext' 3072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3073 (eval $ac_try) 2>&5 3074 ac_status=$? 3075 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3076 (exit $ac_status); }; }; then 3077 break 3078else 3079 echo "$as_me: failed program was:" >&5 3080sed 's/^/| /' conftest.$ac_ext >&5 3081 3082fi 3083rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3084done 3085rm -f conftest* 3086if test -n "$ac_declaration"; then 3087 echo '#ifdef __cplusplus' >>confdefs.h 3088 echo $ac_declaration >>confdefs.h 3089 echo '#endif' >>confdefs.h 3090fi 3091 3092else 3093 echo "$as_me: failed program was:" >&5 3094sed 's/^/| /' conftest.$ac_ext >&5 3095 3096fi 3097rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3098ac_ext=c 3099ac_cpp='$CPP $CPPFLAGS' 3100ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3101ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3102ac_compiler_gnu=$ac_cv_c_compiler_gnu 3103 3104depcc="$CC" am_compiler_list= 3105 3106echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 3107echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 3108if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 3109 echo $ECHO_N "(cached) $ECHO_C" >&6 3110else 3111 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3112 # We make a subdir and do the tests there. Otherwise we can end up 3113 # making bogus files that we don't know about and never remove. For 3114 # instance it was reported that on HP-UX the gcc test will end up 3115 # making a dummy file named `D' -- because `-MD' means `put the output 3116 # in D'. 3117 mkdir conftest.dir 3118 # Copy depcomp to subdir because otherwise we won't find it if we're 3119 # using a relative directory. 3120 cp "$am_depcomp" conftest.dir 3121 cd conftest.dir 3122 # We will build objects and dependencies in a subdirectory because 3123 # it helps to detect inapplicable dependency modes. For instance 3124 # both Tru64's cc and ICC support -MD to output dependencies as a 3125 # side effect of compilation, but ICC will put the dependencies in 3126 # the current directory while Tru64 will put them in the object 3127 # directory. 3128 mkdir sub 3129 3130 am_cv_CC_dependencies_compiler_type=none 3131 if test "$am_compiler_list" = ""; then 3132 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3133 fi 3134 for depmode in $am_compiler_list; do 3135 # Setup a source with many dependencies, because some compilers 3136 # like to wrap large dependency lists on column 80 (with \), and 3137 # we should not choose a depcomp mode which is confused by this. 3138 # 3139 # We need to recreate these files for each test, as the compiler may 3140 # overwrite some of them when testing with obscure command lines. 3141 # This happens at least with the AIX C compiler. 3142 : > sub/conftest.c 3143 for i in 1 2 3 4 5 6; do 3144 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3145 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3146 # Solaris 8's {/usr,}/bin/sh. 3147 touch sub/conftst$i.h 3148 done 3149 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3150 3151 case $depmode in 3152 nosideeffect) 3153 # after this tag, mechanisms are not by side-effect, so they'll 3154 # only be used when explicitly requested 3155 if test "x$enable_dependency_tracking" = xyes; then 3156 continue 3157 else 3158 break 3159 fi 3160 ;; 3161 none) break ;; 3162 esac 3163 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3164 # mode. It turns out that the SunPro C++ compiler does not properly 3165 # handle `-M -o', and we need to detect this. 3166 if depmode=$depmode \ 3167 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 3168 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3169 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 3170 >/dev/null 2>conftest.err && 3171 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3172 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 3173 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3174 # icc doesn't choke on unknown options, it will just issue warnings 3175 # or remarks (even with -Werror). So we grep stderr for any message 3176 # that says an option was ignored or not supported. 3177 # When given -MP, icc 7.0 and 7.1 complain thusly: 3178 # icc: Command line warning: ignoring option '-M'; no argument required 3179 # The diagnosis changed in icc 8.0: 3180 # icc: Command line remark: option '-MP' not supported 3181 if (grep 'ignoring option' conftest.err || 3182 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3183 am_cv_CC_dependencies_compiler_type=$depmode 3184 break 3185 fi 3186 fi 3187 done 3188 3189 cd .. 3190 rm -rf conftest.dir 3191else 3192 am_cv_CC_dependencies_compiler_type=none 3193fi 3194 3195fi 3196echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 3197echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 3198CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3199 3200 3201 3202if 3203 test "x$enable_dependency_tracking" != xno \ 3204 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3205 am__fastdepCC_TRUE= 3206 am__fastdepCC_FALSE='#' 3207else 3208 am__fastdepCC_TRUE='#' 3209 am__fastdepCC_FALSE= 3210fi 3211 3212 3213 3214ac_ext=c 3215ac_cpp='$CPP $CPPFLAGS' 3216ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3217ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3218ac_compiler_gnu=$ac_cv_c_compiler_gnu 3219echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 3220echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 3221# On Suns, sometimes $CPP names a directory. 3222if test -n "$CPP" && test -d "$CPP"; then 3223 CPP= 3224fi 3225if test -z "$CPP"; then 3226 if test "${ac_cv_prog_CPP+set}" = set; then 3227 echo $ECHO_N "(cached) $ECHO_C" >&6 3228else 3229 # Double quotes because CPP needs to be expanded 3230 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3231 do 3232 ac_preproc_ok=false 3233for ac_c_preproc_warn_flag in '' yes 3234do 3235 # Use a header file that comes with gcc, so configuring glibc 3236 # with a fresh cross-compiler works. 3237 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3238 # <limits.h> exists even on freestanding compilers. 3239 # On the NeXT, cc -E runs the code through the compiler's parser, 3240 # not just through cpp. "Syntax error" is here to catch this case. 3241 cat >conftest.$ac_ext <<_ACEOF 3242/* confdefs.h. */ 3243_ACEOF 3244cat confdefs.h >>conftest.$ac_ext 3245cat >>conftest.$ac_ext <<_ACEOF 3246/* end confdefs.h. */ 3247#ifdef __STDC__ 3248# include <limits.h> 3249#else 3250# include <assert.h> 3251#endif 3252 Syntax error 3253_ACEOF 3254if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3255 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3256 ac_status=$? 3257 grep -v '^ *+' conftest.er1 >conftest.err 3258 rm -f conftest.er1 3259 cat conftest.err >&5 3260 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3261 (exit $ac_status); } >/dev/null; then 3262 if test -s conftest.err; then 3263 ac_cpp_err=$ac_c_preproc_warn_flag 3264 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3265 else 3266 ac_cpp_err= 3267 fi 3268else 3269 ac_cpp_err=yes 3270fi 3271if test -z "$ac_cpp_err"; then 3272 : 3273else 3274 echo "$as_me: failed program was:" >&5 3275sed 's/^/| /' conftest.$ac_ext >&5 3276 3277 # Broken: fails on valid input. 3278continue 3279fi 3280rm -f conftest.err conftest.$ac_ext 3281 3282 # OK, works on sane cases. Now check whether non-existent headers 3283 # can be detected and how. 3284 cat >conftest.$ac_ext <<_ACEOF 3285/* confdefs.h. */ 3286_ACEOF 3287cat confdefs.h >>conftest.$ac_ext 3288cat >>conftest.$ac_ext <<_ACEOF 3289/* end confdefs.h. */ 3290#include <ac_nonexistent.h> 3291_ACEOF 3292if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3293 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3294 ac_status=$? 3295 grep -v '^ *+' conftest.er1 >conftest.err 3296 rm -f conftest.er1 3297 cat conftest.err >&5 3298 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3299 (exit $ac_status); } >/dev/null; then 3300 if test -s conftest.err; then 3301 ac_cpp_err=$ac_c_preproc_warn_flag 3302 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3303 else 3304 ac_cpp_err= 3305 fi 3306else 3307 ac_cpp_err=yes 3308fi 3309if test -z "$ac_cpp_err"; then 3310 # Broken: success on invalid input. 3311continue 3312else 3313 echo "$as_me: failed program was:" >&5 3314sed 's/^/| /' conftest.$ac_ext >&5 3315 3316 # Passes both tests. 3317ac_preproc_ok=: 3318break 3319fi 3320rm -f conftest.err conftest.$ac_ext 3321 3322done 3323# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3324rm -f conftest.err conftest.$ac_ext 3325if $ac_preproc_ok; then 3326 break 3327fi 3328 3329 done 3330 ac_cv_prog_CPP=$CPP 3331 3332fi 3333 CPP=$ac_cv_prog_CPP 3334else 3335 ac_cv_prog_CPP=$CPP 3336fi 3337echo "$as_me:$LINENO: result: $CPP" >&5 3338echo "${ECHO_T}$CPP" >&6 3339ac_preproc_ok=false 3340for ac_c_preproc_warn_flag in '' yes 3341do 3342 # Use a header file that comes with gcc, so configuring glibc 3343 # with a fresh cross-compiler works. 3344 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3345 # <limits.h> exists even on freestanding compilers. 3346 # On the NeXT, cc -E runs the code through the compiler's parser, 3347 # not just through cpp. "Syntax error" is here to catch this case. 3348 cat >conftest.$ac_ext <<_ACEOF 3349/* confdefs.h. */ 3350_ACEOF 3351cat confdefs.h >>conftest.$ac_ext 3352cat >>conftest.$ac_ext <<_ACEOF 3353/* end confdefs.h. */ 3354#ifdef __STDC__ 3355# include <limits.h> 3356#else 3357# include <assert.h> 3358#endif 3359 Syntax error 3360_ACEOF 3361if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3362 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3363 ac_status=$? 3364 grep -v '^ *+' conftest.er1 >conftest.err 3365 rm -f conftest.er1 3366 cat conftest.err >&5 3367 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3368 (exit $ac_status); } >/dev/null; then 3369 if test -s conftest.err; then 3370 ac_cpp_err=$ac_c_preproc_warn_flag 3371 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3372 else 3373 ac_cpp_err= 3374 fi 3375else 3376 ac_cpp_err=yes 3377fi 3378if test -z "$ac_cpp_err"; then 3379 : 3380else 3381 echo "$as_me: failed program was:" >&5 3382sed 's/^/| /' conftest.$ac_ext >&5 3383 3384 # Broken: fails on valid input. 3385continue 3386fi 3387rm -f conftest.err conftest.$ac_ext 3388 3389 # OK, works on sane cases. Now check whether non-existent headers 3390 # can be detected and how. 3391 cat >conftest.$ac_ext <<_ACEOF 3392/* confdefs.h. */ 3393_ACEOF 3394cat confdefs.h >>conftest.$ac_ext 3395cat >>conftest.$ac_ext <<_ACEOF 3396/* end confdefs.h. */ 3397#include <ac_nonexistent.h> 3398_ACEOF 3399if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3400 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3401 ac_status=$? 3402 grep -v '^ *+' conftest.er1 >conftest.err 3403 rm -f conftest.er1 3404 cat conftest.err >&5 3405 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3406 (exit $ac_status); } >/dev/null; then 3407 if test -s conftest.err; then 3408 ac_cpp_err=$ac_c_preproc_warn_flag 3409 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3410 else 3411 ac_cpp_err= 3412 fi 3413else 3414 ac_cpp_err=yes 3415fi 3416if test -z "$ac_cpp_err"; then 3417 # Broken: success on invalid input. 3418continue 3419else 3420 echo "$as_me: failed program was:" >&5 3421sed 's/^/| /' conftest.$ac_ext >&5 3422 3423 # Passes both tests. 3424ac_preproc_ok=: 3425break 3426fi 3427rm -f conftest.err conftest.$ac_ext 3428 3429done 3430# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3431rm -f conftest.err conftest.$ac_ext 3432if $ac_preproc_ok; then 3433 : 3434else 3435 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 3436See \`config.log' for more details." >&5 3437echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 3438See \`config.log' for more details." >&2;} 3439 { (exit 1); exit 1; }; } 3440fi 3441 3442ac_ext=c 3443ac_cpp='$CPP $CPPFLAGS' 3444ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3445ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3446ac_compiler_gnu=$ac_cv_c_compiler_gnu 3447 3448 3449echo "$as_me:$LINENO: checking for egrep" >&5 3450echo $ECHO_N "checking for egrep... $ECHO_C" >&6 3451if test "${ac_cv_prog_egrep+set}" = set; then 3452 echo $ECHO_N "(cached) $ECHO_C" >&6 3453else 3454 if echo a | (grep -E '(a|b)') >/dev/null 2>&1 3455 then ac_cv_prog_egrep='grep -E' 3456 else ac_cv_prog_egrep='egrep' 3457 fi 3458fi 3459echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 3460echo "${ECHO_T}$ac_cv_prog_egrep" >&6 3461 EGREP=$ac_cv_prog_egrep 3462 3463 3464 3465echo "$as_me:$LINENO: checking for AIX" >&5 3466echo $ECHO_N "checking for AIX... $ECHO_C" >&6 3467cat >conftest.$ac_ext <<_ACEOF 3468/* confdefs.h. */ 3469_ACEOF 3470cat confdefs.h >>conftest.$ac_ext 3471cat >>conftest.$ac_ext <<_ACEOF 3472/* end confdefs.h. */ 3473#ifdef _AIX 3474 yes 3475#endif 3476 3477_ACEOF 3478if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3479 $EGREP "yes" >/dev/null 2>&1; then 3480 echo "$as_me:$LINENO: result: yes" >&5 3481echo "${ECHO_T}yes" >&6 3482cat >>confdefs.h <<\_ACEOF 3483#define _ALL_SOURCE 1 3484_ACEOF 3485 3486else 3487 echo "$as_me:$LINENO: result: no" >&5 3488echo "${ECHO_T}no" >&6 3489fi 3490rm -f conftest* 3491 3492 3493echo "$as_me:$LINENO: checking for ANSI C header files" >&5 3494echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 3495if test "${ac_cv_header_stdc+set}" = set; then 3496 echo $ECHO_N "(cached) $ECHO_C" >&6 3497else 3498 cat >conftest.$ac_ext <<_ACEOF 3499/* confdefs.h. */ 3500_ACEOF 3501cat confdefs.h >>conftest.$ac_ext 3502cat >>conftest.$ac_ext <<_ACEOF 3503/* end confdefs.h. */ 3504#include <stdlib.h> 3505#include <stdarg.h> 3506#include <string.h> 3507#include <float.h> 3508 3509int 3510main () 3511{ 3512 3513 ; 3514 return 0; 3515} 3516_ACEOF 3517rm -f conftest.$ac_objext 3518if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3519 (eval $ac_compile) 2>conftest.er1 3520 ac_status=$? 3521 grep -v '^ *+' conftest.er1 >conftest.err 3522 rm -f conftest.er1 3523 cat conftest.err >&5 3524 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3525 (exit $ac_status); } && 3526 { ac_try='test -z "$ac_c_werror_flag" 3527 || test ! -s conftest.err' 3528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3529 (eval $ac_try) 2>&5 3530 ac_status=$? 3531 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3532 (exit $ac_status); }; } && 3533 { ac_try='test -s conftest.$ac_objext' 3534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3535 (eval $ac_try) 2>&5 3536 ac_status=$? 3537 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3538 (exit $ac_status); }; }; then 3539 ac_cv_header_stdc=yes 3540else 3541 echo "$as_me: failed program was:" >&5 3542sed 's/^/| /' conftest.$ac_ext >&5 3543 3544ac_cv_header_stdc=no 3545fi 3546rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3547 3548if test $ac_cv_header_stdc = yes; then 3549 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3550 cat >conftest.$ac_ext <<_ACEOF 3551/* confdefs.h. */ 3552_ACEOF 3553cat confdefs.h >>conftest.$ac_ext 3554cat >>conftest.$ac_ext <<_ACEOF 3555/* end confdefs.h. */ 3556#include <string.h> 3557 3558_ACEOF 3559if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3560 $EGREP "memchr" >/dev/null 2>&1; then 3561 : 3562else 3563 ac_cv_header_stdc=no 3564fi 3565rm -f conftest* 3566 3567fi 3568 3569if test $ac_cv_header_stdc = yes; then 3570 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3571 cat >conftest.$ac_ext <<_ACEOF 3572/* confdefs.h. */ 3573_ACEOF 3574cat confdefs.h >>conftest.$ac_ext 3575cat >>conftest.$ac_ext <<_ACEOF 3576/* end confdefs.h. */ 3577#include <stdlib.h> 3578 3579_ACEOF 3580if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3581 $EGREP "free" >/dev/null 2>&1; then 3582 : 3583else 3584 ac_cv_header_stdc=no 3585fi 3586rm -f conftest* 3587 3588fi 3589 3590if test $ac_cv_header_stdc = yes; then 3591 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3592 if test "$cross_compiling" = yes; then 3593 : 3594else 3595 cat >conftest.$ac_ext <<_ACEOF 3596/* confdefs.h. */ 3597_ACEOF 3598cat confdefs.h >>conftest.$ac_ext 3599cat >>conftest.$ac_ext <<_ACEOF 3600/* end confdefs.h. */ 3601#include <ctype.h> 3602#if ((' ' & 0x0FF) == 0x020) 3603# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3604# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3605#else 3606# define ISLOWER(c) \ 3607 (('a' <= (c) && (c) <= 'i') \ 3608 || ('j' <= (c) && (c) <= 'r') \ 3609 || ('s' <= (c) && (c) <= 'z')) 3610# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3611#endif 3612 3613#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3614int 3615main () 3616{ 3617 int i; 3618 for (i = 0; i < 256; i++) 3619 if (XOR (islower (i), ISLOWER (i)) 3620 || toupper (i) != TOUPPER (i)) 3621 exit(2); 3622 exit (0); 3623} 3624_ACEOF 3625rm -f conftest$ac_exeext 3626if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3627 (eval $ac_link) 2>&5 3628 ac_status=$? 3629 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3630 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 3631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3632 (eval $ac_try) 2>&5 3633 ac_status=$? 3634 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3635 (exit $ac_status); }; }; then 3636 : 3637else 3638 echo "$as_me: program exited with status $ac_status" >&5 3639echo "$as_me: failed program was:" >&5 3640sed 's/^/| /' conftest.$ac_ext >&5 3641 3642( exit $ac_status ) 3643ac_cv_header_stdc=no 3644fi 3645rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 3646fi 3647fi 3648fi 3649echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 3650echo "${ECHO_T}$ac_cv_header_stdc" >&6 3651if test $ac_cv_header_stdc = yes; then 3652 3653cat >>confdefs.h <<\_ACEOF 3654#define STDC_HEADERS 1 3655_ACEOF 3656 3657fi 3658 3659# On IRIX 5.3, sys/types and inttypes.h are conflicting. 3660 3661 3662 3663 3664 3665 3666 3667 3668 3669for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3670 inttypes.h stdint.h unistd.h 3671do 3672as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 3673echo "$as_me:$LINENO: checking for $ac_header" >&5 3674echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3675if eval "test \"\${$as_ac_Header+set}\" = set"; then 3676 echo $ECHO_N "(cached) $ECHO_C" >&6 3677else 3678 cat >conftest.$ac_ext <<_ACEOF 3679/* confdefs.h. */ 3680_ACEOF 3681cat confdefs.h >>conftest.$ac_ext 3682cat >>conftest.$ac_ext <<_ACEOF 3683/* end confdefs.h. */ 3684$ac_includes_default 3685 3686#include <$ac_header> 3687_ACEOF 3688rm -f conftest.$ac_objext 3689if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3690 (eval $ac_compile) 2>conftest.er1 3691 ac_status=$? 3692 grep -v '^ *+' conftest.er1 >conftest.err 3693 rm -f conftest.er1 3694 cat conftest.err >&5 3695 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3696 (exit $ac_status); } && 3697 { ac_try='test -z "$ac_c_werror_flag" 3698 || test ! -s conftest.err' 3699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3700 (eval $ac_try) 2>&5 3701 ac_status=$? 3702 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3703 (exit $ac_status); }; } && 3704 { ac_try='test -s conftest.$ac_objext' 3705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3706 (eval $ac_try) 2>&5 3707 ac_status=$? 3708 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3709 (exit $ac_status); }; }; then 3710 eval "$as_ac_Header=yes" 3711else 3712 echo "$as_me: failed program was:" >&5 3713sed 's/^/| /' conftest.$ac_ext >&5 3714 3715eval "$as_ac_Header=no" 3716fi 3717rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3718fi 3719echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 3720echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 3721if test `eval echo '${'$as_ac_Header'}'` = yes; then 3722 cat >>confdefs.h <<_ACEOF 3723#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 3724_ACEOF 3725 3726fi 3727 3728done 3729 3730 3731if test "${ac_cv_header_minix_config_h+set}" = set; then 3732 echo "$as_me:$LINENO: checking for minix/config.h" >&5 3733echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6 3734if test "${ac_cv_header_minix_config_h+set}" = set; then 3735 echo $ECHO_N "(cached) $ECHO_C" >&6 3736fi 3737echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5 3738echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6 3739else 3740 # Is the header compilable? 3741echo "$as_me:$LINENO: checking minix/config.h usability" >&5 3742echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6 3743cat >conftest.$ac_ext <<_ACEOF 3744/* confdefs.h. */ 3745_ACEOF 3746cat confdefs.h >>conftest.$ac_ext 3747cat >>conftest.$ac_ext <<_ACEOF 3748/* end confdefs.h. */ 3749$ac_includes_default 3750#include <minix/config.h> 3751_ACEOF 3752rm -f conftest.$ac_objext 3753if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3754 (eval $ac_compile) 2>conftest.er1 3755 ac_status=$? 3756 grep -v '^ *+' conftest.er1 >conftest.err 3757 rm -f conftest.er1 3758 cat conftest.err >&5 3759 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3760 (exit $ac_status); } && 3761 { ac_try='test -z "$ac_c_werror_flag" 3762 || test ! -s conftest.err' 3763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3764 (eval $ac_try) 2>&5 3765 ac_status=$? 3766 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3767 (exit $ac_status); }; } && 3768 { ac_try='test -s conftest.$ac_objext' 3769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3770 (eval $ac_try) 2>&5 3771 ac_status=$? 3772 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3773 (exit $ac_status); }; }; then 3774 ac_header_compiler=yes 3775else 3776 echo "$as_me: failed program was:" >&5 3777sed 's/^/| /' conftest.$ac_ext >&5 3778 3779ac_header_compiler=no 3780fi 3781rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3782echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 3783echo "${ECHO_T}$ac_header_compiler" >&6 3784 3785# Is the header present? 3786echo "$as_me:$LINENO: checking minix/config.h presence" >&5 3787echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6 3788cat >conftest.$ac_ext <<_ACEOF 3789/* confdefs.h. */ 3790_ACEOF 3791cat confdefs.h >>conftest.$ac_ext 3792cat >>conftest.$ac_ext <<_ACEOF 3793/* end confdefs.h. */ 3794#include <minix/config.h> 3795_ACEOF 3796if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3797 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3798 ac_status=$? 3799 grep -v '^ *+' conftest.er1 >conftest.err 3800 rm -f conftest.er1 3801 cat conftest.err >&5 3802 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3803 (exit $ac_status); } >/dev/null; then 3804 if test -s conftest.err; then 3805 ac_cpp_err=$ac_c_preproc_warn_flag 3806 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3807 else 3808 ac_cpp_err= 3809 fi 3810else 3811 ac_cpp_err=yes 3812fi 3813if test -z "$ac_cpp_err"; then 3814 ac_header_preproc=yes 3815else 3816 echo "$as_me: failed program was:" >&5 3817sed 's/^/| /' conftest.$ac_ext >&5 3818 3819 ac_header_preproc=no 3820fi 3821rm -f conftest.err conftest.$ac_ext 3822echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 3823echo "${ECHO_T}$ac_header_preproc" >&6 3824 3825# So? What about this header? 3826case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 3827 yes:no: ) 3828 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5 3829echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 3830 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5 3831echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;} 3832 ac_header_preproc=yes 3833 ;; 3834 no:yes:* ) 3835 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5 3836echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;} 3837 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5 3838echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;} 3839 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5 3840echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;} 3841 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5 3842echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;} 3843 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5 3844echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;} 3845 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5 3846echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;} 3847 ( 3848 cat <<\_ASBOX 3849## ------------------------------ ## 3850## Report this to the ntp lists. ## 3851## ------------------------------ ## 3852_ASBOX 3853 ) | 3854 sed "s/^/$as_me: WARNING: /" >&2 3855 ;; 3856esac 3857echo "$as_me:$LINENO: checking for minix/config.h" >&5 3858echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6 3859if test "${ac_cv_header_minix_config_h+set}" = set; then 3860 echo $ECHO_N "(cached) $ECHO_C" >&6 3861else 3862 ac_cv_header_minix_config_h=$ac_header_preproc 3863fi 3864echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5 3865echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6 3866 3867fi 3868if test $ac_cv_header_minix_config_h = yes; then 3869 MINIX=yes 3870else 3871 MINIX= 3872fi 3873 3874 3875if test "$MINIX" = yes; then 3876 3877cat >>confdefs.h <<\_ACEOF 3878#define _POSIX_SOURCE 1 3879_ACEOF 3880 3881 3882cat >>confdefs.h <<\_ACEOF 3883#define _POSIX_1_SOURCE 2 3884_ACEOF 3885 3886 3887cat >>confdefs.h <<\_ACEOF 3888#define _MINIX 1 3889_ACEOF 3890 3891fi 3892 3893 3894ac_ext=c 3895ac_cpp='$CPP $CPPFLAGS' 3896ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3897ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3898ac_compiler_gnu=$ac_cv_c_compiler_gnu 3899if test -n "$ac_tool_prefix"; then 3900 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3901set dummy ${ac_tool_prefix}gcc; ac_word=$2 3902echo "$as_me:$LINENO: checking for $ac_word" >&5 3903echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3904if test "${ac_cv_prog_CC+set}" = set; then 3905 echo $ECHO_N "(cached) $ECHO_C" >&6 3906else 3907 if test -n "$CC"; then 3908 ac_cv_prog_CC="$CC" # Let the user override the test. 3909else 3910as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3911for as_dir in $PATH 3912do 3913 IFS=$as_save_IFS 3914 test -z "$as_dir" && as_dir=. 3915 for ac_exec_ext in '' $ac_executable_extensions; do 3916 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3917 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3918 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3919 break 2 3920 fi 3921done 3922done 3923 3924fi 3925fi 3926CC=$ac_cv_prog_CC 3927if test -n "$CC"; then 3928 echo "$as_me:$LINENO: result: $CC" >&5 3929echo "${ECHO_T}$CC" >&6 3930else 3931 echo "$as_me:$LINENO: result: no" >&5 3932echo "${ECHO_T}no" >&6 3933fi 3934 3935fi 3936if test -z "$ac_cv_prog_CC"; then 3937 ac_ct_CC=$CC 3938 # Extract the first word of "gcc", so it can be a program name with args. 3939set dummy gcc; ac_word=$2 3940echo "$as_me:$LINENO: checking for $ac_word" >&5 3941echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3942if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 3943 echo $ECHO_N "(cached) $ECHO_C" >&6 3944else 3945 if test -n "$ac_ct_CC"; then 3946 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3947else 3948as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3949for as_dir in $PATH 3950do 3951 IFS=$as_save_IFS 3952 test -z "$as_dir" && as_dir=. 3953 for ac_exec_ext in '' $ac_executable_extensions; do 3954 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3955 ac_cv_prog_ac_ct_CC="gcc" 3956 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3957 break 2 3958 fi 3959done 3960done 3961 3962fi 3963fi 3964ac_ct_CC=$ac_cv_prog_ac_ct_CC 3965if test -n "$ac_ct_CC"; then 3966 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 3967echo "${ECHO_T}$ac_ct_CC" >&6 3968else 3969 echo "$as_me:$LINENO: result: no" >&5 3970echo "${ECHO_T}no" >&6 3971fi 3972 3973 CC=$ac_ct_CC 3974else 3975 CC="$ac_cv_prog_CC" 3976fi 3977 3978if test -z "$CC"; then 3979 if test -n "$ac_tool_prefix"; then 3980 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3981set dummy ${ac_tool_prefix}cc; ac_word=$2 3982echo "$as_me:$LINENO: checking for $ac_word" >&5 3983echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3984if test "${ac_cv_prog_CC+set}" = set; then 3985 echo $ECHO_N "(cached) $ECHO_C" >&6 3986else 3987 if test -n "$CC"; then 3988 ac_cv_prog_CC="$CC" # Let the user override the test. 3989else 3990as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3991for as_dir in $PATH 3992do 3993 IFS=$as_save_IFS 3994 test -z "$as_dir" && as_dir=. 3995 for ac_exec_ext in '' $ac_executable_extensions; do 3996 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3997 ac_cv_prog_CC="${ac_tool_prefix}cc" 3998 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3999 break 2 4000 fi 4001done 4002done 4003 4004fi 4005fi 4006CC=$ac_cv_prog_CC 4007if test -n "$CC"; then 4008 echo "$as_me:$LINENO: result: $CC" >&5 4009echo "${ECHO_T}$CC" >&6 4010else 4011 echo "$as_me:$LINENO: result: no" >&5 4012echo "${ECHO_T}no" >&6 4013fi 4014 4015fi 4016if test -z "$ac_cv_prog_CC"; then 4017 ac_ct_CC=$CC 4018 # Extract the first word of "cc", so it can be a program name with args. 4019set dummy cc; ac_word=$2 4020echo "$as_me:$LINENO: checking for $ac_word" >&5 4021echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4022if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 4023 echo $ECHO_N "(cached) $ECHO_C" >&6 4024else 4025 if test -n "$ac_ct_CC"; then 4026 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4027else 4028as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4029for as_dir in $PATH 4030do 4031 IFS=$as_save_IFS 4032 test -z "$as_dir" && as_dir=. 4033 for ac_exec_ext in '' $ac_executable_extensions; do 4034 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4035 ac_cv_prog_ac_ct_CC="cc" 4036 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4037 break 2 4038 fi 4039done 4040done 4041 4042fi 4043fi 4044ac_ct_CC=$ac_cv_prog_ac_ct_CC 4045if test -n "$ac_ct_CC"; then 4046 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 4047echo "${ECHO_T}$ac_ct_CC" >&6 4048else 4049 echo "$as_me:$LINENO: result: no" >&5 4050echo "${ECHO_T}no" >&6 4051fi 4052 4053 CC=$ac_ct_CC 4054else 4055 CC="$ac_cv_prog_CC" 4056fi 4057 4058fi 4059if test -z "$CC"; then 4060 # Extract the first word of "cc", so it can be a program name with args. 4061set dummy cc; ac_word=$2 4062echo "$as_me:$LINENO: checking for $ac_word" >&5 4063echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4064if test "${ac_cv_prog_CC+set}" = set; then 4065 echo $ECHO_N "(cached) $ECHO_C" >&6 4066else 4067 if test -n "$CC"; then 4068 ac_cv_prog_CC="$CC" # Let the user override the test. 4069else 4070 ac_prog_rejected=no 4071as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4072for as_dir in $PATH 4073do 4074 IFS=$as_save_IFS 4075 test -z "$as_dir" && as_dir=. 4076 for ac_exec_ext in '' $ac_executable_extensions; do 4077 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4078 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 4079 ac_prog_rejected=yes 4080 continue 4081 fi 4082 ac_cv_prog_CC="cc" 4083 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4084 break 2 4085 fi 4086done 4087done 4088 4089if test $ac_prog_rejected = yes; then 4090 # We found a bogon in the path, so make sure we never use it. 4091 set dummy $ac_cv_prog_CC 4092 shift 4093 if test $# != 0; then 4094 # We chose a different compiler from the bogus one. 4095 # However, it has the same basename, so the bogon will be chosen 4096 # first if we set CC to just the basename; use the full file name. 4097 shift 4098 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 4099 fi 4100fi 4101fi 4102fi 4103CC=$ac_cv_prog_CC 4104if test -n "$CC"; then 4105 echo "$as_me:$LINENO: result: $CC" >&5 4106echo "${ECHO_T}$CC" >&6 4107else 4108 echo "$as_me:$LINENO: result: no" >&5 4109echo "${ECHO_T}no" >&6 4110fi 4111 4112fi 4113if test -z "$CC"; then 4114 if test -n "$ac_tool_prefix"; then 4115 for ac_prog in cl 4116 do 4117 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4118set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4119echo "$as_me:$LINENO: checking for $ac_word" >&5 4120echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4121if test "${ac_cv_prog_CC+set}" = set; then 4122 echo $ECHO_N "(cached) $ECHO_C" >&6 4123else 4124 if test -n "$CC"; then 4125 ac_cv_prog_CC="$CC" # Let the user override the test. 4126else 4127as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4128for as_dir in $PATH 4129do 4130 IFS=$as_save_IFS 4131 test -z "$as_dir" && as_dir=. 4132 for ac_exec_ext in '' $ac_executable_extensions; do 4133 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4134 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 4135 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4136 break 2 4137 fi 4138done 4139done 4140 4141fi 4142fi 4143CC=$ac_cv_prog_CC 4144if test -n "$CC"; then 4145 echo "$as_me:$LINENO: result: $CC" >&5 4146echo "${ECHO_T}$CC" >&6 4147else 4148 echo "$as_me:$LINENO: result: no" >&5 4149echo "${ECHO_T}no" >&6 4150fi 4151 4152 test -n "$CC" && break 4153 done 4154fi 4155if test -z "$CC"; then 4156 ac_ct_CC=$CC 4157 for ac_prog in cl 4158do 4159 # Extract the first word of "$ac_prog", so it can be a program name with args. 4160set dummy $ac_prog; ac_word=$2 4161echo "$as_me:$LINENO: checking for $ac_word" >&5 4162echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4163if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 4164 echo $ECHO_N "(cached) $ECHO_C" >&6 4165else 4166 if test -n "$ac_ct_CC"; then 4167 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4168else 4169as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4170for as_dir in $PATH 4171do 4172 IFS=$as_save_IFS 4173 test -z "$as_dir" && as_dir=. 4174 for ac_exec_ext in '' $ac_executable_extensions; do 4175 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4176 ac_cv_prog_ac_ct_CC="$ac_prog" 4177 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4178 break 2 4179 fi 4180done 4181done 4182 4183fi 4184fi 4185ac_ct_CC=$ac_cv_prog_ac_ct_CC 4186if test -n "$ac_ct_CC"; then 4187 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 4188echo "${ECHO_T}$ac_ct_CC" >&6 4189else 4190 echo "$as_me:$LINENO: result: no" >&5 4191echo "${ECHO_T}no" >&6 4192fi 4193 4194 test -n "$ac_ct_CC" && break 4195done 4196 4197 CC=$ac_ct_CC 4198fi 4199 4200fi 4201 4202 4203test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 4204See \`config.log' for more details." >&5 4205echo "$as_me: error: no acceptable C compiler found in \$PATH 4206See \`config.log' for more details." >&2;} 4207 { (exit 1); exit 1; }; } 4208 4209# Provide some information about the compiler. 4210echo "$as_me:$LINENO:" \ 4211 "checking for C compiler version" >&5 4212ac_compiler=`set X $ac_compile; echo $2` 4213{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 4214 (eval $ac_compiler --version </dev/null >&5) 2>&5 4215 ac_status=$? 4216 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4217 (exit $ac_status); } 4218{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 4219 (eval $ac_compiler -v </dev/null >&5) 2>&5 4220 ac_status=$? 4221 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4222 (exit $ac_status); } 4223{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 4224 (eval $ac_compiler -V </dev/null >&5) 2>&5 4225 ac_status=$? 4226 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4227 (exit $ac_status); } 4228 4229echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 4230echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 4231if test "${ac_cv_c_compiler_gnu+set}" = set; then 4232 echo $ECHO_N "(cached) $ECHO_C" >&6 4233else 4234 cat >conftest.$ac_ext <<_ACEOF 4235/* confdefs.h. */ 4236_ACEOF 4237cat confdefs.h >>conftest.$ac_ext 4238cat >>conftest.$ac_ext <<_ACEOF 4239/* end confdefs.h. */ 4240 4241int 4242main () 4243{ 4244#ifndef __GNUC__ 4245 choke me 4246#endif 4247 4248 ; 4249 return 0; 4250} 4251_ACEOF 4252rm -f conftest.$ac_objext 4253if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4254 (eval $ac_compile) 2>conftest.er1 4255 ac_status=$? 4256 grep -v '^ *+' conftest.er1 >conftest.err 4257 rm -f conftest.er1 4258 cat conftest.err >&5 4259 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4260 (exit $ac_status); } && 4261 { ac_try='test -z "$ac_c_werror_flag" 4262 || test ! -s conftest.err' 4263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4264 (eval $ac_try) 2>&5 4265 ac_status=$? 4266 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4267 (exit $ac_status); }; } && 4268 { ac_try='test -s conftest.$ac_objext' 4269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4270 (eval $ac_try) 2>&5 4271 ac_status=$? 4272 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4273 (exit $ac_status); }; }; then 4274 ac_compiler_gnu=yes 4275else 4276 echo "$as_me: failed program was:" >&5 4277sed 's/^/| /' conftest.$ac_ext >&5 4278 4279ac_compiler_gnu=no 4280fi 4281rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4282ac_cv_c_compiler_gnu=$ac_compiler_gnu 4283 4284fi 4285echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 4286echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 4287GCC=`test $ac_compiler_gnu = yes && echo yes` 4288ac_test_CFLAGS=${CFLAGS+set} 4289ac_save_CFLAGS=$CFLAGS 4290CFLAGS="-g" 4291echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 4292echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 4293if test "${ac_cv_prog_cc_g+set}" = set; then 4294 echo $ECHO_N "(cached) $ECHO_C" >&6 4295else 4296 cat >conftest.$ac_ext <<_ACEOF 4297/* confdefs.h. */ 4298_ACEOF 4299cat confdefs.h >>conftest.$ac_ext 4300cat >>conftest.$ac_ext <<_ACEOF 4301/* end confdefs.h. */ 4302 4303int 4304main () 4305{ 4306 4307 ; 4308 return 0; 4309} 4310_ACEOF 4311rm -f conftest.$ac_objext 4312if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4313 (eval $ac_compile) 2>conftest.er1 4314 ac_status=$? 4315 grep -v '^ *+' conftest.er1 >conftest.err 4316 rm -f conftest.er1 4317 cat conftest.err >&5 4318 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4319 (exit $ac_status); } && 4320 { ac_try='test -z "$ac_c_werror_flag" 4321 || test ! -s conftest.err' 4322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4323 (eval $ac_try) 2>&5 4324 ac_status=$? 4325 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4326 (exit $ac_status); }; } && 4327 { ac_try='test -s conftest.$ac_objext' 4328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4329 (eval $ac_try) 2>&5 4330 ac_status=$? 4331 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4332 (exit $ac_status); }; }; then 4333 ac_cv_prog_cc_g=yes 4334else 4335 echo "$as_me: failed program was:" >&5 4336sed 's/^/| /' conftest.$ac_ext >&5 4337 4338ac_cv_prog_cc_g=no 4339fi 4340rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4341fi 4342echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 4343echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 4344if test "$ac_test_CFLAGS" = set; then 4345 CFLAGS=$ac_save_CFLAGS 4346elif test $ac_cv_prog_cc_g = yes; then 4347 if test "$GCC" = yes; then 4348 CFLAGS="-g -O2" 4349 else 4350 CFLAGS="-g" 4351 fi 4352else 4353 if test "$GCC" = yes; then 4354 CFLAGS="-O2" 4355 else 4356 CFLAGS= 4357 fi 4358fi 4359echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 4360echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 4361if test "${ac_cv_prog_cc_stdc+set}" = set; then 4362 echo $ECHO_N "(cached) $ECHO_C" >&6 4363else 4364 ac_cv_prog_cc_stdc=no 4365ac_save_CC=$CC 4366cat >conftest.$ac_ext <<_ACEOF 4367/* confdefs.h. */ 4368_ACEOF 4369cat confdefs.h >>conftest.$ac_ext 4370cat >>conftest.$ac_ext <<_ACEOF 4371/* end confdefs.h. */ 4372#include <stdarg.h> 4373#include <stdio.h> 4374#include <sys/types.h> 4375#include <sys/stat.h> 4376/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4377struct buf { int x; }; 4378FILE * (*rcsopen) (struct buf *, struct stat *, int); 4379static char *e (p, i) 4380 char **p; 4381 int i; 4382{ 4383 return p[i]; 4384} 4385static char *f (char * (*g) (char **, int), char **p, ...) 4386{ 4387 char *s; 4388 va_list v; 4389 va_start (v,p); 4390 s = g (p, va_arg (v,int)); 4391 va_end (v); 4392 return s; 4393} 4394 4395/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4396 function prototypes and stuff, but not '\xHH' hex character constants. 4397 These don't provoke an error unfortunately, instead are silently treated 4398 as 'x'. The following induces an error, until -std1 is added to get 4399 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4400 array size at least. It's necessary to write '\x00'==0 to get something 4401 that's true only with -std1. */ 4402int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4403 4404int test (int i, double x); 4405struct s1 {int (*f) (int a);}; 4406struct s2 {int (*f) (double a);}; 4407int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4408int argc; 4409char **argv; 4410int 4411main () 4412{ 4413return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4414 ; 4415 return 0; 4416} 4417_ACEOF 4418# Don't try gcc -ansi; that turns off useful extensions and 4419# breaks some systems' header files. 4420# AIX -qlanglvl=ansi 4421# Ultrix and OSF/1 -std1 4422# HP-UX 10.20 and later -Ae 4423# HP-UX older versions -Aa -D_HPUX_SOURCE 4424# SVR4 -Xc -D__EXTENSIONS__ 4425for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4426do 4427 CC="$ac_save_CC $ac_arg" 4428 rm -f conftest.$ac_objext 4429if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4430 (eval $ac_compile) 2>conftest.er1 4431 ac_status=$? 4432 grep -v '^ *+' conftest.er1 >conftest.err 4433 rm -f conftest.er1 4434 cat conftest.err >&5 4435 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4436 (exit $ac_status); } && 4437 { ac_try='test -z "$ac_c_werror_flag" 4438 || test ! -s conftest.err' 4439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4440 (eval $ac_try) 2>&5 4441 ac_status=$? 4442 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4443 (exit $ac_status); }; } && 4444 { ac_try='test -s conftest.$ac_objext' 4445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4446 (eval $ac_try) 2>&5 4447 ac_status=$? 4448 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4449 (exit $ac_status); }; }; then 4450 ac_cv_prog_cc_stdc=$ac_arg 4451break 4452else 4453 echo "$as_me: failed program was:" >&5 4454sed 's/^/| /' conftest.$ac_ext >&5 4455 4456fi 4457rm -f conftest.err conftest.$ac_objext 4458done 4459rm -f conftest.$ac_ext conftest.$ac_objext 4460CC=$ac_save_CC 4461 4462fi 4463 4464case "x$ac_cv_prog_cc_stdc" in 4465 x|xno) 4466 echo "$as_me:$LINENO: result: none needed" >&5 4467echo "${ECHO_T}none needed" >&6 ;; 4468 *) 4469 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 4470echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 4471 CC="$CC $ac_cv_prog_cc_stdc" ;; 4472esac 4473 4474# Some people use a C++ compiler to compile C. Since we use `exit', 4475# in C++ we need to declare it. In case someone uses the same compiler 4476# for both compiling C and C++ we need to have the C++ compiler decide 4477# the declaration of exit, since it's the most demanding environment. 4478cat >conftest.$ac_ext <<_ACEOF 4479#ifndef __cplusplus 4480 choke me 4481#endif 4482_ACEOF 4483rm -f conftest.$ac_objext 4484if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4485 (eval $ac_compile) 2>conftest.er1 4486 ac_status=$? 4487 grep -v '^ *+' conftest.er1 >conftest.err 4488 rm -f conftest.er1 4489 cat conftest.err >&5 4490 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4491 (exit $ac_status); } && 4492 { ac_try='test -z "$ac_c_werror_flag" 4493 || test ! -s conftest.err' 4494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4495 (eval $ac_try) 2>&5 4496 ac_status=$? 4497 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4498 (exit $ac_status); }; } && 4499 { ac_try='test -s conftest.$ac_objext' 4500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4501 (eval $ac_try) 2>&5 4502 ac_status=$? 4503 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4504 (exit $ac_status); }; }; then 4505 for ac_declaration in \ 4506 '' \ 4507 'extern "C" void std::exit (int) throw (); using std::exit;' \ 4508 'extern "C" void std::exit (int); using std::exit;' \ 4509 'extern "C" void exit (int) throw ();' \ 4510 'extern "C" void exit (int);' \ 4511 'void exit (int);' 4512do 4513 cat >conftest.$ac_ext <<_ACEOF 4514/* confdefs.h. */ 4515_ACEOF 4516cat confdefs.h >>conftest.$ac_ext 4517cat >>conftest.$ac_ext <<_ACEOF 4518/* end confdefs.h. */ 4519$ac_declaration 4520#include <stdlib.h> 4521int 4522main () 4523{ 4524exit (42); 4525 ; 4526 return 0; 4527} 4528_ACEOF 4529rm -f conftest.$ac_objext 4530if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4531 (eval $ac_compile) 2>conftest.er1 4532 ac_status=$? 4533 grep -v '^ *+' conftest.er1 >conftest.err 4534 rm -f conftest.er1 4535 cat conftest.err >&5 4536 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4537 (exit $ac_status); } && 4538 { ac_try='test -z "$ac_c_werror_flag" 4539 || test ! -s conftest.err' 4540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4541 (eval $ac_try) 2>&5 4542 ac_status=$? 4543 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4544 (exit $ac_status); }; } && 4545 { ac_try='test -s conftest.$ac_objext' 4546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4547 (eval $ac_try) 2>&5 4548 ac_status=$? 4549 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4550 (exit $ac_status); }; }; then 4551 : 4552else 4553 echo "$as_me: failed program was:" >&5 4554sed 's/^/| /' conftest.$ac_ext >&5 4555 4556continue 4557fi 4558rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4559 cat >conftest.$ac_ext <<_ACEOF 4560/* confdefs.h. */ 4561_ACEOF 4562cat confdefs.h >>conftest.$ac_ext 4563cat >>conftest.$ac_ext <<_ACEOF 4564/* end confdefs.h. */ 4565$ac_declaration 4566int 4567main () 4568{ 4569exit (42); 4570 ; 4571 return 0; 4572} 4573_ACEOF 4574rm -f conftest.$ac_objext 4575if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4576 (eval $ac_compile) 2>conftest.er1 4577 ac_status=$? 4578 grep -v '^ *+' conftest.er1 >conftest.err 4579 rm -f conftest.er1 4580 cat conftest.err >&5 4581 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4582 (exit $ac_status); } && 4583 { ac_try='test -z "$ac_c_werror_flag" 4584 || test ! -s conftest.err' 4585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4586 (eval $ac_try) 2>&5 4587 ac_status=$? 4588 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4589 (exit $ac_status); }; } && 4590 { ac_try='test -s conftest.$ac_objext' 4591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4592 (eval $ac_try) 2>&5 4593 ac_status=$? 4594 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4595 (exit $ac_status); }; }; then 4596 break 4597else 4598 echo "$as_me: failed program was:" >&5 4599sed 's/^/| /' conftest.$ac_ext >&5 4600 4601fi 4602rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4603done 4604rm -f conftest* 4605if test -n "$ac_declaration"; then 4606 echo '#ifdef __cplusplus' >>confdefs.h 4607 echo $ac_declaration >>confdefs.h 4608 echo '#endif' >>confdefs.h 4609fi 4610 4611else 4612 echo "$as_me: failed program was:" >&5 4613sed 's/^/| /' conftest.$ac_ext >&5 4614 4615fi 4616rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4617ac_ext=c 4618ac_cpp='$CPP $CPPFLAGS' 4619ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4620ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4621ac_compiler_gnu=$ac_cv_c_compiler_gnu 4622 4623depcc="$CC" am_compiler_list= 4624 4625echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 4626echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 4627if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 4628 echo $ECHO_N "(cached) $ECHO_C" >&6 4629else 4630 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4631 # We make a subdir and do the tests there. Otherwise we can end up 4632 # making bogus files that we don't know about and never remove. For 4633 # instance it was reported that on HP-UX the gcc test will end up 4634 # making a dummy file named `D' -- because `-MD' means `put the output 4635 # in D'. 4636 mkdir conftest.dir 4637 # Copy depcomp to subdir because otherwise we won't find it if we're 4638 # using a relative directory. 4639 cp "$am_depcomp" conftest.dir 4640 cd conftest.dir 4641 # We will build objects and dependencies in a subdirectory because 4642 # it helps to detect inapplicable dependency modes. For instance 4643 # both Tru64's cc and ICC support -MD to output dependencies as a 4644 # side effect of compilation, but ICC will put the dependencies in 4645 # the current directory while Tru64 will put them in the object 4646 # directory. 4647 mkdir sub 4648 4649 am_cv_CC_dependencies_compiler_type=none 4650 if test "$am_compiler_list" = ""; then 4651 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4652 fi 4653 for depmode in $am_compiler_list; do 4654 # Setup a source with many dependencies, because some compilers 4655 # like to wrap large dependency lists on column 80 (with \), and 4656 # we should not choose a depcomp mode which is confused by this. 4657 # 4658 # We need to recreate these files for each test, as the compiler may 4659 # overwrite some of them when testing with obscure command lines. 4660 # This happens at least with the AIX C compiler. 4661 : > sub/conftest.c 4662 for i in 1 2 3 4 5 6; do 4663 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4664 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 4665 # Solaris 8's {/usr,}/bin/sh. 4666 touch sub/conftst$i.h 4667 done 4668 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4669 4670 case $depmode in 4671 nosideeffect) 4672 # after this tag, mechanisms are not by side-effect, so they'll 4673 # only be used when explicitly requested 4674 if test "x$enable_dependency_tracking" = xyes; then 4675 continue 4676 else 4677 break 4678 fi 4679 ;; 4680 none) break ;; 4681 esac 4682 # We check with `-c' and `-o' for the sake of the "dashmstdout" 4683 # mode. It turns out that the SunPro C++ compiler does not properly 4684 # handle `-M -o', and we need to detect this. 4685 if depmode=$depmode \ 4686 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 4687 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4688 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 4689 >/dev/null 2>conftest.err && 4690 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4691 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 4692 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4693 # icc doesn't choke on unknown options, it will just issue warnings 4694 # or remarks (even with -Werror). So we grep stderr for any message 4695 # that says an option was ignored or not supported. 4696 # When given -MP, icc 7.0 and 7.1 complain thusly: 4697 # icc: Command line warning: ignoring option '-M'; no argument required 4698 # The diagnosis changed in icc 8.0: 4699 # icc: Command line remark: option '-MP' not supported 4700 if (grep 'ignoring option' conftest.err || 4701 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4702 am_cv_CC_dependencies_compiler_type=$depmode 4703 break 4704 fi 4705 fi 4706 done 4707 4708 cd .. 4709 rm -rf conftest.dir 4710else 4711 am_cv_CC_dependencies_compiler_type=none 4712fi 4713 4714fi 4715echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 4716echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 4717CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4718 4719 4720 4721if 4722 test "x$enable_dependency_tracking" != xno \ 4723 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4724 am__fastdepCC_TRUE= 4725 am__fastdepCC_FALSE='#' 4726else 4727 am__fastdepCC_TRUE='#' 4728 am__fastdepCC_FALSE= 4729fi 4730 4731 4732# Ralf Wildenhues: With per-target flags we need CC_C_O 4733if test "x$CC" != xcc; then 4734 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5 4735echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6 4736else 4737 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5 4738echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6 4739fi 4740set dummy $CC; ac_cc=`echo $2 | 4741 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` 4742if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then 4743 echo $ECHO_N "(cached) $ECHO_C" >&6 4744else 4745 cat >conftest.$ac_ext <<_ACEOF 4746/* confdefs.h. */ 4747_ACEOF 4748cat confdefs.h >>conftest.$ac_ext 4749cat >>conftest.$ac_ext <<_ACEOF 4750/* end confdefs.h. */ 4751 4752int 4753main () 4754{ 4755 4756 ; 4757 return 0; 4758} 4759_ACEOF 4760# Make sure it works both with $CC and with simple cc. 4761# We do the test twice because some compilers refuse to overwrite an 4762# existing .o file with -o, though they will create one. 4763ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5' 4764if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4765 (eval $ac_try) 2>&5 4766 ac_status=$? 4767 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4768 (exit $ac_status); } && 4769 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4770 (eval $ac_try) 2>&5 4771 ac_status=$? 4772 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4773 (exit $ac_status); }; 4774then 4775 eval ac_cv_prog_cc_${ac_cc}_c_o=yes 4776 if test "x$CC" != xcc; then 4777 # Test first that cc exists at all. 4778 if { ac_try='cc -c conftest.$ac_ext >&5' 4779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4780 (eval $ac_try) 2>&5 4781 ac_status=$? 4782 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4783 (exit $ac_status); }; }; then 4784 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5' 4785 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4786 (eval $ac_try) 2>&5 4787 ac_status=$? 4788 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4789 (exit $ac_status); } && 4790 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4791 (eval $ac_try) 2>&5 4792 ac_status=$? 4793 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4794 (exit $ac_status); }; 4795 then 4796 # cc works too. 4797 : 4798 else 4799 # cc exists but doesn't like -o. 4800 eval ac_cv_prog_cc_${ac_cc}_c_o=no 4801 fi 4802 fi 4803 fi 4804else 4805 eval ac_cv_prog_cc_${ac_cc}_c_o=no 4806fi 4807rm -f conftest* 4808 4809fi 4810if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then 4811 echo "$as_me:$LINENO: result: yes" >&5 4812echo "${ECHO_T}yes" >&6 4813else 4814 echo "$as_me:$LINENO: result: no" >&5 4815echo "${ECHO_T}no" >&6 4816 4817cat >>confdefs.h <<\_ACEOF 4818#define NO_MINUS_C_MINUS_O 1 4819_ACEOF 4820 4821fi 4822 4823 4824ac_ext=c 4825ac_cpp='$CPP $CPPFLAGS' 4826ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4827ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4828ac_compiler_gnu=$ac_cv_c_compiler_gnu 4829echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 4830echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 4831# On Suns, sometimes $CPP names a directory. 4832if test -n "$CPP" && test -d "$CPP"; then 4833 CPP= 4834fi 4835if test -z "$CPP"; then 4836 if test "${ac_cv_prog_CPP+set}" = set; then 4837 echo $ECHO_N "(cached) $ECHO_C" >&6 4838else 4839 # Double quotes because CPP needs to be expanded 4840 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4841 do 4842 ac_preproc_ok=false 4843for ac_c_preproc_warn_flag in '' yes 4844do 4845 # Use a header file that comes with gcc, so configuring glibc 4846 # with a fresh cross-compiler works. 4847 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4848 # <limits.h> exists even on freestanding compilers. 4849 # On the NeXT, cc -E runs the code through the compiler's parser, 4850 # not just through cpp. "Syntax error" is here to catch this case. 4851 cat >conftest.$ac_ext <<_ACEOF 4852/* confdefs.h. */ 4853_ACEOF 4854cat confdefs.h >>conftest.$ac_ext 4855cat >>conftest.$ac_ext <<_ACEOF 4856/* end confdefs.h. */ 4857#ifdef __STDC__ 4858# include <limits.h> 4859#else 4860# include <assert.h> 4861#endif 4862 Syntax error 4863_ACEOF 4864if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4865 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4866 ac_status=$? 4867 grep -v '^ *+' conftest.er1 >conftest.err 4868 rm -f conftest.er1 4869 cat conftest.err >&5 4870 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4871 (exit $ac_status); } >/dev/null; then 4872 if test -s conftest.err; then 4873 ac_cpp_err=$ac_c_preproc_warn_flag 4874 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4875 else 4876 ac_cpp_err= 4877 fi 4878else 4879 ac_cpp_err=yes 4880fi 4881if test -z "$ac_cpp_err"; then 4882 : 4883else 4884 echo "$as_me: failed program was:" >&5 4885sed 's/^/| /' conftest.$ac_ext >&5 4886 4887 # Broken: fails on valid input. 4888continue 4889fi 4890rm -f conftest.err conftest.$ac_ext 4891 4892 # OK, works on sane cases. Now check whether non-existent headers 4893 # can be detected and how. 4894 cat >conftest.$ac_ext <<_ACEOF 4895/* confdefs.h. */ 4896_ACEOF 4897cat confdefs.h >>conftest.$ac_ext 4898cat >>conftest.$ac_ext <<_ACEOF 4899/* end confdefs.h. */ 4900#include <ac_nonexistent.h> 4901_ACEOF 4902if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4903 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4904 ac_status=$? 4905 grep -v '^ *+' conftest.er1 >conftest.err 4906 rm -f conftest.er1 4907 cat conftest.err >&5 4908 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4909 (exit $ac_status); } >/dev/null; then 4910 if test -s conftest.err; then 4911 ac_cpp_err=$ac_c_preproc_warn_flag 4912 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4913 else 4914 ac_cpp_err= 4915 fi 4916else 4917 ac_cpp_err=yes 4918fi 4919if test -z "$ac_cpp_err"; then 4920 # Broken: success on invalid input. 4921continue 4922else 4923 echo "$as_me: failed program was:" >&5 4924sed 's/^/| /' conftest.$ac_ext >&5 4925 4926 # Passes both tests. 4927ac_preproc_ok=: 4928break 4929fi 4930rm -f conftest.err conftest.$ac_ext 4931 4932done 4933# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4934rm -f conftest.err conftest.$ac_ext 4935if $ac_preproc_ok; then 4936 break 4937fi 4938 4939 done 4940 ac_cv_prog_CPP=$CPP 4941 4942fi 4943 CPP=$ac_cv_prog_CPP 4944else 4945 ac_cv_prog_CPP=$CPP 4946fi 4947echo "$as_me:$LINENO: result: $CPP" >&5 4948echo "${ECHO_T}$CPP" >&6 4949ac_preproc_ok=false 4950for ac_c_preproc_warn_flag in '' yes 4951do 4952 # Use a header file that comes with gcc, so configuring glibc 4953 # with a fresh cross-compiler works. 4954 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4955 # <limits.h> exists even on freestanding compilers. 4956 # On the NeXT, cc -E runs the code through the compiler's parser, 4957 # not just through cpp. "Syntax error" is here to catch this case. 4958 cat >conftest.$ac_ext <<_ACEOF 4959/* confdefs.h. */ 4960_ACEOF 4961cat confdefs.h >>conftest.$ac_ext 4962cat >>conftest.$ac_ext <<_ACEOF 4963/* end confdefs.h. */ 4964#ifdef __STDC__ 4965# include <limits.h> 4966#else 4967# include <assert.h> 4968#endif 4969 Syntax error 4970_ACEOF 4971if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4972 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4973 ac_status=$? 4974 grep -v '^ *+' conftest.er1 >conftest.err 4975 rm -f conftest.er1 4976 cat conftest.err >&5 4977 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4978 (exit $ac_status); } >/dev/null; then 4979 if test -s conftest.err; then 4980 ac_cpp_err=$ac_c_preproc_warn_flag 4981 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4982 else 4983 ac_cpp_err= 4984 fi 4985else 4986 ac_cpp_err=yes 4987fi 4988if test -z "$ac_cpp_err"; then 4989 : 4990else 4991 echo "$as_me: failed program was:" >&5 4992sed 's/^/| /' conftest.$ac_ext >&5 4993 4994 # Broken: fails on valid input. 4995continue 4996fi 4997rm -f conftest.err conftest.$ac_ext 4998 4999 # OK, works on sane cases. Now check whether non-existent headers 5000 # can be detected and how. 5001 cat >conftest.$ac_ext <<_ACEOF 5002/* confdefs.h. */ 5003_ACEOF 5004cat confdefs.h >>conftest.$ac_ext 5005cat >>conftest.$ac_ext <<_ACEOF 5006/* end confdefs.h. */ 5007#include <ac_nonexistent.h> 5008_ACEOF 5009if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5010 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5011 ac_status=$? 5012 grep -v '^ *+' conftest.er1 >conftest.err 5013 rm -f conftest.er1 5014 cat conftest.err >&5 5015 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5016 (exit $ac_status); } >/dev/null; then 5017 if test -s conftest.err; then 5018 ac_cpp_err=$ac_c_preproc_warn_flag 5019 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 5020 else 5021 ac_cpp_err= 5022 fi 5023else 5024 ac_cpp_err=yes 5025fi 5026if test -z "$ac_cpp_err"; then 5027 # Broken: success on invalid input. 5028continue 5029else 5030 echo "$as_me: failed program was:" >&5 5031sed 's/^/| /' conftest.$ac_ext >&5 5032 5033 # Passes both tests. 5034ac_preproc_ok=: 5035break 5036fi 5037rm -f conftest.err conftest.$ac_ext 5038 5039done 5040# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5041rm -f conftest.err conftest.$ac_ext 5042if $ac_preproc_ok; then 5043 : 5044else 5045 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 5046See \`config.log' for more details." >&5 5047echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 5048See \`config.log' for more details." >&2;} 5049 { (exit 1); exit 1; }; } 5050fi 5051 5052ac_ext=c 5053ac_cpp='$CPP $CPPFLAGS' 5054ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5055ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5056ac_compiler_gnu=$ac_cv_c_compiler_gnu 5057 5058 5059# HMS: These need to be moved to AM_CPPFLAGS and/or AM_CFLAGS 5060case "$host" in 5061 *-*-amigaos) 5062 CFLAGS="$CFLAGS -Dfork=vfork -DSYS_AMIGA" 5063 ;; 5064 *-*-hpux10.*) # at least for hppa2.0-hp-hpux10.20 5065 case "$GCC" in 5066 yes) 5067 ;; 5068 *) CFLAGS="$CFLAGS -Wp,-H18816" 5069 ;; 5070 esac 5071 ;; 5072 *-pc-cygwin*) 5073 CFLAGS="$CFLAGS -DSYS_CYGWIN32" 5074 ;; 5075 i386-sequent-sysv4) 5076 case "$CC" in 5077 cc) 5078 CFLAGS="$CFLAGS -Wc,+abi-socket" 5079 ;; 5080 esac 5081 ;; 5082 *-*-mpeix*) 5083 CPPFLAGS="$CPPFLAGS -DMPE -D_POSIX_SOURCE -D_SOCKET_SOURCE -I/SYSLOG/PUB" 5084 LDFLAGS="$LDFLAGS -L/SYSLOG/PUB" 5085 LIBS="$LIBS -lcurses" 5086 ;; 5087 *-*-solaris*) 5088 # see "man standards". 5089 # -D_XOPEN_SOURCE=500 is probably OK for c89 and before 5090 # -D_XOPEN_SOURCE=600 seems OK for c99 5091 #CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=500 -D__EXTENSIONS__" 5092 CPPFLAGS="$CPPFLAGS -D__EXTENSIONS__" 5093 libxnet=-lxnet 5094 ;; 5095esac 5096 5097 5098echo "$as_me:$LINENO: checking additional compiler flags" >&5 5099echo $ECHO_N "checking additional compiler flags... $ECHO_C" >&6 5100if test "${ac_cv_os_cflags+set}" = set; then 5101 echo $ECHO_N "(cached) $ECHO_C" >&6 5102else 5103 5104case "${host_os}" in 5105 irix6* ) 5106 case "${CC}" in 5107 cc ) 5108 # do not use 64-bit compiler 5109 ac_cv_os_cflags="-n32 -mips3 -Wl,-woff,84" 5110 ;; 5111 esac 5112 ;; 5113# HMS: am-utils needed this but we don't (apparently) 5114# osf[[1-3]]* ) 5115# # get the right version of struct sockaddr 5116# case "${CC}" in 5117# cc ) 5118# ac_cv_os_cflags="-std -D_SOCKADDR_LEN -D_NO_PROTO" 5119# ;; 5120# * ) 5121# ac_cv_os_cflags="-D_SOCKADDR_LEN -D_NO_PROTO" 5122# ;; 5123# esac 5124# ;; 5125# osf* ) 5126# # get the right version of struct sockaddr 5127# case "${CC}" in 5128# cc ) 5129# ac_cv_os_cflags="-std -D_SOCKADDR_LEN" 5130# ;; 5131# * ) 5132# ac_cv_os_cflags="-D_SOCKADDR_LEN" 5133# ;; 5134# esac 5135# ;; 5136 aix[1-3]* ) 5137 ac_cv_os_cflags="" ;; 5138 aix4.[0-2]* ) 5139 # turn on additional headers 5140 ac_cv_os_cflags="-D_XOPEN_EXTENDED_SOURCE" 5141 ;; 5142 aix* ) 5143 # avoid circular dependencies in yp headers 5144 ac_cv_os_cflags="-DHAVE_BAD_HEADERS -D_XOPEN_EXTENDED_SOURCE" 5145 ;; 5146 OFF-sunos4* ) 5147 # make sure passing whole structures is handled in gcc 5148 case "${CC}" in 5149 gcc ) 5150 ac_cv_os_cflags="-fpcc-struct-return" 5151 ;; 5152 esac 5153 ;; 5154 sunos[34]* | solaris1* | solaris2.[0-5]* | sunos5.[0-5]* ) 5155 ac_cv_os_cflags="" ;; 5156 solaris* | sunos* ) 5157 # turn on 64-bit file offset interface 5158 case "${CC}" in 5159 * ) 5160 ac_cv_os_cflags="-D_LARGEFILE64_SOURCE" 5161 ;; 5162 esac 5163 ;; 5164 hpux* ) 5165 # use Ansi compiler on HPUX 5166 case "${CC}" in 5167 cc ) 5168 ac_cv_os_cflags="-Ae" 5169 ;; 5170 esac 5171 ;; 5172 darwin* | rhapsody* ) 5173 ac_cv_os_cflags="-D_P1003_1B_VISIBLE" 5174 ;; 5175 * ) 5176 ac_cv_os_cflags="" 5177 ;; 5178esac 5179 5180fi 5181echo "$as_me:$LINENO: result: $ac_cv_os_cflags" >&5 5182echo "${ECHO_T}$ac_cv_os_cflags" >&6 5183CFLAGS="$CFLAGS $ac_cv_os_cflags" 5184 5185 5186# NTP has (so far) been relying on leading-edge autogen. 5187# Therefore, by default: 5188# - use the version we ship with 5189# - do not install it 5190# - build a static copy (AC_DISABLE_SHARED - done earlier) 5191case "${enable_local_libopts+set}" in 5192 set) ;; 5193 *) enable_local_libopts=yes ;; 5194esac 5195case "${enable_libopts_install+set}" in 5196 set) ;; 5197 *) enable_libopts_install=no ;; 5198esac 5199 5200 NEED_LIBOPTS_DIR='' 5201 5202 LIBOPTS_DIR=libopts 5203 5204 # Check whether --enable-local-libopts or --disable-local-libopts was given. 5205if test "${enable_local_libopts+set}" = set; then 5206 enableval="$enable_local_libopts" 5207 5208 if test x$enableval = xyes ; then 5209 { echo "$as_me:$LINENO: Using supplied libopts tearoff" >&5 5210echo "$as_me: Using supplied libopts tearoff" >&6;} 5211 LIBOPTS_LDADD='$(top_builddir)/libopts/libopts.la' 5212 LIBOPTS_CFLAGS='-I$(top_srcdir)/libopts' 5213 NEED_LIBOPTS_DIR=true 5214 fi 5215fi; 5216 5217 # Check whether --enable-libopts-install or --disable-libopts-install was given. 5218if test "${enable_libopts_install+set}" = set; then 5219 enableval="$enable_libopts_install" 5220 5221fi; 5222 5223 5224if test "X${enable_libopts_install}" != Xno; then 5225 INSTALL_LIBOPTS_TRUE= 5226 INSTALL_LIBOPTS_FALSE='#' 5227else 5228 INSTALL_LIBOPTS_TRUE='#' 5229 INSTALL_LIBOPTS_FALSE= 5230fi 5231 5232 5233 if test -z "${NEED_LIBOPTS_DIR}" ; then 5234 echo "$as_me:$LINENO: checking whether autoopts-config can be found" >&5 5235echo $ECHO_N "checking whether autoopts-config can be found... $ECHO_C" >&6 5236 5237# Check whether --with-autoopts-config or --without-autoopts-config was given. 5238if test "${with_autoopts_config+set}" = set; then 5239 withval="$with_autoopts_config" 5240 lo_cv_with_autoopts_config=${with_autoopts_config} 5241else 5242 echo "$as_me:$LINENO: checking whether autoopts-config is specified" >&5 5243echo $ECHO_N "checking whether autoopts-config is specified... $ECHO_C" >&6 5244if test "${lo_cv_with_autoopts_config+set}" = set; then 5245 echo $ECHO_N "(cached) $ECHO_C" >&6 5246else 5247 if autoopts-config --help 2>/dev/null 1>&2 5248 then lo_cv_with_autoopts_config=autoopts-config 5249 elif libopts-config --help 2>/dev/null 1>&2 5250 then lo_cv_with_autoopts_config=libopts-config 5251 else lo_cv_with_autoopts_config=no ; fi 5252fi 5253echo "$as_me:$LINENO: result: $lo_cv_with_autoopts_config" >&5 5254echo "${ECHO_T}$lo_cv_with_autoopts_config" >&6 5255 5256fi; # end of AC_ARG_WITH 5257 5258 if test "${lo_cv_test_autoopts+set}" = set; then 5259 echo $ECHO_N "(cached) $ECHO_C" >&6 5260else 5261 5262 if test -z "${lo_cv_with_autoopts_config}" \ 5263 -o X"${lo_cv_with_autoopts_config}" = Xno 5264 then 5265 if autoopts-config --help 2>/dev/null 1>&2 5266 then lo_cv_with_autoopts_config=autoopts-config 5267 elif libopts-config --help 2>/dev/null 1>&2 5268 then lo_cv_with_autoopts_config=libopts-config 5269 else lo_cv_with_autoopts_config=false ; fi 5270 fi 5271 lo_cv_test_autoopts=` 5272 ${lo_cv_with_autoopts_config} --libs` 2> /dev/null 5273 if test $? -ne 0 -o -z "${lo_cv_test_autoopts}" 5274 then lo_cv_test_autoopts=no ; fi 5275 5276fi 5277 # end of CACHE_VAL 5278 echo "$as_me:$LINENO: result: ${lo_cv_test_autoopts}" >&5 5279echo "${ECHO_T}${lo_cv_test_autoopts}" >&6 5280 5281 if test "X${lo_cv_test_autoopts}" != Xno 5282 then 5283 LIBOPTS_LDADD="${lo_cv_test_autoopts}" 5284 LIBOPTS_CFLAGS="`${lo_cv_with_autoopts_config} --cflags`" 5285 else 5286 LIBOPTS_LDADD='$(top_builddir)/libopts/libopts.la' 5287 LIBOPTS_CFLAGS='-I$(top_srcdir)/libopts' 5288 NEED_LIBOPTS_DIR=true 5289 fi 5290 fi # end of if test -z "${NEED_LIBOPTS_DIR}" 5291 5292 5293 5294if test -n "${NEED_LIBOPTS_DIR}"; then 5295 NEED_LIBOPTS_TRUE= 5296 NEED_LIBOPTS_FALSE='#' 5297else 5298 NEED_LIBOPTS_TRUE='#' 5299 NEED_LIBOPTS_FALSE= 5300fi 5301 5302 5303 5304 LIBOPTS_DIR=libopts 5305 5306 ac_config_files="$ac_config_files libopts/Makefile" 5307 5308 5309 5310 if test -n "${NEED_LIBOPTS_DIR}" ; then 5311 5312 5313if test X${INVOKE_LIBOPTS_MACROS_FIRST_done} != Xyes ; then 5314 # ================= 5315 # AC_HEADER_STDC 5316 # ================= 5317 echo "$as_me:$LINENO: checking for ANSI C header files" >&5 5318echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 5319if test "${ac_cv_header_stdc+set}" = set; then 5320 echo $ECHO_N "(cached) $ECHO_C" >&6 5321else 5322 cat >conftest.$ac_ext <<_ACEOF 5323/* confdefs.h. */ 5324_ACEOF 5325cat confdefs.h >>conftest.$ac_ext 5326cat >>conftest.$ac_ext <<_ACEOF 5327/* end confdefs.h. */ 5328#include <stdlib.h> 5329#include <stdarg.h> 5330#include <string.h> 5331#include <float.h> 5332 5333int 5334main () 5335{ 5336 5337 ; 5338 return 0; 5339} 5340_ACEOF 5341rm -f conftest.$ac_objext 5342if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5343 (eval $ac_compile) 2>conftest.er1 5344 ac_status=$? 5345 grep -v '^ *+' conftest.er1 >conftest.err 5346 rm -f conftest.er1 5347 cat conftest.err >&5 5348 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5349 (exit $ac_status); } && 5350 { ac_try='test -z "$ac_c_werror_flag" 5351 || test ! -s conftest.err' 5352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5353 (eval $ac_try) 2>&5 5354 ac_status=$? 5355 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5356 (exit $ac_status); }; } && 5357 { ac_try='test -s conftest.$ac_objext' 5358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5359 (eval $ac_try) 2>&5 5360 ac_status=$? 5361 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5362 (exit $ac_status); }; }; then 5363 ac_cv_header_stdc=yes 5364else 5365 echo "$as_me: failed program was:" >&5 5366sed 's/^/| /' conftest.$ac_ext >&5 5367 5368ac_cv_header_stdc=no 5369fi 5370rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5371 5372if test $ac_cv_header_stdc = yes; then 5373 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 5374 cat >conftest.$ac_ext <<_ACEOF 5375/* confdefs.h. */ 5376_ACEOF 5377cat confdefs.h >>conftest.$ac_ext 5378cat >>conftest.$ac_ext <<_ACEOF 5379/* end confdefs.h. */ 5380#include <string.h> 5381 5382_ACEOF 5383if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5384 $EGREP "memchr" >/dev/null 2>&1; then 5385 : 5386else 5387 ac_cv_header_stdc=no 5388fi 5389rm -f conftest* 5390 5391fi 5392 5393if test $ac_cv_header_stdc = yes; then 5394 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 5395 cat >conftest.$ac_ext <<_ACEOF 5396/* confdefs.h. */ 5397_ACEOF 5398cat confdefs.h >>conftest.$ac_ext 5399cat >>conftest.$ac_ext <<_ACEOF 5400/* end confdefs.h. */ 5401#include <stdlib.h> 5402 5403_ACEOF 5404if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5405 $EGREP "free" >/dev/null 2>&1; then 5406 : 5407else 5408 ac_cv_header_stdc=no 5409fi 5410rm -f conftest* 5411 5412fi 5413 5414if test $ac_cv_header_stdc = yes; then 5415 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 5416 if test "$cross_compiling" = yes; then 5417 : 5418else 5419 cat >conftest.$ac_ext <<_ACEOF 5420/* confdefs.h. */ 5421_ACEOF 5422cat confdefs.h >>conftest.$ac_ext 5423cat >>conftest.$ac_ext <<_ACEOF 5424/* end confdefs.h. */ 5425#include <ctype.h> 5426#if ((' ' & 0x0FF) == 0x020) 5427# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 5428# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 5429#else 5430# define ISLOWER(c) \ 5431 (('a' <= (c) && (c) <= 'i') \ 5432 || ('j' <= (c) && (c) <= 'r') \ 5433 || ('s' <= (c) && (c) <= 'z')) 5434# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 5435#endif 5436 5437#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 5438int 5439main () 5440{ 5441 int i; 5442 for (i = 0; i < 256; i++) 5443 if (XOR (islower (i), ISLOWER (i)) 5444 || toupper (i) != TOUPPER (i)) 5445 exit(2); 5446 exit (0); 5447} 5448_ACEOF 5449rm -f conftest$ac_exeext 5450if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5451 (eval $ac_link) 2>&5 5452 ac_status=$? 5453 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5454 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5456 (eval $ac_try) 2>&5 5457 ac_status=$? 5458 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5459 (exit $ac_status); }; }; then 5460 : 5461else 5462 echo "$as_me: program exited with status $ac_status" >&5 5463echo "$as_me: failed program was:" >&5 5464sed 's/^/| /' conftest.$ac_ext >&5 5465 5466( exit $ac_status ) 5467ac_cv_header_stdc=no 5468fi 5469rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5470fi 5471fi 5472fi 5473echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 5474echo "${ECHO_T}$ac_cv_header_stdc" >&6 5475if test $ac_cv_header_stdc = yes; then 5476 5477cat >>confdefs.h <<\_ACEOF 5478#define STDC_HEADERS 1 5479_ACEOF 5480 5481fi 5482 5483 # ================= 5484 # AC_HEADER_DIRENT 5485 # ================= 5486 5487 5488 5489 5490 5491ac_header_dirent=no 5492for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 5493 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` 5494echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 5495echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6 5496if eval "test \"\${$as_ac_Header+set}\" = set"; then 5497 echo $ECHO_N "(cached) $ECHO_C" >&6 5498else 5499 cat >conftest.$ac_ext <<_ACEOF 5500/* confdefs.h. */ 5501_ACEOF 5502cat confdefs.h >>conftest.$ac_ext 5503cat >>conftest.$ac_ext <<_ACEOF 5504/* end confdefs.h. */ 5505#include <sys/types.h> 5506#include <$ac_hdr> 5507 5508int 5509main () 5510{ 5511if ((DIR *) 0) 5512return 0; 5513 ; 5514 return 0; 5515} 5516_ACEOF 5517rm -f conftest.$ac_objext 5518if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5519 (eval $ac_compile) 2>conftest.er1 5520 ac_status=$? 5521 grep -v '^ *+' conftest.er1 >conftest.err 5522 rm -f conftest.er1 5523 cat conftest.err >&5 5524 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5525 (exit $ac_status); } && 5526 { ac_try='test -z "$ac_c_werror_flag" 5527 || test ! -s conftest.err' 5528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5529 (eval $ac_try) 2>&5 5530 ac_status=$? 5531 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5532 (exit $ac_status); }; } && 5533 { ac_try='test -s conftest.$ac_objext' 5534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5535 (eval $ac_try) 2>&5 5536 ac_status=$? 5537 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5538 (exit $ac_status); }; }; then 5539 eval "$as_ac_Header=yes" 5540else 5541 echo "$as_me: failed program was:" >&5 5542sed 's/^/| /' conftest.$ac_ext >&5 5543 5544eval "$as_ac_Header=no" 5545fi 5546rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5547fi 5548echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 5549echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 5550if test `eval echo '${'$as_ac_Header'}'` = yes; then 5551 cat >>confdefs.h <<_ACEOF 5552#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 5553_ACEOF 5554 5555ac_header_dirent=$ac_hdr; break 5556fi 5557 5558done 5559# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 5560if test $ac_header_dirent = dirent.h; then 5561 echo "$as_me:$LINENO: checking for library containing opendir" >&5 5562echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 5563if test "${ac_cv_search_opendir+set}" = set; then 5564 echo $ECHO_N "(cached) $ECHO_C" >&6 5565else 5566 ac_func_search_save_LIBS=$LIBS 5567ac_cv_search_opendir=no 5568cat >conftest.$ac_ext <<_ACEOF 5569/* confdefs.h. */ 5570_ACEOF 5571cat confdefs.h >>conftest.$ac_ext 5572cat >>conftest.$ac_ext <<_ACEOF 5573/* end confdefs.h. */ 5574 5575/* Override any gcc2 internal prototype to avoid an error. */ 5576#ifdef __cplusplus 5577extern "C" 5578#endif 5579/* We use char because int might match the return type of a gcc2 5580 builtin and then its argument prototype would still apply. */ 5581char opendir (); 5582int 5583main () 5584{ 5585opendir (); 5586 ; 5587 return 0; 5588} 5589_ACEOF 5590rm -f conftest.$ac_objext conftest$ac_exeext 5591if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5592 (eval $ac_link) 2>conftest.er1 5593 ac_status=$? 5594 grep -v '^ *+' conftest.er1 >conftest.err 5595 rm -f conftest.er1 5596 cat conftest.err >&5 5597 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5598 (exit $ac_status); } && 5599 { ac_try='test -z "$ac_c_werror_flag" 5600 || test ! -s conftest.err' 5601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5602 (eval $ac_try) 2>&5 5603 ac_status=$? 5604 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5605 (exit $ac_status); }; } && 5606 { ac_try='test -s conftest$ac_exeext' 5607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5608 (eval $ac_try) 2>&5 5609 ac_status=$? 5610 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5611 (exit $ac_status); }; }; then 5612 ac_cv_search_opendir="none required" 5613else 5614 echo "$as_me: failed program was:" >&5 5615sed 's/^/| /' conftest.$ac_ext >&5 5616 5617fi 5618rm -f conftest.err conftest.$ac_objext \ 5619 conftest$ac_exeext conftest.$ac_ext 5620if test "$ac_cv_search_opendir" = no; then 5621 for ac_lib in dir; do 5622 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 5623 cat >conftest.$ac_ext <<_ACEOF 5624/* confdefs.h. */ 5625_ACEOF 5626cat confdefs.h >>conftest.$ac_ext 5627cat >>conftest.$ac_ext <<_ACEOF 5628/* end confdefs.h. */ 5629 5630/* Override any gcc2 internal prototype to avoid an error. */ 5631#ifdef __cplusplus 5632extern "C" 5633#endif 5634/* We use char because int might match the return type of a gcc2 5635 builtin and then its argument prototype would still apply. */ 5636char opendir (); 5637int 5638main () 5639{ 5640opendir (); 5641 ; 5642 return 0; 5643} 5644_ACEOF 5645rm -f conftest.$ac_objext conftest$ac_exeext 5646if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5647 (eval $ac_link) 2>conftest.er1 5648 ac_status=$? 5649 grep -v '^ *+' conftest.er1 >conftest.err 5650 rm -f conftest.er1 5651 cat conftest.err >&5 5652 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5653 (exit $ac_status); } && 5654 { ac_try='test -z "$ac_c_werror_flag" 5655 || test ! -s conftest.err' 5656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5657 (eval $ac_try) 2>&5 5658 ac_status=$? 5659 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5660 (exit $ac_status); }; } && 5661 { ac_try='test -s conftest$ac_exeext' 5662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5663 (eval $ac_try) 2>&5 5664 ac_status=$? 5665 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5666 (exit $ac_status); }; }; then 5667 ac_cv_search_opendir="-l$ac_lib" 5668break 5669else 5670 echo "$as_me: failed program was:" >&5 5671sed 's/^/| /' conftest.$ac_ext >&5 5672 5673fi 5674rm -f conftest.err conftest.$ac_objext \ 5675 conftest$ac_exeext conftest.$ac_ext 5676 done 5677fi 5678LIBS=$ac_func_search_save_LIBS 5679fi 5680echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 5681echo "${ECHO_T}$ac_cv_search_opendir" >&6 5682if test "$ac_cv_search_opendir" != no; then 5683 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" 5684 5685fi 5686 5687else 5688 echo "$as_me:$LINENO: checking for library containing opendir" >&5 5689echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 5690if test "${ac_cv_search_opendir+set}" = set; then 5691 echo $ECHO_N "(cached) $ECHO_C" >&6 5692else 5693 ac_func_search_save_LIBS=$LIBS 5694ac_cv_search_opendir=no 5695cat >conftest.$ac_ext <<_ACEOF 5696/* confdefs.h. */ 5697_ACEOF 5698cat confdefs.h >>conftest.$ac_ext 5699cat >>conftest.$ac_ext <<_ACEOF 5700/* end confdefs.h. */ 5701 5702/* Override any gcc2 internal prototype to avoid an error. */ 5703#ifdef __cplusplus 5704extern "C" 5705#endif 5706/* We use char because int might match the return type of a gcc2 5707 builtin and then its argument prototype would still apply. */ 5708char opendir (); 5709int 5710main () 5711{ 5712opendir (); 5713 ; 5714 return 0; 5715} 5716_ACEOF 5717rm -f conftest.$ac_objext conftest$ac_exeext 5718if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5719 (eval $ac_link) 2>conftest.er1 5720 ac_status=$? 5721 grep -v '^ *+' conftest.er1 >conftest.err 5722 rm -f conftest.er1 5723 cat conftest.err >&5 5724 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5725 (exit $ac_status); } && 5726 { ac_try='test -z "$ac_c_werror_flag" 5727 || test ! -s conftest.err' 5728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5729 (eval $ac_try) 2>&5 5730 ac_status=$? 5731 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5732 (exit $ac_status); }; } && 5733 { ac_try='test -s conftest$ac_exeext' 5734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5735 (eval $ac_try) 2>&5 5736 ac_status=$? 5737 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5738 (exit $ac_status); }; }; then 5739 ac_cv_search_opendir="none required" 5740else 5741 echo "$as_me: failed program was:" >&5 5742sed 's/^/| /' conftest.$ac_ext >&5 5743 5744fi 5745rm -f conftest.err conftest.$ac_objext \ 5746 conftest$ac_exeext conftest.$ac_ext 5747if test "$ac_cv_search_opendir" = no; then 5748 for ac_lib in x; do 5749 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 5750 cat >conftest.$ac_ext <<_ACEOF 5751/* confdefs.h. */ 5752_ACEOF 5753cat confdefs.h >>conftest.$ac_ext 5754cat >>conftest.$ac_ext <<_ACEOF 5755/* end confdefs.h. */ 5756 5757/* Override any gcc2 internal prototype to avoid an error. */ 5758#ifdef __cplusplus 5759extern "C" 5760#endif 5761/* We use char because int might match the return type of a gcc2 5762 builtin and then its argument prototype would still apply. */ 5763char opendir (); 5764int 5765main () 5766{ 5767opendir (); 5768 ; 5769 return 0; 5770} 5771_ACEOF 5772rm -f conftest.$ac_objext conftest$ac_exeext 5773if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5774 (eval $ac_link) 2>conftest.er1 5775 ac_status=$? 5776 grep -v '^ *+' conftest.er1 >conftest.err 5777 rm -f conftest.er1 5778 cat conftest.err >&5 5779 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5780 (exit $ac_status); } && 5781 { ac_try='test -z "$ac_c_werror_flag" 5782 || test ! -s conftest.err' 5783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5784 (eval $ac_try) 2>&5 5785 ac_status=$? 5786 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5787 (exit $ac_status); }; } && 5788 { ac_try='test -s conftest$ac_exeext' 5789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5790 (eval $ac_try) 2>&5 5791 ac_status=$? 5792 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5793 (exit $ac_status); }; }; then 5794 ac_cv_search_opendir="-l$ac_lib" 5795break 5796else 5797 echo "$as_me: failed program was:" >&5 5798sed 's/^/| /' conftest.$ac_ext >&5 5799 5800fi 5801rm -f conftest.err conftest.$ac_objext \ 5802 conftest$ac_exeext conftest.$ac_ext 5803 done 5804fi 5805LIBS=$ac_func_search_save_LIBS 5806fi 5807echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 5808echo "${ECHO_T}$ac_cv_search_opendir" >&6 5809if test "$ac_cv_search_opendir" != no; then 5810 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" 5811 5812fi 5813 5814fi 5815 5816 5817 # ================= 5818 # AC_CHECK_HEADERS 5819 # ================= 5820 5821 5822 5823 5824 5825 5826 5827 5828 5829 5830 5831 5832 5833 5834 5835 5836 5837 5838 5839 5840for ac_header in dlfcn.h errno.h fcntl.h libgen.h memory.h netinet/in.h \ 5841 setjmp.h sys/mman.h sys/param.h sys/poll.h sys/procset.h sys/select.h \ 5842 sys/socket.h sys/stropts.h sys/time.h sys/un.h sys/wait.h unistd.h \ 5843 utime.h sysexits.h 5844do 5845as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 5846if eval "test \"\${$as_ac_Header+set}\" = set"; then 5847 echo "$as_me:$LINENO: checking for $ac_header" >&5 5848echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 5849if eval "test \"\${$as_ac_Header+set}\" = set"; then 5850 echo $ECHO_N "(cached) $ECHO_C" >&6 5851fi 5852echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 5853echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 5854else 5855 # Is the header compilable? 5856echo "$as_me:$LINENO: checking $ac_header usability" >&5 5857echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 5858cat >conftest.$ac_ext <<_ACEOF 5859/* confdefs.h. */ 5860_ACEOF 5861cat confdefs.h >>conftest.$ac_ext 5862cat >>conftest.$ac_ext <<_ACEOF 5863/* end confdefs.h. */ 5864$ac_includes_default 5865#include <$ac_header> 5866_ACEOF 5867rm -f conftest.$ac_objext 5868if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5869 (eval $ac_compile) 2>conftest.er1 5870 ac_status=$? 5871 grep -v '^ *+' conftest.er1 >conftest.err 5872 rm -f conftest.er1 5873 cat conftest.err >&5 5874 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5875 (exit $ac_status); } && 5876 { ac_try='test -z "$ac_c_werror_flag" 5877 || test ! -s conftest.err' 5878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5879 (eval $ac_try) 2>&5 5880 ac_status=$? 5881 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5882 (exit $ac_status); }; } && 5883 { ac_try='test -s conftest.$ac_objext' 5884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5885 (eval $ac_try) 2>&5 5886 ac_status=$? 5887 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5888 (exit $ac_status); }; }; then 5889 ac_header_compiler=yes 5890else 5891 echo "$as_me: failed program was:" >&5 5892sed 's/^/| /' conftest.$ac_ext >&5 5893 5894ac_header_compiler=no 5895fi 5896rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5897echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5898echo "${ECHO_T}$ac_header_compiler" >&6 5899 5900# Is the header present? 5901echo "$as_me:$LINENO: checking $ac_header presence" >&5 5902echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 5903cat >conftest.$ac_ext <<_ACEOF 5904/* confdefs.h. */ 5905_ACEOF 5906cat confdefs.h >>conftest.$ac_ext 5907cat >>conftest.$ac_ext <<_ACEOF 5908/* end confdefs.h. */ 5909#include <$ac_header> 5910_ACEOF 5911if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5912 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5913 ac_status=$? 5914 grep -v '^ *+' conftest.er1 >conftest.err 5915 rm -f conftest.er1 5916 cat conftest.err >&5 5917 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5918 (exit $ac_status); } >/dev/null; then 5919 if test -s conftest.err; then 5920 ac_cpp_err=$ac_c_preproc_warn_flag 5921 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 5922 else 5923 ac_cpp_err= 5924 fi 5925else 5926 ac_cpp_err=yes 5927fi 5928if test -z "$ac_cpp_err"; then 5929 ac_header_preproc=yes 5930else 5931 echo "$as_me: failed program was:" >&5 5932sed 's/^/| /' conftest.$ac_ext >&5 5933 5934 ac_header_preproc=no 5935fi 5936rm -f conftest.err conftest.$ac_ext 5937echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5938echo "${ECHO_T}$ac_header_preproc" >&6 5939 5940# So? What about this header? 5941case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5942 yes:no: ) 5943 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 5944echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 5945 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 5946echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 5947 ac_header_preproc=yes 5948 ;; 5949 no:yes:* ) 5950 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 5951echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 5952 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 5953echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 5954 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 5955echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 5956 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 5957echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 5958 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 5959echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 5960 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 5961echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 5962 ( 5963 cat <<\_ASBOX 5964## ------------------------------ ## 5965## Report this to the ntp lists. ## 5966## ------------------------------ ## 5967_ASBOX 5968 ) | 5969 sed "s/^/$as_me: WARNING: /" >&2 5970 ;; 5971esac 5972echo "$as_me:$LINENO: checking for $ac_header" >&5 5973echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 5974if eval "test \"\${$as_ac_Header+set}\" = set"; then 5975 echo $ECHO_N "(cached) $ECHO_C" >&6 5976else 5977 eval "$as_ac_Header=\$ac_header_preproc" 5978fi 5979echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 5980echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 5981 5982fi 5983if test `eval echo '${'$as_ac_Header'}'` = yes; then 5984 cat >>confdefs.h <<_ACEOF 5985#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5986_ACEOF 5987 5988fi 5989 5990done 5991 5992 5993 # -------------------------------------------- 5994 # Verify certain entries from AC_CHECK_HEADERS 5995 # -------------------------------------------- 5996 for f in sys_types sys_mman sys_param sys_stat sys_wait \ 5997 string errno stdlib memory setjmp 5998 do eval as_ac_var=\${ac_cv_header_${f}_h+set} 5999 test "${as_ac_var}" = set || \ 6000 { { echo "$as_me:$LINENO: error: You must have ${f}.h on your system" >&5 6001echo "$as_me: error: You must have ${f}.h on your system" >&2;} 6002 { (exit 1); exit 1; }; } 6003 done 6004 6005 # ================================================ 6006 # AC_CHECK_HEADERS: stdarg.h is present define HAVE_STDARG_H, otherwise 6007 # if varargs.h is present define HAVE_VARARGS_H. 6008 # ================================================ 6009 6010 6011for ac_header in stdarg.h varargs.h 6012do 6013as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 6014if eval "test \"\${$as_ac_Header+set}\" = set"; then 6015 echo "$as_me:$LINENO: checking for $ac_header" >&5 6016echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 6017if eval "test \"\${$as_ac_Header+set}\" = set"; then 6018 echo $ECHO_N "(cached) $ECHO_C" >&6 6019fi 6020echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 6021echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 6022else 6023 # Is the header compilable? 6024echo "$as_me:$LINENO: checking $ac_header usability" >&5 6025echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 6026cat >conftest.$ac_ext <<_ACEOF 6027/* confdefs.h. */ 6028_ACEOF 6029cat confdefs.h >>conftest.$ac_ext 6030cat >>conftest.$ac_ext <<_ACEOF 6031/* end confdefs.h. */ 6032$ac_includes_default 6033#include <$ac_header> 6034_ACEOF 6035rm -f conftest.$ac_objext 6036if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6037 (eval $ac_compile) 2>conftest.er1 6038 ac_status=$? 6039 grep -v '^ *+' conftest.er1 >conftest.err 6040 rm -f conftest.er1 6041 cat conftest.err >&5 6042 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6043 (exit $ac_status); } && 6044 { ac_try='test -z "$ac_c_werror_flag" 6045 || test ! -s conftest.err' 6046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6047 (eval $ac_try) 2>&5 6048 ac_status=$? 6049 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6050 (exit $ac_status); }; } && 6051 { ac_try='test -s conftest.$ac_objext' 6052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6053 (eval $ac_try) 2>&5 6054 ac_status=$? 6055 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6056 (exit $ac_status); }; }; then 6057 ac_header_compiler=yes 6058else 6059 echo "$as_me: failed program was:" >&5 6060sed 's/^/| /' conftest.$ac_ext >&5 6061 6062ac_header_compiler=no 6063fi 6064rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6065echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6066echo "${ECHO_T}$ac_header_compiler" >&6 6067 6068# Is the header present? 6069echo "$as_me:$LINENO: checking $ac_header presence" >&5 6070echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 6071cat >conftest.$ac_ext <<_ACEOF 6072/* confdefs.h. */ 6073_ACEOF 6074cat confdefs.h >>conftest.$ac_ext 6075cat >>conftest.$ac_ext <<_ACEOF 6076/* end confdefs.h. */ 6077#include <$ac_header> 6078_ACEOF 6079if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 6080 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 6081 ac_status=$? 6082 grep -v '^ *+' conftest.er1 >conftest.err 6083 rm -f conftest.er1 6084 cat conftest.err >&5 6085 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6086 (exit $ac_status); } >/dev/null; then 6087 if test -s conftest.err; then 6088 ac_cpp_err=$ac_c_preproc_warn_flag 6089 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 6090 else 6091 ac_cpp_err= 6092 fi 6093else 6094 ac_cpp_err=yes 6095fi 6096if test -z "$ac_cpp_err"; then 6097 ac_header_preproc=yes 6098else 6099 echo "$as_me: failed program was:" >&5 6100sed 's/^/| /' conftest.$ac_ext >&5 6101 6102 ac_header_preproc=no 6103fi 6104rm -f conftest.err conftest.$ac_ext 6105echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6106echo "${ECHO_T}$ac_header_preproc" >&6 6107 6108# So? What about this header? 6109case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6110 yes:no: ) 6111 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 6112echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 6113 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 6114echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 6115 ac_header_preproc=yes 6116 ;; 6117 no:yes:* ) 6118 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 6119echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 6120 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 6121echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 6122 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 6123echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 6124 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 6125echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 6126 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 6127echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 6128 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 6129echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 6130 ( 6131 cat <<\_ASBOX 6132## ------------------------------ ## 6133## Report this to the ntp lists. ## 6134## ------------------------------ ## 6135_ASBOX 6136 ) | 6137 sed "s/^/$as_me: WARNING: /" >&2 6138 ;; 6139esac 6140echo "$as_me:$LINENO: checking for $ac_header" >&5 6141echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 6142if eval "test \"\${$as_ac_Header+set}\" = set"; then 6143 echo $ECHO_N "(cached) $ECHO_C" >&6 6144else 6145 eval "$as_ac_Header=\$ac_header_preproc" 6146fi 6147echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 6148echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 6149 6150fi 6151if test `eval echo '${'$as_ac_Header'}'` = yes; then 6152 cat >>confdefs.h <<_ACEOF 6153#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 6154_ACEOF 6155 break 6156fi 6157 6158done 6159 6160 if test `eval echo '${'$as_ac_Header'}'` != yes; then 6161 { { echo "$as_me:$LINENO: error: You must have stdarg.h or varargs.h on your system" >&5 6162echo "$as_me: error: You must have stdarg.h or varargs.h on your system" >&2;} 6163 { (exit 1); exit 1; }; } 6164 fi 6165 6166 # ================================================ 6167 # Similarly for the string.h and strings.h headers 6168 # ================================================ 6169 6170 6171for ac_header in string.h strings.h 6172do 6173as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 6174if eval "test \"\${$as_ac_Header+set}\" = set"; then 6175 echo "$as_me:$LINENO: checking for $ac_header" >&5 6176echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 6177if eval "test \"\${$as_ac_Header+set}\" = set"; then 6178 echo $ECHO_N "(cached) $ECHO_C" >&6 6179fi 6180echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 6181echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 6182else 6183 # Is the header compilable? 6184echo "$as_me:$LINENO: checking $ac_header usability" >&5 6185echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 6186cat >conftest.$ac_ext <<_ACEOF 6187/* confdefs.h. */ 6188_ACEOF 6189cat confdefs.h >>conftest.$ac_ext 6190cat >>conftest.$ac_ext <<_ACEOF 6191/* end confdefs.h. */ 6192$ac_includes_default 6193#include <$ac_header> 6194_ACEOF 6195rm -f conftest.$ac_objext 6196if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6197 (eval $ac_compile) 2>conftest.er1 6198 ac_status=$? 6199 grep -v '^ *+' conftest.er1 >conftest.err 6200 rm -f conftest.er1 6201 cat conftest.err >&5 6202 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6203 (exit $ac_status); } && 6204 { ac_try='test -z "$ac_c_werror_flag" 6205 || test ! -s conftest.err' 6206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6207 (eval $ac_try) 2>&5 6208 ac_status=$? 6209 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6210 (exit $ac_status); }; } && 6211 { ac_try='test -s conftest.$ac_objext' 6212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6213 (eval $ac_try) 2>&5 6214 ac_status=$? 6215 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6216 (exit $ac_status); }; }; then 6217 ac_header_compiler=yes 6218else 6219 echo "$as_me: failed program was:" >&5 6220sed 's/^/| /' conftest.$ac_ext >&5 6221 6222ac_header_compiler=no 6223fi 6224rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6225echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6226echo "${ECHO_T}$ac_header_compiler" >&6 6227 6228# Is the header present? 6229echo "$as_me:$LINENO: checking $ac_header presence" >&5 6230echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 6231cat >conftest.$ac_ext <<_ACEOF 6232/* confdefs.h. */ 6233_ACEOF 6234cat confdefs.h >>conftest.$ac_ext 6235cat >>conftest.$ac_ext <<_ACEOF 6236/* end confdefs.h. */ 6237#include <$ac_header> 6238_ACEOF 6239if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 6240 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 6241 ac_status=$? 6242 grep -v '^ *+' conftest.er1 >conftest.err 6243 rm -f conftest.er1 6244 cat conftest.err >&5 6245 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6246 (exit $ac_status); } >/dev/null; then 6247 if test -s conftest.err; then 6248 ac_cpp_err=$ac_c_preproc_warn_flag 6249 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 6250 else 6251 ac_cpp_err= 6252 fi 6253else 6254 ac_cpp_err=yes 6255fi 6256if test -z "$ac_cpp_err"; then 6257 ac_header_preproc=yes 6258else 6259 echo "$as_me: failed program was:" >&5 6260sed 's/^/| /' conftest.$ac_ext >&5 6261 6262 ac_header_preproc=no 6263fi 6264rm -f conftest.err conftest.$ac_ext 6265echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6266echo "${ECHO_T}$ac_header_preproc" >&6 6267 6268# So? What about this header? 6269case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6270 yes:no: ) 6271 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 6272echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 6273 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 6274echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 6275 ac_header_preproc=yes 6276 ;; 6277 no:yes:* ) 6278 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 6279echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 6280 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 6281echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 6282 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 6283echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 6284 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 6285echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 6286 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 6287echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 6288 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 6289echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 6290 ( 6291 cat <<\_ASBOX 6292## ------------------------------ ## 6293## Report this to the ntp lists. ## 6294## ------------------------------ ## 6295_ASBOX 6296 ) | 6297 sed "s/^/$as_me: WARNING: /" >&2 6298 ;; 6299esac 6300echo "$as_me:$LINENO: checking for $ac_header" >&5 6301echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 6302if eval "test \"\${$as_ac_Header+set}\" = set"; then 6303 echo $ECHO_N "(cached) $ECHO_C" >&6 6304else 6305 eval "$as_ac_Header=\$ac_header_preproc" 6306fi 6307echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 6308echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 6309 6310fi 6311if test `eval echo '${'$as_ac_Header'}'` = yes; then 6312 cat >>confdefs.h <<_ACEOF 6313#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 6314_ACEOF 6315 break 6316fi 6317 6318done 6319 6320 if test `eval echo '${'$as_ac_Header'}'` != yes; then 6321 { { echo "$as_me:$LINENO: error: You must have string.h or strings.h on your system" >&5 6322echo "$as_me: error: You must have string.h or strings.h on your system" >&2;} 6323 { (exit 1); exit 1; }; } 6324 fi 6325 6326 # ===================== 6327 # ...and limits headers 6328 # ===================== 6329 6330 6331 6332for ac_header in limits.h sys/limits.h values.h 6333do 6334as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 6335if eval "test \"\${$as_ac_Header+set}\" = set"; then 6336 echo "$as_me:$LINENO: checking for $ac_header" >&5 6337echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 6338if eval "test \"\${$as_ac_Header+set}\" = set"; then 6339 echo $ECHO_N "(cached) $ECHO_C" >&6 6340fi 6341echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 6342echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 6343else 6344 # Is the header compilable? 6345echo "$as_me:$LINENO: checking $ac_header usability" >&5 6346echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 6347cat >conftest.$ac_ext <<_ACEOF 6348/* confdefs.h. */ 6349_ACEOF 6350cat confdefs.h >>conftest.$ac_ext 6351cat >>conftest.$ac_ext <<_ACEOF 6352/* end confdefs.h. */ 6353$ac_includes_default 6354#include <$ac_header> 6355_ACEOF 6356rm -f conftest.$ac_objext 6357if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6358 (eval $ac_compile) 2>conftest.er1 6359 ac_status=$? 6360 grep -v '^ *+' conftest.er1 >conftest.err 6361 rm -f conftest.er1 6362 cat conftest.err >&5 6363 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6364 (exit $ac_status); } && 6365 { ac_try='test -z "$ac_c_werror_flag" 6366 || test ! -s conftest.err' 6367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6368 (eval $ac_try) 2>&5 6369 ac_status=$? 6370 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6371 (exit $ac_status); }; } && 6372 { ac_try='test -s conftest.$ac_objext' 6373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6374 (eval $ac_try) 2>&5 6375 ac_status=$? 6376 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6377 (exit $ac_status); }; }; then 6378 ac_header_compiler=yes 6379else 6380 echo "$as_me: failed program was:" >&5 6381sed 's/^/| /' conftest.$ac_ext >&5 6382 6383ac_header_compiler=no 6384fi 6385rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6386echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6387echo "${ECHO_T}$ac_header_compiler" >&6 6388 6389# Is the header present? 6390echo "$as_me:$LINENO: checking $ac_header presence" >&5 6391echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 6392cat >conftest.$ac_ext <<_ACEOF 6393/* confdefs.h. */ 6394_ACEOF 6395cat confdefs.h >>conftest.$ac_ext 6396cat >>conftest.$ac_ext <<_ACEOF 6397/* end confdefs.h. */ 6398#include <$ac_header> 6399_ACEOF 6400if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 6401 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 6402 ac_status=$? 6403 grep -v '^ *+' conftest.er1 >conftest.err 6404 rm -f conftest.er1 6405 cat conftest.err >&5 6406 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6407 (exit $ac_status); } >/dev/null; then 6408 if test -s conftest.err; then 6409 ac_cpp_err=$ac_c_preproc_warn_flag 6410 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 6411 else 6412 ac_cpp_err= 6413 fi 6414else 6415 ac_cpp_err=yes 6416fi 6417if test -z "$ac_cpp_err"; then 6418 ac_header_preproc=yes 6419else 6420 echo "$as_me: failed program was:" >&5 6421sed 's/^/| /' conftest.$ac_ext >&5 6422 6423 ac_header_preproc=no 6424fi 6425rm -f conftest.err conftest.$ac_ext 6426echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6427echo "${ECHO_T}$ac_header_preproc" >&6 6428 6429# So? What about this header? 6430case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6431 yes:no: ) 6432 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 6433echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 6434 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 6435echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 6436 ac_header_preproc=yes 6437 ;; 6438 no:yes:* ) 6439 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 6440echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 6441 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 6442echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 6443 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 6444echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 6445 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 6446echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 6447 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 6448echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 6449 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 6450echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 6451 ( 6452 cat <<\_ASBOX 6453## ------------------------------ ## 6454## Report this to the ntp lists. ## 6455## ------------------------------ ## 6456_ASBOX 6457 ) | 6458 sed "s/^/$as_me: WARNING: /" >&2 6459 ;; 6460esac 6461echo "$as_me:$LINENO: checking for $ac_header" >&5 6462echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 6463if eval "test \"\${$as_ac_Header+set}\" = set"; then 6464 echo $ECHO_N "(cached) $ECHO_C" >&6 6465else 6466 eval "$as_ac_Header=\$ac_header_preproc" 6467fi 6468echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 6469echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 6470 6471fi 6472if test `eval echo '${'$as_ac_Header'}'` = yes; then 6473 cat >>confdefs.h <<_ACEOF 6474#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 6475_ACEOF 6476 break 6477fi 6478 6479done 6480 6481 if test `eval echo '${'$as_ac_Header'}'` != yes; then 6482 { { echo "$as_me:$LINENO: error: You must have one of limits.h, sys/limits.h or values.h" >&5 6483echo "$as_me: error: You must have one of limits.h, sys/limits.h or values.h" >&2;} 6484 { (exit 1); exit 1; }; } 6485 fi 6486 6487 # ======================== 6488 # ...and int types headers 6489 # ======================== 6490 6491 6492for ac_header in stdint.h inttypes.h 6493do 6494as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 6495if eval "test \"\${$as_ac_Header+set}\" = set"; then 6496 echo "$as_me:$LINENO: checking for $ac_header" >&5 6497echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 6498if eval "test \"\${$as_ac_Header+set}\" = set"; then 6499 echo $ECHO_N "(cached) $ECHO_C" >&6 6500fi 6501echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 6502echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 6503else 6504 # Is the header compilable? 6505echo "$as_me:$LINENO: checking $ac_header usability" >&5 6506echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 6507cat >conftest.$ac_ext <<_ACEOF 6508/* confdefs.h. */ 6509_ACEOF 6510cat confdefs.h >>conftest.$ac_ext 6511cat >>conftest.$ac_ext <<_ACEOF 6512/* end confdefs.h. */ 6513$ac_includes_default 6514#include <$ac_header> 6515_ACEOF 6516rm -f conftest.$ac_objext 6517if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6518 (eval $ac_compile) 2>conftest.er1 6519 ac_status=$? 6520 grep -v '^ *+' conftest.er1 >conftest.err 6521 rm -f conftest.er1 6522 cat conftest.err >&5 6523 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6524 (exit $ac_status); } && 6525 { ac_try='test -z "$ac_c_werror_flag" 6526 || test ! -s conftest.err' 6527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6528 (eval $ac_try) 2>&5 6529 ac_status=$? 6530 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6531 (exit $ac_status); }; } && 6532 { ac_try='test -s conftest.$ac_objext' 6533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6534 (eval $ac_try) 2>&5 6535 ac_status=$? 6536 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6537 (exit $ac_status); }; }; then 6538 ac_header_compiler=yes 6539else 6540 echo "$as_me: failed program was:" >&5 6541sed 's/^/| /' conftest.$ac_ext >&5 6542 6543ac_header_compiler=no 6544fi 6545rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6546echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6547echo "${ECHO_T}$ac_header_compiler" >&6 6548 6549# Is the header present? 6550echo "$as_me:$LINENO: checking $ac_header presence" >&5 6551echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 6552cat >conftest.$ac_ext <<_ACEOF 6553/* confdefs.h. */ 6554_ACEOF 6555cat confdefs.h >>conftest.$ac_ext 6556cat >>conftest.$ac_ext <<_ACEOF 6557/* end confdefs.h. */ 6558#include <$ac_header> 6559_ACEOF 6560if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 6561 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 6562 ac_status=$? 6563 grep -v '^ *+' conftest.er1 >conftest.err 6564 rm -f conftest.er1 6565 cat conftest.err >&5 6566 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6567 (exit $ac_status); } >/dev/null; then 6568 if test -s conftest.err; then 6569 ac_cpp_err=$ac_c_preproc_warn_flag 6570 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 6571 else 6572 ac_cpp_err= 6573 fi 6574else 6575 ac_cpp_err=yes 6576fi 6577if test -z "$ac_cpp_err"; then 6578 ac_header_preproc=yes 6579else 6580 echo "$as_me: failed program was:" >&5 6581sed 's/^/| /' conftest.$ac_ext >&5 6582 6583 ac_header_preproc=no 6584fi 6585rm -f conftest.err conftest.$ac_ext 6586echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6587echo "${ECHO_T}$ac_header_preproc" >&6 6588 6589# So? What about this header? 6590case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6591 yes:no: ) 6592 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 6593echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 6594 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 6595echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 6596 ac_header_preproc=yes 6597 ;; 6598 no:yes:* ) 6599 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 6600echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 6601 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 6602echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 6603 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 6604echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 6605 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 6606echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 6607 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 6608echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 6609 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 6610echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 6611 ( 6612 cat <<\_ASBOX 6613## ------------------------------ ## 6614## Report this to the ntp lists. ## 6615## ------------------------------ ## 6616_ASBOX 6617 ) | 6618 sed "s/^/$as_me: WARNING: /" >&2 6619 ;; 6620esac 6621echo "$as_me:$LINENO: checking for $ac_header" >&5 6622echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 6623if eval "test \"\${$as_ac_Header+set}\" = set"; then 6624 echo $ECHO_N "(cached) $ECHO_C" >&6 6625else 6626 eval "$as_ac_Header=\$ac_header_preproc" 6627fi 6628echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 6629echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 6630 6631fi 6632if test `eval echo '${'$as_ac_Header'}'` = yes; then 6633 cat >>confdefs.h <<_ACEOF 6634#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 6635_ACEOF 6636 break 6637fi 6638 6639done 6640 6641 echo "$as_me:$LINENO: checking for int8_t" >&5 6642echo $ECHO_N "checking for int8_t... $ECHO_C" >&6 6643if test "${ac_cv_type_int8_t+set}" = set; then 6644 echo $ECHO_N "(cached) $ECHO_C" >&6 6645else 6646 cat >conftest.$ac_ext <<_ACEOF 6647/* confdefs.h. */ 6648_ACEOF 6649cat confdefs.h >>conftest.$ac_ext 6650cat >>conftest.$ac_ext <<_ACEOF 6651/* end confdefs.h. */ 6652$ac_includes_default 6653int 6654main () 6655{ 6656if ((int8_t *) 0) 6657 return 0; 6658if (sizeof (int8_t)) 6659 return 0; 6660 ; 6661 return 0; 6662} 6663_ACEOF 6664rm -f conftest.$ac_objext 6665if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6666 (eval $ac_compile) 2>conftest.er1 6667 ac_status=$? 6668 grep -v '^ *+' conftest.er1 >conftest.err 6669 rm -f conftest.er1 6670 cat conftest.err >&5 6671 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6672 (exit $ac_status); } && 6673 { ac_try='test -z "$ac_c_werror_flag" 6674 || test ! -s conftest.err' 6675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6676 (eval $ac_try) 2>&5 6677 ac_status=$? 6678 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6679 (exit $ac_status); }; } && 6680 { ac_try='test -s conftest.$ac_objext' 6681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6682 (eval $ac_try) 2>&5 6683 ac_status=$? 6684 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6685 (exit $ac_status); }; }; then 6686 ac_cv_type_int8_t=yes 6687else 6688 echo "$as_me: failed program was:" >&5 6689sed 's/^/| /' conftest.$ac_ext >&5 6690 6691ac_cv_type_int8_t=no 6692fi 6693rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6694fi 6695echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5 6696echo "${ECHO_T}$ac_cv_type_int8_t" >&6 6697if test $ac_cv_type_int8_t = yes; then 6698 6699cat >>confdefs.h <<_ACEOF 6700#define HAVE_INT8_T 1 6701_ACEOF 6702 6703 6704fi 6705echo "$as_me:$LINENO: checking for uint8_t" >&5 6706echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6 6707if test "${ac_cv_type_uint8_t+set}" = set; then 6708 echo $ECHO_N "(cached) $ECHO_C" >&6 6709else 6710 cat >conftest.$ac_ext <<_ACEOF 6711/* confdefs.h. */ 6712_ACEOF 6713cat confdefs.h >>conftest.$ac_ext 6714cat >>conftest.$ac_ext <<_ACEOF 6715/* end confdefs.h. */ 6716$ac_includes_default 6717int 6718main () 6719{ 6720if ((uint8_t *) 0) 6721 return 0; 6722if (sizeof (uint8_t)) 6723 return 0; 6724 ; 6725 return 0; 6726} 6727_ACEOF 6728rm -f conftest.$ac_objext 6729if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6730 (eval $ac_compile) 2>conftest.er1 6731 ac_status=$? 6732 grep -v '^ *+' conftest.er1 >conftest.err 6733 rm -f conftest.er1 6734 cat conftest.err >&5 6735 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6736 (exit $ac_status); } && 6737 { ac_try='test -z "$ac_c_werror_flag" 6738 || test ! -s conftest.err' 6739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6740 (eval $ac_try) 2>&5 6741 ac_status=$? 6742 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6743 (exit $ac_status); }; } && 6744 { ac_try='test -s conftest.$ac_objext' 6745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6746 (eval $ac_try) 2>&5 6747 ac_status=$? 6748 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6749 (exit $ac_status); }; }; then 6750 ac_cv_type_uint8_t=yes 6751else 6752 echo "$as_me: failed program was:" >&5 6753sed 's/^/| /' conftest.$ac_ext >&5 6754 6755ac_cv_type_uint8_t=no 6756fi 6757rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6758fi 6759echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5 6760echo "${ECHO_T}$ac_cv_type_uint8_t" >&6 6761if test $ac_cv_type_uint8_t = yes; then 6762 6763cat >>confdefs.h <<_ACEOF 6764#define HAVE_UINT8_T 1 6765_ACEOF 6766 6767 6768fi 6769echo "$as_me:$LINENO: checking for int16_t" >&5 6770echo $ECHO_N "checking for int16_t... $ECHO_C" >&6 6771if test "${ac_cv_type_int16_t+set}" = set; then 6772 echo $ECHO_N "(cached) $ECHO_C" >&6 6773else 6774 cat >conftest.$ac_ext <<_ACEOF 6775/* confdefs.h. */ 6776_ACEOF 6777cat confdefs.h >>conftest.$ac_ext 6778cat >>conftest.$ac_ext <<_ACEOF 6779/* end confdefs.h. */ 6780$ac_includes_default 6781int 6782main () 6783{ 6784if ((int16_t *) 0) 6785 return 0; 6786if (sizeof (int16_t)) 6787 return 0; 6788 ; 6789 return 0; 6790} 6791_ACEOF 6792rm -f conftest.$ac_objext 6793if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6794 (eval $ac_compile) 2>conftest.er1 6795 ac_status=$? 6796 grep -v '^ *+' conftest.er1 >conftest.err 6797 rm -f conftest.er1 6798 cat conftest.err >&5 6799 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6800 (exit $ac_status); } && 6801 { ac_try='test -z "$ac_c_werror_flag" 6802 || test ! -s conftest.err' 6803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6804 (eval $ac_try) 2>&5 6805 ac_status=$? 6806 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6807 (exit $ac_status); }; } && 6808 { ac_try='test -s conftest.$ac_objext' 6809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6810 (eval $ac_try) 2>&5 6811 ac_status=$? 6812 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6813 (exit $ac_status); }; }; then 6814 ac_cv_type_int16_t=yes 6815else 6816 echo "$as_me: failed program was:" >&5 6817sed 's/^/| /' conftest.$ac_ext >&5 6818 6819ac_cv_type_int16_t=no 6820fi 6821rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6822fi 6823echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5 6824echo "${ECHO_T}$ac_cv_type_int16_t" >&6 6825if test $ac_cv_type_int16_t = yes; then 6826 6827cat >>confdefs.h <<_ACEOF 6828#define HAVE_INT16_T 1 6829_ACEOF 6830 6831 6832fi 6833echo "$as_me:$LINENO: checking for uint16_t" >&5 6834echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6 6835if test "${ac_cv_type_uint16_t+set}" = set; then 6836 echo $ECHO_N "(cached) $ECHO_C" >&6 6837else 6838 cat >conftest.$ac_ext <<_ACEOF 6839/* confdefs.h. */ 6840_ACEOF 6841cat confdefs.h >>conftest.$ac_ext 6842cat >>conftest.$ac_ext <<_ACEOF 6843/* end confdefs.h. */ 6844$ac_includes_default 6845int 6846main () 6847{ 6848if ((uint16_t *) 0) 6849 return 0; 6850if (sizeof (uint16_t)) 6851 return 0; 6852 ; 6853 return 0; 6854} 6855_ACEOF 6856rm -f conftest.$ac_objext 6857if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6858 (eval $ac_compile) 2>conftest.er1 6859 ac_status=$? 6860 grep -v '^ *+' conftest.er1 >conftest.err 6861 rm -f conftest.er1 6862 cat conftest.err >&5 6863 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6864 (exit $ac_status); } && 6865 { ac_try='test -z "$ac_c_werror_flag" 6866 || test ! -s conftest.err' 6867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6868 (eval $ac_try) 2>&5 6869 ac_status=$? 6870 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6871 (exit $ac_status); }; } && 6872 { ac_try='test -s conftest.$ac_objext' 6873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6874 (eval $ac_try) 2>&5 6875 ac_status=$? 6876 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6877 (exit $ac_status); }; }; then 6878 ac_cv_type_uint16_t=yes 6879else 6880 echo "$as_me: failed program was:" >&5 6881sed 's/^/| /' conftest.$ac_ext >&5 6882 6883ac_cv_type_uint16_t=no 6884fi 6885rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6886fi 6887echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5 6888echo "${ECHO_T}$ac_cv_type_uint16_t" >&6 6889if test $ac_cv_type_uint16_t = yes; then 6890 6891cat >>confdefs.h <<_ACEOF 6892#define HAVE_UINT16_T 1 6893_ACEOF 6894 6895 6896fi 6897echo "$as_me:$LINENO: checking for int32_t" >&5 6898echo $ECHO_N "checking for int32_t... $ECHO_C" >&6 6899if test "${ac_cv_type_int32_t+set}" = set; then 6900 echo $ECHO_N "(cached) $ECHO_C" >&6 6901else 6902 cat >conftest.$ac_ext <<_ACEOF 6903/* confdefs.h. */ 6904_ACEOF 6905cat confdefs.h >>conftest.$ac_ext 6906cat >>conftest.$ac_ext <<_ACEOF 6907/* end confdefs.h. */ 6908$ac_includes_default 6909int 6910main () 6911{ 6912if ((int32_t *) 0) 6913 return 0; 6914if (sizeof (int32_t)) 6915 return 0; 6916 ; 6917 return 0; 6918} 6919_ACEOF 6920rm -f conftest.$ac_objext 6921if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6922 (eval $ac_compile) 2>conftest.er1 6923 ac_status=$? 6924 grep -v '^ *+' conftest.er1 >conftest.err 6925 rm -f conftest.er1 6926 cat conftest.err >&5 6927 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6928 (exit $ac_status); } && 6929 { ac_try='test -z "$ac_c_werror_flag" 6930 || test ! -s conftest.err' 6931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6932 (eval $ac_try) 2>&5 6933 ac_status=$? 6934 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6935 (exit $ac_status); }; } && 6936 { ac_try='test -s conftest.$ac_objext' 6937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6938 (eval $ac_try) 2>&5 6939 ac_status=$? 6940 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6941 (exit $ac_status); }; }; then 6942 ac_cv_type_int32_t=yes 6943else 6944 echo "$as_me: failed program was:" >&5 6945sed 's/^/| /' conftest.$ac_ext >&5 6946 6947ac_cv_type_int32_t=no 6948fi 6949rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6950fi 6951echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5 6952echo "${ECHO_T}$ac_cv_type_int32_t" >&6 6953if test $ac_cv_type_int32_t = yes; then 6954 6955cat >>confdefs.h <<_ACEOF 6956#define HAVE_INT32_T 1 6957_ACEOF 6958 6959 6960fi 6961echo "$as_me:$LINENO: checking for uint32_t" >&5 6962echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6 6963if test "${ac_cv_type_uint32_t+set}" = set; then 6964 echo $ECHO_N "(cached) $ECHO_C" >&6 6965else 6966 cat >conftest.$ac_ext <<_ACEOF 6967/* confdefs.h. */ 6968_ACEOF 6969cat confdefs.h >>conftest.$ac_ext 6970cat >>conftest.$ac_ext <<_ACEOF 6971/* end confdefs.h. */ 6972$ac_includes_default 6973int 6974main () 6975{ 6976if ((uint32_t *) 0) 6977 return 0; 6978if (sizeof (uint32_t)) 6979 return 0; 6980 ; 6981 return 0; 6982} 6983_ACEOF 6984rm -f conftest.$ac_objext 6985if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6986 (eval $ac_compile) 2>conftest.er1 6987 ac_status=$? 6988 grep -v '^ *+' conftest.er1 >conftest.err 6989 rm -f conftest.er1 6990 cat conftest.err >&5 6991 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6992 (exit $ac_status); } && 6993 { ac_try='test -z "$ac_c_werror_flag" 6994 || test ! -s conftest.err' 6995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6996 (eval $ac_try) 2>&5 6997 ac_status=$? 6998 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6999 (exit $ac_status); }; } && 7000 { ac_try='test -s conftest.$ac_objext' 7001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7002 (eval $ac_try) 2>&5 7003 ac_status=$? 7004 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7005 (exit $ac_status); }; }; then 7006 ac_cv_type_uint32_t=yes 7007else 7008 echo "$as_me: failed program was:" >&5 7009sed 's/^/| /' conftest.$ac_ext >&5 7010 7011ac_cv_type_uint32_t=no 7012fi 7013rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7014fi 7015echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5 7016echo "${ECHO_T}$ac_cv_type_uint32_t" >&6 7017if test $ac_cv_type_uint32_t = yes; then 7018 7019cat >>confdefs.h <<_ACEOF 7020#define HAVE_UINT32_T 1 7021_ACEOF 7022 7023 7024fi 7025echo "$as_me:$LINENO: checking for intptr_t" >&5 7026echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6 7027if test "${ac_cv_type_intptr_t+set}" = set; then 7028 echo $ECHO_N "(cached) $ECHO_C" >&6 7029else 7030 cat >conftest.$ac_ext <<_ACEOF 7031/* confdefs.h. */ 7032_ACEOF 7033cat confdefs.h >>conftest.$ac_ext 7034cat >>conftest.$ac_ext <<_ACEOF 7035/* end confdefs.h. */ 7036$ac_includes_default 7037int 7038main () 7039{ 7040if ((intptr_t *) 0) 7041 return 0; 7042if (sizeof (intptr_t)) 7043 return 0; 7044 ; 7045 return 0; 7046} 7047_ACEOF 7048rm -f conftest.$ac_objext 7049if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7050 (eval $ac_compile) 2>conftest.er1 7051 ac_status=$? 7052 grep -v '^ *+' conftest.er1 >conftest.err 7053 rm -f conftest.er1 7054 cat conftest.err >&5 7055 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7056 (exit $ac_status); } && 7057 { ac_try='test -z "$ac_c_werror_flag" 7058 || test ! -s conftest.err' 7059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7060 (eval $ac_try) 2>&5 7061 ac_status=$? 7062 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7063 (exit $ac_status); }; } && 7064 { ac_try='test -s conftest.$ac_objext' 7065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7066 (eval $ac_try) 2>&5 7067 ac_status=$? 7068 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7069 (exit $ac_status); }; }; then 7070 ac_cv_type_intptr_t=yes 7071else 7072 echo "$as_me: failed program was:" >&5 7073sed 's/^/| /' conftest.$ac_ext >&5 7074 7075ac_cv_type_intptr_t=no 7076fi 7077rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7078fi 7079echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5 7080echo "${ECHO_T}$ac_cv_type_intptr_t" >&6 7081if test $ac_cv_type_intptr_t = yes; then 7082 7083cat >>confdefs.h <<_ACEOF 7084#define HAVE_INTPTR_T 1 7085_ACEOF 7086 7087 7088fi 7089echo "$as_me:$LINENO: checking for uint_t" >&5 7090echo $ECHO_N "checking for uint_t... $ECHO_C" >&6 7091if test "${ac_cv_type_uint_t+set}" = set; then 7092 echo $ECHO_N "(cached) $ECHO_C" >&6 7093else 7094 cat >conftest.$ac_ext <<_ACEOF 7095/* confdefs.h. */ 7096_ACEOF 7097cat confdefs.h >>conftest.$ac_ext 7098cat >>conftest.$ac_ext <<_ACEOF 7099/* end confdefs.h. */ 7100$ac_includes_default 7101int 7102main () 7103{ 7104if ((uint_t *) 0) 7105 return 0; 7106if (sizeof (uint_t)) 7107 return 0; 7108 ; 7109 return 0; 7110} 7111_ACEOF 7112rm -f conftest.$ac_objext 7113if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7114 (eval $ac_compile) 2>conftest.er1 7115 ac_status=$? 7116 grep -v '^ *+' conftest.er1 >conftest.err 7117 rm -f conftest.er1 7118 cat conftest.err >&5 7119 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7120 (exit $ac_status); } && 7121 { ac_try='test -z "$ac_c_werror_flag" 7122 || test ! -s conftest.err' 7123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7124 (eval $ac_try) 2>&5 7125 ac_status=$? 7126 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7127 (exit $ac_status); }; } && 7128 { ac_try='test -s conftest.$ac_objext' 7129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7130 (eval $ac_try) 2>&5 7131 ac_status=$? 7132 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7133 (exit $ac_status); }; }; then 7134 ac_cv_type_uint_t=yes 7135else 7136 echo "$as_me: failed program was:" >&5 7137sed 's/^/| /' conftest.$ac_ext >&5 7138 7139ac_cv_type_uint_t=no 7140fi 7141rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7142fi 7143echo "$as_me:$LINENO: result: $ac_cv_type_uint_t" >&5 7144echo "${ECHO_T}$ac_cv_type_uint_t" >&6 7145if test $ac_cv_type_uint_t = yes; then 7146 7147cat >>confdefs.h <<_ACEOF 7148#define HAVE_UINT_T 1 7149_ACEOF 7150 7151 7152fi 7153 7154 7155 # ==================== 7156 # uintptr type & sizes 7157 # ==================== 7158 echo "$as_me:$LINENO: checking for uintptr_t" >&5 7159echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6 7160if test "${ac_cv_type_uintptr_t+set}" = set; then 7161 echo $ECHO_N "(cached) $ECHO_C" >&6 7162else 7163 cat >conftest.$ac_ext <<_ACEOF 7164/* confdefs.h. */ 7165_ACEOF 7166cat confdefs.h >>conftest.$ac_ext 7167cat >>conftest.$ac_ext <<_ACEOF 7168/* end confdefs.h. */ 7169$ac_includes_default 7170int 7171main () 7172{ 7173if ((uintptr_t *) 0) 7174 return 0; 7175if (sizeof (uintptr_t)) 7176 return 0; 7177 ; 7178 return 0; 7179} 7180_ACEOF 7181rm -f conftest.$ac_objext 7182if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7183 (eval $ac_compile) 2>conftest.er1 7184 ac_status=$? 7185 grep -v '^ *+' conftest.er1 >conftest.err 7186 rm -f conftest.er1 7187 cat conftest.err >&5 7188 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7189 (exit $ac_status); } && 7190 { ac_try='test -z "$ac_c_werror_flag" 7191 || test ! -s conftest.err' 7192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7193 (eval $ac_try) 2>&5 7194 ac_status=$? 7195 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7196 (exit $ac_status); }; } && 7197 { ac_try='test -s conftest.$ac_objext' 7198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7199 (eval $ac_try) 2>&5 7200 ac_status=$? 7201 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7202 (exit $ac_status); }; }; then 7203 ac_cv_type_uintptr_t=yes 7204else 7205 echo "$as_me: failed program was:" >&5 7206sed 's/^/| /' conftest.$ac_ext >&5 7207 7208ac_cv_type_uintptr_t=no 7209fi 7210rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7211fi 7212echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5 7213echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6 7214if test $ac_cv_type_uintptr_t = yes; then 7215 7216cat >>confdefs.h <<_ACEOF 7217#define HAVE_UINTPTR_T 1 7218_ACEOF 7219 7220 7221else 7222 7223cat >>confdefs.h <<\_ACEOF 7224#define uintptr_t unsigned long 7225_ACEOF 7226 7227fi 7228 7229 echo "$as_me:$LINENO: checking for char*" >&5 7230echo $ECHO_N "checking for char*... $ECHO_C" >&6 7231if test "${ac_cv_type_charp+set}" = set; then 7232 echo $ECHO_N "(cached) $ECHO_C" >&6 7233else 7234 cat >conftest.$ac_ext <<_ACEOF 7235/* confdefs.h. */ 7236_ACEOF 7237cat confdefs.h >>conftest.$ac_ext 7238cat >>conftest.$ac_ext <<_ACEOF 7239/* end confdefs.h. */ 7240$ac_includes_default 7241int 7242main () 7243{ 7244if ((char* *) 0) 7245 return 0; 7246if (sizeof (char*)) 7247 return 0; 7248 ; 7249 return 0; 7250} 7251_ACEOF 7252rm -f conftest.$ac_objext 7253if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7254 (eval $ac_compile) 2>conftest.er1 7255 ac_status=$? 7256 grep -v '^ *+' conftest.er1 >conftest.err 7257 rm -f conftest.er1 7258 cat conftest.err >&5 7259 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7260 (exit $ac_status); } && 7261 { ac_try='test -z "$ac_c_werror_flag" 7262 || test ! -s conftest.err' 7263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7264 (eval $ac_try) 2>&5 7265 ac_status=$? 7266 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7267 (exit $ac_status); }; } && 7268 { ac_try='test -s conftest.$ac_objext' 7269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7270 (eval $ac_try) 2>&5 7271 ac_status=$? 7272 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7273 (exit $ac_status); }; }; then 7274 ac_cv_type_charp=yes 7275else 7276 echo "$as_me: failed program was:" >&5 7277sed 's/^/| /' conftest.$ac_ext >&5 7278 7279ac_cv_type_charp=no 7280fi 7281rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7282fi 7283echo "$as_me:$LINENO: result: $ac_cv_type_charp" >&5 7284echo "${ECHO_T}$ac_cv_type_charp" >&6 7285 7286echo "$as_me:$LINENO: checking size of char*" >&5 7287echo $ECHO_N "checking size of char*... $ECHO_C" >&6 7288if test "${ac_cv_sizeof_charp+set}" = set; then 7289 echo $ECHO_N "(cached) $ECHO_C" >&6 7290else 7291 if test "$ac_cv_type_charp" = yes; then 7292 # The cast to unsigned long works around a bug in the HP C Compiler 7293 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 7294 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 7295 # This bug is HP SR number 8606223364. 7296 if test "$cross_compiling" = yes; then 7297 # Depending upon the size, compute the lo and hi bounds. 7298cat >conftest.$ac_ext <<_ACEOF 7299/* confdefs.h. */ 7300_ACEOF 7301cat confdefs.h >>conftest.$ac_ext 7302cat >>conftest.$ac_ext <<_ACEOF 7303/* end confdefs.h. */ 7304$ac_includes_default 7305int 7306main () 7307{ 7308static int test_array [1 - 2 * !(((long) (sizeof (char*))) >= 0)]; 7309test_array [0] = 0 7310 7311 ; 7312 return 0; 7313} 7314_ACEOF 7315rm -f conftest.$ac_objext 7316if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7317 (eval $ac_compile) 2>conftest.er1 7318 ac_status=$? 7319 grep -v '^ *+' conftest.er1 >conftest.err 7320 rm -f conftest.er1 7321 cat conftest.err >&5 7322 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7323 (exit $ac_status); } && 7324 { ac_try='test -z "$ac_c_werror_flag" 7325 || test ! -s conftest.err' 7326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7327 (eval $ac_try) 2>&5 7328 ac_status=$? 7329 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7330 (exit $ac_status); }; } && 7331 { ac_try='test -s conftest.$ac_objext' 7332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7333 (eval $ac_try) 2>&5 7334 ac_status=$? 7335 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7336 (exit $ac_status); }; }; then 7337 ac_lo=0 ac_mid=0 7338 while :; do 7339 cat >conftest.$ac_ext <<_ACEOF 7340/* confdefs.h. */ 7341_ACEOF 7342cat confdefs.h >>conftest.$ac_ext 7343cat >>conftest.$ac_ext <<_ACEOF 7344/* end confdefs.h. */ 7345$ac_includes_default 7346int 7347main () 7348{ 7349static int test_array [1 - 2 * !(((long) (sizeof (char*))) <= $ac_mid)]; 7350test_array [0] = 0 7351 7352 ; 7353 return 0; 7354} 7355_ACEOF 7356rm -f conftest.$ac_objext 7357if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7358 (eval $ac_compile) 2>conftest.er1 7359 ac_status=$? 7360 grep -v '^ *+' conftest.er1 >conftest.err 7361 rm -f conftest.er1 7362 cat conftest.err >&5 7363 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7364 (exit $ac_status); } && 7365 { ac_try='test -z "$ac_c_werror_flag" 7366 || test ! -s conftest.err' 7367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7368 (eval $ac_try) 2>&5 7369 ac_status=$? 7370 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7371 (exit $ac_status); }; } && 7372 { ac_try='test -s conftest.$ac_objext' 7373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7374 (eval $ac_try) 2>&5 7375 ac_status=$? 7376 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7377 (exit $ac_status); }; }; then 7378 ac_hi=$ac_mid; break 7379else 7380 echo "$as_me: failed program was:" >&5 7381sed 's/^/| /' conftest.$ac_ext >&5 7382 7383ac_lo=`expr $ac_mid + 1` 7384 if test $ac_lo -le $ac_mid; then 7385 ac_lo= ac_hi= 7386 break 7387 fi 7388 ac_mid=`expr 2 '*' $ac_mid + 1` 7389fi 7390rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7391 done 7392else 7393 echo "$as_me: failed program was:" >&5 7394sed 's/^/| /' conftest.$ac_ext >&5 7395 7396cat >conftest.$ac_ext <<_ACEOF 7397/* confdefs.h. */ 7398_ACEOF 7399cat confdefs.h >>conftest.$ac_ext 7400cat >>conftest.$ac_ext <<_ACEOF 7401/* end confdefs.h. */ 7402$ac_includes_default 7403int 7404main () 7405{ 7406static int test_array [1 - 2 * !(((long) (sizeof (char*))) < 0)]; 7407test_array [0] = 0 7408 7409 ; 7410 return 0; 7411} 7412_ACEOF 7413rm -f conftest.$ac_objext 7414if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7415 (eval $ac_compile) 2>conftest.er1 7416 ac_status=$? 7417 grep -v '^ *+' conftest.er1 >conftest.err 7418 rm -f conftest.er1 7419 cat conftest.err >&5 7420 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7421 (exit $ac_status); } && 7422 { ac_try='test -z "$ac_c_werror_flag" 7423 || test ! -s conftest.err' 7424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7425 (eval $ac_try) 2>&5 7426 ac_status=$? 7427 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7428 (exit $ac_status); }; } && 7429 { ac_try='test -s conftest.$ac_objext' 7430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7431 (eval $ac_try) 2>&5 7432 ac_status=$? 7433 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7434 (exit $ac_status); }; }; then 7435 ac_hi=-1 ac_mid=-1 7436 while :; do 7437 cat >conftest.$ac_ext <<_ACEOF 7438/* confdefs.h. */ 7439_ACEOF 7440cat confdefs.h >>conftest.$ac_ext 7441cat >>conftest.$ac_ext <<_ACEOF 7442/* end confdefs.h. */ 7443$ac_includes_default 7444int 7445main () 7446{ 7447static int test_array [1 - 2 * !(((long) (sizeof (char*))) >= $ac_mid)]; 7448test_array [0] = 0 7449 7450 ; 7451 return 0; 7452} 7453_ACEOF 7454rm -f conftest.$ac_objext 7455if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7456 (eval $ac_compile) 2>conftest.er1 7457 ac_status=$? 7458 grep -v '^ *+' conftest.er1 >conftest.err 7459 rm -f conftest.er1 7460 cat conftest.err >&5 7461 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7462 (exit $ac_status); } && 7463 { ac_try='test -z "$ac_c_werror_flag" 7464 || test ! -s conftest.err' 7465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7466 (eval $ac_try) 2>&5 7467 ac_status=$? 7468 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7469 (exit $ac_status); }; } && 7470 { ac_try='test -s conftest.$ac_objext' 7471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7472 (eval $ac_try) 2>&5 7473 ac_status=$? 7474 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7475 (exit $ac_status); }; }; then 7476 ac_lo=$ac_mid; break 7477else 7478 echo "$as_me: failed program was:" >&5 7479sed 's/^/| /' conftest.$ac_ext >&5 7480 7481ac_hi=`expr '(' $ac_mid ')' - 1` 7482 if test $ac_mid -le $ac_hi; then 7483 ac_lo= ac_hi= 7484 break 7485 fi 7486 ac_mid=`expr 2 '*' $ac_mid` 7487fi 7488rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7489 done 7490else 7491 echo "$as_me: failed program was:" >&5 7492sed 's/^/| /' conftest.$ac_ext >&5 7493 7494ac_lo= ac_hi= 7495fi 7496rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7497fi 7498rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7499# Binary search between lo and hi bounds. 7500while test "x$ac_lo" != "x$ac_hi"; do 7501 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 7502 cat >conftest.$ac_ext <<_ACEOF 7503/* confdefs.h. */ 7504_ACEOF 7505cat confdefs.h >>conftest.$ac_ext 7506cat >>conftest.$ac_ext <<_ACEOF 7507/* end confdefs.h. */ 7508$ac_includes_default 7509int 7510main () 7511{ 7512static int test_array [1 - 2 * !(((long) (sizeof (char*))) <= $ac_mid)]; 7513test_array [0] = 0 7514 7515 ; 7516 return 0; 7517} 7518_ACEOF 7519rm -f conftest.$ac_objext 7520if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7521 (eval $ac_compile) 2>conftest.er1 7522 ac_status=$? 7523 grep -v '^ *+' conftest.er1 >conftest.err 7524 rm -f conftest.er1 7525 cat conftest.err >&5 7526 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7527 (exit $ac_status); } && 7528 { ac_try='test -z "$ac_c_werror_flag" 7529 || test ! -s conftest.err' 7530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7531 (eval $ac_try) 2>&5 7532 ac_status=$? 7533 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7534 (exit $ac_status); }; } && 7535 { ac_try='test -s conftest.$ac_objext' 7536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7537 (eval $ac_try) 2>&5 7538 ac_status=$? 7539 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7540 (exit $ac_status); }; }; then 7541 ac_hi=$ac_mid 7542else 7543 echo "$as_me: failed program was:" >&5 7544sed 's/^/| /' conftest.$ac_ext >&5 7545 7546ac_lo=`expr '(' $ac_mid ')' + 1` 7547fi 7548rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7549done 7550case $ac_lo in 7551?*) ac_cv_sizeof_charp=$ac_lo;; 7552'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char*), 77 7553See \`config.log' for more details." >&5 7554echo "$as_me: error: cannot compute sizeof (char*), 77 7555See \`config.log' for more details." >&2;} 7556 { (exit 1); exit 1; }; } ;; 7557esac 7558else 7559 if test "$cross_compiling" = yes; then 7560 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 7561See \`config.log' for more details." >&5 7562echo "$as_me: error: cannot run test program while cross compiling 7563See \`config.log' for more details." >&2;} 7564 { (exit 1); exit 1; }; } 7565else 7566 cat >conftest.$ac_ext <<_ACEOF 7567/* confdefs.h. */ 7568_ACEOF 7569cat confdefs.h >>conftest.$ac_ext 7570cat >>conftest.$ac_ext <<_ACEOF 7571/* end confdefs.h. */ 7572$ac_includes_default 7573long longval () { return (long) (sizeof (char*)); } 7574unsigned long ulongval () { return (long) (sizeof (char*)); } 7575#include <stdio.h> 7576#include <stdlib.h> 7577int 7578main () 7579{ 7580 7581 FILE *f = fopen ("conftest.val", "w"); 7582 if (! f) 7583 exit (1); 7584 if (((long) (sizeof (char*))) < 0) 7585 { 7586 long i = longval (); 7587 if (i != ((long) (sizeof (char*)))) 7588 exit (1); 7589 fprintf (f, "%ld\n", i); 7590 } 7591 else 7592 { 7593 unsigned long i = ulongval (); 7594 if (i != ((long) (sizeof (char*)))) 7595 exit (1); 7596 fprintf (f, "%lu\n", i); 7597 } 7598 exit (ferror (f) || fclose (f) != 0); 7599 7600 ; 7601 return 0; 7602} 7603_ACEOF 7604rm -f conftest$ac_exeext 7605if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7606 (eval $ac_link) 2>&5 7607 ac_status=$? 7608 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7609 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 7610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7611 (eval $ac_try) 2>&5 7612 ac_status=$? 7613 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7614 (exit $ac_status); }; }; then 7615 ac_cv_sizeof_charp=`cat conftest.val` 7616else 7617 echo "$as_me: program exited with status $ac_status" >&5 7618echo "$as_me: failed program was:" >&5 7619sed 's/^/| /' conftest.$ac_ext >&5 7620 7621( exit $ac_status ) 7622{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char*), 77 7623See \`config.log' for more details." >&5 7624echo "$as_me: error: cannot compute sizeof (char*), 77 7625See \`config.log' for more details." >&2;} 7626 { (exit 1); exit 1; }; } 7627fi 7628rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 7629fi 7630fi 7631rm -f conftest.val 7632else 7633 ac_cv_sizeof_charp=0 7634fi 7635fi 7636echo "$as_me:$LINENO: result: $ac_cv_sizeof_charp" >&5 7637echo "${ECHO_T}$ac_cv_sizeof_charp" >&6 7638cat >>confdefs.h <<_ACEOF 7639#define SIZEOF_CHARP $ac_cv_sizeof_charp 7640_ACEOF 7641 7642 7643 echo "$as_me:$LINENO: checking for int" >&5 7644echo $ECHO_N "checking for int... $ECHO_C" >&6 7645if test "${ac_cv_type_int+set}" = set; then 7646 echo $ECHO_N "(cached) $ECHO_C" >&6 7647else 7648 cat >conftest.$ac_ext <<_ACEOF 7649/* confdefs.h. */ 7650_ACEOF 7651cat confdefs.h >>conftest.$ac_ext 7652cat >>conftest.$ac_ext <<_ACEOF 7653/* end confdefs.h. */ 7654$ac_includes_default 7655int 7656main () 7657{ 7658if ((int *) 0) 7659 return 0; 7660if (sizeof (int)) 7661 return 0; 7662 ; 7663 return 0; 7664} 7665_ACEOF 7666rm -f conftest.$ac_objext 7667if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7668 (eval $ac_compile) 2>conftest.er1 7669 ac_status=$? 7670 grep -v '^ *+' conftest.er1 >conftest.err 7671 rm -f conftest.er1 7672 cat conftest.err >&5 7673 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7674 (exit $ac_status); } && 7675 { ac_try='test -z "$ac_c_werror_flag" 7676 || test ! -s conftest.err' 7677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7678 (eval $ac_try) 2>&5 7679 ac_status=$? 7680 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7681 (exit $ac_status); }; } && 7682 { ac_try='test -s conftest.$ac_objext' 7683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7684 (eval $ac_try) 2>&5 7685 ac_status=$? 7686 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7687 (exit $ac_status); }; }; then 7688 ac_cv_type_int=yes 7689else 7690 echo "$as_me: failed program was:" >&5 7691sed 's/^/| /' conftest.$ac_ext >&5 7692 7693ac_cv_type_int=no 7694fi 7695rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7696fi 7697echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 7698echo "${ECHO_T}$ac_cv_type_int" >&6 7699 7700echo "$as_me:$LINENO: checking size of int" >&5 7701echo $ECHO_N "checking size of int... $ECHO_C" >&6 7702if test "${ac_cv_sizeof_int+set}" = set; then 7703 echo $ECHO_N "(cached) $ECHO_C" >&6 7704else 7705 if test "$ac_cv_type_int" = yes; then 7706 # The cast to unsigned long works around a bug in the HP C Compiler 7707 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 7708 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 7709 # This bug is HP SR number 8606223364. 7710 if test "$cross_compiling" = yes; then 7711 # Depending upon the size, compute the lo and hi bounds. 7712cat >conftest.$ac_ext <<_ACEOF 7713/* confdefs.h. */ 7714_ACEOF 7715cat confdefs.h >>conftest.$ac_ext 7716cat >>conftest.$ac_ext <<_ACEOF 7717/* end confdefs.h. */ 7718$ac_includes_default 7719int 7720main () 7721{ 7722static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)]; 7723test_array [0] = 0 7724 7725 ; 7726 return 0; 7727} 7728_ACEOF 7729rm -f conftest.$ac_objext 7730if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7731 (eval $ac_compile) 2>conftest.er1 7732 ac_status=$? 7733 grep -v '^ *+' conftest.er1 >conftest.err 7734 rm -f conftest.er1 7735 cat conftest.err >&5 7736 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7737 (exit $ac_status); } && 7738 { ac_try='test -z "$ac_c_werror_flag" 7739 || test ! -s conftest.err' 7740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7741 (eval $ac_try) 2>&5 7742 ac_status=$? 7743 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7744 (exit $ac_status); }; } && 7745 { ac_try='test -s conftest.$ac_objext' 7746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7747 (eval $ac_try) 2>&5 7748 ac_status=$? 7749 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7750 (exit $ac_status); }; }; then 7751 ac_lo=0 ac_mid=0 7752 while :; do 7753 cat >conftest.$ac_ext <<_ACEOF 7754/* confdefs.h. */ 7755_ACEOF 7756cat confdefs.h >>conftest.$ac_ext 7757cat >>conftest.$ac_ext <<_ACEOF 7758/* end confdefs.h. */ 7759$ac_includes_default 7760int 7761main () 7762{ 7763static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; 7764test_array [0] = 0 7765 7766 ; 7767 return 0; 7768} 7769_ACEOF 7770rm -f conftest.$ac_objext 7771if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7772 (eval $ac_compile) 2>conftest.er1 7773 ac_status=$? 7774 grep -v '^ *+' conftest.er1 >conftest.err 7775 rm -f conftest.er1 7776 cat conftest.err >&5 7777 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7778 (exit $ac_status); } && 7779 { ac_try='test -z "$ac_c_werror_flag" 7780 || test ! -s conftest.err' 7781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7782 (eval $ac_try) 2>&5 7783 ac_status=$? 7784 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7785 (exit $ac_status); }; } && 7786 { ac_try='test -s conftest.$ac_objext' 7787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7788 (eval $ac_try) 2>&5 7789 ac_status=$? 7790 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7791 (exit $ac_status); }; }; then 7792 ac_hi=$ac_mid; break 7793else 7794 echo "$as_me: failed program was:" >&5 7795sed 's/^/| /' conftest.$ac_ext >&5 7796 7797ac_lo=`expr $ac_mid + 1` 7798 if test $ac_lo -le $ac_mid; then 7799 ac_lo= ac_hi= 7800 break 7801 fi 7802 ac_mid=`expr 2 '*' $ac_mid + 1` 7803fi 7804rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7805 done 7806else 7807 echo "$as_me: failed program was:" >&5 7808sed 's/^/| /' conftest.$ac_ext >&5 7809 7810cat >conftest.$ac_ext <<_ACEOF 7811/* confdefs.h. */ 7812_ACEOF 7813cat confdefs.h >>conftest.$ac_ext 7814cat >>conftest.$ac_ext <<_ACEOF 7815/* end confdefs.h. */ 7816$ac_includes_default 7817int 7818main () 7819{ 7820static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)]; 7821test_array [0] = 0 7822 7823 ; 7824 return 0; 7825} 7826_ACEOF 7827rm -f conftest.$ac_objext 7828if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7829 (eval $ac_compile) 2>conftest.er1 7830 ac_status=$? 7831 grep -v '^ *+' conftest.er1 >conftest.err 7832 rm -f conftest.er1 7833 cat conftest.err >&5 7834 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7835 (exit $ac_status); } && 7836 { ac_try='test -z "$ac_c_werror_flag" 7837 || test ! -s conftest.err' 7838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7839 (eval $ac_try) 2>&5 7840 ac_status=$? 7841 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7842 (exit $ac_status); }; } && 7843 { ac_try='test -s conftest.$ac_objext' 7844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7845 (eval $ac_try) 2>&5 7846 ac_status=$? 7847 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7848 (exit $ac_status); }; }; then 7849 ac_hi=-1 ac_mid=-1 7850 while :; do 7851 cat >conftest.$ac_ext <<_ACEOF 7852/* confdefs.h. */ 7853_ACEOF 7854cat confdefs.h >>conftest.$ac_ext 7855cat >>conftest.$ac_ext <<_ACEOF 7856/* end confdefs.h. */ 7857$ac_includes_default 7858int 7859main () 7860{ 7861static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)]; 7862test_array [0] = 0 7863 7864 ; 7865 return 0; 7866} 7867_ACEOF 7868rm -f conftest.$ac_objext 7869if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7870 (eval $ac_compile) 2>conftest.er1 7871 ac_status=$? 7872 grep -v '^ *+' conftest.er1 >conftest.err 7873 rm -f conftest.er1 7874 cat conftest.err >&5 7875 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7876 (exit $ac_status); } && 7877 { ac_try='test -z "$ac_c_werror_flag" 7878 || test ! -s conftest.err' 7879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7880 (eval $ac_try) 2>&5 7881 ac_status=$? 7882 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7883 (exit $ac_status); }; } && 7884 { ac_try='test -s conftest.$ac_objext' 7885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7886 (eval $ac_try) 2>&5 7887 ac_status=$? 7888 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7889 (exit $ac_status); }; }; then 7890 ac_lo=$ac_mid; break 7891else 7892 echo "$as_me: failed program was:" >&5 7893sed 's/^/| /' conftest.$ac_ext >&5 7894 7895ac_hi=`expr '(' $ac_mid ')' - 1` 7896 if test $ac_mid -le $ac_hi; then 7897 ac_lo= ac_hi= 7898 break 7899 fi 7900 ac_mid=`expr 2 '*' $ac_mid` 7901fi 7902rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7903 done 7904else 7905 echo "$as_me: failed program was:" >&5 7906sed 's/^/| /' conftest.$ac_ext >&5 7907 7908ac_lo= ac_hi= 7909fi 7910rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7911fi 7912rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7913# Binary search between lo and hi bounds. 7914while test "x$ac_lo" != "x$ac_hi"; do 7915 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 7916 cat >conftest.$ac_ext <<_ACEOF 7917/* confdefs.h. */ 7918_ACEOF 7919cat confdefs.h >>conftest.$ac_ext 7920cat >>conftest.$ac_ext <<_ACEOF 7921/* end confdefs.h. */ 7922$ac_includes_default 7923int 7924main () 7925{ 7926static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; 7927test_array [0] = 0 7928 7929 ; 7930 return 0; 7931} 7932_ACEOF 7933rm -f conftest.$ac_objext 7934if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7935 (eval $ac_compile) 2>conftest.er1 7936 ac_status=$? 7937 grep -v '^ *+' conftest.er1 >conftest.err 7938 rm -f conftest.er1 7939 cat conftest.err >&5 7940 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7941 (exit $ac_status); } && 7942 { ac_try='test -z "$ac_c_werror_flag" 7943 || test ! -s conftest.err' 7944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7945 (eval $ac_try) 2>&5 7946 ac_status=$? 7947 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7948 (exit $ac_status); }; } && 7949 { ac_try='test -s conftest.$ac_objext' 7950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7951 (eval $ac_try) 2>&5 7952 ac_status=$? 7953 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7954 (exit $ac_status); }; }; then 7955 ac_hi=$ac_mid 7956else 7957 echo "$as_me: failed program was:" >&5 7958sed 's/^/| /' conftest.$ac_ext >&5 7959 7960ac_lo=`expr '(' $ac_mid ')' + 1` 7961fi 7962rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7963done 7964case $ac_lo in 7965?*) ac_cv_sizeof_int=$ac_lo;; 7966'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 7967See \`config.log' for more details." >&5 7968echo "$as_me: error: cannot compute sizeof (int), 77 7969See \`config.log' for more details." >&2;} 7970 { (exit 1); exit 1; }; } ;; 7971esac 7972else 7973 if test "$cross_compiling" = yes; then 7974 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 7975See \`config.log' for more details." >&5 7976echo "$as_me: error: cannot run test program while cross compiling 7977See \`config.log' for more details." >&2;} 7978 { (exit 1); exit 1; }; } 7979else 7980 cat >conftest.$ac_ext <<_ACEOF 7981/* confdefs.h. */ 7982_ACEOF 7983cat confdefs.h >>conftest.$ac_ext 7984cat >>conftest.$ac_ext <<_ACEOF 7985/* end confdefs.h. */ 7986$ac_includes_default 7987long longval () { return (long) (sizeof (int)); } 7988unsigned long ulongval () { return (long) (sizeof (int)); } 7989#include <stdio.h> 7990#include <stdlib.h> 7991int 7992main () 7993{ 7994 7995 FILE *f = fopen ("conftest.val", "w"); 7996 if (! f) 7997 exit (1); 7998 if (((long) (sizeof (int))) < 0) 7999 { 8000 long i = longval (); 8001 if (i != ((long) (sizeof (int)))) 8002 exit (1); 8003 fprintf (f, "%ld\n", i); 8004 } 8005 else 8006 { 8007 unsigned long i = ulongval (); 8008 if (i != ((long) (sizeof (int)))) 8009 exit (1); 8010 fprintf (f, "%lu\n", i); 8011 } 8012 exit (ferror (f) || fclose (f) != 0); 8013 8014 ; 8015 return 0; 8016} 8017_ACEOF 8018rm -f conftest$ac_exeext 8019if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8020 (eval $ac_link) 2>&5 8021 ac_status=$? 8022 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8023 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 8024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8025 (eval $ac_try) 2>&5 8026 ac_status=$? 8027 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8028 (exit $ac_status); }; }; then 8029 ac_cv_sizeof_int=`cat conftest.val` 8030else 8031 echo "$as_me: program exited with status $ac_status" >&5 8032echo "$as_me: failed program was:" >&5 8033sed 's/^/| /' conftest.$ac_ext >&5 8034 8035( exit $ac_status ) 8036{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 8037See \`config.log' for more details." >&5 8038echo "$as_me: error: cannot compute sizeof (int), 77 8039See \`config.log' for more details." >&2;} 8040 { (exit 1); exit 1; }; } 8041fi 8042rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 8043fi 8044fi 8045rm -f conftest.val 8046else 8047 ac_cv_sizeof_int=0 8048fi 8049fi 8050echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 8051echo "${ECHO_T}$ac_cv_sizeof_int" >&6 8052cat >>confdefs.h <<_ACEOF 8053#define SIZEOF_INT $ac_cv_sizeof_int 8054_ACEOF 8055 8056 8057 echo "$as_me:$LINENO: checking for long" >&5 8058echo $ECHO_N "checking for long... $ECHO_C" >&6 8059if test "${ac_cv_type_long+set}" = set; then 8060 echo $ECHO_N "(cached) $ECHO_C" >&6 8061else 8062 cat >conftest.$ac_ext <<_ACEOF 8063/* confdefs.h. */ 8064_ACEOF 8065cat confdefs.h >>conftest.$ac_ext 8066cat >>conftest.$ac_ext <<_ACEOF 8067/* end confdefs.h. */ 8068$ac_includes_default 8069int 8070main () 8071{ 8072if ((long *) 0) 8073 return 0; 8074if (sizeof (long)) 8075 return 0; 8076 ; 8077 return 0; 8078} 8079_ACEOF 8080rm -f conftest.$ac_objext 8081if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8082 (eval $ac_compile) 2>conftest.er1 8083 ac_status=$? 8084 grep -v '^ *+' conftest.er1 >conftest.err 8085 rm -f conftest.er1 8086 cat conftest.err >&5 8087 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8088 (exit $ac_status); } && 8089 { ac_try='test -z "$ac_c_werror_flag" 8090 || test ! -s conftest.err' 8091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8092 (eval $ac_try) 2>&5 8093 ac_status=$? 8094 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8095 (exit $ac_status); }; } && 8096 { ac_try='test -s conftest.$ac_objext' 8097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8098 (eval $ac_try) 2>&5 8099 ac_status=$? 8100 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8101 (exit $ac_status); }; }; then 8102 ac_cv_type_long=yes 8103else 8104 echo "$as_me: failed program was:" >&5 8105sed 's/^/| /' conftest.$ac_ext >&5 8106 8107ac_cv_type_long=no 8108fi 8109rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8110fi 8111echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 8112echo "${ECHO_T}$ac_cv_type_long" >&6 8113 8114echo "$as_me:$LINENO: checking size of long" >&5 8115echo $ECHO_N "checking size of long... $ECHO_C" >&6 8116if test "${ac_cv_sizeof_long+set}" = set; then 8117 echo $ECHO_N "(cached) $ECHO_C" >&6 8118else 8119 if test "$ac_cv_type_long" = yes; then 8120 # The cast to unsigned long works around a bug in the HP C Compiler 8121 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 8122 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 8123 # This bug is HP SR number 8606223364. 8124 if test "$cross_compiling" = yes; then 8125 # Depending upon the size, compute the lo and hi bounds. 8126cat >conftest.$ac_ext <<_ACEOF 8127/* confdefs.h. */ 8128_ACEOF 8129cat confdefs.h >>conftest.$ac_ext 8130cat >>conftest.$ac_ext <<_ACEOF 8131/* end confdefs.h. */ 8132$ac_includes_default 8133int 8134main () 8135{ 8136static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; 8137test_array [0] = 0 8138 8139 ; 8140 return 0; 8141} 8142_ACEOF 8143rm -f conftest.$ac_objext 8144if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8145 (eval $ac_compile) 2>conftest.er1 8146 ac_status=$? 8147 grep -v '^ *+' conftest.er1 >conftest.err 8148 rm -f conftest.er1 8149 cat conftest.err >&5 8150 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8151 (exit $ac_status); } && 8152 { ac_try='test -z "$ac_c_werror_flag" 8153 || test ! -s conftest.err' 8154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8155 (eval $ac_try) 2>&5 8156 ac_status=$? 8157 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8158 (exit $ac_status); }; } && 8159 { ac_try='test -s conftest.$ac_objext' 8160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8161 (eval $ac_try) 2>&5 8162 ac_status=$? 8163 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8164 (exit $ac_status); }; }; then 8165 ac_lo=0 ac_mid=0 8166 while :; do 8167 cat >conftest.$ac_ext <<_ACEOF 8168/* confdefs.h. */ 8169_ACEOF 8170cat confdefs.h >>conftest.$ac_ext 8171cat >>conftest.$ac_ext <<_ACEOF 8172/* end confdefs.h. */ 8173$ac_includes_default 8174int 8175main () 8176{ 8177static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; 8178test_array [0] = 0 8179 8180 ; 8181 return 0; 8182} 8183_ACEOF 8184rm -f conftest.$ac_objext 8185if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8186 (eval $ac_compile) 2>conftest.er1 8187 ac_status=$? 8188 grep -v '^ *+' conftest.er1 >conftest.err 8189 rm -f conftest.er1 8190 cat conftest.err >&5 8191 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8192 (exit $ac_status); } && 8193 { ac_try='test -z "$ac_c_werror_flag" 8194 || test ! -s conftest.err' 8195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8196 (eval $ac_try) 2>&5 8197 ac_status=$? 8198 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8199 (exit $ac_status); }; } && 8200 { ac_try='test -s conftest.$ac_objext' 8201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8202 (eval $ac_try) 2>&5 8203 ac_status=$? 8204 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8205 (exit $ac_status); }; }; then 8206 ac_hi=$ac_mid; break 8207else 8208 echo "$as_me: failed program was:" >&5 8209sed 's/^/| /' conftest.$ac_ext >&5 8210 8211ac_lo=`expr $ac_mid + 1` 8212 if test $ac_lo -le $ac_mid; then 8213 ac_lo= ac_hi= 8214 break 8215 fi 8216 ac_mid=`expr 2 '*' $ac_mid + 1` 8217fi 8218rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8219 done 8220else 8221 echo "$as_me: failed program was:" >&5 8222sed 's/^/| /' conftest.$ac_ext >&5 8223 8224cat >conftest.$ac_ext <<_ACEOF 8225/* confdefs.h. */ 8226_ACEOF 8227cat confdefs.h >>conftest.$ac_ext 8228cat >>conftest.$ac_ext <<_ACEOF 8229/* end confdefs.h. */ 8230$ac_includes_default 8231int 8232main () 8233{ 8234static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; 8235test_array [0] = 0 8236 8237 ; 8238 return 0; 8239} 8240_ACEOF 8241rm -f conftest.$ac_objext 8242if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8243 (eval $ac_compile) 2>conftest.er1 8244 ac_status=$? 8245 grep -v '^ *+' conftest.er1 >conftest.err 8246 rm -f conftest.er1 8247 cat conftest.err >&5 8248 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8249 (exit $ac_status); } && 8250 { ac_try='test -z "$ac_c_werror_flag" 8251 || test ! -s conftest.err' 8252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8253 (eval $ac_try) 2>&5 8254 ac_status=$? 8255 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8256 (exit $ac_status); }; } && 8257 { ac_try='test -s conftest.$ac_objext' 8258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8259 (eval $ac_try) 2>&5 8260 ac_status=$? 8261 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8262 (exit $ac_status); }; }; then 8263 ac_hi=-1 ac_mid=-1 8264 while :; do 8265 cat >conftest.$ac_ext <<_ACEOF 8266/* confdefs.h. */ 8267_ACEOF 8268cat confdefs.h >>conftest.$ac_ext 8269cat >>conftest.$ac_ext <<_ACEOF 8270/* end confdefs.h. */ 8271$ac_includes_default 8272int 8273main () 8274{ 8275static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; 8276test_array [0] = 0 8277 8278 ; 8279 return 0; 8280} 8281_ACEOF 8282rm -f conftest.$ac_objext 8283if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8284 (eval $ac_compile) 2>conftest.er1 8285 ac_status=$? 8286 grep -v '^ *+' conftest.er1 >conftest.err 8287 rm -f conftest.er1 8288 cat conftest.err >&5 8289 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8290 (exit $ac_status); } && 8291 { ac_try='test -z "$ac_c_werror_flag" 8292 || test ! -s conftest.err' 8293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8294 (eval $ac_try) 2>&5 8295 ac_status=$? 8296 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8297 (exit $ac_status); }; } && 8298 { ac_try='test -s conftest.$ac_objext' 8299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8300 (eval $ac_try) 2>&5 8301 ac_status=$? 8302 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8303 (exit $ac_status); }; }; then 8304 ac_lo=$ac_mid; break 8305else 8306 echo "$as_me: failed program was:" >&5 8307sed 's/^/| /' conftest.$ac_ext >&5 8308 8309ac_hi=`expr '(' $ac_mid ')' - 1` 8310 if test $ac_mid -le $ac_hi; then 8311 ac_lo= ac_hi= 8312 break 8313 fi 8314 ac_mid=`expr 2 '*' $ac_mid` 8315fi 8316rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8317 done 8318else 8319 echo "$as_me: failed program was:" >&5 8320sed 's/^/| /' conftest.$ac_ext >&5 8321 8322ac_lo= ac_hi= 8323fi 8324rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8325fi 8326rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8327# Binary search between lo and hi bounds. 8328while test "x$ac_lo" != "x$ac_hi"; do 8329 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 8330 cat >conftest.$ac_ext <<_ACEOF 8331/* confdefs.h. */ 8332_ACEOF 8333cat confdefs.h >>conftest.$ac_ext 8334cat >>conftest.$ac_ext <<_ACEOF 8335/* end confdefs.h. */ 8336$ac_includes_default 8337int 8338main () 8339{ 8340static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; 8341test_array [0] = 0 8342 8343 ; 8344 return 0; 8345} 8346_ACEOF 8347rm -f conftest.$ac_objext 8348if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8349 (eval $ac_compile) 2>conftest.er1 8350 ac_status=$? 8351 grep -v '^ *+' conftest.er1 >conftest.err 8352 rm -f conftest.er1 8353 cat conftest.err >&5 8354 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8355 (exit $ac_status); } && 8356 { ac_try='test -z "$ac_c_werror_flag" 8357 || test ! -s conftest.err' 8358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8359 (eval $ac_try) 2>&5 8360 ac_status=$? 8361 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8362 (exit $ac_status); }; } && 8363 { ac_try='test -s conftest.$ac_objext' 8364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8365 (eval $ac_try) 2>&5 8366 ac_status=$? 8367 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8368 (exit $ac_status); }; }; then 8369 ac_hi=$ac_mid 8370else 8371 echo "$as_me: failed program was:" >&5 8372sed 's/^/| /' conftest.$ac_ext >&5 8373 8374ac_lo=`expr '(' $ac_mid ')' + 1` 8375fi 8376rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8377done 8378case $ac_lo in 8379?*) ac_cv_sizeof_long=$ac_lo;; 8380'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 8381See \`config.log' for more details." >&5 8382echo "$as_me: error: cannot compute sizeof (long), 77 8383See \`config.log' for more details." >&2;} 8384 { (exit 1); exit 1; }; } ;; 8385esac 8386else 8387 if test "$cross_compiling" = yes; then 8388 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 8389See \`config.log' for more details." >&5 8390echo "$as_me: error: cannot run test program while cross compiling 8391See \`config.log' for more details." >&2;} 8392 { (exit 1); exit 1; }; } 8393else 8394 cat >conftest.$ac_ext <<_ACEOF 8395/* confdefs.h. */ 8396_ACEOF 8397cat confdefs.h >>conftest.$ac_ext 8398cat >>conftest.$ac_ext <<_ACEOF 8399/* end confdefs.h. */ 8400$ac_includes_default 8401long longval () { return (long) (sizeof (long)); } 8402unsigned long ulongval () { return (long) (sizeof (long)); } 8403#include <stdio.h> 8404#include <stdlib.h> 8405int 8406main () 8407{ 8408 8409 FILE *f = fopen ("conftest.val", "w"); 8410 if (! f) 8411 exit (1); 8412 if (((long) (sizeof (long))) < 0) 8413 { 8414 long i = longval (); 8415 if (i != ((long) (sizeof (long)))) 8416 exit (1); 8417 fprintf (f, "%ld\n", i); 8418 } 8419 else 8420 { 8421 unsigned long i = ulongval (); 8422 if (i != ((long) (sizeof (long)))) 8423 exit (1); 8424 fprintf (f, "%lu\n", i); 8425 } 8426 exit (ferror (f) || fclose (f) != 0); 8427 8428 ; 8429 return 0; 8430} 8431_ACEOF 8432rm -f conftest$ac_exeext 8433if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8434 (eval $ac_link) 2>&5 8435 ac_status=$? 8436 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8437 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 8438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8439 (eval $ac_try) 2>&5 8440 ac_status=$? 8441 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8442 (exit $ac_status); }; }; then 8443 ac_cv_sizeof_long=`cat conftest.val` 8444else 8445 echo "$as_me: program exited with status $ac_status" >&5 8446echo "$as_me: failed program was:" >&5 8447sed 's/^/| /' conftest.$ac_ext >&5 8448 8449( exit $ac_status ) 8450{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 8451See \`config.log' for more details." >&5 8452echo "$as_me: error: cannot compute sizeof (long), 77 8453See \`config.log' for more details." >&2;} 8454 { (exit 1); exit 1; }; } 8455fi 8456rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 8457fi 8458fi 8459rm -f conftest.val 8460else 8461 ac_cv_sizeof_long=0 8462fi 8463fi 8464echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 8465echo "${ECHO_T}$ac_cv_sizeof_long" >&6 8466cat >>confdefs.h <<_ACEOF 8467#define SIZEOF_LONG $ac_cv_sizeof_long 8468_ACEOF 8469 8470 8471 echo "$as_me:$LINENO: checking for short" >&5 8472echo $ECHO_N "checking for short... $ECHO_C" >&6 8473if test "${ac_cv_type_short+set}" = set; then 8474 echo $ECHO_N "(cached) $ECHO_C" >&6 8475else 8476 cat >conftest.$ac_ext <<_ACEOF 8477/* confdefs.h. */ 8478_ACEOF 8479cat confdefs.h >>conftest.$ac_ext 8480cat >>conftest.$ac_ext <<_ACEOF 8481/* end confdefs.h. */ 8482$ac_includes_default 8483int 8484main () 8485{ 8486if ((short *) 0) 8487 return 0; 8488if (sizeof (short)) 8489 return 0; 8490 ; 8491 return 0; 8492} 8493_ACEOF 8494rm -f conftest.$ac_objext 8495if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8496 (eval $ac_compile) 2>conftest.er1 8497 ac_status=$? 8498 grep -v '^ *+' conftest.er1 >conftest.err 8499 rm -f conftest.er1 8500 cat conftest.err >&5 8501 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8502 (exit $ac_status); } && 8503 { ac_try='test -z "$ac_c_werror_flag" 8504 || test ! -s conftest.err' 8505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8506 (eval $ac_try) 2>&5 8507 ac_status=$? 8508 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8509 (exit $ac_status); }; } && 8510 { ac_try='test -s conftest.$ac_objext' 8511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8512 (eval $ac_try) 2>&5 8513 ac_status=$? 8514 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8515 (exit $ac_status); }; }; then 8516 ac_cv_type_short=yes 8517else 8518 echo "$as_me: failed program was:" >&5 8519sed 's/^/| /' conftest.$ac_ext >&5 8520 8521ac_cv_type_short=no 8522fi 8523rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8524fi 8525echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 8526echo "${ECHO_T}$ac_cv_type_short" >&6 8527 8528echo "$as_me:$LINENO: checking size of short" >&5 8529echo $ECHO_N "checking size of short... $ECHO_C" >&6 8530if test "${ac_cv_sizeof_short+set}" = set; then 8531 echo $ECHO_N "(cached) $ECHO_C" >&6 8532else 8533 if test "$ac_cv_type_short" = yes; then 8534 # The cast to unsigned long works around a bug in the HP C Compiler 8535 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 8536 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 8537 # This bug is HP SR number 8606223364. 8538 if test "$cross_compiling" = yes; then 8539 # Depending upon the size, compute the lo and hi bounds. 8540cat >conftest.$ac_ext <<_ACEOF 8541/* confdefs.h. */ 8542_ACEOF 8543cat confdefs.h >>conftest.$ac_ext 8544cat >>conftest.$ac_ext <<_ACEOF 8545/* end confdefs.h. */ 8546$ac_includes_default 8547int 8548main () 8549{ 8550static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)]; 8551test_array [0] = 0 8552 8553 ; 8554 return 0; 8555} 8556_ACEOF 8557rm -f conftest.$ac_objext 8558if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8559 (eval $ac_compile) 2>conftest.er1 8560 ac_status=$? 8561 grep -v '^ *+' conftest.er1 >conftest.err 8562 rm -f conftest.er1 8563 cat conftest.err >&5 8564 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8565 (exit $ac_status); } && 8566 { ac_try='test -z "$ac_c_werror_flag" 8567 || test ! -s conftest.err' 8568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8569 (eval $ac_try) 2>&5 8570 ac_status=$? 8571 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8572 (exit $ac_status); }; } && 8573 { ac_try='test -s conftest.$ac_objext' 8574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8575 (eval $ac_try) 2>&5 8576 ac_status=$? 8577 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8578 (exit $ac_status); }; }; then 8579 ac_lo=0 ac_mid=0 8580 while :; do 8581 cat >conftest.$ac_ext <<_ACEOF 8582/* confdefs.h. */ 8583_ACEOF 8584cat confdefs.h >>conftest.$ac_ext 8585cat >>conftest.$ac_ext <<_ACEOF 8586/* end confdefs.h. */ 8587$ac_includes_default 8588int 8589main () 8590{ 8591static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; 8592test_array [0] = 0 8593 8594 ; 8595 return 0; 8596} 8597_ACEOF 8598rm -f conftest.$ac_objext 8599if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8600 (eval $ac_compile) 2>conftest.er1 8601 ac_status=$? 8602 grep -v '^ *+' conftest.er1 >conftest.err 8603 rm -f conftest.er1 8604 cat conftest.err >&5 8605 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8606 (exit $ac_status); } && 8607 { ac_try='test -z "$ac_c_werror_flag" 8608 || test ! -s conftest.err' 8609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8610 (eval $ac_try) 2>&5 8611 ac_status=$? 8612 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8613 (exit $ac_status); }; } && 8614 { ac_try='test -s conftest.$ac_objext' 8615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8616 (eval $ac_try) 2>&5 8617 ac_status=$? 8618 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8619 (exit $ac_status); }; }; then 8620 ac_hi=$ac_mid; break 8621else 8622 echo "$as_me: failed program was:" >&5 8623sed 's/^/| /' conftest.$ac_ext >&5 8624 8625ac_lo=`expr $ac_mid + 1` 8626 if test $ac_lo -le $ac_mid; then 8627 ac_lo= ac_hi= 8628 break 8629 fi 8630 ac_mid=`expr 2 '*' $ac_mid + 1` 8631fi 8632rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8633 done 8634else 8635 echo "$as_me: failed program was:" >&5 8636sed 's/^/| /' conftest.$ac_ext >&5 8637 8638cat >conftest.$ac_ext <<_ACEOF 8639/* confdefs.h. */ 8640_ACEOF 8641cat confdefs.h >>conftest.$ac_ext 8642cat >>conftest.$ac_ext <<_ACEOF 8643/* end confdefs.h. */ 8644$ac_includes_default 8645int 8646main () 8647{ 8648static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)]; 8649test_array [0] = 0 8650 8651 ; 8652 return 0; 8653} 8654_ACEOF 8655rm -f conftest.$ac_objext 8656if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8657 (eval $ac_compile) 2>conftest.er1 8658 ac_status=$? 8659 grep -v '^ *+' conftest.er1 >conftest.err 8660 rm -f conftest.er1 8661 cat conftest.err >&5 8662 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8663 (exit $ac_status); } && 8664 { ac_try='test -z "$ac_c_werror_flag" 8665 || test ! -s conftest.err' 8666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8667 (eval $ac_try) 2>&5 8668 ac_status=$? 8669 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8670 (exit $ac_status); }; } && 8671 { ac_try='test -s conftest.$ac_objext' 8672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8673 (eval $ac_try) 2>&5 8674 ac_status=$? 8675 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8676 (exit $ac_status); }; }; then 8677 ac_hi=-1 ac_mid=-1 8678 while :; do 8679 cat >conftest.$ac_ext <<_ACEOF 8680/* confdefs.h. */ 8681_ACEOF 8682cat confdefs.h >>conftest.$ac_ext 8683cat >>conftest.$ac_ext <<_ACEOF 8684/* end confdefs.h. */ 8685$ac_includes_default 8686int 8687main () 8688{ 8689static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)]; 8690test_array [0] = 0 8691 8692 ; 8693 return 0; 8694} 8695_ACEOF 8696rm -f conftest.$ac_objext 8697if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8698 (eval $ac_compile) 2>conftest.er1 8699 ac_status=$? 8700 grep -v '^ *+' conftest.er1 >conftest.err 8701 rm -f conftest.er1 8702 cat conftest.err >&5 8703 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8704 (exit $ac_status); } && 8705 { ac_try='test -z "$ac_c_werror_flag" 8706 || test ! -s conftest.err' 8707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8708 (eval $ac_try) 2>&5 8709 ac_status=$? 8710 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8711 (exit $ac_status); }; } && 8712 { ac_try='test -s conftest.$ac_objext' 8713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8714 (eval $ac_try) 2>&5 8715 ac_status=$? 8716 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8717 (exit $ac_status); }; }; then 8718 ac_lo=$ac_mid; break 8719else 8720 echo "$as_me: failed program was:" >&5 8721sed 's/^/| /' conftest.$ac_ext >&5 8722 8723ac_hi=`expr '(' $ac_mid ')' - 1` 8724 if test $ac_mid -le $ac_hi; then 8725 ac_lo= ac_hi= 8726 break 8727 fi 8728 ac_mid=`expr 2 '*' $ac_mid` 8729fi 8730rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8731 done 8732else 8733 echo "$as_me: failed program was:" >&5 8734sed 's/^/| /' conftest.$ac_ext >&5 8735 8736ac_lo= ac_hi= 8737fi 8738rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8739fi 8740rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8741# Binary search between lo and hi bounds. 8742while test "x$ac_lo" != "x$ac_hi"; do 8743 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 8744 cat >conftest.$ac_ext <<_ACEOF 8745/* confdefs.h. */ 8746_ACEOF 8747cat confdefs.h >>conftest.$ac_ext 8748cat >>conftest.$ac_ext <<_ACEOF 8749/* end confdefs.h. */ 8750$ac_includes_default 8751int 8752main () 8753{ 8754static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; 8755test_array [0] = 0 8756 8757 ; 8758 return 0; 8759} 8760_ACEOF 8761rm -f conftest.$ac_objext 8762if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8763 (eval $ac_compile) 2>conftest.er1 8764 ac_status=$? 8765 grep -v '^ *+' conftest.er1 >conftest.err 8766 rm -f conftest.er1 8767 cat conftest.err >&5 8768 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8769 (exit $ac_status); } && 8770 { ac_try='test -z "$ac_c_werror_flag" 8771 || test ! -s conftest.err' 8772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8773 (eval $ac_try) 2>&5 8774 ac_status=$? 8775 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8776 (exit $ac_status); }; } && 8777 { ac_try='test -s conftest.$ac_objext' 8778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8779 (eval $ac_try) 2>&5 8780 ac_status=$? 8781 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8782 (exit $ac_status); }; }; then 8783 ac_hi=$ac_mid 8784else 8785 echo "$as_me: failed program was:" >&5 8786sed 's/^/| /' conftest.$ac_ext >&5 8787 8788ac_lo=`expr '(' $ac_mid ')' + 1` 8789fi 8790rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8791done 8792case $ac_lo in 8793?*) ac_cv_sizeof_short=$ac_lo;; 8794'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 8795See \`config.log' for more details." >&5 8796echo "$as_me: error: cannot compute sizeof (short), 77 8797See \`config.log' for more details." >&2;} 8798 { (exit 1); exit 1; }; } ;; 8799esac 8800else 8801 if test "$cross_compiling" = yes; then 8802 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 8803See \`config.log' for more details." >&5 8804echo "$as_me: error: cannot run test program while cross compiling 8805See \`config.log' for more details." >&2;} 8806 { (exit 1); exit 1; }; } 8807else 8808 cat >conftest.$ac_ext <<_ACEOF 8809/* confdefs.h. */ 8810_ACEOF 8811cat confdefs.h >>conftest.$ac_ext 8812cat >>conftest.$ac_ext <<_ACEOF 8813/* end confdefs.h. */ 8814$ac_includes_default 8815long longval () { return (long) (sizeof (short)); } 8816unsigned long ulongval () { return (long) (sizeof (short)); } 8817#include <stdio.h> 8818#include <stdlib.h> 8819int 8820main () 8821{ 8822 8823 FILE *f = fopen ("conftest.val", "w"); 8824 if (! f) 8825 exit (1); 8826 if (((long) (sizeof (short))) < 0) 8827 { 8828 long i = longval (); 8829 if (i != ((long) (sizeof (short)))) 8830 exit (1); 8831 fprintf (f, "%ld\n", i); 8832 } 8833 else 8834 { 8835 unsigned long i = ulongval (); 8836 if (i != ((long) (sizeof (short)))) 8837 exit (1); 8838 fprintf (f, "%lu\n", i); 8839 } 8840 exit (ferror (f) || fclose (f) != 0); 8841 8842 ; 8843 return 0; 8844} 8845_ACEOF 8846rm -f conftest$ac_exeext 8847if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8848 (eval $ac_link) 2>&5 8849 ac_status=$? 8850 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8851 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 8852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8853 (eval $ac_try) 2>&5 8854 ac_status=$? 8855 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8856 (exit $ac_status); }; }; then 8857 ac_cv_sizeof_short=`cat conftest.val` 8858else 8859 echo "$as_me: program exited with status $ac_status" >&5 8860echo "$as_me: failed program was:" >&5 8861sed 's/^/| /' conftest.$ac_ext >&5 8862 8863( exit $ac_status ) 8864{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 8865See \`config.log' for more details." >&5 8866echo "$as_me: error: cannot compute sizeof (short), 77 8867See \`config.log' for more details." >&2;} 8868 { (exit 1); exit 1; }; } 8869fi 8870rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 8871fi 8872fi 8873rm -f conftest.val 8874else 8875 ac_cv_sizeof_short=0 8876fi 8877fi 8878echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 8879echo "${ECHO_T}$ac_cv_sizeof_short" >&6 8880cat >>confdefs.h <<_ACEOF 8881#define SIZEOF_SHORT $ac_cv_sizeof_short 8882_ACEOF 8883 8884 8885 8886 # ---------------------------------------------------------------------- 8887 # AC_CHECK_LIB for SVR4 libgen, and use it if it defines pathfind. 8888 # ---------------------------------------------------------------------- 8889 8890echo "$as_me:$LINENO: checking for pathfind in -lgen" >&5 8891echo $ECHO_N "checking for pathfind in -lgen... $ECHO_C" >&6 8892if test "${ac_cv_lib_gen_pathfind+set}" = set; then 8893 echo $ECHO_N "(cached) $ECHO_C" >&6 8894else 8895 ac_check_lib_save_LIBS=$LIBS 8896LIBS="-lgen $LIBS" 8897cat >conftest.$ac_ext <<_ACEOF 8898/* confdefs.h. */ 8899_ACEOF 8900cat confdefs.h >>conftest.$ac_ext 8901cat >>conftest.$ac_ext <<_ACEOF 8902/* end confdefs.h. */ 8903 8904/* Override any gcc2 internal prototype to avoid an error. */ 8905#ifdef __cplusplus 8906extern "C" 8907#endif 8908/* We use char because int might match the return type of a gcc2 8909 builtin and then its argument prototype would still apply. */ 8910char pathfind (); 8911int 8912main () 8913{ 8914pathfind (); 8915 ; 8916 return 0; 8917} 8918_ACEOF 8919rm -f conftest.$ac_objext conftest$ac_exeext 8920if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8921 (eval $ac_link) 2>conftest.er1 8922 ac_status=$? 8923 grep -v '^ *+' conftest.er1 >conftest.err 8924 rm -f conftest.er1 8925 cat conftest.err >&5 8926 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8927 (exit $ac_status); } && 8928 { ac_try='test -z "$ac_c_werror_flag" 8929 || test ! -s conftest.err' 8930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8931 (eval $ac_try) 2>&5 8932 ac_status=$? 8933 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8934 (exit $ac_status); }; } && 8935 { ac_try='test -s conftest$ac_exeext' 8936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8937 (eval $ac_try) 2>&5 8938 ac_status=$? 8939 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8940 (exit $ac_status); }; }; then 8941 ac_cv_lib_gen_pathfind=yes 8942else 8943 echo "$as_me: failed program was:" >&5 8944sed 's/^/| /' conftest.$ac_ext >&5 8945 8946ac_cv_lib_gen_pathfind=no 8947fi 8948rm -f conftest.err conftest.$ac_objext \ 8949 conftest$ac_exeext conftest.$ac_ext 8950LIBS=$ac_check_lib_save_LIBS 8951fi 8952echo "$as_me:$LINENO: result: $ac_cv_lib_gen_pathfind" >&5 8953echo "${ECHO_T}$ac_cv_lib_gen_pathfind" >&6 8954if test $ac_cv_lib_gen_pathfind = yes; then 8955 cat >>confdefs.h <<_ACEOF 8956#define HAVE_LIBGEN 1 8957_ACEOF 8958 8959 LIBS="-lgen $LIBS" 8960 8961fi 8962 8963 8964for ac_func in vprintf 8965do 8966as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 8967echo "$as_me:$LINENO: checking for $ac_func" >&5 8968echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 8969if eval "test \"\${$as_ac_var+set}\" = set"; then 8970 echo $ECHO_N "(cached) $ECHO_C" >&6 8971else 8972 cat >conftest.$ac_ext <<_ACEOF 8973/* confdefs.h. */ 8974_ACEOF 8975cat confdefs.h >>conftest.$ac_ext 8976cat >>conftest.$ac_ext <<_ACEOF 8977/* end confdefs.h. */ 8978/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 8979 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 8980#define $ac_func innocuous_$ac_func 8981 8982/* System header to define __stub macros and hopefully few prototypes, 8983 which can conflict with char $ac_func (); below. 8984 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8985 <limits.h> exists even on freestanding compilers. */ 8986 8987#ifdef __STDC__ 8988# include <limits.h> 8989#else 8990# include <assert.h> 8991#endif 8992 8993#undef $ac_func 8994 8995/* Override any gcc2 internal prototype to avoid an error. */ 8996#ifdef __cplusplus 8997extern "C" 8998{ 8999#endif 9000/* We use char because int might match the return type of a gcc2 9001 builtin and then its argument prototype would still apply. */ 9002char $ac_func (); 9003/* The GNU C library defines this for functions which it implements 9004 to always fail with ENOSYS. Some functions are actually named 9005 something starting with __ and the normal name is an alias. */ 9006#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 9007choke me 9008#else 9009char (*f) () = $ac_func; 9010#endif 9011#ifdef __cplusplus 9012} 9013#endif 9014 9015int 9016main () 9017{ 9018return f != $ac_func; 9019 ; 9020 return 0; 9021} 9022_ACEOF 9023rm -f conftest.$ac_objext conftest$ac_exeext 9024if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9025 (eval $ac_link) 2>conftest.er1 9026 ac_status=$? 9027 grep -v '^ *+' conftest.er1 >conftest.err 9028 rm -f conftest.er1 9029 cat conftest.err >&5 9030 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9031 (exit $ac_status); } && 9032 { ac_try='test -z "$ac_c_werror_flag" 9033 || test ! -s conftest.err' 9034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9035 (eval $ac_try) 2>&5 9036 ac_status=$? 9037 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9038 (exit $ac_status); }; } && 9039 { ac_try='test -s conftest$ac_exeext' 9040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9041 (eval $ac_try) 2>&5 9042 ac_status=$? 9043 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9044 (exit $ac_status); }; }; then 9045 eval "$as_ac_var=yes" 9046else 9047 echo "$as_me: failed program was:" >&5 9048sed 's/^/| /' conftest.$ac_ext >&5 9049 9050eval "$as_ac_var=no" 9051fi 9052rm -f conftest.err conftest.$ac_objext \ 9053 conftest$ac_exeext conftest.$ac_ext 9054fi 9055echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 9056echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 9057if test `eval echo '${'$as_ac_var'}'` = yes; then 9058 cat >>confdefs.h <<_ACEOF 9059#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 9060_ACEOF 9061 9062echo "$as_me:$LINENO: checking for _doprnt" >&5 9063echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6 9064if test "${ac_cv_func__doprnt+set}" = set; then 9065 echo $ECHO_N "(cached) $ECHO_C" >&6 9066else 9067 cat >conftest.$ac_ext <<_ACEOF 9068/* confdefs.h. */ 9069_ACEOF 9070cat confdefs.h >>conftest.$ac_ext 9071cat >>conftest.$ac_ext <<_ACEOF 9072/* end confdefs.h. */ 9073/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt. 9074 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9075#define _doprnt innocuous__doprnt 9076 9077/* System header to define __stub macros and hopefully few prototypes, 9078 which can conflict with char _doprnt (); below. 9079 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9080 <limits.h> exists even on freestanding compilers. */ 9081 9082#ifdef __STDC__ 9083# include <limits.h> 9084#else 9085# include <assert.h> 9086#endif 9087 9088#undef _doprnt 9089 9090/* Override any gcc2 internal prototype to avoid an error. */ 9091#ifdef __cplusplus 9092extern "C" 9093{ 9094#endif 9095/* We use char because int might match the return type of a gcc2 9096 builtin and then its argument prototype would still apply. */ 9097char _doprnt (); 9098/* The GNU C library defines this for functions which it implements 9099 to always fail with ENOSYS. Some functions are actually named 9100 something starting with __ and the normal name is an alias. */ 9101#if defined (__stub__doprnt) || defined (__stub____doprnt) 9102choke me 9103#else 9104char (*f) () = _doprnt; 9105#endif 9106#ifdef __cplusplus 9107} 9108#endif 9109 9110int 9111main () 9112{ 9113return f != _doprnt; 9114 ; 9115 return 0; 9116} 9117_ACEOF 9118rm -f conftest.$ac_objext conftest$ac_exeext 9119if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9120 (eval $ac_link) 2>conftest.er1 9121 ac_status=$? 9122 grep -v '^ *+' conftest.er1 >conftest.err 9123 rm -f conftest.er1 9124 cat conftest.err >&5 9125 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9126 (exit $ac_status); } && 9127 { ac_try='test -z "$ac_c_werror_flag" 9128 || test ! -s conftest.err' 9129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9130 (eval $ac_try) 2>&5 9131 ac_status=$? 9132 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9133 (exit $ac_status); }; } && 9134 { ac_try='test -s conftest$ac_exeext' 9135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9136 (eval $ac_try) 2>&5 9137 ac_status=$? 9138 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9139 (exit $ac_status); }; }; then 9140 ac_cv_func__doprnt=yes 9141else 9142 echo "$as_me: failed program was:" >&5 9143sed 's/^/| /' conftest.$ac_ext >&5 9144 9145ac_cv_func__doprnt=no 9146fi 9147rm -f conftest.err conftest.$ac_objext \ 9148 conftest$ac_exeext conftest.$ac_ext 9149fi 9150echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5 9151echo "${ECHO_T}$ac_cv_func__doprnt" >&6 9152if test $ac_cv_func__doprnt = yes; then 9153 9154cat >>confdefs.h <<\_ACEOF 9155#define HAVE_DOPRNT 1 9156_ACEOF 9157 9158fi 9159 9160fi 9161done 9162 9163 9164 9165 9166 9167 9168 9169 9170for ac_func in mmap canonicalize_file_name snprintf strdup strchr strrchr 9171do 9172as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 9173echo "$as_me:$LINENO: checking for $ac_func" >&5 9174echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 9175if eval "test \"\${$as_ac_var+set}\" = set"; then 9176 echo $ECHO_N "(cached) $ECHO_C" >&6 9177else 9178 cat >conftest.$ac_ext <<_ACEOF 9179/* confdefs.h. */ 9180_ACEOF 9181cat confdefs.h >>conftest.$ac_ext 9182cat >>conftest.$ac_ext <<_ACEOF 9183/* end confdefs.h. */ 9184/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 9185 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9186#define $ac_func innocuous_$ac_func 9187 9188/* System header to define __stub macros and hopefully few prototypes, 9189 which can conflict with char $ac_func (); below. 9190 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9191 <limits.h> exists even on freestanding compilers. */ 9192 9193#ifdef __STDC__ 9194# include <limits.h> 9195#else 9196# include <assert.h> 9197#endif 9198 9199#undef $ac_func 9200 9201/* Override any gcc2 internal prototype to avoid an error. */ 9202#ifdef __cplusplus 9203extern "C" 9204{ 9205#endif 9206/* We use char because int might match the return type of a gcc2 9207 builtin and then its argument prototype would still apply. */ 9208char $ac_func (); 9209/* The GNU C library defines this for functions which it implements 9210 to always fail with ENOSYS. Some functions are actually named 9211 something starting with __ and the normal name is an alias. */ 9212#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 9213choke me 9214#else 9215char (*f) () = $ac_func; 9216#endif 9217#ifdef __cplusplus 9218} 9219#endif 9220 9221int 9222main () 9223{ 9224return f != $ac_func; 9225 ; 9226 return 0; 9227} 9228_ACEOF 9229rm -f conftest.$ac_objext conftest$ac_exeext 9230if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9231 (eval $ac_link) 2>conftest.er1 9232 ac_status=$? 9233 grep -v '^ *+' conftest.er1 >conftest.err 9234 rm -f conftest.er1 9235 cat conftest.err >&5 9236 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9237 (exit $ac_status); } && 9238 { ac_try='test -z "$ac_c_werror_flag" 9239 || test ! -s conftest.err' 9240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9241 (eval $ac_try) 2>&5 9242 ac_status=$? 9243 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9244 (exit $ac_status); }; } && 9245 { ac_try='test -s conftest$ac_exeext' 9246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9247 (eval $ac_try) 2>&5 9248 ac_status=$? 9249 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9250 (exit $ac_status); }; }; then 9251 eval "$as_ac_var=yes" 9252else 9253 echo "$as_me: failed program was:" >&5 9254sed 's/^/| /' conftest.$ac_ext >&5 9255 9256eval "$as_ac_var=no" 9257fi 9258rm -f conftest.err conftest.$ac_objext \ 9259 conftest$ac_exeext conftest.$ac_ext 9260fi 9261echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 9262echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 9263if test `eval echo '${'$as_ac_var'}'` = yes; then 9264 cat >>confdefs.h <<_ACEOF 9265#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 9266_ACEOF 9267 9268fi 9269done 9270 9271 INVOKE_LIBOPTS_MACROS_FIRST_done=yes 9272fi 9273 # Check to see if a reg expr header is specified. 9274 9275 9276# Check whether --with-regex-header or --without-regex-header was given. 9277if test "${with_regex_header+set}" = set; then 9278 withval="$with_regex_header" 9279 libopts_cv_with_regex_header=${with_regex_header} 9280else 9281 echo "$as_me:$LINENO: checking whether a reg expr header is specified" >&5 9282echo $ECHO_N "checking whether a reg expr header is specified... $ECHO_C" >&6 9283if test "${libopts_cv_with_regex_header+set}" = set; then 9284 echo $ECHO_N "(cached) $ECHO_C" >&6 9285else 9286 libopts_cv_with_regex_header=no 9287fi 9288echo "$as_me:$LINENO: result: $libopts_cv_with_regex_header" >&5 9289echo "${ECHO_T}$libopts_cv_with_regex_header" >&6 9290 9291fi; # end of AC_ARG_WITH 9292 9293 if test "X${libopts_cv_with_regex_header}" != Xno 9294 then 9295 cat >>confdefs.h <<_ACEOF 9296#define REGEX_HEADER <${libopts_cv_with_regex_header}> 9297_ACEOF 9298 9299 else 9300 9301cat >>confdefs.h <<\_ACEOF 9302#define REGEX_HEADER <regex.h> 9303_ACEOF 9304 9305 fi 9306 9307 9308 9309 # Check to see if a working libregex can be found. 9310 9311 9312# Check whether --with-libregex or --without-libregex was given. 9313if test "${with_libregex+set}" = set; then 9314 withval="$with_libregex" 9315 libopts_cv_with_libregex_root=${with_libregex} 9316else 9317 echo "$as_me:$LINENO: checking whether with-libregex was specified" >&5 9318echo $ECHO_N "checking whether with-libregex was specified... $ECHO_C" >&6 9319if test "${libopts_cv_with_libregex_root+set}" = set; then 9320 echo $ECHO_N "(cached) $ECHO_C" >&6 9321else 9322 libopts_cv_with_libregex_root=no 9323fi 9324echo "$as_me:$LINENO: result: $libopts_cv_with_libregex_root" >&5 9325echo "${ECHO_T}$libopts_cv_with_libregex_root" >&6 9326 9327fi; # end of AC_ARG_WITH libregex 9328 9329 if test "${with_libguile+set}" = set && \ 9330 test "${withval}" = no 9331 then ## disabled by request 9332 libopts_cv_with_libregex_root=no 9333 libopts_cv_with_libregex_cflags=no 9334 libopts_cv_with_libregex_libs=no 9335 else 9336 9337 9338# Check whether --with-libregex-cflags or --without-libregex-cflags was given. 9339if test "${with_libregex_cflags+set}" = set; then 9340 withval="$with_libregex_cflags" 9341 libopts_cv_with_libregex_cflags=${with_regex_cflags} 9342else 9343 echo "$as_me:$LINENO: checking whether with-libregex-cflags was specified" >&5 9344echo $ECHO_N "checking whether with-libregex-cflags was specified... $ECHO_C" >&6 9345if test "${libopts_cv_with_libregex_cflags+set}" = set; then 9346 echo $ECHO_N "(cached) $ECHO_C" >&6 9347else 9348 libopts_cv_with_libregex_cflags=no 9349fi 9350echo "$as_me:$LINENO: result: $libopts_cv_with_libregex_cflags" >&5 9351echo "${ECHO_T}$libopts_cv_with_libregex_cflags" >&6 9352 9353fi; # end of AC_ARG_WITH libregex-cflags 9354 9355 9356# Check whether --with-libregex-libs or --without-libregex-libs was given. 9357if test "${with_libregex_libs+set}" = set; then 9358 withval="$with_libregex_libs" 9359 libopts_cv_with_libregex_libs=${with_regex_libs} 9360else 9361 echo "$as_me:$LINENO: checking whether with-libregex-libs was specified" >&5 9362echo $ECHO_N "checking whether with-libregex-libs was specified... $ECHO_C" >&6 9363if test "${libopts_cv_with_libregex_libs+set}" = set; then 9364 echo $ECHO_N "(cached) $ECHO_C" >&6 9365else 9366 libopts_cv_with_libregex_libs=no 9367fi 9368echo "$as_me:$LINENO: result: $libopts_cv_with_libregex_libs" >&5 9369echo "${ECHO_T}$libopts_cv_with_libregex_libs" >&6 9370 9371fi; # end of AC_ARG_WITH libregex-libs 9372 9373 case "X${libopts_cv_with_libregex_cflags}" in 9374 Xyes|Xno|X ) 9375 case "X${libopts_cv_with_libregex_root}" in 9376 Xyes|Xno|X ) libopts_cv_with_libregex_cflags=no ;; 9377 * ) libopts_cv_with_libregex_cflags=-I${libopts_cv_with_libregex_root}/include ;; 9378 esac 9379 esac 9380 case "X${libopts_cv_with_libregex_libs}" in 9381 Xyes|Xno|X ) 9382 case "X${libopts_cv_with_libregex_root}" in 9383 Xyes|Xno|X ) libopts_cv_with_libregex_libs=no ;; 9384 * ) libopts_cv_with_libregex_libs="-L${libopts_cv_with_libregex_root}/lib -lregex";; 9385 esac 9386 esac 9387 libopts_save_CPPFLAGS="${CPPFLAGS}" 9388 libopts_save_LIBS="${LIBS}" 9389 fi ## disabled by request 9390 9391 case "X${libopts_cv_with_libregex_cflags}" in 9392 Xyes|Xno|X ) 9393 libopts_cv_with_libregex_cflags="" ;; 9394 * ) CPPFLAGS="${CPPFLAGS} ${libopts_cv_with_libregex_cflags}" ;; 9395 esac 9396 case "X${libopts_cv_with_libregex_libs}" in 9397 Xyes|Xno|X ) 9398 libopts_cv_with_libregex_libs="" ;; 9399 * ) 9400 LIBS="${LIBS} ${libopts_cv_with_libregex_libs}" ;; 9401 esac 9402 LIBREGEX_CFLAGS="" 9403 LIBREGEX_LIBS="" 9404 echo "$as_me:$LINENO: checking whether libregex functions properly" >&5 9405echo $ECHO_N "checking whether libregex functions properly... $ECHO_C" >&6 9406 if test "${libopts_cv_with_libregex+set}" = set; then 9407 echo $ECHO_N "(cached) $ECHO_C" >&6 9408else 9409 9410 if test "$cross_compiling" = yes; then 9411 libopts_cv_with_libregex=no 9412else 9413 cat >conftest.$ac_ext <<_ACEOF 9414/* confdefs.h. */ 9415_ACEOF 9416cat confdefs.h >>conftest.$ac_ext 9417cat >>conftest.$ac_ext <<_ACEOF 9418/* end confdefs.h. */ 9419#include <stdio.h> 9420#include <stdlib.h> 9421#include <sys/types.h> 9422#include REGEX_HEADER 9423static regex_t re; 9424void comp_re( char const* pzPat ) { 9425 int res = regcomp( &re, pzPat, REG_EXTENDED|REG_ICASE|REG_NEWLINE ); 9426 if (res == 0) return; 9427 exit( res ); } 9428int main() { 9429 regmatch_t m[2]; 9430 comp_re( "^.*\$" ); 9431 comp_re( "()|no.*" ); 9432 comp_re( "." ); 9433 if (regexec( &re, "X", 2, m, 0 ) != 0) return 1; 9434 if ((m[0].rm_so != 0) || (m[0].rm_eo != 1)) { 9435 fputs( "error: regex -->.<-- did not match\n", stderr ); 9436 return 1; 9437 } 9438 return 0; } 9439_ACEOF 9440rm -f conftest$ac_exeext 9441if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9442 (eval $ac_link) 2>&5 9443 ac_status=$? 9444 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9445 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 9446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9447 (eval $ac_try) 2>&5 9448 ac_status=$? 9449 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9450 (exit $ac_status); }; }; then 9451 libopts_cv_with_libregex=yes 9452else 9453 echo "$as_me: program exited with status $ac_status" >&5 9454echo "$as_me: failed program was:" >&5 9455sed 's/^/| /' conftest.$ac_ext >&5 9456 9457( exit $ac_status ) 9458libopts_cv_with_libregex=no 9459fi 9460rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 9461fi # end of AC_TRY_RUN 9462 9463fi 9464 # end of AC_CACHE_VAL for libopts_cv_with_libregex 9465 echo "$as_me:$LINENO: result: ${libopts_cv_with_libregex}" >&5 9466echo "${ECHO_T}${libopts_cv_with_libregex}" >&6 9467 9468 if test "X${libopts_cv_with_libregex}" != Xno 9469 then 9470 9471cat >>confdefs.h <<\_ACEOF 9472#define WITH_LIBREGEX 1 9473_ACEOF 9474 9475 else 9476 CPPFLAGS="${libopts_save_CPPFLAGS}" 9477 LIBS="${libopts_save_LIBS}" 9478 fi 9479 9480 9481 9482 # Check to see if pathfind(3) works. 9483 9484 echo "$as_me:$LINENO: checking whether pathfind(3) works" >&5 9485echo $ECHO_N "checking whether pathfind(3) works... $ECHO_C" >&6 9486 if test "${libopts_cv_run_pathfind+set}" = set; then 9487 echo $ECHO_N "(cached) $ECHO_C" >&6 9488else 9489 9490 if test "$cross_compiling" = yes; then 9491 libopts_cv_run_pathfind=no 9492 9493else 9494 cat >conftest.$ac_ext <<_ACEOF 9495/* confdefs.h. */ 9496_ACEOF 9497cat confdefs.h >>conftest.$ac_ext 9498cat >>conftest.$ac_ext <<_ACEOF 9499/* end confdefs.h. */ 9500#include <string.h> 9501#include <stdlib.h> 9502int main (int argc, char** argv) { 9503 char* pz = pathfind( getenv( "PATH" ), "sh", "x" ); 9504 return (pz == 0) ? 1 : 0; 9505} 9506_ACEOF 9507rm -f conftest$ac_exeext 9508if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9509 (eval $ac_link) 2>&5 9510 ac_status=$? 9511 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9512 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 9513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9514 (eval $ac_try) 2>&5 9515 ac_status=$? 9516 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9517 (exit $ac_status); }; }; then 9518 libopts_cv_run_pathfind=yes 9519else 9520 echo "$as_me: program exited with status $ac_status" >&5 9521echo "$as_me: failed program was:" >&5 9522sed 's/^/| /' conftest.$ac_ext >&5 9523 9524( exit $ac_status ) 9525libopts_cv_run_pathfind=no 9526fi 9527rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 9528fi # end of TRY_RUN 9529 9530fi 9531 # end of AC_CACHE_VAL for libopts_cv_run_pathfind 9532 echo "$as_me:$LINENO: result: ${libopts_cv_run_pathfind}" >&5 9533echo "${ECHO_T}${libopts_cv_run_pathfind}" >&6 9534 9535 if test "X${libopts_cv_run_pathfind}" != Xno 9536 then 9537 9538cat >>confdefs.h <<\_ACEOF 9539#define HAVE_PATHFIND 1 9540_ACEOF 9541 9542 fi 9543 9544 9545 9546 # Check to see if /dev/zero is readable device. 9547 9548 echo "$as_me:$LINENO: checking whether /dev/zero is readable device" >&5 9549echo $ECHO_N "checking whether /dev/zero is readable device... $ECHO_C" >&6 9550 if test "${libopts_cv_test_dev_zero+set}" = set; then 9551 echo $ECHO_N "(cached) $ECHO_C" >&6 9552else 9553 9554 libopts_cv_test_dev_zero=`exec 2> /dev/null 9555dzero=\`ls -lL /dev/zero | egrep ^c......r\` 9556test -z "${dzero}" && exit 1 9557echo ${dzero}` 9558 if test $? -ne 0 9559 then libopts_cv_test_dev_zero=no 9560 elif test -z "$libopts_cv_test_dev_zero" 9561 then libopts_cv_test_dev_zero=no 9562 fi 9563 9564fi 9565 # end of CACHE_VAL of libopts_cv_test_dev_zero 9566 echo "$as_me:$LINENO: result: ${libopts_cv_test_dev_zero}" >&5 9567echo "${ECHO_T}${libopts_cv_test_dev_zero}" >&6 9568 9569 if test "X${libopts_cv_test_dev_zero}" != Xno 9570 then 9571 9572cat >>confdefs.h <<\_ACEOF 9573#define HAVE_DEV_ZERO 1 9574_ACEOF 9575 9576 fi 9577 9578 9579 9580 # Check to see if we have a functional realpath(3C). 9581 9582 echo "$as_me:$LINENO: checking whether we have a functional realpath(3C)" >&5 9583echo $ECHO_N "checking whether we have a functional realpath(3C)... $ECHO_C" >&6 9584 if test "${libopts_cv_run_realpath+set}" = set; then 9585 echo $ECHO_N "(cached) $ECHO_C" >&6 9586else 9587 9588 if test "$cross_compiling" = yes; then 9589 libopts_cv_run_realpath=no 9590 9591else 9592 cat >conftest.$ac_ext <<_ACEOF 9593/* confdefs.h. */ 9594_ACEOF 9595cat confdefs.h >>conftest.$ac_ext 9596cat >>conftest.$ac_ext <<_ACEOF 9597/* end confdefs.h. */ 9598#include <limits.h> 9599#include <stdlib.h> 9600int main (int argc, char** argv) { 9601#ifndef PATH_MAX 9602choke me!! 9603#else 9604 char zPath[PATH_MAX+1]; 9605#endif 9606 char *pz = realpath(argv[0], zPath); 9607 return (pz == zPath) ? 0 : 1; 9608} 9609_ACEOF 9610rm -f conftest$ac_exeext 9611if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9612 (eval $ac_link) 2>&5 9613 ac_status=$? 9614 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9615 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 9616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9617 (eval $ac_try) 2>&5 9618 ac_status=$? 9619 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9620 (exit $ac_status); }; }; then 9621 libopts_cv_run_realpath=yes 9622else 9623 echo "$as_me: program exited with status $ac_status" >&5 9624echo "$as_me: failed program was:" >&5 9625sed 's/^/| /' conftest.$ac_ext >&5 9626 9627( exit $ac_status ) 9628libopts_cv_run_realpath=no 9629fi 9630rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 9631fi # end of TRY_RUN 9632 9633fi 9634 # end of AC_CACHE_VAL for libopts_cv_run_realpath 9635 echo "$as_me:$LINENO: result: ${libopts_cv_run_realpath}" >&5 9636echo "${ECHO_T}${libopts_cv_run_realpath}" >&6 9637 9638 if test "X${libopts_cv_run_realpath}" != Xno 9639 then 9640 9641cat >>confdefs.h <<\_ACEOF 9642#define HAVE_REALPATH 1 9643_ACEOF 9644 9645 fi 9646 9647 9648 9649 # Check to see if strftime() works. 9650 9651 echo "$as_me:$LINENO: checking whether strftime() works" >&5 9652echo $ECHO_N "checking whether strftime() works... $ECHO_C" >&6 9653 if test "${libopts_cv_run_strftime+set}" = set; then 9654 echo $ECHO_N "(cached) $ECHO_C" >&6 9655else 9656 9657 if test "$cross_compiling" = yes; then 9658 libopts_cv_run_strftime=no 9659 9660else 9661 cat >conftest.$ac_ext <<_ACEOF 9662/* confdefs.h. */ 9663_ACEOF 9664cat confdefs.h >>conftest.$ac_ext 9665cat >>conftest.$ac_ext <<_ACEOF 9666/* end confdefs.h. */ 9667#include <time.h> 9668#include <string.h> 9669char t_buf[ 64 ]; 9670int main() { 9671 static char const z[] = "Thursday Aug 28 240"; 9672 struct tm tm; 9673 tm.tm_sec = 36; /* seconds after the minute [0, 61] */ 9674 tm.tm_min = 44; /* minutes after the hour [0, 59] */ 9675 tm.tm_hour = 12; /* hour since midnight [0, 23] */ 9676 tm.tm_mday = 28; /* day of the month [1, 31] */ 9677 tm.tm_mon = 7; /* months since January [0, 11] */ 9678 tm.tm_year = 86; /* years since 1900 */ 9679 tm.tm_wday = 4; /* days since Sunday [0, 6] */ 9680 tm.tm_yday = 239; /* days since January 1 [0, 365] */ 9681 tm.tm_isdst = 1; /* flag for daylight savings time */ 9682 strftime( t_buf, sizeof( t_buf ), "%A %b %d %j", &tm ); 9683 return (strcmp( t_buf, z ) != 0); } 9684_ACEOF 9685rm -f conftest$ac_exeext 9686if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9687 (eval $ac_link) 2>&5 9688 ac_status=$? 9689 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9690 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 9691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9692 (eval $ac_try) 2>&5 9693 ac_status=$? 9694 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9695 (exit $ac_status); }; }; then 9696 libopts_cv_run_strftime=yes 9697else 9698 echo "$as_me: program exited with status $ac_status" >&5 9699echo "$as_me: failed program was:" >&5 9700sed 's/^/| /' conftest.$ac_ext >&5 9701 9702( exit $ac_status ) 9703libopts_cv_run_strftime=no 9704fi 9705rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 9706fi # end of TRY_RUN 9707 9708fi 9709 # end of AC_CACHE_VAL for libopts_cv_run_strftime 9710 echo "$as_me:$LINENO: result: ${libopts_cv_run_strftime}" >&5 9711echo "${ECHO_T}${libopts_cv_run_strftime}" >&6 9712 9713 if test "X${libopts_cv_run_strftime}" != Xno 9714 then 9715 9716cat >>confdefs.h <<\_ACEOF 9717#define HAVE_STRFTIME 1 9718_ACEOF 9719 9720 fi 9721 9722 9723 9724 # Check to see if fopen accepts "b" mode. 9725 9726 echo "$as_me:$LINENO: checking whether fopen accepts \"b\" mode" >&5 9727echo $ECHO_N "checking whether fopen accepts \"b\" mode... $ECHO_C" >&6 9728 if test "${libopts_cv_run_fopen_binary+set}" = set; then 9729 echo $ECHO_N "(cached) $ECHO_C" >&6 9730else 9731 9732 if test "$cross_compiling" = yes; then 9733 libopts_cv_run_fopen_binary=no 9734 9735else 9736 cat >conftest.$ac_ext <<_ACEOF 9737/* confdefs.h. */ 9738_ACEOF 9739cat confdefs.h >>conftest.$ac_ext 9740cat >>conftest.$ac_ext <<_ACEOF 9741/* end confdefs.h. */ 9742#include <stdio.h> 9743int main (int argc, char** argv) { 9744FILE* fp = fopen("conftest.$ac_ext", "rb"); 9745return (fp == NULL) ? 1 : fclose(fp); } 9746_ACEOF 9747rm -f conftest$ac_exeext 9748if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9749 (eval $ac_link) 2>&5 9750 ac_status=$? 9751 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9752 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 9753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9754 (eval $ac_try) 2>&5 9755 ac_status=$? 9756 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9757 (exit $ac_status); }; }; then 9758 libopts_cv_run_fopen_binary=yes 9759else 9760 echo "$as_me: program exited with status $ac_status" >&5 9761echo "$as_me: failed program was:" >&5 9762sed 's/^/| /' conftest.$ac_ext >&5 9763 9764( exit $ac_status ) 9765libopts_cv_run_fopen_binary=no 9766fi 9767rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 9768fi # end of TRY_RUN 9769 9770fi 9771 # end of AC_CACHE_VAL for libopts_cv_run_fopen_binary 9772 echo "$as_me:$LINENO: result: ${libopts_cv_run_fopen_binary}" >&5 9773echo "${ECHO_T}${libopts_cv_run_fopen_binary}" >&6 9774 9775 if test "X${libopts_cv_run_fopen_binary}" != Xno 9776 then 9777 9778cat >>confdefs.h <<\_ACEOF 9779#define FOPEN_BINARY_FLAG "b" 9780_ACEOF 9781 9782 else 9783 9784cat >>confdefs.h <<\_ACEOF 9785#define FOPEN_BINARY_FLAG "" 9786_ACEOF 9787 9788 fi 9789 9790 9791 9792 # Check to see if fopen accepts "t" mode. 9793 9794 echo "$as_me:$LINENO: checking whether fopen accepts \"t\" mode" >&5 9795echo $ECHO_N "checking whether fopen accepts \"t\" mode... $ECHO_C" >&6 9796 if test "${libopts_cv_run_fopen_text+set}" = set; then 9797 echo $ECHO_N "(cached) $ECHO_C" >&6 9798else 9799 9800 if test "$cross_compiling" = yes; then 9801 libopts_cv_run_fopen_text=no 9802 9803else 9804 cat >conftest.$ac_ext <<_ACEOF 9805/* confdefs.h. */ 9806_ACEOF 9807cat confdefs.h >>conftest.$ac_ext 9808cat >>conftest.$ac_ext <<_ACEOF 9809/* end confdefs.h. */ 9810#include <stdio.h> 9811int main (int argc, char** argv) { 9812FILE* fp = fopen("conftest.$ac_ext", "rt"); 9813return (fp == NULL) ? 1 : fclose(fp); } 9814_ACEOF 9815rm -f conftest$ac_exeext 9816if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9817 (eval $ac_link) 2>&5 9818 ac_status=$? 9819 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9820 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 9821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9822 (eval $ac_try) 2>&5 9823 ac_status=$? 9824 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9825 (exit $ac_status); }; }; then 9826 libopts_cv_run_fopen_text=yes 9827else 9828 echo "$as_me: program exited with status $ac_status" >&5 9829echo "$as_me: failed program was:" >&5 9830sed 's/^/| /' conftest.$ac_ext >&5 9831 9832( exit $ac_status ) 9833libopts_cv_run_fopen_text=no 9834fi 9835rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 9836fi # end of TRY_RUN 9837 9838fi 9839 # end of AC_CACHE_VAL for libopts_cv_run_fopen_text 9840 echo "$as_me:$LINENO: result: ${libopts_cv_run_fopen_text}" >&5 9841echo "${ECHO_T}${libopts_cv_run_fopen_text}" >&6 9842 9843 if test "X${libopts_cv_run_fopen_text}" != Xno 9844 then 9845 9846cat >>confdefs.h <<\_ACEOF 9847#define FOPEN_TEXT_FLAG "t" 9848_ACEOF 9849 9850 else 9851 9852cat >>confdefs.h <<\_ACEOF 9853#define FOPEN_TEXT_FLAG "" 9854_ACEOF 9855 9856 fi 9857 9858 9859 9860 # Check to see if not wanting optional option args. 9861 9862 # Check whether --enable-optional-args or --disable-optional-args was given. 9863if test "${enable_optional_args+set}" = set; then 9864 enableval="$enable_optional_args" 9865 libopts_cv_enable_optional_args=${enable_optional_args} 9866else 9867 echo "$as_me:$LINENO: checking whether not wanting optional option args" >&5 9868echo $ECHO_N "checking whether not wanting optional option args... $ECHO_C" >&6 9869if test "${libopts_cv_enable_optional_args+set}" = set; then 9870 echo $ECHO_N "(cached) $ECHO_C" >&6 9871else 9872 libopts_cv_enable_optional_args=yes 9873fi 9874echo "$as_me:$LINENO: result: $libopts_cv_enable_optional_args" >&5 9875echo "${ECHO_T}$libopts_cv_enable_optional_args" >&6 9876 9877fi; # end of AC_ARG_ENABLE 9878 9879 if test "X${libopts_cv_enable_optional_args}" = Xno 9880 then 9881 9882cat >>confdefs.h <<\_ACEOF 9883#define NO_OPTIONAL_OPT_ARGS 1 9884_ACEOF 9885 9886 fi 9887 9888 9889 9890 9891 else 9892 9893if test X${INVOKE_LIBOPTS_MACROS_FIRST_done} != Xyes ; then 9894 # ================= 9895 # AC_HEADER_STDC 9896 # ================= 9897 echo "$as_me:$LINENO: checking for ANSI C header files" >&5 9898echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 9899if test "${ac_cv_header_stdc+set}" = set; then 9900 echo $ECHO_N "(cached) $ECHO_C" >&6 9901else 9902 cat >conftest.$ac_ext <<_ACEOF 9903/* confdefs.h. */ 9904_ACEOF 9905cat confdefs.h >>conftest.$ac_ext 9906cat >>conftest.$ac_ext <<_ACEOF 9907/* end confdefs.h. */ 9908#include <stdlib.h> 9909#include <stdarg.h> 9910#include <string.h> 9911#include <float.h> 9912 9913int 9914main () 9915{ 9916 9917 ; 9918 return 0; 9919} 9920_ACEOF 9921rm -f conftest.$ac_objext 9922if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9923 (eval $ac_compile) 2>conftest.er1 9924 ac_status=$? 9925 grep -v '^ *+' conftest.er1 >conftest.err 9926 rm -f conftest.er1 9927 cat conftest.err >&5 9928 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9929 (exit $ac_status); } && 9930 { ac_try='test -z "$ac_c_werror_flag" 9931 || test ! -s conftest.err' 9932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9933 (eval $ac_try) 2>&5 9934 ac_status=$? 9935 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9936 (exit $ac_status); }; } && 9937 { ac_try='test -s conftest.$ac_objext' 9938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9939 (eval $ac_try) 2>&5 9940 ac_status=$? 9941 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9942 (exit $ac_status); }; }; then 9943 ac_cv_header_stdc=yes 9944else 9945 echo "$as_me: failed program was:" >&5 9946sed 's/^/| /' conftest.$ac_ext >&5 9947 9948ac_cv_header_stdc=no 9949fi 9950rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9951 9952if test $ac_cv_header_stdc = yes; then 9953 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 9954 cat >conftest.$ac_ext <<_ACEOF 9955/* confdefs.h. */ 9956_ACEOF 9957cat confdefs.h >>conftest.$ac_ext 9958cat >>conftest.$ac_ext <<_ACEOF 9959/* end confdefs.h. */ 9960#include <string.h> 9961 9962_ACEOF 9963if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 9964 $EGREP "memchr" >/dev/null 2>&1; then 9965 : 9966else 9967 ac_cv_header_stdc=no 9968fi 9969rm -f conftest* 9970 9971fi 9972 9973if test $ac_cv_header_stdc = yes; then 9974 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 9975 cat >conftest.$ac_ext <<_ACEOF 9976/* confdefs.h. */ 9977_ACEOF 9978cat confdefs.h >>conftest.$ac_ext 9979cat >>conftest.$ac_ext <<_ACEOF 9980/* end confdefs.h. */ 9981#include <stdlib.h> 9982 9983_ACEOF 9984if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 9985 $EGREP "free" >/dev/null 2>&1; then 9986 : 9987else 9988 ac_cv_header_stdc=no 9989fi 9990rm -f conftest* 9991 9992fi 9993 9994if test $ac_cv_header_stdc = yes; then 9995 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 9996 if test "$cross_compiling" = yes; then 9997 : 9998else 9999 cat >conftest.$ac_ext <<_ACEOF 10000/* confdefs.h. */ 10001_ACEOF 10002cat confdefs.h >>conftest.$ac_ext 10003cat >>conftest.$ac_ext <<_ACEOF 10004/* end confdefs.h. */ 10005#include <ctype.h> 10006#if ((' ' & 0x0FF) == 0x020) 10007# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 10008# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 10009#else 10010# define ISLOWER(c) \ 10011 (('a' <= (c) && (c) <= 'i') \ 10012 || ('j' <= (c) && (c) <= 'r') \ 10013 || ('s' <= (c) && (c) <= 'z')) 10014# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 10015#endif 10016 10017#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 10018int 10019main () 10020{ 10021 int i; 10022 for (i = 0; i < 256; i++) 10023 if (XOR (islower (i), ISLOWER (i)) 10024 || toupper (i) != TOUPPER (i)) 10025 exit(2); 10026 exit (0); 10027} 10028_ACEOF 10029rm -f conftest$ac_exeext 10030if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10031 (eval $ac_link) 2>&5 10032 ac_status=$? 10033 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10034 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 10035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10036 (eval $ac_try) 2>&5 10037 ac_status=$? 10038 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10039 (exit $ac_status); }; }; then 10040 : 10041else 10042 echo "$as_me: program exited with status $ac_status" >&5 10043echo "$as_me: failed program was:" >&5 10044sed 's/^/| /' conftest.$ac_ext >&5 10045 10046( exit $ac_status ) 10047ac_cv_header_stdc=no 10048fi 10049rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 10050fi 10051fi 10052fi 10053echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 10054echo "${ECHO_T}$ac_cv_header_stdc" >&6 10055if test $ac_cv_header_stdc = yes; then 10056 10057cat >>confdefs.h <<\_ACEOF 10058#define STDC_HEADERS 1 10059_ACEOF 10060 10061fi 10062 10063 # ================= 10064 # AC_HEADER_DIRENT 10065 # ================= 10066 10067 10068 10069 10070 10071ac_header_dirent=no 10072for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 10073 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` 10074echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 10075echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6 10076if eval "test \"\${$as_ac_Header+set}\" = set"; then 10077 echo $ECHO_N "(cached) $ECHO_C" >&6 10078else 10079 cat >conftest.$ac_ext <<_ACEOF 10080/* confdefs.h. */ 10081_ACEOF 10082cat confdefs.h >>conftest.$ac_ext 10083cat >>conftest.$ac_ext <<_ACEOF 10084/* end confdefs.h. */ 10085#include <sys/types.h> 10086#include <$ac_hdr> 10087 10088int 10089main () 10090{ 10091if ((DIR *) 0) 10092return 0; 10093 ; 10094 return 0; 10095} 10096_ACEOF 10097rm -f conftest.$ac_objext 10098if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10099 (eval $ac_compile) 2>conftest.er1 10100 ac_status=$? 10101 grep -v '^ *+' conftest.er1 >conftest.err 10102 rm -f conftest.er1 10103 cat conftest.err >&5 10104 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10105 (exit $ac_status); } && 10106 { ac_try='test -z "$ac_c_werror_flag" 10107 || test ! -s conftest.err' 10108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10109 (eval $ac_try) 2>&5 10110 ac_status=$? 10111 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10112 (exit $ac_status); }; } && 10113 { ac_try='test -s conftest.$ac_objext' 10114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10115 (eval $ac_try) 2>&5 10116 ac_status=$? 10117 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10118 (exit $ac_status); }; }; then 10119 eval "$as_ac_Header=yes" 10120else 10121 echo "$as_me: failed program was:" >&5 10122sed 's/^/| /' conftest.$ac_ext >&5 10123 10124eval "$as_ac_Header=no" 10125fi 10126rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10127fi 10128echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 10129echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 10130if test `eval echo '${'$as_ac_Header'}'` = yes; then 10131 cat >>confdefs.h <<_ACEOF 10132#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 10133_ACEOF 10134 10135ac_header_dirent=$ac_hdr; break 10136fi 10137 10138done 10139# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 10140if test $ac_header_dirent = dirent.h; then 10141 echo "$as_me:$LINENO: checking for library containing opendir" >&5 10142echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 10143if test "${ac_cv_search_opendir+set}" = set; then 10144 echo $ECHO_N "(cached) $ECHO_C" >&6 10145else 10146 ac_func_search_save_LIBS=$LIBS 10147ac_cv_search_opendir=no 10148cat >conftest.$ac_ext <<_ACEOF 10149/* confdefs.h. */ 10150_ACEOF 10151cat confdefs.h >>conftest.$ac_ext 10152cat >>conftest.$ac_ext <<_ACEOF 10153/* end confdefs.h. */ 10154 10155/* Override any gcc2 internal prototype to avoid an error. */ 10156#ifdef __cplusplus 10157extern "C" 10158#endif 10159/* We use char because int might match the return type of a gcc2 10160 builtin and then its argument prototype would still apply. */ 10161char opendir (); 10162int 10163main () 10164{ 10165opendir (); 10166 ; 10167 return 0; 10168} 10169_ACEOF 10170rm -f conftest.$ac_objext conftest$ac_exeext 10171if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10172 (eval $ac_link) 2>conftest.er1 10173 ac_status=$? 10174 grep -v '^ *+' conftest.er1 >conftest.err 10175 rm -f conftest.er1 10176 cat conftest.err >&5 10177 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10178 (exit $ac_status); } && 10179 { ac_try='test -z "$ac_c_werror_flag" 10180 || test ! -s conftest.err' 10181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10182 (eval $ac_try) 2>&5 10183 ac_status=$? 10184 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10185 (exit $ac_status); }; } && 10186 { ac_try='test -s conftest$ac_exeext' 10187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10188 (eval $ac_try) 2>&5 10189 ac_status=$? 10190 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10191 (exit $ac_status); }; }; then 10192 ac_cv_search_opendir="none required" 10193else 10194 echo "$as_me: failed program was:" >&5 10195sed 's/^/| /' conftest.$ac_ext >&5 10196 10197fi 10198rm -f conftest.err conftest.$ac_objext \ 10199 conftest$ac_exeext conftest.$ac_ext 10200if test "$ac_cv_search_opendir" = no; then 10201 for ac_lib in dir; do 10202 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 10203 cat >conftest.$ac_ext <<_ACEOF 10204/* confdefs.h. */ 10205_ACEOF 10206cat confdefs.h >>conftest.$ac_ext 10207cat >>conftest.$ac_ext <<_ACEOF 10208/* end confdefs.h. */ 10209 10210/* Override any gcc2 internal prototype to avoid an error. */ 10211#ifdef __cplusplus 10212extern "C" 10213#endif 10214/* We use char because int might match the return type of a gcc2 10215 builtin and then its argument prototype would still apply. */ 10216char opendir (); 10217int 10218main () 10219{ 10220opendir (); 10221 ; 10222 return 0; 10223} 10224_ACEOF 10225rm -f conftest.$ac_objext conftest$ac_exeext 10226if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10227 (eval $ac_link) 2>conftest.er1 10228 ac_status=$? 10229 grep -v '^ *+' conftest.er1 >conftest.err 10230 rm -f conftest.er1 10231 cat conftest.err >&5 10232 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10233 (exit $ac_status); } && 10234 { ac_try='test -z "$ac_c_werror_flag" 10235 || test ! -s conftest.err' 10236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10237 (eval $ac_try) 2>&5 10238 ac_status=$? 10239 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10240 (exit $ac_status); }; } && 10241 { ac_try='test -s conftest$ac_exeext' 10242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10243 (eval $ac_try) 2>&5 10244 ac_status=$? 10245 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10246 (exit $ac_status); }; }; then 10247 ac_cv_search_opendir="-l$ac_lib" 10248break 10249else 10250 echo "$as_me: failed program was:" >&5 10251sed 's/^/| /' conftest.$ac_ext >&5 10252 10253fi 10254rm -f conftest.err conftest.$ac_objext \ 10255 conftest$ac_exeext conftest.$ac_ext 10256 done 10257fi 10258LIBS=$ac_func_search_save_LIBS 10259fi 10260echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 10261echo "${ECHO_T}$ac_cv_search_opendir" >&6 10262if test "$ac_cv_search_opendir" != no; then 10263 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" 10264 10265fi 10266 10267else 10268 echo "$as_me:$LINENO: checking for library containing opendir" >&5 10269echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 10270if test "${ac_cv_search_opendir+set}" = set; then 10271 echo $ECHO_N "(cached) $ECHO_C" >&6 10272else 10273 ac_func_search_save_LIBS=$LIBS 10274ac_cv_search_opendir=no 10275cat >conftest.$ac_ext <<_ACEOF 10276/* confdefs.h. */ 10277_ACEOF 10278cat confdefs.h >>conftest.$ac_ext 10279cat >>conftest.$ac_ext <<_ACEOF 10280/* end confdefs.h. */ 10281 10282/* Override any gcc2 internal prototype to avoid an error. */ 10283#ifdef __cplusplus 10284extern "C" 10285#endif 10286/* We use char because int might match the return type of a gcc2 10287 builtin and then its argument prototype would still apply. */ 10288char opendir (); 10289int 10290main () 10291{ 10292opendir (); 10293 ; 10294 return 0; 10295} 10296_ACEOF 10297rm -f conftest.$ac_objext conftest$ac_exeext 10298if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10299 (eval $ac_link) 2>conftest.er1 10300 ac_status=$? 10301 grep -v '^ *+' conftest.er1 >conftest.err 10302 rm -f conftest.er1 10303 cat conftest.err >&5 10304 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10305 (exit $ac_status); } && 10306 { ac_try='test -z "$ac_c_werror_flag" 10307 || test ! -s conftest.err' 10308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10309 (eval $ac_try) 2>&5 10310 ac_status=$? 10311 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10312 (exit $ac_status); }; } && 10313 { ac_try='test -s conftest$ac_exeext' 10314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10315 (eval $ac_try) 2>&5 10316 ac_status=$? 10317 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10318 (exit $ac_status); }; }; then 10319 ac_cv_search_opendir="none required" 10320else 10321 echo "$as_me: failed program was:" >&5 10322sed 's/^/| /' conftest.$ac_ext >&5 10323 10324fi 10325rm -f conftest.err conftest.$ac_objext \ 10326 conftest$ac_exeext conftest.$ac_ext 10327if test "$ac_cv_search_opendir" = no; then 10328 for ac_lib in x; do 10329 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 10330 cat >conftest.$ac_ext <<_ACEOF 10331/* confdefs.h. */ 10332_ACEOF 10333cat confdefs.h >>conftest.$ac_ext 10334cat >>conftest.$ac_ext <<_ACEOF 10335/* end confdefs.h. */ 10336 10337/* Override any gcc2 internal prototype to avoid an error. */ 10338#ifdef __cplusplus 10339extern "C" 10340#endif 10341/* We use char because int might match the return type of a gcc2 10342 builtin and then its argument prototype would still apply. */ 10343char opendir (); 10344int 10345main () 10346{ 10347opendir (); 10348 ; 10349 return 0; 10350} 10351_ACEOF 10352rm -f conftest.$ac_objext conftest$ac_exeext 10353if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10354 (eval $ac_link) 2>conftest.er1 10355 ac_status=$? 10356 grep -v '^ *+' conftest.er1 >conftest.err 10357 rm -f conftest.er1 10358 cat conftest.err >&5 10359 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10360 (exit $ac_status); } && 10361 { ac_try='test -z "$ac_c_werror_flag" 10362 || test ! -s conftest.err' 10363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10364 (eval $ac_try) 2>&5 10365 ac_status=$? 10366 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10367 (exit $ac_status); }; } && 10368 { ac_try='test -s conftest$ac_exeext' 10369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10370 (eval $ac_try) 2>&5 10371 ac_status=$? 10372 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10373 (exit $ac_status); }; }; then 10374 ac_cv_search_opendir="-l$ac_lib" 10375break 10376else 10377 echo "$as_me: failed program was:" >&5 10378sed 's/^/| /' conftest.$ac_ext >&5 10379 10380fi 10381rm -f conftest.err conftest.$ac_objext \ 10382 conftest$ac_exeext conftest.$ac_ext 10383 done 10384fi 10385LIBS=$ac_func_search_save_LIBS 10386fi 10387echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 10388echo "${ECHO_T}$ac_cv_search_opendir" >&6 10389if test "$ac_cv_search_opendir" != no; then 10390 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" 10391 10392fi 10393 10394fi 10395 10396 10397 # ================= 10398 # AC_CHECK_HEADERS 10399 # ================= 10400 10401 10402 10403 10404 10405 10406 10407 10408 10409 10410 10411 10412 10413 10414 10415 10416 10417 10418 10419 10420for ac_header in dlfcn.h errno.h fcntl.h libgen.h memory.h netinet/in.h \ 10421 setjmp.h sys/mman.h sys/param.h sys/poll.h sys/procset.h sys/select.h \ 10422 sys/socket.h sys/stropts.h sys/time.h sys/un.h sys/wait.h unistd.h \ 10423 utime.h sysexits.h 10424do 10425as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 10426if eval "test \"\${$as_ac_Header+set}\" = set"; then 10427 echo "$as_me:$LINENO: checking for $ac_header" >&5 10428echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 10429if eval "test \"\${$as_ac_Header+set}\" = set"; then 10430 echo $ECHO_N "(cached) $ECHO_C" >&6 10431fi 10432echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 10433echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 10434else 10435 # Is the header compilable? 10436echo "$as_me:$LINENO: checking $ac_header usability" >&5 10437echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 10438cat >conftest.$ac_ext <<_ACEOF 10439/* confdefs.h. */ 10440_ACEOF 10441cat confdefs.h >>conftest.$ac_ext 10442cat >>conftest.$ac_ext <<_ACEOF 10443/* end confdefs.h. */ 10444$ac_includes_default 10445#include <$ac_header> 10446_ACEOF 10447rm -f conftest.$ac_objext 10448if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10449 (eval $ac_compile) 2>conftest.er1 10450 ac_status=$? 10451 grep -v '^ *+' conftest.er1 >conftest.err 10452 rm -f conftest.er1 10453 cat conftest.err >&5 10454 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10455 (exit $ac_status); } && 10456 { ac_try='test -z "$ac_c_werror_flag" 10457 || test ! -s conftest.err' 10458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10459 (eval $ac_try) 2>&5 10460 ac_status=$? 10461 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10462 (exit $ac_status); }; } && 10463 { ac_try='test -s conftest.$ac_objext' 10464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10465 (eval $ac_try) 2>&5 10466 ac_status=$? 10467 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10468 (exit $ac_status); }; }; then 10469 ac_header_compiler=yes 10470else 10471 echo "$as_me: failed program was:" >&5 10472sed 's/^/| /' conftest.$ac_ext >&5 10473 10474ac_header_compiler=no 10475fi 10476rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10477echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 10478echo "${ECHO_T}$ac_header_compiler" >&6 10479 10480# Is the header present? 10481echo "$as_me:$LINENO: checking $ac_header presence" >&5 10482echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 10483cat >conftest.$ac_ext <<_ACEOF 10484/* confdefs.h. */ 10485_ACEOF 10486cat confdefs.h >>conftest.$ac_ext 10487cat >>conftest.$ac_ext <<_ACEOF 10488/* end confdefs.h. */ 10489#include <$ac_header> 10490_ACEOF 10491if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 10492 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 10493 ac_status=$? 10494 grep -v '^ *+' conftest.er1 >conftest.err 10495 rm -f conftest.er1 10496 cat conftest.err >&5 10497 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10498 (exit $ac_status); } >/dev/null; then 10499 if test -s conftest.err; then 10500 ac_cpp_err=$ac_c_preproc_warn_flag 10501 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 10502 else 10503 ac_cpp_err= 10504 fi 10505else 10506 ac_cpp_err=yes 10507fi 10508if test -z "$ac_cpp_err"; then 10509 ac_header_preproc=yes 10510else 10511 echo "$as_me: failed program was:" >&5 10512sed 's/^/| /' conftest.$ac_ext >&5 10513 10514 ac_header_preproc=no 10515fi 10516rm -f conftest.err conftest.$ac_ext 10517echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 10518echo "${ECHO_T}$ac_header_preproc" >&6 10519 10520# So? What about this header? 10521case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 10522 yes:no: ) 10523 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 10524echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 10525 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 10526echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 10527 ac_header_preproc=yes 10528 ;; 10529 no:yes:* ) 10530 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 10531echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 10532 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 10533echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 10534 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 10535echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 10536 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 10537echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 10538 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 10539echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 10540 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 10541echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 10542 ( 10543 cat <<\_ASBOX 10544## ------------------------------ ## 10545## Report this to the ntp lists. ## 10546## ------------------------------ ## 10547_ASBOX 10548 ) | 10549 sed "s/^/$as_me: WARNING: /" >&2 10550 ;; 10551esac 10552echo "$as_me:$LINENO: checking for $ac_header" >&5 10553echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 10554if eval "test \"\${$as_ac_Header+set}\" = set"; then 10555 echo $ECHO_N "(cached) $ECHO_C" >&6 10556else 10557 eval "$as_ac_Header=\$ac_header_preproc" 10558fi 10559echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 10560echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 10561 10562fi 10563if test `eval echo '${'$as_ac_Header'}'` = yes; then 10564 cat >>confdefs.h <<_ACEOF 10565#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 10566_ACEOF 10567 10568fi 10569 10570done 10571 10572 10573 # -------------------------------------------- 10574 # Verify certain entries from AC_CHECK_HEADERS 10575 # -------------------------------------------- 10576 for f in sys_types sys_mman sys_param sys_stat sys_wait \ 10577 string errno stdlib memory setjmp 10578 do eval as_ac_var=\${ac_cv_header_${f}_h+set} 10579 test "${as_ac_var}" = set || \ 10580 { { echo "$as_me:$LINENO: error: You must have ${f}.h on your system" >&5 10581echo "$as_me: error: You must have ${f}.h on your system" >&2;} 10582 { (exit 1); exit 1; }; } 10583 done 10584 10585 # ================================================ 10586 # AC_CHECK_HEADERS: stdarg.h is present define HAVE_STDARG_H, otherwise 10587 # if varargs.h is present define HAVE_VARARGS_H. 10588 # ================================================ 10589 10590 10591for ac_header in stdarg.h varargs.h 10592do 10593as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 10594if eval "test \"\${$as_ac_Header+set}\" = set"; then 10595 echo "$as_me:$LINENO: checking for $ac_header" >&5 10596echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 10597if eval "test \"\${$as_ac_Header+set}\" = set"; then 10598 echo $ECHO_N "(cached) $ECHO_C" >&6 10599fi 10600echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 10601echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 10602else 10603 # Is the header compilable? 10604echo "$as_me:$LINENO: checking $ac_header usability" >&5 10605echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 10606cat >conftest.$ac_ext <<_ACEOF 10607/* confdefs.h. */ 10608_ACEOF 10609cat confdefs.h >>conftest.$ac_ext 10610cat >>conftest.$ac_ext <<_ACEOF 10611/* end confdefs.h. */ 10612$ac_includes_default 10613#include <$ac_header> 10614_ACEOF 10615rm -f conftest.$ac_objext 10616if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10617 (eval $ac_compile) 2>conftest.er1 10618 ac_status=$? 10619 grep -v '^ *+' conftest.er1 >conftest.err 10620 rm -f conftest.er1 10621 cat conftest.err >&5 10622 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10623 (exit $ac_status); } && 10624 { ac_try='test -z "$ac_c_werror_flag" 10625 || test ! -s conftest.err' 10626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10627 (eval $ac_try) 2>&5 10628 ac_status=$? 10629 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10630 (exit $ac_status); }; } && 10631 { ac_try='test -s conftest.$ac_objext' 10632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10633 (eval $ac_try) 2>&5 10634 ac_status=$? 10635 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10636 (exit $ac_status); }; }; then 10637 ac_header_compiler=yes 10638else 10639 echo "$as_me: failed program was:" >&5 10640sed 's/^/| /' conftest.$ac_ext >&5 10641 10642ac_header_compiler=no 10643fi 10644rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10645echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 10646echo "${ECHO_T}$ac_header_compiler" >&6 10647 10648# Is the header present? 10649echo "$as_me:$LINENO: checking $ac_header presence" >&5 10650echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 10651cat >conftest.$ac_ext <<_ACEOF 10652/* confdefs.h. */ 10653_ACEOF 10654cat confdefs.h >>conftest.$ac_ext 10655cat >>conftest.$ac_ext <<_ACEOF 10656/* end confdefs.h. */ 10657#include <$ac_header> 10658_ACEOF 10659if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 10660 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 10661 ac_status=$? 10662 grep -v '^ *+' conftest.er1 >conftest.err 10663 rm -f conftest.er1 10664 cat conftest.err >&5 10665 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10666 (exit $ac_status); } >/dev/null; then 10667 if test -s conftest.err; then 10668 ac_cpp_err=$ac_c_preproc_warn_flag 10669 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 10670 else 10671 ac_cpp_err= 10672 fi 10673else 10674 ac_cpp_err=yes 10675fi 10676if test -z "$ac_cpp_err"; then 10677 ac_header_preproc=yes 10678else 10679 echo "$as_me: failed program was:" >&5 10680sed 's/^/| /' conftest.$ac_ext >&5 10681 10682 ac_header_preproc=no 10683fi 10684rm -f conftest.err conftest.$ac_ext 10685echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 10686echo "${ECHO_T}$ac_header_preproc" >&6 10687 10688# So? What about this header? 10689case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 10690 yes:no: ) 10691 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 10692echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 10693 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 10694echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 10695 ac_header_preproc=yes 10696 ;; 10697 no:yes:* ) 10698 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 10699echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 10700 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 10701echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 10702 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 10703echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 10704 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 10705echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 10706 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 10707echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 10708 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 10709echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 10710 ( 10711 cat <<\_ASBOX 10712## ------------------------------ ## 10713## Report this to the ntp lists. ## 10714## ------------------------------ ## 10715_ASBOX 10716 ) | 10717 sed "s/^/$as_me: WARNING: /" >&2 10718 ;; 10719esac 10720echo "$as_me:$LINENO: checking for $ac_header" >&5 10721echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 10722if eval "test \"\${$as_ac_Header+set}\" = set"; then 10723 echo $ECHO_N "(cached) $ECHO_C" >&6 10724else 10725 eval "$as_ac_Header=\$ac_header_preproc" 10726fi 10727echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 10728echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 10729 10730fi 10731if test `eval echo '${'$as_ac_Header'}'` = yes; then 10732 cat >>confdefs.h <<_ACEOF 10733#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 10734_ACEOF 10735 break 10736fi 10737 10738done 10739 10740 if test `eval echo '${'$as_ac_Header'}'` != yes; then 10741 { { echo "$as_me:$LINENO: error: You must have stdarg.h or varargs.h on your system" >&5 10742echo "$as_me: error: You must have stdarg.h or varargs.h on your system" >&2;} 10743 { (exit 1); exit 1; }; } 10744 fi 10745 10746 # ================================================ 10747 # Similarly for the string.h and strings.h headers 10748 # ================================================ 10749 10750 10751for ac_header in string.h strings.h 10752do 10753as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 10754if eval "test \"\${$as_ac_Header+set}\" = set"; then 10755 echo "$as_me:$LINENO: checking for $ac_header" >&5 10756echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 10757if eval "test \"\${$as_ac_Header+set}\" = set"; then 10758 echo $ECHO_N "(cached) $ECHO_C" >&6 10759fi 10760echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 10761echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 10762else 10763 # Is the header compilable? 10764echo "$as_me:$LINENO: checking $ac_header usability" >&5 10765echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 10766cat >conftest.$ac_ext <<_ACEOF 10767/* confdefs.h. */ 10768_ACEOF 10769cat confdefs.h >>conftest.$ac_ext 10770cat >>conftest.$ac_ext <<_ACEOF 10771/* end confdefs.h. */ 10772$ac_includes_default 10773#include <$ac_header> 10774_ACEOF 10775rm -f conftest.$ac_objext 10776if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10777 (eval $ac_compile) 2>conftest.er1 10778 ac_status=$? 10779 grep -v '^ *+' conftest.er1 >conftest.err 10780 rm -f conftest.er1 10781 cat conftest.err >&5 10782 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10783 (exit $ac_status); } && 10784 { ac_try='test -z "$ac_c_werror_flag" 10785 || test ! -s conftest.err' 10786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10787 (eval $ac_try) 2>&5 10788 ac_status=$? 10789 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10790 (exit $ac_status); }; } && 10791 { ac_try='test -s conftest.$ac_objext' 10792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10793 (eval $ac_try) 2>&5 10794 ac_status=$? 10795 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10796 (exit $ac_status); }; }; then 10797 ac_header_compiler=yes 10798else 10799 echo "$as_me: failed program was:" >&5 10800sed 's/^/| /' conftest.$ac_ext >&5 10801 10802ac_header_compiler=no 10803fi 10804rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10805echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 10806echo "${ECHO_T}$ac_header_compiler" >&6 10807 10808# Is the header present? 10809echo "$as_me:$LINENO: checking $ac_header presence" >&5 10810echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 10811cat >conftest.$ac_ext <<_ACEOF 10812/* confdefs.h. */ 10813_ACEOF 10814cat confdefs.h >>conftest.$ac_ext 10815cat >>conftest.$ac_ext <<_ACEOF 10816/* end confdefs.h. */ 10817#include <$ac_header> 10818_ACEOF 10819if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 10820 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 10821 ac_status=$? 10822 grep -v '^ *+' conftest.er1 >conftest.err 10823 rm -f conftest.er1 10824 cat conftest.err >&5 10825 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10826 (exit $ac_status); } >/dev/null; then 10827 if test -s conftest.err; then 10828 ac_cpp_err=$ac_c_preproc_warn_flag 10829 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 10830 else 10831 ac_cpp_err= 10832 fi 10833else 10834 ac_cpp_err=yes 10835fi 10836if test -z "$ac_cpp_err"; then 10837 ac_header_preproc=yes 10838else 10839 echo "$as_me: failed program was:" >&5 10840sed 's/^/| /' conftest.$ac_ext >&5 10841 10842 ac_header_preproc=no 10843fi 10844rm -f conftest.err conftest.$ac_ext 10845echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 10846echo "${ECHO_T}$ac_header_preproc" >&6 10847 10848# So? What about this header? 10849case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 10850 yes:no: ) 10851 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 10852echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 10853 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 10854echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 10855 ac_header_preproc=yes 10856 ;; 10857 no:yes:* ) 10858 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 10859echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 10860 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 10861echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 10862 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 10863echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 10864 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 10865echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 10866 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 10867echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 10868 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 10869echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 10870 ( 10871 cat <<\_ASBOX 10872## ------------------------------ ## 10873## Report this to the ntp lists. ## 10874## ------------------------------ ## 10875_ASBOX 10876 ) | 10877 sed "s/^/$as_me: WARNING: /" >&2 10878 ;; 10879esac 10880echo "$as_me:$LINENO: checking for $ac_header" >&5 10881echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 10882if eval "test \"\${$as_ac_Header+set}\" = set"; then 10883 echo $ECHO_N "(cached) $ECHO_C" >&6 10884else 10885 eval "$as_ac_Header=\$ac_header_preproc" 10886fi 10887echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 10888echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 10889 10890fi 10891if test `eval echo '${'$as_ac_Header'}'` = yes; then 10892 cat >>confdefs.h <<_ACEOF 10893#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 10894_ACEOF 10895 break 10896fi 10897 10898done 10899 10900 if test `eval echo '${'$as_ac_Header'}'` != yes; then 10901 { { echo "$as_me:$LINENO: error: You must have string.h or strings.h on your system" >&5 10902echo "$as_me: error: You must have string.h or strings.h on your system" >&2;} 10903 { (exit 1); exit 1; }; } 10904 fi 10905 10906 # ===================== 10907 # ...and limits headers 10908 # ===================== 10909 10910 10911 10912for ac_header in limits.h sys/limits.h values.h 10913do 10914as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 10915if eval "test \"\${$as_ac_Header+set}\" = set"; then 10916 echo "$as_me:$LINENO: checking for $ac_header" >&5 10917echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 10918if eval "test \"\${$as_ac_Header+set}\" = set"; then 10919 echo $ECHO_N "(cached) $ECHO_C" >&6 10920fi 10921echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 10922echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 10923else 10924 # Is the header compilable? 10925echo "$as_me:$LINENO: checking $ac_header usability" >&5 10926echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 10927cat >conftest.$ac_ext <<_ACEOF 10928/* confdefs.h. */ 10929_ACEOF 10930cat confdefs.h >>conftest.$ac_ext 10931cat >>conftest.$ac_ext <<_ACEOF 10932/* end confdefs.h. */ 10933$ac_includes_default 10934#include <$ac_header> 10935_ACEOF 10936rm -f conftest.$ac_objext 10937if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10938 (eval $ac_compile) 2>conftest.er1 10939 ac_status=$? 10940 grep -v '^ *+' conftest.er1 >conftest.err 10941 rm -f conftest.er1 10942 cat conftest.err >&5 10943 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10944 (exit $ac_status); } && 10945 { ac_try='test -z "$ac_c_werror_flag" 10946 || test ! -s conftest.err' 10947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10948 (eval $ac_try) 2>&5 10949 ac_status=$? 10950 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10951 (exit $ac_status); }; } && 10952 { ac_try='test -s conftest.$ac_objext' 10953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10954 (eval $ac_try) 2>&5 10955 ac_status=$? 10956 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10957 (exit $ac_status); }; }; then 10958 ac_header_compiler=yes 10959else 10960 echo "$as_me: failed program was:" >&5 10961sed 's/^/| /' conftest.$ac_ext >&5 10962 10963ac_header_compiler=no 10964fi 10965rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10966echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 10967echo "${ECHO_T}$ac_header_compiler" >&6 10968 10969# Is the header present? 10970echo "$as_me:$LINENO: checking $ac_header presence" >&5 10971echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 10972cat >conftest.$ac_ext <<_ACEOF 10973/* confdefs.h. */ 10974_ACEOF 10975cat confdefs.h >>conftest.$ac_ext 10976cat >>conftest.$ac_ext <<_ACEOF 10977/* end confdefs.h. */ 10978#include <$ac_header> 10979_ACEOF 10980if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 10981 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 10982 ac_status=$? 10983 grep -v '^ *+' conftest.er1 >conftest.err 10984 rm -f conftest.er1 10985 cat conftest.err >&5 10986 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10987 (exit $ac_status); } >/dev/null; then 10988 if test -s conftest.err; then 10989 ac_cpp_err=$ac_c_preproc_warn_flag 10990 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 10991 else 10992 ac_cpp_err= 10993 fi 10994else 10995 ac_cpp_err=yes 10996fi 10997if test -z "$ac_cpp_err"; then 10998 ac_header_preproc=yes 10999else 11000 echo "$as_me: failed program was:" >&5 11001sed 's/^/| /' conftest.$ac_ext >&5 11002 11003 ac_header_preproc=no 11004fi 11005rm -f conftest.err conftest.$ac_ext 11006echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 11007echo "${ECHO_T}$ac_header_preproc" >&6 11008 11009# So? What about this header? 11010case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 11011 yes:no: ) 11012 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 11013echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 11014 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 11015echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 11016 ac_header_preproc=yes 11017 ;; 11018 no:yes:* ) 11019 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 11020echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 11021 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 11022echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 11023 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 11024echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 11025 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 11026echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 11027 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 11028echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 11029 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 11030echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 11031 ( 11032 cat <<\_ASBOX 11033## ------------------------------ ## 11034## Report this to the ntp lists. ## 11035## ------------------------------ ## 11036_ASBOX 11037 ) | 11038 sed "s/^/$as_me: WARNING: /" >&2 11039 ;; 11040esac 11041echo "$as_me:$LINENO: checking for $ac_header" >&5 11042echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 11043if eval "test \"\${$as_ac_Header+set}\" = set"; then 11044 echo $ECHO_N "(cached) $ECHO_C" >&6 11045else 11046 eval "$as_ac_Header=\$ac_header_preproc" 11047fi 11048echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 11049echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 11050 11051fi 11052if test `eval echo '${'$as_ac_Header'}'` = yes; then 11053 cat >>confdefs.h <<_ACEOF 11054#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 11055_ACEOF 11056 break 11057fi 11058 11059done 11060 11061 if test `eval echo '${'$as_ac_Header'}'` != yes; then 11062 { { echo "$as_me:$LINENO: error: You must have one of limits.h, sys/limits.h or values.h" >&5 11063echo "$as_me: error: You must have one of limits.h, sys/limits.h or values.h" >&2;} 11064 { (exit 1); exit 1; }; } 11065 fi 11066 11067 # ======================== 11068 # ...and int types headers 11069 # ======================== 11070 11071 11072for ac_header in stdint.h inttypes.h 11073do 11074as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 11075if eval "test \"\${$as_ac_Header+set}\" = set"; then 11076 echo "$as_me:$LINENO: checking for $ac_header" >&5 11077echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 11078if eval "test \"\${$as_ac_Header+set}\" = set"; then 11079 echo $ECHO_N "(cached) $ECHO_C" >&6 11080fi 11081echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 11082echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 11083else 11084 # Is the header compilable? 11085echo "$as_me:$LINENO: checking $ac_header usability" >&5 11086echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 11087cat >conftest.$ac_ext <<_ACEOF 11088/* confdefs.h. */ 11089_ACEOF 11090cat confdefs.h >>conftest.$ac_ext 11091cat >>conftest.$ac_ext <<_ACEOF 11092/* end confdefs.h. */ 11093$ac_includes_default 11094#include <$ac_header> 11095_ACEOF 11096rm -f conftest.$ac_objext 11097if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11098 (eval $ac_compile) 2>conftest.er1 11099 ac_status=$? 11100 grep -v '^ *+' conftest.er1 >conftest.err 11101 rm -f conftest.er1 11102 cat conftest.err >&5 11103 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11104 (exit $ac_status); } && 11105 { ac_try='test -z "$ac_c_werror_flag" 11106 || test ! -s conftest.err' 11107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11108 (eval $ac_try) 2>&5 11109 ac_status=$? 11110 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11111 (exit $ac_status); }; } && 11112 { ac_try='test -s conftest.$ac_objext' 11113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11114 (eval $ac_try) 2>&5 11115 ac_status=$? 11116 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11117 (exit $ac_status); }; }; then 11118 ac_header_compiler=yes 11119else 11120 echo "$as_me: failed program was:" >&5 11121sed 's/^/| /' conftest.$ac_ext >&5 11122 11123ac_header_compiler=no 11124fi 11125rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11126echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 11127echo "${ECHO_T}$ac_header_compiler" >&6 11128 11129# Is the header present? 11130echo "$as_me:$LINENO: checking $ac_header presence" >&5 11131echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 11132cat >conftest.$ac_ext <<_ACEOF 11133/* confdefs.h. */ 11134_ACEOF 11135cat confdefs.h >>conftest.$ac_ext 11136cat >>conftest.$ac_ext <<_ACEOF 11137/* end confdefs.h. */ 11138#include <$ac_header> 11139_ACEOF 11140if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 11141 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 11142 ac_status=$? 11143 grep -v '^ *+' conftest.er1 >conftest.err 11144 rm -f conftest.er1 11145 cat conftest.err >&5 11146 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11147 (exit $ac_status); } >/dev/null; then 11148 if test -s conftest.err; then 11149 ac_cpp_err=$ac_c_preproc_warn_flag 11150 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 11151 else 11152 ac_cpp_err= 11153 fi 11154else 11155 ac_cpp_err=yes 11156fi 11157if test -z "$ac_cpp_err"; then 11158 ac_header_preproc=yes 11159else 11160 echo "$as_me: failed program was:" >&5 11161sed 's/^/| /' conftest.$ac_ext >&5 11162 11163 ac_header_preproc=no 11164fi 11165rm -f conftest.err conftest.$ac_ext 11166echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 11167echo "${ECHO_T}$ac_header_preproc" >&6 11168 11169# So? What about this header? 11170case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 11171 yes:no: ) 11172 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 11173echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 11174 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 11175echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 11176 ac_header_preproc=yes 11177 ;; 11178 no:yes:* ) 11179 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 11180echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 11181 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 11182echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 11183 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 11184echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 11185 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 11186echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 11187 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 11188echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 11189 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 11190echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 11191 ( 11192 cat <<\_ASBOX 11193## ------------------------------ ## 11194## Report this to the ntp lists. ## 11195## ------------------------------ ## 11196_ASBOX 11197 ) | 11198 sed "s/^/$as_me: WARNING: /" >&2 11199 ;; 11200esac 11201echo "$as_me:$LINENO: checking for $ac_header" >&5 11202echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 11203if eval "test \"\${$as_ac_Header+set}\" = set"; then 11204 echo $ECHO_N "(cached) $ECHO_C" >&6 11205else 11206 eval "$as_ac_Header=\$ac_header_preproc" 11207fi 11208echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 11209echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 11210 11211fi 11212if test `eval echo '${'$as_ac_Header'}'` = yes; then 11213 cat >>confdefs.h <<_ACEOF 11214#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 11215_ACEOF 11216 break 11217fi 11218 11219done 11220 11221 echo "$as_me:$LINENO: checking for int8_t" >&5 11222echo $ECHO_N "checking for int8_t... $ECHO_C" >&6 11223if test "${ac_cv_type_int8_t+set}" = set; then 11224 echo $ECHO_N "(cached) $ECHO_C" >&6 11225else 11226 cat >conftest.$ac_ext <<_ACEOF 11227/* confdefs.h. */ 11228_ACEOF 11229cat confdefs.h >>conftest.$ac_ext 11230cat >>conftest.$ac_ext <<_ACEOF 11231/* end confdefs.h. */ 11232$ac_includes_default 11233int 11234main () 11235{ 11236if ((int8_t *) 0) 11237 return 0; 11238if (sizeof (int8_t)) 11239 return 0; 11240 ; 11241 return 0; 11242} 11243_ACEOF 11244rm -f conftest.$ac_objext 11245if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11246 (eval $ac_compile) 2>conftest.er1 11247 ac_status=$? 11248 grep -v '^ *+' conftest.er1 >conftest.err 11249 rm -f conftest.er1 11250 cat conftest.err >&5 11251 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11252 (exit $ac_status); } && 11253 { ac_try='test -z "$ac_c_werror_flag" 11254 || test ! -s conftest.err' 11255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11256 (eval $ac_try) 2>&5 11257 ac_status=$? 11258 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11259 (exit $ac_status); }; } && 11260 { ac_try='test -s conftest.$ac_objext' 11261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11262 (eval $ac_try) 2>&5 11263 ac_status=$? 11264 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11265 (exit $ac_status); }; }; then 11266 ac_cv_type_int8_t=yes 11267else 11268 echo "$as_me: failed program was:" >&5 11269sed 's/^/| /' conftest.$ac_ext >&5 11270 11271ac_cv_type_int8_t=no 11272fi 11273rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11274fi 11275echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5 11276echo "${ECHO_T}$ac_cv_type_int8_t" >&6 11277if test $ac_cv_type_int8_t = yes; then 11278 11279cat >>confdefs.h <<_ACEOF 11280#define HAVE_INT8_T 1 11281_ACEOF 11282 11283 11284fi 11285echo "$as_me:$LINENO: checking for uint8_t" >&5 11286echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6 11287if test "${ac_cv_type_uint8_t+set}" = set; then 11288 echo $ECHO_N "(cached) $ECHO_C" >&6 11289else 11290 cat >conftest.$ac_ext <<_ACEOF 11291/* confdefs.h. */ 11292_ACEOF 11293cat confdefs.h >>conftest.$ac_ext 11294cat >>conftest.$ac_ext <<_ACEOF 11295/* end confdefs.h. */ 11296$ac_includes_default 11297int 11298main () 11299{ 11300if ((uint8_t *) 0) 11301 return 0; 11302if (sizeof (uint8_t)) 11303 return 0; 11304 ; 11305 return 0; 11306} 11307_ACEOF 11308rm -f conftest.$ac_objext 11309if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11310 (eval $ac_compile) 2>conftest.er1 11311 ac_status=$? 11312 grep -v '^ *+' conftest.er1 >conftest.err 11313 rm -f conftest.er1 11314 cat conftest.err >&5 11315 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11316 (exit $ac_status); } && 11317 { ac_try='test -z "$ac_c_werror_flag" 11318 || test ! -s conftest.err' 11319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11320 (eval $ac_try) 2>&5 11321 ac_status=$? 11322 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11323 (exit $ac_status); }; } && 11324 { ac_try='test -s conftest.$ac_objext' 11325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11326 (eval $ac_try) 2>&5 11327 ac_status=$? 11328 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11329 (exit $ac_status); }; }; then 11330 ac_cv_type_uint8_t=yes 11331else 11332 echo "$as_me: failed program was:" >&5 11333sed 's/^/| /' conftest.$ac_ext >&5 11334 11335ac_cv_type_uint8_t=no 11336fi 11337rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11338fi 11339echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5 11340echo "${ECHO_T}$ac_cv_type_uint8_t" >&6 11341if test $ac_cv_type_uint8_t = yes; then 11342 11343cat >>confdefs.h <<_ACEOF 11344#define HAVE_UINT8_T 1 11345_ACEOF 11346 11347 11348fi 11349echo "$as_me:$LINENO: checking for int16_t" >&5 11350echo $ECHO_N "checking for int16_t... $ECHO_C" >&6 11351if test "${ac_cv_type_int16_t+set}" = set; then 11352 echo $ECHO_N "(cached) $ECHO_C" >&6 11353else 11354 cat >conftest.$ac_ext <<_ACEOF 11355/* confdefs.h. */ 11356_ACEOF 11357cat confdefs.h >>conftest.$ac_ext 11358cat >>conftest.$ac_ext <<_ACEOF 11359/* end confdefs.h. */ 11360$ac_includes_default 11361int 11362main () 11363{ 11364if ((int16_t *) 0) 11365 return 0; 11366if (sizeof (int16_t)) 11367 return 0; 11368 ; 11369 return 0; 11370} 11371_ACEOF 11372rm -f conftest.$ac_objext 11373if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11374 (eval $ac_compile) 2>conftest.er1 11375 ac_status=$? 11376 grep -v '^ *+' conftest.er1 >conftest.err 11377 rm -f conftest.er1 11378 cat conftest.err >&5 11379 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11380 (exit $ac_status); } && 11381 { ac_try='test -z "$ac_c_werror_flag" 11382 || test ! -s conftest.err' 11383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11384 (eval $ac_try) 2>&5 11385 ac_status=$? 11386 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11387 (exit $ac_status); }; } && 11388 { ac_try='test -s conftest.$ac_objext' 11389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11390 (eval $ac_try) 2>&5 11391 ac_status=$? 11392 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11393 (exit $ac_status); }; }; then 11394 ac_cv_type_int16_t=yes 11395else 11396 echo "$as_me: failed program was:" >&5 11397sed 's/^/| /' conftest.$ac_ext >&5 11398 11399ac_cv_type_int16_t=no 11400fi 11401rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11402fi 11403echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5 11404echo "${ECHO_T}$ac_cv_type_int16_t" >&6 11405if test $ac_cv_type_int16_t = yes; then 11406 11407cat >>confdefs.h <<_ACEOF 11408#define HAVE_INT16_T 1 11409_ACEOF 11410 11411 11412fi 11413echo "$as_me:$LINENO: checking for uint16_t" >&5 11414echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6 11415if test "${ac_cv_type_uint16_t+set}" = set; then 11416 echo $ECHO_N "(cached) $ECHO_C" >&6 11417else 11418 cat >conftest.$ac_ext <<_ACEOF 11419/* confdefs.h. */ 11420_ACEOF 11421cat confdefs.h >>conftest.$ac_ext 11422cat >>conftest.$ac_ext <<_ACEOF 11423/* end confdefs.h. */ 11424$ac_includes_default 11425int 11426main () 11427{ 11428if ((uint16_t *) 0) 11429 return 0; 11430if (sizeof (uint16_t)) 11431 return 0; 11432 ; 11433 return 0; 11434} 11435_ACEOF 11436rm -f conftest.$ac_objext 11437if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11438 (eval $ac_compile) 2>conftest.er1 11439 ac_status=$? 11440 grep -v '^ *+' conftest.er1 >conftest.err 11441 rm -f conftest.er1 11442 cat conftest.err >&5 11443 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11444 (exit $ac_status); } && 11445 { ac_try='test -z "$ac_c_werror_flag" 11446 || test ! -s conftest.err' 11447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11448 (eval $ac_try) 2>&5 11449 ac_status=$? 11450 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11451 (exit $ac_status); }; } && 11452 { ac_try='test -s conftest.$ac_objext' 11453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11454 (eval $ac_try) 2>&5 11455 ac_status=$? 11456 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11457 (exit $ac_status); }; }; then 11458 ac_cv_type_uint16_t=yes 11459else 11460 echo "$as_me: failed program was:" >&5 11461sed 's/^/| /' conftest.$ac_ext >&5 11462 11463ac_cv_type_uint16_t=no 11464fi 11465rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11466fi 11467echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5 11468echo "${ECHO_T}$ac_cv_type_uint16_t" >&6 11469if test $ac_cv_type_uint16_t = yes; then 11470 11471cat >>confdefs.h <<_ACEOF 11472#define HAVE_UINT16_T 1 11473_ACEOF 11474 11475 11476fi 11477echo "$as_me:$LINENO: checking for int32_t" >&5 11478echo $ECHO_N "checking for int32_t... $ECHO_C" >&6 11479if test "${ac_cv_type_int32_t+set}" = set; then 11480 echo $ECHO_N "(cached) $ECHO_C" >&6 11481else 11482 cat >conftest.$ac_ext <<_ACEOF 11483/* confdefs.h. */ 11484_ACEOF 11485cat confdefs.h >>conftest.$ac_ext 11486cat >>conftest.$ac_ext <<_ACEOF 11487/* end confdefs.h. */ 11488$ac_includes_default 11489int 11490main () 11491{ 11492if ((int32_t *) 0) 11493 return 0; 11494if (sizeof (int32_t)) 11495 return 0; 11496 ; 11497 return 0; 11498} 11499_ACEOF 11500rm -f conftest.$ac_objext 11501if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11502 (eval $ac_compile) 2>conftest.er1 11503 ac_status=$? 11504 grep -v '^ *+' conftest.er1 >conftest.err 11505 rm -f conftest.er1 11506 cat conftest.err >&5 11507 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11508 (exit $ac_status); } && 11509 { ac_try='test -z "$ac_c_werror_flag" 11510 || test ! -s conftest.err' 11511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11512 (eval $ac_try) 2>&5 11513 ac_status=$? 11514 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11515 (exit $ac_status); }; } && 11516 { ac_try='test -s conftest.$ac_objext' 11517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11518 (eval $ac_try) 2>&5 11519 ac_status=$? 11520 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11521 (exit $ac_status); }; }; then 11522 ac_cv_type_int32_t=yes 11523else 11524 echo "$as_me: failed program was:" >&5 11525sed 's/^/| /' conftest.$ac_ext >&5 11526 11527ac_cv_type_int32_t=no 11528fi 11529rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11530fi 11531echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5 11532echo "${ECHO_T}$ac_cv_type_int32_t" >&6 11533if test $ac_cv_type_int32_t = yes; then 11534 11535cat >>confdefs.h <<_ACEOF 11536#define HAVE_INT32_T 1 11537_ACEOF 11538 11539 11540fi 11541echo "$as_me:$LINENO: checking for uint32_t" >&5 11542echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6 11543if test "${ac_cv_type_uint32_t+set}" = set; then 11544 echo $ECHO_N "(cached) $ECHO_C" >&6 11545else 11546 cat >conftest.$ac_ext <<_ACEOF 11547/* confdefs.h. */ 11548_ACEOF 11549cat confdefs.h >>conftest.$ac_ext 11550cat >>conftest.$ac_ext <<_ACEOF 11551/* end confdefs.h. */ 11552$ac_includes_default 11553int 11554main () 11555{ 11556if ((uint32_t *) 0) 11557 return 0; 11558if (sizeof (uint32_t)) 11559 return 0; 11560 ; 11561 return 0; 11562} 11563_ACEOF 11564rm -f conftest.$ac_objext 11565if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11566 (eval $ac_compile) 2>conftest.er1 11567 ac_status=$? 11568 grep -v '^ *+' conftest.er1 >conftest.err 11569 rm -f conftest.er1 11570 cat conftest.err >&5 11571 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11572 (exit $ac_status); } && 11573 { ac_try='test -z "$ac_c_werror_flag" 11574 || test ! -s conftest.err' 11575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11576 (eval $ac_try) 2>&5 11577 ac_status=$? 11578 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11579 (exit $ac_status); }; } && 11580 { ac_try='test -s conftest.$ac_objext' 11581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11582 (eval $ac_try) 2>&5 11583 ac_status=$? 11584 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11585 (exit $ac_status); }; }; then 11586 ac_cv_type_uint32_t=yes 11587else 11588 echo "$as_me: failed program was:" >&5 11589sed 's/^/| /' conftest.$ac_ext >&5 11590 11591ac_cv_type_uint32_t=no 11592fi 11593rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11594fi 11595echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5 11596echo "${ECHO_T}$ac_cv_type_uint32_t" >&6 11597if test $ac_cv_type_uint32_t = yes; then 11598 11599cat >>confdefs.h <<_ACEOF 11600#define HAVE_UINT32_T 1 11601_ACEOF 11602 11603 11604fi 11605echo "$as_me:$LINENO: checking for intptr_t" >&5 11606echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6 11607if test "${ac_cv_type_intptr_t+set}" = set; then 11608 echo $ECHO_N "(cached) $ECHO_C" >&6 11609else 11610 cat >conftest.$ac_ext <<_ACEOF 11611/* confdefs.h. */ 11612_ACEOF 11613cat confdefs.h >>conftest.$ac_ext 11614cat >>conftest.$ac_ext <<_ACEOF 11615/* end confdefs.h. */ 11616$ac_includes_default 11617int 11618main () 11619{ 11620if ((intptr_t *) 0) 11621 return 0; 11622if (sizeof (intptr_t)) 11623 return 0; 11624 ; 11625 return 0; 11626} 11627_ACEOF 11628rm -f conftest.$ac_objext 11629if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11630 (eval $ac_compile) 2>conftest.er1 11631 ac_status=$? 11632 grep -v '^ *+' conftest.er1 >conftest.err 11633 rm -f conftest.er1 11634 cat conftest.err >&5 11635 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11636 (exit $ac_status); } && 11637 { ac_try='test -z "$ac_c_werror_flag" 11638 || test ! -s conftest.err' 11639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11640 (eval $ac_try) 2>&5 11641 ac_status=$? 11642 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11643 (exit $ac_status); }; } && 11644 { ac_try='test -s conftest.$ac_objext' 11645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11646 (eval $ac_try) 2>&5 11647 ac_status=$? 11648 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11649 (exit $ac_status); }; }; then 11650 ac_cv_type_intptr_t=yes 11651else 11652 echo "$as_me: failed program was:" >&5 11653sed 's/^/| /' conftest.$ac_ext >&5 11654 11655ac_cv_type_intptr_t=no 11656fi 11657rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11658fi 11659echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5 11660echo "${ECHO_T}$ac_cv_type_intptr_t" >&6 11661if test $ac_cv_type_intptr_t = yes; then 11662 11663cat >>confdefs.h <<_ACEOF 11664#define HAVE_INTPTR_T 1 11665_ACEOF 11666 11667 11668fi 11669echo "$as_me:$LINENO: checking for uint_t" >&5 11670echo $ECHO_N "checking for uint_t... $ECHO_C" >&6 11671if test "${ac_cv_type_uint_t+set}" = set; then 11672 echo $ECHO_N "(cached) $ECHO_C" >&6 11673else 11674 cat >conftest.$ac_ext <<_ACEOF 11675/* confdefs.h. */ 11676_ACEOF 11677cat confdefs.h >>conftest.$ac_ext 11678cat >>conftest.$ac_ext <<_ACEOF 11679/* end confdefs.h. */ 11680$ac_includes_default 11681int 11682main () 11683{ 11684if ((uint_t *) 0) 11685 return 0; 11686if (sizeof (uint_t)) 11687 return 0; 11688 ; 11689 return 0; 11690} 11691_ACEOF 11692rm -f conftest.$ac_objext 11693if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11694 (eval $ac_compile) 2>conftest.er1 11695 ac_status=$? 11696 grep -v '^ *+' conftest.er1 >conftest.err 11697 rm -f conftest.er1 11698 cat conftest.err >&5 11699 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11700 (exit $ac_status); } && 11701 { ac_try='test -z "$ac_c_werror_flag" 11702 || test ! -s conftest.err' 11703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11704 (eval $ac_try) 2>&5 11705 ac_status=$? 11706 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11707 (exit $ac_status); }; } && 11708 { ac_try='test -s conftest.$ac_objext' 11709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11710 (eval $ac_try) 2>&5 11711 ac_status=$? 11712 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11713 (exit $ac_status); }; }; then 11714 ac_cv_type_uint_t=yes 11715else 11716 echo "$as_me: failed program was:" >&5 11717sed 's/^/| /' conftest.$ac_ext >&5 11718 11719ac_cv_type_uint_t=no 11720fi 11721rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11722fi 11723echo "$as_me:$LINENO: result: $ac_cv_type_uint_t" >&5 11724echo "${ECHO_T}$ac_cv_type_uint_t" >&6 11725if test $ac_cv_type_uint_t = yes; then 11726 11727cat >>confdefs.h <<_ACEOF 11728#define HAVE_UINT_T 1 11729_ACEOF 11730 11731 11732fi 11733 11734 11735 # ==================== 11736 # uintptr type & sizes 11737 # ==================== 11738 echo "$as_me:$LINENO: checking for uintptr_t" >&5 11739echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6 11740if test "${ac_cv_type_uintptr_t+set}" = set; then 11741 echo $ECHO_N "(cached) $ECHO_C" >&6 11742else 11743 cat >conftest.$ac_ext <<_ACEOF 11744/* confdefs.h. */ 11745_ACEOF 11746cat confdefs.h >>conftest.$ac_ext 11747cat >>conftest.$ac_ext <<_ACEOF 11748/* end confdefs.h. */ 11749$ac_includes_default 11750int 11751main () 11752{ 11753if ((uintptr_t *) 0) 11754 return 0; 11755if (sizeof (uintptr_t)) 11756 return 0; 11757 ; 11758 return 0; 11759} 11760_ACEOF 11761rm -f conftest.$ac_objext 11762if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11763 (eval $ac_compile) 2>conftest.er1 11764 ac_status=$? 11765 grep -v '^ *+' conftest.er1 >conftest.err 11766 rm -f conftest.er1 11767 cat conftest.err >&5 11768 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11769 (exit $ac_status); } && 11770 { ac_try='test -z "$ac_c_werror_flag" 11771 || test ! -s conftest.err' 11772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11773 (eval $ac_try) 2>&5 11774 ac_status=$? 11775 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11776 (exit $ac_status); }; } && 11777 { ac_try='test -s conftest.$ac_objext' 11778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11779 (eval $ac_try) 2>&5 11780 ac_status=$? 11781 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11782 (exit $ac_status); }; }; then 11783 ac_cv_type_uintptr_t=yes 11784else 11785 echo "$as_me: failed program was:" >&5 11786sed 's/^/| /' conftest.$ac_ext >&5 11787 11788ac_cv_type_uintptr_t=no 11789fi 11790rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11791fi 11792echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5 11793echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6 11794if test $ac_cv_type_uintptr_t = yes; then 11795 11796cat >>confdefs.h <<_ACEOF 11797#define HAVE_UINTPTR_T 1 11798_ACEOF 11799 11800 11801else 11802 11803cat >>confdefs.h <<\_ACEOF 11804#define uintptr_t unsigned long 11805_ACEOF 11806 11807fi 11808 11809 echo "$as_me:$LINENO: checking for char*" >&5 11810echo $ECHO_N "checking for char*... $ECHO_C" >&6 11811if test "${ac_cv_type_charp+set}" = set; then 11812 echo $ECHO_N "(cached) $ECHO_C" >&6 11813else 11814 cat >conftest.$ac_ext <<_ACEOF 11815/* confdefs.h. */ 11816_ACEOF 11817cat confdefs.h >>conftest.$ac_ext 11818cat >>conftest.$ac_ext <<_ACEOF 11819/* end confdefs.h. */ 11820$ac_includes_default 11821int 11822main () 11823{ 11824if ((char* *) 0) 11825 return 0; 11826if (sizeof (char*)) 11827 return 0; 11828 ; 11829 return 0; 11830} 11831_ACEOF 11832rm -f conftest.$ac_objext 11833if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11834 (eval $ac_compile) 2>conftest.er1 11835 ac_status=$? 11836 grep -v '^ *+' conftest.er1 >conftest.err 11837 rm -f conftest.er1 11838 cat conftest.err >&5 11839 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11840 (exit $ac_status); } && 11841 { ac_try='test -z "$ac_c_werror_flag" 11842 || test ! -s conftest.err' 11843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11844 (eval $ac_try) 2>&5 11845 ac_status=$? 11846 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11847 (exit $ac_status); }; } && 11848 { ac_try='test -s conftest.$ac_objext' 11849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11850 (eval $ac_try) 2>&5 11851 ac_status=$? 11852 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11853 (exit $ac_status); }; }; then 11854 ac_cv_type_charp=yes 11855else 11856 echo "$as_me: failed program was:" >&5 11857sed 's/^/| /' conftest.$ac_ext >&5 11858 11859ac_cv_type_charp=no 11860fi 11861rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11862fi 11863echo "$as_me:$LINENO: result: $ac_cv_type_charp" >&5 11864echo "${ECHO_T}$ac_cv_type_charp" >&6 11865 11866echo "$as_me:$LINENO: checking size of char*" >&5 11867echo $ECHO_N "checking size of char*... $ECHO_C" >&6 11868if test "${ac_cv_sizeof_charp+set}" = set; then 11869 echo $ECHO_N "(cached) $ECHO_C" >&6 11870else 11871 if test "$ac_cv_type_charp" = yes; then 11872 # The cast to unsigned long works around a bug in the HP C Compiler 11873 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 11874 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 11875 # This bug is HP SR number 8606223364. 11876 if test "$cross_compiling" = yes; then 11877 # Depending upon the size, compute the lo and hi bounds. 11878cat >conftest.$ac_ext <<_ACEOF 11879/* confdefs.h. */ 11880_ACEOF 11881cat confdefs.h >>conftest.$ac_ext 11882cat >>conftest.$ac_ext <<_ACEOF 11883/* end confdefs.h. */ 11884$ac_includes_default 11885int 11886main () 11887{ 11888static int test_array [1 - 2 * !(((long) (sizeof (char*))) >= 0)]; 11889test_array [0] = 0 11890 11891 ; 11892 return 0; 11893} 11894_ACEOF 11895rm -f conftest.$ac_objext 11896if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11897 (eval $ac_compile) 2>conftest.er1 11898 ac_status=$? 11899 grep -v '^ *+' conftest.er1 >conftest.err 11900 rm -f conftest.er1 11901 cat conftest.err >&5 11902 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11903 (exit $ac_status); } && 11904 { ac_try='test -z "$ac_c_werror_flag" 11905 || test ! -s conftest.err' 11906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11907 (eval $ac_try) 2>&5 11908 ac_status=$? 11909 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11910 (exit $ac_status); }; } && 11911 { ac_try='test -s conftest.$ac_objext' 11912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11913 (eval $ac_try) 2>&5 11914 ac_status=$? 11915 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11916 (exit $ac_status); }; }; then 11917 ac_lo=0 ac_mid=0 11918 while :; do 11919 cat >conftest.$ac_ext <<_ACEOF 11920/* confdefs.h. */ 11921_ACEOF 11922cat confdefs.h >>conftest.$ac_ext 11923cat >>conftest.$ac_ext <<_ACEOF 11924/* end confdefs.h. */ 11925$ac_includes_default 11926int 11927main () 11928{ 11929static int test_array [1 - 2 * !(((long) (sizeof (char*))) <= $ac_mid)]; 11930test_array [0] = 0 11931 11932 ; 11933 return 0; 11934} 11935_ACEOF 11936rm -f conftest.$ac_objext 11937if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11938 (eval $ac_compile) 2>conftest.er1 11939 ac_status=$? 11940 grep -v '^ *+' conftest.er1 >conftest.err 11941 rm -f conftest.er1 11942 cat conftest.err >&5 11943 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11944 (exit $ac_status); } && 11945 { ac_try='test -z "$ac_c_werror_flag" 11946 || test ! -s conftest.err' 11947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11948 (eval $ac_try) 2>&5 11949 ac_status=$? 11950 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11951 (exit $ac_status); }; } && 11952 { ac_try='test -s conftest.$ac_objext' 11953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11954 (eval $ac_try) 2>&5 11955 ac_status=$? 11956 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11957 (exit $ac_status); }; }; then 11958 ac_hi=$ac_mid; break 11959else 11960 echo "$as_me: failed program was:" >&5 11961sed 's/^/| /' conftest.$ac_ext >&5 11962 11963ac_lo=`expr $ac_mid + 1` 11964 if test $ac_lo -le $ac_mid; then 11965 ac_lo= ac_hi= 11966 break 11967 fi 11968 ac_mid=`expr 2 '*' $ac_mid + 1` 11969fi 11970rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11971 done 11972else 11973 echo "$as_me: failed program was:" >&5 11974sed 's/^/| /' conftest.$ac_ext >&5 11975 11976cat >conftest.$ac_ext <<_ACEOF 11977/* confdefs.h. */ 11978_ACEOF 11979cat confdefs.h >>conftest.$ac_ext 11980cat >>conftest.$ac_ext <<_ACEOF 11981/* end confdefs.h. */ 11982$ac_includes_default 11983int 11984main () 11985{ 11986static int test_array [1 - 2 * !(((long) (sizeof (char*))) < 0)]; 11987test_array [0] = 0 11988 11989 ; 11990 return 0; 11991} 11992_ACEOF 11993rm -f conftest.$ac_objext 11994if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11995 (eval $ac_compile) 2>conftest.er1 11996 ac_status=$? 11997 grep -v '^ *+' conftest.er1 >conftest.err 11998 rm -f conftest.er1 11999 cat conftest.err >&5 12000 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12001 (exit $ac_status); } && 12002 { ac_try='test -z "$ac_c_werror_flag" 12003 || test ! -s conftest.err' 12004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12005 (eval $ac_try) 2>&5 12006 ac_status=$? 12007 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12008 (exit $ac_status); }; } && 12009 { ac_try='test -s conftest.$ac_objext' 12010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12011 (eval $ac_try) 2>&5 12012 ac_status=$? 12013 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12014 (exit $ac_status); }; }; then 12015 ac_hi=-1 ac_mid=-1 12016 while :; do 12017 cat >conftest.$ac_ext <<_ACEOF 12018/* confdefs.h. */ 12019_ACEOF 12020cat confdefs.h >>conftest.$ac_ext 12021cat >>conftest.$ac_ext <<_ACEOF 12022/* end confdefs.h. */ 12023$ac_includes_default 12024int 12025main () 12026{ 12027static int test_array [1 - 2 * !(((long) (sizeof (char*))) >= $ac_mid)]; 12028test_array [0] = 0 12029 12030 ; 12031 return 0; 12032} 12033_ACEOF 12034rm -f conftest.$ac_objext 12035if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12036 (eval $ac_compile) 2>conftest.er1 12037 ac_status=$? 12038 grep -v '^ *+' conftest.er1 >conftest.err 12039 rm -f conftest.er1 12040 cat conftest.err >&5 12041 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12042 (exit $ac_status); } && 12043 { ac_try='test -z "$ac_c_werror_flag" 12044 || test ! -s conftest.err' 12045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12046 (eval $ac_try) 2>&5 12047 ac_status=$? 12048 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12049 (exit $ac_status); }; } && 12050 { ac_try='test -s conftest.$ac_objext' 12051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12052 (eval $ac_try) 2>&5 12053 ac_status=$? 12054 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12055 (exit $ac_status); }; }; then 12056 ac_lo=$ac_mid; break 12057else 12058 echo "$as_me: failed program was:" >&5 12059sed 's/^/| /' conftest.$ac_ext >&5 12060 12061ac_hi=`expr '(' $ac_mid ')' - 1` 12062 if test $ac_mid -le $ac_hi; then 12063 ac_lo= ac_hi= 12064 break 12065 fi 12066 ac_mid=`expr 2 '*' $ac_mid` 12067fi 12068rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 12069 done 12070else 12071 echo "$as_me: failed program was:" >&5 12072sed 's/^/| /' conftest.$ac_ext >&5 12073 12074ac_lo= ac_hi= 12075fi 12076rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 12077fi 12078rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 12079# Binary search between lo and hi bounds. 12080while test "x$ac_lo" != "x$ac_hi"; do 12081 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 12082 cat >conftest.$ac_ext <<_ACEOF 12083/* confdefs.h. */ 12084_ACEOF 12085cat confdefs.h >>conftest.$ac_ext 12086cat >>conftest.$ac_ext <<_ACEOF 12087/* end confdefs.h. */ 12088$ac_includes_default 12089int 12090main () 12091{ 12092static int test_array [1 - 2 * !(((long) (sizeof (char*))) <= $ac_mid)]; 12093test_array [0] = 0 12094 12095 ; 12096 return 0; 12097} 12098_ACEOF 12099rm -f conftest.$ac_objext 12100if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12101 (eval $ac_compile) 2>conftest.er1 12102 ac_status=$? 12103 grep -v '^ *+' conftest.er1 >conftest.err 12104 rm -f conftest.er1 12105 cat conftest.err >&5 12106 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12107 (exit $ac_status); } && 12108 { ac_try='test -z "$ac_c_werror_flag" 12109 || test ! -s conftest.err' 12110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12111 (eval $ac_try) 2>&5 12112 ac_status=$? 12113 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12114 (exit $ac_status); }; } && 12115 { ac_try='test -s conftest.$ac_objext' 12116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12117 (eval $ac_try) 2>&5 12118 ac_status=$? 12119 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12120 (exit $ac_status); }; }; then 12121 ac_hi=$ac_mid 12122else 12123 echo "$as_me: failed program was:" >&5 12124sed 's/^/| /' conftest.$ac_ext >&5 12125 12126ac_lo=`expr '(' $ac_mid ')' + 1` 12127fi 12128rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 12129done 12130case $ac_lo in 12131?*) ac_cv_sizeof_charp=$ac_lo;; 12132'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char*), 77 12133See \`config.log' for more details." >&5 12134echo "$as_me: error: cannot compute sizeof (char*), 77 12135See \`config.log' for more details." >&2;} 12136 { (exit 1); exit 1; }; } ;; 12137esac 12138else 12139 if test "$cross_compiling" = yes; then 12140 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 12141See \`config.log' for more details." >&5 12142echo "$as_me: error: cannot run test program while cross compiling 12143See \`config.log' for more details." >&2;} 12144 { (exit 1); exit 1; }; } 12145else 12146 cat >conftest.$ac_ext <<_ACEOF 12147/* confdefs.h. */ 12148_ACEOF 12149cat confdefs.h >>conftest.$ac_ext 12150cat >>conftest.$ac_ext <<_ACEOF 12151/* end confdefs.h. */ 12152$ac_includes_default 12153long longval () { return (long) (sizeof (char*)); } 12154unsigned long ulongval () { return (long) (sizeof (char*)); } 12155#include <stdio.h> 12156#include <stdlib.h> 12157int 12158main () 12159{ 12160 12161 FILE *f = fopen ("conftest.val", "w"); 12162 if (! f) 12163 exit (1); 12164 if (((long) (sizeof (char*))) < 0) 12165 { 12166 long i = longval (); 12167 if (i != ((long) (sizeof (char*)))) 12168 exit (1); 12169 fprintf (f, "%ld\n", i); 12170 } 12171 else 12172 { 12173 unsigned long i = ulongval (); 12174 if (i != ((long) (sizeof (char*)))) 12175 exit (1); 12176 fprintf (f, "%lu\n", i); 12177 } 12178 exit (ferror (f) || fclose (f) != 0); 12179 12180 ; 12181 return 0; 12182} 12183_ACEOF 12184rm -f conftest$ac_exeext 12185if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12186 (eval $ac_link) 2>&5 12187 ac_status=$? 12188 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12189 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 12190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12191 (eval $ac_try) 2>&5 12192 ac_status=$? 12193 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12194 (exit $ac_status); }; }; then 12195 ac_cv_sizeof_charp=`cat conftest.val` 12196else 12197 echo "$as_me: program exited with status $ac_status" >&5 12198echo "$as_me: failed program was:" >&5 12199sed 's/^/| /' conftest.$ac_ext >&5 12200 12201( exit $ac_status ) 12202{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char*), 77 12203See \`config.log' for more details." >&5 12204echo "$as_me: error: cannot compute sizeof (char*), 77 12205See \`config.log' for more details." >&2;} 12206 { (exit 1); exit 1; }; } 12207fi 12208rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 12209fi 12210fi 12211rm -f conftest.val 12212else 12213 ac_cv_sizeof_charp=0 12214fi 12215fi 12216echo "$as_me:$LINENO: result: $ac_cv_sizeof_charp" >&5 12217echo "${ECHO_T}$ac_cv_sizeof_charp" >&6 12218cat >>confdefs.h <<_ACEOF 12219#define SIZEOF_CHARP $ac_cv_sizeof_charp 12220_ACEOF 12221 12222 12223 echo "$as_me:$LINENO: checking for int" >&5 12224echo $ECHO_N "checking for int... $ECHO_C" >&6 12225if test "${ac_cv_type_int+set}" = set; then 12226 echo $ECHO_N "(cached) $ECHO_C" >&6 12227else 12228 cat >conftest.$ac_ext <<_ACEOF 12229/* confdefs.h. */ 12230_ACEOF 12231cat confdefs.h >>conftest.$ac_ext 12232cat >>conftest.$ac_ext <<_ACEOF 12233/* end confdefs.h. */ 12234$ac_includes_default 12235int 12236main () 12237{ 12238if ((int *) 0) 12239 return 0; 12240if (sizeof (int)) 12241 return 0; 12242 ; 12243 return 0; 12244} 12245_ACEOF 12246rm -f conftest.$ac_objext 12247if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12248 (eval $ac_compile) 2>conftest.er1 12249 ac_status=$? 12250 grep -v '^ *+' conftest.er1 >conftest.err 12251 rm -f conftest.er1 12252 cat conftest.err >&5 12253 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12254 (exit $ac_status); } && 12255 { ac_try='test -z "$ac_c_werror_flag" 12256 || test ! -s conftest.err' 12257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12258 (eval $ac_try) 2>&5 12259 ac_status=$? 12260 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12261 (exit $ac_status); }; } && 12262 { ac_try='test -s conftest.$ac_objext' 12263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12264 (eval $ac_try) 2>&5 12265 ac_status=$? 12266 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12267 (exit $ac_status); }; }; then 12268 ac_cv_type_int=yes 12269else 12270 echo "$as_me: failed program was:" >&5 12271sed 's/^/| /' conftest.$ac_ext >&5 12272 12273ac_cv_type_int=no 12274fi 12275rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 12276fi 12277echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 12278echo "${ECHO_T}$ac_cv_type_int" >&6 12279 12280echo "$as_me:$LINENO: checking size of int" >&5 12281echo $ECHO_N "checking size of int... $ECHO_C" >&6 12282if test "${ac_cv_sizeof_int+set}" = set; then 12283 echo $ECHO_N "(cached) $ECHO_C" >&6 12284else 12285 if test "$ac_cv_type_int" = yes; then 12286 # The cast to unsigned long works around a bug in the HP C Compiler 12287 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 12288 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 12289 # This bug is HP SR number 8606223364. 12290 if test "$cross_compiling" = yes; then 12291 # Depending upon the size, compute the lo and hi bounds. 12292cat >conftest.$ac_ext <<_ACEOF 12293/* confdefs.h. */ 12294_ACEOF 12295cat confdefs.h >>conftest.$ac_ext 12296cat >>conftest.$ac_ext <<_ACEOF 12297/* end confdefs.h. */ 12298$ac_includes_default 12299int 12300main () 12301{ 12302static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)]; 12303test_array [0] = 0 12304 12305 ; 12306 return 0; 12307} 12308_ACEOF 12309rm -f conftest.$ac_objext 12310if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12311 (eval $ac_compile) 2>conftest.er1 12312 ac_status=$? 12313 grep -v '^ *+' conftest.er1 >conftest.err 12314 rm -f conftest.er1 12315 cat conftest.err >&5 12316 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12317 (exit $ac_status); } && 12318 { ac_try='test -z "$ac_c_werror_flag" 12319 || test ! -s conftest.err' 12320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12321 (eval $ac_try) 2>&5 12322 ac_status=$? 12323 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12324 (exit $ac_status); }; } && 12325 { ac_try='test -s conftest.$ac_objext' 12326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12327 (eval $ac_try) 2>&5 12328 ac_status=$? 12329 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12330 (exit $ac_status); }; }; then 12331 ac_lo=0 ac_mid=0 12332 while :; do 12333 cat >conftest.$ac_ext <<_ACEOF 12334/* confdefs.h. */ 12335_ACEOF 12336cat confdefs.h >>conftest.$ac_ext 12337cat >>conftest.$ac_ext <<_ACEOF 12338/* end confdefs.h. */ 12339$ac_includes_default 12340int 12341main () 12342{ 12343static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; 12344test_array [0] = 0 12345 12346 ; 12347 return 0; 12348} 12349_ACEOF 12350rm -f conftest.$ac_objext 12351if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12352 (eval $ac_compile) 2>conftest.er1 12353 ac_status=$? 12354 grep -v '^ *+' conftest.er1 >conftest.err 12355 rm -f conftest.er1 12356 cat conftest.err >&5 12357 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12358 (exit $ac_status); } && 12359 { ac_try='test -z "$ac_c_werror_flag" 12360 || test ! -s conftest.err' 12361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12362 (eval $ac_try) 2>&5 12363 ac_status=$? 12364 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12365 (exit $ac_status); }; } && 12366 { ac_try='test -s conftest.$ac_objext' 12367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12368 (eval $ac_try) 2>&5 12369 ac_status=$? 12370 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12371 (exit $ac_status); }; }; then 12372 ac_hi=$ac_mid; break 12373else 12374 echo "$as_me: failed program was:" >&5 12375sed 's/^/| /' conftest.$ac_ext >&5 12376 12377ac_lo=`expr $ac_mid + 1` 12378 if test $ac_lo -le $ac_mid; then 12379 ac_lo= ac_hi= 12380 break 12381 fi 12382 ac_mid=`expr 2 '*' $ac_mid + 1` 12383fi 12384rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 12385 done 12386else 12387 echo "$as_me: failed program was:" >&5 12388sed 's/^/| /' conftest.$ac_ext >&5 12389 12390cat >conftest.$ac_ext <<_ACEOF 12391/* confdefs.h. */ 12392_ACEOF 12393cat confdefs.h >>conftest.$ac_ext 12394cat >>conftest.$ac_ext <<_ACEOF 12395/* end confdefs.h. */ 12396$ac_includes_default 12397int 12398main () 12399{ 12400static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)]; 12401test_array [0] = 0 12402 12403 ; 12404 return 0; 12405} 12406_ACEOF 12407rm -f conftest.$ac_objext 12408if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12409 (eval $ac_compile) 2>conftest.er1 12410 ac_status=$? 12411 grep -v '^ *+' conftest.er1 >conftest.err 12412 rm -f conftest.er1 12413 cat conftest.err >&5 12414 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12415 (exit $ac_status); } && 12416 { ac_try='test -z "$ac_c_werror_flag" 12417 || test ! -s conftest.err' 12418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12419 (eval $ac_try) 2>&5 12420 ac_status=$? 12421 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12422 (exit $ac_status); }; } && 12423 { ac_try='test -s conftest.$ac_objext' 12424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12425 (eval $ac_try) 2>&5 12426 ac_status=$? 12427 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12428 (exit $ac_status); }; }; then 12429 ac_hi=-1 ac_mid=-1 12430 while :; do 12431 cat >conftest.$ac_ext <<_ACEOF 12432/* confdefs.h. */ 12433_ACEOF 12434cat confdefs.h >>conftest.$ac_ext 12435cat >>conftest.$ac_ext <<_ACEOF 12436/* end confdefs.h. */ 12437$ac_includes_default 12438int 12439main () 12440{ 12441static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)]; 12442test_array [0] = 0 12443 12444 ; 12445 return 0; 12446} 12447_ACEOF 12448rm -f conftest.$ac_objext 12449if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12450 (eval $ac_compile) 2>conftest.er1 12451 ac_status=$? 12452 grep -v '^ *+' conftest.er1 >conftest.err 12453 rm -f conftest.er1 12454 cat conftest.err >&5 12455 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12456 (exit $ac_status); } && 12457 { ac_try='test -z "$ac_c_werror_flag" 12458 || test ! -s conftest.err' 12459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12460 (eval $ac_try) 2>&5 12461 ac_status=$? 12462 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12463 (exit $ac_status); }; } && 12464 { ac_try='test -s conftest.$ac_objext' 12465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12466 (eval $ac_try) 2>&5 12467 ac_status=$? 12468 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12469 (exit $ac_status); }; }; then 12470 ac_lo=$ac_mid; break 12471else 12472 echo "$as_me: failed program was:" >&5 12473sed 's/^/| /' conftest.$ac_ext >&5 12474 12475ac_hi=`expr '(' $ac_mid ')' - 1` 12476 if test $ac_mid -le $ac_hi; then 12477 ac_lo= ac_hi= 12478 break 12479 fi 12480 ac_mid=`expr 2 '*' $ac_mid` 12481fi 12482rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 12483 done 12484else 12485 echo "$as_me: failed program was:" >&5 12486sed 's/^/| /' conftest.$ac_ext >&5 12487 12488ac_lo= ac_hi= 12489fi 12490rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 12491fi 12492rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 12493# Binary search between lo and hi bounds. 12494while test "x$ac_lo" != "x$ac_hi"; do 12495 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 12496 cat >conftest.$ac_ext <<_ACEOF 12497/* confdefs.h. */ 12498_ACEOF 12499cat confdefs.h >>conftest.$ac_ext 12500cat >>conftest.$ac_ext <<_ACEOF 12501/* end confdefs.h. */ 12502$ac_includes_default 12503int 12504main () 12505{ 12506static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; 12507test_array [0] = 0 12508 12509 ; 12510 return 0; 12511} 12512_ACEOF 12513rm -f conftest.$ac_objext 12514if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12515 (eval $ac_compile) 2>conftest.er1 12516 ac_status=$? 12517 grep -v '^ *+' conftest.er1 >conftest.err 12518 rm -f conftest.er1 12519 cat conftest.err >&5 12520 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12521 (exit $ac_status); } && 12522 { ac_try='test -z "$ac_c_werror_flag" 12523 || test ! -s conftest.err' 12524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12525 (eval $ac_try) 2>&5 12526 ac_status=$? 12527 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12528 (exit $ac_status); }; } && 12529 { ac_try='test -s conftest.$ac_objext' 12530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12531 (eval $ac_try) 2>&5 12532 ac_status=$? 12533 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12534 (exit $ac_status); }; }; then 12535 ac_hi=$ac_mid 12536else 12537 echo "$as_me: failed program was:" >&5 12538sed 's/^/| /' conftest.$ac_ext >&5 12539 12540ac_lo=`expr '(' $ac_mid ')' + 1` 12541fi 12542rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 12543done 12544case $ac_lo in 12545?*) ac_cv_sizeof_int=$ac_lo;; 12546'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 12547See \`config.log' for more details." >&5 12548echo "$as_me: error: cannot compute sizeof (int), 77 12549See \`config.log' for more details." >&2;} 12550 { (exit 1); exit 1; }; } ;; 12551esac 12552else 12553 if test "$cross_compiling" = yes; then 12554 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 12555See \`config.log' for more details." >&5 12556echo "$as_me: error: cannot run test program while cross compiling 12557See \`config.log' for more details." >&2;} 12558 { (exit 1); exit 1; }; } 12559else 12560 cat >conftest.$ac_ext <<_ACEOF 12561/* confdefs.h. */ 12562_ACEOF 12563cat confdefs.h >>conftest.$ac_ext 12564cat >>conftest.$ac_ext <<_ACEOF 12565/* end confdefs.h. */ 12566$ac_includes_default 12567long longval () { return (long) (sizeof (int)); } 12568unsigned long ulongval () { return (long) (sizeof (int)); } 12569#include <stdio.h> 12570#include <stdlib.h> 12571int 12572main () 12573{ 12574 12575 FILE *f = fopen ("conftest.val", "w"); 12576 if (! f) 12577 exit (1); 12578 if (((long) (sizeof (int))) < 0) 12579 { 12580 long i = longval (); 12581 if (i != ((long) (sizeof (int)))) 12582 exit (1); 12583 fprintf (f, "%ld\n", i); 12584 } 12585 else 12586 { 12587 unsigned long i = ulongval (); 12588 if (i != ((long) (sizeof (int)))) 12589 exit (1); 12590 fprintf (f, "%lu\n", i); 12591 } 12592 exit (ferror (f) || fclose (f) != 0); 12593 12594 ; 12595 return 0; 12596} 12597_ACEOF 12598rm -f conftest$ac_exeext 12599if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12600 (eval $ac_link) 2>&5 12601 ac_status=$? 12602 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12603 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 12604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12605 (eval $ac_try) 2>&5 12606 ac_status=$? 12607 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12608 (exit $ac_status); }; }; then 12609 ac_cv_sizeof_int=`cat conftest.val` 12610else 12611 echo "$as_me: program exited with status $ac_status" >&5 12612echo "$as_me: failed program was:" >&5 12613sed 's/^/| /' conftest.$ac_ext >&5 12614 12615( exit $ac_status ) 12616{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 12617See \`config.log' for more details." >&5 12618echo "$as_me: error: cannot compute sizeof (int), 77 12619See \`config.log' for more details." >&2;} 12620 { (exit 1); exit 1; }; } 12621fi 12622rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 12623fi 12624fi 12625rm -f conftest.val 12626else 12627 ac_cv_sizeof_int=0 12628fi 12629fi 12630echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 12631echo "${ECHO_T}$ac_cv_sizeof_int" >&6 12632cat >>confdefs.h <<_ACEOF 12633#define SIZEOF_INT $ac_cv_sizeof_int 12634_ACEOF 12635 12636 12637 echo "$as_me:$LINENO: checking for long" >&5 12638echo $ECHO_N "checking for long... $ECHO_C" >&6 12639if test "${ac_cv_type_long+set}" = set; then 12640 echo $ECHO_N "(cached) $ECHO_C" >&6 12641else 12642 cat >conftest.$ac_ext <<_ACEOF 12643/* confdefs.h. */ 12644_ACEOF 12645cat confdefs.h >>conftest.$ac_ext 12646cat >>conftest.$ac_ext <<_ACEOF 12647/* end confdefs.h. */ 12648$ac_includes_default 12649int 12650main () 12651{ 12652if ((long *) 0) 12653 return 0; 12654if (sizeof (long)) 12655 return 0; 12656 ; 12657 return 0; 12658} 12659_ACEOF 12660rm -f conftest.$ac_objext 12661if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12662 (eval $ac_compile) 2>conftest.er1 12663 ac_status=$? 12664 grep -v '^ *+' conftest.er1 >conftest.err 12665 rm -f conftest.er1 12666 cat conftest.err >&5 12667 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12668 (exit $ac_status); } && 12669 { ac_try='test -z "$ac_c_werror_flag" 12670 || test ! -s conftest.err' 12671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12672 (eval $ac_try) 2>&5 12673 ac_status=$? 12674 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12675 (exit $ac_status); }; } && 12676 { ac_try='test -s conftest.$ac_objext' 12677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12678 (eval $ac_try) 2>&5 12679 ac_status=$? 12680 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12681 (exit $ac_status); }; }; then 12682 ac_cv_type_long=yes 12683else 12684 echo "$as_me: failed program was:" >&5 12685sed 's/^/| /' conftest.$ac_ext >&5 12686 12687ac_cv_type_long=no 12688fi 12689rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 12690fi 12691echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 12692echo "${ECHO_T}$ac_cv_type_long" >&6 12693 12694echo "$as_me:$LINENO: checking size of long" >&5 12695echo $ECHO_N "checking size of long... $ECHO_C" >&6 12696if test "${ac_cv_sizeof_long+set}" = set; then 12697 echo $ECHO_N "(cached) $ECHO_C" >&6 12698else 12699 if test "$ac_cv_type_long" = yes; then 12700 # The cast to unsigned long works around a bug in the HP C Compiler 12701 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 12702 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 12703 # This bug is HP SR number 8606223364. 12704 if test "$cross_compiling" = yes; then 12705 # Depending upon the size, compute the lo and hi bounds. 12706cat >conftest.$ac_ext <<_ACEOF 12707/* confdefs.h. */ 12708_ACEOF 12709cat confdefs.h >>conftest.$ac_ext 12710cat >>conftest.$ac_ext <<_ACEOF 12711/* end confdefs.h. */ 12712$ac_includes_default 12713int 12714main () 12715{ 12716static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; 12717test_array [0] = 0 12718 12719 ; 12720 return 0; 12721} 12722_ACEOF 12723rm -f conftest.$ac_objext 12724if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12725 (eval $ac_compile) 2>conftest.er1 12726 ac_status=$? 12727 grep -v '^ *+' conftest.er1 >conftest.err 12728 rm -f conftest.er1 12729 cat conftest.err >&5 12730 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12731 (exit $ac_status); } && 12732 { ac_try='test -z "$ac_c_werror_flag" 12733 || test ! -s conftest.err' 12734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12735 (eval $ac_try) 2>&5 12736 ac_status=$? 12737 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12738 (exit $ac_status); }; } && 12739 { ac_try='test -s conftest.$ac_objext' 12740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12741 (eval $ac_try) 2>&5 12742 ac_status=$? 12743 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12744 (exit $ac_status); }; }; then 12745 ac_lo=0 ac_mid=0 12746 while :; do 12747 cat >conftest.$ac_ext <<_ACEOF 12748/* confdefs.h. */ 12749_ACEOF 12750cat confdefs.h >>conftest.$ac_ext 12751cat >>conftest.$ac_ext <<_ACEOF 12752/* end confdefs.h. */ 12753$ac_includes_default 12754int 12755main () 12756{ 12757static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; 12758test_array [0] = 0 12759 12760 ; 12761 return 0; 12762} 12763_ACEOF 12764rm -f conftest.$ac_objext 12765if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12766 (eval $ac_compile) 2>conftest.er1 12767 ac_status=$? 12768 grep -v '^ *+' conftest.er1 >conftest.err 12769 rm -f conftest.er1 12770 cat conftest.err >&5 12771 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12772 (exit $ac_status); } && 12773 { ac_try='test -z "$ac_c_werror_flag" 12774 || test ! -s conftest.err' 12775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12776 (eval $ac_try) 2>&5 12777 ac_status=$? 12778 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12779 (exit $ac_status); }; } && 12780 { ac_try='test -s conftest.$ac_objext' 12781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12782 (eval $ac_try) 2>&5 12783 ac_status=$? 12784 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12785 (exit $ac_status); }; }; then 12786 ac_hi=$ac_mid; break 12787else 12788 echo "$as_me: failed program was:" >&5 12789sed 's/^/| /' conftest.$ac_ext >&5 12790 12791ac_lo=`expr $ac_mid + 1` 12792 if test $ac_lo -le $ac_mid; then 12793 ac_lo= ac_hi= 12794 break 12795 fi 12796 ac_mid=`expr 2 '*' $ac_mid + 1` 12797fi 12798rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 12799 done 12800else 12801 echo "$as_me: failed program was:" >&5 12802sed 's/^/| /' conftest.$ac_ext >&5 12803 12804cat >conftest.$ac_ext <<_ACEOF 12805/* confdefs.h. */ 12806_ACEOF 12807cat confdefs.h >>conftest.$ac_ext 12808cat >>conftest.$ac_ext <<_ACEOF 12809/* end confdefs.h. */ 12810$ac_includes_default 12811int 12812main () 12813{ 12814static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; 12815test_array [0] = 0 12816 12817 ; 12818 return 0; 12819} 12820_ACEOF 12821rm -f conftest.$ac_objext 12822if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12823 (eval $ac_compile) 2>conftest.er1 12824 ac_status=$? 12825 grep -v '^ *+' conftest.er1 >conftest.err 12826 rm -f conftest.er1 12827 cat conftest.err >&5 12828 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12829 (exit $ac_status); } && 12830 { ac_try='test -z "$ac_c_werror_flag" 12831 || test ! -s conftest.err' 12832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12833 (eval $ac_try) 2>&5 12834 ac_status=$? 12835 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12836 (exit $ac_status); }; } && 12837 { ac_try='test -s conftest.$ac_objext' 12838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12839 (eval $ac_try) 2>&5 12840 ac_status=$? 12841 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12842 (exit $ac_status); }; }; then 12843 ac_hi=-1 ac_mid=-1 12844 while :; do 12845 cat >conftest.$ac_ext <<_ACEOF 12846/* confdefs.h. */ 12847_ACEOF 12848cat confdefs.h >>conftest.$ac_ext 12849cat >>conftest.$ac_ext <<_ACEOF 12850/* end confdefs.h. */ 12851$ac_includes_default 12852int 12853main () 12854{ 12855static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; 12856test_array [0] = 0 12857 12858 ; 12859 return 0; 12860} 12861_ACEOF 12862rm -f conftest.$ac_objext 12863if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12864 (eval $ac_compile) 2>conftest.er1 12865 ac_status=$? 12866 grep -v '^ *+' conftest.er1 >conftest.err 12867 rm -f conftest.er1 12868 cat conftest.err >&5 12869 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12870 (exit $ac_status); } && 12871 { ac_try='test -z "$ac_c_werror_flag" 12872 || test ! -s conftest.err' 12873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12874 (eval $ac_try) 2>&5 12875 ac_status=$? 12876 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12877 (exit $ac_status); }; } && 12878 { ac_try='test -s conftest.$ac_objext' 12879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12880 (eval $ac_try) 2>&5 12881 ac_status=$? 12882 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12883 (exit $ac_status); }; }; then 12884 ac_lo=$ac_mid; break 12885else 12886 echo "$as_me: failed program was:" >&5 12887sed 's/^/| /' conftest.$ac_ext >&5 12888 12889ac_hi=`expr '(' $ac_mid ')' - 1` 12890 if test $ac_mid -le $ac_hi; then 12891 ac_lo= ac_hi= 12892 break 12893 fi 12894 ac_mid=`expr 2 '*' $ac_mid` 12895fi 12896rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 12897 done 12898else 12899 echo "$as_me: failed program was:" >&5 12900sed 's/^/| /' conftest.$ac_ext >&5 12901 12902ac_lo= ac_hi= 12903fi 12904rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 12905fi 12906rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 12907# Binary search between lo and hi bounds. 12908while test "x$ac_lo" != "x$ac_hi"; do 12909 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 12910 cat >conftest.$ac_ext <<_ACEOF 12911/* confdefs.h. */ 12912_ACEOF 12913cat confdefs.h >>conftest.$ac_ext 12914cat >>conftest.$ac_ext <<_ACEOF 12915/* end confdefs.h. */ 12916$ac_includes_default 12917int 12918main () 12919{ 12920static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; 12921test_array [0] = 0 12922 12923 ; 12924 return 0; 12925} 12926_ACEOF 12927rm -f conftest.$ac_objext 12928if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12929 (eval $ac_compile) 2>conftest.er1 12930 ac_status=$? 12931 grep -v '^ *+' conftest.er1 >conftest.err 12932 rm -f conftest.er1 12933 cat conftest.err >&5 12934 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12935 (exit $ac_status); } && 12936 { ac_try='test -z "$ac_c_werror_flag" 12937 || test ! -s conftest.err' 12938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12939 (eval $ac_try) 2>&5 12940 ac_status=$? 12941 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12942 (exit $ac_status); }; } && 12943 { ac_try='test -s conftest.$ac_objext' 12944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12945 (eval $ac_try) 2>&5 12946 ac_status=$? 12947 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12948 (exit $ac_status); }; }; then 12949 ac_hi=$ac_mid 12950else 12951 echo "$as_me: failed program was:" >&5 12952sed 's/^/| /' conftest.$ac_ext >&5 12953 12954ac_lo=`expr '(' $ac_mid ')' + 1` 12955fi 12956rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 12957done 12958case $ac_lo in 12959?*) ac_cv_sizeof_long=$ac_lo;; 12960'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 12961See \`config.log' for more details." >&5 12962echo "$as_me: error: cannot compute sizeof (long), 77 12963See \`config.log' for more details." >&2;} 12964 { (exit 1); exit 1; }; } ;; 12965esac 12966else 12967 if test "$cross_compiling" = yes; then 12968 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 12969See \`config.log' for more details." >&5 12970echo "$as_me: error: cannot run test program while cross compiling 12971See \`config.log' for more details." >&2;} 12972 { (exit 1); exit 1; }; } 12973else 12974 cat >conftest.$ac_ext <<_ACEOF 12975/* confdefs.h. */ 12976_ACEOF 12977cat confdefs.h >>conftest.$ac_ext 12978cat >>conftest.$ac_ext <<_ACEOF 12979/* end confdefs.h. */ 12980$ac_includes_default 12981long longval () { return (long) (sizeof (long)); } 12982unsigned long ulongval () { return (long) (sizeof (long)); } 12983#include <stdio.h> 12984#include <stdlib.h> 12985int 12986main () 12987{ 12988 12989 FILE *f = fopen ("conftest.val", "w"); 12990 if (! f) 12991 exit (1); 12992 if (((long) (sizeof (long))) < 0) 12993 { 12994 long i = longval (); 12995 if (i != ((long) (sizeof (long)))) 12996 exit (1); 12997 fprintf (f, "%ld\n", i); 12998 } 12999 else 13000 { 13001 unsigned long i = ulongval (); 13002 if (i != ((long) (sizeof (long)))) 13003 exit (1); 13004 fprintf (f, "%lu\n", i); 13005 } 13006 exit (ferror (f) || fclose (f) != 0); 13007 13008 ; 13009 return 0; 13010} 13011_ACEOF 13012rm -f conftest$ac_exeext 13013if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13014 (eval $ac_link) 2>&5 13015 ac_status=$? 13016 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13017 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 13018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13019 (eval $ac_try) 2>&5 13020 ac_status=$? 13021 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13022 (exit $ac_status); }; }; then 13023 ac_cv_sizeof_long=`cat conftest.val` 13024else 13025 echo "$as_me: program exited with status $ac_status" >&5 13026echo "$as_me: failed program was:" >&5 13027sed 's/^/| /' conftest.$ac_ext >&5 13028 13029( exit $ac_status ) 13030{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 13031See \`config.log' for more details." >&5 13032echo "$as_me: error: cannot compute sizeof (long), 77 13033See \`config.log' for more details." >&2;} 13034 { (exit 1); exit 1; }; } 13035fi 13036rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 13037fi 13038fi 13039rm -f conftest.val 13040else 13041 ac_cv_sizeof_long=0 13042fi 13043fi 13044echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 13045echo "${ECHO_T}$ac_cv_sizeof_long" >&6 13046cat >>confdefs.h <<_ACEOF 13047#define SIZEOF_LONG $ac_cv_sizeof_long 13048_ACEOF 13049 13050 13051 echo "$as_me:$LINENO: checking for short" >&5 13052echo $ECHO_N "checking for short... $ECHO_C" >&6 13053if test "${ac_cv_type_short+set}" = set; then 13054 echo $ECHO_N "(cached) $ECHO_C" >&6 13055else 13056 cat >conftest.$ac_ext <<_ACEOF 13057/* confdefs.h. */ 13058_ACEOF 13059cat confdefs.h >>conftest.$ac_ext 13060cat >>conftest.$ac_ext <<_ACEOF 13061/* end confdefs.h. */ 13062$ac_includes_default 13063int 13064main () 13065{ 13066if ((short *) 0) 13067 return 0; 13068if (sizeof (short)) 13069 return 0; 13070 ; 13071 return 0; 13072} 13073_ACEOF 13074rm -f conftest.$ac_objext 13075if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13076 (eval $ac_compile) 2>conftest.er1 13077 ac_status=$? 13078 grep -v '^ *+' conftest.er1 >conftest.err 13079 rm -f conftest.er1 13080 cat conftest.err >&5 13081 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13082 (exit $ac_status); } && 13083 { ac_try='test -z "$ac_c_werror_flag" 13084 || test ! -s conftest.err' 13085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13086 (eval $ac_try) 2>&5 13087 ac_status=$? 13088 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13089 (exit $ac_status); }; } && 13090 { ac_try='test -s conftest.$ac_objext' 13091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13092 (eval $ac_try) 2>&5 13093 ac_status=$? 13094 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13095 (exit $ac_status); }; }; then 13096 ac_cv_type_short=yes 13097else 13098 echo "$as_me: failed program was:" >&5 13099sed 's/^/| /' conftest.$ac_ext >&5 13100 13101ac_cv_type_short=no 13102fi 13103rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 13104fi 13105echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 13106echo "${ECHO_T}$ac_cv_type_short" >&6 13107 13108echo "$as_me:$LINENO: checking size of short" >&5 13109echo $ECHO_N "checking size of short... $ECHO_C" >&6 13110if test "${ac_cv_sizeof_short+set}" = set; then 13111 echo $ECHO_N "(cached) $ECHO_C" >&6 13112else 13113 if test "$ac_cv_type_short" = yes; then 13114 # The cast to unsigned long works around a bug in the HP C Compiler 13115 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 13116 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 13117 # This bug is HP SR number 8606223364. 13118 if test "$cross_compiling" = yes; then 13119 # Depending upon the size, compute the lo and hi bounds. 13120cat >conftest.$ac_ext <<_ACEOF 13121/* confdefs.h. */ 13122_ACEOF 13123cat confdefs.h >>conftest.$ac_ext 13124cat >>conftest.$ac_ext <<_ACEOF 13125/* end confdefs.h. */ 13126$ac_includes_default 13127int 13128main () 13129{ 13130static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)]; 13131test_array [0] = 0 13132 13133 ; 13134 return 0; 13135} 13136_ACEOF 13137rm -f conftest.$ac_objext 13138if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13139 (eval $ac_compile) 2>conftest.er1 13140 ac_status=$? 13141 grep -v '^ *+' conftest.er1 >conftest.err 13142 rm -f conftest.er1 13143 cat conftest.err >&5 13144 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13145 (exit $ac_status); } && 13146 { ac_try='test -z "$ac_c_werror_flag" 13147 || test ! -s conftest.err' 13148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13149 (eval $ac_try) 2>&5 13150 ac_status=$? 13151 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13152 (exit $ac_status); }; } && 13153 { ac_try='test -s conftest.$ac_objext' 13154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13155 (eval $ac_try) 2>&5 13156 ac_status=$? 13157 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13158 (exit $ac_status); }; }; then 13159 ac_lo=0 ac_mid=0 13160 while :; do 13161 cat >conftest.$ac_ext <<_ACEOF 13162/* confdefs.h. */ 13163_ACEOF 13164cat confdefs.h >>conftest.$ac_ext 13165cat >>conftest.$ac_ext <<_ACEOF 13166/* end confdefs.h. */ 13167$ac_includes_default 13168int 13169main () 13170{ 13171static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; 13172test_array [0] = 0 13173 13174 ; 13175 return 0; 13176} 13177_ACEOF 13178rm -f conftest.$ac_objext 13179if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13180 (eval $ac_compile) 2>conftest.er1 13181 ac_status=$? 13182 grep -v '^ *+' conftest.er1 >conftest.err 13183 rm -f conftest.er1 13184 cat conftest.err >&5 13185 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13186 (exit $ac_status); } && 13187 { ac_try='test -z "$ac_c_werror_flag" 13188 || test ! -s conftest.err' 13189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13190 (eval $ac_try) 2>&5 13191 ac_status=$? 13192 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13193 (exit $ac_status); }; } && 13194 { ac_try='test -s conftest.$ac_objext' 13195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13196 (eval $ac_try) 2>&5 13197 ac_status=$? 13198 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13199 (exit $ac_status); }; }; then 13200 ac_hi=$ac_mid; break 13201else 13202 echo "$as_me: failed program was:" >&5 13203sed 's/^/| /' conftest.$ac_ext >&5 13204 13205ac_lo=`expr $ac_mid + 1` 13206 if test $ac_lo -le $ac_mid; then 13207 ac_lo= ac_hi= 13208 break 13209 fi 13210 ac_mid=`expr 2 '*' $ac_mid + 1` 13211fi 13212rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 13213 done 13214else 13215 echo "$as_me: failed program was:" >&5 13216sed 's/^/| /' conftest.$ac_ext >&5 13217 13218cat >conftest.$ac_ext <<_ACEOF 13219/* confdefs.h. */ 13220_ACEOF 13221cat confdefs.h >>conftest.$ac_ext 13222cat >>conftest.$ac_ext <<_ACEOF 13223/* end confdefs.h. */ 13224$ac_includes_default 13225int 13226main () 13227{ 13228static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)]; 13229test_array [0] = 0 13230 13231 ; 13232 return 0; 13233} 13234_ACEOF 13235rm -f conftest.$ac_objext 13236if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13237 (eval $ac_compile) 2>conftest.er1 13238 ac_status=$? 13239 grep -v '^ *+' conftest.er1 >conftest.err 13240 rm -f conftest.er1 13241 cat conftest.err >&5 13242 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13243 (exit $ac_status); } && 13244 { ac_try='test -z "$ac_c_werror_flag" 13245 || test ! -s conftest.err' 13246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13247 (eval $ac_try) 2>&5 13248 ac_status=$? 13249 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13250 (exit $ac_status); }; } && 13251 { ac_try='test -s conftest.$ac_objext' 13252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13253 (eval $ac_try) 2>&5 13254 ac_status=$? 13255 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13256 (exit $ac_status); }; }; then 13257 ac_hi=-1 ac_mid=-1 13258 while :; do 13259 cat >conftest.$ac_ext <<_ACEOF 13260/* confdefs.h. */ 13261_ACEOF 13262cat confdefs.h >>conftest.$ac_ext 13263cat >>conftest.$ac_ext <<_ACEOF 13264/* end confdefs.h. */ 13265$ac_includes_default 13266int 13267main () 13268{ 13269static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)]; 13270test_array [0] = 0 13271 13272 ; 13273 return 0; 13274} 13275_ACEOF 13276rm -f conftest.$ac_objext 13277if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13278 (eval $ac_compile) 2>conftest.er1 13279 ac_status=$? 13280 grep -v '^ *+' conftest.er1 >conftest.err 13281 rm -f conftest.er1 13282 cat conftest.err >&5 13283 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13284 (exit $ac_status); } && 13285 { ac_try='test -z "$ac_c_werror_flag" 13286 || test ! -s conftest.err' 13287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13288 (eval $ac_try) 2>&5 13289 ac_status=$? 13290 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13291 (exit $ac_status); }; } && 13292 { ac_try='test -s conftest.$ac_objext' 13293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13294 (eval $ac_try) 2>&5 13295 ac_status=$? 13296 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13297 (exit $ac_status); }; }; then 13298 ac_lo=$ac_mid; break 13299else 13300 echo "$as_me: failed program was:" >&5 13301sed 's/^/| /' conftest.$ac_ext >&5 13302 13303ac_hi=`expr '(' $ac_mid ')' - 1` 13304 if test $ac_mid -le $ac_hi; then 13305 ac_lo= ac_hi= 13306 break 13307 fi 13308 ac_mid=`expr 2 '*' $ac_mid` 13309fi 13310rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 13311 done 13312else 13313 echo "$as_me: failed program was:" >&5 13314sed 's/^/| /' conftest.$ac_ext >&5 13315 13316ac_lo= ac_hi= 13317fi 13318rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 13319fi 13320rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 13321# Binary search between lo and hi bounds. 13322while test "x$ac_lo" != "x$ac_hi"; do 13323 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 13324 cat >conftest.$ac_ext <<_ACEOF 13325/* confdefs.h. */ 13326_ACEOF 13327cat confdefs.h >>conftest.$ac_ext 13328cat >>conftest.$ac_ext <<_ACEOF 13329/* end confdefs.h. */ 13330$ac_includes_default 13331int 13332main () 13333{ 13334static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; 13335test_array [0] = 0 13336 13337 ; 13338 return 0; 13339} 13340_ACEOF 13341rm -f conftest.$ac_objext 13342if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13343 (eval $ac_compile) 2>conftest.er1 13344 ac_status=$? 13345 grep -v '^ *+' conftest.er1 >conftest.err 13346 rm -f conftest.er1 13347 cat conftest.err >&5 13348 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13349 (exit $ac_status); } && 13350 { ac_try='test -z "$ac_c_werror_flag" 13351 || test ! -s conftest.err' 13352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13353 (eval $ac_try) 2>&5 13354 ac_status=$? 13355 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13356 (exit $ac_status); }; } && 13357 { ac_try='test -s conftest.$ac_objext' 13358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13359 (eval $ac_try) 2>&5 13360 ac_status=$? 13361 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13362 (exit $ac_status); }; }; then 13363 ac_hi=$ac_mid 13364else 13365 echo "$as_me: failed program was:" >&5 13366sed 's/^/| /' conftest.$ac_ext >&5 13367 13368ac_lo=`expr '(' $ac_mid ')' + 1` 13369fi 13370rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 13371done 13372case $ac_lo in 13373?*) ac_cv_sizeof_short=$ac_lo;; 13374'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 13375See \`config.log' for more details." >&5 13376echo "$as_me: error: cannot compute sizeof (short), 77 13377See \`config.log' for more details." >&2;} 13378 { (exit 1); exit 1; }; } ;; 13379esac 13380else 13381 if test "$cross_compiling" = yes; then 13382 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 13383See \`config.log' for more details." >&5 13384echo "$as_me: error: cannot run test program while cross compiling 13385See \`config.log' for more details." >&2;} 13386 { (exit 1); exit 1; }; } 13387else 13388 cat >conftest.$ac_ext <<_ACEOF 13389/* confdefs.h. */ 13390_ACEOF 13391cat confdefs.h >>conftest.$ac_ext 13392cat >>conftest.$ac_ext <<_ACEOF 13393/* end confdefs.h. */ 13394$ac_includes_default 13395long longval () { return (long) (sizeof (short)); } 13396unsigned long ulongval () { return (long) (sizeof (short)); } 13397#include <stdio.h> 13398#include <stdlib.h> 13399int 13400main () 13401{ 13402 13403 FILE *f = fopen ("conftest.val", "w"); 13404 if (! f) 13405 exit (1); 13406 if (((long) (sizeof (short))) < 0) 13407 { 13408 long i = longval (); 13409 if (i != ((long) (sizeof (short)))) 13410 exit (1); 13411 fprintf (f, "%ld\n", i); 13412 } 13413 else 13414 { 13415 unsigned long i = ulongval (); 13416 if (i != ((long) (sizeof (short)))) 13417 exit (1); 13418 fprintf (f, "%lu\n", i); 13419 } 13420 exit (ferror (f) || fclose (f) != 0); 13421 13422 ; 13423 return 0; 13424} 13425_ACEOF 13426rm -f conftest$ac_exeext 13427if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13428 (eval $ac_link) 2>&5 13429 ac_status=$? 13430 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13431 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 13432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13433 (eval $ac_try) 2>&5 13434 ac_status=$? 13435 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13436 (exit $ac_status); }; }; then 13437 ac_cv_sizeof_short=`cat conftest.val` 13438else 13439 echo "$as_me: program exited with status $ac_status" >&5 13440echo "$as_me: failed program was:" >&5 13441sed 's/^/| /' conftest.$ac_ext >&5 13442 13443( exit $ac_status ) 13444{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 13445See \`config.log' for more details." >&5 13446echo "$as_me: error: cannot compute sizeof (short), 77 13447See \`config.log' for more details." >&2;} 13448 { (exit 1); exit 1; }; } 13449fi 13450rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 13451fi 13452fi 13453rm -f conftest.val 13454else 13455 ac_cv_sizeof_short=0 13456fi 13457fi 13458echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 13459echo "${ECHO_T}$ac_cv_sizeof_short" >&6 13460cat >>confdefs.h <<_ACEOF 13461#define SIZEOF_SHORT $ac_cv_sizeof_short 13462_ACEOF 13463 13464 13465 13466 # ---------------------------------------------------------------------- 13467 # AC_CHECK_LIB for SVR4 libgen, and use it if it defines pathfind. 13468 # ---------------------------------------------------------------------- 13469 13470echo "$as_me:$LINENO: checking for pathfind in -lgen" >&5 13471echo $ECHO_N "checking for pathfind in -lgen... $ECHO_C" >&6 13472if test "${ac_cv_lib_gen_pathfind+set}" = set; then 13473 echo $ECHO_N "(cached) $ECHO_C" >&6 13474else 13475 ac_check_lib_save_LIBS=$LIBS 13476LIBS="-lgen $LIBS" 13477cat >conftest.$ac_ext <<_ACEOF 13478/* confdefs.h. */ 13479_ACEOF 13480cat confdefs.h >>conftest.$ac_ext 13481cat >>conftest.$ac_ext <<_ACEOF 13482/* end confdefs.h. */ 13483 13484/* Override any gcc2 internal prototype to avoid an error. */ 13485#ifdef __cplusplus 13486extern "C" 13487#endif 13488/* We use char because int might match the return type of a gcc2 13489 builtin and then its argument prototype would still apply. */ 13490char pathfind (); 13491int 13492main () 13493{ 13494pathfind (); 13495 ; 13496 return 0; 13497} 13498_ACEOF 13499rm -f conftest.$ac_objext conftest$ac_exeext 13500if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13501 (eval $ac_link) 2>conftest.er1 13502 ac_status=$? 13503 grep -v '^ *+' conftest.er1 >conftest.err 13504 rm -f conftest.er1 13505 cat conftest.err >&5 13506 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13507 (exit $ac_status); } && 13508 { ac_try='test -z "$ac_c_werror_flag" 13509 || test ! -s conftest.err' 13510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13511 (eval $ac_try) 2>&5 13512 ac_status=$? 13513 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13514 (exit $ac_status); }; } && 13515 { ac_try='test -s conftest$ac_exeext' 13516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13517 (eval $ac_try) 2>&5 13518 ac_status=$? 13519 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13520 (exit $ac_status); }; }; then 13521 ac_cv_lib_gen_pathfind=yes 13522else 13523 echo "$as_me: failed program was:" >&5 13524sed 's/^/| /' conftest.$ac_ext >&5 13525 13526ac_cv_lib_gen_pathfind=no 13527fi 13528rm -f conftest.err conftest.$ac_objext \ 13529 conftest$ac_exeext conftest.$ac_ext 13530LIBS=$ac_check_lib_save_LIBS 13531fi 13532echo "$as_me:$LINENO: result: $ac_cv_lib_gen_pathfind" >&5 13533echo "${ECHO_T}$ac_cv_lib_gen_pathfind" >&6 13534if test $ac_cv_lib_gen_pathfind = yes; then 13535 cat >>confdefs.h <<_ACEOF 13536#define HAVE_LIBGEN 1 13537_ACEOF 13538 13539 LIBS="-lgen $LIBS" 13540 13541fi 13542 13543 13544for ac_func in vprintf 13545do 13546as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 13547echo "$as_me:$LINENO: checking for $ac_func" >&5 13548echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 13549if eval "test \"\${$as_ac_var+set}\" = set"; then 13550 echo $ECHO_N "(cached) $ECHO_C" >&6 13551else 13552 cat >conftest.$ac_ext <<_ACEOF 13553/* confdefs.h. */ 13554_ACEOF 13555cat confdefs.h >>conftest.$ac_ext 13556cat >>conftest.$ac_ext <<_ACEOF 13557/* end confdefs.h. */ 13558/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 13559 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 13560#define $ac_func innocuous_$ac_func 13561 13562/* System header to define __stub macros and hopefully few prototypes, 13563 which can conflict with char $ac_func (); below. 13564 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 13565 <limits.h> exists even on freestanding compilers. */ 13566 13567#ifdef __STDC__ 13568# include <limits.h> 13569#else 13570# include <assert.h> 13571#endif 13572 13573#undef $ac_func 13574 13575/* Override any gcc2 internal prototype to avoid an error. */ 13576#ifdef __cplusplus 13577extern "C" 13578{ 13579#endif 13580/* We use char because int might match the return type of a gcc2 13581 builtin and then its argument prototype would still apply. */ 13582char $ac_func (); 13583/* The GNU C library defines this for functions which it implements 13584 to always fail with ENOSYS. Some functions are actually named 13585 something starting with __ and the normal name is an alias. */ 13586#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 13587choke me 13588#else 13589char (*f) () = $ac_func; 13590#endif 13591#ifdef __cplusplus 13592} 13593#endif 13594 13595int 13596main () 13597{ 13598return f != $ac_func; 13599 ; 13600 return 0; 13601} 13602_ACEOF 13603rm -f conftest.$ac_objext conftest$ac_exeext 13604if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13605 (eval $ac_link) 2>conftest.er1 13606 ac_status=$? 13607 grep -v '^ *+' conftest.er1 >conftest.err 13608 rm -f conftest.er1 13609 cat conftest.err >&5 13610 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13611 (exit $ac_status); } && 13612 { ac_try='test -z "$ac_c_werror_flag" 13613 || test ! -s conftest.err' 13614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13615 (eval $ac_try) 2>&5 13616 ac_status=$? 13617 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13618 (exit $ac_status); }; } && 13619 { ac_try='test -s conftest$ac_exeext' 13620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13621 (eval $ac_try) 2>&5 13622 ac_status=$? 13623 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13624 (exit $ac_status); }; }; then 13625 eval "$as_ac_var=yes" 13626else 13627 echo "$as_me: failed program was:" >&5 13628sed 's/^/| /' conftest.$ac_ext >&5 13629 13630eval "$as_ac_var=no" 13631fi 13632rm -f conftest.err conftest.$ac_objext \ 13633 conftest$ac_exeext conftest.$ac_ext 13634fi 13635echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 13636echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 13637if test `eval echo '${'$as_ac_var'}'` = yes; then 13638 cat >>confdefs.h <<_ACEOF 13639#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 13640_ACEOF 13641 13642echo "$as_me:$LINENO: checking for _doprnt" >&5 13643echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6 13644if test "${ac_cv_func__doprnt+set}" = set; then 13645 echo $ECHO_N "(cached) $ECHO_C" >&6 13646else 13647 cat >conftest.$ac_ext <<_ACEOF 13648/* confdefs.h. */ 13649_ACEOF 13650cat confdefs.h >>conftest.$ac_ext 13651cat >>conftest.$ac_ext <<_ACEOF 13652/* end confdefs.h. */ 13653/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt. 13654 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 13655#define _doprnt innocuous__doprnt 13656 13657/* System header to define __stub macros and hopefully few prototypes, 13658 which can conflict with char _doprnt (); below. 13659 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 13660 <limits.h> exists even on freestanding compilers. */ 13661 13662#ifdef __STDC__ 13663# include <limits.h> 13664#else 13665# include <assert.h> 13666#endif 13667 13668#undef _doprnt 13669 13670/* Override any gcc2 internal prototype to avoid an error. */ 13671#ifdef __cplusplus 13672extern "C" 13673{ 13674#endif 13675/* We use char because int might match the return type of a gcc2 13676 builtin and then its argument prototype would still apply. */ 13677char _doprnt (); 13678/* The GNU C library defines this for functions which it implements 13679 to always fail with ENOSYS. Some functions are actually named 13680 something starting with __ and the normal name is an alias. */ 13681#if defined (__stub__doprnt) || defined (__stub____doprnt) 13682choke me 13683#else 13684char (*f) () = _doprnt; 13685#endif 13686#ifdef __cplusplus 13687} 13688#endif 13689 13690int 13691main () 13692{ 13693return f != _doprnt; 13694 ; 13695 return 0; 13696} 13697_ACEOF 13698rm -f conftest.$ac_objext conftest$ac_exeext 13699if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13700 (eval $ac_link) 2>conftest.er1 13701 ac_status=$? 13702 grep -v '^ *+' conftest.er1 >conftest.err 13703 rm -f conftest.er1 13704 cat conftest.err >&5 13705 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13706 (exit $ac_status); } && 13707 { ac_try='test -z "$ac_c_werror_flag" 13708 || test ! -s conftest.err' 13709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13710 (eval $ac_try) 2>&5 13711 ac_status=$? 13712 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13713 (exit $ac_status); }; } && 13714 { ac_try='test -s conftest$ac_exeext' 13715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13716 (eval $ac_try) 2>&5 13717 ac_status=$? 13718 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13719 (exit $ac_status); }; }; then 13720 ac_cv_func__doprnt=yes 13721else 13722 echo "$as_me: failed program was:" >&5 13723sed 's/^/| /' conftest.$ac_ext >&5 13724 13725ac_cv_func__doprnt=no 13726fi 13727rm -f conftest.err conftest.$ac_objext \ 13728 conftest$ac_exeext conftest.$ac_ext 13729fi 13730echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5 13731echo "${ECHO_T}$ac_cv_func__doprnt" >&6 13732if test $ac_cv_func__doprnt = yes; then 13733 13734cat >>confdefs.h <<\_ACEOF 13735#define HAVE_DOPRNT 1 13736_ACEOF 13737 13738fi 13739 13740fi 13741done 13742 13743 13744 13745 13746 13747 13748 13749 13750for ac_func in mmap canonicalize_file_name snprintf strdup strchr strrchr 13751do 13752as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 13753echo "$as_me:$LINENO: checking for $ac_func" >&5 13754echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 13755if eval "test \"\${$as_ac_var+set}\" = set"; then 13756 echo $ECHO_N "(cached) $ECHO_C" >&6 13757else 13758 cat >conftest.$ac_ext <<_ACEOF 13759/* confdefs.h. */ 13760_ACEOF 13761cat confdefs.h >>conftest.$ac_ext 13762cat >>conftest.$ac_ext <<_ACEOF 13763/* end confdefs.h. */ 13764/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 13765 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 13766#define $ac_func innocuous_$ac_func 13767 13768/* System header to define __stub macros and hopefully few prototypes, 13769 which can conflict with char $ac_func (); below. 13770 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 13771 <limits.h> exists even on freestanding compilers. */ 13772 13773#ifdef __STDC__ 13774# include <limits.h> 13775#else 13776# include <assert.h> 13777#endif 13778 13779#undef $ac_func 13780 13781/* Override any gcc2 internal prototype to avoid an error. */ 13782#ifdef __cplusplus 13783extern "C" 13784{ 13785#endif 13786/* We use char because int might match the return type of a gcc2 13787 builtin and then its argument prototype would still apply. */ 13788char $ac_func (); 13789/* The GNU C library defines this for functions which it implements 13790 to always fail with ENOSYS. Some functions are actually named 13791 something starting with __ and the normal name is an alias. */ 13792#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 13793choke me 13794#else 13795char (*f) () = $ac_func; 13796#endif 13797#ifdef __cplusplus 13798} 13799#endif 13800 13801int 13802main () 13803{ 13804return f != $ac_func; 13805 ; 13806 return 0; 13807} 13808_ACEOF 13809rm -f conftest.$ac_objext conftest$ac_exeext 13810if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13811 (eval $ac_link) 2>conftest.er1 13812 ac_status=$? 13813 grep -v '^ *+' conftest.er1 >conftest.err 13814 rm -f conftest.er1 13815 cat conftest.err >&5 13816 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13817 (exit $ac_status); } && 13818 { ac_try='test -z "$ac_c_werror_flag" 13819 || test ! -s conftest.err' 13820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13821 (eval $ac_try) 2>&5 13822 ac_status=$? 13823 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13824 (exit $ac_status); }; } && 13825 { ac_try='test -s conftest$ac_exeext' 13826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13827 (eval $ac_try) 2>&5 13828 ac_status=$? 13829 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13830 (exit $ac_status); }; }; then 13831 eval "$as_ac_var=yes" 13832else 13833 echo "$as_me: failed program was:" >&5 13834sed 's/^/| /' conftest.$ac_ext >&5 13835 13836eval "$as_ac_var=no" 13837fi 13838rm -f conftest.err conftest.$ac_objext \ 13839 conftest$ac_exeext conftest.$ac_ext 13840fi 13841echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 13842echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 13843if test `eval echo '${'$as_ac_var'}'` = yes; then 13844 cat >>confdefs.h <<_ACEOF 13845#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 13846_ACEOF 13847 13848fi 13849done 13850 13851 INVOKE_LIBOPTS_MACROS_FIRST_done=yes 13852fi 13853 fi 13854# end of AC_DEFUN of LIBOPTS_CHECK 13855 13856 13857echo "$as_me:$LINENO: checking if $CC can handle #warning" >&5 13858echo $ECHO_N "checking if $CC can handle #warning... $ECHO_C" >&6 13859cat >conftest.$ac_ext <<_ACEOF 13860/* confdefs.h. */ 13861_ACEOF 13862cat confdefs.h >>conftest.$ac_ext 13863cat >>conftest.$ac_ext <<_ACEOF 13864/* end confdefs.h. */ 13865 13866int 13867main () 13868{ 13869#warning foo 13870 ; 13871 return 0; 13872} 13873_ACEOF 13874rm -f conftest.$ac_objext 13875if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13876 (eval $ac_compile) 2>conftest.er1 13877 ac_status=$? 13878 grep -v '^ *+' conftest.er1 >conftest.err 13879 rm -f conftest.er1 13880 cat conftest.err >&5 13881 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13882 (exit $ac_status); } && 13883 { ac_try='test -z "$ac_c_werror_flag" 13884 || test ! -s conftest.err' 13885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13886 (eval $ac_try) 2>&5 13887 ac_status=$? 13888 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13889 (exit $ac_status); }; } && 13890 { ac_try='test -s conftest.$ac_objext' 13891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13892 (eval $ac_try) 2>&5 13893 ac_status=$? 13894 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13895 (exit $ac_status); }; }; then 13896 ac_cv_cpp_warning=yes 13897else 13898 echo "$as_me: failed program was:" >&5 13899sed 's/^/| /' conftest.$ac_ext >&5 13900 13901ac_cv_cpp_warning=no 13902fi 13903rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 13904echo "$as_me:$LINENO: result: $ac_cv_cpp_warning" >&5 13905echo "${ECHO_T}$ac_cv_cpp_warning" >&6 13906 13907case "$ac_cv_cpp_warning" in 13908 no) 13909 13910cat >>confdefs.h <<\_ACEOF 13911#define NO_OPTION_NAME_WARNINGS 1 13912_ACEOF 13913 13914 echo "$as_me:$LINENO: result: Enabling NO_OPTION_NAME_WARNINGS as #warning does not work" >&5 13915echo "${ECHO_T}Enabling NO_OPTION_NAME_WARNINGS as #warning does not work" >&6 13916 ;; 13917esac 13918 13919echo "$as_me:$LINENO: checking for bin subdirectory" >&5 13920echo $ECHO_N "checking for bin subdirectory... $ECHO_C" >&6 13921 13922# Check whether --with-binsubdir or --without-binsubdir was given. 13923if test "${with_binsubdir+set}" = set; then 13924 withval="$with_binsubdir" 13925 use_binsubdir="$withval" 13926else 13927 use_binsubdir="bin" 13928fi; 13929 13930case "$use_binsubdir" in 13931 bin) 13932 ;; 13933 sbin) 13934 ;; 13935 *) 13936 { { echo "$as_me:$LINENO: error: <$use_binsubdir> is illegal - must be \"bin\" or \"sbin\"" >&5 13937echo "$as_me: error: <$use_binsubdir> is illegal - must be \"bin\" or \"sbin\"" >&2;} 13938 { (exit 1); exit 1; }; } 13939 ;; 13940esac 13941echo "$as_me:$LINENO: result: $use_binsubdir" >&5 13942echo "${ECHO_T}$use_binsubdir" >&6 13943BINSUBDIR=$use_binsubdir 13944 13945 13946echo "$as_me:$LINENO: checking if we want to use arlib" >&5 13947echo $ECHO_N "checking if we want to use arlib... $ECHO_C" >&6 13948 13949# Check whether --with-arlib or --without-arlib was given. 13950if test "${with_arlib+set}" = set; then 13951 withval="$with_arlib" 13952 ans=$withval 13953else 13954 ans=no 13955fi; 13956echo "$as_me:$LINENO: result: $ans" >&5 13957echo "${ECHO_T}$ans" >&6 13958 13959if test -d $srcdir/arlib 13960then 13961 case "$ans" in 13962 yes) 13963 ARLIB_DIR=arlib 13964 13965 13966subdirs="$subdirs arlib" 13967 13968 ;; 13969 esac 13970fi 13971 13972 13973 13974# Check whether --with-rpath or --without-rpath was given. 13975if test "${with_rpath+set}" = set; then 13976 withval="$with_rpath" 13977 ans=$withval 13978else 13979 ans=x 13980fi; 13981case "$ans" in 13982 no) 13983 need_dash_r= 13984 ;; 13985 yes) 13986 need_dash_r=1 13987 ;; 13988esac 13989# HMS: Why isn't this $build? 13990# Well, that depends on if we need this for the build toolchain or 13991# for info in the host executable... 13992# I still have no idea which way this should go, but nobody has complained. 13993case "$host" in 13994 *-*-netbsd*) 13995 case "$need_dash_r" in 13996 no) ;; 13997 *) need_dash_r=1 13998 ;; 13999 esac 14000 ;; 14001 *-*-solaris*) 14002 case "$need_dash_r" in 14003 no) ;; 14004 *) need_dash_r=1 14005 ;; 14006 esac 14007 ;; 14008esac 14009 14010echo "$as_me:$LINENO: checking if we should use /dev/clockctl" >&5 14011echo $ECHO_N "checking if we should use /dev/clockctl... $ECHO_C" >&6 14012if test "${ac_clockctl+set}" = set; then 14013 echo $ECHO_N "(cached) $ECHO_C" >&6 14014else 14015 # Check whether --enable-clockctl or --disable-clockctl was given. 14016if test "${enable_clockctl+set}" = set; then 14017 enableval="$enable_clockctl" 14018 ans=$enableval 14019else 14020 case "$host" in 14021 *-*-netbsd*) 14022 ans=yes 14023 ;; 14024 *) ans=no 14025 ;; 14026 esac 14027 14028fi; 14029ac_clockctl=$ans 14030fi 14031echo "$as_me:$LINENO: result: $ac_clockctl" >&5 14032echo "${ECHO_T}$ac_clockctl" >&6 14033# End of AC_CACHE_CHECK for clockctl 14034 14035for ac_header in sys/clockctl.h 14036do 14037as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 14038if eval "test \"\${$as_ac_Header+set}\" = set"; then 14039 echo "$as_me:$LINENO: checking for $ac_header" >&5 14040echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 14041if eval "test \"\${$as_ac_Header+set}\" = set"; then 14042 echo $ECHO_N "(cached) $ECHO_C" >&6 14043fi 14044echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 14045echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 14046else 14047 # Is the header compilable? 14048echo "$as_me:$LINENO: checking $ac_header usability" >&5 14049echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 14050cat >conftest.$ac_ext <<_ACEOF 14051/* confdefs.h. */ 14052_ACEOF 14053cat confdefs.h >>conftest.$ac_ext 14054cat >>conftest.$ac_ext <<_ACEOF 14055/* end confdefs.h. */ 14056$ac_includes_default 14057#include <$ac_header> 14058_ACEOF 14059rm -f conftest.$ac_objext 14060if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 14061 (eval $ac_compile) 2>conftest.er1 14062 ac_status=$? 14063 grep -v '^ *+' conftest.er1 >conftest.err 14064 rm -f conftest.er1 14065 cat conftest.err >&5 14066 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14067 (exit $ac_status); } && 14068 { ac_try='test -z "$ac_c_werror_flag" 14069 || test ! -s conftest.err' 14070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14071 (eval $ac_try) 2>&5 14072 ac_status=$? 14073 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14074 (exit $ac_status); }; } && 14075 { ac_try='test -s conftest.$ac_objext' 14076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14077 (eval $ac_try) 2>&5 14078 ac_status=$? 14079 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14080 (exit $ac_status); }; }; then 14081 ac_header_compiler=yes 14082else 14083 echo "$as_me: failed program was:" >&5 14084sed 's/^/| /' conftest.$ac_ext >&5 14085 14086ac_header_compiler=no 14087fi 14088rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 14089echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 14090echo "${ECHO_T}$ac_header_compiler" >&6 14091 14092# Is the header present? 14093echo "$as_me:$LINENO: checking $ac_header presence" >&5 14094echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 14095cat >conftest.$ac_ext <<_ACEOF 14096/* confdefs.h. */ 14097_ACEOF 14098cat confdefs.h >>conftest.$ac_ext 14099cat >>conftest.$ac_ext <<_ACEOF 14100/* end confdefs.h. */ 14101#include <$ac_header> 14102_ACEOF 14103if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 14104 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 14105 ac_status=$? 14106 grep -v '^ *+' conftest.er1 >conftest.err 14107 rm -f conftest.er1 14108 cat conftest.err >&5 14109 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14110 (exit $ac_status); } >/dev/null; then 14111 if test -s conftest.err; then 14112 ac_cpp_err=$ac_c_preproc_warn_flag 14113 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 14114 else 14115 ac_cpp_err= 14116 fi 14117else 14118 ac_cpp_err=yes 14119fi 14120if test -z "$ac_cpp_err"; then 14121 ac_header_preproc=yes 14122else 14123 echo "$as_me: failed program was:" >&5 14124sed 's/^/| /' conftest.$ac_ext >&5 14125 14126 ac_header_preproc=no 14127fi 14128rm -f conftest.err conftest.$ac_ext 14129echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 14130echo "${ECHO_T}$ac_header_preproc" >&6 14131 14132# So? What about this header? 14133case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 14134 yes:no: ) 14135 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 14136echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 14137 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 14138echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 14139 ac_header_preproc=yes 14140 ;; 14141 no:yes:* ) 14142 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 14143echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 14144 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 14145echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 14146 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 14147echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 14148 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 14149echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 14150 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 14151echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 14152 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 14153echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 14154 ( 14155 cat <<\_ASBOX 14156## ------------------------------ ## 14157## Report this to the ntp lists. ## 14158## ------------------------------ ## 14159_ASBOX 14160 ) | 14161 sed "s/^/$as_me: WARNING: /" >&2 14162 ;; 14163esac 14164echo "$as_me:$LINENO: checking for $ac_header" >&5 14165echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 14166if eval "test \"\${$as_ac_Header+set}\" = set"; then 14167 echo $ECHO_N "(cached) $ECHO_C" >&6 14168else 14169 eval "$as_ac_Header=\$ac_header_preproc" 14170fi 14171echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 14172echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 14173 14174fi 14175if test `eval echo '${'$as_ac_Header'}'` = yes; then 14176 cat >>confdefs.h <<_ACEOF 14177#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 14178_ACEOF 14179 14180fi 14181 14182done 14183 14184case "$ac_clockctl$ac_cv_header_sys_clockctl_h" in 14185 yesyes) 14186 14187cat >>confdefs.h <<\_ACEOF 14188#define HAVE_DROPROOT 14189_ACEOF 14190 14191 ;; 14192esac 14193 14194echo "$as_me:$LINENO: checking if we have linux capabilities (libcap)" >&5 14195echo $ECHO_N "checking if we have linux capabilities (libcap)... $ECHO_C" >&6 14196if test "${ac_linuxcaps+set}" = set; then 14197 echo $ECHO_N "(cached) $ECHO_C" >&6 14198else 14199 # Check whether --enable-linuxcaps or --disable-linuxcaps was given. 14200if test "${enable_linuxcaps+set}" = set; then 14201 enableval="$enable_linuxcaps" 14202 ans=$enableval 14203else 14204 ans=no 14205fi; 14206ac_linuxcaps=$ans 14207fi 14208echo "$as_me:$LINENO: result: $ac_linuxcaps" >&5 14209echo "${ECHO_T}$ac_linuxcaps" >&6 14210# End of AC_CACHE_CHECK for linuxcaps 14211 14212for ac_header in sys/capability.h 14213do 14214as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 14215if eval "test \"\${$as_ac_Header+set}\" = set"; then 14216 echo "$as_me:$LINENO: checking for $ac_header" >&5 14217echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 14218if eval "test \"\${$as_ac_Header+set}\" = set"; then 14219 echo $ECHO_N "(cached) $ECHO_C" >&6 14220fi 14221echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 14222echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 14223else 14224 # Is the header compilable? 14225echo "$as_me:$LINENO: checking $ac_header usability" >&5 14226echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 14227cat >conftest.$ac_ext <<_ACEOF 14228/* confdefs.h. */ 14229_ACEOF 14230cat confdefs.h >>conftest.$ac_ext 14231cat >>conftest.$ac_ext <<_ACEOF 14232/* end confdefs.h. */ 14233$ac_includes_default 14234#include <$ac_header> 14235_ACEOF 14236rm -f conftest.$ac_objext 14237if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 14238 (eval $ac_compile) 2>conftest.er1 14239 ac_status=$? 14240 grep -v '^ *+' conftest.er1 >conftest.err 14241 rm -f conftest.er1 14242 cat conftest.err >&5 14243 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14244 (exit $ac_status); } && 14245 { ac_try='test -z "$ac_c_werror_flag" 14246 || test ! -s conftest.err' 14247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14248 (eval $ac_try) 2>&5 14249 ac_status=$? 14250 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14251 (exit $ac_status); }; } && 14252 { ac_try='test -s conftest.$ac_objext' 14253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14254 (eval $ac_try) 2>&5 14255 ac_status=$? 14256 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14257 (exit $ac_status); }; }; then 14258 ac_header_compiler=yes 14259else 14260 echo "$as_me: failed program was:" >&5 14261sed 's/^/| /' conftest.$ac_ext >&5 14262 14263ac_header_compiler=no 14264fi 14265rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 14266echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 14267echo "${ECHO_T}$ac_header_compiler" >&6 14268 14269# Is the header present? 14270echo "$as_me:$LINENO: checking $ac_header presence" >&5 14271echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 14272cat >conftest.$ac_ext <<_ACEOF 14273/* confdefs.h. */ 14274_ACEOF 14275cat confdefs.h >>conftest.$ac_ext 14276cat >>conftest.$ac_ext <<_ACEOF 14277/* end confdefs.h. */ 14278#include <$ac_header> 14279_ACEOF 14280if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 14281 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 14282 ac_status=$? 14283 grep -v '^ *+' conftest.er1 >conftest.err 14284 rm -f conftest.er1 14285 cat conftest.err >&5 14286 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14287 (exit $ac_status); } >/dev/null; then 14288 if test -s conftest.err; then 14289 ac_cpp_err=$ac_c_preproc_warn_flag 14290 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 14291 else 14292 ac_cpp_err= 14293 fi 14294else 14295 ac_cpp_err=yes 14296fi 14297if test -z "$ac_cpp_err"; then 14298 ac_header_preproc=yes 14299else 14300 echo "$as_me: failed program was:" >&5 14301sed 's/^/| /' conftest.$ac_ext >&5 14302 14303 ac_header_preproc=no 14304fi 14305rm -f conftest.err conftest.$ac_ext 14306echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 14307echo "${ECHO_T}$ac_header_preproc" >&6 14308 14309# So? What about this header? 14310case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 14311 yes:no: ) 14312 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 14313echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 14314 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 14315echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 14316 ac_header_preproc=yes 14317 ;; 14318 no:yes:* ) 14319 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 14320echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 14321 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 14322echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 14323 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 14324echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 14325 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 14326echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 14327 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 14328echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 14329 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 14330echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 14331 ( 14332 cat <<\_ASBOX 14333## ------------------------------ ## 14334## Report this to the ntp lists. ## 14335## ------------------------------ ## 14336_ASBOX 14337 ) | 14338 sed "s/^/$as_me: WARNING: /" >&2 14339 ;; 14340esac 14341echo "$as_me:$LINENO: checking for $ac_header" >&5 14342echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 14343if eval "test \"\${$as_ac_Header+set}\" = set"; then 14344 echo $ECHO_N "(cached) $ECHO_C" >&6 14345else 14346 eval "$as_ac_Header=\$ac_header_preproc" 14347fi 14348echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 14349echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 14350 14351fi 14352if test `eval echo '${'$as_ac_Header'}'` = yes; then 14353 cat >>confdefs.h <<_ACEOF 14354#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 14355_ACEOF 14356 14357fi 14358 14359done 14360 14361 14362for ac_header in sys/prctl.h 14363do 14364as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 14365if eval "test \"\${$as_ac_Header+set}\" = set"; then 14366 echo "$as_me:$LINENO: checking for $ac_header" >&5 14367echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 14368if eval "test \"\${$as_ac_Header+set}\" = set"; then 14369 echo $ECHO_N "(cached) $ECHO_C" >&6 14370fi 14371echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 14372echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 14373else 14374 # Is the header compilable? 14375echo "$as_me:$LINENO: checking $ac_header usability" >&5 14376echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 14377cat >conftest.$ac_ext <<_ACEOF 14378/* confdefs.h. */ 14379_ACEOF 14380cat confdefs.h >>conftest.$ac_ext 14381cat >>conftest.$ac_ext <<_ACEOF 14382/* end confdefs.h. */ 14383$ac_includes_default 14384#include <$ac_header> 14385_ACEOF 14386rm -f conftest.$ac_objext 14387if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 14388 (eval $ac_compile) 2>conftest.er1 14389 ac_status=$? 14390 grep -v '^ *+' conftest.er1 >conftest.err 14391 rm -f conftest.er1 14392 cat conftest.err >&5 14393 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14394 (exit $ac_status); } && 14395 { ac_try='test -z "$ac_c_werror_flag" 14396 || test ! -s conftest.err' 14397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14398 (eval $ac_try) 2>&5 14399 ac_status=$? 14400 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14401 (exit $ac_status); }; } && 14402 { ac_try='test -s conftest.$ac_objext' 14403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14404 (eval $ac_try) 2>&5 14405 ac_status=$? 14406 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14407 (exit $ac_status); }; }; then 14408 ac_header_compiler=yes 14409else 14410 echo "$as_me: failed program was:" >&5 14411sed 's/^/| /' conftest.$ac_ext >&5 14412 14413ac_header_compiler=no 14414fi 14415rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 14416echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 14417echo "${ECHO_T}$ac_header_compiler" >&6 14418 14419# Is the header present? 14420echo "$as_me:$LINENO: checking $ac_header presence" >&5 14421echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 14422cat >conftest.$ac_ext <<_ACEOF 14423/* confdefs.h. */ 14424_ACEOF 14425cat confdefs.h >>conftest.$ac_ext 14426cat >>conftest.$ac_ext <<_ACEOF 14427/* end confdefs.h. */ 14428#include <$ac_header> 14429_ACEOF 14430if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 14431 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 14432 ac_status=$? 14433 grep -v '^ *+' conftest.er1 >conftest.err 14434 rm -f conftest.er1 14435 cat conftest.err >&5 14436 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14437 (exit $ac_status); } >/dev/null; then 14438 if test -s conftest.err; then 14439 ac_cpp_err=$ac_c_preproc_warn_flag 14440 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 14441 else 14442 ac_cpp_err= 14443 fi 14444else 14445 ac_cpp_err=yes 14446fi 14447if test -z "$ac_cpp_err"; then 14448 ac_header_preproc=yes 14449else 14450 echo "$as_me: failed program was:" >&5 14451sed 's/^/| /' conftest.$ac_ext >&5 14452 14453 ac_header_preproc=no 14454fi 14455rm -f conftest.err conftest.$ac_ext 14456echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 14457echo "${ECHO_T}$ac_header_preproc" >&6 14458 14459# So? What about this header? 14460case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 14461 yes:no: ) 14462 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 14463echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 14464 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 14465echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 14466 ac_header_preproc=yes 14467 ;; 14468 no:yes:* ) 14469 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 14470echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 14471 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 14472echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 14473 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 14474echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 14475 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 14476echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 14477 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 14478echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 14479 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 14480echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 14481 ( 14482 cat <<\_ASBOX 14483## ------------------------------ ## 14484## Report this to the ntp lists. ## 14485## ------------------------------ ## 14486_ASBOX 14487 ) | 14488 sed "s/^/$as_me: WARNING: /" >&2 14489 ;; 14490esac 14491echo "$as_me:$LINENO: checking for $ac_header" >&5 14492echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 14493if eval "test \"\${$as_ac_Header+set}\" = set"; then 14494 echo $ECHO_N "(cached) $ECHO_C" >&6 14495else 14496 eval "$as_ac_Header=\$ac_header_preproc" 14497fi 14498echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 14499echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 14500 14501fi 14502if test `eval echo '${'$as_ac_Header'}'` = yes; then 14503 cat >>confdefs.h <<_ACEOF 14504#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 14505_ACEOF 14506 14507fi 14508 14509done 14510 14511case "$ac_linuxcaps$ac_cv_header_sys_capability_h$ac_cv_header_sys_prctl_h" in 14512 yesyesyes) 14513 14514cat >>confdefs.h <<\_ACEOF 14515#define HAVE_LINUX_CAPABILITIES 14516_ACEOF 14517 14518 14519cat >>confdefs.h <<\_ACEOF 14520#define HAVE_DROPROOT 14521_ACEOF 14522 14523 LIBS="$LIBS -lcap" 14524 ;; 14525esac 14526 14527case "$build" in 14528 $host) 14529 ;; 14530 *) case "$host" in 14531 *-*-vxworks*) 14532 # Quick and dirty sanity check 14533 case "$VX_KERNEL" in 14534 '') { { echo "$as_me:$LINENO: error: Please follow the directions in html/build/hints/vxworks.html!" >&5 14535echo "$as_me: error: Please follow the directions in html/build/hints/vxworks.html!" >&2;} 14536 { (exit 1); exit 1; }; } 14537 ;; 14538 esac 14539 CFLAGS="$CFLAGS -DSYS_VXWORKS" 14540 ;; 14541 esac 14542 ;; 14543esac 14544 14545for ac_prog in gawk mawk nawk awk 14546do 14547 # Extract the first word of "$ac_prog", so it can be a program name with args. 14548set dummy $ac_prog; ac_word=$2 14549echo "$as_me:$LINENO: checking for $ac_word" >&5 14550echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 14551if test "${ac_cv_prog_AWK+set}" = set; then 14552 echo $ECHO_N "(cached) $ECHO_C" >&6 14553else 14554 if test -n "$AWK"; then 14555 ac_cv_prog_AWK="$AWK" # Let the user override the test. 14556else 14557as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14558for as_dir in $PATH 14559do 14560 IFS=$as_save_IFS 14561 test -z "$as_dir" && as_dir=. 14562 for ac_exec_ext in '' $ac_executable_extensions; do 14563 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14564 ac_cv_prog_AWK="$ac_prog" 14565 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 14566 break 2 14567 fi 14568done 14569done 14570 14571fi 14572fi 14573AWK=$ac_cv_prog_AWK 14574if test -n "$AWK"; then 14575 echo "$as_me:$LINENO: result: $AWK" >&5 14576echo "${ECHO_T}$AWK" >&6 14577else 14578 echo "$as_me:$LINENO: result: no" >&5 14579echo "${ECHO_T}no" >&6 14580fi 14581 14582 test -n "$AWK" && break 14583done 14584 14585echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 14586echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 14587set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` 14588if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then 14589 echo $ECHO_N "(cached) $ECHO_C" >&6 14590else 14591 cat >conftest.make <<\_ACEOF 14592all: 14593 @echo 'ac_maketemp="$(MAKE)"' 14594_ACEOF 14595# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 14596eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` 14597if test -n "$ac_maketemp"; then 14598 eval ac_cv_prog_make_${ac_make}_set=yes 14599else 14600 eval ac_cv_prog_make_${ac_make}_set=no 14601fi 14602rm -f conftest.make 14603fi 14604if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 14605 echo "$as_me:$LINENO: result: yes" >&5 14606echo "${ECHO_T}yes" >&6 14607 SET_MAKE= 14608else 14609 echo "$as_me:$LINENO: result: no" >&5 14610echo "${ECHO_T}no" >&6 14611 SET_MAKE="MAKE=${MAKE-make}" 14612fi 14613 14614 14615rm -f conftest* 14616 14617case "$GCC" in 14618 yes) 14619 CFLAGS="$CFLAGS -Wall" 14620 # CFLAGS="$CFLAGS -Wcast-align" 14621 CFLAGS="$CFLAGS -Wcast-qual" 14622 # CFLAGS="$CFLAGS -Wconversion" 14623 # CFLAGS="$CFLAGS -Werror" 14624 # CFLAGS="$CFLAGS -Wextra" 14625 # CFLAGS="$CFLAGS -Wfloat-equal" 14626 CFLAGS="$CFLAGS -Wmissing-prototypes" 14627 CFLAGS="$CFLAGS -Wpointer-arith" 14628 CFLAGS="$CFLAGS -Wshadow" 14629 CFLAGS="$CFLAGS -Wstrict-prototypes" 14630 # CFLAGS="$CFLAGS -Wtraditional" 14631 # CFLAGS="$CFLAGS -Wwrite-strings" 14632 14633 ;; 14634esac 14635 14636case "$host" in 14637 *-next-nextstep3) 14638 CFLAGS="$CFLAGS -posix" 14639 ;; 14640esac 14641 14642ac_busted_vpath_in_make=no 14643 14644case "$build" in 14645 *-*-irix6.1*) # 64 bit only 14646 # busted vpath? 14647 ;; 14648 *-*-irix6*) # 6.2 (and later?) 14649 ac_busted_vpath_in_make=yes 14650 ;; 14651 *-*-solaris2.5.1) 14652 ac_busted_vpath_in_make=yes 14653 ;; 14654 *-*-unicosmp*) 14655 ac_busted_vpath_in_make=yes 14656 ;; 14657esac 14658 14659case "$ac_busted_vpath_in_make$srcdir" in 14660 no*) ;; 14661 yes.) ;; 14662 *) case "`${MAKE-make} -v -f /dev/null 2>/dev/null | sed -e 's/GNU Make version \(1-9.]*\).*/\1/' -e q`" in 14663 '') 14664 { { echo "$as_me:$LINENO: error: building outside of the main directory requires GNU make" >&5 14665echo "$as_me: error: building outside of the main directory requires GNU make" >&2;} 14666 { (exit 1); exit 1; }; } 14667 ;; 14668 *) ;; 14669 esac 14670 ;; 14671esac 14672 14673 14674# HMS: From bunnylou/cowbird 14675case "$host" in 14676 alpha-dec-osf4.0) 14677 # Check whether --enable-shared or --disable-shared was given. 14678if test "${enable_shared+set}" = set; then 14679 enableval="$enable_shared" 14680 p=${PACKAGE-default} 14681 case $enableval in 14682 yes) enable_shared=yes ;; 14683 no) enable_shared=no ;; 14684 *) 14685 enable_shared=no 14686 # Look at the argument we got. We use all the common list separators. 14687 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 14688 for pkg in $enableval; do 14689 IFS="$lt_save_ifs" 14690 if test "X$pkg" = "X$p"; then 14691 enable_shared=yes 14692 fi 14693 done 14694 IFS="$lt_save_ifs" 14695 ;; 14696 esac 14697else 14698 enable_shared=no 14699fi; 14700 14701 14702 ;; 14703 *) # So far, the only shared library we might use is libopts. 14704 # It's a small library - we might as well use a static version of it. 14705 # Check whether --enable-shared or --disable-shared was given. 14706if test "${enable_shared+set}" = set; then 14707 enableval="$enable_shared" 14708 p=${PACKAGE-default} 14709 case $enableval in 14710 yes) enable_shared=yes ;; 14711 no) enable_shared=no ;; 14712 *) 14713 enable_shared=no 14714 # Look at the argument we got. We use all the common list separators. 14715 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 14716 for pkg in $enableval; do 14717 IFS="$lt_save_ifs" 14718 if test "X$pkg" = "X$p"; then 14719 enable_shared=yes 14720 fi 14721 done 14722 IFS="$lt_save_ifs" 14723 ;; 14724 esac 14725else 14726 enable_shared=no 14727fi; 14728 14729 14730 ;; 14731esac 14732 14733# Check whether --enable-static or --disable-static was given. 14734if test "${enable_static+set}" = set; then 14735 enableval="$enable_static" 14736 p=${PACKAGE-default} 14737 case $enableval in 14738 yes) enable_static=yes ;; 14739 no) enable_static=no ;; 14740 *) 14741 enable_static=no 14742 # Look at the argument we got. We use all the common list separators. 14743 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 14744 for pkg in $enableval; do 14745 IFS="$lt_save_ifs" 14746 if test "X$pkg" = "X$p"; then 14747 enable_static=yes 14748 fi 14749 done 14750 IFS="$lt_save_ifs" 14751 ;; 14752 esac 14753else 14754 enable_static=yes 14755fi; 14756 14757# Check whether --enable-fast-install or --disable-fast-install was given. 14758if test "${enable_fast_install+set}" = set; then 14759 enableval="$enable_fast_install" 14760 p=${PACKAGE-default} 14761 case $enableval in 14762 yes) enable_fast_install=yes ;; 14763 no) enable_fast_install=no ;; 14764 *) 14765 enable_fast_install=no 14766 # Look at the argument we got. We use all the common list separators. 14767 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 14768 for pkg in $enableval; do 14769 IFS="$lt_save_ifs" 14770 if test "X$pkg" = "X$p"; then 14771 enable_fast_install=yes 14772 fi 14773 done 14774 IFS="$lt_save_ifs" 14775 ;; 14776 esac 14777else 14778 enable_fast_install=yes 14779fi; 14780 14781echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 14782echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6 14783if test "${lt_cv_path_SED+set}" = set; then 14784 echo $ECHO_N "(cached) $ECHO_C" >&6 14785else 14786 # Loop through the user's path and test for sed and gsed. 14787# Then use that list of sed's as ones to test for truncation. 14788as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14789for as_dir in $PATH 14790do 14791 IFS=$as_save_IFS 14792 test -z "$as_dir" && as_dir=. 14793 for lt_ac_prog in sed gsed; do 14794 for ac_exec_ext in '' $ac_executable_extensions; do 14795 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then 14796 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 14797 fi 14798 done 14799 done 14800done 14801lt_ac_max=0 14802lt_ac_count=0 14803# Add /usr/xpg4/bin/sed as it is typically found on Solaris 14804# along with /bin/sed that truncates output. 14805for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 14806 test ! -f $lt_ac_sed && continue 14807 cat /dev/null > conftest.in 14808 lt_ac_count=0 14809 echo $ECHO_N "0123456789$ECHO_C" >conftest.in 14810 # Check for GNU sed and select it if it is found. 14811 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 14812 lt_cv_path_SED=$lt_ac_sed 14813 break 14814 fi 14815 while true; do 14816 cat conftest.in conftest.in >conftest.tmp 14817 mv conftest.tmp conftest.in 14818 cp conftest.in conftest.nl 14819 echo >>conftest.nl 14820 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 14821 cmp -s conftest.out conftest.nl || break 14822 # 10000 chars as input seems more than enough 14823 test $lt_ac_count -gt 10 && break 14824 lt_ac_count=`expr $lt_ac_count + 1` 14825 if test $lt_ac_count -gt $lt_ac_max; then 14826 lt_ac_max=$lt_ac_count 14827 lt_cv_path_SED=$lt_ac_sed 14828 fi 14829 done 14830done 14831 14832fi 14833 14834SED=$lt_cv_path_SED 14835echo "$as_me:$LINENO: result: $SED" >&5 14836echo "${ECHO_T}$SED" >&6 14837 14838 14839# Check whether --with-gnu-ld or --without-gnu-ld was given. 14840if test "${with_gnu_ld+set}" = set; then 14841 withval="$with_gnu_ld" 14842 test "$withval" = no || with_gnu_ld=yes 14843else 14844 with_gnu_ld=no 14845fi; 14846ac_prog=ld 14847if test "$GCC" = yes; then 14848 # Check if gcc -print-prog-name=ld gives a path. 14849 echo "$as_me:$LINENO: checking for ld used by $CC" >&5 14850echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 14851 case $host in 14852 *-*-mingw*) 14853 # gcc leaves a trailing carriage return which upsets mingw 14854 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 14855 *) 14856 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 14857 esac 14858 case $ac_prog in 14859 # Accept absolute paths. 14860 [\\/]* | ?:[\\/]*) 14861 re_direlt='/[^/][^/]*/\.\./' 14862 # Canonicalize the pathname of ld 14863 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 14864 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 14865 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 14866 done 14867 test -z "$LD" && LD="$ac_prog" 14868 ;; 14869 "") 14870 # If it fails, then pretend we aren't using GCC. 14871 ac_prog=ld 14872 ;; 14873 *) 14874 # If it is relative, then search for the first ld in PATH. 14875 with_gnu_ld=unknown 14876 ;; 14877 esac 14878elif test "$with_gnu_ld" = yes; then 14879 echo "$as_me:$LINENO: checking for GNU ld" >&5 14880echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 14881else 14882 echo "$as_me:$LINENO: checking for non-GNU ld" >&5 14883echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 14884fi 14885if test "${lt_cv_path_LD+set}" = set; then 14886 echo $ECHO_N "(cached) $ECHO_C" >&6 14887else 14888 if test -z "$LD"; then 14889 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 14890 for ac_dir in $PATH; do 14891 IFS="$lt_save_ifs" 14892 test -z "$ac_dir" && ac_dir=. 14893 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 14894 lt_cv_path_LD="$ac_dir/$ac_prog" 14895 # Check to see if the program is GNU ld. I'd rather use --version, 14896 # but apparently some variants of GNU ld only accept -v. 14897 # Break only if it was the GNU/non-GNU ld that we prefer. 14898 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 14899 *GNU* | *'with BFD'*) 14900 test "$with_gnu_ld" != no && break 14901 ;; 14902 *) 14903 test "$with_gnu_ld" != yes && break 14904 ;; 14905 esac 14906 fi 14907 done 14908 IFS="$lt_save_ifs" 14909else 14910 lt_cv_path_LD="$LD" # Let the user override the test with a path. 14911fi 14912fi 14913 14914LD="$lt_cv_path_LD" 14915if test -n "$LD"; then 14916 echo "$as_me:$LINENO: result: $LD" >&5 14917echo "${ECHO_T}$LD" >&6 14918else 14919 echo "$as_me:$LINENO: result: no" >&5 14920echo "${ECHO_T}no" >&6 14921fi 14922test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 14923echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 14924 { (exit 1); exit 1; }; } 14925echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 14926echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 14927if test "${lt_cv_prog_gnu_ld+set}" = set; then 14928 echo $ECHO_N "(cached) $ECHO_C" >&6 14929else 14930 # I'd rather use --version here, but apparently some GNU lds only accept -v. 14931case `$LD -v 2>&1 </dev/null` in 14932*GNU* | *'with BFD'*) 14933 lt_cv_prog_gnu_ld=yes 14934 ;; 14935*) 14936 lt_cv_prog_gnu_ld=no 14937 ;; 14938esac 14939fi 14940echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 14941echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 14942with_gnu_ld=$lt_cv_prog_gnu_ld 14943 14944 14945echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 14946echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 14947if test "${lt_cv_ld_reload_flag+set}" = set; then 14948 echo $ECHO_N "(cached) $ECHO_C" >&6 14949else 14950 lt_cv_ld_reload_flag='-r' 14951fi 14952echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 14953echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 14954reload_flag=$lt_cv_ld_reload_flag 14955case $reload_flag in 14956"" | " "*) ;; 14957*) reload_flag=" $reload_flag" ;; 14958esac 14959reload_cmds='$LD$reload_flag -o $output$reload_objs' 14960case $host_os in 14961 darwin*) 14962 if test "$GCC" = yes; then 14963 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs' 14964 else 14965 reload_cmds='$LD$reload_flag -o $output$reload_objs' 14966 fi 14967 ;; 14968esac 14969 14970echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 14971echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 14972if test "${lt_cv_path_NM+set}" = set; then 14973 echo $ECHO_N "(cached) $ECHO_C" >&6 14974else 14975 if test -n "$NM"; then 14976 # Let the user override the test. 14977 lt_cv_path_NM="$NM" 14978else 14979 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 14980 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do 14981 IFS="$lt_save_ifs" 14982 test -z "$ac_dir" && ac_dir=. 14983 tmp_nm="$ac_dir/${ac_tool_prefix}nm" 14984 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 14985 # Check to see if the nm accepts a BSD-compat flag. 14986 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 14987 # nm: unknown option "B" ignored 14988 # Tru64's nm complains that /dev/null is an invalid object file 14989 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 14990 */dev/null* | *'Invalid file or object type'*) 14991 lt_cv_path_NM="$tmp_nm -B" 14992 break 14993 ;; 14994 *) 14995 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 14996 */dev/null*) 14997 lt_cv_path_NM="$tmp_nm -p" 14998 break 14999 ;; 15000 *) 15001 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 15002 continue # so that we can try to find one that supports BSD flags 15003 ;; 15004 esac 15005 esac 15006 fi 15007 done 15008 IFS="$lt_save_ifs" 15009 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 15010fi 15011fi 15012echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 15013echo "${ECHO_T}$lt_cv_path_NM" >&6 15014NM="$lt_cv_path_NM" 15015 15016echo "$as_me:$LINENO: checking whether ln -s works" >&5 15017echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 15018LN_S=$as_ln_s 15019if test "$LN_S" = "ln -s"; then 15020 echo "$as_me:$LINENO: result: yes" >&5 15021echo "${ECHO_T}yes" >&6 15022else 15023 echo "$as_me:$LINENO: result: no, using $LN_S" >&5 15024echo "${ECHO_T}no, using $LN_S" >&6 15025fi 15026 15027echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 15028echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6 15029if test "${lt_cv_deplibs_check_method+set}" = set; then 15030 echo $ECHO_N "(cached) $ECHO_C" >&6 15031else 15032 lt_cv_file_magic_cmd='$MAGIC_CMD' 15033lt_cv_file_magic_test_file= 15034lt_cv_deplibs_check_method='unknown' 15035# Need to set the preceding variable on all platforms that support 15036# interlibrary dependencies. 15037# 'none' -- dependencies not supported. 15038# `unknown' -- same as none, but documents that we really don't know. 15039# 'pass_all' -- all dependencies passed with no checks. 15040# 'test_compile' -- check by making test program. 15041# 'file_magic [[regex]]' -- check by looking for files in library path 15042# which responds to the $file_magic_cmd with a given extended regex. 15043# If you have `file' or equivalent on your system and you're not sure 15044# whether `pass_all' will *always* work, you probably want this one. 15045 15046case $host_os in 15047aix4* | aix5*) 15048 lt_cv_deplibs_check_method=pass_all 15049 ;; 15050 15051beos*) 15052 lt_cv_deplibs_check_method=pass_all 15053 ;; 15054 15055bsdi[45]*) 15056 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 15057 lt_cv_file_magic_cmd='/usr/bin/file -L' 15058 lt_cv_file_magic_test_file=/shlib/libc.so 15059 ;; 15060 15061cygwin*) 15062 # func_win32_libid is a shell function defined in ltmain.sh 15063 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 15064 lt_cv_file_magic_cmd='func_win32_libid' 15065 ;; 15066 15067mingw* | pw32*) 15068 # Base MSYS/MinGW do not provide the 'file' command needed by 15069 # func_win32_libid shell function, so use a weaker test based on 'objdump'. 15070 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 15071 lt_cv_file_magic_cmd='$OBJDUMP -f' 15072 ;; 15073 15074darwin* | rhapsody*) 15075 lt_cv_deplibs_check_method=pass_all 15076 ;; 15077 15078freebsd* | kfreebsd*-gnu | dragonfly*) 15079 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 15080 case $host_cpu in 15081 i*86 ) 15082 # Not sure whether the presence of OpenBSD here was a mistake. 15083 # Let's accept both of them until this is cleared up. 15084 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 15085 lt_cv_file_magic_cmd=/usr/bin/file 15086 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 15087 ;; 15088 esac 15089 else 15090 lt_cv_deplibs_check_method=pass_all 15091 fi 15092 ;; 15093 15094gnu*) 15095 lt_cv_deplibs_check_method=pass_all 15096 ;; 15097 15098hpux10.20* | hpux11*) 15099 lt_cv_file_magic_cmd=/usr/bin/file 15100 case $host_cpu in 15101 ia64*) 15102 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 15103 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 15104 ;; 15105 hppa*64*) 15106 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]' 15107 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 15108 ;; 15109 *) 15110 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 15111 lt_cv_file_magic_test_file=/usr/lib/libc.sl 15112 ;; 15113 esac 15114 ;; 15115 15116irix5* | irix6* | nonstopux*) 15117 case $LD in 15118 *-32|*"-32 ") libmagic=32-bit;; 15119 *-n32|*"-n32 ") libmagic=N32;; 15120 *-64|*"-64 ") libmagic=64-bit;; 15121 *) libmagic=never-match;; 15122 esac 15123 lt_cv_deplibs_check_method=pass_all 15124 ;; 15125 15126# This must be Linux ELF. 15127linux*) 15128 lt_cv_deplibs_check_method=pass_all 15129 ;; 15130 15131netbsd*) 15132 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 15133 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 15134 else 15135 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 15136 fi 15137 ;; 15138 15139newos6*) 15140 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 15141 lt_cv_file_magic_cmd=/usr/bin/file 15142 lt_cv_file_magic_test_file=/usr/lib/libnls.so 15143 ;; 15144 15145nto-qnx*) 15146 lt_cv_deplibs_check_method=unknown 15147 ;; 15148 15149openbsd*) 15150 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 15151 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 15152 else 15153 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 15154 fi 15155 ;; 15156 15157osf3* | osf4* | osf5*) 15158 lt_cv_deplibs_check_method=pass_all 15159 ;; 15160 15161sco3.2v5*) 15162 lt_cv_deplibs_check_method=pass_all 15163 ;; 15164 15165solaris*) 15166 lt_cv_deplibs_check_method=pass_all 15167 ;; 15168 15169sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 15170 case $host_vendor in 15171 motorola) 15172 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]' 15173 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 15174 ;; 15175 ncr) 15176 lt_cv_deplibs_check_method=pass_all 15177 ;; 15178 sequent) 15179 lt_cv_file_magic_cmd='/bin/file' 15180 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 15181 ;; 15182 sni) 15183 lt_cv_file_magic_cmd='/bin/file' 15184 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 15185 lt_cv_file_magic_test_file=/lib/libc.so 15186 ;; 15187 siemens) 15188 lt_cv_deplibs_check_method=pass_all 15189 ;; 15190 esac 15191 ;; 15192 15193sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*) 15194 lt_cv_deplibs_check_method=pass_all 15195 ;; 15196esac 15197 15198fi 15199echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 15200echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 15201file_magic_cmd=$lt_cv_file_magic_cmd 15202deplibs_check_method=$lt_cv_deplibs_check_method 15203test -z "$deplibs_check_method" && deplibs_check_method=unknown 15204 15205 15206 15207 15208# If no C compiler was specified, use CC. 15209LTCC=${LTCC-"$CC"} 15210 15211# Allow CC to be a program name with arguments. 15212compiler=$CC 15213 15214# Check whether --enable-libtool-lock or --disable-libtool-lock was given. 15215if test "${enable_libtool_lock+set}" = set; then 15216 enableval="$enable_libtool_lock" 15217 15218fi; 15219test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 15220 15221# Some flags need to be propagated to the compiler or linker for good 15222# libtool support. 15223case $host in 15224ia64-*-hpux*) 15225 # Find out which ABI we are using. 15226 echo 'int i;' > conftest.$ac_ext 15227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 15228 (eval $ac_compile) 2>&5 15229 ac_status=$? 15230 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15231 (exit $ac_status); }; then 15232 case `/usr/bin/file conftest.$ac_objext` in 15233 *ELF-32*) 15234 HPUX_IA64_MODE="32" 15235 ;; 15236 *ELF-64*) 15237 HPUX_IA64_MODE="64" 15238 ;; 15239 esac 15240 fi 15241 rm -rf conftest* 15242 ;; 15243*-*-irix6*) 15244 # Find out which ABI we are using. 15245 echo '#line 15245 "configure"' > conftest.$ac_ext 15246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 15247 (eval $ac_compile) 2>&5 15248 ac_status=$? 15249 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15250 (exit $ac_status); }; then 15251 if test "$lt_cv_prog_gnu_ld" = yes; then 15252 case `/usr/bin/file conftest.$ac_objext` in 15253 *32-bit*) 15254 LD="${LD-ld} -melf32bsmip" 15255 ;; 15256 *N32*) 15257 LD="${LD-ld} -melf32bmipn32" 15258 ;; 15259 *64-bit*) 15260 LD="${LD-ld} -melf64bmip" 15261 ;; 15262 esac 15263 else 15264 case `/usr/bin/file conftest.$ac_objext` in 15265 *32-bit*) 15266 LD="${LD-ld} -32" 15267 ;; 15268 *N32*) 15269 LD="${LD-ld} -n32" 15270 ;; 15271 *64-bit*) 15272 LD="${LD-ld} -64" 15273 ;; 15274 esac 15275 fi 15276 fi 15277 rm -rf conftest* 15278 ;; 15279 15280x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) 15281 # Find out which ABI we are using. 15282 echo 'int i;' > conftest.$ac_ext 15283 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 15284 (eval $ac_compile) 2>&5 15285 ac_status=$? 15286 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15287 (exit $ac_status); }; then 15288 case `/usr/bin/file conftest.o` in 15289 *32-bit*) 15290 case $host in 15291 x86_64-*linux*) 15292 LD="${LD-ld} -m elf_i386" 15293 ;; 15294 ppc64-*linux*|powerpc64-*linux*) 15295 LD="${LD-ld} -m elf32ppclinux" 15296 ;; 15297 s390x-*linux*) 15298 LD="${LD-ld} -m elf_s390" 15299 ;; 15300 sparc64-*linux*) 15301 LD="${LD-ld} -m elf32_sparc" 15302 ;; 15303 esac 15304 ;; 15305 *64-bit*) 15306 case $host in 15307 x86_64-*linux*) 15308 LD="${LD-ld} -m elf_x86_64" 15309 ;; 15310 ppc*-*linux*|powerpc*-*linux*) 15311 LD="${LD-ld} -m elf64ppc" 15312 ;; 15313 s390*-*linux*) 15314 LD="${LD-ld} -m elf64_s390" 15315 ;; 15316 sparc*-*linux*) 15317 LD="${LD-ld} -m elf64_sparc" 15318 ;; 15319 esac 15320 ;; 15321 esac 15322 fi 15323 rm -rf conftest* 15324 ;; 15325 15326*-*-sco3.2v5*) 15327 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 15328 SAVE_CFLAGS="$CFLAGS" 15329 CFLAGS="$CFLAGS -belf" 15330 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 15331echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 15332if test "${lt_cv_cc_needs_belf+set}" = set; then 15333 echo $ECHO_N "(cached) $ECHO_C" >&6 15334else 15335 ac_ext=c 15336ac_cpp='$CPP $CPPFLAGS' 15337ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15338ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15339ac_compiler_gnu=$ac_cv_c_compiler_gnu 15340 15341 cat >conftest.$ac_ext <<_ACEOF 15342/* confdefs.h. */ 15343_ACEOF 15344cat confdefs.h >>conftest.$ac_ext 15345cat >>conftest.$ac_ext <<_ACEOF 15346/* end confdefs.h. */ 15347 15348int 15349main () 15350{ 15351 15352 ; 15353 return 0; 15354} 15355_ACEOF 15356rm -f conftest.$ac_objext conftest$ac_exeext 15357if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 15358 (eval $ac_link) 2>conftest.er1 15359 ac_status=$? 15360 grep -v '^ *+' conftest.er1 >conftest.err 15361 rm -f conftest.er1 15362 cat conftest.err >&5 15363 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15364 (exit $ac_status); } && 15365 { ac_try='test -z "$ac_c_werror_flag" 15366 || test ! -s conftest.err' 15367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15368 (eval $ac_try) 2>&5 15369 ac_status=$? 15370 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15371 (exit $ac_status); }; } && 15372 { ac_try='test -s conftest$ac_exeext' 15373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15374 (eval $ac_try) 2>&5 15375 ac_status=$? 15376 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15377 (exit $ac_status); }; }; then 15378 lt_cv_cc_needs_belf=yes 15379else 15380 echo "$as_me: failed program was:" >&5 15381sed 's/^/| /' conftest.$ac_ext >&5 15382 15383lt_cv_cc_needs_belf=no 15384fi 15385rm -f conftest.err conftest.$ac_objext \ 15386 conftest$ac_exeext conftest.$ac_ext 15387 ac_ext=c 15388ac_cpp='$CPP $CPPFLAGS' 15389ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15390ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15391ac_compiler_gnu=$ac_cv_c_compiler_gnu 15392 15393fi 15394echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 15395echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 15396 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 15397 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 15398 CFLAGS="$SAVE_CFLAGS" 15399 fi 15400 ;; 15401 15402esac 15403 15404need_locks="$enable_libtool_lock" 15405 15406 15407 15408for ac_header in dlfcn.h 15409do 15410as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 15411if eval "test \"\${$as_ac_Header+set}\" = set"; then 15412 echo "$as_me:$LINENO: checking for $ac_header" >&5 15413echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 15414if eval "test \"\${$as_ac_Header+set}\" = set"; then 15415 echo $ECHO_N "(cached) $ECHO_C" >&6 15416fi 15417echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 15418echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 15419else 15420 # Is the header compilable? 15421echo "$as_me:$LINENO: checking $ac_header usability" >&5 15422echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 15423cat >conftest.$ac_ext <<_ACEOF 15424/* confdefs.h. */ 15425_ACEOF 15426cat confdefs.h >>conftest.$ac_ext 15427cat >>conftest.$ac_ext <<_ACEOF 15428/* end confdefs.h. */ 15429$ac_includes_default 15430#include <$ac_header> 15431_ACEOF 15432rm -f conftest.$ac_objext 15433if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 15434 (eval $ac_compile) 2>conftest.er1 15435 ac_status=$? 15436 grep -v '^ *+' conftest.er1 >conftest.err 15437 rm -f conftest.er1 15438 cat conftest.err >&5 15439 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15440 (exit $ac_status); } && 15441 { ac_try='test -z "$ac_c_werror_flag" 15442 || test ! -s conftest.err' 15443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15444 (eval $ac_try) 2>&5 15445 ac_status=$? 15446 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15447 (exit $ac_status); }; } && 15448 { ac_try='test -s conftest.$ac_objext' 15449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15450 (eval $ac_try) 2>&5 15451 ac_status=$? 15452 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15453 (exit $ac_status); }; }; then 15454 ac_header_compiler=yes 15455else 15456 echo "$as_me: failed program was:" >&5 15457sed 's/^/| /' conftest.$ac_ext >&5 15458 15459ac_header_compiler=no 15460fi 15461rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 15462echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 15463echo "${ECHO_T}$ac_header_compiler" >&6 15464 15465# Is the header present? 15466echo "$as_me:$LINENO: checking $ac_header presence" >&5 15467echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 15468cat >conftest.$ac_ext <<_ACEOF 15469/* confdefs.h. */ 15470_ACEOF 15471cat confdefs.h >>conftest.$ac_ext 15472cat >>conftest.$ac_ext <<_ACEOF 15473/* end confdefs.h. */ 15474#include <$ac_header> 15475_ACEOF 15476if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 15477 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 15478 ac_status=$? 15479 grep -v '^ *+' conftest.er1 >conftest.err 15480 rm -f conftest.er1 15481 cat conftest.err >&5 15482 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15483 (exit $ac_status); } >/dev/null; then 15484 if test -s conftest.err; then 15485 ac_cpp_err=$ac_c_preproc_warn_flag 15486 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 15487 else 15488 ac_cpp_err= 15489 fi 15490else 15491 ac_cpp_err=yes 15492fi 15493if test -z "$ac_cpp_err"; then 15494 ac_header_preproc=yes 15495else 15496 echo "$as_me: failed program was:" >&5 15497sed 's/^/| /' conftest.$ac_ext >&5 15498 15499 ac_header_preproc=no 15500fi 15501rm -f conftest.err conftest.$ac_ext 15502echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 15503echo "${ECHO_T}$ac_header_preproc" >&6 15504 15505# So? What about this header? 15506case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 15507 yes:no: ) 15508 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 15509echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 15510 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 15511echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 15512 ac_header_preproc=yes 15513 ;; 15514 no:yes:* ) 15515 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 15516echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 15517 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 15518echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 15519 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 15520echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 15521 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 15522echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 15523 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 15524echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 15525 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 15526echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 15527 ( 15528 cat <<\_ASBOX 15529## ------------------------------ ## 15530## Report this to the ntp lists. ## 15531## ------------------------------ ## 15532_ASBOX 15533 ) | 15534 sed "s/^/$as_me: WARNING: /" >&2 15535 ;; 15536esac 15537echo "$as_me:$LINENO: checking for $ac_header" >&5 15538echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 15539if eval "test \"\${$as_ac_Header+set}\" = set"; then 15540 echo $ECHO_N "(cached) $ECHO_C" >&6 15541else 15542 eval "$as_ac_Header=\$ac_header_preproc" 15543fi 15544echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 15545echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 15546 15547fi 15548if test `eval echo '${'$as_ac_Header'}'` = yes; then 15549 cat >>confdefs.h <<_ACEOF 15550#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 15551_ACEOF 15552 15553fi 15554 15555done 15556 15557ac_ext=cc 15558ac_cpp='$CXXCPP $CPPFLAGS' 15559ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15560ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15561ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 15562if test -n "$ac_tool_prefix"; then 15563 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC 15564 do 15565 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 15566set dummy $ac_tool_prefix$ac_prog; ac_word=$2 15567echo "$as_me:$LINENO: checking for $ac_word" >&5 15568echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 15569if test "${ac_cv_prog_CXX+set}" = set; then 15570 echo $ECHO_N "(cached) $ECHO_C" >&6 15571else 15572 if test -n "$CXX"; then 15573 ac_cv_prog_CXX="$CXX" # Let the user override the test. 15574else 15575as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15576for as_dir in $PATH 15577do 15578 IFS=$as_save_IFS 15579 test -z "$as_dir" && as_dir=. 15580 for ac_exec_ext in '' $ac_executable_extensions; do 15581 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15582 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 15583 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 15584 break 2 15585 fi 15586done 15587done 15588 15589fi 15590fi 15591CXX=$ac_cv_prog_CXX 15592if test -n "$CXX"; then 15593 echo "$as_me:$LINENO: result: $CXX" >&5 15594echo "${ECHO_T}$CXX" >&6 15595else 15596 echo "$as_me:$LINENO: result: no" >&5 15597echo "${ECHO_T}no" >&6 15598fi 15599 15600 test -n "$CXX" && break 15601 done 15602fi 15603if test -z "$CXX"; then 15604 ac_ct_CXX=$CXX 15605 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC 15606do 15607 # Extract the first word of "$ac_prog", so it can be a program name with args. 15608set dummy $ac_prog; ac_word=$2 15609echo "$as_me:$LINENO: checking for $ac_word" >&5 15610echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 15611if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 15612 echo $ECHO_N "(cached) $ECHO_C" >&6 15613else 15614 if test -n "$ac_ct_CXX"; then 15615 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 15616else 15617as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15618for as_dir in $PATH 15619do 15620 IFS=$as_save_IFS 15621 test -z "$as_dir" && as_dir=. 15622 for ac_exec_ext in '' $ac_executable_extensions; do 15623 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15624 ac_cv_prog_ac_ct_CXX="$ac_prog" 15625 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 15626 break 2 15627 fi 15628done 15629done 15630 15631fi 15632fi 15633ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 15634if test -n "$ac_ct_CXX"; then 15635 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 15636echo "${ECHO_T}$ac_ct_CXX" >&6 15637else 15638 echo "$as_me:$LINENO: result: no" >&5 15639echo "${ECHO_T}no" >&6 15640fi 15641 15642 test -n "$ac_ct_CXX" && break 15643done 15644test -n "$ac_ct_CXX" || ac_ct_CXX="g++" 15645 15646 CXX=$ac_ct_CXX 15647fi 15648 15649 15650# Provide some information about the compiler. 15651echo "$as_me:$LINENO:" \ 15652 "checking for C++ compiler version" >&5 15653ac_compiler=`set X $ac_compile; echo $2` 15654{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 15655 (eval $ac_compiler --version </dev/null >&5) 2>&5 15656 ac_status=$? 15657 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15658 (exit $ac_status); } 15659{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 15660 (eval $ac_compiler -v </dev/null >&5) 2>&5 15661 ac_status=$? 15662 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15663 (exit $ac_status); } 15664{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 15665 (eval $ac_compiler -V </dev/null >&5) 2>&5 15666 ac_status=$? 15667 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15668 (exit $ac_status); } 15669 15670echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 15671echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 15672if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 15673 echo $ECHO_N "(cached) $ECHO_C" >&6 15674else 15675 cat >conftest.$ac_ext <<_ACEOF 15676/* confdefs.h. */ 15677_ACEOF 15678cat confdefs.h >>conftest.$ac_ext 15679cat >>conftest.$ac_ext <<_ACEOF 15680/* end confdefs.h. */ 15681 15682int 15683main () 15684{ 15685#ifndef __GNUC__ 15686 choke me 15687#endif 15688 15689 ; 15690 return 0; 15691} 15692_ACEOF 15693rm -f conftest.$ac_objext 15694if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 15695 (eval $ac_compile) 2>conftest.er1 15696 ac_status=$? 15697 grep -v '^ *+' conftest.er1 >conftest.err 15698 rm -f conftest.er1 15699 cat conftest.err >&5 15700 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15701 (exit $ac_status); } && 15702 { ac_try='test -z "$ac_cxx_werror_flag" 15703 || test ! -s conftest.err' 15704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15705 (eval $ac_try) 2>&5 15706 ac_status=$? 15707 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15708 (exit $ac_status); }; } && 15709 { ac_try='test -s conftest.$ac_objext' 15710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15711 (eval $ac_try) 2>&5 15712 ac_status=$? 15713 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15714 (exit $ac_status); }; }; then 15715 ac_compiler_gnu=yes 15716else 15717 echo "$as_me: failed program was:" >&5 15718sed 's/^/| /' conftest.$ac_ext >&5 15719 15720ac_compiler_gnu=no 15721fi 15722rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 15723ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 15724 15725fi 15726echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 15727echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 15728GXX=`test $ac_compiler_gnu = yes && echo yes` 15729ac_test_CXXFLAGS=${CXXFLAGS+set} 15730ac_save_CXXFLAGS=$CXXFLAGS 15731CXXFLAGS="-g" 15732echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 15733echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 15734if test "${ac_cv_prog_cxx_g+set}" = set; then 15735 echo $ECHO_N "(cached) $ECHO_C" >&6 15736else 15737 cat >conftest.$ac_ext <<_ACEOF 15738/* confdefs.h. */ 15739_ACEOF 15740cat confdefs.h >>conftest.$ac_ext 15741cat >>conftest.$ac_ext <<_ACEOF 15742/* end confdefs.h. */ 15743 15744int 15745main () 15746{ 15747 15748 ; 15749 return 0; 15750} 15751_ACEOF 15752rm -f conftest.$ac_objext 15753if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 15754 (eval $ac_compile) 2>conftest.er1 15755 ac_status=$? 15756 grep -v '^ *+' conftest.er1 >conftest.err 15757 rm -f conftest.er1 15758 cat conftest.err >&5 15759 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15760 (exit $ac_status); } && 15761 { ac_try='test -z "$ac_cxx_werror_flag" 15762 || test ! -s conftest.err' 15763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15764 (eval $ac_try) 2>&5 15765 ac_status=$? 15766 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15767 (exit $ac_status); }; } && 15768 { ac_try='test -s conftest.$ac_objext' 15769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15770 (eval $ac_try) 2>&5 15771 ac_status=$? 15772 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15773 (exit $ac_status); }; }; then 15774 ac_cv_prog_cxx_g=yes 15775else 15776 echo "$as_me: failed program was:" >&5 15777sed 's/^/| /' conftest.$ac_ext >&5 15778 15779ac_cv_prog_cxx_g=no 15780fi 15781rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 15782fi 15783echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 15784echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 15785if test "$ac_test_CXXFLAGS" = set; then 15786 CXXFLAGS=$ac_save_CXXFLAGS 15787elif test $ac_cv_prog_cxx_g = yes; then 15788 if test "$GXX" = yes; then 15789 CXXFLAGS="-g -O2" 15790 else 15791 CXXFLAGS="-g" 15792 fi 15793else 15794 if test "$GXX" = yes; then 15795 CXXFLAGS="-O2" 15796 else 15797 CXXFLAGS= 15798 fi 15799fi 15800for ac_declaration in \ 15801 '' \ 15802 'extern "C" void std::exit (int) throw (); using std::exit;' \ 15803 'extern "C" void std::exit (int); using std::exit;' \ 15804 'extern "C" void exit (int) throw ();' \ 15805 'extern "C" void exit (int);' \ 15806 'void exit (int);' 15807do 15808 cat >conftest.$ac_ext <<_ACEOF 15809/* confdefs.h. */ 15810_ACEOF 15811cat confdefs.h >>conftest.$ac_ext 15812cat >>conftest.$ac_ext <<_ACEOF 15813/* end confdefs.h. */ 15814$ac_declaration 15815#include <stdlib.h> 15816int 15817main () 15818{ 15819exit (42); 15820 ; 15821 return 0; 15822} 15823_ACEOF 15824rm -f conftest.$ac_objext 15825if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 15826 (eval $ac_compile) 2>conftest.er1 15827 ac_status=$? 15828 grep -v '^ *+' conftest.er1 >conftest.err 15829 rm -f conftest.er1 15830 cat conftest.err >&5 15831 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15832 (exit $ac_status); } && 15833 { ac_try='test -z "$ac_cxx_werror_flag" 15834 || test ! -s conftest.err' 15835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15836 (eval $ac_try) 2>&5 15837 ac_status=$? 15838 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15839 (exit $ac_status); }; } && 15840 { ac_try='test -s conftest.$ac_objext' 15841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15842 (eval $ac_try) 2>&5 15843 ac_status=$? 15844 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15845 (exit $ac_status); }; }; then 15846 : 15847else 15848 echo "$as_me: failed program was:" >&5 15849sed 's/^/| /' conftest.$ac_ext >&5 15850 15851continue 15852fi 15853rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 15854 cat >conftest.$ac_ext <<_ACEOF 15855/* confdefs.h. */ 15856_ACEOF 15857cat confdefs.h >>conftest.$ac_ext 15858cat >>conftest.$ac_ext <<_ACEOF 15859/* end confdefs.h. */ 15860$ac_declaration 15861int 15862main () 15863{ 15864exit (42); 15865 ; 15866 return 0; 15867} 15868_ACEOF 15869rm -f conftest.$ac_objext 15870if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 15871 (eval $ac_compile) 2>conftest.er1 15872 ac_status=$? 15873 grep -v '^ *+' conftest.er1 >conftest.err 15874 rm -f conftest.er1 15875 cat conftest.err >&5 15876 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15877 (exit $ac_status); } && 15878 { ac_try='test -z "$ac_cxx_werror_flag" 15879 || test ! -s conftest.err' 15880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15881 (eval $ac_try) 2>&5 15882 ac_status=$? 15883 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15884 (exit $ac_status); }; } && 15885 { ac_try='test -s conftest.$ac_objext' 15886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15887 (eval $ac_try) 2>&5 15888 ac_status=$? 15889 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15890 (exit $ac_status); }; }; then 15891 break 15892else 15893 echo "$as_me: failed program was:" >&5 15894sed 's/^/| /' conftest.$ac_ext >&5 15895 15896fi 15897rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 15898done 15899rm -f conftest* 15900if test -n "$ac_declaration"; then 15901 echo '#ifdef __cplusplus' >>confdefs.h 15902 echo $ac_declaration >>confdefs.h 15903 echo '#endif' >>confdefs.h 15904fi 15905 15906ac_ext=cc 15907ac_cpp='$CXXCPP $CPPFLAGS' 15908ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15909ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15910ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 15911 15912depcc="$CXX" am_compiler_list= 15913 15914echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 15915echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 15916if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then 15917 echo $ECHO_N "(cached) $ECHO_C" >&6 15918else 15919 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 15920 # We make a subdir and do the tests there. Otherwise we can end up 15921 # making bogus files that we don't know about and never remove. For 15922 # instance it was reported that on HP-UX the gcc test will end up 15923 # making a dummy file named `D' -- because `-MD' means `put the output 15924 # in D'. 15925 mkdir conftest.dir 15926 # Copy depcomp to subdir because otherwise we won't find it if we're 15927 # using a relative directory. 15928 cp "$am_depcomp" conftest.dir 15929 cd conftest.dir 15930 # We will build objects and dependencies in a subdirectory because 15931 # it helps to detect inapplicable dependency modes. For instance 15932 # both Tru64's cc and ICC support -MD to output dependencies as a 15933 # side effect of compilation, but ICC will put the dependencies in 15934 # the current directory while Tru64 will put them in the object 15935 # directory. 15936 mkdir sub 15937 15938 am_cv_CXX_dependencies_compiler_type=none 15939 if test "$am_compiler_list" = ""; then 15940 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 15941 fi 15942 for depmode in $am_compiler_list; do 15943 # Setup a source with many dependencies, because some compilers 15944 # like to wrap large dependency lists on column 80 (with \), and 15945 # we should not choose a depcomp mode which is confused by this. 15946 # 15947 # We need to recreate these files for each test, as the compiler may 15948 # overwrite some of them when testing with obscure command lines. 15949 # This happens at least with the AIX C compiler. 15950 : > sub/conftest.c 15951 for i in 1 2 3 4 5 6; do 15952 echo '#include "conftst'$i'.h"' >> sub/conftest.c 15953 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 15954 # Solaris 8's {/usr,}/bin/sh. 15955 touch sub/conftst$i.h 15956 done 15957 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 15958 15959 case $depmode in 15960 nosideeffect) 15961 # after this tag, mechanisms are not by side-effect, so they'll 15962 # only be used when explicitly requested 15963 if test "x$enable_dependency_tracking" = xyes; then 15964 continue 15965 else 15966 break 15967 fi 15968 ;; 15969 none) break ;; 15970 esac 15971 # We check with `-c' and `-o' for the sake of the "dashmstdout" 15972 # mode. It turns out that the SunPro C++ compiler does not properly 15973 # handle `-M -o', and we need to detect this. 15974 if depmode=$depmode \ 15975 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 15976 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 15977 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 15978 >/dev/null 2>conftest.err && 15979 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 15980 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 15981 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 15982 # icc doesn't choke on unknown options, it will just issue warnings 15983 # or remarks (even with -Werror). So we grep stderr for any message 15984 # that says an option was ignored or not supported. 15985 # When given -MP, icc 7.0 and 7.1 complain thusly: 15986 # icc: Command line warning: ignoring option '-M'; no argument required 15987 # The diagnosis changed in icc 8.0: 15988 # icc: Command line remark: option '-MP' not supported 15989 if (grep 'ignoring option' conftest.err || 15990 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 15991 am_cv_CXX_dependencies_compiler_type=$depmode 15992 break 15993 fi 15994 fi 15995 done 15996 15997 cd .. 15998 rm -rf conftest.dir 15999else 16000 am_cv_CXX_dependencies_compiler_type=none 16001fi 16002 16003fi 16004echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 16005echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6 16006CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 16007 16008 16009 16010if 16011 test "x$enable_dependency_tracking" != xno \ 16012 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 16013 am__fastdepCXX_TRUE= 16014 am__fastdepCXX_FALSE='#' 16015else 16016 am__fastdepCXX_TRUE='#' 16017 am__fastdepCXX_FALSE= 16018fi 16019 16020 16021 16022 16023if test -n "$CXX" && ( test "X$CXX" != "Xno" && 16024 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 16025 (test "X$CXX" != "Xg++"))) ; then 16026 ac_ext=cc 16027ac_cpp='$CXXCPP $CPPFLAGS' 16028ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16029ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16030ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 16031echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 16032echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 16033if test -z "$CXXCPP"; then 16034 if test "${ac_cv_prog_CXXCPP+set}" = set; then 16035 echo $ECHO_N "(cached) $ECHO_C" >&6 16036else 16037 # Double quotes because CXXCPP needs to be expanded 16038 for CXXCPP in "$CXX -E" "/lib/cpp" 16039 do 16040 ac_preproc_ok=false 16041for ac_cxx_preproc_warn_flag in '' yes 16042do 16043 # Use a header file that comes with gcc, so configuring glibc 16044 # with a fresh cross-compiler works. 16045 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 16046 # <limits.h> exists even on freestanding compilers. 16047 # On the NeXT, cc -E runs the code through the compiler's parser, 16048 # not just through cpp. "Syntax error" is here to catch this case. 16049 cat >conftest.$ac_ext <<_ACEOF 16050/* confdefs.h. */ 16051_ACEOF 16052cat confdefs.h >>conftest.$ac_ext 16053cat >>conftest.$ac_ext <<_ACEOF 16054/* end confdefs.h. */ 16055#ifdef __STDC__ 16056# include <limits.h> 16057#else 16058# include <assert.h> 16059#endif 16060 Syntax error 16061_ACEOF 16062if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 16063 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 16064 ac_status=$? 16065 grep -v '^ *+' conftest.er1 >conftest.err 16066 rm -f conftest.er1 16067 cat conftest.err >&5 16068 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16069 (exit $ac_status); } >/dev/null; then 16070 if test -s conftest.err; then 16071 ac_cpp_err=$ac_cxx_preproc_warn_flag 16072 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 16073 else 16074 ac_cpp_err= 16075 fi 16076else 16077 ac_cpp_err=yes 16078fi 16079if test -z "$ac_cpp_err"; then 16080 : 16081else 16082 echo "$as_me: failed program was:" >&5 16083sed 's/^/| /' conftest.$ac_ext >&5 16084 16085 # Broken: fails on valid input. 16086continue 16087fi 16088rm -f conftest.err conftest.$ac_ext 16089 16090 # OK, works on sane cases. Now check whether non-existent headers 16091 # can be detected and how. 16092 cat >conftest.$ac_ext <<_ACEOF 16093/* confdefs.h. */ 16094_ACEOF 16095cat confdefs.h >>conftest.$ac_ext 16096cat >>conftest.$ac_ext <<_ACEOF 16097/* end confdefs.h. */ 16098#include <ac_nonexistent.h> 16099_ACEOF 16100if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 16101 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 16102 ac_status=$? 16103 grep -v '^ *+' conftest.er1 >conftest.err 16104 rm -f conftest.er1 16105 cat conftest.err >&5 16106 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16107 (exit $ac_status); } >/dev/null; then 16108 if test -s conftest.err; then 16109 ac_cpp_err=$ac_cxx_preproc_warn_flag 16110 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 16111 else 16112 ac_cpp_err= 16113 fi 16114else 16115 ac_cpp_err=yes 16116fi 16117if test -z "$ac_cpp_err"; then 16118 # Broken: success on invalid input. 16119continue 16120else 16121 echo "$as_me: failed program was:" >&5 16122sed 's/^/| /' conftest.$ac_ext >&5 16123 16124 # Passes both tests. 16125ac_preproc_ok=: 16126break 16127fi 16128rm -f conftest.err conftest.$ac_ext 16129 16130done 16131# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 16132rm -f conftest.err conftest.$ac_ext 16133if $ac_preproc_ok; then 16134 break 16135fi 16136 16137 done 16138 ac_cv_prog_CXXCPP=$CXXCPP 16139 16140fi 16141 CXXCPP=$ac_cv_prog_CXXCPP 16142else 16143 ac_cv_prog_CXXCPP=$CXXCPP 16144fi 16145echo "$as_me:$LINENO: result: $CXXCPP" >&5 16146echo "${ECHO_T}$CXXCPP" >&6 16147ac_preproc_ok=false 16148for ac_cxx_preproc_warn_flag in '' yes 16149do 16150 # Use a header file that comes with gcc, so configuring glibc 16151 # with a fresh cross-compiler works. 16152 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 16153 # <limits.h> exists even on freestanding compilers. 16154 # On the NeXT, cc -E runs the code through the compiler's parser, 16155 # not just through cpp. "Syntax error" is here to catch this case. 16156 cat >conftest.$ac_ext <<_ACEOF 16157/* confdefs.h. */ 16158_ACEOF 16159cat confdefs.h >>conftest.$ac_ext 16160cat >>conftest.$ac_ext <<_ACEOF 16161/* end confdefs.h. */ 16162#ifdef __STDC__ 16163# include <limits.h> 16164#else 16165# include <assert.h> 16166#endif 16167 Syntax error 16168_ACEOF 16169if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 16170 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 16171 ac_status=$? 16172 grep -v '^ *+' conftest.er1 >conftest.err 16173 rm -f conftest.er1 16174 cat conftest.err >&5 16175 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16176 (exit $ac_status); } >/dev/null; then 16177 if test -s conftest.err; then 16178 ac_cpp_err=$ac_cxx_preproc_warn_flag 16179 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 16180 else 16181 ac_cpp_err= 16182 fi 16183else 16184 ac_cpp_err=yes 16185fi 16186if test -z "$ac_cpp_err"; then 16187 : 16188else 16189 echo "$as_me: failed program was:" >&5 16190sed 's/^/| /' conftest.$ac_ext >&5 16191 16192 # Broken: fails on valid input. 16193continue 16194fi 16195rm -f conftest.err conftest.$ac_ext 16196 16197 # OK, works on sane cases. Now check whether non-existent headers 16198 # can be detected and how. 16199 cat >conftest.$ac_ext <<_ACEOF 16200/* confdefs.h. */ 16201_ACEOF 16202cat confdefs.h >>conftest.$ac_ext 16203cat >>conftest.$ac_ext <<_ACEOF 16204/* end confdefs.h. */ 16205#include <ac_nonexistent.h> 16206_ACEOF 16207if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 16208 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 16209 ac_status=$? 16210 grep -v '^ *+' conftest.er1 >conftest.err 16211 rm -f conftest.er1 16212 cat conftest.err >&5 16213 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16214 (exit $ac_status); } >/dev/null; then 16215 if test -s conftest.err; then 16216 ac_cpp_err=$ac_cxx_preproc_warn_flag 16217 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 16218 else 16219 ac_cpp_err= 16220 fi 16221else 16222 ac_cpp_err=yes 16223fi 16224if test -z "$ac_cpp_err"; then 16225 # Broken: success on invalid input. 16226continue 16227else 16228 echo "$as_me: failed program was:" >&5 16229sed 's/^/| /' conftest.$ac_ext >&5 16230 16231 # Passes both tests. 16232ac_preproc_ok=: 16233break 16234fi 16235rm -f conftest.err conftest.$ac_ext 16236 16237done 16238# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 16239rm -f conftest.err conftest.$ac_ext 16240if $ac_preproc_ok; then 16241 : 16242else 16243 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check 16244See \`config.log' for more details." >&5 16245echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check 16246See \`config.log' for more details." >&2;} 16247 { (exit 1); exit 1; }; } 16248fi 16249 16250ac_ext=cc 16251ac_cpp='$CXXCPP $CPPFLAGS' 16252ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16253ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16254ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 16255 16256fi 16257 16258 16259ac_ext=f 16260ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 16261ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16262ac_compiler_gnu=$ac_cv_f77_compiler_gnu 16263if test -n "$ac_tool_prefix"; then 16264 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran 16265 do 16266 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 16267set dummy $ac_tool_prefix$ac_prog; ac_word=$2 16268echo "$as_me:$LINENO: checking for $ac_word" >&5 16269echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 16270if test "${ac_cv_prog_F77+set}" = set; then 16271 echo $ECHO_N "(cached) $ECHO_C" >&6 16272else 16273 if test -n "$F77"; then 16274 ac_cv_prog_F77="$F77" # Let the user override the test. 16275else 16276as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16277for as_dir in $PATH 16278do 16279 IFS=$as_save_IFS 16280 test -z "$as_dir" && as_dir=. 16281 for ac_exec_ext in '' $ac_executable_extensions; do 16282 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16283 ac_cv_prog_F77="$ac_tool_prefix$ac_prog" 16284 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 16285 break 2 16286 fi 16287done 16288done 16289 16290fi 16291fi 16292F77=$ac_cv_prog_F77 16293if test -n "$F77"; then 16294 echo "$as_me:$LINENO: result: $F77" >&5 16295echo "${ECHO_T}$F77" >&6 16296else 16297 echo "$as_me:$LINENO: result: no" >&5 16298echo "${ECHO_T}no" >&6 16299fi 16300 16301 test -n "$F77" && break 16302 done 16303fi 16304if test -z "$F77"; then 16305 ac_ct_F77=$F77 16306 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran 16307do 16308 # Extract the first word of "$ac_prog", so it can be a program name with args. 16309set dummy $ac_prog; ac_word=$2 16310echo "$as_me:$LINENO: checking for $ac_word" >&5 16311echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 16312if test "${ac_cv_prog_ac_ct_F77+set}" = set; then 16313 echo $ECHO_N "(cached) $ECHO_C" >&6 16314else 16315 if test -n "$ac_ct_F77"; then 16316 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. 16317else 16318as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16319for as_dir in $PATH 16320do 16321 IFS=$as_save_IFS 16322 test -z "$as_dir" && as_dir=. 16323 for ac_exec_ext in '' $ac_executable_extensions; do 16324 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16325 ac_cv_prog_ac_ct_F77="$ac_prog" 16326 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 16327 break 2 16328 fi 16329done 16330done 16331 16332fi 16333fi 16334ac_ct_F77=$ac_cv_prog_ac_ct_F77 16335if test -n "$ac_ct_F77"; then 16336 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 16337echo "${ECHO_T}$ac_ct_F77" >&6 16338else 16339 echo "$as_me:$LINENO: result: no" >&5 16340echo "${ECHO_T}no" >&6 16341fi 16342 16343 test -n "$ac_ct_F77" && break 16344done 16345 16346 F77=$ac_ct_F77 16347fi 16348 16349 16350# Provide some information about the compiler. 16351echo "$as_me:16351:" \ 16352 "checking for Fortran 77 compiler version" >&5 16353ac_compiler=`set X $ac_compile; echo $2` 16354{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 16355 (eval $ac_compiler --version </dev/null >&5) 2>&5 16356 ac_status=$? 16357 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16358 (exit $ac_status); } 16359{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 16360 (eval $ac_compiler -v </dev/null >&5) 2>&5 16361 ac_status=$? 16362 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16363 (exit $ac_status); } 16364{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 16365 (eval $ac_compiler -V </dev/null >&5) 2>&5 16366 ac_status=$? 16367 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16368 (exit $ac_status); } 16369rm -f a.out 16370 16371# If we don't use `.F' as extension, the preprocessor is not run on the 16372# input file. (Note that this only needs to work for GNU compilers.) 16373ac_save_ext=$ac_ext 16374ac_ext=F 16375echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 16376echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6 16377if test "${ac_cv_f77_compiler_gnu+set}" = set; then 16378 echo $ECHO_N "(cached) $ECHO_C" >&6 16379else 16380 cat >conftest.$ac_ext <<_ACEOF 16381 program main 16382#ifndef __GNUC__ 16383 choke me 16384#endif 16385 16386 end 16387_ACEOF 16388rm -f conftest.$ac_objext 16389if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 16390 (eval $ac_compile) 2>conftest.er1 16391 ac_status=$? 16392 grep -v '^ *+' conftest.er1 >conftest.err 16393 rm -f conftest.er1 16394 cat conftest.err >&5 16395 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16396 (exit $ac_status); } && 16397 { ac_try='test -z "$ac_f77_werror_flag" 16398 || test ! -s conftest.err' 16399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16400 (eval $ac_try) 2>&5 16401 ac_status=$? 16402 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16403 (exit $ac_status); }; } && 16404 { ac_try='test -s conftest.$ac_objext' 16405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16406 (eval $ac_try) 2>&5 16407 ac_status=$? 16408 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16409 (exit $ac_status); }; }; then 16410 ac_compiler_gnu=yes 16411else 16412 echo "$as_me: failed program was:" >&5 16413sed 's/^/| /' conftest.$ac_ext >&5 16414 16415ac_compiler_gnu=no 16416fi 16417rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 16418ac_cv_f77_compiler_gnu=$ac_compiler_gnu 16419 16420fi 16421echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 16422echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6 16423ac_ext=$ac_save_ext 16424ac_test_FFLAGS=${FFLAGS+set} 16425ac_save_FFLAGS=$FFLAGS 16426FFLAGS= 16427echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 16428echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6 16429if test "${ac_cv_prog_f77_g+set}" = set; then 16430 echo $ECHO_N "(cached) $ECHO_C" >&6 16431else 16432 FFLAGS=-g 16433cat >conftest.$ac_ext <<_ACEOF 16434 program main 16435 16436 end 16437_ACEOF 16438rm -f conftest.$ac_objext 16439if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 16440 (eval $ac_compile) 2>conftest.er1 16441 ac_status=$? 16442 grep -v '^ *+' conftest.er1 >conftest.err 16443 rm -f conftest.er1 16444 cat conftest.err >&5 16445 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16446 (exit $ac_status); } && 16447 { ac_try='test -z "$ac_f77_werror_flag" 16448 || test ! -s conftest.err' 16449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16450 (eval $ac_try) 2>&5 16451 ac_status=$? 16452 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16453 (exit $ac_status); }; } && 16454 { ac_try='test -s conftest.$ac_objext' 16455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16456 (eval $ac_try) 2>&5 16457 ac_status=$? 16458 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16459 (exit $ac_status); }; }; then 16460 ac_cv_prog_f77_g=yes 16461else 16462 echo "$as_me: failed program was:" >&5 16463sed 's/^/| /' conftest.$ac_ext >&5 16464 16465ac_cv_prog_f77_g=no 16466fi 16467rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 16468 16469fi 16470echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 16471echo "${ECHO_T}$ac_cv_prog_f77_g" >&6 16472if test "$ac_test_FFLAGS" = set; then 16473 FFLAGS=$ac_save_FFLAGS 16474elif test $ac_cv_prog_f77_g = yes; then 16475 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 16476 FFLAGS="-g -O2" 16477 else 16478 FFLAGS="-g" 16479 fi 16480else 16481 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 16482 FFLAGS="-O2" 16483 else 16484 FFLAGS= 16485 fi 16486fi 16487 16488G77=`test $ac_compiler_gnu = yes && echo yes` 16489ac_ext=c 16490ac_cpp='$CPP $CPPFLAGS' 16491ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16492ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16493ac_compiler_gnu=$ac_cv_c_compiler_gnu 16494 16495 16496 16497# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! 16498 16499# find the maximum length of command line arguments 16500echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 16501echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6 16502if test "${lt_cv_sys_max_cmd_len+set}" = set; then 16503 echo $ECHO_N "(cached) $ECHO_C" >&6 16504else 16505 i=0 16506 teststring="ABCD" 16507 16508 case $build_os in 16509 msdosdjgpp*) 16510 # On DJGPP, this test can blow up pretty badly due to problems in libc 16511 # (any single argument exceeding 2000 bytes causes a buffer overrun 16512 # during glob expansion). Even if it were fixed, the result of this 16513 # check would be larger than it should be. 16514 lt_cv_sys_max_cmd_len=12288; # 12K is about right 16515 ;; 16516 16517 gnu*) 16518 # Under GNU Hurd, this test is not required because there is 16519 # no limit to the length of command line arguments. 16520 # Libtool will interpret -1 as no limit whatsoever 16521 lt_cv_sys_max_cmd_len=-1; 16522 ;; 16523 16524 cygwin* | mingw*) 16525 # On Win9x/ME, this test blows up -- it succeeds, but takes 16526 # about 5 minutes as the teststring grows exponentially. 16527 # Worse, since 9x/ME are not pre-emptively multitasking, 16528 # you end up with a "frozen" computer, even though with patience 16529 # the test eventually succeeds (with a max line length of 256k). 16530 # Instead, let's just punt: use the minimum linelength reported by 16531 # all of the supported platforms: 8192 (on NT/2K/XP). 16532 lt_cv_sys_max_cmd_len=8192; 16533 ;; 16534 16535 amigaos*) 16536 # On AmigaOS with pdksh, this test takes hours, literally. 16537 # So we just punt and use a minimum line length of 8192. 16538 lt_cv_sys_max_cmd_len=8192; 16539 ;; 16540 16541 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 16542 # This has been around since 386BSD, at least. Likely further. 16543 if test -x /sbin/sysctl; then 16544 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 16545 elif test -x /usr/sbin/sysctl; then 16546 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 16547 else 16548 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 16549 fi 16550 # And add a safety zone 16551 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 16552 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 16553 ;; 16554 osf*) 16555 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 16556 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 16557 # nice to cause kernel panics so lets avoid the loop below. 16558 # First set a reasonable default. 16559 lt_cv_sys_max_cmd_len=16384 16560 # 16561 if test -x /sbin/sysconfig; then 16562 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 16563 *1*) lt_cv_sys_max_cmd_len=-1 ;; 16564 esac 16565 fi 16566 ;; 16567 *) 16568 # If test is not a shell built-in, we'll probably end up computing a 16569 # maximum length that is only half of the actual maximum length, but 16570 # we can't tell. 16571 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 16572 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ 16573 = "XX$teststring") >/dev/null 2>&1 && 16574 new_result=`expr "X$teststring" : ".*" 2>&1` && 16575 lt_cv_sys_max_cmd_len=$new_result && 16576 test $i != 17 # 1/2 MB should be enough 16577 do 16578 i=`expr $i + 1` 16579 teststring=$teststring$teststring 16580 done 16581 teststring= 16582 # Add a significant safety factor because C++ compilers can tack on massive 16583 # amounts of additional arguments before passing them to the linker. 16584 # It appears as though 1/2 is a usable value. 16585 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 16586 ;; 16587 esac 16588 16589fi 16590 16591if test -n $lt_cv_sys_max_cmd_len ; then 16592 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 16593echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6 16594else 16595 echo "$as_me:$LINENO: result: none" >&5 16596echo "${ECHO_T}none" >&6 16597fi 16598 16599 16600 16601 16602# Check for command to grab the raw symbol name followed by C symbol from nm. 16603echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 16604echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6 16605if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 16606 echo $ECHO_N "(cached) $ECHO_C" >&6 16607else 16608 16609# These are sane defaults that work on at least a few old systems. 16610# [They come from Ultrix. What could be older than Ultrix?!! ;)] 16611 16612# Character class describing NM global symbol codes. 16613symcode='[BCDEGRST]' 16614 16615# Regexp to match symbols that can be accessed directly from C. 16616sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 16617 16618# Transform an extracted symbol line into a proper C declaration 16619lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" 16620 16621# Transform an extracted symbol line into symbol name and symbol address 16622lt_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'" 16623 16624# Define system-specific variables. 16625case $host_os in 16626aix*) 16627 symcode='[BCDT]' 16628 ;; 16629cygwin* | mingw* | pw32*) 16630 symcode='[ABCDGISTW]' 16631 ;; 16632hpux*) # Its linker distinguishes data from code symbols 16633 if test "$host_cpu" = ia64; then 16634 symcode='[ABCDEGRST]' 16635 fi 16636 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 16637 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'" 16638 ;; 16639linux*) 16640 if test "$host_cpu" = ia64; then 16641 symcode='[ABCDGIRSTW]' 16642 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 16643 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'" 16644 fi 16645 ;; 16646irix* | nonstopux*) 16647 symcode='[BCDEGRST]' 16648 ;; 16649osf*) 16650 symcode='[BCDEGQRST]' 16651 ;; 16652solaris* | sysv5*) 16653 symcode='[BDRT]' 16654 ;; 16655sysv4) 16656 symcode='[DFNSTU]' 16657 ;; 16658esac 16659 16660# Handle CRLF in mingw tool chain 16661opt_cr= 16662case $build_os in 16663mingw*) 16664 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 16665 ;; 16666esac 16667 16668# If we're using GNU nm, then use its standard symbol codes. 16669case `$NM -V 2>&1` in 16670*GNU* | *'with BFD'*) 16671 symcode='[ABCDGIRSTW]' ;; 16672esac 16673 16674# Try without a prefix undercore, then with it. 16675for ac_symprfx in "" "_"; do 16676 16677 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 16678 symxfrm="\\1 $ac_symprfx\\2 \\2" 16679 16680 # Write the raw and C identifiers. 16681 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 16682 16683 # Check to see that the pipe works correctly. 16684 pipe_works=no 16685 16686 rm -f conftest* 16687 cat > conftest.$ac_ext <<EOF 16688#ifdef __cplusplus 16689extern "C" { 16690#endif 16691char nm_test_var; 16692void nm_test_func(){} 16693#ifdef __cplusplus 16694} 16695#endif 16696int main(){nm_test_var='a';nm_test_func();return(0);} 16697EOF 16698 16699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 16700 (eval $ac_compile) 2>&5 16701 ac_status=$? 16702 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16703 (exit $ac_status); }; then 16704 # Now try to grab the symbols. 16705 nlist=conftest.nm 16706 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 16707 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 16708 ac_status=$? 16709 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16710 (exit $ac_status); } && test -s "$nlist"; then 16711 # Try sorting and uniquifying the output. 16712 if sort "$nlist" | uniq > "$nlist"T; then 16713 mv -f "$nlist"T "$nlist" 16714 else 16715 rm -f "$nlist"T 16716 fi 16717 16718 # Make sure that we snagged all the symbols we need. 16719 if grep ' nm_test_var$' "$nlist" >/dev/null; then 16720 if grep ' nm_test_func$' "$nlist" >/dev/null; then 16721 cat <<EOF > conftest.$ac_ext 16722#ifdef __cplusplus 16723extern "C" { 16724#endif 16725 16726EOF 16727 # Now generate the symbol file. 16728 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' 16729 16730 cat <<EOF >> conftest.$ac_ext 16731#if defined (__STDC__) && __STDC__ 16732# define lt_ptr_t void * 16733#else 16734# define lt_ptr_t char * 16735# define const 16736#endif 16737 16738/* The mapping between symbol names and symbols. */ 16739const struct { 16740 const char *name; 16741 lt_ptr_t address; 16742} 16743lt_preloaded_symbols[] = 16744{ 16745EOF 16746 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext 16747 cat <<\EOF >> conftest.$ac_ext 16748 {0, (lt_ptr_t) 0} 16749}; 16750 16751#ifdef __cplusplus 16752} 16753#endif 16754EOF 16755 # Now try linking the two files. 16756 mv conftest.$ac_objext conftstm.$ac_objext 16757 lt_save_LIBS="$LIBS" 16758 lt_save_CFLAGS="$CFLAGS" 16759 LIBS="conftstm.$ac_objext" 16760 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 16761 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 16762 (eval $ac_link) 2>&5 16763 ac_status=$? 16764 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16765 (exit $ac_status); } && test -s conftest${ac_exeext}; then 16766 pipe_works=yes 16767 fi 16768 LIBS="$lt_save_LIBS" 16769 CFLAGS="$lt_save_CFLAGS" 16770 else 16771 echo "cannot find nm_test_func in $nlist" >&5 16772 fi 16773 else 16774 echo "cannot find nm_test_var in $nlist" >&5 16775 fi 16776 else 16777 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 16778 fi 16779 else 16780 echo "$progname: failed program was:" >&5 16781 cat conftest.$ac_ext >&5 16782 fi 16783 rm -f conftest* conftst* 16784 16785 # Do not use the global_symbol_pipe unless it works. 16786 if test "$pipe_works" = yes; then 16787 break 16788 else 16789 lt_cv_sys_global_symbol_pipe= 16790 fi 16791done 16792 16793fi 16794 16795if test -z "$lt_cv_sys_global_symbol_pipe"; then 16796 lt_cv_sys_global_symbol_to_cdecl= 16797fi 16798if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 16799 echo "$as_me:$LINENO: result: failed" >&5 16800echo "${ECHO_T}failed" >&6 16801else 16802 echo "$as_me:$LINENO: result: ok" >&5 16803echo "${ECHO_T}ok" >&6 16804fi 16805 16806echo "$as_me:$LINENO: checking for objdir" >&5 16807echo $ECHO_N "checking for objdir... $ECHO_C" >&6 16808if test "${lt_cv_objdir+set}" = set; then 16809 echo $ECHO_N "(cached) $ECHO_C" >&6 16810else 16811 rm -f .libs 2>/dev/null 16812mkdir .libs 2>/dev/null 16813if test -d .libs; then 16814 lt_cv_objdir=.libs 16815else 16816 # MS-DOS does not allow filenames that begin with a dot. 16817 lt_cv_objdir=_libs 16818fi 16819rmdir .libs 2>/dev/null 16820fi 16821echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 16822echo "${ECHO_T}$lt_cv_objdir" >&6 16823objdir=$lt_cv_objdir 16824 16825 16826 16827 16828 16829case $host_os in 16830aix3*) 16831 # AIX sometimes has problems with the GCC collect2 program. For some 16832 # reason, if we set the COLLECT_NAMES environment variable, the problems 16833 # vanish in a puff of smoke. 16834 if test "X${COLLECT_NAMES+set}" != Xset; then 16835 COLLECT_NAMES= 16836 export COLLECT_NAMES 16837 fi 16838 ;; 16839esac 16840 16841# Sed substitution that helps us do robust quoting. It backslashifies 16842# metacharacters that are still active within double-quoted strings. 16843Xsed='sed -e 1s/^X//' 16844sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' 16845 16846# Same as above, but do not quote variable references. 16847double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' 16848 16849# Sed substitution to delay expansion of an escaped shell variable in a 16850# double_quote_subst'ed string. 16851delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 16852 16853# Sed substitution to avoid accidental globbing in evaled expressions 16854no_glob_subst='s/\*/\\\*/g' 16855 16856# Constants: 16857rm="rm -f" 16858 16859# Global variables: 16860default_ofile=libtool 16861can_build_shared=yes 16862 16863# All known linkers require a `.a' archive for static linking (except MSVC, 16864# which needs '.lib'). 16865libext=a 16866ltmain="$ac_aux_dir/ltmain.sh" 16867ofile="$default_ofile" 16868with_gnu_ld="$lt_cv_prog_gnu_ld" 16869 16870if test -n "$ac_tool_prefix"; then 16871 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 16872set dummy ${ac_tool_prefix}ar; ac_word=$2 16873echo "$as_me:$LINENO: checking for $ac_word" >&5 16874echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 16875if test "${ac_cv_prog_AR+set}" = set; then 16876 echo $ECHO_N "(cached) $ECHO_C" >&6 16877else 16878 if test -n "$AR"; then 16879 ac_cv_prog_AR="$AR" # Let the user override the test. 16880else 16881as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16882for as_dir in $PATH 16883do 16884 IFS=$as_save_IFS 16885 test -z "$as_dir" && as_dir=. 16886 for ac_exec_ext in '' $ac_executable_extensions; do 16887 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16888 ac_cv_prog_AR="${ac_tool_prefix}ar" 16889 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 16890 break 2 16891 fi 16892done 16893done 16894 16895fi 16896fi 16897AR=$ac_cv_prog_AR 16898if test -n "$AR"; then 16899 echo "$as_me:$LINENO: result: $AR" >&5 16900echo "${ECHO_T}$AR" >&6 16901else 16902 echo "$as_me:$LINENO: result: no" >&5 16903echo "${ECHO_T}no" >&6 16904fi 16905 16906fi 16907if test -z "$ac_cv_prog_AR"; then 16908 ac_ct_AR=$AR 16909 # Extract the first word of "ar", so it can be a program name with args. 16910set dummy ar; ac_word=$2 16911echo "$as_me:$LINENO: checking for $ac_word" >&5 16912echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 16913if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 16914 echo $ECHO_N "(cached) $ECHO_C" >&6 16915else 16916 if test -n "$ac_ct_AR"; then 16917 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 16918else 16919as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16920for as_dir in $PATH 16921do 16922 IFS=$as_save_IFS 16923 test -z "$as_dir" && as_dir=. 16924 for ac_exec_ext in '' $ac_executable_extensions; do 16925 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16926 ac_cv_prog_ac_ct_AR="ar" 16927 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 16928 break 2 16929 fi 16930done 16931done 16932 16933 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false" 16934fi 16935fi 16936ac_ct_AR=$ac_cv_prog_ac_ct_AR 16937if test -n "$ac_ct_AR"; then 16938 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 16939echo "${ECHO_T}$ac_ct_AR" >&6 16940else 16941 echo "$as_me:$LINENO: result: no" >&5 16942echo "${ECHO_T}no" >&6 16943fi 16944 16945 AR=$ac_ct_AR 16946else 16947 AR="$ac_cv_prog_AR" 16948fi 16949 16950if test -n "$ac_tool_prefix"; then 16951 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 16952set dummy ${ac_tool_prefix}ranlib; ac_word=$2 16953echo "$as_me:$LINENO: checking for $ac_word" >&5 16954echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 16955if test "${ac_cv_prog_RANLIB+set}" = set; then 16956 echo $ECHO_N "(cached) $ECHO_C" >&6 16957else 16958 if test -n "$RANLIB"; then 16959 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 16960else 16961as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16962for as_dir in $PATH 16963do 16964 IFS=$as_save_IFS 16965 test -z "$as_dir" && as_dir=. 16966 for ac_exec_ext in '' $ac_executable_extensions; do 16967 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16968 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 16969 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 16970 break 2 16971 fi 16972done 16973done 16974 16975fi 16976fi 16977RANLIB=$ac_cv_prog_RANLIB 16978if test -n "$RANLIB"; then 16979 echo "$as_me:$LINENO: result: $RANLIB" >&5 16980echo "${ECHO_T}$RANLIB" >&6 16981else 16982 echo "$as_me:$LINENO: result: no" >&5 16983echo "${ECHO_T}no" >&6 16984fi 16985 16986fi 16987if test -z "$ac_cv_prog_RANLIB"; then 16988 ac_ct_RANLIB=$RANLIB 16989 # Extract the first word of "ranlib", so it can be a program name with args. 16990set dummy ranlib; ac_word=$2 16991echo "$as_me:$LINENO: checking for $ac_word" >&5 16992echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 16993if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 16994 echo $ECHO_N "(cached) $ECHO_C" >&6 16995else 16996 if test -n "$ac_ct_RANLIB"; then 16997 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 16998else 16999as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17000for as_dir in $PATH 17001do 17002 IFS=$as_save_IFS 17003 test -z "$as_dir" && as_dir=. 17004 for ac_exec_ext in '' $ac_executable_extensions; do 17005 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17006 ac_cv_prog_ac_ct_RANLIB="ranlib" 17007 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 17008 break 2 17009 fi 17010done 17011done 17012 17013 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" 17014fi 17015fi 17016ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 17017if test -n "$ac_ct_RANLIB"; then 17018 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 17019echo "${ECHO_T}$ac_ct_RANLIB" >&6 17020else 17021 echo "$as_me:$LINENO: result: no" >&5 17022echo "${ECHO_T}no" >&6 17023fi 17024 17025 RANLIB=$ac_ct_RANLIB 17026else 17027 RANLIB="$ac_cv_prog_RANLIB" 17028fi 17029 17030if test -n "$ac_tool_prefix"; then 17031 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 17032set dummy ${ac_tool_prefix}strip; ac_word=$2 17033echo "$as_me:$LINENO: checking for $ac_word" >&5 17034echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 17035if test "${ac_cv_prog_STRIP+set}" = set; then 17036 echo $ECHO_N "(cached) $ECHO_C" >&6 17037else 17038 if test -n "$STRIP"; then 17039 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 17040else 17041as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17042for as_dir in $PATH 17043do 17044 IFS=$as_save_IFS 17045 test -z "$as_dir" && as_dir=. 17046 for ac_exec_ext in '' $ac_executable_extensions; do 17047 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17048 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 17049 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 17050 break 2 17051 fi 17052done 17053done 17054 17055fi 17056fi 17057STRIP=$ac_cv_prog_STRIP 17058if test -n "$STRIP"; then 17059 echo "$as_me:$LINENO: result: $STRIP" >&5 17060echo "${ECHO_T}$STRIP" >&6 17061else 17062 echo "$as_me:$LINENO: result: no" >&5 17063echo "${ECHO_T}no" >&6 17064fi 17065 17066fi 17067if test -z "$ac_cv_prog_STRIP"; then 17068 ac_ct_STRIP=$STRIP 17069 # Extract the first word of "strip", so it can be a program name with args. 17070set dummy strip; ac_word=$2 17071echo "$as_me:$LINENO: checking for $ac_word" >&5 17072echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 17073if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 17074 echo $ECHO_N "(cached) $ECHO_C" >&6 17075else 17076 if test -n "$ac_ct_STRIP"; then 17077 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 17078else 17079as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17080for as_dir in $PATH 17081do 17082 IFS=$as_save_IFS 17083 test -z "$as_dir" && as_dir=. 17084 for ac_exec_ext in '' $ac_executable_extensions; do 17085 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17086 ac_cv_prog_ac_ct_STRIP="strip" 17087 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 17088 break 2 17089 fi 17090done 17091done 17092 17093 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" 17094fi 17095fi 17096ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 17097if test -n "$ac_ct_STRIP"; then 17098 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 17099echo "${ECHO_T}$ac_ct_STRIP" >&6 17100else 17101 echo "$as_me:$LINENO: result: no" >&5 17102echo "${ECHO_T}no" >&6 17103fi 17104 17105 STRIP=$ac_ct_STRIP 17106else 17107 STRIP="$ac_cv_prog_STRIP" 17108fi 17109 17110 17111old_CC="$CC" 17112old_CFLAGS="$CFLAGS" 17113 17114# Set sane defaults for various variables 17115test -z "$AR" && AR=ar 17116test -z "$AR_FLAGS" && AR_FLAGS=cru 17117test -z "$AS" && AS=as 17118test -z "$CC" && CC=cc 17119test -z "$LTCC" && LTCC=$CC 17120test -z "$DLLTOOL" && DLLTOOL=dlltool 17121test -z "$LD" && LD=ld 17122test -z "$LN_S" && LN_S="ln -s" 17123test -z "$MAGIC_CMD" && MAGIC_CMD=file 17124test -z "$NM" && NM=nm 17125test -z "$SED" && SED=sed 17126test -z "$OBJDUMP" && OBJDUMP=objdump 17127test -z "$RANLIB" && RANLIB=: 17128test -z "$STRIP" && STRIP=: 17129test -z "$ac_objext" && ac_objext=o 17130 17131# Determine commands to create old-style static archives. 17132old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' 17133old_postinstall_cmds='chmod 644 $oldlib' 17134old_postuninstall_cmds= 17135 17136if test -n "$RANLIB"; then 17137 case $host_os in 17138 openbsd*) 17139 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds" 17140 ;; 17141 *) 17142 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds" 17143 ;; 17144 esac 17145 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 17146fi 17147 17148for cc_temp in $compiler""; do 17149 case $cc_temp in 17150 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 17151 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 17152 \-*) ;; 17153 *) break;; 17154 esac 17155done 17156cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 17157 17158 17159# Only perform the check for file, if the check method requires it 17160case $deplibs_check_method in 17161file_magic*) 17162 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 17163 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 17164echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 17165if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 17166 echo $ECHO_N "(cached) $ECHO_C" >&6 17167else 17168 case $MAGIC_CMD in 17169[\\/*] | ?:[\\/]*) 17170 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 17171 ;; 17172*) 17173 lt_save_MAGIC_CMD="$MAGIC_CMD" 17174 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 17175 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 17176 for ac_dir in $ac_dummy; do 17177 IFS="$lt_save_ifs" 17178 test -z "$ac_dir" && ac_dir=. 17179 if test -f $ac_dir/${ac_tool_prefix}file; then 17180 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 17181 if test -n "$file_magic_test_file"; then 17182 case $deplibs_check_method in 17183 "file_magic "*) 17184 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 17185 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 17186 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 17187 $EGREP "$file_magic_regex" > /dev/null; then 17188 : 17189 else 17190 cat <<EOF 1>&2 17191 17192*** Warning: the command libtool uses to detect shared libraries, 17193*** $file_magic_cmd, produces output that libtool cannot recognize. 17194*** The result is that libtool may fail to recognize shared libraries 17195*** as such. This will affect the creation of libtool libraries that 17196*** depend on shared libraries, but programs linked with such libtool 17197*** libraries will work regardless of this problem. Nevertheless, you 17198*** may want to report the problem to your system manager and/or to 17199*** bug-libtool@gnu.org 17200 17201EOF 17202 fi ;; 17203 esac 17204 fi 17205 break 17206 fi 17207 done 17208 IFS="$lt_save_ifs" 17209 MAGIC_CMD="$lt_save_MAGIC_CMD" 17210 ;; 17211esac 17212fi 17213 17214MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 17215if test -n "$MAGIC_CMD"; then 17216 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 17217echo "${ECHO_T}$MAGIC_CMD" >&6 17218else 17219 echo "$as_me:$LINENO: result: no" >&5 17220echo "${ECHO_T}no" >&6 17221fi 17222 17223if test -z "$lt_cv_path_MAGIC_CMD"; then 17224 if test -n "$ac_tool_prefix"; then 17225 echo "$as_me:$LINENO: checking for file" >&5 17226echo $ECHO_N "checking for file... $ECHO_C" >&6 17227if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 17228 echo $ECHO_N "(cached) $ECHO_C" >&6 17229else 17230 case $MAGIC_CMD in 17231[\\/*] | ?:[\\/]*) 17232 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 17233 ;; 17234*) 17235 lt_save_MAGIC_CMD="$MAGIC_CMD" 17236 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 17237 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 17238 for ac_dir in $ac_dummy; do 17239 IFS="$lt_save_ifs" 17240 test -z "$ac_dir" && ac_dir=. 17241 if test -f $ac_dir/file; then 17242 lt_cv_path_MAGIC_CMD="$ac_dir/file" 17243 if test -n "$file_magic_test_file"; then 17244 case $deplibs_check_method in 17245 "file_magic "*) 17246 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 17247 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 17248 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 17249 $EGREP "$file_magic_regex" > /dev/null; then 17250 : 17251 else 17252 cat <<EOF 1>&2 17253 17254*** Warning: the command libtool uses to detect shared libraries, 17255*** $file_magic_cmd, produces output that libtool cannot recognize. 17256*** The result is that libtool may fail to recognize shared libraries 17257*** as such. This will affect the creation of libtool libraries that 17258*** depend on shared libraries, but programs linked with such libtool 17259*** libraries will work regardless of this problem. Nevertheless, you 17260*** may want to report the problem to your system manager and/or to 17261*** bug-libtool@gnu.org 17262 17263EOF 17264 fi ;; 17265 esac 17266 fi 17267 break 17268 fi 17269 done 17270 IFS="$lt_save_ifs" 17271 MAGIC_CMD="$lt_save_MAGIC_CMD" 17272 ;; 17273esac 17274fi 17275 17276MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 17277if test -n "$MAGIC_CMD"; then 17278 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 17279echo "${ECHO_T}$MAGIC_CMD" >&6 17280else 17281 echo "$as_me:$LINENO: result: no" >&5 17282echo "${ECHO_T}no" >&6 17283fi 17284 17285 else 17286 MAGIC_CMD=: 17287 fi 17288fi 17289 17290 fi 17291 ;; 17292esac 17293 17294enable_dlopen=no 17295enable_win32_dll=no 17296 17297# Check whether --enable-libtool-lock or --disable-libtool-lock was given. 17298if test "${enable_libtool_lock+set}" = set; then 17299 enableval="$enable_libtool_lock" 17300 17301fi; 17302test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 17303 17304 17305# Check whether --with-pic or --without-pic was given. 17306if test "${with_pic+set}" = set; then 17307 withval="$with_pic" 17308 pic_mode="$withval" 17309else 17310 pic_mode=default 17311fi; 17312test -z "$pic_mode" && pic_mode=default 17313 17314# Use C for the default configuration in the libtool script 17315tagname= 17316lt_save_CC="$CC" 17317ac_ext=c 17318ac_cpp='$CPP $CPPFLAGS' 17319ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17320ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17321ac_compiler_gnu=$ac_cv_c_compiler_gnu 17322 17323 17324# Source file extension for C test sources. 17325ac_ext=c 17326 17327# Object file extension for compiled C test sources. 17328objext=o 17329objext=$objext 17330 17331# Code to be used in simple compile tests 17332lt_simple_compile_test_code="int some_variable = 0;\n" 17333 17334# Code to be used in simple link tests 17335lt_simple_link_test_code='int main(){return(0);}\n' 17336 17337 17338# If no C compiler was specified, use CC. 17339LTCC=${LTCC-"$CC"} 17340 17341# Allow CC to be a program name with arguments. 17342compiler=$CC 17343 17344 17345# save warnings/boilerplate of simple test code 17346ac_outfile=conftest.$ac_objext 17347printf "$lt_simple_compile_test_code" >conftest.$ac_ext 17348eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 17349_lt_compiler_boilerplate=`cat conftest.err` 17350$rm conftest* 17351 17352ac_outfile=conftest.$ac_objext 17353printf "$lt_simple_link_test_code" >conftest.$ac_ext 17354eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 17355_lt_linker_boilerplate=`cat conftest.err` 17356$rm conftest* 17357 17358 17359# 17360# Check for any special shared library compilation flags. 17361# 17362lt_prog_cc_shlib= 17363if test "$GCC" = no; then 17364 case $host_os in 17365 sco3.2v5*) 17366 lt_prog_cc_shlib='-belf' 17367 ;; 17368 esac 17369fi 17370if test -n "$lt_prog_cc_shlib"; then 17371 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5 17372echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;} 17373 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then : 17374 else 17375 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5 17376echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;} 17377 lt_cv_prog_cc_can_build_shared=no 17378 fi 17379fi 17380 17381 17382# 17383# Check to make sure the static flag actually works. 17384# 17385echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5 17386echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6 17387if test "${lt_prog_compiler_static_works+set}" = set; then 17388 echo $ECHO_N "(cached) $ECHO_C" >&6 17389else 17390 lt_prog_compiler_static_works=no 17391 save_LDFLAGS="$LDFLAGS" 17392 LDFLAGS="$LDFLAGS $lt_prog_compiler_static" 17393 printf "$lt_simple_link_test_code" > conftest.$ac_ext 17394 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 17395 # The linker can only warn and ignore the option if not recognized 17396 # So say no if there are warnings 17397 if test -s conftest.err; then 17398 # Append any errors to the config.log. 17399 cat conftest.err 1>&5 17400 $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp 17401 $SED '/^$/d' conftest.err >conftest.er2 17402 if diff conftest.exp conftest.er2 >/dev/null; then 17403 lt_prog_compiler_static_works=yes 17404 fi 17405 else 17406 lt_prog_compiler_static_works=yes 17407 fi 17408 fi 17409 $rm conftest* 17410 LDFLAGS="$save_LDFLAGS" 17411 17412fi 17413echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 17414echo "${ECHO_T}$lt_prog_compiler_static_works" >&6 17415 17416if test x"$lt_prog_compiler_static_works" = xyes; then 17417 : 17418else 17419 lt_prog_compiler_static= 17420fi 17421 17422 17423 17424 17425lt_prog_compiler_no_builtin_flag= 17426 17427if test "$GCC" = yes; then 17428 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 17429 17430 17431echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 17432echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 17433if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 17434 echo $ECHO_N "(cached) $ECHO_C" >&6 17435else 17436 lt_cv_prog_compiler_rtti_exceptions=no 17437 ac_outfile=conftest.$ac_objext 17438 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 17439 lt_compiler_flag="-fno-rtti -fno-exceptions" 17440 # Insert the option either (1) after the last *FLAGS variable, or 17441 # (2) before a word containing "conftest.", or (3) at the end. 17442 # Note that $ac_compile itself does not contain backslashes and begins 17443 # with a dollar sign (not a hyphen), so the echo should work correctly. 17444 # The option is referenced via a variable to avoid confusing sed. 17445 lt_compile=`echo "$ac_compile" | $SED \ 17446 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 17447 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17448 -e 's:$: $lt_compiler_flag:'` 17449 (eval echo "\"\$as_me:17449: $lt_compile\"" >&5) 17450 (eval "$lt_compile" 2>conftest.err) 17451 ac_status=$? 17452 cat conftest.err >&5 17453 echo "$as_me:17453: \$? = $ac_status" >&5 17454 if (exit $ac_status) && test -s "$ac_outfile"; then 17455 # The compiler can only warn and ignore the option if not recognized 17456 # So say no if there are warnings other than the usual output. 17457 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp 17458 $SED '/^$/d' conftest.err >conftest.er2 17459 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then 17460 lt_cv_prog_compiler_rtti_exceptions=yes 17461 fi 17462 fi 17463 $rm conftest* 17464 17465fi 17466echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 17467echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 17468 17469if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 17470 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 17471else 17472 : 17473fi 17474 17475fi 17476 17477lt_prog_compiler_wl= 17478lt_prog_compiler_pic= 17479lt_prog_compiler_static= 17480 17481echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 17482echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 17483 17484 if test "$GCC" = yes; then 17485 lt_prog_compiler_wl='-Wl,' 17486 lt_prog_compiler_static='-static' 17487 17488 case $host_os in 17489 aix*) 17490 # All AIX code is PIC. 17491 if test "$host_cpu" = ia64; then 17492 # AIX 5 now supports IA64 processor 17493 lt_prog_compiler_static='-Bstatic' 17494 fi 17495 ;; 17496 17497 amigaos*) 17498 # FIXME: we need at least 68020 code to build shared libraries, but 17499 # adding the `-m68020' flag to GCC prevents building anything better, 17500 # like `-m68040'. 17501 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 17502 ;; 17503 17504 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 17505 # PIC is the default for these OSes. 17506 ;; 17507 17508 mingw* | pw32* | os2*) 17509 # This hack is so that the source file can tell whether it is being 17510 # built for inclusion in a dll (and should export symbols for example). 17511 lt_prog_compiler_pic='-DDLL_EXPORT' 17512 ;; 17513 17514 darwin* | rhapsody*) 17515 # PIC is the default on this platform 17516 # Common symbols not allowed in MH_DYLIB files 17517 lt_prog_compiler_pic='-fno-common' 17518 ;; 17519 17520 msdosdjgpp*) 17521 # Just because we use GCC doesn't mean we suddenly get shared libraries 17522 # on systems that don't support them. 17523 lt_prog_compiler_can_build_shared=no 17524 enable_shared=no 17525 ;; 17526 17527 sysv4*MP*) 17528 if test -d /usr/nec; then 17529 lt_prog_compiler_pic=-Kconform_pic 17530 fi 17531 ;; 17532 17533 hpux*) 17534 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 17535 # not for PA HP-UX. 17536 case $host_cpu in 17537 hppa*64*|ia64*) 17538 # +Z the default 17539 ;; 17540 *) 17541 lt_prog_compiler_pic='-fPIC' 17542 ;; 17543 esac 17544 ;; 17545 17546 *) 17547 lt_prog_compiler_pic='-fPIC' 17548 ;; 17549 esac 17550 else 17551 # PORTME Check for flag to pass linker flags through the system compiler. 17552 case $host_os in 17553 aix*) 17554 lt_prog_compiler_wl='-Wl,' 17555 if test "$host_cpu" = ia64; then 17556 # AIX 5 now supports IA64 processor 17557 lt_prog_compiler_static='-Bstatic' 17558 else 17559 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 17560 fi 17561 ;; 17562 darwin*) 17563 # PIC is the default on this platform 17564 # Common symbols not allowed in MH_DYLIB files 17565 case $cc_basename in 17566 xlc*) 17567 lt_prog_compiler_pic='-qnocommon' 17568 lt_prog_compiler_wl='-Wl,' 17569 ;; 17570 esac 17571 ;; 17572 17573 mingw* | pw32* | os2*) 17574 # This hack is so that the source file can tell whether it is being 17575 # built for inclusion in a dll (and should export symbols for example). 17576 lt_prog_compiler_pic='-DDLL_EXPORT' 17577 ;; 17578 17579 hpux9* | hpux10* | hpux11*) 17580 lt_prog_compiler_wl='-Wl,' 17581 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 17582 # not for PA HP-UX. 17583 case $host_cpu in 17584 hppa*64*|ia64*) 17585 # +Z the default 17586 ;; 17587 *) 17588 lt_prog_compiler_pic='+Z' 17589 ;; 17590 esac 17591 # Is there a better lt_prog_compiler_static that works with the bundled CC? 17592 lt_prog_compiler_static='${wl}-a ${wl}archive' 17593 ;; 17594 17595 irix5* | irix6* | nonstopux*) 17596 lt_prog_compiler_wl='-Wl,' 17597 # PIC (with -KPIC) is the default. 17598 lt_prog_compiler_static='-non_shared' 17599 ;; 17600 17601 newsos6) 17602 lt_prog_compiler_pic='-KPIC' 17603 lt_prog_compiler_static='-Bstatic' 17604 ;; 17605 17606 linux*) 17607 case $cc_basename in 17608 icc* | ecc*) 17609 lt_prog_compiler_wl='-Wl,' 17610 lt_prog_compiler_pic='-KPIC' 17611 lt_prog_compiler_static='-static' 17612 ;; 17613 pgcc* | pgf77* | pgf90* | pgf95*) 17614 # Portland Group compilers (*not* the Pentium gcc compiler, 17615 # which looks to be a dead project) 17616 lt_prog_compiler_wl='-Wl,' 17617 lt_prog_compiler_pic='-fpic' 17618 lt_prog_compiler_static='-Bstatic' 17619 ;; 17620 ccc*) 17621 lt_prog_compiler_wl='-Wl,' 17622 # All Alpha code is PIC. 17623 lt_prog_compiler_static='-non_shared' 17624 ;; 17625 esac 17626 ;; 17627 17628 osf3* | osf4* | osf5*) 17629 lt_prog_compiler_wl='-Wl,' 17630 # All OSF/1 code is PIC. 17631 lt_prog_compiler_static='-non_shared' 17632 ;; 17633 17634 sco3.2v5*) 17635 lt_prog_compiler_pic='-Kpic' 17636 lt_prog_compiler_static='-dn' 17637 ;; 17638 17639 solaris*) 17640 lt_prog_compiler_pic='-KPIC' 17641 lt_prog_compiler_static='-Bstatic' 17642 case $cc_basename in 17643 f77* | f90* | f95*) 17644 lt_prog_compiler_wl='-Qoption ld ';; 17645 *) 17646 lt_prog_compiler_wl='-Wl,';; 17647 esac 17648 ;; 17649 17650 sunos4*) 17651 lt_prog_compiler_wl='-Qoption ld ' 17652 lt_prog_compiler_pic='-PIC' 17653 lt_prog_compiler_static='-Bstatic' 17654 ;; 17655 17656 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 17657 lt_prog_compiler_wl='-Wl,' 17658 lt_prog_compiler_pic='-KPIC' 17659 lt_prog_compiler_static='-Bstatic' 17660 ;; 17661 17662 sysv4*MP*) 17663 if test -d /usr/nec ;then 17664 lt_prog_compiler_pic='-Kconform_pic' 17665 lt_prog_compiler_static='-Bstatic' 17666 fi 17667 ;; 17668 17669 unicos*) 17670 lt_prog_compiler_wl='-Wl,' 17671 lt_prog_compiler_can_build_shared=no 17672 ;; 17673 17674 uts4*) 17675 lt_prog_compiler_pic='-pic' 17676 lt_prog_compiler_static='-Bstatic' 17677 ;; 17678 17679 *) 17680 lt_prog_compiler_can_build_shared=no 17681 ;; 17682 esac 17683 fi 17684 17685echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 17686echo "${ECHO_T}$lt_prog_compiler_pic" >&6 17687 17688# 17689# Check to make sure the PIC flag actually works. 17690# 17691if test -n "$lt_prog_compiler_pic"; then 17692 17693echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 17694echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6 17695if test "${lt_prog_compiler_pic_works+set}" = set; then 17696 echo $ECHO_N "(cached) $ECHO_C" >&6 17697else 17698 lt_prog_compiler_pic_works=no 17699 ac_outfile=conftest.$ac_objext 17700 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 17701 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 17702 # Insert the option either (1) after the last *FLAGS variable, or 17703 # (2) before a word containing "conftest.", or (3) at the end. 17704 # Note that $ac_compile itself does not contain backslashes and begins 17705 # with a dollar sign (not a hyphen), so the echo should work correctly. 17706 # The option is referenced via a variable to avoid confusing sed. 17707 lt_compile=`echo "$ac_compile" | $SED \ 17708 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 17709 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17710 -e 's:$: $lt_compiler_flag:'` 17711 (eval echo "\"\$as_me:17711: $lt_compile\"" >&5) 17712 (eval "$lt_compile" 2>conftest.err) 17713 ac_status=$? 17714 cat conftest.err >&5 17715 echo "$as_me:17715: \$? = $ac_status" >&5 17716 if (exit $ac_status) && test -s "$ac_outfile"; then 17717 # The compiler can only warn and ignore the option if not recognized 17718 # So say no if there are warnings other than the usual output. 17719 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp 17720 $SED '/^$/d' conftest.err >conftest.er2 17721 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then 17722 lt_prog_compiler_pic_works=yes 17723 fi 17724 fi 17725 $rm conftest* 17726 17727fi 17728echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 17729echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6 17730 17731if test x"$lt_prog_compiler_pic_works" = xyes; then 17732 case $lt_prog_compiler_pic in 17733 "" | " "*) ;; 17734 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 17735 esac 17736else 17737 lt_prog_compiler_pic= 17738 lt_prog_compiler_can_build_shared=no 17739fi 17740 17741fi 17742case $host_os in 17743 # For platforms which do not support PIC, -DPIC is meaningless: 17744 *djgpp*) 17745 lt_prog_compiler_pic= 17746 ;; 17747 *) 17748 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 17749 ;; 17750esac 17751 17752echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 17753echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 17754if test "${lt_cv_prog_compiler_c_o+set}" = set; then 17755 echo $ECHO_N "(cached) $ECHO_C" >&6 17756else 17757 lt_cv_prog_compiler_c_o=no 17758 $rm -r conftest 2>/dev/null 17759 mkdir conftest 17760 cd conftest 17761 mkdir out 17762 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 17763 17764 lt_compiler_flag="-o out/conftest2.$ac_objext" 17765 # Insert the option either (1) after the last *FLAGS variable, or 17766 # (2) before a word containing "conftest.", or (3) at the end. 17767 # Note that $ac_compile itself does not contain backslashes and begins 17768 # with a dollar sign (not a hyphen), so the echo should work correctly. 17769 lt_compile=`echo "$ac_compile" | $SED \ 17770 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 17771 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17772 -e 's:$: $lt_compiler_flag:'` 17773 (eval echo "\"\$as_me:17773: $lt_compile\"" >&5) 17774 (eval "$lt_compile" 2>out/conftest.err) 17775 ac_status=$? 17776 cat out/conftest.err >&5 17777 echo "$as_me:17777: \$? = $ac_status" >&5 17778 if (exit $ac_status) && test -s out/conftest2.$ac_objext 17779 then 17780 # The compiler can only warn and ignore the option if not recognized 17781 # So say no if there are warnings 17782 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp 17783 $SED '/^$/d' out/conftest.err >out/conftest.er2 17784 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then 17785 lt_cv_prog_compiler_c_o=yes 17786 fi 17787 fi 17788 chmod u+w . 2>&5 17789 $rm conftest* 17790 # SGI C++ compiler will create directory out/ii_files/ for 17791 # template instantiation 17792 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 17793 $rm out/* && rmdir out 17794 cd .. 17795 rmdir conftest 17796 $rm conftest* 17797 17798fi 17799echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 17800echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 17801 17802 17803hard_links="nottested" 17804if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 17805 # do not overwrite the value of need_locks provided by the user 17806 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 17807echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 17808 hard_links=yes 17809 $rm conftest* 17810 ln conftest.a conftest.b 2>/dev/null && hard_links=no 17811 touch conftest.a 17812 ln conftest.a conftest.b 2>&5 || hard_links=no 17813 ln conftest.a conftest.b 2>/dev/null && hard_links=no 17814 echo "$as_me:$LINENO: result: $hard_links" >&5 17815echo "${ECHO_T}$hard_links" >&6 17816 if test "$hard_links" = no; then 17817 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 17818echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 17819 need_locks=warn 17820 fi 17821else 17822 need_locks=no 17823fi 17824 17825echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 17826echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 17827 17828 runpath_var= 17829 allow_undefined_flag= 17830 enable_shared_with_static_runtimes=no 17831 archive_cmds= 17832 archive_expsym_cmds= 17833 old_archive_From_new_cmds= 17834 old_archive_from_expsyms_cmds= 17835 export_dynamic_flag_spec= 17836 whole_archive_flag_spec= 17837 thread_safe_flag_spec= 17838 hardcode_libdir_flag_spec= 17839 hardcode_libdir_flag_spec_ld= 17840 hardcode_libdir_separator= 17841 hardcode_direct=no 17842 hardcode_minus_L=no 17843 hardcode_shlibpath_var=unsupported 17844 link_all_deplibs=unknown 17845 hardcode_automatic=no 17846 module_cmds= 17847 module_expsym_cmds= 17848 always_export_symbols=no 17849 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 17850 # include_expsyms should be a list of space-separated symbols to be *always* 17851 # included in the symbol list 17852 include_expsyms= 17853 # exclude_expsyms can be an extended regexp of symbols to exclude 17854 # it will be wrapped by ` (' and `)$', so one must not match beginning or 17855 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 17856 # as well as any symbol that contains `d'. 17857 exclude_expsyms="_GLOBAL_OFFSET_TABLE_" 17858 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 17859 # platforms (ab)use it in PIC code, but their linkers get confused if 17860 # the symbol is explicitly referenced. Since portable code cannot 17861 # rely on this symbol name, it's probably fine to never include it in 17862 # preloaded symbol tables. 17863 extract_expsyms_cmds= 17864 # Just being paranoid about ensuring that cc_basename is set. 17865 for cc_temp in $compiler""; do 17866 case $cc_temp in 17867 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 17868 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 17869 \-*) ;; 17870 *) break;; 17871 esac 17872done 17873cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 17874 17875 case $host_os in 17876 cygwin* | mingw* | pw32*) 17877 # FIXME: the MSVC++ port hasn't been tested in a loooong time 17878 # When not using gcc, we currently assume that we are using 17879 # Microsoft Visual C++. 17880 if test "$GCC" != yes; then 17881 with_gnu_ld=no 17882 fi 17883 ;; 17884 openbsd*) 17885 with_gnu_ld=no 17886 ;; 17887 esac 17888 17889 ld_shlibs=yes 17890 if test "$with_gnu_ld" = yes; then 17891 # If archive_cmds runs LD, not CC, wlarc should be empty 17892 wlarc='${wl}' 17893 17894 # Set some defaults for GNU ld with shared library support. These 17895 # are reset later if shared libraries are not supported. Putting them 17896 # here allows them to be overridden if necessary. 17897 runpath_var=LD_RUN_PATH 17898 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' 17899 export_dynamic_flag_spec='${wl}--export-dynamic' 17900 # ancient GNU ld didn't support --whole-archive et. al. 17901 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 17902 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 17903 else 17904 whole_archive_flag_spec= 17905 fi 17906 supports_anon_versioning=no 17907 case `$LD -v 2>/dev/null` in 17908 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 17909 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 17910 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 17911 *\ 2.11.*) ;; # other 2.11 versions 17912 *) supports_anon_versioning=yes ;; 17913 esac 17914 17915 # See if GNU ld supports shared libraries. 17916 case $host_os in 17917 aix3* | aix4* | aix5*) 17918 # On AIX/PPC, the GNU linker is very broken 17919 if test "$host_cpu" != ia64; then 17920 ld_shlibs=no 17921 cat <<EOF 1>&2 17922 17923*** Warning: the GNU linker, at least up to release 2.9.1, is reported 17924*** to be unable to reliably create shared libraries on AIX. 17925*** Therefore, libtool is disabling shared libraries support. If you 17926*** really care for shared libraries, you may want to modify your PATH 17927*** so that a non-GNU linker is found, and then restart. 17928 17929EOF 17930 fi 17931 ;; 17932 17933 amigaos*) 17934 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)' 17935 hardcode_libdir_flag_spec='-L$libdir' 17936 hardcode_minus_L=yes 17937 17938 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 17939 # that the semantics of dynamic libraries on AmigaOS, at least up 17940 # to version 4, is to share data among multiple programs linked 17941 # with the same dynamic library. Since this doesn't match the 17942 # behavior of shared libraries on other platforms, we can't use 17943 # them. 17944 ld_shlibs=no 17945 ;; 17946 17947 beos*) 17948 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17949 allow_undefined_flag=unsupported 17950 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 17951 # support --undefined. This deserves some investigation. FIXME 17952 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17953 else 17954 ld_shlibs=no 17955 fi 17956 ;; 17957 17958 cygwin* | mingw* | pw32*) 17959 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 17960 # as there is no search path for DLLs. 17961 hardcode_libdir_flag_spec='-L$libdir' 17962 allow_undefined_flag=unsupported 17963 always_export_symbols=no 17964 enable_shared_with_static_runtimes=yes 17965 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 17966 17967 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 17968 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 17969 # If the export-symbols file already is a .def file (1st line 17970 # is EXPORTS), use it as is; otherwise, prepend... 17971 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 17972 cp $export_symbols $output_objdir/$soname.def; 17973 else 17974 echo EXPORTS > $output_objdir/$soname.def; 17975 cat $export_symbols >> $output_objdir/$soname.def; 17976 fi~ 17977 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 17978 else 17979 ld_shlibs=no 17980 fi 17981 ;; 17982 17983 linux*) 17984 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17985 tmp_addflag= 17986 case $cc_basename,$host_cpu in 17987 pgcc*) # Portland Group C compiler 17988 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' 17989 tmp_addflag=' $pic_flag' 17990 ;; 17991 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 17992 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' 17993 tmp_addflag=' $pic_flag -Mnomain' ;; 17994 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 17995 tmp_addflag=' -i_dynamic' ;; 17996 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 17997 tmp_addflag=' -i_dynamic -nofor_main' ;; 17998 ifc* | ifort*) # Intel Fortran compiler 17999 tmp_addflag=' -nofor_main' ;; 18000 esac 18001 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 18002 18003 if test $supports_anon_versioning = yes; then 18004 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ 18005 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 18006 $echo "local: *; };" >> $output_objdir/$libname.ver~ 18007 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 18008 fi 18009 else 18010 ld_shlibs=no 18011 fi 18012 ;; 18013 18014 netbsd*) 18015 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 18016 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 18017 wlarc= 18018 else 18019 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 18020 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 18021 fi 18022 ;; 18023 18024 solaris* | sysv5*) 18025 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 18026 ld_shlibs=no 18027 cat <<EOF 1>&2 18028 18029*** Warning: The releases 2.8.* of the GNU linker cannot reliably 18030*** create shared libraries on Solaris systems. Therefore, libtool 18031*** is disabling shared libraries support. We urge you to upgrade GNU 18032*** binutils to release 2.9.1 or newer. Another option is to modify 18033*** your PATH or compiler configuration so that the native linker is 18034*** used, and then restart. 18035 18036EOF 18037 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 18038 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 18039 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 18040 else 18041 ld_shlibs=no 18042 fi 18043 ;; 18044 18045 sunos4*) 18046 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 18047 wlarc= 18048 hardcode_direct=yes 18049 hardcode_shlibpath_var=no 18050 ;; 18051 18052 *) 18053 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 18054 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 18055 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 18056 else 18057 ld_shlibs=no 18058 fi 18059 ;; 18060 esac 18061 18062 if test "$ld_shlibs" = no; then 18063 runpath_var= 18064 hardcode_libdir_flag_spec= 18065 export_dynamic_flag_spec= 18066 whole_archive_flag_spec= 18067 fi 18068 else 18069 # PORTME fill in a description of your system's linker (not GNU ld) 18070 case $host_os in 18071 aix3*) 18072 allow_undefined_flag=unsupported 18073 always_export_symbols=yes 18074 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' 18075 # Note: this linker hardcodes the directories in LIBPATH if there 18076 # are no directories specified by -L. 18077 hardcode_minus_L=yes 18078 if test "$GCC" = yes && test -z "$link_static_flag"; then 18079 # Neither direct hardcoding nor static linking is supported with a 18080 # broken collect2. 18081 hardcode_direct=unsupported 18082 fi 18083 ;; 18084 18085 aix4* | aix5*) 18086 if test "$host_cpu" = ia64; then 18087 # On IA64, the linker does run time linking by default, so we don't 18088 # have to do anything special. 18089 aix_use_runtimelinking=no 18090 exp_sym_flag='-Bexport' 18091 no_entry_flag="" 18092 else 18093 # If we're using GNU nm, then we don't want the "-C" option. 18094 # -C means demangle to AIX nm, but means don't demangle with GNU nm 18095 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 18096 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' 18097 else 18098 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' 18099 fi 18100 aix_use_runtimelinking=no 18101 18102 # Test if we are trying to use run time linking or normal 18103 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 18104 # need to do runtime linking. 18105 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 18106 for ld_flag in $LDFLAGS; do 18107 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 18108 aix_use_runtimelinking=yes 18109 break 18110 fi 18111 done 18112 esac 18113 18114 exp_sym_flag='-bexport' 18115 no_entry_flag='-bnoentry' 18116 fi 18117 18118 # When large executables or shared objects are built, AIX ld can 18119 # have problems creating the table of contents. If linking a library 18120 # or program results in "error TOC overflow" add -mminimal-toc to 18121 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 18122 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 18123 18124 archive_cmds='' 18125 hardcode_direct=yes 18126 hardcode_libdir_separator=':' 18127 link_all_deplibs=yes 18128 18129 if test "$GCC" = yes; then 18130 case $host_os in aix4.[012]|aix4.[012].*) 18131 # We only want to do this on AIX 4.2 and lower, the check 18132 # below for broken collect2 doesn't work under 4.3+ 18133 collect2name=`${CC} -print-prog-name=collect2` 18134 if test -f "$collect2name" && \ 18135 strings "$collect2name" | grep resolve_lib_name >/dev/null 18136 then 18137 # We have reworked collect2 18138 hardcode_direct=yes 18139 else 18140 # We have old collect2 18141 hardcode_direct=unsupported 18142 # It fails to find uninstalled libraries when the uninstalled 18143 # path is not listed in the libpath. Setting hardcode_minus_L 18144 # to unsupported forces relinking 18145 hardcode_minus_L=yes 18146 hardcode_libdir_flag_spec='-L$libdir' 18147 hardcode_libdir_separator= 18148 fi 18149 esac 18150 shared_flag='-shared' 18151 if test "$aix_use_runtimelinking" = yes; then 18152 shared_flag="$shared_flag "'${wl}-G' 18153 fi 18154 else 18155 # not using gcc 18156 if test "$host_cpu" = ia64; then 18157 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 18158 # chokes on -Wl,-G. The following line is correct: 18159 shared_flag='-G' 18160 else 18161 if test "$aix_use_runtimelinking" = yes; then 18162 shared_flag='${wl}-G' 18163 else 18164 shared_flag='${wl}-bM:SRE' 18165 fi 18166 fi 18167 fi 18168 18169 # It seems that -bexpall does not export symbols beginning with 18170 # underscore (_), so it is better to generate a list of symbols to export. 18171 always_export_symbols=yes 18172 if test "$aix_use_runtimelinking" = yes; then 18173 # Warning - without using the other runtime loading flags (-brtl), 18174 # -berok will link without error, but may produce a broken library. 18175 allow_undefined_flag='-berok' 18176 # Determine the default libpath from the value encoded in an empty executable. 18177 cat >conftest.$ac_ext <<_ACEOF 18178/* confdefs.h. */ 18179_ACEOF 18180cat confdefs.h >>conftest.$ac_ext 18181cat >>conftest.$ac_ext <<_ACEOF 18182/* end confdefs.h. */ 18183 18184int 18185main () 18186{ 18187 18188 ; 18189 return 0; 18190} 18191_ACEOF 18192rm -f conftest.$ac_objext conftest$ac_exeext 18193if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18194 (eval $ac_link) 2>conftest.er1 18195 ac_status=$? 18196 grep -v '^ *+' conftest.er1 >conftest.err 18197 rm -f conftest.er1 18198 cat conftest.err >&5 18199 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18200 (exit $ac_status); } && 18201 { ac_try='test -z "$ac_c_werror_flag" 18202 || test ! -s conftest.err' 18203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18204 (eval $ac_try) 2>&5 18205 ac_status=$? 18206 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18207 (exit $ac_status); }; } && 18208 { ac_try='test -s conftest$ac_exeext' 18209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18210 (eval $ac_try) 2>&5 18211 ac_status=$? 18212 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18213 (exit $ac_status); }; }; then 18214 18215aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 18216}'` 18217# Check for a 64-bit object if we didn't find anything. 18218if 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; } 18219}'`; fi 18220else 18221 echo "$as_me: failed program was:" >&5 18222sed 's/^/| /' conftest.$ac_ext >&5 18223 18224fi 18225rm -f conftest.err conftest.$ac_objext \ 18226 conftest$ac_exeext conftest.$ac_ext 18227if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 18228 18229 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 18230 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" 18231 else 18232 if test "$host_cpu" = ia64; then 18233 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 18234 allow_undefined_flag="-z nodefs" 18235 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" 18236 else 18237 # Determine the default libpath from the value encoded in an empty executable. 18238 cat >conftest.$ac_ext <<_ACEOF 18239/* confdefs.h. */ 18240_ACEOF 18241cat confdefs.h >>conftest.$ac_ext 18242cat >>conftest.$ac_ext <<_ACEOF 18243/* end confdefs.h. */ 18244 18245int 18246main () 18247{ 18248 18249 ; 18250 return 0; 18251} 18252_ACEOF 18253rm -f conftest.$ac_objext conftest$ac_exeext 18254if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18255 (eval $ac_link) 2>conftest.er1 18256 ac_status=$? 18257 grep -v '^ *+' conftest.er1 >conftest.err 18258 rm -f conftest.er1 18259 cat conftest.err >&5 18260 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18261 (exit $ac_status); } && 18262 { ac_try='test -z "$ac_c_werror_flag" 18263 || test ! -s conftest.err' 18264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18265 (eval $ac_try) 2>&5 18266 ac_status=$? 18267 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18268 (exit $ac_status); }; } && 18269 { ac_try='test -s conftest$ac_exeext' 18270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18271 (eval $ac_try) 2>&5 18272 ac_status=$? 18273 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18274 (exit $ac_status); }; }; then 18275 18276aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 18277}'` 18278# Check for a 64-bit object if we didn't find anything. 18279if 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; } 18280}'`; fi 18281else 18282 echo "$as_me: failed program was:" >&5 18283sed 's/^/| /' conftest.$ac_ext >&5 18284 18285fi 18286rm -f conftest.err conftest.$ac_objext \ 18287 conftest$ac_exeext conftest.$ac_ext 18288if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 18289 18290 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 18291 # Warning - without using the other run time loading flags, 18292 # -berok will link without error, but may produce a broken library. 18293 no_undefined_flag=' ${wl}-bernotok' 18294 allow_undefined_flag=' ${wl}-berok' 18295 # -bexpall does not export symbols beginning with underscore (_) 18296 always_export_symbols=yes 18297 # Exported symbols can be pulled into shared objects from archives 18298 whole_archive_flag_spec=' ' 18299 archive_cmds_need_lc=yes 18300 # This is similar to how AIX traditionally builds its shared libraries. 18301 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' 18302 fi 18303 fi 18304 ;; 18305 18306 amigaos*) 18307 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)' 18308 hardcode_libdir_flag_spec='-L$libdir' 18309 hardcode_minus_L=yes 18310 # see comment about different semantics on the GNU ld section 18311 ld_shlibs=no 18312 ;; 18313 18314 bsdi[45]*) 18315 export_dynamic_flag_spec=-rdynamic 18316 ;; 18317 18318 cygwin* | mingw* | pw32*) 18319 # When not using gcc, we currently assume that we are using 18320 # Microsoft Visual C++. 18321 # hardcode_libdir_flag_spec is actually meaningless, as there is 18322 # no search path for DLLs. 18323 hardcode_libdir_flag_spec=' ' 18324 allow_undefined_flag=unsupported 18325 # Tell ltmain to make .lib files, not .a files. 18326 libext=lib 18327 # Tell ltmain to make .dll files, not .so files. 18328 shrext_cmds=".dll" 18329 # FIXME: Setting linknames here is a bad hack. 18330 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 18331 # The linker will automatically build a .lib file if we build a DLL. 18332 old_archive_From_new_cmds='true' 18333 # FIXME: Should let the user specify the lib program. 18334 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' 18335 fix_srcfile_path='`cygpath -w "$srcfile"`' 18336 enable_shared_with_static_runtimes=yes 18337 ;; 18338 18339 darwin* | rhapsody*) 18340 case $host_os in 18341 rhapsody* | darwin1.[012]) 18342 allow_undefined_flag='${wl}-undefined ${wl}suppress' 18343 ;; 18344 *) # Darwin 1.3 on 18345 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 18346 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 18347 else 18348 case ${MACOSX_DEPLOYMENT_TARGET} in 18349 10.[012]) 18350 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 18351 ;; 18352 10.*) 18353 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' 18354 ;; 18355 esac 18356 fi 18357 ;; 18358 esac 18359 archive_cmds_need_lc=no 18360 hardcode_direct=no 18361 hardcode_automatic=yes 18362 hardcode_shlibpath_var=unsupported 18363 whole_archive_flag_spec='' 18364 link_all_deplibs=yes 18365 if test "$GCC" = yes ; then 18366 output_verbose_link_cmd='echo' 18367 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 18368 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 18369 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 18370 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}' 18371 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}' 18372 else 18373 case $cc_basename in 18374 xlc*) 18375 output_verbose_link_cmd='echo' 18376 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 18377 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 18378 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 18379 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}' 18380 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}' 18381 ;; 18382 *) 18383 ld_shlibs=no 18384 ;; 18385 esac 18386 fi 18387 ;; 18388 18389 dgux*) 18390 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18391 hardcode_libdir_flag_spec='-L$libdir' 18392 hardcode_shlibpath_var=no 18393 ;; 18394 18395 freebsd1*) 18396 ld_shlibs=no 18397 ;; 18398 18399 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 18400 # support. Future versions do this automatically, but an explicit c++rt0.o 18401 # does not break anything, and helps significantly (at the cost of a little 18402 # extra space). 18403 freebsd2.2*) 18404 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 18405 hardcode_libdir_flag_spec='-R$libdir' 18406 hardcode_direct=yes 18407 hardcode_shlibpath_var=no 18408 ;; 18409 18410 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 18411 freebsd2*) 18412 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 18413 hardcode_direct=yes 18414 hardcode_minus_L=yes 18415 hardcode_shlibpath_var=no 18416 ;; 18417 18418 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 18419 freebsd* | kfreebsd*-gnu | dragonfly*) 18420 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 18421 hardcode_libdir_flag_spec='-R$libdir' 18422 hardcode_direct=yes 18423 hardcode_shlibpath_var=no 18424 ;; 18425 18426 hpux9*) 18427 if test "$GCC" = yes; then 18428 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' 18429 else 18430 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' 18431 fi 18432 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 18433 hardcode_libdir_separator=: 18434 hardcode_direct=yes 18435 18436 # hardcode_minus_L: Not really in the search PATH, 18437 # but as the default location of the library. 18438 hardcode_minus_L=yes 18439 export_dynamic_flag_spec='${wl}-E' 18440 ;; 18441 18442 hpux10* | hpux11*) 18443 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 18444 case $host_cpu in 18445 hppa*64*|ia64*) 18446 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 18447 ;; 18448 *) 18449 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 18450 ;; 18451 esac 18452 else 18453 case $host_cpu in 18454 hppa*64*|ia64*) 18455 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' 18456 ;; 18457 *) 18458 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 18459 ;; 18460 esac 18461 fi 18462 if test "$with_gnu_ld" = no; then 18463 case $host_cpu in 18464 hppa*64*) 18465 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 18466 hardcode_libdir_flag_spec_ld='+b $libdir' 18467 hardcode_libdir_separator=: 18468 hardcode_direct=no 18469 hardcode_shlibpath_var=no 18470 ;; 18471 ia64*) 18472 hardcode_libdir_flag_spec='-L$libdir' 18473 hardcode_direct=no 18474 hardcode_shlibpath_var=no 18475 18476 # hardcode_minus_L: Not really in the search PATH, 18477 # but as the default location of the library. 18478 hardcode_minus_L=yes 18479 ;; 18480 *) 18481 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 18482 hardcode_libdir_separator=: 18483 hardcode_direct=yes 18484 export_dynamic_flag_spec='${wl}-E' 18485 18486 # hardcode_minus_L: Not really in the search PATH, 18487 # but as the default location of the library. 18488 hardcode_minus_L=yes 18489 ;; 18490 esac 18491 fi 18492 ;; 18493 18494 irix5* | irix6* | nonstopux*) 18495 if test "$GCC" = yes; then 18496 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' 18497 else 18498 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' 18499 hardcode_libdir_flag_spec_ld='-rpath $libdir' 18500 fi 18501 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 18502 hardcode_libdir_separator=: 18503 link_all_deplibs=yes 18504 ;; 18505 18506 netbsd*) 18507 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 18508 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 18509 else 18510 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 18511 fi 18512 hardcode_libdir_flag_spec='-R$libdir' 18513 hardcode_direct=yes 18514 hardcode_shlibpath_var=no 18515 ;; 18516 18517 newsos6) 18518 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18519 hardcode_direct=yes 18520 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 18521 hardcode_libdir_separator=: 18522 hardcode_shlibpath_var=no 18523 ;; 18524 18525 openbsd*) 18526 hardcode_direct=yes 18527 hardcode_shlibpath_var=no 18528 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 18529 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 18530 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 18531 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 18532 export_dynamic_flag_spec='${wl}-E' 18533 else 18534 case $host_os in 18535 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 18536 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 18537 hardcode_libdir_flag_spec='-R$libdir' 18538 ;; 18539 *) 18540 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 18541 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 18542 ;; 18543 esac 18544 fi 18545 ;; 18546 18547 os2*) 18548 hardcode_libdir_flag_spec='-L$libdir' 18549 hardcode_minus_L=yes 18550 allow_undefined_flag=unsupported 18551 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' 18552 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 18553 ;; 18554 18555 osf3*) 18556 if test "$GCC" = yes; then 18557 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 18558 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' 18559 else 18560 allow_undefined_flag=' -expect_unresolved \*' 18561 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' 18562 fi 18563 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 18564 hardcode_libdir_separator=: 18565 ;; 18566 18567 osf4* | osf5*) # as osf3* with the addition of -msym flag 18568 if test "$GCC" = yes; then 18569 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 18570 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' 18571 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 18572 else 18573 allow_undefined_flag=' -expect_unresolved \*' 18574 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' 18575 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 18576 $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' 18577 18578 # Both c and cxx compiler support -rpath directly 18579 hardcode_libdir_flag_spec='-rpath $libdir' 18580 fi 18581 hardcode_libdir_separator=: 18582 ;; 18583 18584 sco3.2v5*) 18585 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18586 hardcode_shlibpath_var=no 18587 export_dynamic_flag_spec='${wl}-Bexport' 18588 runpath_var=LD_RUN_PATH 18589 hardcode_runpath_var=yes 18590 ;; 18591 18592 solaris*) 18593 no_undefined_flag=' -z text' 18594 if test "$GCC" = yes; then 18595 wlarc='${wl}' 18596 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 18597 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 18598 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 18599 else 18600 wlarc='' 18601 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 18602 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 18603 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 18604 fi 18605 hardcode_libdir_flag_spec='-R$libdir' 18606 hardcode_shlibpath_var=no 18607 case $host_os in 18608 solaris2.[0-5] | solaris2.[0-5].*) ;; 18609 *) 18610 # The compiler driver will combine linker options so we 18611 # cannot just pass the convience library names through 18612 # without $wl, iff we do not link with $LD. 18613 # Luckily, gcc supports the same syntax we need for Sun Studio. 18614 # Supported since Solaris 2.6 (maybe 2.5.1?) 18615 case $wlarc in 18616 '') 18617 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; 18618 *) 18619 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' ;; 18620 esac ;; 18621 esac 18622 link_all_deplibs=yes 18623 ;; 18624 18625 sunos4*) 18626 if test "x$host_vendor" = xsequent; then 18627 # Use $CC to link under sequent, because it throws in some extra .o 18628 # files that make .init and .fini sections work. 18629 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 18630 else 18631 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 18632 fi 18633 hardcode_libdir_flag_spec='-L$libdir' 18634 hardcode_direct=yes 18635 hardcode_minus_L=yes 18636 hardcode_shlibpath_var=no 18637 ;; 18638 18639 sysv4) 18640 case $host_vendor in 18641 sni) 18642 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18643 hardcode_direct=yes # is this really true??? 18644 ;; 18645 siemens) 18646 ## LD is ld it makes a PLAMLIB 18647 ## CC just makes a GrossModule. 18648 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 18649 reload_cmds='$CC -r -o $output$reload_objs' 18650 hardcode_direct=no 18651 ;; 18652 motorola) 18653 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18654 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 18655 ;; 18656 esac 18657 runpath_var='LD_RUN_PATH' 18658 hardcode_shlibpath_var=no 18659 ;; 18660 18661 sysv4.3*) 18662 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18663 hardcode_shlibpath_var=no 18664 export_dynamic_flag_spec='-Bexport' 18665 ;; 18666 18667 sysv4*MP*) 18668 if test -d /usr/nec; then 18669 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18670 hardcode_shlibpath_var=no 18671 runpath_var=LD_RUN_PATH 18672 hardcode_runpath_var=yes 18673 ld_shlibs=yes 18674 fi 18675 ;; 18676 18677 sysv4.2uw2*) 18678 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 18679 hardcode_direct=yes 18680 hardcode_minus_L=no 18681 hardcode_shlibpath_var=no 18682 hardcode_runpath_var=yes 18683 runpath_var=LD_RUN_PATH 18684 ;; 18685 18686 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) 18687 no_undefined_flag='${wl}-z ${wl}text' 18688 if test "$GCC" = yes; then 18689 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 18690 else 18691 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 18692 fi 18693 runpath_var='LD_RUN_PATH' 18694 hardcode_shlibpath_var=no 18695 ;; 18696 18697 sysv5*) 18698 no_undefined_flag=' -z text' 18699 # $CC -shared without GNU ld will not create a library from C++ 18700 # object files and a static libstdc++, better avoid it by now 18701 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 18702 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 18703 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 18704 hardcode_libdir_flag_spec= 18705 hardcode_shlibpath_var=no 18706 runpath_var='LD_RUN_PATH' 18707 ;; 18708 18709 uts4*) 18710 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18711 hardcode_libdir_flag_spec='-L$libdir' 18712 hardcode_shlibpath_var=no 18713 ;; 18714 18715 *) 18716 ld_shlibs=no 18717 ;; 18718 esac 18719 fi 18720 18721echo "$as_me:$LINENO: result: $ld_shlibs" >&5 18722echo "${ECHO_T}$ld_shlibs" >&6 18723test "$ld_shlibs" = no && can_build_shared=no 18724 18725variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 18726if test "$GCC" = yes; then 18727 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 18728fi 18729 18730# 18731# Do we need to explicitly link libc? 18732# 18733case "x$archive_cmds_need_lc" in 18734x|xyes) 18735 # Assume -lc should be added 18736 archive_cmds_need_lc=yes 18737 18738 if test "$enable_shared" = yes && test "$GCC" = yes; then 18739 case $archive_cmds in 18740 *'~'*) 18741 # FIXME: we may have to deal with multi-command sequences. 18742 ;; 18743 '$CC '*) 18744 # Test whether the compiler implicitly links with -lc since on some 18745 # systems, -lgcc has to come before -lc. If gcc already passes -lc 18746 # to ld, don't add -lc before -lgcc. 18747 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 18748echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 18749 $rm conftest* 18750 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 18751 18752 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 18753 (eval $ac_compile) 2>&5 18754 ac_status=$? 18755 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18756 (exit $ac_status); } 2>conftest.err; then 18757 soname=conftest 18758 lib=conftest 18759 libobjs=conftest.$ac_objext 18760 deplibs= 18761 wl=$lt_prog_compiler_wl 18762 compiler_flags=-v 18763 linker_flags=-v 18764 verstring= 18765 output_objdir=. 18766 libname=conftest 18767 lt_save_allow_undefined_flag=$allow_undefined_flag 18768 allow_undefined_flag= 18769 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 18770 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 18771 ac_status=$? 18772 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18773 (exit $ac_status); } 18774 then 18775 archive_cmds_need_lc=no 18776 else 18777 archive_cmds_need_lc=yes 18778 fi 18779 allow_undefined_flag=$lt_save_allow_undefined_flag 18780 else 18781 cat conftest.err 1>&5 18782 fi 18783 $rm conftest* 18784 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 18785echo "${ECHO_T}$archive_cmds_need_lc" >&6 18786 ;; 18787 esac 18788 fi 18789 ;; 18790esac 18791 18792echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 18793echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 18794library_names_spec= 18795libname_spec='lib$name' 18796soname_spec= 18797shrext_cmds=".so" 18798postinstall_cmds= 18799postuninstall_cmds= 18800finish_cmds= 18801finish_eval= 18802shlibpath_var= 18803shlibpath_overrides_runpath=unknown 18804version_type=none 18805dynamic_linker="$host_os ld.so" 18806sys_lib_dlsearch_path_spec="/lib /usr/lib" 18807if test "$GCC" = yes; then 18808 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 18809 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 18810 # if the path contains ";" then we assume it to be the separator 18811 # otherwise default to the standard path separator (i.e. ":") - it is 18812 # assumed that no part of a normal pathname contains ";" but that should 18813 # okay in the real world where ";" in dirpaths is itself problematic. 18814 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 18815 else 18816 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 18817 fi 18818else 18819 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 18820fi 18821need_lib_prefix=unknown 18822hardcode_into_libs=no 18823 18824# when you set need_version to no, make sure it does not cause -set_version 18825# flags to be left without arguments 18826need_version=unknown 18827 18828case $host_os in 18829aix3*) 18830 version_type=linux 18831 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 18832 shlibpath_var=LIBPATH 18833 18834 # AIX 3 has no versioning support, so we append a major version to the name. 18835 soname_spec='${libname}${release}${shared_ext}$major' 18836 ;; 18837 18838aix4* | aix5*) 18839 version_type=linux 18840 need_lib_prefix=no 18841 need_version=no 18842 hardcode_into_libs=yes 18843 if test "$host_cpu" = ia64; then 18844 # AIX 5 supports IA64 18845 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 18846 shlibpath_var=LD_LIBRARY_PATH 18847 else 18848 # With GCC up to 2.95.x, collect2 would create an import file 18849 # for dependence libraries. The import file would start with 18850 # the line `#! .'. This would cause the generated library to 18851 # depend on `.', always an invalid library. This was fixed in 18852 # development snapshots of GCC prior to 3.0. 18853 case $host_os in 18854 aix4 | aix4.[01] | aix4.[01].*) 18855 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 18856 echo ' yes ' 18857 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 18858 : 18859 else 18860 can_build_shared=no 18861 fi 18862 ;; 18863 esac 18864 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 18865 # soname into executable. Probably we can add versioning support to 18866 # collect2, so additional links can be useful in future. 18867 if test "$aix_use_runtimelinking" = yes; then 18868 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 18869 # instead of lib<name>.a to let people know that these are not 18870 # typical AIX shared libraries. 18871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18872 else 18873 # We preserve .a as extension for shared libraries through AIX4.2 18874 # and later when we are not doing run time linking. 18875 library_names_spec='${libname}${release}.a $libname.a' 18876 soname_spec='${libname}${release}${shared_ext}$major' 18877 fi 18878 shlibpath_var=LIBPATH 18879 fi 18880 ;; 18881 18882amigaos*) 18883 library_names_spec='$libname.ixlibrary $libname.a' 18884 # Create ${libname}_ixlibrary.a entries in /sys/libs. 18885 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' 18886 ;; 18887 18888beos*) 18889 library_names_spec='${libname}${shared_ext}' 18890 dynamic_linker="$host_os ld.so" 18891 shlibpath_var=LIBRARY_PATH 18892 ;; 18893 18894bsdi[45]*) 18895 version_type=linux 18896 need_version=no 18897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18898 soname_spec='${libname}${release}${shared_ext}$major' 18899 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 18900 shlibpath_var=LD_LIBRARY_PATH 18901 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 18902 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 18903 # the default ld.so.conf also contains /usr/contrib/lib and 18904 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 18905 # libtool to hard-code these into programs 18906 ;; 18907 18908cygwin* | mingw* | pw32*) 18909 version_type=windows 18910 shrext_cmds=".dll" 18911 need_version=no 18912 need_lib_prefix=no 18913 18914 case $GCC,$host_os in 18915 yes,cygwin* | yes,mingw* | yes,pw32*) 18916 library_names_spec='$libname.dll.a' 18917 # DLL is installed to $(libdir)/../bin by postinstall_cmds 18918 postinstall_cmds='base_file=`basename \${file}`~ 18919 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 18920 dldir=$destdir/`dirname \$dlpath`~ 18921 test -d \$dldir || mkdir -p \$dldir~ 18922 $install_prog $dir/$dlname \$dldir/$dlname~ 18923 chmod a+x \$dldir/$dlname' 18924 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 18925 dlpath=$dir/\$dldll~ 18926 $rm \$dlpath' 18927 shlibpath_overrides_runpath=yes 18928 18929 case $host_os in 18930 cygwin*) 18931 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 18932 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 18933 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 18934 ;; 18935 mingw*) 18936 # MinGW DLLs use traditional 'lib' prefix 18937 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 18938 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 18939 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 18940 # It is most probably a Windows format PATH printed by 18941 # mingw gcc, but we are running on Cygwin. Gcc prints its search 18942 # path with ; separators, and with drive letters. We can handle the 18943 # drive letters (cygwin fileutils understands them), so leave them, 18944 # especially as we might pass files found there to a mingw objdump, 18945 # which wouldn't understand a cygwinified path. Ahh. 18946 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 18947 else 18948 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 18949 fi 18950 ;; 18951 pw32*) 18952 # pw32 DLLs use 'pw' prefix rather than 'lib' 18953 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 18954 ;; 18955 esac 18956 ;; 18957 18958 *) 18959 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 18960 ;; 18961 esac 18962 dynamic_linker='Win32 ld.exe' 18963 # FIXME: first we should search . and the directory the executable is in 18964 shlibpath_var=PATH 18965 ;; 18966 18967darwin* | rhapsody*) 18968 dynamic_linker="$host_os dyld" 18969 version_type=darwin 18970 need_lib_prefix=no 18971 need_version=no 18972 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 18973 soname_spec='${libname}${release}${major}$shared_ext' 18974 shlibpath_overrides_runpath=yes 18975 shlibpath_var=DYLD_LIBRARY_PATH 18976 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 18977 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 18978 if test "$GCC" = yes; then 18979 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"` 18980 else 18981 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 18982 fi 18983 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 18984 ;; 18985 18986dgux*) 18987 version_type=linux 18988 need_lib_prefix=no 18989 need_version=no 18990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 18991 soname_spec='${libname}${release}${shared_ext}$major' 18992 shlibpath_var=LD_LIBRARY_PATH 18993 ;; 18994 18995freebsd1*) 18996 dynamic_linker=no 18997 ;; 18998 18999kfreebsd*-gnu) 19000 version_type=linux 19001 need_lib_prefix=no 19002 need_version=no 19003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 19004 soname_spec='${libname}${release}${shared_ext}$major' 19005 shlibpath_var=LD_LIBRARY_PATH 19006 shlibpath_overrides_runpath=no 19007 hardcode_into_libs=yes 19008 dynamic_linker='GNU ld.so' 19009 ;; 19010 19011freebsd* | dragonfly*) 19012 # DragonFly does not have aout. When/if they implement a new 19013 # versioning mechanism, adjust this. 19014 if test -x /usr/bin/objformat; then 19015 objformat=`/usr/bin/objformat` 19016 else 19017 case $host_os in 19018 freebsd[123]*) objformat=aout ;; 19019 *) objformat=elf ;; 19020 esac 19021 fi 19022 version_type=freebsd-$objformat 19023 case $version_type in 19024 freebsd-elf*) 19025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 19026 need_version=no 19027 need_lib_prefix=no 19028 ;; 19029 freebsd-*) 19030 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 19031 need_version=yes 19032 ;; 19033 esac 19034 shlibpath_var=LD_LIBRARY_PATH 19035 case $host_os in 19036 freebsd2*) 19037 shlibpath_overrides_runpath=yes 19038 ;; 19039 freebsd3.[01]* | freebsdelf3.[01]*) 19040 shlibpath_overrides_runpath=yes 19041 hardcode_into_libs=yes 19042 ;; 19043 *) # from 3.2 on 19044 shlibpath_overrides_runpath=no 19045 hardcode_into_libs=yes 19046 ;; 19047 esac 19048 ;; 19049 19050gnu*) 19051 version_type=linux 19052 need_lib_prefix=no 19053 need_version=no 19054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 19055 soname_spec='${libname}${release}${shared_ext}$major' 19056 shlibpath_var=LD_LIBRARY_PATH 19057 hardcode_into_libs=yes 19058 ;; 19059 19060hpux9* | hpux10* | hpux11*) 19061 # Give a soname corresponding to the major version so that dld.sl refuses to 19062 # link against other versions. 19063 version_type=sunos 19064 need_lib_prefix=no 19065 need_version=no 19066 case $host_cpu in 19067 ia64*) 19068 shrext_cmds='.so' 19069 hardcode_into_libs=yes 19070 dynamic_linker="$host_os dld.so" 19071 shlibpath_var=LD_LIBRARY_PATH 19072 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 19073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19074 soname_spec='${libname}${release}${shared_ext}$major' 19075 if test "X$HPUX_IA64_MODE" = X32; then 19076 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 19077 else 19078 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 19079 fi 19080 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 19081 ;; 19082 hppa*64*) 19083 shrext_cmds='.sl' 19084 hardcode_into_libs=yes 19085 dynamic_linker="$host_os dld.sl" 19086 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 19087 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 19088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19089 soname_spec='${libname}${release}${shared_ext}$major' 19090 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 19091 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 19092 ;; 19093 *) 19094 shrext_cmds='.sl' 19095 dynamic_linker="$host_os dld.sl" 19096 shlibpath_var=SHLIB_PATH 19097 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 19098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19099 soname_spec='${libname}${release}${shared_ext}$major' 19100 ;; 19101 esac 19102 # HP-UX runs *really* slowly unless shared libraries are mode 555. 19103 postinstall_cmds='chmod 555 $lib' 19104 ;; 19105 19106irix5* | irix6* | nonstopux*) 19107 case $host_os in 19108 nonstopux*) version_type=nonstopux ;; 19109 *) 19110 if test "$lt_cv_prog_gnu_ld" = yes; then 19111 version_type=linux 19112 else 19113 version_type=irix 19114 fi ;; 19115 esac 19116 need_lib_prefix=no 19117 need_version=no 19118 soname_spec='${libname}${release}${shared_ext}$major' 19119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 19120 case $host_os in 19121 irix5* | nonstopux*) 19122 libsuff= shlibsuff= 19123 ;; 19124 *) 19125 case $LD in # libtool.m4 will add one of these switches to LD 19126 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 19127 libsuff= shlibsuff= libmagic=32-bit;; 19128 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 19129 libsuff=32 shlibsuff=N32 libmagic=N32;; 19130 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 19131 libsuff=64 shlibsuff=64 libmagic=64-bit;; 19132 *) libsuff= shlibsuff= libmagic=never-match;; 19133 esac 19134 ;; 19135 esac 19136 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 19137 shlibpath_overrides_runpath=no 19138 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 19139 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 19140 hardcode_into_libs=yes 19141 ;; 19142 19143# No shared lib support for Linux oldld, aout, or coff. 19144linux*oldld* | linux*aout* | linux*coff*) 19145 dynamic_linker=no 19146 ;; 19147 19148# This must be Linux ELF. 19149linux*) 19150 version_type=linux 19151 need_lib_prefix=no 19152 need_version=no 19153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19154 soname_spec='${libname}${release}${shared_ext}$major' 19155 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 19156 shlibpath_var=LD_LIBRARY_PATH 19157 shlibpath_overrides_runpath=no 19158 # This implies no fast_install, which is unacceptable. 19159 # Some rework will be needed to allow for fast_install 19160 # before this can be enabled. 19161 hardcode_into_libs=yes 19162 19163 # Append ld.so.conf contents to the search path 19164 if test -f /etc/ld.so.conf; then 19165 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' ' '` 19166 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 19167 fi 19168 19169 # We used to test for /lib/ld.so.1 and disable shared libraries on 19170 # powerpc, because MkLinux only supported shared libraries with the 19171 # GNU dynamic linker. Since this was broken with cross compilers, 19172 # most powerpc-linux boxes support dynamic linking these days and 19173 # people can always --disable-shared, the test was removed, and we 19174 # assume the GNU/Linux dynamic linker is in use. 19175 dynamic_linker='GNU/Linux ld.so' 19176 ;; 19177 19178knetbsd*-gnu) 19179 version_type=linux 19180 need_lib_prefix=no 19181 need_version=no 19182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 19183 soname_spec='${libname}${release}${shared_ext}$major' 19184 shlibpath_var=LD_LIBRARY_PATH 19185 shlibpath_overrides_runpath=no 19186 hardcode_into_libs=yes 19187 dynamic_linker='GNU ld.so' 19188 ;; 19189 19190netbsd*) 19191 version_type=sunos 19192 need_lib_prefix=no 19193 need_version=no 19194 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 19195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 19196 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 19197 dynamic_linker='NetBSD (a.out) ld.so' 19198 else 19199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 19200 soname_spec='${libname}${release}${shared_ext}$major' 19201 dynamic_linker='NetBSD ld.elf_so' 19202 fi 19203 shlibpath_var=LD_LIBRARY_PATH 19204 shlibpath_overrides_runpath=yes 19205 hardcode_into_libs=yes 19206 ;; 19207 19208newsos6) 19209 version_type=linux 19210 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19211 shlibpath_var=LD_LIBRARY_PATH 19212 shlibpath_overrides_runpath=yes 19213 ;; 19214 19215nto-qnx*) 19216 version_type=linux 19217 need_lib_prefix=no 19218 need_version=no 19219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19220 soname_spec='${libname}${release}${shared_ext}$major' 19221 shlibpath_var=LD_LIBRARY_PATH 19222 shlibpath_overrides_runpath=yes 19223 ;; 19224 19225openbsd*) 19226 version_type=sunos 19227 need_lib_prefix=no 19228 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 19229 case $host_os in 19230 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 19231 *) need_version=no ;; 19232 esac 19233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 19234 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 19235 shlibpath_var=LD_LIBRARY_PATH 19236 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 19237 case $host_os in 19238 openbsd2.[89] | openbsd2.[89].*) 19239 shlibpath_overrides_runpath=no 19240 ;; 19241 *) 19242 shlibpath_overrides_runpath=yes 19243 ;; 19244 esac 19245 else 19246 shlibpath_overrides_runpath=yes 19247 fi 19248 ;; 19249 19250os2*) 19251 libname_spec='$name' 19252 shrext_cmds=".dll" 19253 need_lib_prefix=no 19254 library_names_spec='$libname${shared_ext} $libname.a' 19255 dynamic_linker='OS/2 ld.exe' 19256 shlibpath_var=LIBPATH 19257 ;; 19258 19259osf3* | osf4* | osf5*) 19260 version_type=osf 19261 need_lib_prefix=no 19262 need_version=no 19263 soname_spec='${libname}${release}${shared_ext}$major' 19264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19265 shlibpath_var=LD_LIBRARY_PATH 19266 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 19267 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 19268 ;; 19269 19270sco3.2v5*) 19271 version_type=osf 19272 soname_spec='${libname}${release}${shared_ext}$major' 19273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19274 shlibpath_var=LD_LIBRARY_PATH 19275 ;; 19276 19277solaris*) 19278 version_type=linux 19279 need_lib_prefix=no 19280 need_version=no 19281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19282 soname_spec='${libname}${release}${shared_ext}$major' 19283 shlibpath_var=LD_LIBRARY_PATH 19284 shlibpath_overrides_runpath=yes 19285 hardcode_into_libs=yes 19286 # ldd complains unless libraries are executable 19287 postinstall_cmds='chmod +x $lib' 19288 ;; 19289 19290sunos4*) 19291 version_type=sunos 19292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 19293 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 19294 shlibpath_var=LD_LIBRARY_PATH 19295 shlibpath_overrides_runpath=yes 19296 if test "$with_gnu_ld" = yes; then 19297 need_lib_prefix=no 19298 fi 19299 need_version=yes 19300 ;; 19301 19302sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 19303 version_type=linux 19304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19305 soname_spec='${libname}${release}${shared_ext}$major' 19306 shlibpath_var=LD_LIBRARY_PATH 19307 case $host_vendor in 19308 sni) 19309 shlibpath_overrides_runpath=no 19310 need_lib_prefix=no 19311 export_dynamic_flag_spec='${wl}-Blargedynsym' 19312 runpath_var=LD_RUN_PATH 19313 ;; 19314 siemens) 19315 need_lib_prefix=no 19316 ;; 19317 motorola) 19318 need_lib_prefix=no 19319 need_version=no 19320 shlibpath_overrides_runpath=no 19321 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 19322 ;; 19323 esac 19324 ;; 19325 19326sysv4*MP*) 19327 if test -d /usr/nec ;then 19328 version_type=linux 19329 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 19330 soname_spec='$libname${shared_ext}.$major' 19331 shlibpath_var=LD_LIBRARY_PATH 19332 fi 19333 ;; 19334 19335uts4*) 19336 version_type=linux 19337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19338 soname_spec='${libname}${release}${shared_ext}$major' 19339 shlibpath_var=LD_LIBRARY_PATH 19340 ;; 19341 19342*) 19343 dynamic_linker=no 19344 ;; 19345esac 19346echo "$as_me:$LINENO: result: $dynamic_linker" >&5 19347echo "${ECHO_T}$dynamic_linker" >&6 19348test "$dynamic_linker" = no && can_build_shared=no 19349 19350echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 19351echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 19352hardcode_action= 19353if test -n "$hardcode_libdir_flag_spec" || \ 19354 test -n "$runpath_var" || \ 19355 test "X$hardcode_automatic" = "Xyes" ; then 19356 19357 # We can hardcode non-existant directories. 19358 if test "$hardcode_direct" != no && 19359 # If the only mechanism to avoid hardcoding is shlibpath_var, we 19360 # have to relink, otherwise we might link with an installed library 19361 # when we should be linking with a yet-to-be-installed one 19362 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && 19363 test "$hardcode_minus_L" != no; then 19364 # Linking always hardcodes the temporary library directory. 19365 hardcode_action=relink 19366 else 19367 # We can link without hardcoding, and we can hardcode nonexisting dirs. 19368 hardcode_action=immediate 19369 fi 19370else 19371 # We cannot hardcode anything, or else we can only hardcode existing 19372 # directories. 19373 hardcode_action=unsupported 19374fi 19375echo "$as_me:$LINENO: result: $hardcode_action" >&5 19376echo "${ECHO_T}$hardcode_action" >&6 19377 19378if test "$hardcode_action" = relink; then 19379 # Fast installation is not supported 19380 enable_fast_install=no 19381elif test "$shlibpath_overrides_runpath" = yes || 19382 test "$enable_shared" = no; then 19383 # Fast installation is not necessary 19384 enable_fast_install=needless 19385fi 19386 19387striplib= 19388old_striplib= 19389echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 19390echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 19391if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 19392 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 19393 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 19394 echo "$as_me:$LINENO: result: yes" >&5 19395echo "${ECHO_T}yes" >&6 19396else 19397# FIXME - insert some real tests, host_os isn't really good enough 19398 case $host_os in 19399 darwin*) 19400 if test -n "$STRIP" ; then 19401 striplib="$STRIP -x" 19402 echo "$as_me:$LINENO: result: yes" >&5 19403echo "${ECHO_T}yes" >&6 19404 else 19405 echo "$as_me:$LINENO: result: no" >&5 19406echo "${ECHO_T}no" >&6 19407fi 19408 ;; 19409 *) 19410 echo "$as_me:$LINENO: result: no" >&5 19411echo "${ECHO_T}no" >&6 19412 ;; 19413 esac 19414fi 19415 19416if test "x$enable_dlopen" != xyes; then 19417 enable_dlopen=unknown 19418 enable_dlopen_self=unknown 19419 enable_dlopen_self_static=unknown 19420else 19421 lt_cv_dlopen=no 19422 lt_cv_dlopen_libs= 19423 19424 case $host_os in 19425 beos*) 19426 lt_cv_dlopen="load_add_on" 19427 lt_cv_dlopen_libs= 19428 lt_cv_dlopen_self=yes 19429 ;; 19430 19431 mingw* | pw32*) 19432 lt_cv_dlopen="LoadLibrary" 19433 lt_cv_dlopen_libs= 19434 ;; 19435 19436 cygwin*) 19437 lt_cv_dlopen="dlopen" 19438 lt_cv_dlopen_libs= 19439 ;; 19440 19441 darwin*) 19442 # if libdl is installed we need to link against it 19443 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 19444echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 19445if test "${ac_cv_lib_dl_dlopen+set}" = set; then 19446 echo $ECHO_N "(cached) $ECHO_C" >&6 19447else 19448 ac_check_lib_save_LIBS=$LIBS 19449LIBS="-ldl $LIBS" 19450cat >conftest.$ac_ext <<_ACEOF 19451/* confdefs.h. */ 19452_ACEOF 19453cat confdefs.h >>conftest.$ac_ext 19454cat >>conftest.$ac_ext <<_ACEOF 19455/* end confdefs.h. */ 19456 19457/* Override any gcc2 internal prototype to avoid an error. */ 19458#ifdef __cplusplus 19459extern "C" 19460#endif 19461/* We use char because int might match the return type of a gcc2 19462 builtin and then its argument prototype would still apply. */ 19463char dlopen (); 19464int 19465main () 19466{ 19467dlopen (); 19468 ; 19469 return 0; 19470} 19471_ACEOF 19472rm -f conftest.$ac_objext conftest$ac_exeext 19473if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 19474 (eval $ac_link) 2>conftest.er1 19475 ac_status=$? 19476 grep -v '^ *+' conftest.er1 >conftest.err 19477 rm -f conftest.er1 19478 cat conftest.err >&5 19479 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19480 (exit $ac_status); } && 19481 { ac_try='test -z "$ac_c_werror_flag" 19482 || test ! -s conftest.err' 19483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19484 (eval $ac_try) 2>&5 19485 ac_status=$? 19486 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19487 (exit $ac_status); }; } && 19488 { ac_try='test -s conftest$ac_exeext' 19489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19490 (eval $ac_try) 2>&5 19491 ac_status=$? 19492 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19493 (exit $ac_status); }; }; then 19494 ac_cv_lib_dl_dlopen=yes 19495else 19496 echo "$as_me: failed program was:" >&5 19497sed 's/^/| /' conftest.$ac_ext >&5 19498 19499ac_cv_lib_dl_dlopen=no 19500fi 19501rm -f conftest.err conftest.$ac_objext \ 19502 conftest$ac_exeext conftest.$ac_ext 19503LIBS=$ac_check_lib_save_LIBS 19504fi 19505echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 19506echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 19507if test $ac_cv_lib_dl_dlopen = yes; then 19508 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 19509else 19510 19511 lt_cv_dlopen="dyld" 19512 lt_cv_dlopen_libs= 19513 lt_cv_dlopen_self=yes 19514 19515fi 19516 19517 ;; 19518 19519 *) 19520 echo "$as_me:$LINENO: checking for shl_load" >&5 19521echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 19522if test "${ac_cv_func_shl_load+set}" = set; then 19523 echo $ECHO_N "(cached) $ECHO_C" >&6 19524else 19525 cat >conftest.$ac_ext <<_ACEOF 19526/* confdefs.h. */ 19527_ACEOF 19528cat confdefs.h >>conftest.$ac_ext 19529cat >>conftest.$ac_ext <<_ACEOF 19530/* end confdefs.h. */ 19531/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 19532 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 19533#define shl_load innocuous_shl_load 19534 19535/* System header to define __stub macros and hopefully few prototypes, 19536 which can conflict with char shl_load (); below. 19537 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 19538 <limits.h> exists even on freestanding compilers. */ 19539 19540#ifdef __STDC__ 19541# include <limits.h> 19542#else 19543# include <assert.h> 19544#endif 19545 19546#undef shl_load 19547 19548/* Override any gcc2 internal prototype to avoid an error. */ 19549#ifdef __cplusplus 19550extern "C" 19551{ 19552#endif 19553/* We use char because int might match the return type of a gcc2 19554 builtin and then its argument prototype would still apply. */ 19555char shl_load (); 19556/* The GNU C library defines this for functions which it implements 19557 to always fail with ENOSYS. Some functions are actually named 19558 something starting with __ and the normal name is an alias. */ 19559#if defined (__stub_shl_load) || defined (__stub___shl_load) 19560choke me 19561#else 19562char (*f) () = shl_load; 19563#endif 19564#ifdef __cplusplus 19565} 19566#endif 19567 19568int 19569main () 19570{ 19571return f != shl_load; 19572 ; 19573 return 0; 19574} 19575_ACEOF 19576rm -f conftest.$ac_objext conftest$ac_exeext 19577if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 19578 (eval $ac_link) 2>conftest.er1 19579 ac_status=$? 19580 grep -v '^ *+' conftest.er1 >conftest.err 19581 rm -f conftest.er1 19582 cat conftest.err >&5 19583 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19584 (exit $ac_status); } && 19585 { ac_try='test -z "$ac_c_werror_flag" 19586 || test ! -s conftest.err' 19587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19588 (eval $ac_try) 2>&5 19589 ac_status=$? 19590 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19591 (exit $ac_status); }; } && 19592 { ac_try='test -s conftest$ac_exeext' 19593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19594 (eval $ac_try) 2>&5 19595 ac_status=$? 19596 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19597 (exit $ac_status); }; }; then 19598 ac_cv_func_shl_load=yes 19599else 19600 echo "$as_me: failed program was:" >&5 19601sed 's/^/| /' conftest.$ac_ext >&5 19602 19603ac_cv_func_shl_load=no 19604fi 19605rm -f conftest.err conftest.$ac_objext \ 19606 conftest$ac_exeext conftest.$ac_ext 19607fi 19608echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 19609echo "${ECHO_T}$ac_cv_func_shl_load" >&6 19610if test $ac_cv_func_shl_load = yes; then 19611 lt_cv_dlopen="shl_load" 19612else 19613 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 19614echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 19615if test "${ac_cv_lib_dld_shl_load+set}" = set; then 19616 echo $ECHO_N "(cached) $ECHO_C" >&6 19617else 19618 ac_check_lib_save_LIBS=$LIBS 19619LIBS="-ldld $LIBS" 19620cat >conftest.$ac_ext <<_ACEOF 19621/* confdefs.h. */ 19622_ACEOF 19623cat confdefs.h >>conftest.$ac_ext 19624cat >>conftest.$ac_ext <<_ACEOF 19625/* end confdefs.h. */ 19626 19627/* Override any gcc2 internal prototype to avoid an error. */ 19628#ifdef __cplusplus 19629extern "C" 19630#endif 19631/* We use char because int might match the return type of a gcc2 19632 builtin and then its argument prototype would still apply. */ 19633char shl_load (); 19634int 19635main () 19636{ 19637shl_load (); 19638 ; 19639 return 0; 19640} 19641_ACEOF 19642rm -f conftest.$ac_objext conftest$ac_exeext 19643if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 19644 (eval $ac_link) 2>conftest.er1 19645 ac_status=$? 19646 grep -v '^ *+' conftest.er1 >conftest.err 19647 rm -f conftest.er1 19648 cat conftest.err >&5 19649 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19650 (exit $ac_status); } && 19651 { ac_try='test -z "$ac_c_werror_flag" 19652 || test ! -s conftest.err' 19653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19654 (eval $ac_try) 2>&5 19655 ac_status=$? 19656 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19657 (exit $ac_status); }; } && 19658 { ac_try='test -s conftest$ac_exeext' 19659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19660 (eval $ac_try) 2>&5 19661 ac_status=$? 19662 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19663 (exit $ac_status); }; }; then 19664 ac_cv_lib_dld_shl_load=yes 19665else 19666 echo "$as_me: failed program was:" >&5 19667sed 's/^/| /' conftest.$ac_ext >&5 19668 19669ac_cv_lib_dld_shl_load=no 19670fi 19671rm -f conftest.err conftest.$ac_objext \ 19672 conftest$ac_exeext conftest.$ac_ext 19673LIBS=$ac_check_lib_save_LIBS 19674fi 19675echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 19676echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 19677if test $ac_cv_lib_dld_shl_load = yes; then 19678 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 19679else 19680 echo "$as_me:$LINENO: checking for dlopen" >&5 19681echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 19682if test "${ac_cv_func_dlopen+set}" = set; then 19683 echo $ECHO_N "(cached) $ECHO_C" >&6 19684else 19685 cat >conftest.$ac_ext <<_ACEOF 19686/* confdefs.h. */ 19687_ACEOF 19688cat confdefs.h >>conftest.$ac_ext 19689cat >>conftest.$ac_ext <<_ACEOF 19690/* end confdefs.h. */ 19691/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 19692 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 19693#define dlopen innocuous_dlopen 19694 19695/* System header to define __stub macros and hopefully few prototypes, 19696 which can conflict with char dlopen (); below. 19697 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 19698 <limits.h> exists even on freestanding compilers. */ 19699 19700#ifdef __STDC__ 19701# include <limits.h> 19702#else 19703# include <assert.h> 19704#endif 19705 19706#undef dlopen 19707 19708/* Override any gcc2 internal prototype to avoid an error. */ 19709#ifdef __cplusplus 19710extern "C" 19711{ 19712#endif 19713/* We use char because int might match the return type of a gcc2 19714 builtin and then its argument prototype would still apply. */ 19715char dlopen (); 19716/* The GNU C library defines this for functions which it implements 19717 to always fail with ENOSYS. Some functions are actually named 19718 something starting with __ and the normal name is an alias. */ 19719#if defined (__stub_dlopen) || defined (__stub___dlopen) 19720choke me 19721#else 19722char (*f) () = dlopen; 19723#endif 19724#ifdef __cplusplus 19725} 19726#endif 19727 19728int 19729main () 19730{ 19731return f != dlopen; 19732 ; 19733 return 0; 19734} 19735_ACEOF 19736rm -f conftest.$ac_objext conftest$ac_exeext 19737if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 19738 (eval $ac_link) 2>conftest.er1 19739 ac_status=$? 19740 grep -v '^ *+' conftest.er1 >conftest.err 19741 rm -f conftest.er1 19742 cat conftest.err >&5 19743 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19744 (exit $ac_status); } && 19745 { ac_try='test -z "$ac_c_werror_flag" 19746 || test ! -s conftest.err' 19747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19748 (eval $ac_try) 2>&5 19749 ac_status=$? 19750 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19751 (exit $ac_status); }; } && 19752 { ac_try='test -s conftest$ac_exeext' 19753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19754 (eval $ac_try) 2>&5 19755 ac_status=$? 19756 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19757 (exit $ac_status); }; }; then 19758 ac_cv_func_dlopen=yes 19759else 19760 echo "$as_me: failed program was:" >&5 19761sed 's/^/| /' conftest.$ac_ext >&5 19762 19763ac_cv_func_dlopen=no 19764fi 19765rm -f conftest.err conftest.$ac_objext \ 19766 conftest$ac_exeext conftest.$ac_ext 19767fi 19768echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 19769echo "${ECHO_T}$ac_cv_func_dlopen" >&6 19770if test $ac_cv_func_dlopen = yes; then 19771 lt_cv_dlopen="dlopen" 19772else 19773 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 19774echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 19775if test "${ac_cv_lib_dl_dlopen+set}" = set; then 19776 echo $ECHO_N "(cached) $ECHO_C" >&6 19777else 19778 ac_check_lib_save_LIBS=$LIBS 19779LIBS="-ldl $LIBS" 19780cat >conftest.$ac_ext <<_ACEOF 19781/* confdefs.h. */ 19782_ACEOF 19783cat confdefs.h >>conftest.$ac_ext 19784cat >>conftest.$ac_ext <<_ACEOF 19785/* end confdefs.h. */ 19786 19787/* Override any gcc2 internal prototype to avoid an error. */ 19788#ifdef __cplusplus 19789extern "C" 19790#endif 19791/* We use char because int might match the return type of a gcc2 19792 builtin and then its argument prototype would still apply. */ 19793char dlopen (); 19794int 19795main () 19796{ 19797dlopen (); 19798 ; 19799 return 0; 19800} 19801_ACEOF 19802rm -f conftest.$ac_objext conftest$ac_exeext 19803if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 19804 (eval $ac_link) 2>conftest.er1 19805 ac_status=$? 19806 grep -v '^ *+' conftest.er1 >conftest.err 19807 rm -f conftest.er1 19808 cat conftest.err >&5 19809 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19810 (exit $ac_status); } && 19811 { ac_try='test -z "$ac_c_werror_flag" 19812 || test ! -s conftest.err' 19813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19814 (eval $ac_try) 2>&5 19815 ac_status=$? 19816 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19817 (exit $ac_status); }; } && 19818 { ac_try='test -s conftest$ac_exeext' 19819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19820 (eval $ac_try) 2>&5 19821 ac_status=$? 19822 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19823 (exit $ac_status); }; }; then 19824 ac_cv_lib_dl_dlopen=yes 19825else 19826 echo "$as_me: failed program was:" >&5 19827sed 's/^/| /' conftest.$ac_ext >&5 19828 19829ac_cv_lib_dl_dlopen=no 19830fi 19831rm -f conftest.err conftest.$ac_objext \ 19832 conftest$ac_exeext conftest.$ac_ext 19833LIBS=$ac_check_lib_save_LIBS 19834fi 19835echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 19836echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 19837if test $ac_cv_lib_dl_dlopen = yes; then 19838 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 19839else 19840 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 19841echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 19842if test "${ac_cv_lib_svld_dlopen+set}" = set; then 19843 echo $ECHO_N "(cached) $ECHO_C" >&6 19844else 19845 ac_check_lib_save_LIBS=$LIBS 19846LIBS="-lsvld $LIBS" 19847cat >conftest.$ac_ext <<_ACEOF 19848/* confdefs.h. */ 19849_ACEOF 19850cat confdefs.h >>conftest.$ac_ext 19851cat >>conftest.$ac_ext <<_ACEOF 19852/* end confdefs.h. */ 19853 19854/* Override any gcc2 internal prototype to avoid an error. */ 19855#ifdef __cplusplus 19856extern "C" 19857#endif 19858/* We use char because int might match the return type of a gcc2 19859 builtin and then its argument prototype would still apply. */ 19860char dlopen (); 19861int 19862main () 19863{ 19864dlopen (); 19865 ; 19866 return 0; 19867} 19868_ACEOF 19869rm -f conftest.$ac_objext conftest$ac_exeext 19870if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 19871 (eval $ac_link) 2>conftest.er1 19872 ac_status=$? 19873 grep -v '^ *+' conftest.er1 >conftest.err 19874 rm -f conftest.er1 19875 cat conftest.err >&5 19876 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19877 (exit $ac_status); } && 19878 { ac_try='test -z "$ac_c_werror_flag" 19879 || test ! -s conftest.err' 19880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19881 (eval $ac_try) 2>&5 19882 ac_status=$? 19883 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19884 (exit $ac_status); }; } && 19885 { ac_try='test -s conftest$ac_exeext' 19886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19887 (eval $ac_try) 2>&5 19888 ac_status=$? 19889 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19890 (exit $ac_status); }; }; then 19891 ac_cv_lib_svld_dlopen=yes 19892else 19893 echo "$as_me: failed program was:" >&5 19894sed 's/^/| /' conftest.$ac_ext >&5 19895 19896ac_cv_lib_svld_dlopen=no 19897fi 19898rm -f conftest.err conftest.$ac_objext \ 19899 conftest$ac_exeext conftest.$ac_ext 19900LIBS=$ac_check_lib_save_LIBS 19901fi 19902echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 19903echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 19904if test $ac_cv_lib_svld_dlopen = yes; then 19905 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 19906else 19907 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 19908echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 19909if test "${ac_cv_lib_dld_dld_link+set}" = set; then 19910 echo $ECHO_N "(cached) $ECHO_C" >&6 19911else 19912 ac_check_lib_save_LIBS=$LIBS 19913LIBS="-ldld $LIBS" 19914cat >conftest.$ac_ext <<_ACEOF 19915/* confdefs.h. */ 19916_ACEOF 19917cat confdefs.h >>conftest.$ac_ext 19918cat >>conftest.$ac_ext <<_ACEOF 19919/* end confdefs.h. */ 19920 19921/* Override any gcc2 internal prototype to avoid an error. */ 19922#ifdef __cplusplus 19923extern "C" 19924#endif 19925/* We use char because int might match the return type of a gcc2 19926 builtin and then its argument prototype would still apply. */ 19927char dld_link (); 19928int 19929main () 19930{ 19931dld_link (); 19932 ; 19933 return 0; 19934} 19935_ACEOF 19936rm -f conftest.$ac_objext conftest$ac_exeext 19937if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 19938 (eval $ac_link) 2>conftest.er1 19939 ac_status=$? 19940 grep -v '^ *+' conftest.er1 >conftest.err 19941 rm -f conftest.er1 19942 cat conftest.err >&5 19943 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19944 (exit $ac_status); } && 19945 { ac_try='test -z "$ac_c_werror_flag" 19946 || test ! -s conftest.err' 19947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19948 (eval $ac_try) 2>&5 19949 ac_status=$? 19950 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19951 (exit $ac_status); }; } && 19952 { ac_try='test -s conftest$ac_exeext' 19953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19954 (eval $ac_try) 2>&5 19955 ac_status=$? 19956 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19957 (exit $ac_status); }; }; then 19958 ac_cv_lib_dld_dld_link=yes 19959else 19960 echo "$as_me: failed program was:" >&5 19961sed 's/^/| /' conftest.$ac_ext >&5 19962 19963ac_cv_lib_dld_dld_link=no 19964fi 19965rm -f conftest.err conftest.$ac_objext \ 19966 conftest$ac_exeext conftest.$ac_ext 19967LIBS=$ac_check_lib_save_LIBS 19968fi 19969echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 19970echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 19971if test $ac_cv_lib_dld_dld_link = yes; then 19972 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 19973fi 19974 19975 19976fi 19977 19978 19979fi 19980 19981 19982fi 19983 19984 19985fi 19986 19987 19988fi 19989 19990 ;; 19991 esac 19992 19993 if test "x$lt_cv_dlopen" != xno; then 19994 enable_dlopen=yes 19995 else 19996 enable_dlopen=no 19997 fi 19998 19999 case $lt_cv_dlopen in 20000 dlopen) 20001 save_CPPFLAGS="$CPPFLAGS" 20002 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 20003 20004 save_LDFLAGS="$LDFLAGS" 20005 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 20006 20007 save_LIBS="$LIBS" 20008 LIBS="$lt_cv_dlopen_libs $LIBS" 20009 20010 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 20011echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 20012if test "${lt_cv_dlopen_self+set}" = set; then 20013 echo $ECHO_N "(cached) $ECHO_C" >&6 20014else 20015 if test "$cross_compiling" = yes; then : 20016 lt_cv_dlopen_self=cross 20017else 20018 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 20019 lt_status=$lt_dlunknown 20020 cat > conftest.$ac_ext <<EOF 20021#line 20021 "configure" 20022#include "confdefs.h" 20023 20024#if HAVE_DLFCN_H 20025#include <dlfcn.h> 20026#endif 20027 20028#include <stdio.h> 20029 20030#ifdef RTLD_GLOBAL 20031# define LT_DLGLOBAL RTLD_GLOBAL 20032#else 20033# ifdef DL_GLOBAL 20034# define LT_DLGLOBAL DL_GLOBAL 20035# else 20036# define LT_DLGLOBAL 0 20037# endif 20038#endif 20039 20040/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 20041 find out it does not work in some platform. */ 20042#ifndef LT_DLLAZY_OR_NOW 20043# ifdef RTLD_LAZY 20044# define LT_DLLAZY_OR_NOW RTLD_LAZY 20045# else 20046# ifdef DL_LAZY 20047# define LT_DLLAZY_OR_NOW DL_LAZY 20048# else 20049# ifdef RTLD_NOW 20050# define LT_DLLAZY_OR_NOW RTLD_NOW 20051# else 20052# ifdef DL_NOW 20053# define LT_DLLAZY_OR_NOW DL_NOW 20054# else 20055# define LT_DLLAZY_OR_NOW 0 20056# endif 20057# endif 20058# endif 20059# endif 20060#endif 20061 20062#ifdef __cplusplus 20063extern "C" void exit (int); 20064#endif 20065 20066void fnord() { int i=42;} 20067int main () 20068{ 20069 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 20070 int status = $lt_dlunknown; 20071 20072 if (self) 20073 { 20074 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 20075 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 20076 /* dlclose (self); */ 20077 } 20078 20079 exit (status); 20080} 20081EOF 20082 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20083 (eval $ac_link) 2>&5 20084 ac_status=$? 20085 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20086 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 20087 (./conftest; exit; ) >&5 2>/dev/null 20088 lt_status=$? 20089 case x$lt_status in 20090 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 20091 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 20092 x$lt_unknown|x*) lt_cv_dlopen_self=no ;; 20093 esac 20094 else : 20095 # compilation failed 20096 lt_cv_dlopen_self=no 20097 fi 20098fi 20099rm -fr conftest* 20100 20101 20102fi 20103echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 20104echo "${ECHO_T}$lt_cv_dlopen_self" >&6 20105 20106 if test "x$lt_cv_dlopen_self" = xyes; then 20107 LDFLAGS="$LDFLAGS $link_static_flag" 20108 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 20109echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 20110if test "${lt_cv_dlopen_self_static+set}" = set; then 20111 echo $ECHO_N "(cached) $ECHO_C" >&6 20112else 20113 if test "$cross_compiling" = yes; then : 20114 lt_cv_dlopen_self_static=cross 20115else 20116 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 20117 lt_status=$lt_dlunknown 20118 cat > conftest.$ac_ext <<EOF 20119#line 20119 "configure" 20120#include "confdefs.h" 20121 20122#if HAVE_DLFCN_H 20123#include <dlfcn.h> 20124#endif 20125 20126#include <stdio.h> 20127 20128#ifdef RTLD_GLOBAL 20129# define LT_DLGLOBAL RTLD_GLOBAL 20130#else 20131# ifdef DL_GLOBAL 20132# define LT_DLGLOBAL DL_GLOBAL 20133# else 20134# define LT_DLGLOBAL 0 20135# endif 20136#endif 20137 20138/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 20139 find out it does not work in some platform. */ 20140#ifndef LT_DLLAZY_OR_NOW 20141# ifdef RTLD_LAZY 20142# define LT_DLLAZY_OR_NOW RTLD_LAZY 20143# else 20144# ifdef DL_LAZY 20145# define LT_DLLAZY_OR_NOW DL_LAZY 20146# else 20147# ifdef RTLD_NOW 20148# define LT_DLLAZY_OR_NOW RTLD_NOW 20149# else 20150# ifdef DL_NOW 20151# define LT_DLLAZY_OR_NOW DL_NOW 20152# else 20153# define LT_DLLAZY_OR_NOW 0 20154# endif 20155# endif 20156# endif 20157# endif 20158#endif 20159 20160#ifdef __cplusplus 20161extern "C" void exit (int); 20162#endif 20163 20164void fnord() { int i=42;} 20165int main () 20166{ 20167 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 20168 int status = $lt_dlunknown; 20169 20170 if (self) 20171 { 20172 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 20173 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 20174 /* dlclose (self); */ 20175 } 20176 20177 exit (status); 20178} 20179EOF 20180 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20181 (eval $ac_link) 2>&5 20182 ac_status=$? 20183 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20184 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 20185 (./conftest; exit; ) >&5 2>/dev/null 20186 lt_status=$? 20187 case x$lt_status in 20188 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 20189 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 20190 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; 20191 esac 20192 else : 20193 # compilation failed 20194 lt_cv_dlopen_self_static=no 20195 fi 20196fi 20197rm -fr conftest* 20198 20199 20200fi 20201echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 20202echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 20203 fi 20204 20205 CPPFLAGS="$save_CPPFLAGS" 20206 LDFLAGS="$save_LDFLAGS" 20207 LIBS="$save_LIBS" 20208 ;; 20209 esac 20210 20211 case $lt_cv_dlopen_self in 20212 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 20213 *) enable_dlopen_self=unknown ;; 20214 esac 20215 20216 case $lt_cv_dlopen_self_static in 20217 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 20218 *) enable_dlopen_self_static=unknown ;; 20219 esac 20220fi 20221 20222 20223# Report which librarie types wil actually be built 20224echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 20225echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 20226echo "$as_me:$LINENO: result: $can_build_shared" >&5 20227echo "${ECHO_T}$can_build_shared" >&6 20228 20229echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 20230echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 20231test "$can_build_shared" = "no" && enable_shared=no 20232 20233# On AIX, shared libraries and static libraries use the same namespace, and 20234# are all built from PIC. 20235case $host_os in 20236aix3*) 20237 test "$enable_shared" = yes && enable_static=no 20238 if test -n "$RANLIB"; then 20239 archive_cmds="$archive_cmds~\$RANLIB \$lib" 20240 postinstall_cmds='$RANLIB $lib' 20241 fi 20242 ;; 20243 20244aix4* | aix5*) 20245 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 20246 test "$enable_shared" = yes && enable_static=no 20247 fi 20248 ;; 20249esac 20250echo "$as_me:$LINENO: result: $enable_shared" >&5 20251echo "${ECHO_T}$enable_shared" >&6 20252 20253echo "$as_me:$LINENO: checking whether to build static libraries" >&5 20254echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 20255# Make sure either enable_shared or enable_static is yes. 20256test "$enable_shared" = yes || enable_static=yes 20257echo "$as_me:$LINENO: result: $enable_static" >&5 20258echo "${ECHO_T}$enable_static" >&6 20259 20260# The else clause should only fire when bootstrapping the 20261# libtool distribution, otherwise you forgot to ship ltmain.sh 20262# with your package, and you will get complaints that there are 20263# no rules to generate ltmain.sh. 20264if test -f "$ltmain"; then 20265 # See if we are running on zsh, and set the options which allow our commands through 20266 # without removal of \ escapes. 20267 if test -n "${ZSH_VERSION+set}" ; then 20268 setopt NO_GLOB_SUBST 20269 fi 20270 # Now quote all the things that may contain metacharacters while being 20271 # careful not to overquote the AC_SUBSTed values. We take copies of the 20272 # variables and quote the copies for generation of the libtool script. 20273 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ 20274 SED SHELL STRIP \ 20275 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 20276 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 20277 deplibs_check_method reload_flag reload_cmds need_locks \ 20278 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 20279 lt_cv_sys_global_symbol_to_c_name_address \ 20280 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 20281 old_postinstall_cmds old_postuninstall_cmds \ 20282 compiler \ 20283 CC \ 20284 LD \ 20285 lt_prog_compiler_wl \ 20286 lt_prog_compiler_pic \ 20287 lt_prog_compiler_static \ 20288 lt_prog_compiler_no_builtin_flag \ 20289 export_dynamic_flag_spec \ 20290 thread_safe_flag_spec \ 20291 whole_archive_flag_spec \ 20292 enable_shared_with_static_runtimes \ 20293 old_archive_cmds \ 20294 old_archive_from_new_cmds \ 20295 predep_objects \ 20296 postdep_objects \ 20297 predeps \ 20298 postdeps \ 20299 compiler_lib_search_path \ 20300 archive_cmds \ 20301 archive_expsym_cmds \ 20302 postinstall_cmds \ 20303 postuninstall_cmds \ 20304 old_archive_from_expsyms_cmds \ 20305 allow_undefined_flag \ 20306 no_undefined_flag \ 20307 export_symbols_cmds \ 20308 hardcode_libdir_flag_spec \ 20309 hardcode_libdir_flag_spec_ld \ 20310 hardcode_libdir_separator \ 20311 hardcode_automatic \ 20312 module_cmds \ 20313 module_expsym_cmds \ 20314 lt_cv_prog_compiler_c_o \ 20315 exclude_expsyms \ 20316 include_expsyms; do 20317 20318 case $var in 20319 old_archive_cmds | \ 20320 old_archive_from_new_cmds | \ 20321 archive_cmds | \ 20322 archive_expsym_cmds | \ 20323 module_cmds | \ 20324 module_expsym_cmds | \ 20325 old_archive_from_expsyms_cmds | \ 20326 export_symbols_cmds | \ 20327 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 20328 postinstall_cmds | postuninstall_cmds | \ 20329 old_postinstall_cmds | old_postuninstall_cmds | \ 20330 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 20331 # Double-quote double-evaled strings. 20332 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 20333 ;; 20334 *) 20335 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 20336 ;; 20337 esac 20338 done 20339 20340 case $lt_echo in 20341 *'\$0 --fallback-echo"') 20342 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 20343 ;; 20344 esac 20345 20346cfgfile="${ofile}T" 20347 trap "$rm \"$cfgfile\"; exit 1" 1 2 15 20348 $rm -f "$cfgfile" 20349 { echo "$as_me:$LINENO: creating $ofile" >&5 20350echo "$as_me: creating $ofile" >&6;} 20351 20352 cat <<__EOF__ >> "$cfgfile" 20353#! $SHELL 20354 20355# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 20356# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) 20357# NOTE: Changes made to this file will be lost: look at ltmain.sh. 20358# 20359# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 20360# Free Software Foundation, Inc. 20361# 20362# This file is part of GNU Libtool: 20363# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 20364# 20365# This program is free software; you can redistribute it and/or modify 20366# it under the terms of the GNU General Public License as published by 20367# the Free Software Foundation; either version 2 of the License, or 20368# (at your option) any later version. 20369# 20370# This program is distributed in the hope that it will be useful, but 20371# WITHOUT ANY WARRANTY; without even the implied warranty of 20372# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 20373# General Public License for more details. 20374# 20375# You should have received a copy of the GNU General Public License 20376# along with this program; if not, write to the Free Software 20377# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 20378# 20379# As a special exception to the GNU General Public License, if you 20380# distribute this file as part of a program that contains a 20381# configuration script generated by Autoconf, you may include it under 20382# the same distribution terms that you use for the rest of that program. 20383 20384# A sed program that does not truncate output. 20385SED=$lt_SED 20386 20387# Sed that helps us avoid accidentally triggering echo(1) options like -n. 20388Xsed="$SED -e 1s/^X//" 20389 20390# The HP-UX ksh and POSIX shell print the target directory to stdout 20391# if CDPATH is set. 20392(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 20393 20394# The names of the tagged configurations supported by this script. 20395available_tags= 20396 20397# ### BEGIN LIBTOOL CONFIG 20398 20399# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 20400 20401# Shell to use when invoking shell scripts. 20402SHELL=$lt_SHELL 20403 20404# Whether or not to build shared libraries. 20405build_libtool_libs=$enable_shared 20406 20407# Whether or not to build static libraries. 20408build_old_libs=$enable_static 20409 20410# Whether or not to add -lc for building shared libraries. 20411build_libtool_need_lc=$archive_cmds_need_lc 20412 20413# Whether or not to disallow shared libs when runtime libs are static 20414allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 20415 20416# Whether or not to optimize for fast installation. 20417fast_install=$enable_fast_install 20418 20419# The host system. 20420host_alias=$host_alias 20421host=$host 20422host_os=$host_os 20423 20424# The build system. 20425build_alias=$build_alias 20426build=$build 20427build_os=$build_os 20428 20429# An echo program that does not interpret backslashes. 20430echo=$lt_echo 20431 20432# The archiver. 20433AR=$lt_AR 20434AR_FLAGS=$lt_AR_FLAGS 20435 20436# A C compiler. 20437LTCC=$lt_LTCC 20438 20439# A language-specific compiler. 20440CC=$lt_compiler 20441 20442# Is the compiler the GNU C compiler? 20443with_gcc=$GCC 20444 20445# An ERE matcher. 20446EGREP=$lt_EGREP 20447 20448# The linker used to build libraries. 20449LD=$lt_LD 20450 20451# Whether we need hard or soft links. 20452LN_S=$lt_LN_S 20453 20454# A BSD-compatible nm program. 20455NM=$lt_NM 20456 20457# A symbol stripping program 20458STRIP=$lt_STRIP 20459 20460# Used to examine libraries when file_magic_cmd begins "file" 20461MAGIC_CMD=$MAGIC_CMD 20462 20463# Used on cygwin: DLL creation program. 20464DLLTOOL="$DLLTOOL" 20465 20466# Used on cygwin: object dumper. 20467OBJDUMP="$OBJDUMP" 20468 20469# Used on cygwin: assembler. 20470AS="$AS" 20471 20472# The name of the directory that contains temporary libtool files. 20473objdir=$objdir 20474 20475# How to create reloadable object files. 20476reload_flag=$lt_reload_flag 20477reload_cmds=$lt_reload_cmds 20478 20479# How to pass a linker flag through the compiler. 20480wl=$lt_lt_prog_compiler_wl 20481 20482# Object file suffix (normally "o"). 20483objext="$ac_objext" 20484 20485# Old archive suffix (normally "a"). 20486libext="$libext" 20487 20488# Shared library suffix (normally ".so"). 20489shrext_cmds='$shrext_cmds' 20490 20491# Executable file suffix (normally ""). 20492exeext="$exeext" 20493 20494# Additional compiler flags for building library objects. 20495pic_flag=$lt_lt_prog_compiler_pic 20496pic_mode=$pic_mode 20497 20498# What is the maximum length of a command? 20499max_cmd_len=$lt_cv_sys_max_cmd_len 20500 20501# Does compiler simultaneously support -c and -o options? 20502compiler_c_o=$lt_lt_cv_prog_compiler_c_o 20503 20504# Must we lock files when doing compilation? 20505need_locks=$lt_need_locks 20506 20507# Do we need the lib prefix for modules? 20508need_lib_prefix=$need_lib_prefix 20509 20510# Do we need a version for libraries? 20511need_version=$need_version 20512 20513# Whether dlopen is supported. 20514dlopen_support=$enable_dlopen 20515 20516# Whether dlopen of programs is supported. 20517dlopen_self=$enable_dlopen_self 20518 20519# Whether dlopen of statically linked programs is supported. 20520dlopen_self_static=$enable_dlopen_self_static 20521 20522# Compiler flag to prevent dynamic linking. 20523link_static_flag=$lt_lt_prog_compiler_static 20524 20525# Compiler flag to turn off builtin functions. 20526no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 20527 20528# Compiler flag to allow reflexive dlopens. 20529export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 20530 20531# Compiler flag to generate shared objects directly from archives. 20532whole_archive_flag_spec=$lt_whole_archive_flag_spec 20533 20534# Compiler flag to generate thread-safe objects. 20535thread_safe_flag_spec=$lt_thread_safe_flag_spec 20536 20537# Library versioning type. 20538version_type=$version_type 20539 20540# Format of library name prefix. 20541libname_spec=$lt_libname_spec 20542 20543# List of archive names. First name is the real one, the rest are links. 20544# The last name is the one that the linker finds with -lNAME. 20545library_names_spec=$lt_library_names_spec 20546 20547# The coded name of the library, if different from the real name. 20548soname_spec=$lt_soname_spec 20549 20550# Commands used to build and install an old-style archive. 20551RANLIB=$lt_RANLIB 20552old_archive_cmds=$lt_old_archive_cmds 20553old_postinstall_cmds=$lt_old_postinstall_cmds 20554old_postuninstall_cmds=$lt_old_postuninstall_cmds 20555 20556# Create an old-style archive from a shared archive. 20557old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 20558 20559# Create a temporary old-style archive to link instead of a shared archive. 20560old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 20561 20562# Commands used to build and install a shared archive. 20563archive_cmds=$lt_archive_cmds 20564archive_expsym_cmds=$lt_archive_expsym_cmds 20565postinstall_cmds=$lt_postinstall_cmds 20566postuninstall_cmds=$lt_postuninstall_cmds 20567 20568# Commands used to build a loadable module (assumed same as above if empty) 20569module_cmds=$lt_module_cmds 20570module_expsym_cmds=$lt_module_expsym_cmds 20571 20572# Commands to strip libraries. 20573old_striplib=$lt_old_striplib 20574striplib=$lt_striplib 20575 20576# Dependencies to place before the objects being linked to create a 20577# shared library. 20578predep_objects=$lt_predep_objects 20579 20580# Dependencies to place after the objects being linked to create a 20581# shared library. 20582postdep_objects=$lt_postdep_objects 20583 20584# Dependencies to place before the objects being linked to create a 20585# shared library. 20586predeps=$lt_predeps 20587 20588# Dependencies to place after the objects being linked to create a 20589# shared library. 20590postdeps=$lt_postdeps 20591 20592# The library search path used internally by the compiler when linking 20593# a shared library. 20594compiler_lib_search_path=$lt_compiler_lib_search_path 20595 20596# Method to check whether dependent libraries are shared objects. 20597deplibs_check_method=$lt_deplibs_check_method 20598 20599# Command to use when deplibs_check_method == file_magic. 20600file_magic_cmd=$lt_file_magic_cmd 20601 20602# Flag that allows shared libraries with undefined symbols to be built. 20603allow_undefined_flag=$lt_allow_undefined_flag 20604 20605# Flag that forces no undefined symbols. 20606no_undefined_flag=$lt_no_undefined_flag 20607 20608# Commands used to finish a libtool library installation in a directory. 20609finish_cmds=$lt_finish_cmds 20610 20611# Same as above, but a single script fragment to be evaled but not shown. 20612finish_eval=$lt_finish_eval 20613 20614# Take the output of nm and produce a listing of raw symbols and C names. 20615global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 20616 20617# Transform the output of nm in a proper C declaration 20618global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 20619 20620# Transform the output of nm in a C name address pair 20621global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 20622 20623# This is the shared library runtime path variable. 20624runpath_var=$runpath_var 20625 20626# This is the shared library path variable. 20627shlibpath_var=$shlibpath_var 20628 20629# Is shlibpath searched before the hard-coded library search path? 20630shlibpath_overrides_runpath=$shlibpath_overrides_runpath 20631 20632# How to hardcode a shared library path into an executable. 20633hardcode_action=$hardcode_action 20634 20635# Whether we should hardcode library paths into libraries. 20636hardcode_into_libs=$hardcode_into_libs 20637 20638# Flag to hardcode \$libdir into a binary during linking. 20639# This must work even if \$libdir does not exist. 20640hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 20641 20642# If ld is used when linking, flag to hardcode \$libdir into 20643# a binary during linking. This must work even if \$libdir does 20644# not exist. 20645hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 20646 20647# Whether we need a single -rpath flag with a separated argument. 20648hardcode_libdir_separator=$lt_hardcode_libdir_separator 20649 20650# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 20651# resulting binary. 20652hardcode_direct=$hardcode_direct 20653 20654# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 20655# resulting binary. 20656hardcode_minus_L=$hardcode_minus_L 20657 20658# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 20659# the resulting binary. 20660hardcode_shlibpath_var=$hardcode_shlibpath_var 20661 20662# Set to yes if building a shared library automatically hardcodes DIR into the library 20663# and all subsequent libraries and executables linked against it. 20664hardcode_automatic=$hardcode_automatic 20665 20666# Variables whose values should be saved in libtool wrapper scripts and 20667# restored at relink time. 20668variables_saved_for_relink="$variables_saved_for_relink" 20669 20670# Whether libtool must link a program against all its dependency libraries. 20671link_all_deplibs=$link_all_deplibs 20672 20673# Compile-time system search path for libraries 20674sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 20675 20676# Run-time system search path for libraries 20677sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 20678 20679# Fix the shell variable \$srcfile for the compiler. 20680fix_srcfile_path="$fix_srcfile_path" 20681 20682# Set to yes if exported symbols are required. 20683always_export_symbols=$always_export_symbols 20684 20685# The commands to list exported symbols. 20686export_symbols_cmds=$lt_export_symbols_cmds 20687 20688# The commands to extract the exported symbol list from a shared archive. 20689extract_expsyms_cmds=$lt_extract_expsyms_cmds 20690 20691# Symbols that should not be listed in the preloaded symbols. 20692exclude_expsyms=$lt_exclude_expsyms 20693 20694# Symbols that must always be exported. 20695include_expsyms=$lt_include_expsyms 20696 20697# ### END LIBTOOL CONFIG 20698 20699__EOF__ 20700 20701 20702 case $host_os in 20703 aix3*) 20704 cat <<\EOF >> "$cfgfile" 20705 20706# AIX sometimes has problems with the GCC collect2 program. For some 20707# reason, if we set the COLLECT_NAMES environment variable, the problems 20708# vanish in a puff of smoke. 20709if test "X${COLLECT_NAMES+set}" != Xset; then 20710 COLLECT_NAMES= 20711 export COLLECT_NAMES 20712fi 20713EOF 20714 ;; 20715 esac 20716 20717 # We use sed instead of cat because bash on DJGPP gets confused if 20718 # if finds mixed CR/LF and LF-only lines. Since sed operates in 20719 # text mode, it properly converts lines to CR/LF. This bash problem 20720 # is reportedly fixed, but why not run on old versions too? 20721 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) 20722 20723 mv -f "$cfgfile" "$ofile" || \ 20724 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 20725 chmod +x "$ofile" 20726 20727else 20728 # If there is no Makefile yet, we rely on a make rule to execute 20729 # `config.status --recheck' to rerun these tests and create the 20730 # libtool script then. 20731 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 20732 if test -f "$ltmain_in"; then 20733 test -f Makefile && make "$ltmain" 20734 fi 20735fi 20736 20737 20738ac_ext=c 20739ac_cpp='$CPP $CPPFLAGS' 20740ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20741ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20742ac_compiler_gnu=$ac_cv_c_compiler_gnu 20743 20744CC="$lt_save_CC" 20745 20746 20747# Check whether --with-tags or --without-tags was given. 20748if test "${with_tags+set}" = set; then 20749 withval="$with_tags" 20750 tagnames="$withval" 20751fi; 20752 20753if test -f "$ltmain" && test -n "$tagnames"; then 20754 if test ! -f "${ofile}"; then 20755 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 20756echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} 20757 fi 20758 20759 if test -z "$LTCC"; then 20760 eval "`$SHELL ${ofile} --config | grep '^LTCC='`" 20761 if test -z "$LTCC"; then 20762 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 20763echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} 20764 else 20765 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 20766echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} 20767 fi 20768 fi 20769 20770 # Extract list of available tagged configurations in $ofile. 20771 # Note that this assumes the entire list is on one line. 20772 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` 20773 20774 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 20775 for tagname in $tagnames; do 20776 IFS="$lt_save_ifs" 20777 # Check whether tagname contains only valid characters 20778 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in 20779 "") ;; 20780 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 20781echo "$as_me: error: invalid tag name: $tagname" >&2;} 20782 { (exit 1); exit 1; }; } 20783 ;; 20784 esac 20785 20786 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null 20787 then 20788 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 20789echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} 20790 { (exit 1); exit 1; }; } 20791 fi 20792 20793 # Update the list of available tags. 20794 if test -n "$tagname"; then 20795 echo appending configuration tag \"$tagname\" to $ofile 20796 20797 case $tagname in 20798 CXX) 20799 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 20800 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 20801 (test "X$CXX" != "Xg++"))) ; then 20802 ac_ext=cc 20803ac_cpp='$CXXCPP $CPPFLAGS' 20804ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20805ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20806ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 20807 20808 20809 20810 20811archive_cmds_need_lc_CXX=no 20812allow_undefined_flag_CXX= 20813always_export_symbols_CXX=no 20814archive_expsym_cmds_CXX= 20815export_dynamic_flag_spec_CXX= 20816hardcode_direct_CXX=no 20817hardcode_libdir_flag_spec_CXX= 20818hardcode_libdir_flag_spec_ld_CXX= 20819hardcode_libdir_separator_CXX= 20820hardcode_minus_L_CXX=no 20821hardcode_automatic_CXX=no 20822module_cmds_CXX= 20823module_expsym_cmds_CXX= 20824link_all_deplibs_CXX=unknown 20825old_archive_cmds_CXX=$old_archive_cmds 20826no_undefined_flag_CXX= 20827whole_archive_flag_spec_CXX= 20828enable_shared_with_static_runtimes_CXX=no 20829 20830# Dependencies to place before and after the object being linked: 20831predep_objects_CXX= 20832postdep_objects_CXX= 20833predeps_CXX= 20834postdeps_CXX= 20835compiler_lib_search_path_CXX= 20836 20837# Source file extension for C++ test sources. 20838ac_ext=cpp 20839 20840# Object file extension for compiled C++ test sources. 20841objext=o 20842objext_CXX=$objext 20843 20844# Code to be used in simple compile tests 20845lt_simple_compile_test_code="int some_variable = 0;\n" 20846 20847# Code to be used in simple link tests 20848lt_simple_link_test_code='int main(int, char *) { return(0); }\n' 20849 20850# ltmain only uses $CC for tagged configurations so make sure $CC is set. 20851 20852# If no C compiler was specified, use CC. 20853LTCC=${LTCC-"$CC"} 20854 20855# Allow CC to be a program name with arguments. 20856compiler=$CC 20857 20858 20859# save warnings/boilerplate of simple test code 20860ac_outfile=conftest.$ac_objext 20861printf "$lt_simple_compile_test_code" >conftest.$ac_ext 20862eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 20863_lt_compiler_boilerplate=`cat conftest.err` 20864$rm conftest* 20865 20866ac_outfile=conftest.$ac_objext 20867printf "$lt_simple_link_test_code" >conftest.$ac_ext 20868eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 20869_lt_linker_boilerplate=`cat conftest.err` 20870$rm conftest* 20871 20872 20873# Allow CC to be a program name with arguments. 20874lt_save_CC=$CC 20875lt_save_LD=$LD 20876lt_save_GCC=$GCC 20877GCC=$GXX 20878lt_save_with_gnu_ld=$with_gnu_ld 20879lt_save_path_LD=$lt_cv_path_LD 20880if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 20881 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 20882else 20883 unset lt_cv_prog_gnu_ld 20884fi 20885if test -n "${lt_cv_path_LDCXX+set}"; then 20886 lt_cv_path_LD=$lt_cv_path_LDCXX 20887else 20888 unset lt_cv_path_LD 20889fi 20890test -z "${LDCXX+set}" || LD=$LDCXX 20891CC=${CXX-"c++"} 20892compiler=$CC 20893compiler_CXX=$CC 20894for cc_temp in $compiler""; do 20895 case $cc_temp in 20896 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 20897 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 20898 \-*) ;; 20899 *) break;; 20900 esac 20901done 20902cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 20903 20904 20905# We don't want -fno-exception wen compiling C++ code, so set the 20906# no_builtin_flag separately 20907if test "$GXX" = yes; then 20908 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 20909else 20910 lt_prog_compiler_no_builtin_flag_CXX= 20911fi 20912 20913if test "$GXX" = yes; then 20914 # Set up default GNU C++ configuration 20915 20916 20917# Check whether --with-gnu-ld or --without-gnu-ld was given. 20918if test "${with_gnu_ld+set}" = set; then 20919 withval="$with_gnu_ld" 20920 test "$withval" = no || with_gnu_ld=yes 20921else 20922 with_gnu_ld=no 20923fi; 20924ac_prog=ld 20925if test "$GCC" = yes; then 20926 # Check if gcc -print-prog-name=ld gives a path. 20927 echo "$as_me:$LINENO: checking for ld used by $CC" >&5 20928echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 20929 case $host in 20930 *-*-mingw*) 20931 # gcc leaves a trailing carriage return which upsets mingw 20932 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 20933 *) 20934 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 20935 esac 20936 case $ac_prog in 20937 # Accept absolute paths. 20938 [\\/]* | ?:[\\/]*) 20939 re_direlt='/[^/][^/]*/\.\./' 20940 # Canonicalize the pathname of ld 20941 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 20942 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 20943 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 20944 done 20945 test -z "$LD" && LD="$ac_prog" 20946 ;; 20947 "") 20948 # If it fails, then pretend we aren't using GCC. 20949 ac_prog=ld 20950 ;; 20951 *) 20952 # If it is relative, then search for the first ld in PATH. 20953 with_gnu_ld=unknown 20954 ;; 20955 esac 20956elif test "$with_gnu_ld" = yes; then 20957 echo "$as_me:$LINENO: checking for GNU ld" >&5 20958echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 20959else 20960 echo "$as_me:$LINENO: checking for non-GNU ld" >&5 20961echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 20962fi 20963if test "${lt_cv_path_LD+set}" = set; then 20964 echo $ECHO_N "(cached) $ECHO_C" >&6 20965else 20966 if test -z "$LD"; then 20967 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 20968 for ac_dir in $PATH; do 20969 IFS="$lt_save_ifs" 20970 test -z "$ac_dir" && ac_dir=. 20971 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 20972 lt_cv_path_LD="$ac_dir/$ac_prog" 20973 # Check to see if the program is GNU ld. I'd rather use --version, 20974 # but apparently some variants of GNU ld only accept -v. 20975 # Break only if it was the GNU/non-GNU ld that we prefer. 20976 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 20977 *GNU* | *'with BFD'*) 20978 test "$with_gnu_ld" != no && break 20979 ;; 20980 *) 20981 test "$with_gnu_ld" != yes && break 20982 ;; 20983 esac 20984 fi 20985 done 20986 IFS="$lt_save_ifs" 20987else 20988 lt_cv_path_LD="$LD" # Let the user override the test with a path. 20989fi 20990fi 20991 20992LD="$lt_cv_path_LD" 20993if test -n "$LD"; then 20994 echo "$as_me:$LINENO: result: $LD" >&5 20995echo "${ECHO_T}$LD" >&6 20996else 20997 echo "$as_me:$LINENO: result: no" >&5 20998echo "${ECHO_T}no" >&6 20999fi 21000test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 21001echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 21002 { (exit 1); exit 1; }; } 21003echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 21004echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 21005if test "${lt_cv_prog_gnu_ld+set}" = set; then 21006 echo $ECHO_N "(cached) $ECHO_C" >&6 21007else 21008 # I'd rather use --version here, but apparently some GNU lds only accept -v. 21009case `$LD -v 2>&1 </dev/null` in 21010*GNU* | *'with BFD'*) 21011 lt_cv_prog_gnu_ld=yes 21012 ;; 21013*) 21014 lt_cv_prog_gnu_ld=no 21015 ;; 21016esac 21017fi 21018echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 21019echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 21020with_gnu_ld=$lt_cv_prog_gnu_ld 21021 21022 21023 21024 # Check if GNU C++ uses GNU ld as the underlying linker, since the 21025 # archiving commands below assume that GNU ld is being used. 21026 if test "$with_gnu_ld" = yes; then 21027 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 21028 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 21029 21030 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 21031 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 21032 21033 # If archive_cmds runs LD, not CC, wlarc should be empty 21034 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 21035 # investigate it a little bit more. (MM) 21036 wlarc='${wl}' 21037 21038 # ancient GNU ld didn't support --whole-archive et. al. 21039 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ 21040 grep 'no-whole-archive' > /dev/null; then 21041 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 21042 else 21043 whole_archive_flag_spec_CXX= 21044 fi 21045 else 21046 with_gnu_ld=no 21047 wlarc= 21048 21049 # A generic and very simple default shared library creation 21050 # command for GNU C++ for the case where it uses the native 21051 # linker, instead of GNU ld. If possible, this setting should 21052 # overridden to take advantage of the native linker features on 21053 # the platform it is being used on. 21054 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 21055 fi 21056 21057 # Commands to make compiler produce verbose output that lists 21058 # what "hidden" libraries, object files and flags are used when 21059 # linking a shared library. 21060 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 21061 21062else 21063 GXX=no 21064 with_gnu_ld=no 21065 wlarc= 21066fi 21067 21068# PORTME: fill in a description of your system's C++ link characteristics 21069echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 21070echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 21071ld_shlibs_CXX=yes 21072case $host_os in 21073 aix3*) 21074 # FIXME: insert proper C++ library support 21075 ld_shlibs_CXX=no 21076 ;; 21077 aix4* | aix5*) 21078 if test "$host_cpu" = ia64; then 21079 # On IA64, the linker does run time linking by default, so we don't 21080 # have to do anything special. 21081 aix_use_runtimelinking=no 21082 exp_sym_flag='-Bexport' 21083 no_entry_flag="" 21084 else 21085 aix_use_runtimelinking=no 21086 21087 # Test if we are trying to use run time linking or normal 21088 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 21089 # need to do runtime linking. 21090 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 21091 for ld_flag in $LDFLAGS; do 21092 case $ld_flag in 21093 *-brtl*) 21094 aix_use_runtimelinking=yes 21095 break 21096 ;; 21097 esac 21098 done 21099 esac 21100 21101 exp_sym_flag='-bexport' 21102 no_entry_flag='-bnoentry' 21103 fi 21104 21105 # When large executables or shared objects are built, AIX ld can 21106 # have problems creating the table of contents. If linking a library 21107 # or program results in "error TOC overflow" add -mminimal-toc to 21108 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 21109 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 21110 21111 archive_cmds_CXX='' 21112 hardcode_direct_CXX=yes 21113 hardcode_libdir_separator_CXX=':' 21114 link_all_deplibs_CXX=yes 21115 21116 if test "$GXX" = yes; then 21117 case $host_os in aix4.[012]|aix4.[012].*) 21118 # We only want to do this on AIX 4.2 and lower, the check 21119 # below for broken collect2 doesn't work under 4.3+ 21120 collect2name=`${CC} -print-prog-name=collect2` 21121 if test -f "$collect2name" && \ 21122 strings "$collect2name" | grep resolve_lib_name >/dev/null 21123 then 21124 # We have reworked collect2 21125 hardcode_direct_CXX=yes 21126 else 21127 # We have old collect2 21128 hardcode_direct_CXX=unsupported 21129 # It fails to find uninstalled libraries when the uninstalled 21130 # path is not listed in the libpath. Setting hardcode_minus_L 21131 # to unsupported forces relinking 21132 hardcode_minus_L_CXX=yes 21133 hardcode_libdir_flag_spec_CXX='-L$libdir' 21134 hardcode_libdir_separator_CXX= 21135 fi 21136 esac 21137 shared_flag='-shared' 21138 if test "$aix_use_runtimelinking" = yes; then 21139 shared_flag="$shared_flag "'${wl}-G' 21140 fi 21141 else 21142 # not using gcc 21143 if test "$host_cpu" = ia64; then 21144 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 21145 # chokes on -Wl,-G. The following line is correct: 21146 shared_flag='-G' 21147 else 21148 if test "$aix_use_runtimelinking" = yes; then 21149 shared_flag='${wl}-G' 21150 else 21151 shared_flag='${wl}-bM:SRE' 21152 fi 21153 fi 21154 fi 21155 21156 # It seems that -bexpall does not export symbols beginning with 21157 # underscore (_), so it is better to generate a list of symbols to export. 21158 always_export_symbols_CXX=yes 21159 if test "$aix_use_runtimelinking" = yes; then 21160 # Warning - without using the other runtime loading flags (-brtl), 21161 # -berok will link without error, but may produce a broken library. 21162 allow_undefined_flag_CXX='-berok' 21163 # Determine the default libpath from the value encoded in an empty executable. 21164 cat >conftest.$ac_ext <<_ACEOF 21165/* confdefs.h. */ 21166_ACEOF 21167cat confdefs.h >>conftest.$ac_ext 21168cat >>conftest.$ac_ext <<_ACEOF 21169/* end confdefs.h. */ 21170 21171int 21172main () 21173{ 21174 21175 ; 21176 return 0; 21177} 21178_ACEOF 21179rm -f conftest.$ac_objext conftest$ac_exeext 21180if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21181 (eval $ac_link) 2>conftest.er1 21182 ac_status=$? 21183 grep -v '^ *+' conftest.er1 >conftest.err 21184 rm -f conftest.er1 21185 cat conftest.err >&5 21186 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21187 (exit $ac_status); } && 21188 { ac_try='test -z "$ac_cxx_werror_flag" 21189 || test ! -s conftest.err' 21190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21191 (eval $ac_try) 2>&5 21192 ac_status=$? 21193 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21194 (exit $ac_status); }; } && 21195 { ac_try='test -s conftest$ac_exeext' 21196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21197 (eval $ac_try) 2>&5 21198 ac_status=$? 21199 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21200 (exit $ac_status); }; }; then 21201 21202aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 21203}'` 21204# Check for a 64-bit object if we didn't find anything. 21205if 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; } 21206}'`; fi 21207else 21208 echo "$as_me: failed program was:" >&5 21209sed 's/^/| /' conftest.$ac_ext >&5 21210 21211fi 21212rm -f conftest.err conftest.$ac_objext \ 21213 conftest$ac_exeext conftest.$ac_ext 21214if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 21215 21216 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 21217 21218 archive_expsym_cmds_CXX="\$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" 21219 else 21220 if test "$host_cpu" = ia64; then 21221 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 21222 allow_undefined_flag_CXX="-z nodefs" 21223 archive_expsym_cmds_CXX="\$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" 21224 else 21225 # Determine the default libpath from the value encoded in an empty executable. 21226 cat >conftest.$ac_ext <<_ACEOF 21227/* confdefs.h. */ 21228_ACEOF 21229cat confdefs.h >>conftest.$ac_ext 21230cat >>conftest.$ac_ext <<_ACEOF 21231/* end confdefs.h. */ 21232 21233int 21234main () 21235{ 21236 21237 ; 21238 return 0; 21239} 21240_ACEOF 21241rm -f conftest.$ac_objext conftest$ac_exeext 21242if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21243 (eval $ac_link) 2>conftest.er1 21244 ac_status=$? 21245 grep -v '^ *+' conftest.er1 >conftest.err 21246 rm -f conftest.er1 21247 cat conftest.err >&5 21248 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21249 (exit $ac_status); } && 21250 { ac_try='test -z "$ac_cxx_werror_flag" 21251 || test ! -s conftest.err' 21252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21253 (eval $ac_try) 2>&5 21254 ac_status=$? 21255 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21256 (exit $ac_status); }; } && 21257 { ac_try='test -s conftest$ac_exeext' 21258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21259 (eval $ac_try) 2>&5 21260 ac_status=$? 21261 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21262 (exit $ac_status); }; }; then 21263 21264aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 21265}'` 21266# Check for a 64-bit object if we didn't find anything. 21267if 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; } 21268}'`; fi 21269else 21270 echo "$as_me: failed program was:" >&5 21271sed 's/^/| /' conftest.$ac_ext >&5 21272 21273fi 21274rm -f conftest.err conftest.$ac_objext \ 21275 conftest$ac_exeext conftest.$ac_ext 21276if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 21277 21278 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 21279 # Warning - without using the other run time loading flags, 21280 # -berok will link without error, but may produce a broken library. 21281 no_undefined_flag_CXX=' ${wl}-bernotok' 21282 allow_undefined_flag_CXX=' ${wl}-berok' 21283 # -bexpall does not export symbols beginning with underscore (_) 21284 always_export_symbols_CXX=yes 21285 # Exported symbols can be pulled into shared objects from archives 21286 whole_archive_flag_spec_CXX=' ' 21287 archive_cmds_need_lc_CXX=yes 21288 # This is similar to how AIX traditionally builds its shared libraries. 21289 archive_expsym_cmds_CXX="\$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' 21290 fi 21291 fi 21292 ;; 21293 chorus*) 21294 case $cc_basename in 21295 *) 21296 # FIXME: insert proper C++ library support 21297 ld_shlibs_CXX=no 21298 ;; 21299 esac 21300 ;; 21301 21302 21303 cygwin* | mingw* | pw32*) 21304 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 21305 # as there is no search path for DLLs. 21306 hardcode_libdir_flag_spec_CXX='-L$libdir' 21307 allow_undefined_flag_CXX=unsupported 21308 always_export_symbols_CXX=no 21309 enable_shared_with_static_runtimes_CXX=yes 21310 21311 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 21312 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 21313 # If the export-symbols file already is a .def file (1st line 21314 # is EXPORTS), use it as is; otherwise, prepend... 21315 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 21316 cp $export_symbols $output_objdir/$soname.def; 21317 else 21318 echo EXPORTS > $output_objdir/$soname.def; 21319 cat $export_symbols >> $output_objdir/$soname.def; 21320 fi~ 21321 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 21322 else 21323 ld_shlibs_CXX=no 21324 fi 21325 ;; 21326 darwin* | rhapsody*) 21327 case $host_os in 21328 rhapsody* | darwin1.[012]) 21329 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' 21330 ;; 21331 *) # Darwin 1.3 on 21332 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 21333 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 21334 else 21335 case ${MACOSX_DEPLOYMENT_TARGET} in 21336 10.[012]) 21337 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 21338 ;; 21339 10.*) 21340 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' 21341 ;; 21342 esac 21343 fi 21344 ;; 21345 esac 21346 archive_cmds_need_lc_CXX=no 21347 hardcode_direct_CXX=no 21348 hardcode_automatic_CXX=yes 21349 hardcode_shlibpath_var_CXX=unsupported 21350 whole_archive_flag_spec_CXX='' 21351 link_all_deplibs_CXX=yes 21352 21353 if test "$GXX" = yes ; then 21354 lt_int_apple_cc_single_mod=no 21355 output_verbose_link_cmd='echo' 21356 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then 21357 lt_int_apple_cc_single_mod=yes 21358 fi 21359 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 21360 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 21361 else 21362 archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 21363 fi 21364 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 21365 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 21366 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 21367 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 21368 else 21369 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 21370 fi 21371 module_expsym_cmds_CXX='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}' 21372 else 21373 case $cc_basename in 21374 xlc*) 21375 output_verbose_link_cmd='echo' 21376 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 21377 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 21378 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 21379 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 21380 module_expsym_cmds_CXX='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}' 21381 ;; 21382 *) 21383 ld_shlibs_CXX=no 21384 ;; 21385 esac 21386 fi 21387 ;; 21388 21389 dgux*) 21390 case $cc_basename in 21391 ec++*) 21392 # FIXME: insert proper C++ library support 21393 ld_shlibs_CXX=no 21394 ;; 21395 ghcx*) 21396 # Green Hills C++ Compiler 21397 # FIXME: insert proper C++ library support 21398 ld_shlibs_CXX=no 21399 ;; 21400 *) 21401 # FIXME: insert proper C++ library support 21402 ld_shlibs_CXX=no 21403 ;; 21404 esac 21405 ;; 21406 freebsd[12]*) 21407 # C++ shared libraries reported to be fairly broken before switch to ELF 21408 ld_shlibs_CXX=no 21409 ;; 21410 freebsd-elf*) 21411 archive_cmds_need_lc_CXX=no 21412 ;; 21413 freebsd* | kfreebsd*-gnu | dragonfly*) 21414 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 21415 # conventions 21416 ld_shlibs_CXX=yes 21417 ;; 21418 gnu*) 21419 ;; 21420 hpux9*) 21421 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 21422 hardcode_libdir_separator_CXX=: 21423 export_dynamic_flag_spec_CXX='${wl}-E' 21424 hardcode_direct_CXX=yes 21425 hardcode_minus_L_CXX=yes # Not in the search PATH, 21426 # but as the default 21427 # location of the library. 21428 21429 case $cc_basename in 21430 CC*) 21431 # FIXME: insert proper C++ library support 21432 ld_shlibs_CXX=no 21433 ;; 21434 aCC*) 21435 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 21436 # Commands to make compiler produce verbose output that lists 21437 # what "hidden" libraries, object files and flags are used when 21438 # linking a shared library. 21439 # 21440 # There doesn't appear to be a way to prevent this compiler from 21441 # explicitly linking system object files so we need to strip them 21442 # from the output so that they don't get included in the library 21443 # dependencies. 21444 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' 21445 ;; 21446 *) 21447 if test "$GXX" = yes; then 21448 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 21449 else 21450 # FIXME: insert proper C++ library support 21451 ld_shlibs_CXX=no 21452 fi 21453 ;; 21454 esac 21455 ;; 21456 hpux10*|hpux11*) 21457 if test $with_gnu_ld = no; then 21458 case $host_cpu in 21459 hppa*64*) 21460 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 21461 hardcode_libdir_flag_spec_ld_CXX='+b $libdir' 21462 hardcode_libdir_separator_CXX=: 21463 ;; 21464 ia64*) 21465 hardcode_libdir_flag_spec_CXX='-L$libdir' 21466 ;; 21467 *) 21468 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 21469 hardcode_libdir_separator_CXX=: 21470 export_dynamic_flag_spec_CXX='${wl}-E' 21471 ;; 21472 esac 21473 fi 21474 case $host_cpu in 21475 hppa*64*) 21476 hardcode_direct_CXX=no 21477 hardcode_shlibpath_var_CXX=no 21478 ;; 21479 ia64*) 21480 hardcode_direct_CXX=no 21481 hardcode_shlibpath_var_CXX=no 21482 hardcode_minus_L_CXX=yes # Not in the search PATH, 21483 # but as the default 21484 # location of the library. 21485 ;; 21486 *) 21487 hardcode_direct_CXX=yes 21488 hardcode_minus_L_CXX=yes # Not in the search PATH, 21489 # but as the default 21490 # location of the library. 21491 ;; 21492 esac 21493 21494 case $cc_basename in 21495 CC*) 21496 # FIXME: insert proper C++ library support 21497 ld_shlibs_CXX=no 21498 ;; 21499 aCC*) 21500 case $host_cpu in 21501 hppa*64*|ia64*) 21502 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' 21503 ;; 21504 *) 21505 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 21506 ;; 21507 esac 21508 # Commands to make compiler produce verbose output that lists 21509 # what "hidden" libraries, object files and flags are used when 21510 # linking a shared library. 21511 # 21512 # There doesn't appear to be a way to prevent this compiler from 21513 # explicitly linking system object files so we need to strip them 21514 # from the output so that they don't get included in the library 21515 # dependencies. 21516 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' 21517 ;; 21518 *) 21519 if test "$GXX" = yes; then 21520 if test $with_gnu_ld = no; then 21521 case $host_cpu in 21522 ia64*|hppa*64*) 21523 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' 21524 ;; 21525 *) 21526 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 21527 ;; 21528 esac 21529 fi 21530 else 21531 # FIXME: insert proper C++ library support 21532 ld_shlibs_CXX=no 21533 fi 21534 ;; 21535 esac 21536 ;; 21537 irix5* | irix6*) 21538 case $cc_basename in 21539 CC*) 21540 # SGI C++ 21541 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 21542 21543 # Archives containing C++ object files must be created using 21544 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 21545 # necessary to make sure instantiated templates are included 21546 # in the archive. 21547 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 21548 ;; 21549 *) 21550 if test "$GXX" = yes; then 21551 if test "$with_gnu_ld" = no; then 21552 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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' 21553 else 21554 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib' 21555 fi 21556 fi 21557 link_all_deplibs_CXX=yes 21558 ;; 21559 esac 21560 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 21561 hardcode_libdir_separator_CXX=: 21562 ;; 21563 linux*) 21564 case $cc_basename in 21565 KCC*) 21566 # Kuck and Associates, Inc. (KAI) C++ Compiler 21567 21568 # KCC will only create a shared library if the output file 21569 # ends with ".so" (or ".sl" for HP-UX), so rename the library 21570 # to its proper name (with version) after linking. 21571 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' 21572 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' 21573 # Commands to make compiler produce verbose output that lists 21574 # what "hidden" libraries, object files and flags are used when 21575 # linking a shared library. 21576 # 21577 # There doesn't appear to be a way to prevent this compiler from 21578 # explicitly linking system object files so we need to strip them 21579 # from the output so that they don't get included in the library 21580 # dependencies. 21581 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' 21582 21583 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' 21584 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 21585 21586 # Archives containing C++ object files must be created using 21587 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 21588 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 21589 ;; 21590 icpc*) 21591 # Intel C++ 21592 with_gnu_ld=yes 21593 # version 8.0 and above of icpc choke on multiply defined symbols 21594 # if we add $predep_objects and $postdep_objects, however 7.1 and 21595 # earlier do not add the objects themselves. 21596 case `$CC -V 2>&1` in 21597 *"Version 7."*) 21598 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 21599 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 21600 ;; 21601 *) # Version 8.0 or newer 21602 tmp_idyn= 21603 case $host_cpu in 21604 ia64*) tmp_idyn=' -i_dynamic';; 21605 esac 21606 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 21607 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 21608 ;; 21609 esac 21610 archive_cmds_need_lc_CXX=no 21611 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 21612 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 21613 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 21614 ;; 21615 pgCC*) 21616 # Portland Group C++ compiler 21617 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 21618 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' 21619 21620 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 21621 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 21622 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 21623 ;; 21624 cxx*) 21625 # Compaq C++ 21626 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 21627 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' 21628 21629 runpath_var=LD_RUN_PATH 21630 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 21631 hardcode_libdir_separator_CXX=: 21632 21633 # Commands to make compiler produce verbose output that lists 21634 # what "hidden" libraries, object files and flags are used when 21635 # linking a shared library. 21636 # 21637 # There doesn't appear to be a way to prevent this compiler from 21638 # explicitly linking system object files so we need to strip them 21639 # from the output so that they don't get included in the library 21640 # dependencies. 21641 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' 21642 ;; 21643 esac 21644 ;; 21645 lynxos*) 21646 # FIXME: insert proper C++ library support 21647 ld_shlibs_CXX=no 21648 ;; 21649 m88k*) 21650 # FIXME: insert proper C++ library support 21651 ld_shlibs_CXX=no 21652 ;; 21653 mvs*) 21654 case $cc_basename in 21655 cxx*) 21656 # FIXME: insert proper C++ library support 21657 ld_shlibs_CXX=no 21658 ;; 21659 *) 21660 # FIXME: insert proper C++ library support 21661 ld_shlibs_CXX=no 21662 ;; 21663 esac 21664 ;; 21665 netbsd*) 21666 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 21667 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 21668 wlarc= 21669 hardcode_libdir_flag_spec_CXX='-R$libdir' 21670 hardcode_direct_CXX=yes 21671 hardcode_shlibpath_var_CXX=no 21672 fi 21673 # Workaround some broken pre-1.5 toolchains 21674 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 21675 ;; 21676 openbsd2*) 21677 # C++ shared libraries are fairly broken 21678 ld_shlibs_CXX=no 21679 ;; 21680 openbsd*) 21681 hardcode_direct_CXX=yes 21682 hardcode_shlibpath_var_CXX=no 21683 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 21684 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 21685 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 21686 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 21687 export_dynamic_flag_spec_CXX='${wl}-E' 21688 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 21689 fi 21690 output_verbose_link_cmd='echo' 21691 ;; 21692 osf3*) 21693 case $cc_basename in 21694 KCC*) 21695 # Kuck and Associates, Inc. (KAI) C++ Compiler 21696 21697 # KCC will only create a shared library if the output file 21698 # ends with ".so" (or ".sl" for HP-UX), so rename the library 21699 # to its proper name (with version) after linking. 21700 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' 21701 21702 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 21703 hardcode_libdir_separator_CXX=: 21704 21705 # Archives containing C++ object files must be created using 21706 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 21707 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 21708 21709 ;; 21710 RCC*) 21711 # Rational C++ 2.4.1 21712 # FIXME: insert proper C++ library support 21713 ld_shlibs_CXX=no 21714 ;; 21715 cxx*) 21716 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 21717 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 21718 21719 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 21720 hardcode_libdir_separator_CXX=: 21721 21722 # Commands to make compiler produce verbose output that lists 21723 # what "hidden" libraries, object files and flags are used when 21724 # linking a shared library. 21725 # 21726 # There doesn't appear to be a way to prevent this compiler from 21727 # explicitly linking system object files so we need to strip them 21728 # from the output so that they don't get included in the library 21729 # dependencies. 21730 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' 21731 ;; 21732 *) 21733 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 21734 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 21735 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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' 21736 21737 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 21738 hardcode_libdir_separator_CXX=: 21739 21740 # Commands to make compiler produce verbose output that lists 21741 # what "hidden" libraries, object files and flags are used when 21742 # linking a shared library. 21743 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 21744 21745 else 21746 # FIXME: insert proper C++ library support 21747 ld_shlibs_CXX=no 21748 fi 21749 ;; 21750 esac 21751 ;; 21752 osf4* | osf5*) 21753 case $cc_basename in 21754 KCC*) 21755 # Kuck and Associates, Inc. (KAI) C++ Compiler 21756 21757 # KCC will only create a shared library if the output file 21758 # ends with ".so" (or ".sl" for HP-UX), so rename the library 21759 # to its proper name (with version) after linking. 21760 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' 21761 21762 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 21763 hardcode_libdir_separator_CXX=: 21764 21765 # Archives containing C++ object files must be created using 21766 # the KAI C++ compiler. 21767 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' 21768 ;; 21769 RCC*) 21770 # Rational C++ 2.4.1 21771 # FIXME: insert proper C++ library support 21772 ld_shlibs_CXX=no 21773 ;; 21774 cxx*) 21775 allow_undefined_flag_CXX=' -expect_unresolved \*' 21776 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 21777 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 21778 echo "-hidden">> $lib.exp~ 21779 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~ 21780 $rm $lib.exp' 21781 21782 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 21783 hardcode_libdir_separator_CXX=: 21784 21785 # Commands to make compiler produce verbose output that lists 21786 # what "hidden" libraries, object files and flags are used when 21787 # linking a shared library. 21788 # 21789 # There doesn't appear to be a way to prevent this compiler from 21790 # explicitly linking system object files so we need to strip them 21791 # from the output so that they don't get included in the library 21792 # dependencies. 21793 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' 21794 ;; 21795 *) 21796 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 21797 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 21798 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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' 21799 21800 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 21801 hardcode_libdir_separator_CXX=: 21802 21803 # Commands to make compiler produce verbose output that lists 21804 # what "hidden" libraries, object files and flags are used when 21805 # linking a shared library. 21806 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 21807 21808 else 21809 # FIXME: insert proper C++ library support 21810 ld_shlibs_CXX=no 21811 fi 21812 ;; 21813 esac 21814 ;; 21815 psos*) 21816 # FIXME: insert proper C++ library support 21817 ld_shlibs_CXX=no 21818 ;; 21819 sco*) 21820 archive_cmds_need_lc_CXX=no 21821 case $cc_basename in 21822 CC*) 21823 # FIXME: insert proper C++ library support 21824 ld_shlibs_CXX=no 21825 ;; 21826 *) 21827 # FIXME: insert proper C++ library support 21828 ld_shlibs_CXX=no 21829 ;; 21830 esac 21831 ;; 21832 sunos4*) 21833 case $cc_basename in 21834 CC*) 21835 # Sun C++ 4.x 21836 # FIXME: insert proper C++ library support 21837 ld_shlibs_CXX=no 21838 ;; 21839 lcc*) 21840 # Lucid 21841 # FIXME: insert proper C++ library support 21842 ld_shlibs_CXX=no 21843 ;; 21844 *) 21845 # FIXME: insert proper C++ library support 21846 ld_shlibs_CXX=no 21847 ;; 21848 esac 21849 ;; 21850 solaris*) 21851 case $cc_basename in 21852 CC*) 21853 # Sun C++ 4.2, 5.x and Centerline C++ 21854 archive_cmds_need_lc_CXX=yes 21855 no_undefined_flag_CXX=' -zdefs' 21856 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 21857 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 21858 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 21859 21860 hardcode_libdir_flag_spec_CXX='-R$libdir' 21861 hardcode_shlibpath_var_CXX=no 21862 case $host_os in 21863 solaris2.[0-5] | solaris2.[0-5].*) ;; 21864 *) 21865 # The C++ compiler is used as linker so we must use $wl 21866 # flag to pass the commands to the underlying system 21867 # linker. We must also pass each convience library through 21868 # to the system linker between allextract/defaultextract. 21869 # The C++ compiler will combine linker options so we 21870 # cannot just pass the convience library names through 21871 # without $wl. 21872 # Supported since Solaris 2.6 (maybe 2.5.1?) 21873 whole_archive_flag_spec_CXX='${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' 21874 ;; 21875 esac 21876 link_all_deplibs_CXX=yes 21877 21878 output_verbose_link_cmd='echo' 21879 21880 # Archives containing C++ object files must be created using 21881 # "CC -xar", where "CC" is the Sun C++ compiler. This is 21882 # necessary to make sure instantiated templates are included 21883 # in the archive. 21884 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 21885 ;; 21886 gcx*) 21887 # Green Hills C++ Compiler 21888 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 21889 21890 # The C++ compiler must be used to create the archive. 21891 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 21892 ;; 21893 *) 21894 # GNU C++ compiler with Solaris linker 21895 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 21896 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 21897 if $CC --version | grep -v '^2\.7' > /dev/null; then 21898 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 21899 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 21900 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 21901 21902 # Commands to make compiler produce verbose output that lists 21903 # what "hidden" libraries, object files and flags are used when 21904 # linking a shared library. 21905 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 21906 else 21907 # g++ 2.7 appears to require `-G' NOT `-shared' on this 21908 # platform. 21909 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 21910 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 21911 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 21912 21913 # Commands to make compiler produce verbose output that lists 21914 # what "hidden" libraries, object files and flags are used when 21915 # linking a shared library. 21916 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 21917 fi 21918 21919 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 21920 fi 21921 ;; 21922 esac 21923 ;; 21924 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) 21925 archive_cmds_need_lc_CXX=no 21926 ;; 21927 tandem*) 21928 case $cc_basename in 21929 NCC*) 21930 # NonStop-UX NCC 3.20 21931 # FIXME: insert proper C++ library support 21932 ld_shlibs_CXX=no 21933 ;; 21934 *) 21935 # FIXME: insert proper C++ library support 21936 ld_shlibs_CXX=no 21937 ;; 21938 esac 21939 ;; 21940 vxworks*) 21941 # FIXME: insert proper C++ library support 21942 ld_shlibs_CXX=no 21943 ;; 21944 *) 21945 # FIXME: insert proper C++ library support 21946 ld_shlibs_CXX=no 21947 ;; 21948esac 21949echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 21950echo "${ECHO_T}$ld_shlibs_CXX" >&6 21951test "$ld_shlibs_CXX" = no && can_build_shared=no 21952 21953GCC_CXX="$GXX" 21954LD_CXX="$LD" 21955 21956 21957cat > conftest.$ac_ext <<EOF 21958class Foo 21959{ 21960public: 21961 Foo (void) { a = 0; } 21962private: 21963 int a; 21964}; 21965EOF 21966 21967if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 21968 (eval $ac_compile) 2>&5 21969 ac_status=$? 21970 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21971 (exit $ac_status); }; then 21972 # Parse the compiler output and extract the necessary 21973 # objects, libraries and library flags. 21974 21975 # Sentinel used to keep track of whether or not we are before 21976 # the conftest object file. 21977 pre_test_object_deps_done=no 21978 21979 # The `*' in the case matches for architectures that use `case' in 21980 # $output_verbose_cmd can trigger glob expansion during the loop 21981 # eval without this substitution. 21982 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` 21983 21984 for p in `eval $output_verbose_link_cmd`; do 21985 case $p in 21986 21987 -L* | -R* | -l*) 21988 # Some compilers place space between "-{L,R}" and the path. 21989 # Remove the space. 21990 if test $p = "-L" \ 21991 || test $p = "-R"; then 21992 prev=$p 21993 continue 21994 else 21995 prev= 21996 fi 21997 21998 if test "$pre_test_object_deps_done" = no; then 21999 case $p in 22000 -L* | -R*) 22001 # Internal compiler library paths should come after those 22002 # provided the user. The postdeps already come after the 22003 # user supplied libs so there is no need to process them. 22004 if test -z "$compiler_lib_search_path_CXX"; then 22005 compiler_lib_search_path_CXX="${prev}${p}" 22006 else 22007 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 22008 fi 22009 ;; 22010 # The "-l" case would never come before the object being 22011 # linked, so don't bother handling this case. 22012 esac 22013 else 22014 if test -z "$postdeps_CXX"; then 22015 postdeps_CXX="${prev}${p}" 22016 else 22017 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 22018 fi 22019 fi 22020 ;; 22021 22022 *.$objext) 22023 # This assumes that the test object file only shows up 22024 # once in the compiler output. 22025 if test "$p" = "conftest.$objext"; then 22026 pre_test_object_deps_done=yes 22027 continue 22028 fi 22029 22030 if test "$pre_test_object_deps_done" = no; then 22031 if test -z "$predep_objects_CXX"; then 22032 predep_objects_CXX="$p" 22033 else 22034 predep_objects_CXX="$predep_objects_CXX $p" 22035 fi 22036 else 22037 if test -z "$postdep_objects_CXX"; then 22038 postdep_objects_CXX="$p" 22039 else 22040 postdep_objects_CXX="$postdep_objects_CXX $p" 22041 fi 22042 fi 22043 ;; 22044 22045 *) ;; # Ignore the rest. 22046 22047 esac 22048 done 22049 22050 # Clean up. 22051 rm -f a.out a.exe 22052else 22053 echo "libtool.m4: error: problem compiling CXX test program" 22054fi 22055 22056$rm -f confest.$objext 22057 22058# PORTME: override above test on systems where it is broken 22059case $host_os in 22060solaris*) 22061 case $cc_basename in 22062 CC*) 22063 # Adding this requires a known-good setup of shared libraries for 22064 # Sun compiler versions before 5.6, else PIC objects from an old 22065 # archive will be linked into the output, leading to subtle bugs. 22066 postdeps_CXX='-lCstd -lCrun' 22067 ;; 22068 esac 22069esac 22070 22071 22072case " $postdeps_CXX " in 22073*" -lc "*) archive_cmds_need_lc_CXX=no ;; 22074esac 22075 22076lt_prog_compiler_wl_CXX= 22077lt_prog_compiler_pic_CXX= 22078lt_prog_compiler_static_CXX= 22079 22080echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 22081echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 22082 22083 # C++ specific cases for pic, static, wl, etc. 22084 if test "$GXX" = yes; then 22085 lt_prog_compiler_wl_CXX='-Wl,' 22086 lt_prog_compiler_static_CXX='-static' 22087 22088 case $host_os in 22089 aix*) 22090 # All AIX code is PIC. 22091 if test "$host_cpu" = ia64; then 22092 # AIX 5 now supports IA64 processor 22093 lt_prog_compiler_static_CXX='-Bstatic' 22094 fi 22095 ;; 22096 amigaos*) 22097 # FIXME: we need at least 68020 code to build shared libraries, but 22098 # adding the `-m68020' flag to GCC prevents building anything better, 22099 # like `-m68040'. 22100 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 22101 ;; 22102 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 22103 # PIC is the default for these OSes. 22104 ;; 22105 mingw* | os2* | pw32*) 22106 # This hack is so that the source file can tell whether it is being 22107 # built for inclusion in a dll (and should export symbols for example). 22108 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 22109 ;; 22110 darwin* | rhapsody*) 22111 # PIC is the default on this platform 22112 # Common symbols not allowed in MH_DYLIB files 22113 lt_prog_compiler_pic_CXX='-fno-common' 22114 ;; 22115 *djgpp*) 22116 # DJGPP does not support shared libraries at all 22117 lt_prog_compiler_pic_CXX= 22118 ;; 22119 sysv4*MP*) 22120 if test -d /usr/nec; then 22121 lt_prog_compiler_pic_CXX=-Kconform_pic 22122 fi 22123 ;; 22124 hpux*) 22125 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 22126 # not for PA HP-UX. 22127 case $host_cpu in 22128 hppa*64*|ia64*) 22129 ;; 22130 *) 22131 lt_prog_compiler_pic_CXX='-fPIC' 22132 ;; 22133 esac 22134 ;; 22135 *) 22136 lt_prog_compiler_pic_CXX='-fPIC' 22137 ;; 22138 esac 22139 else 22140 case $host_os in 22141 aix4* | aix5*) 22142 # All AIX code is PIC. 22143 if test "$host_cpu" = ia64; then 22144 # AIX 5 now supports IA64 processor 22145 lt_prog_compiler_static_CXX='-Bstatic' 22146 else 22147 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 22148 fi 22149 ;; 22150 chorus*) 22151 case $cc_basename in 22152 cxch68*) 22153 # Green Hills C++ Compiler 22154 # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" 22155 ;; 22156 esac 22157 ;; 22158 darwin*) 22159 # PIC is the default on this platform 22160 # Common symbols not allowed in MH_DYLIB files 22161 case $cc_basename in 22162 xlc*) 22163 lt_prog_compiler_pic_CXX='-qnocommon' 22164 lt_prog_compiler_wl_CXX='-Wl,' 22165 ;; 22166 esac 22167 ;; 22168 dgux*) 22169 case $cc_basename in 22170 ec++*) 22171 lt_prog_compiler_pic_CXX='-KPIC' 22172 ;; 22173 ghcx*) 22174 # Green Hills C++ Compiler 22175 lt_prog_compiler_pic_CXX='-pic' 22176 ;; 22177 *) 22178 ;; 22179 esac 22180 ;; 22181 freebsd* | kfreebsd*-gnu | dragonfly*) 22182 # FreeBSD uses GNU C++ 22183 ;; 22184 hpux9* | hpux10* | hpux11*) 22185 case $cc_basename in 22186 CC*) 22187 lt_prog_compiler_wl_CXX='-Wl,' 22188 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" 22189 if test "$host_cpu" != ia64; then 22190 lt_prog_compiler_pic_CXX='+Z' 22191 fi 22192 ;; 22193 aCC*) 22194 lt_prog_compiler_wl_CXX='-Wl,' 22195 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" 22196 case $host_cpu in 22197 hppa*64*|ia64*) 22198 # +Z the default 22199 ;; 22200 *) 22201 lt_prog_compiler_pic_CXX='+Z' 22202 ;; 22203 esac 22204 ;; 22205 *) 22206 ;; 22207 esac 22208 ;; 22209 irix5* | irix6* | nonstopux*) 22210 case $cc_basename in 22211 CC*) 22212 lt_prog_compiler_wl_CXX='-Wl,' 22213 lt_prog_compiler_static_CXX='-non_shared' 22214 # CC pic flag -KPIC is the default. 22215 ;; 22216 *) 22217 ;; 22218 esac 22219 ;; 22220 linux*) 22221 case $cc_basename in 22222 KCC*) 22223 # KAI C++ Compiler 22224 lt_prog_compiler_wl_CXX='--backend -Wl,' 22225 lt_prog_compiler_pic_CXX='-fPIC' 22226 ;; 22227 icpc* | ecpc*) 22228 # Intel C++ 22229 lt_prog_compiler_wl_CXX='-Wl,' 22230 lt_prog_compiler_pic_CXX='-KPIC' 22231 lt_prog_compiler_static_CXX='-static' 22232 ;; 22233 pgCC*) 22234 # Portland Group C++ compiler. 22235 lt_prog_compiler_wl_CXX='-Wl,' 22236 lt_prog_compiler_pic_CXX='-fpic' 22237 lt_prog_compiler_static_CXX='-Bstatic' 22238 ;; 22239 cxx*) 22240 # Compaq C++ 22241 # Make sure the PIC flag is empty. It appears that all Alpha 22242 # Linux and Compaq Tru64 Unix objects are PIC. 22243 lt_prog_compiler_pic_CXX= 22244 lt_prog_compiler_static_CXX='-non_shared' 22245 ;; 22246 *) 22247 ;; 22248 esac 22249 ;; 22250 lynxos*) 22251 ;; 22252 m88k*) 22253 ;; 22254 mvs*) 22255 case $cc_basename in 22256 cxx*) 22257 lt_prog_compiler_pic_CXX='-W c,exportall' 22258 ;; 22259 *) 22260 ;; 22261 esac 22262 ;; 22263 netbsd*) 22264 ;; 22265 osf3* | osf4* | osf5*) 22266 case $cc_basename in 22267 KCC*) 22268 lt_prog_compiler_wl_CXX='--backend -Wl,' 22269 ;; 22270 RCC*) 22271 # Rational C++ 2.4.1 22272 lt_prog_compiler_pic_CXX='-pic' 22273 ;; 22274 cxx*) 22275 # Digital/Compaq C++ 22276 lt_prog_compiler_wl_CXX='-Wl,' 22277 # Make sure the PIC flag is empty. It appears that all Alpha 22278 # Linux and Compaq Tru64 Unix objects are PIC. 22279 lt_prog_compiler_pic_CXX= 22280 lt_prog_compiler_static_CXX='-non_shared' 22281 ;; 22282 *) 22283 ;; 22284 esac 22285 ;; 22286 psos*) 22287 ;; 22288 sco*) 22289 case $cc_basename in 22290 CC*) 22291 lt_prog_compiler_pic_CXX='-fPIC' 22292 ;; 22293 *) 22294 ;; 22295 esac 22296 ;; 22297 solaris*) 22298 case $cc_basename in 22299 CC*) 22300 # Sun C++ 4.2, 5.x and Centerline C++ 22301 lt_prog_compiler_pic_CXX='-KPIC' 22302 lt_prog_compiler_static_CXX='-Bstatic' 22303 lt_prog_compiler_wl_CXX='-Qoption ld ' 22304 ;; 22305 gcx*) 22306 # Green Hills C++ Compiler 22307 lt_prog_compiler_pic_CXX='-PIC' 22308 ;; 22309 *) 22310 ;; 22311 esac 22312 ;; 22313 sunos4*) 22314 case $cc_basename in 22315 CC*) 22316 # Sun C++ 4.x 22317 lt_prog_compiler_pic_CXX='-pic' 22318 lt_prog_compiler_static_CXX='-Bstatic' 22319 ;; 22320 lcc*) 22321 # Lucid 22322 lt_prog_compiler_pic_CXX='-pic' 22323 ;; 22324 *) 22325 ;; 22326 esac 22327 ;; 22328 tandem*) 22329 case $cc_basename in 22330 NCC*) 22331 # NonStop-UX NCC 3.20 22332 lt_prog_compiler_pic_CXX='-KPIC' 22333 ;; 22334 *) 22335 ;; 22336 esac 22337 ;; 22338 unixware*) 22339 ;; 22340 vxworks*) 22341 ;; 22342 *) 22343 lt_prog_compiler_can_build_shared_CXX=no 22344 ;; 22345 esac 22346 fi 22347 22348echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 22349echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6 22350 22351# 22352# Check to make sure the PIC flag actually works. 22353# 22354if test -n "$lt_prog_compiler_pic_CXX"; then 22355 22356echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 22357echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6 22358if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then 22359 echo $ECHO_N "(cached) $ECHO_C" >&6 22360else 22361 lt_prog_compiler_pic_works_CXX=no 22362 ac_outfile=conftest.$ac_objext 22363 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 22364 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 22365 # Insert the option either (1) after the last *FLAGS variable, or 22366 # (2) before a word containing "conftest.", or (3) at the end. 22367 # Note that $ac_compile itself does not contain backslashes and begins 22368 # with a dollar sign (not a hyphen), so the echo should work correctly. 22369 # The option is referenced via a variable to avoid confusing sed. 22370 lt_compile=`echo "$ac_compile" | $SED \ 22371 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 22372 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 22373 -e 's:$: $lt_compiler_flag:'` 22374 (eval echo "\"\$as_me:22374: $lt_compile\"" >&5) 22375 (eval "$lt_compile" 2>conftest.err) 22376 ac_status=$? 22377 cat conftest.err >&5 22378 echo "$as_me:22378: \$? = $ac_status" >&5 22379 if (exit $ac_status) && test -s "$ac_outfile"; then 22380 # The compiler can only warn and ignore the option if not recognized 22381 # So say no if there are warnings other than the usual output. 22382 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp 22383 $SED '/^$/d' conftest.err >conftest.er2 22384 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then 22385 lt_prog_compiler_pic_works_CXX=yes 22386 fi 22387 fi 22388 $rm conftest* 22389 22390fi 22391echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 22392echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6 22393 22394if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then 22395 case $lt_prog_compiler_pic_CXX in 22396 "" | " "*) ;; 22397 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 22398 esac 22399else 22400 lt_prog_compiler_pic_CXX= 22401 lt_prog_compiler_can_build_shared_CXX=no 22402fi 22403 22404fi 22405case $host_os in 22406 # For platforms which do not support PIC, -DPIC is meaningless: 22407 *djgpp*) 22408 lt_prog_compiler_pic_CXX= 22409 ;; 22410 *) 22411 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 22412 ;; 22413esac 22414 22415echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 22416echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 22417if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then 22418 echo $ECHO_N "(cached) $ECHO_C" >&6 22419else 22420 lt_cv_prog_compiler_c_o_CXX=no 22421 $rm -r conftest 2>/dev/null 22422 mkdir conftest 22423 cd conftest 22424 mkdir out 22425 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 22426 22427 lt_compiler_flag="-o out/conftest2.$ac_objext" 22428 # Insert the option either (1) after the last *FLAGS variable, or 22429 # (2) before a word containing "conftest.", or (3) at the end. 22430 # Note that $ac_compile itself does not contain backslashes and begins 22431 # with a dollar sign (not a hyphen), so the echo should work correctly. 22432 lt_compile=`echo "$ac_compile" | $SED \ 22433 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 22434 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 22435 -e 's:$: $lt_compiler_flag:'` 22436 (eval echo "\"\$as_me:22436: $lt_compile\"" >&5) 22437 (eval "$lt_compile" 2>out/conftest.err) 22438 ac_status=$? 22439 cat out/conftest.err >&5 22440 echo "$as_me:22440: \$? = $ac_status" >&5 22441 if (exit $ac_status) && test -s out/conftest2.$ac_objext 22442 then 22443 # The compiler can only warn and ignore the option if not recognized 22444 # So say no if there are warnings 22445 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp 22446 $SED '/^$/d' out/conftest.err >out/conftest.er2 22447 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then 22448 lt_cv_prog_compiler_c_o_CXX=yes 22449 fi 22450 fi 22451 chmod u+w . 2>&5 22452 $rm conftest* 22453 # SGI C++ compiler will create directory out/ii_files/ for 22454 # template instantiation 22455 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 22456 $rm out/* && rmdir out 22457 cd .. 22458 rmdir conftest 22459 $rm conftest* 22460 22461fi 22462echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 22463echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6 22464 22465 22466hard_links="nottested" 22467if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 22468 # do not overwrite the value of need_locks provided by the user 22469 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 22470echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 22471 hard_links=yes 22472 $rm conftest* 22473 ln conftest.a conftest.b 2>/dev/null && hard_links=no 22474 touch conftest.a 22475 ln conftest.a conftest.b 2>&5 || hard_links=no 22476 ln conftest.a conftest.b 2>/dev/null && hard_links=no 22477 echo "$as_me:$LINENO: result: $hard_links" >&5 22478echo "${ECHO_T}$hard_links" >&6 22479 if test "$hard_links" = no; then 22480 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 22481echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 22482 need_locks=warn 22483 fi 22484else 22485 need_locks=no 22486fi 22487 22488echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 22489echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 22490 22491 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 22492 case $host_os in 22493 aix4* | aix5*) 22494 # If we're using GNU nm, then we don't want the "-C" option. 22495 # -C means demangle to AIX nm, but means don't demangle with GNU nm 22496 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 22497 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' 22498 else 22499 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' 22500 fi 22501 ;; 22502 pw32*) 22503 export_symbols_cmds_CXX="$ltdll_cmds" 22504 ;; 22505 cygwin* | mingw*) 22506 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 22507 ;; 22508 *) 22509 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 22510 ;; 22511 esac 22512 22513echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 22514echo "${ECHO_T}$ld_shlibs_CXX" >&6 22515test "$ld_shlibs_CXX" = no && can_build_shared=no 22516 22517variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 22518if test "$GCC" = yes; then 22519 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 22520fi 22521 22522# 22523# Do we need to explicitly link libc? 22524# 22525case "x$archive_cmds_need_lc_CXX" in 22526x|xyes) 22527 # Assume -lc should be added 22528 archive_cmds_need_lc_CXX=yes 22529 22530 if test "$enable_shared" = yes && test "$GCC" = yes; then 22531 case $archive_cmds_CXX in 22532 *'~'*) 22533 # FIXME: we may have to deal with multi-command sequences. 22534 ;; 22535 '$CC '*) 22536 # Test whether the compiler implicitly links with -lc since on some 22537 # systems, -lgcc has to come before -lc. If gcc already passes -lc 22538 # to ld, don't add -lc before -lgcc. 22539 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 22540echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 22541 $rm conftest* 22542 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 22543 22544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 22545 (eval $ac_compile) 2>&5 22546 ac_status=$? 22547 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22548 (exit $ac_status); } 2>conftest.err; then 22549 soname=conftest 22550 lib=conftest 22551 libobjs=conftest.$ac_objext 22552 deplibs= 22553 wl=$lt_prog_compiler_wl_CXX 22554 compiler_flags=-v 22555 linker_flags=-v 22556 verstring= 22557 output_objdir=. 22558 libname=conftest 22559 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 22560 allow_undefined_flag_CXX= 22561 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 22562 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 22563 ac_status=$? 22564 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22565 (exit $ac_status); } 22566 then 22567 archive_cmds_need_lc_CXX=no 22568 else 22569 archive_cmds_need_lc_CXX=yes 22570 fi 22571 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 22572 else 22573 cat conftest.err 1>&5 22574 fi 22575 $rm conftest* 22576 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 22577echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6 22578 ;; 22579 esac 22580 fi 22581 ;; 22582esac 22583 22584echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 22585echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 22586library_names_spec= 22587libname_spec='lib$name' 22588soname_spec= 22589shrext_cmds=".so" 22590postinstall_cmds= 22591postuninstall_cmds= 22592finish_cmds= 22593finish_eval= 22594shlibpath_var= 22595shlibpath_overrides_runpath=unknown 22596version_type=none 22597dynamic_linker="$host_os ld.so" 22598sys_lib_dlsearch_path_spec="/lib /usr/lib" 22599if test "$GCC" = yes; then 22600 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 22601 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 22602 # if the path contains ";" then we assume it to be the separator 22603 # otherwise default to the standard path separator (i.e. ":") - it is 22604 # assumed that no part of a normal pathname contains ";" but that should 22605 # okay in the real world where ";" in dirpaths is itself problematic. 22606 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 22607 else 22608 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 22609 fi 22610else 22611 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 22612fi 22613need_lib_prefix=unknown 22614hardcode_into_libs=no 22615 22616# when you set need_version to no, make sure it does not cause -set_version 22617# flags to be left without arguments 22618need_version=unknown 22619 22620case $host_os in 22621aix3*) 22622 version_type=linux 22623 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 22624 shlibpath_var=LIBPATH 22625 22626 # AIX 3 has no versioning support, so we append a major version to the name. 22627 soname_spec='${libname}${release}${shared_ext}$major' 22628 ;; 22629 22630aix4* | aix5*) 22631 version_type=linux 22632 need_lib_prefix=no 22633 need_version=no 22634 hardcode_into_libs=yes 22635 if test "$host_cpu" = ia64; then 22636 # AIX 5 supports IA64 22637 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 22638 shlibpath_var=LD_LIBRARY_PATH 22639 else 22640 # With GCC up to 2.95.x, collect2 would create an import file 22641 # for dependence libraries. The import file would start with 22642 # the line `#! .'. This would cause the generated library to 22643 # depend on `.', always an invalid library. This was fixed in 22644 # development snapshots of GCC prior to 3.0. 22645 case $host_os in 22646 aix4 | aix4.[01] | aix4.[01].*) 22647 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 22648 echo ' yes ' 22649 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 22650 : 22651 else 22652 can_build_shared=no 22653 fi 22654 ;; 22655 esac 22656 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 22657 # soname into executable. Probably we can add versioning support to 22658 # collect2, so additional links can be useful in future. 22659 if test "$aix_use_runtimelinking" = yes; then 22660 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 22661 # instead of lib<name>.a to let people know that these are not 22662 # typical AIX shared libraries. 22663 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 22664 else 22665 # We preserve .a as extension for shared libraries through AIX4.2 22666 # and later when we are not doing run time linking. 22667 library_names_spec='${libname}${release}.a $libname.a' 22668 soname_spec='${libname}${release}${shared_ext}$major' 22669 fi 22670 shlibpath_var=LIBPATH 22671 fi 22672 ;; 22673 22674amigaos*) 22675 library_names_spec='$libname.ixlibrary $libname.a' 22676 # Create ${libname}_ixlibrary.a entries in /sys/libs. 22677 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' 22678 ;; 22679 22680beos*) 22681 library_names_spec='${libname}${shared_ext}' 22682 dynamic_linker="$host_os ld.so" 22683 shlibpath_var=LIBRARY_PATH 22684 ;; 22685 22686bsdi[45]*) 22687 version_type=linux 22688 need_version=no 22689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 22690 soname_spec='${libname}${release}${shared_ext}$major' 22691 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 22692 shlibpath_var=LD_LIBRARY_PATH 22693 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 22694 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 22695 # the default ld.so.conf also contains /usr/contrib/lib and 22696 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 22697 # libtool to hard-code these into programs 22698 ;; 22699 22700cygwin* | mingw* | pw32*) 22701 version_type=windows 22702 shrext_cmds=".dll" 22703 need_version=no 22704 need_lib_prefix=no 22705 22706 case $GCC,$host_os in 22707 yes,cygwin* | yes,mingw* | yes,pw32*) 22708 library_names_spec='$libname.dll.a' 22709 # DLL is installed to $(libdir)/../bin by postinstall_cmds 22710 postinstall_cmds='base_file=`basename \${file}`~ 22711 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 22712 dldir=$destdir/`dirname \$dlpath`~ 22713 test -d \$dldir || mkdir -p \$dldir~ 22714 $install_prog $dir/$dlname \$dldir/$dlname~ 22715 chmod a+x \$dldir/$dlname' 22716 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 22717 dlpath=$dir/\$dldll~ 22718 $rm \$dlpath' 22719 shlibpath_overrides_runpath=yes 22720 22721 case $host_os in 22722 cygwin*) 22723 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 22724 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 22725 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 22726 ;; 22727 mingw*) 22728 # MinGW DLLs use traditional 'lib' prefix 22729 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 22730 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 22731 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 22732 # It is most probably a Windows format PATH printed by 22733 # mingw gcc, but we are running on Cygwin. Gcc prints its search 22734 # path with ; separators, and with drive letters. We can handle the 22735 # drive letters (cygwin fileutils understands them), so leave them, 22736 # especially as we might pass files found there to a mingw objdump, 22737 # which wouldn't understand a cygwinified path. Ahh. 22738 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 22739 else 22740 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 22741 fi 22742 ;; 22743 pw32*) 22744 # pw32 DLLs use 'pw' prefix rather than 'lib' 22745 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 22746 ;; 22747 esac 22748 ;; 22749 22750 *) 22751 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 22752 ;; 22753 esac 22754 dynamic_linker='Win32 ld.exe' 22755 # FIXME: first we should search . and the directory the executable is in 22756 shlibpath_var=PATH 22757 ;; 22758 22759darwin* | rhapsody*) 22760 dynamic_linker="$host_os dyld" 22761 version_type=darwin 22762 need_lib_prefix=no 22763 need_version=no 22764 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 22765 soname_spec='${libname}${release}${major}$shared_ext' 22766 shlibpath_overrides_runpath=yes 22767 shlibpath_var=DYLD_LIBRARY_PATH 22768 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 22769 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 22770 if test "$GCC" = yes; then 22771 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"` 22772 else 22773 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 22774 fi 22775 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 22776 ;; 22777 22778dgux*) 22779 version_type=linux 22780 need_lib_prefix=no 22781 need_version=no 22782 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 22783 soname_spec='${libname}${release}${shared_ext}$major' 22784 shlibpath_var=LD_LIBRARY_PATH 22785 ;; 22786 22787freebsd1*) 22788 dynamic_linker=no 22789 ;; 22790 22791kfreebsd*-gnu) 22792 version_type=linux 22793 need_lib_prefix=no 22794 need_version=no 22795 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 22796 soname_spec='${libname}${release}${shared_ext}$major' 22797 shlibpath_var=LD_LIBRARY_PATH 22798 shlibpath_overrides_runpath=no 22799 hardcode_into_libs=yes 22800 dynamic_linker='GNU ld.so' 22801 ;; 22802 22803freebsd* | dragonfly*) 22804 # DragonFly does not have aout. When/if they implement a new 22805 # versioning mechanism, adjust this. 22806 if test -x /usr/bin/objformat; then 22807 objformat=`/usr/bin/objformat` 22808 else 22809 case $host_os in 22810 freebsd[123]*) objformat=aout ;; 22811 *) objformat=elf ;; 22812 esac 22813 fi 22814 version_type=freebsd-$objformat 22815 case $version_type in 22816 freebsd-elf*) 22817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 22818 need_version=no 22819 need_lib_prefix=no 22820 ;; 22821 freebsd-*) 22822 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 22823 need_version=yes 22824 ;; 22825 esac 22826 shlibpath_var=LD_LIBRARY_PATH 22827 case $host_os in 22828 freebsd2*) 22829 shlibpath_overrides_runpath=yes 22830 ;; 22831 freebsd3.[01]* | freebsdelf3.[01]*) 22832 shlibpath_overrides_runpath=yes 22833 hardcode_into_libs=yes 22834 ;; 22835 *) # from 3.2 on 22836 shlibpath_overrides_runpath=no 22837 hardcode_into_libs=yes 22838 ;; 22839 esac 22840 ;; 22841 22842gnu*) 22843 version_type=linux 22844 need_lib_prefix=no 22845 need_version=no 22846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 22847 soname_spec='${libname}${release}${shared_ext}$major' 22848 shlibpath_var=LD_LIBRARY_PATH 22849 hardcode_into_libs=yes 22850 ;; 22851 22852hpux9* | hpux10* | hpux11*) 22853 # Give a soname corresponding to the major version so that dld.sl refuses to 22854 # link against other versions. 22855 version_type=sunos 22856 need_lib_prefix=no 22857 need_version=no 22858 case $host_cpu in 22859 ia64*) 22860 shrext_cmds='.so' 22861 hardcode_into_libs=yes 22862 dynamic_linker="$host_os dld.so" 22863 shlibpath_var=LD_LIBRARY_PATH 22864 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 22865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 22866 soname_spec='${libname}${release}${shared_ext}$major' 22867 if test "X$HPUX_IA64_MODE" = X32; then 22868 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 22869 else 22870 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 22871 fi 22872 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 22873 ;; 22874 hppa*64*) 22875 shrext_cmds='.sl' 22876 hardcode_into_libs=yes 22877 dynamic_linker="$host_os dld.sl" 22878 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 22879 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 22880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 22881 soname_spec='${libname}${release}${shared_ext}$major' 22882 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 22883 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 22884 ;; 22885 *) 22886 shrext_cmds='.sl' 22887 dynamic_linker="$host_os dld.sl" 22888 shlibpath_var=SHLIB_PATH 22889 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 22890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 22891 soname_spec='${libname}${release}${shared_ext}$major' 22892 ;; 22893 esac 22894 # HP-UX runs *really* slowly unless shared libraries are mode 555. 22895 postinstall_cmds='chmod 555 $lib' 22896 ;; 22897 22898irix5* | irix6* | nonstopux*) 22899 case $host_os in 22900 nonstopux*) version_type=nonstopux ;; 22901 *) 22902 if test "$lt_cv_prog_gnu_ld" = yes; then 22903 version_type=linux 22904 else 22905 version_type=irix 22906 fi ;; 22907 esac 22908 need_lib_prefix=no 22909 need_version=no 22910 soname_spec='${libname}${release}${shared_ext}$major' 22911 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 22912 case $host_os in 22913 irix5* | nonstopux*) 22914 libsuff= shlibsuff= 22915 ;; 22916 *) 22917 case $LD in # libtool.m4 will add one of these switches to LD 22918 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 22919 libsuff= shlibsuff= libmagic=32-bit;; 22920 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 22921 libsuff=32 shlibsuff=N32 libmagic=N32;; 22922 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 22923 libsuff=64 shlibsuff=64 libmagic=64-bit;; 22924 *) libsuff= shlibsuff= libmagic=never-match;; 22925 esac 22926 ;; 22927 esac 22928 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 22929 shlibpath_overrides_runpath=no 22930 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 22931 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 22932 hardcode_into_libs=yes 22933 ;; 22934 22935# No shared lib support for Linux oldld, aout, or coff. 22936linux*oldld* | linux*aout* | linux*coff*) 22937 dynamic_linker=no 22938 ;; 22939 22940# This must be Linux ELF. 22941linux*) 22942 version_type=linux 22943 need_lib_prefix=no 22944 need_version=no 22945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 22946 soname_spec='${libname}${release}${shared_ext}$major' 22947 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 22948 shlibpath_var=LD_LIBRARY_PATH 22949 shlibpath_overrides_runpath=no 22950 # This implies no fast_install, which is unacceptable. 22951 # Some rework will be needed to allow for fast_install 22952 # before this can be enabled. 22953 hardcode_into_libs=yes 22954 22955 # Append ld.so.conf contents to the search path 22956 if test -f /etc/ld.so.conf; then 22957 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' ' '` 22958 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 22959 fi 22960 22961 # We used to test for /lib/ld.so.1 and disable shared libraries on 22962 # powerpc, because MkLinux only supported shared libraries with the 22963 # GNU dynamic linker. Since this was broken with cross compilers, 22964 # most powerpc-linux boxes support dynamic linking these days and 22965 # people can always --disable-shared, the test was removed, and we 22966 # assume the GNU/Linux dynamic linker is in use. 22967 dynamic_linker='GNU/Linux ld.so' 22968 ;; 22969 22970knetbsd*-gnu) 22971 version_type=linux 22972 need_lib_prefix=no 22973 need_version=no 22974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 22975 soname_spec='${libname}${release}${shared_ext}$major' 22976 shlibpath_var=LD_LIBRARY_PATH 22977 shlibpath_overrides_runpath=no 22978 hardcode_into_libs=yes 22979 dynamic_linker='GNU ld.so' 22980 ;; 22981 22982netbsd*) 22983 version_type=sunos 22984 need_lib_prefix=no 22985 need_version=no 22986 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 22987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 22988 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 22989 dynamic_linker='NetBSD (a.out) ld.so' 22990 else 22991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 22992 soname_spec='${libname}${release}${shared_ext}$major' 22993 dynamic_linker='NetBSD ld.elf_so' 22994 fi 22995 shlibpath_var=LD_LIBRARY_PATH 22996 shlibpath_overrides_runpath=yes 22997 hardcode_into_libs=yes 22998 ;; 22999 23000newsos6) 23001 version_type=linux 23002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 23003 shlibpath_var=LD_LIBRARY_PATH 23004 shlibpath_overrides_runpath=yes 23005 ;; 23006 23007nto-qnx*) 23008 version_type=linux 23009 need_lib_prefix=no 23010 need_version=no 23011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 23012 soname_spec='${libname}${release}${shared_ext}$major' 23013 shlibpath_var=LD_LIBRARY_PATH 23014 shlibpath_overrides_runpath=yes 23015 ;; 23016 23017openbsd*) 23018 version_type=sunos 23019 need_lib_prefix=no 23020 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 23021 case $host_os in 23022 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 23023 *) need_version=no ;; 23024 esac 23025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 23026 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 23027 shlibpath_var=LD_LIBRARY_PATH 23028 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 23029 case $host_os in 23030 openbsd2.[89] | openbsd2.[89].*) 23031 shlibpath_overrides_runpath=no 23032 ;; 23033 *) 23034 shlibpath_overrides_runpath=yes 23035 ;; 23036 esac 23037 else 23038 shlibpath_overrides_runpath=yes 23039 fi 23040 ;; 23041 23042os2*) 23043 libname_spec='$name' 23044 shrext_cmds=".dll" 23045 need_lib_prefix=no 23046 library_names_spec='$libname${shared_ext} $libname.a' 23047 dynamic_linker='OS/2 ld.exe' 23048 shlibpath_var=LIBPATH 23049 ;; 23050 23051osf3* | osf4* | osf5*) 23052 version_type=osf 23053 need_lib_prefix=no 23054 need_version=no 23055 soname_spec='${libname}${release}${shared_ext}$major' 23056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 23057 shlibpath_var=LD_LIBRARY_PATH 23058 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 23059 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 23060 ;; 23061 23062sco3.2v5*) 23063 version_type=osf 23064 soname_spec='${libname}${release}${shared_ext}$major' 23065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 23066 shlibpath_var=LD_LIBRARY_PATH 23067 ;; 23068 23069solaris*) 23070 version_type=linux 23071 need_lib_prefix=no 23072 need_version=no 23073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 23074 soname_spec='${libname}${release}${shared_ext}$major' 23075 shlibpath_var=LD_LIBRARY_PATH 23076 shlibpath_overrides_runpath=yes 23077 hardcode_into_libs=yes 23078 # ldd complains unless libraries are executable 23079 postinstall_cmds='chmod +x $lib' 23080 ;; 23081 23082sunos4*) 23083 version_type=sunos 23084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 23085 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 23086 shlibpath_var=LD_LIBRARY_PATH 23087 shlibpath_overrides_runpath=yes 23088 if test "$with_gnu_ld" = yes; then 23089 need_lib_prefix=no 23090 fi 23091 need_version=yes 23092 ;; 23093 23094sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 23095 version_type=linux 23096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 23097 soname_spec='${libname}${release}${shared_ext}$major' 23098 shlibpath_var=LD_LIBRARY_PATH 23099 case $host_vendor in 23100 sni) 23101 shlibpath_overrides_runpath=no 23102 need_lib_prefix=no 23103 export_dynamic_flag_spec='${wl}-Blargedynsym' 23104 runpath_var=LD_RUN_PATH 23105 ;; 23106 siemens) 23107 need_lib_prefix=no 23108 ;; 23109 motorola) 23110 need_lib_prefix=no 23111 need_version=no 23112 shlibpath_overrides_runpath=no 23113 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 23114 ;; 23115 esac 23116 ;; 23117 23118sysv4*MP*) 23119 if test -d /usr/nec ;then 23120 version_type=linux 23121 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 23122 soname_spec='$libname${shared_ext}.$major' 23123 shlibpath_var=LD_LIBRARY_PATH 23124 fi 23125 ;; 23126 23127uts4*) 23128 version_type=linux 23129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 23130 soname_spec='${libname}${release}${shared_ext}$major' 23131 shlibpath_var=LD_LIBRARY_PATH 23132 ;; 23133 23134*) 23135 dynamic_linker=no 23136 ;; 23137esac 23138echo "$as_me:$LINENO: result: $dynamic_linker" >&5 23139echo "${ECHO_T}$dynamic_linker" >&6 23140test "$dynamic_linker" = no && can_build_shared=no 23141 23142echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 23143echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 23144hardcode_action_CXX= 23145if test -n "$hardcode_libdir_flag_spec_CXX" || \ 23146 test -n "$runpath_var_CXX" || \ 23147 test "X$hardcode_automatic_CXX" = "Xyes" ; then 23148 23149 # We can hardcode non-existant directories. 23150 if test "$hardcode_direct_CXX" != no && 23151 # If the only mechanism to avoid hardcoding is shlibpath_var, we 23152 # have to relink, otherwise we might link with an installed library 23153 # when we should be linking with a yet-to-be-installed one 23154 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 23155 test "$hardcode_minus_L_CXX" != no; then 23156 # Linking always hardcodes the temporary library directory. 23157 hardcode_action_CXX=relink 23158 else 23159 # We can link without hardcoding, and we can hardcode nonexisting dirs. 23160 hardcode_action_CXX=immediate 23161 fi 23162else 23163 # We cannot hardcode anything, or else we can only hardcode existing 23164 # directories. 23165 hardcode_action_CXX=unsupported 23166fi 23167echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 23168echo "${ECHO_T}$hardcode_action_CXX" >&6 23169 23170if test "$hardcode_action_CXX" = relink; then 23171 # Fast installation is not supported 23172 enable_fast_install=no 23173elif test "$shlibpath_overrides_runpath" = yes || 23174 test "$enable_shared" = no; then 23175 # Fast installation is not necessary 23176 enable_fast_install=needless 23177fi 23178 23179striplib= 23180old_striplib= 23181echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 23182echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 23183if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 23184 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 23185 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 23186 echo "$as_me:$LINENO: result: yes" >&5 23187echo "${ECHO_T}yes" >&6 23188else 23189# FIXME - insert some real tests, host_os isn't really good enough 23190 case $host_os in 23191 darwin*) 23192 if test -n "$STRIP" ; then 23193 striplib="$STRIP -x" 23194 echo "$as_me:$LINENO: result: yes" >&5 23195echo "${ECHO_T}yes" >&6 23196 else 23197 echo "$as_me:$LINENO: result: no" >&5 23198echo "${ECHO_T}no" >&6 23199fi 23200 ;; 23201 *) 23202 echo "$as_me:$LINENO: result: no" >&5 23203echo "${ECHO_T}no" >&6 23204 ;; 23205 esac 23206fi 23207 23208if test "x$enable_dlopen" != xyes; then 23209 enable_dlopen=unknown 23210 enable_dlopen_self=unknown 23211 enable_dlopen_self_static=unknown 23212else 23213 lt_cv_dlopen=no 23214 lt_cv_dlopen_libs= 23215 23216 case $host_os in 23217 beos*) 23218 lt_cv_dlopen="load_add_on" 23219 lt_cv_dlopen_libs= 23220 lt_cv_dlopen_self=yes 23221 ;; 23222 23223 mingw* | pw32*) 23224 lt_cv_dlopen="LoadLibrary" 23225 lt_cv_dlopen_libs= 23226 ;; 23227 23228 cygwin*) 23229 lt_cv_dlopen="dlopen" 23230 lt_cv_dlopen_libs= 23231 ;; 23232 23233 darwin*) 23234 # if libdl is installed we need to link against it 23235 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 23236echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 23237if test "${ac_cv_lib_dl_dlopen+set}" = set; then 23238 echo $ECHO_N "(cached) $ECHO_C" >&6 23239else 23240 ac_check_lib_save_LIBS=$LIBS 23241LIBS="-ldl $LIBS" 23242cat >conftest.$ac_ext <<_ACEOF 23243/* confdefs.h. */ 23244_ACEOF 23245cat confdefs.h >>conftest.$ac_ext 23246cat >>conftest.$ac_ext <<_ACEOF 23247/* end confdefs.h. */ 23248 23249/* Override any gcc2 internal prototype to avoid an error. */ 23250#ifdef __cplusplus 23251extern "C" 23252#endif 23253/* We use char because int might match the return type of a gcc2 23254 builtin and then its argument prototype would still apply. */ 23255char dlopen (); 23256int 23257main () 23258{ 23259dlopen (); 23260 ; 23261 return 0; 23262} 23263_ACEOF 23264rm -f conftest.$ac_objext conftest$ac_exeext 23265if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 23266 (eval $ac_link) 2>conftest.er1 23267 ac_status=$? 23268 grep -v '^ *+' conftest.er1 >conftest.err 23269 rm -f conftest.er1 23270 cat conftest.err >&5 23271 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23272 (exit $ac_status); } && 23273 { ac_try='test -z "$ac_cxx_werror_flag" 23274 || test ! -s conftest.err' 23275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23276 (eval $ac_try) 2>&5 23277 ac_status=$? 23278 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23279 (exit $ac_status); }; } && 23280 { ac_try='test -s conftest$ac_exeext' 23281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23282 (eval $ac_try) 2>&5 23283 ac_status=$? 23284 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23285 (exit $ac_status); }; }; then 23286 ac_cv_lib_dl_dlopen=yes 23287else 23288 echo "$as_me: failed program was:" >&5 23289sed 's/^/| /' conftest.$ac_ext >&5 23290 23291ac_cv_lib_dl_dlopen=no 23292fi 23293rm -f conftest.err conftest.$ac_objext \ 23294 conftest$ac_exeext conftest.$ac_ext 23295LIBS=$ac_check_lib_save_LIBS 23296fi 23297echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 23298echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 23299if test $ac_cv_lib_dl_dlopen = yes; then 23300 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 23301else 23302 23303 lt_cv_dlopen="dyld" 23304 lt_cv_dlopen_libs= 23305 lt_cv_dlopen_self=yes 23306 23307fi 23308 23309 ;; 23310 23311 *) 23312 echo "$as_me:$LINENO: checking for shl_load" >&5 23313echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 23314if test "${ac_cv_func_shl_load+set}" = set; then 23315 echo $ECHO_N "(cached) $ECHO_C" >&6 23316else 23317 cat >conftest.$ac_ext <<_ACEOF 23318/* confdefs.h. */ 23319_ACEOF 23320cat confdefs.h >>conftest.$ac_ext 23321cat >>conftest.$ac_ext <<_ACEOF 23322/* end confdefs.h. */ 23323/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 23324 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 23325#define shl_load innocuous_shl_load 23326 23327/* System header to define __stub macros and hopefully few prototypes, 23328 which can conflict with char shl_load (); below. 23329 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 23330 <limits.h> exists even on freestanding compilers. */ 23331 23332#ifdef __STDC__ 23333# include <limits.h> 23334#else 23335# include <assert.h> 23336#endif 23337 23338#undef shl_load 23339 23340/* Override any gcc2 internal prototype to avoid an error. */ 23341#ifdef __cplusplus 23342extern "C" 23343{ 23344#endif 23345/* We use char because int might match the return type of a gcc2 23346 builtin and then its argument prototype would still apply. */ 23347char shl_load (); 23348/* The GNU C library defines this for functions which it implements 23349 to always fail with ENOSYS. Some functions are actually named 23350 something starting with __ and the normal name is an alias. */ 23351#if defined (__stub_shl_load) || defined (__stub___shl_load) 23352choke me 23353#else 23354char (*f) () = shl_load; 23355#endif 23356#ifdef __cplusplus 23357} 23358#endif 23359 23360int 23361main () 23362{ 23363return f != shl_load; 23364 ; 23365 return 0; 23366} 23367_ACEOF 23368rm -f conftest.$ac_objext conftest$ac_exeext 23369if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 23370 (eval $ac_link) 2>conftest.er1 23371 ac_status=$? 23372 grep -v '^ *+' conftest.er1 >conftest.err 23373 rm -f conftest.er1 23374 cat conftest.err >&5 23375 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23376 (exit $ac_status); } && 23377 { ac_try='test -z "$ac_cxx_werror_flag" 23378 || test ! -s conftest.err' 23379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23380 (eval $ac_try) 2>&5 23381 ac_status=$? 23382 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23383 (exit $ac_status); }; } && 23384 { ac_try='test -s conftest$ac_exeext' 23385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23386 (eval $ac_try) 2>&5 23387 ac_status=$? 23388 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23389 (exit $ac_status); }; }; then 23390 ac_cv_func_shl_load=yes 23391else 23392 echo "$as_me: failed program was:" >&5 23393sed 's/^/| /' conftest.$ac_ext >&5 23394 23395ac_cv_func_shl_load=no 23396fi 23397rm -f conftest.err conftest.$ac_objext \ 23398 conftest$ac_exeext conftest.$ac_ext 23399fi 23400echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 23401echo "${ECHO_T}$ac_cv_func_shl_load" >&6 23402if test $ac_cv_func_shl_load = yes; then 23403 lt_cv_dlopen="shl_load" 23404else 23405 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 23406echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 23407if test "${ac_cv_lib_dld_shl_load+set}" = set; then 23408 echo $ECHO_N "(cached) $ECHO_C" >&6 23409else 23410 ac_check_lib_save_LIBS=$LIBS 23411LIBS="-ldld $LIBS" 23412cat >conftest.$ac_ext <<_ACEOF 23413/* confdefs.h. */ 23414_ACEOF 23415cat confdefs.h >>conftest.$ac_ext 23416cat >>conftest.$ac_ext <<_ACEOF 23417/* end confdefs.h. */ 23418 23419/* Override any gcc2 internal prototype to avoid an error. */ 23420#ifdef __cplusplus 23421extern "C" 23422#endif 23423/* We use char because int might match the return type of a gcc2 23424 builtin and then its argument prototype would still apply. */ 23425char shl_load (); 23426int 23427main () 23428{ 23429shl_load (); 23430 ; 23431 return 0; 23432} 23433_ACEOF 23434rm -f conftest.$ac_objext conftest$ac_exeext 23435if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 23436 (eval $ac_link) 2>conftest.er1 23437 ac_status=$? 23438 grep -v '^ *+' conftest.er1 >conftest.err 23439 rm -f conftest.er1 23440 cat conftest.err >&5 23441 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23442 (exit $ac_status); } && 23443 { ac_try='test -z "$ac_cxx_werror_flag" 23444 || test ! -s conftest.err' 23445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23446 (eval $ac_try) 2>&5 23447 ac_status=$? 23448 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23449 (exit $ac_status); }; } && 23450 { ac_try='test -s conftest$ac_exeext' 23451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23452 (eval $ac_try) 2>&5 23453 ac_status=$? 23454 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23455 (exit $ac_status); }; }; then 23456 ac_cv_lib_dld_shl_load=yes 23457else 23458 echo "$as_me: failed program was:" >&5 23459sed 's/^/| /' conftest.$ac_ext >&5 23460 23461ac_cv_lib_dld_shl_load=no 23462fi 23463rm -f conftest.err conftest.$ac_objext \ 23464 conftest$ac_exeext conftest.$ac_ext 23465LIBS=$ac_check_lib_save_LIBS 23466fi 23467echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 23468echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 23469if test $ac_cv_lib_dld_shl_load = yes; then 23470 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 23471else 23472 echo "$as_me:$LINENO: checking for dlopen" >&5 23473echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 23474if test "${ac_cv_func_dlopen+set}" = set; then 23475 echo $ECHO_N "(cached) $ECHO_C" >&6 23476else 23477 cat >conftest.$ac_ext <<_ACEOF 23478/* confdefs.h. */ 23479_ACEOF 23480cat confdefs.h >>conftest.$ac_ext 23481cat >>conftest.$ac_ext <<_ACEOF 23482/* end confdefs.h. */ 23483/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 23484 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 23485#define dlopen innocuous_dlopen 23486 23487/* System header to define __stub macros and hopefully few prototypes, 23488 which can conflict with char dlopen (); below. 23489 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 23490 <limits.h> exists even on freestanding compilers. */ 23491 23492#ifdef __STDC__ 23493# include <limits.h> 23494#else 23495# include <assert.h> 23496#endif 23497 23498#undef dlopen 23499 23500/* Override any gcc2 internal prototype to avoid an error. */ 23501#ifdef __cplusplus 23502extern "C" 23503{ 23504#endif 23505/* We use char because int might match the return type of a gcc2 23506 builtin and then its argument prototype would still apply. */ 23507char dlopen (); 23508/* The GNU C library defines this for functions which it implements 23509 to always fail with ENOSYS. Some functions are actually named 23510 something starting with __ and the normal name is an alias. */ 23511#if defined (__stub_dlopen) || defined (__stub___dlopen) 23512choke me 23513#else 23514char (*f) () = dlopen; 23515#endif 23516#ifdef __cplusplus 23517} 23518#endif 23519 23520int 23521main () 23522{ 23523return f != dlopen; 23524 ; 23525 return 0; 23526} 23527_ACEOF 23528rm -f conftest.$ac_objext conftest$ac_exeext 23529if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 23530 (eval $ac_link) 2>conftest.er1 23531 ac_status=$? 23532 grep -v '^ *+' conftest.er1 >conftest.err 23533 rm -f conftest.er1 23534 cat conftest.err >&5 23535 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23536 (exit $ac_status); } && 23537 { ac_try='test -z "$ac_cxx_werror_flag" 23538 || test ! -s conftest.err' 23539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23540 (eval $ac_try) 2>&5 23541 ac_status=$? 23542 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23543 (exit $ac_status); }; } && 23544 { ac_try='test -s conftest$ac_exeext' 23545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23546 (eval $ac_try) 2>&5 23547 ac_status=$? 23548 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23549 (exit $ac_status); }; }; then 23550 ac_cv_func_dlopen=yes 23551else 23552 echo "$as_me: failed program was:" >&5 23553sed 's/^/| /' conftest.$ac_ext >&5 23554 23555ac_cv_func_dlopen=no 23556fi 23557rm -f conftest.err conftest.$ac_objext \ 23558 conftest$ac_exeext conftest.$ac_ext 23559fi 23560echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 23561echo "${ECHO_T}$ac_cv_func_dlopen" >&6 23562if test $ac_cv_func_dlopen = yes; then 23563 lt_cv_dlopen="dlopen" 23564else 23565 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 23566echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 23567if test "${ac_cv_lib_dl_dlopen+set}" = set; then 23568 echo $ECHO_N "(cached) $ECHO_C" >&6 23569else 23570 ac_check_lib_save_LIBS=$LIBS 23571LIBS="-ldl $LIBS" 23572cat >conftest.$ac_ext <<_ACEOF 23573/* confdefs.h. */ 23574_ACEOF 23575cat confdefs.h >>conftest.$ac_ext 23576cat >>conftest.$ac_ext <<_ACEOF 23577/* end confdefs.h. */ 23578 23579/* Override any gcc2 internal prototype to avoid an error. */ 23580#ifdef __cplusplus 23581extern "C" 23582#endif 23583/* We use char because int might match the return type of a gcc2 23584 builtin and then its argument prototype would still apply. */ 23585char dlopen (); 23586int 23587main () 23588{ 23589dlopen (); 23590 ; 23591 return 0; 23592} 23593_ACEOF 23594rm -f conftest.$ac_objext conftest$ac_exeext 23595if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 23596 (eval $ac_link) 2>conftest.er1 23597 ac_status=$? 23598 grep -v '^ *+' conftest.er1 >conftest.err 23599 rm -f conftest.er1 23600 cat conftest.err >&5 23601 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23602 (exit $ac_status); } && 23603 { ac_try='test -z "$ac_cxx_werror_flag" 23604 || test ! -s conftest.err' 23605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23606 (eval $ac_try) 2>&5 23607 ac_status=$? 23608 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23609 (exit $ac_status); }; } && 23610 { ac_try='test -s conftest$ac_exeext' 23611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23612 (eval $ac_try) 2>&5 23613 ac_status=$? 23614 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23615 (exit $ac_status); }; }; then 23616 ac_cv_lib_dl_dlopen=yes 23617else 23618 echo "$as_me: failed program was:" >&5 23619sed 's/^/| /' conftest.$ac_ext >&5 23620 23621ac_cv_lib_dl_dlopen=no 23622fi 23623rm -f conftest.err conftest.$ac_objext \ 23624 conftest$ac_exeext conftest.$ac_ext 23625LIBS=$ac_check_lib_save_LIBS 23626fi 23627echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 23628echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 23629if test $ac_cv_lib_dl_dlopen = yes; then 23630 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 23631else 23632 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 23633echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 23634if test "${ac_cv_lib_svld_dlopen+set}" = set; then 23635 echo $ECHO_N "(cached) $ECHO_C" >&6 23636else 23637 ac_check_lib_save_LIBS=$LIBS 23638LIBS="-lsvld $LIBS" 23639cat >conftest.$ac_ext <<_ACEOF 23640/* confdefs.h. */ 23641_ACEOF 23642cat confdefs.h >>conftest.$ac_ext 23643cat >>conftest.$ac_ext <<_ACEOF 23644/* end confdefs.h. */ 23645 23646/* Override any gcc2 internal prototype to avoid an error. */ 23647#ifdef __cplusplus 23648extern "C" 23649#endif 23650/* We use char because int might match the return type of a gcc2 23651 builtin and then its argument prototype would still apply. */ 23652char dlopen (); 23653int 23654main () 23655{ 23656dlopen (); 23657 ; 23658 return 0; 23659} 23660_ACEOF 23661rm -f conftest.$ac_objext conftest$ac_exeext 23662if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 23663 (eval $ac_link) 2>conftest.er1 23664 ac_status=$? 23665 grep -v '^ *+' conftest.er1 >conftest.err 23666 rm -f conftest.er1 23667 cat conftest.err >&5 23668 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23669 (exit $ac_status); } && 23670 { ac_try='test -z "$ac_cxx_werror_flag" 23671 || test ! -s conftest.err' 23672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23673 (eval $ac_try) 2>&5 23674 ac_status=$? 23675 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23676 (exit $ac_status); }; } && 23677 { ac_try='test -s conftest$ac_exeext' 23678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23679 (eval $ac_try) 2>&5 23680 ac_status=$? 23681 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23682 (exit $ac_status); }; }; then 23683 ac_cv_lib_svld_dlopen=yes 23684else 23685 echo "$as_me: failed program was:" >&5 23686sed 's/^/| /' conftest.$ac_ext >&5 23687 23688ac_cv_lib_svld_dlopen=no 23689fi 23690rm -f conftest.err conftest.$ac_objext \ 23691 conftest$ac_exeext conftest.$ac_ext 23692LIBS=$ac_check_lib_save_LIBS 23693fi 23694echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 23695echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 23696if test $ac_cv_lib_svld_dlopen = yes; then 23697 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 23698else 23699 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 23700echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 23701if test "${ac_cv_lib_dld_dld_link+set}" = set; then 23702 echo $ECHO_N "(cached) $ECHO_C" >&6 23703else 23704 ac_check_lib_save_LIBS=$LIBS 23705LIBS="-ldld $LIBS" 23706cat >conftest.$ac_ext <<_ACEOF 23707/* confdefs.h. */ 23708_ACEOF 23709cat confdefs.h >>conftest.$ac_ext 23710cat >>conftest.$ac_ext <<_ACEOF 23711/* end confdefs.h. */ 23712 23713/* Override any gcc2 internal prototype to avoid an error. */ 23714#ifdef __cplusplus 23715extern "C" 23716#endif 23717/* We use char because int might match the return type of a gcc2 23718 builtin and then its argument prototype would still apply. */ 23719char dld_link (); 23720int 23721main () 23722{ 23723dld_link (); 23724 ; 23725 return 0; 23726} 23727_ACEOF 23728rm -f conftest.$ac_objext conftest$ac_exeext 23729if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 23730 (eval $ac_link) 2>conftest.er1 23731 ac_status=$? 23732 grep -v '^ *+' conftest.er1 >conftest.err 23733 rm -f conftest.er1 23734 cat conftest.err >&5 23735 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23736 (exit $ac_status); } && 23737 { ac_try='test -z "$ac_cxx_werror_flag" 23738 || test ! -s conftest.err' 23739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23740 (eval $ac_try) 2>&5 23741 ac_status=$? 23742 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23743 (exit $ac_status); }; } && 23744 { ac_try='test -s conftest$ac_exeext' 23745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23746 (eval $ac_try) 2>&5 23747 ac_status=$? 23748 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23749 (exit $ac_status); }; }; then 23750 ac_cv_lib_dld_dld_link=yes 23751else 23752 echo "$as_me: failed program was:" >&5 23753sed 's/^/| /' conftest.$ac_ext >&5 23754 23755ac_cv_lib_dld_dld_link=no 23756fi 23757rm -f conftest.err conftest.$ac_objext \ 23758 conftest$ac_exeext conftest.$ac_ext 23759LIBS=$ac_check_lib_save_LIBS 23760fi 23761echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 23762echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 23763if test $ac_cv_lib_dld_dld_link = yes; then 23764 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 23765fi 23766 23767 23768fi 23769 23770 23771fi 23772 23773 23774fi 23775 23776 23777fi 23778 23779 23780fi 23781 23782 ;; 23783 esac 23784 23785 if test "x$lt_cv_dlopen" != xno; then 23786 enable_dlopen=yes 23787 else 23788 enable_dlopen=no 23789 fi 23790 23791 case $lt_cv_dlopen in 23792 dlopen) 23793 save_CPPFLAGS="$CPPFLAGS" 23794 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 23795 23796 save_LDFLAGS="$LDFLAGS" 23797 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 23798 23799 save_LIBS="$LIBS" 23800 LIBS="$lt_cv_dlopen_libs $LIBS" 23801 23802 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 23803echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 23804if test "${lt_cv_dlopen_self+set}" = set; then 23805 echo $ECHO_N "(cached) $ECHO_C" >&6 23806else 23807 if test "$cross_compiling" = yes; then : 23808 lt_cv_dlopen_self=cross 23809else 23810 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 23811 lt_status=$lt_dlunknown 23812 cat > conftest.$ac_ext <<EOF 23813#line 23813 "configure" 23814#include "confdefs.h" 23815 23816#if HAVE_DLFCN_H 23817#include <dlfcn.h> 23818#endif 23819 23820#include <stdio.h> 23821 23822#ifdef RTLD_GLOBAL 23823# define LT_DLGLOBAL RTLD_GLOBAL 23824#else 23825# ifdef DL_GLOBAL 23826# define LT_DLGLOBAL DL_GLOBAL 23827# else 23828# define LT_DLGLOBAL 0 23829# endif 23830#endif 23831 23832/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 23833 find out it does not work in some platform. */ 23834#ifndef LT_DLLAZY_OR_NOW 23835# ifdef RTLD_LAZY 23836# define LT_DLLAZY_OR_NOW RTLD_LAZY 23837# else 23838# ifdef DL_LAZY 23839# define LT_DLLAZY_OR_NOW DL_LAZY 23840# else 23841# ifdef RTLD_NOW 23842# define LT_DLLAZY_OR_NOW RTLD_NOW 23843# else 23844# ifdef DL_NOW 23845# define LT_DLLAZY_OR_NOW DL_NOW 23846# else 23847# define LT_DLLAZY_OR_NOW 0 23848# endif 23849# endif 23850# endif 23851# endif 23852#endif 23853 23854#ifdef __cplusplus 23855extern "C" void exit (int); 23856#endif 23857 23858void fnord() { int i=42;} 23859int main () 23860{ 23861 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 23862 int status = $lt_dlunknown; 23863 23864 if (self) 23865 { 23866 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 23867 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 23868 /* dlclose (self); */ 23869 } 23870 23871 exit (status); 23872} 23873EOF 23874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 23875 (eval $ac_link) 2>&5 23876 ac_status=$? 23877 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23878 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 23879 (./conftest; exit; ) >&5 2>/dev/null 23880 lt_status=$? 23881 case x$lt_status in 23882 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 23883 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 23884 x$lt_unknown|x*) lt_cv_dlopen_self=no ;; 23885 esac 23886 else : 23887 # compilation failed 23888 lt_cv_dlopen_self=no 23889 fi 23890fi 23891rm -fr conftest* 23892 23893 23894fi 23895echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 23896echo "${ECHO_T}$lt_cv_dlopen_self" >&6 23897 23898 if test "x$lt_cv_dlopen_self" = xyes; then 23899 LDFLAGS="$LDFLAGS $link_static_flag" 23900 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 23901echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 23902if test "${lt_cv_dlopen_self_static+set}" = set; then 23903 echo $ECHO_N "(cached) $ECHO_C" >&6 23904else 23905 if test "$cross_compiling" = yes; then : 23906 lt_cv_dlopen_self_static=cross 23907else 23908 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 23909 lt_status=$lt_dlunknown 23910 cat > conftest.$ac_ext <<EOF 23911#line 23911 "configure" 23912#include "confdefs.h" 23913 23914#if HAVE_DLFCN_H 23915#include <dlfcn.h> 23916#endif 23917 23918#include <stdio.h> 23919 23920#ifdef RTLD_GLOBAL 23921# define LT_DLGLOBAL RTLD_GLOBAL 23922#else 23923# ifdef DL_GLOBAL 23924# define LT_DLGLOBAL DL_GLOBAL 23925# else 23926# define LT_DLGLOBAL 0 23927# endif 23928#endif 23929 23930/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 23931 find out it does not work in some platform. */ 23932#ifndef LT_DLLAZY_OR_NOW 23933# ifdef RTLD_LAZY 23934# define LT_DLLAZY_OR_NOW RTLD_LAZY 23935# else 23936# ifdef DL_LAZY 23937# define LT_DLLAZY_OR_NOW DL_LAZY 23938# else 23939# ifdef RTLD_NOW 23940# define LT_DLLAZY_OR_NOW RTLD_NOW 23941# else 23942# ifdef DL_NOW 23943# define LT_DLLAZY_OR_NOW DL_NOW 23944# else 23945# define LT_DLLAZY_OR_NOW 0 23946# endif 23947# endif 23948# endif 23949# endif 23950#endif 23951 23952#ifdef __cplusplus 23953extern "C" void exit (int); 23954#endif 23955 23956void fnord() { int i=42;} 23957int main () 23958{ 23959 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 23960 int status = $lt_dlunknown; 23961 23962 if (self) 23963 { 23964 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 23965 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 23966 /* dlclose (self); */ 23967 } 23968 23969 exit (status); 23970} 23971EOF 23972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 23973 (eval $ac_link) 2>&5 23974 ac_status=$? 23975 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23976 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 23977 (./conftest; exit; ) >&5 2>/dev/null 23978 lt_status=$? 23979 case x$lt_status in 23980 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 23981 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 23982 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; 23983 esac 23984 else : 23985 # compilation failed 23986 lt_cv_dlopen_self_static=no 23987 fi 23988fi 23989rm -fr conftest* 23990 23991 23992fi 23993echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 23994echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 23995 fi 23996 23997 CPPFLAGS="$save_CPPFLAGS" 23998 LDFLAGS="$save_LDFLAGS" 23999 LIBS="$save_LIBS" 24000 ;; 24001 esac 24002 24003 case $lt_cv_dlopen_self in 24004 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 24005 *) enable_dlopen_self=unknown ;; 24006 esac 24007 24008 case $lt_cv_dlopen_self_static in 24009 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 24010 *) enable_dlopen_self_static=unknown ;; 24011 esac 24012fi 24013 24014 24015# The else clause should only fire when bootstrapping the 24016# libtool distribution, otherwise you forgot to ship ltmain.sh 24017# with your package, and you will get complaints that there are 24018# no rules to generate ltmain.sh. 24019if test -f "$ltmain"; then 24020 # See if we are running on zsh, and set the options which allow our commands through 24021 # without removal of \ escapes. 24022 if test -n "${ZSH_VERSION+set}" ; then 24023 setopt NO_GLOB_SUBST 24024 fi 24025 # Now quote all the things that may contain metacharacters while being 24026 # careful not to overquote the AC_SUBSTed values. We take copies of the 24027 # variables and quote the copies for generation of the libtool script. 24028 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ 24029 SED SHELL STRIP \ 24030 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 24031 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 24032 deplibs_check_method reload_flag reload_cmds need_locks \ 24033 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 24034 lt_cv_sys_global_symbol_to_c_name_address \ 24035 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 24036 old_postinstall_cmds old_postuninstall_cmds \ 24037 compiler_CXX \ 24038 CC_CXX \ 24039 LD_CXX \ 24040 lt_prog_compiler_wl_CXX \ 24041 lt_prog_compiler_pic_CXX \ 24042 lt_prog_compiler_static_CXX \ 24043 lt_prog_compiler_no_builtin_flag_CXX \ 24044 export_dynamic_flag_spec_CXX \ 24045 thread_safe_flag_spec_CXX \ 24046 whole_archive_flag_spec_CXX \ 24047 enable_shared_with_static_runtimes_CXX \ 24048 old_archive_cmds_CXX \ 24049 old_archive_from_new_cmds_CXX \ 24050 predep_objects_CXX \ 24051 postdep_objects_CXX \ 24052 predeps_CXX \ 24053 postdeps_CXX \ 24054 compiler_lib_search_path_CXX \ 24055 archive_cmds_CXX \ 24056 archive_expsym_cmds_CXX \ 24057 postinstall_cmds_CXX \ 24058 postuninstall_cmds_CXX \ 24059 old_archive_from_expsyms_cmds_CXX \ 24060 allow_undefined_flag_CXX \ 24061 no_undefined_flag_CXX \ 24062 export_symbols_cmds_CXX \ 24063 hardcode_libdir_flag_spec_CXX \ 24064 hardcode_libdir_flag_spec_ld_CXX \ 24065 hardcode_libdir_separator_CXX \ 24066 hardcode_automatic_CXX \ 24067 module_cmds_CXX \ 24068 module_expsym_cmds_CXX \ 24069 lt_cv_prog_compiler_c_o_CXX \ 24070 exclude_expsyms_CXX \ 24071 include_expsyms_CXX; do 24072 24073 case $var in 24074 old_archive_cmds_CXX | \ 24075 old_archive_from_new_cmds_CXX | \ 24076 archive_cmds_CXX | \ 24077 archive_expsym_cmds_CXX | \ 24078 module_cmds_CXX | \ 24079 module_expsym_cmds_CXX | \ 24080 old_archive_from_expsyms_cmds_CXX | \ 24081 export_symbols_cmds_CXX | \ 24082 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 24083 postinstall_cmds | postuninstall_cmds | \ 24084 old_postinstall_cmds | old_postuninstall_cmds | \ 24085 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 24086 # Double-quote double-evaled strings. 24087 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 24088 ;; 24089 *) 24090 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 24091 ;; 24092 esac 24093 done 24094 24095 case $lt_echo in 24096 *'\$0 --fallback-echo"') 24097 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 24098 ;; 24099 esac 24100 24101cfgfile="$ofile" 24102 24103 cat <<__EOF__ >> "$cfgfile" 24104# ### BEGIN LIBTOOL TAG CONFIG: $tagname 24105 24106# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 24107 24108# Shell to use when invoking shell scripts. 24109SHELL=$lt_SHELL 24110 24111# Whether or not to build shared libraries. 24112build_libtool_libs=$enable_shared 24113 24114# Whether or not to build static libraries. 24115build_old_libs=$enable_static 24116 24117# Whether or not to add -lc for building shared libraries. 24118build_libtool_need_lc=$archive_cmds_need_lc_CXX 24119 24120# Whether or not to disallow shared libs when runtime libs are static 24121allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 24122 24123# Whether or not to optimize for fast installation. 24124fast_install=$enable_fast_install 24125 24126# The host system. 24127host_alias=$host_alias 24128host=$host 24129host_os=$host_os 24130 24131# The build system. 24132build_alias=$build_alias 24133build=$build 24134build_os=$build_os 24135 24136# An echo program that does not interpret backslashes. 24137echo=$lt_echo 24138 24139# The archiver. 24140AR=$lt_AR 24141AR_FLAGS=$lt_AR_FLAGS 24142 24143# A C compiler. 24144LTCC=$lt_LTCC 24145 24146# A language-specific compiler. 24147CC=$lt_compiler_CXX 24148 24149# Is the compiler the GNU C compiler? 24150with_gcc=$GCC_CXX 24151 24152# An ERE matcher. 24153EGREP=$lt_EGREP 24154 24155# The linker used to build libraries. 24156LD=$lt_LD_CXX 24157 24158# Whether we need hard or soft links. 24159LN_S=$lt_LN_S 24160 24161# A BSD-compatible nm program. 24162NM=$lt_NM 24163 24164# A symbol stripping program 24165STRIP=$lt_STRIP 24166 24167# Used to examine libraries when file_magic_cmd begins "file" 24168MAGIC_CMD=$MAGIC_CMD 24169 24170# Used on cygwin: DLL creation program. 24171DLLTOOL="$DLLTOOL" 24172 24173# Used on cygwin: object dumper. 24174OBJDUMP="$OBJDUMP" 24175 24176# Used on cygwin: assembler. 24177AS="$AS" 24178 24179# The name of the directory that contains temporary libtool files. 24180objdir=$objdir 24181 24182# How to create reloadable object files. 24183reload_flag=$lt_reload_flag 24184reload_cmds=$lt_reload_cmds 24185 24186# How to pass a linker flag through the compiler. 24187wl=$lt_lt_prog_compiler_wl_CXX 24188 24189# Object file suffix (normally "o"). 24190objext="$ac_objext" 24191 24192# Old archive suffix (normally "a"). 24193libext="$libext" 24194 24195# Shared library suffix (normally ".so"). 24196shrext_cmds='$shrext_cmds' 24197 24198# Executable file suffix (normally ""). 24199exeext="$exeext" 24200 24201# Additional compiler flags for building library objects. 24202pic_flag=$lt_lt_prog_compiler_pic_CXX 24203pic_mode=$pic_mode 24204 24205# What is the maximum length of a command? 24206max_cmd_len=$lt_cv_sys_max_cmd_len 24207 24208# Does compiler simultaneously support -c and -o options? 24209compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 24210 24211# Must we lock files when doing compilation? 24212need_locks=$lt_need_locks 24213 24214# Do we need the lib prefix for modules? 24215need_lib_prefix=$need_lib_prefix 24216 24217# Do we need a version for libraries? 24218need_version=$need_version 24219 24220# Whether dlopen is supported. 24221dlopen_support=$enable_dlopen 24222 24223# Whether dlopen of programs is supported. 24224dlopen_self=$enable_dlopen_self 24225 24226# Whether dlopen of statically linked programs is supported. 24227dlopen_self_static=$enable_dlopen_self_static 24228 24229# Compiler flag to prevent dynamic linking. 24230link_static_flag=$lt_lt_prog_compiler_static_CXX 24231 24232# Compiler flag to turn off builtin functions. 24233no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 24234 24235# Compiler flag to allow reflexive dlopens. 24236export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 24237 24238# Compiler flag to generate shared objects directly from archives. 24239whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 24240 24241# Compiler flag to generate thread-safe objects. 24242thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX 24243 24244# Library versioning type. 24245version_type=$version_type 24246 24247# Format of library name prefix. 24248libname_spec=$lt_libname_spec 24249 24250# List of archive names. First name is the real one, the rest are links. 24251# The last name is the one that the linker finds with -lNAME. 24252library_names_spec=$lt_library_names_spec 24253 24254# The coded name of the library, if different from the real name. 24255soname_spec=$lt_soname_spec 24256 24257# Commands used to build and install an old-style archive. 24258RANLIB=$lt_RANLIB 24259old_archive_cmds=$lt_old_archive_cmds_CXX 24260old_postinstall_cmds=$lt_old_postinstall_cmds 24261old_postuninstall_cmds=$lt_old_postuninstall_cmds 24262 24263# Create an old-style archive from a shared archive. 24264old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 24265 24266# Create a temporary old-style archive to link instead of a shared archive. 24267old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 24268 24269# Commands used to build and install a shared archive. 24270archive_cmds=$lt_archive_cmds_CXX 24271archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 24272postinstall_cmds=$lt_postinstall_cmds 24273postuninstall_cmds=$lt_postuninstall_cmds 24274 24275# Commands used to build a loadable module (assumed same as above if empty) 24276module_cmds=$lt_module_cmds_CXX 24277module_expsym_cmds=$lt_module_expsym_cmds_CXX 24278 24279# Commands to strip libraries. 24280old_striplib=$lt_old_striplib 24281striplib=$lt_striplib 24282 24283# Dependencies to place before the objects being linked to create a 24284# shared library. 24285predep_objects=$lt_predep_objects_CXX 24286 24287# Dependencies to place after the objects being linked to create a 24288# shared library. 24289postdep_objects=$lt_postdep_objects_CXX 24290 24291# Dependencies to place before the objects being linked to create a 24292# shared library. 24293predeps=$lt_predeps_CXX 24294 24295# Dependencies to place after the objects being linked to create a 24296# shared library. 24297postdeps=$lt_postdeps_CXX 24298 24299# The library search path used internally by the compiler when linking 24300# a shared library. 24301compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 24302 24303# Method to check whether dependent libraries are shared objects. 24304deplibs_check_method=$lt_deplibs_check_method 24305 24306# Command to use when deplibs_check_method == file_magic. 24307file_magic_cmd=$lt_file_magic_cmd 24308 24309# Flag that allows shared libraries with undefined symbols to be built. 24310allow_undefined_flag=$lt_allow_undefined_flag_CXX 24311 24312# Flag that forces no undefined symbols. 24313no_undefined_flag=$lt_no_undefined_flag_CXX 24314 24315# Commands used to finish a libtool library installation in a directory. 24316finish_cmds=$lt_finish_cmds 24317 24318# Same as above, but a single script fragment to be evaled but not shown. 24319finish_eval=$lt_finish_eval 24320 24321# Take the output of nm and produce a listing of raw symbols and C names. 24322global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 24323 24324# Transform the output of nm in a proper C declaration 24325global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 24326 24327# Transform the output of nm in a C name address pair 24328global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 24329 24330# This is the shared library runtime path variable. 24331runpath_var=$runpath_var 24332 24333# This is the shared library path variable. 24334shlibpath_var=$shlibpath_var 24335 24336# Is shlibpath searched before the hard-coded library search path? 24337shlibpath_overrides_runpath=$shlibpath_overrides_runpath 24338 24339# How to hardcode a shared library path into an executable. 24340hardcode_action=$hardcode_action_CXX 24341 24342# Whether we should hardcode library paths into libraries. 24343hardcode_into_libs=$hardcode_into_libs 24344 24345# Flag to hardcode \$libdir into a binary during linking. 24346# This must work even if \$libdir does not exist. 24347hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 24348 24349# If ld is used when linking, flag to hardcode \$libdir into 24350# a binary during linking. This must work even if \$libdir does 24351# not exist. 24352hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 24353 24354# Whether we need a single -rpath flag with a separated argument. 24355hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 24356 24357# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 24358# resulting binary. 24359hardcode_direct=$hardcode_direct_CXX 24360 24361# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 24362# resulting binary. 24363hardcode_minus_L=$hardcode_minus_L_CXX 24364 24365# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 24366# the resulting binary. 24367hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 24368 24369# Set to yes if building a shared library automatically hardcodes DIR into the library 24370# and all subsequent libraries and executables linked against it. 24371hardcode_automatic=$hardcode_automatic_CXX 24372 24373# Variables whose values should be saved in libtool wrapper scripts and 24374# restored at relink time. 24375variables_saved_for_relink="$variables_saved_for_relink" 24376 24377# Whether libtool must link a program against all its dependency libraries. 24378link_all_deplibs=$link_all_deplibs_CXX 24379 24380# Compile-time system search path for libraries 24381sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 24382 24383# Run-time system search path for libraries 24384sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 24385 24386# Fix the shell variable \$srcfile for the compiler. 24387fix_srcfile_path="$fix_srcfile_path_CXX" 24388 24389# Set to yes if exported symbols are required. 24390always_export_symbols=$always_export_symbols_CXX 24391 24392# The commands to list exported symbols. 24393export_symbols_cmds=$lt_export_symbols_cmds_CXX 24394 24395# The commands to extract the exported symbol list from a shared archive. 24396extract_expsyms_cmds=$lt_extract_expsyms_cmds 24397 24398# Symbols that should not be listed in the preloaded symbols. 24399exclude_expsyms=$lt_exclude_expsyms_CXX 24400 24401# Symbols that must always be exported. 24402include_expsyms=$lt_include_expsyms_CXX 24403 24404# ### END LIBTOOL TAG CONFIG: $tagname 24405 24406__EOF__ 24407 24408 24409else 24410 # If there is no Makefile yet, we rely on a make rule to execute 24411 # `config.status --recheck' to rerun these tests and create the 24412 # libtool script then. 24413 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 24414 if test -f "$ltmain_in"; then 24415 test -f Makefile && make "$ltmain" 24416 fi 24417fi 24418 24419 24420ac_ext=c 24421ac_cpp='$CPP $CPPFLAGS' 24422ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 24423ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 24424ac_compiler_gnu=$ac_cv_c_compiler_gnu 24425 24426CC=$lt_save_CC 24427LDCXX=$LD 24428LD=$lt_save_LD 24429GCC=$lt_save_GCC 24430with_gnu_ldcxx=$with_gnu_ld 24431with_gnu_ld=$lt_save_with_gnu_ld 24432lt_cv_path_LDCXX=$lt_cv_path_LD 24433lt_cv_path_LD=$lt_save_path_LD 24434lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 24435lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 24436 24437 else 24438 tagname="" 24439 fi 24440 ;; 24441 24442 F77) 24443 if test -n "$F77" && test "X$F77" != "Xno"; then 24444 24445ac_ext=f 24446ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 24447ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 24448ac_compiler_gnu=$ac_cv_f77_compiler_gnu 24449 24450 24451archive_cmds_need_lc_F77=no 24452allow_undefined_flag_F77= 24453always_export_symbols_F77=no 24454archive_expsym_cmds_F77= 24455export_dynamic_flag_spec_F77= 24456hardcode_direct_F77=no 24457hardcode_libdir_flag_spec_F77= 24458hardcode_libdir_flag_spec_ld_F77= 24459hardcode_libdir_separator_F77= 24460hardcode_minus_L_F77=no 24461hardcode_automatic_F77=no 24462module_cmds_F77= 24463module_expsym_cmds_F77= 24464link_all_deplibs_F77=unknown 24465old_archive_cmds_F77=$old_archive_cmds 24466no_undefined_flag_F77= 24467whole_archive_flag_spec_F77= 24468enable_shared_with_static_runtimes_F77=no 24469 24470# Source file extension for f77 test sources. 24471ac_ext=f 24472 24473# Object file extension for compiled f77 test sources. 24474objext=o 24475objext_F77=$objext 24476 24477# Code to be used in simple compile tests 24478lt_simple_compile_test_code=" subroutine t\n return\n end\n" 24479 24480# Code to be used in simple link tests 24481lt_simple_link_test_code=" program t\n end\n" 24482 24483# ltmain only uses $CC for tagged configurations so make sure $CC is set. 24484 24485# If no C compiler was specified, use CC. 24486LTCC=${LTCC-"$CC"} 24487 24488# Allow CC to be a program name with arguments. 24489compiler=$CC 24490 24491 24492# save warnings/boilerplate of simple test code 24493ac_outfile=conftest.$ac_objext 24494printf "$lt_simple_compile_test_code" >conftest.$ac_ext 24495eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 24496_lt_compiler_boilerplate=`cat conftest.err` 24497$rm conftest* 24498 24499ac_outfile=conftest.$ac_objext 24500printf "$lt_simple_link_test_code" >conftest.$ac_ext 24501eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 24502_lt_linker_boilerplate=`cat conftest.err` 24503$rm conftest* 24504 24505 24506# Allow CC to be a program name with arguments. 24507lt_save_CC="$CC" 24508CC=${F77-"f77"} 24509compiler=$CC 24510compiler_F77=$CC 24511for cc_temp in $compiler""; do 24512 case $cc_temp in 24513 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 24514 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 24515 \-*) ;; 24516 *) break;; 24517 esac 24518done 24519cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 24520 24521 24522echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 24523echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 24524echo "$as_me:$LINENO: result: $can_build_shared" >&5 24525echo "${ECHO_T}$can_build_shared" >&6 24526 24527echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 24528echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 24529test "$can_build_shared" = "no" && enable_shared=no 24530 24531# On AIX, shared libraries and static libraries use the same namespace, and 24532# are all built from PIC. 24533case $host_os in 24534aix3*) 24535 test "$enable_shared" = yes && enable_static=no 24536 if test -n "$RANLIB"; then 24537 archive_cmds="$archive_cmds~\$RANLIB \$lib" 24538 postinstall_cmds='$RANLIB $lib' 24539 fi 24540 ;; 24541aix4* | aix5*) 24542 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 24543 test "$enable_shared" = yes && enable_static=no 24544 fi 24545 ;; 24546esac 24547echo "$as_me:$LINENO: result: $enable_shared" >&5 24548echo "${ECHO_T}$enable_shared" >&6 24549 24550echo "$as_me:$LINENO: checking whether to build static libraries" >&5 24551echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 24552# Make sure either enable_shared or enable_static is yes. 24553test "$enable_shared" = yes || enable_static=yes 24554echo "$as_me:$LINENO: result: $enable_static" >&5 24555echo "${ECHO_T}$enable_static" >&6 24556 24557test "$ld_shlibs_F77" = no && can_build_shared=no 24558 24559GCC_F77="$G77" 24560LD_F77="$LD" 24561 24562lt_prog_compiler_wl_F77= 24563lt_prog_compiler_pic_F77= 24564lt_prog_compiler_static_F77= 24565 24566echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 24567echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 24568 24569 if test "$GCC" = yes; then 24570 lt_prog_compiler_wl_F77='-Wl,' 24571 lt_prog_compiler_static_F77='-static' 24572 24573 case $host_os in 24574 aix*) 24575 # All AIX code is PIC. 24576 if test "$host_cpu" = ia64; then 24577 # AIX 5 now supports IA64 processor 24578 lt_prog_compiler_static_F77='-Bstatic' 24579 fi 24580 ;; 24581 24582 amigaos*) 24583 # FIXME: we need at least 68020 code to build shared libraries, but 24584 # adding the `-m68020' flag to GCC prevents building anything better, 24585 # like `-m68040'. 24586 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' 24587 ;; 24588 24589 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 24590 # PIC is the default for these OSes. 24591 ;; 24592 24593 mingw* | pw32* | os2*) 24594 # This hack is so that the source file can tell whether it is being 24595 # built for inclusion in a dll (and should export symbols for example). 24596 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 24597 ;; 24598 24599 darwin* | rhapsody*) 24600 # PIC is the default on this platform 24601 # Common symbols not allowed in MH_DYLIB files 24602 lt_prog_compiler_pic_F77='-fno-common' 24603 ;; 24604 24605 msdosdjgpp*) 24606 # Just because we use GCC doesn't mean we suddenly get shared libraries 24607 # on systems that don't support them. 24608 lt_prog_compiler_can_build_shared_F77=no 24609 enable_shared=no 24610 ;; 24611 24612 sysv4*MP*) 24613 if test -d /usr/nec; then 24614 lt_prog_compiler_pic_F77=-Kconform_pic 24615 fi 24616 ;; 24617 24618 hpux*) 24619 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 24620 # not for PA HP-UX. 24621 case $host_cpu in 24622 hppa*64*|ia64*) 24623 # +Z the default 24624 ;; 24625 *) 24626 lt_prog_compiler_pic_F77='-fPIC' 24627 ;; 24628 esac 24629 ;; 24630 24631 *) 24632 lt_prog_compiler_pic_F77='-fPIC' 24633 ;; 24634 esac 24635 else 24636 # PORTME Check for flag to pass linker flags through the system compiler. 24637 case $host_os in 24638 aix*) 24639 lt_prog_compiler_wl_F77='-Wl,' 24640 if test "$host_cpu" = ia64; then 24641 # AIX 5 now supports IA64 processor 24642 lt_prog_compiler_static_F77='-Bstatic' 24643 else 24644 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' 24645 fi 24646 ;; 24647 darwin*) 24648 # PIC is the default on this platform 24649 # Common symbols not allowed in MH_DYLIB files 24650 case $cc_basename in 24651 xlc*) 24652 lt_prog_compiler_pic_F77='-qnocommon' 24653 lt_prog_compiler_wl_F77='-Wl,' 24654 ;; 24655 esac 24656 ;; 24657 24658 mingw* | pw32* | os2*) 24659 # This hack is so that the source file can tell whether it is being 24660 # built for inclusion in a dll (and should export symbols for example). 24661 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 24662 ;; 24663 24664 hpux9* | hpux10* | hpux11*) 24665 lt_prog_compiler_wl_F77='-Wl,' 24666 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 24667 # not for PA HP-UX. 24668 case $host_cpu in 24669 hppa*64*|ia64*) 24670 # +Z the default 24671 ;; 24672 *) 24673 lt_prog_compiler_pic_F77='+Z' 24674 ;; 24675 esac 24676 # Is there a better lt_prog_compiler_static that works with the bundled CC? 24677 lt_prog_compiler_static_F77='${wl}-a ${wl}archive' 24678 ;; 24679 24680 irix5* | irix6* | nonstopux*) 24681 lt_prog_compiler_wl_F77='-Wl,' 24682 # PIC (with -KPIC) is the default. 24683 lt_prog_compiler_static_F77='-non_shared' 24684 ;; 24685 24686 newsos6) 24687 lt_prog_compiler_pic_F77='-KPIC' 24688 lt_prog_compiler_static_F77='-Bstatic' 24689 ;; 24690 24691 linux*) 24692 case $cc_basename in 24693 icc* | ecc*) 24694 lt_prog_compiler_wl_F77='-Wl,' 24695 lt_prog_compiler_pic_F77='-KPIC' 24696 lt_prog_compiler_static_F77='-static' 24697 ;; 24698 pgcc* | pgf77* | pgf90* | pgf95*) 24699 # Portland Group compilers (*not* the Pentium gcc compiler, 24700 # which looks to be a dead project) 24701 lt_prog_compiler_wl_F77='-Wl,' 24702 lt_prog_compiler_pic_F77='-fpic' 24703 lt_prog_compiler_static_F77='-Bstatic' 24704 ;; 24705 ccc*) 24706 lt_prog_compiler_wl_F77='-Wl,' 24707 # All Alpha code is PIC. 24708 lt_prog_compiler_static_F77='-non_shared' 24709 ;; 24710 esac 24711 ;; 24712 24713 osf3* | osf4* | osf5*) 24714 lt_prog_compiler_wl_F77='-Wl,' 24715 # All OSF/1 code is PIC. 24716 lt_prog_compiler_static_F77='-non_shared' 24717 ;; 24718 24719 sco3.2v5*) 24720 lt_prog_compiler_pic_F77='-Kpic' 24721 lt_prog_compiler_static_F77='-dn' 24722 ;; 24723 24724 solaris*) 24725 lt_prog_compiler_pic_F77='-KPIC' 24726 lt_prog_compiler_static_F77='-Bstatic' 24727 case $cc_basename in 24728 f77* | f90* | f95*) 24729 lt_prog_compiler_wl_F77='-Qoption ld ';; 24730 *) 24731 lt_prog_compiler_wl_F77='-Wl,';; 24732 esac 24733 ;; 24734 24735 sunos4*) 24736 lt_prog_compiler_wl_F77='-Qoption ld ' 24737 lt_prog_compiler_pic_F77='-PIC' 24738 lt_prog_compiler_static_F77='-Bstatic' 24739 ;; 24740 24741 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 24742 lt_prog_compiler_wl_F77='-Wl,' 24743 lt_prog_compiler_pic_F77='-KPIC' 24744 lt_prog_compiler_static_F77='-Bstatic' 24745 ;; 24746 24747 sysv4*MP*) 24748 if test -d /usr/nec ;then 24749 lt_prog_compiler_pic_F77='-Kconform_pic' 24750 lt_prog_compiler_static_F77='-Bstatic' 24751 fi 24752 ;; 24753 24754 unicos*) 24755 lt_prog_compiler_wl_F77='-Wl,' 24756 lt_prog_compiler_can_build_shared_F77=no 24757 ;; 24758 24759 uts4*) 24760 lt_prog_compiler_pic_F77='-pic' 24761 lt_prog_compiler_static_F77='-Bstatic' 24762 ;; 24763 24764 *) 24765 lt_prog_compiler_can_build_shared_F77=no 24766 ;; 24767 esac 24768 fi 24769 24770echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 24771echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6 24772 24773# 24774# Check to make sure the PIC flag actually works. 24775# 24776if test -n "$lt_prog_compiler_pic_F77"; then 24777 24778echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 24779echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6 24780if test "${lt_prog_compiler_pic_works_F77+set}" = set; then 24781 echo $ECHO_N "(cached) $ECHO_C" >&6 24782else 24783 lt_prog_compiler_pic_works_F77=no 24784 ac_outfile=conftest.$ac_objext 24785 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 24786 lt_compiler_flag="$lt_prog_compiler_pic_F77" 24787 # Insert the option either (1) after the last *FLAGS variable, or 24788 # (2) before a word containing "conftest.", or (3) at the end. 24789 # Note that $ac_compile itself does not contain backslashes and begins 24790 # with a dollar sign (not a hyphen), so the echo should work correctly. 24791 # The option is referenced via a variable to avoid confusing sed. 24792 lt_compile=`echo "$ac_compile" | $SED \ 24793 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 24794 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 24795 -e 's:$: $lt_compiler_flag:'` 24796 (eval echo "\"\$as_me:24796: $lt_compile\"" >&5) 24797 (eval "$lt_compile" 2>conftest.err) 24798 ac_status=$? 24799 cat conftest.err >&5 24800 echo "$as_me:24800: \$? = $ac_status" >&5 24801 if (exit $ac_status) && test -s "$ac_outfile"; then 24802 # The compiler can only warn and ignore the option if not recognized 24803 # So say no if there are warnings other than the usual output. 24804 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp 24805 $SED '/^$/d' conftest.err >conftest.er2 24806 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then 24807 lt_prog_compiler_pic_works_F77=yes 24808 fi 24809 fi 24810 $rm conftest* 24811 24812fi 24813echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 24814echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6 24815 24816if test x"$lt_prog_compiler_pic_works_F77" = xyes; then 24817 case $lt_prog_compiler_pic_F77 in 24818 "" | " "*) ;; 24819 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; 24820 esac 24821else 24822 lt_prog_compiler_pic_F77= 24823 lt_prog_compiler_can_build_shared_F77=no 24824fi 24825 24826fi 24827case $host_os in 24828 # For platforms which do not support PIC, -DPIC is meaningless: 24829 *djgpp*) 24830 lt_prog_compiler_pic_F77= 24831 ;; 24832 *) 24833 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" 24834 ;; 24835esac 24836 24837echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 24838echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 24839if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then 24840 echo $ECHO_N "(cached) $ECHO_C" >&6 24841else 24842 lt_cv_prog_compiler_c_o_F77=no 24843 $rm -r conftest 2>/dev/null 24844 mkdir conftest 24845 cd conftest 24846 mkdir out 24847 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 24848 24849 lt_compiler_flag="-o out/conftest2.$ac_objext" 24850 # Insert the option either (1) after the last *FLAGS variable, or 24851 # (2) before a word containing "conftest.", or (3) at the end. 24852 # Note that $ac_compile itself does not contain backslashes and begins 24853 # with a dollar sign (not a hyphen), so the echo should work correctly. 24854 lt_compile=`echo "$ac_compile" | $SED \ 24855 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 24856 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 24857 -e 's:$: $lt_compiler_flag:'` 24858 (eval echo "\"\$as_me:24858: $lt_compile\"" >&5) 24859 (eval "$lt_compile" 2>out/conftest.err) 24860 ac_status=$? 24861 cat out/conftest.err >&5 24862 echo "$as_me:24862: \$? = $ac_status" >&5 24863 if (exit $ac_status) && test -s out/conftest2.$ac_objext 24864 then 24865 # The compiler can only warn and ignore the option if not recognized 24866 # So say no if there are warnings 24867 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp 24868 $SED '/^$/d' out/conftest.err >out/conftest.er2 24869 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then 24870 lt_cv_prog_compiler_c_o_F77=yes 24871 fi 24872 fi 24873 chmod u+w . 2>&5 24874 $rm conftest* 24875 # SGI C++ compiler will create directory out/ii_files/ for 24876 # template instantiation 24877 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 24878 $rm out/* && rmdir out 24879 cd .. 24880 rmdir conftest 24881 $rm conftest* 24882 24883fi 24884echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 24885echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6 24886 24887 24888hard_links="nottested" 24889if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then 24890 # do not overwrite the value of need_locks provided by the user 24891 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 24892echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 24893 hard_links=yes 24894 $rm conftest* 24895 ln conftest.a conftest.b 2>/dev/null && hard_links=no 24896 touch conftest.a 24897 ln conftest.a conftest.b 2>&5 || hard_links=no 24898 ln conftest.a conftest.b 2>/dev/null && hard_links=no 24899 echo "$as_me:$LINENO: result: $hard_links" >&5 24900echo "${ECHO_T}$hard_links" >&6 24901 if test "$hard_links" = no; then 24902 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 24903echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 24904 need_locks=warn 24905 fi 24906else 24907 need_locks=no 24908fi 24909 24910echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 24911echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 24912 24913 runpath_var= 24914 allow_undefined_flag_F77= 24915 enable_shared_with_static_runtimes_F77=no 24916 archive_cmds_F77= 24917 archive_expsym_cmds_F77= 24918 old_archive_From_new_cmds_F77= 24919 old_archive_from_expsyms_cmds_F77= 24920 export_dynamic_flag_spec_F77= 24921 whole_archive_flag_spec_F77= 24922 thread_safe_flag_spec_F77= 24923 hardcode_libdir_flag_spec_F77= 24924 hardcode_libdir_flag_spec_ld_F77= 24925 hardcode_libdir_separator_F77= 24926 hardcode_direct_F77=no 24927 hardcode_minus_L_F77=no 24928 hardcode_shlibpath_var_F77=unsupported 24929 link_all_deplibs_F77=unknown 24930 hardcode_automatic_F77=no 24931 module_cmds_F77= 24932 module_expsym_cmds_F77= 24933 always_export_symbols_F77=no 24934 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 24935 # include_expsyms should be a list of space-separated symbols to be *always* 24936 # included in the symbol list 24937 include_expsyms_F77= 24938 # exclude_expsyms can be an extended regexp of symbols to exclude 24939 # it will be wrapped by ` (' and `)$', so one must not match beginning or 24940 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 24941 # as well as any symbol that contains `d'. 24942 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" 24943 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 24944 # platforms (ab)use it in PIC code, but their linkers get confused if 24945 # the symbol is explicitly referenced. Since portable code cannot 24946 # rely on this symbol name, it's probably fine to never include it in 24947 # preloaded symbol tables. 24948 extract_expsyms_cmds= 24949 # Just being paranoid about ensuring that cc_basename is set. 24950 for cc_temp in $compiler""; do 24951 case $cc_temp in 24952 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 24953 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 24954 \-*) ;; 24955 *) break;; 24956 esac 24957done 24958cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 24959 24960 case $host_os in 24961 cygwin* | mingw* | pw32*) 24962 # FIXME: the MSVC++ port hasn't been tested in a loooong time 24963 # When not using gcc, we currently assume that we are using 24964 # Microsoft Visual C++. 24965 if test "$GCC" != yes; then 24966 with_gnu_ld=no 24967 fi 24968 ;; 24969 openbsd*) 24970 with_gnu_ld=no 24971 ;; 24972 esac 24973 24974 ld_shlibs_F77=yes 24975 if test "$with_gnu_ld" = yes; then 24976 # If archive_cmds runs LD, not CC, wlarc should be empty 24977 wlarc='${wl}' 24978 24979 # Set some defaults for GNU ld with shared library support. These 24980 # are reset later if shared libraries are not supported. Putting them 24981 # here allows them to be overridden if necessary. 24982 runpath_var=LD_RUN_PATH 24983 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' 24984 export_dynamic_flag_spec_F77='${wl}--export-dynamic' 24985 # ancient GNU ld didn't support --whole-archive et. al. 24986 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 24987 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 24988 else 24989 whole_archive_flag_spec_F77= 24990 fi 24991 supports_anon_versioning=no 24992 case `$LD -v 2>/dev/null` in 24993 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 24994 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 24995 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 24996 *\ 2.11.*) ;; # other 2.11 versions 24997 *) supports_anon_versioning=yes ;; 24998 esac 24999 25000 # See if GNU ld supports shared libraries. 25001 case $host_os in 25002 aix3* | aix4* | aix5*) 25003 # On AIX/PPC, the GNU linker is very broken 25004 if test "$host_cpu" != ia64; then 25005 ld_shlibs_F77=no 25006 cat <<EOF 1>&2 25007 25008*** Warning: the GNU linker, at least up to release 2.9.1, is reported 25009*** to be unable to reliably create shared libraries on AIX. 25010*** Therefore, libtool is disabling shared libraries support. If you 25011*** really care for shared libraries, you may want to modify your PATH 25012*** so that a non-GNU linker is found, and then restart. 25013 25014EOF 25015 fi 25016 ;; 25017 25018 amigaos*) 25019 archive_cmds_F77='$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)' 25020 hardcode_libdir_flag_spec_F77='-L$libdir' 25021 hardcode_minus_L_F77=yes 25022 25023 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 25024 # that the semantics of dynamic libraries on AmigaOS, at least up 25025 # to version 4, is to share data among multiple programs linked 25026 # with the same dynamic library. Since this doesn't match the 25027 # behavior of shared libraries on other platforms, we can't use 25028 # them. 25029 ld_shlibs_F77=no 25030 ;; 25031 25032 beos*) 25033 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 25034 allow_undefined_flag_F77=unsupported 25035 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 25036 # support --undefined. This deserves some investigation. FIXME 25037 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 25038 else 25039 ld_shlibs_F77=no 25040 fi 25041 ;; 25042 25043 cygwin* | mingw* | pw32*) 25044 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, 25045 # as there is no search path for DLLs. 25046 hardcode_libdir_flag_spec_F77='-L$libdir' 25047 allow_undefined_flag_F77=unsupported 25048 always_export_symbols_F77=no 25049 enable_shared_with_static_runtimes_F77=yes 25050 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 25051 25052 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 25053 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 25054 # If the export-symbols file already is a .def file (1st line 25055 # is EXPORTS), use it as is; otherwise, prepend... 25056 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 25057 cp $export_symbols $output_objdir/$soname.def; 25058 else 25059 echo EXPORTS > $output_objdir/$soname.def; 25060 cat $export_symbols >> $output_objdir/$soname.def; 25061 fi~ 25062 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 25063 else 25064 ld_shlibs_F77=no 25065 fi 25066 ;; 25067 25068 linux*) 25069 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 25070 tmp_addflag= 25071 case $cc_basename,$host_cpu in 25072 pgcc*) # Portland Group C compiler 25073 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 25074 tmp_addflag=' $pic_flag' 25075 ;; 25076 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 25077 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 25078 tmp_addflag=' $pic_flag -Mnomain' ;; 25079 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 25080 tmp_addflag=' -i_dynamic' ;; 25081 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 25082 tmp_addflag=' -i_dynamic -nofor_main' ;; 25083 ifc* | ifort*) # Intel Fortran compiler 25084 tmp_addflag=' -nofor_main' ;; 25085 esac 25086 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 25087 25088 if test $supports_anon_versioning = yes; then 25089 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ 25090 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 25091 $echo "local: *; };" >> $output_objdir/$libname.ver~ 25092 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 25093 fi 25094 else 25095 ld_shlibs_F77=no 25096 fi 25097 ;; 25098 25099 netbsd*) 25100 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 25101 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 25102 wlarc= 25103 else 25104 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 25105 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 25106 fi 25107 ;; 25108 25109 solaris* | sysv5*) 25110 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 25111 ld_shlibs_F77=no 25112 cat <<EOF 1>&2 25113 25114*** Warning: The releases 2.8.* of the GNU linker cannot reliably 25115*** create shared libraries on Solaris systems. Therefore, libtool 25116*** is disabling shared libraries support. We urge you to upgrade GNU 25117*** binutils to release 2.9.1 or newer. Another option is to modify 25118*** your PATH or compiler configuration so that the native linker is 25119*** used, and then restart. 25120 25121EOF 25122 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 25123 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 25124 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 25125 else 25126 ld_shlibs_F77=no 25127 fi 25128 ;; 25129 25130 sunos4*) 25131 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 25132 wlarc= 25133 hardcode_direct_F77=yes 25134 hardcode_shlibpath_var_F77=no 25135 ;; 25136 25137 *) 25138 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 25139 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 25140 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 25141 else 25142 ld_shlibs_F77=no 25143 fi 25144 ;; 25145 esac 25146 25147 if test "$ld_shlibs_F77" = no; then 25148 runpath_var= 25149 hardcode_libdir_flag_spec_F77= 25150 export_dynamic_flag_spec_F77= 25151 whole_archive_flag_spec_F77= 25152 fi 25153 else 25154 # PORTME fill in a description of your system's linker (not GNU ld) 25155 case $host_os in 25156 aix3*) 25157 allow_undefined_flag_F77=unsupported 25158 always_export_symbols_F77=yes 25159 archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' 25160 # Note: this linker hardcodes the directories in LIBPATH if there 25161 # are no directories specified by -L. 25162 hardcode_minus_L_F77=yes 25163 if test "$GCC" = yes && test -z "$link_static_flag"; then 25164 # Neither direct hardcoding nor static linking is supported with a 25165 # broken collect2. 25166 hardcode_direct_F77=unsupported 25167 fi 25168 ;; 25169 25170 aix4* | aix5*) 25171 if test "$host_cpu" = ia64; then 25172 # On IA64, the linker does run time linking by default, so we don't 25173 # have to do anything special. 25174 aix_use_runtimelinking=no 25175 exp_sym_flag='-Bexport' 25176 no_entry_flag="" 25177 else 25178 # If we're using GNU nm, then we don't want the "-C" option. 25179 # -C means demangle to AIX nm, but means don't demangle with GNU nm 25180 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 25181 export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' 25182 else 25183 export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' 25184 fi 25185 aix_use_runtimelinking=no 25186 25187 # Test if we are trying to use run time linking or normal 25188 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 25189 # need to do runtime linking. 25190 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 25191 for ld_flag in $LDFLAGS; do 25192 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 25193 aix_use_runtimelinking=yes 25194 break 25195 fi 25196 done 25197 esac 25198 25199 exp_sym_flag='-bexport' 25200 no_entry_flag='-bnoentry' 25201 fi 25202 25203 # When large executables or shared objects are built, AIX ld can 25204 # have problems creating the table of contents. If linking a library 25205 # or program results in "error TOC overflow" add -mminimal-toc to 25206 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 25207 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 25208 25209 archive_cmds_F77='' 25210 hardcode_direct_F77=yes 25211 hardcode_libdir_separator_F77=':' 25212 link_all_deplibs_F77=yes 25213 25214 if test "$GCC" = yes; then 25215 case $host_os in aix4.[012]|aix4.[012].*) 25216 # We only want to do this on AIX 4.2 and lower, the check 25217 # below for broken collect2 doesn't work under 4.3+ 25218 collect2name=`${CC} -print-prog-name=collect2` 25219 if test -f "$collect2name" && \ 25220 strings "$collect2name" | grep resolve_lib_name >/dev/null 25221 then 25222 # We have reworked collect2 25223 hardcode_direct_F77=yes 25224 else 25225 # We have old collect2 25226 hardcode_direct_F77=unsupported 25227 # It fails to find uninstalled libraries when the uninstalled 25228 # path is not listed in the libpath. Setting hardcode_minus_L 25229 # to unsupported forces relinking 25230 hardcode_minus_L_F77=yes 25231 hardcode_libdir_flag_spec_F77='-L$libdir' 25232 hardcode_libdir_separator_F77= 25233 fi 25234 esac 25235 shared_flag='-shared' 25236 if test "$aix_use_runtimelinking" = yes; then 25237 shared_flag="$shared_flag "'${wl}-G' 25238 fi 25239 else 25240 # not using gcc 25241 if test "$host_cpu" = ia64; then 25242 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 25243 # chokes on -Wl,-G. The following line is correct: 25244 shared_flag='-G' 25245 else 25246 if test "$aix_use_runtimelinking" = yes; then 25247 shared_flag='${wl}-G' 25248 else 25249 shared_flag='${wl}-bM:SRE' 25250 fi 25251 fi 25252 fi 25253 25254 # It seems that -bexpall does not export symbols beginning with 25255 # underscore (_), so it is better to generate a list of symbols to export. 25256 always_export_symbols_F77=yes 25257 if test "$aix_use_runtimelinking" = yes; then 25258 # Warning - without using the other runtime loading flags (-brtl), 25259 # -berok will link without error, but may produce a broken library. 25260 allow_undefined_flag_F77='-berok' 25261 # Determine the default libpath from the value encoded in an empty executable. 25262 cat >conftest.$ac_ext <<_ACEOF 25263 program main 25264 25265 end 25266_ACEOF 25267rm -f conftest.$ac_objext conftest$ac_exeext 25268if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 25269 (eval $ac_link) 2>conftest.er1 25270 ac_status=$? 25271 grep -v '^ *+' conftest.er1 >conftest.err 25272 rm -f conftest.er1 25273 cat conftest.err >&5 25274 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25275 (exit $ac_status); } && 25276 { ac_try='test -z "$ac_f77_werror_flag" 25277 || test ! -s conftest.err' 25278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 25279 (eval $ac_try) 2>&5 25280 ac_status=$? 25281 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25282 (exit $ac_status); }; } && 25283 { ac_try='test -s conftest$ac_exeext' 25284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 25285 (eval $ac_try) 2>&5 25286 ac_status=$? 25287 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25288 (exit $ac_status); }; }; then 25289 25290aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 25291}'` 25292# Check for a 64-bit object if we didn't find anything. 25293if 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; } 25294}'`; fi 25295else 25296 echo "$as_me: failed program was:" >&5 25297sed 's/^/| /' conftest.$ac_ext >&5 25298 25299fi 25300rm -f conftest.err conftest.$ac_objext \ 25301 conftest$ac_exeext conftest.$ac_ext 25302if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 25303 25304 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 25305 archive_expsym_cmds_F77="\$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" 25306 else 25307 if test "$host_cpu" = ia64; then 25308 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' 25309 allow_undefined_flag_F77="-z nodefs" 25310 archive_expsym_cmds_F77="\$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" 25311 else 25312 # Determine the default libpath from the value encoded in an empty executable. 25313 cat >conftest.$ac_ext <<_ACEOF 25314 program main 25315 25316 end 25317_ACEOF 25318rm -f conftest.$ac_objext conftest$ac_exeext 25319if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 25320 (eval $ac_link) 2>conftest.er1 25321 ac_status=$? 25322 grep -v '^ *+' conftest.er1 >conftest.err 25323 rm -f conftest.er1 25324 cat conftest.err >&5 25325 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25326 (exit $ac_status); } && 25327 { ac_try='test -z "$ac_f77_werror_flag" 25328 || test ! -s conftest.err' 25329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 25330 (eval $ac_try) 2>&5 25331 ac_status=$? 25332 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25333 (exit $ac_status); }; } && 25334 { ac_try='test -s conftest$ac_exeext' 25335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 25336 (eval $ac_try) 2>&5 25337 ac_status=$? 25338 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25339 (exit $ac_status); }; }; then 25340 25341aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 25342}'` 25343# Check for a 64-bit object if we didn't find anything. 25344if 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; } 25345}'`; fi 25346else 25347 echo "$as_me: failed program was:" >&5 25348sed 's/^/| /' conftest.$ac_ext >&5 25349 25350fi 25351rm -f conftest.err conftest.$ac_objext \ 25352 conftest$ac_exeext conftest.$ac_ext 25353if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 25354 25355 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 25356 # Warning - without using the other run time loading flags, 25357 # -berok will link without error, but may produce a broken library. 25358 no_undefined_flag_F77=' ${wl}-bernotok' 25359 allow_undefined_flag_F77=' ${wl}-berok' 25360 # -bexpall does not export symbols beginning with underscore (_) 25361 always_export_symbols_F77=yes 25362 # Exported symbols can be pulled into shared objects from archives 25363 whole_archive_flag_spec_F77=' ' 25364 archive_cmds_need_lc_F77=yes 25365 # This is similar to how AIX traditionally builds its shared libraries. 25366 archive_expsym_cmds_F77="\$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' 25367 fi 25368 fi 25369 ;; 25370 25371 amigaos*) 25372 archive_cmds_F77='$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)' 25373 hardcode_libdir_flag_spec_F77='-L$libdir' 25374 hardcode_minus_L_F77=yes 25375 # see comment about different semantics on the GNU ld section 25376 ld_shlibs_F77=no 25377 ;; 25378 25379 bsdi[45]*) 25380 export_dynamic_flag_spec_F77=-rdynamic 25381 ;; 25382 25383 cygwin* | mingw* | pw32*) 25384 # When not using gcc, we currently assume that we are using 25385 # Microsoft Visual C++. 25386 # hardcode_libdir_flag_spec is actually meaningless, as there is 25387 # no search path for DLLs. 25388 hardcode_libdir_flag_spec_F77=' ' 25389 allow_undefined_flag_F77=unsupported 25390 # Tell ltmain to make .lib files, not .a files. 25391 libext=lib 25392 # Tell ltmain to make .dll files, not .so files. 25393 shrext_cmds=".dll" 25394 # FIXME: Setting linknames here is a bad hack. 25395 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 25396 # The linker will automatically build a .lib file if we build a DLL. 25397 old_archive_From_new_cmds_F77='true' 25398 # FIXME: Should let the user specify the lib program. 25399 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' 25400 fix_srcfile_path_F77='`cygpath -w "$srcfile"`' 25401 enable_shared_with_static_runtimes_F77=yes 25402 ;; 25403 25404 darwin* | rhapsody*) 25405 case $host_os in 25406 rhapsody* | darwin1.[012]) 25407 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' 25408 ;; 25409 *) # Darwin 1.3 on 25410 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 25411 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 25412 else 25413 case ${MACOSX_DEPLOYMENT_TARGET} in 25414 10.[012]) 25415 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 25416 ;; 25417 10.*) 25418 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' 25419 ;; 25420 esac 25421 fi 25422 ;; 25423 esac 25424 archive_cmds_need_lc_F77=no 25425 hardcode_direct_F77=no 25426 hardcode_automatic_F77=yes 25427 hardcode_shlibpath_var_F77=unsupported 25428 whole_archive_flag_spec_F77='' 25429 link_all_deplibs_F77=yes 25430 if test "$GCC" = yes ; then 25431 output_verbose_link_cmd='echo' 25432 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 25433 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 25434 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 25435 archive_expsym_cmds_F77='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}' 25436 module_expsym_cmds_F77='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}' 25437 else 25438 case $cc_basename in 25439 xlc*) 25440 output_verbose_link_cmd='echo' 25441 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 25442 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 25443 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 25444 archive_expsym_cmds_F77='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}' 25445 module_expsym_cmds_F77='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}' 25446 ;; 25447 *) 25448 ld_shlibs_F77=no 25449 ;; 25450 esac 25451 fi 25452 ;; 25453 25454 dgux*) 25455 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 25456 hardcode_libdir_flag_spec_F77='-L$libdir' 25457 hardcode_shlibpath_var_F77=no 25458 ;; 25459 25460 freebsd1*) 25461 ld_shlibs_F77=no 25462 ;; 25463 25464 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 25465 # support. Future versions do this automatically, but an explicit c++rt0.o 25466 # does not break anything, and helps significantly (at the cost of a little 25467 # extra space). 25468 freebsd2.2*) 25469 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 25470 hardcode_libdir_flag_spec_F77='-R$libdir' 25471 hardcode_direct_F77=yes 25472 hardcode_shlibpath_var_F77=no 25473 ;; 25474 25475 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 25476 freebsd2*) 25477 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 25478 hardcode_direct_F77=yes 25479 hardcode_minus_L_F77=yes 25480 hardcode_shlibpath_var_F77=no 25481 ;; 25482 25483 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 25484 freebsd* | kfreebsd*-gnu | dragonfly*) 25485 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 25486 hardcode_libdir_flag_spec_F77='-R$libdir' 25487 hardcode_direct_F77=yes 25488 hardcode_shlibpath_var_F77=no 25489 ;; 25490 25491 hpux9*) 25492 if test "$GCC" = yes; then 25493 archive_cmds_F77='$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' 25494 else 25495 archive_cmds_F77='$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' 25496 fi 25497 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 25498 hardcode_libdir_separator_F77=: 25499 hardcode_direct_F77=yes 25500 25501 # hardcode_minus_L: Not really in the search PATH, 25502 # but as the default location of the library. 25503 hardcode_minus_L_F77=yes 25504 export_dynamic_flag_spec_F77='${wl}-E' 25505 ;; 25506 25507 hpux10* | hpux11*) 25508 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 25509 case $host_cpu in 25510 hppa*64*|ia64*) 25511 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 25512 ;; 25513 *) 25514 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 25515 ;; 25516 esac 25517 else 25518 case $host_cpu in 25519 hppa*64*|ia64*) 25520 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' 25521 ;; 25522 *) 25523 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 25524 ;; 25525 esac 25526 fi 25527 if test "$with_gnu_ld" = no; then 25528 case $host_cpu in 25529 hppa*64*) 25530 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 25531 hardcode_libdir_flag_spec_ld_F77='+b $libdir' 25532 hardcode_libdir_separator_F77=: 25533 hardcode_direct_F77=no 25534 hardcode_shlibpath_var_F77=no 25535 ;; 25536 ia64*) 25537 hardcode_libdir_flag_spec_F77='-L$libdir' 25538 hardcode_direct_F77=no 25539 hardcode_shlibpath_var_F77=no 25540 25541 # hardcode_minus_L: Not really in the search PATH, 25542 # but as the default location of the library. 25543 hardcode_minus_L_F77=yes 25544 ;; 25545 *) 25546 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 25547 hardcode_libdir_separator_F77=: 25548 hardcode_direct_F77=yes 25549 export_dynamic_flag_spec_F77='${wl}-E' 25550 25551 # hardcode_minus_L: Not really in the search PATH, 25552 # but as the default location of the library. 25553 hardcode_minus_L_F77=yes 25554 ;; 25555 esac 25556 fi 25557 ;; 25558 25559 irix5* | irix6* | nonstopux*) 25560 if test "$GCC" = yes; then 25561 archive_cmds_F77='$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' 25562 else 25563 archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 25564 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' 25565 fi 25566 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 25567 hardcode_libdir_separator_F77=: 25568 link_all_deplibs_F77=yes 25569 ;; 25570 25571 netbsd*) 25572 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 25573 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 25574 else 25575 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 25576 fi 25577 hardcode_libdir_flag_spec_F77='-R$libdir' 25578 hardcode_direct_F77=yes 25579 hardcode_shlibpath_var_F77=no 25580 ;; 25581 25582 newsos6) 25583 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 25584 hardcode_direct_F77=yes 25585 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 25586 hardcode_libdir_separator_F77=: 25587 hardcode_shlibpath_var_F77=no 25588 ;; 25589 25590 openbsd*) 25591 hardcode_direct_F77=yes 25592 hardcode_shlibpath_var_F77=no 25593 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 25594 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 25595 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 25596 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 25597 export_dynamic_flag_spec_F77='${wl}-E' 25598 else 25599 case $host_os in 25600 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 25601 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 25602 hardcode_libdir_flag_spec_F77='-R$libdir' 25603 ;; 25604 *) 25605 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 25606 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 25607 ;; 25608 esac 25609 fi 25610 ;; 25611 25612 os2*) 25613 hardcode_libdir_flag_spec_F77='-L$libdir' 25614 hardcode_minus_L_F77=yes 25615 allow_undefined_flag_F77=unsupported 25616 archive_cmds_F77='$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' 25617 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 25618 ;; 25619 25620 osf3*) 25621 if test "$GCC" = yes; then 25622 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 25623 archive_cmds_F77='$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' 25624 else 25625 allow_undefined_flag_F77=' -expect_unresolved \*' 25626 archive_cmds_F77='$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' 25627 fi 25628 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 25629 hardcode_libdir_separator_F77=: 25630 ;; 25631 25632 osf4* | osf5*) # as osf3* with the addition of -msym flag 25633 if test "$GCC" = yes; then 25634 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 25635 archive_cmds_F77='$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' 25636 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 25637 else 25638 allow_undefined_flag_F77=' -expect_unresolved \*' 25639 archive_cmds_F77='$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' 25640 archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 25641 $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' 25642 25643 # Both c and cxx compiler support -rpath directly 25644 hardcode_libdir_flag_spec_F77='-rpath $libdir' 25645 fi 25646 hardcode_libdir_separator_F77=: 25647 ;; 25648 25649 sco3.2v5*) 25650 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 25651 hardcode_shlibpath_var_F77=no 25652 export_dynamic_flag_spec_F77='${wl}-Bexport' 25653 runpath_var=LD_RUN_PATH 25654 hardcode_runpath_var=yes 25655 ;; 25656 25657 solaris*) 25658 no_undefined_flag_F77=' -z text' 25659 if test "$GCC" = yes; then 25660 wlarc='${wl}' 25661 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 25662 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 25663 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 25664 else 25665 wlarc='' 25666 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 25667 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 25668 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 25669 fi 25670 hardcode_libdir_flag_spec_F77='-R$libdir' 25671 hardcode_shlibpath_var_F77=no 25672 case $host_os in 25673 solaris2.[0-5] | solaris2.[0-5].*) ;; 25674 *) 25675 # The compiler driver will combine linker options so we 25676 # cannot just pass the convience library names through 25677 # without $wl, iff we do not link with $LD. 25678 # Luckily, gcc supports the same syntax we need for Sun Studio. 25679 # Supported since Solaris 2.6 (maybe 2.5.1?) 25680 case $wlarc in 25681 '') 25682 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; 25683 *) 25684 whole_archive_flag_spec_F77='${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' ;; 25685 esac ;; 25686 esac 25687 link_all_deplibs_F77=yes 25688 ;; 25689 25690 sunos4*) 25691 if test "x$host_vendor" = xsequent; then 25692 # Use $CC to link under sequent, because it throws in some extra .o 25693 # files that make .init and .fini sections work. 25694 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 25695 else 25696 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 25697 fi 25698 hardcode_libdir_flag_spec_F77='-L$libdir' 25699 hardcode_direct_F77=yes 25700 hardcode_minus_L_F77=yes 25701 hardcode_shlibpath_var_F77=no 25702 ;; 25703 25704 sysv4) 25705 case $host_vendor in 25706 sni) 25707 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 25708 hardcode_direct_F77=yes # is this really true??? 25709 ;; 25710 siemens) 25711 ## LD is ld it makes a PLAMLIB 25712 ## CC just makes a GrossModule. 25713 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' 25714 reload_cmds_F77='$CC -r -o $output$reload_objs' 25715 hardcode_direct_F77=no 25716 ;; 25717 motorola) 25718 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 25719 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie 25720 ;; 25721 esac 25722 runpath_var='LD_RUN_PATH' 25723 hardcode_shlibpath_var_F77=no 25724 ;; 25725 25726 sysv4.3*) 25727 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 25728 hardcode_shlibpath_var_F77=no 25729 export_dynamic_flag_spec_F77='-Bexport' 25730 ;; 25731 25732 sysv4*MP*) 25733 if test -d /usr/nec; then 25734 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 25735 hardcode_shlibpath_var_F77=no 25736 runpath_var=LD_RUN_PATH 25737 hardcode_runpath_var=yes 25738 ld_shlibs_F77=yes 25739 fi 25740 ;; 25741 25742 sysv4.2uw2*) 25743 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' 25744 hardcode_direct_F77=yes 25745 hardcode_minus_L_F77=no 25746 hardcode_shlibpath_var_F77=no 25747 hardcode_runpath_var=yes 25748 runpath_var=LD_RUN_PATH 25749 ;; 25750 25751 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) 25752 no_undefined_flag_F77='${wl}-z ${wl}text' 25753 if test "$GCC" = yes; then 25754 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 25755 else 25756 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 25757 fi 25758 runpath_var='LD_RUN_PATH' 25759 hardcode_shlibpath_var_F77=no 25760 ;; 25761 25762 sysv5*) 25763 no_undefined_flag_F77=' -z text' 25764 # $CC -shared without GNU ld will not create a library from C++ 25765 # object files and a static libstdc++, better avoid it by now 25766 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 25767 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 25768 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 25769 hardcode_libdir_flag_spec_F77= 25770 hardcode_shlibpath_var_F77=no 25771 runpath_var='LD_RUN_PATH' 25772 ;; 25773 25774 uts4*) 25775 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 25776 hardcode_libdir_flag_spec_F77='-L$libdir' 25777 hardcode_shlibpath_var_F77=no 25778 ;; 25779 25780 *) 25781 ld_shlibs_F77=no 25782 ;; 25783 esac 25784 fi 25785 25786echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 25787echo "${ECHO_T}$ld_shlibs_F77" >&6 25788test "$ld_shlibs_F77" = no && can_build_shared=no 25789 25790variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 25791if test "$GCC" = yes; then 25792 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 25793fi 25794 25795# 25796# Do we need to explicitly link libc? 25797# 25798case "x$archive_cmds_need_lc_F77" in 25799x|xyes) 25800 # Assume -lc should be added 25801 archive_cmds_need_lc_F77=yes 25802 25803 if test "$enable_shared" = yes && test "$GCC" = yes; then 25804 case $archive_cmds_F77 in 25805 *'~'*) 25806 # FIXME: we may have to deal with multi-command sequences. 25807 ;; 25808 '$CC '*) 25809 # Test whether the compiler implicitly links with -lc since on some 25810 # systems, -lgcc has to come before -lc. If gcc already passes -lc 25811 # to ld, don't add -lc before -lgcc. 25812 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 25813echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 25814 $rm conftest* 25815 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 25816 25817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 25818 (eval $ac_compile) 2>&5 25819 ac_status=$? 25820 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25821 (exit $ac_status); } 2>conftest.err; then 25822 soname=conftest 25823 lib=conftest 25824 libobjs=conftest.$ac_objext 25825 deplibs= 25826 wl=$lt_prog_compiler_wl_F77 25827 compiler_flags=-v 25828 linker_flags=-v 25829 verstring= 25830 output_objdir=. 25831 libname=conftest 25832 lt_save_allow_undefined_flag=$allow_undefined_flag_F77 25833 allow_undefined_flag_F77= 25834 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 25835 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 25836 ac_status=$? 25837 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25838 (exit $ac_status); } 25839 then 25840 archive_cmds_need_lc_F77=no 25841 else 25842 archive_cmds_need_lc_F77=yes 25843 fi 25844 allow_undefined_flag_F77=$lt_save_allow_undefined_flag 25845 else 25846 cat conftest.err 1>&5 25847 fi 25848 $rm conftest* 25849 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 25850echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6 25851 ;; 25852 esac 25853 fi 25854 ;; 25855esac 25856 25857echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 25858echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 25859library_names_spec= 25860libname_spec='lib$name' 25861soname_spec= 25862shrext_cmds=".so" 25863postinstall_cmds= 25864postuninstall_cmds= 25865finish_cmds= 25866finish_eval= 25867shlibpath_var= 25868shlibpath_overrides_runpath=unknown 25869version_type=none 25870dynamic_linker="$host_os ld.so" 25871sys_lib_dlsearch_path_spec="/lib /usr/lib" 25872if test "$GCC" = yes; then 25873 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 25874 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 25875 # if the path contains ";" then we assume it to be the separator 25876 # otherwise default to the standard path separator (i.e. ":") - it is 25877 # assumed that no part of a normal pathname contains ";" but that should 25878 # okay in the real world where ";" in dirpaths is itself problematic. 25879 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 25880 else 25881 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 25882 fi 25883else 25884 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 25885fi 25886need_lib_prefix=unknown 25887hardcode_into_libs=no 25888 25889# when you set need_version to no, make sure it does not cause -set_version 25890# flags to be left without arguments 25891need_version=unknown 25892 25893case $host_os in 25894aix3*) 25895 version_type=linux 25896 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 25897 shlibpath_var=LIBPATH 25898 25899 # AIX 3 has no versioning support, so we append a major version to the name. 25900 soname_spec='${libname}${release}${shared_ext}$major' 25901 ;; 25902 25903aix4* | aix5*) 25904 version_type=linux 25905 need_lib_prefix=no 25906 need_version=no 25907 hardcode_into_libs=yes 25908 if test "$host_cpu" = ia64; then 25909 # AIX 5 supports IA64 25910 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 25911 shlibpath_var=LD_LIBRARY_PATH 25912 else 25913 # With GCC up to 2.95.x, collect2 would create an import file 25914 # for dependence libraries. The import file would start with 25915 # the line `#! .'. This would cause the generated library to 25916 # depend on `.', always an invalid library. This was fixed in 25917 # development snapshots of GCC prior to 3.0. 25918 case $host_os in 25919 aix4 | aix4.[01] | aix4.[01].*) 25920 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 25921 echo ' yes ' 25922 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 25923 : 25924 else 25925 can_build_shared=no 25926 fi 25927 ;; 25928 esac 25929 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 25930 # soname into executable. Probably we can add versioning support to 25931 # collect2, so additional links can be useful in future. 25932 if test "$aix_use_runtimelinking" = yes; then 25933 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 25934 # instead of lib<name>.a to let people know that these are not 25935 # typical AIX shared libraries. 25936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 25937 else 25938 # We preserve .a as extension for shared libraries through AIX4.2 25939 # and later when we are not doing run time linking. 25940 library_names_spec='${libname}${release}.a $libname.a' 25941 soname_spec='${libname}${release}${shared_ext}$major' 25942 fi 25943 shlibpath_var=LIBPATH 25944 fi 25945 ;; 25946 25947amigaos*) 25948 library_names_spec='$libname.ixlibrary $libname.a' 25949 # Create ${libname}_ixlibrary.a entries in /sys/libs. 25950 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' 25951 ;; 25952 25953beos*) 25954 library_names_spec='${libname}${shared_ext}' 25955 dynamic_linker="$host_os ld.so" 25956 shlibpath_var=LIBRARY_PATH 25957 ;; 25958 25959bsdi[45]*) 25960 version_type=linux 25961 need_version=no 25962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 25963 soname_spec='${libname}${release}${shared_ext}$major' 25964 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 25965 shlibpath_var=LD_LIBRARY_PATH 25966 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 25967 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 25968 # the default ld.so.conf also contains /usr/contrib/lib and 25969 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 25970 # libtool to hard-code these into programs 25971 ;; 25972 25973cygwin* | mingw* | pw32*) 25974 version_type=windows 25975 shrext_cmds=".dll" 25976 need_version=no 25977 need_lib_prefix=no 25978 25979 case $GCC,$host_os in 25980 yes,cygwin* | yes,mingw* | yes,pw32*) 25981 library_names_spec='$libname.dll.a' 25982 # DLL is installed to $(libdir)/../bin by postinstall_cmds 25983 postinstall_cmds='base_file=`basename \${file}`~ 25984 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 25985 dldir=$destdir/`dirname \$dlpath`~ 25986 test -d \$dldir || mkdir -p \$dldir~ 25987 $install_prog $dir/$dlname \$dldir/$dlname~ 25988 chmod a+x \$dldir/$dlname' 25989 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 25990 dlpath=$dir/\$dldll~ 25991 $rm \$dlpath' 25992 shlibpath_overrides_runpath=yes 25993 25994 case $host_os in 25995 cygwin*) 25996 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 25997 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 25998 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 25999 ;; 26000 mingw*) 26001 # MinGW DLLs use traditional 'lib' prefix 26002 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 26003 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 26004 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 26005 # It is most probably a Windows format PATH printed by 26006 # mingw gcc, but we are running on Cygwin. Gcc prints its search 26007 # path with ; separators, and with drive letters. We can handle the 26008 # drive letters (cygwin fileutils understands them), so leave them, 26009 # especially as we might pass files found there to a mingw objdump, 26010 # which wouldn't understand a cygwinified path. Ahh. 26011 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 26012 else 26013 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 26014 fi 26015 ;; 26016 pw32*) 26017 # pw32 DLLs use 'pw' prefix rather than 'lib' 26018 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 26019 ;; 26020 esac 26021 ;; 26022 26023 *) 26024 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 26025 ;; 26026 esac 26027 dynamic_linker='Win32 ld.exe' 26028 # FIXME: first we should search . and the directory the executable is in 26029 shlibpath_var=PATH 26030 ;; 26031 26032darwin* | rhapsody*) 26033 dynamic_linker="$host_os dyld" 26034 version_type=darwin 26035 need_lib_prefix=no 26036 need_version=no 26037 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 26038 soname_spec='${libname}${release}${major}$shared_ext' 26039 shlibpath_overrides_runpath=yes 26040 shlibpath_var=DYLD_LIBRARY_PATH 26041 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 26042 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 26043 if test "$GCC" = yes; then 26044 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"` 26045 else 26046 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 26047 fi 26048 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 26049 ;; 26050 26051dgux*) 26052 version_type=linux 26053 need_lib_prefix=no 26054 need_version=no 26055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 26056 soname_spec='${libname}${release}${shared_ext}$major' 26057 shlibpath_var=LD_LIBRARY_PATH 26058 ;; 26059 26060freebsd1*) 26061 dynamic_linker=no 26062 ;; 26063 26064kfreebsd*-gnu) 26065 version_type=linux 26066 need_lib_prefix=no 26067 need_version=no 26068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 26069 soname_spec='${libname}${release}${shared_ext}$major' 26070 shlibpath_var=LD_LIBRARY_PATH 26071 shlibpath_overrides_runpath=no 26072 hardcode_into_libs=yes 26073 dynamic_linker='GNU ld.so' 26074 ;; 26075 26076freebsd* | dragonfly*) 26077 # DragonFly does not have aout. When/if they implement a new 26078 # versioning mechanism, adjust this. 26079 if test -x /usr/bin/objformat; then 26080 objformat=`/usr/bin/objformat` 26081 else 26082 case $host_os in 26083 freebsd[123]*) objformat=aout ;; 26084 *) objformat=elf ;; 26085 esac 26086 fi 26087 version_type=freebsd-$objformat 26088 case $version_type in 26089 freebsd-elf*) 26090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 26091 need_version=no 26092 need_lib_prefix=no 26093 ;; 26094 freebsd-*) 26095 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 26096 need_version=yes 26097 ;; 26098 esac 26099 shlibpath_var=LD_LIBRARY_PATH 26100 case $host_os in 26101 freebsd2*) 26102 shlibpath_overrides_runpath=yes 26103 ;; 26104 freebsd3.[01]* | freebsdelf3.[01]*) 26105 shlibpath_overrides_runpath=yes 26106 hardcode_into_libs=yes 26107 ;; 26108 *) # from 3.2 on 26109 shlibpath_overrides_runpath=no 26110 hardcode_into_libs=yes 26111 ;; 26112 esac 26113 ;; 26114 26115gnu*) 26116 version_type=linux 26117 need_lib_prefix=no 26118 need_version=no 26119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 26120 soname_spec='${libname}${release}${shared_ext}$major' 26121 shlibpath_var=LD_LIBRARY_PATH 26122 hardcode_into_libs=yes 26123 ;; 26124 26125hpux9* | hpux10* | hpux11*) 26126 # Give a soname corresponding to the major version so that dld.sl refuses to 26127 # link against other versions. 26128 version_type=sunos 26129 need_lib_prefix=no 26130 need_version=no 26131 case $host_cpu in 26132 ia64*) 26133 shrext_cmds='.so' 26134 hardcode_into_libs=yes 26135 dynamic_linker="$host_os dld.so" 26136 shlibpath_var=LD_LIBRARY_PATH 26137 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 26138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 26139 soname_spec='${libname}${release}${shared_ext}$major' 26140 if test "X$HPUX_IA64_MODE" = X32; then 26141 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 26142 else 26143 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 26144 fi 26145 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 26146 ;; 26147 hppa*64*) 26148 shrext_cmds='.sl' 26149 hardcode_into_libs=yes 26150 dynamic_linker="$host_os dld.sl" 26151 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 26152 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 26153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 26154 soname_spec='${libname}${release}${shared_ext}$major' 26155 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 26156 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 26157 ;; 26158 *) 26159 shrext_cmds='.sl' 26160 dynamic_linker="$host_os dld.sl" 26161 shlibpath_var=SHLIB_PATH 26162 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 26163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 26164 soname_spec='${libname}${release}${shared_ext}$major' 26165 ;; 26166 esac 26167 # HP-UX runs *really* slowly unless shared libraries are mode 555. 26168 postinstall_cmds='chmod 555 $lib' 26169 ;; 26170 26171irix5* | irix6* | nonstopux*) 26172 case $host_os in 26173 nonstopux*) version_type=nonstopux ;; 26174 *) 26175 if test "$lt_cv_prog_gnu_ld" = yes; then 26176 version_type=linux 26177 else 26178 version_type=irix 26179 fi ;; 26180 esac 26181 need_lib_prefix=no 26182 need_version=no 26183 soname_spec='${libname}${release}${shared_ext}$major' 26184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 26185 case $host_os in 26186 irix5* | nonstopux*) 26187 libsuff= shlibsuff= 26188 ;; 26189 *) 26190 case $LD in # libtool.m4 will add one of these switches to LD 26191 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 26192 libsuff= shlibsuff= libmagic=32-bit;; 26193 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 26194 libsuff=32 shlibsuff=N32 libmagic=N32;; 26195 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 26196 libsuff=64 shlibsuff=64 libmagic=64-bit;; 26197 *) libsuff= shlibsuff= libmagic=never-match;; 26198 esac 26199 ;; 26200 esac 26201 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 26202 shlibpath_overrides_runpath=no 26203 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 26204 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 26205 hardcode_into_libs=yes 26206 ;; 26207 26208# No shared lib support for Linux oldld, aout, or coff. 26209linux*oldld* | linux*aout* | linux*coff*) 26210 dynamic_linker=no 26211 ;; 26212 26213# This must be Linux ELF. 26214linux*) 26215 version_type=linux 26216 need_lib_prefix=no 26217 need_version=no 26218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 26219 soname_spec='${libname}${release}${shared_ext}$major' 26220 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 26221 shlibpath_var=LD_LIBRARY_PATH 26222 shlibpath_overrides_runpath=no 26223 # This implies no fast_install, which is unacceptable. 26224 # Some rework will be needed to allow for fast_install 26225 # before this can be enabled. 26226 hardcode_into_libs=yes 26227 26228 # Append ld.so.conf contents to the search path 26229 if test -f /etc/ld.so.conf; then 26230 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' ' '` 26231 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 26232 fi 26233 26234 # We used to test for /lib/ld.so.1 and disable shared libraries on 26235 # powerpc, because MkLinux only supported shared libraries with the 26236 # GNU dynamic linker. Since this was broken with cross compilers, 26237 # most powerpc-linux boxes support dynamic linking these days and 26238 # people can always --disable-shared, the test was removed, and we 26239 # assume the GNU/Linux dynamic linker is in use. 26240 dynamic_linker='GNU/Linux ld.so' 26241 ;; 26242 26243knetbsd*-gnu) 26244 version_type=linux 26245 need_lib_prefix=no 26246 need_version=no 26247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 26248 soname_spec='${libname}${release}${shared_ext}$major' 26249 shlibpath_var=LD_LIBRARY_PATH 26250 shlibpath_overrides_runpath=no 26251 hardcode_into_libs=yes 26252 dynamic_linker='GNU ld.so' 26253 ;; 26254 26255netbsd*) 26256 version_type=sunos 26257 need_lib_prefix=no 26258 need_version=no 26259 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 26260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 26261 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 26262 dynamic_linker='NetBSD (a.out) ld.so' 26263 else 26264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 26265 soname_spec='${libname}${release}${shared_ext}$major' 26266 dynamic_linker='NetBSD ld.elf_so' 26267 fi 26268 shlibpath_var=LD_LIBRARY_PATH 26269 shlibpath_overrides_runpath=yes 26270 hardcode_into_libs=yes 26271 ;; 26272 26273newsos6) 26274 version_type=linux 26275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 26276 shlibpath_var=LD_LIBRARY_PATH 26277 shlibpath_overrides_runpath=yes 26278 ;; 26279 26280nto-qnx*) 26281 version_type=linux 26282 need_lib_prefix=no 26283 need_version=no 26284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 26285 soname_spec='${libname}${release}${shared_ext}$major' 26286 shlibpath_var=LD_LIBRARY_PATH 26287 shlibpath_overrides_runpath=yes 26288 ;; 26289 26290openbsd*) 26291 version_type=sunos 26292 need_lib_prefix=no 26293 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 26294 case $host_os in 26295 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 26296 *) need_version=no ;; 26297 esac 26298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 26299 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 26300 shlibpath_var=LD_LIBRARY_PATH 26301 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 26302 case $host_os in 26303 openbsd2.[89] | openbsd2.[89].*) 26304 shlibpath_overrides_runpath=no 26305 ;; 26306 *) 26307 shlibpath_overrides_runpath=yes 26308 ;; 26309 esac 26310 else 26311 shlibpath_overrides_runpath=yes 26312 fi 26313 ;; 26314 26315os2*) 26316 libname_spec='$name' 26317 shrext_cmds=".dll" 26318 need_lib_prefix=no 26319 library_names_spec='$libname${shared_ext} $libname.a' 26320 dynamic_linker='OS/2 ld.exe' 26321 shlibpath_var=LIBPATH 26322 ;; 26323 26324osf3* | osf4* | osf5*) 26325 version_type=osf 26326 need_lib_prefix=no 26327 need_version=no 26328 soname_spec='${libname}${release}${shared_ext}$major' 26329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 26330 shlibpath_var=LD_LIBRARY_PATH 26331 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 26332 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 26333 ;; 26334 26335sco3.2v5*) 26336 version_type=osf 26337 soname_spec='${libname}${release}${shared_ext}$major' 26338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 26339 shlibpath_var=LD_LIBRARY_PATH 26340 ;; 26341 26342solaris*) 26343 version_type=linux 26344 need_lib_prefix=no 26345 need_version=no 26346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 26347 soname_spec='${libname}${release}${shared_ext}$major' 26348 shlibpath_var=LD_LIBRARY_PATH 26349 shlibpath_overrides_runpath=yes 26350 hardcode_into_libs=yes 26351 # ldd complains unless libraries are executable 26352 postinstall_cmds='chmod +x $lib' 26353 ;; 26354 26355sunos4*) 26356 version_type=sunos 26357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 26358 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 26359 shlibpath_var=LD_LIBRARY_PATH 26360 shlibpath_overrides_runpath=yes 26361 if test "$with_gnu_ld" = yes; then 26362 need_lib_prefix=no 26363 fi 26364 need_version=yes 26365 ;; 26366 26367sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 26368 version_type=linux 26369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 26370 soname_spec='${libname}${release}${shared_ext}$major' 26371 shlibpath_var=LD_LIBRARY_PATH 26372 case $host_vendor in 26373 sni) 26374 shlibpath_overrides_runpath=no 26375 need_lib_prefix=no 26376 export_dynamic_flag_spec='${wl}-Blargedynsym' 26377 runpath_var=LD_RUN_PATH 26378 ;; 26379 siemens) 26380 need_lib_prefix=no 26381 ;; 26382 motorola) 26383 need_lib_prefix=no 26384 need_version=no 26385 shlibpath_overrides_runpath=no 26386 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 26387 ;; 26388 esac 26389 ;; 26390 26391sysv4*MP*) 26392 if test -d /usr/nec ;then 26393 version_type=linux 26394 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 26395 soname_spec='$libname${shared_ext}.$major' 26396 shlibpath_var=LD_LIBRARY_PATH 26397 fi 26398 ;; 26399 26400uts4*) 26401 version_type=linux 26402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 26403 soname_spec='${libname}${release}${shared_ext}$major' 26404 shlibpath_var=LD_LIBRARY_PATH 26405 ;; 26406 26407*) 26408 dynamic_linker=no 26409 ;; 26410esac 26411echo "$as_me:$LINENO: result: $dynamic_linker" >&5 26412echo "${ECHO_T}$dynamic_linker" >&6 26413test "$dynamic_linker" = no && can_build_shared=no 26414 26415echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 26416echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 26417hardcode_action_F77= 26418if test -n "$hardcode_libdir_flag_spec_F77" || \ 26419 test -n "$runpath_var_F77" || \ 26420 test "X$hardcode_automatic_F77" = "Xyes" ; then 26421 26422 # We can hardcode non-existant directories. 26423 if test "$hardcode_direct_F77" != no && 26424 # If the only mechanism to avoid hardcoding is shlibpath_var, we 26425 # have to relink, otherwise we might link with an installed library 26426 # when we should be linking with a yet-to-be-installed one 26427 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && 26428 test "$hardcode_minus_L_F77" != no; then 26429 # Linking always hardcodes the temporary library directory. 26430 hardcode_action_F77=relink 26431 else 26432 # We can link without hardcoding, and we can hardcode nonexisting dirs. 26433 hardcode_action_F77=immediate 26434 fi 26435else 26436 # We cannot hardcode anything, or else we can only hardcode existing 26437 # directories. 26438 hardcode_action_F77=unsupported 26439fi 26440echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 26441echo "${ECHO_T}$hardcode_action_F77" >&6 26442 26443if test "$hardcode_action_F77" = relink; then 26444 # Fast installation is not supported 26445 enable_fast_install=no 26446elif test "$shlibpath_overrides_runpath" = yes || 26447 test "$enable_shared" = no; then 26448 # Fast installation is not necessary 26449 enable_fast_install=needless 26450fi 26451 26452striplib= 26453old_striplib= 26454echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 26455echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 26456if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 26457 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 26458 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 26459 echo "$as_me:$LINENO: result: yes" >&5 26460echo "${ECHO_T}yes" >&6 26461else 26462# FIXME - insert some real tests, host_os isn't really good enough 26463 case $host_os in 26464 darwin*) 26465 if test -n "$STRIP" ; then 26466 striplib="$STRIP -x" 26467 echo "$as_me:$LINENO: result: yes" >&5 26468echo "${ECHO_T}yes" >&6 26469 else 26470 echo "$as_me:$LINENO: result: no" >&5 26471echo "${ECHO_T}no" >&6 26472fi 26473 ;; 26474 *) 26475 echo "$as_me:$LINENO: result: no" >&5 26476echo "${ECHO_T}no" >&6 26477 ;; 26478 esac 26479fi 26480 26481 26482 26483# The else clause should only fire when bootstrapping the 26484# libtool distribution, otherwise you forgot to ship ltmain.sh 26485# with your package, and you will get complaints that there are 26486# no rules to generate ltmain.sh. 26487if test -f "$ltmain"; then 26488 # See if we are running on zsh, and set the options which allow our commands through 26489 # without removal of \ escapes. 26490 if test -n "${ZSH_VERSION+set}" ; then 26491 setopt NO_GLOB_SUBST 26492 fi 26493 # Now quote all the things that may contain metacharacters while being 26494 # careful not to overquote the AC_SUBSTed values. We take copies of the 26495 # variables and quote the copies for generation of the libtool script. 26496 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ 26497 SED SHELL STRIP \ 26498 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 26499 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 26500 deplibs_check_method reload_flag reload_cmds need_locks \ 26501 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 26502 lt_cv_sys_global_symbol_to_c_name_address \ 26503 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 26504 old_postinstall_cmds old_postuninstall_cmds \ 26505 compiler_F77 \ 26506 CC_F77 \ 26507 LD_F77 \ 26508 lt_prog_compiler_wl_F77 \ 26509 lt_prog_compiler_pic_F77 \ 26510 lt_prog_compiler_static_F77 \ 26511 lt_prog_compiler_no_builtin_flag_F77 \ 26512 export_dynamic_flag_spec_F77 \ 26513 thread_safe_flag_spec_F77 \ 26514 whole_archive_flag_spec_F77 \ 26515 enable_shared_with_static_runtimes_F77 \ 26516 old_archive_cmds_F77 \ 26517 old_archive_from_new_cmds_F77 \ 26518 predep_objects_F77 \ 26519 postdep_objects_F77 \ 26520 predeps_F77 \ 26521 postdeps_F77 \ 26522 compiler_lib_search_path_F77 \ 26523 archive_cmds_F77 \ 26524 archive_expsym_cmds_F77 \ 26525 postinstall_cmds_F77 \ 26526 postuninstall_cmds_F77 \ 26527 old_archive_from_expsyms_cmds_F77 \ 26528 allow_undefined_flag_F77 \ 26529 no_undefined_flag_F77 \ 26530 export_symbols_cmds_F77 \ 26531 hardcode_libdir_flag_spec_F77 \ 26532 hardcode_libdir_flag_spec_ld_F77 \ 26533 hardcode_libdir_separator_F77 \ 26534 hardcode_automatic_F77 \ 26535 module_cmds_F77 \ 26536 module_expsym_cmds_F77 \ 26537 lt_cv_prog_compiler_c_o_F77 \ 26538 exclude_expsyms_F77 \ 26539 include_expsyms_F77; do 26540 26541 case $var in 26542 old_archive_cmds_F77 | \ 26543 old_archive_from_new_cmds_F77 | \ 26544 archive_cmds_F77 | \ 26545 archive_expsym_cmds_F77 | \ 26546 module_cmds_F77 | \ 26547 module_expsym_cmds_F77 | \ 26548 old_archive_from_expsyms_cmds_F77 | \ 26549 export_symbols_cmds_F77 | \ 26550 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 26551 postinstall_cmds | postuninstall_cmds | \ 26552 old_postinstall_cmds | old_postuninstall_cmds | \ 26553 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 26554 # Double-quote double-evaled strings. 26555 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 26556 ;; 26557 *) 26558 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 26559 ;; 26560 esac 26561 done 26562 26563 case $lt_echo in 26564 *'\$0 --fallback-echo"') 26565 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 26566 ;; 26567 esac 26568 26569cfgfile="$ofile" 26570 26571 cat <<__EOF__ >> "$cfgfile" 26572# ### BEGIN LIBTOOL TAG CONFIG: $tagname 26573 26574# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 26575 26576# Shell to use when invoking shell scripts. 26577SHELL=$lt_SHELL 26578 26579# Whether or not to build shared libraries. 26580build_libtool_libs=$enable_shared 26581 26582# Whether or not to build static libraries. 26583build_old_libs=$enable_static 26584 26585# Whether or not to add -lc for building shared libraries. 26586build_libtool_need_lc=$archive_cmds_need_lc_F77 26587 26588# Whether or not to disallow shared libs when runtime libs are static 26589allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 26590 26591# Whether or not to optimize for fast installation. 26592fast_install=$enable_fast_install 26593 26594# The host system. 26595host_alias=$host_alias 26596host=$host 26597host_os=$host_os 26598 26599# The build system. 26600build_alias=$build_alias 26601build=$build 26602build_os=$build_os 26603 26604# An echo program that does not interpret backslashes. 26605echo=$lt_echo 26606 26607# The archiver. 26608AR=$lt_AR 26609AR_FLAGS=$lt_AR_FLAGS 26610 26611# A C compiler. 26612LTCC=$lt_LTCC 26613 26614# A language-specific compiler. 26615CC=$lt_compiler_F77 26616 26617# Is the compiler the GNU C compiler? 26618with_gcc=$GCC_F77 26619 26620# An ERE matcher. 26621EGREP=$lt_EGREP 26622 26623# The linker used to build libraries. 26624LD=$lt_LD_F77 26625 26626# Whether we need hard or soft links. 26627LN_S=$lt_LN_S 26628 26629# A BSD-compatible nm program. 26630NM=$lt_NM 26631 26632# A symbol stripping program 26633STRIP=$lt_STRIP 26634 26635# Used to examine libraries when file_magic_cmd begins "file" 26636MAGIC_CMD=$MAGIC_CMD 26637 26638# Used on cygwin: DLL creation program. 26639DLLTOOL="$DLLTOOL" 26640 26641# Used on cygwin: object dumper. 26642OBJDUMP="$OBJDUMP" 26643 26644# Used on cygwin: assembler. 26645AS="$AS" 26646 26647# The name of the directory that contains temporary libtool files. 26648objdir=$objdir 26649 26650# How to create reloadable object files. 26651reload_flag=$lt_reload_flag 26652reload_cmds=$lt_reload_cmds 26653 26654# How to pass a linker flag through the compiler. 26655wl=$lt_lt_prog_compiler_wl_F77 26656 26657# Object file suffix (normally "o"). 26658objext="$ac_objext" 26659 26660# Old archive suffix (normally "a"). 26661libext="$libext" 26662 26663# Shared library suffix (normally ".so"). 26664shrext_cmds='$shrext_cmds' 26665 26666# Executable file suffix (normally ""). 26667exeext="$exeext" 26668 26669# Additional compiler flags for building library objects. 26670pic_flag=$lt_lt_prog_compiler_pic_F77 26671pic_mode=$pic_mode 26672 26673# What is the maximum length of a command? 26674max_cmd_len=$lt_cv_sys_max_cmd_len 26675 26676# Does compiler simultaneously support -c and -o options? 26677compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 26678 26679# Must we lock files when doing compilation? 26680need_locks=$lt_need_locks 26681 26682# Do we need the lib prefix for modules? 26683need_lib_prefix=$need_lib_prefix 26684 26685# Do we need a version for libraries? 26686need_version=$need_version 26687 26688# Whether dlopen is supported. 26689dlopen_support=$enable_dlopen 26690 26691# Whether dlopen of programs is supported. 26692dlopen_self=$enable_dlopen_self 26693 26694# Whether dlopen of statically linked programs is supported. 26695dlopen_self_static=$enable_dlopen_self_static 26696 26697# Compiler flag to prevent dynamic linking. 26698link_static_flag=$lt_lt_prog_compiler_static_F77 26699 26700# Compiler flag to turn off builtin functions. 26701no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 26702 26703# Compiler flag to allow reflexive dlopens. 26704export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 26705 26706# Compiler flag to generate shared objects directly from archives. 26707whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 26708 26709# Compiler flag to generate thread-safe objects. 26710thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 26711 26712# Library versioning type. 26713version_type=$version_type 26714 26715# Format of library name prefix. 26716libname_spec=$lt_libname_spec 26717 26718# List of archive names. First name is the real one, the rest are links. 26719# The last name is the one that the linker finds with -lNAME. 26720library_names_spec=$lt_library_names_spec 26721 26722# The coded name of the library, if different from the real name. 26723soname_spec=$lt_soname_spec 26724 26725# Commands used to build and install an old-style archive. 26726RANLIB=$lt_RANLIB 26727old_archive_cmds=$lt_old_archive_cmds_F77 26728old_postinstall_cmds=$lt_old_postinstall_cmds 26729old_postuninstall_cmds=$lt_old_postuninstall_cmds 26730 26731# Create an old-style archive from a shared archive. 26732old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 26733 26734# Create a temporary old-style archive to link instead of a shared archive. 26735old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 26736 26737# Commands used to build and install a shared archive. 26738archive_cmds=$lt_archive_cmds_F77 26739archive_expsym_cmds=$lt_archive_expsym_cmds_F77 26740postinstall_cmds=$lt_postinstall_cmds 26741postuninstall_cmds=$lt_postuninstall_cmds 26742 26743# Commands used to build a loadable module (assumed same as above if empty) 26744module_cmds=$lt_module_cmds_F77 26745module_expsym_cmds=$lt_module_expsym_cmds_F77 26746 26747# Commands to strip libraries. 26748old_striplib=$lt_old_striplib 26749striplib=$lt_striplib 26750 26751# Dependencies to place before the objects being linked to create a 26752# shared library. 26753predep_objects=$lt_predep_objects_F77 26754 26755# Dependencies to place after the objects being linked to create a 26756# shared library. 26757postdep_objects=$lt_postdep_objects_F77 26758 26759# Dependencies to place before the objects being linked to create a 26760# shared library. 26761predeps=$lt_predeps_F77 26762 26763# Dependencies to place after the objects being linked to create a 26764# shared library. 26765postdeps=$lt_postdeps_F77 26766 26767# The library search path used internally by the compiler when linking 26768# a shared library. 26769compiler_lib_search_path=$lt_compiler_lib_search_path_F77 26770 26771# Method to check whether dependent libraries are shared objects. 26772deplibs_check_method=$lt_deplibs_check_method 26773 26774# Command to use when deplibs_check_method == file_magic. 26775file_magic_cmd=$lt_file_magic_cmd 26776 26777# Flag that allows shared libraries with undefined symbols to be built. 26778allow_undefined_flag=$lt_allow_undefined_flag_F77 26779 26780# Flag that forces no undefined symbols. 26781no_undefined_flag=$lt_no_undefined_flag_F77 26782 26783# Commands used to finish a libtool library installation in a directory. 26784finish_cmds=$lt_finish_cmds 26785 26786# Same as above, but a single script fragment to be evaled but not shown. 26787finish_eval=$lt_finish_eval 26788 26789# Take the output of nm and produce a listing of raw symbols and C names. 26790global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 26791 26792# Transform the output of nm in a proper C declaration 26793global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 26794 26795# Transform the output of nm in a C name address pair 26796global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 26797 26798# This is the shared library runtime path variable. 26799runpath_var=$runpath_var 26800 26801# This is the shared library path variable. 26802shlibpath_var=$shlibpath_var 26803 26804# Is shlibpath searched before the hard-coded library search path? 26805shlibpath_overrides_runpath=$shlibpath_overrides_runpath 26806 26807# How to hardcode a shared library path into an executable. 26808hardcode_action=$hardcode_action_F77 26809 26810# Whether we should hardcode library paths into libraries. 26811hardcode_into_libs=$hardcode_into_libs 26812 26813# Flag to hardcode \$libdir into a binary during linking. 26814# This must work even if \$libdir does not exist. 26815hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 26816 26817# If ld is used when linking, flag to hardcode \$libdir into 26818# a binary during linking. This must work even if \$libdir does 26819# not exist. 26820hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 26821 26822# Whether we need a single -rpath flag with a separated argument. 26823hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 26824 26825# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 26826# resulting binary. 26827hardcode_direct=$hardcode_direct_F77 26828 26829# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 26830# resulting binary. 26831hardcode_minus_L=$hardcode_minus_L_F77 26832 26833# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 26834# the resulting binary. 26835hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 26836 26837# Set to yes if building a shared library automatically hardcodes DIR into the library 26838# and all subsequent libraries and executables linked against it. 26839hardcode_automatic=$hardcode_automatic_F77 26840 26841# Variables whose values should be saved in libtool wrapper scripts and 26842# restored at relink time. 26843variables_saved_for_relink="$variables_saved_for_relink" 26844 26845# Whether libtool must link a program against all its dependency libraries. 26846link_all_deplibs=$link_all_deplibs_F77 26847 26848# Compile-time system search path for libraries 26849sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 26850 26851# Run-time system search path for libraries 26852sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 26853 26854# Fix the shell variable \$srcfile for the compiler. 26855fix_srcfile_path="$fix_srcfile_path_F77" 26856 26857# Set to yes if exported symbols are required. 26858always_export_symbols=$always_export_symbols_F77 26859 26860# The commands to list exported symbols. 26861export_symbols_cmds=$lt_export_symbols_cmds_F77 26862 26863# The commands to extract the exported symbol list from a shared archive. 26864extract_expsyms_cmds=$lt_extract_expsyms_cmds 26865 26866# Symbols that should not be listed in the preloaded symbols. 26867exclude_expsyms=$lt_exclude_expsyms_F77 26868 26869# Symbols that must always be exported. 26870include_expsyms=$lt_include_expsyms_F77 26871 26872# ### END LIBTOOL TAG CONFIG: $tagname 26873 26874__EOF__ 26875 26876 26877else 26878 # If there is no Makefile yet, we rely on a make rule to execute 26879 # `config.status --recheck' to rerun these tests and create the 26880 # libtool script then. 26881 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 26882 if test -f "$ltmain_in"; then 26883 test -f Makefile && make "$ltmain" 26884 fi 26885fi 26886 26887 26888ac_ext=c 26889ac_cpp='$CPP $CPPFLAGS' 26890ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 26891ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 26892ac_compiler_gnu=$ac_cv_c_compiler_gnu 26893 26894CC="$lt_save_CC" 26895 26896 else 26897 tagname="" 26898 fi 26899 ;; 26900 26901 GCJ) 26902 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then 26903 26904 26905 26906# Source file extension for Java test sources. 26907ac_ext=java 26908 26909# Object file extension for compiled Java test sources. 26910objext=o 26911objext_GCJ=$objext 26912 26913# Code to be used in simple compile tests 26914lt_simple_compile_test_code="class foo {}\n" 26915 26916# Code to be used in simple link tests 26917lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n' 26918 26919# ltmain only uses $CC for tagged configurations so make sure $CC is set. 26920 26921# If no C compiler was specified, use CC. 26922LTCC=${LTCC-"$CC"} 26923 26924# Allow CC to be a program name with arguments. 26925compiler=$CC 26926 26927 26928# save warnings/boilerplate of simple test code 26929ac_outfile=conftest.$ac_objext 26930printf "$lt_simple_compile_test_code" >conftest.$ac_ext 26931eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 26932_lt_compiler_boilerplate=`cat conftest.err` 26933$rm conftest* 26934 26935ac_outfile=conftest.$ac_objext 26936printf "$lt_simple_link_test_code" >conftest.$ac_ext 26937eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 26938_lt_linker_boilerplate=`cat conftest.err` 26939$rm conftest* 26940 26941 26942# Allow CC to be a program name with arguments. 26943lt_save_CC="$CC" 26944CC=${GCJ-"gcj"} 26945compiler=$CC 26946compiler_GCJ=$CC 26947for cc_temp in $compiler""; do 26948 case $cc_temp in 26949 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 26950 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 26951 \-*) ;; 26952 *) break;; 26953 esac 26954done 26955cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 26956 26957 26958# GCJ did not exist at the time GCC didn't implicitly link libc in. 26959archive_cmds_need_lc_GCJ=no 26960 26961old_archive_cmds_GCJ=$old_archive_cmds 26962 26963 26964lt_prog_compiler_no_builtin_flag_GCJ= 26965 26966if test "$GCC" = yes; then 26967 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' 26968 26969 26970echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 26971echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 26972if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 26973 echo $ECHO_N "(cached) $ECHO_C" >&6 26974else 26975 lt_cv_prog_compiler_rtti_exceptions=no 26976 ac_outfile=conftest.$ac_objext 26977 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 26978 lt_compiler_flag="-fno-rtti -fno-exceptions" 26979 # Insert the option either (1) after the last *FLAGS variable, or 26980 # (2) before a word containing "conftest.", or (3) at the end. 26981 # Note that $ac_compile itself does not contain backslashes and begins 26982 # with a dollar sign (not a hyphen), so the echo should work correctly. 26983 # The option is referenced via a variable to avoid confusing sed. 26984 lt_compile=`echo "$ac_compile" | $SED \ 26985 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 26986 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 26987 -e 's:$: $lt_compiler_flag:'` 26988 (eval echo "\"\$as_me:26988: $lt_compile\"" >&5) 26989 (eval "$lt_compile" 2>conftest.err) 26990 ac_status=$? 26991 cat conftest.err >&5 26992 echo "$as_me:26992: \$? = $ac_status" >&5 26993 if (exit $ac_status) && test -s "$ac_outfile"; then 26994 # The compiler can only warn and ignore the option if not recognized 26995 # So say no if there are warnings other than the usual output. 26996 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp 26997 $SED '/^$/d' conftest.err >conftest.er2 26998 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then 26999 lt_cv_prog_compiler_rtti_exceptions=yes 27000 fi 27001 fi 27002 $rm conftest* 27003 27004fi 27005echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 27006echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 27007 27008if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 27009 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" 27010else 27011 : 27012fi 27013 27014fi 27015 27016lt_prog_compiler_wl_GCJ= 27017lt_prog_compiler_pic_GCJ= 27018lt_prog_compiler_static_GCJ= 27019 27020echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 27021echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 27022 27023 if test "$GCC" = yes; then 27024 lt_prog_compiler_wl_GCJ='-Wl,' 27025 lt_prog_compiler_static_GCJ='-static' 27026 27027 case $host_os in 27028 aix*) 27029 # All AIX code is PIC. 27030 if test "$host_cpu" = ia64; then 27031 # AIX 5 now supports IA64 processor 27032 lt_prog_compiler_static_GCJ='-Bstatic' 27033 fi 27034 ;; 27035 27036 amigaos*) 27037 # FIXME: we need at least 68020 code to build shared libraries, but 27038 # adding the `-m68020' flag to GCC prevents building anything better, 27039 # like `-m68040'. 27040 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' 27041 ;; 27042 27043 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 27044 # PIC is the default for these OSes. 27045 ;; 27046 27047 mingw* | pw32* | os2*) 27048 # This hack is so that the source file can tell whether it is being 27049 # built for inclusion in a dll (and should export symbols for example). 27050 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 27051 ;; 27052 27053 darwin* | rhapsody*) 27054 # PIC is the default on this platform 27055 # Common symbols not allowed in MH_DYLIB files 27056 lt_prog_compiler_pic_GCJ='-fno-common' 27057 ;; 27058 27059 msdosdjgpp*) 27060 # Just because we use GCC doesn't mean we suddenly get shared libraries 27061 # on systems that don't support them. 27062 lt_prog_compiler_can_build_shared_GCJ=no 27063 enable_shared=no 27064 ;; 27065 27066 sysv4*MP*) 27067 if test -d /usr/nec; then 27068 lt_prog_compiler_pic_GCJ=-Kconform_pic 27069 fi 27070 ;; 27071 27072 hpux*) 27073 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 27074 # not for PA HP-UX. 27075 case $host_cpu in 27076 hppa*64*|ia64*) 27077 # +Z the default 27078 ;; 27079 *) 27080 lt_prog_compiler_pic_GCJ='-fPIC' 27081 ;; 27082 esac 27083 ;; 27084 27085 *) 27086 lt_prog_compiler_pic_GCJ='-fPIC' 27087 ;; 27088 esac 27089 else 27090 # PORTME Check for flag to pass linker flags through the system compiler. 27091 case $host_os in 27092 aix*) 27093 lt_prog_compiler_wl_GCJ='-Wl,' 27094 if test "$host_cpu" = ia64; then 27095 # AIX 5 now supports IA64 processor 27096 lt_prog_compiler_static_GCJ='-Bstatic' 27097 else 27098 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' 27099 fi 27100 ;; 27101 darwin*) 27102 # PIC is the default on this platform 27103 # Common symbols not allowed in MH_DYLIB files 27104 case $cc_basename in 27105 xlc*) 27106 lt_prog_compiler_pic_GCJ='-qnocommon' 27107 lt_prog_compiler_wl_GCJ='-Wl,' 27108 ;; 27109 esac 27110 ;; 27111 27112 mingw* | pw32* | os2*) 27113 # This hack is so that the source file can tell whether it is being 27114 # built for inclusion in a dll (and should export symbols for example). 27115 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 27116 ;; 27117 27118 hpux9* | hpux10* | hpux11*) 27119 lt_prog_compiler_wl_GCJ='-Wl,' 27120 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 27121 # not for PA HP-UX. 27122 case $host_cpu in 27123 hppa*64*|ia64*) 27124 # +Z the default 27125 ;; 27126 *) 27127 lt_prog_compiler_pic_GCJ='+Z' 27128 ;; 27129 esac 27130 # Is there a better lt_prog_compiler_static that works with the bundled CC? 27131 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' 27132 ;; 27133 27134 irix5* | irix6* | nonstopux*) 27135 lt_prog_compiler_wl_GCJ='-Wl,' 27136 # PIC (with -KPIC) is the default. 27137 lt_prog_compiler_static_GCJ='-non_shared' 27138 ;; 27139 27140 newsos6) 27141 lt_prog_compiler_pic_GCJ='-KPIC' 27142 lt_prog_compiler_static_GCJ='-Bstatic' 27143 ;; 27144 27145 linux*) 27146 case $cc_basename in 27147 icc* | ecc*) 27148 lt_prog_compiler_wl_GCJ='-Wl,' 27149 lt_prog_compiler_pic_GCJ='-KPIC' 27150 lt_prog_compiler_static_GCJ='-static' 27151 ;; 27152 pgcc* | pgf77* | pgf90* | pgf95*) 27153 # Portland Group compilers (*not* the Pentium gcc compiler, 27154 # which looks to be a dead project) 27155 lt_prog_compiler_wl_GCJ='-Wl,' 27156 lt_prog_compiler_pic_GCJ='-fpic' 27157 lt_prog_compiler_static_GCJ='-Bstatic' 27158 ;; 27159 ccc*) 27160 lt_prog_compiler_wl_GCJ='-Wl,' 27161 # All Alpha code is PIC. 27162 lt_prog_compiler_static_GCJ='-non_shared' 27163 ;; 27164 esac 27165 ;; 27166 27167 osf3* | osf4* | osf5*) 27168 lt_prog_compiler_wl_GCJ='-Wl,' 27169 # All OSF/1 code is PIC. 27170 lt_prog_compiler_static_GCJ='-non_shared' 27171 ;; 27172 27173 sco3.2v5*) 27174 lt_prog_compiler_pic_GCJ='-Kpic' 27175 lt_prog_compiler_static_GCJ='-dn' 27176 ;; 27177 27178 solaris*) 27179 lt_prog_compiler_pic_GCJ='-KPIC' 27180 lt_prog_compiler_static_GCJ='-Bstatic' 27181 case $cc_basename in 27182 f77* | f90* | f95*) 27183 lt_prog_compiler_wl_GCJ='-Qoption ld ';; 27184 *) 27185 lt_prog_compiler_wl_GCJ='-Wl,';; 27186 esac 27187 ;; 27188 27189 sunos4*) 27190 lt_prog_compiler_wl_GCJ='-Qoption ld ' 27191 lt_prog_compiler_pic_GCJ='-PIC' 27192 lt_prog_compiler_static_GCJ='-Bstatic' 27193 ;; 27194 27195 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 27196 lt_prog_compiler_wl_GCJ='-Wl,' 27197 lt_prog_compiler_pic_GCJ='-KPIC' 27198 lt_prog_compiler_static_GCJ='-Bstatic' 27199 ;; 27200 27201 sysv4*MP*) 27202 if test -d /usr/nec ;then 27203 lt_prog_compiler_pic_GCJ='-Kconform_pic' 27204 lt_prog_compiler_static_GCJ='-Bstatic' 27205 fi 27206 ;; 27207 27208 unicos*) 27209 lt_prog_compiler_wl_GCJ='-Wl,' 27210 lt_prog_compiler_can_build_shared_GCJ=no 27211 ;; 27212 27213 uts4*) 27214 lt_prog_compiler_pic_GCJ='-pic' 27215 lt_prog_compiler_static_GCJ='-Bstatic' 27216 ;; 27217 27218 *) 27219 lt_prog_compiler_can_build_shared_GCJ=no 27220 ;; 27221 esac 27222 fi 27223 27224echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 27225echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6 27226 27227# 27228# Check to make sure the PIC flag actually works. 27229# 27230if test -n "$lt_prog_compiler_pic_GCJ"; then 27231 27232echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 27233echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6 27234if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then 27235 echo $ECHO_N "(cached) $ECHO_C" >&6 27236else 27237 lt_prog_compiler_pic_works_GCJ=no 27238 ac_outfile=conftest.$ac_objext 27239 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 27240 lt_compiler_flag="$lt_prog_compiler_pic_GCJ" 27241 # Insert the option either (1) after the last *FLAGS variable, or 27242 # (2) before a word containing "conftest.", or (3) at the end. 27243 # Note that $ac_compile itself does not contain backslashes and begins 27244 # with a dollar sign (not a hyphen), so the echo should work correctly. 27245 # The option is referenced via a variable to avoid confusing sed. 27246 lt_compile=`echo "$ac_compile" | $SED \ 27247 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 27248 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 27249 -e 's:$: $lt_compiler_flag:'` 27250 (eval echo "\"\$as_me:27250: $lt_compile\"" >&5) 27251 (eval "$lt_compile" 2>conftest.err) 27252 ac_status=$? 27253 cat conftest.err >&5 27254 echo "$as_me:27254: \$? = $ac_status" >&5 27255 if (exit $ac_status) && test -s "$ac_outfile"; then 27256 # The compiler can only warn and ignore the option if not recognized 27257 # So say no if there are warnings other than the usual output. 27258 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp 27259 $SED '/^$/d' conftest.err >conftest.er2 27260 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then 27261 lt_prog_compiler_pic_works_GCJ=yes 27262 fi 27263 fi 27264 $rm conftest* 27265 27266fi 27267echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 27268echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6 27269 27270if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then 27271 case $lt_prog_compiler_pic_GCJ in 27272 "" | " "*) ;; 27273 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; 27274 esac 27275else 27276 lt_prog_compiler_pic_GCJ= 27277 lt_prog_compiler_can_build_shared_GCJ=no 27278fi 27279 27280fi 27281case $host_os in 27282 # For platforms which do not support PIC, -DPIC is meaningless: 27283 *djgpp*) 27284 lt_prog_compiler_pic_GCJ= 27285 ;; 27286 *) 27287 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" 27288 ;; 27289esac 27290 27291echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 27292echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 27293if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then 27294 echo $ECHO_N "(cached) $ECHO_C" >&6 27295else 27296 lt_cv_prog_compiler_c_o_GCJ=no 27297 $rm -r conftest 2>/dev/null 27298 mkdir conftest 27299 cd conftest 27300 mkdir out 27301 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 27302 27303 lt_compiler_flag="-o out/conftest2.$ac_objext" 27304 # Insert the option either (1) after the last *FLAGS variable, or 27305 # (2) before a word containing "conftest.", or (3) at the end. 27306 # Note that $ac_compile itself does not contain backslashes and begins 27307 # with a dollar sign (not a hyphen), so the echo should work correctly. 27308 lt_compile=`echo "$ac_compile" | $SED \ 27309 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 27310 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 27311 -e 's:$: $lt_compiler_flag:'` 27312 (eval echo "\"\$as_me:27312: $lt_compile\"" >&5) 27313 (eval "$lt_compile" 2>out/conftest.err) 27314 ac_status=$? 27315 cat out/conftest.err >&5 27316 echo "$as_me:27316: \$? = $ac_status" >&5 27317 if (exit $ac_status) && test -s out/conftest2.$ac_objext 27318 then 27319 # The compiler can only warn and ignore the option if not recognized 27320 # So say no if there are warnings 27321 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp 27322 $SED '/^$/d' out/conftest.err >out/conftest.er2 27323 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then 27324 lt_cv_prog_compiler_c_o_GCJ=yes 27325 fi 27326 fi 27327 chmod u+w . 2>&5 27328 $rm conftest* 27329 # SGI C++ compiler will create directory out/ii_files/ for 27330 # template instantiation 27331 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 27332 $rm out/* && rmdir out 27333 cd .. 27334 rmdir conftest 27335 $rm conftest* 27336 27337fi 27338echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 27339echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6 27340 27341 27342hard_links="nottested" 27343if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then 27344 # do not overwrite the value of need_locks provided by the user 27345 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 27346echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 27347 hard_links=yes 27348 $rm conftest* 27349 ln conftest.a conftest.b 2>/dev/null && hard_links=no 27350 touch conftest.a 27351 ln conftest.a conftest.b 2>&5 || hard_links=no 27352 ln conftest.a conftest.b 2>/dev/null && hard_links=no 27353 echo "$as_me:$LINENO: result: $hard_links" >&5 27354echo "${ECHO_T}$hard_links" >&6 27355 if test "$hard_links" = no; then 27356 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 27357echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 27358 need_locks=warn 27359 fi 27360else 27361 need_locks=no 27362fi 27363 27364echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 27365echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 27366 27367 runpath_var= 27368 allow_undefined_flag_GCJ= 27369 enable_shared_with_static_runtimes_GCJ=no 27370 archive_cmds_GCJ= 27371 archive_expsym_cmds_GCJ= 27372 old_archive_From_new_cmds_GCJ= 27373 old_archive_from_expsyms_cmds_GCJ= 27374 export_dynamic_flag_spec_GCJ= 27375 whole_archive_flag_spec_GCJ= 27376 thread_safe_flag_spec_GCJ= 27377 hardcode_libdir_flag_spec_GCJ= 27378 hardcode_libdir_flag_spec_ld_GCJ= 27379 hardcode_libdir_separator_GCJ= 27380 hardcode_direct_GCJ=no 27381 hardcode_minus_L_GCJ=no 27382 hardcode_shlibpath_var_GCJ=unsupported 27383 link_all_deplibs_GCJ=unknown 27384 hardcode_automatic_GCJ=no 27385 module_cmds_GCJ= 27386 module_expsym_cmds_GCJ= 27387 always_export_symbols_GCJ=no 27388 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 27389 # include_expsyms should be a list of space-separated symbols to be *always* 27390 # included in the symbol list 27391 include_expsyms_GCJ= 27392 # exclude_expsyms can be an extended regexp of symbols to exclude 27393 # it will be wrapped by ` (' and `)$', so one must not match beginning or 27394 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 27395 # as well as any symbol that contains `d'. 27396 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" 27397 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 27398 # platforms (ab)use it in PIC code, but their linkers get confused if 27399 # the symbol is explicitly referenced. Since portable code cannot 27400 # rely on this symbol name, it's probably fine to never include it in 27401 # preloaded symbol tables. 27402 extract_expsyms_cmds= 27403 # Just being paranoid about ensuring that cc_basename is set. 27404 for cc_temp in $compiler""; do 27405 case $cc_temp in 27406 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 27407 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 27408 \-*) ;; 27409 *) break;; 27410 esac 27411done 27412cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 27413 27414 case $host_os in 27415 cygwin* | mingw* | pw32*) 27416 # FIXME: the MSVC++ port hasn't been tested in a loooong time 27417 # When not using gcc, we currently assume that we are using 27418 # Microsoft Visual C++. 27419 if test "$GCC" != yes; then 27420 with_gnu_ld=no 27421 fi 27422 ;; 27423 openbsd*) 27424 with_gnu_ld=no 27425 ;; 27426 esac 27427 27428 ld_shlibs_GCJ=yes 27429 if test "$with_gnu_ld" = yes; then 27430 # If archive_cmds runs LD, not CC, wlarc should be empty 27431 wlarc='${wl}' 27432 27433 # Set some defaults for GNU ld with shared library support. These 27434 # are reset later if shared libraries are not supported. Putting them 27435 # here allows them to be overridden if necessary. 27436 runpath_var=LD_RUN_PATH 27437 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' 27438 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' 27439 # ancient GNU ld didn't support --whole-archive et. al. 27440 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 27441 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 27442 else 27443 whole_archive_flag_spec_GCJ= 27444 fi 27445 supports_anon_versioning=no 27446 case `$LD -v 2>/dev/null` in 27447 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 27448 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 27449 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 27450 *\ 2.11.*) ;; # other 2.11 versions 27451 *) supports_anon_versioning=yes ;; 27452 esac 27453 27454 # See if GNU ld supports shared libraries. 27455 case $host_os in 27456 aix3* | aix4* | aix5*) 27457 # On AIX/PPC, the GNU linker is very broken 27458 if test "$host_cpu" != ia64; then 27459 ld_shlibs_GCJ=no 27460 cat <<EOF 1>&2 27461 27462*** Warning: the GNU linker, at least up to release 2.9.1, is reported 27463*** to be unable to reliably create shared libraries on AIX. 27464*** Therefore, libtool is disabling shared libraries support. If you 27465*** really care for shared libraries, you may want to modify your PATH 27466*** so that a non-GNU linker is found, and then restart. 27467 27468EOF 27469 fi 27470 ;; 27471 27472 amigaos*) 27473 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)' 27474 hardcode_libdir_flag_spec_GCJ='-L$libdir' 27475 hardcode_minus_L_GCJ=yes 27476 27477 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 27478 # that the semantics of dynamic libraries on AmigaOS, at least up 27479 # to version 4, is to share data among multiple programs linked 27480 # with the same dynamic library. Since this doesn't match the 27481 # behavior of shared libraries on other platforms, we can't use 27482 # them. 27483 ld_shlibs_GCJ=no 27484 ;; 27485 27486 beos*) 27487 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 27488 allow_undefined_flag_GCJ=unsupported 27489 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 27490 # support --undefined. This deserves some investigation. FIXME 27491 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 27492 else 27493 ld_shlibs_GCJ=no 27494 fi 27495 ;; 27496 27497 cygwin* | mingw* | pw32*) 27498 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, 27499 # as there is no search path for DLLs. 27500 hardcode_libdir_flag_spec_GCJ='-L$libdir' 27501 allow_undefined_flag_GCJ=unsupported 27502 always_export_symbols_GCJ=no 27503 enable_shared_with_static_runtimes_GCJ=yes 27504 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 27505 27506 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 27507 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 27508 # If the export-symbols file already is a .def file (1st line 27509 # is EXPORTS), use it as is; otherwise, prepend... 27510 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 27511 cp $export_symbols $output_objdir/$soname.def; 27512 else 27513 echo EXPORTS > $output_objdir/$soname.def; 27514 cat $export_symbols >> $output_objdir/$soname.def; 27515 fi~ 27516 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 27517 else 27518 ld_shlibs_GCJ=no 27519 fi 27520 ;; 27521 27522 linux*) 27523 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 27524 tmp_addflag= 27525 case $cc_basename,$host_cpu in 27526 pgcc*) # Portland Group C compiler 27527 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' 27528 tmp_addflag=' $pic_flag' 27529 ;; 27530 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 27531 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' 27532 tmp_addflag=' $pic_flag -Mnomain' ;; 27533 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 27534 tmp_addflag=' -i_dynamic' ;; 27535 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 27536 tmp_addflag=' -i_dynamic -nofor_main' ;; 27537 ifc* | ifort*) # Intel Fortran compiler 27538 tmp_addflag=' -nofor_main' ;; 27539 esac 27540 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 27541 27542 if test $supports_anon_versioning = yes; then 27543 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ 27544 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 27545 $echo "local: *; };" >> $output_objdir/$libname.ver~ 27546 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 27547 fi 27548 else 27549 ld_shlibs_GCJ=no 27550 fi 27551 ;; 27552 27553 netbsd*) 27554 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 27555 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 27556 wlarc= 27557 else 27558 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 27559 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 27560 fi 27561 ;; 27562 27563 solaris* | sysv5*) 27564 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 27565 ld_shlibs_GCJ=no 27566 cat <<EOF 1>&2 27567 27568*** Warning: The releases 2.8.* of the GNU linker cannot reliably 27569*** create shared libraries on Solaris systems. Therefore, libtool 27570*** is disabling shared libraries support. We urge you to upgrade GNU 27571*** binutils to release 2.9.1 or newer. Another option is to modify 27572*** your PATH or compiler configuration so that the native linker is 27573*** used, and then restart. 27574 27575EOF 27576 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 27577 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 27578 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 27579 else 27580 ld_shlibs_GCJ=no 27581 fi 27582 ;; 27583 27584 sunos4*) 27585 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 27586 wlarc= 27587 hardcode_direct_GCJ=yes 27588 hardcode_shlibpath_var_GCJ=no 27589 ;; 27590 27591 *) 27592 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 27593 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 27594 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 27595 else 27596 ld_shlibs_GCJ=no 27597 fi 27598 ;; 27599 esac 27600 27601 if test "$ld_shlibs_GCJ" = no; then 27602 runpath_var= 27603 hardcode_libdir_flag_spec_GCJ= 27604 export_dynamic_flag_spec_GCJ= 27605 whole_archive_flag_spec_GCJ= 27606 fi 27607 else 27608 # PORTME fill in a description of your system's linker (not GNU ld) 27609 case $host_os in 27610 aix3*) 27611 allow_undefined_flag_GCJ=unsupported 27612 always_export_symbols_GCJ=yes 27613 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' 27614 # Note: this linker hardcodes the directories in LIBPATH if there 27615 # are no directories specified by -L. 27616 hardcode_minus_L_GCJ=yes 27617 if test "$GCC" = yes && test -z "$link_static_flag"; then 27618 # Neither direct hardcoding nor static linking is supported with a 27619 # broken collect2. 27620 hardcode_direct_GCJ=unsupported 27621 fi 27622 ;; 27623 27624 aix4* | aix5*) 27625 if test "$host_cpu" = ia64; then 27626 # On IA64, the linker does run time linking by default, so we don't 27627 # have to do anything special. 27628 aix_use_runtimelinking=no 27629 exp_sym_flag='-Bexport' 27630 no_entry_flag="" 27631 else 27632 # If we're using GNU nm, then we don't want the "-C" option. 27633 # -C means demangle to AIX nm, but means don't demangle with GNU nm 27634 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 27635 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' 27636 else 27637 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' 27638 fi 27639 aix_use_runtimelinking=no 27640 27641 # Test if we are trying to use run time linking or normal 27642 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 27643 # need to do runtime linking. 27644 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 27645 for ld_flag in $LDFLAGS; do 27646 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 27647 aix_use_runtimelinking=yes 27648 break 27649 fi 27650 done 27651 esac 27652 27653 exp_sym_flag='-bexport' 27654 no_entry_flag='-bnoentry' 27655 fi 27656 27657 # When large executables or shared objects are built, AIX ld can 27658 # have problems creating the table of contents. If linking a library 27659 # or program results in "error TOC overflow" add -mminimal-toc to 27660 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 27661 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 27662 27663 archive_cmds_GCJ='' 27664 hardcode_direct_GCJ=yes 27665 hardcode_libdir_separator_GCJ=':' 27666 link_all_deplibs_GCJ=yes 27667 27668 if test "$GCC" = yes; then 27669 case $host_os in aix4.[012]|aix4.[012].*) 27670 # We only want to do this on AIX 4.2 and lower, the check 27671 # below for broken collect2 doesn't work under 4.3+ 27672 collect2name=`${CC} -print-prog-name=collect2` 27673 if test -f "$collect2name" && \ 27674 strings "$collect2name" | grep resolve_lib_name >/dev/null 27675 then 27676 # We have reworked collect2 27677 hardcode_direct_GCJ=yes 27678 else 27679 # We have old collect2 27680 hardcode_direct_GCJ=unsupported 27681 # It fails to find uninstalled libraries when the uninstalled 27682 # path is not listed in the libpath. Setting hardcode_minus_L 27683 # to unsupported forces relinking 27684 hardcode_minus_L_GCJ=yes 27685 hardcode_libdir_flag_spec_GCJ='-L$libdir' 27686 hardcode_libdir_separator_GCJ= 27687 fi 27688 esac 27689 shared_flag='-shared' 27690 if test "$aix_use_runtimelinking" = yes; then 27691 shared_flag="$shared_flag "'${wl}-G' 27692 fi 27693 else 27694 # not using gcc 27695 if test "$host_cpu" = ia64; then 27696 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 27697 # chokes on -Wl,-G. The following line is correct: 27698 shared_flag='-G' 27699 else 27700 if test "$aix_use_runtimelinking" = yes; then 27701 shared_flag='${wl}-G' 27702 else 27703 shared_flag='${wl}-bM:SRE' 27704 fi 27705 fi 27706 fi 27707 27708 # It seems that -bexpall does not export symbols beginning with 27709 # underscore (_), so it is better to generate a list of symbols to export. 27710 always_export_symbols_GCJ=yes 27711 if test "$aix_use_runtimelinking" = yes; then 27712 # Warning - without using the other runtime loading flags (-brtl), 27713 # -berok will link without error, but may produce a broken library. 27714 allow_undefined_flag_GCJ='-berok' 27715 # Determine the default libpath from the value encoded in an empty executable. 27716 cat >conftest.$ac_ext <<_ACEOF 27717/* confdefs.h. */ 27718_ACEOF 27719cat confdefs.h >>conftest.$ac_ext 27720cat >>conftest.$ac_ext <<_ACEOF 27721/* end confdefs.h. */ 27722 27723int 27724main () 27725{ 27726 27727 ; 27728 return 0; 27729} 27730_ACEOF 27731rm -f conftest.$ac_objext conftest$ac_exeext 27732if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 27733 (eval $ac_link) 2>conftest.er1 27734 ac_status=$? 27735 grep -v '^ *+' conftest.er1 >conftest.err 27736 rm -f conftest.er1 27737 cat conftest.err >&5 27738 echo "$as_me:$LINENO: \$? = $ac_status" >&5 27739 (exit $ac_status); } && 27740 { ac_try='test -z "$ac_c_werror_flag" 27741 || test ! -s conftest.err' 27742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 27743 (eval $ac_try) 2>&5 27744 ac_status=$? 27745 echo "$as_me:$LINENO: \$? = $ac_status" >&5 27746 (exit $ac_status); }; } && 27747 { ac_try='test -s conftest$ac_exeext' 27748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 27749 (eval $ac_try) 2>&5 27750 ac_status=$? 27751 echo "$as_me:$LINENO: \$? = $ac_status" >&5 27752 (exit $ac_status); }; }; then 27753 27754aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 27755}'` 27756# Check for a 64-bit object if we didn't find anything. 27757if 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; } 27758}'`; fi 27759else 27760 echo "$as_me: failed program was:" >&5 27761sed 's/^/| /' conftest.$ac_ext >&5 27762 27763fi 27764rm -f conftest.err conftest.$ac_objext \ 27765 conftest$ac_exeext conftest.$ac_ext 27766if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 27767 27768 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 27769 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" 27770 else 27771 if test "$host_cpu" = ia64; then 27772 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' 27773 allow_undefined_flag_GCJ="-z nodefs" 27774 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" 27775 else 27776 # Determine the default libpath from the value encoded in an empty executable. 27777 cat >conftest.$ac_ext <<_ACEOF 27778/* confdefs.h. */ 27779_ACEOF 27780cat confdefs.h >>conftest.$ac_ext 27781cat >>conftest.$ac_ext <<_ACEOF 27782/* end confdefs.h. */ 27783 27784int 27785main () 27786{ 27787 27788 ; 27789 return 0; 27790} 27791_ACEOF 27792rm -f conftest.$ac_objext conftest$ac_exeext 27793if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 27794 (eval $ac_link) 2>conftest.er1 27795 ac_status=$? 27796 grep -v '^ *+' conftest.er1 >conftest.err 27797 rm -f conftest.er1 27798 cat conftest.err >&5 27799 echo "$as_me:$LINENO: \$? = $ac_status" >&5 27800 (exit $ac_status); } && 27801 { ac_try='test -z "$ac_c_werror_flag" 27802 || test ! -s conftest.err' 27803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 27804 (eval $ac_try) 2>&5 27805 ac_status=$? 27806 echo "$as_me:$LINENO: \$? = $ac_status" >&5 27807 (exit $ac_status); }; } && 27808 { ac_try='test -s conftest$ac_exeext' 27809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 27810 (eval $ac_try) 2>&5 27811 ac_status=$? 27812 echo "$as_me:$LINENO: \$? = $ac_status" >&5 27813 (exit $ac_status); }; }; then 27814 27815aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 27816}'` 27817# Check for a 64-bit object if we didn't find anything. 27818if 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; } 27819}'`; fi 27820else 27821 echo "$as_me: failed program was:" >&5 27822sed 's/^/| /' conftest.$ac_ext >&5 27823 27824fi 27825rm -f conftest.err conftest.$ac_objext \ 27826 conftest$ac_exeext conftest.$ac_ext 27827if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 27828 27829 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 27830 # Warning - without using the other run time loading flags, 27831 # -berok will link without error, but may produce a broken library. 27832 no_undefined_flag_GCJ=' ${wl}-bernotok' 27833 allow_undefined_flag_GCJ=' ${wl}-berok' 27834 # -bexpall does not export symbols beginning with underscore (_) 27835 always_export_symbols_GCJ=yes 27836 # Exported symbols can be pulled into shared objects from archives 27837 whole_archive_flag_spec_GCJ=' ' 27838 archive_cmds_need_lc_GCJ=yes 27839 # This is similar to how AIX traditionally builds its shared libraries. 27840 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' 27841 fi 27842 fi 27843 ;; 27844 27845 amigaos*) 27846 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)' 27847 hardcode_libdir_flag_spec_GCJ='-L$libdir' 27848 hardcode_minus_L_GCJ=yes 27849 # see comment about different semantics on the GNU ld section 27850 ld_shlibs_GCJ=no 27851 ;; 27852 27853 bsdi[45]*) 27854 export_dynamic_flag_spec_GCJ=-rdynamic 27855 ;; 27856 27857 cygwin* | mingw* | pw32*) 27858 # When not using gcc, we currently assume that we are using 27859 # Microsoft Visual C++. 27860 # hardcode_libdir_flag_spec is actually meaningless, as there is 27861 # no search path for DLLs. 27862 hardcode_libdir_flag_spec_GCJ=' ' 27863 allow_undefined_flag_GCJ=unsupported 27864 # Tell ltmain to make .lib files, not .a files. 27865 libext=lib 27866 # Tell ltmain to make .dll files, not .so files. 27867 shrext_cmds=".dll" 27868 # FIXME: Setting linknames here is a bad hack. 27869 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 27870 # The linker will automatically build a .lib file if we build a DLL. 27871 old_archive_From_new_cmds_GCJ='true' 27872 # FIXME: Should let the user specify the lib program. 27873 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' 27874 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' 27875 enable_shared_with_static_runtimes_GCJ=yes 27876 ;; 27877 27878 darwin* | rhapsody*) 27879 case $host_os in 27880 rhapsody* | darwin1.[012]) 27881 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' 27882 ;; 27883 *) # Darwin 1.3 on 27884 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 27885 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 27886 else 27887 case ${MACOSX_DEPLOYMENT_TARGET} in 27888 10.[012]) 27889 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 27890 ;; 27891 10.*) 27892 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' 27893 ;; 27894 esac 27895 fi 27896 ;; 27897 esac 27898 archive_cmds_need_lc_GCJ=no 27899 hardcode_direct_GCJ=no 27900 hardcode_automatic_GCJ=yes 27901 hardcode_shlibpath_var_GCJ=unsupported 27902 whole_archive_flag_spec_GCJ='' 27903 link_all_deplibs_GCJ=yes 27904 if test "$GCC" = yes ; then 27905 output_verbose_link_cmd='echo' 27906 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 27907 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 27908 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 27909 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}' 27910 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}' 27911 else 27912 case $cc_basename in 27913 xlc*) 27914 output_verbose_link_cmd='echo' 27915 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 27916 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 27917 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 27918 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}' 27919 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}' 27920 ;; 27921 *) 27922 ld_shlibs_GCJ=no 27923 ;; 27924 esac 27925 fi 27926 ;; 27927 27928 dgux*) 27929 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 27930 hardcode_libdir_flag_spec_GCJ='-L$libdir' 27931 hardcode_shlibpath_var_GCJ=no 27932 ;; 27933 27934 freebsd1*) 27935 ld_shlibs_GCJ=no 27936 ;; 27937 27938 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 27939 # support. Future versions do this automatically, but an explicit c++rt0.o 27940 # does not break anything, and helps significantly (at the cost of a little 27941 # extra space). 27942 freebsd2.2*) 27943 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 27944 hardcode_libdir_flag_spec_GCJ='-R$libdir' 27945 hardcode_direct_GCJ=yes 27946 hardcode_shlibpath_var_GCJ=no 27947 ;; 27948 27949 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 27950 freebsd2*) 27951 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 27952 hardcode_direct_GCJ=yes 27953 hardcode_minus_L_GCJ=yes 27954 hardcode_shlibpath_var_GCJ=no 27955 ;; 27956 27957 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 27958 freebsd* | kfreebsd*-gnu | dragonfly*) 27959 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 27960 hardcode_libdir_flag_spec_GCJ='-R$libdir' 27961 hardcode_direct_GCJ=yes 27962 hardcode_shlibpath_var_GCJ=no 27963 ;; 27964 27965 hpux9*) 27966 if test "$GCC" = yes; then 27967 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' 27968 else 27969 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' 27970 fi 27971 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 27972 hardcode_libdir_separator_GCJ=: 27973 hardcode_direct_GCJ=yes 27974 27975 # hardcode_minus_L: Not really in the search PATH, 27976 # but as the default location of the library. 27977 hardcode_minus_L_GCJ=yes 27978 export_dynamic_flag_spec_GCJ='${wl}-E' 27979 ;; 27980 27981 hpux10* | hpux11*) 27982 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 27983 case $host_cpu in 27984 hppa*64*|ia64*) 27985 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 27986 ;; 27987 *) 27988 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 27989 ;; 27990 esac 27991 else 27992 case $host_cpu in 27993 hppa*64*|ia64*) 27994 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' 27995 ;; 27996 *) 27997 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 27998 ;; 27999 esac 28000 fi 28001 if test "$with_gnu_ld" = no; then 28002 case $host_cpu in 28003 hppa*64*) 28004 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 28005 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' 28006 hardcode_libdir_separator_GCJ=: 28007 hardcode_direct_GCJ=no 28008 hardcode_shlibpath_var_GCJ=no 28009 ;; 28010 ia64*) 28011 hardcode_libdir_flag_spec_GCJ='-L$libdir' 28012 hardcode_direct_GCJ=no 28013 hardcode_shlibpath_var_GCJ=no 28014 28015 # hardcode_minus_L: Not really in the search PATH, 28016 # but as the default location of the library. 28017 hardcode_minus_L_GCJ=yes 28018 ;; 28019 *) 28020 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 28021 hardcode_libdir_separator_GCJ=: 28022 hardcode_direct_GCJ=yes 28023 export_dynamic_flag_spec_GCJ='${wl}-E' 28024 28025 # hardcode_minus_L: Not really in the search PATH, 28026 # but as the default location of the library. 28027 hardcode_minus_L_GCJ=yes 28028 ;; 28029 esac 28030 fi 28031 ;; 28032 28033 irix5* | irix6* | nonstopux*) 28034 if test "$GCC" = yes; then 28035 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' 28036 else 28037 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' 28038 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' 28039 fi 28040 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 28041 hardcode_libdir_separator_GCJ=: 28042 link_all_deplibs_GCJ=yes 28043 ;; 28044 28045 netbsd*) 28046 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 28047 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 28048 else 28049 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 28050 fi 28051 hardcode_libdir_flag_spec_GCJ='-R$libdir' 28052 hardcode_direct_GCJ=yes 28053 hardcode_shlibpath_var_GCJ=no 28054 ;; 28055 28056 newsos6) 28057 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 28058 hardcode_direct_GCJ=yes 28059 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 28060 hardcode_libdir_separator_GCJ=: 28061 hardcode_shlibpath_var_GCJ=no 28062 ;; 28063 28064 openbsd*) 28065 hardcode_direct_GCJ=yes 28066 hardcode_shlibpath_var_GCJ=no 28067 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 28068 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 28069 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 28070 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 28071 export_dynamic_flag_spec_GCJ='${wl}-E' 28072 else 28073 case $host_os in 28074 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 28075 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 28076 hardcode_libdir_flag_spec_GCJ='-R$libdir' 28077 ;; 28078 *) 28079 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 28080 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 28081 ;; 28082 esac 28083 fi 28084 ;; 28085 28086 os2*) 28087 hardcode_libdir_flag_spec_GCJ='-L$libdir' 28088 hardcode_minus_L_GCJ=yes 28089 allow_undefined_flag_GCJ=unsupported 28090 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' 28091 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 28092 ;; 28093 28094 osf3*) 28095 if test "$GCC" = yes; then 28096 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 28097 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' 28098 else 28099 allow_undefined_flag_GCJ=' -expect_unresolved \*' 28100 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' 28101 fi 28102 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 28103 hardcode_libdir_separator_GCJ=: 28104 ;; 28105 28106 osf4* | osf5*) # as osf3* with the addition of -msym flag 28107 if test "$GCC" = yes; then 28108 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 28109 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' 28110 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 28111 else 28112 allow_undefined_flag_GCJ=' -expect_unresolved \*' 28113 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' 28114 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~ 28115 $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' 28116 28117 # Both c and cxx compiler support -rpath directly 28118 hardcode_libdir_flag_spec_GCJ='-rpath $libdir' 28119 fi 28120 hardcode_libdir_separator_GCJ=: 28121 ;; 28122 28123 sco3.2v5*) 28124 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 28125 hardcode_shlibpath_var_GCJ=no 28126 export_dynamic_flag_spec_GCJ='${wl}-Bexport' 28127 runpath_var=LD_RUN_PATH 28128 hardcode_runpath_var=yes 28129 ;; 28130 28131 solaris*) 28132 no_undefined_flag_GCJ=' -z text' 28133 if test "$GCC" = yes; then 28134 wlarc='${wl}' 28135 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 28136 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 28137 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 28138 else 28139 wlarc='' 28140 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 28141 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 28142 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 28143 fi 28144 hardcode_libdir_flag_spec_GCJ='-R$libdir' 28145 hardcode_shlibpath_var_GCJ=no 28146 case $host_os in 28147 solaris2.[0-5] | solaris2.[0-5].*) ;; 28148 *) 28149 # The compiler driver will combine linker options so we 28150 # cannot just pass the convience library names through 28151 # without $wl, iff we do not link with $LD. 28152 # Luckily, gcc supports the same syntax we need for Sun Studio. 28153 # Supported since Solaris 2.6 (maybe 2.5.1?) 28154 case $wlarc in 28155 '') 28156 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; 28157 *) 28158 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' ;; 28159 esac ;; 28160 esac 28161 link_all_deplibs_GCJ=yes 28162 ;; 28163 28164 sunos4*) 28165 if test "x$host_vendor" = xsequent; then 28166 # Use $CC to link under sequent, because it throws in some extra .o 28167 # files that make .init and .fini sections work. 28168 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 28169 else 28170 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 28171 fi 28172 hardcode_libdir_flag_spec_GCJ='-L$libdir' 28173 hardcode_direct_GCJ=yes 28174 hardcode_minus_L_GCJ=yes 28175 hardcode_shlibpath_var_GCJ=no 28176 ;; 28177 28178 sysv4) 28179 case $host_vendor in 28180 sni) 28181 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 28182 hardcode_direct_GCJ=yes # is this really true??? 28183 ;; 28184 siemens) 28185 ## LD is ld it makes a PLAMLIB 28186 ## CC just makes a GrossModule. 28187 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' 28188 reload_cmds_GCJ='$CC -r -o $output$reload_objs' 28189 hardcode_direct_GCJ=no 28190 ;; 28191 motorola) 28192 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 28193 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie 28194 ;; 28195 esac 28196 runpath_var='LD_RUN_PATH' 28197 hardcode_shlibpath_var_GCJ=no 28198 ;; 28199 28200 sysv4.3*) 28201 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 28202 hardcode_shlibpath_var_GCJ=no 28203 export_dynamic_flag_spec_GCJ='-Bexport' 28204 ;; 28205 28206 sysv4*MP*) 28207 if test -d /usr/nec; then 28208 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 28209 hardcode_shlibpath_var_GCJ=no 28210 runpath_var=LD_RUN_PATH 28211 hardcode_runpath_var=yes 28212 ld_shlibs_GCJ=yes 28213 fi 28214 ;; 28215 28216 sysv4.2uw2*) 28217 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' 28218 hardcode_direct_GCJ=yes 28219 hardcode_minus_L_GCJ=no 28220 hardcode_shlibpath_var_GCJ=no 28221 hardcode_runpath_var=yes 28222 runpath_var=LD_RUN_PATH 28223 ;; 28224 28225 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) 28226 no_undefined_flag_GCJ='${wl}-z ${wl}text' 28227 if test "$GCC" = yes; then 28228 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 28229 else 28230 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 28231 fi 28232 runpath_var='LD_RUN_PATH' 28233 hardcode_shlibpath_var_GCJ=no 28234 ;; 28235 28236 sysv5*) 28237 no_undefined_flag_GCJ=' -z text' 28238 # $CC -shared without GNU ld will not create a library from C++ 28239 # object files and a static libstdc++, better avoid it by now 28240 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 28241 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 28242 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 28243 hardcode_libdir_flag_spec_GCJ= 28244 hardcode_shlibpath_var_GCJ=no 28245 runpath_var='LD_RUN_PATH' 28246 ;; 28247 28248 uts4*) 28249 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 28250 hardcode_libdir_flag_spec_GCJ='-L$libdir' 28251 hardcode_shlibpath_var_GCJ=no 28252 ;; 28253 28254 *) 28255 ld_shlibs_GCJ=no 28256 ;; 28257 esac 28258 fi 28259 28260echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 28261echo "${ECHO_T}$ld_shlibs_GCJ" >&6 28262test "$ld_shlibs_GCJ" = no && can_build_shared=no 28263 28264variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 28265if test "$GCC" = yes; then 28266 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 28267fi 28268 28269# 28270# Do we need to explicitly link libc? 28271# 28272case "x$archive_cmds_need_lc_GCJ" in 28273x|xyes) 28274 # Assume -lc should be added 28275 archive_cmds_need_lc_GCJ=yes 28276 28277 if test "$enable_shared" = yes && test "$GCC" = yes; then 28278 case $archive_cmds_GCJ in 28279 *'~'*) 28280 # FIXME: we may have to deal with multi-command sequences. 28281 ;; 28282 '$CC '*) 28283 # Test whether the compiler implicitly links with -lc since on some 28284 # systems, -lgcc has to come before -lc. If gcc already passes -lc 28285 # to ld, don't add -lc before -lgcc. 28286 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 28287echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 28288 $rm conftest* 28289 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 28290 28291 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 28292 (eval $ac_compile) 2>&5 28293 ac_status=$? 28294 echo "$as_me:$LINENO: \$? = $ac_status" >&5 28295 (exit $ac_status); } 2>conftest.err; then 28296 soname=conftest 28297 lib=conftest 28298 libobjs=conftest.$ac_objext 28299 deplibs= 28300 wl=$lt_prog_compiler_wl_GCJ 28301 compiler_flags=-v 28302 linker_flags=-v 28303 verstring= 28304 output_objdir=. 28305 libname=conftest 28306 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ 28307 allow_undefined_flag_GCJ= 28308 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 28309 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 28310 ac_status=$? 28311 echo "$as_me:$LINENO: \$? = $ac_status" >&5 28312 (exit $ac_status); } 28313 then 28314 archive_cmds_need_lc_GCJ=no 28315 else 28316 archive_cmds_need_lc_GCJ=yes 28317 fi 28318 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag 28319 else 28320 cat conftest.err 1>&5 28321 fi 28322 $rm conftest* 28323 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 28324echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6 28325 ;; 28326 esac 28327 fi 28328 ;; 28329esac 28330 28331echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 28332echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 28333library_names_spec= 28334libname_spec='lib$name' 28335soname_spec= 28336shrext_cmds=".so" 28337postinstall_cmds= 28338postuninstall_cmds= 28339finish_cmds= 28340finish_eval= 28341shlibpath_var= 28342shlibpath_overrides_runpath=unknown 28343version_type=none 28344dynamic_linker="$host_os ld.so" 28345sys_lib_dlsearch_path_spec="/lib /usr/lib" 28346if test "$GCC" = yes; then 28347 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 28348 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 28349 # if the path contains ";" then we assume it to be the separator 28350 # otherwise default to the standard path separator (i.e. ":") - it is 28351 # assumed that no part of a normal pathname contains ";" but that should 28352 # okay in the real world where ";" in dirpaths is itself problematic. 28353 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 28354 else 28355 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 28356 fi 28357else 28358 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 28359fi 28360need_lib_prefix=unknown 28361hardcode_into_libs=no 28362 28363# when you set need_version to no, make sure it does not cause -set_version 28364# flags to be left without arguments 28365need_version=unknown 28366 28367case $host_os in 28368aix3*) 28369 version_type=linux 28370 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 28371 shlibpath_var=LIBPATH 28372 28373 # AIX 3 has no versioning support, so we append a major version to the name. 28374 soname_spec='${libname}${release}${shared_ext}$major' 28375 ;; 28376 28377aix4* | aix5*) 28378 version_type=linux 28379 need_lib_prefix=no 28380 need_version=no 28381 hardcode_into_libs=yes 28382 if test "$host_cpu" = ia64; then 28383 # AIX 5 supports IA64 28384 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 28385 shlibpath_var=LD_LIBRARY_PATH 28386 else 28387 # With GCC up to 2.95.x, collect2 would create an import file 28388 # for dependence libraries. The import file would start with 28389 # the line `#! .'. This would cause the generated library to 28390 # depend on `.', always an invalid library. This was fixed in 28391 # development snapshots of GCC prior to 3.0. 28392 case $host_os in 28393 aix4 | aix4.[01] | aix4.[01].*) 28394 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 28395 echo ' yes ' 28396 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 28397 : 28398 else 28399 can_build_shared=no 28400 fi 28401 ;; 28402 esac 28403 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 28404 # soname into executable. Probably we can add versioning support to 28405 # collect2, so additional links can be useful in future. 28406 if test "$aix_use_runtimelinking" = yes; then 28407 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 28408 # instead of lib<name>.a to let people know that these are not 28409 # typical AIX shared libraries. 28410 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 28411 else 28412 # We preserve .a as extension for shared libraries through AIX4.2 28413 # and later when we are not doing run time linking. 28414 library_names_spec='${libname}${release}.a $libname.a' 28415 soname_spec='${libname}${release}${shared_ext}$major' 28416 fi 28417 shlibpath_var=LIBPATH 28418 fi 28419 ;; 28420 28421amigaos*) 28422 library_names_spec='$libname.ixlibrary $libname.a' 28423 # Create ${libname}_ixlibrary.a entries in /sys/libs. 28424 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' 28425 ;; 28426 28427beos*) 28428 library_names_spec='${libname}${shared_ext}' 28429 dynamic_linker="$host_os ld.so" 28430 shlibpath_var=LIBRARY_PATH 28431 ;; 28432 28433bsdi[45]*) 28434 version_type=linux 28435 need_version=no 28436 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 28437 soname_spec='${libname}${release}${shared_ext}$major' 28438 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 28439 shlibpath_var=LD_LIBRARY_PATH 28440 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 28441 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 28442 # the default ld.so.conf also contains /usr/contrib/lib and 28443 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 28444 # libtool to hard-code these into programs 28445 ;; 28446 28447cygwin* | mingw* | pw32*) 28448 version_type=windows 28449 shrext_cmds=".dll" 28450 need_version=no 28451 need_lib_prefix=no 28452 28453 case $GCC,$host_os in 28454 yes,cygwin* | yes,mingw* | yes,pw32*) 28455 library_names_spec='$libname.dll.a' 28456 # DLL is installed to $(libdir)/../bin by postinstall_cmds 28457 postinstall_cmds='base_file=`basename \${file}`~ 28458 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 28459 dldir=$destdir/`dirname \$dlpath`~ 28460 test -d \$dldir || mkdir -p \$dldir~ 28461 $install_prog $dir/$dlname \$dldir/$dlname~ 28462 chmod a+x \$dldir/$dlname' 28463 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 28464 dlpath=$dir/\$dldll~ 28465 $rm \$dlpath' 28466 shlibpath_overrides_runpath=yes 28467 28468 case $host_os in 28469 cygwin*) 28470 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 28471 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 28472 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 28473 ;; 28474 mingw*) 28475 # MinGW DLLs use traditional 'lib' prefix 28476 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 28477 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 28478 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 28479 # It is most probably a Windows format PATH printed by 28480 # mingw gcc, but we are running on Cygwin. Gcc prints its search 28481 # path with ; separators, and with drive letters. We can handle the 28482 # drive letters (cygwin fileutils understands them), so leave them, 28483 # especially as we might pass files found there to a mingw objdump, 28484 # which wouldn't understand a cygwinified path. Ahh. 28485 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 28486 else 28487 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 28488 fi 28489 ;; 28490 pw32*) 28491 # pw32 DLLs use 'pw' prefix rather than 'lib' 28492 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 28493 ;; 28494 esac 28495 ;; 28496 28497 *) 28498 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 28499 ;; 28500 esac 28501 dynamic_linker='Win32 ld.exe' 28502 # FIXME: first we should search . and the directory the executable is in 28503 shlibpath_var=PATH 28504 ;; 28505 28506darwin* | rhapsody*) 28507 dynamic_linker="$host_os dyld" 28508 version_type=darwin 28509 need_lib_prefix=no 28510 need_version=no 28511 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 28512 soname_spec='${libname}${release}${major}$shared_ext' 28513 shlibpath_overrides_runpath=yes 28514 shlibpath_var=DYLD_LIBRARY_PATH 28515 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 28516 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 28517 if test "$GCC" = yes; then 28518 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"` 28519 else 28520 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 28521 fi 28522 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 28523 ;; 28524 28525dgux*) 28526 version_type=linux 28527 need_lib_prefix=no 28528 need_version=no 28529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 28530 soname_spec='${libname}${release}${shared_ext}$major' 28531 shlibpath_var=LD_LIBRARY_PATH 28532 ;; 28533 28534freebsd1*) 28535 dynamic_linker=no 28536 ;; 28537 28538kfreebsd*-gnu) 28539 version_type=linux 28540 need_lib_prefix=no 28541 need_version=no 28542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 28543 soname_spec='${libname}${release}${shared_ext}$major' 28544 shlibpath_var=LD_LIBRARY_PATH 28545 shlibpath_overrides_runpath=no 28546 hardcode_into_libs=yes 28547 dynamic_linker='GNU ld.so' 28548 ;; 28549 28550freebsd* | dragonfly*) 28551 # DragonFly does not have aout. When/if they implement a new 28552 # versioning mechanism, adjust this. 28553 if test -x /usr/bin/objformat; then 28554 objformat=`/usr/bin/objformat` 28555 else 28556 case $host_os in 28557 freebsd[123]*) objformat=aout ;; 28558 *) objformat=elf ;; 28559 esac 28560 fi 28561 version_type=freebsd-$objformat 28562 case $version_type in 28563 freebsd-elf*) 28564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 28565 need_version=no 28566 need_lib_prefix=no 28567 ;; 28568 freebsd-*) 28569 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 28570 need_version=yes 28571 ;; 28572 esac 28573 shlibpath_var=LD_LIBRARY_PATH 28574 case $host_os in 28575 freebsd2*) 28576 shlibpath_overrides_runpath=yes 28577 ;; 28578 freebsd3.[01]* | freebsdelf3.[01]*) 28579 shlibpath_overrides_runpath=yes 28580 hardcode_into_libs=yes 28581 ;; 28582 *) # from 3.2 on 28583 shlibpath_overrides_runpath=no 28584 hardcode_into_libs=yes 28585 ;; 28586 esac 28587 ;; 28588 28589gnu*) 28590 version_type=linux 28591 need_lib_prefix=no 28592 need_version=no 28593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 28594 soname_spec='${libname}${release}${shared_ext}$major' 28595 shlibpath_var=LD_LIBRARY_PATH 28596 hardcode_into_libs=yes 28597 ;; 28598 28599hpux9* | hpux10* | hpux11*) 28600 # Give a soname corresponding to the major version so that dld.sl refuses to 28601 # link against other versions. 28602 version_type=sunos 28603 need_lib_prefix=no 28604 need_version=no 28605 case $host_cpu in 28606 ia64*) 28607 shrext_cmds='.so' 28608 hardcode_into_libs=yes 28609 dynamic_linker="$host_os dld.so" 28610 shlibpath_var=LD_LIBRARY_PATH 28611 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 28612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 28613 soname_spec='${libname}${release}${shared_ext}$major' 28614 if test "X$HPUX_IA64_MODE" = X32; then 28615 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 28616 else 28617 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 28618 fi 28619 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 28620 ;; 28621 hppa*64*) 28622 shrext_cmds='.sl' 28623 hardcode_into_libs=yes 28624 dynamic_linker="$host_os dld.sl" 28625 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 28626 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 28627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 28628 soname_spec='${libname}${release}${shared_ext}$major' 28629 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 28630 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 28631 ;; 28632 *) 28633 shrext_cmds='.sl' 28634 dynamic_linker="$host_os dld.sl" 28635 shlibpath_var=SHLIB_PATH 28636 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 28637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 28638 soname_spec='${libname}${release}${shared_ext}$major' 28639 ;; 28640 esac 28641 # HP-UX runs *really* slowly unless shared libraries are mode 555. 28642 postinstall_cmds='chmod 555 $lib' 28643 ;; 28644 28645irix5* | irix6* | nonstopux*) 28646 case $host_os in 28647 nonstopux*) version_type=nonstopux ;; 28648 *) 28649 if test "$lt_cv_prog_gnu_ld" = yes; then 28650 version_type=linux 28651 else 28652 version_type=irix 28653 fi ;; 28654 esac 28655 need_lib_prefix=no 28656 need_version=no 28657 soname_spec='${libname}${release}${shared_ext}$major' 28658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 28659 case $host_os in 28660 irix5* | nonstopux*) 28661 libsuff= shlibsuff= 28662 ;; 28663 *) 28664 case $LD in # libtool.m4 will add one of these switches to LD 28665 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 28666 libsuff= shlibsuff= libmagic=32-bit;; 28667 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 28668 libsuff=32 shlibsuff=N32 libmagic=N32;; 28669 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 28670 libsuff=64 shlibsuff=64 libmagic=64-bit;; 28671 *) libsuff= shlibsuff= libmagic=never-match;; 28672 esac 28673 ;; 28674 esac 28675 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 28676 shlibpath_overrides_runpath=no 28677 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 28678 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 28679 hardcode_into_libs=yes 28680 ;; 28681 28682# No shared lib support for Linux oldld, aout, or coff. 28683linux*oldld* | linux*aout* | linux*coff*) 28684 dynamic_linker=no 28685 ;; 28686 28687# This must be Linux ELF. 28688linux*) 28689 version_type=linux 28690 need_lib_prefix=no 28691 need_version=no 28692 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 28693 soname_spec='${libname}${release}${shared_ext}$major' 28694 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 28695 shlibpath_var=LD_LIBRARY_PATH 28696 shlibpath_overrides_runpath=no 28697 # This implies no fast_install, which is unacceptable. 28698 # Some rework will be needed to allow for fast_install 28699 # before this can be enabled. 28700 hardcode_into_libs=yes 28701 28702 # Append ld.so.conf contents to the search path 28703 if test -f /etc/ld.so.conf; then 28704 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' ' '` 28705 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 28706 fi 28707 28708 # We used to test for /lib/ld.so.1 and disable shared libraries on 28709 # powerpc, because MkLinux only supported shared libraries with the 28710 # GNU dynamic linker. Since this was broken with cross compilers, 28711 # most powerpc-linux boxes support dynamic linking these days and 28712 # people can always --disable-shared, the test was removed, and we 28713 # assume the GNU/Linux dynamic linker is in use. 28714 dynamic_linker='GNU/Linux ld.so' 28715 ;; 28716 28717knetbsd*-gnu) 28718 version_type=linux 28719 need_lib_prefix=no 28720 need_version=no 28721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 28722 soname_spec='${libname}${release}${shared_ext}$major' 28723 shlibpath_var=LD_LIBRARY_PATH 28724 shlibpath_overrides_runpath=no 28725 hardcode_into_libs=yes 28726 dynamic_linker='GNU ld.so' 28727 ;; 28728 28729netbsd*) 28730 version_type=sunos 28731 need_lib_prefix=no 28732 need_version=no 28733 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 28734 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 28735 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 28736 dynamic_linker='NetBSD (a.out) ld.so' 28737 else 28738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 28739 soname_spec='${libname}${release}${shared_ext}$major' 28740 dynamic_linker='NetBSD ld.elf_so' 28741 fi 28742 shlibpath_var=LD_LIBRARY_PATH 28743 shlibpath_overrides_runpath=yes 28744 hardcode_into_libs=yes 28745 ;; 28746 28747newsos6) 28748 version_type=linux 28749 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 28750 shlibpath_var=LD_LIBRARY_PATH 28751 shlibpath_overrides_runpath=yes 28752 ;; 28753 28754nto-qnx*) 28755 version_type=linux 28756 need_lib_prefix=no 28757 need_version=no 28758 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 28759 soname_spec='${libname}${release}${shared_ext}$major' 28760 shlibpath_var=LD_LIBRARY_PATH 28761 shlibpath_overrides_runpath=yes 28762 ;; 28763 28764openbsd*) 28765 version_type=sunos 28766 need_lib_prefix=no 28767 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 28768 case $host_os in 28769 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 28770 *) need_version=no ;; 28771 esac 28772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 28773 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 28774 shlibpath_var=LD_LIBRARY_PATH 28775 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 28776 case $host_os in 28777 openbsd2.[89] | openbsd2.[89].*) 28778 shlibpath_overrides_runpath=no 28779 ;; 28780 *) 28781 shlibpath_overrides_runpath=yes 28782 ;; 28783 esac 28784 else 28785 shlibpath_overrides_runpath=yes 28786 fi 28787 ;; 28788 28789os2*) 28790 libname_spec='$name' 28791 shrext_cmds=".dll" 28792 need_lib_prefix=no 28793 library_names_spec='$libname${shared_ext} $libname.a' 28794 dynamic_linker='OS/2 ld.exe' 28795 shlibpath_var=LIBPATH 28796 ;; 28797 28798osf3* | osf4* | osf5*) 28799 version_type=osf 28800 need_lib_prefix=no 28801 need_version=no 28802 soname_spec='${libname}${release}${shared_ext}$major' 28803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 28804 shlibpath_var=LD_LIBRARY_PATH 28805 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 28806 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 28807 ;; 28808 28809sco3.2v5*) 28810 version_type=osf 28811 soname_spec='${libname}${release}${shared_ext}$major' 28812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 28813 shlibpath_var=LD_LIBRARY_PATH 28814 ;; 28815 28816solaris*) 28817 version_type=linux 28818 need_lib_prefix=no 28819 need_version=no 28820 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 28821 soname_spec='${libname}${release}${shared_ext}$major' 28822 shlibpath_var=LD_LIBRARY_PATH 28823 shlibpath_overrides_runpath=yes 28824 hardcode_into_libs=yes 28825 # ldd complains unless libraries are executable 28826 postinstall_cmds='chmod +x $lib' 28827 ;; 28828 28829sunos4*) 28830 version_type=sunos 28831 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 28832 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 28833 shlibpath_var=LD_LIBRARY_PATH 28834 shlibpath_overrides_runpath=yes 28835 if test "$with_gnu_ld" = yes; then 28836 need_lib_prefix=no 28837 fi 28838 need_version=yes 28839 ;; 28840 28841sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 28842 version_type=linux 28843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 28844 soname_spec='${libname}${release}${shared_ext}$major' 28845 shlibpath_var=LD_LIBRARY_PATH 28846 case $host_vendor in 28847 sni) 28848 shlibpath_overrides_runpath=no 28849 need_lib_prefix=no 28850 export_dynamic_flag_spec='${wl}-Blargedynsym' 28851 runpath_var=LD_RUN_PATH 28852 ;; 28853 siemens) 28854 need_lib_prefix=no 28855 ;; 28856 motorola) 28857 need_lib_prefix=no 28858 need_version=no 28859 shlibpath_overrides_runpath=no 28860 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 28861 ;; 28862 esac 28863 ;; 28864 28865sysv4*MP*) 28866 if test -d /usr/nec ;then 28867 version_type=linux 28868 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 28869 soname_spec='$libname${shared_ext}.$major' 28870 shlibpath_var=LD_LIBRARY_PATH 28871 fi 28872 ;; 28873 28874uts4*) 28875 version_type=linux 28876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 28877 soname_spec='${libname}${release}${shared_ext}$major' 28878 shlibpath_var=LD_LIBRARY_PATH 28879 ;; 28880 28881*) 28882 dynamic_linker=no 28883 ;; 28884esac 28885echo "$as_me:$LINENO: result: $dynamic_linker" >&5 28886echo "${ECHO_T}$dynamic_linker" >&6 28887test "$dynamic_linker" = no && can_build_shared=no 28888 28889echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 28890echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 28891hardcode_action_GCJ= 28892if test -n "$hardcode_libdir_flag_spec_GCJ" || \ 28893 test -n "$runpath_var_GCJ" || \ 28894 test "X$hardcode_automatic_GCJ" = "Xyes" ; then 28895 28896 # We can hardcode non-existant directories. 28897 if test "$hardcode_direct_GCJ" != no && 28898 # If the only mechanism to avoid hardcoding is shlibpath_var, we 28899 # have to relink, otherwise we might link with an installed library 28900 # when we should be linking with a yet-to-be-installed one 28901 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && 28902 test "$hardcode_minus_L_GCJ" != no; then 28903 # Linking always hardcodes the temporary library directory. 28904 hardcode_action_GCJ=relink 28905 else 28906 # We can link without hardcoding, and we can hardcode nonexisting dirs. 28907 hardcode_action_GCJ=immediate 28908 fi 28909else 28910 # We cannot hardcode anything, or else we can only hardcode existing 28911 # directories. 28912 hardcode_action_GCJ=unsupported 28913fi 28914echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 28915echo "${ECHO_T}$hardcode_action_GCJ" >&6 28916 28917if test "$hardcode_action_GCJ" = relink; then 28918 # Fast installation is not supported 28919 enable_fast_install=no 28920elif test "$shlibpath_overrides_runpath" = yes || 28921 test "$enable_shared" = no; then 28922 # Fast installation is not necessary 28923 enable_fast_install=needless 28924fi 28925 28926striplib= 28927old_striplib= 28928echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 28929echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 28930if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 28931 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 28932 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 28933 echo "$as_me:$LINENO: result: yes" >&5 28934echo "${ECHO_T}yes" >&6 28935else 28936# FIXME - insert some real tests, host_os isn't really good enough 28937 case $host_os in 28938 darwin*) 28939 if test -n "$STRIP" ; then 28940 striplib="$STRIP -x" 28941 echo "$as_me:$LINENO: result: yes" >&5 28942echo "${ECHO_T}yes" >&6 28943 else 28944 echo "$as_me:$LINENO: result: no" >&5 28945echo "${ECHO_T}no" >&6 28946fi 28947 ;; 28948 *) 28949 echo "$as_me:$LINENO: result: no" >&5 28950echo "${ECHO_T}no" >&6 28951 ;; 28952 esac 28953fi 28954 28955if test "x$enable_dlopen" != xyes; then 28956 enable_dlopen=unknown 28957 enable_dlopen_self=unknown 28958 enable_dlopen_self_static=unknown 28959else 28960 lt_cv_dlopen=no 28961 lt_cv_dlopen_libs= 28962 28963 case $host_os in 28964 beos*) 28965 lt_cv_dlopen="load_add_on" 28966 lt_cv_dlopen_libs= 28967 lt_cv_dlopen_self=yes 28968 ;; 28969 28970 mingw* | pw32*) 28971 lt_cv_dlopen="LoadLibrary" 28972 lt_cv_dlopen_libs= 28973 ;; 28974 28975 cygwin*) 28976 lt_cv_dlopen="dlopen" 28977 lt_cv_dlopen_libs= 28978 ;; 28979 28980 darwin*) 28981 # if libdl is installed we need to link against it 28982 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 28983echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 28984if test "${ac_cv_lib_dl_dlopen+set}" = set; then 28985 echo $ECHO_N "(cached) $ECHO_C" >&6 28986else 28987 ac_check_lib_save_LIBS=$LIBS 28988LIBS="-ldl $LIBS" 28989cat >conftest.$ac_ext <<_ACEOF 28990/* confdefs.h. */ 28991_ACEOF 28992cat confdefs.h >>conftest.$ac_ext 28993cat >>conftest.$ac_ext <<_ACEOF 28994/* end confdefs.h. */ 28995 28996/* Override any gcc2 internal prototype to avoid an error. */ 28997#ifdef __cplusplus 28998extern "C" 28999#endif 29000/* We use char because int might match the return type of a gcc2 29001 builtin and then its argument prototype would still apply. */ 29002char dlopen (); 29003int 29004main () 29005{ 29006dlopen (); 29007 ; 29008 return 0; 29009} 29010_ACEOF 29011rm -f conftest.$ac_objext conftest$ac_exeext 29012if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 29013 (eval $ac_link) 2>conftest.er1 29014 ac_status=$? 29015 grep -v '^ *+' conftest.er1 >conftest.err 29016 rm -f conftest.er1 29017 cat conftest.err >&5 29018 echo "$as_me:$LINENO: \$? = $ac_status" >&5 29019 (exit $ac_status); } && 29020 { ac_try='test -z "$ac_c_werror_flag" 29021 || test ! -s conftest.err' 29022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 29023 (eval $ac_try) 2>&5 29024 ac_status=$? 29025 echo "$as_me:$LINENO: \$? = $ac_status" >&5 29026 (exit $ac_status); }; } && 29027 { ac_try='test -s conftest$ac_exeext' 29028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 29029 (eval $ac_try) 2>&5 29030 ac_status=$? 29031 echo "$as_me:$LINENO: \$? = $ac_status" >&5 29032 (exit $ac_status); }; }; then 29033 ac_cv_lib_dl_dlopen=yes 29034else 29035 echo "$as_me: failed program was:" >&5 29036sed 's/^/| /' conftest.$ac_ext >&5 29037 29038ac_cv_lib_dl_dlopen=no 29039fi 29040rm -f conftest.err conftest.$ac_objext \ 29041 conftest$ac_exeext conftest.$ac_ext 29042LIBS=$ac_check_lib_save_LIBS 29043fi 29044echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 29045echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 29046if test $ac_cv_lib_dl_dlopen = yes; then 29047 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 29048else 29049 29050 lt_cv_dlopen="dyld" 29051 lt_cv_dlopen_libs= 29052 lt_cv_dlopen_self=yes 29053 29054fi 29055 29056 ;; 29057 29058 *) 29059 echo "$as_me:$LINENO: checking for shl_load" >&5 29060echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 29061if test "${ac_cv_func_shl_load+set}" = set; then 29062 echo $ECHO_N "(cached) $ECHO_C" >&6 29063else 29064 cat >conftest.$ac_ext <<_ACEOF 29065/* confdefs.h. */ 29066_ACEOF 29067cat confdefs.h >>conftest.$ac_ext 29068cat >>conftest.$ac_ext <<_ACEOF 29069/* end confdefs.h. */ 29070/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 29071 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 29072#define shl_load innocuous_shl_load 29073 29074/* System header to define __stub macros and hopefully few prototypes, 29075 which can conflict with char shl_load (); below. 29076 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 29077 <limits.h> exists even on freestanding compilers. */ 29078 29079#ifdef __STDC__ 29080# include <limits.h> 29081#else 29082# include <assert.h> 29083#endif 29084 29085#undef shl_load 29086 29087/* Override any gcc2 internal prototype to avoid an error. */ 29088#ifdef __cplusplus 29089extern "C" 29090{ 29091#endif 29092/* We use char because int might match the return type of a gcc2 29093 builtin and then its argument prototype would still apply. */ 29094char shl_load (); 29095/* The GNU C library defines this for functions which it implements 29096 to always fail with ENOSYS. Some functions are actually named 29097 something starting with __ and the normal name is an alias. */ 29098#if defined (__stub_shl_load) || defined (__stub___shl_load) 29099choke me 29100#else 29101char (*f) () = shl_load; 29102#endif 29103#ifdef __cplusplus 29104} 29105#endif 29106 29107int 29108main () 29109{ 29110return f != shl_load; 29111 ; 29112 return 0; 29113} 29114_ACEOF 29115rm -f conftest.$ac_objext conftest$ac_exeext 29116if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 29117 (eval $ac_link) 2>conftest.er1 29118 ac_status=$? 29119 grep -v '^ *+' conftest.er1 >conftest.err 29120 rm -f conftest.er1 29121 cat conftest.err >&5 29122 echo "$as_me:$LINENO: \$? = $ac_status" >&5 29123 (exit $ac_status); } && 29124 { ac_try='test -z "$ac_c_werror_flag" 29125 || test ! -s conftest.err' 29126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 29127 (eval $ac_try) 2>&5 29128 ac_status=$? 29129 echo "$as_me:$LINENO: \$? = $ac_status" >&5 29130 (exit $ac_status); }; } && 29131 { ac_try='test -s conftest$ac_exeext' 29132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 29133 (eval $ac_try) 2>&5 29134 ac_status=$? 29135 echo "$as_me:$LINENO: \$? = $ac_status" >&5 29136 (exit $ac_status); }; }; then 29137 ac_cv_func_shl_load=yes 29138else 29139 echo "$as_me: failed program was:" >&5 29140sed 's/^/| /' conftest.$ac_ext >&5 29141 29142ac_cv_func_shl_load=no 29143fi 29144rm -f conftest.err conftest.$ac_objext \ 29145 conftest$ac_exeext conftest.$ac_ext 29146fi 29147echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 29148echo "${ECHO_T}$ac_cv_func_shl_load" >&6 29149if test $ac_cv_func_shl_load = yes; then 29150 lt_cv_dlopen="shl_load" 29151else 29152 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 29153echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 29154if test "${ac_cv_lib_dld_shl_load+set}" = set; then 29155 echo $ECHO_N "(cached) $ECHO_C" >&6 29156else 29157 ac_check_lib_save_LIBS=$LIBS 29158LIBS="-ldld $LIBS" 29159cat >conftest.$ac_ext <<_ACEOF 29160/* confdefs.h. */ 29161_ACEOF 29162cat confdefs.h >>conftest.$ac_ext 29163cat >>conftest.$ac_ext <<_ACEOF 29164/* end confdefs.h. */ 29165 29166/* Override any gcc2 internal prototype to avoid an error. */ 29167#ifdef __cplusplus 29168extern "C" 29169#endif 29170/* We use char because int might match the return type of a gcc2 29171 builtin and then its argument prototype would still apply. */ 29172char shl_load (); 29173int 29174main () 29175{ 29176shl_load (); 29177 ; 29178 return 0; 29179} 29180_ACEOF 29181rm -f conftest.$ac_objext conftest$ac_exeext 29182if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 29183 (eval $ac_link) 2>conftest.er1 29184 ac_status=$? 29185 grep -v '^ *+' conftest.er1 >conftest.err 29186 rm -f conftest.er1 29187 cat conftest.err >&5 29188 echo "$as_me:$LINENO: \$? = $ac_status" >&5 29189 (exit $ac_status); } && 29190 { ac_try='test -z "$ac_c_werror_flag" 29191 || test ! -s conftest.err' 29192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 29193 (eval $ac_try) 2>&5 29194 ac_status=$? 29195 echo "$as_me:$LINENO: \$? = $ac_status" >&5 29196 (exit $ac_status); }; } && 29197 { ac_try='test -s conftest$ac_exeext' 29198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 29199 (eval $ac_try) 2>&5 29200 ac_status=$? 29201 echo "$as_me:$LINENO: \$? = $ac_status" >&5 29202 (exit $ac_status); }; }; then 29203 ac_cv_lib_dld_shl_load=yes 29204else 29205 echo "$as_me: failed program was:" >&5 29206sed 's/^/| /' conftest.$ac_ext >&5 29207 29208ac_cv_lib_dld_shl_load=no 29209fi 29210rm -f conftest.err conftest.$ac_objext \ 29211 conftest$ac_exeext conftest.$ac_ext 29212LIBS=$ac_check_lib_save_LIBS 29213fi 29214echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 29215echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 29216if test $ac_cv_lib_dld_shl_load = yes; then 29217 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 29218else 29219 echo "$as_me:$LINENO: checking for dlopen" >&5 29220echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 29221if test "${ac_cv_func_dlopen+set}" = set; then 29222 echo $ECHO_N "(cached) $ECHO_C" >&6 29223else 29224 cat >conftest.$ac_ext <<_ACEOF 29225/* confdefs.h. */ 29226_ACEOF 29227cat confdefs.h >>conftest.$ac_ext 29228cat >>conftest.$ac_ext <<_ACEOF 29229/* end confdefs.h. */ 29230/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 29231 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 29232#define dlopen innocuous_dlopen 29233 29234/* System header to define __stub macros and hopefully few prototypes, 29235 which can conflict with char dlopen (); below. 29236 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 29237 <limits.h> exists even on freestanding compilers. */ 29238 29239#ifdef __STDC__ 29240# include <limits.h> 29241#else 29242# include <assert.h> 29243#endif 29244 29245#undef dlopen 29246 29247/* Override any gcc2 internal prototype to avoid an error. */ 29248#ifdef __cplusplus 29249extern "C" 29250{ 29251#endif 29252/* We use char because int might match the return type of a gcc2 29253 builtin and then its argument prototype would still apply. */ 29254char dlopen (); 29255/* The GNU C library defines this for functions which it implements 29256 to always fail with ENOSYS. Some functions are actually named 29257 something starting with __ and the normal name is an alias. */ 29258#if defined (__stub_dlopen) || defined (__stub___dlopen) 29259choke me 29260#else 29261char (*f) () = dlopen; 29262#endif 29263#ifdef __cplusplus 29264} 29265#endif 29266 29267int 29268main () 29269{ 29270return f != dlopen; 29271 ; 29272 return 0; 29273} 29274_ACEOF 29275rm -f conftest.$ac_objext conftest$ac_exeext 29276if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 29277 (eval $ac_link) 2>conftest.er1 29278 ac_status=$? 29279 grep -v '^ *+' conftest.er1 >conftest.err 29280 rm -f conftest.er1 29281 cat conftest.err >&5 29282 echo "$as_me:$LINENO: \$? = $ac_status" >&5 29283 (exit $ac_status); } && 29284 { ac_try='test -z "$ac_c_werror_flag" 29285 || test ! -s conftest.err' 29286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 29287 (eval $ac_try) 2>&5 29288 ac_status=$? 29289 echo "$as_me:$LINENO: \$? = $ac_status" >&5 29290 (exit $ac_status); }; } && 29291 { ac_try='test -s conftest$ac_exeext' 29292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 29293 (eval $ac_try) 2>&5 29294 ac_status=$? 29295 echo "$as_me:$LINENO: \$? = $ac_status" >&5 29296 (exit $ac_status); }; }; then 29297 ac_cv_func_dlopen=yes 29298else 29299 echo "$as_me: failed program was:" >&5 29300sed 's/^/| /' conftest.$ac_ext >&5 29301 29302ac_cv_func_dlopen=no 29303fi 29304rm -f conftest.err conftest.$ac_objext \ 29305 conftest$ac_exeext conftest.$ac_ext 29306fi 29307echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 29308echo "${ECHO_T}$ac_cv_func_dlopen" >&6 29309if test $ac_cv_func_dlopen = yes; then 29310 lt_cv_dlopen="dlopen" 29311else 29312 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 29313echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 29314if test "${ac_cv_lib_dl_dlopen+set}" = set; then 29315 echo $ECHO_N "(cached) $ECHO_C" >&6 29316else 29317 ac_check_lib_save_LIBS=$LIBS 29318LIBS="-ldl $LIBS" 29319cat >conftest.$ac_ext <<_ACEOF 29320/* confdefs.h. */ 29321_ACEOF 29322cat confdefs.h >>conftest.$ac_ext 29323cat >>conftest.$ac_ext <<_ACEOF 29324/* end confdefs.h. */ 29325 29326/* Override any gcc2 internal prototype to avoid an error. */ 29327#ifdef __cplusplus 29328extern "C" 29329#endif 29330/* We use char because int might match the return type of a gcc2 29331 builtin and then its argument prototype would still apply. */ 29332char dlopen (); 29333int 29334main () 29335{ 29336dlopen (); 29337 ; 29338 return 0; 29339} 29340_ACEOF 29341rm -f conftest.$ac_objext conftest$ac_exeext 29342if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 29343 (eval $ac_link) 2>conftest.er1 29344 ac_status=$? 29345 grep -v '^ *+' conftest.er1 >conftest.err 29346 rm -f conftest.er1 29347 cat conftest.err >&5 29348 echo "$as_me:$LINENO: \$? = $ac_status" >&5 29349 (exit $ac_status); } && 29350 { ac_try='test -z "$ac_c_werror_flag" 29351 || test ! -s conftest.err' 29352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 29353 (eval $ac_try) 2>&5 29354 ac_status=$? 29355 echo "$as_me:$LINENO: \$? = $ac_status" >&5 29356 (exit $ac_status); }; } && 29357 { ac_try='test -s conftest$ac_exeext' 29358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 29359 (eval $ac_try) 2>&5 29360 ac_status=$? 29361 echo "$as_me:$LINENO: \$? = $ac_status" >&5 29362 (exit $ac_status); }; }; then 29363 ac_cv_lib_dl_dlopen=yes 29364else 29365 echo "$as_me: failed program was:" >&5 29366sed 's/^/| /' conftest.$ac_ext >&5 29367 29368ac_cv_lib_dl_dlopen=no 29369fi 29370rm -f conftest.err conftest.$ac_objext \ 29371 conftest$ac_exeext conftest.$ac_ext 29372LIBS=$ac_check_lib_save_LIBS 29373fi 29374echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 29375echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 29376if test $ac_cv_lib_dl_dlopen = yes; then 29377 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 29378else 29379 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 29380echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 29381if test "${ac_cv_lib_svld_dlopen+set}" = set; then 29382 echo $ECHO_N "(cached) $ECHO_C" >&6 29383else 29384 ac_check_lib_save_LIBS=$LIBS 29385LIBS="-lsvld $LIBS" 29386cat >conftest.$ac_ext <<_ACEOF 29387/* confdefs.h. */ 29388_ACEOF 29389cat confdefs.h >>conftest.$ac_ext 29390cat >>conftest.$ac_ext <<_ACEOF 29391/* end confdefs.h. */ 29392 29393/* Override any gcc2 internal prototype to avoid an error. */ 29394#ifdef __cplusplus 29395extern "C" 29396#endif 29397/* We use char because int might match the return type of a gcc2 29398 builtin and then its argument prototype would still apply. */ 29399char dlopen (); 29400int 29401main () 29402{ 29403dlopen (); 29404 ; 29405 return 0; 29406} 29407_ACEOF 29408rm -f conftest.$ac_objext conftest$ac_exeext 29409if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 29410 (eval $ac_link) 2>conftest.er1 29411 ac_status=$? 29412 grep -v '^ *+' conftest.er1 >conftest.err 29413 rm -f conftest.er1 29414 cat conftest.err >&5 29415 echo "$as_me:$LINENO: \$? = $ac_status" >&5 29416 (exit $ac_status); } && 29417 { ac_try='test -z "$ac_c_werror_flag" 29418 || test ! -s conftest.err' 29419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 29420 (eval $ac_try) 2>&5 29421 ac_status=$? 29422 echo "$as_me:$LINENO: \$? = $ac_status" >&5 29423 (exit $ac_status); }; } && 29424 { ac_try='test -s conftest$ac_exeext' 29425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 29426 (eval $ac_try) 2>&5 29427 ac_status=$? 29428 echo "$as_me:$LINENO: \$? = $ac_status" >&5 29429 (exit $ac_status); }; }; then 29430 ac_cv_lib_svld_dlopen=yes 29431else 29432 echo "$as_me: failed program was:" >&5 29433sed 's/^/| /' conftest.$ac_ext >&5 29434 29435ac_cv_lib_svld_dlopen=no 29436fi 29437rm -f conftest.err conftest.$ac_objext \ 29438 conftest$ac_exeext conftest.$ac_ext 29439LIBS=$ac_check_lib_save_LIBS 29440fi 29441echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 29442echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 29443if test $ac_cv_lib_svld_dlopen = yes; then 29444 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 29445else 29446 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 29447echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 29448if test "${ac_cv_lib_dld_dld_link+set}" = set; then 29449 echo $ECHO_N "(cached) $ECHO_C" >&6 29450else 29451 ac_check_lib_save_LIBS=$LIBS 29452LIBS="-ldld $LIBS" 29453cat >conftest.$ac_ext <<_ACEOF 29454/* confdefs.h. */ 29455_ACEOF 29456cat confdefs.h >>conftest.$ac_ext 29457cat >>conftest.$ac_ext <<_ACEOF 29458/* end confdefs.h. */ 29459 29460/* Override any gcc2 internal prototype to avoid an error. */ 29461#ifdef __cplusplus 29462extern "C" 29463#endif 29464/* We use char because int might match the return type of a gcc2 29465 builtin and then its argument prototype would still apply. */ 29466char dld_link (); 29467int 29468main () 29469{ 29470dld_link (); 29471 ; 29472 return 0; 29473} 29474_ACEOF 29475rm -f conftest.$ac_objext conftest$ac_exeext 29476if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 29477 (eval $ac_link) 2>conftest.er1 29478 ac_status=$? 29479 grep -v '^ *+' conftest.er1 >conftest.err 29480 rm -f conftest.er1 29481 cat conftest.err >&5 29482 echo "$as_me:$LINENO: \$? = $ac_status" >&5 29483 (exit $ac_status); } && 29484 { ac_try='test -z "$ac_c_werror_flag" 29485 || test ! -s conftest.err' 29486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 29487 (eval $ac_try) 2>&5 29488 ac_status=$? 29489 echo "$as_me:$LINENO: \$? = $ac_status" >&5 29490 (exit $ac_status); }; } && 29491 { ac_try='test -s conftest$ac_exeext' 29492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 29493 (eval $ac_try) 2>&5 29494 ac_status=$? 29495 echo "$as_me:$LINENO: \$? = $ac_status" >&5 29496 (exit $ac_status); }; }; then 29497 ac_cv_lib_dld_dld_link=yes 29498else 29499 echo "$as_me: failed program was:" >&5 29500sed 's/^/| /' conftest.$ac_ext >&5 29501 29502ac_cv_lib_dld_dld_link=no 29503fi 29504rm -f conftest.err conftest.$ac_objext \ 29505 conftest$ac_exeext conftest.$ac_ext 29506LIBS=$ac_check_lib_save_LIBS 29507fi 29508echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 29509echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 29510if test $ac_cv_lib_dld_dld_link = yes; then 29511 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 29512fi 29513 29514 29515fi 29516 29517 29518fi 29519 29520 29521fi 29522 29523 29524fi 29525 29526 29527fi 29528 29529 ;; 29530 esac 29531 29532 if test "x$lt_cv_dlopen" != xno; then 29533 enable_dlopen=yes 29534 else 29535 enable_dlopen=no 29536 fi 29537 29538 case $lt_cv_dlopen in 29539 dlopen) 29540 save_CPPFLAGS="$CPPFLAGS" 29541 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 29542 29543 save_LDFLAGS="$LDFLAGS" 29544 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 29545 29546 save_LIBS="$LIBS" 29547 LIBS="$lt_cv_dlopen_libs $LIBS" 29548 29549 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 29550echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 29551if test "${lt_cv_dlopen_self+set}" = set; then 29552 echo $ECHO_N "(cached) $ECHO_C" >&6 29553else 29554 if test "$cross_compiling" = yes; then : 29555 lt_cv_dlopen_self=cross 29556else 29557 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 29558 lt_status=$lt_dlunknown 29559 cat > conftest.$ac_ext <<EOF 29560#line 29560 "configure" 29561#include "confdefs.h" 29562 29563#if HAVE_DLFCN_H 29564#include <dlfcn.h> 29565#endif 29566 29567#include <stdio.h> 29568 29569#ifdef RTLD_GLOBAL 29570# define LT_DLGLOBAL RTLD_GLOBAL 29571#else 29572# ifdef DL_GLOBAL 29573# define LT_DLGLOBAL DL_GLOBAL 29574# else 29575# define LT_DLGLOBAL 0 29576# endif 29577#endif 29578 29579/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 29580 find out it does not work in some platform. */ 29581#ifndef LT_DLLAZY_OR_NOW 29582# ifdef RTLD_LAZY 29583# define LT_DLLAZY_OR_NOW RTLD_LAZY 29584# else 29585# ifdef DL_LAZY 29586# define LT_DLLAZY_OR_NOW DL_LAZY 29587# else 29588# ifdef RTLD_NOW 29589# define LT_DLLAZY_OR_NOW RTLD_NOW 29590# else 29591# ifdef DL_NOW 29592# define LT_DLLAZY_OR_NOW DL_NOW 29593# else 29594# define LT_DLLAZY_OR_NOW 0 29595# endif 29596# endif 29597# endif 29598# endif 29599#endif 29600 29601#ifdef __cplusplus 29602extern "C" void exit (int); 29603#endif 29604 29605void fnord() { int i=42;} 29606int main () 29607{ 29608 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 29609 int status = $lt_dlunknown; 29610 29611 if (self) 29612 { 29613 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 29614 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 29615 /* dlclose (self); */ 29616 } 29617 29618 exit (status); 29619} 29620EOF 29621 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 29622 (eval $ac_link) 2>&5 29623 ac_status=$? 29624 echo "$as_me:$LINENO: \$? = $ac_status" >&5 29625 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 29626 (./conftest; exit; ) >&5 2>/dev/null 29627 lt_status=$? 29628 case x$lt_status in 29629 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 29630 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 29631 x$lt_unknown|x*) lt_cv_dlopen_self=no ;; 29632 esac 29633 else : 29634 # compilation failed 29635 lt_cv_dlopen_self=no 29636 fi 29637fi 29638rm -fr conftest* 29639 29640 29641fi 29642echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 29643echo "${ECHO_T}$lt_cv_dlopen_self" >&6 29644 29645 if test "x$lt_cv_dlopen_self" = xyes; then 29646 LDFLAGS="$LDFLAGS $link_static_flag" 29647 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 29648echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 29649if test "${lt_cv_dlopen_self_static+set}" = set; then 29650 echo $ECHO_N "(cached) $ECHO_C" >&6 29651else 29652 if test "$cross_compiling" = yes; then : 29653 lt_cv_dlopen_self_static=cross 29654else 29655 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 29656 lt_status=$lt_dlunknown 29657 cat > conftest.$ac_ext <<EOF 29658#line 29658 "configure" 29659#include "confdefs.h" 29660 29661#if HAVE_DLFCN_H 29662#include <dlfcn.h> 29663#endif 29664 29665#include <stdio.h> 29666 29667#ifdef RTLD_GLOBAL 29668# define LT_DLGLOBAL RTLD_GLOBAL 29669#else 29670# ifdef DL_GLOBAL 29671# define LT_DLGLOBAL DL_GLOBAL 29672# else 29673# define LT_DLGLOBAL 0 29674# endif 29675#endif 29676 29677/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 29678 find out it does not work in some platform. */ 29679#ifndef LT_DLLAZY_OR_NOW 29680# ifdef RTLD_LAZY 29681# define LT_DLLAZY_OR_NOW RTLD_LAZY 29682# else 29683# ifdef DL_LAZY 29684# define LT_DLLAZY_OR_NOW DL_LAZY 29685# else 29686# ifdef RTLD_NOW 29687# define LT_DLLAZY_OR_NOW RTLD_NOW 29688# else 29689# ifdef DL_NOW 29690# define LT_DLLAZY_OR_NOW DL_NOW 29691# else 29692# define LT_DLLAZY_OR_NOW 0 29693# endif 29694# endif 29695# endif 29696# endif 29697#endif 29698 29699#ifdef __cplusplus 29700extern "C" void exit (int); 29701#endif 29702 29703void fnord() { int i=42;} 29704int main () 29705{ 29706 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 29707 int status = $lt_dlunknown; 29708 29709 if (self) 29710 { 29711 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 29712 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 29713 /* dlclose (self); */ 29714 } 29715 29716 exit (status); 29717} 29718EOF 29719 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 29720 (eval $ac_link) 2>&5 29721 ac_status=$? 29722 echo "$as_me:$LINENO: \$? = $ac_status" >&5 29723 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 29724 (./conftest; exit; ) >&5 2>/dev/null 29725 lt_status=$? 29726 case x$lt_status in 29727 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 29728 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 29729 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; 29730 esac 29731 else : 29732 # compilation failed 29733 lt_cv_dlopen_self_static=no 29734 fi 29735fi 29736rm -fr conftest* 29737 29738 29739fi 29740echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 29741echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 29742 fi 29743 29744 CPPFLAGS="$save_CPPFLAGS" 29745 LDFLAGS="$save_LDFLAGS" 29746 LIBS="$save_LIBS" 29747 ;; 29748 esac 29749 29750 case $lt_cv_dlopen_self in 29751 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 29752 *) enable_dlopen_self=unknown ;; 29753 esac 29754 29755 case $lt_cv_dlopen_self_static in 29756 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 29757 *) enable_dlopen_self_static=unknown ;; 29758 esac 29759fi 29760 29761 29762# The else clause should only fire when bootstrapping the 29763# libtool distribution, otherwise you forgot to ship ltmain.sh 29764# with your package, and you will get complaints that there are 29765# no rules to generate ltmain.sh. 29766if test -f "$ltmain"; then 29767 # See if we are running on zsh, and set the options which allow our commands through 29768 # without removal of \ escapes. 29769 if test -n "${ZSH_VERSION+set}" ; then 29770 setopt NO_GLOB_SUBST 29771 fi 29772 # Now quote all the things that may contain metacharacters while being 29773 # careful not to overquote the AC_SUBSTed values. We take copies of the 29774 # variables and quote the copies for generation of the libtool script. 29775 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ 29776 SED SHELL STRIP \ 29777 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 29778 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 29779 deplibs_check_method reload_flag reload_cmds need_locks \ 29780 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 29781 lt_cv_sys_global_symbol_to_c_name_address \ 29782 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 29783 old_postinstall_cmds old_postuninstall_cmds \ 29784 compiler_GCJ \ 29785 CC_GCJ \ 29786 LD_GCJ \ 29787 lt_prog_compiler_wl_GCJ \ 29788 lt_prog_compiler_pic_GCJ \ 29789 lt_prog_compiler_static_GCJ \ 29790 lt_prog_compiler_no_builtin_flag_GCJ \ 29791 export_dynamic_flag_spec_GCJ \ 29792 thread_safe_flag_spec_GCJ \ 29793 whole_archive_flag_spec_GCJ \ 29794 enable_shared_with_static_runtimes_GCJ \ 29795 old_archive_cmds_GCJ \ 29796 old_archive_from_new_cmds_GCJ \ 29797 predep_objects_GCJ \ 29798 postdep_objects_GCJ \ 29799 predeps_GCJ \ 29800 postdeps_GCJ \ 29801 compiler_lib_search_path_GCJ \ 29802 archive_cmds_GCJ \ 29803 archive_expsym_cmds_GCJ \ 29804 postinstall_cmds_GCJ \ 29805 postuninstall_cmds_GCJ \ 29806 old_archive_from_expsyms_cmds_GCJ \ 29807 allow_undefined_flag_GCJ \ 29808 no_undefined_flag_GCJ \ 29809 export_symbols_cmds_GCJ \ 29810 hardcode_libdir_flag_spec_GCJ \ 29811 hardcode_libdir_flag_spec_ld_GCJ \ 29812 hardcode_libdir_separator_GCJ \ 29813 hardcode_automatic_GCJ \ 29814 module_cmds_GCJ \ 29815 module_expsym_cmds_GCJ \ 29816 lt_cv_prog_compiler_c_o_GCJ \ 29817 exclude_expsyms_GCJ \ 29818 include_expsyms_GCJ; do 29819 29820 case $var in 29821 old_archive_cmds_GCJ | \ 29822 old_archive_from_new_cmds_GCJ | \ 29823 archive_cmds_GCJ | \ 29824 archive_expsym_cmds_GCJ | \ 29825 module_cmds_GCJ | \ 29826 module_expsym_cmds_GCJ | \ 29827 old_archive_from_expsyms_cmds_GCJ | \ 29828 export_symbols_cmds_GCJ | \ 29829 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 29830 postinstall_cmds | postuninstall_cmds | \ 29831 old_postinstall_cmds | old_postuninstall_cmds | \ 29832 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 29833 # Double-quote double-evaled strings. 29834 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 29835 ;; 29836 *) 29837 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 29838 ;; 29839 esac 29840 done 29841 29842 case $lt_echo in 29843 *'\$0 --fallback-echo"') 29844 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 29845 ;; 29846 esac 29847 29848cfgfile="$ofile" 29849 29850 cat <<__EOF__ >> "$cfgfile" 29851# ### BEGIN LIBTOOL TAG CONFIG: $tagname 29852 29853# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 29854 29855# Shell to use when invoking shell scripts. 29856SHELL=$lt_SHELL 29857 29858# Whether or not to build shared libraries. 29859build_libtool_libs=$enable_shared 29860 29861# Whether or not to build static libraries. 29862build_old_libs=$enable_static 29863 29864# Whether or not to add -lc for building shared libraries. 29865build_libtool_need_lc=$archive_cmds_need_lc_GCJ 29866 29867# Whether or not to disallow shared libs when runtime libs are static 29868allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ 29869 29870# Whether or not to optimize for fast installation. 29871fast_install=$enable_fast_install 29872 29873# The host system. 29874host_alias=$host_alias 29875host=$host 29876host_os=$host_os 29877 29878# The build system. 29879build_alias=$build_alias 29880build=$build 29881build_os=$build_os 29882 29883# An echo program that does not interpret backslashes. 29884echo=$lt_echo 29885 29886# The archiver. 29887AR=$lt_AR 29888AR_FLAGS=$lt_AR_FLAGS 29889 29890# A C compiler. 29891LTCC=$lt_LTCC 29892 29893# A language-specific compiler. 29894CC=$lt_compiler_GCJ 29895 29896# Is the compiler the GNU C compiler? 29897with_gcc=$GCC_GCJ 29898 29899# An ERE matcher. 29900EGREP=$lt_EGREP 29901 29902# The linker used to build libraries. 29903LD=$lt_LD_GCJ 29904 29905# Whether we need hard or soft links. 29906LN_S=$lt_LN_S 29907 29908# A BSD-compatible nm program. 29909NM=$lt_NM 29910 29911# A symbol stripping program 29912STRIP=$lt_STRIP 29913 29914# Used to examine libraries when file_magic_cmd begins "file" 29915MAGIC_CMD=$MAGIC_CMD 29916 29917# Used on cygwin: DLL creation program. 29918DLLTOOL="$DLLTOOL" 29919 29920# Used on cygwin: object dumper. 29921OBJDUMP="$OBJDUMP" 29922 29923# Used on cygwin: assembler. 29924AS="$AS" 29925 29926# The name of the directory that contains temporary libtool files. 29927objdir=$objdir 29928 29929# How to create reloadable object files. 29930reload_flag=$lt_reload_flag 29931reload_cmds=$lt_reload_cmds 29932 29933# How to pass a linker flag through the compiler. 29934wl=$lt_lt_prog_compiler_wl_GCJ 29935 29936# Object file suffix (normally "o"). 29937objext="$ac_objext" 29938 29939# Old archive suffix (normally "a"). 29940libext="$libext" 29941 29942# Shared library suffix (normally ".so"). 29943shrext_cmds='$shrext_cmds' 29944 29945# Executable file suffix (normally ""). 29946exeext="$exeext" 29947 29948# Additional compiler flags for building library objects. 29949pic_flag=$lt_lt_prog_compiler_pic_GCJ 29950pic_mode=$pic_mode 29951 29952# What is the maximum length of a command? 29953max_cmd_len=$lt_cv_sys_max_cmd_len 29954 29955# Does compiler simultaneously support -c and -o options? 29956compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ 29957 29958# Must we lock files when doing compilation? 29959need_locks=$lt_need_locks 29960 29961# Do we need the lib prefix for modules? 29962need_lib_prefix=$need_lib_prefix 29963 29964# Do we need a version for libraries? 29965need_version=$need_version 29966 29967# Whether dlopen is supported. 29968dlopen_support=$enable_dlopen 29969 29970# Whether dlopen of programs is supported. 29971dlopen_self=$enable_dlopen_self 29972 29973# Whether dlopen of statically linked programs is supported. 29974dlopen_self_static=$enable_dlopen_self_static 29975 29976# Compiler flag to prevent dynamic linking. 29977link_static_flag=$lt_lt_prog_compiler_static_GCJ 29978 29979# Compiler flag to turn off builtin functions. 29980no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ 29981 29982# Compiler flag to allow reflexive dlopens. 29983export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ 29984 29985# Compiler flag to generate shared objects directly from archives. 29986whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ 29987 29988# Compiler flag to generate thread-safe objects. 29989thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ 29990 29991# Library versioning type. 29992version_type=$version_type 29993 29994# Format of library name prefix. 29995libname_spec=$lt_libname_spec 29996 29997# List of archive names. First name is the real one, the rest are links. 29998# The last name is the one that the linker finds with -lNAME. 29999library_names_spec=$lt_library_names_spec 30000 30001# The coded name of the library, if different from the real name. 30002soname_spec=$lt_soname_spec 30003 30004# Commands used to build and install an old-style archive. 30005RANLIB=$lt_RANLIB 30006old_archive_cmds=$lt_old_archive_cmds_GCJ 30007old_postinstall_cmds=$lt_old_postinstall_cmds 30008old_postuninstall_cmds=$lt_old_postuninstall_cmds 30009 30010# Create an old-style archive from a shared archive. 30011old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ 30012 30013# Create a temporary old-style archive to link instead of a shared archive. 30014old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ 30015 30016# Commands used to build and install a shared archive. 30017archive_cmds=$lt_archive_cmds_GCJ 30018archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ 30019postinstall_cmds=$lt_postinstall_cmds 30020postuninstall_cmds=$lt_postuninstall_cmds 30021 30022# Commands used to build a loadable module (assumed same as above if empty) 30023module_cmds=$lt_module_cmds_GCJ 30024module_expsym_cmds=$lt_module_expsym_cmds_GCJ 30025 30026# Commands to strip libraries. 30027old_striplib=$lt_old_striplib 30028striplib=$lt_striplib 30029 30030# Dependencies to place before the objects being linked to create a 30031# shared library. 30032predep_objects=$lt_predep_objects_GCJ 30033 30034# Dependencies to place after the objects being linked to create a 30035# shared library. 30036postdep_objects=$lt_postdep_objects_GCJ 30037 30038# Dependencies to place before the objects being linked to create a 30039# shared library. 30040predeps=$lt_predeps_GCJ 30041 30042# Dependencies to place after the objects being linked to create a 30043# shared library. 30044postdeps=$lt_postdeps_GCJ 30045 30046# The library search path used internally by the compiler when linking 30047# a shared library. 30048compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ 30049 30050# Method to check whether dependent libraries are shared objects. 30051deplibs_check_method=$lt_deplibs_check_method 30052 30053# Command to use when deplibs_check_method == file_magic. 30054file_magic_cmd=$lt_file_magic_cmd 30055 30056# Flag that allows shared libraries with undefined symbols to be built. 30057allow_undefined_flag=$lt_allow_undefined_flag_GCJ 30058 30059# Flag that forces no undefined symbols. 30060no_undefined_flag=$lt_no_undefined_flag_GCJ 30061 30062# Commands used to finish a libtool library installation in a directory. 30063finish_cmds=$lt_finish_cmds 30064 30065# Same as above, but a single script fragment to be evaled but not shown. 30066finish_eval=$lt_finish_eval 30067 30068# Take the output of nm and produce a listing of raw symbols and C names. 30069global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 30070 30071# Transform the output of nm in a proper C declaration 30072global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 30073 30074# Transform the output of nm in a C name address pair 30075global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 30076 30077# This is the shared library runtime path variable. 30078runpath_var=$runpath_var 30079 30080# This is the shared library path variable. 30081shlibpath_var=$shlibpath_var 30082 30083# Is shlibpath searched before the hard-coded library search path? 30084shlibpath_overrides_runpath=$shlibpath_overrides_runpath 30085 30086# How to hardcode a shared library path into an executable. 30087hardcode_action=$hardcode_action_GCJ 30088 30089# Whether we should hardcode library paths into libraries. 30090hardcode_into_libs=$hardcode_into_libs 30091 30092# Flag to hardcode \$libdir into a binary during linking. 30093# This must work even if \$libdir does not exist. 30094hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ 30095 30096# If ld is used when linking, flag to hardcode \$libdir into 30097# a binary during linking. This must work even if \$libdir does 30098# not exist. 30099hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ 30100 30101# Whether we need a single -rpath flag with a separated argument. 30102hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ 30103 30104# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 30105# resulting binary. 30106hardcode_direct=$hardcode_direct_GCJ 30107 30108# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 30109# resulting binary. 30110hardcode_minus_L=$hardcode_minus_L_GCJ 30111 30112# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 30113# the resulting binary. 30114hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ 30115 30116# Set to yes if building a shared library automatically hardcodes DIR into the library 30117# and all subsequent libraries and executables linked against it. 30118hardcode_automatic=$hardcode_automatic_GCJ 30119 30120# Variables whose values should be saved in libtool wrapper scripts and 30121# restored at relink time. 30122variables_saved_for_relink="$variables_saved_for_relink" 30123 30124# Whether libtool must link a program against all its dependency libraries. 30125link_all_deplibs=$link_all_deplibs_GCJ 30126 30127# Compile-time system search path for libraries 30128sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 30129 30130# Run-time system search path for libraries 30131sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 30132 30133# Fix the shell variable \$srcfile for the compiler. 30134fix_srcfile_path="$fix_srcfile_path_GCJ" 30135 30136# Set to yes if exported symbols are required. 30137always_export_symbols=$always_export_symbols_GCJ 30138 30139# The commands to list exported symbols. 30140export_symbols_cmds=$lt_export_symbols_cmds_GCJ 30141 30142# The commands to extract the exported symbol list from a shared archive. 30143extract_expsyms_cmds=$lt_extract_expsyms_cmds 30144 30145# Symbols that should not be listed in the preloaded symbols. 30146exclude_expsyms=$lt_exclude_expsyms_GCJ 30147 30148# Symbols that must always be exported. 30149include_expsyms=$lt_include_expsyms_GCJ 30150 30151# ### END LIBTOOL TAG CONFIG: $tagname 30152 30153__EOF__ 30154 30155 30156else 30157 # If there is no Makefile yet, we rely on a make rule to execute 30158 # `config.status --recheck' to rerun these tests and create the 30159 # libtool script then. 30160 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 30161 if test -f "$ltmain_in"; then 30162 test -f Makefile && make "$ltmain" 30163 fi 30164fi 30165 30166 30167ac_ext=c 30168ac_cpp='$CPP $CPPFLAGS' 30169ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 30170ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 30171ac_compiler_gnu=$ac_cv_c_compiler_gnu 30172 30173CC="$lt_save_CC" 30174 30175 else 30176 tagname="" 30177 fi 30178 ;; 30179 30180 RC) 30181 30182 30183 30184# Source file extension for RC test sources. 30185ac_ext=rc 30186 30187# Object file extension for compiled RC test sources. 30188objext=o 30189objext_RC=$objext 30190 30191# Code to be used in simple compile tests 30192lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' 30193 30194# Code to be used in simple link tests 30195lt_simple_link_test_code="$lt_simple_compile_test_code" 30196 30197# ltmain only uses $CC for tagged configurations so make sure $CC is set. 30198 30199# If no C compiler was specified, use CC. 30200LTCC=${LTCC-"$CC"} 30201 30202# Allow CC to be a program name with arguments. 30203compiler=$CC 30204 30205 30206# save warnings/boilerplate of simple test code 30207ac_outfile=conftest.$ac_objext 30208printf "$lt_simple_compile_test_code" >conftest.$ac_ext 30209eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 30210_lt_compiler_boilerplate=`cat conftest.err` 30211$rm conftest* 30212 30213ac_outfile=conftest.$ac_objext 30214printf "$lt_simple_link_test_code" >conftest.$ac_ext 30215eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 30216_lt_linker_boilerplate=`cat conftest.err` 30217$rm conftest* 30218 30219 30220# Allow CC to be a program name with arguments. 30221lt_save_CC="$CC" 30222CC=${RC-"windres"} 30223compiler=$CC 30224compiler_RC=$CC 30225for cc_temp in $compiler""; do 30226 case $cc_temp in 30227 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 30228 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 30229 \-*) ;; 30230 *) break;; 30231 esac 30232done 30233cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 30234 30235lt_cv_prog_compiler_c_o_RC=yes 30236 30237# The else clause should only fire when bootstrapping the 30238# libtool distribution, otherwise you forgot to ship ltmain.sh 30239# with your package, and you will get complaints that there are 30240# no rules to generate ltmain.sh. 30241if test -f "$ltmain"; then 30242 # See if we are running on zsh, and set the options which allow our commands through 30243 # without removal of \ escapes. 30244 if test -n "${ZSH_VERSION+set}" ; then 30245 setopt NO_GLOB_SUBST 30246 fi 30247 # Now quote all the things that may contain metacharacters while being 30248 # careful not to overquote the AC_SUBSTed values. We take copies of the 30249 # variables and quote the copies for generation of the libtool script. 30250 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ 30251 SED SHELL STRIP \ 30252 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 30253 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 30254 deplibs_check_method reload_flag reload_cmds need_locks \ 30255 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 30256 lt_cv_sys_global_symbol_to_c_name_address \ 30257 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 30258 old_postinstall_cmds old_postuninstall_cmds \ 30259 compiler_RC \ 30260 CC_RC \ 30261 LD_RC \ 30262 lt_prog_compiler_wl_RC \ 30263 lt_prog_compiler_pic_RC \ 30264 lt_prog_compiler_static_RC \ 30265 lt_prog_compiler_no_builtin_flag_RC \ 30266 export_dynamic_flag_spec_RC \ 30267 thread_safe_flag_spec_RC \ 30268 whole_archive_flag_spec_RC \ 30269 enable_shared_with_static_runtimes_RC \ 30270 old_archive_cmds_RC \ 30271 old_archive_from_new_cmds_RC \ 30272 predep_objects_RC \ 30273 postdep_objects_RC \ 30274 predeps_RC \ 30275 postdeps_RC \ 30276 compiler_lib_search_path_RC \ 30277 archive_cmds_RC \ 30278 archive_expsym_cmds_RC \ 30279 postinstall_cmds_RC \ 30280 postuninstall_cmds_RC \ 30281 old_archive_from_expsyms_cmds_RC \ 30282 allow_undefined_flag_RC \ 30283 no_undefined_flag_RC \ 30284 export_symbols_cmds_RC \ 30285 hardcode_libdir_flag_spec_RC \ 30286 hardcode_libdir_flag_spec_ld_RC \ 30287 hardcode_libdir_separator_RC \ 30288 hardcode_automatic_RC \ 30289 module_cmds_RC \ 30290 module_expsym_cmds_RC \ 30291 lt_cv_prog_compiler_c_o_RC \ 30292 exclude_expsyms_RC \ 30293 include_expsyms_RC; do 30294 30295 case $var in 30296 old_archive_cmds_RC | \ 30297 old_archive_from_new_cmds_RC | \ 30298 archive_cmds_RC | \ 30299 archive_expsym_cmds_RC | \ 30300 module_cmds_RC | \ 30301 module_expsym_cmds_RC | \ 30302 old_archive_from_expsyms_cmds_RC | \ 30303 export_symbols_cmds_RC | \ 30304 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 30305 postinstall_cmds | postuninstall_cmds | \ 30306 old_postinstall_cmds | old_postuninstall_cmds | \ 30307 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 30308 # Double-quote double-evaled strings. 30309 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 30310 ;; 30311 *) 30312 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 30313 ;; 30314 esac 30315 done 30316 30317 case $lt_echo in 30318 *'\$0 --fallback-echo"') 30319 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 30320 ;; 30321 esac 30322 30323cfgfile="$ofile" 30324 30325 cat <<__EOF__ >> "$cfgfile" 30326# ### BEGIN LIBTOOL TAG CONFIG: $tagname 30327 30328# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 30329 30330# Shell to use when invoking shell scripts. 30331SHELL=$lt_SHELL 30332 30333# Whether or not to build shared libraries. 30334build_libtool_libs=$enable_shared 30335 30336# Whether or not to build static libraries. 30337build_old_libs=$enable_static 30338 30339# Whether or not to add -lc for building shared libraries. 30340build_libtool_need_lc=$archive_cmds_need_lc_RC 30341 30342# Whether or not to disallow shared libs when runtime libs are static 30343allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC 30344 30345# Whether or not to optimize for fast installation. 30346fast_install=$enable_fast_install 30347 30348# The host system. 30349host_alias=$host_alias 30350host=$host 30351host_os=$host_os 30352 30353# The build system. 30354build_alias=$build_alias 30355build=$build 30356build_os=$build_os 30357 30358# An echo program that does not interpret backslashes. 30359echo=$lt_echo 30360 30361# The archiver. 30362AR=$lt_AR 30363AR_FLAGS=$lt_AR_FLAGS 30364 30365# A C compiler. 30366LTCC=$lt_LTCC 30367 30368# A language-specific compiler. 30369CC=$lt_compiler_RC 30370 30371# Is the compiler the GNU C compiler? 30372with_gcc=$GCC_RC 30373 30374# An ERE matcher. 30375EGREP=$lt_EGREP 30376 30377# The linker used to build libraries. 30378LD=$lt_LD_RC 30379 30380# Whether we need hard or soft links. 30381LN_S=$lt_LN_S 30382 30383# A BSD-compatible nm program. 30384NM=$lt_NM 30385 30386# A symbol stripping program 30387STRIP=$lt_STRIP 30388 30389# Used to examine libraries when file_magic_cmd begins "file" 30390MAGIC_CMD=$MAGIC_CMD 30391 30392# Used on cygwin: DLL creation program. 30393DLLTOOL="$DLLTOOL" 30394 30395# Used on cygwin: object dumper. 30396OBJDUMP="$OBJDUMP" 30397 30398# Used on cygwin: assembler. 30399AS="$AS" 30400 30401# The name of the directory that contains temporary libtool files. 30402objdir=$objdir 30403 30404# How to create reloadable object files. 30405reload_flag=$lt_reload_flag 30406reload_cmds=$lt_reload_cmds 30407 30408# How to pass a linker flag through the compiler. 30409wl=$lt_lt_prog_compiler_wl_RC 30410 30411# Object file suffix (normally "o"). 30412objext="$ac_objext" 30413 30414# Old archive suffix (normally "a"). 30415libext="$libext" 30416 30417# Shared library suffix (normally ".so"). 30418shrext_cmds='$shrext_cmds' 30419 30420# Executable file suffix (normally ""). 30421exeext="$exeext" 30422 30423# Additional compiler flags for building library objects. 30424pic_flag=$lt_lt_prog_compiler_pic_RC 30425pic_mode=$pic_mode 30426 30427# What is the maximum length of a command? 30428max_cmd_len=$lt_cv_sys_max_cmd_len 30429 30430# Does compiler simultaneously support -c and -o options? 30431compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC 30432 30433# Must we lock files when doing compilation? 30434need_locks=$lt_need_locks 30435 30436# Do we need the lib prefix for modules? 30437need_lib_prefix=$need_lib_prefix 30438 30439# Do we need a version for libraries? 30440need_version=$need_version 30441 30442# Whether dlopen is supported. 30443dlopen_support=$enable_dlopen 30444 30445# Whether dlopen of programs is supported. 30446dlopen_self=$enable_dlopen_self 30447 30448# Whether dlopen of statically linked programs is supported. 30449dlopen_self_static=$enable_dlopen_self_static 30450 30451# Compiler flag to prevent dynamic linking. 30452link_static_flag=$lt_lt_prog_compiler_static_RC 30453 30454# Compiler flag to turn off builtin functions. 30455no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC 30456 30457# Compiler flag to allow reflexive dlopens. 30458export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC 30459 30460# Compiler flag to generate shared objects directly from archives. 30461whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC 30462 30463# Compiler flag to generate thread-safe objects. 30464thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC 30465 30466# Library versioning type. 30467version_type=$version_type 30468 30469# Format of library name prefix. 30470libname_spec=$lt_libname_spec 30471 30472# List of archive names. First name is the real one, the rest are links. 30473# The last name is the one that the linker finds with -lNAME. 30474library_names_spec=$lt_library_names_spec 30475 30476# The coded name of the library, if different from the real name. 30477soname_spec=$lt_soname_spec 30478 30479# Commands used to build and install an old-style archive. 30480RANLIB=$lt_RANLIB 30481old_archive_cmds=$lt_old_archive_cmds_RC 30482old_postinstall_cmds=$lt_old_postinstall_cmds 30483old_postuninstall_cmds=$lt_old_postuninstall_cmds 30484 30485# Create an old-style archive from a shared archive. 30486old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC 30487 30488# Create a temporary old-style archive to link instead of a shared archive. 30489old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC 30490 30491# Commands used to build and install a shared archive. 30492archive_cmds=$lt_archive_cmds_RC 30493archive_expsym_cmds=$lt_archive_expsym_cmds_RC 30494postinstall_cmds=$lt_postinstall_cmds 30495postuninstall_cmds=$lt_postuninstall_cmds 30496 30497# Commands used to build a loadable module (assumed same as above if empty) 30498module_cmds=$lt_module_cmds_RC 30499module_expsym_cmds=$lt_module_expsym_cmds_RC 30500 30501# Commands to strip libraries. 30502old_striplib=$lt_old_striplib 30503striplib=$lt_striplib 30504 30505# Dependencies to place before the objects being linked to create a 30506# shared library. 30507predep_objects=$lt_predep_objects_RC 30508 30509# Dependencies to place after the objects being linked to create a 30510# shared library. 30511postdep_objects=$lt_postdep_objects_RC 30512 30513# Dependencies to place before the objects being linked to create a 30514# shared library. 30515predeps=$lt_predeps_RC 30516 30517# Dependencies to place after the objects being linked to create a 30518# shared library. 30519postdeps=$lt_postdeps_RC 30520 30521# The library search path used internally by the compiler when linking 30522# a shared library. 30523compiler_lib_search_path=$lt_compiler_lib_search_path_RC 30524 30525# Method to check whether dependent libraries are shared objects. 30526deplibs_check_method=$lt_deplibs_check_method 30527 30528# Command to use when deplibs_check_method == file_magic. 30529file_magic_cmd=$lt_file_magic_cmd 30530 30531# Flag that allows shared libraries with undefined symbols to be built. 30532allow_undefined_flag=$lt_allow_undefined_flag_RC 30533 30534# Flag that forces no undefined symbols. 30535no_undefined_flag=$lt_no_undefined_flag_RC 30536 30537# Commands used to finish a libtool library installation in a directory. 30538finish_cmds=$lt_finish_cmds 30539 30540# Same as above, but a single script fragment to be evaled but not shown. 30541finish_eval=$lt_finish_eval 30542 30543# Take the output of nm and produce a listing of raw symbols and C names. 30544global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 30545 30546# Transform the output of nm in a proper C declaration 30547global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 30548 30549# Transform the output of nm in a C name address pair 30550global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 30551 30552# This is the shared library runtime path variable. 30553runpath_var=$runpath_var 30554 30555# This is the shared library path variable. 30556shlibpath_var=$shlibpath_var 30557 30558# Is shlibpath searched before the hard-coded library search path? 30559shlibpath_overrides_runpath=$shlibpath_overrides_runpath 30560 30561# How to hardcode a shared library path into an executable. 30562hardcode_action=$hardcode_action_RC 30563 30564# Whether we should hardcode library paths into libraries. 30565hardcode_into_libs=$hardcode_into_libs 30566 30567# Flag to hardcode \$libdir into a binary during linking. 30568# This must work even if \$libdir does not exist. 30569hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC 30570 30571# If ld is used when linking, flag to hardcode \$libdir into 30572# a binary during linking. This must work even if \$libdir does 30573# not exist. 30574hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC 30575 30576# Whether we need a single -rpath flag with a separated argument. 30577hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC 30578 30579# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 30580# resulting binary. 30581hardcode_direct=$hardcode_direct_RC 30582 30583# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 30584# resulting binary. 30585hardcode_minus_L=$hardcode_minus_L_RC 30586 30587# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 30588# the resulting binary. 30589hardcode_shlibpath_var=$hardcode_shlibpath_var_RC 30590 30591# Set to yes if building a shared library automatically hardcodes DIR into the library 30592# and all subsequent libraries and executables linked against it. 30593hardcode_automatic=$hardcode_automatic_RC 30594 30595# Variables whose values should be saved in libtool wrapper scripts and 30596# restored at relink time. 30597variables_saved_for_relink="$variables_saved_for_relink" 30598 30599# Whether libtool must link a program against all its dependency libraries. 30600link_all_deplibs=$link_all_deplibs_RC 30601 30602# Compile-time system search path for libraries 30603sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 30604 30605# Run-time system search path for libraries 30606sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 30607 30608# Fix the shell variable \$srcfile for the compiler. 30609fix_srcfile_path="$fix_srcfile_path_RC" 30610 30611# Set to yes if exported symbols are required. 30612always_export_symbols=$always_export_symbols_RC 30613 30614# The commands to list exported symbols. 30615export_symbols_cmds=$lt_export_symbols_cmds_RC 30616 30617# The commands to extract the exported symbol list from a shared archive. 30618extract_expsyms_cmds=$lt_extract_expsyms_cmds 30619 30620# Symbols that should not be listed in the preloaded symbols. 30621exclude_expsyms=$lt_exclude_expsyms_RC 30622 30623# Symbols that must always be exported. 30624include_expsyms=$lt_include_expsyms_RC 30625 30626# ### END LIBTOOL TAG CONFIG: $tagname 30627 30628__EOF__ 30629 30630 30631else 30632 # If there is no Makefile yet, we rely on a make rule to execute 30633 # `config.status --recheck' to rerun these tests and create the 30634 # libtool script then. 30635 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 30636 if test -f "$ltmain_in"; then 30637 test -f Makefile && make "$ltmain" 30638 fi 30639fi 30640 30641 30642ac_ext=c 30643ac_cpp='$CPP $CPPFLAGS' 30644ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 30645ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 30646ac_compiler_gnu=$ac_cv_c_compiler_gnu 30647 30648CC="$lt_save_CC" 30649 30650 ;; 30651 30652 *) 30653 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 30654echo "$as_me: error: Unsupported tag name: $tagname" >&2;} 30655 { (exit 1); exit 1; }; } 30656 ;; 30657 esac 30658 30659 # Append the new tag name to the list of available tags. 30660 if test -n "$tagname" ; then 30661 available_tags="$available_tags $tagname" 30662 fi 30663 fi 30664 done 30665 IFS="$lt_save_ifs" 30666 30667 # Now substitute the updated list of available tags. 30668 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then 30669 mv "${ofile}T" "$ofile" 30670 chmod +x "$ofile" 30671 else 30672 rm -f "${ofile}T" 30673 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 30674echo "$as_me: error: unable to update list of available tagged configurations." >&2;} 30675 { (exit 1); exit 1; }; } 30676 fi 30677fi 30678 30679 30680 30681# This can be used to rebuild libtool when needed 30682LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" 30683 30684# Always use our own libtool. 30685LIBTOOL='$(SHELL) $(top_builddir)/libtool' 30686 30687# Prevent multiple expansion 30688 30689 30690 30691 30692 30693 30694 30695 30696 30697 30698 30699 30700 30701 30702 30703 30704 30705 30706 30707 30708echo "$as_me:$LINENO: checking whether ln -s works" >&5 30709echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 30710LN_S=$as_ln_s 30711if test "$LN_S" = "ln -s"; then 30712 echo "$as_me:$LINENO: result: yes" >&5 30713echo "${ECHO_T}yes" >&6 30714else 30715 echo "$as_me:$LINENO: result: no, using $LN_S" >&5 30716echo "${ECHO_T}no, using $LN_S" >&6 30717fi 30718 30719if test $ac_cv_c_compiler_gnu = yes; then 30720 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 30721echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6 30722if test "${ac_cv_prog_gcc_traditional+set}" = set; then 30723 echo $ECHO_N "(cached) $ECHO_C" >&6 30724else 30725 ac_pattern="Autoconf.*'x'" 30726 cat >conftest.$ac_ext <<_ACEOF 30727/* confdefs.h. */ 30728_ACEOF 30729cat confdefs.h >>conftest.$ac_ext 30730cat >>conftest.$ac_ext <<_ACEOF 30731/* end confdefs.h. */ 30732#include <sgtty.h> 30733Autoconf TIOCGETP 30734_ACEOF 30735if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 30736 $EGREP "$ac_pattern" >/dev/null 2>&1; then 30737 ac_cv_prog_gcc_traditional=yes 30738else 30739 ac_cv_prog_gcc_traditional=no 30740fi 30741rm -f conftest* 30742 30743 30744 if test $ac_cv_prog_gcc_traditional = no; then 30745 cat >conftest.$ac_ext <<_ACEOF 30746/* confdefs.h. */ 30747_ACEOF 30748cat confdefs.h >>conftest.$ac_ext 30749cat >>conftest.$ac_ext <<_ACEOF 30750/* end confdefs.h. */ 30751#include <termio.h> 30752Autoconf TCGETA 30753_ACEOF 30754if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 30755 $EGREP "$ac_pattern" >/dev/null 2>&1; then 30756 ac_cv_prog_gcc_traditional=yes 30757fi 30758rm -f conftest* 30759 30760 fi 30761fi 30762echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 30763echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6 30764 if test $ac_cv_prog_gcc_traditional = yes; then 30765 CC="$CC -traditional" 30766 fi 30767fi 30768 30769echo "$as_me:$LINENO: checking for working volatile" >&5 30770echo $ECHO_N "checking for working volatile... $ECHO_C" >&6 30771if test "${ac_cv_c_volatile+set}" = set; then 30772 echo $ECHO_N "(cached) $ECHO_C" >&6 30773else 30774 cat >conftest.$ac_ext <<_ACEOF 30775/* confdefs.h. */ 30776_ACEOF 30777cat confdefs.h >>conftest.$ac_ext 30778cat >>conftest.$ac_ext <<_ACEOF 30779/* end confdefs.h. */ 30780 30781int 30782main () 30783{ 30784 30785volatile int x; 30786int * volatile y; 30787 ; 30788 return 0; 30789} 30790_ACEOF 30791rm -f conftest.$ac_objext 30792if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 30793 (eval $ac_compile) 2>conftest.er1 30794 ac_status=$? 30795 grep -v '^ *+' conftest.er1 >conftest.err 30796 rm -f conftest.er1 30797 cat conftest.err >&5 30798 echo "$as_me:$LINENO: \$? = $ac_status" >&5 30799 (exit $ac_status); } && 30800 { ac_try='test -z "$ac_c_werror_flag" 30801 || test ! -s conftest.err' 30802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 30803 (eval $ac_try) 2>&5 30804 ac_status=$? 30805 echo "$as_me:$LINENO: \$? = $ac_status" >&5 30806 (exit $ac_status); }; } && 30807 { ac_try='test -s conftest.$ac_objext' 30808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 30809 (eval $ac_try) 2>&5 30810 ac_status=$? 30811 echo "$as_me:$LINENO: \$? = $ac_status" >&5 30812 (exit $ac_status); }; }; then 30813 ac_cv_c_volatile=yes 30814else 30815 echo "$as_me: failed program was:" >&5 30816sed 's/^/| /' conftest.$ac_ext >&5 30817 30818ac_cv_c_volatile=no 30819fi 30820rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 30821fi 30822echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5 30823echo "${ECHO_T}$ac_cv_c_volatile" >&6 30824if test $ac_cv_c_volatile = no; then 30825 30826cat >>confdefs.h <<\_ACEOF 30827#define volatile 30828_ACEOF 30829 30830fi 30831 30832echo "$as_me:$LINENO: checking for library containing strerror" >&5 30833echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6 30834if test "${ac_cv_search_strerror+set}" = set; then 30835 echo $ECHO_N "(cached) $ECHO_C" >&6 30836else 30837 ac_func_search_save_LIBS=$LIBS 30838ac_cv_search_strerror=no 30839cat >conftest.$ac_ext <<_ACEOF 30840/* confdefs.h. */ 30841_ACEOF 30842cat confdefs.h >>conftest.$ac_ext 30843cat >>conftest.$ac_ext <<_ACEOF 30844/* end confdefs.h. */ 30845 30846/* Override any gcc2 internal prototype to avoid an error. */ 30847#ifdef __cplusplus 30848extern "C" 30849#endif 30850/* We use char because int might match the return type of a gcc2 30851 builtin and then its argument prototype would still apply. */ 30852char strerror (); 30853int 30854main () 30855{ 30856strerror (); 30857 ; 30858 return 0; 30859} 30860_ACEOF 30861rm -f conftest.$ac_objext conftest$ac_exeext 30862if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 30863 (eval $ac_link) 2>conftest.er1 30864 ac_status=$? 30865 grep -v '^ *+' conftest.er1 >conftest.err 30866 rm -f conftest.er1 30867 cat conftest.err >&5 30868 echo "$as_me:$LINENO: \$? = $ac_status" >&5 30869 (exit $ac_status); } && 30870 { ac_try='test -z "$ac_c_werror_flag" 30871 || test ! -s conftest.err' 30872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 30873 (eval $ac_try) 2>&5 30874 ac_status=$? 30875 echo "$as_me:$LINENO: \$? = $ac_status" >&5 30876 (exit $ac_status); }; } && 30877 { ac_try='test -s conftest$ac_exeext' 30878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 30879 (eval $ac_try) 2>&5 30880 ac_status=$? 30881 echo "$as_me:$LINENO: \$? = $ac_status" >&5 30882 (exit $ac_status); }; }; then 30883 ac_cv_search_strerror="none required" 30884else 30885 echo "$as_me: failed program was:" >&5 30886sed 's/^/| /' conftest.$ac_ext >&5 30887 30888fi 30889rm -f conftest.err conftest.$ac_objext \ 30890 conftest$ac_exeext conftest.$ac_ext 30891if test "$ac_cv_search_strerror" = no; then 30892 for ac_lib in cposix; do 30893 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 30894 cat >conftest.$ac_ext <<_ACEOF 30895/* confdefs.h. */ 30896_ACEOF 30897cat confdefs.h >>conftest.$ac_ext 30898cat >>conftest.$ac_ext <<_ACEOF 30899/* end confdefs.h. */ 30900 30901/* Override any gcc2 internal prototype to avoid an error. */ 30902#ifdef __cplusplus 30903extern "C" 30904#endif 30905/* We use char because int might match the return type of a gcc2 30906 builtin and then its argument prototype would still apply. */ 30907char strerror (); 30908int 30909main () 30910{ 30911strerror (); 30912 ; 30913 return 0; 30914} 30915_ACEOF 30916rm -f conftest.$ac_objext conftest$ac_exeext 30917if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 30918 (eval $ac_link) 2>conftest.er1 30919 ac_status=$? 30920 grep -v '^ *+' conftest.er1 >conftest.err 30921 rm -f conftest.er1 30922 cat conftest.err >&5 30923 echo "$as_me:$LINENO: \$? = $ac_status" >&5 30924 (exit $ac_status); } && 30925 { ac_try='test -z "$ac_c_werror_flag" 30926 || test ! -s conftest.err' 30927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 30928 (eval $ac_try) 2>&5 30929 ac_status=$? 30930 echo "$as_me:$LINENO: \$? = $ac_status" >&5 30931 (exit $ac_status); }; } && 30932 { ac_try='test -s conftest$ac_exeext' 30933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 30934 (eval $ac_try) 2>&5 30935 ac_status=$? 30936 echo "$as_me:$LINENO: \$? = $ac_status" >&5 30937 (exit $ac_status); }; }; then 30938 ac_cv_search_strerror="-l$ac_lib" 30939break 30940else 30941 echo "$as_me: failed program was:" >&5 30942sed 's/^/| /' conftest.$ac_ext >&5 30943 30944fi 30945rm -f conftest.err conftest.$ac_objext \ 30946 conftest$ac_exeext conftest.$ac_ext 30947 done 30948fi 30949LIBS=$ac_func_search_save_LIBS 30950fi 30951echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5 30952echo "${ECHO_T}$ac_cv_search_strerror" >&6 30953if test "$ac_cv_search_strerror" != no; then 30954 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS" 30955 30956fi 30957 30958# Extract the first word of "sh", so it can be a program name with args. 30959set dummy sh; ac_word=$2 30960echo "$as_me:$LINENO: checking for $ac_word" >&5 30961echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 30962if test "${ac_cv_path_PATH_SH+set}" = set; then 30963 echo $ECHO_N "(cached) $ECHO_C" >&6 30964else 30965 case $PATH_SH in 30966 [\\/]* | ?:[\\/]*) 30967 ac_cv_path_PATH_SH="$PATH_SH" # Let the user override the test with a path. 30968 ;; 30969 *) 30970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 30971for as_dir in $PATH 30972do 30973 IFS=$as_save_IFS 30974 test -z "$as_dir" && as_dir=. 30975 for ac_exec_ext in '' $ac_executable_extensions; do 30976 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 30977 ac_cv_path_PATH_SH="$as_dir/$ac_word$ac_exec_ext" 30978 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 30979 break 2 30980 fi 30981done 30982done 30983 30984 ;; 30985esac 30986fi 30987PATH_SH=$ac_cv_path_PATH_SH 30988 30989if test -n "$PATH_SH"; then 30990 echo "$as_me:$LINENO: result: $PATH_SH" >&5 30991echo "${ECHO_T}$PATH_SH" >&6 30992else 30993 echo "$as_me:$LINENO: result: no" >&5 30994echo "${ECHO_T}no" >&6 30995fi 30996 30997# Extract the first word of "perl", so it can be a program name with args. 30998set dummy perl; ac_word=$2 30999echo "$as_me:$LINENO: checking for $ac_word" >&5 31000echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 31001if test "${ac_cv_path_PATH_PERL+set}" = set; then 31002 echo $ECHO_N "(cached) $ECHO_C" >&6 31003else 31004 case $PATH_PERL in 31005 [\\/]* | ?:[\\/]*) 31006 ac_cv_path_PATH_PERL="$PATH_PERL" # Let the user override the test with a path. 31007 ;; 31008 *) 31009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 31010for as_dir in $PATH 31011do 31012 IFS=$as_save_IFS 31013 test -z "$as_dir" && as_dir=. 31014 for ac_exec_ext in '' $ac_executable_extensions; do 31015 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 31016 ac_cv_path_PATH_PERL="$as_dir/$ac_word$ac_exec_ext" 31017 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 31018 break 2 31019 fi 31020done 31021done 31022 31023 ;; 31024esac 31025fi 31026PATH_PERL=$ac_cv_path_PATH_PERL 31027 31028if test -n "$PATH_PERL"; then 31029 echo "$as_me:$LINENO: result: $PATH_PERL" >&5 31030echo "${ECHO_T}$PATH_PERL" >&6 31031else 31032 echo "$as_me:$LINENO: result: no" >&5 31033echo "${ECHO_T}no" >&6 31034fi 31035 31036 31037 31038 31039cat >conftest.$ac_ext <<_ACEOF 31040/* confdefs.h. */ 31041_ACEOF 31042cat confdefs.h >>conftest.$ac_ext 31043cat >>conftest.$ac_ext <<_ACEOF 31044/* end confdefs.h. */ 31045#define ACAT(a,b)a ## b 31046ACAT(Cir,cus) 31047 31048_ACEOF 31049if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 31050 $EGREP "Circus" >/dev/null 2>&1; then 31051 cat >>confdefs.h <<\_ACEOF 31052#define ULONG_CONST(a) a ## UL 31053_ACEOF 31054 31055else 31056 cat >conftest.$ac_ext <<_ACEOF 31057/* confdefs.h. */ 31058_ACEOF 31059cat confdefs.h >>conftest.$ac_ext 31060cat >>conftest.$ac_ext <<_ACEOF 31061/* end confdefs.h. */ 31062#define RCAT(a,b)a/**/b 31063RCAT(Rei,ser) 31064 31065_ACEOF 31066if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 31067 $EGREP "Reiser" >/dev/null 2>&1; then 31068 cat >>confdefs.h <<\_ACEOF 31069#define ULONG_CONST(a) a/**/L 31070_ACEOF 31071 31072else 31073 { { echo "$as_me:$LINENO: error: How do we create an unsigned long constant?" >&5 31074echo "$as_me: error: How do we create an unsigned long constant?" >&2;} 31075 { (exit 1); exit 1; }; } 31076fi 31077rm -f conftest* 31078 31079fi 31080rm -f conftest* 31081 31082 31083case "$host" in 31084 *-*-vxworks*) 31085 ac_link="$ac_link $VX_KERNEL" 31086 ;; 31087esac 31088 31089# Find a good install program. We prefer a C program (faster), 31090# so one script is as good as another. But avoid the broken or 31091# incompatible versions: 31092# SysV /etc/install, /usr/sbin/install 31093# SunOS /usr/etc/install 31094# IRIX /sbin/install 31095# AIX /bin/install 31096# AmigaOS /C/install, which installs bootblocks on floppy discs 31097# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 31098# AFS /usr/afsws/bin/install, which mishandles nonexistent args 31099# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 31100# OS/2's system install, which has a completely different semantic 31101# ./install, which can be erroneously created by make from ./install.sh. 31102echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 31103echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 31104if test -z "$INSTALL"; then 31105if test "${ac_cv_path_install+set}" = set; then 31106 echo $ECHO_N "(cached) $ECHO_C" >&6 31107else 31108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 31109for as_dir in $PATH 31110do 31111 IFS=$as_save_IFS 31112 test -z "$as_dir" && as_dir=. 31113 # Account for people who put trailing slashes in PATH elements. 31114case $as_dir/ in 31115 ./ | .// | /cC/* | \ 31116 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 31117 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 31118 /usr/ucb/* ) ;; 31119 *) 31120 # OSF1 and SCO ODT 3.0 have their own names for install. 31121 # Don't use installbsd from OSF since it installs stuff as root 31122 # by default. 31123 for ac_prog in ginstall scoinst install; do 31124 for ac_exec_ext in '' $ac_executable_extensions; do 31125 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 31126 if test $ac_prog = install && 31127 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 31128 # AIX install. It has an incompatible calling convention. 31129 : 31130 elif test $ac_prog = install && 31131 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 31132 # program-specific install script used by HP pwplus--don't use. 31133 : 31134 else 31135 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 31136 break 3 31137 fi 31138 fi 31139 done 31140 done 31141 ;; 31142esac 31143done 31144 31145 31146fi 31147 if test "${ac_cv_path_install+set}" = set; then 31148 INSTALL=$ac_cv_path_install 31149 else 31150 # As a last resort, use the slow shell script. We don't cache a 31151 # path for INSTALL within a source directory, because that will 31152 # break other packages using the cache if that directory is 31153 # removed, or if the path is relative. 31154 INSTALL=$ac_install_sh 31155 fi 31156fi 31157echo "$as_me:$LINENO: result: $INSTALL" >&5 31158echo "${ECHO_T}$INSTALL" >&6 31159 31160# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 31161# It thinks the first close brace ends the variable substitution. 31162test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 31163 31164test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 31165 31166test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 31167 31168 31169case "$host" in 31170 *-pc-cygwin*) 31171 31172echo "$as_me:$LINENO: checking for main in -ladvapi32" >&5 31173echo $ECHO_N "checking for main in -ladvapi32... $ECHO_C" >&6 31174if test "${ac_cv_lib_advapi32_main+set}" = set; then 31175 echo $ECHO_N "(cached) $ECHO_C" >&6 31176else 31177 ac_check_lib_save_LIBS=$LIBS 31178LIBS="-ladvapi32 $LIBS" 31179cat >conftest.$ac_ext <<_ACEOF 31180/* confdefs.h. */ 31181_ACEOF 31182cat confdefs.h >>conftest.$ac_ext 31183cat >>conftest.$ac_ext <<_ACEOF 31184/* end confdefs.h. */ 31185 31186 31187int 31188main () 31189{ 31190main (); 31191 ; 31192 return 0; 31193} 31194_ACEOF 31195rm -f conftest.$ac_objext conftest$ac_exeext 31196if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 31197 (eval $ac_link) 2>conftest.er1 31198 ac_status=$? 31199 grep -v '^ *+' conftest.er1 >conftest.err 31200 rm -f conftest.er1 31201 cat conftest.err >&5 31202 echo "$as_me:$LINENO: \$? = $ac_status" >&5 31203 (exit $ac_status); } && 31204 { ac_try='test -z "$ac_c_werror_flag" 31205 || test ! -s conftest.err' 31206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 31207 (eval $ac_try) 2>&5 31208 ac_status=$? 31209 echo "$as_me:$LINENO: \$? = $ac_status" >&5 31210 (exit $ac_status); }; } && 31211 { ac_try='test -s conftest$ac_exeext' 31212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 31213 (eval $ac_try) 2>&5 31214 ac_status=$? 31215 echo "$as_me:$LINENO: \$? = $ac_status" >&5 31216 (exit $ac_status); }; }; then 31217 ac_cv_lib_advapi32_main=yes 31218else 31219 echo "$as_me: failed program was:" >&5 31220sed 's/^/| /' conftest.$ac_ext >&5 31221 31222ac_cv_lib_advapi32_main=no 31223fi 31224rm -f conftest.err conftest.$ac_objext \ 31225 conftest$ac_exeext conftest.$ac_ext 31226LIBS=$ac_check_lib_save_LIBS 31227fi 31228echo "$as_me:$LINENO: result: $ac_cv_lib_advapi32_main" >&5 31229echo "${ECHO_T}$ac_cv_lib_advapi32_main" >&6 31230if test $ac_cv_lib_advapi32_main = yes; then 31231 cat >>confdefs.h <<_ACEOF 31232#define HAVE_LIBADVAPI32 1 31233_ACEOF 31234 31235 LIBS="-ladvapi32 $LIBS" 31236 31237fi 31238 31239 ;; 31240esac 31241 31242echo "$as_me:$LINENO: checking for gethostent" >&5 31243echo $ECHO_N "checking for gethostent... $ECHO_C" >&6 31244if test "${ac_cv_func_gethostent+set}" = set; then 31245 echo $ECHO_N "(cached) $ECHO_C" >&6 31246else 31247 cat >conftest.$ac_ext <<_ACEOF 31248/* confdefs.h. */ 31249_ACEOF 31250cat confdefs.h >>conftest.$ac_ext 31251cat >>conftest.$ac_ext <<_ACEOF 31252/* end confdefs.h. */ 31253/* Define gethostent to an innocuous variant, in case <limits.h> declares gethostent. 31254 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 31255#define gethostent innocuous_gethostent 31256 31257/* System header to define __stub macros and hopefully few prototypes, 31258 which can conflict with char gethostent (); below. 31259 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 31260 <limits.h> exists even on freestanding compilers. */ 31261 31262#ifdef __STDC__ 31263# include <limits.h> 31264#else 31265# include <assert.h> 31266#endif 31267 31268#undef gethostent 31269 31270/* Override any gcc2 internal prototype to avoid an error. */ 31271#ifdef __cplusplus 31272extern "C" 31273{ 31274#endif 31275/* We use char because int might match the return type of a gcc2 31276 builtin and then its argument prototype would still apply. */ 31277char gethostent (); 31278/* The GNU C library defines this for functions which it implements 31279 to always fail with ENOSYS. Some functions are actually named 31280 something starting with __ and the normal name is an alias. */ 31281#if defined (__stub_gethostent) || defined (__stub___gethostent) 31282choke me 31283#else 31284char (*f) () = gethostent; 31285#endif 31286#ifdef __cplusplus 31287} 31288#endif 31289 31290int 31291main () 31292{ 31293return f != gethostent; 31294 ; 31295 return 0; 31296} 31297_ACEOF 31298rm -f conftest.$ac_objext conftest$ac_exeext 31299if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 31300 (eval $ac_link) 2>conftest.er1 31301 ac_status=$? 31302 grep -v '^ *+' conftest.er1 >conftest.err 31303 rm -f conftest.er1 31304 cat conftest.err >&5 31305 echo "$as_me:$LINENO: \$? = $ac_status" >&5 31306 (exit $ac_status); } && 31307 { ac_try='test -z "$ac_c_werror_flag" 31308 || test ! -s conftest.err' 31309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 31310 (eval $ac_try) 2>&5 31311 ac_status=$? 31312 echo "$as_me:$LINENO: \$? = $ac_status" >&5 31313 (exit $ac_status); }; } && 31314 { ac_try='test -s conftest$ac_exeext' 31315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 31316 (eval $ac_try) 2>&5 31317 ac_status=$? 31318 echo "$as_me:$LINENO: \$? = $ac_status" >&5 31319 (exit $ac_status); }; }; then 31320 ac_cv_func_gethostent=yes 31321else 31322 echo "$as_me: failed program was:" >&5 31323sed 's/^/| /' conftest.$ac_ext >&5 31324 31325ac_cv_func_gethostent=no 31326fi 31327rm -f conftest.err conftest.$ac_objext \ 31328 conftest$ac_exeext conftest.$ac_ext 31329fi 31330echo "$as_me:$LINENO: result: $ac_cv_func_gethostent" >&5 31331echo "${ECHO_T}$ac_cv_func_gethostent" >&6 31332if test $ac_cv_func_gethostent = yes; then 31333 : 31334else 31335 31336echo "$as_me:$LINENO: checking for gethostent in -lnsl" >&5 31337echo $ECHO_N "checking for gethostent in -lnsl... $ECHO_C" >&6 31338if test "${ac_cv_lib_nsl_gethostent+set}" = set; then 31339 echo $ECHO_N "(cached) $ECHO_C" >&6 31340else 31341 ac_check_lib_save_LIBS=$LIBS 31342LIBS="-lnsl $libxnet -lsocket $LIBS" 31343cat >conftest.$ac_ext <<_ACEOF 31344/* confdefs.h. */ 31345_ACEOF 31346cat confdefs.h >>conftest.$ac_ext 31347cat >>conftest.$ac_ext <<_ACEOF 31348/* end confdefs.h. */ 31349 31350/* Override any gcc2 internal prototype to avoid an error. */ 31351#ifdef __cplusplus 31352extern "C" 31353#endif 31354/* We use char because int might match the return type of a gcc2 31355 builtin and then its argument prototype would still apply. */ 31356char gethostent (); 31357int 31358main () 31359{ 31360gethostent (); 31361 ; 31362 return 0; 31363} 31364_ACEOF 31365rm -f conftest.$ac_objext conftest$ac_exeext 31366if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 31367 (eval $ac_link) 2>conftest.er1 31368 ac_status=$? 31369 grep -v '^ *+' conftest.er1 >conftest.err 31370 rm -f conftest.er1 31371 cat conftest.err >&5 31372 echo "$as_me:$LINENO: \$? = $ac_status" >&5 31373 (exit $ac_status); } && 31374 { ac_try='test -z "$ac_c_werror_flag" 31375 || test ! -s conftest.err' 31376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 31377 (eval $ac_try) 2>&5 31378 ac_status=$? 31379 echo "$as_me:$LINENO: \$? = $ac_status" >&5 31380 (exit $ac_status); }; } && 31381 { ac_try='test -s conftest$ac_exeext' 31382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 31383 (eval $ac_try) 2>&5 31384 ac_status=$? 31385 echo "$as_me:$LINENO: \$? = $ac_status" >&5 31386 (exit $ac_status); }; }; then 31387 ac_cv_lib_nsl_gethostent=yes 31388else 31389 echo "$as_me: failed program was:" >&5 31390sed 's/^/| /' conftest.$ac_ext >&5 31391 31392ac_cv_lib_nsl_gethostent=no 31393fi 31394rm -f conftest.err conftest.$ac_objext \ 31395 conftest$ac_exeext conftest.$ac_ext 31396LIBS=$ac_check_lib_save_LIBS 31397fi 31398echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostent" >&5 31399echo "${ECHO_T}$ac_cv_lib_nsl_gethostent" >&6 31400if test $ac_cv_lib_nsl_gethostent = yes; then 31401 cat >>confdefs.h <<_ACEOF 31402#define HAVE_LIBNSL 1 31403_ACEOF 31404 31405 LIBS="-lnsl $LIBS" 31406 31407fi 31408 31409fi 31410 31411echo "$as_me:$LINENO: checking for openlog" >&5 31412echo $ECHO_N "checking for openlog... $ECHO_C" >&6 31413if test "${ac_cv_func_openlog+set}" = set; then 31414 echo $ECHO_N "(cached) $ECHO_C" >&6 31415else 31416 cat >conftest.$ac_ext <<_ACEOF 31417/* confdefs.h. */ 31418_ACEOF 31419cat confdefs.h >>conftest.$ac_ext 31420cat >>conftest.$ac_ext <<_ACEOF 31421/* end confdefs.h. */ 31422/* Define openlog to an innocuous variant, in case <limits.h> declares openlog. 31423 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 31424#define openlog innocuous_openlog 31425 31426/* System header to define __stub macros and hopefully few prototypes, 31427 which can conflict with char openlog (); below. 31428 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 31429 <limits.h> exists even on freestanding compilers. */ 31430 31431#ifdef __STDC__ 31432# include <limits.h> 31433#else 31434# include <assert.h> 31435#endif 31436 31437#undef openlog 31438 31439/* Override any gcc2 internal prototype to avoid an error. */ 31440#ifdef __cplusplus 31441extern "C" 31442{ 31443#endif 31444/* We use char because int might match the return type of a gcc2 31445 builtin and then its argument prototype would still apply. */ 31446char openlog (); 31447/* The GNU C library defines this for functions which it implements 31448 to always fail with ENOSYS. Some functions are actually named 31449 something starting with __ and the normal name is an alias. */ 31450#if defined (__stub_openlog) || defined (__stub___openlog) 31451choke me 31452#else 31453char (*f) () = openlog; 31454#endif 31455#ifdef __cplusplus 31456} 31457#endif 31458 31459int 31460main () 31461{ 31462return f != openlog; 31463 ; 31464 return 0; 31465} 31466_ACEOF 31467rm -f conftest.$ac_objext conftest$ac_exeext 31468if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 31469 (eval $ac_link) 2>conftest.er1 31470 ac_status=$? 31471 grep -v '^ *+' conftest.er1 >conftest.err 31472 rm -f conftest.er1 31473 cat conftest.err >&5 31474 echo "$as_me:$LINENO: \$? = $ac_status" >&5 31475 (exit $ac_status); } && 31476 { ac_try='test -z "$ac_c_werror_flag" 31477 || test ! -s conftest.err' 31478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 31479 (eval $ac_try) 2>&5 31480 ac_status=$? 31481 echo "$as_me:$LINENO: \$? = $ac_status" >&5 31482 (exit $ac_status); }; } && 31483 { ac_try='test -s conftest$ac_exeext' 31484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 31485 (eval $ac_try) 2>&5 31486 ac_status=$? 31487 echo "$as_me:$LINENO: \$? = $ac_status" >&5 31488 (exit $ac_status); }; }; then 31489 ac_cv_func_openlog=yes 31490else 31491 echo "$as_me: failed program was:" >&5 31492sed 's/^/| /' conftest.$ac_ext >&5 31493 31494ac_cv_func_openlog=no 31495fi 31496rm -f conftest.err conftest.$ac_objext \ 31497 conftest$ac_exeext conftest.$ac_ext 31498fi 31499echo "$as_me:$LINENO: result: $ac_cv_func_openlog" >&5 31500echo "${ECHO_T}$ac_cv_func_openlog" >&6 31501if test $ac_cv_func_openlog = yes; then 31502 : 31503else 31504 31505echo "$as_me:$LINENO: checking for openlog in -lgen" >&5 31506echo $ECHO_N "checking for openlog in -lgen... $ECHO_C" >&6 31507if test "${ac_cv_lib_gen_openlog+set}" = set; then 31508 echo $ECHO_N "(cached) $ECHO_C" >&6 31509else 31510 ac_check_lib_save_LIBS=$LIBS 31511LIBS="-lgen $LIBS" 31512cat >conftest.$ac_ext <<_ACEOF 31513/* confdefs.h. */ 31514_ACEOF 31515cat confdefs.h >>conftest.$ac_ext 31516cat >>conftest.$ac_ext <<_ACEOF 31517/* end confdefs.h. */ 31518 31519/* Override any gcc2 internal prototype to avoid an error. */ 31520#ifdef __cplusplus 31521extern "C" 31522#endif 31523/* We use char because int might match the return type of a gcc2 31524 builtin and then its argument prototype would still apply. */ 31525char openlog (); 31526int 31527main () 31528{ 31529openlog (); 31530 ; 31531 return 0; 31532} 31533_ACEOF 31534rm -f conftest.$ac_objext conftest$ac_exeext 31535if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 31536 (eval $ac_link) 2>conftest.er1 31537 ac_status=$? 31538 grep -v '^ *+' conftest.er1 >conftest.err 31539 rm -f conftest.er1 31540 cat conftest.err >&5 31541 echo "$as_me:$LINENO: \$? = $ac_status" >&5 31542 (exit $ac_status); } && 31543 { ac_try='test -z "$ac_c_werror_flag" 31544 || test ! -s conftest.err' 31545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 31546 (eval $ac_try) 2>&5 31547 ac_status=$? 31548 echo "$as_me:$LINENO: \$? = $ac_status" >&5 31549 (exit $ac_status); }; } && 31550 { ac_try='test -s conftest$ac_exeext' 31551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 31552 (eval $ac_try) 2>&5 31553 ac_status=$? 31554 echo "$as_me:$LINENO: \$? = $ac_status" >&5 31555 (exit $ac_status); }; }; then 31556 ac_cv_lib_gen_openlog=yes 31557else 31558 echo "$as_me: failed program was:" >&5 31559sed 's/^/| /' conftest.$ac_ext >&5 31560 31561ac_cv_lib_gen_openlog=no 31562fi 31563rm -f conftest.err conftest.$ac_objext \ 31564 conftest$ac_exeext conftest.$ac_ext 31565LIBS=$ac_check_lib_save_LIBS 31566fi 31567echo "$as_me:$LINENO: result: $ac_cv_lib_gen_openlog" >&5 31568echo "${ECHO_T}$ac_cv_lib_gen_openlog" >&6 31569if test $ac_cv_lib_gen_openlog = yes; then 31570 cat >>confdefs.h <<_ACEOF 31571#define HAVE_LIBGEN 1 31572_ACEOF 31573 31574 LIBS="-lgen $LIBS" 31575 31576else 31577 31578echo "$as_me:$LINENO: checking for openlog in -lsyslog" >&5 31579echo $ECHO_N "checking for openlog in -lsyslog... $ECHO_C" >&6 31580if test "${ac_cv_lib_syslog_openlog+set}" = set; then 31581 echo $ECHO_N "(cached) $ECHO_C" >&6 31582else 31583 ac_check_lib_save_LIBS=$LIBS 31584LIBS="-lsyslog $libxnet -lsocket $LIBS" 31585cat >conftest.$ac_ext <<_ACEOF 31586/* confdefs.h. */ 31587_ACEOF 31588cat confdefs.h >>conftest.$ac_ext 31589cat >>conftest.$ac_ext <<_ACEOF 31590/* end confdefs.h. */ 31591 31592/* Override any gcc2 internal prototype to avoid an error. */ 31593#ifdef __cplusplus 31594extern "C" 31595#endif 31596/* We use char because int might match the return type of a gcc2 31597 builtin and then its argument prototype would still apply. */ 31598char openlog (); 31599int 31600main () 31601{ 31602openlog (); 31603 ; 31604 return 0; 31605} 31606_ACEOF 31607rm -f conftest.$ac_objext conftest$ac_exeext 31608if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 31609 (eval $ac_link) 2>conftest.er1 31610 ac_status=$? 31611 grep -v '^ *+' conftest.er1 >conftest.err 31612 rm -f conftest.er1 31613 cat conftest.err >&5 31614 echo "$as_me:$LINENO: \$? = $ac_status" >&5 31615 (exit $ac_status); } && 31616 { ac_try='test -z "$ac_c_werror_flag" 31617 || test ! -s conftest.err' 31618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 31619 (eval $ac_try) 2>&5 31620 ac_status=$? 31621 echo "$as_me:$LINENO: \$? = $ac_status" >&5 31622 (exit $ac_status); }; } && 31623 { ac_try='test -s conftest$ac_exeext' 31624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 31625 (eval $ac_try) 2>&5 31626 ac_status=$? 31627 echo "$as_me:$LINENO: \$? = $ac_status" >&5 31628 (exit $ac_status); }; }; then 31629 ac_cv_lib_syslog_openlog=yes 31630else 31631 echo "$as_me: failed program was:" >&5 31632sed 's/^/| /' conftest.$ac_ext >&5 31633 31634ac_cv_lib_syslog_openlog=no 31635fi 31636rm -f conftest.err conftest.$ac_objext \ 31637 conftest$ac_exeext conftest.$ac_ext 31638LIBS=$ac_check_lib_save_LIBS 31639fi 31640echo "$as_me:$LINENO: result: $ac_cv_lib_syslog_openlog" >&5 31641echo "${ECHO_T}$ac_cv_lib_syslog_openlog" >&6 31642if test $ac_cv_lib_syslog_openlog = yes; then 31643 cat >>confdefs.h <<_ACEOF 31644#define HAVE_LIBSYSLOG 1 31645_ACEOF 31646 31647 LIBS="-lsyslog $LIBS" 31648 31649fi 31650 31651fi 31652 31653fi 31654 31655 31656echo "$as_me:$LINENO: checking for MD5Init in -lmd5" >&5 31657echo $ECHO_N "checking for MD5Init in -lmd5... $ECHO_C" >&6 31658if test "${ac_cv_lib_md5_MD5Init+set}" = set; then 31659 echo $ECHO_N "(cached) $ECHO_C" >&6 31660else 31661 ac_check_lib_save_LIBS=$LIBS 31662LIBS="-lmd5 $LIBS" 31663cat >conftest.$ac_ext <<_ACEOF 31664/* confdefs.h. */ 31665_ACEOF 31666cat confdefs.h >>conftest.$ac_ext 31667cat >>conftest.$ac_ext <<_ACEOF 31668/* end confdefs.h. */ 31669 31670/* Override any gcc2 internal prototype to avoid an error. */ 31671#ifdef __cplusplus 31672extern "C" 31673#endif 31674/* We use char because int might match the return type of a gcc2 31675 builtin and then its argument prototype would still apply. */ 31676char MD5Init (); 31677int 31678main () 31679{ 31680MD5Init (); 31681 ; 31682 return 0; 31683} 31684_ACEOF 31685rm -f conftest.$ac_objext conftest$ac_exeext 31686if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 31687 (eval $ac_link) 2>conftest.er1 31688 ac_status=$? 31689 grep -v '^ *+' conftest.er1 >conftest.err 31690 rm -f conftest.er1 31691 cat conftest.err >&5 31692 echo "$as_me:$LINENO: \$? = $ac_status" >&5 31693 (exit $ac_status); } && 31694 { ac_try='test -z "$ac_c_werror_flag" 31695 || test ! -s conftest.err' 31696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 31697 (eval $ac_try) 2>&5 31698 ac_status=$? 31699 echo "$as_me:$LINENO: \$? = $ac_status" >&5 31700 (exit $ac_status); }; } && 31701 { ac_try='test -s conftest$ac_exeext' 31702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 31703 (eval $ac_try) 2>&5 31704 ac_status=$? 31705 echo "$as_me:$LINENO: \$? = $ac_status" >&5 31706 (exit $ac_status); }; }; then 31707 ac_cv_lib_md5_MD5Init=yes 31708else 31709 echo "$as_me: failed program was:" >&5 31710sed 's/^/| /' conftest.$ac_ext >&5 31711 31712ac_cv_lib_md5_MD5Init=no 31713fi 31714rm -f conftest.err conftest.$ac_objext \ 31715 conftest$ac_exeext conftest.$ac_ext 31716LIBS=$ac_check_lib_save_LIBS 31717fi 31718echo "$as_me:$LINENO: result: $ac_cv_lib_md5_MD5Init" >&5 31719echo "${ECHO_T}$ac_cv_lib_md5_MD5Init" >&6 31720if test $ac_cv_lib_md5_MD5Init = yes; then 31721 cat >>confdefs.h <<_ACEOF 31722#define HAVE_LIBMD5 1 31723_ACEOF 31724 31725 LIBS="-lmd5 $LIBS" 31726 31727else 31728 31729echo "$as_me:$LINENO: checking for MD5Init in -lmd" >&5 31730echo $ECHO_N "checking for MD5Init in -lmd... $ECHO_C" >&6 31731if test "${ac_cv_lib_md_MD5Init+set}" = set; then 31732 echo $ECHO_N "(cached) $ECHO_C" >&6 31733else 31734 ac_check_lib_save_LIBS=$LIBS 31735LIBS="-lmd $LIBS" 31736cat >conftest.$ac_ext <<_ACEOF 31737/* confdefs.h. */ 31738_ACEOF 31739cat confdefs.h >>conftest.$ac_ext 31740cat >>conftest.$ac_ext <<_ACEOF 31741/* end confdefs.h. */ 31742 31743/* Override any gcc2 internal prototype to avoid an error. */ 31744#ifdef __cplusplus 31745extern "C" 31746#endif 31747/* We use char because int might match the return type of a gcc2 31748 builtin and then its argument prototype would still apply. */ 31749char MD5Init (); 31750int 31751main () 31752{ 31753MD5Init (); 31754 ; 31755 return 0; 31756} 31757_ACEOF 31758rm -f conftest.$ac_objext conftest$ac_exeext 31759if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 31760 (eval $ac_link) 2>conftest.er1 31761 ac_status=$? 31762 grep -v '^ *+' conftest.er1 >conftest.err 31763 rm -f conftest.er1 31764 cat conftest.err >&5 31765 echo "$as_me:$LINENO: \$? = $ac_status" >&5 31766 (exit $ac_status); } && 31767 { ac_try='test -z "$ac_c_werror_flag" 31768 || test ! -s conftest.err' 31769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 31770 (eval $ac_try) 2>&5 31771 ac_status=$? 31772 echo "$as_me:$LINENO: \$? = $ac_status" >&5 31773 (exit $ac_status); }; } && 31774 { ac_try='test -s conftest$ac_exeext' 31775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 31776 (eval $ac_try) 2>&5 31777 ac_status=$? 31778 echo "$as_me:$LINENO: \$? = $ac_status" >&5 31779 (exit $ac_status); }; }; then 31780 ac_cv_lib_md_MD5Init=yes 31781else 31782 echo "$as_me: failed program was:" >&5 31783sed 's/^/| /' conftest.$ac_ext >&5 31784 31785ac_cv_lib_md_MD5Init=no 31786fi 31787rm -f conftest.err conftest.$ac_objext \ 31788 conftest$ac_exeext conftest.$ac_ext 31789LIBS=$ac_check_lib_save_LIBS 31790fi 31791echo "$as_me:$LINENO: result: $ac_cv_lib_md_MD5Init" >&5 31792echo "${ECHO_T}$ac_cv_lib_md_MD5Init" >&6 31793if test $ac_cv_lib_md_MD5Init = yes; then 31794 cat >>confdefs.h <<_ACEOF 31795#define HAVE_LIBMD 1 31796_ACEOF 31797 31798 LIBS="-lmd $LIBS" 31799 31800fi 31801 31802fi 31803 31804 31805for ac_func in MD5Init 31806do 31807as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 31808echo "$as_me:$LINENO: checking for $ac_func" >&5 31809echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 31810if eval "test \"\${$as_ac_var+set}\" = set"; then 31811 echo $ECHO_N "(cached) $ECHO_C" >&6 31812else 31813 cat >conftest.$ac_ext <<_ACEOF 31814/* confdefs.h. */ 31815_ACEOF 31816cat confdefs.h >>conftest.$ac_ext 31817cat >>conftest.$ac_ext <<_ACEOF 31818/* end confdefs.h. */ 31819/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 31820 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 31821#define $ac_func innocuous_$ac_func 31822 31823/* System header to define __stub macros and hopefully few prototypes, 31824 which can conflict with char $ac_func (); below. 31825 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 31826 <limits.h> exists even on freestanding compilers. */ 31827 31828#ifdef __STDC__ 31829# include <limits.h> 31830#else 31831# include <assert.h> 31832#endif 31833 31834#undef $ac_func 31835 31836/* Override any gcc2 internal prototype to avoid an error. */ 31837#ifdef __cplusplus 31838extern "C" 31839{ 31840#endif 31841/* We use char because int might match the return type of a gcc2 31842 builtin and then its argument prototype would still apply. */ 31843char $ac_func (); 31844/* The GNU C library defines this for functions which it implements 31845 to always fail with ENOSYS. Some functions are actually named 31846 something starting with __ and the normal name is an alias. */ 31847#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 31848choke me 31849#else 31850char (*f) () = $ac_func; 31851#endif 31852#ifdef __cplusplus 31853} 31854#endif 31855 31856int 31857main () 31858{ 31859return f != $ac_func; 31860 ; 31861 return 0; 31862} 31863_ACEOF 31864rm -f conftest.$ac_objext conftest$ac_exeext 31865if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 31866 (eval $ac_link) 2>conftest.er1 31867 ac_status=$? 31868 grep -v '^ *+' conftest.er1 >conftest.err 31869 rm -f conftest.er1 31870 cat conftest.err >&5 31871 echo "$as_me:$LINENO: \$? = $ac_status" >&5 31872 (exit $ac_status); } && 31873 { ac_try='test -z "$ac_c_werror_flag" 31874 || test ! -s conftest.err' 31875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 31876 (eval $ac_try) 2>&5 31877 ac_status=$? 31878 echo "$as_me:$LINENO: \$? = $ac_status" >&5 31879 (exit $ac_status); }; } && 31880 { ac_try='test -s conftest$ac_exeext' 31881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 31882 (eval $ac_try) 2>&5 31883 ac_status=$? 31884 echo "$as_me:$LINENO: \$? = $ac_status" >&5 31885 (exit $ac_status); }; }; then 31886 eval "$as_ac_var=yes" 31887else 31888 echo "$as_me: failed program was:" >&5 31889sed 's/^/| /' conftest.$ac_ext >&5 31890 31891eval "$as_ac_var=no" 31892fi 31893rm -f conftest.err conftest.$ac_objext \ 31894 conftest$ac_exeext conftest.$ac_ext 31895fi 31896echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 31897echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 31898if test `eval echo '${'$as_ac_var'}'` = yes; then 31899 cat >>confdefs.h <<_ACEOF 31900#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 31901_ACEOF 31902 31903fi 31904done 31905 31906 31907 31908for ac_header in readline/history.h readline/readline.h 31909do 31910as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 31911if eval "test \"\${$as_ac_Header+set}\" = set"; then 31912 echo "$as_me:$LINENO: checking for $ac_header" >&5 31913echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 31914if eval "test \"\${$as_ac_Header+set}\" = set"; then 31915 echo $ECHO_N "(cached) $ECHO_C" >&6 31916fi 31917echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 31918echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 31919else 31920 # Is the header compilable? 31921echo "$as_me:$LINENO: checking $ac_header usability" >&5 31922echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 31923cat >conftest.$ac_ext <<_ACEOF 31924/* confdefs.h. */ 31925_ACEOF 31926cat confdefs.h >>conftest.$ac_ext 31927cat >>conftest.$ac_ext <<_ACEOF 31928/* end confdefs.h. */ 31929$ac_includes_default 31930#include <$ac_header> 31931_ACEOF 31932rm -f conftest.$ac_objext 31933if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 31934 (eval $ac_compile) 2>conftest.er1 31935 ac_status=$? 31936 grep -v '^ *+' conftest.er1 >conftest.err 31937 rm -f conftest.er1 31938 cat conftest.err >&5 31939 echo "$as_me:$LINENO: \$? = $ac_status" >&5 31940 (exit $ac_status); } && 31941 { ac_try='test -z "$ac_c_werror_flag" 31942 || test ! -s conftest.err' 31943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 31944 (eval $ac_try) 2>&5 31945 ac_status=$? 31946 echo "$as_me:$LINENO: \$? = $ac_status" >&5 31947 (exit $ac_status); }; } && 31948 { ac_try='test -s conftest.$ac_objext' 31949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 31950 (eval $ac_try) 2>&5 31951 ac_status=$? 31952 echo "$as_me:$LINENO: \$? = $ac_status" >&5 31953 (exit $ac_status); }; }; then 31954 ac_header_compiler=yes 31955else 31956 echo "$as_me: failed program was:" >&5 31957sed 's/^/| /' conftest.$ac_ext >&5 31958 31959ac_header_compiler=no 31960fi 31961rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 31962echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 31963echo "${ECHO_T}$ac_header_compiler" >&6 31964 31965# Is the header present? 31966echo "$as_me:$LINENO: checking $ac_header presence" >&5 31967echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 31968cat >conftest.$ac_ext <<_ACEOF 31969/* confdefs.h. */ 31970_ACEOF 31971cat confdefs.h >>conftest.$ac_ext 31972cat >>conftest.$ac_ext <<_ACEOF 31973/* end confdefs.h. */ 31974#include <$ac_header> 31975_ACEOF 31976if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 31977 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 31978 ac_status=$? 31979 grep -v '^ *+' conftest.er1 >conftest.err 31980 rm -f conftest.er1 31981 cat conftest.err >&5 31982 echo "$as_me:$LINENO: \$? = $ac_status" >&5 31983 (exit $ac_status); } >/dev/null; then 31984 if test -s conftest.err; then 31985 ac_cpp_err=$ac_c_preproc_warn_flag 31986 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 31987 else 31988 ac_cpp_err= 31989 fi 31990else 31991 ac_cpp_err=yes 31992fi 31993if test -z "$ac_cpp_err"; then 31994 ac_header_preproc=yes 31995else 31996 echo "$as_me: failed program was:" >&5 31997sed 's/^/| /' conftest.$ac_ext >&5 31998 31999 ac_header_preproc=no 32000fi 32001rm -f conftest.err conftest.$ac_ext 32002echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 32003echo "${ECHO_T}$ac_header_preproc" >&6 32004 32005# So? What about this header? 32006case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 32007 yes:no: ) 32008 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 32009echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 32010 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 32011echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 32012 ac_header_preproc=yes 32013 ;; 32014 no:yes:* ) 32015 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 32016echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 32017 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 32018echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 32019 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 32020echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 32021 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 32022echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 32023 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 32024echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 32025 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 32026echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 32027 ( 32028 cat <<\_ASBOX 32029## ------------------------------ ## 32030## Report this to the ntp lists. ## 32031## ------------------------------ ## 32032_ASBOX 32033 ) | 32034 sed "s/^/$as_me: WARNING: /" >&2 32035 ;; 32036esac 32037echo "$as_me:$LINENO: checking for $ac_header" >&5 32038echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 32039if eval "test \"\${$as_ac_Header+set}\" = set"; then 32040 echo $ECHO_N "(cached) $ECHO_C" >&6 32041else 32042 eval "$as_ac_Header=\$ac_header_preproc" 32043fi 32044echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 32045echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 32046 32047fi 32048if test `eval echo '${'$as_ac_Header'}'` = yes; then 32049 cat >>confdefs.h <<_ACEOF 32050#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 32051_ACEOF 32052 32053fi 32054 32055done 32056 32057case "$ac_cv_header_readline_history_h$ac_cv_header_readline_readline_h" in 32058 *no*) ;; 32059 *) save_LIBS=$LIBS 32060 LIBS= 32061 # Ralf Wildenhues: either unset ... or cache READLINE_LIBS 32062 unset ac_cv_lib_readline_readline 32063 32064echo "$as_me:$LINENO: checking for readline in -lreadline" >&5 32065echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6 32066if test "${ac_cv_lib_readline_readline+set}" = set; then 32067 echo $ECHO_N "(cached) $ECHO_C" >&6 32068else 32069 ac_check_lib_save_LIBS=$LIBS 32070LIBS="-lreadline $LIBS" 32071cat >conftest.$ac_ext <<_ACEOF 32072/* confdefs.h. */ 32073_ACEOF 32074cat confdefs.h >>conftest.$ac_ext 32075cat >>conftest.$ac_ext <<_ACEOF 32076/* end confdefs.h. */ 32077 32078/* Override any gcc2 internal prototype to avoid an error. */ 32079#ifdef __cplusplus 32080extern "C" 32081#endif 32082/* We use char because int might match the return type of a gcc2 32083 builtin and then its argument prototype would still apply. */ 32084char readline (); 32085int 32086main () 32087{ 32088readline (); 32089 ; 32090 return 0; 32091} 32092_ACEOF 32093rm -f conftest.$ac_objext conftest$ac_exeext 32094if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 32095 (eval $ac_link) 2>conftest.er1 32096 ac_status=$? 32097 grep -v '^ *+' conftest.er1 >conftest.err 32098 rm -f conftest.er1 32099 cat conftest.err >&5 32100 echo "$as_me:$LINENO: \$? = $ac_status" >&5 32101 (exit $ac_status); } && 32102 { ac_try='test -z "$ac_c_werror_flag" 32103 || test ! -s conftest.err' 32104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 32105 (eval $ac_try) 2>&5 32106 ac_status=$? 32107 echo "$as_me:$LINENO: \$? = $ac_status" >&5 32108 (exit $ac_status); }; } && 32109 { ac_try='test -s conftest$ac_exeext' 32110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 32111 (eval $ac_try) 2>&5 32112 ac_status=$? 32113 echo "$as_me:$LINENO: \$? = $ac_status" >&5 32114 (exit $ac_status); }; }; then 32115 ac_cv_lib_readline_readline=yes 32116else 32117 echo "$as_me: failed program was:" >&5 32118sed 's/^/| /' conftest.$ac_ext >&5 32119 32120ac_cv_lib_readline_readline=no 32121fi 32122rm -f conftest.err conftest.$ac_objext \ 32123 conftest$ac_exeext conftest.$ac_ext 32124LIBS=$ac_check_lib_save_LIBS 32125fi 32126echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5 32127echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6 32128if test $ac_cv_lib_readline_readline = yes; then 32129 cat >>confdefs.h <<_ACEOF 32130#define HAVE_LIBREADLINE 1 32131_ACEOF 32132 32133 LIBS="-lreadline $LIBS" 32134 32135else 32136 { echo "$as_me:$LINENO: Trying again with -lcurses" >&5 32137echo "$as_me: Trying again with -lcurses" >&6;} 32138 unset ac_cv_lib_readline_readline 32139 echo "$as_me:$LINENO: checking for readline in -lreadline" >&5 32140echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6 32141if test "${ac_cv_lib_readline_readline+set}" = set; then 32142 echo $ECHO_N "(cached) $ECHO_C" >&6 32143else 32144 ac_check_lib_save_LIBS=$LIBS 32145LIBS="-lreadline -lcurses $LIBS" 32146cat >conftest.$ac_ext <<_ACEOF 32147/* confdefs.h. */ 32148_ACEOF 32149cat confdefs.h >>conftest.$ac_ext 32150cat >>conftest.$ac_ext <<_ACEOF 32151/* end confdefs.h. */ 32152 32153/* Override any gcc2 internal prototype to avoid an error. */ 32154#ifdef __cplusplus 32155extern "C" 32156#endif 32157/* We use char because int might match the return type of a gcc2 32158 builtin and then its argument prototype would still apply. */ 32159char readline (); 32160int 32161main () 32162{ 32163readline (); 32164 ; 32165 return 0; 32166} 32167_ACEOF 32168rm -f conftest.$ac_objext conftest$ac_exeext 32169if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 32170 (eval $ac_link) 2>conftest.er1 32171 ac_status=$? 32172 grep -v '^ *+' conftest.er1 >conftest.err 32173 rm -f conftest.er1 32174 cat conftest.err >&5 32175 echo "$as_me:$LINENO: \$? = $ac_status" >&5 32176 (exit $ac_status); } && 32177 { ac_try='test -z "$ac_c_werror_flag" 32178 || test ! -s conftest.err' 32179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 32180 (eval $ac_try) 2>&5 32181 ac_status=$? 32182 echo "$as_me:$LINENO: \$? = $ac_status" >&5 32183 (exit $ac_status); }; } && 32184 { ac_try='test -s conftest$ac_exeext' 32185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 32186 (eval $ac_try) 2>&5 32187 ac_status=$? 32188 echo "$as_me:$LINENO: \$? = $ac_status" >&5 32189 (exit $ac_status); }; }; then 32190 ac_cv_lib_readline_readline=yes 32191else 32192 echo "$as_me: failed program was:" >&5 32193sed 's/^/| /' conftest.$ac_ext >&5 32194 32195ac_cv_lib_readline_readline=no 32196fi 32197rm -f conftest.err conftest.$ac_objext \ 32198 conftest$ac_exeext conftest.$ac_ext 32199LIBS=$ac_check_lib_save_LIBS 32200fi 32201echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5 32202echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6 32203if test $ac_cv_lib_readline_readline = yes; then 32204 LIBS="-lreadline -lcurses $LIBS" 32205 cat >>confdefs.h <<\_ACEOF 32206#define HAVE_LIBREADLINE 1 32207_ACEOF 32208 32209 32210cat >>confdefs.h <<\_ACEOF 32211#define HAVE_LIBCURSES 32212_ACEOF 32213 32214else 32215 echo "$as_me:$LINENO: checking for readline in -ledit" >&5 32216echo $ECHO_N "checking for readline in -ledit... $ECHO_C" >&6 32217if test "${ac_cv_lib_edit_readline+set}" = set; then 32218 echo $ECHO_N "(cached) $ECHO_C" >&6 32219else 32220 ac_check_lib_save_LIBS=$LIBS 32221LIBS="-ledit -lcurses $LIBS" 32222cat >conftest.$ac_ext <<_ACEOF 32223/* confdefs.h. */ 32224_ACEOF 32225cat confdefs.h >>conftest.$ac_ext 32226cat >>conftest.$ac_ext <<_ACEOF 32227/* end confdefs.h. */ 32228 32229/* Override any gcc2 internal prototype to avoid an error. */ 32230#ifdef __cplusplus 32231extern "C" 32232#endif 32233/* We use char because int might match the return type of a gcc2 32234 builtin and then its argument prototype would still apply. */ 32235char readline (); 32236int 32237main () 32238{ 32239readline (); 32240 ; 32241 return 0; 32242} 32243_ACEOF 32244rm -f conftest.$ac_objext conftest$ac_exeext 32245if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 32246 (eval $ac_link) 2>conftest.er1 32247 ac_status=$? 32248 grep -v '^ *+' conftest.er1 >conftest.err 32249 rm -f conftest.er1 32250 cat conftest.err >&5 32251 echo "$as_me:$LINENO: \$? = $ac_status" >&5 32252 (exit $ac_status); } && 32253 { ac_try='test -z "$ac_c_werror_flag" 32254 || test ! -s conftest.err' 32255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 32256 (eval $ac_try) 2>&5 32257 ac_status=$? 32258 echo "$as_me:$LINENO: \$? = $ac_status" >&5 32259 (exit $ac_status); }; } && 32260 { ac_try='test -s conftest$ac_exeext' 32261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 32262 (eval $ac_try) 2>&5 32263 ac_status=$? 32264 echo "$as_me:$LINENO: \$? = $ac_status" >&5 32265 (exit $ac_status); }; }; then 32266 ac_cv_lib_edit_readline=yes 32267else 32268 echo "$as_me: failed program was:" >&5 32269sed 's/^/| /' conftest.$ac_ext >&5 32270 32271ac_cv_lib_edit_readline=no 32272fi 32273rm -f conftest.err conftest.$ac_objext \ 32274 conftest$ac_exeext conftest.$ac_ext 32275LIBS=$ac_check_lib_save_LIBS 32276fi 32277echo "$as_me:$LINENO: result: $ac_cv_lib_edit_readline" >&5 32278echo "${ECHO_T}$ac_cv_lib_edit_readline" >&6 32279if test $ac_cv_lib_edit_readline = yes; then 32280 LIBS="-ledit -lcurses" 32281 32282cat >>confdefs.h <<\_ACEOF 32283#define HAVE_LIBEDIT 32284_ACEOF 32285 32286 32287cat >>confdefs.h <<\_ACEOF 32288#define HAVE_LIBCURSES 32289_ACEOF 32290 32291 32292fi 32293 32294 32295fi 32296 32297fi 32298 32299 READLINE_LIBS=$LIBS 32300 32301 LIBS=$save_LIBS 32302 ;; 32303esac 32304 32305 32306case "$host" in 32307 *-*-linux*) ;; 32308 *) 32309 32310echo "$as_me:$LINENO: checking for sched_setscheduler in -lrt" >&5 32311echo $ECHO_N "checking for sched_setscheduler in -lrt... $ECHO_C" >&6 32312if test "${ac_cv_lib_rt_sched_setscheduler+set}" = set; then 32313 echo $ECHO_N "(cached) $ECHO_C" >&6 32314else 32315 ac_check_lib_save_LIBS=$LIBS 32316LIBS="-lrt $LIBS" 32317cat >conftest.$ac_ext <<_ACEOF 32318/* confdefs.h. */ 32319_ACEOF 32320cat confdefs.h >>conftest.$ac_ext 32321cat >>conftest.$ac_ext <<_ACEOF 32322/* end confdefs.h. */ 32323 32324/* Override any gcc2 internal prototype to avoid an error. */ 32325#ifdef __cplusplus 32326extern "C" 32327#endif 32328/* We use char because int might match the return type of a gcc2 32329 builtin and then its argument prototype would still apply. */ 32330char sched_setscheduler (); 32331int 32332main () 32333{ 32334sched_setscheduler (); 32335 ; 32336 return 0; 32337} 32338_ACEOF 32339rm -f conftest.$ac_objext conftest$ac_exeext 32340if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 32341 (eval $ac_link) 2>conftest.er1 32342 ac_status=$? 32343 grep -v '^ *+' conftest.er1 >conftest.err 32344 rm -f conftest.er1 32345 cat conftest.err >&5 32346 echo "$as_me:$LINENO: \$? = $ac_status" >&5 32347 (exit $ac_status); } && 32348 { ac_try='test -z "$ac_c_werror_flag" 32349 || test ! -s conftest.err' 32350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 32351 (eval $ac_try) 2>&5 32352 ac_status=$? 32353 echo "$as_me:$LINENO: \$? = $ac_status" >&5 32354 (exit $ac_status); }; } && 32355 { ac_try='test -s conftest$ac_exeext' 32356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 32357 (eval $ac_try) 2>&5 32358 ac_status=$? 32359 echo "$as_me:$LINENO: \$? = $ac_status" >&5 32360 (exit $ac_status); }; }; then 32361 ac_cv_lib_rt_sched_setscheduler=yes 32362else 32363 echo "$as_me: failed program was:" >&5 32364sed 's/^/| /' conftest.$ac_ext >&5 32365 32366ac_cv_lib_rt_sched_setscheduler=no 32367fi 32368rm -f conftest.err conftest.$ac_objext \ 32369 conftest$ac_exeext conftest.$ac_ext 32370LIBS=$ac_check_lib_save_LIBS 32371fi 32372echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_setscheduler" >&5 32373echo "${ECHO_T}$ac_cv_lib_rt_sched_setscheduler" >&6 32374if test $ac_cv_lib_rt_sched_setscheduler = yes; then 32375 cat >>confdefs.h <<_ACEOF 32376#define HAVE_LIBRT 1 32377_ACEOF 32378 32379 LIBS="-lrt $LIBS" 32380 32381else 32382 32383echo "$as_me:$LINENO: checking for sched_setscheduler in -lposix4" >&5 32384echo $ECHO_N "checking for sched_setscheduler in -lposix4... $ECHO_C" >&6 32385if test "${ac_cv_lib_posix4_sched_setscheduler+set}" = set; then 32386 echo $ECHO_N "(cached) $ECHO_C" >&6 32387else 32388 ac_check_lib_save_LIBS=$LIBS 32389LIBS="-lposix4 $LIBS" 32390cat >conftest.$ac_ext <<_ACEOF 32391/* confdefs.h. */ 32392_ACEOF 32393cat confdefs.h >>conftest.$ac_ext 32394cat >>conftest.$ac_ext <<_ACEOF 32395/* end confdefs.h. */ 32396 32397/* Override any gcc2 internal prototype to avoid an error. */ 32398#ifdef __cplusplus 32399extern "C" 32400#endif 32401/* We use char because int might match the return type of a gcc2 32402 builtin and then its argument prototype would still apply. */ 32403char sched_setscheduler (); 32404int 32405main () 32406{ 32407sched_setscheduler (); 32408 ; 32409 return 0; 32410} 32411_ACEOF 32412rm -f conftest.$ac_objext conftest$ac_exeext 32413if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 32414 (eval $ac_link) 2>conftest.er1 32415 ac_status=$? 32416 grep -v '^ *+' conftest.er1 >conftest.err 32417 rm -f conftest.er1 32418 cat conftest.err >&5 32419 echo "$as_me:$LINENO: \$? = $ac_status" >&5 32420 (exit $ac_status); } && 32421 { ac_try='test -z "$ac_c_werror_flag" 32422 || test ! -s conftest.err' 32423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 32424 (eval $ac_try) 2>&5 32425 ac_status=$? 32426 echo "$as_me:$LINENO: \$? = $ac_status" >&5 32427 (exit $ac_status); }; } && 32428 { ac_try='test -s conftest$ac_exeext' 32429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 32430 (eval $ac_try) 2>&5 32431 ac_status=$? 32432 echo "$as_me:$LINENO: \$? = $ac_status" >&5 32433 (exit $ac_status); }; }; then 32434 ac_cv_lib_posix4_sched_setscheduler=yes 32435else 32436 echo "$as_me: failed program was:" >&5 32437sed 's/^/| /' conftest.$ac_ext >&5 32438 32439ac_cv_lib_posix4_sched_setscheduler=no 32440fi 32441rm -f conftest.err conftest.$ac_objext \ 32442 conftest$ac_exeext conftest.$ac_ext 32443LIBS=$ac_check_lib_save_LIBS 32444fi 32445echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_setscheduler" >&5 32446echo "${ECHO_T}$ac_cv_lib_posix4_sched_setscheduler" >&6 32447if test $ac_cv_lib_posix4_sched_setscheduler = yes; then 32448 cat >>confdefs.h <<_ACEOF 32449#define HAVE_LIBPOSIX4 1 32450_ACEOF 32451 32452 LIBS="-lposix4 $LIBS" 32453 32454fi 32455 32456fi 32457 32458 ;; 32459esac 32460 32461echo "$as_me:$LINENO: checking for setsockopt" >&5 32462echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6 32463if test "${ac_cv_func_setsockopt+set}" = set; then 32464 echo $ECHO_N "(cached) $ECHO_C" >&6 32465else 32466 cat >conftest.$ac_ext <<_ACEOF 32467/* confdefs.h. */ 32468_ACEOF 32469cat confdefs.h >>conftest.$ac_ext 32470cat >>conftest.$ac_ext <<_ACEOF 32471/* end confdefs.h. */ 32472/* Define setsockopt to an innocuous variant, in case <limits.h> declares setsockopt. 32473 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 32474#define setsockopt innocuous_setsockopt 32475 32476/* System header to define __stub macros and hopefully few prototypes, 32477 which can conflict with char setsockopt (); below. 32478 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 32479 <limits.h> exists even on freestanding compilers. */ 32480 32481#ifdef __STDC__ 32482# include <limits.h> 32483#else 32484# include <assert.h> 32485#endif 32486 32487#undef setsockopt 32488 32489/* Override any gcc2 internal prototype to avoid an error. */ 32490#ifdef __cplusplus 32491extern "C" 32492{ 32493#endif 32494/* We use char because int might match the return type of a gcc2 32495 builtin and then its argument prototype would still apply. */ 32496char setsockopt (); 32497/* The GNU C library defines this for functions which it implements 32498 to always fail with ENOSYS. Some functions are actually named 32499 something starting with __ and the normal name is an alias. */ 32500#if defined (__stub_setsockopt) || defined (__stub___setsockopt) 32501choke me 32502#else 32503char (*f) () = setsockopt; 32504#endif 32505#ifdef __cplusplus 32506} 32507#endif 32508 32509int 32510main () 32511{ 32512return f != setsockopt; 32513 ; 32514 return 0; 32515} 32516_ACEOF 32517rm -f conftest.$ac_objext conftest$ac_exeext 32518if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 32519 (eval $ac_link) 2>conftest.er1 32520 ac_status=$? 32521 grep -v '^ *+' conftest.er1 >conftest.err 32522 rm -f conftest.er1 32523 cat conftest.err >&5 32524 echo "$as_me:$LINENO: \$? = $ac_status" >&5 32525 (exit $ac_status); } && 32526 { ac_try='test -z "$ac_c_werror_flag" 32527 || test ! -s conftest.err' 32528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 32529 (eval $ac_try) 2>&5 32530 ac_status=$? 32531 echo "$as_me:$LINENO: \$? = $ac_status" >&5 32532 (exit $ac_status); }; } && 32533 { ac_try='test -s conftest$ac_exeext' 32534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 32535 (eval $ac_try) 2>&5 32536 ac_status=$? 32537 echo "$as_me:$LINENO: \$? = $ac_status" >&5 32538 (exit $ac_status); }; }; then 32539 ac_cv_func_setsockopt=yes 32540else 32541 echo "$as_me: failed program was:" >&5 32542sed 's/^/| /' conftest.$ac_ext >&5 32543 32544ac_cv_func_setsockopt=no 32545fi 32546rm -f conftest.err conftest.$ac_objext \ 32547 conftest$ac_exeext conftest.$ac_ext 32548fi 32549echo "$as_me:$LINENO: result: $ac_cv_func_setsockopt" >&5 32550echo "${ECHO_T}$ac_cv_func_setsockopt" >&6 32551if test $ac_cv_func_setsockopt = yes; then 32552 : 32553else 32554 32555echo "$as_me:$LINENO: checking for setsockopt in -lsocket" >&5 32556echo $ECHO_N "checking for setsockopt in -lsocket... $ECHO_C" >&6 32557if test "${ac_cv_lib_socket_setsockopt+set}" = set; then 32558 echo $ECHO_N "(cached) $ECHO_C" >&6 32559else 32560 ac_check_lib_save_LIBS=$LIBS 32561LIBS="-lsocket $LIBS" 32562cat >conftest.$ac_ext <<_ACEOF 32563/* confdefs.h. */ 32564_ACEOF 32565cat confdefs.h >>conftest.$ac_ext 32566cat >>conftest.$ac_ext <<_ACEOF 32567/* end confdefs.h. */ 32568 32569/* Override any gcc2 internal prototype to avoid an error. */ 32570#ifdef __cplusplus 32571extern "C" 32572#endif 32573/* We use char because int might match the return type of a gcc2 32574 builtin and then its argument prototype would still apply. */ 32575char setsockopt (); 32576int 32577main () 32578{ 32579setsockopt (); 32580 ; 32581 return 0; 32582} 32583_ACEOF 32584rm -f conftest.$ac_objext conftest$ac_exeext 32585if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 32586 (eval $ac_link) 2>conftest.er1 32587 ac_status=$? 32588 grep -v '^ *+' conftest.er1 >conftest.err 32589 rm -f conftest.er1 32590 cat conftest.err >&5 32591 echo "$as_me:$LINENO: \$? = $ac_status" >&5 32592 (exit $ac_status); } && 32593 { ac_try='test -z "$ac_c_werror_flag" 32594 || test ! -s conftest.err' 32595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 32596 (eval $ac_try) 2>&5 32597 ac_status=$? 32598 echo "$as_me:$LINENO: \$? = $ac_status" >&5 32599 (exit $ac_status); }; } && 32600 { ac_try='test -s conftest$ac_exeext' 32601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 32602 (eval $ac_try) 2>&5 32603 ac_status=$? 32604 echo "$as_me:$LINENO: \$? = $ac_status" >&5 32605 (exit $ac_status); }; }; then 32606 ac_cv_lib_socket_setsockopt=yes 32607else 32608 echo "$as_me: failed program was:" >&5 32609sed 's/^/| /' conftest.$ac_ext >&5 32610 32611ac_cv_lib_socket_setsockopt=no 32612fi 32613rm -f conftest.err conftest.$ac_objext \ 32614 conftest$ac_exeext conftest.$ac_ext 32615LIBS=$ac_check_lib_save_LIBS 32616fi 32617echo "$as_me:$LINENO: result: $ac_cv_lib_socket_setsockopt" >&5 32618echo "${ECHO_T}$ac_cv_lib_socket_setsockopt" >&6 32619if test $ac_cv_lib_socket_setsockopt = yes; then 32620 cat >>confdefs.h <<_ACEOF 32621#define HAVE_LIBSOCKET 1 32622_ACEOF 32623 32624 LIBS="-lsocket $LIBS" 32625 32626fi 32627 32628 32629echo "$as_me:$LINENO: checking for setsockopt in -lxnet" >&5 32630echo $ECHO_N "checking for setsockopt in -lxnet... $ECHO_C" >&6 32631if test "${ac_cv_lib_xnet_setsockopt+set}" = set; then 32632 echo $ECHO_N "(cached) $ECHO_C" >&6 32633else 32634 ac_check_lib_save_LIBS=$LIBS 32635LIBS="-lxnet $LIBS" 32636cat >conftest.$ac_ext <<_ACEOF 32637/* confdefs.h. */ 32638_ACEOF 32639cat confdefs.h >>conftest.$ac_ext 32640cat >>conftest.$ac_ext <<_ACEOF 32641/* end confdefs.h. */ 32642 32643/* Override any gcc2 internal prototype to avoid an error. */ 32644#ifdef __cplusplus 32645extern "C" 32646#endif 32647/* We use char because int might match the return type of a gcc2 32648 builtin and then its argument prototype would still apply. */ 32649char setsockopt (); 32650int 32651main () 32652{ 32653setsockopt (); 32654 ; 32655 return 0; 32656} 32657_ACEOF 32658rm -f conftest.$ac_objext conftest$ac_exeext 32659if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 32660 (eval $ac_link) 2>conftest.er1 32661 ac_status=$? 32662 grep -v '^ *+' conftest.er1 >conftest.err 32663 rm -f conftest.er1 32664 cat conftest.err >&5 32665 echo "$as_me:$LINENO: \$? = $ac_status" >&5 32666 (exit $ac_status); } && 32667 { ac_try='test -z "$ac_c_werror_flag" 32668 || test ! -s conftest.err' 32669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 32670 (eval $ac_try) 2>&5 32671 ac_status=$? 32672 echo "$as_me:$LINENO: \$? = $ac_status" >&5 32673 (exit $ac_status); }; } && 32674 { ac_try='test -s conftest$ac_exeext' 32675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 32676 (eval $ac_try) 2>&5 32677 ac_status=$? 32678 echo "$as_me:$LINENO: \$? = $ac_status" >&5 32679 (exit $ac_status); }; }; then 32680 ac_cv_lib_xnet_setsockopt=yes 32681else 32682 echo "$as_me: failed program was:" >&5 32683sed 's/^/| /' conftest.$ac_ext >&5 32684 32685ac_cv_lib_xnet_setsockopt=no 32686fi 32687rm -f conftest.err conftest.$ac_objext \ 32688 conftest$ac_exeext conftest.$ac_ext 32689LIBS=$ac_check_lib_save_LIBS 32690fi 32691echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_setsockopt" >&5 32692echo "${ECHO_T}$ac_cv_lib_xnet_setsockopt" >&6 32693if test $ac_cv_lib_xnet_setsockopt = yes; then 32694 cat >>confdefs.h <<_ACEOF 32695#define HAVE_LIBXNET 1 32696_ACEOF 32697 32698 LIBS="-lxnet $LIBS" 32699 32700fi 32701 32702fi 32703 32704 32705echo "$as_me:$LINENO: checking for ANSI C header files" >&5 32706echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 32707if test "${ac_cv_header_stdc+set}" = set; then 32708 echo $ECHO_N "(cached) $ECHO_C" >&6 32709else 32710 cat >conftest.$ac_ext <<_ACEOF 32711/* confdefs.h. */ 32712_ACEOF 32713cat confdefs.h >>conftest.$ac_ext 32714cat >>conftest.$ac_ext <<_ACEOF 32715/* end confdefs.h. */ 32716#include <stdlib.h> 32717#include <stdarg.h> 32718#include <string.h> 32719#include <float.h> 32720 32721int 32722main () 32723{ 32724 32725 ; 32726 return 0; 32727} 32728_ACEOF 32729rm -f conftest.$ac_objext 32730if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 32731 (eval $ac_compile) 2>conftest.er1 32732 ac_status=$? 32733 grep -v '^ *+' conftest.er1 >conftest.err 32734 rm -f conftest.er1 32735 cat conftest.err >&5 32736 echo "$as_me:$LINENO: \$? = $ac_status" >&5 32737 (exit $ac_status); } && 32738 { ac_try='test -z "$ac_c_werror_flag" 32739 || test ! -s conftest.err' 32740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 32741 (eval $ac_try) 2>&5 32742 ac_status=$? 32743 echo "$as_me:$LINENO: \$? = $ac_status" >&5 32744 (exit $ac_status); }; } && 32745 { ac_try='test -s conftest.$ac_objext' 32746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 32747 (eval $ac_try) 2>&5 32748 ac_status=$? 32749 echo "$as_me:$LINENO: \$? = $ac_status" >&5 32750 (exit $ac_status); }; }; then 32751 ac_cv_header_stdc=yes 32752else 32753 echo "$as_me: failed program was:" >&5 32754sed 's/^/| /' conftest.$ac_ext >&5 32755 32756ac_cv_header_stdc=no 32757fi 32758rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 32759 32760if test $ac_cv_header_stdc = yes; then 32761 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 32762 cat >conftest.$ac_ext <<_ACEOF 32763/* confdefs.h. */ 32764_ACEOF 32765cat confdefs.h >>conftest.$ac_ext 32766cat >>conftest.$ac_ext <<_ACEOF 32767/* end confdefs.h. */ 32768#include <string.h> 32769 32770_ACEOF 32771if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 32772 $EGREP "memchr" >/dev/null 2>&1; then 32773 : 32774else 32775 ac_cv_header_stdc=no 32776fi 32777rm -f conftest* 32778 32779fi 32780 32781if test $ac_cv_header_stdc = yes; then 32782 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 32783 cat >conftest.$ac_ext <<_ACEOF 32784/* confdefs.h. */ 32785_ACEOF 32786cat confdefs.h >>conftest.$ac_ext 32787cat >>conftest.$ac_ext <<_ACEOF 32788/* end confdefs.h. */ 32789#include <stdlib.h> 32790 32791_ACEOF 32792if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 32793 $EGREP "free" >/dev/null 2>&1; then 32794 : 32795else 32796 ac_cv_header_stdc=no 32797fi 32798rm -f conftest* 32799 32800fi 32801 32802if test $ac_cv_header_stdc = yes; then 32803 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 32804 if test "$cross_compiling" = yes; then 32805 : 32806else 32807 cat >conftest.$ac_ext <<_ACEOF 32808/* confdefs.h. */ 32809_ACEOF 32810cat confdefs.h >>conftest.$ac_ext 32811cat >>conftest.$ac_ext <<_ACEOF 32812/* end confdefs.h. */ 32813#include <ctype.h> 32814#if ((' ' & 0x0FF) == 0x020) 32815# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 32816# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 32817#else 32818# define ISLOWER(c) \ 32819 (('a' <= (c) && (c) <= 'i') \ 32820 || ('j' <= (c) && (c) <= 'r') \ 32821 || ('s' <= (c) && (c) <= 'z')) 32822# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 32823#endif 32824 32825#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 32826int 32827main () 32828{ 32829 int i; 32830 for (i = 0; i < 256; i++) 32831 if (XOR (islower (i), ISLOWER (i)) 32832 || toupper (i) != TOUPPER (i)) 32833 exit(2); 32834 exit (0); 32835} 32836_ACEOF 32837rm -f conftest$ac_exeext 32838if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 32839 (eval $ac_link) 2>&5 32840 ac_status=$? 32841 echo "$as_me:$LINENO: \$? = $ac_status" >&5 32842 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 32843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 32844 (eval $ac_try) 2>&5 32845 ac_status=$? 32846 echo "$as_me:$LINENO: \$? = $ac_status" >&5 32847 (exit $ac_status); }; }; then 32848 : 32849else 32850 echo "$as_me: program exited with status $ac_status" >&5 32851echo "$as_me: failed program was:" >&5 32852sed 's/^/| /' conftest.$ac_ext >&5 32853 32854( exit $ac_status ) 32855ac_cv_header_stdc=no 32856fi 32857rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 32858fi 32859fi 32860fi 32861echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 32862echo "${ECHO_T}$ac_cv_header_stdc" >&6 32863if test $ac_cv_header_stdc = yes; then 32864 32865cat >>confdefs.h <<\_ACEOF 32866#define STDC_HEADERS 1 32867_ACEOF 32868 32869fi 32870 32871 32872for ac_header in bstring.h 32873do 32874as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 32875if eval "test \"\${$as_ac_Header+set}\" = set"; then 32876 echo "$as_me:$LINENO: checking for $ac_header" >&5 32877echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 32878if eval "test \"\${$as_ac_Header+set}\" = set"; then 32879 echo $ECHO_N "(cached) $ECHO_C" >&6 32880fi 32881echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 32882echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 32883else 32884 # Is the header compilable? 32885echo "$as_me:$LINENO: checking $ac_header usability" >&5 32886echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 32887cat >conftest.$ac_ext <<_ACEOF 32888/* confdefs.h. */ 32889_ACEOF 32890cat confdefs.h >>conftest.$ac_ext 32891cat >>conftest.$ac_ext <<_ACEOF 32892/* end confdefs.h. */ 32893$ac_includes_default 32894#include <$ac_header> 32895_ACEOF 32896rm -f conftest.$ac_objext 32897if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 32898 (eval $ac_compile) 2>conftest.er1 32899 ac_status=$? 32900 grep -v '^ *+' conftest.er1 >conftest.err 32901 rm -f conftest.er1 32902 cat conftest.err >&5 32903 echo "$as_me:$LINENO: \$? = $ac_status" >&5 32904 (exit $ac_status); } && 32905 { ac_try='test -z "$ac_c_werror_flag" 32906 || test ! -s conftest.err' 32907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 32908 (eval $ac_try) 2>&5 32909 ac_status=$? 32910 echo "$as_me:$LINENO: \$? = $ac_status" >&5 32911 (exit $ac_status); }; } && 32912 { ac_try='test -s conftest.$ac_objext' 32913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 32914 (eval $ac_try) 2>&5 32915 ac_status=$? 32916 echo "$as_me:$LINENO: \$? = $ac_status" >&5 32917 (exit $ac_status); }; }; then 32918 ac_header_compiler=yes 32919else 32920 echo "$as_me: failed program was:" >&5 32921sed 's/^/| /' conftest.$ac_ext >&5 32922 32923ac_header_compiler=no 32924fi 32925rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 32926echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 32927echo "${ECHO_T}$ac_header_compiler" >&6 32928 32929# Is the header present? 32930echo "$as_me:$LINENO: checking $ac_header presence" >&5 32931echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 32932cat >conftest.$ac_ext <<_ACEOF 32933/* confdefs.h. */ 32934_ACEOF 32935cat confdefs.h >>conftest.$ac_ext 32936cat >>conftest.$ac_ext <<_ACEOF 32937/* end confdefs.h. */ 32938#include <$ac_header> 32939_ACEOF 32940if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 32941 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 32942 ac_status=$? 32943 grep -v '^ *+' conftest.er1 >conftest.err 32944 rm -f conftest.er1 32945 cat conftest.err >&5 32946 echo "$as_me:$LINENO: \$? = $ac_status" >&5 32947 (exit $ac_status); } >/dev/null; then 32948 if test -s conftest.err; then 32949 ac_cpp_err=$ac_c_preproc_warn_flag 32950 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 32951 else 32952 ac_cpp_err= 32953 fi 32954else 32955 ac_cpp_err=yes 32956fi 32957if test -z "$ac_cpp_err"; then 32958 ac_header_preproc=yes 32959else 32960 echo "$as_me: failed program was:" >&5 32961sed 's/^/| /' conftest.$ac_ext >&5 32962 32963 ac_header_preproc=no 32964fi 32965rm -f conftest.err conftest.$ac_ext 32966echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 32967echo "${ECHO_T}$ac_header_preproc" >&6 32968 32969# So? What about this header? 32970case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 32971 yes:no: ) 32972 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 32973echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 32974 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 32975echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 32976 ac_header_preproc=yes 32977 ;; 32978 no:yes:* ) 32979 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 32980echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 32981 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 32982echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 32983 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 32984echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 32985 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 32986echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 32987 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 32988echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 32989 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 32990echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 32991 ( 32992 cat <<\_ASBOX 32993## ------------------------------ ## 32994## Report this to the ntp lists. ## 32995## ------------------------------ ## 32996_ASBOX 32997 ) | 32998 sed "s/^/$as_me: WARNING: /" >&2 32999 ;; 33000esac 33001echo "$as_me:$LINENO: checking for $ac_header" >&5 33002echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 33003if eval "test \"\${$as_ac_Header+set}\" = set"; then 33004 echo $ECHO_N "(cached) $ECHO_C" >&6 33005else 33006 eval "$as_ac_Header=\$ac_header_preproc" 33007fi 33008echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 33009echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 33010 33011fi 33012if test `eval echo '${'$as_ac_Header'}'` = yes; then 33013 cat >>confdefs.h <<_ACEOF 33014#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 33015_ACEOF 33016 33017fi 33018 33019done 33020 33021if test "${ac_cv_header_dns_sd_h+set}" = set; then 33022 echo "$as_me:$LINENO: checking for dns_sd.h" >&5 33023echo $ECHO_N "checking for dns_sd.h... $ECHO_C" >&6 33024if test "${ac_cv_header_dns_sd_h+set}" = set; then 33025 echo $ECHO_N "(cached) $ECHO_C" >&6 33026fi 33027echo "$as_me:$LINENO: result: $ac_cv_header_dns_sd_h" >&5 33028echo "${ECHO_T}$ac_cv_header_dns_sd_h" >&6 33029else 33030 # Is the header compilable? 33031echo "$as_me:$LINENO: checking dns_sd.h usability" >&5 33032echo $ECHO_N "checking dns_sd.h usability... $ECHO_C" >&6 33033cat >conftest.$ac_ext <<_ACEOF 33034/* confdefs.h. */ 33035_ACEOF 33036cat confdefs.h >>conftest.$ac_ext 33037cat >>conftest.$ac_ext <<_ACEOF 33038/* end confdefs.h. */ 33039$ac_includes_default 33040#include <dns_sd.h> 33041_ACEOF 33042rm -f conftest.$ac_objext 33043if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 33044 (eval $ac_compile) 2>conftest.er1 33045 ac_status=$? 33046 grep -v '^ *+' conftest.er1 >conftest.err 33047 rm -f conftest.er1 33048 cat conftest.err >&5 33049 echo "$as_me:$LINENO: \$? = $ac_status" >&5 33050 (exit $ac_status); } && 33051 { ac_try='test -z "$ac_c_werror_flag" 33052 || test ! -s conftest.err' 33053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 33054 (eval $ac_try) 2>&5 33055 ac_status=$? 33056 echo "$as_me:$LINENO: \$? = $ac_status" >&5 33057 (exit $ac_status); }; } && 33058 { ac_try='test -s conftest.$ac_objext' 33059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 33060 (eval $ac_try) 2>&5 33061 ac_status=$? 33062 echo "$as_me:$LINENO: \$? = $ac_status" >&5 33063 (exit $ac_status); }; }; then 33064 ac_header_compiler=yes 33065else 33066 echo "$as_me: failed program was:" >&5 33067sed 's/^/| /' conftest.$ac_ext >&5 33068 33069ac_header_compiler=no 33070fi 33071rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 33072echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 33073echo "${ECHO_T}$ac_header_compiler" >&6 33074 33075# Is the header present? 33076echo "$as_me:$LINENO: checking dns_sd.h presence" >&5 33077echo $ECHO_N "checking dns_sd.h presence... $ECHO_C" >&6 33078cat >conftest.$ac_ext <<_ACEOF 33079/* confdefs.h. */ 33080_ACEOF 33081cat confdefs.h >>conftest.$ac_ext 33082cat >>conftest.$ac_ext <<_ACEOF 33083/* end confdefs.h. */ 33084#include <dns_sd.h> 33085_ACEOF 33086if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 33087 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 33088 ac_status=$? 33089 grep -v '^ *+' conftest.er1 >conftest.err 33090 rm -f conftest.er1 33091 cat conftest.err >&5 33092 echo "$as_me:$LINENO: \$? = $ac_status" >&5 33093 (exit $ac_status); } >/dev/null; then 33094 if test -s conftest.err; then 33095 ac_cpp_err=$ac_c_preproc_warn_flag 33096 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 33097 else 33098 ac_cpp_err= 33099 fi 33100else 33101 ac_cpp_err=yes 33102fi 33103if test -z "$ac_cpp_err"; then 33104 ac_header_preproc=yes 33105else 33106 echo "$as_me: failed program was:" >&5 33107sed 's/^/| /' conftest.$ac_ext >&5 33108 33109 ac_header_preproc=no 33110fi 33111rm -f conftest.err conftest.$ac_ext 33112echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 33113echo "${ECHO_T}$ac_header_preproc" >&6 33114 33115# So? What about this header? 33116case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 33117 yes:no: ) 33118 { echo "$as_me:$LINENO: WARNING: dns_sd.h: accepted by the compiler, rejected by the preprocessor!" >&5 33119echo "$as_me: WARNING: dns_sd.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 33120 { echo "$as_me:$LINENO: WARNING: dns_sd.h: proceeding with the compiler's result" >&5 33121echo "$as_me: WARNING: dns_sd.h: proceeding with the compiler's result" >&2;} 33122 ac_header_preproc=yes 33123 ;; 33124 no:yes:* ) 33125 { echo "$as_me:$LINENO: WARNING: dns_sd.h: present but cannot be compiled" >&5 33126echo "$as_me: WARNING: dns_sd.h: present but cannot be compiled" >&2;} 33127 { echo "$as_me:$LINENO: WARNING: dns_sd.h: check for missing prerequisite headers?" >&5 33128echo "$as_me: WARNING: dns_sd.h: check for missing prerequisite headers?" >&2;} 33129 { echo "$as_me:$LINENO: WARNING: dns_sd.h: see the Autoconf documentation" >&5 33130echo "$as_me: WARNING: dns_sd.h: see the Autoconf documentation" >&2;} 33131 { echo "$as_me:$LINENO: WARNING: dns_sd.h: section \"Present But Cannot Be Compiled\"" >&5 33132echo "$as_me: WARNING: dns_sd.h: section \"Present But Cannot Be Compiled\"" >&2;} 33133 { echo "$as_me:$LINENO: WARNING: dns_sd.h: proceeding with the preprocessor's result" >&5 33134echo "$as_me: WARNING: dns_sd.h: proceeding with the preprocessor's result" >&2;} 33135 { echo "$as_me:$LINENO: WARNING: dns_sd.h: in the future, the compiler will take precedence" >&5 33136echo "$as_me: WARNING: dns_sd.h: in the future, the compiler will take precedence" >&2;} 33137 ( 33138 cat <<\_ASBOX 33139## ------------------------------ ## 33140## Report this to the ntp lists. ## 33141## ------------------------------ ## 33142_ASBOX 33143 ) | 33144 sed "s/^/$as_me: WARNING: /" >&2 33145 ;; 33146esac 33147echo "$as_me:$LINENO: checking for dns_sd.h" >&5 33148echo $ECHO_N "checking for dns_sd.h... $ECHO_C" >&6 33149if test "${ac_cv_header_dns_sd_h+set}" = set; then 33150 echo $ECHO_N "(cached) $ECHO_C" >&6 33151else 33152 ac_cv_header_dns_sd_h=$ac_header_preproc 33153fi 33154echo "$as_me:$LINENO: result: $ac_cv_header_dns_sd_h" >&5 33155echo "${ECHO_T}$ac_cv_header_dns_sd_h" >&6 33156 33157fi 33158if test $ac_cv_header_dns_sd_h = yes; then 33159 echo "$as_me:$LINENO: checking for DNSServiceRegister in -ldns_sd" >&5 33160echo $ECHO_N "checking for DNSServiceRegister in -ldns_sd... $ECHO_C" >&6 33161if test "${ac_cv_lib_dns_sd_DNSServiceRegister+set}" = set; then 33162 echo $ECHO_N "(cached) $ECHO_C" >&6 33163else 33164 ac_check_lib_save_LIBS=$LIBS 33165LIBS="-ldns_sd $LIBS" 33166cat >conftest.$ac_ext <<_ACEOF 33167/* confdefs.h. */ 33168_ACEOF 33169cat confdefs.h >>conftest.$ac_ext 33170cat >>conftest.$ac_ext <<_ACEOF 33171/* end confdefs.h. */ 33172 33173/* Override any gcc2 internal prototype to avoid an error. */ 33174#ifdef __cplusplus 33175extern "C" 33176#endif 33177/* We use char because int might match the return type of a gcc2 33178 builtin and then its argument prototype would still apply. */ 33179char DNSServiceRegister (); 33180int 33181main () 33182{ 33183DNSServiceRegister (); 33184 ; 33185 return 0; 33186} 33187_ACEOF 33188rm -f conftest.$ac_objext conftest$ac_exeext 33189if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 33190 (eval $ac_link) 2>conftest.er1 33191 ac_status=$? 33192 grep -v '^ *+' conftest.er1 >conftest.err 33193 rm -f conftest.er1 33194 cat conftest.err >&5 33195 echo "$as_me:$LINENO: \$? = $ac_status" >&5 33196 (exit $ac_status); } && 33197 { ac_try='test -z "$ac_c_werror_flag" 33198 || test ! -s conftest.err' 33199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 33200 (eval $ac_try) 2>&5 33201 ac_status=$? 33202 echo "$as_me:$LINENO: \$? = $ac_status" >&5 33203 (exit $ac_status); }; } && 33204 { ac_try='test -s conftest$ac_exeext' 33205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 33206 (eval $ac_try) 2>&5 33207 ac_status=$? 33208 echo "$as_me:$LINENO: \$? = $ac_status" >&5 33209 (exit $ac_status); }; }; then 33210 ac_cv_lib_dns_sd_DNSServiceRegister=yes 33211else 33212 echo "$as_me: failed program was:" >&5 33213sed 's/^/| /' conftest.$ac_ext >&5 33214 33215ac_cv_lib_dns_sd_DNSServiceRegister=no 33216fi 33217rm -f conftest.err conftest.$ac_objext \ 33218 conftest$ac_exeext conftest.$ac_ext 33219LIBS=$ac_check_lib_save_LIBS 33220fi 33221echo "$as_me:$LINENO: result: $ac_cv_lib_dns_sd_DNSServiceRegister" >&5 33222echo "${ECHO_T}$ac_cv_lib_dns_sd_DNSServiceRegister" >&6 33223if test $ac_cv_lib_dns_sd_DNSServiceRegister = yes; then 33224 33225cat >>confdefs.h <<\_ACEOF 33226#define HAVE_DNSREGISTRATION 1 33227_ACEOF 33228 33229fi 33230 33231fi 33232 33233 33234case "$ac_cv_lib_dns_sd_DNSServiceRegister" in 33235 yes) LIBS="-ldns_sd $LIBS" ;; 33236esac 33237 33238 33239 33240 33241for ac_header in errno.h fcntl.h ieeefp.h math.h 33242do 33243as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 33244if eval "test \"\${$as_ac_Header+set}\" = set"; then 33245 echo "$as_me:$LINENO: checking for $ac_header" >&5 33246echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 33247if eval "test \"\${$as_ac_Header+set}\" = set"; then 33248 echo $ECHO_N "(cached) $ECHO_C" >&6 33249fi 33250echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 33251echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 33252else 33253 # Is the header compilable? 33254echo "$as_me:$LINENO: checking $ac_header usability" >&5 33255echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 33256cat >conftest.$ac_ext <<_ACEOF 33257/* confdefs.h. */ 33258_ACEOF 33259cat confdefs.h >>conftest.$ac_ext 33260cat >>conftest.$ac_ext <<_ACEOF 33261/* end confdefs.h. */ 33262$ac_includes_default 33263#include <$ac_header> 33264_ACEOF 33265rm -f conftest.$ac_objext 33266if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 33267 (eval $ac_compile) 2>conftest.er1 33268 ac_status=$? 33269 grep -v '^ *+' conftest.er1 >conftest.err 33270 rm -f conftest.er1 33271 cat conftest.err >&5 33272 echo "$as_me:$LINENO: \$? = $ac_status" >&5 33273 (exit $ac_status); } && 33274 { ac_try='test -z "$ac_c_werror_flag" 33275 || test ! -s conftest.err' 33276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 33277 (eval $ac_try) 2>&5 33278 ac_status=$? 33279 echo "$as_me:$LINENO: \$? = $ac_status" >&5 33280 (exit $ac_status); }; } && 33281 { ac_try='test -s conftest.$ac_objext' 33282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 33283 (eval $ac_try) 2>&5 33284 ac_status=$? 33285 echo "$as_me:$LINENO: \$? = $ac_status" >&5 33286 (exit $ac_status); }; }; then 33287 ac_header_compiler=yes 33288else 33289 echo "$as_me: failed program was:" >&5 33290sed 's/^/| /' conftest.$ac_ext >&5 33291 33292ac_header_compiler=no 33293fi 33294rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 33295echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 33296echo "${ECHO_T}$ac_header_compiler" >&6 33297 33298# Is the header present? 33299echo "$as_me:$LINENO: checking $ac_header presence" >&5 33300echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 33301cat >conftest.$ac_ext <<_ACEOF 33302/* confdefs.h. */ 33303_ACEOF 33304cat confdefs.h >>conftest.$ac_ext 33305cat >>conftest.$ac_ext <<_ACEOF 33306/* end confdefs.h. */ 33307#include <$ac_header> 33308_ACEOF 33309if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 33310 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 33311 ac_status=$? 33312 grep -v '^ *+' conftest.er1 >conftest.err 33313 rm -f conftest.er1 33314 cat conftest.err >&5 33315 echo "$as_me:$LINENO: \$? = $ac_status" >&5 33316 (exit $ac_status); } >/dev/null; then 33317 if test -s conftest.err; then 33318 ac_cpp_err=$ac_c_preproc_warn_flag 33319 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 33320 else 33321 ac_cpp_err= 33322 fi 33323else 33324 ac_cpp_err=yes 33325fi 33326if test -z "$ac_cpp_err"; then 33327 ac_header_preproc=yes 33328else 33329 echo "$as_me: failed program was:" >&5 33330sed 's/^/| /' conftest.$ac_ext >&5 33331 33332 ac_header_preproc=no 33333fi 33334rm -f conftest.err conftest.$ac_ext 33335echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 33336echo "${ECHO_T}$ac_header_preproc" >&6 33337 33338# So? What about this header? 33339case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 33340 yes:no: ) 33341 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 33342echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 33343 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 33344echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 33345 ac_header_preproc=yes 33346 ;; 33347 no:yes:* ) 33348 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 33349echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 33350 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 33351echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 33352 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 33353echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 33354 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 33355echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 33356 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 33357echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 33358 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 33359echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 33360 ( 33361 cat <<\_ASBOX 33362## ------------------------------ ## 33363## Report this to the ntp lists. ## 33364## ------------------------------ ## 33365_ASBOX 33366 ) | 33367 sed "s/^/$as_me: WARNING: /" >&2 33368 ;; 33369esac 33370echo "$as_me:$LINENO: checking for $ac_header" >&5 33371echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 33372if eval "test \"\${$as_ac_Header+set}\" = set"; then 33373 echo $ECHO_N "(cached) $ECHO_C" >&6 33374else 33375 eval "$as_ac_Header=\$ac_header_preproc" 33376fi 33377echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 33378echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 33379 33380fi 33381if test `eval echo '${'$as_ac_Header'}'` = yes; then 33382 cat >>confdefs.h <<_ACEOF 33383#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 33384_ACEOF 33385 33386fi 33387 33388done 33389 33390 33391# HMS: Lame, but fast. 33392if test -f /etc/redhat-release 33393then 33394 : 33395else 33396 33397for ac_header in md5.h 33398do 33399as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 33400echo "$as_me:$LINENO: checking for $ac_header" >&5 33401echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 33402if eval "test \"\${$as_ac_Header+set}\" = set"; then 33403 echo $ECHO_N "(cached) $ECHO_C" >&6 33404else 33405 cat >conftest.$ac_ext <<_ACEOF 33406/* confdefs.h. */ 33407_ACEOF 33408cat confdefs.h >>conftest.$ac_ext 33409cat >>conftest.$ac_ext <<_ACEOF 33410/* end confdefs.h. */ 33411#if HAVE_SYS_TYPES_H 33412#include <sys/types.h> 33413#endif 33414 33415 33416#include <$ac_header> 33417_ACEOF 33418rm -f conftest.$ac_objext 33419if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 33420 (eval $ac_compile) 2>conftest.er1 33421 ac_status=$? 33422 grep -v '^ *+' conftest.er1 >conftest.err 33423 rm -f conftest.er1 33424 cat conftest.err >&5 33425 echo "$as_me:$LINENO: \$? = $ac_status" >&5 33426 (exit $ac_status); } && 33427 { ac_try='test -z "$ac_c_werror_flag" 33428 || test ! -s conftest.err' 33429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 33430 (eval $ac_try) 2>&5 33431 ac_status=$? 33432 echo "$as_me:$LINENO: \$? = $ac_status" >&5 33433 (exit $ac_status); }; } && 33434 { ac_try='test -s conftest.$ac_objext' 33435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 33436 (eval $ac_try) 2>&5 33437 ac_status=$? 33438 echo "$as_me:$LINENO: \$? = $ac_status" >&5 33439 (exit $ac_status); }; }; then 33440 eval "$as_ac_Header=yes" 33441else 33442 echo "$as_me: failed program was:" >&5 33443sed 's/^/| /' conftest.$ac_ext >&5 33444 33445eval "$as_ac_Header=no" 33446fi 33447rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 33448fi 33449echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 33450echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 33451if test `eval echo '${'$as_ac_Header'}'` = yes; then 33452 cat >>confdefs.h <<_ACEOF 33453#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 33454_ACEOF 33455 33456fi 33457 33458done 33459 33460fi 33461 33462 33463 33464for ac_header in memory.h netdb.h poll.h 33465do 33466as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 33467if eval "test \"\${$as_ac_Header+set}\" = set"; then 33468 echo "$as_me:$LINENO: checking for $ac_header" >&5 33469echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 33470if eval "test \"\${$as_ac_Header+set}\" = set"; then 33471 echo $ECHO_N "(cached) $ECHO_C" >&6 33472fi 33473echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 33474echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 33475else 33476 # Is the header compilable? 33477echo "$as_me:$LINENO: checking $ac_header usability" >&5 33478echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 33479cat >conftest.$ac_ext <<_ACEOF 33480/* confdefs.h. */ 33481_ACEOF 33482cat confdefs.h >>conftest.$ac_ext 33483cat >>conftest.$ac_ext <<_ACEOF 33484/* end confdefs.h. */ 33485$ac_includes_default 33486#include <$ac_header> 33487_ACEOF 33488rm -f conftest.$ac_objext 33489if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 33490 (eval $ac_compile) 2>conftest.er1 33491 ac_status=$? 33492 grep -v '^ *+' conftest.er1 >conftest.err 33493 rm -f conftest.er1 33494 cat conftest.err >&5 33495 echo "$as_me:$LINENO: \$? = $ac_status" >&5 33496 (exit $ac_status); } && 33497 { ac_try='test -z "$ac_c_werror_flag" 33498 || test ! -s conftest.err' 33499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 33500 (eval $ac_try) 2>&5 33501 ac_status=$? 33502 echo "$as_me:$LINENO: \$? = $ac_status" >&5 33503 (exit $ac_status); }; } && 33504 { ac_try='test -s conftest.$ac_objext' 33505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 33506 (eval $ac_try) 2>&5 33507 ac_status=$? 33508 echo "$as_me:$LINENO: \$? = $ac_status" >&5 33509 (exit $ac_status); }; }; then 33510 ac_header_compiler=yes 33511else 33512 echo "$as_me: failed program was:" >&5 33513sed 's/^/| /' conftest.$ac_ext >&5 33514 33515ac_header_compiler=no 33516fi 33517rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 33518echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 33519echo "${ECHO_T}$ac_header_compiler" >&6 33520 33521# Is the header present? 33522echo "$as_me:$LINENO: checking $ac_header presence" >&5 33523echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 33524cat >conftest.$ac_ext <<_ACEOF 33525/* confdefs.h. */ 33526_ACEOF 33527cat confdefs.h >>conftest.$ac_ext 33528cat >>conftest.$ac_ext <<_ACEOF 33529/* end confdefs.h. */ 33530#include <$ac_header> 33531_ACEOF 33532if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 33533 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 33534 ac_status=$? 33535 grep -v '^ *+' conftest.er1 >conftest.err 33536 rm -f conftest.er1 33537 cat conftest.err >&5 33538 echo "$as_me:$LINENO: \$? = $ac_status" >&5 33539 (exit $ac_status); } >/dev/null; then 33540 if test -s conftest.err; then 33541 ac_cpp_err=$ac_c_preproc_warn_flag 33542 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 33543 else 33544 ac_cpp_err= 33545 fi 33546else 33547 ac_cpp_err=yes 33548fi 33549if test -z "$ac_cpp_err"; then 33550 ac_header_preproc=yes 33551else 33552 echo "$as_me: failed program was:" >&5 33553sed 's/^/| /' conftest.$ac_ext >&5 33554 33555 ac_header_preproc=no 33556fi 33557rm -f conftest.err conftest.$ac_ext 33558echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 33559echo "${ECHO_T}$ac_header_preproc" >&6 33560 33561# So? What about this header? 33562case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 33563 yes:no: ) 33564 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 33565echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 33566 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 33567echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 33568 ac_header_preproc=yes 33569 ;; 33570 no:yes:* ) 33571 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 33572echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 33573 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 33574echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 33575 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 33576echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 33577 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 33578echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 33579 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 33580echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 33581 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 33582echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 33583 ( 33584 cat <<\_ASBOX 33585## ------------------------------ ## 33586## Report this to the ntp lists. ## 33587## ------------------------------ ## 33588_ASBOX 33589 ) | 33590 sed "s/^/$as_me: WARNING: /" >&2 33591 ;; 33592esac 33593echo "$as_me:$LINENO: checking for $ac_header" >&5 33594echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 33595if eval "test \"\${$as_ac_Header+set}\" = set"; then 33596 echo $ECHO_N "(cached) $ECHO_C" >&6 33597else 33598 eval "$as_ac_Header=\$ac_header_preproc" 33599fi 33600echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 33601echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 33602 33603fi 33604if test `eval echo '${'$as_ac_Header'}'` = yes; then 33605 cat >>confdefs.h <<_ACEOF 33606#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 33607_ACEOF 33608 33609fi 33610 33611done 33612 33613 33614 33615 33616 33617 33618for ac_header in sched.h sgtty.h stdlib.h string.h termio.h 33619do 33620as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 33621if eval "test \"\${$as_ac_Header+set}\" = set"; then 33622 echo "$as_me:$LINENO: checking for $ac_header" >&5 33623echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 33624if eval "test \"\${$as_ac_Header+set}\" = set"; then 33625 echo $ECHO_N "(cached) $ECHO_C" >&6 33626fi 33627echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 33628echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 33629else 33630 # Is the header compilable? 33631echo "$as_me:$LINENO: checking $ac_header usability" >&5 33632echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 33633cat >conftest.$ac_ext <<_ACEOF 33634/* confdefs.h. */ 33635_ACEOF 33636cat confdefs.h >>conftest.$ac_ext 33637cat >>conftest.$ac_ext <<_ACEOF 33638/* end confdefs.h. */ 33639$ac_includes_default 33640#include <$ac_header> 33641_ACEOF 33642rm -f conftest.$ac_objext 33643if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 33644 (eval $ac_compile) 2>conftest.er1 33645 ac_status=$? 33646 grep -v '^ *+' conftest.er1 >conftest.err 33647 rm -f conftest.er1 33648 cat conftest.err >&5 33649 echo "$as_me:$LINENO: \$? = $ac_status" >&5 33650 (exit $ac_status); } && 33651 { ac_try='test -z "$ac_c_werror_flag" 33652 || test ! -s conftest.err' 33653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 33654 (eval $ac_try) 2>&5 33655 ac_status=$? 33656 echo "$as_me:$LINENO: \$? = $ac_status" >&5 33657 (exit $ac_status); }; } && 33658 { ac_try='test -s conftest.$ac_objext' 33659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 33660 (eval $ac_try) 2>&5 33661 ac_status=$? 33662 echo "$as_me:$LINENO: \$? = $ac_status" >&5 33663 (exit $ac_status); }; }; then 33664 ac_header_compiler=yes 33665else 33666 echo "$as_me: failed program was:" >&5 33667sed 's/^/| /' conftest.$ac_ext >&5 33668 33669ac_header_compiler=no 33670fi 33671rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 33672echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 33673echo "${ECHO_T}$ac_header_compiler" >&6 33674 33675# Is the header present? 33676echo "$as_me:$LINENO: checking $ac_header presence" >&5 33677echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 33678cat >conftest.$ac_ext <<_ACEOF 33679/* confdefs.h. */ 33680_ACEOF 33681cat confdefs.h >>conftest.$ac_ext 33682cat >>conftest.$ac_ext <<_ACEOF 33683/* end confdefs.h. */ 33684#include <$ac_header> 33685_ACEOF 33686if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 33687 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 33688 ac_status=$? 33689 grep -v '^ *+' conftest.er1 >conftest.err 33690 rm -f conftest.er1 33691 cat conftest.err >&5 33692 echo "$as_me:$LINENO: \$? = $ac_status" >&5 33693 (exit $ac_status); } >/dev/null; then 33694 if test -s conftest.err; then 33695 ac_cpp_err=$ac_c_preproc_warn_flag 33696 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 33697 else 33698 ac_cpp_err= 33699 fi 33700else 33701 ac_cpp_err=yes 33702fi 33703if test -z "$ac_cpp_err"; then 33704 ac_header_preproc=yes 33705else 33706 echo "$as_me: failed program was:" >&5 33707sed 's/^/| /' conftest.$ac_ext >&5 33708 33709 ac_header_preproc=no 33710fi 33711rm -f conftest.err conftest.$ac_ext 33712echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 33713echo "${ECHO_T}$ac_header_preproc" >&6 33714 33715# So? What about this header? 33716case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 33717 yes:no: ) 33718 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 33719echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 33720 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 33721echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 33722 ac_header_preproc=yes 33723 ;; 33724 no:yes:* ) 33725 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 33726echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 33727 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 33728echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 33729 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 33730echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 33731 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 33732echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 33733 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 33734echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 33735 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 33736echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 33737 ( 33738 cat <<\_ASBOX 33739## ------------------------------ ## 33740## Report this to the ntp lists. ## 33741## ------------------------------ ## 33742_ASBOX 33743 ) | 33744 sed "s/^/$as_me: WARNING: /" >&2 33745 ;; 33746esac 33747echo "$as_me:$LINENO: checking for $ac_header" >&5 33748echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 33749if eval "test \"\${$as_ac_Header+set}\" = set"; then 33750 echo $ECHO_N "(cached) $ECHO_C" >&6 33751else 33752 eval "$as_ac_Header=\$ac_header_preproc" 33753fi 33754echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 33755echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 33756 33757fi 33758if test `eval echo '${'$as_ac_Header'}'` = yes; then 33759 cat >>confdefs.h <<_ACEOF 33760#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 33761_ACEOF 33762 33763fi 33764 33765done 33766 33767 33768 33769 33770 33771for ac_header in termios.h timepps.h timex.h unistd.h 33772do 33773as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 33774if eval "test \"\${$as_ac_Header+set}\" = set"; then 33775 echo "$as_me:$LINENO: checking for $ac_header" >&5 33776echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 33777if eval "test \"\${$as_ac_Header+set}\" = set"; then 33778 echo $ECHO_N "(cached) $ECHO_C" >&6 33779fi 33780echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 33781echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 33782else 33783 # Is the header compilable? 33784echo "$as_me:$LINENO: checking $ac_header usability" >&5 33785echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 33786cat >conftest.$ac_ext <<_ACEOF 33787/* confdefs.h. */ 33788_ACEOF 33789cat confdefs.h >>conftest.$ac_ext 33790cat >>conftest.$ac_ext <<_ACEOF 33791/* end confdefs.h. */ 33792$ac_includes_default 33793#include <$ac_header> 33794_ACEOF 33795rm -f conftest.$ac_objext 33796if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 33797 (eval $ac_compile) 2>conftest.er1 33798 ac_status=$? 33799 grep -v '^ *+' conftest.er1 >conftest.err 33800 rm -f conftest.er1 33801 cat conftest.err >&5 33802 echo "$as_me:$LINENO: \$? = $ac_status" >&5 33803 (exit $ac_status); } && 33804 { ac_try='test -z "$ac_c_werror_flag" 33805 || test ! -s conftest.err' 33806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 33807 (eval $ac_try) 2>&5 33808 ac_status=$? 33809 echo "$as_me:$LINENO: \$? = $ac_status" >&5 33810 (exit $ac_status); }; } && 33811 { ac_try='test -s conftest.$ac_objext' 33812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 33813 (eval $ac_try) 2>&5 33814 ac_status=$? 33815 echo "$as_me:$LINENO: \$? = $ac_status" >&5 33816 (exit $ac_status); }; }; then 33817 ac_header_compiler=yes 33818else 33819 echo "$as_me: failed program was:" >&5 33820sed 's/^/| /' conftest.$ac_ext >&5 33821 33822ac_header_compiler=no 33823fi 33824rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 33825echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 33826echo "${ECHO_T}$ac_header_compiler" >&6 33827 33828# Is the header present? 33829echo "$as_me:$LINENO: checking $ac_header presence" >&5 33830echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 33831cat >conftest.$ac_ext <<_ACEOF 33832/* confdefs.h. */ 33833_ACEOF 33834cat confdefs.h >>conftest.$ac_ext 33835cat >>conftest.$ac_ext <<_ACEOF 33836/* end confdefs.h. */ 33837#include <$ac_header> 33838_ACEOF 33839if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 33840 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 33841 ac_status=$? 33842 grep -v '^ *+' conftest.er1 >conftest.err 33843 rm -f conftest.er1 33844 cat conftest.err >&5 33845 echo "$as_me:$LINENO: \$? = $ac_status" >&5 33846 (exit $ac_status); } >/dev/null; then 33847 if test -s conftest.err; then 33848 ac_cpp_err=$ac_c_preproc_warn_flag 33849 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 33850 else 33851 ac_cpp_err= 33852 fi 33853else 33854 ac_cpp_err=yes 33855fi 33856if test -z "$ac_cpp_err"; then 33857 ac_header_preproc=yes 33858else 33859 echo "$as_me: failed program was:" >&5 33860sed 's/^/| /' conftest.$ac_ext >&5 33861 33862 ac_header_preproc=no 33863fi 33864rm -f conftest.err conftest.$ac_ext 33865echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 33866echo "${ECHO_T}$ac_header_preproc" >&6 33867 33868# So? What about this header? 33869case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 33870 yes:no: ) 33871 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 33872echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 33873 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 33874echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 33875 ac_header_preproc=yes 33876 ;; 33877 no:yes:* ) 33878 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 33879echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 33880 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 33881echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 33882 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 33883echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 33884 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 33885echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 33886 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 33887echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 33888 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 33889echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 33890 ( 33891 cat <<\_ASBOX 33892## ------------------------------ ## 33893## Report this to the ntp lists. ## 33894## ------------------------------ ## 33895_ASBOX 33896 ) | 33897 sed "s/^/$as_me: WARNING: /" >&2 33898 ;; 33899esac 33900echo "$as_me:$LINENO: checking for $ac_header" >&5 33901echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 33902if eval "test \"\${$as_ac_Header+set}\" = set"; then 33903 echo $ECHO_N "(cached) $ECHO_C" >&6 33904else 33905 eval "$as_ac_Header=\$ac_header_preproc" 33906fi 33907echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 33908echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 33909 33910fi 33911if test `eval echo '${'$as_ac_Header'}'` = yes; then 33912 cat >>confdefs.h <<_ACEOF 33913#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 33914_ACEOF 33915 33916fi 33917 33918done 33919 33920case "$host" in 33921 *-*-aix*) 33922 33923for ac_header in utmpx.h 33924do 33925as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 33926if eval "test \"\${$as_ac_Header+set}\" = set"; then 33927 echo "$as_me:$LINENO: checking for $ac_header" >&5 33928echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 33929if eval "test \"\${$as_ac_Header+set}\" = set"; then 33930 echo $ECHO_N "(cached) $ECHO_C" >&6 33931fi 33932echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 33933echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 33934else 33935 # Is the header compilable? 33936echo "$as_me:$LINENO: checking $ac_header usability" >&5 33937echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 33938cat >conftest.$ac_ext <<_ACEOF 33939/* confdefs.h. */ 33940_ACEOF 33941cat confdefs.h >>conftest.$ac_ext 33942cat >>conftest.$ac_ext <<_ACEOF 33943/* end confdefs.h. */ 33944$ac_includes_default 33945#include <$ac_header> 33946_ACEOF 33947rm -f conftest.$ac_objext 33948if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 33949 (eval $ac_compile) 2>conftest.er1 33950 ac_status=$? 33951 grep -v '^ *+' conftest.er1 >conftest.err 33952 rm -f conftest.er1 33953 cat conftest.err >&5 33954 echo "$as_me:$LINENO: \$? = $ac_status" >&5 33955 (exit $ac_status); } && 33956 { ac_try='test -z "$ac_c_werror_flag" 33957 || test ! -s conftest.err' 33958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 33959 (eval $ac_try) 2>&5 33960 ac_status=$? 33961 echo "$as_me:$LINENO: \$? = $ac_status" >&5 33962 (exit $ac_status); }; } && 33963 { ac_try='test -s conftest.$ac_objext' 33964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 33965 (eval $ac_try) 2>&5 33966 ac_status=$? 33967 echo "$as_me:$LINENO: \$? = $ac_status" >&5 33968 (exit $ac_status); }; }; then 33969 ac_header_compiler=yes 33970else 33971 echo "$as_me: failed program was:" >&5 33972sed 's/^/| /' conftest.$ac_ext >&5 33973 33974ac_header_compiler=no 33975fi 33976rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 33977echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 33978echo "${ECHO_T}$ac_header_compiler" >&6 33979 33980# Is the header present? 33981echo "$as_me:$LINENO: checking $ac_header presence" >&5 33982echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 33983cat >conftest.$ac_ext <<_ACEOF 33984/* confdefs.h. */ 33985_ACEOF 33986cat confdefs.h >>conftest.$ac_ext 33987cat >>conftest.$ac_ext <<_ACEOF 33988/* end confdefs.h. */ 33989#include <$ac_header> 33990_ACEOF 33991if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 33992 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 33993 ac_status=$? 33994 grep -v '^ *+' conftest.er1 >conftest.err 33995 rm -f conftest.er1 33996 cat conftest.err >&5 33997 echo "$as_me:$LINENO: \$? = $ac_status" >&5 33998 (exit $ac_status); } >/dev/null; then 33999 if test -s conftest.err; then 34000 ac_cpp_err=$ac_c_preproc_warn_flag 34001 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 34002 else 34003 ac_cpp_err= 34004 fi 34005else 34006 ac_cpp_err=yes 34007fi 34008if test -z "$ac_cpp_err"; then 34009 ac_header_preproc=yes 34010else 34011 echo "$as_me: failed program was:" >&5 34012sed 's/^/| /' conftest.$ac_ext >&5 34013 34014 ac_header_preproc=no 34015fi 34016rm -f conftest.err conftest.$ac_ext 34017echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 34018echo "${ECHO_T}$ac_header_preproc" >&6 34019 34020# So? What about this header? 34021case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 34022 yes:no: ) 34023 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 34024echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 34025 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 34026echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 34027 ac_header_preproc=yes 34028 ;; 34029 no:yes:* ) 34030 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 34031echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 34032 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 34033echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 34034 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 34035echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 34036 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 34037echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 34038 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 34039echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 34040 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 34041echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 34042 ( 34043 cat <<\_ASBOX 34044## ------------------------------ ## 34045## Report this to the ntp lists. ## 34046## ------------------------------ ## 34047_ASBOX 34048 ) | 34049 sed "s/^/$as_me: WARNING: /" >&2 34050 ;; 34051esac 34052echo "$as_me:$LINENO: checking for $ac_header" >&5 34053echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 34054if eval "test \"\${$as_ac_Header+set}\" = set"; then 34055 echo $ECHO_N "(cached) $ECHO_C" >&6 34056else 34057 eval "$as_ac_Header=\$ac_header_preproc" 34058fi 34059echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 34060echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 34061 34062fi 34063if test `eval echo '${'$as_ac_Header'}'` = yes; then 34064 cat >>confdefs.h <<_ACEOF 34065#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 34066_ACEOF 34067 34068fi 34069 34070done 34071 34072 case "$ac_cv_header_utmpx_h" in 34073 yes) ;; 34074 *) 34075for ac_header in utmp.h 34076do 34077as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 34078if eval "test \"\${$as_ac_Header+set}\" = set"; then 34079 echo "$as_me:$LINENO: checking for $ac_header" >&5 34080echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 34081if eval "test \"\${$as_ac_Header+set}\" = set"; then 34082 echo $ECHO_N "(cached) $ECHO_C" >&6 34083fi 34084echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 34085echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 34086else 34087 # Is the header compilable? 34088echo "$as_me:$LINENO: checking $ac_header usability" >&5 34089echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 34090cat >conftest.$ac_ext <<_ACEOF 34091/* confdefs.h. */ 34092_ACEOF 34093cat confdefs.h >>conftest.$ac_ext 34094cat >>conftest.$ac_ext <<_ACEOF 34095/* end confdefs.h. */ 34096$ac_includes_default 34097#include <$ac_header> 34098_ACEOF 34099rm -f conftest.$ac_objext 34100if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 34101 (eval $ac_compile) 2>conftest.er1 34102 ac_status=$? 34103 grep -v '^ *+' conftest.er1 >conftest.err 34104 rm -f conftest.er1 34105 cat conftest.err >&5 34106 echo "$as_me:$LINENO: \$? = $ac_status" >&5 34107 (exit $ac_status); } && 34108 { ac_try='test -z "$ac_c_werror_flag" 34109 || test ! -s conftest.err' 34110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 34111 (eval $ac_try) 2>&5 34112 ac_status=$? 34113 echo "$as_me:$LINENO: \$? = $ac_status" >&5 34114 (exit $ac_status); }; } && 34115 { ac_try='test -s conftest.$ac_objext' 34116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 34117 (eval $ac_try) 2>&5 34118 ac_status=$? 34119 echo "$as_me:$LINENO: \$? = $ac_status" >&5 34120 (exit $ac_status); }; }; then 34121 ac_header_compiler=yes 34122else 34123 echo "$as_me: failed program was:" >&5 34124sed 's/^/| /' conftest.$ac_ext >&5 34125 34126ac_header_compiler=no 34127fi 34128rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 34129echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 34130echo "${ECHO_T}$ac_header_compiler" >&6 34131 34132# Is the header present? 34133echo "$as_me:$LINENO: checking $ac_header presence" >&5 34134echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 34135cat >conftest.$ac_ext <<_ACEOF 34136/* confdefs.h. */ 34137_ACEOF 34138cat confdefs.h >>conftest.$ac_ext 34139cat >>conftest.$ac_ext <<_ACEOF 34140/* end confdefs.h. */ 34141#include <$ac_header> 34142_ACEOF 34143if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 34144 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 34145 ac_status=$? 34146 grep -v '^ *+' conftest.er1 >conftest.err 34147 rm -f conftest.er1 34148 cat conftest.err >&5 34149 echo "$as_me:$LINENO: \$? = $ac_status" >&5 34150 (exit $ac_status); } >/dev/null; then 34151 if test -s conftest.err; then 34152 ac_cpp_err=$ac_c_preproc_warn_flag 34153 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 34154 else 34155 ac_cpp_err= 34156 fi 34157else 34158 ac_cpp_err=yes 34159fi 34160if test -z "$ac_cpp_err"; then 34161 ac_header_preproc=yes 34162else 34163 echo "$as_me: failed program was:" >&5 34164sed 's/^/| /' conftest.$ac_ext >&5 34165 34166 ac_header_preproc=no 34167fi 34168rm -f conftest.err conftest.$ac_ext 34169echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 34170echo "${ECHO_T}$ac_header_preproc" >&6 34171 34172# So? What about this header? 34173case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 34174 yes:no: ) 34175 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 34176echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 34177 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 34178echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 34179 ac_header_preproc=yes 34180 ;; 34181 no:yes:* ) 34182 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 34183echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 34184 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 34185echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 34186 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 34187echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 34188 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 34189echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 34190 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 34191echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 34192 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 34193echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 34194 ( 34195 cat <<\_ASBOX 34196## ------------------------------ ## 34197## Report this to the ntp lists. ## 34198## ------------------------------ ## 34199_ASBOX 34200 ) | 34201 sed "s/^/$as_me: WARNING: /" >&2 34202 ;; 34203esac 34204echo "$as_me:$LINENO: checking for $ac_header" >&5 34205echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 34206if eval "test \"\${$as_ac_Header+set}\" = set"; then 34207 echo $ECHO_N "(cached) $ECHO_C" >&6 34208else 34209 eval "$as_ac_Header=\$ac_header_preproc" 34210fi 34211echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 34212echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 34213 34214fi 34215if test `eval echo '${'$as_ac_Header'}'` = yes; then 34216 cat >>confdefs.h <<_ACEOF 34217#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 34218_ACEOF 34219 34220fi 34221 34222done 34223 ;; 34224 esac 34225 ;; 34226 *) 34227 34228for ac_header in utmp.h utmpx.h 34229do 34230as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 34231if eval "test \"\${$as_ac_Header+set}\" = set"; then 34232 echo "$as_me:$LINENO: checking for $ac_header" >&5 34233echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 34234if eval "test \"\${$as_ac_Header+set}\" = set"; then 34235 echo $ECHO_N "(cached) $ECHO_C" >&6 34236fi 34237echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 34238echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 34239else 34240 # Is the header compilable? 34241echo "$as_me:$LINENO: checking $ac_header usability" >&5 34242echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 34243cat >conftest.$ac_ext <<_ACEOF 34244/* confdefs.h. */ 34245_ACEOF 34246cat confdefs.h >>conftest.$ac_ext 34247cat >>conftest.$ac_ext <<_ACEOF 34248/* end confdefs.h. */ 34249$ac_includes_default 34250#include <$ac_header> 34251_ACEOF 34252rm -f conftest.$ac_objext 34253if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 34254 (eval $ac_compile) 2>conftest.er1 34255 ac_status=$? 34256 grep -v '^ *+' conftest.er1 >conftest.err 34257 rm -f conftest.er1 34258 cat conftest.err >&5 34259 echo "$as_me:$LINENO: \$? = $ac_status" >&5 34260 (exit $ac_status); } && 34261 { ac_try='test -z "$ac_c_werror_flag" 34262 || test ! -s conftest.err' 34263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 34264 (eval $ac_try) 2>&5 34265 ac_status=$? 34266 echo "$as_me:$LINENO: \$? = $ac_status" >&5 34267 (exit $ac_status); }; } && 34268 { ac_try='test -s conftest.$ac_objext' 34269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 34270 (eval $ac_try) 2>&5 34271 ac_status=$? 34272 echo "$as_me:$LINENO: \$? = $ac_status" >&5 34273 (exit $ac_status); }; }; then 34274 ac_header_compiler=yes 34275else 34276 echo "$as_me: failed program was:" >&5 34277sed 's/^/| /' conftest.$ac_ext >&5 34278 34279ac_header_compiler=no 34280fi 34281rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 34282echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 34283echo "${ECHO_T}$ac_header_compiler" >&6 34284 34285# Is the header present? 34286echo "$as_me:$LINENO: checking $ac_header presence" >&5 34287echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 34288cat >conftest.$ac_ext <<_ACEOF 34289/* confdefs.h. */ 34290_ACEOF 34291cat confdefs.h >>conftest.$ac_ext 34292cat >>conftest.$ac_ext <<_ACEOF 34293/* end confdefs.h. */ 34294#include <$ac_header> 34295_ACEOF 34296if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 34297 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 34298 ac_status=$? 34299 grep -v '^ *+' conftest.er1 >conftest.err 34300 rm -f conftest.er1 34301 cat conftest.err >&5 34302 echo "$as_me:$LINENO: \$? = $ac_status" >&5 34303 (exit $ac_status); } >/dev/null; then 34304 if test -s conftest.err; then 34305 ac_cpp_err=$ac_c_preproc_warn_flag 34306 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 34307 else 34308 ac_cpp_err= 34309 fi 34310else 34311 ac_cpp_err=yes 34312fi 34313if test -z "$ac_cpp_err"; then 34314 ac_header_preproc=yes 34315else 34316 echo "$as_me: failed program was:" >&5 34317sed 's/^/| /' conftest.$ac_ext >&5 34318 34319 ac_header_preproc=no 34320fi 34321rm -f conftest.err conftest.$ac_ext 34322echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 34323echo "${ECHO_T}$ac_header_preproc" >&6 34324 34325# So? What about this header? 34326case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 34327 yes:no: ) 34328 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 34329echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 34330 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 34331echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 34332 ac_header_preproc=yes 34333 ;; 34334 no:yes:* ) 34335 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 34336echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 34337 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 34338echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 34339 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 34340echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 34341 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 34342echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 34343 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 34344echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 34345 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 34346echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 34347 ( 34348 cat <<\_ASBOX 34349## ------------------------------ ## 34350## Report this to the ntp lists. ## 34351## ------------------------------ ## 34352_ASBOX 34353 ) | 34354 sed "s/^/$as_me: WARNING: /" >&2 34355 ;; 34356esac 34357echo "$as_me:$LINENO: checking for $ac_header" >&5 34358echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 34359if eval "test \"\${$as_ac_Header+set}\" = set"; then 34360 echo $ECHO_N "(cached) $ECHO_C" >&6 34361else 34362 eval "$as_ac_Header=\$ac_header_preproc" 34363fi 34364echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 34365echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 34366 34367fi 34368if test `eval echo '${'$as_ac_Header'}'` = yes; then 34369 cat >>confdefs.h <<_ACEOF 34370#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 34371_ACEOF 34372 34373fi 34374 34375done 34376 ;; 34377esac 34378 34379for ac_header in arpa/nameser.h 34380do 34381as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 34382if eval "test \"\${$as_ac_Header+set}\" = set"; then 34383 echo "$as_me:$LINENO: checking for $ac_header" >&5 34384echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 34385if eval "test \"\${$as_ac_Header+set}\" = set"; then 34386 echo $ECHO_N "(cached) $ECHO_C" >&6 34387fi 34388echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 34389echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 34390else 34391 # Is the header compilable? 34392echo "$as_me:$LINENO: checking $ac_header usability" >&5 34393echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 34394cat >conftest.$ac_ext <<_ACEOF 34395/* confdefs.h. */ 34396_ACEOF 34397cat confdefs.h >>conftest.$ac_ext 34398cat >>conftest.$ac_ext <<_ACEOF 34399/* end confdefs.h. */ 34400$ac_includes_default 34401#include <$ac_header> 34402_ACEOF 34403rm -f conftest.$ac_objext 34404if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 34405 (eval $ac_compile) 2>conftest.er1 34406 ac_status=$? 34407 grep -v '^ *+' conftest.er1 >conftest.err 34408 rm -f conftest.er1 34409 cat conftest.err >&5 34410 echo "$as_me:$LINENO: \$? = $ac_status" >&5 34411 (exit $ac_status); } && 34412 { ac_try='test -z "$ac_c_werror_flag" 34413 || test ! -s conftest.err' 34414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 34415 (eval $ac_try) 2>&5 34416 ac_status=$? 34417 echo "$as_me:$LINENO: \$? = $ac_status" >&5 34418 (exit $ac_status); }; } && 34419 { ac_try='test -s conftest.$ac_objext' 34420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 34421 (eval $ac_try) 2>&5 34422 ac_status=$? 34423 echo "$as_me:$LINENO: \$? = $ac_status" >&5 34424 (exit $ac_status); }; }; then 34425 ac_header_compiler=yes 34426else 34427 echo "$as_me: failed program was:" >&5 34428sed 's/^/| /' conftest.$ac_ext >&5 34429 34430ac_header_compiler=no 34431fi 34432rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 34433echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 34434echo "${ECHO_T}$ac_header_compiler" >&6 34435 34436# Is the header present? 34437echo "$as_me:$LINENO: checking $ac_header presence" >&5 34438echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 34439cat >conftest.$ac_ext <<_ACEOF 34440/* confdefs.h. */ 34441_ACEOF 34442cat confdefs.h >>conftest.$ac_ext 34443cat >>conftest.$ac_ext <<_ACEOF 34444/* end confdefs.h. */ 34445#include <$ac_header> 34446_ACEOF 34447if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 34448 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 34449 ac_status=$? 34450 grep -v '^ *+' conftest.er1 >conftest.err 34451 rm -f conftest.er1 34452 cat conftest.err >&5 34453 echo "$as_me:$LINENO: \$? = $ac_status" >&5 34454 (exit $ac_status); } >/dev/null; then 34455 if test -s conftest.err; then 34456 ac_cpp_err=$ac_c_preproc_warn_flag 34457 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 34458 else 34459 ac_cpp_err= 34460 fi 34461else 34462 ac_cpp_err=yes 34463fi 34464if test -z "$ac_cpp_err"; then 34465 ac_header_preproc=yes 34466else 34467 echo "$as_me: failed program was:" >&5 34468sed 's/^/| /' conftest.$ac_ext >&5 34469 34470 ac_header_preproc=no 34471fi 34472rm -f conftest.err conftest.$ac_ext 34473echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 34474echo "${ECHO_T}$ac_header_preproc" >&6 34475 34476# So? What about this header? 34477case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 34478 yes:no: ) 34479 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 34480echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 34481 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 34482echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 34483 ac_header_preproc=yes 34484 ;; 34485 no:yes:* ) 34486 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 34487echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 34488 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 34489echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 34490 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 34491echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 34492 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 34493echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 34494 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 34495echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 34496 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 34497echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 34498 ( 34499 cat <<\_ASBOX 34500## ------------------------------ ## 34501## Report this to the ntp lists. ## 34502## ------------------------------ ## 34503_ASBOX 34504 ) | 34505 sed "s/^/$as_me: WARNING: /" >&2 34506 ;; 34507esac 34508echo "$as_me:$LINENO: checking for $ac_header" >&5 34509echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 34510if eval "test \"\${$as_ac_Header+set}\" = set"; then 34511 echo $ECHO_N "(cached) $ECHO_C" >&6 34512else 34513 eval "$as_ac_Header=\$ac_header_preproc" 34514fi 34515echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 34516echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 34517 34518fi 34519if test `eval echo '${'$as_ac_Header'}'` = yes; then 34520 cat >>confdefs.h <<_ACEOF 34521#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 34522_ACEOF 34523 34524fi 34525 34526done 34527 34528 34529for ac_header in sys/socket.h 34530do 34531as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 34532if eval "test \"\${$as_ac_Header+set}\" = set"; then 34533 echo "$as_me:$LINENO: checking for $ac_header" >&5 34534echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 34535if eval "test \"\${$as_ac_Header+set}\" = set"; then 34536 echo $ECHO_N "(cached) $ECHO_C" >&6 34537fi 34538echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 34539echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 34540else 34541 # Is the header compilable? 34542echo "$as_me:$LINENO: checking $ac_header usability" >&5 34543echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 34544cat >conftest.$ac_ext <<_ACEOF 34545/* confdefs.h. */ 34546_ACEOF 34547cat confdefs.h >>conftest.$ac_ext 34548cat >>conftest.$ac_ext <<_ACEOF 34549/* end confdefs.h. */ 34550$ac_includes_default 34551#include <$ac_header> 34552_ACEOF 34553rm -f conftest.$ac_objext 34554if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 34555 (eval $ac_compile) 2>conftest.er1 34556 ac_status=$? 34557 grep -v '^ *+' conftest.er1 >conftest.err 34558 rm -f conftest.er1 34559 cat conftest.err >&5 34560 echo "$as_me:$LINENO: \$? = $ac_status" >&5 34561 (exit $ac_status); } && 34562 { ac_try='test -z "$ac_c_werror_flag" 34563 || test ! -s conftest.err' 34564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 34565 (eval $ac_try) 2>&5 34566 ac_status=$? 34567 echo "$as_me:$LINENO: \$? = $ac_status" >&5 34568 (exit $ac_status); }; } && 34569 { ac_try='test -s conftest.$ac_objext' 34570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 34571 (eval $ac_try) 2>&5 34572 ac_status=$? 34573 echo "$as_me:$LINENO: \$? = $ac_status" >&5 34574 (exit $ac_status); }; }; then 34575 ac_header_compiler=yes 34576else 34577 echo "$as_me: failed program was:" >&5 34578sed 's/^/| /' conftest.$ac_ext >&5 34579 34580ac_header_compiler=no 34581fi 34582rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 34583echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 34584echo "${ECHO_T}$ac_header_compiler" >&6 34585 34586# Is the header present? 34587echo "$as_me:$LINENO: checking $ac_header presence" >&5 34588echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 34589cat >conftest.$ac_ext <<_ACEOF 34590/* confdefs.h. */ 34591_ACEOF 34592cat confdefs.h >>conftest.$ac_ext 34593cat >>conftest.$ac_ext <<_ACEOF 34594/* end confdefs.h. */ 34595#include <$ac_header> 34596_ACEOF 34597if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 34598 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 34599 ac_status=$? 34600 grep -v '^ *+' conftest.er1 >conftest.err 34601 rm -f conftest.er1 34602 cat conftest.err >&5 34603 echo "$as_me:$LINENO: \$? = $ac_status" >&5 34604 (exit $ac_status); } >/dev/null; then 34605 if test -s conftest.err; then 34606 ac_cpp_err=$ac_c_preproc_warn_flag 34607 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 34608 else 34609 ac_cpp_err= 34610 fi 34611else 34612 ac_cpp_err=yes 34613fi 34614if test -z "$ac_cpp_err"; then 34615 ac_header_preproc=yes 34616else 34617 echo "$as_me: failed program was:" >&5 34618sed 's/^/| /' conftest.$ac_ext >&5 34619 34620 ac_header_preproc=no 34621fi 34622rm -f conftest.err conftest.$ac_ext 34623echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 34624echo "${ECHO_T}$ac_header_preproc" >&6 34625 34626# So? What about this header? 34627case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 34628 yes:no: ) 34629 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 34630echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 34631 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 34632echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 34633 ac_header_preproc=yes 34634 ;; 34635 no:yes:* ) 34636 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 34637echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 34638 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 34639echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 34640 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 34641echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 34642 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 34643echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 34644 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 34645echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 34646 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 34647echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 34648 ( 34649 cat <<\_ASBOX 34650## ------------------------------ ## 34651## Report this to the ntp lists. ## 34652## ------------------------------ ## 34653_ASBOX 34654 ) | 34655 sed "s/^/$as_me: WARNING: /" >&2 34656 ;; 34657esac 34658echo "$as_me:$LINENO: checking for $ac_header" >&5 34659echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 34660if eval "test \"\${$as_ac_Header+set}\" = set"; then 34661 echo $ECHO_N "(cached) $ECHO_C" >&6 34662else 34663 eval "$as_ac_Header=\$ac_header_preproc" 34664fi 34665echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 34666echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 34667 34668fi 34669if test `eval echo '${'$as_ac_Header'}'` = yes; then 34670 cat >>confdefs.h <<_ACEOF 34671#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 34672_ACEOF 34673 34674fi 34675 34676done 34677 34678 34679for ac_header in net/if.h 34680do 34681as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 34682echo "$as_me:$LINENO: checking for $ac_header" >&5 34683echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 34684if eval "test \"\${$as_ac_Header+set}\" = set"; then 34685 echo $ECHO_N "(cached) $ECHO_C" >&6 34686else 34687 cat >conftest.$ac_ext <<_ACEOF 34688/* confdefs.h. */ 34689_ACEOF 34690cat confdefs.h >>conftest.$ac_ext 34691cat >>conftest.$ac_ext <<_ACEOF 34692/* end confdefs.h. */ 34693#if HAVE_SYS_SOCKET_H 34694#include <sys/socket.h> 34695#endif 34696 34697 34698#include <$ac_header> 34699_ACEOF 34700rm -f conftest.$ac_objext 34701if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 34702 (eval $ac_compile) 2>conftest.er1 34703 ac_status=$? 34704 grep -v '^ *+' conftest.er1 >conftest.err 34705 rm -f conftest.er1 34706 cat conftest.err >&5 34707 echo "$as_me:$LINENO: \$? = $ac_status" >&5 34708 (exit $ac_status); } && 34709 { ac_try='test -z "$ac_c_werror_flag" 34710 || test ! -s conftest.err' 34711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 34712 (eval $ac_try) 2>&5 34713 ac_status=$? 34714 echo "$as_me:$LINENO: \$? = $ac_status" >&5 34715 (exit $ac_status); }; } && 34716 { ac_try='test -s conftest.$ac_objext' 34717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 34718 (eval $ac_try) 2>&5 34719 ac_status=$? 34720 echo "$as_me:$LINENO: \$? = $ac_status" >&5 34721 (exit $ac_status); }; }; then 34722 eval "$as_ac_Header=yes" 34723else 34724 echo "$as_me: failed program was:" >&5 34725sed 's/^/| /' conftest.$ac_ext >&5 34726 34727eval "$as_ac_Header=no" 34728fi 34729rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 34730fi 34731echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 34732echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 34733if test `eval echo '${'$as_ac_Header'}'` = yes; then 34734 cat >>confdefs.h <<_ACEOF 34735#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 34736_ACEOF 34737 34738fi 34739 34740done 34741 34742 34743for ac_header in net/if6.h 34744do 34745as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 34746if eval "test \"\${$as_ac_Header+set}\" = set"; then 34747 echo "$as_me:$LINENO: checking for $ac_header" >&5 34748echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 34749if eval "test \"\${$as_ac_Header+set}\" = set"; then 34750 echo $ECHO_N "(cached) $ECHO_C" >&6 34751fi 34752echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 34753echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 34754else 34755 # Is the header compilable? 34756echo "$as_me:$LINENO: checking $ac_header usability" >&5 34757echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 34758cat >conftest.$ac_ext <<_ACEOF 34759/* confdefs.h. */ 34760_ACEOF 34761cat confdefs.h >>conftest.$ac_ext 34762cat >>conftest.$ac_ext <<_ACEOF 34763/* end confdefs.h. */ 34764$ac_includes_default 34765#include <$ac_header> 34766_ACEOF 34767rm -f conftest.$ac_objext 34768if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 34769 (eval $ac_compile) 2>conftest.er1 34770 ac_status=$? 34771 grep -v '^ *+' conftest.er1 >conftest.err 34772 rm -f conftest.er1 34773 cat conftest.err >&5 34774 echo "$as_me:$LINENO: \$? = $ac_status" >&5 34775 (exit $ac_status); } && 34776 { ac_try='test -z "$ac_c_werror_flag" 34777 || test ! -s conftest.err' 34778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 34779 (eval $ac_try) 2>&5 34780 ac_status=$? 34781 echo "$as_me:$LINENO: \$? = $ac_status" >&5 34782 (exit $ac_status); }; } && 34783 { ac_try='test -s conftest.$ac_objext' 34784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 34785 (eval $ac_try) 2>&5 34786 ac_status=$? 34787 echo "$as_me:$LINENO: \$? = $ac_status" >&5 34788 (exit $ac_status); }; }; then 34789 ac_header_compiler=yes 34790else 34791 echo "$as_me: failed program was:" >&5 34792sed 's/^/| /' conftest.$ac_ext >&5 34793 34794ac_header_compiler=no 34795fi 34796rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 34797echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 34798echo "${ECHO_T}$ac_header_compiler" >&6 34799 34800# Is the header present? 34801echo "$as_me:$LINENO: checking $ac_header presence" >&5 34802echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 34803cat >conftest.$ac_ext <<_ACEOF 34804/* confdefs.h. */ 34805_ACEOF 34806cat confdefs.h >>conftest.$ac_ext 34807cat >>conftest.$ac_ext <<_ACEOF 34808/* end confdefs.h. */ 34809#include <$ac_header> 34810_ACEOF 34811if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 34812 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 34813 ac_status=$? 34814 grep -v '^ *+' conftest.er1 >conftest.err 34815 rm -f conftest.er1 34816 cat conftest.err >&5 34817 echo "$as_me:$LINENO: \$? = $ac_status" >&5 34818 (exit $ac_status); } >/dev/null; then 34819 if test -s conftest.err; then 34820 ac_cpp_err=$ac_c_preproc_warn_flag 34821 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 34822 else 34823 ac_cpp_err= 34824 fi 34825else 34826 ac_cpp_err=yes 34827fi 34828if test -z "$ac_cpp_err"; then 34829 ac_header_preproc=yes 34830else 34831 echo "$as_me: failed program was:" >&5 34832sed 's/^/| /' conftest.$ac_ext >&5 34833 34834 ac_header_preproc=no 34835fi 34836rm -f conftest.err conftest.$ac_ext 34837echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 34838echo "${ECHO_T}$ac_header_preproc" >&6 34839 34840# So? What about this header? 34841case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 34842 yes:no: ) 34843 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 34844echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 34845 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 34846echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 34847 ac_header_preproc=yes 34848 ;; 34849 no:yes:* ) 34850 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 34851echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 34852 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 34853echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 34854 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 34855echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 34856 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 34857echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 34858 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 34859echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 34860 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 34861echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 34862 ( 34863 cat <<\_ASBOX 34864## ------------------------------ ## 34865## Report this to the ntp lists. ## 34866## ------------------------------ ## 34867_ASBOX 34868 ) | 34869 sed "s/^/$as_me: WARNING: /" >&2 34870 ;; 34871esac 34872echo "$as_me:$LINENO: checking for $ac_header" >&5 34873echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 34874if eval "test \"\${$as_ac_Header+set}\" = set"; then 34875 echo $ECHO_N "(cached) $ECHO_C" >&6 34876else 34877 eval "$as_ac_Header=\$ac_header_preproc" 34878fi 34879echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 34880echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 34881 34882fi 34883if test `eval echo '${'$as_ac_Header'}'` = yes; then 34884 cat >>confdefs.h <<_ACEOF 34885#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 34886_ACEOF 34887 34888fi 34889 34890done 34891 34892 34893for ac_header in net/route.h 34894do 34895as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 34896echo "$as_me:$LINENO: checking for $ac_header" >&5 34897echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 34898if eval "test \"\${$as_ac_Header+set}\" = set"; then 34899 echo $ECHO_N "(cached) $ECHO_C" >&6 34900else 34901 cat >conftest.$ac_ext <<_ACEOF 34902/* confdefs.h. */ 34903_ACEOF 34904cat confdefs.h >>conftest.$ac_ext 34905cat >>conftest.$ac_ext <<_ACEOF 34906/* end confdefs.h. */ 34907 34908#include <sys/types.h> 34909#include <sys/socket.h> 34910#include <net/if.h> 34911 34912 34913#include <$ac_header> 34914_ACEOF 34915rm -f conftest.$ac_objext 34916if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 34917 (eval $ac_compile) 2>conftest.er1 34918 ac_status=$? 34919 grep -v '^ *+' conftest.er1 >conftest.err 34920 rm -f conftest.er1 34921 cat conftest.err >&5 34922 echo "$as_me:$LINENO: \$? = $ac_status" >&5 34923 (exit $ac_status); } && 34924 { ac_try='test -z "$ac_c_werror_flag" 34925 || test ! -s conftest.err' 34926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 34927 (eval $ac_try) 2>&5 34928 ac_status=$? 34929 echo "$as_me:$LINENO: \$? = $ac_status" >&5 34930 (exit $ac_status); }; } && 34931 { ac_try='test -s conftest.$ac_objext' 34932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 34933 (eval $ac_try) 2>&5 34934 ac_status=$? 34935 echo "$as_me:$LINENO: \$? = $ac_status" >&5 34936 (exit $ac_status); }; }; then 34937 eval "$as_ac_Header=yes" 34938else 34939 echo "$as_me: failed program was:" >&5 34940sed 's/^/| /' conftest.$ac_ext >&5 34941 34942eval "$as_ac_Header=no" 34943fi 34944rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 34945fi 34946echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 34947echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 34948if test `eval echo '${'$as_ac_Header'}'` = yes; then 34949 cat >>confdefs.h <<_ACEOF 34950#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 34951_ACEOF 34952 34953fi 34954 34955done 34956 34957 34958 34959for ac_header in netinet/in_system.h netinet/in_systm.h 34960do 34961as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 34962if eval "test \"\${$as_ac_Header+set}\" = set"; then 34963 echo "$as_me:$LINENO: checking for $ac_header" >&5 34964echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 34965if eval "test \"\${$as_ac_Header+set}\" = set"; then 34966 echo $ECHO_N "(cached) $ECHO_C" >&6 34967fi 34968echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 34969echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 34970else 34971 # Is the header compilable? 34972echo "$as_me:$LINENO: checking $ac_header usability" >&5 34973echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 34974cat >conftest.$ac_ext <<_ACEOF 34975/* confdefs.h. */ 34976_ACEOF 34977cat confdefs.h >>conftest.$ac_ext 34978cat >>conftest.$ac_ext <<_ACEOF 34979/* end confdefs.h. */ 34980$ac_includes_default 34981#include <$ac_header> 34982_ACEOF 34983rm -f conftest.$ac_objext 34984if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 34985 (eval $ac_compile) 2>conftest.er1 34986 ac_status=$? 34987 grep -v '^ *+' conftest.er1 >conftest.err 34988 rm -f conftest.er1 34989 cat conftest.err >&5 34990 echo "$as_me:$LINENO: \$? = $ac_status" >&5 34991 (exit $ac_status); } && 34992 { ac_try='test -z "$ac_c_werror_flag" 34993 || test ! -s conftest.err' 34994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 34995 (eval $ac_try) 2>&5 34996 ac_status=$? 34997 echo "$as_me:$LINENO: \$? = $ac_status" >&5 34998 (exit $ac_status); }; } && 34999 { ac_try='test -s conftest.$ac_objext' 35000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 35001 (eval $ac_try) 2>&5 35002 ac_status=$? 35003 echo "$as_me:$LINENO: \$? = $ac_status" >&5 35004 (exit $ac_status); }; }; then 35005 ac_header_compiler=yes 35006else 35007 echo "$as_me: failed program was:" >&5 35008sed 's/^/| /' conftest.$ac_ext >&5 35009 35010ac_header_compiler=no 35011fi 35012rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 35013echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 35014echo "${ECHO_T}$ac_header_compiler" >&6 35015 35016# Is the header present? 35017echo "$as_me:$LINENO: checking $ac_header presence" >&5 35018echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 35019cat >conftest.$ac_ext <<_ACEOF 35020/* confdefs.h. */ 35021_ACEOF 35022cat confdefs.h >>conftest.$ac_ext 35023cat >>conftest.$ac_ext <<_ACEOF 35024/* end confdefs.h. */ 35025#include <$ac_header> 35026_ACEOF 35027if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 35028 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 35029 ac_status=$? 35030 grep -v '^ *+' conftest.er1 >conftest.err 35031 rm -f conftest.er1 35032 cat conftest.err >&5 35033 echo "$as_me:$LINENO: \$? = $ac_status" >&5 35034 (exit $ac_status); } >/dev/null; then 35035 if test -s conftest.err; then 35036 ac_cpp_err=$ac_c_preproc_warn_flag 35037 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 35038 else 35039 ac_cpp_err= 35040 fi 35041else 35042 ac_cpp_err=yes 35043fi 35044if test -z "$ac_cpp_err"; then 35045 ac_header_preproc=yes 35046else 35047 echo "$as_me: failed program was:" >&5 35048sed 's/^/| /' conftest.$ac_ext >&5 35049 35050 ac_header_preproc=no 35051fi 35052rm -f conftest.err conftest.$ac_ext 35053echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 35054echo "${ECHO_T}$ac_header_preproc" >&6 35055 35056# So? What about this header? 35057case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 35058 yes:no: ) 35059 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 35060echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 35061 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 35062echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 35063 ac_header_preproc=yes 35064 ;; 35065 no:yes:* ) 35066 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 35067echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 35068 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 35069echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 35070 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 35071echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 35072 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 35073echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 35074 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 35075echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 35076 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 35077echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 35078 ( 35079 cat <<\_ASBOX 35080## ------------------------------ ## 35081## Report this to the ntp lists. ## 35082## ------------------------------ ## 35083_ASBOX 35084 ) | 35085 sed "s/^/$as_me: WARNING: /" >&2 35086 ;; 35087esac 35088echo "$as_me:$LINENO: checking for $ac_header" >&5 35089echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 35090if eval "test \"\${$as_ac_Header+set}\" = set"; then 35091 echo $ECHO_N "(cached) $ECHO_C" >&6 35092else 35093 eval "$as_ac_Header=\$ac_header_preproc" 35094fi 35095echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 35096echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 35097 35098fi 35099if test `eval echo '${'$as_ac_Header'}'` = yes; then 35100 cat >>confdefs.h <<_ACEOF 35101#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 35102_ACEOF 35103 35104fi 35105 35106done 35107 35108 35109for ac_header in netinet/in.h 35110do 35111as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 35112if eval "test \"\${$as_ac_Header+set}\" = set"; then 35113 echo "$as_me:$LINENO: checking for $ac_header" >&5 35114echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 35115if eval "test \"\${$as_ac_Header+set}\" = set"; then 35116 echo $ECHO_N "(cached) $ECHO_C" >&6 35117fi 35118echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 35119echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 35120else 35121 # Is the header compilable? 35122echo "$as_me:$LINENO: checking $ac_header usability" >&5 35123echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 35124cat >conftest.$ac_ext <<_ACEOF 35125/* confdefs.h. */ 35126_ACEOF 35127cat confdefs.h >>conftest.$ac_ext 35128cat >>conftest.$ac_ext <<_ACEOF 35129/* end confdefs.h. */ 35130$ac_includes_default 35131#include <$ac_header> 35132_ACEOF 35133rm -f conftest.$ac_objext 35134if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 35135 (eval $ac_compile) 2>conftest.er1 35136 ac_status=$? 35137 grep -v '^ *+' conftest.er1 >conftest.err 35138 rm -f conftest.er1 35139 cat conftest.err >&5 35140 echo "$as_me:$LINENO: \$? = $ac_status" >&5 35141 (exit $ac_status); } && 35142 { ac_try='test -z "$ac_c_werror_flag" 35143 || test ! -s conftest.err' 35144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 35145 (eval $ac_try) 2>&5 35146 ac_status=$? 35147 echo "$as_me:$LINENO: \$? = $ac_status" >&5 35148 (exit $ac_status); }; } && 35149 { ac_try='test -s conftest.$ac_objext' 35150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 35151 (eval $ac_try) 2>&5 35152 ac_status=$? 35153 echo "$as_me:$LINENO: \$? = $ac_status" >&5 35154 (exit $ac_status); }; }; then 35155 ac_header_compiler=yes 35156else 35157 echo "$as_me: failed program was:" >&5 35158sed 's/^/| /' conftest.$ac_ext >&5 35159 35160ac_header_compiler=no 35161fi 35162rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 35163echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 35164echo "${ECHO_T}$ac_header_compiler" >&6 35165 35166# Is the header present? 35167echo "$as_me:$LINENO: checking $ac_header presence" >&5 35168echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 35169cat >conftest.$ac_ext <<_ACEOF 35170/* confdefs.h. */ 35171_ACEOF 35172cat confdefs.h >>conftest.$ac_ext 35173cat >>conftest.$ac_ext <<_ACEOF 35174/* end confdefs.h. */ 35175#include <$ac_header> 35176_ACEOF 35177if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 35178 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 35179 ac_status=$? 35180 grep -v '^ *+' conftest.er1 >conftest.err 35181 rm -f conftest.er1 35182 cat conftest.err >&5 35183 echo "$as_me:$LINENO: \$? = $ac_status" >&5 35184 (exit $ac_status); } >/dev/null; then 35185 if test -s conftest.err; then 35186 ac_cpp_err=$ac_c_preproc_warn_flag 35187 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 35188 else 35189 ac_cpp_err= 35190 fi 35191else 35192 ac_cpp_err=yes 35193fi 35194if test -z "$ac_cpp_err"; then 35195 ac_header_preproc=yes 35196else 35197 echo "$as_me: failed program was:" >&5 35198sed 's/^/| /' conftest.$ac_ext >&5 35199 35200 ac_header_preproc=no 35201fi 35202rm -f conftest.err conftest.$ac_ext 35203echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 35204echo "${ECHO_T}$ac_header_preproc" >&6 35205 35206# So? What about this header? 35207case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 35208 yes:no: ) 35209 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 35210echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 35211 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 35212echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 35213 ac_header_preproc=yes 35214 ;; 35215 no:yes:* ) 35216 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 35217echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 35218 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 35219echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 35220 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 35221echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 35222 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 35223echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 35224 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 35225echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 35226 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 35227echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 35228 ( 35229 cat <<\_ASBOX 35230## ------------------------------ ## 35231## Report this to the ntp lists. ## 35232## ------------------------------ ## 35233_ASBOX 35234 ) | 35235 sed "s/^/$as_me: WARNING: /" >&2 35236 ;; 35237esac 35238echo "$as_me:$LINENO: checking for $ac_header" >&5 35239echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 35240if eval "test \"\${$as_ac_Header+set}\" = set"; then 35241 echo $ECHO_N "(cached) $ECHO_C" >&6 35242else 35243 eval "$as_ac_Header=\$ac_header_preproc" 35244fi 35245echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 35246echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 35247 35248fi 35249if test `eval echo '${'$as_ac_Header'}'` = yes; then 35250 cat >>confdefs.h <<_ACEOF 35251#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 35252_ACEOF 35253 35254fi 35255 35256done 35257 35258 35259for ac_header in netinet/ip.h 35260do 35261as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 35262echo "$as_me:$LINENO: checking for $ac_header" >&5 35263echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 35264if eval "test \"\${$as_ac_Header+set}\" = set"; then 35265 echo $ECHO_N "(cached) $ECHO_C" >&6 35266else 35267 cat >conftest.$ac_ext <<_ACEOF 35268/* confdefs.h. */ 35269_ACEOF 35270cat confdefs.h >>conftest.$ac_ext 35271cat >>conftest.$ac_ext <<_ACEOF 35272/* end confdefs.h. */ 35273#if HAVE_SYS_TYPES_H 35274#include <sys/types.h> 35275#endif 35276#if HAVE_NETINET_IN_H 35277#include <netinet/in.h> 35278#endif 35279#if HAVE_NETINET_IN_SYSTM_H 35280#include <netinet/in_systm.h> 35281#endif 35282 35283 35284#include <$ac_header> 35285_ACEOF 35286rm -f conftest.$ac_objext 35287if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 35288 (eval $ac_compile) 2>conftest.er1 35289 ac_status=$? 35290 grep -v '^ *+' conftest.er1 >conftest.err 35291 rm -f conftest.er1 35292 cat conftest.err >&5 35293 echo "$as_me:$LINENO: \$? = $ac_status" >&5 35294 (exit $ac_status); } && 35295 { ac_try='test -z "$ac_c_werror_flag" 35296 || test ! -s conftest.err' 35297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 35298 (eval $ac_try) 2>&5 35299 ac_status=$? 35300 echo "$as_me:$LINENO: \$? = $ac_status" >&5 35301 (exit $ac_status); }; } && 35302 { ac_try='test -s conftest.$ac_objext' 35303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 35304 (eval $ac_try) 2>&5 35305 ac_status=$? 35306 echo "$as_me:$LINENO: \$? = $ac_status" >&5 35307 (exit $ac_status); }; }; then 35308 eval "$as_ac_Header=yes" 35309else 35310 echo "$as_me: failed program was:" >&5 35311sed 's/^/| /' conftest.$ac_ext >&5 35312 35313eval "$as_ac_Header=no" 35314fi 35315rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 35316fi 35317echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 35318echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 35319if test `eval echo '${'$as_ac_Header'}'` = yes; then 35320 cat >>confdefs.h <<_ACEOF 35321#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 35322_ACEOF 35323 35324fi 35325 35326done 35327 35328 35329for ac_header in netinfo/ni.h 35330do 35331as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 35332if eval "test \"\${$as_ac_Header+set}\" = set"; then 35333 echo "$as_me:$LINENO: checking for $ac_header" >&5 35334echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 35335if eval "test \"\${$as_ac_Header+set}\" = set"; then 35336 echo $ECHO_N "(cached) $ECHO_C" >&6 35337fi 35338echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 35339echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 35340else 35341 # Is the header compilable? 35342echo "$as_me:$LINENO: checking $ac_header usability" >&5 35343echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 35344cat >conftest.$ac_ext <<_ACEOF 35345/* confdefs.h. */ 35346_ACEOF 35347cat confdefs.h >>conftest.$ac_ext 35348cat >>conftest.$ac_ext <<_ACEOF 35349/* end confdefs.h. */ 35350$ac_includes_default 35351#include <$ac_header> 35352_ACEOF 35353rm -f conftest.$ac_objext 35354if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 35355 (eval $ac_compile) 2>conftest.er1 35356 ac_status=$? 35357 grep -v '^ *+' conftest.er1 >conftest.err 35358 rm -f conftest.er1 35359 cat conftest.err >&5 35360 echo "$as_me:$LINENO: \$? = $ac_status" >&5 35361 (exit $ac_status); } && 35362 { ac_try='test -z "$ac_c_werror_flag" 35363 || test ! -s conftest.err' 35364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 35365 (eval $ac_try) 2>&5 35366 ac_status=$? 35367 echo "$as_me:$LINENO: \$? = $ac_status" >&5 35368 (exit $ac_status); }; } && 35369 { ac_try='test -s conftest.$ac_objext' 35370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 35371 (eval $ac_try) 2>&5 35372 ac_status=$? 35373 echo "$as_me:$LINENO: \$? = $ac_status" >&5 35374 (exit $ac_status); }; }; then 35375 ac_header_compiler=yes 35376else 35377 echo "$as_me: failed program was:" >&5 35378sed 's/^/| /' conftest.$ac_ext >&5 35379 35380ac_header_compiler=no 35381fi 35382rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 35383echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 35384echo "${ECHO_T}$ac_header_compiler" >&6 35385 35386# Is the header present? 35387echo "$as_me:$LINENO: checking $ac_header presence" >&5 35388echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 35389cat >conftest.$ac_ext <<_ACEOF 35390/* confdefs.h. */ 35391_ACEOF 35392cat confdefs.h >>conftest.$ac_ext 35393cat >>conftest.$ac_ext <<_ACEOF 35394/* end confdefs.h. */ 35395#include <$ac_header> 35396_ACEOF 35397if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 35398 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 35399 ac_status=$? 35400 grep -v '^ *+' conftest.er1 >conftest.err 35401 rm -f conftest.er1 35402 cat conftest.err >&5 35403 echo "$as_me:$LINENO: \$? = $ac_status" >&5 35404 (exit $ac_status); } >/dev/null; then 35405 if test -s conftest.err; then 35406 ac_cpp_err=$ac_c_preproc_warn_flag 35407 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 35408 else 35409 ac_cpp_err= 35410 fi 35411else 35412 ac_cpp_err=yes 35413fi 35414if test -z "$ac_cpp_err"; then 35415 ac_header_preproc=yes 35416else 35417 echo "$as_me: failed program was:" >&5 35418sed 's/^/| /' conftest.$ac_ext >&5 35419 35420 ac_header_preproc=no 35421fi 35422rm -f conftest.err conftest.$ac_ext 35423echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 35424echo "${ECHO_T}$ac_header_preproc" >&6 35425 35426# So? What about this header? 35427case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 35428 yes:no: ) 35429 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 35430echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 35431 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 35432echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 35433 ac_header_preproc=yes 35434 ;; 35435 no:yes:* ) 35436 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 35437echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 35438 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 35439echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 35440 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 35441echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 35442 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 35443echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 35444 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 35445echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 35446 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 35447echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 35448 ( 35449 cat <<\_ASBOX 35450## ------------------------------ ## 35451## Report this to the ntp lists. ## 35452## ------------------------------ ## 35453_ASBOX 35454 ) | 35455 sed "s/^/$as_me: WARNING: /" >&2 35456 ;; 35457esac 35458echo "$as_me:$LINENO: checking for $ac_header" >&5 35459echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 35460if eval "test \"\${$as_ac_Header+set}\" = set"; then 35461 echo $ECHO_N "(cached) $ECHO_C" >&6 35462else 35463 eval "$as_ac_Header=\$ac_header_preproc" 35464fi 35465echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 35466echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 35467 35468fi 35469if test `eval echo '${'$as_ac_Header'}'` = yes; then 35470 cat >>confdefs.h <<_ACEOF 35471#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 35472_ACEOF 35473 35474cat >>confdefs.h <<\_ACEOF 35475#define HAVE_NETINFO 1 35476_ACEOF 35477 35478fi 35479 35480done 35481 35482 35483 35484for ac_header in sun/audioio.h sys/audioio.h 35485do 35486as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 35487if eval "test \"\${$as_ac_Header+set}\" = set"; then 35488 echo "$as_me:$LINENO: checking for $ac_header" >&5 35489echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 35490if eval "test \"\${$as_ac_Header+set}\" = set"; then 35491 echo $ECHO_N "(cached) $ECHO_C" >&6 35492fi 35493echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 35494echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 35495else 35496 # Is the header compilable? 35497echo "$as_me:$LINENO: checking $ac_header usability" >&5 35498echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 35499cat >conftest.$ac_ext <<_ACEOF 35500/* confdefs.h. */ 35501_ACEOF 35502cat confdefs.h >>conftest.$ac_ext 35503cat >>conftest.$ac_ext <<_ACEOF 35504/* end confdefs.h. */ 35505$ac_includes_default 35506#include <$ac_header> 35507_ACEOF 35508rm -f conftest.$ac_objext 35509if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 35510 (eval $ac_compile) 2>conftest.er1 35511 ac_status=$? 35512 grep -v '^ *+' conftest.er1 >conftest.err 35513 rm -f conftest.er1 35514 cat conftest.err >&5 35515 echo "$as_me:$LINENO: \$? = $ac_status" >&5 35516 (exit $ac_status); } && 35517 { ac_try='test -z "$ac_c_werror_flag" 35518 || test ! -s conftest.err' 35519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 35520 (eval $ac_try) 2>&5 35521 ac_status=$? 35522 echo "$as_me:$LINENO: \$? = $ac_status" >&5 35523 (exit $ac_status); }; } && 35524 { ac_try='test -s conftest.$ac_objext' 35525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 35526 (eval $ac_try) 2>&5 35527 ac_status=$? 35528 echo "$as_me:$LINENO: \$? = $ac_status" >&5 35529 (exit $ac_status); }; }; then 35530 ac_header_compiler=yes 35531else 35532 echo "$as_me: failed program was:" >&5 35533sed 's/^/| /' conftest.$ac_ext >&5 35534 35535ac_header_compiler=no 35536fi 35537rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 35538echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 35539echo "${ECHO_T}$ac_header_compiler" >&6 35540 35541# Is the header present? 35542echo "$as_me:$LINENO: checking $ac_header presence" >&5 35543echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 35544cat >conftest.$ac_ext <<_ACEOF 35545/* confdefs.h. */ 35546_ACEOF 35547cat confdefs.h >>conftest.$ac_ext 35548cat >>conftest.$ac_ext <<_ACEOF 35549/* end confdefs.h. */ 35550#include <$ac_header> 35551_ACEOF 35552if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 35553 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 35554 ac_status=$? 35555 grep -v '^ *+' conftest.er1 >conftest.err 35556 rm -f conftest.er1 35557 cat conftest.err >&5 35558 echo "$as_me:$LINENO: \$? = $ac_status" >&5 35559 (exit $ac_status); } >/dev/null; then 35560 if test -s conftest.err; then 35561 ac_cpp_err=$ac_c_preproc_warn_flag 35562 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 35563 else 35564 ac_cpp_err= 35565 fi 35566else 35567 ac_cpp_err=yes 35568fi 35569if test -z "$ac_cpp_err"; then 35570 ac_header_preproc=yes 35571else 35572 echo "$as_me: failed program was:" >&5 35573sed 's/^/| /' conftest.$ac_ext >&5 35574 35575 ac_header_preproc=no 35576fi 35577rm -f conftest.err conftest.$ac_ext 35578echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 35579echo "${ECHO_T}$ac_header_preproc" >&6 35580 35581# So? What about this header? 35582case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 35583 yes:no: ) 35584 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 35585echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 35586 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 35587echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 35588 ac_header_preproc=yes 35589 ;; 35590 no:yes:* ) 35591 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 35592echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 35593 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 35594echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 35595 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 35596echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 35597 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 35598echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 35599 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 35600echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 35601 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 35602echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 35603 ( 35604 cat <<\_ASBOX 35605## ------------------------------ ## 35606## Report this to the ntp lists. ## 35607## ------------------------------ ## 35608_ASBOX 35609 ) | 35610 sed "s/^/$as_me: WARNING: /" >&2 35611 ;; 35612esac 35613echo "$as_me:$LINENO: checking for $ac_header" >&5 35614echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 35615if eval "test \"\${$as_ac_Header+set}\" = set"; then 35616 echo $ECHO_N "(cached) $ECHO_C" >&6 35617else 35618 eval "$as_ac_Header=\$ac_header_preproc" 35619fi 35620echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 35621echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 35622 35623fi 35624if test `eval echo '${'$as_ac_Header'}'` = yes; then 35625 cat >>confdefs.h <<_ACEOF 35626#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 35627_ACEOF 35628 35629fi 35630 35631done 35632 35633 35634 35635for ac_header in sys/clkdefs.h sys/file.h 35636do 35637as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 35638if eval "test \"\${$as_ac_Header+set}\" = set"; then 35639 echo "$as_me:$LINENO: checking for $ac_header" >&5 35640echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 35641if eval "test \"\${$as_ac_Header+set}\" = set"; then 35642 echo $ECHO_N "(cached) $ECHO_C" >&6 35643fi 35644echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 35645echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 35646else 35647 # Is the header compilable? 35648echo "$as_me:$LINENO: checking $ac_header usability" >&5 35649echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 35650cat >conftest.$ac_ext <<_ACEOF 35651/* confdefs.h. */ 35652_ACEOF 35653cat confdefs.h >>conftest.$ac_ext 35654cat >>conftest.$ac_ext <<_ACEOF 35655/* end confdefs.h. */ 35656$ac_includes_default 35657#include <$ac_header> 35658_ACEOF 35659rm -f conftest.$ac_objext 35660if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 35661 (eval $ac_compile) 2>conftest.er1 35662 ac_status=$? 35663 grep -v '^ *+' conftest.er1 >conftest.err 35664 rm -f conftest.er1 35665 cat conftest.err >&5 35666 echo "$as_me:$LINENO: \$? = $ac_status" >&5 35667 (exit $ac_status); } && 35668 { ac_try='test -z "$ac_c_werror_flag" 35669 || test ! -s conftest.err' 35670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 35671 (eval $ac_try) 2>&5 35672 ac_status=$? 35673 echo "$as_me:$LINENO: \$? = $ac_status" >&5 35674 (exit $ac_status); }; } && 35675 { ac_try='test -s conftest.$ac_objext' 35676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 35677 (eval $ac_try) 2>&5 35678 ac_status=$? 35679 echo "$as_me:$LINENO: \$? = $ac_status" >&5 35680 (exit $ac_status); }; }; then 35681 ac_header_compiler=yes 35682else 35683 echo "$as_me: failed program was:" >&5 35684sed 's/^/| /' conftest.$ac_ext >&5 35685 35686ac_header_compiler=no 35687fi 35688rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 35689echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 35690echo "${ECHO_T}$ac_header_compiler" >&6 35691 35692# Is the header present? 35693echo "$as_me:$LINENO: checking $ac_header presence" >&5 35694echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 35695cat >conftest.$ac_ext <<_ACEOF 35696/* confdefs.h. */ 35697_ACEOF 35698cat confdefs.h >>conftest.$ac_ext 35699cat >>conftest.$ac_ext <<_ACEOF 35700/* end confdefs.h. */ 35701#include <$ac_header> 35702_ACEOF 35703if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 35704 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 35705 ac_status=$? 35706 grep -v '^ *+' conftest.er1 >conftest.err 35707 rm -f conftest.er1 35708 cat conftest.err >&5 35709 echo "$as_me:$LINENO: \$? = $ac_status" >&5 35710 (exit $ac_status); } >/dev/null; then 35711 if test -s conftest.err; then 35712 ac_cpp_err=$ac_c_preproc_warn_flag 35713 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 35714 else 35715 ac_cpp_err= 35716 fi 35717else 35718 ac_cpp_err=yes 35719fi 35720if test -z "$ac_cpp_err"; then 35721 ac_header_preproc=yes 35722else 35723 echo "$as_me: failed program was:" >&5 35724sed 's/^/| /' conftest.$ac_ext >&5 35725 35726 ac_header_preproc=no 35727fi 35728rm -f conftest.err conftest.$ac_ext 35729echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 35730echo "${ECHO_T}$ac_header_preproc" >&6 35731 35732# So? What about this header? 35733case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 35734 yes:no: ) 35735 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 35736echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 35737 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 35738echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 35739 ac_header_preproc=yes 35740 ;; 35741 no:yes:* ) 35742 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 35743echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 35744 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 35745echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 35746 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 35747echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 35748 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 35749echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 35750 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 35751echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 35752 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 35753echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 35754 ( 35755 cat <<\_ASBOX 35756## ------------------------------ ## 35757## Report this to the ntp lists. ## 35758## ------------------------------ ## 35759_ASBOX 35760 ) | 35761 sed "s/^/$as_me: WARNING: /" >&2 35762 ;; 35763esac 35764echo "$as_me:$LINENO: checking for $ac_header" >&5 35765echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 35766if eval "test \"\${$as_ac_Header+set}\" = set"; then 35767 echo $ECHO_N "(cached) $ECHO_C" >&6 35768else 35769 eval "$as_ac_Header=\$ac_header_preproc" 35770fi 35771echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 35772echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 35773 35774fi 35775if test `eval echo '${'$as_ac_Header'}'` = yes; then 35776 cat >>confdefs.h <<_ACEOF 35777#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 35778_ACEOF 35779 35780fi 35781 35782done 35783 35784case "$host" in 35785 *-*-sunos4*) ;; 35786 *) 35787for ac_header in sys/ioctl.h 35788do 35789as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 35790if eval "test \"\${$as_ac_Header+set}\" = set"; then 35791 echo "$as_me:$LINENO: checking for $ac_header" >&5 35792echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 35793if eval "test \"\${$as_ac_Header+set}\" = set"; then 35794 echo $ECHO_N "(cached) $ECHO_C" >&6 35795fi 35796echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 35797echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 35798else 35799 # Is the header compilable? 35800echo "$as_me:$LINENO: checking $ac_header usability" >&5 35801echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 35802cat >conftest.$ac_ext <<_ACEOF 35803/* confdefs.h. */ 35804_ACEOF 35805cat confdefs.h >>conftest.$ac_ext 35806cat >>conftest.$ac_ext <<_ACEOF 35807/* end confdefs.h. */ 35808$ac_includes_default 35809#include <$ac_header> 35810_ACEOF 35811rm -f conftest.$ac_objext 35812if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 35813 (eval $ac_compile) 2>conftest.er1 35814 ac_status=$? 35815 grep -v '^ *+' conftest.er1 >conftest.err 35816 rm -f conftest.er1 35817 cat conftest.err >&5 35818 echo "$as_me:$LINENO: \$? = $ac_status" >&5 35819 (exit $ac_status); } && 35820 { ac_try='test -z "$ac_c_werror_flag" 35821 || test ! -s conftest.err' 35822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 35823 (eval $ac_try) 2>&5 35824 ac_status=$? 35825 echo "$as_me:$LINENO: \$? = $ac_status" >&5 35826 (exit $ac_status); }; } && 35827 { ac_try='test -s conftest.$ac_objext' 35828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 35829 (eval $ac_try) 2>&5 35830 ac_status=$? 35831 echo "$as_me:$LINENO: \$? = $ac_status" >&5 35832 (exit $ac_status); }; }; then 35833 ac_header_compiler=yes 35834else 35835 echo "$as_me: failed program was:" >&5 35836sed 's/^/| /' conftest.$ac_ext >&5 35837 35838ac_header_compiler=no 35839fi 35840rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 35841echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 35842echo "${ECHO_T}$ac_header_compiler" >&6 35843 35844# Is the header present? 35845echo "$as_me:$LINENO: checking $ac_header presence" >&5 35846echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 35847cat >conftest.$ac_ext <<_ACEOF 35848/* confdefs.h. */ 35849_ACEOF 35850cat confdefs.h >>conftest.$ac_ext 35851cat >>conftest.$ac_ext <<_ACEOF 35852/* end confdefs.h. */ 35853#include <$ac_header> 35854_ACEOF 35855if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 35856 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 35857 ac_status=$? 35858 grep -v '^ *+' conftest.er1 >conftest.err 35859 rm -f conftest.er1 35860 cat conftest.err >&5 35861 echo "$as_me:$LINENO: \$? = $ac_status" >&5 35862 (exit $ac_status); } >/dev/null; then 35863 if test -s conftest.err; then 35864 ac_cpp_err=$ac_c_preproc_warn_flag 35865 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 35866 else 35867 ac_cpp_err= 35868 fi 35869else 35870 ac_cpp_err=yes 35871fi 35872if test -z "$ac_cpp_err"; then 35873 ac_header_preproc=yes 35874else 35875 echo "$as_me: failed program was:" >&5 35876sed 's/^/| /' conftest.$ac_ext >&5 35877 35878 ac_header_preproc=no 35879fi 35880rm -f conftest.err conftest.$ac_ext 35881echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 35882echo "${ECHO_T}$ac_header_preproc" >&6 35883 35884# So? What about this header? 35885case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 35886 yes:no: ) 35887 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 35888echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 35889 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 35890echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 35891 ac_header_preproc=yes 35892 ;; 35893 no:yes:* ) 35894 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 35895echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 35896 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 35897echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 35898 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 35899echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 35900 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 35901echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 35902 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 35903echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 35904 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 35905echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 35906 ( 35907 cat <<\_ASBOX 35908## ------------------------------ ## 35909## Report this to the ntp lists. ## 35910## ------------------------------ ## 35911_ASBOX 35912 ) | 35913 sed "s/^/$as_me: WARNING: /" >&2 35914 ;; 35915esac 35916echo "$as_me:$LINENO: checking for $ac_header" >&5 35917echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 35918if eval "test \"\${$as_ac_Header+set}\" = set"; then 35919 echo $ECHO_N "(cached) $ECHO_C" >&6 35920else 35921 eval "$as_ac_Header=\$ac_header_preproc" 35922fi 35923echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 35924echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 35925 35926fi 35927if test `eval echo '${'$as_ac_Header'}'` = yes; then 35928 cat >>confdefs.h <<_ACEOF 35929#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 35930_ACEOF 35931 35932fi 35933 35934done 35935 35936 ;; 35937esac 35938 35939for ac_header in sys/ipc.h 35940do 35941as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 35942if eval "test \"\${$as_ac_Header+set}\" = set"; then 35943 echo "$as_me:$LINENO: checking for $ac_header" >&5 35944echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 35945if eval "test \"\${$as_ac_Header+set}\" = set"; then 35946 echo $ECHO_N "(cached) $ECHO_C" >&6 35947fi 35948echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 35949echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 35950else 35951 # Is the header compilable? 35952echo "$as_me:$LINENO: checking $ac_header usability" >&5 35953echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 35954cat >conftest.$ac_ext <<_ACEOF 35955/* confdefs.h. */ 35956_ACEOF 35957cat confdefs.h >>conftest.$ac_ext 35958cat >>conftest.$ac_ext <<_ACEOF 35959/* end confdefs.h. */ 35960$ac_includes_default 35961#include <$ac_header> 35962_ACEOF 35963rm -f conftest.$ac_objext 35964if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 35965 (eval $ac_compile) 2>conftest.er1 35966 ac_status=$? 35967 grep -v '^ *+' conftest.er1 >conftest.err 35968 rm -f conftest.er1 35969 cat conftest.err >&5 35970 echo "$as_me:$LINENO: \$? = $ac_status" >&5 35971 (exit $ac_status); } && 35972 { ac_try='test -z "$ac_c_werror_flag" 35973 || test ! -s conftest.err' 35974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 35975 (eval $ac_try) 2>&5 35976 ac_status=$? 35977 echo "$as_me:$LINENO: \$? = $ac_status" >&5 35978 (exit $ac_status); }; } && 35979 { ac_try='test -s conftest.$ac_objext' 35980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 35981 (eval $ac_try) 2>&5 35982 ac_status=$? 35983 echo "$as_me:$LINENO: \$? = $ac_status" >&5 35984 (exit $ac_status); }; }; then 35985 ac_header_compiler=yes 35986else 35987 echo "$as_me: failed program was:" >&5 35988sed 's/^/| /' conftest.$ac_ext >&5 35989 35990ac_header_compiler=no 35991fi 35992rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 35993echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 35994echo "${ECHO_T}$ac_header_compiler" >&6 35995 35996# Is the header present? 35997echo "$as_me:$LINENO: checking $ac_header presence" >&5 35998echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 35999cat >conftest.$ac_ext <<_ACEOF 36000/* confdefs.h. */ 36001_ACEOF 36002cat confdefs.h >>conftest.$ac_ext 36003cat >>conftest.$ac_ext <<_ACEOF 36004/* end confdefs.h. */ 36005#include <$ac_header> 36006_ACEOF 36007if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 36008 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 36009 ac_status=$? 36010 grep -v '^ *+' conftest.er1 >conftest.err 36011 rm -f conftest.er1 36012 cat conftest.err >&5 36013 echo "$as_me:$LINENO: \$? = $ac_status" >&5 36014 (exit $ac_status); } >/dev/null; then 36015 if test -s conftest.err; then 36016 ac_cpp_err=$ac_c_preproc_warn_flag 36017 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 36018 else 36019 ac_cpp_err= 36020 fi 36021else 36022 ac_cpp_err=yes 36023fi 36024if test -z "$ac_cpp_err"; then 36025 ac_header_preproc=yes 36026else 36027 echo "$as_me: failed program was:" >&5 36028sed 's/^/| /' conftest.$ac_ext >&5 36029 36030 ac_header_preproc=no 36031fi 36032rm -f conftest.err conftest.$ac_ext 36033echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 36034echo "${ECHO_T}$ac_header_preproc" >&6 36035 36036# So? What about this header? 36037case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 36038 yes:no: ) 36039 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 36040echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 36041 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 36042echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 36043 ac_header_preproc=yes 36044 ;; 36045 no:yes:* ) 36046 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 36047echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 36048 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 36049echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 36050 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 36051echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 36052 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 36053echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 36054 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 36055echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 36056 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 36057echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 36058 ( 36059 cat <<\_ASBOX 36060## ------------------------------ ## 36061## Report this to the ntp lists. ## 36062## ------------------------------ ## 36063_ASBOX 36064 ) | 36065 sed "s/^/$as_me: WARNING: /" >&2 36066 ;; 36067esac 36068echo "$as_me:$LINENO: checking for $ac_header" >&5 36069echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 36070if eval "test \"\${$as_ac_Header+set}\" = set"; then 36071 echo $ECHO_N "(cached) $ECHO_C" >&6 36072else 36073 eval "$as_ac_Header=\$ac_header_preproc" 36074fi 36075echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 36076echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 36077 36078fi 36079if test `eval echo '${'$as_ac_Header'}'` = yes; then 36080 cat >>confdefs.h <<_ACEOF 36081#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 36082_ACEOF 36083 36084fi 36085 36086done 36087 36088 36089 36090 36091 36092 36093for ac_header in sys/lock.h sys/mman.h sys/modem.h sys/param.h sys/ppsclock.h 36094do 36095as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 36096if eval "test \"\${$as_ac_Header+set}\" = set"; then 36097 echo "$as_me:$LINENO: checking for $ac_header" >&5 36098echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 36099if eval "test \"\${$as_ac_Header+set}\" = set"; then 36100 echo $ECHO_N "(cached) $ECHO_C" >&6 36101fi 36102echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 36103echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 36104else 36105 # Is the header compilable? 36106echo "$as_me:$LINENO: checking $ac_header usability" >&5 36107echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 36108cat >conftest.$ac_ext <<_ACEOF 36109/* confdefs.h. */ 36110_ACEOF 36111cat confdefs.h >>conftest.$ac_ext 36112cat >>conftest.$ac_ext <<_ACEOF 36113/* end confdefs.h. */ 36114$ac_includes_default 36115#include <$ac_header> 36116_ACEOF 36117rm -f conftest.$ac_objext 36118if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 36119 (eval $ac_compile) 2>conftest.er1 36120 ac_status=$? 36121 grep -v '^ *+' conftest.er1 >conftest.err 36122 rm -f conftest.er1 36123 cat conftest.err >&5 36124 echo "$as_me:$LINENO: \$? = $ac_status" >&5 36125 (exit $ac_status); } && 36126 { ac_try='test -z "$ac_c_werror_flag" 36127 || test ! -s conftest.err' 36128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 36129 (eval $ac_try) 2>&5 36130 ac_status=$? 36131 echo "$as_me:$LINENO: \$? = $ac_status" >&5 36132 (exit $ac_status); }; } && 36133 { ac_try='test -s conftest.$ac_objext' 36134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 36135 (eval $ac_try) 2>&5 36136 ac_status=$? 36137 echo "$as_me:$LINENO: \$? = $ac_status" >&5 36138 (exit $ac_status); }; }; then 36139 ac_header_compiler=yes 36140else 36141 echo "$as_me: failed program was:" >&5 36142sed 's/^/| /' conftest.$ac_ext >&5 36143 36144ac_header_compiler=no 36145fi 36146rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 36147echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 36148echo "${ECHO_T}$ac_header_compiler" >&6 36149 36150# Is the header present? 36151echo "$as_me:$LINENO: checking $ac_header presence" >&5 36152echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 36153cat >conftest.$ac_ext <<_ACEOF 36154/* confdefs.h. */ 36155_ACEOF 36156cat confdefs.h >>conftest.$ac_ext 36157cat >>conftest.$ac_ext <<_ACEOF 36158/* end confdefs.h. */ 36159#include <$ac_header> 36160_ACEOF 36161if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 36162 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 36163 ac_status=$? 36164 grep -v '^ *+' conftest.er1 >conftest.err 36165 rm -f conftest.er1 36166 cat conftest.err >&5 36167 echo "$as_me:$LINENO: \$? = $ac_status" >&5 36168 (exit $ac_status); } >/dev/null; then 36169 if test -s conftest.err; then 36170 ac_cpp_err=$ac_c_preproc_warn_flag 36171 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 36172 else 36173 ac_cpp_err= 36174 fi 36175else 36176 ac_cpp_err=yes 36177fi 36178if test -z "$ac_cpp_err"; then 36179 ac_header_preproc=yes 36180else 36181 echo "$as_me: failed program was:" >&5 36182sed 's/^/| /' conftest.$ac_ext >&5 36183 36184 ac_header_preproc=no 36185fi 36186rm -f conftest.err conftest.$ac_ext 36187echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 36188echo "${ECHO_T}$ac_header_preproc" >&6 36189 36190# So? What about this header? 36191case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 36192 yes:no: ) 36193 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 36194echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 36195 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 36196echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 36197 ac_header_preproc=yes 36198 ;; 36199 no:yes:* ) 36200 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 36201echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 36202 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 36203echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 36204 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 36205echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 36206 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 36207echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 36208 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 36209echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 36210 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 36211echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 36212 ( 36213 cat <<\_ASBOX 36214## ------------------------------ ## 36215## Report this to the ntp lists. ## 36216## ------------------------------ ## 36217_ASBOX 36218 ) | 36219 sed "s/^/$as_me: WARNING: /" >&2 36220 ;; 36221esac 36222echo "$as_me:$LINENO: checking for $ac_header" >&5 36223echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 36224if eval "test \"\${$as_ac_Header+set}\" = set"; then 36225 echo $ECHO_N "(cached) $ECHO_C" >&6 36226else 36227 eval "$as_ac_Header=\$ac_header_preproc" 36228fi 36229echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 36230echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 36231 36232fi 36233if test `eval echo '${'$as_ac_Header'}'` = yes; then 36234 cat >>confdefs.h <<_ACEOF 36235#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 36236_ACEOF 36237 36238fi 36239 36240done 36241 36242# HMS: Check sys/proc.h and sys/resource.h after some others 36243 36244for ac_header in sys/ppstime.h 36245do 36246as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 36247if eval "test \"\${$as_ac_Header+set}\" = set"; then 36248 echo "$as_me:$LINENO: checking for $ac_header" >&5 36249echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 36250if eval "test \"\${$as_ac_Header+set}\" = set"; then 36251 echo $ECHO_N "(cached) $ECHO_C" >&6 36252fi 36253echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 36254echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 36255else 36256 # Is the header compilable? 36257echo "$as_me:$LINENO: checking $ac_header usability" >&5 36258echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 36259cat >conftest.$ac_ext <<_ACEOF 36260/* confdefs.h. */ 36261_ACEOF 36262cat confdefs.h >>conftest.$ac_ext 36263cat >>conftest.$ac_ext <<_ACEOF 36264/* end confdefs.h. */ 36265$ac_includes_default 36266#include <$ac_header> 36267_ACEOF 36268rm -f conftest.$ac_objext 36269if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 36270 (eval $ac_compile) 2>conftest.er1 36271 ac_status=$? 36272 grep -v '^ *+' conftest.er1 >conftest.err 36273 rm -f conftest.er1 36274 cat conftest.err >&5 36275 echo "$as_me:$LINENO: \$? = $ac_status" >&5 36276 (exit $ac_status); } && 36277 { ac_try='test -z "$ac_c_werror_flag" 36278 || test ! -s conftest.err' 36279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 36280 (eval $ac_try) 2>&5 36281 ac_status=$? 36282 echo "$as_me:$LINENO: \$? = $ac_status" >&5 36283 (exit $ac_status); }; } && 36284 { ac_try='test -s conftest.$ac_objext' 36285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 36286 (eval $ac_try) 2>&5 36287 ac_status=$? 36288 echo "$as_me:$LINENO: \$? = $ac_status" >&5 36289 (exit $ac_status); }; }; then 36290 ac_header_compiler=yes 36291else 36292 echo "$as_me: failed program was:" >&5 36293sed 's/^/| /' conftest.$ac_ext >&5 36294 36295ac_header_compiler=no 36296fi 36297rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 36298echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 36299echo "${ECHO_T}$ac_header_compiler" >&6 36300 36301# Is the header present? 36302echo "$as_me:$LINENO: checking $ac_header presence" >&5 36303echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 36304cat >conftest.$ac_ext <<_ACEOF 36305/* confdefs.h. */ 36306_ACEOF 36307cat confdefs.h >>conftest.$ac_ext 36308cat >>conftest.$ac_ext <<_ACEOF 36309/* end confdefs.h. */ 36310#include <$ac_header> 36311_ACEOF 36312if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 36313 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 36314 ac_status=$? 36315 grep -v '^ *+' conftest.er1 >conftest.err 36316 rm -f conftest.er1 36317 cat conftest.err >&5 36318 echo "$as_me:$LINENO: \$? = $ac_status" >&5 36319 (exit $ac_status); } >/dev/null; then 36320 if test -s conftest.err; then 36321 ac_cpp_err=$ac_c_preproc_warn_flag 36322 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 36323 else 36324 ac_cpp_err= 36325 fi 36326else 36327 ac_cpp_err=yes 36328fi 36329if test -z "$ac_cpp_err"; then 36330 ac_header_preproc=yes 36331else 36332 echo "$as_me: failed program was:" >&5 36333sed 's/^/| /' conftest.$ac_ext >&5 36334 36335 ac_header_preproc=no 36336fi 36337rm -f conftest.err conftest.$ac_ext 36338echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 36339echo "${ECHO_T}$ac_header_preproc" >&6 36340 36341# So? What about this header? 36342case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 36343 yes:no: ) 36344 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 36345echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 36346 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 36347echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 36348 ac_header_preproc=yes 36349 ;; 36350 no:yes:* ) 36351 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 36352echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 36353 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 36354echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 36355 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 36356echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 36357 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 36358echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 36359 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 36360echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 36361 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 36362echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 36363 ( 36364 cat <<\_ASBOX 36365## ------------------------------ ## 36366## Report this to the ntp lists. ## 36367## ------------------------------ ## 36368_ASBOX 36369 ) | 36370 sed "s/^/$as_me: WARNING: /" >&2 36371 ;; 36372esac 36373echo "$as_me:$LINENO: checking for $ac_header" >&5 36374echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 36375if eval "test \"\${$as_ac_Header+set}\" = set"; then 36376 echo $ECHO_N "(cached) $ECHO_C" >&6 36377else 36378 eval "$as_ac_Header=\$ac_header_preproc" 36379fi 36380echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 36381echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 36382 36383fi 36384if test `eval echo '${'$as_ac_Header'}'` = yes; then 36385 cat >>confdefs.h <<_ACEOF 36386#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 36387_ACEOF 36388 36389fi 36390 36391done 36392 36393case "$ac_cv_header_sched_h" in 36394 yes) ;; 36395 *) 36396for ac_header in sys/sched.h 36397do 36398as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 36399if eval "test \"\${$as_ac_Header+set}\" = set"; then 36400 echo "$as_me:$LINENO: checking for $ac_header" >&5 36401echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 36402if eval "test \"\${$as_ac_Header+set}\" = set"; then 36403 echo $ECHO_N "(cached) $ECHO_C" >&6 36404fi 36405echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 36406echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 36407else 36408 # Is the header compilable? 36409echo "$as_me:$LINENO: checking $ac_header usability" >&5 36410echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 36411cat >conftest.$ac_ext <<_ACEOF 36412/* confdefs.h. */ 36413_ACEOF 36414cat confdefs.h >>conftest.$ac_ext 36415cat >>conftest.$ac_ext <<_ACEOF 36416/* end confdefs.h. */ 36417$ac_includes_default 36418#include <$ac_header> 36419_ACEOF 36420rm -f conftest.$ac_objext 36421if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 36422 (eval $ac_compile) 2>conftest.er1 36423 ac_status=$? 36424 grep -v '^ *+' conftest.er1 >conftest.err 36425 rm -f conftest.er1 36426 cat conftest.err >&5 36427 echo "$as_me:$LINENO: \$? = $ac_status" >&5 36428 (exit $ac_status); } && 36429 { ac_try='test -z "$ac_c_werror_flag" 36430 || test ! -s conftest.err' 36431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 36432 (eval $ac_try) 2>&5 36433 ac_status=$? 36434 echo "$as_me:$LINENO: \$? = $ac_status" >&5 36435 (exit $ac_status); }; } && 36436 { ac_try='test -s conftest.$ac_objext' 36437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 36438 (eval $ac_try) 2>&5 36439 ac_status=$? 36440 echo "$as_me:$LINENO: \$? = $ac_status" >&5 36441 (exit $ac_status); }; }; then 36442 ac_header_compiler=yes 36443else 36444 echo "$as_me: failed program was:" >&5 36445sed 's/^/| /' conftest.$ac_ext >&5 36446 36447ac_header_compiler=no 36448fi 36449rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 36450echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 36451echo "${ECHO_T}$ac_header_compiler" >&6 36452 36453# Is the header present? 36454echo "$as_me:$LINENO: checking $ac_header presence" >&5 36455echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 36456cat >conftest.$ac_ext <<_ACEOF 36457/* confdefs.h. */ 36458_ACEOF 36459cat confdefs.h >>conftest.$ac_ext 36460cat >>conftest.$ac_ext <<_ACEOF 36461/* end confdefs.h. */ 36462#include <$ac_header> 36463_ACEOF 36464if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 36465 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 36466 ac_status=$? 36467 grep -v '^ *+' conftest.er1 >conftest.err 36468 rm -f conftest.er1 36469 cat conftest.err >&5 36470 echo "$as_me:$LINENO: \$? = $ac_status" >&5 36471 (exit $ac_status); } >/dev/null; then 36472 if test -s conftest.err; then 36473 ac_cpp_err=$ac_c_preproc_warn_flag 36474 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 36475 else 36476 ac_cpp_err= 36477 fi 36478else 36479 ac_cpp_err=yes 36480fi 36481if test -z "$ac_cpp_err"; then 36482 ac_header_preproc=yes 36483else 36484 echo "$as_me: failed program was:" >&5 36485sed 's/^/| /' conftest.$ac_ext >&5 36486 36487 ac_header_preproc=no 36488fi 36489rm -f conftest.err conftest.$ac_ext 36490echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 36491echo "${ECHO_T}$ac_header_preproc" >&6 36492 36493# So? What about this header? 36494case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 36495 yes:no: ) 36496 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 36497echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 36498 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 36499echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 36500 ac_header_preproc=yes 36501 ;; 36502 no:yes:* ) 36503 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 36504echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 36505 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 36506echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 36507 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 36508echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 36509 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 36510echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 36511 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 36512echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 36513 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 36514echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 36515 ( 36516 cat <<\_ASBOX 36517## ------------------------------ ## 36518## Report this to the ntp lists. ## 36519## ------------------------------ ## 36520_ASBOX 36521 ) | 36522 sed "s/^/$as_me: WARNING: /" >&2 36523 ;; 36524esac 36525echo "$as_me:$LINENO: checking for $ac_header" >&5 36526echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 36527if eval "test \"\${$as_ac_Header+set}\" = set"; then 36528 echo $ECHO_N "(cached) $ECHO_C" >&6 36529else 36530 eval "$as_ac_Header=\$ac_header_preproc" 36531fi 36532echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 36533echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 36534 36535fi 36536if test `eval echo '${'$as_ac_Header'}'` = yes; then 36537 cat >>confdefs.h <<_ACEOF 36538#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 36539_ACEOF 36540 36541fi 36542 36543done 36544 ;; 36545esac 36546case "$host" in 36547 *-*-sco*) 36548 36549for ac_header in sys/sio.h 36550do 36551as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 36552if eval "test \"\${$as_ac_Header+set}\" = set"; then 36553 echo "$as_me:$LINENO: checking for $ac_header" >&5 36554echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 36555if eval "test \"\${$as_ac_Header+set}\" = set"; then 36556 echo $ECHO_N "(cached) $ECHO_C" >&6 36557fi 36558echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 36559echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 36560else 36561 # Is the header compilable? 36562echo "$as_me:$LINENO: checking $ac_header usability" >&5 36563echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 36564cat >conftest.$ac_ext <<_ACEOF 36565/* confdefs.h. */ 36566_ACEOF 36567cat confdefs.h >>conftest.$ac_ext 36568cat >>conftest.$ac_ext <<_ACEOF 36569/* end confdefs.h. */ 36570$ac_includes_default 36571#include <$ac_header> 36572_ACEOF 36573rm -f conftest.$ac_objext 36574if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 36575 (eval $ac_compile) 2>conftest.er1 36576 ac_status=$? 36577 grep -v '^ *+' conftest.er1 >conftest.err 36578 rm -f conftest.er1 36579 cat conftest.err >&5 36580 echo "$as_me:$LINENO: \$? = $ac_status" >&5 36581 (exit $ac_status); } && 36582 { ac_try='test -z "$ac_c_werror_flag" 36583 || test ! -s conftest.err' 36584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 36585 (eval $ac_try) 2>&5 36586 ac_status=$? 36587 echo "$as_me:$LINENO: \$? = $ac_status" >&5 36588 (exit $ac_status); }; } && 36589 { ac_try='test -s conftest.$ac_objext' 36590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 36591 (eval $ac_try) 2>&5 36592 ac_status=$? 36593 echo "$as_me:$LINENO: \$? = $ac_status" >&5 36594 (exit $ac_status); }; }; then 36595 ac_header_compiler=yes 36596else 36597 echo "$as_me: failed program was:" >&5 36598sed 's/^/| /' conftest.$ac_ext >&5 36599 36600ac_header_compiler=no 36601fi 36602rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 36603echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 36604echo "${ECHO_T}$ac_header_compiler" >&6 36605 36606# Is the header present? 36607echo "$as_me:$LINENO: checking $ac_header presence" >&5 36608echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 36609cat >conftest.$ac_ext <<_ACEOF 36610/* confdefs.h. */ 36611_ACEOF 36612cat confdefs.h >>conftest.$ac_ext 36613cat >>conftest.$ac_ext <<_ACEOF 36614/* end confdefs.h. */ 36615#include <$ac_header> 36616_ACEOF 36617if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 36618 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 36619 ac_status=$? 36620 grep -v '^ *+' conftest.er1 >conftest.err 36621 rm -f conftest.er1 36622 cat conftest.err >&5 36623 echo "$as_me:$LINENO: \$? = $ac_status" >&5 36624 (exit $ac_status); } >/dev/null; then 36625 if test -s conftest.err; then 36626 ac_cpp_err=$ac_c_preproc_warn_flag 36627 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 36628 else 36629 ac_cpp_err= 36630 fi 36631else 36632 ac_cpp_err=yes 36633fi 36634if test -z "$ac_cpp_err"; then 36635 ac_header_preproc=yes 36636else 36637 echo "$as_me: failed program was:" >&5 36638sed 's/^/| /' conftest.$ac_ext >&5 36639 36640 ac_header_preproc=no 36641fi 36642rm -f conftest.err conftest.$ac_ext 36643echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 36644echo "${ECHO_T}$ac_header_preproc" >&6 36645 36646# So? What about this header? 36647case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 36648 yes:no: ) 36649 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 36650echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 36651 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 36652echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 36653 ac_header_preproc=yes 36654 ;; 36655 no:yes:* ) 36656 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 36657echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 36658 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 36659echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 36660 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 36661echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 36662 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 36663echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 36664 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 36665echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 36666 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 36667echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 36668 ( 36669 cat <<\_ASBOX 36670## ------------------------------ ## 36671## Report this to the ntp lists. ## 36672## ------------------------------ ## 36673_ASBOX 36674 ) | 36675 sed "s/^/$as_me: WARNING: /" >&2 36676 ;; 36677esac 36678echo "$as_me:$LINENO: checking for $ac_header" >&5 36679echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 36680if eval "test \"\${$as_ac_Header+set}\" = set"; then 36681 echo $ECHO_N "(cached) $ECHO_C" >&6 36682else 36683 eval "$as_ac_Header=\$ac_header_preproc" 36684fi 36685echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 36686echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 36687 36688fi 36689if test `eval echo '${'$as_ac_Header'}'` = yes; then 36690 cat >>confdefs.h <<_ACEOF 36691#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 36692_ACEOF 36693 36694fi 36695 36696done 36697 36698 ;; 36699esac 36700# HMS: Check sys/shm.h after some others 36701 36702 36703 36704for ac_header in sys/select.h sys/signal.h sys/sockio.h 36705do 36706as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 36707if eval "test \"\${$as_ac_Header+set}\" = set"; then 36708 echo "$as_me:$LINENO: checking for $ac_header" >&5 36709echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 36710if eval "test \"\${$as_ac_Header+set}\" = set"; then 36711 echo $ECHO_N "(cached) $ECHO_C" >&6 36712fi 36713echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 36714echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 36715else 36716 # Is the header compilable? 36717echo "$as_me:$LINENO: checking $ac_header usability" >&5 36718echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 36719cat >conftest.$ac_ext <<_ACEOF 36720/* confdefs.h. */ 36721_ACEOF 36722cat confdefs.h >>conftest.$ac_ext 36723cat >>conftest.$ac_ext <<_ACEOF 36724/* end confdefs.h. */ 36725$ac_includes_default 36726#include <$ac_header> 36727_ACEOF 36728rm -f conftest.$ac_objext 36729if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 36730 (eval $ac_compile) 2>conftest.er1 36731 ac_status=$? 36732 grep -v '^ *+' conftest.er1 >conftest.err 36733 rm -f conftest.er1 36734 cat conftest.err >&5 36735 echo "$as_me:$LINENO: \$? = $ac_status" >&5 36736 (exit $ac_status); } && 36737 { ac_try='test -z "$ac_c_werror_flag" 36738 || test ! -s conftest.err' 36739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 36740 (eval $ac_try) 2>&5 36741 ac_status=$? 36742 echo "$as_me:$LINENO: \$? = $ac_status" >&5 36743 (exit $ac_status); }; } && 36744 { ac_try='test -s conftest.$ac_objext' 36745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 36746 (eval $ac_try) 2>&5 36747 ac_status=$? 36748 echo "$as_me:$LINENO: \$? = $ac_status" >&5 36749 (exit $ac_status); }; }; then 36750 ac_header_compiler=yes 36751else 36752 echo "$as_me: failed program was:" >&5 36753sed 's/^/| /' conftest.$ac_ext >&5 36754 36755ac_header_compiler=no 36756fi 36757rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 36758echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 36759echo "${ECHO_T}$ac_header_compiler" >&6 36760 36761# Is the header present? 36762echo "$as_me:$LINENO: checking $ac_header presence" >&5 36763echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 36764cat >conftest.$ac_ext <<_ACEOF 36765/* confdefs.h. */ 36766_ACEOF 36767cat confdefs.h >>conftest.$ac_ext 36768cat >>conftest.$ac_ext <<_ACEOF 36769/* end confdefs.h. */ 36770#include <$ac_header> 36771_ACEOF 36772if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 36773 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 36774 ac_status=$? 36775 grep -v '^ *+' conftest.er1 >conftest.err 36776 rm -f conftest.er1 36777 cat conftest.err >&5 36778 echo "$as_me:$LINENO: \$? = $ac_status" >&5 36779 (exit $ac_status); } >/dev/null; then 36780 if test -s conftest.err; then 36781 ac_cpp_err=$ac_c_preproc_warn_flag 36782 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 36783 else 36784 ac_cpp_err= 36785 fi 36786else 36787 ac_cpp_err=yes 36788fi 36789if test -z "$ac_cpp_err"; then 36790 ac_header_preproc=yes 36791else 36792 echo "$as_me: failed program was:" >&5 36793sed 's/^/| /' conftest.$ac_ext >&5 36794 36795 ac_header_preproc=no 36796fi 36797rm -f conftest.err conftest.$ac_ext 36798echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 36799echo "${ECHO_T}$ac_header_preproc" >&6 36800 36801# So? What about this header? 36802case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 36803 yes:no: ) 36804 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 36805echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 36806 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 36807echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 36808 ac_header_preproc=yes 36809 ;; 36810 no:yes:* ) 36811 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 36812echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 36813 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 36814echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 36815 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 36816echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 36817 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 36818echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 36819 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 36820echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 36821 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 36822echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 36823 ( 36824 cat <<\_ASBOX 36825## ------------------------------ ## 36826## Report this to the ntp lists. ## 36827## ------------------------------ ## 36828_ASBOX 36829 ) | 36830 sed "s/^/$as_me: WARNING: /" >&2 36831 ;; 36832esac 36833echo "$as_me:$LINENO: checking for $ac_header" >&5 36834echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 36835if eval "test \"\${$as_ac_Header+set}\" = set"; then 36836 echo $ECHO_N "(cached) $ECHO_C" >&6 36837else 36838 eval "$as_ac_Header=\$ac_header_preproc" 36839fi 36840echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 36841echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 36842 36843fi 36844if test `eval echo '${'$as_ac_Header'}'` = yes; then 36845 cat >>confdefs.h <<_ACEOF 36846#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 36847_ACEOF 36848 36849fi 36850 36851done 36852 36853# HMS: Checked sys/socket.h earlier 36854case "$host" in 36855 *-*-netbsd*) ;; 36856 *) 36857 36858for ac_header in machine/soundcard.h sys/soundcard.h 36859do 36860as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 36861if eval "test \"\${$as_ac_Header+set}\" = set"; then 36862 echo "$as_me:$LINENO: checking for $ac_header" >&5 36863echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 36864if eval "test \"\${$as_ac_Header+set}\" = set"; then 36865 echo $ECHO_N "(cached) $ECHO_C" >&6 36866fi 36867echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 36868echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 36869else 36870 # Is the header compilable? 36871echo "$as_me:$LINENO: checking $ac_header usability" >&5 36872echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 36873cat >conftest.$ac_ext <<_ACEOF 36874/* confdefs.h. */ 36875_ACEOF 36876cat confdefs.h >>conftest.$ac_ext 36877cat >>conftest.$ac_ext <<_ACEOF 36878/* end confdefs.h. */ 36879$ac_includes_default 36880#include <$ac_header> 36881_ACEOF 36882rm -f conftest.$ac_objext 36883if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 36884 (eval $ac_compile) 2>conftest.er1 36885 ac_status=$? 36886 grep -v '^ *+' conftest.er1 >conftest.err 36887 rm -f conftest.er1 36888 cat conftest.err >&5 36889 echo "$as_me:$LINENO: \$? = $ac_status" >&5 36890 (exit $ac_status); } && 36891 { ac_try='test -z "$ac_c_werror_flag" 36892 || test ! -s conftest.err' 36893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 36894 (eval $ac_try) 2>&5 36895 ac_status=$? 36896 echo "$as_me:$LINENO: \$? = $ac_status" >&5 36897 (exit $ac_status); }; } && 36898 { ac_try='test -s conftest.$ac_objext' 36899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 36900 (eval $ac_try) 2>&5 36901 ac_status=$? 36902 echo "$as_me:$LINENO: \$? = $ac_status" >&5 36903 (exit $ac_status); }; }; then 36904 ac_header_compiler=yes 36905else 36906 echo "$as_me: failed program was:" >&5 36907sed 's/^/| /' conftest.$ac_ext >&5 36908 36909ac_header_compiler=no 36910fi 36911rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 36912echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 36913echo "${ECHO_T}$ac_header_compiler" >&6 36914 36915# Is the header present? 36916echo "$as_me:$LINENO: checking $ac_header presence" >&5 36917echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 36918cat >conftest.$ac_ext <<_ACEOF 36919/* confdefs.h. */ 36920_ACEOF 36921cat confdefs.h >>conftest.$ac_ext 36922cat >>conftest.$ac_ext <<_ACEOF 36923/* end confdefs.h. */ 36924#include <$ac_header> 36925_ACEOF 36926if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 36927 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 36928 ac_status=$? 36929 grep -v '^ *+' conftest.er1 >conftest.err 36930 rm -f conftest.er1 36931 cat conftest.err >&5 36932 echo "$as_me:$LINENO: \$? = $ac_status" >&5 36933 (exit $ac_status); } >/dev/null; then 36934 if test -s conftest.err; then 36935 ac_cpp_err=$ac_c_preproc_warn_flag 36936 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 36937 else 36938 ac_cpp_err= 36939 fi 36940else 36941 ac_cpp_err=yes 36942fi 36943if test -z "$ac_cpp_err"; then 36944 ac_header_preproc=yes 36945else 36946 echo "$as_me: failed program was:" >&5 36947sed 's/^/| /' conftest.$ac_ext >&5 36948 36949 ac_header_preproc=no 36950fi 36951rm -f conftest.err conftest.$ac_ext 36952echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 36953echo "${ECHO_T}$ac_header_preproc" >&6 36954 36955# So? What about this header? 36956case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 36957 yes:no: ) 36958 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 36959echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 36960 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 36961echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 36962 ac_header_preproc=yes 36963 ;; 36964 no:yes:* ) 36965 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 36966echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 36967 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 36968echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 36969 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 36970echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 36971 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 36972echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 36973 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 36974echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 36975 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 36976echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 36977 ( 36978 cat <<\_ASBOX 36979## ------------------------------ ## 36980## Report this to the ntp lists. ## 36981## ------------------------------ ## 36982_ASBOX 36983 ) | 36984 sed "s/^/$as_me: WARNING: /" >&2 36985 ;; 36986esac 36987echo "$as_me:$LINENO: checking for $ac_header" >&5 36988echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 36989if eval "test \"\${$as_ac_Header+set}\" = set"; then 36990 echo $ECHO_N "(cached) $ECHO_C" >&6 36991else 36992 eval "$as_ac_Header=\$ac_header_preproc" 36993fi 36994echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 36995echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 36996 36997fi 36998if test `eval echo '${'$as_ac_Header'}'` = yes; then 36999 cat >>confdefs.h <<_ACEOF 37000#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 37001_ACEOF 37002 37003fi 37004 37005done 37006 37007 ;; 37008esac 37009 37010 37011for ac_header in sys/stat.h sys/stream.h 37012do 37013as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 37014if eval "test \"\${$as_ac_Header+set}\" = set"; then 37015 echo "$as_me:$LINENO: checking for $ac_header" >&5 37016echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 37017if eval "test \"\${$as_ac_Header+set}\" = set"; then 37018 echo $ECHO_N "(cached) $ECHO_C" >&6 37019fi 37020echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 37021echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 37022else 37023 # Is the header compilable? 37024echo "$as_me:$LINENO: checking $ac_header usability" >&5 37025echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 37026cat >conftest.$ac_ext <<_ACEOF 37027/* confdefs.h. */ 37028_ACEOF 37029cat confdefs.h >>conftest.$ac_ext 37030cat >>conftest.$ac_ext <<_ACEOF 37031/* end confdefs.h. */ 37032$ac_includes_default 37033#include <$ac_header> 37034_ACEOF 37035rm -f conftest.$ac_objext 37036if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 37037 (eval $ac_compile) 2>conftest.er1 37038 ac_status=$? 37039 grep -v '^ *+' conftest.er1 >conftest.err 37040 rm -f conftest.er1 37041 cat conftest.err >&5 37042 echo "$as_me:$LINENO: \$? = $ac_status" >&5 37043 (exit $ac_status); } && 37044 { ac_try='test -z "$ac_c_werror_flag" 37045 || test ! -s conftest.err' 37046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 37047 (eval $ac_try) 2>&5 37048 ac_status=$? 37049 echo "$as_me:$LINENO: \$? = $ac_status" >&5 37050 (exit $ac_status); }; } && 37051 { ac_try='test -s conftest.$ac_objext' 37052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 37053 (eval $ac_try) 2>&5 37054 ac_status=$? 37055 echo "$as_me:$LINENO: \$? = $ac_status" >&5 37056 (exit $ac_status); }; }; then 37057 ac_header_compiler=yes 37058else 37059 echo "$as_me: failed program was:" >&5 37060sed 's/^/| /' conftest.$ac_ext >&5 37061 37062ac_header_compiler=no 37063fi 37064rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 37065echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 37066echo "${ECHO_T}$ac_header_compiler" >&6 37067 37068# Is the header present? 37069echo "$as_me:$LINENO: checking $ac_header presence" >&5 37070echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 37071cat >conftest.$ac_ext <<_ACEOF 37072/* confdefs.h. */ 37073_ACEOF 37074cat confdefs.h >>conftest.$ac_ext 37075cat >>conftest.$ac_ext <<_ACEOF 37076/* end confdefs.h. */ 37077#include <$ac_header> 37078_ACEOF 37079if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 37080 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 37081 ac_status=$? 37082 grep -v '^ *+' conftest.er1 >conftest.err 37083 rm -f conftest.er1 37084 cat conftest.err >&5 37085 echo "$as_me:$LINENO: \$? = $ac_status" >&5 37086 (exit $ac_status); } >/dev/null; then 37087 if test -s conftest.err; then 37088 ac_cpp_err=$ac_c_preproc_warn_flag 37089 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 37090 else 37091 ac_cpp_err= 37092 fi 37093else 37094 ac_cpp_err=yes 37095fi 37096if test -z "$ac_cpp_err"; then 37097 ac_header_preproc=yes 37098else 37099 echo "$as_me: failed program was:" >&5 37100sed 's/^/| /' conftest.$ac_ext >&5 37101 37102 ac_header_preproc=no 37103fi 37104rm -f conftest.err conftest.$ac_ext 37105echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 37106echo "${ECHO_T}$ac_header_preproc" >&6 37107 37108# So? What about this header? 37109case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 37110 yes:no: ) 37111 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 37112echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 37113 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 37114echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 37115 ac_header_preproc=yes 37116 ;; 37117 no:yes:* ) 37118 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 37119echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 37120 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 37121echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 37122 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 37123echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 37124 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 37125echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 37126 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 37127echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 37128 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 37129echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 37130 ( 37131 cat <<\_ASBOX 37132## ------------------------------ ## 37133## Report this to the ntp lists. ## 37134## ------------------------------ ## 37135_ASBOX 37136 ) | 37137 sed "s/^/$as_me: WARNING: /" >&2 37138 ;; 37139esac 37140echo "$as_me:$LINENO: checking for $ac_header" >&5 37141echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 37142if eval "test \"\${$as_ac_Header+set}\" = set"; then 37143 echo $ECHO_N "(cached) $ECHO_C" >&6 37144else 37145 eval "$as_ac_Header=\$ac_header_preproc" 37146fi 37147echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 37148echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 37149 37150fi 37151if test `eval echo '${'$as_ac_Header'}'` = yes; then 37152 cat >>confdefs.h <<_ACEOF 37153#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 37154_ACEOF 37155 37156fi 37157 37158done 37159 37160 37161 37162 37163 37164for ac_header in sys/stropts.h sys/sysctl.h sys/syssgi.h sys/systune.h 37165do 37166as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 37167if eval "test \"\${$as_ac_Header+set}\" = set"; then 37168 echo "$as_me:$LINENO: checking for $ac_header" >&5 37169echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 37170if eval "test \"\${$as_ac_Header+set}\" = set"; then 37171 echo $ECHO_N "(cached) $ECHO_C" >&6 37172fi 37173echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 37174echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 37175else 37176 # Is the header compilable? 37177echo "$as_me:$LINENO: checking $ac_header usability" >&5 37178echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 37179cat >conftest.$ac_ext <<_ACEOF 37180/* confdefs.h. */ 37181_ACEOF 37182cat confdefs.h >>conftest.$ac_ext 37183cat >>conftest.$ac_ext <<_ACEOF 37184/* end confdefs.h. */ 37185$ac_includes_default 37186#include <$ac_header> 37187_ACEOF 37188rm -f conftest.$ac_objext 37189if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 37190 (eval $ac_compile) 2>conftest.er1 37191 ac_status=$? 37192 grep -v '^ *+' conftest.er1 >conftest.err 37193 rm -f conftest.er1 37194 cat conftest.err >&5 37195 echo "$as_me:$LINENO: \$? = $ac_status" >&5 37196 (exit $ac_status); } && 37197 { ac_try='test -z "$ac_c_werror_flag" 37198 || test ! -s conftest.err' 37199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 37200 (eval $ac_try) 2>&5 37201 ac_status=$? 37202 echo "$as_me:$LINENO: \$? = $ac_status" >&5 37203 (exit $ac_status); }; } && 37204 { ac_try='test -s conftest.$ac_objext' 37205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 37206 (eval $ac_try) 2>&5 37207 ac_status=$? 37208 echo "$as_me:$LINENO: \$? = $ac_status" >&5 37209 (exit $ac_status); }; }; then 37210 ac_header_compiler=yes 37211else 37212 echo "$as_me: failed program was:" >&5 37213sed 's/^/| /' conftest.$ac_ext >&5 37214 37215ac_header_compiler=no 37216fi 37217rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 37218echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 37219echo "${ECHO_T}$ac_header_compiler" >&6 37220 37221# Is the header present? 37222echo "$as_me:$LINENO: checking $ac_header presence" >&5 37223echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 37224cat >conftest.$ac_ext <<_ACEOF 37225/* confdefs.h. */ 37226_ACEOF 37227cat confdefs.h >>conftest.$ac_ext 37228cat >>conftest.$ac_ext <<_ACEOF 37229/* end confdefs.h. */ 37230#include <$ac_header> 37231_ACEOF 37232if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 37233 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 37234 ac_status=$? 37235 grep -v '^ *+' conftest.er1 >conftest.err 37236 rm -f conftest.er1 37237 cat conftest.err >&5 37238 echo "$as_me:$LINENO: \$? = $ac_status" >&5 37239 (exit $ac_status); } >/dev/null; then 37240 if test -s conftest.err; then 37241 ac_cpp_err=$ac_c_preproc_warn_flag 37242 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 37243 else 37244 ac_cpp_err= 37245 fi 37246else 37247 ac_cpp_err=yes 37248fi 37249if test -z "$ac_cpp_err"; then 37250 ac_header_preproc=yes 37251else 37252 echo "$as_me: failed program was:" >&5 37253sed 's/^/| /' conftest.$ac_ext >&5 37254 37255 ac_header_preproc=no 37256fi 37257rm -f conftest.err conftest.$ac_ext 37258echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 37259echo "${ECHO_T}$ac_header_preproc" >&6 37260 37261# So? What about this header? 37262case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 37263 yes:no: ) 37264 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 37265echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 37266 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 37267echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 37268 ac_header_preproc=yes 37269 ;; 37270 no:yes:* ) 37271 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 37272echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 37273 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 37274echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 37275 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 37276echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 37277 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 37278echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 37279 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 37280echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 37281 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 37282echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 37283 ( 37284 cat <<\_ASBOX 37285## ------------------------------ ## 37286## Report this to the ntp lists. ## 37287## ------------------------------ ## 37288_ASBOX 37289 ) | 37290 sed "s/^/$as_me: WARNING: /" >&2 37291 ;; 37292esac 37293echo "$as_me:$LINENO: checking for $ac_header" >&5 37294echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 37295if eval "test \"\${$as_ac_Header+set}\" = set"; then 37296 echo $ECHO_N "(cached) $ECHO_C" >&6 37297else 37298 eval "$as_ac_Header=\$ac_header_preproc" 37299fi 37300echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 37301echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 37302 37303fi 37304if test `eval echo '${'$as_ac_Header'}'` = yes; then 37305 cat >>confdefs.h <<_ACEOF 37306#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 37307_ACEOF 37308 37309fi 37310 37311done 37312 37313 37314 37315 37316for ac_header in sys/termios.h sys/time.h sys/signal.h 37317do 37318as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 37319if eval "test \"\${$as_ac_Header+set}\" = set"; then 37320 echo "$as_me:$LINENO: checking for $ac_header" >&5 37321echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 37322if eval "test \"\${$as_ac_Header+set}\" = set"; then 37323 echo $ECHO_N "(cached) $ECHO_C" >&6 37324fi 37325echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 37326echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 37327else 37328 # Is the header compilable? 37329echo "$as_me:$LINENO: checking $ac_header usability" >&5 37330echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 37331cat >conftest.$ac_ext <<_ACEOF 37332/* confdefs.h. */ 37333_ACEOF 37334cat confdefs.h >>conftest.$ac_ext 37335cat >>conftest.$ac_ext <<_ACEOF 37336/* end confdefs.h. */ 37337$ac_includes_default 37338#include <$ac_header> 37339_ACEOF 37340rm -f conftest.$ac_objext 37341if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 37342 (eval $ac_compile) 2>conftest.er1 37343 ac_status=$? 37344 grep -v '^ *+' conftest.er1 >conftest.err 37345 rm -f conftest.er1 37346 cat conftest.err >&5 37347 echo "$as_me:$LINENO: \$? = $ac_status" >&5 37348 (exit $ac_status); } && 37349 { ac_try='test -z "$ac_c_werror_flag" 37350 || test ! -s conftest.err' 37351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 37352 (eval $ac_try) 2>&5 37353 ac_status=$? 37354 echo "$as_me:$LINENO: \$? = $ac_status" >&5 37355 (exit $ac_status); }; } && 37356 { ac_try='test -s conftest.$ac_objext' 37357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 37358 (eval $ac_try) 2>&5 37359 ac_status=$? 37360 echo "$as_me:$LINENO: \$? = $ac_status" >&5 37361 (exit $ac_status); }; }; then 37362 ac_header_compiler=yes 37363else 37364 echo "$as_me: failed program was:" >&5 37365sed 's/^/| /' conftest.$ac_ext >&5 37366 37367ac_header_compiler=no 37368fi 37369rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 37370echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 37371echo "${ECHO_T}$ac_header_compiler" >&6 37372 37373# Is the header present? 37374echo "$as_me:$LINENO: checking $ac_header presence" >&5 37375echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 37376cat >conftest.$ac_ext <<_ACEOF 37377/* confdefs.h. */ 37378_ACEOF 37379cat confdefs.h >>conftest.$ac_ext 37380cat >>conftest.$ac_ext <<_ACEOF 37381/* end confdefs.h. */ 37382#include <$ac_header> 37383_ACEOF 37384if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 37385 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 37386 ac_status=$? 37387 grep -v '^ *+' conftest.er1 >conftest.err 37388 rm -f conftest.er1 37389 cat conftest.err >&5 37390 echo "$as_me:$LINENO: \$? = $ac_status" >&5 37391 (exit $ac_status); } >/dev/null; then 37392 if test -s conftest.err; then 37393 ac_cpp_err=$ac_c_preproc_warn_flag 37394 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 37395 else 37396 ac_cpp_err= 37397 fi 37398else 37399 ac_cpp_err=yes 37400fi 37401if test -z "$ac_cpp_err"; then 37402 ac_header_preproc=yes 37403else 37404 echo "$as_me: failed program was:" >&5 37405sed 's/^/| /' conftest.$ac_ext >&5 37406 37407 ac_header_preproc=no 37408fi 37409rm -f conftest.err conftest.$ac_ext 37410echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 37411echo "${ECHO_T}$ac_header_preproc" >&6 37412 37413# So? What about this header? 37414case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 37415 yes:no: ) 37416 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 37417echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 37418 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 37419echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 37420 ac_header_preproc=yes 37421 ;; 37422 no:yes:* ) 37423 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 37424echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 37425 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 37426echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 37427 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 37428echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 37429 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 37430echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 37431 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 37432echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 37433 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 37434echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 37435 ( 37436 cat <<\_ASBOX 37437## ------------------------------ ## 37438## Report this to the ntp lists. ## 37439## ------------------------------ ## 37440_ASBOX 37441 ) | 37442 sed "s/^/$as_me: WARNING: /" >&2 37443 ;; 37444esac 37445echo "$as_me:$LINENO: checking for $ac_header" >&5 37446echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 37447if eval "test \"\${$as_ac_Header+set}\" = set"; then 37448 echo $ECHO_N "(cached) $ECHO_C" >&6 37449else 37450 eval "$as_ac_Header=\$ac_header_preproc" 37451fi 37452echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 37453echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 37454 37455fi 37456if test `eval echo '${'$as_ac_Header'}'` = yes; then 37457 cat >>confdefs.h <<_ACEOF 37458#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 37459_ACEOF 37460 37461fi 37462 37463done 37464 37465cat >conftest.$ac_ext <<_ACEOF 37466/* confdefs.h. */ 37467_ACEOF 37468cat confdefs.h >>conftest.$ac_ext 37469cat >>conftest.$ac_ext <<_ACEOF 37470/* end confdefs.h. */ 37471#if HAVE_SYS_TIME_H 37472# include <sys/time.h> 37473#endif 37474#if HAVE_ERRNO_H 37475# include <errno.h> 37476#endif 37477#include <sys/timepps.h> 37478#ifdef PPS_API_VERS_1 37479yes 37480#endif 37481 37482_ACEOF 37483if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 37484 $EGREP "yes" >/dev/null 2>&1; then 37485 37486for ac_header in sys/timepps.h 37487do 37488as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 37489echo "$as_me:$LINENO: checking for $ac_header" >&5 37490echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 37491if eval "test \"\${$as_ac_Header+set}\" = set"; then 37492 echo $ECHO_N "(cached) $ECHO_C" >&6 37493else 37494 cat >conftest.$ac_ext <<_ACEOF 37495/* confdefs.h. */ 37496_ACEOF 37497cat confdefs.h >>conftest.$ac_ext 37498cat >>conftest.$ac_ext <<_ACEOF 37499/* end confdefs.h. */ 37500#if HAVE_SYS_TIME_H 37501# include <sys/time.h> 37502#endif 37503#if HAVE_ERRNO_H 37504# include <errno.h> 37505#endif 37506 37507 37508#include <$ac_header> 37509_ACEOF 37510rm -f conftest.$ac_objext 37511if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 37512 (eval $ac_compile) 2>conftest.er1 37513 ac_status=$? 37514 grep -v '^ *+' conftest.er1 >conftest.err 37515 rm -f conftest.er1 37516 cat conftest.err >&5 37517 echo "$as_me:$LINENO: \$? = $ac_status" >&5 37518 (exit $ac_status); } && 37519 { ac_try='test -z "$ac_c_werror_flag" 37520 || test ! -s conftest.err' 37521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 37522 (eval $ac_try) 2>&5 37523 ac_status=$? 37524 echo "$as_me:$LINENO: \$? = $ac_status" >&5 37525 (exit $ac_status); }; } && 37526 { ac_try='test -s conftest.$ac_objext' 37527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 37528 (eval $ac_try) 2>&5 37529 ac_status=$? 37530 echo "$as_me:$LINENO: \$? = $ac_status" >&5 37531 (exit $ac_status); }; }; then 37532 eval "$as_ac_Header=yes" 37533else 37534 echo "$as_me: failed program was:" >&5 37535sed 's/^/| /' conftest.$ac_ext >&5 37536 37537eval "$as_ac_Header=no" 37538fi 37539rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 37540fi 37541echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 37542echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 37543if test `eval echo '${'$as_ac_Header'}'` = yes; then 37544 cat >>confdefs.h <<_ACEOF 37545#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 37546_ACEOF 37547 37548fi 37549 37550done 37551 37552 37553fi 37554rm -f conftest* 37555 37556 37557 37558 37559 37560for ac_header in sys/timers.h sys/tpro.h sys/types.h sys/wait.h 37561do 37562as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 37563if eval "test \"\${$as_ac_Header+set}\" = set"; then 37564 echo "$as_me:$LINENO: checking for $ac_header" >&5 37565echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 37566if eval "test \"\${$as_ac_Header+set}\" = set"; then 37567 echo $ECHO_N "(cached) $ECHO_C" >&6 37568fi 37569echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 37570echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 37571else 37572 # Is the header compilable? 37573echo "$as_me:$LINENO: checking $ac_header usability" >&5 37574echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 37575cat >conftest.$ac_ext <<_ACEOF 37576/* confdefs.h. */ 37577_ACEOF 37578cat confdefs.h >>conftest.$ac_ext 37579cat >>conftest.$ac_ext <<_ACEOF 37580/* end confdefs.h. */ 37581$ac_includes_default 37582#include <$ac_header> 37583_ACEOF 37584rm -f conftest.$ac_objext 37585if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 37586 (eval $ac_compile) 2>conftest.er1 37587 ac_status=$? 37588 grep -v '^ *+' conftest.er1 >conftest.err 37589 rm -f conftest.er1 37590 cat conftest.err >&5 37591 echo "$as_me:$LINENO: \$? = $ac_status" >&5 37592 (exit $ac_status); } && 37593 { ac_try='test -z "$ac_c_werror_flag" 37594 || test ! -s conftest.err' 37595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 37596 (eval $ac_try) 2>&5 37597 ac_status=$? 37598 echo "$as_me:$LINENO: \$? = $ac_status" >&5 37599 (exit $ac_status); }; } && 37600 { ac_try='test -s conftest.$ac_objext' 37601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 37602 (eval $ac_try) 2>&5 37603 ac_status=$? 37604 echo "$as_me:$LINENO: \$? = $ac_status" >&5 37605 (exit $ac_status); }; }; then 37606 ac_header_compiler=yes 37607else 37608 echo "$as_me: failed program was:" >&5 37609sed 's/^/| /' conftest.$ac_ext >&5 37610 37611ac_header_compiler=no 37612fi 37613rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 37614echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 37615echo "${ECHO_T}$ac_header_compiler" >&6 37616 37617# Is the header present? 37618echo "$as_me:$LINENO: checking $ac_header presence" >&5 37619echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 37620cat >conftest.$ac_ext <<_ACEOF 37621/* confdefs.h. */ 37622_ACEOF 37623cat confdefs.h >>conftest.$ac_ext 37624cat >>conftest.$ac_ext <<_ACEOF 37625/* end confdefs.h. */ 37626#include <$ac_header> 37627_ACEOF 37628if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 37629 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 37630 ac_status=$? 37631 grep -v '^ *+' conftest.er1 >conftest.err 37632 rm -f conftest.er1 37633 cat conftest.err >&5 37634 echo "$as_me:$LINENO: \$? = $ac_status" >&5 37635 (exit $ac_status); } >/dev/null; then 37636 if test -s conftest.err; then 37637 ac_cpp_err=$ac_c_preproc_warn_flag 37638 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 37639 else 37640 ac_cpp_err= 37641 fi 37642else 37643 ac_cpp_err=yes 37644fi 37645if test -z "$ac_cpp_err"; then 37646 ac_header_preproc=yes 37647else 37648 echo "$as_me: failed program was:" >&5 37649sed 's/^/| /' conftest.$ac_ext >&5 37650 37651 ac_header_preproc=no 37652fi 37653rm -f conftest.err conftest.$ac_ext 37654echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 37655echo "${ECHO_T}$ac_header_preproc" >&6 37656 37657# So? What about this header? 37658case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 37659 yes:no: ) 37660 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 37661echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 37662 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 37663echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 37664 ac_header_preproc=yes 37665 ;; 37666 no:yes:* ) 37667 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 37668echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 37669 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 37670echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 37671 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 37672echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 37673 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 37674echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 37675 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 37676echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 37677 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 37678echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 37679 ( 37680 cat <<\_ASBOX 37681## ------------------------------ ## 37682## Report this to the ntp lists. ## 37683## ------------------------------ ## 37684_ASBOX 37685 ) | 37686 sed "s/^/$as_me: WARNING: /" >&2 37687 ;; 37688esac 37689echo "$as_me:$LINENO: checking for $ac_header" >&5 37690echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 37691if eval "test \"\${$as_ac_Header+set}\" = set"; then 37692 echo $ECHO_N "(cached) $ECHO_C" >&6 37693else 37694 eval "$as_ac_Header=\$ac_header_preproc" 37695fi 37696echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 37697echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 37698 37699fi 37700if test `eval echo '${'$as_ac_Header'}'` = yes; then 37701 cat >>confdefs.h <<_ACEOF 37702#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 37703_ACEOF 37704 37705fi 37706 37707done 37708 37709echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 37710echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 37711if test "${ac_cv_header_time+set}" = set; then 37712 echo $ECHO_N "(cached) $ECHO_C" >&6 37713else 37714 cat >conftest.$ac_ext <<_ACEOF 37715/* confdefs.h. */ 37716_ACEOF 37717cat confdefs.h >>conftest.$ac_ext 37718cat >>conftest.$ac_ext <<_ACEOF 37719/* end confdefs.h. */ 37720#include <sys/types.h> 37721#include <sys/time.h> 37722#include <time.h> 37723 37724int 37725main () 37726{ 37727if ((struct tm *) 0) 37728return 0; 37729 ; 37730 return 0; 37731} 37732_ACEOF 37733rm -f conftest.$ac_objext 37734if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 37735 (eval $ac_compile) 2>conftest.er1 37736 ac_status=$? 37737 grep -v '^ *+' conftest.er1 >conftest.err 37738 rm -f conftest.er1 37739 cat conftest.err >&5 37740 echo "$as_me:$LINENO: \$? = $ac_status" >&5 37741 (exit $ac_status); } && 37742 { ac_try='test -z "$ac_c_werror_flag" 37743 || test ! -s conftest.err' 37744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 37745 (eval $ac_try) 2>&5 37746 ac_status=$? 37747 echo "$as_me:$LINENO: \$? = $ac_status" >&5 37748 (exit $ac_status); }; } && 37749 { ac_try='test -s conftest.$ac_objext' 37750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 37751 (eval $ac_try) 2>&5 37752 ac_status=$? 37753 echo "$as_me:$LINENO: \$? = $ac_status" >&5 37754 (exit $ac_status); }; }; then 37755 ac_cv_header_time=yes 37756else 37757 echo "$as_me: failed program was:" >&5 37758sed 's/^/| /' conftest.$ac_ext >&5 37759 37760ac_cv_header_time=no 37761fi 37762rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 37763fi 37764echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 37765echo "${ECHO_T}$ac_cv_header_time" >&6 37766if test $ac_cv_header_time = yes; then 37767 37768cat >>confdefs.h <<\_ACEOF 37769#define TIME_WITH_SYS_TIME 1 37770_ACEOF 37771 37772fi 37773 37774case "$host" in 37775*-convex-*) 37776 37777 37778for ac_header in /sys/sync/queue.h /sys/sync/sema.h 37779do 37780as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 37781if eval "test \"\${$as_ac_Header+set}\" = set"; then 37782 echo "$as_me:$LINENO: checking for $ac_header" >&5 37783echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 37784if eval "test \"\${$as_ac_Header+set}\" = set"; then 37785 echo $ECHO_N "(cached) $ECHO_C" >&6 37786fi 37787echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 37788echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 37789else 37790 # Is the header compilable? 37791echo "$as_me:$LINENO: checking $ac_header usability" >&5 37792echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 37793cat >conftest.$ac_ext <<_ACEOF 37794/* confdefs.h. */ 37795_ACEOF 37796cat confdefs.h >>conftest.$ac_ext 37797cat >>conftest.$ac_ext <<_ACEOF 37798/* end confdefs.h. */ 37799$ac_includes_default 37800#include <$ac_header> 37801_ACEOF 37802rm -f conftest.$ac_objext 37803if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 37804 (eval $ac_compile) 2>conftest.er1 37805 ac_status=$? 37806 grep -v '^ *+' conftest.er1 >conftest.err 37807 rm -f conftest.er1 37808 cat conftest.err >&5 37809 echo "$as_me:$LINENO: \$? = $ac_status" >&5 37810 (exit $ac_status); } && 37811 { ac_try='test -z "$ac_c_werror_flag" 37812 || test ! -s conftest.err' 37813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 37814 (eval $ac_try) 2>&5 37815 ac_status=$? 37816 echo "$as_me:$LINENO: \$? = $ac_status" >&5 37817 (exit $ac_status); }; } && 37818 { ac_try='test -s conftest.$ac_objext' 37819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 37820 (eval $ac_try) 2>&5 37821 ac_status=$? 37822 echo "$as_me:$LINENO: \$? = $ac_status" >&5 37823 (exit $ac_status); }; }; then 37824 ac_header_compiler=yes 37825else 37826 echo "$as_me: failed program was:" >&5 37827sed 's/^/| /' conftest.$ac_ext >&5 37828 37829ac_header_compiler=no 37830fi 37831rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 37832echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 37833echo "${ECHO_T}$ac_header_compiler" >&6 37834 37835# Is the header present? 37836echo "$as_me:$LINENO: checking $ac_header presence" >&5 37837echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 37838cat >conftest.$ac_ext <<_ACEOF 37839/* confdefs.h. */ 37840_ACEOF 37841cat confdefs.h >>conftest.$ac_ext 37842cat >>conftest.$ac_ext <<_ACEOF 37843/* end confdefs.h. */ 37844#include <$ac_header> 37845_ACEOF 37846if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 37847 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 37848 ac_status=$? 37849 grep -v '^ *+' conftest.er1 >conftest.err 37850 rm -f conftest.er1 37851 cat conftest.err >&5 37852 echo "$as_me:$LINENO: \$? = $ac_status" >&5 37853 (exit $ac_status); } >/dev/null; then 37854 if test -s conftest.err; then 37855 ac_cpp_err=$ac_c_preproc_warn_flag 37856 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 37857 else 37858 ac_cpp_err= 37859 fi 37860else 37861 ac_cpp_err=yes 37862fi 37863if test -z "$ac_cpp_err"; then 37864 ac_header_preproc=yes 37865else 37866 echo "$as_me: failed program was:" >&5 37867sed 's/^/| /' conftest.$ac_ext >&5 37868 37869 ac_header_preproc=no 37870fi 37871rm -f conftest.err conftest.$ac_ext 37872echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 37873echo "${ECHO_T}$ac_header_preproc" >&6 37874 37875# So? What about this header? 37876case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 37877 yes:no: ) 37878 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 37879echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 37880 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 37881echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 37882 ac_header_preproc=yes 37883 ;; 37884 no:yes:* ) 37885 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 37886echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 37887 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 37888echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 37889 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 37890echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 37891 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 37892echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 37893 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 37894echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 37895 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 37896echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 37897 ( 37898 cat <<\_ASBOX 37899## ------------------------------ ## 37900## Report this to the ntp lists. ## 37901## ------------------------------ ## 37902_ASBOX 37903 ) | 37904 sed "s/^/$as_me: WARNING: /" >&2 37905 ;; 37906esac 37907echo "$as_me:$LINENO: checking for $ac_header" >&5 37908echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 37909if eval "test \"\${$as_ac_Header+set}\" = set"; then 37910 echo $ECHO_N "(cached) $ECHO_C" >&6 37911else 37912 eval "$as_ac_Header=\$ac_header_preproc" 37913fi 37914echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 37915echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 37916 37917fi 37918if test `eval echo '${'$as_ac_Header'}'` = yes; then 37919 cat >>confdefs.h <<_ACEOF 37920#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 37921_ACEOF 37922 37923fi 37924 37925done 37926 37927 ;; 37928*-*-bsdi*) 37929 37930 37931 37932for ac_header in machine/inline.h sys/pcl720.h sys/i8253.h 37933do 37934as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 37935if eval "test \"\${$as_ac_Header+set}\" = set"; then 37936 echo "$as_me:$LINENO: checking for $ac_header" >&5 37937echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 37938if eval "test \"\${$as_ac_Header+set}\" = set"; then 37939 echo $ECHO_N "(cached) $ECHO_C" >&6 37940fi 37941echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 37942echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 37943else 37944 # Is the header compilable? 37945echo "$as_me:$LINENO: checking $ac_header usability" >&5 37946echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 37947cat >conftest.$ac_ext <<_ACEOF 37948/* confdefs.h. */ 37949_ACEOF 37950cat confdefs.h >>conftest.$ac_ext 37951cat >>conftest.$ac_ext <<_ACEOF 37952/* end confdefs.h. */ 37953$ac_includes_default 37954#include <$ac_header> 37955_ACEOF 37956rm -f conftest.$ac_objext 37957if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 37958 (eval $ac_compile) 2>conftest.er1 37959 ac_status=$? 37960 grep -v '^ *+' conftest.er1 >conftest.err 37961 rm -f conftest.er1 37962 cat conftest.err >&5 37963 echo "$as_me:$LINENO: \$? = $ac_status" >&5 37964 (exit $ac_status); } && 37965 { ac_try='test -z "$ac_c_werror_flag" 37966 || test ! -s conftest.err' 37967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 37968 (eval $ac_try) 2>&5 37969 ac_status=$? 37970 echo "$as_me:$LINENO: \$? = $ac_status" >&5 37971 (exit $ac_status); }; } && 37972 { ac_try='test -s conftest.$ac_objext' 37973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 37974 (eval $ac_try) 2>&5 37975 ac_status=$? 37976 echo "$as_me:$LINENO: \$? = $ac_status" >&5 37977 (exit $ac_status); }; }; then 37978 ac_header_compiler=yes 37979else 37980 echo "$as_me: failed program was:" >&5 37981sed 's/^/| /' conftest.$ac_ext >&5 37982 37983ac_header_compiler=no 37984fi 37985rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 37986echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 37987echo "${ECHO_T}$ac_header_compiler" >&6 37988 37989# Is the header present? 37990echo "$as_me:$LINENO: checking $ac_header presence" >&5 37991echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 37992cat >conftest.$ac_ext <<_ACEOF 37993/* confdefs.h. */ 37994_ACEOF 37995cat confdefs.h >>conftest.$ac_ext 37996cat >>conftest.$ac_ext <<_ACEOF 37997/* end confdefs.h. */ 37998#include <$ac_header> 37999_ACEOF 38000if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 38001 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 38002 ac_status=$? 38003 grep -v '^ *+' conftest.er1 >conftest.err 38004 rm -f conftest.er1 38005 cat conftest.err >&5 38006 echo "$as_me:$LINENO: \$? = $ac_status" >&5 38007 (exit $ac_status); } >/dev/null; then 38008 if test -s conftest.err; then 38009 ac_cpp_err=$ac_c_preproc_warn_flag 38010 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 38011 else 38012 ac_cpp_err= 38013 fi 38014else 38015 ac_cpp_err=yes 38016fi 38017if test -z "$ac_cpp_err"; then 38018 ac_header_preproc=yes 38019else 38020 echo "$as_me: failed program was:" >&5 38021sed 's/^/| /' conftest.$ac_ext >&5 38022 38023 ac_header_preproc=no 38024fi 38025rm -f conftest.err conftest.$ac_ext 38026echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 38027echo "${ECHO_T}$ac_header_preproc" >&6 38028 38029# So? What about this header? 38030case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 38031 yes:no: ) 38032 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 38033echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 38034 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 38035echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 38036 ac_header_preproc=yes 38037 ;; 38038 no:yes:* ) 38039 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 38040echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 38041 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 38042echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 38043 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 38044echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 38045 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 38046echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 38047 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 38048echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 38049 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 38050echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 38051 ( 38052 cat <<\_ASBOX 38053## ------------------------------ ## 38054## Report this to the ntp lists. ## 38055## ------------------------------ ## 38056_ASBOX 38057 ) | 38058 sed "s/^/$as_me: WARNING: /" >&2 38059 ;; 38060esac 38061echo "$as_me:$LINENO: checking for $ac_header" >&5 38062echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 38063if eval "test \"\${$as_ac_Header+set}\" = set"; then 38064 echo $ECHO_N "(cached) $ECHO_C" >&6 38065else 38066 eval "$as_ac_Header=\$ac_header_preproc" 38067fi 38068echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 38069echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 38070 38071fi 38072if test `eval echo '${'$as_ac_Header'}'` = yes; then 38073 cat >>confdefs.h <<_ACEOF 38074#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 38075_ACEOF 38076 38077fi 38078 38079done 38080 38081 ;; 38082esac 38083 38084case "$host" in 38085 *-*-linux*) 38086 38087 38088for ac_func in __adjtimex __ntp_gettime 38089do 38090as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 38091echo "$as_me:$LINENO: checking for $ac_func" >&5 38092echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 38093if eval "test \"\${$as_ac_var+set}\" = set"; then 38094 echo $ECHO_N "(cached) $ECHO_C" >&6 38095else 38096 cat >conftest.$ac_ext <<_ACEOF 38097/* confdefs.h. */ 38098_ACEOF 38099cat confdefs.h >>conftest.$ac_ext 38100cat >>conftest.$ac_ext <<_ACEOF 38101/* end confdefs.h. */ 38102/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 38103 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 38104#define $ac_func innocuous_$ac_func 38105 38106/* System header to define __stub macros and hopefully few prototypes, 38107 which can conflict with char $ac_func (); below. 38108 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 38109 <limits.h> exists even on freestanding compilers. */ 38110 38111#ifdef __STDC__ 38112# include <limits.h> 38113#else 38114# include <assert.h> 38115#endif 38116 38117#undef $ac_func 38118 38119/* Override any gcc2 internal prototype to avoid an error. */ 38120#ifdef __cplusplus 38121extern "C" 38122{ 38123#endif 38124/* We use char because int might match the return type of a gcc2 38125 builtin and then its argument prototype would still apply. */ 38126char $ac_func (); 38127/* The GNU C library defines this for functions which it implements 38128 to always fail with ENOSYS. Some functions are actually named 38129 something starting with __ and the normal name is an alias. */ 38130#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 38131choke me 38132#else 38133char (*f) () = $ac_func; 38134#endif 38135#ifdef __cplusplus 38136} 38137#endif 38138 38139int 38140main () 38141{ 38142return f != $ac_func; 38143 ; 38144 return 0; 38145} 38146_ACEOF 38147rm -f conftest.$ac_objext conftest$ac_exeext 38148if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 38149 (eval $ac_link) 2>conftest.er1 38150 ac_status=$? 38151 grep -v '^ *+' conftest.er1 >conftest.err 38152 rm -f conftest.er1 38153 cat conftest.err >&5 38154 echo "$as_me:$LINENO: \$? = $ac_status" >&5 38155 (exit $ac_status); } && 38156 { ac_try='test -z "$ac_c_werror_flag" 38157 || test ! -s conftest.err' 38158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 38159 (eval $ac_try) 2>&5 38160 ac_status=$? 38161 echo "$as_me:$LINENO: \$? = $ac_status" >&5 38162 (exit $ac_status); }; } && 38163 { ac_try='test -s conftest$ac_exeext' 38164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 38165 (eval $ac_try) 2>&5 38166 ac_status=$? 38167 echo "$as_me:$LINENO: \$? = $ac_status" >&5 38168 (exit $ac_status); }; }; then 38169 eval "$as_ac_var=yes" 38170else 38171 echo "$as_me: failed program was:" >&5 38172sed 's/^/| /' conftest.$ac_ext >&5 38173 38174eval "$as_ac_var=no" 38175fi 38176rm -f conftest.err conftest.$ac_objext \ 38177 conftest$ac_exeext conftest.$ac_ext 38178fi 38179echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 38180echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 38181if test `eval echo '${'$as_ac_var'}'` = yes; then 38182 cat >>confdefs.h <<_ACEOF 38183#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 38184_ACEOF 38185 38186fi 38187done 38188 38189 ;; 38190esac 38191case "$ac_cv_func___adjtimex" in 38192 yes) ;; 38193 *) 38194 38195echo "$as_me:$LINENO: checking for nlist in -lelf" >&5 38196echo $ECHO_N "checking for nlist in -lelf... $ECHO_C" >&6 38197if test "${ac_cv_lib_elf_nlist+set}" = set; then 38198 echo $ECHO_N "(cached) $ECHO_C" >&6 38199else 38200 ac_check_lib_save_LIBS=$LIBS 38201LIBS="-lelf $LIBS" 38202cat >conftest.$ac_ext <<_ACEOF 38203/* confdefs.h. */ 38204_ACEOF 38205cat confdefs.h >>conftest.$ac_ext 38206cat >>conftest.$ac_ext <<_ACEOF 38207/* end confdefs.h. */ 38208 38209/* Override any gcc2 internal prototype to avoid an error. */ 38210#ifdef __cplusplus 38211extern "C" 38212#endif 38213/* We use char because int might match the return type of a gcc2 38214 builtin and then its argument prototype would still apply. */ 38215char nlist (); 38216int 38217main () 38218{ 38219nlist (); 38220 ; 38221 return 0; 38222} 38223_ACEOF 38224rm -f conftest.$ac_objext conftest$ac_exeext 38225if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 38226 (eval $ac_link) 2>conftest.er1 38227 ac_status=$? 38228 grep -v '^ *+' conftest.er1 >conftest.err 38229 rm -f conftest.er1 38230 cat conftest.err >&5 38231 echo "$as_me:$LINENO: \$? = $ac_status" >&5 38232 (exit $ac_status); } && 38233 { ac_try='test -z "$ac_c_werror_flag" 38234 || test ! -s conftest.err' 38235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 38236 (eval $ac_try) 2>&5 38237 ac_status=$? 38238 echo "$as_me:$LINENO: \$? = $ac_status" >&5 38239 (exit $ac_status); }; } && 38240 { ac_try='test -s conftest$ac_exeext' 38241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 38242 (eval $ac_try) 2>&5 38243 ac_status=$? 38244 echo "$as_me:$LINENO: \$? = $ac_status" >&5 38245 (exit $ac_status); }; }; then 38246 ac_cv_lib_elf_nlist=yes 38247else 38248 echo "$as_me: failed program was:" >&5 38249sed 's/^/| /' conftest.$ac_ext >&5 38250 38251ac_cv_lib_elf_nlist=no 38252fi 38253rm -f conftest.err conftest.$ac_objext \ 38254 conftest$ac_exeext conftest.$ac_ext 38255LIBS=$ac_check_lib_save_LIBS 38256fi 38257echo "$as_me:$LINENO: result: $ac_cv_lib_elf_nlist" >&5 38258echo "${ECHO_T}$ac_cv_lib_elf_nlist" >&6 38259if test $ac_cv_lib_elf_nlist = yes; then 38260 cat >>confdefs.h <<_ACEOF 38261#define HAVE_LIBELF 1 38262_ACEOF 38263 38264 LIBS="-lelf $LIBS" 38265 38266fi 38267 38268echo "$as_me:$LINENO: checking for main in -lkvm" >&5 38269echo $ECHO_N "checking for main in -lkvm... $ECHO_C" >&6 38270if test "${ac_cv_lib_kvm_main+set}" = set; then 38271 echo $ECHO_N "(cached) $ECHO_C" >&6 38272else 38273 ac_check_lib_save_LIBS=$LIBS 38274LIBS="-lkvm $LIBS" 38275cat >conftest.$ac_ext <<_ACEOF 38276/* confdefs.h. */ 38277_ACEOF 38278cat confdefs.h >>conftest.$ac_ext 38279cat >>conftest.$ac_ext <<_ACEOF 38280/* end confdefs.h. */ 38281 38282 38283int 38284main () 38285{ 38286main (); 38287 ; 38288 return 0; 38289} 38290_ACEOF 38291rm -f conftest.$ac_objext conftest$ac_exeext 38292if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 38293 (eval $ac_link) 2>conftest.er1 38294 ac_status=$? 38295 grep -v '^ *+' conftest.er1 >conftest.err 38296 rm -f conftest.er1 38297 cat conftest.err >&5 38298 echo "$as_me:$LINENO: \$? = $ac_status" >&5 38299 (exit $ac_status); } && 38300 { ac_try='test -z "$ac_c_werror_flag" 38301 || test ! -s conftest.err' 38302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 38303 (eval $ac_try) 2>&5 38304 ac_status=$? 38305 echo "$as_me:$LINENO: \$? = $ac_status" >&5 38306 (exit $ac_status); }; } && 38307 { ac_try='test -s conftest$ac_exeext' 38308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 38309 (eval $ac_try) 2>&5 38310 ac_status=$? 38311 echo "$as_me:$LINENO: \$? = $ac_status" >&5 38312 (exit $ac_status); }; }; then 38313 ac_cv_lib_kvm_main=yes 38314else 38315 echo "$as_me: failed program was:" >&5 38316sed 's/^/| /' conftest.$ac_ext >&5 38317 38318ac_cv_lib_kvm_main=no 38319fi 38320rm -f conftest.err conftest.$ac_objext \ 38321 conftest$ac_exeext conftest.$ac_ext 38322LIBS=$ac_check_lib_save_LIBS 38323fi 38324echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_main" >&5 38325echo "${ECHO_T}$ac_cv_lib_kvm_main" >&6 38326if test $ac_cv_lib_kvm_main = yes; then 38327 cat >>confdefs.h <<_ACEOF 38328#define HAVE_LIBKVM 1 38329_ACEOF 38330 38331 LIBS="-lkvm $LIBS" 38332 38333fi 38334 38335echo "$as_me:$LINENO: checking for nlist in -lld" >&5 38336echo $ECHO_N "checking for nlist in -lld... $ECHO_C" >&6 38337if test "${ac_cv_lib_ld_nlist+set}" = set; then 38338 echo $ECHO_N "(cached) $ECHO_C" >&6 38339else 38340 ac_check_lib_save_LIBS=$LIBS 38341LIBS="-lld $LIBS" 38342cat >conftest.$ac_ext <<_ACEOF 38343/* confdefs.h. */ 38344_ACEOF 38345cat confdefs.h >>conftest.$ac_ext 38346cat >>conftest.$ac_ext <<_ACEOF 38347/* end confdefs.h. */ 38348 38349/* Override any gcc2 internal prototype to avoid an error. */ 38350#ifdef __cplusplus 38351extern "C" 38352#endif 38353/* We use char because int might match the return type of a gcc2 38354 builtin and then its argument prototype would still apply. */ 38355char nlist (); 38356int 38357main () 38358{ 38359nlist (); 38360 ; 38361 return 0; 38362} 38363_ACEOF 38364rm -f conftest.$ac_objext conftest$ac_exeext 38365if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 38366 (eval $ac_link) 2>conftest.er1 38367 ac_status=$? 38368 grep -v '^ *+' conftest.er1 >conftest.err 38369 rm -f conftest.er1 38370 cat conftest.err >&5 38371 echo "$as_me:$LINENO: \$? = $ac_status" >&5 38372 (exit $ac_status); } && 38373 { ac_try='test -z "$ac_c_werror_flag" 38374 || test ! -s conftest.err' 38375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 38376 (eval $ac_try) 2>&5 38377 ac_status=$? 38378 echo "$as_me:$LINENO: \$? = $ac_status" >&5 38379 (exit $ac_status); }; } && 38380 { ac_try='test -s conftest$ac_exeext' 38381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 38382 (eval $ac_try) 2>&5 38383 ac_status=$? 38384 echo "$as_me:$LINENO: \$? = $ac_status" >&5 38385 (exit $ac_status); }; }; then 38386 ac_cv_lib_ld_nlist=yes 38387else 38388 echo "$as_me: failed program was:" >&5 38389sed 's/^/| /' conftest.$ac_ext >&5 38390 38391ac_cv_lib_ld_nlist=no 38392fi 38393rm -f conftest.err conftest.$ac_objext \ 38394 conftest$ac_exeext conftest.$ac_ext 38395LIBS=$ac_check_lib_save_LIBS 38396fi 38397echo "$as_me:$LINENO: result: $ac_cv_lib_ld_nlist" >&5 38398echo "${ECHO_T}$ac_cv_lib_ld_nlist" >&6 38399if test $ac_cv_lib_ld_nlist = yes; then 38400 cat >>confdefs.h <<_ACEOF 38401#define HAVE_LIBLD 1 38402_ACEOF 38403 38404 LIBS="-lld $LIBS" 38405 38406fi 38407 38408 38409echo "$as_me:$LINENO: checking for nlist in -lmld" >&5 38410echo $ECHO_N "checking for nlist in -lmld... $ECHO_C" >&6 38411if test "${ac_cv_lib_mld_nlist+set}" = set; then 38412 echo $ECHO_N "(cached) $ECHO_C" >&6 38413else 38414 ac_check_lib_save_LIBS=$LIBS 38415LIBS="-lmld $LIBS" 38416cat >conftest.$ac_ext <<_ACEOF 38417/* confdefs.h. */ 38418_ACEOF 38419cat confdefs.h >>conftest.$ac_ext 38420cat >>conftest.$ac_ext <<_ACEOF 38421/* end confdefs.h. */ 38422 38423/* Override any gcc2 internal prototype to avoid an error. */ 38424#ifdef __cplusplus 38425extern "C" 38426#endif 38427/* We use char because int might match the return type of a gcc2 38428 builtin and then its argument prototype would still apply. */ 38429char nlist (); 38430int 38431main () 38432{ 38433nlist (); 38434 ; 38435 return 0; 38436} 38437_ACEOF 38438rm -f conftest.$ac_objext conftest$ac_exeext 38439if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 38440 (eval $ac_link) 2>conftest.er1 38441 ac_status=$? 38442 grep -v '^ *+' conftest.er1 >conftest.err 38443 rm -f conftest.er1 38444 cat conftest.err >&5 38445 echo "$as_me:$LINENO: \$? = $ac_status" >&5 38446 (exit $ac_status); } && 38447 { ac_try='test -z "$ac_c_werror_flag" 38448 || test ! -s conftest.err' 38449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 38450 (eval $ac_try) 2>&5 38451 ac_status=$? 38452 echo "$as_me:$LINENO: \$? = $ac_status" >&5 38453 (exit $ac_status); }; } && 38454 { ac_try='test -s conftest$ac_exeext' 38455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 38456 (eval $ac_try) 2>&5 38457 ac_status=$? 38458 echo "$as_me:$LINENO: \$? = $ac_status" >&5 38459 (exit $ac_status); }; }; then 38460 ac_cv_lib_mld_nlist=yes 38461else 38462 echo "$as_me: failed program was:" >&5 38463sed 's/^/| /' conftest.$ac_ext >&5 38464 38465ac_cv_lib_mld_nlist=no 38466fi 38467rm -f conftest.err conftest.$ac_objext \ 38468 conftest$ac_exeext conftest.$ac_ext 38469LIBS=$ac_check_lib_save_LIBS 38470fi 38471echo "$as_me:$LINENO: result: $ac_cv_lib_mld_nlist" >&5 38472echo "${ECHO_T}$ac_cv_lib_mld_nlist" >&6 38473if test $ac_cv_lib_mld_nlist = yes; then 38474 cat >>confdefs.h <<_ACEOF 38475#define HAVE_LIBMLD 1 38476_ACEOF 38477 38478 LIBS="-lmld $LIBS" 38479 38480fi 38481 38482 if test "${ac_cv_header_nlist_h+set}" = set; then 38483 echo "$as_me:$LINENO: checking for nlist.h" >&5 38484echo $ECHO_N "checking for nlist.h... $ECHO_C" >&6 38485if test "${ac_cv_header_nlist_h+set}" = set; then 38486 echo $ECHO_N "(cached) $ECHO_C" >&6 38487fi 38488echo "$as_me:$LINENO: result: $ac_cv_header_nlist_h" >&5 38489echo "${ECHO_T}$ac_cv_header_nlist_h" >&6 38490else 38491 # Is the header compilable? 38492echo "$as_me:$LINENO: checking nlist.h usability" >&5 38493echo $ECHO_N "checking nlist.h usability... $ECHO_C" >&6 38494cat >conftest.$ac_ext <<_ACEOF 38495/* confdefs.h. */ 38496_ACEOF 38497cat confdefs.h >>conftest.$ac_ext 38498cat >>conftest.$ac_ext <<_ACEOF 38499/* end confdefs.h. */ 38500$ac_includes_default 38501#include <nlist.h> 38502_ACEOF 38503rm -f conftest.$ac_objext 38504if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 38505 (eval $ac_compile) 2>conftest.er1 38506 ac_status=$? 38507 grep -v '^ *+' conftest.er1 >conftest.err 38508 rm -f conftest.er1 38509 cat conftest.err >&5 38510 echo "$as_me:$LINENO: \$? = $ac_status" >&5 38511 (exit $ac_status); } && 38512 { ac_try='test -z "$ac_c_werror_flag" 38513 || test ! -s conftest.err' 38514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 38515 (eval $ac_try) 2>&5 38516 ac_status=$? 38517 echo "$as_me:$LINENO: \$? = $ac_status" >&5 38518 (exit $ac_status); }; } && 38519 { ac_try='test -s conftest.$ac_objext' 38520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 38521 (eval $ac_try) 2>&5 38522 ac_status=$? 38523 echo "$as_me:$LINENO: \$? = $ac_status" >&5 38524 (exit $ac_status); }; }; then 38525 ac_header_compiler=yes 38526else 38527 echo "$as_me: failed program was:" >&5 38528sed 's/^/| /' conftest.$ac_ext >&5 38529 38530ac_header_compiler=no 38531fi 38532rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 38533echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 38534echo "${ECHO_T}$ac_header_compiler" >&6 38535 38536# Is the header present? 38537echo "$as_me:$LINENO: checking nlist.h presence" >&5 38538echo $ECHO_N "checking nlist.h presence... $ECHO_C" >&6 38539cat >conftest.$ac_ext <<_ACEOF 38540/* confdefs.h. */ 38541_ACEOF 38542cat confdefs.h >>conftest.$ac_ext 38543cat >>conftest.$ac_ext <<_ACEOF 38544/* end confdefs.h. */ 38545#include <nlist.h> 38546_ACEOF 38547if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 38548 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 38549 ac_status=$? 38550 grep -v '^ *+' conftest.er1 >conftest.err 38551 rm -f conftest.er1 38552 cat conftest.err >&5 38553 echo "$as_me:$LINENO: \$? = $ac_status" >&5 38554 (exit $ac_status); } >/dev/null; then 38555 if test -s conftest.err; then 38556 ac_cpp_err=$ac_c_preproc_warn_flag 38557 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 38558 else 38559 ac_cpp_err= 38560 fi 38561else 38562 ac_cpp_err=yes 38563fi 38564if test -z "$ac_cpp_err"; then 38565 ac_header_preproc=yes 38566else 38567 echo "$as_me: failed program was:" >&5 38568sed 's/^/| /' conftest.$ac_ext >&5 38569 38570 ac_header_preproc=no 38571fi 38572rm -f conftest.err conftest.$ac_ext 38573echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 38574echo "${ECHO_T}$ac_header_preproc" >&6 38575 38576# So? What about this header? 38577case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 38578 yes:no: ) 38579 { echo "$as_me:$LINENO: WARNING: nlist.h: accepted by the compiler, rejected by the preprocessor!" >&5 38580echo "$as_me: WARNING: nlist.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 38581 { echo "$as_me:$LINENO: WARNING: nlist.h: proceeding with the compiler's result" >&5 38582echo "$as_me: WARNING: nlist.h: proceeding with the compiler's result" >&2;} 38583 ac_header_preproc=yes 38584 ;; 38585 no:yes:* ) 38586 { echo "$as_me:$LINENO: WARNING: nlist.h: present but cannot be compiled" >&5 38587echo "$as_me: WARNING: nlist.h: present but cannot be compiled" >&2;} 38588 { echo "$as_me:$LINENO: WARNING: nlist.h: check for missing prerequisite headers?" >&5 38589echo "$as_me: WARNING: nlist.h: check for missing prerequisite headers?" >&2;} 38590 { echo "$as_me:$LINENO: WARNING: nlist.h: see the Autoconf documentation" >&5 38591echo "$as_me: WARNING: nlist.h: see the Autoconf documentation" >&2;} 38592 { echo "$as_me:$LINENO: WARNING: nlist.h: section \"Present But Cannot Be Compiled\"" >&5 38593echo "$as_me: WARNING: nlist.h: section \"Present But Cannot Be Compiled\"" >&2;} 38594 { echo "$as_me:$LINENO: WARNING: nlist.h: proceeding with the preprocessor's result" >&5 38595echo "$as_me: WARNING: nlist.h: proceeding with the preprocessor's result" >&2;} 38596 { echo "$as_me:$LINENO: WARNING: nlist.h: in the future, the compiler will take precedence" >&5 38597echo "$as_me: WARNING: nlist.h: in the future, the compiler will take precedence" >&2;} 38598 ( 38599 cat <<\_ASBOX 38600## ------------------------------ ## 38601## Report this to the ntp lists. ## 38602## ------------------------------ ## 38603_ASBOX 38604 ) | 38605 sed "s/^/$as_me: WARNING: /" >&2 38606 ;; 38607esac 38608echo "$as_me:$LINENO: checking for nlist.h" >&5 38609echo $ECHO_N "checking for nlist.h... $ECHO_C" >&6 38610if test "${ac_cv_header_nlist_h+set}" = set; then 38611 echo $ECHO_N "(cached) $ECHO_C" >&6 38612else 38613 ac_cv_header_nlist_h=$ac_header_preproc 38614fi 38615echo "$as_me:$LINENO: result: $ac_cv_header_nlist_h" >&5 38616echo "${ECHO_T}$ac_cv_header_nlist_h" >&6 38617 38618fi 38619if test $ac_cv_header_nlist_h = yes; then 38620 38621cat >>confdefs.h <<\_ACEOF 38622#define NLIST_STRUCT 1 38623_ACEOF 38624 38625 echo "$as_me:$LINENO: checking for n_un in struct nlist" >&5 38626echo $ECHO_N "checking for n_un in struct nlist... $ECHO_C" >&6 38627if test "${ac_cv_struct_nlist_n_un+set}" = set; then 38628 echo $ECHO_N "(cached) $ECHO_C" >&6 38629else 38630 cat >conftest.$ac_ext <<_ACEOF 38631/* confdefs.h. */ 38632_ACEOF 38633cat confdefs.h >>conftest.$ac_ext 38634cat >>conftest.$ac_ext <<_ACEOF 38635/* end confdefs.h. */ 38636#include <nlist.h> 38637int 38638main () 38639{ 38640struct nlist n; n.n_un.n_name = 0; 38641 ; 38642 return 0; 38643} 38644_ACEOF 38645rm -f conftest.$ac_objext 38646if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 38647 (eval $ac_compile) 2>conftest.er1 38648 ac_status=$? 38649 grep -v '^ *+' conftest.er1 >conftest.err 38650 rm -f conftest.er1 38651 cat conftest.err >&5 38652 echo "$as_me:$LINENO: \$? = $ac_status" >&5 38653 (exit $ac_status); } && 38654 { ac_try='test -z "$ac_c_werror_flag" 38655 || test ! -s conftest.err' 38656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 38657 (eval $ac_try) 2>&5 38658 ac_status=$? 38659 echo "$as_me:$LINENO: \$? = $ac_status" >&5 38660 (exit $ac_status); }; } && 38661 { ac_try='test -s conftest.$ac_objext' 38662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 38663 (eval $ac_try) 2>&5 38664 ac_status=$? 38665 echo "$as_me:$LINENO: \$? = $ac_status" >&5 38666 (exit $ac_status); }; }; then 38667 ac_cv_struct_nlist_n_un=yes 38668else 38669 echo "$as_me: failed program was:" >&5 38670sed 's/^/| /' conftest.$ac_ext >&5 38671 38672ac_cv_struct_nlist_n_un=no 38673fi 38674rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 38675fi 38676echo "$as_me:$LINENO: result: $ac_cv_struct_nlist_n_un" >&5 38677echo "${ECHO_T}$ac_cv_struct_nlist_n_un" >&6 38678 if test $ac_cv_struct_nlist_n_un = yes; then 38679 38680cat >>confdefs.h <<\_ACEOF 38681#define NLIST_NAME_UNION 1 38682_ACEOF 38683 38684 fi 38685 38686fi 38687 38688 ;; 38689esac 38690 38691 38692 38693for ac_header in sys/proc.h 38694do 38695as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 38696echo "$as_me:$LINENO: checking for $ac_header" >&5 38697echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 38698if eval "test \"\${$as_ac_Header+set}\" = set"; then 38699 echo $ECHO_N "(cached) $ECHO_C" >&6 38700else 38701 cat >conftest.$ac_ext <<_ACEOF 38702/* confdefs.h. */ 38703_ACEOF 38704cat confdefs.h >>conftest.$ac_ext 38705cat >>conftest.$ac_ext <<_ACEOF 38706/* end confdefs.h. */ 38707#if HAVE_SYS_TYPES_H 38708# include <sys/types.h> 38709#endif 38710#if HAVE_SYS_TIME_H 38711# include <sys/time.h> 38712#endif 38713 38714 38715#include <$ac_header> 38716_ACEOF 38717rm -f conftest.$ac_objext 38718if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 38719 (eval $ac_compile) 2>conftest.er1 38720 ac_status=$? 38721 grep -v '^ *+' conftest.er1 >conftest.err 38722 rm -f conftest.er1 38723 cat conftest.err >&5 38724 echo "$as_me:$LINENO: \$? = $ac_status" >&5 38725 (exit $ac_status); } && 38726 { ac_try='test -z "$ac_c_werror_flag" 38727 || test ! -s conftest.err' 38728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 38729 (eval $ac_try) 2>&5 38730 ac_status=$? 38731 echo "$as_me:$LINENO: \$? = $ac_status" >&5 38732 (exit $ac_status); }; } && 38733 { ac_try='test -s conftest.$ac_objext' 38734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 38735 (eval $ac_try) 2>&5 38736 ac_status=$? 38737 echo "$as_me:$LINENO: \$? = $ac_status" >&5 38738 (exit $ac_status); }; }; then 38739 eval "$as_ac_Header=yes" 38740else 38741 echo "$as_me: failed program was:" >&5 38742sed 's/^/| /' conftest.$ac_ext >&5 38743 38744eval "$as_ac_Header=no" 38745fi 38746rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 38747fi 38748echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 38749echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 38750if test `eval echo '${'$as_ac_Header'}'` = yes; then 38751 cat >>confdefs.h <<_ACEOF 38752#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 38753_ACEOF 38754 38755fi 38756 38757done 38758 38759 38760 38761for ac_header in sys/resource.h 38762do 38763as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 38764echo "$as_me:$LINENO: checking for $ac_header" >&5 38765echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 38766if eval "test \"\${$as_ac_Header+set}\" = set"; then 38767 echo $ECHO_N "(cached) $ECHO_C" >&6 38768else 38769 cat >conftest.$ac_ext <<_ACEOF 38770/* confdefs.h. */ 38771_ACEOF 38772cat confdefs.h >>conftest.$ac_ext 38773cat >>conftest.$ac_ext <<_ACEOF 38774/* end confdefs.h. */ 38775#if HAVE_SYS_TIME_H 38776# include <sys/time.h> 38777#endif 38778 38779 38780#include <$ac_header> 38781_ACEOF 38782rm -f conftest.$ac_objext 38783if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 38784 (eval $ac_compile) 2>conftest.er1 38785 ac_status=$? 38786 grep -v '^ *+' conftest.er1 >conftest.err 38787 rm -f conftest.er1 38788 cat conftest.err >&5 38789 echo "$as_me:$LINENO: \$? = $ac_status" >&5 38790 (exit $ac_status); } && 38791 { ac_try='test -z "$ac_c_werror_flag" 38792 || test ! -s conftest.err' 38793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 38794 (eval $ac_try) 2>&5 38795 ac_status=$? 38796 echo "$as_me:$LINENO: \$? = $ac_status" >&5 38797 (exit $ac_status); }; } && 38798 { ac_try='test -s conftest.$ac_objext' 38799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 38800 (eval $ac_try) 2>&5 38801 ac_status=$? 38802 echo "$as_me:$LINENO: \$? = $ac_status" >&5 38803 (exit $ac_status); }; }; then 38804 eval "$as_ac_Header=yes" 38805else 38806 echo "$as_me: failed program was:" >&5 38807sed 's/^/| /' conftest.$ac_ext >&5 38808 38809eval "$as_ac_Header=no" 38810fi 38811rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 38812fi 38813echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 38814echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 38815if test `eval echo '${'$as_ac_Header'}'` = yes; then 38816 cat >>confdefs.h <<_ACEOF 38817#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 38818_ACEOF 38819 38820fi 38821 38822done 38823 38824 38825 38826for ac_header in sys/shm.h 38827do 38828as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 38829echo "$as_me:$LINENO: checking for $ac_header" >&5 38830echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 38831if eval "test \"\${$as_ac_Header+set}\" = set"; then 38832 echo $ECHO_N "(cached) $ECHO_C" >&6 38833else 38834 cat >conftest.$ac_ext <<_ACEOF 38835/* confdefs.h. */ 38836_ACEOF 38837cat confdefs.h >>conftest.$ac_ext 38838cat >>conftest.$ac_ext <<_ACEOF 38839/* end confdefs.h. */ 38840#if HAVE_SYS_TYPES_H 38841# include <sys/types.h> 38842#endif 38843#if HAVE_SYS_IPC_H 38844# include <sys/ipc.h> 38845#endif 38846 38847 38848#include <$ac_header> 38849_ACEOF 38850rm -f conftest.$ac_objext 38851if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 38852 (eval $ac_compile) 2>conftest.er1 38853 ac_status=$? 38854 grep -v '^ *+' conftest.er1 >conftest.err 38855 rm -f conftest.er1 38856 cat conftest.err >&5 38857 echo "$as_me:$LINENO: \$? = $ac_status" >&5 38858 (exit $ac_status); } && 38859 { ac_try='test -z "$ac_c_werror_flag" 38860 || test ! -s conftest.err' 38861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 38862 (eval $ac_try) 2>&5 38863 ac_status=$? 38864 echo "$as_me:$LINENO: \$? = $ac_status" >&5 38865 (exit $ac_status); }; } && 38866 { ac_try='test -s conftest.$ac_objext' 38867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 38868 (eval $ac_try) 2>&5 38869 ac_status=$? 38870 echo "$as_me:$LINENO: \$? = $ac_status" >&5 38871 (exit $ac_status); }; }; then 38872 eval "$as_ac_Header=yes" 38873else 38874 echo "$as_me: failed program was:" >&5 38875sed 's/^/| /' conftest.$ac_ext >&5 38876 38877eval "$as_ac_Header=no" 38878fi 38879rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 38880fi 38881echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 38882echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 38883if test `eval echo '${'$as_ac_Header'}'` = yes; then 38884 cat >>confdefs.h <<_ACEOF 38885#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 38886_ACEOF 38887 38888fi 38889 38890done 38891 38892 38893 38894for ac_header in sys/timex.h 38895do 38896as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 38897echo "$as_me:$LINENO: checking for $ac_header" >&5 38898echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 38899if eval "test \"\${$as_ac_Header+set}\" = set"; then 38900 echo $ECHO_N "(cached) $ECHO_C" >&6 38901else 38902 cat >conftest.$ac_ext <<_ACEOF 38903/* confdefs.h. */ 38904_ACEOF 38905cat confdefs.h >>conftest.$ac_ext 38906cat >>conftest.$ac_ext <<_ACEOF 38907/* end confdefs.h. */ 38908#if HAVE_SYS_TIME_H 38909# include <sys/time.h> 38910#endif 38911 38912 38913#include <$ac_header> 38914_ACEOF 38915rm -f conftest.$ac_objext 38916if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 38917 (eval $ac_compile) 2>conftest.er1 38918 ac_status=$? 38919 grep -v '^ *+' conftest.er1 >conftest.err 38920 rm -f conftest.er1 38921 cat conftest.err >&5 38922 echo "$as_me:$LINENO: \$? = $ac_status" >&5 38923 (exit $ac_status); } && 38924 { ac_try='test -z "$ac_c_werror_flag" 38925 || test ! -s conftest.err' 38926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 38927 (eval $ac_try) 2>&5 38928 ac_status=$? 38929 echo "$as_me:$LINENO: \$? = $ac_status" >&5 38930 (exit $ac_status); }; } && 38931 { ac_try='test -s conftest.$ac_objext' 38932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 38933 (eval $ac_try) 2>&5 38934 ac_status=$? 38935 echo "$as_me:$LINENO: \$? = $ac_status" >&5 38936 (exit $ac_status); }; }; then 38937 eval "$as_ac_Header=yes" 38938else 38939 echo "$as_me: failed program was:" >&5 38940sed 's/^/| /' conftest.$ac_ext >&5 38941 38942eval "$as_ac_Header=no" 38943fi 38944rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 38945fi 38946echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 38947echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 38948if test `eval echo '${'$as_ac_Header'}'` = yes; then 38949 cat >>confdefs.h <<_ACEOF 38950#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 38951_ACEOF 38952 38953fi 38954 38955done 38956 38957 38958 38959for ac_header in resolv.h 38960do 38961as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 38962echo "$as_me:$LINENO: checking for $ac_header" >&5 38963echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 38964if eval "test \"\${$as_ac_Header+set}\" = set"; then 38965 echo $ECHO_N "(cached) $ECHO_C" >&6 38966else 38967 cat >conftest.$ac_ext <<_ACEOF 38968/* confdefs.h. */ 38969_ACEOF 38970cat confdefs.h >>conftest.$ac_ext 38971cat >>conftest.$ac_ext <<_ACEOF 38972/* end confdefs.h. */ 38973#if HAVE_SYS_TYPES_H 38974#include <sys/types.h> 38975#endif 38976#if HAVE_NETINET_IN_H 38977#include <netinet/in.h> 38978#endif 38979#if HAVE_ARPA_NAMESER_H 38980#include <arpa/nameser.h> 38981#endif 38982 38983 38984#include <$ac_header> 38985_ACEOF 38986rm -f conftest.$ac_objext 38987if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 38988 (eval $ac_compile) 2>conftest.er1 38989 ac_status=$? 38990 grep -v '^ *+' conftest.er1 >conftest.err 38991 rm -f conftest.er1 38992 cat conftest.err >&5 38993 echo "$as_me:$LINENO: \$? = $ac_status" >&5 38994 (exit $ac_status); } && 38995 { ac_try='test -z "$ac_c_werror_flag" 38996 || test ! -s conftest.err' 38997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 38998 (eval $ac_try) 2>&5 38999 ac_status=$? 39000 echo "$as_me:$LINENO: \$? = $ac_status" >&5 39001 (exit $ac_status); }; } && 39002 { ac_try='test -s conftest.$ac_objext' 39003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 39004 (eval $ac_try) 2>&5 39005 ac_status=$? 39006 echo "$as_me:$LINENO: \$? = $ac_status" >&5 39007 (exit $ac_status); }; }; then 39008 eval "$as_ac_Header=yes" 39009else 39010 echo "$as_me: failed program was:" >&5 39011sed 's/^/| /' conftest.$ac_ext >&5 39012 39013eval "$as_ac_Header=no" 39014fi 39015rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 39016fi 39017echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 39018echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 39019if test `eval echo '${'$as_ac_Header'}'` = yes; then 39020 cat >>confdefs.h <<_ACEOF 39021#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 39022_ACEOF 39023 39024fi 39025 39026done 39027 39028 39029echo "$as_me:$LINENO: checking for basic volatile support" >&5 39030echo $ECHO_N "checking for basic volatile support... $ECHO_C" >&6 39031if test "${ac_cv_c_volatile+set}" = set; then 39032 echo $ECHO_N "(cached) $ECHO_C" >&6 39033else 39034 cat >conftest.$ac_ext <<_ACEOF 39035/* confdefs.h. */ 39036_ACEOF 39037cat confdefs.h >>conftest.$ac_ext 39038cat >>conftest.$ac_ext <<_ACEOF 39039/* end confdefs.h. */ 39040 39041int 39042main () 39043{ 39044 39045volatile int x; 39046 ; 39047 return 0; 39048} 39049_ACEOF 39050rm -f conftest.$ac_objext 39051if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 39052 (eval $ac_compile) 2>conftest.er1 39053 ac_status=$? 39054 grep -v '^ *+' conftest.er1 >conftest.err 39055 rm -f conftest.er1 39056 cat conftest.err >&5 39057 echo "$as_me:$LINENO: \$? = $ac_status" >&5 39058 (exit $ac_status); } && 39059 { ac_try='test -z "$ac_c_werror_flag" 39060 || test ! -s conftest.err' 39061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 39062 (eval $ac_try) 2>&5 39063 ac_status=$? 39064 echo "$as_me:$LINENO: \$? = $ac_status" >&5 39065 (exit $ac_status); }; } && 39066 { ac_try='test -s conftest.$ac_objext' 39067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 39068 (eval $ac_try) 2>&5 39069 ac_status=$? 39070 echo "$as_me:$LINENO: \$? = $ac_status" >&5 39071 (exit $ac_status); }; }; then 39072 ac_cv_c_volatile=yes 39073else 39074 echo "$as_me: failed program was:" >&5 39075sed 's/^/| /' conftest.$ac_ext >&5 39076 39077ac_cv_c_volatile=no 39078fi 39079rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 39080 39081fi 39082echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5 39083echo "${ECHO_T}$ac_cv_c_volatile" >&6 39084case "$ac_cv_c_volatile" in 39085 yes) 39086 ;; 39087 *) 39088cat >>confdefs.h <<\_ACEOF 39089#define volatile 39090_ACEOF 39091 39092 ;; 39093esac 39094 39095# AM_C_PROTOTYPES gives us ansi2knr 39096case "$build" in 39097 *-*-solaris2*) 39098 # Assume that solaris2 is Ansi C... 39099 ;; 39100 *) 39101 echo "$as_me:$LINENO: checking for function prototypes" >&5 39102echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6 39103if test "$ac_cv_prog_cc_stdc" != no; then 39104 echo "$as_me:$LINENO: result: yes" >&5 39105echo "${ECHO_T}yes" >&6 39106 39107cat >>confdefs.h <<\_ACEOF 39108#define PROTOTYPES 1 39109_ACEOF 39110 39111 39112cat >>confdefs.h <<\_ACEOF 39113#define __PROTOTYPES 1 39114_ACEOF 39115 39116else 39117 echo "$as_me:$LINENO: result: no" >&5 39118echo "${ECHO_T}no" >&6 39119fi 39120 39121 39122if test "$ac_cv_prog_cc_stdc" != no; then 39123 U= ANSI2KNR= 39124else 39125 U=_ ANSI2KNR=./ansi2knr 39126fi 39127# Ensure some checks needed by ansi2knr itself. 39128 39129 39130for ac_header in string.h 39131do 39132as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 39133if eval "test \"\${$as_ac_Header+set}\" = set"; then 39134 echo "$as_me:$LINENO: checking for $ac_header" >&5 39135echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 39136if eval "test \"\${$as_ac_Header+set}\" = set"; then 39137 echo $ECHO_N "(cached) $ECHO_C" >&6 39138fi 39139echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 39140echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 39141else 39142 # Is the header compilable? 39143echo "$as_me:$LINENO: checking $ac_header usability" >&5 39144echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 39145cat >conftest.$ac_ext <<_ACEOF 39146/* confdefs.h. */ 39147_ACEOF 39148cat confdefs.h >>conftest.$ac_ext 39149cat >>conftest.$ac_ext <<_ACEOF 39150/* end confdefs.h. */ 39151$ac_includes_default 39152#include <$ac_header> 39153_ACEOF 39154rm -f conftest.$ac_objext 39155if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 39156 (eval $ac_compile) 2>conftest.er1 39157 ac_status=$? 39158 grep -v '^ *+' conftest.er1 >conftest.err 39159 rm -f conftest.er1 39160 cat conftest.err >&5 39161 echo "$as_me:$LINENO: \$? = $ac_status" >&5 39162 (exit $ac_status); } && 39163 { ac_try='test -z "$ac_c_werror_flag" 39164 || test ! -s conftest.err' 39165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 39166 (eval $ac_try) 2>&5 39167 ac_status=$? 39168 echo "$as_me:$LINENO: \$? = $ac_status" >&5 39169 (exit $ac_status); }; } && 39170 { ac_try='test -s conftest.$ac_objext' 39171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 39172 (eval $ac_try) 2>&5 39173 ac_status=$? 39174 echo "$as_me:$LINENO: \$? = $ac_status" >&5 39175 (exit $ac_status); }; }; then 39176 ac_header_compiler=yes 39177else 39178 echo "$as_me: failed program was:" >&5 39179sed 's/^/| /' conftest.$ac_ext >&5 39180 39181ac_header_compiler=no 39182fi 39183rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 39184echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 39185echo "${ECHO_T}$ac_header_compiler" >&6 39186 39187# Is the header present? 39188echo "$as_me:$LINENO: checking $ac_header presence" >&5 39189echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 39190cat >conftest.$ac_ext <<_ACEOF 39191/* confdefs.h. */ 39192_ACEOF 39193cat confdefs.h >>conftest.$ac_ext 39194cat >>conftest.$ac_ext <<_ACEOF 39195/* end confdefs.h. */ 39196#include <$ac_header> 39197_ACEOF 39198if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 39199 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 39200 ac_status=$? 39201 grep -v '^ *+' conftest.er1 >conftest.err 39202 rm -f conftest.er1 39203 cat conftest.err >&5 39204 echo "$as_me:$LINENO: \$? = $ac_status" >&5 39205 (exit $ac_status); } >/dev/null; then 39206 if test -s conftest.err; then 39207 ac_cpp_err=$ac_c_preproc_warn_flag 39208 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 39209 else 39210 ac_cpp_err= 39211 fi 39212else 39213 ac_cpp_err=yes 39214fi 39215if test -z "$ac_cpp_err"; then 39216 ac_header_preproc=yes 39217else 39218 echo "$as_me: failed program was:" >&5 39219sed 's/^/| /' conftest.$ac_ext >&5 39220 39221 ac_header_preproc=no 39222fi 39223rm -f conftest.err conftest.$ac_ext 39224echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 39225echo "${ECHO_T}$ac_header_preproc" >&6 39226 39227# So? What about this header? 39228case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 39229 yes:no: ) 39230 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 39231echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 39232 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 39233echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 39234 ac_header_preproc=yes 39235 ;; 39236 no:yes:* ) 39237 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 39238echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 39239 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 39240echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 39241 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 39242echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 39243 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 39244echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 39245 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 39246echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 39247 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 39248echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 39249 ( 39250 cat <<\_ASBOX 39251## ------------------------------ ## 39252## Report this to the ntp lists. ## 39253## ------------------------------ ## 39254_ASBOX 39255 ) | 39256 sed "s/^/$as_me: WARNING: /" >&2 39257 ;; 39258esac 39259echo "$as_me:$LINENO: checking for $ac_header" >&5 39260echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 39261if eval "test \"\${$as_ac_Header+set}\" = set"; then 39262 echo $ECHO_N "(cached) $ECHO_C" >&6 39263else 39264 eval "$as_ac_Header=\$ac_header_preproc" 39265fi 39266echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 39267echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 39268 39269fi 39270if test `eval echo '${'$as_ac_Header'}'` = yes; then 39271 cat >>confdefs.h <<_ACEOF 39272#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 39273_ACEOF 39274 39275fi 39276 39277done 39278 39279 39280 ;; 39281esac 39282echo "$as_me:$LINENO: checking if C compiler permits function prototypes" >&5 39283echo $ECHO_N "checking if C compiler permits function prototypes... $ECHO_C" >&6 39284if test "${ac_cv_have_prototypes+set}" = set; then 39285 echo $ECHO_N "(cached) $ECHO_C" >&6 39286else 39287 cat >conftest.$ac_ext <<_ACEOF 39288/* confdefs.h. */ 39289_ACEOF 39290cat confdefs.h >>conftest.$ac_ext 39291cat >>conftest.$ac_ext <<_ACEOF 39292/* end confdefs.h. */ 39293 39294extern int foo (short); 39295int foo(short i) { return i; } 39296int 39297main () 39298{ 39299 39300int i; 39301 ; 39302 return 0; 39303} 39304_ACEOF 39305rm -f conftest.$ac_objext 39306if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 39307 (eval $ac_compile) 2>conftest.er1 39308 ac_status=$? 39309 grep -v '^ *+' conftest.er1 >conftest.err 39310 rm -f conftest.er1 39311 cat conftest.err >&5 39312 echo "$as_me:$LINENO: \$? = $ac_status" >&5 39313 (exit $ac_status); } && 39314 { ac_try='test -z "$ac_c_werror_flag" 39315 || test ! -s conftest.err' 39316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 39317 (eval $ac_try) 2>&5 39318 ac_status=$? 39319 echo "$as_me:$LINENO: \$? = $ac_status" >&5 39320 (exit $ac_status); }; } && 39321 { ac_try='test -s conftest.$ac_objext' 39322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 39323 (eval $ac_try) 2>&5 39324 ac_status=$? 39325 echo "$as_me:$LINENO: \$? = $ac_status" >&5 39326 (exit $ac_status); }; }; then 39327 ac_cv_have_prototypes=yes 39328else 39329 echo "$as_me: failed program was:" >&5 39330sed 's/^/| /' conftest.$ac_ext >&5 39331 39332ac_cv_have_prototypes=no 39333fi 39334rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 39335 39336fi 39337echo "$as_me:$LINENO: result: $ac_cv_have_prototypes" >&5 39338echo "${ECHO_T}$ac_cv_have_prototypes" >&6 39339if test "$ac_cv_have_prototypes" = yes; then 39340 39341cat >>confdefs.h <<\_ACEOF 39342#define HAVE_PROTOTYPES 1 39343_ACEOF 39344 39345fi 39346 39347echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 39348echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 39349if test "${ac_cv_c_const+set}" = set; then 39350 echo $ECHO_N "(cached) $ECHO_C" >&6 39351else 39352 cat >conftest.$ac_ext <<_ACEOF 39353/* confdefs.h. */ 39354_ACEOF 39355cat confdefs.h >>conftest.$ac_ext 39356cat >>conftest.$ac_ext <<_ACEOF 39357/* end confdefs.h. */ 39358 39359int 39360main () 39361{ 39362/* FIXME: Include the comments suggested by Paul. */ 39363#ifndef __cplusplus 39364 /* Ultrix mips cc rejects this. */ 39365 typedef int charset[2]; 39366 const charset x; 39367 /* SunOS 4.1.1 cc rejects this. */ 39368 char const *const *ccp; 39369 char **p; 39370 /* NEC SVR4.0.2 mips cc rejects this. */ 39371 struct point {int x, y;}; 39372 static struct point const zero = {0,0}; 39373 /* AIX XL C 1.02.0.0 rejects this. 39374 It does not let you subtract one const X* pointer from another in 39375 an arm of an if-expression whose if-part is not a constant 39376 expression */ 39377 const char *g = "string"; 39378 ccp = &g + (g ? g-g : 0); 39379 /* HPUX 7.0 cc rejects these. */ 39380 ++ccp; 39381 p = (char**) ccp; 39382 ccp = (char const *const *) p; 39383 { /* SCO 3.2v4 cc rejects this. */ 39384 char *t; 39385 char const *s = 0 ? (char *) 0 : (char const *) 0; 39386 39387 *t++ = 0; 39388 } 39389 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 39390 int x[] = {25, 17}; 39391 const int *foo = &x[0]; 39392 ++foo; 39393 } 39394 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 39395 typedef const int *iptr; 39396 iptr p = 0; 39397 ++p; 39398 } 39399 { /* AIX XL C 1.02.0.0 rejects this saying 39400 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 39401 struct s { int j; const int *ap[3]; }; 39402 struct s *b; b->j = 5; 39403 } 39404 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 39405 const int foo = 10; 39406 } 39407#endif 39408 39409 ; 39410 return 0; 39411} 39412_ACEOF 39413rm -f conftest.$ac_objext 39414if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 39415 (eval $ac_compile) 2>conftest.er1 39416 ac_status=$? 39417 grep -v '^ *+' conftest.er1 >conftest.err 39418 rm -f conftest.er1 39419 cat conftest.err >&5 39420 echo "$as_me:$LINENO: \$? = $ac_status" >&5 39421 (exit $ac_status); } && 39422 { ac_try='test -z "$ac_c_werror_flag" 39423 || test ! -s conftest.err' 39424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 39425 (eval $ac_try) 2>&5 39426 ac_status=$? 39427 echo "$as_me:$LINENO: \$? = $ac_status" >&5 39428 (exit $ac_status); }; } && 39429 { ac_try='test -s conftest.$ac_objext' 39430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 39431 (eval $ac_try) 2>&5 39432 ac_status=$? 39433 echo "$as_me:$LINENO: \$? = $ac_status" >&5 39434 (exit $ac_status); }; }; then 39435 ac_cv_c_const=yes 39436else 39437 echo "$as_me: failed program was:" >&5 39438sed 's/^/| /' conftest.$ac_ext >&5 39439 39440ac_cv_c_const=no 39441fi 39442rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 39443fi 39444echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 39445echo "${ECHO_T}$ac_cv_c_const" >&6 39446if test $ac_cv_c_const = no; then 39447 39448cat >>confdefs.h <<\_ACEOF 39449#define const 39450_ACEOF 39451 39452fi 39453 39454echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 39455echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 39456if test "${ac_cv_c_bigendian+set}" = set; then 39457 echo $ECHO_N "(cached) $ECHO_C" >&6 39458else 39459 # See if sys/param.h defines the BYTE_ORDER macro. 39460cat >conftest.$ac_ext <<_ACEOF 39461/* confdefs.h. */ 39462_ACEOF 39463cat confdefs.h >>conftest.$ac_ext 39464cat >>conftest.$ac_ext <<_ACEOF 39465/* end confdefs.h. */ 39466#include <sys/types.h> 39467#include <sys/param.h> 39468 39469int 39470main () 39471{ 39472#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN 39473 bogus endian macros 39474#endif 39475 39476 ; 39477 return 0; 39478} 39479_ACEOF 39480rm -f conftest.$ac_objext 39481if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 39482 (eval $ac_compile) 2>conftest.er1 39483 ac_status=$? 39484 grep -v '^ *+' conftest.er1 >conftest.err 39485 rm -f conftest.er1 39486 cat conftest.err >&5 39487 echo "$as_me:$LINENO: \$? = $ac_status" >&5 39488 (exit $ac_status); } && 39489 { ac_try='test -z "$ac_c_werror_flag" 39490 || test ! -s conftest.err' 39491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 39492 (eval $ac_try) 2>&5 39493 ac_status=$? 39494 echo "$as_me:$LINENO: \$? = $ac_status" >&5 39495 (exit $ac_status); }; } && 39496 { ac_try='test -s conftest.$ac_objext' 39497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 39498 (eval $ac_try) 2>&5 39499 ac_status=$? 39500 echo "$as_me:$LINENO: \$? = $ac_status" >&5 39501 (exit $ac_status); }; }; then 39502 # It does; now see whether it defined to BIG_ENDIAN or not. 39503cat >conftest.$ac_ext <<_ACEOF 39504/* confdefs.h. */ 39505_ACEOF 39506cat confdefs.h >>conftest.$ac_ext 39507cat >>conftest.$ac_ext <<_ACEOF 39508/* end confdefs.h. */ 39509#include <sys/types.h> 39510#include <sys/param.h> 39511 39512int 39513main () 39514{ 39515#if BYTE_ORDER != BIG_ENDIAN 39516 not big endian 39517#endif 39518 39519 ; 39520 return 0; 39521} 39522_ACEOF 39523rm -f conftest.$ac_objext 39524if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 39525 (eval $ac_compile) 2>conftest.er1 39526 ac_status=$? 39527 grep -v '^ *+' conftest.er1 >conftest.err 39528 rm -f conftest.er1 39529 cat conftest.err >&5 39530 echo "$as_me:$LINENO: \$? = $ac_status" >&5 39531 (exit $ac_status); } && 39532 { ac_try='test -z "$ac_c_werror_flag" 39533 || test ! -s conftest.err' 39534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 39535 (eval $ac_try) 2>&5 39536 ac_status=$? 39537 echo "$as_me:$LINENO: \$? = $ac_status" >&5 39538 (exit $ac_status); }; } && 39539 { ac_try='test -s conftest.$ac_objext' 39540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 39541 (eval $ac_try) 2>&5 39542 ac_status=$? 39543 echo "$as_me:$LINENO: \$? = $ac_status" >&5 39544 (exit $ac_status); }; }; then 39545 ac_cv_c_bigendian=yes 39546else 39547 echo "$as_me: failed program was:" >&5 39548sed 's/^/| /' conftest.$ac_ext >&5 39549 39550ac_cv_c_bigendian=no 39551fi 39552rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 39553else 39554 echo "$as_me: failed program was:" >&5 39555sed 's/^/| /' conftest.$ac_ext >&5 39556 39557# It does not; compile a test program. 39558if test "$cross_compiling" = yes; then 39559 # try to guess the endianness by grepping values into an object file 39560 ac_cv_c_bigendian=unknown 39561 cat >conftest.$ac_ext <<_ACEOF 39562/* confdefs.h. */ 39563_ACEOF 39564cat confdefs.h >>conftest.$ac_ext 39565cat >>conftest.$ac_ext <<_ACEOF 39566/* end confdefs.h. */ 39567short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 39568short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 39569void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } 39570short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 39571short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 39572void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } 39573int 39574main () 39575{ 39576 _ascii (); _ebcdic (); 39577 ; 39578 return 0; 39579} 39580_ACEOF 39581rm -f conftest.$ac_objext 39582if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 39583 (eval $ac_compile) 2>conftest.er1 39584 ac_status=$? 39585 grep -v '^ *+' conftest.er1 >conftest.err 39586 rm -f conftest.er1 39587 cat conftest.err >&5 39588 echo "$as_me:$LINENO: \$? = $ac_status" >&5 39589 (exit $ac_status); } && 39590 { ac_try='test -z "$ac_c_werror_flag" 39591 || test ! -s conftest.err' 39592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 39593 (eval $ac_try) 2>&5 39594 ac_status=$? 39595 echo "$as_me:$LINENO: \$? = $ac_status" >&5 39596 (exit $ac_status); }; } && 39597 { ac_try='test -s conftest.$ac_objext' 39598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 39599 (eval $ac_try) 2>&5 39600 ac_status=$? 39601 echo "$as_me:$LINENO: \$? = $ac_status" >&5 39602 (exit $ac_status); }; }; then 39603 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then 39604 ac_cv_c_bigendian=yes 39605fi 39606if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 39607 if test "$ac_cv_c_bigendian" = unknown; then 39608 ac_cv_c_bigendian=no 39609 else 39610 # finding both strings is unlikely to happen, but who knows? 39611 ac_cv_c_bigendian=unknown 39612 fi 39613fi 39614else 39615 echo "$as_me: failed program was:" >&5 39616sed 's/^/| /' conftest.$ac_ext >&5 39617 39618fi 39619rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 39620else 39621 cat >conftest.$ac_ext <<_ACEOF 39622/* confdefs.h. */ 39623_ACEOF 39624cat confdefs.h >>conftest.$ac_ext 39625cat >>conftest.$ac_ext <<_ACEOF 39626/* end confdefs.h. */ 39627int 39628main () 39629{ 39630 /* Are we little or big endian? From Harbison&Steele. */ 39631 union 39632 { 39633 long l; 39634 char c[sizeof (long)]; 39635 } u; 39636 u.l = 1; 39637 exit (u.c[sizeof (long) - 1] == 1); 39638} 39639_ACEOF 39640rm -f conftest$ac_exeext 39641if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 39642 (eval $ac_link) 2>&5 39643 ac_status=$? 39644 echo "$as_me:$LINENO: \$? = $ac_status" >&5 39645 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 39646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 39647 (eval $ac_try) 2>&5 39648 ac_status=$? 39649 echo "$as_me:$LINENO: \$? = $ac_status" >&5 39650 (exit $ac_status); }; }; then 39651 ac_cv_c_bigendian=no 39652else 39653 echo "$as_me: program exited with status $ac_status" >&5 39654echo "$as_me: failed program was:" >&5 39655sed 's/^/| /' conftest.$ac_ext >&5 39656 39657( exit $ac_status ) 39658ac_cv_c_bigendian=yes 39659fi 39660rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 39661fi 39662fi 39663rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 39664fi 39665echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 39666echo "${ECHO_T}$ac_cv_c_bigendian" >&6 39667case $ac_cv_c_bigendian in 39668 yes) 39669 39670cat >>confdefs.h <<\_ACEOF 39671#define WORDS_BIGENDIAN 1 39672_ACEOF 39673 ;; 39674 no) 39675 ;; 39676 *) 39677 { { echo "$as_me:$LINENO: error: unknown endianness 39678presetting ac_cv_c_bigendian=no (or yes) will help" >&5 39679echo "$as_me: error: unknown endianness 39680presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} 39681 { (exit 1); exit 1; }; } ;; 39682esac 39683 39684echo "$as_me:$LINENO: checking return type of signal handlers" >&5 39685echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 39686if test "${ac_cv_type_signal+set}" = set; then 39687 echo $ECHO_N "(cached) $ECHO_C" >&6 39688else 39689 cat >conftest.$ac_ext <<_ACEOF 39690/* confdefs.h. */ 39691_ACEOF 39692cat confdefs.h >>conftest.$ac_ext 39693cat >>conftest.$ac_ext <<_ACEOF 39694/* end confdefs.h. */ 39695#include <sys/types.h> 39696#include <signal.h> 39697#ifdef signal 39698# undef signal 39699#endif 39700#ifdef __cplusplus 39701extern "C" void (*signal (int, void (*)(int)))(int); 39702#else 39703void (*signal ()) (); 39704#endif 39705 39706int 39707main () 39708{ 39709int i; 39710 ; 39711 return 0; 39712} 39713_ACEOF 39714rm -f conftest.$ac_objext 39715if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 39716 (eval $ac_compile) 2>conftest.er1 39717 ac_status=$? 39718 grep -v '^ *+' conftest.er1 >conftest.err 39719 rm -f conftest.er1 39720 cat conftest.err >&5 39721 echo "$as_me:$LINENO: \$? = $ac_status" >&5 39722 (exit $ac_status); } && 39723 { ac_try='test -z "$ac_c_werror_flag" 39724 || test ! -s conftest.err' 39725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 39726 (eval $ac_try) 2>&5 39727 ac_status=$? 39728 echo "$as_me:$LINENO: \$? = $ac_status" >&5 39729 (exit $ac_status); }; } && 39730 { ac_try='test -s conftest.$ac_objext' 39731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 39732 (eval $ac_try) 2>&5 39733 ac_status=$? 39734 echo "$as_me:$LINENO: \$? = $ac_status" >&5 39735 (exit $ac_status); }; }; then 39736 ac_cv_type_signal=void 39737else 39738 echo "$as_me: failed program was:" >&5 39739sed 's/^/| /' conftest.$ac_ext >&5 39740 39741ac_cv_type_signal=int 39742fi 39743rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 39744fi 39745echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 39746echo "${ECHO_T}$ac_cv_type_signal" >&6 39747 39748cat >>confdefs.h <<_ACEOF 39749#define RETSIGTYPE $ac_cv_type_signal 39750_ACEOF 39751 39752 39753echo "$as_me:$LINENO: checking for off_t" >&5 39754echo $ECHO_N "checking for off_t... $ECHO_C" >&6 39755if test "${ac_cv_type_off_t+set}" = set; then 39756 echo $ECHO_N "(cached) $ECHO_C" >&6 39757else 39758 cat >conftest.$ac_ext <<_ACEOF 39759/* confdefs.h. */ 39760_ACEOF 39761cat confdefs.h >>conftest.$ac_ext 39762cat >>conftest.$ac_ext <<_ACEOF 39763/* end confdefs.h. */ 39764$ac_includes_default 39765int 39766main () 39767{ 39768if ((off_t *) 0) 39769 return 0; 39770if (sizeof (off_t)) 39771 return 0; 39772 ; 39773 return 0; 39774} 39775_ACEOF 39776rm -f conftest.$ac_objext 39777if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 39778 (eval $ac_compile) 2>conftest.er1 39779 ac_status=$? 39780 grep -v '^ *+' conftest.er1 >conftest.err 39781 rm -f conftest.er1 39782 cat conftest.err >&5 39783 echo "$as_me:$LINENO: \$? = $ac_status" >&5 39784 (exit $ac_status); } && 39785 { ac_try='test -z "$ac_c_werror_flag" 39786 || test ! -s conftest.err' 39787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 39788 (eval $ac_try) 2>&5 39789 ac_status=$? 39790 echo "$as_me:$LINENO: \$? = $ac_status" >&5 39791 (exit $ac_status); }; } && 39792 { ac_try='test -s conftest.$ac_objext' 39793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 39794 (eval $ac_try) 2>&5 39795 ac_status=$? 39796 echo "$as_me:$LINENO: \$? = $ac_status" >&5 39797 (exit $ac_status); }; }; then 39798 ac_cv_type_off_t=yes 39799else 39800 echo "$as_me: failed program was:" >&5 39801sed 's/^/| /' conftest.$ac_ext >&5 39802 39803ac_cv_type_off_t=no 39804fi 39805rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 39806fi 39807echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 39808echo "${ECHO_T}$ac_cv_type_off_t" >&6 39809if test $ac_cv_type_off_t = yes; then 39810 : 39811else 39812 39813cat >>confdefs.h <<_ACEOF 39814#define off_t long 39815_ACEOF 39816 39817fi 39818 39819echo "$as_me:$LINENO: checking for size_t" >&5 39820echo $ECHO_N "checking for size_t... $ECHO_C" >&6 39821if test "${ac_cv_type_size_t+set}" = set; then 39822 echo $ECHO_N "(cached) $ECHO_C" >&6 39823else 39824 cat >conftest.$ac_ext <<_ACEOF 39825/* confdefs.h. */ 39826_ACEOF 39827cat confdefs.h >>conftest.$ac_ext 39828cat >>conftest.$ac_ext <<_ACEOF 39829/* end confdefs.h. */ 39830$ac_includes_default 39831int 39832main () 39833{ 39834if ((size_t *) 0) 39835 return 0; 39836if (sizeof (size_t)) 39837 return 0; 39838 ; 39839 return 0; 39840} 39841_ACEOF 39842rm -f conftest.$ac_objext 39843if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 39844 (eval $ac_compile) 2>conftest.er1 39845 ac_status=$? 39846 grep -v '^ *+' conftest.er1 >conftest.err 39847 rm -f conftest.er1 39848 cat conftest.err >&5 39849 echo "$as_me:$LINENO: \$? = $ac_status" >&5 39850 (exit $ac_status); } && 39851 { ac_try='test -z "$ac_c_werror_flag" 39852 || test ! -s conftest.err' 39853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 39854 (eval $ac_try) 2>&5 39855 ac_status=$? 39856 echo "$as_me:$LINENO: \$? = $ac_status" >&5 39857 (exit $ac_status); }; } && 39858 { ac_try='test -s conftest.$ac_objext' 39859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 39860 (eval $ac_try) 2>&5 39861 ac_status=$? 39862 echo "$as_me:$LINENO: \$? = $ac_status" >&5 39863 (exit $ac_status); }; }; then 39864 ac_cv_type_size_t=yes 39865else 39866 echo "$as_me: failed program was:" >&5 39867sed 's/^/| /' conftest.$ac_ext >&5 39868 39869ac_cv_type_size_t=no 39870fi 39871rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 39872fi 39873echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 39874echo "${ECHO_T}$ac_cv_type_size_t" >&6 39875if test $ac_cv_type_size_t = yes; then 39876 : 39877else 39878 39879cat >>confdefs.h <<_ACEOF 39880#define size_t unsigned 39881_ACEOF 39882 39883fi 39884 39885echo "$as_me:$LINENO: checking for time_t" >&5 39886echo $ECHO_N "checking for time_t... $ECHO_C" >&6 39887if test "${ac_cv_type_time_t+set}" = set; then 39888 echo $ECHO_N "(cached) $ECHO_C" >&6 39889else 39890 cat >conftest.$ac_ext <<_ACEOF 39891/* confdefs.h. */ 39892_ACEOF 39893cat confdefs.h >>conftest.$ac_ext 39894cat >>conftest.$ac_ext <<_ACEOF 39895/* end confdefs.h. */ 39896$ac_includes_default 39897int 39898main () 39899{ 39900if ((time_t *) 0) 39901 return 0; 39902if (sizeof (time_t)) 39903 return 0; 39904 ; 39905 return 0; 39906} 39907_ACEOF 39908rm -f conftest.$ac_objext 39909if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 39910 (eval $ac_compile) 2>conftest.er1 39911 ac_status=$? 39912 grep -v '^ *+' conftest.er1 >conftest.err 39913 rm -f conftest.er1 39914 cat conftest.err >&5 39915 echo "$as_me:$LINENO: \$? = $ac_status" >&5 39916 (exit $ac_status); } && 39917 { ac_try='test -z "$ac_c_werror_flag" 39918 || test ! -s conftest.err' 39919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 39920 (eval $ac_try) 2>&5 39921 ac_status=$? 39922 echo "$as_me:$LINENO: \$? = $ac_status" >&5 39923 (exit $ac_status); }; } && 39924 { ac_try='test -s conftest.$ac_objext' 39925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 39926 (eval $ac_try) 2>&5 39927 ac_status=$? 39928 echo "$as_me:$LINENO: \$? = $ac_status" >&5 39929 (exit $ac_status); }; }; then 39930 ac_cv_type_time_t=yes 39931else 39932 echo "$as_me: failed program was:" >&5 39933sed 's/^/| /' conftest.$ac_ext >&5 39934 39935ac_cv_type_time_t=no 39936fi 39937rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 39938fi 39939echo "$as_me:$LINENO: result: $ac_cv_type_time_t" >&5 39940echo "${ECHO_T}$ac_cv_type_time_t" >&6 39941if test $ac_cv_type_time_t = yes; then 39942 : 39943else 39944 39945cat >>confdefs.h <<_ACEOF 39946#define time_t long 39947_ACEOF 39948 39949fi 39950 39951echo "$as_me:$LINENO: checking for time_t" >&5 39952echo $ECHO_N "checking for time_t... $ECHO_C" >&6 39953if test "${ac_cv_type_time_t+set}" = set; then 39954 echo $ECHO_N "(cached) $ECHO_C" >&6 39955else 39956 cat >conftest.$ac_ext <<_ACEOF 39957/* confdefs.h. */ 39958_ACEOF 39959cat confdefs.h >>conftest.$ac_ext 39960cat >>conftest.$ac_ext <<_ACEOF 39961/* end confdefs.h. */ 39962$ac_includes_default 39963int 39964main () 39965{ 39966if ((time_t *) 0) 39967 return 0; 39968if (sizeof (time_t)) 39969 return 0; 39970 ; 39971 return 0; 39972} 39973_ACEOF 39974rm -f conftest.$ac_objext 39975if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 39976 (eval $ac_compile) 2>conftest.er1 39977 ac_status=$? 39978 grep -v '^ *+' conftest.er1 >conftest.err 39979 rm -f conftest.er1 39980 cat conftest.err >&5 39981 echo "$as_me:$LINENO: \$? = $ac_status" >&5 39982 (exit $ac_status); } && 39983 { ac_try='test -z "$ac_c_werror_flag" 39984 || test ! -s conftest.err' 39985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 39986 (eval $ac_try) 2>&5 39987 ac_status=$? 39988 echo "$as_me:$LINENO: \$? = $ac_status" >&5 39989 (exit $ac_status); }; } && 39990 { ac_try='test -s conftest.$ac_objext' 39991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 39992 (eval $ac_try) 2>&5 39993 ac_status=$? 39994 echo "$as_me:$LINENO: \$? = $ac_status" >&5 39995 (exit $ac_status); }; }; then 39996 ac_cv_type_time_t=yes 39997else 39998 echo "$as_me: failed program was:" >&5 39999sed 's/^/| /' conftest.$ac_ext >&5 40000 40001ac_cv_type_time_t=no 40002fi 40003rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 40004fi 40005echo "$as_me:$LINENO: result: $ac_cv_type_time_t" >&5 40006echo "${ECHO_T}$ac_cv_type_time_t" >&6 40007 40008echo "$as_me:$LINENO: checking size of time_t" >&5 40009echo $ECHO_N "checking size of time_t... $ECHO_C" >&6 40010if test "${ac_cv_sizeof_time_t+set}" = set; then 40011 echo $ECHO_N "(cached) $ECHO_C" >&6 40012else 40013 if test "$ac_cv_type_time_t" = yes; then 40014 # The cast to unsigned long works around a bug in the HP C Compiler 40015 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 40016 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 40017 # This bug is HP SR number 8606223364. 40018 if test "$cross_compiling" = yes; then 40019 # Depending upon the size, compute the lo and hi bounds. 40020cat >conftest.$ac_ext <<_ACEOF 40021/* confdefs.h. */ 40022_ACEOF 40023cat confdefs.h >>conftest.$ac_ext 40024cat >>conftest.$ac_ext <<_ACEOF 40025/* end confdefs.h. */ 40026$ac_includes_default 40027int 40028main () 40029{ 40030static int test_array [1 - 2 * !(((long) (sizeof (time_t))) >= 0)]; 40031test_array [0] = 0 40032 40033 ; 40034 return 0; 40035} 40036_ACEOF 40037rm -f conftest.$ac_objext 40038if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 40039 (eval $ac_compile) 2>conftest.er1 40040 ac_status=$? 40041 grep -v '^ *+' conftest.er1 >conftest.err 40042 rm -f conftest.er1 40043 cat conftest.err >&5 40044 echo "$as_me:$LINENO: \$? = $ac_status" >&5 40045 (exit $ac_status); } && 40046 { ac_try='test -z "$ac_c_werror_flag" 40047 || test ! -s conftest.err' 40048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 40049 (eval $ac_try) 2>&5 40050 ac_status=$? 40051 echo "$as_me:$LINENO: \$? = $ac_status" >&5 40052 (exit $ac_status); }; } && 40053 { ac_try='test -s conftest.$ac_objext' 40054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 40055 (eval $ac_try) 2>&5 40056 ac_status=$? 40057 echo "$as_me:$LINENO: \$? = $ac_status" >&5 40058 (exit $ac_status); }; }; then 40059 ac_lo=0 ac_mid=0 40060 while :; do 40061 cat >conftest.$ac_ext <<_ACEOF 40062/* confdefs.h. */ 40063_ACEOF 40064cat confdefs.h >>conftest.$ac_ext 40065cat >>conftest.$ac_ext <<_ACEOF 40066/* end confdefs.h. */ 40067$ac_includes_default 40068int 40069main () 40070{ 40071static int test_array [1 - 2 * !(((long) (sizeof (time_t))) <= $ac_mid)]; 40072test_array [0] = 0 40073 40074 ; 40075 return 0; 40076} 40077_ACEOF 40078rm -f conftest.$ac_objext 40079if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 40080 (eval $ac_compile) 2>conftest.er1 40081 ac_status=$? 40082 grep -v '^ *+' conftest.er1 >conftest.err 40083 rm -f conftest.er1 40084 cat conftest.err >&5 40085 echo "$as_me:$LINENO: \$? = $ac_status" >&5 40086 (exit $ac_status); } && 40087 { ac_try='test -z "$ac_c_werror_flag" 40088 || test ! -s conftest.err' 40089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 40090 (eval $ac_try) 2>&5 40091 ac_status=$? 40092 echo "$as_me:$LINENO: \$? = $ac_status" >&5 40093 (exit $ac_status); }; } && 40094 { ac_try='test -s conftest.$ac_objext' 40095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 40096 (eval $ac_try) 2>&5 40097 ac_status=$? 40098 echo "$as_me:$LINENO: \$? = $ac_status" >&5 40099 (exit $ac_status); }; }; then 40100 ac_hi=$ac_mid; break 40101else 40102 echo "$as_me: failed program was:" >&5 40103sed 's/^/| /' conftest.$ac_ext >&5 40104 40105ac_lo=`expr $ac_mid + 1` 40106 if test $ac_lo -le $ac_mid; then 40107 ac_lo= ac_hi= 40108 break 40109 fi 40110 ac_mid=`expr 2 '*' $ac_mid + 1` 40111fi 40112rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 40113 done 40114else 40115 echo "$as_me: failed program was:" >&5 40116sed 's/^/| /' conftest.$ac_ext >&5 40117 40118cat >conftest.$ac_ext <<_ACEOF 40119/* confdefs.h. */ 40120_ACEOF 40121cat confdefs.h >>conftest.$ac_ext 40122cat >>conftest.$ac_ext <<_ACEOF 40123/* end confdefs.h. */ 40124$ac_includes_default 40125int 40126main () 40127{ 40128static int test_array [1 - 2 * !(((long) (sizeof (time_t))) < 0)]; 40129test_array [0] = 0 40130 40131 ; 40132 return 0; 40133} 40134_ACEOF 40135rm -f conftest.$ac_objext 40136if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 40137 (eval $ac_compile) 2>conftest.er1 40138 ac_status=$? 40139 grep -v '^ *+' conftest.er1 >conftest.err 40140 rm -f conftest.er1 40141 cat conftest.err >&5 40142 echo "$as_me:$LINENO: \$? = $ac_status" >&5 40143 (exit $ac_status); } && 40144 { ac_try='test -z "$ac_c_werror_flag" 40145 || test ! -s conftest.err' 40146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 40147 (eval $ac_try) 2>&5 40148 ac_status=$? 40149 echo "$as_me:$LINENO: \$? = $ac_status" >&5 40150 (exit $ac_status); }; } && 40151 { ac_try='test -s conftest.$ac_objext' 40152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 40153 (eval $ac_try) 2>&5 40154 ac_status=$? 40155 echo "$as_me:$LINENO: \$? = $ac_status" >&5 40156 (exit $ac_status); }; }; then 40157 ac_hi=-1 ac_mid=-1 40158 while :; do 40159 cat >conftest.$ac_ext <<_ACEOF 40160/* confdefs.h. */ 40161_ACEOF 40162cat confdefs.h >>conftest.$ac_ext 40163cat >>conftest.$ac_ext <<_ACEOF 40164/* end confdefs.h. */ 40165$ac_includes_default 40166int 40167main () 40168{ 40169static int test_array [1 - 2 * !(((long) (sizeof (time_t))) >= $ac_mid)]; 40170test_array [0] = 0 40171 40172 ; 40173 return 0; 40174} 40175_ACEOF 40176rm -f conftest.$ac_objext 40177if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 40178 (eval $ac_compile) 2>conftest.er1 40179 ac_status=$? 40180 grep -v '^ *+' conftest.er1 >conftest.err 40181 rm -f conftest.er1 40182 cat conftest.err >&5 40183 echo "$as_me:$LINENO: \$? = $ac_status" >&5 40184 (exit $ac_status); } && 40185 { ac_try='test -z "$ac_c_werror_flag" 40186 || test ! -s conftest.err' 40187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 40188 (eval $ac_try) 2>&5 40189 ac_status=$? 40190 echo "$as_me:$LINENO: \$? = $ac_status" >&5 40191 (exit $ac_status); }; } && 40192 { ac_try='test -s conftest.$ac_objext' 40193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 40194 (eval $ac_try) 2>&5 40195 ac_status=$? 40196 echo "$as_me:$LINENO: \$? = $ac_status" >&5 40197 (exit $ac_status); }; }; then 40198 ac_lo=$ac_mid; break 40199else 40200 echo "$as_me: failed program was:" >&5 40201sed 's/^/| /' conftest.$ac_ext >&5 40202 40203ac_hi=`expr '(' $ac_mid ')' - 1` 40204 if test $ac_mid -le $ac_hi; then 40205 ac_lo= ac_hi= 40206 break 40207 fi 40208 ac_mid=`expr 2 '*' $ac_mid` 40209fi 40210rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 40211 done 40212else 40213 echo "$as_me: failed program was:" >&5 40214sed 's/^/| /' conftest.$ac_ext >&5 40215 40216ac_lo= ac_hi= 40217fi 40218rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 40219fi 40220rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 40221# Binary search between lo and hi bounds. 40222while test "x$ac_lo" != "x$ac_hi"; do 40223 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 40224 cat >conftest.$ac_ext <<_ACEOF 40225/* confdefs.h. */ 40226_ACEOF 40227cat confdefs.h >>conftest.$ac_ext 40228cat >>conftest.$ac_ext <<_ACEOF 40229/* end confdefs.h. */ 40230$ac_includes_default 40231int 40232main () 40233{ 40234static int test_array [1 - 2 * !(((long) (sizeof (time_t))) <= $ac_mid)]; 40235test_array [0] = 0 40236 40237 ; 40238 return 0; 40239} 40240_ACEOF 40241rm -f conftest.$ac_objext 40242if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 40243 (eval $ac_compile) 2>conftest.er1 40244 ac_status=$? 40245 grep -v '^ *+' conftest.er1 >conftest.err 40246 rm -f conftest.er1 40247 cat conftest.err >&5 40248 echo "$as_me:$LINENO: \$? = $ac_status" >&5 40249 (exit $ac_status); } && 40250 { ac_try='test -z "$ac_c_werror_flag" 40251 || test ! -s conftest.err' 40252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 40253 (eval $ac_try) 2>&5 40254 ac_status=$? 40255 echo "$as_me:$LINENO: \$? = $ac_status" >&5 40256 (exit $ac_status); }; } && 40257 { ac_try='test -s conftest.$ac_objext' 40258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 40259 (eval $ac_try) 2>&5 40260 ac_status=$? 40261 echo "$as_me:$LINENO: \$? = $ac_status" >&5 40262 (exit $ac_status); }; }; then 40263 ac_hi=$ac_mid 40264else 40265 echo "$as_me: failed program was:" >&5 40266sed 's/^/| /' conftest.$ac_ext >&5 40267 40268ac_lo=`expr '(' $ac_mid ')' + 1` 40269fi 40270rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 40271done 40272case $ac_lo in 40273?*) ac_cv_sizeof_time_t=$ac_lo;; 40274'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (time_t), 77 40275See \`config.log' for more details." >&5 40276echo "$as_me: error: cannot compute sizeof (time_t), 77 40277See \`config.log' for more details." >&2;} 40278 { (exit 1); exit 1; }; } ;; 40279esac 40280else 40281 if test "$cross_compiling" = yes; then 40282 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 40283See \`config.log' for more details." >&5 40284echo "$as_me: error: cannot run test program while cross compiling 40285See \`config.log' for more details." >&2;} 40286 { (exit 1); exit 1; }; } 40287else 40288 cat >conftest.$ac_ext <<_ACEOF 40289/* confdefs.h. */ 40290_ACEOF 40291cat confdefs.h >>conftest.$ac_ext 40292cat >>conftest.$ac_ext <<_ACEOF 40293/* end confdefs.h. */ 40294$ac_includes_default 40295long longval () { return (long) (sizeof (time_t)); } 40296unsigned long ulongval () { return (long) (sizeof (time_t)); } 40297#include <stdio.h> 40298#include <stdlib.h> 40299int 40300main () 40301{ 40302 40303 FILE *f = fopen ("conftest.val", "w"); 40304 if (! f) 40305 exit (1); 40306 if (((long) (sizeof (time_t))) < 0) 40307 { 40308 long i = longval (); 40309 if (i != ((long) (sizeof (time_t)))) 40310 exit (1); 40311 fprintf (f, "%ld\n", i); 40312 } 40313 else 40314 { 40315 unsigned long i = ulongval (); 40316 if (i != ((long) (sizeof (time_t)))) 40317 exit (1); 40318 fprintf (f, "%lu\n", i); 40319 } 40320 exit (ferror (f) || fclose (f) != 0); 40321 40322 ; 40323 return 0; 40324} 40325_ACEOF 40326rm -f conftest$ac_exeext 40327if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 40328 (eval $ac_link) 2>&5 40329 ac_status=$? 40330 echo "$as_me:$LINENO: \$? = $ac_status" >&5 40331 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 40332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 40333 (eval $ac_try) 2>&5 40334 ac_status=$? 40335 echo "$as_me:$LINENO: \$? = $ac_status" >&5 40336 (exit $ac_status); }; }; then 40337 ac_cv_sizeof_time_t=`cat conftest.val` 40338else 40339 echo "$as_me: program exited with status $ac_status" >&5 40340echo "$as_me: failed program was:" >&5 40341sed 's/^/| /' conftest.$ac_ext >&5 40342 40343( exit $ac_status ) 40344{ { echo "$as_me:$LINENO: error: cannot compute sizeof (time_t), 77 40345See \`config.log' for more details." >&5 40346echo "$as_me: error: cannot compute sizeof (time_t), 77 40347See \`config.log' for more details." >&2;} 40348 { (exit 1); exit 1; }; } 40349fi 40350rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 40351fi 40352fi 40353rm -f conftest.val 40354else 40355 ac_cv_sizeof_time_t=0 40356fi 40357fi 40358echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5 40359echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6 40360cat >>confdefs.h <<_ACEOF 40361#define SIZEOF_TIME_T $ac_cv_sizeof_time_t 40362_ACEOF 40363 40364 40365echo "$as_me:$LINENO: checking for uintptr_t" >&5 40366echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6 40367if test "${ac_cv_type_uintptr_t+set}" = set; then 40368 echo $ECHO_N "(cached) $ECHO_C" >&6 40369else 40370 cat >conftest.$ac_ext <<_ACEOF 40371/* confdefs.h. */ 40372_ACEOF 40373cat confdefs.h >>conftest.$ac_ext 40374cat >>conftest.$ac_ext <<_ACEOF 40375/* end confdefs.h. */ 40376$ac_includes_default 40377int 40378main () 40379{ 40380if ((uintptr_t *) 0) 40381 return 0; 40382if (sizeof (uintptr_t)) 40383 return 0; 40384 ; 40385 return 0; 40386} 40387_ACEOF 40388rm -f conftest.$ac_objext 40389if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 40390 (eval $ac_compile) 2>conftest.er1 40391 ac_status=$? 40392 grep -v '^ *+' conftest.er1 >conftest.err 40393 rm -f conftest.er1 40394 cat conftest.err >&5 40395 echo "$as_me:$LINENO: \$? = $ac_status" >&5 40396 (exit $ac_status); } && 40397 { ac_try='test -z "$ac_c_werror_flag" 40398 || test ! -s conftest.err' 40399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 40400 (eval $ac_try) 2>&5 40401 ac_status=$? 40402 echo "$as_me:$LINENO: \$? = $ac_status" >&5 40403 (exit $ac_status); }; } && 40404 { ac_try='test -s conftest.$ac_objext' 40405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 40406 (eval $ac_try) 2>&5 40407 ac_status=$? 40408 echo "$as_me:$LINENO: \$? = $ac_status" >&5 40409 (exit $ac_status); }; }; then 40410 ac_cv_type_uintptr_t=yes 40411else 40412 echo "$as_me: failed program was:" >&5 40413sed 's/^/| /' conftest.$ac_ext >&5 40414 40415ac_cv_type_uintptr_t=no 40416fi 40417rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 40418fi 40419echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5 40420echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6 40421if test $ac_cv_type_uintptr_t = yes; then 40422 40423cat >>confdefs.h <<_ACEOF 40424#define HAVE_UINTPTR_T 1 40425_ACEOF 40426 40427 40428fi 40429 40430 40431 40432 40433 40434echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 40435echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6 40436if test "${ac_cv_struct_tm+set}" = set; then 40437 echo $ECHO_N "(cached) $ECHO_C" >&6 40438else 40439 cat >conftest.$ac_ext <<_ACEOF 40440/* confdefs.h. */ 40441_ACEOF 40442cat confdefs.h >>conftest.$ac_ext 40443cat >>conftest.$ac_ext <<_ACEOF 40444/* end confdefs.h. */ 40445#include <sys/types.h> 40446#include <time.h> 40447 40448int 40449main () 40450{ 40451struct tm *tp; tp->tm_sec; 40452 ; 40453 return 0; 40454} 40455_ACEOF 40456rm -f conftest.$ac_objext 40457if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 40458 (eval $ac_compile) 2>conftest.er1 40459 ac_status=$? 40460 grep -v '^ *+' conftest.er1 >conftest.err 40461 rm -f conftest.er1 40462 cat conftest.err >&5 40463 echo "$as_me:$LINENO: \$? = $ac_status" >&5 40464 (exit $ac_status); } && 40465 { ac_try='test -z "$ac_c_werror_flag" 40466 || test ! -s conftest.err' 40467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 40468 (eval $ac_try) 2>&5 40469 ac_status=$? 40470 echo "$as_me:$LINENO: \$? = $ac_status" >&5 40471 (exit $ac_status); }; } && 40472 { ac_try='test -s conftest.$ac_objext' 40473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 40474 (eval $ac_try) 2>&5 40475 ac_status=$? 40476 echo "$as_me:$LINENO: \$? = $ac_status" >&5 40477 (exit $ac_status); }; }; then 40478 ac_cv_struct_tm=time.h 40479else 40480 echo "$as_me: failed program was:" >&5 40481sed 's/^/| /' conftest.$ac_ext >&5 40482 40483ac_cv_struct_tm=sys/time.h 40484fi 40485rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 40486fi 40487echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 40488echo "${ECHO_T}$ac_cv_struct_tm" >&6 40489if test $ac_cv_struct_tm = sys/time.h; then 40490 40491cat >>confdefs.h <<\_ACEOF 40492#define TM_IN_SYS_TIME 1 40493_ACEOF 40494 40495fi 40496 40497 40498echo "$as_me:$LINENO: checking for u_int8_t" >&5 40499echo $ECHO_N "checking for u_int8_t... $ECHO_C" >&6 40500if test "${ac_cv_type_u_int8_t+set}" = set; then 40501 echo $ECHO_N "(cached) $ECHO_C" >&6 40502else 40503 cat >conftest.$ac_ext <<_ACEOF 40504/* confdefs.h. */ 40505_ACEOF 40506cat confdefs.h >>conftest.$ac_ext 40507cat >>conftest.$ac_ext <<_ACEOF 40508/* end confdefs.h. */ 40509#include <sys/types.h> 40510int 40511main () 40512{ 40513u_int8_t len = 42; return 0; 40514 ; 40515 return 0; 40516} 40517_ACEOF 40518rm -f conftest.$ac_objext 40519if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 40520 (eval $ac_compile) 2>conftest.er1 40521 ac_status=$? 40522 grep -v '^ *+' conftest.er1 >conftest.err 40523 rm -f conftest.er1 40524 cat conftest.err >&5 40525 echo "$as_me:$LINENO: \$? = $ac_status" >&5 40526 (exit $ac_status); } && 40527 { ac_try='test -z "$ac_c_werror_flag" 40528 || test ! -s conftest.err' 40529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 40530 (eval $ac_try) 2>&5 40531 ac_status=$? 40532 echo "$as_me:$LINENO: \$? = $ac_status" >&5 40533 (exit $ac_status); }; } && 40534 { ac_try='test -s conftest.$ac_objext' 40535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 40536 (eval $ac_try) 2>&5 40537 ac_status=$? 40538 echo "$as_me:$LINENO: \$? = $ac_status" >&5 40539 (exit $ac_status); }; }; then 40540 ac_cv_type_u_int8_t=yes 40541else 40542 echo "$as_me: failed program was:" >&5 40543sed 's/^/| /' conftest.$ac_ext >&5 40544 40545ac_cv_type_u_int8_t=no 40546fi 40547rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 40548 40549fi 40550echo "$as_me:$LINENO: result: $ac_cv_type_u_int8_t" >&5 40551echo "${ECHO_T}$ac_cv_type_u_int8_t" >&6 40552if test $ac_cv_type_u_int8_t = yes; then 40553 40554cat >>confdefs.h <<\_ACEOF 40555#define HAVE_TYPE_U_INT8_T 1 40556_ACEOF 40557 40558fi 40559 40560echo "$as_me:$LINENO: checking for u_int64_t" >&5 40561echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6 40562if test "${ac_cv_type_u_int64_t+set}" = set; then 40563 echo $ECHO_N "(cached) $ECHO_C" >&6 40564else 40565 cat >conftest.$ac_ext <<_ACEOF 40566/* confdefs.h. */ 40567_ACEOF 40568cat confdefs.h >>conftest.$ac_ext 40569cat >>conftest.$ac_ext <<_ACEOF 40570/* end confdefs.h. */ 40571#include <sys/types.h> 40572int 40573main () 40574{ 40575u_int64_t len = 42; return 0; 40576 ; 40577 return 0; 40578} 40579_ACEOF 40580rm -f conftest.$ac_objext 40581if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 40582 (eval $ac_compile) 2>conftest.er1 40583 ac_status=$? 40584 grep -v '^ *+' conftest.er1 >conftest.err 40585 rm -f conftest.er1 40586 cat conftest.err >&5 40587 echo "$as_me:$LINENO: \$? = $ac_status" >&5 40588 (exit $ac_status); } && 40589 { ac_try='test -z "$ac_c_werror_flag" 40590 || test ! -s conftest.err' 40591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 40592 (eval $ac_try) 2>&5 40593 ac_status=$? 40594 echo "$as_me:$LINENO: \$? = $ac_status" >&5 40595 (exit $ac_status); }; } && 40596 { ac_try='test -s conftest.$ac_objext' 40597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 40598 (eval $ac_try) 2>&5 40599 ac_status=$? 40600 echo "$as_me:$LINENO: \$? = $ac_status" >&5 40601 (exit $ac_status); }; }; then 40602 ac_cv_type_u_int64_t=yes 40603else 40604 echo "$as_me: failed program was:" >&5 40605sed 's/^/| /' conftest.$ac_ext >&5 40606 40607ac_cv_type_u_int64_t=no 40608fi 40609rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 40610 40611fi 40612echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5 40613echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6 40614if test $ac_cv_type_u_int64_t = yes; then 40615 40616cat >>confdefs.h <<\_ACEOF 40617#define HAVE_TYPE_U_INT64_T 1 40618_ACEOF 40619 40620fi 40621 40622# 40623# Look for in_port_t. 40624# 40625echo "$as_me:$LINENO: checking for in_port_t" >&5 40626echo $ECHO_N "checking for in_port_t... $ECHO_C" >&6 40627cat >conftest.$ac_ext <<_ACEOF 40628/* confdefs.h. */ 40629_ACEOF 40630cat confdefs.h >>conftest.$ac_ext 40631cat >>conftest.$ac_ext <<_ACEOF 40632/* end confdefs.h. */ 40633 40634#include <sys/types.h> 40635#include <netinet/in.h> 40636int 40637main () 40638{ 40639in_port_t port = 25; return (0); 40640 ; 40641 return 0; 40642} 40643_ACEOF 40644rm -f conftest.$ac_objext 40645if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 40646 (eval $ac_compile) 2>conftest.er1 40647 ac_status=$? 40648 grep -v '^ *+' conftest.er1 >conftest.err 40649 rm -f conftest.er1 40650 cat conftest.err >&5 40651 echo "$as_me:$LINENO: \$? = $ac_status" >&5 40652 (exit $ac_status); } && 40653 { ac_try='test -z "$ac_c_werror_flag" 40654 || test ! -s conftest.err' 40655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 40656 (eval $ac_try) 2>&5 40657 ac_status=$? 40658 echo "$as_me:$LINENO: \$? = $ac_status" >&5 40659 (exit $ac_status); }; } && 40660 { ac_try='test -s conftest.$ac_objext' 40661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 40662 (eval $ac_try) 2>&5 40663 ac_status=$? 40664 echo "$as_me:$LINENO: \$? = $ac_status" >&5 40665 (exit $ac_status); }; }; then 40666 echo "$as_me:$LINENO: result: yes" >&5 40667echo "${ECHO_T}yes" >&6 40668 40669else 40670 echo "$as_me: failed program was:" >&5 40671sed 's/^/| /' conftest.$ac_ext >&5 40672 40673echo "$as_me:$LINENO: result: no" >&5 40674echo "${ECHO_T}no" >&6 40675 40676cat >>confdefs.h <<\_ACEOF 40677#define ISC_PLATFORM_NEEDPORTT 1 40678_ACEOF 40679 40680 40681fi 40682rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 40683 40684echo "$as_me:$LINENO: checking for a fallback value for HZ" >&5 40685echo $ECHO_N "checking for a fallback value for HZ... $ECHO_C" >&6 40686if test "${ac_cv_var_default_hz+set}" = set; then 40687 echo $ECHO_N "(cached) $ECHO_C" >&6 40688else 40689 ac_cv_var_default_hz=100 40690case "$host" in 40691 alpha*-dec-osf4*|alpha*-dec-osf5*) 40692 ac_cv_var_default_hz=1024 40693 ;; 40694 mips-dec-ultrix4*) 40695 ac_cv_var_default_hz=256 40696 ;; 40697esac 40698fi 40699echo "$as_me:$LINENO: result: $ac_cv_var_default_hz" >&5 40700echo "${ECHO_T}$ac_cv_var_default_hz" >&6 40701 40702cat >>confdefs.h <<_ACEOF 40703#define DEFAULT_HZ $ac_cv_var_default_hz 40704_ACEOF 40705 40706 40707echo "$as_me:$LINENO: checking if we need to override the system's value for HZ" >&5 40708echo $ECHO_N "checking if we need to override the system's value for HZ... $ECHO_C" >&6 40709if test "${ac_cv_var_override_hz+set}" = set; then 40710 echo $ECHO_N "(cached) $ECHO_C" >&6 40711else 40712 ac_cv_var_override_hz=no 40713case "$host" in 40714 alpha*-dec-osf4*|alpha*-dec-osf5*) 40715 ac_cv_var_override_hz=yes 40716 ;; 40717 mips-dec-ultrix4*) 40718 ac_cv_var_override_hz=yes 40719 ;; 40720 *-*-freebsd*) 40721 ac_cv_var_override_hz=yes 40722 ;; 40723 *-*-sunos4*) 40724 ac_cv_var_override_hz=yes 40725 ;; 40726esac 40727fi 40728echo "$as_me:$LINENO: result: $ac_cv_var_override_hz" >&5 40729echo "${ECHO_T}$ac_cv_var_override_hz" >&6 40730case "$ac_cv_var_override_hz" in 40731 yes) 40732 40733cat >>confdefs.h <<\_ACEOF 40734#define OVERRIDE_HZ 1 40735_ACEOF 40736 40737 ;; 40738esac 40739 40740 40741 40742echo "$as_me:$LINENO: checking for struct rt_msghdr" >&5 40743echo $ECHO_N "checking for struct rt_msghdr... $ECHO_C" >&6 40744if test "${ac_cv_struct_rt_msghdr+set}" = set; then 40745 echo $ECHO_N "(cached) $ECHO_C" >&6 40746else 40747 cat >conftest.$ac_ext <<_ACEOF 40748/* confdefs.h. */ 40749_ACEOF 40750cat confdefs.h >>conftest.$ac_ext 40751cat >>conftest.$ac_ext <<_ACEOF 40752/* end confdefs.h. */ 40753 40754#include <sys/types.h> 40755#include <sys/socket.h> 40756#include <net/if.h> 40757#include <net/route.h> 40758int 40759main () 40760{ 40761struct rt_msghdr p; 40762 ; 40763 return 0; 40764} 40765_ACEOF 40766rm -f conftest.$ac_objext 40767if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 40768 (eval $ac_compile) 2>conftest.er1 40769 ac_status=$? 40770 grep -v '^ *+' conftest.er1 >conftest.err 40771 rm -f conftest.er1 40772 cat conftest.err >&5 40773 echo "$as_me:$LINENO: \$? = $ac_status" >&5 40774 (exit $ac_status); } && 40775 { ac_try='test -z "$ac_c_werror_flag" 40776 || test ! -s conftest.err' 40777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 40778 (eval $ac_try) 2>&5 40779 ac_status=$? 40780 echo "$as_me:$LINENO: \$? = $ac_status" >&5 40781 (exit $ac_status); }; } && 40782 { ac_try='test -s conftest.$ac_objext' 40783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 40784 (eval $ac_try) 2>&5 40785 ac_status=$? 40786 echo "$as_me:$LINENO: \$? = $ac_status" >&5 40787 (exit $ac_status); }; }; then 40788 ac_cv_struct_rt_msghdr=yes 40789else 40790 echo "$as_me: failed program was:" >&5 40791sed 's/^/| /' conftest.$ac_ext >&5 40792 40793ac_cv_struct_rt_msghdr=no 40794fi 40795rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 40796 40797fi 40798echo "$as_me:$LINENO: result: $ac_cv_struct_rt_msghdr" >&5 40799echo "${ECHO_T}$ac_cv_struct_rt_msghdr" >&6 40800if test $ac_cv_struct_rt_msghdr = yes; then 40801 40802cat >>confdefs.h <<\_ACEOF 40803#define HAS_ROUTING_SOCKET 1 40804_ACEOF 40805 40806fi 40807 40808echo "$as_me:$LINENO: checking struct sigaction for sa_sigaction" >&5 40809echo $ECHO_N "checking struct sigaction for sa_sigaction... $ECHO_C" >&6 40810if test "${ac_cv_struct_sigaction_has_sa_sigaction+set}" = set; then 40811 echo $ECHO_N "(cached) $ECHO_C" >&6 40812else 40813 40814 cat >conftest.$ac_ext <<_ACEOF 40815/* confdefs.h. */ 40816_ACEOF 40817cat confdefs.h >>conftest.$ac_ext 40818cat >>conftest.$ac_ext <<_ACEOF 40819/* end confdefs.h. */ 40820#include <signal.h> 40821int 40822main () 40823{ 40824struct sigaction act; act.sa_sigaction = 0; 40825 ; 40826 return 0; 40827} 40828_ACEOF 40829rm -f conftest.$ac_objext 40830if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 40831 (eval $ac_compile) 2>conftest.er1 40832 ac_status=$? 40833 grep -v '^ *+' conftest.er1 >conftest.err 40834 rm -f conftest.er1 40835 cat conftest.err >&5 40836 echo "$as_me:$LINENO: \$? = $ac_status" >&5 40837 (exit $ac_status); } && 40838 { ac_try='test -z "$ac_c_werror_flag" 40839 || test ! -s conftest.err' 40840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 40841 (eval $ac_try) 2>&5 40842 ac_status=$? 40843 echo "$as_me:$LINENO: \$? = $ac_status" >&5 40844 (exit $ac_status); }; } && 40845 { ac_try='test -s conftest.$ac_objext' 40846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 40847 (eval $ac_try) 2>&5 40848 ac_status=$? 40849 echo "$as_me:$LINENO: \$? = $ac_status" >&5 40850 (exit $ac_status); }; }; then 40851 ac_cv_struct_sigaction_has_sa_sigaction=yes 40852else 40853 echo "$as_me: failed program was:" >&5 40854sed 's/^/| /' conftest.$ac_ext >&5 40855 40856ac_cv_struct_sigaction_has_sa_sigaction=no 40857 40858fi 40859rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 40860 40861 40862fi 40863echo "$as_me:$LINENO: result: $ac_cv_struct_sigaction_has_sa_sigaction" >&5 40864echo "${ECHO_T}$ac_cv_struct_sigaction_has_sa_sigaction" >&6 40865if test $ac_cv_struct_sigaction_has_sa_sigaction = yes; then 40866 40867cat >>confdefs.h <<\_ACEOF 40868#define HAVE_SA_SIGACTION_IN_STRUCT_SIGACTION 1 40869_ACEOF 40870 40871fi 40872 40873echo "$as_me:$LINENO: checking for struct ppsclockev" >&5 40874echo $ECHO_N "checking for struct ppsclockev... $ECHO_C" >&6 40875if test "${ac_cv_struct_ppsclockev+set}" = set; then 40876 echo $ECHO_N "(cached) $ECHO_C" >&6 40877else 40878 cat >conftest.$ac_ext <<_ACEOF 40879/* confdefs.h. */ 40880_ACEOF 40881cat confdefs.h >>conftest.$ac_ext 40882cat >>conftest.$ac_ext <<_ACEOF 40883/* end confdefs.h. */ 40884 40885#include <sys/types.h> 40886#ifdef HAVE_SYS_TERMIOS_H 40887# include <sys/termios.h> 40888#endif 40889#ifdef HAVE_SYS_TIME_H 40890# include <sys/time.h> 40891#endif 40892#ifdef HAVE_SYS_PPSCLOCK_H 40893# include <sys/ppsclock.h> 40894#endif 40895int 40896main () 40897{ 40898 40899extern struct ppsclockev *pce; 40900return pce->serial; 40901 ; 40902 return 0; 40903} 40904_ACEOF 40905rm -f conftest.$ac_objext 40906if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 40907 (eval $ac_compile) 2>conftest.er1 40908 ac_status=$? 40909 grep -v '^ *+' conftest.er1 >conftest.err 40910 rm -f conftest.er1 40911 cat conftest.err >&5 40912 echo "$as_me:$LINENO: \$? = $ac_status" >&5 40913 (exit $ac_status); } && 40914 { ac_try='test -z "$ac_c_werror_flag" 40915 || test ! -s conftest.err' 40916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 40917 (eval $ac_try) 2>&5 40918 ac_status=$? 40919 echo "$as_me:$LINENO: \$? = $ac_status" >&5 40920 (exit $ac_status); }; } && 40921 { ac_try='test -s conftest.$ac_objext' 40922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 40923 (eval $ac_try) 2>&5 40924 ac_status=$? 40925 echo "$as_me:$LINENO: \$? = $ac_status" >&5 40926 (exit $ac_status); }; }; then 40927 ac_cv_struct_ppsclockev=yes 40928else 40929 echo "$as_me: failed program was:" >&5 40930sed 's/^/| /' conftest.$ac_ext >&5 40931 40932ac_cv_struct_ppsclockev=no 40933fi 40934rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 40935 40936fi 40937echo "$as_me:$LINENO: result: $ac_cv_struct_ppsclockev" >&5 40938echo "${ECHO_T}$ac_cv_struct_ppsclockev" >&6 40939if test $ac_cv_struct_ppsclockev = yes; then 40940 40941cat >>confdefs.h <<\_ACEOF 40942#define HAVE_STRUCT_PPSCLOCKEV 1 40943_ACEOF 40944 40945fi 40946 40947echo "$as_me:$LINENO: checking struct sockaddr for sa_len" >&5 40948echo $ECHO_N "checking struct sockaddr for sa_len... $ECHO_C" >&6 40949if test "${ac_cv_struct_sockaddr_has_sa_len+set}" = set; then 40950 echo $ECHO_N "(cached) $ECHO_C" >&6 40951else 40952 cat >conftest.$ac_ext <<_ACEOF 40953/* confdefs.h. */ 40954_ACEOF 40955cat confdefs.h >>conftest.$ac_ext 40956cat >>conftest.$ac_ext <<_ACEOF 40957/* end confdefs.h. */ 40958 40959#include <sys/types.h> 40960#include <sys/socket.h> 40961int 40962main () 40963{ 40964 40965extern struct sockaddr *ps; 40966return ps->sa_len; 40967 ; 40968 return 0; 40969} 40970_ACEOF 40971rm -f conftest.$ac_objext 40972if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 40973 (eval $ac_compile) 2>conftest.er1 40974 ac_status=$? 40975 grep -v '^ *+' conftest.er1 >conftest.err 40976 rm -f conftest.er1 40977 cat conftest.err >&5 40978 echo "$as_me:$LINENO: \$? = $ac_status" >&5 40979 (exit $ac_status); } && 40980 { ac_try='test -z "$ac_c_werror_flag" 40981 || test ! -s conftest.err' 40982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 40983 (eval $ac_try) 2>&5 40984 ac_status=$? 40985 echo "$as_me:$LINENO: \$? = $ac_status" >&5 40986 (exit $ac_status); }; } && 40987 { ac_try='test -s conftest.$ac_objext' 40988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 40989 (eval $ac_try) 2>&5 40990 ac_status=$? 40991 echo "$as_me:$LINENO: \$? = $ac_status" >&5 40992 (exit $ac_status); }; }; then 40993 ac_cv_struct_sockaddr_has_sa_len=yes 40994else 40995 echo "$as_me: failed program was:" >&5 40996sed 's/^/| /' conftest.$ac_ext >&5 40997 40998ac_cv_struct_sockaddr_has_sa_len=no 40999fi 41000rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 41001 41002fi 41003echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_has_sa_len" >&5 41004echo "${ECHO_T}$ac_cv_struct_sockaddr_has_sa_len" >&6 41005if test $ac_cv_struct_sockaddr_has_sa_len = yes; then 41006 41007cat >>confdefs.h <<\_ACEOF 41008#define HAVE_SA_LEN_IN_STRUCT_SOCKADDR 1 41009_ACEOF 41010 41011fi 41012 41013echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5 41014echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6 41015if test "${ac_cv_struct_sockaddr_storage+set}" = set; then 41016 echo $ECHO_N "(cached) $ECHO_C" >&6 41017else 41018 cat >conftest.$ac_ext <<_ACEOF 41019/* confdefs.h. */ 41020_ACEOF 41021cat confdefs.h >>conftest.$ac_ext 41022cat >>conftest.$ac_ext <<_ACEOF 41023/* end confdefs.h. */ 41024 41025#include <sys/types.h> 41026#include <sys/socket.h> 41027#include <netinet/in.h> 41028 41029int 41030main () 41031{ 41032 41033struct sockaddr_storage n; 41034 ; 41035 return 0; 41036} 41037_ACEOF 41038rm -f conftest.$ac_objext 41039if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 41040 (eval $ac_compile) 2>conftest.er1 41041 ac_status=$? 41042 grep -v '^ *+' conftest.er1 >conftest.err 41043 rm -f conftest.er1 41044 cat conftest.err >&5 41045 echo "$as_me:$LINENO: \$? = $ac_status" >&5 41046 (exit $ac_status); } && 41047 { ac_try='test -z "$ac_c_werror_flag" 41048 || test ! -s conftest.err' 41049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 41050 (eval $ac_try) 2>&5 41051 ac_status=$? 41052 echo "$as_me:$LINENO: \$? = $ac_status" >&5 41053 (exit $ac_status); }; } && 41054 { ac_try='test -s conftest.$ac_objext' 41055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 41056 (eval $ac_try) 2>&5 41057 ac_status=$? 41058 echo "$as_me:$LINENO: \$? = $ac_status" >&5 41059 (exit $ac_status); }; }; then 41060 ac_cv_struct_sockaddr_storage=yes 41061else 41062 echo "$as_me: failed program was:" >&5 41063sed 's/^/| /' conftest.$ac_ext >&5 41064 41065ac_cv_struct_sockaddr_storage=no 41066fi 41067rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 41068 41069fi 41070echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5 41071echo "${ECHO_T}$ac_cv_struct_sockaddr_storage" >&6 41072if test $ac_cv_struct_sockaddr_storage = yes; then 41073 41074cat >>confdefs.h <<\_ACEOF 41075#define HAVE_STRUCT_SOCKADDR_STORAGE 1 41076_ACEOF 41077 41078fi 41079 41080echo "$as_me:$LINENO: checking for ss_family field in struct sockaddr_storage" >&5 41081echo $ECHO_N "checking for ss_family field in struct sockaddr_storage... $ECHO_C" >&6 41082if test "${ac_cv_have_ss_family_in_struct_ss+set}" = set; then 41083 echo $ECHO_N "(cached) $ECHO_C" >&6 41084else 41085 41086 cat >conftest.$ac_ext <<_ACEOF 41087/* confdefs.h. */ 41088_ACEOF 41089cat confdefs.h >>conftest.$ac_ext 41090cat >>conftest.$ac_ext <<_ACEOF 41091/* end confdefs.h. */ 41092 41093#include <sys/types.h> 41094#include <sys/socket.h> 41095 41096int 41097main () 41098{ 41099 struct sockaddr_storage s; s.ss_family = 1; 41100 ; 41101 return 0; 41102} 41103_ACEOF 41104rm -f conftest.$ac_objext 41105if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 41106 (eval $ac_compile) 2>conftest.er1 41107 ac_status=$? 41108 grep -v '^ *+' conftest.er1 >conftest.err 41109 rm -f conftest.er1 41110 cat conftest.err >&5 41111 echo "$as_me:$LINENO: \$? = $ac_status" >&5 41112 (exit $ac_status); } && 41113 { ac_try='test -z "$ac_c_werror_flag" 41114 || test ! -s conftest.err' 41115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 41116 (eval $ac_try) 2>&5 41117 ac_status=$? 41118 echo "$as_me:$LINENO: \$? = $ac_status" >&5 41119 (exit $ac_status); }; } && 41120 { ac_try='test -s conftest.$ac_objext' 41121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 41122 (eval $ac_try) 2>&5 41123 ac_status=$? 41124 echo "$as_me:$LINENO: \$? = $ac_status" >&5 41125 (exit $ac_status); }; }; then 41126 ac_cv_have_ss_family_in_struct_ss="yes" 41127else 41128 echo "$as_me: failed program was:" >&5 41129sed 's/^/| /' conftest.$ac_ext >&5 41130 41131 ac_cv_have_ss_family_in_struct_ss="no" 41132fi 41133rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 41134 41135fi 41136echo "$as_me:$LINENO: result: $ac_cv_have_ss_family_in_struct_ss" >&5 41137echo "${ECHO_T}$ac_cv_have_ss_family_in_struct_ss" >&6 41138if test "x$ac_cv_have_ss_family_in_struct_ss" = "xyes" ; then 41139 41140cat >>confdefs.h <<\_ACEOF 41141#define HAVE_SS_FAMILY_IN_SS 1 41142_ACEOF 41143 41144else 41145 # Hack around a problem... 41146 # HMS: This is $host because we need the -D if we are building *for* it. 41147 # HMS: 061029: Now that we separate the ss_* checks this is causing 41148 # a problem - disable it until we get to the bottom of it. 41149 case "$host" in 41150 XXX*-*-hpux11.11) CPPFLAGS="$CPPFLAGS -D_NETINET_IN6_H" 41151 ;; 41152 esac 41153fi 41154 41155echo "$as_me:$LINENO: checking for __ss_family field in struct sockaddr_storage" >&5 41156echo $ECHO_N "checking for __ss_family field in struct sockaddr_storage... $ECHO_C" >&6 41157if test "${ac_cv_have___ss_family_in_struct_ss+set}" = set; then 41158 echo $ECHO_N "(cached) $ECHO_C" >&6 41159else 41160 41161 cat >conftest.$ac_ext <<_ACEOF 41162/* confdefs.h. */ 41163_ACEOF 41164cat confdefs.h >>conftest.$ac_ext 41165cat >>conftest.$ac_ext <<_ACEOF 41166/* end confdefs.h. */ 41167 41168#include <sys/types.h> 41169#include <sys/socket.h> 41170 41171int 41172main () 41173{ 41174 struct sockaddr_storage s; s.__ss_family = 1; 41175 ; 41176 return 0; 41177} 41178_ACEOF 41179rm -f conftest.$ac_objext 41180if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 41181 (eval $ac_compile) 2>conftest.er1 41182 ac_status=$? 41183 grep -v '^ *+' conftest.er1 >conftest.err 41184 rm -f conftest.er1 41185 cat conftest.err >&5 41186 echo "$as_me:$LINENO: \$? = $ac_status" >&5 41187 (exit $ac_status); } && 41188 { ac_try='test -z "$ac_c_werror_flag" 41189 || test ! -s conftest.err' 41190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 41191 (eval $ac_try) 2>&5 41192 ac_status=$? 41193 echo "$as_me:$LINENO: \$? = $ac_status" >&5 41194 (exit $ac_status); }; } && 41195 { ac_try='test -s conftest.$ac_objext' 41196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 41197 (eval $ac_try) 2>&5 41198 ac_status=$? 41199 echo "$as_me:$LINENO: \$? = $ac_status" >&5 41200 (exit $ac_status); }; }; then 41201 ac_cv_have___ss_family_in_struct_ss="yes" 41202else 41203 echo "$as_me: failed program was:" >&5 41204sed 's/^/| /' conftest.$ac_ext >&5 41205 41206 ac_cv_have___ss_family_in_struct_ss="no" 41207 41208fi 41209rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 41210 41211fi 41212echo "$as_me:$LINENO: result: $ac_cv_have___ss_family_in_struct_ss" >&5 41213echo "${ECHO_T}$ac_cv_have___ss_family_in_struct_ss" >&6 41214if test "x$ac_cv_have___ss_family_in_struct_ss" = "xyes" ; then 41215 41216cat >>confdefs.h <<\_ACEOF 41217#define HAVE___SS_FAMILY_IN_SS 1 41218_ACEOF 41219 41220fi 41221 41222 41223 41224 41225echo "$as_me:$LINENO: checking for ss_len field in struct sockaddr_storage" >&5 41226echo $ECHO_N "checking for ss_len field in struct sockaddr_storage... $ECHO_C" >&6 41227if test "${ac_cv_have_ss_len_in_struct_ss+set}" = set; then 41228 echo $ECHO_N "(cached) $ECHO_C" >&6 41229else 41230 41231 cat >conftest.$ac_ext <<_ACEOF 41232/* confdefs.h. */ 41233_ACEOF 41234cat confdefs.h >>conftest.$ac_ext 41235cat >>conftest.$ac_ext <<_ACEOF 41236/* end confdefs.h. */ 41237 41238#include <sys/types.h> 41239#include <sys/socket.h> 41240 41241int 41242main () 41243{ 41244 struct sockaddr_storage s; s.ss_len = 1; 41245 ; 41246 return 0; 41247} 41248_ACEOF 41249rm -f conftest.$ac_objext 41250if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 41251 (eval $ac_compile) 2>conftest.er1 41252 ac_status=$? 41253 grep -v '^ *+' conftest.er1 >conftest.err 41254 rm -f conftest.er1 41255 cat conftest.err >&5 41256 echo "$as_me:$LINENO: \$? = $ac_status" >&5 41257 (exit $ac_status); } && 41258 { ac_try='test -z "$ac_c_werror_flag" 41259 || test ! -s conftest.err' 41260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 41261 (eval $ac_try) 2>&5 41262 ac_status=$? 41263 echo "$as_me:$LINENO: \$? = $ac_status" >&5 41264 (exit $ac_status); }; } && 41265 { ac_try='test -s conftest.$ac_objext' 41266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 41267 (eval $ac_try) 2>&5 41268 ac_status=$? 41269 echo "$as_me:$LINENO: \$? = $ac_status" >&5 41270 (exit $ac_status); }; }; then 41271 ac_cv_have_ss_len_in_struct_ss="yes" 41272else 41273 echo "$as_me: failed program was:" >&5 41274sed 's/^/| /' conftest.$ac_ext >&5 41275 41276 ac_cv_have_ss_len_in_struct_ss="no" 41277fi 41278rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 41279 41280fi 41281echo "$as_me:$LINENO: result: $ac_cv_have_ss_len_in_struct_ss" >&5 41282echo "${ECHO_T}$ac_cv_have_ss_len_in_struct_ss" >&6 41283if test "x$ac_cv_have_ss_len_in_struct_ss" = "xyes" ; then 41284 41285cat >>confdefs.h <<\_ACEOF 41286#define HAVE_SS_LEN_IN_SS 1 41287_ACEOF 41288 41289fi 41290 41291echo "$as_me:$LINENO: checking for __ss_len field in struct sockaddr_storage" >&5 41292echo $ECHO_N "checking for __ss_len field in struct sockaddr_storage... $ECHO_C" >&6 41293if test "${ac_cv_have___ss_len_in_struct_ss+set}" = set; then 41294 echo $ECHO_N "(cached) $ECHO_C" >&6 41295else 41296 41297 cat >conftest.$ac_ext <<_ACEOF 41298/* confdefs.h. */ 41299_ACEOF 41300cat confdefs.h >>conftest.$ac_ext 41301cat >>conftest.$ac_ext <<_ACEOF 41302/* end confdefs.h. */ 41303 41304#include <sys/types.h> 41305#include <sys/socket.h> 41306 41307int 41308main () 41309{ 41310 struct sockaddr_storage s; s.__ss_len = 1; 41311 ; 41312 return 0; 41313} 41314_ACEOF 41315rm -f conftest.$ac_objext 41316if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 41317 (eval $ac_compile) 2>conftest.er1 41318 ac_status=$? 41319 grep -v '^ *+' conftest.er1 >conftest.err 41320 rm -f conftest.er1 41321 cat conftest.err >&5 41322 echo "$as_me:$LINENO: \$? = $ac_status" >&5 41323 (exit $ac_status); } && 41324 { ac_try='test -z "$ac_c_werror_flag" 41325 || test ! -s conftest.err' 41326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 41327 (eval $ac_try) 2>&5 41328 ac_status=$? 41329 echo "$as_me:$LINENO: \$? = $ac_status" >&5 41330 (exit $ac_status); }; } && 41331 { ac_try='test -s conftest.$ac_objext' 41332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 41333 (eval $ac_try) 2>&5 41334 ac_status=$? 41335 echo "$as_me:$LINENO: \$? = $ac_status" >&5 41336 (exit $ac_status); }; }; then 41337 ac_cv_have___ss_len_in_struct_ss="yes" 41338else 41339 echo "$as_me: failed program was:" >&5 41340sed 's/^/| /' conftest.$ac_ext >&5 41341 41342 ac_cv_have___ss_len_in_struct_ss="no" 41343 41344fi 41345rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 41346 41347fi 41348echo "$as_me:$LINENO: result: $ac_cv_have___ss_len_in_struct_ss" >&5 41349echo "${ECHO_T}$ac_cv_have___ss_len_in_struct_ss" >&6 41350if test "x$ac_cv_have___ss_len_in_struct_ss" = "xyes" ; then 41351 41352cat >>confdefs.h <<\_ACEOF 41353#define HAVE___SS_LEN_IN_SS 1 41354_ACEOF 41355 41356fi 41357 41358 41359 41360 41361case "$ac_cv_header_machine_soundcard_h$ac_cv_header_sys_soundcard_h" in 41362 *yes*) 41363 echo "$as_me:$LINENO: checking for struct snd_size" >&5 41364echo $ECHO_N "checking for struct snd_size... $ECHO_C" >&6 41365if test "${ac_cv_struct_snd_size+set}" = set; then 41366 echo $ECHO_N "(cached) $ECHO_C" >&6 41367else 41368 cat >conftest.$ac_ext <<_ACEOF 41369/* confdefs.h. */ 41370_ACEOF 41371cat confdefs.h >>conftest.$ac_ext 41372cat >>conftest.$ac_ext <<_ACEOF 41373/* end confdefs.h. */ 41374 41375#ifdef HAVE_MACHINE_SOUNDCARD_H 41376# include <machine/soundcard.h> 41377#endif 41378#ifdef HAVE_SYS_SOUNDCARD_H 41379# include <sys/soundcard.h> 41380#endif 41381int 41382main () 41383{ 41384 41385extern struct snd_size *ss; 41386return ss->rec_size; 41387 ; 41388 return 0; 41389} 41390_ACEOF 41391rm -f conftest.$ac_objext 41392if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 41393 (eval $ac_compile) 2>conftest.er1 41394 ac_status=$? 41395 grep -v '^ *+' conftest.er1 >conftest.err 41396 rm -f conftest.er1 41397 cat conftest.err >&5 41398 echo "$as_me:$LINENO: \$? = $ac_status" >&5 41399 (exit $ac_status); } && 41400 { ac_try='test -z "$ac_c_werror_flag" 41401 || test ! -s conftest.err' 41402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 41403 (eval $ac_try) 2>&5 41404 ac_status=$? 41405 echo "$as_me:$LINENO: \$? = $ac_status" >&5 41406 (exit $ac_status); }; } && 41407 { ac_try='test -s conftest.$ac_objext' 41408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 41409 (eval $ac_try) 2>&5 41410 ac_status=$? 41411 echo "$as_me:$LINENO: \$? = $ac_status" >&5 41412 (exit $ac_status); }; }; then 41413 ac_cv_struct_snd_size=yes 41414else 41415 echo "$as_me: failed program was:" >&5 41416sed 's/^/| /' conftest.$ac_ext >&5 41417 41418ac_cv_struct_snd_size=no 41419fi 41420rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 41421 41422fi 41423echo "$as_me:$LINENO: result: $ac_cv_struct_snd_size" >&5 41424echo "${ECHO_T}$ac_cv_struct_snd_size" >&6 41425 case "$ac_cv_struct_snd_size" in 41426 yes) 41427cat >>confdefs.h <<\_ACEOF 41428#define HAVE_STRUCT_SND_SIZE 1 41429_ACEOF 41430 ;; 41431 esac 41432 ;; 41433esac 41434 41435echo "$as_me:$LINENO: checking struct clockinfo for hz" >&5 41436echo $ECHO_N "checking struct clockinfo for hz... $ECHO_C" >&6 41437if test "${ac_cv_struct_clockinfo_has_hz+set}" = set; then 41438 echo $ECHO_N "(cached) $ECHO_C" >&6 41439else 41440 cat >conftest.$ac_ext <<_ACEOF 41441/* confdefs.h. */ 41442_ACEOF 41443cat confdefs.h >>conftest.$ac_ext 41444cat >>conftest.$ac_ext <<_ACEOF 41445/* end confdefs.h. */ 41446 41447#include <sys/time.h> 41448int 41449main () 41450{ 41451 41452extern struct clockinfo *pc; 41453return pc->hz; 41454 ; 41455 return 0; 41456} 41457_ACEOF 41458rm -f conftest.$ac_objext 41459if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 41460 (eval $ac_compile) 2>conftest.er1 41461 ac_status=$? 41462 grep -v '^ *+' conftest.er1 >conftest.err 41463 rm -f conftest.er1 41464 cat conftest.err >&5 41465 echo "$as_me:$LINENO: \$? = $ac_status" >&5 41466 (exit $ac_status); } && 41467 { ac_try='test -z "$ac_c_werror_flag" 41468 || test ! -s conftest.err' 41469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 41470 (eval $ac_try) 2>&5 41471 ac_status=$? 41472 echo "$as_me:$LINENO: \$? = $ac_status" >&5 41473 (exit $ac_status); }; } && 41474 { ac_try='test -s conftest.$ac_objext' 41475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 41476 (eval $ac_try) 2>&5 41477 ac_status=$? 41478 echo "$as_me:$LINENO: \$? = $ac_status" >&5 41479 (exit $ac_status); }; }; then 41480 ac_cv_struct_clockinfo_has_hz=yes 41481else 41482 echo "$as_me: failed program was:" >&5 41483sed 's/^/| /' conftest.$ac_ext >&5 41484 41485ac_cv_struct_clockinfo_has_hz=no 41486fi 41487rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 41488 41489fi 41490echo "$as_me:$LINENO: result: $ac_cv_struct_clockinfo_has_hz" >&5 41491echo "${ECHO_T}$ac_cv_struct_clockinfo_has_hz" >&6 41492if test $ac_cv_struct_clockinfo_has_hz = yes; then 41493 41494cat >>confdefs.h <<\_ACEOF 41495#define HAVE_HZ_IN_STRUCT_CLOCKINFO 1 41496_ACEOF 41497 41498fi 41499 41500echo "$as_me:$LINENO: checking struct clockinfo for tickadj" >&5 41501echo $ECHO_N "checking struct clockinfo for tickadj... $ECHO_C" >&6 41502if test "${ac_cv_struct_clockinfo_has_tickadj+set}" = set; then 41503 echo $ECHO_N "(cached) $ECHO_C" >&6 41504else 41505 cat >conftest.$ac_ext <<_ACEOF 41506/* confdefs.h. */ 41507_ACEOF 41508cat confdefs.h >>conftest.$ac_ext 41509cat >>conftest.$ac_ext <<_ACEOF 41510/* end confdefs.h. */ 41511 41512#include <sys/time.h> 41513int 41514main () 41515{ 41516 41517extern struct clockinfo *pc; 41518return pc->tickadj; 41519 ; 41520 return 0; 41521} 41522_ACEOF 41523rm -f conftest.$ac_objext 41524if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 41525 (eval $ac_compile) 2>conftest.er1 41526 ac_status=$? 41527 grep -v '^ *+' conftest.er1 >conftest.err 41528 rm -f conftest.er1 41529 cat conftest.err >&5 41530 echo "$as_me:$LINENO: \$? = $ac_status" >&5 41531 (exit $ac_status); } && 41532 { ac_try='test -z "$ac_c_werror_flag" 41533 || test ! -s conftest.err' 41534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 41535 (eval $ac_try) 2>&5 41536 ac_status=$? 41537 echo "$as_me:$LINENO: \$? = $ac_status" >&5 41538 (exit $ac_status); }; } && 41539 { ac_try='test -s conftest.$ac_objext' 41540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 41541 (eval $ac_try) 2>&5 41542 ac_status=$? 41543 echo "$as_me:$LINENO: \$? = $ac_status" >&5 41544 (exit $ac_status); }; }; then 41545 ac_cv_struct_clockinfo_has_tickadj=yes 41546else 41547 echo "$as_me: failed program was:" >&5 41548sed 's/^/| /' conftest.$ac_ext >&5 41549 41550ac_cv_struct_clockinfo_has_tickadj=no 41551fi 41552rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 41553 41554fi 41555echo "$as_me:$LINENO: result: $ac_cv_struct_clockinfo_has_tickadj" >&5 41556echo "${ECHO_T}$ac_cv_struct_clockinfo_has_tickadj" >&6 41557if test $ac_cv_struct_clockinfo_has_tickadj = yes; then 41558 41559cat >>confdefs.h <<\_ACEOF 41560#define HAVE_TICKADJ_IN_STRUCT_CLOCKINFO 1 41561_ACEOF 41562 41563fi 41564 41565echo "$as_me:$LINENO: checking for struct timespec" >&5 41566echo $ECHO_N "checking for struct timespec... $ECHO_C" >&6 41567if test "${ac_cv_struct_timespec+set}" = set; then 41568 echo $ECHO_N "(cached) $ECHO_C" >&6 41569else 41570 cat >conftest.$ac_ext <<_ACEOF 41571/* confdefs.h. */ 41572_ACEOF 41573cat confdefs.h >>conftest.$ac_ext 41574cat >>conftest.$ac_ext <<_ACEOF 41575/* end confdefs.h. */ 41576 41577#include <sys/time.h> 41578/* Under SunOS, timespec is in sys/timepps.h, which needs errno.h and FRAC */ 41579#ifdef HAVE_ERRNO_H 41580# include <errno.h> 41581#endif 41582#ifdef HAVE_SYS_TIMEPPS_H 41583# define FRAC 4294967296 41584# include <sys/timepps.h> 41585#endif 41586int 41587main () 41588{ 41589struct timespec n; 41590 ; 41591 return 0; 41592} 41593_ACEOF 41594rm -f conftest.$ac_objext 41595if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 41596 (eval $ac_compile) 2>conftest.er1 41597 ac_status=$? 41598 grep -v '^ *+' conftest.er1 >conftest.err 41599 rm -f conftest.er1 41600 cat conftest.err >&5 41601 echo "$as_me:$LINENO: \$? = $ac_status" >&5 41602 (exit $ac_status); } && 41603 { ac_try='test -z "$ac_c_werror_flag" 41604 || test ! -s conftest.err' 41605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 41606 (eval $ac_try) 2>&5 41607 ac_status=$? 41608 echo "$as_me:$LINENO: \$? = $ac_status" >&5 41609 (exit $ac_status); }; } && 41610 { ac_try='test -s conftest.$ac_objext' 41611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 41612 (eval $ac_try) 2>&5 41613 ac_status=$? 41614 echo "$as_me:$LINENO: \$? = $ac_status" >&5 41615 (exit $ac_status); }; }; then 41616 ac_cv_struct_timespec=yes 41617else 41618 echo "$as_me: failed program was:" >&5 41619sed 's/^/| /' conftest.$ac_ext >&5 41620 41621ac_cv_struct_timespec=no 41622fi 41623rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 41624fi 41625echo "$as_me:$LINENO: result: $ac_cv_struct_timespec" >&5 41626echo "${ECHO_T}$ac_cv_struct_timespec" >&6 41627if test $ac_cv_struct_timespec = yes; then 41628 41629cat >>confdefs.h <<\_ACEOF 41630#define HAVE_STRUCT_TIMESPEC 1 41631_ACEOF 41632 41633fi 41634 41635echo "$as_me:$LINENO: checking for struct ntptimeval" >&5 41636echo $ECHO_N "checking for struct ntptimeval... $ECHO_C" >&6 41637if test "${ac_cv_struct_ntptimeval+set}" = set; then 41638 echo $ECHO_N "(cached) $ECHO_C" >&6 41639else 41640 cat >conftest.$ac_ext <<_ACEOF 41641/* confdefs.h. */ 41642_ACEOF 41643cat confdefs.h >>conftest.$ac_ext 41644cat >>conftest.$ac_ext <<_ACEOF 41645/* end confdefs.h. */ 41646 41647#include <sys/time.h> 41648#include <sys/timex.h> 41649int 41650main () 41651{ 41652struct ntptimeval n; 41653 ; 41654 return 0; 41655} 41656_ACEOF 41657rm -f conftest.$ac_objext 41658if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 41659 (eval $ac_compile) 2>conftest.er1 41660 ac_status=$? 41661 grep -v '^ *+' conftest.er1 >conftest.err 41662 rm -f conftest.er1 41663 cat conftest.err >&5 41664 echo "$as_me:$LINENO: \$? = $ac_status" >&5 41665 (exit $ac_status); } && 41666 { ac_try='test -z "$ac_c_werror_flag" 41667 || test ! -s conftest.err' 41668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 41669 (eval $ac_try) 2>&5 41670 ac_status=$? 41671 echo "$as_me:$LINENO: \$? = $ac_status" >&5 41672 (exit $ac_status); }; } && 41673 { ac_try='test -s conftest.$ac_objext' 41674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 41675 (eval $ac_try) 2>&5 41676 ac_status=$? 41677 echo "$as_me:$LINENO: \$? = $ac_status" >&5 41678 (exit $ac_status); }; }; then 41679 ac_cv_struct_ntptimeval=yes 41680else 41681 echo "$as_me: failed program was:" >&5 41682sed 's/^/| /' conftest.$ac_ext >&5 41683 41684ac_cv_struct_ntptimeval=no 41685fi 41686rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 41687fi 41688echo "$as_me:$LINENO: result: $ac_cv_struct_ntptimeval" >&5 41689echo "${ECHO_T}$ac_cv_struct_ntptimeval" >&6 41690if test $ac_cv_struct_ntptimeval = yes; then 41691 41692cat >>confdefs.h <<\_ACEOF 41693#define HAVE_STRUCT_NTPTIMEVAL 1 41694_ACEOF 41695 41696fi 41697 41698echo "$as_me:$LINENO: checking for struct ntptimeval.time.tv_nsec" >&5 41699echo $ECHO_N "checking for struct ntptimeval.time.tv_nsec... $ECHO_C" >&6 41700if test "${ac_cv_member_struct_ntptimeval_time_tv_nsec+set}" = set; then 41701 echo $ECHO_N "(cached) $ECHO_C" >&6 41702else 41703 cat >conftest.$ac_ext <<_ACEOF 41704/* confdefs.h. */ 41705_ACEOF 41706cat confdefs.h >>conftest.$ac_ext 41707cat >>conftest.$ac_ext <<_ACEOF 41708/* end confdefs.h. */ 41709#ifdef HAVE_SYS_TIME_H 41710#include <sys/time.h> 41711#else 41712# ifdef HAVE_TIME_H 41713# include <time.h> 41714# endif 41715#endif 41716#ifdef HAVE_SYS_TIMEX_H 41717#include <sys/timex.h> 41718#else 41719# ifdef HAVE_TIMEX_H 41720# include <timex.h> 41721# endif 41722#endif 41723 41724int 41725main () 41726{ 41727static struct ntptimeval ac_aggr; 41728if (ac_aggr.time.tv_nsec) 41729return 0; 41730 ; 41731 return 0; 41732} 41733_ACEOF 41734rm -f conftest.$ac_objext 41735if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 41736 (eval $ac_compile) 2>conftest.er1 41737 ac_status=$? 41738 grep -v '^ *+' conftest.er1 >conftest.err 41739 rm -f conftest.er1 41740 cat conftest.err >&5 41741 echo "$as_me:$LINENO: \$? = $ac_status" >&5 41742 (exit $ac_status); } && 41743 { ac_try='test -z "$ac_c_werror_flag" 41744 || test ! -s conftest.err' 41745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 41746 (eval $ac_try) 2>&5 41747 ac_status=$? 41748 echo "$as_me:$LINENO: \$? = $ac_status" >&5 41749 (exit $ac_status); }; } && 41750 { ac_try='test -s conftest.$ac_objext' 41751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 41752 (eval $ac_try) 2>&5 41753 ac_status=$? 41754 echo "$as_me:$LINENO: \$? = $ac_status" >&5 41755 (exit $ac_status); }; }; then 41756 ac_cv_member_struct_ntptimeval_time_tv_nsec=yes 41757else 41758 echo "$as_me: failed program was:" >&5 41759sed 's/^/| /' conftest.$ac_ext >&5 41760 41761cat >conftest.$ac_ext <<_ACEOF 41762/* confdefs.h. */ 41763_ACEOF 41764cat confdefs.h >>conftest.$ac_ext 41765cat >>conftest.$ac_ext <<_ACEOF 41766/* end confdefs.h. */ 41767#ifdef HAVE_SYS_TIME_H 41768#include <sys/time.h> 41769#else 41770# ifdef HAVE_TIME_H 41771# include <time.h> 41772# endif 41773#endif 41774#ifdef HAVE_SYS_TIMEX_H 41775#include <sys/timex.h> 41776#else 41777# ifdef HAVE_TIMEX_H 41778# include <timex.h> 41779# endif 41780#endif 41781 41782int 41783main () 41784{ 41785static struct ntptimeval ac_aggr; 41786if (sizeof ac_aggr.time.tv_nsec) 41787return 0; 41788 ; 41789 return 0; 41790} 41791_ACEOF 41792rm -f conftest.$ac_objext 41793if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 41794 (eval $ac_compile) 2>conftest.er1 41795 ac_status=$? 41796 grep -v '^ *+' conftest.er1 >conftest.err 41797 rm -f conftest.er1 41798 cat conftest.err >&5 41799 echo "$as_me:$LINENO: \$? = $ac_status" >&5 41800 (exit $ac_status); } && 41801 { ac_try='test -z "$ac_c_werror_flag" 41802 || test ! -s conftest.err' 41803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 41804 (eval $ac_try) 2>&5 41805 ac_status=$? 41806 echo "$as_me:$LINENO: \$? = $ac_status" >&5 41807 (exit $ac_status); }; } && 41808 { ac_try='test -s conftest.$ac_objext' 41809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 41810 (eval $ac_try) 2>&5 41811 ac_status=$? 41812 echo "$as_me:$LINENO: \$? = $ac_status" >&5 41813 (exit $ac_status); }; }; then 41814 ac_cv_member_struct_ntptimeval_time_tv_nsec=yes 41815else 41816 echo "$as_me: failed program was:" >&5 41817sed 's/^/| /' conftest.$ac_ext >&5 41818 41819ac_cv_member_struct_ntptimeval_time_tv_nsec=no 41820fi 41821rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 41822fi 41823rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 41824fi 41825echo "$as_me:$LINENO: result: $ac_cv_member_struct_ntptimeval_time_tv_nsec" >&5 41826echo "${ECHO_T}$ac_cv_member_struct_ntptimeval_time_tv_nsec" >&6 41827if test $ac_cv_member_struct_ntptimeval_time_tv_nsec = yes; then 41828 41829cat >>confdefs.h <<_ACEOF 41830#define HAVE_STRUCT_NTPTIMEVAL_TIME_TV_NSEC 1 41831_ACEOF 41832 41833 41834fi 41835 41836 41837echo "$as_me:$LINENO: checking for inline" >&5 41838echo $ECHO_N "checking for inline... $ECHO_C" >&6 41839if test "${ac_cv_c_inline+set}" = set; then 41840 echo $ECHO_N "(cached) $ECHO_C" >&6 41841else 41842 ac_cv_c_inline=no 41843for ac_kw in inline __inline__ __inline; do 41844 cat >conftest.$ac_ext <<_ACEOF 41845/* confdefs.h. */ 41846_ACEOF 41847cat confdefs.h >>conftest.$ac_ext 41848cat >>conftest.$ac_ext <<_ACEOF 41849/* end confdefs.h. */ 41850#ifndef __cplusplus 41851typedef int foo_t; 41852static $ac_kw foo_t static_foo () {return 0; } 41853$ac_kw foo_t foo () {return 0; } 41854#endif 41855 41856_ACEOF 41857rm -f conftest.$ac_objext 41858if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 41859 (eval $ac_compile) 2>conftest.er1 41860 ac_status=$? 41861 grep -v '^ *+' conftest.er1 >conftest.err 41862 rm -f conftest.er1 41863 cat conftest.err >&5 41864 echo "$as_me:$LINENO: \$? = $ac_status" >&5 41865 (exit $ac_status); } && 41866 { ac_try='test -z "$ac_c_werror_flag" 41867 || test ! -s conftest.err' 41868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 41869 (eval $ac_try) 2>&5 41870 ac_status=$? 41871 echo "$as_me:$LINENO: \$? = $ac_status" >&5 41872 (exit $ac_status); }; } && 41873 { ac_try='test -s conftest.$ac_objext' 41874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 41875 (eval $ac_try) 2>&5 41876 ac_status=$? 41877 echo "$as_me:$LINENO: \$? = $ac_status" >&5 41878 (exit $ac_status); }; }; then 41879 ac_cv_c_inline=$ac_kw; break 41880else 41881 echo "$as_me: failed program was:" >&5 41882sed 's/^/| /' conftest.$ac_ext >&5 41883 41884fi 41885rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 41886done 41887 41888fi 41889echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 41890echo "${ECHO_T}$ac_cv_c_inline" >&6 41891 41892 41893case $ac_cv_c_inline in 41894 inline | yes) ;; 41895 *) 41896 case $ac_cv_c_inline in 41897 no) ac_val=;; 41898 *) ac_val=$ac_cv_c_inline;; 41899 esac 41900 cat >>confdefs.h <<_ACEOF 41901#ifndef __cplusplus 41902#define inline $ac_val 41903#endif 41904_ACEOF 41905 ;; 41906esac 41907 41908 41909echo "$as_me:$LINENO: checking whether char is unsigned" >&5 41910echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6 41911if test "${ac_cv_c_char_unsigned+set}" = set; then 41912 echo $ECHO_N "(cached) $ECHO_C" >&6 41913else 41914 cat >conftest.$ac_ext <<_ACEOF 41915/* confdefs.h. */ 41916_ACEOF 41917cat confdefs.h >>conftest.$ac_ext 41918cat >>conftest.$ac_ext <<_ACEOF 41919/* end confdefs.h. */ 41920$ac_includes_default 41921int 41922main () 41923{ 41924static int test_array [1 - 2 * !(((char) -1) < 0)]; 41925test_array [0] = 0 41926 41927 ; 41928 return 0; 41929} 41930_ACEOF 41931rm -f conftest.$ac_objext 41932if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 41933 (eval $ac_compile) 2>conftest.er1 41934 ac_status=$? 41935 grep -v '^ *+' conftest.er1 >conftest.err 41936 rm -f conftest.er1 41937 cat conftest.err >&5 41938 echo "$as_me:$LINENO: \$? = $ac_status" >&5 41939 (exit $ac_status); } && 41940 { ac_try='test -z "$ac_c_werror_flag" 41941 || test ! -s conftest.err' 41942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 41943 (eval $ac_try) 2>&5 41944 ac_status=$? 41945 echo "$as_me:$LINENO: \$? = $ac_status" >&5 41946 (exit $ac_status); }; } && 41947 { ac_try='test -s conftest.$ac_objext' 41948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 41949 (eval $ac_try) 2>&5 41950 ac_status=$? 41951 echo "$as_me:$LINENO: \$? = $ac_status" >&5 41952 (exit $ac_status); }; }; then 41953 ac_cv_c_char_unsigned=no 41954else 41955 echo "$as_me: failed program was:" >&5 41956sed 's/^/| /' conftest.$ac_ext >&5 41957 41958ac_cv_c_char_unsigned=yes 41959fi 41960rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 41961fi 41962echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5 41963echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6 41964if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then 41965 cat >>confdefs.h <<\_ACEOF 41966#define __CHAR_UNSIGNED__ 1 41967_ACEOF 41968 41969fi 41970 echo "$as_me:$LINENO: checking for signed char" >&5 41971echo $ECHO_N "checking for signed char... $ECHO_C" >&6 41972if test "${ac_cv_type_signed_char+set}" = set; then 41973 echo $ECHO_N "(cached) $ECHO_C" >&6 41974else 41975 cat >conftest.$ac_ext <<_ACEOF 41976/* confdefs.h. */ 41977_ACEOF 41978cat confdefs.h >>conftest.$ac_ext 41979cat >>conftest.$ac_ext <<_ACEOF 41980/* end confdefs.h. */ 41981$ac_includes_default 41982int 41983main () 41984{ 41985if ((signed char *) 0) 41986 return 0; 41987if (sizeof (signed char)) 41988 return 0; 41989 ; 41990 return 0; 41991} 41992_ACEOF 41993rm -f conftest.$ac_objext 41994if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 41995 (eval $ac_compile) 2>conftest.er1 41996 ac_status=$? 41997 grep -v '^ *+' conftest.er1 >conftest.err 41998 rm -f conftest.er1 41999 cat conftest.err >&5 42000 echo "$as_me:$LINENO: \$? = $ac_status" >&5 42001 (exit $ac_status); } && 42002 { ac_try='test -z "$ac_c_werror_flag" 42003 || test ! -s conftest.err' 42004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 42005 (eval $ac_try) 2>&5 42006 ac_status=$? 42007 echo "$as_me:$LINENO: \$? = $ac_status" >&5 42008 (exit $ac_status); }; } && 42009 { ac_try='test -s conftest.$ac_objext' 42010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 42011 (eval $ac_try) 2>&5 42012 ac_status=$? 42013 echo "$as_me:$LINENO: \$? = $ac_status" >&5 42014 (exit $ac_status); }; }; then 42015 ac_cv_type_signed_char=yes 42016else 42017 echo "$as_me: failed program was:" >&5 42018sed 's/^/| /' conftest.$ac_ext >&5 42019 42020ac_cv_type_signed_char=no 42021fi 42022rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 42023fi 42024echo "$as_me:$LINENO: result: $ac_cv_type_signed_char" >&5 42025echo "${ECHO_T}$ac_cv_type_signed_char" >&6 42026 42027echo "$as_me:$LINENO: checking size of signed char" >&5 42028echo $ECHO_N "checking size of signed char... $ECHO_C" >&6 42029if test "${ac_cv_sizeof_signed_char+set}" = set; then 42030 echo $ECHO_N "(cached) $ECHO_C" >&6 42031else 42032 if test "$ac_cv_type_signed_char" = yes; then 42033 # The cast to unsigned long works around a bug in the HP C Compiler 42034 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 42035 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 42036 # This bug is HP SR number 8606223364. 42037 if test "$cross_compiling" = yes; then 42038 # Depending upon the size, compute the lo and hi bounds. 42039cat >conftest.$ac_ext <<_ACEOF 42040/* confdefs.h. */ 42041_ACEOF 42042cat confdefs.h >>conftest.$ac_ext 42043cat >>conftest.$ac_ext <<_ACEOF 42044/* end confdefs.h. */ 42045$ac_includes_default 42046int 42047main () 42048{ 42049static int test_array [1 - 2 * !(((long) (sizeof (signed char))) >= 0)]; 42050test_array [0] = 0 42051 42052 ; 42053 return 0; 42054} 42055_ACEOF 42056rm -f conftest.$ac_objext 42057if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 42058 (eval $ac_compile) 2>conftest.er1 42059 ac_status=$? 42060 grep -v '^ *+' conftest.er1 >conftest.err 42061 rm -f conftest.er1 42062 cat conftest.err >&5 42063 echo "$as_me:$LINENO: \$? = $ac_status" >&5 42064 (exit $ac_status); } && 42065 { ac_try='test -z "$ac_c_werror_flag" 42066 || test ! -s conftest.err' 42067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 42068 (eval $ac_try) 2>&5 42069 ac_status=$? 42070 echo "$as_me:$LINENO: \$? = $ac_status" >&5 42071 (exit $ac_status); }; } && 42072 { ac_try='test -s conftest.$ac_objext' 42073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 42074 (eval $ac_try) 2>&5 42075 ac_status=$? 42076 echo "$as_me:$LINENO: \$? = $ac_status" >&5 42077 (exit $ac_status); }; }; then 42078 ac_lo=0 ac_mid=0 42079 while :; do 42080 cat >conftest.$ac_ext <<_ACEOF 42081/* confdefs.h. */ 42082_ACEOF 42083cat confdefs.h >>conftest.$ac_ext 42084cat >>conftest.$ac_ext <<_ACEOF 42085/* end confdefs.h. */ 42086$ac_includes_default 42087int 42088main () 42089{ 42090static int test_array [1 - 2 * !(((long) (sizeof (signed char))) <= $ac_mid)]; 42091test_array [0] = 0 42092 42093 ; 42094 return 0; 42095} 42096_ACEOF 42097rm -f conftest.$ac_objext 42098if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 42099 (eval $ac_compile) 2>conftest.er1 42100 ac_status=$? 42101 grep -v '^ *+' conftest.er1 >conftest.err 42102 rm -f conftest.er1 42103 cat conftest.err >&5 42104 echo "$as_me:$LINENO: \$? = $ac_status" >&5 42105 (exit $ac_status); } && 42106 { ac_try='test -z "$ac_c_werror_flag" 42107 || test ! -s conftest.err' 42108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 42109 (eval $ac_try) 2>&5 42110 ac_status=$? 42111 echo "$as_me:$LINENO: \$? = $ac_status" >&5 42112 (exit $ac_status); }; } && 42113 { ac_try='test -s conftest.$ac_objext' 42114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 42115 (eval $ac_try) 2>&5 42116 ac_status=$? 42117 echo "$as_me:$LINENO: \$? = $ac_status" >&5 42118 (exit $ac_status); }; }; then 42119 ac_hi=$ac_mid; break 42120else 42121 echo "$as_me: failed program was:" >&5 42122sed 's/^/| /' conftest.$ac_ext >&5 42123 42124ac_lo=`expr $ac_mid + 1` 42125 if test $ac_lo -le $ac_mid; then 42126 ac_lo= ac_hi= 42127 break 42128 fi 42129 ac_mid=`expr 2 '*' $ac_mid + 1` 42130fi 42131rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 42132 done 42133else 42134 echo "$as_me: failed program was:" >&5 42135sed 's/^/| /' conftest.$ac_ext >&5 42136 42137cat >conftest.$ac_ext <<_ACEOF 42138/* confdefs.h. */ 42139_ACEOF 42140cat confdefs.h >>conftest.$ac_ext 42141cat >>conftest.$ac_ext <<_ACEOF 42142/* end confdefs.h. */ 42143$ac_includes_default 42144int 42145main () 42146{ 42147static int test_array [1 - 2 * !(((long) (sizeof (signed char))) < 0)]; 42148test_array [0] = 0 42149 42150 ; 42151 return 0; 42152} 42153_ACEOF 42154rm -f conftest.$ac_objext 42155if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 42156 (eval $ac_compile) 2>conftest.er1 42157 ac_status=$? 42158 grep -v '^ *+' conftest.er1 >conftest.err 42159 rm -f conftest.er1 42160 cat conftest.err >&5 42161 echo "$as_me:$LINENO: \$? = $ac_status" >&5 42162 (exit $ac_status); } && 42163 { ac_try='test -z "$ac_c_werror_flag" 42164 || test ! -s conftest.err' 42165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 42166 (eval $ac_try) 2>&5 42167 ac_status=$? 42168 echo "$as_me:$LINENO: \$? = $ac_status" >&5 42169 (exit $ac_status); }; } && 42170 { ac_try='test -s conftest.$ac_objext' 42171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 42172 (eval $ac_try) 2>&5 42173 ac_status=$? 42174 echo "$as_me:$LINENO: \$? = $ac_status" >&5 42175 (exit $ac_status); }; }; then 42176 ac_hi=-1 ac_mid=-1 42177 while :; do 42178 cat >conftest.$ac_ext <<_ACEOF 42179/* confdefs.h. */ 42180_ACEOF 42181cat confdefs.h >>conftest.$ac_ext 42182cat >>conftest.$ac_ext <<_ACEOF 42183/* end confdefs.h. */ 42184$ac_includes_default 42185int 42186main () 42187{ 42188static int test_array [1 - 2 * !(((long) (sizeof (signed char))) >= $ac_mid)]; 42189test_array [0] = 0 42190 42191 ; 42192 return 0; 42193} 42194_ACEOF 42195rm -f conftest.$ac_objext 42196if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 42197 (eval $ac_compile) 2>conftest.er1 42198 ac_status=$? 42199 grep -v '^ *+' conftest.er1 >conftest.err 42200 rm -f conftest.er1 42201 cat conftest.err >&5 42202 echo "$as_me:$LINENO: \$? = $ac_status" >&5 42203 (exit $ac_status); } && 42204 { ac_try='test -z "$ac_c_werror_flag" 42205 || test ! -s conftest.err' 42206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 42207 (eval $ac_try) 2>&5 42208 ac_status=$? 42209 echo "$as_me:$LINENO: \$? = $ac_status" >&5 42210 (exit $ac_status); }; } && 42211 { ac_try='test -s conftest.$ac_objext' 42212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 42213 (eval $ac_try) 2>&5 42214 ac_status=$? 42215 echo "$as_me:$LINENO: \$? = $ac_status" >&5 42216 (exit $ac_status); }; }; then 42217 ac_lo=$ac_mid; break 42218else 42219 echo "$as_me: failed program was:" >&5 42220sed 's/^/| /' conftest.$ac_ext >&5 42221 42222ac_hi=`expr '(' $ac_mid ')' - 1` 42223 if test $ac_mid -le $ac_hi; then 42224 ac_lo= ac_hi= 42225 break 42226 fi 42227 ac_mid=`expr 2 '*' $ac_mid` 42228fi 42229rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 42230 done 42231else 42232 echo "$as_me: failed program was:" >&5 42233sed 's/^/| /' conftest.$ac_ext >&5 42234 42235ac_lo= ac_hi= 42236fi 42237rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 42238fi 42239rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 42240# Binary search between lo and hi bounds. 42241while test "x$ac_lo" != "x$ac_hi"; do 42242 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 42243 cat >conftest.$ac_ext <<_ACEOF 42244/* confdefs.h. */ 42245_ACEOF 42246cat confdefs.h >>conftest.$ac_ext 42247cat >>conftest.$ac_ext <<_ACEOF 42248/* end confdefs.h. */ 42249$ac_includes_default 42250int 42251main () 42252{ 42253static int test_array [1 - 2 * !(((long) (sizeof (signed char))) <= $ac_mid)]; 42254test_array [0] = 0 42255 42256 ; 42257 return 0; 42258} 42259_ACEOF 42260rm -f conftest.$ac_objext 42261if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 42262 (eval $ac_compile) 2>conftest.er1 42263 ac_status=$? 42264 grep -v '^ *+' conftest.er1 >conftest.err 42265 rm -f conftest.er1 42266 cat conftest.err >&5 42267 echo "$as_me:$LINENO: \$? = $ac_status" >&5 42268 (exit $ac_status); } && 42269 { ac_try='test -z "$ac_c_werror_flag" 42270 || test ! -s conftest.err' 42271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 42272 (eval $ac_try) 2>&5 42273 ac_status=$? 42274 echo "$as_me:$LINENO: \$? = $ac_status" >&5 42275 (exit $ac_status); }; } && 42276 { ac_try='test -s conftest.$ac_objext' 42277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 42278 (eval $ac_try) 2>&5 42279 ac_status=$? 42280 echo "$as_me:$LINENO: \$? = $ac_status" >&5 42281 (exit $ac_status); }; }; then 42282 ac_hi=$ac_mid 42283else 42284 echo "$as_me: failed program was:" >&5 42285sed 's/^/| /' conftest.$ac_ext >&5 42286 42287ac_lo=`expr '(' $ac_mid ')' + 1` 42288fi 42289rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 42290done 42291case $ac_lo in 42292?*) ac_cv_sizeof_signed_char=$ac_lo;; 42293'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (signed char), 77 42294See \`config.log' for more details." >&5 42295echo "$as_me: error: cannot compute sizeof (signed char), 77 42296See \`config.log' for more details." >&2;} 42297 { (exit 1); exit 1; }; } ;; 42298esac 42299else 42300 if test "$cross_compiling" = yes; then 42301 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 42302See \`config.log' for more details." >&5 42303echo "$as_me: error: cannot run test program while cross compiling 42304See \`config.log' for more details." >&2;} 42305 { (exit 1); exit 1; }; } 42306else 42307 cat >conftest.$ac_ext <<_ACEOF 42308/* confdefs.h. */ 42309_ACEOF 42310cat confdefs.h >>conftest.$ac_ext 42311cat >>conftest.$ac_ext <<_ACEOF 42312/* end confdefs.h. */ 42313$ac_includes_default 42314long longval () { return (long) (sizeof (signed char)); } 42315unsigned long ulongval () { return (long) (sizeof (signed char)); } 42316#include <stdio.h> 42317#include <stdlib.h> 42318int 42319main () 42320{ 42321 42322 FILE *f = fopen ("conftest.val", "w"); 42323 if (! f) 42324 exit (1); 42325 if (((long) (sizeof (signed char))) < 0) 42326 { 42327 long i = longval (); 42328 if (i != ((long) (sizeof (signed char)))) 42329 exit (1); 42330 fprintf (f, "%ld\n", i); 42331 } 42332 else 42333 { 42334 unsigned long i = ulongval (); 42335 if (i != ((long) (sizeof (signed char)))) 42336 exit (1); 42337 fprintf (f, "%lu\n", i); 42338 } 42339 exit (ferror (f) || fclose (f) != 0); 42340 42341 ; 42342 return 0; 42343} 42344_ACEOF 42345rm -f conftest$ac_exeext 42346if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 42347 (eval $ac_link) 2>&5 42348 ac_status=$? 42349 echo "$as_me:$LINENO: \$? = $ac_status" >&5 42350 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 42351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 42352 (eval $ac_try) 2>&5 42353 ac_status=$? 42354 echo "$as_me:$LINENO: \$? = $ac_status" >&5 42355 (exit $ac_status); }; }; then 42356 ac_cv_sizeof_signed_char=`cat conftest.val` 42357else 42358 echo "$as_me: program exited with status $ac_status" >&5 42359echo "$as_me: failed program was:" >&5 42360sed 's/^/| /' conftest.$ac_ext >&5 42361 42362( exit $ac_status ) 42363{ { echo "$as_me:$LINENO: error: cannot compute sizeof (signed char), 77 42364See \`config.log' for more details." >&5 42365echo "$as_me: error: cannot compute sizeof (signed char), 77 42366See \`config.log' for more details." >&2;} 42367 { (exit 1); exit 1; }; } 42368fi 42369rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 42370fi 42371fi 42372rm -f conftest.val 42373else 42374 ac_cv_sizeof_signed_char=0 42375fi 42376fi 42377echo "$as_me:$LINENO: result: $ac_cv_sizeof_signed_char" >&5 42378echo "${ECHO_T}$ac_cv_sizeof_signed_char" >&6 42379cat >>confdefs.h <<_ACEOF 42380#define SIZEOF_SIGNED_CHAR $ac_cv_sizeof_signed_char 42381_ACEOF 42382 42383 42384echo "$as_me:$LINENO: checking for int" >&5 42385echo $ECHO_N "checking for int... $ECHO_C" >&6 42386if test "${ac_cv_type_int+set}" = set; then 42387 echo $ECHO_N "(cached) $ECHO_C" >&6 42388else 42389 cat >conftest.$ac_ext <<_ACEOF 42390/* confdefs.h. */ 42391_ACEOF 42392cat confdefs.h >>conftest.$ac_ext 42393cat >>conftest.$ac_ext <<_ACEOF 42394/* end confdefs.h. */ 42395$ac_includes_default 42396int 42397main () 42398{ 42399if ((int *) 0) 42400 return 0; 42401if (sizeof (int)) 42402 return 0; 42403 ; 42404 return 0; 42405} 42406_ACEOF 42407rm -f conftest.$ac_objext 42408if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 42409 (eval $ac_compile) 2>conftest.er1 42410 ac_status=$? 42411 grep -v '^ *+' conftest.er1 >conftest.err 42412 rm -f conftest.er1 42413 cat conftest.err >&5 42414 echo "$as_me:$LINENO: \$? = $ac_status" >&5 42415 (exit $ac_status); } && 42416 { ac_try='test -z "$ac_c_werror_flag" 42417 || test ! -s conftest.err' 42418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 42419 (eval $ac_try) 2>&5 42420 ac_status=$? 42421 echo "$as_me:$LINENO: \$? = $ac_status" >&5 42422 (exit $ac_status); }; } && 42423 { ac_try='test -s conftest.$ac_objext' 42424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 42425 (eval $ac_try) 2>&5 42426 ac_status=$? 42427 echo "$as_me:$LINENO: \$? = $ac_status" >&5 42428 (exit $ac_status); }; }; then 42429 ac_cv_type_int=yes 42430else 42431 echo "$as_me: failed program was:" >&5 42432sed 's/^/| /' conftest.$ac_ext >&5 42433 42434ac_cv_type_int=no 42435fi 42436rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 42437fi 42438echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 42439echo "${ECHO_T}$ac_cv_type_int" >&6 42440 42441echo "$as_me:$LINENO: checking size of int" >&5 42442echo $ECHO_N "checking size of int... $ECHO_C" >&6 42443if test "${ac_cv_sizeof_int+set}" = set; then 42444 echo $ECHO_N "(cached) $ECHO_C" >&6 42445else 42446 if test "$ac_cv_type_int" = yes; then 42447 # The cast to unsigned long works around a bug in the HP C Compiler 42448 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 42449 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 42450 # This bug is HP SR number 8606223364. 42451 if test "$cross_compiling" = yes; then 42452 # Depending upon the size, compute the lo and hi bounds. 42453cat >conftest.$ac_ext <<_ACEOF 42454/* confdefs.h. */ 42455_ACEOF 42456cat confdefs.h >>conftest.$ac_ext 42457cat >>conftest.$ac_ext <<_ACEOF 42458/* end confdefs.h. */ 42459$ac_includes_default 42460int 42461main () 42462{ 42463static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)]; 42464test_array [0] = 0 42465 42466 ; 42467 return 0; 42468} 42469_ACEOF 42470rm -f conftest.$ac_objext 42471if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 42472 (eval $ac_compile) 2>conftest.er1 42473 ac_status=$? 42474 grep -v '^ *+' conftest.er1 >conftest.err 42475 rm -f conftest.er1 42476 cat conftest.err >&5 42477 echo "$as_me:$LINENO: \$? = $ac_status" >&5 42478 (exit $ac_status); } && 42479 { ac_try='test -z "$ac_c_werror_flag" 42480 || test ! -s conftest.err' 42481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 42482 (eval $ac_try) 2>&5 42483 ac_status=$? 42484 echo "$as_me:$LINENO: \$? = $ac_status" >&5 42485 (exit $ac_status); }; } && 42486 { ac_try='test -s conftest.$ac_objext' 42487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 42488 (eval $ac_try) 2>&5 42489 ac_status=$? 42490 echo "$as_me:$LINENO: \$? = $ac_status" >&5 42491 (exit $ac_status); }; }; then 42492 ac_lo=0 ac_mid=0 42493 while :; do 42494 cat >conftest.$ac_ext <<_ACEOF 42495/* confdefs.h. */ 42496_ACEOF 42497cat confdefs.h >>conftest.$ac_ext 42498cat >>conftest.$ac_ext <<_ACEOF 42499/* end confdefs.h. */ 42500$ac_includes_default 42501int 42502main () 42503{ 42504static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; 42505test_array [0] = 0 42506 42507 ; 42508 return 0; 42509} 42510_ACEOF 42511rm -f conftest.$ac_objext 42512if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 42513 (eval $ac_compile) 2>conftest.er1 42514 ac_status=$? 42515 grep -v '^ *+' conftest.er1 >conftest.err 42516 rm -f conftest.er1 42517 cat conftest.err >&5 42518 echo "$as_me:$LINENO: \$? = $ac_status" >&5 42519 (exit $ac_status); } && 42520 { ac_try='test -z "$ac_c_werror_flag" 42521 || test ! -s conftest.err' 42522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 42523 (eval $ac_try) 2>&5 42524 ac_status=$? 42525 echo "$as_me:$LINENO: \$? = $ac_status" >&5 42526 (exit $ac_status); }; } && 42527 { ac_try='test -s conftest.$ac_objext' 42528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 42529 (eval $ac_try) 2>&5 42530 ac_status=$? 42531 echo "$as_me:$LINENO: \$? = $ac_status" >&5 42532 (exit $ac_status); }; }; then 42533 ac_hi=$ac_mid; break 42534else 42535 echo "$as_me: failed program was:" >&5 42536sed 's/^/| /' conftest.$ac_ext >&5 42537 42538ac_lo=`expr $ac_mid + 1` 42539 if test $ac_lo -le $ac_mid; then 42540 ac_lo= ac_hi= 42541 break 42542 fi 42543 ac_mid=`expr 2 '*' $ac_mid + 1` 42544fi 42545rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 42546 done 42547else 42548 echo "$as_me: failed program was:" >&5 42549sed 's/^/| /' conftest.$ac_ext >&5 42550 42551cat >conftest.$ac_ext <<_ACEOF 42552/* confdefs.h. */ 42553_ACEOF 42554cat confdefs.h >>conftest.$ac_ext 42555cat >>conftest.$ac_ext <<_ACEOF 42556/* end confdefs.h. */ 42557$ac_includes_default 42558int 42559main () 42560{ 42561static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)]; 42562test_array [0] = 0 42563 42564 ; 42565 return 0; 42566} 42567_ACEOF 42568rm -f conftest.$ac_objext 42569if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 42570 (eval $ac_compile) 2>conftest.er1 42571 ac_status=$? 42572 grep -v '^ *+' conftest.er1 >conftest.err 42573 rm -f conftest.er1 42574 cat conftest.err >&5 42575 echo "$as_me:$LINENO: \$? = $ac_status" >&5 42576 (exit $ac_status); } && 42577 { ac_try='test -z "$ac_c_werror_flag" 42578 || test ! -s conftest.err' 42579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 42580 (eval $ac_try) 2>&5 42581 ac_status=$? 42582 echo "$as_me:$LINENO: \$? = $ac_status" >&5 42583 (exit $ac_status); }; } && 42584 { ac_try='test -s conftest.$ac_objext' 42585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 42586 (eval $ac_try) 2>&5 42587 ac_status=$? 42588 echo "$as_me:$LINENO: \$? = $ac_status" >&5 42589 (exit $ac_status); }; }; then 42590 ac_hi=-1 ac_mid=-1 42591 while :; do 42592 cat >conftest.$ac_ext <<_ACEOF 42593/* confdefs.h. */ 42594_ACEOF 42595cat confdefs.h >>conftest.$ac_ext 42596cat >>conftest.$ac_ext <<_ACEOF 42597/* end confdefs.h. */ 42598$ac_includes_default 42599int 42600main () 42601{ 42602static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)]; 42603test_array [0] = 0 42604 42605 ; 42606 return 0; 42607} 42608_ACEOF 42609rm -f conftest.$ac_objext 42610if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 42611 (eval $ac_compile) 2>conftest.er1 42612 ac_status=$? 42613 grep -v '^ *+' conftest.er1 >conftest.err 42614 rm -f conftest.er1 42615 cat conftest.err >&5 42616 echo "$as_me:$LINENO: \$? = $ac_status" >&5 42617 (exit $ac_status); } && 42618 { ac_try='test -z "$ac_c_werror_flag" 42619 || test ! -s conftest.err' 42620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 42621 (eval $ac_try) 2>&5 42622 ac_status=$? 42623 echo "$as_me:$LINENO: \$? = $ac_status" >&5 42624 (exit $ac_status); }; } && 42625 { ac_try='test -s conftest.$ac_objext' 42626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 42627 (eval $ac_try) 2>&5 42628 ac_status=$? 42629 echo "$as_me:$LINENO: \$? = $ac_status" >&5 42630 (exit $ac_status); }; }; then 42631 ac_lo=$ac_mid; break 42632else 42633 echo "$as_me: failed program was:" >&5 42634sed 's/^/| /' conftest.$ac_ext >&5 42635 42636ac_hi=`expr '(' $ac_mid ')' - 1` 42637 if test $ac_mid -le $ac_hi; then 42638 ac_lo= ac_hi= 42639 break 42640 fi 42641 ac_mid=`expr 2 '*' $ac_mid` 42642fi 42643rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 42644 done 42645else 42646 echo "$as_me: failed program was:" >&5 42647sed 's/^/| /' conftest.$ac_ext >&5 42648 42649ac_lo= ac_hi= 42650fi 42651rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 42652fi 42653rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 42654# Binary search between lo and hi bounds. 42655while test "x$ac_lo" != "x$ac_hi"; do 42656 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 42657 cat >conftest.$ac_ext <<_ACEOF 42658/* confdefs.h. */ 42659_ACEOF 42660cat confdefs.h >>conftest.$ac_ext 42661cat >>conftest.$ac_ext <<_ACEOF 42662/* end confdefs.h. */ 42663$ac_includes_default 42664int 42665main () 42666{ 42667static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; 42668test_array [0] = 0 42669 42670 ; 42671 return 0; 42672} 42673_ACEOF 42674rm -f conftest.$ac_objext 42675if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 42676 (eval $ac_compile) 2>conftest.er1 42677 ac_status=$? 42678 grep -v '^ *+' conftest.er1 >conftest.err 42679 rm -f conftest.er1 42680 cat conftest.err >&5 42681 echo "$as_me:$LINENO: \$? = $ac_status" >&5 42682 (exit $ac_status); } && 42683 { ac_try='test -z "$ac_c_werror_flag" 42684 || test ! -s conftest.err' 42685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 42686 (eval $ac_try) 2>&5 42687 ac_status=$? 42688 echo "$as_me:$LINENO: \$? = $ac_status" >&5 42689 (exit $ac_status); }; } && 42690 { ac_try='test -s conftest.$ac_objext' 42691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 42692 (eval $ac_try) 2>&5 42693 ac_status=$? 42694 echo "$as_me:$LINENO: \$? = $ac_status" >&5 42695 (exit $ac_status); }; }; then 42696 ac_hi=$ac_mid 42697else 42698 echo "$as_me: failed program was:" >&5 42699sed 's/^/| /' conftest.$ac_ext >&5 42700 42701ac_lo=`expr '(' $ac_mid ')' + 1` 42702fi 42703rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 42704done 42705case $ac_lo in 42706?*) ac_cv_sizeof_int=$ac_lo;; 42707'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 42708See \`config.log' for more details." >&5 42709echo "$as_me: error: cannot compute sizeof (int), 77 42710See \`config.log' for more details." >&2;} 42711 { (exit 1); exit 1; }; } ;; 42712esac 42713else 42714 if test "$cross_compiling" = yes; then 42715 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 42716See \`config.log' for more details." >&5 42717echo "$as_me: error: cannot run test program while cross compiling 42718See \`config.log' for more details." >&2;} 42719 { (exit 1); exit 1; }; } 42720else 42721 cat >conftest.$ac_ext <<_ACEOF 42722/* confdefs.h. */ 42723_ACEOF 42724cat confdefs.h >>conftest.$ac_ext 42725cat >>conftest.$ac_ext <<_ACEOF 42726/* end confdefs.h. */ 42727$ac_includes_default 42728long longval () { return (long) (sizeof (int)); } 42729unsigned long ulongval () { return (long) (sizeof (int)); } 42730#include <stdio.h> 42731#include <stdlib.h> 42732int 42733main () 42734{ 42735 42736 FILE *f = fopen ("conftest.val", "w"); 42737 if (! f) 42738 exit (1); 42739 if (((long) (sizeof (int))) < 0) 42740 { 42741 long i = longval (); 42742 if (i != ((long) (sizeof (int)))) 42743 exit (1); 42744 fprintf (f, "%ld\n", i); 42745 } 42746 else 42747 { 42748 unsigned long i = ulongval (); 42749 if (i != ((long) (sizeof (int)))) 42750 exit (1); 42751 fprintf (f, "%lu\n", i); 42752 } 42753 exit (ferror (f) || fclose (f) != 0); 42754 42755 ; 42756 return 0; 42757} 42758_ACEOF 42759rm -f conftest$ac_exeext 42760if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 42761 (eval $ac_link) 2>&5 42762 ac_status=$? 42763 echo "$as_me:$LINENO: \$? = $ac_status" >&5 42764 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 42765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 42766 (eval $ac_try) 2>&5 42767 ac_status=$? 42768 echo "$as_me:$LINENO: \$? = $ac_status" >&5 42769 (exit $ac_status); }; }; then 42770 ac_cv_sizeof_int=`cat conftest.val` 42771else 42772 echo "$as_me: program exited with status $ac_status" >&5 42773echo "$as_me: failed program was:" >&5 42774sed 's/^/| /' conftest.$ac_ext >&5 42775 42776( exit $ac_status ) 42777{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 42778See \`config.log' for more details." >&5 42779echo "$as_me: error: cannot compute sizeof (int), 77 42780See \`config.log' for more details." >&2;} 42781 { (exit 1); exit 1; }; } 42782fi 42783rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 42784fi 42785fi 42786rm -f conftest.val 42787else 42788 ac_cv_sizeof_int=0 42789fi 42790fi 42791echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 42792echo "${ECHO_T}$ac_cv_sizeof_int" >&6 42793cat >>confdefs.h <<_ACEOF 42794#define SIZEOF_INT $ac_cv_sizeof_int 42795_ACEOF 42796 42797 42798echo "$as_me:$LINENO: checking for long" >&5 42799echo $ECHO_N "checking for long... $ECHO_C" >&6 42800if test "${ac_cv_type_long+set}" = set; then 42801 echo $ECHO_N "(cached) $ECHO_C" >&6 42802else 42803 cat >conftest.$ac_ext <<_ACEOF 42804/* confdefs.h. */ 42805_ACEOF 42806cat confdefs.h >>conftest.$ac_ext 42807cat >>conftest.$ac_ext <<_ACEOF 42808/* end confdefs.h. */ 42809$ac_includes_default 42810int 42811main () 42812{ 42813if ((long *) 0) 42814 return 0; 42815if (sizeof (long)) 42816 return 0; 42817 ; 42818 return 0; 42819} 42820_ACEOF 42821rm -f conftest.$ac_objext 42822if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 42823 (eval $ac_compile) 2>conftest.er1 42824 ac_status=$? 42825 grep -v '^ *+' conftest.er1 >conftest.err 42826 rm -f conftest.er1 42827 cat conftest.err >&5 42828 echo "$as_me:$LINENO: \$? = $ac_status" >&5 42829 (exit $ac_status); } && 42830 { ac_try='test -z "$ac_c_werror_flag" 42831 || test ! -s conftest.err' 42832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 42833 (eval $ac_try) 2>&5 42834 ac_status=$? 42835 echo "$as_me:$LINENO: \$? = $ac_status" >&5 42836 (exit $ac_status); }; } && 42837 { ac_try='test -s conftest.$ac_objext' 42838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 42839 (eval $ac_try) 2>&5 42840 ac_status=$? 42841 echo "$as_me:$LINENO: \$? = $ac_status" >&5 42842 (exit $ac_status); }; }; then 42843 ac_cv_type_long=yes 42844else 42845 echo "$as_me: failed program was:" >&5 42846sed 's/^/| /' conftest.$ac_ext >&5 42847 42848ac_cv_type_long=no 42849fi 42850rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 42851fi 42852echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 42853echo "${ECHO_T}$ac_cv_type_long" >&6 42854 42855echo "$as_me:$LINENO: checking size of long" >&5 42856echo $ECHO_N "checking size of long... $ECHO_C" >&6 42857if test "${ac_cv_sizeof_long+set}" = set; then 42858 echo $ECHO_N "(cached) $ECHO_C" >&6 42859else 42860 if test "$ac_cv_type_long" = yes; then 42861 # The cast to unsigned long works around a bug in the HP C Compiler 42862 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 42863 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 42864 # This bug is HP SR number 8606223364. 42865 if test "$cross_compiling" = yes; then 42866 # Depending upon the size, compute the lo and hi bounds. 42867cat >conftest.$ac_ext <<_ACEOF 42868/* confdefs.h. */ 42869_ACEOF 42870cat confdefs.h >>conftest.$ac_ext 42871cat >>conftest.$ac_ext <<_ACEOF 42872/* end confdefs.h. */ 42873$ac_includes_default 42874int 42875main () 42876{ 42877static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; 42878test_array [0] = 0 42879 42880 ; 42881 return 0; 42882} 42883_ACEOF 42884rm -f conftest.$ac_objext 42885if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 42886 (eval $ac_compile) 2>conftest.er1 42887 ac_status=$? 42888 grep -v '^ *+' conftest.er1 >conftest.err 42889 rm -f conftest.er1 42890 cat conftest.err >&5 42891 echo "$as_me:$LINENO: \$? = $ac_status" >&5 42892 (exit $ac_status); } && 42893 { ac_try='test -z "$ac_c_werror_flag" 42894 || test ! -s conftest.err' 42895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 42896 (eval $ac_try) 2>&5 42897 ac_status=$? 42898 echo "$as_me:$LINENO: \$? = $ac_status" >&5 42899 (exit $ac_status); }; } && 42900 { ac_try='test -s conftest.$ac_objext' 42901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 42902 (eval $ac_try) 2>&5 42903 ac_status=$? 42904 echo "$as_me:$LINENO: \$? = $ac_status" >&5 42905 (exit $ac_status); }; }; then 42906 ac_lo=0 ac_mid=0 42907 while :; do 42908 cat >conftest.$ac_ext <<_ACEOF 42909/* confdefs.h. */ 42910_ACEOF 42911cat confdefs.h >>conftest.$ac_ext 42912cat >>conftest.$ac_ext <<_ACEOF 42913/* end confdefs.h. */ 42914$ac_includes_default 42915int 42916main () 42917{ 42918static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; 42919test_array [0] = 0 42920 42921 ; 42922 return 0; 42923} 42924_ACEOF 42925rm -f conftest.$ac_objext 42926if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 42927 (eval $ac_compile) 2>conftest.er1 42928 ac_status=$? 42929 grep -v '^ *+' conftest.er1 >conftest.err 42930 rm -f conftest.er1 42931 cat conftest.err >&5 42932 echo "$as_me:$LINENO: \$? = $ac_status" >&5 42933 (exit $ac_status); } && 42934 { ac_try='test -z "$ac_c_werror_flag" 42935 || test ! -s conftest.err' 42936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 42937 (eval $ac_try) 2>&5 42938 ac_status=$? 42939 echo "$as_me:$LINENO: \$? = $ac_status" >&5 42940 (exit $ac_status); }; } && 42941 { ac_try='test -s conftest.$ac_objext' 42942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 42943 (eval $ac_try) 2>&5 42944 ac_status=$? 42945 echo "$as_me:$LINENO: \$? = $ac_status" >&5 42946 (exit $ac_status); }; }; then 42947 ac_hi=$ac_mid; break 42948else 42949 echo "$as_me: failed program was:" >&5 42950sed 's/^/| /' conftest.$ac_ext >&5 42951 42952ac_lo=`expr $ac_mid + 1` 42953 if test $ac_lo -le $ac_mid; then 42954 ac_lo= ac_hi= 42955 break 42956 fi 42957 ac_mid=`expr 2 '*' $ac_mid + 1` 42958fi 42959rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 42960 done 42961else 42962 echo "$as_me: failed program was:" >&5 42963sed 's/^/| /' conftest.$ac_ext >&5 42964 42965cat >conftest.$ac_ext <<_ACEOF 42966/* confdefs.h. */ 42967_ACEOF 42968cat confdefs.h >>conftest.$ac_ext 42969cat >>conftest.$ac_ext <<_ACEOF 42970/* end confdefs.h. */ 42971$ac_includes_default 42972int 42973main () 42974{ 42975static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; 42976test_array [0] = 0 42977 42978 ; 42979 return 0; 42980} 42981_ACEOF 42982rm -f conftest.$ac_objext 42983if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 42984 (eval $ac_compile) 2>conftest.er1 42985 ac_status=$? 42986 grep -v '^ *+' conftest.er1 >conftest.err 42987 rm -f conftest.er1 42988 cat conftest.err >&5 42989 echo "$as_me:$LINENO: \$? = $ac_status" >&5 42990 (exit $ac_status); } && 42991 { ac_try='test -z "$ac_c_werror_flag" 42992 || test ! -s conftest.err' 42993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 42994 (eval $ac_try) 2>&5 42995 ac_status=$? 42996 echo "$as_me:$LINENO: \$? = $ac_status" >&5 42997 (exit $ac_status); }; } && 42998 { ac_try='test -s conftest.$ac_objext' 42999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 43000 (eval $ac_try) 2>&5 43001 ac_status=$? 43002 echo "$as_me:$LINENO: \$? = $ac_status" >&5 43003 (exit $ac_status); }; }; then 43004 ac_hi=-1 ac_mid=-1 43005 while :; do 43006 cat >conftest.$ac_ext <<_ACEOF 43007/* confdefs.h. */ 43008_ACEOF 43009cat confdefs.h >>conftest.$ac_ext 43010cat >>conftest.$ac_ext <<_ACEOF 43011/* end confdefs.h. */ 43012$ac_includes_default 43013int 43014main () 43015{ 43016static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; 43017test_array [0] = 0 43018 43019 ; 43020 return 0; 43021} 43022_ACEOF 43023rm -f conftest.$ac_objext 43024if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 43025 (eval $ac_compile) 2>conftest.er1 43026 ac_status=$? 43027 grep -v '^ *+' conftest.er1 >conftest.err 43028 rm -f conftest.er1 43029 cat conftest.err >&5 43030 echo "$as_me:$LINENO: \$? = $ac_status" >&5 43031 (exit $ac_status); } && 43032 { ac_try='test -z "$ac_c_werror_flag" 43033 || test ! -s conftest.err' 43034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 43035 (eval $ac_try) 2>&5 43036 ac_status=$? 43037 echo "$as_me:$LINENO: \$? = $ac_status" >&5 43038 (exit $ac_status); }; } && 43039 { ac_try='test -s conftest.$ac_objext' 43040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 43041 (eval $ac_try) 2>&5 43042 ac_status=$? 43043 echo "$as_me:$LINENO: \$? = $ac_status" >&5 43044 (exit $ac_status); }; }; then 43045 ac_lo=$ac_mid; break 43046else 43047 echo "$as_me: failed program was:" >&5 43048sed 's/^/| /' conftest.$ac_ext >&5 43049 43050ac_hi=`expr '(' $ac_mid ')' - 1` 43051 if test $ac_mid -le $ac_hi; then 43052 ac_lo= ac_hi= 43053 break 43054 fi 43055 ac_mid=`expr 2 '*' $ac_mid` 43056fi 43057rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 43058 done 43059else 43060 echo "$as_me: failed program was:" >&5 43061sed 's/^/| /' conftest.$ac_ext >&5 43062 43063ac_lo= ac_hi= 43064fi 43065rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 43066fi 43067rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 43068# Binary search between lo and hi bounds. 43069while test "x$ac_lo" != "x$ac_hi"; do 43070 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 43071 cat >conftest.$ac_ext <<_ACEOF 43072/* confdefs.h. */ 43073_ACEOF 43074cat confdefs.h >>conftest.$ac_ext 43075cat >>conftest.$ac_ext <<_ACEOF 43076/* end confdefs.h. */ 43077$ac_includes_default 43078int 43079main () 43080{ 43081static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; 43082test_array [0] = 0 43083 43084 ; 43085 return 0; 43086} 43087_ACEOF 43088rm -f conftest.$ac_objext 43089if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 43090 (eval $ac_compile) 2>conftest.er1 43091 ac_status=$? 43092 grep -v '^ *+' conftest.er1 >conftest.err 43093 rm -f conftest.er1 43094 cat conftest.err >&5 43095 echo "$as_me:$LINENO: \$? = $ac_status" >&5 43096 (exit $ac_status); } && 43097 { ac_try='test -z "$ac_c_werror_flag" 43098 || test ! -s conftest.err' 43099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 43100 (eval $ac_try) 2>&5 43101 ac_status=$? 43102 echo "$as_me:$LINENO: \$? = $ac_status" >&5 43103 (exit $ac_status); }; } && 43104 { ac_try='test -s conftest.$ac_objext' 43105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 43106 (eval $ac_try) 2>&5 43107 ac_status=$? 43108 echo "$as_me:$LINENO: \$? = $ac_status" >&5 43109 (exit $ac_status); }; }; then 43110 ac_hi=$ac_mid 43111else 43112 echo "$as_me: failed program was:" >&5 43113sed 's/^/| /' conftest.$ac_ext >&5 43114 43115ac_lo=`expr '(' $ac_mid ')' + 1` 43116fi 43117rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 43118done 43119case $ac_lo in 43120?*) ac_cv_sizeof_long=$ac_lo;; 43121'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 43122See \`config.log' for more details." >&5 43123echo "$as_me: error: cannot compute sizeof (long), 77 43124See \`config.log' for more details." >&2;} 43125 { (exit 1); exit 1; }; } ;; 43126esac 43127else 43128 if test "$cross_compiling" = yes; then 43129 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 43130See \`config.log' for more details." >&5 43131echo "$as_me: error: cannot run test program while cross compiling 43132See \`config.log' for more details." >&2;} 43133 { (exit 1); exit 1; }; } 43134else 43135 cat >conftest.$ac_ext <<_ACEOF 43136/* confdefs.h. */ 43137_ACEOF 43138cat confdefs.h >>conftest.$ac_ext 43139cat >>conftest.$ac_ext <<_ACEOF 43140/* end confdefs.h. */ 43141$ac_includes_default 43142long longval () { return (long) (sizeof (long)); } 43143unsigned long ulongval () { return (long) (sizeof (long)); } 43144#include <stdio.h> 43145#include <stdlib.h> 43146int 43147main () 43148{ 43149 43150 FILE *f = fopen ("conftest.val", "w"); 43151 if (! f) 43152 exit (1); 43153 if (((long) (sizeof (long))) < 0) 43154 { 43155 long i = longval (); 43156 if (i != ((long) (sizeof (long)))) 43157 exit (1); 43158 fprintf (f, "%ld\n", i); 43159 } 43160 else 43161 { 43162 unsigned long i = ulongval (); 43163 if (i != ((long) (sizeof (long)))) 43164 exit (1); 43165 fprintf (f, "%lu\n", i); 43166 } 43167 exit (ferror (f) || fclose (f) != 0); 43168 43169 ; 43170 return 0; 43171} 43172_ACEOF 43173rm -f conftest$ac_exeext 43174if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 43175 (eval $ac_link) 2>&5 43176 ac_status=$? 43177 echo "$as_me:$LINENO: \$? = $ac_status" >&5 43178 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 43179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 43180 (eval $ac_try) 2>&5 43181 ac_status=$? 43182 echo "$as_me:$LINENO: \$? = $ac_status" >&5 43183 (exit $ac_status); }; }; then 43184 ac_cv_sizeof_long=`cat conftest.val` 43185else 43186 echo "$as_me: program exited with status $ac_status" >&5 43187echo "$as_me: failed program was:" >&5 43188sed 's/^/| /' conftest.$ac_ext >&5 43189 43190( exit $ac_status ) 43191{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 43192See \`config.log' for more details." >&5 43193echo "$as_me: error: cannot compute sizeof (long), 77 43194See \`config.log' for more details." >&2;} 43195 { (exit 1); exit 1; }; } 43196fi 43197rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 43198fi 43199fi 43200rm -f conftest.val 43201else 43202 ac_cv_sizeof_long=0 43203fi 43204fi 43205echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 43206echo "${ECHO_T}$ac_cv_sizeof_long" >&6 43207cat >>confdefs.h <<_ACEOF 43208#define SIZEOF_LONG $ac_cv_sizeof_long 43209_ACEOF 43210 43211 43212 43213echo "$as_me:$LINENO: checking for s_char" >&5 43214echo $ECHO_N "checking for s_char... $ECHO_C" >&6 43215if test "${ac_cv_type_s_char+set}" = set; then 43216 echo $ECHO_N "(cached) $ECHO_C" >&6 43217else 43218 cat >conftest.$ac_ext <<_ACEOF 43219/* confdefs.h. */ 43220_ACEOF 43221cat confdefs.h >>conftest.$ac_ext 43222cat >>conftest.$ac_ext <<_ACEOF 43223/* end confdefs.h. */ 43224$ac_includes_default 43225int 43226main () 43227{ 43228if ((s_char *) 0) 43229 return 0; 43230if (sizeof (s_char)) 43231 return 0; 43232 ; 43233 return 0; 43234} 43235_ACEOF 43236rm -f conftest.$ac_objext 43237if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 43238 (eval $ac_compile) 2>conftest.er1 43239 ac_status=$? 43240 grep -v '^ *+' conftest.er1 >conftest.err 43241 rm -f conftest.er1 43242 cat conftest.err >&5 43243 echo "$as_me:$LINENO: \$? = $ac_status" >&5 43244 (exit $ac_status); } && 43245 { ac_try='test -z "$ac_c_werror_flag" 43246 || test ! -s conftest.err' 43247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 43248 (eval $ac_try) 2>&5 43249 ac_status=$? 43250 echo "$as_me:$LINENO: \$? = $ac_status" >&5 43251 (exit $ac_status); }; } && 43252 { ac_try='test -s conftest.$ac_objext' 43253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 43254 (eval $ac_try) 2>&5 43255 ac_status=$? 43256 echo "$as_me:$LINENO: \$? = $ac_status" >&5 43257 (exit $ac_status); }; }; then 43258 ac_cv_type_s_char=yes 43259else 43260 echo "$as_me: failed program was:" >&5 43261sed 's/^/| /' conftest.$ac_ext >&5 43262 43263ac_cv_type_s_char=no 43264fi 43265rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 43266fi 43267echo "$as_me:$LINENO: result: $ac_cv_type_s_char" >&5 43268echo "${ECHO_T}$ac_cv_type_s_char" >&6 43269if test $ac_cv_type_s_char = yes; then 43270 43271cat >>confdefs.h <<_ACEOF 43272#define HAVE_S_CHAR 1 43273_ACEOF 43274 43275 43276fi 43277 43278case "$ac_cv_c_char_unsigned$ac_cv_sizeof_signed_char$ac_cv_type_s_char" in 43279 *yes) 43280 # We have a typedef for s_char. Might as well believe it... 43281 ;; 43282 no0no) 43283 # We have signed chars, can't say 'signed char', no s_char typedef. 43284 43285cat >>confdefs.h <<\_ACEOF 43286#define NEED_S_CHAR_TYPEDEF 1 43287_ACEOF 43288 43289 ;; 43290 no1no) 43291 # We have signed chars, can say 'signed char', no s_char typedef. 43292 cat >>confdefs.h <<\_ACEOF 43293#define NEED_S_CHAR_TYPEDEF 1 43294_ACEOF 43295 43296 ;; 43297 yes0no) 43298 # We have unsigned chars, can't say 'signed char', no s_char typedef. 43299 { { echo "$as_me:$LINENO: error: No way to specify a signed character!" >&5 43300echo "$as_me: error: No way to specify a signed character!" >&2;} 43301 { (exit 1); exit 1; }; } 43302 ;; 43303 yes1no) 43304 # We have unsigned chars, can say 'signed char', no s_char typedef. 43305 cat >>confdefs.h <<\_ACEOF 43306#define NEED_S_CHAR_TYPEDEF 1 43307_ACEOF 43308 43309 ;; 43310esac 43311echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 43312echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6 43313if test "${ac_cv_type_uid_t+set}" = set; then 43314 echo $ECHO_N "(cached) $ECHO_C" >&6 43315else 43316 cat >conftest.$ac_ext <<_ACEOF 43317/* confdefs.h. */ 43318_ACEOF 43319cat confdefs.h >>conftest.$ac_ext 43320cat >>conftest.$ac_ext <<_ACEOF 43321/* end confdefs.h. */ 43322#include <sys/types.h> 43323 43324_ACEOF 43325if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 43326 $EGREP "uid_t" >/dev/null 2>&1; then 43327 ac_cv_type_uid_t=yes 43328else 43329 ac_cv_type_uid_t=no 43330fi 43331rm -f conftest* 43332 43333fi 43334echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 43335echo "${ECHO_T}$ac_cv_type_uid_t" >&6 43336if test $ac_cv_type_uid_t = no; then 43337 43338cat >>confdefs.h <<\_ACEOF 43339#define uid_t int 43340_ACEOF 43341 43342 43343cat >>confdefs.h <<\_ACEOF 43344#define gid_t int 43345_ACEOF 43346 43347fi 43348 43349 43350case "$host" in 43351 *-*-aix[45]*) 43352 # (prr) aix 4.1 doesn't have clock_settime, but in aix 4.3 it's a stub 43353 # (returning ENOSYS). I didn't check 4.2. If, in the future, 43354 # IBM pulls its thumbs out long enough to implement clock_settime, 43355 # this conditional will need to change. Maybe use AC_TRY_RUN 43356 # instead to try to set the time to itself and check errno. 43357 ;; 43358 *) 43359 43360for ac_func in clock_gettime clock_settime 43361do 43362as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 43363echo "$as_me:$LINENO: checking for $ac_func" >&5 43364echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 43365if eval "test \"\${$as_ac_var+set}\" = set"; then 43366 echo $ECHO_N "(cached) $ECHO_C" >&6 43367else 43368 cat >conftest.$ac_ext <<_ACEOF 43369/* confdefs.h. */ 43370_ACEOF 43371cat confdefs.h >>conftest.$ac_ext 43372cat >>conftest.$ac_ext <<_ACEOF 43373/* end confdefs.h. */ 43374/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 43375 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 43376#define $ac_func innocuous_$ac_func 43377 43378/* System header to define __stub macros and hopefully few prototypes, 43379 which can conflict with char $ac_func (); below. 43380 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 43381 <limits.h> exists even on freestanding compilers. */ 43382 43383#ifdef __STDC__ 43384# include <limits.h> 43385#else 43386# include <assert.h> 43387#endif 43388 43389#undef $ac_func 43390 43391/* Override any gcc2 internal prototype to avoid an error. */ 43392#ifdef __cplusplus 43393extern "C" 43394{ 43395#endif 43396/* We use char because int might match the return type of a gcc2 43397 builtin and then its argument prototype would still apply. */ 43398char $ac_func (); 43399/* The GNU C library defines this for functions which it implements 43400 to always fail with ENOSYS. Some functions are actually named 43401 something starting with __ and the normal name is an alias. */ 43402#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 43403choke me 43404#else 43405char (*f) () = $ac_func; 43406#endif 43407#ifdef __cplusplus 43408} 43409#endif 43410 43411int 43412main () 43413{ 43414return f != $ac_func; 43415 ; 43416 return 0; 43417} 43418_ACEOF 43419rm -f conftest.$ac_objext conftest$ac_exeext 43420if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 43421 (eval $ac_link) 2>conftest.er1 43422 ac_status=$? 43423 grep -v '^ *+' conftest.er1 >conftest.err 43424 rm -f conftest.er1 43425 cat conftest.err >&5 43426 echo "$as_me:$LINENO: \$? = $ac_status" >&5 43427 (exit $ac_status); } && 43428 { ac_try='test -z "$ac_c_werror_flag" 43429 || test ! -s conftest.err' 43430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 43431 (eval $ac_try) 2>&5 43432 ac_status=$? 43433 echo "$as_me:$LINENO: \$? = $ac_status" >&5 43434 (exit $ac_status); }; } && 43435 { ac_try='test -s conftest$ac_exeext' 43436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 43437 (eval $ac_try) 2>&5 43438 ac_status=$? 43439 echo "$as_me:$LINENO: \$? = $ac_status" >&5 43440 (exit $ac_status); }; }; then 43441 eval "$as_ac_var=yes" 43442else 43443 echo "$as_me: failed program was:" >&5 43444sed 's/^/| /' conftest.$ac_ext >&5 43445 43446eval "$as_ac_var=no" 43447fi 43448rm -f conftest.err conftest.$ac_objext \ 43449 conftest$ac_exeext conftest.$ac_ext 43450fi 43451echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 43452echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 43453if test `eval echo '${'$as_ac_var'}'` = yes; then 43454 cat >>confdefs.h <<_ACEOF 43455#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 43456_ACEOF 43457 43458fi 43459done 43460 43461 ;; 43462esac 43463 43464for ac_func in daemon 43465do 43466as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 43467echo "$as_me:$LINENO: checking for $ac_func" >&5 43468echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 43469if eval "test \"\${$as_ac_var+set}\" = set"; then 43470 echo $ECHO_N "(cached) $ECHO_C" >&6 43471else 43472 cat >conftest.$ac_ext <<_ACEOF 43473/* confdefs.h. */ 43474_ACEOF 43475cat confdefs.h >>conftest.$ac_ext 43476cat >>conftest.$ac_ext <<_ACEOF 43477/* end confdefs.h. */ 43478/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 43479 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 43480#define $ac_func innocuous_$ac_func 43481 43482/* System header to define __stub macros and hopefully few prototypes, 43483 which can conflict with char $ac_func (); below. 43484 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 43485 <limits.h> exists even on freestanding compilers. */ 43486 43487#ifdef __STDC__ 43488# include <limits.h> 43489#else 43490# include <assert.h> 43491#endif 43492 43493#undef $ac_func 43494 43495/* Override any gcc2 internal prototype to avoid an error. */ 43496#ifdef __cplusplus 43497extern "C" 43498{ 43499#endif 43500/* We use char because int might match the return type of a gcc2 43501 builtin and then its argument prototype would still apply. */ 43502char $ac_func (); 43503/* The GNU C library defines this for functions which it implements 43504 to always fail with ENOSYS. Some functions are actually named 43505 something starting with __ and the normal name is an alias. */ 43506#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 43507choke me 43508#else 43509char (*f) () = $ac_func; 43510#endif 43511#ifdef __cplusplus 43512} 43513#endif 43514 43515int 43516main () 43517{ 43518return f != $ac_func; 43519 ; 43520 return 0; 43521} 43522_ACEOF 43523rm -f conftest.$ac_objext conftest$ac_exeext 43524if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 43525 (eval $ac_link) 2>conftest.er1 43526 ac_status=$? 43527 grep -v '^ *+' conftest.er1 >conftest.err 43528 rm -f conftest.er1 43529 cat conftest.err >&5 43530 echo "$as_me:$LINENO: \$? = $ac_status" >&5 43531 (exit $ac_status); } && 43532 { ac_try='test -z "$ac_c_werror_flag" 43533 || test ! -s conftest.err' 43534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 43535 (eval $ac_try) 2>&5 43536 ac_status=$? 43537 echo "$as_me:$LINENO: \$? = $ac_status" >&5 43538 (exit $ac_status); }; } && 43539 { ac_try='test -s conftest$ac_exeext' 43540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 43541 (eval $ac_try) 2>&5 43542 ac_status=$? 43543 echo "$as_me:$LINENO: \$? = $ac_status" >&5 43544 (exit $ac_status); }; }; then 43545 eval "$as_ac_var=yes" 43546else 43547 echo "$as_me: failed program was:" >&5 43548sed 's/^/| /' conftest.$ac_ext >&5 43549 43550eval "$as_ac_var=no" 43551fi 43552rm -f conftest.err conftest.$ac_objext \ 43553 conftest$ac_exeext conftest.$ac_ext 43554fi 43555echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 43556echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 43557if test `eval echo '${'$as_ac_var'}'` = yes; then 43558 cat >>confdefs.h <<_ACEOF 43559#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 43560_ACEOF 43561 43562fi 43563done 43564 43565 43566for ac_func in finite 43567do 43568as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 43569echo "$as_me:$LINENO: checking for $ac_func" >&5 43570echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 43571if eval "test \"\${$as_ac_var+set}\" = set"; then 43572 echo $ECHO_N "(cached) $ECHO_C" >&6 43573else 43574 cat >conftest.$ac_ext <<_ACEOF 43575/* confdefs.h. */ 43576_ACEOF 43577cat confdefs.h >>conftest.$ac_ext 43578cat >>conftest.$ac_ext <<_ACEOF 43579/* end confdefs.h. */ 43580/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 43581 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 43582#define $ac_func innocuous_$ac_func 43583 43584/* System header to define __stub macros and hopefully few prototypes, 43585 which can conflict with char $ac_func (); below. 43586 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 43587 <limits.h> exists even on freestanding compilers. */ 43588 43589#ifdef __STDC__ 43590# include <limits.h> 43591#else 43592# include <assert.h> 43593#endif 43594 43595#undef $ac_func 43596 43597/* Override any gcc2 internal prototype to avoid an error. */ 43598#ifdef __cplusplus 43599extern "C" 43600{ 43601#endif 43602/* We use char because int might match the return type of a gcc2 43603 builtin and then its argument prototype would still apply. */ 43604char $ac_func (); 43605/* The GNU C library defines this for functions which it implements 43606 to always fail with ENOSYS. Some functions are actually named 43607 something starting with __ and the normal name is an alias. */ 43608#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 43609choke me 43610#else 43611char (*f) () = $ac_func; 43612#endif 43613#ifdef __cplusplus 43614} 43615#endif 43616 43617int 43618main () 43619{ 43620return f != $ac_func; 43621 ; 43622 return 0; 43623} 43624_ACEOF 43625rm -f conftest.$ac_objext conftest$ac_exeext 43626if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 43627 (eval $ac_link) 2>conftest.er1 43628 ac_status=$? 43629 grep -v '^ *+' conftest.er1 >conftest.err 43630 rm -f conftest.er1 43631 cat conftest.err >&5 43632 echo "$as_me:$LINENO: \$? = $ac_status" >&5 43633 (exit $ac_status); } && 43634 { ac_try='test -z "$ac_c_werror_flag" 43635 || test ! -s conftest.err' 43636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 43637 (eval $ac_try) 2>&5 43638 ac_status=$? 43639 echo "$as_me:$LINENO: \$? = $ac_status" >&5 43640 (exit $ac_status); }; } && 43641 { ac_try='test -s conftest$ac_exeext' 43642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 43643 (eval $ac_try) 2>&5 43644 ac_status=$? 43645 echo "$as_me:$LINENO: \$? = $ac_status" >&5 43646 (exit $ac_status); }; }; then 43647 eval "$as_ac_var=yes" 43648else 43649 echo "$as_me: failed program was:" >&5 43650sed 's/^/| /' conftest.$ac_ext >&5 43651 43652eval "$as_ac_var=no" 43653fi 43654rm -f conftest.err conftest.$ac_objext \ 43655 conftest$ac_exeext conftest.$ac_ext 43656fi 43657echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 43658echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 43659if test `eval echo '${'$as_ac_var'}'` = yes; then 43660 cat >>confdefs.h <<_ACEOF 43661#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 43662_ACEOF 43663 43664else 43665 43666for ac_func in isfinite 43667do 43668as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 43669echo "$as_me:$LINENO: checking for $ac_func" >&5 43670echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 43671if eval "test \"\${$as_ac_var+set}\" = set"; then 43672 echo $ECHO_N "(cached) $ECHO_C" >&6 43673else 43674 cat >conftest.$ac_ext <<_ACEOF 43675/* confdefs.h. */ 43676_ACEOF 43677cat confdefs.h >>conftest.$ac_ext 43678cat >>conftest.$ac_ext <<_ACEOF 43679/* end confdefs.h. */ 43680/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 43681 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 43682#define $ac_func innocuous_$ac_func 43683 43684/* System header to define __stub macros and hopefully few prototypes, 43685 which can conflict with char $ac_func (); below. 43686 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 43687 <limits.h> exists even on freestanding compilers. */ 43688 43689#ifdef __STDC__ 43690# include <limits.h> 43691#else 43692# include <assert.h> 43693#endif 43694 43695#undef $ac_func 43696 43697/* Override any gcc2 internal prototype to avoid an error. */ 43698#ifdef __cplusplus 43699extern "C" 43700{ 43701#endif 43702/* We use char because int might match the return type of a gcc2 43703 builtin and then its argument prototype would still apply. */ 43704char $ac_func (); 43705/* The GNU C library defines this for functions which it implements 43706 to always fail with ENOSYS. Some functions are actually named 43707 something starting with __ and the normal name is an alias. */ 43708#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 43709choke me 43710#else 43711char (*f) () = $ac_func; 43712#endif 43713#ifdef __cplusplus 43714} 43715#endif 43716 43717int 43718main () 43719{ 43720return f != $ac_func; 43721 ; 43722 return 0; 43723} 43724_ACEOF 43725rm -f conftest.$ac_objext conftest$ac_exeext 43726if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 43727 (eval $ac_link) 2>conftest.er1 43728 ac_status=$? 43729 grep -v '^ *+' conftest.er1 >conftest.err 43730 rm -f conftest.er1 43731 cat conftest.err >&5 43732 echo "$as_me:$LINENO: \$? = $ac_status" >&5 43733 (exit $ac_status); } && 43734 { ac_try='test -z "$ac_c_werror_flag" 43735 || test ! -s conftest.err' 43736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 43737 (eval $ac_try) 2>&5 43738 ac_status=$? 43739 echo "$as_me:$LINENO: \$? = $ac_status" >&5 43740 (exit $ac_status); }; } && 43741 { ac_try='test -s conftest$ac_exeext' 43742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 43743 (eval $ac_try) 2>&5 43744 ac_status=$? 43745 echo "$as_me:$LINENO: \$? = $ac_status" >&5 43746 (exit $ac_status); }; }; then 43747 eval "$as_ac_var=yes" 43748else 43749 echo "$as_me: failed program was:" >&5 43750sed 's/^/| /' conftest.$ac_ext >&5 43751 43752eval "$as_ac_var=no" 43753fi 43754rm -f conftest.err conftest.$ac_objext \ 43755 conftest$ac_exeext conftest.$ac_ext 43756fi 43757echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 43758echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 43759if test `eval echo '${'$as_ac_var'}'` = yes; then 43760 cat >>confdefs.h <<_ACEOF 43761#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 43762_ACEOF 43763 43764else 43765 echo "$as_me:$LINENO: checking for isfinite with <math.h>" >&5 43766echo $ECHO_N "checking for isfinite with <math.h>... $ECHO_C" >&6 43767 _libs=$LIBS 43768 LIBS="$LIBS -lm" 43769 cat >conftest.$ac_ext <<_ACEOF 43770/* confdefs.h. */ 43771_ACEOF 43772cat confdefs.h >>conftest.$ac_ext 43773cat >>conftest.$ac_ext <<_ACEOF 43774/* end confdefs.h. */ 43775#include <math.h> 43776int 43777main () 43778{ 43779float f = 0.0; isfinite(f) 43780 ; 43781 return 0; 43782} 43783_ACEOF 43784rm -f conftest.$ac_objext conftest$ac_exeext 43785if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 43786 (eval $ac_link) 2>conftest.er1 43787 ac_status=$? 43788 grep -v '^ *+' conftest.er1 >conftest.err 43789 rm -f conftest.er1 43790 cat conftest.err >&5 43791 echo "$as_me:$LINENO: \$? = $ac_status" >&5 43792 (exit $ac_status); } && 43793 { ac_try='test -z "$ac_c_werror_flag" 43794 || test ! -s conftest.err' 43795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 43796 (eval $ac_try) 2>&5 43797 ac_status=$? 43798 echo "$as_me:$LINENO: \$? = $ac_status" >&5 43799 (exit $ac_status); }; } && 43800 { ac_try='test -s conftest$ac_exeext' 43801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 43802 (eval $ac_try) 2>&5 43803 ac_status=$? 43804 echo "$as_me:$LINENO: \$? = $ac_status" >&5 43805 (exit $ac_status); }; }; then 43806 echo "$as_me:$LINENO: result: yes" >&5 43807echo "${ECHO_T}yes" >&6 43808 cat >>confdefs.h <<\_ACEOF 43809#define HAVE_ISFINITE 1 43810_ACEOF 43811 43812else 43813 echo "$as_me: failed program was:" >&5 43814sed 's/^/| /' conftest.$ac_ext >&5 43815 43816echo "$as_me:$LINENO: result: no" >&5 43817echo "${ECHO_T}no" >&6 43818fi 43819rm -f conftest.err conftest.$ac_objext \ 43820 conftest$ac_exeext conftest.$ac_ext 43821 LIBS=$_libs 43822fi 43823done 43824 43825fi 43826done 43827 43828 43829 43830 43831for ac_func in getbootfile getclock getdtablesize 43832do 43833as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 43834echo "$as_me:$LINENO: checking for $ac_func" >&5 43835echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 43836if eval "test \"\${$as_ac_var+set}\" = set"; then 43837 echo $ECHO_N "(cached) $ECHO_C" >&6 43838else 43839 cat >conftest.$ac_ext <<_ACEOF 43840/* confdefs.h. */ 43841_ACEOF 43842cat confdefs.h >>conftest.$ac_ext 43843cat >>conftest.$ac_ext <<_ACEOF 43844/* end confdefs.h. */ 43845/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 43846 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 43847#define $ac_func innocuous_$ac_func 43848 43849/* System header to define __stub macros and hopefully few prototypes, 43850 which can conflict with char $ac_func (); below. 43851 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 43852 <limits.h> exists even on freestanding compilers. */ 43853 43854#ifdef __STDC__ 43855# include <limits.h> 43856#else 43857# include <assert.h> 43858#endif 43859 43860#undef $ac_func 43861 43862/* Override any gcc2 internal prototype to avoid an error. */ 43863#ifdef __cplusplus 43864extern "C" 43865{ 43866#endif 43867/* We use char because int might match the return type of a gcc2 43868 builtin and then its argument prototype would still apply. */ 43869char $ac_func (); 43870/* The GNU C library defines this for functions which it implements 43871 to always fail with ENOSYS. Some functions are actually named 43872 something starting with __ and the normal name is an alias. */ 43873#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 43874choke me 43875#else 43876char (*f) () = $ac_func; 43877#endif 43878#ifdef __cplusplus 43879} 43880#endif 43881 43882int 43883main () 43884{ 43885return f != $ac_func; 43886 ; 43887 return 0; 43888} 43889_ACEOF 43890rm -f conftest.$ac_objext conftest$ac_exeext 43891if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 43892 (eval $ac_link) 2>conftest.er1 43893 ac_status=$? 43894 grep -v '^ *+' conftest.er1 >conftest.err 43895 rm -f conftest.er1 43896 cat conftest.err >&5 43897 echo "$as_me:$LINENO: \$? = $ac_status" >&5 43898 (exit $ac_status); } && 43899 { ac_try='test -z "$ac_c_werror_flag" 43900 || test ! -s conftest.err' 43901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 43902 (eval $ac_try) 2>&5 43903 ac_status=$? 43904 echo "$as_me:$LINENO: \$? = $ac_status" >&5 43905 (exit $ac_status); }; } && 43906 { ac_try='test -s conftest$ac_exeext' 43907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 43908 (eval $ac_try) 2>&5 43909 ac_status=$? 43910 echo "$as_me:$LINENO: \$? = $ac_status" >&5 43911 (exit $ac_status); }; }; then 43912 eval "$as_ac_var=yes" 43913else 43914 echo "$as_me: failed program was:" >&5 43915sed 's/^/| /' conftest.$ac_ext >&5 43916 43917eval "$as_ac_var=no" 43918fi 43919rm -f conftest.err conftest.$ac_objext \ 43920 conftest$ac_exeext conftest.$ac_ext 43921fi 43922echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 43923echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 43924if test `eval echo '${'$as_ac_var'}'` = yes; then 43925 cat >>confdefs.h <<_ACEOF 43926#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 43927_ACEOF 43928 43929fi 43930done 43931 43932 43933# Check whether --enable-getifaddrs or --disable-getifaddrs was given. 43934if test "${enable_getifaddrs+set}" = set; then 43935 enableval="$enable_getifaddrs" 43936 want_getifaddrs="$enableval" 43937else 43938 want_getifaddrs="yes" 43939fi; 43940 43941case $want_getifaddrs in 43942yes|glibc) 43943# 43944# Do we have getifaddrs() ? 43945# 43946case $host in 43947*-linux*) 43948 # Some recent versions of glibc support getifaddrs() which does not 43949 # provide AF_INET6 addresses while the function provided by the USAGI 43950 # project handles the AF_INET6 case correctly. We need to avoid 43951 # using the former but prefer the latter unless overridden by 43952 # --enable-getifaddrs=glibc. 43953 if test $want_getifaddrs = glibc 43954 then 43955 43956for ac_func in getifaddrs 43957do 43958as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 43959echo "$as_me:$LINENO: checking for $ac_func" >&5 43960echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 43961if eval "test \"\${$as_ac_var+set}\" = set"; then 43962 echo $ECHO_N "(cached) $ECHO_C" >&6 43963else 43964 cat >conftest.$ac_ext <<_ACEOF 43965/* confdefs.h. */ 43966_ACEOF 43967cat confdefs.h >>conftest.$ac_ext 43968cat >>conftest.$ac_ext <<_ACEOF 43969/* end confdefs.h. */ 43970/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 43971 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 43972#define $ac_func innocuous_$ac_func 43973 43974/* System header to define __stub macros and hopefully few prototypes, 43975 which can conflict with char $ac_func (); below. 43976 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 43977 <limits.h> exists even on freestanding compilers. */ 43978 43979#ifdef __STDC__ 43980# include <limits.h> 43981#else 43982# include <assert.h> 43983#endif 43984 43985#undef $ac_func 43986 43987/* Override any gcc2 internal prototype to avoid an error. */ 43988#ifdef __cplusplus 43989extern "C" 43990{ 43991#endif 43992/* We use char because int might match the return type of a gcc2 43993 builtin and then its argument prototype would still apply. */ 43994char $ac_func (); 43995/* The GNU C library defines this for functions which it implements 43996 to always fail with ENOSYS. Some functions are actually named 43997 something starting with __ and the normal name is an alias. */ 43998#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 43999choke me 44000#else 44001char (*f) () = $ac_func; 44002#endif 44003#ifdef __cplusplus 44004} 44005#endif 44006 44007int 44008main () 44009{ 44010return f != $ac_func; 44011 ; 44012 return 0; 44013} 44014_ACEOF 44015rm -f conftest.$ac_objext conftest$ac_exeext 44016if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 44017 (eval $ac_link) 2>conftest.er1 44018 ac_status=$? 44019 grep -v '^ *+' conftest.er1 >conftest.err 44020 rm -f conftest.er1 44021 cat conftest.err >&5 44022 echo "$as_me:$LINENO: \$? = $ac_status" >&5 44023 (exit $ac_status); } && 44024 { ac_try='test -z "$ac_c_werror_flag" 44025 || test ! -s conftest.err' 44026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 44027 (eval $ac_try) 2>&5 44028 ac_status=$? 44029 echo "$as_me:$LINENO: \$? = $ac_status" >&5 44030 (exit $ac_status); }; } && 44031 { ac_try='test -s conftest$ac_exeext' 44032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 44033 (eval $ac_try) 2>&5 44034 ac_status=$? 44035 echo "$as_me:$LINENO: \$? = $ac_status" >&5 44036 (exit $ac_status); }; }; then 44037 eval "$as_ac_var=yes" 44038else 44039 echo "$as_me: failed program was:" >&5 44040sed 's/^/| /' conftest.$ac_ext >&5 44041 44042eval "$as_ac_var=no" 44043fi 44044rm -f conftest.err conftest.$ac_objext \ 44045 conftest$ac_exeext conftest.$ac_ext 44046fi 44047echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 44048echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 44049if test `eval echo '${'$as_ac_var'}'` = yes; then 44050 cat >>confdefs.h <<_ACEOF 44051#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 44052_ACEOF 44053 44054fi 44055done 44056 44057 else 44058 save_LIBS="$LIBS" 44059 LIBS="-L/usr/local/v6/lib $LIBS" 44060 echo "$as_me:$LINENO: checking for getifaddrs in -linet6" >&5 44061echo $ECHO_N "checking for getifaddrs in -linet6... $ECHO_C" >&6 44062if test "${ac_cv_lib_inet6_getifaddrs+set}" = set; then 44063 echo $ECHO_N "(cached) $ECHO_C" >&6 44064else 44065 ac_check_lib_save_LIBS=$LIBS 44066LIBS="-linet6 $LIBS" 44067cat >conftest.$ac_ext <<_ACEOF 44068/* confdefs.h. */ 44069_ACEOF 44070cat confdefs.h >>conftest.$ac_ext 44071cat >>conftest.$ac_ext <<_ACEOF 44072/* end confdefs.h. */ 44073 44074/* Override any gcc2 internal prototype to avoid an error. */ 44075#ifdef __cplusplus 44076extern "C" 44077#endif 44078/* We use char because int might match the return type of a gcc2 44079 builtin and then its argument prototype would still apply. */ 44080char getifaddrs (); 44081int 44082main () 44083{ 44084getifaddrs (); 44085 ; 44086 return 0; 44087} 44088_ACEOF 44089rm -f conftest.$ac_objext conftest$ac_exeext 44090if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 44091 (eval $ac_link) 2>conftest.er1 44092 ac_status=$? 44093 grep -v '^ *+' conftest.er1 >conftest.err 44094 rm -f conftest.er1 44095 cat conftest.err >&5 44096 echo "$as_me:$LINENO: \$? = $ac_status" >&5 44097 (exit $ac_status); } && 44098 { ac_try='test -z "$ac_c_werror_flag" 44099 || test ! -s conftest.err' 44100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 44101 (eval $ac_try) 2>&5 44102 ac_status=$? 44103 echo "$as_me:$LINENO: \$? = $ac_status" >&5 44104 (exit $ac_status); }; } && 44105 { ac_try='test -s conftest$ac_exeext' 44106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 44107 (eval $ac_try) 2>&5 44108 ac_status=$? 44109 echo "$as_me:$LINENO: \$? = $ac_status" >&5 44110 (exit $ac_status); }; }; then 44111 ac_cv_lib_inet6_getifaddrs=yes 44112else 44113 echo "$as_me: failed program was:" >&5 44114sed 's/^/| /' conftest.$ac_ext >&5 44115 44116ac_cv_lib_inet6_getifaddrs=no 44117fi 44118rm -f conftest.err conftest.$ac_objext \ 44119 conftest$ac_exeext conftest.$ac_ext 44120LIBS=$ac_check_lib_save_LIBS 44121fi 44122echo "$as_me:$LINENO: result: $ac_cv_lib_inet6_getifaddrs" >&5 44123echo "${ECHO_T}$ac_cv_lib_inet6_getifaddrs" >&6 44124if test $ac_cv_lib_inet6_getifaddrs = yes; then 44125 LIBS="$LIBS -linet6" 44126 cat >>confdefs.h <<\_ACEOF 44127#define HAVE_GETIFADDRS 1 44128_ACEOF 44129 44130else 44131 LIBS=${save_LIBS} 44132fi 44133 44134 fi 44135 ;; 44136*) 44137 44138for ac_func in getifaddrs 44139do 44140as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 44141echo "$as_me:$LINENO: checking for $ac_func" >&5 44142echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 44143if eval "test \"\${$as_ac_var+set}\" = set"; then 44144 echo $ECHO_N "(cached) $ECHO_C" >&6 44145else 44146 cat >conftest.$ac_ext <<_ACEOF 44147/* confdefs.h. */ 44148_ACEOF 44149cat confdefs.h >>conftest.$ac_ext 44150cat >>conftest.$ac_ext <<_ACEOF 44151/* end confdefs.h. */ 44152/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 44153 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 44154#define $ac_func innocuous_$ac_func 44155 44156/* System header to define __stub macros and hopefully few prototypes, 44157 which can conflict with char $ac_func (); below. 44158 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 44159 <limits.h> exists even on freestanding compilers. */ 44160 44161#ifdef __STDC__ 44162# include <limits.h> 44163#else 44164# include <assert.h> 44165#endif 44166 44167#undef $ac_func 44168 44169/* Override any gcc2 internal prototype to avoid an error. */ 44170#ifdef __cplusplus 44171extern "C" 44172{ 44173#endif 44174/* We use char because int might match the return type of a gcc2 44175 builtin and then its argument prototype would still apply. */ 44176char $ac_func (); 44177/* The GNU C library defines this for functions which it implements 44178 to always fail with ENOSYS. Some functions are actually named 44179 something starting with __ and the normal name is an alias. */ 44180#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 44181choke me 44182#else 44183char (*f) () = $ac_func; 44184#endif 44185#ifdef __cplusplus 44186} 44187#endif 44188 44189int 44190main () 44191{ 44192return f != $ac_func; 44193 ; 44194 return 0; 44195} 44196_ACEOF 44197rm -f conftest.$ac_objext conftest$ac_exeext 44198if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 44199 (eval $ac_link) 2>conftest.er1 44200 ac_status=$? 44201 grep -v '^ *+' conftest.er1 >conftest.err 44202 rm -f conftest.er1 44203 cat conftest.err >&5 44204 echo "$as_me:$LINENO: \$? = $ac_status" >&5 44205 (exit $ac_status); } && 44206 { ac_try='test -z "$ac_c_werror_flag" 44207 || test ! -s conftest.err' 44208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 44209 (eval $ac_try) 2>&5 44210 ac_status=$? 44211 echo "$as_me:$LINENO: \$? = $ac_status" >&5 44212 (exit $ac_status); }; } && 44213 { ac_try='test -s conftest$ac_exeext' 44214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 44215 (eval $ac_try) 2>&5 44216 ac_status=$? 44217 echo "$as_me:$LINENO: \$? = $ac_status" >&5 44218 (exit $ac_status); }; }; then 44219 eval "$as_ac_var=yes" 44220else 44221 echo "$as_me: failed program was:" >&5 44222sed 's/^/| /' conftest.$ac_ext >&5 44223 44224eval "$as_ac_var=no" 44225fi 44226rm -f conftest.err conftest.$ac_objext \ 44227 conftest$ac_exeext conftest.$ac_ext 44228fi 44229echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 44230echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 44231if test `eval echo '${'$as_ac_var'}'` = yes; then 44232 cat >>confdefs.h <<_ACEOF 44233#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 44234_ACEOF 44235 44236fi 44237done 44238 44239 ;; 44240esac 44241;; 44242no) 44243;; 44244esac 44245 44246echo "$as_me:$LINENO: checking type of socklen arg for getsockname()" >&5 44247echo $ECHO_N "checking type of socklen arg for getsockname()... $ECHO_C" >&6 44248if test "${ac_cv_func_getsockname_arg2+set}" = set; then 44249 echo $ECHO_N "(cached) $ECHO_C" >&6 44250else 44251 if test "${ac_cv_func_getsockname_socklen_type+set}" = set; then 44252 echo $ECHO_N "(cached) $ECHO_C" >&6 44253else 44254 for ac_cv_func_getsockname_arg2 in 'struct sockaddr *' 'void *'; do 44255 for ac_cv_func_getsockname_socklen_type in 'socklen_t' 'size_t' 'unsigned int' 'int'; do 44256 cat >conftest.$ac_ext <<_ACEOF 44257/* confdefs.h. */ 44258_ACEOF 44259cat confdefs.h >>conftest.$ac_ext 44260cat >>conftest.$ac_ext <<_ACEOF 44261/* end confdefs.h. */ 44262#ifdef HAVE_SYS_TYPES_H 44263#include <sys/types.h> 44264#endif 44265#ifdef HAVE_SYS_SOCKET_H 44266#include <sys/socket.h> 44267#endif 44268extern getsockname (int, $ac_cv_func_getsockname_arg2, $ac_cv_func_getsockname_socklen_type *); 44269int 44270main () 44271{ 44272 44273 ; 44274 return 0; 44275} 44276_ACEOF 44277rm -f conftest.$ac_objext 44278if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 44279 (eval $ac_compile) 2>conftest.er1 44280 ac_status=$? 44281 grep -v '^ *+' conftest.er1 >conftest.err 44282 rm -f conftest.er1 44283 cat conftest.err >&5 44284 echo "$as_me:$LINENO: \$? = $ac_status" >&5 44285 (exit $ac_status); } && 44286 { ac_try='test -z "$ac_c_werror_flag" 44287 || test ! -s conftest.err' 44288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 44289 (eval $ac_try) 2>&5 44290 ac_status=$? 44291 echo "$as_me:$LINENO: \$? = $ac_status" >&5 44292 (exit $ac_status); }; } && 44293 { ac_try='test -s conftest.$ac_objext' 44294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 44295 (eval $ac_try) 2>&5 44296 ac_status=$? 44297 echo "$as_me:$LINENO: \$? = $ac_status" >&5 44298 (exit $ac_status); }; }; then 44299 ac_not_found=no ; break 2 44300else 44301 echo "$as_me: failed program was:" >&5 44302sed 's/^/| /' conftest.$ac_ext >&5 44303 44304ac_not_found=yes 44305fi 44306rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 44307 done 44308 done 44309 44310fi 44311 44312fi 44313if test "$ac_not_found" = yes; then 44314 ac_cv_func_getsockname_socklen_type='socklen_t' 44315fi 44316echo "$as_me:$LINENO: result: $ac_cv_func_getsockname_socklen_type" >&5 44317echo "${ECHO_T}$ac_cv_func_getsockname_socklen_type" >&6 44318 44319cat >>confdefs.h <<_ACEOF 44320#define GETSOCKNAME_SOCKLEN_TYPE $ac_cv_func_getsockname_socklen_type 44321_ACEOF 44322 44323 44324 44325for ac_func in getrusage 44326do 44327as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 44328echo "$as_me:$LINENO: checking for $ac_func" >&5 44329echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 44330if eval "test \"\${$as_ac_var+set}\" = set"; then 44331 echo $ECHO_N "(cached) $ECHO_C" >&6 44332else 44333 cat >conftest.$ac_ext <<_ACEOF 44334/* confdefs.h. */ 44335_ACEOF 44336cat confdefs.h >>conftest.$ac_ext 44337cat >>conftest.$ac_ext <<_ACEOF 44338/* end confdefs.h. */ 44339/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 44340 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 44341#define $ac_func innocuous_$ac_func 44342 44343/* System header to define __stub macros and hopefully few prototypes, 44344 which can conflict with char $ac_func (); below. 44345 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 44346 <limits.h> exists even on freestanding compilers. */ 44347 44348#ifdef __STDC__ 44349# include <limits.h> 44350#else 44351# include <assert.h> 44352#endif 44353 44354#undef $ac_func 44355 44356/* Override any gcc2 internal prototype to avoid an error. */ 44357#ifdef __cplusplus 44358extern "C" 44359{ 44360#endif 44361/* We use char because int might match the return type of a gcc2 44362 builtin and then its argument prototype would still apply. */ 44363char $ac_func (); 44364/* The GNU C library defines this for functions which it implements 44365 to always fail with ENOSYS. Some functions are actually named 44366 something starting with __ and the normal name is an alias. */ 44367#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 44368choke me 44369#else 44370char (*f) () = $ac_func; 44371#endif 44372#ifdef __cplusplus 44373} 44374#endif 44375 44376int 44377main () 44378{ 44379return f != $ac_func; 44380 ; 44381 return 0; 44382} 44383_ACEOF 44384rm -f conftest.$ac_objext conftest$ac_exeext 44385if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 44386 (eval $ac_link) 2>conftest.er1 44387 ac_status=$? 44388 grep -v '^ *+' conftest.er1 >conftest.err 44389 rm -f conftest.er1 44390 cat conftest.err >&5 44391 echo "$as_me:$LINENO: \$? = $ac_status" >&5 44392 (exit $ac_status); } && 44393 { ac_try='test -z "$ac_c_werror_flag" 44394 || test ! -s conftest.err' 44395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 44396 (eval $ac_try) 2>&5 44397 ac_status=$? 44398 echo "$as_me:$LINENO: \$? = $ac_status" >&5 44399 (exit $ac_status); }; } && 44400 { ac_try='test -s conftest$ac_exeext' 44401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 44402 (eval $ac_try) 2>&5 44403 ac_status=$? 44404 echo "$as_me:$LINENO: \$? = $ac_status" >&5 44405 (exit $ac_status); }; }; then 44406 eval "$as_ac_var=yes" 44407else 44408 echo "$as_me: failed program was:" >&5 44409sed 's/^/| /' conftest.$ac_ext >&5 44410 44411eval "$as_ac_var=no" 44412fi 44413rm -f conftest.err conftest.$ac_objext \ 44414 conftest$ac_exeext conftest.$ac_ext 44415fi 44416echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 44417echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 44418if test `eval echo '${'$as_ac_var'}'` = yes; then 44419 cat >>confdefs.h <<_ACEOF 44420#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 44421_ACEOF 44422 44423fi 44424done 44425 44426echo "$as_me:$LINENO: checking for gettimeofday" >&5 44427echo $ECHO_N "checking for gettimeofday... $ECHO_C" >&6 44428if test "${ac_cv_func_gettimeofday+set}" = set; then 44429 echo $ECHO_N "(cached) $ECHO_C" >&6 44430else 44431 cat >conftest.$ac_ext <<_ACEOF 44432/* confdefs.h. */ 44433_ACEOF 44434cat confdefs.h >>conftest.$ac_ext 44435cat >>conftest.$ac_ext <<_ACEOF 44436/* end confdefs.h. */ 44437/* Define gettimeofday to an innocuous variant, in case <limits.h> declares gettimeofday. 44438 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 44439#define gettimeofday innocuous_gettimeofday 44440 44441/* System header to define __stub macros and hopefully few prototypes, 44442 which can conflict with char gettimeofday (); below. 44443 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 44444 <limits.h> exists even on freestanding compilers. */ 44445 44446#ifdef __STDC__ 44447# include <limits.h> 44448#else 44449# include <assert.h> 44450#endif 44451 44452#undef gettimeofday 44453 44454/* Override any gcc2 internal prototype to avoid an error. */ 44455#ifdef __cplusplus 44456extern "C" 44457{ 44458#endif 44459/* We use char because int might match the return type of a gcc2 44460 builtin and then its argument prototype would still apply. */ 44461char gettimeofday (); 44462/* The GNU C library defines this for functions which it implements 44463 to always fail with ENOSYS. Some functions are actually named 44464 something starting with __ and the normal name is an alias. */ 44465#if defined (__stub_gettimeofday) || defined (__stub___gettimeofday) 44466choke me 44467#else 44468char (*f) () = gettimeofday; 44469#endif 44470#ifdef __cplusplus 44471} 44472#endif 44473 44474int 44475main () 44476{ 44477return f != gettimeofday; 44478 ; 44479 return 0; 44480} 44481_ACEOF 44482rm -f conftest.$ac_objext conftest$ac_exeext 44483if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 44484 (eval $ac_link) 2>conftest.er1 44485 ac_status=$? 44486 grep -v '^ *+' conftest.er1 >conftest.err 44487 rm -f conftest.er1 44488 cat conftest.err >&5 44489 echo "$as_me:$LINENO: \$? = $ac_status" >&5 44490 (exit $ac_status); } && 44491 { ac_try='test -z "$ac_c_werror_flag" 44492 || test ! -s conftest.err' 44493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 44494 (eval $ac_try) 2>&5 44495 ac_status=$? 44496 echo "$as_me:$LINENO: \$? = $ac_status" >&5 44497 (exit $ac_status); }; } && 44498 { ac_try='test -s conftest$ac_exeext' 44499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 44500 (eval $ac_try) 2>&5 44501 ac_status=$? 44502 echo "$as_me:$LINENO: \$? = $ac_status" >&5 44503 (exit $ac_status); }; }; then 44504 ac_cv_func_gettimeofday=yes 44505else 44506 echo "$as_me: failed program was:" >&5 44507sed 's/^/| /' conftest.$ac_ext >&5 44508 44509ac_cv_func_gettimeofday=no 44510fi 44511rm -f conftest.err conftest.$ac_objext \ 44512 conftest$ac_exeext conftest.$ac_ext 44513fi 44514echo "$as_me:$LINENO: result: $ac_cv_func_gettimeofday" >&5 44515echo "${ECHO_T}$ac_cv_func_gettimeofday" >&6 44516if test $ac_cv_func_gettimeofday = yes; then 44517 : 44518else 44519 44520case "$host" in 44521 *-*-mpeix*) ac_cv_func_gettimeofday=yes 44522 ;; 44523esac 44524fi 44525 44526case "$host" in 44527 *-pc-cygwin*) 44528 ;; 44529 *) 44530for ac_func in getuid 44531do 44532as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 44533echo "$as_me:$LINENO: checking for $ac_func" >&5 44534echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 44535if eval "test \"\${$as_ac_var+set}\" = set"; then 44536 echo $ECHO_N "(cached) $ECHO_C" >&6 44537else 44538 cat >conftest.$ac_ext <<_ACEOF 44539/* confdefs.h. */ 44540_ACEOF 44541cat confdefs.h >>conftest.$ac_ext 44542cat >>conftest.$ac_ext <<_ACEOF 44543/* end confdefs.h. */ 44544/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 44545 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 44546#define $ac_func innocuous_$ac_func 44547 44548/* System header to define __stub macros and hopefully few prototypes, 44549 which can conflict with char $ac_func (); below. 44550 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 44551 <limits.h> exists even on freestanding compilers. */ 44552 44553#ifdef __STDC__ 44554# include <limits.h> 44555#else 44556# include <assert.h> 44557#endif 44558 44559#undef $ac_func 44560 44561/* Override any gcc2 internal prototype to avoid an error. */ 44562#ifdef __cplusplus 44563extern "C" 44564{ 44565#endif 44566/* We use char because int might match the return type of a gcc2 44567 builtin and then its argument prototype would still apply. */ 44568char $ac_func (); 44569/* The GNU C library defines this for functions which it implements 44570 to always fail with ENOSYS. Some functions are actually named 44571 something starting with __ and the normal name is an alias. */ 44572#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 44573choke me 44574#else 44575char (*f) () = $ac_func; 44576#endif 44577#ifdef __cplusplus 44578} 44579#endif 44580 44581int 44582main () 44583{ 44584return f != $ac_func; 44585 ; 44586 return 0; 44587} 44588_ACEOF 44589rm -f conftest.$ac_objext conftest$ac_exeext 44590if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 44591 (eval $ac_link) 2>conftest.er1 44592 ac_status=$? 44593 grep -v '^ *+' conftest.er1 >conftest.err 44594 rm -f conftest.er1 44595 cat conftest.err >&5 44596 echo "$as_me:$LINENO: \$? = $ac_status" >&5 44597 (exit $ac_status); } && 44598 { ac_try='test -z "$ac_c_werror_flag" 44599 || test ! -s conftest.err' 44600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 44601 (eval $ac_try) 2>&5 44602 ac_status=$? 44603 echo "$as_me:$LINENO: \$? = $ac_status" >&5 44604 (exit $ac_status); }; } && 44605 { ac_try='test -s conftest$ac_exeext' 44606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 44607 (eval $ac_try) 2>&5 44608 ac_status=$? 44609 echo "$as_me:$LINENO: \$? = $ac_status" >&5 44610 (exit $ac_status); }; }; then 44611 eval "$as_ac_var=yes" 44612else 44613 echo "$as_me: failed program was:" >&5 44614sed 's/^/| /' conftest.$ac_ext >&5 44615 44616eval "$as_ac_var=no" 44617fi 44618rm -f conftest.err conftest.$ac_objext \ 44619 conftest$ac_exeext conftest.$ac_ext 44620fi 44621echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 44622echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 44623if test `eval echo '${'$as_ac_var'}'` = yes; then 44624 cat >>confdefs.h <<_ACEOF 44625#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 44626_ACEOF 44627 44628fi 44629done 44630 44631 ;; 44632esac 44633 44634for ac_func in hstrerror 44635do 44636as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 44637echo "$as_me:$LINENO: checking for $ac_func" >&5 44638echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 44639if eval "test \"\${$as_ac_var+set}\" = set"; then 44640 echo $ECHO_N "(cached) $ECHO_C" >&6 44641else 44642 cat >conftest.$ac_ext <<_ACEOF 44643/* confdefs.h. */ 44644_ACEOF 44645cat confdefs.h >>conftest.$ac_ext 44646cat >>conftest.$ac_ext <<_ACEOF 44647/* end confdefs.h. */ 44648/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 44649 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 44650#define $ac_func innocuous_$ac_func 44651 44652/* System header to define __stub macros and hopefully few prototypes, 44653 which can conflict with char $ac_func (); below. 44654 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 44655 <limits.h> exists even on freestanding compilers. */ 44656 44657#ifdef __STDC__ 44658# include <limits.h> 44659#else 44660# include <assert.h> 44661#endif 44662 44663#undef $ac_func 44664 44665/* Override any gcc2 internal prototype to avoid an error. */ 44666#ifdef __cplusplus 44667extern "C" 44668{ 44669#endif 44670/* We use char because int might match the return type of a gcc2 44671 builtin and then its argument prototype would still apply. */ 44672char $ac_func (); 44673/* The GNU C library defines this for functions which it implements 44674 to always fail with ENOSYS. Some functions are actually named 44675 something starting with __ and the normal name is an alias. */ 44676#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 44677choke me 44678#else 44679char (*f) () = $ac_func; 44680#endif 44681#ifdef __cplusplus 44682} 44683#endif 44684 44685int 44686main () 44687{ 44688return f != $ac_func; 44689 ; 44690 return 0; 44691} 44692_ACEOF 44693rm -f conftest.$ac_objext conftest$ac_exeext 44694if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 44695 (eval $ac_link) 2>conftest.er1 44696 ac_status=$? 44697 grep -v '^ *+' conftest.er1 >conftest.err 44698 rm -f conftest.er1 44699 cat conftest.err >&5 44700 echo "$as_me:$LINENO: \$? = $ac_status" >&5 44701 (exit $ac_status); } && 44702 { ac_try='test -z "$ac_c_werror_flag" 44703 || test ! -s conftest.err' 44704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 44705 (eval $ac_try) 2>&5 44706 ac_status=$? 44707 echo "$as_me:$LINENO: \$? = $ac_status" >&5 44708 (exit $ac_status); }; } && 44709 { ac_try='test -s conftest$ac_exeext' 44710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 44711 (eval $ac_try) 2>&5 44712 ac_status=$? 44713 echo "$as_me:$LINENO: \$? = $ac_status" >&5 44714 (exit $ac_status); }; }; then 44715 eval "$as_ac_var=yes" 44716else 44717 echo "$as_me: failed program was:" >&5 44718sed 's/^/| /' conftest.$ac_ext >&5 44719 44720eval "$as_ac_var=no" 44721fi 44722rm -f conftest.err conftest.$ac_objext \ 44723 conftest$ac_exeext conftest.$ac_ext 44724fi 44725echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 44726echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 44727if test `eval echo '${'$as_ac_var'}'` = yes; then 44728 cat >>confdefs.h <<_ACEOF 44729#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 44730_ACEOF 44731 44732fi 44733done 44734 44735 44736# 44737# Check for if_nametoindex() for IPv6 scoped addresses support 44738# 44739echo "$as_me:$LINENO: checking for if_nametoindex" >&5 44740echo $ECHO_N "checking for if_nametoindex... $ECHO_C" >&6 44741if test "${ac_cv_func_if_nametoindex+set}" = set; then 44742 echo $ECHO_N "(cached) $ECHO_C" >&6 44743else 44744 cat >conftest.$ac_ext <<_ACEOF 44745/* confdefs.h. */ 44746_ACEOF 44747cat confdefs.h >>conftest.$ac_ext 44748cat >>conftest.$ac_ext <<_ACEOF 44749/* end confdefs.h. */ 44750/* Define if_nametoindex to an innocuous variant, in case <limits.h> declares if_nametoindex. 44751 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 44752#define if_nametoindex innocuous_if_nametoindex 44753 44754/* System header to define __stub macros and hopefully few prototypes, 44755 which can conflict with char if_nametoindex (); below. 44756 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 44757 <limits.h> exists even on freestanding compilers. */ 44758 44759#ifdef __STDC__ 44760# include <limits.h> 44761#else 44762# include <assert.h> 44763#endif 44764 44765#undef if_nametoindex 44766 44767/* Override any gcc2 internal prototype to avoid an error. */ 44768#ifdef __cplusplus 44769extern "C" 44770{ 44771#endif 44772/* We use char because int might match the return type of a gcc2 44773 builtin and then its argument prototype would still apply. */ 44774char if_nametoindex (); 44775/* The GNU C library defines this for functions which it implements 44776 to always fail with ENOSYS. Some functions are actually named 44777 something starting with __ and the normal name is an alias. */ 44778#if defined (__stub_if_nametoindex) || defined (__stub___if_nametoindex) 44779choke me 44780#else 44781char (*f) () = if_nametoindex; 44782#endif 44783#ifdef __cplusplus 44784} 44785#endif 44786 44787int 44788main () 44789{ 44790return f != if_nametoindex; 44791 ; 44792 return 0; 44793} 44794_ACEOF 44795rm -f conftest.$ac_objext conftest$ac_exeext 44796if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 44797 (eval $ac_link) 2>conftest.er1 44798 ac_status=$? 44799 grep -v '^ *+' conftest.er1 >conftest.err 44800 rm -f conftest.er1 44801 cat conftest.err >&5 44802 echo "$as_me:$LINENO: \$? = $ac_status" >&5 44803 (exit $ac_status); } && 44804 { ac_try='test -z "$ac_c_werror_flag" 44805 || test ! -s conftest.err' 44806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 44807 (eval $ac_try) 2>&5 44808 ac_status=$? 44809 echo "$as_me:$LINENO: \$? = $ac_status" >&5 44810 (exit $ac_status); }; } && 44811 { ac_try='test -s conftest$ac_exeext' 44812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 44813 (eval $ac_try) 2>&5 44814 ac_status=$? 44815 echo "$as_me:$LINENO: \$? = $ac_status" >&5 44816 (exit $ac_status); }; }; then 44817 ac_cv_func_if_nametoindex=yes 44818else 44819 echo "$as_me: failed program was:" >&5 44820sed 's/^/| /' conftest.$ac_ext >&5 44821 44822ac_cv_func_if_nametoindex=no 44823fi 44824rm -f conftest.err conftest.$ac_objext \ 44825 conftest$ac_exeext conftest.$ac_ext 44826fi 44827echo "$as_me:$LINENO: result: $ac_cv_func_if_nametoindex" >&5 44828echo "${ECHO_T}$ac_cv_func_if_nametoindex" >&6 44829if test $ac_cv_func_if_nametoindex = yes; then 44830 ac_cv_have_if_nametoindex=yes 44831else 44832 ac_cv_have_if_nametoindex=no 44833fi 44834 44835case $ac_cv_have_if_nametoindex in 44836 no) 44837 case "$host" in 44838 *-hp-hpux*) 44839 echo "$as_me:$LINENO: checking for if_nametoindex in -lipv6" >&5 44840echo $ECHO_N "checking for if_nametoindex in -lipv6... $ECHO_C" >&6 44841if test "${ac_cv_lib_ipv6_if_nametoindex+set}" = set; then 44842 echo $ECHO_N "(cached) $ECHO_C" >&6 44843else 44844 ac_check_lib_save_LIBS=$LIBS 44845LIBS="-lipv6 $LIBS" 44846cat >conftest.$ac_ext <<_ACEOF 44847/* confdefs.h. */ 44848_ACEOF 44849cat confdefs.h >>conftest.$ac_ext 44850cat >>conftest.$ac_ext <<_ACEOF 44851/* end confdefs.h. */ 44852 44853/* Override any gcc2 internal prototype to avoid an error. */ 44854#ifdef __cplusplus 44855extern "C" 44856#endif 44857/* We use char because int might match the return type of a gcc2 44858 builtin and then its argument prototype would still apply. */ 44859char if_nametoindex (); 44860int 44861main () 44862{ 44863if_nametoindex (); 44864 ; 44865 return 0; 44866} 44867_ACEOF 44868rm -f conftest.$ac_objext conftest$ac_exeext 44869if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 44870 (eval $ac_link) 2>conftest.er1 44871 ac_status=$? 44872 grep -v '^ *+' conftest.er1 >conftest.err 44873 rm -f conftest.er1 44874 cat conftest.err >&5 44875 echo "$as_me:$LINENO: \$? = $ac_status" >&5 44876 (exit $ac_status); } && 44877 { ac_try='test -z "$ac_c_werror_flag" 44878 || test ! -s conftest.err' 44879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 44880 (eval $ac_try) 2>&5 44881 ac_status=$? 44882 echo "$as_me:$LINENO: \$? = $ac_status" >&5 44883 (exit $ac_status); }; } && 44884 { ac_try='test -s conftest$ac_exeext' 44885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 44886 (eval $ac_try) 2>&5 44887 ac_status=$? 44888 echo "$as_me:$LINENO: \$? = $ac_status" >&5 44889 (exit $ac_status); }; }; then 44890 ac_cv_lib_ipv6_if_nametoindex=yes 44891else 44892 echo "$as_me: failed program was:" >&5 44893sed 's/^/| /' conftest.$ac_ext >&5 44894 44895ac_cv_lib_ipv6_if_nametoindex=no 44896fi 44897rm -f conftest.err conftest.$ac_objext \ 44898 conftest$ac_exeext conftest.$ac_ext 44899LIBS=$ac_check_lib_save_LIBS 44900fi 44901echo "$as_me:$LINENO: result: $ac_cv_lib_ipv6_if_nametoindex" >&5 44902echo "${ECHO_T}$ac_cv_lib_ipv6_if_nametoindex" >&6 44903if test $ac_cv_lib_ipv6_if_nametoindex = yes; then 44904 ac_cv_have_if_nametoindex=yes 44905 LIBS="-lipv6 $LIBS" 44906fi 44907 44908 ;; 44909 esac 44910esac 44911case $ac_cv_have_if_nametoindex in 44912 yes) 44913 44914cat >>confdefs.h <<\_ACEOF 44915#define ISC_PLATFORM_HAVEIFNAMETOINDEX 1 44916_ACEOF 44917 44918 ;; 44919esac 44920 44921echo "$as_me:$LINENO: checking for inet_ntop" >&5 44922echo $ECHO_N "checking for inet_ntop... $ECHO_C" >&6 44923if test "${ac_cv_func_inet_ntop+set}" = set; then 44924 echo $ECHO_N "(cached) $ECHO_C" >&6 44925else 44926 cat >conftest.$ac_ext <<_ACEOF 44927/* confdefs.h. */ 44928_ACEOF 44929cat confdefs.h >>conftest.$ac_ext 44930cat >>conftest.$ac_ext <<_ACEOF 44931/* end confdefs.h. */ 44932/* Define inet_ntop to an innocuous variant, in case <limits.h> declares inet_ntop. 44933 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 44934#define inet_ntop innocuous_inet_ntop 44935 44936/* System header to define __stub macros and hopefully few prototypes, 44937 which can conflict with char inet_ntop (); below. 44938 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 44939 <limits.h> exists even on freestanding compilers. */ 44940 44941#ifdef __STDC__ 44942# include <limits.h> 44943#else 44944# include <assert.h> 44945#endif 44946 44947#undef inet_ntop 44948 44949/* Override any gcc2 internal prototype to avoid an error. */ 44950#ifdef __cplusplus 44951extern "C" 44952{ 44953#endif 44954/* We use char because int might match the return type of a gcc2 44955 builtin and then its argument prototype would still apply. */ 44956char inet_ntop (); 44957/* The GNU C library defines this for functions which it implements 44958 to always fail with ENOSYS. Some functions are actually named 44959 something starting with __ and the normal name is an alias. */ 44960#if defined (__stub_inet_ntop) || defined (__stub___inet_ntop) 44961choke me 44962#else 44963char (*f) () = inet_ntop; 44964#endif 44965#ifdef __cplusplus 44966} 44967#endif 44968 44969int 44970main () 44971{ 44972return f != inet_ntop; 44973 ; 44974 return 0; 44975} 44976_ACEOF 44977rm -f conftest.$ac_objext conftest$ac_exeext 44978if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 44979 (eval $ac_link) 2>conftest.er1 44980 ac_status=$? 44981 grep -v '^ *+' conftest.er1 >conftest.err 44982 rm -f conftest.er1 44983 cat conftest.err >&5 44984 echo "$as_me:$LINENO: \$? = $ac_status" >&5 44985 (exit $ac_status); } && 44986 { ac_try='test -z "$ac_c_werror_flag" 44987 || test ! -s conftest.err' 44988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 44989 (eval $ac_try) 2>&5 44990 ac_status=$? 44991 echo "$as_me:$LINENO: \$? = $ac_status" >&5 44992 (exit $ac_status); }; } && 44993 { ac_try='test -s conftest$ac_exeext' 44994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 44995 (eval $ac_try) 2>&5 44996 ac_status=$? 44997 echo "$as_me:$LINENO: \$? = $ac_status" >&5 44998 (exit $ac_status); }; }; then 44999 ac_cv_func_inet_ntop=yes 45000else 45001 echo "$as_me: failed program was:" >&5 45002sed 's/^/| /' conftest.$ac_ext >&5 45003 45004ac_cv_func_inet_ntop=no 45005fi 45006rm -f conftest.err conftest.$ac_objext \ 45007 conftest$ac_exeext conftest.$ac_ext 45008fi 45009echo "$as_me:$LINENO: result: $ac_cv_func_inet_ntop" >&5 45010echo "${ECHO_T}$ac_cv_func_inet_ntop" >&6 45011if test $ac_cv_func_inet_ntop = yes; then 45012 : 45013else 45014 45015cat >>confdefs.h <<\_ACEOF 45016#define ISC_PLATFORM_NEEDNTOP 1 45017_ACEOF 45018 45019fi 45020 45021echo "$as_me:$LINENO: checking for inet_pton" >&5 45022echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6 45023if test "${ac_cv_func_inet_pton+set}" = set; then 45024 echo $ECHO_N "(cached) $ECHO_C" >&6 45025else 45026 cat >conftest.$ac_ext <<_ACEOF 45027/* confdefs.h. */ 45028_ACEOF 45029cat confdefs.h >>conftest.$ac_ext 45030cat >>conftest.$ac_ext <<_ACEOF 45031/* end confdefs.h. */ 45032/* Define inet_pton to an innocuous variant, in case <limits.h> declares inet_pton. 45033 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 45034#define inet_pton innocuous_inet_pton 45035 45036/* System header to define __stub macros and hopefully few prototypes, 45037 which can conflict with char inet_pton (); below. 45038 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 45039 <limits.h> exists even on freestanding compilers. */ 45040 45041#ifdef __STDC__ 45042# include <limits.h> 45043#else 45044# include <assert.h> 45045#endif 45046 45047#undef inet_pton 45048 45049/* Override any gcc2 internal prototype to avoid an error. */ 45050#ifdef __cplusplus 45051extern "C" 45052{ 45053#endif 45054/* We use char because int might match the return type of a gcc2 45055 builtin and then its argument prototype would still apply. */ 45056char inet_pton (); 45057/* The GNU C library defines this for functions which it implements 45058 to always fail with ENOSYS. Some functions are actually named 45059 something starting with __ and the normal name is an alias. */ 45060#if defined (__stub_inet_pton) || defined (__stub___inet_pton) 45061choke me 45062#else 45063char (*f) () = inet_pton; 45064#endif 45065#ifdef __cplusplus 45066} 45067#endif 45068 45069int 45070main () 45071{ 45072return f != inet_pton; 45073 ; 45074 return 0; 45075} 45076_ACEOF 45077rm -f conftest.$ac_objext conftest$ac_exeext 45078if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 45079 (eval $ac_link) 2>conftest.er1 45080 ac_status=$? 45081 grep -v '^ *+' conftest.er1 >conftest.err 45082 rm -f conftest.er1 45083 cat conftest.err >&5 45084 echo "$as_me:$LINENO: \$? = $ac_status" >&5 45085 (exit $ac_status); } && 45086 { ac_try='test -z "$ac_c_werror_flag" 45087 || test ! -s conftest.err' 45088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 45089 (eval $ac_try) 2>&5 45090 ac_status=$? 45091 echo "$as_me:$LINENO: \$? = $ac_status" >&5 45092 (exit $ac_status); }; } && 45093 { ac_try='test -s conftest$ac_exeext' 45094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 45095 (eval $ac_try) 2>&5 45096 ac_status=$? 45097 echo "$as_me:$LINENO: \$? = $ac_status" >&5 45098 (exit $ac_status); }; }; then 45099 ac_cv_func_inet_pton=yes 45100else 45101 echo "$as_me: failed program was:" >&5 45102sed 's/^/| /' conftest.$ac_ext >&5 45103 45104ac_cv_func_inet_pton=no 45105fi 45106rm -f conftest.err conftest.$ac_objext \ 45107 conftest$ac_exeext conftest.$ac_ext 45108fi 45109echo "$as_me:$LINENO: result: $ac_cv_func_inet_pton" >&5 45110echo "${ECHO_T}$ac_cv_func_inet_pton" >&6 45111if test $ac_cv_func_inet_pton = yes; then 45112 : 45113else 45114 45115cat >>confdefs.h <<\_ACEOF 45116#define ISC_PLATFORM_NEEDPTON 1 45117_ACEOF 45118 45119fi 45120 45121echo "$as_me:$LINENO: checking for inet_aton" >&5 45122echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6 45123if test "${ac_cv_func_inet_aton+set}" = set; then 45124 echo $ECHO_N "(cached) $ECHO_C" >&6 45125else 45126 cat >conftest.$ac_ext <<_ACEOF 45127/* confdefs.h. */ 45128_ACEOF 45129cat confdefs.h >>conftest.$ac_ext 45130cat >>conftest.$ac_ext <<_ACEOF 45131/* end confdefs.h. */ 45132/* Define inet_aton to an innocuous variant, in case <limits.h> declares inet_aton. 45133 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 45134#define inet_aton innocuous_inet_aton 45135 45136/* System header to define __stub macros and hopefully few prototypes, 45137 which can conflict with char inet_aton (); below. 45138 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 45139 <limits.h> exists even on freestanding compilers. */ 45140 45141#ifdef __STDC__ 45142# include <limits.h> 45143#else 45144# include <assert.h> 45145#endif 45146 45147#undef inet_aton 45148 45149/* Override any gcc2 internal prototype to avoid an error. */ 45150#ifdef __cplusplus 45151extern "C" 45152{ 45153#endif 45154/* We use char because int might match the return type of a gcc2 45155 builtin and then its argument prototype would still apply. */ 45156char inet_aton (); 45157/* The GNU C library defines this for functions which it implements 45158 to always fail with ENOSYS. Some functions are actually named 45159 something starting with __ and the normal name is an alias. */ 45160#if defined (__stub_inet_aton) || defined (__stub___inet_aton) 45161choke me 45162#else 45163char (*f) () = inet_aton; 45164#endif 45165#ifdef __cplusplus 45166} 45167#endif 45168 45169int 45170main () 45171{ 45172return f != inet_aton; 45173 ; 45174 return 0; 45175} 45176_ACEOF 45177rm -f conftest.$ac_objext conftest$ac_exeext 45178if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 45179 (eval $ac_link) 2>conftest.er1 45180 ac_status=$? 45181 grep -v '^ *+' conftest.er1 >conftest.err 45182 rm -f conftest.er1 45183 cat conftest.err >&5 45184 echo "$as_me:$LINENO: \$? = $ac_status" >&5 45185 (exit $ac_status); } && 45186 { ac_try='test -z "$ac_c_werror_flag" 45187 || test ! -s conftest.err' 45188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 45189 (eval $ac_try) 2>&5 45190 ac_status=$? 45191 echo "$as_me:$LINENO: \$? = $ac_status" >&5 45192 (exit $ac_status); }; } && 45193 { ac_try='test -s conftest$ac_exeext' 45194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 45195 (eval $ac_try) 2>&5 45196 ac_status=$? 45197 echo "$as_me:$LINENO: \$? = $ac_status" >&5 45198 (exit $ac_status); }; }; then 45199 ac_cv_func_inet_aton=yes 45200else 45201 echo "$as_me: failed program was:" >&5 45202sed 's/^/| /' conftest.$ac_ext >&5 45203 45204ac_cv_func_inet_aton=no 45205fi 45206rm -f conftest.err conftest.$ac_objext \ 45207 conftest$ac_exeext conftest.$ac_ext 45208fi 45209echo "$as_me:$LINENO: result: $ac_cv_func_inet_aton" >&5 45210echo "${ECHO_T}$ac_cv_func_inet_aton" >&6 45211if test $ac_cv_func_inet_aton = yes; then 45212 : 45213else 45214 45215cat >>confdefs.h <<\_ACEOF 45216#define ISC_PLATFORM_NEEDATON 1 45217_ACEOF 45218 45219fi 45220 45221 45222 45223 45224 45225 45226for ac_func in K_open kvm_open memcpy memmove memset 45227do 45228as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 45229echo "$as_me:$LINENO: checking for $ac_func" >&5 45230echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 45231if eval "test \"\${$as_ac_var+set}\" = set"; then 45232 echo $ECHO_N "(cached) $ECHO_C" >&6 45233else 45234 cat >conftest.$ac_ext <<_ACEOF 45235/* confdefs.h. */ 45236_ACEOF 45237cat confdefs.h >>conftest.$ac_ext 45238cat >>conftest.$ac_ext <<_ACEOF 45239/* end confdefs.h. */ 45240/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 45241 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 45242#define $ac_func innocuous_$ac_func 45243 45244/* System header to define __stub macros and hopefully few prototypes, 45245 which can conflict with char $ac_func (); below. 45246 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 45247 <limits.h> exists even on freestanding compilers. */ 45248 45249#ifdef __STDC__ 45250# include <limits.h> 45251#else 45252# include <assert.h> 45253#endif 45254 45255#undef $ac_func 45256 45257/* Override any gcc2 internal prototype to avoid an error. */ 45258#ifdef __cplusplus 45259extern "C" 45260{ 45261#endif 45262/* We use char because int might match the return type of a gcc2 45263 builtin and then its argument prototype would still apply. */ 45264char $ac_func (); 45265/* The GNU C library defines this for functions which it implements 45266 to always fail with ENOSYS. Some functions are actually named 45267 something starting with __ and the normal name is an alias. */ 45268#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 45269choke me 45270#else 45271char (*f) () = $ac_func; 45272#endif 45273#ifdef __cplusplus 45274} 45275#endif 45276 45277int 45278main () 45279{ 45280return f != $ac_func; 45281 ; 45282 return 0; 45283} 45284_ACEOF 45285rm -f conftest.$ac_objext conftest$ac_exeext 45286if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 45287 (eval $ac_link) 2>conftest.er1 45288 ac_status=$? 45289 grep -v '^ *+' conftest.er1 >conftest.err 45290 rm -f conftest.er1 45291 cat conftest.err >&5 45292 echo "$as_me:$LINENO: \$? = $ac_status" >&5 45293 (exit $ac_status); } && 45294 { ac_try='test -z "$ac_c_werror_flag" 45295 || test ! -s conftest.err' 45296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 45297 (eval $ac_try) 2>&5 45298 ac_status=$? 45299 echo "$as_me:$LINENO: \$? = $ac_status" >&5 45300 (exit $ac_status); }; } && 45301 { ac_try='test -s conftest$ac_exeext' 45302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 45303 (eval $ac_try) 2>&5 45304 ac_status=$? 45305 echo "$as_me:$LINENO: \$? = $ac_status" >&5 45306 (exit $ac_status); }; }; then 45307 eval "$as_ac_var=yes" 45308else 45309 echo "$as_me: failed program was:" >&5 45310sed 's/^/| /' conftest.$ac_ext >&5 45311 45312eval "$as_ac_var=no" 45313fi 45314rm -f conftest.err conftest.$ac_objext \ 45315 conftest$ac_exeext conftest.$ac_ext 45316fi 45317echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 45318echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 45319if test `eval echo '${'$as_ac_var'}'` = yes; then 45320 cat >>confdefs.h <<_ACEOF 45321#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 45322_ACEOF 45323 45324fi 45325done 45326 45327case "$host" in 45328 *-*-sco3.2v5.0.*) 45329 # Just stubs. Idiots. 45330 ;; 45331 *) 45332for ac_func in mkstemp 45333do 45334as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 45335echo "$as_me:$LINENO: checking for $ac_func" >&5 45336echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 45337if eval "test \"\${$as_ac_var+set}\" = set"; then 45338 echo $ECHO_N "(cached) $ECHO_C" >&6 45339else 45340 cat >conftest.$ac_ext <<_ACEOF 45341/* confdefs.h. */ 45342_ACEOF 45343cat confdefs.h >>conftest.$ac_ext 45344cat >>conftest.$ac_ext <<_ACEOF 45345/* end confdefs.h. */ 45346/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 45347 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 45348#define $ac_func innocuous_$ac_func 45349 45350/* System header to define __stub macros and hopefully few prototypes, 45351 which can conflict with char $ac_func (); below. 45352 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 45353 <limits.h> exists even on freestanding compilers. */ 45354 45355#ifdef __STDC__ 45356# include <limits.h> 45357#else 45358# include <assert.h> 45359#endif 45360 45361#undef $ac_func 45362 45363/* Override any gcc2 internal prototype to avoid an error. */ 45364#ifdef __cplusplus 45365extern "C" 45366{ 45367#endif 45368/* We use char because int might match the return type of a gcc2 45369 builtin and then its argument prototype would still apply. */ 45370char $ac_func (); 45371/* The GNU C library defines this for functions which it implements 45372 to always fail with ENOSYS. Some functions are actually named 45373 something starting with __ and the normal name is an alias. */ 45374#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 45375choke me 45376#else 45377char (*f) () = $ac_func; 45378#endif 45379#ifdef __cplusplus 45380} 45381#endif 45382 45383int 45384main () 45385{ 45386return f != $ac_func; 45387 ; 45388 return 0; 45389} 45390_ACEOF 45391rm -f conftest.$ac_objext conftest$ac_exeext 45392if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 45393 (eval $ac_link) 2>conftest.er1 45394 ac_status=$? 45395 grep -v '^ *+' conftest.er1 >conftest.err 45396 rm -f conftest.er1 45397 cat conftest.err >&5 45398 echo "$as_me:$LINENO: \$? = $ac_status" >&5 45399 (exit $ac_status); } && 45400 { ac_try='test -z "$ac_c_werror_flag" 45401 || test ! -s conftest.err' 45402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 45403 (eval $ac_try) 2>&5 45404 ac_status=$? 45405 echo "$as_me:$LINENO: \$? = $ac_status" >&5 45406 (exit $ac_status); }; } && 45407 { ac_try='test -s conftest$ac_exeext' 45408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 45409 (eval $ac_try) 2>&5 45410 ac_status=$? 45411 echo "$as_me:$LINENO: \$? = $ac_status" >&5 45412 (exit $ac_status); }; }; then 45413 eval "$as_ac_var=yes" 45414else 45415 echo "$as_me: failed program was:" >&5 45416sed 's/^/| /' conftest.$ac_ext >&5 45417 45418eval "$as_ac_var=no" 45419fi 45420rm -f conftest.err conftest.$ac_objext \ 45421 conftest$ac_exeext conftest.$ac_ext 45422fi 45423echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 45424echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 45425if test `eval echo '${'$as_ac_var'}'` = yes; then 45426 cat >>confdefs.h <<_ACEOF 45427#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 45428_ACEOF 45429 45430fi 45431done 45432 45433 ;; 45434esac 45435 45436for ac_func in mktime 45437do 45438as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 45439echo "$as_me:$LINENO: checking for $ac_func" >&5 45440echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 45441if eval "test \"\${$as_ac_var+set}\" = set"; then 45442 echo $ECHO_N "(cached) $ECHO_C" >&6 45443else 45444 cat >conftest.$ac_ext <<_ACEOF 45445/* confdefs.h. */ 45446_ACEOF 45447cat confdefs.h >>conftest.$ac_ext 45448cat >>conftest.$ac_ext <<_ACEOF 45449/* end confdefs.h. */ 45450/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 45451 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 45452#define $ac_func innocuous_$ac_func 45453 45454/* System header to define __stub macros and hopefully few prototypes, 45455 which can conflict with char $ac_func (); below. 45456 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 45457 <limits.h> exists even on freestanding compilers. */ 45458 45459#ifdef __STDC__ 45460# include <limits.h> 45461#else 45462# include <assert.h> 45463#endif 45464 45465#undef $ac_func 45466 45467/* Override any gcc2 internal prototype to avoid an error. */ 45468#ifdef __cplusplus 45469extern "C" 45470{ 45471#endif 45472/* We use char because int might match the return type of a gcc2 45473 builtin and then its argument prototype would still apply. */ 45474char $ac_func (); 45475/* The GNU C library defines this for functions which it implements 45476 to always fail with ENOSYS. Some functions are actually named 45477 something starting with __ and the normal name is an alias. */ 45478#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 45479choke me 45480#else 45481char (*f) () = $ac_func; 45482#endif 45483#ifdef __cplusplus 45484} 45485#endif 45486 45487int 45488main () 45489{ 45490return f != $ac_func; 45491 ; 45492 return 0; 45493} 45494_ACEOF 45495rm -f conftest.$ac_objext conftest$ac_exeext 45496if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 45497 (eval $ac_link) 2>conftest.er1 45498 ac_status=$? 45499 grep -v '^ *+' conftest.er1 >conftest.err 45500 rm -f conftest.er1 45501 cat conftest.err >&5 45502 echo "$as_me:$LINENO: \$? = $ac_status" >&5 45503 (exit $ac_status); } && 45504 { ac_try='test -z "$ac_c_werror_flag" 45505 || test ! -s conftest.err' 45506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 45507 (eval $ac_try) 2>&5 45508 ac_status=$? 45509 echo "$as_me:$LINENO: \$? = $ac_status" >&5 45510 (exit $ac_status); }; } && 45511 { ac_try='test -s conftest$ac_exeext' 45512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 45513 (eval $ac_try) 2>&5 45514 ac_status=$? 45515 echo "$as_me:$LINENO: \$? = $ac_status" >&5 45516 (exit $ac_status); }; }; then 45517 eval "$as_ac_var=yes" 45518else 45519 echo "$as_me: failed program was:" >&5 45520sed 's/^/| /' conftest.$ac_ext >&5 45521 45522eval "$as_ac_var=no" 45523fi 45524rm -f conftest.err conftest.$ac_objext \ 45525 conftest$ac_exeext conftest.$ac_ext 45526fi 45527echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 45528echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 45529if test `eval echo '${'$as_ac_var'}'` = yes; then 45530 cat >>confdefs.h <<_ACEOF 45531#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 45532_ACEOF 45533 45534fi 45535done 45536 45537case "$host" in 45538 *-*-aix[45]*) 45539 # Just a stub. Idiots. 45540 ;; 45541 *-*-irix[45]*) 45542 # Just a stub in "old" Irix. Idiots. 45543 ;; 45544 *-*-linux*) 45545 # there, but more trouble than it is worth for now (resolver problems) 45546 ;; 45547 *-*-qnx*) 45548 # Apparently there but not working in QNX. Idiots? 45549 ;; 45550 *-*-sco3.2v5.0.*) 45551 # Just a stub. Idiots. 45552 ;; 45553 alpha*-dec-osf4*|alpha*-dec-osf5*) 45554 # mlockall is there, as a #define calling memlk via <sys/mman.h> 45555 # Not easy to test for - cheat. 45556 45557for ac_func in memlk 45558do 45559as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 45560echo "$as_me:$LINENO: checking for $ac_func" >&5 45561echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 45562if eval "test \"\${$as_ac_var+set}\" = set"; then 45563 echo $ECHO_N "(cached) $ECHO_C" >&6 45564else 45565 cat >conftest.$ac_ext <<_ACEOF 45566/* confdefs.h. */ 45567_ACEOF 45568cat confdefs.h >>conftest.$ac_ext 45569cat >>conftest.$ac_ext <<_ACEOF 45570/* end confdefs.h. */ 45571/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 45572 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 45573#define $ac_func innocuous_$ac_func 45574 45575/* System header to define __stub macros and hopefully few prototypes, 45576 which can conflict with char $ac_func (); below. 45577 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 45578 <limits.h> exists even on freestanding compilers. */ 45579 45580#ifdef __STDC__ 45581# include <limits.h> 45582#else 45583# include <assert.h> 45584#endif 45585 45586#undef $ac_func 45587 45588/* Override any gcc2 internal prototype to avoid an error. */ 45589#ifdef __cplusplus 45590extern "C" 45591{ 45592#endif 45593/* We use char because int might match the return type of a gcc2 45594 builtin and then its argument prototype would still apply. */ 45595char $ac_func (); 45596/* The GNU C library defines this for functions which it implements 45597 to always fail with ENOSYS. Some functions are actually named 45598 something starting with __ and the normal name is an alias. */ 45599#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 45600choke me 45601#else 45602char (*f) () = $ac_func; 45603#endif 45604#ifdef __cplusplus 45605} 45606#endif 45607 45608int 45609main () 45610{ 45611return f != $ac_func; 45612 ; 45613 return 0; 45614} 45615_ACEOF 45616rm -f conftest.$ac_objext conftest$ac_exeext 45617if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 45618 (eval $ac_link) 2>conftest.er1 45619 ac_status=$? 45620 grep -v '^ *+' conftest.er1 >conftest.err 45621 rm -f conftest.er1 45622 cat conftest.err >&5 45623 echo "$as_me:$LINENO: \$? = $ac_status" >&5 45624 (exit $ac_status); } && 45625 { ac_try='test -z "$ac_c_werror_flag" 45626 || test ! -s conftest.err' 45627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 45628 (eval $ac_try) 2>&5 45629 ac_status=$? 45630 echo "$as_me:$LINENO: \$? = $ac_status" >&5 45631 (exit $ac_status); }; } && 45632 { ac_try='test -s conftest$ac_exeext' 45633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 45634 (eval $ac_try) 2>&5 45635 ac_status=$? 45636 echo "$as_me:$LINENO: \$? = $ac_status" >&5 45637 (exit $ac_status); }; }; then 45638 eval "$as_ac_var=yes" 45639else 45640 echo "$as_me: failed program was:" >&5 45641sed 's/^/| /' conftest.$ac_ext >&5 45642 45643eval "$as_ac_var=no" 45644fi 45645rm -f conftest.err conftest.$ac_objext \ 45646 conftest$ac_exeext conftest.$ac_ext 45647fi 45648echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 45649echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 45650if test `eval echo '${'$as_ac_var'}'` = yes; then 45651 cat >>confdefs.h <<_ACEOF 45652#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 45653_ACEOF 45654 ac_cv_func_mlockall='yes' 45655fi 45656done 45657 45658 45659for ac_func in mlockall 45660do 45661as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 45662echo "$as_me:$LINENO: checking for $ac_func" >&5 45663echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 45664if eval "test \"\${$as_ac_var+set}\" = set"; then 45665 echo $ECHO_N "(cached) $ECHO_C" >&6 45666else 45667 cat >conftest.$ac_ext <<_ACEOF 45668/* confdefs.h. */ 45669_ACEOF 45670cat confdefs.h >>conftest.$ac_ext 45671cat >>conftest.$ac_ext <<_ACEOF 45672/* end confdefs.h. */ 45673/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 45674 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 45675#define $ac_func innocuous_$ac_func 45676 45677/* System header to define __stub macros and hopefully few prototypes, 45678 which can conflict with char $ac_func (); below. 45679 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 45680 <limits.h> exists even on freestanding compilers. */ 45681 45682#ifdef __STDC__ 45683# include <limits.h> 45684#else 45685# include <assert.h> 45686#endif 45687 45688#undef $ac_func 45689 45690/* Override any gcc2 internal prototype to avoid an error. */ 45691#ifdef __cplusplus 45692extern "C" 45693{ 45694#endif 45695/* We use char because int might match the return type of a gcc2 45696 builtin and then its argument prototype would still apply. */ 45697char $ac_func (); 45698/* The GNU C library defines this for functions which it implements 45699 to always fail with ENOSYS. Some functions are actually named 45700 something starting with __ and the normal name is an alias. */ 45701#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 45702choke me 45703#else 45704char (*f) () = $ac_func; 45705#endif 45706#ifdef __cplusplus 45707} 45708#endif 45709 45710int 45711main () 45712{ 45713return f != $ac_func; 45714 ; 45715 return 0; 45716} 45717_ACEOF 45718rm -f conftest.$ac_objext conftest$ac_exeext 45719if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 45720 (eval $ac_link) 2>conftest.er1 45721 ac_status=$? 45722 grep -v '^ *+' conftest.er1 >conftest.err 45723 rm -f conftest.er1 45724 cat conftest.err >&5 45725 echo "$as_me:$LINENO: \$? = $ac_status" >&5 45726 (exit $ac_status); } && 45727 { ac_try='test -z "$ac_c_werror_flag" 45728 || test ! -s conftest.err' 45729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 45730 (eval $ac_try) 2>&5 45731 ac_status=$? 45732 echo "$as_me:$LINENO: \$? = $ac_status" >&5 45733 (exit $ac_status); }; } && 45734 { ac_try='test -s conftest$ac_exeext' 45735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 45736 (eval $ac_try) 2>&5 45737 ac_status=$? 45738 echo "$as_me:$LINENO: \$? = $ac_status" >&5 45739 (exit $ac_status); }; }; then 45740 eval "$as_ac_var=yes" 45741else 45742 echo "$as_me: failed program was:" >&5 45743sed 's/^/| /' conftest.$ac_ext >&5 45744 45745eval "$as_ac_var=no" 45746fi 45747rm -f conftest.err conftest.$ac_objext \ 45748 conftest$ac_exeext conftest.$ac_ext 45749fi 45750echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 45751echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 45752if test `eval echo '${'$as_ac_var'}'` = yes; then 45753 cat >>confdefs.h <<_ACEOF 45754#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 45755_ACEOF 45756 45757fi 45758done 45759 45760 ;; 45761 *) 45762for ac_func in mlockall 45763do 45764as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 45765echo "$as_me:$LINENO: checking for $ac_func" >&5 45766echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 45767if eval "test \"\${$as_ac_var+set}\" = set"; then 45768 echo $ECHO_N "(cached) $ECHO_C" >&6 45769else 45770 cat >conftest.$ac_ext <<_ACEOF 45771/* confdefs.h. */ 45772_ACEOF 45773cat confdefs.h >>conftest.$ac_ext 45774cat >>conftest.$ac_ext <<_ACEOF 45775/* end confdefs.h. */ 45776/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 45777 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 45778#define $ac_func innocuous_$ac_func 45779 45780/* System header to define __stub macros and hopefully few prototypes, 45781 which can conflict with char $ac_func (); below. 45782 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 45783 <limits.h> exists even on freestanding compilers. */ 45784 45785#ifdef __STDC__ 45786# include <limits.h> 45787#else 45788# include <assert.h> 45789#endif 45790 45791#undef $ac_func 45792 45793/* Override any gcc2 internal prototype to avoid an error. */ 45794#ifdef __cplusplus 45795extern "C" 45796{ 45797#endif 45798/* We use char because int might match the return type of a gcc2 45799 builtin and then its argument prototype would still apply. */ 45800char $ac_func (); 45801/* The GNU C library defines this for functions which it implements 45802 to always fail with ENOSYS. Some functions are actually named 45803 something starting with __ and the normal name is an alias. */ 45804#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 45805choke me 45806#else 45807char (*f) () = $ac_func; 45808#endif 45809#ifdef __cplusplus 45810} 45811#endif 45812 45813int 45814main () 45815{ 45816return f != $ac_func; 45817 ; 45818 return 0; 45819} 45820_ACEOF 45821rm -f conftest.$ac_objext conftest$ac_exeext 45822if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 45823 (eval $ac_link) 2>conftest.er1 45824 ac_status=$? 45825 grep -v '^ *+' conftest.er1 >conftest.err 45826 rm -f conftest.er1 45827 cat conftest.err >&5 45828 echo "$as_me:$LINENO: \$? = $ac_status" >&5 45829 (exit $ac_status); } && 45830 { ac_try='test -z "$ac_c_werror_flag" 45831 || test ! -s conftest.err' 45832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 45833 (eval $ac_try) 2>&5 45834 ac_status=$? 45835 echo "$as_me:$LINENO: \$? = $ac_status" >&5 45836 (exit $ac_status); }; } && 45837 { ac_try='test -s conftest$ac_exeext' 45838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 45839 (eval $ac_try) 2>&5 45840 ac_status=$? 45841 echo "$as_me:$LINENO: \$? = $ac_status" >&5 45842 (exit $ac_status); }; }; then 45843 eval "$as_ac_var=yes" 45844else 45845 echo "$as_me: failed program was:" >&5 45846sed 's/^/| /' conftest.$ac_ext >&5 45847 45848eval "$as_ac_var=no" 45849fi 45850rm -f conftest.err conftest.$ac_objext \ 45851 conftest$ac_exeext conftest.$ac_ext 45852fi 45853echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 45854echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 45855if test `eval echo '${'$as_ac_var'}'` = yes; then 45856 cat >>confdefs.h <<_ACEOF 45857#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 45858_ACEOF 45859 45860fi 45861done 45862 45863 ;; 45864esac 45865 45866 45867for ac_func in nice nlist 45868do 45869as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 45870echo "$as_me:$LINENO: checking for $ac_func" >&5 45871echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 45872if eval "test \"\${$as_ac_var+set}\" = set"; then 45873 echo $ECHO_N "(cached) $ECHO_C" >&6 45874else 45875 cat >conftest.$ac_ext <<_ACEOF 45876/* confdefs.h. */ 45877_ACEOF 45878cat confdefs.h >>conftest.$ac_ext 45879cat >>conftest.$ac_ext <<_ACEOF 45880/* end confdefs.h. */ 45881/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 45882 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 45883#define $ac_func innocuous_$ac_func 45884 45885/* System header to define __stub macros and hopefully few prototypes, 45886 which can conflict with char $ac_func (); below. 45887 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 45888 <limits.h> exists even on freestanding compilers. */ 45889 45890#ifdef __STDC__ 45891# include <limits.h> 45892#else 45893# include <assert.h> 45894#endif 45895 45896#undef $ac_func 45897 45898/* Override any gcc2 internal prototype to avoid an error. */ 45899#ifdef __cplusplus 45900extern "C" 45901{ 45902#endif 45903/* We use char because int might match the return type of a gcc2 45904 builtin and then its argument prototype would still apply. */ 45905char $ac_func (); 45906/* The GNU C library defines this for functions which it implements 45907 to always fail with ENOSYS. Some functions are actually named 45908 something starting with __ and the normal name is an alias. */ 45909#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 45910choke me 45911#else 45912char (*f) () = $ac_func; 45913#endif 45914#ifdef __cplusplus 45915} 45916#endif 45917 45918int 45919main () 45920{ 45921return f != $ac_func; 45922 ; 45923 return 0; 45924} 45925_ACEOF 45926rm -f conftest.$ac_objext conftest$ac_exeext 45927if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 45928 (eval $ac_link) 2>conftest.er1 45929 ac_status=$? 45930 grep -v '^ *+' conftest.er1 >conftest.err 45931 rm -f conftest.er1 45932 cat conftest.err >&5 45933 echo "$as_me:$LINENO: \$? = $ac_status" >&5 45934 (exit $ac_status); } && 45935 { ac_try='test -z "$ac_c_werror_flag" 45936 || test ! -s conftest.err' 45937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 45938 (eval $ac_try) 2>&5 45939 ac_status=$? 45940 echo "$as_me:$LINENO: \$? = $ac_status" >&5 45941 (exit $ac_status); }; } && 45942 { ac_try='test -s conftest$ac_exeext' 45943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 45944 (eval $ac_try) 2>&5 45945 ac_status=$? 45946 echo "$as_me:$LINENO: \$? = $ac_status" >&5 45947 (exit $ac_status); }; }; then 45948 eval "$as_ac_var=yes" 45949else 45950 echo "$as_me: failed program was:" >&5 45951sed 's/^/| /' conftest.$ac_ext >&5 45952 45953eval "$as_ac_var=no" 45954fi 45955rm -f conftest.err conftest.$ac_objext \ 45956 conftest$ac_exeext conftest.$ac_ext 45957fi 45958echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 45959echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 45960if test `eval echo '${'$as_ac_var'}'` = yes; then 45961 cat >>confdefs.h <<_ACEOF 45962#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 45963_ACEOF 45964 45965fi 45966done 45967 45968case "$host" in 45969 *-*-solaris2.6) 45970 # Broken... 45971 ;; 45972 *) 45973 45974for ac_func in ntp_adjtime ntp_gettime 45975do 45976as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 45977echo "$as_me:$LINENO: checking for $ac_func" >&5 45978echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 45979if eval "test \"\${$as_ac_var+set}\" = set"; then 45980 echo $ECHO_N "(cached) $ECHO_C" >&6 45981else 45982 cat >conftest.$ac_ext <<_ACEOF 45983/* confdefs.h. */ 45984_ACEOF 45985cat confdefs.h >>conftest.$ac_ext 45986cat >>conftest.$ac_ext <<_ACEOF 45987/* end confdefs.h. */ 45988/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 45989 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 45990#define $ac_func innocuous_$ac_func 45991 45992/* System header to define __stub macros and hopefully few prototypes, 45993 which can conflict with char $ac_func (); below. 45994 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 45995 <limits.h> exists even on freestanding compilers. */ 45996 45997#ifdef __STDC__ 45998# include <limits.h> 45999#else 46000# include <assert.h> 46001#endif 46002 46003#undef $ac_func 46004 46005/* Override any gcc2 internal prototype to avoid an error. */ 46006#ifdef __cplusplus 46007extern "C" 46008{ 46009#endif 46010/* We use char because int might match the return type of a gcc2 46011 builtin and then its argument prototype would still apply. */ 46012char $ac_func (); 46013/* The GNU C library defines this for functions which it implements 46014 to always fail with ENOSYS. Some functions are actually named 46015 something starting with __ and the normal name is an alias. */ 46016#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 46017choke me 46018#else 46019char (*f) () = $ac_func; 46020#endif 46021#ifdef __cplusplus 46022} 46023#endif 46024 46025int 46026main () 46027{ 46028return f != $ac_func; 46029 ; 46030 return 0; 46031} 46032_ACEOF 46033rm -f conftest.$ac_objext conftest$ac_exeext 46034if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 46035 (eval $ac_link) 2>conftest.er1 46036 ac_status=$? 46037 grep -v '^ *+' conftest.er1 >conftest.err 46038 rm -f conftest.er1 46039 cat conftest.err >&5 46040 echo "$as_me:$LINENO: \$? = $ac_status" >&5 46041 (exit $ac_status); } && 46042 { ac_try='test -z "$ac_c_werror_flag" 46043 || test ! -s conftest.err' 46044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 46045 (eval $ac_try) 2>&5 46046 ac_status=$? 46047 echo "$as_me:$LINENO: \$? = $ac_status" >&5 46048 (exit $ac_status); }; } && 46049 { ac_try='test -s conftest$ac_exeext' 46050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 46051 (eval $ac_try) 2>&5 46052 ac_status=$? 46053 echo "$as_me:$LINENO: \$? = $ac_status" >&5 46054 (exit $ac_status); }; }; then 46055 eval "$as_ac_var=yes" 46056else 46057 echo "$as_me: failed program was:" >&5 46058sed 's/^/| /' conftest.$ac_ext >&5 46059 46060eval "$as_ac_var=no" 46061fi 46062rm -f conftest.err conftest.$ac_objext \ 46063 conftest$ac_exeext conftest.$ac_ext 46064fi 46065echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 46066echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 46067if test `eval echo '${'$as_ac_var'}'` = yes; then 46068 cat >>confdefs.h <<_ACEOF 46069#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 46070_ACEOF 46071 46072fi 46073done 46074 46075 ;; 46076esac 46077 46078 46079 46080 46081 46082 46083for ac_func in plock pututline pututxline readlink recvmsg rtprio 46084do 46085as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 46086echo "$as_me:$LINENO: checking for $ac_func" >&5 46087echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 46088if eval "test \"\${$as_ac_var+set}\" = set"; then 46089 echo $ECHO_N "(cached) $ECHO_C" >&6 46090else 46091 cat >conftest.$ac_ext <<_ACEOF 46092/* confdefs.h. */ 46093_ACEOF 46094cat confdefs.h >>conftest.$ac_ext 46095cat >>conftest.$ac_ext <<_ACEOF 46096/* end confdefs.h. */ 46097/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 46098 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 46099#define $ac_func innocuous_$ac_func 46100 46101/* System header to define __stub macros and hopefully few prototypes, 46102 which can conflict with char $ac_func (); below. 46103 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 46104 <limits.h> exists even on freestanding compilers. */ 46105 46106#ifdef __STDC__ 46107# include <limits.h> 46108#else 46109# include <assert.h> 46110#endif 46111 46112#undef $ac_func 46113 46114/* Override any gcc2 internal prototype to avoid an error. */ 46115#ifdef __cplusplus 46116extern "C" 46117{ 46118#endif 46119/* We use char because int might match the return type of a gcc2 46120 builtin and then its argument prototype would still apply. */ 46121char $ac_func (); 46122/* The GNU C library defines this for functions which it implements 46123 to always fail with ENOSYS. Some functions are actually named 46124 something starting with __ and the normal name is an alias. */ 46125#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 46126choke me 46127#else 46128char (*f) () = $ac_func; 46129#endif 46130#ifdef __cplusplus 46131} 46132#endif 46133 46134int 46135main () 46136{ 46137return f != $ac_func; 46138 ; 46139 return 0; 46140} 46141_ACEOF 46142rm -f conftest.$ac_objext conftest$ac_exeext 46143if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 46144 (eval $ac_link) 2>conftest.er1 46145 ac_status=$? 46146 grep -v '^ *+' conftest.er1 >conftest.err 46147 rm -f conftest.er1 46148 cat conftest.err >&5 46149 echo "$as_me:$LINENO: \$? = $ac_status" >&5 46150 (exit $ac_status); } && 46151 { ac_try='test -z "$ac_c_werror_flag" 46152 || test ! -s conftest.err' 46153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 46154 (eval $ac_try) 2>&5 46155 ac_status=$? 46156 echo "$as_me:$LINENO: \$? = $ac_status" >&5 46157 (exit $ac_status); }; } && 46158 { ac_try='test -s conftest$ac_exeext' 46159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 46160 (eval $ac_try) 2>&5 46161 ac_status=$? 46162 echo "$as_me:$LINENO: \$? = $ac_status" >&5 46163 (exit $ac_status); }; }; then 46164 eval "$as_ac_var=yes" 46165else 46166 echo "$as_me: failed program was:" >&5 46167sed 's/^/| /' conftest.$ac_ext >&5 46168 46169eval "$as_ac_var=no" 46170fi 46171rm -f conftest.err conftest.$ac_objext \ 46172 conftest$ac_exeext conftest.$ac_ext 46173fi 46174echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 46175echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 46176if test `eval echo '${'$as_ac_var'}'` = yes; then 46177 cat >>confdefs.h <<_ACEOF 46178#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 46179_ACEOF 46180 46181fi 46182done 46183 46184case "$host" in 46185 *-*-aix[45]*) 46186 # Just a stub in AIX 4. Idiots. 46187 ;; 46188 *-*-solaris2.5*) 46189 # Just stubs in solaris2.5. Idiots. 46190 ;; 46191 *) 46192for ac_func in sched_setscheduler 46193do 46194as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 46195echo "$as_me:$LINENO: checking for $ac_func" >&5 46196echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 46197if eval "test \"\${$as_ac_var+set}\" = set"; then 46198 echo $ECHO_N "(cached) $ECHO_C" >&6 46199else 46200 cat >conftest.$ac_ext <<_ACEOF 46201/* confdefs.h. */ 46202_ACEOF 46203cat confdefs.h >>conftest.$ac_ext 46204cat >>conftest.$ac_ext <<_ACEOF 46205/* end confdefs.h. */ 46206/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 46207 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 46208#define $ac_func innocuous_$ac_func 46209 46210/* System header to define __stub macros and hopefully few prototypes, 46211 which can conflict with char $ac_func (); below. 46212 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 46213 <limits.h> exists even on freestanding compilers. */ 46214 46215#ifdef __STDC__ 46216# include <limits.h> 46217#else 46218# include <assert.h> 46219#endif 46220 46221#undef $ac_func 46222 46223/* Override any gcc2 internal prototype to avoid an error. */ 46224#ifdef __cplusplus 46225extern "C" 46226{ 46227#endif 46228/* We use char because int might match the return type of a gcc2 46229 builtin and then its argument prototype would still apply. */ 46230char $ac_func (); 46231/* The GNU C library defines this for functions which it implements 46232 to always fail with ENOSYS. Some functions are actually named 46233 something starting with __ and the normal name is an alias. */ 46234#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 46235choke me 46236#else 46237char (*f) () = $ac_func; 46238#endif 46239#ifdef __cplusplus 46240} 46241#endif 46242 46243int 46244main () 46245{ 46246return f != $ac_func; 46247 ; 46248 return 0; 46249} 46250_ACEOF 46251rm -f conftest.$ac_objext conftest$ac_exeext 46252if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 46253 (eval $ac_link) 2>conftest.er1 46254 ac_status=$? 46255 grep -v '^ *+' conftest.er1 >conftest.err 46256 rm -f conftest.er1 46257 cat conftest.err >&5 46258 echo "$as_me:$LINENO: \$? = $ac_status" >&5 46259 (exit $ac_status); } && 46260 { ac_try='test -z "$ac_c_werror_flag" 46261 || test ! -s conftest.err' 46262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 46263 (eval $ac_try) 2>&5 46264 ac_status=$? 46265 echo "$as_me:$LINENO: \$? = $ac_status" >&5 46266 (exit $ac_status); }; } && 46267 { ac_try='test -s conftest$ac_exeext' 46268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 46269 (eval $ac_try) 2>&5 46270 ac_status=$? 46271 echo "$as_me:$LINENO: \$? = $ac_status" >&5 46272 (exit $ac_status); }; }; then 46273 eval "$as_ac_var=yes" 46274else 46275 echo "$as_me: failed program was:" >&5 46276sed 's/^/| /' conftest.$ac_ext >&5 46277 46278eval "$as_ac_var=no" 46279fi 46280rm -f conftest.err conftest.$ac_objext \ 46281 conftest$ac_exeext conftest.$ac_ext 46282fi 46283echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 46284echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 46285if test `eval echo '${'$as_ac_var'}'` = yes; then 46286 cat >>confdefs.h <<_ACEOF 46287#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 46288_ACEOF 46289 46290fi 46291done 46292 46293 ;; 46294esac 46295 46296 46297 46298 46299for ac_func in setlinebuf setpgid setpriority setsid 46300do 46301as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 46302echo "$as_me:$LINENO: checking for $ac_func" >&5 46303echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 46304if eval "test \"\${$as_ac_var+set}\" = set"; then 46305 echo $ECHO_N "(cached) $ECHO_C" >&6 46306else 46307 cat >conftest.$ac_ext <<_ACEOF 46308/* confdefs.h. */ 46309_ACEOF 46310cat confdefs.h >>conftest.$ac_ext 46311cat >>conftest.$ac_ext <<_ACEOF 46312/* end confdefs.h. */ 46313/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 46314 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 46315#define $ac_func innocuous_$ac_func 46316 46317/* System header to define __stub macros and hopefully few prototypes, 46318 which can conflict with char $ac_func (); below. 46319 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 46320 <limits.h> exists even on freestanding compilers. */ 46321 46322#ifdef __STDC__ 46323# include <limits.h> 46324#else 46325# include <assert.h> 46326#endif 46327 46328#undef $ac_func 46329 46330/* Override any gcc2 internal prototype to avoid an error. */ 46331#ifdef __cplusplus 46332extern "C" 46333{ 46334#endif 46335/* We use char because int might match the return type of a gcc2 46336 builtin and then its argument prototype would still apply. */ 46337char $ac_func (); 46338/* The GNU C library defines this for functions which it implements 46339 to always fail with ENOSYS. Some functions are actually named 46340 something starting with __ and the normal name is an alias. */ 46341#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 46342choke me 46343#else 46344char (*f) () = $ac_func; 46345#endif 46346#ifdef __cplusplus 46347} 46348#endif 46349 46350int 46351main () 46352{ 46353return f != $ac_func; 46354 ; 46355 return 0; 46356} 46357_ACEOF 46358rm -f conftest.$ac_objext conftest$ac_exeext 46359if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 46360 (eval $ac_link) 2>conftest.er1 46361 ac_status=$? 46362 grep -v '^ *+' conftest.er1 >conftest.err 46363 rm -f conftest.er1 46364 cat conftest.err >&5 46365 echo "$as_me:$LINENO: \$? = $ac_status" >&5 46366 (exit $ac_status); } && 46367 { ac_try='test -z "$ac_c_werror_flag" 46368 || test ! -s conftest.err' 46369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 46370 (eval $ac_try) 2>&5 46371 ac_status=$? 46372 echo "$as_me:$LINENO: \$? = $ac_status" >&5 46373 (exit $ac_status); }; } && 46374 { ac_try='test -s conftest$ac_exeext' 46375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 46376 (eval $ac_try) 2>&5 46377 ac_status=$? 46378 echo "$as_me:$LINENO: \$? = $ac_status" >&5 46379 (exit $ac_status); }; }; then 46380 eval "$as_ac_var=yes" 46381else 46382 echo "$as_me: failed program was:" >&5 46383sed 's/^/| /' conftest.$ac_ext >&5 46384 46385eval "$as_ac_var=no" 46386fi 46387rm -f conftest.err conftest.$ac_objext \ 46388 conftest$ac_exeext conftest.$ac_ext 46389fi 46390echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 46391echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 46392if test `eval echo '${'$as_ac_var'}'` = yes; then 46393 cat >>confdefs.h <<_ACEOF 46394#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 46395_ACEOF 46396 46397fi 46398done 46399 46400 46401for ac_func in setrlimit 46402do 46403as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 46404echo "$as_me:$LINENO: checking for $ac_func" >&5 46405echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 46406if eval "test \"\${$as_ac_var+set}\" = set"; then 46407 echo $ECHO_N "(cached) $ECHO_C" >&6 46408else 46409 cat >conftest.$ac_ext <<_ACEOF 46410/* confdefs.h. */ 46411_ACEOF 46412cat confdefs.h >>conftest.$ac_ext 46413cat >>conftest.$ac_ext <<_ACEOF 46414/* end confdefs.h. */ 46415/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 46416 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 46417#define $ac_func innocuous_$ac_func 46418 46419/* System header to define __stub macros and hopefully few prototypes, 46420 which can conflict with char $ac_func (); below. 46421 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 46422 <limits.h> exists even on freestanding compilers. */ 46423 46424#ifdef __STDC__ 46425# include <limits.h> 46426#else 46427# include <assert.h> 46428#endif 46429 46430#undef $ac_func 46431 46432/* Override any gcc2 internal prototype to avoid an error. */ 46433#ifdef __cplusplus 46434extern "C" 46435{ 46436#endif 46437/* We use char because int might match the return type of a gcc2 46438 builtin and then its argument prototype would still apply. */ 46439char $ac_func (); 46440/* The GNU C library defines this for functions which it implements 46441 to always fail with ENOSYS. Some functions are actually named 46442 something starting with __ and the normal name is an alias. */ 46443#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 46444choke me 46445#else 46446char (*f) () = $ac_func; 46447#endif 46448#ifdef __cplusplus 46449} 46450#endif 46451 46452int 46453main () 46454{ 46455return f != $ac_func; 46456 ; 46457 return 0; 46458} 46459_ACEOF 46460rm -f conftest.$ac_objext conftest$ac_exeext 46461if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 46462 (eval $ac_link) 2>conftest.er1 46463 ac_status=$? 46464 grep -v '^ *+' conftest.er1 >conftest.err 46465 rm -f conftest.er1 46466 cat conftest.err >&5 46467 echo "$as_me:$LINENO: \$? = $ac_status" >&5 46468 (exit $ac_status); } && 46469 { ac_try='test -z "$ac_c_werror_flag" 46470 || test ! -s conftest.err' 46471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 46472 (eval $ac_try) 2>&5 46473 ac_status=$? 46474 echo "$as_me:$LINENO: \$? = $ac_status" >&5 46475 (exit $ac_status); }; } && 46476 { ac_try='test -s conftest$ac_exeext' 46477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 46478 (eval $ac_try) 2>&5 46479 ac_status=$? 46480 echo "$as_me:$LINENO: \$? = $ac_status" >&5 46481 (exit $ac_status); }; }; then 46482 eval "$as_ac_var=yes" 46483else 46484 echo "$as_me: failed program was:" >&5 46485sed 's/^/| /' conftest.$ac_ext >&5 46486 46487eval "$as_ac_var=no" 46488fi 46489rm -f conftest.err conftest.$ac_objext \ 46490 conftest$ac_exeext conftest.$ac_ext 46491fi 46492echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 46493echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 46494if test `eval echo '${'$as_ac_var'}'` = yes; then 46495 cat >>confdefs.h <<_ACEOF 46496#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 46497_ACEOF 46498 46499fi 46500done 46501 46502 46503for ac_func in settimeofday 46504do 46505as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 46506echo "$as_me:$LINENO: checking for $ac_func" >&5 46507echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 46508if eval "test \"\${$as_ac_var+set}\" = set"; then 46509 echo $ECHO_N "(cached) $ECHO_C" >&6 46510else 46511 cat >conftest.$ac_ext <<_ACEOF 46512/* confdefs.h. */ 46513_ACEOF 46514cat confdefs.h >>conftest.$ac_ext 46515cat >>conftest.$ac_ext <<_ACEOF 46516/* end confdefs.h. */ 46517/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 46518 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 46519#define $ac_func innocuous_$ac_func 46520 46521/* System header to define __stub macros and hopefully few prototypes, 46522 which can conflict with char $ac_func (); below. 46523 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 46524 <limits.h> exists even on freestanding compilers. */ 46525 46526#ifdef __STDC__ 46527# include <limits.h> 46528#else 46529# include <assert.h> 46530#endif 46531 46532#undef $ac_func 46533 46534/* Override any gcc2 internal prototype to avoid an error. */ 46535#ifdef __cplusplus 46536extern "C" 46537{ 46538#endif 46539/* We use char because int might match the return type of a gcc2 46540 builtin and then its argument prototype would still apply. */ 46541char $ac_func (); 46542/* The GNU C library defines this for functions which it implements 46543 to always fail with ENOSYS. Some functions are actually named 46544 something starting with __ and the normal name is an alias. */ 46545#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 46546choke me 46547#else 46548char (*f) () = $ac_func; 46549#endif 46550#ifdef __cplusplus 46551} 46552#endif 46553 46554int 46555main () 46556{ 46557return f != $ac_func; 46558 ; 46559 return 0; 46560} 46561_ACEOF 46562rm -f conftest.$ac_objext conftest$ac_exeext 46563if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 46564 (eval $ac_link) 2>conftest.er1 46565 ac_status=$? 46566 grep -v '^ *+' conftest.er1 >conftest.err 46567 rm -f conftest.er1 46568 cat conftest.err >&5 46569 echo "$as_me:$LINENO: \$? = $ac_status" >&5 46570 (exit $ac_status); } && 46571 { ac_try='test -z "$ac_c_werror_flag" 46572 || test ! -s conftest.err' 46573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 46574 (eval $ac_try) 2>&5 46575 ac_status=$? 46576 echo "$as_me:$LINENO: \$? = $ac_status" >&5 46577 (exit $ac_status); }; } && 46578 { ac_try='test -s conftest$ac_exeext' 46579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 46580 (eval $ac_try) 2>&5 46581 ac_status=$? 46582 echo "$as_me:$LINENO: \$? = $ac_status" >&5 46583 (exit $ac_status); }; }; then 46584 eval "$as_ac_var=yes" 46585else 46586 echo "$as_me: failed program was:" >&5 46587sed 's/^/| /' conftest.$ac_ext >&5 46588 46589eval "$as_ac_var=no" 46590fi 46591rm -f conftest.err conftest.$ac_objext \ 46592 conftest$ac_exeext conftest.$ac_ext 46593fi 46594echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 46595echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 46596if test `eval echo '${'$as_ac_var'}'` = yes; then 46597 cat >>confdefs.h <<_ACEOF 46598#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 46599_ACEOF 46600 46601else 46602 46603case "$host" in 46604 *-*-mpeix*) ac_cv_func_settimeofday=yes 46605 ;; 46606esac 46607fi 46608done 46609 46610 46611 46612for ac_func in setvbuf sigaction 46613do 46614as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 46615echo "$as_me:$LINENO: checking for $ac_func" >&5 46616echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 46617if eval "test \"\${$as_ac_var+set}\" = set"; then 46618 echo $ECHO_N "(cached) $ECHO_C" >&6 46619else 46620 cat >conftest.$ac_ext <<_ACEOF 46621/* confdefs.h. */ 46622_ACEOF 46623cat confdefs.h >>conftest.$ac_ext 46624cat >>conftest.$ac_ext <<_ACEOF 46625/* end confdefs.h. */ 46626/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 46627 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 46628#define $ac_func innocuous_$ac_func 46629 46630/* System header to define __stub macros and hopefully few prototypes, 46631 which can conflict with char $ac_func (); below. 46632 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 46633 <limits.h> exists even on freestanding compilers. */ 46634 46635#ifdef __STDC__ 46636# include <limits.h> 46637#else 46638# include <assert.h> 46639#endif 46640 46641#undef $ac_func 46642 46643/* Override any gcc2 internal prototype to avoid an error. */ 46644#ifdef __cplusplus 46645extern "C" 46646{ 46647#endif 46648/* We use char because int might match the return type of a gcc2 46649 builtin and then its argument prototype would still apply. */ 46650char $ac_func (); 46651/* The GNU C library defines this for functions which it implements 46652 to always fail with ENOSYS. Some functions are actually named 46653 something starting with __ and the normal name is an alias. */ 46654#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 46655choke me 46656#else 46657char (*f) () = $ac_func; 46658#endif 46659#ifdef __cplusplus 46660} 46661#endif 46662 46663int 46664main () 46665{ 46666return f != $ac_func; 46667 ; 46668 return 0; 46669} 46670_ACEOF 46671rm -f conftest.$ac_objext conftest$ac_exeext 46672if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 46673 (eval $ac_link) 2>conftest.er1 46674 ac_status=$? 46675 grep -v '^ *+' conftest.er1 >conftest.err 46676 rm -f conftest.er1 46677 cat conftest.err >&5 46678 echo "$as_me:$LINENO: \$? = $ac_status" >&5 46679 (exit $ac_status); } && 46680 { ac_try='test -z "$ac_c_werror_flag" 46681 || test ! -s conftest.err' 46682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 46683 (eval $ac_try) 2>&5 46684 ac_status=$? 46685 echo "$as_me:$LINENO: \$? = $ac_status" >&5 46686 (exit $ac_status); }; } && 46687 { ac_try='test -s conftest$ac_exeext' 46688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 46689 (eval $ac_try) 2>&5 46690 ac_status=$? 46691 echo "$as_me:$LINENO: \$? = $ac_status" >&5 46692 (exit $ac_status); }; }; then 46693 eval "$as_ac_var=yes" 46694else 46695 echo "$as_me: failed program was:" >&5 46696sed 's/^/| /' conftest.$ac_ext >&5 46697 46698eval "$as_ac_var=no" 46699fi 46700rm -f conftest.err conftest.$ac_objext \ 46701 conftest$ac_exeext conftest.$ac_ext 46702fi 46703echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 46704echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 46705if test `eval echo '${'$as_ac_var'}'` = yes; then 46706 cat >>confdefs.h <<_ACEOF 46707#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 46708_ACEOF 46709 46710fi 46711done 46712 46713 46714 46715 46716 46717 46718 46719 46720for ac_func in sigvec sigset sigsuspend stime strchr sysconf sysctl 46721do 46722as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 46723echo "$as_me:$LINENO: checking for $ac_func" >&5 46724echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 46725if eval "test \"\${$as_ac_var+set}\" = set"; then 46726 echo $ECHO_N "(cached) $ECHO_C" >&6 46727else 46728 cat >conftest.$ac_ext <<_ACEOF 46729/* confdefs.h. */ 46730_ACEOF 46731cat confdefs.h >>conftest.$ac_ext 46732cat >>conftest.$ac_ext <<_ACEOF 46733/* end confdefs.h. */ 46734/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 46735 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 46736#define $ac_func innocuous_$ac_func 46737 46738/* System header to define __stub macros and hopefully few prototypes, 46739 which can conflict with char $ac_func (); below. 46740 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 46741 <limits.h> exists even on freestanding compilers. */ 46742 46743#ifdef __STDC__ 46744# include <limits.h> 46745#else 46746# include <assert.h> 46747#endif 46748 46749#undef $ac_func 46750 46751/* Override any gcc2 internal prototype to avoid an error. */ 46752#ifdef __cplusplus 46753extern "C" 46754{ 46755#endif 46756/* We use char because int might match the return type of a gcc2 46757 builtin and then its argument prototype would still apply. */ 46758char $ac_func (); 46759/* The GNU C library defines this for functions which it implements 46760 to always fail with ENOSYS. Some functions are actually named 46761 something starting with __ and the normal name is an alias. */ 46762#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 46763choke me 46764#else 46765char (*f) () = $ac_func; 46766#endif 46767#ifdef __cplusplus 46768} 46769#endif 46770 46771int 46772main () 46773{ 46774return f != $ac_func; 46775 ; 46776 return 0; 46777} 46778_ACEOF 46779rm -f conftest.$ac_objext conftest$ac_exeext 46780if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 46781 (eval $ac_link) 2>conftest.er1 46782 ac_status=$? 46783 grep -v '^ *+' conftest.er1 >conftest.err 46784 rm -f conftest.er1 46785 cat conftest.err >&5 46786 echo "$as_me:$LINENO: \$? = $ac_status" >&5 46787 (exit $ac_status); } && 46788 { ac_try='test -z "$ac_c_werror_flag" 46789 || test ! -s conftest.err' 46790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 46791 (eval $ac_try) 2>&5 46792 ac_status=$? 46793 echo "$as_me:$LINENO: \$? = $ac_status" >&5 46794 (exit $ac_status); }; } && 46795 { ac_try='test -s conftest$ac_exeext' 46796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 46797 (eval $ac_try) 2>&5 46798 ac_status=$? 46799 echo "$as_me:$LINENO: \$? = $ac_status" >&5 46800 (exit $ac_status); }; }; then 46801 eval "$as_ac_var=yes" 46802else 46803 echo "$as_me: failed program was:" >&5 46804sed 's/^/| /' conftest.$ac_ext >&5 46805 46806eval "$as_ac_var=no" 46807fi 46808rm -f conftest.err conftest.$ac_objext \ 46809 conftest$ac_exeext conftest.$ac_ext 46810fi 46811echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 46812echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 46813if test `eval echo '${'$as_ac_var'}'` = yes; then 46814 cat >>confdefs.h <<_ACEOF 46815#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 46816_ACEOF 46817 46818fi 46819done 46820 46821 46822 46823 46824 46825for ac_func in snprintf strdup strerror strstr 46826do 46827as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 46828echo "$as_me:$LINENO: checking for $ac_func" >&5 46829echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 46830if eval "test \"\${$as_ac_var+set}\" = set"; then 46831 echo $ECHO_N "(cached) $ECHO_C" >&6 46832else 46833 cat >conftest.$ac_ext <<_ACEOF 46834/* confdefs.h. */ 46835_ACEOF 46836cat confdefs.h >>conftest.$ac_ext 46837cat >>conftest.$ac_ext <<_ACEOF 46838/* end confdefs.h. */ 46839/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 46840 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 46841#define $ac_func innocuous_$ac_func 46842 46843/* System header to define __stub macros and hopefully few prototypes, 46844 which can conflict with char $ac_func (); below. 46845 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 46846 <limits.h> exists even on freestanding compilers. */ 46847 46848#ifdef __STDC__ 46849# include <limits.h> 46850#else 46851# include <assert.h> 46852#endif 46853 46854#undef $ac_func 46855 46856/* Override any gcc2 internal prototype to avoid an error. */ 46857#ifdef __cplusplus 46858extern "C" 46859{ 46860#endif 46861/* We use char because int might match the return type of a gcc2 46862 builtin and then its argument prototype would still apply. */ 46863char $ac_func (); 46864/* The GNU C library defines this for functions which it implements 46865 to always fail with ENOSYS. Some functions are actually named 46866 something starting with __ and the normal name is an alias. */ 46867#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 46868choke me 46869#else 46870char (*f) () = $ac_func; 46871#endif 46872#ifdef __cplusplus 46873} 46874#endif 46875 46876int 46877main () 46878{ 46879return f != $ac_func; 46880 ; 46881 return 0; 46882} 46883_ACEOF 46884rm -f conftest.$ac_objext conftest$ac_exeext 46885if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 46886 (eval $ac_link) 2>conftest.er1 46887 ac_status=$? 46888 grep -v '^ *+' conftest.er1 >conftest.err 46889 rm -f conftest.er1 46890 cat conftest.err >&5 46891 echo "$as_me:$LINENO: \$? = $ac_status" >&5 46892 (exit $ac_status); } && 46893 { ac_try='test -z "$ac_c_werror_flag" 46894 || test ! -s conftest.err' 46895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 46896 (eval $ac_try) 2>&5 46897 ac_status=$? 46898 echo "$as_me:$LINENO: \$? = $ac_status" >&5 46899 (exit $ac_status); }; } && 46900 { ac_try='test -s conftest$ac_exeext' 46901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 46902 (eval $ac_try) 2>&5 46903 ac_status=$? 46904 echo "$as_me:$LINENO: \$? = $ac_status" >&5 46905 (exit $ac_status); }; }; then 46906 eval "$as_ac_var=yes" 46907else 46908 echo "$as_me: failed program was:" >&5 46909sed 's/^/| /' conftest.$ac_ext >&5 46910 46911eval "$as_ac_var=no" 46912fi 46913rm -f conftest.err conftest.$ac_objext \ 46914 conftest$ac_exeext conftest.$ac_ext 46915fi 46916echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 46917echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 46918if test `eval echo '${'$as_ac_var'}'` = yes; then 46919 cat >>confdefs.h <<_ACEOF 46920#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 46921_ACEOF 46922 46923fi 46924done 46925 46926 46927for ac_func in timegm 46928do 46929as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 46930echo "$as_me:$LINENO: checking for $ac_func" >&5 46931echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 46932if eval "test \"\${$as_ac_var+set}\" = set"; then 46933 echo $ECHO_N "(cached) $ECHO_C" >&6 46934else 46935 cat >conftest.$ac_ext <<_ACEOF 46936/* confdefs.h. */ 46937_ACEOF 46938cat confdefs.h >>conftest.$ac_ext 46939cat >>conftest.$ac_ext <<_ACEOF 46940/* end confdefs.h. */ 46941/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 46942 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 46943#define $ac_func innocuous_$ac_func 46944 46945/* System header to define __stub macros and hopefully few prototypes, 46946 which can conflict with char $ac_func (); below. 46947 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 46948 <limits.h> exists even on freestanding compilers. */ 46949 46950#ifdef __STDC__ 46951# include <limits.h> 46952#else 46953# include <assert.h> 46954#endif 46955 46956#undef $ac_func 46957 46958/* Override any gcc2 internal prototype to avoid an error. */ 46959#ifdef __cplusplus 46960extern "C" 46961{ 46962#endif 46963/* We use char because int might match the return type of a gcc2 46964 builtin and then its argument prototype would still apply. */ 46965char $ac_func (); 46966/* The GNU C library defines this for functions which it implements 46967 to always fail with ENOSYS. Some functions are actually named 46968 something starting with __ and the normal name is an alias. */ 46969#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 46970choke me 46971#else 46972char (*f) () = $ac_func; 46973#endif 46974#ifdef __cplusplus 46975} 46976#endif 46977 46978int 46979main () 46980{ 46981return f != $ac_func; 46982 ; 46983 return 0; 46984} 46985_ACEOF 46986rm -f conftest.$ac_objext conftest$ac_exeext 46987if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 46988 (eval $ac_link) 2>conftest.er1 46989 ac_status=$? 46990 grep -v '^ *+' conftest.er1 >conftest.err 46991 rm -f conftest.er1 46992 cat conftest.err >&5 46993 echo "$as_me:$LINENO: \$? = $ac_status" >&5 46994 (exit $ac_status); } && 46995 { ac_try='test -z "$ac_c_werror_flag" 46996 || test ! -s conftest.err' 46997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 46998 (eval $ac_try) 2>&5 46999 ac_status=$? 47000 echo "$as_me:$LINENO: \$? = $ac_status" >&5 47001 (exit $ac_status); }; } && 47002 { ac_try='test -s conftest$ac_exeext' 47003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 47004 (eval $ac_try) 2>&5 47005 ac_status=$? 47006 echo "$as_me:$LINENO: \$? = $ac_status" >&5 47007 (exit $ac_status); }; }; then 47008 eval "$as_ac_var=yes" 47009else 47010 echo "$as_me: failed program was:" >&5 47011sed 's/^/| /' conftest.$ac_ext >&5 47012 47013eval "$as_ac_var=no" 47014fi 47015rm -f conftest.err conftest.$ac_objext \ 47016 conftest$ac_exeext conftest.$ac_ext 47017fi 47018echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 47019echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 47020if test `eval echo '${'$as_ac_var'}'` = yes; then 47021 cat >>confdefs.h <<_ACEOF 47022#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 47023_ACEOF 47024 47025fi 47026done 47027 47028case "$host" in 47029 *-*-aix[45]*) 47030 # Just stubs. Idiots. 47031 ;; 47032 *-*-netbsd1*) 47033 # Just stubs. Idiots. 47034 ;; 47035 *-*-netbsdelf1*) 47036 # Just stubs. Idiots. 47037 ;; 47038 *-*-openbsd*) 47039 # Just stubs. Idiots. 47040 ;; 47041 *) 47042 47043for ac_func in timer_create timer_settime 47044do 47045as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 47046echo "$as_me:$LINENO: checking for $ac_func" >&5 47047echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 47048if eval "test \"\${$as_ac_var+set}\" = set"; then 47049 echo $ECHO_N "(cached) $ECHO_C" >&6 47050else 47051 cat >conftest.$ac_ext <<_ACEOF 47052/* confdefs.h. */ 47053_ACEOF 47054cat confdefs.h >>conftest.$ac_ext 47055cat >>conftest.$ac_ext <<_ACEOF 47056/* end confdefs.h. */ 47057/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 47058 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 47059#define $ac_func innocuous_$ac_func 47060 47061/* System header to define __stub macros and hopefully few prototypes, 47062 which can conflict with char $ac_func (); below. 47063 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 47064 <limits.h> exists even on freestanding compilers. */ 47065 47066#ifdef __STDC__ 47067# include <limits.h> 47068#else 47069# include <assert.h> 47070#endif 47071 47072#undef $ac_func 47073 47074/* Override any gcc2 internal prototype to avoid an error. */ 47075#ifdef __cplusplus 47076extern "C" 47077{ 47078#endif 47079/* We use char because int might match the return type of a gcc2 47080 builtin and then its argument prototype would still apply. */ 47081char $ac_func (); 47082/* The GNU C library defines this for functions which it implements 47083 to always fail with ENOSYS. Some functions are actually named 47084 something starting with __ and the normal name is an alias. */ 47085#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 47086choke me 47087#else 47088char (*f) () = $ac_func; 47089#endif 47090#ifdef __cplusplus 47091} 47092#endif 47093 47094int 47095main () 47096{ 47097return f != $ac_func; 47098 ; 47099 return 0; 47100} 47101_ACEOF 47102rm -f conftest.$ac_objext conftest$ac_exeext 47103if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 47104 (eval $ac_link) 2>conftest.er1 47105 ac_status=$? 47106 grep -v '^ *+' conftest.er1 >conftest.err 47107 rm -f conftest.er1 47108 cat conftest.err >&5 47109 echo "$as_me:$LINENO: \$? = $ac_status" >&5 47110 (exit $ac_status); } && 47111 { ac_try='test -z "$ac_c_werror_flag" 47112 || test ! -s conftest.err' 47113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 47114 (eval $ac_try) 2>&5 47115 ac_status=$? 47116 echo "$as_me:$LINENO: \$? = $ac_status" >&5 47117 (exit $ac_status); }; } && 47118 { ac_try='test -s conftest$ac_exeext' 47119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 47120 (eval $ac_try) 2>&5 47121 ac_status=$? 47122 echo "$as_me:$LINENO: \$? = $ac_status" >&5 47123 (exit $ac_status); }; }; then 47124 eval "$as_ac_var=yes" 47125else 47126 echo "$as_me: failed program was:" >&5 47127sed 's/^/| /' conftest.$ac_ext >&5 47128 47129eval "$as_ac_var=no" 47130fi 47131rm -f conftest.err conftest.$ac_objext \ 47132 conftest$ac_exeext conftest.$ac_ext 47133fi 47134echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 47135echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 47136if test `eval echo '${'$as_ac_var'}'` = yes; then 47137 cat >>confdefs.h <<_ACEOF 47138#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 47139_ACEOF 47140 47141fi 47142done 47143 47144 ;; 47145esac 47146case "$host" in 47147 *-pc-cygwin*) 47148 # I have no idea... 47149 ;; 47150 *) 47151for ac_func in umask 47152do 47153as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 47154echo "$as_me:$LINENO: checking for $ac_func" >&5 47155echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 47156if eval "test \"\${$as_ac_var+set}\" = set"; then 47157 echo $ECHO_N "(cached) $ECHO_C" >&6 47158else 47159 cat >conftest.$ac_ext <<_ACEOF 47160/* confdefs.h. */ 47161_ACEOF 47162cat confdefs.h >>conftest.$ac_ext 47163cat >>conftest.$ac_ext <<_ACEOF 47164/* end confdefs.h. */ 47165/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 47166 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 47167#define $ac_func innocuous_$ac_func 47168 47169/* System header to define __stub macros and hopefully few prototypes, 47170 which can conflict with char $ac_func (); below. 47171 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 47172 <limits.h> exists even on freestanding compilers. */ 47173 47174#ifdef __STDC__ 47175# include <limits.h> 47176#else 47177# include <assert.h> 47178#endif 47179 47180#undef $ac_func 47181 47182/* Override any gcc2 internal prototype to avoid an error. */ 47183#ifdef __cplusplus 47184extern "C" 47185{ 47186#endif 47187/* We use char because int might match the return type of a gcc2 47188 builtin and then its argument prototype would still apply. */ 47189char $ac_func (); 47190/* The GNU C library defines this for functions which it implements 47191 to always fail with ENOSYS. Some functions are actually named 47192 something starting with __ and the normal name is an alias. */ 47193#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 47194choke me 47195#else 47196char (*f) () = $ac_func; 47197#endif 47198#ifdef __cplusplus 47199} 47200#endif 47201 47202int 47203main () 47204{ 47205return f != $ac_func; 47206 ; 47207 return 0; 47208} 47209_ACEOF 47210rm -f conftest.$ac_objext conftest$ac_exeext 47211if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 47212 (eval $ac_link) 2>conftest.er1 47213 ac_status=$? 47214 grep -v '^ *+' conftest.er1 >conftest.err 47215 rm -f conftest.er1 47216 cat conftest.err >&5 47217 echo "$as_me:$LINENO: \$? = $ac_status" >&5 47218 (exit $ac_status); } && 47219 { ac_try='test -z "$ac_c_werror_flag" 47220 || test ! -s conftest.err' 47221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 47222 (eval $ac_try) 2>&5 47223 ac_status=$? 47224 echo "$as_me:$LINENO: \$? = $ac_status" >&5 47225 (exit $ac_status); }; } && 47226 { ac_try='test -s conftest$ac_exeext' 47227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 47228 (eval $ac_try) 2>&5 47229 ac_status=$? 47230 echo "$as_me:$LINENO: \$? = $ac_status" >&5 47231 (exit $ac_status); }; }; then 47232 eval "$as_ac_var=yes" 47233else 47234 echo "$as_me: failed program was:" >&5 47235sed 's/^/| /' conftest.$ac_ext >&5 47236 47237eval "$as_ac_var=no" 47238fi 47239rm -f conftest.err conftest.$ac_objext \ 47240 conftest$ac_exeext conftest.$ac_ext 47241fi 47242echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 47243echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 47244if test `eval echo '${'$as_ac_var'}'` = yes; then 47245 cat >>confdefs.h <<_ACEOF 47246#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 47247_ACEOF 47248 47249fi 47250done 47251 47252 ;; 47253esac 47254 47255 47256 47257 47258 47259for ac_func in uname updwtmp updwtmpx vsnprintf vsprintf 47260do 47261as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 47262echo "$as_me:$LINENO: checking for $ac_func" >&5 47263echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 47264if eval "test \"\${$as_ac_var+set}\" = set"; then 47265 echo $ECHO_N "(cached) $ECHO_C" >&6 47266else 47267 cat >conftest.$ac_ext <<_ACEOF 47268/* confdefs.h. */ 47269_ACEOF 47270cat confdefs.h >>conftest.$ac_ext 47271cat >>conftest.$ac_ext <<_ACEOF 47272/* end confdefs.h. */ 47273/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 47274 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 47275#define $ac_func innocuous_$ac_func 47276 47277/* System header to define __stub macros and hopefully few prototypes, 47278 which can conflict with char $ac_func (); below. 47279 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 47280 <limits.h> exists even on freestanding compilers. */ 47281 47282#ifdef __STDC__ 47283# include <limits.h> 47284#else 47285# include <assert.h> 47286#endif 47287 47288#undef $ac_func 47289 47290/* Override any gcc2 internal prototype to avoid an error. */ 47291#ifdef __cplusplus 47292extern "C" 47293{ 47294#endif 47295/* We use char because int might match the return type of a gcc2 47296 builtin and then its argument prototype would still apply. */ 47297char $ac_func (); 47298/* The GNU C library defines this for functions which it implements 47299 to always fail with ENOSYS. Some functions are actually named 47300 something starting with __ and the normal name is an alias. */ 47301#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 47302choke me 47303#else 47304char (*f) () = $ac_func; 47305#endif 47306#ifdef __cplusplus 47307} 47308#endif 47309 47310int 47311main () 47312{ 47313return f != $ac_func; 47314 ; 47315 return 0; 47316} 47317_ACEOF 47318rm -f conftest.$ac_objext conftest$ac_exeext 47319if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 47320 (eval $ac_link) 2>conftest.er1 47321 ac_status=$? 47322 grep -v '^ *+' conftest.er1 >conftest.err 47323 rm -f conftest.er1 47324 cat conftest.err >&5 47325 echo "$as_me:$LINENO: \$? = $ac_status" >&5 47326 (exit $ac_status); } && 47327 { ac_try='test -z "$ac_c_werror_flag" 47328 || test ! -s conftest.err' 47329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 47330 (eval $ac_try) 2>&5 47331 ac_status=$? 47332 echo "$as_me:$LINENO: \$? = $ac_status" >&5 47333 (exit $ac_status); }; } && 47334 { ac_try='test -s conftest$ac_exeext' 47335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 47336 (eval $ac_try) 2>&5 47337 ac_status=$? 47338 echo "$as_me:$LINENO: \$? = $ac_status" >&5 47339 (exit $ac_status); }; }; then 47340 eval "$as_ac_var=yes" 47341else 47342 echo "$as_me: failed program was:" >&5 47343sed 's/^/| /' conftest.$ac_ext >&5 47344 47345eval "$as_ac_var=no" 47346fi 47347rm -f conftest.err conftest.$ac_objext \ 47348 conftest$ac_exeext conftest.$ac_ext 47349fi 47350echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 47351echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 47352if test `eval echo '${'$as_ac_var'}'` = yes; then 47353 cat >>confdefs.h <<_ACEOF 47354#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 47355_ACEOF 47356 47357fi 47358done 47359 47360 47361### 47362 47363# http://bugs.ntp.isc.org/737 47364case "$ac_cv_func_recvmsg" in 47365 yes) 47366 echo "$as_me:$LINENO: checking if we need extra help to define struct iovec" >&5 47367echo $ECHO_N "checking if we need extra help to define struct iovec... $ECHO_C" >&6 47368 if test "${ac_cv_struct_iovec_help+set}" = set; then 47369 echo $ECHO_N "(cached) $ECHO_C" >&6 47370else 47371 for ac_cv_struct_iovec_help in '0' '1'; do 47372 cat >conftest.$ac_ext <<_ACEOF 47373/* confdefs.h. */ 47374_ACEOF 47375cat confdefs.h >>conftest.$ac_ext 47376cat >>conftest.$ac_ext <<_ACEOF 47377/* end confdefs.h. */ 47378#ifdef HAVE_SYS_TYPES_H 47379#include <sys/types.h> 47380#endif 47381#ifdef HAVE_SYS_SOCKET_H 47382#include <sys/socket.h> 47383#endif 47384#if $ac_cv_struct_iovec_help 47385#include <sys/uio.h> 47386#endif 47387 47388void foo(); 47389void foo() { 47390 ssize_t x; 47391 int s = 0; 47392 struct iovec iov; 47393 struct msghdr mh; 47394 int flags = 0; 47395 47396 mh.msg_iov = &iov; 47397 x = recvmsg(s, &mh, flags); 47398} 47399int 47400main () 47401{ 47402 47403 ; 47404 return 0; 47405} 47406_ACEOF 47407rm -f conftest.$ac_objext 47408if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 47409 (eval $ac_compile) 2>conftest.er1 47410 ac_status=$? 47411 grep -v '^ *+' conftest.er1 >conftest.err 47412 rm -f conftest.er1 47413 cat conftest.err >&5 47414 echo "$as_me:$LINENO: \$? = $ac_status" >&5 47415 (exit $ac_status); } && 47416 { ac_try='test -z "$ac_c_werror_flag" 47417 || test ! -s conftest.err' 47418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 47419 (eval $ac_try) 2>&5 47420 ac_status=$? 47421 echo "$as_me:$LINENO: \$? = $ac_status" >&5 47422 (exit $ac_status); }; } && 47423 { ac_try='test -s conftest.$ac_objext' 47424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 47425 (eval $ac_try) 2>&5 47426 ac_status=$? 47427 echo "$as_me:$LINENO: \$? = $ac_status" >&5 47428 (exit $ac_status); }; }; then 47429 ac_worked=yes ; break 1 47430else 47431 echo "$as_me: failed program was:" >&5 47432sed 's/^/| /' conftest.$ac_ext >&5 47433 47434ac_worked=no 47435fi 47436rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 47437 done 47438 47439fi 47440 case "$ac_worked$ac_cv_struct_iovec_help" in 47441 yes1) 47442 47443cat >>confdefs.h <<\_ACEOF 47444#define HAVE_SYS_UIO_H 1 47445_ACEOF 47446 47447 ans=yes 47448 ;; 47449 *) ans=no 47450 esac 47451 echo "$as_me:$LINENO: result: $ans" >&5 47452echo "${ECHO_T}$ans" >&6 47453 ;; 47454esac 47455 47456case "$host" in 47457 *-*-sunos4*) 47458 47459cat >>confdefs.h <<\_ACEOF 47460#define SPRINTF_CHAR 1 47461_ACEOF 47462 47463 ;; 47464esac 47465 47466echo "$as_me:$LINENO: checking number of arguments to gettimeofday()" >&5 47467echo $ECHO_N "checking number of arguments to gettimeofday()... $ECHO_C" >&6 47468if test "${ac_cv_func_Xettimeofday_nargs+set}" = set; then 47469 echo $ECHO_N "(cached) $ECHO_C" >&6 47470else 47471 cat >conftest.$ac_ext <<_ACEOF 47472/* confdefs.h. */ 47473_ACEOF 47474cat confdefs.h >>conftest.$ac_ext 47475cat >>conftest.$ac_ext <<_ACEOF 47476/* end confdefs.h. */ 47477#include <sys/time.h> 47478int 47479main () 47480{ 47481 47482gettimeofday((struct timeval*)0,(struct timezone*)0); 47483settimeofday((struct timeval*)0,(struct timezone*)0); 47484 47485 ; 47486 return 0; 47487} 47488_ACEOF 47489rm -f conftest.$ac_objext 47490if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 47491 (eval $ac_compile) 2>conftest.er1 47492 ac_status=$? 47493 grep -v '^ *+' conftest.er1 >conftest.err 47494 rm -f conftest.er1 47495 cat conftest.err >&5 47496 echo "$as_me:$LINENO: \$? = $ac_status" >&5 47497 (exit $ac_status); } && 47498 { ac_try='test -z "$ac_c_werror_flag" 47499 || test ! -s conftest.err' 47500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 47501 (eval $ac_try) 2>&5 47502 ac_status=$? 47503 echo "$as_me:$LINENO: \$? = $ac_status" >&5 47504 (exit $ac_status); }; } && 47505 { ac_try='test -s conftest.$ac_objext' 47506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 47507 (eval $ac_try) 2>&5 47508 ac_status=$? 47509 echo "$as_me:$LINENO: \$? = $ac_status" >&5 47510 (exit $ac_status); }; }; then 47511 ac_cv_func_Xettimeofday_nargs=2 47512else 47513 echo "$as_me: failed program was:" >&5 47514sed 's/^/| /' conftest.$ac_ext >&5 47515 47516ac_cv_func_Xettimeofday_nargs=1 47517fi 47518rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 47519 47520fi 47521echo "$as_me:$LINENO: result: $ac_cv_func_Xettimeofday_nargs" >&5 47522echo "${ECHO_T}$ac_cv_func_Xettimeofday_nargs" >&6 47523if test $ac_cv_func_Xettimeofday_nargs = 1; then 47524 47525cat >>confdefs.h <<\_ACEOF 47526#define SYSV_TIMEOFDAY 1 47527_ACEOF 47528 47529fi 47530 47531echo "$as_me:$LINENO: checking number of arguments taken by setpgrp()" >&5 47532echo $ECHO_N "checking number of arguments taken by setpgrp()... $ECHO_C" >&6 47533if test "${ac_cv_func_setpgrp_nargs+set}" = set; then 47534 echo $ECHO_N "(cached) $ECHO_C" >&6 47535else 47536 cat >conftest.$ac_ext <<_ACEOF 47537/* confdefs.h. */ 47538_ACEOF 47539cat confdefs.h >>conftest.$ac_ext 47540cat >>conftest.$ac_ext <<_ACEOF 47541/* end confdefs.h. */ 47542 47543#ifdef HAVE_SYS_TYPES_H 47544# include <sys/types.h> 47545#endif 47546#ifdef HAVE_UNISTD_H 47547# include <unistd.h> 47548#endif 47549 47550int 47551main () 47552{ 47553setpgrp(0,0); 47554 ; 47555 return 0; 47556} 47557_ACEOF 47558rm -f conftest.$ac_objext 47559if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 47560 (eval $ac_compile) 2>conftest.er1 47561 ac_status=$? 47562 grep -v '^ *+' conftest.er1 >conftest.err 47563 rm -f conftest.er1 47564 cat conftest.err >&5 47565 echo "$as_me:$LINENO: \$? = $ac_status" >&5 47566 (exit $ac_status); } && 47567 { ac_try='test -z "$ac_c_werror_flag" 47568 || test ! -s conftest.err' 47569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 47570 (eval $ac_try) 2>&5 47571 ac_status=$? 47572 echo "$as_me:$LINENO: \$? = $ac_status" >&5 47573 (exit $ac_status); }; } && 47574 { ac_try='test -s conftest.$ac_objext' 47575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 47576 (eval $ac_try) 2>&5 47577 ac_status=$? 47578 echo "$as_me:$LINENO: \$? = $ac_status" >&5 47579 (exit $ac_status); }; }; then 47580 ac_cv_func_setpgrp_nargs=2 47581else 47582 echo "$as_me: failed program was:" >&5 47583sed 's/^/| /' conftest.$ac_ext >&5 47584 47585ac_cv_func_setpgrp_nargs=0 47586fi 47587rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 47588 47589fi 47590echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_nargs" >&5 47591echo "${ECHO_T}$ac_cv_func_setpgrp_nargs" >&6 47592if test $ac_cv_func_setpgrp_nargs = 0; then 47593 47594cat >>confdefs.h <<\_ACEOF 47595#define HAVE_SETPGRP_0 1 47596_ACEOF 47597 47598fi 47599 47600save_CFLAGS=$CFLAGS 47601CFLAGS="$CFLAGS -I$srcdir/include" 47602 47603echo "$as_me:$LINENO: checking argument pointer type of qsort()'s compare function and base" >&5 47604echo $ECHO_N "checking argument pointer type of qsort()'s compare function and base... $ECHO_C" >&6 47605if test "${ac_cv_func_qsort_argtype+set}" = set; then 47606 echo $ECHO_N "(cached) $ECHO_C" >&6 47607else 47608 cat >conftest.$ac_ext <<_ACEOF 47609/* confdefs.h. */ 47610_ACEOF 47611cat confdefs.h >>conftest.$ac_ext 47612cat >>conftest.$ac_ext <<_ACEOF 47613/* end confdefs.h. */ 47614 47615#include "l_stdlib.h" 47616 47617#ifdef HAVE_PROTOTYPES 47618#define P(x) x 47619#else 47620#define P(x) () 47621#endif 47622 47623extern void *base; 47624extern sortfunc P((const void *, const void *)); 47625int sortfunc(a, b) 47626 const void *a; 47627 const void *b; { return 0; } 47628 47629int 47630main () 47631{ 47632 47633qsort(base, 2, sizeof(char *), sortfunc); 47634 47635 ; 47636 return 0; 47637} 47638_ACEOF 47639rm -f conftest.$ac_objext 47640if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 47641 (eval $ac_compile) 2>conftest.er1 47642 ac_status=$? 47643 grep -v '^ *+' conftest.er1 >conftest.err 47644 rm -f conftest.er1 47645 cat conftest.err >&5 47646 echo "$as_me:$LINENO: \$? = $ac_status" >&5 47647 (exit $ac_status); } && 47648 { ac_try='test -z "$ac_c_werror_flag" 47649 || test ! -s conftest.err' 47650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 47651 (eval $ac_try) 2>&5 47652 ac_status=$? 47653 echo "$as_me:$LINENO: \$? = $ac_status" >&5 47654 (exit $ac_status); }; } && 47655 { ac_try='test -s conftest.$ac_objext' 47656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 47657 (eval $ac_try) 2>&5 47658 ac_status=$? 47659 echo "$as_me:$LINENO: \$? = $ac_status" >&5 47660 (exit $ac_status); }; }; then 47661 ac_cv_func_qsort_argtype=void 47662else 47663 echo "$as_me: failed program was:" >&5 47664sed 's/^/| /' conftest.$ac_ext >&5 47665 47666ac_cv_func_qsort_argtype=char 47667fi 47668rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 47669 47670fi 47671echo "$as_me:$LINENO: result: $ac_cv_func_qsort_argtype" >&5 47672echo "${ECHO_T}$ac_cv_func_qsort_argtype" >&6 47673case "$ac_cv_func_qsort_argtype" in 47674 void) 47675 47676cat >>confdefs.h <<\_ACEOF 47677#define QSORT_USES_VOID_P 1 47678_ACEOF 47679 47680 ;; 47681esac 47682 47683CFLAGS=$save_CFLAGS 47684 47685echo "$as_me:$LINENO: checking if we need to declare 'errno'" >&5 47686echo $ECHO_N "checking if we need to declare 'errno'... $ECHO_C" >&6 47687if test "${ac_cv_decl_errno+set}" = set; then 47688 echo $ECHO_N "(cached) $ECHO_C" >&6 47689else 47690 cat >conftest.$ac_ext <<_ACEOF 47691/* confdefs.h. */ 47692_ACEOF 47693cat confdefs.h >>conftest.$ac_ext 47694cat >>conftest.$ac_ext <<_ACEOF 47695/* end confdefs.h. */ 47696#ifdef HAVE_ERRNO_H 47697#include <errno.h> 47698#endif 47699int 47700main () 47701{ 47702errno = 0; 47703 ; 47704 return 0; 47705} 47706_ACEOF 47707rm -f conftest.$ac_objext 47708if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 47709 (eval $ac_compile) 2>conftest.er1 47710 ac_status=$? 47711 grep -v '^ *+' conftest.er1 >conftest.err 47712 rm -f conftest.er1 47713 cat conftest.err >&5 47714 echo "$as_me:$LINENO: \$? = $ac_status" >&5 47715 (exit $ac_status); } && 47716 { ac_try='test -z "$ac_c_werror_flag" 47717 || test ! -s conftest.err' 47718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 47719 (eval $ac_try) 2>&5 47720 ac_status=$? 47721 echo "$as_me:$LINENO: \$? = $ac_status" >&5 47722 (exit $ac_status); }; } && 47723 { ac_try='test -s conftest.$ac_objext' 47724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 47725 (eval $ac_try) 2>&5 47726 ac_status=$? 47727 echo "$as_me:$LINENO: \$? = $ac_status" >&5 47728 (exit $ac_status); }; }; then 47729 ac_cv_decl_errno=no 47730else 47731 echo "$as_me: failed program was:" >&5 47732sed 's/^/| /' conftest.$ac_ext >&5 47733 47734ac_cv_decl_errno=yes 47735fi 47736rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 47737fi 47738echo "$as_me:$LINENO: result: $ac_cv_decl_errno" >&5 47739echo "${ECHO_T}$ac_cv_decl_errno" >&6 47740case "$ac_cv_decl_errno" in 47741 yes) 47742cat >>confdefs.h <<\_ACEOF 47743#define DECL_ERRNO 1 47744_ACEOF 47745 ;; 47746esac 47747 47748echo "$as_me:$LINENO: checking if we may declare 'h_errno'" >&5 47749echo $ECHO_N "checking if we may declare 'h_errno'... $ECHO_C" >&6 47750if test "${ac_cv_decl_h_errno+set}" = set; then 47751 echo $ECHO_N "(cached) $ECHO_C" >&6 47752else 47753 cat >conftest.$ac_ext <<_ACEOF 47754/* confdefs.h. */ 47755_ACEOF 47756cat confdefs.h >>conftest.$ac_ext 47757cat >>conftest.$ac_ext <<_ACEOF 47758/* end confdefs.h. */ 47759#include <sys/types.h> 47760#ifdef HAVE_NETINET_IN_H 47761#include <netinet/in.h> 47762#endif 47763#ifdef HAVE_ARPA_NAMESER_H 47764#include <arpa/nameser.h> 47765#endif 47766#ifdef HAVE_NETDB_H 47767#include <netdb.h> 47768#endif 47769#ifdef HAVE_RESOLV_H 47770#include <resolv.h> 47771#endif 47772int 47773main () 47774{ 47775extern int h_errno; 47776 ; 47777 return 0; 47778} 47779_ACEOF 47780rm -f conftest.$ac_objext 47781if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 47782 (eval $ac_compile) 2>conftest.er1 47783 ac_status=$? 47784 grep -v '^ *+' conftest.er1 >conftest.err 47785 rm -f conftest.er1 47786 cat conftest.err >&5 47787 echo "$as_me:$LINENO: \$? = $ac_status" >&5 47788 (exit $ac_status); } && 47789 { ac_try='test -z "$ac_c_werror_flag" 47790 || test ! -s conftest.err' 47791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 47792 (eval $ac_try) 2>&5 47793 ac_status=$? 47794 echo "$as_me:$LINENO: \$? = $ac_status" >&5 47795 (exit $ac_status); }; } && 47796 { ac_try='test -s conftest.$ac_objext' 47797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 47798 (eval $ac_try) 2>&5 47799 ac_status=$? 47800 echo "$as_me:$LINENO: \$? = $ac_status" >&5 47801 (exit $ac_status); }; }; then 47802 ac_cv_decl_h_errno=yes 47803else 47804 echo "$as_me: failed program was:" >&5 47805sed 's/^/| /' conftest.$ac_ext >&5 47806 47807ac_cv_decl_h_errno=no 47808fi 47809rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 47810fi 47811echo "$as_me:$LINENO: result: $ac_cv_decl_h_errno" >&5 47812echo "${ECHO_T}$ac_cv_decl_h_errno" >&6 47813case "$ac_cv_decl_h_errno" in 47814 yes) 47815cat >>confdefs.h <<\_ACEOF 47816#define DECL_H_ERRNO 1 47817_ACEOF 47818 ;; 47819esac 47820 47821echo "$as_me:$LINENO: checking if declaring 'char *sys_errlist[]' is ok" >&5 47822echo $ECHO_N "checking if declaring 'char *sys_errlist[]' is ok... $ECHO_C" >&6 47823if test "${ac_cv_decl_sys_errlist+set}" = set; then 47824 echo $ECHO_N "(cached) $ECHO_C" >&6 47825else 47826 cat >conftest.$ac_ext <<_ACEOF 47827/* confdefs.h. */ 47828_ACEOF 47829cat confdefs.h >>conftest.$ac_ext 47830cat >>conftest.$ac_ext <<_ACEOF 47831/* end confdefs.h. */ 47832#include <stdio.h> 47833#ifdef HAVE_ERRNO_H 47834#include <errno.h> 47835#endif 47836int 47837main () 47838{ 47839extern char *sys_errlist[]; 47840 47841 ; 47842 return 0; 47843} 47844_ACEOF 47845rm -f conftest.$ac_objext 47846if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 47847 (eval $ac_compile) 2>conftest.er1 47848 ac_status=$? 47849 grep -v '^ *+' conftest.er1 >conftest.err 47850 rm -f conftest.er1 47851 cat conftest.err >&5 47852 echo "$as_me:$LINENO: \$? = $ac_status" >&5 47853 (exit $ac_status); } && 47854 { ac_try='test -z "$ac_c_werror_flag" 47855 || test ! -s conftest.err' 47856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 47857 (eval $ac_try) 2>&5 47858 ac_status=$? 47859 echo "$as_me:$LINENO: \$? = $ac_status" >&5 47860 (exit $ac_status); }; } && 47861 { ac_try='test -s conftest.$ac_objext' 47862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 47863 (eval $ac_try) 2>&5 47864 ac_status=$? 47865 echo "$as_me:$LINENO: \$? = $ac_status" >&5 47866 (exit $ac_status); }; }; then 47867 ac_cv_decl_sys_errlist=yes 47868else 47869 echo "$as_me: failed program was:" >&5 47870sed 's/^/| /' conftest.$ac_ext >&5 47871 47872ac_cv_decl_sys_errlist=no 47873fi 47874rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 47875fi 47876echo "$as_me:$LINENO: result: $ac_cv_decl_sys_errlist" >&5 47877echo "${ECHO_T}$ac_cv_decl_sys_errlist" >&6 47878case "$ac_cv_decl_sys_errlist" in 47879 yes) 47880cat >>confdefs.h <<\_ACEOF 47881#define CHAR_SYS_ERRLIST 1 47882_ACEOF 47883 ;; 47884esac 47885 47886echo "$as_me:$LINENO: checking if declaring 'syscall()' is ok" >&5 47887echo $ECHO_N "checking if declaring 'syscall()' is ok... $ECHO_C" >&6 47888if test "${ac_cv_decl_syscall+set}" = set; then 47889 echo $ECHO_N "(cached) $ECHO_C" >&6 47890else 47891 cat >conftest.$ac_ext <<_ACEOF 47892/* confdefs.h. */ 47893_ACEOF 47894cat confdefs.h >>conftest.$ac_ext 47895cat >>conftest.$ac_ext <<_ACEOF 47896/* end confdefs.h. */ 47897 47898#ifdef HAVE_SYS_TYPES_H 47899# include <sys/types.h> 47900#endif 47901#ifdef HAVE_UNISTD_H 47902# include <unistd.h> 47903#endif 47904#ifdef HAVE_PROTOTYPES 47905#define P(x) x 47906#else 47907#define P(x) () 47908#endif 47909 47910int 47911main () 47912{ 47913extern int syscall P((int, ...)); 47914 ; 47915 return 0; 47916} 47917_ACEOF 47918rm -f conftest.$ac_objext 47919if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 47920 (eval $ac_compile) 2>conftest.er1 47921 ac_status=$? 47922 grep -v '^ *+' conftest.er1 >conftest.err 47923 rm -f conftest.er1 47924 cat conftest.err >&5 47925 echo "$as_me:$LINENO: \$? = $ac_status" >&5 47926 (exit $ac_status); } && 47927 { ac_try='test -z "$ac_c_werror_flag" 47928 || test ! -s conftest.err' 47929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 47930 (eval $ac_try) 2>&5 47931 ac_status=$? 47932 echo "$as_me:$LINENO: \$? = $ac_status" >&5 47933 (exit $ac_status); }; } && 47934 { ac_try='test -s conftest.$ac_objext' 47935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 47936 (eval $ac_try) 2>&5 47937 ac_status=$? 47938 echo "$as_me:$LINENO: \$? = $ac_status" >&5 47939 (exit $ac_status); }; }; then 47940 ac_cv_decl_syscall=yes 47941else 47942 echo "$as_me: failed program was:" >&5 47943sed 's/^/| /' conftest.$ac_ext >&5 47944 47945ac_cv_decl_syscall=no 47946fi 47947rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 47948fi 47949echo "$as_me:$LINENO: result: $ac_cv_decl_syscall" >&5 47950echo "${ECHO_T}$ac_cv_decl_syscall" >&6 47951case "$ac_cv_decl_syscall" in 47952 yes) 47953cat >>confdefs.h <<\_ACEOF 47954#define DECL_SYSCALL 1 47955_ACEOF 47956 ;; 47957esac 47958 47959case "$host" in 47960 *-*-aix4.3.*) 47961 47962cat >>confdefs.h <<\_ACEOF 47963#define DECL_HSTRERROR_0 1 47964_ACEOF 47965 # Needed for XLC under AIX 4.3.2 47966 ;; 47967 *-*-mpeix*) 47968 47969cat >>confdefs.h <<\_ACEOF 47970#define DECL_ADJTIME_0 1 47971_ACEOF 47972 47973 47974cat >>confdefs.h <<\_ACEOF 47975#define DECL_INET_NTOA_0 1 47976_ACEOF 47977 47978 47979cat >>confdefs.h <<\_ACEOF 47980#define DECL_MKTEMP_0 1 47981_ACEOF 47982 47983 47984cat >>confdefs.h <<\_ACEOF 47985#define DECL_SELECT_0 1 47986_ACEOF 47987 47988 47989cat >>confdefs.h <<\_ACEOF 47990#define DECL_SETITIMER_0 1 47991_ACEOF 47992 47993 47994cat >>confdefs.h <<\_ACEOF 47995#define DECL_SYSLOG_0 1 47996_ACEOF 47997 47998 47999cat >>confdefs.h <<\_ACEOF 48000#define DECL_TIMEOFDAY_0 1 48001_ACEOF 48002 48003 ;; 48004 *-*-osf[45]*) 48005 48006cat >>confdefs.h <<\_ACEOF 48007#define DECL_PLOCK_0 1 48008_ACEOF 48009 48010 48011cat >>confdefs.h <<\_ACEOF 48012#define DECL_STIME_1 1 48013_ACEOF 48014 48015 ;; 48016 *-*-qnx*) 48017 48018cat >>confdefs.h <<\_ACEOF 48019#define DECL_ADJTIME_0 1 48020_ACEOF 48021 48022 ;; 48023 *-*-riscos4*) 48024 48025cat >>confdefs.h <<\_ACEOF 48026#define DECL_ADJTIME_0 1 48027_ACEOF 48028 48029 48030cat >>confdefs.h <<\_ACEOF 48031#define DECL_BZERO_0 1 48032_ACEOF 48033 48034 48035cat >>confdefs.h <<\_ACEOF 48036#define DECL_IOCTL_0 1 48037_ACEOF 48038 48039 48040cat >>confdefs.h <<\_ACEOF 48041#define DECL_IPC_0 1 48042_ACEOF 48043 48044 48045cat >>confdefs.h <<\_ACEOF 48046#define DECL_MEMMOVE_0 1 48047_ACEOF 48048 48049 48050cat >>confdefs.h <<\_ACEOF 48051#define DECL_MKTEMP_0 1 48052_ACEOF 48053 48054 48055cat >>confdefs.h <<\_ACEOF 48056#define DECL_RENAME_0 1 48057_ACEOF 48058 48059 48060cat >>confdefs.h <<\_ACEOF 48061#define DECL_SELECT_0 1 48062_ACEOF 48063 48064 48065cat >>confdefs.h <<\_ACEOF 48066#define DECL_SETITIMER_0 1 48067_ACEOF 48068 48069 48070cat >>confdefs.h <<\_ACEOF 48071#define DECL_SETPRIORITY_0 1 48072_ACEOF 48073 48074 48075cat >>confdefs.h <<\_ACEOF 48076#define DECL_STDIO_0 1 48077_ACEOF 48078 48079 48080cat >>confdefs.h <<\_ACEOF 48081#define DECL_STRTOL_0 1 48082_ACEOF 48083 48084 48085cat >>confdefs.h <<\_ACEOF 48086#define DECL_SYSLOG_0 1 48087_ACEOF 48088 48089 48090cat >>confdefs.h <<\_ACEOF 48091#define DECL_TIME_0 1 48092_ACEOF 48093 48094 48095cat >>confdefs.h <<\_ACEOF 48096#define DECL_TIMEOFDAY_0 1 48097_ACEOF 48098 48099 48100cat >>confdefs.h <<\_ACEOF 48101#define DECL_TOLOWER_0 1 48102_ACEOF 48103 48104 ;; 48105 *-*-solaris2*) 48106 48107cat >>confdefs.h <<\_ACEOF 48108#define DECL_MKSTEMP_0 1 48109_ACEOF 48110 48111 48112cat >>confdefs.h <<\_ACEOF 48113#define DECL_SETPRIORITY_1 1 48114_ACEOF 48115 48116 case "$host" in 48117 *-*-solaris2.4) 48118 48119cat >>confdefs.h <<\_ACEOF 48120#define DECL_TIMEOFDAY_0 1 48121_ACEOF 48122 48123 ;; 48124 esac 48125 ;; 48126 *-*-sunos4*) 48127 48128cat >>confdefs.h <<\_ACEOF 48129#define DECL_ADJTIME_0 1 48130_ACEOF 48131 48132 48133cat >>confdefs.h <<\_ACEOF 48134#define DECL_BCOPY_0 1 48135_ACEOF 48136 48137 48138cat >>confdefs.h <<\_ACEOF 48139#define DECL_BZERO_0 1 48140_ACEOF 48141 48142 48143cat >>confdefs.h <<\_ACEOF 48144#define DECL_IOCTL_0 1 48145_ACEOF 48146 48147 48148cat >>confdefs.h <<\_ACEOF 48149#define DECL_IPC_0 1 48150_ACEOF 48151 48152 48153cat >>confdefs.h <<\_ACEOF 48154#define DECL_MEMMOVE_0 1 48155_ACEOF 48156 48157 48158cat >>confdefs.h <<\_ACEOF 48159#define DECL_MKTEMP_0 1 48160_ACEOF 48161 48162 48163cat >>confdefs.h <<\_ACEOF 48164#define DECL_MKSTEMP_0 1 48165_ACEOF 48166 48167 48168cat >>confdefs.h <<\_ACEOF 48169#define DECL_RENAME_0 1 48170_ACEOF 48171 48172 48173cat >>confdefs.h <<\_ACEOF 48174#define DECL_SELECT_0 1 48175_ACEOF 48176 48177 48178cat >>confdefs.h <<\_ACEOF 48179#define DECL_SETITIMER_0 1 48180_ACEOF 48181 48182 48183cat >>confdefs.h <<\_ACEOF 48184#define DECL_SETPRIORITY_0 1 48185_ACEOF 48186 48187 48188cat >>confdefs.h <<\_ACEOF 48189#define DECL_SIGVEC_0 1 48190_ACEOF 48191 48192 case "`basename $ac_cv_prog_CC`" in 48193 acc*) ;; 48194 *) 48195cat >>confdefs.h <<\_ACEOF 48196#define DECL_STDIO_0 1 48197_ACEOF 48198 48199 ;; 48200 esac 48201 48202cat >>confdefs.h <<\_ACEOF 48203#define DECL_STRTOL_0 1 48204_ACEOF 48205 48206 48207cat >>confdefs.h <<\_ACEOF 48208#define DECL_SYSLOG_0 1 48209_ACEOF 48210 48211 48212cat >>confdefs.h <<\_ACEOF 48213#define DECL_TIME_0 1 48214_ACEOF 48215 48216 48217cat >>confdefs.h <<\_ACEOF 48218#define DECL_TIMEOFDAY_0 1 48219_ACEOF 48220 48221 48222cat >>confdefs.h <<\_ACEOF 48223#define DECL_TOLOWER_0 1 48224_ACEOF 48225 48226 48227cat >>confdefs.h <<\_ACEOF 48228#define DECL_TOUPPER_0 1 48229_ACEOF 48230 48231 48232cat >>confdefs.h <<\_ACEOF 48233#define DECL_STRERROR_0 1 48234_ACEOF 48235 48236 ;; 48237 *-*-ultrix4*) 48238 48239cat >>confdefs.h <<\_ACEOF 48240#define DECL_ADJTIME_0 1 48241_ACEOF 48242 48243 48244cat >>confdefs.h <<\_ACEOF 48245#define DECL_BZERO_0 1 48246_ACEOF 48247 48248 48249cat >>confdefs.h <<\_ACEOF 48250#define DECL_CFSETISPEED_0 1 48251_ACEOF 48252 48253 48254cat >>confdefs.h <<\_ACEOF 48255#define DECL_IOCTL_0 1 48256_ACEOF 48257 48258 48259cat >>confdefs.h <<\_ACEOF 48260#define DECL_IPC_0 1 48261_ACEOF 48262 48263 48264cat >>confdefs.h <<\_ACEOF 48265#define DECL_MKTEMP_0 1 48266_ACEOF 48267 48268 48269cat >>confdefs.h <<\_ACEOF 48270#define DECL_NLIST_0 1 48271_ACEOF 48272 48273 48274cat >>confdefs.h <<\_ACEOF 48275#define DECL_PLOCK_0 1 48276_ACEOF 48277 48278 48279cat >>confdefs.h <<\_ACEOF 48280#define DECL_SELECT_0 1 48281_ACEOF 48282 48283 48284cat >>confdefs.h <<\_ACEOF 48285#define DECL_SETITIMER_0 1 48286_ACEOF 48287 48288 48289cat >>confdefs.h <<\_ACEOF 48290#define DECL_SETPRIORITY_0 1 48291_ACEOF 48292 48293 48294cat >>confdefs.h <<\_ACEOF 48295#define DECL_STIME_0 1 48296_ACEOF 48297 48298 48299cat >>confdefs.h <<\_ACEOF 48300#define DECL_SYSLOG_0 1 48301_ACEOF 48302 48303 48304cat >>confdefs.h <<\_ACEOF 48305#define DECL_TIMEOFDAY_0 1 48306_ACEOF 48307 48308 ;; 48309esac 48310 48311case "$host" in 48312 *-*-sco3.2*) 48313 48314cat >>confdefs.h <<\_ACEOF 48315#define TERMIOS_NEEDS__SVID3 1 48316_ACEOF 48317 48318 ;; 48319esac 48320 48321echo "$as_me:$LINENO: checking if we need extra room for SO_RCVBUF" >&5 48322echo $ECHO_N "checking if we need extra room for SO_RCVBUF... $ECHO_C" >&6 48323if test "${ac_cv_var_rcvbuf_slop+set}" = set; then 48324 echo $ECHO_N "(cached) $ECHO_C" >&6 48325else 48326 ans=no 48327case "$host" in 48328 *-*-hpux[567]*) 48329 ans=yes 48330 ;; 48331esac 48332ac_cv_var_rcvbuf_slop=$ans 48333fi 48334echo "$as_me:$LINENO: result: $ac_cv_var_rcvbuf_slop" >&5 48335echo "${ECHO_T}$ac_cv_var_rcvbuf_slop" >&6 48336case "$ac_cv_var_rcvbuf_slop" in 48337 yes) 48338cat >>confdefs.h <<\_ACEOF 48339#define NEED_RCVBUF_SLOP 1 48340_ACEOF 48341 ;; 48342esac 48343 48344echo "$as_me:$LINENO: checking if we will open the broadcast socket" >&5 48345echo $ECHO_N "checking if we will open the broadcast socket... $ECHO_C" >&6 48346if test "${ac_cv_var_open_bcast_socket+set}" = set; then 48347 echo $ECHO_N "(cached) $ECHO_C" >&6 48348else 48349 ans=yes 48350case "$host" in 48351 *-*-domainos) 48352 ans=no 48353 ;; 48354esac 48355ac_cv_var_open_bcast_socket=$ans 48356fi 48357echo "$as_me:$LINENO: result: $ac_cv_var_open_bcast_socket" >&5 48358echo "${ECHO_T}$ac_cv_var_open_bcast_socket" >&6 48359case "$ac_cv_var_open_bcast_socket" in 48360 yes) 48361cat >>confdefs.h <<\_ACEOF 48362#define OPEN_BCAST_SOCKET 1 48363_ACEOF 48364 ;; 48365esac 48366 48367echo "$as_me:$LINENO: checking if we want the HPUX version of FindConfig()" >&5 48368echo $ECHO_N "checking if we want the HPUX version of FindConfig()... $ECHO_C" >&6 48369if test "${ac_cv_var_hpux_findconfig+set}" = set; then 48370 echo $ECHO_N "(cached) $ECHO_C" >&6 48371else 48372 ans=no 48373case "$host" in 48374 *-*-hpux*) 48375 ans=yes 48376 ;; 48377esac 48378ac_cv_var_hpux_findconfig=$ans 48379fi 48380echo "$as_me:$LINENO: result: $ac_cv_var_hpux_findconfig" >&5 48381echo "${ECHO_T}$ac_cv_var_hpux_findconfig" >&6 48382case "$ac_cv_var_hpux_findconfig" in 48383 yes) 48384cat >>confdefs.h <<\_ACEOF 48385#define NEED_HPUX_FINDCONFIG 1 48386_ACEOF 48387 ;; 48388esac 48389 48390echo "$as_me:$LINENO: checking if process groups are set with -pid" >&5 48391echo $ECHO_N "checking if process groups are set with -pid... $ECHO_C" >&6 48392if test "${ac_cv_arg_setpgrp_negpid+set}" = set; then 48393 echo $ECHO_N "(cached) $ECHO_C" >&6 48394else 48395 case "$host" in 48396 *-*-hpux[567]*) 48397 ans=no 48398 ;; 48399 *-*-hpux*) 48400 ans=yes 48401 ;; 48402 *-*-linux*) 48403 ans=yes 48404 ;; 48405 *-*-sunos3*) 48406 ans=yes 48407 ;; 48408 *-*-ultrix2*) 48409 ans=yes 48410 ;; 48411 *) 48412 ans=no 48413 ;; 48414esac 48415ac_cv_arg_setpgrp_negpid=$ans 48416fi 48417echo "$as_me:$LINENO: result: $ac_cv_arg_setpgrp_negpid" >&5 48418echo "${ECHO_T}$ac_cv_arg_setpgrp_negpid" >&6 48419case "$ac_cv_arg_setpgrp_negpid" in 48420 yes) 48421cat >>confdefs.h <<\_ACEOF 48422#define UDP_BACKWARDS_SETOWN 1 48423_ACEOF 48424 ;; 48425esac 48426 48427echo "$as_me:$LINENO: checking if we need a ctty for F_SETOWN" >&5 48428echo $ECHO_N "checking if we need a ctty for F_SETOWN... $ECHO_C" >&6 48429if test "${ac_cv_func_ctty_for_f_setown+set}" = set; then 48430 echo $ECHO_N "(cached) $ECHO_C" >&6 48431else 48432 case "$host" in 48433 *-*-bsdi[23]*) 48434 ans=yes 48435 ;; 48436 *-*-freebsd*) 48437 ans=yes 48438 ;; 48439 *-*-netbsd*3.[0-8]*|*-*-netbsd*[0-2].*|*-*-netbsd*3.99.[0-7]) 48440 ans=yes 48441 ;; 48442 *-*-openbsd*) 48443 ans=yes 48444 ;; 48445 *-*-osf*) 48446 ans=yes 48447 ;; 48448 *) ans=no 48449 ;; 48450esac 48451ac_cv_func_ctty_for_f_setown=$ans 48452fi 48453echo "$as_me:$LINENO: result: $ac_cv_func_ctty_for_f_setown" >&5 48454echo "${ECHO_T}$ac_cv_func_ctty_for_f_setown" >&6 48455case "$ac_cv_func_ctty_for_f_setown" in 48456 yes) 48457cat >>confdefs.h <<\_ACEOF 48458#define USE_FSETOWNCTTY 1 48459_ACEOF 48460 ;; 48461esac 48462 48463echo "$as_me:$LINENO: checking if the OS misses to clear cached routes when more specific routes become available" >&5 48464echo $ECHO_N "checking if the OS misses to clear cached routes when more specific routes become available... $ECHO_C" >&6 48465if test "${ac_cv_os_routeupdates+set}" = set; then 48466 echo $ECHO_N "(cached) $ECHO_C" >&6 48467else 48468 case "$host" in 48469 *-*-netbsd*) 48470 ans=yes 48471 ;; 48472 *) ans=no 48473 ;; 48474esac 48475ac_cv_os_routeupdates=$ans 48476fi 48477echo "$as_me:$LINENO: result: $ac_cv_os_routeupdates" >&5 48478echo "${ECHO_T}$ac_cv_os_routeupdates" >&6 48479case "$ac_cv_os_routeupdates" in 48480 yes) 48481cat >>confdefs.h <<\_ACEOF 48482#define OS_MISSES_SPECIFIC_ROUTE_UPDATES 1 48483_ACEOF 48484 ;; 48485esac 48486 48487echo "$as_me:$LINENO: checking if the OS needs the wildcard socket set to REUSEADDR for binding interface addresses" >&5 48488echo $ECHO_N "checking if the OS needs the wildcard socket set to REUSEADDR for binding interface addresses... $ECHO_C" >&6 48489if test "${ac_cv_os_wildcardreuse+set}" = set; then 48490 echo $ECHO_N "(cached) $ECHO_C" >&6 48491else 48492 case "$host" in 48493 *-*-linux*) 48494 ans=yes 48495 ;; 48496 *) ans=no 48497 ;; 48498esac 48499ac_cv_os_wildcardreuse=$ans 48500fi 48501echo "$as_me:$LINENO: result: $ac_cv_os_wildcardreuse" >&5 48502echo "${ECHO_T}$ac_cv_os_wildcardreuse" >&6 48503case "$ac_cv_os_wildcardreuse" in 48504 yes) 48505cat >>confdefs.h <<\_ACEOF 48506#define OS_NEEDS_REUSEADDR_FOR_IFADDRBIND 1 48507_ACEOF 48508 ;; 48509esac 48510 48511ntp_warning='GRONK' 48512echo "$as_me:$LINENO: checking if we'll use clock_settime or settimeofday or stime" >&5 48513echo $ECHO_N "checking if we'll use clock_settime or settimeofday or stime... $ECHO_C" >&6 48514case "$ac_cv_func_clock_settime$ac_cv_func_settimeofday$ac_cv_func_stime" in 48515 yes*) 48516 ntp_warning='' 48517 ans='clock_settime()' 48518 ;; 48519 noyes*) 48520 ntp_warning='But clock_settime() would be better (if we had it)' 48521 ans='settimeofday()' 48522 ;; 48523 nonoyes) 48524 ntp_warning='Which is the worst of the three' 48525 ans='stime()' 48526 ;; 48527 *) 48528 case "$build" in 48529 $host) ntp_warning='Which leaves us with nothing to use!' 48530 ans=none 48531 ;; 48532esac 48533esac 48534echo "$as_me:$LINENO: result: $ans" >&5 48535echo "${ECHO_T}$ans" >&6 48536case "$ntp_warning" in 48537 '') ;; 48538 *) { echo "$as_me:$LINENO: WARNING: *** $ntp_warning ***" >&5 48539echo "$as_me: WARNING: *** $ntp_warning ***" >&2;} 48540 ;; 48541esac 48542 48543echo "$as_me:$LINENO: checking if we have a losing syscall()" >&5 48544echo $ECHO_N "checking if we have a losing syscall()... $ECHO_C" >&6 48545if test "${ac_cv_var_syscall_bug+set}" = set; then 48546 echo $ECHO_N "(cached) $ECHO_C" >&6 48547else 48548 case "$host" in 48549 *-*-solaris2.4*) 48550 ans=yes 48551 ;; 48552 *) ans=no 48553 ;; 48554esac 48555ac_cv_var_syscall_bug=$ans 48556fi 48557echo "$as_me:$LINENO: result: $ac_cv_var_syscall_bug" >&5 48558echo "${ECHO_T}$ac_cv_var_syscall_bug" >&6 48559case "$ac_cv_var_syscall_bug" in 48560 yes) 48561cat >>confdefs.h <<\_ACEOF 48562#define SYSCALL_BUG 1 48563_ACEOF 48564 ;; 48565esac 48566 48567echo "$as_me:$LINENO: checking for SIGIO" >&5 48568echo $ECHO_N "checking for SIGIO... $ECHO_C" >&6 48569if test "${ac_cv_hdr_def_sigio+set}" = set; then 48570 echo $ECHO_N "(cached) $ECHO_C" >&6 48571else 48572 cat >conftest.$ac_ext <<_ACEOF 48573/* confdefs.h. */ 48574_ACEOF 48575cat confdefs.h >>conftest.$ac_ext 48576cat >>conftest.$ac_ext <<_ACEOF 48577/* end confdefs.h. */ 48578#include <signal.h> 48579#ifdef SIGIO 48580 yes 48581#endif 48582 48583_ACEOF 48584if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 48585 $EGREP "yes" >/dev/null 2>&1; then 48586 ac_cv_hdr_def_sigio=yes 48587else 48588 ac_cv_hdr_def_sigio=no 48589fi 48590rm -f conftest* 48591 48592fi 48593echo "$as_me:$LINENO: result: $ac_cv_hdr_def_sigio" >&5 48594echo "${ECHO_T}$ac_cv_hdr_def_sigio" >&6 48595 48596echo "$as_me:$LINENO: checking if we want to use signalled IO" >&5 48597echo $ECHO_N "checking if we want to use signalled IO... $ECHO_C" >&6 48598if test "${ac_cv_var_signalled_io+set}" = set; then 48599 echo $ECHO_N "(cached) $ECHO_C" >&6 48600else 48601 ans=no 48602case "$ac_cv_hdr_def_sigio" in 48603 yes) 48604 ans=yes 48605 case "$host" in 48606 alpha*-dec-osf4*|alpha*-dec-osf5*) 48607 ans=no 48608 ;; 48609 *-convex-*) 48610 ans=no 48611 ;; 48612 *-dec-*) 48613 ans=no 48614 ;; 48615 *-pc-cygwin*) 48616 ans=no 48617 ;; 48618 *-sni-sysv*) 48619 ans=no 48620 ;; 48621 *-univel-sysv*) 48622 ans=no 48623 ;; 48624 *-*-irix6*) 48625 ans=no 48626 ;; 48627 *-*-freebsd*) 48628 ans=no 48629 ;; 48630 *-*-linux*) 48631 ans=no 48632 ;; 48633 *-*-unicosmp*) 48634 ans=no 48635 ;; 48636 esac 48637 ;; 48638esac 48639ac_cv_var_signalled_io=$ans 48640fi 48641echo "$as_me:$LINENO: result: $ac_cv_var_signalled_io" >&5 48642echo "${ECHO_T}$ac_cv_var_signalled_io" >&6 48643case "$ac_cv_var_signalled_io" in 48644 yes) 48645cat >>confdefs.h <<\_ACEOF 48646#define HAVE_SIGNALED_IO 1 48647_ACEOF 48648 ;; 48649esac 48650 48651echo "$as_me:$LINENO: checking for SIGPOLL" >&5 48652echo $ECHO_N "checking for SIGPOLL... $ECHO_C" >&6 48653if test "${ac_cv_hdr_def_sigpoll+set}" = set; then 48654 echo $ECHO_N "(cached) $ECHO_C" >&6 48655else 48656 cat >conftest.$ac_ext <<_ACEOF 48657/* confdefs.h. */ 48658_ACEOF 48659cat confdefs.h >>conftest.$ac_ext 48660cat >>conftest.$ac_ext <<_ACEOF 48661/* end confdefs.h. */ 48662#include <signal.h> 48663#ifdef SIGPOLL 48664 yes 48665#endif 48666 48667_ACEOF 48668if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 48669 $EGREP "yes" >/dev/null 2>&1; then 48670 ac_cv_hdr_def_sigpoll=yes 48671else 48672 ac_cv_hdr_def_sigpoll=no 48673fi 48674rm -f conftest* 48675 48676fi 48677echo "$as_me:$LINENO: result: $ac_cv_hdr_def_sigpoll" >&5 48678echo "${ECHO_T}$ac_cv_hdr_def_sigpoll" >&6 48679 48680echo "$as_me:$LINENO: checking for SIGSYS" >&5 48681echo $ECHO_N "checking for SIGSYS... $ECHO_C" >&6 48682if test "${ac_cv_hdr_def_sigsys+set}" = set; then 48683 echo $ECHO_N "(cached) $ECHO_C" >&6 48684else 48685 cat >conftest.$ac_ext <<_ACEOF 48686/* confdefs.h. */ 48687_ACEOF 48688cat confdefs.h >>conftest.$ac_ext 48689cat >>conftest.$ac_ext <<_ACEOF 48690/* end confdefs.h. */ 48691#include <signal.h> 48692#ifdef SIGSYS 48693 yes 48694#endif 48695 48696_ACEOF 48697if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 48698 $EGREP "yes" >/dev/null 2>&1; then 48699 ac_cv_hdr_def_sigsys=yes 48700else 48701 ac_cv_hdr_def_sigsys=no 48702fi 48703rm -f conftest* 48704 48705fi 48706echo "$as_me:$LINENO: result: $ac_cv_hdr_def_sigsys" >&5 48707echo "${ECHO_T}$ac_cv_hdr_def_sigsys" >&6 48708 48709echo "$as_me:$LINENO: checking if we can use SIGPOLL for UDP I/O" >&5 48710echo $ECHO_N "checking if we can use SIGPOLL for UDP I/O... $ECHO_C" >&6 48711if test "${ac_cv_var_use_udp_sigpoll+set}" = set; then 48712 echo $ECHO_N "(cached) $ECHO_C" >&6 48713else 48714 ans=no 48715case "$ac_cv_hdr_def_sigpoll" in 48716 yes) 48717 case "$host" in 48718 mips-sgi-irix*) 48719 ans=no 48720 ;; 48721 vax-dec-bsd) 48722 ans=no 48723 ;; 48724 *-pc-cygwin*) 48725 ans=no 48726 ;; 48727 *-sni-sysv*) 48728 ans=no 48729 ;; 48730 *-*-aix[45]*) 48731 ans=no 48732 ;; 48733 *-*-hpux*) 48734 ans=no 48735 ;; 48736 *-*-linux*) 48737 ans=no 48738 ;; 48739 *-*-osf*) 48740 ans=no 48741 ;; 48742 *-*-qnx*) 48743 ans=no 48744 ;; 48745 *-*-sunos*) 48746 ans=no 48747 ;; 48748 *-*-ultrix*) 48749 ans=no 48750 ;; 48751 *-*-unicosmp*) 48752 ans=no 48753 ;; 48754 *) ans=yes 48755 ;; 48756 esac 48757 ;; 48758esac 48759ac_cv_var_use_udp_sigpoll=$ans 48760fi 48761echo "$as_me:$LINENO: result: $ac_cv_var_use_udp_sigpoll" >&5 48762echo "${ECHO_T}$ac_cv_var_use_udp_sigpoll" >&6 48763case "$ac_cv_var_use_udp_sigpoll" in 48764 yes) 48765cat >>confdefs.h <<\_ACEOF 48766#define USE_UDP_SIGPOLL 1 48767_ACEOF 48768 ;; 48769esac 48770 48771echo "$as_me:$LINENO: checking if we can use SIGPOLL for TTY I/O" >&5 48772echo $ECHO_N "checking if we can use SIGPOLL for TTY I/O... $ECHO_C" >&6 48773if test "${ac_cv_var_use_tty_sigpoll+set}" = set; then 48774 echo $ECHO_N "(cached) $ECHO_C" >&6 48775else 48776 ans=no 48777case "$ac_cv_hdr_def_sigpoll" in 48778 yes) 48779 case "$host" in 48780 mips-sgi-irix*) 48781 ans=no 48782 ;; 48783 vax-dec-bsd) 48784 ans=no 48785 ;; 48786 *-pc-cygwin*) 48787 ans=no 48788 ;; 48789 *-sni-sysv*) 48790 ans=no 48791 ;; 48792 *-*-aix[45]*) 48793 ans=no 48794 ;; 48795 *-*-hpux*) 48796 ans=no 48797 ;; 48798 *-*-linux*) 48799 ans=no 48800 ;; 48801 *-*-osf*) 48802 ans=no 48803 ;; 48804 *-*-sunos*) 48805 ans=no 48806 ;; 48807 *-*-ultrix*) 48808 ans=no 48809 ;; 48810 *-*-qnx*) 48811 ans=no 48812 ;; 48813 *-*-unicosmp*) 48814 ans=no 48815 ;; 48816 *) ans=yes 48817 ;; 48818 esac 48819 ;; 48820esac 48821ac_cv_var_use_tty_sigpoll=$ans 48822fi 48823echo "$as_me:$LINENO: result: $ac_cv_var_use_tty_sigpoll" >&5 48824echo "${ECHO_T}$ac_cv_var_use_tty_sigpoll" >&6 48825case "$ac_cv_var_use_tty_sigpoll" in 48826 yes) 48827cat >>confdefs.h <<\_ACEOF 48828#define USE_TTY_SIGPOLL 1 48829_ACEOF 48830 ;; 48831esac 48832 48833case "$ac_cv_header_sys_sio_h" in 48834 yes) 48835 echo "$as_me:$LINENO: checking sys/sio.h for TIOCDCDTIMESTAMP" >&5 48836echo $ECHO_N "checking sys/sio.h for TIOCDCDTIMESTAMP... $ECHO_C" >&6 48837if test "${ac_cv_hdr_def_tiocdcdtimestamp+set}" = set; then 48838 echo $ECHO_N "(cached) $ECHO_C" >&6 48839else 48840 cat >conftest.$ac_ext <<_ACEOF 48841/* confdefs.h. */ 48842_ACEOF 48843cat confdefs.h >>conftest.$ac_ext 48844cat >>conftest.$ac_ext <<_ACEOF 48845/* end confdefs.h. */ 48846#include <sys/sio.h> 48847#ifdef TIOCDCDTIMESTAMP 48848 yes 48849#endif 48850 48851_ACEOF 48852if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 48853 $EGREP "yes" >/dev/null 2>&1; then 48854 ac_cv_hdr_def_tiocdcdtimestamp=yes 48855else 48856 ac_cv_hdr_def_tiocdcdtimestamp=no 48857fi 48858rm -f conftest* 48859 48860fi 48861echo "$as_me:$LINENO: result: $ac_cv_hdr_def_tiocdcdtimestamp" >&5 48862echo "${ECHO_T}$ac_cv_hdr_def_tiocdcdtimestamp" >&6 48863 ;; 48864esac 48865 48866case "$ac_cv_hdr_def_tiocdcdtimestamp" in 48867 yes) 48868 ac_cv_var_oncore_ok=yes 48869 ;; 48870esac 48871 48872echo "$as_me:$LINENO: checking if nlist() values might require extra indirection" >&5 48873echo $ECHO_N "checking if nlist() values might require extra indirection... $ECHO_C" >&6 48874if test "${ac_cv_var_nlist_extra_indirection+set}" = set; then 48875 echo $ECHO_N "(cached) $ECHO_C" >&6 48876else 48877 ans=no 48878case "$host" in 48879 *-*-aix*) 48880 ans=yes 48881 ;; 48882esac 48883ac_cv_var_nlist_extra_indirection=$ans 48884fi 48885echo "$as_me:$LINENO: result: $ac_cv_var_nlist_extra_indirection" >&5 48886echo "${ECHO_T}$ac_cv_var_nlist_extra_indirection" >&6 48887case "$ac_cv_var_nlist_extra_indirection" in 48888 yes) 48889cat >>confdefs.h <<\_ACEOF 48890#define NLIST_EXTRA_INDIRECTION 1 48891_ACEOF 48892 ;; 48893esac 48894 48895echo "$as_me:$LINENO: checking for a minimum recommended value of tickadj" >&5 48896echo $ECHO_N "checking for a minimum recommended value of tickadj... $ECHO_C" >&6 48897if test "${ac_cv_var_min_rec_tickadj+set}" = set; then 48898 echo $ECHO_N "(cached) $ECHO_C" >&6 48899else 48900 ans=no 48901case "$host" in 48902 *-*-aix*) 48903 ans=40 48904 ;; 48905esac 48906ac_cv_var_min_rec_tickadj=$ans 48907fi 48908echo "$as_me:$LINENO: result: $ac_cv_var_min_rec_tickadj" >&5 48909echo "${ECHO_T}$ac_cv_var_min_rec_tickadj" >&6 48910case "$ac_cv_var_min_rec_tickadj" in 48911 ''|no) ;; 48912 *) 48913cat >>confdefs.h <<_ACEOF 48914#define MIN_REC_TICKADJ $ac_cv_var_min_rec_tickadj 48915_ACEOF 48916 ;; 48917esac 48918 48919echo "$as_me:$LINENO: checking if the TTY code permits PARENB and IGNPAR" >&5 48920echo $ECHO_N "checking if the TTY code permits PARENB and IGNPAR... $ECHO_C" >&6 48921if test "${ac_cv_var_no_parenb_ignpar+set}" = set; then 48922 echo $ECHO_N "(cached) $ECHO_C" >&6 48923else 48924 ans=no 48925case "$host" in 48926 i?86-*-linux*) 48927 ans=yes 48928 ;; 48929 mips-sgi-irix*) 48930 ans=yes 48931 ;; 48932 i?86-*-freebsd[123].*) 48933 ;; 48934 i?86-*-freebsd*) 48935 ans=yes 48936 ;; 48937 *-*-unicosmp*) 48938 ans=yes 48939 ;; 48940esac 48941ac_cv_var_no_parenb_ignpar=$ans 48942fi 48943echo "$as_me:$LINENO: result: $ac_cv_var_no_parenb_ignpar" >&5 48944echo "${ECHO_T}$ac_cv_var_no_parenb_ignpar" >&6 48945case "$ac_cv_var_no_parenb_ignpar" in 48946 yes) 48947cat >>confdefs.h <<\_ACEOF 48948#define NO_PARENB_IGNPAR 1 48949_ACEOF 48950 ;; 48951esac 48952 48953echo "$as_me:$LINENO: checking if we're including debugging code" >&5 48954echo $ECHO_N "checking if we're including debugging code... $ECHO_C" >&6 48955# Check whether --enable-debugging or --disable-debugging was given. 48956if test "${enable_debugging+set}" = set; then 48957 enableval="$enable_debugging" 48958 ntp_ok=$enableval 48959else 48960 ntp_ok=yes 48961fi; 48962if test "$ntp_ok" = "yes"; then 48963 48964cat >>confdefs.h <<\_ACEOF 48965#define DEBUG 1 48966_ACEOF 48967 48968fi 48969echo "$as_me:$LINENO: result: $ntp_ok" >&5 48970echo "${ECHO_T}$ntp_ok" >&6 48971 48972echo "$as_me:$LINENO: checking if we including processing time debugging code" >&5 48973echo $ECHO_N "checking if we including processing time debugging code... $ECHO_C" >&6 48974# Check whether --enable-debug-timing or --disable-debug-timing was given. 48975if test "${enable_debug_timing+set}" = set; then 48976 enableval="$enable_debug_timing" 48977 ntp_ok=$enableval 48978else 48979 ntp_ok=no 48980fi; 48981if test "$ntp_ok" = "yes"; then 48982 48983cat >>confdefs.h <<\_ACEOF 48984#define DEBUG_TIMING 1 48985_ACEOF 48986 48987fi 48988echo "$as_me:$LINENO: result: $ntp_ok" >&5 48989echo "${ECHO_T}$ntp_ok" >&6 48990 48991echo "$as_me:$LINENO: checking for a the number of minutes in a DST adjustment" >&5 48992echo $ECHO_N "checking for a the number of minutes in a DST adjustment... $ECHO_C" >&6 48993# Check whether --enable-dst_minutes or --disable-dst_minutes was given. 48994if test "${enable_dst_minutes+set}" = set; then 48995 enableval="$enable_dst_minutes" 48996 ans=$enableval 48997else 48998 ans=60 48999fi; 49000 49001cat >>confdefs.h <<_ACEOF 49002#define DSTMINUTES $ans 49003_ACEOF 49004 49005echo "$as_me:$LINENO: result: $ans" >&5 49006echo "${ECHO_T}$ans" >&6 49007 49008echo "$as_me:$LINENO: checking if we have the tty_clk line discipline/streams module" >&5 49009echo $ECHO_N "checking if we have the tty_clk line discipline/streams module... $ECHO_C" >&6 49010if test "${ac_cv_var_tty_clk+set}" = set; then 49011 echo $ECHO_N "(cached) $ECHO_C" >&6 49012else 49013 case "$ac_cv_header_sys_clkdefs_h$ac_cv_hdr_def_tiocdcdtimestamp" in 49014 *yes*) ac_cv_var_tty_clk=yes ;; 49015 esac 49016fi 49017echo "$as_me:$LINENO: result: $ac_cv_var_tty_clk" >&5 49018echo "${ECHO_T}$ac_cv_var_tty_clk" >&6 49019case "$ac_cv_var_tty_clk" in 49020 yes) 49021cat >>confdefs.h <<\_ACEOF 49022#define TTYCLK 1 49023_ACEOF 49024 ;; 49025esac 49026 49027echo "$as_me:$LINENO: checking for the ppsclock streams module" >&5 49028echo $ECHO_N "checking for the ppsclock streams module... $ECHO_C" >&6 49029if test "${ac_cv_var_ppsclock+set}" = set; then 49030 echo $ECHO_N "(cached) $ECHO_C" >&6 49031else 49032 ac_cv_var_ppsclock=$ac_cv_struct_ppsclockev 49033fi 49034echo "$as_me:$LINENO: result: $ac_cv_var_ppsclock" >&5 49035echo "${ECHO_T}$ac_cv_var_ppsclock" >&6 49036case "$ac_cv_var_ppsclock" in 49037 yes) 49038cat >>confdefs.h <<\_ACEOF 49039#define PPS 1 49040_ACEOF 49041 ;; 49042esac 49043 49044echo "$as_me:$LINENO: checking for kernel multicast support" >&5 49045echo $ECHO_N "checking for kernel multicast support... $ECHO_C" >&6 49046if test "${ac_cv_var_mcast+set}" = set; then 49047 echo $ECHO_N "(cached) $ECHO_C" >&6 49048else 49049 ac_cv_var_mcast=no 49050 case "$host" in 49051 i386-sequent-sysv4) ;; 49052 *) cat >conftest.$ac_ext <<_ACEOF 49053/* confdefs.h. */ 49054_ACEOF 49055cat confdefs.h >>conftest.$ac_ext 49056cat >>conftest.$ac_ext <<_ACEOF 49057/* end confdefs.h. */ 49058#include <netinet/in.h> 49059#ifdef IP_ADD_MEMBERSHIP 49060 yes 49061#endif 49062 49063_ACEOF 49064if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 49065 $EGREP "yes" >/dev/null 2>&1; then 49066 ac_cv_var_mcast=yes 49067fi 49068rm -f conftest* 49069 ;; 49070 esac 49071fi 49072echo "$as_me:$LINENO: result: $ac_cv_var_mcast" >&5 49073echo "${ECHO_T}$ac_cv_var_mcast" >&6 49074case "$ac_cv_var_mcast" in 49075 yes) 49076 49077cat >>confdefs.h <<\_ACEOF 49078#define MCAST 1 49079_ACEOF 49080 49081 echo "$as_me:$LINENO: checking arg type needed for IP*_MULTICAST_LOOP for setsockopt()" >&5 49082echo $ECHO_N "checking arg type needed for IP*_MULTICAST_LOOP for setsockopt()... $ECHO_C" >&6 49083if test "${ac_cv_var_typeof_ip_multicast_loop+set}" = set; then 49084 echo $ECHO_N "(cached) $ECHO_C" >&6 49085else 49086 case "$host" in 49087 *-*-netbsd*|*-*-linux*) 49088 ac_cv_var_typeof_ip_multicast_loop=u_int 49089 ;; 49090 *-*-winnt*) 49091 ac_cv_var_typeof_ip_multicast_loop=BOOL 49092 ;; 49093 *) ac_cv_var_typeof_ip_multicast_loop=u_char 49094 ;; 49095 esac 49096fi 49097echo "$as_me:$LINENO: result: $ac_cv_var_typeof_ip_multicast_loop" >&5 49098echo "${ECHO_T}$ac_cv_var_typeof_ip_multicast_loop" >&6 49099 49100cat >>confdefs.h <<_ACEOF 49101#define TYPEOF_IP_MULTICAST_LOOP $ac_cv_var_typeof_ip_multicast_loop 49102_ACEOF 49103 49104 ;; 49105esac 49106 49107echo "$as_me:$LINENO: checking availability of ntp_{adj,get}time()" >&5 49108echo $ECHO_N "checking availability of ntp_{adj,get}time()... $ECHO_C" >&6 49109if test "${ac_cv_var_ntp_syscalls+set}" = set; then 49110 echo $ECHO_N "(cached) $ECHO_C" >&6 49111else 49112 ac_cv_var_ntp_syscalls=no 49113 case "$ac_cv_func_ntp_adjtime$ac_cv_func_ntp_gettime$ac_cv_func___adjtimex" in 49114 yesyes*) 49115 ac_cv_var_ntp_syscalls=libc 49116 ;; 49117 *yes) 49118 ac_cv_var_ntp_syscalls=inline 49119 ;; 49120 *) cat >conftest.$ac_ext <<_ACEOF 49121/* confdefs.h. */ 49122_ACEOF 49123cat confdefs.h >>conftest.$ac_ext 49124cat >>conftest.$ac_ext <<_ACEOF 49125/* end confdefs.h. */ 49126#include <sys/syscall.h> 49127#if defined(SYS_ntp_gettime) && defined(SYS_ntp_adjtime) 49128 yes 49129#endif 49130 49131_ACEOF 49132if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 49133 $EGREP "yes" >/dev/null 2>&1; then 49134 ac_cv_var_ntp_syscalls=kernel 49135fi 49136rm -f conftest* 49137 49138 ;; 49139 esac 49140fi 49141echo "$as_me:$LINENO: result: $ac_cv_var_ntp_syscalls" >&5 49142echo "${ECHO_T}$ac_cv_var_ntp_syscalls" >&6 49143case "$ac_cv_var_ntp_syscalls" in 49144 libc) 49145 49146cat >>confdefs.h <<\_ACEOF 49147#define NTP_SYSCALLS_LIBC 1 49148_ACEOF 49149 49150 ;; 49151 kernel) 49152 49153cat >>confdefs.h <<\_ACEOF 49154#define NTP_SYSCALLS_STD 1 49155_ACEOF 49156 49157 ;; 49158 *) 49159 ;; 49160esac 49161 49162echo "$as_me:$LINENO: checking if sys/timex.h has STA_FLL" >&5 49163echo $ECHO_N "checking if sys/timex.h has STA_FLL... $ECHO_C" >&6 49164if test "${ac_cv_var_sta_fll+set}" = set; then 49165 echo $ECHO_N "(cached) $ECHO_C" >&6 49166else 49167 cat >conftest.$ac_ext <<_ACEOF 49168/* confdefs.h. */ 49169_ACEOF 49170cat confdefs.h >>conftest.$ac_ext 49171cat >>conftest.$ac_ext <<_ACEOF 49172/* end confdefs.h. */ 49173#include <sys/timex.h> 49174#ifdef STA_FLL 49175 yes 49176#endif 49177 49178_ACEOF 49179if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 49180 $EGREP "yes" >/dev/null 2>&1; then 49181 ac_cv_var_sta_fll=yes 49182else 49183 ac_cv_var_sta_fll=no 49184fi 49185rm -f conftest* 49186 49187fi 49188echo "$as_me:$LINENO: result: $ac_cv_var_sta_fll" >&5 49189echo "${ECHO_T}$ac_cv_var_sta_fll" >&6 49190 49191echo "$as_me:$LINENO: checking if we have kernel PLL support" >&5 49192echo $ECHO_N "checking if we have kernel PLL support... $ECHO_C" >&6 49193if test "${ac_cv_var_kernel_pll+set}" = set; then 49194 echo $ECHO_N "(cached) $ECHO_C" >&6 49195else 49196 case "$ac_cv_header_sys_timex_h$ac_cv_struct_ntptimeval$ac_cv_var_sta_fll$ac_cv_var_ntp_syscalls" in 49197 *no*) 49198 ac_cv_var_kernel_pll=no 49199 ;; 49200 *) ac_cv_var_kernel_pll=yes 49201 ;; 49202esac 49203fi 49204echo "$as_me:$LINENO: result: $ac_cv_var_kernel_pll" >&5 49205echo "${ECHO_T}$ac_cv_var_kernel_pll" >&6 49206case "$ac_cv_var_kernel_pll" in 49207 yes) 49208 49209cat >>confdefs.h <<\_ACEOF 49210#define KERNEL_PLL 1 49211_ACEOF 49212 49213 ;; 49214esac 49215 49216echo "$as_me:$LINENO: checking if SIOCGIFCONF returns buffer size in the buffer" >&5 49217echo $ECHO_N "checking if SIOCGIFCONF returns buffer size in the buffer... $ECHO_C" >&6 49218if test "${ac_cv_var_size_returned_in_buffer+set}" = set; then 49219 echo $ECHO_N "(cached) $ECHO_C" >&6 49220else 49221 ans=no 49222 case "$host" in 49223 *-fujitsu-uxp*) 49224 ans=yes 49225 ;; 49226 *-ncr-sysv4*) 49227 ans=yes 49228 ;; 49229 *-univel-sysv*) 49230 ans=yes 49231 ;; 49232 esac 49233 ac_cv_var_size_returned_in_buffer=$ans 49234fi 49235echo "$as_me:$LINENO: result: $ac_cv_var_size_returned_in_buffer" >&5 49236echo "${ECHO_T}$ac_cv_var_size_returned_in_buffer" >&6 49237case "$ac_cv_var_size_returned_in_buffer" in 49238 yes) 49239cat >>confdefs.h <<\_ACEOF 49240#define SIZE_RETURNED_IN_BUFFER 1 49241_ACEOF 49242 ;; 49243esac 49244 49245 49246# Check for ioctls TIOCGPPSEV 49247echo "$as_me:$LINENO: checking ioctl TIOCGPPSEV" >&5 49248echo $ECHO_N "checking ioctl TIOCGPPSEV... $ECHO_C" >&6 49249if test "$ac_cv_header_termios_h" = "yes"; then 49250 cat >conftest.$ac_ext <<_ACEOF 49251/* confdefs.h. */ 49252_ACEOF 49253cat confdefs.h >>conftest.$ac_ext 49254cat >>conftest.$ac_ext <<_ACEOF 49255/* end confdefs.h. */ 49256#include <termios.h> 49257#ifdef TIOCGPPSEV 49258 yes 49259#endif 49260 49261_ACEOF 49262if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 49263 $EGREP "yes" >/dev/null 2>&1; then 49264 ntp_ok=yes 49265else 49266 ntp_ok=no 49267fi 49268rm -f conftest* 49269 49270else 49271ntp_ok=no 49272fi 49273if test "$ntp_ok" = "yes"; then 49274 49275cat >>confdefs.h <<\_ACEOF 49276#define HAVE_TIOCGPPSEV 1 49277_ACEOF 49278 49279 ac_cv_var_oncore_ok=yes 49280fi 49281echo "$as_me:$LINENO: result: $ntp_ok" >&5 49282echo "${ECHO_T}$ntp_ok" >&6 49283 49284# Check for ioctls TIOCSPPS 49285echo "$as_me:$LINENO: checking ioctl TIOCSPPS" >&5 49286echo $ECHO_N "checking ioctl TIOCSPPS... $ECHO_C" >&6 49287if test "$ac_cv_header_termios_h" = "yes"; then 49288 cat >conftest.$ac_ext <<_ACEOF 49289/* confdefs.h. */ 49290_ACEOF 49291cat confdefs.h >>conftest.$ac_ext 49292cat >>conftest.$ac_ext <<_ACEOF 49293/* end confdefs.h. */ 49294#include <termios.h> 49295#ifdef TIOCSPPS 49296 yes 49297#endif 49298 49299_ACEOF 49300if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 49301 $EGREP "yes" >/dev/null 2>&1; then 49302 ntp_ok=yes 49303else 49304 ntp_ok=no 49305fi 49306rm -f conftest* 49307 49308else 49309 ntp_ok=no 49310fi 49311 49312if test "$ntp_ok" = "yes"; then 49313 49314cat >>confdefs.h <<\_ACEOF 49315#define HAVE_TIOCSPPS 1 49316_ACEOF 49317 49318fi 49319echo "$as_me:$LINENO: result: $ntp_ok" >&5 49320echo "${ECHO_T}$ntp_ok" >&6 49321 49322# Check for ioctls CIOGETEV 49323echo "$as_me:$LINENO: checking ioctl CIOGETEV" >&5 49324echo $ECHO_N "checking ioctl CIOGETEV... $ECHO_C" >&6 49325if test "$ac_cv_header_sys_ppsclock_h" = "yes"; then 49326 cat >conftest.$ac_ext <<_ACEOF 49327/* confdefs.h. */ 49328_ACEOF 49329cat confdefs.h >>conftest.$ac_ext 49330cat >>conftest.$ac_ext <<_ACEOF 49331/* end confdefs.h. */ 49332#include <sys/ppsclock.h> 49333#ifdef CIOGETEV 49334 yes 49335#endif 49336 49337_ACEOF 49338if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 49339 $EGREP "yes" >/dev/null 2>&1; then 49340 ntp_ok=yes 49341else 49342 ntp_ok=no 49343fi 49344rm -f conftest* 49345 49346else 49347ntp_ok=no 49348fi 49349if test "$ntp_ok" = "yes"; then 49350 ac_cv_var_oncore_ok=yes 49351 49352cat >>confdefs.h <<\_ACEOF 49353#define HAVE_CIOGETEV 1 49354_ACEOF 49355 49356fi 49357echo "$as_me:$LINENO: result: $ntp_ok" >&5 49358echo "${ECHO_T}$ntp_ok" >&6 49359 49360 49361# ATOM/PPSAPI stuff. 49362 49363# ATOM used to require struct timespec, but that's been fixed now. 49364 49365# case "$ac_cv_struct_timespec" in 49366# 'yes') 49367# ac_cv_var_atom_ok=yes 49368# ;; 49369# esac 49370ac_cv_var_atom_ok=yes 49371 49372# Check for header timepps.h, if found then we have PPS API (Draft RFC) stuff. 49373 49374# The PPSAPI headers need "inline" ($ac_cv_c_inline='inline') 49375 49376# The PPSAPI needs struct timespec. 49377 49378# The PPSAPI also needs a timepps header. 49379 49380case "$ac_cv_c_inline$ac_cv_struct_timespec" in 49381 inlineyes) 49382 case "$ac_cv_header_timepps_h$ac_cv_header_sys_timepps_h$host_os" in 49383 *yes* | *sunos* | *solaris* | *sco* | *netbsd* ) 49384 49385cat >>confdefs.h <<\_ACEOF 49386#define HAVE_PPSAPI 1 49387_ACEOF 49388 49389 ac_cv_var_jupiter_ok=yes 49390 ac_cv_var_oncore_ok=yes 49391 ac_cv_var_parse_ok=yes 49392 ac_cv_var_ripe_ncc_ok=yes 49393 ;; 49394 esac 49395 ;; 49396esac 49397 49398# Check for ioctls TIOCGSERIAL, TIOCSSERIAL, ASYNC_PPS_CD_POS, ASYNC_PPS_CD_NEG 49399if test "${ac_cv_header_linux_serial_h+set}" = set; then 49400 echo "$as_me:$LINENO: checking for linux/serial.h" >&5 49401echo $ECHO_N "checking for linux/serial.h... $ECHO_C" >&6 49402if test "${ac_cv_header_linux_serial_h+set}" = set; then 49403 echo $ECHO_N "(cached) $ECHO_C" >&6 49404fi 49405echo "$as_me:$LINENO: result: $ac_cv_header_linux_serial_h" >&5 49406echo "${ECHO_T}$ac_cv_header_linux_serial_h" >&6 49407else 49408 # Is the header compilable? 49409echo "$as_me:$LINENO: checking linux/serial.h usability" >&5 49410echo $ECHO_N "checking linux/serial.h usability... $ECHO_C" >&6 49411cat >conftest.$ac_ext <<_ACEOF 49412/* confdefs.h. */ 49413_ACEOF 49414cat confdefs.h >>conftest.$ac_ext 49415cat >>conftest.$ac_ext <<_ACEOF 49416/* end confdefs.h. */ 49417$ac_includes_default 49418#include <linux/serial.h> 49419_ACEOF 49420rm -f conftest.$ac_objext 49421if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 49422 (eval $ac_compile) 2>conftest.er1 49423 ac_status=$? 49424 grep -v '^ *+' conftest.er1 >conftest.err 49425 rm -f conftest.er1 49426 cat conftest.err >&5 49427 echo "$as_me:$LINENO: \$? = $ac_status" >&5 49428 (exit $ac_status); } && 49429 { ac_try='test -z "$ac_c_werror_flag" 49430 || test ! -s conftest.err' 49431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 49432 (eval $ac_try) 2>&5 49433 ac_status=$? 49434 echo "$as_me:$LINENO: \$? = $ac_status" >&5 49435 (exit $ac_status); }; } && 49436 { ac_try='test -s conftest.$ac_objext' 49437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 49438 (eval $ac_try) 2>&5 49439 ac_status=$? 49440 echo "$as_me:$LINENO: \$? = $ac_status" >&5 49441 (exit $ac_status); }; }; then 49442 ac_header_compiler=yes 49443else 49444 echo "$as_me: failed program was:" >&5 49445sed 's/^/| /' conftest.$ac_ext >&5 49446 49447ac_header_compiler=no 49448fi 49449rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 49450echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 49451echo "${ECHO_T}$ac_header_compiler" >&6 49452 49453# Is the header present? 49454echo "$as_me:$LINENO: checking linux/serial.h presence" >&5 49455echo $ECHO_N "checking linux/serial.h presence... $ECHO_C" >&6 49456cat >conftest.$ac_ext <<_ACEOF 49457/* confdefs.h. */ 49458_ACEOF 49459cat confdefs.h >>conftest.$ac_ext 49460cat >>conftest.$ac_ext <<_ACEOF 49461/* end confdefs.h. */ 49462#include <linux/serial.h> 49463_ACEOF 49464if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 49465 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 49466 ac_status=$? 49467 grep -v '^ *+' conftest.er1 >conftest.err 49468 rm -f conftest.er1 49469 cat conftest.err >&5 49470 echo "$as_me:$LINENO: \$? = $ac_status" >&5 49471 (exit $ac_status); } >/dev/null; then 49472 if test -s conftest.err; then 49473 ac_cpp_err=$ac_c_preproc_warn_flag 49474 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 49475 else 49476 ac_cpp_err= 49477 fi 49478else 49479 ac_cpp_err=yes 49480fi 49481if test -z "$ac_cpp_err"; then 49482 ac_header_preproc=yes 49483else 49484 echo "$as_me: failed program was:" >&5 49485sed 's/^/| /' conftest.$ac_ext >&5 49486 49487 ac_header_preproc=no 49488fi 49489rm -f conftest.err conftest.$ac_ext 49490echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 49491echo "${ECHO_T}$ac_header_preproc" >&6 49492 49493# So? What about this header? 49494case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 49495 yes:no: ) 49496 { echo "$as_me:$LINENO: WARNING: linux/serial.h: accepted by the compiler, rejected by the preprocessor!" >&5 49497echo "$as_me: WARNING: linux/serial.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 49498 { echo "$as_me:$LINENO: WARNING: linux/serial.h: proceeding with the compiler's result" >&5 49499echo "$as_me: WARNING: linux/serial.h: proceeding with the compiler's result" >&2;} 49500 ac_header_preproc=yes 49501 ;; 49502 no:yes:* ) 49503 { echo "$as_me:$LINENO: WARNING: linux/serial.h: present but cannot be compiled" >&5 49504echo "$as_me: WARNING: linux/serial.h: present but cannot be compiled" >&2;} 49505 { echo "$as_me:$LINENO: WARNING: linux/serial.h: check for missing prerequisite headers?" >&5 49506echo "$as_me: WARNING: linux/serial.h: check for missing prerequisite headers?" >&2;} 49507 { echo "$as_me:$LINENO: WARNING: linux/serial.h: see the Autoconf documentation" >&5 49508echo "$as_me: WARNING: linux/serial.h: see the Autoconf documentation" >&2;} 49509 { echo "$as_me:$LINENO: WARNING: linux/serial.h: section \"Present But Cannot Be Compiled\"" >&5 49510echo "$as_me: WARNING: linux/serial.h: section \"Present But Cannot Be Compiled\"" >&2;} 49511 { echo "$as_me:$LINENO: WARNING: linux/serial.h: proceeding with the preprocessor's result" >&5 49512echo "$as_me: WARNING: linux/serial.h: proceeding with the preprocessor's result" >&2;} 49513 { echo "$as_me:$LINENO: WARNING: linux/serial.h: in the future, the compiler will take precedence" >&5 49514echo "$as_me: WARNING: linux/serial.h: in the future, the compiler will take precedence" >&2;} 49515 ( 49516 cat <<\_ASBOX 49517## ------------------------------ ## 49518## Report this to the ntp lists. ## 49519## ------------------------------ ## 49520_ASBOX 49521 ) | 49522 sed "s/^/$as_me: WARNING: /" >&2 49523 ;; 49524esac 49525echo "$as_me:$LINENO: checking for linux/serial.h" >&5 49526echo $ECHO_N "checking for linux/serial.h... $ECHO_C" >&6 49527if test "${ac_cv_header_linux_serial_h+set}" = set; then 49528 echo $ECHO_N "(cached) $ECHO_C" >&6 49529else 49530 ac_cv_header_linux_serial_h=$ac_header_preproc 49531fi 49532echo "$as_me:$LINENO: result: $ac_cv_header_linux_serial_h" >&5 49533echo "${ECHO_T}$ac_cv_header_linux_serial_h" >&6 49534 49535fi 49536 49537 49538echo "$as_me:$LINENO: checking ioctl TIOCGSERIAL" >&5 49539echo $ECHO_N "checking ioctl TIOCGSERIAL... $ECHO_C" >&6 49540case "$ac_cv_header_sys_ppsclock_h$ac_cv_header_linux_serial_h" in 49541 yesyes) 49542 cat >conftest.$ac_ext <<_ACEOF 49543/* confdefs.h. */ 49544_ACEOF 49545cat confdefs.h >>conftest.$ac_ext 49546cat >>conftest.$ac_ext <<_ACEOF 49547/* end confdefs.h. */ 49548#include <sys/time.h> 49549typedef int u_int; 49550 49551#include <sys/ppsclock.h> 49552#include <linux/serial.h> 49553 49554#ifdef TIOCGSERIAL 49555#ifdef TIOCSSERIAL 49556#ifdef ASYNC_PPS_CD_POS 49557#ifdef ASYNC_PPS_CD_NEG 49558#ifdef CIOGETEV 49559 yes 49560#endif 49561#endif 49562#endif 49563#endif 49564#endif 49565 49566_ACEOF 49567if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 49568 $EGREP "yes" >/dev/null 2>&1; then 49569 ntp_ok=yes 49570fi 49571rm -f conftest* 49572 49573 ;; 49574 *) 49575 ntp_ok=no 49576 ;; 49577esac 49578if test "$ntp_ok" = "yes"; then 49579 49580cat >>confdefs.h <<\_ACEOF 49581#define HAVE_TIO_SERIAL_STUFF 1 49582_ACEOF 49583 49584fi 49585echo "$as_me:$LINENO: result: $ntp_ok" >&5 49586echo "${ECHO_T}$ntp_ok" >&6 49587 49588# Check for SHMEM_STATUS support 49589echo "$as_me:$LINENO: checking SHMEM_STATUS support" >&5 49590echo $ECHO_N "checking SHMEM_STATUS support... $ECHO_C" >&6 49591case "$ac_cv_header_sys_mman_h" in 49592 yes) ntp_ok=yes ;; 49593 *) ntp_ok=no ;; 49594esac 49595if test "$ntp_ok" = "yes"; then 49596 49597cat >>confdefs.h <<\_ACEOF 49598#define ONCORE_SHMEM_STATUS 1 49599_ACEOF 49600 49601fi 49602echo "$as_me:$LINENO: result: $ntp_ok" >&5 49603echo "${ECHO_T}$ntp_ok" >&6 49604 49605 49606ntp_refclock=no 49607 49608# HPUX only, and by explicit request 49609echo "$as_me:$LINENO: checking Datum/Bancomm bc635/VME interface" >&5 49610echo $ECHO_N "checking Datum/Bancomm bc635/VME interface... $ECHO_C" >&6 49611# Check whether --enable-BANCOMM or --disable-BANCOMM was given. 49612if test "${enable_BANCOMM+set}" = set; then 49613 enableval="$enable_BANCOMM" 49614 ntp_ok=$enableval 49615else 49616 ntp_ok=no 49617fi; 49618if test "$ntp_ok" = "yes"; then 49619 ntp_refclock=yes 49620 49621cat >>confdefs.h <<\_ACEOF 49622#define CLOCK_BANC 1 49623_ACEOF 49624 49625fi 49626echo "$as_me:$LINENO: result: $ntp_ok" >&5 49627echo "${ECHO_T}$ntp_ok" >&6 49628case "$ntp_ok$host" in 49629 yes*-*-hpux*) ;; 49630 yes*) { echo "$as_me:$LINENO: WARNING: *** But the expected answer is... no ***" >&5 49631echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;; 49632esac 49633 49634#HPUX only, and only by explicit request 49635echo "$as_me:$LINENO: checking TrueTime GPS receiver/VME interface" >&5 49636echo $ECHO_N "checking TrueTime GPS receiver/VME interface... $ECHO_C" >&6 49637# Check whether --enable-GPSVME or --disable-GPSVME was given. 49638if test "${enable_GPSVME+set}" = set; then 49639 enableval="$enable_GPSVME" 49640 ntp_ok=$enableval 49641else 49642 ntp_ok=no 49643fi; 49644if test "$ntp_ok" = "yes"; then 49645 ntp_refclock=yes 49646 49647cat >>confdefs.h <<\_ACEOF 49648#define CLOCK_GPSVME 1 49649_ACEOF 49650 49651fi 49652echo "$as_me:$LINENO: result: $ntp_ok" >&5 49653echo "${ECHO_T}$ntp_ok" >&6 49654case "$ntp_ok$host" in 49655 yes*-*-hpux*) ;; 49656 yes*) { echo "$as_me:$LINENO: WARNING: *** But the expected answer is... no ***" >&5 49657echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;; 49658esac 49659 49660echo "$as_me:$LINENO: checking for PCL720 clock support" >&5 49661echo $ECHO_N "checking for PCL720 clock support... $ECHO_C" >&6 49662case "$ac_cv_header_machine_inline_h$ac_cv_header_sys_pcl720_h$ac_cv_header_sys_i8253_h" in 49663 yesyesyes) 49664 49665cat >>confdefs.h <<\_ACEOF 49666#define CLOCK_PPS720 1 49667_ACEOF 49668 49669 ans=yes 49670 ;; 49671 *) 49672 ans=no 49673 ;; 49674esac 49675echo "$as_me:$LINENO: result: $ans" >&5 49676echo "${ECHO_T}$ans" >&6 49677 49678echo "$as_me:$LINENO: checking for default inclusion of all suitable non-PARSE clocks" >&5 49679echo $ECHO_N "checking for default inclusion of all suitable non-PARSE clocks... $ECHO_C" >&6 49680# Check whether --enable-all-clocks or --disable-all-clocks was given. 49681if test "${enable_all_clocks+set}" = set; then 49682 enableval="$enable_all_clocks" 49683 ntp_eac=$enableval 49684else 49685 ntp_eac=yes 49686fi; 49687echo "$as_me:$LINENO: result: $ntp_eac" >&5 49688echo "${ECHO_T}$ntp_eac" >&6 49689 49690# HMS: Should we also require ac_cv_var_parse_ok? 49691echo "$as_me:$LINENO: checking if we have support for PARSE clocks" >&5 49692echo $ECHO_N "checking if we have support for PARSE clocks... $ECHO_C" >&6 49693case "$ac_cv_var_atom_ok$ac_cv_header_termio_h$ac_cv_header_termios_h" in 49694 yes*yes*) 49695 ntp_canparse=yes 49696 ;; 49697 *) ntp_canparse=no 49698 ;; 49699esac 49700echo "$as_me:$LINENO: result: $ntp_canparse" >&5 49701echo "${ECHO_T}$ntp_canparse" >&6 49702 49703echo "$as_me:$LINENO: checking if we have support for audio clocks" >&5 49704echo $ECHO_N "checking if we have support for audio clocks... $ECHO_C" >&6 49705case "$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 49706 *yes*) 49707 ntp_canaudio=yes 49708 49709cat >>confdefs.h <<\_ACEOF 49710#define HAVE_AUDIO 49711_ACEOF 49712 49713 ;; 49714 *) ntp_canaudio=no ;; 49715esac 49716echo "$as_me:$LINENO: result: $ntp_canaudio" >&5 49717echo "${ECHO_T}$ntp_canaudio" >&6 49718 49719echo "$as_me:$LINENO: checking if we have support for the SHM refclock interface" >&5 49720echo $ECHO_N "checking if we have support for the SHM refclock interface... $ECHO_C" >&6 49721case "$ac_cv_header_sys_ipc_h$ac_cv_header_sys_shm_h" in 49722 yesyes) 49723 ntp_canshm=yes 49724 ;; 49725 *) ntp_canshm=no ;; 49726esac 49727echo "$as_me:$LINENO: result: $ntp_canshm" >&5 49728echo "${ECHO_T}$ntp_canshm" >&6 49729 49730# Requires modem control 49731echo "$as_me:$LINENO: checking ACTS modem service" >&5 49732echo $ECHO_N "checking ACTS modem service... $ECHO_C" >&6 49733# Check whether --enable-ACTS or --disable-ACTS was given. 49734if test "${enable_ACTS+set}" = set; then 49735 enableval="$enable_ACTS" 49736 ntp_ok=$enableval 49737else 49738 cat >conftest.$ac_ext <<_ACEOF 49739/* confdefs.h. */ 49740_ACEOF 49741cat confdefs.h >>conftest.$ac_ext 49742cat >>conftest.$ac_ext <<_ACEOF 49743/* end confdefs.h. */ 49744#include <termios.h> 49745#ifdef HAVE_SYS_IOCTL_H 49746#include <sys/ioctl.h> 49747#endif 49748#ifdef TIOCMBIS 49749 yes 49750#endif 49751 49752_ACEOF 49753if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 49754 $EGREP "yes" >/dev/null 2>&1; then 49755 ntp_ok=$ntp_eac 49756else 49757 ntp_ok=no 49758fi 49759rm -f conftest* 49760 49761fi; 49762if test "$ntp_ok" = "yes"; then 49763 ntp_refclock=yes 49764 49765cat >>confdefs.h <<\_ACEOF 49766#define CLOCK_ACTS 1 49767_ACEOF 49768 49769fi 49770echo "$as_me:$LINENO: result: $ntp_ok" >&5 49771echo "${ECHO_T}$ntp_ok" >&6 49772 49773echo "$as_me:$LINENO: checking Arbiter 1088A/B GPS receiver" >&5 49774echo $ECHO_N "checking Arbiter 1088A/B GPS receiver... $ECHO_C" >&6 49775# Check whether --enable-ARBITER or --disable-ARBITER was given. 49776if test "${enable_ARBITER+set}" = set; then 49777 enableval="$enable_ARBITER" 49778 ntp_ok=$enableval 49779else 49780 ntp_ok=$ntp_eac 49781fi; 49782if test "$ntp_ok" = "yes"; then 49783 ntp_refclock=yes 49784 49785cat >>confdefs.h <<\_ACEOF 49786#define CLOCK_ARBITER 1 49787_ACEOF 49788 49789fi 49790echo "$as_me:$LINENO: result: $ntp_ok" >&5 49791echo "${ECHO_T}$ntp_ok" >&6 49792 49793echo "$as_me:$LINENO: checking Arcron MSF receiver" >&5 49794echo $ECHO_N "checking Arcron MSF receiver... $ECHO_C" >&6 49795# Check whether --enable-ARCRON_MSF or --disable-ARCRON_MSF was given. 49796if test "${enable_ARCRON_MSF+set}" = set; then 49797 enableval="$enable_ARCRON_MSF" 49798 ntp_ok=$enableval 49799else 49800 ntp_ok=$ntp_eac 49801fi; 49802if test "$ntp_ok" = "yes"; then 49803 ntp_refclock=yes 49804 49805cat >>confdefs.h <<\_ACEOF 49806#define CLOCK_ARCRON_MSF 1 49807_ACEOF 49808 49809fi 49810echo "$as_me:$LINENO: result: $ntp_ok" >&5 49811echo "${ECHO_T}$ntp_ok" >&6 49812 49813echo "$as_me:$LINENO: checking Austron 2200A/2201A GPS receiver" >&5 49814echo $ECHO_N "checking Austron 2200A/2201A GPS receiver... $ECHO_C" >&6 49815# Check whether --enable-AS2201 or --disable-AS2201 was given. 49816if test "${enable_AS2201+set}" = set; then 49817 enableval="$enable_AS2201" 49818 ntp_ok=$enableval 49819else 49820 ntp_ok=$ntp_eac 49821fi; 49822if test "$ntp_ok" = "yes"; then 49823 ntp_refclock=yes 49824 49825cat >>confdefs.h <<\_ACEOF 49826#define CLOCK_AS2201 1 49827_ACEOF 49828 49829fi 49830echo "$as_me:$LINENO: result: $ntp_ok" >&5 49831echo "${ECHO_T}$ntp_ok" >&6 49832 49833echo "$as_me:$LINENO: checking ATOM PPS interface" >&5 49834echo $ECHO_N "checking ATOM PPS interface... $ECHO_C" >&6 49835# Check whether --enable-ATOM or --disable-ATOM was given. 49836if test "${enable_ATOM+set}" = set; then 49837 enableval="$enable_ATOM" 49838 ntp_ok=$enableval 49839else 49840 ntp_ok=$ntp_eac 49841fi; 49842case "$ac_cv_var_atom_ok" in 49843 no) ntp_ok=no ;; 49844esac 49845if test "$ntp_ok" = "yes"; then 49846 ntp_refclock=yes 49847 49848cat >>confdefs.h <<\_ACEOF 49849#define CLOCK_ATOM 1 49850_ACEOF 49851 49852fi 49853echo "$as_me:$LINENO: result: $ntp_ok" >&5 49854echo "${ECHO_T}$ntp_ok" >&6 49855 49856echo "$as_me:$LINENO: checking Chrono-log K-series WWVB receiver" >&5 49857echo $ECHO_N "checking Chrono-log K-series WWVB receiver... $ECHO_C" >&6 49858# Check whether --enable-CHRONOLOG or --disable-CHRONOLOG was given. 49859if test "${enable_CHRONOLOG+set}" = set; then 49860 enableval="$enable_CHRONOLOG" 49861 ntp_ok=$enableval 49862else 49863 ntp_ok=$ntp_eac 49864fi; 49865if test "$ntp_ok" = "yes"; then 49866 ntp_refclock=yes 49867 49868cat >>confdefs.h <<\_ACEOF 49869#define CLOCK_CHRONOLOG 1 49870_ACEOF 49871 49872fi 49873echo "$as_me:$LINENO: result: $ntp_ok" >&5 49874echo "${ECHO_T}$ntp_ok" >&6 49875 49876echo "$as_me:$LINENO: checking CHU modem/decoder" >&5 49877echo $ECHO_N "checking CHU modem/decoder... $ECHO_C" >&6 49878# Check whether --enable-CHU or --disable-CHU was given. 49879if test "${enable_CHU+set}" = set; then 49880 enableval="$enable_CHU" 49881 ntp_ok=$enableval 49882else 49883 ntp_ok=$ntp_eac 49884fi; 49885if test "$ntp_ok" = "yes"; then 49886 ntp_refclock=yes 49887 49888cat >>confdefs.h <<\_ACEOF 49889#define CLOCK_CHU 1 49890_ACEOF 49891 49892fi 49893echo "$as_me:$LINENO: result: $ntp_ok" >&5 49894echo "${ECHO_T}$ntp_ok" >&6 49895ac_refclock_chu=$ntp_ok 49896 49897echo "$as_me:$LINENO: checking CHU audio/decoder" >&5 49898echo $ECHO_N "checking CHU audio/decoder... $ECHO_C" >&6 49899# Check whether --enable-AUDIO-CHU or --disable-AUDIO-CHU was given. 49900if test "${enable_AUDIO_CHU+set}" = set; then 49901 enableval="$enable_AUDIO_CHU" 49902 ntp_ok=$enableval 49903else 49904 case "$ntp_eac$ac_refclock_chu$ntp_canaudio" in 49905 *no*) ntp_ok=no ;; 49906 *) ntp_ok=yes ;; 49907esac 49908fi; 49909if test "$ntp_ok" = "yes"; then 49910 49911cat >>confdefs.h <<\_ACEOF 49912#define AUDIO_CHU 1 49913_ACEOF 49914 49915fi 49916echo "$as_me:$LINENO: result: $ntp_ok" >&5 49917echo "${ECHO_T}$ntp_ok" >&6 49918# We used to check for sunos/solaris target... 49919case "$ntp_ok$ac_refclock_chu$ntp_canaudio" in 49920 yes*no*) { echo "$as_me:$LINENO: WARNING: *** But the expected answer is...no ***" >&5 49921echo "$as_me: WARNING: *** But the expected answer is...no ***" >&2;} ;; 49922esac 49923 49924# Not under HP-UX 49925echo "$as_me:$LINENO: checking Datum Programmable Time System" >&5 49926echo $ECHO_N "checking Datum Programmable Time System... $ECHO_C" >&6 49927# Check whether --enable-DATUM or --disable-DATUM was given. 49928if test "${enable_DATUM+set}" = set; then 49929 enableval="$enable_DATUM" 49930 ntp_ok=$enableval 49931else 49932 case "$ac_cv_header_termios_h" in 49933 yes) 49934 ntp_ok=$ntp_eac 49935 ;; 49936 *) ntp_ok=no 49937 ;; 49938 esac 49939fi; 49940if test "$ntp_ok" = "yes"; then 49941 ntp_refclock=yes 49942 49943cat >>confdefs.h <<\_ACEOF 49944#define CLOCK_DATUM 1 49945_ACEOF 49946 49947fi 49948echo "$as_me:$LINENO: result: $ntp_ok" >&5 49949echo "${ECHO_T}$ntp_ok" >&6 49950 49951echo "$as_me:$LINENO: checking Dumb generic hh:mm:ss local clock" >&5 49952echo $ECHO_N "checking Dumb generic hh:mm:ss local clock... $ECHO_C" >&6 49953# Check whether --enable-DUMBCLOCK or --disable-DUMBCLOCK was given. 49954if test "${enable_DUMBCLOCK+set}" = set; then 49955 enableval="$enable_DUMBCLOCK" 49956 ntp_ok=$enableval 49957else 49958 ntp_ok=$ntp_eac 49959fi; 49960if test "$ntp_ok" = "yes"; then 49961 ntp_refclock=yes 49962 49963cat >>confdefs.h <<\_ACEOF 49964#define CLOCK_DUMBCLOCK 1 49965_ACEOF 49966 49967fi 49968echo "$as_me:$LINENO: result: $ntp_ok" >&5 49969echo "${ECHO_T}$ntp_ok" >&6 49970 49971echo "$as_me:$LINENO: checking Forum Graphic GPS" >&5 49972echo $ECHO_N "checking Forum Graphic GPS... $ECHO_C" >&6 49973# Check whether --enable-FG or --disable-FG was given. 49974if test "${enable_FG+set}" = set; then 49975 enableval="$enable_FG" 49976 ntp_ok=$enableval 49977else 49978 ntp_ok=$ntp_eac 49979fi; 49980if test "$ntp_ok" = "yes"; then 49981 ntp_refclock=yes 49982 49983cat >>confdefs.h <<\_ACEOF 49984#define CLOCK_FG 1 49985_ACEOF 49986 49987fi 49988echo "$as_me:$LINENO: result: $ntp_ok" >&5 49989echo "${ECHO_T}$ntp_ok" >&6 49990 49991# Requires modem control 49992echo "$as_me:$LINENO: checking Heath GC-1000 WWV/WWVH receiver" >&5 49993echo $ECHO_N "checking Heath GC-1000 WWV/WWVH receiver... $ECHO_C" >&6 49994# Check whether --enable-HEATH or --disable-HEATH was given. 49995if test "${enable_HEATH+set}" = set; then 49996 enableval="$enable_HEATH" 49997 ntp_ok=$enableval 49998else 49999 cat >conftest.$ac_ext <<_ACEOF 50000/* confdefs.h. */ 50001_ACEOF 50002cat confdefs.h >>conftest.$ac_ext 50003cat >>conftest.$ac_ext <<_ACEOF 50004/* end confdefs.h. */ 50005#include <termios.h> 50006#ifdef HAVE_SYS_IOCTL_H 50007#include <sys/ioctl.h> 50008#endif 50009#ifdef TIOCMBIS 50010 yes 50011#endif 50012 50013_ACEOF 50014if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 50015 $EGREP "yes" >/dev/null 2>&1; then 50016 ntp_ok=$ntp_eac 50017else 50018 ntp_ok=no 50019fi 50020rm -f conftest* 50021 50022fi; 50023if test "$ntp_ok" = "yes"; then 50024 ntp_refclock=yes 50025 50026cat >>confdefs.h <<\_ACEOF 50027#define CLOCK_HEATH 1 50028_ACEOF 50029 50030fi 50031echo "$as_me:$LINENO: result: $ntp_ok" >&5 50032echo "${ECHO_T}$ntp_ok" >&6 50033 50034echo "$as_me:$LINENO: checking for hopf serial clock device" >&5 50035echo $ECHO_N "checking for hopf serial clock device... $ECHO_C" >&6 50036# Check whether --enable-HOPFSERIAL or --disable-HOPFSERIAL was given. 50037if test "${enable_HOPFSERIAL+set}" = set; then 50038 enableval="$enable_HOPFSERIAL" 50039 ntp_ok=$enableval 50040else 50041 ntp_ok=$ntp_eac 50042fi; 50043if test "$ntp_ok" = "yes"; then 50044 ntp_refclock=yes 50045 50046cat >>confdefs.h <<\_ACEOF 50047#define CLOCK_HOPF_SERIAL 1 50048_ACEOF 50049 50050fi 50051echo "$as_me:$LINENO: result: $ntp_ok" >&5 50052echo "${ECHO_T}$ntp_ok" >&6 50053 50054echo "$as_me:$LINENO: checking for hopf PCI clock 6039" >&5 50055echo $ECHO_N "checking for hopf PCI clock 6039... $ECHO_C" >&6 50056# Check whether --enable-HOPFPCI or --disable-HOPFPCI was given. 50057if test "${enable_HOPFPCI+set}" = set; then 50058 enableval="$enable_HOPFPCI" 50059 ntp_ok=$enableval 50060else 50061 ntp_ok=$ntp_eac 50062fi; 50063if test "$ntp_ok" = "yes"; then 50064 ntp_refclock=yes 50065 50066cat >>confdefs.h <<\_ACEOF 50067#define CLOCK_HOPF_PCI 1 50068_ACEOF 50069 50070fi 50071echo "$as_me:$LINENO: result: $ntp_ok" >&5 50072echo "${ECHO_T}$ntp_ok" >&6 50073 50074echo "$as_me:$LINENO: checking HP 58503A GPS receiver" >&5 50075echo $ECHO_N "checking HP 58503A GPS receiver... $ECHO_C" >&6 50076# Check whether --enable-HPGPS or --disable-HPGPS was given. 50077if test "${enable_HPGPS+set}" = set; then 50078 enableval="$enable_HPGPS" 50079 ntp_ok=$enableval 50080else 50081 ntp_ok=$ntp_eac 50082fi; 50083if test "$ntp_ok" = "yes"; then 50084 ntp_refclock=yes 50085 50086cat >>confdefs.h <<\_ACEOF 50087#define CLOCK_HPGPS 1 50088_ACEOF 50089 50090fi 50091echo "$as_me:$LINENO: result: $ntp_ok" >&5 50092echo "${ECHO_T}$ntp_ok" >&6 50093 50094echo "$as_me:$LINENO: checking IRIG audio decoder" >&5 50095echo $ECHO_N "checking IRIG audio decoder... $ECHO_C" >&6 50096# Check whether --enable-IRIG or --disable-IRIG was given. 50097if test "${enable_IRIG+set}" = set; then 50098 enableval="$enable_IRIG" 50099 ntp_ok=$enableval 50100else 50101 case "$ntp_eac$ntp_canaudio" in 50102 *no*) ntp_ok=no ;; 50103 *) ntp_ok=yes ;; 50104 esac 50105fi; 50106if test "$ntp_ok" = "yes"; then 50107 ntp_refclock=yes 50108 50109cat >>confdefs.h <<\_ACEOF 50110#define CLOCK_IRIG 1 50111_ACEOF 50112 50113fi 50114echo "$as_me:$LINENO: result: $ntp_ok" >&5 50115echo "${ECHO_T}$ntp_ok" >&6 50116case "$ntp_ok$ntp_canaudio" in 50117 yesno) { echo "$as_me:$LINENO: WARNING: *** But the expected answer is... no ***" >&5 50118echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;; 50119esac 50120 50121echo "$as_me:$LINENO: checking for JJY receiver" >&5 50122echo $ECHO_N "checking for JJY receiver... $ECHO_C" >&6 50123# Check whether --enable-JJY or --disable-JJY was given. 50124if test "${enable_JJY+set}" = set; then 50125 enableval="$enable_JJY" 50126 ntp_ok=$enableval 50127else 50128 ntp_ok=$ntp_eac 50129fi; 50130if test "$ntp_ok" = "yes"; then 50131 ntp_refclock=yes 50132 50133cat >>confdefs.h <<\_ACEOF 50134#define CLOCK_JJY 1 50135_ACEOF 50136 50137fi 50138echo "$as_me:$LINENO: result: $ntp_ok" >&5 50139echo "${ECHO_T}$ntp_ok" >&6 50140 50141echo "$as_me:$LINENO: checking Rockwell Jupiter GPS receiver" >&5 50142echo $ECHO_N "checking Rockwell Jupiter GPS receiver... $ECHO_C" >&6 50143# Check whether --enable-JUPITER or --disable-JUPITER was given. 50144if test "${enable_JUPITER+set}" = set; then 50145 enableval="$enable_JUPITER" 50146 ntp_ok=$enableval 50147else 50148 ntp_ok=$ntp_eac 50149fi; 50150case "$ac_cv_var_jupiter_ok" in 50151 no) ntp_ok=no ;; 50152esac 50153if test "$ntp_ok" = "yes"; then 50154 ntp_refclock=yes 50155 50156cat >>confdefs.h <<\_ACEOF 50157#define CLOCK_JUPITER 1 50158_ACEOF 50159 50160fi 50161echo "$as_me:$LINENO: result: $ntp_ok" >&5 50162echo "${ECHO_T}$ntp_ok" >&6 50163 50164echo "$as_me:$LINENO: checking Leitch CSD 5300 Master Clock System Driver" >&5 50165echo $ECHO_N "checking Leitch CSD 5300 Master Clock System Driver... $ECHO_C" >&6 50166# Check whether --enable-LEITCH or --disable-LEITCH was given. 50167if test "${enable_LEITCH+set}" = set; then 50168 enableval="$enable_LEITCH" 50169 ntp_ok=$enableval 50170else 50171 ntp_ok=$ntp_eac 50172fi; 50173if test "$ntp_ok" = "yes"; then 50174 ntp_refclock=yes 50175 50176cat >>confdefs.h <<\_ACEOF 50177#define CLOCK_LEITCH 1 50178_ACEOF 50179 50180fi 50181echo "$as_me:$LINENO: result: $ntp_ok" >&5 50182echo "${ECHO_T}$ntp_ok" >&6 50183 50184echo "$as_me:$LINENO: checking local clock reference" >&5 50185echo $ECHO_N "checking local clock reference... $ECHO_C" >&6 50186# Check whether --enable-LOCAL-CLOCK or --disable-LOCAL-CLOCK was given. 50187if test "${enable_LOCAL_CLOCK+set}" = set; then 50188 enableval="$enable_LOCAL_CLOCK" 50189 ntp_ok=$enableval 50190else 50191 ntp_ok=$ntp_eac 50192fi; 50193if test "$ntp_ok" = "yes"; then 50194 ntp_refclock=yes 50195 50196cat >>confdefs.h <<\_ACEOF 50197#define CLOCK_LOCAL 1 50198_ACEOF 50199 50200fi 50201echo "$as_me:$LINENO: result: $ntp_ok" >&5 50202echo "${ECHO_T}$ntp_ok" >&6 50203 50204 50205# Not Ultrix 50206echo "$as_me:$LINENO: checking Magnavox MX4200 GPS receiver" >&5 50207echo $ECHO_N "checking Magnavox MX4200 GPS receiver... $ECHO_C" >&6 50208# Check whether --enable-MX4200 or --disable-MX4200 was given. 50209if test "${enable_MX4200+set}" = set; then 50210 enableval="$enable_MX4200" 50211 ntp_ok=$enableval 50212else 50213 case "$ac_cv_var_ppsclock" in 50214 yes) ntp_ok=$ntp_eac 50215 ;; 50216 *) ntp_ok=no 50217 ;; 50218 esac 50219fi; 50220if test "$ntp_ok" = "yes"; then 50221 ntp_refclock=yes 50222 50223cat >>confdefs.h <<\_ACEOF 50224#define CLOCK_MX4200 1 50225_ACEOF 50226 50227fi 50228echo "$as_me:$LINENO: result: $ntp_ok" >&5 50229echo "${ECHO_T}$ntp_ok" >&6 50230case "$ntp_ok$host" in 50231 yes*-*-ultrix*) { echo "$as_me:$LINENO: WARNING: *** But the expected answer is... no ***" >&5 50232echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;; 50233esac 50234 50235echo "$as_me:$LINENO: checking for NeoClock4X receiver" >&5 50236echo $ECHO_N "checking for NeoClock4X receiver... $ECHO_C" >&6 50237# Check whether --enable-NEOCLOCK4X or --disable-NEOCLOCK4X was given. 50238if test "${enable_NEOCLOCK4X+set}" = set; then 50239 enableval="$enable_NEOCLOCK4X" 50240 ntp_ok=$enableval 50241else 50242 ntp_ok=$ntp_eac 50243fi; 50244if test "$ntp_ok" = "yes"; then 50245 ntp_refclock=yes 50246 50247cat >>confdefs.h <<\_ACEOF 50248#define CLOCK_NEOCLOCK4X 1 50249_ACEOF 50250 50251fi 50252echo "$as_me:$LINENO: result: $ntp_ok" >&5 50253echo "${ECHO_T}$ntp_ok" >&6 50254 50255echo "$as_me:$LINENO: checking NMEA GPS receiver" >&5 50256echo $ECHO_N "checking NMEA GPS receiver... $ECHO_C" >&6 50257# Check whether --enable-NMEA or --disable-NMEA was given. 50258if test "${enable_NMEA+set}" = set; then 50259 enableval="$enable_NMEA" 50260 ntp_ok=$enableval 50261else 50262 ntp_ok=$ntp_eac 50263fi; 50264if test "$ntp_ok" = "yes"; then 50265 ntp_refclock=yes 50266 50267cat >>confdefs.h <<\_ACEOF 50268#define CLOCK_NMEA 1 50269_ACEOF 50270 50271fi 50272echo "$as_me:$LINENO: result: $ntp_ok" >&5 50273echo "${ECHO_T}$ntp_ok" >&6 50274 50275echo "$as_me:$LINENO: checking for ONCORE Motorola VP/UT Oncore GPS" >&5 50276echo $ECHO_N "checking for ONCORE Motorola VP/UT Oncore GPS... $ECHO_C" >&6 50277# Check whether --enable-ONCORE or --disable-ONCORE was given. 50278if test "${enable_ONCORE+set}" = set; then 50279 enableval="$enable_ONCORE" 50280 ntp_ok=$enableval 50281else 50282 ntp_ok=$ntp_eac 50283fi; 50284case "$ac_cv_var_oncore_ok" in 50285 no) ntp_ok=no ;; 50286esac 50287if test "$ntp_ok" = "yes"; then 50288 ntp_refclock=yes 50289 50290cat >>confdefs.h <<\_ACEOF 50291#define CLOCK_ONCORE 1 50292_ACEOF 50293 50294fi 50295echo "$as_me:$LINENO: result: $ntp_ok" >&5 50296echo "${ECHO_T}$ntp_ok" >&6 50297 50298echo "$as_me:$LINENO: checking for Palisade clock" >&5 50299echo $ECHO_N "checking for Palisade clock... $ECHO_C" >&6 50300# Check whether --enable-PALISADE or --disable-PALISADE was given. 50301if test "${enable_PALISADE+set}" = set; then 50302 enableval="$enable_PALISADE" 50303 ntp_ok=$enableval 50304else 50305 case "$ac_cv_header_termios_h" in 50306 yes) 50307 ntp_ok=$ntp_eac 50308 ;; 50309 *) ntp_ok=no 50310 ;; 50311 esac 50312fi; 50313 50314if test "$ntp_ok" = "yes"; then 50315 ntp_refclock=yes 50316 50317cat >>confdefs.h <<\_ACEOF 50318#define CLOCK_PALISADE 1 50319_ACEOF 50320 50321fi 50322echo "$as_me:$LINENO: result: $ntp_ok" >&5 50323echo "${ECHO_T}$ntp_ok" >&6 50324 50325echo "$as_me:$LINENO: checking Conrad parallel port radio clock" >&5 50326echo $ECHO_N "checking Conrad parallel port radio clock... $ECHO_C" >&6 50327# Check whether --enable-PCF or --disable-PCF was given. 50328if test "${enable_PCF+set}" = set; then 50329 enableval="$enable_PCF" 50330 ntp_ok=$enableval 50331else 50332 ntp_ok=$ntp_eac 50333fi; 50334if test "$ntp_ok" = "yes"; then 50335 ntp_refclock=yes 50336 50337cat >>confdefs.h <<\_ACEOF 50338#define CLOCK_PCF 1 50339_ACEOF 50340 50341fi 50342echo "$as_me:$LINENO: result: $ntp_ok" >&5 50343echo "${ECHO_T}$ntp_ok" >&6 50344 50345echo "$as_me:$LINENO: checking PST/Traconex 1020 WWV/WWVH receiver" >&5 50346echo $ECHO_N "checking PST/Traconex 1020 WWV/WWVH receiver... $ECHO_C" >&6 50347# Check whether --enable-PST or --disable-PST was given. 50348if test "${enable_PST+set}" = set; then 50349 enableval="$enable_PST" 50350 ntp_ok=$enableval 50351else 50352 ntp_ok=$ntp_eac 50353fi; 50354if test "$ntp_ok" = "yes"; then 50355 ntp_refclock=yes 50356 50357cat >>confdefs.h <<\_ACEOF 50358#define CLOCK_PST 1 50359_ACEOF 50360 50361fi 50362echo "$as_me:$LINENO: result: $ntp_ok" >&5 50363echo "${ECHO_T}$ntp_ok" >&6 50364 50365echo "$as_me:$LINENO: checking RIPENCC specific Trimble driver" >&5 50366echo $ECHO_N "checking RIPENCC specific Trimble driver... $ECHO_C" >&6 50367# Check whether --enable-RIPENCC or --disable-RIPENCC was given. 50368if test "${enable_RIPENCC+set}" = set; then 50369 enableval="$enable_RIPENCC" 50370 ntp_ok=$enableval 50371else 50372 ntp_ok=no 50373fi; 50374# 020629: HMS: s/$ntp_eac -> -/no because of ptr += sprintf(ptr, ...) usage 50375case "$ac_cv_var_ripe_ncc_ok" in 50376 no) ntp_ok=no ;; 50377esac 50378if test "$ntp_ok" = "yes"; then 50379 ntp_refclock=yes 50380 50381cat >>confdefs.h <<\_ACEOF 50382#define CLOCK_RIPENCC 50383_ACEOF 50384 50385fi 50386echo "$as_me:$LINENO: result: $ntp_ok" >&5 50387echo "${ECHO_T}$ntp_ok" >&6 50388 50389# Danny Meyer says SHM compiles (with a few warnings) under Win32. 50390# For *IX, we need sys/ipc.h and sys/shm.h. 50391echo "$as_me:$LINENO: checking for SHM clock attached thru shared memory" >&5 50392echo $ECHO_N "checking for SHM clock attached thru shared memory... $ECHO_C" >&6 50393# Check whether --enable-SHM or --disable-SHM was given. 50394if test "${enable_SHM+set}" = set; then 50395 enableval="$enable_SHM" 50396 ntp_ok=$enableval 50397else 50398 case "$ntp_eac$ntp_canshm" in 50399 *no*) ntp_ok=no ;; 50400 *) ntp_ok=yes ;; 50401esac 50402fi; 50403if test "$ntp_ok" = "yes"; then 50404 ntp_refclock=yes 50405 50406cat >>confdefs.h <<\_ACEOF 50407#define CLOCK_SHM 1 50408_ACEOF 50409 50410fi 50411echo "$as_me:$LINENO: result: $ntp_ok" >&5 50412echo "${ECHO_T}$ntp_ok" >&6 50413 50414echo "$as_me:$LINENO: checking Spectracom 8170/Netclock/2 WWVB receiver" >&5 50415echo $ECHO_N "checking Spectracom 8170/Netclock/2 WWVB receiver... $ECHO_C" >&6 50416# Check whether --enable-SPECTRACOM or --disable-SPECTRACOM was given. 50417if test "${enable_SPECTRACOM+set}" = set; then 50418 enableval="$enable_SPECTRACOM" 50419 ntp_ok=$enableval 50420else 50421 ntp_ok=$ntp_eac 50422fi; 50423if test "$ntp_ok" = "yes"; then 50424 ntp_refclock=yes 50425 50426cat >>confdefs.h <<\_ACEOF 50427#define CLOCK_SPECTRACOM 1 50428_ACEOF 50429 50430fi 50431echo "$as_me:$LINENO: result: $ntp_ok" >&5 50432echo "${ECHO_T}$ntp_ok" >&6 50433 50434echo "$as_me:$LINENO: checking KSI/Odetics TPRO/S GPS receiver/IRIG interface" >&5 50435echo $ECHO_N "checking KSI/Odetics TPRO/S GPS receiver/IRIG interface... $ECHO_C" >&6 50436# Check whether --enable-TPRO or --disable-TPRO was given. 50437if test "${enable_TPRO+set}" = set; then 50438 enableval="$enable_TPRO" 50439 ntp_ok=$enableval 50440else 50441 case "$ac_cv_header_sys_tpro_h" in 50442 yes) 50443 ntp_ok=$ntp_eac 50444 ;; 50445 *) ntp_ok=no 50446 ;; 50447 esac 50448fi; 50449if test "$ntp_ok" = "yes"; then 50450 ntp_refclock=yes 50451 50452cat >>confdefs.h <<\_ACEOF 50453#define CLOCK_TPRO 1 50454_ACEOF 50455 50456fi 50457echo "$as_me:$LINENO: result: $ntp_ok" >&5 50458echo "${ECHO_T}$ntp_ok" >&6 50459case "$ntp_ok$ac_cv_header_sys_tpro" in 50460 yesno) { echo "$as_me:$LINENO: WARNING: *** But the expected answer is... no ***" >&5 50461echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;; 50462esac 50463 50464 50465# Not on a vax-dec-bsd 50466echo "$as_me:$LINENO: checking Kinemetrics/TrueTime receivers" >&5 50467echo $ECHO_N "checking Kinemetrics/TrueTime receivers... $ECHO_C" >&6 50468# Check whether --enable-TRUETIME or --disable-TRUETIME was given. 50469if test "${enable_TRUETIME+set}" = set; then 50470 enableval="$enable_TRUETIME" 50471 ntp_ok=$enableval 50472else 50473 case "$host" in 50474 vax-dec-bsd) 50475 ntp_ok=no 50476 ;; 50477 *) 50478 ntp_ok=$ntp_eac 50479 ;; 50480 esac 50481fi; 50482if test "$ntp_ok" = "yes"; then 50483 ntp_refclock=yes 50484 50485cat >>confdefs.h <<\_ACEOF 50486#define CLOCK_TRUETIME 1 50487_ACEOF 50488 50489fi 50490echo "$as_me:$LINENO: result: $ntp_ok" >&5 50491echo "${ECHO_T}$ntp_ok" >&6 50492case "$ntp_ok$host" in 50493 yesvax-dec-bsd) { echo "$as_me:$LINENO: WARNING: *** But the expected answer is... no ***" >&5 50494echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;; 50495esac 50496 50497echo "$as_me:$LINENO: checking TrueTime 560 IRIG-B decoder" >&5 50498echo $ECHO_N "checking TrueTime 560 IRIG-B decoder... $ECHO_C" >&6 50499# Check whether --enable-TT560 or --disable-TT560 was given. 50500if test "${enable_TT560+set}" = set; then 50501 enableval="$enable_TT560" 50502 ntp_ok=$enableval 50503else 50504 ntp_ok=no 50505fi; 50506if test "$ntp_ok" = "yes"; then 50507 ntp_refclock=yes 50508 50509cat >>confdefs.h <<\_ACEOF 50510#define CLOCK_TT560 50511_ACEOF 50512 50513fi 50514echo "$as_me:$LINENO: result: $ntp_ok" >&5 50515echo "${ECHO_T}$ntp_ok" >&6 50516 50517echo "$as_me:$LINENO: checking Ultralink M320 WWVB receiver" >&5 50518echo $ECHO_N "checking Ultralink M320 WWVB receiver... $ECHO_C" >&6 50519# Check whether --enable-ULINK or --disable-ULINK was given. 50520if test "${enable_ULINK+set}" = set; then 50521 enableval="$enable_ULINK" 50522 ntp_ok=$enableval 50523else 50524 ntp_ok=$ntp_eac 50525fi; 50526if test "$ntp_ok" = "yes"; then 50527 ntp_refclock=yes 50528 50529cat >>confdefs.h <<\_ACEOF 50530#define CLOCK_ULINK 1 50531_ACEOF 50532 50533fi 50534echo "$as_me:$LINENO: result: $ntp_ok" >&5 50535echo "${ECHO_T}$ntp_ok" >&6 50536 50537echo "$as_me:$LINENO: checking WWV receiver" >&5 50538echo $ECHO_N "checking WWV receiver... $ECHO_C" >&6 50539# Check whether --enable-WWV or --disable-WWV was given. 50540if test "${enable_WWV+set}" = set; then 50541 enableval="$enable_WWV" 50542 ntp_ok=$enableval 50543else 50544 case "$ntp_eac$ntp_canaudio" in 50545 *no*) ntp_ok=no ;; 50546 *) ntp_ok=yes ;; 50547 esac 50548fi; 50549if test "$ntp_ok" = "yes"; then 50550 ntp_refclock=yes 50551 50552cat >>confdefs.h <<\_ACEOF 50553#define CLOCK_WWV 1 50554_ACEOF 50555 50556fi 50557echo "$as_me:$LINENO: result: $ntp_ok" >&5 50558echo "${ECHO_T}$ntp_ok" >&6 50559case "$ntp_ok$ntp_canaudio" in 50560 yesno) { echo "$as_me:$LINENO: WARNING: *** But the expected answer is... no ***" >&5 50561echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;; 50562esac 50563 50564echo "$as_me:$LINENO: checking for Zyfer receiver" >&5 50565echo $ECHO_N "checking for Zyfer receiver... $ECHO_C" >&6 50566# Check whether --enable-ZYFER or --disable-ZYFER was given. 50567if test "${enable_ZYFER+set}" = set; then 50568 enableval="$enable_ZYFER" 50569 ntp_ok=$enableval 50570else 50571 ntp_ok=$ntp_eac 50572fi; 50573if test "$ntp_ok" = "yes"; then 50574 ntp_refclock=yes 50575 50576cat >>confdefs.h <<\_ACEOF 50577#define CLOCK_ZYFER 1 50578_ACEOF 50579 50580fi 50581echo "$as_me:$LINENO: result: $ntp_ok" >&5 50582echo "${ECHO_T}$ntp_ok" >&6 50583 50584echo "$as_me:$LINENO: checking for default inclusion of all suitable PARSE clocks" >&5 50585echo $ECHO_N "checking for default inclusion of all suitable PARSE clocks... $ECHO_C" >&6 50586# Check whether --enable-parse-clocks or --disable-parse-clocks was given. 50587if test "${enable_parse_clocks+set}" = set; then 50588 enableval="$enable_parse_clocks" 50589 ntp_eapc=$enableval 50590else 50591 case "$ntp_eac" in 50592 yes) ntp_eapc=$ntp_canparse ;; 50593 *) ntp_eapc=no ;; 50594 esac 50595 # Delete the next line one of these days 50596 ntp_eapc=no 50597fi; 50598echo "$as_me:$LINENO: result: $ntp_eapc" >&5 50599echo "${ECHO_T}$ntp_eapc" >&6 50600 50601case "$ntp_eac$ntp_eapc$ntp_canparse" in 50602 noyes*) 50603 { { echo "$as_me:$LINENO: error: \"--enable-parse-clocks\" requires \"--enable-all-clocks\"." >&5 50604echo "$as_me: error: \"--enable-parse-clocks\" requires \"--enable-all-clocks\"." >&2;} 50605 { (exit 1); exit 1; }; } 50606 ;; 50607 yesyesno) 50608 { { echo "$as_me:$LINENO: error: You said \"--enable-parse-clocks\" but PARSE isn't supported on this platform!" >&5 50609echo "$as_me: error: You said \"--enable-parse-clocks\" but PARSE isn't supported on this platform!" >&2;} 50610 { (exit 1); exit 1; }; } 50611 ;; 50612 *) ;; 50613esac 50614 50615ntp_libparse=no 50616ntp_parseutil=no 50617ntp_rawdcf=no 50618 50619echo "$as_me:$LINENO: checking Diem Computime Radio Clock" >&5 50620echo $ECHO_N "checking Diem Computime Radio Clock... $ECHO_C" >&6 50621# Check whether --enable-COMPUTIME or --disable-COMPUTIME was given. 50622if test "${enable_COMPUTIME+set}" = set; then 50623 enableval="$enable_COMPUTIME" 50624 ntp_ok=$enableval 50625else 50626 ntp_ok=$ntp_eapc 50627fi; 50628if test "$ntp_ok" = "yes"; then 50629 ntp_libparse=yes 50630 ntp_refclock=yes 50631 50632cat >>confdefs.h <<\_ACEOF 50633#define CLOCK_COMPUTIME 1 50634_ACEOF 50635 50636fi 50637echo "$as_me:$LINENO: result: $ntp_ok" >&5 50638echo "${ECHO_T}$ntp_ok" >&6 50639case "$ntp_ok$ntp_canparse" in 50640 yesno) 50641 { { echo "$as_me:$LINENO: error: That's a parse clock and this system doesn't support it!" >&5 50642echo "$as_me: error: That's a parse clock and this system doesn't support it!" >&2;} 50643 { (exit 1); exit 1; }; } 50644 ;; 50645esac 50646 50647echo "$as_me:$LINENO: checking ELV/DCF7000 clock" >&5 50648echo $ECHO_N "checking ELV/DCF7000 clock... $ECHO_C" >&6 50649# Check whether --enable-DCF7000 or --disable-DCF7000 was given. 50650if test "${enable_DCF7000+set}" = set; then 50651 enableval="$enable_DCF7000" 50652 ntp_ok=$enableval 50653else 50654 ntp_ok=$ntp_eapc 50655fi; 50656if test "$ntp_ok" = "yes"; then 50657 ntp_libparse=yes 50658 ntp_refclock=yes 50659 50660cat >>confdefs.h <<\_ACEOF 50661#define CLOCK_DCF7000 1 50662_ACEOF 50663 50664fi 50665echo "$as_me:$LINENO: result: $ntp_ok" >&5 50666echo "${ECHO_T}$ntp_ok" >&6 50667case "$ntp_ok$ntp_canparse" in 50668 yesno) 50669 { { echo "$as_me:$LINENO: error: That's a parse clock and this system doesn't support it!" >&5 50670echo "$as_me: error: That's a parse clock and this system doesn't support it!" >&2;} 50671 { (exit 1); exit 1; }; } 50672 ;; 50673esac 50674 50675echo "$as_me:$LINENO: checking HOPF 6021 clock" >&5 50676echo $ECHO_N "checking HOPF 6021 clock... $ECHO_C" >&6 50677# Check whether --enable-HOPF6021 or --disable-HOPF6021 was given. 50678if test "${enable_HOPF6021+set}" = set; then 50679 enableval="$enable_HOPF6021" 50680 ntp_ok=$enableval 50681else 50682 ntp_ok=$ntp_eapc 50683fi; 50684if test "$ntp_ok" = "yes"; then 50685 ntp_libparse=yes 50686 ntp_refclock=yes 50687 50688cat >>confdefs.h <<\_ACEOF 50689#define CLOCK_HOPF6021 1 50690_ACEOF 50691 50692fi 50693echo "$as_me:$LINENO: result: $ntp_ok" >&5 50694echo "${ECHO_T}$ntp_ok" >&6 50695case "$ntp_ok$ntp_canparse" in 50696 yesno) 50697 { { echo "$as_me:$LINENO: error: That's a parse clock and this system doesn't support it!" >&5 50698echo "$as_me: error: That's a parse clock and this system doesn't support it!" >&2;} 50699 { (exit 1); exit 1; }; } 50700 ;; 50701esac 50702 50703echo "$as_me:$LINENO: checking Meinberg clocks" >&5 50704echo $ECHO_N "checking Meinberg clocks... $ECHO_C" >&6 50705# Check whether --enable-MEINBERG or --disable-MEINBERG was given. 50706if test "${enable_MEINBERG+set}" = set; then 50707 enableval="$enable_MEINBERG" 50708 ntp_ok=$enableval 50709else 50710 ntp_ok=$ntp_eapc 50711fi; 50712if test "$ntp_ok" = "yes"; then 50713 ntp_libparse=yes 50714 ntp_refclock=yes 50715 50716cat >>confdefs.h <<\_ACEOF 50717#define CLOCK_MEINBERG 1 50718_ACEOF 50719 50720fi 50721echo "$as_me:$LINENO: result: $ntp_ok" >&5 50722echo "${ECHO_T}$ntp_ok" >&6 50723case "$ntp_ok$ntp_canparse" in 50724 yesno) 50725 { { echo "$as_me:$LINENO: error: That's a parse clock and this system doesn't support it!" >&5 50726echo "$as_me: error: That's a parse clock and this system doesn't support it!" >&2;} 50727 { (exit 1); exit 1; }; } 50728 ;; 50729esac 50730 50731echo "$as_me:$LINENO: checking DCF77 raw time code" >&5 50732echo $ECHO_N "checking DCF77 raw time code... $ECHO_C" >&6 50733# Check whether --enable-RAWDCF or --disable-RAWDCF was given. 50734if test "${enable_RAWDCF+set}" = set; then 50735 enableval="$enable_RAWDCF" 50736 ntp_ok=$enableval 50737else 50738 ntp_ok=$ntp_eapc 50739fi; 50740if test "$ntp_ok" = "yes"; then 50741 ntp_libparse=yes 50742 ntp_parseutil=yes 50743 ntp_refclock=yes 50744 ntp_rawdcf=yes 50745 50746cat >>confdefs.h <<\_ACEOF 50747#define CLOCK_RAWDCF 1 50748_ACEOF 50749 50750fi 50751echo "$as_me:$LINENO: result: $ntp_ok" >&5 50752echo "${ECHO_T}$ntp_ok" >&6 50753case "$ntp_ok$ntp_canparse" in 50754 yesno) 50755 { { echo "$as_me:$LINENO: error: That's a parse clock and this system doesn't support it!" >&5 50756echo "$as_me: error: That's a parse clock and this system doesn't support it!" >&2;} 50757 { (exit 1); exit 1; }; } 50758 ;; 50759esac 50760 50761case "$ntp_rawdcf" in 50762 yes) 50763 echo "$as_me:$LINENO: checking if we must enable parity for RAWDCF" >&5 50764echo $ECHO_N "checking if we must enable parity for RAWDCF... $ECHO_C" >&6 50765if test "${ac_cv_var_rawdcf_parity+set}" = set; then 50766 echo $ECHO_N "(cached) $ECHO_C" >&6 50767else 50768 ans=no 50769 case "$host" in 50770 *-*-linux*) 50771 ans=yes 50772 ;; 50773 esac 50774 ac_cv_var_rawdcf_parity=$ans 50775fi 50776echo "$as_me:$LINENO: result: $ac_cv_var_rawdcf_parity" >&5 50777echo "${ECHO_T}$ac_cv_var_rawdcf_parity" >&6 50778 case "$ac_cv_var_rawdcf_parity" in 50779 yes) 50780cat >>confdefs.h <<\_ACEOF 50781#define RAWDCF_NO_IGNPAR 1 50782_ACEOF 50783 ;; 50784 esac 50785 ;; 50786 50787 *) # HMS: Is this a good idea? 50788 ac_cv_var_rawdcf_parity=no 50789 ;; 50790esac 50791 50792echo "$as_me:$LINENO: checking RCC 8000 clock" >&5 50793echo $ECHO_N "checking RCC 8000 clock... $ECHO_C" >&6 50794# Check whether --enable-RCC8000 or --disable-RCC8000 was given. 50795if test "${enable_RCC8000+set}" = set; then 50796 enableval="$enable_RCC8000" 50797 ntp_ok=$enableval 50798else 50799 ntp_ok=$ntp_eapc 50800fi; 50801if test "$ntp_ok" = "yes"; then 50802 ntp_libparse=yes 50803 ntp_refclock=yes 50804 50805cat >>confdefs.h <<\_ACEOF 50806#define CLOCK_RCC8000 1 50807_ACEOF 50808 50809fi 50810echo "$as_me:$LINENO: result: $ntp_ok" >&5 50811echo "${ECHO_T}$ntp_ok" >&6 50812case "$ntp_ok$ntp_canparse" in 50813 yesno) 50814 { { echo "$as_me:$LINENO: error: That's a parse clock and this system doesn't support it!" >&5 50815echo "$as_me: error: That's a parse clock and this system doesn't support it!" >&2;} 50816 { (exit 1); exit 1; }; } 50817 ;; 50818esac 50819 50820echo "$as_me:$LINENO: checking Schmid DCF77 clock" >&5 50821echo $ECHO_N "checking Schmid DCF77 clock... $ECHO_C" >&6 50822# Check whether --enable-SCHMID or --disable-SCHMID was given. 50823if test "${enable_SCHMID+set}" = set; then 50824 enableval="$enable_SCHMID" 50825 ntp_ok=$enableval 50826else 50827 ntp_ok=$ntp_eapc 50828fi; 50829if test "$ntp_ok" = "yes"; then 50830 ntp_libparse=yes 50831 ntp_refclock=yes 50832 50833cat >>confdefs.h <<\_ACEOF 50834#define CLOCK_SCHMID 1 50835_ACEOF 50836 50837fi 50838echo "$as_me:$LINENO: result: $ntp_ok" >&5 50839echo "${ECHO_T}$ntp_ok" >&6 50840case "$ntp_ok$ntp_canparse" in 50841 yesno) 50842 { { echo "$as_me:$LINENO: error: That's a parse clock and this system doesn't support it!" >&5 50843echo "$as_me: error: That's a parse clock and this system doesn't support it!" >&2;} 50844 { (exit 1); exit 1; }; } 50845 ;; 50846esac 50847 50848echo "$as_me:$LINENO: checking Trimble GPS receiver/TAIP protocol" >&5 50849echo $ECHO_N "checking Trimble GPS receiver/TAIP protocol... $ECHO_C" >&6 50850# Check whether --enable-TRIMTAIP or --disable-TRIMTAIP was given. 50851if test "${enable_TRIMTAIP+set}" = set; then 50852 enableval="$enable_TRIMTAIP" 50853 ntp_ok=$enableval 50854else 50855 ntp_ok=$ntp_eapc 50856fi; 50857if test "$ntp_ok" = "yes"; then 50858 ntp_libparse=yes 50859 ntp_refclock=yes 50860 50861cat >>confdefs.h <<\_ACEOF 50862#define CLOCK_TRIMTAIP 1 50863_ACEOF 50864 50865fi 50866echo "$as_me:$LINENO: result: $ntp_ok" >&5 50867echo "${ECHO_T}$ntp_ok" >&6 50868case "$ntp_ok$ntp_canparse" in 50869 yesno) 50870 { { echo "$as_me:$LINENO: error: That's a parse clock and this system doesn't support it!" >&5 50871echo "$as_me: error: That's a parse clock and this system doesn't support it!" >&2;} 50872 { (exit 1); exit 1; }; } 50873 ;; 50874esac 50875 50876echo "$as_me:$LINENO: checking Trimble GPS receiver/TSIP protocol" >&5 50877echo $ECHO_N "checking Trimble GPS receiver/TSIP protocol... $ECHO_C" >&6 50878# Check whether --enable-TRIMTSIP or --disable-TRIMTSIP was given. 50879if test "${enable_TRIMTSIP+set}" = set; then 50880 enableval="$enable_TRIMTSIP" 50881 ntp_ok=$enableval 50882else 50883 ntp_ok=$ntp_eapc 50884fi; 50885if test "$ntp_ok" = "yes"; then 50886 ntp_libparse=yes 50887 ntp_refclock=yes 50888 50889cat >>confdefs.h <<\_ACEOF 50890#define CLOCK_TRIMTSIP 1 50891_ACEOF 50892 50893fi 50894echo "$as_me:$LINENO: result: $ntp_ok" >&5 50895echo "${ECHO_T}$ntp_ok" >&6 50896case "$ntp_ok$ntp_canparse" in 50897 yesno) 50898 { { echo "$as_me:$LINENO: error: That's a parse clock and this system doesn't support it!" >&5 50899echo "$as_me: error: That's a parse clock and this system doesn't support it!" >&2;} 50900 { (exit 1); exit 1; }; } 50901 ;; 50902esac 50903 50904echo "$as_me:$LINENO: checking WHARTON 400A Series clock" >&5 50905echo $ECHO_N "checking WHARTON 400A Series clock... $ECHO_C" >&6 50906# Check whether --enable-WHARTON or --disable-WHARTON was given. 50907if test "${enable_WHARTON+set}" = set; then 50908 enableval="$enable_WHARTON" 50909 ntp_ok=$enableval 50910else 50911 ntp_ok=$ntp_eapc 50912fi; 50913if test "$ntp_ok" = "yes"; then 50914 ntp_libparse=yes 50915 ntp_refclock=yes 50916 50917cat >>confdefs.h <<\_ACEOF 50918#define CLOCK_WHARTON_400A 1 50919_ACEOF 50920 50921fi 50922echo "$as_me:$LINENO: result: $ntp_ok" >&5 50923echo "${ECHO_T}$ntp_ok" >&6 50924case "$ntp_ok$ntp_canparse" in 50925 yesno) 50926 { { echo "$as_me:$LINENO: error: That's a parse clock and this system doesn't support it!" >&5 50927echo "$as_me: error: That's a parse clock and this system doesn't support it!" >&2;} 50928 { (exit 1); exit 1; }; } 50929 ;; 50930esac 50931 50932echo "$as_me:$LINENO: checking VARITEXT clock" >&5 50933echo $ECHO_N "checking VARITEXT clock... $ECHO_C" >&6 50934# Check whether --enable-VARITEXT or --disable-VARITEXT was given. 50935if test "${enable_VARITEXT+set}" = set; then 50936 enableval="$enable_VARITEXT" 50937 ntp_ok=$enableval 50938else 50939 ntp_ok=$ntp_eapc 50940fi; 50941if test "$ntp_ok" = "yes"; then 50942 ntp_libparse=yes 50943 ntp_refclock=yes 50944 50945cat >>confdefs.h <<\_ACEOF 50946#define CLOCK_VARITEXT 1 50947_ACEOF 50948 50949fi 50950echo "$as_me:$LINENO: result: $ntp_ok" >&5 50951echo "${ECHO_T}$ntp_ok" >&6 50952case "$ntp_ok$ntp_canparse" in 50953 yesno) 50954 { { echo "$as_me:$LINENO: error: That's a parse clock and this system doesn't support it!" >&5 50955echo "$as_me: error: That's a parse clock and this system doesn't support it!" >&2;} 50956 { (exit 1); exit 1; }; } 50957 ;; 50958esac 50959 50960 50961 50962 50963echo "$as_me:$LINENO: checking if we need to make and use the parse libraries" >&5 50964echo $ECHO_N "checking if we need to make and use the parse libraries... $ECHO_C" >&6 50965ans=no 50966case "$ntp_libparse" in 50967 yes) 50968 ans=yes 50969 50970cat >>confdefs.h <<\_ACEOF 50971#define CLOCK_PARSE 1 50972_ACEOF 50973 50974 LIBPARSE=../libparse/libparse.a 50975 MAKE_LIBPARSE=libparse.a 50976 # HMS: check_y2k trips the 34 year problem now... 50977 false && MAKE_CHECK_Y2K=check_y2k 50978 50979cat >>confdefs.h <<\_ACEOF 50980#define PPS_SAMPLE 1 50981_ACEOF 50982 50983 cat >>confdefs.h <<\_ACEOF 50984#define CLOCK_ATOM 1 50985_ACEOF 50986 50987 ;; 50988esac 50989echo "$as_me:$LINENO: result: $ans" >&5 50990echo "${ECHO_T}$ans" >&6 50991 50992# AC_SUBST(RSAOBJS) 50993# AC_SUBST(RSASRCS) 50994# AC_SUBST(RSADIR) 50995# AC_SUBST(RSAREF) 50996# AC_SUBST(LIBRSAREF) 50997# AC_SUBST(MAKE_LIBRSAREF) 50998 50999 51000 51001 51002 51003echo "$as_me:$LINENO: checking for openssl library directory" >&5 51004echo $ECHO_N "checking for openssl library directory... $ECHO_C" >&6 51005 51006# Check whether --with-openssl-libdir or --without-openssl-libdir was given. 51007if test "${with_openssl_libdir+set}" = set; then 51008 withval="$with_openssl_libdir" 51009 ans=$withval 51010else 51011 case "$build" in 51012 $host) ans=yes ;; 51013 *) ans=no ;; 51014esac 51015fi; 51016case "$ans" in 51017 no) ;; 51018 yes) # Look in: 51019 ans="/usr/lib /usr/lib/openssl /usr/sfw/lib /usr/local/lib /usr/local/ssl/lib" 51020 ;; 51021 *) # Look where they said 51022 ;; 51023esac 51024case "$ans" in 51025 no) ;; 51026 *) # Look for libcrypto.a and libssl.a: 51027 for i in $ans no 51028 do 51029 case "$host" in 51030 *-*-darwin*) 51031 test -f $i/libcrypto.dylib -a -f $i/libssl.dylib && break 51032 ;; 51033 *) 51034 test -f $i/libcrypto.so -a -f $i/libssl.so && break 51035 test -f $i/libcrypto.a -a -f $i/libssl.a && break 51036 ;; 51037 esac 51038 done 51039 case "$i" in 51040 no) 51041 ans=no 51042 OPENSSL_LIB= 51043 ;; 51044 *) ans=$i 51045 OPENSSL_LIB=$ans 51046 ;; 51047 esac 51048 ;; 51049esac 51050echo "$as_me:$LINENO: result: $ans" >&5 51051echo "${ECHO_T}$ans" >&6 51052 51053echo "$as_me:$LINENO: checking for openssl include directory" >&5 51054echo $ECHO_N "checking for openssl include directory... $ECHO_C" >&6 51055 51056# Check whether --with-openssl-incdir or --without-openssl-incdir was given. 51057if test "${with_openssl_incdir+set}" = set; then 51058 withval="$with_openssl_incdir" 51059 ans=$withval 51060else 51061 case "$build" in 51062 $host) ans=yes ;; 51063 *) ans=no ;; 51064esac 51065fi; 51066case "$ans" in 51067 no) ;; 51068 yes) # look in: 51069 ans="/usr/include /usr/sfw/include /usr/local/include /usr/local/ssl/include" 51070 ;; 51071 *) # Look where they said 51072 ;; 51073esac 51074case "$ans" in 51075 no) ;; 51076 *) # look for openssl/opensslconf.h: 51077 for i in $ans no 51078 do 51079 test -f $i/openssl/opensslconf.h && break 51080 done 51081 case "$i" in 51082 no) 51083 ans=no 51084 OPENSSL_INC= 51085 ;; 51086 *) ans=$i 51087 OPENSSL_INC=$ans 51088 ;; 51089 esac 51090 ;; 51091esac 51092echo "$as_me:$LINENO: result: $ans" >&5 51093echo "${ECHO_T}$ans" >&6 51094 51095 51096# Check whether --with-crypto or --without-crypto was given. 51097if test "${with_crypto+set}" = set; then 51098 withval="$with_crypto" 51099 ans=$withval 51100else 51101 ans=yes 51102fi; 51103case "$ans" in 51104 no) ;; 51105 yes|openssl) 51106 if test -z "$OPENSSL_LIB" -o -z "$OPENSSL_INC" 51107 then 51108 ans=no 51109 else 51110 # We have OpenSSL inc/lib - use them. 51111 ans=openssl 51112 CPPFLAGS="$CPPFLAGS -I$OPENSSL_INC" 51113 LDFLAGS="$LDFLAGS -L$OPENSSL_LIB" 51114 case "$need_dash_r" in 51115 1) LDFLAGS="$LDFLAGS -R$OPENSSL_LIB" 51116 ;; 51117 esac 51118 LCRYPTO=-lcrypto 51119 51120 51121cat >>confdefs.h <<\_ACEOF 51122#define OPENSSL 51123_ACEOF 51124 51125 51126 51127for ac_func in EVP_md2 EVP_mdc2 51128do 51129as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 51130echo "$as_me:$LINENO: checking for $ac_func" >&5 51131echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 51132if eval "test \"\${$as_ac_var+set}\" = set"; then 51133 echo $ECHO_N "(cached) $ECHO_C" >&6 51134else 51135 cat >conftest.$ac_ext <<_ACEOF 51136/* confdefs.h. */ 51137_ACEOF 51138cat confdefs.h >>conftest.$ac_ext 51139cat >>conftest.$ac_ext <<_ACEOF 51140/* end confdefs.h. */ 51141/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 51142 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 51143#define $ac_func innocuous_$ac_func 51144 51145/* System header to define __stub macros and hopefully few prototypes, 51146 which can conflict with char $ac_func (); below. 51147 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 51148 <limits.h> exists even on freestanding compilers. */ 51149 51150#ifdef __STDC__ 51151# include <limits.h> 51152#else 51153# include <assert.h> 51154#endif 51155 51156#undef $ac_func 51157 51158/* Override any gcc2 internal prototype to avoid an error. */ 51159#ifdef __cplusplus 51160extern "C" 51161{ 51162#endif 51163/* We use char because int might match the return type of a gcc2 51164 builtin and then its argument prototype would still apply. */ 51165char $ac_func (); 51166/* The GNU C library defines this for functions which it implements 51167 to always fail with ENOSYS. Some functions are actually named 51168 something starting with __ and the normal name is an alias. */ 51169#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 51170choke me 51171#else 51172char (*f) () = $ac_func; 51173#endif 51174#ifdef __cplusplus 51175} 51176#endif 51177 51178int 51179main () 51180{ 51181return f != $ac_func; 51182 ; 51183 return 0; 51184} 51185_ACEOF 51186rm -f conftest.$ac_objext conftest$ac_exeext 51187if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 51188 (eval $ac_link) 2>conftest.er1 51189 ac_status=$? 51190 grep -v '^ *+' conftest.er1 >conftest.err 51191 rm -f conftest.er1 51192 cat conftest.err >&5 51193 echo "$as_me:$LINENO: \$? = $ac_status" >&5 51194 (exit $ac_status); } && 51195 { ac_try='test -z "$ac_c_werror_flag" 51196 || test ! -s conftest.err' 51197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 51198 (eval $ac_try) 2>&5 51199 ac_status=$? 51200 echo "$as_me:$LINENO: \$? = $ac_status" >&5 51201 (exit $ac_status); }; } && 51202 { ac_try='test -s conftest$ac_exeext' 51203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 51204 (eval $ac_try) 2>&5 51205 ac_status=$? 51206 echo "$as_me:$LINENO: \$? = $ac_status" >&5 51207 (exit $ac_status); }; }; then 51208 eval "$as_ac_var=yes" 51209else 51210 echo "$as_me: failed program was:" >&5 51211sed 's/^/| /' conftest.$ac_ext >&5 51212 51213eval "$as_ac_var=no" 51214fi 51215rm -f conftest.err conftest.$ac_objext \ 51216 conftest$ac_exeext conftest.$ac_ext 51217fi 51218echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 51219echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 51220if test `eval echo '${'$as_ac_var'}'` = yes; then 51221 cat >>confdefs.h <<_ACEOF 51222#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 51223_ACEOF 51224 51225fi 51226done 51227 51228 fi 51229 ;; 51230esac 51231echo "$as_me:$LINENO: checking for the level of crypto support" >&5 51232echo $ECHO_N "checking for the level of crypto support... $ECHO_C" >&6 51233echo "$as_me:$LINENO: result: $ans" >&5 51234echo "${ECHO_T}$ans" >&6 51235 51236echo "$as_me:$LINENO: checking if we want to compile with ElectricFence" >&5 51237echo $ECHO_N "checking if we want to compile with ElectricFence... $ECHO_C" >&6 51238 51239# Check whether --with-electricfence or --without-electricfence was given. 51240if test "${with_electricfence+set}" = set; then 51241 withval="$with_electricfence" 51242 ans=$withval 51243else 51244 ans=no 51245fi; 51246case "$ans" in 51247 no) ;; 51248 *) 51249 LIBS="$LIBS \${top_builddir}/ElectricFence/libefence.a" 51250 EF_PROGS="eftest tstheap" 51251 51252 EF_LIBS=libefence.a 51253 51254 ans=yes 51255 ;; 51256esac 51257echo "$as_me:$LINENO: result: $ans" >&5 51258echo "${ECHO_T}$ans" >&6 51259 51260 51261echo "$as_me:$LINENO: checking if we want to run check-layout" >&5 51262echo $ECHO_N "checking if we want to run check-layout... $ECHO_C" >&6 51263case "$cross_compiling$PATH_PERL" in 51264 no/*) 51265 MAKE_CHECK_LAYOUT=check-layout 51266 ans=yes 51267 ;; 51268 *) 51269 ans=no 51270 ;; 51271esac 51272echo "$as_me:$LINENO: result: $ans" >&5 51273echo "${ECHO_T}$ans" >&6 51274 51275 51276 51277 51278echo "$as_me:$LINENO: checking if we can make dcf parse utilities" >&5 51279echo $ECHO_N "checking if we can make dcf parse utilities... $ECHO_C" >&6 51280ans=no 51281if test "$ntp_parseutil" = "yes"; then 51282 case "$host" in 51283 *-*-sunos4*|*-*-solaris2*|*-*-linux*|*-*-netbsd*) 51284 ans="dcfd testdcf" 51285 DCFD=dcfd 51286 TESTDCF=testdcf 51287 ;; 51288 esac 51289fi 51290echo "$as_me:$LINENO: result: $ans" >&5 51291echo "${ECHO_T}$ans" >&6 51292 51293 51294echo "$as_me:$LINENO: checking if we can build kernel streams modules for parse" >&5 51295echo $ECHO_N "checking if we can build kernel streams modules for parse... $ECHO_C" >&6 51296ans=no 51297case "$ntp_parseutil$ac_cv_header_sys_stropts_h" in 51298 yesyes) 51299 case "$host" in 51300 sparc-*-sunos4*) 51301 case "$ac_cv_var_kernel_pll" in 51302 yes) 51303 51304cat >>confdefs.h <<\_ACEOF 51305#define PPS_SYNC 1 51306_ACEOF 51307 51308 ;; 51309 esac 51310 ans=parsestreams 51311 MAKE_PARSEKMODULE=parsestreams.loadable_module.o 51312 ;; 51313 sparc-*-solaris2*) 51314 ans=parsesolaris 51315 MAKE_PARSEKMODULE=parse 51316 ;; 51317 esac 51318 ;; 51319esac 51320echo "$as_me:$LINENO: result: $ans" >&5 51321echo "${ECHO_T}$ans" >&6 51322 51323echo "$as_me:$LINENO: checking if we need basic refclock support" >&5 51324echo $ECHO_N "checking if we need basic refclock support... $ECHO_C" >&6 51325if test "$ntp_refclock" = "yes"; then 51326 51327cat >>confdefs.h <<\_ACEOF 51328#define REFCLOCK 1 51329_ACEOF 51330 51331fi 51332echo "$as_me:$LINENO: result: $ntp_refclock" >&5 51333echo "${ECHO_T}$ntp_refclock" >&6 51334 51335 51336 51337echo "$as_me:$LINENO: checking if we want HP-UX adjtimed support" >&5 51338echo $ECHO_N "checking if we want HP-UX adjtimed support... $ECHO_C" >&6 51339case "$host" in 51340 *-*-hpux[56789]*) 51341 ans=yes 51342 ;; 51343 *) ans=no 51344 ;; 51345esac 51346if test "$ans" = "yes"; then 51347 MAKE_ADJTIMED=adjtimed 51348 51349cat >>confdefs.h <<\_ACEOF 51350#define NEED_HPUX_ADJTIME 1 51351_ACEOF 51352 51353fi 51354echo "$as_me:$LINENO: result: $ans" >&5 51355echo "${ECHO_T}$ans" >&6 51356 51357echo "$as_me:$LINENO: checking if we want QNX adjtime support" >&5 51358echo $ECHO_N "checking if we want QNX adjtime support... $ECHO_C" >&6 51359case "$host" in 51360 *-*-qnx*) 51361 ans=yes 51362 ;; 51363 *) ans=no 51364 ;; 51365esac 51366if test "$ans" = "yes"; then 51367 51368cat >>confdefs.h <<\_ACEOF 51369#define NEED_QNX_ADJTIME 1 51370_ACEOF 51371 51372fi 51373echo "$as_me:$LINENO: result: $ans" >&5 51374echo "${ECHO_T}$ans" >&6 51375 51376echo "$as_me:$LINENO: checking if we can read kmem" >&5 51377echo $ECHO_N "checking if we can read kmem... $ECHO_C" >&6 51378if test "${ac_cv_var_can_kmem+set}" = set; then 51379 echo $ECHO_N "(cached) $ECHO_C" >&6 51380else 51381 # Check whether --enable-kmem or --disable-kmem was given. 51382if test "${enable_kmem+set}" = set; then 51383 enableval="$enable_kmem" 51384 ans=$enableval 51385else 51386 case "$ac_cv_func_nlist$ac_cv_func_K_open$ac_cv_func_kvm_open" in 51387 *yes*) 51388 ans=yes 51389 ;; 51390 *) ans=no 51391 ;; 51392 esac 51393 case "$host" in 51394 *-*-aix*) 51395 #ans=no 51396 ;; 51397 *-*-domainos) # Won't be found... 51398 ans=no 51399 ;; 51400 *-*-hpux*) 51401 #ans=no 51402 ;; 51403 *-*-irix[456]*) 51404 ans=no 51405 ;; 51406 *-*-linux*) 51407 ans=no 51408 ;; 51409 *-*-winnt3.5) 51410 ans=no 51411 ;; 51412 *-*-unicosmp*) 51413 ans=no 51414 ;; 51415 esac 51416 51417fi; 51418ac_cv_var_can_kmem=$ans 51419fi 51420echo "$as_me:$LINENO: result: $ac_cv_var_can_kmem" >&5 51421echo "${ECHO_T}$ac_cv_var_can_kmem" >&6 51422 51423case "$ac_cv_var_can_kmem" in 51424 *yes*) ;; 51425 *) 51426cat >>confdefs.h <<\_ACEOF 51427#define NOKMEM 1 51428_ACEOF 51429 ;; 51430esac 51431 51432echo "$as_me:$LINENO: checking if adjtime is accurate" >&5 51433echo $ECHO_N "checking if adjtime is accurate... $ECHO_C" >&6 51434if test "${ac_cv_var_adjtime_is_accurate+set}" = set; then 51435 echo $ECHO_N "(cached) $ECHO_C" >&6 51436else 51437 # Check whether --enable-accurate-adjtime or --disable-accurate-adjtime was given. 51438if test "${enable_accurate_adjtime+set}" = set; then 51439 enableval="$enable_accurate_adjtime" 51440 ans=$enableval 51441else 51442 case "$host" in 51443 i386-sequent-ptx*) 51444 ans=no 51445 ;; 51446 i386-unknown-osf1*) 51447 ans=yes 51448 ;; 51449 mips-sgi-irix[456]*) 51450 ans=yes 51451 ;; 51452 *-fujitsu-uxp*) 51453 ans=yes 51454 ;; 51455 *-ibm-aix[45]*) 51456 ans=yes 51457 ;; 51458 *-*-linux*) 51459 ans=yes 51460 ;; 51461 *-*-solaris2.[01]) 51462 ans=no 51463 ;; 51464 *-*-solaris2*) 51465 ans=yes 51466 ;; 51467 *-*-unicosmp*) 51468 ans=yes 51469 ;; 51470 *) ans=no 51471 ;; 51472 esac 51473 51474fi; 51475ac_cv_var_adjtime_is_accurate=$ans 51476fi 51477echo "$as_me:$LINENO: result: $ac_cv_var_adjtime_is_accurate" >&5 51478echo "${ECHO_T}$ac_cv_var_adjtime_is_accurate" >&6 51479case "$ac_cv_var_adjtime_is_accurate" in 51480 yes) 51481cat >>confdefs.h <<\_ACEOF 51482#define ADJTIME_IS_ACCURATE 1 51483_ACEOF 51484 ;; 51485esac 51486 51487echo "$as_me:$LINENO: checking the name of 'tick' in the kernel" >&5 51488echo $ECHO_N "checking the name of 'tick' in the kernel... $ECHO_C" >&6 51489if test "${ac_cv_var_nlist_tick+set}" = set; then 51490 echo $ECHO_N "(cached) $ECHO_C" >&6 51491else 51492 ans=_tick 51493case "$host" in 51494 m68*-hp-hpux*) # HP9000/300? 51495 ans=_old_tick 51496 ;; 51497 *-apple-aux[23]*) 51498 ans=tick 51499 ;; 51500 *-hp-hpux*) 51501 ans=old_tick 51502 ;; 51503 *-ibm-aix[345]*) 51504 ans=no 51505 ;; 51506 *-*-mpeix*) 51507 ans=no 51508 ;; 51509 *-*-ptx*) 51510 ans=tick 51511 ;; 51512 *-*-sco3.2v[45]*) 51513 ans=no 51514 ;; 51515 *-*-solaris2*) 51516 ans=nsec_per_tick 51517 ;; 51518 *-*-sysv4*) 51519 ans=tick 51520 ;; 51521esac 51522ac_cv_var_nlist_tick=$ans 51523fi 51524echo "$as_me:$LINENO: result: $ac_cv_var_nlist_tick" >&5 51525echo "${ECHO_T}$ac_cv_var_nlist_tick" >&6 51526case "$ac_cv_var_nlist_tick" in 51527 ''|no) ;; # HMS: I think we can only get 'no' here... 51528 *) 51529cat >>confdefs.h <<_ACEOF 51530#define K_TICK_NAME "$ac_cv_var_nlist_tick" 51531_ACEOF 51532 ;; 51533esac 51534# 51535echo "$as_me:$LINENO: checking for the units of 'tick'" >&5 51536echo $ECHO_N "checking for the units of 'tick'... $ECHO_C" >&6 51537if test "${ac_cv_var_tick_nano+set}" = set; then 51538 echo $ECHO_N "(cached) $ECHO_C" >&6 51539else 51540 ans=usec 51541case "$host" in 51542 *-*-solaris2*) 51543 ans=nsec 51544 ;; 51545esac 51546ac_cv_var_tick_nano=$ans 51547fi 51548echo "$as_me:$LINENO: result: $ac_cv_var_tick_nano" >&5 51549echo "${ECHO_T}$ac_cv_var_tick_nano" >&6 51550case "$ac_cv_var_tick_nano" in 51551 nsec) 51552 51553cat >>confdefs.h <<\_ACEOF 51554#define TICK_NANO 1 51555_ACEOF 51556 51557 ;; 51558esac 51559# 51560echo "$as_me:$LINENO: checking the name of 'tickadj' in the kernel" >&5 51561echo $ECHO_N "checking the name of 'tickadj' in the kernel... $ECHO_C" >&6 51562if test "${ac_cv_var_nlist_tickadj+set}" = set; then 51563 echo $ECHO_N "(cached) $ECHO_C" >&6 51564else 51565 ans=_tickadj 51566case "$host" in 51567 m68*-hp-hpux*) # HP9000/300? 51568 ans=_tickadj 51569 ;; 51570 *-apple-aux[23]*) 51571 ans=tickadj 51572 ;; 51573 *-hp-hpux10*) 51574 ans=no 51575 ;; 51576 *-hp-hpux9*) 51577 ans=no 51578 ;; 51579 *-hp-hpux*) 51580 ans=tickadj 51581 ;; 51582 *-*-aix*) 51583 ans=tickadj 51584 ;; 51585 *-*-mpeix*) 51586 ans=no 51587 ;; 51588 *-*-ptx*) 51589 ans=tickadj 51590 ;; 51591 *-*-sco3.2v4*) 51592 ans=no 51593 ;; 51594 *-*-sco3.2v5.0*) 51595 ans=clock_drift 51596 ;; 51597 *-*-solaris2*) 51598 ans=no # hrestime_adj 51599 ;; 51600 *-*-sysv4*) 51601 ans=tickadj 51602 ;; 51603esac 51604ac_cv_var_nlist_tickadj=$ans 51605fi 51606echo "$as_me:$LINENO: result: $ac_cv_var_nlist_tickadj" >&5 51607echo "${ECHO_T}$ac_cv_var_nlist_tickadj" >&6 51608case "$ac_cv_var_nlist_tickadj" in 51609 ''|no) ;; # HMS: I think we can only get 'no' here... 51610 *) 51611cat >>confdefs.h <<_ACEOF 51612#define K_TICKADJ_NAME "$ac_cv_var_nlist_tickadj" 51613_ACEOF 51614 ;; 51615esac 51616# 51617echo "$as_me:$LINENO: checking for the units of 'tickadj'" >&5 51618echo $ECHO_N "checking for the units of 'tickadj'... $ECHO_C" >&6 51619if test "${ac_cv_var_tickadj_nano+set}" = set; then 51620 echo $ECHO_N "(cached) $ECHO_C" >&6 51621else 51622 ans=usec 51623case "$host" in 51624 *-*-solaris2*) 51625 ans=nsec 51626 ;; 51627esac 51628ac_cv_var_tickadj_nano=$ans 51629fi 51630echo "$as_me:$LINENO: result: $ac_cv_var_tickadj_nano" >&5 51631echo "${ECHO_T}$ac_cv_var_tickadj_nano" >&6 51632case "$ac_cv_var_tickadj_nano" in 51633 nsec) 51634 51635cat >>confdefs.h <<\_ACEOF 51636#define TICKADJ_NANO 1 51637_ACEOF 51638 51639 ;; 51640esac 51641# 51642echo "$as_me:$LINENO: checking half-heartedly for 'dosynctodr' in the kernel" >&5 51643echo $ECHO_N "checking half-heartedly for 'dosynctodr' in the kernel... $ECHO_C" >&6 51644if test "${ac_cv_var_nlist_dosynctodr+set}" = set; then 51645 echo $ECHO_N "(cached) $ECHO_C" >&6 51646else 51647 case "$host" in 51648 *-apple-aux[23]*) 51649 ans=no 51650 ;; 51651 *-sni-sysv*) 51652 ans=dosynctodr 51653 ;; 51654 *-*-aix*) 51655 ans=dosynctodr 51656 ;; 51657 *-*-hpux*) 51658 ans=no 51659 ;; 51660 *-*-mpeix*) 51661 ans=no 51662 ;; 51663 *-*-nextstep*) 51664 ans=_dosynctodr 51665 ;; 51666 *-*-ptx*) 51667 ans=doresettodr 51668 ;; 51669 *-*-sco3.2v4*) 51670 ans=no 51671 ;; 51672 *-*-sco3.2v5*) 51673 ans=track_rtc 51674 ;; 51675 *-*-solaris2*) 51676 ans=dosynctodr 51677 ;; 51678 *-*-sysv4*) 51679 ans=doresettodr 51680 ;; 51681 *) 51682 ans=_dosynctodr 51683 ;; 51684esac 51685ac_cv_var_nlist_dosynctodr=$ans 51686fi 51687echo "$as_me:$LINENO: result: $ac_cv_var_nlist_dosynctodr" >&5 51688echo "${ECHO_T}$ac_cv_var_nlist_dosynctodr" >&6 51689case "$ac_cv_var_nlist_dosynctodr" in 51690 no) ;; 51691 *) 51692cat >>confdefs.h <<_ACEOF 51693#define K_DOSYNCTODR_NAME "$ac_cv_var_nlist_dosynctodr" 51694_ACEOF 51695 51696 ;; 51697esac 51698# 51699echo "$as_me:$LINENO: checking half-heartedly for 'noprintf' in the kernel" >&5 51700echo $ECHO_N "checking half-heartedly for 'noprintf' in the kernel... $ECHO_C" >&6 51701if test "${ac_cv_var_nlist_noprintf+set}" = set; then 51702 echo $ECHO_N "(cached) $ECHO_C" >&6 51703else 51704 case "$host" in 51705 *-apple-aux[23]*) 51706 ans=no 51707 ;; 51708 *-sni-sysv*) 51709 ans=noprintf 51710 ;; 51711 *-*-aix*) 51712 ans=noprintf 51713 ;; 51714 *-*-hpux*) 51715 ans=no 51716 ;; 51717 *-*-mpeix*) 51718 ans=no 51719 ;; 51720 *-*-ptx*) 51721 ans=noprintf 51722 ;; 51723 *-*-nextstep*) 51724 ans=_noprintf 51725 ;; 51726 *-*-solaris2*) 51727 ans=noprintf 51728 ;; 51729 *-*-sysv4*) 51730 ans=noprintf 51731 ;; 51732 *) 51733 ans=_noprintf 51734 ;; 51735esac 51736ac_cv_var_nlist_noprintf=$ans 51737fi 51738echo "$as_me:$LINENO: result: $ac_cv_var_nlist_noprintf" >&5 51739echo "${ECHO_T}$ac_cv_var_nlist_noprintf" >&6 51740case "$ac_cv_var_nlist_noprintf" in 51741 no) ;; 51742 *) 51743cat >>confdefs.h <<_ACEOF 51744#define K_NOPRINTF_NAME "$ac_cv_var_nlist_noprintf" 51745_ACEOF 51746 51747 ;; 51748esac 51749 51750 51751 51752 51753echo "$as_me:$LINENO: checking for a default value for 'tick'" >&5 51754echo $ECHO_N "checking for a default value for 'tick'... $ECHO_C" >&6 51755if test "${ac_cv_var_tick+set}" = set; then 51756 echo $ECHO_N "(cached) $ECHO_C" >&6 51757else 51758 # Check whether --enable-tick or --disable-tick was given. 51759if test "${enable_tick+set}" = set; then 51760 enableval="$enable_tick" 51761 ans=$enableval 51762else 51763 ans=no 51764 case "$host" in 51765 XXX-*-pc-cygwin*) 51766 ;; 51767 *-univel-sysv*) 51768 ans=10000 51769 ;; 51770 *-*-irix*) 51771 ans=10000 51772 ;; 51773 *-*-linux*) 51774 ans=txc.tick 51775 ;; 51776 *-*-mpeix*) 51777 ans=no 51778 ;; 51779 *-*-winnt3.5) 51780 ans='(every / 10)' 51781 ;; 51782 *-*-unicosmp*) 51783 ans=10000 51784 ;; 51785 *) 51786 ans='1000000L/hz' 51787 ;; 51788 esac 51789fi; 51790ac_cv_var_tick=$ans 51791fi 51792echo "$as_me:$LINENO: result: $ac_cv_var_tick" >&5 51793echo "${ECHO_T}$ac_cv_var_tick" >&6 51794case "$ac_cv_var_tick" in 51795 ''|no) ;; # HMS: I think we can only get 'no' here... 51796 *) 51797cat >>confdefs.h <<_ACEOF 51798#define PRESET_TICK $ac_cv_var_tick 51799_ACEOF 51800 ;; 51801esac 51802 51803echo "$as_me:$LINENO: checking for a default value for 'tickadj'" >&5 51804echo $ECHO_N "checking for a default value for 'tickadj'... $ECHO_C" >&6 51805if test "${ac_cv_var_tickadj+set}" = set; then 51806 echo $ECHO_N "(cached) $ECHO_C" >&6 51807else 51808 # Check whether --enable-tickadj or --disable-tickadj was given. 51809if test "${enable_tickadj+set}" = set; then 51810 enableval="$enable_tickadj" 51811 ans=$enableval 51812else 51813 ans='500/hz' 51814 case "$host" in 51815 *-fujitsu-uxp*) 51816 case "$ac_cv_var_adjtime_is_accurate" in 51817 yes) ans='tick/16' ;; 51818 esac 51819 ;; 51820 XXX-*-pc-cygwin*) 51821 ans=no 51822 ;; 51823 *-univel-sysv*) 51824 ans=80 51825 ;; 51826 *-*-aix*) 51827 case "$ac_cv_var_can_kmem" in 51828 no) ans=1000 ;; 51829 esac 51830 ;; 51831 *-*-domainos) # Skippy: won't be found... 51832 case "$ac_cv_var_can_kmem" in 51833 no) ans=668 ;; 51834 esac 51835 ;; 51836 *-*-hpux*) 51837 case "$ac_cv_var_adjtime_is_accurate" in 51838 yes) ans='tick/16' ;; 51839 esac 51840 ;; 51841 *-*-irix*) 51842 ans=150 51843 ;; 51844 *-*-mpeix*) 51845 ans=no 51846 ;; 51847 *-*-sco3.2v5.0*) 51848 ans=10000L/hz 51849 ;; 51850 *-*-solaris2*) 51851 case "$ac_cv_var_adjtime_is_accurate" in 51852 yes) 51853 #ans='tick/16' 51854 ;; 51855 esac 51856 ;; 51857 *-*-winnt3.5) 51858 ans=50 51859 ;; 51860 *-*-unicosmp*) 51861 ans=150 51862 ;; 51863 esac 51864fi; 51865ac_cv_var_tickadj=$ans 51866fi 51867echo "$as_me:$LINENO: result: $ac_cv_var_tickadj" >&5 51868echo "${ECHO_T}$ac_cv_var_tickadj" >&6 51869case "$ac_cv_var_tickadj" in 51870 ''|no) ;; # HMS: I think we can only get 'no' here... 51871 *) 51872cat >>confdefs.h <<_ACEOF 51873#define PRESET_TICKADJ $ac_cv_var_tickadj 51874_ACEOF 51875 ;; 51876esac 51877 51878# Newer versions of ReliantUNIX round adjtime() values down to 51879# 1/100s (system tick). Sigh ... 51880# Unfortunately, there is no easy way to know if particular release 51881# has this "feature" or any obvious way to test for it. 51882case "$host" in 51883 mips-sni-sysv4*) 51884cat >>confdefs.h <<\_ACEOF 51885#define RELIANTUNIX_CLOCK 1 51886_ACEOF 51887 ;; 51888esac 51889 51890case "$host" in 51891 *-*-sco3.2v5*) 51892cat >>confdefs.h <<\_ACEOF 51893#define SCO5_CLOCK 1 51894_ACEOF 51895 ;; 51896esac 51897 51898ac_cv_make_tickadj=yes 51899case "$ac_cv_var_can_kmem$ac_cv_var_tick$ac_cv_var_tickadj" in 51900 nonono) # Don't read KMEM, no presets. Bogus. 51901 { echo "$as_me:$LINENO: WARNING: Can't read kmem" >&5 51902echo "$as_me: WARNING: Can't read kmem" >&2;} 51903 ac_cv_make_tickadj=no 51904 ;; 51905 nono*) # Don't read KMEM, no PRESET_TICK but PRESET_TICKADJ. Bogus. 51906 { echo "$as_me:$LINENO: WARNING: Can't read kmem but no PRESET_TICK. No tickadj." >&5 51907echo "$as_me: WARNING: Can't read kmem but no PRESET_TICK. No tickadj." >&2;} 51908 ac_cv_make_tickadj=no 51909 ;; 51910 no*no) # Don't read KMEM, PRESET_TICK but no PRESET_TICKADJ. Bogus. 51911 { echo "$as_me:$LINENO: WARNING: Can't read kmem but no PRESET_TICKADJ. No tickadj." >&5 51912echo "$as_me: WARNING: Can't read kmem but no PRESET_TICKADJ. No tickadj." >&2;} 51913 ac_cv_make_tickadj=no 51914 ;; 51915 no*) # Don't read KMEM, PRESET_TICK and PRESET_TICKADJ. Cool. 51916 ;; 51917 yesnono) # Read KMEM, no presets. Cool. 51918 ;; 51919 yesno*) # Read KMEM, no PRESET_TICK but PRESET_TICKADJ. Bogus. 51920 { echo "$as_me:$LINENO: WARNING: PRESET_TICKADJ is defined but not PRESET_TICK. Please report this." >&5 51921echo "$as_me: WARNING: PRESET_TICKADJ is defined but not PRESET_TICK. Please report this." >&2;} 51922 ;; 51923 yes*no) # Read KMEM, PRESET_TICK but no PRESET_TICKADJ. Cool. 51924 ;; 51925 yes*) # READ KMEM, PRESET_TICK and PRESET_TICKADJ. 51926 ;; 51927 *) # Generally bogus. 51928 { { echo "$as_me:$LINENO: error: This shouldn't happen." >&5 51929echo "$as_me: error: This shouldn't happen." >&2;} 51930 { (exit 1); exit 1; }; } 51931 ;; 51932esac 51933 51934 51935echo "$as_me:$LINENO: checking if we want and can make the ntptime utility" >&5 51936echo $ECHO_N "checking if we want and can make the ntptime utility... $ECHO_C" >&6 51937if test "${ac_cv_make_ntptime+set}" = set; then 51938 echo $ECHO_N "(cached) $ECHO_C" >&6 51939else 51940 case "$host" in 51941 *) case "$ac_cv_struct_ntptimeval$ac_cv_var_kernel_pll" in 51942 yesyes) 51943 ans=yes 51944 ;; 51945 *) 51946 ans=no 51947 ;; 51948 esac 51949 ;; 51950esac 51951ac_cv_make_ntptime=$ans 51952fi 51953echo "$as_me:$LINENO: result: $ac_cv_make_ntptime" >&5 51954echo "${ECHO_T}$ac_cv_make_ntptime" >&6 51955case "$ac_cv_make_ntptime" in 51956 yes) 51957 MAKE_NTPTIME=ntptime 51958 ;; 51959esac 51960 51961 51962case "$host" in 51963 mips-sni-sysv4*) 51964 # tickadj is pretty useless on newer versions of ReliantUNIX 51965 # Do not bother 51966 ac_cv_make_tickadj=no 51967 ;; 51968 *-*-irix*) 51969 ac_cv_make_tickadj=no 51970 ;; 51971 *-*-solaris2*) 51972 # DLM says tickadj is a no-no starting with solaris2.5 51973 case "$host" in 51974 *-*-solaris2.1[0-9]*) 51975 ac_cv_make_tickadj=no 51976 ;; 51977 *-*-solaris2.[0-4]*) ;; 51978 *) ac_cv_make_tickadj=no ;; 51979 esac 51980 ;; 51981 *-*-unicosmp*) 51982 ac_cv_make_tickadj=no 51983 ;; 51984esac 51985echo "$as_me:$LINENO: checking if we want and can make the tickadj utility" >&5 51986echo $ECHO_N "checking if we want and can make the tickadj utility... $ECHO_C" >&6 51987if test "${ac_cv_make_tickadj+set}" = set; then 51988 echo $ECHO_N "(cached) $ECHO_C" >&6 51989else 51990 ac_cv_make_tickadj=yes 51991fi 51992echo "$as_me:$LINENO: result: $ac_cv_make_tickadj" >&5 51993echo "${ECHO_T}$ac_cv_make_tickadj" >&6 51994case "$ac_cv_make_tickadj" in 51995 yes) 51996 MAKE_TICKADJ=tickadj 51997 ;; 51998esac 51999 52000 52001echo "$as_me:$LINENO: checking if we want and can make the timetrim utility" >&5 52002echo $ECHO_N "checking if we want and can make the timetrim utility... $ECHO_C" >&6 52003if test "${ac_cv_make_timetrim+set}" = set; then 52004 echo $ECHO_N "(cached) $ECHO_C" >&6 52005else 52006 case "$host" in 52007 *-*-irix*) 52008 ac_cv_make_timetrim=yes 52009 ;; 52010 *-*-unicosmp*) 52011 ac_cv_make_timetrim=yes 52012 ;; 52013 *) 52014 ac_cv_make_timetrim=no 52015 ;; 52016esac 52017fi 52018echo "$as_me:$LINENO: result: $ac_cv_make_timetrim" >&5 52019echo "${ECHO_T}$ac_cv_make_timetrim" >&6 52020case "$ac_cv_make_timetrim" in 52021 yes) 52022 MAKE_TIMETRIM=timetrim 52023 ;; 52024esac 52025 52026 52027 52028echo "$as_me:$LINENO: checking if we want to build the NTPD simulator" >&5 52029echo $ECHO_N "checking if we want to build the NTPD simulator... $ECHO_C" >&6 52030if test "${ac_cv_var_ntpd_sim+set}" = set; then 52031 echo $ECHO_N "(cached) $ECHO_C" >&6 52032else 52033 # Check whether --enable-simulator or --disable-simulator was given. 52034if test "${enable_simulator+set}" = set; then 52035 enableval="$enable_simulator" 52036 ans=$enableval 52037else 52038 ans=no 52039fi; 52040ac_cv_var_ntpd_sim=$ans 52041fi 52042echo "$as_me:$LINENO: result: $ac_cv_var_ntpd_sim" >&5 52043echo "${ECHO_T}$ac_cv_var_ntpd_sim" >&6 52044case "$ac_cv_var_ntpd_sim" in 52045 yes) 52046 MAKE_NTPDSIM=ntpdsim 52047 MAKE_LIBNTPSIM=libntpsim.a 52048 ;; 52049esac 52050 52051case "$build" in 52052 $host) 52053 ;; 52054 *) case "$host" in 52055 *-*-vxworks*) 52056 LDFLAGS="$LDFLAGS -r" 52057 ;; 52058 esac 52059 ;; 52060esac 52061 52062echo "$as_me:$LINENO: checking if we should always slew the time" >&5 52063echo $ECHO_N "checking if we should always slew the time... $ECHO_C" >&6 52064if test "${ac_cv_var_slew_always+set}" = set; then 52065 echo $ECHO_N "(cached) $ECHO_C" >&6 52066else 52067 # Check whether --enable-slew-always or --disable-slew-always was given. 52068if test "${enable_slew_always+set}" = set; then 52069 enableval="$enable_slew_always" 52070 ans=$enableval 52071else 52072 case "$host" in 52073 *-apple-aux[23]*) 52074 ans=yes 52075 ;; 52076 *-*-bsdi[012]*) 52077 ans=no 52078 ;; 52079 *-*-bsdi*) 52080 ans=yes 52081 ;; 52082 *-*-openvms*) # HMS: won't be found 52083 ans=yes 52084 ;; 52085 *) ans=no 52086 ;; 52087 esac 52088 52089fi; 52090ac_cv_var_slew_always=$ans 52091fi 52092echo "$as_me:$LINENO: result: $ac_cv_var_slew_always" >&5 52093echo "${ECHO_T}$ac_cv_var_slew_always" >&6 52094case "$ac_cv_var_slew_always" in 52095 yes) 52096cat >>confdefs.h <<\_ACEOF 52097#define SLEWALWAYS 1 52098_ACEOF 52099 ;; 52100esac 52101 52102echo "$as_me:$LINENO: checking if we should step and slew the time" >&5 52103echo $ECHO_N "checking if we should step and slew the time... $ECHO_C" >&6 52104if test "${ac_cv_var_step_slew+set}" = set; then 52105 echo $ECHO_N "(cached) $ECHO_C" >&6 52106else 52107 # Check whether --enable-step-slew or --disable-step-slew was given. 52108if test "${enable_step_slew+set}" = set; then 52109 enableval="$enable_step_slew" 52110 ans=$enableval 52111else 52112 case "$host" in 52113 *-sni-sysv*) 52114 ans=yes 52115 ;; 52116 *-univel-sysv*) 52117 ans=no 52118 ;; 52119 *-*-ptx*) 52120 ans=yes 52121 ;; 52122 *-*-solaris2.1[0-9]*) 52123 ans=no 52124 ;; 52125 *-*-solaris2.[012]*) 52126 ans=yes 52127 ;; 52128 *-*-sysv4*) # HMS: Does this catch Fujitsu UXP? 52129 ans=yes 52130 ;; 52131 *) ans=no 52132 ;; 52133 esac 52134 52135fi; 52136ac_cv_var_step_slew=$ans 52137fi 52138echo "$as_me:$LINENO: result: $ac_cv_var_step_slew" >&5 52139echo "${ECHO_T}$ac_cv_var_step_slew" >&6 52140case "$ac_cv_var_step_slew" in 52141 yes) 52142cat >>confdefs.h <<\_ACEOF 52143#define STEP_SLEW 1 52144_ACEOF 52145 ;; 52146esac 52147 52148echo "$as_me:$LINENO: checking if ntpdate should step the time" >&5 52149echo $ECHO_N "checking if ntpdate should step the time... $ECHO_C" >&6 52150if test "${ac_cv_var_ntpdate_step+set}" = set; then 52151 echo $ECHO_N "(cached) $ECHO_C" >&6 52152else 52153 # Check whether --enable-ntpdate-step or --disable-ntpdate-step was given. 52154if test "${enable_ntpdate_step+set}" = set; then 52155 enableval="$enable_ntpdate_step" 52156 ans=$enableval 52157else 52158 case "$host" in 52159 *-apple-aux[23]*) 52160 ans=yes 52161 ;; 52162 *) ans=no 52163 ;; 52164 esac 52165 52166fi; 52167ac_cv_var_ntpdate_step=$ans 52168fi 52169echo "$as_me:$LINENO: result: $ac_cv_var_ntpdate_step" >&5 52170echo "${ECHO_T}$ac_cv_var_ntpdate_step" >&6 52171case "$ac_cv_var_ntpdate_step" in 52172 yes) 52173cat >>confdefs.h <<\_ACEOF 52174#define FORCE_NTPDATE_STEP 1 52175_ACEOF 52176 ;; 52177esac 52178 52179echo "$as_me:$LINENO: checking if we should sync TODR clock every hour" >&5 52180echo $ECHO_N "checking if we should sync TODR clock every hour... $ECHO_C" >&6 52181if test "${ac_cv_var_sync_todr+set}" = set; then 52182 echo $ECHO_N "(cached) $ECHO_C" >&6 52183else 52184 # Check whether --enable-hourly-todr-sync or --disable-hourly-todr-sync was given. 52185if test "${enable_hourly_todr_sync+set}" = set; then 52186 enableval="$enable_hourly_todr_sync" 52187 ans=$enableval 52188else 52189 case "$host" in 52190 *-*-nextstep*) 52191 ans=yes 52192 ;; 52193 *-*-openvms*) # HMS: won't be found 52194 ans=yes 52195 ;; 52196 *) ans=no 52197 ;; 52198 esac 52199fi; 52200ac_cv_var_sync_todr=$ans 52201fi 52202echo "$as_me:$LINENO: result: $ac_cv_var_sync_todr" >&5 52203echo "${ECHO_T}$ac_cv_var_sync_todr" >&6 52204case "$ac_cv_var_sync_todr" in 52205 yes) 52206cat >>confdefs.h <<\_ACEOF 52207#define DOSYNCTODR 1 52208_ACEOF 52209 ;; 52210esac 52211 52212echo "$as_me:$LINENO: checking if we should avoid kernel FLL bug" >&5 52213echo $ECHO_N "checking if we should avoid kernel FLL bug... $ECHO_C" >&6 52214if test "${ac_cv_var_kernel_fll_bug+set}" = set; then 52215 echo $ECHO_N "(cached) $ECHO_C" >&6 52216else 52217 # Check whether --enable-kernel-fll-bug or --disable-kernel-fll-bug was given. 52218if test "${enable_kernel_fll_bug+set}" = set; then 52219 enableval="$enable_kernel_fll_bug" 52220 ans=$enableval 52221else 52222 case "$host" in 52223 *-*-solaris2.6) 52224 unamev=`uname -v` 52225 case "$unamev" in 52226 Generic_105181-*) 52227 old_IFS="$IFS" 52228 IFS="-" 52229 set $unamev 52230 IFS="$old_IFS" 52231 if test "$2" -ge 17 52232 then 52233 # Generic_105181-17 and higher 52234 ans=no 52235 else 52236 ans=yes 52237 fi 52238 ;; 52239 *) ans=yes 52240 ;; 52241 esac 52242 ;; 52243 *-*-solaris2.7) 52244 unamev=`uname -v` 52245 case "$unamev" in 52246 Generic_106541-*) 52247 old_IFS="$IFS" 52248 IFS="-" 52249 set $unamev 52250 IFS="$old_IFS" 52251 if test "$2" -ge 07 52252 then 52253 # Generic_106541-07 and higher 52254 ans=no 52255 else 52256 ans=yes 52257 fi 52258 ;; 52259 *) ans=yes 52260 ;; 52261 esac 52262 ;; 52263 *) ans=no 52264 ;; 52265 esac 52266 52267fi; 52268ac_cv_var_kernel_fll_bug=$ans 52269fi 52270echo "$as_me:$LINENO: result: $ac_cv_var_kernel_fll_bug" >&5 52271echo "${ECHO_T}$ac_cv_var_kernel_fll_bug" >&6 52272case "$ac_cv_var_kernel_fll_bug" in 52273 yes) 52274cat >>confdefs.h <<\_ACEOF 52275#define KERNEL_FLL_BUG 1 52276_ACEOF 52277 ;; 52278esac 52279 52280echo "$as_me:$LINENO: checking if we should use the IRIG sawtooth filter" >&5 52281echo $ECHO_N "checking if we should use the IRIG sawtooth filter... $ECHO_C" >&6 52282if test "${ac_cv_var_irig_sucks+set}" = set; then 52283 echo $ECHO_N "(cached) $ECHO_C" >&6 52284else 52285 # Check whether --enable-irig-sawtooth or --disable-irig-sawtooth was given. 52286if test "${enable_irig_sawtooth+set}" = set; then 52287 enableval="$enable_irig_sawtooth" 52288 ans=$enableval 52289else 52290 case "$host" in 52291 *-*-solaris2.[89]) 52292 ans=yes 52293 ;; 52294 *-*-solaris2.1[0-9]*) 52295 ans=yes 52296 ;; 52297 *) ans=no 52298 ;; 52299 esac 52300 52301fi; 52302ac_cv_var_irig_sucks=$ans 52303fi 52304echo "$as_me:$LINENO: result: $ac_cv_var_irig_sucks" >&5 52305echo "${ECHO_T}$ac_cv_var_irig_sucks" >&6 52306case "$ac_cv_var_irig_sucks" in 52307 yes) 52308cat >>confdefs.h <<\_ACEOF 52309#define IRIG_SUCKS 1 52310_ACEOF 52311 ;; 52312esac 52313 52314echo "$as_me:$LINENO: checking if we should enable NIST lockclock scheme" >&5 52315echo $ECHO_N "checking if we should enable NIST lockclock scheme... $ECHO_C" >&6 52316if test "${ac_cv_var_nist_lockclock+set}" = set; then 52317 echo $ECHO_N "(cached) $ECHO_C" >&6 52318else 52319 # Check whether --enable-nist or --disable-nist was given. 52320if test "${enable_nist+set}" = set; then 52321 enableval="$enable_nist" 52322 ans=$enableval 52323else 52324 ans=no 52325fi; 52326ac_cv_var_nist_lockclock=$ans 52327fi 52328echo "$as_me:$LINENO: result: $ac_cv_var_nist_lockclock" >&5 52329echo "${ECHO_T}$ac_cv_var_nist_lockclock" >&6 52330case "$ac_cv_var_nist_lockclock" in 52331 yes) 52332cat >>confdefs.h <<\_ACEOF 52333#define LOCKCLOCK 1 52334_ACEOF 52335 ;; 52336esac 52337 52338# 52339# ISC stuff 52340# 52341 52342if test $ac_cv_struct_sockaddr_has_sa_len = yes; then 52343 52344cat >>confdefs.h <<\_ACEOF 52345#define ISC_PLATFORM_HAVESALEN 52346_ACEOF 52347 52348fi 52349 52350# Check whether --enable-ipv6 or --disable-ipv6 was given. 52351if test "${enable_ipv6+set}" = set; then 52352 enableval="$enable_ipv6" 52353 52354fi; 52355 52356case "$enable_ipv6" in 52357 yes|''|autodetect) 52358 case "$host" in 52359 powerpc-ibm-aix4*) ;; 52360 *) 52361 52362cat >>confdefs.h <<\_ACEOF 52363#define WANT_IPV6 52364_ACEOF 52365 52366 ;; 52367 esac 52368 ;; 52369 no) 52370 ;; 52371esac 52372 52373echo "$as_me:$LINENO: checking for IPv6 structures" >&5 52374echo $ECHO_N "checking for IPv6 structures... $ECHO_C" >&6 52375cat >conftest.$ac_ext <<_ACEOF 52376/* confdefs.h. */ 52377_ACEOF 52378cat confdefs.h >>conftest.$ac_ext 52379cat >>conftest.$ac_ext <<_ACEOF 52380/* end confdefs.h. */ 52381 52382#include <sys/types.h> 52383#include <sys/socket.h> 52384#include <netinet/in.h> 52385int 52386main () 52387{ 52388struct sockaddr_in6 sin6; return (0); 52389 ; 52390 return 0; 52391} 52392_ACEOF 52393rm -f conftest.$ac_objext 52394if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 52395 (eval $ac_compile) 2>conftest.er1 52396 ac_status=$? 52397 grep -v '^ *+' conftest.er1 >conftest.err 52398 rm -f conftest.er1 52399 cat conftest.err >&5 52400 echo "$as_me:$LINENO: \$? = $ac_status" >&5 52401 (exit $ac_status); } && 52402 { ac_try='test -z "$ac_c_werror_flag" 52403 || test ! -s conftest.err' 52404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 52405 (eval $ac_try) 2>&5 52406 ac_status=$? 52407 echo "$as_me:$LINENO: \$? = $ac_status" >&5 52408 (exit $ac_status); }; } && 52409 { ac_try='test -s conftest.$ac_objext' 52410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 52411 (eval $ac_try) 2>&5 52412 ac_status=$? 52413 echo "$as_me:$LINENO: \$? = $ac_status" >&5 52414 (exit $ac_status); }; }; then 52415 echo "$as_me:$LINENO: result: yes" >&5 52416echo "${ECHO_T}yes" >&6 52417 found_ipv6=yes 52418else 52419 echo "$as_me: failed program was:" >&5 52420sed 's/^/| /' conftest.$ac_ext >&5 52421 52422echo "$as_me:$LINENO: result: no" >&5 52423echo "${ECHO_T}no" >&6 52424 found_ipv6=no 52425fi 52426rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 52427 52428# 52429# See whether IPv6 support is provided via a Kame add-on. 52430# This is done before other IPv6 linking tests so LIBS is properly set. 52431# 52432echo "$as_me:$LINENO: checking for Kame IPv6 support" >&5 52433echo $ECHO_N "checking for Kame IPv6 support... $ECHO_C" >&6 52434 52435# Check whether --with-kame or --without-kame was given. 52436if test "${with_kame+set}" = set; then 52437 withval="$with_kame" 52438 use_kame="$withval" 52439else 52440 use_kame="no" 52441fi; 52442 52443case "$use_kame" in 52444 no) 52445 ;; 52446 yes) 52447 kame_path=/usr/local/v6 52448 ;; 52449 *) 52450 kame_path="$use_kame" 52451 ;; 52452esac 52453 52454case "$use_kame" in 52455 no) 52456 echo "$as_me:$LINENO: result: no" >&5 52457echo "${ECHO_T}no" >&6 52458 ;; 52459 *) 52460 if test -f $kame_path/lib/libinet6.a; then 52461 echo "$as_me:$LINENO: result: $kame_path/lib/libinet6.a" >&5 52462echo "${ECHO_T}$kame_path/lib/libinet6.a" >&6 52463 LIBS="-L$kame_path/lib -linet6 $LIBS" 52464 else 52465 { { echo "$as_me:$LINENO: error: $kame_path/lib/libinet6.a not found. 52466 52467Please choose the proper path with the following command: 52468 52469 configure --with-kame=PATH 52470" >&5 52471echo "$as_me: error: $kame_path/lib/libinet6.a not found. 52472 52473Please choose the proper path with the following command: 52474 52475 configure --with-kame=PATH 52476" >&2;} 52477 { (exit 1); exit 1; }; } 52478 fi 52479 ;; 52480esac 52481 52482# 52483# Whether netinet6/in6.h is needed has to be defined in isc/platform.h. 52484# Including it on Kame-using platforms is very bad, though, because 52485# Kame uses #error against direct inclusion. So include it on only 52486# the platform that is otherwise broken without it -- BSD/OS 4.0 through 4.1. 52487# This is done before the in6_pktinfo check because that's what 52488# netinet6/in6.h is needed for. 52489# 52490case "$host" in 52491*-bsdi4.[01]*) 52492 ISC_PLATFORM_NEEDNETINET6IN6H="#define ISC_PLATFORM_NEEDNETINET6IN6H 1" 52493 LWRES_PLATFORM_NEEDNETINET6IN6H="#define LWRES_PLATFORM_NEEDNETINET6IN6H 1" 52494 isc_netinet6in6_hack="#include <netinet6/in6.h>" 52495 ;; 52496*) 52497 ISC_PLATFORM_NEEDNETINET6IN6H="#undef ISC_PLATFORM_NEEDNETINET6IN6H" 52498 LWRES_PLATFORM_NEEDNETINET6IN6H="#undef LWRES_PLATFORM_NEEDNETINET6IN6H" 52499 isc_netinet6in6_hack="" 52500 ;; 52501esac 52502 52503# 52504# This is similar to the netinet6/in6.h issue. 52505# 52506case "$host" in 52507*-sco-sysv*uw*|*-*-sysv*UnixWare*|*-*-sysv*OpenUNIX*) 52508 # UnixWare 52509 # ISC_PLATFORM_NEEDNETINETIN6H="#define ISC_PLATFORM_NEEDNETINETIN6H 1" 52510 # LWRES_PLATFORM_NEEDNETINETIN6H="#define LWRES_PLATFORM_NEEDNETINETIN6H 1" 52511 52512cat >>confdefs.h <<\_ACEOF 52513#define ISC_PLATFORM_FIXIN6ISADDR 1 52514_ACEOF 52515 52516 isc_netinetin6_hack="#include <netinet/in6.h>" 52517 ;; 52518*) 52519 # ISC_PLATFORM_NEEDNETINETIN6H="#undef ISC_PLATFORM_NEEDNETINETIN6H" 52520 # LWRES_PLATFORM_NEEDNETINETIN6H="#undef LWRES_PLATFORM_NEEDNETINETIN6H" 52521 # ISC_PLATFORM_FIXIN6ISADDR="#undef ISC_PLATFORM_FIXIN6ISADDR" 52522 isc_netinetin6_hack="" 52523 ;; 52524esac 52525 52526 52527echo "$as_me:$LINENO: checking for struct if_laddrconf" >&5 52528echo $ECHO_N "checking for struct if_laddrconf... $ECHO_C" >&6 52529cat >conftest.$ac_ext <<_ACEOF 52530/* confdefs.h. */ 52531_ACEOF 52532cat confdefs.h >>conftest.$ac_ext 52533cat >>conftest.$ac_ext <<_ACEOF 52534/* end confdefs.h. */ 52535 52536#include <sys/types.h> 52537#include <net/if6.h> 52538 52539int 52540main () 52541{ 52542 struct if_laddrconf a; 52543 ; 52544 return 0; 52545} 52546_ACEOF 52547rm -f conftest.$ac_objext conftest$ac_exeext 52548if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 52549 (eval $ac_link) 2>conftest.er1 52550 ac_status=$? 52551 grep -v '^ *+' conftest.er1 >conftest.err 52552 rm -f conftest.er1 52553 cat conftest.err >&5 52554 echo "$as_me:$LINENO: \$? = $ac_status" >&5 52555 (exit $ac_status); } && 52556 { ac_try='test -z "$ac_c_werror_flag" 52557 || test ! -s conftest.err' 52558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 52559 (eval $ac_try) 2>&5 52560 ac_status=$? 52561 echo "$as_me:$LINENO: \$? = $ac_status" >&5 52562 (exit $ac_status); }; } && 52563 { ac_try='test -s conftest$ac_exeext' 52564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 52565 (eval $ac_try) 2>&5 52566 ac_status=$? 52567 echo "$as_me:$LINENO: \$? = $ac_status" >&5 52568 (exit $ac_status); }; }; then 52569 echo "$as_me:$LINENO: result: yes" >&5 52570echo "${ECHO_T}yes" >&6 52571 52572cat >>confdefs.h <<\_ACEOF 52573#define ISC_PLATFORM_HAVEIF_LADDRCONF 52574_ACEOF 52575 52576else 52577 echo "$as_me: failed program was:" >&5 52578sed 's/^/| /' conftest.$ac_ext >&5 52579 52580echo "$as_me:$LINENO: result: no" >&5 52581echo "${ECHO_T}no" >&6 52582fi 52583rm -f conftest.err conftest.$ac_objext \ 52584 conftest$ac_exeext conftest.$ac_ext 52585 52586echo "$as_me:$LINENO: checking for struct if_laddrreq" >&5 52587echo $ECHO_N "checking for struct if_laddrreq... $ECHO_C" >&6 52588cat >conftest.$ac_ext <<_ACEOF 52589/* confdefs.h. */ 52590_ACEOF 52591cat confdefs.h >>conftest.$ac_ext 52592cat >>conftest.$ac_ext <<_ACEOF 52593/* end confdefs.h. */ 52594 52595#include <sys/types.h> 52596#include <net/if6.h> 52597 52598int 52599main () 52600{ 52601 struct if_laddrreq a; 52602 ; 52603 return 0; 52604} 52605_ACEOF 52606rm -f conftest.$ac_objext conftest$ac_exeext 52607if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 52608 (eval $ac_link) 2>conftest.er1 52609 ac_status=$? 52610 grep -v '^ *+' conftest.er1 >conftest.err 52611 rm -f conftest.er1 52612 cat conftest.err >&5 52613 echo "$as_me:$LINENO: \$? = $ac_status" >&5 52614 (exit $ac_status); } && 52615 { ac_try='test -z "$ac_c_werror_flag" 52616 || test ! -s conftest.err' 52617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 52618 (eval $ac_try) 2>&5 52619 ac_status=$? 52620 echo "$as_me:$LINENO: \$? = $ac_status" >&5 52621 (exit $ac_status); }; } && 52622 { ac_try='test -s conftest$ac_exeext' 52623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 52624 (eval $ac_try) 2>&5 52625 ac_status=$? 52626 echo "$as_me:$LINENO: \$? = $ac_status" >&5 52627 (exit $ac_status); }; }; then 52628 echo "$as_me:$LINENO: result: yes" >&5 52629echo "${ECHO_T}yes" >&6 52630 52631cat >>confdefs.h <<\_ACEOF 52632#define ISC_PLATFORM_HAVEIF_LADDRREQ 52633_ACEOF 52634 52635else 52636 echo "$as_me: failed program was:" >&5 52637sed 's/^/| /' conftest.$ac_ext >&5 52638 52639echo "$as_me:$LINENO: result: no" >&5 52640echo "${ECHO_T}no" >&6 52641fi 52642rm -f conftest.err conftest.$ac_objext \ 52643 conftest$ac_exeext conftest.$ac_ext 52644 52645case "$found_ipv6" in 52646 yes) 52647 52648cat >>confdefs.h <<\_ACEOF 52649#define ISC_PLATFORM_HAVEIPV6 52650_ACEOF 52651 52652 52653 echo "$as_me:$LINENO: checking for struct sockaddr_in6.sin6_scope_id" >&5 52654echo $ECHO_N "checking for struct sockaddr_in6.sin6_scope_id... $ECHO_C" >&6 52655if test "${ac_cv_member_struct_sockaddr_in6_sin6_scope_id+set}" = set; then 52656 echo $ECHO_N "(cached) $ECHO_C" >&6 52657else 52658 cat >conftest.$ac_ext <<_ACEOF 52659/* confdefs.h. */ 52660_ACEOF 52661cat confdefs.h >>conftest.$ac_ext 52662cat >>conftest.$ac_ext <<_ACEOF 52663/* end confdefs.h. */ 52664 52665#include <sys/types.h> 52666#include <sys/socket.h> 52667#include <netinet/in.h> 52668$isc_netinetin6_hack 52669$isc_netinet6in6_hack 52670 52671 52672int 52673main () 52674{ 52675static struct sockaddr_in6 ac_aggr; 52676if (ac_aggr.sin6_scope_id) 52677return 0; 52678 ; 52679 return 0; 52680} 52681_ACEOF 52682rm -f conftest.$ac_objext 52683if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 52684 (eval $ac_compile) 2>conftest.er1 52685 ac_status=$? 52686 grep -v '^ *+' conftest.er1 >conftest.err 52687 rm -f conftest.er1 52688 cat conftest.err >&5 52689 echo "$as_me:$LINENO: \$? = $ac_status" >&5 52690 (exit $ac_status); } && 52691 { ac_try='test -z "$ac_c_werror_flag" 52692 || test ! -s conftest.err' 52693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 52694 (eval $ac_try) 2>&5 52695 ac_status=$? 52696 echo "$as_me:$LINENO: \$? = $ac_status" >&5 52697 (exit $ac_status); }; } && 52698 { ac_try='test -s conftest.$ac_objext' 52699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 52700 (eval $ac_try) 2>&5 52701 ac_status=$? 52702 echo "$as_me:$LINENO: \$? = $ac_status" >&5 52703 (exit $ac_status); }; }; then 52704 ac_cv_member_struct_sockaddr_in6_sin6_scope_id=yes 52705else 52706 echo "$as_me: failed program was:" >&5 52707sed 's/^/| /' conftest.$ac_ext >&5 52708 52709cat >conftest.$ac_ext <<_ACEOF 52710/* confdefs.h. */ 52711_ACEOF 52712cat confdefs.h >>conftest.$ac_ext 52713cat >>conftest.$ac_ext <<_ACEOF 52714/* end confdefs.h. */ 52715 52716#include <sys/types.h> 52717#include <sys/socket.h> 52718#include <netinet/in.h> 52719$isc_netinetin6_hack 52720$isc_netinet6in6_hack 52721 52722 52723int 52724main () 52725{ 52726static struct sockaddr_in6 ac_aggr; 52727if (sizeof ac_aggr.sin6_scope_id) 52728return 0; 52729 ; 52730 return 0; 52731} 52732_ACEOF 52733rm -f conftest.$ac_objext 52734if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 52735 (eval $ac_compile) 2>conftest.er1 52736 ac_status=$? 52737 grep -v '^ *+' conftest.er1 >conftest.err 52738 rm -f conftest.er1 52739 cat conftest.err >&5 52740 echo "$as_me:$LINENO: \$? = $ac_status" >&5 52741 (exit $ac_status); } && 52742 { ac_try='test -z "$ac_c_werror_flag" 52743 || test ! -s conftest.err' 52744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 52745 (eval $ac_try) 2>&5 52746 ac_status=$? 52747 echo "$as_me:$LINENO: \$? = $ac_status" >&5 52748 (exit $ac_status); }; } && 52749 { ac_try='test -s conftest.$ac_objext' 52750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 52751 (eval $ac_try) 2>&5 52752 ac_status=$? 52753 echo "$as_me:$LINENO: \$? = $ac_status" >&5 52754 (exit $ac_status); }; }; then 52755 ac_cv_member_struct_sockaddr_in6_sin6_scope_id=yes 52756else 52757 echo "$as_me: failed program was:" >&5 52758sed 's/^/| /' conftest.$ac_ext >&5 52759 52760ac_cv_member_struct_sockaddr_in6_sin6_scope_id=no 52761fi 52762rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 52763fi 52764rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 52765fi 52766echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_in6_sin6_scope_id" >&5 52767echo "${ECHO_T}$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" >&6 52768if test $ac_cv_member_struct_sockaddr_in6_sin6_scope_id = yes; then 52769 52770cat >>confdefs.h <<_ACEOF 52771#define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1 52772_ACEOF 52773 52774 52775fi 52776 52777 52778 echo "$as_me:$LINENO: checking for in6_pktinfo" >&5 52779echo $ECHO_N "checking for in6_pktinfo... $ECHO_C" >&6 52780 cat >conftest.$ac_ext <<_ACEOF 52781/* confdefs.h. */ 52782_ACEOF 52783cat confdefs.h >>conftest.$ac_ext 52784cat >>conftest.$ac_ext <<_ACEOF 52785/* end confdefs.h. */ 52786 52787#include <sys/types.h> 52788#include <sys/socket.h> 52789#include <netinet/in.h> 52790$isc_netinetin6_hack 52791$isc_netinet6in6_hack 52792 52793int 52794main () 52795{ 52796struct in6_pktinfo xyzzy; return (0); 52797 ; 52798 return 0; 52799} 52800_ACEOF 52801rm -f conftest.$ac_objext 52802if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 52803 (eval $ac_compile) 2>conftest.er1 52804 ac_status=$? 52805 grep -v '^ *+' conftest.er1 >conftest.err 52806 rm -f conftest.er1 52807 cat conftest.err >&5 52808 echo "$as_me:$LINENO: \$? = $ac_status" >&5 52809 (exit $ac_status); } && 52810 { ac_try='test -z "$ac_c_werror_flag" 52811 || test ! -s conftest.err' 52812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 52813 (eval $ac_try) 2>&5 52814 ac_status=$? 52815 echo "$as_me:$LINENO: \$? = $ac_status" >&5 52816 (exit $ac_status); }; } && 52817 { ac_try='test -s conftest.$ac_objext' 52818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 52819 (eval $ac_try) 2>&5 52820 ac_status=$? 52821 echo "$as_me:$LINENO: \$? = $ac_status" >&5 52822 (exit $ac_status); }; }; then 52823 echo "$as_me:$LINENO: result: yes" >&5 52824echo "${ECHO_T}yes" >&6 52825 52826cat >>confdefs.h <<\_ACEOF 52827#define ISC_PLATFORM_HAVEIN6PKTINFO 52828_ACEOF 52829 52830else 52831 echo "$as_me: failed program was:" >&5 52832sed 's/^/| /' conftest.$ac_ext >&5 52833 52834echo "$as_me:$LINENO: result: no -- disabling runtime ipv6 support" >&5 52835echo "${ECHO_T}no -- disabling runtime ipv6 support" >&6 52836fi 52837rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 52838 52839 # HMS: Use HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID instead? 52840 echo "$as_me:$LINENO: checking for sin6_scope_id in struct sockaddr_in6" >&5 52841echo $ECHO_N "checking for sin6_scope_id in struct sockaddr_in6... $ECHO_C" >&6 52842 cat >conftest.$ac_ext <<_ACEOF 52843/* confdefs.h. */ 52844_ACEOF 52845cat confdefs.h >>conftest.$ac_ext 52846cat >>conftest.$ac_ext <<_ACEOF 52847/* end confdefs.h. */ 52848 52849#include <sys/types.h> 52850#include <sys/socket.h> 52851#include <netinet/in.h> 52852$isc_netinetin6_hack 52853$isc_netinet6in6_hack 52854 52855int 52856main () 52857{ 52858struct sockaddr_in6 xyzzy; xyzzy.sin6_scope_id = 0; return (0); 52859 ; 52860 return 0; 52861} 52862_ACEOF 52863rm -f conftest.$ac_objext 52864if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 52865 (eval $ac_compile) 2>conftest.er1 52866 ac_status=$? 52867 grep -v '^ *+' conftest.er1 >conftest.err 52868 rm -f conftest.er1 52869 cat conftest.err >&5 52870 echo "$as_me:$LINENO: \$? = $ac_status" >&5 52871 (exit $ac_status); } && 52872 { ac_try='test -z "$ac_c_werror_flag" 52873 || test ! -s conftest.err' 52874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 52875 (eval $ac_try) 2>&5 52876 ac_status=$? 52877 echo "$as_me:$LINENO: \$? = $ac_status" >&5 52878 (exit $ac_status); }; } && 52879 { ac_try='test -s conftest.$ac_objext' 52880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 52881 (eval $ac_try) 2>&5 52882 ac_status=$? 52883 echo "$as_me:$LINENO: \$? = $ac_status" >&5 52884 (exit $ac_status); }; }; then 52885 echo "$as_me:$LINENO: result: yes" >&5 52886echo "${ECHO_T}yes" >&6 52887 52888cat >>confdefs.h <<\_ACEOF 52889#define ISC_PLATFORM_HAVESCOPEID 52890_ACEOF 52891 52892else 52893 echo "$as_me: failed program was:" >&5 52894sed 's/^/| /' conftest.$ac_ext >&5 52895 52896result="#define LWRES_HAVE_SIN6_SCOPE_ID 1" 52897fi 52898rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 52899 LWRES_HAVE_SIN6_SCOPE_ID="$result" 52900 52901 ;; 52902esac 52903 52904# We need this check run all the time... 52905echo "$as_me:$LINENO: checking for in6addr_any" >&5 52906echo $ECHO_N "checking for in6addr_any... $ECHO_C" >&6 52907cat >conftest.$ac_ext <<_ACEOF 52908/* confdefs.h. */ 52909_ACEOF 52910cat confdefs.h >>conftest.$ac_ext 52911cat >>conftest.$ac_ext <<_ACEOF 52912/* end confdefs.h. */ 52913 52914#include <sys/types.h> 52915#include <sys/socket.h> 52916#include <netinet/in.h> 52917$isc_netinetin6_hack 52918$isc_netinet6in6_hack 52919$isc_in_addr6_hack 52920 52921int 52922main () 52923{ 52924struct in6_addr in6; in6 = in6addr_any; return (in6.s6_addr[0]); 52925 ; 52926 return 0; 52927} 52928_ACEOF 52929rm -f conftest.$ac_objext conftest$ac_exeext 52930if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 52931 (eval $ac_link) 2>conftest.er1 52932 ac_status=$? 52933 grep -v '^ *+' conftest.er1 >conftest.err 52934 rm -f conftest.er1 52935 cat conftest.err >&5 52936 echo "$as_me:$LINENO: \$? = $ac_status" >&5 52937 (exit $ac_status); } && 52938 { ac_try='test -z "$ac_c_werror_flag" 52939 || test ! -s conftest.err' 52940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 52941 (eval $ac_try) 2>&5 52942 ac_status=$? 52943 echo "$as_me:$LINENO: \$? = $ac_status" >&5 52944 (exit $ac_status); }; } && 52945 { ac_try='test -s conftest$ac_exeext' 52946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 52947 (eval $ac_try) 2>&5 52948 ac_status=$? 52949 echo "$as_me:$LINENO: \$? = $ac_status" >&5 52950 (exit $ac_status); }; }; then 52951 echo "$as_me:$LINENO: result: yes" >&5 52952echo "${ECHO_T}yes" >&6 52953else 52954 echo "$as_me: failed program was:" >&5 52955sed 's/^/| /' conftest.$ac_ext >&5 52956 52957echo "$as_me:$LINENO: result: no" >&5 52958echo "${ECHO_T}no" >&6 52959 52960cat >>confdefs.h <<\_ACEOF 52961#define ISC_PLATFORM_NEEDIN6ADDRANY 52962_ACEOF 52963 52964 52965fi 52966rm -f conftest.err conftest.$ac_objext \ 52967 conftest$ac_exeext conftest.$ac_ext 52968 52969# 52970# Look for a sysctl call to get the list of network interfaces. 52971# 52972echo "$as_me:$LINENO: checking for interface list sysctl" >&5 52973echo $ECHO_N "checking for interface list sysctl... $ECHO_C" >&6 52974cat >conftest.$ac_ext <<_ACEOF 52975/* confdefs.h. */ 52976_ACEOF 52977cat confdefs.h >>conftest.$ac_ext 52978cat >>conftest.$ac_ext <<_ACEOF 52979/* end confdefs.h. */ 52980 52981#include <sys/param.h> 52982#include <sys/sysctl.h> 52983#include <sys/socket.h> 52984#ifdef NET_RT_IFLIST 52985found_rt_iflist 52986#endif 52987 52988_ACEOF 52989if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 52990 $EGREP "found_rt_iflist" >/dev/null 2>&1; then 52991 echo "$as_me:$LINENO: result: yes" >&5 52992echo "${ECHO_T}yes" >&6 52993 52994cat >>confdefs.h <<\_ACEOF 52995#define HAVE_IFLIST_SYSCTL 1 52996_ACEOF 52997 52998else 52999 echo "$as_me:$LINENO: result: no" >&5 53000echo "${ECHO_T}no" >&6 53001fi 53002rm -f conftest* 53003 53004 53005### 53006 53007 53008 ac_expanded=`( 53009 test "x$prefix" = xNONE && prefix="$ac_default_prefix" 53010 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" 53011 eval echo \""$sysconfdir"\" 53012 )` 53013 53014cat >>confdefs.h <<_ACEOF 53015#define NTP_KEYSDIR "$ac_expanded" 53016_ACEOF 53017 53018 53019 53020 ac_config_files="$ac_config_files Makefile" 53021 53022 ac_config_files="$ac_config_files ElectricFence/Makefile" 53023 53024 ac_config_files="$ac_config_files adjtimed/Makefile" 53025 53026 ac_config_files="$ac_config_files clockstuff/Makefile" 53027 53028 ac_config_files="$ac_config_files include/Makefile" 53029 53030 ac_config_files="$ac_config_files include/isc/Makefile" 53031 53032 ac_config_files="$ac_config_files kernel/Makefile" 53033 53034 ac_config_files="$ac_config_files kernel/sys/Makefile" 53035 53036 ac_config_files="$ac_config_files libntp/Makefile" 53037 53038 ac_config_files="$ac_config_files libparse/Makefile" 53039 53040 ac_config_files="$ac_config_files ntpd/Makefile" 53041 53042 ac_config_files="$ac_config_files ntpdate/Makefile" 53043 53044 ac_config_files="$ac_config_files ntpdc/Makefile" 53045 53046 ac_config_files="$ac_config_files ntpdc/nl.pl" 53047 53048 ac_config_files="$ac_config_files ntpq/Makefile" 53049 53050 ac_config_files="$ac_config_files parseutil/Makefile" 53051 53052 ac_config_files="$ac_config_files scripts/Makefile" 53053 53054 ac_config_files="$ac_config_files scripts/calc_tickadj" 53055 53056 ac_config_files="$ac_config_files scripts/checktime" 53057 53058 ac_config_files="$ac_config_files scripts/freq_adj" 53059 53060 ac_config_files="$ac_config_files scripts/html2man" 53061 53062 ac_config_files="$ac_config_files scripts/mkver" 53063 53064 ac_config_files="$ac_config_files scripts/ntp-wait" 53065 53066 ac_config_files="$ac_config_files scripts/ntpsweep" 53067 53068 ac_config_files="$ac_config_files scripts/ntptrace" 53069 53070 ac_config_files="$ac_config_files scripts/ntpver" 53071 53072 ac_config_files="$ac_config_files scripts/plot_summary" 53073 53074 ac_config_files="$ac_config_files scripts/summary" 53075 53076 ac_config_files="$ac_config_files util/Makefile" 53077 53078 53079 53080ac_subdirs_all="$ac_subdirs_all sntp" 53081 53082subdirs="$subdirs sntp" 53083 53084 53085cat >confcache <<\_ACEOF 53086# This file is a shell script that caches the results of configure 53087# tests run on this system so they can be shared between configure 53088# scripts and configure runs, see configure's option --config-cache. 53089# It is not useful on other systems. If it contains results you don't 53090# want to keep, you may remove or edit it. 53091# 53092# config.status only pays attention to the cache file if you give it 53093# the --recheck option to rerun configure. 53094# 53095# `ac_cv_env_foo' variables (set or unset) will be overridden when 53096# loading this file, other *unset* `ac_cv_foo' will be assigned the 53097# following values. 53098 53099_ACEOF 53100 53101# The following way of writing the cache mishandles newlines in values, 53102# but we know of no workaround that is simple, portable, and efficient. 53103# So, don't put newlines in cache variables' values. 53104# Ultrix sh set writes to stderr and can't be redirected directly, 53105# and sets the high bit in the cache file unless we assign to the vars. 53106{ 53107 (set) 2>&1 | 53108 case `(ac_space=' '; set | grep ac_space) 2>&1` in 53109 *ac_space=\ *]) 53110 # `set' does not quote correctly, so add quotes (double-quote 53111 # substitution turns \\\\ into \\, and sed turns \\ into \). 53112 sed -n \ 53113 "s/'/'\\\\''/g; 53114 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 53115 ;; 53116 *) 53117 # `set' quotes correctly as required by POSIX, so do not add quotes. 53118 sed -n \ 53119 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 53120 ;; 53121 esac; 53122} | 53123 sed ' 53124 t clear 53125 : clear 53126 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 53127 t end 53128 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 53129 : end' >>confcache 53130if diff $cache_file confcache >/dev/null 2>&1; then :; else 53131 if test -w $cache_file; then 53132 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 53133 cat confcache >$cache_file 53134 else 53135 echo "not updating unwritable cache $cache_file" 53136 fi 53137fi 53138rm -f confcache 53139 53140test "x$prefix" = xNONE && prefix=$ac_default_prefix 53141# Let make expand exec_prefix. 53142test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 53143 53144# VPATH may cause trouble with some makes, so we remove $(srcdir), 53145# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 53146# trailing colons and then remove the whole line if VPATH becomes empty 53147# (actually we leave an empty line to preserve line numbers). 53148if test "x$srcdir" = x.; then 53149 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 53150s/:*\$(srcdir):*/:/; 53151s/:*\${srcdir}:*/:/; 53152s/:*@srcdir@:*/:/; 53153s/^\([^=]*=[ ]*\):*/\1/; 53154s/:*$//; 53155s/^[^=]*=[ ]*$//; 53156}' 53157fi 53158 53159DEFS=-DHAVE_CONFIG_H 53160 53161ac_libobjs= 53162ac_ltlibobjs= 53163for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 53164 # 1. Remove the extension, and $U if already installed. 53165 ac_i=`echo "$ac_i" | 53166 sed 's/\$U\././;s/\.o$//;s/\.obj$//'` 53167 # 2. Add them. 53168 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" 53169 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' 53170done 53171LIBOBJS=$ac_libobjs 53172 53173LTLIBOBJS=$ac_ltlibobjs 53174 53175 53176if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 53177 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 53178Usually this means the macro was only invoked conditionally." >&5 53179echo "$as_me: error: conditional \"AMDEP\" was never defined. 53180Usually this means the macro was only invoked conditionally." >&2;} 53181 { (exit 1); exit 1; }; } 53182fi 53183if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 53184 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 53185Usually this means the macro was only invoked conditionally." >&5 53186echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 53187Usually this means the macro was only invoked conditionally." >&2;} 53188 { (exit 1); exit 1; }; } 53189fi 53190if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 53191 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 53192Usually this means the macro was only invoked conditionally." >&5 53193echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 53194Usually this means the macro was only invoked conditionally." >&2;} 53195 { (exit 1); exit 1; }; } 53196fi 53197if test -z "${INSTALL_LIBOPTS_TRUE}" && test -z "${INSTALL_LIBOPTS_FALSE}"; then 53198 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LIBOPTS\" was never defined. 53199Usually this means the macro was only invoked conditionally." >&5 53200echo "$as_me: error: conditional \"INSTALL_LIBOPTS\" was never defined. 53201Usually this means the macro was only invoked conditionally." >&2;} 53202 { (exit 1); exit 1; }; } 53203fi 53204if test -z "${NEED_LIBOPTS_TRUE}" && test -z "${NEED_LIBOPTS_FALSE}"; then 53205 { { echo "$as_me:$LINENO: error: conditional \"NEED_LIBOPTS\" was never defined. 53206Usually this means the macro was only invoked conditionally." >&5 53207echo "$as_me: error: conditional \"NEED_LIBOPTS\" was never defined. 53208Usually this means the macro was only invoked conditionally." >&2;} 53209 { (exit 1); exit 1; }; } 53210fi 53211if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 53212 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. 53213Usually this means the macro was only invoked conditionally." >&5 53214echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. 53215Usually this means the macro was only invoked conditionally." >&2;} 53216 { (exit 1); exit 1; }; } 53217fi 53218 53219: ${CONFIG_STATUS=./config.status} 53220ac_clean_files_save=$ac_clean_files 53221ac_clean_files="$ac_clean_files $CONFIG_STATUS" 53222{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 53223echo "$as_me: creating $CONFIG_STATUS" >&6;} 53224cat >$CONFIG_STATUS <<_ACEOF 53225#! $SHELL 53226# Generated by $as_me. 53227# Run this file to recreate the current configuration. 53228# Compiler output produced by configure, useful for debugging 53229# configure, is in config.log if it exists. 53230 53231debug=false 53232ac_cs_recheck=false 53233ac_cs_silent=false 53234SHELL=\${CONFIG_SHELL-$SHELL} 53235_ACEOF 53236 53237cat >>$CONFIG_STATUS <<\_ACEOF 53238## --------------------- ## 53239## M4sh Initialization. ## 53240## --------------------- ## 53241 53242# Be Bourne compatible 53243if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 53244 emulate sh 53245 NULLCMD=: 53246 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 53247 # is contrary to our usage. Disable this feature. 53248 alias -g '${1+"$@"}'='"$@"' 53249elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 53250 set -o posix 53251fi 53252DUALCASE=1; export DUALCASE # for MKS sh 53253 53254# Support unset when possible. 53255if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 53256 as_unset=unset 53257else 53258 as_unset=false 53259fi 53260 53261 53262# Work around bugs in pre-3.0 UWIN ksh. 53263$as_unset ENV MAIL MAILPATH 53264PS1='$ ' 53265PS2='> ' 53266PS4='+ ' 53267 53268# NLS nuisances. 53269for as_var in \ 53270 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 53271 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 53272 LC_TELEPHONE LC_TIME 53273do 53274 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 53275 eval $as_var=C; export $as_var 53276 else 53277 $as_unset $as_var 53278 fi 53279done 53280 53281# Required to use basename. 53282if expr a : '\(a\)' >/dev/null 2>&1; then 53283 as_expr=expr 53284else 53285 as_expr=false 53286fi 53287 53288if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 53289 as_basename=basename 53290else 53291 as_basename=false 53292fi 53293 53294 53295# Name of the executable. 53296as_me=`$as_basename "$0" || 53297$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 53298 X"$0" : 'X\(//\)$' \| \ 53299 X"$0" : 'X\(/\)$' \| \ 53300 . : '\(.\)' 2>/dev/null || 53301echo X/"$0" | 53302 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 53303 /^X\/\(\/\/\)$/{ s//\1/; q; } 53304 /^X\/\(\/\).*/{ s//\1/; q; } 53305 s/.*/./; q'` 53306 53307 53308# PATH needs CR, and LINENO needs CR and PATH. 53309# Avoid depending upon Character Ranges. 53310as_cr_letters='abcdefghijklmnopqrstuvwxyz' 53311as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 53312as_cr_Letters=$as_cr_letters$as_cr_LETTERS 53313as_cr_digits='0123456789' 53314as_cr_alnum=$as_cr_Letters$as_cr_digits 53315 53316# The user is always right. 53317if test "${PATH_SEPARATOR+set}" != set; then 53318 echo "#! /bin/sh" >conf$$.sh 53319 echo "exit 0" >>conf$$.sh 53320 chmod +x conf$$.sh 53321 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 53322 PATH_SEPARATOR=';' 53323 else 53324 PATH_SEPARATOR=: 53325 fi 53326 rm -f conf$$.sh 53327fi 53328 53329 53330 as_lineno_1=$LINENO 53331 as_lineno_2=$LINENO 53332 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 53333 test "x$as_lineno_1" != "x$as_lineno_2" && 53334 test "x$as_lineno_3" = "x$as_lineno_2" || { 53335 # Find who we are. Look in the path if we contain no path at all 53336 # relative or not. 53337 case $0 in 53338 *[\\/]* ) as_myself=$0 ;; 53339 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 53340for as_dir in $PATH 53341do 53342 IFS=$as_save_IFS 53343 test -z "$as_dir" && as_dir=. 53344 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 53345done 53346 53347 ;; 53348 esac 53349 # We did not find ourselves, most probably we were run as `sh COMMAND' 53350 # in which case we are not to be found in the path. 53351 if test "x$as_myself" = x; then 53352 as_myself=$0 53353 fi 53354 if test ! -f "$as_myself"; then 53355 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 53356echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} 53357 { (exit 1); exit 1; }; } 53358 fi 53359 case $CONFIG_SHELL in 53360 '') 53361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 53362for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 53363do 53364 IFS=$as_save_IFS 53365 test -z "$as_dir" && as_dir=. 53366 for as_base in sh bash ksh sh5; do 53367 case $as_dir in 53368 /*) 53369 if ("$as_dir/$as_base" -c ' 53370 as_lineno_1=$LINENO 53371 as_lineno_2=$LINENO 53372 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 53373 test "x$as_lineno_1" != "x$as_lineno_2" && 53374 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 53375 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 53376 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 53377 CONFIG_SHELL=$as_dir/$as_base 53378 export CONFIG_SHELL 53379 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 53380 fi;; 53381 esac 53382 done 53383done 53384;; 53385 esac 53386 53387 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 53388 # uniformly replaced by the line number. The first 'sed' inserts a 53389 # line-number line before each line; the second 'sed' does the real 53390 # work. The second script uses 'N' to pair each line-number line 53391 # with the numbered line, and appends trailing '-' during 53392 # substitution so that $LINENO is not a special case at line end. 53393 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 53394 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 53395 sed '=' <$as_myself | 53396 sed ' 53397 N 53398 s,$,-, 53399 : loop 53400 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 53401 t loop 53402 s,-$,, 53403 s,^['$as_cr_digits']*\n,, 53404 ' >$as_me.lineno && 53405 chmod +x $as_me.lineno || 53406 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 53407echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} 53408 { (exit 1); exit 1; }; } 53409 53410 # Don't try to exec as it changes $[0], causing all sort of problems 53411 # (the dirname of $[0] is not the place where we might find the 53412 # original and so on. Autoconf is especially sensible to this). 53413 . ./$as_me.lineno 53414 # Exit status is that of the last command. 53415 exit 53416} 53417 53418 53419case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 53420 *c*,-n*) ECHO_N= ECHO_C=' 53421' ECHO_T=' ' ;; 53422 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 53423 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 53424esac 53425 53426if expr a : '\(a\)' >/dev/null 2>&1; then 53427 as_expr=expr 53428else 53429 as_expr=false 53430fi 53431 53432rm -f conf$$ conf$$.exe conf$$.file 53433echo >conf$$.file 53434if ln -s conf$$.file conf$$ 2>/dev/null; then 53435 # We could just check for DJGPP; but this test a) works b) is more generic 53436 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 53437 if test -f conf$$.exe; then 53438 # Don't use ln at all; we don't have any links 53439 as_ln_s='cp -p' 53440 else 53441 as_ln_s='ln -s' 53442 fi 53443elif ln conf$$.file conf$$ 2>/dev/null; then 53444 as_ln_s=ln 53445else 53446 as_ln_s='cp -p' 53447fi 53448rm -f conf$$ conf$$.exe conf$$.file 53449 53450if mkdir -p . 2>/dev/null; then 53451 as_mkdir_p=: 53452else 53453 test -d ./-p && rmdir ./-p 53454 as_mkdir_p=false 53455fi 53456 53457as_executable_p="test -f" 53458 53459# Sed expression to map a string onto a valid CPP name. 53460as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 53461 53462# Sed expression to map a string onto a valid variable name. 53463as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 53464 53465 53466# IFS 53467# We need space, tab and new line, in precisely that order. 53468as_nl=' 53469' 53470IFS=" $as_nl" 53471 53472# CDPATH. 53473$as_unset CDPATH 53474 53475exec 6>&1 53476 53477# Open the log real soon, to keep \$[0] and so on meaningful, and to 53478# report actual input values of CONFIG_FILES etc. instead of their 53479# values after options handling. Logging --version etc. is OK. 53480exec 5>>config.log 53481{ 53482 echo 53483 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 53484## Running $as_me. ## 53485_ASBOX 53486} >&5 53487cat >&5 <<_CSEOF 53488 53489This file was extended by ntp $as_me 4.2.4p5, which was 53490generated by GNU Autoconf 2.59. Invocation command line was 53491 53492 CONFIG_FILES = $CONFIG_FILES 53493 CONFIG_HEADERS = $CONFIG_HEADERS 53494 CONFIG_LINKS = $CONFIG_LINKS 53495 CONFIG_COMMANDS = $CONFIG_COMMANDS 53496 $ $0 $@ 53497 53498_CSEOF 53499echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 53500echo >&5 53501_ACEOF 53502 53503# Files that config.status was made for. 53504if test -n "$ac_config_files"; then 53505 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS 53506fi 53507 53508if test -n "$ac_config_headers"; then 53509 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS 53510fi 53511 53512if test -n "$ac_config_links"; then 53513 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS 53514fi 53515 53516if test -n "$ac_config_commands"; then 53517 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS 53518fi 53519 53520cat >>$CONFIG_STATUS <<\_ACEOF 53521 53522ac_cs_usage="\ 53523\`$as_me' instantiates files from templates according to the 53524current configuration. 53525 53526Usage: $0 [OPTIONS] [FILE]... 53527 53528 -h, --help print this help, then exit 53529 -V, --version print version number, then exit 53530 -q, --quiet do not print progress messages 53531 -d, --debug don't remove temporary files 53532 --recheck update $as_me by reconfiguring in the same conditions 53533 --file=FILE[:TEMPLATE] 53534 instantiate the configuration file FILE 53535 --header=FILE[:TEMPLATE] 53536 instantiate the configuration header FILE 53537 53538Configuration files: 53539$config_files 53540 53541Configuration headers: 53542$config_headers 53543 53544Configuration commands: 53545$config_commands 53546 53547Report bugs to <bug-autoconf@gnu.org>." 53548_ACEOF 53549 53550cat >>$CONFIG_STATUS <<_ACEOF 53551ac_cs_version="\\ 53552ntp config.status 4.2.4p5 53553configured by $0, generated by GNU Autoconf 2.59, 53554 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" 53555 53556Copyright (C) 2003 Free Software Foundation, Inc. 53557This config.status script is free software; the Free Software Foundation 53558gives unlimited permission to copy, distribute and modify it." 53559srcdir=$srcdir 53560INSTALL="$INSTALL" 53561_ACEOF 53562 53563cat >>$CONFIG_STATUS <<\_ACEOF 53564# If no file are specified by the user, then we need to provide default 53565# value. By we need to know if files were specified by the user. 53566ac_need_defaults=: 53567while test $# != 0 53568do 53569 case $1 in 53570 --*=*) 53571 ac_option=`expr "x$1" : 'x\([^=]*\)='` 53572 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` 53573 ac_shift=: 53574 ;; 53575 -*) 53576 ac_option=$1 53577 ac_optarg=$2 53578 ac_shift=shift 53579 ;; 53580 *) # This is not an option, so the user has probably given explicit 53581 # arguments. 53582 ac_option=$1 53583 ac_need_defaults=false;; 53584 esac 53585 53586 case $ac_option in 53587 # Handling of the options. 53588_ACEOF 53589cat >>$CONFIG_STATUS <<\_ACEOF 53590 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 53591 ac_cs_recheck=: ;; 53592 --version | --vers* | -V ) 53593 echo "$ac_cs_version"; exit 0 ;; 53594 --he | --h) 53595 # Conflict between --help and --header 53596 { { echo "$as_me:$LINENO: error: ambiguous option: $1 53597Try \`$0 --help' for more information." >&5 53598echo "$as_me: error: ambiguous option: $1 53599Try \`$0 --help' for more information." >&2;} 53600 { (exit 1); exit 1; }; };; 53601 --help | --hel | -h ) 53602 echo "$ac_cs_usage"; exit 0 ;; 53603 --debug | --d* | -d ) 53604 debug=: ;; 53605 --file | --fil | --fi | --f ) 53606 $ac_shift 53607 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 53608 ac_need_defaults=false;; 53609 --header | --heade | --head | --hea ) 53610 $ac_shift 53611 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 53612 ac_need_defaults=false;; 53613 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 53614 | -silent | --silent | --silen | --sile | --sil | --si | --s) 53615 ac_cs_silent=: ;; 53616 53617 # This is an error. 53618 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 53619Try \`$0 --help' for more information." >&5 53620echo "$as_me: error: unrecognized option: $1 53621Try \`$0 --help' for more information." >&2;} 53622 { (exit 1); exit 1; }; } ;; 53623 53624 *) ac_config_targets="$ac_config_targets $1" ;; 53625 53626 esac 53627 shift 53628done 53629 53630ac_configure_extra_args= 53631 53632if $ac_cs_silent; then 53633 exec 6>/dev/null 53634 ac_configure_extra_args="$ac_configure_extra_args --silent" 53635fi 53636 53637_ACEOF 53638cat >>$CONFIG_STATUS <<_ACEOF 53639if \$ac_cs_recheck; then 53640 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 53641 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 53642fi 53643 53644_ACEOF 53645 53646cat >>$CONFIG_STATUS <<_ACEOF 53647# 53648# INIT-COMMANDS section. 53649# 53650 53651AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 53652 53653_ACEOF 53654 53655 53656 53657cat >>$CONFIG_STATUS <<\_ACEOF 53658for ac_config_target in $ac_config_targets 53659do 53660 case "$ac_config_target" in 53661 # Handling of arguments. 53662 "libopts/Makefile" ) CONFIG_FILES="$CONFIG_FILES libopts/Makefile" ;; 53663 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 53664 "ElectricFence/Makefile" ) CONFIG_FILES="$CONFIG_FILES ElectricFence/Makefile" ;; 53665 "adjtimed/Makefile" ) CONFIG_FILES="$CONFIG_FILES adjtimed/Makefile" ;; 53666 "clockstuff/Makefile" ) CONFIG_FILES="$CONFIG_FILES clockstuff/Makefile" ;; 53667 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; 53668 "include/isc/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/isc/Makefile" ;; 53669 "kernel/Makefile" ) CONFIG_FILES="$CONFIG_FILES kernel/Makefile" ;; 53670 "kernel/sys/Makefile" ) CONFIG_FILES="$CONFIG_FILES kernel/sys/Makefile" ;; 53671 "libntp/Makefile" ) CONFIG_FILES="$CONFIG_FILES libntp/Makefile" ;; 53672 "libparse/Makefile" ) CONFIG_FILES="$CONFIG_FILES libparse/Makefile" ;; 53673 "ntpd/Makefile" ) CONFIG_FILES="$CONFIG_FILES ntpd/Makefile" ;; 53674 "ntpdate/Makefile" ) CONFIG_FILES="$CONFIG_FILES ntpdate/Makefile" ;; 53675 "ntpdc/Makefile" ) CONFIG_FILES="$CONFIG_FILES ntpdc/Makefile" ;; 53676 "ntpdc/nl.pl" ) CONFIG_FILES="$CONFIG_FILES ntpdc/nl.pl" ;; 53677 "ntpq/Makefile" ) CONFIG_FILES="$CONFIG_FILES ntpq/Makefile" ;; 53678 "parseutil/Makefile" ) CONFIG_FILES="$CONFIG_FILES parseutil/Makefile" ;; 53679 "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;; 53680 "scripts/calc_tickadj" ) CONFIG_FILES="$CONFIG_FILES scripts/calc_tickadj" ;; 53681 "scripts/checktime" ) CONFIG_FILES="$CONFIG_FILES scripts/checktime" ;; 53682 "scripts/freq_adj" ) CONFIG_FILES="$CONFIG_FILES scripts/freq_adj" ;; 53683 "scripts/html2man" ) CONFIG_FILES="$CONFIG_FILES scripts/html2man" ;; 53684 "scripts/mkver" ) CONFIG_FILES="$CONFIG_FILES scripts/mkver" ;; 53685 "scripts/ntp-wait" ) CONFIG_FILES="$CONFIG_FILES scripts/ntp-wait" ;; 53686 "scripts/ntpsweep" ) CONFIG_FILES="$CONFIG_FILES scripts/ntpsweep" ;; 53687 "scripts/ntptrace" ) CONFIG_FILES="$CONFIG_FILES scripts/ntptrace" ;; 53688 "scripts/ntpver" ) CONFIG_FILES="$CONFIG_FILES scripts/ntpver" ;; 53689 "scripts/plot_summary" ) CONFIG_FILES="$CONFIG_FILES scripts/plot_summary" ;; 53690 "scripts/summary" ) CONFIG_FILES="$CONFIG_FILES scripts/summary" ;; 53691 "util/Makefile" ) CONFIG_FILES="$CONFIG_FILES util/Makefile" ;; 53692 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 53693 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 53694 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 53695echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 53696 { (exit 1); exit 1; }; };; 53697 esac 53698done 53699 53700# If the user did not use the arguments to specify the items to instantiate, 53701# then the envvar interface is used. Set only those that are not. 53702# We use the long form for the default assignment because of an extremely 53703# bizarre bug on SunOS 4.1.3. 53704if $ac_need_defaults; then 53705 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 53706 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 53707 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 53708fi 53709 53710# Have a temporary directory for convenience. Make it in the build tree 53711# simply because there is no reason to put it here, and in addition, 53712# creating and moving files from /tmp can sometimes cause problems. 53713# Create a temporary directory, and hook for its removal unless debugging. 53714$debug || 53715{ 53716 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 53717 trap '{ (exit 1); exit 1; }' 1 2 13 15 53718} 53719 53720# Create a (secure) tmp directory for tmp files. 53721 53722{ 53723 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && 53724 test -n "$tmp" && test -d "$tmp" 53725} || 53726{ 53727 tmp=./confstat$$-$RANDOM 53728 (umask 077 && mkdir $tmp) 53729} || 53730{ 53731 echo "$me: cannot create a temporary directory in ." >&2 53732 { (exit 1); exit 1; } 53733} 53734 53735_ACEOF 53736 53737cat >>$CONFIG_STATUS <<_ACEOF 53738 53739# 53740# CONFIG_FILES section. 53741# 53742 53743# No need to generate the scripts if there are no CONFIG_FILES. 53744# This happens for instance when ./config.status config.h 53745if test -n "\$CONFIG_FILES"; then 53746 # Protect against being on the right side of a sed subst in config.status. 53747 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; 53748 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF 53749s,@SHELL@,$SHELL,;t t 53750s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t 53751s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 53752s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 53753s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t 53754s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t 53755s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t 53756s,@exec_prefix@,$exec_prefix,;t t 53757s,@prefix@,$prefix,;t t 53758s,@program_transform_name@,$program_transform_name,;t t 53759s,@bindir@,$bindir,;t t 53760s,@sbindir@,$sbindir,;t t 53761s,@libexecdir@,$libexecdir,;t t 53762s,@datadir@,$datadir,;t t 53763s,@sysconfdir@,$sysconfdir,;t t 53764s,@sharedstatedir@,$sharedstatedir,;t t 53765s,@localstatedir@,$localstatedir,;t t 53766s,@libdir@,$libdir,;t t 53767s,@includedir@,$includedir,;t t 53768s,@oldincludedir@,$oldincludedir,;t t 53769s,@infodir@,$infodir,;t t 53770s,@mandir@,$mandir,;t t 53771s,@build_alias@,$build_alias,;t t 53772s,@host_alias@,$host_alias,;t t 53773s,@target_alias@,$target_alias,;t t 53774s,@DEFS@,$DEFS,;t t 53775s,@ECHO_C@,$ECHO_C,;t t 53776s,@ECHO_N@,$ECHO_N,;t t 53777s,@ECHO_T@,$ECHO_T,;t t 53778s,@LIBS@,$LIBS,;t t 53779s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t 53780s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t 53781s,@INSTALL_DATA@,$INSTALL_DATA,;t t 53782s,@CYGPATH_W@,$CYGPATH_W,;t t 53783s,@PACKAGE@,$PACKAGE,;t t 53784s,@VERSION@,$VERSION,;t t 53785s,@ACLOCAL@,$ACLOCAL,;t t 53786s,@AUTOCONF@,$AUTOCONF,;t t 53787s,@AUTOMAKE@,$AUTOMAKE,;t t 53788s,@AUTOHEADER@,$AUTOHEADER,;t t 53789s,@MAKEINFO@,$MAKEINFO,;t t 53790s,@install_sh@,$install_sh,;t t 53791s,@STRIP@,$STRIP,;t t 53792s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t 53793s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t 53794s,@mkdir_p@,$mkdir_p,;t t 53795s,@AWK@,$AWK,;t t 53796s,@SET_MAKE@,$SET_MAKE,;t t 53797s,@am__leading_dot@,$am__leading_dot,;t t 53798s,@AMTAR@,$AMTAR,;t t 53799s,@am__tar@,$am__tar,;t t 53800s,@am__untar@,$am__untar,;t t 53801s,@build@,$build,;t t 53802s,@build_cpu@,$build_cpu,;t t 53803s,@build_vendor@,$build_vendor,;t t 53804s,@build_os@,$build_os,;t t 53805s,@host@,$host,;t t 53806s,@host_cpu@,$host_cpu,;t t 53807s,@host_vendor@,$host_vendor,;t t 53808s,@host_os@,$host_os,;t t 53809s,@CC@,$CC,;t t 53810s,@CFLAGS@,$CFLAGS,;t t 53811s,@LDFLAGS@,$LDFLAGS,;t t 53812s,@CPPFLAGS@,$CPPFLAGS,;t t 53813s,@ac_ct_CC@,$ac_ct_CC,;t t 53814s,@EXEEXT@,$EXEEXT,;t t 53815s,@OBJEXT@,$OBJEXT,;t t 53816s,@DEPDIR@,$DEPDIR,;t t 53817s,@am__include@,$am__include,;t t 53818s,@am__quote@,$am__quote,;t t 53819s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t 53820s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t 53821s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t 53822s,@CCDEPMODE@,$CCDEPMODE,;t t 53823s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t 53824s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t 53825s,@CPP@,$CPP,;t t 53826s,@EGREP@,$EGREP,;t t 53827s,@LIBOPTS_DIR@,$LIBOPTS_DIR,;t t 53828s,@INSTALL_LIBOPTS_TRUE@,$INSTALL_LIBOPTS_TRUE,;t t 53829s,@INSTALL_LIBOPTS_FALSE@,$INSTALL_LIBOPTS_FALSE,;t t 53830s,@NEED_LIBOPTS_TRUE@,$NEED_LIBOPTS_TRUE,;t t 53831s,@NEED_LIBOPTS_FALSE@,$NEED_LIBOPTS_FALSE,;t t 53832s,@LIBOPTS_LDADD@,$LIBOPTS_LDADD,;t t 53833s,@LIBOPTS_CFLAGS@,$LIBOPTS_CFLAGS,;t t 53834s,@BINSUBDIR@,$BINSUBDIR,;t t 53835s,@subdirs@,$subdirs,;t t 53836s,@ARLIB_DIR@,$ARLIB_DIR,;t t 53837s,@LN_S@,$LN_S,;t t 53838s,@ECHO@,$ECHO,;t t 53839s,@AR@,$AR,;t t 53840s,@ac_ct_AR@,$ac_ct_AR,;t t 53841s,@RANLIB@,$RANLIB,;t t 53842s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t 53843s,@CXX@,$CXX,;t t 53844s,@CXXFLAGS@,$CXXFLAGS,;t t 53845s,@ac_ct_CXX@,$ac_ct_CXX,;t t 53846s,@CXXDEPMODE@,$CXXDEPMODE,;t t 53847s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t 53848s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t 53849s,@CXXCPP@,$CXXCPP,;t t 53850s,@F77@,$F77,;t t 53851s,@FFLAGS@,$FFLAGS,;t t 53852s,@ac_ct_F77@,$ac_ct_F77,;t t 53853s,@LIBTOOL@,$LIBTOOL,;t t 53854s,@PATH_SH@,$PATH_SH,;t t 53855s,@PATH_PERL@,$PATH_PERL,;t t 53856s,@READLINE_LIBS@,$READLINE_LIBS,;t t 53857s,@U@,$U,;t t 53858s,@ANSI2KNR@,$ANSI2KNR,;t t 53859s,@LIBPARSE@,$LIBPARSE,;t t 53860s,@MAKE_LIBPARSE@,$MAKE_LIBPARSE,;t t 53861s,@MAKE_LIBPARSE_KERNEL@,$MAKE_LIBPARSE_KERNEL,;t t 53862s,@MAKE_CHECK_Y2K@,$MAKE_CHECK_Y2K,;t t 53863s,@OPENSSL@,$OPENSSL,;t t 53864s,@OPENSSL_INC@,$OPENSSL_INC,;t t 53865s,@OPENSSL_LIB@,$OPENSSL_LIB,;t t 53866s,@LCRYPTO@,$LCRYPTO,;t t 53867s,@EF_PROGS@,$EF_PROGS,;t t 53868s,@EF_LIBS@,$EF_LIBS,;t t 53869s,@MAKE_CHECK_LAYOUT@,$MAKE_CHECK_LAYOUT,;t t 53870s,@TESTDCF@,$TESTDCF,;t t 53871s,@DCFD@,$DCFD,;t t 53872s,@MAKE_PARSEKMODULE@,$MAKE_PARSEKMODULE,;t t 53873s,@PROPDELAY@,$PROPDELAY,;t t 53874s,@CHUTEST@,$CHUTEST,;t t 53875s,@CLKTEST@,$CLKTEST,;t t 53876s,@MAKE_ADJTIMED@,$MAKE_ADJTIMED,;t t 53877s,@MAKE_NTPTIME@,$MAKE_NTPTIME,;t t 53878s,@MAKE_TICKADJ@,$MAKE_TICKADJ,;t t 53879s,@MAKE_TIMETRIM@,$MAKE_TIMETRIM,;t t 53880s,@MAKE_LIBNTPSIM@,$MAKE_LIBNTPSIM,;t t 53881s,@MAKE_NTPDSIM@,$MAKE_NTPDSIM,;t t 53882s,@LIBOBJS@,$LIBOBJS,;t t 53883s,@LTLIBOBJS@,$LTLIBOBJS,;t t 53884CEOF 53885 53886_ACEOF 53887 53888 cat >>$CONFIG_STATUS <<\_ACEOF 53889 # Split the substitutions into bite-sized pieces for seds with 53890 # small command number limits, like on Digital OSF/1 and HP-UX. 53891 ac_max_sed_lines=48 53892 ac_sed_frag=1 # Number of current file. 53893 ac_beg=1 # First line for current file. 53894 ac_end=$ac_max_sed_lines # Line after last line for current file. 53895 ac_more_lines=: 53896 ac_sed_cmds= 53897 while $ac_more_lines; do 53898 if test $ac_beg -gt 1; then 53899 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 53900 else 53901 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 53902 fi 53903 if test ! -s $tmp/subs.frag; then 53904 ac_more_lines=false 53905 else 53906 # The purpose of the label and of the branching condition is to 53907 # speed up the sed processing (if there are no `@' at all, there 53908 # is no need to browse any of the substitutions). 53909 # These are the two extra sed commands mentioned above. 53910 (echo ':t 53911 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed 53912 if test -z "$ac_sed_cmds"; then 53913 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" 53914 else 53915 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" 53916 fi 53917 ac_sed_frag=`expr $ac_sed_frag + 1` 53918 ac_beg=$ac_end 53919 ac_end=`expr $ac_end + $ac_max_sed_lines` 53920 fi 53921 done 53922 if test -z "$ac_sed_cmds"; then 53923 ac_sed_cmds=cat 53924 fi 53925fi # test -n "$CONFIG_FILES" 53926 53927_ACEOF 53928cat >>$CONFIG_STATUS <<\_ACEOF 53929for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue 53930 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 53931 case $ac_file in 53932 - | *:- | *:-:* ) # input from stdin 53933 cat >$tmp/stdin 53934 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 53935 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 53936 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 53937 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 53938 * ) ac_file_in=$ac_file.in ;; 53939 esac 53940 53941 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 53942 ac_dir=`(dirname "$ac_file") 2>/dev/null || 53943$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 53944 X"$ac_file" : 'X\(//\)[^/]' \| \ 53945 X"$ac_file" : 'X\(//\)$' \| \ 53946 X"$ac_file" : 'X\(/\)' \| \ 53947 . : '\(.\)' 2>/dev/null || 53948echo X"$ac_file" | 53949 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 53950 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 53951 /^X\(\/\/\)$/{ s//\1/; q; } 53952 /^X\(\/\).*/{ s//\1/; q; } 53953 s/.*/./; q'` 53954 { if $as_mkdir_p; then 53955 mkdir -p "$ac_dir" 53956 else 53957 as_dir="$ac_dir" 53958 as_dirs= 53959 while test ! -d "$as_dir"; do 53960 as_dirs="$as_dir $as_dirs" 53961 as_dir=`(dirname "$as_dir") 2>/dev/null || 53962$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 53963 X"$as_dir" : 'X\(//\)[^/]' \| \ 53964 X"$as_dir" : 'X\(//\)$' \| \ 53965 X"$as_dir" : 'X\(/\)' \| \ 53966 . : '\(.\)' 2>/dev/null || 53967echo X"$as_dir" | 53968 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 53969 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 53970 /^X\(\/\/\)$/{ s//\1/; q; } 53971 /^X\(\/\).*/{ s//\1/; q; } 53972 s/.*/./; q'` 53973 done 53974 test ! -n "$as_dirs" || mkdir $as_dirs 53975 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 53976echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 53977 { (exit 1); exit 1; }; }; } 53978 53979 ac_builddir=. 53980 53981if test "$ac_dir" != .; then 53982 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 53983 # A "../" for each directory in $ac_dir_suffix. 53984 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 53985else 53986 ac_dir_suffix= ac_top_builddir= 53987fi 53988 53989case $srcdir in 53990 .) # No --srcdir option. We are building in place. 53991 ac_srcdir=. 53992 if test -z "$ac_top_builddir"; then 53993 ac_top_srcdir=. 53994 else 53995 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 53996 fi ;; 53997 [\\/]* | ?:[\\/]* ) # Absolute path. 53998 ac_srcdir=$srcdir$ac_dir_suffix; 53999 ac_top_srcdir=$srcdir ;; 54000 *) # Relative path. 54001 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 54002 ac_top_srcdir=$ac_top_builddir$srcdir ;; 54003esac 54004 54005# Do not use `cd foo && pwd` to compute absolute paths, because 54006# the directories may not exist. 54007case `pwd` in 54008.) ac_abs_builddir="$ac_dir";; 54009*) 54010 case "$ac_dir" in 54011 .) ac_abs_builddir=`pwd`;; 54012 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 54013 *) ac_abs_builddir=`pwd`/"$ac_dir";; 54014 esac;; 54015esac 54016case $ac_abs_builddir in 54017.) ac_abs_top_builddir=${ac_top_builddir}.;; 54018*) 54019 case ${ac_top_builddir}. in 54020 .) ac_abs_top_builddir=$ac_abs_builddir;; 54021 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 54022 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 54023 esac;; 54024esac 54025case $ac_abs_builddir in 54026.) ac_abs_srcdir=$ac_srcdir;; 54027*) 54028 case $ac_srcdir in 54029 .) ac_abs_srcdir=$ac_abs_builddir;; 54030 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 54031 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 54032 esac;; 54033esac 54034case $ac_abs_builddir in 54035.) ac_abs_top_srcdir=$ac_top_srcdir;; 54036*) 54037 case $ac_top_srcdir in 54038 .) ac_abs_top_srcdir=$ac_abs_builddir;; 54039 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 54040 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 54041 esac;; 54042esac 54043 54044 54045 case $INSTALL in 54046 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 54047 *) ac_INSTALL=$ac_top_builddir$INSTALL ;; 54048 esac 54049 54050 if test x"$ac_file" != x-; then 54051 { echo "$as_me:$LINENO: creating $ac_file" >&5 54052echo "$as_me: creating $ac_file" >&6;} 54053 rm -f "$ac_file" 54054 fi 54055 # Let's still pretend it is `configure' which instantiates (i.e., don't 54056 # use $as_me), people would be surprised to read: 54057 # /* config.h. Generated by config.status. */ 54058 if test x"$ac_file" = x-; then 54059 configure_input= 54060 else 54061 configure_input="$ac_file. " 54062 fi 54063 configure_input=$configure_input"Generated from `echo $ac_file_in | 54064 sed 's,.*/,,'` by configure." 54065 54066 # First look for the input files in the build tree, otherwise in the 54067 # src tree. 54068 ac_file_inputs=`IFS=: 54069 for f in $ac_file_in; do 54070 case $f in 54071 -) echo $tmp/stdin ;; 54072 [\\/$]*) 54073 # Absolute (can't be DOS-style, as IFS=:) 54074 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 54075echo "$as_me: error: cannot find input file: $f" >&2;} 54076 { (exit 1); exit 1; }; } 54077 echo "$f";; 54078 *) # Relative 54079 if test -f "$f"; then 54080 # Build tree 54081 echo "$f" 54082 elif test -f "$srcdir/$f"; then 54083 # Source tree 54084 echo "$srcdir/$f" 54085 else 54086 # /dev/null tree 54087 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 54088echo "$as_me: error: cannot find input file: $f" >&2;} 54089 { (exit 1); exit 1; }; } 54090 fi;; 54091 esac 54092 done` || { (exit 1); exit 1; } 54093_ACEOF 54094cat >>$CONFIG_STATUS <<_ACEOF 54095 sed "$ac_vpsub 54096$extrasub 54097_ACEOF 54098cat >>$CONFIG_STATUS <<\_ACEOF 54099:t 54100/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 54101s,@configure_input@,$configure_input,;t t 54102s,@srcdir@,$ac_srcdir,;t t 54103s,@abs_srcdir@,$ac_abs_srcdir,;t t 54104s,@top_srcdir@,$ac_top_srcdir,;t t 54105s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t 54106s,@builddir@,$ac_builddir,;t t 54107s,@abs_builddir@,$ac_abs_builddir,;t t 54108s,@top_builddir@,$ac_top_builddir,;t t 54109s,@abs_top_builddir@,$ac_abs_top_builddir,;t t 54110s,@INSTALL@,$ac_INSTALL,;t t 54111" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out 54112 rm -f $tmp/stdin 54113 if test x"$ac_file" != x-; then 54114 mv $tmp/out $ac_file 54115 else 54116 cat $tmp/out 54117 rm -f $tmp/out 54118 fi 54119 54120 # Run the commands associated with the file. 54121 case $ac_file in 54122 ntpdc/nl.pl ) chmod +x ntpdc/nl.pl ;; 54123 scripts/calc_tickadj ) chmod +x scripts/calc_tickadj ;; 54124 scripts/checktime ) chmod +x scripts/checktime ;; 54125 scripts/freq_adj ) chmod +x scripts/freq_adj ;; 54126 scripts/html2man ) chmod +x scripts/html2man ;; 54127 scripts/mkver ) chmod +x scripts/mkver ;; 54128 scripts/ntp-wait ) chmod +x scripts/ntp-wait ;; 54129 scripts/ntpsweep ) chmod +x scripts/ntpsweep ;; 54130 scripts/ntptrace ) chmod +x scripts/ntptrace ;; 54131 scripts/ntpver ) chmod +x scripts/ntpver ;; 54132 scripts/plot_summary ) chmod +x scripts/plot_summary ;; 54133 scripts/summary ) chmod +x scripts/summary ;; 54134 esac 54135done 54136_ACEOF 54137cat >>$CONFIG_STATUS <<\_ACEOF 54138 54139# 54140# CONFIG_HEADER section. 54141# 54142 54143# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 54144# NAME is the cpp macro being defined and VALUE is the value it is being given. 54145# 54146# ac_d sets the value in "#define NAME VALUE" lines. 54147ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' 54148ac_dB='[ ].*$,\1#\2' 54149ac_dC=' ' 54150ac_dD=',;t' 54151# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 54152ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 54153ac_uB='$,\1#\2define\3' 54154ac_uC=' ' 54155ac_uD=',;t' 54156 54157for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue 54158 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 54159 case $ac_file in 54160 - | *:- | *:-:* ) # input from stdin 54161 cat >$tmp/stdin 54162 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 54163 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 54164 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 54165 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 54166 * ) ac_file_in=$ac_file.in ;; 54167 esac 54168 54169 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 54170echo "$as_me: creating $ac_file" >&6;} 54171 54172 # First look for the input files in the build tree, otherwise in the 54173 # src tree. 54174 ac_file_inputs=`IFS=: 54175 for f in $ac_file_in; do 54176 case $f in 54177 -) echo $tmp/stdin ;; 54178 [\\/$]*) 54179 # Absolute (can't be DOS-style, as IFS=:) 54180 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 54181echo "$as_me: error: cannot find input file: $f" >&2;} 54182 { (exit 1); exit 1; }; } 54183 # Do quote $f, to prevent DOS paths from being IFS'd. 54184 echo "$f";; 54185 *) # Relative 54186 if test -f "$f"; then 54187 # Build tree 54188 echo "$f" 54189 elif test -f "$srcdir/$f"; then 54190 # Source tree 54191 echo "$srcdir/$f" 54192 else 54193 # /dev/null tree 54194 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 54195echo "$as_me: error: cannot find input file: $f" >&2;} 54196 { (exit 1); exit 1; }; } 54197 fi;; 54198 esac 54199 done` || { (exit 1); exit 1; } 54200 # Remove the trailing spaces. 54201 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in 54202 54203_ACEOF 54204 54205# Transform confdefs.h into two sed scripts, `conftest.defines' and 54206# `conftest.undefs', that substitutes the proper values into 54207# config.h.in to produce config.h. The first handles `#define' 54208# templates, and the second `#undef' templates. 54209# And first: Protect against being on the right side of a sed subst in 54210# config.status. Protect against being in an unquoted here document 54211# in config.status. 54212rm -f conftest.defines conftest.undefs 54213# Using a here document instead of a string reduces the quoting nightmare. 54214# Putting comments in sed scripts is not portable. 54215# 54216# `end' is used to avoid that the second main sed command (meant for 54217# 0-ary CPP macros) applies to n-ary macro definitions. 54218# See the Autoconf documentation for `clear'. 54219cat >confdef2sed.sed <<\_ACEOF 54220s/[\\&,]/\\&/g 54221s,[\\$`],\\&,g 54222t clear 54223: clear 54224s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp 54225t end 54226s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp 54227: end 54228_ACEOF 54229# If some macros were called several times there might be several times 54230# the same #defines, which is useless. Nevertheless, we may not want to 54231# sort them, since we want the *last* AC-DEFINE to be honored. 54232uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines 54233sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs 54234rm -f confdef2sed.sed 54235 54236# This sed command replaces #undef with comments. This is necessary, for 54237# example, in the case of _POSIX_SOURCE, which is predefined and required 54238# on some systems where configure will not decide to define it. 54239cat >>conftest.undefs <<\_ACEOF 54240s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, 54241_ACEOF 54242 54243# Break up conftest.defines because some shells have a limit on the size 54244# of here documents, and old seds have small limits too (100 cmds). 54245echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS 54246echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS 54247echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS 54248echo ' :' >>$CONFIG_STATUS 54249rm -f conftest.tail 54250while grep . conftest.defines >/dev/null 54251do 54252 # Write a limited-size here document to $tmp/defines.sed. 54253 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS 54254 # Speed up: don't consider the non `#define' lines. 54255 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS 54256 # Work around the forget-to-reset-the-flag bug. 54257 echo 't clr' >>$CONFIG_STATUS 54258 echo ': clr' >>$CONFIG_STATUS 54259 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS 54260 echo 'CEOF 54261 sed -f $tmp/defines.sed $tmp/in >$tmp/out 54262 rm -f $tmp/in 54263 mv $tmp/out $tmp/in 54264' >>$CONFIG_STATUS 54265 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail 54266 rm -f conftest.defines 54267 mv conftest.tail conftest.defines 54268done 54269rm -f conftest.defines 54270echo ' fi # grep' >>$CONFIG_STATUS 54271echo >>$CONFIG_STATUS 54272 54273# Break up conftest.undefs because some shells have a limit on the size 54274# of here documents, and old seds have small limits too (100 cmds). 54275echo ' # Handle all the #undef templates' >>$CONFIG_STATUS 54276rm -f conftest.tail 54277while grep . conftest.undefs >/dev/null 54278do 54279 # Write a limited-size here document to $tmp/undefs.sed. 54280 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS 54281 # Speed up: don't consider the non `#undef' 54282 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS 54283 # Work around the forget-to-reset-the-flag bug. 54284 echo 't clr' >>$CONFIG_STATUS 54285 echo ': clr' >>$CONFIG_STATUS 54286 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS 54287 echo 'CEOF 54288 sed -f $tmp/undefs.sed $tmp/in >$tmp/out 54289 rm -f $tmp/in 54290 mv $tmp/out $tmp/in 54291' >>$CONFIG_STATUS 54292 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail 54293 rm -f conftest.undefs 54294 mv conftest.tail conftest.undefs 54295done 54296rm -f conftest.undefs 54297 54298cat >>$CONFIG_STATUS <<\_ACEOF 54299 # Let's still pretend it is `configure' which instantiates (i.e., don't 54300 # use $as_me), people would be surprised to read: 54301 # /* config.h. Generated by config.status. */ 54302 if test x"$ac_file" = x-; then 54303 echo "/* Generated by configure. */" >$tmp/config.h 54304 else 54305 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h 54306 fi 54307 cat $tmp/in >>$tmp/config.h 54308 rm -f $tmp/in 54309 if test x"$ac_file" != x-; then 54310 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then 54311 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 54312echo "$as_me: $ac_file is unchanged" >&6;} 54313 else 54314 ac_dir=`(dirname "$ac_file") 2>/dev/null || 54315$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 54316 X"$ac_file" : 'X\(//\)[^/]' \| \ 54317 X"$ac_file" : 'X\(//\)$' \| \ 54318 X"$ac_file" : 'X\(/\)' \| \ 54319 . : '\(.\)' 2>/dev/null || 54320echo X"$ac_file" | 54321 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 54322 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 54323 /^X\(\/\/\)$/{ s//\1/; q; } 54324 /^X\(\/\).*/{ s//\1/; q; } 54325 s/.*/./; q'` 54326 { if $as_mkdir_p; then 54327 mkdir -p "$ac_dir" 54328 else 54329 as_dir="$ac_dir" 54330 as_dirs= 54331 while test ! -d "$as_dir"; do 54332 as_dirs="$as_dir $as_dirs" 54333 as_dir=`(dirname "$as_dir") 2>/dev/null || 54334$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 54335 X"$as_dir" : 'X\(//\)[^/]' \| \ 54336 X"$as_dir" : 'X\(//\)$' \| \ 54337 X"$as_dir" : 'X\(/\)' \| \ 54338 . : '\(.\)' 2>/dev/null || 54339echo X"$as_dir" | 54340 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 54341 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 54342 /^X\(\/\/\)$/{ s//\1/; q; } 54343 /^X\(\/\).*/{ s//\1/; q; } 54344 s/.*/./; q'` 54345 done 54346 test ! -n "$as_dirs" || mkdir $as_dirs 54347 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 54348echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 54349 { (exit 1); exit 1; }; }; } 54350 54351 rm -f $ac_file 54352 mv $tmp/config.h $ac_file 54353 fi 54354 else 54355 cat $tmp/config.h 54356 rm -f $tmp/config.h 54357 fi 54358# Compute $ac_file's index in $config_headers. 54359_am_stamp_count=1 54360for _am_header in $config_headers :; do 54361 case $_am_header in 54362 $ac_file | $ac_file:* ) 54363 break ;; 54364 * ) 54365 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 54366 esac 54367done 54368echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null || 54369$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 54370 X$ac_file : 'X\(//\)[^/]' \| \ 54371 X$ac_file : 'X\(//\)$' \| \ 54372 X$ac_file : 'X\(/\)' \| \ 54373 . : '\(.\)' 2>/dev/null || 54374echo X$ac_file | 54375 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 54376 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 54377 /^X\(\/\/\)$/{ s//\1/; q; } 54378 /^X\(\/\).*/{ s//\1/; q; } 54379 s/.*/./; q'`/stamp-h$_am_stamp_count 54380done 54381_ACEOF 54382cat >>$CONFIG_STATUS <<\_ACEOF 54383 54384# 54385# CONFIG_COMMANDS section. 54386# 54387for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue 54388 ac_dest=`echo "$ac_file" | sed 's,:.*,,'` 54389 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` 54390 ac_dir=`(dirname "$ac_dest") 2>/dev/null || 54391$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 54392 X"$ac_dest" : 'X\(//\)[^/]' \| \ 54393 X"$ac_dest" : 'X\(//\)$' \| \ 54394 X"$ac_dest" : 'X\(/\)' \| \ 54395 . : '\(.\)' 2>/dev/null || 54396echo X"$ac_dest" | 54397 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 54398 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 54399 /^X\(\/\/\)$/{ s//\1/; q; } 54400 /^X\(\/\).*/{ s//\1/; q; } 54401 s/.*/./; q'` 54402 { if $as_mkdir_p; then 54403 mkdir -p "$ac_dir" 54404 else 54405 as_dir="$ac_dir" 54406 as_dirs= 54407 while test ! -d "$as_dir"; do 54408 as_dirs="$as_dir $as_dirs" 54409 as_dir=`(dirname "$as_dir") 2>/dev/null || 54410$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 54411 X"$as_dir" : 'X\(//\)[^/]' \| \ 54412 X"$as_dir" : 'X\(//\)$' \| \ 54413 X"$as_dir" : 'X\(/\)' \| \ 54414 . : '\(.\)' 2>/dev/null || 54415echo X"$as_dir" | 54416 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 54417 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 54418 /^X\(\/\/\)$/{ s//\1/; q; } 54419 /^X\(\/\).*/{ s//\1/; q; } 54420 s/.*/./; q'` 54421 done 54422 test ! -n "$as_dirs" || mkdir $as_dirs 54423 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 54424echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 54425 { (exit 1); exit 1; }; }; } 54426 54427 ac_builddir=. 54428 54429if test "$ac_dir" != .; then 54430 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 54431 # A "../" for each directory in $ac_dir_suffix. 54432 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 54433else 54434 ac_dir_suffix= ac_top_builddir= 54435fi 54436 54437case $srcdir in 54438 .) # No --srcdir option. We are building in place. 54439 ac_srcdir=. 54440 if test -z "$ac_top_builddir"; then 54441 ac_top_srcdir=. 54442 else 54443 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 54444 fi ;; 54445 [\\/]* | ?:[\\/]* ) # Absolute path. 54446 ac_srcdir=$srcdir$ac_dir_suffix; 54447 ac_top_srcdir=$srcdir ;; 54448 *) # Relative path. 54449 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 54450 ac_top_srcdir=$ac_top_builddir$srcdir ;; 54451esac 54452 54453# Do not use `cd foo && pwd` to compute absolute paths, because 54454# the directories may not exist. 54455case `pwd` in 54456.) ac_abs_builddir="$ac_dir";; 54457*) 54458 case "$ac_dir" in 54459 .) ac_abs_builddir=`pwd`;; 54460 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 54461 *) ac_abs_builddir=`pwd`/"$ac_dir";; 54462 esac;; 54463esac 54464case $ac_abs_builddir in 54465.) ac_abs_top_builddir=${ac_top_builddir}.;; 54466*) 54467 case ${ac_top_builddir}. in 54468 .) ac_abs_top_builddir=$ac_abs_builddir;; 54469 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 54470 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 54471 esac;; 54472esac 54473case $ac_abs_builddir in 54474.) ac_abs_srcdir=$ac_srcdir;; 54475*) 54476 case $ac_srcdir in 54477 .) ac_abs_srcdir=$ac_abs_builddir;; 54478 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 54479 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 54480 esac;; 54481esac 54482case $ac_abs_builddir in 54483.) ac_abs_top_srcdir=$ac_top_srcdir;; 54484*) 54485 case $ac_top_srcdir in 54486 .) ac_abs_top_srcdir=$ac_abs_builddir;; 54487 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 54488 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 54489 esac;; 54490esac 54491 54492 54493 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 54494echo "$as_me: executing $ac_dest commands" >&6;} 54495 case $ac_dest in 54496 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do 54497 # Strip MF so we end up with the name of the file. 54498 mf=`echo "$mf" | sed -e 's/:.*$//'` 54499 # Check whether this is an Automake generated Makefile or not. 54500 # We used to match only the files named `Makefile.in', but 54501 # some people rename them; so instead we look at the file content. 54502 # Grep'ing the first line is not enough: some people post-process 54503 # each Makefile.in and add a new line on top of each file to say so. 54504 # So let's grep whole file. 54505 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then 54506 dirpart=`(dirname "$mf") 2>/dev/null || 54507$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 54508 X"$mf" : 'X\(//\)[^/]' \| \ 54509 X"$mf" : 'X\(//\)$' \| \ 54510 X"$mf" : 'X\(/\)' \| \ 54511 . : '\(.\)' 2>/dev/null || 54512echo X"$mf" | 54513 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 54514 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 54515 /^X\(\/\/\)$/{ s//\1/; q; } 54516 /^X\(\/\).*/{ s//\1/; q; } 54517 s/.*/./; q'` 54518 else 54519 continue 54520 fi 54521 # Extract the definition of DEPDIR, am__include, and am__quote 54522 # from the Makefile without running `make'. 54523 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 54524 test -z "$DEPDIR" && continue 54525 am__include=`sed -n 's/^am__include = //p' < "$mf"` 54526 test -z "am__include" && continue 54527 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 54528 # When using ansi2knr, U may be empty or an underscore; expand it 54529 U=`sed -n 's/^U = //p' < "$mf"` 54530 # Find all dependency output files, they are included files with 54531 # $(DEPDIR) in their names. We invoke sed twice because it is the 54532 # simplest approach to changing $(DEPDIR) to its actual value in the 54533 # expansion. 54534 for file in `sed -n " 54535 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 54536 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 54537 # Make sure the directory exists. 54538 test -f "$dirpart/$file" && continue 54539 fdir=`(dirname "$file") 2>/dev/null || 54540$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 54541 X"$file" : 'X\(//\)[^/]' \| \ 54542 X"$file" : 'X\(//\)$' \| \ 54543 X"$file" : 'X\(/\)' \| \ 54544 . : '\(.\)' 2>/dev/null || 54545echo X"$file" | 54546 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 54547 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 54548 /^X\(\/\/\)$/{ s//\1/; q; } 54549 /^X\(\/\).*/{ s//\1/; q; } 54550 s/.*/./; q'` 54551 { if $as_mkdir_p; then 54552 mkdir -p $dirpart/$fdir 54553 else 54554 as_dir=$dirpart/$fdir 54555 as_dirs= 54556 while test ! -d "$as_dir"; do 54557 as_dirs="$as_dir $as_dirs" 54558 as_dir=`(dirname "$as_dir") 2>/dev/null || 54559$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 54560 X"$as_dir" : 'X\(//\)[^/]' \| \ 54561 X"$as_dir" : 'X\(//\)$' \| \ 54562 X"$as_dir" : 'X\(/\)' \| \ 54563 . : '\(.\)' 2>/dev/null || 54564echo X"$as_dir" | 54565 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 54566 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 54567 /^X\(\/\/\)$/{ s//\1/; q; } 54568 /^X\(\/\).*/{ s//\1/; q; } 54569 s/.*/./; q'` 54570 done 54571 test ! -n "$as_dirs" || mkdir $as_dirs 54572 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 54573echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} 54574 { (exit 1); exit 1; }; }; } 54575 54576 # echo "creating $dirpart/$file" 54577 echo '# dummy' > "$dirpart/$file" 54578 done 54579done 54580 ;; 54581 esac 54582done 54583_ACEOF 54584 54585cat >>$CONFIG_STATUS <<\_ACEOF 54586 54587{ (exit 0); exit 0; } 54588_ACEOF 54589chmod +x $CONFIG_STATUS 54590ac_clean_files=$ac_clean_files_save 54591 54592 54593# configure is writing to config.log, and then calls config.status. 54594# config.status does its own redirection, appending to config.log. 54595# Unfortunately, on DOS this fails, as config.log is still kept open 54596# by configure, so config.status won't be able to write to it; its 54597# output is simply discarded. So we exec the FD to /dev/null, 54598# effectively closing config.log, so it can be properly (re)opened and 54599# appended to by config.status. When coming back to configure, we 54600# need to make the FD available again. 54601if test "$no_create" != yes; then 54602 ac_cs_success=: 54603 ac_config_status_args= 54604 test "$silent" = yes && 54605 ac_config_status_args="$ac_config_status_args --quiet" 54606 exec 5>/dev/null 54607 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 54608 exec 5>>config.log 54609 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 54610 # would make configure fail if this is the last instruction. 54611 $ac_cs_success || { (exit 1); exit 1; } 54612fi 54613 54614# 54615# CONFIG_SUBDIRS section. 54616# 54617if test "$no_recursion" != yes; then 54618 54619 # Remove --cache-file and --srcdir arguments so they do not pile up. 54620 ac_sub_configure_args= 54621 ac_prev= 54622 for ac_arg in $ac_configure_args; do 54623 if test -n "$ac_prev"; then 54624 ac_prev= 54625 continue 54626 fi 54627 case $ac_arg in 54628 -cache-file | --cache-file | --cache-fil | --cache-fi \ 54629 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 54630 ac_prev=cache_file ;; 54631 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 54632 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ 54633 | --c=*) 54634 ;; 54635 --config-cache | -C) 54636 ;; 54637 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 54638 ac_prev=srcdir ;; 54639 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 54640 ;; 54641 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 54642 ac_prev=prefix ;; 54643 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 54644 ;; 54645 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; 54646 esac 54647 done 54648 54649 # Always prepend --prefix to ensure using the same prefix 54650 # in subdir configurations. 54651 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args" 54652 54653 ac_popdir=`pwd` 54654 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue 54655 54656 # Do not complain, so a configure script can configure whichever 54657 # parts of a large source tree are present. 54658 test -d $srcdir/$ac_dir || continue 54659 54660 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5 54661echo "$as_me: configuring in $ac_dir" >&6;} 54662 { if $as_mkdir_p; then 54663 mkdir -p "$ac_dir" 54664 else 54665 as_dir="$ac_dir" 54666 as_dirs= 54667 while test ! -d "$as_dir"; do 54668 as_dirs="$as_dir $as_dirs" 54669 as_dir=`(dirname "$as_dir") 2>/dev/null || 54670$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 54671 X"$as_dir" : 'X\(//\)[^/]' \| \ 54672 X"$as_dir" : 'X\(//\)$' \| \ 54673 X"$as_dir" : 'X\(/\)' \| \ 54674 . : '\(.\)' 2>/dev/null || 54675echo X"$as_dir" | 54676 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 54677 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 54678 /^X\(\/\/\)$/{ s//\1/; q; } 54679 /^X\(\/\).*/{ s//\1/; q; } 54680 s/.*/./; q'` 54681 done 54682 test ! -n "$as_dirs" || mkdir $as_dirs 54683 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 54684echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 54685 { (exit 1); exit 1; }; }; } 54686 54687 ac_builddir=. 54688 54689if test "$ac_dir" != .; then 54690 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 54691 # A "../" for each directory in $ac_dir_suffix. 54692 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 54693else 54694 ac_dir_suffix= ac_top_builddir= 54695fi 54696 54697case $srcdir in 54698 .) # No --srcdir option. We are building in place. 54699 ac_srcdir=. 54700 if test -z "$ac_top_builddir"; then 54701 ac_top_srcdir=. 54702 else 54703 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 54704 fi ;; 54705 [\\/]* | ?:[\\/]* ) # Absolute path. 54706 ac_srcdir=$srcdir$ac_dir_suffix; 54707 ac_top_srcdir=$srcdir ;; 54708 *) # Relative path. 54709 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 54710 ac_top_srcdir=$ac_top_builddir$srcdir ;; 54711esac 54712 54713# Do not use `cd foo && pwd` to compute absolute paths, because 54714# the directories may not exist. 54715case `pwd` in 54716.) ac_abs_builddir="$ac_dir";; 54717*) 54718 case "$ac_dir" in 54719 .) ac_abs_builddir=`pwd`;; 54720 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 54721 *) ac_abs_builddir=`pwd`/"$ac_dir";; 54722 esac;; 54723esac 54724case $ac_abs_builddir in 54725.) ac_abs_top_builddir=${ac_top_builddir}.;; 54726*) 54727 case ${ac_top_builddir}. in 54728 .) ac_abs_top_builddir=$ac_abs_builddir;; 54729 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 54730 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 54731 esac;; 54732esac 54733case $ac_abs_builddir in 54734.) ac_abs_srcdir=$ac_srcdir;; 54735*) 54736 case $ac_srcdir in 54737 .) ac_abs_srcdir=$ac_abs_builddir;; 54738 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 54739 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 54740 esac;; 54741esac 54742case $ac_abs_builddir in 54743.) ac_abs_top_srcdir=$ac_top_srcdir;; 54744*) 54745 case $ac_top_srcdir in 54746 .) ac_abs_top_srcdir=$ac_abs_builddir;; 54747 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 54748 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 54749 esac;; 54750esac 54751 54752 54753 cd $ac_dir 54754 54755 # Check for guested configure; otherwise get Cygnus style configure. 54756 if test -f $ac_srcdir/configure.gnu; then 54757 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'" 54758 elif test -f $ac_srcdir/configure; then 54759 ac_sub_configure="$SHELL '$ac_srcdir/configure'" 54760 elif test -f $ac_srcdir/configure.in; then 54761 ac_sub_configure=$ac_configure 54762 else 54763 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 54764echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} 54765 ac_sub_configure= 54766 fi 54767 54768 # The recursion is here. 54769 if test -n "$ac_sub_configure"; then 54770 # Make the cache file name correct relative to the subdirectory. 54771 case $cache_file in 54772 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; 54773 *) # Relative path. 54774 ac_sub_cache_file=$ac_top_builddir$cache_file ;; 54775 esac 54776 54777 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 54778echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} 54779 # The eval makes quoting arguments work. 54780 eval $ac_sub_configure $ac_sub_configure_args \ 54781 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir || 54782 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5 54783echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} 54784 { (exit 1); exit 1; }; } 54785 fi 54786 54787 cd $ac_popdir 54788 done 54789fi 54790 54791