1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.68 for ntp 4.2.8p2. 4# 5# Report bugs to <http://bugs.ntp.org./>. 6# 7# 8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 9# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software 10# Foundation, Inc. 11# 12# 13# This configure script is free software; the Free Software Foundation 14# gives unlimited permission to copy, distribute and modify it. 15## -------------------- ## 16## M4sh Initialization. ## 17## -------------------- ## 18 19# Be more Bourne compatible 20DUALCASE=1; export DUALCASE # for MKS sh 21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 22 emulate sh 23 NULLCMD=: 24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 25 # is contrary to our usage. Disable this feature. 26 alias -g '${1+"$@"}'='"$@"' 27 setopt NO_GLOB_SUBST 28else 29 case `(set -o) 2>/dev/null` in #( 30 *posix*) : 31 set -o posix ;; #( 32 *) : 33 ;; 34esac 35fi 36 37 38as_nl=' 39' 40export as_nl 41# Printing a long string crashes Solaris 7 /usr/bin/printf. 42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 45# Prefer a ksh shell builtin over an external printf program on Solaris, 46# but without wasting forks for bash or zsh. 47if test -z "$BASH_VERSION$ZSH_VERSION" \ 48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 49 as_echo='print -r --' 50 as_echo_n='print -rn --' 51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 52 as_echo='printf %s\n' 53 as_echo_n='printf %s' 54else 55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 57 as_echo_n='/usr/ucb/echo -n' 58 else 59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 60 as_echo_n_body='eval 61 arg=$1; 62 case $arg in #( 63 *"$as_nl"*) 64 expr "X$arg" : "X\\(.*\\)$as_nl"; 65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 66 esac; 67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 68 ' 69 export as_echo_n_body 70 as_echo_n='sh -c $as_echo_n_body as_echo' 71 fi 72 export as_echo_body 73 as_echo='sh -c $as_echo_body as_echo' 74fi 75 76# The user is always right. 77if test "${PATH_SEPARATOR+set}" != set; then 78 PATH_SEPARATOR=: 79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 81 PATH_SEPARATOR=';' 82 } 83fi 84 85 86# IFS 87# We need space, tab and new line, in precisely that order. Quoting is 88# there to prevent editors from complaining about space-tab. 89# (If _AS_PATH_WALK were called with IFS unset, it would disable word 90# splitting by setting IFS to empty value.) 91IFS=" "" $as_nl" 92 93# Find who we are. Look in the path if we contain no directory separator. 94as_myself= 95case $0 in #(( 96 *[\\/]* ) as_myself=$0 ;; 97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 98for as_dir in $PATH 99do 100 IFS=$as_save_IFS 101 test -z "$as_dir" && as_dir=. 102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 103 done 104IFS=$as_save_IFS 105 106 ;; 107esac 108# We did not find ourselves, most probably we were run as `sh COMMAND' 109# in which case we are not to be found in the path. 110if test "x$as_myself" = x; then 111 as_myself=$0 112fi 113if test ! -f "$as_myself"; then 114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 115 exit 1 116fi 117 118# Unset variables that we do not need and which cause bugs (e.g. in 119# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 120# suppresses any "Segmentation fault" message there. '((' could 121# trigger a bug in pdksh 5.2.14. 122for as_var in BASH_ENV ENV MAIL MAILPATH 123do eval test x\${$as_var+set} = xset \ 124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 125done 126PS1='$ ' 127PS2='> ' 128PS4='+ ' 129 130# NLS nuisances. 131LC_ALL=C 132export LC_ALL 133LANGUAGE=C 134export LANGUAGE 135 136# CDPATH. 137(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 138 139if test "x$CONFIG_SHELL" = x; then 140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 141 emulate sh 142 NULLCMD=: 143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 144 # is contrary to our usage. Disable this feature. 145 alias -g '\${1+\"\$@\"}'='\"\$@\"' 146 setopt NO_GLOB_SUBST 147else 148 case \`(set -o) 2>/dev/null\` in #( 149 *posix*) : 150 set -o posix ;; #( 151 *) : 152 ;; 153esac 154fi 155" 156 as_required="as_fn_return () { (exit \$1); } 157as_fn_success () { as_fn_return 0; } 158as_fn_failure () { as_fn_return 1; } 159as_fn_ret_success () { return 0; } 160as_fn_ret_failure () { return 1; } 161 162exitcode=0 163as_fn_success || { exitcode=1; echo as_fn_success failed.; } 164as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 165as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 166as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 167if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 168 169else 170 exitcode=1; echo positional parameters were not saved. 171fi 172test x\$exitcode = x0 || exit 1" 173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 177test \$(( 1 + 1 )) = 2 || exit 1 178 179 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 180 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 181 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 182 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 183 PATH=/empty FPATH=/empty; export PATH FPATH 184 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 185 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" 186 if (eval "$as_required") 2>/dev/null; then : 187 as_have_required=yes 188else 189 as_have_required=no 190fi 191 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 192 193else 194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 195as_found=false 196for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 197do 198 IFS=$as_save_IFS 199 test -z "$as_dir" && as_dir=. 200 as_found=: 201 case $as_dir in #( 202 /*) 203 for as_base in sh bash ksh sh5; do 204 # Try only shells that exist, to save several forks. 205 as_shell=$as_dir/$as_base 206 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 208 CONFIG_SHELL=$as_shell as_have_required=yes 209 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 210 break 2 211fi 212fi 213 done;; 214 esac 215 as_found=false 216done 217$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 218 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 219 CONFIG_SHELL=$SHELL as_have_required=yes 220fi; } 221IFS=$as_save_IFS 222 223 224 if test "x$CONFIG_SHELL" != x; then : 225 # We cannot yet assume a decent shell, so we have to provide a 226 # neutralization value for shells without unset; and this also 227 # works around shells that cannot unset nonexistent variables. 228 # Preserve -v and -x to the replacement shell. 229 BASH_ENV=/dev/null 230 ENV=/dev/null 231 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 232 export CONFIG_SHELL 233 case $- in # (((( 234 *v*x* | *x*v* ) as_opts=-vx ;; 235 *v* ) as_opts=-v ;; 236 *x* ) as_opts=-x ;; 237 * ) as_opts= ;; 238 esac 239 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"} 240fi 241 242 if test x$as_have_required = xno; then : 243 $as_echo "$0: This script requires a shell more modern than all" 244 $as_echo "$0: the shells that I found on your system." 245 if test x${ZSH_VERSION+set} = xset ; then 246 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 247 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 248 else 249 $as_echo "$0: Please tell bug-autoconf@gnu.org and 250$0: http://bugs.ntp.org./ about your system, including any 251$0: error possibly output before this message. Then install 252$0: a modern shell, or manually run the script under such a 253$0: shell if you do have one." 254 fi 255 exit 1 256fi 257fi 258fi 259SHELL=${CONFIG_SHELL-/bin/sh} 260export SHELL 261# Unset more variables known to interfere with behavior of common tools. 262CLICOLOR_FORCE= GREP_OPTIONS= 263unset CLICOLOR_FORCE GREP_OPTIONS 264 265## --------------------- ## 266## M4sh Shell Functions. ## 267## --------------------- ## 268# as_fn_unset VAR 269# --------------- 270# Portably unset VAR. 271as_fn_unset () 272{ 273 { eval $1=; unset $1;} 274} 275as_unset=as_fn_unset 276 277# as_fn_set_status STATUS 278# ----------------------- 279# Set $? to STATUS, without forking. 280as_fn_set_status () 281{ 282 return $1 283} # as_fn_set_status 284 285# as_fn_exit STATUS 286# ----------------- 287# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 288as_fn_exit () 289{ 290 set +e 291 as_fn_set_status $1 292 exit $1 293} # as_fn_exit 294 295# as_fn_mkdir_p 296# ------------- 297# Create "$as_dir" as a directory, including parents if necessary. 298as_fn_mkdir_p () 299{ 300 301 case $as_dir in #( 302 -*) as_dir=./$as_dir;; 303 esac 304 test -d "$as_dir" || eval $as_mkdir_p || { 305 as_dirs= 306 while :; do 307 case $as_dir in #( 308 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 309 *) as_qdir=$as_dir;; 310 esac 311 as_dirs="'$as_qdir' $as_dirs" 312 as_dir=`$as_dirname -- "$as_dir" || 313$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 314 X"$as_dir" : 'X\(//\)[^/]' \| \ 315 X"$as_dir" : 'X\(//\)$' \| \ 316 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 317$as_echo X"$as_dir" | 318 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 319 s//\1/ 320 q 321 } 322 /^X\(\/\/\)[^/].*/{ 323 s//\1/ 324 q 325 } 326 /^X\(\/\/\)$/{ 327 s//\1/ 328 q 329 } 330 /^X\(\/\).*/{ 331 s//\1/ 332 q 333 } 334 s/.*/./; q'` 335 test -d "$as_dir" && break 336 done 337 test -z "$as_dirs" || eval "mkdir $as_dirs" 338 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 339 340 341} # as_fn_mkdir_p 342# as_fn_append VAR VALUE 343# ---------------------- 344# Append the text in VALUE to the end of the definition contained in VAR. Take 345# advantage of any shell optimizations that allow amortized linear growth over 346# repeated appends, instead of the typical quadratic growth present in naive 347# implementations. 348if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 349 eval 'as_fn_append () 350 { 351 eval $1+=\$2 352 }' 353else 354 as_fn_append () 355 { 356 eval $1=\$$1\$2 357 } 358fi # as_fn_append 359 360# as_fn_arith ARG... 361# ------------------ 362# Perform arithmetic evaluation on the ARGs, and store the result in the 363# global $as_val. Take advantage of shells that can avoid forks. The arguments 364# must be portable across $(()) and expr. 365if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 366 eval 'as_fn_arith () 367 { 368 as_val=$(( $* )) 369 }' 370else 371 as_fn_arith () 372 { 373 as_val=`expr "$@" || test $? -eq 1` 374 } 375fi # as_fn_arith 376 377 378# as_fn_error STATUS ERROR [LINENO LOG_FD] 379# ---------------------------------------- 380# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 381# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 382# script with STATUS, using 1 if that was 0. 383as_fn_error () 384{ 385 as_status=$1; test $as_status -eq 0 && as_status=1 386 if test "$4"; then 387 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 388 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 389 fi 390 $as_echo "$as_me: error: $2" >&2 391 as_fn_exit $as_status 392} # as_fn_error 393 394if expr a : '\(a\)' >/dev/null 2>&1 && 395 test "X`expr 00001 : '.*\(...\)'`" = X001; then 396 as_expr=expr 397else 398 as_expr=false 399fi 400 401if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 402 as_basename=basename 403else 404 as_basename=false 405fi 406 407if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 408 as_dirname=dirname 409else 410 as_dirname=false 411fi 412 413as_me=`$as_basename -- "$0" || 414$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 415 X"$0" : 'X\(//\)$' \| \ 416 X"$0" : 'X\(/\)' \| . 2>/dev/null || 417$as_echo X/"$0" | 418 sed '/^.*\/\([^/][^/]*\)\/*$/{ 419 s//\1/ 420 q 421 } 422 /^X\/\(\/\/\)$/{ 423 s//\1/ 424 q 425 } 426 /^X\/\(\/\).*/{ 427 s//\1/ 428 q 429 } 430 s/.*/./; q'` 431 432# Avoid depending upon Character Ranges. 433as_cr_letters='abcdefghijklmnopqrstuvwxyz' 434as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 435as_cr_Letters=$as_cr_letters$as_cr_LETTERS 436as_cr_digits='0123456789' 437as_cr_alnum=$as_cr_Letters$as_cr_digits 438 439 440 as_lineno_1=$LINENO as_lineno_1a=$LINENO 441 as_lineno_2=$LINENO as_lineno_2a=$LINENO 442 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 443 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 444 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 445 sed -n ' 446 p 447 /[$]LINENO/= 448 ' <$as_myself | 449 sed ' 450 s/[$]LINENO.*/&-/ 451 t lineno 452 b 453 :lineno 454 N 455 :loop 456 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 457 t loop 458 s/-\n.*// 459 ' >$as_me.lineno && 460 chmod +x "$as_me.lineno" || 461 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 462 463 # Don't try to exec as it changes $[0], causing all sort of problems 464 # (the dirname of $[0] is not the place where we might find the 465 # original and so on. Autoconf is especially sensitive to this). 466 . "./$as_me.lineno" 467 # Exit status is that of the last command. 468 exit 469} 470 471ECHO_C= ECHO_N= ECHO_T= 472case `echo -n x` in #((((( 473-n*) 474 case `echo 'xy\c'` in 475 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 476 xy) ECHO_C='\c';; 477 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 478 ECHO_T=' ';; 479 esac;; 480*) 481 ECHO_N='-n';; 482esac 483 484rm -f conf$$ conf$$.exe conf$$.file 485if test -d conf$$.dir; then 486 rm -f conf$$.dir/conf$$.file 487else 488 rm -f conf$$.dir 489 mkdir conf$$.dir 2>/dev/null 490fi 491if (echo >conf$$.file) 2>/dev/null; then 492 if ln -s conf$$.file conf$$ 2>/dev/null; then 493 as_ln_s='ln -s' 494 # ... but there are two gotchas: 495 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 496 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 497 # In both cases, we have to default to `cp -p'. 498 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 499 as_ln_s='cp -p' 500 elif ln conf$$.file conf$$ 2>/dev/null; then 501 as_ln_s=ln 502 else 503 as_ln_s='cp -p' 504 fi 505else 506 as_ln_s='cp -p' 507fi 508rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 509rmdir conf$$.dir 2>/dev/null 510 511if mkdir -p . 2>/dev/null; then 512 as_mkdir_p='mkdir -p "$as_dir"' 513else 514 test -d ./-p && rmdir ./-p 515 as_mkdir_p=false 516fi 517 518if test -x / >/dev/null 2>&1; then 519 as_test_x='test -x' 520else 521 if ls -dL / >/dev/null 2>&1; then 522 as_ls_L_option=L 523 else 524 as_ls_L_option= 525 fi 526 as_test_x=' 527 eval sh -c '\'' 528 if test -d "$1"; then 529 test -d "$1/."; 530 else 531 case $1 in #( 532 -*)set "./$1";; 533 esac; 534 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 535 ???[sx]*):;;*)false;;esac;fi 536 '\'' sh 537 ' 538fi 539as_executable_p=$as_test_x 540 541# Sed expression to map a string onto a valid CPP name. 542as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 543 544# Sed expression to map a string onto a valid variable name. 545as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 546 547SHELL=${CONFIG_SHELL-/bin/sh} 548 549 550test -n "$DJDIR" || exec 7<&0 </dev/null 551exec 6>&1 552 553# Name of the host. 554# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 555# so uname gets run too. 556ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 557 558# 559# Initializations. 560# 561ac_default_prefix=/usr/local 562ac_clean_files= 563ac_config_libobj_dir=. 564LIBOBJS= 565cross_compiling=no 566subdirs= 567MFLAGS= 568MAKEFLAGS= 569 570# Identity of this package. 571PACKAGE_NAME='ntp' 572PACKAGE_TARNAME='ntp' 573PACKAGE_VERSION='4.2.8p2' 574PACKAGE_STRING='ntp 4.2.8p2' 575PACKAGE_BUGREPORT='http://bugs.ntp.org./' 576PACKAGE_URL='http://www.ntp.org./' 577 578# Factoring default headers for most tests. 579ac_includes_default="\ 580#include <stdio.h> 581#ifdef HAVE_SYS_TYPES_H 582# include <sys/types.h> 583#endif 584#ifdef HAVE_SYS_STAT_H 585# include <sys/stat.h> 586#endif 587#ifdef STDC_HEADERS 588# include <stdlib.h> 589# include <stddef.h> 590#else 591# ifdef HAVE_STDLIB_H 592# include <stdlib.h> 593# endif 594#endif 595#ifdef HAVE_STRING_H 596# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 597# include <memory.h> 598# endif 599# include <string.h> 600#endif 601#ifdef HAVE_STRINGS_H 602# include <strings.h> 603#endif 604#ifdef HAVE_INTTYPES_H 605# include <inttypes.h> 606#endif 607#ifdef HAVE_STDINT_H 608# include <stdint.h> 609#endif 610#ifdef HAVE_UNISTD_H 611# include <unistd.h> 612#endif" 613 614ac_header_list= 615enable_option_checking=no 616ac_subst_vars='am__EXEEXT_FALSE 617am__EXEEXT_TRUE 618LTLIBOBJS 619subdirs 620PERLLIBDIR 621NTP_KEYSDIR 622GTEST_AVAILABLE_FALSE 623GTEST_AVAILABLE_TRUE 624GTEST_CPPFLAGS 625GTEST_CXXFLAGS 626GTEST_LIBS 627GTEST_LDFLAGS 628GTEST_CONFIG 629SAVECONFIG_ENABLED_FALSE 630SAVECONFIG_ENABLED_TRUE 631LSCF 632MAKE_NTPSNMPD 633SNMP_CFLAGS 634SNMP_CPPFLAGS 635SNMP_LIBS 636BUILD_SNTP_FALSE 637BUILD_SNTP_TRUE 638SNTP 639MAKE_NTPDSIM 640MAKE_LIBNTPSIM 641MAKE_TIMETRIM 642MAKE_TICKADJ 643MAKE_NTPTIME 644MAKE_ADJTIMED 645CHUTEST 646PROPDELAY 647MAKE_PARSEKMODULE 648DCFD 649TESTDCF 650MAKE_CHECK_LAYOUT 651VER_SUFFIX 652MAKE_CHECK_Y2K 653MAKE_LIBPARSE_KERNEL 654MAKE_LIBPARSE 655LIBPARSE 656HAVE_RLIMIT_STACK 657HAVE_RLIMIT_MEMLOCK 658LDADD_NLIST 659PATH_NET_SNMP_CONFIG 660CONFIG_SHELL 661PATH_TEST 662PATH_PERL 663LIBOBJS 664PTHREADS_FALSE 665PTHREADS_TRUE 666LIBISC_PTHREADS_NOTHREADS 667PTHREAD_LIBS 668HAVE_INLINE 669LDADD_LIBUTIL 670ALLOCA 671LIBM 672EDITLINE_LIBS 673LDADD_LIBNTP 674NTP_CROSSCOMPILE_FALSE 675NTP_CROSSCOMPILE_TRUE 676BUILD_LIBEVENT_FALSE 677BUILD_LIBEVENT_TRUE 678LDADD_LIBEVENT 679CPPFLAGS_LIBEVENT 680PKG_CONFIG 681LIBOPTS_DIR 682LIBOPTS_CFLAGS 683LIBOPTS_LDADD 684NEED_LIBOPTS_FALSE 685NEED_LIBOPTS_TRUE 686INSTALL_LIBOPTS_FALSE 687INSTALL_LIBOPTS_TRUE 688POSIX_SHELL 689GL_GENERATE_STDNORETURN_H_FALSE 690GL_GENERATE_STDNORETURN_H_TRUE 691STDNORETURN_H 692LIBTOOL_DEPS 693CXXCPP 694OTOOL64 695OTOOL 696LIPO 697NMEDIT 698DSYMUTIL 699MANIFEST_TOOL 700RANLIB 701ac_ct_AR 702AR 703DLLTOOL 704OBJDUMP 705LN_S 706NM 707ac_ct_DUMPBIN 708DUMPBIN 709LD 710FGREP 711SED 712LIBTOOL 713INSTALL_UPDATE_LEAP_FALSE 714INSTALL_UPDATE_LEAP_TRUE 715UPDATE_LEAP_NI 716UPDATE_LEAP_MS 717UPDATE_LEAP_DS 718UPDATE_LEAP_DL 719UPDATE_LEAP_DB 720TIMETRIM_NI 721TIMETRIM_MS 722TIMETRIM_DS 723TIMETRIM_DL 724TIMETRIM_DB 725TICKADJ_NI 726TICKADJ_MS 727TICKADJ_DS 728TICKADJ_DL 729TICKADJ_DB 730SNTP_NI 731SNTP_MS 732SNTP_DS 733SNTP_DL 734SNTP_DB 735NTP_WAIT_NI 736NTP_WAIT_MS 737NTP_WAIT_DS 738NTP_WAIT_DL 739NTP_WAIT_DB 740NTP_KEYGEN_NI 741NTP_KEYGEN_MS 742NTP_KEYGEN_DS 743NTP_KEYGEN_DL 744NTP_KEYGEN_DB 745NTPTRACE_NI 746NTPTRACE_MS 747NTPTRACE_DS 748NTPTRACE_DL 749NTPTRACE_DB 750NTPTIME_NI 751NTPTIME_MS 752NTPTIME_DS 753NTPTIME_DL 754NTPTIME_DB 755INSTALL_NTPSWEEP_FALSE 756INSTALL_NTPSWEEP_TRUE 757NTPSWEEP_NI 758NTPSWEEP_MS 759NTPSWEEP_DS 760NTPSWEEP_DL 761NTPSWEEP_DB 762NTPSNMPD_NI 763NTPSNMPD_MS 764NTPSNMPD_DS 765NTPSNMPD_DL 766NTPSNMPD_DB 767NTPQ_NI 768NTPQ_MS 769NTPQ_DS 770NTPQ_DL 771NTPQ_DB 772NTPD_NI 773NTPD_MS 774NTPD_DS 775NTPD_DL 776NTPD_DB 777NTPDSIM_NI 778NTPDSIM_MS 779NTPDSIM_DS 780NTPDSIM_DL 781NTPDSIM_DB 782NTPDC_NI 783NTPDC_MS 784NTPDC_DS 785NTPDC_DL 786NTPDC_DB 787NTPDATE_NI 788NTPDATE_MS 789NTPDATE_DS 790NTPDATE_DL 791NTPDATE_DB 792MANTAGFMT 793CALC_TICKADJ_NI 794CALC_TICKADJ_MS 795CALC_TICKADJ_DS 796CALC_TICKADJ_DL 797CALC_TICKADJ_DB 798WANT_CALC_TICKADJ_MS_FALSE 799WANT_CALC_TICKADJ_MS_TRUE 800VPATH_HACK_FALSE 801VPATH_HACK_TRUE 802YFLAGS 803YACC 804am__fastdepCXX_FALSE 805am__fastdepCXX_TRUE 806CXXDEPMODE 807ac_ct_CXX 808CXXFLAGS 809CXX 810LDFLAGS_NTP 811LDADD_NTP 812CPPFLAGS_NTP 813CFLAGS_NTP 814EGREP 815GREP 816CPP 817am__fastdepCC_FALSE 818am__fastdepCC_TRUE 819CCDEPMODE 820AMDEPBACKSLASH 821AMDEP_FALSE 822AMDEP_TRUE 823am__quote 824am__include 825DEPDIR 826OBJEXT 827EXEEXT 828ac_ct_CC 829CPPFLAGS 830LDFLAGS 831CFLAGS 832CC 833host_os 834host_vendor 835host_cpu 836host 837build_os 838build_vendor 839build_cpu 840build 841AM_BACKSLASH 842AM_DEFAULT_VERBOSITY 843am__untar 844am__tar 845AMTAR 846am__leading_dot 847SET_MAKE 848AWK 849mkdir_p 850MKDIR_P 851INSTALL_STRIP_PROGRAM 852STRIP 853install_sh 854MAKEINFO 855AUTOHEADER 856AUTOMAKE 857AUTOCONF 858ACLOCAL 859VERSION 860PACKAGE 861CYGPATH_W 862am__isrc 863INSTALL_DATA 864INSTALL_SCRIPT 865INSTALL_PROGRAM 866target_alias 867host_alias 868build_alias 869LIBS 870ECHO_T 871ECHO_N 872ECHO_C 873DEFS 874mandir 875localedir 876libdir 877psdir 878pdfdir 879dvidir 880htmldir 881infodir 882docdir 883oldincludedir 884includedir 885localstatedir 886sharedstatedir 887sysconfdir 888datadir 889datarootdir 890libexecdir 891sbindir 892bindir 893program_transform_name 894prefix 895exec_prefix 896PACKAGE_URL 897PACKAGE_BUGREPORT 898PACKAGE_STRING 899PACKAGE_VERSION 900PACKAGE_TARNAME 901PACKAGE_NAME 902PATH_SEPARATOR 903SHELL' 904ac_subst_files='calc_tickadj_opts 905ntp_wait_opts 906ntpsweep_opts 907ntptrace_opts 908summary_opts 909plot_summary_opts' 910ac_user_opts=' 911enable_option_checking 912enable_silent_rules 913enable_dependency_tracking 914with_locfile 915enable_shared 916enable_static 917with_pic 918enable_fast_install 919with_gnu_ld 920with_sysroot 921enable_libtool_lock 922enable_nls 923enable_local_libopts 924enable_libopts_install 925with_autoopts_config 926enable_local_libevent 927with_lineeditlibs 928enable_debugging 929enable_thread_support 930with_threads 931with_yielding_select 932enable_c99_snprintf 933enable_clockctl 934enable_linuxcaps 935enable_solarisprivs 936with_arlib 937with_net_snmp_config 938enable_libseccomp 939with_stack_limit 940with_memlock 941enable_debug_timing 942enable_dst_minutes 943enable_ignore_dns_errors 944enable_BANCOMM 945enable_GPSVME 946enable_all_clocks 947enable_ACTS 948enable_ARBITER 949enable_ARCRON_MSF 950enable_AS2201 951enable_ATOM 952enable_CHRONOLOG 953enable_CHU 954enable_AUDIO_CHU 955enable_DATUM 956enable_DUMBCLOCK 957enable_FG 958enable_HEATH 959enable_HOPFSERIAL 960enable_HOPFPCI 961enable_HPGPS 962enable_IRIG 963enable_JJY 964enable_JUPITER 965enable_LEITCH 966enable_LOCAL_CLOCK 967enable_MX4200 968enable_NEOCLOCK4X 969enable_NMEA 970enable_GPSD 971enable_ONCORE 972enable_PALISADE 973enable_PCF 974enable_PST 975enable_RIPENCC 976enable_SHM 977enable_SPECTRACOM 978enable_TPRO 979enable_TRUETIME 980enable_TT560 981enable_ULINK 982enable_TSYNCPCI 983enable_WWV 984enable_ZYFER 985enable_parse_clocks 986enable_COMPUTIME 987enable_DCF7000 988enable_HOPF6021 989enable_MEINBERG 990enable_RAWDCF 991enable_RCC8000 992enable_SCHMID 993enable_TRIMTAIP 994enable_TRIMTSIP 995enable_WHARTON 996enable_VARITEXT 997enable_SEL240X 998with_crypto 999with_openssl_libdir 1000with_openssl_incdir 1001with_rpath 1002enable_openssl_random 1003enable_autokey 1004enable_kmem 1005enable_accurate_adjtime 1006enable_tick 1007enable_tickadj 1008enable_simulator 1009with_sntp 1010with_ntpsnmpd 1011enable_slew_always 1012enable_step_slew 1013enable_ntpdate_step 1014enable_hourly_todr_sync 1015enable_kernel_fll_bug 1016enable_bug1243_fix 1017enable_irig_sawtooth 1018enable_nist 1019enable_ntp_signd 1020enable_ipv6 1021with_kame 1022enable_getifaddrs 1023enable_saveconfig 1024with_gtest 1025' 1026 ac_precious_vars='build_alias 1027host_alias 1028target_alias 1029CC 1030CFLAGS 1031LDFLAGS 1032LIBS 1033CPPFLAGS 1034CPP 1035CXX 1036CXXFLAGS 1037CCC 1038YACC 1039YFLAGS 1040CXXCPP' 1041ac_subdirs_all='sntp' 1042 1043# Initialize some variables set by options. 1044ac_init_help= 1045ac_init_version=false 1046ac_unrecognized_opts= 1047ac_unrecognized_sep= 1048# The variables have the same names as the options, with 1049# dashes changed to underlines. 1050cache_file=/dev/null 1051exec_prefix=NONE 1052no_create= 1053no_recursion= 1054prefix=NONE 1055program_prefix=NONE 1056program_suffix=NONE 1057program_transform_name=s,x,x, 1058silent= 1059site= 1060srcdir= 1061verbose= 1062x_includes=NONE 1063x_libraries=NONE 1064 1065# Installation directory options. 1066# These are left unexpanded so users can "make install exec_prefix=/foo" 1067# and all the variables that are supposed to be based on exec_prefix 1068# by default will actually change. 1069# Use braces instead of parens because sh, perl, etc. also accept them. 1070# (The list follows the same order as the GNU Coding Standards.) 1071bindir='${exec_prefix}/bin' 1072sbindir='${exec_prefix}/sbin' 1073libexecdir='${exec_prefix}/libexec' 1074datarootdir='${prefix}/share' 1075datadir='${datarootdir}' 1076sysconfdir='${prefix}/etc' 1077sharedstatedir='${prefix}/com' 1078localstatedir='${prefix}/var' 1079includedir='${prefix}/include' 1080oldincludedir='/usr/include' 1081docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 1082infodir='${datarootdir}/info' 1083htmldir='${docdir}' 1084dvidir='${docdir}' 1085pdfdir='${docdir}' 1086psdir='${docdir}' 1087libdir='${exec_prefix}/lib' 1088localedir='${datarootdir}/locale' 1089mandir='${datarootdir}/man' 1090 1091ac_prev= 1092ac_dashdash= 1093for ac_option 1094do 1095 # If the previous option needs an argument, assign it. 1096 if test -n "$ac_prev"; then 1097 eval $ac_prev=\$ac_option 1098 ac_prev= 1099 continue 1100 fi 1101 1102 case $ac_option in 1103 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1104 *=) ac_optarg= ;; 1105 *) ac_optarg=yes ;; 1106 esac 1107 1108 # Accept the important Cygnus configure options, so we can diagnose typos. 1109 1110 case $ac_dashdash$ac_option in 1111 --) 1112 ac_dashdash=yes ;; 1113 1114 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1115 ac_prev=bindir ;; 1116 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1117 bindir=$ac_optarg ;; 1118 1119 -build | --build | --buil | --bui | --bu) 1120 ac_prev=build_alias ;; 1121 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1122 build_alias=$ac_optarg ;; 1123 1124 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1125 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1126 ac_prev=cache_file ;; 1127 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1128 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1129 cache_file=$ac_optarg ;; 1130 1131 --config-cache | -C) 1132 cache_file=config.cache ;; 1133 1134 -datadir | --datadir | --datadi | --datad) 1135 ac_prev=datadir ;; 1136 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1137 datadir=$ac_optarg ;; 1138 1139 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1140 | --dataroo | --dataro | --datar) 1141 ac_prev=datarootdir ;; 1142 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1143 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1144 datarootdir=$ac_optarg ;; 1145 1146 -disable-* | --disable-*) 1147 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1148 # Reject names that are not valid shell variable names. 1149 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1150 as_fn_error $? "invalid feature name: $ac_useropt" 1151 ac_useropt_orig=$ac_useropt 1152 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1153 case $ac_user_opts in 1154 *" 1155"enable_$ac_useropt" 1156"*) ;; 1157 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1158 ac_unrecognized_sep=', ';; 1159 esac 1160 eval enable_$ac_useropt=no ;; 1161 1162 -docdir | --docdir | --docdi | --doc | --do) 1163 ac_prev=docdir ;; 1164 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1165 docdir=$ac_optarg ;; 1166 1167 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1168 ac_prev=dvidir ;; 1169 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1170 dvidir=$ac_optarg ;; 1171 1172 -enable-* | --enable-*) 1173 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1174 # Reject names that are not valid shell variable names. 1175 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1176 as_fn_error $? "invalid feature name: $ac_useropt" 1177 ac_useropt_orig=$ac_useropt 1178 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1179 case $ac_user_opts in 1180 *" 1181"enable_$ac_useropt" 1182"*) ;; 1183 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1184 ac_unrecognized_sep=', ';; 1185 esac 1186 eval enable_$ac_useropt=\$ac_optarg ;; 1187 1188 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1189 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1190 | --exec | --exe | --ex) 1191 ac_prev=exec_prefix ;; 1192 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1193 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1194 | --exec=* | --exe=* | --ex=*) 1195 exec_prefix=$ac_optarg ;; 1196 1197 -gas | --gas | --ga | --g) 1198 # Obsolete; use --with-gas. 1199 with_gas=yes ;; 1200 1201 -help | --help | --hel | --he | -h) 1202 ac_init_help=long ;; 1203 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1204 ac_init_help=recursive ;; 1205 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1206 ac_init_help=short ;; 1207 1208 -host | --host | --hos | --ho) 1209 ac_prev=host_alias ;; 1210 -host=* | --host=* | --hos=* | --ho=*) 1211 host_alias=$ac_optarg ;; 1212 1213 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1214 ac_prev=htmldir ;; 1215 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1216 | --ht=*) 1217 htmldir=$ac_optarg ;; 1218 1219 -includedir | --includedir | --includedi | --included | --include \ 1220 | --includ | --inclu | --incl | --inc) 1221 ac_prev=includedir ;; 1222 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1223 | --includ=* | --inclu=* | --incl=* | --inc=*) 1224 includedir=$ac_optarg ;; 1225 1226 -infodir | --infodir | --infodi | --infod | --info | --inf) 1227 ac_prev=infodir ;; 1228 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1229 infodir=$ac_optarg ;; 1230 1231 -libdir | --libdir | --libdi | --libd) 1232 ac_prev=libdir ;; 1233 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1234 libdir=$ac_optarg ;; 1235 1236 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1237 | --libexe | --libex | --libe) 1238 ac_prev=libexecdir ;; 1239 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1240 | --libexe=* | --libex=* | --libe=*) 1241 libexecdir=$ac_optarg ;; 1242 1243 -localedir | --localedir | --localedi | --localed | --locale) 1244 ac_prev=localedir ;; 1245 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1246 localedir=$ac_optarg ;; 1247 1248 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1249 | --localstate | --localstat | --localsta | --localst | --locals) 1250 ac_prev=localstatedir ;; 1251 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1252 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1253 localstatedir=$ac_optarg ;; 1254 1255 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1256 ac_prev=mandir ;; 1257 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1258 mandir=$ac_optarg ;; 1259 1260 -nfp | --nfp | --nf) 1261 # Obsolete; use --without-fp. 1262 with_fp=no ;; 1263 1264 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1265 | --no-cr | --no-c | -n) 1266 no_create=yes ;; 1267 1268 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1269 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1270 no_recursion=yes ;; 1271 1272 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1273 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1274 | --oldin | --oldi | --old | --ol | --o) 1275 ac_prev=oldincludedir ;; 1276 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1277 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1278 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1279 oldincludedir=$ac_optarg ;; 1280 1281 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1282 ac_prev=prefix ;; 1283 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1284 prefix=$ac_optarg ;; 1285 1286 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1287 | --program-pre | --program-pr | --program-p) 1288 ac_prev=program_prefix ;; 1289 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1290 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1291 program_prefix=$ac_optarg ;; 1292 1293 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1294 | --program-suf | --program-su | --program-s) 1295 ac_prev=program_suffix ;; 1296 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1297 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1298 program_suffix=$ac_optarg ;; 1299 1300 -program-transform-name | --program-transform-name \ 1301 | --program-transform-nam | --program-transform-na \ 1302 | --program-transform-n | --program-transform- \ 1303 | --program-transform | --program-transfor \ 1304 | --program-transfo | --program-transf \ 1305 | --program-trans | --program-tran \ 1306 | --progr-tra | --program-tr | --program-t) 1307 ac_prev=program_transform_name ;; 1308 -program-transform-name=* | --program-transform-name=* \ 1309 | --program-transform-nam=* | --program-transform-na=* \ 1310 | --program-transform-n=* | --program-transform-=* \ 1311 | --program-transform=* | --program-transfor=* \ 1312 | --program-transfo=* | --program-transf=* \ 1313 | --program-trans=* | --program-tran=* \ 1314 | --progr-tra=* | --program-tr=* | --program-t=*) 1315 program_transform_name=$ac_optarg ;; 1316 1317 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1318 ac_prev=pdfdir ;; 1319 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1320 pdfdir=$ac_optarg ;; 1321 1322 -psdir | --psdir | --psdi | --psd | --ps) 1323 ac_prev=psdir ;; 1324 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1325 psdir=$ac_optarg ;; 1326 1327 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1328 | -silent | --silent | --silen | --sile | --sil) 1329 silent=yes ;; 1330 1331 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1332 ac_prev=sbindir ;; 1333 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1334 | --sbi=* | --sb=*) 1335 sbindir=$ac_optarg ;; 1336 1337 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1338 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1339 | --sharedst | --shareds | --shared | --share | --shar \ 1340 | --sha | --sh) 1341 ac_prev=sharedstatedir ;; 1342 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1343 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1344 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1345 | --sha=* | --sh=*) 1346 sharedstatedir=$ac_optarg ;; 1347 1348 -site | --site | --sit) 1349 ac_prev=site ;; 1350 -site=* | --site=* | --sit=*) 1351 site=$ac_optarg ;; 1352 1353 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1354 ac_prev=srcdir ;; 1355 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1356 srcdir=$ac_optarg ;; 1357 1358 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1359 | --syscon | --sysco | --sysc | --sys | --sy) 1360 ac_prev=sysconfdir ;; 1361 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1362 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1363 sysconfdir=$ac_optarg ;; 1364 1365 -target | --target | --targe | --targ | --tar | --ta | --t) 1366 ac_prev=target_alias ;; 1367 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1368 target_alias=$ac_optarg ;; 1369 1370 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1371 verbose=yes ;; 1372 1373 -version | --version | --versio | --versi | --vers | -V) 1374 ac_init_version=: ;; 1375 1376 -with-* | --with-*) 1377 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1378 # Reject names that are not valid shell variable names. 1379 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1380 as_fn_error $? "invalid package name: $ac_useropt" 1381 ac_useropt_orig=$ac_useropt 1382 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1383 case $ac_user_opts in 1384 *" 1385"with_$ac_useropt" 1386"*) ;; 1387 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1388 ac_unrecognized_sep=', ';; 1389 esac 1390 eval with_$ac_useropt=\$ac_optarg ;; 1391 1392 -without-* | --without-*) 1393 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1394 # Reject names that are not valid shell variable names. 1395 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1396 as_fn_error $? "invalid package name: $ac_useropt" 1397 ac_useropt_orig=$ac_useropt 1398 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1399 case $ac_user_opts in 1400 *" 1401"with_$ac_useropt" 1402"*) ;; 1403 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1404 ac_unrecognized_sep=', ';; 1405 esac 1406 eval with_$ac_useropt=no ;; 1407 1408 --x) 1409 # Obsolete; use --with-x. 1410 with_x=yes ;; 1411 1412 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1413 | --x-incl | --x-inc | --x-in | --x-i) 1414 ac_prev=x_includes ;; 1415 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1416 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1417 x_includes=$ac_optarg ;; 1418 1419 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1420 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1421 ac_prev=x_libraries ;; 1422 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1423 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1424 x_libraries=$ac_optarg ;; 1425 1426 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1427Try \`$0 --help' for more information" 1428 ;; 1429 1430 *=*) 1431 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1432 # Reject names that are not valid shell variable names. 1433 case $ac_envvar in #( 1434 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1435 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1436 esac 1437 eval $ac_envvar=\$ac_optarg 1438 export $ac_envvar ;; 1439 1440 *) 1441 # FIXME: should be removed in autoconf 3.0. 1442 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1443 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1444 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1445 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1446 ;; 1447 1448 esac 1449done 1450 1451if test -n "$ac_prev"; then 1452 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1453 as_fn_error $? "missing argument to $ac_option" 1454fi 1455 1456if test -n "$ac_unrecognized_opts"; then 1457 case $enable_option_checking in 1458 no) ;; 1459 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1460 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1461 esac 1462fi 1463 1464# Check all directory arguments for consistency. 1465for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1466 datadir sysconfdir sharedstatedir localstatedir includedir \ 1467 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1468 libdir localedir mandir 1469do 1470 eval ac_val=\$$ac_var 1471 # Remove trailing slashes. 1472 case $ac_val in 1473 */ ) 1474 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1475 eval $ac_var=\$ac_val;; 1476 esac 1477 # Be sure to have absolute directory names. 1478 case $ac_val in 1479 [\\/$]* | ?:[\\/]* ) continue;; 1480 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1481 esac 1482 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1483done 1484 1485# There might be people who depend on the old broken behavior: `$host' 1486# used to hold the argument of --host etc. 1487# FIXME: To remove some day. 1488build=$build_alias 1489host=$host_alias 1490target=$target_alias 1491 1492# FIXME: To remove some day. 1493if test "x$host_alias" != x; then 1494 if test "x$build_alias" = x; then 1495 cross_compiling=maybe 1496 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. 1497 If a cross compiler is detected then cross compile mode will be used" >&2 1498 elif test "x$build_alias" != "x$host_alias"; then 1499 cross_compiling=yes 1500 fi 1501fi 1502 1503ac_tool_prefix= 1504test -n "$host_alias" && ac_tool_prefix=$host_alias- 1505 1506test "$silent" = yes && exec 6>/dev/null 1507 1508 1509ac_pwd=`pwd` && test -n "$ac_pwd" && 1510ac_ls_di=`ls -di .` && 1511ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1512 as_fn_error $? "working directory cannot be determined" 1513test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1514 as_fn_error $? "pwd does not report name of working directory" 1515 1516 1517# Find the source files, if location was not specified. 1518if test -z "$srcdir"; then 1519 ac_srcdir_defaulted=yes 1520 # Try the directory containing this script, then the parent directory. 1521 ac_confdir=`$as_dirname -- "$as_myself" || 1522$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1523 X"$as_myself" : 'X\(//\)[^/]' \| \ 1524 X"$as_myself" : 'X\(//\)$' \| \ 1525 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1526$as_echo X"$as_myself" | 1527 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1528 s//\1/ 1529 q 1530 } 1531 /^X\(\/\/\)[^/].*/{ 1532 s//\1/ 1533 q 1534 } 1535 /^X\(\/\/\)$/{ 1536 s//\1/ 1537 q 1538 } 1539 /^X\(\/\).*/{ 1540 s//\1/ 1541 q 1542 } 1543 s/.*/./; q'` 1544 srcdir=$ac_confdir 1545 if test ! -r "$srcdir/$ac_unique_file"; then 1546 srcdir=.. 1547 fi 1548else 1549 ac_srcdir_defaulted=no 1550fi 1551if test ! -r "$srcdir/$ac_unique_file"; then 1552 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1553 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1554fi 1555ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1556ac_abs_confdir=`( 1557 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1558 pwd)` 1559# When building in place, set srcdir=. 1560if test "$ac_abs_confdir" = "$ac_pwd"; then 1561 srcdir=. 1562fi 1563# Remove unnecessary trailing slashes from srcdir. 1564# Double slashes in file names in object file debugging info 1565# mess up M-x gdb in Emacs. 1566case $srcdir in 1567*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1568esac 1569for ac_var in $ac_precious_vars; do 1570 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1571 eval ac_env_${ac_var}_value=\$${ac_var} 1572 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1573 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1574done 1575 1576# 1577# Report the --help message. 1578# 1579if test "$ac_init_help" = "long"; then 1580 # Omit some internal or obsolete options to make the list less imposing. 1581 # This message is too long to be a string in the A/UX 3.1 sh. 1582 cat <<_ACEOF 1583\`configure' configures ntp 4.2.8p2 to adapt to many kinds of systems. 1584 1585Usage: $0 [OPTION]... [VAR=VALUE]... 1586 1587To assign environment variables (e.g., CC, CFLAGS...), specify them as 1588VAR=VALUE. See below for descriptions of some of the useful variables. 1589 1590Defaults for the options are specified in brackets. 1591 1592Configuration: 1593 -h, --help display this help and exit 1594 --help=short display options specific to this package 1595 --help=recursive display the short help of all the included packages 1596 -V, --version display version information and exit 1597 -q, --quiet, --silent do not print \`checking ...' messages 1598 --cache-file=FILE cache test results in FILE [disabled] 1599 -C, --config-cache alias for \`--cache-file=config.cache' 1600 -n, --no-create do not create output files 1601 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1602 1603Installation directories: 1604 --prefix=PREFIX install architecture-independent files in PREFIX 1605 [$ac_default_prefix] 1606 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1607 [PREFIX] 1608 1609By default, \`make install' will install all the files in 1610\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1611an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1612for instance \`--prefix=\$HOME'. 1613 1614For better control, use the options below. 1615 1616Fine tuning of the installation directories: 1617 --bindir=DIR user executables [EPREFIX/bin] 1618 --sbindir=DIR system admin executables [EPREFIX/sbin] 1619 --libexecdir=DIR program executables [EPREFIX/libexec] 1620 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1621 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1622 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1623 --libdir=DIR object code libraries [EPREFIX/lib] 1624 --includedir=DIR C header files [PREFIX/include] 1625 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1626 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1627 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1628 --infodir=DIR info documentation [DATAROOTDIR/info] 1629 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1630 --mandir=DIR man documentation [DATAROOTDIR/man] 1631 --docdir=DIR documentation root [DATAROOTDIR/doc/ntp] 1632 --htmldir=DIR html documentation [DOCDIR] 1633 --dvidir=DIR dvi documentation [DOCDIR] 1634 --pdfdir=DIR pdf documentation [DOCDIR] 1635 --psdir=DIR ps documentation [DOCDIR] 1636_ACEOF 1637 1638 cat <<\_ACEOF 1639 1640Program names: 1641 --program-prefix=PREFIX prepend PREFIX to installed program names 1642 --program-suffix=SUFFIX append SUFFIX to installed program names 1643 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1644 1645System types: 1646 --build=BUILD configure for building on BUILD [guessed] 1647 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1648_ACEOF 1649fi 1650 1651if test -n "$ac_init_help"; then 1652 case $ac_init_help in 1653 short | recursive ) echo "Configuration of ntp 4.2.8p2:";; 1654 esac 1655 cat <<\_ACEOF 1656 1657Optional Features and Packages: 1658 --disable-option-checking ignore unrecognized --enable/--with options 1659 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1660 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1661 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1662 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1663 --enable-silent-rules less verbose build output (undo: `make V=1') 1664 --disable-silent-rules verbose build output (undo: `make V=0') 1665 --disable-dependency-tracking speeds up one-time build 1666 --enable-dependency-tracking do not reject slow dependency extractors 1667 --with-locfile=XXX os-specific or "legacy" 1668 --enable-shared[=PKGS] build shared libraries [default=no] 1669 --enable-static[=PKGS] build static libraries [default=yes] 1670 --with-pic try to use only PIC/non-PIC objects [default=use 1671 both] 1672 --enable-fast-install[=PKGS] 1673 optimize for fast installation [default=yes] 1674 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1675 --with-sysroot=DIR Search for dependent libraries within DIR 1676 (or the compiler's sysroot if not specified). 1677 --disable-libtool-lock avoid locking (might break parallel builds) 1678 --disable-nls disable nls support in libopts 1679 --enable-local-libopts Use the supplied libopts tearoff code 1680 --enable-libopts-install 1681 Install libopts with client installation 1682 --with-autoopts-config specify the config-info script 1683 --enable-local-libevent Force using the supplied libevent tearoff code 1684 --with-lineeditlibs edit,editline (readline may be specified if desired) 1685 defaults: + yes, - no, s system-specific 1686 --enable-debugging + include ntpd debugging code 1687 --enable-thread-support s use threads (+ if available) 1688 --with-threads with threads [auto] 1689 --with-yielding-select with yielding select [auto] 1690 --enable-c99-snprintf s force replacement 1691 --enable-clockctl s Use /dev/clockctl for non-root clock control 1692 --enable-linuxcaps + Use Linux capabilities for non-root clock control 1693 --enable-solarisprivs + Use Solaris privileges for non-root clock control 1694 --with-arlib - deprecated, arlib not distributed 1695 --with-net-snmp-config + =net-snmp-config 1696 --enable-libseccomp EXPERIMENTAL: enable support for libseccomp 1697 sandboxing (default is no) 1698 --with-stack-limit ? =50 (200 for openbsd) 4k pages 1699 --with-memlock ? =32 (megabytes) 1700 --enable-debug-timing - include processing time debugging code (costs 1701 performance) 1702 --enable-dst-minutes =60 minutes per DST adjustment 1703 --enable-ignore-dns-errors 1704 - retry DNS queries on any error 1705 --enable-BANCOMM - Datum/Bancomm bc635/VME interface 1706 --enable-GPSVME - TrueTime GPS receiver/VME interface 1707 --enable-all-clocks + include all suitable non-PARSE clocks: 1708 --enable-ACTS s ACTS modem service 1709 --enable-ARBITER + Arbiter 1088A/B GPS receiver 1710 --enable-ARCRON-MSF + Arcron MSF receiver 1711 --enable-AS2201 + Austron 2200A/2201A GPS receiver 1712 --enable-ATOM s ATOM PPS interface 1713 --enable-CHRONOLOG + Chrono-log K-series WWVB receiver 1714 --enable-CHU + CHU modem/decoder 1715 --enable-AUDIO-CHU s CHU audio/decoder 1716 --enable-DATUM s Datum Programmable Time System 1717 --enable-DUMBCLOCK + Dumb generic hh:mm:ss local clock 1718 --enable-FG + Forum Graphic GPS 1719 --enable-HEATH s Heath GC-1000 WWV/WWVH receiver 1720 --enable-HOPFSERIAL + hopf serial clock device 1721 --enable-HOPFPCI + hopf 6039 PCI board 1722 --enable-HPGPS + HP 58503A GPS receiver 1723 --enable-IRIG s IRIG audio decoder 1724 --enable-JJY + JJY receiver 1725 --enable-JUPITER s Rockwell Jupiter GPS receiver 1726 --enable-LEITCH + Leitch CSD 5300 Master Clock System Driver 1727 --enable-LOCAL-CLOCK + local clock reference 1728 --enable-MX4200 s Magnavox MX4200 GPS receiver 1729 --enable-NEOCLOCK4X + NeoClock4X DCF77 / TDF receiver 1730 --enable-NMEA + NMEA GPS receiver 1731 --enable-GPSD + GPSD JSON receiver 1732 --enable-ONCORE s Motorola VP/UT Oncore GPS receiver 1733 --enable-PALISADE s Palisade clock 1734 --enable-PCF + Conrad parallel port radio clock 1735 --enable-PST + PST/Traconex 1020 WWV/WWVH receiver 1736 --enable-RIPENCC - RIPENCC specific Trimble driver 1737 --enable-SHM s SHM clock attached thru shared memory 1738 --enable-SPECTRACOM + Spectracom 8170/Netclock/2 WWVB receiver 1739 --enable-TPRO s KSI/Odetics TPRO/S GPS receiver/IRIG interface 1740 --enable-TRUETIME s Kinemetrics/TrueTime receivers 1741 --enable-TT560 - TrueTime 560 IRIG-B decoder 1742 --enable-ULINK + Ultralink WWVB receiver 1743 --enable-TSYNCPCI s Spectracom TSYNC timing board 1744 --enable-WWV s WWV Audio receiver 1745 --enable-ZYFER + Zyfer GPStarplus receiver 1746 --enable-parse-clocks - include all suitable PARSE clocks: 1747 --enable-COMPUTIME s Diem Computime Radio Clock 1748 --enable-DCF7000 s ELV/DCF7000 clock 1749 --enable-HOPF6021 s HOPF 6021 clock 1750 --enable-MEINBERG s Meinberg clocks 1751 --enable-RAWDCF s DCF77 raw time code 1752 --enable-RCC8000 s RCC 8000 clock 1753 --enable-SCHMID s Schmid DCF77 clock 1754 --enable-TRIMTAIP s Trimble GPS receiver/TAIP protocol 1755 --enable-TRIMTSIP s Trimble GPS receiver/TSIP protocol 1756 --enable-WHARTON s WHARTON 400A Series clock 1757 --enable-VARITEXT s VARITEXT clock 1758 --enable-SEL240X s SEL240X clock 1759 --with-crypto + =openssl,libcrypto 1760 1761 --with-openssl-libdir + =/something/reasonable 1762 1763 --with-openssl-incdir + =/something/reasonable 1764 1765 --without-rpath s Disable auto-added -R linker paths 1766 1767 --enable-openssl-random Use OpenSSL's crypto random number functions, if 1768 available (default is yes) 1769 --enable-autokey + support NTP Autokey protocol 1770 --enable-kmem s read /dev/kmem for tick and/or tickadj 1771 --enable-accurate-adjtime 1772 s the adjtime() call is accurate 1773 --enable-tick=VALUE s force a value for 'tick' 1774 --enable-tickadj=VALUE s force a value for 'tickadj' 1775 --enable-simulator - build/install the NTPD simulator? 1776 --without-sntp - disable building sntp and sntp/tests 1777 --with-ntpsnmpd s Build ntpsnmpd MIB agent? 1778 --enable-slew-always s always slew the time 1779 --enable-step-slew s step and slew the time 1780 --enable-ntpdate-step s if ntpdate should step the time 1781 --enable-hourly-todr-sync 1782 s if we should sync TODR hourly 1783 --enable-kernel-fll-bug s if we should avoid a kernel FLL bug 1784 --enable-bug1243-fix + use unmodified autokey session keys 1785 --enable-irig-sawtooth s if we should enable the IRIG sawtooth filter 1786 --enable-nist - if we should enable the NIST lockclock scheme 1787 --enable-ntp-signd - Provide support for Samba's signing daemon, 1788 =/var/run/ntp_signd 1789 --enable-ipv6 s use IPv6? 1790 1791 --with-kame - =/usr/local/v6 1792 --enable-getifaddrs + Enable the use of getifaddrs() [[yes|no]]. 1793 --enable-saveconfig + saveconfig mechanism 1794 --with-gtest Use the gtest framework (Default: if it's available) 1795 1796Some influential environment variables: 1797 CC C compiler command 1798 CFLAGS C compiler flags 1799 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1800 nonstandard directory <lib dir> 1801 LIBS libraries to pass to the linker, e.g. -l<library> 1802 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1803 you have headers in a nonstandard directory <include dir> 1804 CPP C preprocessor 1805 CXX C++ compiler command 1806 CXXFLAGS C++ compiler flags 1807 YACC The `Yet Another Compiler Compiler' implementation to use. 1808 Defaults to the first program found out of: `bison -y', `byacc', 1809 `yacc'. 1810 YFLAGS The list of arguments that will be passed by default to $YACC. 1811 This script will default YFLAGS to the empty string to avoid a 1812 default value of `-d' given by some make applications. 1813 CXXCPP C++ preprocessor 1814 1815Use these variables to override the choices made by `configure' or to help 1816it to find libraries and programs with nonstandard names/locations. 1817 1818Report bugs to <http://bugs.ntp.org./>. 1819ntp home page: <http://www.ntp.org./>. 1820_ACEOF 1821ac_status=$? 1822fi 1823 1824if test "$ac_init_help" = "recursive"; then 1825 # If there are subdirs, report their specific --help. 1826 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1827 test -d "$ac_dir" || 1828 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1829 continue 1830 ac_builddir=. 1831 1832case "$ac_dir" in 1833.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1834*) 1835 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1836 # A ".." for each directory in $ac_dir_suffix. 1837 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1838 case $ac_top_builddir_sub in 1839 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1840 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1841 esac ;; 1842esac 1843ac_abs_top_builddir=$ac_pwd 1844ac_abs_builddir=$ac_pwd$ac_dir_suffix 1845# for backward compatibility: 1846ac_top_builddir=$ac_top_build_prefix 1847 1848case $srcdir in 1849 .) # We are building in place. 1850 ac_srcdir=. 1851 ac_top_srcdir=$ac_top_builddir_sub 1852 ac_abs_top_srcdir=$ac_pwd ;; 1853 [\\/]* | ?:[\\/]* ) # Absolute name. 1854 ac_srcdir=$srcdir$ac_dir_suffix; 1855 ac_top_srcdir=$srcdir 1856 ac_abs_top_srcdir=$srcdir ;; 1857 *) # Relative name. 1858 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1859 ac_top_srcdir=$ac_top_build_prefix$srcdir 1860 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1861esac 1862ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1863 1864 cd "$ac_dir" || { ac_status=$?; continue; } 1865 # Check for guested configure. 1866 if test -f "$ac_srcdir/configure.gnu"; then 1867 echo && 1868 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1869 elif test -f "$ac_srcdir/configure"; then 1870 echo && 1871 $SHELL "$ac_srcdir/configure" --help=recursive 1872 else 1873 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1874 fi || ac_status=$? 1875 cd "$ac_pwd" || { ac_status=$?; break; } 1876 done 1877fi 1878 1879test -n "$ac_init_help" && exit $ac_status 1880if $ac_init_version; then 1881 cat <<\_ACEOF 1882ntp configure 4.2.8p2 1883generated by GNU Autoconf 2.68 1884 1885Copyright (C) 2010 Free Software Foundation, Inc. 1886This configure script is free software; the Free Software Foundation 1887gives unlimited permission to copy, distribute and modify it. 1888_ACEOF 1889 exit 1890fi 1891 1892## ------------------------ ## 1893## Autoconf initialization. ## 1894## ------------------------ ## 1895 1896# ac_fn_c_try_compile LINENO 1897# -------------------------- 1898# Try to compile conftest.$ac_ext, and return whether this succeeded. 1899ac_fn_c_try_compile () 1900{ 1901 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1902 rm -f conftest.$ac_objext 1903 if { { ac_try="$ac_compile" 1904case "(($ac_try" in 1905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1906 *) ac_try_echo=$ac_try;; 1907esac 1908eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1909$as_echo "$ac_try_echo"; } >&5 1910 (eval "$ac_compile") 2>conftest.err 1911 ac_status=$? 1912 if test -s conftest.err; then 1913 grep -v '^ *+' conftest.err >conftest.er1 1914 cat conftest.er1 >&5 1915 mv -f conftest.er1 conftest.err 1916 fi 1917 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1918 test $ac_status = 0; } && { 1919 test -z "$ac_c_werror_flag" || 1920 test ! -s conftest.err 1921 } && test -s conftest.$ac_objext; then : 1922 ac_retval=0 1923else 1924 $as_echo "$as_me: failed program was:" >&5 1925sed 's/^/| /' conftest.$ac_ext >&5 1926 1927 ac_retval=1 1928fi 1929 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1930 as_fn_set_status $ac_retval 1931 1932} # ac_fn_c_try_compile 1933 1934# ac_fn_c_try_cpp LINENO 1935# ---------------------- 1936# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1937ac_fn_c_try_cpp () 1938{ 1939 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1940 if { { ac_try="$ac_cpp conftest.$ac_ext" 1941case "(($ac_try" in 1942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1943 *) ac_try_echo=$ac_try;; 1944esac 1945eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1946$as_echo "$ac_try_echo"; } >&5 1947 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1948 ac_status=$? 1949 if test -s conftest.err; then 1950 grep -v '^ *+' conftest.err >conftest.er1 1951 cat conftest.er1 >&5 1952 mv -f conftest.er1 conftest.err 1953 fi 1954 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1955 test $ac_status = 0; } > conftest.i && { 1956 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1957 test ! -s conftest.err 1958 }; then : 1959 ac_retval=0 1960else 1961 $as_echo "$as_me: failed program was:" >&5 1962sed 's/^/| /' conftest.$ac_ext >&5 1963 1964 ac_retval=1 1965fi 1966 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1967 as_fn_set_status $ac_retval 1968 1969} # ac_fn_c_try_cpp 1970 1971# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1972# ------------------------------------------------------- 1973# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1974# the include files in INCLUDES and setting the cache variable VAR 1975# accordingly. 1976ac_fn_c_check_header_mongrel () 1977{ 1978 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1979 if eval \${$3+:} false; then : 1980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1981$as_echo_n "checking for $2... " >&6; } 1982if eval \${$3+:} false; then : 1983 $as_echo_n "(cached) " >&6 1984fi 1985eval ac_res=\$$3 1986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1987$as_echo "$ac_res" >&6; } 1988else 1989 # Is the header compilable? 1990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1991$as_echo_n "checking $2 usability... " >&6; } 1992cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1993/* end confdefs.h. */ 1994$4 1995#include <$2> 1996_ACEOF 1997if ac_fn_c_try_compile "$LINENO"; then : 1998 ac_header_compiler=yes 1999else 2000 ac_header_compiler=no 2001fi 2002rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 2004$as_echo "$ac_header_compiler" >&6; } 2005 2006# Is the header present? 2007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 2008$as_echo_n "checking $2 presence... " >&6; } 2009cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2010/* end confdefs.h. */ 2011#include <$2> 2012_ACEOF 2013if ac_fn_c_try_cpp "$LINENO"; then : 2014 ac_header_preproc=yes 2015else 2016 ac_header_preproc=no 2017fi 2018rm -f conftest.err conftest.i conftest.$ac_ext 2019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2020$as_echo "$ac_header_preproc" >&6; } 2021 2022# So? What about this header? 2023case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 2024 yes:no: ) 2025 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2026$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2027 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2028$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2029 ;; 2030 no:yes:* ) 2031 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2032$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2033 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2034$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2035 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2036$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2037 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2038$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2039 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2040$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2041( $as_echo "## ------------------------------------ ## 2042## Report this to http://bugs.ntp.org./ ## 2043## ------------------------------------ ##" 2044 ) | sed "s/^/$as_me: WARNING: /" >&2 2045 ;; 2046esac 2047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2048$as_echo_n "checking for $2... " >&6; } 2049if eval \${$3+:} false; then : 2050 $as_echo_n "(cached) " >&6 2051else 2052 eval "$3=\$ac_header_compiler" 2053fi 2054eval ac_res=\$$3 2055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2056$as_echo "$ac_res" >&6; } 2057fi 2058 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2059 2060} # ac_fn_c_check_header_mongrel 2061 2062# ac_fn_c_try_run LINENO 2063# ---------------------- 2064# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 2065# that executables *can* be run. 2066ac_fn_c_try_run () 2067{ 2068 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2069 if { { ac_try="$ac_link" 2070case "(($ac_try" in 2071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2072 *) ac_try_echo=$ac_try;; 2073esac 2074eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2075$as_echo "$ac_try_echo"; } >&5 2076 (eval "$ac_link") 2>&5 2077 ac_status=$? 2078 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2079 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 2080 { { case "(($ac_try" in 2081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2082 *) ac_try_echo=$ac_try;; 2083esac 2084eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2085$as_echo "$ac_try_echo"; } >&5 2086 (eval "$ac_try") 2>&5 2087 ac_status=$? 2088 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2089 test $ac_status = 0; }; }; then : 2090 ac_retval=0 2091else 2092 $as_echo "$as_me: program exited with status $ac_status" >&5 2093 $as_echo "$as_me: failed program was:" >&5 2094sed 's/^/| /' conftest.$ac_ext >&5 2095 2096 ac_retval=$ac_status 2097fi 2098 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2099 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2100 as_fn_set_status $ac_retval 2101 2102} # ac_fn_c_try_run 2103 2104# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 2105# ------------------------------------------------------- 2106# Tests whether HEADER exists and can be compiled using the include files in 2107# INCLUDES, setting the cache variable VAR accordingly. 2108ac_fn_c_check_header_compile () 2109{ 2110 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2112$as_echo_n "checking for $2... " >&6; } 2113if eval \${$3+:} false; then : 2114 $as_echo_n "(cached) " >&6 2115else 2116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2117/* end confdefs.h. */ 2118$4 2119#include <$2> 2120_ACEOF 2121if ac_fn_c_try_compile "$LINENO"; then : 2122 eval "$3=yes" 2123else 2124 eval "$3=no" 2125fi 2126rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2127fi 2128eval ac_res=\$$3 2129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2130$as_echo "$ac_res" >&6; } 2131 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2132 2133} # ac_fn_c_check_header_compile 2134 2135# ac_fn_c_try_link LINENO 2136# ----------------------- 2137# Try to link conftest.$ac_ext, and return whether this succeeded. 2138ac_fn_c_try_link () 2139{ 2140 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2141 rm -f conftest.$ac_objext conftest$ac_exeext 2142 if { { ac_try="$ac_link" 2143case "(($ac_try" in 2144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2145 *) ac_try_echo=$ac_try;; 2146esac 2147eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2148$as_echo "$ac_try_echo"; } >&5 2149 (eval "$ac_link") 2>conftest.err 2150 ac_status=$? 2151 if test -s conftest.err; then 2152 grep -v '^ *+' conftest.err >conftest.er1 2153 cat conftest.er1 >&5 2154 mv -f conftest.er1 conftest.err 2155 fi 2156 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2157 test $ac_status = 0; } && { 2158 test -z "$ac_c_werror_flag" || 2159 test ! -s conftest.err 2160 } && test -s conftest$ac_exeext && { 2161 test "$cross_compiling" = yes || 2162 $as_test_x conftest$ac_exeext 2163 }; then : 2164 ac_retval=0 2165else 2166 $as_echo "$as_me: failed program was:" >&5 2167sed 's/^/| /' conftest.$ac_ext >&5 2168 2169 ac_retval=1 2170fi 2171 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2172 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2173 # interfere with the next link command; also delete a directory that is 2174 # left behind by Apple's compiler. We do this before executing the actions. 2175 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2176 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2177 as_fn_set_status $ac_retval 2178 2179} # ac_fn_c_try_link 2180 2181# ac_fn_cxx_try_compile LINENO 2182# ---------------------------- 2183# Try to compile conftest.$ac_ext, and return whether this succeeded. 2184ac_fn_cxx_try_compile () 2185{ 2186 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2187 rm -f conftest.$ac_objext 2188 if { { ac_try="$ac_compile" 2189case "(($ac_try" in 2190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2191 *) ac_try_echo=$ac_try;; 2192esac 2193eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2194$as_echo "$ac_try_echo"; } >&5 2195 (eval "$ac_compile") 2>conftest.err 2196 ac_status=$? 2197 if test -s conftest.err; then 2198 grep -v '^ *+' conftest.err >conftest.er1 2199 cat conftest.er1 >&5 2200 mv -f conftest.er1 conftest.err 2201 fi 2202 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2203 test $ac_status = 0; } && { 2204 test -z "$ac_cxx_werror_flag" || 2205 test ! -s conftest.err 2206 } && test -s conftest.$ac_objext; then : 2207 ac_retval=0 2208else 2209 $as_echo "$as_me: failed program was:" >&5 2210sed 's/^/| /' conftest.$ac_ext >&5 2211 2212 ac_retval=1 2213fi 2214 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2215 as_fn_set_status $ac_retval 2216 2217} # ac_fn_cxx_try_compile 2218 2219# ac_fn_c_check_func LINENO FUNC VAR 2220# ---------------------------------- 2221# Tests whether FUNC exists, setting the cache variable VAR accordingly 2222ac_fn_c_check_func () 2223{ 2224 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2226$as_echo_n "checking for $2... " >&6; } 2227if eval \${$3+:} false; then : 2228 $as_echo_n "(cached) " >&6 2229else 2230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2231/* end confdefs.h. */ 2232/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2233 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2234#define $2 innocuous_$2 2235 2236/* System header to define __stub macros and hopefully few prototypes, 2237 which can conflict with char $2 (); below. 2238 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2239 <limits.h> exists even on freestanding compilers. */ 2240 2241#ifdef __STDC__ 2242# include <limits.h> 2243#else 2244# include <assert.h> 2245#endif 2246 2247#undef $2 2248 2249/* Override any GCC internal prototype to avoid an error. 2250 Use char because int might match the return type of a GCC 2251 builtin and then its argument prototype would still apply. */ 2252#ifdef __cplusplus 2253extern "C" 2254#endif 2255char $2 (); 2256/* The GNU C library defines this for functions which it implements 2257 to always fail with ENOSYS. Some functions are actually named 2258 something starting with __ and the normal name is an alias. */ 2259#if defined __stub_$2 || defined __stub___$2 2260choke me 2261#endif 2262 2263int 2264main () 2265{ 2266return $2 (); 2267 ; 2268 return 0; 2269} 2270_ACEOF 2271if ac_fn_c_try_link "$LINENO"; then : 2272 eval "$3=yes" 2273else 2274 eval "$3=no" 2275fi 2276rm -f core conftest.err conftest.$ac_objext \ 2277 conftest$ac_exeext conftest.$ac_ext 2278fi 2279eval ac_res=\$$3 2280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2281$as_echo "$ac_res" >&6; } 2282 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2283 2284} # ac_fn_c_check_func 2285 2286# ac_fn_cxx_try_cpp LINENO 2287# ------------------------ 2288# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 2289ac_fn_cxx_try_cpp () 2290{ 2291 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2292 if { { ac_try="$ac_cpp conftest.$ac_ext" 2293case "(($ac_try" in 2294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2295 *) ac_try_echo=$ac_try;; 2296esac 2297eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2298$as_echo "$ac_try_echo"; } >&5 2299 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 2300 ac_status=$? 2301 if test -s conftest.err; then 2302 grep -v '^ *+' conftest.err >conftest.er1 2303 cat conftest.er1 >&5 2304 mv -f conftest.er1 conftest.err 2305 fi 2306 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2307 test $ac_status = 0; } > conftest.i && { 2308 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 2309 test ! -s conftest.err 2310 }; then : 2311 ac_retval=0 2312else 2313 $as_echo "$as_me: failed program was:" >&5 2314sed 's/^/| /' conftest.$ac_ext >&5 2315 2316 ac_retval=1 2317fi 2318 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2319 as_fn_set_status $ac_retval 2320 2321} # ac_fn_cxx_try_cpp 2322 2323# ac_fn_cxx_try_link LINENO 2324# ------------------------- 2325# Try to link conftest.$ac_ext, and return whether this succeeded. 2326ac_fn_cxx_try_link () 2327{ 2328 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2329 rm -f conftest.$ac_objext conftest$ac_exeext 2330 if { { ac_try="$ac_link" 2331case "(($ac_try" in 2332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2333 *) ac_try_echo=$ac_try;; 2334esac 2335eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2336$as_echo "$ac_try_echo"; } >&5 2337 (eval "$ac_link") 2>conftest.err 2338 ac_status=$? 2339 if test -s conftest.err; then 2340 grep -v '^ *+' conftest.err >conftest.er1 2341 cat conftest.er1 >&5 2342 mv -f conftest.er1 conftest.err 2343 fi 2344 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2345 test $ac_status = 0; } && { 2346 test -z "$ac_cxx_werror_flag" || 2347 test ! -s conftest.err 2348 } && test -s conftest$ac_exeext && { 2349 test "$cross_compiling" = yes || 2350 $as_test_x conftest$ac_exeext 2351 }; then : 2352 ac_retval=0 2353else 2354 $as_echo "$as_me: failed program was:" >&5 2355sed 's/^/| /' conftest.$ac_ext >&5 2356 2357 ac_retval=1 2358fi 2359 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2360 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2361 # interfere with the next link command; also delete a directory that is 2362 # left behind by Apple's compiler. We do this before executing the actions. 2363 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2364 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2365 as_fn_set_status $ac_retval 2366 2367} # ac_fn_cxx_try_link 2368 2369# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2370# ------------------------------------------- 2371# Tests whether TYPE exists after having included INCLUDES, setting cache 2372# variable VAR accordingly. 2373ac_fn_c_check_type () 2374{ 2375 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2377$as_echo_n "checking for $2... " >&6; } 2378if eval \${$3+:} false; then : 2379 $as_echo_n "(cached) " >&6 2380else 2381 eval "$3=no" 2382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2383/* end confdefs.h. */ 2384$4 2385int 2386main () 2387{ 2388if (sizeof ($2)) 2389 return 0; 2390 ; 2391 return 0; 2392} 2393_ACEOF 2394if ac_fn_c_try_compile "$LINENO"; then : 2395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2396/* end confdefs.h. */ 2397$4 2398int 2399main () 2400{ 2401if (sizeof (($2))) 2402 return 0; 2403 ; 2404 return 0; 2405} 2406_ACEOF 2407if ac_fn_c_try_compile "$LINENO"; then : 2408 2409else 2410 eval "$3=yes" 2411fi 2412rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2413fi 2414rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2415fi 2416eval ac_res=\$$3 2417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2418$as_echo "$ac_res" >&6; } 2419 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2420 2421} # ac_fn_c_check_type 2422 2423# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 2424# -------------------------------------------- 2425# Tries to find the compile-time value of EXPR in a program that includes 2426# INCLUDES, setting VAR accordingly. Returns whether the value could be 2427# computed 2428ac_fn_c_compute_int () 2429{ 2430 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2431 if test "$cross_compiling" = yes; then 2432 # Depending upon the size, compute the lo and hi bounds. 2433cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2434/* end confdefs.h. */ 2435$4 2436int 2437main () 2438{ 2439static int test_array [1 - 2 * !(($2) >= 0)]; 2440test_array [0] = 0 2441 2442 ; 2443 return 0; 2444} 2445_ACEOF 2446if ac_fn_c_try_compile "$LINENO"; then : 2447 ac_lo=0 ac_mid=0 2448 while :; do 2449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2450/* end confdefs.h. */ 2451$4 2452int 2453main () 2454{ 2455static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2456test_array [0] = 0 2457 2458 ; 2459 return 0; 2460} 2461_ACEOF 2462if ac_fn_c_try_compile "$LINENO"; then : 2463 ac_hi=$ac_mid; break 2464else 2465 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2466 if test $ac_lo -le $ac_mid; then 2467 ac_lo= ac_hi= 2468 break 2469 fi 2470 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2471fi 2472rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2473 done 2474else 2475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2476/* end confdefs.h. */ 2477$4 2478int 2479main () 2480{ 2481static int test_array [1 - 2 * !(($2) < 0)]; 2482test_array [0] = 0 2483 2484 ; 2485 return 0; 2486} 2487_ACEOF 2488if ac_fn_c_try_compile "$LINENO"; then : 2489 ac_hi=-1 ac_mid=-1 2490 while :; do 2491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2492/* end confdefs.h. */ 2493$4 2494int 2495main () 2496{ 2497static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2498test_array [0] = 0 2499 2500 ; 2501 return 0; 2502} 2503_ACEOF 2504if ac_fn_c_try_compile "$LINENO"; then : 2505 ac_lo=$ac_mid; break 2506else 2507 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2508 if test $ac_mid -le $ac_hi; then 2509 ac_lo= ac_hi= 2510 break 2511 fi 2512 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2513fi 2514rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2515 done 2516else 2517 ac_lo= ac_hi= 2518fi 2519rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2520fi 2521rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2522# Binary search between lo and hi bounds. 2523while test "x$ac_lo" != "x$ac_hi"; do 2524 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2526/* end confdefs.h. */ 2527$4 2528int 2529main () 2530{ 2531static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2532test_array [0] = 0 2533 2534 ; 2535 return 0; 2536} 2537_ACEOF 2538if ac_fn_c_try_compile "$LINENO"; then : 2539 ac_hi=$ac_mid 2540else 2541 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2542fi 2543rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2544done 2545case $ac_lo in #(( 2546?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2547'') ac_retval=1 ;; 2548esac 2549 else 2550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2551/* end confdefs.h. */ 2552$4 2553static long int longval () { return $2; } 2554static unsigned long int ulongval () { return $2; } 2555#include <stdio.h> 2556#include <stdlib.h> 2557int 2558main () 2559{ 2560 2561 FILE *f = fopen ("conftest.val", "w"); 2562 if (! f) 2563 return 1; 2564 if (($2) < 0) 2565 { 2566 long int i = longval (); 2567 if (i != ($2)) 2568 return 1; 2569 fprintf (f, "%ld", i); 2570 } 2571 else 2572 { 2573 unsigned long int i = ulongval (); 2574 if (i != ($2)) 2575 return 1; 2576 fprintf (f, "%lu", i); 2577 } 2578 /* Do not output a trailing newline, as this causes \r\n confusion 2579 on some platforms. */ 2580 return ferror (f) || fclose (f) != 0; 2581 2582 ; 2583 return 0; 2584} 2585_ACEOF 2586if ac_fn_c_try_run "$LINENO"; then : 2587 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2588else 2589 ac_retval=1 2590fi 2591rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2592 conftest.$ac_objext conftest.beam conftest.$ac_ext 2593rm -f conftest.val 2594 2595 fi 2596 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2597 as_fn_set_status $ac_retval 2598 2599} # ac_fn_c_compute_int 2600 2601# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 2602# --------------------------------------------- 2603# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 2604# accordingly. 2605ac_fn_c_check_decl () 2606{ 2607 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2608 as_decl_name=`echo $2|sed 's/ *(.*//'` 2609 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 2610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 2611$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 2612if eval \${$3+:} false; then : 2613 $as_echo_n "(cached) " >&6 2614else 2615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2616/* end confdefs.h. */ 2617$4 2618int 2619main () 2620{ 2621#ifndef $as_decl_name 2622#ifdef __cplusplus 2623 (void) $as_decl_use; 2624#else 2625 (void) $as_decl_name; 2626#endif 2627#endif 2628 2629 ; 2630 return 0; 2631} 2632_ACEOF 2633if ac_fn_c_try_compile "$LINENO"; then : 2634 eval "$3=yes" 2635else 2636 eval "$3=no" 2637fi 2638rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2639fi 2640eval ac_res=\$$3 2641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2642$as_echo "$ac_res" >&6; } 2643 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2644 2645} # ac_fn_c_check_decl 2646 2647# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 2648# ---------------------------------------------------- 2649# Tries to find if the field MEMBER exists in type AGGR, after including 2650# INCLUDES, setting cache variable VAR accordingly. 2651ac_fn_c_check_member () 2652{ 2653 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 2655$as_echo_n "checking for $2.$3... " >&6; } 2656if eval \${$4+:} false; then : 2657 $as_echo_n "(cached) " >&6 2658else 2659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2660/* end confdefs.h. */ 2661$5 2662int 2663main () 2664{ 2665static $2 ac_aggr; 2666if (ac_aggr.$3) 2667return 0; 2668 ; 2669 return 0; 2670} 2671_ACEOF 2672if ac_fn_c_try_compile "$LINENO"; then : 2673 eval "$4=yes" 2674else 2675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2676/* end confdefs.h. */ 2677$5 2678int 2679main () 2680{ 2681static $2 ac_aggr; 2682if (sizeof ac_aggr.$3) 2683return 0; 2684 ; 2685 return 0; 2686} 2687_ACEOF 2688if ac_fn_c_try_compile "$LINENO"; then : 2689 eval "$4=yes" 2690else 2691 eval "$4=no" 2692fi 2693rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2694fi 2695rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2696fi 2697eval ac_res=\$$4 2698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2699$as_echo "$ac_res" >&6; } 2700 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2701 2702} # ac_fn_c_check_member 2703cat >config.log <<_ACEOF 2704This file contains any messages produced by compilers while 2705running configure, to aid debugging if configure makes a mistake. 2706 2707It was created by ntp $as_me 4.2.8p2, which was 2708generated by GNU Autoconf 2.68. Invocation command line was 2709 2710 $ $0 $@ 2711 2712_ACEOF 2713exec 5>>config.log 2714{ 2715cat <<_ASUNAME 2716## --------- ## 2717## Platform. ## 2718## --------- ## 2719 2720hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2721uname -m = `(uname -m) 2>/dev/null || echo unknown` 2722uname -r = `(uname -r) 2>/dev/null || echo unknown` 2723uname -s = `(uname -s) 2>/dev/null || echo unknown` 2724uname -v = `(uname -v) 2>/dev/null || echo unknown` 2725 2726/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2727/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2728 2729/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2730/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2731/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2732/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2733/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2734/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2735/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2736 2737_ASUNAME 2738 2739as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2740for as_dir in $PATH 2741do 2742 IFS=$as_save_IFS 2743 test -z "$as_dir" && as_dir=. 2744 $as_echo "PATH: $as_dir" 2745 done 2746IFS=$as_save_IFS 2747 2748} >&5 2749 2750cat >&5 <<_ACEOF 2751 2752 2753## ----------- ## 2754## Core tests. ## 2755## ----------- ## 2756 2757_ACEOF 2758 2759 2760# Keep a trace of the command line. 2761# Strip out --no-create and --no-recursion so they do not pile up. 2762# Strip out --silent because we don't want to record it for future runs. 2763# Also quote any args containing shell meta-characters. 2764# Make two passes to allow for proper duplicate-argument suppression. 2765ac_configure_args= 2766ac_configure_args0= 2767ac_configure_args1= 2768ac_must_keep_next=false 2769for ac_pass in 1 2 2770do 2771 for ac_arg 2772 do 2773 case $ac_arg in 2774 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2775 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2776 | -silent | --silent | --silen | --sile | --sil) 2777 continue ;; 2778 *\'*) 2779 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2780 esac 2781 case $ac_pass in 2782 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2783 2) 2784 as_fn_append ac_configure_args1 " '$ac_arg'" 2785 if test $ac_must_keep_next = true; then 2786 ac_must_keep_next=false # Got value, back to normal. 2787 else 2788 case $ac_arg in 2789 *=* | --config-cache | -C | -disable-* | --disable-* \ 2790 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2791 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2792 | -with-* | --with-* | -without-* | --without-* | --x) 2793 case "$ac_configure_args0 " in 2794 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2795 esac 2796 ;; 2797 -* ) ac_must_keep_next=true ;; 2798 esac 2799 fi 2800 as_fn_append ac_configure_args " '$ac_arg'" 2801 ;; 2802 esac 2803 done 2804done 2805{ ac_configure_args0=; unset ac_configure_args0;} 2806{ ac_configure_args1=; unset ac_configure_args1;} 2807 2808# When interrupted or exit'd, cleanup temporary files, and complete 2809# config.log. We remove comments because anyway the quotes in there 2810# would cause problems or look ugly. 2811# WARNING: Use '\'' to represent an apostrophe within the trap. 2812# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2813trap 'exit_status=$? 2814 # Save into config.log some information that might help in debugging. 2815 { 2816 echo 2817 2818 $as_echo "## ---------------- ## 2819## Cache variables. ## 2820## ---------------- ##" 2821 echo 2822 # The following way of writing the cache mishandles newlines in values, 2823( 2824 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2825 eval ac_val=\$$ac_var 2826 case $ac_val in #( 2827 *${as_nl}*) 2828 case $ac_var in #( 2829 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2830$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2831 esac 2832 case $ac_var in #( 2833 _ | IFS | as_nl) ;; #( 2834 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2835 *) { eval $ac_var=; unset $ac_var;} ;; 2836 esac ;; 2837 esac 2838 done 2839 (set) 2>&1 | 2840 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2841 *${as_nl}ac_space=\ *) 2842 sed -n \ 2843 "s/'\''/'\''\\\\'\'''\''/g; 2844 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2845 ;; #( 2846 *) 2847 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2848 ;; 2849 esac | 2850 sort 2851) 2852 echo 2853 2854 $as_echo "## ----------------- ## 2855## Output variables. ## 2856## ----------------- ##" 2857 echo 2858 for ac_var in $ac_subst_vars 2859 do 2860 eval ac_val=\$$ac_var 2861 case $ac_val in 2862 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2863 esac 2864 $as_echo "$ac_var='\''$ac_val'\''" 2865 done | sort 2866 echo 2867 2868 if test -n "$ac_subst_files"; then 2869 $as_echo "## ------------------- ## 2870## File substitutions. ## 2871## ------------------- ##" 2872 echo 2873 for ac_var in $ac_subst_files 2874 do 2875 eval ac_val=\$$ac_var 2876 case $ac_val in 2877 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2878 esac 2879 $as_echo "$ac_var='\''$ac_val'\''" 2880 done | sort 2881 echo 2882 fi 2883 2884 if test -s confdefs.h; then 2885 $as_echo "## ----------- ## 2886## confdefs.h. ## 2887## ----------- ##" 2888 echo 2889 cat confdefs.h 2890 echo 2891 fi 2892 test "$ac_signal" != 0 && 2893 $as_echo "$as_me: caught signal $ac_signal" 2894 $as_echo "$as_me: exit $exit_status" 2895 } >&5 2896 rm -f core *.core core.conftest.* && 2897 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2898 exit $exit_status 2899' 0 2900for ac_signal in 1 2 13 15; do 2901 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2902done 2903ac_signal=0 2904 2905# confdefs.h avoids OS command line length limits that DEFS can exceed. 2906rm -f -r conftest* confdefs.h 2907 2908$as_echo "/* confdefs.h */" > confdefs.h 2909 2910# Predefined preprocessor variables. 2911 2912cat >>confdefs.h <<_ACEOF 2913#define PACKAGE_NAME "$PACKAGE_NAME" 2914_ACEOF 2915 2916cat >>confdefs.h <<_ACEOF 2917#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2918_ACEOF 2919 2920cat >>confdefs.h <<_ACEOF 2921#define PACKAGE_VERSION "$PACKAGE_VERSION" 2922_ACEOF 2923 2924cat >>confdefs.h <<_ACEOF 2925#define PACKAGE_STRING "$PACKAGE_STRING" 2926_ACEOF 2927 2928cat >>confdefs.h <<_ACEOF 2929#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2930_ACEOF 2931 2932cat >>confdefs.h <<_ACEOF 2933#define PACKAGE_URL "$PACKAGE_URL" 2934_ACEOF 2935 2936 2937# Let the site file select an alternate cache file if it wants to. 2938# Prefer an explicitly selected file to automatically selected ones. 2939ac_site_file1=NONE 2940ac_site_file2=NONE 2941if test -n "$CONFIG_SITE"; then 2942 # We do not want a PATH search for config.site. 2943 case $CONFIG_SITE in #(( 2944 -*) ac_site_file1=./$CONFIG_SITE;; 2945 */*) ac_site_file1=$CONFIG_SITE;; 2946 *) ac_site_file1=./$CONFIG_SITE;; 2947 esac 2948elif test "x$prefix" != xNONE; then 2949 ac_site_file1=$prefix/share/config.site 2950 ac_site_file2=$prefix/etc/config.site 2951else 2952 ac_site_file1=$ac_default_prefix/share/config.site 2953 ac_site_file2=$ac_default_prefix/etc/config.site 2954fi 2955for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2956do 2957 test "x$ac_site_file" = xNONE && continue 2958 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2959 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2960$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2961 sed 's/^/| /' "$ac_site_file" >&5 2962 . "$ac_site_file" \ 2963 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2964$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2965as_fn_error $? "failed to load site script $ac_site_file 2966See \`config.log' for more details" "$LINENO" 5; } 2967 fi 2968done 2969 2970if test -r "$cache_file"; then 2971 # Some versions of bash will fail to source /dev/null (special files 2972 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2973 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2974 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2975$as_echo "$as_me: loading cache $cache_file" >&6;} 2976 case $cache_file in 2977 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2978 *) . "./$cache_file";; 2979 esac 2980 fi 2981else 2982 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2983$as_echo "$as_me: creating cache $cache_file" >&6;} 2984 >$cache_file 2985fi 2986 2987as_fn_append ac_header_list " stdarg.h" 2988# Check that the precious variables saved in the cache have kept the same 2989# value. 2990ac_cache_corrupted=false 2991for ac_var in $ac_precious_vars; do 2992 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2993 eval ac_new_set=\$ac_env_${ac_var}_set 2994 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2995 eval ac_new_val=\$ac_env_${ac_var}_value 2996 case $ac_old_set,$ac_new_set in 2997 set,) 2998 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2999$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 3000 ac_cache_corrupted=: ;; 3001 ,set) 3002 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 3003$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 3004 ac_cache_corrupted=: ;; 3005 ,);; 3006 *) 3007 if test "x$ac_old_val" != "x$ac_new_val"; then 3008 # differences in whitespace do not lead to failure. 3009 ac_old_val_w=`echo x $ac_old_val` 3010 ac_new_val_w=`echo x $ac_new_val` 3011 if test "$ac_old_val_w" != "$ac_new_val_w"; then 3012 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 3013$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 3014 ac_cache_corrupted=: 3015 else 3016 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 3017$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 3018 eval $ac_var=\$ac_old_val 3019 fi 3020 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 3021$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 3022 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 3023$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 3024 fi;; 3025 esac 3026 # Pass precious variables to config.status. 3027 if test "$ac_new_set" = set; then 3028 case $ac_new_val in 3029 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 3030 *) ac_arg=$ac_var=$ac_new_val ;; 3031 esac 3032 case " $ac_configure_args " in 3033 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 3034 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 3035 esac 3036 fi 3037done 3038if $ac_cache_corrupted; then 3039 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3040$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3041 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 3042$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 3043 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 3044fi 3045## -------------------- ## 3046## Main body of script. ## 3047## -------------------- ## 3048 3049ac_ext=c 3050ac_cpp='$CPP $CPPFLAGS' 3051ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3052ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3053ac_compiler_gnu=$ac_cv_c_compiler_gnu 3054 3055 3056 3057ac_aux_dir= 3058for ac_dir in sntp/libevent/build-aux "$srcdir"/sntp/libevent/build-aux; do 3059 if test -f "$ac_dir/install-sh"; then 3060 ac_aux_dir=$ac_dir 3061 ac_install_sh="$ac_aux_dir/install-sh -c" 3062 break 3063 elif test -f "$ac_dir/install.sh"; then 3064 ac_aux_dir=$ac_dir 3065 ac_install_sh="$ac_aux_dir/install.sh -c" 3066 break 3067 elif test -f "$ac_dir/shtool"; then 3068 ac_aux_dir=$ac_dir 3069 ac_install_sh="$ac_aux_dir/shtool install -c" 3070 break 3071 fi 3072done 3073if test -z "$ac_aux_dir"; then 3074 as_fn_error $? "cannot find install-sh, install.sh, or shtool in sntp/libevent/build-aux \"$srcdir\"/sntp/libevent/build-aux" "$LINENO" 5 3075fi 3076 3077# These three variables are undocumented and unsupported, 3078# and are intended to be withdrawn in a future Autoconf release. 3079# They can cause serious problems if a builder's source tree is in a directory 3080# whose full name contains unusual characters. 3081ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 3082ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 3083ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 3084 3085 3086 3087 3088 3089 3090 3091# Bump ntp_configure_cache_version for each change to configure.ac or 3092# .m4 files which invalidates cached values from previous configure 3093# runs. 3094# 3095# If the change affects cache variables used only by the main NTP 3096# configure.ac, then only its version number should be bumped, while 3097# the subdir configure.ac version numbers should be unchanged. The 3098# same is true for a test/variable that is used only by one subdir 3099# being changed incompatibly; only that subdir's cache version needs 3100# bumping. 3101# 3102# If a change affects variables shared by all NTP configure scripts, 3103# please bump the version numbers of each. If you are not sure, the 3104# safe choice is to bump all on any cache-invalidating change. 3105# 3106# In order to avoid the risk of version stamp collision between -stable 3107# and -dev branches, do not simply increment the version, instead use 3108# the date YYYYMMDD optionally with -HHMM if there is more than one 3109# bump in a day. 3110 3111ntp_configure_cache_version=20120806 3112 3113# When the cache version of config.cache and configure do not 3114# match, NTP_CACHEVERSION will flush the cache. 3115 3116 3117 3118 ntp_cache_flush=1 3119 3120 case "$ntp_cv_main_cache_version" in 3121 $ntp_configure_cache_version) 3122 # same version, good 3123 ntp_cache_flush=0 3124 ;; 3125 '') 3126 # No cache, predates ntp_cv_main_cache_version, or is empty. 3127 case "$cache_file" in 3128 /dev/null) 3129 ntp_cache_flush=0 3130 ;; 3131 *) 3132 case "$NTP_CACHEVERSION_PARENT" in 3133 '') 3134 # Do not clear the cache immediately after it is created 3135 # empty as it is noisy. Differentiate a newly-created 3136 # config.cache from one predating the cache version 3137 # mechanism by looking for the first cached variable set 3138 # by Autoconf 3139 case "$ac_cv_path_install" in 3140 '') 3141 # empty config.cache file 3142 ntp_cache_flush=0 3143 esac 3144 ;; 3145 *) 3146 # Parent configure just created cache from empty, 3147 # flushing would be counterproductive. 3148 ntp_cache_flush=0; 3149 ;; 3150 esac 3151 esac 3152 ;; 3153 *) 3154 # configure cache version mismatches config.cache version 3155 ;; 3156 esac 3157 3158 case "$ntp_cache_flush" in 3159 1) 3160 c_version="${ntp_cv_main_cache_version:-(no version found)}" 3161 3162 # Do we flush all variables or exclude others' version stamps? 3163 3164 case "$NTP_CACHEVERSION_PARENT" in 3165 '') 3166 # Clear all *_cv_* variables including our child subdirs' 3167 # ntp_cv_*_cache_version variables. This prevents subdir 3168 # configure scripts from noticing a version mismatch just 3169 # after the top configure in the invocation cleared and 3170 # recreated the cache. 3171 3172 c_varname_list=`set | 3173 sed -n -e 's/=.*$//' \ 3174 -e '/_cv_/p' 3175 ` 3176 ;; 3177 *) 3178 # This is not the top configure this particular invocation. 3179 # Clear all *_cv_* variables sparing the version stamps 3180 # of other configure scripts, so we don't trigger 3181 # useless repeated clearings. 3182 3183 c_varname_list=`set | 3184 sed -n -e 's/=.*$//' \ 3185 -e '/ntp_cv_.*_cache_version/d' \ 3186 -e '/_cv_/p' 3187 ` 3188 esac 3189 3190 for c_varname in $c_varname_list 3191 do 3192 { eval $c_varname=; unset $c_varname; } 3193 done 3194 3195 { $as_echo "$as_me:${as_lineno-$LINENO}: $cache_file saved by another version, ignored." >&5 3196$as_echo "$as_me: $cache_file saved by another version, ignored." >&6;} 3197 { $as_echo "$as_me:${as_lineno-$LINENO}: configure script cache version: $ntp_configure_cache_version" >&5 3198$as_echo "$as_me: configure script cache version: $ntp_configure_cache_version" >&6;} 3199 { $as_echo "$as_me:${as_lineno-$LINENO}: $cache_file version: $c_version" >&5 3200$as_echo "$as_me: $cache_file version: $c_version" >&6;} 3201 { c_varname=; unset c_varname;} 3202 { c_varname_list=; unset c_varname_list;} 3203 { c_version=; unset c_version;} 3204 esac 3205 3206 { ntp_cache_flush=; unset ntp_cache_flush;} 3207 3208 # save configure version in config.cache for next time 3209 ntp_cv_main_cache_version="$ntp_configure_cache_version" 3210 3211 # let any subdir configure.ac NTP_CACHEVERSION invocations 3212 # know they are not the top level. 3213 NTP_CACHEVERSION_PARENT='main' ; export NTP_CACHEVERSION_PARENT 3214 3215 3216am__api_version='1.11' 3217 3218# Find a good install program. We prefer a C program (faster), 3219# so one script is as good as another. But avoid the broken or 3220# incompatible versions: 3221# SysV /etc/install, /usr/sbin/install 3222# SunOS /usr/etc/install 3223# IRIX /sbin/install 3224# AIX /bin/install 3225# AmigaOS /C/install, which installs bootblocks on floppy discs 3226# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3227# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3228# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3229# OS/2's system install, which has a completely different semantic 3230# ./install, which can be erroneously created by make from ./install.sh. 3231# Reject install programs that cannot install multiple files. 3232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 3233$as_echo_n "checking for a BSD-compatible install... " >&6; } 3234if test -z "$INSTALL"; then 3235if ${ac_cv_path_install+:} false; then : 3236 $as_echo_n "(cached) " >&6 3237else 3238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3239for as_dir in $PATH 3240do 3241 IFS=$as_save_IFS 3242 test -z "$as_dir" && as_dir=. 3243 # Account for people who put trailing slashes in PATH elements. 3244case $as_dir/ in #(( 3245 ./ | .// | /[cC]/* | \ 3246 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3247 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 3248 /usr/ucb/* ) ;; 3249 *) 3250 # OSF1 and SCO ODT 3.0 have their own names for install. 3251 # Don't use installbsd from OSF since it installs stuff as root 3252 # by default. 3253 for ac_prog in ginstall scoinst install; do 3254 for ac_exec_ext in '' $ac_executable_extensions; do 3255 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 3256 if test $ac_prog = install && 3257 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3258 # AIX install. It has an incompatible calling convention. 3259 : 3260 elif test $ac_prog = install && 3261 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3262 # program-specific install script used by HP pwplus--don't use. 3263 : 3264 else 3265 rm -rf conftest.one conftest.two conftest.dir 3266 echo one > conftest.one 3267 echo two > conftest.two 3268 mkdir conftest.dir 3269 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 3270 test -s conftest.one && test -s conftest.two && 3271 test -s conftest.dir/conftest.one && 3272 test -s conftest.dir/conftest.two 3273 then 3274 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3275 break 3 3276 fi 3277 fi 3278 fi 3279 done 3280 done 3281 ;; 3282esac 3283 3284 done 3285IFS=$as_save_IFS 3286 3287rm -rf conftest.one conftest.two conftest.dir 3288 3289fi 3290 if test "${ac_cv_path_install+set}" = set; then 3291 INSTALL=$ac_cv_path_install 3292 else 3293 # As a last resort, use the slow shell script. Don't cache a 3294 # value for INSTALL within a source directory, because that will 3295 # break other packages using the cache if that directory is 3296 # removed, or if the value is a relative name. 3297 INSTALL=$ac_install_sh 3298 fi 3299fi 3300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 3301$as_echo "$INSTALL" >&6; } 3302 3303# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3304# It thinks the first close brace ends the variable substitution. 3305test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3306 3307test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3308 3309test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3310 3311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 3312$as_echo_n "checking whether build environment is sane... " >&6; } 3313# Just in case 3314sleep 1 3315echo timestamp > conftest.file 3316# Reject unsafe characters in $srcdir or the absolute working directory 3317# name. Accept space and tab only in the latter. 3318am_lf=' 3319' 3320case `pwd` in 3321 *[\\\"\#\$\&\'\`$am_lf]*) 3322 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 3323esac 3324case $srcdir in 3325 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 3326 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; 3327esac 3328 3329# Do `set' in a subshell so we don't clobber the current shell's 3330# arguments. Must try -L first in case configure is actually a 3331# symlink; some systems play weird games with the mod time of symlinks 3332# (eg FreeBSD returns the mod time of the symlink's containing 3333# directory). 3334if ( 3335 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 3336 if test "$*" = "X"; then 3337 # -L didn't work. 3338 set X `ls -t "$srcdir/configure" conftest.file` 3339 fi 3340 rm -f conftest.file 3341 if test "$*" != "X $srcdir/configure conftest.file" \ 3342 && test "$*" != "X conftest.file $srcdir/configure"; then 3343 3344 # If neither matched, then we have a broken ls. This can happen 3345 # if, for instance, CONFIG_SHELL is bash and it inherits a 3346 # broken ls alias from the environment. This has actually 3347 # happened. Such a system could not be considered "sane". 3348 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 3349alias in your environment" "$LINENO" 5 3350 fi 3351 3352 test "$2" = conftest.file 3353 ) 3354then 3355 # Ok. 3356 : 3357else 3358 as_fn_error $? "newly created file is older than distributed files! 3359Check your system clock" "$LINENO" 5 3360fi 3361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3362$as_echo "yes" >&6; } 3363test "$program_prefix" != NONE && 3364 program_transform_name="s&^&$program_prefix&;$program_transform_name" 3365# Use a double $ so make ignores it. 3366test "$program_suffix" != NONE && 3367 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 3368# Double any \ or $. 3369# By default was `s,x,x', remove it if useless. 3370ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 3371program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 3372 3373# expand $ac_aux_dir to an absolute path 3374am_aux_dir=`cd $ac_aux_dir && pwd` 3375 3376if test x"${MISSING+set}" != xset; then 3377 case $am_aux_dir in 3378 *\ * | *\ *) 3379 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 3380 *) 3381 MISSING="\${SHELL} $am_aux_dir/missing" ;; 3382 esac 3383fi 3384# Use eval to expand $SHELL 3385if eval "$MISSING --run true"; then 3386 am_missing_run="$MISSING --run " 3387else 3388 am_missing_run= 3389 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 3390$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 3391fi 3392 3393if test x"${install_sh}" != xset; then 3394 case $am_aux_dir in 3395 *\ * | *\ *) 3396 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 3397 *) 3398 install_sh="\${SHELL} $am_aux_dir/install-sh" 3399 esac 3400fi 3401 3402# Installed binaries are usually stripped using `strip' when the user 3403# run `make install-strip'. However `strip' might not be the right 3404# tool to use in cross-compilation environments, therefore Automake 3405# will honor the `STRIP' environment variable to overrule this program. 3406if test "$cross_compiling" != no; then 3407 if test -n "$ac_tool_prefix"; then 3408 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3409set dummy ${ac_tool_prefix}strip; ac_word=$2 3410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3411$as_echo_n "checking for $ac_word... " >&6; } 3412if ${ac_cv_prog_STRIP+:} false; then : 3413 $as_echo_n "(cached) " >&6 3414else 3415 if test -n "$STRIP"; then 3416 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3417else 3418as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3419for as_dir in $PATH 3420do 3421 IFS=$as_save_IFS 3422 test -z "$as_dir" && as_dir=. 3423 for ac_exec_ext in '' $ac_executable_extensions; do 3424 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3425 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3427 break 2 3428 fi 3429done 3430 done 3431IFS=$as_save_IFS 3432 3433fi 3434fi 3435STRIP=$ac_cv_prog_STRIP 3436if test -n "$STRIP"; then 3437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3438$as_echo "$STRIP" >&6; } 3439else 3440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3441$as_echo "no" >&6; } 3442fi 3443 3444 3445fi 3446if test -z "$ac_cv_prog_STRIP"; then 3447 ac_ct_STRIP=$STRIP 3448 # Extract the first word of "strip", so it can be a program name with args. 3449set dummy strip; ac_word=$2 3450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3451$as_echo_n "checking for $ac_word... " >&6; } 3452if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 3453 $as_echo_n "(cached) " >&6 3454else 3455 if test -n "$ac_ct_STRIP"; then 3456 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3457else 3458as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3459for as_dir in $PATH 3460do 3461 IFS=$as_save_IFS 3462 test -z "$as_dir" && as_dir=. 3463 for ac_exec_ext in '' $ac_executable_extensions; do 3464 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3465 ac_cv_prog_ac_ct_STRIP="strip" 3466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3467 break 2 3468 fi 3469done 3470 done 3471IFS=$as_save_IFS 3472 3473fi 3474fi 3475ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3476if test -n "$ac_ct_STRIP"; then 3477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3478$as_echo "$ac_ct_STRIP" >&6; } 3479else 3480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3481$as_echo "no" >&6; } 3482fi 3483 3484 if test "x$ac_ct_STRIP" = x; then 3485 STRIP=":" 3486 else 3487 case $cross_compiling:$ac_tool_warned in 3488yes:) 3489{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3490$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3491ac_tool_warned=yes ;; 3492esac 3493 STRIP=$ac_ct_STRIP 3494 fi 3495else 3496 STRIP="$ac_cv_prog_STRIP" 3497fi 3498 3499fi 3500INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3501 3502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 3503$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 3504if test -z "$MKDIR_P"; then 3505 if ${ac_cv_path_mkdir+:} false; then : 3506 $as_echo_n "(cached) " >&6 3507else 3508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3509for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3510do 3511 IFS=$as_save_IFS 3512 test -z "$as_dir" && as_dir=. 3513 for ac_prog in mkdir gmkdir; do 3514 for ac_exec_ext in '' $ac_executable_extensions; do 3515 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 3516 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 3517 'mkdir (GNU coreutils) '* | \ 3518 'mkdir (coreutils) '* | \ 3519 'mkdir (fileutils) '4.1*) 3520 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 3521 break 3;; 3522 esac 3523 done 3524 done 3525 done 3526IFS=$as_save_IFS 3527 3528fi 3529 3530 test -d ./--version && rmdir ./--version 3531 if test "${ac_cv_path_mkdir+set}" = set; then 3532 MKDIR_P="$ac_cv_path_mkdir -p" 3533 else 3534 # As a last resort, use the slow shell script. Don't cache a 3535 # value for MKDIR_P within a source directory, because that will 3536 # break other packages using the cache if that directory is 3537 # removed, or if the value is a relative name. 3538 MKDIR_P="$ac_install_sh -d" 3539 fi 3540fi 3541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3542$as_echo "$MKDIR_P" >&6; } 3543 3544mkdir_p="$MKDIR_P" 3545case $mkdir_p in 3546 [\\/$]* | ?:[\\/]*) ;; 3547 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 3548esac 3549 3550for ac_prog in gawk mawk nawk awk 3551do 3552 # Extract the first word of "$ac_prog", so it can be a program name with args. 3553set dummy $ac_prog; ac_word=$2 3554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3555$as_echo_n "checking for $ac_word... " >&6; } 3556if ${ac_cv_prog_AWK+:} false; then : 3557 $as_echo_n "(cached) " >&6 3558else 3559 if test -n "$AWK"; then 3560 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3561else 3562as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3563for as_dir in $PATH 3564do 3565 IFS=$as_save_IFS 3566 test -z "$as_dir" && as_dir=. 3567 for ac_exec_ext in '' $ac_executable_extensions; do 3568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3569 ac_cv_prog_AWK="$ac_prog" 3570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3571 break 2 3572 fi 3573done 3574 done 3575IFS=$as_save_IFS 3576 3577fi 3578fi 3579AWK=$ac_cv_prog_AWK 3580if test -n "$AWK"; then 3581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3582$as_echo "$AWK" >&6; } 3583else 3584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3585$as_echo "no" >&6; } 3586fi 3587 3588 3589 test -n "$AWK" && break 3590done 3591 3592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3593$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3594set x ${MAKE-make} 3595ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3596if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 3597 $as_echo_n "(cached) " >&6 3598else 3599 cat >conftest.make <<\_ACEOF 3600SHELL = /bin/sh 3601all: 3602 @echo '@@@%%%=$(MAKE)=@@@%%%' 3603_ACEOF 3604# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3605case `${MAKE-make} -f conftest.make 2>/dev/null` in 3606 *@@@%%%=?*=@@@%%%*) 3607 eval ac_cv_prog_make_${ac_make}_set=yes;; 3608 *) 3609 eval ac_cv_prog_make_${ac_make}_set=no;; 3610esac 3611rm -f conftest.make 3612fi 3613if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3615$as_echo "yes" >&6; } 3616 SET_MAKE= 3617else 3618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3619$as_echo "no" >&6; } 3620 SET_MAKE="MAKE=${MAKE-make}" 3621fi 3622 3623rm -rf .tst 2>/dev/null 3624mkdir .tst 2>/dev/null 3625if test -d .tst; then 3626 am__leading_dot=. 3627else 3628 am__leading_dot=_ 3629fi 3630rmdir .tst 2>/dev/null 3631 3632if test "`cd $srcdir && pwd`" != "`pwd`"; then 3633 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3634 # is not polluted with repeated "-I." 3635 am__isrc=' -I$(srcdir)' 3636 # test to see if srcdir already configured 3637 if test -f $srcdir/config.status; then 3638 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3639 fi 3640fi 3641 3642# test whether we have cygpath 3643if test -z "$CYGPATH_W"; then 3644 if (cygpath --version) >/dev/null 2>/dev/null; then 3645 CYGPATH_W='cygpath -w' 3646 else 3647 CYGPATH_W=echo 3648 fi 3649fi 3650 3651 3652# Define the identity of the package. 3653 PACKAGE='ntp' 3654 VERSION='4.2.8p2' 3655 3656 3657cat >>confdefs.h <<_ACEOF 3658#define PACKAGE "$PACKAGE" 3659_ACEOF 3660 3661 3662cat >>confdefs.h <<_ACEOF 3663#define VERSION "$VERSION" 3664_ACEOF 3665 3666# Some tools Automake needs. 3667 3668ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3669 3670 3671AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3672 3673 3674AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3675 3676 3677AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3678 3679 3680MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3681 3682# We need awk for the "check" target. The system "awk" is bad on 3683# some platforms. 3684# Always define AMTAR for backward compatibility. 3685 3686AMTAR=${AMTAR-"${am_missing_run}tar"} 3687 3688am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 3689 3690 3691 3692 3693 3694 3695# Check whether --enable-silent-rules was given. 3696if test "${enable_silent_rules+set}" = set; then : 3697 enableval=$enable_silent_rules; 3698fi 3699 3700case $enable_silent_rules in 3701yes) AM_DEFAULT_VERBOSITY=0;; 3702no) AM_DEFAULT_VERBOSITY=1;; 3703*) AM_DEFAULT_VERBOSITY=0;; 3704esac 3705AM_BACKSLASH='\' 3706 3707 3708# Make sure we can run config.sub. 3709$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 3710 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 3711 3712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 3713$as_echo_n "checking build system type... " >&6; } 3714if ${ac_cv_build+:} false; then : 3715 $as_echo_n "(cached) " >&6 3716else 3717 ac_build_alias=$build_alias 3718test "x$ac_build_alias" = x && 3719 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3720test "x$ac_build_alias" = x && 3721 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 3722ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3723 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 3724 3725fi 3726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 3727$as_echo "$ac_cv_build" >&6; } 3728case $ac_cv_build in 3729*-*-*) ;; 3730*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 3731esac 3732build=$ac_cv_build 3733ac_save_IFS=$IFS; IFS='-' 3734set x $ac_cv_build 3735shift 3736build_cpu=$1 3737build_vendor=$2 3738shift; shift 3739# Remember, the first character of IFS is used to create $*, 3740# except with old shells: 3741build_os=$* 3742IFS=$ac_save_IFS 3743case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3744 3745 3746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 3747$as_echo_n "checking host system type... " >&6; } 3748if ${ac_cv_host+:} false; then : 3749 $as_echo_n "(cached) " >&6 3750else 3751 if test "x$host_alias" = x; then 3752 ac_cv_host=$ac_cv_build 3753else 3754 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3755 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 3756fi 3757 3758fi 3759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 3760$as_echo "$ac_cv_host" >&6; } 3761case $ac_cv_host in 3762*-*-*) ;; 3763*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 3764esac 3765host=$ac_cv_host 3766ac_save_IFS=$IFS; IFS='-' 3767set x $ac_cv_host 3768shift 3769host_cpu=$1 3770host_vendor=$2 3771shift; shift 3772# Remember, the first character of IFS is used to create $*, 3773# except with old shells: 3774host_os=$* 3775IFS=$ac_save_IFS 3776case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3777 3778 3779 3780cat >>confdefs.h <<_ACEOF 3781#define STR_SYSTEM "$host" 3782_ACEOF 3783 3784ac_config_headers="$ac_config_headers config.h" 3785 3786 3787ntp_atom_ok=${ntp_atom_ok=no} 3788ntp_oncore_ok=${ntp_oncore_ok=no} 3789ntp_parse_ok=${ntp_parse_ok=no} 3790ntp_ripe_ncc_ok=${ntp_parse_ok=no} 3791ntp_jupiter_ok=${ntp_jupiter_ok=no} 3792 3793DEPDIR="${am__leading_dot}deps" 3794 3795ac_config_commands="$ac_config_commands depfiles" 3796 3797 3798am_make=${MAKE-make} 3799cat > confinc << 'END' 3800am__doit: 3801 @echo this is the am__doit target 3802.PHONY: am__doit 3803END 3804# If we don't find an include directive, just comment out the code. 3805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3806$as_echo_n "checking for style of include used by $am_make... " >&6; } 3807am__include="#" 3808am__quote= 3809_am_result=none 3810# First try GNU make style include. 3811echo "include confinc" > confmf 3812# Ignore all kinds of additional output from `make'. 3813case `$am_make -s -f confmf 2> /dev/null` in #( 3814*the\ am__doit\ target*) 3815 am__include=include 3816 am__quote= 3817 _am_result=GNU 3818 ;; 3819esac 3820# Now try BSD make style include. 3821if test "$am__include" = "#"; then 3822 echo '.include "confinc"' > confmf 3823 case `$am_make -s -f confmf 2> /dev/null` in #( 3824 *the\ am__doit\ target*) 3825 am__include=.include 3826 am__quote="\"" 3827 _am_result=BSD 3828 ;; 3829 esac 3830fi 3831 3832 3833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3834$as_echo "$_am_result" >&6; } 3835rm -f confinc confmf 3836 3837# Check whether --enable-dependency-tracking was given. 3838if test "${enable_dependency_tracking+set}" = set; then : 3839 enableval=$enable_dependency_tracking; 3840fi 3841 3842if test "x$enable_dependency_tracking" != xno; then 3843 am_depcomp="$ac_aux_dir/depcomp" 3844 AMDEPBACKSLASH='\' 3845fi 3846 if test "x$enable_dependency_tracking" != xno; then 3847 AMDEP_TRUE= 3848 AMDEP_FALSE='#' 3849else 3850 AMDEP_TRUE='#' 3851 AMDEP_FALSE= 3852fi 3853 3854 3855ac_ext=c 3856ac_cpp='$CPP $CPPFLAGS' 3857ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3858ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3859ac_compiler_gnu=$ac_cv_c_compiler_gnu 3860if test -n "$ac_tool_prefix"; then 3861 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3862set dummy ${ac_tool_prefix}gcc; ac_word=$2 3863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3864$as_echo_n "checking for $ac_word... " >&6; } 3865if ${ac_cv_prog_CC+:} false; then : 3866 $as_echo_n "(cached) " >&6 3867else 3868 if test -n "$CC"; then 3869 ac_cv_prog_CC="$CC" # Let the user override the test. 3870else 3871as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3872for as_dir in $PATH 3873do 3874 IFS=$as_save_IFS 3875 test -z "$as_dir" && as_dir=. 3876 for ac_exec_ext in '' $ac_executable_extensions; do 3877 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3878 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3879 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3880 break 2 3881 fi 3882done 3883 done 3884IFS=$as_save_IFS 3885 3886fi 3887fi 3888CC=$ac_cv_prog_CC 3889if test -n "$CC"; then 3890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3891$as_echo "$CC" >&6; } 3892else 3893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3894$as_echo "no" >&6; } 3895fi 3896 3897 3898fi 3899if test -z "$ac_cv_prog_CC"; then 3900 ac_ct_CC=$CC 3901 # Extract the first word of "gcc", so it can be a program name with args. 3902set dummy gcc; ac_word=$2 3903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3904$as_echo_n "checking for $ac_word... " >&6; } 3905if ${ac_cv_prog_ac_ct_CC+:} false; then : 3906 $as_echo_n "(cached) " >&6 3907else 3908 if test -n "$ac_ct_CC"; then 3909 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3910else 3911as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3912for as_dir in $PATH 3913do 3914 IFS=$as_save_IFS 3915 test -z "$as_dir" && as_dir=. 3916 for ac_exec_ext in '' $ac_executable_extensions; do 3917 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3918 ac_cv_prog_ac_ct_CC="gcc" 3919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3920 break 2 3921 fi 3922done 3923 done 3924IFS=$as_save_IFS 3925 3926fi 3927fi 3928ac_ct_CC=$ac_cv_prog_ac_ct_CC 3929if test -n "$ac_ct_CC"; then 3930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3931$as_echo "$ac_ct_CC" >&6; } 3932else 3933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3934$as_echo "no" >&6; } 3935fi 3936 3937 if test "x$ac_ct_CC" = x; then 3938 CC="" 3939 else 3940 case $cross_compiling:$ac_tool_warned in 3941yes:) 3942{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3943$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3944ac_tool_warned=yes ;; 3945esac 3946 CC=$ac_ct_CC 3947 fi 3948else 3949 CC="$ac_cv_prog_CC" 3950fi 3951 3952if test -z "$CC"; then 3953 if test -n "$ac_tool_prefix"; then 3954 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3955set dummy ${ac_tool_prefix}cc; ac_word=$2 3956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3957$as_echo_n "checking for $ac_word... " >&6; } 3958if ${ac_cv_prog_CC+:} false; then : 3959 $as_echo_n "(cached) " >&6 3960else 3961 if test -n "$CC"; then 3962 ac_cv_prog_CC="$CC" # Let the user override the test. 3963else 3964as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3965for as_dir in $PATH 3966do 3967 IFS=$as_save_IFS 3968 test -z "$as_dir" && as_dir=. 3969 for ac_exec_ext in '' $ac_executable_extensions; do 3970 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3971 ac_cv_prog_CC="${ac_tool_prefix}cc" 3972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3973 break 2 3974 fi 3975done 3976 done 3977IFS=$as_save_IFS 3978 3979fi 3980fi 3981CC=$ac_cv_prog_CC 3982if test -n "$CC"; then 3983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3984$as_echo "$CC" >&6; } 3985else 3986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3987$as_echo "no" >&6; } 3988fi 3989 3990 3991 fi 3992fi 3993if test -z "$CC"; then 3994 # Extract the first word of "cc", so it can be a program name with args. 3995set dummy cc; ac_word=$2 3996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3997$as_echo_n "checking for $ac_word... " >&6; } 3998if ${ac_cv_prog_CC+:} false; then : 3999 $as_echo_n "(cached) " >&6 4000else 4001 if test -n "$CC"; then 4002 ac_cv_prog_CC="$CC" # Let the user override the test. 4003else 4004 ac_prog_rejected=no 4005as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4006for as_dir in $PATH 4007do 4008 IFS=$as_save_IFS 4009 test -z "$as_dir" && as_dir=. 4010 for ac_exec_ext in '' $ac_executable_extensions; do 4011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4012 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 4013 ac_prog_rejected=yes 4014 continue 4015 fi 4016 ac_cv_prog_CC="cc" 4017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4018 break 2 4019 fi 4020done 4021 done 4022IFS=$as_save_IFS 4023 4024if test $ac_prog_rejected = yes; then 4025 # We found a bogon in the path, so make sure we never use it. 4026 set dummy $ac_cv_prog_CC 4027 shift 4028 if test $# != 0; then 4029 # We chose a different compiler from the bogus one. 4030 # However, it has the same basename, so the bogon will be chosen 4031 # first if we set CC to just the basename; use the full file name. 4032 shift 4033 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 4034 fi 4035fi 4036fi 4037fi 4038CC=$ac_cv_prog_CC 4039if test -n "$CC"; then 4040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4041$as_echo "$CC" >&6; } 4042else 4043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4044$as_echo "no" >&6; } 4045fi 4046 4047 4048fi 4049if test -z "$CC"; then 4050 if test -n "$ac_tool_prefix"; then 4051 for ac_prog in cl.exe 4052 do 4053 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4054set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4056$as_echo_n "checking for $ac_word... " >&6; } 4057if ${ac_cv_prog_CC+:} false; then : 4058 $as_echo_n "(cached) " >&6 4059else 4060 if test -n "$CC"; then 4061 ac_cv_prog_CC="$CC" # Let the user override the test. 4062else 4063as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4064for as_dir in $PATH 4065do 4066 IFS=$as_save_IFS 4067 test -z "$as_dir" && as_dir=. 4068 for ac_exec_ext in '' $ac_executable_extensions; do 4069 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4070 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 4071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4072 break 2 4073 fi 4074done 4075 done 4076IFS=$as_save_IFS 4077 4078fi 4079fi 4080CC=$ac_cv_prog_CC 4081if test -n "$CC"; then 4082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4083$as_echo "$CC" >&6; } 4084else 4085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4086$as_echo "no" >&6; } 4087fi 4088 4089 4090 test -n "$CC" && break 4091 done 4092fi 4093if test -z "$CC"; then 4094 ac_ct_CC=$CC 4095 for ac_prog in cl.exe 4096do 4097 # Extract the first word of "$ac_prog", so it can be a program name with args. 4098set dummy $ac_prog; ac_word=$2 4099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4100$as_echo_n "checking for $ac_word... " >&6; } 4101if ${ac_cv_prog_ac_ct_CC+:} false; then : 4102 $as_echo_n "(cached) " >&6 4103else 4104 if test -n "$ac_ct_CC"; then 4105 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4106else 4107as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4108for as_dir in $PATH 4109do 4110 IFS=$as_save_IFS 4111 test -z "$as_dir" && as_dir=. 4112 for ac_exec_ext in '' $ac_executable_extensions; do 4113 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4114 ac_cv_prog_ac_ct_CC="$ac_prog" 4115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4116 break 2 4117 fi 4118done 4119 done 4120IFS=$as_save_IFS 4121 4122fi 4123fi 4124ac_ct_CC=$ac_cv_prog_ac_ct_CC 4125if test -n "$ac_ct_CC"; then 4126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4127$as_echo "$ac_ct_CC" >&6; } 4128else 4129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4130$as_echo "no" >&6; } 4131fi 4132 4133 4134 test -n "$ac_ct_CC" && break 4135done 4136 4137 if test "x$ac_ct_CC" = x; then 4138 CC="" 4139 else 4140 case $cross_compiling:$ac_tool_warned in 4141yes:) 4142{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4143$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4144ac_tool_warned=yes ;; 4145esac 4146 CC=$ac_ct_CC 4147 fi 4148fi 4149 4150fi 4151 4152 4153test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4154$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4155as_fn_error $? "no acceptable C compiler found in \$PATH 4156See \`config.log' for more details" "$LINENO" 5; } 4157 4158# Provide some information about the compiler. 4159$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 4160set X $ac_compile 4161ac_compiler=$2 4162for ac_option in --version -v -V -qversion; do 4163 { { ac_try="$ac_compiler $ac_option >&5" 4164case "(($ac_try" in 4165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4166 *) ac_try_echo=$ac_try;; 4167esac 4168eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4169$as_echo "$ac_try_echo"; } >&5 4170 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4171 ac_status=$? 4172 if test -s conftest.err; then 4173 sed '10a\ 4174... rest of stderr output deleted ... 4175 10q' conftest.err >conftest.er1 4176 cat conftest.er1 >&5 4177 fi 4178 rm -f conftest.er1 conftest.err 4179 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4180 test $ac_status = 0; } 4181done 4182 4183cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4184/* end confdefs.h. */ 4185 4186int 4187main () 4188{ 4189 4190 ; 4191 return 0; 4192} 4193_ACEOF 4194ac_clean_files_save=$ac_clean_files 4195ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 4196# Try to create an executable without -o first, disregard a.out. 4197# It will help us diagnose broken compilers, and finding out an intuition 4198# of exeext. 4199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 4200$as_echo_n "checking whether the C compiler works... " >&6; } 4201ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 4202 4203# The possible output files: 4204ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 4205 4206ac_rmfiles= 4207for ac_file in $ac_files 4208do 4209 case $ac_file in 4210 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4211 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 4212 esac 4213done 4214rm -f $ac_rmfiles 4215 4216if { { ac_try="$ac_link_default" 4217case "(($ac_try" in 4218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4219 *) ac_try_echo=$ac_try;; 4220esac 4221eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4222$as_echo "$ac_try_echo"; } >&5 4223 (eval "$ac_link_default") 2>&5 4224 ac_status=$? 4225 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4226 test $ac_status = 0; }; then : 4227 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 4228# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 4229# in a Makefile. We should not override ac_cv_exeext if it was cached, 4230# so that the user can short-circuit this test for compilers unknown to 4231# Autoconf. 4232for ac_file in $ac_files '' 4233do 4234 test -f "$ac_file" || continue 4235 case $ac_file in 4236 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 4237 ;; 4238 [ab].out ) 4239 # We found the default executable, but exeext='' is most 4240 # certainly right. 4241 break;; 4242 *.* ) 4243 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 4244 then :; else 4245 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4246 fi 4247 # We set ac_cv_exeext here because the later test for it is not 4248 # safe: cross compilers may not add the suffix if given an `-o' 4249 # argument, so we may need to know it at that point already. 4250 # Even if this section looks crufty: it has the advantage of 4251 # actually working. 4252 break;; 4253 * ) 4254 break;; 4255 esac 4256done 4257test "$ac_cv_exeext" = no && ac_cv_exeext= 4258 4259else 4260 ac_file='' 4261fi 4262if test -z "$ac_file"; then : 4263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4264$as_echo "no" >&6; } 4265$as_echo "$as_me: failed program was:" >&5 4266sed 's/^/| /' conftest.$ac_ext >&5 4267 4268{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4269$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4270as_fn_error 77 "C compiler cannot create executables 4271See \`config.log' for more details" "$LINENO" 5; } 4272else 4273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4274$as_echo "yes" >&6; } 4275fi 4276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 4277$as_echo_n "checking for C compiler default output file name... " >&6; } 4278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 4279$as_echo "$ac_file" >&6; } 4280ac_exeext=$ac_cv_exeext 4281 4282rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 4283ac_clean_files=$ac_clean_files_save 4284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 4285$as_echo_n "checking for suffix of executables... " >&6; } 4286if { { ac_try="$ac_link" 4287case "(($ac_try" in 4288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4289 *) ac_try_echo=$ac_try;; 4290esac 4291eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4292$as_echo "$ac_try_echo"; } >&5 4293 (eval "$ac_link") 2>&5 4294 ac_status=$? 4295 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4296 test $ac_status = 0; }; then : 4297 # If both `conftest.exe' and `conftest' are `present' (well, observable) 4298# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 4299# work properly (i.e., refer to `conftest.exe'), while it won't with 4300# `rm'. 4301for ac_file in conftest.exe conftest conftest.*; do 4302 test -f "$ac_file" || continue 4303 case $ac_file in 4304 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4305 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4306 break;; 4307 * ) break;; 4308 esac 4309done 4310else 4311 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4312$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4313as_fn_error $? "cannot compute suffix of executables: cannot compile and link 4314See \`config.log' for more details" "$LINENO" 5; } 4315fi 4316rm -f conftest conftest$ac_cv_exeext 4317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 4318$as_echo "$ac_cv_exeext" >&6; } 4319 4320rm -f conftest.$ac_ext 4321EXEEXT=$ac_cv_exeext 4322ac_exeext=$EXEEXT 4323cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4324/* end confdefs.h. */ 4325#include <stdio.h> 4326int 4327main () 4328{ 4329FILE *f = fopen ("conftest.out", "w"); 4330 return ferror (f) || fclose (f) != 0; 4331 4332 ; 4333 return 0; 4334} 4335_ACEOF 4336ac_clean_files="$ac_clean_files conftest.out" 4337# Check that the compiler produces executables we can run. If not, either 4338# the compiler is broken, or we cross compile. 4339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4340$as_echo_n "checking whether we are cross compiling... " >&6; } 4341if test "$cross_compiling" != yes; then 4342 { { ac_try="$ac_link" 4343case "(($ac_try" in 4344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4345 *) ac_try_echo=$ac_try;; 4346esac 4347eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4348$as_echo "$ac_try_echo"; } >&5 4349 (eval "$ac_link") 2>&5 4350 ac_status=$? 4351 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4352 test $ac_status = 0; } 4353 if { ac_try='./conftest$ac_cv_exeext' 4354 { { case "(($ac_try" in 4355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4356 *) ac_try_echo=$ac_try;; 4357esac 4358eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4359$as_echo "$ac_try_echo"; } >&5 4360 (eval "$ac_try") 2>&5 4361 ac_status=$? 4362 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4363 test $ac_status = 0; }; }; then 4364 cross_compiling=no 4365 else 4366 if test "$cross_compiling" = maybe; then 4367 cross_compiling=yes 4368 else 4369 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4370$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4371as_fn_error $? "cannot run C compiled programs. 4372If you meant to cross compile, use \`--host'. 4373See \`config.log' for more details" "$LINENO" 5; } 4374 fi 4375 fi 4376fi 4377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4378$as_echo "$cross_compiling" >&6; } 4379 4380rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 4381ac_clean_files=$ac_clean_files_save 4382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4383$as_echo_n "checking for suffix of object files... " >&6; } 4384if ${ac_cv_objext+:} false; then : 4385 $as_echo_n "(cached) " >&6 4386else 4387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4388/* end confdefs.h. */ 4389 4390int 4391main () 4392{ 4393 4394 ; 4395 return 0; 4396} 4397_ACEOF 4398rm -f conftest.o conftest.obj 4399if { { ac_try="$ac_compile" 4400case "(($ac_try" in 4401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4402 *) ac_try_echo=$ac_try;; 4403esac 4404eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4405$as_echo "$ac_try_echo"; } >&5 4406 (eval "$ac_compile") 2>&5 4407 ac_status=$? 4408 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4409 test $ac_status = 0; }; then : 4410 for ac_file in conftest.o conftest.obj conftest.*; do 4411 test -f "$ac_file" || continue; 4412 case $ac_file in 4413 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4414 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4415 break;; 4416 esac 4417done 4418else 4419 $as_echo "$as_me: failed program was:" >&5 4420sed 's/^/| /' conftest.$ac_ext >&5 4421 4422{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4423$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4424as_fn_error $? "cannot compute suffix of object files: cannot compile 4425See \`config.log' for more details" "$LINENO" 5; } 4426fi 4427rm -f conftest.$ac_cv_objext conftest.$ac_ext 4428fi 4429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4430$as_echo "$ac_cv_objext" >&6; } 4431OBJEXT=$ac_cv_objext 4432ac_objext=$OBJEXT 4433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4434$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4435if ${ac_cv_c_compiler_gnu+:} false; then : 4436 $as_echo_n "(cached) " >&6 4437else 4438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4439/* end confdefs.h. */ 4440 4441int 4442main () 4443{ 4444#ifndef __GNUC__ 4445 choke me 4446#endif 4447 4448 ; 4449 return 0; 4450} 4451_ACEOF 4452if ac_fn_c_try_compile "$LINENO"; then : 4453 ac_compiler_gnu=yes 4454else 4455 ac_compiler_gnu=no 4456fi 4457rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4458ac_cv_c_compiler_gnu=$ac_compiler_gnu 4459 4460fi 4461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4462$as_echo "$ac_cv_c_compiler_gnu" >&6; } 4463if test $ac_compiler_gnu = yes; then 4464 GCC=yes 4465else 4466 GCC= 4467fi 4468ac_test_CFLAGS=${CFLAGS+set} 4469ac_save_CFLAGS=$CFLAGS 4470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4471$as_echo_n "checking whether $CC accepts -g... " >&6; } 4472if ${ac_cv_prog_cc_g+:} false; then : 4473 $as_echo_n "(cached) " >&6 4474else 4475 ac_save_c_werror_flag=$ac_c_werror_flag 4476 ac_c_werror_flag=yes 4477 ac_cv_prog_cc_g=no 4478 CFLAGS="-g" 4479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4480/* end confdefs.h. */ 4481 4482int 4483main () 4484{ 4485 4486 ; 4487 return 0; 4488} 4489_ACEOF 4490if ac_fn_c_try_compile "$LINENO"; then : 4491 ac_cv_prog_cc_g=yes 4492else 4493 CFLAGS="" 4494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4495/* end confdefs.h. */ 4496 4497int 4498main () 4499{ 4500 4501 ; 4502 return 0; 4503} 4504_ACEOF 4505if ac_fn_c_try_compile "$LINENO"; then : 4506 4507else 4508 ac_c_werror_flag=$ac_save_c_werror_flag 4509 CFLAGS="-g" 4510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4511/* end confdefs.h. */ 4512 4513int 4514main () 4515{ 4516 4517 ; 4518 return 0; 4519} 4520_ACEOF 4521if ac_fn_c_try_compile "$LINENO"; then : 4522 ac_cv_prog_cc_g=yes 4523fi 4524rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4525fi 4526rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4527fi 4528rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4529 ac_c_werror_flag=$ac_save_c_werror_flag 4530fi 4531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4532$as_echo "$ac_cv_prog_cc_g" >&6; } 4533if test "$ac_test_CFLAGS" = set; then 4534 CFLAGS=$ac_save_CFLAGS 4535elif test $ac_cv_prog_cc_g = yes; then 4536 if test "$GCC" = yes; then 4537 CFLAGS="-g -O2" 4538 else 4539 CFLAGS="-g" 4540 fi 4541else 4542 if test "$GCC" = yes; then 4543 CFLAGS="-O2" 4544 else 4545 CFLAGS= 4546 fi 4547fi 4548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4549$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4550if ${ac_cv_prog_cc_c89+:} false; then : 4551 $as_echo_n "(cached) " >&6 4552else 4553 ac_cv_prog_cc_c89=no 4554ac_save_CC=$CC 4555cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4556/* end confdefs.h. */ 4557#include <stdarg.h> 4558#include <stdio.h> 4559#include <sys/types.h> 4560#include <sys/stat.h> 4561/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4562struct buf { int x; }; 4563FILE * (*rcsopen) (struct buf *, struct stat *, int); 4564static char *e (p, i) 4565 char **p; 4566 int i; 4567{ 4568 return p[i]; 4569} 4570static char *f (char * (*g) (char **, int), char **p, ...) 4571{ 4572 char *s; 4573 va_list v; 4574 va_start (v,p); 4575 s = g (p, va_arg (v,int)); 4576 va_end (v); 4577 return s; 4578} 4579 4580/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4581 function prototypes and stuff, but not '\xHH' hex character constants. 4582 These don't provoke an error unfortunately, instead are silently treated 4583 as 'x'. The following induces an error, until -std is added to get 4584 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4585 array size at least. It's necessary to write '\x00'==0 to get something 4586 that's true only with -std. */ 4587int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4588 4589/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4590 inside strings and character constants. */ 4591#define FOO(x) 'x' 4592int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4593 4594int test (int i, double x); 4595struct s1 {int (*f) (int a);}; 4596struct s2 {int (*f) (double a);}; 4597int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4598int argc; 4599char **argv; 4600int 4601main () 4602{ 4603return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4604 ; 4605 return 0; 4606} 4607_ACEOF 4608for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4609 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4610do 4611 CC="$ac_save_CC $ac_arg" 4612 if ac_fn_c_try_compile "$LINENO"; then : 4613 ac_cv_prog_cc_c89=$ac_arg 4614fi 4615rm -f core conftest.err conftest.$ac_objext 4616 test "x$ac_cv_prog_cc_c89" != "xno" && break 4617done 4618rm -f conftest.$ac_ext 4619CC=$ac_save_CC 4620 4621fi 4622# AC_CACHE_VAL 4623case "x$ac_cv_prog_cc_c89" in 4624 x) 4625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4626$as_echo "none needed" >&6; } ;; 4627 xno) 4628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4629$as_echo "unsupported" >&6; } ;; 4630 *) 4631 CC="$CC $ac_cv_prog_cc_c89" 4632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4633$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4634esac 4635if test "x$ac_cv_prog_cc_c89" != xno; then : 4636 4637fi 4638 4639ac_ext=c 4640ac_cpp='$CPP $CPPFLAGS' 4641ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4642ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4643ac_compiler_gnu=$ac_cv_c_compiler_gnu 4644 4645depcc="$CC" am_compiler_list= 4646 4647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4648$as_echo_n "checking dependency style of $depcc... " >&6; } 4649if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4650 $as_echo_n "(cached) " >&6 4651else 4652 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4653 # We make a subdir and do the tests there. Otherwise we can end up 4654 # making bogus files that we don't know about and never remove. For 4655 # instance it was reported that on HP-UX the gcc test will end up 4656 # making a dummy file named `D' -- because `-MD' means `put the output 4657 # in D'. 4658 mkdir conftest.dir 4659 # Copy depcomp to subdir because otherwise we won't find it if we're 4660 # using a relative directory. 4661 cp "$am_depcomp" conftest.dir 4662 cd conftest.dir 4663 # We will build objects and dependencies in a subdirectory because 4664 # it helps to detect inapplicable dependency modes. For instance 4665 # both Tru64's cc and ICC support -MD to output dependencies as a 4666 # side effect of compilation, but ICC will put the dependencies in 4667 # the current directory while Tru64 will put them in the object 4668 # directory. 4669 mkdir sub 4670 4671 am_cv_CC_dependencies_compiler_type=none 4672 if test "$am_compiler_list" = ""; then 4673 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4674 fi 4675 am__universal=false 4676 case " $depcc " in #( 4677 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4678 esac 4679 4680 for depmode in $am_compiler_list; do 4681 # Setup a source with many dependencies, because some compilers 4682 # like to wrap large dependency lists on column 80 (with \), and 4683 # we should not choose a depcomp mode which is confused by this. 4684 # 4685 # We need to recreate these files for each test, as the compiler may 4686 # overwrite some of them when testing with obscure command lines. 4687 # This happens at least with the AIX C compiler. 4688 : > sub/conftest.c 4689 for i in 1 2 3 4 5 6; do 4690 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4691 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 4692 # Solaris 8's {/usr,}/bin/sh. 4693 touch sub/conftst$i.h 4694 done 4695 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4696 4697 # We check with `-c' and `-o' for the sake of the "dashmstdout" 4698 # mode. It turns out that the SunPro C++ compiler does not properly 4699 # handle `-M -o', and we need to detect this. Also, some Intel 4700 # versions had trouble with output in subdirs 4701 am__obj=sub/conftest.${OBJEXT-o} 4702 am__minus_obj="-o $am__obj" 4703 case $depmode in 4704 gcc) 4705 # This depmode causes a compiler race in universal mode. 4706 test "$am__universal" = false || continue 4707 ;; 4708 nosideeffect) 4709 # after this tag, mechanisms are not by side-effect, so they'll 4710 # only be used when explicitly requested 4711 if test "x$enable_dependency_tracking" = xyes; then 4712 continue 4713 else 4714 break 4715 fi 4716 ;; 4717 msvisualcpp | msvcmsys) 4718 # This compiler won't grok `-c -o', but also, the minuso test has 4719 # not run yet. These depmodes are late enough in the game, and 4720 # so weak that their functioning should not be impacted. 4721 am__obj=conftest.${OBJEXT-o} 4722 am__minus_obj= 4723 ;; 4724 none) break ;; 4725 esac 4726 if depmode=$depmode \ 4727 source=sub/conftest.c object=$am__obj \ 4728 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4729 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4730 >/dev/null 2>conftest.err && 4731 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4732 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4733 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4734 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4735 # icc doesn't choke on unknown options, it will just issue warnings 4736 # or remarks (even with -Werror). So we grep stderr for any message 4737 # that says an option was ignored or not supported. 4738 # When given -MP, icc 7.0 and 7.1 complain thusly: 4739 # icc: Command line warning: ignoring option '-M'; no argument required 4740 # The diagnosis changed in icc 8.0: 4741 # icc: Command line remark: option '-MP' not supported 4742 if (grep 'ignoring option' conftest.err || 4743 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4744 am_cv_CC_dependencies_compiler_type=$depmode 4745 break 4746 fi 4747 fi 4748 done 4749 4750 cd .. 4751 rm -rf conftest.dir 4752else 4753 am_cv_CC_dependencies_compiler_type=none 4754fi 4755 4756fi 4757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4758$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4759CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4760 4761 if 4762 test "x$enable_dependency_tracking" != xno \ 4763 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4764 am__fastdepCC_TRUE= 4765 am__fastdepCC_FALSE='#' 4766else 4767 am__fastdepCC_TRUE='#' 4768 am__fastdepCC_FALSE= 4769fi 4770 4771 4772 4773ac_ext=c 4774ac_cpp='$CPP $CPPFLAGS' 4775ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4776ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4777ac_compiler_gnu=$ac_cv_c_compiler_gnu 4778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4779$as_echo_n "checking how to run the C preprocessor... " >&6; } 4780# On Suns, sometimes $CPP names a directory. 4781if test -n "$CPP" && test -d "$CPP"; then 4782 CPP= 4783fi 4784if test -z "$CPP"; then 4785 if ${ac_cv_prog_CPP+:} false; then : 4786 $as_echo_n "(cached) " >&6 4787else 4788 # Double quotes because CPP needs to be expanded 4789 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4790 do 4791 ac_preproc_ok=false 4792for ac_c_preproc_warn_flag in '' yes 4793do 4794 # Use a header file that comes with gcc, so configuring glibc 4795 # with a fresh cross-compiler works. 4796 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4797 # <limits.h> exists even on freestanding compilers. 4798 # On the NeXT, cc -E runs the code through the compiler's parser, 4799 # not just through cpp. "Syntax error" is here to catch this case. 4800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4801/* end confdefs.h. */ 4802#ifdef __STDC__ 4803# include <limits.h> 4804#else 4805# include <assert.h> 4806#endif 4807 Syntax error 4808_ACEOF 4809if ac_fn_c_try_cpp "$LINENO"; then : 4810 4811else 4812 # Broken: fails on valid input. 4813continue 4814fi 4815rm -f conftest.err conftest.i conftest.$ac_ext 4816 4817 # OK, works on sane cases. Now check whether nonexistent headers 4818 # can be detected and how. 4819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4820/* end confdefs.h. */ 4821#include <ac_nonexistent.h> 4822_ACEOF 4823if ac_fn_c_try_cpp "$LINENO"; then : 4824 # Broken: success on invalid input. 4825continue 4826else 4827 # Passes both tests. 4828ac_preproc_ok=: 4829break 4830fi 4831rm -f conftest.err conftest.i conftest.$ac_ext 4832 4833done 4834# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4835rm -f conftest.i conftest.err conftest.$ac_ext 4836if $ac_preproc_ok; then : 4837 break 4838fi 4839 4840 done 4841 ac_cv_prog_CPP=$CPP 4842 4843fi 4844 CPP=$ac_cv_prog_CPP 4845else 4846 ac_cv_prog_CPP=$CPP 4847fi 4848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4849$as_echo "$CPP" >&6; } 4850ac_preproc_ok=false 4851for ac_c_preproc_warn_flag in '' yes 4852do 4853 # Use a header file that comes with gcc, so configuring glibc 4854 # with a fresh cross-compiler works. 4855 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4856 # <limits.h> exists even on freestanding compilers. 4857 # On the NeXT, cc -E runs the code through the compiler's parser, 4858 # not just through cpp. "Syntax error" is here to catch this case. 4859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4860/* end confdefs.h. */ 4861#ifdef __STDC__ 4862# include <limits.h> 4863#else 4864# include <assert.h> 4865#endif 4866 Syntax error 4867_ACEOF 4868if ac_fn_c_try_cpp "$LINENO"; then : 4869 4870else 4871 # Broken: fails on valid input. 4872continue 4873fi 4874rm -f conftest.err conftest.i conftest.$ac_ext 4875 4876 # OK, works on sane cases. Now check whether nonexistent headers 4877 # can be detected and how. 4878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4879/* end confdefs.h. */ 4880#include <ac_nonexistent.h> 4881_ACEOF 4882if ac_fn_c_try_cpp "$LINENO"; then : 4883 # Broken: success on invalid input. 4884continue 4885else 4886 # Passes both tests. 4887ac_preproc_ok=: 4888break 4889fi 4890rm -f conftest.err conftest.i conftest.$ac_ext 4891 4892done 4893# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4894rm -f conftest.i conftest.err conftest.$ac_ext 4895if $ac_preproc_ok; then : 4896 4897else 4898 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4899$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4900as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4901See \`config.log' for more details" "$LINENO" 5; } 4902fi 4903 4904ac_ext=c 4905ac_cpp='$CPP $CPPFLAGS' 4906ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4907ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4908ac_compiler_gnu=$ac_cv_c_compiler_gnu 4909 4910 4911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4912$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4913if ${ac_cv_path_GREP+:} false; then : 4914 $as_echo_n "(cached) " >&6 4915else 4916 if test -z "$GREP"; then 4917 ac_path_GREP_found=false 4918 # Loop through the user's path and test for each of PROGNAME-LIST 4919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4920for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4921do 4922 IFS=$as_save_IFS 4923 test -z "$as_dir" && as_dir=. 4924 for ac_prog in grep ggrep; do 4925 for ac_exec_ext in '' $ac_executable_extensions; do 4926 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4927 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4928# Check for GNU ac_path_GREP and select it if it is found. 4929 # Check for GNU $ac_path_GREP 4930case `"$ac_path_GREP" --version 2>&1` in 4931*GNU*) 4932 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4933*) 4934 ac_count=0 4935 $as_echo_n 0123456789 >"conftest.in" 4936 while : 4937 do 4938 cat "conftest.in" "conftest.in" >"conftest.tmp" 4939 mv "conftest.tmp" "conftest.in" 4940 cp "conftest.in" "conftest.nl" 4941 $as_echo 'GREP' >> "conftest.nl" 4942 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4943 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4944 as_fn_arith $ac_count + 1 && ac_count=$as_val 4945 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4946 # Best one so far, save it but keep looking for a better one 4947 ac_cv_path_GREP="$ac_path_GREP" 4948 ac_path_GREP_max=$ac_count 4949 fi 4950 # 10*(2^10) chars as input seems more than enough 4951 test $ac_count -gt 10 && break 4952 done 4953 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4954esac 4955 4956 $ac_path_GREP_found && break 3 4957 done 4958 done 4959 done 4960IFS=$as_save_IFS 4961 if test -z "$ac_cv_path_GREP"; then 4962 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4963 fi 4964else 4965 ac_cv_path_GREP=$GREP 4966fi 4967 4968fi 4969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4970$as_echo "$ac_cv_path_GREP" >&6; } 4971 GREP="$ac_cv_path_GREP" 4972 4973 4974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4975$as_echo_n "checking for egrep... " >&6; } 4976if ${ac_cv_path_EGREP+:} false; then : 4977 $as_echo_n "(cached) " >&6 4978else 4979 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4980 then ac_cv_path_EGREP="$GREP -E" 4981 else 4982 if test -z "$EGREP"; then 4983 ac_path_EGREP_found=false 4984 # Loop through the user's path and test for each of PROGNAME-LIST 4985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4986for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4987do 4988 IFS=$as_save_IFS 4989 test -z "$as_dir" && as_dir=. 4990 for ac_prog in egrep; do 4991 for ac_exec_ext in '' $ac_executable_extensions; do 4992 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4993 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4994# Check for GNU ac_path_EGREP and select it if it is found. 4995 # Check for GNU $ac_path_EGREP 4996case `"$ac_path_EGREP" --version 2>&1` in 4997*GNU*) 4998 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4999*) 5000 ac_count=0 5001 $as_echo_n 0123456789 >"conftest.in" 5002 while : 5003 do 5004 cat "conftest.in" "conftest.in" >"conftest.tmp" 5005 mv "conftest.tmp" "conftest.in" 5006 cp "conftest.in" "conftest.nl" 5007 $as_echo 'EGREP' >> "conftest.nl" 5008 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5009 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5010 as_fn_arith $ac_count + 1 && ac_count=$as_val 5011 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 5012 # Best one so far, save it but keep looking for a better one 5013 ac_cv_path_EGREP="$ac_path_EGREP" 5014 ac_path_EGREP_max=$ac_count 5015 fi 5016 # 10*(2^10) chars as input seems more than enough 5017 test $ac_count -gt 10 && break 5018 done 5019 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5020esac 5021 5022 $ac_path_EGREP_found && break 3 5023 done 5024 done 5025 done 5026IFS=$as_save_IFS 5027 if test -z "$ac_cv_path_EGREP"; then 5028 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5029 fi 5030else 5031 ac_cv_path_EGREP=$EGREP 5032fi 5033 5034 fi 5035fi 5036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 5037$as_echo "$ac_cv_path_EGREP" >&6; } 5038 EGREP="$ac_cv_path_EGREP" 5039 5040 5041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 5042$as_echo_n "checking for ANSI C header files... " >&6; } 5043if ${ac_cv_header_stdc+:} false; then : 5044 $as_echo_n "(cached) " >&6 5045else 5046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5047/* end confdefs.h. */ 5048#include <stdlib.h> 5049#include <stdarg.h> 5050#include <string.h> 5051#include <float.h> 5052 5053int 5054main () 5055{ 5056 5057 ; 5058 return 0; 5059} 5060_ACEOF 5061if ac_fn_c_try_compile "$LINENO"; then : 5062 ac_cv_header_stdc=yes 5063else 5064 ac_cv_header_stdc=no 5065fi 5066rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5067 5068if test $ac_cv_header_stdc = yes; then 5069 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 5070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5071/* end confdefs.h. */ 5072#include <string.h> 5073 5074_ACEOF 5075if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5076 $EGREP "memchr" >/dev/null 2>&1; then : 5077 5078else 5079 ac_cv_header_stdc=no 5080fi 5081rm -f conftest* 5082 5083fi 5084 5085if test $ac_cv_header_stdc = yes; then 5086 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 5087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5088/* end confdefs.h. */ 5089#include <stdlib.h> 5090 5091_ACEOF 5092if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5093 $EGREP "free" >/dev/null 2>&1; then : 5094 5095else 5096 ac_cv_header_stdc=no 5097fi 5098rm -f conftest* 5099 5100fi 5101 5102if test $ac_cv_header_stdc = yes; then 5103 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 5104 if test "$cross_compiling" = yes; then : 5105 : 5106else 5107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5108/* end confdefs.h. */ 5109#include <ctype.h> 5110#include <stdlib.h> 5111#if ((' ' & 0x0FF) == 0x020) 5112# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 5113# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 5114#else 5115# define ISLOWER(c) \ 5116 (('a' <= (c) && (c) <= 'i') \ 5117 || ('j' <= (c) && (c) <= 'r') \ 5118 || ('s' <= (c) && (c) <= 'z')) 5119# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 5120#endif 5121 5122#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 5123int 5124main () 5125{ 5126 int i; 5127 for (i = 0; i < 256; i++) 5128 if (XOR (islower (i), ISLOWER (i)) 5129 || toupper (i) != TOUPPER (i)) 5130 return 2; 5131 return 0; 5132} 5133_ACEOF 5134if ac_fn_c_try_run "$LINENO"; then : 5135 5136else 5137 ac_cv_header_stdc=no 5138fi 5139rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 5140 conftest.$ac_objext conftest.beam conftest.$ac_ext 5141fi 5142 5143fi 5144fi 5145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 5146$as_echo "$ac_cv_header_stdc" >&6; } 5147if test $ac_cv_header_stdc = yes; then 5148 5149$as_echo "#define STDC_HEADERS 1" >>confdefs.h 5150 5151fi 5152 5153# On IRIX 5.3, sys/types and inttypes.h are conflicting. 5154for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 5155 inttypes.h stdint.h unistd.h 5156do : 5157 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 5158ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 5159" 5160if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 5161 cat >>confdefs.h <<_ACEOF 5162#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 5163_ACEOF 5164 5165fi 5166 5167done 5168 5169 5170 5171 5172 5173 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 5174if test "x$ac_cv_header_minix_config_h" = xyes; then : 5175 MINIX=yes 5176else 5177 MINIX= 5178fi 5179 5180 5181 if test "$MINIX" = yes; then 5182 5183$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 5184 5185 5186$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 5187 5188 5189$as_echo "#define _MINIX 1" >>confdefs.h 5190 5191 fi 5192 5193 case "$host_os" in 5194 hpux*) 5195 5196$as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h 5197 5198 ;; 5199 esac 5200 5201 5202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 5203$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 5204if ${ac_cv_safe_to_define___extensions__+:} false; then : 5205 $as_echo_n "(cached) " >&6 5206else 5207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5208/* end confdefs.h. */ 5209 5210# define __EXTENSIONS__ 1 5211 $ac_includes_default 5212int 5213main () 5214{ 5215 5216 ; 5217 return 0; 5218} 5219_ACEOF 5220if ac_fn_c_try_compile "$LINENO"; then : 5221 ac_cv_safe_to_define___extensions__=yes 5222else 5223 ac_cv_safe_to_define___extensions__=no 5224fi 5225rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5226fi 5227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 5228$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 5229 test $ac_cv_safe_to_define___extensions__ = yes && 5230 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 5231 5232 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 5233 5234 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 5235 5236 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 5237 5238 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 5239 5240 5241if test "x$CC" != xcc; then 5242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5 5243$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; } 5244else 5245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5 5246$as_echo_n "checking whether cc understands -c and -o together... " >&6; } 5247fi 5248set dummy $CC; ac_cc=`$as_echo "$2" | 5249 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` 5250if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then : 5251 $as_echo_n "(cached) " >&6 5252else 5253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5254/* end confdefs.h. */ 5255 5256int 5257main () 5258{ 5259 5260 ; 5261 return 0; 5262} 5263_ACEOF 5264# Make sure it works both with $CC and with simple cc. 5265# We do the test twice because some compilers refuse to overwrite an 5266# existing .o file with -o, though they will create one. 5267ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5' 5268rm -f conftest2.* 5269if { { case "(($ac_try" in 5270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5271 *) ac_try_echo=$ac_try;; 5272esac 5273eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5274$as_echo "$ac_try_echo"; } >&5 5275 (eval "$ac_try") 2>&5 5276 ac_status=$? 5277 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5278 test $ac_status = 0; } && 5279 test -f conftest2.$ac_objext && { { case "(($ac_try" in 5280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5281 *) ac_try_echo=$ac_try;; 5282esac 5283eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5284$as_echo "$ac_try_echo"; } >&5 5285 (eval "$ac_try") 2>&5 5286 ac_status=$? 5287 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5288 test $ac_status = 0; }; 5289then 5290 eval ac_cv_prog_cc_${ac_cc}_c_o=yes 5291 if test "x$CC" != xcc; then 5292 # Test first that cc exists at all. 5293 if { ac_try='cc -c conftest.$ac_ext >&5' 5294 { { case "(($ac_try" in 5295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5296 *) ac_try_echo=$ac_try;; 5297esac 5298eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5299$as_echo "$ac_try_echo"; } >&5 5300 (eval "$ac_try") 2>&5 5301 ac_status=$? 5302 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5303 test $ac_status = 0; }; }; then 5304 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5' 5305 rm -f conftest2.* 5306 if { { case "(($ac_try" in 5307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5308 *) ac_try_echo=$ac_try;; 5309esac 5310eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5311$as_echo "$ac_try_echo"; } >&5 5312 (eval "$ac_try") 2>&5 5313 ac_status=$? 5314 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5315 test $ac_status = 0; } && 5316 test -f conftest2.$ac_objext && { { case "(($ac_try" in 5317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5318 *) ac_try_echo=$ac_try;; 5319esac 5320eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5321$as_echo "$ac_try_echo"; } >&5 5322 (eval "$ac_try") 2>&5 5323 ac_status=$? 5324 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5325 test $ac_status = 0; }; 5326 then 5327 # cc works too. 5328 : 5329 else 5330 # cc exists but doesn't like -o. 5331 eval ac_cv_prog_cc_${ac_cc}_c_o=no 5332 fi 5333 fi 5334 fi 5335else 5336 eval ac_cv_prog_cc_${ac_cc}_c_o=no 5337fi 5338rm -f core conftest* 5339 5340fi 5341if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then 5342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5343$as_echo "yes" >&6; } 5344else 5345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5346$as_echo "no" >&6; } 5347 5348$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h 5349 5350fi 5351 5352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 5353$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 5354if ${ac_cv_prog_cc_c89+:} false; then : 5355 $as_echo_n "(cached) " >&6 5356else 5357 ac_cv_prog_cc_c89=no 5358ac_save_CC=$CC 5359cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5360/* end confdefs.h. */ 5361#include <stdarg.h> 5362#include <stdio.h> 5363#include <sys/types.h> 5364#include <sys/stat.h> 5365/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 5366struct buf { int x; }; 5367FILE * (*rcsopen) (struct buf *, struct stat *, int); 5368static char *e (p, i) 5369 char **p; 5370 int i; 5371{ 5372 return p[i]; 5373} 5374static char *f (char * (*g) (char **, int), char **p, ...) 5375{ 5376 char *s; 5377 va_list v; 5378 va_start (v,p); 5379 s = g (p, va_arg (v,int)); 5380 va_end (v); 5381 return s; 5382} 5383 5384/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 5385 function prototypes and stuff, but not '\xHH' hex character constants. 5386 These don't provoke an error unfortunately, instead are silently treated 5387 as 'x'. The following induces an error, until -std is added to get 5388 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 5389 array size at least. It's necessary to write '\x00'==0 to get something 5390 that's true only with -std. */ 5391int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 5392 5393/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 5394 inside strings and character constants. */ 5395#define FOO(x) 'x' 5396int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 5397 5398int test (int i, double x); 5399struct s1 {int (*f) (int a);}; 5400struct s2 {int (*f) (double a);}; 5401int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 5402int argc; 5403char **argv; 5404int 5405main () 5406{ 5407return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 5408 ; 5409 return 0; 5410} 5411_ACEOF 5412for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 5413 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 5414do 5415 CC="$ac_save_CC $ac_arg" 5416 if ac_fn_c_try_compile "$LINENO"; then : 5417 ac_cv_prog_cc_c89=$ac_arg 5418fi 5419rm -f core conftest.err conftest.$ac_objext 5420 test "x$ac_cv_prog_cc_c89" != "xno" && break 5421done 5422rm -f conftest.$ac_ext 5423CC=$ac_save_CC 5424 5425fi 5426# AC_CACHE_VAL 5427case "x$ac_cv_prog_cc_c89" in 5428 x) 5429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5430$as_echo "none needed" >&6; } ;; 5431 xno) 5432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5433$as_echo "unsupported" >&6; } ;; 5434 *) 5435 CC="$CC $ac_cv_prog_cc_c89" 5436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 5437$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 5438esac 5439if test "x$ac_cv_prog_cc_c89" != xno; then : 5440 5441fi 5442 5443 5444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 5445$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 5446if ${ac_cv_prog_cc_c99+:} false; then : 5447 $as_echo_n "(cached) " >&6 5448else 5449 ac_cv_prog_cc_c99=no 5450ac_save_CC=$CC 5451cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5452/* end confdefs.h. */ 5453#include <stdarg.h> 5454#include <stdbool.h> 5455#include <stdlib.h> 5456#include <wchar.h> 5457#include <stdio.h> 5458 5459// Check varargs macros. These examples are taken from C99 6.10.3.5. 5460#define debug(...) fprintf (stderr, __VA_ARGS__) 5461#define showlist(...) puts (#__VA_ARGS__) 5462#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 5463static void 5464test_varargs_macros (void) 5465{ 5466 int x = 1234; 5467 int y = 5678; 5468 debug ("Flag"); 5469 debug ("X = %d\n", x); 5470 showlist (The first, second, and third items.); 5471 report (x>y, "x is %d but y is %d", x, y); 5472} 5473 5474// Check long long types. 5475#define BIG64 18446744073709551615ull 5476#define BIG32 4294967295ul 5477#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 5478#if !BIG_OK 5479 your preprocessor is broken; 5480#endif 5481#if BIG_OK 5482#else 5483 your preprocessor is broken; 5484#endif 5485static long long int bignum = -9223372036854775807LL; 5486static unsigned long long int ubignum = BIG64; 5487 5488struct incomplete_array 5489{ 5490 int datasize; 5491 double data[]; 5492}; 5493 5494struct named_init { 5495 int number; 5496 const wchar_t *name; 5497 double average; 5498}; 5499 5500typedef const char *ccp; 5501 5502static inline int 5503test_restrict (ccp restrict text) 5504{ 5505 // See if C++-style comments work. 5506 // Iterate through items via the restricted pointer. 5507 // Also check for declarations in for loops. 5508 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 5509 continue; 5510 return 0; 5511} 5512 5513// Check varargs and va_copy. 5514static void 5515test_varargs (const char *format, ...) 5516{ 5517 va_list args; 5518 va_start (args, format); 5519 va_list args_copy; 5520 va_copy (args_copy, args); 5521 5522 const char *str; 5523 int number; 5524 float fnumber; 5525 5526 while (*format) 5527 { 5528 switch (*format++) 5529 { 5530 case 's': // string 5531 str = va_arg (args_copy, const char *); 5532 break; 5533 case 'd': // int 5534 number = va_arg (args_copy, int); 5535 break; 5536 case 'f': // float 5537 fnumber = va_arg (args_copy, double); 5538 break; 5539 default: 5540 break; 5541 } 5542 } 5543 va_end (args_copy); 5544 va_end (args); 5545} 5546 5547int 5548main () 5549{ 5550 5551 // Check bool. 5552 _Bool success = false; 5553 5554 // Check restrict. 5555 if (test_restrict ("String literal") == 0) 5556 success = true; 5557 char *restrict newvar = "Another string"; 5558 5559 // Check varargs. 5560 test_varargs ("s, d' f .", "string", 65, 34.234); 5561 test_varargs_macros (); 5562 5563 // Check flexible array members. 5564 struct incomplete_array *ia = 5565 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 5566 ia->datasize = 10; 5567 for (int i = 0; i < ia->datasize; ++i) 5568 ia->data[i] = i * 1.234; 5569 5570 // Check named initializers. 5571 struct named_init ni = { 5572 .number = 34, 5573 .name = L"Test wide string", 5574 .average = 543.34343, 5575 }; 5576 5577 ni.number = 58; 5578 5579 int dynamic_array[ni.number]; 5580 dynamic_array[ni.number - 1] = 543; 5581 5582 // work around unused variable warnings 5583 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 5584 || dynamic_array[ni.number - 1] != 543); 5585 5586 ; 5587 return 0; 5588} 5589_ACEOF 5590for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99 5591do 5592 CC="$ac_save_CC $ac_arg" 5593 if ac_fn_c_try_compile "$LINENO"; then : 5594 ac_cv_prog_cc_c99=$ac_arg 5595fi 5596rm -f core conftest.err conftest.$ac_objext 5597 test "x$ac_cv_prog_cc_c99" != "xno" && break 5598done 5599rm -f conftest.$ac_ext 5600CC=$ac_save_CC 5601 5602fi 5603# AC_CACHE_VAL 5604case "x$ac_cv_prog_cc_c99" in 5605 x) 5606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5607$as_echo "none needed" >&6; } ;; 5608 xno) 5609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5610$as_echo "unsupported" >&6; } ;; 5611 *) 5612 CC="$CC $ac_cv_prog_cc_c99" 5613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 5614$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 5615esac 5616if test "x$ac_cv_prog_cc_c99" != xno; then : 5617 5618fi 5619 5620 5621 5622 5623 5624 5625ac_ext=c 5626ac_cpp='$CPP $CPPFLAGS' 5627ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5628ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5629ac_compiler_gnu=$ac_cv_c_compiler_gnu 5630if test -n "$ac_tool_prefix"; then 5631 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 5632set dummy ${ac_tool_prefix}gcc; ac_word=$2 5633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5634$as_echo_n "checking for $ac_word... " >&6; } 5635if ${ac_cv_prog_CC+:} false; then : 5636 $as_echo_n "(cached) " >&6 5637else 5638 if test -n "$CC"; then 5639 ac_cv_prog_CC="$CC" # Let the user override the test. 5640else 5641as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5642for as_dir in $PATH 5643do 5644 IFS=$as_save_IFS 5645 test -z "$as_dir" && as_dir=. 5646 for ac_exec_ext in '' $ac_executable_extensions; do 5647 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5648 ac_cv_prog_CC="${ac_tool_prefix}gcc" 5649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5650 break 2 5651 fi 5652done 5653 done 5654IFS=$as_save_IFS 5655 5656fi 5657fi 5658CC=$ac_cv_prog_CC 5659if test -n "$CC"; then 5660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5661$as_echo "$CC" >&6; } 5662else 5663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5664$as_echo "no" >&6; } 5665fi 5666 5667 5668fi 5669if test -z "$ac_cv_prog_CC"; then 5670 ac_ct_CC=$CC 5671 # Extract the first word of "gcc", so it can be a program name with args. 5672set dummy gcc; ac_word=$2 5673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5674$as_echo_n "checking for $ac_word... " >&6; } 5675if ${ac_cv_prog_ac_ct_CC+:} false; then : 5676 $as_echo_n "(cached) " >&6 5677else 5678 if test -n "$ac_ct_CC"; then 5679 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 5680else 5681as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5682for as_dir in $PATH 5683do 5684 IFS=$as_save_IFS 5685 test -z "$as_dir" && as_dir=. 5686 for ac_exec_ext in '' $ac_executable_extensions; do 5687 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5688 ac_cv_prog_ac_ct_CC="gcc" 5689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5690 break 2 5691 fi 5692done 5693 done 5694IFS=$as_save_IFS 5695 5696fi 5697fi 5698ac_ct_CC=$ac_cv_prog_ac_ct_CC 5699if test -n "$ac_ct_CC"; then 5700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 5701$as_echo "$ac_ct_CC" >&6; } 5702else 5703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5704$as_echo "no" >&6; } 5705fi 5706 5707 if test "x$ac_ct_CC" = x; then 5708 CC="" 5709 else 5710 case $cross_compiling:$ac_tool_warned in 5711yes:) 5712{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5713$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5714ac_tool_warned=yes ;; 5715esac 5716 CC=$ac_ct_CC 5717 fi 5718else 5719 CC="$ac_cv_prog_CC" 5720fi 5721 5722if test -z "$CC"; then 5723 if test -n "$ac_tool_prefix"; then 5724 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 5725set dummy ${ac_tool_prefix}cc; ac_word=$2 5726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5727$as_echo_n "checking for $ac_word... " >&6; } 5728if ${ac_cv_prog_CC+:} false; then : 5729 $as_echo_n "(cached) " >&6 5730else 5731 if test -n "$CC"; then 5732 ac_cv_prog_CC="$CC" # Let the user override the test. 5733else 5734as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5735for as_dir in $PATH 5736do 5737 IFS=$as_save_IFS 5738 test -z "$as_dir" && as_dir=. 5739 for ac_exec_ext in '' $ac_executable_extensions; do 5740 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5741 ac_cv_prog_CC="${ac_tool_prefix}cc" 5742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5743 break 2 5744 fi 5745done 5746 done 5747IFS=$as_save_IFS 5748 5749fi 5750fi 5751CC=$ac_cv_prog_CC 5752if test -n "$CC"; then 5753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5754$as_echo "$CC" >&6; } 5755else 5756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5757$as_echo "no" >&6; } 5758fi 5759 5760 5761 fi 5762fi 5763if test -z "$CC"; then 5764 # Extract the first word of "cc", so it can be a program name with args. 5765set dummy cc; ac_word=$2 5766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5767$as_echo_n "checking for $ac_word... " >&6; } 5768if ${ac_cv_prog_CC+:} false; then : 5769 $as_echo_n "(cached) " >&6 5770else 5771 if test -n "$CC"; then 5772 ac_cv_prog_CC="$CC" # Let the user override the test. 5773else 5774 ac_prog_rejected=no 5775as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5776for as_dir in $PATH 5777do 5778 IFS=$as_save_IFS 5779 test -z "$as_dir" && as_dir=. 5780 for ac_exec_ext in '' $ac_executable_extensions; do 5781 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5782 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 5783 ac_prog_rejected=yes 5784 continue 5785 fi 5786 ac_cv_prog_CC="cc" 5787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5788 break 2 5789 fi 5790done 5791 done 5792IFS=$as_save_IFS 5793 5794if test $ac_prog_rejected = yes; then 5795 # We found a bogon in the path, so make sure we never use it. 5796 set dummy $ac_cv_prog_CC 5797 shift 5798 if test $# != 0; then 5799 # We chose a different compiler from the bogus one. 5800 # However, it has the same basename, so the bogon will be chosen 5801 # first if we set CC to just the basename; use the full file name. 5802 shift 5803 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 5804 fi 5805fi 5806fi 5807fi 5808CC=$ac_cv_prog_CC 5809if test -n "$CC"; then 5810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5811$as_echo "$CC" >&6; } 5812else 5813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5814$as_echo "no" >&6; } 5815fi 5816 5817 5818fi 5819if test -z "$CC"; then 5820 if test -n "$ac_tool_prefix"; then 5821 for ac_prog in cl.exe 5822 do 5823 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5824set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5826$as_echo_n "checking for $ac_word... " >&6; } 5827if ${ac_cv_prog_CC+:} false; then : 5828 $as_echo_n "(cached) " >&6 5829else 5830 if test -n "$CC"; then 5831 ac_cv_prog_CC="$CC" # Let the user override the test. 5832else 5833as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5834for as_dir in $PATH 5835do 5836 IFS=$as_save_IFS 5837 test -z "$as_dir" && as_dir=. 5838 for ac_exec_ext in '' $ac_executable_extensions; do 5839 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5840 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 5841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5842 break 2 5843 fi 5844done 5845 done 5846IFS=$as_save_IFS 5847 5848fi 5849fi 5850CC=$ac_cv_prog_CC 5851if test -n "$CC"; then 5852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5853$as_echo "$CC" >&6; } 5854else 5855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5856$as_echo "no" >&6; } 5857fi 5858 5859 5860 test -n "$CC" && break 5861 done 5862fi 5863if test -z "$CC"; then 5864 ac_ct_CC=$CC 5865 for ac_prog in cl.exe 5866do 5867 # Extract the first word of "$ac_prog", so it can be a program name with args. 5868set dummy $ac_prog; ac_word=$2 5869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5870$as_echo_n "checking for $ac_word... " >&6; } 5871if ${ac_cv_prog_ac_ct_CC+:} false; then : 5872 $as_echo_n "(cached) " >&6 5873else 5874 if test -n "$ac_ct_CC"; then 5875 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 5876else 5877as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5878for as_dir in $PATH 5879do 5880 IFS=$as_save_IFS 5881 test -z "$as_dir" && as_dir=. 5882 for ac_exec_ext in '' $ac_executable_extensions; do 5883 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5884 ac_cv_prog_ac_ct_CC="$ac_prog" 5885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5886 break 2 5887 fi 5888done 5889 done 5890IFS=$as_save_IFS 5891 5892fi 5893fi 5894ac_ct_CC=$ac_cv_prog_ac_ct_CC 5895if test -n "$ac_ct_CC"; then 5896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 5897$as_echo "$ac_ct_CC" >&6; } 5898else 5899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5900$as_echo "no" >&6; } 5901fi 5902 5903 5904 test -n "$ac_ct_CC" && break 5905done 5906 5907 if test "x$ac_ct_CC" = x; then 5908 CC="" 5909 else 5910 case $cross_compiling:$ac_tool_warned in 5911yes:) 5912{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5913$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5914ac_tool_warned=yes ;; 5915esac 5916 CC=$ac_ct_CC 5917 fi 5918fi 5919 5920fi 5921 5922 5923test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5924$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5925as_fn_error $? "no acceptable C compiler found in \$PATH 5926See \`config.log' for more details" "$LINENO" 5; } 5927 5928# Provide some information about the compiler. 5929$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 5930set X $ac_compile 5931ac_compiler=$2 5932for ac_option in --version -v -V -qversion; do 5933 { { ac_try="$ac_compiler $ac_option >&5" 5934case "(($ac_try" in 5935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5936 *) ac_try_echo=$ac_try;; 5937esac 5938eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5939$as_echo "$ac_try_echo"; } >&5 5940 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 5941 ac_status=$? 5942 if test -s conftest.err; then 5943 sed '10a\ 5944... rest of stderr output deleted ... 5945 10q' conftest.err >conftest.er1 5946 cat conftest.er1 >&5 5947 fi 5948 rm -f conftest.er1 conftest.err 5949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5950 test $ac_status = 0; } 5951done 5952 5953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 5954$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 5955if ${ac_cv_c_compiler_gnu+:} false; then : 5956 $as_echo_n "(cached) " >&6 5957else 5958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5959/* end confdefs.h. */ 5960 5961int 5962main () 5963{ 5964#ifndef __GNUC__ 5965 choke me 5966#endif 5967 5968 ; 5969 return 0; 5970} 5971_ACEOF 5972if ac_fn_c_try_compile "$LINENO"; then : 5973 ac_compiler_gnu=yes 5974else 5975 ac_compiler_gnu=no 5976fi 5977rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5978ac_cv_c_compiler_gnu=$ac_compiler_gnu 5979 5980fi 5981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 5982$as_echo "$ac_cv_c_compiler_gnu" >&6; } 5983if test $ac_compiler_gnu = yes; then 5984 GCC=yes 5985else 5986 GCC= 5987fi 5988ac_test_CFLAGS=${CFLAGS+set} 5989ac_save_CFLAGS=$CFLAGS 5990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 5991$as_echo_n "checking whether $CC accepts -g... " >&6; } 5992if ${ac_cv_prog_cc_g+:} false; then : 5993 $as_echo_n "(cached) " >&6 5994else 5995 ac_save_c_werror_flag=$ac_c_werror_flag 5996 ac_c_werror_flag=yes 5997 ac_cv_prog_cc_g=no 5998 CFLAGS="-g" 5999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6000/* end confdefs.h. */ 6001 6002int 6003main () 6004{ 6005 6006 ; 6007 return 0; 6008} 6009_ACEOF 6010if ac_fn_c_try_compile "$LINENO"; then : 6011 ac_cv_prog_cc_g=yes 6012else 6013 CFLAGS="" 6014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6015/* end confdefs.h. */ 6016 6017int 6018main () 6019{ 6020 6021 ; 6022 return 0; 6023} 6024_ACEOF 6025if ac_fn_c_try_compile "$LINENO"; then : 6026 6027else 6028 ac_c_werror_flag=$ac_save_c_werror_flag 6029 CFLAGS="-g" 6030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6031/* end confdefs.h. */ 6032 6033int 6034main () 6035{ 6036 6037 ; 6038 return 0; 6039} 6040_ACEOF 6041if ac_fn_c_try_compile "$LINENO"; then : 6042 ac_cv_prog_cc_g=yes 6043fi 6044rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6045fi 6046rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6047fi 6048rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6049 ac_c_werror_flag=$ac_save_c_werror_flag 6050fi 6051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 6052$as_echo "$ac_cv_prog_cc_g" >&6; } 6053if test "$ac_test_CFLAGS" = set; then 6054 CFLAGS=$ac_save_CFLAGS 6055elif test $ac_cv_prog_cc_g = yes; then 6056 if test "$GCC" = yes; then 6057 CFLAGS="-g -O2" 6058 else 6059 CFLAGS="-g" 6060 fi 6061else 6062 if test "$GCC" = yes; then 6063 CFLAGS="-O2" 6064 else 6065 CFLAGS= 6066 fi 6067fi 6068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 6069$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 6070if ${ac_cv_prog_cc_c89+:} false; then : 6071 $as_echo_n "(cached) " >&6 6072else 6073 ac_cv_prog_cc_c89=no 6074ac_save_CC=$CC 6075cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6076/* end confdefs.h. */ 6077#include <stdarg.h> 6078#include <stdio.h> 6079#include <sys/types.h> 6080#include <sys/stat.h> 6081/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 6082struct buf { int x; }; 6083FILE * (*rcsopen) (struct buf *, struct stat *, int); 6084static char *e (p, i) 6085 char **p; 6086 int i; 6087{ 6088 return p[i]; 6089} 6090static char *f (char * (*g) (char **, int), char **p, ...) 6091{ 6092 char *s; 6093 va_list v; 6094 va_start (v,p); 6095 s = g (p, va_arg (v,int)); 6096 va_end (v); 6097 return s; 6098} 6099 6100/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 6101 function prototypes and stuff, but not '\xHH' hex character constants. 6102 These don't provoke an error unfortunately, instead are silently treated 6103 as 'x'. The following induces an error, until -std is added to get 6104 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 6105 array size at least. It's necessary to write '\x00'==0 to get something 6106 that's true only with -std. */ 6107int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 6108 6109/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 6110 inside strings and character constants. */ 6111#define FOO(x) 'x' 6112int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 6113 6114int test (int i, double x); 6115struct s1 {int (*f) (int a);}; 6116struct s2 {int (*f) (double a);}; 6117int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 6118int argc; 6119char **argv; 6120int 6121main () 6122{ 6123return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 6124 ; 6125 return 0; 6126} 6127_ACEOF 6128for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 6129 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 6130do 6131 CC="$ac_save_CC $ac_arg" 6132 if ac_fn_c_try_compile "$LINENO"; then : 6133 ac_cv_prog_cc_c89=$ac_arg 6134fi 6135rm -f core conftest.err conftest.$ac_objext 6136 test "x$ac_cv_prog_cc_c89" != "xno" && break 6137done 6138rm -f conftest.$ac_ext 6139CC=$ac_save_CC 6140 6141fi 6142# AC_CACHE_VAL 6143case "x$ac_cv_prog_cc_c89" in 6144 x) 6145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 6146$as_echo "none needed" >&6; } ;; 6147 xno) 6148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 6149$as_echo "unsupported" >&6; } ;; 6150 *) 6151 CC="$CC $ac_cv_prog_cc_c89" 6152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 6153$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 6154esac 6155if test "x$ac_cv_prog_cc_c89" != xno; then : 6156 6157fi 6158 6159ac_ext=c 6160ac_cpp='$CPP $CPPFLAGS' 6161ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6162ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6163ac_compiler_gnu=$ac_cv_c_compiler_gnu 6164 6165depcc="$CC" am_compiler_list= 6166 6167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 6168$as_echo_n "checking dependency style of $depcc... " >&6; } 6169if ${am_cv_CC_dependencies_compiler_type+:} false; then : 6170 $as_echo_n "(cached) " >&6 6171else 6172 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 6173 # We make a subdir and do the tests there. Otherwise we can end up 6174 # making bogus files that we don't know about and never remove. For 6175 # instance it was reported that on HP-UX the gcc test will end up 6176 # making a dummy file named `D' -- because `-MD' means `put the output 6177 # in D'. 6178 mkdir conftest.dir 6179 # Copy depcomp to subdir because otherwise we won't find it if we're 6180 # using a relative directory. 6181 cp "$am_depcomp" conftest.dir 6182 cd conftest.dir 6183 # We will build objects and dependencies in a subdirectory because 6184 # it helps to detect inapplicable dependency modes. For instance 6185 # both Tru64's cc and ICC support -MD to output dependencies as a 6186 # side effect of compilation, but ICC will put the dependencies in 6187 # the current directory while Tru64 will put them in the object 6188 # directory. 6189 mkdir sub 6190 6191 am_cv_CC_dependencies_compiler_type=none 6192 if test "$am_compiler_list" = ""; then 6193 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 6194 fi 6195 am__universal=false 6196 case " $depcc " in #( 6197 *\ -arch\ *\ -arch\ *) am__universal=true ;; 6198 esac 6199 6200 for depmode in $am_compiler_list; do 6201 # Setup a source with many dependencies, because some compilers 6202 # like to wrap large dependency lists on column 80 (with \), and 6203 # we should not choose a depcomp mode which is confused by this. 6204 # 6205 # We need to recreate these files for each test, as the compiler may 6206 # overwrite some of them when testing with obscure command lines. 6207 # This happens at least with the AIX C compiler. 6208 : > sub/conftest.c 6209 for i in 1 2 3 4 5 6; do 6210 echo '#include "conftst'$i'.h"' >> sub/conftest.c 6211 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 6212 # Solaris 8's {/usr,}/bin/sh. 6213 touch sub/conftst$i.h 6214 done 6215 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 6216 6217 # We check with `-c' and `-o' for the sake of the "dashmstdout" 6218 # mode. It turns out that the SunPro C++ compiler does not properly 6219 # handle `-M -o', and we need to detect this. Also, some Intel 6220 # versions had trouble with output in subdirs 6221 am__obj=sub/conftest.${OBJEXT-o} 6222 am__minus_obj="-o $am__obj" 6223 case $depmode in 6224 gcc) 6225 # This depmode causes a compiler race in universal mode. 6226 test "$am__universal" = false || continue 6227 ;; 6228 nosideeffect) 6229 # after this tag, mechanisms are not by side-effect, so they'll 6230 # only be used when explicitly requested 6231 if test "x$enable_dependency_tracking" = xyes; then 6232 continue 6233 else 6234 break 6235 fi 6236 ;; 6237 msvisualcpp | msvcmsys) 6238 # This compiler won't grok `-c -o', but also, the minuso test has 6239 # not run yet. These depmodes are late enough in the game, and 6240 # so weak that their functioning should not be impacted. 6241 am__obj=conftest.${OBJEXT-o} 6242 am__minus_obj= 6243 ;; 6244 none) break ;; 6245 esac 6246 if depmode=$depmode \ 6247 source=sub/conftest.c object=$am__obj \ 6248 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 6249 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 6250 >/dev/null 2>conftest.err && 6251 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 6252 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 6253 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 6254 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 6255 # icc doesn't choke on unknown options, it will just issue warnings 6256 # or remarks (even with -Werror). So we grep stderr for any message 6257 # that says an option was ignored or not supported. 6258 # When given -MP, icc 7.0 and 7.1 complain thusly: 6259 # icc: Command line warning: ignoring option '-M'; no argument required 6260 # The diagnosis changed in icc 8.0: 6261 # icc: Command line remark: option '-MP' not supported 6262 if (grep 'ignoring option' conftest.err || 6263 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 6264 am_cv_CC_dependencies_compiler_type=$depmode 6265 break 6266 fi 6267 fi 6268 done 6269 6270 cd .. 6271 rm -rf conftest.dir 6272else 6273 am_cv_CC_dependencies_compiler_type=none 6274fi 6275 6276fi 6277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 6278$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 6279CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 6280 6281 if 6282 test "x$enable_dependency_tracking" != xno \ 6283 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 6284 am__fastdepCC_TRUE= 6285 am__fastdepCC_FALSE='#' 6286else 6287 am__fastdepCC_TRUE='#' 6288 am__fastdepCC_FALSE= 6289fi 6290 6291 6292# Ralf Wildenhues: With per-target flags we need CC_C_O 6293# AM_PROG_CC_C_O supersets AC_PROG_CC_C_O 6294# FIXME: we rely on the cache variable name because 6295# there is no other way. 6296set dummy $CC 6297am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` 6298eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o 6299if test "$am_t" != yes; then 6300 # Losing compiler, so override with the script. 6301 # FIXME: It is wrong to rewrite CC. 6302 # But if we don't then we get into trouble of one sort or another. 6303 # A longer-term fix would be to have automake use am__CC in this case, 6304 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 6305 CC="$am_aux_dir/compile $CC" 6306fi 6307 6308 6309if test $ac_cv_c_compiler_gnu = yes; then 6310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5 6311$as_echo_n "checking whether $CC needs -traditional... " >&6; } 6312if ${ac_cv_prog_gcc_traditional+:} false; then : 6313 $as_echo_n "(cached) " >&6 6314else 6315 ac_pattern="Autoconf.*'x'" 6316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6317/* end confdefs.h. */ 6318#include <sgtty.h> 6319Autoconf TIOCGETP 6320_ACEOF 6321if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6322 $EGREP "$ac_pattern" >/dev/null 2>&1; then : 6323 ac_cv_prog_gcc_traditional=yes 6324else 6325 ac_cv_prog_gcc_traditional=no 6326fi 6327rm -f conftest* 6328 6329 6330 if test $ac_cv_prog_gcc_traditional = no; then 6331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6332/* end confdefs.h. */ 6333#include <termio.h> 6334Autoconf TCGETA 6335_ACEOF 6336if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6337 $EGREP "$ac_pattern" >/dev/null 2>&1; then : 6338 ac_cv_prog_gcc_traditional=yes 6339fi 6340rm -f conftest* 6341 6342 fi 6343fi 6344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5 6345$as_echo "$ac_cv_prog_gcc_traditional" >&6; } 6346 if test $ac_cv_prog_gcc_traditional = yes; then 6347 CC="$CC -traditional" 6348 fi 6349fi 6350 6351 6352 6353 6354 6355CFLAGS_NTP= 6356CPPFLAGS_NTP= 6357LDADD_NTP= 6358LDFLAGS_NTP= 6359 6360 6361 6362 6363 6364case "$ac_cv_prog_cc_c89" in 6365 no) 6366 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ANSI C89/ISO C90 is the minimum to compile NTP 6367 version 4.2.5 and higher." >&5 6368$as_echo "$as_me: WARNING: ANSI C89/ISO C90 is the minimum to compile NTP 6369 version 4.2.5 and higher." >&2;} 6370 ;; 6371esac 6372 6373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle #warning" >&5 6374$as_echo_n "checking if $CC can handle #warning... " >&6; } 6375if ${ntp_cv_cpp_warning+:} false; then : 6376 $as_echo_n "(cached) " >&6 6377else 6378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6379/* end confdefs.h. */ 6380 6381int 6382main () 6383{ 6384#warning foo 6385 ; 6386 return 0; 6387} 6388_ACEOF 6389if ac_fn_c_try_compile "$LINENO"; then : 6390 ntp_cv_cpp_warning=yes 6391else 6392 ntp_cv_cpp_warning=no 6393 6394fi 6395rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6396 6397fi 6398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_cpp_warning" >&5 6399$as_echo "$ntp_cv_cpp_warning" >&6; } 6400case "$ntp_cv_cpp_warning" in 6401 no) 6402 6403$as_echo "#define NO_OPTION_NAME_WARNINGS 1" >>confdefs.h 6404 6405esac 6406 6407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports __attribute__((...))" >&5 6408$as_echo_n "checking if $CC supports __attribute__((...))... " >&6; } 6409if ${ntp_cv_cc_attribute+:} false; then : 6410 $as_echo_n "(cached) " >&6 6411else 6412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6413/* end confdefs.h. */ 6414 6415int 6416main () 6417{ 6418void foo(void) __attribute__((__noreturn__)); 6419 6420 ; 6421 return 0; 6422} 6423_ACEOF 6424if ac_fn_c_try_compile "$LINENO"; then : 6425 ntp_cv_cc_attribute=yes 6426else 6427 ntp_cv_cc_attribute=no 6428 6429fi 6430rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6431 6432fi 6433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_cc_attribute" >&5 6434$as_echo "$ntp_cv_cc_attribute" >&6; } 6435case "$ntp_cv_cc_attribute" in 6436 yes) 6437 6438$as_echo "#define HAVE___ATTRIBUTE__ /**/" >>confdefs.h 6439 6440esac 6441 6442 6443case "$GCC" in 6444 yes) 6445 SAVED_CFLAGS="$CFLAGS" 6446 CFLAGS="$CFLAGS -Wstrict-overflow" 6447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle -Wstrict-overflow" >&5 6448$as_echo_n "checking if $CC can handle -Wstrict-overflow... " >&6; } 6449if ${ntp_cv_gcc_Wstrict_overflow+:} false; then : 6450 $as_echo_n "(cached) " >&6 6451else 6452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6453/* end confdefs.h. */ 6454 6455int 6456main () 6457{ 6458 6459 ; 6460 return 0; 6461} 6462_ACEOF 6463if ac_fn_c_try_compile "$LINENO"; then : 6464 ntp_cv_gcc_Wstrict_overflow=yes 6465else 6466 ntp_cv_gcc_Wstrict_overflow=no 6467 6468fi 6469rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6470 6471fi 6472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_gcc_Wstrict_overflow" >&5 6473$as_echo "$ntp_cv_gcc_Wstrict_overflow" >&6; } 6474 # 6475 # $ntp_cv_gcc_Wstrict_overflow is tested later to add the 6476 # flag to CFLAGS. 6477 # 6478 CFLAGS="$SAVED_CFLAGS -Winit-self" 6479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle -Winit-self" >&5 6480$as_echo_n "checking if $CC can handle -Winit-self... " >&6; } 6481if ${ntp_cv_gcc_Winit_self+:} false; then : 6482 $as_echo_n "(cached) " >&6 6483else 6484 6485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6486/* end confdefs.h. */ 6487 6488int 6489main () 6490{ 6491 6492 ; 6493 return 0; 6494} 6495_ACEOF 6496if ac_fn_c_try_compile "$LINENO"; then : 6497 ntp_cv_gcc_Winit_self=yes 6498else 6499 ntp_cv_gcc_Winit_self=no 6500 6501fi 6502rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6503 6504 6505fi 6506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_gcc_Winit_self" >&5 6507$as_echo "$ntp_cv_gcc_Winit_self" >&6; } 6508 CFLAGS="$SAVED_CFLAGS" 6509 { SAVED_CFLAGS=; unset SAVED_CFLAGS;} 6510 # 6511 # $ntp_cv_gcc_Winit_self is tested later to add the 6512 # flag to CFLAGS_NTP. 6513 # 6514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker supports omitting unused code and data" >&5 6515$as_echo_n "checking if linker supports omitting unused code and data... " >&6; } 6516if ${ntp_cv_gc_sections_runs+:} false; then : 6517 $as_echo_n "(cached) " >&6 6518else 6519 6520 origCFLAGS="$CFLAGS" 6521 CFLAGS="$CFLAGS -Wl,--gc-sections" 6522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6523/* end confdefs.h. */ 6524 6525 #include <stdlib.h> 6526 #include <stdio.h> 6527 6528int 6529main () 6530{ 6531 6532 FILE * fpC; 6533 char buf[32]; 6534 size_t cch; 6535 int read_success_once; 6536 6537 fpC = fopen("conftest.c", "r"); 6538 if (NULL == fpC) 6539 exit(1); 6540 do { 6541 cch = fread(buf, sizeof(buf), 1, fpC); 6542 read_success_once |= (0 != cch); 6543 } while (0 != cch); 6544 if (!read_success_once) 6545 exit(2); 6546 if (!feof(fpC)) 6547 exit(3); 6548 if (0 != fclose(fpC)) 6549 exit(4); 6550 6551 exit(EXIT_SUCCESS); 6552 6553 6554 ; 6555 return 0; 6556} 6557_ACEOF 6558if ac_fn_c_try_link "$LINENO"; then : 6559 6560 if test "X$cross_compiling" = "Xyes" || grep gc-sections conftest.err ; then 6561 ntp_cv_gc_sections_runs=no 6562 else 6563 ntp_cv_gc_sections_runs=no 6564 ./conftest >/dev/null 2>&1 && ntp_cv_gc_sections_runs=yes 6565 fi 6566 6567else 6568 ntp_cv_gc_sections_runs=no 6569 6570fi 6571rm -f core conftest.err conftest.$ac_objext \ 6572 conftest$ac_exeext conftest.$ac_ext 6573 CFLAGS="$origCFLAGS" 6574 { origCFLAGS=; unset origCFLAGS;} 6575 6576 6577fi 6578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_gc_sections_runs" >&5 6579$as_echo "$ntp_cv_gc_sections_runs" >&6; } 6580 case "$ntp_cv_gc_sections_runs" in 6581 yes) 6582 LDADD_LIBNTP="-Wl,--gc-sections" 6583 CFLAGS_NTP="$CFLAGS_NTP -ffunction-sections -fdata-sections" 6584 ;; 6585 no) 6586 LDADD_LIBNTP= 6587 ;; 6588 esac 6589 CFLAGS_NTP="$CFLAGS_NTP -Wall" 6590 CFLAGS_NTP="$CFLAGS_NTP -Wcast-align" 6591 CFLAGS_NTP="$CFLAGS_NTP -Wcast-qual" 6592 # CFLAGS_NTP="$CFLAGS_NTP -Wconversion" 6593 # CFLAGS_NTP="$CFLAGS_NTP -Werror" 6594 # CFLAGS_NTP="$CFLAGS_NTP -Wextra" 6595 # CFLAGS_NTP="$CFLAGS_NTP -Wfloat-equal" 6596 CFLAGS_NTP="$CFLAGS_NTP -Wmissing-prototypes" 6597 CFLAGS_NTP="$CFLAGS_NTP -Wpointer-arith" 6598 CFLAGS_NTP="$CFLAGS_NTP -Wshadow" 6599 # CFLAGS_NTP="$CFLAGS_NTP -Wtraditional" 6600 # CFLAGS_NTP="$CFLAGS_NTP -Wwrite-strings" 6601 case "$ntp_cv_gcc_Winit_self" in 6602 yes) 6603 CFLAGS_NTP="$CFLAGS_NTP -Winit-self" 6604 esac 6605 case "$ntp_cv_gcc_Wstrict_overflow" in 6606 yes) 6607 CFLAGS_NTP="$CFLAGS_NTP -Wstrict-overflow" 6608 esac 6609 # -W[no-]strict-prototypes might be added by NTP_OPENSSL 6610esac 6611 6612 6613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking additional compiler flags" >&5 6614$as_echo_n "checking additional compiler flags... " >&6; } 6615 # allow ntp_os_flags to be preset to skip this stuff 6616 case "${ntp_os_cflags+set}" in 6617 set) 6618 ;; 6619 *) 6620 ntp_os_cflags= 6621 case "$host_os" in 6622 aix[1-3]*) 6623 ;; 6624 aix4.[0-2]*) 6625 # turn on additional headers 6626 ntp_os_cflags="-D_XOPEN_EXTENDED_SOURCE" 6627 ;; 6628 aix5.3*) 6629 # avoid circular dependencies in yp headers, and more 6630 ntp_os_cflags="-DHAVE_BAD_HEADERS -D_XOPEN_EXTENDED_SOURCE" 6631 ntp_os_cflags="${ntp_os_cflags} -D_USE_IRS -D_MSGQSUPPORT" 6632 ;; 6633 aix*) 6634 # XXX Only verified thru AIX6. 6635 # aix7 seems to need a different XOPEN_SOURCE_EXTENDED thing. 6636 # avoid circular dependencies in yp headers 6637 # _XOPEN_SOURCE=500 = X/Open 5: POSIX 1995 6638 # _XOPEN_SOURCE=600 = X/Open 6: POSIX 2004 6639 # _XOPEN_SOURCE=700 = X/Open 7: POSIX 2008 6640 ntp_os_cflags="-DHAVE_BAD_HEADERS -D_XOPEN_SOURCE=600" 6641 ntp_os_cflags="${ntp_os_cflags} -D_USE_IRS" 6642 ;; 6643 amigaos) 6644 ntp_os_cflags="-DSYS_AMIGA" 6645 ;; 6646 darwin*|macosx*|rhapsody*) 6647 ntp_os_cflags="-D_P1003_1B_VISIBLE" 6648 ;; 6649 hpux10.*) # at least for hppa2.0-hp-hpux10.20 6650 case "$GCC" in 6651 yes) 6652 ;; 6653 *) 6654 # use Ansi compiler on HPUX, and some -Wp magic 6655 ntp_os_cflags="-Ae -Wp,-H18816" 6656 ;; 6657 esac 6658 ntp_os_cflags="${ntp_os_cflags} -D_HPUX_SOURCE" 6659 ;; 6660 hpux*) 6661 case "$GCC" in 6662 yes) 6663 ;; 6664 *) 6665 # use Ansi compiler on HPUX 6666 ntp_os_cflags="-Ae" 6667 esac 6668 ntp_os_cflags="${ntp_os_cflags} -D_HPUX_SOURCE" 6669 ;; 6670 irix6*) 6671 case "$CC" in 6672 cc) 6673 # do not use 64-bit compiler 6674 ntp_os_cflags="-n32 -mips3 -Wl,-woff,84" 6675 esac 6676 ;; 6677 nextstep3) 6678 ntp_os_cflags="-posix" 6679 ;; 6680 solaris1*|solaris2.[0-5]|solaris2.5.*) 6681 ;; 6682 sunos[34]*|sunos5.[0-5]|sunos5.5.*) 6683 ;; 6684 solaris2*|sunos5*) 6685 # turn on 64-bit file offset interface 6686 ntp_os_cflags="-D_LARGEFILE64_SOURCE" 6687 ;; 6688 vxworks*) 6689 case "$build" in 6690 $host) 6691 ;; 6692 *) 6693 # Quick and dirty sanity check 6694 case "$VX_KERNEL" in 6695 '') 6696 as_fn_error $? "See html/build/hints/vxworks.html" "$LINENO" 5 6697 esac 6698 ntp_os_cflags="-DSYS_VXWORKS" 6699 esac 6700 ;; 6701 esac 6702 esac 6703 case "$ntp_os_flags" in 6704 '') 6705 ntp_os_cflags_msg="none needed" 6706 ;; 6707 *) 6708 ntp_os_cflags_msg="$ntp_os_cflags" 6709 esac 6710 CFLAGS_NTP="$CFLAGS_NTP $ntp_os_cflags" 6711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_os_cflags_msg" >&5 6712$as_echo "$ntp_os_cflags_msg" >&6; } 6713 { ntp_os_cflags_msg=; unset ntp_os_cflags_msg;} 6714 6715 6716 6717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 6718$as_echo_n "checking whether byte ordering is bigendian... " >&6; } 6719if ${ac_cv_c_bigendian+:} false; then : 6720 $as_echo_n "(cached) " >&6 6721else 6722 ac_cv_c_bigendian=unknown 6723 # See if we're dealing with a universal compiler. 6724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6725/* end confdefs.h. */ 6726#ifndef __APPLE_CC__ 6727 not a universal capable compiler 6728 #endif 6729 typedef int dummy; 6730 6731_ACEOF 6732if ac_fn_c_try_compile "$LINENO"; then : 6733 6734 # Check for potential -arch flags. It is not universal unless 6735 # there are at least two -arch flags with different values. 6736 ac_arch= 6737 ac_prev= 6738 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 6739 if test -n "$ac_prev"; then 6740 case $ac_word in 6741 i?86 | x86_64 | ppc | ppc64) 6742 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 6743 ac_arch=$ac_word 6744 else 6745 ac_cv_c_bigendian=universal 6746 break 6747 fi 6748 ;; 6749 esac 6750 ac_prev= 6751 elif test "x$ac_word" = "x-arch"; then 6752 ac_prev=arch 6753 fi 6754 done 6755fi 6756rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6757 if test $ac_cv_c_bigendian = unknown; then 6758 # See if sys/param.h defines the BYTE_ORDER macro. 6759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6760/* end confdefs.h. */ 6761#include <sys/types.h> 6762 #include <sys/param.h> 6763 6764int 6765main () 6766{ 6767#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 6768 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 6769 && LITTLE_ENDIAN) 6770 bogus endian macros 6771 #endif 6772 6773 ; 6774 return 0; 6775} 6776_ACEOF 6777if ac_fn_c_try_compile "$LINENO"; then : 6778 # It does; now see whether it defined to BIG_ENDIAN or not. 6779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6780/* end confdefs.h. */ 6781#include <sys/types.h> 6782 #include <sys/param.h> 6783 6784int 6785main () 6786{ 6787#if BYTE_ORDER != BIG_ENDIAN 6788 not big endian 6789 #endif 6790 6791 ; 6792 return 0; 6793} 6794_ACEOF 6795if ac_fn_c_try_compile "$LINENO"; then : 6796 ac_cv_c_bigendian=yes 6797else 6798 ac_cv_c_bigendian=no 6799fi 6800rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6801fi 6802rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6803 fi 6804 if test $ac_cv_c_bigendian = unknown; then 6805 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 6806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6807/* end confdefs.h. */ 6808#include <limits.h> 6809 6810int 6811main () 6812{ 6813#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 6814 bogus endian macros 6815 #endif 6816 6817 ; 6818 return 0; 6819} 6820_ACEOF 6821if ac_fn_c_try_compile "$LINENO"; then : 6822 # It does; now see whether it defined to _BIG_ENDIAN or not. 6823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6824/* end confdefs.h. */ 6825#include <limits.h> 6826 6827int 6828main () 6829{ 6830#ifndef _BIG_ENDIAN 6831 not big endian 6832 #endif 6833 6834 ; 6835 return 0; 6836} 6837_ACEOF 6838if ac_fn_c_try_compile "$LINENO"; then : 6839 ac_cv_c_bigendian=yes 6840else 6841 ac_cv_c_bigendian=no 6842fi 6843rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6844fi 6845rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6846 fi 6847 if test $ac_cv_c_bigendian = unknown; then 6848 # Compile a test program. 6849 if test "$cross_compiling" = yes; then : 6850 # Try to guess by grepping values from an object file. 6851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6852/* end confdefs.h. */ 6853short int ascii_mm[] = 6854 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 6855 short int ascii_ii[] = 6856 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 6857 int use_ascii (int i) { 6858 return ascii_mm[i] + ascii_ii[i]; 6859 } 6860 short int ebcdic_ii[] = 6861 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 6862 short int ebcdic_mm[] = 6863 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 6864 int use_ebcdic (int i) { 6865 return ebcdic_mm[i] + ebcdic_ii[i]; 6866 } 6867 extern int foo; 6868 6869int 6870main () 6871{ 6872return use_ascii (foo) == use_ebcdic (foo); 6873 ; 6874 return 0; 6875} 6876_ACEOF 6877if ac_fn_c_try_compile "$LINENO"; then : 6878 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 6879 ac_cv_c_bigendian=yes 6880 fi 6881 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 6882 if test "$ac_cv_c_bigendian" = unknown; then 6883 ac_cv_c_bigendian=no 6884 else 6885 # finding both strings is unlikely to happen, but who knows? 6886 ac_cv_c_bigendian=unknown 6887 fi 6888 fi 6889fi 6890rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6891else 6892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6893/* end confdefs.h. */ 6894$ac_includes_default 6895int 6896main () 6897{ 6898 6899 /* Are we little or big endian? From Harbison&Steele. */ 6900 union 6901 { 6902 long int l; 6903 char c[sizeof (long int)]; 6904 } u; 6905 u.l = 1; 6906 return u.c[sizeof (long int) - 1] == 1; 6907 6908 ; 6909 return 0; 6910} 6911_ACEOF 6912if ac_fn_c_try_run "$LINENO"; then : 6913 ac_cv_c_bigendian=no 6914else 6915 ac_cv_c_bigendian=yes 6916fi 6917rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 6918 conftest.$ac_objext conftest.beam conftest.$ac_ext 6919fi 6920 6921 fi 6922fi 6923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 6924$as_echo "$ac_cv_c_bigendian" >&6; } 6925 case $ac_cv_c_bigendian in #( 6926 yes) 6927 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h 6928;; #( 6929 no) 6930 ;; #( 6931 universal) 6932 6933$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 6934 6935 ;; #( 6936 *) 6937 as_fn_error $? "unknown endianness 6938 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 6939 esac 6940 6941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5 6942$as_echo_n "checking for working volatile... " >&6; } 6943if ${ac_cv_c_volatile+:} false; then : 6944 $as_echo_n "(cached) " >&6 6945else 6946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6947/* end confdefs.h. */ 6948 6949int 6950main () 6951{ 6952 6953volatile int x; 6954int * volatile y = (int *) 0; 6955return !x && !y; 6956 ; 6957 return 0; 6958} 6959_ACEOF 6960if ac_fn_c_try_compile "$LINENO"; then : 6961 ac_cv_c_volatile=yes 6962else 6963 ac_cv_c_volatile=no 6964fi 6965rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6966fi 6967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5 6968$as_echo "$ac_cv_c_volatile" >&6; } 6969if test $ac_cv_c_volatile = no; then 6970 6971$as_echo "#define volatile /**/" >>confdefs.h 6972 6973fi 6974 6975ac_ext=c 6976ac_cpp='$CPP $CPPFLAGS' 6977ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6978ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6979ac_compiler_gnu=$ac_cv_c_compiler_gnu 6980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 6981$as_echo_n "checking how to run the C preprocessor... " >&6; } 6982# On Suns, sometimes $CPP names a directory. 6983if test -n "$CPP" && test -d "$CPP"; then 6984 CPP= 6985fi 6986if test -z "$CPP"; then 6987 if ${ac_cv_prog_CPP+:} false; then : 6988 $as_echo_n "(cached) " >&6 6989else 6990 # Double quotes because CPP needs to be expanded 6991 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 6992 do 6993 ac_preproc_ok=false 6994for ac_c_preproc_warn_flag in '' yes 6995do 6996 # Use a header file that comes with gcc, so configuring glibc 6997 # with a fresh cross-compiler works. 6998 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6999 # <limits.h> exists even on freestanding compilers. 7000 # On the NeXT, cc -E runs the code through the compiler's parser, 7001 # not just through cpp. "Syntax error" is here to catch this case. 7002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7003/* end confdefs.h. */ 7004#ifdef __STDC__ 7005# include <limits.h> 7006#else 7007# include <assert.h> 7008#endif 7009 Syntax error 7010_ACEOF 7011if ac_fn_c_try_cpp "$LINENO"; then : 7012 7013else 7014 # Broken: fails on valid input. 7015continue 7016fi 7017rm -f conftest.err conftest.i conftest.$ac_ext 7018 7019 # OK, works on sane cases. Now check whether nonexistent headers 7020 # can be detected and how. 7021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7022/* end confdefs.h. */ 7023#include <ac_nonexistent.h> 7024_ACEOF 7025if ac_fn_c_try_cpp "$LINENO"; then : 7026 # Broken: success on invalid input. 7027continue 7028else 7029 # Passes both tests. 7030ac_preproc_ok=: 7031break 7032fi 7033rm -f conftest.err conftest.i conftest.$ac_ext 7034 7035done 7036# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7037rm -f conftest.i conftest.err conftest.$ac_ext 7038if $ac_preproc_ok; then : 7039 break 7040fi 7041 7042 done 7043 ac_cv_prog_CPP=$CPP 7044 7045fi 7046 CPP=$ac_cv_prog_CPP 7047else 7048 ac_cv_prog_CPP=$CPP 7049fi 7050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 7051$as_echo "$CPP" >&6; } 7052ac_preproc_ok=false 7053for ac_c_preproc_warn_flag in '' yes 7054do 7055 # Use a header file that comes with gcc, so configuring glibc 7056 # with a fresh cross-compiler works. 7057 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7058 # <limits.h> exists even on freestanding compilers. 7059 # On the NeXT, cc -E runs the code through the compiler's parser, 7060 # not just through cpp. "Syntax error" is here to catch this case. 7061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7062/* end confdefs.h. */ 7063#ifdef __STDC__ 7064# include <limits.h> 7065#else 7066# include <assert.h> 7067#endif 7068 Syntax error 7069_ACEOF 7070if ac_fn_c_try_cpp "$LINENO"; then : 7071 7072else 7073 # Broken: fails on valid input. 7074continue 7075fi 7076rm -f conftest.err conftest.i conftest.$ac_ext 7077 7078 # OK, works on sane cases. Now check whether nonexistent headers 7079 # can be detected and how. 7080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7081/* end confdefs.h. */ 7082#include <ac_nonexistent.h> 7083_ACEOF 7084if ac_fn_c_try_cpp "$LINENO"; then : 7085 # Broken: success on invalid input. 7086continue 7087else 7088 # Passes both tests. 7089ac_preproc_ok=: 7090break 7091fi 7092rm -f conftest.err conftest.i conftest.$ac_ext 7093 7094done 7095# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7096rm -f conftest.i conftest.err conftest.$ac_ext 7097if $ac_preproc_ok; then : 7098 7099else 7100 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7101$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7102as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 7103See \`config.log' for more details" "$LINENO" 5; } 7104fi 7105 7106ac_ext=c 7107ac_cpp='$CPP $CPPFLAGS' 7108ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7109ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7110ac_compiler_gnu=$ac_cv_c_compiler_gnu 7111 7112 7113 7114ac_ext=c 7115ac_cpp='$CPP $CPPFLAGS' 7116ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7117ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7118ac_compiler_gnu=$ac_cv_c_compiler_gnu 7119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 7120$as_echo_n "checking how to run the C preprocessor... " >&6; } 7121# On Suns, sometimes $CPP names a directory. 7122if test -n "$CPP" && test -d "$CPP"; then 7123 CPP= 7124fi 7125if test -z "$CPP"; then 7126 if ${ac_cv_prog_CPP+:} false; then : 7127 $as_echo_n "(cached) " >&6 7128else 7129 # Double quotes because CPP needs to be expanded 7130 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 7131 do 7132 ac_preproc_ok=false 7133for ac_c_preproc_warn_flag in '' yes 7134do 7135 # Use a header file that comes with gcc, so configuring glibc 7136 # with a fresh cross-compiler works. 7137 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7138 # <limits.h> exists even on freestanding compilers. 7139 # On the NeXT, cc -E runs the code through the compiler's parser, 7140 # not just through cpp. "Syntax error" is here to catch this case. 7141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7142/* end confdefs.h. */ 7143#ifdef __STDC__ 7144# include <limits.h> 7145#else 7146# include <assert.h> 7147#endif 7148 Syntax error 7149_ACEOF 7150if ac_fn_c_try_cpp "$LINENO"; then : 7151 7152else 7153 # Broken: fails on valid input. 7154continue 7155fi 7156rm -f conftest.err conftest.i conftest.$ac_ext 7157 7158 # OK, works on sane cases. Now check whether nonexistent headers 7159 # can be detected and how. 7160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7161/* end confdefs.h. */ 7162#include <ac_nonexistent.h> 7163_ACEOF 7164if ac_fn_c_try_cpp "$LINENO"; then : 7165 # Broken: success on invalid input. 7166continue 7167else 7168 # Passes both tests. 7169ac_preproc_ok=: 7170break 7171fi 7172rm -f conftest.err conftest.i conftest.$ac_ext 7173 7174done 7175# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7176rm -f conftest.i conftest.err conftest.$ac_ext 7177if $ac_preproc_ok; then : 7178 break 7179fi 7180 7181 done 7182 ac_cv_prog_CPP=$CPP 7183 7184fi 7185 CPP=$ac_cv_prog_CPP 7186else 7187 ac_cv_prog_CPP=$CPP 7188fi 7189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 7190$as_echo "$CPP" >&6; } 7191ac_preproc_ok=false 7192for ac_c_preproc_warn_flag in '' yes 7193do 7194 # Use a header file that comes with gcc, so configuring glibc 7195 # with a fresh cross-compiler works. 7196 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7197 # <limits.h> exists even on freestanding compilers. 7198 # On the NeXT, cc -E runs the code through the compiler's parser, 7199 # not just through cpp. "Syntax error" is here to catch this case. 7200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7201/* end confdefs.h. */ 7202#ifdef __STDC__ 7203# include <limits.h> 7204#else 7205# include <assert.h> 7206#endif 7207 Syntax error 7208_ACEOF 7209if ac_fn_c_try_cpp "$LINENO"; then : 7210 7211else 7212 # Broken: fails on valid input. 7213continue 7214fi 7215rm -f conftest.err conftest.i conftest.$ac_ext 7216 7217 # OK, works on sane cases. Now check whether nonexistent headers 7218 # can be detected and how. 7219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7220/* end confdefs.h. */ 7221#include <ac_nonexistent.h> 7222_ACEOF 7223if ac_fn_c_try_cpp "$LINENO"; then : 7224 # Broken: success on invalid input. 7225continue 7226else 7227 # Passes both tests. 7228ac_preproc_ok=: 7229break 7230fi 7231rm -f conftest.err conftest.i conftest.$ac_ext 7232 7233done 7234# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7235rm -f conftest.i conftest.err conftest.$ac_ext 7236if $ac_preproc_ok; then : 7237 7238else 7239 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7240$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7241as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 7242See \`config.log' for more details" "$LINENO" 5; } 7243fi 7244 7245ac_ext=c 7246ac_cpp='$CPP $CPPFLAGS' 7247ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7248ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7249ac_compiler_gnu=$ac_cv_c_compiler_gnu 7250 7251ac_ext=cpp 7252ac_cpp='$CXXCPP $CPPFLAGS' 7253ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7254ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7255ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 7256if test -z "$CXX"; then 7257 if test -n "$CCC"; then 7258 CXX=$CCC 7259 else 7260 if test -n "$ac_tool_prefix"; then 7261 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 7262 do 7263 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 7264set dummy $ac_tool_prefix$ac_prog; ac_word=$2 7265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7266$as_echo_n "checking for $ac_word... " >&6; } 7267if ${ac_cv_prog_CXX+:} false; then : 7268 $as_echo_n "(cached) " >&6 7269else 7270 if test -n "$CXX"; then 7271 ac_cv_prog_CXX="$CXX" # Let the user override the test. 7272else 7273as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7274for as_dir in $PATH 7275do 7276 IFS=$as_save_IFS 7277 test -z "$as_dir" && as_dir=. 7278 for ac_exec_ext in '' $ac_executable_extensions; do 7279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7280 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 7281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7282 break 2 7283 fi 7284done 7285 done 7286IFS=$as_save_IFS 7287 7288fi 7289fi 7290CXX=$ac_cv_prog_CXX 7291if test -n "$CXX"; then 7292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 7293$as_echo "$CXX" >&6; } 7294else 7295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7296$as_echo "no" >&6; } 7297fi 7298 7299 7300 test -n "$CXX" && break 7301 done 7302fi 7303if test -z "$CXX"; then 7304 ac_ct_CXX=$CXX 7305 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 7306do 7307 # Extract the first word of "$ac_prog", so it can be a program name with args. 7308set dummy $ac_prog; ac_word=$2 7309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7310$as_echo_n "checking for $ac_word... " >&6; } 7311if ${ac_cv_prog_ac_ct_CXX+:} false; then : 7312 $as_echo_n "(cached) " >&6 7313else 7314 if test -n "$ac_ct_CXX"; then 7315 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 7316else 7317as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7318for as_dir in $PATH 7319do 7320 IFS=$as_save_IFS 7321 test -z "$as_dir" && as_dir=. 7322 for ac_exec_ext in '' $ac_executable_extensions; do 7323 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7324 ac_cv_prog_ac_ct_CXX="$ac_prog" 7325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7326 break 2 7327 fi 7328done 7329 done 7330IFS=$as_save_IFS 7331 7332fi 7333fi 7334ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 7335if test -n "$ac_ct_CXX"; then 7336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 7337$as_echo "$ac_ct_CXX" >&6; } 7338else 7339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7340$as_echo "no" >&6; } 7341fi 7342 7343 7344 test -n "$ac_ct_CXX" && break 7345done 7346 7347 if test "x$ac_ct_CXX" = x; then 7348 CXX="g++" 7349 else 7350 case $cross_compiling:$ac_tool_warned in 7351yes:) 7352{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7353$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7354ac_tool_warned=yes ;; 7355esac 7356 CXX=$ac_ct_CXX 7357 fi 7358fi 7359 7360 fi 7361fi 7362# Provide some information about the compiler. 7363$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 7364set X $ac_compile 7365ac_compiler=$2 7366for ac_option in --version -v -V -qversion; do 7367 { { ac_try="$ac_compiler $ac_option >&5" 7368case "(($ac_try" in 7369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7370 *) ac_try_echo=$ac_try;; 7371esac 7372eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 7373$as_echo "$ac_try_echo"; } >&5 7374 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 7375 ac_status=$? 7376 if test -s conftest.err; then 7377 sed '10a\ 7378... rest of stderr output deleted ... 7379 10q' conftest.err >conftest.er1 7380 cat conftest.er1 >&5 7381 fi 7382 rm -f conftest.er1 conftest.err 7383 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7384 test $ac_status = 0; } 7385done 7386 7387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 7388$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 7389if ${ac_cv_cxx_compiler_gnu+:} false; then : 7390 $as_echo_n "(cached) " >&6 7391else 7392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7393/* end confdefs.h. */ 7394 7395int 7396main () 7397{ 7398#ifndef __GNUC__ 7399 choke me 7400#endif 7401 7402 ; 7403 return 0; 7404} 7405_ACEOF 7406if ac_fn_cxx_try_compile "$LINENO"; then : 7407 ac_compiler_gnu=yes 7408else 7409 ac_compiler_gnu=no 7410fi 7411rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7412ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 7413 7414fi 7415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 7416$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 7417if test $ac_compiler_gnu = yes; then 7418 GXX=yes 7419else 7420 GXX= 7421fi 7422ac_test_CXXFLAGS=${CXXFLAGS+set} 7423ac_save_CXXFLAGS=$CXXFLAGS 7424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 7425$as_echo_n "checking whether $CXX accepts -g... " >&6; } 7426if ${ac_cv_prog_cxx_g+:} false; then : 7427 $as_echo_n "(cached) " >&6 7428else 7429 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 7430 ac_cxx_werror_flag=yes 7431 ac_cv_prog_cxx_g=no 7432 CXXFLAGS="-g" 7433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7434/* end confdefs.h. */ 7435 7436int 7437main () 7438{ 7439 7440 ; 7441 return 0; 7442} 7443_ACEOF 7444if ac_fn_cxx_try_compile "$LINENO"; then : 7445 ac_cv_prog_cxx_g=yes 7446else 7447 CXXFLAGS="" 7448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7449/* end confdefs.h. */ 7450 7451int 7452main () 7453{ 7454 7455 ; 7456 return 0; 7457} 7458_ACEOF 7459if ac_fn_cxx_try_compile "$LINENO"; then : 7460 7461else 7462 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 7463 CXXFLAGS="-g" 7464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7465/* end confdefs.h. */ 7466 7467int 7468main () 7469{ 7470 7471 ; 7472 return 0; 7473} 7474_ACEOF 7475if ac_fn_cxx_try_compile "$LINENO"; then : 7476 ac_cv_prog_cxx_g=yes 7477fi 7478rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7479fi 7480rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7481fi 7482rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7483 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 7484fi 7485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 7486$as_echo "$ac_cv_prog_cxx_g" >&6; } 7487if test "$ac_test_CXXFLAGS" = set; then 7488 CXXFLAGS=$ac_save_CXXFLAGS 7489elif test $ac_cv_prog_cxx_g = yes; then 7490 if test "$GXX" = yes; then 7491 CXXFLAGS="-g -O2" 7492 else 7493 CXXFLAGS="-g" 7494 fi 7495else 7496 if test "$GXX" = yes; then 7497 CXXFLAGS="-O2" 7498 else 7499 CXXFLAGS= 7500 fi 7501fi 7502ac_ext=c 7503ac_cpp='$CPP $CPPFLAGS' 7504ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7505ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7506ac_compiler_gnu=$ac_cv_c_compiler_gnu 7507 7508depcc="$CXX" am_compiler_list= 7509 7510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 7511$as_echo_n "checking dependency style of $depcc... " >&6; } 7512if ${am_cv_CXX_dependencies_compiler_type+:} false; then : 7513 $as_echo_n "(cached) " >&6 7514else 7515 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 7516 # We make a subdir and do the tests there. Otherwise we can end up 7517 # making bogus files that we don't know about and never remove. For 7518 # instance it was reported that on HP-UX the gcc test will end up 7519 # making a dummy file named `D' -- because `-MD' means `put the output 7520 # in D'. 7521 mkdir conftest.dir 7522 # Copy depcomp to subdir because otherwise we won't find it if we're 7523 # using a relative directory. 7524 cp "$am_depcomp" conftest.dir 7525 cd conftest.dir 7526 # We will build objects and dependencies in a subdirectory because 7527 # it helps to detect inapplicable dependency modes. For instance 7528 # both Tru64's cc and ICC support -MD to output dependencies as a 7529 # side effect of compilation, but ICC will put the dependencies in 7530 # the current directory while Tru64 will put them in the object 7531 # directory. 7532 mkdir sub 7533 7534 am_cv_CXX_dependencies_compiler_type=none 7535 if test "$am_compiler_list" = ""; then 7536 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 7537 fi 7538 am__universal=false 7539 case " $depcc " in #( 7540 *\ -arch\ *\ -arch\ *) am__universal=true ;; 7541 esac 7542 7543 for depmode in $am_compiler_list; do 7544 # Setup a source with many dependencies, because some compilers 7545 # like to wrap large dependency lists on column 80 (with \), and 7546 # we should not choose a depcomp mode which is confused by this. 7547 # 7548 # We need to recreate these files for each test, as the compiler may 7549 # overwrite some of them when testing with obscure command lines. 7550 # This happens at least with the AIX C compiler. 7551 : > sub/conftest.c 7552 for i in 1 2 3 4 5 6; do 7553 echo '#include "conftst'$i'.h"' >> sub/conftest.c 7554 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 7555 # Solaris 8's {/usr,}/bin/sh. 7556 touch sub/conftst$i.h 7557 done 7558 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 7559 7560 # We check with `-c' and `-o' for the sake of the "dashmstdout" 7561 # mode. It turns out that the SunPro C++ compiler does not properly 7562 # handle `-M -o', and we need to detect this. Also, some Intel 7563 # versions had trouble with output in subdirs 7564 am__obj=sub/conftest.${OBJEXT-o} 7565 am__minus_obj="-o $am__obj" 7566 case $depmode in 7567 gcc) 7568 # This depmode causes a compiler race in universal mode. 7569 test "$am__universal" = false || continue 7570 ;; 7571 nosideeffect) 7572 # after this tag, mechanisms are not by side-effect, so they'll 7573 # only be used when explicitly requested 7574 if test "x$enable_dependency_tracking" = xyes; then 7575 continue 7576 else 7577 break 7578 fi 7579 ;; 7580 msvisualcpp | msvcmsys) 7581 # This compiler won't grok `-c -o', but also, the minuso test has 7582 # not run yet. These depmodes are late enough in the game, and 7583 # so weak that their functioning should not be impacted. 7584 am__obj=conftest.${OBJEXT-o} 7585 am__minus_obj= 7586 ;; 7587 none) break ;; 7588 esac 7589 if depmode=$depmode \ 7590 source=sub/conftest.c object=$am__obj \ 7591 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 7592 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 7593 >/dev/null 2>conftest.err && 7594 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 7595 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 7596 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 7597 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 7598 # icc doesn't choke on unknown options, it will just issue warnings 7599 # or remarks (even with -Werror). So we grep stderr for any message 7600 # that says an option was ignored or not supported. 7601 # When given -MP, icc 7.0 and 7.1 complain thusly: 7602 # icc: Command line warning: ignoring option '-M'; no argument required 7603 # The diagnosis changed in icc 8.0: 7604 # icc: Command line remark: option '-MP' not supported 7605 if (grep 'ignoring option' conftest.err || 7606 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 7607 am_cv_CXX_dependencies_compiler_type=$depmode 7608 break 7609 fi 7610 fi 7611 done 7612 7613 cd .. 7614 rm -rf conftest.dir 7615else 7616 am_cv_CXX_dependencies_compiler_type=none 7617fi 7618 7619fi 7620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 7621$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 7622CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 7623 7624 if 7625 test "x$enable_dependency_tracking" != xno \ 7626 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 7627 am__fastdepCXX_TRUE= 7628 am__fastdepCXX_FALSE='#' 7629else 7630 am__fastdepCXX_TRUE='#' 7631 am__fastdepCXX_FALSE= 7632fi 7633 7634 7635for ac_prog in 'bison -y' byacc 7636do 7637 # Extract the first word of "$ac_prog", so it can be a program name with args. 7638set dummy $ac_prog; ac_word=$2 7639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7640$as_echo_n "checking for $ac_word... " >&6; } 7641if ${ac_cv_prog_YACC+:} false; then : 7642 $as_echo_n "(cached) " >&6 7643else 7644 if test -n "$YACC"; then 7645 ac_cv_prog_YACC="$YACC" # Let the user override the test. 7646else 7647as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7648for as_dir in $PATH 7649do 7650 IFS=$as_save_IFS 7651 test -z "$as_dir" && as_dir=. 7652 for ac_exec_ext in '' $ac_executable_extensions; do 7653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7654 ac_cv_prog_YACC="$ac_prog" 7655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7656 break 2 7657 fi 7658done 7659 done 7660IFS=$as_save_IFS 7661 7662fi 7663fi 7664YACC=$ac_cv_prog_YACC 7665if test -n "$YACC"; then 7666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 7667$as_echo "$YACC" >&6; } 7668else 7669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7670$as_echo "no" >&6; } 7671fi 7672 7673 7674 test -n "$YACC" && break 7675done 7676test -n "$YACC" || YACC="yacc" 7677 7678if test "x$CC" != xcc; then 7679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5 7680$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; } 7681else 7682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5 7683$as_echo_n "checking whether cc understands -c and -o together... " >&6; } 7684fi 7685set dummy $CC; ac_cc=`$as_echo "$2" | 7686 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` 7687if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then : 7688 $as_echo_n "(cached) " >&6 7689else 7690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7691/* end confdefs.h. */ 7692 7693int 7694main () 7695{ 7696 7697 ; 7698 return 0; 7699} 7700_ACEOF 7701# Make sure it works both with $CC and with simple cc. 7702# We do the test twice because some compilers refuse to overwrite an 7703# existing .o file with -o, though they will create one. 7704ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5' 7705rm -f conftest2.* 7706if { { case "(($ac_try" in 7707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7708 *) ac_try_echo=$ac_try;; 7709esac 7710eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 7711$as_echo "$ac_try_echo"; } >&5 7712 (eval "$ac_try") 2>&5 7713 ac_status=$? 7714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7715 test $ac_status = 0; } && 7716 test -f conftest2.$ac_objext && { { case "(($ac_try" in 7717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7718 *) ac_try_echo=$ac_try;; 7719esac 7720eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 7721$as_echo "$ac_try_echo"; } >&5 7722 (eval "$ac_try") 2>&5 7723 ac_status=$? 7724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7725 test $ac_status = 0; }; 7726then 7727 eval ac_cv_prog_cc_${ac_cc}_c_o=yes 7728 if test "x$CC" != xcc; then 7729 # Test first that cc exists at all. 7730 if { ac_try='cc -c conftest.$ac_ext >&5' 7731 { { case "(($ac_try" in 7732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7733 *) ac_try_echo=$ac_try;; 7734esac 7735eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 7736$as_echo "$ac_try_echo"; } >&5 7737 (eval "$ac_try") 2>&5 7738 ac_status=$? 7739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7740 test $ac_status = 0; }; }; then 7741 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5' 7742 rm -f conftest2.* 7743 if { { case "(($ac_try" in 7744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7745 *) ac_try_echo=$ac_try;; 7746esac 7747eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 7748$as_echo "$ac_try_echo"; } >&5 7749 (eval "$ac_try") 2>&5 7750 ac_status=$? 7751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7752 test $ac_status = 0; } && 7753 test -f conftest2.$ac_objext && { { case "(($ac_try" in 7754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7755 *) ac_try_echo=$ac_try;; 7756esac 7757eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 7758$as_echo "$ac_try_echo"; } >&5 7759 (eval "$ac_try") 2>&5 7760 ac_status=$? 7761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7762 test $ac_status = 0; }; 7763 then 7764 # cc works too. 7765 : 7766 else 7767 # cc exists but doesn't like -o. 7768 eval ac_cv_prog_cc_${ac_cc}_c_o=no 7769 fi 7770 fi 7771 fi 7772else 7773 eval ac_cv_prog_cc_${ac_cc}_c_o=no 7774fi 7775rm -f core conftest* 7776 7777fi 7778if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then 7779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7780$as_echo "yes" >&6; } 7781else 7782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7783$as_echo "no" >&6; } 7784 7785$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h 7786 7787fi 7788 7789 7790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports C99 structure initialization" >&5 7791$as_echo_n "checking whether the compiler supports C99 structure initialization... " >&6; } 7792 7793 7794 ac_ext=c 7795ac_cpp='$CPP $CPPFLAGS' 7796ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7797ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7798ac_compiler_gnu=$ac_cv_c_compiler_gnu 7799 7800 7801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7802/* end confdefs.h. */ 7803 7804 struct foo_s {int i1; int i2;}; 7805 int main() { struct foo_s foo[] = { { .i1 = 1, .i2 = 1 }, { .i1 = 2, .i2 = 2 }, { .i1 = 0, .i2 = 0 } }; } 7806 7807_ACEOF 7808if ac_fn_c_try_compile "$LINENO"; then : 7809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7810$as_echo "yes" >&6; } 7811else 7812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7813$as_echo "no" >&6; } 7814 7815$as_echo "#define MISSING_C99_STRUCT_INIT 1" >>confdefs.h 7816 7817fi 7818rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7819 7820 ac_ext=c 7821ac_cpp='$CPP $CPPFLAGS' 7822ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7823ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7824ac_compiler_gnu=$ac_cv_c_compiler_gnu 7825 7826 7827 7828 7829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if we need ylwrap VPATH hack" >&5 7830$as_echo_n "checking to see if we need ylwrap VPATH hack... " >&6; } 7831ntp_vpath_hack="no" 7832case "$srcdir::${force_ntp_vpath_hack-no}" in 7833 .::*) 7834 ;; # VPATH_HACK path is for VPATH builds only. 7835 *::yes) 7836 ntp_vpath_hack="yes" 7837 ;; 7838 *::*) 7839 case "`${MAKE-make} -v -f /dev/null 2>/dev/null | grep 'GNU Make'`" in 7840 '') 7841 ntp_vpath_hack="yes" 7842 esac 7843esac 7844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_vpath_hack" >&5 7845$as_echo "$ntp_vpath_hack" >&6; } 7846 if test x$ntp_vpath_hack = xyes; then 7847 VPATH_HACK_TRUE= 7848 VPATH_HACK_FALSE='#' 7849else 7850 VPATH_HACK_TRUE='#' 7851 VPATH_HACK_FALSE= 7852fi 7853 7854 7855 7856 7857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for install dir and man conventions" >&5 7858$as_echo_n "checking for install dir and man conventions... " >&6; } 7859 7860 7861# Check whether --with-locfile was given. 7862if test "${with_locfile+set}" = set; then : 7863 withval=$with_locfile; 7864else 7865 with_locfile=no 7866 7867fi 7868 7869 7870( \ 7871 SENTINEL_DIR="$PWD" && \ 7872 cd $srcdir/sntp && \ 7873 case "$with_locfile" in \ 7874 yes|no|'') \ 7875 scripts/genLocInfo -d "$SENTINEL_DIR" \ 7876 ;; \ 7877 *) \ 7878 scripts/genLocInfo -d "$SENTINEL_DIR" -f "$with_locfile" \ 7879 ;; \ 7880 esac \ 7881) > genLocInfo.i 2> genLocInfo.err 7882. ./genLocInfo.i 7883 7884case "$GENLOCINFO" in 7885 OK) 7886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in file $GENLOCINFOFILE" >&5 7887$as_echo "in file $GENLOCINFOFILE" >&6; } 7888 rm genLocInfo.err genLocInfo.i 7889 ;; 7890 *) 7891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed." >&5 7892$as_echo "failed." >&6; } 7893 as_fn_error $? "Problem with genLocInfo!" "$LINENO" 5 7894 ;; 7895esac 7896 7897 if test "$CALC_TICKADJ_MS" ; then 7898 WANT_CALC_TICKADJ_MS_TRUE= 7899 WANT_CALC_TICKADJ_MS_FALSE='#' 7900else 7901 WANT_CALC_TICKADJ_MS_TRUE='#' 7902 WANT_CALC_TICKADJ_MS_FALSE= 7903fi 7904 7905 7906 7907 7908 7909 7910 7911 7912 7913 7914 7915 7916 7917 7918 7919 7920 7921 7922 7923 7924 7925 7926 7927 7928 7929 7930 7931 7932 7933 7934 7935 7936 7937 7938 7939 7940 7941 7942 7943 7944 7945 7946 7947 if test -z "$NTPSWEEP_NI" ; then 7948 INSTALL_NTPSWEEP_TRUE= 7949 INSTALL_NTPSWEEP_FALSE='#' 7950else 7951 INSTALL_NTPSWEEP_TRUE='#' 7952 INSTALL_NTPSWEEP_FALSE= 7953fi 7954 7955 7956 7957 7958 7959 7960 7961 7962 7963 7964 7965 7966 7967 7968 7969 7970 7971 7972 7973 7974 7975 7976 7977 7978 7979 7980 7981 7982 7983 7984 7985 7986 7987 7988 7989 7990 7991 7992 7993 7994 7995 if test -z "$UPDATE_LEAP_NI" ; then 7996 INSTALL_UPDATE_LEAP_TRUE= 7997 INSTALL_UPDATE_LEAP_FALSE='#' 7998else 7999 INSTALL_UPDATE_LEAP_TRUE='#' 8000 INSTALL_UPDATE_LEAP_FALSE= 8001fi 8002 8003 8004 8005 8006 8007# So far, the only shared library we might use is libopts. 8008# It's a small library - we might as well use a static version of it. 8009# Check whether --enable-shared was given. 8010if test "${enable_shared+set}" = set; then : 8011 enableval=$enable_shared; p=${PACKAGE-default} 8012 case $enableval in 8013 yes) enable_shared=yes ;; 8014 no) enable_shared=no ;; 8015 *) 8016 enable_shared=no 8017 # Look at the argument we got. We use all the common list separators. 8018 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8019 for pkg in $enableval; do 8020 IFS="$lt_save_ifs" 8021 if test "X$pkg" = "X$p"; then 8022 enable_shared=yes 8023 fi 8024 done 8025 IFS="$lt_save_ifs" 8026 ;; 8027 esac 8028else 8029 enable_shared=no 8030fi 8031 8032 8033 8034 8035 8036 8037 8038 8039 8040case `pwd` in 8041 *\ * | *\ *) 8042 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 8043$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 8044esac 8045 8046 8047 8048macro_version='2.4' 8049macro_revision='1.3293' 8050 8051 8052 8053 8054 8055 8056 8057 8058 8059 8060 8061 8062 8063ltmain="$ac_aux_dir/ltmain.sh" 8064 8065# Backslashify metacharacters that are still active within 8066# double-quoted strings. 8067sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 8068 8069# Same as above, but do not quote variable references. 8070double_quote_subst='s/\(["`\\]\)/\\\1/g' 8071 8072# Sed substitution to delay expansion of an escaped shell variable in a 8073# double_quote_subst'ed string. 8074delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 8075 8076# Sed substitution to delay expansion of an escaped single quote. 8077delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 8078 8079# Sed substitution to avoid accidental globbing in evaled expressions 8080no_glob_subst='s/\*/\\\*/g' 8081 8082ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 8083ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 8084ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 8085 8086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 8087$as_echo_n "checking how to print strings... " >&6; } 8088# Test print first, because it will be a builtin if present. 8089if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 8090 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 8091 ECHO='print -r --' 8092elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 8093 ECHO='printf %s\n' 8094else 8095 # Use this function as a fallback that always works. 8096 func_fallback_echo () 8097 { 8098 eval 'cat <<_LTECHO_EOF 8099$1 8100_LTECHO_EOF' 8101 } 8102 ECHO='func_fallback_echo' 8103fi 8104 8105# func_echo_all arg... 8106# Invoke $ECHO with all args, space-separated. 8107func_echo_all () 8108{ 8109 $ECHO "" 8110} 8111 8112case "$ECHO" in 8113 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 8114$as_echo "printf" >&6; } ;; 8115 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 8116$as_echo "print -r" >&6; } ;; 8117 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 8118$as_echo "cat" >&6; } ;; 8119esac 8120 8121 8122 8123 8124 8125 8126 8127 8128 8129 8130 8131 8132 8133 8134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 8135$as_echo_n "checking for a sed that does not truncate output... " >&6; } 8136if ${ac_cv_path_SED+:} false; then : 8137 $as_echo_n "(cached) " >&6 8138else 8139 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 8140 for ac_i in 1 2 3 4 5 6 7; do 8141 ac_script="$ac_script$as_nl$ac_script" 8142 done 8143 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 8144 { ac_script=; unset ac_script;} 8145 if test -z "$SED"; then 8146 ac_path_SED_found=false 8147 # Loop through the user's path and test for each of PROGNAME-LIST 8148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8149for as_dir in $PATH 8150do 8151 IFS=$as_save_IFS 8152 test -z "$as_dir" && as_dir=. 8153 for ac_prog in sed gsed; do 8154 for ac_exec_ext in '' $ac_executable_extensions; do 8155 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 8156 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 8157# Check for GNU ac_path_SED and select it if it is found. 8158 # Check for GNU $ac_path_SED 8159case `"$ac_path_SED" --version 2>&1` in 8160*GNU*) 8161 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 8162*) 8163 ac_count=0 8164 $as_echo_n 0123456789 >"conftest.in" 8165 while : 8166 do 8167 cat "conftest.in" "conftest.in" >"conftest.tmp" 8168 mv "conftest.tmp" "conftest.in" 8169 cp "conftest.in" "conftest.nl" 8170 $as_echo '' >> "conftest.nl" 8171 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 8172 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 8173 as_fn_arith $ac_count + 1 && ac_count=$as_val 8174 if test $ac_count -gt ${ac_path_SED_max-0}; then 8175 # Best one so far, save it but keep looking for a better one 8176 ac_cv_path_SED="$ac_path_SED" 8177 ac_path_SED_max=$ac_count 8178 fi 8179 # 10*(2^10) chars as input seems more than enough 8180 test $ac_count -gt 10 && break 8181 done 8182 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 8183esac 8184 8185 $ac_path_SED_found && break 3 8186 done 8187 done 8188 done 8189IFS=$as_save_IFS 8190 if test -z "$ac_cv_path_SED"; then 8191 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 8192 fi 8193else 8194 ac_cv_path_SED=$SED 8195fi 8196 8197fi 8198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 8199$as_echo "$ac_cv_path_SED" >&6; } 8200 SED="$ac_cv_path_SED" 8201 rm -f conftest.sed 8202 8203test -z "$SED" && SED=sed 8204Xsed="$SED -e 1s/^X//" 8205 8206 8207 8208 8209 8210 8211 8212 8213 8214 8215 8216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 8217$as_echo_n "checking for fgrep... " >&6; } 8218if ${ac_cv_path_FGREP+:} false; then : 8219 $as_echo_n "(cached) " >&6 8220else 8221 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 8222 then ac_cv_path_FGREP="$GREP -F" 8223 else 8224 if test -z "$FGREP"; then 8225 ac_path_FGREP_found=false 8226 # Loop through the user's path and test for each of PROGNAME-LIST 8227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8228for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 8229do 8230 IFS=$as_save_IFS 8231 test -z "$as_dir" && as_dir=. 8232 for ac_prog in fgrep; do 8233 for ac_exec_ext in '' $ac_executable_extensions; do 8234 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 8235 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue 8236# Check for GNU ac_path_FGREP and select it if it is found. 8237 # Check for GNU $ac_path_FGREP 8238case `"$ac_path_FGREP" --version 2>&1` in 8239*GNU*) 8240 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 8241*) 8242 ac_count=0 8243 $as_echo_n 0123456789 >"conftest.in" 8244 while : 8245 do 8246 cat "conftest.in" "conftest.in" >"conftest.tmp" 8247 mv "conftest.tmp" "conftest.in" 8248 cp "conftest.in" "conftest.nl" 8249 $as_echo 'FGREP' >> "conftest.nl" 8250 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 8251 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 8252 as_fn_arith $ac_count + 1 && ac_count=$as_val 8253 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 8254 # Best one so far, save it but keep looking for a better one 8255 ac_cv_path_FGREP="$ac_path_FGREP" 8256 ac_path_FGREP_max=$ac_count 8257 fi 8258 # 10*(2^10) chars as input seems more than enough 8259 test $ac_count -gt 10 && break 8260 done 8261 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 8262esac 8263 8264 $ac_path_FGREP_found && break 3 8265 done 8266 done 8267 done 8268IFS=$as_save_IFS 8269 if test -z "$ac_cv_path_FGREP"; then 8270 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 8271 fi 8272else 8273 ac_cv_path_FGREP=$FGREP 8274fi 8275 8276 fi 8277fi 8278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 8279$as_echo "$ac_cv_path_FGREP" >&6; } 8280 FGREP="$ac_cv_path_FGREP" 8281 8282 8283test -z "$GREP" && GREP=grep 8284 8285 8286 8287 8288 8289 8290 8291 8292 8293 8294 8295 8296 8297 8298 8299 8300 8301 8302 8303# Check whether --with-gnu-ld was given. 8304if test "${with_gnu_ld+set}" = set; then : 8305 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 8306else 8307 with_gnu_ld=no 8308fi 8309 8310ac_prog=ld 8311if test "$GCC" = yes; then 8312 # Check if gcc -print-prog-name=ld gives a path. 8313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 8314$as_echo_n "checking for ld used by $CC... " >&6; } 8315 case $host in 8316 *-*-mingw*) 8317 # gcc leaves a trailing carriage return which upsets mingw 8318 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 8319 *) 8320 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 8321 esac 8322 case $ac_prog in 8323 # Accept absolute paths. 8324 [\\/]* | ?:[\\/]*) 8325 re_direlt='/[^/][^/]*/\.\./' 8326 # Canonicalize the pathname of ld 8327 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 8328 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 8329 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 8330 done 8331 test -z "$LD" && LD="$ac_prog" 8332 ;; 8333 "") 8334 # If it fails, then pretend we aren't using GCC. 8335 ac_prog=ld 8336 ;; 8337 *) 8338 # If it is relative, then search for the first ld in PATH. 8339 with_gnu_ld=unknown 8340 ;; 8341 esac 8342elif test "$with_gnu_ld" = yes; then 8343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 8344$as_echo_n "checking for GNU ld... " >&6; } 8345else 8346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 8347$as_echo_n "checking for non-GNU ld... " >&6; } 8348fi 8349if ${lt_cv_path_LD+:} false; then : 8350 $as_echo_n "(cached) " >&6 8351else 8352 if test -z "$LD"; then 8353 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8354 for ac_dir in $PATH; do 8355 IFS="$lt_save_ifs" 8356 test -z "$ac_dir" && ac_dir=. 8357 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 8358 lt_cv_path_LD="$ac_dir/$ac_prog" 8359 # Check to see if the program is GNU ld. I'd rather use --version, 8360 # but apparently some variants of GNU ld only accept -v. 8361 # Break only if it was the GNU/non-GNU ld that we prefer. 8362 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 8363 *GNU* | *'with BFD'*) 8364 test "$with_gnu_ld" != no && break 8365 ;; 8366 *) 8367 test "$with_gnu_ld" != yes && break 8368 ;; 8369 esac 8370 fi 8371 done 8372 IFS="$lt_save_ifs" 8373else 8374 lt_cv_path_LD="$LD" # Let the user override the test with a path. 8375fi 8376fi 8377 8378LD="$lt_cv_path_LD" 8379if test -n "$LD"; then 8380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 8381$as_echo "$LD" >&6; } 8382else 8383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8384$as_echo "no" >&6; } 8385fi 8386test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 8387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 8388$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 8389if ${lt_cv_prog_gnu_ld+:} false; then : 8390 $as_echo_n "(cached) " >&6 8391else 8392 # I'd rather use --version here, but apparently some GNU lds only accept -v. 8393case `$LD -v 2>&1 </dev/null` in 8394*GNU* | *'with BFD'*) 8395 lt_cv_prog_gnu_ld=yes 8396 ;; 8397*) 8398 lt_cv_prog_gnu_ld=no 8399 ;; 8400esac 8401fi 8402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 8403$as_echo "$lt_cv_prog_gnu_ld" >&6; } 8404with_gnu_ld=$lt_cv_prog_gnu_ld 8405 8406 8407 8408 8409 8410 8411 8412 8413 8414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 8415$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 8416if ${lt_cv_path_NM+:} false; then : 8417 $as_echo_n "(cached) " >&6 8418else 8419 if test -n "$NM"; then 8420 # Let the user override the test. 8421 lt_cv_path_NM="$NM" 8422else 8423 lt_nm_to_check="${ac_tool_prefix}nm" 8424 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 8425 lt_nm_to_check="$lt_nm_to_check nm" 8426 fi 8427 for lt_tmp_nm in $lt_nm_to_check; do 8428 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8429 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 8430 IFS="$lt_save_ifs" 8431 test -z "$ac_dir" && ac_dir=. 8432 tmp_nm="$ac_dir/$lt_tmp_nm" 8433 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 8434 # Check to see if the nm accepts a BSD-compat flag. 8435 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 8436 # nm: unknown option "B" ignored 8437 # Tru64's nm complains that /dev/null is an invalid object file 8438 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 8439 */dev/null* | *'Invalid file or object type'*) 8440 lt_cv_path_NM="$tmp_nm -B" 8441 break 8442 ;; 8443 *) 8444 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 8445 */dev/null*) 8446 lt_cv_path_NM="$tmp_nm -p" 8447 break 8448 ;; 8449 *) 8450 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 8451 continue # so that we can try to find one that supports BSD flags 8452 ;; 8453 esac 8454 ;; 8455 esac 8456 fi 8457 done 8458 IFS="$lt_save_ifs" 8459 done 8460 : ${lt_cv_path_NM=no} 8461fi 8462fi 8463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 8464$as_echo "$lt_cv_path_NM" >&6; } 8465if test "$lt_cv_path_NM" != "no"; then 8466 NM="$lt_cv_path_NM" 8467else 8468 # Didn't find any BSD compatible name lister, look for dumpbin. 8469 if test -n "$DUMPBIN"; then : 8470 # Let the user override the test. 8471 else 8472 if test -n "$ac_tool_prefix"; then 8473 for ac_prog in dumpbin "link -dump" 8474 do 8475 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 8476set dummy $ac_tool_prefix$ac_prog; ac_word=$2 8477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8478$as_echo_n "checking for $ac_word... " >&6; } 8479if ${ac_cv_prog_DUMPBIN+:} false; then : 8480 $as_echo_n "(cached) " >&6 8481else 8482 if test -n "$DUMPBIN"; then 8483 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 8484else 8485as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8486for as_dir in $PATH 8487do 8488 IFS=$as_save_IFS 8489 test -z "$as_dir" && as_dir=. 8490 for ac_exec_ext in '' $ac_executable_extensions; do 8491 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8492 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 8493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8494 break 2 8495 fi 8496done 8497 done 8498IFS=$as_save_IFS 8499 8500fi 8501fi 8502DUMPBIN=$ac_cv_prog_DUMPBIN 8503if test -n "$DUMPBIN"; then 8504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 8505$as_echo "$DUMPBIN" >&6; } 8506else 8507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8508$as_echo "no" >&6; } 8509fi 8510 8511 8512 test -n "$DUMPBIN" && break 8513 done 8514fi 8515if test -z "$DUMPBIN"; then 8516 ac_ct_DUMPBIN=$DUMPBIN 8517 for ac_prog in dumpbin "link -dump" 8518do 8519 # Extract the first word of "$ac_prog", so it can be a program name with args. 8520set dummy $ac_prog; ac_word=$2 8521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8522$as_echo_n "checking for $ac_word... " >&6; } 8523if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 8524 $as_echo_n "(cached) " >&6 8525else 8526 if test -n "$ac_ct_DUMPBIN"; then 8527 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 8528else 8529as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8530for as_dir in $PATH 8531do 8532 IFS=$as_save_IFS 8533 test -z "$as_dir" && as_dir=. 8534 for ac_exec_ext in '' $ac_executable_extensions; do 8535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8536 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 8537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8538 break 2 8539 fi 8540done 8541 done 8542IFS=$as_save_IFS 8543 8544fi 8545fi 8546ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 8547if test -n "$ac_ct_DUMPBIN"; then 8548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 8549$as_echo "$ac_ct_DUMPBIN" >&6; } 8550else 8551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8552$as_echo "no" >&6; } 8553fi 8554 8555 8556 test -n "$ac_ct_DUMPBIN" && break 8557done 8558 8559 if test "x$ac_ct_DUMPBIN" = x; then 8560 DUMPBIN=":" 8561 else 8562 case $cross_compiling:$ac_tool_warned in 8563yes:) 8564{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8565$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8566ac_tool_warned=yes ;; 8567esac 8568 DUMPBIN=$ac_ct_DUMPBIN 8569 fi 8570fi 8571 8572 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 8573 *COFF*) 8574 DUMPBIN="$DUMPBIN -symbols" 8575 ;; 8576 *) 8577 DUMPBIN=: 8578 ;; 8579 esac 8580 fi 8581 8582 if test "$DUMPBIN" != ":"; then 8583 NM="$DUMPBIN" 8584 fi 8585fi 8586test -z "$NM" && NM=nm 8587 8588 8589 8590 8591 8592 8593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 8594$as_echo_n "checking the name lister ($NM) interface... " >&6; } 8595if ${lt_cv_nm_interface+:} false; then : 8596 $as_echo_n "(cached) " >&6 8597else 8598 lt_cv_nm_interface="BSD nm" 8599 echo "int some_variable = 0;" > conftest.$ac_ext 8600 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 8601 (eval "$ac_compile" 2>conftest.err) 8602 cat conftest.err >&5 8603 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 8604 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 8605 cat conftest.err >&5 8606 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 8607 cat conftest.out >&5 8608 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 8609 lt_cv_nm_interface="MS dumpbin" 8610 fi 8611 rm -f conftest* 8612fi 8613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 8614$as_echo "$lt_cv_nm_interface" >&6; } 8615 8616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 8617$as_echo_n "checking whether ln -s works... " >&6; } 8618LN_S=$as_ln_s 8619if test "$LN_S" = "ln -s"; then 8620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8621$as_echo "yes" >&6; } 8622else 8623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 8624$as_echo "no, using $LN_S" >&6; } 8625fi 8626 8627# find the maximum length of command line arguments 8628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 8629$as_echo_n "checking the maximum length of command line arguments... " >&6; } 8630if ${lt_cv_sys_max_cmd_len+:} false; then : 8631 $as_echo_n "(cached) " >&6 8632else 8633 i=0 8634 teststring="ABCD" 8635 8636 case $build_os in 8637 msdosdjgpp*) 8638 # On DJGPP, this test can blow up pretty badly due to problems in libc 8639 # (any single argument exceeding 2000 bytes causes a buffer overrun 8640 # during glob expansion). Even if it were fixed, the result of this 8641 # check would be larger than it should be. 8642 lt_cv_sys_max_cmd_len=12288; # 12K is about right 8643 ;; 8644 8645 gnu*) 8646 # Under GNU Hurd, this test is not required because there is 8647 # no limit to the length of command line arguments. 8648 # Libtool will interpret -1 as no limit whatsoever 8649 lt_cv_sys_max_cmd_len=-1; 8650 ;; 8651 8652 cygwin* | mingw* | cegcc*) 8653 # On Win9x/ME, this test blows up -- it succeeds, but takes 8654 # about 5 minutes as the teststring grows exponentially. 8655 # Worse, since 9x/ME are not pre-emptively multitasking, 8656 # you end up with a "frozen" computer, even though with patience 8657 # the test eventually succeeds (with a max line length of 256k). 8658 # Instead, let's just punt: use the minimum linelength reported by 8659 # all of the supported platforms: 8192 (on NT/2K/XP). 8660 lt_cv_sys_max_cmd_len=8192; 8661 ;; 8662 8663 mint*) 8664 # On MiNT this can take a long time and run out of memory. 8665 lt_cv_sys_max_cmd_len=8192; 8666 ;; 8667 8668 amigaos*) 8669 # On AmigaOS with pdksh, this test takes hours, literally. 8670 # So we just punt and use a minimum line length of 8192. 8671 lt_cv_sys_max_cmd_len=8192; 8672 ;; 8673 8674 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 8675 # This has been around since 386BSD, at least. Likely further. 8676 if test -x /sbin/sysctl; then 8677 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 8678 elif test -x /usr/sbin/sysctl; then 8679 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 8680 else 8681 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 8682 fi 8683 # And add a safety zone 8684 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 8685 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 8686 ;; 8687 8688 interix*) 8689 # We know the value 262144 and hardcode it with a safety zone (like BSD) 8690 lt_cv_sys_max_cmd_len=196608 8691 ;; 8692 8693 osf*) 8694 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 8695 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 8696 # nice to cause kernel panics so lets avoid the loop below. 8697 # First set a reasonable default. 8698 lt_cv_sys_max_cmd_len=16384 8699 # 8700 if test -x /sbin/sysconfig; then 8701 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 8702 *1*) lt_cv_sys_max_cmd_len=-1 ;; 8703 esac 8704 fi 8705 ;; 8706 sco3.2v5*) 8707 lt_cv_sys_max_cmd_len=102400 8708 ;; 8709 sysv5* | sco5v6* | sysv4.2uw2*) 8710 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 8711 if test -n "$kargmax"; then 8712 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 8713 else 8714 lt_cv_sys_max_cmd_len=32768 8715 fi 8716 ;; 8717 *) 8718 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 8719 if test -n "$lt_cv_sys_max_cmd_len"; then 8720 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 8721 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 8722 else 8723 # Make teststring a little bigger before we do anything with it. 8724 # a 1K string should be a reasonable start. 8725 for i in 1 2 3 4 5 6 7 8 ; do 8726 teststring=$teststring$teststring 8727 done 8728 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 8729 # If test is not a shell built-in, we'll probably end up computing a 8730 # maximum length that is only half of the actual maximum length, but 8731 # we can't tell. 8732 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ 8733 = "X$teststring$teststring"; } >/dev/null 2>&1 && 8734 test $i != 17 # 1/2 MB should be enough 8735 do 8736 i=`expr $i + 1` 8737 teststring=$teststring$teststring 8738 done 8739 # Only check the string length outside the loop. 8740 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 8741 teststring= 8742 # Add a significant safety factor because C++ compilers can tack on 8743 # massive amounts of additional arguments before passing them to the 8744 # linker. It appears as though 1/2 is a usable value. 8745 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 8746 fi 8747 ;; 8748 esac 8749 8750fi 8751 8752if test -n $lt_cv_sys_max_cmd_len ; then 8753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 8754$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 8755else 8756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 8757$as_echo "none" >&6; } 8758fi 8759max_cmd_len=$lt_cv_sys_max_cmd_len 8760 8761 8762 8763 8764 8765 8766: ${CP="cp -f"} 8767: ${MV="mv -f"} 8768: ${RM="rm -f"} 8769 8770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 8771$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 8772# Try some XSI features 8773xsi_shell=no 8774( _lt_dummy="a/b/c" 8775 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ 8776 = c,a/b,b/c, \ 8777 && eval 'test $(( 1 + 1 )) -eq 2 \ 8778 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 8779 && xsi_shell=yes 8780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 8781$as_echo "$xsi_shell" >&6; } 8782 8783 8784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 8785$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 8786lt_shell_append=no 8787( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 8788 >/dev/null 2>&1 \ 8789 && lt_shell_append=yes 8790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 8791$as_echo "$lt_shell_append" >&6; } 8792 8793 8794if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 8795 lt_unset=unset 8796else 8797 lt_unset=false 8798fi 8799 8800 8801 8802 8803 8804# test EBCDIC or ASCII 8805case `echo X|tr X '\101'` in 8806 A) # ASCII based system 8807 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 8808 lt_SP2NL='tr \040 \012' 8809 lt_NL2SP='tr \015\012 \040\040' 8810 ;; 8811 *) # EBCDIC based system 8812 lt_SP2NL='tr \100 \n' 8813 lt_NL2SP='tr \r\n \100\100' 8814 ;; 8815esac 8816 8817 8818 8819 8820 8821 8822 8823 8824 8825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 8826$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 8827if ${lt_cv_to_host_file_cmd+:} false; then : 8828 $as_echo_n "(cached) " >&6 8829else 8830 case $host in 8831 *-*-mingw* ) 8832 case $build in 8833 *-*-mingw* ) # actually msys 8834 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 8835 ;; 8836 *-*-cygwin* ) 8837 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 8838 ;; 8839 * ) # otherwise, assume *nix 8840 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 8841 ;; 8842 esac 8843 ;; 8844 *-*-cygwin* ) 8845 case $build in 8846 *-*-mingw* ) # actually msys 8847 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 8848 ;; 8849 *-*-cygwin* ) 8850 lt_cv_to_host_file_cmd=func_convert_file_noop 8851 ;; 8852 * ) # otherwise, assume *nix 8853 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 8854 ;; 8855 esac 8856 ;; 8857 * ) # unhandled hosts (and "normal" native builds) 8858 lt_cv_to_host_file_cmd=func_convert_file_noop 8859 ;; 8860esac 8861 8862fi 8863 8864to_host_file_cmd=$lt_cv_to_host_file_cmd 8865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 8866$as_echo "$lt_cv_to_host_file_cmd" >&6; } 8867 8868 8869 8870 8871 8872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 8873$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 8874if ${lt_cv_to_tool_file_cmd+:} false; then : 8875 $as_echo_n "(cached) " >&6 8876else 8877 #assume ordinary cross tools, or native build. 8878lt_cv_to_tool_file_cmd=func_convert_file_noop 8879case $host in 8880 *-*-mingw* ) 8881 case $build in 8882 *-*-mingw* ) # actually msys 8883 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 8884 ;; 8885 esac 8886 ;; 8887esac 8888 8889fi 8890 8891to_tool_file_cmd=$lt_cv_to_tool_file_cmd 8892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 8893$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 8894 8895 8896 8897 8898 8899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 8900$as_echo_n "checking for $LD option to reload object files... " >&6; } 8901if ${lt_cv_ld_reload_flag+:} false; then : 8902 $as_echo_n "(cached) " >&6 8903else 8904 lt_cv_ld_reload_flag='-r' 8905fi 8906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 8907$as_echo "$lt_cv_ld_reload_flag" >&6; } 8908reload_flag=$lt_cv_ld_reload_flag 8909case $reload_flag in 8910"" | " "*) ;; 8911*) reload_flag=" $reload_flag" ;; 8912esac 8913reload_cmds='$LD$reload_flag -o $output$reload_objs' 8914case $host_os in 8915 cygwin* | mingw* | pw32* | cegcc*) 8916 if test "$GCC" != yes; then 8917 reload_cmds=false 8918 fi 8919 ;; 8920 darwin*) 8921 if test "$GCC" = yes; then 8922 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 8923 else 8924 reload_cmds='$LD$reload_flag -o $output$reload_objs' 8925 fi 8926 ;; 8927esac 8928 8929 8930 8931 8932 8933 8934 8935 8936 8937if test -n "$ac_tool_prefix"; then 8938 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 8939set dummy ${ac_tool_prefix}objdump; ac_word=$2 8940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8941$as_echo_n "checking for $ac_word... " >&6; } 8942if ${ac_cv_prog_OBJDUMP+:} false; then : 8943 $as_echo_n "(cached) " >&6 8944else 8945 if test -n "$OBJDUMP"; then 8946 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 8947else 8948as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8949for as_dir in $PATH 8950do 8951 IFS=$as_save_IFS 8952 test -z "$as_dir" && as_dir=. 8953 for ac_exec_ext in '' $ac_executable_extensions; do 8954 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8955 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 8956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8957 break 2 8958 fi 8959done 8960 done 8961IFS=$as_save_IFS 8962 8963fi 8964fi 8965OBJDUMP=$ac_cv_prog_OBJDUMP 8966if test -n "$OBJDUMP"; then 8967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 8968$as_echo "$OBJDUMP" >&6; } 8969else 8970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8971$as_echo "no" >&6; } 8972fi 8973 8974 8975fi 8976if test -z "$ac_cv_prog_OBJDUMP"; then 8977 ac_ct_OBJDUMP=$OBJDUMP 8978 # Extract the first word of "objdump", so it can be a program name with args. 8979set dummy objdump; ac_word=$2 8980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8981$as_echo_n "checking for $ac_word... " >&6; } 8982if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 8983 $as_echo_n "(cached) " >&6 8984else 8985 if test -n "$ac_ct_OBJDUMP"; then 8986 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 8987else 8988as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8989for as_dir in $PATH 8990do 8991 IFS=$as_save_IFS 8992 test -z "$as_dir" && as_dir=. 8993 for ac_exec_ext in '' $ac_executable_extensions; do 8994 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8995 ac_cv_prog_ac_ct_OBJDUMP="objdump" 8996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8997 break 2 8998 fi 8999done 9000 done 9001IFS=$as_save_IFS 9002 9003fi 9004fi 9005ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 9006if test -n "$ac_ct_OBJDUMP"; then 9007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 9008$as_echo "$ac_ct_OBJDUMP" >&6; } 9009else 9010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9011$as_echo "no" >&6; } 9012fi 9013 9014 if test "x$ac_ct_OBJDUMP" = x; then 9015 OBJDUMP="false" 9016 else 9017 case $cross_compiling:$ac_tool_warned in 9018yes:) 9019{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9020$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9021ac_tool_warned=yes ;; 9022esac 9023 OBJDUMP=$ac_ct_OBJDUMP 9024 fi 9025else 9026 OBJDUMP="$ac_cv_prog_OBJDUMP" 9027fi 9028 9029test -z "$OBJDUMP" && OBJDUMP=objdump 9030 9031 9032 9033 9034 9035 9036 9037 9038 9039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 9040$as_echo_n "checking how to recognize dependent libraries... " >&6; } 9041if ${lt_cv_deplibs_check_method+:} false; then : 9042 $as_echo_n "(cached) " >&6 9043else 9044 lt_cv_file_magic_cmd='$MAGIC_CMD' 9045lt_cv_file_magic_test_file= 9046lt_cv_deplibs_check_method='unknown' 9047# Need to set the preceding variable on all platforms that support 9048# interlibrary dependencies. 9049# 'none' -- dependencies not supported. 9050# `unknown' -- same as none, but documents that we really don't know. 9051# 'pass_all' -- all dependencies passed with no checks. 9052# 'test_compile' -- check by making test program. 9053# 'file_magic [[regex]]' -- check by looking for files in library path 9054# which responds to the $file_magic_cmd with a given extended regex. 9055# If you have `file' or equivalent on your system and you're not sure 9056# whether `pass_all' will *always* work, you probably want this one. 9057 9058case $host_os in 9059aix[4-9]*) 9060 lt_cv_deplibs_check_method=pass_all 9061 ;; 9062 9063beos*) 9064 lt_cv_deplibs_check_method=pass_all 9065 ;; 9066 9067bsdi[45]*) 9068 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 9069 lt_cv_file_magic_cmd='/usr/bin/file -L' 9070 lt_cv_file_magic_test_file=/shlib/libc.so 9071 ;; 9072 9073cygwin*) 9074 # func_win32_libid is a shell function defined in ltmain.sh 9075 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 9076 lt_cv_file_magic_cmd='func_win32_libid' 9077 ;; 9078 9079mingw* | pw32*) 9080 # Base MSYS/MinGW do not provide the 'file' command needed by 9081 # func_win32_libid shell function, so use a weaker test based on 'objdump', 9082 # unless we find 'file', for example because we are cross-compiling. 9083 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 9084 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 9085 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 9086 lt_cv_file_magic_cmd='func_win32_libid' 9087 else 9088 # Keep this pattern in sync with the one in func_win32_libid. 9089 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 9090 lt_cv_file_magic_cmd='$OBJDUMP -f' 9091 fi 9092 ;; 9093 9094cegcc*) 9095 # use the weaker test based on 'objdump'. See mingw*. 9096 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 9097 lt_cv_file_magic_cmd='$OBJDUMP -f' 9098 ;; 9099 9100darwin* | rhapsody*) 9101 lt_cv_deplibs_check_method=pass_all 9102 ;; 9103 9104freebsd* | dragonfly*) 9105 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 9106 case $host_cpu in 9107 i*86 ) 9108 # Not sure whether the presence of OpenBSD here was a mistake. 9109 # Let's accept both of them until this is cleared up. 9110 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 9111 lt_cv_file_magic_cmd=/usr/bin/file 9112 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 9113 ;; 9114 esac 9115 else 9116 lt_cv_deplibs_check_method=pass_all 9117 fi 9118 ;; 9119 9120gnu*) 9121 lt_cv_deplibs_check_method=pass_all 9122 ;; 9123 9124haiku*) 9125 lt_cv_deplibs_check_method=pass_all 9126 ;; 9127 9128hpux10.20* | hpux11*) 9129 lt_cv_file_magic_cmd=/usr/bin/file 9130 case $host_cpu in 9131 ia64*) 9132 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 9133 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 9134 ;; 9135 hppa*64*) 9136 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]' 9137 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 9138 ;; 9139 *) 9140 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 9141 lt_cv_file_magic_test_file=/usr/lib/libc.sl 9142 ;; 9143 esac 9144 ;; 9145 9146interix[3-9]*) 9147 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 9148 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 9149 ;; 9150 9151irix5* | irix6* | nonstopux*) 9152 case $LD in 9153 *-32|*"-32 ") libmagic=32-bit;; 9154 *-n32|*"-n32 ") libmagic=N32;; 9155 *-64|*"-64 ") libmagic=64-bit;; 9156 *) libmagic=never-match;; 9157 esac 9158 lt_cv_deplibs_check_method=pass_all 9159 ;; 9160 9161# This must be Linux ELF. 9162linux* | k*bsd*-gnu | kopensolaris*-gnu) 9163 lt_cv_deplibs_check_method=pass_all 9164 ;; 9165 9166netbsd*) 9167 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 9168 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 9169 else 9170 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 9171 fi 9172 ;; 9173 9174newos6*) 9175 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 9176 lt_cv_file_magic_cmd=/usr/bin/file 9177 lt_cv_file_magic_test_file=/usr/lib/libnls.so 9178 ;; 9179 9180*nto* | *qnx*) 9181 lt_cv_deplibs_check_method=pass_all 9182 ;; 9183 9184openbsd*) 9185 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9186 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 9187 else 9188 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 9189 fi 9190 ;; 9191 9192osf3* | osf4* | osf5*) 9193 lt_cv_deplibs_check_method=pass_all 9194 ;; 9195 9196rdos*) 9197 lt_cv_deplibs_check_method=pass_all 9198 ;; 9199 9200solaris*) 9201 lt_cv_deplibs_check_method=pass_all 9202 ;; 9203 9204sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 9205 lt_cv_deplibs_check_method=pass_all 9206 ;; 9207 9208sysv4 | sysv4.3*) 9209 case $host_vendor in 9210 motorola) 9211 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]' 9212 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 9213 ;; 9214 ncr) 9215 lt_cv_deplibs_check_method=pass_all 9216 ;; 9217 sequent) 9218 lt_cv_file_magic_cmd='/bin/file' 9219 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 9220 ;; 9221 sni) 9222 lt_cv_file_magic_cmd='/bin/file' 9223 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 9224 lt_cv_file_magic_test_file=/lib/libc.so 9225 ;; 9226 siemens) 9227 lt_cv_deplibs_check_method=pass_all 9228 ;; 9229 pc) 9230 lt_cv_deplibs_check_method=pass_all 9231 ;; 9232 esac 9233 ;; 9234 9235tpf*) 9236 lt_cv_deplibs_check_method=pass_all 9237 ;; 9238esac 9239 9240fi 9241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 9242$as_echo "$lt_cv_deplibs_check_method" >&6; } 9243 9244file_magic_glob= 9245want_nocaseglob=no 9246if test "$build" = "$host"; then 9247 case $host_os in 9248 mingw* | pw32*) 9249 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 9250 want_nocaseglob=yes 9251 else 9252 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 9253 fi 9254 ;; 9255 esac 9256fi 9257 9258file_magic_cmd=$lt_cv_file_magic_cmd 9259deplibs_check_method=$lt_cv_deplibs_check_method 9260test -z "$deplibs_check_method" && deplibs_check_method=unknown 9261 9262 9263 9264 9265 9266 9267 9268 9269 9270 9271 9272 9273 9274 9275 9276 9277 9278 9279 9280 9281 9282 9283if test -n "$ac_tool_prefix"; then 9284 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 9285set dummy ${ac_tool_prefix}dlltool; ac_word=$2 9286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9287$as_echo_n "checking for $ac_word... " >&6; } 9288if ${ac_cv_prog_DLLTOOL+:} false; then : 9289 $as_echo_n "(cached) " >&6 9290else 9291 if test -n "$DLLTOOL"; then 9292 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 9293else 9294as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9295for as_dir in $PATH 9296do 9297 IFS=$as_save_IFS 9298 test -z "$as_dir" && as_dir=. 9299 for ac_exec_ext in '' $ac_executable_extensions; do 9300 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9301 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 9302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9303 break 2 9304 fi 9305done 9306 done 9307IFS=$as_save_IFS 9308 9309fi 9310fi 9311DLLTOOL=$ac_cv_prog_DLLTOOL 9312if test -n "$DLLTOOL"; then 9313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 9314$as_echo "$DLLTOOL" >&6; } 9315else 9316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9317$as_echo "no" >&6; } 9318fi 9319 9320 9321fi 9322if test -z "$ac_cv_prog_DLLTOOL"; then 9323 ac_ct_DLLTOOL=$DLLTOOL 9324 # Extract the first word of "dlltool", so it can be a program name with args. 9325set dummy dlltool; ac_word=$2 9326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9327$as_echo_n "checking for $ac_word... " >&6; } 9328if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 9329 $as_echo_n "(cached) " >&6 9330else 9331 if test -n "$ac_ct_DLLTOOL"; then 9332 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 9333else 9334as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9335for as_dir in $PATH 9336do 9337 IFS=$as_save_IFS 9338 test -z "$as_dir" && as_dir=. 9339 for ac_exec_ext in '' $ac_executable_extensions; do 9340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9341 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 9342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9343 break 2 9344 fi 9345done 9346 done 9347IFS=$as_save_IFS 9348 9349fi 9350fi 9351ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 9352if test -n "$ac_ct_DLLTOOL"; then 9353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 9354$as_echo "$ac_ct_DLLTOOL" >&6; } 9355else 9356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9357$as_echo "no" >&6; } 9358fi 9359 9360 if test "x$ac_ct_DLLTOOL" = x; then 9361 DLLTOOL="false" 9362 else 9363 case $cross_compiling:$ac_tool_warned in 9364yes:) 9365{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9366$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9367ac_tool_warned=yes ;; 9368esac 9369 DLLTOOL=$ac_ct_DLLTOOL 9370 fi 9371else 9372 DLLTOOL="$ac_cv_prog_DLLTOOL" 9373fi 9374 9375test -z "$DLLTOOL" && DLLTOOL=dlltool 9376 9377 9378 9379 9380 9381 9382 9383 9384 9385 9386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 9387$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 9388if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 9389 $as_echo_n "(cached) " >&6 9390else 9391 lt_cv_sharedlib_from_linklib_cmd='unknown' 9392 9393case $host_os in 9394cygwin* | mingw* | pw32* | cegcc*) 9395 # two different shell functions defined in ltmain.sh 9396 # decide which to use based on capabilities of $DLLTOOL 9397 case `$DLLTOOL --help 2>&1` in 9398 *--identify-strict*) 9399 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 9400 ;; 9401 *) 9402 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 9403 ;; 9404 esac 9405 ;; 9406*) 9407 # fallback: assume linklib IS sharedlib 9408 lt_cv_sharedlib_from_linklib_cmd="$ECHO" 9409 ;; 9410esac 9411 9412fi 9413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 9414$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 9415sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 9416test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 9417 9418 9419 9420 9421 9422 9423 9424if test -n "$ac_tool_prefix"; then 9425 for ac_prog in ar 9426 do 9427 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 9428set dummy $ac_tool_prefix$ac_prog; ac_word=$2 9429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9430$as_echo_n "checking for $ac_word... " >&6; } 9431if ${ac_cv_prog_AR+:} false; then : 9432 $as_echo_n "(cached) " >&6 9433else 9434 if test -n "$AR"; then 9435 ac_cv_prog_AR="$AR" # Let the user override the test. 9436else 9437as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9438for as_dir in $PATH 9439do 9440 IFS=$as_save_IFS 9441 test -z "$as_dir" && as_dir=. 9442 for ac_exec_ext in '' $ac_executable_extensions; do 9443 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9444 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 9445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9446 break 2 9447 fi 9448done 9449 done 9450IFS=$as_save_IFS 9451 9452fi 9453fi 9454AR=$ac_cv_prog_AR 9455if test -n "$AR"; then 9456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 9457$as_echo "$AR" >&6; } 9458else 9459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9460$as_echo "no" >&6; } 9461fi 9462 9463 9464 test -n "$AR" && break 9465 done 9466fi 9467if test -z "$AR"; then 9468 ac_ct_AR=$AR 9469 for ac_prog in ar 9470do 9471 # Extract the first word of "$ac_prog", so it can be a program name with args. 9472set dummy $ac_prog; ac_word=$2 9473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9474$as_echo_n "checking for $ac_word... " >&6; } 9475if ${ac_cv_prog_ac_ct_AR+:} false; then : 9476 $as_echo_n "(cached) " >&6 9477else 9478 if test -n "$ac_ct_AR"; then 9479 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 9480else 9481as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9482for as_dir in $PATH 9483do 9484 IFS=$as_save_IFS 9485 test -z "$as_dir" && as_dir=. 9486 for ac_exec_ext in '' $ac_executable_extensions; do 9487 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9488 ac_cv_prog_ac_ct_AR="$ac_prog" 9489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9490 break 2 9491 fi 9492done 9493 done 9494IFS=$as_save_IFS 9495 9496fi 9497fi 9498ac_ct_AR=$ac_cv_prog_ac_ct_AR 9499if test -n "$ac_ct_AR"; then 9500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 9501$as_echo "$ac_ct_AR" >&6; } 9502else 9503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9504$as_echo "no" >&6; } 9505fi 9506 9507 9508 test -n "$ac_ct_AR" && break 9509done 9510 9511 if test "x$ac_ct_AR" = x; then 9512 AR="false" 9513 else 9514 case $cross_compiling:$ac_tool_warned in 9515yes:) 9516{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9517$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9518ac_tool_warned=yes ;; 9519esac 9520 AR=$ac_ct_AR 9521 fi 9522fi 9523 9524: ${AR=ar} 9525: ${AR_FLAGS=cru} 9526 9527 9528 9529 9530 9531 9532 9533 9534 9535 9536 9537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 9538$as_echo_n "checking for archiver @FILE support... " >&6; } 9539if ${lt_cv_ar_at_file+:} false; then : 9540 $as_echo_n "(cached) " >&6 9541else 9542 lt_cv_ar_at_file=no 9543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9544/* end confdefs.h. */ 9545 9546int 9547main () 9548{ 9549 9550 ; 9551 return 0; 9552} 9553_ACEOF 9554if ac_fn_c_try_compile "$LINENO"; then : 9555 echo conftest.$ac_objext > conftest.lst 9556 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 9557 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 9558 (eval $lt_ar_try) 2>&5 9559 ac_status=$? 9560 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9561 test $ac_status = 0; } 9562 if test "$ac_status" -eq 0; then 9563 # Ensure the archiver fails upon bogus file names. 9564 rm -f conftest.$ac_objext libconftest.a 9565 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 9566 (eval $lt_ar_try) 2>&5 9567 ac_status=$? 9568 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9569 test $ac_status = 0; } 9570 if test "$ac_status" -ne 0; then 9571 lt_cv_ar_at_file=@ 9572 fi 9573 fi 9574 rm -f conftest.* libconftest.a 9575 9576fi 9577rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9578 9579fi 9580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 9581$as_echo "$lt_cv_ar_at_file" >&6; } 9582 9583if test "x$lt_cv_ar_at_file" = xno; then 9584 archiver_list_spec= 9585else 9586 archiver_list_spec=$lt_cv_ar_at_file 9587fi 9588 9589 9590 9591 9592 9593 9594 9595if test -n "$ac_tool_prefix"; then 9596 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 9597set dummy ${ac_tool_prefix}strip; ac_word=$2 9598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9599$as_echo_n "checking for $ac_word... " >&6; } 9600if ${ac_cv_prog_STRIP+:} false; then : 9601 $as_echo_n "(cached) " >&6 9602else 9603 if test -n "$STRIP"; then 9604 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 9605else 9606as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9607for as_dir in $PATH 9608do 9609 IFS=$as_save_IFS 9610 test -z "$as_dir" && as_dir=. 9611 for ac_exec_ext in '' $ac_executable_extensions; do 9612 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9613 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 9614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9615 break 2 9616 fi 9617done 9618 done 9619IFS=$as_save_IFS 9620 9621fi 9622fi 9623STRIP=$ac_cv_prog_STRIP 9624if test -n "$STRIP"; then 9625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 9626$as_echo "$STRIP" >&6; } 9627else 9628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9629$as_echo "no" >&6; } 9630fi 9631 9632 9633fi 9634if test -z "$ac_cv_prog_STRIP"; then 9635 ac_ct_STRIP=$STRIP 9636 # Extract the first word of "strip", so it can be a program name with args. 9637set dummy strip; ac_word=$2 9638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9639$as_echo_n "checking for $ac_word... " >&6; } 9640if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 9641 $as_echo_n "(cached) " >&6 9642else 9643 if test -n "$ac_ct_STRIP"; then 9644 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 9645else 9646as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9647for as_dir in $PATH 9648do 9649 IFS=$as_save_IFS 9650 test -z "$as_dir" && as_dir=. 9651 for ac_exec_ext in '' $ac_executable_extensions; do 9652 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9653 ac_cv_prog_ac_ct_STRIP="strip" 9654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9655 break 2 9656 fi 9657done 9658 done 9659IFS=$as_save_IFS 9660 9661fi 9662fi 9663ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 9664if test -n "$ac_ct_STRIP"; then 9665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 9666$as_echo "$ac_ct_STRIP" >&6; } 9667else 9668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9669$as_echo "no" >&6; } 9670fi 9671 9672 if test "x$ac_ct_STRIP" = x; then 9673 STRIP=":" 9674 else 9675 case $cross_compiling:$ac_tool_warned in 9676yes:) 9677{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9678$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9679ac_tool_warned=yes ;; 9680esac 9681 STRIP=$ac_ct_STRIP 9682 fi 9683else 9684 STRIP="$ac_cv_prog_STRIP" 9685fi 9686 9687test -z "$STRIP" && STRIP=: 9688 9689 9690 9691 9692 9693 9694if test -n "$ac_tool_prefix"; then 9695 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 9696set dummy ${ac_tool_prefix}ranlib; ac_word=$2 9697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9698$as_echo_n "checking for $ac_word... " >&6; } 9699if ${ac_cv_prog_RANLIB+:} false; then : 9700 $as_echo_n "(cached) " >&6 9701else 9702 if test -n "$RANLIB"; then 9703 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 9704else 9705as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9706for as_dir in $PATH 9707do 9708 IFS=$as_save_IFS 9709 test -z "$as_dir" && as_dir=. 9710 for ac_exec_ext in '' $ac_executable_extensions; do 9711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9712 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 9713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9714 break 2 9715 fi 9716done 9717 done 9718IFS=$as_save_IFS 9719 9720fi 9721fi 9722RANLIB=$ac_cv_prog_RANLIB 9723if test -n "$RANLIB"; then 9724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 9725$as_echo "$RANLIB" >&6; } 9726else 9727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9728$as_echo "no" >&6; } 9729fi 9730 9731 9732fi 9733if test -z "$ac_cv_prog_RANLIB"; then 9734 ac_ct_RANLIB=$RANLIB 9735 # Extract the first word of "ranlib", so it can be a program name with args. 9736set dummy ranlib; ac_word=$2 9737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9738$as_echo_n "checking for $ac_word... " >&6; } 9739if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 9740 $as_echo_n "(cached) " >&6 9741else 9742 if test -n "$ac_ct_RANLIB"; then 9743 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 9744else 9745as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9746for as_dir in $PATH 9747do 9748 IFS=$as_save_IFS 9749 test -z "$as_dir" && as_dir=. 9750 for ac_exec_ext in '' $ac_executable_extensions; do 9751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9752 ac_cv_prog_ac_ct_RANLIB="ranlib" 9753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9754 break 2 9755 fi 9756done 9757 done 9758IFS=$as_save_IFS 9759 9760fi 9761fi 9762ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 9763if test -n "$ac_ct_RANLIB"; then 9764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 9765$as_echo "$ac_ct_RANLIB" >&6; } 9766else 9767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9768$as_echo "no" >&6; } 9769fi 9770 9771 if test "x$ac_ct_RANLIB" = x; then 9772 RANLIB=":" 9773 else 9774 case $cross_compiling:$ac_tool_warned in 9775yes:) 9776{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9777$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9778ac_tool_warned=yes ;; 9779esac 9780 RANLIB=$ac_ct_RANLIB 9781 fi 9782else 9783 RANLIB="$ac_cv_prog_RANLIB" 9784fi 9785 9786test -z "$RANLIB" && RANLIB=: 9787 9788 9789 9790 9791 9792 9793# Determine commands to create old-style static archives. 9794old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 9795old_postinstall_cmds='chmod 644 $oldlib' 9796old_postuninstall_cmds= 9797 9798if test -n "$RANLIB"; then 9799 case $host_os in 9800 openbsd*) 9801 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 9802 ;; 9803 *) 9804 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 9805 ;; 9806 esac 9807 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 9808fi 9809 9810case $host_os in 9811 darwin*) 9812 lock_old_archive_extraction=yes ;; 9813 *) 9814 lock_old_archive_extraction=no ;; 9815esac 9816 9817 9818 9819 9820 9821 9822 9823 9824 9825 9826 9827 9828 9829 9830 9831 9832 9833 9834 9835 9836 9837 9838 9839 9840 9841 9842 9843 9844 9845 9846 9847 9848 9849 9850 9851 9852 9853 9854 9855# If no C compiler was specified, use CC. 9856LTCC=${LTCC-"$CC"} 9857 9858# If no C compiler flags were specified, use CFLAGS. 9859LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 9860 9861# Allow CC to be a program name with arguments. 9862compiler=$CC 9863 9864 9865# Check for command to grab the raw symbol name followed by C symbol from nm. 9866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 9867$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 9868if ${lt_cv_sys_global_symbol_pipe+:} false; then : 9869 $as_echo_n "(cached) " >&6 9870else 9871 9872# These are sane defaults that work on at least a few old systems. 9873# [They come from Ultrix. What could be older than Ultrix?!! ;)] 9874 9875# Character class describing NM global symbol codes. 9876symcode='[BCDEGRST]' 9877 9878# Regexp to match symbols that can be accessed directly from C. 9879sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 9880 9881# Define system-specific variables. 9882case $host_os in 9883aix*) 9884 symcode='[BCDT]' 9885 ;; 9886cygwin* | mingw* | pw32* | cegcc*) 9887 symcode='[ABCDGISTW]' 9888 ;; 9889hpux*) 9890 if test "$host_cpu" = ia64; then 9891 symcode='[ABCDEGRST]' 9892 fi 9893 ;; 9894irix* | nonstopux*) 9895 symcode='[BCDEGRST]' 9896 ;; 9897osf*) 9898 symcode='[BCDEGQRST]' 9899 ;; 9900solaris*) 9901 symcode='[BDRT]' 9902 ;; 9903sco3.2v5*) 9904 symcode='[DT]' 9905 ;; 9906sysv4.2uw2*) 9907 symcode='[DT]' 9908 ;; 9909sysv5* | sco5v6* | unixware* | OpenUNIX*) 9910 symcode='[ABDT]' 9911 ;; 9912sysv4) 9913 symcode='[DFNSTU]' 9914 ;; 9915esac 9916 9917# If we're using GNU nm, then use its standard symbol codes. 9918case `$NM -V 2>&1` in 9919*GNU* | *'with BFD'*) 9920 symcode='[ABCDGIRSTW]' ;; 9921esac 9922 9923# Transform an extracted symbol line into a proper C declaration. 9924# Some systems (esp. on ia64) link data and code symbols differently, 9925# so use this general approach. 9926lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 9927 9928# Transform an extracted symbol line into symbol name and symbol address 9929lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 9930lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" 9931 9932# Handle CRLF in mingw tool chain 9933opt_cr= 9934case $build_os in 9935mingw*) 9936 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 9937 ;; 9938esac 9939 9940# Try without a prefix underscore, then with it. 9941for ac_symprfx in "" "_"; do 9942 9943 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 9944 symxfrm="\\1 $ac_symprfx\\2 \\2" 9945 9946 # Write the raw and C identifiers. 9947 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 9948 # Fake it for dumpbin and say T for any non-static function 9949 # and D for any global variable. 9950 # Also find C++ and __fastcall symbols from MSVC++, 9951 # which start with @ or ?. 9952 lt_cv_sys_global_symbol_pipe="$AWK '"\ 9953" {last_section=section; section=\$ 3};"\ 9954" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 9955" \$ 0!~/External *\|/{next};"\ 9956" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 9957" {if(hide[section]) next};"\ 9958" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 9959" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 9960" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 9961" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 9962" ' prfx=^$ac_symprfx" 9963 else 9964 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 9965 fi 9966 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 9967 9968 # Check to see that the pipe works correctly. 9969 pipe_works=no 9970 9971 rm -f conftest* 9972 cat > conftest.$ac_ext <<_LT_EOF 9973#ifdef __cplusplus 9974extern "C" { 9975#endif 9976char nm_test_var; 9977void nm_test_func(void); 9978void nm_test_func(void){} 9979#ifdef __cplusplus 9980} 9981#endif 9982int main(){nm_test_var='a';nm_test_func();return(0);} 9983_LT_EOF 9984 9985 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9986 (eval $ac_compile) 2>&5 9987 ac_status=$? 9988 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9989 test $ac_status = 0; }; then 9990 # Now try to grab the symbols. 9991 nlist=conftest.nm 9992 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 9993 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 9994 ac_status=$? 9995 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9996 test $ac_status = 0; } && test -s "$nlist"; then 9997 # Try sorting and uniquifying the output. 9998 if sort "$nlist" | uniq > "$nlist"T; then 9999 mv -f "$nlist"T "$nlist" 10000 else 10001 rm -f "$nlist"T 10002 fi 10003 10004 # Make sure that we snagged all the symbols we need. 10005 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 10006 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 10007 cat <<_LT_EOF > conftest.$ac_ext 10008/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 10009#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) 10010/* DATA imports from DLLs on WIN32 con't be const, because runtime 10011 relocations are performed -- see ld's documentation on pseudo-relocs. */ 10012# define LT_DLSYM_CONST 10013#elif defined(__osf__) 10014/* This system does not cope well with relocations in const data. */ 10015# define LT_DLSYM_CONST 10016#else 10017# define LT_DLSYM_CONST const 10018#endif 10019 10020#ifdef __cplusplus 10021extern "C" { 10022#endif 10023 10024_LT_EOF 10025 # Now generate the symbol file. 10026 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 10027 10028 cat <<_LT_EOF >> conftest.$ac_ext 10029 10030/* The mapping between symbol names and symbols. */ 10031LT_DLSYM_CONST struct { 10032 const char *name; 10033 void *address; 10034} 10035lt__PROGRAM__LTX_preloaded_symbols[] = 10036{ 10037 { "@PROGRAM@", (void *) 0 }, 10038_LT_EOF 10039 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 10040 cat <<\_LT_EOF >> conftest.$ac_ext 10041 {0, (void *) 0} 10042}; 10043 10044/* This works around a problem in FreeBSD linker */ 10045#ifdef FREEBSD_WORKAROUND 10046static const void *lt_preloaded_setup() { 10047 return lt__PROGRAM__LTX_preloaded_symbols; 10048} 10049#endif 10050 10051#ifdef __cplusplus 10052} 10053#endif 10054_LT_EOF 10055 # Now try linking the two files. 10056 mv conftest.$ac_objext conftstm.$ac_objext 10057 lt_globsym_save_LIBS=$LIBS 10058 lt_globsym_save_CFLAGS=$CFLAGS 10059 LIBS="conftstm.$ac_objext" 10060 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 10061 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 10062 (eval $ac_link) 2>&5 10063 ac_status=$? 10064 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10065 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 10066 pipe_works=yes 10067 fi 10068 LIBS=$lt_globsym_save_LIBS 10069 CFLAGS=$lt_globsym_save_CFLAGS 10070 else 10071 echo "cannot find nm_test_func in $nlist" >&5 10072 fi 10073 else 10074 echo "cannot find nm_test_var in $nlist" >&5 10075 fi 10076 else 10077 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 10078 fi 10079 else 10080 echo "$progname: failed program was:" >&5 10081 cat conftest.$ac_ext >&5 10082 fi 10083 rm -rf conftest* conftst* 10084 10085 # Do not use the global_symbol_pipe unless it works. 10086 if test "$pipe_works" = yes; then 10087 break 10088 else 10089 lt_cv_sys_global_symbol_pipe= 10090 fi 10091done 10092 10093fi 10094 10095if test -z "$lt_cv_sys_global_symbol_pipe"; then 10096 lt_cv_sys_global_symbol_to_cdecl= 10097fi 10098if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 10099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 10100$as_echo "failed" >&6; } 10101else 10102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 10103$as_echo "ok" >&6; } 10104fi 10105 10106# Response file support. 10107if test "$lt_cv_nm_interface" = "MS dumpbin"; then 10108 nm_file_list_spec='@' 10109elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 10110 nm_file_list_spec='@' 10111fi 10112 10113 10114 10115 10116 10117 10118 10119 10120 10121 10122 10123 10124 10125 10126 10127 10128 10129 10130 10131 10132 10133 10134 10135 10136 10137 10138 10139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 10140$as_echo_n "checking for sysroot... " >&6; } 10141 10142# Check whether --with-sysroot was given. 10143if test "${with_sysroot+set}" = set; then : 10144 withval=$with_sysroot; 10145else 10146 with_sysroot=no 10147fi 10148 10149 10150lt_sysroot= 10151case ${with_sysroot} in #( 10152 yes) 10153 if test "$GCC" = yes; then 10154 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 10155 fi 10156 ;; #( 10157 /*) 10158 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 10159 ;; #( 10160 no|'') 10161 ;; #( 10162 *) 10163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 10164$as_echo "${with_sysroot}" >&6; } 10165 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 10166 ;; 10167esac 10168 10169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 10170$as_echo "${lt_sysroot:-no}" >&6; } 10171 10172 10173 10174 10175 10176# Check whether --enable-libtool-lock was given. 10177if test "${enable_libtool_lock+set}" = set; then : 10178 enableval=$enable_libtool_lock; 10179fi 10180 10181test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 10182 10183# Some flags need to be propagated to the compiler or linker for good 10184# libtool support. 10185case $host in 10186ia64-*-hpux*) 10187 # Find out which ABI we are using. 10188 echo 'int i;' > conftest.$ac_ext 10189 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10190 (eval $ac_compile) 2>&5 10191 ac_status=$? 10192 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10193 test $ac_status = 0; }; then 10194 case `/usr/bin/file conftest.$ac_objext` in 10195 *ELF-32*) 10196 HPUX_IA64_MODE="32" 10197 ;; 10198 *ELF-64*) 10199 HPUX_IA64_MODE="64" 10200 ;; 10201 esac 10202 fi 10203 rm -rf conftest* 10204 ;; 10205*-*-irix6*) 10206 # Find out which ABI we are using. 10207 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 10208 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10209 (eval $ac_compile) 2>&5 10210 ac_status=$? 10211 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10212 test $ac_status = 0; }; then 10213 if test "$lt_cv_prog_gnu_ld" = yes; then 10214 case `/usr/bin/file conftest.$ac_objext` in 10215 *32-bit*) 10216 LD="${LD-ld} -melf32bsmip" 10217 ;; 10218 *N32*) 10219 LD="${LD-ld} -melf32bmipn32" 10220 ;; 10221 *64-bit*) 10222 LD="${LD-ld} -melf64bmip" 10223 ;; 10224 esac 10225 else 10226 case `/usr/bin/file conftest.$ac_objext` in 10227 *32-bit*) 10228 LD="${LD-ld} -32" 10229 ;; 10230 *N32*) 10231 LD="${LD-ld} -n32" 10232 ;; 10233 *64-bit*) 10234 LD="${LD-ld} -64" 10235 ;; 10236 esac 10237 fi 10238 fi 10239 rm -rf conftest* 10240 ;; 10241 10242x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 10243s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 10244 # Find out which ABI we are using. 10245 echo 'int i;' > conftest.$ac_ext 10246 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10247 (eval $ac_compile) 2>&5 10248 ac_status=$? 10249 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10250 test $ac_status = 0; }; then 10251 case `/usr/bin/file conftest.o` in 10252 *32-bit*) 10253 case $host in 10254 x86_64-*kfreebsd*-gnu) 10255 LD="${LD-ld} -m elf_i386_fbsd" 10256 ;; 10257 x86_64-*linux*) 10258 LD="${LD-ld} -m elf_i386" 10259 ;; 10260 ppc64-*linux*|powerpc64-*linux*) 10261 LD="${LD-ld} -m elf32ppclinux" 10262 ;; 10263 s390x-*linux*) 10264 LD="${LD-ld} -m elf_s390" 10265 ;; 10266 sparc64-*linux*) 10267 LD="${LD-ld} -m elf32_sparc" 10268 ;; 10269 esac 10270 ;; 10271 *64-bit*) 10272 case $host in 10273 x86_64-*kfreebsd*-gnu) 10274 LD="${LD-ld} -m elf_x86_64_fbsd" 10275 ;; 10276 x86_64-*linux*) 10277 LD="${LD-ld} -m elf_x86_64" 10278 ;; 10279 ppc*-*linux*|powerpc*-*linux*) 10280 LD="${LD-ld} -m elf64ppc" 10281 ;; 10282 s390*-*linux*|s390*-*tpf*) 10283 LD="${LD-ld} -m elf64_s390" 10284 ;; 10285 sparc*-*linux*) 10286 LD="${LD-ld} -m elf64_sparc" 10287 ;; 10288 esac 10289 ;; 10290 esac 10291 fi 10292 rm -rf conftest* 10293 ;; 10294 10295*-*-sco3.2v5*) 10296 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 10297 SAVE_CFLAGS="$CFLAGS" 10298 CFLAGS="$CFLAGS -belf" 10299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 10300$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 10301if ${lt_cv_cc_needs_belf+:} false; then : 10302 $as_echo_n "(cached) " >&6 10303else 10304 ac_ext=c 10305ac_cpp='$CPP $CPPFLAGS' 10306ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10307ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10308ac_compiler_gnu=$ac_cv_c_compiler_gnu 10309 10310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10311/* end confdefs.h. */ 10312 10313int 10314main () 10315{ 10316 10317 ; 10318 return 0; 10319} 10320_ACEOF 10321if ac_fn_c_try_link "$LINENO"; then : 10322 lt_cv_cc_needs_belf=yes 10323else 10324 lt_cv_cc_needs_belf=no 10325fi 10326rm -f core conftest.err conftest.$ac_objext \ 10327 conftest$ac_exeext conftest.$ac_ext 10328 ac_ext=c 10329ac_cpp='$CPP $CPPFLAGS' 10330ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10331ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10332ac_compiler_gnu=$ac_cv_c_compiler_gnu 10333 10334fi 10335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 10336$as_echo "$lt_cv_cc_needs_belf" >&6; } 10337 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 10338 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 10339 CFLAGS="$SAVE_CFLAGS" 10340 fi 10341 ;; 10342sparc*-*solaris*) 10343 # Find out which ABI we are using. 10344 echo 'int i;' > conftest.$ac_ext 10345 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10346 (eval $ac_compile) 2>&5 10347 ac_status=$? 10348 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10349 test $ac_status = 0; }; then 10350 case `/usr/bin/file conftest.o` in 10351 *64-bit*) 10352 case $lt_cv_prog_gnu_ld in 10353 yes*) LD="${LD-ld} -m elf64_sparc" ;; 10354 *) 10355 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 10356 LD="${LD-ld} -64" 10357 fi 10358 ;; 10359 esac 10360 ;; 10361 esac 10362 fi 10363 rm -rf conftest* 10364 ;; 10365esac 10366 10367need_locks="$enable_libtool_lock" 10368 10369if test -n "$ac_tool_prefix"; then 10370 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 10371set dummy ${ac_tool_prefix}mt; ac_word=$2 10372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10373$as_echo_n "checking for $ac_word... " >&6; } 10374if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 10375 $as_echo_n "(cached) " >&6 10376else 10377 if test -n "$MANIFEST_TOOL"; then 10378 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 10379else 10380as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10381for as_dir in $PATH 10382do 10383 IFS=$as_save_IFS 10384 test -z "$as_dir" && as_dir=. 10385 for ac_exec_ext in '' $ac_executable_extensions; do 10386 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10387 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 10388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10389 break 2 10390 fi 10391done 10392 done 10393IFS=$as_save_IFS 10394 10395fi 10396fi 10397MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 10398if test -n "$MANIFEST_TOOL"; then 10399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 10400$as_echo "$MANIFEST_TOOL" >&6; } 10401else 10402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10403$as_echo "no" >&6; } 10404fi 10405 10406 10407fi 10408if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 10409 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 10410 # Extract the first word of "mt", so it can be a program name with args. 10411set dummy mt; ac_word=$2 10412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10413$as_echo_n "checking for $ac_word... " >&6; } 10414if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 10415 $as_echo_n "(cached) " >&6 10416else 10417 if test -n "$ac_ct_MANIFEST_TOOL"; then 10418 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 10419else 10420as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10421for as_dir in $PATH 10422do 10423 IFS=$as_save_IFS 10424 test -z "$as_dir" && as_dir=. 10425 for ac_exec_ext in '' $ac_executable_extensions; do 10426 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10427 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 10428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10429 break 2 10430 fi 10431done 10432 done 10433IFS=$as_save_IFS 10434 10435fi 10436fi 10437ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 10438if test -n "$ac_ct_MANIFEST_TOOL"; then 10439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 10440$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 10441else 10442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10443$as_echo "no" >&6; } 10444fi 10445 10446 if test "x$ac_ct_MANIFEST_TOOL" = x; then 10447 MANIFEST_TOOL=":" 10448 else 10449 case $cross_compiling:$ac_tool_warned in 10450yes:) 10451{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10452$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10453ac_tool_warned=yes ;; 10454esac 10455 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 10456 fi 10457else 10458 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 10459fi 10460 10461test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 10462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 10463$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 10464if ${lt_cv_path_mainfest_tool+:} false; then : 10465 $as_echo_n "(cached) " >&6 10466else 10467 lt_cv_path_mainfest_tool=no 10468 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 10469 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 10470 cat conftest.err >&5 10471 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 10472 lt_cv_path_mainfest_tool=yes 10473 fi 10474 rm -f conftest* 10475fi 10476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 10477$as_echo "$lt_cv_path_mainfest_tool" >&6; } 10478if test "x$lt_cv_path_mainfest_tool" != xyes; then 10479 MANIFEST_TOOL=: 10480fi 10481 10482 10483 10484 10485 10486 10487 case $host_os in 10488 rhapsody* | darwin*) 10489 if test -n "$ac_tool_prefix"; then 10490 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 10491set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 10492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10493$as_echo_n "checking for $ac_word... " >&6; } 10494if ${ac_cv_prog_DSYMUTIL+:} false; then : 10495 $as_echo_n "(cached) " >&6 10496else 10497 if test -n "$DSYMUTIL"; then 10498 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 10499else 10500as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10501for as_dir in $PATH 10502do 10503 IFS=$as_save_IFS 10504 test -z "$as_dir" && as_dir=. 10505 for ac_exec_ext in '' $ac_executable_extensions; do 10506 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10507 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 10508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10509 break 2 10510 fi 10511done 10512 done 10513IFS=$as_save_IFS 10514 10515fi 10516fi 10517DSYMUTIL=$ac_cv_prog_DSYMUTIL 10518if test -n "$DSYMUTIL"; then 10519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 10520$as_echo "$DSYMUTIL" >&6; } 10521else 10522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10523$as_echo "no" >&6; } 10524fi 10525 10526 10527fi 10528if test -z "$ac_cv_prog_DSYMUTIL"; then 10529 ac_ct_DSYMUTIL=$DSYMUTIL 10530 # Extract the first word of "dsymutil", so it can be a program name with args. 10531set dummy dsymutil; ac_word=$2 10532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10533$as_echo_n "checking for $ac_word... " >&6; } 10534if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 10535 $as_echo_n "(cached) " >&6 10536else 10537 if test -n "$ac_ct_DSYMUTIL"; then 10538 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 10539else 10540as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10541for as_dir in $PATH 10542do 10543 IFS=$as_save_IFS 10544 test -z "$as_dir" && as_dir=. 10545 for ac_exec_ext in '' $ac_executable_extensions; do 10546 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10547 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 10548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10549 break 2 10550 fi 10551done 10552 done 10553IFS=$as_save_IFS 10554 10555fi 10556fi 10557ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 10558if test -n "$ac_ct_DSYMUTIL"; then 10559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 10560$as_echo "$ac_ct_DSYMUTIL" >&6; } 10561else 10562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10563$as_echo "no" >&6; } 10564fi 10565 10566 if test "x$ac_ct_DSYMUTIL" = x; then 10567 DSYMUTIL=":" 10568 else 10569 case $cross_compiling:$ac_tool_warned in 10570yes:) 10571{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10572$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10573ac_tool_warned=yes ;; 10574esac 10575 DSYMUTIL=$ac_ct_DSYMUTIL 10576 fi 10577else 10578 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 10579fi 10580 10581 if test -n "$ac_tool_prefix"; then 10582 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 10583set dummy ${ac_tool_prefix}nmedit; ac_word=$2 10584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10585$as_echo_n "checking for $ac_word... " >&6; } 10586if ${ac_cv_prog_NMEDIT+:} false; then : 10587 $as_echo_n "(cached) " >&6 10588else 10589 if test -n "$NMEDIT"; then 10590 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 10591else 10592as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10593for as_dir in $PATH 10594do 10595 IFS=$as_save_IFS 10596 test -z "$as_dir" && as_dir=. 10597 for ac_exec_ext in '' $ac_executable_extensions; do 10598 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10599 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 10600 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10601 break 2 10602 fi 10603done 10604 done 10605IFS=$as_save_IFS 10606 10607fi 10608fi 10609NMEDIT=$ac_cv_prog_NMEDIT 10610if test -n "$NMEDIT"; then 10611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 10612$as_echo "$NMEDIT" >&6; } 10613else 10614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10615$as_echo "no" >&6; } 10616fi 10617 10618 10619fi 10620if test -z "$ac_cv_prog_NMEDIT"; then 10621 ac_ct_NMEDIT=$NMEDIT 10622 # Extract the first word of "nmedit", so it can be a program name with args. 10623set dummy nmedit; ac_word=$2 10624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10625$as_echo_n "checking for $ac_word... " >&6; } 10626if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 10627 $as_echo_n "(cached) " >&6 10628else 10629 if test -n "$ac_ct_NMEDIT"; then 10630 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 10631else 10632as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10633for as_dir in $PATH 10634do 10635 IFS=$as_save_IFS 10636 test -z "$as_dir" && as_dir=. 10637 for ac_exec_ext in '' $ac_executable_extensions; do 10638 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10639 ac_cv_prog_ac_ct_NMEDIT="nmedit" 10640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10641 break 2 10642 fi 10643done 10644 done 10645IFS=$as_save_IFS 10646 10647fi 10648fi 10649ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 10650if test -n "$ac_ct_NMEDIT"; then 10651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 10652$as_echo "$ac_ct_NMEDIT" >&6; } 10653else 10654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10655$as_echo "no" >&6; } 10656fi 10657 10658 if test "x$ac_ct_NMEDIT" = x; then 10659 NMEDIT=":" 10660 else 10661 case $cross_compiling:$ac_tool_warned in 10662yes:) 10663{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10664$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10665ac_tool_warned=yes ;; 10666esac 10667 NMEDIT=$ac_ct_NMEDIT 10668 fi 10669else 10670 NMEDIT="$ac_cv_prog_NMEDIT" 10671fi 10672 10673 if test -n "$ac_tool_prefix"; then 10674 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 10675set dummy ${ac_tool_prefix}lipo; ac_word=$2 10676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10677$as_echo_n "checking for $ac_word... " >&6; } 10678if ${ac_cv_prog_LIPO+:} false; then : 10679 $as_echo_n "(cached) " >&6 10680else 10681 if test -n "$LIPO"; then 10682 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 10683else 10684as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10685for as_dir in $PATH 10686do 10687 IFS=$as_save_IFS 10688 test -z "$as_dir" && as_dir=. 10689 for ac_exec_ext in '' $ac_executable_extensions; do 10690 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10691 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 10692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10693 break 2 10694 fi 10695done 10696 done 10697IFS=$as_save_IFS 10698 10699fi 10700fi 10701LIPO=$ac_cv_prog_LIPO 10702if test -n "$LIPO"; then 10703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 10704$as_echo "$LIPO" >&6; } 10705else 10706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10707$as_echo "no" >&6; } 10708fi 10709 10710 10711fi 10712if test -z "$ac_cv_prog_LIPO"; then 10713 ac_ct_LIPO=$LIPO 10714 # Extract the first word of "lipo", so it can be a program name with args. 10715set dummy lipo; ac_word=$2 10716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10717$as_echo_n "checking for $ac_word... " >&6; } 10718if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 10719 $as_echo_n "(cached) " >&6 10720else 10721 if test -n "$ac_ct_LIPO"; then 10722 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 10723else 10724as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10725for as_dir in $PATH 10726do 10727 IFS=$as_save_IFS 10728 test -z "$as_dir" && as_dir=. 10729 for ac_exec_ext in '' $ac_executable_extensions; do 10730 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10731 ac_cv_prog_ac_ct_LIPO="lipo" 10732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10733 break 2 10734 fi 10735done 10736 done 10737IFS=$as_save_IFS 10738 10739fi 10740fi 10741ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 10742if test -n "$ac_ct_LIPO"; then 10743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 10744$as_echo "$ac_ct_LIPO" >&6; } 10745else 10746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10747$as_echo "no" >&6; } 10748fi 10749 10750 if test "x$ac_ct_LIPO" = x; then 10751 LIPO=":" 10752 else 10753 case $cross_compiling:$ac_tool_warned in 10754yes:) 10755{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10756$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10757ac_tool_warned=yes ;; 10758esac 10759 LIPO=$ac_ct_LIPO 10760 fi 10761else 10762 LIPO="$ac_cv_prog_LIPO" 10763fi 10764 10765 if test -n "$ac_tool_prefix"; then 10766 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 10767set dummy ${ac_tool_prefix}otool; ac_word=$2 10768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10769$as_echo_n "checking for $ac_word... " >&6; } 10770if ${ac_cv_prog_OTOOL+:} false; then : 10771 $as_echo_n "(cached) " >&6 10772else 10773 if test -n "$OTOOL"; then 10774 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 10775else 10776as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10777for as_dir in $PATH 10778do 10779 IFS=$as_save_IFS 10780 test -z "$as_dir" && as_dir=. 10781 for ac_exec_ext in '' $ac_executable_extensions; do 10782 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10783 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 10784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10785 break 2 10786 fi 10787done 10788 done 10789IFS=$as_save_IFS 10790 10791fi 10792fi 10793OTOOL=$ac_cv_prog_OTOOL 10794if test -n "$OTOOL"; then 10795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 10796$as_echo "$OTOOL" >&6; } 10797else 10798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10799$as_echo "no" >&6; } 10800fi 10801 10802 10803fi 10804if test -z "$ac_cv_prog_OTOOL"; then 10805 ac_ct_OTOOL=$OTOOL 10806 # Extract the first word of "otool", so it can be a program name with args. 10807set dummy otool; ac_word=$2 10808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10809$as_echo_n "checking for $ac_word... " >&6; } 10810if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 10811 $as_echo_n "(cached) " >&6 10812else 10813 if test -n "$ac_ct_OTOOL"; then 10814 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 10815else 10816as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10817for as_dir in $PATH 10818do 10819 IFS=$as_save_IFS 10820 test -z "$as_dir" && as_dir=. 10821 for ac_exec_ext in '' $ac_executable_extensions; do 10822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10823 ac_cv_prog_ac_ct_OTOOL="otool" 10824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10825 break 2 10826 fi 10827done 10828 done 10829IFS=$as_save_IFS 10830 10831fi 10832fi 10833ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 10834if test -n "$ac_ct_OTOOL"; then 10835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 10836$as_echo "$ac_ct_OTOOL" >&6; } 10837else 10838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10839$as_echo "no" >&6; } 10840fi 10841 10842 if test "x$ac_ct_OTOOL" = x; then 10843 OTOOL=":" 10844 else 10845 case $cross_compiling:$ac_tool_warned in 10846yes:) 10847{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10848$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10849ac_tool_warned=yes ;; 10850esac 10851 OTOOL=$ac_ct_OTOOL 10852 fi 10853else 10854 OTOOL="$ac_cv_prog_OTOOL" 10855fi 10856 10857 if test -n "$ac_tool_prefix"; then 10858 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 10859set dummy ${ac_tool_prefix}otool64; ac_word=$2 10860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10861$as_echo_n "checking for $ac_word... " >&6; } 10862if ${ac_cv_prog_OTOOL64+:} false; then : 10863 $as_echo_n "(cached) " >&6 10864else 10865 if test -n "$OTOOL64"; then 10866 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 10867else 10868as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10869for as_dir in $PATH 10870do 10871 IFS=$as_save_IFS 10872 test -z "$as_dir" && as_dir=. 10873 for ac_exec_ext in '' $ac_executable_extensions; do 10874 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10875 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 10876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10877 break 2 10878 fi 10879done 10880 done 10881IFS=$as_save_IFS 10882 10883fi 10884fi 10885OTOOL64=$ac_cv_prog_OTOOL64 10886if test -n "$OTOOL64"; then 10887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 10888$as_echo "$OTOOL64" >&6; } 10889else 10890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10891$as_echo "no" >&6; } 10892fi 10893 10894 10895fi 10896if test -z "$ac_cv_prog_OTOOL64"; then 10897 ac_ct_OTOOL64=$OTOOL64 10898 # Extract the first word of "otool64", so it can be a program name with args. 10899set dummy otool64; ac_word=$2 10900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10901$as_echo_n "checking for $ac_word... " >&6; } 10902if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 10903 $as_echo_n "(cached) " >&6 10904else 10905 if test -n "$ac_ct_OTOOL64"; then 10906 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 10907else 10908as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10909for as_dir in $PATH 10910do 10911 IFS=$as_save_IFS 10912 test -z "$as_dir" && as_dir=. 10913 for ac_exec_ext in '' $ac_executable_extensions; do 10914 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10915 ac_cv_prog_ac_ct_OTOOL64="otool64" 10916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10917 break 2 10918 fi 10919done 10920 done 10921IFS=$as_save_IFS 10922 10923fi 10924fi 10925ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 10926if test -n "$ac_ct_OTOOL64"; then 10927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 10928$as_echo "$ac_ct_OTOOL64" >&6; } 10929else 10930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10931$as_echo "no" >&6; } 10932fi 10933 10934 if test "x$ac_ct_OTOOL64" = x; then 10935 OTOOL64=":" 10936 else 10937 case $cross_compiling:$ac_tool_warned in 10938yes:) 10939{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10940$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10941ac_tool_warned=yes ;; 10942esac 10943 OTOOL64=$ac_ct_OTOOL64 10944 fi 10945else 10946 OTOOL64="$ac_cv_prog_OTOOL64" 10947fi 10948 10949 10950 10951 10952 10953 10954 10955 10956 10957 10958 10959 10960 10961 10962 10963 10964 10965 10966 10967 10968 10969 10970 10971 10972 10973 10974 10975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 10976$as_echo_n "checking for -single_module linker flag... " >&6; } 10977if ${lt_cv_apple_cc_single_mod+:} false; then : 10978 $as_echo_n "(cached) " >&6 10979else 10980 lt_cv_apple_cc_single_mod=no 10981 if test -z "${LT_MULTI_MODULE}"; then 10982 # By default we will add the -single_module flag. You can override 10983 # by either setting the environment variable LT_MULTI_MODULE 10984 # non-empty at configure time, or by adding -multi_module to the 10985 # link flags. 10986 rm -rf libconftest.dylib* 10987 echo "int foo(void){return 1;}" > conftest.c 10988 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 10989-dynamiclib -Wl,-single_module conftest.c" >&5 10990 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 10991 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 10992 _lt_result=$? 10993 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 10994 lt_cv_apple_cc_single_mod=yes 10995 else 10996 cat conftest.err >&5 10997 fi 10998 rm -rf libconftest.dylib* 10999 rm -f conftest.* 11000 fi 11001fi 11002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 11003$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 11004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 11005$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 11006if ${lt_cv_ld_exported_symbols_list+:} false; then : 11007 $as_echo_n "(cached) " >&6 11008else 11009 lt_cv_ld_exported_symbols_list=no 11010 save_LDFLAGS=$LDFLAGS 11011 echo "_main" > conftest.sym 11012 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 11013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11014/* end confdefs.h. */ 11015 11016int 11017main () 11018{ 11019 11020 ; 11021 return 0; 11022} 11023_ACEOF 11024if ac_fn_c_try_link "$LINENO"; then : 11025 lt_cv_ld_exported_symbols_list=yes 11026else 11027 lt_cv_ld_exported_symbols_list=no 11028fi 11029rm -f core conftest.err conftest.$ac_objext \ 11030 conftest$ac_exeext conftest.$ac_ext 11031 LDFLAGS="$save_LDFLAGS" 11032 11033fi 11034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 11035$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 11036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 11037$as_echo_n "checking for -force_load linker flag... " >&6; } 11038if ${lt_cv_ld_force_load+:} false; then : 11039 $as_echo_n "(cached) " >&6 11040else 11041 lt_cv_ld_force_load=no 11042 cat > conftest.c << _LT_EOF 11043int forced_loaded() { return 2;} 11044_LT_EOF 11045 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 11046 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 11047 echo "$AR cru libconftest.a conftest.o" >&5 11048 $AR cru libconftest.a conftest.o 2>&5 11049 echo "$RANLIB libconftest.a" >&5 11050 $RANLIB libconftest.a 2>&5 11051 cat > conftest.c << _LT_EOF 11052int main() { return 0;} 11053_LT_EOF 11054 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 11055 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 11056 _lt_result=$? 11057 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then 11058 lt_cv_ld_force_load=yes 11059 else 11060 cat conftest.err >&5 11061 fi 11062 rm -f conftest.err libconftest.a conftest conftest.c 11063 rm -rf conftest.dSYM 11064 11065fi 11066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 11067$as_echo "$lt_cv_ld_force_load" >&6; } 11068 case $host_os in 11069 rhapsody* | darwin1.[012]) 11070 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 11071 darwin1.*) 11072 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 11073 darwin*) # darwin 5.x on 11074 # if running on 10.5 or later, the deployment target defaults 11075 # to the OS version, if on x86, and 10.4, the deployment 11076 # target defaults to 10.4. Don't you love it? 11077 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 11078 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 11079 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 11080 10.[012]*) 11081 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 11082 10.*) 11083 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 11084 esac 11085 ;; 11086 esac 11087 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 11088 _lt_dar_single_mod='$single_module' 11089 fi 11090 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 11091 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 11092 else 11093 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 11094 fi 11095 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 11096 _lt_dsymutil='~$DSYMUTIL $lib || :' 11097 else 11098 _lt_dsymutil= 11099 fi 11100 ;; 11101 esac 11102 11103for ac_header in dlfcn.h 11104do : 11105 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 11106" 11107if test "x$ac_cv_header_dlfcn_h" = xyes; then : 11108 cat >>confdefs.h <<_ACEOF 11109#define HAVE_DLFCN_H 1 11110_ACEOF 11111 11112fi 11113 11114done 11115 11116 11117 11118 11119func_stripname_cnf () 11120{ 11121 case ${2} in 11122 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; 11123 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; 11124 esac 11125} # func_stripname_cnf 11126 11127 11128 11129 11130 11131# Set options 11132 11133 11134 11135 enable_dlopen=no 11136 11137 11138 enable_win32_dll=no 11139 11140 11141 11142 # Check whether --enable-static was given. 11143if test "${enable_static+set}" = set; then : 11144 enableval=$enable_static; p=${PACKAGE-default} 11145 case $enableval in 11146 yes) enable_static=yes ;; 11147 no) enable_static=no ;; 11148 *) 11149 enable_static=no 11150 # Look at the argument we got. We use all the common list separators. 11151 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 11152 for pkg in $enableval; do 11153 IFS="$lt_save_ifs" 11154 if test "X$pkg" = "X$p"; then 11155 enable_static=yes 11156 fi 11157 done 11158 IFS="$lt_save_ifs" 11159 ;; 11160 esac 11161else 11162 enable_static=yes 11163fi 11164 11165 11166 11167 11168 11169 11170 11171 11172 11173 11174# Check whether --with-pic was given. 11175if test "${with_pic+set}" = set; then : 11176 withval=$with_pic; pic_mode="$withval" 11177else 11178 pic_mode=default 11179fi 11180 11181 11182test -z "$pic_mode" && pic_mode=default 11183 11184 11185 11186 11187 11188 11189 11190 # Check whether --enable-fast-install was given. 11191if test "${enable_fast_install+set}" = set; then : 11192 enableval=$enable_fast_install; p=${PACKAGE-default} 11193 case $enableval in 11194 yes) enable_fast_install=yes ;; 11195 no) enable_fast_install=no ;; 11196 *) 11197 enable_fast_install=no 11198 # Look at the argument we got. We use all the common list separators. 11199 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 11200 for pkg in $enableval; do 11201 IFS="$lt_save_ifs" 11202 if test "X$pkg" = "X$p"; then 11203 enable_fast_install=yes 11204 fi 11205 done 11206 IFS="$lt_save_ifs" 11207 ;; 11208 esac 11209else 11210 enable_fast_install=yes 11211fi 11212 11213 11214 11215 11216 11217 11218 11219 11220 11221 11222 11223# This can be used to rebuild libtool when needed 11224LIBTOOL_DEPS="$ltmain" 11225 11226# Always use our own libtool. 11227LIBTOOL='$(SHELL) $(top_builddir)/libtool' 11228 11229 11230 11231 11232 11233 11234 11235 11236 11237 11238 11239 11240 11241 11242 11243 11244 11245 11246 11247 11248 11249 11250 11251 11252 11253 11254test -z "$LN_S" && LN_S="ln -s" 11255 11256 11257 11258 11259 11260 11261 11262 11263 11264 11265 11266 11267 11268 11269if test -n "${ZSH_VERSION+set}" ; then 11270 setopt NO_GLOB_SUBST 11271fi 11272 11273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 11274$as_echo_n "checking for objdir... " >&6; } 11275if ${lt_cv_objdir+:} false; then : 11276 $as_echo_n "(cached) " >&6 11277else 11278 rm -f .libs 2>/dev/null 11279mkdir .libs 2>/dev/null 11280if test -d .libs; then 11281 lt_cv_objdir=.libs 11282else 11283 # MS-DOS does not allow filenames that begin with a dot. 11284 lt_cv_objdir=_libs 11285fi 11286rmdir .libs 2>/dev/null 11287fi 11288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 11289$as_echo "$lt_cv_objdir" >&6; } 11290objdir=$lt_cv_objdir 11291 11292 11293 11294 11295 11296cat >>confdefs.h <<_ACEOF 11297#define LT_OBJDIR "$lt_cv_objdir/" 11298_ACEOF 11299 11300 11301 11302 11303case $host_os in 11304aix3*) 11305 # AIX sometimes has problems with the GCC collect2 program. For some 11306 # reason, if we set the COLLECT_NAMES environment variable, the problems 11307 # vanish in a puff of smoke. 11308 if test "X${COLLECT_NAMES+set}" != Xset; then 11309 COLLECT_NAMES= 11310 export COLLECT_NAMES 11311 fi 11312 ;; 11313esac 11314 11315# Global variables: 11316ofile=libtool 11317can_build_shared=yes 11318 11319# All known linkers require a `.a' archive for static linking (except MSVC, 11320# which needs '.lib'). 11321libext=a 11322 11323with_gnu_ld="$lt_cv_prog_gnu_ld" 11324 11325old_CC="$CC" 11326old_CFLAGS="$CFLAGS" 11327 11328# Set sane defaults for various variables 11329test -z "$CC" && CC=cc 11330test -z "$LTCC" && LTCC=$CC 11331test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 11332test -z "$LD" && LD=ld 11333test -z "$ac_objext" && ac_objext=o 11334 11335for cc_temp in $compiler""; do 11336 case $cc_temp in 11337 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 11338 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 11339 \-*) ;; 11340 *) break;; 11341 esac 11342done 11343cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 11344 11345 11346# Only perform the check for file, if the check method requires it 11347test -z "$MAGIC_CMD" && MAGIC_CMD=file 11348case $deplibs_check_method in 11349file_magic*) 11350 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 11351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 11352$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 11353if ${lt_cv_path_MAGIC_CMD+:} false; then : 11354 $as_echo_n "(cached) " >&6 11355else 11356 case $MAGIC_CMD in 11357[\\/*] | ?:[\\/]*) 11358 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 11359 ;; 11360*) 11361 lt_save_MAGIC_CMD="$MAGIC_CMD" 11362 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 11363 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 11364 for ac_dir in $ac_dummy; do 11365 IFS="$lt_save_ifs" 11366 test -z "$ac_dir" && ac_dir=. 11367 if test -f $ac_dir/${ac_tool_prefix}file; then 11368 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 11369 if test -n "$file_magic_test_file"; then 11370 case $deplibs_check_method in 11371 "file_magic "*) 11372 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 11373 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 11374 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 11375 $EGREP "$file_magic_regex" > /dev/null; then 11376 : 11377 else 11378 cat <<_LT_EOF 1>&2 11379 11380*** Warning: the command libtool uses to detect shared libraries, 11381*** $file_magic_cmd, produces output that libtool cannot recognize. 11382*** The result is that libtool may fail to recognize shared libraries 11383*** as such. This will affect the creation of libtool libraries that 11384*** depend on shared libraries, but programs linked with such libtool 11385*** libraries will work regardless of this problem. Nevertheless, you 11386*** may want to report the problem to your system manager and/or to 11387*** bug-libtool@gnu.org 11388 11389_LT_EOF 11390 fi ;; 11391 esac 11392 fi 11393 break 11394 fi 11395 done 11396 IFS="$lt_save_ifs" 11397 MAGIC_CMD="$lt_save_MAGIC_CMD" 11398 ;; 11399esac 11400fi 11401 11402MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 11403if test -n "$MAGIC_CMD"; then 11404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 11405$as_echo "$MAGIC_CMD" >&6; } 11406else 11407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11408$as_echo "no" >&6; } 11409fi 11410 11411 11412 11413 11414 11415if test -z "$lt_cv_path_MAGIC_CMD"; then 11416 if test -n "$ac_tool_prefix"; then 11417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 11418$as_echo_n "checking for file... " >&6; } 11419if ${lt_cv_path_MAGIC_CMD+:} false; then : 11420 $as_echo_n "(cached) " >&6 11421else 11422 case $MAGIC_CMD in 11423[\\/*] | ?:[\\/]*) 11424 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 11425 ;; 11426*) 11427 lt_save_MAGIC_CMD="$MAGIC_CMD" 11428 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 11429 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 11430 for ac_dir in $ac_dummy; do 11431 IFS="$lt_save_ifs" 11432 test -z "$ac_dir" && ac_dir=. 11433 if test -f $ac_dir/file; then 11434 lt_cv_path_MAGIC_CMD="$ac_dir/file" 11435 if test -n "$file_magic_test_file"; then 11436 case $deplibs_check_method in 11437 "file_magic "*) 11438 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 11439 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 11440 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 11441 $EGREP "$file_magic_regex" > /dev/null; then 11442 : 11443 else 11444 cat <<_LT_EOF 1>&2 11445 11446*** Warning: the command libtool uses to detect shared libraries, 11447*** $file_magic_cmd, produces output that libtool cannot recognize. 11448*** The result is that libtool may fail to recognize shared libraries 11449*** as such. This will affect the creation of libtool libraries that 11450*** depend on shared libraries, but programs linked with such libtool 11451*** libraries will work regardless of this problem. Nevertheless, you 11452*** may want to report the problem to your system manager and/or to 11453*** bug-libtool@gnu.org 11454 11455_LT_EOF 11456 fi ;; 11457 esac 11458 fi 11459 break 11460 fi 11461 done 11462 IFS="$lt_save_ifs" 11463 MAGIC_CMD="$lt_save_MAGIC_CMD" 11464 ;; 11465esac 11466fi 11467 11468MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 11469if test -n "$MAGIC_CMD"; then 11470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 11471$as_echo "$MAGIC_CMD" >&6; } 11472else 11473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11474$as_echo "no" >&6; } 11475fi 11476 11477 11478 else 11479 MAGIC_CMD=: 11480 fi 11481fi 11482 11483 fi 11484 ;; 11485esac 11486 11487# Use C for the default configuration in the libtool script 11488 11489lt_save_CC="$CC" 11490ac_ext=c 11491ac_cpp='$CPP $CPPFLAGS' 11492ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11493ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11494ac_compiler_gnu=$ac_cv_c_compiler_gnu 11495 11496 11497# Source file extension for C test sources. 11498ac_ext=c 11499 11500# Object file extension for compiled C test sources. 11501objext=o 11502objext=$objext 11503 11504# Code to be used in simple compile tests 11505lt_simple_compile_test_code="int some_variable = 0;" 11506 11507# Code to be used in simple link tests 11508lt_simple_link_test_code='int main(){return(0);}' 11509 11510 11511 11512 11513 11514 11515 11516# If no C compiler was specified, use CC. 11517LTCC=${LTCC-"$CC"} 11518 11519# If no C compiler flags were specified, use CFLAGS. 11520LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 11521 11522# Allow CC to be a program name with arguments. 11523compiler=$CC 11524 11525# Save the default compiler, since it gets overwritten when the other 11526# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 11527compiler_DEFAULT=$CC 11528 11529# save warnings/boilerplate of simple test code 11530ac_outfile=conftest.$ac_objext 11531echo "$lt_simple_compile_test_code" >conftest.$ac_ext 11532eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 11533_lt_compiler_boilerplate=`cat conftest.err` 11534$RM conftest* 11535 11536ac_outfile=conftest.$ac_objext 11537echo "$lt_simple_link_test_code" >conftest.$ac_ext 11538eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 11539_lt_linker_boilerplate=`cat conftest.err` 11540$RM -r conftest* 11541 11542 11543## CAVEAT EMPTOR: 11544## There is no encapsulation within the following macros, do not change 11545## the running order or otherwise move them around unless you know exactly 11546## what you are doing... 11547if test -n "$compiler"; then 11548 11549lt_prog_compiler_no_builtin_flag= 11550 11551if test "$GCC" = yes; then 11552 case $cc_basename in 11553 nvcc*) 11554 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 11555 *) 11556 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 11557 esac 11558 11559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 11560$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 11561if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 11562 $as_echo_n "(cached) " >&6 11563else 11564 lt_cv_prog_compiler_rtti_exceptions=no 11565 ac_outfile=conftest.$ac_objext 11566 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11567 lt_compiler_flag="-fno-rtti -fno-exceptions" 11568 # Insert the option either (1) after the last *FLAGS variable, or 11569 # (2) before a word containing "conftest.", or (3) at the end. 11570 # Note that $ac_compile itself does not contain backslashes and begins 11571 # with a dollar sign (not a hyphen), so the echo should work correctly. 11572 # The option is referenced via a variable to avoid confusing sed. 11573 lt_compile=`echo "$ac_compile" | $SED \ 11574 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 11575 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11576 -e 's:$: $lt_compiler_flag:'` 11577 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 11578 (eval "$lt_compile" 2>conftest.err) 11579 ac_status=$? 11580 cat conftest.err >&5 11581 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11582 if (exit $ac_status) && test -s "$ac_outfile"; then 11583 # The compiler can only warn and ignore the option if not recognized 11584 # So say no if there are warnings other than the usual output. 11585 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 11586 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 11587 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 11588 lt_cv_prog_compiler_rtti_exceptions=yes 11589 fi 11590 fi 11591 $RM conftest* 11592 11593fi 11594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 11595$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 11596 11597if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 11598 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 11599else 11600 : 11601fi 11602 11603fi 11604 11605 11606 11607 11608 11609 11610 lt_prog_compiler_wl= 11611lt_prog_compiler_pic= 11612lt_prog_compiler_static= 11613 11614 11615 if test "$GCC" = yes; then 11616 lt_prog_compiler_wl='-Wl,' 11617 lt_prog_compiler_static='-static' 11618 11619 case $host_os in 11620 aix*) 11621 # All AIX code is PIC. 11622 if test "$host_cpu" = ia64; then 11623 # AIX 5 now supports IA64 processor 11624 lt_prog_compiler_static='-Bstatic' 11625 fi 11626 ;; 11627 11628 amigaos*) 11629 case $host_cpu in 11630 powerpc) 11631 # see comment about AmigaOS4 .so support 11632 lt_prog_compiler_pic='-fPIC' 11633 ;; 11634 m68k) 11635 # FIXME: we need at least 68020 code to build shared libraries, but 11636 # adding the `-m68020' flag to GCC prevents building anything better, 11637 # like `-m68040'. 11638 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 11639 ;; 11640 esac 11641 ;; 11642 11643 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 11644 # PIC is the default for these OSes. 11645 ;; 11646 11647 mingw* | cygwin* | pw32* | os2* | cegcc*) 11648 # This hack is so that the source file can tell whether it is being 11649 # built for inclusion in a dll (and should export symbols for example). 11650 # Although the cygwin gcc ignores -fPIC, still need this for old-style 11651 # (--disable-auto-import) libraries 11652 lt_prog_compiler_pic='-DDLL_EXPORT' 11653 ;; 11654 11655 darwin* | rhapsody*) 11656 # PIC is the default on this platform 11657 # Common symbols not allowed in MH_DYLIB files 11658 lt_prog_compiler_pic='-fno-common' 11659 ;; 11660 11661 haiku*) 11662 # PIC is the default for Haiku. 11663 # The "-static" flag exists, but is broken. 11664 lt_prog_compiler_static= 11665 ;; 11666 11667 hpux*) 11668 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 11669 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 11670 # sets the default TLS model and affects inlining. 11671 case $host_cpu in 11672 hppa*64*) 11673 # +Z the default 11674 ;; 11675 *) 11676 lt_prog_compiler_pic='-fPIC' 11677 ;; 11678 esac 11679 ;; 11680 11681 interix[3-9]*) 11682 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 11683 # Instead, we relocate shared libraries at runtime. 11684 ;; 11685 11686 msdosdjgpp*) 11687 # Just because we use GCC doesn't mean we suddenly get shared libraries 11688 # on systems that don't support them. 11689 lt_prog_compiler_can_build_shared=no 11690 enable_shared=no 11691 ;; 11692 11693 *nto* | *qnx*) 11694 # QNX uses GNU C++, but need to define -shared option too, otherwise 11695 # it will coredump. 11696 lt_prog_compiler_pic='-fPIC -shared' 11697 ;; 11698 11699 sysv4*MP*) 11700 if test -d /usr/nec; then 11701 lt_prog_compiler_pic=-Kconform_pic 11702 fi 11703 ;; 11704 11705 *) 11706 lt_prog_compiler_pic='-fPIC' 11707 ;; 11708 esac 11709 11710 case $cc_basename in 11711 nvcc*) # Cuda Compiler Driver 2.2 11712 lt_prog_compiler_wl='-Xlinker ' 11713 lt_prog_compiler_pic='-Xcompiler -fPIC' 11714 ;; 11715 esac 11716 else 11717 # PORTME Check for flag to pass linker flags through the system compiler. 11718 case $host_os in 11719 aix*) 11720 lt_prog_compiler_wl='-Wl,' 11721 if test "$host_cpu" = ia64; then 11722 # AIX 5 now supports IA64 processor 11723 lt_prog_compiler_static='-Bstatic' 11724 else 11725 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 11726 fi 11727 ;; 11728 11729 mingw* | cygwin* | pw32* | os2* | cegcc*) 11730 # This hack is so that the source file can tell whether it is being 11731 # built for inclusion in a dll (and should export symbols for example). 11732 lt_prog_compiler_pic='-DDLL_EXPORT' 11733 ;; 11734 11735 hpux9* | hpux10* | hpux11*) 11736 lt_prog_compiler_wl='-Wl,' 11737 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 11738 # not for PA HP-UX. 11739 case $host_cpu in 11740 hppa*64*|ia64*) 11741 # +Z the default 11742 ;; 11743 *) 11744 lt_prog_compiler_pic='+Z' 11745 ;; 11746 esac 11747 # Is there a better lt_prog_compiler_static that works with the bundled CC? 11748 lt_prog_compiler_static='${wl}-a ${wl}archive' 11749 ;; 11750 11751 irix5* | irix6* | nonstopux*) 11752 lt_prog_compiler_wl='-Wl,' 11753 # PIC (with -KPIC) is the default. 11754 lt_prog_compiler_static='-non_shared' 11755 ;; 11756 11757 linux* | k*bsd*-gnu | kopensolaris*-gnu) 11758 case $cc_basename in 11759 # old Intel for x86_64 which still supported -KPIC. 11760 ecc*) 11761 lt_prog_compiler_wl='-Wl,' 11762 lt_prog_compiler_pic='-KPIC' 11763 lt_prog_compiler_static='-static' 11764 ;; 11765 # icc used to be incompatible with GCC. 11766 # ICC 10 doesn't accept -KPIC any more. 11767 icc* | ifort*) 11768 lt_prog_compiler_wl='-Wl,' 11769 lt_prog_compiler_pic='-fPIC' 11770 lt_prog_compiler_static='-static' 11771 ;; 11772 # Lahey Fortran 8.1. 11773 lf95*) 11774 lt_prog_compiler_wl='-Wl,' 11775 lt_prog_compiler_pic='--shared' 11776 lt_prog_compiler_static='--static' 11777 ;; 11778 nagfor*) 11779 # NAG Fortran compiler 11780 lt_prog_compiler_wl='-Wl,-Wl,,' 11781 lt_prog_compiler_pic='-PIC' 11782 lt_prog_compiler_static='-Bstatic' 11783 ;; 11784 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 11785 # Portland Group compilers (*not* the Pentium gcc compiler, 11786 # which looks to be a dead project) 11787 lt_prog_compiler_wl='-Wl,' 11788 lt_prog_compiler_pic='-fpic' 11789 lt_prog_compiler_static='-Bstatic' 11790 ;; 11791 ccc*) 11792 lt_prog_compiler_wl='-Wl,' 11793 # All Alpha code is PIC. 11794 lt_prog_compiler_static='-non_shared' 11795 ;; 11796 xl* | bgxl* | bgf* | mpixl*) 11797 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 11798 lt_prog_compiler_wl='-Wl,' 11799 lt_prog_compiler_pic='-qpic' 11800 lt_prog_compiler_static='-qstaticlink' 11801 ;; 11802 *) 11803 case `$CC -V 2>&1 | sed 5q` in 11804 *Sun\ F* | *Sun*Fortran*) 11805 # Sun Fortran 8.3 passes all unrecognized flags to the linker 11806 lt_prog_compiler_pic='-KPIC' 11807 lt_prog_compiler_static='-Bstatic' 11808 lt_prog_compiler_wl='' 11809 ;; 11810 *Sun\ C*) 11811 # Sun C 5.9 11812 lt_prog_compiler_pic='-KPIC' 11813 lt_prog_compiler_static='-Bstatic' 11814 lt_prog_compiler_wl='-Wl,' 11815 ;; 11816 esac 11817 ;; 11818 esac 11819 ;; 11820 11821 newsos6) 11822 lt_prog_compiler_pic='-KPIC' 11823 lt_prog_compiler_static='-Bstatic' 11824 ;; 11825 11826 *nto* | *qnx*) 11827 # QNX uses GNU C++, but need to define -shared option too, otherwise 11828 # it will coredump. 11829 lt_prog_compiler_pic='-fPIC -shared' 11830 ;; 11831 11832 osf3* | osf4* | osf5*) 11833 lt_prog_compiler_wl='-Wl,' 11834 # All OSF/1 code is PIC. 11835 lt_prog_compiler_static='-non_shared' 11836 ;; 11837 11838 rdos*) 11839 lt_prog_compiler_static='-non_shared' 11840 ;; 11841 11842 solaris*) 11843 lt_prog_compiler_pic='-KPIC' 11844 lt_prog_compiler_static='-Bstatic' 11845 case $cc_basename in 11846 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 11847 lt_prog_compiler_wl='-Qoption ld ';; 11848 *) 11849 lt_prog_compiler_wl='-Wl,';; 11850 esac 11851 ;; 11852 11853 sunos4*) 11854 lt_prog_compiler_wl='-Qoption ld ' 11855 lt_prog_compiler_pic='-PIC' 11856 lt_prog_compiler_static='-Bstatic' 11857 ;; 11858 11859 sysv4 | sysv4.2uw2* | sysv4.3*) 11860 lt_prog_compiler_wl='-Wl,' 11861 lt_prog_compiler_pic='-KPIC' 11862 lt_prog_compiler_static='-Bstatic' 11863 ;; 11864 11865 sysv4*MP*) 11866 if test -d /usr/nec ;then 11867 lt_prog_compiler_pic='-Kconform_pic' 11868 lt_prog_compiler_static='-Bstatic' 11869 fi 11870 ;; 11871 11872 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 11873 lt_prog_compiler_wl='-Wl,' 11874 lt_prog_compiler_pic='-KPIC' 11875 lt_prog_compiler_static='-Bstatic' 11876 ;; 11877 11878 unicos*) 11879 lt_prog_compiler_wl='-Wl,' 11880 lt_prog_compiler_can_build_shared=no 11881 ;; 11882 11883 uts4*) 11884 lt_prog_compiler_pic='-pic' 11885 lt_prog_compiler_static='-Bstatic' 11886 ;; 11887 11888 *) 11889 lt_prog_compiler_can_build_shared=no 11890 ;; 11891 esac 11892 fi 11893 11894case $host_os in 11895 # For platforms which do not support PIC, -DPIC is meaningless: 11896 *djgpp*) 11897 lt_prog_compiler_pic= 11898 ;; 11899 *) 11900 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 11901 ;; 11902esac 11903 11904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 11905$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 11906if ${lt_cv_prog_compiler_pic+:} false; then : 11907 $as_echo_n "(cached) " >&6 11908else 11909 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 11910fi 11911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 11912$as_echo "$lt_cv_prog_compiler_pic" >&6; } 11913lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 11914 11915# 11916# Check to make sure the PIC flag actually works. 11917# 11918if test -n "$lt_prog_compiler_pic"; then 11919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 11920$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 11921if ${lt_cv_prog_compiler_pic_works+:} false; then : 11922 $as_echo_n "(cached) " >&6 11923else 11924 lt_cv_prog_compiler_pic_works=no 11925 ac_outfile=conftest.$ac_objext 11926 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11927 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 11928 # Insert the option either (1) after the last *FLAGS variable, or 11929 # (2) before a word containing "conftest.", or (3) at the end. 11930 # Note that $ac_compile itself does not contain backslashes and begins 11931 # with a dollar sign (not a hyphen), so the echo should work correctly. 11932 # The option is referenced via a variable to avoid confusing sed. 11933 lt_compile=`echo "$ac_compile" | $SED \ 11934 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 11935 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11936 -e 's:$: $lt_compiler_flag:'` 11937 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 11938 (eval "$lt_compile" 2>conftest.err) 11939 ac_status=$? 11940 cat conftest.err >&5 11941 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11942 if (exit $ac_status) && test -s "$ac_outfile"; then 11943 # The compiler can only warn and ignore the option if not recognized 11944 # So say no if there are warnings other than the usual output. 11945 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 11946 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 11947 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 11948 lt_cv_prog_compiler_pic_works=yes 11949 fi 11950 fi 11951 $RM conftest* 11952 11953fi 11954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 11955$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 11956 11957if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 11958 case $lt_prog_compiler_pic in 11959 "" | " "*) ;; 11960 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 11961 esac 11962else 11963 lt_prog_compiler_pic= 11964 lt_prog_compiler_can_build_shared=no 11965fi 11966 11967fi 11968 11969 11970 11971 11972 11973 11974 11975 11976 11977 11978 11979# 11980# Check to make sure the static flag actually works. 11981# 11982wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 11983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 11984$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 11985if ${lt_cv_prog_compiler_static_works+:} false; then : 11986 $as_echo_n "(cached) " >&6 11987else 11988 lt_cv_prog_compiler_static_works=no 11989 save_LDFLAGS="$LDFLAGS" 11990 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 11991 echo "$lt_simple_link_test_code" > conftest.$ac_ext 11992 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 11993 # The linker can only warn and ignore the option if not recognized 11994 # So say no if there are warnings 11995 if test -s conftest.err; then 11996 # Append any errors to the config.log. 11997 cat conftest.err 1>&5 11998 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 11999 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12000 if diff conftest.exp conftest.er2 >/dev/null; then 12001 lt_cv_prog_compiler_static_works=yes 12002 fi 12003 else 12004 lt_cv_prog_compiler_static_works=yes 12005 fi 12006 fi 12007 $RM -r conftest* 12008 LDFLAGS="$save_LDFLAGS" 12009 12010fi 12011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 12012$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 12013 12014if test x"$lt_cv_prog_compiler_static_works" = xyes; then 12015 : 12016else 12017 lt_prog_compiler_static= 12018fi 12019 12020 12021 12022 12023 12024 12025 12026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 12027$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 12028if ${lt_cv_prog_compiler_c_o+:} false; then : 12029 $as_echo_n "(cached) " >&6 12030else 12031 lt_cv_prog_compiler_c_o=no 12032 $RM -r conftest 2>/dev/null 12033 mkdir conftest 12034 cd conftest 12035 mkdir out 12036 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12037 12038 lt_compiler_flag="-o out/conftest2.$ac_objext" 12039 # Insert the option either (1) after the last *FLAGS variable, or 12040 # (2) before a word containing "conftest.", or (3) at the end. 12041 # Note that $ac_compile itself does not contain backslashes and begins 12042 # with a dollar sign (not a hyphen), so the echo should work correctly. 12043 lt_compile=`echo "$ac_compile" | $SED \ 12044 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12045 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12046 -e 's:$: $lt_compiler_flag:'` 12047 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 12048 (eval "$lt_compile" 2>out/conftest.err) 12049 ac_status=$? 12050 cat out/conftest.err >&5 12051 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12052 if (exit $ac_status) && test -s out/conftest2.$ac_objext 12053 then 12054 # The compiler can only warn and ignore the option if not recognized 12055 # So say no if there are warnings 12056 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 12057 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 12058 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 12059 lt_cv_prog_compiler_c_o=yes 12060 fi 12061 fi 12062 chmod u+w . 2>&5 12063 $RM conftest* 12064 # SGI C++ compiler will create directory out/ii_files/ for 12065 # template instantiation 12066 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 12067 $RM out/* && rmdir out 12068 cd .. 12069 $RM -r conftest 12070 $RM conftest* 12071 12072fi 12073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 12074$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 12075 12076 12077 12078 12079 12080 12081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 12082$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 12083if ${lt_cv_prog_compiler_c_o+:} false; then : 12084 $as_echo_n "(cached) " >&6 12085else 12086 lt_cv_prog_compiler_c_o=no 12087 $RM -r conftest 2>/dev/null 12088 mkdir conftest 12089 cd conftest 12090 mkdir out 12091 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12092 12093 lt_compiler_flag="-o out/conftest2.$ac_objext" 12094 # Insert the option either (1) after the last *FLAGS variable, or 12095 # (2) before a word containing "conftest.", or (3) at the end. 12096 # Note that $ac_compile itself does not contain backslashes and begins 12097 # with a dollar sign (not a hyphen), so the echo should work correctly. 12098 lt_compile=`echo "$ac_compile" | $SED \ 12099 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12100 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12101 -e 's:$: $lt_compiler_flag:'` 12102 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 12103 (eval "$lt_compile" 2>out/conftest.err) 12104 ac_status=$? 12105 cat out/conftest.err >&5 12106 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12107 if (exit $ac_status) && test -s out/conftest2.$ac_objext 12108 then 12109 # The compiler can only warn and ignore the option if not recognized 12110 # So say no if there are warnings 12111 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 12112 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 12113 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 12114 lt_cv_prog_compiler_c_o=yes 12115 fi 12116 fi 12117 chmod u+w . 2>&5 12118 $RM conftest* 12119 # SGI C++ compiler will create directory out/ii_files/ for 12120 # template instantiation 12121 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 12122 $RM out/* && rmdir out 12123 cd .. 12124 $RM -r conftest 12125 $RM conftest* 12126 12127fi 12128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 12129$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 12130 12131 12132 12133 12134hard_links="nottested" 12135if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 12136 # do not overwrite the value of need_locks provided by the user 12137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 12138$as_echo_n "checking if we can lock with hard links... " >&6; } 12139 hard_links=yes 12140 $RM conftest* 12141 ln conftest.a conftest.b 2>/dev/null && hard_links=no 12142 touch conftest.a 12143 ln conftest.a conftest.b 2>&5 || hard_links=no 12144 ln conftest.a conftest.b 2>/dev/null && hard_links=no 12145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 12146$as_echo "$hard_links" >&6; } 12147 if test "$hard_links" = no; then 12148 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 12149$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 12150 need_locks=warn 12151 fi 12152else 12153 need_locks=no 12154fi 12155 12156 12157 12158 12159 12160 12161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 12162$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 12163 12164 runpath_var= 12165 allow_undefined_flag= 12166 always_export_symbols=no 12167 archive_cmds= 12168 archive_expsym_cmds= 12169 compiler_needs_object=no 12170 enable_shared_with_static_runtimes=no 12171 export_dynamic_flag_spec= 12172 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 12173 hardcode_automatic=no 12174 hardcode_direct=no 12175 hardcode_direct_absolute=no 12176 hardcode_libdir_flag_spec= 12177 hardcode_libdir_flag_spec_ld= 12178 hardcode_libdir_separator= 12179 hardcode_minus_L=no 12180 hardcode_shlibpath_var=unsupported 12181 inherit_rpath=no 12182 link_all_deplibs=unknown 12183 module_cmds= 12184 module_expsym_cmds= 12185 old_archive_from_new_cmds= 12186 old_archive_from_expsyms_cmds= 12187 thread_safe_flag_spec= 12188 whole_archive_flag_spec= 12189 # include_expsyms should be a list of space-separated symbols to be *always* 12190 # included in the symbol list 12191 include_expsyms= 12192 # exclude_expsyms can be an extended regexp of symbols to exclude 12193 # it will be wrapped by ` (' and `)$', so one must not match beginning or 12194 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 12195 # as well as any symbol that contains `d'. 12196 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 12197 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 12198 # platforms (ab)use it in PIC code, but their linkers get confused if 12199 # the symbol is explicitly referenced. Since portable code cannot 12200 # rely on this symbol name, it's probably fine to never include it in 12201 # preloaded symbol tables. 12202 # Exclude shared library initialization/finalization symbols. 12203 extract_expsyms_cmds= 12204 12205 case $host_os in 12206 cygwin* | mingw* | pw32* | cegcc*) 12207 # FIXME: the MSVC++ port hasn't been tested in a loooong time 12208 # When not using gcc, we currently assume that we are using 12209 # Microsoft Visual C++. 12210 if test "$GCC" != yes; then 12211 with_gnu_ld=no 12212 fi 12213 ;; 12214 interix*) 12215 # we just hope/assume this is gcc and not c89 (= MSVC++) 12216 with_gnu_ld=yes 12217 ;; 12218 openbsd*) 12219 with_gnu_ld=no 12220 ;; 12221 esac 12222 12223 ld_shlibs=yes 12224 12225 # On some targets, GNU ld is compatible enough with the native linker 12226 # that we're better off using the native interface for both. 12227 lt_use_gnu_ld_interface=no 12228 if test "$with_gnu_ld" = yes; then 12229 case $host_os in 12230 aix*) 12231 # The AIX port of GNU ld has always aspired to compatibility 12232 # with the native linker. However, as the warning in the GNU ld 12233 # block says, versions before 2.19.5* couldn't really create working 12234 # shared libraries, regardless of the interface used. 12235 case `$LD -v 2>&1` in 12236 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 12237 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 12238 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 12239 *) 12240 lt_use_gnu_ld_interface=yes 12241 ;; 12242 esac 12243 ;; 12244 *) 12245 lt_use_gnu_ld_interface=yes 12246 ;; 12247 esac 12248 fi 12249 12250 if test "$lt_use_gnu_ld_interface" = yes; then 12251 # If archive_cmds runs LD, not CC, wlarc should be empty 12252 wlarc='${wl}' 12253 12254 # Set some defaults for GNU ld with shared library support. These 12255 # are reset later if shared libraries are not supported. Putting them 12256 # here allows them to be overridden if necessary. 12257 runpath_var=LD_RUN_PATH 12258 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 12259 export_dynamic_flag_spec='${wl}--export-dynamic' 12260 # ancient GNU ld didn't support --whole-archive et. al. 12261 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 12262 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 12263 else 12264 whole_archive_flag_spec= 12265 fi 12266 supports_anon_versioning=no 12267 case `$LD -v 2>&1` in 12268 *GNU\ gold*) supports_anon_versioning=yes ;; 12269 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 12270 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 12271 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 12272 *\ 2.11.*) ;; # other 2.11 versions 12273 *) supports_anon_versioning=yes ;; 12274 esac 12275 12276 # See if GNU ld supports shared libraries. 12277 case $host_os in 12278 aix[3-9]*) 12279 # On AIX/PPC, the GNU linker is very broken 12280 if test "$host_cpu" != ia64; then 12281 ld_shlibs=no 12282 cat <<_LT_EOF 1>&2 12283 12284*** Warning: the GNU linker, at least up to release 2.19, is reported 12285*** to be unable to reliably create shared libraries on AIX. 12286*** Therefore, libtool is disabling shared libraries support. If you 12287*** really care for shared libraries, you may want to install binutils 12288*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 12289*** You will then need to restart the configuration process. 12290 12291_LT_EOF 12292 fi 12293 ;; 12294 12295 amigaos*) 12296 case $host_cpu in 12297 powerpc) 12298 # see comment about AmigaOS4 .so support 12299 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12300 archive_expsym_cmds='' 12301 ;; 12302 m68k) 12303 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)' 12304 hardcode_libdir_flag_spec='-L$libdir' 12305 hardcode_minus_L=yes 12306 ;; 12307 esac 12308 ;; 12309 12310 beos*) 12311 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 12312 allow_undefined_flag=unsupported 12313 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 12314 # support --undefined. This deserves some investigation. FIXME 12315 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12316 else 12317 ld_shlibs=no 12318 fi 12319 ;; 12320 12321 cygwin* | mingw* | pw32* | cegcc*) 12322 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 12323 # as there is no search path for DLLs. 12324 hardcode_libdir_flag_spec='-L$libdir' 12325 export_dynamic_flag_spec='${wl}--export-all-symbols' 12326 allow_undefined_flag=unsupported 12327 always_export_symbols=no 12328 enable_shared_with_static_runtimes=yes 12329 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' 12330 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 12331 12332 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 12333 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 12334 # If the export-symbols file already is a .def file (1st line 12335 # is EXPORTS), use it as is; otherwise, prepend... 12336 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 12337 cp $export_symbols $output_objdir/$soname.def; 12338 else 12339 echo EXPORTS > $output_objdir/$soname.def; 12340 cat $export_symbols >> $output_objdir/$soname.def; 12341 fi~ 12342 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 12343 else 12344 ld_shlibs=no 12345 fi 12346 ;; 12347 12348 haiku*) 12349 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12350 link_all_deplibs=yes 12351 ;; 12352 12353 interix[3-9]*) 12354 hardcode_direct=no 12355 hardcode_shlibpath_var=no 12356 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 12357 export_dynamic_flag_spec='${wl}-E' 12358 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 12359 # Instead, shared libraries are loaded at an image base (0x10000000 by 12360 # default) and relocated if they conflict, which is a slow very memory 12361 # consuming and fragmenting process. To avoid this, we pick a random, 12362 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 12363 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 12364 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 12365 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 12366 ;; 12367 12368 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 12369 tmp_diet=no 12370 if test "$host_os" = linux-dietlibc; then 12371 case $cc_basename in 12372 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 12373 esac 12374 fi 12375 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 12376 && test "$tmp_diet" = no 12377 then 12378 tmp_addflag=' $pic_flag' 12379 tmp_sharedflag='-shared' 12380 case $cc_basename,$host_cpu in 12381 pgcc*) # Portland Group C compiler 12382 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' 12383 tmp_addflag=' $pic_flag' 12384 ;; 12385 pgf77* | pgf90* | pgf95* | pgfortran*) 12386 # Portland Group f77 and f90 compilers 12387 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' 12388 tmp_addflag=' $pic_flag -Mnomain' ;; 12389 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 12390 tmp_addflag=' -i_dynamic' ;; 12391 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 12392 tmp_addflag=' -i_dynamic -nofor_main' ;; 12393 ifc* | ifort*) # Intel Fortran compiler 12394 tmp_addflag=' -nofor_main' ;; 12395 lf95*) # Lahey Fortran 8.1 12396 whole_archive_flag_spec= 12397 tmp_sharedflag='--shared' ;; 12398 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 12399 tmp_sharedflag='-qmkshrobj' 12400 tmp_addflag= ;; 12401 nvcc*) # Cuda Compiler Driver 2.2 12402 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' 12403 compiler_needs_object=yes 12404 ;; 12405 esac 12406 case `$CC -V 2>&1 | sed 5q` in 12407 *Sun\ C*) # Sun C 5.9 12408 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' 12409 compiler_needs_object=yes 12410 tmp_sharedflag='-G' ;; 12411 *Sun\ F*) # Sun Fortran 8.3 12412 tmp_sharedflag='-G' ;; 12413 esac 12414 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12415 12416 if test "x$supports_anon_versioning" = xyes; then 12417 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 12418 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 12419 echo "local: *; };" >> $output_objdir/$libname.ver~ 12420 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 12421 fi 12422 12423 case $cc_basename in 12424 xlf* | bgf* | bgxlf* | mpixlf*) 12425 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 12426 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 12427 hardcode_libdir_flag_spec= 12428 hardcode_libdir_flag_spec_ld='-rpath $libdir' 12429 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 12430 if test "x$supports_anon_versioning" = xyes; then 12431 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 12432 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 12433 echo "local: *; };" >> $output_objdir/$libname.ver~ 12434 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 12435 fi 12436 ;; 12437 esac 12438 else 12439 ld_shlibs=no 12440 fi 12441 ;; 12442 12443 netbsd*) 12444 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 12445 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 12446 wlarc= 12447 else 12448 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12449 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 12450 fi 12451 ;; 12452 12453 solaris*) 12454 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 12455 ld_shlibs=no 12456 cat <<_LT_EOF 1>&2 12457 12458*** Warning: The releases 2.8.* of the GNU linker cannot reliably 12459*** create shared libraries on Solaris systems. Therefore, libtool 12460*** is disabling shared libraries support. We urge you to upgrade GNU 12461*** binutils to release 2.9.1 or newer. Another option is to modify 12462*** your PATH or compiler configuration so that the native linker is 12463*** used, and then restart. 12464 12465_LT_EOF 12466 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 12467 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12468 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 12469 else 12470 ld_shlibs=no 12471 fi 12472 ;; 12473 12474 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 12475 case `$LD -v 2>&1` in 12476 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 12477 ld_shlibs=no 12478 cat <<_LT_EOF 1>&2 12479 12480*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 12481*** reliably create shared libraries on SCO systems. Therefore, libtool 12482*** is disabling shared libraries support. We urge you to upgrade GNU 12483*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 12484*** your PATH or compiler configuration so that the native linker is 12485*** used, and then restart. 12486 12487_LT_EOF 12488 ;; 12489 *) 12490 # For security reasons, it is highly recommended that you always 12491 # use absolute paths for naming shared libraries, and exclude the 12492 # DT_RUNPATH tag from executables and libraries. But doing so 12493 # requires that you compile everything twice, which is a pain. 12494 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 12495 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 12496 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12497 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 12498 else 12499 ld_shlibs=no 12500 fi 12501 ;; 12502 esac 12503 ;; 12504 12505 sunos4*) 12506 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 12507 wlarc= 12508 hardcode_direct=yes 12509 hardcode_shlibpath_var=no 12510 ;; 12511 12512 *) 12513 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 12514 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12515 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 12516 else 12517 ld_shlibs=no 12518 fi 12519 ;; 12520 esac 12521 12522 if test "$ld_shlibs" = no; then 12523 runpath_var= 12524 hardcode_libdir_flag_spec= 12525 export_dynamic_flag_spec= 12526 whole_archive_flag_spec= 12527 fi 12528 else 12529 # PORTME fill in a description of your system's linker (not GNU ld) 12530 case $host_os in 12531 aix3*) 12532 allow_undefined_flag=unsupported 12533 always_export_symbols=yes 12534 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' 12535 # Note: this linker hardcodes the directories in LIBPATH if there 12536 # are no directories specified by -L. 12537 hardcode_minus_L=yes 12538 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 12539 # Neither direct hardcoding nor static linking is supported with a 12540 # broken collect2. 12541 hardcode_direct=unsupported 12542 fi 12543 ;; 12544 12545 aix[4-9]*) 12546 if test "$host_cpu" = ia64; then 12547 # On IA64, the linker does run time linking by default, so we don't 12548 # have to do anything special. 12549 aix_use_runtimelinking=no 12550 exp_sym_flag='-Bexport' 12551 no_entry_flag="" 12552 else 12553 # If we're using GNU nm, then we don't want the "-C" option. 12554 # -C means demangle to AIX nm, but means don't demangle with GNU nm 12555 # Also, AIX nm treats weak defined symbols like other global 12556 # defined symbols, whereas GNU nm marks them as "W". 12557 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 12558 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 12559 else 12560 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' 12561 fi 12562 aix_use_runtimelinking=no 12563 12564 # Test if we are trying to use run time linking or normal 12565 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 12566 # need to do runtime linking. 12567 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 12568 for ld_flag in $LDFLAGS; do 12569 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 12570 aix_use_runtimelinking=yes 12571 break 12572 fi 12573 done 12574 ;; 12575 esac 12576 12577 exp_sym_flag='-bexport' 12578 no_entry_flag='-bnoentry' 12579 fi 12580 12581 # When large executables or shared objects are built, AIX ld can 12582 # have problems creating the table of contents. If linking a library 12583 # or program results in "error TOC overflow" add -mminimal-toc to 12584 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 12585 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 12586 12587 archive_cmds='' 12588 hardcode_direct=yes 12589 hardcode_direct_absolute=yes 12590 hardcode_libdir_separator=':' 12591 link_all_deplibs=yes 12592 file_list_spec='${wl}-f,' 12593 12594 if test "$GCC" = yes; then 12595 case $host_os in aix4.[012]|aix4.[012].*) 12596 # We only want to do this on AIX 4.2 and lower, the check 12597 # below for broken collect2 doesn't work under 4.3+ 12598 collect2name=`${CC} -print-prog-name=collect2` 12599 if test -f "$collect2name" && 12600 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 12601 then 12602 # We have reworked collect2 12603 : 12604 else 12605 # We have old collect2 12606 hardcode_direct=unsupported 12607 # It fails to find uninstalled libraries when the uninstalled 12608 # path is not listed in the libpath. Setting hardcode_minus_L 12609 # to unsupported forces relinking 12610 hardcode_minus_L=yes 12611 hardcode_libdir_flag_spec='-L$libdir' 12612 hardcode_libdir_separator= 12613 fi 12614 ;; 12615 esac 12616 shared_flag='-shared' 12617 if test "$aix_use_runtimelinking" = yes; then 12618 shared_flag="$shared_flag "'${wl}-G' 12619 fi 12620 else 12621 # not using gcc 12622 if test "$host_cpu" = ia64; then 12623 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 12624 # chokes on -Wl,-G. The following line is correct: 12625 shared_flag='-G' 12626 else 12627 if test "$aix_use_runtimelinking" = yes; then 12628 shared_flag='${wl}-G' 12629 else 12630 shared_flag='${wl}-bM:SRE' 12631 fi 12632 fi 12633 fi 12634 12635 export_dynamic_flag_spec='${wl}-bexpall' 12636 # It seems that -bexpall does not export symbols beginning with 12637 # underscore (_), so it is better to generate a list of symbols to export. 12638 always_export_symbols=yes 12639 if test "$aix_use_runtimelinking" = yes; then 12640 # Warning - without using the other runtime loading flags (-brtl), 12641 # -berok will link without error, but may produce a broken library. 12642 allow_undefined_flag='-berok' 12643 # Determine the default libpath from the value encoded in an 12644 # empty executable. 12645 if test "${lt_cv_aix_libpath+set}" = set; then 12646 aix_libpath=$lt_cv_aix_libpath 12647else 12648 if ${lt_cv_aix_libpath_+:} false; then : 12649 $as_echo_n "(cached) " >&6 12650else 12651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12652/* end confdefs.h. */ 12653 12654int 12655main () 12656{ 12657 12658 ; 12659 return 0; 12660} 12661_ACEOF 12662if ac_fn_c_try_link "$LINENO"; then : 12663 12664 lt_aix_libpath_sed=' 12665 /Import File Strings/,/^$/ { 12666 /^0/ { 12667 s/^0 *\([^ ]*\) *$/\1/ 12668 p 12669 } 12670 }' 12671 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12672 # Check for a 64-bit object if we didn't find anything. 12673 if test -z "$lt_cv_aix_libpath_"; then 12674 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12675 fi 12676fi 12677rm -f core conftest.err conftest.$ac_objext \ 12678 conftest$ac_exeext conftest.$ac_ext 12679 if test -z "$lt_cv_aix_libpath_"; then 12680 lt_cv_aix_libpath_="/usr/lib:/lib" 12681 fi 12682 12683fi 12684 12685 aix_libpath=$lt_cv_aix_libpath_ 12686fi 12687 12688 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 12689 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 12690 else 12691 if test "$host_cpu" = ia64; then 12692 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 12693 allow_undefined_flag="-z nodefs" 12694 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" 12695 else 12696 # Determine the default libpath from the value encoded in an 12697 # empty executable. 12698 if test "${lt_cv_aix_libpath+set}" = set; then 12699 aix_libpath=$lt_cv_aix_libpath 12700else 12701 if ${lt_cv_aix_libpath_+:} false; then : 12702 $as_echo_n "(cached) " >&6 12703else 12704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12705/* end confdefs.h. */ 12706 12707int 12708main () 12709{ 12710 12711 ; 12712 return 0; 12713} 12714_ACEOF 12715if ac_fn_c_try_link "$LINENO"; then : 12716 12717 lt_aix_libpath_sed=' 12718 /Import File Strings/,/^$/ { 12719 /^0/ { 12720 s/^0 *\([^ ]*\) *$/\1/ 12721 p 12722 } 12723 }' 12724 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12725 # Check for a 64-bit object if we didn't find anything. 12726 if test -z "$lt_cv_aix_libpath_"; then 12727 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12728 fi 12729fi 12730rm -f core conftest.err conftest.$ac_objext \ 12731 conftest$ac_exeext conftest.$ac_ext 12732 if test -z "$lt_cv_aix_libpath_"; then 12733 lt_cv_aix_libpath_="/usr/lib:/lib" 12734 fi 12735 12736fi 12737 12738 aix_libpath=$lt_cv_aix_libpath_ 12739fi 12740 12741 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 12742 # Warning - without using the other run time loading flags, 12743 # -berok will link without error, but may produce a broken library. 12744 no_undefined_flag=' ${wl}-bernotok' 12745 allow_undefined_flag=' ${wl}-berok' 12746 if test "$with_gnu_ld" = yes; then 12747 # We only use this code for GNU lds that support --whole-archive. 12748 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 12749 else 12750 # Exported symbols can be pulled into shared objects from archives 12751 whole_archive_flag_spec='$convenience' 12752 fi 12753 archive_cmds_need_lc=yes 12754 # This is similar to how AIX traditionally builds its shared libraries. 12755 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 12756 fi 12757 fi 12758 ;; 12759 12760 amigaos*) 12761 case $host_cpu in 12762 powerpc) 12763 # see comment about AmigaOS4 .so support 12764 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12765 archive_expsym_cmds='' 12766 ;; 12767 m68k) 12768 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)' 12769 hardcode_libdir_flag_spec='-L$libdir' 12770 hardcode_minus_L=yes 12771 ;; 12772 esac 12773 ;; 12774 12775 bsdi[45]*) 12776 export_dynamic_flag_spec=-rdynamic 12777 ;; 12778 12779 cygwin* | mingw* | pw32* | cegcc*) 12780 # When not using gcc, we currently assume that we are using 12781 # Microsoft Visual C++. 12782 # hardcode_libdir_flag_spec is actually meaningless, as there is 12783 # no search path for DLLs. 12784 case $cc_basename in 12785 cl*) 12786 # Native MSVC 12787 hardcode_libdir_flag_spec=' ' 12788 allow_undefined_flag=unsupported 12789 always_export_symbols=yes 12790 file_list_spec='@' 12791 # Tell ltmain to make .lib files, not .a files. 12792 libext=lib 12793 # Tell ltmain to make .dll files, not .so files. 12794 shrext_cmds=".dll" 12795 # FIXME: Setting linknames here is a bad hack. 12796 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 12797 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 12798 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 12799 else 12800 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 12801 fi~ 12802 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 12803 linknames=' 12804 # The linker will not automatically build a static lib if we build a DLL. 12805 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 12806 enable_shared_with_static_runtimes=yes 12807 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 12808 # Don't use ranlib 12809 old_postinstall_cmds='chmod 644 $oldlib' 12810 postlink_cmds='lt_outputfile="@OUTPUT@"~ 12811 lt_tool_outputfile="@TOOL_OUTPUT@"~ 12812 case $lt_outputfile in 12813 *.exe|*.EXE) ;; 12814 *) 12815 lt_outputfile="$lt_outputfile.exe" 12816 lt_tool_outputfile="$lt_tool_outputfile.exe" 12817 ;; 12818 esac~ 12819 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 12820 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 12821 $RM "$lt_outputfile.manifest"; 12822 fi' 12823 ;; 12824 *) 12825 # Assume MSVC wrapper 12826 hardcode_libdir_flag_spec=' ' 12827 allow_undefined_flag=unsupported 12828 # Tell ltmain to make .lib files, not .a files. 12829 libext=lib 12830 # Tell ltmain to make .dll files, not .so files. 12831 shrext_cmds=".dll" 12832 # FIXME: Setting linknames here is a bad hack. 12833 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 12834 # The linker will automatically build a .lib file if we build a DLL. 12835 old_archive_from_new_cmds='true' 12836 # FIXME: Should let the user specify the lib program. 12837 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 12838 enable_shared_with_static_runtimes=yes 12839 ;; 12840 esac 12841 ;; 12842 12843 darwin* | rhapsody*) 12844 12845 12846 archive_cmds_need_lc=no 12847 hardcode_direct=no 12848 hardcode_automatic=yes 12849 hardcode_shlibpath_var=unsupported 12850 if test "$lt_cv_ld_force_load" = "yes"; then 12851 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' 12852 else 12853 whole_archive_flag_spec='' 12854 fi 12855 link_all_deplibs=yes 12856 allow_undefined_flag="$_lt_dar_allow_undefined" 12857 case $cc_basename in 12858 ifort*) _lt_dar_can_shared=yes ;; 12859 *) _lt_dar_can_shared=$GCC ;; 12860 esac 12861 if test "$_lt_dar_can_shared" = "yes"; then 12862 output_verbose_link_cmd=func_echo_all 12863 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 12864 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 12865 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" 12866 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" 12867 12868 else 12869 ld_shlibs=no 12870 fi 12871 12872 ;; 12873 12874 dgux*) 12875 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12876 hardcode_libdir_flag_spec='-L$libdir' 12877 hardcode_shlibpath_var=no 12878 ;; 12879 12880 freebsd1*) 12881 ld_shlibs=no 12882 ;; 12883 12884 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 12885 # support. Future versions do this automatically, but an explicit c++rt0.o 12886 # does not break anything, and helps significantly (at the cost of a little 12887 # extra space). 12888 freebsd2.2*) 12889 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 12890 hardcode_libdir_flag_spec='-R$libdir' 12891 hardcode_direct=yes 12892 hardcode_shlibpath_var=no 12893 ;; 12894 12895 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 12896 freebsd2*) 12897 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 12898 hardcode_direct=yes 12899 hardcode_minus_L=yes 12900 hardcode_shlibpath_var=no 12901 ;; 12902 12903 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 12904 freebsd* | dragonfly*) 12905 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 12906 hardcode_libdir_flag_spec='-R$libdir' 12907 hardcode_direct=yes 12908 hardcode_shlibpath_var=no 12909 ;; 12910 12911 hpux9*) 12912 if test "$GCC" = yes; then 12913 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 12914 else 12915 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' 12916 fi 12917 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 12918 hardcode_libdir_separator=: 12919 hardcode_direct=yes 12920 12921 # hardcode_minus_L: Not really in the search PATH, 12922 # but as the default location of the library. 12923 hardcode_minus_L=yes 12924 export_dynamic_flag_spec='${wl}-E' 12925 ;; 12926 12927 hpux10*) 12928 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 12929 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 12930 else 12931 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 12932 fi 12933 if test "$with_gnu_ld" = no; then 12934 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 12935 hardcode_libdir_flag_spec_ld='+b $libdir' 12936 hardcode_libdir_separator=: 12937 hardcode_direct=yes 12938 hardcode_direct_absolute=yes 12939 export_dynamic_flag_spec='${wl}-E' 12940 # hardcode_minus_L: Not really in the search PATH, 12941 # but as the default location of the library. 12942 hardcode_minus_L=yes 12943 fi 12944 ;; 12945 12946 hpux11*) 12947 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 12948 case $host_cpu in 12949 hppa*64*) 12950 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 12951 ;; 12952 ia64*) 12953 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 12954 ;; 12955 *) 12956 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 12957 ;; 12958 esac 12959 else 12960 case $host_cpu in 12961 hppa*64*) 12962 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 12963 ;; 12964 ia64*) 12965 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 12966 ;; 12967 *) 12968 12969 # Older versions of the 11.00 compiler do not understand -b yet 12970 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 12971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 12972$as_echo_n "checking if $CC understands -b... " >&6; } 12973if ${lt_cv_prog_compiler__b+:} false; then : 12974 $as_echo_n "(cached) " >&6 12975else 12976 lt_cv_prog_compiler__b=no 12977 save_LDFLAGS="$LDFLAGS" 12978 LDFLAGS="$LDFLAGS -b" 12979 echo "$lt_simple_link_test_code" > conftest.$ac_ext 12980 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 12981 # The linker can only warn and ignore the option if not recognized 12982 # So say no if there are warnings 12983 if test -s conftest.err; then 12984 # Append any errors to the config.log. 12985 cat conftest.err 1>&5 12986 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 12987 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12988 if diff conftest.exp conftest.er2 >/dev/null; then 12989 lt_cv_prog_compiler__b=yes 12990 fi 12991 else 12992 lt_cv_prog_compiler__b=yes 12993 fi 12994 fi 12995 $RM -r conftest* 12996 LDFLAGS="$save_LDFLAGS" 12997 12998fi 12999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 13000$as_echo "$lt_cv_prog_compiler__b" >&6; } 13001 13002if test x"$lt_cv_prog_compiler__b" = xyes; then 13003 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 13004else 13005 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 13006fi 13007 13008 ;; 13009 esac 13010 fi 13011 if test "$with_gnu_ld" = no; then 13012 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 13013 hardcode_libdir_separator=: 13014 13015 case $host_cpu in 13016 hppa*64*|ia64*) 13017 hardcode_direct=no 13018 hardcode_shlibpath_var=no 13019 ;; 13020 *) 13021 hardcode_direct=yes 13022 hardcode_direct_absolute=yes 13023 export_dynamic_flag_spec='${wl}-E' 13024 13025 # hardcode_minus_L: Not really in the search PATH, 13026 # but as the default location of the library. 13027 hardcode_minus_L=yes 13028 ;; 13029 esac 13030 fi 13031 ;; 13032 13033 irix5* | irix6* | nonstopux*) 13034 if test "$GCC" = yes; then 13035 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 13036 # Try to use the -exported_symbol ld option, if it does not 13037 # work, assume that -exports_file does not work either and 13038 # implicitly export all symbols. 13039 # This should be the same for all languages, so no per-tag cache variable. 13040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 13041$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 13042if ${lt_cv_irix_exported_symbol+:} false; then : 13043 $as_echo_n "(cached) " >&6 13044else 13045 save_LDFLAGS="$LDFLAGS" 13046 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 13047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13048/* end confdefs.h. */ 13049int foo (void) { return 0; } 13050_ACEOF 13051if ac_fn_c_try_link "$LINENO"; then : 13052 lt_cv_irix_exported_symbol=yes 13053else 13054 lt_cv_irix_exported_symbol=no 13055fi 13056rm -f core conftest.err conftest.$ac_objext \ 13057 conftest$ac_exeext conftest.$ac_ext 13058 LDFLAGS="$save_LDFLAGS" 13059fi 13060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 13061$as_echo "$lt_cv_irix_exported_symbol" >&6; } 13062 if test "$lt_cv_irix_exported_symbol" = yes; then 13063 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' 13064 fi 13065 else 13066 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 13067 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' 13068 fi 13069 archive_cmds_need_lc='no' 13070 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 13071 hardcode_libdir_separator=: 13072 inherit_rpath=yes 13073 link_all_deplibs=yes 13074 ;; 13075 13076 netbsd*) 13077 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 13078 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 13079 else 13080 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 13081 fi 13082 hardcode_libdir_flag_spec='-R$libdir' 13083 hardcode_direct=yes 13084 hardcode_shlibpath_var=no 13085 ;; 13086 13087 newsos6) 13088 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13089 hardcode_direct=yes 13090 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 13091 hardcode_libdir_separator=: 13092 hardcode_shlibpath_var=no 13093 ;; 13094 13095 *nto* | *qnx*) 13096 ;; 13097 13098 openbsd*) 13099 if test -f /usr/libexec/ld.so; then 13100 hardcode_direct=yes 13101 hardcode_shlibpath_var=no 13102 hardcode_direct_absolute=yes 13103 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 13104 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 13105 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 13106 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 13107 export_dynamic_flag_spec='${wl}-E' 13108 else 13109 case $host_os in 13110 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 13111 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 13112 hardcode_libdir_flag_spec='-R$libdir' 13113 ;; 13114 *) 13115 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 13116 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 13117 ;; 13118 esac 13119 fi 13120 else 13121 ld_shlibs=no 13122 fi 13123 ;; 13124 13125 os2*) 13126 hardcode_libdir_flag_spec='-L$libdir' 13127 hardcode_minus_L=yes 13128 allow_undefined_flag=unsupported 13129 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' 13130 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 13131 ;; 13132 13133 osf3*) 13134 if test "$GCC" = yes; then 13135 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 13136 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 13137 else 13138 allow_undefined_flag=' -expect_unresolved \*' 13139 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 13140 fi 13141 archive_cmds_need_lc='no' 13142 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 13143 hardcode_libdir_separator=: 13144 ;; 13145 13146 osf4* | osf5*) # as osf3* with the addition of -msym flag 13147 if test "$GCC" = yes; then 13148 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 13149 archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 13150 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 13151 else 13152 allow_undefined_flag=' -expect_unresolved \*' 13153 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 13154 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ 13155 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' 13156 13157 # Both c and cxx compiler support -rpath directly 13158 hardcode_libdir_flag_spec='-rpath $libdir' 13159 fi 13160 archive_cmds_need_lc='no' 13161 hardcode_libdir_separator=: 13162 ;; 13163 13164 solaris*) 13165 no_undefined_flag=' -z defs' 13166 if test "$GCC" = yes; then 13167 wlarc='${wl}' 13168 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 13169 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13170 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 13171 else 13172 case `$CC -V 2>&1` in 13173 *"Compilers 5.0"*) 13174 wlarc='' 13175 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 13176 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13177 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 13178 ;; 13179 *) 13180 wlarc='${wl}' 13181 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 13182 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13183 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 13184 ;; 13185 esac 13186 fi 13187 hardcode_libdir_flag_spec='-R$libdir' 13188 hardcode_shlibpath_var=no 13189 case $host_os in 13190 solaris2.[0-5] | solaris2.[0-5].*) ;; 13191 *) 13192 # The compiler driver will combine and reorder linker options, 13193 # but understands `-z linker_flag'. GCC discards it without `$wl', 13194 # but is careful enough not to reorder. 13195 # Supported since Solaris 2.6 (maybe 2.5.1?) 13196 if test "$GCC" = yes; then 13197 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 13198 else 13199 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 13200 fi 13201 ;; 13202 esac 13203 link_all_deplibs=yes 13204 ;; 13205 13206 sunos4*) 13207 if test "x$host_vendor" = xsequent; then 13208 # Use $CC to link under sequent, because it throws in some extra .o 13209 # files that make .init and .fini sections work. 13210 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 13211 else 13212 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 13213 fi 13214 hardcode_libdir_flag_spec='-L$libdir' 13215 hardcode_direct=yes 13216 hardcode_minus_L=yes 13217 hardcode_shlibpath_var=no 13218 ;; 13219 13220 sysv4) 13221 case $host_vendor in 13222 sni) 13223 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13224 hardcode_direct=yes # is this really true??? 13225 ;; 13226 siemens) 13227 ## LD is ld it makes a PLAMLIB 13228 ## CC just makes a GrossModule. 13229 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 13230 reload_cmds='$CC -r -o $output$reload_objs' 13231 hardcode_direct=no 13232 ;; 13233 motorola) 13234 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13235 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 13236 ;; 13237 esac 13238 runpath_var='LD_RUN_PATH' 13239 hardcode_shlibpath_var=no 13240 ;; 13241 13242 sysv4.3*) 13243 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13244 hardcode_shlibpath_var=no 13245 export_dynamic_flag_spec='-Bexport' 13246 ;; 13247 13248 sysv4*MP*) 13249 if test -d /usr/nec; then 13250 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13251 hardcode_shlibpath_var=no 13252 runpath_var=LD_RUN_PATH 13253 hardcode_runpath_var=yes 13254 ld_shlibs=yes 13255 fi 13256 ;; 13257 13258 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 13259 no_undefined_flag='${wl}-z,text' 13260 archive_cmds_need_lc=no 13261 hardcode_shlibpath_var=no 13262 runpath_var='LD_RUN_PATH' 13263 13264 if test "$GCC" = yes; then 13265 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13266 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13267 else 13268 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13269 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13270 fi 13271 ;; 13272 13273 sysv5* | sco3.2v5* | sco5v6*) 13274 # Note: We can NOT use -z defs as we might desire, because we do not 13275 # link with -lc, and that would cause any symbols used from libc to 13276 # always be unresolved, which means just about no library would 13277 # ever link correctly. If we're not using GNU ld we use -z text 13278 # though, which does catch some bad symbols but isn't as heavy-handed 13279 # as -z defs. 13280 no_undefined_flag='${wl}-z,text' 13281 allow_undefined_flag='${wl}-z,nodefs' 13282 archive_cmds_need_lc=no 13283 hardcode_shlibpath_var=no 13284 hardcode_libdir_flag_spec='${wl}-R,$libdir' 13285 hardcode_libdir_separator=':' 13286 link_all_deplibs=yes 13287 export_dynamic_flag_spec='${wl}-Bexport' 13288 runpath_var='LD_RUN_PATH' 13289 13290 if test "$GCC" = yes; then 13291 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13292 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13293 else 13294 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13295 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13296 fi 13297 ;; 13298 13299 uts4*) 13300 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13301 hardcode_libdir_flag_spec='-L$libdir' 13302 hardcode_shlibpath_var=no 13303 ;; 13304 13305 *) 13306 ld_shlibs=no 13307 ;; 13308 esac 13309 13310 if test x$host_vendor = xsni; then 13311 case $host in 13312 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 13313 export_dynamic_flag_spec='${wl}-Blargedynsym' 13314 ;; 13315 esac 13316 fi 13317 fi 13318 13319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 13320$as_echo "$ld_shlibs" >&6; } 13321test "$ld_shlibs" = no && can_build_shared=no 13322 13323with_gnu_ld=$with_gnu_ld 13324 13325 13326 13327 13328 13329 13330 13331 13332 13333 13334 13335 13336 13337 13338 13339# 13340# Do we need to explicitly link libc? 13341# 13342case "x$archive_cmds_need_lc" in 13343x|xyes) 13344 # Assume -lc should be added 13345 archive_cmds_need_lc=yes 13346 13347 if test "$enable_shared" = yes && test "$GCC" = yes; then 13348 case $archive_cmds in 13349 *'~'*) 13350 # FIXME: we may have to deal with multi-command sequences. 13351 ;; 13352 '$CC '*) 13353 # Test whether the compiler implicitly links with -lc since on some 13354 # systems, -lgcc has to come before -lc. If gcc already passes -lc 13355 # to ld, don't add -lc before -lgcc. 13356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 13357$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 13358if ${lt_cv_archive_cmds_need_lc+:} false; then : 13359 $as_echo_n "(cached) " >&6 13360else 13361 $RM conftest* 13362 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 13363 13364 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13365 (eval $ac_compile) 2>&5 13366 ac_status=$? 13367 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13368 test $ac_status = 0; } 2>conftest.err; then 13369 soname=conftest 13370 lib=conftest 13371 libobjs=conftest.$ac_objext 13372 deplibs= 13373 wl=$lt_prog_compiler_wl 13374 pic_flag=$lt_prog_compiler_pic 13375 compiler_flags=-v 13376 linker_flags=-v 13377 verstring= 13378 output_objdir=. 13379 libname=conftest 13380 lt_save_allow_undefined_flag=$allow_undefined_flag 13381 allow_undefined_flag= 13382 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 13383 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 13384 ac_status=$? 13385 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13386 test $ac_status = 0; } 13387 then 13388 lt_cv_archive_cmds_need_lc=no 13389 else 13390 lt_cv_archive_cmds_need_lc=yes 13391 fi 13392 allow_undefined_flag=$lt_save_allow_undefined_flag 13393 else 13394 cat conftest.err 1>&5 13395 fi 13396 $RM conftest* 13397 13398fi 13399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 13400$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 13401 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 13402 ;; 13403 esac 13404 fi 13405 ;; 13406esac 13407 13408 13409 13410 13411 13412 13413 13414 13415 13416 13417 13418 13419 13420 13421 13422 13423 13424 13425 13426 13427 13428 13429 13430 13431 13432 13433 13434 13435 13436 13437 13438 13439 13440 13441 13442 13443 13444 13445 13446 13447 13448 13449 13450 13451 13452 13453 13454 13455 13456 13457 13458 13459 13460 13461 13462 13463 13464 13465 13466 13467 13468 13469 13470 13471 13472 13473 13474 13475 13476 13477 13478 13479 13480 13481 13482 13483 13484 13485 13486 13487 13488 13489 13490 13491 13492 13493 13494 13495 13496 13497 13498 13499 13500 13501 13502 13503 13504 13505 13506 13507 13508 13509 13510 13511 13512 13513 13514 13515 13516 13517 13518 13519 13520 13521 13522 13523 13524 13525 13526 13527 13528 13529 13530 13531 13532 13533 13534 13535 13536 13537 13538 13539 13540 13541 13542 13543 13544 13545 13546 13547 13548 13549 13550 13551 13552 13553 13554 13555 13556 13557 13558 13559 13560 13561 13562 13563 13564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 13565$as_echo_n "checking dynamic linker characteristics... " >&6; } 13566 13567if test "$GCC" = yes; then 13568 case $host_os in 13569 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 13570 *) lt_awk_arg="/^libraries:/" ;; 13571 esac 13572 case $host_os in 13573 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 13574 *) lt_sed_strip_eq="s,=/,/,g" ;; 13575 esac 13576 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 13577 case $lt_search_path_spec in 13578 *\;*) 13579 # if the path contains ";" then we assume it to be the separator 13580 # otherwise default to the standard path separator (i.e. ":") - it is 13581 # assumed that no part of a normal pathname contains ";" but that should 13582 # okay in the real world where ";" in dirpaths is itself problematic. 13583 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 13584 ;; 13585 *) 13586 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 13587 ;; 13588 esac 13589 # Ok, now we have the path, separated by spaces, we can step through it 13590 # and add multilib dir if necessary. 13591 lt_tmp_lt_search_path_spec= 13592 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 13593 for lt_sys_path in $lt_search_path_spec; do 13594 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 13595 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 13596 else 13597 test -d "$lt_sys_path" && \ 13598 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 13599 fi 13600 done 13601 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 13602BEGIN {RS=" "; FS="/|\n";} { 13603 lt_foo=""; 13604 lt_count=0; 13605 for (lt_i = NF; lt_i > 0; lt_i--) { 13606 if ($lt_i != "" && $lt_i != ".") { 13607 if ($lt_i == "..") { 13608 lt_count++; 13609 } else { 13610 if (lt_count == 0) { 13611 lt_foo="/" $lt_i lt_foo; 13612 } else { 13613 lt_count--; 13614 } 13615 } 13616 } 13617 } 13618 if (lt_foo != "") { lt_freq[lt_foo]++; } 13619 if (lt_freq[lt_foo] == 1) { print lt_foo; } 13620}'` 13621 # AWK program above erroneously prepends '/' to C:/dos/paths 13622 # for these hosts. 13623 case $host_os in 13624 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 13625 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 13626 esac 13627 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 13628else 13629 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 13630fi 13631library_names_spec= 13632libname_spec='lib$name' 13633soname_spec= 13634shrext_cmds=".so" 13635postinstall_cmds= 13636postuninstall_cmds= 13637finish_cmds= 13638finish_eval= 13639shlibpath_var= 13640shlibpath_overrides_runpath=unknown 13641version_type=none 13642dynamic_linker="$host_os ld.so" 13643sys_lib_dlsearch_path_spec="/lib /usr/lib" 13644need_lib_prefix=unknown 13645hardcode_into_libs=no 13646 13647# when you set need_version to no, make sure it does not cause -set_version 13648# flags to be left without arguments 13649need_version=unknown 13650 13651case $host_os in 13652aix3*) 13653 version_type=linux 13654 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 13655 shlibpath_var=LIBPATH 13656 13657 # AIX 3 has no versioning support, so we append a major version to the name. 13658 soname_spec='${libname}${release}${shared_ext}$major' 13659 ;; 13660 13661aix[4-9]*) 13662 version_type=linux 13663 need_lib_prefix=no 13664 need_version=no 13665 hardcode_into_libs=yes 13666 if test "$host_cpu" = ia64; then 13667 # AIX 5 supports IA64 13668 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 13669 shlibpath_var=LD_LIBRARY_PATH 13670 else 13671 # With GCC up to 2.95.x, collect2 would create an import file 13672 # for dependence libraries. The import file would start with 13673 # the line `#! .'. This would cause the generated library to 13674 # depend on `.', always an invalid library. This was fixed in 13675 # development snapshots of GCC prior to 3.0. 13676 case $host_os in 13677 aix4 | aix4.[01] | aix4.[01].*) 13678 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 13679 echo ' yes ' 13680 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 13681 : 13682 else 13683 can_build_shared=no 13684 fi 13685 ;; 13686 esac 13687 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 13688 # soname into executable. Probably we can add versioning support to 13689 # collect2, so additional links can be useful in future. 13690 if test "$aix_use_runtimelinking" = yes; then 13691 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 13692 # instead of lib<name>.a to let people know that these are not 13693 # typical AIX shared libraries. 13694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13695 else 13696 # We preserve .a as extension for shared libraries through AIX4.2 13697 # and later when we are not doing run time linking. 13698 library_names_spec='${libname}${release}.a $libname.a' 13699 soname_spec='${libname}${release}${shared_ext}$major' 13700 fi 13701 shlibpath_var=LIBPATH 13702 fi 13703 ;; 13704 13705amigaos*) 13706 case $host_cpu in 13707 powerpc) 13708 # Since July 2007 AmigaOS4 officially supports .so libraries. 13709 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 13710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13711 ;; 13712 m68k) 13713 library_names_spec='$libname.ixlibrary $libname.a' 13714 # Create ${libname}_ixlibrary.a entries in /sys/libs. 13715 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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' 13716 ;; 13717 esac 13718 ;; 13719 13720beos*) 13721 library_names_spec='${libname}${shared_ext}' 13722 dynamic_linker="$host_os ld.so" 13723 shlibpath_var=LIBRARY_PATH 13724 ;; 13725 13726bsdi[45]*) 13727 version_type=linux 13728 need_version=no 13729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13730 soname_spec='${libname}${release}${shared_ext}$major' 13731 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 13732 shlibpath_var=LD_LIBRARY_PATH 13733 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 13734 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 13735 # the default ld.so.conf also contains /usr/contrib/lib and 13736 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 13737 # libtool to hard-code these into programs 13738 ;; 13739 13740cygwin* | mingw* | pw32* | cegcc*) 13741 version_type=windows 13742 shrext_cmds=".dll" 13743 need_version=no 13744 need_lib_prefix=no 13745 13746 case $GCC,$cc_basename in 13747 yes,*) 13748 # gcc 13749 library_names_spec='$libname.dll.a' 13750 # DLL is installed to $(libdir)/../bin by postinstall_cmds 13751 postinstall_cmds='base_file=`basename \${file}`~ 13752 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 13753 dldir=$destdir/`dirname \$dlpath`~ 13754 test -d \$dldir || mkdir -p \$dldir~ 13755 $install_prog $dir/$dlname \$dldir/$dlname~ 13756 chmod a+x \$dldir/$dlname~ 13757 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 13758 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 13759 fi' 13760 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 13761 dlpath=$dir/\$dldll~ 13762 $RM \$dlpath' 13763 shlibpath_overrides_runpath=yes 13764 13765 case $host_os in 13766 cygwin*) 13767 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 13768 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13769 13770 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 13771 ;; 13772 mingw* | cegcc*) 13773 # MinGW DLLs use traditional 'lib' prefix 13774 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13775 ;; 13776 pw32*) 13777 # pw32 DLLs use 'pw' prefix rather than 'lib' 13778 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13779 ;; 13780 esac 13781 dynamic_linker='Win32 ld.exe' 13782 ;; 13783 13784 *,cl*) 13785 # Native MSVC 13786 libname_spec='$name' 13787 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13788 library_names_spec='${libname}.dll.lib' 13789 13790 case $build_os in 13791 mingw*) 13792 sys_lib_search_path_spec= 13793 lt_save_ifs=$IFS 13794 IFS=';' 13795 for lt_path in $LIB 13796 do 13797 IFS=$lt_save_ifs 13798 # Let DOS variable expansion print the short 8.3 style file name. 13799 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 13800 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 13801 done 13802 IFS=$lt_save_ifs 13803 # Convert to MSYS style. 13804 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 13805 ;; 13806 cygwin*) 13807 # Convert to unix form, then to dos form, then back to unix form 13808 # but this time dos style (no spaces!) so that the unix form looks 13809 # like /cygdrive/c/PROGRA~1:/cygdr... 13810 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 13811 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 13812 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 13813 ;; 13814 *) 13815 sys_lib_search_path_spec="$LIB" 13816 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 13817 # It is most probably a Windows format PATH. 13818 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 13819 else 13820 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 13821 fi 13822 # FIXME: find the short name or the path components, as spaces are 13823 # common. (e.g. "Program Files" -> "PROGRA~1") 13824 ;; 13825 esac 13826 13827 # DLL is installed to $(libdir)/../bin by postinstall_cmds 13828 postinstall_cmds='base_file=`basename \${file}`~ 13829 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 13830 dldir=$destdir/`dirname \$dlpath`~ 13831 test -d \$dldir || mkdir -p \$dldir~ 13832 $install_prog $dir/$dlname \$dldir/$dlname' 13833 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 13834 dlpath=$dir/\$dldll~ 13835 $RM \$dlpath' 13836 shlibpath_overrides_runpath=yes 13837 dynamic_linker='Win32 link.exe' 13838 ;; 13839 13840 *) 13841 # Assume MSVC wrapper 13842 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 13843 dynamic_linker='Win32 ld.exe' 13844 ;; 13845 esac 13846 # FIXME: first we should search . and the directory the executable is in 13847 shlibpath_var=PATH 13848 ;; 13849 13850darwin* | rhapsody*) 13851 dynamic_linker="$host_os dyld" 13852 version_type=darwin 13853 need_lib_prefix=no 13854 need_version=no 13855 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 13856 soname_spec='${libname}${release}${major}$shared_ext' 13857 shlibpath_overrides_runpath=yes 13858 shlibpath_var=DYLD_LIBRARY_PATH 13859 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 13860 13861 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 13862 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 13863 ;; 13864 13865dgux*) 13866 version_type=linux 13867 need_lib_prefix=no 13868 need_version=no 13869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 13870 soname_spec='${libname}${release}${shared_ext}$major' 13871 shlibpath_var=LD_LIBRARY_PATH 13872 ;; 13873 13874freebsd1*) 13875 dynamic_linker=no 13876 ;; 13877 13878freebsd* | dragonfly*) 13879 # DragonFly does not have aout. When/if they implement a new 13880 # versioning mechanism, adjust this. 13881 if test -x /usr/bin/objformat; then 13882 objformat=`/usr/bin/objformat` 13883 else 13884 case $host_os in 13885 freebsd[123]*) objformat=aout ;; 13886 *) objformat=elf ;; 13887 esac 13888 fi 13889 version_type=freebsd-$objformat 13890 case $version_type in 13891 freebsd-elf*) 13892 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 13893 need_version=no 13894 need_lib_prefix=no 13895 ;; 13896 freebsd-*) 13897 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 13898 need_version=yes 13899 ;; 13900 esac 13901 shlibpath_var=LD_LIBRARY_PATH 13902 case $host_os in 13903 freebsd2*) 13904 shlibpath_overrides_runpath=yes 13905 ;; 13906 freebsd3.[01]* | freebsdelf3.[01]*) 13907 shlibpath_overrides_runpath=yes 13908 hardcode_into_libs=yes 13909 ;; 13910 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 13911 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 13912 shlibpath_overrides_runpath=no 13913 hardcode_into_libs=yes 13914 ;; 13915 *) # from 4.6 on, and DragonFly 13916 shlibpath_overrides_runpath=yes 13917 hardcode_into_libs=yes 13918 ;; 13919 esac 13920 ;; 13921 13922gnu*) 13923 version_type=linux 13924 need_lib_prefix=no 13925 need_version=no 13926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 13927 soname_spec='${libname}${release}${shared_ext}$major' 13928 shlibpath_var=LD_LIBRARY_PATH 13929 hardcode_into_libs=yes 13930 ;; 13931 13932haiku*) 13933 version_type=linux 13934 need_lib_prefix=no 13935 need_version=no 13936 dynamic_linker="$host_os runtime_loader" 13937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 13938 soname_spec='${libname}${release}${shared_ext}$major' 13939 shlibpath_var=LIBRARY_PATH 13940 shlibpath_overrides_runpath=yes 13941 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 13942 hardcode_into_libs=yes 13943 ;; 13944 13945hpux9* | hpux10* | hpux11*) 13946 # Give a soname corresponding to the major version so that dld.sl refuses to 13947 # link against other versions. 13948 version_type=sunos 13949 need_lib_prefix=no 13950 need_version=no 13951 case $host_cpu in 13952 ia64*) 13953 shrext_cmds='.so' 13954 hardcode_into_libs=yes 13955 dynamic_linker="$host_os dld.so" 13956 shlibpath_var=LD_LIBRARY_PATH 13957 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 13958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13959 soname_spec='${libname}${release}${shared_ext}$major' 13960 if test "X$HPUX_IA64_MODE" = X32; then 13961 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 13962 else 13963 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 13964 fi 13965 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13966 ;; 13967 hppa*64*) 13968 shrext_cmds='.sl' 13969 hardcode_into_libs=yes 13970 dynamic_linker="$host_os dld.sl" 13971 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 13972 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 13973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13974 soname_spec='${libname}${release}${shared_ext}$major' 13975 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 13976 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13977 ;; 13978 *) 13979 shrext_cmds='.sl' 13980 dynamic_linker="$host_os dld.sl" 13981 shlibpath_var=SHLIB_PATH 13982 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 13983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13984 soname_spec='${libname}${release}${shared_ext}$major' 13985 ;; 13986 esac 13987 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 13988 postinstall_cmds='chmod 555 $lib' 13989 # or fails outright, so override atomically: 13990 install_override_mode=555 13991 ;; 13992 13993interix[3-9]*) 13994 version_type=linux 13995 need_lib_prefix=no 13996 need_version=no 13997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13998 soname_spec='${libname}${release}${shared_ext}$major' 13999 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 14000 shlibpath_var=LD_LIBRARY_PATH 14001 shlibpath_overrides_runpath=no 14002 hardcode_into_libs=yes 14003 ;; 14004 14005irix5* | irix6* | nonstopux*) 14006 case $host_os in 14007 nonstopux*) version_type=nonstopux ;; 14008 *) 14009 if test "$lt_cv_prog_gnu_ld" = yes; then 14010 version_type=linux 14011 else 14012 version_type=irix 14013 fi ;; 14014 esac 14015 need_lib_prefix=no 14016 need_version=no 14017 soname_spec='${libname}${release}${shared_ext}$major' 14018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 14019 case $host_os in 14020 irix5* | nonstopux*) 14021 libsuff= shlibsuff= 14022 ;; 14023 *) 14024 case $LD in # libtool.m4 will add one of these switches to LD 14025 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 14026 libsuff= shlibsuff= libmagic=32-bit;; 14027 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 14028 libsuff=32 shlibsuff=N32 libmagic=N32;; 14029 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 14030 libsuff=64 shlibsuff=64 libmagic=64-bit;; 14031 *) libsuff= shlibsuff= libmagic=never-match;; 14032 esac 14033 ;; 14034 esac 14035 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 14036 shlibpath_overrides_runpath=no 14037 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 14038 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 14039 hardcode_into_libs=yes 14040 ;; 14041 14042# No shared lib support for Linux oldld, aout, or coff. 14043linux*oldld* | linux*aout* | linux*coff*) 14044 dynamic_linker=no 14045 ;; 14046 14047# This must be Linux ELF. 14048linux* | k*bsd*-gnu | kopensolaris*-gnu) 14049 version_type=linux 14050 need_lib_prefix=no 14051 need_version=no 14052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14053 soname_spec='${libname}${release}${shared_ext}$major' 14054 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 14055 shlibpath_var=LD_LIBRARY_PATH 14056 shlibpath_overrides_runpath=no 14057 14058 # Some binutils ld are patched to set DT_RUNPATH 14059 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 14060 $as_echo_n "(cached) " >&6 14061else 14062 lt_cv_shlibpath_overrides_runpath=no 14063 save_LDFLAGS=$LDFLAGS 14064 save_libdir=$libdir 14065 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 14066 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 14067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14068/* end confdefs.h. */ 14069 14070int 14071main () 14072{ 14073 14074 ; 14075 return 0; 14076} 14077_ACEOF 14078if ac_fn_c_try_link "$LINENO"; then : 14079 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 14080 lt_cv_shlibpath_overrides_runpath=yes 14081fi 14082fi 14083rm -f core conftest.err conftest.$ac_objext \ 14084 conftest$ac_exeext conftest.$ac_ext 14085 LDFLAGS=$save_LDFLAGS 14086 libdir=$save_libdir 14087 14088fi 14089 14090 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 14091 14092 # This implies no fast_install, which is unacceptable. 14093 # Some rework will be needed to allow for fast_install 14094 # before this can be enabled. 14095 hardcode_into_libs=yes 14096 14097 # Append ld.so.conf contents to the search path 14098 if test -f /etc/ld.so.conf; then 14099 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` 14100 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 14101 fi 14102 14103 # We used to test for /lib/ld.so.1 and disable shared libraries on 14104 # powerpc, because MkLinux only supported shared libraries with the 14105 # GNU dynamic linker. Since this was broken with cross compilers, 14106 # most powerpc-linux boxes support dynamic linking these days and 14107 # people can always --disable-shared, the test was removed, and we 14108 # assume the GNU/Linux dynamic linker is in use. 14109 dynamic_linker='GNU/Linux ld.so' 14110 ;; 14111 14112netbsd*) 14113 version_type=sunos 14114 need_lib_prefix=no 14115 need_version=no 14116 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 14117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14118 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 14119 dynamic_linker='NetBSD (a.out) ld.so' 14120 else 14121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14122 soname_spec='${libname}${release}${shared_ext}$major' 14123 dynamic_linker='NetBSD ld.elf_so' 14124 fi 14125 shlibpath_var=LD_LIBRARY_PATH 14126 shlibpath_overrides_runpath=yes 14127 hardcode_into_libs=yes 14128 ;; 14129 14130newsos6) 14131 version_type=linux 14132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14133 shlibpath_var=LD_LIBRARY_PATH 14134 shlibpath_overrides_runpath=yes 14135 ;; 14136 14137*nto* | *qnx*) 14138 version_type=qnx 14139 need_lib_prefix=no 14140 need_version=no 14141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14142 soname_spec='${libname}${release}${shared_ext}$major' 14143 shlibpath_var=LD_LIBRARY_PATH 14144 shlibpath_overrides_runpath=no 14145 hardcode_into_libs=yes 14146 dynamic_linker='ldqnx.so' 14147 ;; 14148 14149openbsd*) 14150 version_type=sunos 14151 sys_lib_dlsearch_path_spec="/usr/lib" 14152 need_lib_prefix=no 14153 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 14154 case $host_os in 14155 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 14156 *) need_version=no ;; 14157 esac 14158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14159 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 14160 shlibpath_var=LD_LIBRARY_PATH 14161 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 14162 case $host_os in 14163 openbsd2.[89] | openbsd2.[89].*) 14164 shlibpath_overrides_runpath=no 14165 ;; 14166 *) 14167 shlibpath_overrides_runpath=yes 14168 ;; 14169 esac 14170 else 14171 shlibpath_overrides_runpath=yes 14172 fi 14173 ;; 14174 14175os2*) 14176 libname_spec='$name' 14177 shrext_cmds=".dll" 14178 need_lib_prefix=no 14179 library_names_spec='$libname${shared_ext} $libname.a' 14180 dynamic_linker='OS/2 ld.exe' 14181 shlibpath_var=LIBPATH 14182 ;; 14183 14184osf3* | osf4* | osf5*) 14185 version_type=osf 14186 need_lib_prefix=no 14187 need_version=no 14188 soname_spec='${libname}${release}${shared_ext}$major' 14189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14190 shlibpath_var=LD_LIBRARY_PATH 14191 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 14192 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 14193 ;; 14194 14195rdos*) 14196 dynamic_linker=no 14197 ;; 14198 14199solaris*) 14200 version_type=linux 14201 need_lib_prefix=no 14202 need_version=no 14203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14204 soname_spec='${libname}${release}${shared_ext}$major' 14205 shlibpath_var=LD_LIBRARY_PATH 14206 shlibpath_overrides_runpath=yes 14207 hardcode_into_libs=yes 14208 # ldd complains unless libraries are executable 14209 postinstall_cmds='chmod +x $lib' 14210 ;; 14211 14212sunos4*) 14213 version_type=sunos 14214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14215 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 14216 shlibpath_var=LD_LIBRARY_PATH 14217 shlibpath_overrides_runpath=yes 14218 if test "$with_gnu_ld" = yes; then 14219 need_lib_prefix=no 14220 fi 14221 need_version=yes 14222 ;; 14223 14224sysv4 | sysv4.3*) 14225 version_type=linux 14226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14227 soname_spec='${libname}${release}${shared_ext}$major' 14228 shlibpath_var=LD_LIBRARY_PATH 14229 case $host_vendor in 14230 sni) 14231 shlibpath_overrides_runpath=no 14232 need_lib_prefix=no 14233 runpath_var=LD_RUN_PATH 14234 ;; 14235 siemens) 14236 need_lib_prefix=no 14237 ;; 14238 motorola) 14239 need_lib_prefix=no 14240 need_version=no 14241 shlibpath_overrides_runpath=no 14242 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 14243 ;; 14244 esac 14245 ;; 14246 14247sysv4*MP*) 14248 if test -d /usr/nec ;then 14249 version_type=linux 14250 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 14251 soname_spec='$libname${shared_ext}.$major' 14252 shlibpath_var=LD_LIBRARY_PATH 14253 fi 14254 ;; 14255 14256sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 14257 version_type=freebsd-elf 14258 need_lib_prefix=no 14259 need_version=no 14260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 14261 soname_spec='${libname}${release}${shared_ext}$major' 14262 shlibpath_var=LD_LIBRARY_PATH 14263 shlibpath_overrides_runpath=yes 14264 hardcode_into_libs=yes 14265 if test "$with_gnu_ld" = yes; then 14266 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 14267 else 14268 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 14269 case $host_os in 14270 sco3.2v5*) 14271 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 14272 ;; 14273 esac 14274 fi 14275 sys_lib_dlsearch_path_spec='/usr/lib' 14276 ;; 14277 14278tpf*) 14279 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 14280 version_type=linux 14281 need_lib_prefix=no 14282 need_version=no 14283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14284 shlibpath_var=LD_LIBRARY_PATH 14285 shlibpath_overrides_runpath=no 14286 hardcode_into_libs=yes 14287 ;; 14288 14289uts4*) 14290 version_type=linux 14291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14292 soname_spec='${libname}${release}${shared_ext}$major' 14293 shlibpath_var=LD_LIBRARY_PATH 14294 ;; 14295 14296*) 14297 dynamic_linker=no 14298 ;; 14299esac 14300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 14301$as_echo "$dynamic_linker" >&6; } 14302test "$dynamic_linker" = no && can_build_shared=no 14303 14304variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 14305if test "$GCC" = yes; then 14306 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 14307fi 14308 14309if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 14310 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 14311fi 14312if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 14313 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 14314fi 14315 14316 14317 14318 14319 14320 14321 14322 14323 14324 14325 14326 14327 14328 14329 14330 14331 14332 14333 14334 14335 14336 14337 14338 14339 14340 14341 14342 14343 14344 14345 14346 14347 14348 14349 14350 14351 14352 14353 14354 14355 14356 14357 14358 14359 14360 14361 14362 14363 14364 14365 14366 14367 14368 14369 14370 14371 14372 14373 14374 14375 14376 14377 14378 14379 14380 14381 14382 14383 14384 14385 14386 14387 14388 14389 14390 14391 14392 14393 14394 14395 14396 14397 14398 14399 14400 14401 14402 14403 14404 14405 14406 14407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 14408$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 14409hardcode_action= 14410if test -n "$hardcode_libdir_flag_spec" || 14411 test -n "$runpath_var" || 14412 test "X$hardcode_automatic" = "Xyes" ; then 14413 14414 # We can hardcode non-existent directories. 14415 if test "$hardcode_direct" != no && 14416 # If the only mechanism to avoid hardcoding is shlibpath_var, we 14417 # have to relink, otherwise we might link with an installed library 14418 # when we should be linking with a yet-to-be-installed one 14419 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 14420 test "$hardcode_minus_L" != no; then 14421 # Linking always hardcodes the temporary library directory. 14422 hardcode_action=relink 14423 else 14424 # We can link without hardcoding, and we can hardcode nonexisting dirs. 14425 hardcode_action=immediate 14426 fi 14427else 14428 # We cannot hardcode anything, or else we can only hardcode existing 14429 # directories. 14430 hardcode_action=unsupported 14431fi 14432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 14433$as_echo "$hardcode_action" >&6; } 14434 14435if test "$hardcode_action" = relink || 14436 test "$inherit_rpath" = yes; then 14437 # Fast installation is not supported 14438 enable_fast_install=no 14439elif test "$shlibpath_overrides_runpath" = yes || 14440 test "$enable_shared" = no; then 14441 # Fast installation is not necessary 14442 enable_fast_install=needless 14443fi 14444 14445 14446 14447 14448 14449 14450 if test "x$enable_dlopen" != xyes; then 14451 enable_dlopen=unknown 14452 enable_dlopen_self=unknown 14453 enable_dlopen_self_static=unknown 14454else 14455 lt_cv_dlopen=no 14456 lt_cv_dlopen_libs= 14457 14458 case $host_os in 14459 beos*) 14460 lt_cv_dlopen="load_add_on" 14461 lt_cv_dlopen_libs= 14462 lt_cv_dlopen_self=yes 14463 ;; 14464 14465 mingw* | pw32* | cegcc*) 14466 lt_cv_dlopen="LoadLibrary" 14467 lt_cv_dlopen_libs= 14468 ;; 14469 14470 cygwin*) 14471 lt_cv_dlopen="dlopen" 14472 lt_cv_dlopen_libs= 14473 ;; 14474 14475 darwin*) 14476 # if libdl is installed we need to link against it 14477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 14478$as_echo_n "checking for dlopen in -ldl... " >&6; } 14479if ${ac_cv_lib_dl_dlopen+:} false; then : 14480 $as_echo_n "(cached) " >&6 14481else 14482 ac_check_lib_save_LIBS=$LIBS 14483LIBS="-ldl $LIBS" 14484cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14485/* end confdefs.h. */ 14486 14487/* Override any GCC internal prototype to avoid an error. 14488 Use char because int might match the return type of a GCC 14489 builtin and then its argument prototype would still apply. */ 14490#ifdef __cplusplus 14491extern "C" 14492#endif 14493char dlopen (); 14494int 14495main () 14496{ 14497return dlopen (); 14498 ; 14499 return 0; 14500} 14501_ACEOF 14502if ac_fn_c_try_link "$LINENO"; then : 14503 ac_cv_lib_dl_dlopen=yes 14504else 14505 ac_cv_lib_dl_dlopen=no 14506fi 14507rm -f core conftest.err conftest.$ac_objext \ 14508 conftest$ac_exeext conftest.$ac_ext 14509LIBS=$ac_check_lib_save_LIBS 14510fi 14511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 14512$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 14513if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 14514 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 14515else 14516 14517 lt_cv_dlopen="dyld" 14518 lt_cv_dlopen_libs= 14519 lt_cv_dlopen_self=yes 14520 14521fi 14522 14523 ;; 14524 14525 *) 14526 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 14527if test "x$ac_cv_func_shl_load" = xyes; then : 14528 lt_cv_dlopen="shl_load" 14529else 14530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 14531$as_echo_n "checking for shl_load in -ldld... " >&6; } 14532if ${ac_cv_lib_dld_shl_load+:} false; then : 14533 $as_echo_n "(cached) " >&6 14534else 14535 ac_check_lib_save_LIBS=$LIBS 14536LIBS="-ldld $LIBS" 14537cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14538/* end confdefs.h. */ 14539 14540/* Override any GCC internal prototype to avoid an error. 14541 Use char because int might match the return type of a GCC 14542 builtin and then its argument prototype would still apply. */ 14543#ifdef __cplusplus 14544extern "C" 14545#endif 14546char shl_load (); 14547int 14548main () 14549{ 14550return shl_load (); 14551 ; 14552 return 0; 14553} 14554_ACEOF 14555if ac_fn_c_try_link "$LINENO"; then : 14556 ac_cv_lib_dld_shl_load=yes 14557else 14558 ac_cv_lib_dld_shl_load=no 14559fi 14560rm -f core conftest.err conftest.$ac_objext \ 14561 conftest$ac_exeext conftest.$ac_ext 14562LIBS=$ac_check_lib_save_LIBS 14563fi 14564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 14565$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 14566if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 14567 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 14568else 14569 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 14570if test "x$ac_cv_func_dlopen" = xyes; then : 14571 lt_cv_dlopen="dlopen" 14572else 14573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 14574$as_echo_n "checking for dlopen in -ldl... " >&6; } 14575if ${ac_cv_lib_dl_dlopen+:} false; then : 14576 $as_echo_n "(cached) " >&6 14577else 14578 ac_check_lib_save_LIBS=$LIBS 14579LIBS="-ldl $LIBS" 14580cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14581/* end confdefs.h. */ 14582 14583/* Override any GCC internal prototype to avoid an error. 14584 Use char because int might match the return type of a GCC 14585 builtin and then its argument prototype would still apply. */ 14586#ifdef __cplusplus 14587extern "C" 14588#endif 14589char dlopen (); 14590int 14591main () 14592{ 14593return dlopen (); 14594 ; 14595 return 0; 14596} 14597_ACEOF 14598if ac_fn_c_try_link "$LINENO"; then : 14599 ac_cv_lib_dl_dlopen=yes 14600else 14601 ac_cv_lib_dl_dlopen=no 14602fi 14603rm -f core conftest.err conftest.$ac_objext \ 14604 conftest$ac_exeext conftest.$ac_ext 14605LIBS=$ac_check_lib_save_LIBS 14606fi 14607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 14608$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 14609if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 14610 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 14611else 14612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 14613$as_echo_n "checking for dlopen in -lsvld... " >&6; } 14614if ${ac_cv_lib_svld_dlopen+:} false; then : 14615 $as_echo_n "(cached) " >&6 14616else 14617 ac_check_lib_save_LIBS=$LIBS 14618LIBS="-lsvld $LIBS" 14619cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14620/* end confdefs.h. */ 14621 14622/* Override any GCC internal prototype to avoid an error. 14623 Use char because int might match the return type of a GCC 14624 builtin and then its argument prototype would still apply. */ 14625#ifdef __cplusplus 14626extern "C" 14627#endif 14628char dlopen (); 14629int 14630main () 14631{ 14632return dlopen (); 14633 ; 14634 return 0; 14635} 14636_ACEOF 14637if ac_fn_c_try_link "$LINENO"; then : 14638 ac_cv_lib_svld_dlopen=yes 14639else 14640 ac_cv_lib_svld_dlopen=no 14641fi 14642rm -f core conftest.err conftest.$ac_objext \ 14643 conftest$ac_exeext conftest.$ac_ext 14644LIBS=$ac_check_lib_save_LIBS 14645fi 14646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 14647$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 14648if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 14649 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 14650else 14651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 14652$as_echo_n "checking for dld_link in -ldld... " >&6; } 14653if ${ac_cv_lib_dld_dld_link+:} false; then : 14654 $as_echo_n "(cached) " >&6 14655else 14656 ac_check_lib_save_LIBS=$LIBS 14657LIBS="-ldld $LIBS" 14658cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14659/* end confdefs.h. */ 14660 14661/* Override any GCC internal prototype to avoid an error. 14662 Use char because int might match the return type of a GCC 14663 builtin and then its argument prototype would still apply. */ 14664#ifdef __cplusplus 14665extern "C" 14666#endif 14667char dld_link (); 14668int 14669main () 14670{ 14671return dld_link (); 14672 ; 14673 return 0; 14674} 14675_ACEOF 14676if ac_fn_c_try_link "$LINENO"; then : 14677 ac_cv_lib_dld_dld_link=yes 14678else 14679 ac_cv_lib_dld_dld_link=no 14680fi 14681rm -f core conftest.err conftest.$ac_objext \ 14682 conftest$ac_exeext conftest.$ac_ext 14683LIBS=$ac_check_lib_save_LIBS 14684fi 14685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 14686$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 14687if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 14688 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 14689fi 14690 14691 14692fi 14693 14694 14695fi 14696 14697 14698fi 14699 14700 14701fi 14702 14703 14704fi 14705 14706 ;; 14707 esac 14708 14709 if test "x$lt_cv_dlopen" != xno; then 14710 enable_dlopen=yes 14711 else 14712 enable_dlopen=no 14713 fi 14714 14715 case $lt_cv_dlopen in 14716 dlopen) 14717 save_CPPFLAGS="$CPPFLAGS" 14718 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 14719 14720 save_LDFLAGS="$LDFLAGS" 14721 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 14722 14723 save_LIBS="$LIBS" 14724 LIBS="$lt_cv_dlopen_libs $LIBS" 14725 14726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 14727$as_echo_n "checking whether a program can dlopen itself... " >&6; } 14728if ${lt_cv_dlopen_self+:} false; then : 14729 $as_echo_n "(cached) " >&6 14730else 14731 if test "$cross_compiling" = yes; then : 14732 lt_cv_dlopen_self=cross 14733else 14734 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 14735 lt_status=$lt_dlunknown 14736 cat > conftest.$ac_ext <<_LT_EOF 14737#line $LINENO "configure" 14738#include "confdefs.h" 14739 14740#if HAVE_DLFCN_H 14741#include <dlfcn.h> 14742#endif 14743 14744#include <stdio.h> 14745 14746#ifdef RTLD_GLOBAL 14747# define LT_DLGLOBAL RTLD_GLOBAL 14748#else 14749# ifdef DL_GLOBAL 14750# define LT_DLGLOBAL DL_GLOBAL 14751# else 14752# define LT_DLGLOBAL 0 14753# endif 14754#endif 14755 14756/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 14757 find out it does not work in some platform. */ 14758#ifndef LT_DLLAZY_OR_NOW 14759# ifdef RTLD_LAZY 14760# define LT_DLLAZY_OR_NOW RTLD_LAZY 14761# else 14762# ifdef DL_LAZY 14763# define LT_DLLAZY_OR_NOW DL_LAZY 14764# else 14765# ifdef RTLD_NOW 14766# define LT_DLLAZY_OR_NOW RTLD_NOW 14767# else 14768# ifdef DL_NOW 14769# define LT_DLLAZY_OR_NOW DL_NOW 14770# else 14771# define LT_DLLAZY_OR_NOW 0 14772# endif 14773# endif 14774# endif 14775# endif 14776#endif 14777 14778/* When -fvisbility=hidden is used, assume the code has been annotated 14779 correspondingly for the symbols needed. */ 14780#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 14781int fnord () __attribute__((visibility("default"))); 14782#endif 14783 14784int fnord () { return 42; } 14785int main () 14786{ 14787 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 14788 int status = $lt_dlunknown; 14789 14790 if (self) 14791 { 14792 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 14793 else 14794 { 14795 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 14796 else puts (dlerror ()); 14797 } 14798 /* dlclose (self); */ 14799 } 14800 else 14801 puts (dlerror ()); 14802 14803 return status; 14804} 14805_LT_EOF 14806 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 14807 (eval $ac_link) 2>&5 14808 ac_status=$? 14809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14810 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 14811 (./conftest; exit; ) >&5 2>/dev/null 14812 lt_status=$? 14813 case x$lt_status in 14814 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 14815 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 14816 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 14817 esac 14818 else : 14819 # compilation failed 14820 lt_cv_dlopen_self=no 14821 fi 14822fi 14823rm -fr conftest* 14824 14825 14826fi 14827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 14828$as_echo "$lt_cv_dlopen_self" >&6; } 14829 14830 if test "x$lt_cv_dlopen_self" = xyes; then 14831 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 14832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 14833$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 14834if ${lt_cv_dlopen_self_static+:} false; then : 14835 $as_echo_n "(cached) " >&6 14836else 14837 if test "$cross_compiling" = yes; then : 14838 lt_cv_dlopen_self_static=cross 14839else 14840 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 14841 lt_status=$lt_dlunknown 14842 cat > conftest.$ac_ext <<_LT_EOF 14843#line $LINENO "configure" 14844#include "confdefs.h" 14845 14846#if HAVE_DLFCN_H 14847#include <dlfcn.h> 14848#endif 14849 14850#include <stdio.h> 14851 14852#ifdef RTLD_GLOBAL 14853# define LT_DLGLOBAL RTLD_GLOBAL 14854#else 14855# ifdef DL_GLOBAL 14856# define LT_DLGLOBAL DL_GLOBAL 14857# else 14858# define LT_DLGLOBAL 0 14859# endif 14860#endif 14861 14862/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 14863 find out it does not work in some platform. */ 14864#ifndef LT_DLLAZY_OR_NOW 14865# ifdef RTLD_LAZY 14866# define LT_DLLAZY_OR_NOW RTLD_LAZY 14867# else 14868# ifdef DL_LAZY 14869# define LT_DLLAZY_OR_NOW DL_LAZY 14870# else 14871# ifdef RTLD_NOW 14872# define LT_DLLAZY_OR_NOW RTLD_NOW 14873# else 14874# ifdef DL_NOW 14875# define LT_DLLAZY_OR_NOW DL_NOW 14876# else 14877# define LT_DLLAZY_OR_NOW 0 14878# endif 14879# endif 14880# endif 14881# endif 14882#endif 14883 14884/* When -fvisbility=hidden is used, assume the code has been annotated 14885 correspondingly for the symbols needed. */ 14886#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 14887int fnord () __attribute__((visibility("default"))); 14888#endif 14889 14890int fnord () { return 42; } 14891int main () 14892{ 14893 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 14894 int status = $lt_dlunknown; 14895 14896 if (self) 14897 { 14898 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 14899 else 14900 { 14901 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 14902 else puts (dlerror ()); 14903 } 14904 /* dlclose (self); */ 14905 } 14906 else 14907 puts (dlerror ()); 14908 14909 return status; 14910} 14911_LT_EOF 14912 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 14913 (eval $ac_link) 2>&5 14914 ac_status=$? 14915 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14916 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 14917 (./conftest; exit; ) >&5 2>/dev/null 14918 lt_status=$? 14919 case x$lt_status in 14920 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 14921 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 14922 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 14923 esac 14924 else : 14925 # compilation failed 14926 lt_cv_dlopen_self_static=no 14927 fi 14928fi 14929rm -fr conftest* 14930 14931 14932fi 14933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 14934$as_echo "$lt_cv_dlopen_self_static" >&6; } 14935 fi 14936 14937 CPPFLAGS="$save_CPPFLAGS" 14938 LDFLAGS="$save_LDFLAGS" 14939 LIBS="$save_LIBS" 14940 ;; 14941 esac 14942 14943 case $lt_cv_dlopen_self in 14944 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 14945 *) enable_dlopen_self=unknown ;; 14946 esac 14947 14948 case $lt_cv_dlopen_self_static in 14949 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 14950 *) enable_dlopen_self_static=unknown ;; 14951 esac 14952fi 14953 14954 14955 14956 14957 14958 14959 14960 14961 14962 14963 14964 14965 14966 14967 14968 14969 14970striplib= 14971old_striplib= 14972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 14973$as_echo_n "checking whether stripping libraries is possible... " >&6; } 14974if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 14975 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 14976 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 14977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14978$as_echo "yes" >&6; } 14979else 14980# FIXME - insert some real tests, host_os isn't really good enough 14981 case $host_os in 14982 darwin*) 14983 if test -n "$STRIP" ; then 14984 striplib="$STRIP -x" 14985 old_striplib="$STRIP -S" 14986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14987$as_echo "yes" >&6; } 14988 else 14989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14990$as_echo "no" >&6; } 14991 fi 14992 ;; 14993 *) 14994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14995$as_echo "no" >&6; } 14996 ;; 14997 esac 14998fi 14999 15000 15001 15002 15003 15004 15005 15006 15007 15008 15009 15010 15011 # Report which library types will actually be built 15012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 15013$as_echo_n "checking if libtool supports shared libraries... " >&6; } 15014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 15015$as_echo "$can_build_shared" >&6; } 15016 15017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 15018$as_echo_n "checking whether to build shared libraries... " >&6; } 15019 test "$can_build_shared" = "no" && enable_shared=no 15020 15021 # On AIX, shared libraries and static libraries use the same namespace, and 15022 # are all built from PIC. 15023 case $host_os in 15024 aix3*) 15025 test "$enable_shared" = yes && enable_static=no 15026 if test -n "$RANLIB"; then 15027 archive_cmds="$archive_cmds~\$RANLIB \$lib" 15028 postinstall_cmds='$RANLIB $lib' 15029 fi 15030 ;; 15031 15032 aix[4-9]*) 15033 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 15034 test "$enable_shared" = yes && enable_static=no 15035 fi 15036 ;; 15037 esac 15038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 15039$as_echo "$enable_shared" >&6; } 15040 15041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 15042$as_echo_n "checking whether to build static libraries... " >&6; } 15043 # Make sure either enable_shared or enable_static is yes. 15044 test "$enable_shared" = yes || enable_static=yes 15045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 15046$as_echo "$enable_static" >&6; } 15047 15048 15049 15050 15051fi 15052ac_ext=c 15053ac_cpp='$CPP $CPPFLAGS' 15054ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15055ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15056ac_compiler_gnu=$ac_cv_c_compiler_gnu 15057 15058CC="$lt_save_CC" 15059 15060 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 15061 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 15062 (test "X$CXX" != "Xg++"))) ; then 15063 ac_ext=cpp 15064ac_cpp='$CXXCPP $CPPFLAGS' 15065ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15066ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15067ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 15068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 15069$as_echo_n "checking how to run the C++ preprocessor... " >&6; } 15070if test -z "$CXXCPP"; then 15071 if ${ac_cv_prog_CXXCPP+:} false; then : 15072 $as_echo_n "(cached) " >&6 15073else 15074 # Double quotes because CXXCPP needs to be expanded 15075 for CXXCPP in "$CXX -E" "/lib/cpp" 15076 do 15077 ac_preproc_ok=false 15078for ac_cxx_preproc_warn_flag in '' yes 15079do 15080 # Use a header file that comes with gcc, so configuring glibc 15081 # with a fresh cross-compiler works. 15082 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 15083 # <limits.h> exists even on freestanding compilers. 15084 # On the NeXT, cc -E runs the code through the compiler's parser, 15085 # not just through cpp. "Syntax error" is here to catch this case. 15086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15087/* end confdefs.h. */ 15088#ifdef __STDC__ 15089# include <limits.h> 15090#else 15091# include <assert.h> 15092#endif 15093 Syntax error 15094_ACEOF 15095if ac_fn_cxx_try_cpp "$LINENO"; then : 15096 15097else 15098 # Broken: fails on valid input. 15099continue 15100fi 15101rm -f conftest.err conftest.i conftest.$ac_ext 15102 15103 # OK, works on sane cases. Now check whether nonexistent headers 15104 # can be detected and how. 15105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15106/* end confdefs.h. */ 15107#include <ac_nonexistent.h> 15108_ACEOF 15109if ac_fn_cxx_try_cpp "$LINENO"; then : 15110 # Broken: success on invalid input. 15111continue 15112else 15113 # Passes both tests. 15114ac_preproc_ok=: 15115break 15116fi 15117rm -f conftest.err conftest.i conftest.$ac_ext 15118 15119done 15120# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 15121rm -f conftest.i conftest.err conftest.$ac_ext 15122if $ac_preproc_ok; then : 15123 break 15124fi 15125 15126 done 15127 ac_cv_prog_CXXCPP=$CXXCPP 15128 15129fi 15130 CXXCPP=$ac_cv_prog_CXXCPP 15131else 15132 ac_cv_prog_CXXCPP=$CXXCPP 15133fi 15134{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 15135$as_echo "$CXXCPP" >&6; } 15136ac_preproc_ok=false 15137for ac_cxx_preproc_warn_flag in '' yes 15138do 15139 # Use a header file that comes with gcc, so configuring glibc 15140 # with a fresh cross-compiler works. 15141 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 15142 # <limits.h> exists even on freestanding compilers. 15143 # On the NeXT, cc -E runs the code through the compiler's parser, 15144 # not just through cpp. "Syntax error" is here to catch this case. 15145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15146/* end confdefs.h. */ 15147#ifdef __STDC__ 15148# include <limits.h> 15149#else 15150# include <assert.h> 15151#endif 15152 Syntax error 15153_ACEOF 15154if ac_fn_cxx_try_cpp "$LINENO"; then : 15155 15156else 15157 # Broken: fails on valid input. 15158continue 15159fi 15160rm -f conftest.err conftest.i conftest.$ac_ext 15161 15162 # OK, works on sane cases. Now check whether nonexistent headers 15163 # can be detected and how. 15164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15165/* end confdefs.h. */ 15166#include <ac_nonexistent.h> 15167_ACEOF 15168if ac_fn_cxx_try_cpp "$LINENO"; then : 15169 # Broken: success on invalid input. 15170continue 15171else 15172 # Passes both tests. 15173ac_preproc_ok=: 15174break 15175fi 15176rm -f conftest.err conftest.i conftest.$ac_ext 15177 15178done 15179# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 15180rm -f conftest.i conftest.err conftest.$ac_ext 15181if $ac_preproc_ok; then : 15182 15183else 15184 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15185$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 15186as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 15187See \`config.log' for more details" "$LINENO" 5; } 15188fi 15189 15190ac_ext=c 15191ac_cpp='$CPP $CPPFLAGS' 15192ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15193ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15194ac_compiler_gnu=$ac_cv_c_compiler_gnu 15195 15196else 15197 _lt_caught_CXX_error=yes 15198fi 15199 15200ac_ext=cpp 15201ac_cpp='$CXXCPP $CPPFLAGS' 15202ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15203ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15204ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 15205 15206archive_cmds_need_lc_CXX=no 15207allow_undefined_flag_CXX= 15208always_export_symbols_CXX=no 15209archive_expsym_cmds_CXX= 15210compiler_needs_object_CXX=no 15211export_dynamic_flag_spec_CXX= 15212hardcode_direct_CXX=no 15213hardcode_direct_absolute_CXX=no 15214hardcode_libdir_flag_spec_CXX= 15215hardcode_libdir_flag_spec_ld_CXX= 15216hardcode_libdir_separator_CXX= 15217hardcode_minus_L_CXX=no 15218hardcode_shlibpath_var_CXX=unsupported 15219hardcode_automatic_CXX=no 15220inherit_rpath_CXX=no 15221module_cmds_CXX= 15222module_expsym_cmds_CXX= 15223link_all_deplibs_CXX=unknown 15224old_archive_cmds_CXX=$old_archive_cmds 15225reload_flag_CXX=$reload_flag 15226reload_cmds_CXX=$reload_cmds 15227no_undefined_flag_CXX= 15228whole_archive_flag_spec_CXX= 15229enable_shared_with_static_runtimes_CXX=no 15230 15231# Source file extension for C++ test sources. 15232ac_ext=cpp 15233 15234# Object file extension for compiled C++ test sources. 15235objext=o 15236objext_CXX=$objext 15237 15238# No sense in running all these tests if we already determined that 15239# the CXX compiler isn't working. Some variables (like enable_shared) 15240# are currently assumed to apply to all compilers on this platform, 15241# and will be corrupted by setting them based on a non-working compiler. 15242if test "$_lt_caught_CXX_error" != yes; then 15243 # Code to be used in simple compile tests 15244 lt_simple_compile_test_code="int some_variable = 0;" 15245 15246 # Code to be used in simple link tests 15247 lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 15248 15249 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 15250 15251 15252 15253 15254 15255 15256# If no C compiler was specified, use CC. 15257LTCC=${LTCC-"$CC"} 15258 15259# If no C compiler flags were specified, use CFLAGS. 15260LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 15261 15262# Allow CC to be a program name with arguments. 15263compiler=$CC 15264 15265 15266 # save warnings/boilerplate of simple test code 15267 ac_outfile=conftest.$ac_objext 15268echo "$lt_simple_compile_test_code" >conftest.$ac_ext 15269eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 15270_lt_compiler_boilerplate=`cat conftest.err` 15271$RM conftest* 15272 15273 ac_outfile=conftest.$ac_objext 15274echo "$lt_simple_link_test_code" >conftest.$ac_ext 15275eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 15276_lt_linker_boilerplate=`cat conftest.err` 15277$RM -r conftest* 15278 15279 15280 # Allow CC to be a program name with arguments. 15281 lt_save_CC=$CC 15282 lt_save_CFLAGS=$CFLAGS 15283 lt_save_LD=$LD 15284 lt_save_GCC=$GCC 15285 GCC=$GXX 15286 lt_save_with_gnu_ld=$with_gnu_ld 15287 lt_save_path_LD=$lt_cv_path_LD 15288 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 15289 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 15290 else 15291 $as_unset lt_cv_prog_gnu_ld 15292 fi 15293 if test -n "${lt_cv_path_LDCXX+set}"; then 15294 lt_cv_path_LD=$lt_cv_path_LDCXX 15295 else 15296 $as_unset lt_cv_path_LD 15297 fi 15298 test -z "${LDCXX+set}" || LD=$LDCXX 15299 CC=${CXX-"c++"} 15300 CFLAGS=$CXXFLAGS 15301 compiler=$CC 15302 compiler_CXX=$CC 15303 for cc_temp in $compiler""; do 15304 case $cc_temp in 15305 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 15306 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 15307 \-*) ;; 15308 *) break;; 15309 esac 15310done 15311cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 15312 15313 15314 if test -n "$compiler"; then 15315 # We don't want -fno-exception when compiling C++ code, so set the 15316 # no_builtin_flag separately 15317 if test "$GXX" = yes; then 15318 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 15319 else 15320 lt_prog_compiler_no_builtin_flag_CXX= 15321 fi 15322 15323 if test "$GXX" = yes; then 15324 # Set up default GNU C++ configuration 15325 15326 15327 15328# Check whether --with-gnu-ld was given. 15329if test "${with_gnu_ld+set}" = set; then : 15330 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 15331else 15332 with_gnu_ld=no 15333fi 15334 15335ac_prog=ld 15336if test "$GCC" = yes; then 15337 # Check if gcc -print-prog-name=ld gives a path. 15338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 15339$as_echo_n "checking for ld used by $CC... " >&6; } 15340 case $host in 15341 *-*-mingw*) 15342 # gcc leaves a trailing carriage return which upsets mingw 15343 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 15344 *) 15345 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 15346 esac 15347 case $ac_prog in 15348 # Accept absolute paths. 15349 [\\/]* | ?:[\\/]*) 15350 re_direlt='/[^/][^/]*/\.\./' 15351 # Canonicalize the pathname of ld 15352 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 15353 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 15354 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 15355 done 15356 test -z "$LD" && LD="$ac_prog" 15357 ;; 15358 "") 15359 # If it fails, then pretend we aren't using GCC. 15360 ac_prog=ld 15361 ;; 15362 *) 15363 # If it is relative, then search for the first ld in PATH. 15364 with_gnu_ld=unknown 15365 ;; 15366 esac 15367elif test "$with_gnu_ld" = yes; then 15368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 15369$as_echo_n "checking for GNU ld... " >&6; } 15370else 15371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 15372$as_echo_n "checking for non-GNU ld... " >&6; } 15373fi 15374if ${lt_cv_path_LD+:} false; then : 15375 $as_echo_n "(cached) " >&6 15376else 15377 if test -z "$LD"; then 15378 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 15379 for ac_dir in $PATH; do 15380 IFS="$lt_save_ifs" 15381 test -z "$ac_dir" && ac_dir=. 15382 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 15383 lt_cv_path_LD="$ac_dir/$ac_prog" 15384 # Check to see if the program is GNU ld. I'd rather use --version, 15385 # but apparently some variants of GNU ld only accept -v. 15386 # Break only if it was the GNU/non-GNU ld that we prefer. 15387 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 15388 *GNU* | *'with BFD'*) 15389 test "$with_gnu_ld" != no && break 15390 ;; 15391 *) 15392 test "$with_gnu_ld" != yes && break 15393 ;; 15394 esac 15395 fi 15396 done 15397 IFS="$lt_save_ifs" 15398else 15399 lt_cv_path_LD="$LD" # Let the user override the test with a path. 15400fi 15401fi 15402 15403LD="$lt_cv_path_LD" 15404if test -n "$LD"; then 15405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 15406$as_echo "$LD" >&6; } 15407else 15408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15409$as_echo "no" >&6; } 15410fi 15411test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 15412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 15413$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 15414if ${lt_cv_prog_gnu_ld+:} false; then : 15415 $as_echo_n "(cached) " >&6 15416else 15417 # I'd rather use --version here, but apparently some GNU lds only accept -v. 15418case `$LD -v 2>&1 </dev/null` in 15419*GNU* | *'with BFD'*) 15420 lt_cv_prog_gnu_ld=yes 15421 ;; 15422*) 15423 lt_cv_prog_gnu_ld=no 15424 ;; 15425esac 15426fi 15427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 15428$as_echo "$lt_cv_prog_gnu_ld" >&6; } 15429with_gnu_ld=$lt_cv_prog_gnu_ld 15430 15431 15432 15433 15434 15435 15436 15437 # Check if GNU C++ uses GNU ld as the underlying linker, since the 15438 # archiving commands below assume that GNU ld is being used. 15439 if test "$with_gnu_ld" = yes; then 15440 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 15441 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 15442 15443 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 15444 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 15445 15446 # If archive_cmds runs LD, not CC, wlarc should be empty 15447 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 15448 # investigate it a little bit more. (MM) 15449 wlarc='${wl}' 15450 15451 # ancient GNU ld didn't support --whole-archive et. al. 15452 if eval "`$CC -print-prog-name=ld` --help 2>&1" | 15453 $GREP 'no-whole-archive' > /dev/null; then 15454 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 15455 else 15456 whole_archive_flag_spec_CXX= 15457 fi 15458 else 15459 with_gnu_ld=no 15460 wlarc= 15461 15462 # A generic and very simple default shared library creation 15463 # command for GNU C++ for the case where it uses the native 15464 # linker, instead of GNU ld. If possible, this setting should 15465 # overridden to take advantage of the native linker features on 15466 # the platform it is being used on. 15467 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 15468 fi 15469 15470 # Commands to make compiler produce verbose output that lists 15471 # what "hidden" libraries, object files and flags are used when 15472 # linking a shared library. 15473 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 15474 15475 else 15476 GXX=no 15477 with_gnu_ld=no 15478 wlarc= 15479 fi 15480 15481 # PORTME: fill in a description of your system's C++ link characteristics 15482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 15483$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 15484 ld_shlibs_CXX=yes 15485 case $host_os in 15486 aix3*) 15487 # FIXME: insert proper C++ library support 15488 ld_shlibs_CXX=no 15489 ;; 15490 aix[4-9]*) 15491 if test "$host_cpu" = ia64; then 15492 # On IA64, the linker does run time linking by default, so we don't 15493 # have to do anything special. 15494 aix_use_runtimelinking=no 15495 exp_sym_flag='-Bexport' 15496 no_entry_flag="" 15497 else 15498 aix_use_runtimelinking=no 15499 15500 # Test if we are trying to use run time linking or normal 15501 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 15502 # need to do runtime linking. 15503 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 15504 for ld_flag in $LDFLAGS; do 15505 case $ld_flag in 15506 *-brtl*) 15507 aix_use_runtimelinking=yes 15508 break 15509 ;; 15510 esac 15511 done 15512 ;; 15513 esac 15514 15515 exp_sym_flag='-bexport' 15516 no_entry_flag='-bnoentry' 15517 fi 15518 15519 # When large executables or shared objects are built, AIX ld can 15520 # have problems creating the table of contents. If linking a library 15521 # or program results in "error TOC overflow" add -mminimal-toc to 15522 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 15523 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 15524 15525 archive_cmds_CXX='' 15526 hardcode_direct_CXX=yes 15527 hardcode_direct_absolute_CXX=yes 15528 hardcode_libdir_separator_CXX=':' 15529 link_all_deplibs_CXX=yes 15530 file_list_spec_CXX='${wl}-f,' 15531 15532 if test "$GXX" = yes; then 15533 case $host_os in aix4.[012]|aix4.[012].*) 15534 # We only want to do this on AIX 4.2 and lower, the check 15535 # below for broken collect2 doesn't work under 4.3+ 15536 collect2name=`${CC} -print-prog-name=collect2` 15537 if test -f "$collect2name" && 15538 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 15539 then 15540 # We have reworked collect2 15541 : 15542 else 15543 # We have old collect2 15544 hardcode_direct_CXX=unsupported 15545 # It fails to find uninstalled libraries when the uninstalled 15546 # path is not listed in the libpath. Setting hardcode_minus_L 15547 # to unsupported forces relinking 15548 hardcode_minus_L_CXX=yes 15549 hardcode_libdir_flag_spec_CXX='-L$libdir' 15550 hardcode_libdir_separator_CXX= 15551 fi 15552 esac 15553 shared_flag='-shared' 15554 if test "$aix_use_runtimelinking" = yes; then 15555 shared_flag="$shared_flag "'${wl}-G' 15556 fi 15557 else 15558 # not using gcc 15559 if test "$host_cpu" = ia64; then 15560 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 15561 # chokes on -Wl,-G. The following line is correct: 15562 shared_flag='-G' 15563 else 15564 if test "$aix_use_runtimelinking" = yes; then 15565 shared_flag='${wl}-G' 15566 else 15567 shared_flag='${wl}-bM:SRE' 15568 fi 15569 fi 15570 fi 15571 15572 export_dynamic_flag_spec_CXX='${wl}-bexpall' 15573 # It seems that -bexpall does not export symbols beginning with 15574 # underscore (_), so it is better to generate a list of symbols to 15575 # export. 15576 always_export_symbols_CXX=yes 15577 if test "$aix_use_runtimelinking" = yes; then 15578 # Warning - without using the other runtime loading flags (-brtl), 15579 # -berok will link without error, but may produce a broken library. 15580 allow_undefined_flag_CXX='-berok' 15581 # Determine the default libpath from the value encoded in an empty 15582 # executable. 15583 if test "${lt_cv_aix_libpath+set}" = set; then 15584 aix_libpath=$lt_cv_aix_libpath 15585else 15586 if ${lt_cv_aix_libpath__CXX+:} false; then : 15587 $as_echo_n "(cached) " >&6 15588else 15589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15590/* end confdefs.h. */ 15591 15592int 15593main () 15594{ 15595 15596 ; 15597 return 0; 15598} 15599_ACEOF 15600if ac_fn_cxx_try_link "$LINENO"; then : 15601 15602 lt_aix_libpath_sed=' 15603 /Import File Strings/,/^$/ { 15604 /^0/ { 15605 s/^0 *\([^ ]*\) *$/\1/ 15606 p 15607 } 15608 }' 15609 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15610 # Check for a 64-bit object if we didn't find anything. 15611 if test -z "$lt_cv_aix_libpath__CXX"; then 15612 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15613 fi 15614fi 15615rm -f core conftest.err conftest.$ac_objext \ 15616 conftest$ac_exeext conftest.$ac_ext 15617 if test -z "$lt_cv_aix_libpath__CXX"; then 15618 lt_cv_aix_libpath__CXX="/usr/lib:/lib" 15619 fi 15620 15621fi 15622 15623 aix_libpath=$lt_cv_aix_libpath__CXX 15624fi 15625 15626 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 15627 15628 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 15629 else 15630 if test "$host_cpu" = ia64; then 15631 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 15632 allow_undefined_flag_CXX="-z nodefs" 15633 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" 15634 else 15635 # Determine the default libpath from the value encoded in an 15636 # empty executable. 15637 if test "${lt_cv_aix_libpath+set}" = set; then 15638 aix_libpath=$lt_cv_aix_libpath 15639else 15640 if ${lt_cv_aix_libpath__CXX+:} false; then : 15641 $as_echo_n "(cached) " >&6 15642else 15643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15644/* end confdefs.h. */ 15645 15646int 15647main () 15648{ 15649 15650 ; 15651 return 0; 15652} 15653_ACEOF 15654if ac_fn_cxx_try_link "$LINENO"; then : 15655 15656 lt_aix_libpath_sed=' 15657 /Import File Strings/,/^$/ { 15658 /^0/ { 15659 s/^0 *\([^ ]*\) *$/\1/ 15660 p 15661 } 15662 }' 15663 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15664 # Check for a 64-bit object if we didn't find anything. 15665 if test -z "$lt_cv_aix_libpath__CXX"; then 15666 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15667 fi 15668fi 15669rm -f core conftest.err conftest.$ac_objext \ 15670 conftest$ac_exeext conftest.$ac_ext 15671 if test -z "$lt_cv_aix_libpath__CXX"; then 15672 lt_cv_aix_libpath__CXX="/usr/lib:/lib" 15673 fi 15674 15675fi 15676 15677 aix_libpath=$lt_cv_aix_libpath__CXX 15678fi 15679 15680 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 15681 # Warning - without using the other run time loading flags, 15682 # -berok will link without error, but may produce a broken library. 15683 no_undefined_flag_CXX=' ${wl}-bernotok' 15684 allow_undefined_flag_CXX=' ${wl}-berok' 15685 if test "$with_gnu_ld" = yes; then 15686 # We only use this code for GNU lds that support --whole-archive. 15687 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 15688 else 15689 # Exported symbols can be pulled into shared objects from archives 15690 whole_archive_flag_spec_CXX='$convenience' 15691 fi 15692 archive_cmds_need_lc_CXX=yes 15693 # This is similar to how AIX traditionally builds its shared 15694 # libraries. 15695 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 15696 fi 15697 fi 15698 ;; 15699 15700 beos*) 15701 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 15702 allow_undefined_flag_CXX=unsupported 15703 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 15704 # support --undefined. This deserves some investigation. FIXME 15705 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15706 else 15707 ld_shlibs_CXX=no 15708 fi 15709 ;; 15710 15711 chorus*) 15712 case $cc_basename in 15713 *) 15714 # FIXME: insert proper C++ library support 15715 ld_shlibs_CXX=no 15716 ;; 15717 esac 15718 ;; 15719 15720 cygwin* | mingw* | pw32* | cegcc*) 15721 case $GXX,$cc_basename in 15722 ,cl* | no,cl*) 15723 # Native MSVC 15724 # hardcode_libdir_flag_spec is actually meaningless, as there is 15725 # no search path for DLLs. 15726 hardcode_libdir_flag_spec_CXX=' ' 15727 allow_undefined_flag_CXX=unsupported 15728 always_export_symbols_CXX=yes 15729 file_list_spec_CXX='@' 15730 # Tell ltmain to make .lib files, not .a files. 15731 libext=lib 15732 # Tell ltmain to make .dll files, not .so files. 15733 shrext_cmds=".dll" 15734 # FIXME: Setting linknames here is a bad hack. 15735 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 15736 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 15737 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 15738 else 15739 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 15740 fi~ 15741 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 15742 linknames=' 15743 # The linker will not automatically build a static lib if we build a DLL. 15744 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true' 15745 enable_shared_with_static_runtimes_CXX=yes 15746 # Don't use ranlib 15747 old_postinstall_cmds_CXX='chmod 644 $oldlib' 15748 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~ 15749 lt_tool_outputfile="@TOOL_OUTPUT@"~ 15750 case $lt_outputfile in 15751 *.exe|*.EXE) ;; 15752 *) 15753 lt_outputfile="$lt_outputfile.exe" 15754 lt_tool_outputfile="$lt_tool_outputfile.exe" 15755 ;; 15756 esac~ 15757 func_to_tool_file "$lt_outputfile"~ 15758 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 15759 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 15760 $RM "$lt_outputfile.manifest"; 15761 fi' 15762 ;; 15763 *) 15764 # g++ 15765 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 15766 # as there is no search path for DLLs. 15767 hardcode_libdir_flag_spec_CXX='-L$libdir' 15768 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols' 15769 allow_undefined_flag_CXX=unsupported 15770 always_export_symbols_CXX=no 15771 enable_shared_with_static_runtimes_CXX=yes 15772 15773 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 15774 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 15775 # If the export-symbols file already is a .def file (1st line 15776 # is EXPORTS), use it as is; otherwise, prepend... 15777 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 15778 cp $export_symbols $output_objdir/$soname.def; 15779 else 15780 echo EXPORTS > $output_objdir/$soname.def; 15781 cat $export_symbols >> $output_objdir/$soname.def; 15782 fi~ 15783 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 15784 else 15785 ld_shlibs_CXX=no 15786 fi 15787 ;; 15788 esac 15789 ;; 15790 darwin* | rhapsody*) 15791 15792 15793 archive_cmds_need_lc_CXX=no 15794 hardcode_direct_CXX=no 15795 hardcode_automatic_CXX=yes 15796 hardcode_shlibpath_var_CXX=unsupported 15797 if test "$lt_cv_ld_force_load" = "yes"; then 15798 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' 15799 else 15800 whole_archive_flag_spec_CXX='' 15801 fi 15802 link_all_deplibs_CXX=yes 15803 allow_undefined_flag_CXX="$_lt_dar_allow_undefined" 15804 case $cc_basename in 15805 ifort*) _lt_dar_can_shared=yes ;; 15806 *) _lt_dar_can_shared=$GCC ;; 15807 esac 15808 if test "$_lt_dar_can_shared" = "yes"; then 15809 output_verbose_link_cmd=func_echo_all 15810 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 15811 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 15812 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" 15813 module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" 15814 if test "$lt_cv_apple_cc_single_mod" != "yes"; then 15815 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${_lt_dsymutil}" 15816 archive_expsym_cmds_CXX="sed '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${_lt_dar_export_syms}${_lt_dsymutil}" 15817 fi 15818 15819 else 15820 ld_shlibs_CXX=no 15821 fi 15822 15823 ;; 15824 15825 dgux*) 15826 case $cc_basename in 15827 ec++*) 15828 # FIXME: insert proper C++ library support 15829 ld_shlibs_CXX=no 15830 ;; 15831 ghcx*) 15832 # Green Hills C++ Compiler 15833 # FIXME: insert proper C++ library support 15834 ld_shlibs_CXX=no 15835 ;; 15836 *) 15837 # FIXME: insert proper C++ library support 15838 ld_shlibs_CXX=no 15839 ;; 15840 esac 15841 ;; 15842 15843 freebsd[12]*) 15844 # C++ shared libraries reported to be fairly broken before 15845 # switch to ELF 15846 ld_shlibs_CXX=no 15847 ;; 15848 15849 freebsd-elf*) 15850 archive_cmds_need_lc_CXX=no 15851 ;; 15852 15853 freebsd* | dragonfly*) 15854 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 15855 # conventions 15856 ld_shlibs_CXX=yes 15857 ;; 15858 15859 gnu*) 15860 ;; 15861 15862 haiku*) 15863 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15864 link_all_deplibs_CXX=yes 15865 ;; 15866 15867 hpux9*) 15868 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 15869 hardcode_libdir_separator_CXX=: 15870 export_dynamic_flag_spec_CXX='${wl}-E' 15871 hardcode_direct_CXX=yes 15872 hardcode_minus_L_CXX=yes # Not in the search PATH, 15873 # but as the default 15874 # location of the library. 15875 15876 case $cc_basename in 15877 CC*) 15878 # FIXME: insert proper C++ library support 15879 ld_shlibs_CXX=no 15880 ;; 15881 aCC*) 15882 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' 15883 # Commands to make compiler produce verbose output that lists 15884 # what "hidden" libraries, object files and flags are used when 15885 # linking a shared library. 15886 # 15887 # There doesn't appear to be a way to prevent this compiler from 15888 # explicitly linking system object files so we need to strip them 15889 # from the output so that they don't get included in the library 15890 # dependencies. 15891 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 15892 ;; 15893 *) 15894 if test "$GXX" = yes; then 15895 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${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' 15896 else 15897 # FIXME: insert proper C++ library support 15898 ld_shlibs_CXX=no 15899 fi 15900 ;; 15901 esac 15902 ;; 15903 15904 hpux10*|hpux11*) 15905 if test $with_gnu_ld = no; then 15906 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 15907 hardcode_libdir_separator_CXX=: 15908 15909 case $host_cpu in 15910 hppa*64*|ia64*) 15911 ;; 15912 *) 15913 export_dynamic_flag_spec_CXX='${wl}-E' 15914 ;; 15915 esac 15916 fi 15917 case $host_cpu in 15918 hppa*64*|ia64*) 15919 hardcode_direct_CXX=no 15920 hardcode_shlibpath_var_CXX=no 15921 ;; 15922 *) 15923 hardcode_direct_CXX=yes 15924 hardcode_direct_absolute_CXX=yes 15925 hardcode_minus_L_CXX=yes # Not in the search PATH, 15926 # but as the default 15927 # location of the library. 15928 ;; 15929 esac 15930 15931 case $cc_basename in 15932 CC*) 15933 # FIXME: insert proper C++ library support 15934 ld_shlibs_CXX=no 15935 ;; 15936 aCC*) 15937 case $host_cpu in 15938 hppa*64*) 15939 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 15940 ;; 15941 ia64*) 15942 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 15943 ;; 15944 *) 15945 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 15946 ;; 15947 esac 15948 # Commands to make compiler produce verbose output that lists 15949 # what "hidden" libraries, object files and flags are used when 15950 # linking a shared library. 15951 # 15952 # There doesn't appear to be a way to prevent this compiler from 15953 # explicitly linking system object files so we need to strip them 15954 # from the output so that they don't get included in the library 15955 # dependencies. 15956 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; func_echo_all "$list"' 15957 ;; 15958 *) 15959 if test "$GXX" = yes; then 15960 if test $with_gnu_ld = no; then 15961 case $host_cpu in 15962 hppa*64*) 15963 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 15964 ;; 15965 ia64*) 15966 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 15967 ;; 15968 *) 15969 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 15970 ;; 15971 esac 15972 fi 15973 else 15974 # FIXME: insert proper C++ library support 15975 ld_shlibs_CXX=no 15976 fi 15977 ;; 15978 esac 15979 ;; 15980 15981 interix[3-9]*) 15982 hardcode_direct_CXX=no 15983 hardcode_shlibpath_var_CXX=no 15984 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 15985 export_dynamic_flag_spec_CXX='${wl}-E' 15986 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 15987 # Instead, shared libraries are loaded at an image base (0x10000000 by 15988 # default) and relocated if they conflict, which is a slow very memory 15989 # consuming and fragmenting process. To avoid this, we pick a random, 15990 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 15991 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 15992 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 15993 archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 15994 ;; 15995 irix5* | irix6*) 15996 case $cc_basename in 15997 CC*) 15998 # SGI C++ 15999 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 16000 16001 # Archives containing C++ object files must be created using 16002 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 16003 # necessary to make sure instantiated templates are included 16004 # in the archive. 16005 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 16006 ;; 16007 *) 16008 if test "$GXX" = yes; then 16009 if test "$with_gnu_ld" = no; then 16010 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 16011 else 16012 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib' 16013 fi 16014 fi 16015 link_all_deplibs_CXX=yes 16016 ;; 16017 esac 16018 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 16019 hardcode_libdir_separator_CXX=: 16020 inherit_rpath_CXX=yes 16021 ;; 16022 16023 linux* | k*bsd*-gnu | kopensolaris*-gnu) 16024 case $cc_basename in 16025 KCC*) 16026 # Kuck and Associates, Inc. (KAI) C++ Compiler 16027 16028 # KCC will only create a shared library if the output file 16029 # ends with ".so" (or ".sl" for HP-UX), so rename the library 16030 # to its proper name (with version) after linking. 16031 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' 16032 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' 16033 # Commands to make compiler produce verbose output that lists 16034 # what "hidden" libraries, object files and flags are used when 16035 # linking a shared library. 16036 # 16037 # There doesn't appear to be a way to prevent this compiler from 16038 # explicitly linking system object files so we need to strip them 16039 # from the output so that they don't get included in the library 16040 # dependencies. 16041 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; func_echo_all "$list"' 16042 16043 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 16044 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 16045 16046 # Archives containing C++ object files must be created using 16047 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 16048 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 16049 ;; 16050 icpc* | ecpc* ) 16051 # Intel C++ 16052 with_gnu_ld=yes 16053 # version 8.0 and above of icpc choke on multiply defined symbols 16054 # if we add $predep_objects and $postdep_objects, however 7.1 and 16055 # earlier do not add the objects themselves. 16056 case `$CC -V 2>&1` in 16057 *"Version 7."*) 16058 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 16059 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' 16060 ;; 16061 *) # Version 8.0 or newer 16062 tmp_idyn= 16063 case $host_cpu in 16064 ia64*) tmp_idyn=' -i_dynamic';; 16065 esac 16066 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16067 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' 16068 ;; 16069 esac 16070 archive_cmds_need_lc_CXX=no 16071 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 16072 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 16073 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 16074 ;; 16075 pgCC* | pgcpp*) 16076 # Portland Group C++ compiler 16077 case `$CC -V` in 16078 *pgCC\ [1-5].* | *pgcpp\ [1-5].*) 16079 prelink_cmds_CXX='tpldir=Template.dir~ 16080 rm -rf $tpldir~ 16081 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 16082 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' 16083 old_archive_cmds_CXX='tpldir=Template.dir~ 16084 rm -rf $tpldir~ 16085 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 16086 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ 16087 $RANLIB $oldlib' 16088 archive_cmds_CXX='tpldir=Template.dir~ 16089 rm -rf $tpldir~ 16090 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 16091 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 16092 archive_expsym_cmds_CXX='tpldir=Template.dir~ 16093 rm -rf $tpldir~ 16094 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 16095 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' 16096 ;; 16097 *) # Version 6 and above use weak symbols 16098 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 16099 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' 16100 ;; 16101 esac 16102 16103 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 16104 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 16105 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' 16106 ;; 16107 cxx*) 16108 # Compaq C++ 16109 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 16110 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' 16111 16112 runpath_var=LD_RUN_PATH 16113 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 16114 hardcode_libdir_separator_CXX=: 16115 16116 # Commands to make compiler produce verbose output that lists 16117 # what "hidden" libraries, object files and flags are used when 16118 # linking a shared library. 16119 # 16120 # There doesn't appear to be a way to prevent this compiler from 16121 # explicitly linking system object files so we need to strip them 16122 # from the output so that they don't get included in the library 16123 # dependencies. 16124 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$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; func_echo_all "X$list" | $Xsed' 16125 ;; 16126 xl* | mpixl* | bgxl*) 16127 # IBM XL 8.0 on PPC, with GNU ld 16128 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 16129 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 16130 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16131 if test "x$supports_anon_versioning" = xyes; then 16132 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ 16133 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 16134 echo "local: *; };" >> $output_objdir/$libname.ver~ 16135 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 16136 fi 16137 ;; 16138 *) 16139 case `$CC -V 2>&1 | sed 5q` in 16140 *Sun\ C*) 16141 # Sun C++ 5.9 16142 no_undefined_flag_CXX=' -zdefs' 16143 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 16144 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols' 16145 hardcode_libdir_flag_spec_CXX='-R$libdir' 16146 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' 16147 compiler_needs_object_CXX=yes 16148 16149 # Not sure whether something based on 16150 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 16151 # would be better. 16152 output_verbose_link_cmd='func_echo_all' 16153 16154 # Archives containing C++ object files must be created using 16155 # "CC -xar", where "CC" is the Sun C++ compiler. This is 16156 # necessary to make sure instantiated templates are included 16157 # in the archive. 16158 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 16159 ;; 16160 esac 16161 ;; 16162 esac 16163 ;; 16164 16165 lynxos*) 16166 # FIXME: insert proper C++ library support 16167 ld_shlibs_CXX=no 16168 ;; 16169 16170 m88k*) 16171 # FIXME: insert proper C++ library support 16172 ld_shlibs_CXX=no 16173 ;; 16174 16175 mvs*) 16176 case $cc_basename in 16177 cxx*) 16178 # FIXME: insert proper C++ library support 16179 ld_shlibs_CXX=no 16180 ;; 16181 *) 16182 # FIXME: insert proper C++ library support 16183 ld_shlibs_CXX=no 16184 ;; 16185 esac 16186 ;; 16187 16188 netbsd*) 16189 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 16190 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 16191 wlarc= 16192 hardcode_libdir_flag_spec_CXX='-R$libdir' 16193 hardcode_direct_CXX=yes 16194 hardcode_shlibpath_var_CXX=no 16195 fi 16196 # Workaround some broken pre-1.5 toolchains 16197 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 16198 ;; 16199 16200 *nto* | *qnx*) 16201 ld_shlibs_CXX=yes 16202 ;; 16203 16204 openbsd2*) 16205 # C++ shared libraries are fairly broken 16206 ld_shlibs_CXX=no 16207 ;; 16208 16209 openbsd*) 16210 if test -f /usr/libexec/ld.so; then 16211 hardcode_direct_CXX=yes 16212 hardcode_shlibpath_var_CXX=no 16213 hardcode_direct_absolute_CXX=yes 16214 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 16215 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 16216 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 16217 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 16218 export_dynamic_flag_spec_CXX='${wl}-E' 16219 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 16220 fi 16221 output_verbose_link_cmd=func_echo_all 16222 else 16223 ld_shlibs_CXX=no 16224 fi 16225 ;; 16226 16227 osf3* | osf4* | osf5*) 16228 case $cc_basename in 16229 KCC*) 16230 # Kuck and Associates, Inc. (KAI) C++ Compiler 16231 16232 # KCC will only create a shared library if the output file 16233 # ends with ".so" (or ".sl" for HP-UX), so rename the library 16234 # to its proper name (with version) after linking. 16235 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' 16236 16237 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 16238 hardcode_libdir_separator_CXX=: 16239 16240 # Archives containing C++ object files must be created using 16241 # the KAI C++ compiler. 16242 case $host in 16243 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; 16244 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; 16245 esac 16246 ;; 16247 RCC*) 16248 # Rational C++ 2.4.1 16249 # FIXME: insert proper C++ library support 16250 ld_shlibs_CXX=no 16251 ;; 16252 cxx*) 16253 case $host in 16254 osf3*) 16255 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 16256 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 16257 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 16258 ;; 16259 *) 16260 allow_undefined_flag_CXX=' -expect_unresolved \*' 16261 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 16262 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 16263 echo "-hidden">> $lib.exp~ 16264 $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~ 16265 $RM $lib.exp' 16266 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 16267 ;; 16268 esac 16269 16270 hardcode_libdir_separator_CXX=: 16271 16272 # Commands to make compiler produce verbose output that lists 16273 # what "hidden" libraries, object files and flags are used when 16274 # linking a shared library. 16275 # 16276 # There doesn't appear to be a way to prevent this compiler from 16277 # explicitly linking system object files so we need to strip them 16278 # from the output so that they don't get included in the library 16279 # dependencies. 16280 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$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; func_echo_all "$list"' 16281 ;; 16282 *) 16283 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 16284 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 16285 case $host in 16286 osf3*) 16287 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 16288 ;; 16289 *) 16290 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 16291 ;; 16292 esac 16293 16294 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 16295 hardcode_libdir_separator_CXX=: 16296 16297 # Commands to make compiler produce verbose output that lists 16298 # what "hidden" libraries, object files and flags are used when 16299 # linking a shared library. 16300 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 16301 16302 else 16303 # FIXME: insert proper C++ library support 16304 ld_shlibs_CXX=no 16305 fi 16306 ;; 16307 esac 16308 ;; 16309 16310 psos*) 16311 # FIXME: insert proper C++ library support 16312 ld_shlibs_CXX=no 16313 ;; 16314 16315 sunos4*) 16316 case $cc_basename in 16317 CC*) 16318 # Sun C++ 4.x 16319 # FIXME: insert proper C++ library support 16320 ld_shlibs_CXX=no 16321 ;; 16322 lcc*) 16323 # Lucid 16324 # FIXME: insert proper C++ library support 16325 ld_shlibs_CXX=no 16326 ;; 16327 *) 16328 # FIXME: insert proper C++ library support 16329 ld_shlibs_CXX=no 16330 ;; 16331 esac 16332 ;; 16333 16334 solaris*) 16335 case $cc_basename in 16336 CC* | sunCC*) 16337 # Sun C++ 4.2, 5.x and Centerline C++ 16338 archive_cmds_need_lc_CXX=yes 16339 no_undefined_flag_CXX=' -zdefs' 16340 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 16341 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 16342 $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' 16343 16344 hardcode_libdir_flag_spec_CXX='-R$libdir' 16345 hardcode_shlibpath_var_CXX=no 16346 case $host_os in 16347 solaris2.[0-5] | solaris2.[0-5].*) ;; 16348 *) 16349 # The compiler driver will combine and reorder linker options, 16350 # but understands `-z linker_flag'. 16351 # Supported since Solaris 2.6 (maybe 2.5.1?) 16352 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 16353 ;; 16354 esac 16355 link_all_deplibs_CXX=yes 16356 16357 output_verbose_link_cmd='func_echo_all' 16358 16359 # Archives containing C++ object files must be created using 16360 # "CC -xar", where "CC" is the Sun C++ compiler. This is 16361 # necessary to make sure instantiated templates are included 16362 # in the archive. 16363 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 16364 ;; 16365 gcx*) 16366 # Green Hills C++ Compiler 16367 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 16368 16369 # The C++ compiler must be used to create the archive. 16370 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 16371 ;; 16372 *) 16373 # GNU C++ compiler with Solaris linker 16374 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 16375 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 16376 if $CC --version | $GREP -v '^2\.7' > /dev/null; then 16377 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 16378 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 16379 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 16380 16381 # Commands to make compiler produce verbose output that lists 16382 # what "hidden" libraries, object files and flags are used when 16383 # linking a shared library. 16384 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 16385 else 16386 # g++ 2.7 appears to require `-G' NOT `-shared' on this 16387 # platform. 16388 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 16389 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 16390 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 16391 16392 # Commands to make compiler produce verbose output that lists 16393 # what "hidden" libraries, object files and flags are used when 16394 # linking a shared library. 16395 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 16396 fi 16397 16398 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 16399 case $host_os in 16400 solaris2.[0-5] | solaris2.[0-5].*) ;; 16401 *) 16402 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 16403 ;; 16404 esac 16405 fi 16406 ;; 16407 esac 16408 ;; 16409 16410 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 16411 no_undefined_flag_CXX='${wl}-z,text' 16412 archive_cmds_need_lc_CXX=no 16413 hardcode_shlibpath_var_CXX=no 16414 runpath_var='LD_RUN_PATH' 16415 16416 case $cc_basename in 16417 CC*) 16418 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16419 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16420 ;; 16421 *) 16422 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16423 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16424 ;; 16425 esac 16426 ;; 16427 16428 sysv5* | sco3.2v5* | sco5v6*) 16429 # Note: We can NOT use -z defs as we might desire, because we do not 16430 # link with -lc, and that would cause any symbols used from libc to 16431 # always be unresolved, which means just about no library would 16432 # ever link correctly. If we're not using GNU ld we use -z text 16433 # though, which does catch some bad symbols but isn't as heavy-handed 16434 # as -z defs. 16435 no_undefined_flag_CXX='${wl}-z,text' 16436 allow_undefined_flag_CXX='${wl}-z,nodefs' 16437 archive_cmds_need_lc_CXX=no 16438 hardcode_shlibpath_var_CXX=no 16439 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir' 16440 hardcode_libdir_separator_CXX=':' 16441 link_all_deplibs_CXX=yes 16442 export_dynamic_flag_spec_CXX='${wl}-Bexport' 16443 runpath_var='LD_RUN_PATH' 16444 16445 case $cc_basename in 16446 CC*) 16447 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16448 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16449 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ 16450 '"$old_archive_cmds_CXX" 16451 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ 16452 '"$reload_cmds_CXX" 16453 ;; 16454 *) 16455 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16456 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16457 ;; 16458 esac 16459 ;; 16460 16461 tandem*) 16462 case $cc_basename in 16463 NCC*) 16464 # NonStop-UX NCC 3.20 16465 # FIXME: insert proper C++ library support 16466 ld_shlibs_CXX=no 16467 ;; 16468 *) 16469 # FIXME: insert proper C++ library support 16470 ld_shlibs_CXX=no 16471 ;; 16472 esac 16473 ;; 16474 16475 vxworks*) 16476 # FIXME: insert proper C++ library support 16477 ld_shlibs_CXX=no 16478 ;; 16479 16480 *) 16481 # FIXME: insert proper C++ library support 16482 ld_shlibs_CXX=no 16483 ;; 16484 esac 16485 16486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 16487$as_echo "$ld_shlibs_CXX" >&6; } 16488 test "$ld_shlibs_CXX" = no && can_build_shared=no 16489 16490 GCC_CXX="$GXX" 16491 LD_CXX="$LD" 16492 16493 ## CAVEAT EMPTOR: 16494 ## There is no encapsulation within the following macros, do not change 16495 ## the running order or otherwise move them around unless you know exactly 16496 ## what you are doing... 16497 # Dependencies to place before and after the object being linked: 16498predep_objects_CXX= 16499postdep_objects_CXX= 16500predeps_CXX= 16501postdeps_CXX= 16502compiler_lib_search_path_CXX= 16503 16504cat > conftest.$ac_ext <<_LT_EOF 16505class Foo 16506{ 16507public: 16508 Foo (void) { a = 0; } 16509private: 16510 int a; 16511}; 16512_LT_EOF 16513 16514 16515_lt_libdeps_save_CFLAGS=$CFLAGS 16516case "$CC $CFLAGS " in #( 16517*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; 16518*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; 16519esac 16520 16521if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 16522 (eval $ac_compile) 2>&5 16523 ac_status=$? 16524 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16525 test $ac_status = 0; }; then 16526 # Parse the compiler output and extract the necessary 16527 # objects, libraries and library flags. 16528 16529 # Sentinel used to keep track of whether or not we are before 16530 # the conftest object file. 16531 pre_test_object_deps_done=no 16532 16533 for p in `eval "$output_verbose_link_cmd"`; do 16534 case ${prev}${p} in 16535 16536 -L* | -R* | -l*) 16537 # Some compilers place space between "-{L,R}" and the path. 16538 # Remove the space. 16539 if test $p = "-L" || 16540 test $p = "-R"; then 16541 prev=$p 16542 continue 16543 fi 16544 16545 # Expand the sysroot to ease extracting the directories later. 16546 if test -z "$prev"; then 16547 case $p in 16548 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; 16549 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; 16550 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; 16551 esac 16552 fi 16553 case $p in 16554 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; 16555 esac 16556 if test "$pre_test_object_deps_done" = no; then 16557 case ${prev} in 16558 -L | -R) 16559 # Internal compiler library paths should come after those 16560 # provided the user. The postdeps already come after the 16561 # user supplied libs so there is no need to process them. 16562 if test -z "$compiler_lib_search_path_CXX"; then 16563 compiler_lib_search_path_CXX="${prev}${p}" 16564 else 16565 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 16566 fi 16567 ;; 16568 # The "-l" case would never come before the object being 16569 # linked, so don't bother handling this case. 16570 esac 16571 else 16572 if test -z "$postdeps_CXX"; then 16573 postdeps_CXX="${prev}${p}" 16574 else 16575 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 16576 fi 16577 fi 16578 prev= 16579 ;; 16580 16581 *.lto.$objext) ;; # Ignore GCC LTO objects 16582 *.$objext) 16583 # This assumes that the test object file only shows up 16584 # once in the compiler output. 16585 if test "$p" = "conftest.$objext"; then 16586 pre_test_object_deps_done=yes 16587 continue 16588 fi 16589 16590 if test "$pre_test_object_deps_done" = no; then 16591 if test -z "$predep_objects_CXX"; then 16592 predep_objects_CXX="$p" 16593 else 16594 predep_objects_CXX="$predep_objects_CXX $p" 16595 fi 16596 else 16597 if test -z "$postdep_objects_CXX"; then 16598 postdep_objects_CXX="$p" 16599 else 16600 postdep_objects_CXX="$postdep_objects_CXX $p" 16601 fi 16602 fi 16603 ;; 16604 16605 *) ;; # Ignore the rest. 16606 16607 esac 16608 done 16609 16610 # Clean up. 16611 rm -f a.out a.exe 16612else 16613 echo "libtool.m4: error: problem compiling CXX test program" 16614fi 16615 16616$RM -f confest.$objext 16617CFLAGS=$_lt_libdeps_save_CFLAGS 16618 16619# PORTME: override above test on systems where it is broken 16620case $host_os in 16621interix[3-9]*) 16622 # Interix 3.5 installs completely hosed .la files for C++, so rather than 16623 # hack all around it, let's just trust "g++" to DTRT. 16624 predep_objects_CXX= 16625 postdep_objects_CXX= 16626 postdeps_CXX= 16627 ;; 16628 16629linux*) 16630 case `$CC -V 2>&1 | sed 5q` in 16631 *Sun\ C*) 16632 # Sun C++ 5.9 16633 16634 # The more standards-conforming stlport4 library is 16635 # incompatible with the Cstd library. Avoid specifying 16636 # it if it's in CXXFLAGS. Ignore libCrun as 16637 # -library=stlport4 depends on it. 16638 case " $CXX $CXXFLAGS " in 16639 *" -library=stlport4 "*) 16640 solaris_use_stlport4=yes 16641 ;; 16642 esac 16643 16644 if test "$solaris_use_stlport4" != yes; then 16645 postdeps_CXX='-library=Cstd -library=Crun' 16646 fi 16647 ;; 16648 esac 16649 ;; 16650 16651solaris*) 16652 case $cc_basename in 16653 CC* | sunCC*) 16654 # The more standards-conforming stlport4 library is 16655 # incompatible with the Cstd library. Avoid specifying 16656 # it if it's in CXXFLAGS. Ignore libCrun as 16657 # -library=stlport4 depends on it. 16658 case " $CXX $CXXFLAGS " in 16659 *" -library=stlport4 "*) 16660 solaris_use_stlport4=yes 16661 ;; 16662 esac 16663 16664 # Adding this requires a known-good setup of shared libraries for 16665 # Sun compiler versions before 5.6, else PIC objects from an old 16666 # archive will be linked into the output, leading to subtle bugs. 16667 if test "$solaris_use_stlport4" != yes; then 16668 postdeps_CXX='-library=Cstd -library=Crun' 16669 fi 16670 ;; 16671 esac 16672 ;; 16673esac 16674 16675 16676case " $postdeps_CXX " in 16677*" -lc "*) archive_cmds_need_lc_CXX=no ;; 16678esac 16679 compiler_lib_search_dirs_CXX= 16680if test -n "${compiler_lib_search_path_CXX}"; then 16681 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` 16682fi 16683 16684 16685 16686 16687 16688 16689 16690 16691 16692 16693 16694 16695 16696 16697 16698 16699 16700 16701 16702 16703 16704 16705 16706 16707 16708 16709 16710 16711 16712 16713 16714 lt_prog_compiler_wl_CXX= 16715lt_prog_compiler_pic_CXX= 16716lt_prog_compiler_static_CXX= 16717 16718 16719 # C++ specific cases for pic, static, wl, etc. 16720 if test "$GXX" = yes; then 16721 lt_prog_compiler_wl_CXX='-Wl,' 16722 lt_prog_compiler_static_CXX='-static' 16723 16724 case $host_os in 16725 aix*) 16726 # All AIX code is PIC. 16727 if test "$host_cpu" = ia64; then 16728 # AIX 5 now supports IA64 processor 16729 lt_prog_compiler_static_CXX='-Bstatic' 16730 fi 16731 ;; 16732 16733 amigaos*) 16734 case $host_cpu in 16735 powerpc) 16736 # see comment about AmigaOS4 .so support 16737 lt_prog_compiler_pic_CXX='-fPIC' 16738 ;; 16739 m68k) 16740 # FIXME: we need at least 68020 code to build shared libraries, but 16741 # adding the `-m68020' flag to GCC prevents building anything better, 16742 # like `-m68040'. 16743 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 16744 ;; 16745 esac 16746 ;; 16747 16748 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 16749 # PIC is the default for these OSes. 16750 ;; 16751 mingw* | cygwin* | os2* | pw32* | cegcc*) 16752 # This hack is so that the source file can tell whether it is being 16753 # built for inclusion in a dll (and should export symbols for example). 16754 # Although the cygwin gcc ignores -fPIC, still need this for old-style 16755 # (--disable-auto-import) libraries 16756 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 16757 ;; 16758 darwin* | rhapsody*) 16759 # PIC is the default on this platform 16760 # Common symbols not allowed in MH_DYLIB files 16761 lt_prog_compiler_pic_CXX='-fno-common' 16762 ;; 16763 *djgpp*) 16764 # DJGPP does not support shared libraries at all 16765 lt_prog_compiler_pic_CXX= 16766 ;; 16767 haiku*) 16768 # PIC is the default for Haiku. 16769 # The "-static" flag exists, but is broken. 16770 lt_prog_compiler_static_CXX= 16771 ;; 16772 interix[3-9]*) 16773 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 16774 # Instead, we relocate shared libraries at runtime. 16775 ;; 16776 sysv4*MP*) 16777 if test -d /usr/nec; then 16778 lt_prog_compiler_pic_CXX=-Kconform_pic 16779 fi 16780 ;; 16781 hpux*) 16782 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 16783 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 16784 # sets the default TLS model and affects inlining. 16785 case $host_cpu in 16786 hppa*64*) 16787 ;; 16788 *) 16789 lt_prog_compiler_pic_CXX='-fPIC' 16790 ;; 16791 esac 16792 ;; 16793 *qnx* | *nto*) 16794 # QNX uses GNU C++, but need to define -shared option too, otherwise 16795 # it will coredump. 16796 lt_prog_compiler_pic_CXX='-fPIC -shared' 16797 ;; 16798 *) 16799 lt_prog_compiler_pic_CXX='-fPIC' 16800 ;; 16801 esac 16802 else 16803 case $host_os in 16804 aix[4-9]*) 16805 # All AIX code is PIC. 16806 if test "$host_cpu" = ia64; then 16807 # AIX 5 now supports IA64 processor 16808 lt_prog_compiler_static_CXX='-Bstatic' 16809 else 16810 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 16811 fi 16812 ;; 16813 chorus*) 16814 case $cc_basename in 16815 cxch68*) 16816 # Green Hills C++ Compiler 16817 # _LT_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" 16818 ;; 16819 esac 16820 ;; 16821 mingw* | cygwin* | os2* | pw32* | cegcc*) 16822 # This hack is so that the source file can tell whether it is being 16823 # built for inclusion in a dll (and should export symbols for example). 16824 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 16825 ;; 16826 dgux*) 16827 case $cc_basename in 16828 ec++*) 16829 lt_prog_compiler_pic_CXX='-KPIC' 16830 ;; 16831 ghcx*) 16832 # Green Hills C++ Compiler 16833 lt_prog_compiler_pic_CXX='-pic' 16834 ;; 16835 *) 16836 ;; 16837 esac 16838 ;; 16839 freebsd* | dragonfly*) 16840 # FreeBSD uses GNU C++ 16841 ;; 16842 hpux9* | hpux10* | hpux11*) 16843 case $cc_basename in 16844 CC*) 16845 lt_prog_compiler_wl_CXX='-Wl,' 16846 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 16847 if test "$host_cpu" != ia64; then 16848 lt_prog_compiler_pic_CXX='+Z' 16849 fi 16850 ;; 16851 aCC*) 16852 lt_prog_compiler_wl_CXX='-Wl,' 16853 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 16854 case $host_cpu in 16855 hppa*64*|ia64*) 16856 # +Z the default 16857 ;; 16858 *) 16859 lt_prog_compiler_pic_CXX='+Z' 16860 ;; 16861 esac 16862 ;; 16863 *) 16864 ;; 16865 esac 16866 ;; 16867 interix*) 16868 # This is c89, which is MS Visual C++ (no shared libs) 16869 # Anyone wants to do a port? 16870 ;; 16871 irix5* | irix6* | nonstopux*) 16872 case $cc_basename in 16873 CC*) 16874 lt_prog_compiler_wl_CXX='-Wl,' 16875 lt_prog_compiler_static_CXX='-non_shared' 16876 # CC pic flag -KPIC is the default. 16877 ;; 16878 *) 16879 ;; 16880 esac 16881 ;; 16882 linux* | k*bsd*-gnu | kopensolaris*-gnu) 16883 case $cc_basename in 16884 KCC*) 16885 # KAI C++ Compiler 16886 lt_prog_compiler_wl_CXX='--backend -Wl,' 16887 lt_prog_compiler_pic_CXX='-fPIC' 16888 ;; 16889 ecpc* ) 16890 # old Intel C++ for x86_64 which still supported -KPIC. 16891 lt_prog_compiler_wl_CXX='-Wl,' 16892 lt_prog_compiler_pic_CXX='-KPIC' 16893 lt_prog_compiler_static_CXX='-static' 16894 ;; 16895 icpc* ) 16896 # Intel C++, used to be incompatible with GCC. 16897 # ICC 10 doesn't accept -KPIC any more. 16898 lt_prog_compiler_wl_CXX='-Wl,' 16899 lt_prog_compiler_pic_CXX='-fPIC' 16900 lt_prog_compiler_static_CXX='-static' 16901 ;; 16902 pgCC* | pgcpp*) 16903 # Portland Group C++ compiler 16904 lt_prog_compiler_wl_CXX='-Wl,' 16905 lt_prog_compiler_pic_CXX='-fpic' 16906 lt_prog_compiler_static_CXX='-Bstatic' 16907 ;; 16908 cxx*) 16909 # Compaq C++ 16910 # Make sure the PIC flag is empty. It appears that all Alpha 16911 # Linux and Compaq Tru64 Unix objects are PIC. 16912 lt_prog_compiler_pic_CXX= 16913 lt_prog_compiler_static_CXX='-non_shared' 16914 ;; 16915 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) 16916 # IBM XL 8.0, 9.0 on PPC and BlueGene 16917 lt_prog_compiler_wl_CXX='-Wl,' 16918 lt_prog_compiler_pic_CXX='-qpic' 16919 lt_prog_compiler_static_CXX='-qstaticlink' 16920 ;; 16921 *) 16922 case `$CC -V 2>&1 | sed 5q` in 16923 *Sun\ C*) 16924 # Sun C++ 5.9 16925 lt_prog_compiler_pic_CXX='-KPIC' 16926 lt_prog_compiler_static_CXX='-Bstatic' 16927 lt_prog_compiler_wl_CXX='-Qoption ld ' 16928 ;; 16929 esac 16930 ;; 16931 esac 16932 ;; 16933 lynxos*) 16934 ;; 16935 m88k*) 16936 ;; 16937 mvs*) 16938 case $cc_basename in 16939 cxx*) 16940 lt_prog_compiler_pic_CXX='-W c,exportall' 16941 ;; 16942 *) 16943 ;; 16944 esac 16945 ;; 16946 netbsd*) 16947 ;; 16948 *qnx* | *nto*) 16949 # QNX uses GNU C++, but need to define -shared option too, otherwise 16950 # it will coredump. 16951 lt_prog_compiler_pic_CXX='-fPIC -shared' 16952 ;; 16953 osf3* | osf4* | osf5*) 16954 case $cc_basename in 16955 KCC*) 16956 lt_prog_compiler_wl_CXX='--backend -Wl,' 16957 ;; 16958 RCC*) 16959 # Rational C++ 2.4.1 16960 lt_prog_compiler_pic_CXX='-pic' 16961 ;; 16962 cxx*) 16963 # Digital/Compaq C++ 16964 lt_prog_compiler_wl_CXX='-Wl,' 16965 # Make sure the PIC flag is empty. It appears that all Alpha 16966 # Linux and Compaq Tru64 Unix objects are PIC. 16967 lt_prog_compiler_pic_CXX= 16968 lt_prog_compiler_static_CXX='-non_shared' 16969 ;; 16970 *) 16971 ;; 16972 esac 16973 ;; 16974 psos*) 16975 ;; 16976 solaris*) 16977 case $cc_basename in 16978 CC* | sunCC*) 16979 # Sun C++ 4.2, 5.x and Centerline C++ 16980 lt_prog_compiler_pic_CXX='-KPIC' 16981 lt_prog_compiler_static_CXX='-Bstatic' 16982 lt_prog_compiler_wl_CXX='-Qoption ld ' 16983 ;; 16984 gcx*) 16985 # Green Hills C++ Compiler 16986 lt_prog_compiler_pic_CXX='-PIC' 16987 ;; 16988 *) 16989 ;; 16990 esac 16991 ;; 16992 sunos4*) 16993 case $cc_basename in 16994 CC*) 16995 # Sun C++ 4.x 16996 lt_prog_compiler_pic_CXX='-pic' 16997 lt_prog_compiler_static_CXX='-Bstatic' 16998 ;; 16999 lcc*) 17000 # Lucid 17001 lt_prog_compiler_pic_CXX='-pic' 17002 ;; 17003 *) 17004 ;; 17005 esac 17006 ;; 17007 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 17008 case $cc_basename in 17009 CC*) 17010 lt_prog_compiler_wl_CXX='-Wl,' 17011 lt_prog_compiler_pic_CXX='-KPIC' 17012 lt_prog_compiler_static_CXX='-Bstatic' 17013 ;; 17014 esac 17015 ;; 17016 tandem*) 17017 case $cc_basename in 17018 NCC*) 17019 # NonStop-UX NCC 3.20 17020 lt_prog_compiler_pic_CXX='-KPIC' 17021 ;; 17022 *) 17023 ;; 17024 esac 17025 ;; 17026 vxworks*) 17027 ;; 17028 *) 17029 lt_prog_compiler_can_build_shared_CXX=no 17030 ;; 17031 esac 17032 fi 17033 17034case $host_os in 17035 # For platforms which do not support PIC, -DPIC is meaningless: 17036 *djgpp*) 17037 lt_prog_compiler_pic_CXX= 17038 ;; 17039 *) 17040 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 17041 ;; 17042esac 17043 17044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 17045$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 17046if ${lt_cv_prog_compiler_pic_CXX+:} false; then : 17047 $as_echo_n "(cached) " >&6 17048else 17049 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX 17050fi 17051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 17052$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; } 17053lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX 17054 17055# 17056# Check to make sure the PIC flag actually works. 17057# 17058if test -n "$lt_prog_compiler_pic_CXX"; then 17059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 17060$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } 17061if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then : 17062 $as_echo_n "(cached) " >&6 17063else 17064 lt_cv_prog_compiler_pic_works_CXX=no 17065 ac_outfile=conftest.$ac_objext 17066 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 17067 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 17068 # Insert the option either (1) after the last *FLAGS variable, or 17069 # (2) before a word containing "conftest.", or (3) at the end. 17070 # Note that $ac_compile itself does not contain backslashes and begins 17071 # with a dollar sign (not a hyphen), so the echo should work correctly. 17072 # The option is referenced via a variable to avoid confusing sed. 17073 lt_compile=`echo "$ac_compile" | $SED \ 17074 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 17075 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17076 -e 's:$: $lt_compiler_flag:'` 17077 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 17078 (eval "$lt_compile" 2>conftest.err) 17079 ac_status=$? 17080 cat conftest.err >&5 17081 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17082 if (exit $ac_status) && test -s "$ac_outfile"; then 17083 # The compiler can only warn and ignore the option if not recognized 17084 # So say no if there are warnings other than the usual output. 17085 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 17086 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 17087 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 17088 lt_cv_prog_compiler_pic_works_CXX=yes 17089 fi 17090 fi 17091 $RM conftest* 17092 17093fi 17094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 17095$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } 17096 17097if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then 17098 case $lt_prog_compiler_pic_CXX in 17099 "" | " "*) ;; 17100 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 17101 esac 17102else 17103 lt_prog_compiler_pic_CXX= 17104 lt_prog_compiler_can_build_shared_CXX=no 17105fi 17106 17107fi 17108 17109 17110 17111 17112 17113# 17114# Check to make sure the static flag actually works. 17115# 17116wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 17117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 17118$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 17119if ${lt_cv_prog_compiler_static_works_CXX+:} false; then : 17120 $as_echo_n "(cached) " >&6 17121else 17122 lt_cv_prog_compiler_static_works_CXX=no 17123 save_LDFLAGS="$LDFLAGS" 17124 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 17125 echo "$lt_simple_link_test_code" > conftest.$ac_ext 17126 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 17127 # The linker can only warn and ignore the option if not recognized 17128 # So say no if there are warnings 17129 if test -s conftest.err; then 17130 # Append any errors to the config.log. 17131 cat conftest.err 1>&5 17132 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 17133 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 17134 if diff conftest.exp conftest.er2 >/dev/null; then 17135 lt_cv_prog_compiler_static_works_CXX=yes 17136 fi 17137 else 17138 lt_cv_prog_compiler_static_works_CXX=yes 17139 fi 17140 fi 17141 $RM -r conftest* 17142 LDFLAGS="$save_LDFLAGS" 17143 17144fi 17145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 17146$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } 17147 17148if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then 17149 : 17150else 17151 lt_prog_compiler_static_CXX= 17152fi 17153 17154 17155 17156 17157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 17158$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 17159if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 17160 $as_echo_n "(cached) " >&6 17161else 17162 lt_cv_prog_compiler_c_o_CXX=no 17163 $RM -r conftest 2>/dev/null 17164 mkdir conftest 17165 cd conftest 17166 mkdir out 17167 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 17168 17169 lt_compiler_flag="-o out/conftest2.$ac_objext" 17170 # Insert the option either (1) after the last *FLAGS variable, or 17171 # (2) before a word containing "conftest.", or (3) at the end. 17172 # Note that $ac_compile itself does not contain backslashes and begins 17173 # with a dollar sign (not a hyphen), so the echo should work correctly. 17174 lt_compile=`echo "$ac_compile" | $SED \ 17175 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 17176 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17177 -e 's:$: $lt_compiler_flag:'` 17178 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 17179 (eval "$lt_compile" 2>out/conftest.err) 17180 ac_status=$? 17181 cat out/conftest.err >&5 17182 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17183 if (exit $ac_status) && test -s out/conftest2.$ac_objext 17184 then 17185 # The compiler can only warn and ignore the option if not recognized 17186 # So say no if there are warnings 17187 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 17188 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 17189 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 17190 lt_cv_prog_compiler_c_o_CXX=yes 17191 fi 17192 fi 17193 chmod u+w . 2>&5 17194 $RM conftest* 17195 # SGI C++ compiler will create directory out/ii_files/ for 17196 # template instantiation 17197 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 17198 $RM out/* && rmdir out 17199 cd .. 17200 $RM -r conftest 17201 $RM conftest* 17202 17203fi 17204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 17205$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 17206 17207 17208 17209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 17210$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 17211if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 17212 $as_echo_n "(cached) " >&6 17213else 17214 lt_cv_prog_compiler_c_o_CXX=no 17215 $RM -r conftest 2>/dev/null 17216 mkdir conftest 17217 cd conftest 17218 mkdir out 17219 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 17220 17221 lt_compiler_flag="-o out/conftest2.$ac_objext" 17222 # Insert the option either (1) after the last *FLAGS variable, or 17223 # (2) before a word containing "conftest.", or (3) at the end. 17224 # Note that $ac_compile itself does not contain backslashes and begins 17225 # with a dollar sign (not a hyphen), so the echo should work correctly. 17226 lt_compile=`echo "$ac_compile" | $SED \ 17227 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 17228 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17229 -e 's:$: $lt_compiler_flag:'` 17230 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 17231 (eval "$lt_compile" 2>out/conftest.err) 17232 ac_status=$? 17233 cat out/conftest.err >&5 17234 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17235 if (exit $ac_status) && test -s out/conftest2.$ac_objext 17236 then 17237 # The compiler can only warn and ignore the option if not recognized 17238 # So say no if there are warnings 17239 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 17240 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 17241 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 17242 lt_cv_prog_compiler_c_o_CXX=yes 17243 fi 17244 fi 17245 chmod u+w . 2>&5 17246 $RM conftest* 17247 # SGI C++ compiler will create directory out/ii_files/ for 17248 # template instantiation 17249 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 17250 $RM out/* && rmdir out 17251 cd .. 17252 $RM -r conftest 17253 $RM conftest* 17254 17255fi 17256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 17257$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 17258 17259 17260 17261 17262hard_links="nottested" 17263if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 17264 # do not overwrite the value of need_locks provided by the user 17265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 17266$as_echo_n "checking if we can lock with hard links... " >&6; } 17267 hard_links=yes 17268 $RM conftest* 17269 ln conftest.a conftest.b 2>/dev/null && hard_links=no 17270 touch conftest.a 17271 ln conftest.a conftest.b 2>&5 || hard_links=no 17272 ln conftest.a conftest.b 2>/dev/null && hard_links=no 17273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 17274$as_echo "$hard_links" >&6; } 17275 if test "$hard_links" = no; then 17276 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 17277$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 17278 need_locks=warn 17279 fi 17280else 17281 need_locks=no 17282fi 17283 17284 17285 17286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 17287$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 17288 17289 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 17290 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 17291 case $host_os in 17292 aix[4-9]*) 17293 # If we're using GNU nm, then we don't want the "-C" option. 17294 # -C means demangle to AIX nm, but means don't demangle with GNU nm 17295 # Also, AIX nm treats weak defined symbols like other global defined 17296 # symbols, whereas GNU nm marks them as "W". 17297 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 17298 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 17299 else 17300 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' 17301 fi 17302 ;; 17303 pw32*) 17304 export_symbols_cmds_CXX="$ltdll_cmds" 17305 ;; 17306 cygwin* | mingw* | cegcc*) 17307 case $cc_basename in 17308 cl*) ;; 17309 *) 17310 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' 17311 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 17312 ;; 17313 esac 17314 ;; 17315 *) 17316 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 17317 ;; 17318 esac 17319 17320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 17321$as_echo "$ld_shlibs_CXX" >&6; } 17322test "$ld_shlibs_CXX" = no && can_build_shared=no 17323 17324with_gnu_ld_CXX=$with_gnu_ld 17325 17326 17327 17328 17329 17330 17331# 17332# Do we need to explicitly link libc? 17333# 17334case "x$archive_cmds_need_lc_CXX" in 17335x|xyes) 17336 # Assume -lc should be added 17337 archive_cmds_need_lc_CXX=yes 17338 17339 if test "$enable_shared" = yes && test "$GCC" = yes; then 17340 case $archive_cmds_CXX in 17341 *'~'*) 17342 # FIXME: we may have to deal with multi-command sequences. 17343 ;; 17344 '$CC '*) 17345 # Test whether the compiler implicitly links with -lc since on some 17346 # systems, -lgcc has to come before -lc. If gcc already passes -lc 17347 # to ld, don't add -lc before -lgcc. 17348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 17349$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 17350if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then : 17351 $as_echo_n "(cached) " >&6 17352else 17353 $RM conftest* 17354 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 17355 17356 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 17357 (eval $ac_compile) 2>&5 17358 ac_status=$? 17359 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17360 test $ac_status = 0; } 2>conftest.err; then 17361 soname=conftest 17362 lib=conftest 17363 libobjs=conftest.$ac_objext 17364 deplibs= 17365 wl=$lt_prog_compiler_wl_CXX 17366 pic_flag=$lt_prog_compiler_pic_CXX 17367 compiler_flags=-v 17368 linker_flags=-v 17369 verstring= 17370 output_objdir=. 17371 libname=conftest 17372 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 17373 allow_undefined_flag_CXX= 17374 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 17375 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 17376 ac_status=$? 17377 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17378 test $ac_status = 0; } 17379 then 17380 lt_cv_archive_cmds_need_lc_CXX=no 17381 else 17382 lt_cv_archive_cmds_need_lc_CXX=yes 17383 fi 17384 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 17385 else 17386 cat conftest.err 1>&5 17387 fi 17388 $RM conftest* 17389 17390fi 17391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 17392$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } 17393 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX 17394 ;; 17395 esac 17396 fi 17397 ;; 17398esac 17399 17400 17401 17402 17403 17404 17405 17406 17407 17408 17409 17410 17411 17412 17413 17414 17415 17416 17417 17418 17419 17420 17421 17422 17423 17424 17425 17426 17427 17428 17429 17430 17431 17432 17433 17434 17435 17436 17437 17438 17439 17440 17441 17442 17443 17444 17445 17446 17447 17448 17449 17450 17451 17452 17453 17454 17455 17456 17457 17458 17459 17460 17461 17462 17463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 17464$as_echo_n "checking dynamic linker characteristics... " >&6; } 17465 17466library_names_spec= 17467libname_spec='lib$name' 17468soname_spec= 17469shrext_cmds=".so" 17470postinstall_cmds= 17471postuninstall_cmds= 17472finish_cmds= 17473finish_eval= 17474shlibpath_var= 17475shlibpath_overrides_runpath=unknown 17476version_type=none 17477dynamic_linker="$host_os ld.so" 17478sys_lib_dlsearch_path_spec="/lib /usr/lib" 17479need_lib_prefix=unknown 17480hardcode_into_libs=no 17481 17482# when you set need_version to no, make sure it does not cause -set_version 17483# flags to be left without arguments 17484need_version=unknown 17485 17486case $host_os in 17487aix3*) 17488 version_type=linux 17489 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 17490 shlibpath_var=LIBPATH 17491 17492 # AIX 3 has no versioning support, so we append a major version to the name. 17493 soname_spec='${libname}${release}${shared_ext}$major' 17494 ;; 17495 17496aix[4-9]*) 17497 version_type=linux 17498 need_lib_prefix=no 17499 need_version=no 17500 hardcode_into_libs=yes 17501 if test "$host_cpu" = ia64; then 17502 # AIX 5 supports IA64 17503 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 17504 shlibpath_var=LD_LIBRARY_PATH 17505 else 17506 # With GCC up to 2.95.x, collect2 would create an import file 17507 # for dependence libraries. The import file would start with 17508 # the line `#! .'. This would cause the generated library to 17509 # depend on `.', always an invalid library. This was fixed in 17510 # development snapshots of GCC prior to 3.0. 17511 case $host_os in 17512 aix4 | aix4.[01] | aix4.[01].*) 17513 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 17514 echo ' yes ' 17515 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 17516 : 17517 else 17518 can_build_shared=no 17519 fi 17520 ;; 17521 esac 17522 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 17523 # soname into executable. Probably we can add versioning support to 17524 # collect2, so additional links can be useful in future. 17525 if test "$aix_use_runtimelinking" = yes; then 17526 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 17527 # instead of lib<name>.a to let people know that these are not 17528 # typical AIX shared libraries. 17529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17530 else 17531 # We preserve .a as extension for shared libraries through AIX4.2 17532 # and later when we are not doing run time linking. 17533 library_names_spec='${libname}${release}.a $libname.a' 17534 soname_spec='${libname}${release}${shared_ext}$major' 17535 fi 17536 shlibpath_var=LIBPATH 17537 fi 17538 ;; 17539 17540amigaos*) 17541 case $host_cpu in 17542 powerpc) 17543 # Since July 2007 AmigaOS4 officially supports .so libraries. 17544 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 17545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17546 ;; 17547 m68k) 17548 library_names_spec='$libname.ixlibrary $libname.a' 17549 # Create ${libname}_ixlibrary.a entries in /sys/libs. 17550 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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' 17551 ;; 17552 esac 17553 ;; 17554 17555beos*) 17556 library_names_spec='${libname}${shared_ext}' 17557 dynamic_linker="$host_os ld.so" 17558 shlibpath_var=LIBRARY_PATH 17559 ;; 17560 17561bsdi[45]*) 17562 version_type=linux 17563 need_version=no 17564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17565 soname_spec='${libname}${release}${shared_ext}$major' 17566 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 17567 shlibpath_var=LD_LIBRARY_PATH 17568 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 17569 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 17570 # the default ld.so.conf also contains /usr/contrib/lib and 17571 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 17572 # libtool to hard-code these into programs 17573 ;; 17574 17575cygwin* | mingw* | pw32* | cegcc*) 17576 version_type=windows 17577 shrext_cmds=".dll" 17578 need_version=no 17579 need_lib_prefix=no 17580 17581 case $GCC,$cc_basename in 17582 yes,*) 17583 # gcc 17584 library_names_spec='$libname.dll.a' 17585 # DLL is installed to $(libdir)/../bin by postinstall_cmds 17586 postinstall_cmds='base_file=`basename \${file}`~ 17587 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 17588 dldir=$destdir/`dirname \$dlpath`~ 17589 test -d \$dldir || mkdir -p \$dldir~ 17590 $install_prog $dir/$dlname \$dldir/$dlname~ 17591 chmod a+x \$dldir/$dlname~ 17592 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 17593 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 17594 fi' 17595 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 17596 dlpath=$dir/\$dldll~ 17597 $RM \$dlpath' 17598 shlibpath_overrides_runpath=yes 17599 17600 case $host_os in 17601 cygwin*) 17602 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 17603 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17604 17605 ;; 17606 mingw* | cegcc*) 17607 # MinGW DLLs use traditional 'lib' prefix 17608 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17609 ;; 17610 pw32*) 17611 # pw32 DLLs use 'pw' prefix rather than 'lib' 17612 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17613 ;; 17614 esac 17615 dynamic_linker='Win32 ld.exe' 17616 ;; 17617 17618 *,cl*) 17619 # Native MSVC 17620 libname_spec='$name' 17621 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17622 library_names_spec='${libname}.dll.lib' 17623 17624 case $build_os in 17625 mingw*) 17626 sys_lib_search_path_spec= 17627 lt_save_ifs=$IFS 17628 IFS=';' 17629 for lt_path in $LIB 17630 do 17631 IFS=$lt_save_ifs 17632 # Let DOS variable expansion print the short 8.3 style file name. 17633 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 17634 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 17635 done 17636 IFS=$lt_save_ifs 17637 # Convert to MSYS style. 17638 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 17639 ;; 17640 cygwin*) 17641 # Convert to unix form, then to dos form, then back to unix form 17642 # but this time dos style (no spaces!) so that the unix form looks 17643 # like /cygdrive/c/PROGRA~1:/cygdr... 17644 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 17645 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 17646 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17647 ;; 17648 *) 17649 sys_lib_search_path_spec="$LIB" 17650 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 17651 # It is most probably a Windows format PATH. 17652 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 17653 else 17654 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17655 fi 17656 # FIXME: find the short name or the path components, as spaces are 17657 # common. (e.g. "Program Files" -> "PROGRA~1") 17658 ;; 17659 esac 17660 17661 # DLL is installed to $(libdir)/../bin by postinstall_cmds 17662 postinstall_cmds='base_file=`basename \${file}`~ 17663 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 17664 dldir=$destdir/`dirname \$dlpath`~ 17665 test -d \$dldir || mkdir -p \$dldir~ 17666 $install_prog $dir/$dlname \$dldir/$dlname' 17667 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 17668 dlpath=$dir/\$dldll~ 17669 $RM \$dlpath' 17670 shlibpath_overrides_runpath=yes 17671 dynamic_linker='Win32 link.exe' 17672 ;; 17673 17674 *) 17675 # Assume MSVC wrapper 17676 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 17677 dynamic_linker='Win32 ld.exe' 17678 ;; 17679 esac 17680 # FIXME: first we should search . and the directory the executable is in 17681 shlibpath_var=PATH 17682 ;; 17683 17684darwin* | rhapsody*) 17685 dynamic_linker="$host_os dyld" 17686 version_type=darwin 17687 need_lib_prefix=no 17688 need_version=no 17689 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 17690 soname_spec='${libname}${release}${major}$shared_ext' 17691 shlibpath_overrides_runpath=yes 17692 shlibpath_var=DYLD_LIBRARY_PATH 17693 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 17694 17695 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 17696 ;; 17697 17698dgux*) 17699 version_type=linux 17700 need_lib_prefix=no 17701 need_version=no 17702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 17703 soname_spec='${libname}${release}${shared_ext}$major' 17704 shlibpath_var=LD_LIBRARY_PATH 17705 ;; 17706 17707freebsd1*) 17708 dynamic_linker=no 17709 ;; 17710 17711freebsd* | dragonfly*) 17712 # DragonFly does not have aout. When/if they implement a new 17713 # versioning mechanism, adjust this. 17714 if test -x /usr/bin/objformat; then 17715 objformat=`/usr/bin/objformat` 17716 else 17717 case $host_os in 17718 freebsd[123]*) objformat=aout ;; 17719 *) objformat=elf ;; 17720 esac 17721 fi 17722 version_type=freebsd-$objformat 17723 case $version_type in 17724 freebsd-elf*) 17725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 17726 need_version=no 17727 need_lib_prefix=no 17728 ;; 17729 freebsd-*) 17730 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 17731 need_version=yes 17732 ;; 17733 esac 17734 shlibpath_var=LD_LIBRARY_PATH 17735 case $host_os in 17736 freebsd2*) 17737 shlibpath_overrides_runpath=yes 17738 ;; 17739 freebsd3.[01]* | freebsdelf3.[01]*) 17740 shlibpath_overrides_runpath=yes 17741 hardcode_into_libs=yes 17742 ;; 17743 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 17744 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 17745 shlibpath_overrides_runpath=no 17746 hardcode_into_libs=yes 17747 ;; 17748 *) # from 4.6 on, and DragonFly 17749 shlibpath_overrides_runpath=yes 17750 hardcode_into_libs=yes 17751 ;; 17752 esac 17753 ;; 17754 17755gnu*) 17756 version_type=linux 17757 need_lib_prefix=no 17758 need_version=no 17759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 17760 soname_spec='${libname}${release}${shared_ext}$major' 17761 shlibpath_var=LD_LIBRARY_PATH 17762 hardcode_into_libs=yes 17763 ;; 17764 17765haiku*) 17766 version_type=linux 17767 need_lib_prefix=no 17768 need_version=no 17769 dynamic_linker="$host_os runtime_loader" 17770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 17771 soname_spec='${libname}${release}${shared_ext}$major' 17772 shlibpath_var=LIBRARY_PATH 17773 shlibpath_overrides_runpath=yes 17774 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 17775 hardcode_into_libs=yes 17776 ;; 17777 17778hpux9* | hpux10* | hpux11*) 17779 # Give a soname corresponding to the major version so that dld.sl refuses to 17780 # link against other versions. 17781 version_type=sunos 17782 need_lib_prefix=no 17783 need_version=no 17784 case $host_cpu in 17785 ia64*) 17786 shrext_cmds='.so' 17787 hardcode_into_libs=yes 17788 dynamic_linker="$host_os dld.so" 17789 shlibpath_var=LD_LIBRARY_PATH 17790 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 17791 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17792 soname_spec='${libname}${release}${shared_ext}$major' 17793 if test "X$HPUX_IA64_MODE" = X32; then 17794 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 17795 else 17796 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 17797 fi 17798 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17799 ;; 17800 hppa*64*) 17801 shrext_cmds='.sl' 17802 hardcode_into_libs=yes 17803 dynamic_linker="$host_os dld.sl" 17804 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 17805 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 17806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17807 soname_spec='${libname}${release}${shared_ext}$major' 17808 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 17809 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17810 ;; 17811 *) 17812 shrext_cmds='.sl' 17813 dynamic_linker="$host_os dld.sl" 17814 shlibpath_var=SHLIB_PATH 17815 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 17816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17817 soname_spec='${libname}${release}${shared_ext}$major' 17818 ;; 17819 esac 17820 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 17821 postinstall_cmds='chmod 555 $lib' 17822 # or fails outright, so override atomically: 17823 install_override_mode=555 17824 ;; 17825 17826interix[3-9]*) 17827 version_type=linux 17828 need_lib_prefix=no 17829 need_version=no 17830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17831 soname_spec='${libname}${release}${shared_ext}$major' 17832 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 17833 shlibpath_var=LD_LIBRARY_PATH 17834 shlibpath_overrides_runpath=no 17835 hardcode_into_libs=yes 17836 ;; 17837 17838irix5* | irix6* | nonstopux*) 17839 case $host_os in 17840 nonstopux*) version_type=nonstopux ;; 17841 *) 17842 if test "$lt_cv_prog_gnu_ld" = yes; then 17843 version_type=linux 17844 else 17845 version_type=irix 17846 fi ;; 17847 esac 17848 need_lib_prefix=no 17849 need_version=no 17850 soname_spec='${libname}${release}${shared_ext}$major' 17851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 17852 case $host_os in 17853 irix5* | nonstopux*) 17854 libsuff= shlibsuff= 17855 ;; 17856 *) 17857 case $LD in # libtool.m4 will add one of these switches to LD 17858 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 17859 libsuff= shlibsuff= libmagic=32-bit;; 17860 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 17861 libsuff=32 shlibsuff=N32 libmagic=N32;; 17862 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 17863 libsuff=64 shlibsuff=64 libmagic=64-bit;; 17864 *) libsuff= shlibsuff= libmagic=never-match;; 17865 esac 17866 ;; 17867 esac 17868 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 17869 shlibpath_overrides_runpath=no 17870 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 17871 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 17872 hardcode_into_libs=yes 17873 ;; 17874 17875# No shared lib support for Linux oldld, aout, or coff. 17876linux*oldld* | linux*aout* | linux*coff*) 17877 dynamic_linker=no 17878 ;; 17879 17880# This must be Linux ELF. 17881linux* | k*bsd*-gnu | kopensolaris*-gnu) 17882 version_type=linux 17883 need_lib_prefix=no 17884 need_version=no 17885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17886 soname_spec='${libname}${release}${shared_ext}$major' 17887 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 17888 shlibpath_var=LD_LIBRARY_PATH 17889 shlibpath_overrides_runpath=no 17890 17891 # Some binutils ld are patched to set DT_RUNPATH 17892 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 17893 $as_echo_n "(cached) " >&6 17894else 17895 lt_cv_shlibpath_overrides_runpath=no 17896 save_LDFLAGS=$LDFLAGS 17897 save_libdir=$libdir 17898 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ 17899 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" 17900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17901/* end confdefs.h. */ 17902 17903int 17904main () 17905{ 17906 17907 ; 17908 return 0; 17909} 17910_ACEOF 17911if ac_fn_cxx_try_link "$LINENO"; then : 17912 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 17913 lt_cv_shlibpath_overrides_runpath=yes 17914fi 17915fi 17916rm -f core conftest.err conftest.$ac_objext \ 17917 conftest$ac_exeext conftest.$ac_ext 17918 LDFLAGS=$save_LDFLAGS 17919 libdir=$save_libdir 17920 17921fi 17922 17923 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 17924 17925 # This implies no fast_install, which is unacceptable. 17926 # Some rework will be needed to allow for fast_install 17927 # before this can be enabled. 17928 hardcode_into_libs=yes 17929 17930 # Append ld.so.conf contents to the search path 17931 if test -f /etc/ld.so.conf; then 17932 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` 17933 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 17934 fi 17935 17936 # We used to test for /lib/ld.so.1 and disable shared libraries on 17937 # powerpc, because MkLinux only supported shared libraries with the 17938 # GNU dynamic linker. Since this was broken with cross compilers, 17939 # most powerpc-linux boxes support dynamic linking these days and 17940 # people can always --disable-shared, the test was removed, and we 17941 # assume the GNU/Linux dynamic linker is in use. 17942 dynamic_linker='GNU/Linux ld.so' 17943 ;; 17944 17945netbsd*) 17946 version_type=sunos 17947 need_lib_prefix=no 17948 need_version=no 17949 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 17950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 17951 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 17952 dynamic_linker='NetBSD (a.out) ld.so' 17953 else 17954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17955 soname_spec='${libname}${release}${shared_ext}$major' 17956 dynamic_linker='NetBSD ld.elf_so' 17957 fi 17958 shlibpath_var=LD_LIBRARY_PATH 17959 shlibpath_overrides_runpath=yes 17960 hardcode_into_libs=yes 17961 ;; 17962 17963newsos6) 17964 version_type=linux 17965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17966 shlibpath_var=LD_LIBRARY_PATH 17967 shlibpath_overrides_runpath=yes 17968 ;; 17969 17970*nto* | *qnx*) 17971 version_type=qnx 17972 need_lib_prefix=no 17973 need_version=no 17974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17975 soname_spec='${libname}${release}${shared_ext}$major' 17976 shlibpath_var=LD_LIBRARY_PATH 17977 shlibpath_overrides_runpath=no 17978 hardcode_into_libs=yes 17979 dynamic_linker='ldqnx.so' 17980 ;; 17981 17982openbsd*) 17983 version_type=sunos 17984 sys_lib_dlsearch_path_spec="/usr/lib" 17985 need_lib_prefix=no 17986 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 17987 case $host_os in 17988 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 17989 *) need_version=no ;; 17990 esac 17991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 17992 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 17993 shlibpath_var=LD_LIBRARY_PATH 17994 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 17995 case $host_os in 17996 openbsd2.[89] | openbsd2.[89].*) 17997 shlibpath_overrides_runpath=no 17998 ;; 17999 *) 18000 shlibpath_overrides_runpath=yes 18001 ;; 18002 esac 18003 else 18004 shlibpath_overrides_runpath=yes 18005 fi 18006 ;; 18007 18008os2*) 18009 libname_spec='$name' 18010 shrext_cmds=".dll" 18011 need_lib_prefix=no 18012 library_names_spec='$libname${shared_ext} $libname.a' 18013 dynamic_linker='OS/2 ld.exe' 18014 shlibpath_var=LIBPATH 18015 ;; 18016 18017osf3* | osf4* | osf5*) 18018 version_type=osf 18019 need_lib_prefix=no 18020 need_version=no 18021 soname_spec='${libname}${release}${shared_ext}$major' 18022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18023 shlibpath_var=LD_LIBRARY_PATH 18024 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 18025 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 18026 ;; 18027 18028rdos*) 18029 dynamic_linker=no 18030 ;; 18031 18032solaris*) 18033 version_type=linux 18034 need_lib_prefix=no 18035 need_version=no 18036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18037 soname_spec='${libname}${release}${shared_ext}$major' 18038 shlibpath_var=LD_LIBRARY_PATH 18039 shlibpath_overrides_runpath=yes 18040 hardcode_into_libs=yes 18041 # ldd complains unless libraries are executable 18042 postinstall_cmds='chmod +x $lib' 18043 ;; 18044 18045sunos4*) 18046 version_type=sunos 18047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18048 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 18049 shlibpath_var=LD_LIBRARY_PATH 18050 shlibpath_overrides_runpath=yes 18051 if test "$with_gnu_ld" = yes; then 18052 need_lib_prefix=no 18053 fi 18054 need_version=yes 18055 ;; 18056 18057sysv4 | sysv4.3*) 18058 version_type=linux 18059 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18060 soname_spec='${libname}${release}${shared_ext}$major' 18061 shlibpath_var=LD_LIBRARY_PATH 18062 case $host_vendor in 18063 sni) 18064 shlibpath_overrides_runpath=no 18065 need_lib_prefix=no 18066 runpath_var=LD_RUN_PATH 18067 ;; 18068 siemens) 18069 need_lib_prefix=no 18070 ;; 18071 motorola) 18072 need_lib_prefix=no 18073 need_version=no 18074 shlibpath_overrides_runpath=no 18075 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 18076 ;; 18077 esac 18078 ;; 18079 18080sysv4*MP*) 18081 if test -d /usr/nec ;then 18082 version_type=linux 18083 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 18084 soname_spec='$libname${shared_ext}.$major' 18085 shlibpath_var=LD_LIBRARY_PATH 18086 fi 18087 ;; 18088 18089sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 18090 version_type=freebsd-elf 18091 need_lib_prefix=no 18092 need_version=no 18093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 18094 soname_spec='${libname}${release}${shared_ext}$major' 18095 shlibpath_var=LD_LIBRARY_PATH 18096 shlibpath_overrides_runpath=yes 18097 hardcode_into_libs=yes 18098 if test "$with_gnu_ld" = yes; then 18099 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 18100 else 18101 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 18102 case $host_os in 18103 sco3.2v5*) 18104 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 18105 ;; 18106 esac 18107 fi 18108 sys_lib_dlsearch_path_spec='/usr/lib' 18109 ;; 18110 18111tpf*) 18112 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 18113 version_type=linux 18114 need_lib_prefix=no 18115 need_version=no 18116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18117 shlibpath_var=LD_LIBRARY_PATH 18118 shlibpath_overrides_runpath=no 18119 hardcode_into_libs=yes 18120 ;; 18121 18122uts4*) 18123 version_type=linux 18124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18125 soname_spec='${libname}${release}${shared_ext}$major' 18126 shlibpath_var=LD_LIBRARY_PATH 18127 ;; 18128 18129*) 18130 dynamic_linker=no 18131 ;; 18132esac 18133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 18134$as_echo "$dynamic_linker" >&6; } 18135test "$dynamic_linker" = no && can_build_shared=no 18136 18137variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 18138if test "$GCC" = yes; then 18139 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 18140fi 18141 18142if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 18143 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 18144fi 18145if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 18146 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 18147fi 18148 18149 18150 18151 18152 18153 18154 18155 18156 18157 18158 18159 18160 18161 18162 18163 18164 18165 18166 18167 18168 18169 18170 18171 18172 18173 18174 18175 18176 18177 18178 18179 18180 18181 18182 18183 18184 18185 18186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 18187$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 18188hardcode_action_CXX= 18189if test -n "$hardcode_libdir_flag_spec_CXX" || 18190 test -n "$runpath_var_CXX" || 18191 test "X$hardcode_automatic_CXX" = "Xyes" ; then 18192 18193 # We can hardcode non-existent directories. 18194 if test "$hardcode_direct_CXX" != no && 18195 # If the only mechanism to avoid hardcoding is shlibpath_var, we 18196 # have to relink, otherwise we might link with an installed library 18197 # when we should be linking with a yet-to-be-installed one 18198 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 18199 test "$hardcode_minus_L_CXX" != no; then 18200 # Linking always hardcodes the temporary library directory. 18201 hardcode_action_CXX=relink 18202 else 18203 # We can link without hardcoding, and we can hardcode nonexisting dirs. 18204 hardcode_action_CXX=immediate 18205 fi 18206else 18207 # We cannot hardcode anything, or else we can only hardcode existing 18208 # directories. 18209 hardcode_action_CXX=unsupported 18210fi 18211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 18212$as_echo "$hardcode_action_CXX" >&6; } 18213 18214if test "$hardcode_action_CXX" = relink || 18215 test "$inherit_rpath_CXX" = yes; then 18216 # Fast installation is not supported 18217 enable_fast_install=no 18218elif test "$shlibpath_overrides_runpath" = yes || 18219 test "$enable_shared" = no; then 18220 # Fast installation is not necessary 18221 enable_fast_install=needless 18222fi 18223 18224 18225 18226 18227 18228 18229 18230 fi # test -n "$compiler" 18231 18232 CC=$lt_save_CC 18233 CFLAGS=$lt_save_CFLAGS 18234 LDCXX=$LD 18235 LD=$lt_save_LD 18236 GCC=$lt_save_GCC 18237 with_gnu_ld=$lt_save_with_gnu_ld 18238 lt_cv_path_LDCXX=$lt_cv_path_LD 18239 lt_cv_path_LD=$lt_save_path_LD 18240 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 18241 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 18242fi # test "$_lt_caught_CXX_error" != yes 18243 18244ac_ext=c 18245ac_cpp='$CPP $CPPFLAGS' 18246ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18247ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18248ac_compiler_gnu=$ac_cv_c_compiler_gnu 18249 18250 18251 18252 18253 18254 18255 18256 18257 18258 18259 18260 18261 18262 ac_config_commands="$ac_config_commands libtool" 18263 18264 18265 18266 18267# Only expand once: 18268 18269 18270 18271 18272# NTP has (so far) been relying on leading-edge autogen, which 18273# means we need the appropriate corresponding libopts as well. 18274# Therefore, by default: 18275# - use the version of libopts we ship with 18276# - do not install it 18277# - build a static copy (AC_DISABLE_SHARED - done earlier) 18278case "${enable_local_libopts+set}" in 18279 set) ;; 18280 *) enable_local_libopts=yes ;; 18281esac 18282case "${enable_libopts_install+set}" in 18283 set) ;; 18284 *) enable_libopts_install=no ;; 18285esac 18286enable_nls=no 18287ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" 18288if test "x$ac_cv_type_pid_t" = xyes; then : 18289 18290else 18291 18292cat >>confdefs.h <<_ACEOF 18293#define pid_t int 18294_ACEOF 18295 18296fi 18297 18298 18299 18300 ac_header_dirent=no 18301for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 18302 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` 18303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 18304$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } 18305if eval \${$as_ac_Header+:} false; then : 18306 $as_echo_n "(cached) " >&6 18307else 18308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18309/* end confdefs.h. */ 18310#include <sys/types.h> 18311#include <$ac_hdr> 18312 18313int 18314main () 18315{ 18316if ((DIR *) 0) 18317return 0; 18318 ; 18319 return 0; 18320} 18321_ACEOF 18322if ac_fn_c_try_compile "$LINENO"; then : 18323 eval "$as_ac_Header=yes" 18324else 18325 eval "$as_ac_Header=no" 18326fi 18327rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18328fi 18329eval ac_res=\$$as_ac_Header 18330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 18331$as_echo "$ac_res" >&6; } 18332if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 18333 cat >>confdefs.h <<_ACEOF 18334#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 18335_ACEOF 18336 18337ac_header_dirent=$ac_hdr; break 18338fi 18339 18340done 18341# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 18342if test $ac_header_dirent = dirent.h; then 18343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 18344$as_echo_n "checking for library containing opendir... " >&6; } 18345if ${ac_cv_search_opendir+:} false; then : 18346 $as_echo_n "(cached) " >&6 18347else 18348 ac_func_search_save_LIBS=$LIBS 18349cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18350/* end confdefs.h. */ 18351 18352/* Override any GCC internal prototype to avoid an error. 18353 Use char because int might match the return type of a GCC 18354 builtin and then its argument prototype would still apply. */ 18355#ifdef __cplusplus 18356extern "C" 18357#endif 18358char opendir (); 18359int 18360main () 18361{ 18362return opendir (); 18363 ; 18364 return 0; 18365} 18366_ACEOF 18367for ac_lib in '' dir; do 18368 if test -z "$ac_lib"; then 18369 ac_res="none required" 18370 else 18371 ac_res=-l$ac_lib 18372 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 18373 fi 18374 if ac_fn_c_try_link "$LINENO"; then : 18375 ac_cv_search_opendir=$ac_res 18376fi 18377rm -f core conftest.err conftest.$ac_objext \ 18378 conftest$ac_exeext 18379 if ${ac_cv_search_opendir+:} false; then : 18380 break 18381fi 18382done 18383if ${ac_cv_search_opendir+:} false; then : 18384 18385else 18386 ac_cv_search_opendir=no 18387fi 18388rm conftest.$ac_ext 18389LIBS=$ac_func_search_save_LIBS 18390fi 18391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 18392$as_echo "$ac_cv_search_opendir" >&6; } 18393ac_res=$ac_cv_search_opendir 18394if test "$ac_res" != no; then : 18395 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 18396 18397fi 18398 18399else 18400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 18401$as_echo_n "checking for library containing opendir... " >&6; } 18402if ${ac_cv_search_opendir+:} false; then : 18403 $as_echo_n "(cached) " >&6 18404else 18405 ac_func_search_save_LIBS=$LIBS 18406cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18407/* end confdefs.h. */ 18408 18409/* Override any GCC internal prototype to avoid an error. 18410 Use char because int might match the return type of a GCC 18411 builtin and then its argument prototype would still apply. */ 18412#ifdef __cplusplus 18413extern "C" 18414#endif 18415char opendir (); 18416int 18417main () 18418{ 18419return opendir (); 18420 ; 18421 return 0; 18422} 18423_ACEOF 18424for ac_lib in '' x; do 18425 if test -z "$ac_lib"; then 18426 ac_res="none required" 18427 else 18428 ac_res=-l$ac_lib 18429 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 18430 fi 18431 if ac_fn_c_try_link "$LINENO"; then : 18432 ac_cv_search_opendir=$ac_res 18433fi 18434rm -f core conftest.err conftest.$ac_objext \ 18435 conftest$ac_exeext 18436 if ${ac_cv_search_opendir+:} false; then : 18437 break 18438fi 18439done 18440if ${ac_cv_search_opendir+:} false; then : 18441 18442else 18443 ac_cv_search_opendir=no 18444fi 18445rm conftest.$ac_ext 18446LIBS=$ac_func_search_save_LIBS 18447fi 18448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 18449$as_echo "$ac_cv_search_opendir" >&6; } 18450ac_res=$ac_cv_search_opendir 18451if test "$ac_res" != no; then : 18452 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 18453 18454fi 18455 18456fi 18457 18458 18459 # ================= 18460 # AC_CHECK_HEADERS 18461 # ================= 18462 for ac_header in \ 18463 sys/mman.h sys/param.h sys/poll.h sys/procset.h \ 18464 sys/select.h sys/socket.h sys/stropts.h sys/time.h \ 18465 sys/un.h sys/wait.h dlfcn.h errno.h \ 18466 fcntl.h libgen.h libintl.h memory.h \ 18467 netinet/in.h setjmp.h stdbool.h sysexits.h \ 18468 unistd.h utime.h 18469do : 18470 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 18471ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 18472if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 18473 cat >>confdefs.h <<_ACEOF 18474#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 18475_ACEOF 18476 18477fi 18478 18479done 18480 18481 18482 for ac_header in stdarg.h varargs.h 18483do : 18484 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 18485ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 18486if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 18487 cat >>confdefs.h <<_ACEOF 18488#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 18489_ACEOF 18490 lo_have_arg_hdr=true;break 18491else 18492 lo_have_arg_hdr=false 18493fi 18494 18495done 18496 18497 18498 for ac_header in string.h strings.h 18499do : 18500 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 18501ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 18502if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 18503 cat >>confdefs.h <<_ACEOF 18504#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 18505_ACEOF 18506 lo_have_str_hdr=true;break 18507else 18508 lo_have_str_hdr=false 18509fi 18510 18511done 18512 18513 18514 for ac_header in limits.h sys/limits.h values.h 18515do : 18516 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 18517ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 18518if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 18519 cat >>confdefs.h <<_ACEOF 18520#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 18521_ACEOF 18522 lo_have_lim_hdr=true;break 18523else 18524 lo_have_lim_hdr=false 18525fi 18526 18527done 18528 18529 18530 for ac_header in inttypes.h stdint.h 18531do : 18532 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 18533ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 18534if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 18535 cat >>confdefs.h <<_ACEOF 18536#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 18537_ACEOF 18538 lo_have_typ_hdr=true;break 18539else 18540 lo_have_typ_hdr=false 18541fi 18542 18543done 18544 18545 18546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stdnoreturn.h" >&5 18547$as_echo_n "checking for working stdnoreturn.h... " >&6; } 18548if ${gl_cv_header_working_stdnoreturn_h+:} false; then : 18549 $as_echo_n "(cached) " >&6 18550else 18551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18552/* end confdefs.h. */ 18553#include <stdlib.h> 18554 #include <stdnoreturn.h> 18555 /* Do not check for 'noreturn' after the return type. 18556 C11 allows it, but it's rarely done that way 18557 and circa-2012 bleeding-edge GCC rejects it when given 18558 -Werror=old-style-declaration. */ 18559 noreturn void foo1 (void) { exit (0); } 18560 _Noreturn void foo2 (void) { exit (0); } 18561 int testit (int argc, char **argv) { 18562 if (argc & 1) 18563 return 0; 18564 (argv[0][0] ? foo1 : foo2) (); 18565 } 18566 18567int 18568main () 18569{ 18570 18571 ; 18572 return 0; 18573} 18574_ACEOF 18575if ac_fn_c_try_compile "$LINENO"; then : 18576 gl_cv_header_working_stdnoreturn_h=yes 18577else 18578 gl_cv_header_working_stdnoreturn_h=no 18579fi 18580rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18581fi 18582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdnoreturn_h" >&5 18583$as_echo "$gl_cv_header_working_stdnoreturn_h" >&6; } 18584 18585 if test $gl_cv_header_working_stdnoreturn_h = yes; then 18586 STDNORETURN_H='' 18587 else 18588 STDNORETURN_H='stdnoreturn.h' 18589 fi 18590 18591 18592 if test -n "$STDNORETURN_H"; then 18593 GL_GENERATE_STDNORETURN_H_TRUE= 18594 GL_GENERATE_STDNORETURN_H_FALSE='#' 18595else 18596 GL_GENERATE_STDNORETURN_H_TRUE='#' 18597 GL_GENERATE_STDNORETURN_H_FALSE= 18598fi 18599 18600 18601 18602 # ---------------------------------------------------------------------- 18603 # check for various programs used during the build. 18604 # On OS/X, "wchar.h" needs "runetype.h" to work properly. 18605 # ---------------------------------------------------------------------- 18606 for ac_header in runetype.h wchar.h 18607do : 18608 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 18609ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" " 18610 $ac_includes_default 18611 #if HAVE_RUNETYPE_H 18612 # include <runetype.h> 18613 #endif 18614 18615" 18616if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 18617 cat >>confdefs.h <<_ACEOF 18618#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 18619_ACEOF 18620 18621fi 18622 18623done 18624 18625 18626 # Check whether --enable-nls was given. 18627if test "${enable_nls+set}" = set; then : 18628 enableval=$enable_nls; 18629fi 18630 18631 if test "x$enable_nls" != "xno" && \ 18632 test "X${ac_cv_header_libintl_h}" = Xyes; then : 18633 18634 18635$as_echo "#define ENABLE_NLS 1" >>confdefs.h 18636 18637fi 18638 18639 # -------------------------------------------- 18640 # Verify certain entries from AC_CHECK_HEADERS 18641 # -------------------------------------------- 18642 ${lo_have_arg_hdr} || \ 18643 as_fn_error $? "you must have stdarg.h or varargs.h on your system" "$LINENO" 5 18644 18645 ${lo_have_str_hdr} || \ 18646 as_fn_error $? "you must have string.h or strings.h on your system" "$LINENO" 5 18647 18648 ${lo_have_lim_hdr} || \ 18649 as_fn_error $? "you must have one of limits.h, sys/limits.h or values.h" "$LINENO" 5 18650 18651 ${lo_have_typ_hdr} || \ 18652 as_fn_error $? "you must have inttypes.h or stdint.h on your system" "$LINENO" 5 18653 18654 for f in sys_types sys_param sys_stat string errno stdlib memory setjmp 18655 do eval as_ac_var=\${ac_cv_header_${f}_h} 18656 test "X${as_ac_var}" = Xyes || { 18657 as_fn_error $? "you must have ${f}.h on your system" "$LINENO" 5 18658 } 18659 done 18660 test "X${ac_cv_header_inttypes_h-no}" = Xyes || \ 18661 echo '#include <stdint.h>' > inttypes.h 18662 18663 # ---------------------------------------------------------------------- 18664 # Checks for typedefs 18665 # ---------------------------------------------------------------------- 18666 ac_fn_c_check_type "$LINENO" "wchar_t" "ac_cv_type_wchar_t" "$ac_includes_default" 18667if test "x$ac_cv_type_wchar_t" = xyes; then : 18668 18669cat >>confdefs.h <<_ACEOF 18670#define HAVE_WCHAR_T 1 18671_ACEOF 18672 18673 18674fi 18675 18676 ac_fn_c_check_type "$LINENO" "wint_t" "ac_cv_type_wint_t" " 18677 $ac_includes_default 18678 #if HAVE_RUNETYPE_H 18679 # include <runetype.h> 18680 #endif 18681 #if HAVE_WCHAR_H 18682 # include <wchar.h> 18683 #endif 18684 18685" 18686if test "x$ac_cv_type_wint_t" = xyes; then : 18687 18688cat >>confdefs.h <<_ACEOF 18689#define HAVE_WINT_T 1 18690_ACEOF 18691 18692 18693fi 18694 18695 ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default" 18696if test "x$ac_cv_type_int8_t" = xyes; then : 18697 18698cat >>confdefs.h <<_ACEOF 18699#define HAVE_INT8_T 1 18700_ACEOF 18701 18702 18703fi 18704ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default" 18705if test "x$ac_cv_type_uint8_t" = xyes; then : 18706 18707cat >>confdefs.h <<_ACEOF 18708#define HAVE_UINT8_T 1 18709_ACEOF 18710 18711 18712fi 18713ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default" 18714if test "x$ac_cv_type_int16_t" = xyes; then : 18715 18716cat >>confdefs.h <<_ACEOF 18717#define HAVE_INT16_T 1 18718_ACEOF 18719 18720 18721fi 18722ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default" 18723if test "x$ac_cv_type_uint16_t" = xyes; then : 18724 18725cat >>confdefs.h <<_ACEOF 18726#define HAVE_UINT16_T 1 18727_ACEOF 18728 18729 18730fi 18731ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default" 18732if test "x$ac_cv_type_int32_t" = xyes; then : 18733 18734cat >>confdefs.h <<_ACEOF 18735#define HAVE_INT32_T 1 18736_ACEOF 18737 18738 18739fi 18740ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default" 18741if test "x$ac_cv_type_uint32_t" = xyes; then : 18742 18743cat >>confdefs.h <<_ACEOF 18744#define HAVE_UINT32_T 1 18745_ACEOF 18746 18747 18748fi 18749ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default" 18750if test "x$ac_cv_type_intptr_t" = xyes; then : 18751 18752cat >>confdefs.h <<_ACEOF 18753#define HAVE_INTPTR_T 1 18754_ACEOF 18755 18756 18757fi 18758ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default" 18759if test "x$ac_cv_type_uintptr_t" = xyes; then : 18760 18761cat >>confdefs.h <<_ACEOF 18762#define HAVE_UINTPTR_T 1 18763_ACEOF 18764 18765 18766fi 18767ac_fn_c_check_type "$LINENO" "uint_t" "ac_cv_type_uint_t" "$ac_includes_default" 18768if test "x$ac_cv_type_uint_t" = xyes; then : 18769 18770cat >>confdefs.h <<_ACEOF 18771#define HAVE_UINT_T 1 18772_ACEOF 18773 18774 18775fi 18776ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" 18777if test "x$ac_cv_type_pid_t" = xyes; then : 18778 18779cat >>confdefs.h <<_ACEOF 18780#define HAVE_PID_T 1 18781_ACEOF 18782 18783 18784fi 18785ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 18786if test "x$ac_cv_type_size_t" = xyes; then : 18787 18788cat >>confdefs.h <<_ACEOF 18789#define HAVE_SIZE_T 1 18790_ACEOF 18791 18792 18793fi 18794ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default" 18795if test "x$ac_cv_type_ptrdiff_t" = xyes; then : 18796 18797cat >>confdefs.h <<_ACEOF 18798#define HAVE_PTRDIFF_T 1 18799_ACEOF 18800 18801 18802fi 18803 18804 # The cast to long int works around a bug in the HP C Compiler 18805# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 18806# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 18807# This bug is HP SR number 8606223364. 18808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char*" >&5 18809$as_echo_n "checking size of char*... " >&6; } 18810if ${ac_cv_sizeof_charp+:} false; then : 18811 $as_echo_n "(cached) " >&6 18812else 18813 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char*))" "ac_cv_sizeof_charp" "$ac_includes_default"; then : 18814 18815else 18816 if test "$ac_cv_type_charp" = yes; then 18817 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18818$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18819as_fn_error 77 "cannot compute sizeof (char*) 18820See \`config.log' for more details" "$LINENO" 5; } 18821 else 18822 ac_cv_sizeof_charp=0 18823 fi 18824fi 18825 18826fi 18827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_charp" >&5 18828$as_echo "$ac_cv_sizeof_charp" >&6; } 18829 18830 18831 18832cat >>confdefs.h <<_ACEOF 18833#define SIZEOF_CHARP $ac_cv_sizeof_charp 18834_ACEOF 18835 18836 18837 # The cast to long int works around a bug in the HP C Compiler 18838# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 18839# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 18840# This bug is HP SR number 8606223364. 18841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 18842$as_echo_n "checking size of int... " >&6; } 18843if ${ac_cv_sizeof_int+:} false; then : 18844 $as_echo_n "(cached) " >&6 18845else 18846 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : 18847 18848else 18849 if test "$ac_cv_type_int" = yes; then 18850 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18851$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18852as_fn_error 77 "cannot compute sizeof (int) 18853See \`config.log' for more details" "$LINENO" 5; } 18854 else 18855 ac_cv_sizeof_int=0 18856 fi 18857fi 18858 18859fi 18860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 18861$as_echo "$ac_cv_sizeof_int" >&6; } 18862 18863 18864 18865cat >>confdefs.h <<_ACEOF 18866#define SIZEOF_INT $ac_cv_sizeof_int 18867_ACEOF 18868 18869 18870 # The cast to long int works around a bug in the HP C Compiler 18871# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 18872# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 18873# This bug is HP SR number 8606223364. 18874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 18875$as_echo_n "checking size of long... " >&6; } 18876if ${ac_cv_sizeof_long+:} false; then : 18877 $as_echo_n "(cached) " >&6 18878else 18879 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : 18880 18881else 18882 if test "$ac_cv_type_long" = yes; then 18883 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18884$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18885as_fn_error 77 "cannot compute sizeof (long) 18886See \`config.log' for more details" "$LINENO" 5; } 18887 else 18888 ac_cv_sizeof_long=0 18889 fi 18890fi 18891 18892fi 18893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 18894$as_echo "$ac_cv_sizeof_long" >&6; } 18895 18896 18897 18898cat >>confdefs.h <<_ACEOF 18899#define SIZEOF_LONG $ac_cv_sizeof_long 18900_ACEOF 18901 18902 18903 # The cast to long int works around a bug in the HP C Compiler 18904# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 18905# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 18906# This bug is HP SR number 8606223364. 18907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 18908$as_echo_n "checking size of short... " >&6; } 18909if ${ac_cv_sizeof_short+:} false; then : 18910 $as_echo_n "(cached) " >&6 18911else 18912 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then : 18913 18914else 18915 if test "$ac_cv_type_short" = yes; then 18916 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18917$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18918as_fn_error 77 "cannot compute sizeof (short) 18919See \`config.log' for more details" "$LINENO" 5; } 18920 else 18921 ac_cv_sizeof_short=0 18922 fi 18923fi 18924 18925fi 18926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 18927$as_echo "$ac_cv_sizeof_short" >&6; } 18928 18929 18930 18931cat >>confdefs.h <<_ACEOF 18932#define SIZEOF_SHORT $ac_cv_sizeof_short 18933_ACEOF 18934 18935 18936 18937 # ------------ 18938 # AC_CHECK_LIB 18939 # ------------ 18940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pathfind in -lgen" >&5 18941$as_echo_n "checking for pathfind in -lgen... " >&6; } 18942if ${ac_cv_lib_gen_pathfind+:} false; then : 18943 $as_echo_n "(cached) " >&6 18944else 18945 ac_check_lib_save_LIBS=$LIBS 18946LIBS="-lgen $LIBS" 18947cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18948/* end confdefs.h. */ 18949 18950/* Override any GCC internal prototype to avoid an error. 18951 Use char because int might match the return type of a GCC 18952 builtin and then its argument prototype would still apply. */ 18953#ifdef __cplusplus 18954extern "C" 18955#endif 18956char pathfind (); 18957int 18958main () 18959{ 18960return pathfind (); 18961 ; 18962 return 0; 18963} 18964_ACEOF 18965if ac_fn_c_try_link "$LINENO"; then : 18966 ac_cv_lib_gen_pathfind=yes 18967else 18968 ac_cv_lib_gen_pathfind=no 18969fi 18970rm -f core conftest.err conftest.$ac_objext \ 18971 conftest$ac_exeext conftest.$ac_ext 18972LIBS=$ac_check_lib_save_LIBS 18973fi 18974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_pathfind" >&5 18975$as_echo "$ac_cv_lib_gen_pathfind" >&6; } 18976if test "x$ac_cv_lib_gen_pathfind" = xyes; then : 18977 cat >>confdefs.h <<_ACEOF 18978#define HAVE_LIBGEN 1 18979_ACEOF 18980 18981 LIBS="-lgen $LIBS" 18982 18983fi 18984 18985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext in -lintl" >&5 18986$as_echo_n "checking for gettext in -lintl... " >&6; } 18987if ${ac_cv_lib_intl_gettext+:} false; then : 18988 $as_echo_n "(cached) " >&6 18989else 18990 ac_check_lib_save_LIBS=$LIBS 18991LIBS="-lintl $LIBS" 18992cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18993/* end confdefs.h. */ 18994 18995/* Override any GCC internal prototype to avoid an error. 18996 Use char because int might match the return type of a GCC 18997 builtin and then its argument prototype would still apply. */ 18998#ifdef __cplusplus 18999extern "C" 19000#endif 19001char gettext (); 19002int 19003main () 19004{ 19005return gettext (); 19006 ; 19007 return 0; 19008} 19009_ACEOF 19010if ac_fn_c_try_link "$LINENO"; then : 19011 ac_cv_lib_intl_gettext=yes 19012else 19013 ac_cv_lib_intl_gettext=no 19014fi 19015rm -f core conftest.err conftest.$ac_objext \ 19016 conftest$ac_exeext conftest.$ac_ext 19017LIBS=$ac_check_lib_save_LIBS 19018fi 19019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_gettext" >&5 19020$as_echo "$ac_cv_lib_intl_gettext" >&6; } 19021if test "x$ac_cv_lib_intl_gettext" = xyes; then : 19022 cat >>confdefs.h <<_ACEOF 19023#define HAVE_LIBINTL 1 19024_ACEOF 19025 19026 LIBS="-lintl $LIBS" 19027 19028fi 19029 19030 for ac_func in vprintf 19031do : 19032 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf" 19033if test "x$ac_cv_func_vprintf" = xyes; then : 19034 cat >>confdefs.h <<_ACEOF 19035#define HAVE_VPRINTF 1 19036_ACEOF 19037 19038ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt" 19039if test "x$ac_cv_func__doprnt" = xyes; then : 19040 19041$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h 19042 19043fi 19044 19045fi 19046done 19047 19048 19049 for ac_header in vfork.h 19050do : 19051 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default" 19052if test "x$ac_cv_header_vfork_h" = xyes; then : 19053 cat >>confdefs.h <<_ACEOF 19054#define HAVE_VFORK_H 1 19055_ACEOF 19056 19057fi 19058 19059done 19060 19061for ac_func in fork vfork 19062do : 19063 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 19064ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 19065if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 19066 cat >>confdefs.h <<_ACEOF 19067#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 19068_ACEOF 19069 19070fi 19071done 19072 19073if test "x$ac_cv_func_fork" = xyes; then 19074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5 19075$as_echo_n "checking for working fork... " >&6; } 19076if ${ac_cv_func_fork_works+:} false; then : 19077 $as_echo_n "(cached) " >&6 19078else 19079 if test "$cross_compiling" = yes; then : 19080 ac_cv_func_fork_works=cross 19081else 19082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19083/* end confdefs.h. */ 19084$ac_includes_default 19085int 19086main () 19087{ 19088 19089 /* By Ruediger Kuhlmann. */ 19090 return fork () < 0; 19091 19092 ; 19093 return 0; 19094} 19095_ACEOF 19096if ac_fn_c_try_run "$LINENO"; then : 19097 ac_cv_func_fork_works=yes 19098else 19099 ac_cv_func_fork_works=no 19100fi 19101rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 19102 conftest.$ac_objext conftest.beam conftest.$ac_ext 19103fi 19104 19105fi 19106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5 19107$as_echo "$ac_cv_func_fork_works" >&6; } 19108 19109else 19110 ac_cv_func_fork_works=$ac_cv_func_fork 19111fi 19112if test "x$ac_cv_func_fork_works" = xcross; then 19113 case $host in 19114 *-*-amigaos* | *-*-msdosdjgpp*) 19115 # Override, as these systems have only a dummy fork() stub 19116 ac_cv_func_fork_works=no 19117 ;; 19118 *) 19119 ac_cv_func_fork_works=yes 19120 ;; 19121 esac 19122 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 19123$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} 19124fi 19125ac_cv_func_vfork_works=$ac_cv_func_vfork 19126if test "x$ac_cv_func_vfork" = xyes; then 19127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5 19128$as_echo_n "checking for working vfork... " >&6; } 19129if ${ac_cv_func_vfork_works+:} false; then : 19130 $as_echo_n "(cached) " >&6 19131else 19132 if test "$cross_compiling" = yes; then : 19133 ac_cv_func_vfork_works=cross 19134else 19135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19136/* end confdefs.h. */ 19137/* Thanks to Paul Eggert for this test. */ 19138$ac_includes_default 19139#include <sys/wait.h> 19140#ifdef HAVE_VFORK_H 19141# include <vfork.h> 19142#endif 19143/* On some sparc systems, changes by the child to local and incoming 19144 argument registers are propagated back to the parent. The compiler 19145 is told about this with #include <vfork.h>, but some compilers 19146 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a 19147 static variable whose address is put into a register that is 19148 clobbered by the vfork. */ 19149static void 19150#ifdef __cplusplus 19151sparc_address_test (int arg) 19152# else 19153sparc_address_test (arg) int arg; 19154#endif 19155{ 19156 static pid_t child; 19157 if (!child) { 19158 child = vfork (); 19159 if (child < 0) { 19160 perror ("vfork"); 19161 _exit(2); 19162 } 19163 if (!child) { 19164 arg = getpid(); 19165 write(-1, "", 0); 19166 _exit (arg); 19167 } 19168 } 19169} 19170 19171int 19172main () 19173{ 19174 pid_t parent = getpid (); 19175 pid_t child; 19176 19177 sparc_address_test (0); 19178 19179 child = vfork (); 19180 19181 if (child == 0) { 19182 /* Here is another test for sparc vfork register problems. This 19183 test uses lots of local variables, at least as many local 19184 variables as main has allocated so far including compiler 19185 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris 19186 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should 19187 reuse the register of parent for one of the local variables, 19188 since it will think that parent can't possibly be used any more 19189 in this routine. Assigning to the local variable will thus 19190 munge parent in the parent process. */ 19191 pid_t 19192 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), 19193 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); 19194 /* Convince the compiler that p..p7 are live; otherwise, it might 19195 use the same hardware register for all 8 local variables. */ 19196 if (p != p1 || p != p2 || p != p3 || p != p4 19197 || p != p5 || p != p6 || p != p7) 19198 _exit(1); 19199 19200 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent 19201 from child file descriptors. If the child closes a descriptor 19202 before it execs or exits, this munges the parent's descriptor 19203 as well. Test for this by closing stdout in the child. */ 19204 _exit(close(fileno(stdout)) != 0); 19205 } else { 19206 int status; 19207 struct stat st; 19208 19209 while (wait(&status) != child) 19210 ; 19211 return ( 19212 /* Was there some problem with vforking? */ 19213 child < 0 19214 19215 /* Did the child fail? (This shouldn't happen.) */ 19216 || status 19217 19218 /* Did the vfork/compiler bug occur? */ 19219 || parent != getpid() 19220 19221 /* Did the file descriptor bug occur? */ 19222 || fstat(fileno(stdout), &st) != 0 19223 ); 19224 } 19225} 19226_ACEOF 19227if ac_fn_c_try_run "$LINENO"; then : 19228 ac_cv_func_vfork_works=yes 19229else 19230 ac_cv_func_vfork_works=no 19231fi 19232rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 19233 conftest.$ac_objext conftest.beam conftest.$ac_ext 19234fi 19235 19236fi 19237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5 19238$as_echo "$ac_cv_func_vfork_works" >&6; } 19239 19240fi; 19241if test "x$ac_cv_func_fork_works" = xcross; then 19242 ac_cv_func_vfork_works=$ac_cv_func_vfork 19243 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 19244$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} 19245fi 19246 19247if test "x$ac_cv_func_vfork_works" = xyes; then 19248 19249$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h 19250 19251else 19252 19253$as_echo "#define vfork fork" >>confdefs.h 19254 19255fi 19256if test "x$ac_cv_func_fork_works" = xyes; then 19257 19258$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h 19259 19260fi 19261 19262 for ac_func in mmap canonicalize_file_name snprintf strdup strchr \ 19263 strrchr strsignal fchmod fstat chmod 19264do : 19265 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 19266ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 19267if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 19268 cat >>confdefs.h <<_ACEOF 19269#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 19270_ACEOF 19271 19272fi 19273done 19274 19275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 19276$as_echo_n "checking for a sed that does not truncate output... " >&6; } 19277if ${ac_cv_path_SED+:} false; then : 19278 $as_echo_n "(cached) " >&6 19279else 19280 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 19281 for ac_i in 1 2 3 4 5 6 7; do 19282 ac_script="$ac_script$as_nl$ac_script" 19283 done 19284 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 19285 { ac_script=; unset ac_script;} 19286 if test -z "$SED"; then 19287 ac_path_SED_found=false 19288 # Loop through the user's path and test for each of PROGNAME-LIST 19289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19290for as_dir in $PATH 19291do 19292 IFS=$as_save_IFS 19293 test -z "$as_dir" && as_dir=. 19294 for ac_prog in sed gsed; do 19295 for ac_exec_ext in '' $ac_executable_extensions; do 19296 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 19297 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 19298# Check for GNU ac_path_SED and select it if it is found. 19299 # Check for GNU $ac_path_SED 19300case `"$ac_path_SED" --version 2>&1` in 19301*GNU*) 19302 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 19303*) 19304 ac_count=0 19305 $as_echo_n 0123456789 >"conftest.in" 19306 while : 19307 do 19308 cat "conftest.in" "conftest.in" >"conftest.tmp" 19309 mv "conftest.tmp" "conftest.in" 19310 cp "conftest.in" "conftest.nl" 19311 $as_echo '' >> "conftest.nl" 19312 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 19313 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 19314 as_fn_arith $ac_count + 1 && ac_count=$as_val 19315 if test $ac_count -gt ${ac_path_SED_max-0}; then 19316 # Best one so far, save it but keep looking for a better one 19317 ac_cv_path_SED="$ac_path_SED" 19318 ac_path_SED_max=$ac_count 19319 fi 19320 # 10*(2^10) chars as input seems more than enough 19321 test $ac_count -gt 10 && break 19322 done 19323 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 19324esac 19325 19326 $ac_path_SED_found && break 3 19327 done 19328 done 19329 done 19330IFS=$as_save_IFS 19331 if test -z "$ac_cv_path_SED"; then 19332 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 19333 fi 19334else 19335 ac_cv_path_SED=$SED 19336fi 19337 19338fi 19339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 19340$as_echo "$ac_cv_path_SED" >&6; } 19341 SED="$ac_cv_path_SED" 19342 rm -f conftest.sed 19343 19344 while : 19345 do 19346 POSIX_SHELL=`which bash` 19347 test -x "$POSIX_SHELL" && break 19348 POSIX_SHELL=`which dash` 19349 test -x "$POSIX_SHELL" && break 19350 POSIX_SHELL=/usr/xpg4/bin/sh 19351 test -x "$POSIX_SHELL" && break 19352 POSIX_SHELL=`/bin/sh -c ' 19353 exec 2>/dev/null 19354 if ! true ; then exit 1 ; fi 19355 echo /bin/sh'` 19356 test -x "$POSIX_SHELL" && break 19357 as_fn_error $? "cannot locate a working POSIX shell" "$LINENO" 5 19358 done 19359 19360cat >>confdefs.h <<_ACEOF 19361#define POSIX_SHELL "${POSIX_SHELL}" 19362_ACEOF 19363 19364 19365 19366 19367 19368 LIBOPTS_BUILD_BLOCKED=true 19369 19370 19371 NEED_LIBOPTS_DIR='' 19372 19373 # Check whether --enable-local-libopts was given. 19374if test "${enable_local_libopts+set}" = set; then : 19375 enableval=$enable_local_libopts; 19376 if test x$enableval = xyes ; then 19377 { $as_echo "$as_me:${as_lineno-$LINENO}: Using supplied libopts tearoff" >&5 19378$as_echo "$as_me: Using supplied libopts tearoff" >&6;} 19379 LIBOPTS_CFLAGS='-I$(top_srcdir)/sntp/libopts' 19380 NEED_LIBOPTS_DIR=true 19381 LIBOPTS_LDADD='$(top_builddir)/sntp/libopts/libopts.la' 19382 fi 19383fi 19384 19385 19386 # Check whether --enable-libopts-install was given. 19387if test "${enable_libopts_install+set}" = set; then : 19388 enableval=$enable_libopts_install; 19389fi 19390 19391 if test "X${enable_libopts_install}" = Xyes; then 19392 INSTALL_LIBOPTS_TRUE= 19393 INSTALL_LIBOPTS_FALSE='#' 19394else 19395 INSTALL_LIBOPTS_TRUE='#' 19396 INSTALL_LIBOPTS_FALSE= 19397fi 19398 19399 19400 if test -z "${NEED_LIBOPTS_DIR}" ; then 19401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether autoopts-config can be found" >&5 19402$as_echo_n "checking whether autoopts-config can be found... " >&6; } 19403 19404# Check whether --with-autoopts-config was given. 19405if test "${with_autoopts_config+set}" = set; then : 19406 withval=$with_autoopts_config; lo_cv_with_autoopts_config=${with_autoopts_config} 19407else 19408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether autoopts-config is specified" >&5 19409$as_echo_n "checking whether autoopts-config is specified... " >&6; } 19410if ${lo_cv_with_autoopts_config+:} false; then : 19411 $as_echo_n "(cached) " >&6 19412else 19413 if autoopts-config --help 2>/dev/null 1>&2 19414 then lo_cv_with_autoopts_config=autoopts-config 19415 elif libopts-config --help 2>/dev/null 1>&2 19416 then lo_cv_with_autoopts_config=libopts-config 19417 else lo_cv_with_autoopts_config=no ; fi 19418fi 19419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lo_cv_with_autoopts_config" >&5 19420$as_echo "$lo_cv_with_autoopts_config" >&6; } 19421 19422fi 19423 # end of AC_ARG_WITH 19424 19425 if ${lo_cv_test_autoopts+:} false; then : 19426 $as_echo_n "(cached) " >&6 19427else 19428 19429 if test -z "${lo_cv_with_autoopts_config}" \ 19430 -o X"${lo_cv_with_autoopts_config}" = Xno 19431 then 19432 if autoopts-config --help 2>/dev/null 1>&2 19433 then lo_cv_with_autoopts_config=autoopts-config 19434 elif libopts-config --help 2>/dev/null 1>&2 19435 then lo_cv_with_autoopts_config=libopts-config 19436 else lo_cv_with_autoopts_config=false ; fi 19437 fi 19438 lo_cv_test_autoopts=` 19439 ${lo_cv_with_autoopts_config} --libs` 2> /dev/null 19440 if test $? -ne 0 -o -z "${lo_cv_test_autoopts}" 19441 then lo_cv_test_autoopts=no ; fi 19442 19443fi 19444 # end of CACHE_VAL 19445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lo_cv_test_autoopts}" >&5 19446$as_echo "${lo_cv_test_autoopts}" >&6; } 19447 19448 if test "X${lo_cv_test_autoopts}" != Xno 19449 then 19450 LIBOPTS_LDADD="${lo_cv_test_autoopts}" 19451 LIBOPTS_CFLAGS="`${lo_cv_with_autoopts_config} --cflags`" 19452 else 19453 LIBOPTS_LDADD='$(top_builddir)/sntp/libopts/libopts.la' 19454 LIBOPTS_CFLAGS='-I$(top_srcdir)/sntp/libopts' 19455 NEED_LIBOPTS_DIR=true 19456 fi 19457 fi # end of if test -z "${NEED_LIBOPTS_DIR}" 19458 if test -n "${LIBOPTS_BUILD_BLOCKED}" ; then 19459 NEED_LIBOPTS_DIR='' 19460 fi 19461 if test -n "${NEED_LIBOPTS_DIR}"; then 19462 NEED_LIBOPTS_TRUE= 19463 NEED_LIBOPTS_FALSE='#' 19464else 19465 NEED_LIBOPTS_TRUE='#' 19466 NEED_LIBOPTS_FALSE= 19467fi 19468 19469 19470 19471 LIBOPTS_DIR=sntp/libopts 19472 19473 19474# end of AC_DEFUN of LIBOPTS_CHECK_COMMON 19475 19476 # end of AC_DEFUN of LIBOPTS_CHECK_NOBUILD 19477 19478 19479 19480 19481ntp_pkgconfig_min_version='0.15.0' 19482if test -n "$ac_tool_prefix"; then 19483 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 19484set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 19485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19486$as_echo_n "checking for $ac_word... " >&6; } 19487if ${ac_cv_path_PKG_CONFIG+:} false; then : 19488 $as_echo_n "(cached) " >&6 19489else 19490 case $PKG_CONFIG in 19491 [\\/]* | ?:[\\/]*) 19492 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 19493 ;; 19494 *) 19495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19496for as_dir in $PATH 19497do 19498 IFS=$as_save_IFS 19499 test -z "$as_dir" && as_dir=. 19500 for ac_exec_ext in '' $ac_executable_extensions; do 19501 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 19502 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 19503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19504 break 2 19505 fi 19506done 19507 done 19508IFS=$as_save_IFS 19509 19510 ;; 19511esac 19512fi 19513PKG_CONFIG=$ac_cv_path_PKG_CONFIG 19514if test -n "$PKG_CONFIG"; then 19515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 19516$as_echo "$PKG_CONFIG" >&6; } 19517else 19518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19519$as_echo "no" >&6; } 19520fi 19521 19522 19523fi 19524if test -z "$ac_cv_path_PKG_CONFIG"; then 19525 ac_pt_PKG_CONFIG=$PKG_CONFIG 19526 # Extract the first word of "pkg-config", so it can be a program name with args. 19527set dummy pkg-config; ac_word=$2 19528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19529$as_echo_n "checking for $ac_word... " >&6; } 19530if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 19531 $as_echo_n "(cached) " >&6 19532else 19533 case $ac_pt_PKG_CONFIG in 19534 [\\/]* | ?:[\\/]*) 19535 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 19536 ;; 19537 *) 19538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19539for as_dir in $PATH 19540do 19541 IFS=$as_save_IFS 19542 test -z "$as_dir" && as_dir=. 19543 for ac_exec_ext in '' $ac_executable_extensions; do 19544 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 19545 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 19546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19547 break 2 19548 fi 19549done 19550 done 19551IFS=$as_save_IFS 19552 19553 ;; 19554esac 19555fi 19556ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 19557if test -n "$ac_pt_PKG_CONFIG"; then 19558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 19559$as_echo "$ac_pt_PKG_CONFIG" >&6; } 19560else 19561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19562$as_echo "no" >&6; } 19563fi 19564 19565 if test "x$ac_pt_PKG_CONFIG" = x; then 19566 PKG_CONFIG="" 19567 else 19568 case $cross_compiling:$ac_tool_warned in 19569yes:) 19570{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 19571$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 19572ac_tool_warned=yes ;; 19573esac 19574 PKG_CONFIG=$ac_pt_PKG_CONFIG 19575 fi 19576else 19577 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 19578fi 19579 19580{ ac_cv_path_PKG_CONFIG=; unset ac_cv_path_PKG_CONFIG;} 19581{ ac_cv_path_ac_pt_PKG_CONFIG=; unset ac_cv_path_ac_pt_PKG_CONFIG;} 19582 19583case "$PKG_CONFIG" in 19584 /*) 19585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if pkg-config is at least version $ntp_pkgconfig_min_version" >&5 19586$as_echo_n "checking if pkg-config is at least version $ntp_pkgconfig_min_version... " >&6; } 19587 if $PKG_CONFIG --atleast-pkgconfig-version $ntp_pkgconfig_min_version; then 19588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19589$as_echo "yes" >&6; } 19590 else 19591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19592$as_echo "no" >&6; } 19593 PKG_CONFIG="" 19594 fi 19595 ;; 19596esac 19597 19598 19599 19600 19601# Check whether --enable-local-libevent was given. 19602if test "${enable_local_libevent+set}" = set; then : 19603 enableval=$enable_local_libevent; ntp_use_local_libevent=$enableval 19604else 19605 ntp_use_local_libevent=${ntp_use_local_libevent-detect} 19606 19607fi 19608 19609 19610 19611 19612 19613ntp_libevent_min_version=2 19614ntp_libevent_tearoff=sntp/libevent 19615 19616 19617 19618 19619case "$ntp_use_local_libevent" in 19620 yes) 19621 ;; 19622 *) # If we have (a good enough) pkg-config, see if it can find libevent 19623 case "$PKG_CONFIG" in 19624 /*) 19625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libevent $ntp_libevent_min_version or later is installed" >&5 19626$as_echo_n "checking if libevent $ntp_libevent_min_version or later is installed... " >&6; } 19627 if $PKG_CONFIG --atleast-version=$ntp_libevent_min_version libevent 19628 then 19629 ntp_use_local_libevent=no 19630 { $as_echo "$as_me:${as_lineno-$LINENO}: Using the installed libevent" >&5 19631$as_echo "$as_me: Using the installed libevent" >&6;} 19632 CPPFLAGS_LIBEVENT=`$PKG_CONFIG --cflags-only-I libevent` 19633 # HMS: I hope the following is accurate. 19634 # We don't need -levent, we only need -levent_core. 19635 # While we could grab only the -L stuff, there *might* be 19636 # other flags there we want. Originally we just removed -levent 19637 # but then somebody decided to install -levent-2.0 19638 # LDADD_LIBEVENT=`$PKG_CONFIG --libs libevent | sed 's:-levent::'` 19639 # So now we dance... 19640 LDADD_LIBEVENT= 19641 for i in `$PKG_CONFIG --libs libevent` 19642 do 19643 case "$i" in 19644 -levent*) ;; 19645 *) case "$LDADD_LIBEVENT" in 19646 '') LDADD_LIBEVENT="$i" ;; 19647 *) LDADD_LIBEVENT="$LDADD_LIBEVENT $i" ;; 19648 esac 19649 ;; 19650 esac 19651 done 19652 case "$LIBISC_PTHREADS_NOTHREADS" in 19653 pthreads) 19654 LDADD_LIBEVENT="$LDADD_LIBEVENT -levent_pthreads" 19655 esac 19656 LDADD_LIBEVENT="$LDADD_LIBEVENT -levent_core" 19657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19658$as_echo "yes" >&6; } 19659 else 19660 ntp_use_local_libevent=yes 19661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19662$as_echo "no" >&6; } 19663 fi 19664 ;; 19665 *) 19666 ntp_use_local_libevent=yes 19667 ;; 19668 esac 19669 ;; 19670esac 19671 19672case "$ntp_use_local_libevent" in 19673 yes) 19674 { $as_echo "$as_me:${as_lineno-$LINENO}: Using libevent tearoff" >&5 19675$as_echo "$as_me: Using libevent tearoff" >&6;} 19676 CPPFLAGS_LIBEVENT="-I\$(top_builddir)/$ntp_libevent_tearoff/include -I\$(top_srcdir)/$ntp_libevent_tearoff/include" 19677 case "$LIBISC_PTHREADS_NOTHREADS" in 19678 pthreads) 19679 LDADD_LIBEVENT="\$(top_builddir)/$ntp_libevent_tearoff/libevent_pthreads.la \$(top_builddir)/$ntp_libevent_tearoff/libevent_core.la" 19680 ;; 19681 *) 19682 LDADD_LIBEVENT="\$(top_builddir)/$ntp_libevent_tearoff/libevent_core.la" 19683 esac 19684esac 19685 19686 if test "x$ntp_use_local_libevent" = "xyes"; then 19687 BUILD_LIBEVENT_TRUE= 19688 BUILD_LIBEVENT_FALSE='#' 19689else 19690 BUILD_LIBEVENT_TRUE='#' 19691 BUILD_LIBEVENT_FALSE= 19692fi 19693 19694 19695 19696 19697 19698 19699# Expose a cross-compilation indicator to makefiles 19700 if test $build != $host; then 19701 NTP_CROSSCOMPILE_TRUE= 19702 NTP_CROSSCOMPILE_FALSE='#' 19703else 19704 NTP_CROSSCOMPILE_TRUE='#' 19705 NTP_CROSSCOMPILE_FALSE= 19706fi 19707 19708 19709 19710ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 19711if test "x$ac_cv_type_size_t" = xyes; then : 19712 19713else 19714 19715cat >>confdefs.h <<_ACEOF 19716#define size_t unsigned int 19717_ACEOF 19718 19719fi 19720 19721 19722 # Check whether --enable-c99-snprintf was given. 19723if test "${enable_c99_snprintf+set}" = set; then : 19724 enableval=$enable_c99_snprintf; force_c99_snprintf=$enableval 19725else 19726 force_c99_snprintf=no 19727 19728fi 19729 19730 case "$force_c99_snprintf" in 19731 yes) 19732 hw_force_rpl_snprintf=yes 19733 hw_force_rpl_vsnprintf=yes 19734 esac 19735 19736 19737 19738 19739 19740 19741 for ac_header in $ac_header_list 19742do : 19743 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 19744ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 19745" 19746if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 19747 cat >>confdefs.h <<_ACEOF 19748#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 19749_ACEOF 19750 19751fi 19752 19753done 19754 19755 19756 19757 19758 19759 19760 19761 ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf" 19762if test "x$ac_cv_func_vsnprintf" = xyes; then : 19763 hw_cv_func_vsnprintf=yes 19764else 19765 hw_cv_func_vsnprintf=no 19766fi 19767 19768 if test "$hw_cv_func_vsnprintf" = yes; then : 19769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vsnprintf is C99 compliant" >&5 19770$as_echo_n "checking whether vsnprintf is C99 compliant... " >&6; } 19771if ${hw_cv_func_vsnprintf_c99+:} false; then : 19772 $as_echo_n "(cached) " >&6 19773else 19774 if test "$cross_compiling" = yes; then : 19775 hw_cv_func_vsnprintf_c99=no 19776else 19777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19778/* end confdefs.h. */ 19779#if HAVE_STDARG_H 19780 #include <stdarg.h> 19781 #endif 19782 #include <stdio.h> 19783 static int testprintf(char *buf, size_t size, const char *format, ...) 19784 { 19785 int result; 19786 va_list ap; 19787 va_start(ap, format); 19788 result = vsnprintf(buf, size, format, ap); 19789 va_end(ap); 19790 return result; 19791 } 19792int 19793main () 19794{ 19795char buf[43]; 19796 if (testprintf(buf, 4, "The answer is %27.2g.", 42.0) != 42 || 19797 testprintf(buf, 0, "No, it's %32zu.", (size_t)42) != 42 || 19798 buf[0] != 'T' || buf[3] != '\0') 19799 return 1; 19800 ; 19801 return 0; 19802} 19803_ACEOF 19804if ac_fn_c_try_run "$LINENO"; then : 19805 hw_cv_func_vsnprintf_c99=yes 19806else 19807 hw_cv_func_vsnprintf_c99=no 19808fi 19809rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 19810 conftest.$ac_objext conftest.beam conftest.$ac_ext 19811fi 19812 19813fi 19814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_cv_func_vsnprintf_c99" >&5 19815$as_echo "$hw_cv_func_vsnprintf_c99" >&6; } 19816else 19817 hw_cv_func_vsnprintf_c99=no 19818fi 19819 19820$as_echo "#define HAVE_VSNPRINTF 1" >>confdefs.h 19821 19822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C99-snprintf replacement vsnprintf will be used" >&5 19823$as_echo_n "checking if C99-snprintf replacement vsnprintf will be used... " >&6; } 19824 if test "${hw_force_rpl_vsnprintf=no}" = yes -o "$hw_cv_func_vsnprintf_c99" = no; then : 19825 hw_use_rpl_vsnprintf=yes 19826else 19827 hw_use_rpl_vsnprintf=no 19828fi 19829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_use_rpl_vsnprintf" >&5 19830$as_echo "$hw_use_rpl_vsnprintf" >&6; } 19831 if test "$hw_use_rpl_vsnprintf" = yes; then : 19832 19833$as_echo "#define HW_WANT_RPL_VSNPRINTF 1" >>confdefs.h 19834 19835 if test ${hw_nodef_vsnprintf=no} = no; then : 19836 19837$as_echo "#define vsnprintf rpl_vsnprintf" >>confdefs.h 19838 19839fi 19840 for ac_header in inttypes.h locale.h stddef.h stdint.h 19841do : 19842 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 19843ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 19844if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 19845 cat >>confdefs.h <<_ACEOF 19846#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 19847_ACEOF 19848 19849fi 19850 19851done 19852 19853 ac_fn_c_check_member "$LINENO" "struct lconv" "decimal_point" "ac_cv_member_struct_lconv_decimal_point" "#include <locale.h> 19854" 19855if test "x$ac_cv_member_struct_lconv_decimal_point" = xyes; then : 19856 19857cat >>confdefs.h <<_ACEOF 19858#define HAVE_STRUCT_LCONV_DECIMAL_POINT 1 19859_ACEOF 19860 19861 19862fi 19863ac_fn_c_check_member "$LINENO" "struct lconv" "thousands_sep" "ac_cv_member_struct_lconv_thousands_sep" "#include <locale.h> 19864" 19865if test "x$ac_cv_member_struct_lconv_thousands_sep" = xyes; then : 19866 19867cat >>confdefs.h <<_ACEOF 19868#define HAVE_STRUCT_LCONV_THOUSANDS_SEP 1 19869_ACEOF 19870 19871 19872fi 19873 19874 19875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5 19876$as_echo_n "checking for long double... " >&6; } 19877if ${ac_cv_type_long_double+:} false; then : 19878 $as_echo_n "(cached) " >&6 19879else 19880 if test "$GCC" = yes; then 19881 ac_cv_type_long_double=yes 19882 else 19883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19884/* end confdefs.h. */ 19885/* The Stardent Vistra knows sizeof (long double), but does 19886 not support it. */ 19887 long double foo = 0.0L; 19888int 19889main () 19890{ 19891static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8. */ 19892 sizeof (double) <= sizeof (long double))]; 19893test_array [0] = 0 19894 19895 ; 19896 return 0; 19897} 19898_ACEOF 19899if ac_fn_c_try_compile "$LINENO"; then : 19900 ac_cv_type_long_double=yes 19901else 19902 ac_cv_type_long_double=no 19903fi 19904rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19905 fi 19906fi 19907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5 19908$as_echo "$ac_cv_type_long_double" >&6; } 19909 if test $ac_cv_type_long_double = yes; then 19910 19911$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h 19912 19913 fi 19914 19915 19916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5 19917$as_echo_n "checking for long long int... " >&6; } 19918if ${ac_cv_type_long_long_int+:} false; then : 19919 $as_echo_n "(cached) " >&6 19920else 19921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19922/* end confdefs.h. */ 19923 19924 /* For now, do not test the preprocessor; as of 2007 there are too many 19925 implementations with broken preprocessors. Perhaps this can 19926 be revisited in 2012. In the meantime, code should not expect 19927 #if to work with literals wider than 32 bits. */ 19928 /* Test literals. */ 19929 long long int ll = 9223372036854775807ll; 19930 long long int nll = -9223372036854775807LL; 19931 unsigned long long int ull = 18446744073709551615ULL; 19932 /* Test constant expressions. */ 19933 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll) 19934 ? 1 : -1)]; 19935 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1 19936 ? 1 : -1)]; 19937 int i = 63; 19938int 19939main () 19940{ 19941/* Test availability of runtime routines for shift and division. */ 19942 long long int llmax = 9223372036854775807ll; 19943 unsigned long long int ullmax = 18446744073709551615ull; 19944 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i) 19945 | (llmax / ll) | (llmax % ll) 19946 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i) 19947 | (ullmax / ull) | (ullmax % ull)); 19948 ; 19949 return 0; 19950} 19951 19952_ACEOF 19953if ac_fn_c_try_link "$LINENO"; then : 19954 if test "$cross_compiling" = yes; then : 19955 ac_cv_type_long_long_int=yes 19956else 19957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19958/* end confdefs.h. */ 19959#include <limits.h> 19960 #ifndef LLONG_MAX 19961 # define HALF \ 19962 (1LL << (sizeof (long long int) * CHAR_BIT - 2)) 19963 # define LLONG_MAX (HALF - 1 + HALF) 19964 #endif 19965int 19966main () 19967{ 19968long long int n = 1; 19969 int i; 19970 for (i = 0; ; i++) 19971 { 19972 long long int m = n << i; 19973 if (m >> i != n) 19974 return 1; 19975 if (LLONG_MAX / 2 < m) 19976 break; 19977 } 19978 return 0; 19979 ; 19980 return 0; 19981} 19982_ACEOF 19983if ac_fn_c_try_run "$LINENO"; then : 19984 ac_cv_type_long_long_int=yes 19985else 19986 ac_cv_type_long_long_int=no 19987fi 19988rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 19989 conftest.$ac_objext conftest.beam conftest.$ac_ext 19990fi 19991 19992else 19993 ac_cv_type_long_long_int=no 19994fi 19995rm -f core conftest.err conftest.$ac_objext \ 19996 conftest$ac_exeext conftest.$ac_ext 19997fi 19998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5 19999$as_echo "$ac_cv_type_long_long_int" >&6; } 20000 if test $ac_cv_type_long_long_int = yes; then 20001 20002$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h 20003 20004 fi 20005 20006 20007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5 20008$as_echo_n "checking for unsigned long long int... " >&6; } 20009if ${ac_cv_type_unsigned_long_long_int+:} false; then : 20010 $as_echo_n "(cached) " >&6 20011else 20012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20013/* end confdefs.h. */ 20014 20015 /* For now, do not test the preprocessor; as of 2007 there are too many 20016 implementations with broken preprocessors. Perhaps this can 20017 be revisited in 2012. In the meantime, code should not expect 20018 #if to work with literals wider than 32 bits. */ 20019 /* Test literals. */ 20020 long long int ll = 9223372036854775807ll; 20021 long long int nll = -9223372036854775807LL; 20022 unsigned long long int ull = 18446744073709551615ULL; 20023 /* Test constant expressions. */ 20024 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll) 20025 ? 1 : -1)]; 20026 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1 20027 ? 1 : -1)]; 20028 int i = 63; 20029int 20030main () 20031{ 20032/* Test availability of runtime routines for shift and division. */ 20033 long long int llmax = 9223372036854775807ll; 20034 unsigned long long int ullmax = 18446744073709551615ull; 20035 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i) 20036 | (llmax / ll) | (llmax % ll) 20037 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i) 20038 | (ullmax / ull) | (ullmax % ull)); 20039 ; 20040 return 0; 20041} 20042 20043_ACEOF 20044if ac_fn_c_try_link "$LINENO"; then : 20045 ac_cv_type_unsigned_long_long_int=yes 20046else 20047 ac_cv_type_unsigned_long_long_int=no 20048fi 20049rm -f core conftest.err conftest.$ac_objext \ 20050 conftest$ac_exeext conftest.$ac_ext 20051fi 20052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5 20053$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; } 20054 if test $ac_cv_type_unsigned_long_long_int = yes; then 20055 20056$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h 20057 20058 fi 20059 20060 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 20061if test "x$ac_cv_type_size_t" = xyes; then : 20062 20063else 20064 20065cat >>confdefs.h <<_ACEOF 20066#define size_t unsigned int 20067_ACEOF 20068 20069fi 20070 20071 20072 20073 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default" 20074if test "x$ac_cv_type_intmax_t" = xyes; then : 20075 20076$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h 20077 20078else 20079 test $ac_cv_type_long_long_int = yes \ 20080 && ac_type='long long int' \ 20081 || ac_type='long int' 20082 20083cat >>confdefs.h <<_ACEOF 20084#define intmax_t $ac_type 20085_ACEOF 20086 20087fi 20088 20089 20090 20091 20092 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default" 20093if test "x$ac_cv_type_uintmax_t" = xyes; then : 20094 20095$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h 20096 20097else 20098 test $ac_cv_type_unsigned_long_long_int = yes \ 20099 && ac_type='unsigned long long int' \ 20100 || ac_type='unsigned long int' 20101 20102cat >>confdefs.h <<_ACEOF 20103#define uintmax_t $ac_type 20104_ACEOF 20105 20106fi 20107 20108 20109 20110 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default" 20111if test "x$ac_cv_type_uintptr_t" = xyes; then : 20112 20113$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h 20114 20115else 20116 for ac_type in 'unsigned int' 'unsigned long int' \ 20117 'unsigned long long int'; do 20118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20119/* end confdefs.h. */ 20120$ac_includes_default 20121int 20122main () 20123{ 20124static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))]; 20125test_array [0] = 0 20126 20127 ; 20128 return 0; 20129} 20130_ACEOF 20131if ac_fn_c_try_compile "$LINENO"; then : 20132 20133cat >>confdefs.h <<_ACEOF 20134#define uintptr_t $ac_type 20135_ACEOF 20136 20137 ac_type= 20138fi 20139rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20140 test -z "$ac_type" && break 20141 done 20142fi 20143 20144 20145 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default" 20146if test "x$ac_cv_type_ptrdiff_t" = xyes; then : 20147 20148cat >>confdefs.h <<_ACEOF 20149#define HAVE_PTRDIFF_T 1 20150_ACEOF 20151 20152 20153fi 20154 20155 for ac_func in localeconv 20156do : 20157 ac_fn_c_check_func "$LINENO" "localeconv" "ac_cv_func_localeconv" 20158if test "x$ac_cv_func_localeconv" = xyes; then : 20159 cat >>confdefs.h <<_ACEOF 20160#define HAVE_LOCALECONV 1 20161_ACEOF 20162 20163fi 20164done 20165 20166 20167 if test "x$_hw_cv_func_xprintf_replace_done" != xyes; then : 20168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 20169$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 20170if ${ac_cv_c_const+:} false; then : 20171 $as_echo_n "(cached) " >&6 20172else 20173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20174/* end confdefs.h. */ 20175 20176int 20177main () 20178{ 20179/* FIXME: Include the comments suggested by Paul. */ 20180#ifndef __cplusplus 20181 /* Ultrix mips cc rejects this. */ 20182 typedef int charset[2]; 20183 const charset cs; 20184 /* SunOS 4.1.1 cc rejects this. */ 20185 char const *const *pcpcc; 20186 char **ppc; 20187 /* NEC SVR4.0.2 mips cc rejects this. */ 20188 struct point {int x, y;}; 20189 static struct point const zero = {0,0}; 20190 /* AIX XL C 1.02.0.0 rejects this. 20191 It does not let you subtract one const X* pointer from another in 20192 an arm of an if-expression whose if-part is not a constant 20193 expression */ 20194 const char *g = "string"; 20195 pcpcc = &g + (g ? g-g : 0); 20196 /* HPUX 7.0 cc rejects these. */ 20197 ++pcpcc; 20198 ppc = (char**) pcpcc; 20199 pcpcc = (char const *const *) ppc; 20200 { /* SCO 3.2v4 cc rejects this. */ 20201 char *t; 20202 char const *s = 0 ? (char *) 0 : (char const *) 0; 20203 20204 *t++ = 0; 20205 if (s) return 0; 20206 } 20207 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 20208 int x[] = {25, 17}; 20209 const int *foo = &x[0]; 20210 ++foo; 20211 } 20212 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 20213 typedef const int *iptr; 20214 iptr p = 0; 20215 ++p; 20216 } 20217 { /* AIX XL C 1.02.0.0 rejects this saying 20218 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 20219 struct s { int j; const int *ap[3]; }; 20220 struct s *b; b->j = 5; 20221 } 20222 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 20223 const int foo = 10; 20224 if (!foo) return 0; 20225 } 20226 return !cs[0] && !zero.x; 20227#endif 20228 20229 ; 20230 return 0; 20231} 20232_ACEOF 20233if ac_fn_c_try_compile "$LINENO"; then : 20234 ac_cv_c_const=yes 20235else 20236 ac_cv_c_const=no 20237fi 20238rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20239fi 20240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 20241$as_echo "$ac_cv_c_const" >&6; } 20242if test $ac_cv_c_const = no; then 20243 20244$as_echo "#define const /**/" >>confdefs.h 20245 20246fi 20247 20248 20249 20250 20251 case " $LIBOBJS " in 20252 *" snprintf.$ac_objext "* ) ;; 20253 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext" 20254 ;; 20255esac 20256 20257 _hw_cv_func_xprintf_replace_done=yes 20258fi 20259 20260fi 20261 20262 20263 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf" 20264if test "x$ac_cv_func_snprintf" = xyes; then : 20265 hw_cv_func_snprintf=yes 20266else 20267 hw_cv_func_snprintf=no 20268fi 20269 20270 if test "$hw_cv_func_snprintf" = yes; then : 20271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf is C99 compliant" >&5 20272$as_echo_n "checking whether snprintf is C99 compliant... " >&6; } 20273if ${hw_cv_func_snprintf_c99+:} false; then : 20274 $as_echo_n "(cached) " >&6 20275else 20276 if test "$cross_compiling" = yes; then : 20277 hw_cv_func_snprintf_c99=no 20278else 20279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20280/* end confdefs.h. */ 20281#include <stdio.h> 20282int 20283main () 20284{ 20285char buf[43]; 20286 if (snprintf(buf, 4, "The answer is %27.2g.", 42.0) != 42 || 20287 snprintf(buf, 0, "No, it's %32zu.", (size_t)42) != 42 || 20288 buf[0] != 'T' || buf[3] != '\0') 20289 return 1; 20290 ; 20291 return 0; 20292} 20293_ACEOF 20294if ac_fn_c_try_run "$LINENO"; then : 20295 hw_cv_func_snprintf_c99=yes 20296else 20297 hw_cv_func_snprintf_c99=no 20298fi 20299rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 20300 conftest.$ac_objext conftest.beam conftest.$ac_ext 20301fi 20302 20303fi 20304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_cv_func_snprintf_c99" >&5 20305$as_echo "$hw_cv_func_snprintf_c99" >&6; } 20306else 20307 hw_cv_func_snprintf_c99=no 20308fi 20309 20310$as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h 20311 20312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C99-snprintf replacement snprintf will be used" >&5 20313$as_echo_n "checking if C99-snprintf replacement snprintf will be used... " >&6; } 20314 if test "${hw_force_rpl_snprintf=no}" = yes -o "$hw_cv_func_snprintf_c99" = no; then : 20315 hw_use_rpl_snprintf=yes 20316else 20317 hw_use_rpl_snprintf=no 20318fi 20319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_use_rpl_snprintf" >&5 20320$as_echo "$hw_use_rpl_snprintf" >&6; } 20321 if test "$hw_use_rpl_snprintf" = yes; then : 20322 20323$as_echo "#define HW_WANT_RPL_SNPRINTF 1" >>confdefs.h 20324 20325 if test ${hw_nodef_snprintf=no} = no; then : 20326 20327$as_echo "#define snprintf rpl_snprintf" >>confdefs.h 20328 20329fi 20330 20331 if test "x$_hw_cv_func_xprintf_replace_done" != xyes; then : 20332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 20333$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 20334if ${ac_cv_c_const+:} false; then : 20335 $as_echo_n "(cached) " >&6 20336else 20337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20338/* end confdefs.h. */ 20339 20340int 20341main () 20342{ 20343/* FIXME: Include the comments suggested by Paul. */ 20344#ifndef __cplusplus 20345 /* Ultrix mips cc rejects this. */ 20346 typedef int charset[2]; 20347 const charset cs; 20348 /* SunOS 4.1.1 cc rejects this. */ 20349 char const *const *pcpcc; 20350 char **ppc; 20351 /* NEC SVR4.0.2 mips cc rejects this. */ 20352 struct point {int x, y;}; 20353 static struct point const zero = {0,0}; 20354 /* AIX XL C 1.02.0.0 rejects this. 20355 It does not let you subtract one const X* pointer from another in 20356 an arm of an if-expression whose if-part is not a constant 20357 expression */ 20358 const char *g = "string"; 20359 pcpcc = &g + (g ? g-g : 0); 20360 /* HPUX 7.0 cc rejects these. */ 20361 ++pcpcc; 20362 ppc = (char**) pcpcc; 20363 pcpcc = (char const *const *) ppc; 20364 { /* SCO 3.2v4 cc rejects this. */ 20365 char *t; 20366 char const *s = 0 ? (char *) 0 : (char const *) 0; 20367 20368 *t++ = 0; 20369 if (s) return 0; 20370 } 20371 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 20372 int x[] = {25, 17}; 20373 const int *foo = &x[0]; 20374 ++foo; 20375 } 20376 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 20377 typedef const int *iptr; 20378 iptr p = 0; 20379 ++p; 20380 } 20381 { /* AIX XL C 1.02.0.0 rejects this saying 20382 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 20383 struct s { int j; const int *ap[3]; }; 20384 struct s *b; b->j = 5; 20385 } 20386 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 20387 const int foo = 10; 20388 if (!foo) return 0; 20389 } 20390 return !cs[0] && !zero.x; 20391#endif 20392 20393 ; 20394 return 0; 20395} 20396_ACEOF 20397if ac_fn_c_try_compile "$LINENO"; then : 20398 ac_cv_c_const=yes 20399else 20400 ac_cv_c_const=no 20401fi 20402rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20403fi 20404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 20405$as_echo "$ac_cv_c_const" >&6; } 20406if test $ac_cv_c_const = no; then 20407 20408$as_echo "#define const /**/" >>confdefs.h 20409 20410fi 20411 20412 20413 20414 20415 case " $LIBOBJS " in 20416 *" snprintf.$ac_objext "* ) ;; 20417 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext" 20418 ;; 20419esac 20420 20421 _hw_cv_func_xprintf_replace_done=yes 20422fi 20423 20424fi 20425 20426 20427 20428 20429 20430# HMS: Save $LIBS and empty it. 20431# any LIBS we add here should go in to LDADD_LIBNTP 20432 20433__LIBS=$LIBS 20434LIBS= 20435 20436 20437 20438# [Bug 2332] because we need to know if we are using GNU ld... 20439 20440 20441# Check whether --with-gnu-ld was given. 20442if test "${with_gnu_ld+set}" = set; then : 20443 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 20444else 20445 with_gnu_ld=no 20446fi 20447 20448ac_prog=ld 20449if test "$GCC" = yes; then 20450 # Check if gcc -print-prog-name=ld gives a path. 20451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 20452$as_echo_n "checking for ld used by $CC... " >&6; } 20453 case $host in 20454 *-*-mingw*) 20455 # gcc leaves a trailing carriage return which upsets mingw 20456 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 20457 *) 20458 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 20459 esac 20460 case $ac_prog in 20461 # Accept absolute paths. 20462 [\\/]* | ?:[\\/]*) 20463 re_direlt='/[^/][^/]*/\.\./' 20464 # Canonicalize the pathname of ld 20465 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 20466 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 20467 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 20468 done 20469 test -z "$LD" && LD="$ac_prog" 20470 ;; 20471 "") 20472 # If it fails, then pretend we aren't using GCC. 20473 ac_prog=ld 20474 ;; 20475 *) 20476 # If it is relative, then search for the first ld in PATH. 20477 with_gnu_ld=unknown 20478 ;; 20479 esac 20480elif test "$with_gnu_ld" = yes; then 20481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 20482$as_echo_n "checking for GNU ld... " >&6; } 20483else 20484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 20485$as_echo_n "checking for non-GNU ld... " >&6; } 20486fi 20487if ${lt_cv_path_LD+:} false; then : 20488 $as_echo_n "(cached) " >&6 20489else 20490 if test -z "$LD"; then 20491 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 20492 for ac_dir in $PATH; do 20493 IFS="$lt_save_ifs" 20494 test -z "$ac_dir" && ac_dir=. 20495 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 20496 lt_cv_path_LD="$ac_dir/$ac_prog" 20497 # Check to see if the program is GNU ld. I'd rather use --version, 20498 # but apparently some variants of GNU ld only accept -v. 20499 # Break only if it was the GNU/non-GNU ld that we prefer. 20500 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 20501 *GNU* | *'with BFD'*) 20502 test "$with_gnu_ld" != no && break 20503 ;; 20504 *) 20505 test "$with_gnu_ld" != yes && break 20506 ;; 20507 esac 20508 fi 20509 done 20510 IFS="$lt_save_ifs" 20511else 20512 lt_cv_path_LD="$LD" # Let the user override the test with a path. 20513fi 20514fi 20515 20516LD="$lt_cv_path_LD" 20517if test -n "$LD"; then 20518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 20519$as_echo "$LD" >&6; } 20520else 20521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20522$as_echo "no" >&6; } 20523fi 20524test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 20525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 20526$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 20527if ${lt_cv_prog_gnu_ld+:} false; then : 20528 $as_echo_n "(cached) " >&6 20529else 20530 # I'd rather use --version here, but apparently some GNU lds only accept -v. 20531case `$LD -v 2>&1 </dev/null` in 20532*GNU* | *'with BFD'*) 20533 lt_cv_prog_gnu_ld=yes 20534 ;; 20535*) 20536 lt_cv_prog_gnu_ld=no 20537 ;; 20538esac 20539fi 20540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 20541$as_echo "$lt_cv_prog_gnu_ld" >&6; } 20542with_gnu_ld=$lt_cv_prog_gnu_ld 20543 20544 20545 20546 20547 20548 20549 20550 20551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for directory path separator" >&5 20552$as_echo_n "checking for directory path separator... " >&6; } 20553if ${ntp_cv_dir_sep+:} false; then : 20554 $as_echo_n "(cached) " >&6 20555else 20556 20557 case "$ntp_cv_dir_sep" in 20558 '') 20559 case "$host_os" in 20560 *djgpp | *mingw32* | *emx*) 20561 ntp_cv_dir_sep="'\\'" 20562 ;; 20563 *) 20564 ntp_cv_dir_sep="'/'" 20565 ;; 20566 esac 20567 esac 20568 20569 20570fi 20571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_dir_sep" >&5 20572$as_echo "$ntp_cv_dir_sep" >&6; } 20573 20574cat >>confdefs.h <<_ACEOF 20575#define DIR_SEP $ntp_cv_dir_sep 20576_ACEOF 20577 20578 20579 20580 NTP_ORIG_LIBS="$LIBS" 20581 20582# Check whether --with-lineeditlibs was given. 20583if test "${with_lineeditlibs+set}" = set; then : 20584 withval=$with_lineeditlibs; use_lineeditlibs="$withval" 20585else 20586 use_lineeditlibs="edit,editline" 20587 20588fi 20589 20590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking line editing libraries" >&5 20591$as_echo_n "checking line editing libraries... " >&6; } 20592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_lineeditlibs" >&5 20593$as_echo "$use_lineeditlibs" >&6; } 20594 case "$use_lineeditlibs" in 20595 no) 20596 ntp_lib_lineedit=no 20597 ;; 20598 *) 20599 for lineedit_lib in `echo $use_lineeditlibs | sed -e 's/,/ /'`; do 20600 for term_lib in "" termcap curses ncurses; do 20601 case "$term_lib" in 20602 '') 20603 TRY_LIB="-l$lineedit_lib" 20604 ;; 20605 *) 20606 TRY_LIB="-l$lineedit_lib -l$term_lib" 20607 ;; 20608 esac 20609 LIBS="$NTP_ORIG_LIBS $TRY_LIB" 20610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline() with $TRY_LIB" >&5 20611$as_echo_n "checking for readline() with $TRY_LIB... " >&6; } 20612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20613/* end confdefs.h. */ 20614 20615/* Override any GCC internal prototype to avoid an error. 20616 Use char because int might match the return type of a GCC 20617 builtin and then its argument prototype would still apply. */ 20618#ifdef __cplusplus 20619extern "C" 20620#endif 20621char readline (); 20622int 20623main () 20624{ 20625return readline (); 20626 ; 20627 return 0; 20628} 20629_ACEOF 20630if ac_fn_c_try_link "$LINENO"; then : 20631 ntp_lib_lineedit="$TRY_LIB" 20632fi 20633rm -f core conftest.err conftest.$ac_objext \ 20634 conftest$ac_exeext conftest.$ac_ext 20635 case "$ntp_lib_lineedit" in 20636 '') 20637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20638$as_echo "no" >&6; } 20639 ;; 20640 *) 20641 # Use readline() 20642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20643$as_echo "yes" >&6; } 20644 break 20645 esac 20646 case "$term_lib" in 20647 '') 20648 # do not try el_gets without a terminal library 20649 ;; 20650 *) 20651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for el_gets() with $TRY_LIB" >&5 20652$as_echo_n "checking for el_gets() with $TRY_LIB... " >&6; } 20653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20654/* end confdefs.h. */ 20655 20656/* Override any GCC internal prototype to avoid an error. 20657 Use char because int might match the return type of a GCC 20658 builtin and then its argument prototype would still apply. */ 20659#ifdef __cplusplus 20660extern "C" 20661#endif 20662char el_gets (); 20663int 20664main () 20665{ 20666return el_gets (); 20667 ; 20668 return 0; 20669} 20670_ACEOF 20671if ac_fn_c_try_link "$LINENO"; then : 20672 ntp_lib_lineedit="$TRY_LIB" 20673fi 20674rm -f core conftest.err conftest.$ac_objext \ 20675 conftest$ac_exeext conftest.$ac_ext 20676 case "$ntp_lib_lineedit" in 20677 '') 20678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20679$as_echo "no" >&6; } 20680 ;; 20681 *) # Use el_gets() 20682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20683$as_echo "yes" >&6; } 20684 break 20685 ;; 20686 esac # $ntp_lib_lineedit 20687 esac # $term_lib 20688 done 20689 case "$ntp_lib_lineedit" in 20690 '') 20691 ;; 20692 *) 20693 break 20694 ;; 20695 esac 20696 done 20697 LIBS="$NTP_ORIG_LIBS" 20698 ;; 20699 esac # $use_lineeditlibs 20700 20701 case "$ntp_lib_lineedit" in 20702 '') 20703 ntp_lib_lineedit="no" 20704 ;; 20705 no) 20706 ;; 20707 *) 20708 EDITLINE_LIBS="$ntp_lib_lineedit" 20709 20710 ;; 20711 esac # $ntp_lib_lineedit 20712 20713 case "$ntp_lib_lineedit" in 20714 no) 20715 ;; 20716 *) 20717 for ac_header in readline.h readline/readline.h histedit.h 20718do : 20719 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 20720ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 20721if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 20722 cat >>confdefs.h <<_ACEOF 20723#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 20724_ACEOF 20725 20726fi 20727 20728done 20729 20730 for ac_header in history.h readline/history.h 20731do : 20732 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 20733ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 20734if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 20735 cat >>confdefs.h <<_ACEOF 20736#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 20737_ACEOF 20738 20739fi 20740 20741done 20742 20743 20744 case "$ac_cv_header_histedit_h" in 20745 yes) 20746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of arguments to el_init()" >&5 20747$as_echo_n "checking number of arguments to el_init()... " >&6; } 20748if ${ntp_cv_el_init_args+:} false; then : 20749 $as_echo_n "(cached) " >&6 20750else 20751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20752/* end confdefs.h. */ 20753 20754 #include <stdio.h> 20755 #include <histedit.h> 20756 20757int 20758main () 20759{ 20760 20761 el_init("conftest", stdin, stdout, stderr); 20762 20763 20764 ; 20765 return 0; 20766} 20767_ACEOF 20768if ac_fn_c_try_compile "$LINENO"; then : 20769 ntp_cv_el_init_args=4 20770else 20771 ntp_cv_el_init_args=3 20772 20773fi 20774rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20775 20776fi 20777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_el_init_args" >&5 20778$as_echo "$ntp_cv_el_init_args" >&6; } 20779 20780cat >>confdefs.h <<_ACEOF 20781#define EL_INIT_ARGS $ntp_cv_el_init_args 20782_ACEOF 20783 20784 esac 20785 20786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5 20787$as_echo_n "checking whether readline supports history... " >&6; } 20788 20789 ntp_lib_lineedit_history="no" 20790 ORIG_LIBS="$LIBS" 20791 LIBS="$ORIG_LIBS $ntp_lib_lineedit" 20792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20793/* end confdefs.h. */ 20794 20795/* Override any GCC internal prototype to avoid an error. 20796 Use char because int might match the return type of a GCC 20797 builtin and then its argument prototype would still apply. */ 20798#ifdef __cplusplus 20799extern "C" 20800#endif 20801char add_history (); 20802int 20803main () 20804{ 20805return add_history (); 20806 ; 20807 return 0; 20808} 20809_ACEOF 20810if ac_fn_c_try_link "$LINENO"; then : 20811 ntp_lib_lineedit_history="yes" 20812fi 20813rm -f core conftest.err conftest.$ac_objext \ 20814 conftest$ac_exeext conftest.$ac_ext 20815 LIBS="$ORIG_LIBS" 20816 20817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_lib_lineedit_history" >&5 20818$as_echo "$ntp_lib_lineedit_history" >&6; } 20819 20820 case "$ntp_lib_lineedit_history" in 20821 yes) 20822 20823$as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h 20824 20825 esac 20826 esac # $ntp_lib_lineedit 20827 { NTP_ORIG_LIBS=; unset NTP_ORIG_LIBS;} 20828 { ORIG_LIBS=; unset ORIG_LIBS;} 20829 { TRY_LIB=; unset TRY_LIB;} 20830 { use_lineeditlibs=; unset use_lineeditlibs;} 20831 20832 20833LIBM= 20834case "$host" in 20835 *-*-darwin*) 20836 ;; 20837 *) 20838 _libs=$LIBS 20839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cos" >&5 20840$as_echo_n "checking for library containing cos... " >&6; } 20841if ${ac_cv_search_cos+:} false; then : 20842 $as_echo_n "(cached) " >&6 20843else 20844 ac_func_search_save_LIBS=$LIBS 20845cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20846/* end confdefs.h. */ 20847 20848/* Override any GCC internal prototype to avoid an error. 20849 Use char because int might match the return type of a GCC 20850 builtin and then its argument prototype would still apply. */ 20851#ifdef __cplusplus 20852extern "C" 20853#endif 20854char cos (); 20855int 20856main () 20857{ 20858return cos (); 20859 ; 20860 return 0; 20861} 20862_ACEOF 20863for ac_lib in '' m; do 20864 if test -z "$ac_lib"; then 20865 ac_res="none required" 20866 else 20867 ac_res=-l$ac_lib 20868 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 20869 fi 20870 if ac_fn_c_try_link "$LINENO"; then : 20871 ac_cv_search_cos=$ac_res 20872fi 20873rm -f core conftest.err conftest.$ac_objext \ 20874 conftest$ac_exeext 20875 if ${ac_cv_search_cos+:} false; then : 20876 break 20877fi 20878done 20879if ${ac_cv_search_cos+:} false; then : 20880 20881else 20882 ac_cv_search_cos=no 20883fi 20884rm conftest.$ac_ext 20885LIBS=$ac_func_search_save_LIBS 20886fi 20887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cos" >&5 20888$as_echo "$ac_cv_search_cos" >&6; } 20889ac_res=$ac_cv_search_cos 20890if test "$ac_res" != no; then : 20891 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 20892 LIBM="-lm" 20893fi 20894 20895 LIBS=$_libs 20896 ;; 20897esac 20898 20899{ _libs=; unset _libs;} 20900 20901 20902for ac_header in vfork.h 20903do : 20904 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default" 20905if test "x$ac_cv_header_vfork_h" = xyes; then : 20906 cat >>confdefs.h <<_ACEOF 20907#define HAVE_VFORK_H 1 20908_ACEOF 20909 20910fi 20911 20912done 20913 20914for ac_func in fork vfork 20915do : 20916 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 20917ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 20918if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 20919 cat >>confdefs.h <<_ACEOF 20920#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 20921_ACEOF 20922 20923fi 20924done 20925 20926if test "x$ac_cv_func_fork" = xyes; then 20927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5 20928$as_echo_n "checking for working fork... " >&6; } 20929if ${ac_cv_func_fork_works+:} false; then : 20930 $as_echo_n "(cached) " >&6 20931else 20932 if test "$cross_compiling" = yes; then : 20933 ac_cv_func_fork_works=cross 20934else 20935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20936/* end confdefs.h. */ 20937$ac_includes_default 20938int 20939main () 20940{ 20941 20942 /* By Ruediger Kuhlmann. */ 20943 return fork () < 0; 20944 20945 ; 20946 return 0; 20947} 20948_ACEOF 20949if ac_fn_c_try_run "$LINENO"; then : 20950 ac_cv_func_fork_works=yes 20951else 20952 ac_cv_func_fork_works=no 20953fi 20954rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 20955 conftest.$ac_objext conftest.beam conftest.$ac_ext 20956fi 20957 20958fi 20959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5 20960$as_echo "$ac_cv_func_fork_works" >&6; } 20961 20962else 20963 ac_cv_func_fork_works=$ac_cv_func_fork 20964fi 20965if test "x$ac_cv_func_fork_works" = xcross; then 20966 case $host in 20967 *-*-amigaos* | *-*-msdosdjgpp*) 20968 # Override, as these systems have only a dummy fork() stub 20969 ac_cv_func_fork_works=no 20970 ;; 20971 *) 20972 ac_cv_func_fork_works=yes 20973 ;; 20974 esac 20975 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 20976$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} 20977fi 20978ac_cv_func_vfork_works=$ac_cv_func_vfork 20979if test "x$ac_cv_func_vfork" = xyes; then 20980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5 20981$as_echo_n "checking for working vfork... " >&6; } 20982if ${ac_cv_func_vfork_works+:} false; then : 20983 $as_echo_n "(cached) " >&6 20984else 20985 if test "$cross_compiling" = yes; then : 20986 ac_cv_func_vfork_works=cross 20987else 20988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20989/* end confdefs.h. */ 20990/* Thanks to Paul Eggert for this test. */ 20991$ac_includes_default 20992#include <sys/wait.h> 20993#ifdef HAVE_VFORK_H 20994# include <vfork.h> 20995#endif 20996/* On some sparc systems, changes by the child to local and incoming 20997 argument registers are propagated back to the parent. The compiler 20998 is told about this with #include <vfork.h>, but some compilers 20999 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a 21000 static variable whose address is put into a register that is 21001 clobbered by the vfork. */ 21002static void 21003#ifdef __cplusplus 21004sparc_address_test (int arg) 21005# else 21006sparc_address_test (arg) int arg; 21007#endif 21008{ 21009 static pid_t child; 21010 if (!child) { 21011 child = vfork (); 21012 if (child < 0) { 21013 perror ("vfork"); 21014 _exit(2); 21015 } 21016 if (!child) { 21017 arg = getpid(); 21018 write(-1, "", 0); 21019 _exit (arg); 21020 } 21021 } 21022} 21023 21024int 21025main () 21026{ 21027 pid_t parent = getpid (); 21028 pid_t child; 21029 21030 sparc_address_test (0); 21031 21032 child = vfork (); 21033 21034 if (child == 0) { 21035 /* Here is another test for sparc vfork register problems. This 21036 test uses lots of local variables, at least as many local 21037 variables as main has allocated so far including compiler 21038 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris 21039 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should 21040 reuse the register of parent for one of the local variables, 21041 since it will think that parent can't possibly be used any more 21042 in this routine. Assigning to the local variable will thus 21043 munge parent in the parent process. */ 21044 pid_t 21045 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), 21046 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); 21047 /* Convince the compiler that p..p7 are live; otherwise, it might 21048 use the same hardware register for all 8 local variables. */ 21049 if (p != p1 || p != p2 || p != p3 || p != p4 21050 || p != p5 || p != p6 || p != p7) 21051 _exit(1); 21052 21053 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent 21054 from child file descriptors. If the child closes a descriptor 21055 before it execs or exits, this munges the parent's descriptor 21056 as well. Test for this by closing stdout in the child. */ 21057 _exit(close(fileno(stdout)) != 0); 21058 } else { 21059 int status; 21060 struct stat st; 21061 21062 while (wait(&status) != child) 21063 ; 21064 return ( 21065 /* Was there some problem with vforking? */ 21066 child < 0 21067 21068 /* Did the child fail? (This shouldn't happen.) */ 21069 || status 21070 21071 /* Did the vfork/compiler bug occur? */ 21072 || parent != getpid() 21073 21074 /* Did the file descriptor bug occur? */ 21075 || fstat(fileno(stdout), &st) != 0 21076 ); 21077 } 21078} 21079_ACEOF 21080if ac_fn_c_try_run "$LINENO"; then : 21081 ac_cv_func_vfork_works=yes 21082else 21083 ac_cv_func_vfork_works=no 21084fi 21085rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 21086 conftest.$ac_objext conftest.beam conftest.$ac_ext 21087fi 21088 21089fi 21090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5 21091$as_echo "$ac_cv_func_vfork_works" >&6; } 21092 21093fi; 21094if test "x$ac_cv_func_fork_works" = xcross; then 21095 ac_cv_func_vfork_works=$ac_cv_func_vfork 21096 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 21097$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} 21098fi 21099 21100if test "x$ac_cv_func_vfork_works" = xyes; then 21101 21102$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h 21103 21104else 21105 21106$as_echo "#define vfork fork" >>confdefs.h 21107 21108fi 21109if test "x$ac_cv_func_fork_works" = xyes; then 21110 21111$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h 21112 21113fi 21114 21115# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 21116# for constant arguments. Useless! 21117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 21118$as_echo_n "checking for working alloca.h... " >&6; } 21119if ${ac_cv_working_alloca_h+:} false; then : 21120 $as_echo_n "(cached) " >&6 21121else 21122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21123/* end confdefs.h. */ 21124#include <alloca.h> 21125int 21126main () 21127{ 21128char *p = (char *) alloca (2 * sizeof (int)); 21129 if (p) return 0; 21130 ; 21131 return 0; 21132} 21133_ACEOF 21134if ac_fn_c_try_link "$LINENO"; then : 21135 ac_cv_working_alloca_h=yes 21136else 21137 ac_cv_working_alloca_h=no 21138fi 21139rm -f core conftest.err conftest.$ac_objext \ 21140 conftest$ac_exeext conftest.$ac_ext 21141fi 21142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 21143$as_echo "$ac_cv_working_alloca_h" >&6; } 21144if test $ac_cv_working_alloca_h = yes; then 21145 21146$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h 21147 21148fi 21149 21150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 21151$as_echo_n "checking for alloca... " >&6; } 21152if ${ac_cv_func_alloca_works+:} false; then : 21153 $as_echo_n "(cached) " >&6 21154else 21155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21156/* end confdefs.h. */ 21157#ifdef __GNUC__ 21158# define alloca __builtin_alloca 21159#else 21160# ifdef _MSC_VER 21161# include <malloc.h> 21162# define alloca _alloca 21163# else 21164# ifdef HAVE_ALLOCA_H 21165# include <alloca.h> 21166# else 21167# ifdef _AIX 21168 #pragma alloca 21169# else 21170# ifndef alloca /* predefined by HP cc +Olibcalls */ 21171void *alloca (size_t); 21172# endif 21173# endif 21174# endif 21175# endif 21176#endif 21177 21178int 21179main () 21180{ 21181char *p = (char *) alloca (1); 21182 if (p) return 0; 21183 ; 21184 return 0; 21185} 21186_ACEOF 21187if ac_fn_c_try_link "$LINENO"; then : 21188 ac_cv_func_alloca_works=yes 21189else 21190 ac_cv_func_alloca_works=no 21191fi 21192rm -f core conftest.err conftest.$ac_objext \ 21193 conftest$ac_exeext conftest.$ac_ext 21194fi 21195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 21196$as_echo "$ac_cv_func_alloca_works" >&6; } 21197 21198if test $ac_cv_func_alloca_works = yes; then 21199 21200$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h 21201 21202else 21203 # The SVR3 libPW and SVR4 libucb both contain incompatible functions 21204# that cause trouble. Some versions do not even contain alloca or 21205# contain a buggy version. If you still want to use their alloca, 21206# use ar to extract alloca.o from them instead of compiling alloca.c. 21207 21208ALLOCA=\${LIBOBJDIR}alloca.$ac_objext 21209 21210$as_echo "#define C_ALLOCA 1" >>confdefs.h 21211 21212 21213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 21214$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } 21215if ${ac_cv_os_cray+:} false; then : 21216 $as_echo_n "(cached) " >&6 21217else 21218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21219/* end confdefs.h. */ 21220#if defined CRAY && ! defined CRAY2 21221webecray 21222#else 21223wenotbecray 21224#endif 21225 21226_ACEOF 21227if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 21228 $EGREP "webecray" >/dev/null 2>&1; then : 21229 ac_cv_os_cray=yes 21230else 21231 ac_cv_os_cray=no 21232fi 21233rm -f conftest* 21234 21235fi 21236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 21237$as_echo "$ac_cv_os_cray" >&6; } 21238if test $ac_cv_os_cray = yes; then 21239 for ac_func in _getb67 GETB67 getb67; do 21240 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 21241ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 21242if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 21243 21244cat >>confdefs.h <<_ACEOF 21245#define CRAY_STACKSEG_END $ac_func 21246_ACEOF 21247 21248 break 21249fi 21250 21251 done 21252fi 21253 21254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 21255$as_echo_n "checking stack direction for C alloca... " >&6; } 21256if ${ac_cv_c_stack_direction+:} false; then : 21257 $as_echo_n "(cached) " >&6 21258else 21259 if test "$cross_compiling" = yes; then : 21260 ac_cv_c_stack_direction=0 21261else 21262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21263/* end confdefs.h. */ 21264$ac_includes_default 21265int 21266find_stack_direction () 21267{ 21268 static char *addr = 0; 21269 auto char dummy; 21270 if (addr == 0) 21271 { 21272 addr = &dummy; 21273 return find_stack_direction (); 21274 } 21275 else 21276 return (&dummy > addr) ? 1 : -1; 21277} 21278 21279int 21280main () 21281{ 21282 return find_stack_direction () < 0; 21283} 21284_ACEOF 21285if ac_fn_c_try_run "$LINENO"; then : 21286 ac_cv_c_stack_direction=1 21287else 21288 ac_cv_c_stack_direction=-1 21289fi 21290rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 21291 conftest.$ac_objext conftest.beam conftest.$ac_ext 21292fi 21293 21294fi 21295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 21296$as_echo "$ac_cv_c_stack_direction" >&6; } 21297cat >>confdefs.h <<_ACEOF 21298#define STACK_DIRECTION $ac_cv_c_stack_direction 21299_ACEOF 21300 21301 21302fi 21303 21304ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default" 21305if test "x$ac_cv_have_decl_strerror_r" = xyes; then : 21306 ac_have_decl=1 21307else 21308 ac_have_decl=0 21309fi 21310 21311cat >>confdefs.h <<_ACEOF 21312#define HAVE_DECL_STRERROR_R $ac_have_decl 21313_ACEOF 21314 21315for ac_func in strerror_r 21316do : 21317 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r" 21318if test "x$ac_cv_func_strerror_r" = xyes; then : 21319 cat >>confdefs.h <<_ACEOF 21320#define HAVE_STRERROR_R 1 21321_ACEOF 21322 21323fi 21324done 21325 21326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5 21327$as_echo_n "checking whether strerror_r returns char *... " >&6; } 21328if ${ac_cv_func_strerror_r_char_p+:} false; then : 21329 $as_echo_n "(cached) " >&6 21330else 21331 21332 ac_cv_func_strerror_r_char_p=no 21333 if test $ac_cv_have_decl_strerror_r = yes; then 21334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21335/* end confdefs.h. */ 21336$ac_includes_default 21337int 21338main () 21339{ 21340 21341 char buf[100]; 21342 char x = *strerror_r (0, buf, sizeof buf); 21343 char *p = strerror_r (0, buf, sizeof buf); 21344 return !p || x; 21345 21346 ; 21347 return 0; 21348} 21349_ACEOF 21350if ac_fn_c_try_compile "$LINENO"; then : 21351 ac_cv_func_strerror_r_char_p=yes 21352fi 21353rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21354 else 21355 # strerror_r is not declared. Choose between 21356 # systems that have relatively inaccessible declarations for the 21357 # function. BeOS and DEC UNIX 4.0 fall in this category, but the 21358 # former has a strerror_r that returns char*, while the latter 21359 # has a strerror_r that returns `int'. 21360 # This test should segfault on the DEC system. 21361 if test "$cross_compiling" = yes; then : 21362 : 21363else 21364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21365/* end confdefs.h. */ 21366$ac_includes_default 21367 extern char *strerror_r (); 21368int 21369main () 21370{ 21371char buf[100]; 21372 char x = *strerror_r (0, buf, sizeof buf); 21373 return ! isalpha (x); 21374 ; 21375 return 0; 21376} 21377_ACEOF 21378if ac_fn_c_try_run "$LINENO"; then : 21379 ac_cv_func_strerror_r_char_p=yes 21380fi 21381rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 21382 conftest.$ac_objext conftest.beam conftest.$ac_ext 21383fi 21384 21385 fi 21386 21387fi 21388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5 21389$as_echo "$ac_cv_func_strerror_r_char_p" >&6; } 21390if test $ac_cv_func_strerror_r_char_p = yes; then 21391 21392$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h 21393 21394fi 21395 21396 21397ac_busted_vpath_in_make=no 21398case "$build" in 21399 *-*-irix6.1*) # 64 bit only 21400 # busted vpath? 21401 ;; 21402 *-*-irix6*) # 6.2 (and later?) 21403 ac_busted_vpath_in_make=yes 21404 ;; 21405 *-*-solaris2.5.1) 21406 ac_busted_vpath_in_make=yes 21407 ;; 21408 *-*-unicosmp*) 21409 ac_busted_vpath_in_make=yes 21410 ;; 21411esac 21412 21413case "$ac_busted_vpath_in_make$srcdir" in 21414 yes.|no*) 21415 ;; 21416 *) case "`${MAKE-make} -v -f /dev/null 2>/dev/null | grep 'GNU Make'`" in 21417 '') 21418 as_fn_error $? "building outside of the main directory requires GNU make" "$LINENO" 5 21419 esac 21420 ;; 21421esac 21422 21423case "$host" in 21424 *-*-aix4*) 21425 # Bug 2516: 21426 # Was *-*-aix[[4-9]]* 21427 # XXX only verified thru AIX6. But... 21428 # Ken Link says this is fine for AIX 5.3 and 7.1, and sees no reason 21429 # that this support would be in 5.3, removed in 6, and added back. 21430 # 21431 # (prr) aix 4.1 doesn't have clock_settime, but in aix 4.3 it's a stub 21432 # (returning ENOSYS). I didn't check 4.2. If, in the future, 21433 # IBM pulls its thumbs out long enough to implement clock_settime, 21434 # this conditional will need to change. Maybe use AC_TRY_RUN 21435 # instead to try to set the time to itself and check errno. 21436 ;; 21437 *) 21438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5 21439$as_echo_n "checking for library containing clock_gettime... " >&6; } 21440if ${ac_cv_search_clock_gettime+:} false; then : 21441 $as_echo_n "(cached) " >&6 21442else 21443 ac_func_search_save_LIBS=$LIBS 21444cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21445/* end confdefs.h. */ 21446 21447/* Override any GCC internal prototype to avoid an error. 21448 Use char because int might match the return type of a GCC 21449 builtin and then its argument prototype would still apply. */ 21450#ifdef __cplusplus 21451extern "C" 21452#endif 21453char clock_gettime (); 21454int 21455main () 21456{ 21457return clock_gettime (); 21458 ; 21459 return 0; 21460} 21461_ACEOF 21462for ac_lib in '' rt; do 21463 if test -z "$ac_lib"; then 21464 ac_res="none required" 21465 else 21466 ac_res=-l$ac_lib 21467 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 21468 fi 21469 if ac_fn_c_try_link "$LINENO"; then : 21470 ac_cv_search_clock_gettime=$ac_res 21471fi 21472rm -f core conftest.err conftest.$ac_objext \ 21473 conftest$ac_exeext 21474 if ${ac_cv_search_clock_gettime+:} false; then : 21475 break 21476fi 21477done 21478if ${ac_cv_search_clock_gettime+:} false; then : 21479 21480else 21481 ac_cv_search_clock_gettime=no 21482fi 21483rm conftest.$ac_ext 21484LIBS=$ac_func_search_save_LIBS 21485fi 21486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5 21487$as_echo "$ac_cv_search_clock_gettime" >&6; } 21488ac_res=$ac_cv_search_clock_gettime 21489if test "$ac_res" != no; then : 21490 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 21491 case "$ac_cv_search_clock_gettime" in 21492 'none required') ;; 21493 no) ;; 21494 *) LDADD_LIBNTP="$ac_cv_search_clock_gettime $LDADD_LIBNTP" ;; 21495 esac 21496 21497fi 21498 21499 for ac_func in clock_getres clock_gettime clock_settime 21500do : 21501 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 21502ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 21503if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 21504 cat >>confdefs.h <<_ACEOF 21505#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 21506_ACEOF 21507 21508fi 21509done 21510 21511 ;; 21512esac 21513 21514for ac_func in getclock stime timegm strlcpy strlcat 21515do : 21516 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 21517ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 21518if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 21519 cat >>confdefs.h <<_ACEOF 21520#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 21521_ACEOF 21522 21523fi 21524done 21525 21526 21527# Bug 2713 21528LDADD_LIBUTIL= 21529 21530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing snprintb" >&5 21531$as_echo_n "checking for library containing snprintb... " >&6; } 21532if ${ac_cv_search_snprintb+:} false; then : 21533 $as_echo_n "(cached) " >&6 21534else 21535 ac_func_search_save_LIBS=$LIBS 21536cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21537/* end confdefs.h. */ 21538 21539/* Override any GCC internal prototype to avoid an error. 21540 Use char because int might match the return type of a GCC 21541 builtin and then its argument prototype would still apply. */ 21542#ifdef __cplusplus 21543extern "C" 21544#endif 21545char snprintb (); 21546int 21547main () 21548{ 21549return snprintb (); 21550 ; 21551 return 0; 21552} 21553_ACEOF 21554for ac_lib in '' util; do 21555 if test -z "$ac_lib"; then 21556 ac_res="none required" 21557 else 21558 ac_res=-l$ac_lib 21559 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 21560 fi 21561 if ac_fn_c_try_link "$LINENO"; then : 21562 ac_cv_search_snprintb=$ac_res 21563fi 21564rm -f core conftest.err conftest.$ac_objext \ 21565 conftest$ac_exeext 21566 if ${ac_cv_search_snprintb+:} false; then : 21567 break 21568fi 21569done 21570if ${ac_cv_search_snprintb+:} false; then : 21571 21572else 21573 ac_cv_search_snprintb=no 21574fi 21575rm conftest.$ac_ext 21576LIBS=$ac_func_search_save_LIBS 21577fi 21578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_snprintb" >&5 21579$as_echo "$ac_cv_search_snprintb" >&6; } 21580ac_res=$ac_cv_search_snprintb 21581if test "$ac_res" != no; then : 21582 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 21583 case "$ac_cv_search_snprintb" in 21584 'none required') ;; 21585 no) ;; 21586 *) LDADD_LIBUTIL="$ac_cv_search_snprintb $LDADD_LIBUTIL" ;; 21587 esac 21588 21589$as_echo "#define USE_SNPRINTB 1" >>confdefs.h 21590 21591fi 21592 21593 21594# 21595for ac_header in errno.h sys/socket.h sys/types.h time.h 21596do : 21597 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 21598ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 21599if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 21600 cat >>confdefs.h <<_ACEOF 21601#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 21602_ACEOF 21603 21604fi 21605 21606done 21607 21608for ac_header in net/if.h 21609do : 21610 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" " 21611 #ifdef HAVE_SYS_SOCKET_H 21612 # include <sys/socket.h> 21613 #endif 21614 21615" 21616if test "x$ac_cv_header_net_if_h" = xyes; then : 21617 cat >>confdefs.h <<_ACEOF 21618#define HAVE_NET_IF_H 1 21619_ACEOF 21620 21621fi 21622 21623done 21624 21625case "$host" in 21626 *-hp-hpux*) 21627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if net/if.h requires mpinfou predeclaration" >&5 21628$as_echo_n "checking if net/if.h requires mpinfou predeclaration... " >&6; } 21629if ${ntp_cv_predecl_mpinfou+:} false; then : 21630 $as_echo_n "(cached) " >&6 21631else 21632 21633 np_cv_predecl_mpinfou=no 21634 case "$ac_cv_header_net_if_h" in 21635 no) 21636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21637/* end confdefs.h. */ 21638 21639 typedef union mpinfou { 21640 struct pdk_mpinfo *pdkptr; 21641 struct mpinfo *pikptr; 21642 } mpinfou_t; 21643 #ifdef HAVE_SYS_SOCKET_H 21644 # include <sys/socket.h> 21645 #endif 21646 #include <net/if.h> 21647 21648int 21649main () 21650{ 21651 21652 21653 21654 ; 21655 return 0; 21656} 21657_ACEOF 21658if ac_fn_c_try_compile "$LINENO"; then : 21659 21660 ntp_cv_predecl_mpinfou=yes 21661 ac_cv_header_net_if_h=yes 21662 21663 21664fi 21665rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21666 esac 21667 21668 21669fi 21670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_predecl_mpinfou" >&5 21671$as_echo "$ntp_cv_predecl_mpinfou" >&6; } 21672 case "$ntp_cv_predecl_mpinfou" in 21673 yes) 21674 cat >>confdefs.h <<_ACEOF 21675#ifndef MPINFOU_PREDECLARED 21676# define MPINFOU_PREDECLARED 21677typedef union mpinfou { 21678 struct pdk_mpinfo *pdkptr; 21679 struct mpinfo *pikptr; 21680} mpinfou_t; 21681#endif 21682_ACEOF 21683 21684 esac 21685esac 21686 21687case "$host" in 21688 *-linux*) 21689 for ac_header in linux/if_addr.h 21690do : 21691 ac_fn_c_check_header_compile "$LINENO" "linux/if_addr.h" "ac_cv_header_linux_if_addr_h" " 21692 #ifdef HAVE_SYS_SOCKET_H 21693 # include <sys/socket.h> 21694 #endif 21695 21696" 21697if test "x$ac_cv_header_linux_if_addr_h" = xyes; then : 21698 cat >>confdefs.h <<_ACEOF 21699#define HAVE_LINUX_IF_ADDR_H 1 21700_ACEOF 21701 21702fi 21703 21704done 21705 21706esac 21707 21708for ac_header in arpa/nameser.h sys/param.h sys/time.h sys/timers.h 21709do : 21710 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 21711ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 21712if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 21713 cat >>confdefs.h <<_ACEOF 21714#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 21715_ACEOF 21716 21717fi 21718 21719done 21720 21721# sys/sysctl.h depends on sys/param.h on OpenBSD - Bug 1576 21722for ac_header in sys/sysctl.h 21723do : 21724 ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" " 21725 #if defined HAVE_SYS_PARAM_H 21726 # include <sys/param.h> 21727 #endif 21728 21729" 21730if test "x$ac_cv_header_sys_sysctl_h" = xyes; then : 21731 cat >>confdefs.h <<_ACEOF 21732#define HAVE_SYS_SYSCTL_H 1 21733_ACEOF 21734 21735fi 21736 21737done 21738 21739for ac_header in netinet/in_system.h netinet/in_systm.h netinet/in.h 21740do : 21741 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 21742ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 21743if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 21744 cat >>confdefs.h <<_ACEOF 21745#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 21746_ACEOF 21747 21748fi 21749 21750done 21751 21752 21753for ac_header in resolv.h 21754do : 21755 ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" " 21756 #ifdef HAVE_SYS_TYPES_H 21757 # include <sys/types.h> 21758 #endif 21759 #ifdef HAVE_NETINET_IN_H 21760 # include <netinet/in.h> 21761 #endif 21762 #ifdef HAVE_ARPA_NAMESER_H 21763 # include <arpa/nameser.h> 21764 #endif 21765 21766" 21767if test "x$ac_cv_header_resolv_h" = xyes; then : 21768 cat >>confdefs.h <<_ACEOF 21769#define HAVE_RESOLV_H 1 21770_ACEOF 21771 21772fi 21773 21774done 21775 21776 21777for ac_header in net/if_var.h 21778do : 21779 ac_fn_c_check_header_compile "$LINENO" "net/if_var.h" "ac_cv_header_net_if_var_h" " 21780 #if HAVE_SYS_TYPES_H 21781 # include <sys/types.h> 21782 #endif 21783 #ifdef HAVE_SYS_SOCKET_H 21784 # include <sys/socket.h> 21785 #endif 21786 #ifdef HAVE_NETINET_IN_H 21787 # include <netinet/in.h> 21788 #endif 21789 #ifdef HAVE_NET_IF_H 21790 # include <net/if.h> 21791 #endif 21792 21793" 21794if test "x$ac_cv_header_net_if_var_h" = xyes; then : 21795 cat >>confdefs.h <<_ACEOF 21796#define HAVE_NET_IF_VAR_H 1 21797_ACEOF 21798 21799fi 21800 21801done 21802 21803 21804for ac_header in netinet/ip.h netinet/in_var.h 21805do : 21806 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 21807ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" " 21808 #ifdef HAVE_SYS_TYPES_H 21809 # include <sys/types.h> 21810 #endif 21811 #ifdef HAVE_SYS_SOCKET_H 21812 # include <sys/socket.h> 21813 #endif 21814 #ifdef HAVE_NET_IF_H 21815 # include <net/if.h> 21816 #endif 21817 #ifdef HAVE_NETINET_IN_H 21818 # include <netinet/in.h> 21819 #endif 21820 #ifdef HAVE_NET_IF_VAR_H 21821 # include <net/if_var.h> 21822 #endif 21823 #ifdef HAVE_NETINET_IN_SYSTM_H 21824 # include <netinet/in_systm.h> 21825 #endif 21826 21827" 21828if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 21829 cat >>confdefs.h <<_ACEOF 21830#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 21831_ACEOF 21832 21833fi 21834 21835done 21836 21837 21838# HMS: Do we need to check for -lsocket before or after these tests? 21839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_pton" >&5 21840$as_echo_n "checking for library containing inet_pton... " >&6; } 21841if ${ac_cv_search_inet_pton+:} false; then : 21842 $as_echo_n "(cached) " >&6 21843else 21844 ac_func_search_save_LIBS=$LIBS 21845cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21846/* end confdefs.h. */ 21847 21848/* Override any GCC internal prototype to avoid an error. 21849 Use char because int might match the return type of a GCC 21850 builtin and then its argument prototype would still apply. */ 21851#ifdef __cplusplus 21852extern "C" 21853#endif 21854char inet_pton (); 21855int 21856main () 21857{ 21858return inet_pton (); 21859 ; 21860 return 0; 21861} 21862_ACEOF 21863for ac_lib in '' nsl; do 21864 if test -z "$ac_lib"; then 21865 ac_res="none required" 21866 else 21867 ac_res=-l$ac_lib 21868 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 21869 fi 21870 if ac_fn_c_try_link "$LINENO"; then : 21871 ac_cv_search_inet_pton=$ac_res 21872fi 21873rm -f core conftest.err conftest.$ac_objext \ 21874 conftest$ac_exeext 21875 if ${ac_cv_search_inet_pton+:} false; then : 21876 break 21877fi 21878done 21879if ${ac_cv_search_inet_pton+:} false; then : 21880 21881else 21882 ac_cv_search_inet_pton=no 21883fi 21884rm conftest.$ac_ext 21885LIBS=$ac_func_search_save_LIBS 21886fi 21887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_pton" >&5 21888$as_echo "$ac_cv_search_inet_pton" >&6; } 21889ac_res=$ac_cv_search_inet_pton 21890if test "$ac_res" != no; then : 21891 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 21892 case "$ac_cv_search_inet_pton" in 21893 'none required') ;; 21894 no) ;; 21895 *) LDADD_LIBNTP="$ac_cv_search_inet_pton $LDADD_LIBNTP" ;; 21896 esac 21897 21898fi 21899 21900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntop" >&5 21901$as_echo_n "checking for library containing inet_ntop... " >&6; } 21902if ${ac_cv_search_inet_ntop+:} false; then : 21903 $as_echo_n "(cached) " >&6 21904else 21905 ac_func_search_save_LIBS=$LIBS 21906cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21907/* end confdefs.h. */ 21908 21909/* Override any GCC internal prototype to avoid an error. 21910 Use char because int might match the return type of a GCC 21911 builtin and then its argument prototype would still apply. */ 21912#ifdef __cplusplus 21913extern "C" 21914#endif 21915char inet_ntop (); 21916int 21917main () 21918{ 21919return inet_ntop (); 21920 ; 21921 return 0; 21922} 21923_ACEOF 21924for ac_lib in '' resolv; do 21925 if test -z "$ac_lib"; then 21926 ac_res="none required" 21927 else 21928 ac_res=-l$ac_lib 21929 LIBS="-l$ac_lib -lnsl $ac_func_search_save_LIBS" 21930 fi 21931 if ac_fn_c_try_link "$LINENO"; then : 21932 ac_cv_search_inet_ntop=$ac_res 21933fi 21934rm -f core conftest.err conftest.$ac_objext \ 21935 conftest$ac_exeext 21936 if ${ac_cv_search_inet_ntop+:} false; then : 21937 break 21938fi 21939done 21940if ${ac_cv_search_inet_ntop+:} false; then : 21941 21942else 21943 ac_cv_search_inet_ntop=no 21944fi 21945rm conftest.$ac_ext 21946LIBS=$ac_func_search_save_LIBS 21947fi 21948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntop" >&5 21949$as_echo "$ac_cv_search_inet_ntop" >&6; } 21950ac_res=$ac_cv_search_inet_ntop 21951if test "$ac_res" != no; then : 21952 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 21953 case "$ac_cv_search_inet_ntop" in 21954 'none required') ;; 21955 no) ;; 21956 *) LDADD_LIBNTP="$ac_cv_search_inet_ntop $LDADD_LIBNTP" ;; 21957 esac 21958 21959fi 21960 21961 21962# [Bug 1628] On Solaris, we need -lxnet -lsocket. Generalize this to 21963# avoid keying on the OS name: If we find socket functions in 21964# libsocket, next try for them in libxnet without libsocket, if found, 21965# list both. If we simply tested libxnet first, we would find the 21966# functions there and never add libsocket. See also [Bug 660] 21967# http://bugs.ntp.org/show_bug.cgi?id=660#c9 21968saved_LIBS=$LIBS 21969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setsockopt" >&5 21970$as_echo_n "checking for library containing setsockopt... " >&6; } 21971if ${ac_cv_search_setsockopt+:} false; then : 21972 $as_echo_n "(cached) " >&6 21973else 21974 ac_func_search_save_LIBS=$LIBS 21975cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21976/* end confdefs.h. */ 21977 21978/* Override any GCC internal prototype to avoid an error. 21979 Use char because int might match the return type of a GCC 21980 builtin and then its argument prototype would still apply. */ 21981#ifdef __cplusplus 21982extern "C" 21983#endif 21984char setsockopt (); 21985int 21986main () 21987{ 21988return setsockopt (); 21989 ; 21990 return 0; 21991} 21992_ACEOF 21993for ac_lib in '' socket; do 21994 if test -z "$ac_lib"; then 21995 ac_res="none required" 21996 else 21997 ac_res=-l$ac_lib 21998 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 21999 fi 22000 if ac_fn_c_try_link "$LINENO"; then : 22001 ac_cv_search_setsockopt=$ac_res 22002fi 22003rm -f core conftest.err conftest.$ac_objext \ 22004 conftest$ac_exeext 22005 if ${ac_cv_search_setsockopt+:} false; then : 22006 break 22007fi 22008done 22009if ${ac_cv_search_setsockopt+:} false; then : 22010 22011else 22012 ac_cv_search_setsockopt=no 22013fi 22014rm conftest.$ac_ext 22015LIBS=$ac_func_search_save_LIBS 22016fi 22017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setsockopt" >&5 22018$as_echo "$ac_cv_search_setsockopt" >&6; } 22019ac_res=$ac_cv_search_setsockopt 22020if test "$ac_res" != no; then : 22021 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 22022 case "$ac_cv_search_setsockopt" in 22023 'none required') ;; 22024 no) ;; 22025 *) LDADD_LIBNTP="$ac_cv_search_setsockopt $LDADD_LIBNTP" ;; 22026 esac 22027 22028fi 22029 22030case "$ac_cv_search_setsockopt" in 22031 -lsocket) 22032 LIBS="$saved_LIBS" 22033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getsockopt" >&5 22034$as_echo_n "checking for library containing getsockopt... " >&6; } 22035if ${ac_cv_search_getsockopt+:} false; then : 22036 $as_echo_n "(cached) " >&6 22037else 22038 ac_func_search_save_LIBS=$LIBS 22039cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22040/* end confdefs.h. */ 22041 22042/* Override any GCC internal prototype to avoid an error. 22043 Use char because int might match the return type of a GCC 22044 builtin and then its argument prototype would still apply. */ 22045#ifdef __cplusplus 22046extern "C" 22047#endif 22048char getsockopt (); 22049int 22050main () 22051{ 22052return getsockopt (); 22053 ; 22054 return 0; 22055} 22056_ACEOF 22057for ac_lib in '' xnet; do 22058 if test -z "$ac_lib"; then 22059 ac_res="none required" 22060 else 22061 ac_res=-l$ac_lib 22062 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 22063 fi 22064 if ac_fn_c_try_link "$LINENO"; then : 22065 ac_cv_search_getsockopt=$ac_res 22066fi 22067rm -f core conftest.err conftest.$ac_objext \ 22068 conftest$ac_exeext 22069 if ${ac_cv_search_getsockopt+:} false; then : 22070 break 22071fi 22072done 22073if ${ac_cv_search_getsockopt+:} false; then : 22074 22075else 22076 ac_cv_search_getsockopt=no 22077fi 22078rm conftest.$ac_ext 22079LIBS=$ac_func_search_save_LIBS 22080fi 22081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getsockopt" >&5 22082$as_echo "$ac_cv_search_getsockopt" >&6; } 22083ac_res=$ac_cv_search_getsockopt 22084if test "$ac_res" != no; then : 22085 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 22086 case "$ac_cv_search_getsockopt" in 22087 'none required') ;; 22088 no) ;; 22089 *) LDADD_LIBNTP="$ac_cv_search_getsockopt $LDADD_LIBNTP" ;; 22090 esac 22091 22092fi 22093 22094 # XXX Possible trouble here - reading the comments above and looking at the 22095 # code below I wonder if we'll add -lxnet when we don't need it. 22096 # Also, do we need to add -lxnet to LDADD_LIBNTP, or perhaps see if it's 22097 # there when it is not needed? 22098 case "$ac_cv_search_getsockopt" in 22099 -lxnet) 22100 LIBS="-lxnet -lsocket $saved_LIBS" 22101 ;; 22102 *) LIBS="-lsocket $saved_LIBS" 22103 ;; 22104 esac 22105 ;; 22106esac 22107{ saved_LIBS=; unset saved_LIBS;} 22108 22109# Bug 2427 - look for recvmsg here. 22110for ac_func in recvmsg 22111do : 22112 ac_fn_c_check_func "$LINENO" "recvmsg" "ac_cv_func_recvmsg" 22113if test "x$ac_cv_func_recvmsg" = xyes; then : 22114 cat >>confdefs.h <<_ACEOF 22115#define HAVE_RECVMSG 1 22116_ACEOF 22117 22118fi 22119done 22120 22121 22122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 22123$as_echo_n "checking for inline... " >&6; } 22124if ${ac_cv_c_inline+:} false; then : 22125 $as_echo_n "(cached) " >&6 22126else 22127 ac_cv_c_inline=no 22128for ac_kw in inline __inline__ __inline; do 22129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22130/* end confdefs.h. */ 22131#ifndef __cplusplus 22132typedef int foo_t; 22133static $ac_kw foo_t static_foo () {return 0; } 22134$ac_kw foo_t foo () {return 0; } 22135#endif 22136 22137_ACEOF 22138if ac_fn_c_try_compile "$LINENO"; then : 22139 ac_cv_c_inline=$ac_kw 22140fi 22141rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22142 test "$ac_cv_c_inline" != no && break 22143done 22144 22145fi 22146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 22147$as_echo "$ac_cv_c_inline" >&6; } 22148 22149case $ac_cv_c_inline in 22150 inline | yes) ;; 22151 *) 22152 case $ac_cv_c_inline in 22153 no) ac_val=;; 22154 *) ac_val=$ac_cv_c_inline;; 22155 esac 22156 cat >>confdefs.h <<_ACEOF 22157#ifndef __cplusplus 22158#define inline $ac_val 22159#endif 22160_ACEOF 22161 ;; 22162esac 22163 22164 22165case "$ac_cv_c_inline" in 22166 '') 22167 ;; 22168 *) 22169 22170$as_echo "#define HAVE_INLINE 1" >>confdefs.h 22171 22172 22173esac 22174 22175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 22176$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } 22177if ${ac_cv_header_time+:} false; then : 22178 $as_echo_n "(cached) " >&6 22179else 22180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22181/* end confdefs.h. */ 22182#include <sys/types.h> 22183#include <sys/time.h> 22184#include <time.h> 22185 22186int 22187main () 22188{ 22189if ((struct tm *) 0) 22190return 0; 22191 ; 22192 return 0; 22193} 22194_ACEOF 22195if ac_fn_c_try_compile "$LINENO"; then : 22196 ac_cv_header_time=yes 22197else 22198 ac_cv_header_time=no 22199fi 22200rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22201fi 22202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 22203$as_echo "$ac_cv_header_time" >&6; } 22204if test $ac_cv_header_time = yes; then 22205 22206$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h 22207 22208fi 22209 22210# The cast to long int works around a bug in the HP C Compiler 22211# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 22212# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 22213# This bug is HP SR number 8606223364. 22214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5 22215$as_echo_n "checking size of time_t... " >&6; } 22216if ${ac_cv_sizeof_time_t+:} false; then : 22217 $as_echo_n "(cached) " >&6 22218else 22219 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "$ac_includes_default"; then : 22220 22221else 22222 if test "$ac_cv_type_time_t" = yes; then 22223 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 22224$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 22225as_fn_error 77 "cannot compute sizeof (time_t) 22226See \`config.log' for more details" "$LINENO" 5; } 22227 else 22228 ac_cv_sizeof_time_t=0 22229 fi 22230fi 22231 22232fi 22233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5 22234$as_echo "$ac_cv_sizeof_time_t" >&6; } 22235 22236 22237 22238cat >>confdefs.h <<_ACEOF 22239#define SIZEOF_TIME_T $ac_cv_sizeof_time_t 22240_ACEOF 22241 22242 22243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5 22244$as_echo_n "checking whether char is unsigned... " >&6; } 22245if ${ac_cv_c_char_unsigned+:} false; then : 22246 $as_echo_n "(cached) " >&6 22247else 22248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22249/* end confdefs.h. */ 22250$ac_includes_default 22251int 22252main () 22253{ 22254static int test_array [1 - 2 * !(((char) -1) < 0)]; 22255test_array [0] = 0 22256 22257 ; 22258 return 0; 22259} 22260_ACEOF 22261if ac_fn_c_try_compile "$LINENO"; then : 22262 ac_cv_c_char_unsigned=no 22263else 22264 ac_cv_c_char_unsigned=yes 22265fi 22266rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22267fi 22268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5 22269$as_echo "$ac_cv_c_char_unsigned" >&6; } 22270if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then 22271 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h 22272 22273fi 22274 # The cast to long int works around a bug in the HP C Compiler 22275# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 22276# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 22277# This bug is HP SR number 8606223364. 22278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed char" >&5 22279$as_echo_n "checking size of signed char... " >&6; } 22280if ${ac_cv_sizeof_signed_char+:} false; then : 22281 $as_echo_n "(cached) " >&6 22282else 22283 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed char))" "ac_cv_sizeof_signed_char" "$ac_includes_default"; then : 22284 22285else 22286 if test "$ac_cv_type_signed_char" = yes; then 22287 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 22288$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 22289as_fn_error 77 "cannot compute sizeof (signed char) 22290See \`config.log' for more details" "$LINENO" 5; } 22291 else 22292 ac_cv_sizeof_signed_char=0 22293 fi 22294fi 22295 22296fi 22297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_char" >&5 22298$as_echo "$ac_cv_sizeof_signed_char" >&6; } 22299 22300 22301 22302cat >>confdefs.h <<_ACEOF 22303#define SIZEOF_SIGNED_CHAR $ac_cv_sizeof_signed_char 22304_ACEOF 22305 22306 22307ac_fn_c_check_type "$LINENO" "s_char" "ac_cv_type_s_char" "$ac_includes_default" 22308if test "x$ac_cv_type_s_char" = xyes; then : 22309 22310cat >>confdefs.h <<_ACEOF 22311#define HAVE_S_CHAR 1 22312_ACEOF 22313 22314 22315fi 22316ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default" 22317if test "x$ac_cv_type_long_long" = xyes; then : 22318 22319cat >>confdefs.h <<_ACEOF 22320#define HAVE_LONG_LONG 1 22321_ACEOF 22322 22323 22324fi 22325 22326# The cast to long int works around a bug in the HP C Compiler 22327# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 22328# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 22329# This bug is HP SR number 8606223364. 22330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 22331$as_echo_n "checking size of short... " >&6; } 22332if ${ac_cv_sizeof_short+:} false; then : 22333 $as_echo_n "(cached) " >&6 22334else 22335 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then : 22336 22337else 22338 if test "$ac_cv_type_short" = yes; then 22339 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 22340$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 22341as_fn_error 77 "cannot compute sizeof (short) 22342See \`config.log' for more details" "$LINENO" 5; } 22343 else 22344 ac_cv_sizeof_short=0 22345 fi 22346fi 22347 22348fi 22349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 22350$as_echo "$ac_cv_sizeof_short" >&6; } 22351 22352 22353 22354cat >>confdefs.h <<_ACEOF 22355#define SIZEOF_SHORT $ac_cv_sizeof_short 22356_ACEOF 22357 22358 22359# The cast to long int works around a bug in the HP C Compiler 22360# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 22361# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 22362# This bug is HP SR number 8606223364. 22363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 22364$as_echo_n "checking size of int... " >&6; } 22365if ${ac_cv_sizeof_int+:} false; then : 22366 $as_echo_n "(cached) " >&6 22367else 22368 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : 22369 22370else 22371 if test "$ac_cv_type_int" = yes; then 22372 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 22373$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 22374as_fn_error 77 "cannot compute sizeof (int) 22375See \`config.log' for more details" "$LINENO" 5; } 22376 else 22377 ac_cv_sizeof_int=0 22378 fi 22379fi 22380 22381fi 22382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 22383$as_echo "$ac_cv_sizeof_int" >&6; } 22384 22385 22386 22387cat >>confdefs.h <<_ACEOF 22388#define SIZEOF_INT $ac_cv_sizeof_int 22389_ACEOF 22390 22391 22392# The cast to long int works around a bug in the HP C Compiler 22393# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 22394# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 22395# This bug is HP SR number 8606223364. 22396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 22397$as_echo_n "checking size of long... " >&6; } 22398if ${ac_cv_sizeof_long+:} false; then : 22399 $as_echo_n "(cached) " >&6 22400else 22401 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : 22402 22403else 22404 if test "$ac_cv_type_long" = yes; then 22405 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 22406$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 22407as_fn_error 77 "cannot compute sizeof (long) 22408See \`config.log' for more details" "$LINENO" 5; } 22409 else 22410 ac_cv_sizeof_long=0 22411 fi 22412fi 22413 22414fi 22415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 22416$as_echo "$ac_cv_sizeof_long" >&6; } 22417 22418 22419 22420cat >>confdefs.h <<_ACEOF 22421#define SIZEOF_LONG $ac_cv_sizeof_long 22422_ACEOF 22423 22424 22425 22426case "$ac_cv_type_long_long" in 22427 no) 22428 ;; 22429 *) 22430 # The cast to long int works around a bug in the HP C Compiler 22431# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 22432# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 22433# This bug is HP SR number 8606223364. 22434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 22435$as_echo_n "checking size of long long... " >&6; } 22436if ${ac_cv_sizeof_long_long+:} false; then : 22437 $as_echo_n "(cached) " >&6 22438else 22439 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then : 22440 22441else 22442 if test "$ac_cv_type_long_long" = yes; then 22443 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 22444$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 22445as_fn_error 77 "cannot compute sizeof (long long) 22446See \`config.log' for more details" "$LINENO" 5; } 22447 else 22448 ac_cv_sizeof_long_long=0 22449 fi 22450fi 22451 22452fi 22453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 22454$as_echo "$ac_cv_sizeof_long_long" >&6; } 22455 22456 22457 22458cat >>confdefs.h <<_ACEOF 22459#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long 22460_ACEOF 22461 22462 22463 ;; 22464esac 22465 22466case "$ac_cv_c_char_unsigned$ac_cv_sizeof_signed_char$ac_cv_type_s_char" in 22467 *yes) 22468 # We have a typedef for s_char. Might as well believe it... 22469 ;; 22470 no0no) 22471 # We have signed chars, can't say 'signed char', no s_char typedef. 22472 22473$as_echo "#define NEED_S_CHAR_TYPEDEF 1" >>confdefs.h 22474 22475 ;; 22476 no1no) 22477 # We have signed chars, can say 'signed char', no s_char typedef. 22478 22479$as_echo "#define NEED_S_CHAR_TYPEDEF 1" >>confdefs.h 22480 22481 ;; 22482 yes0no) 22483 # We have unsigned chars, can't say 'signed char', no s_char typedef. 22484 as_fn_error $? "No way to specify a signed character!" "$LINENO" 5 22485 ;; 22486 yes1no) 22487 # We have unsigned chars, can say 'signed char', no s_char typedef. 22488 22489$as_echo "#define NEED_S_CHAR_TYPEDEF 1" >>confdefs.h 22490 22491 ;; 22492esac 22493 22494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 22495$as_echo_n "checking for uid_t in sys/types.h... " >&6; } 22496if ${ac_cv_type_uid_t+:} false; then : 22497 $as_echo_n "(cached) " >&6 22498else 22499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22500/* end confdefs.h. */ 22501#include <sys/types.h> 22502 22503_ACEOF 22504if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 22505 $EGREP "uid_t" >/dev/null 2>&1; then : 22506 ac_cv_type_uid_t=yes 22507else 22508 ac_cv_type_uid_t=no 22509fi 22510rm -f conftest* 22511 22512fi 22513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 22514$as_echo "$ac_cv_type_uid_t" >&6; } 22515if test $ac_cv_type_uid_t = no; then 22516 22517$as_echo "#define uid_t int" >>confdefs.h 22518 22519 22520$as_echo "#define gid_t int" >>confdefs.h 22521 22522fi 22523 22524 22525 22526 22527 22528 22529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we're including debugging code" >&5 22530$as_echo_n "checking if we're including debugging code... " >&6; } 22531# Check whether --enable-debugging was given. 22532if test "${enable_debugging+set}" = set; then : 22533 enableval=$enable_debugging; ntp_ok=$enableval 22534else 22535 ntp_ok=yes 22536 22537fi 22538 22539case "$ntp_ok" in 22540 yes) 22541 22542$as_echo "#define DEBUG 1" >>confdefs.h 22543 22544esac 22545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 22546$as_echo "$ntp_ok" >&6; } 22547 22548 22549 22550# check if we can compile with pthreads 22551for ac_header in semaphore.h 22552do : 22553 ac_fn_c_check_header_mongrel "$LINENO" "semaphore.h" "ac_cv_header_semaphore_h" "$ac_includes_default" 22554if test "x$ac_cv_header_semaphore_h" = xyes; then : 22555 cat >>confdefs.h <<_ACEOF 22556#define HAVE_SEMAPHORE_H 1 22557_ACEOF 22558 22559fi 22560 22561done 22562 22563for ac_func in socketpair 22564do : 22565 ac_fn_c_check_func "$LINENO" "socketpair" "ac_cv_func_socketpair" 22566if test "x$ac_cv_func_socketpair" = xyes; then : 22567 cat >>confdefs.h <<_ACEOF 22568#define HAVE_SOCKETPAIR 1 22569_ACEOF 22570 22571fi 22572done 22573 22574# Check whether --enable-thread-support was given. 22575if test "${enable_thread_support+set}" = set; then : 22576 enableval=$enable_thread_support; 22577else 22578 enable_thread_support=yes 22579 22580fi 22581 22582have_pthreads=no 22583case "$enable_thread_support" in 22584 yes) 22585 ol_found_pthreads=no 22586 22587 22588 22589ac_ext=c 22590ac_cpp='$CPP $CPPFLAGS' 22591ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22592ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22593ac_compiler_gnu=$ac_cv_c_compiler_gnu 22594 22595# OpenLDAP --with-threads 22596 22597# Check whether --with-threads was given. 22598if test "${with_threads+set}" = set; then : 22599 withval=$with_threads; 22600 ol_arg=invalid 22601 for ol_val in auto nt posix mach pth lwp yes no manual ; do 22602 if test "$withval" = "$ol_val" ; then 22603 ol_arg="$ol_val" 22604 fi 22605 done 22606 if test "$ol_arg" = "invalid" ; then 22607 as_fn_error $? "bad value $withval for --with-threads" "$LINENO" 5 22608 fi 22609 ol_with_threads="$ol_arg" 22610 22611else 22612 ol_with_threads="auto" 22613fi 22614# end --with-threads 22615 22616 22617case "$ol_with_threads$host" in 22618 auto*-*-solaris2.[0-6]) 22619 ol_with_threads=no 22620 ;; 22621esac 22622 22623 22624ol_aix_threads=no 22625case "$host" in 22626*-*-aix*) if test -z "$CC" ; then 22627 case "$ol_with_threads" in 22628 auto | yes | posix) ol_aix_threads=yes ;; 22629 esac 22630 fi 22631;; 22632esac 22633 22634if test $ol_aix_threads = yes ; then 22635 if test -z "${CC}" ; then 22636 for ac_prog in cc_r xlc_r cc 22637do 22638 # Extract the first word of "$ac_prog", so it can be a program name with args. 22639set dummy $ac_prog; ac_word=$2 22640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22641$as_echo_n "checking for $ac_word... " >&6; } 22642if ${ac_cv_prog_CC+:} false; then : 22643 $as_echo_n "(cached) " >&6 22644else 22645 if test -n "$CC"; then 22646 ac_cv_prog_CC="$CC" # Let the user override the test. 22647else 22648as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22649for as_dir in $PATH 22650do 22651 IFS=$as_save_IFS 22652 test -z "$as_dir" && as_dir=. 22653 for ac_exec_ext in '' $ac_executable_extensions; do 22654 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 22655 ac_cv_prog_CC="$ac_prog" 22656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22657 break 2 22658 fi 22659done 22660 done 22661IFS=$as_save_IFS 22662 22663fi 22664fi 22665CC=$ac_cv_prog_CC 22666if test -n "$CC"; then 22667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 22668$as_echo "$CC" >&6; } 22669else 22670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22671$as_echo "no" >&6; } 22672fi 22673 22674 22675 test -n "$CC" && break 22676done 22677 22678 22679 if test "$CC" = cc ; then 22680 if test $ol_with_threads != auto ; then 22681 as_fn_error $? "--with-threads requires cc_r (or other suitable compiler) on AIX" "$LINENO" 5 22682 else 22683 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling threads, no cc_r on AIX" >&5 22684$as_echo "$as_me: WARNING: disabling threads, no cc_r on AIX" >&2;} 22685 fi 22686 ol_with_threads=no 22687 fi 22688 fi 22689 22690 case ${CC} in cc_r | xlc_r) 22691 ol_with_threads=posix 22692 ol_cv_pthread_create=yes 22693 ;; 22694 esac 22695fi 22696 22697ol_link_threads=no 22698# OpenLDAP --with-yielding_select 22699 22700# Check whether --with-yielding_select was given. 22701if test "${with_yielding_select+set}" = set; then : 22702 withval=$with_yielding_select; 22703 ol_arg=invalid 22704 for ol_val in auto yes no manual ; do 22705 if test "$withval" = "$ol_val" ; then 22706 ol_arg="$ol_val" 22707 fi 22708 done 22709 if test "$ol_arg" = "invalid" ; then 22710 as_fn_error $? "bad value $withval for --with-yielding_select" "$LINENO" 5 22711 fi 22712 ol_with_yielding_select="$ol_arg" 22713 22714else 22715 ol_with_yielding_select="auto" 22716fi 22717# end --with-yielding_select 22718 22719 22720case $ol_with_threads in auto | yes | nt) 22721 22722 22723 ac_fn_c_check_func "$LINENO" "_beginthread" "ac_cv_func__beginthread" 22724if test "x$ac_cv_func__beginthread" = xyes; then : 22725 22726fi 22727 22728 22729 if test $ac_cv_func__beginthread = yes ; then 22730 22731$as_echo "#define HAVE_NT_THREADS 1" >>confdefs.h 22732 22733 ol_cv_nt_threads=yes 22734 fi 22735 22736 22737 if test "$ol_cv_nt_threads" = yes ; then 22738 ol_link_threads=nt 22739 ol_with_threads=found 22740 ol_with_yielding_select=yes 22741 22742 22743$as_echo "#define HAVE_NT_SERVICE_MANAGER 1" >>confdefs.h 22744 22745 22746$as_echo "#define HAVE_NT_EVENT_LOG 1" >>confdefs.h 22747 22748 fi 22749 22750 if test $ol_with_threads = nt ; then 22751 as_fn_error $? "could not locate NT Threads" "$LINENO" 5 22752 fi 22753 ;; 22754esac 22755 22756case $ol_with_threads in auto | yes | posix) 22757 22758 for ac_header in pthread.h 22759do : 22760 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default" 22761if test "x$ac_cv_header_pthread_h" = xyes; then : 22762 cat >>confdefs.h <<_ACEOF 22763#define HAVE_PTHREAD_H 1 22764_ACEOF 22765 22766fi 22767 22768done 22769 22770 22771 if test $ac_cv_header_pthread_h = yes ; then 22772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking POSIX thread version" >&5 22773$as_echo_n "checking POSIX thread version... " >&6; } 22774if ${ol_cv_pthread_version+:} false; then : 22775 $as_echo_n "(cached) " >&6 22776else 22777 22778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22779/* end confdefs.h. */ 22780 22781# include <pthread.h> 22782 22783int 22784main () 22785{ 22786 22787 int i = PTHREAD_CREATE_JOINABLE; 22788 22789 ; 22790 return 0; 22791} 22792_ACEOF 22793if ac_fn_c_try_compile "$LINENO"; then : 22794 22795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22796/* end confdefs.h. */ 22797#include <pthread.h> 22798 22799_ACEOF 22800if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 22801 $EGREP "pthread_detach" >/dev/null 2>&1; then : 22802 ol_cv_pthread_version=10 22803else 22804 ol_cv_pthread_version=8 22805fi 22806rm -f conftest* 22807 22808else 22809 22810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22811/* end confdefs.h. */ 22812 22813# include <pthread.h> 22814# ifdef PTHREAD_CREATE_UNDETACHED 22815 draft7 22816# endif 22817 22818_ACEOF 22819if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 22820 $EGREP "draft7" >/dev/null 2>&1; then : 22821 ol_cv_pthread_version=7 22822else 22823 22824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22825/* end confdefs.h. */ 22826#include <pthread.h> 22827 22828_ACEOF 22829if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 22830 $EGREP "pthread_attr_init" >/dev/null 2>&1; then : 22831 ol_cv_pthread_version=6 22832else 22833 22834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22835/* end confdefs.h. */ 22836 22837# include <pthread.h> 22838#ifdef PTHREAD_MUTEX_INITIALIZER 22839 draft5 22840#endif 22841 22842_ACEOF 22843if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 22844 $EGREP "draft5" >/dev/null 2>&1; then : 22845 ol_cv_pthread_version=5 22846else 22847 ol_cv_pthread_version=4 22848fi 22849rm -f conftest* 22850 22851fi 22852rm -f conftest* 22853 22854fi 22855rm -f conftest* 22856 22857fi 22858rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22859 22860fi 22861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_version" >&5 22862$as_echo "$ol_cv_pthread_version" >&6; } 22863 22864 22865 if test $ol_cv_pthread_version != 0 ; then 22866 22867cat >>confdefs.h <<_ACEOF 22868#define HAVE_PTHREADS $ol_cv_pthread_version 22869_ACEOF 22870 22871 else 22872 as_fn_error $? "unknown pthread version" "$LINENO" 5 22873 fi 22874 22875 # consider threads found 22876 ol_with_threads=found 22877 22878 22879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads pthread.h" >&5 22880$as_echo_n "checking for LinuxThreads pthread.h... " >&6; } 22881if ${ol_cv_header_linux_threads+:} false; then : 22882 $as_echo_n "(cached) " >&6 22883else 22884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22885/* end confdefs.h. */ 22886#include <pthread.h> 22887_ACEOF 22888if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 22889 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then : 22890 ol_cv_header_linux_threads=yes 22891else 22892 ol_cv_header_linux_threads=no 22893fi 22894rm -f conftest* 22895 22896 22897fi 22898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_linux_threads" >&5 22899$as_echo "$ol_cv_header_linux_threads" >&6; } 22900 if test $ol_cv_header_linux_threads = yes; then 22901 22902$as_echo "#define HAVE_LINUX_THREADS 1" >>confdefs.h 22903 22904 fi 22905 22906 22907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU Pth pthread.h" >&5 22908$as_echo_n "checking for GNU Pth pthread.h... " >&6; } 22909if ${ol_cv_header_gnu_pth_pthread_h+:} false; then : 22910 $as_echo_n "(cached) " >&6 22911else 22912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22913/* end confdefs.h. */ 22914#include <pthread.h> 22915#ifdef _POSIX_THREAD_IS_GNU_PTH 22916 __gnu_pth__; 22917#endif 22918 22919_ACEOF 22920if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 22921 $EGREP "__gnu_pth__" >/dev/null 2>&1; then : 22922 ol_cv_header_gnu_pth_pthread_h=yes 22923else 22924 ol_cv_header_gnu_pth_pthread_h=no 22925fi 22926rm -f conftest* 22927 22928 22929fi 22930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_gnu_pth_pthread_h" >&5 22931$as_echo "$ol_cv_header_gnu_pth_pthread_h" >&6; } 22932 22933 22934 if test $ol_cv_header_gnu_pth_pthread_h = no ; then 22935 for ac_header in sched.h 22936do : 22937 ac_fn_c_check_header_mongrel "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default" 22938if test "x$ac_cv_header_sched_h" = xyes; then : 22939 cat >>confdefs.h <<_ACEOF 22940#define HAVE_SCHED_H 1 22941_ACEOF 22942 22943fi 22944 22945done 22946 22947 fi 22948 22949 22950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in default libraries" >&5 22951$as_echo_n "checking for pthread_create in default libraries... " >&6; } 22952if ${ol_cv_pthread_create+:} false; then : 22953 $as_echo_n "(cached) " >&6 22954else 22955 22956 if test "$cross_compiling" = yes; then : 22957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22958/* end confdefs.h. */ 22959 22960/* pthread test headers */ 22961#include <pthread.h> 22962#if HAVE_PTHREADS < 7 22963#include <errno.h> 22964#endif 22965#ifndef NULL 22966#define NULL (void*)0 22967#endif 22968 22969static void *task(p) 22970 void *p; 22971{ 22972 return (void *) (p == NULL); 22973} 22974 22975int 22976main () 22977{ 22978 22979 /* pthread test function */ 22980#ifndef PTHREAD_CREATE_DETACHED 22981#define PTHREAD_CREATE_DETACHED 1 22982#endif 22983 pthread_t t; 22984 int status; 22985 int detach = PTHREAD_CREATE_DETACHED; 22986 22987#if HAVE_PTHREADS > 4 22988 /* Final pthreads */ 22989 pthread_attr_t attr; 22990 22991 status = pthread_attr_init(&attr); 22992 if( status ) return status; 22993 22994#if HAVE_PTHREADS < 7 22995 status = pthread_attr_setdetachstate(&attr, &detach); 22996 if( status < 0 ) status = errno; 22997#else 22998 status = pthread_attr_setdetachstate(&attr, detach); 22999#endif 23000 if( status ) return status; 23001 status = pthread_create( &t, &attr, task, NULL ); 23002#if HAVE_PTHREADS < 7 23003 if( status < 0 ) status = errno; 23004#endif 23005 if( status ) return status; 23006#else 23007 /* Draft 4 pthreads */ 23008 status = pthread_create( &t, pthread_attr_default, task, NULL ); 23009 if( status ) return errno; 23010 23011 /* give thread a chance to complete */ 23012 /* it should remain joinable and hence detachable */ 23013 sleep( 1 ); 23014 23015 status = pthread_detach( &t ); 23016 if( status ) return errno; 23017#endif 23018 23019#ifdef HAVE_LINUX_THREADS 23020 pthread_kill_other_threads_np(); 23021#endif 23022 23023 return 0; 23024 23025 ; 23026 return 0; 23027} 23028_ACEOF 23029if ac_fn_c_try_link "$LINENO"; then : 23030 ol_cv_pthread_create=yes 23031else 23032 ol_cv_pthread_create=no 23033fi 23034rm -f core conftest.err conftest.$ac_objext \ 23035 conftest$ac_exeext conftest.$ac_ext 23036else 23037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23038/* end confdefs.h. */ 23039 23040 23041/* pthread test headers */ 23042#include <pthread.h> 23043#if HAVE_PTHREADS < 7 23044#include <errno.h> 23045#endif 23046#ifndef NULL 23047#define NULL (void*)0 23048#endif 23049 23050static void *task(p) 23051 void *p; 23052{ 23053 return (void *) (p == NULL); 23054} 23055 23056 23057int main(argc, argv) 23058 int argc; 23059 char **argv; 23060{ 23061 23062 /* pthread test function */ 23063#ifndef PTHREAD_CREATE_DETACHED 23064#define PTHREAD_CREATE_DETACHED 1 23065#endif 23066 pthread_t t; 23067 int status; 23068 int detach = PTHREAD_CREATE_DETACHED; 23069 23070#if HAVE_PTHREADS > 4 23071 /* Final pthreads */ 23072 pthread_attr_t attr; 23073 23074 status = pthread_attr_init(&attr); 23075 if( status ) return status; 23076 23077#if HAVE_PTHREADS < 7 23078 status = pthread_attr_setdetachstate(&attr, &detach); 23079 if( status < 0 ) status = errno; 23080#else 23081 status = pthread_attr_setdetachstate(&attr, detach); 23082#endif 23083 if( status ) return status; 23084 status = pthread_create( &t, &attr, task, NULL ); 23085#if HAVE_PTHREADS < 7 23086 if( status < 0 ) status = errno; 23087#endif 23088 if( status ) return status; 23089#else 23090 /* Draft 4 pthreads */ 23091 status = pthread_create( &t, pthread_attr_default, task, NULL ); 23092 if( status ) return errno; 23093 23094 /* give thread a chance to complete */ 23095 /* it should remain joinable and hence detachable */ 23096 sleep( 1 ); 23097 23098 status = pthread_detach( &t ); 23099 if( status ) return errno; 23100#endif 23101 23102#ifdef HAVE_LINUX_THREADS 23103 pthread_kill_other_threads_np(); 23104#endif 23105 23106 return 0; 23107 23108} 23109 23110_ACEOF 23111if ac_fn_c_try_run "$LINENO"; then : 23112 ol_cv_pthread_create=yes 23113else 23114 ol_cv_pthread_create=no 23115fi 23116rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 23117 conftest.$ac_objext conftest.beam conftest.$ac_ext 23118fi 23119 23120fi 23121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_create" >&5 23122$as_echo "$ol_cv_pthread_create" >&6; } 23123 23124 if test $ol_cv_pthread_create != no ; then 23125 ol_link_threads=posix 23126 ol_link_pthreads="" 23127 fi 23128 23129 # Pthread try link: -kthread (ol_cv_pthread_kthread) 23130if test "$ol_link_threads" = no ; then 23131 # try -kthread 23132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -kthread" >&5 23133$as_echo_n "checking for pthread link with -kthread... " >&6; } 23134if ${ol_cv_pthread_kthread+:} false; then : 23135 $as_echo_n "(cached) " >&6 23136else 23137 23138 # save the flags 23139 ol_LIBS="$LIBS" 23140 LIBS="-kthread $LIBS" 23141 23142 if test "$cross_compiling" = yes; then : 23143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23144/* end confdefs.h. */ 23145 23146/* pthread test headers */ 23147#include <pthread.h> 23148#if HAVE_PTHREADS < 7 23149#include <errno.h> 23150#endif 23151#ifndef NULL 23152#define NULL (void*)0 23153#endif 23154 23155static void *task(p) 23156 void *p; 23157{ 23158 return (void *) (p == NULL); 23159} 23160 23161int 23162main () 23163{ 23164 23165 /* pthread test function */ 23166#ifndef PTHREAD_CREATE_DETACHED 23167#define PTHREAD_CREATE_DETACHED 1 23168#endif 23169 pthread_t t; 23170 int status; 23171 int detach = PTHREAD_CREATE_DETACHED; 23172 23173#if HAVE_PTHREADS > 4 23174 /* Final pthreads */ 23175 pthread_attr_t attr; 23176 23177 status = pthread_attr_init(&attr); 23178 if( status ) return status; 23179 23180#if HAVE_PTHREADS < 7 23181 status = pthread_attr_setdetachstate(&attr, &detach); 23182 if( status < 0 ) status = errno; 23183#else 23184 status = pthread_attr_setdetachstate(&attr, detach); 23185#endif 23186 if( status ) return status; 23187 status = pthread_create( &t, &attr, task, NULL ); 23188#if HAVE_PTHREADS < 7 23189 if( status < 0 ) status = errno; 23190#endif 23191 if( status ) return status; 23192#else 23193 /* Draft 4 pthreads */ 23194 status = pthread_create( &t, pthread_attr_default, task, NULL ); 23195 if( status ) return errno; 23196 23197 /* give thread a chance to complete */ 23198 /* it should remain joinable and hence detachable */ 23199 sleep( 1 ); 23200 23201 status = pthread_detach( &t ); 23202 if( status ) return errno; 23203#endif 23204 23205#ifdef HAVE_LINUX_THREADS 23206 pthread_kill_other_threads_np(); 23207#endif 23208 23209 return 0; 23210 23211 ; 23212 return 0; 23213} 23214_ACEOF 23215if ac_fn_c_try_link "$LINENO"; then : 23216 ol_cv_pthread_kthread=yes 23217else 23218 ol_cv_pthread_kthread=no 23219fi 23220rm -f core conftest.err conftest.$ac_objext \ 23221 conftest$ac_exeext conftest.$ac_ext 23222else 23223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23224/* end confdefs.h. */ 23225 23226 23227/* pthread test headers */ 23228#include <pthread.h> 23229#if HAVE_PTHREADS < 7 23230#include <errno.h> 23231#endif 23232#ifndef NULL 23233#define NULL (void*)0 23234#endif 23235 23236static void *task(p) 23237 void *p; 23238{ 23239 return (void *) (p == NULL); 23240} 23241 23242 23243int main(argc, argv) 23244 int argc; 23245 char **argv; 23246{ 23247 23248 /* pthread test function */ 23249#ifndef PTHREAD_CREATE_DETACHED 23250#define PTHREAD_CREATE_DETACHED 1 23251#endif 23252 pthread_t t; 23253 int status; 23254 int detach = PTHREAD_CREATE_DETACHED; 23255 23256#if HAVE_PTHREADS > 4 23257 /* Final pthreads */ 23258 pthread_attr_t attr; 23259 23260 status = pthread_attr_init(&attr); 23261 if( status ) return status; 23262 23263#if HAVE_PTHREADS < 7 23264 status = pthread_attr_setdetachstate(&attr, &detach); 23265 if( status < 0 ) status = errno; 23266#else 23267 status = pthread_attr_setdetachstate(&attr, detach); 23268#endif 23269 if( status ) return status; 23270 status = pthread_create( &t, &attr, task, NULL ); 23271#if HAVE_PTHREADS < 7 23272 if( status < 0 ) status = errno; 23273#endif 23274 if( status ) return status; 23275#else 23276 /* Draft 4 pthreads */ 23277 status = pthread_create( &t, pthread_attr_default, task, NULL ); 23278 if( status ) return errno; 23279 23280 /* give thread a chance to complete */ 23281 /* it should remain joinable and hence detachable */ 23282 sleep( 1 ); 23283 23284 status = pthread_detach( &t ); 23285 if( status ) return errno; 23286#endif 23287 23288#ifdef HAVE_LINUX_THREADS 23289 pthread_kill_other_threads_np(); 23290#endif 23291 23292 return 0; 23293 23294} 23295 23296_ACEOF 23297if ac_fn_c_try_run "$LINENO"; then : 23298 ol_cv_pthread_kthread=yes 23299else 23300 ol_cv_pthread_kthread=no 23301fi 23302rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 23303 conftest.$ac_objext conftest.beam conftest.$ac_ext 23304fi 23305 23306 23307 # restore the LIBS 23308 LIBS="$ol_LIBS" 23309 23310fi 23311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_kthread" >&5 23312$as_echo "$ol_cv_pthread_kthread" >&6; } 23313 23314 if test $ol_cv_pthread_kthread = yes ; then 23315 ol_link_pthreads="-kthread" 23316 ol_link_threads=posix 23317 fi 23318fi 23319 23320 # Pthread try link: -pthread (ol_cv_pthread_pthread) 23321if test "$ol_link_threads" = no ; then 23322 # try -pthread 23323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -pthread" >&5 23324$as_echo_n "checking for pthread link with -pthread... " >&6; } 23325if ${ol_cv_pthread_pthread+:} false; then : 23326 $as_echo_n "(cached) " >&6 23327else 23328 23329 # save the flags 23330 ol_LIBS="$LIBS" 23331 LIBS="-pthread $LIBS" 23332 23333 if test "$cross_compiling" = yes; then : 23334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23335/* end confdefs.h. */ 23336 23337/* pthread test headers */ 23338#include <pthread.h> 23339#if HAVE_PTHREADS < 7 23340#include <errno.h> 23341#endif 23342#ifndef NULL 23343#define NULL (void*)0 23344#endif 23345 23346static void *task(p) 23347 void *p; 23348{ 23349 return (void *) (p == NULL); 23350} 23351 23352int 23353main () 23354{ 23355 23356 /* pthread test function */ 23357#ifndef PTHREAD_CREATE_DETACHED 23358#define PTHREAD_CREATE_DETACHED 1 23359#endif 23360 pthread_t t; 23361 int status; 23362 int detach = PTHREAD_CREATE_DETACHED; 23363 23364#if HAVE_PTHREADS > 4 23365 /* Final pthreads */ 23366 pthread_attr_t attr; 23367 23368 status = pthread_attr_init(&attr); 23369 if( status ) return status; 23370 23371#if HAVE_PTHREADS < 7 23372 status = pthread_attr_setdetachstate(&attr, &detach); 23373 if( status < 0 ) status = errno; 23374#else 23375 status = pthread_attr_setdetachstate(&attr, detach); 23376#endif 23377 if( status ) return status; 23378 status = pthread_create( &t, &attr, task, NULL ); 23379#if HAVE_PTHREADS < 7 23380 if( status < 0 ) status = errno; 23381#endif 23382 if( status ) return status; 23383#else 23384 /* Draft 4 pthreads */ 23385 status = pthread_create( &t, pthread_attr_default, task, NULL ); 23386 if( status ) return errno; 23387 23388 /* give thread a chance to complete */ 23389 /* it should remain joinable and hence detachable */ 23390 sleep( 1 ); 23391 23392 status = pthread_detach( &t ); 23393 if( status ) return errno; 23394#endif 23395 23396#ifdef HAVE_LINUX_THREADS 23397 pthread_kill_other_threads_np(); 23398#endif 23399 23400 return 0; 23401 23402 ; 23403 return 0; 23404} 23405_ACEOF 23406if ac_fn_c_try_link "$LINENO"; then : 23407 ol_cv_pthread_pthread=yes 23408else 23409 ol_cv_pthread_pthread=no 23410fi 23411rm -f core conftest.err conftest.$ac_objext \ 23412 conftest$ac_exeext conftest.$ac_ext 23413else 23414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23415/* end confdefs.h. */ 23416 23417 23418/* pthread test headers */ 23419#include <pthread.h> 23420#if HAVE_PTHREADS < 7 23421#include <errno.h> 23422#endif 23423#ifndef NULL 23424#define NULL (void*)0 23425#endif 23426 23427static void *task(p) 23428 void *p; 23429{ 23430 return (void *) (p == NULL); 23431} 23432 23433 23434int main(argc, argv) 23435 int argc; 23436 char **argv; 23437{ 23438 23439 /* pthread test function */ 23440#ifndef PTHREAD_CREATE_DETACHED 23441#define PTHREAD_CREATE_DETACHED 1 23442#endif 23443 pthread_t t; 23444 int status; 23445 int detach = PTHREAD_CREATE_DETACHED; 23446 23447#if HAVE_PTHREADS > 4 23448 /* Final pthreads */ 23449 pthread_attr_t attr; 23450 23451 status = pthread_attr_init(&attr); 23452 if( status ) return status; 23453 23454#if HAVE_PTHREADS < 7 23455 status = pthread_attr_setdetachstate(&attr, &detach); 23456 if( status < 0 ) status = errno; 23457#else 23458 status = pthread_attr_setdetachstate(&attr, detach); 23459#endif 23460 if( status ) return status; 23461 status = pthread_create( &t, &attr, task, NULL ); 23462#if HAVE_PTHREADS < 7 23463 if( status < 0 ) status = errno; 23464#endif 23465 if( status ) return status; 23466#else 23467 /* Draft 4 pthreads */ 23468 status = pthread_create( &t, pthread_attr_default, task, NULL ); 23469 if( status ) return errno; 23470 23471 /* give thread a chance to complete */ 23472 /* it should remain joinable and hence detachable */ 23473 sleep( 1 ); 23474 23475 status = pthread_detach( &t ); 23476 if( status ) return errno; 23477#endif 23478 23479#ifdef HAVE_LINUX_THREADS 23480 pthread_kill_other_threads_np(); 23481#endif 23482 23483 return 0; 23484 23485} 23486 23487_ACEOF 23488if ac_fn_c_try_run "$LINENO"; then : 23489 ol_cv_pthread_pthread=yes 23490else 23491 ol_cv_pthread_pthread=no 23492fi 23493rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 23494 conftest.$ac_objext conftest.beam conftest.$ac_ext 23495fi 23496 23497 23498 # restore the LIBS 23499 LIBS="$ol_LIBS" 23500 23501fi 23502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_pthread" >&5 23503$as_echo "$ol_cv_pthread_pthread" >&6; } 23504 23505 if test $ol_cv_pthread_pthread = yes ; then 23506 ol_link_pthreads="-pthread" 23507 ol_link_threads=posix 23508 fi 23509fi 23510 23511 # Pthread try link: -pthreads (ol_cv_pthread_pthreads) 23512if test "$ol_link_threads" = no ; then 23513 # try -pthreads 23514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -pthreads" >&5 23515$as_echo_n "checking for pthread link with -pthreads... " >&6; } 23516if ${ol_cv_pthread_pthreads+:} false; then : 23517 $as_echo_n "(cached) " >&6 23518else 23519 23520 # save the flags 23521 ol_LIBS="$LIBS" 23522 LIBS="-pthreads $LIBS" 23523 23524 if test "$cross_compiling" = yes; then : 23525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23526/* end confdefs.h. */ 23527 23528/* pthread test headers */ 23529#include <pthread.h> 23530#if HAVE_PTHREADS < 7 23531#include <errno.h> 23532#endif 23533#ifndef NULL 23534#define NULL (void*)0 23535#endif 23536 23537static void *task(p) 23538 void *p; 23539{ 23540 return (void *) (p == NULL); 23541} 23542 23543int 23544main () 23545{ 23546 23547 /* pthread test function */ 23548#ifndef PTHREAD_CREATE_DETACHED 23549#define PTHREAD_CREATE_DETACHED 1 23550#endif 23551 pthread_t t; 23552 int status; 23553 int detach = PTHREAD_CREATE_DETACHED; 23554 23555#if HAVE_PTHREADS > 4 23556 /* Final pthreads */ 23557 pthread_attr_t attr; 23558 23559 status = pthread_attr_init(&attr); 23560 if( status ) return status; 23561 23562#if HAVE_PTHREADS < 7 23563 status = pthread_attr_setdetachstate(&attr, &detach); 23564 if( status < 0 ) status = errno; 23565#else 23566 status = pthread_attr_setdetachstate(&attr, detach); 23567#endif 23568 if( status ) return status; 23569 status = pthread_create( &t, &attr, task, NULL ); 23570#if HAVE_PTHREADS < 7 23571 if( status < 0 ) status = errno; 23572#endif 23573 if( status ) return status; 23574#else 23575 /* Draft 4 pthreads */ 23576 status = pthread_create( &t, pthread_attr_default, task, NULL ); 23577 if( status ) return errno; 23578 23579 /* give thread a chance to complete */ 23580 /* it should remain joinable and hence detachable */ 23581 sleep( 1 ); 23582 23583 status = pthread_detach( &t ); 23584 if( status ) return errno; 23585#endif 23586 23587#ifdef HAVE_LINUX_THREADS 23588 pthread_kill_other_threads_np(); 23589#endif 23590 23591 return 0; 23592 23593 ; 23594 return 0; 23595} 23596_ACEOF 23597if ac_fn_c_try_link "$LINENO"; then : 23598 ol_cv_pthread_pthreads=yes 23599else 23600 ol_cv_pthread_pthreads=no 23601fi 23602rm -f core conftest.err conftest.$ac_objext \ 23603 conftest$ac_exeext conftest.$ac_ext 23604else 23605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23606/* end confdefs.h. */ 23607 23608 23609/* pthread test headers */ 23610#include <pthread.h> 23611#if HAVE_PTHREADS < 7 23612#include <errno.h> 23613#endif 23614#ifndef NULL 23615#define NULL (void*)0 23616#endif 23617 23618static void *task(p) 23619 void *p; 23620{ 23621 return (void *) (p == NULL); 23622} 23623 23624 23625int main(argc, argv) 23626 int argc; 23627 char **argv; 23628{ 23629 23630 /* pthread test function */ 23631#ifndef PTHREAD_CREATE_DETACHED 23632#define PTHREAD_CREATE_DETACHED 1 23633#endif 23634 pthread_t t; 23635 int status; 23636 int detach = PTHREAD_CREATE_DETACHED; 23637 23638#if HAVE_PTHREADS > 4 23639 /* Final pthreads */ 23640 pthread_attr_t attr; 23641 23642 status = pthread_attr_init(&attr); 23643 if( status ) return status; 23644 23645#if HAVE_PTHREADS < 7 23646 status = pthread_attr_setdetachstate(&attr, &detach); 23647 if( status < 0 ) status = errno; 23648#else 23649 status = pthread_attr_setdetachstate(&attr, detach); 23650#endif 23651 if( status ) return status; 23652 status = pthread_create( &t, &attr, task, NULL ); 23653#if HAVE_PTHREADS < 7 23654 if( status < 0 ) status = errno; 23655#endif 23656 if( status ) return status; 23657#else 23658 /* Draft 4 pthreads */ 23659 status = pthread_create( &t, pthread_attr_default, task, NULL ); 23660 if( status ) return errno; 23661 23662 /* give thread a chance to complete */ 23663 /* it should remain joinable and hence detachable */ 23664 sleep( 1 ); 23665 23666 status = pthread_detach( &t ); 23667 if( status ) return errno; 23668#endif 23669 23670#ifdef HAVE_LINUX_THREADS 23671 pthread_kill_other_threads_np(); 23672#endif 23673 23674 return 0; 23675 23676} 23677 23678_ACEOF 23679if ac_fn_c_try_run "$LINENO"; then : 23680 ol_cv_pthread_pthreads=yes 23681else 23682 ol_cv_pthread_pthreads=no 23683fi 23684rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 23685 conftest.$ac_objext conftest.beam conftest.$ac_ext 23686fi 23687 23688 23689 # restore the LIBS 23690 LIBS="$ol_LIBS" 23691 23692fi 23693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_pthreads" >&5 23694$as_echo "$ol_cv_pthread_pthreads" >&6; } 23695 23696 if test $ol_cv_pthread_pthreads = yes ; then 23697 ol_link_pthreads="-pthreads" 23698 ol_link_threads=posix 23699 fi 23700fi 23701 23702 # Pthread try link: -mthreads (ol_cv_pthread_mthreads) 23703if test "$ol_link_threads" = no ; then 23704 # try -mthreads 23705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -mthreads" >&5 23706$as_echo_n "checking for pthread link with -mthreads... " >&6; } 23707if ${ol_cv_pthread_mthreads+:} false; then : 23708 $as_echo_n "(cached) " >&6 23709else 23710 23711 # save the flags 23712 ol_LIBS="$LIBS" 23713 LIBS="-mthreads $LIBS" 23714 23715 if test "$cross_compiling" = yes; then : 23716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23717/* end confdefs.h. */ 23718 23719/* pthread test headers */ 23720#include <pthread.h> 23721#if HAVE_PTHREADS < 7 23722#include <errno.h> 23723#endif 23724#ifndef NULL 23725#define NULL (void*)0 23726#endif 23727 23728static void *task(p) 23729 void *p; 23730{ 23731 return (void *) (p == NULL); 23732} 23733 23734int 23735main () 23736{ 23737 23738 /* pthread test function */ 23739#ifndef PTHREAD_CREATE_DETACHED 23740#define PTHREAD_CREATE_DETACHED 1 23741#endif 23742 pthread_t t; 23743 int status; 23744 int detach = PTHREAD_CREATE_DETACHED; 23745 23746#if HAVE_PTHREADS > 4 23747 /* Final pthreads */ 23748 pthread_attr_t attr; 23749 23750 status = pthread_attr_init(&attr); 23751 if( status ) return status; 23752 23753#if HAVE_PTHREADS < 7 23754 status = pthread_attr_setdetachstate(&attr, &detach); 23755 if( status < 0 ) status = errno; 23756#else 23757 status = pthread_attr_setdetachstate(&attr, detach); 23758#endif 23759 if( status ) return status; 23760 status = pthread_create( &t, &attr, task, NULL ); 23761#if HAVE_PTHREADS < 7 23762 if( status < 0 ) status = errno; 23763#endif 23764 if( status ) return status; 23765#else 23766 /* Draft 4 pthreads */ 23767 status = pthread_create( &t, pthread_attr_default, task, NULL ); 23768 if( status ) return errno; 23769 23770 /* give thread a chance to complete */ 23771 /* it should remain joinable and hence detachable */ 23772 sleep( 1 ); 23773 23774 status = pthread_detach( &t ); 23775 if( status ) return errno; 23776#endif 23777 23778#ifdef HAVE_LINUX_THREADS 23779 pthread_kill_other_threads_np(); 23780#endif 23781 23782 return 0; 23783 23784 ; 23785 return 0; 23786} 23787_ACEOF 23788if ac_fn_c_try_link "$LINENO"; then : 23789 ol_cv_pthread_mthreads=yes 23790else 23791 ol_cv_pthread_mthreads=no 23792fi 23793rm -f core conftest.err conftest.$ac_objext \ 23794 conftest$ac_exeext conftest.$ac_ext 23795else 23796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23797/* end confdefs.h. */ 23798 23799 23800/* pthread test headers */ 23801#include <pthread.h> 23802#if HAVE_PTHREADS < 7 23803#include <errno.h> 23804#endif 23805#ifndef NULL 23806#define NULL (void*)0 23807#endif 23808 23809static void *task(p) 23810 void *p; 23811{ 23812 return (void *) (p == NULL); 23813} 23814 23815 23816int main(argc, argv) 23817 int argc; 23818 char **argv; 23819{ 23820 23821 /* pthread test function */ 23822#ifndef PTHREAD_CREATE_DETACHED 23823#define PTHREAD_CREATE_DETACHED 1 23824#endif 23825 pthread_t t; 23826 int status; 23827 int detach = PTHREAD_CREATE_DETACHED; 23828 23829#if HAVE_PTHREADS > 4 23830 /* Final pthreads */ 23831 pthread_attr_t attr; 23832 23833 status = pthread_attr_init(&attr); 23834 if( status ) return status; 23835 23836#if HAVE_PTHREADS < 7 23837 status = pthread_attr_setdetachstate(&attr, &detach); 23838 if( status < 0 ) status = errno; 23839#else 23840 status = pthread_attr_setdetachstate(&attr, detach); 23841#endif 23842 if( status ) return status; 23843 status = pthread_create( &t, &attr, task, NULL ); 23844#if HAVE_PTHREADS < 7 23845 if( status < 0 ) status = errno; 23846#endif 23847 if( status ) return status; 23848#else 23849 /* Draft 4 pthreads */ 23850 status = pthread_create( &t, pthread_attr_default, task, NULL ); 23851 if( status ) return errno; 23852 23853 /* give thread a chance to complete */ 23854 /* it should remain joinable and hence detachable */ 23855 sleep( 1 ); 23856 23857 status = pthread_detach( &t ); 23858 if( status ) return errno; 23859#endif 23860 23861#ifdef HAVE_LINUX_THREADS 23862 pthread_kill_other_threads_np(); 23863#endif 23864 23865 return 0; 23866 23867} 23868 23869_ACEOF 23870if ac_fn_c_try_run "$LINENO"; then : 23871 ol_cv_pthread_mthreads=yes 23872else 23873 ol_cv_pthread_mthreads=no 23874fi 23875rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 23876 conftest.$ac_objext conftest.beam conftest.$ac_ext 23877fi 23878 23879 23880 # restore the LIBS 23881 LIBS="$ol_LIBS" 23882 23883fi 23884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_mthreads" >&5 23885$as_echo "$ol_cv_pthread_mthreads" >&6; } 23886 23887 if test $ol_cv_pthread_mthreads = yes ; then 23888 ol_link_pthreads="-mthreads" 23889 ol_link_threads=posix 23890 fi 23891fi 23892 23893 # Pthread try link: -thread (ol_cv_pthread_thread) 23894if test "$ol_link_threads" = no ; then 23895 # try -thread 23896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -thread" >&5 23897$as_echo_n "checking for pthread link with -thread... " >&6; } 23898if ${ol_cv_pthread_thread+:} false; then : 23899 $as_echo_n "(cached) " >&6 23900else 23901 23902 # save the flags 23903 ol_LIBS="$LIBS" 23904 LIBS="-thread $LIBS" 23905 23906 if test "$cross_compiling" = yes; then : 23907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23908/* end confdefs.h. */ 23909 23910/* pthread test headers */ 23911#include <pthread.h> 23912#if HAVE_PTHREADS < 7 23913#include <errno.h> 23914#endif 23915#ifndef NULL 23916#define NULL (void*)0 23917#endif 23918 23919static void *task(p) 23920 void *p; 23921{ 23922 return (void *) (p == NULL); 23923} 23924 23925int 23926main () 23927{ 23928 23929 /* pthread test function */ 23930#ifndef PTHREAD_CREATE_DETACHED 23931#define PTHREAD_CREATE_DETACHED 1 23932#endif 23933 pthread_t t; 23934 int status; 23935 int detach = PTHREAD_CREATE_DETACHED; 23936 23937#if HAVE_PTHREADS > 4 23938 /* Final pthreads */ 23939 pthread_attr_t attr; 23940 23941 status = pthread_attr_init(&attr); 23942 if( status ) return status; 23943 23944#if HAVE_PTHREADS < 7 23945 status = pthread_attr_setdetachstate(&attr, &detach); 23946 if( status < 0 ) status = errno; 23947#else 23948 status = pthread_attr_setdetachstate(&attr, detach); 23949#endif 23950 if( status ) return status; 23951 status = pthread_create( &t, &attr, task, NULL ); 23952#if HAVE_PTHREADS < 7 23953 if( status < 0 ) status = errno; 23954#endif 23955 if( status ) return status; 23956#else 23957 /* Draft 4 pthreads */ 23958 status = pthread_create( &t, pthread_attr_default, task, NULL ); 23959 if( status ) return errno; 23960 23961 /* give thread a chance to complete */ 23962 /* it should remain joinable and hence detachable */ 23963 sleep( 1 ); 23964 23965 status = pthread_detach( &t ); 23966 if( status ) return errno; 23967#endif 23968 23969#ifdef HAVE_LINUX_THREADS 23970 pthread_kill_other_threads_np(); 23971#endif 23972 23973 return 0; 23974 23975 ; 23976 return 0; 23977} 23978_ACEOF 23979if ac_fn_c_try_link "$LINENO"; then : 23980 ol_cv_pthread_thread=yes 23981else 23982 ol_cv_pthread_thread=no 23983fi 23984rm -f core conftest.err conftest.$ac_objext \ 23985 conftest$ac_exeext conftest.$ac_ext 23986else 23987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23988/* end confdefs.h. */ 23989 23990 23991/* pthread test headers */ 23992#include <pthread.h> 23993#if HAVE_PTHREADS < 7 23994#include <errno.h> 23995#endif 23996#ifndef NULL 23997#define NULL (void*)0 23998#endif 23999 24000static void *task(p) 24001 void *p; 24002{ 24003 return (void *) (p == NULL); 24004} 24005 24006 24007int main(argc, argv) 24008 int argc; 24009 char **argv; 24010{ 24011 24012 /* pthread test function */ 24013#ifndef PTHREAD_CREATE_DETACHED 24014#define PTHREAD_CREATE_DETACHED 1 24015#endif 24016 pthread_t t; 24017 int status; 24018 int detach = PTHREAD_CREATE_DETACHED; 24019 24020#if HAVE_PTHREADS > 4 24021 /* Final pthreads */ 24022 pthread_attr_t attr; 24023 24024 status = pthread_attr_init(&attr); 24025 if( status ) return status; 24026 24027#if HAVE_PTHREADS < 7 24028 status = pthread_attr_setdetachstate(&attr, &detach); 24029 if( status < 0 ) status = errno; 24030#else 24031 status = pthread_attr_setdetachstate(&attr, detach); 24032#endif 24033 if( status ) return status; 24034 status = pthread_create( &t, &attr, task, NULL ); 24035#if HAVE_PTHREADS < 7 24036 if( status < 0 ) status = errno; 24037#endif 24038 if( status ) return status; 24039#else 24040 /* Draft 4 pthreads */ 24041 status = pthread_create( &t, pthread_attr_default, task, NULL ); 24042 if( status ) return errno; 24043 24044 /* give thread a chance to complete */ 24045 /* it should remain joinable and hence detachable */ 24046 sleep( 1 ); 24047 24048 status = pthread_detach( &t ); 24049 if( status ) return errno; 24050#endif 24051 24052#ifdef HAVE_LINUX_THREADS 24053 pthread_kill_other_threads_np(); 24054#endif 24055 24056 return 0; 24057 24058} 24059 24060_ACEOF 24061if ac_fn_c_try_run "$LINENO"; then : 24062 ol_cv_pthread_thread=yes 24063else 24064 ol_cv_pthread_thread=no 24065fi 24066rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 24067 conftest.$ac_objext conftest.beam conftest.$ac_ext 24068fi 24069 24070 24071 # restore the LIBS 24072 LIBS="$ol_LIBS" 24073 24074fi 24075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_thread" >&5 24076$as_echo "$ol_cv_pthread_thread" >&6; } 24077 24078 if test $ol_cv_pthread_thread = yes ; then 24079 ol_link_pthreads="-thread" 24080 ol_link_threads=posix 24081 fi 24082fi 24083 24084 24085 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r) 24086if test "$ol_link_threads" = no ; then 24087 # try -lpthread -lmach -lexc -lc_r 24088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5 24089$as_echo_n "checking for pthread link with -lpthread -lmach -lexc -lc_r... " >&6; } 24090if ${ol_cv_pthread_lpthread_lmach_lexc_lc_r+:} false; then : 24091 $as_echo_n "(cached) " >&6 24092else 24093 24094 # save the flags 24095 ol_LIBS="$LIBS" 24096 LIBS="-lpthread -lmach -lexc -lc_r $LIBS" 24097 24098 if test "$cross_compiling" = yes; then : 24099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24100/* end confdefs.h. */ 24101 24102/* pthread test headers */ 24103#include <pthread.h> 24104#if HAVE_PTHREADS < 7 24105#include <errno.h> 24106#endif 24107#ifndef NULL 24108#define NULL (void*)0 24109#endif 24110 24111static void *task(p) 24112 void *p; 24113{ 24114 return (void *) (p == NULL); 24115} 24116 24117int 24118main () 24119{ 24120 24121 /* pthread test function */ 24122#ifndef PTHREAD_CREATE_DETACHED 24123#define PTHREAD_CREATE_DETACHED 1 24124#endif 24125 pthread_t t; 24126 int status; 24127 int detach = PTHREAD_CREATE_DETACHED; 24128 24129#if HAVE_PTHREADS > 4 24130 /* Final pthreads */ 24131 pthread_attr_t attr; 24132 24133 status = pthread_attr_init(&attr); 24134 if( status ) return status; 24135 24136#if HAVE_PTHREADS < 7 24137 status = pthread_attr_setdetachstate(&attr, &detach); 24138 if( status < 0 ) status = errno; 24139#else 24140 status = pthread_attr_setdetachstate(&attr, detach); 24141#endif 24142 if( status ) return status; 24143 status = pthread_create( &t, &attr, task, NULL ); 24144#if HAVE_PTHREADS < 7 24145 if( status < 0 ) status = errno; 24146#endif 24147 if( status ) return status; 24148#else 24149 /* Draft 4 pthreads */ 24150 status = pthread_create( &t, pthread_attr_default, task, NULL ); 24151 if( status ) return errno; 24152 24153 /* give thread a chance to complete */ 24154 /* it should remain joinable and hence detachable */ 24155 sleep( 1 ); 24156 24157 status = pthread_detach( &t ); 24158 if( status ) return errno; 24159#endif 24160 24161#ifdef HAVE_LINUX_THREADS 24162 pthread_kill_other_threads_np(); 24163#endif 24164 24165 return 0; 24166 24167 ; 24168 return 0; 24169} 24170_ACEOF 24171if ac_fn_c_try_link "$LINENO"; then : 24172 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes 24173else 24174 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no 24175fi 24176rm -f core conftest.err conftest.$ac_objext \ 24177 conftest$ac_exeext conftest.$ac_ext 24178else 24179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24180/* end confdefs.h. */ 24181 24182 24183/* pthread test headers */ 24184#include <pthread.h> 24185#if HAVE_PTHREADS < 7 24186#include <errno.h> 24187#endif 24188#ifndef NULL 24189#define NULL (void*)0 24190#endif 24191 24192static void *task(p) 24193 void *p; 24194{ 24195 return (void *) (p == NULL); 24196} 24197 24198 24199int main(argc, argv) 24200 int argc; 24201 char **argv; 24202{ 24203 24204 /* pthread test function */ 24205#ifndef PTHREAD_CREATE_DETACHED 24206#define PTHREAD_CREATE_DETACHED 1 24207#endif 24208 pthread_t t; 24209 int status; 24210 int detach = PTHREAD_CREATE_DETACHED; 24211 24212#if HAVE_PTHREADS > 4 24213 /* Final pthreads */ 24214 pthread_attr_t attr; 24215 24216 status = pthread_attr_init(&attr); 24217 if( status ) return status; 24218 24219#if HAVE_PTHREADS < 7 24220 status = pthread_attr_setdetachstate(&attr, &detach); 24221 if( status < 0 ) status = errno; 24222#else 24223 status = pthread_attr_setdetachstate(&attr, detach); 24224#endif 24225 if( status ) return status; 24226 status = pthread_create( &t, &attr, task, NULL ); 24227#if HAVE_PTHREADS < 7 24228 if( status < 0 ) status = errno; 24229#endif 24230 if( status ) return status; 24231#else 24232 /* Draft 4 pthreads */ 24233 status = pthread_create( &t, pthread_attr_default, task, NULL ); 24234 if( status ) return errno; 24235 24236 /* give thread a chance to complete */ 24237 /* it should remain joinable and hence detachable */ 24238 sleep( 1 ); 24239 24240 status = pthread_detach( &t ); 24241 if( status ) return errno; 24242#endif 24243 24244#ifdef HAVE_LINUX_THREADS 24245 pthread_kill_other_threads_np(); 24246#endif 24247 24248 return 0; 24249 24250} 24251 24252_ACEOF 24253if ac_fn_c_try_run "$LINENO"; then : 24254 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes 24255else 24256 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no 24257fi 24258rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 24259 conftest.$ac_objext conftest.beam conftest.$ac_ext 24260fi 24261 24262 24263 # restore the LIBS 24264 LIBS="$ol_LIBS" 24265 24266fi 24267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&5 24268$as_echo "$ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&6; } 24269 24270 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then 24271 ol_link_pthreads="-lpthread -lmach -lexc -lc_r" 24272 ol_link_threads=posix 24273 fi 24274fi 24275 24276 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc) 24277if test "$ol_link_threads" = no ; then 24278 # try -lpthread -lmach -lexc 24279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread -lmach -lexc" >&5 24280$as_echo_n "checking for pthread link with -lpthread -lmach -lexc... " >&6; } 24281if ${ol_cv_pthread_lpthread_lmach_lexc+:} false; then : 24282 $as_echo_n "(cached) " >&6 24283else 24284 24285 # save the flags 24286 ol_LIBS="$LIBS" 24287 LIBS="-lpthread -lmach -lexc $LIBS" 24288 24289 if test "$cross_compiling" = yes; then : 24290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24291/* end confdefs.h. */ 24292 24293/* pthread test headers */ 24294#include <pthread.h> 24295#if HAVE_PTHREADS < 7 24296#include <errno.h> 24297#endif 24298#ifndef NULL 24299#define NULL (void*)0 24300#endif 24301 24302static void *task(p) 24303 void *p; 24304{ 24305 return (void *) (p == NULL); 24306} 24307 24308int 24309main () 24310{ 24311 24312 /* pthread test function */ 24313#ifndef PTHREAD_CREATE_DETACHED 24314#define PTHREAD_CREATE_DETACHED 1 24315#endif 24316 pthread_t t; 24317 int status; 24318 int detach = PTHREAD_CREATE_DETACHED; 24319 24320#if HAVE_PTHREADS > 4 24321 /* Final pthreads */ 24322 pthread_attr_t attr; 24323 24324 status = pthread_attr_init(&attr); 24325 if( status ) return status; 24326 24327#if HAVE_PTHREADS < 7 24328 status = pthread_attr_setdetachstate(&attr, &detach); 24329 if( status < 0 ) status = errno; 24330#else 24331 status = pthread_attr_setdetachstate(&attr, detach); 24332#endif 24333 if( status ) return status; 24334 status = pthread_create( &t, &attr, task, NULL ); 24335#if HAVE_PTHREADS < 7 24336 if( status < 0 ) status = errno; 24337#endif 24338 if( status ) return status; 24339#else 24340 /* Draft 4 pthreads */ 24341 status = pthread_create( &t, pthread_attr_default, task, NULL ); 24342 if( status ) return errno; 24343 24344 /* give thread a chance to complete */ 24345 /* it should remain joinable and hence detachable */ 24346 sleep( 1 ); 24347 24348 status = pthread_detach( &t ); 24349 if( status ) return errno; 24350#endif 24351 24352#ifdef HAVE_LINUX_THREADS 24353 pthread_kill_other_threads_np(); 24354#endif 24355 24356 return 0; 24357 24358 ; 24359 return 0; 24360} 24361_ACEOF 24362if ac_fn_c_try_link "$LINENO"; then : 24363 ol_cv_pthread_lpthread_lmach_lexc=yes 24364else 24365 ol_cv_pthread_lpthread_lmach_lexc=no 24366fi 24367rm -f core conftest.err conftest.$ac_objext \ 24368 conftest$ac_exeext conftest.$ac_ext 24369else 24370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24371/* end confdefs.h. */ 24372 24373 24374/* pthread test headers */ 24375#include <pthread.h> 24376#if HAVE_PTHREADS < 7 24377#include <errno.h> 24378#endif 24379#ifndef NULL 24380#define NULL (void*)0 24381#endif 24382 24383static void *task(p) 24384 void *p; 24385{ 24386 return (void *) (p == NULL); 24387} 24388 24389 24390int main(argc, argv) 24391 int argc; 24392 char **argv; 24393{ 24394 24395 /* pthread test function */ 24396#ifndef PTHREAD_CREATE_DETACHED 24397#define PTHREAD_CREATE_DETACHED 1 24398#endif 24399 pthread_t t; 24400 int status; 24401 int detach = PTHREAD_CREATE_DETACHED; 24402 24403#if HAVE_PTHREADS > 4 24404 /* Final pthreads */ 24405 pthread_attr_t attr; 24406 24407 status = pthread_attr_init(&attr); 24408 if( status ) return status; 24409 24410#if HAVE_PTHREADS < 7 24411 status = pthread_attr_setdetachstate(&attr, &detach); 24412 if( status < 0 ) status = errno; 24413#else 24414 status = pthread_attr_setdetachstate(&attr, detach); 24415#endif 24416 if( status ) return status; 24417 status = pthread_create( &t, &attr, task, NULL ); 24418#if HAVE_PTHREADS < 7 24419 if( status < 0 ) status = errno; 24420#endif 24421 if( status ) return status; 24422#else 24423 /* Draft 4 pthreads */ 24424 status = pthread_create( &t, pthread_attr_default, task, NULL ); 24425 if( status ) return errno; 24426 24427 /* give thread a chance to complete */ 24428 /* it should remain joinable and hence detachable */ 24429 sleep( 1 ); 24430 24431 status = pthread_detach( &t ); 24432 if( status ) return errno; 24433#endif 24434 24435#ifdef HAVE_LINUX_THREADS 24436 pthread_kill_other_threads_np(); 24437#endif 24438 24439 return 0; 24440 24441} 24442 24443_ACEOF 24444if ac_fn_c_try_run "$LINENO"; then : 24445 ol_cv_pthread_lpthread_lmach_lexc=yes 24446else 24447 ol_cv_pthread_lpthread_lmach_lexc=no 24448fi 24449rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 24450 conftest.$ac_objext conftest.beam conftest.$ac_ext 24451fi 24452 24453 24454 # restore the LIBS 24455 LIBS="$ol_LIBS" 24456 24457fi 24458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthread_lmach_lexc" >&5 24459$as_echo "$ol_cv_pthread_lpthread_lmach_lexc" >&6; } 24460 24461 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then 24462 ol_link_pthreads="-lpthread -lmach -lexc" 24463 ol_link_threads=posix 24464 fi 24465fi 24466 24467 24468 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff) 24469if test "$ol_link_threads" = no ; then 24470 # try -lpthread -Wl,-woff,85 24471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread -Wl,-woff,85" >&5 24472$as_echo_n "checking for pthread link with -lpthread -Wl,-woff,85... " >&6; } 24473if ${ol_cv_pthread_lib_lpthread_woff+:} false; then : 24474 $as_echo_n "(cached) " >&6 24475else 24476 24477 # save the flags 24478 ol_LIBS="$LIBS" 24479 LIBS="-lpthread -Wl,-woff,85 $LIBS" 24480 24481 if test "$cross_compiling" = yes; then : 24482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24483/* end confdefs.h. */ 24484 24485/* pthread test headers */ 24486#include <pthread.h> 24487#if HAVE_PTHREADS < 7 24488#include <errno.h> 24489#endif 24490#ifndef NULL 24491#define NULL (void*)0 24492#endif 24493 24494static void *task(p) 24495 void *p; 24496{ 24497 return (void *) (p == NULL); 24498} 24499 24500int 24501main () 24502{ 24503 24504 /* pthread test function */ 24505#ifndef PTHREAD_CREATE_DETACHED 24506#define PTHREAD_CREATE_DETACHED 1 24507#endif 24508 pthread_t t; 24509 int status; 24510 int detach = PTHREAD_CREATE_DETACHED; 24511 24512#if HAVE_PTHREADS > 4 24513 /* Final pthreads */ 24514 pthread_attr_t attr; 24515 24516 status = pthread_attr_init(&attr); 24517 if( status ) return status; 24518 24519#if HAVE_PTHREADS < 7 24520 status = pthread_attr_setdetachstate(&attr, &detach); 24521 if( status < 0 ) status = errno; 24522#else 24523 status = pthread_attr_setdetachstate(&attr, detach); 24524#endif 24525 if( status ) return status; 24526 status = pthread_create( &t, &attr, task, NULL ); 24527#if HAVE_PTHREADS < 7 24528 if( status < 0 ) status = errno; 24529#endif 24530 if( status ) return status; 24531#else 24532 /* Draft 4 pthreads */ 24533 status = pthread_create( &t, pthread_attr_default, task, NULL ); 24534 if( status ) return errno; 24535 24536 /* give thread a chance to complete */ 24537 /* it should remain joinable and hence detachable */ 24538 sleep( 1 ); 24539 24540 status = pthread_detach( &t ); 24541 if( status ) return errno; 24542#endif 24543 24544#ifdef HAVE_LINUX_THREADS 24545 pthread_kill_other_threads_np(); 24546#endif 24547 24548 return 0; 24549 24550 ; 24551 return 0; 24552} 24553_ACEOF 24554if ac_fn_c_try_link "$LINENO"; then : 24555 ol_cv_pthread_lib_lpthread_woff=yes 24556else 24557 ol_cv_pthread_lib_lpthread_woff=no 24558fi 24559rm -f core conftest.err conftest.$ac_objext \ 24560 conftest$ac_exeext conftest.$ac_ext 24561else 24562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24563/* end confdefs.h. */ 24564 24565 24566/* pthread test headers */ 24567#include <pthread.h> 24568#if HAVE_PTHREADS < 7 24569#include <errno.h> 24570#endif 24571#ifndef NULL 24572#define NULL (void*)0 24573#endif 24574 24575static void *task(p) 24576 void *p; 24577{ 24578 return (void *) (p == NULL); 24579} 24580 24581 24582int main(argc, argv) 24583 int argc; 24584 char **argv; 24585{ 24586 24587 /* pthread test function */ 24588#ifndef PTHREAD_CREATE_DETACHED 24589#define PTHREAD_CREATE_DETACHED 1 24590#endif 24591 pthread_t t; 24592 int status; 24593 int detach = PTHREAD_CREATE_DETACHED; 24594 24595#if HAVE_PTHREADS > 4 24596 /* Final pthreads */ 24597 pthread_attr_t attr; 24598 24599 status = pthread_attr_init(&attr); 24600 if( status ) return status; 24601 24602#if HAVE_PTHREADS < 7 24603 status = pthread_attr_setdetachstate(&attr, &detach); 24604 if( status < 0 ) status = errno; 24605#else 24606 status = pthread_attr_setdetachstate(&attr, detach); 24607#endif 24608 if( status ) return status; 24609 status = pthread_create( &t, &attr, task, NULL ); 24610#if HAVE_PTHREADS < 7 24611 if( status < 0 ) status = errno; 24612#endif 24613 if( status ) return status; 24614#else 24615 /* Draft 4 pthreads */ 24616 status = pthread_create( &t, pthread_attr_default, task, NULL ); 24617 if( status ) return errno; 24618 24619 /* give thread a chance to complete */ 24620 /* it should remain joinable and hence detachable */ 24621 sleep( 1 ); 24622 24623 status = pthread_detach( &t ); 24624 if( status ) return errno; 24625#endif 24626 24627#ifdef HAVE_LINUX_THREADS 24628 pthread_kill_other_threads_np(); 24629#endif 24630 24631 return 0; 24632 24633} 24634 24635_ACEOF 24636if ac_fn_c_try_run "$LINENO"; then : 24637 ol_cv_pthread_lib_lpthread_woff=yes 24638else 24639 ol_cv_pthread_lib_lpthread_woff=no 24640fi 24641rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 24642 conftest.$ac_objext conftest.beam conftest.$ac_ext 24643fi 24644 24645 24646 # restore the LIBS 24647 LIBS="$ol_LIBS" 24648 24649fi 24650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lib_lpthread_woff" >&5 24651$as_echo "$ol_cv_pthread_lib_lpthread_woff" >&6; } 24652 24653 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then 24654 ol_link_pthreads="-lpthread -Wl,-woff,85" 24655 ol_link_threads=posix 24656 fi 24657fi 24658 24659 24660 # Pthread try link: -lpthread (ol_cv_pthread_lpthread) 24661if test "$ol_link_threads" = no ; then 24662 # try -lpthread 24663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread" >&5 24664$as_echo_n "checking for pthread link with -lpthread... " >&6; } 24665if ${ol_cv_pthread_lpthread+:} false; then : 24666 $as_echo_n "(cached) " >&6 24667else 24668 24669 # save the flags 24670 ol_LIBS="$LIBS" 24671 LIBS="-lpthread $LIBS" 24672 24673 if test "$cross_compiling" = yes; then : 24674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24675/* end confdefs.h. */ 24676 24677/* pthread test headers */ 24678#include <pthread.h> 24679#if HAVE_PTHREADS < 7 24680#include <errno.h> 24681#endif 24682#ifndef NULL 24683#define NULL (void*)0 24684#endif 24685 24686static void *task(p) 24687 void *p; 24688{ 24689 return (void *) (p == NULL); 24690} 24691 24692int 24693main () 24694{ 24695 24696 /* pthread test function */ 24697#ifndef PTHREAD_CREATE_DETACHED 24698#define PTHREAD_CREATE_DETACHED 1 24699#endif 24700 pthread_t t; 24701 int status; 24702 int detach = PTHREAD_CREATE_DETACHED; 24703 24704#if HAVE_PTHREADS > 4 24705 /* Final pthreads */ 24706 pthread_attr_t attr; 24707 24708 status = pthread_attr_init(&attr); 24709 if( status ) return status; 24710 24711#if HAVE_PTHREADS < 7 24712 status = pthread_attr_setdetachstate(&attr, &detach); 24713 if( status < 0 ) status = errno; 24714#else 24715 status = pthread_attr_setdetachstate(&attr, detach); 24716#endif 24717 if( status ) return status; 24718 status = pthread_create( &t, &attr, task, NULL ); 24719#if HAVE_PTHREADS < 7 24720 if( status < 0 ) status = errno; 24721#endif 24722 if( status ) return status; 24723#else 24724 /* Draft 4 pthreads */ 24725 status = pthread_create( &t, pthread_attr_default, task, NULL ); 24726 if( status ) return errno; 24727 24728 /* give thread a chance to complete */ 24729 /* it should remain joinable and hence detachable */ 24730 sleep( 1 ); 24731 24732 status = pthread_detach( &t ); 24733 if( status ) return errno; 24734#endif 24735 24736#ifdef HAVE_LINUX_THREADS 24737 pthread_kill_other_threads_np(); 24738#endif 24739 24740 return 0; 24741 24742 ; 24743 return 0; 24744} 24745_ACEOF 24746if ac_fn_c_try_link "$LINENO"; then : 24747 ol_cv_pthread_lpthread=yes 24748else 24749 ol_cv_pthread_lpthread=no 24750fi 24751rm -f core conftest.err conftest.$ac_objext \ 24752 conftest$ac_exeext conftest.$ac_ext 24753else 24754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24755/* end confdefs.h. */ 24756 24757 24758/* pthread test headers */ 24759#include <pthread.h> 24760#if HAVE_PTHREADS < 7 24761#include <errno.h> 24762#endif 24763#ifndef NULL 24764#define NULL (void*)0 24765#endif 24766 24767static void *task(p) 24768 void *p; 24769{ 24770 return (void *) (p == NULL); 24771} 24772 24773 24774int main(argc, argv) 24775 int argc; 24776 char **argv; 24777{ 24778 24779 /* pthread test function */ 24780#ifndef PTHREAD_CREATE_DETACHED 24781#define PTHREAD_CREATE_DETACHED 1 24782#endif 24783 pthread_t t; 24784 int status; 24785 int detach = PTHREAD_CREATE_DETACHED; 24786 24787#if HAVE_PTHREADS > 4 24788 /* Final pthreads */ 24789 pthread_attr_t attr; 24790 24791 status = pthread_attr_init(&attr); 24792 if( status ) return status; 24793 24794#if HAVE_PTHREADS < 7 24795 status = pthread_attr_setdetachstate(&attr, &detach); 24796 if( status < 0 ) status = errno; 24797#else 24798 status = pthread_attr_setdetachstate(&attr, detach); 24799#endif 24800 if( status ) return status; 24801 status = pthread_create( &t, &attr, task, NULL ); 24802#if HAVE_PTHREADS < 7 24803 if( status < 0 ) status = errno; 24804#endif 24805 if( status ) return status; 24806#else 24807 /* Draft 4 pthreads */ 24808 status = pthread_create( &t, pthread_attr_default, task, NULL ); 24809 if( status ) return errno; 24810 24811 /* give thread a chance to complete */ 24812 /* it should remain joinable and hence detachable */ 24813 sleep( 1 ); 24814 24815 status = pthread_detach( &t ); 24816 if( status ) return errno; 24817#endif 24818 24819#ifdef HAVE_LINUX_THREADS 24820 pthread_kill_other_threads_np(); 24821#endif 24822 24823 return 0; 24824 24825} 24826 24827_ACEOF 24828if ac_fn_c_try_run "$LINENO"; then : 24829 ol_cv_pthread_lpthread=yes 24830else 24831 ol_cv_pthread_lpthread=no 24832fi 24833rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 24834 conftest.$ac_objext conftest.beam conftest.$ac_ext 24835fi 24836 24837 24838 # restore the LIBS 24839 LIBS="$ol_LIBS" 24840 24841fi 24842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthread" >&5 24843$as_echo "$ol_cv_pthread_lpthread" >&6; } 24844 24845 if test $ol_cv_pthread_lpthread = yes ; then 24846 ol_link_pthreads="-lpthread" 24847 ol_link_threads=posix 24848 fi 24849fi 24850 24851 # Pthread try link: -lc_r (ol_cv_pthread_lc_r) 24852if test "$ol_link_threads" = no ; then 24853 # try -lc_r 24854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lc_r" >&5 24855$as_echo_n "checking for pthread link with -lc_r... " >&6; } 24856if ${ol_cv_pthread_lc_r+:} false; then : 24857 $as_echo_n "(cached) " >&6 24858else 24859 24860 # save the flags 24861 ol_LIBS="$LIBS" 24862 LIBS="-lc_r $LIBS" 24863 24864 if test "$cross_compiling" = yes; then : 24865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24866/* end confdefs.h. */ 24867 24868/* pthread test headers */ 24869#include <pthread.h> 24870#if HAVE_PTHREADS < 7 24871#include <errno.h> 24872#endif 24873#ifndef NULL 24874#define NULL (void*)0 24875#endif 24876 24877static void *task(p) 24878 void *p; 24879{ 24880 return (void *) (p == NULL); 24881} 24882 24883int 24884main () 24885{ 24886 24887 /* pthread test function */ 24888#ifndef PTHREAD_CREATE_DETACHED 24889#define PTHREAD_CREATE_DETACHED 1 24890#endif 24891 pthread_t t; 24892 int status; 24893 int detach = PTHREAD_CREATE_DETACHED; 24894 24895#if HAVE_PTHREADS > 4 24896 /* Final pthreads */ 24897 pthread_attr_t attr; 24898 24899 status = pthread_attr_init(&attr); 24900 if( status ) return status; 24901 24902#if HAVE_PTHREADS < 7 24903 status = pthread_attr_setdetachstate(&attr, &detach); 24904 if( status < 0 ) status = errno; 24905#else 24906 status = pthread_attr_setdetachstate(&attr, detach); 24907#endif 24908 if( status ) return status; 24909 status = pthread_create( &t, &attr, task, NULL ); 24910#if HAVE_PTHREADS < 7 24911 if( status < 0 ) status = errno; 24912#endif 24913 if( status ) return status; 24914#else 24915 /* Draft 4 pthreads */ 24916 status = pthread_create( &t, pthread_attr_default, task, NULL ); 24917 if( status ) return errno; 24918 24919 /* give thread a chance to complete */ 24920 /* it should remain joinable and hence detachable */ 24921 sleep( 1 ); 24922 24923 status = pthread_detach( &t ); 24924 if( status ) return errno; 24925#endif 24926 24927#ifdef HAVE_LINUX_THREADS 24928 pthread_kill_other_threads_np(); 24929#endif 24930 24931 return 0; 24932 24933 ; 24934 return 0; 24935} 24936_ACEOF 24937if ac_fn_c_try_link "$LINENO"; then : 24938 ol_cv_pthread_lc_r=yes 24939else 24940 ol_cv_pthread_lc_r=no 24941fi 24942rm -f core conftest.err conftest.$ac_objext \ 24943 conftest$ac_exeext conftest.$ac_ext 24944else 24945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24946/* end confdefs.h. */ 24947 24948 24949/* pthread test headers */ 24950#include <pthread.h> 24951#if HAVE_PTHREADS < 7 24952#include <errno.h> 24953#endif 24954#ifndef NULL 24955#define NULL (void*)0 24956#endif 24957 24958static void *task(p) 24959 void *p; 24960{ 24961 return (void *) (p == NULL); 24962} 24963 24964 24965int main(argc, argv) 24966 int argc; 24967 char **argv; 24968{ 24969 24970 /* pthread test function */ 24971#ifndef PTHREAD_CREATE_DETACHED 24972#define PTHREAD_CREATE_DETACHED 1 24973#endif 24974 pthread_t t; 24975 int status; 24976 int detach = PTHREAD_CREATE_DETACHED; 24977 24978#if HAVE_PTHREADS > 4 24979 /* Final pthreads */ 24980 pthread_attr_t attr; 24981 24982 status = pthread_attr_init(&attr); 24983 if( status ) return status; 24984 24985#if HAVE_PTHREADS < 7 24986 status = pthread_attr_setdetachstate(&attr, &detach); 24987 if( status < 0 ) status = errno; 24988#else 24989 status = pthread_attr_setdetachstate(&attr, detach); 24990#endif 24991 if( status ) return status; 24992 status = pthread_create( &t, &attr, task, NULL ); 24993#if HAVE_PTHREADS < 7 24994 if( status < 0 ) status = errno; 24995#endif 24996 if( status ) return status; 24997#else 24998 /* Draft 4 pthreads */ 24999 status = pthread_create( &t, pthread_attr_default, task, NULL ); 25000 if( status ) return errno; 25001 25002 /* give thread a chance to complete */ 25003 /* it should remain joinable and hence detachable */ 25004 sleep( 1 ); 25005 25006 status = pthread_detach( &t ); 25007 if( status ) return errno; 25008#endif 25009 25010#ifdef HAVE_LINUX_THREADS 25011 pthread_kill_other_threads_np(); 25012#endif 25013 25014 return 0; 25015 25016} 25017 25018_ACEOF 25019if ac_fn_c_try_run "$LINENO"; then : 25020 ol_cv_pthread_lc_r=yes 25021else 25022 ol_cv_pthread_lc_r=no 25023fi 25024rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 25025 conftest.$ac_objext conftest.beam conftest.$ac_ext 25026fi 25027 25028 25029 # restore the LIBS 25030 LIBS="$ol_LIBS" 25031 25032fi 25033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lc_r" >&5 25034$as_echo "$ol_cv_pthread_lc_r" >&6; } 25035 25036 if test $ol_cv_pthread_lc_r = yes ; then 25037 ol_link_pthreads="-lc_r" 25038 ol_link_threads=posix 25039 fi 25040fi 25041 25042 25043 # Pthread try link: -threads (ol_cv_pthread_threads) 25044if test "$ol_link_threads" = no ; then 25045 # try -threads 25046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -threads" >&5 25047$as_echo_n "checking for pthread link with -threads... " >&6; } 25048if ${ol_cv_pthread_threads+:} false; then : 25049 $as_echo_n "(cached) " >&6 25050else 25051 25052 # save the flags 25053 ol_LIBS="$LIBS" 25054 LIBS="-threads $LIBS" 25055 25056 if test "$cross_compiling" = yes; then : 25057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25058/* end confdefs.h. */ 25059 25060/* pthread test headers */ 25061#include <pthread.h> 25062#if HAVE_PTHREADS < 7 25063#include <errno.h> 25064#endif 25065#ifndef NULL 25066#define NULL (void*)0 25067#endif 25068 25069static void *task(p) 25070 void *p; 25071{ 25072 return (void *) (p == NULL); 25073} 25074 25075int 25076main () 25077{ 25078 25079 /* pthread test function */ 25080#ifndef PTHREAD_CREATE_DETACHED 25081#define PTHREAD_CREATE_DETACHED 1 25082#endif 25083 pthread_t t; 25084 int status; 25085 int detach = PTHREAD_CREATE_DETACHED; 25086 25087#if HAVE_PTHREADS > 4 25088 /* Final pthreads */ 25089 pthread_attr_t attr; 25090 25091 status = pthread_attr_init(&attr); 25092 if( status ) return status; 25093 25094#if HAVE_PTHREADS < 7 25095 status = pthread_attr_setdetachstate(&attr, &detach); 25096 if( status < 0 ) status = errno; 25097#else 25098 status = pthread_attr_setdetachstate(&attr, detach); 25099#endif 25100 if( status ) return status; 25101 status = pthread_create( &t, &attr, task, NULL ); 25102#if HAVE_PTHREADS < 7 25103 if( status < 0 ) status = errno; 25104#endif 25105 if( status ) return status; 25106#else 25107 /* Draft 4 pthreads */ 25108 status = pthread_create( &t, pthread_attr_default, task, NULL ); 25109 if( status ) return errno; 25110 25111 /* give thread a chance to complete */ 25112 /* it should remain joinable and hence detachable */ 25113 sleep( 1 ); 25114 25115 status = pthread_detach( &t ); 25116 if( status ) return errno; 25117#endif 25118 25119#ifdef HAVE_LINUX_THREADS 25120 pthread_kill_other_threads_np(); 25121#endif 25122 25123 return 0; 25124 25125 ; 25126 return 0; 25127} 25128_ACEOF 25129if ac_fn_c_try_link "$LINENO"; then : 25130 ol_cv_pthread_threads=yes 25131else 25132 ol_cv_pthread_threads=no 25133fi 25134rm -f core conftest.err conftest.$ac_objext \ 25135 conftest$ac_exeext conftest.$ac_ext 25136else 25137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25138/* end confdefs.h. */ 25139 25140 25141/* pthread test headers */ 25142#include <pthread.h> 25143#if HAVE_PTHREADS < 7 25144#include <errno.h> 25145#endif 25146#ifndef NULL 25147#define NULL (void*)0 25148#endif 25149 25150static void *task(p) 25151 void *p; 25152{ 25153 return (void *) (p == NULL); 25154} 25155 25156 25157int main(argc, argv) 25158 int argc; 25159 char **argv; 25160{ 25161 25162 /* pthread test function */ 25163#ifndef PTHREAD_CREATE_DETACHED 25164#define PTHREAD_CREATE_DETACHED 1 25165#endif 25166 pthread_t t; 25167 int status; 25168 int detach = PTHREAD_CREATE_DETACHED; 25169 25170#if HAVE_PTHREADS > 4 25171 /* Final pthreads */ 25172 pthread_attr_t attr; 25173 25174 status = pthread_attr_init(&attr); 25175 if( status ) return status; 25176 25177#if HAVE_PTHREADS < 7 25178 status = pthread_attr_setdetachstate(&attr, &detach); 25179 if( status < 0 ) status = errno; 25180#else 25181 status = pthread_attr_setdetachstate(&attr, detach); 25182#endif 25183 if( status ) return status; 25184 status = pthread_create( &t, &attr, task, NULL ); 25185#if HAVE_PTHREADS < 7 25186 if( status < 0 ) status = errno; 25187#endif 25188 if( status ) return status; 25189#else 25190 /* Draft 4 pthreads */ 25191 status = pthread_create( &t, pthread_attr_default, task, NULL ); 25192 if( status ) return errno; 25193 25194 /* give thread a chance to complete */ 25195 /* it should remain joinable and hence detachable */ 25196 sleep( 1 ); 25197 25198 status = pthread_detach( &t ); 25199 if( status ) return errno; 25200#endif 25201 25202#ifdef HAVE_LINUX_THREADS 25203 pthread_kill_other_threads_np(); 25204#endif 25205 25206 return 0; 25207 25208} 25209 25210_ACEOF 25211if ac_fn_c_try_run "$LINENO"; then : 25212 ol_cv_pthread_threads=yes 25213else 25214 ol_cv_pthread_threads=no 25215fi 25216rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 25217 conftest.$ac_objext conftest.beam conftest.$ac_ext 25218fi 25219 25220 25221 # restore the LIBS 25222 LIBS="$ol_LIBS" 25223 25224fi 25225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_threads" >&5 25226$as_echo "$ol_cv_pthread_threads" >&6; } 25227 25228 if test $ol_cv_pthread_threads = yes ; then 25229 ol_link_pthreads="-threads" 25230 ol_link_threads=posix 25231 fi 25232fi 25233 25234 25235 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r) 25236if test "$ol_link_threads" = no ; then 25237 # try -lpthreads -lmach -lexc -lc_r 25238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5 25239$as_echo_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r... " >&6; } 25240if ${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+:} false; then : 25241 $as_echo_n "(cached) " >&6 25242else 25243 25244 # save the flags 25245 ol_LIBS="$LIBS" 25246 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS" 25247 25248 if test "$cross_compiling" = yes; then : 25249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25250/* end confdefs.h. */ 25251 25252/* pthread test headers */ 25253#include <pthread.h> 25254#if HAVE_PTHREADS < 7 25255#include <errno.h> 25256#endif 25257#ifndef NULL 25258#define NULL (void*)0 25259#endif 25260 25261static void *task(p) 25262 void *p; 25263{ 25264 return (void *) (p == NULL); 25265} 25266 25267int 25268main () 25269{ 25270 25271 /* pthread test function */ 25272#ifndef PTHREAD_CREATE_DETACHED 25273#define PTHREAD_CREATE_DETACHED 1 25274#endif 25275 pthread_t t; 25276 int status; 25277 int detach = PTHREAD_CREATE_DETACHED; 25278 25279#if HAVE_PTHREADS > 4 25280 /* Final pthreads */ 25281 pthread_attr_t attr; 25282 25283 status = pthread_attr_init(&attr); 25284 if( status ) return status; 25285 25286#if HAVE_PTHREADS < 7 25287 status = pthread_attr_setdetachstate(&attr, &detach); 25288 if( status < 0 ) status = errno; 25289#else 25290 status = pthread_attr_setdetachstate(&attr, detach); 25291#endif 25292 if( status ) return status; 25293 status = pthread_create( &t, &attr, task, NULL ); 25294#if HAVE_PTHREADS < 7 25295 if( status < 0 ) status = errno; 25296#endif 25297 if( status ) return status; 25298#else 25299 /* Draft 4 pthreads */ 25300 status = pthread_create( &t, pthread_attr_default, task, NULL ); 25301 if( status ) return errno; 25302 25303 /* give thread a chance to complete */ 25304 /* it should remain joinable and hence detachable */ 25305 sleep( 1 ); 25306 25307 status = pthread_detach( &t ); 25308 if( status ) return errno; 25309#endif 25310 25311#ifdef HAVE_LINUX_THREADS 25312 pthread_kill_other_threads_np(); 25313#endif 25314 25315 return 0; 25316 25317 ; 25318 return 0; 25319} 25320_ACEOF 25321if ac_fn_c_try_link "$LINENO"; then : 25322 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes 25323else 25324 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no 25325fi 25326rm -f core conftest.err conftest.$ac_objext \ 25327 conftest$ac_exeext conftest.$ac_ext 25328else 25329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25330/* end confdefs.h. */ 25331 25332 25333/* pthread test headers */ 25334#include <pthread.h> 25335#if HAVE_PTHREADS < 7 25336#include <errno.h> 25337#endif 25338#ifndef NULL 25339#define NULL (void*)0 25340#endif 25341 25342static void *task(p) 25343 void *p; 25344{ 25345 return (void *) (p == NULL); 25346} 25347 25348 25349int main(argc, argv) 25350 int argc; 25351 char **argv; 25352{ 25353 25354 /* pthread test function */ 25355#ifndef PTHREAD_CREATE_DETACHED 25356#define PTHREAD_CREATE_DETACHED 1 25357#endif 25358 pthread_t t; 25359 int status; 25360 int detach = PTHREAD_CREATE_DETACHED; 25361 25362#if HAVE_PTHREADS > 4 25363 /* Final pthreads */ 25364 pthread_attr_t attr; 25365 25366 status = pthread_attr_init(&attr); 25367 if( status ) return status; 25368 25369#if HAVE_PTHREADS < 7 25370 status = pthread_attr_setdetachstate(&attr, &detach); 25371 if( status < 0 ) status = errno; 25372#else 25373 status = pthread_attr_setdetachstate(&attr, detach); 25374#endif 25375 if( status ) return status; 25376 status = pthread_create( &t, &attr, task, NULL ); 25377#if HAVE_PTHREADS < 7 25378 if( status < 0 ) status = errno; 25379#endif 25380 if( status ) return status; 25381#else 25382 /* Draft 4 pthreads */ 25383 status = pthread_create( &t, pthread_attr_default, task, NULL ); 25384 if( status ) return errno; 25385 25386 /* give thread a chance to complete */ 25387 /* it should remain joinable and hence detachable */ 25388 sleep( 1 ); 25389 25390 status = pthread_detach( &t ); 25391 if( status ) return errno; 25392#endif 25393 25394#ifdef HAVE_LINUX_THREADS 25395 pthread_kill_other_threads_np(); 25396#endif 25397 25398 return 0; 25399 25400} 25401 25402_ACEOF 25403if ac_fn_c_try_run "$LINENO"; then : 25404 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes 25405else 25406 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no 25407fi 25408rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 25409 conftest.$ac_objext conftest.beam conftest.$ac_ext 25410fi 25411 25412 25413 # restore the LIBS 25414 LIBS="$ol_LIBS" 25415 25416fi 25417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&5 25418$as_echo "$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&6; } 25419 25420 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then 25421 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r" 25422 ol_link_threads=posix 25423 fi 25424fi 25425 25426 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc) 25427if test "$ol_link_threads" = no ; then 25428 # try -lpthreads -lmach -lexc 25429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads -lmach -lexc" >&5 25430$as_echo_n "checking for pthread link with -lpthreads -lmach -lexc... " >&6; } 25431if ${ol_cv_pthread_lpthreads_lmach_lexc+:} false; then : 25432 $as_echo_n "(cached) " >&6 25433else 25434 25435 # save the flags 25436 ol_LIBS="$LIBS" 25437 LIBS="-lpthreads -lmach -lexc $LIBS" 25438 25439 if test "$cross_compiling" = yes; then : 25440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25441/* end confdefs.h. */ 25442 25443/* pthread test headers */ 25444#include <pthread.h> 25445#if HAVE_PTHREADS < 7 25446#include <errno.h> 25447#endif 25448#ifndef NULL 25449#define NULL (void*)0 25450#endif 25451 25452static void *task(p) 25453 void *p; 25454{ 25455 return (void *) (p == NULL); 25456} 25457 25458int 25459main () 25460{ 25461 25462 /* pthread test function */ 25463#ifndef PTHREAD_CREATE_DETACHED 25464#define PTHREAD_CREATE_DETACHED 1 25465#endif 25466 pthread_t t; 25467 int status; 25468 int detach = PTHREAD_CREATE_DETACHED; 25469 25470#if HAVE_PTHREADS > 4 25471 /* Final pthreads */ 25472 pthread_attr_t attr; 25473 25474 status = pthread_attr_init(&attr); 25475 if( status ) return status; 25476 25477#if HAVE_PTHREADS < 7 25478 status = pthread_attr_setdetachstate(&attr, &detach); 25479 if( status < 0 ) status = errno; 25480#else 25481 status = pthread_attr_setdetachstate(&attr, detach); 25482#endif 25483 if( status ) return status; 25484 status = pthread_create( &t, &attr, task, NULL ); 25485#if HAVE_PTHREADS < 7 25486 if( status < 0 ) status = errno; 25487#endif 25488 if( status ) return status; 25489#else 25490 /* Draft 4 pthreads */ 25491 status = pthread_create( &t, pthread_attr_default, task, NULL ); 25492 if( status ) return errno; 25493 25494 /* give thread a chance to complete */ 25495 /* it should remain joinable and hence detachable */ 25496 sleep( 1 ); 25497 25498 status = pthread_detach( &t ); 25499 if( status ) return errno; 25500#endif 25501 25502#ifdef HAVE_LINUX_THREADS 25503 pthread_kill_other_threads_np(); 25504#endif 25505 25506 return 0; 25507 25508 ; 25509 return 0; 25510} 25511_ACEOF 25512if ac_fn_c_try_link "$LINENO"; then : 25513 ol_cv_pthread_lpthreads_lmach_lexc=yes 25514else 25515 ol_cv_pthread_lpthreads_lmach_lexc=no 25516fi 25517rm -f core conftest.err conftest.$ac_objext \ 25518 conftest$ac_exeext conftest.$ac_ext 25519else 25520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25521/* end confdefs.h. */ 25522 25523 25524/* pthread test headers */ 25525#include <pthread.h> 25526#if HAVE_PTHREADS < 7 25527#include <errno.h> 25528#endif 25529#ifndef NULL 25530#define NULL (void*)0 25531#endif 25532 25533static void *task(p) 25534 void *p; 25535{ 25536 return (void *) (p == NULL); 25537} 25538 25539 25540int main(argc, argv) 25541 int argc; 25542 char **argv; 25543{ 25544 25545 /* pthread test function */ 25546#ifndef PTHREAD_CREATE_DETACHED 25547#define PTHREAD_CREATE_DETACHED 1 25548#endif 25549 pthread_t t; 25550 int status; 25551 int detach = PTHREAD_CREATE_DETACHED; 25552 25553#if HAVE_PTHREADS > 4 25554 /* Final pthreads */ 25555 pthread_attr_t attr; 25556 25557 status = pthread_attr_init(&attr); 25558 if( status ) return status; 25559 25560#if HAVE_PTHREADS < 7 25561 status = pthread_attr_setdetachstate(&attr, &detach); 25562 if( status < 0 ) status = errno; 25563#else 25564 status = pthread_attr_setdetachstate(&attr, detach); 25565#endif 25566 if( status ) return status; 25567 status = pthread_create( &t, &attr, task, NULL ); 25568#if HAVE_PTHREADS < 7 25569 if( status < 0 ) status = errno; 25570#endif 25571 if( status ) return status; 25572#else 25573 /* Draft 4 pthreads */ 25574 status = pthread_create( &t, pthread_attr_default, task, NULL ); 25575 if( status ) return errno; 25576 25577 /* give thread a chance to complete */ 25578 /* it should remain joinable and hence detachable */ 25579 sleep( 1 ); 25580 25581 status = pthread_detach( &t ); 25582 if( status ) return errno; 25583#endif 25584 25585#ifdef HAVE_LINUX_THREADS 25586 pthread_kill_other_threads_np(); 25587#endif 25588 25589 return 0; 25590 25591} 25592 25593_ACEOF 25594if ac_fn_c_try_run "$LINENO"; then : 25595 ol_cv_pthread_lpthreads_lmach_lexc=yes 25596else 25597 ol_cv_pthread_lpthreads_lmach_lexc=no 25598fi 25599rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 25600 conftest.$ac_objext conftest.beam conftest.$ac_ext 25601fi 25602 25603 25604 # restore the LIBS 25605 LIBS="$ol_LIBS" 25606 25607fi 25608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthreads_lmach_lexc" >&5 25609$as_echo "$ol_cv_pthread_lpthreads_lmach_lexc" >&6; } 25610 25611 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then 25612 ol_link_pthreads="-lpthreads -lmach -lexc" 25613 ol_link_threads=posix 25614 fi 25615fi 25616 25617 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc) 25618if test "$ol_link_threads" = no ; then 25619 # try -lpthreads -lexc 25620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads -lexc" >&5 25621$as_echo_n "checking for pthread link with -lpthreads -lexc... " >&6; } 25622if ${ol_cv_pthread_lpthreads_lexc+:} false; then : 25623 $as_echo_n "(cached) " >&6 25624else 25625 25626 # save the flags 25627 ol_LIBS="$LIBS" 25628 LIBS="-lpthreads -lexc $LIBS" 25629 25630 if test "$cross_compiling" = yes; then : 25631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25632/* end confdefs.h. */ 25633 25634/* pthread test headers */ 25635#include <pthread.h> 25636#if HAVE_PTHREADS < 7 25637#include <errno.h> 25638#endif 25639#ifndef NULL 25640#define NULL (void*)0 25641#endif 25642 25643static void *task(p) 25644 void *p; 25645{ 25646 return (void *) (p == NULL); 25647} 25648 25649int 25650main () 25651{ 25652 25653 /* pthread test function */ 25654#ifndef PTHREAD_CREATE_DETACHED 25655#define PTHREAD_CREATE_DETACHED 1 25656#endif 25657 pthread_t t; 25658 int status; 25659 int detach = PTHREAD_CREATE_DETACHED; 25660 25661#if HAVE_PTHREADS > 4 25662 /* Final pthreads */ 25663 pthread_attr_t attr; 25664 25665 status = pthread_attr_init(&attr); 25666 if( status ) return status; 25667 25668#if HAVE_PTHREADS < 7 25669 status = pthread_attr_setdetachstate(&attr, &detach); 25670 if( status < 0 ) status = errno; 25671#else 25672 status = pthread_attr_setdetachstate(&attr, detach); 25673#endif 25674 if( status ) return status; 25675 status = pthread_create( &t, &attr, task, NULL ); 25676#if HAVE_PTHREADS < 7 25677 if( status < 0 ) status = errno; 25678#endif 25679 if( status ) return status; 25680#else 25681 /* Draft 4 pthreads */ 25682 status = pthread_create( &t, pthread_attr_default, task, NULL ); 25683 if( status ) return errno; 25684 25685 /* give thread a chance to complete */ 25686 /* it should remain joinable and hence detachable */ 25687 sleep( 1 ); 25688 25689 status = pthread_detach( &t ); 25690 if( status ) return errno; 25691#endif 25692 25693#ifdef HAVE_LINUX_THREADS 25694 pthread_kill_other_threads_np(); 25695#endif 25696 25697 return 0; 25698 25699 ; 25700 return 0; 25701} 25702_ACEOF 25703if ac_fn_c_try_link "$LINENO"; then : 25704 ol_cv_pthread_lpthreads_lexc=yes 25705else 25706 ol_cv_pthread_lpthreads_lexc=no 25707fi 25708rm -f core conftest.err conftest.$ac_objext \ 25709 conftest$ac_exeext conftest.$ac_ext 25710else 25711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25712/* end confdefs.h. */ 25713 25714 25715/* pthread test headers */ 25716#include <pthread.h> 25717#if HAVE_PTHREADS < 7 25718#include <errno.h> 25719#endif 25720#ifndef NULL 25721#define NULL (void*)0 25722#endif 25723 25724static void *task(p) 25725 void *p; 25726{ 25727 return (void *) (p == NULL); 25728} 25729 25730 25731int main(argc, argv) 25732 int argc; 25733 char **argv; 25734{ 25735 25736 /* pthread test function */ 25737#ifndef PTHREAD_CREATE_DETACHED 25738#define PTHREAD_CREATE_DETACHED 1 25739#endif 25740 pthread_t t; 25741 int status; 25742 int detach = PTHREAD_CREATE_DETACHED; 25743 25744#if HAVE_PTHREADS > 4 25745 /* Final pthreads */ 25746 pthread_attr_t attr; 25747 25748 status = pthread_attr_init(&attr); 25749 if( status ) return status; 25750 25751#if HAVE_PTHREADS < 7 25752 status = pthread_attr_setdetachstate(&attr, &detach); 25753 if( status < 0 ) status = errno; 25754#else 25755 status = pthread_attr_setdetachstate(&attr, detach); 25756#endif 25757 if( status ) return status; 25758 status = pthread_create( &t, &attr, task, NULL ); 25759#if HAVE_PTHREADS < 7 25760 if( status < 0 ) status = errno; 25761#endif 25762 if( status ) return status; 25763#else 25764 /* Draft 4 pthreads */ 25765 status = pthread_create( &t, pthread_attr_default, task, NULL ); 25766 if( status ) return errno; 25767 25768 /* give thread a chance to complete */ 25769 /* it should remain joinable and hence detachable */ 25770 sleep( 1 ); 25771 25772 status = pthread_detach( &t ); 25773 if( status ) return errno; 25774#endif 25775 25776#ifdef HAVE_LINUX_THREADS 25777 pthread_kill_other_threads_np(); 25778#endif 25779 25780 return 0; 25781 25782} 25783 25784_ACEOF 25785if ac_fn_c_try_run "$LINENO"; then : 25786 ol_cv_pthread_lpthreads_lexc=yes 25787else 25788 ol_cv_pthread_lpthreads_lexc=no 25789fi 25790rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 25791 conftest.$ac_objext conftest.beam conftest.$ac_ext 25792fi 25793 25794 25795 # restore the LIBS 25796 LIBS="$ol_LIBS" 25797 25798fi 25799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthreads_lexc" >&5 25800$as_echo "$ol_cv_pthread_lpthreads_lexc" >&6; } 25801 25802 if test $ol_cv_pthread_lpthreads_lexc = yes ; then 25803 ol_link_pthreads="-lpthreads -lexc" 25804 ol_link_threads=posix 25805 fi 25806fi 25807 25808 25809 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads) 25810if test "$ol_link_threads" = no ; then 25811 # try -lpthreads 25812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads" >&5 25813$as_echo_n "checking for pthread link with -lpthreads... " >&6; } 25814if ${ol_cv_pthread_lib_lpthreads+:} false; then : 25815 $as_echo_n "(cached) " >&6 25816else 25817 25818 # save the flags 25819 ol_LIBS="$LIBS" 25820 LIBS="-lpthreads $LIBS" 25821 25822 if test "$cross_compiling" = yes; then : 25823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25824/* end confdefs.h. */ 25825 25826/* pthread test headers */ 25827#include <pthread.h> 25828#if HAVE_PTHREADS < 7 25829#include <errno.h> 25830#endif 25831#ifndef NULL 25832#define NULL (void*)0 25833#endif 25834 25835static void *task(p) 25836 void *p; 25837{ 25838 return (void *) (p == NULL); 25839} 25840 25841int 25842main () 25843{ 25844 25845 /* pthread test function */ 25846#ifndef PTHREAD_CREATE_DETACHED 25847#define PTHREAD_CREATE_DETACHED 1 25848#endif 25849 pthread_t t; 25850 int status; 25851 int detach = PTHREAD_CREATE_DETACHED; 25852 25853#if HAVE_PTHREADS > 4 25854 /* Final pthreads */ 25855 pthread_attr_t attr; 25856 25857 status = pthread_attr_init(&attr); 25858 if( status ) return status; 25859 25860#if HAVE_PTHREADS < 7 25861 status = pthread_attr_setdetachstate(&attr, &detach); 25862 if( status < 0 ) status = errno; 25863#else 25864 status = pthread_attr_setdetachstate(&attr, detach); 25865#endif 25866 if( status ) return status; 25867 status = pthread_create( &t, &attr, task, NULL ); 25868#if HAVE_PTHREADS < 7 25869 if( status < 0 ) status = errno; 25870#endif 25871 if( status ) return status; 25872#else 25873 /* Draft 4 pthreads */ 25874 status = pthread_create( &t, pthread_attr_default, task, NULL ); 25875 if( status ) return errno; 25876 25877 /* give thread a chance to complete */ 25878 /* it should remain joinable and hence detachable */ 25879 sleep( 1 ); 25880 25881 status = pthread_detach( &t ); 25882 if( status ) return errno; 25883#endif 25884 25885#ifdef HAVE_LINUX_THREADS 25886 pthread_kill_other_threads_np(); 25887#endif 25888 25889 return 0; 25890 25891 ; 25892 return 0; 25893} 25894_ACEOF 25895if ac_fn_c_try_link "$LINENO"; then : 25896 ol_cv_pthread_lib_lpthreads=yes 25897else 25898 ol_cv_pthread_lib_lpthreads=no 25899fi 25900rm -f core conftest.err conftest.$ac_objext \ 25901 conftest$ac_exeext conftest.$ac_ext 25902else 25903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25904/* end confdefs.h. */ 25905 25906 25907/* pthread test headers */ 25908#include <pthread.h> 25909#if HAVE_PTHREADS < 7 25910#include <errno.h> 25911#endif 25912#ifndef NULL 25913#define NULL (void*)0 25914#endif 25915 25916static void *task(p) 25917 void *p; 25918{ 25919 return (void *) (p == NULL); 25920} 25921 25922 25923int main(argc, argv) 25924 int argc; 25925 char **argv; 25926{ 25927 25928 /* pthread test function */ 25929#ifndef PTHREAD_CREATE_DETACHED 25930#define PTHREAD_CREATE_DETACHED 1 25931#endif 25932 pthread_t t; 25933 int status; 25934 int detach = PTHREAD_CREATE_DETACHED; 25935 25936#if HAVE_PTHREADS > 4 25937 /* Final pthreads */ 25938 pthread_attr_t attr; 25939 25940 status = pthread_attr_init(&attr); 25941 if( status ) return status; 25942 25943#if HAVE_PTHREADS < 7 25944 status = pthread_attr_setdetachstate(&attr, &detach); 25945 if( status < 0 ) status = errno; 25946#else 25947 status = pthread_attr_setdetachstate(&attr, detach); 25948#endif 25949 if( status ) return status; 25950 status = pthread_create( &t, &attr, task, NULL ); 25951#if HAVE_PTHREADS < 7 25952 if( status < 0 ) status = errno; 25953#endif 25954 if( status ) return status; 25955#else 25956 /* Draft 4 pthreads */ 25957 status = pthread_create( &t, pthread_attr_default, task, NULL ); 25958 if( status ) return errno; 25959 25960 /* give thread a chance to complete */ 25961 /* it should remain joinable and hence detachable */ 25962 sleep( 1 ); 25963 25964 status = pthread_detach( &t ); 25965 if( status ) return errno; 25966#endif 25967 25968#ifdef HAVE_LINUX_THREADS 25969 pthread_kill_other_threads_np(); 25970#endif 25971 25972 return 0; 25973 25974} 25975 25976_ACEOF 25977if ac_fn_c_try_run "$LINENO"; then : 25978 ol_cv_pthread_lib_lpthreads=yes 25979else 25980 ol_cv_pthread_lib_lpthreads=no 25981fi 25982rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 25983 conftest.$ac_objext conftest.beam conftest.$ac_ext 25984fi 25985 25986 25987 # restore the LIBS 25988 LIBS="$ol_LIBS" 25989 25990fi 25991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lib_lpthreads" >&5 25992$as_echo "$ol_cv_pthread_lib_lpthreads" >&6; } 25993 25994 if test $ol_cv_pthread_lib_lpthreads = yes ; then 25995 ol_link_pthreads="-lpthreads" 25996 ol_link_threads=posix 25997 fi 25998fi 25999 26000 26001 if test $ol_link_threads != no ; then 26002 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads" 26003 26004 save_CPPFLAGS="$CPPFLAGS" 26005 save_LIBS="$LIBS" 26006 LIBS="$LTHREAD_LIBS $LIBS" 26007 26008 for ac_func in sched_yield pthread_yield thr_yield 26009do : 26010 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 26011ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 26012if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 26013 cat >>confdefs.h <<_ACEOF 26014#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 26015_ACEOF 26016 26017fi 26018done 26019 26020 26021 if test $ac_cv_func_sched_yield = no && 26022 test $ac_cv_func_pthread_yield = no && 26023 test $ac_cv_func_thr_yield = no ; then 26024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5 26025$as_echo_n "checking for sched_yield in -lrt... " >&6; } 26026if ${ac_cv_lib_rt_sched_yield+:} false; then : 26027 $as_echo_n "(cached) " >&6 26028else 26029 ac_check_lib_save_LIBS=$LIBS 26030LIBS="-lrt $LIBS" 26031cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26032/* end confdefs.h. */ 26033 26034/* Override any GCC internal prototype to avoid an error. 26035 Use char because int might match the return type of a GCC 26036 builtin and then its argument prototype would still apply. */ 26037#ifdef __cplusplus 26038extern "C" 26039#endif 26040char sched_yield (); 26041int 26042main () 26043{ 26044return sched_yield (); 26045 ; 26046 return 0; 26047} 26048_ACEOF 26049if ac_fn_c_try_link "$LINENO"; then : 26050 ac_cv_lib_rt_sched_yield=yes 26051else 26052 ac_cv_lib_rt_sched_yield=no 26053fi 26054rm -f core conftest.err conftest.$ac_objext \ 26055 conftest$ac_exeext conftest.$ac_ext 26056LIBS=$ac_check_lib_save_LIBS 26057fi 26058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5 26059$as_echo "$ac_cv_lib_rt_sched_yield" >&6; } 26060if test "x$ac_cv_lib_rt_sched_yield" = xyes; then : 26061 LTHREAD_LIBS="$LTHREAD_LIBS -lrt" 26062 26063$as_echo "#define HAVE_SCHED_YIELD 1" >>confdefs.h 26064 26065 ac_cv_func_sched_yield=yes 26066else 26067 ac_cv_func_sched_yield=no 26068fi 26069 26070 fi 26071 if test $ac_cv_func_sched_yield = no && 26072 test $ac_cv_func_pthread_yield = no && 26073 test "$ac_cv_func_thr_yield" = no ; then 26074 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not locate sched_yield() or pthread_yield()" >&5 26075$as_echo "$as_me: WARNING: could not locate sched_yield() or pthread_yield()" >&2;} 26076 fi 26077 26078 for ac_func in pthread_kill 26079do : 26080 ac_fn_c_check_func "$LINENO" "pthread_kill" "ac_cv_func_pthread_kill" 26081if test "x$ac_cv_func_pthread_kill" = xyes; then : 26082 cat >>confdefs.h <<_ACEOF 26083#define HAVE_PTHREAD_KILL 1 26084_ACEOF 26085 26086fi 26087done 26088 26089 26090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_rwlock_destroy with <pthread.h>" >&5 26091$as_echo_n "checking for pthread_rwlock_destroy with <pthread.h>... " >&6; } 26092if ${ol_cv_func_pthread_rwlock_destroy+:} false; then : 26093 $as_echo_n "(cached) " >&6 26094else 26095 26096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26097/* end confdefs.h. */ 26098 26099#include <pthread.h> 26100pthread_rwlock_t rwlock; 26101 26102int 26103main () 26104{ 26105pthread_rwlock_destroy(&rwlock); 26106 ; 26107 return 0; 26108} 26109_ACEOF 26110if ac_fn_c_try_link "$LINENO"; then : 26111 ol_cv_func_pthread_rwlock_destroy=yes 26112else 26113 ol_cv_func_pthread_rwlock_destroy=no 26114fi 26115rm -f core conftest.err conftest.$ac_objext \ 26116 conftest$ac_exeext conftest.$ac_ext 26117 26118fi 26119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_func_pthread_rwlock_destroy" >&5 26120$as_echo "$ol_cv_func_pthread_rwlock_destroy" >&6; } 26121 if test $ol_cv_func_pthread_rwlock_destroy = yes ; then 26122 26123$as_echo "#define HAVE_PTHREAD_RWLOCK_DESTROY 1" >>confdefs.h 26124 26125 fi 26126 26127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_detach with <pthread.h>" >&5 26128$as_echo_n "checking for pthread_detach with <pthread.h>... " >&6; } 26129if ${ol_cv_func_pthread_detach+:} false; then : 26130 $as_echo_n "(cached) " >&6 26131else 26132 26133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26134/* end confdefs.h. */ 26135 26136#include <pthread.h> 26137#ifndef NULL 26138#define NULL (void*)0 26139#endif 26140 26141int 26142main () 26143{ 26144pthread_detach(NULL); 26145 ; 26146 return 0; 26147} 26148_ACEOF 26149if ac_fn_c_try_link "$LINENO"; then : 26150 ol_cv_func_pthread_detach=yes 26151else 26152 ol_cv_func_pthread_detach=no 26153fi 26154rm -f core conftest.err conftest.$ac_objext \ 26155 conftest$ac_exeext conftest.$ac_ext 26156 26157fi 26158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_func_pthread_detach" >&5 26159$as_echo "$ol_cv_func_pthread_detach" >&6; } 26160 26161 if test $ol_cv_func_pthread_detach = no ; then 26162 as_fn_error $? "could not locate pthread_detach()" "$LINENO" 5 26163 fi 26164 26165 26166$as_echo "#define HAVE_PTHREAD_DETACH 1" >>confdefs.h 26167 26168 26169 for ac_func in \ 26170 pthread_setconcurrency \ 26171 pthread_getconcurrency \ 26172 thr_setconcurrency \ 26173 thr_getconcurrency \ 26174 26175do : 26176 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 26177ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 26178if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 26179 cat >>confdefs.h <<_ACEOF 26180#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 26181_ACEOF 26182 26183fi 26184done 26185 26186 26187 26188 for ac_func in pthread_kill_other_threads_np 26189do : 26190 ac_fn_c_check_func "$LINENO" "pthread_kill_other_threads_np" "ac_cv_func_pthread_kill_other_threads_np" 26191if test "x$ac_cv_func_pthread_kill_other_threads_np" = xyes; then : 26192 cat >>confdefs.h <<_ACEOF 26193#define HAVE_PTHREAD_KILL_OTHER_THREADS_NP 1 26194_ACEOF 26195 26196fi 26197done 26198 26199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads implementation" >&5 26200$as_echo_n "checking for LinuxThreads implementation... " >&6; } 26201if ${ol_cv_sys_linux_threads+:} false; then : 26202 $as_echo_n "(cached) " >&6 26203else 26204 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np 26205fi 26206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_sys_linux_threads" >&5 26207$as_echo "$ol_cv_sys_linux_threads" >&6; } 26208 26209 26210 26211 26212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads consistency" >&5 26213$as_echo_n "checking for LinuxThreads consistency... " >&6; } 26214if ${ol_cv_linux_threads+:} false; then : 26215 $as_echo_n "(cached) " >&6 26216else 26217 26218 if test $ol_cv_header_linux_threads = yes && 26219 test $ol_cv_sys_linux_threads = yes; then 26220 ol_cv_linux_threads=yes 26221 elif test $ol_cv_header_linux_threads = no && 26222 test $ol_cv_sys_linux_threads = no; then 26223 ol_cv_linux_threads=no 26224 else 26225 ol_cv_linux_threads=error 26226 fi 26227 26228fi 26229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_linux_threads" >&5 26230$as_echo "$ol_cv_linux_threads" >&6; } 26231 26232 26233 if test $ol_cv_linux_threads = error; then 26234 as_fn_error $? "LinuxThreads header/library mismatch" "$LINENO" 5; 26235 fi 26236 26237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if pthread_create() works" >&5 26238$as_echo_n "checking if pthread_create() works... " >&6; } 26239if ${ol_cv_pthread_create_works+:} false; then : 26240 $as_echo_n "(cached) " >&6 26241else 26242 26243 if test "$cross_compiling" = yes; then : 26244 ol_cv_pthread_create_works=yes 26245else 26246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26247/* end confdefs.h. */ 26248 26249 26250/* pthread test headers */ 26251#include <pthread.h> 26252#if HAVE_PTHREADS < 7 26253#include <errno.h> 26254#endif 26255#ifndef NULL 26256#define NULL (void*)0 26257#endif 26258 26259static void *task(p) 26260 void *p; 26261{ 26262 return (void *) (p == NULL); 26263} 26264 26265 26266int main(argc, argv) 26267 int argc; 26268 char **argv; 26269{ 26270 26271 /* pthread test function */ 26272#ifndef PTHREAD_CREATE_DETACHED 26273#define PTHREAD_CREATE_DETACHED 1 26274#endif 26275 pthread_t t; 26276 int status; 26277 int detach = PTHREAD_CREATE_DETACHED; 26278 26279#if HAVE_PTHREADS > 4 26280 /* Final pthreads */ 26281 pthread_attr_t attr; 26282 26283 status = pthread_attr_init(&attr); 26284 if( status ) return status; 26285 26286#if HAVE_PTHREADS < 7 26287 status = pthread_attr_setdetachstate(&attr, &detach); 26288 if( status < 0 ) status = errno; 26289#else 26290 status = pthread_attr_setdetachstate(&attr, detach); 26291#endif 26292 if( status ) return status; 26293 status = pthread_create( &t, &attr, task, NULL ); 26294#if HAVE_PTHREADS < 7 26295 if( status < 0 ) status = errno; 26296#endif 26297 if( status ) return status; 26298#else 26299 /* Draft 4 pthreads */ 26300 status = pthread_create( &t, pthread_attr_default, task, NULL ); 26301 if( status ) return errno; 26302 26303 /* give thread a chance to complete */ 26304 /* it should remain joinable and hence detachable */ 26305 sleep( 1 ); 26306 26307 status = pthread_detach( &t ); 26308 if( status ) return errno; 26309#endif 26310 26311#ifdef HAVE_LINUX_THREADS 26312 pthread_kill_other_threads_np(); 26313#endif 26314 26315 return 0; 26316 26317} 26318 26319_ACEOF 26320if ac_fn_c_try_run "$LINENO"; then : 26321 ol_cv_pthread_create_works=yes 26322else 26323 ol_cv_pthread_create_works=no 26324fi 26325rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 26326 conftest.$ac_objext conftest.beam conftest.$ac_ext 26327fi 26328 26329fi 26330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_create_works" >&5 26331$as_echo "$ol_cv_pthread_create_works" >&6; } 26332 26333 if test $ol_cv_pthread_create_works = no ; then 26334 as_fn_error $? "pthread_create is not usable, check environment settings" "$LINENO" 5 26335 fi 26336 26337 ol_replace_broken_yield=no 26338 26339 if test $ol_replace_broken_yield = yes ; then 26340 26341$as_echo "#define REPLACE_BROKEN_YIELD 1" >>confdefs.h 26342 26343 fi 26344 26345 if test x$ol_with_yielding_select = xauto ; then 26346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if select yields when using pthreads" >&5 26347$as_echo_n "checking if select yields when using pthreads... " >&6; } 26348if ${ol_cv_pthread_select_yields+:} false; then : 26349 $as_echo_n "(cached) " >&6 26350else 26351 26352 if test "$cross_compiling" = yes; then : 26353 ol_cv_pthread_select_yields=cross 26354else 26355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26356/* end confdefs.h. */ 26357 26358#include <sys/types.h> 26359#include <sys/time.h> 26360#include <unistd.h> 26361#include <pthread.h> 26362#ifndef NULL 26363#define NULL (void*) 0 26364#endif 26365 26366static int fildes[2]; 26367 26368static void *task(p) 26369 void *p; 26370{ 26371 int i; 26372 struct timeval tv; 26373 26374 fd_set rfds; 26375 26376 tv.tv_sec=10; 26377 tv.tv_usec=0; 26378 26379 FD_ZERO(&rfds); 26380 FD_SET(fildes[0], &rfds); 26381 26382 /* we're not interested in any fds */ 26383 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv); 26384 26385 if(i < 0) { 26386 perror("select"); 26387 exit(10); 26388 } 26389 26390 exit(0); /* if we exit here, the select blocked the whole process */ 26391} 26392 26393int main(argc, argv) 26394 int argc; 26395 char **argv; 26396{ 26397 pthread_t t; 26398 26399 /* create a pipe to select */ 26400 if(pipe(&fildes[0])) { 26401 perror("select"); 26402 exit(1); 26403 } 26404 26405#ifdef HAVE_PTHREAD_SETCONCURRENCY 26406 (void) pthread_setconcurrency(2); 26407#else 26408#ifdef HAVE_THR_SETCONCURRENCY 26409 /* Set Solaris LWP concurrency to 2 */ 26410 thr_setconcurrency(2); 26411#endif 26412#endif 26413 26414#if HAVE_PTHREADS < 6 26415 pthread_create(&t, pthread_attr_default, task, NULL); 26416#else 26417 pthread_create(&t, NULL, task, NULL); 26418#endif 26419 26420 /* make sure task runs first */ 26421#ifdef HAVE_THR_YIELD 26422 thr_yield(); 26423#elif defined( HAVE_SCHED_YIELD ) 26424 sched_yield(); 26425#elif defined( HAVE_PTHREAD_YIELD ) 26426 pthread_yield(); 26427#endif 26428 26429 exit(2); 26430} 26431_ACEOF 26432if ac_fn_c_try_run "$LINENO"; then : 26433 ol_cv_pthread_select_yields=no 26434else 26435 ol_cv_pthread_select_yields=yes 26436fi 26437rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 26438 conftest.$ac_objext conftest.beam conftest.$ac_ext 26439fi 26440 26441fi 26442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_select_yields" >&5 26443$as_echo "$ol_cv_pthread_select_yields" >&6; } 26444 26445 if test $ol_cv_pthread_select_yields = cross ; then 26446 as_fn_error $? "crossing compiling: use --with-yielding-select=yes|no|manual" "$LINENO" 5 26447 fi 26448 26449 if test $ol_cv_pthread_select_yields = yes ; then 26450 ol_with_yielding_select=yes 26451 fi 26452 fi 26453 26454 CPPFLAGS="$save_CPPFLAGS" 26455 LIBS="$save_LIBS" 26456 else 26457 as_fn_error $? "could not locate usable POSIX Threads" "$LINENO" 5 26458 fi 26459 fi 26460 26461 if test $ol_with_threads = posix ; then 26462 as_fn_error $? "could not locate POSIX Threads" "$LINENO" 5 26463 fi 26464 ;; 26465esac 26466 26467case $ol_with_threads in auto | yes | mach) 26468 26469 for ac_header in mach/cthreads.h cthreads.h 26470do : 26471 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 26472ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 26473if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 26474 cat >>confdefs.h <<_ACEOF 26475#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 26476_ACEOF 26477 26478fi 26479 26480done 26481 26482 if test $ac_cv_header_mach_cthreads_h = yes ; then 26483 ol_with_threads=found 26484 26485 ac_fn_c_check_func "$LINENO" "cthread_fork" "ac_cv_func_cthread_fork" 26486if test "x$ac_cv_func_cthread_fork" = xyes; then : 26487 ol_link_threads=yes 26488fi 26489 26490 26491 if test $ol_link_threads = no ; then 26492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cthread_fork with -all_load" >&5 26493$as_echo_n "checking for cthread_fork with -all_load... " >&6; } 26494if ${ol_cv_cthread_all_load+:} false; then : 26495 $as_echo_n "(cached) " >&6 26496else 26497 26498 save_LIBS="$LIBS" 26499 LIBS="-all_load $LIBS" 26500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26501/* end confdefs.h. */ 26502#include <mach/cthreads.h> 26503int 26504main () 26505{ 26506 26507 cthread_fork((void *)0, (void *)0); 26508 26509 ; 26510 return 0; 26511} 26512_ACEOF 26513if ac_fn_c_try_link "$LINENO"; then : 26514 ol_cv_cthread_all_load=yes 26515else 26516 ol_cv_cthread_all_load=no 26517fi 26518rm -f core conftest.err conftest.$ac_objext \ 26519 conftest$ac_exeext conftest.$ac_ext 26520 LIBS="$save_LIBS" 26521 26522fi 26523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_cthread_all_load" >&5 26524$as_echo "$ol_cv_cthread_all_load" >&6; } 26525 26526 if test $ol_cv_cthread_all_load = yes ; then 26527 LTHREAD_LIBS="$LTHREAD_LIBS -all_load" 26528 ol_link_threads=mach 26529 ol_with_threads=found 26530 fi 26531 fi 26532 26533 elif test $ac_cv_header_cthreads_h = yes ; then 26534 26535 ol_with_threads=found 26536 26537 save_LIBS="$LIBS" 26538 LIBS="$LIBS -lthreads" 26539 ac_fn_c_check_func "$LINENO" "cthread_fork" "ac_cv_func_cthread_fork" 26540if test "x$ac_cv_func_cthread_fork" = xyes; then : 26541 ol_link_threads=yes 26542fi 26543 26544 LIBS="$save_LIBS" 26545 26546 if test $ol_link_threads = yes ; then 26547 LTHREAD_LIBS="-lthreads" 26548 ol_link_threads=mach 26549 ol_with_threads=found 26550 else 26551 as_fn_error $? "could not link with Mach CThreads" "$LINENO" 5 26552 fi 26553 26554 elif test $ol_with_threads = mach ; then 26555 as_fn_error $? "could not locate Mach CThreads" "$LINENO" 5 26556 fi 26557 26558 if test $ol_link_threads = mach ; then 26559 26560$as_echo "#define HAVE_MACH_CTHREADS 1" >>confdefs.h 26561 26562 elif test $ol_with_threads = found ; then 26563 as_fn_error $? "could not link with Mach CThreads" "$LINENO" 5 26564 fi 26565 ;; 26566esac 26567 26568case $ol_with_threads in auto | yes | pth) 26569 26570 for ac_header in pth.h 26571do : 26572 ac_fn_c_check_header_mongrel "$LINENO" "pth.h" "ac_cv_header_pth_h" "$ac_includes_default" 26573if test "x$ac_cv_header_pth_h" = xyes; then : 26574 cat >>confdefs.h <<_ACEOF 26575#define HAVE_PTH_H 1 26576_ACEOF 26577 26578fi 26579 26580done 26581 26582 26583 if test $ac_cv_header_pth_h = yes ; then 26584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pth_version in -lpth" >&5 26585$as_echo_n "checking for pth_version in -lpth... " >&6; } 26586if ${ac_cv_lib_pth_pth_version+:} false; then : 26587 $as_echo_n "(cached) " >&6 26588else 26589 ac_check_lib_save_LIBS=$LIBS 26590LIBS="-lpth $LIBS" 26591cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26592/* end confdefs.h. */ 26593 26594/* Override any GCC internal prototype to avoid an error. 26595 Use char because int might match the return type of a GCC 26596 builtin and then its argument prototype would still apply. */ 26597#ifdef __cplusplus 26598extern "C" 26599#endif 26600char pth_version (); 26601int 26602main () 26603{ 26604return pth_version (); 26605 ; 26606 return 0; 26607} 26608_ACEOF 26609if ac_fn_c_try_link "$LINENO"; then : 26610 ac_cv_lib_pth_pth_version=yes 26611else 26612 ac_cv_lib_pth_pth_version=no 26613fi 26614rm -f core conftest.err conftest.$ac_objext \ 26615 conftest$ac_exeext conftest.$ac_ext 26616LIBS=$ac_check_lib_save_LIBS 26617fi 26618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pth_pth_version" >&5 26619$as_echo "$ac_cv_lib_pth_pth_version" >&6; } 26620if test "x$ac_cv_lib_pth_pth_version" = xyes; then : 26621 have_pth=yes 26622else 26623 have_pth=no 26624fi 26625 26626 26627 if test $have_pth = yes ; then 26628 26629$as_echo "#define HAVE_GNU_PTH 1" >>confdefs.h 26630 26631 LTHREAD_LIBS="$LTHREAD_LIBS -lpth" 26632 ol_link_threads=pth 26633 ol_with_threads=found 26634 26635 if test x$ol_with_yielding_select = xauto ; then 26636 ol_with_yielding_select=yes 26637 fi 26638 fi 26639 fi 26640 ;; 26641esac 26642 26643case $ol_with_threads in auto | yes | lwp) 26644 26645 for ac_header in thread.h synch.h 26646do : 26647 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 26648ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 26649if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 26650 cat >>confdefs.h <<_ACEOF 26651#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 26652_ACEOF 26653 26654fi 26655 26656done 26657 26658 if test $ac_cv_header_thread_h = yes && 26659 test $ac_cv_header_synch_h = yes ; then 26660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thr_create in -lthread" >&5 26661$as_echo_n "checking for thr_create in -lthread... " >&6; } 26662if ${ac_cv_lib_thread_thr_create+:} false; then : 26663 $as_echo_n "(cached) " >&6 26664else 26665 ac_check_lib_save_LIBS=$LIBS 26666LIBS="-lthread $LIBS" 26667cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26668/* end confdefs.h. */ 26669 26670/* Override any GCC internal prototype to avoid an error. 26671 Use char because int might match the return type of a GCC 26672 builtin and then its argument prototype would still apply. */ 26673#ifdef __cplusplus 26674extern "C" 26675#endif 26676char thr_create (); 26677int 26678main () 26679{ 26680return thr_create (); 26681 ; 26682 return 0; 26683} 26684_ACEOF 26685if ac_fn_c_try_link "$LINENO"; then : 26686 ac_cv_lib_thread_thr_create=yes 26687else 26688 ac_cv_lib_thread_thr_create=no 26689fi 26690rm -f core conftest.err conftest.$ac_objext \ 26691 conftest$ac_exeext conftest.$ac_ext 26692LIBS=$ac_check_lib_save_LIBS 26693fi 26694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_thread_thr_create" >&5 26695$as_echo "$ac_cv_lib_thread_thr_create" >&6; } 26696if test "x$ac_cv_lib_thread_thr_create" = xyes; then : 26697 have_thr=yes 26698else 26699 have_thr=no 26700fi 26701 26702 26703 if test $have_thr = yes ; then 26704 26705$as_echo "#define HAVE_THR 1" >>confdefs.h 26706 26707 LTHREAD_LIBS="$LTHREAD_LIBS -lthread" 26708 ol_link_threads=thr 26709 26710 if test x$ol_with_yielding_select = xauto ; then 26711 ol_with_yielding_select=yes 26712 fi 26713 26714 for ac_func in \ 26715 thr_setconcurrency \ 26716 thr_getconcurrency \ 26717 26718do : 26719 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 26720ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 26721if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 26722 cat >>confdefs.h <<_ACEOF 26723#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 26724_ACEOF 26725 26726fi 26727done 26728 26729 fi 26730 fi 26731 26732 for ac_header in lwp/lwp.h 26733do : 26734 ac_fn_c_check_header_mongrel "$LINENO" "lwp/lwp.h" "ac_cv_header_lwp_lwp_h" "$ac_includes_default" 26735if test "x$ac_cv_header_lwp_lwp_h" = xyes; then : 26736 cat >>confdefs.h <<_ACEOF 26737#define HAVE_LWP_LWP_H 1 26738_ACEOF 26739 26740fi 26741 26742done 26743 26744 if test $ac_cv_header_lwp_lwp_h = yes ; then 26745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwp_create in -llwp" >&5 26746$as_echo_n "checking for lwp_create in -llwp... " >&6; } 26747if ${ac_cv_lib_lwp_lwp_create+:} false; then : 26748 $as_echo_n "(cached) " >&6 26749else 26750 ac_check_lib_save_LIBS=$LIBS 26751LIBS="-llwp $LIBS" 26752cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26753/* end confdefs.h. */ 26754 26755/* Override any GCC internal prototype to avoid an error. 26756 Use char because int might match the return type of a GCC 26757 builtin and then its argument prototype would still apply. */ 26758#ifdef __cplusplus 26759extern "C" 26760#endif 26761char lwp_create (); 26762int 26763main () 26764{ 26765return lwp_create (); 26766 ; 26767 return 0; 26768} 26769_ACEOF 26770if ac_fn_c_try_link "$LINENO"; then : 26771 ac_cv_lib_lwp_lwp_create=yes 26772else 26773 ac_cv_lib_lwp_lwp_create=no 26774fi 26775rm -f core conftest.err conftest.$ac_objext \ 26776 conftest$ac_exeext conftest.$ac_ext 26777LIBS=$ac_check_lib_save_LIBS 26778fi 26779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lwp_lwp_create" >&5 26780$as_echo "$ac_cv_lib_lwp_lwp_create" >&6; } 26781if test "x$ac_cv_lib_lwp_lwp_create" = xyes; then : 26782 have_lwp=yes 26783else 26784 have_lwp=no 26785fi 26786 26787 26788 if test $have_lwp = yes ; then 26789 26790$as_echo "#define HAVE_LWP 1" >>confdefs.h 26791 26792 LTHREAD_LIBS="$LTHREAD_LIBS -llwp" 26793 ol_link_threads=lwp 26794 26795 if test x$ol_with_yielding_select = xauto ; then 26796 ol_with_yielding_select=no 26797 fi 26798 fi 26799 fi 26800 ;; 26801esac 26802 26803if test $ol_with_yielding_select = yes ; then 26804 26805$as_echo "#define HAVE_YIELDING_SELECT 1" >>confdefs.h 26806 26807fi 26808 26809if test $ol_with_threads = manual ; then 26810 ol_link_threads=yes 26811 26812 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: thread defines and link options must be set manually" >&5 26813$as_echo "$as_me: WARNING: thread defines and link options must be set manually" >&2;} 26814 26815 for ac_header in pthread.h sched.h 26816do : 26817 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 26818ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 26819if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 26820 cat >>confdefs.h <<_ACEOF 26821#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 26822_ACEOF 26823 26824fi 26825 26826done 26827 26828 for ac_func in sched_yield pthread_yield 26829do : 26830 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 26831ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 26832if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 26833 cat >>confdefs.h <<_ACEOF 26834#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 26835_ACEOF 26836 26837fi 26838done 26839 26840 26841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads pthread.h" >&5 26842$as_echo_n "checking for LinuxThreads pthread.h... " >&6; } 26843if ${ol_cv_header_linux_threads+:} false; then : 26844 $as_echo_n "(cached) " >&6 26845else 26846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26847/* end confdefs.h. */ 26848#include <pthread.h> 26849_ACEOF 26850if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 26851 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then : 26852 ol_cv_header_linux_threads=yes 26853else 26854 ol_cv_header_linux_threads=no 26855fi 26856rm -f conftest* 26857 26858 26859fi 26860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_linux_threads" >&5 26861$as_echo "$ol_cv_header_linux_threads" >&6; } 26862 if test $ol_cv_header_linux_threads = yes; then 26863 26864$as_echo "#define HAVE_LINUX_THREADS 1" >>confdefs.h 26865 26866 fi 26867 26868 26869 for ac_header in mach/cthreads.h 26870do : 26871 ac_fn_c_check_header_mongrel "$LINENO" "mach/cthreads.h" "ac_cv_header_mach_cthreads_h" "$ac_includes_default" 26872if test "x$ac_cv_header_mach_cthreads_h" = xyes; then : 26873 cat >>confdefs.h <<_ACEOF 26874#define HAVE_MACH_CTHREADS_H 1 26875_ACEOF 26876 26877fi 26878 26879done 26880 26881 for ac_header in lwp/lwp.h 26882do : 26883 ac_fn_c_check_header_mongrel "$LINENO" "lwp/lwp.h" "ac_cv_header_lwp_lwp_h" "$ac_includes_default" 26884if test "x$ac_cv_header_lwp_lwp_h" = xyes; then : 26885 cat >>confdefs.h <<_ACEOF 26886#define HAVE_LWP_LWP_H 1 26887_ACEOF 26888 26889fi 26890 26891done 26892 26893 for ac_header in thread.h synch.h 26894do : 26895 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 26896ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 26897if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 26898 cat >>confdefs.h <<_ACEOF 26899#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 26900_ACEOF 26901 26902fi 26903 26904done 26905 26906fi 26907 26908if test $ol_link_threads != no && test $ol_link_threads != nt ; then 26909 26910$as_echo "#define REENTRANT 1" >>confdefs.h 26911 26912 26913$as_echo "#define _REENTRANT 1" >>confdefs.h 26914 26915 26916$as_echo "#define THREAD_SAFE 1" >>confdefs.h 26917 26918 26919$as_echo "#define _THREAD_SAFE 1" >>confdefs.h 26920 26921 26922$as_echo "#define THREADSAFE 1" >>confdefs.h 26923 26924 26925$as_echo "#define _THREADSAFE 1" >>confdefs.h 26926 26927 26928$as_echo "#define _SGI_MP_SOURCE 1" >>confdefs.h 26929 26930 26931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread specific errno" >&5 26932$as_echo_n "checking for thread specific errno... " >&6; } 26933if ${ol_cv_errno_thread_specific+:} false; then : 26934 $as_echo_n "(cached) " >&6 26935else 26936 26937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26938/* end confdefs.h. */ 26939#include <errno.h> 26940int 26941main () 26942{ 26943errno = 0; 26944 ; 26945 return 0; 26946} 26947_ACEOF 26948if ac_fn_c_try_link "$LINENO"; then : 26949 ol_cv_errno_thread_specific=yes 26950else 26951 ol_cv_errno_thread_specific=no 26952fi 26953rm -f core conftest.err conftest.$ac_objext \ 26954 conftest$ac_exeext conftest.$ac_ext 26955 26956fi 26957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_errno_thread_specific" >&5 26958$as_echo "$ol_cv_errno_thread_specific" >&6; } 26959 26960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread specific h_errno" >&5 26961$as_echo_n "checking for thread specific h_errno... " >&6; } 26962if ${ol_cv_h_errno_thread_specific+:} false; then : 26963 $as_echo_n "(cached) " >&6 26964else 26965 26966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26967/* end confdefs.h. */ 26968#include <netdb.h> 26969int 26970main () 26971{ 26972h_errno = 0; 26973 ; 26974 return 0; 26975} 26976_ACEOF 26977if ac_fn_c_try_link "$LINENO"; then : 26978 ol_cv_h_errno_thread_specific=yes 26979else 26980 ol_cv_h_errno_thread_specific=no 26981fi 26982rm -f core conftest.err conftest.$ac_objext \ 26983 conftest$ac_exeext conftest.$ac_ext 26984 26985fi 26986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_h_errno_thread_specific" >&5 26987$as_echo "$ol_cv_h_errno_thread_specific" >&6; } 26988 26989 if test $ol_cv_errno_thread_specific != yes || 26990 test $ol_cv_h_errno_thread_specific != yes ; then 26991 LIBS="$LTHREAD_LIBS $LIBS" 26992 LTHREAD_LIBS="" 26993 fi 26994 26995fi 26996 26997if test $ol_link_threads = no ; then 26998 if test $ol_with_threads = yes ; then 26999 as_fn_error $? "no suitable thread support" "$LINENO" 5 27000 fi 27001 27002 if test $ol_with_threads = auto ; then 27003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no suitable thread support, disabling threads" >&5 27004$as_echo "$as_me: WARNING: no suitable thread support, disabling threads" >&2;} 27005 ol_with_threads=no 27006 fi 27007 27008 27009$as_echo "#define NO_THREADS 1" >>confdefs.h 27010 27011 LTHREAD_LIBS="" 27012 BUILD_THREAD=no 27013else 27014 BUILD_THREAD=yes 27015fi 27016 27017if test $ol_link_threads != no ; then 27018 27019$as_echo "#define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1" >>confdefs.h 27020 27021fi 27022 27023# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: 27024case "$ol_with_threads" in 27025 no) 27026 ol_pthread_ok=no 27027 27028 ;; 27029 *) 27030 ol_found_pthreads=yes 27031 ;; 27032esac 27033 27034ac_ext=c 27035ac_cpp='$CPP $CPPFLAGS' 27036ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 27037ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 27038ac_compiler_gnu=$ac_cv_c_compiler_gnu 27039 27040 27041 case "$ol_found_pthreads" in 27042 yes) 27043 saved_LIBS="$LIBS" 27044 LIBS="$LTHREAD_LIBS $LIBS" 27045 saved_CFLAGS="$CFLAGS" 27046 CFLAGS="$PTHREAD_CFLAGS $CFLAGS" 27047 for ac_func in sem_timedwait 27048do : 27049 ac_fn_c_check_func "$LINENO" "sem_timedwait" "ac_cv_func_sem_timedwait" 27050if test "x$ac_cv_func_sem_timedwait" = xyes; then : 27051 cat >>confdefs.h <<_ACEOF 27052#define HAVE_SEM_TIMEDWAIT 1 27053_ACEOF 27054 27055fi 27056done 27057 27058 LIBS="$saved_LIBS" 27059 { saved_LIBS=; unset saved_LIBS;} 27060 CFLAGS="$saved_CFLAGS" 27061 { saved_CFLAGS=; unset saved_CFLAGS;} 27062 case "$ac_cv_func_sem_timedwait" in 27063 yes) 27064 PTHREAD_LIBS="$LTHREAD_LIBS" 27065 have_pthreads=yes 27066 # Bug 2332: With GCC we need to force a reference to libgcc_s 27067 # (if libgcc_s exists) or the combination of 27068 # threads + setuid + mlockall does not work on linux because 27069 # thread cancellation fails to load libgcc_s with dlopen(). 27070 # We have to pass this all as linker options to avoid argument 27071 # reordering by libtool. 27072 case "$GCC$with_gnu_ld" in 27073 yesyes) 27074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -lgcc_s" >&5 27075$as_echo_n "checking for exit in -lgcc_s... " >&6; } 27076if ${ac_cv_lib_gcc_s_exit+:} false; then : 27077 $as_echo_n "(cached) " >&6 27078else 27079 ac_check_lib_save_LIBS=$LIBS 27080LIBS="-lgcc_s $LIBS" 27081cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27082/* end confdefs.h. */ 27083 27084/* Override any GCC internal prototype to avoid an error. 27085 Use char because int might match the return type of a GCC 27086 builtin and then its argument prototype would still apply. */ 27087#ifdef __cplusplus 27088extern "C" 27089#endif 27090char exit (); 27091int 27092main () 27093{ 27094return exit (); 27095 ; 27096 return 0; 27097} 27098_ACEOF 27099if ac_fn_c_try_link "$LINENO"; then : 27100 ac_cv_lib_gcc_s_exit=yes 27101else 27102 ac_cv_lib_gcc_s_exit=no 27103fi 27104rm -f core conftest.err conftest.$ac_objext \ 27105 conftest$ac_exeext conftest.$ac_ext 27106LIBS=$ac_check_lib_save_LIBS 27107fi 27108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcc_s_exit" >&5 27109$as_echo "$ac_cv_lib_gcc_s_exit" >&6; } 27110if test "x$ac_cv_lib_gcc_s_exit" = xyes; then : 27111 PTHREAD_LIBS="$LTHREAD_LIBS -Wl,--no-as-needed,-lgcc_s,--as-needed" 27112fi 27113 27114 ;; 27115 esac 27116 esac 27117 esac 27118esac 27119 27120case "$have_pthreads" in 27121 yes) 27122 CFLAGS_NTP="$CFLAGS_NTP $PTHREAD_CFLAGS" 27123 saved_LIBS="$LIBS" 27124 LIBS="$LTHREAD_LIBS $LIBS" 27125 saved_CFLAGS="$CFLAGS" 27126 CFLAGS="$PTHREAD_CFLAGS $CFLAGS" 27127 # The cast to long int works around a bug in the HP C Compiler 27128# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 27129# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 27130# This bug is HP SR number 8606223364. 27131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pthread_t" >&5 27132$as_echo_n "checking size of pthread_t... " >&6; } 27133if ${ac_cv_sizeof_pthread_t+:} false; then : 27134 $as_echo_n "(cached) " >&6 27135else 27136 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pthread_t))" "ac_cv_sizeof_pthread_t" " 27137 $ac_includes_default 27138 #include <pthread.h> 27139 27140 27141"; then : 27142 27143else 27144 if test "$ac_cv_type_pthread_t" = yes; then 27145 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 27146$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 27147as_fn_error 77 "cannot compute sizeof (pthread_t) 27148See \`config.log' for more details" "$LINENO" 5; } 27149 else 27150 ac_cv_sizeof_pthread_t=0 27151 fi 27152fi 27153 27154fi 27155{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_t" >&5 27156$as_echo "$ac_cv_sizeof_pthread_t" >&6; } 27157 27158 27159 27160cat >>confdefs.h <<_ACEOF 27161#define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t 27162_ACEOF 27163 27164 27165 LIBISC_PTHREADS_NOTHREADS=pthreads 27166 27167$as_echo "#define ISC_PLATFORM_USETHREADS 1" >>confdefs.h 27168 27169 # 27170 # We'd like to use sigwait() too 27171 # 27172 ac_fn_c_check_func "$LINENO" "sigwait" "ac_cv_func_sigwait" 27173if test "x$ac_cv_func_sigwait" = xyes; then : 27174 have_sigwait=yes 27175else 27176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigwait in -lc" >&5 27177$as_echo_n "checking for sigwait in -lc... " >&6; } 27178if ${ac_cv_lib_c_sigwait+:} false; then : 27179 $as_echo_n "(cached) " >&6 27180else 27181 ac_check_lib_save_LIBS=$LIBS 27182LIBS="-lc $LIBS" 27183cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27184/* end confdefs.h. */ 27185 27186/* Override any GCC internal prototype to avoid an error. 27187 Use char because int might match the return type of a GCC 27188 builtin and then its argument prototype would still apply. */ 27189#ifdef __cplusplus 27190extern "C" 27191#endif 27192char sigwait (); 27193int 27194main () 27195{ 27196return sigwait (); 27197 ; 27198 return 0; 27199} 27200_ACEOF 27201if ac_fn_c_try_link "$LINENO"; then : 27202 ac_cv_lib_c_sigwait=yes 27203else 27204 ac_cv_lib_c_sigwait=no 27205fi 27206rm -f core conftest.err conftest.$ac_objext \ 27207 conftest$ac_exeext conftest.$ac_ext 27208LIBS=$ac_check_lib_save_LIBS 27209fi 27210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_sigwait" >&5 27211$as_echo "$ac_cv_lib_c_sigwait" >&6; } 27212if test "x$ac_cv_lib_c_sigwait" = xyes; then : 27213 have_sigwait=yes 27214else 27215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigwait in -lpthread" >&5 27216$as_echo_n "checking for sigwait in -lpthread... " >&6; } 27217if ${ac_cv_lib_pthread_sigwait+:} false; then : 27218 $as_echo_n "(cached) " >&6 27219else 27220 ac_check_lib_save_LIBS=$LIBS 27221LIBS="-lpthread $LIBS" 27222cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27223/* end confdefs.h. */ 27224 27225/* Override any GCC internal prototype to avoid an error. 27226 Use char because int might match the return type of a GCC 27227 builtin and then its argument prototype would still apply. */ 27228#ifdef __cplusplus 27229extern "C" 27230#endif 27231char sigwait (); 27232int 27233main () 27234{ 27235return sigwait (); 27236 ; 27237 return 0; 27238} 27239_ACEOF 27240if ac_fn_c_try_link "$LINENO"; then : 27241 ac_cv_lib_pthread_sigwait=yes 27242else 27243 ac_cv_lib_pthread_sigwait=no 27244fi 27245rm -f core conftest.err conftest.$ac_objext \ 27246 conftest$ac_exeext conftest.$ac_ext 27247LIBS=$ac_check_lib_save_LIBS 27248fi 27249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sigwait" >&5 27250$as_echo "$ac_cv_lib_pthread_sigwait" >&6; } 27251if test "x$ac_cv_lib_pthread_sigwait" = xyes; then : 27252 have_sigwait=yes 27253else 27254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Psigwait in -lpthread" >&5 27255$as_echo_n "checking for _Psigwait in -lpthread... " >&6; } 27256if ${ac_cv_lib_pthread__Psigwait+:} false; then : 27257 $as_echo_n "(cached) " >&6 27258else 27259 ac_check_lib_save_LIBS=$LIBS 27260LIBS="-lpthread $LIBS" 27261cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27262/* end confdefs.h. */ 27263 27264/* Override any GCC internal prototype to avoid an error. 27265 Use char because int might match the return type of a GCC 27266 builtin and then its argument prototype would still apply. */ 27267#ifdef __cplusplus 27268extern "C" 27269#endif 27270char _Psigwait (); 27271int 27272main () 27273{ 27274return _Psigwait (); 27275 ; 27276 return 0; 27277} 27278_ACEOF 27279if ac_fn_c_try_link "$LINENO"; then : 27280 ac_cv_lib_pthread__Psigwait=yes 27281else 27282 ac_cv_lib_pthread__Psigwait=no 27283fi 27284rm -f core conftest.err conftest.$ac_objext \ 27285 conftest$ac_exeext conftest.$ac_ext 27286LIBS=$ac_check_lib_save_LIBS 27287fi 27288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread__Psigwait" >&5 27289$as_echo "$ac_cv_lib_pthread__Psigwait" >&6; } 27290if test "x$ac_cv_lib_pthread__Psigwait" = xyes; then : 27291 have_sigwait=yes 27292else 27293 have_sigwait=no 27294 27295fi 27296 27297 27298fi 27299 27300 27301fi 27302 27303 27304fi 27305 27306 case "$host:$have_sigwait" in 27307 *-freebsd*:no) 27308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigwait in -lc_r" >&5 27309$as_echo_n "checking for sigwait in -lc_r... " >&6; } 27310if ${ac_cv_lib_c_r_sigwait+:} false; then : 27311 $as_echo_n "(cached) " >&6 27312else 27313 ac_check_lib_save_LIBS=$LIBS 27314LIBS="-lc_r $LIBS" 27315cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27316/* end confdefs.h. */ 27317 27318/* Override any GCC internal prototype to avoid an error. 27319 Use char because int might match the return type of a GCC 27320 builtin and then its argument prototype would still apply. */ 27321#ifdef __cplusplus 27322extern "C" 27323#endif 27324char sigwait (); 27325int 27326main () 27327{ 27328return sigwait (); 27329 ; 27330 return 0; 27331} 27332_ACEOF 27333if ac_fn_c_try_link "$LINENO"; then : 27334 ac_cv_lib_c_r_sigwait=yes 27335else 27336 ac_cv_lib_c_r_sigwait=no 27337fi 27338rm -f core conftest.err conftest.$ac_objext \ 27339 conftest$ac_exeext conftest.$ac_ext 27340LIBS=$ac_check_lib_save_LIBS 27341fi 27342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_sigwait" >&5 27343$as_echo "$ac_cv_lib_c_r_sigwait" >&6; } 27344if test "x$ac_cv_lib_c_r_sigwait" = xyes; then : 27345 have_sigwait=yes 27346 27347fi 27348 27349 esac 27350 case "$have_sigwait" in 27351 yes) 27352 ac_cv_func_sigwait=yes 27353 27354$as_echo "#define HAVE_SIGWAIT 1" >>confdefs.h 27355 27356 esac 27357 27358 for ac_func in pthread_attr_getstacksize 27359do : 27360 ac_fn_c_check_func "$LINENO" "pthread_attr_getstacksize" "ac_cv_func_pthread_attr_getstacksize" 27361if test "x$ac_cv_func_pthread_attr_getstacksize" = xyes; then : 27362 cat >>confdefs.h <<_ACEOF 27363#define HAVE_PTHREAD_ATTR_GETSTACKSIZE 1 27364_ACEOF 27365 27366fi 27367done 27368 27369 for ac_func in pthread_attr_setstacksize sysconf 27370do : 27371 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 27372ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 27373if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 27374 cat >>confdefs.h <<_ACEOF 27375#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 27376_ACEOF 27377 27378fi 27379done 27380 27381 27382 case "$host" in 27383 *-freebsd5.[012]|*-freebsd5.[012].*) 27384 ;; 27385 *-freebsd5.[3456789]|*-freebsd5.[3456789].*|*-freebsd6.*) 27386 27387$as_echo "#define NEED_PTHREAD_SCOPE_SYSTEM 1" >>confdefs.h 27388 27389 ;; 27390 *-bsdi3.*|*-bsdi4.0*) 27391 27392$as_echo "#define NEED_PTHREAD_INIT 1" >>confdefs.h 27393 27394 ;; 27395 *-linux*) 27396 27397$as_echo "#define HAVE_LINUXTHREADS 1" >>confdefs.h 27398 27399 ;; 27400 *-solaris*) 27401 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 27402 27403 for ac_func in pthread_setconcurrency 27404do : 27405 ac_fn_c_check_func "$LINENO" "pthread_setconcurrency" "ac_cv_func_pthread_setconcurrency" 27406if test "x$ac_cv_func_pthread_setconcurrency" = xyes; then : 27407 cat >>confdefs.h <<_ACEOF 27408#define HAVE_PTHREAD_SETCONCURRENCY 1 27409_ACEOF 27410 27411fi 27412done 27413 27414 case "$ac_cv_func_pthread_setconcurrency" in 27415 yes) 27416 27417$as_echo "#define CALL_PTHREAD_SETCONCURRENCY 1" >>confdefs.h 27418 27419 esac 27420 ;; 27421 *-sco-sysv*uw*|*-*-sysv*UnixWare*|*-*-sysv*OpenUNIX*) 27422 27423$as_echo "#define HAVE_UNIXWARE_SIGWAIT 1" >>confdefs.h 27424 27425 ;; 27426 esac 27427 hack_shutup_pthreadonceinit=no 27428 case "$host" in 27429 *-aix5.[123].*) 27430 hack_shutup_pthreadonceinit=yes 27431 ;; 27432 *-solaris2.[89]) 27433 hack_shutup_pthreadonceinit=yes 27434 ;; 27435 *-solaris2.1[0-9]) 27436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if extra braces are needed for PTHREAD_ONCE_INIT" >&5 27437$as_echo_n "checking if extra braces are needed for PTHREAD_ONCE_INIT... " >&6; } 27438if ${ntp_cv_braces_around_pthread_once_init+:} false; then : 27439 $as_echo_n "(cached) " >&6 27440else 27441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27442/* end confdefs.h. */ 27443 27444 #include <pthread.h> 27445 27446int 27447main () 27448{ 27449 27450 static pthread_once_t once_test = 27451 PTHREAD_ONCE_INIT; 27452 27453 27454 ; 27455 return 0; 27456} 27457_ACEOF 27458if ac_fn_c_try_compile "$LINENO"; then : 27459 ntp_cv_braces_around_pthread_once_init=no 27460else 27461 ntp_cv_braces_around_pthread_once_init=yes 27462 27463fi 27464rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27465 27466fi 27467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_braces_around_pthread_once_init" >&5 27468$as_echo "$ntp_cv_braces_around_pthread_once_init" >&6; } 27469 case "$ntp_cv_braces_around_pthread_once_init" in 27470 yes) 27471 hack_shutup_pthreadonceinit=yes 27472 esac 27473 ;; 27474 esac 27475 case "$hack_shutup_pthreadonceinit" in 27476 yes) 27477 27478$as_echo "#define ISC_PLATFORM_BRACEPTHREADONCEINIT 1" >>confdefs.h 27479 27480 esac 27481 LIBS="$saved_LIBS" 27482 { saved_LIBS=; unset saved_LIBS;} 27483 CFLAGS="$saved_CFLAGS" 27484 { saved_CFLAGS=; unset saved_CFLAGS;} 27485 ;; 27486 *) 27487 LIBISC_PTHREADS_NOTHREADS=nothreads 27488 ;; 27489esac 27490 27491 if test "$have_pthreads" != "no"; then 27492 PTHREADS_TRUE= 27493 PTHREADS_FALSE='#' 27494else 27495 PTHREADS_TRUE='#' 27496 PTHREADS_FALSE= 27497fi 27498 27499 27500 27501 27502 27503 27504 27505case "$hw_use_rpl_vsnprintf:$hw_cv_func_vsnprintf" in 27506 no:yes) 27507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if vsnprintf expands \"%m\" to strerror(errno)" >&5 27508$as_echo_n "checking if vsnprintf expands \"%m\" to strerror(errno)... " >&6; } 27509if ${ntp_cv_vsnprintf_percent_m+:} false; then : 27510 $as_echo_n "(cached) " >&6 27511else 27512 if test "$cross_compiling" = yes; then : 27513 ntp_cv_vsnprintf_percent_m=no 27514 27515else 27516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27517/* end confdefs.h. */ 27518 27519 #include <stdarg.h> 27520 #include <errno.h> 27521 #include <stdio.h> 27522 #include <string.h> 27523 27524 int call_vsnprintf( 27525 char * dst, 27526 size_t sz, 27527 const char *fmt, 27528 ... 27529 ); 27530 27531 int call_vsnprintf( 27532 char * dst, 27533 size_t sz, 27534 const char *fmt, 27535 ... 27536 ) 27537 { 27538 va_list ap; 27539 int rc; 27540 27541 va_start(ap, fmt); 27542 rc = vsnprintf(dst, sz, fmt, ap); 27543 va_end(ap); 27544 27545 return rc; 27546 } 27547 27548int 27549main () 27550{ 27551 27552 char sbuf[512]; 27553 char pbuf[512]; 27554 int slen; 27555 27556 strcpy(sbuf, strerror(ENOENT)); 27557 errno = ENOENT; 27558 slen = call_vsnprintf(pbuf, sizeof(pbuf), "%m", 27559 "wrong"); 27560 return strcmp(sbuf, pbuf); 27561 27562 27563 ; 27564 return 0; 27565} 27566_ACEOF 27567if ac_fn_c_try_run "$LINENO"; then : 27568 ntp_cv_vsnprintf_percent_m=yes 27569else 27570 ntp_cv_vsnprintf_percent_m=no 27571fi 27572rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 27573 conftest.$ac_objext conftest.beam conftest.$ac_ext 27574fi 27575 27576 27577fi 27578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_vsnprintf_percent_m" >&5 27579$as_echo "$ntp_cv_vsnprintf_percent_m" >&6; } 27580 case "$ntp_cv_vsnprintf_percent_m" in 27581 yes) 27582 27583$as_echo "#define VSNPRINTF_PERCENT_M 1" >>confdefs.h 27584 27585 esac 27586esac 27587 27588for ac_header in sys/clockctl.h 27589do : 27590 ac_fn_c_check_header_mongrel "$LINENO" "sys/clockctl.h" "ac_cv_header_sys_clockctl_h" "$ac_includes_default" 27591if test "x$ac_cv_header_sys_clockctl_h" = xyes; then : 27592 cat >>confdefs.h <<_ACEOF 27593#define HAVE_SYS_CLOCKCTL_H 1 27594_ACEOF 27595 27596fi 27597 27598done 27599 27600 27601# Check whether --enable-clockctl was given. 27602if test "${enable_clockctl+set}" = set; then : 27603 enableval=$enable_clockctl; ntp_use_dev_clockctl=$enableval 27604else 27605 ntp_use_dev_clockctl=$ac_cv_header_sys_clockctl_h 27606 27607fi 27608 27609 27610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should use /dev/clockctl" >&5 27611$as_echo_n "checking if we should use /dev/clockctl... " >&6; } 27612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_use_dev_clockctl" >&5 27613$as_echo "$ntp_use_dev_clockctl" >&6; } 27614 27615 27616for ac_header in sys/capability.h sys/prctl.h 27617do : 27618 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 27619ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 27620if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 27621 cat >>confdefs.h <<_ACEOF 27622#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 27623_ACEOF 27624 27625fi 27626 27627done 27628 27629 27630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have linux capabilities (libcap)" >&5 27631$as_echo_n "checking if we have linux capabilities (libcap)... " >&6; } 27632 27633case "$ac_cv_header_sys_capability_h$ac_cv_header_sys_prctl_h" in 27634 yesyes) 27635 case "$host" in 27636 mips-sgi-irix*) 27637 ntp_have_linuxcaps=no 27638 ;; 27639 *) ntp_have_linuxcaps=yes 27640 ;; 27641 esac 27642 ;; 27643 *) 27644 ntp_have_linuxcaps=no 27645 ;; 27646esac 27647 27648# Check whether --enable-linuxcaps was given. 27649if test "${enable_linuxcaps+set}" = set; then : 27650 enableval=$enable_linuxcaps; ntp_have_linuxcaps=$enableval 27651 27652fi 27653 27654 27655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_have_linuxcaps" >&5 27656$as_echo "$ntp_have_linuxcaps" >&6; } 27657 27658case "$ntp_have_linuxcaps" in 27659 yes) 27660 27661$as_echo "#define HAVE_LINUX_CAPABILITIES 1" >>confdefs.h 27662 27663 LIBS="$LIBS -lcap" 27664 ;; 27665esac 27666 27667 27668for ac_header in priv.h 27669do : 27670 ac_fn_c_check_header_mongrel "$LINENO" "priv.h" "ac_cv_header_priv_h" "$ac_includes_default" 27671if test "x$ac_cv_header_priv_h" = xyes; then : 27672 cat >>confdefs.h <<_ACEOF 27673#define HAVE_PRIV_H 1 27674_ACEOF 27675 27676fi 27677 27678done 27679 27680 27681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have solaris privileges" >&5 27682$as_echo_n "checking if we have solaris privileges... " >&6; } 27683 27684case "$ac_cv_header_priv_h" in 27685 yes) 27686 case "$host" in 27687 *-solaris*) 27688 ac_fn_c_check_func "$LINENO" "setppriv" "ac_cv_func_setppriv" 27689if test "x$ac_cv_func_setppriv" = xyes; then : 27690 ntp_have_solarisprivs=yes 27691else 27692 ntp_have_solarisprivs=no 27693 27694fi 27695 27696 ;; 27697 esac 27698esac 27699 27700# Check whether --enable-solarisprivs was given. 27701if test "${enable_solarisprivs+set}" = set; then : 27702 enableval=$enable_solarisprivs; ntp_have_solarisprivs=$enableval 27703 27704fi 27705 27706 27707 27708case "$ntp_have_solarisprivs" in 27709 yes) 27710 27711$as_echo "#define HAVE_SOLARIS_PRIVS 1" >>confdefs.h 27712 27713esac 27714 27715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_have_solarisprivs" >&5 27716$as_echo "$ntp_have_solarisprivs" >&6; } 27717 27718case "$ntp_use_dev_clockctl$ntp_have_linuxcaps$ntp_have_solarisprivs" in 27719 *yes*) 27720 27721$as_echo "#define HAVE_DROPROOT 1" >>confdefs.h 27722 27723esac 27724 27725case "$host" in 27726 *-*-darwin*) 27727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_9_init" >&5 27728$as_echo_n "checking for library containing res_9_init... " >&6; } 27729if ${ac_cv_search_res_9_init+:} false; then : 27730 $as_echo_n "(cached) " >&6 27731else 27732 ac_func_search_save_LIBS=$LIBS 27733cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27734/* end confdefs.h. */ 27735 27736/* Override any GCC internal prototype to avoid an error. 27737 Use char because int might match the return type of a GCC 27738 builtin and then its argument prototype would still apply. */ 27739#ifdef __cplusplus 27740extern "C" 27741#endif 27742char res_9_init (); 27743int 27744main () 27745{ 27746return res_9_init (); 27747 ; 27748 return 0; 27749} 27750_ACEOF 27751for ac_lib in '' resolv; do 27752 if test -z "$ac_lib"; then 27753 ac_res="none required" 27754 else 27755 ac_res=-l$ac_lib 27756 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 27757 fi 27758 if ac_fn_c_try_link "$LINENO"; then : 27759 ac_cv_search_res_9_init=$ac_res 27760fi 27761rm -f core conftest.err conftest.$ac_objext \ 27762 conftest$ac_exeext 27763 if ${ac_cv_search_res_9_init+:} false; then : 27764 break 27765fi 27766done 27767if ${ac_cv_search_res_9_init+:} false; then : 27768 27769else 27770 ac_cv_search_res_9_init=no 27771fi 27772rm conftest.$ac_ext 27773LIBS=$ac_func_search_save_LIBS 27774fi 27775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_9_init" >&5 27776$as_echo "$ac_cv_search_res_9_init" >&6; } 27777ac_res=$ac_cv_search_res_9_init 27778if test "$ac_res" != no; then : 27779 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 27780 27781fi 27782 27783 ;; 27784 *) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_init" >&5 27785$as_echo_n "checking for library containing res_init... " >&6; } 27786if ${ac_cv_search_res_init+:} false; then : 27787 $as_echo_n "(cached) " >&6 27788else 27789 ac_func_search_save_LIBS=$LIBS 27790cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27791/* end confdefs.h. */ 27792 27793/* Override any GCC internal prototype to avoid an error. 27794 Use char because int might match the return type of a GCC 27795 builtin and then its argument prototype would still apply. */ 27796#ifdef __cplusplus 27797extern "C" 27798#endif 27799char res_init (); 27800int 27801main () 27802{ 27803return res_init (); 27804 ; 27805 return 0; 27806} 27807_ACEOF 27808for ac_lib in '' resolv; do 27809 if test -z "$ac_lib"; then 27810 ac_res="none required" 27811 else 27812 ac_res=-l$ac_lib 27813 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 27814 fi 27815 if ac_fn_c_try_link "$LINENO"; then : 27816 ac_cv_search_res_init=$ac_res 27817fi 27818rm -f core conftest.err conftest.$ac_objext \ 27819 conftest$ac_exeext 27820 if ${ac_cv_search_res_init+:} false; then : 27821 break 27822fi 27823done 27824if ${ac_cv_search_res_init+:} false; then : 27825 27826else 27827 ac_cv_search_res_init=no 27828fi 27829rm conftest.$ac_ext 27830LIBS=$ac_func_search_save_LIBS 27831fi 27832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_init" >&5 27833$as_echo "$ac_cv_search_res_init" >&6; } 27834ac_res=$ac_cv_search_res_init 27835if test "$ac_res" != no; then : 27836 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 27837 27838fi 27839 27840 ;; 27841esac 27842for ac_header in sys/types.h netinet/in.h arpa/nameser.h netdb.h resolv.h 27843do : 27844 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 27845ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_SYS_TYPES_H 27846# include <sys/types.h> 27847#endif 27848#ifdef HAVE_NETINET_IN_H 27849# include <netinet/in.h> /* inet_ functions / structs */ 27850#endif 27851#ifdef HAVE_ARPA_NAMESER_H 27852# include <arpa/nameser.h> /* DNS HEADER struct */ 27853#endif 27854#ifdef HAVE_NETDB_H 27855# include <netdb.h> 27856#endif 27857" 27858if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 27859 cat >>confdefs.h <<_ACEOF 27860#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 27861_ACEOF 27862 27863fi 27864 27865done 27866 27867 27868#HMS: Why do we do this check so "early"? 27869for ac_func in res_init 27870do : 27871 ac_fn_c_check_func "$LINENO" "res_init" "ac_cv_func_res_init" 27872if test "x$ac_cv_func_res_init" = xyes; then : 27873 cat >>confdefs.h <<_ACEOF 27874#define HAVE_RES_INIT 1 27875_ACEOF 27876 27877else 27878 for ac_func in __res_init 27879do : 27880 ac_fn_c_check_func "$LINENO" "__res_init" "ac_cv_func___res_init" 27881if test "x$ac_cv_func___res_init" = xyes; then : 27882 cat >>confdefs.h <<_ACEOF 27883#define HAVE___RES_INIT 1 27884_ACEOF 27885 27886fi 27887done 27888 27889fi 27890done 27891 27892 27893# We also need -lsocket, but we have tested for that already. 27894ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop" 27895if test "x$ac_cv_func_inet_ntop" = xyes; then : 27896 27897else 27898 27899$as_echo "#define ISC_PLATFORM_NEEDNTOP 1" >>confdefs.h 27900 27901fi 27902 27903ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton" 27904if test "x$ac_cv_func_inet_pton" = xyes; then : 27905 27906else 27907 27908$as_echo "#define ISC_PLATFORM_NEEDPTON 1" >>confdefs.h 27909 27910fi 27911 27912 27913ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default" 27914if test "x$ac_cv_type_uintptr_t" = xyes; then : 27915 27916cat >>confdefs.h <<_ACEOF 27917#define HAVE_UINTPTR_T 1 27918_ACEOF 27919 27920 27921fi 27922ac_fn_c_check_type "$LINENO" "int32" "ac_cv_type_int32" "$ac_includes_default" 27923if test "x$ac_cv_type_int32" = xyes; then : 27924 27925cat >>confdefs.h <<_ACEOF 27926#define HAVE_INT32 1 27927_ACEOF 27928 27929 27930fi 27931ac_fn_c_check_type "$LINENO" "u_int32" "ac_cv_type_u_int32" "$ac_includes_default" 27932if test "x$ac_cv_type_u_int32" = xyes; then : 27933 27934cat >>confdefs.h <<_ACEOF 27935#define HAVE_U_INT32 1 27936_ACEOF 27937 27938 27939fi 27940 27941 27942 27943 27944case "$ac_cv_type_int32::$ac_cv_header_resolv_h" in 27945 no::yes) 27946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int32 with DNS headers included" >&5 27947$as_echo_n "checking for int32 with DNS headers included... " >&6; } 27948if ${ntp_cv_type_int32_with_dns+:} false; then : 27949 $as_echo_n "(cached) " >&6 27950else 27951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27952/* end confdefs.h. */ 27953 27954 #ifdef HAVE_ARPA_NAMESER_H 27955 # include <arpa/nameser.h> 27956 #endif 27957 #include <resolv.h> 27958 27959int 27960main () 27961{ 27962 27963 size_t cb = sizeof(int32); 27964 27965 27966 ; 27967 return 0; 27968} 27969_ACEOF 27970if ac_fn_c_try_compile "$LINENO"; then : 27971 ntp_cv_type_int32_with_dns=yes 27972else 27973 ntp_cv_type_int32_with_dns=no 27974 27975fi 27976rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27977 27978fi 27979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_type_int32_with_dns" >&5 27980$as_echo "$ntp_cv_type_int32_with_dns" >&6; } 27981 case "$ntp_cv_type_int32_with_dns" in 27982 yes) 27983 27984$as_echo "#define HAVE_INT32_ONLY_WITH_DNS 1" >>confdefs.h 27985 27986 esac 27987esac 27988 27989case "$ac_cv_type_u_int32::$ac_cv_header_resolv_h" in 27990 no::yes) 27991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int32 with DNS headers included" >&5 27992$as_echo_n "checking for u_int32 with DNS headers included... " >&6; } 27993if ${ntp_cv_type_u_int32_with_dns+:} false; then : 27994 $as_echo_n "(cached) " >&6 27995else 27996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27997/* end confdefs.h. */ 27998 27999 #ifdef HAVE_ARPA_NAMESER_H 28000 # include <arpa/nameser.h> 28001 #endif 28002 #include <resolv.h> 28003 28004int 28005main () 28006{ 28007 28008 size_t cb = sizeof(u_int32); 28009 28010 28011 ; 28012 return 0; 28013} 28014_ACEOF 28015if ac_fn_c_try_compile "$LINENO"; then : 28016 ntp_cv_type_u_int32_with_dns=yes 28017else 28018 ntp_cv_type_u_int32_with_dns=no 28019 28020fi 28021rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28022 28023fi 28024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_type_u_int32_with_dns" >&5 28025$as_echo "$ntp_cv_type_u_int32_with_dns" >&6; } 28026 case "$ntp_cv_type_u_int32_with_dns" in 28027 yes) 28028 28029$as_echo "#define HAVE_U_INT32_ONLY_WITH_DNS 1" >>confdefs.h 28030 28031 esac 28032esac 28033 28034for ac_header in sys/timepps.h 28035do : 28036 ac_fn_c_check_header_compile "$LINENO" "sys/timepps.h" "ac_cv_header_sys_timepps_h" " 28037 #ifdef HAVE_SYS_TIME_H 28038 # include <sys/time.h> 28039 #endif 28040 #ifdef HAVE_ERRNO_H 28041 # include <errno.h> 28042 #endif 28043 28044 28045" 28046if test "x$ac_cv_header_sys_timepps_h" = xyes; then : 28047 cat >>confdefs.h <<_ACEOF 28048#define HAVE_SYS_TIMEPPS_H 1 28049_ACEOF 28050 28051fi 28052 28053done 28054 28055 28056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec" >&5 28057$as_echo_n "checking for struct timespec... " >&6; } 28058if ${ntp_cv_struct_timespec+:} false; then : 28059 $as_echo_n "(cached) " >&6 28060else 28061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28062/* end confdefs.h. */ 28063 28064 #include <sys/time.h> 28065 /* Under SunOS, timespec is in sys/timepps.h, 28066 which needs errno.h and FRAC */ 28067 #ifdef HAVE_ERRNO_H 28068 # include <errno.h> 28069 #endif 28070 #ifdef HAVE_SYS_TIMEPPS_H 28071 # define FRAC 4294967296 28072 # include <sys/timepps.h> 28073 #endif 28074 28075int 28076main () 28077{ 28078 28079 struct timespec n; 28080 28081 28082 ; 28083 return 0; 28084} 28085_ACEOF 28086if ac_fn_c_try_compile "$LINENO"; then : 28087 ntp_cv_struct_timespec=yes 28088else 28089 ntp_cv_struct_timespec=no 28090 28091fi 28092rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28093 28094fi 28095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_timespec" >&5 28096$as_echo "$ntp_cv_struct_timespec" >&6; } 28097case "$ntp_cv_struct_timespec" in 28098 yes) 28099 28100$as_echo "#define HAVE_STRUCT_TIMESPEC 1" >>confdefs.h 28101 28102esac 28103 28104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct ntptimeval" >&5 28105$as_echo_n "checking for struct ntptimeval... " >&6; } 28106if ${ntp_cv_struct_ntptimeval+:} false; then : 28107 $as_echo_n "(cached) " >&6 28108else 28109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28110/* end confdefs.h. */ 28111 28112 #include <sys/time.h> 28113 #include <sys/timex.h> 28114 28115int 28116main () 28117{ 28118 28119 struct ntptimeval n; 28120 28121 28122 ; 28123 return 0; 28124} 28125_ACEOF 28126if ac_fn_c_try_compile "$LINENO"; then : 28127 ntp_cv_struct_ntptimeval=yes 28128else 28129 ntp_cv_struct_ntptimeval=no 28130 28131fi 28132rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28133 28134fi 28135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_ntptimeval" >&5 28136$as_echo "$ntp_cv_struct_ntptimeval" >&6; } 28137case "$ntp_cv_struct_ntptimeval" in 28138 yes) 28139 28140$as_echo "#define HAVE_STRUCT_NTPTIMEVAL 1" >>confdefs.h 28141 28142esac 28143 28144for ac_header in md5.h 28145do : 28146 ac_fn_c_check_header_compile "$LINENO" "md5.h" "ac_cv_header_md5_h" " 28147 #ifdef HAVE_SYS_TYPES_H 28148 # include <sys/types.h> 28149 #endif 28150 28151 28152" 28153if test "x$ac_cv_header_md5_h" = xyes; then : 28154 cat >>confdefs.h <<_ACEOF 28155#define HAVE_MD5_H 1 28156_ACEOF 28157 28158fi 28159 28160done 28161 28162 28163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing MD5Init" >&5 28164$as_echo_n "checking for library containing MD5Init... " >&6; } 28165if ${ac_cv_search_MD5Init+:} false; then : 28166 $as_echo_n "(cached) " >&6 28167else 28168 ac_func_search_save_LIBS=$LIBS 28169cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28170/* end confdefs.h. */ 28171 28172/* Override any GCC internal prototype to avoid an error. 28173 Use char because int might match the return type of a GCC 28174 builtin and then its argument prototype would still apply. */ 28175#ifdef __cplusplus 28176extern "C" 28177#endif 28178char MD5Init (); 28179int 28180main () 28181{ 28182return MD5Init (); 28183 ; 28184 return 0; 28185} 28186_ACEOF 28187for ac_lib in '' md5 md; do 28188 if test -z "$ac_lib"; then 28189 ac_res="none required" 28190 else 28191 ac_res=-l$ac_lib 28192 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 28193 fi 28194 if ac_fn_c_try_link "$LINENO"; then : 28195 ac_cv_search_MD5Init=$ac_res 28196fi 28197rm -f core conftest.err conftest.$ac_objext \ 28198 conftest$ac_exeext 28199 if ${ac_cv_search_MD5Init+:} false; then : 28200 break 28201fi 28202done 28203if ${ac_cv_search_MD5Init+:} false; then : 28204 28205else 28206 ac_cv_search_MD5Init=no 28207fi 28208rm conftest.$ac_ext 28209LIBS=$ac_func_search_save_LIBS 28210fi 28211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_MD5Init" >&5 28212$as_echo "$ac_cv_search_MD5Init" >&6; } 28213ac_res=$ac_cv_search_MD5Init 28214if test "$ac_res" != no; then : 28215 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 28216 28217fi 28218 28219for ac_func in MD5Init sysconf getdtablesize sigaction sigset sigvec 28220do : 28221 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 28222ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 28223if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 28224 cat >>confdefs.h <<_ACEOF 28225#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 28226_ACEOF 28227 28228fi 28229done 28230 28231 28232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIGIO" >&5 28233$as_echo_n "checking for SIGIO... " >&6; } 28234if ${ntp_cv_hdr_def_sigio+:} false; then : 28235 $as_echo_n "(cached) " >&6 28236else 28237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28238/* end confdefs.h. */ 28239 28240 #include <signal.h> 28241 28242 #ifndef SIGIO 28243 # error 28244 #endif 28245 28246_ACEOF 28247if ac_fn_c_try_cpp "$LINENO"; then : 28248 ntp_cv_hdr_def_sigio=yes 28249else 28250 ntp_cv_hdr_def_sigio=no 28251 28252fi 28253rm -f conftest.err conftest.i conftest.$ac_ext 28254 28255fi 28256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_hdr_def_sigio" >&5 28257$as_echo "$ntp_cv_hdr_def_sigio" >&6; } 28258 28259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to use SIGIO" >&5 28260$as_echo_n "checking if we want to use SIGIO... " >&6; } 28261ans=no 28262case "$ntp_cv_hdr_def_sigio" in 28263 yes) 28264 ans=yes 28265 case "$host" in 28266 alpha*-dec-osf4*|alpha*-dec-osf5*) 28267 ans=no 28268 ;; 28269 *-convex-*) 28270 ans=no 28271 ;; 28272 *-dec-*) 28273 ans=no 28274 ;; 28275 *-pc-cygwin*) 28276 ans=no 28277 ;; 28278 *-sni-sysv*) 28279 ans=no 28280 ;; 28281 *-univel-sysv*) 28282 ans=no 28283 ;; 28284 *-*-irix6*) 28285 ans=no 28286 ;; 28287 *-*-freebsd*) 28288 ans=no 28289 ;; 28290 *-*-*linux*) 28291 ans=no 28292 ;; 28293 *-*-unicosmp*) 28294 ans=no 28295 ;; 28296 *-*-kfreebsd*) 28297 ans=no 28298 ;; 28299 m68k-*-mint*) 28300 ans=no 28301 ;; 28302 esac 28303 ;; 28304esac 28305case "$ans" in 28306 yes) 28307 28308$as_echo "#define HAVE_SIGNALED_IO 1" >>confdefs.h 28309 28310esac 28311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 28312$as_echo "$ans" >&6; } 28313 28314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIGPOLL" >&5 28315$as_echo_n "checking for SIGPOLL... " >&6; } 28316if ${ntp_cv_hdr_def_sigpoll+:} false; then : 28317 $as_echo_n "(cached) " >&6 28318else 28319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28320/* end confdefs.h. */ 28321 28322 #include <signal.h> 28323 28324 #ifndef SIGPOLL 28325 # error 28326 #endif 28327 28328_ACEOF 28329if ac_fn_c_try_cpp "$LINENO"; then : 28330 ntp_cv_hdr_def_sigpoll=yes 28331else 28332 ntp_cv_hdr_def_sigpoll=no 28333 28334fi 28335rm -f conftest.err conftest.i conftest.$ac_ext 28336 28337fi 28338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_hdr_def_sigpoll" >&5 28339$as_echo "$ntp_cv_hdr_def_sigpoll" >&6; } 28340 28341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can use SIGPOLL for UDP I/O" >&5 28342$as_echo_n "checking if we can use SIGPOLL for UDP I/O... " >&6; } 28343ans=no 28344case "$ntp_cv_hdr_def_sigpoll" in 28345 yes) 28346 case "$host" in 28347 mips-sgi-irix*) 28348 ans=no 28349 ;; 28350 vax-dec-bsd) 28351 ans=no 28352 ;; 28353 *-pc-cygwin*) 28354 ans=no 28355 ;; 28356 *-sni-sysv*) 28357 ans=no 28358 ;; 28359 *-*-aix[4-9]*) 28360 # XXX Only verified thru AIX6 28361 ans=no 28362 ;; 28363 *-*-hpux*) 28364 ans=no 28365 ;; 28366 *-*-*linux*) 28367 ans=no 28368 ;; 28369 *-*-osf*) 28370 ans=no 28371 ;; 28372 *-*-qnx*) 28373 ans=no 28374 ;; 28375 *-*-sunos*) 28376 ans=no 28377 ;; 28378 *-*-solaris*) 28379 ans=no 28380 ;; 28381 *-*-ultrix*) 28382 ans=no 28383 ;; 28384 *-*-unicosmp*) 28385 ans=no 28386 ;; 28387 *-*-kfreebsd*) 28388 ans=no 28389 ;; 28390 *) ans=yes 28391 ;; 28392 esac 28393 ;; 28394esac 28395case "$ans" in 28396 yes) 28397 28398$as_echo "#define USE_UDP_SIGPOLL 1" >>confdefs.h 28399 28400esac 28401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 28402$as_echo "$ans" >&6; } 28403 28404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can use SIGPOLL for TTY I/O" >&5 28405$as_echo_n "checking if we can use SIGPOLL for TTY I/O... " >&6; } 28406ans=no 28407case "$ntp_cv_hdr_def_sigpoll" in 28408 yes) 28409 case "$host" in 28410 mips-sgi-irix*) 28411 ans=no 28412 ;; 28413 vax-dec-bsd) 28414 ans=no 28415 ;; 28416 *-pc-cygwin*) 28417 ans=no 28418 ;; 28419 *-sni-sysv*) 28420 ans=no 28421 ;; 28422 *-*-aix[4-9]*) 28423 # XXX Only verified thru AIX6 28424 ans=no 28425 ;; 28426 *-*-hpux*) 28427 ans=no 28428 ;; 28429 *-*-*linux*) 28430 ans=no 28431 ;; 28432 *-*-osf*) 28433 ans=no 28434 ;; 28435 *-*-sunos*) 28436 ans=no 28437 ;; 28438 *-*-ultrix*) 28439 ans=no 28440 ;; 28441 *-*-qnx*) 28442 ans=no 28443 ;; 28444 *-*-unicosmp*) 28445 ans=no 28446 ;; 28447 *-*-kfreebsd*) 28448 ans=no 28449 ;; 28450 *) ans=yes 28451 ;; 28452 esac 28453 ;; 28454esac 28455case "$ans" in 28456 yes) 28457 28458$as_echo "#define USE_TTY_SIGPOLL 1" >>confdefs.h 28459 28460esac 28461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 28462$as_echo "$ans" >&6; } 28463 28464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking number of arguments to gettimeofday()" >&5 28465$as_echo_n "checking number of arguments to gettimeofday()... " >&6; } 28466if ${ntp_cv_func_Xettimeofday_nargs+:} false; then : 28467 $as_echo_n "(cached) " >&6 28468else 28469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28470/* end confdefs.h. */ 28471 28472 #include <sys/time.h> 28473 28474int 28475main () 28476{ 28477 28478 gettimeofday(0, 0); 28479 settimeofday(0, 0); 28480 28481 28482 ; 28483 return 0; 28484} 28485_ACEOF 28486if ac_fn_c_try_compile "$LINENO"; then : 28487 ntp_cv_func_Xettimeofday_nargs=2 28488else 28489 ntp_cv_func_Xettimeofday_nargs=1 28490 28491fi 28492rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28493 28494fi 28495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_func_Xettimeofday_nargs" >&5 28496$as_echo "$ntp_cv_func_Xettimeofday_nargs" >&6; } 28497case "$ntp_cv_func_Xettimeofday_nargs" in 28498 1) 28499 28500$as_echo "#define SYSV_TIMEOFDAY 1" >>confdefs.h 28501 28502esac 28503 28504for ac_func in settimeofday 28505do : 28506 ac_fn_c_check_func "$LINENO" "settimeofday" "ac_cv_func_settimeofday" 28507if test "x$ac_cv_func_settimeofday" = xyes; then : 28508 cat >>confdefs.h <<_ACEOF 28509#define HAVE_SETTIMEOFDAY 1 28510_ACEOF 28511 28512else 28513 28514 case "$host" in 28515 *-*-mpeix*) ac_cv_func_settimeofday=yes 28516 esac 28517 28518fi 28519done 28520 28521 28522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we'll use clock_settime or settimeofday or stime" >&5 28523$as_echo_n "checking if we'll use clock_settime or settimeofday or stime... " >&6; } 28524ntp_warning='GRONK' 28525ans=none 28526case "$ac_cv_func_clock_settime$ac_cv_func_settimeofday$ac_cv_func_stime" in 28527 yes*) 28528 ntp_warning='' 28529 ans='clock_settime()' 28530 ;; 28531 noyes*) 28532 ntp_warning='But clock_settime() would be better (if we had it)' 28533 ans='settimeofday()' 28534 ;; 28535 nonoyes) 28536 ntp_warning='Which is the worst of the three' 28537 ans='stime()' 28538 ;; 28539 *) 28540 case "$build" in 28541 $host) 28542 ntp_warning='Which leaves us with nothing to use!' 28543 esac 28544esac 28545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 28546$as_echo "$ans" >&6; } 28547case "$ntp_warning" in 28548 '') 28549 ;; 28550 *) 28551 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** $ntp_warning ***" >&5 28552$as_echo "$as_me: WARNING: *** $ntp_warning ***" >&2;} 28553 ;; 28554esac 28555 28556 28557LDADD_LIBNTP="$LDADD_LIBNTP $LIBS" 28558LIBS=$__LIBS 28559{ __LIBS=; unset __LIBS;} 28560 28561 28562 28563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for deprecated --with-arlib" >&5 28564$as_echo_n "checking for deprecated --with-arlib... " >&6; } 28565 28566# Check whether --with-arlib was given. 28567if test "${with_arlib+set}" = set; then : 28568 withval=$with_arlib; ans=$withval 28569else 28570 ans=no 28571fi 28572 28573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 28574$as_echo "$ans" >&6; } 28575 28576case "$ans" in 28577 yes) 28578 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Please do not use --with-arlib, arlib is no longer included. In the future, --with-arlib will not be recognized." >&5 28579$as_echo "$as_me: WARNING: Please do not use --with-arlib, arlib is no longer included. In the future, --with-arlib will not be recognized." >&2;} 28580 ;; 28581esac 28582 28583for ac_prog in gawk mawk nawk awk 28584do 28585 # Extract the first word of "$ac_prog", so it can be a program name with args. 28586set dummy $ac_prog; ac_word=$2 28587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 28588$as_echo_n "checking for $ac_word... " >&6; } 28589if ${ac_cv_prog_AWK+:} false; then : 28590 $as_echo_n "(cached) " >&6 28591else 28592 if test -n "$AWK"; then 28593 ac_cv_prog_AWK="$AWK" # Let the user override the test. 28594else 28595as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28596for as_dir in $PATH 28597do 28598 IFS=$as_save_IFS 28599 test -z "$as_dir" && as_dir=. 28600 for ac_exec_ext in '' $ac_executable_extensions; do 28601 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 28602 ac_cv_prog_AWK="$ac_prog" 28603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 28604 break 2 28605 fi 28606done 28607 done 28608IFS=$as_save_IFS 28609 28610fi 28611fi 28612AWK=$ac_cv_prog_AWK 28613if test -n "$AWK"; then 28614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 28615$as_echo "$AWK" >&6; } 28616else 28617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28618$as_echo "no" >&6; } 28619fi 28620 28621 28622 test -n "$AWK" && break 28623done 28624 28625{ ac_cv_prog_AWK=; unset ac_cv_prog_AWK;} 28626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 28627$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 28628set x ${MAKE-make} 28629ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 28630if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 28631 $as_echo_n "(cached) " >&6 28632else 28633 cat >conftest.make <<\_ACEOF 28634SHELL = /bin/sh 28635all: 28636 @echo '@@@%%%=$(MAKE)=@@@%%%' 28637_ACEOF 28638# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 28639case `${MAKE-make} -f conftest.make 2>/dev/null` in 28640 *@@@%%%=?*=@@@%%%*) 28641 eval ac_cv_prog_make_${ac_make}_set=yes;; 28642 *) 28643 eval ac_cv_prog_make_${ac_make}_set=no;; 28644esac 28645rm -f conftest.make 28646fi 28647if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 28648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28649$as_echo "yes" >&6; } 28650 SET_MAKE= 28651else 28652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28653$as_echo "no" >&6; } 28654 SET_MAKE="MAKE=${MAKE-make}" 28655fi 28656 28657 28658 28659 28660 28661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 28662$as_echo_n "checking whether ln -s works... " >&6; } 28663LN_S=$as_ln_s 28664if test "$LN_S" = "ln -s"; then 28665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28666$as_echo "yes" >&6; } 28667else 28668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 28669$as_echo "no, using $LN_S" >&6; } 28670fi 28671 28672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5 28673$as_echo_n "checking for library containing strerror... " >&6; } 28674if ${ac_cv_search_strerror+:} false; then : 28675 $as_echo_n "(cached) " >&6 28676else 28677 ac_func_search_save_LIBS=$LIBS 28678cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28679/* end confdefs.h. */ 28680 28681/* Override any GCC internal prototype to avoid an error. 28682 Use char because int might match the return type of a GCC 28683 builtin and then its argument prototype would still apply. */ 28684#ifdef __cplusplus 28685extern "C" 28686#endif 28687char strerror (); 28688int 28689main () 28690{ 28691return strerror (); 28692 ; 28693 return 0; 28694} 28695_ACEOF 28696for ac_lib in '' cposix; do 28697 if test -z "$ac_lib"; then 28698 ac_res="none required" 28699 else 28700 ac_res=-l$ac_lib 28701 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 28702 fi 28703 if ac_fn_c_try_link "$LINENO"; then : 28704 ac_cv_search_strerror=$ac_res 28705fi 28706rm -f core conftest.err conftest.$ac_objext \ 28707 conftest$ac_exeext 28708 if ${ac_cv_search_strerror+:} false; then : 28709 break 28710fi 28711done 28712if ${ac_cv_search_strerror+:} false; then : 28713 28714else 28715 ac_cv_search_strerror=no 28716fi 28717rm conftest.$ac_ext 28718LIBS=$ac_func_search_save_LIBS 28719fi 28720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5 28721$as_echo "$ac_cv_search_strerror" >&6; } 28722ac_res=$ac_cv_search_strerror 28723if test "$ac_res" != no; then : 28724 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 28725 28726fi 28727 28728 28729 28730# Extract the first word of "perl", so it can be a program name with args. 28731set dummy perl; ac_word=$2 28732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 28733$as_echo_n "checking for $ac_word... " >&6; } 28734if ${ac_cv_path_PATH_PERL+:} false; then : 28735 $as_echo_n "(cached) " >&6 28736else 28737 case $PATH_PERL in 28738 [\\/]* | ?:[\\/]*) 28739 ac_cv_path_PATH_PERL="$PATH_PERL" # Let the user override the test with a path. 28740 ;; 28741 *) 28742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28743for as_dir in $PATH 28744do 28745 IFS=$as_save_IFS 28746 test -z "$as_dir" && as_dir=. 28747 for ac_exec_ext in '' $ac_executable_extensions; do 28748 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 28749 ac_cv_path_PATH_PERL="$as_dir/$ac_word$ac_exec_ext" 28750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 28751 break 2 28752 fi 28753done 28754 done 28755IFS=$as_save_IFS 28756 28757 ;; 28758esac 28759fi 28760PATH_PERL=$ac_cv_path_PATH_PERL 28761if test -n "$PATH_PERL"; then 28762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_PERL" >&5 28763$as_echo "$PATH_PERL" >&6; } 28764else 28765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28766$as_echo "no" >&6; } 28767fi 28768 28769 28770{ ac_cv_path_PATH_PERL=; unset ac_cv_path_PATH_PERL;} 28771# Extract the first word of "test", so it can be a program name with args. 28772set dummy test; ac_word=$2 28773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 28774$as_echo_n "checking for $ac_word... " >&6; } 28775if ${ac_cv_path_PATH_TEST+:} false; then : 28776 $as_echo_n "(cached) " >&6 28777else 28778 case $PATH_TEST in 28779 [\\/]* | ?:[\\/]*) 28780 ac_cv_path_PATH_TEST="$PATH_TEST" # Let the user override the test with a path. 28781 ;; 28782 *) 28783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28784for as_dir in $PATH 28785do 28786 IFS=$as_save_IFS 28787 test -z "$as_dir" && as_dir=. 28788 for ac_exec_ext in '' $ac_executable_extensions; do 28789 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 28790 ac_cv_path_PATH_TEST="$as_dir/$ac_word$ac_exec_ext" 28791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 28792 break 2 28793 fi 28794done 28795 done 28796IFS=$as_save_IFS 28797 28798 ;; 28799esac 28800fi 28801PATH_TEST=$ac_cv_path_PATH_TEST 28802if test -n "$PATH_TEST"; then 28803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_TEST" >&5 28804$as_echo "$PATH_TEST" >&6; } 28805else 28806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28807$as_echo "no" >&6; } 28808fi 28809 28810 28811{ ac_cv_path_PATH_TEST=; unset ac_cv_path_PATH_TEST;} 28812test -z "$CONFIG_SHELL" && CONFIG_SHELL=/bin/sh 28813 28814 28815# Check whether --with-net-snmp-config was given. 28816if test "${with_net_snmp_config+set}" = set; then : 28817 withval=$with_net_snmp_config; ans=$withval 28818else 28819 ans=yes 28820 28821fi 28822 28823case "$ans" in 28824 no) 28825 ;; 28826 yes) 28827 ans=net-snmp-config 28828 ;; 28829 /*) 28830 ;; 28831 */*) 28832 as_fn_error $? "--with-net-snmp-config takes either a name or an absolute path" "$LINENO" 5 28833 ;; 28834 *) 28835 ;; 28836esac 28837PROG_NET_SNMP_CONFIG=$ans 28838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for net-snmp-config path" >&5 28839$as_echo_n "checking for net-snmp-config path... " >&6; } 28840case "$PROG_NET_SNMP_CONFIG" in 28841 no) ;; 28842 /*) 28843 PATH_NET_SNMP_CONFIG=$PROG_NET_SNMP_CONFIG 28844 ;; 28845 *) 28846 # Extract the first word of "$PROG_NET_SNMP_CONFIG", so it can be a program name with args. 28847set dummy $PROG_NET_SNMP_CONFIG; ac_word=$2 28848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 28849$as_echo_n "checking for $ac_word... " >&6; } 28850if ${ac_cv_path_PATH_NET_SNMP_CONFIG+:} false; then : 28851 $as_echo_n "(cached) " >&6 28852else 28853 case $PATH_NET_SNMP_CONFIG in 28854 [\\/]* | ?:[\\/]*) 28855 ac_cv_path_PATH_NET_SNMP_CONFIG="$PATH_NET_SNMP_CONFIG" # Let the user override the test with a path. 28856 ;; 28857 *) 28858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28859for as_dir in $PATH 28860do 28861 IFS=$as_save_IFS 28862 test -z "$as_dir" && as_dir=. 28863 for ac_exec_ext in '' $ac_executable_extensions; do 28864 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 28865 ac_cv_path_PATH_NET_SNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext" 28866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 28867 break 2 28868 fi 28869done 28870 done 28871IFS=$as_save_IFS 28872 28873 ;; 28874esac 28875fi 28876PATH_NET_SNMP_CONFIG=$ac_cv_path_PATH_NET_SNMP_CONFIG 28877if test -n "$PATH_NET_SNMP_CONFIG"; then 28878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_NET_SNMP_CONFIG" >&5 28879$as_echo "$PATH_NET_SNMP_CONFIG" >&6; } 28880else 28881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28882$as_echo "no" >&6; } 28883fi 28884 28885 28886 { ac_cv_path_PATH_NET_SNMP_CONFIG=; unset ac_cv_path_PATH_NET_SNMP_CONFIG;} 28887;; 28888esac 28889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_NET_SNMP_CONFIG" >&5 28890$as_echo "$PATH_NET_SNMP_CONFIG" >&6; } 28891 28892case "$host" in 28893 *-*-vxworks*) 28894 ac_link="$ac_link $VX_KERNEL" 28895 ;; 28896esac 28897 28898# HMS: a check for -lnsl used to be here - now being done in NTP_LIBNTP 28899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing openlog" >&5 28900$as_echo_n "checking for library containing openlog... " >&6; } 28901if ${ac_cv_search_openlog+:} false; then : 28902 $as_echo_n "(cached) " >&6 28903else 28904 ac_func_search_save_LIBS=$LIBS 28905cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28906/* end confdefs.h. */ 28907 28908/* Override any GCC internal prototype to avoid an error. 28909 Use char because int might match the return type of a GCC 28910 builtin and then its argument prototype would still apply. */ 28911#ifdef __cplusplus 28912extern "C" 28913#endif 28914char openlog (); 28915int 28916main () 28917{ 28918return openlog (); 28919 ; 28920 return 0; 28921} 28922_ACEOF 28923for ac_lib in '' gen syslog; do 28924 if test -z "$ac_lib"; then 28925 ac_res="none required" 28926 else 28927 ac_res=-l$ac_lib 28928 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 28929 fi 28930 if ac_fn_c_try_link "$LINENO"; then : 28931 ac_cv_search_openlog=$ac_res 28932fi 28933rm -f core conftest.err conftest.$ac_objext \ 28934 conftest$ac_exeext 28935 if ${ac_cv_search_openlog+:} false; then : 28936 break 28937fi 28938done 28939if ${ac_cv_search_openlog+:} false; then : 28940 28941else 28942 ac_cv_search_openlog=no 28943fi 28944rm conftest.$ac_ext 28945LIBS=$ac_func_search_save_LIBS 28946fi 28947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_openlog" >&5 28948$as_echo "$ac_cv_search_openlog" >&6; } 28949ac_res=$ac_cv_search_openlog 28950if test "$ac_res" != no; then : 28951 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 28952 28953fi 28954 28955# XXX library list will be in ac_cv_search_openlog 28956 28957# LIBSECCOMP is off by default -- needs testing with all the features 28958# Please send bug reports to loganaden@gmail.com 28959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to use libseccomp sandboxing (EXPERIMENTAL)" >&5 28960$as_echo_n "checking if we want to use libseccomp sandboxing (EXPERIMENTAL)... " >&6; } 28961# Check whether --enable-libseccomp was given. 28962if test "${enable_libseccomp+set}" = set; then : 28963 enableval=$enable_libseccomp; ntp_ok=$enableval 28964else 28965 ntp_ok=no 28966 28967fi 28968 28969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 28970$as_echo "$ntp_ok" >&6; } 28971case "$ntp_ok" in 28972 yes) 28973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing seccomp_init" >&5 28974$as_echo_n "checking for library containing seccomp_init... " >&6; } 28975if ${ac_cv_search_seccomp_init+:} false; then : 28976 $as_echo_n "(cached) " >&6 28977else 28978 ac_func_search_save_LIBS=$LIBS 28979cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28980/* end confdefs.h. */ 28981 28982/* Override any GCC internal prototype to avoid an error. 28983 Use char because int might match the return type of a GCC 28984 builtin and then its argument prototype would still apply. */ 28985#ifdef __cplusplus 28986extern "C" 28987#endif 28988char seccomp_init (); 28989int 28990main () 28991{ 28992return seccomp_init (); 28993 ; 28994 return 0; 28995} 28996_ACEOF 28997for ac_lib in '' seccomp; do 28998 if test -z "$ac_lib"; then 28999 ac_res="none required" 29000 else 29001 ac_res=-l$ac_lib 29002 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 29003 fi 29004 if ac_fn_c_try_link "$LINENO"; then : 29005 ac_cv_search_seccomp_init=$ac_res 29006fi 29007rm -f core conftest.err conftest.$ac_objext \ 29008 conftest$ac_exeext 29009 if ${ac_cv_search_seccomp_init+:} false; then : 29010 break 29011fi 29012done 29013if ${ac_cv_search_seccomp_init+:} false; then : 29014 29015else 29016 ac_cv_search_seccomp_init=no 29017fi 29018rm conftest.$ac_ext 29019LIBS=$ac_func_search_save_LIBS 29020fi 29021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_seccomp_init" >&5 29022$as_echo "$ac_cv_search_seccomp_init" >&6; } 29023ac_res=$ac_cv_search_seccomp_init 29024if test "$ac_res" != no; then : 29025 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 29026 29027$as_echo "#define LIBSECCOMP 1" >>confdefs.h 29028 29029 29030fi 29031 29032 if test "$cross_compiling" = yes; then : 29033 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 29034$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 29035as_fn_error $? "cannot run test program while cross compiling 29036See \`config.log' for more details" "$LINENO" 5; } 29037else 29038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29039/* end confdefs.h. */ 29040 29041 #include <stdio.h> 29042 #include <stdlib.h> 29043 #include <errno.h> 29044 #include <sys/prctl.h> 29045 #include <linux/seccomp.h> 29046 29047 int main(void) 29048 { 29049 int ret; 29050 ret = prctl(PR_GET_SECCOMP, 0, 0, 0, 0); 29051 if (ret < 0) { 29052 switch (errno) { 29053 case ENOSYS: 29054 return 1; 29055 case EINVAL: 29056 return 1; 29057 default: 29058 return 1; 29059 } 29060 } 29061 ret = 29062 prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, NULL, 0, 0); 29063 if (ret < 0) { 29064 switch (errno) { 29065 case EINVAL: 29066 return 1; 29067 case EFAULT: 29068 return 0; 29069 default: 29070 return 1; 29071 } 29072 } 29073return 1; 29074} 29075 29076 29077_ACEOF 29078if ac_fn_c_try_run "$LINENO"; then : 29079 29080$as_echo "#define KERN_SECCOMP 1" >>confdefs.h 29081 29082 29083fi 29084rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 29085 conftest.$ac_objext conftest.beam conftest.$ac_ext 29086fi 29087 29088 ;; 29089esac 29090 29091 29092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for facilitynames in syslog.h" >&5 29093$as_echo_n "checking for facilitynames in syslog.h... " >&6; } 29094if ${ac_cv_HAVE_SYSLOG_FACILITYNAMES+:} false; then : 29095 $as_echo_n "(cached) " >&6 29096else 29097 29098cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29099/* end confdefs.h. */ 29100 29101#define SYSLOG_NAMES 29102#include <stdlib.h> 29103#include <syslog.h> 29104 29105int 29106main () 29107{ 29108 void *fnames; fnames = facilitynames; 29109 ; 29110 return 0; 29111} 29112_ACEOF 29113if ac_fn_c_try_compile "$LINENO"; then : 29114 ac_cv_HAVE_SYSLOG_FACILITYNAMES=yes 29115else 29116 ac_cv_HAVE_SYSLOG_FACILITYNAMES=no 29117fi 29118rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 29119fi 29120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_HAVE_SYSLOG_FACILITYNAMES" >&5 29121$as_echo "$ac_cv_HAVE_SYSLOG_FACILITYNAMES" >&6; } 29122case "$ac_cv_HAVE_SYSLOG_FACILITYNAMES" in 29123 yes) 29124 29125$as_echo "#define HAVE_SYSLOG_FACILITYNAMES 1" >>confdefs.h 29126 29127 ;; 29128 no) 29129 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No facilitynames in <syslog.h>" >&5 29130$as_echo "$as_me: WARNING: No facilitynames in <syslog.h>" >&2;} 29131 ;; 29132 cross) 29133 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: facilitynames in <syslog.h> - cross-compiling" >&5 29134$as_echo "$as_me: WARNING: facilitynames in <syslog.h> - cross-compiling" >&2;} 29135 ;; 29136esac 29137 29138 29139 29140case "$host" in 29141 *-*-*linux*) ;; 29142 *-*-osf4*) ;; 29143 *-*-osf5*) ;; 29144 *) 29145 # HMS: Make sure we check for -lrt for clock_* before this... 29146 case "$ac_cv_search_clock_gettime" in 29147 '') as_fn_error $? "Internal Error: Haven't looked for clock_gettime() yet!" "$LINENO" 5 ;; 29148 esac 29149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sched_setscheduler" >&5 29150$as_echo_n "checking for library containing sched_setscheduler... " >&6; } 29151if ${ac_cv_search_sched_setscheduler+:} false; then : 29152 $as_echo_n "(cached) " >&6 29153else 29154 ac_func_search_save_LIBS=$LIBS 29155cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29156/* end confdefs.h. */ 29157 29158/* Override any GCC internal prototype to avoid an error. 29159 Use char because int might match the return type of a GCC 29160 builtin and then its argument prototype would still apply. */ 29161#ifdef __cplusplus 29162extern "C" 29163#endif 29164char sched_setscheduler (); 29165int 29166main () 29167{ 29168return sched_setscheduler (); 29169 ; 29170 return 0; 29171} 29172_ACEOF 29173for ac_lib in '' rt posix4; do 29174 if test -z "$ac_lib"; then 29175 ac_res="none required" 29176 else 29177 ac_res=-l$ac_lib 29178 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 29179 fi 29180 if ac_fn_c_try_link "$LINENO"; then : 29181 ac_cv_search_sched_setscheduler=$ac_res 29182fi 29183rm -f core conftest.err conftest.$ac_objext \ 29184 conftest$ac_exeext 29185 if ${ac_cv_search_sched_setscheduler+:} false; then : 29186 break 29187fi 29188done 29189if ${ac_cv_search_sched_setscheduler+:} false; then : 29190 29191else 29192 ac_cv_search_sched_setscheduler=no 29193fi 29194rm conftest.$ac_ext 29195LIBS=$ac_func_search_save_LIBS 29196fi 29197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sched_setscheduler" >&5 29198$as_echo "$ac_cv_search_sched_setscheduler" >&6; } 29199ac_res=$ac_cv_search_sched_setscheduler 29200if test "$ac_res" != no; then : 29201 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 29202 29203fi 29204 29205 ;; 29206esac 29207 29208for ac_header in bstring.h 29209do : 29210 ac_fn_c_check_header_mongrel "$LINENO" "bstring.h" "ac_cv_header_bstring_h" "$ac_includes_default" 29211if test "x$ac_cv_header_bstring_h" = xyes; then : 29212 cat >>confdefs.h <<_ACEOF 29213#define HAVE_BSTRING_H 1 29214_ACEOF 29215 29216fi 29217 29218done 29219 29220ac_fn_c_check_header_mongrel "$LINENO" "dns_sd.h" "ac_cv_header_dns_sd_h" "$ac_includes_default" 29221if test "x$ac_cv_header_dns_sd_h" = xyes; then : 29222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing DNSServiceRegister" >&5 29223$as_echo_n "checking for library containing DNSServiceRegister... " >&6; } 29224if ${ac_cv_search_DNSServiceRegister+:} false; then : 29225 $as_echo_n "(cached) " >&6 29226else 29227 ac_func_search_save_LIBS=$LIBS 29228cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29229/* end confdefs.h. */ 29230 29231/* Override any GCC internal prototype to avoid an error. 29232 Use char because int might match the return type of a GCC 29233 builtin and then its argument prototype would still apply. */ 29234#ifdef __cplusplus 29235extern "C" 29236#endif 29237char DNSServiceRegister (); 29238int 29239main () 29240{ 29241return DNSServiceRegister (); 29242 ; 29243 return 0; 29244} 29245_ACEOF 29246for ac_lib in '' dns_sd; do 29247 if test -z "$ac_lib"; then 29248 ac_res="none required" 29249 else 29250 ac_res=-l$ac_lib 29251 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 29252 fi 29253 if ac_fn_c_try_link "$LINENO"; then : 29254 ac_cv_search_DNSServiceRegister=$ac_res 29255fi 29256rm -f core conftest.err conftest.$ac_objext \ 29257 conftest$ac_exeext 29258 if ${ac_cv_search_DNSServiceRegister+:} false; then : 29259 break 29260fi 29261done 29262if ${ac_cv_search_DNSServiceRegister+:} false; then : 29263 29264else 29265 ac_cv_search_DNSServiceRegister=no 29266fi 29267rm conftest.$ac_ext 29268LIBS=$ac_func_search_save_LIBS 29269fi 29270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_DNSServiceRegister" >&5 29271$as_echo "$ac_cv_search_DNSServiceRegister" >&6; } 29272ac_res=$ac_cv_search_DNSServiceRegister 29273if test "$ac_res" != no; then : 29274 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 29275 29276$as_echo "#define HAVE_DNSREGISTRATION 1" >>confdefs.h 29277 29278 29279fi 29280 29281 29282fi 29283 29284 29285for ac_header in fcntl.h fnmatch.h ieeefp.h inttypes.h kvm.h math.h 29286do : 29287 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 29288ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 29289if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 29290 cat >>confdefs.h <<_ACEOF 29291#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 29292_ACEOF 29293 29294fi 29295 29296done 29297 29298 29299for ac_header in memory.h netdb.h poll.h 29300do : 29301 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 29302ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 29303if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 29304 cat >>confdefs.h <<_ACEOF 29305#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 29306_ACEOF 29307 29308fi 29309 29310done 29311 29312for ac_header in sgtty.h stdlib.h string.h termio.h 29313do : 29314 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 29315ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 29316if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 29317 cat >>confdefs.h <<_ACEOF 29318#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 29319_ACEOF 29320 29321fi 29322 29323done 29324 29325for ac_header in termios.h timepps.h timex.h unistd.h 29326do : 29327 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 29328ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 29329if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 29330 cat >>confdefs.h <<_ACEOF 29331#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 29332_ACEOF 29333 29334fi 29335 29336done 29337 29338 29339case "$host" in 29340 *-*-aix*) 29341 for ac_header in utmpx.h 29342do : 29343 ac_fn_c_check_header_mongrel "$LINENO" "utmpx.h" "ac_cv_header_utmpx_h" "$ac_includes_default" 29344if test "x$ac_cv_header_utmpx_h" = xyes; then : 29345 cat >>confdefs.h <<_ACEOF 29346#define HAVE_UTMPX_H 1 29347_ACEOF 29348 29349fi 29350 29351done 29352 29353 case "$ac_cv_header_utmpx_h" in 29354 yes) 29355 ;; 29356 *) 29357 for ac_header in utmp.h 29358do : 29359 ac_fn_c_check_header_mongrel "$LINENO" "utmp.h" "ac_cv_header_utmp_h" "$ac_includes_default" 29360if test "x$ac_cv_header_utmp_h" = xyes; then : 29361 cat >>confdefs.h <<_ACEOF 29362#define HAVE_UTMP_H 1 29363_ACEOF 29364 29365fi 29366 29367done 29368 29369 ;; 29370 esac 29371 ;; 29372 *) 29373 for ac_header in utmp.h utmpx.h 29374do : 29375 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 29376ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 29377if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 29378 cat >>confdefs.h <<_ACEOF 29379#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 29380_ACEOF 29381 29382fi 29383 29384done 29385 29386 ;; 29387esac 29388 29389# 29390# On Suns only (so far) getpass() truncates the typed password to 8 29391# characters, but getpassphrase() allows up to 257. Most systems' 29392# getpass() does not truncate, at least not so as to affect ntpq and 29393# ntpdc password prompts. 29394# 29395# So check for getpassphrase(), but only on Sun operating systems. 29396# 29397case "$host" in 29398 *-*-sunos*|*-*-solaris*) 29399 for ac_func in getpassphrase 29400do : 29401 ac_fn_c_check_func "$LINENO" "getpassphrase" "ac_cv_func_getpassphrase" 29402if test "x$ac_cv_func_getpassphrase" = xyes; then : 29403 cat >>confdefs.h <<_ACEOF 29404#define HAVE_GETPASSPHRASE 1 29405_ACEOF 29406 29407fi 29408done 29409 29410esac 29411 29412 29413for ac_header in net/if6.h 29414do : 29415 ac_fn_c_check_header_mongrel "$LINENO" "net/if6.h" "ac_cv_header_net_if6_h" "$ac_includes_default" 29416if test "x$ac_cv_header_net_if6_h" = xyes; then : 29417 cat >>confdefs.h <<_ACEOF 29418#define HAVE_NET_IF6_H 1 29419_ACEOF 29420 29421fi 29422 29423done 29424 29425for ac_header in net/route.h 29426do : 29427 ac_fn_c_check_header_compile "$LINENO" "net/route.h" "ac_cv_header_net_route_h" " 29428 #include <sys/types.h> 29429 #include <sys/socket.h> 29430 #include <net/if.h> 29431 29432" 29433if test "x$ac_cv_header_net_route_h" = xyes; then : 29434 cat >>confdefs.h <<_ACEOF 29435#define HAVE_NET_ROUTE_H 1 29436_ACEOF 29437 29438fi 29439 29440done 29441 29442 29443for ac_header in netinfo/ni.h 29444do : 29445 ac_fn_c_check_header_mongrel "$LINENO" "netinfo/ni.h" "ac_cv_header_netinfo_ni_h" "$ac_includes_default" 29446if test "x$ac_cv_header_netinfo_ni_h" = xyes; then : 29447 cat >>confdefs.h <<_ACEOF 29448#define HAVE_NETINFO_NI_H 1 29449_ACEOF 29450 29451fi 29452 29453done 29454 29455case "$ac_cv_header_netinfo_ni_h" in 29456 yes) 29457 29458$as_echo "#define HAVE_NETINFO 1" >>confdefs.h 29459 29460esac 29461for ac_header in sun/audioio.h sys/audioio.h sys/file.h 29462do : 29463 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 29464ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 29465if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 29466 cat >>confdefs.h <<_ACEOF 29467#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 29468_ACEOF 29469 29470fi 29471 29472done 29473 29474case "$host" in 29475 *-*-sunos4*) 29476 ;; 29477 *) 29478 for ac_header in sys/ioctl.h 29479do : 29480 ac_fn_c_check_header_mongrel "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default" 29481if test "x$ac_cv_header_sys_ioctl_h" = xyes; then : 29482 cat >>confdefs.h <<_ACEOF 29483#define HAVE_SYS_IOCTL_H 1 29484_ACEOF 29485 29486fi 29487 29488done 29489 29490 ;; 29491esac 29492for ac_header in sys/ipc.h sys/lock.h sys/mman.h 29493do : 29494 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 29495ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 29496if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 29497 cat >>confdefs.h <<_ACEOF 29498#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 29499_ACEOF 29500 29501fi 29502 29503done 29504 29505# HMS: Check sys/proc.h and sys/resource.h after some others 29506for ac_header in sys/modem.h sys/ppsclock.h sys/ppstime.h sched.h 29507do : 29508 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 29509ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 29510if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 29511 cat >>confdefs.h <<_ACEOF 29512#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 29513_ACEOF 29514 29515fi 29516 29517done 29518 29519case "$ac_cv_header_sched_h" in 29520 yes) 29521 ;; 29522 *) 29523 for ac_header in sys/sched.h 29524do : 29525 ac_fn_c_check_header_mongrel "$LINENO" "sys/sched.h" "ac_cv_header_sys_sched_h" "$ac_includes_default" 29526if test "x$ac_cv_header_sys_sched_h" = xyes; then : 29527 cat >>confdefs.h <<_ACEOF 29528#define HAVE_SYS_SCHED_H 1 29529_ACEOF 29530 29531fi 29532 29533done 29534 29535 ;; 29536esac 29537# HMS: Check sys/shm.h after some others 29538for ac_header in sys/select.h sys/signal.h sys/sockio.h 29539do : 29540 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 29541ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 29542if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 29543 cat >>confdefs.h <<_ACEOF 29544#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 29545_ACEOF 29546 29547fi 29548 29549done 29550 29551# HMS: Checked sys/socket.h earlier 29552case "$host" in 29553 *-*-netbsd*) 29554 ;; 29555 *) 29556 for ac_header in machine/soundcard.h sys/soundcard.h 29557do : 29558 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 29559ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 29560if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 29561 cat >>confdefs.h <<_ACEOF 29562#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 29563_ACEOF 29564 29565fi 29566 29567done 29568 29569 ;; 29570esac 29571for ac_header in sys/stat.h sys/stream.h stropts.h sys/stropts.h sys/syssgi.h 29572do : 29573 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 29574ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 29575if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 29576 cat >>confdefs.h <<_ACEOF 29577#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 29578_ACEOF 29579 29580fi 29581 29582done 29583 29584for ac_header in sys/systune.h sys/termios.h sys/tpro.h sys/wait.h 29585do : 29586 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 29587ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 29588if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 29589 cat >>confdefs.h <<_ACEOF 29590#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 29591_ACEOF 29592 29593fi 29594 29595done 29596 29597case "$host" in 29598*-convex-*) 29599 for ac_header in /sys/sync/queue.h /sys/sync/sema.h 29600do : 29601 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 29602ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 29603if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 29604 cat >>confdefs.h <<_ACEOF 29605#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 29606_ACEOF 29607 29608fi 29609 29610done 29611 29612 ;; 29613*-*-bsdi*) 29614 for ac_header in machine/inline.h sys/pcl720.h sys/i8253.h 29615do : 29616 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 29617ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 29618if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 29619 cat >>confdefs.h <<_ACEOF 29620#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 29621_ACEOF 29622 29623fi 29624 29625done 29626 29627 ;; 29628esac 29629 29630case "$host" in 29631 *-*-solaris2.6) 29632 # Broken... 29633 ;; 29634 *) 29635 for ac_func in ntp_adjtime ntp_gettime 29636do : 29637 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 29638ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 29639if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 29640 cat >>confdefs.h <<_ACEOF 29641#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 29642_ACEOF 29643 29644fi 29645done 29646 29647 ;; 29648esac 29649 29650case "$host" in 29651 *-*-*linux*) 29652 case "$ac_cv_func_ntp_gettime" in 29653 yes) 29654 ;; 29655 *) 29656 for ac_func in __ntp_gettime 29657do : 29658 ac_fn_c_check_func "$LINENO" "__ntp_gettime" "ac_cv_func___ntp_gettime" 29659if test "x$ac_cv_func___ntp_gettime" = xyes; then : 29660 cat >>confdefs.h <<_ACEOF 29661#define HAVE___NTP_GETTIME 1 29662_ACEOF 29663 29664fi 29665done 29666 29667 case "$ac_cv_func___ntp_gettime" in 29668 yes) 29669 29670$as_echo "#define ntp_gettime __ntp_gettime" >>confdefs.h 29671 29672 29673$as_echo "#define HAVE_NTP_GETTIME 1" >>confdefs.h 29674 29675 esac 29676 ;; 29677 esac 29678 for ac_func in adjtimex 29679do : 29680 ac_fn_c_check_func "$LINENO" "adjtimex" "ac_cv_func_adjtimex" 29681if test "x$ac_cv_func_adjtimex" = xyes; then : 29682 cat >>confdefs.h <<_ACEOF 29683#define HAVE_ADJTIMEX 1 29684_ACEOF 29685 29686fi 29687done 29688 29689 case "$ac_cv_func_adjtimex" in 29690 yes) 29691 29692$as_echo "#define ntp_adjtime adjtimex" >>confdefs.h 29693 29694 29695$as_echo "#define HAVE_NTP_ADJTIME 1" >>confdefs.h 29696 29697 have_adjtimex=1 29698 ;; 29699 *) 29700 for ac_func in __adjtimex 29701do : 29702 ac_fn_c_check_func "$LINENO" "__adjtimex" "ac_cv_func___adjtimex" 29703if test "x$ac_cv_func___adjtimex" = xyes; then : 29704 cat >>confdefs.h <<_ACEOF 29705#define HAVE___ADJTIMEX 1 29706_ACEOF 29707 29708fi 29709done 29710 29711 case "$ac_cv_func___adjtimex" in 29712 yes) 29713 29714$as_echo "#define ntp_adjtime __adjtimex" >>confdefs.h 29715 29716 29717$as_echo "#define HAVE_NTP_ADJTIME 1" >>confdefs.h 29718 29719 29720$as_echo "#define adjtimex __adjtimex" >>confdefs.h 29721 29722 29723$as_echo "#define HAVE_ADJTIMEX 1" >>confdefs.h 29724 29725 have_adjtimex=1 29726 esac 29727 ;; 29728 esac 29729esac 29730case "$have_adjtimex" in 29731 '') 29732 # nlist stuff is only needed for tickadj. 29733 saved_LIBS="$LIBS" 29734 LIBS= 29735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nlist" >&5 29736$as_echo_n "checking for library containing nlist... " >&6; } 29737if ${ac_cv_search_nlist+:} false; then : 29738 $as_echo_n "(cached) " >&6 29739else 29740 ac_func_search_save_LIBS=$LIBS 29741cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29742/* end confdefs.h. */ 29743 29744/* Override any GCC internal prototype to avoid an error. 29745 Use char because int might match the return type of a GCC 29746 builtin and then its argument prototype would still apply. */ 29747#ifdef __cplusplus 29748extern "C" 29749#endif 29750char nlist (); 29751int 29752main () 29753{ 29754return nlist (); 29755 ; 29756 return 0; 29757} 29758_ACEOF 29759for ac_lib in '' elf ld mld; do 29760 if test -z "$ac_lib"; then 29761 ac_res="none required" 29762 else 29763 ac_res=-l$ac_lib 29764 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 29765 fi 29766 if ac_fn_c_try_link "$LINENO"; then : 29767 ac_cv_search_nlist=$ac_res 29768fi 29769rm -f core conftest.err conftest.$ac_objext \ 29770 conftest$ac_exeext 29771 if ${ac_cv_search_nlist+:} false; then : 29772 break 29773fi 29774done 29775if ${ac_cv_search_nlist+:} false; then : 29776 29777else 29778 ac_cv_search_nlist=no 29779fi 29780rm conftest.$ac_ext 29781LIBS=$ac_func_search_save_LIBS 29782fi 29783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nlist" >&5 29784$as_echo "$ac_cv_search_nlist" >&6; } 29785ac_res=$ac_cv_search_nlist 29786if test "$ac_res" != no; then : 29787 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 29788 29789fi 29790 29791 # XXX ac_cv_search_nlist will be 'none required', 'no', or '-l...' 29792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kvm_open" >&5 29793$as_echo_n "checking for library containing kvm_open... " >&6; } 29794if ${ac_cv_search_kvm_open+:} false; then : 29795 $as_echo_n "(cached) " >&6 29796else 29797 ac_func_search_save_LIBS=$LIBS 29798cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29799/* end confdefs.h. */ 29800 29801/* Override any GCC internal prototype to avoid an error. 29802 Use char because int might match the return type of a GCC 29803 builtin and then its argument prototype would still apply. */ 29804#ifdef __cplusplus 29805extern "C" 29806#endif 29807char kvm_open (); 29808int 29809main () 29810{ 29811return kvm_open (); 29812 ; 29813 return 0; 29814} 29815_ACEOF 29816for ac_lib in '' kvm; do 29817 if test -z "$ac_lib"; then 29818 ac_res="none required" 29819 else 29820 ac_res=-l$ac_lib 29821 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 29822 fi 29823 if ac_fn_c_try_link "$LINENO"; then : 29824 ac_cv_search_kvm_open=$ac_res 29825fi 29826rm -f core conftest.err conftest.$ac_objext \ 29827 conftest$ac_exeext 29828 if ${ac_cv_search_kvm_open+:} false; then : 29829 break 29830fi 29831done 29832if ${ac_cv_search_kvm_open+:} false; then : 29833 29834else 29835 ac_cv_search_kvm_open=no 29836fi 29837rm conftest.$ac_ext 29838LIBS=$ac_func_search_save_LIBS 29839fi 29840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kvm_open" >&5 29841$as_echo "$ac_cv_search_kvm_open" >&6; } 29842ac_res=$ac_cv_search_kvm_open 29843if test "$ac_res" != no; then : 29844 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 29845 29846fi 29847 # XXX ac_cv_search_kvm_open will be 'none required', 'no', or '-l...' 29848 for ac_header in nlist.h sys/var.h 29849do : 29850 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 29851ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 29852if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 29853 cat >>confdefs.h <<_ACEOF 29854#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 29855_ACEOF 29856 29857fi 29858 29859done 29860 29861 case "$ac_cv_header_nlist_h" in 29862 yes) 29863 29864$as_echo "#define NLIST_STRUCT 1" >>confdefs.h 29865 29866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for n_un in struct nlist" >&5 29867$as_echo_n "checking for n_un in struct nlist... " >&6; } 29868if ${ntp_cv_struct_nlist_n_un+:} false; then : 29869 $as_echo_n "(cached) " >&6 29870else 29871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29872/* end confdefs.h. */ 29873 29874 #include <nlist.h> 29875 29876int 29877main () 29878{ 29879 29880 struct nlist n; 29881 n.n_un.n_name = 0; 29882 29883 29884 ; 29885 return 0; 29886} 29887 ntp_cv_struct_nlist_n_un=yes 29888_ACEOF 29889if ac_fn_c_try_compile "$LINENO"; then : 29890 ntp_cv_struct_nlist_n_un=no 29891 29892fi 29893rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 29894 29895fi 29896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_nlist_n_un" >&5 29897$as_echo "$ntp_cv_struct_nlist_n_un" >&6; } 29898 case "$ntp_cv_struct_nlist_n_un" in 29899 yes) 29900 29901$as_echo "#define NLIST_NAME_UNION 1" >>confdefs.h 29902 29903 esac 29904 esac 29905 29906 LDADD_NLIST="$LIBS" 29907 LIBS="$saved_LIBS" 29908 { saved_LIBS=; unset saved_LIBS;} 29909esac 29910 29911for ac_header in sys/proc.h 29912do : 29913 ac_fn_c_check_header_compile "$LINENO" "sys/proc.h" "ac_cv_header_sys_proc_h" " 29914 #ifdef HAVE_SYS_TYPES_H 29915 # include <sys/types.h> 29916 #endif 29917 #ifdef HAVE_SYS_TIME_H 29918 # include <sys/time.h> 29919 #endif 29920 29921" 29922if test "x$ac_cv_header_sys_proc_h" = xyes; then : 29923 cat >>confdefs.h <<_ACEOF 29924#define HAVE_SYS_PROC_H 1 29925_ACEOF 29926 29927fi 29928 29929done 29930 29931 29932for ac_header in sys/resource.h 29933do : 29934 ac_fn_c_check_header_compile "$LINENO" "sys/resource.h" "ac_cv_header_sys_resource_h" " 29935 #ifdef HAVE_SYS_TIME_H 29936 # include <sys/time.h> 29937 #endif 29938 29939" 29940if test "x$ac_cv_header_sys_resource_h" = xyes; then : 29941 cat >>confdefs.h <<_ACEOF 29942#define HAVE_SYS_RESOURCE_H 1 29943_ACEOF 29944 29945fi 29946 29947done 29948 29949 29950for ac_header in sys/shm.h 29951do : 29952 ac_fn_c_check_header_compile "$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" " 29953 #ifdef HAVE_SYS_TYPES_H 29954 # include <sys/types.h> 29955 #endif 29956 #ifdef HAVE_SYS_IPC_H 29957 # include <sys/ipc.h> 29958 #endif 29959 29960" 29961if test "x$ac_cv_header_sys_shm_h" = xyes; then : 29962 cat >>confdefs.h <<_ACEOF 29963#define HAVE_SYS_SHM_H 1 29964_ACEOF 29965 29966fi 29967 29968done 29969 29970 29971for ac_header in sys/timex.h 29972do : 29973 ac_fn_c_check_header_compile "$LINENO" "sys/timex.h" "ac_cv_header_sys_timex_h" " 29974 #ifdef HAVE_SYS_TIME_H 29975 # include <sys/time.h> 29976 #endif 29977 29978" 29979if test "x$ac_cv_header_sys_timex_h" = xyes; then : 29980 cat >>confdefs.h <<_ACEOF 29981#define HAVE_SYS_TIMEX_H 1 29982_ACEOF 29983 29984fi 29985 29986done 29987 29988 29989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 29990$as_echo_n "checking return type of signal handlers... " >&6; } 29991if ${ac_cv_type_signal+:} false; then : 29992 $as_echo_n "(cached) " >&6 29993else 29994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29995/* end confdefs.h. */ 29996#include <sys/types.h> 29997#include <signal.h> 29998 29999int 30000main () 30001{ 30002return *(signal (0, 0)) (0) == 1; 30003 ; 30004 return 0; 30005} 30006_ACEOF 30007if ac_fn_c_try_compile "$LINENO"; then : 30008 ac_cv_type_signal=int 30009else 30010 ac_cv_type_signal=void 30011fi 30012rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 30013fi 30014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 30015$as_echo "$ac_cv_type_signal" >&6; } 30016 30017cat >>confdefs.h <<_ACEOF 30018#define RETSIGTYPE $ac_cv_type_signal 30019_ACEOF 30020 30021 30022ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" 30023if test "x$ac_cv_type_off_t" = xyes; then : 30024 30025else 30026 30027cat >>confdefs.h <<_ACEOF 30028#define off_t long int 30029_ACEOF 30030 30031fi 30032 30033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 30034$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } 30035if ${ac_cv_struct_tm+:} false; then : 30036 $as_echo_n "(cached) " >&6 30037else 30038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30039/* end confdefs.h. */ 30040#include <sys/types.h> 30041#include <time.h> 30042 30043int 30044main () 30045{ 30046struct tm tm; 30047 int *p = &tm.tm_sec; 30048 return !p; 30049 ; 30050 return 0; 30051} 30052_ACEOF 30053if ac_fn_c_try_compile "$LINENO"; then : 30054 ac_cv_struct_tm=time.h 30055else 30056 ac_cv_struct_tm=sys/time.h 30057fi 30058rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 30059fi 30060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 30061$as_echo "$ac_cv_struct_tm" >&6; } 30062if test $ac_cv_struct_tm = sys/time.h; then 30063 30064$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h 30065 30066fi 30067 30068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a fallback value for HZ" >&5 30069$as_echo_n "checking for a fallback value for HZ... " >&6; } 30070if ${ntp_cv_default_hz+:} false; then : 30071 $as_echo_n "(cached) " >&6 30072else 30073 30074 ntp_cv_default_hz=100 30075 case "$host" in 30076 alpha*-dec-osf4*|alpha*-dec-osf5*) 30077 ntp_cv_default_hz=1024 30078 ;; 30079 mips-dec-ultrix4*) 30080 ntp_cv_default_hz=256 30081 ;; 30082 esac 30083 30084 30085fi 30086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_default_hz" >&5 30087$as_echo "$ntp_cv_default_hz" >&6; } 30088 30089cat >>confdefs.h <<_ACEOF 30090#define DEFAULT_HZ $ntp_cv_default_hz 30091_ACEOF 30092 30093 30094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need to override the system's value for HZ" >&5 30095$as_echo_n "checking if we need to override the system's value for HZ... " >&6; } 30096if ${ntp_cv_override_hz+:} false; then : 30097 $as_echo_n "(cached) " >&6 30098else 30099 30100 ntp_cv_override_hz=no 30101 case "$host" in 30102 alpha*-dec-osf4*|alpha*-dec-osf5*) 30103 ntp_cv_override_hz=yes 30104 ;; 30105 mips-dec-ultrix4*) 30106 ntp_cv_override_hz=yes 30107 ;; 30108 *-*-freebsd*) 30109 ntp_cv_override_hz=yes 30110 ;; 30111 *-*-sunos4*) 30112 ntp_cv_override_hz=yes 30113 ;; 30114 *-*-kfreebsd*) 30115 ntp_cv_override_hz=yes 30116 ;; 30117 esac 30118 30119 30120fi 30121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_override_hz" >&5 30122$as_echo "$ntp_cv_override_hz" >&6; } 30123case "$ntp_cv_override_hz" in 30124 yes) 30125 30126$as_echo "#define OVERRIDE_HZ 1" >>confdefs.h 30127 30128esac 30129 30130 30131 30132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct rt_msghdr" >&5 30133$as_echo_n "checking for struct rt_msghdr... " >&6; } 30134if ${ntp_cv_struct_rt_msghdr+:} false; then : 30135 $as_echo_n "(cached) " >&6 30136else 30137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30138/* end confdefs.h. */ 30139 30140 #include <sys/types.h> 30141 #include <sys/socket.h> 30142 #include <net/if.h> 30143 #include <net/route.h> 30144 30145int 30146main () 30147{ 30148 30149 struct rt_msghdr p; 30150 30151 30152 ; 30153 return 0; 30154} 30155_ACEOF 30156if ac_fn_c_try_compile "$LINENO"; then : 30157 ntp_cv_struct_rt_msghdr=yes 30158else 30159 ntp_cv_struct_rt_msghdr=no 30160 30161fi 30162rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 30163 30164fi 30165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_rt_msghdr" >&5 30166$as_echo "$ntp_cv_struct_rt_msghdr" >&6; } 30167 30168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct rtattr" >&5 30169$as_echo_n "checking for struct rtattr... " >&6; } 30170if ${ntp_cv_rtattr+:} false; then : 30171 $as_echo_n "(cached) " >&6 30172else 30173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30174/* end confdefs.h. */ 30175 30176 #include <stddef.h> 30177 #include <sys/socket.h> 30178 #include <linux/rtnetlink.h> 30179 30180int 30181main () 30182{ 30183 30184 struct rtattr p; 30185 30186 30187 ; 30188 return 0; 30189} 30190_ACEOF 30191if ac_fn_c_try_compile "$LINENO"; then : 30192 ntp_cv_rtattr=yes 30193else 30194 ntp_cv_rtattr=no 30195 30196fi 30197rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 30198 30199fi 30200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_rtattr" >&5 30201$as_echo "$ntp_cv_rtattr" >&6; } 30202 30203case "$ntp_cv_struct_rt_msghdr$ntp_cv_rtattr" in 30204 *yes*) 30205 30206$as_echo "#define HAS_ROUTING_SOCKET 1" >>confdefs.h 30207 30208 case "$ntp_cv_rtattr" in 30209 yes) 30210 30211$as_echo "#define HAVE_RTNETLINK 1" >>confdefs.h 30212 30213 esac 30214esac 30215 30216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking struct sigaction for sa_sigaction" >&5 30217$as_echo_n "checking struct sigaction for sa_sigaction... " >&6; } 30218if ${ntp_cv_struct_sigaction_has_sa_sigaction+:} false; then : 30219 $as_echo_n "(cached) " >&6 30220else 30221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30222/* end confdefs.h. */ 30223 30224 #include <signal.h> 30225 30226int 30227main () 30228{ 30229 30230 struct sigaction act; 30231 act.sa_sigaction = 0; 30232 30233 30234 ; 30235 return 0; 30236} 30237_ACEOF 30238if ac_fn_c_try_compile "$LINENO"; then : 30239 ntp_cv_struct_sigaction_has_sa_sigaction=yes 30240else 30241 ntp_cv_struct_sigaction_has_sa_sigaction=no 30242 30243fi 30244rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 30245 30246fi 30247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_sigaction_has_sa_sigaction" >&5 30248$as_echo "$ntp_cv_struct_sigaction_has_sa_sigaction" >&6; } 30249case "$ntp_cv_struct_sigaction_has_sa_sigaction" in 30250 yes) 30251 30252$as_echo "#define HAVE_SA_SIGACTION_IN_STRUCT_SIGACTION 1" >>confdefs.h 30253 30254esac 30255 30256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct ppsclockev" >&5 30257$as_echo_n "checking for struct ppsclockev... " >&6; } 30258if ${ntp_cv_struct_ppsclockev+:} false; then : 30259 $as_echo_n "(cached) " >&6 30260else 30261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30262/* end confdefs.h. */ 30263 30264 #ifdef HAVE_SYS_TYPES_H 30265 # include <sys/types.h> 30266 #endif 30267 #ifdef HAVE_SYS_TERMIOS_H 30268 # include <sys/termios.h> 30269 #endif 30270 #ifdef HAVE_SYS_TIME_H 30271 # include <sys/time.h> 30272 #endif 30273 #ifdef HAVE_SYS_PPSCLOCK_H 30274 # include <sys/ppsclock.h> 30275 #endif 30276 30277int 30278main () 30279{ 30280 30281 extern struct ppsclockev *pce; 30282 return pce->serial; 30283 30284 30285 ; 30286 return 0; 30287} 30288_ACEOF 30289if ac_fn_c_try_compile "$LINENO"; then : 30290 ntp_cv_struct_ppsclockev=yes 30291else 30292 ntp_cv_struct_ppsclockev=no 30293 30294fi 30295rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 30296 30297fi 30298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_ppsclockev" >&5 30299$as_echo "$ntp_cv_struct_ppsclockev" >&6; } 30300case "$ntp_cv_struct_ppsclockev" in 30301 yes) 30302 30303$as_echo "#define HAVE_STRUCT_PPSCLOCKEV 1" >>confdefs.h 30304 30305esac 30306 30307case "$ac_cv_header_machine_soundcard_h$ac_cv_header_sys_soundcard_h" in 30308 *yes*) 30309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct snd_size" >&5 30310$as_echo_n "checking for struct snd_size... " >&6; } 30311if ${ntp_cv_struct_snd_size+:} false; then : 30312 $as_echo_n "(cached) " >&6 30313else 30314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30315/* end confdefs.h. */ 30316 30317 #ifdef HAVE_MACHINE_SOUNDCARD_H 30318 # include <machine/soundcard.h> 30319 #endif 30320 #ifdef HAVE_SYS_SOUNDCARD_H 30321 # include <sys/soundcard.h> 30322 #endif 30323 30324int 30325main () 30326{ 30327 30328 extern struct snd_size *ss; 30329 return ss->rec_size; 30330 30331 30332 ; 30333 return 0; 30334} 30335_ACEOF 30336if ac_fn_c_try_compile "$LINENO"; then : 30337 ntp_cv_struct_snd_size=yes 30338else 30339 ntp_cv_struct_snd_size=no 30340 30341fi 30342rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 30343 30344fi 30345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_snd_size" >&5 30346$as_echo "$ntp_cv_struct_snd_size" >&6; } 30347 case "$ntp_cv_struct_snd_size" in 30348 yes) 30349 30350$as_echo "#define HAVE_STRUCT_SND_SIZE 1" >>confdefs.h 30351 30352 esac 30353esac 30354 30355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking struct clockinfo for hz" >&5 30356$as_echo_n "checking struct clockinfo for hz... " >&6; } 30357if ${ntp_cv_struct_clockinfo_has_hz+:} false; then : 30358 $as_echo_n "(cached) " >&6 30359else 30360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30361/* end confdefs.h. */ 30362 30363 #include <sys/time.h> 30364 30365int 30366main () 30367{ 30368 30369 extern struct clockinfo *pc; 30370 return pc->hz; 30371 30372 30373 ; 30374 return 0; 30375} 30376_ACEOF 30377if ac_fn_c_try_compile "$LINENO"; then : 30378 ntp_cv_struct_clockinfo_has_hz=yes 30379else 30380 ntp_cv_struct_clockinfo_has_hz=no 30381 30382fi 30383rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 30384 30385fi 30386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_clockinfo_has_hz" >&5 30387$as_echo "$ntp_cv_struct_clockinfo_has_hz" >&6; } 30388case "$ntp_cv_struct_clockinfo_has_hz" in 30389 yes) 30390 30391$as_echo "#define HAVE_HZ_IN_STRUCT_CLOCKINFO 1" >>confdefs.h 30392 30393esac 30394 30395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking struct clockinfo for tickadj" >&5 30396$as_echo_n "checking struct clockinfo for tickadj... " >&6; } 30397if ${ntp_cv_struct_clockinfo_has_hz+:} false; then : 30398 $as_echo_n "(cached) " >&6 30399else 30400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30401/* end confdefs.h. */ 30402 30403 #include <sys/time.h> 30404 30405int 30406main () 30407{ 30408 30409 extern struct clockinfo *pc; 30410 return pc->tickadj; 30411 30412 30413 ; 30414 return 0; 30415} 30416_ACEOF 30417if ac_fn_c_try_compile "$LINENO"; then : 30418 ntp_cv_struct_clockinfo_has_hz=yes 30419else 30420 ntp_cv_struct_clockinfo_has_hz=no 30421 30422fi 30423rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 30424 30425fi 30426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_clockinfo_has_hz" >&5 30427$as_echo "$ntp_cv_struct_clockinfo_has_hz" >&6; } 30428case "$ntp_cv_struct_clockinfo_has_hz" in 30429 yes) 30430 30431$as_echo "#define HAVE_TICKADJ_IN_STRUCT_CLOCKINFO 1" >>confdefs.h 30432 30433esac 30434 30435case "$ntp_cv_struct_ntptimeval" in 30436 yes) 30437 ac_fn_c_check_member "$LINENO" "struct ntptimeval" "time.tv_nsec" "ac_cv_member_struct_ntptimeval_time_tv_nsec" " 30438 #ifdef HAVE_SYS_TIME_H 30439 # include <sys/time.h> 30440 #else 30441 # ifdef HAVE_TIME_H 30442 # include <time.h> 30443 # endif 30444 #endif 30445 #ifdef HAVE_SYS_TIMEX_H 30446 # include <sys/timex.h> 30447 #else 30448 # ifdef HAVE_TIMEX_H 30449 # include <timex.h> 30450 # endif 30451 #endif 30452 30453 30454" 30455if test "x$ac_cv_member_struct_ntptimeval_time_tv_nsec" = xyes; then : 30456 30457cat >>confdefs.h <<_ACEOF 30458#define HAVE_STRUCT_NTPTIMEVAL_TIME_TV_NSEC 1 30459_ACEOF 30460 30461 30462fi 30463 30464esac 30465 30466#### 30467 30468for ac_func in arc4random_buf 30469do : 30470 ac_fn_c_check_func "$LINENO" "arc4random_buf" "ac_cv_func_arc4random_buf" 30471if test "x$ac_cv_func_arc4random_buf" = xyes; then : 30472 cat >>confdefs.h <<_ACEOF 30473#define HAVE_ARC4RANDOM_BUF 1 30474_ACEOF 30475 30476fi 30477done 30478 30479 30480#### 30481 30482saved_LIBS="$LIBS" 30483LIBS="$LIBS $LDADD_LIBNTP" 30484for ac_func in daemon 30485do : 30486 ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon" 30487if test "x$ac_cv_func_daemon" = xyes; then : 30488 cat >>confdefs.h <<_ACEOF 30489#define HAVE_DAEMON 1 30490_ACEOF 30491 30492fi 30493done 30494 30495# XXX if we keep everything in LIBS and also keep separate lists, this simplifies. 30496LIBS="$saved_LIBS" 30497{ saved_LIBS=; unset saved_LIBS;} 30498 30499for ac_func in finite 30500do : 30501 ac_fn_c_check_func "$LINENO" "finite" "ac_cv_func_finite" 30502if test "x$ac_cv_func_finite" = xyes; then : 30503 cat >>confdefs.h <<_ACEOF 30504#define HAVE_FINITE 1 30505_ACEOF 30506 30507else 30508 for ac_func in isfinite 30509do : 30510 ac_fn_c_check_func "$LINENO" "isfinite" "ac_cv_func_isfinite" 30511if test "x$ac_cv_func_isfinite" = xyes; then : 30512 cat >>confdefs.h <<_ACEOF 30513#define HAVE_ISFINITE 1 30514_ACEOF 30515 30516else 30517 30518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isfinite with <math.h>" >&5 30519$as_echo_n "checking for isfinite with <math.h>... " >&6; } 30520 _libs=$LIBS 30521 # XXX 30522 LIBS="$LIBS -lm" 30523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30524/* end confdefs.h. */ 30525 30526 #include <math.h> 30527 30528int 30529main () 30530{ 30531 30532 float f = 0.0; 30533 isfinite(f); 30534 30535 30536 ; 30537 return 0; 30538} 30539_ACEOF 30540if ac_fn_c_try_link "$LINENO"; then : 30541 ans=yes 30542else 30543 ans=no 30544 30545fi 30546rm -f core conftest.err conftest.$ac_objext \ 30547 conftest$ac_exeext conftest.$ac_ext 30548 LIBS=$_libs 30549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 30550$as_echo "$ans" >&6; } 30551 case "$ans" in 30552 yes) 30553 $as_echo "#define HAVE_ISFINITE 1" >>confdefs.h 30554 30555 esac 30556 30557 30558fi 30559done 30560 30561 30562fi 30563done 30564 30565 30566for ac_func in fnmatch getbootfile getuid getrusage nanosleep strsignal 30567do : 30568 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 30569ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 30570if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 30571 cat >>confdefs.h <<_ACEOF 30572#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 30573_ACEOF 30574 30575fi 30576done 30577 30578 30579# kvm_open() is only used by tickadj. Also see above. 30580case "$ac_cv_header_kvm_h" in 30581 yes) 30582 for ac_func in kvm_open 30583do : 30584 ac_fn_c_check_func "$LINENO" "kvm_open" "ac_cv_func_kvm_open" 30585if test "x$ac_cv_func_kvm_open" = xyes; then : 30586 cat >>confdefs.h <<_ACEOF 30587#define HAVE_KVM_OPEN 1 30588_ACEOF 30589 30590fi 30591done 30592 30593 ;; 30594esac 30595 30596case "$host" in 30597 *-*-sco3.2v5.0.*) 30598 # Just stubs. Sigh. 30599 ;; 30600 *) for ac_func in mkstemp 30601do : 30602 ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp" 30603if test "x$ac_cv_func_mkstemp" = xyes; then : 30604 cat >>confdefs.h <<_ACEOF 30605#define HAVE_MKSTEMP 1 30606_ACEOF 30607 30608fi 30609done 30610 30611 ;; 30612esac 30613for ac_func in mktime 30614do : 30615 ac_fn_c_check_func "$LINENO" "mktime" "ac_cv_func_mktime" 30616if test "x$ac_cv_func_mktime" = xyes; then : 30617 cat >>confdefs.h <<_ACEOF 30618#define HAVE_MKTIME 1 30619_ACEOF 30620 30621fi 30622done 30623 30624case "$host" in 30625 *-*-aix[4-9]*) 30626 # XXX only verified thru AIX6. 30627 # Just a stub. Sigh. 30628 ;; 30629 *-*-irix[45]*) 30630 # Just a stub in "old" Irix. Sigh. 30631 ;; 30632# In the belief that the fix for bug 1223 fixes mlockall() under linux... 30633# *-*-*linux*) 30634# # there, but more trouble than it is worth for now (resolver problems) 30635# ;; 30636 *-*-qnx*) 30637 # Apparently there but not working in QNX. Sigh? 30638 ;; 30639 *-*-sco3.2v5.0.*) 30640 # Just a stub. Sigh. 30641 ;; 30642 alpha*-dec-osf4*|alpha*-dec-osf5*) 30643 # mlockall is there, as a #define calling memlk via <sys/mman.h> 30644 # Not easy to test for - cheat. 30645 for ac_func in memlk 30646do : 30647 ac_fn_c_check_func "$LINENO" "memlk" "ac_cv_func_memlk" 30648if test "x$ac_cv_func_memlk" = xyes; then : 30649 cat >>confdefs.h <<_ACEOF 30650#define HAVE_MEMLK 1 30651_ACEOF 30652 ac_cv_func_mlockall=yes 30653fi 30654done 30655 30656 for ac_func in mlockall 30657do : 30658 ac_fn_c_check_func "$LINENO" "mlockall" "ac_cv_func_mlockall" 30659if test "x$ac_cv_func_mlockall" = xyes; then : 30660 cat >>confdefs.h <<_ACEOF 30661#define HAVE_MLOCKALL 1 30662_ACEOF 30663 30664fi 30665done 30666 30667 ;; 30668 *) for ac_func in mlockall 30669do : 30670 ac_fn_c_check_func "$LINENO" "mlockall" "ac_cv_func_mlockall" 30671if test "x$ac_cv_func_mlockall" = xyes; then : 30672 cat >>confdefs.h <<_ACEOF 30673#define HAVE_MLOCKALL 1 30674_ACEOF 30675 30676fi 30677done 30678 30679 ;; 30680esac 30681for ac_func in nice plock pututline pututxline readlink rtprio 30682do : 30683 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 30684ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 30685if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 30686 cat >>confdefs.h <<_ACEOF 30687#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 30688_ACEOF 30689 30690fi 30691done 30692 30693case "$host" in 30694 *-*-aix[4-9]*) 30695 # XXX only verified thru AIX6. 30696 # Just a stub in AIX 4. Sigh. 30697 ;; 30698 *-*-solaris2.5*) 30699 # Just stubs in solaris2.5. Sigh. 30700 ;; 30701 *) for ac_func in sched_setscheduler 30702do : 30703 ac_fn_c_check_func "$LINENO" "sched_setscheduler" "ac_cv_func_sched_setscheduler" 30704if test "x$ac_cv_func_sched_setscheduler" = xyes; then : 30705 cat >>confdefs.h <<_ACEOF 30706#define HAVE_SCHED_SETSCHEDULER 1 30707_ACEOF 30708 30709fi 30710done 30711 30712 ;; 30713esac 30714for ac_func in setlinebuf setpgid setpriority setsid setvbuf 30715do : 30716 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 30717ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 30718if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 30719 cat >>confdefs.h <<_ACEOF 30720#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 30721_ACEOF 30722 30723fi 30724done 30725 30726for ac_func in strdup strerror setrlimit strchr 30727do : 30728 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 30729ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 30730if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 30731 cat >>confdefs.h <<_ACEOF 30732#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 30733_ACEOF 30734 30735fi 30736done 30737 30738case "$host" in 30739 *-*-aix[4-9]*) 30740 # XXX only verified thru AIX6. 30741 # Just stubs. Sigh. 30742 ;; 30743 *-*-netbsd1*) 30744 # Just stubs. Sigh. 30745 ;; 30746 *-*-netbsdelf1*) 30747 # Just stubs. Sigh. 30748 ;; 30749 *-*-openbsd*) 30750 # Just stubs. Sigh. 30751 ;; 30752 *) 30753 for ac_func in timer_create 30754do : 30755 ac_fn_c_check_func "$LINENO" "timer_create" "ac_cv_func_timer_create" 30756if test "x$ac_cv_func_timer_create" = xyes; then : 30757 cat >>confdefs.h <<_ACEOF 30758#define HAVE_TIMER_CREATE 1 30759_ACEOF 30760 30761fi 30762done 30763 30764 ;; 30765esac 30766 30767 30768 30769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RLIMIT_MEMLOCK" >&5 30770$as_echo_n "checking for RLIMIT_MEMLOCK... " >&6; } 30771if ${ntp_cv_rlimit_memlock+:} false; then : 30772 $as_echo_n "(cached) " >&6 30773else 30774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30775/* end confdefs.h. */ 30776 30777 #ifdef HAVE_SYS_TYPES_H 30778 # include <sys/types.h> 30779 #endif 30780 #ifdef HAVE_SYS_TIME_H 30781 # include <sys/time.h> 30782 #endif 30783 #ifdef HAVE_SYS_RESOURCE_H 30784 # include <sys/resource.h> 30785 #endif 30786 30787int 30788main () 30789{ 30790 30791 getrlimit(RLIMIT_MEMLOCK, 0); 30792 30793 30794 ; 30795 return 0; 30796} 30797_ACEOF 30798if ac_fn_c_try_compile "$LINENO"; then : 30799 ntp_cv_rlimit_memlock=yes 30800else 30801 ntp_cv_rlimit_memlock=no 30802 30803fi 30804rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 30805 30806fi 30807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_rlimit_memlock" >&5 30808$as_echo "$ntp_cv_rlimit_memlock" >&6; } 30809case "$ntp_cv_rlimit_memlock" in 30810 yes) 30811 30812 HAVE_RLIMIT_MEMLOCK=" memlock 32" 30813esac 30814 30815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RLIMIT_STACK" >&5 30816$as_echo_n "checking for RLIMIT_STACK... " >&6; } 30817if ${ntp_cv_rlimit_stack+:} false; then : 30818 $as_echo_n "(cached) " >&6 30819else 30820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30821/* end confdefs.h. */ 30822 30823 #ifdef HAVE_SYS_TYPES_H 30824 # include <sys/types.h> 30825 #endif 30826 #ifdef HAVE_SYS_TIME_H 30827 # include <sys/time.h> 30828 #endif 30829 #ifdef HAVE_SYS_RESOURCE_H 30830 # include <sys/resource.h> 30831 #endif 30832 30833int 30834main () 30835{ 30836 30837 getrlimit(RLIMIT_STACK, 0); 30838 30839 30840 ; 30841 return 0; 30842} 30843_ACEOF 30844if ac_fn_c_try_compile "$LINENO"; then : 30845 ntp_cv_rlimit_stack=yes 30846else 30847 ntp_cv_rlimit_stack=no 30848 30849fi 30850rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 30851 30852fi 30853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_rlimit_stack" >&5 30854$as_echo "$ntp_cv_rlimit_stack" >&6; } 30855case "$ntp_cv_rlimit_stack" in 30856 yes) 30857 30858 HAVE_RLIMIT_STACK=" stacksize 50" 30859esac 30860 30861 30862 30863# HMS: Only if we are doing the MLOCKALL stuff... 30864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default number of 4k stack pages" >&5 30865$as_echo_n "checking for the default number of 4k stack pages... " >&6; } 30866 30867# Check whether --with-stack-limit was given. 30868if test "${with_stack_limit+set}" = set; then : 30869 withval=$with_stack_limit; ans=$withval 30870else 30871 ans=yes 30872 30873fi 30874 30875case "$ans" in 30876 yes | no) 30877 case "$host" in 30878 *-*-openbsd*) 30879 ans=200 30880 ;; 30881 *) ans=50 30882 ;; 30883 esac 30884 ;; 30885 [1-9][0-9]*) 30886 ;; 30887 *) as_fn_error $? "\"--with-stack-limit requires an integer argument.\"" "$LINENO" 5 30888 ;; 30889esac 30890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 30891$as_echo "$ans" >&6; } 30892 30893cat >>confdefs.h <<_ACEOF 30894#define DFLT_RLIMIT_STACK $ans 30895_ACEOF 30896 30897 30898# HMS: only if we have RLIMIT_MEMLOCK 30899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default number of megabytes to MEMLOCK" >&5 30900$as_echo_n "checking for the default number of megabytes to MEMLOCK... " >&6; } 30901 30902# Check whether --with-memlock was given. 30903if test "${with_memlock+set}" = set; then : 30904 withval=$with_memlock; ans=$withval 30905else 30906 ans=yes 30907 30908fi 30909 30910case "$ans" in 30911 yes | no) 30912 ans=32 30913 ;; 30914 [1-9][0-9]*) ;; 30915 *) as_fn_error $? "\"--with-memlock requires an integer argument.\"" "$LINENO" 5 30916 ;; 30917esac 30918{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 30919$as_echo "$ans" >&6; } 30920 30921cat >>confdefs.h <<_ACEOF 30922#define DFLT_RLIMIT_MEMLOCK $ans 30923_ACEOF 30924 30925 30926 30927# some OSes prefer _exit() in forked children to exit() 30928for ac_func in _exit 30929do : 30930 ac_fn_c_check_func "$LINENO" "_exit" "ac_cv_func__exit" 30931if test "x$ac_cv_func__exit" = xyes; then : 30932 cat >>confdefs.h <<_ACEOF 30933#define HAVE__EXIT 1 30934_ACEOF 30935 30936fi 30937done 30938 30939ntp_worker_child_exit=exit 30940case "$ac_cv_func__exit::$host_os" in 30941 yes::netbsd*) 30942 ntp_worker_child_exit=_exit 30943 ;; 30944 yes::openbsd*) 30945 ntp_worker_child_exit=_exit 30946 ;; 30947esac 30948 30949cat >>confdefs.h <<_ACEOF 30950#define WORKER_CHILD_EXIT $ntp_worker_child_exit 30951_ACEOF 30952 30953 30954for ac_func in umask uname updwtmp updwtmpx 30955do : 30956 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 30957ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 30958if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 30959 cat >>confdefs.h <<_ACEOF 30960#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 30961_ACEOF 30962 30963fi 30964done 30965 30966 30967### 30968 30969# http://bugs.ntp.org/737 30970case "$ac_cv_func_recvmsg" in 30971 yes) 30972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need extra help to define struct iovec" >&5 30973$as_echo_n "checking if we need extra help to define struct iovec... " >&6; } 30974if ${ntp_cv_struct_iovec_help+:} false; then : 30975 $as_echo_n "(cached) " >&6 30976else 30977 30978 compiled=no 30979 for ntp_cv_struct_iovec_help in '0' '1'; do 30980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30981/* end confdefs.h. */ 30982 30983 #ifdef HAVE_SYS_TYPES_H 30984 # include <sys/types.h> 30985 #endif 30986 #ifdef HAVE_SYS_SOCKET_H 30987 # include <sys/socket.h> 30988 #endif 30989 #if $ntp_cv_struct_iovec_help 30990 # include <sys/uio.h> 30991 #endif 30992 30993int 30994main () 30995{ 30996 30997 void foo(void) { 30998 ssize_t x; 30999 int s = 0; 31000 struct iovec iov; 31001 struct msghdr mh; 31002 int flags = 0; 31003 31004 mh.msg_iov = &iov; 31005 x = recvmsg(s, &mh, flags); 31006 } 31007 31008 31009 ; 31010 return 0; 31011} 31012_ACEOF 31013if ac_fn_c_try_compile "$LINENO"; then : 31014 compiled=yes ; break 1 31015fi 31016rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 31017 done 31018 case "$compiled" in 31019 no) 31020 ntp_cv_struct_iovec_help=0 31021 esac 31022 { compiled=; unset compiled;} 31023 31024 31025fi 31026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_iovec_help" >&5 31027$as_echo "$ntp_cv_struct_iovec_help" >&6; } 31028 case "$ntp_cv_struct_iovec_help" in 31029 1) 31030 31031$as_echo "#define HAVE_SYS_UIO_H 1" >>confdefs.h 31032 31033 esac 31034esac 31035 31036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking number of arguments taken by setpgrp()" >&5 31037$as_echo_n "checking number of arguments taken by setpgrp()... " >&6; } 31038if ${ntp_cv_func_setpgrp_nargs+:} false; then : 31039 $as_echo_n "(cached) " >&6 31040else 31041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31042/* end confdefs.h. */ 31043 31044 #ifdef HAVE_SYS_TYPES_H 31045 # include <sys/types.h> 31046 #endif 31047 #ifdef HAVE_UNISTD_H 31048 # include <unistd.h> 31049 #endif 31050 31051int 31052main () 31053{ 31054 31055 setpgrp(0, 0); 31056 31057 31058 ; 31059 return 0; 31060} 31061_ACEOF 31062if ac_fn_c_try_compile "$LINENO"; then : 31063 ntp_cv_func_setpgrp_nargs=2 31064else 31065 ntp_cv_func_setpgrp_nargs=0 31066 31067fi 31068rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 31069 31070fi 31071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_func_setpgrp_nargs" >&5 31072$as_echo "$ntp_cv_func_setpgrp_nargs" >&6; } 31073case "$ntp_cv_func_setpgrp_nargs" in 31074 0) 31075 31076$as_echo "#define HAVE_SETPGRP_0 1" >>confdefs.h 31077 31078esac 31079 31080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need to declare 'errno'" >&5 31081$as_echo_n "checking if we need to declare 'errno'... " >&6; } 31082if ${ntp_cv_decl_errno+:} false; then : 31083 $as_echo_n "(cached) " >&6 31084else 31085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31086/* end confdefs.h. */ 31087 31088 #ifdef HAVE_ERRNO_H 31089 # include <errno.h> 31090 #endif 31091 31092int 31093main () 31094{ 31095 31096 errno = 0; 31097 31098 31099 ; 31100 return 0; 31101} 31102_ACEOF 31103if ac_fn_c_try_compile "$LINENO"; then : 31104 ntp_cv_decl_errno=no 31105else 31106 ntp_cv_decl_errno=yes 31107 31108fi 31109rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 31110 31111fi 31112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_decl_errno" >&5 31113$as_echo "$ntp_cv_decl_errno" >&6; } 31114case "$ntp_cv_decl_errno" in 31115 yes) 31116 31117$as_echo "#define DECL_ERRNO 1" >>confdefs.h 31118 31119esac 31120 31121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we may declare 'h_errno'" >&5 31122$as_echo_n "checking if we may declare 'h_errno'... " >&6; } 31123if ${ntp_cv_decl_h_errno+:} false; then : 31124 $as_echo_n "(cached) " >&6 31125else 31126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31127/* end confdefs.h. */ 31128 31129 #include <sys/types.h> 31130 #ifdef HAVE_NETINET_IN_H 31131 # include <netinet/in.h> 31132 #endif 31133 #ifdef HAVE_ARPA_NAMESER_H 31134 # include <arpa/nameser.h> 31135 #endif 31136 #ifdef HAVE_NETDB_H 31137 # include <netdb.h> 31138 #endif 31139 #ifdef HAVE_RESOLV_H 31140 # include <resolv.h> 31141 #endif 31142 31143int 31144main () 31145{ 31146 31147 extern int h_errno; 31148 31149 31150 ; 31151 return 0; 31152} 31153_ACEOF 31154if ac_fn_c_try_compile "$LINENO"; then : 31155 ntp_cv_decl_h_errno=yes 31156else 31157 ntp_cv_decl_h_errno=no 31158 31159fi 31160rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 31161 31162fi 31163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_decl_h_errno" >&5 31164$as_echo "$ntp_cv_decl_h_errno" >&6; } 31165case "$ntp_cv_decl_h_errno" in 31166 yes) 31167 31168$as_echo "#define DECL_H_ERRNO 1" >>confdefs.h 31169 31170esac 31171 31172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if declaring 'syscall()' is ok" >&5 31173$as_echo_n "checking if declaring 'syscall()' is ok... " >&6; } 31174if ${ntp_cv_decl_syscall+:} false; then : 31175 $as_echo_n "(cached) " >&6 31176else 31177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31178/* end confdefs.h. */ 31179 31180 #ifdef HAVE_SYS_TYPES_H 31181 # include <sys/types.h> 31182 #endif 31183 #ifdef HAVE_UNISTD_H 31184 # include <unistd.h> 31185 #endif 31186 31187int 31188main () 31189{ 31190 31191 extern int syscall (int, ...); 31192 31193 31194 ; 31195 return 0; 31196} 31197 ntp_cv_decl_syscall=yes 31198_ACEOF 31199if ac_fn_c_try_compile "$LINENO"; then : 31200 ntp_cv_decl_syscall=no 31201 31202fi 31203rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 31204 31205fi 31206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_decl_syscall" >&5 31207$as_echo "$ntp_cv_decl_syscall" >&6; } 31208case "$ntp_cv_decl_syscall" in 31209 yes) 31210 31211$as_echo "#define DECL_SYSCALL 1" >>confdefs.h 31212 31213esac 31214 31215case "$host" in 31216 *-*-aix4.3.*) 31217 31218$as_echo "#define DECL_HSTRERROR_0 1" >>confdefs.h 31219 # Needed for XLC under AIX 4.3.2 31220 ;; 31221 *-*-mpeix*) 31222 31223$as_echo "#define DECL_ADJTIME_0 1" >>confdefs.h 31224 31225 31226$as_echo "#define DECL_INET_NTOA_0 1" >>confdefs.h 31227 31228 31229$as_echo "#define DECL_MKTEMP_0 1" >>confdefs.h 31230 31231 31232$as_echo "#define DECL_SELECT_0 1" >>confdefs.h 31233 31234 31235$as_echo "#define DECL_SETITIMER_0 1" >>confdefs.h 31236 31237 31238$as_echo "#define DECL_SYSLOG_0 1" >>confdefs.h 31239 31240 31241$as_echo "#define DECL_TIMEOFDAY_0 1" >>confdefs.h 31242 31243 ;; 31244 *-*-osf[45]*) 31245 31246$as_echo "#define DECL_PLOCK_0 1" >>confdefs.h 31247 31248 31249$as_echo "#define DECL_STIME_1 1" >>confdefs.h 31250 31251 ;; 31252 *-*-qnx*) 31253 31254$as_echo "#define DECL_ADJTIME_0 1" >>confdefs.h 31255 31256 ;; 31257 *-*-riscos4*) 31258 31259$as_echo "#define DECL_ADJTIME_0 1" >>confdefs.h 31260 31261 31262$as_echo "#define DECL_BZERO_0 1" >>confdefs.h 31263 31264 31265$as_echo "#define DECL_IOCTL_0 1" >>confdefs.h 31266 31267 31268$as_echo "#define DECL_IPC_0 1" >>confdefs.h 31269 31270 31271$as_echo "#define DECL_MEMMOVE_0 1" >>confdefs.h 31272 31273 31274$as_echo "#define DECL_MKTEMP_0 1" >>confdefs.h 31275 31276 31277$as_echo "#define DECL_RENAME_0 1" >>confdefs.h 31278 31279 31280$as_echo "#define DECL_SELECT_0 1" >>confdefs.h 31281 31282 31283$as_echo "#define DECL_SETITIMER_0 1" >>confdefs.h 31284 31285 31286$as_echo "#define DECL_SETPRIORITY_0 1" >>confdefs.h 31287 31288 31289$as_echo "#define DECL_STDIO_0 1" >>confdefs.h 31290 31291 31292$as_echo "#define DECL_STRTOL_0 1" >>confdefs.h 31293 31294 31295$as_echo "#define DECL_SYSLOG_0 1" >>confdefs.h 31296 31297 31298$as_echo "#define DECL_TIME_0 1" >>confdefs.h 31299 31300 31301$as_echo "#define DECL_TIMEOFDAY_0 1" >>confdefs.h 31302 31303 31304$as_echo "#define DECL_TOLOWER_0 1" >>confdefs.h 31305 31306 ;; 31307 *-*-solaris2*) 31308 31309$as_echo "#define DECL_MKSTEMP_0 1" >>confdefs.h 31310 31311 31312$as_echo "#define DECL_SETPRIORITY_1 1" >>confdefs.h 31313 31314 case "$host" in 31315 *-*-solaris2.4) 31316 31317$as_echo "#define DECL_TIMEOFDAY_0 1" >>confdefs.h 31318 31319 ;; 31320 esac 31321 ;; 31322 *-*-sunos4*) 31323 31324$as_echo "#define DECL_ADJTIME_0 1" >>confdefs.h 31325 31326 31327$as_echo "#define DECL_BCOPY_0 1" >>confdefs.h 31328 31329 31330$as_echo "#define DECL_BZERO_0 1" >>confdefs.h 31331 31332 31333$as_echo "#define DECL_IOCTL_0 1" >>confdefs.h 31334 31335 31336$as_echo "#define DECL_IPC_0 1" >>confdefs.h 31337 31338 31339$as_echo "#define DECL_MEMMOVE_0 1" >>confdefs.h 31340 31341 31342$as_echo "#define DECL_MKTEMP_0 1" >>confdefs.h 31343 31344 31345$as_echo "#define DECL_MKSTEMP_0 1" >>confdefs.h 31346 31347 31348$as_echo "#define DECL_RENAME_0 1" >>confdefs.h 31349 31350 31351$as_echo "#define DECL_SELECT_0 1" >>confdefs.h 31352 31353 31354$as_echo "#define DECL_SETITIMER_0 1" >>confdefs.h 31355 31356 31357$as_echo "#define DECL_SETPRIORITY_0 1" >>confdefs.h 31358 31359 31360$as_echo "#define DECL_SIGVEC_0 1" >>confdefs.h 31361 31362 case "`basename $ac_cv_prog_CC`" in 31363 acc*) ;; 31364 *) 31365$as_echo "#define DECL_STDIO_0 1" >>confdefs.h 31366 31367 ;; 31368 esac 31369 31370$as_echo "#define DECL_STRTOL_0 1" >>confdefs.h 31371 31372 31373$as_echo "#define DECL_SYSLOG_0 1" >>confdefs.h 31374 31375 31376$as_echo "#define DECL_TIME_0 1" >>confdefs.h 31377 31378 31379$as_echo "#define DECL_TIMEOFDAY_0 1" >>confdefs.h 31380 31381 31382$as_echo "#define DECL_TOLOWER_0 1" >>confdefs.h 31383 31384 31385$as_echo "#define DECL_TOUPPER_0 1" >>confdefs.h 31386 31387 31388$as_echo "#define DECL_STRERROR_0 1" >>confdefs.h 31389 31390 ;; 31391 *-*-ultrix4*) 31392 31393$as_echo "#define DECL_ADJTIME_0 1" >>confdefs.h 31394 31395 31396$as_echo "#define DECL_BZERO_0 1" >>confdefs.h 31397 31398 31399$as_echo "#define DECL_CFSETISPEED_0 1" >>confdefs.h 31400 31401 31402$as_echo "#define DECL_IOCTL_0 1" >>confdefs.h 31403 31404 31405$as_echo "#define DECL_IPC_0 1" >>confdefs.h 31406 31407 31408$as_echo "#define DECL_MKTEMP_0 1" >>confdefs.h 31409 31410 31411$as_echo "#define DECL_NLIST_0 1" >>confdefs.h 31412 31413 31414$as_echo "#define DECL_PLOCK_0 1" >>confdefs.h 31415 31416 31417$as_echo "#define DECL_SELECT_0 1" >>confdefs.h 31418 31419 31420$as_echo "#define DECL_SETITIMER_0 1" >>confdefs.h 31421 31422 31423$as_echo "#define DECL_SETPRIORITY_0 1" >>confdefs.h 31424 31425 31426$as_echo "#define DECL_STIME_0 1" >>confdefs.h 31427 31428 31429$as_echo "#define DECL_SYSLOG_0 1" >>confdefs.h 31430 31431 31432$as_echo "#define DECL_TIMEOFDAY_0 1" >>confdefs.h 31433 31434 ;; 31435esac 31436 31437case "$host" in 31438 *-*-sco3.2*) 31439 31440$as_echo "#define TERMIOS_NEEDS__SVID3 1" >>confdefs.h 31441 31442 ;; 31443esac 31444 31445case "$host" in 31446 *-*-hpux[567]*) 31447 31448$as_echo "#define NEED_RCVBUF_SLOP 1" >>confdefs.h 31449 31450esac 31451 31452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we will open the broadcast socket" >&5 31453$as_echo_n "checking if we will open the broadcast socket... " >&6; } 31454if ${ntp_cv_var_open_bcast_socket+:} false; then : 31455 $as_echo_n "(cached) " >&6 31456else 31457 31458 ans=yes 31459 case "$host" in 31460 *-*-domainos) 31461 ans=no 31462 esac 31463 ntp_cv_var_open_bcast_socket=$ans 31464 31465 31466fi 31467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_var_open_bcast_socket" >&5 31468$as_echo "$ntp_cv_var_open_bcast_socket" >&6; } 31469case "$ntp_cv_var_open_bcast_socket" in 31470 yes) 31471 31472$as_echo "#define OPEN_BCAST_SOCKET 1" >>confdefs.h 31473 31474esac 31475 31476case "$host" in 31477 *-*-hpux*) 31478 31479$as_echo "#define NEED_HPUX_FINDCONFIG 1" >>confdefs.h 31480 31481esac 31482 31483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if process groups are set with -pid" >&5 31484$as_echo_n "checking if process groups are set with -pid... " >&6; } 31485if ${ntp_cv_arg_setpgrp_negpid+:} false; then : 31486 $as_echo_n "(cached) " >&6 31487else 31488 31489 case "$host" in 31490 *-*-hpux[567]*) 31491 ans=no 31492 ;; 31493 *-*-hpux*) 31494 ans=yes 31495 ;; 31496 *-*-*linux*) 31497 ans=yes 31498 ;; 31499 *-*-sunos3*) 31500 ans=yes 31501 ;; 31502 *-*-ultrix2*) 31503 ans=yes 31504 ;; 31505 *) 31506 ans=no 31507 ;; 31508 esac 31509 ntp_cv_arg_setpgrp_negpid=$ans 31510 31511 31512fi 31513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_arg_setpgrp_negpid" >&5 31514$as_echo "$ntp_cv_arg_setpgrp_negpid" >&6; } 31515case "$ntp_cv_arg_setpgrp_negpid" in 31516 yes) 31517 31518$as_echo "#define UDP_BACKWARDS_SETOWN 1" >>confdefs.h 31519 31520esac 31521 31522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need a ctty for F_SETOWN" >&5 31523$as_echo_n "checking if we need a ctty for F_SETOWN... " >&6; } 31524if ${ntp_cv_func_ctty_for_f_setown+:} false; then : 31525 $as_echo_n "(cached) " >&6 31526else 31527 31528 case "$host" in 31529 *-*-bsdi[23]*) 31530 ans=yes 31531 ;; 31532 *-*-freebsd*) 31533 ans=yes 31534 ;; 31535 # NetBSD versions prior to 3.99.8 require a CTTY for F_SETOWN, 31536 # while later versions will fail a ioctl(TIOCSCTTY, 0) call in 31537 # some cases and so should not have USE_FSETOWNCTTY. "netbsd" 31538 # in $host may be followed by "aout", "ecoff", or "elf". 31539 *-*-netbsd*[a-z]3.[0-8]*|*-*-netbsd*[a-z][0-2].*|*-*-netbsd*[a-z]3.99.[0-7]) 31540 ans=yes 31541 ;; 31542 *-*-netbsd3.[0-8]*|*-*-netbsd[0-2].*|*-*-netbsd3.99.[0-7]) 31543 ans=yes 31544 ;; 31545 *-*-openbsd*) 31546 ans=yes 31547 ;; 31548 *-*-osf*) 31549 ans=yes 31550 ;; 31551 *-*-darwin*) 31552 ans=yes 31553 ;; 31554 *) 31555 ans=no 31556 ;; 31557 esac 31558 ntp_cv_func_ctty_for_f_setown=$ans 31559 31560 31561fi 31562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_func_ctty_for_f_setown" >&5 31563$as_echo "$ntp_cv_func_ctty_for_f_setown" >&6; } 31564case "$ntp_cv_func_ctty_for_f_setown" in 31565 yes) 31566 31567$as_echo "#define USE_FSETOWNCTTY 1" >>confdefs.h 31568 31569esac 31570 31571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the OS clears cached routes when more specifics become available" >&5 31572$as_echo_n "checking if the OS clears cached routes when more specifics become available... " >&6; } 31573if ${ntp_cv_os_routeupdates+:} false; then : 31574 $as_echo_n "(cached) " >&6 31575else 31576 31577 case "$host" in 31578 *-*-netbsd*) 31579 ans=yes 31580 ;; 31581 *) 31582 ans=no 31583 ;; 31584 esac 31585 ntp_cv_os_routeupdates=$ans 31586 31587 31588fi 31589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_os_routeupdates" >&5 31590$as_echo "$ntp_cv_os_routeupdates" >&6; } 31591case "$ntp_cv_os_routeupdates" in 31592 yes) 31593 31594$as_echo "#define OS_MISSES_SPECIFIC_ROUTE_UPDATES 1" >>confdefs.h 31595 31596esac 31597 31598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the wildcard socket needs REUSEADDR to bind other addresses" >&5 31599$as_echo_n "checking if the wildcard socket needs REUSEADDR to bind other addresses... " >&6; } 31600if ${ntp_cv_os_wildcardreuse+:} false; then : 31601 $as_echo_n "(cached) " >&6 31602else 31603 31604 case "$host" in 31605 *-*-*linux*) 31606 ans=yes 31607 ;; 31608 *) ans=no 31609 ;; 31610 esac 31611 ntp_cv_os_wildcardreuse=$ans 31612 31613 31614fi 31615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_os_wildcardreuse" >&5 31616$as_echo "$ntp_cv_os_wildcardreuse" >&6; } 31617case "$ntp_cv_os_wildcardreuse" in 31618 yes) 31619 31620$as_echo "#define OS_NEEDS_REUSEADDR_FOR_IFADDRBIND 1" >>confdefs.h 31621 31622esac 31623 31624case "$host" in 31625 *-*-aix*) 31626 31627$as_echo "#define NLIST_EXTRA_INDIRECTION 1" >>confdefs.h 31628 31629esac 31630 31631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a minimum recommended value of tickadj" >&5 31632$as_echo_n "checking for a minimum recommended value of tickadj... " >&6; } 31633if ${ntp_cv_var_min_rec_tickadj+:} false; then : 31634 $as_echo_n "(cached) " >&6 31635else 31636 31637 ans=no 31638 case "$host" in 31639 *-*-aix*) 31640 ans=40 31641 ;; 31642 esac 31643 ntp_cv_var_min_rec_tickadj=$ans 31644 31645 31646fi 31647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_var_min_rec_tickadj" >&5 31648$as_echo "$ntp_cv_var_min_rec_tickadj" >&6; } 31649case "$ntp_cv_var_min_rec_tickadj" in 31650 ''|no) 31651 ;; 31652 *) 31653 31654cat >>confdefs.h <<_ACEOF 31655#define MIN_REC_TICKADJ $ntp_cv_var_min_rec_tickadj 31656_ACEOF 31657 31658esac 31659 31660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the TTY code permits PARENB and IGNPAR" >&5 31661$as_echo_n "checking if the TTY code permits PARENB and IGNPAR... " >&6; } 31662if ${ntp_cv_no_parenb_ignpar+:} false; then : 31663 $as_echo_n "(cached) " >&6 31664else 31665 31666 ans=no 31667 case "$host" in 31668 i?86-*-*linux*) 31669 ans=yes 31670 ;; 31671 mips-sgi-irix*) 31672 ans=yes 31673 ;; 31674 i?86-*-freebsd[123].*) 31675 ;; 31676 i?86-*-freebsd*) 31677 ans=yes 31678 ;; 31679 *-*-unicosmp*) 31680 ans=yes 31681 ;; 31682 esac 31683 ntp_cv_no_parenb_ignpar=$ans 31684 31685 31686fi 31687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_no_parenb_ignpar" >&5 31688$as_echo "$ntp_cv_no_parenb_ignpar" >&6; } 31689case "$ntp_cv_no_parenb_ignpar" in 31690 yes) 31691 31692$as_echo "#define NO_PARENB_IGNPAR 1" >>confdefs.h 31693 31694esac 31695 31696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we're including processing time debugging code" >&5 31697$as_echo_n "checking if we're including processing time debugging code... " >&6; } 31698# Check whether --enable-debug-timing was given. 31699if test "${enable_debug_timing+set}" = set; then : 31700 enableval=$enable_debug_timing; ntp_ok=$enableval 31701else 31702 ntp_ok=no 31703 31704fi 31705 31706case "$ntp_ok" in 31707 yes) 31708 31709$as_echo "#define DEBUG_TIMING 1" >>confdefs.h 31710 31711esac 31712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 31713$as_echo "$ntp_ok" >&6; } 31714 31715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a the number of minutes in a DST adjustment" >&5 31716$as_echo_n "checking for a the number of minutes in a DST adjustment... " >&6; } 31717# Check whether --enable-dst-minutes was given. 31718if test "${enable_dst_minutes+set}" = set; then : 31719 enableval=$enable_dst_minutes; ans=$enableval 31720else 31721 ans=60 31722 31723fi 31724 31725 31726cat >>confdefs.h <<_ACEOF 31727#define DSTMINUTES $ans 31728_ACEOF 31729 31730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 31731$as_echo "$ans" >&6; } 31732 31733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if ntpd will retry permanent DNS failures" >&5 31734$as_echo_n "checking if ntpd will retry permanent DNS failures... " >&6; } 31735# Check whether --enable-ignore-dns-errors was given. 31736if test "${enable_ignore_dns_errors+set}" = set; then : 31737 enableval=$enable_ignore_dns_errors; ans=$enableval 31738else 31739 ans=no 31740 31741fi 31742 31743case "$ans" in 31744 yes) 31745 31746$as_echo "#define IGNORE_DNS_ERRORS 1" >>confdefs.h 31747 31748esac 31749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 31750$as_echo "$ans" >&6; } 31751 31752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking availability of ntp_{adj,get}time()" >&5 31753$as_echo_n "checking availability of ntp_{adj,get}time()... " >&6; } 31754if ${ntp_cv_var_ntp_syscalls+:} false; then : 31755 $as_echo_n "(cached) " >&6 31756else 31757 31758 ntp_cv_var_ntp_syscalls=no 31759 case "$ac_cv_func_ntp_adjtime$ac_cv_func_ntp_gettime$ac_cv_func___adjtimex" in 31760 yesyes*) 31761 ntp_cv_var_ntp_syscalls=libc 31762 ;; 31763 *yes) 31764 ntp_cv_var_ntp_syscalls=inline 31765 ;; 31766 *) 31767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31768/* end confdefs.h. */ 31769 31770 #include <sys/syscall.h> 31771 #if !defined(SYS_ntp_gettime) || !defined(SYS_ntp_adjtime) 31772 # error 31773 #endif 31774 31775_ACEOF 31776if ac_fn_c_try_cpp "$LINENO"; then : 31777 ntp_cv_var_ntp_syscalls=kernel 31778 31779fi 31780rm -f conftest.err conftest.i conftest.$ac_ext 31781 ;; 31782 esac 31783 31784 31785fi 31786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_var_ntp_syscalls" >&5 31787$as_echo "$ntp_cv_var_ntp_syscalls" >&6; } 31788case "$ntp_cv_var_ntp_syscalls" in 31789 libc) 31790 31791$as_echo "#define NTP_SYSCALLS_LIBC 1" >>confdefs.h 31792 31793 ;; 31794 kernel) 31795 31796$as_echo "#define NTP_SYSCALLS_STD 1" >>confdefs.h 31797 31798 ;; 31799esac 31800 31801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if sys/timex.h has STA_FLL" >&5 31802$as_echo_n "checking if sys/timex.h has STA_FLL... " >&6; } 31803if ${ntp_cv_var_sta_fll+:} false; then : 31804 $as_echo_n "(cached) " >&6 31805else 31806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31807/* end confdefs.h. */ 31808 31809 #include <sys/timex.h> 31810 #ifndef STA_FLL 31811 # error 31812 #endif 31813 31814_ACEOF 31815if ac_fn_c_try_cpp "$LINENO"; then : 31816 ntp_cv_var_sta_fll=yes 31817else 31818 ntp_cv_var_sta_fll=no 31819 31820fi 31821rm -f conftest.err conftest.i conftest.$ac_ext 31822 31823fi 31824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_var_sta_fll" >&5 31825$as_echo "$ntp_cv_var_sta_fll" >&6; } 31826 31827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have kernel PLL support" >&5 31828$as_echo_n "checking if we have kernel PLL support... " >&6; } 31829if ${ntp_cv_var_kernel_pll+:} false; then : 31830 $as_echo_n "(cached) " >&6 31831else 31832 case "$ac_cv_header_sys_timex_h$ntp_cv_struct_ntptimeval$ntp_cv_var_sta_fll$ntp_cv_var_ntp_syscalls" in 31833 *no*) 31834 ntp_cv_var_kernel_pll=no 31835 ;; 31836 *) ntp_cv_var_kernel_pll=yes 31837 ;; 31838 esac 31839 31840 31841fi 31842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_var_kernel_pll" >&5 31843$as_echo "$ntp_cv_var_kernel_pll" >&6; } 31844case "$ntp_cv_var_kernel_pll" in 31845 yes) 31846 31847$as_echo "#define KERNEL_PLL 1" >>confdefs.h 31848 31849esac 31850 31851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if SIOCGIFCONF returns buffer size in the buffer" >&5 31852$as_echo_n "checking if SIOCGIFCONF returns buffer size in the buffer... " >&6; } 31853if ${ntp_cv_size_returned_in_buffer+:} false; then : 31854 $as_echo_n "(cached) " >&6 31855else 31856 31857 ans=no 31858 case "$host" in 31859 *-fujitsu-uxp*) 31860 ans=yes 31861 ;; 31862 *-ncr-sysv4*) 31863 ans=yes 31864 ;; 31865 *-univel-sysv*) 31866 ans=yes 31867 ;; 31868 esac 31869 ntp_cv_size_returned_in_buffer=$ans 31870 31871 31872fi 31873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_size_returned_in_buffer" >&5 31874$as_echo "$ntp_cv_size_returned_in_buffer" >&6; } 31875case "$ntp_cv_size_returned_in_buffer" in 31876 yes) 31877 31878$as_echo "#define SIZE_RETURNED_IN_BUFFER 1" >>confdefs.h 31879 31880esac 31881 31882# Check for ioctls TIOCGPPSEV 31883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for TTY PPS ioctl TIOCGPPSEV" >&5 31884$as_echo_n "checking for TTY PPS ioctl TIOCGPPSEV... " >&6; } 31885case "$ac_cv_header_termios_h" in 31886 yes) 31887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31888/* end confdefs.h. */ 31889 31890 #include <termios.h> 31891 #ifndef TIOCGPPSEV 31892 # error 31893 #endif 31894 31895_ACEOF 31896if ac_fn_c_try_cpp "$LINENO"; then : 31897 ntp_ok=yes 31898else 31899 ntp_ok=no 31900 31901fi 31902rm -f conftest.err conftest.i conftest.$ac_ext 31903 ;; 31904 *) 31905 ntp_ok=no 31906 ;; 31907esac 31908case "$ntp_ok" in 31909 yes) 31910 31911$as_echo "#define HAVE_TIOCGPPSEV 1" >>confdefs.h 31912 31913esac 31914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 31915$as_echo "$ntp_ok" >&6; } 31916 31917# Check for ioctls TIOCSPPS 31918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for TTY PPS ioctl TIOCSPPS" >&5 31919$as_echo_n "checking for TTY PPS ioctl TIOCSPPS... " >&6; } 31920case "$ac_cv_header_termios_h" in 31921 yes) 31922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31923/* end confdefs.h. */ 31924 31925 #include <termios.h> 31926 #ifndef TIOCSPPS 31927 # error 31928 #endif 31929 31930_ACEOF 31931if ac_fn_c_try_cpp "$LINENO"; then : 31932 ntp_ok=yes 31933else 31934 ntp_ok=no 31935 31936fi 31937rm -f conftest.err conftest.i conftest.$ac_ext 31938 ;; 31939 *) 31940 ntp_ok=no 31941 ;; 31942esac 31943case "$ntp_ok" in 31944 yes) 31945 31946$as_echo "#define HAVE_TIOCSPPS 1" >>confdefs.h 31947 31948esac 31949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 31950$as_echo "$ntp_ok" >&6; } 31951 31952# Check for ioctls CIOGETEV 31953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for TTY PPS ioctl CIOGETEV" >&5 31954$as_echo_n "checking for TTY PPS ioctl CIOGETEV... " >&6; } 31955case "$ac_cv_header_sys_ppsclock_h" in 31956 yes) 31957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31958/* end confdefs.h. */ 31959 31960 #include <sys/ppsclock.h> 31961 #ifndef CIOGETEV 31962 # error 31963 #endif 31964 31965_ACEOF 31966if ac_fn_c_try_cpp "$LINENO"; then : 31967 ntp_ok=yes 31968else 31969 ntp_ok=no 31970 31971fi 31972rm -f conftest.err conftest.i conftest.$ac_ext 31973 ;; 31974 *) 31975 ntp_ok=no 31976 ;; 31977esac 31978case "$ntp_ok" in 31979 yes) 31980 31981$as_echo "#define HAVE_CIOGETEV 1" >>confdefs.h 31982 31983esac 31984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 31985$as_echo "$ntp_ok" >&6; } 31986 31987# ATOM/PPSAPI stuff. 31988 31989ntp_atom_ok=yes 31990 31991# Check for header timepps.h, if found then we have PPS API (Draft RFC) stuff. 31992 31993# The PPSAPI headers need "inline" ($ac_cv_c_inline='inline') 31994# The PPSAPI needs struct timespec. 31995# The PPSAPI also needs a timepps header. 31996 31997case "$ac_cv_c_inline$ntp_cv_struct_timespec" in 31998 inlineyes) 31999 case "$ac_cv_header_timepps_h$ac_cv_header_sys_timepps_h$host_os" in 32000 *yes* | *sunos* | *solaris* | *sco* | *netbsd* ) 32001 32002$as_echo "#define HAVE_PPSAPI 1" >>confdefs.h 32003 32004 ntp_jupiter_ok=yes 32005 ntp_oncore_ok=yes 32006 ntp_parse_ok=yes 32007 ntp_ripe_ncc_ok=yes 32008 ;; 32009 esac 32010 ;; 32011esac 32012 32013# Check for ioctls TIOCGSERIAL, TIOCSSERIAL, ASYNC_PPS_CD_POS, ASYNC_PPS_CD_NEG 32014ac_fn_c_check_header_mongrel "$LINENO" "linux/serial.h" "ac_cv_header_linux_serial_h" "$ac_includes_default" 32015if test "x$ac_cv_header_linux_serial_h" = xyes; then : 32016 32017fi 32018 32019 32020case "$ac_cv_header_sys_ppsclock_h$ac_cv_header_linux_serial_h" in 32021 yesyes) 32022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ioctl TIOCGSERIAL, TIOCSSERIAL, ASYNC_PPS_CD_POS, ASYNC_PPS_CD_NEG" >&5 32023$as_echo_n "checking ioctl TIOCGSERIAL, TIOCSSERIAL, ASYNC_PPS_CD_POS, ASYNC_PPS_CD_NEG... " >&6; } 32024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32025/* end confdefs.h. */ 32026 32027 #include <sys/time.h> 32028 typedef int u_int; 32029 #include <sys/ppsclock.h> 32030 #include <linux/serial.h> 32031 32032 #ifndef TIOCGSERIAL 32033 # error 32034 #endif 32035 #ifndef TIOCSSERIAL 32036 # error 32037 #endif 32038 #ifndef ASYNC_PPS_CD_POS 32039 # error 32040 #endif 32041 #ifndef ASYNC_PPS_CD_NEG 32042 # error 32043 #endif 32044 #ifndef CIOGETEV 32045 # error 32046 #endif 32047 32048_ACEOF 32049if ac_fn_c_try_cpp "$LINENO"; then : 32050 ntp_ok=yes 32051else 32052 ntp_ok=no 32053 32054fi 32055rm -f conftest.err conftest.i conftest.$ac_ext 32056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 32057$as_echo "$ntp_ok" >&6; } 32058 ;; 32059 *) 32060 ntp_ok=no 32061 ;; 32062esac 32063case "$ntp_ok" in 32064 yes) 32065 32066$as_echo "#define HAVE_TIO_SERIAL_STUFF 1" >>confdefs.h 32067 32068esac 32069 32070# Check for SHMEM_STATUS support 32071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking SHMEM_STATUS support" >&5 32072$as_echo_n "checking SHMEM_STATUS support... " >&6; } 32073case "$ac_cv_header_sys_mman_h" in 32074 yes) 32075 ntp_ok=yes 32076 ;; 32077 *) 32078 ntp_ok=no 32079 ;; 32080esac 32081case "$ntp_ok" in 32082 yes) 32083 32084$as_echo "#define ONCORE_SHMEM_STATUS 1" >>confdefs.h 32085 32086esac 32087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 32088$as_echo "$ntp_ok" >&6; } 32089 32090ntp_refclock=no 32091 32092# HPUX only, and by explicit request 32093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Datum/Bancomm bc635/VME interface" >&5 32094$as_echo_n "checking Datum/Bancomm bc635/VME interface... " >&6; } 32095# Check whether --enable-BANCOMM was given. 32096if test "${enable_BANCOMM+set}" = set; then : 32097 enableval=$enable_BANCOMM; ntp_ok=$enableval 32098else 32099 ntp_ok=no 32100 32101fi 32102 32103case "$ntp_ok" in 32104 yes) 32105 ntp_refclock=yes 32106 32107$as_echo "#define CLOCK_BANC 1" >>confdefs.h 32108 32109 ;; 32110esac 32111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 32112$as_echo "$ntp_ok" >&6; } 32113case "$ntp_ok$host" in 32114 yes*-*-hpux*) ;; 32115 yes*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5 32116$as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;; 32117esac 32118 32119#HPUX only, and only by explicit request 32120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking TrueTime GPS receiver/VME interface" >&5 32121$as_echo_n "checking TrueTime GPS receiver/VME interface... " >&6; } 32122# Check whether --enable-GPSVME was given. 32123if test "${enable_GPSVME+set}" = set; then : 32124 enableval=$enable_GPSVME; ntp_ok=$enableval 32125else 32126 ntp_ok=no 32127 32128fi 32129 32130case "$ntp_ok" in 32131 yes) 32132 ntp_refclock=yes 32133 32134$as_echo "#define CLOCK_GPSVME 1" >>confdefs.h 32135 32136 ;; 32137esac 32138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 32139$as_echo "$ntp_ok" >&6; } 32140case "$ntp_ok$host" in 32141 yes*-*-hpux*) ;; 32142 yes*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5 32143$as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;; 32144esac 32145 32146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL720 clock support" >&5 32147$as_echo_n "checking for PCL720 clock support... " >&6; } 32148case "$ac_cv_header_machine_inline_h$ac_cv_header_sys_pcl720_h$ac_cv_header_sys_i8253_h" in 32149 yesyesyes) 32150 32151$as_echo "#define CLOCK_PPS720 1" >>confdefs.h 32152 32153 ans=yes 32154 ;; 32155 *) 32156 ans=no 32157 ;; 32158esac 32159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 32160$as_echo "$ans" >&6; } 32161 32162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default inclusion of all suitable non-PARSE clocks" >&5 32163$as_echo_n "checking for default inclusion of all suitable non-PARSE clocks... " >&6; } 32164# Check whether --enable-all-clocks was given. 32165if test "${enable_all_clocks+set}" = set; then : 32166 enableval=$enable_all_clocks; ntp_eac=$enableval 32167else 32168 ntp_eac=yes 32169 32170fi 32171 32172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_eac" >&5 32173$as_echo "$ntp_eac" >&6; } 32174 32175# HMS: Should we also require ntp_parse_ok? 32176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have support for PARSE clocks" >&5 32177$as_echo_n "checking if we have support for PARSE clocks... " >&6; } 32178case "$ntp_atom_ok$ac_cv_header_termio_h$ac_cv_header_termios_h" in 32179 yes*yes*) 32180 ntp_canparse=yes 32181 ;; 32182 *) ntp_canparse=no 32183 ;; 32184esac 32185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_canparse" >&5 32186$as_echo "$ntp_canparse" >&6; } 32187 32188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have support for audio clocks" >&5 32189$as_echo_n "checking if we have support for audio clocks... " >&6; } 32190case "$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 32191 *yes*) 32192 ntp_canaudio=yes 32193 32194$as_echo "#define HAVE_AUDIO /**/" >>confdefs.h 32195 32196 ;; 32197 *) ntp_canaudio=no ;; 32198esac 32199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_canaudio" >&5 32200$as_echo "$ntp_canaudio" >&6; } 32201 32202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have support for the SHM refclock interface" >&5 32203$as_echo_n "checking if we have support for the SHM refclock interface... " >&6; } 32204case "$ac_cv_header_sys_ipc_h$ac_cv_header_sys_shm_h" in 32205 yesyes) 32206 ntp_canshm=yes 32207 ;; 32208 *) ntp_canshm=no ;; 32209esac 32210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_canshm" >&5 32211$as_echo "$ntp_canshm" >&6; } 32212 32213# Test for termios TIOCMBIS modem control (ACTS, Heath, Palisade) 32214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for termios modem control" >&5 32215$as_echo_n "checking for termios modem control... " >&6; } 32216if ${ntp_cv_modem_control+:} false; then : 32217 $as_echo_n "(cached) " >&6 32218else 32219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32220/* end confdefs.h. */ 32221 32222 #ifdef HAVE_UNISTD_H 32223 # include <unistd.h> 32224 #endif 32225 #ifdef HAVE_TERMIOS_H 32226 # include <termios.h> 32227 #endif 32228 #ifdef HAVE_SYS_IOCTL_H 32229 # include <sys/ioctl.h> 32230 #endif 32231 32232int 32233main () 32234{ 32235 32236 int dtr = TIOCM_DTR; 32237 32238 ioctl(1, TIOCMBIS, (char *)&dtr); 32239 32240 32241 ; 32242 return 0; 32243} 32244_ACEOF 32245if ac_fn_c_try_compile "$LINENO"; then : 32246 ntp_cv_modem_control=yes 32247else 32248 ntp_cv_modem_control=no 32249 32250fi 32251rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 32252 32253fi 32254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_modem_control" >&5 32255$as_echo "$ntp_cv_modem_control" >&6; } 32256case "$ntp_eac::$ntp_cv_modem_control" in 32257 yes::yes) 32258 ntp_enable_all_modem_control_clocks=yes 32259 ;; 32260 *) 32261 ntp_enable_all_modem_control_clocks=no 32262 ;; 32263esac 32264 32265# Requires modem control 32266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking ACTS modem service" >&5 32267$as_echo_n "checking ACTS modem service... " >&6; } 32268# Check whether --enable-ACTS was given. 32269if test "${enable_ACTS+set}" = set; then : 32270 enableval=$enable_ACTS; ntp_ok=$enableval 32271else 32272 ntp_ok=$ntp_enable_all_modem_control_clocks 32273 32274fi 32275 32276case "$ntp_ok" in 32277 yes) 32278 ntp_refclock=yes 32279 32280$as_echo "#define CLOCK_ACTS 1" >>confdefs.h 32281 32282 ;; 32283esac 32284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 32285$as_echo "$ntp_ok" >&6; } 32286 32287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Arbiter 1088A/B GPS receiver" >&5 32288$as_echo_n "checking Arbiter 1088A/B GPS receiver... " >&6; } 32289# Check whether --enable-ARBITER was given. 32290if test "${enable_ARBITER+set}" = set; then : 32291 enableval=$enable_ARBITER; ntp_ok=$enableval 32292else 32293 ntp_ok=$ntp_eac 32294 32295fi 32296 32297case "$ntp_ok" in 32298 yes) 32299 ntp_refclock=yes 32300 32301$as_echo "#define CLOCK_ARBITER 1" >>confdefs.h 32302 32303 ;; 32304esac 32305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 32306$as_echo "$ntp_ok" >&6; } 32307 32308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Arcron MSF receiver" >&5 32309$as_echo_n "checking Arcron MSF receiver... " >&6; } 32310# Check whether --enable-ARCRON_MSF was given. 32311if test "${enable_ARCRON_MSF+set}" = set; then : 32312 enableval=$enable_ARCRON_MSF; ntp_ok=$enableval 32313else 32314 ntp_ok=$ntp_eac 32315 32316fi 32317 32318case "$ntp_ok" in 32319 yes) 32320 ntp_refclock=yes 32321 32322$as_echo "#define CLOCK_ARCRON_MSF 1" >>confdefs.h 32323 32324 ;; 32325esac 32326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 32327$as_echo "$ntp_ok" >&6; } 32328 32329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Austron 2200A/2201A GPS receiver" >&5 32330$as_echo_n "checking Austron 2200A/2201A GPS receiver... " >&6; } 32331# Check whether --enable-AS2201 was given. 32332if test "${enable_AS2201+set}" = set; then : 32333 enableval=$enable_AS2201; ntp_ok=$enableval 32334else 32335 ntp_ok=$ntp_eac 32336 32337fi 32338 32339case "$ntp_ok" in 32340 yes) 32341 ntp_refclock=yes 32342 32343$as_echo "#define CLOCK_AS2201 1" >>confdefs.h 32344 32345 ;; 32346esac 32347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 32348$as_echo "$ntp_ok" >&6; } 32349 32350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking ATOM PPS interface" >&5 32351$as_echo_n "checking ATOM PPS interface... " >&6; } 32352# Check whether --enable-ATOM was given. 32353if test "${enable_ATOM+set}" = set; then : 32354 enableval=$enable_ATOM; ntp_ok=$enableval 32355else 32356 ntp_ok=$ntp_eac 32357 32358fi 32359 32360case "$ntp_atom_ok" in 32361 no) ntp_ok=no ;; 32362esac 32363case "$ntp_ok" in 32364 yes) 32365 ntp_refclock=yes 32366 32367$as_echo "#define CLOCK_ATOM 1" >>confdefs.h 32368 32369 ;; 32370esac 32371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 32372$as_echo "$ntp_ok" >&6; } 32373 32374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Chrono-log K-series WWVB receiver" >&5 32375$as_echo_n "checking Chrono-log K-series WWVB receiver... " >&6; } 32376# Check whether --enable-CHRONOLOG was given. 32377if test "${enable_CHRONOLOG+set}" = set; then : 32378 enableval=$enable_CHRONOLOG; ntp_ok=$enableval 32379else 32380 ntp_ok=$ntp_eac 32381 32382fi 32383 32384case "$ntp_ok" in 32385 yes) 32386 ntp_refclock=yes 32387 32388$as_echo "#define CLOCK_CHRONOLOG 1" >>confdefs.h 32389 32390 ;; 32391esac 32392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 32393$as_echo "$ntp_ok" >&6; } 32394 32395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CHU modem/decoder" >&5 32396$as_echo_n "checking CHU modem/decoder... " >&6; } 32397# Check whether --enable-CHU was given. 32398if test "${enable_CHU+set}" = set; then : 32399 enableval=$enable_CHU; ntp_ok=$enableval 32400else 32401 ntp_ok=$ntp_eac 32402 32403fi 32404 32405case "$ntp_ok" in 32406 yes) 32407 ntp_refclock=yes 32408 32409$as_echo "#define CLOCK_CHU 1" >>confdefs.h 32410 32411 ;; 32412esac 32413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 32414$as_echo "$ntp_ok" >&6; } 32415ntp_refclock_chu=$ntp_ok 32416 32417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CHU audio/decoder" >&5 32418$as_echo_n "checking CHU audio/decoder... " >&6; } 32419# Check whether --enable-AUDIO-CHU was given. 32420if test "${enable_AUDIO_CHU+set}" = set; then : 32421 enableval=$enable_AUDIO_CHU; ntp_ok=$enableval 32422else 32423 32424 case "$ntp_eac$ntp_refclock_chu$ntp_canaudio" in 32425 *no*) ntp_ok=no ;; 32426 *) ntp_ok=yes ;; 32427 esac 32428 32429 32430fi 32431 32432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 32433$as_echo "$ntp_ok" >&6; } 32434# We used to check for sunos/solaris target... 32435case "$ntp_ok$ntp_refclock_chu$ntp_canaudio" in 32436 yes*no*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is...no ***" >&5 32437$as_echo "$as_me: WARNING: *** But the expected answer is...no ***" >&2;} 32438esac 32439 32440# Not under HP-UX 32441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Datum Programmable Time System" >&5 32442$as_echo_n "checking Datum Programmable Time System... " >&6; } 32443# Check whether --enable-DATUM was given. 32444if test "${enable_DATUM+set}" = set; then : 32445 enableval=$enable_DATUM; ntp_ok=$enableval 32446else 32447 32448 case "$ac_cv_header_termios_h" in 32449 yes) 32450 ntp_ok=$ntp_eac 32451 ;; 32452 *) ntp_ok=no 32453 ;; 32454 esac 32455 32456 32457fi 32458 32459case "$ntp_ok" in 32460 yes) 32461 ntp_refclock=yes 32462 32463$as_echo "#define CLOCK_DATUM 1" >>confdefs.h 32464 32465 ;; 32466esac 32467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 32468$as_echo "$ntp_ok" >&6; } 32469 32470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Dumb generic hh:mm:ss local clock" >&5 32471$as_echo_n "checking Dumb generic hh:mm:ss local clock... " >&6; } 32472# Check whether --enable-DUMBCLOCK was given. 32473if test "${enable_DUMBCLOCK+set}" = set; then : 32474 enableval=$enable_DUMBCLOCK; ntp_ok=$enableval 32475else 32476 ntp_ok=$ntp_eac 32477 32478fi 32479 32480case "$ntp_ok" in 32481 yes) 32482 ntp_refclock=yes 32483 32484$as_echo "#define CLOCK_DUMBCLOCK 1" >>confdefs.h 32485 32486 ;; 32487esac 32488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 32489$as_echo "$ntp_ok" >&6; } 32490 32491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Forum Graphic GPS" >&5 32492$as_echo_n "checking Forum Graphic GPS... " >&6; } 32493# Check whether --enable-FG was given. 32494if test "${enable_FG+set}" = set; then : 32495 enableval=$enable_FG; ntp_ok=$enableval 32496else 32497 ntp_ok=$ntp_eac 32498 32499fi 32500 32501case "$ntp_ok" in 32502 yes) 32503 ntp_refclock=yes 32504 32505$as_echo "#define CLOCK_FG 1" >>confdefs.h 32506 32507 ;; 32508esac 32509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 32510$as_echo "$ntp_ok" >&6; } 32511 32512# Requires modem control 32513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Heath GC-1000 WWV/WWVH receiver" >&5 32514$as_echo_n "checking Heath GC-1000 WWV/WWVH receiver... " >&6; } 32515# Check whether --enable-HEATH was given. 32516if test "${enable_HEATH+set}" = set; then : 32517 enableval=$enable_HEATH; ntp_ok=$enableval 32518else 32519 ntp_ok=$ntp_enable_all_modem_control_clocks 32520 32521fi 32522 32523case "$ntp_ok" in 32524 yes) 32525 ntp_refclock=yes 32526 32527$as_echo "#define CLOCK_HEATH 1" >>confdefs.h 32528 32529 ;; 32530esac 32531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 32532$as_echo "$ntp_ok" >&6; } 32533 32534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for hopf serial clock device" >&5 32535$as_echo_n "checking for hopf serial clock device... " >&6; } 32536# Check whether --enable-HOPFSERIAL was given. 32537if test "${enable_HOPFSERIAL+set}" = set; then : 32538 enableval=$enable_HOPFSERIAL; ntp_ok=$enableval 32539else 32540 ntp_ok=$ntp_eac 32541 32542fi 32543 32544case "$ntp_ok" in 32545 yes) 32546 ntp_refclock=yes 32547 32548$as_echo "#define CLOCK_HOPF_SERIAL 1" >>confdefs.h 32549 32550 ;; 32551esac 32552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 32553$as_echo "$ntp_ok" >&6; } 32554 32555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for hopf PCI clock 6039" >&5 32556$as_echo_n "checking for hopf PCI clock 6039... " >&6; } 32557# Check whether --enable-HOPFPCI was given. 32558if test "${enable_HOPFPCI+set}" = set; then : 32559 enableval=$enable_HOPFPCI; ntp_ok=$enableval 32560else 32561 ntp_ok=$ntp_eac 32562 32563fi 32564 32565case "$ntp_ok" in 32566 yes) 32567 ntp_refclock=yes 32568 32569$as_echo "#define CLOCK_HOPF_PCI 1" >>confdefs.h 32570 32571 ;; 32572esac 32573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 32574$as_echo "$ntp_ok" >&6; } 32575 32576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking HP 58503A GPS receiver" >&5 32577$as_echo_n "checking HP 58503A GPS receiver... " >&6; } 32578# Check whether --enable-HPGPS was given. 32579if test "${enable_HPGPS+set}" = set; then : 32580 enableval=$enable_HPGPS; ntp_ok=$enableval 32581else 32582 ntp_ok=$ntp_eac 32583 32584fi 32585 32586case "$ntp_ok" in 32587 yes) 32588 ntp_refclock=yes 32589 32590$as_echo "#define CLOCK_HPGPS 1" >>confdefs.h 32591 32592 ;; 32593esac 32594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 32595$as_echo "$ntp_ok" >&6; } 32596 32597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking IRIG audio decoder" >&5 32598$as_echo_n "checking IRIG audio decoder... " >&6; } 32599# Check whether --enable-IRIG was given. 32600if test "${enable_IRIG+set}" = set; then : 32601 enableval=$enable_IRIG; ntp_ok=$enableval 32602else 32603 32604 case "$ntp_eac$ntp_canaudio" in 32605 *no*) ntp_ok=no ;; 32606 *) ntp_ok=yes ;; 32607 esac 32608 32609 32610fi 32611 32612case "$ntp_ok" in 32613 yes) 32614 ntp_refclock=yes 32615 32616$as_echo "#define CLOCK_IRIG 1" >>confdefs.h 32617 32618 ;; 32619esac 32620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 32621$as_echo "$ntp_ok" >&6; } 32622case "$ntp_ok$ntp_canaudio" in 32623 yesno) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5 32624$as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} 32625esac 32626 32627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JJY receiver" >&5 32628$as_echo_n "checking for JJY receiver... " >&6; } 32629# Check whether --enable-JJY was given. 32630if test "${enable_JJY+set}" = set; then : 32631 enableval=$enable_JJY; ntp_ok=$enableval 32632else 32633 ntp_ok=$ntp_eac 32634 32635fi 32636 32637case "$ntp_ok" in 32638 yes) 32639 ntp_refclock=yes 32640 32641$as_echo "#define CLOCK_JJY 1" >>confdefs.h 32642 32643 ;; 32644esac 32645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 32646$as_echo "$ntp_ok" >&6; } 32647 32648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Rockwell Jupiter GPS receiver" >&5 32649$as_echo_n "checking Rockwell Jupiter GPS receiver... " >&6; } 32650# Check whether --enable-JUPITER was given. 32651if test "${enable_JUPITER+set}" = set; then : 32652 enableval=$enable_JUPITER; ntp_ok=$enableval 32653else 32654 ntp_ok=$ntp_eac 32655fi 32656 32657case "$ntp_jupiter_ok" in 32658 no) ntp_ok=no ;; 32659esac 32660case "$ntp_ok" in 32661 yes) 32662 ntp_refclock=yes 32663 32664$as_echo "#define CLOCK_JUPITER 1" >>confdefs.h 32665 32666 ;; 32667esac 32668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 32669$as_echo "$ntp_ok" >&6; } 32670 32671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Leitch CSD 5300 Master Clock System Driver" >&5 32672$as_echo_n "checking Leitch CSD 5300 Master Clock System Driver... " >&6; } 32673# Check whether --enable-LEITCH was given. 32674if test "${enable_LEITCH+set}" = set; then : 32675 enableval=$enable_LEITCH; ntp_ok=$enableval 32676else 32677 ntp_ok=$ntp_eac 32678 32679fi 32680 32681case "$ntp_ok" in 32682 yes) 32683 ntp_refclock=yes 32684 32685$as_echo "#define CLOCK_LEITCH 1" >>confdefs.h 32686 32687 ;; 32688esac 32689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 32690$as_echo "$ntp_ok" >&6; } 32691 32692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking local clock reference" >&5 32693$as_echo_n "checking local clock reference... " >&6; } 32694# Check whether --enable-LOCAL-CLOCK was given. 32695if test "${enable_LOCAL_CLOCK+set}" = set; then : 32696 enableval=$enable_LOCAL_CLOCK; ntp_ok=$enableval 32697else 32698 ntp_ok=$ntp_eac 32699 32700fi 32701 32702case "$ntp_ok" in 32703 yes) 32704 ntp_refclock=yes 32705 32706$as_echo "#define CLOCK_LOCAL 1" >>confdefs.h 32707 32708 ;; 32709esac 32710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 32711$as_echo "$ntp_ok" >&6; } 32712 32713 32714# Not Ultrix 32715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Magnavox MX4200 GPS receiver" >&5 32716$as_echo_n "checking Magnavox MX4200 GPS receiver... " >&6; } 32717# Check whether --enable-MX4200 was given. 32718if test "${enable_MX4200+set}" = set; then : 32719 enableval=$enable_MX4200; ntp_ok=$enableval 32720else 32721 32722 case "$ac_cv_var_ppsclock" in 32723 yes) 32724 ntp_ok=$ntp_eac 32725 ;; 32726 *) 32727 ntp_ok=no 32728 ;; 32729 esac 32730 32731 32732fi 32733 32734case "$ntp_ok" in 32735 yes) 32736 ntp_refclock=yes 32737 32738$as_echo "#define CLOCK_MX4200 1" >>confdefs.h 32739 32740 ;; 32741esac 32742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 32743$as_echo "$ntp_ok" >&6; } 32744case "$ntp_ok$host" in 32745 yes*-*-ultrix*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5 32746$as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} 32747esac 32748 32749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for NeoClock4X receiver" >&5 32750$as_echo_n "checking for NeoClock4X receiver... " >&6; } 32751# Check whether --enable-NEOCLOCK4X was given. 32752if test "${enable_NEOCLOCK4X+set}" = set; then : 32753 enableval=$enable_NEOCLOCK4X; ntp_ok=$enableval 32754else 32755 ntp_ok=$ntp_eac 32756 32757fi 32758 32759case "$ntp_ok" in 32760 yes) 32761 ntp_refclock=yes 32762 32763$as_echo "#define CLOCK_NEOCLOCK4X 1" >>confdefs.h 32764 32765 ;; 32766esac 32767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 32768$as_echo "$ntp_ok" >&6; } 32769 32770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking NMEA GPS receiver" >&5 32771$as_echo_n "checking NMEA GPS receiver... " >&6; } 32772# Check whether --enable-NMEA was given. 32773if test "${enable_NMEA+set}" = set; then : 32774 enableval=$enable_NMEA; ntp_ok=$enableval 32775else 32776 ntp_ok=$ntp_eac 32777 32778fi 32779 32780case "$ntp_ok" in 32781 yes) 32782 ntp_refclock=yes 32783 32784$as_echo "#define CLOCK_NMEA 1" >>confdefs.h 32785 32786 ;; 32787esac 32788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 32789$as_echo "$ntp_ok" >&6; } 32790 32791for ac_func in strtoll 32792do : 32793 ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll" 32794if test "x$ac_cv_func_strtoll" = xyes; then : 32795 cat >>confdefs.h <<_ACEOF 32796#define HAVE_STRTOLL 1 32797_ACEOF 32798 32799fi 32800done 32801 32802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GPSD JSON receiver" >&5 32803$as_echo_n "checking for GPSD JSON receiver... " >&6; } 32804# Check whether --enable-GPSD was given. 32805if test "${enable_GPSD+set}" = set; then : 32806 enableval=$enable_GPSD; ntp_ok=$enableval 32807else 32808 case "$ac_cv_func_strtoll" in 32809 yes) ntp_ok=$ntp_eac ;; 32810 *) ntp_ok="no" ;; 32811 esac 32812 32813fi 32814 32815case "$ntp_ok" in 32816 yes) 32817 ntp_refclock=yes 32818 32819$as_echo "#define CLOCK_GPSDJSON 1" >>confdefs.h 32820 32821 ;; 32822esac 32823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 32824$as_echo "$ntp_ok" >&6; } 32825 32826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ONCORE Motorola VP/UT Oncore GPS" >&5 32827$as_echo_n "checking for ONCORE Motorola VP/UT Oncore GPS... " >&6; } 32828# Check whether --enable-ONCORE was given. 32829if test "${enable_ONCORE+set}" = set; then : 32830 enableval=$enable_ONCORE; ntp_ok=$enableval 32831else 32832 ntp_ok=$ntp_eac 32833 32834fi 32835 32836case "$ntp_oncore_ok" in 32837 no) ntp_ok=no ;; 32838esac 32839case "$ntp_ok" in 32840 yes) 32841 ntp_refclock=yes 32842 32843$as_echo "#define CLOCK_ONCORE 1" >>confdefs.h 32844 32845 ;; 32846esac 32847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 32848$as_echo "$ntp_ok" >&6; } 32849 32850# Requires modem control 32851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Palisade clock" >&5 32852$as_echo_n "checking for Palisade clock... " >&6; } 32853# Check whether --enable-PALISADE was given. 32854if test "${enable_PALISADE+set}" = set; then : 32855 enableval=$enable_PALISADE; ntp_ok=$enableval 32856else 32857 ntp_ok=$ntp_enable_all_modem_control_clocks 32858 32859fi 32860 32861case "$ntp_ok" in 32862 yes) 32863 ntp_refclock=yes 32864 32865$as_echo "#define CLOCK_PALISADE 1" >>confdefs.h 32866 32867 ;; 32868esac 32869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 32870$as_echo "$ntp_ok" >&6; } 32871 32872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Conrad parallel port radio clock" >&5 32873$as_echo_n "checking Conrad parallel port radio clock... " >&6; } 32874# Check whether --enable-PCF was given. 32875if test "${enable_PCF+set}" = set; then : 32876 enableval=$enable_PCF; ntp_ok=$enableval 32877else 32878 ntp_ok=$ntp_eac 32879 32880fi 32881 32882case "$ntp_ok" in 32883 yes) 32884 ntp_refclock=yes 32885 32886$as_echo "#define CLOCK_PCF 1" >>confdefs.h 32887 32888 ;; 32889esac 32890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 32891$as_echo "$ntp_ok" >&6; } 32892 32893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking PST/Traconex 1020 WWV/WWVH receiver" >&5 32894$as_echo_n "checking PST/Traconex 1020 WWV/WWVH receiver... " >&6; } 32895# Check whether --enable-PST was given. 32896if test "${enable_PST+set}" = set; then : 32897 enableval=$enable_PST; ntp_ok=$enableval 32898else 32899 ntp_ok=$ntp_eac 32900 32901fi 32902 32903case "$ntp_ok" in 32904 yes) 32905 ntp_refclock=yes 32906 32907$as_echo "#define CLOCK_PST 1" >>confdefs.h 32908 32909 ;; 32910esac 32911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 32912$as_echo "$ntp_ok" >&6; } 32913 32914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking RIPENCC specific Trimble driver" >&5 32915$as_echo_n "checking RIPENCC specific Trimble driver... " >&6; } 32916# Check whether --enable-RIPENCC was given. 32917if test "${enable_RIPENCC+set}" = set; then : 32918 enableval=$enable_RIPENCC; ntp_ok=$enableval 32919else 32920 ntp_ok=no 32921 32922fi 32923 32924# 020629: HMS: s/$ntp_eac -> -/no because of ptr += sprintf(ptr, ...) usage 32925case "$ntp_ripe_ncc_ok" in 32926 no) ntp_ok=no ;; 32927esac 32928case "$ntp_ok" in 32929 yes) 32930 ntp_refclock=yes 32931 32932$as_echo "#define CLOCK_RIPENCC /**/" >>confdefs.h 32933 32934 ;; 32935esac 32936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 32937$as_echo "$ntp_ok" >&6; } 32938 32939# Danny Meyer says SHM compiles (with a few warnings) under Win32. 32940# For *IX, we need sys/ipc.h and sys/shm.h. 32941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SHM clock attached thru shared memory" >&5 32942$as_echo_n "checking for SHM clock attached thru shared memory... " >&6; } 32943# Check whether --enable-SHM was given. 32944if test "${enable_SHM+set}" = set; then : 32945 enableval=$enable_SHM; ntp_ok=$enableval 32946else 32947 32948 case "$ntp_eac$ntp_canshm" in 32949 *no*) ntp_ok=no ;; 32950 *) ntp_ok=yes ;; 32951 esac 32952 32953 32954fi 32955 32956case "$ntp_ok" in 32957 yes) 32958 ntp_refclock=yes 32959 32960$as_echo "#define CLOCK_SHM 1" >>confdefs.h 32961 32962 ;; 32963esac 32964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 32965$as_echo "$ntp_ok" >&6; } 32966 32967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Spectracom 8170/Netclock/2 WWVB receiver" >&5 32968$as_echo_n "checking Spectracom 8170/Netclock/2 WWVB receiver... " >&6; } 32969# Check whether --enable-SPECTRACOM was given. 32970if test "${enable_SPECTRACOM+set}" = set; then : 32971 enableval=$enable_SPECTRACOM; ntp_ok=$enableval 32972else 32973 ntp_ok=$ntp_eac 32974 32975fi 32976 32977case "$ntp_ok" in 32978 yes) 32979 ntp_refclock=yes 32980 32981$as_echo "#define CLOCK_SPECTRACOM 1" >>confdefs.h 32982 32983 ;; 32984esac 32985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 32986$as_echo "$ntp_ok" >&6; } 32987 32988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking KSI/Odetics TPRO/S GPS receiver/IRIG interface" >&5 32989$as_echo_n "checking KSI/Odetics TPRO/S GPS receiver/IRIG interface... " >&6; } 32990# Check whether --enable-TPRO was given. 32991if test "${enable_TPRO+set}" = set; then : 32992 enableval=$enable_TPRO; ntp_ok=$enableval 32993else 32994 32995 case "$ac_cv_header_sys_tpro_h" in 32996 yes) 32997 ntp_ok=$ntp_eac 32998 ;; 32999 *) 33000 ntp_ok=no 33001 ;; 33002 esac 33003 33004 33005fi 33006 33007case "$ntp_ok" in 33008 yes) 33009 ntp_refclock=yes 33010 33011$as_echo "#define CLOCK_TPRO 1" >>confdefs.h 33012 33013 ;; 33014esac 33015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 33016$as_echo "$ntp_ok" >&6; } 33017case "$ntp_ok$ac_cv_header_sys_tpro" in 33018 yesno) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5 33019$as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} 33020esac 33021 33022# Not on a vax-dec-bsd 33023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Kinemetrics/TrueTime receivers" >&5 33024$as_echo_n "checking Kinemetrics/TrueTime receivers... " >&6; } 33025# Check whether --enable-TRUETIME was given. 33026if test "${enable_TRUETIME+set}" = set; then : 33027 enableval=$enable_TRUETIME; ntp_ok=$enableval 33028else 33029 33030 case "$host" in 33031 vax-dec-bsd) 33032 ntp_ok=no 33033 ;; 33034 *) 33035 ntp_ok=$ntp_eac 33036 ;; 33037 esac 33038 33039 33040fi 33041 33042case "$ntp_ok" in 33043 yes) 33044 ntp_refclock=yes 33045 33046$as_echo "#define CLOCK_TRUETIME 1" >>confdefs.h 33047 33048 ;; 33049esac 33050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 33051$as_echo "$ntp_ok" >&6; } 33052case "$ntp_ok$host" in 33053 yesvax-dec-bsd) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5 33054$as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} 33055esac 33056 33057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking TrueTime 560 IRIG-B decoder" >&5 33058$as_echo_n "checking TrueTime 560 IRIG-B decoder... " >&6; } 33059# Check whether --enable-TT560 was given. 33060if test "${enable_TT560+set}" = set; then : 33061 enableval=$enable_TT560; ntp_ok=$enableval 33062else 33063 ntp_ok=no 33064 33065fi 33066 33067case "$ntp_ok" in 33068 yes) 33069 ntp_refclock=yes 33070 33071$as_echo "#define CLOCK_TT560 /**/" >>confdefs.h 33072 33073 ;; 33074esac 33075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 33076$as_echo "$ntp_ok" >&6; } 33077 33078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Ultralink M320 WWVB receiver" >&5 33079$as_echo_n "checking Ultralink M320 WWVB receiver... " >&6; } 33080# Check whether --enable-ULINK was given. 33081if test "${enable_ULINK+set}" = set; then : 33082 enableval=$enable_ULINK; ntp_ok=$enableval 33083else 33084 ntp_ok=$ntp_eac 33085 33086fi 33087 33088case "$ntp_ok" in 33089 yes) 33090 ntp_refclock=yes 33091 33092$as_echo "#define CLOCK_ULINK 1" >>confdefs.h 33093 33094 ;; 33095esac 33096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 33097$as_echo "$ntp_ok" >&6; } 33098 33099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Spectracom TSYNC PCI timing board" >&5 33100$as_echo_n "checking Spectracom TSYNC PCI timing board... " >&6; } 33101# Check whether --enable-TSYNCPCI was given. 33102if test "${enable_TSYNCPCI+set}" = set; then : 33103 enableval=$enable_TSYNCPCI; ntp_ok=$enableval 33104else 33105 33106 case "$host" in 33107 *-*-*linux*) 33108 ntp_ok=$ntp_eac 33109 ;; 33110 *) 33111 ntp_ok=no 33112 esac 33113 33114 33115fi 33116 33117case "$ntp_ok" in 33118 yes) 33119 ntp_refclock=yes 33120 33121$as_echo "#define CLOCK_TSYNCPCI 1" >>confdefs.h 33122 33123 ;; 33124esac 33125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 33126$as_echo "$ntp_ok" >&6; } 33127 33128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking WWV receiver" >&5 33129$as_echo_n "checking WWV receiver... " >&6; } 33130# Check whether --enable-WWV was given. 33131if test "${enable_WWV+set}" = set; then : 33132 enableval=$enable_WWV; ntp_ok=$enableval 33133else 33134 33135 case "$ntp_eac$ntp_canaudio" in 33136 *no*) ntp_ok=no ;; 33137 *) ntp_ok=yes ;; 33138 esac 33139 33140 33141fi 33142 33143case "$ntp_ok" in 33144 yes) 33145 ntp_refclock=yes 33146 33147$as_echo "#define CLOCK_WWV 1" >>confdefs.h 33148 33149 ;; 33150esac 33151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 33152$as_echo "$ntp_ok" >&6; } 33153case "$ntp_ok$ntp_canaudio" in 33154 yesno) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5 33155$as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} 33156esac 33157 33158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Zyfer receiver" >&5 33159$as_echo_n "checking for Zyfer receiver... " >&6; } 33160# Check whether --enable-ZYFER was given. 33161if test "${enable_ZYFER+set}" = set; then : 33162 enableval=$enable_ZYFER; ntp_ok=$enableval 33163else 33164 ntp_ok=$ntp_eac 33165 33166fi 33167 33168case "$ntp_ok" in 33169 yes) 33170 ntp_refclock=yes 33171 33172$as_echo "#define CLOCK_ZYFER 1" >>confdefs.h 33173 33174 ;; 33175esac 33176{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 33177$as_echo "$ntp_ok" >&6; } 33178 33179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default inclusion of all suitable PARSE clocks" >&5 33180$as_echo_n "checking for default inclusion of all suitable PARSE clocks... " >&6; } 33181# Check whether --enable-parse-clocks was given. 33182if test "${enable_parse_clocks+set}" = set; then : 33183 enableval=$enable_parse_clocks; ntp_eapc=$enableval 33184else 33185 33186 case "$ntp_eac" in 33187 yes) ntp_eapc=$ntp_canparse ;; 33188 *) ntp_eapc=no ;; 33189 esac 33190 # Delete the next line one of these days 33191 ntp_eapc=no 33192 33193 33194fi 33195 33196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_eapc" >&5 33197$as_echo "$ntp_eapc" >&6; } 33198 33199case "$ntp_eac$ntp_eapc$ntp_canparse" in 33200 noyes*) 33201 as_fn_error $? "\"--enable-parse-clocks\" requires \"--enable-all-clocks\"." "$LINENO" 5 33202 ;; 33203 yesyesno) 33204 as_fn_error $? "You said \"--enable-parse-clocks\" but PARSE isn't supported on this platform!" "$LINENO" 5 33205 ;; 33206esac 33207 33208ntp_libparse=no 33209ntp_parseutil=no 33210ntp_rawdcf=no 33211 33212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Diem Computime Radio Clock" >&5 33213$as_echo_n "checking Diem Computime Radio Clock... " >&6; } 33214# Check whether --enable-COMPUTIME was given. 33215if test "${enable_COMPUTIME+set}" = set; then : 33216 enableval=$enable_COMPUTIME; ntp_ok=$enableval 33217else 33218 ntp_ok=$ntp_eapc 33219 33220fi 33221 33222case "$ntp_ok" in 33223 yes) 33224 ntp_libparse=yes 33225 ntp_refclock=yes 33226 33227$as_echo "#define CLOCK_COMPUTIME 1" >>confdefs.h 33228 33229 ;; 33230esac 33231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 33232$as_echo "$ntp_ok" >&6; } 33233case "$ntp_ok$ntp_canparse" in 33234 yesno) 33235 as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5 33236esac 33237 33238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking ELV/DCF7000 clock" >&5 33239$as_echo_n "checking ELV/DCF7000 clock... " >&6; } 33240# Check whether --enable-DCF7000 was given. 33241if test "${enable_DCF7000+set}" = set; then : 33242 enableval=$enable_DCF7000; ntp_ok=$enableval 33243else 33244 ntp_ok=$ntp_eapc 33245 33246fi 33247 33248case "$ntp_ok" in 33249 yes) 33250 ntp_libparse=yes 33251 ntp_refclock=yes 33252 33253$as_echo "#define CLOCK_DCF7000 1" >>confdefs.h 33254 33255 ;; 33256esac 33257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 33258$as_echo "$ntp_ok" >&6; } 33259case "$ntp_ok$ntp_canparse" in 33260 yesno) 33261 as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5 33262esac 33263 33264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking HOPF 6021 clock" >&5 33265$as_echo_n "checking HOPF 6021 clock... " >&6; } 33266# Check whether --enable-HOPF6021 was given. 33267if test "${enable_HOPF6021+set}" = set; then : 33268 enableval=$enable_HOPF6021; ntp_ok=$enableval 33269else 33270 ntp_ok=$ntp_eapc 33271 33272fi 33273 33274case "$ntp_ok" in 33275 yes) 33276 ntp_libparse=yes 33277 ntp_refclock=yes 33278 33279$as_echo "#define CLOCK_HOPF6021 1" >>confdefs.h 33280 33281 ;; 33282esac 33283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 33284$as_echo "$ntp_ok" >&6; } 33285case "$ntp_ok$ntp_canparse" in 33286 yesno) 33287 as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5 33288esac 33289 33290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Meinberg clocks" >&5 33291$as_echo_n "checking Meinberg clocks... " >&6; } 33292# Check whether --enable-MEINBERG was given. 33293if test "${enable_MEINBERG+set}" = set; then : 33294 enableval=$enable_MEINBERG; ntp_ok=$enableval 33295else 33296 ntp_ok=$ntp_eapc 33297 33298fi 33299 33300case "$ntp_ok" in 33301 yes) 33302 ntp_libparse=yes 33303 ntp_refclock=yes 33304 33305$as_echo "#define CLOCK_MEINBERG 1" >>confdefs.h 33306 33307 ;; 33308esac 33309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 33310$as_echo "$ntp_ok" >&6; } 33311case "$ntp_ok$ntp_canparse" in 33312 yesno) 33313 as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5 33314esac 33315 33316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking DCF77 raw time code" >&5 33317$as_echo_n "checking DCF77 raw time code... " >&6; } 33318# Check whether --enable-RAWDCF was given. 33319if test "${enable_RAWDCF+set}" = set; then : 33320 enableval=$enable_RAWDCF; ntp_ok=$enableval 33321else 33322 ntp_ok=$ntp_eapc 33323 33324fi 33325 33326case "$ntp_ok" in 33327 yes) 33328 ntp_libparse=yes 33329 ntp_parseutil=yes 33330 ntp_refclock=yes 33331 ntp_rawdcf=yes 33332 33333$as_echo "#define CLOCK_RAWDCF 1" >>confdefs.h 33334 33335 ;; 33336esac 33337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 33338$as_echo "$ntp_ok" >&6; } 33339case "$ntp_ok$ntp_canparse" in 33340 yesno) 33341 as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5 33342esac 33343 33344case "$ntp_rawdcf" in 33345 yes) 33346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we must enable parity for RAWDCF" >&5 33347$as_echo_n "checking if we must enable parity for RAWDCF... " >&6; } 33348if ${ntp_cv_rawdcf_parity+:} false; then : 33349 $as_echo_n "(cached) " >&6 33350else 33351 33352 ans=no 33353 case "$host" in 33354 *-*-*linux*) 33355 ans=yes 33356 ;; 33357 esac 33358 ntp_cv_rawdcf_parity=$ans 33359 33360 33361fi 33362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_rawdcf_parity" >&5 33363$as_echo "$ntp_cv_rawdcf_parity" >&6; } 33364 case "$ntp_cv_rawdcf_parity" in 33365 yes) 33366 33367$as_echo "#define RAWDCF_NO_IGNPAR 1" >>confdefs.h 33368 ;; 33369 esac 33370esac 33371 33372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking RCC 8000 clock" >&5 33373$as_echo_n "checking RCC 8000 clock... " >&6; } 33374# Check whether --enable-RCC8000 was given. 33375if test "${enable_RCC8000+set}" = set; then : 33376 enableval=$enable_RCC8000; ntp_ok=$enableval 33377else 33378 ntp_ok=$ntp_eapc 33379 33380fi 33381 33382case "$ntp_ok" in 33383 yes) 33384 ntp_libparse=yes 33385 ntp_refclock=yes 33386 33387$as_echo "#define CLOCK_RCC8000 1" >>confdefs.h 33388 33389 ;; 33390esac 33391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 33392$as_echo "$ntp_ok" >&6; } 33393case "$ntp_ok$ntp_canparse" in 33394 yesno) 33395 as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5 33396esac 33397 33398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Schmid DCF77 clock" >&5 33399$as_echo_n "checking Schmid DCF77 clock... " >&6; } 33400# Check whether --enable-SCHMID was given. 33401if test "${enable_SCHMID+set}" = set; then : 33402 enableval=$enable_SCHMID; ntp_ok=$enableval 33403else 33404 ntp_ok=$ntp_eapc 33405 33406fi 33407 33408case "$ntp_ok" in 33409 yes) 33410 ntp_libparse=yes 33411 ntp_refclock=yes 33412 33413$as_echo "#define CLOCK_SCHMID 1" >>confdefs.h 33414 33415 ;; 33416esac 33417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 33418$as_echo "$ntp_ok" >&6; } 33419case "$ntp_ok$ntp_canparse" in 33420 yesno) 33421 as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5 33422esac 33423 33424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Trimble GPS receiver/TAIP protocol" >&5 33425$as_echo_n "checking Trimble GPS receiver/TAIP protocol... " >&6; } 33426# Check whether --enable-TRIMTAIP was given. 33427if test "${enable_TRIMTAIP+set}" = set; then : 33428 enableval=$enable_TRIMTAIP; ntp_ok=$enableval 33429else 33430 ntp_ok=$ntp_eapc 33431 33432fi 33433 33434case "$ntp_ok" in 33435 yes) 33436 ntp_libparse=yes 33437 ntp_refclock=yes 33438 33439$as_echo "#define CLOCK_TRIMTAIP 1" >>confdefs.h 33440 33441 ;; 33442esac 33443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 33444$as_echo "$ntp_ok" >&6; } 33445case "$ntp_ok$ntp_canparse" in 33446 yesno) 33447 as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5 33448esac 33449 33450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Trimble GPS receiver/TSIP protocol" >&5 33451$as_echo_n "checking Trimble GPS receiver/TSIP protocol... " >&6; } 33452# Check whether --enable-TRIMTSIP was given. 33453if test "${enable_TRIMTSIP+set}" = set; then : 33454 enableval=$enable_TRIMTSIP; ntp_ok=$enableval 33455else 33456 ntp_ok=$ntp_eapc 33457 33458fi 33459 33460case "$ntp_ok" in 33461 yes) 33462 ntp_libparse=yes 33463 ntp_refclock=yes 33464 33465$as_echo "#define CLOCK_TRIMTSIP 1" >>confdefs.h 33466 33467 ;; 33468esac 33469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 33470$as_echo "$ntp_ok" >&6; } 33471case "$ntp_ok$ntp_canparse" in 33472 yesno) 33473 as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5 33474esac 33475 33476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking WHARTON 400A Series clock" >&5 33477$as_echo_n "checking WHARTON 400A Series clock... " >&6; } 33478# Check whether --enable-WHARTON was given. 33479if test "${enable_WHARTON+set}" = set; then : 33480 enableval=$enable_WHARTON; ntp_ok=$enableval 33481else 33482 ntp_ok=$ntp_eapc 33483 33484fi 33485 33486case "$ntp_ok" in 33487 yes) 33488 ntp_libparse=yes 33489 ntp_refclock=yes 33490 33491$as_echo "#define CLOCK_WHARTON_400A 1" >>confdefs.h 33492 33493 ;; 33494esac 33495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 33496$as_echo "$ntp_ok" >&6; } 33497case "$ntp_ok$ntp_canparse" in 33498 yesno) 33499 as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5 33500esac 33501 33502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking VARITEXT clock" >&5 33503$as_echo_n "checking VARITEXT clock... " >&6; } 33504# Check whether --enable-VARITEXT was given. 33505if test "${enable_VARITEXT+set}" = set; then : 33506 enableval=$enable_VARITEXT; ntp_ok=$enableval 33507else 33508 ntp_ok=$ntp_eapc 33509 33510fi 33511 33512case "$ntp_ok" in 33513 yes) 33514 ntp_libparse=yes 33515 ntp_refclock=yes 33516 33517$as_echo "#define CLOCK_VARITEXT 1" >>confdefs.h 33518 33519 ;; 33520esac 33521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 33522$as_echo "$ntp_ok" >&6; } 33523case "$ntp_ok$ntp_canparse" in 33524 yesno) 33525 as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5 33526esac 33527 33528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking SEL240X clock" >&5 33529$as_echo_n "checking SEL240X clock... " >&6; } 33530# Check whether --enable-SEL240X was given. 33531if test "${enable_SEL240X+set}" = set; then : 33532 enableval=$enable_SEL240X; ntp_ok=$enableval 33533else 33534 ntp_ok=$ntp_eapc 33535fi 33536 33537if test "$ntp_ok" = "yes"; then 33538 ntp_libparse=yes 33539 ntp_refclock=yes 33540 33541$as_echo "#define CLOCK_SEL240X 1" >>confdefs.h 33542 33543fi 33544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 33545$as_echo "$ntp_ok" >&6; } 33546case "$ntp_ok$ntp_canparse" in 33547 yesno) 33548 as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5 33549 ;; 33550esac 33551 33552 33553 33554 33555 33556 33557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need to make and use the parse libraries" >&5 33558$as_echo_n "checking if we need to make and use the parse libraries... " >&6; } 33559ans=no 33560case "$ntp_libparse" in 33561 yes) 33562 ans=yes 33563 33564$as_echo "#define CLOCK_PARSE 1" >>confdefs.h 33565 33566 LIBPARSE=../libparse/libparse.a 33567 MAKE_LIBPARSE=libparse.a 33568 # HMS: check_y2k trips the 34 year problem now... 33569 false && MAKE_CHECK_Y2K=check_y2k 33570esac 33571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 33572$as_echo "$ans" >&6; } 33573 33574 33575 33576 33577VER_SUFFIX= 33578 33579 33580 33581 33582# Check whether --with-crypto was given. 33583if test "${with_crypto+set}" = set; then : 33584 withval=$with_crypto; 33585fi 33586 33587 33588# Check whether --with-openssl-libdir was given. 33589if test "${with_openssl_libdir+set}" = set; then : 33590 withval=$with_openssl_libdir; 33591fi 33592 33593 33594# Check whether --with-openssl-incdir was given. 33595if test "${with_openssl_incdir+set}" = set; then : 33596 withval=$with_openssl_incdir; 33597fi 33598 33599 33600# Check whether --with-rpath was given. 33601if test "${with_rpath+set}" = set; then : 33602 withval=$with_rpath; 33603fi 33604 33605ntp_openssl=no 33606ntp_openssl_from_pkg_config=no 33607with_crypto=${with_crypto:-openssl,libcrypto} 33608case "$with_crypto" in 33609 yes) 33610 with_crypto=openssl,libcrypto 33611esac 33612case "$with_crypto:${PKG_CONFIG:+notempty}:${with_openssl_libdir-notgiven}:${with_openssl_incdir-notgiven}" in 33613 no:*) ;; 33614 *:notempty:notgiven:notgiven) 33615 for pkg in `echo $with_crypto | sed -e 's/,/ /'`; do 33616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config for $pkg" >&5 33617$as_echo_n "checking pkg-config for $pkg... " >&6; } 33618 if $PKG_CONFIG --exists $pkg ; then 33619 CPPFLAGS_NTP="$CPPFLAGS_NTP `$PKG_CONFIG --cflags-only-I $pkg`" 33620 CFLAGS_NTP="$CFLAGS_NTP `$PKG_CONFIG --cflags-only-other $pkg`" 33621 LDADD_NTP="$LDADD_NTP `$PKG_CONFIG --libs-only-L $pkg`" 33622 LDADD_NTP="$LDADD_NTP `$PKG_CONFIG --libs-only-l $pkg`" 33623 LDFLAGS_NTP="$LDFLAGS_NTP `$PKG_CONFIG --libs-only-other $pkg`" 33624 VER_SUFFIX=o 33625 ntp_openssl=yes 33626 ntp_openssl_from_pkg_config=yes 33627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 33628$as_echo "yes" >&6; } 33629 33630 break 33631 fi 33632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33633$as_echo "no" >&6; } 33634 done 33635esac 33636case "$with_crypto:$ntp_openssl" in 33637 no:*) ;; 33638 *:no) 33639 need_dash_r= 33640 need_dash_Wlrpath= 33641 case "${with_rpath-notgiven}" in 33642 yes) 33643 # Lame - what to do if we need -Wl... but not -R? 33644 need_dash_r=1 33645 ;; 33646 notgiven) 33647 case "$host" in 33648 *-*-linux*) 33649 # This may really only be true for gcc 33650 need_dash_Wlrpath=1 33651 ;; 33652 *-*-netbsd*) 33653 need_dash_r=1 33654 ;; 33655 *-*-solaris*) 33656 need_dash_r=1 33657 ;; 33658 esac 33659 ;; 33660 esac 33661 33662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl library directory" >&5 33663$as_echo_n "checking for openssl library directory... " >&6; } 33664 with_openssl_libdir=${with_openssl_libdir-notgiven} 33665 case "$with_openssl_libdir" in 33666 notgiven) 33667 case "$build" in 33668 $host) 33669 with_openssl_libdir=default 33670 ;; 33671 *) 33672 with_openssl_libdir=no 33673 ;; 33674 esac 33675 esac 33676 case "$with_openssl_libdir" in 33677 default) 33678 # Look in: 33679 with_openssl_libdir="/usr/lib /usr/lib/openssl /usr/sfw/lib" 33680 with_openssl_libdir="$with_openssl_libdir /usr/local/lib" 33681 with_openssl_libdir="$with_openssl_libdir /usr/local/ssl/lib /lib" 33682 esac 33683 case "$with_openssl_libdir" in 33684 no) 33685 ;; 33686 *) # Look for libcrypto.a and libssl.a: 33687 for i in $with_openssl_libdir no 33688 do 33689 case "$host" in 33690 *-*-darwin*) 33691 test -f $i/libcrypto.dylib -a -f $i/libssl.dylib && break 33692 ;; 33693 *) 33694 test -f $i/libcrypto.so -a -f $i/libssl.so && break 33695 test -f $i/libcrypto.a -a -f $i/libssl.a && break 33696 ;; 33697 esac 33698 done 33699 openssl_libdir=$i 33700 ;; 33701 esac 33702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $openssl_libdir" >&5 33703$as_echo "$openssl_libdir" >&6; } 33704 case "$openssl_libdir" in 33705 no) 33706 openssl_libdir= 33707 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libcrypto and libssl not found in any of $with_openssl_libdir" >&5 33708$as_echo "$as_me: WARNING: libcrypto and libssl not found in any of $with_openssl_libdir" >&2;} 33709 esac 33710 33711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl include directory" >&5 33712$as_echo_n "checking for openssl include directory... " >&6; } 33713 with_openssl_incdir=${with_openssl_incdir-notgiven} 33714 case "$with_openssl_incdir" in 33715 notgiven) 33716 # Look in: 33717 with_openssl_incdir="/usr/include /usr/sfw/include" 33718 with_openssl_incdir="$with_openssl_incdir /usr/local/include" 33719 with_openssl_incdir="$with_openssl_incdir /usr/local/ssl/include" 33720 esac 33721 case "$with_openssl_incdir" in 33722 no) 33723 ;; 33724 *) # look for openssl/evp.h: 33725 for i in $with_openssl_incdir no 33726 do 33727 test -f $i/openssl/evp.h && break 33728 done 33729 openssl_incdir=$i 33730 ;; 33731 esac 33732 { i=; unset i;} 33733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $openssl_incdir" >&5 33734$as_echo "$openssl_incdir" >&6; } 33735 case "$openssl_incdir" in 33736 no) 33737 openssl_incdir= 33738 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: did not find openssl/evp.h in any of $with_openssl_incdir" >&5 33739$as_echo "$as_me: WARNING: did not find openssl/evp.h in any of $with_openssl_incdir" >&2;} 33740 esac 33741 if test -z "$openssl_libdir" -o -z "$openssl_incdir" 33742 then 33743 ntp_openssl=no 33744 else 33745 ntp_openssl=yes 33746 VER_SUFFIX=o 33747 fi 33748 case "$ntp_openssl" in 33749 yes) 33750 # We have OpenSSL inc/lib dirs - use them. 33751 case "$openssl_incdir" in 33752 /usr/include) 33753 ;; 33754 *) 33755 CPPFLAGS_NTP="$CPPFLAGS_NTP -I$openssl_incdir" 33756 ;; 33757 esac 33758 case "$openssl_libdir" in 33759 /usr/lib) 33760 ;; 33761 *) 33762 LDADD_NTP="$LDADD_NTP -L$openssl_libdir" 33763 case "$need_dash_r" in 33764 1) 33765 LDFLAGS_NTP="$LDFLAGS_NTP -R$openssl_libdir" 33766 esac 33767 case "$need_dash_Wlrpath" in 33768 1) 33769 LDFLAGS_NTP="$LDFLAGS_NTP -Wl,-rpath,$openssl_libdir" 33770 esac 33771 ;; 33772 esac 33773 LDADD_NTP="$LDADD_NTP -lcrypto" 33774 esac 33775esac 33776 33777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we will use crypto" >&5 33778$as_echo_n "checking if we will use crypto... " >&6; } 33779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_openssl" >&5 33780$as_echo "$ntp_openssl" >&6; } 33781 33782case "$ntp_openssl" in 33783 yes) 33784 33785$as_echo "#define OPENSSL /**/" >>confdefs.h 33786 33787 case "$VER_SUFFIX" in 33788 *o*) ;; 33789 *) as_fn_error $? "OPENSSL set but no 'o' in VER_SUFFIX!" "$LINENO" 5 ;; 33790 esac 33791 ;; 33792esac 33793 33794NTPO_SAVED_CPPFLAGS="$CPPFLAGS" 33795CPPFLAGS="$CPPFLAGS $CPPFLAGS_NTP" 33796NTPO_SAVED_LIBS="$LIBS" 33797 33798# 33799# check for linking with -lcrypto failure, and try -lcrypto -lz. 33800# Helps m68k-atari-mint 33801# 33802case "$ntp_openssl:$ntp_openssl_from_pkg_config" in 33803 yes:no) 33804 LIBS="$NTPO_SAVED_LIBS $LDADD_NTP" 33805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linking with -lcrypto alone works" >&5 33806$as_echo_n "checking if linking with -lcrypto alone works... " >&6; } 33807if ${ntp_cv_bare_lcrypto+:} false; then : 33808 $as_echo_n "(cached) " >&6 33809else 33810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33811/* end confdefs.h. */ 33812 33813 #include "openssl/err.h" 33814 #include "openssl/evp.h" 33815 33816int 33817main () 33818{ 33819 33820 ERR_load_crypto_strings(); 33821 OpenSSL_add_all_algorithms(); 33822 33823 33824 ; 33825 return 0; 33826} 33827_ACEOF 33828if ac_fn_c_try_link "$LINENO"; then : 33829 ntp_cv_bare_lcrypto=yes 33830else 33831 ntp_cv_bare_lcrypto=no 33832 33833fi 33834rm -f core conftest.err conftest.$ac_objext \ 33835 conftest$ac_exeext conftest.$ac_ext 33836 33837fi 33838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_bare_lcrypto" >&5 33839$as_echo "$ntp_cv_bare_lcrypto" >&6; } 33840 case "$ntp_cv_bare_lcrypto" in 33841 no) 33842 LIBS="$NTPO_SAVED_LIBS $LDADD_NTP -lz" 33843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linking with -lcrypto -lz works" >&5 33844$as_echo_n "checking if linking with -lcrypto -lz works... " >&6; } 33845if ${ntp_cv_lcrypto_lz+:} false; then : 33846 $as_echo_n "(cached) " >&6 33847else 33848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33849/* end confdefs.h. */ 33850 33851 #include "openssl/err.h" 33852 #include "openssl/evp.h" 33853 33854int 33855main () 33856{ 33857 33858 ERR_load_crypto_strings(); 33859 OpenSSL_add_all_algorithms(); 33860 33861 33862 ; 33863 return 0; 33864} 33865_ACEOF 33866if ac_fn_c_try_link "$LINENO"; then : 33867 ntp_cv_lcrypto_lz=yes 33868else 33869 ntp_cv_lcrypto_lz=no 33870 33871fi 33872rm -f core conftest.err conftest.$ac_objext \ 33873 conftest$ac_exeext conftest.$ac_ext 33874 33875fi 33876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_lcrypto_lz" >&5 33877$as_echo "$ntp_cv_lcrypto_lz" >&6; } 33878 case "$ntp_cv_lcrypto_lz" in 33879 yes) 33880 LDADD_NTP="$LDADD_NTP -lz" 33881 esac 33882 esac 33883esac 33884 33885# 33886# Older OpenSSL headers have a number of callback prototypes inside 33887# other function prototypes which trigger copious warnings with gcc's 33888# -Wstrict-prototypes, which is included in -Wall. 33889# 33890# An example: 33891# 33892# int i2d_RSA_NET(const RSA *a, unsigned char **pp, 33893# int (*cb)(), int sgckey); 33894# ^^^^^^^^^^^ 33895# 33896# 33897# 33898openssl_triggers_warnings=unknown 33899NTPO_SAVED_CFLAGS="$CFLAGS" 33900 33901case "$ntp_openssl:$GCC" in 33902 yes:yes) 33903 CFLAGS="$CFLAGS -Werror" 33904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33905/* end confdefs.h. */ 33906 33907 33908int 33909main () 33910{ 33911 33912 /* see if -Werror breaks gcc */ 33913 33914 33915 ; 33916 return 0; 33917} 33918_ACEOF 33919if ac_fn_c_try_compile "$LINENO"; then : 33920 gcc_handles_Werror=yes 33921else 33922 gcc_handles_Werror=no 33923 33924fi 33925rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 33926 case "$gcc_handles_Werror" in 33927 no) 33928 # if this gcc doesn't do -Werror go ahead and use 33929 # -Wstrict-prototypes. 33930 openssl_triggers_warnings=yes 33931 ;; 33932 yes) 33933 CFLAGS="$CFLAGS -Wstrict-prototypes" 33934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33935/* end confdefs.h. */ 33936 33937 #include "openssl/asn1_mac.h" 33938 #include "openssl/bn.h" 33939 #include "openssl/err.h" 33940 #include "openssl/evp.h" 33941 #include "openssl/pem.h" 33942 #include "openssl/rand.h" 33943 #include "openssl/x509v3.h" 33944 33945int 33946main () 33947{ 33948 33949 /* empty body */ 33950 33951 33952 ; 33953 return 0; 33954} 33955_ACEOF 33956if ac_fn_c_try_compile "$LINENO"; then : 33957 openssl_triggers_warnings=no 33958else 33959 openssl_triggers_warnings=yes 33960 33961fi 33962rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 33963 esac 33964 case "$openssl_triggers_warnings" in 33965 yes) 33966 CFLAGS_NTP="$CFLAGS_NTP -Wno-strict-prototypes" 33967 ;; 33968 *) 33969 CFLAGS_NTP="$CFLAGS_NTP -Wstrict-prototypes" 33970 esac 33971 ;; 33972 no:yes) 33973 # gcc without OpenSSL 33974 CFLAGS_NTP="$CFLAGS_NTP -Wstrict-prototypes" 33975esac 33976 33977CFLAGS="$NTPO_SAVED_CFLAGS" 33978CPPFLAGS="$NTPO_SAVED_CPPFLAGS" 33979LIBS="$NTPO_SAVED_LIBS" 33980{ NTPO_SAVED_CFLAGS=; unset NTPO_SAVED_CFLAGS;} 33981{ NTPO_SAVED_CPPFLAGS=; unset NTPO_SAVED_CPPFLAGS;} 33982{ NTPO_SAVED_LIBS=; unset NTPO_SAVED_LIBS;} 33983{ openssl_triggers_warnings=; unset openssl_triggers_warnings;} 33984{ ntp_openssl_from_pkg_config=; unset ntp_openssl_from_pkg_config;} 33985 33986 33987 33988 33989 33990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to use OpenSSL's crypto random (if available)" >&5 33991$as_echo_n "checking if we want to use OpenSSL's crypto random (if available)... " >&6; } 33992# Check whether --enable-openssl-random was given. 33993if test "${enable_openssl_random+set}" = set; then : 33994 enableval=$enable_openssl_random; ntp_use_openssl_random=$enableval 33995else 33996 ntp_use_openssl_random=yes 33997 33998fi 33999 34000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_use_openssl_random" >&5 34001$as_echo "$ntp_use_openssl_random" >&6; } 34002 34003# The following might need extra libraries 34004NTPO_SAVED_LIBS="$LIBS" 34005LIBS="$NTPO_SAVED_LIBS $LDADD_NTP" 34006for ac_func in RAND_bytes RAND_poll 34007do : 34008 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 34009ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 34010if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 34011 cat >>confdefs.h <<_ACEOF 34012#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 34013_ACEOF 34014 34015fi 34016done 34017 34018LIBS="$NTPO_SAVED_LIBS" 34019case "$ntp_use_openssl_random$ac_cv_func_RAND_bytes$ac_cv_func_RAND_poll" in 34020 yesyesyes) 34021 34022$as_echo "#define USE_OPENSSL_CRYPTO_RAND 1" >>confdefs.h 34023 34024 ;; 34025 *) ntp_use_openssl_random=no ;; 34026esac 34027 34028 34029 34030# if we are using OpenSSL (--with-crypto), by default Autokey is enabled 34031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to include NTP Autokey protocol support" >&5 34032$as_echo_n "checking if we want to include NTP Autokey protocol support... " >&6; } 34033# Check whether --enable-autokey was given. 34034if test "${enable_autokey+set}" = set; then : 34035 enableval=$enable_autokey; ntp_autokey=$enableval 34036else 34037 ntp_autokey=$ntp_openssl 34038 34039fi 34040 34041case "$ntp_autokey" in 34042 no) 34043 ;; 34044 *) 34045 case "$ntp_openssl" in 34046 no) 34047 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling Autokey, --enable-autokey requires --with-crypto." >&5 34048$as_echo "$as_me: WARNING: Disabling Autokey, --enable-autokey requires --with-crypto." >&2;} 34049 ntp_autokey=no 34050 ;; 34051 *) 34052 34053$as_echo "#define AUTOKEY 1" >>confdefs.h 34054 34055 ntp_autokey=yes 34056 ;; 34057 esac 34058 ;; 34059esac 34060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_autokey" >&5 34061$as_echo "$ntp_autokey" >&6; } 34062 34063 34064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to run check-layout" >&5 34065$as_echo_n "checking if we want to run check-layout... " >&6; } 34066case "$cross_compiling$PATH_PERL" in 34067 no/*) 34068 MAKE_CHECK_LAYOUT=check-layout 34069 ans=yes 34070 ;; 34071 *) 34072 ans=no 34073 ;; 34074esac 34075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 34076$as_echo "$ans" >&6; } 34077 34078 34079 34080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can make dcf parse utilities" >&5 34081$as_echo_n "checking if we can make dcf parse utilities... " >&6; } 34082ans=no 34083case "$ntp_parseutil" in 34084 yes) 34085 case "$host" in 34086 *-*-sunos4*|*-*-solaris2*|*-*-*linux*|*-*-netbsd*) 34087 ans="dcfd testdcf" 34088 DCFD=dcfd 34089 TESTDCF=testdcf 34090 esac 34091 ;; 34092esac 34093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 34094$as_echo "$ans" >&6; } 34095 34096 34097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can build kernel streams modules for parse" >&5 34098$as_echo_n "checking if we can build kernel streams modules for parse... " >&6; } 34099ans=no 34100case "$ntp_parseutil$ac_cv_header_sys_stropts_h" in 34101 yesyes) 34102 case "$host" in 34103 sparc-*-sunos4*) 34104 case "$ntp_cv_var_kernel_pll" in 34105 yes) 34106 34107$as_echo "#define PPS_SYNC 1" >>confdefs.h 34108 34109 ;; 34110 esac 34111 ans=parsestreams 34112 MAKE_PARSEKMODULE=parsestreams.loadable_module.o 34113 ;; 34114 sparc-*-solaris2*) 34115 ans=parsesolaris 34116 MAKE_PARSEKMODULE=parse 34117 for ac_header in strings.h 34118do : 34119 ac_fn_c_check_header_mongrel "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default" 34120if test "x$ac_cv_header_strings_h" = xyes; then : 34121 cat >>confdefs.h <<_ACEOF 34122#define HAVE_STRINGS_H 1 34123_ACEOF 34124 34125fi 34126 34127done 34128 34129 ;; 34130 esac 34131 ;; 34132esac 34133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 34134$as_echo "$ans" >&6; } 34135 34136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need basic refclock support" >&5 34137$as_echo_n "checking if we need basic refclock support... " >&6; } 34138case "$ntp_refclock" in 34139 yes) 34140 34141$as_echo "#define REFCLOCK 1" >>confdefs.h 34142 34143 ;; 34144esac 34145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_refclock" >&5 34146$as_echo "$ntp_refclock" >&6; } 34147 34148PROPDELAY=propdelay 34149 34150 34151 34152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want HP-UX adjtimed support" >&5 34153$as_echo_n "checking if we want HP-UX adjtimed support... " >&6; } 34154case "$host" in 34155 *-*-hpux[56789]*) 34156 ans=yes 34157 ;; 34158 *) ans=no 34159 ;; 34160esac 34161case "$ans" in 34162 yes) 34163 MAKE_ADJTIMED=adjtimed 34164 34165$as_echo "#define NEED_HPUX_ADJTIME 1" >>confdefs.h 34166 34167 ;; 34168 *) ADJTIMED_DB= 34169 ADJTIMED_DL= 34170 ADJTIMED_DS= 34171 ADJTIMED_MS= 34172 ;; 34173esac 34174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 34175$as_echo "$ans" >&6; } 34176 34177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want QNX adjtime support" >&5 34178$as_echo_n "checking if we want QNX adjtime support... " >&6; } 34179case "$host" in 34180 *-*-qnx*) 34181 ans=yes 34182 ;; 34183 *) ans=no 34184 ;; 34185esac 34186case "$ans" in 34187 yes) 34188 34189$as_echo "#define NEED_QNX_ADJTIME 1" >>confdefs.h 34190 34191 ;; 34192esac 34193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 34194$as_echo "$ans" >&6; } 34195 34196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can read kmem" >&5 34197$as_echo_n "checking if we can read kmem... " >&6; } 34198 34199# the default is to enable it if the system has the capability 34200 34201case "$ac_cv_func_nlist$ac_cv_func_K_open$ac_cv_func_kvm_open" in 34202 *yes*) 34203 ans=yes 34204 ;; 34205 *) ans=no 34206 ;; 34207esac 34208 34209case "$host" in 34210 *-*-domainos) # Won't be found... 34211 ans=no 34212 ;; 34213 *-*-hpux*) 34214 #ans=no 34215 ;; 34216 *-*-irix[456]*) 34217 ans=no 34218 ;; 34219 *-*-*linux*) 34220 ans=no 34221 ;; 34222 *-*-winnt3.5) 34223 ans=no 34224 ;; 34225 *-*-unicosmp*) 34226 ans=no 34227 ;; 34228esac 34229 34230# --enable-kmem / --disable-kmem controls if present 34231# Check whether --enable-kmem was given. 34232if test "${enable_kmem+set}" = set; then : 34233 enableval=$enable_kmem; ans=$enableval 34234 34235fi 34236 34237 34238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 34239$as_echo "$ans" >&6; } 34240 34241case "$ans" in 34242 yes) 34243 can_kmem=yes 34244 ;; 34245 *) 34246 can_kmem=no 34247 34248$as_echo "#define NOKMEM 1" >>confdefs.h 34249 34250esac 34251 34252 34253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if adjtime is accurate" >&5 34254$as_echo_n "checking if adjtime is accurate... " >&6; } 34255 34256# target-dependent defaults 34257 34258case "$host" in 34259 i386-sequent-ptx*) 34260 ans=no 34261 ;; 34262 i386-unknown-osf1*) 34263 ans=yes 34264 ;; 34265 mips-sgi-irix[456]*) 34266 ans=yes 34267 ;; 34268 *-fujitsu-uxp*) 34269 ans=yes 34270 ;; 34271 *-ibm-aix[4-9]*) 34272 # XXX only verified thru AIX6. 34273 ans=yes 34274 ;; 34275 *-*-*linux*) 34276 ans=yes 34277 ;; 34278 *-*-solaris2.[01]) 34279 ans=no 34280 ;; 34281 *-*-solaris2*) 34282 ans=yes 34283 ;; 34284 *-*-unicosmp*) 34285 ans=yes 34286 ;; 34287 *) ans=no 34288 ;; 34289esac 34290 34291# --enable-accurate-adjtime / --disable-accurate-adjtime 34292# override the default 34293# Check whether --enable-accurate-adjtime was given. 34294if test "${enable_accurate_adjtime+set}" = set; then : 34295 enableval=$enable_accurate_adjtime; ans=$enableval 34296 34297fi 34298 34299 34300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 34301$as_echo "$ans" >&6; } 34302 34303case "$ans" in 34304 yes) 34305 34306$as_echo "#define ADJTIME_IS_ACCURATE 1" >>confdefs.h 34307 34308 adjtime_is_accurate=yes 34309 ;; 34310 *) 34311 adjtime_is_accurate=no 34312 ;; 34313esac 34314 34315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name of 'tick' in the kernel" >&5 34316$as_echo_n "checking the name of 'tick' in the kernel... " >&6; } 34317if ${ntp_cv_nlist_tick+:} false; then : 34318 $as_echo_n "(cached) " >&6 34319else 34320 34321 ans=_tick 34322 case "$host" in 34323 m68*-hp-hpux*) # HP9000/300? 34324 ans=_old_tick 34325 ;; 34326 *-apple-aux[23]*) 34327 ans=tick 34328 ;; 34329 *-hp-hpux*) 34330 ans=old_tick 34331 ;; 34332 *-ibm-aix[3-9]*) 34333 # XXX only verified thru AIX6. 34334 ans=no 34335 ;; 34336 *-*-mpeix*) 34337 ans=no 34338 ;; 34339 *-*-ptx*) 34340 ans=tick 34341 ;; 34342 *-*-sco3.2v[45]*) 34343 ans=no 34344 ;; 34345 *-*-solaris2*) 34346 ans=nsec_per_tick 34347 ;; 34348 *-*-sysv4*) 34349 ans=tick 34350 ;; 34351 esac 34352 ntp_cv_nlist_tick=$ans 34353 34354 34355fi 34356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_nlist_tick" >&5 34357$as_echo "$ntp_cv_nlist_tick" >&6; } 34358case "$ntp_cv_nlist_tick" in 34359 ''|no) 34360 ;; # HMS: I think we can only get 'no' here... 34361 *) 34362 34363cat >>confdefs.h <<_ACEOF 34364#define K_TICK_NAME "$ntp_cv_nlist_tick" 34365_ACEOF 34366 34367esac 34368 34369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the units of 'tick'" >&5 34370$as_echo_n "checking for the units of 'tick'... " >&6; } 34371if ${ntp_cv_tick_nano+:} false; then : 34372 $as_echo_n "(cached) " >&6 34373else 34374 34375 ans=usec 34376 case "$host" in 34377 *-*-solaris2*) 34378 ans=nsec 34379 ;; 34380 esac 34381 ntp_cv_tick_nano=$ans 34382 34383 34384fi 34385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_tick_nano" >&5 34386$as_echo "$ntp_cv_tick_nano" >&6; } 34387case "$ntp_cv_tick_nano" in 34388 nsec) 34389 34390$as_echo "#define TICK_NANO 1" >>confdefs.h 34391 34392esac 34393 34394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name of 'tickadj' in the kernel" >&5 34395$as_echo_n "checking the name of 'tickadj' in the kernel... " >&6; } 34396if ${ntp_cv_nlist_tickadj+:} false; then : 34397 $as_echo_n "(cached) " >&6 34398else 34399 34400 ans=_tickadj 34401 case "$host" in 34402 m68*-hp-hpux*) # HP9000/300? 34403 ans=_tickadj 34404 ;; 34405 *-apple-aux[23]*) 34406 ans=tickadj 34407 ;; 34408 *-hp-hpux10*) 34409 ans=no 34410 ;; 34411 *-hp-hpux9*) 34412 ans=no 34413 ;; 34414 *-hp-hpux*) 34415 ans=tickadj 34416 ;; 34417 *-*-aix*) 34418 ans=tickadj 34419 ;; 34420 *-*-mpeix*) 34421 ans=no 34422 ;; 34423 *-*-ptx*) 34424 ans=tickadj 34425 ;; 34426 *-*-sco3.2v4*) 34427 ans=no 34428 ;; 34429 *-*-sco3.2v5.0*) 34430 ans=clock_drift 34431 ;; 34432 *-*-solaris2*) 34433 ans=no # hrestime_adj 34434 ;; 34435 *-*-sysv4*) 34436 ans=tickadj 34437 ;; 34438 esac 34439 ntp_cv_nlist_tickadj=$ans 34440 34441 34442fi 34443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_nlist_tickadj" >&5 34444$as_echo "$ntp_cv_nlist_tickadj" >&6; } 34445case "$ntp_cv_nlist_tickadj" in 34446 ''|no) 34447 ;; # HMS: I think we can only get 'no' here... 34448 *) 34449 34450cat >>confdefs.h <<_ACEOF 34451#define K_TICKADJ_NAME "$ntp_cv_nlist_tickadj" 34452_ACEOF 34453 34454esac 34455 34456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the units of 'tickadj'" >&5 34457$as_echo_n "checking for the units of 'tickadj'... " >&6; } 34458if ${ntp_cv_tickadj_nano+:} false; then : 34459 $as_echo_n "(cached) " >&6 34460else 34461 34462 ans=usec 34463 case "$host" in 34464 *-*-solaris2*) 34465 ans=nsec 34466 ;; 34467 esac 34468 ntp_cv_tickadj_nano=$ans 34469 34470 34471fi 34472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_tickadj_nano" >&5 34473$as_echo "$ntp_cv_tickadj_nano" >&6; } 34474case "$ntp_cv_tickadj_nano" in 34475 nsec) 34476 34477$as_echo "#define TICKADJ_NANO 1" >>confdefs.h 34478 34479esac 34480 34481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking half-heartedly for 'dosynctodr' in the kernel" >&5 34482$as_echo_n "checking half-heartedly for 'dosynctodr' in the kernel... " >&6; } 34483if ${ntp_cv_nlist_dosynctodr+:} false; then : 34484 $as_echo_n "(cached) " >&6 34485else 34486 34487 case "$host" in 34488 *-apple-aux[23]*) 34489 ans=no 34490 ;; 34491 *-sni-sysv*) 34492 ans=dosynctodr 34493 ;; 34494 *-*-aix*) 34495 ans=dosynctodr 34496 ;; 34497 *-*-hpux*) 34498 ans=no 34499 ;; 34500 *-*-mpeix*) 34501 ans=no 34502 ;; 34503 *-*-nextstep*) 34504 ans=_dosynctodr 34505 ;; 34506 *-*-ptx*) 34507 ans=doresettodr 34508 ;; 34509 *-*-sco3.2v4*) 34510 ans=no 34511 ;; 34512 *-*-sco3.2v5*) 34513 ans=track_rtc 34514 ;; 34515 *-*-solaris2*) 34516 ans=dosynctodr 34517 ;; 34518 *-*-sysv4*) 34519 ans=doresettodr 34520 ;; 34521 *) 34522 ans=_dosynctodr 34523 ;; 34524 esac 34525 ntp_cv_nlist_dosynctodr=$ans 34526 34527 34528fi 34529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_nlist_dosynctodr" >&5 34530$as_echo "$ntp_cv_nlist_dosynctodr" >&6; } 34531case "$ntp_cv_nlist_dosynctodr" in 34532 no) 34533 ;; 34534 *) 34535 34536cat >>confdefs.h <<_ACEOF 34537#define K_DOSYNCTODR_NAME "$ntp_cv_nlist_dosynctodr" 34538_ACEOF 34539 34540 ;; 34541esac 34542 34543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking half-heartedly for 'noprintf' in the kernel" >&5 34544$as_echo_n "checking half-heartedly for 'noprintf' in the kernel... " >&6; } 34545if ${ntp_cv_nlist_noprintf+:} false; then : 34546 $as_echo_n "(cached) " >&6 34547else 34548 34549 case "$host" in 34550 *-apple-aux[23]*) 34551 ans=no 34552 ;; 34553 *-sni-sysv*) 34554 ans=noprintf 34555 ;; 34556 *-*-aix*) 34557 ans=noprintf 34558 ;; 34559 *-*-hpux*) 34560 ans=no 34561 ;; 34562 *-*-mpeix*) 34563 ans=no 34564 ;; 34565 *-*-ptx*) 34566 ans=noprintf 34567 ;; 34568 *-*-nextstep*) 34569 ans=_noprintf 34570 ;; 34571 *-*-solaris2*) 34572 ans=noprintf 34573 ;; 34574 *-*-sysv4*) 34575 ans=noprintf 34576 ;; 34577 *) 34578 ans=_noprintf 34579 ;; 34580 esac 34581 ntp_cv_nlist_noprintf=$ans 34582 34583 34584fi 34585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_nlist_noprintf" >&5 34586$as_echo "$ntp_cv_nlist_noprintf" >&6; } 34587case "$ntp_cv_nlist_noprintf" in 34588 no) 34589 ;; 34590 *) 34591 34592cat >>confdefs.h <<_ACEOF 34593#define K_NOPRINTF_NAME "$ntp_cv_nlist_noprintf" 34594_ACEOF 34595 34596 ;; 34597esac 34598 34599 34600 34601 34602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a default value for 'tick'" >&5 34603$as_echo_n "checking for a default value for 'tick'... " >&6; } 34604 34605# target-dependent default for tick 34606 34607case "$host" in 34608 *-*-pc-cygwin*) 34609 as_fn_error $? "tick needs work for cygwin" "$LINENO" 5 34610 ;; 34611 *-univel-sysv*) 34612 ans=10000 34613 ;; 34614 *-*-irix*) 34615 ans=10000 34616 ;; 34617 *-*-*linux*) 34618 ans=txc.tick 34619 ;; 34620 *-*-mpeix*) 34621 ans=no 34622 ;; 34623 *-*-winnt3.5) 34624 ans='(every / 10)' 34625 ;; 34626 *-*-unicosmp*) 34627 ans=10000 34628 ;; 34629 *) 34630 ans='1000000L/hz' 34631 ;; 34632esac 34633 34634# Check whether --enable-tick was given. 34635if test "${enable_tick+set}" = set; then : 34636 enableval=$enable_tick; ans=$enableval 34637 34638fi 34639 34640 34641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 34642$as_echo "$ans" >&6; } 34643 34644case "$ans" in 34645 ''|no) 34646 ;; # HMS: I think we can only get 'no' here... 34647 *) 34648 34649cat >>confdefs.h <<_ACEOF 34650#define PRESET_TICK $ans 34651_ACEOF 34652 34653esac 34654 34655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a default value for 'tickadj'" >&5 34656$as_echo_n "checking for a default value for 'tickadj'... " >&6; } 34657 34658# target-specific default 34659ans='500/hz' 34660case "$host" in 34661 *-fujitsu-uxp*) 34662 case "$adjtime_is_accurate" in 34663 yes) 34664 ans='tick/16' 34665 esac 34666 ;; 34667 *-univel-sysv*) 34668 ans=80 34669 ;; 34670 *-*-aix*) 34671 case "$can_kmem" in 34672 no) 34673 ans=1000 34674 ;; 34675 esac 34676 ;; 34677 *-*-domainos) # Skippy: won't be found... 34678 case "$can_kmem" in 34679 no) 34680 ans=668 34681 ;; 34682 esac 34683 ;; 34684 *-*-hpux*) 34685 case "$adjtime_is_accurate" in 34686 yes) 34687 ans='tick/16' 34688 ;; 34689 esac 34690 ;; 34691 *-*-irix*) 34692 ans=150 34693 ;; 34694 *-*-mpeix*) 34695 ans=no 34696 ;; 34697 *-*-sco3.2v5.0*) 34698 ans=10000L/hz 34699 ;; 34700 *-*-winnt3.5) 34701 ans=50 34702 ;; 34703 *-*-unicosmp*) 34704 ans=150 34705 ;; 34706esac 34707 34708# Check whether --enable-tickadj was given. 34709if test "${enable_tickadj+set}" = set; then : 34710 enableval=$enable_tickadj; ans=$enableval 34711 34712fi 34713 34714 34715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 34716$as_echo "$ans" >&6; } 34717 34718default_tickadj=$ans 34719 34720case "$default_tickadj" in 34721 ''|no) 34722 ;; # HMS: I think we can only get 'no' here... 34723 *) 34724 34725cat >>confdefs.h <<_ACEOF 34726#define PRESET_TICKADJ $default_tickadj 34727_ACEOF 34728 ;; 34729esac 34730 34731# Newer versions of ReliantUNIX round adjtime() values down to 34732# 1/100s (system tick). Sigh ... 34733# Unfortunately, there is no easy way to know if particular release 34734# has this "feature" or any obvious way to test for it. 34735case "$host" in 34736 mips-sni-sysv4*) 34737 34738$as_echo "#define RELIANTUNIX_CLOCK 1" >>confdefs.h 34739 34740esac 34741 34742case "$host" in 34743 *-*-sco3.2v5*) 34744 34745$as_echo "#define SCO5_CLOCK 1" >>confdefs.h 34746 34747esac 34748 34749ntp_cv_make_tickadj=yes 34750case "$can_kmem$ac_cv_var_tick$default_tickadj" in 34751 nonono) # Don't read KMEM, no presets. Bogus. 34752 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't read kmem, no PRESET_TICK or PRESET_TICKADJ. No tickadj." >&5 34753$as_echo "$as_me: WARNING: Can't read kmem, no PRESET_TICK or PRESET_TICKADJ. No tickadj." >&2;} 34754 ntp_cv_make_tickadj=no 34755 ;; 34756 nono*) # Don't read KMEM, no PRESET_TICK but PRESET_TICKADJ. Bogus. 34757 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't read kmem but no PRESET_TICK. No tickadj." >&5 34758$as_echo "$as_me: WARNING: Can't read kmem but no PRESET_TICK. No tickadj." >&2;} 34759 ntp_cv_make_tickadj=no 34760 ;; 34761 no*no) # Don't read KMEM, PRESET_TICK but no PRESET_TICKADJ. Bogus. 34762 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't read kmem but no PRESET_TICKADJ. No tickadj." >&5 34763$as_echo "$as_me: WARNING: Can't read kmem but no PRESET_TICKADJ. No tickadj." >&2;} 34764 ntp_cv_make_tickadj=no 34765 ;; 34766 no*) # Don't read KMEM, PRESET_TICK and PRESET_TICKADJ. Cool. 34767 ;; 34768 yesnono) # Read KMEM, no presets. Cool. 34769 ;; 34770 yesno*) # Read KMEM, no PRESET_TICK but PRESET_TICKADJ. Bogus. 34771 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PRESET_TICKADJ is defined but not PRESET_TICK. Please report this." >&5 34772$as_echo "$as_me: WARNING: PRESET_TICKADJ is defined but not PRESET_TICK. Please report this." >&2;} 34773 ;; 34774 yes*no) # Read KMEM, PRESET_TICK but no PRESET_TICKADJ. Cool. 34775 ;; 34776 yes*) # READ KMEM, PRESET_TICK and PRESET_TICKADJ. 34777 ;; 34778 *) # Generally bogus. 34779 as_fn_error $? "This shouldn't happen." "$LINENO" 5 34780 ;; 34781esac 34782 34783 34784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want and can make the ntptime utility" >&5 34785$as_echo_n "checking if we want and can make the ntptime utility... " >&6; } 34786if ${ac_cv_make_ntptime+:} false; then : 34787 $as_echo_n "(cached) " >&6 34788else 34789 case "$host" in 34790 *) case "$ntp_cv_struct_ntptimeval$ntp_cv_var_kernel_pll" in 34791 yesyes) 34792 ans=yes 34793 ;; 34794 *) 34795 ans=no 34796 ;; 34797 esac 34798 ;; 34799esac 34800ac_cv_make_ntptime=$ans 34801fi 34802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_make_ntptime" >&5 34803$as_echo "$ac_cv_make_ntptime" >&6; } 34804case "$ac_cv_make_ntptime" in 34805 yes) 34806 MAKE_NTPTIME=ntptime 34807 ;; 34808 *) 34809 NTPTIME_DB= 34810 NTPTIME_DL= 34811 NTPTIME_DS= 34812 NTPTIME_MS= 34813 ;; 34814esac 34815 34816 34817case "$host" in 34818 mips-sni-sysv4*) 34819 # tickadj is pretty useless on newer versions of ReliantUNIX 34820 # Do not bother 34821 ntp_cv_make_tickadj=no 34822 ;; 34823 *-*-irix*) 34824 ntp_cv_make_tickadj=no 34825 ;; 34826 *-*-solaris2*) 34827 # DLM says tickadj is a no-no starting with solaris2.5 34828 case "$host" in 34829 *-*-solaris2.1[0-9]*) 34830 ntp_cv_make_tickadj=no 34831 ;; 34832 *-*-solaris2.[0-4]*) ;; 34833 *) ntp_cv_make_tickadj=no ;; 34834 esac 34835 ;; 34836 *-*-unicosmp*) 34837 ntp_cv_make_tickadj=no 34838 ;; 34839esac 34840 34841# 34842# Despite all the above, we always make tickadj. Setting 34843# ntp_cv_make_tickadj before AC_CACHE_CHECK will cause a false 34844# report that the configuration variable was cached. It may 34845# be better to simply remove the hunk above, I did not want 34846# to remove it if there is hope it will be used again. 34847# 34848{ ntp_cv_make_tickadj=; unset ntp_cv_make_tickadj;} 34849 34850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want and can make the tickadj utility" >&5 34851$as_echo_n "checking if we want and can make the tickadj utility... " >&6; } 34852if ${ntp_cv_make_tickadj+:} false; then : 34853 $as_echo_n "(cached) " >&6 34854else 34855 ntp_cv_make_tickadj=yes 34856 34857fi 34858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_make_tickadj" >&5 34859$as_echo "$ntp_cv_make_tickadj" >&6; } 34860case "$ntp_cv_make_tickadj" in 34861 yes) 34862 MAKE_TICKADJ=tickadj 34863 ;; 34864 *) 34865 CALC_TICKADJ_DB= 34866 CALC_TICKADJ_DL= 34867 CALC_TICKADJ_DS= 34868 CALC_TICKADJ_MS= 34869 TICKADJ_DB= 34870 TICKADJ_DL= 34871 TICKADJ_DS= 34872 TICKADJ_MS= 34873 ;; 34874esac 34875 34876 34877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want and can make the timetrim utility" >&5 34878$as_echo_n "checking if we want and can make the timetrim utility... " >&6; } 34879if ${ntp_cv_make_timetrim+:} false; then : 34880 $as_echo_n "(cached) " >&6 34881else 34882 34883 case "$host" in 34884 *-*-irix*) 34885 ntp_cv_make_timetrim=yes 34886 ;; 34887 *-*-unicosmp*) 34888 ntp_cv_make_timetrim=yes 34889 ;; 34890 *) 34891 ntp_cv_make_timetrim=no 34892 ;; 34893 esac 34894 34895 34896fi 34897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_make_timetrim" >&5 34898$as_echo "$ntp_cv_make_timetrim" >&6; } 34899case "$ntp_cv_make_timetrim" in 34900 yes) 34901 MAKE_TIMETRIM=timetrim 34902 ;; 34903 *) TIMETRIM_DB= 34904 TIMETRIM_DL= 34905 TIMETRIM_DS= 34906 TIMETRIM_MS= 34907 ;; 34908esac 34909 34910 34911 34912 34913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to build the NTPD simulator" >&5 34914$as_echo_n "checking if we want to build the NTPD simulator... " >&6; } 34915# Check whether --enable-simulator was given. 34916if test "${enable_simulator+set}" = set; then : 34917 enableval=$enable_simulator; ans=$enableval 34918else 34919 ans=no 34920 34921fi 34922 34923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 34924$as_echo "$ans" >&6; } 34925case "$ans" in 34926 yes) 34927 MAKE_NTPDSIM=ntpdsim 34928 MAKE_LIBNTPSIM=libntpsim.a 34929 ;; 34930 *) 34931 NTPDSIM_DB= 34932 NTPDSIM_DL= 34933 NTPDSIM_DS= 34934 NTPDSIM_MS= 34935 ;; 34936esac 34937 34938case "$build" in 34939 $host) 34940 ;; 34941 *) case "$host" in 34942 *-*-vxworks*) 34943 LDFLAGS="$LDFLAGS -r" 34944 ;; 34945 esac 34946 ;; 34947esac 34948 34949 34950 34951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if sntp will be built" >&5 34952$as_echo_n "checking if sntp will be built... " >&6; } 34953 34954# Check whether --with-sntp was given. 34955if test "${with_sntp+set}" = set; then : 34956 withval=$with_sntp; 34957else 34958 with_sntp="${withsntp=yes}" 34959 34960fi 34961 34962case "$with_sntp" in 34963 no) 34964 SNTP= 34965 ;; 34966 *) 34967 SNTP=sntp 34968 ;; 34969esac 34970 34971 if test -n "$SNTP"; then 34972 BUILD_SNTP_TRUE= 34973 BUILD_SNTP_FALSE='#' 34974else 34975 BUILD_SNTP_TRUE='#' 34976 BUILD_SNTP_FALSE= 34977fi 34978 34979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sntp" >&5 34980$as_echo "$with_sntp" >&6; } 34981 34982 34983 34984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to build ntpsnmpd" >&5 34985$as_echo_n "checking if we want to build ntpsnmpd... " >&6; } 34986 34987# Check whether --with-ntpsnmpd was given. 34988if test "${with_ntpsnmpd+set}" = set; then : 34989 withval=$with_ntpsnmpd; ans=$withval 34990else 34991 34992 case "$PATH_NET_SNMP_CONFIG" in 34993 /*) ans=yes ;; 34994 *) ans=no ;; 34995 esac 34996 34997 34998fi 34999 35000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 35001$as_echo "$ans" >&6; } 35002case "$ans" in 35003 yes) 35004 case "$PATH_NET_SNMP_CONFIG" in 35005 /*) 35006 SNMP_LIBS=`$PATH_NET_SNMP_CONFIG --agent-libs` 35007 35008 # HMS: we really want to separate CPPFLAGS and CFLAGS 35009 foo=`$PATH_NET_SNMP_CONFIG --cflags` 35010 SNMP_CPPFLAGS= 35011 SNMP_CFLAGS= 35012 for i in $foo; do 35013 case "$i" in 35014 -D*|-U*|-I*) 35015 SNMP_CPPFLAGS="$SNMP_CPPFLAGS $i" 35016 ;; 35017 *) SNMP_CFLAGS="$SNMP_CFLAGS $i" 35018 ;; 35019 esac 35020 done 35021 35022 35023 35024 save_CFLAGS=$CFLAGS 35025 save_CPPFLAGS=$CPPFLAGS 35026 save_LIBS=$LIBS 35027 CFLAGS=$SNMP_CFLAGS 35028 CPPFLAGS=$SNMP_CPPFLAGS 35029 35030 ac_fn_c_check_header_mongrel "$LINENO" "net-snmp/net-snmp-config.h" "ac_cv_header_net_snmp_net_snmp_config_h" "$ac_includes_default" 35031if test "x$ac_cv_header_net_snmp_net_snmp_config_h" = xyes; then : 35032 MAKE_NTPSNMPD=ntpsnmpd 35033else 35034 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: net-snmp-config present but net-snmp headers are not available!" >&5 35035$as_echo "$as_me: WARNING: net-snmp-config present but net-snmp headers are not available!" >&2;} 35036 35037fi 35038 35039 35040 35041 # Do this last, as we're messing up LIBS. 35042 # check -lnetsnmp for netsnmp_daemonize 35043 LIBS=`$PATH_NET_SNMP_CONFIG --libs` 35044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for netsnmp_daemonize in -lnetsnmp" >&5 35045$as_echo_n "checking for netsnmp_daemonize in -lnetsnmp... " >&6; } 35046if ${ac_cv_lib_netsnmp_netsnmp_daemonize+:} false; then : 35047 $as_echo_n "(cached) " >&6 35048else 35049 ac_check_lib_save_LIBS=$LIBS 35050LIBS="-lnetsnmp $LIBS" 35051cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35052/* end confdefs.h. */ 35053 35054/* Override any GCC internal prototype to avoid an error. 35055 Use char because int might match the return type of a GCC 35056 builtin and then its argument prototype would still apply. */ 35057#ifdef __cplusplus 35058extern "C" 35059#endif 35060char netsnmp_daemonize (); 35061int 35062main () 35063{ 35064return netsnmp_daemonize (); 35065 ; 35066 return 0; 35067} 35068_ACEOF 35069if ac_fn_c_try_link "$LINENO"; then : 35070 ac_cv_lib_netsnmp_netsnmp_daemonize=yes 35071else 35072 ac_cv_lib_netsnmp_netsnmp_daemonize=no 35073fi 35074rm -f core conftest.err conftest.$ac_objext \ 35075 conftest$ac_exeext conftest.$ac_ext 35076LIBS=$ac_check_lib_save_LIBS 35077fi 35078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_netsnmp_netsnmp_daemonize" >&5 35079$as_echo "$ac_cv_lib_netsnmp_netsnmp_daemonize" >&6; } 35080if test "x$ac_cv_lib_netsnmp_netsnmp_daemonize" = xyes; then : 35081 ans=yes 35082else 35083 ans=no 35084 35085fi 35086 35087 case "$ans" in 35088 no) 35089 35090$as_echo "#define NEED_NETSNMP_DAEMONIZE 1" >>confdefs.h 35091 35092 esac 35093 35094 CFLAGS=$save_CFLAGS 35095 { save_CFLAGS=; unset save_CFLAGS;} 35096 CPPFLAGS=$save_CPPFLAGS 35097 { save_CPPFLAGS=; unset save_CPPFLAGS;} 35098 LIBS=$save_LIBS 35099 { save_LIBS=; unset save_LIBS;} 35100 ;; 35101 *) 35102 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot build ntpsnmpd - net-snmp-config cannot be found" >&5 35103$as_echo "$as_me: WARNING: Cannot build ntpsnmpd - net-snmp-config cannot be found" >&2;} 35104 ;; 35105 esac 35106 ;; 35107esac 35108 35109 35110case "$MAKE_NTPSNMPD" in 35111 '') 35112 NTPSNMPD_DB= 35113 NTPSNMPD_DL= 35114 NTPSNMPD_DS= 35115 NTPSNMPD_MS= 35116 ;; 35117esac 35118 35119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should always slew the time" >&5 35120$as_echo_n "checking if we should always slew the time... " >&6; } 35121 35122# target-specific defaults 35123 35124case "$host" in 35125 *-apple-aux[23]*) 35126 ans=yes 35127 ;; 35128 *-*-bsdi[012]*) 35129 ans=no 35130 ;; 35131 *-*-bsdi*) 35132 ans=yes 35133 ;; 35134 *-*-openvms*) # HMS: won't be found 35135 ans=yes 35136 ;; 35137 *) ans=no 35138 ;; 35139esac 35140 35141# --enable-slew-always / --disable-slew-always overrides default 35142 35143# Check whether --enable-slew-always was given. 35144if test "${enable_slew_always+set}" = set; then : 35145 enableval=$enable_slew_always; ans=$enableval 35146 35147fi 35148 35149 35150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 35151$as_echo "$ans" >&6; } 35152 35153case "$ans" in 35154 yes) 35155 35156$as_echo "#define SLEWALWAYS 1" >>confdefs.h 35157 35158esac 35159 35160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should step and slew the time" >&5 35161$as_echo_n "checking if we should step and slew the time... " >&6; } 35162 35163case "$host" in 35164 *-sni-sysv*) 35165 ans=yes 35166 ;; 35167 *-univel-sysv*) 35168 ans=no 35169 ;; 35170 *-*-ptx*) 35171 ans=yes 35172 ;; 35173 *-*-solaris2.1[0-9]*) 35174 ans=no 35175 ;; 35176 *-*-solaris2.[012]*) 35177 ans=yes 35178 ;; 35179 *-*-sysv4*) # HMS: Does this catch Fujitsu UXP? 35180 ans=yes 35181 ;; 35182 *) ans=no 35183 ;; 35184esac 35185 35186# Check whether --enable-step-slew was given. 35187if test "${enable_step_slew+set}" = set; then : 35188 enableval=$enable_step_slew; ans=$enableval 35189 35190fi 35191 35192 35193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 35194$as_echo "$ans" >&6; } 35195 35196case "$ans" in 35197 yes) 35198 35199$as_echo "#define STEP_SLEW 1" >>confdefs.h 35200 35201esac 35202 35203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if ntpdate should step the time" >&5 35204$as_echo_n "checking if ntpdate should step the time... " >&6; } 35205 35206case "$host" in 35207 *-apple-aux[23]*) 35208 ans=yes 35209 ;; 35210 *) ans=no 35211 ;; 35212esac 35213 35214# Check whether --enable-ntpdate-step was given. 35215if test "${enable_ntpdate_step+set}" = set; then : 35216 enableval=$enable_ntpdate_step; ans=$enableval 35217 35218fi 35219 35220 35221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 35222$as_echo "$ans" >&6; } 35223 35224case "$ans" in 35225 yes) 35226 35227$as_echo "#define FORCE_NTPDATE_STEP 1" >>confdefs.h 35228 35229esac 35230 35231 35232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should sync TODR clock every hour" >&5 35233$as_echo_n "checking if we should sync TODR clock every hour... " >&6; } 35234 35235case "$host" in 35236 *-*-nextstep*) 35237 ans=yes 35238 ;; 35239 *-*-openvms*) # HMS: won't be found 35240 ans=yes 35241 ;; 35242 *) 35243 ans=no 35244 ;; 35245esac 35246 35247# Check whether --enable-hourly-todr-sync was given. 35248if test "${enable_hourly_todr_sync+set}" = set; then : 35249 enableval=$enable_hourly_todr_sync; ans=$enableval 35250 35251fi 35252 35253 35254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 35255$as_echo "$ans" >&6; } 35256 35257case "$ac_cv_var_sync_todr" in 35258 yes) 35259 35260$as_echo "#define DOSYNCTODR 1" >>confdefs.h 35261 ;; 35262esac 35263 35264 35265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should avoid kernel FLL bug" >&5 35266$as_echo_n "checking if we should avoid kernel FLL bug... " >&6; } 35267 35268case "$host" in 35269 *-*-solaris2.6) 35270 unamev=`uname -v` 35271 case "$unamev" in 35272 Generic_105181-*) 35273 old_IFS="$IFS" 35274 IFS="-" 35275 set $unamev 35276 IFS="$old_IFS" 35277 if test "$2" -ge 17 35278 then 35279 # Generic_105181-17 and higher 35280 ans=no 35281 else 35282 ans=yes 35283 fi 35284 ;; 35285 *) 35286 ans=yes 35287 ;; 35288 esac 35289 ;; 35290 *-*-solaris2.7) 35291 unamev=`uname -v` 35292 case "$unamev" in 35293 Generic_106541-*) 35294 old_IFS="$IFS" 35295 IFS="-" 35296 set $unamev 35297 IFS="$old_IFS" 35298 if test "$2" -ge 07 35299 then 35300 # Generic_106541-07 and higher 35301 ans=no 35302 else 35303 ans=yes 35304 fi 35305 ;; 35306 *) 35307 ans=yes 35308 ;; 35309 esac 35310 ;; 35311 *) 35312 ans=no 35313 ;; 35314esac 35315 35316# Check whether --enable-kernel-fll-bug was given. 35317if test "${enable_kernel_fll_bug+set}" = set; then : 35318 enableval=$enable_kernel_fll_bug; ans=$enableval 35319 35320fi 35321 35322 35323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 35324$as_echo "$ans" >&6; } 35325 35326case "$ans" in 35327 yes) 35328 35329$as_echo "#define KERNEL_FLL_BUG 1" >>confdefs.h 35330 35331esac 35332 35333 35334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want new session key behavior" >&5 35335$as_echo_n "checking if we want new session key behavior... " >&6; } 35336# Check whether --enable-bug1243-fix was given. 35337if test "${enable_bug1243_fix+set}" = set; then : 35338 enableval=$enable_bug1243_fix; ans=$enableval 35339else 35340 ans=yes 35341 35342fi 35343 35344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 35345$as_echo "$ans" >&6; } 35346case "$ans" in 35347 no) 35348 35349$as_echo "#define DISABLE_BUG1243_FIX 1" >>confdefs.h 35350 35351esac 35352 35353 35354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should use the IRIG sawtooth filter" >&5 35355$as_echo_n "checking if we should use the IRIG sawtooth filter... " >&6; } 35356 35357case "$host" in 35358 *-*-solaris2.[89]) 35359 ans=yes 35360 ;; 35361 *-*-solaris2.1[0-9]*) 35362 ans=yes 35363 ;; 35364 *) ans=no 35365 ;; 35366esac 35367 35368# Check whether --enable-irig-sawtooth was given. 35369if test "${enable_irig_sawtooth+set}" = set; then : 35370 enableval=$enable_irig_sawtooth; ans=$enableval 35371 35372fi 35373 35374 35375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 35376$as_echo "$ans" >&6; } 35377 35378case "$ans" in 35379 yes) 35380 35381$as_echo "#define IRIG_SUCKS 1" >>confdefs.h 35382 35383esac 35384 35385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should enable NIST lockclock scheme" >&5 35386$as_echo_n "checking if we should enable NIST lockclock scheme... " >&6; } 35387# Check whether --enable-nist was given. 35388if test "${enable_nist+set}" = set; then : 35389 enableval=$enable_nist; ans=$enableval 35390else 35391 ans=no 35392 35393fi 35394 35395 35396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 35397$as_echo "$ans" >&6; } 35398 35399case "$ans" in 35400 yes) 35401 35402$as_echo "#define LOCKCLOCK 1" >>confdefs.h 35403 ;; 35404esac 35405 35406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want support for Samba's signing daemon" >&5 35407$as_echo_n "checking if we want support for Samba's signing daemon... " >&6; } 35408# Check whether --enable-ntp-signd was given. 35409if test "${enable_ntp_signd+set}" = set; then : 35410 enableval=$enable_ntp_signd; ans=$enableval 35411else 35412 ans=no 35413 35414fi 35415 35416 35417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 35418$as_echo "$ans" >&6; } 35419 35420case "$ans" in 35421 no) 35422 ntp_signd_path= 35423 ;; 35424 yes) 35425 ntp_signd_path=/var/run/ntp_signd 35426 ;; 35427 *) 35428 ntp_signd_path="$ans" 35429esac 35430 35431case "$ntp_signd_path" in 35432 '') 35433 ;; 35434 *) 35435 35436$as_echo "#define HAVE_NTP_SIGND 1" >>confdefs.h 35437 35438 35439cat >>confdefs.h <<_ACEOF 35440#define NTP_SIGND_PATH "$ntp_signd_path" 35441_ACEOF 35442 35443 ;; 35444esac 35445 35446for ac_header in libscf.h 35447do : 35448 ac_fn_c_check_header_mongrel "$LINENO" "libscf.h" "ac_cv_header_libscf_h" "$ac_includes_default" 35449if test "x$ac_cv_header_libscf_h" = xyes; then : 35450 cat >>confdefs.h <<_ACEOF 35451#define HAVE_LIBSCF_H 1 35452_ACEOF 35453 35454fi 35455 35456done 35457 35458LSCF= 35459case "$ac_cv_header_libscf_h" in 35460 yes) 35461 LSCF='-lscf' 35462esac 35463 35464 35465 35466 35467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_storage" >&5 35468$as_echo_n "checking for struct sockaddr_storage... " >&6; } 35469if ${ntp_cv_sockaddr_storage+:} false; then : 35470 $as_echo_n "(cached) " >&6 35471else 35472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35473/* end confdefs.h. */ 35474 35475 #ifdef HAVE_SYS_TYPES_H 35476 # include <sys/types.h> 35477 #endif 35478 #ifdef HAVE_SYS_SOCKET_H 35479 # include <sys/socket.h> 35480 #endif 35481 #ifdef HAVE_NETINET_IN_H 35482 # include <netinet/in.h> 35483 #endif 35484 35485int 35486main () 35487{ 35488 35489 struct sockaddr_storage n; 35490 35491 35492 ; 35493 return 0; 35494} 35495_ACEOF 35496if ac_fn_c_try_compile "$LINENO"; then : 35497 ntp_cv_sockaddr_storage=yes 35498else 35499 ntp_cv_sockaddr_storage=no 35500 35501fi 35502rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 35503 35504fi 35505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_sockaddr_storage" >&5 35506$as_echo "$ntp_cv_sockaddr_storage" >&6; } 35507case "$ntp_cv_sockaddr_storage" in 35508 yes) 35509 35510$as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h 35511 35512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_storage.__ss_family" >&5 35513$as_echo_n "checking for sockaddr_storage.__ss_family... " >&6; } 35514if ${ntp_cv_have___ss_family+:} false; then : 35515 $as_echo_n "(cached) " >&6 35516else 35517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35518/* end confdefs.h. */ 35519 35520 #ifdef HAVE_SYS_TYPES_H 35521 # include <sys/types.h> 35522 #endif 35523 #ifdef HAVE_SYS_SOCKET_H 35524 # include <sys/socket.h> 35525 #endif 35526 #ifdef HAVE_NETINET_IN_H 35527 # include <netinet/in.h> 35528 #endif 35529 35530int 35531main () 35532{ 35533 35534 struct sockaddr_storage s; 35535 s.__ss_family = 1; 35536 35537 35538 ; 35539 return 0; 35540} 35541_ACEOF 35542if ac_fn_c_try_compile "$LINENO"; then : 35543 ntp_cv_have___ss_family=yes 35544else 35545 ntp_cv_have___ss_family=no 35546 35547fi 35548rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 35549 35550fi 35551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_have___ss_family" >&5 35552$as_echo "$ntp_cv_have___ss_family" >&6; } 35553 case "$ntp_cv_have___ss_family" in 35554 yes) 35555 35556$as_echo "#define HAVE___SS_FAMILY_IN_SS 1" >>confdefs.h 35557 35558 esac 35559 35560esac 35561 35562 35563# 35564# Look for in_port_t. 35565# 35566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for in_port_t" >&5 35567$as_echo_n "checking for in_port_t... " >&6; } 35568if ${isc_cv_have_in_port_t+:} false; then : 35569 $as_echo_n "(cached) " >&6 35570else 35571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35572/* end confdefs.h. */ 35573 35574 #include <sys/types.h> 35575 #include <netinet/in.h> 35576 35577int 35578main () 35579{ 35580 35581 in_port_t port = 25; 35582 return (0); 35583 35584 35585 ; 35586 return 0; 35587} 35588_ACEOF 35589if ac_fn_c_try_compile "$LINENO"; then : 35590 isc_cv_have_in_port_t=yes 35591else 35592 isc_cv_have_in_port_t=no 35593 35594fi 35595rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 35596 35597fi 35598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_have_in_port_t" >&5 35599$as_echo "$isc_cv_have_in_port_t" >&6; } 35600case "$isc_cv_have_in_port_t" in 35601 no) 35602 35603$as_echo "#define ISC_PLATFORM_NEEDPORTT 1" >>confdefs.h 35604 35605esac 35606 35607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking type of socklen arg for getsockname()" >&5 35608$as_echo_n "checking type of socklen arg for getsockname()... " >&6; } 35609if ${ntp_cv_getsockname_socklen_type+:} false; then : 35610 $as_echo_n "(cached) " >&6 35611else 35612 35613 getsockname_socklen_type_found=no 35614 for getsockname_arg2 in 'struct sockaddr *' 'void *'; do 35615 for ntp_cv_getsockname_socklen_type in 'socklen_t' 'size_t' 'unsigned int' 'int'; do 35616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35617/* end confdefs.h. */ 35618 35619 #ifdef HAVE_SYS_TYPES_H 35620 # include <sys/types.h> 35621 #endif 35622 #ifdef HAVE_SYS_SOCKET_H 35623 # include <sys/socket.h> 35624 #endif 35625 35626int 35627main () 35628{ 35629 35630 extern 35631 getsockname(int, $getsockname_arg2, 35632 $ntp_cv_getsockname_socklen_type *); 35633 35634 35635 ; 35636 return 0; 35637} 35638_ACEOF 35639if ac_fn_c_try_compile "$LINENO"; then : 35640 getsockname_socklen_type_found=yes ; break 2 35641fi 35642rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 35643 done 35644 done 35645 case "$getsockname_socklen_type_found" in 35646 no) 35647 ntp_cv_getsockname_socklen_type='socklen_t' 35648 esac 35649 { getsockname_arg2=; unset getsockname_arg2;} 35650 { getsockname_socklen_type_found=; unset getsockname_socklen_type_found;} 35651 35652 35653fi 35654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_getsockname_socklen_type" >&5 35655$as_echo "$ntp_cv_getsockname_socklen_type" >&6; } 35656 35657cat >>confdefs.h <<_ACEOF 35658#define GETSOCKNAME_SOCKLEN_TYPE $ntp_cv_getsockname_socklen_type 35659_ACEOF 35660 35661 35662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking struct sockaddr for sa_len" >&5 35663$as_echo_n "checking struct sockaddr for sa_len... " >&6; } 35664if ${isc_cv_platform_havesalen+:} false; then : 35665 $as_echo_n "(cached) " >&6 35666else 35667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35668/* end confdefs.h. */ 35669 35670 #include <sys/types.h> 35671 #include <sys/socket.h> 35672 35673int 35674main () 35675{ 35676 35677 extern struct sockaddr *ps; 35678 return ps->sa_len; 35679 35680 35681 ; 35682 return 0; 35683} 35684_ACEOF 35685if ac_fn_c_try_compile "$LINENO"; then : 35686 isc_cv_platform_havesalen=yes 35687else 35688 isc_cv_platform_havesalen=no 35689 35690fi 35691rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 35692 35693fi 35694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_platform_havesalen" >&5 35695$as_echo "$isc_cv_platform_havesalen" >&6; } 35696case "$isc_cv_platform_havesalen" in 35697 yes) 35698 35699$as_echo "#define ISC_PLATFORM_HAVESALEN 1" >>confdefs.h 35700 35701esac 35702 35703# Check whether --enable-ipv6 was given. 35704if test "${enable_ipv6+set}" = set; then : 35705 enableval=$enable_ipv6; 35706fi 35707 35708 35709case "$enable_ipv6" in 35710 yes|''|autodetect) 35711 case "$host" in 35712 powerpc-ibm-aix4*) 35713 ;; 35714 *) 35715 35716$as_echo "#define WANT_IPV6 1" >>confdefs.h 35717 35718 ;; 35719 esac 35720 ;; 35721 no) 35722 ;; 35723esac 35724 35725 35726case "$host" in 35727 *-*-darwin*) 35728 35729$as_echo "#define __APPLE_USE_RFC_3542 1" >>confdefs.h 35730 35731esac 35732 35733 35734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv6 structures" >&5 35735$as_echo_n "checking for IPv6 structures... " >&6; } 35736if ${isc_cv_found_ipv6+:} false; then : 35737 $as_echo_n "(cached) " >&6 35738else 35739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35740/* end confdefs.h. */ 35741 35742 #include <sys/types.h> 35743 #include <sys/socket.h> 35744 #include <netinet/in.h> 35745 35746int 35747main () 35748{ 35749 35750 struct sockaddr_in6 sin6; 35751 35752 35753 ; 35754 return 0; 35755} 35756_ACEOF 35757if ac_fn_c_try_compile "$LINENO"; then : 35758 isc_cv_found_ipv6=yes 35759else 35760 isc_cv_found_ipv6=no 35761 35762fi 35763rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 35764 35765fi 35766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_found_ipv6" >&5 35767$as_echo "$isc_cv_found_ipv6" >&6; } 35768 35769# 35770# See whether IPv6 support is provided via a Kame add-on. 35771# This is done before other IPv6 linking tests so LIBS is properly set. 35772# 35773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Kame IPv6 support" >&5 35774$as_echo_n "checking for Kame IPv6 support... " >&6; } 35775 35776# Check whether --with-kame was given. 35777if test "${with_kame+set}" = set; then : 35778 withval=$with_kame; use_kame="$withval" 35779else 35780 use_kame="no" 35781 35782fi 35783 35784case "$use_kame" in 35785 no) 35786 ;; 35787 yes) 35788 kame_path=/usr/local/v6 35789 ;; 35790 *) 35791 kame_path="$use_kame" 35792 ;; 35793esac 35794case "$use_kame" in 35795 no) 35796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35797$as_echo "no" >&6; } 35798 ;; 35799 *) 35800 if test -f $kame_path/lib/libinet6.a; then 35801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kame_path/lib/libinet6.a" >&5 35802$as_echo "$kame_path/lib/libinet6.a" >&6; } 35803 LIBS="-L$kame_path/lib -linet6 $LIBS" 35804 else 35805 as_fn_error $? "$kame_path/lib/libinet6.a not found. 35806 35807Please choose the proper path with the following command: 35808 35809 configure --with-kame=PATH 35810" "$LINENO" 5 35811 fi 35812 ;; 35813esac 35814 35815# 35816# Whether netinet6/in6.h is needed has to be defined in isc/platform.h. 35817# Including it on Kame-using platforms is very bad, though, because 35818# Kame uses #error against direct inclusion. So include it on only 35819# the platform that is otherwise broken without it -- BSD/OS 4.0 through 4.1. 35820# This is done before the in6_pktinfo check because that's what 35821# netinet6/in6.h is needed for. 35822# 35823case "$host" in 35824 *-bsdi4.[01]*) 35825 35826$as_echo "#define ISC_PLATFORM_NEEDNETINET6IN6H 1" >>confdefs.h 35827 35828 isc_netinet6in6_hack="#include <netinet6/in6.h>" 35829 ;; 35830 *) 35831 isc_netinet6in6_hack="" 35832 ;; 35833esac 35834 35835# 35836# This is similar to the netinet6/in6.h issue. 35837# 35838case "$host" in 35839 *-sco-sysv*uw*|*-*-sysv*UnixWare*|*-*-sysv*OpenUNIX*) 35840 35841$as_echo "#define ISC_PLATFORM_FIXIN6ISADDR 1" >>confdefs.h 35842 35843 isc_netinetin6_hack="#include <netinet/in6.h>" 35844 ;; 35845 *) 35846 isc_netinetin6_hack="" 35847 ;; 35848esac 35849 35850 35851case "$isc_cv_found_ipv6" in 35852 yes) 35853 35854$as_echo "#define ISC_PLATFORM_HAVEIPV6 1" >>confdefs.h 35855 35856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in6_pktinfo" >&5 35857$as_echo_n "checking for in6_pktinfo... " >&6; } 35858if ${isc_cv_have_in6_pktinfo+:} false; then : 35859 $as_echo_n "(cached) " >&6 35860else 35861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35862/* end confdefs.h. */ 35863 35864 #include <sys/types.h> 35865 #include <sys/socket.h> 35866 #include <netinet/in.h> 35867 $isc_netinetin6_hack 35868 $isc_netinet6in6_hack 35869 35870int 35871main () 35872{ 35873 35874 struct in6_pktinfo xyzzy; 35875 35876 35877 ; 35878 return 0; 35879} 35880_ACEOF 35881if ac_fn_c_try_compile "$LINENO"; then : 35882 isc_cv_have_in6_pktinfo=yes 35883else 35884 isc_cv_have_in6_pktinfo=no 35885 35886fi 35887rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 35888 35889fi 35890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_have_in6_pktinfo" >&5 35891$as_echo "$isc_cv_have_in6_pktinfo" >&6; } 35892 case "$isc_cv_have_in6_pktinfo" in 35893 yes) 35894 35895$as_echo "#define ISC_PLATFORM_HAVEIN6PKTINFO 1" >>confdefs.h 35896 35897 esac 35898 35899 35900 # HMS: Use HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID instead? 35901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_in6.sin6_scope_id" >&5 35902$as_echo_n "checking for sockaddr_in6.sin6_scope_id... " >&6; } 35903if ${isc_cv_have_sin6_scope_id+:} false; then : 35904 $as_echo_n "(cached) " >&6 35905else 35906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35907/* end confdefs.h. */ 35908 35909 #include <sys/types.h> 35910 #include <sys/socket.h> 35911 #include <netinet/in.h> 35912 $isc_netinetin6_hack 35913 $isc_netinet6in6_hack 35914 35915int 35916main () 35917{ 35918 35919 struct sockaddr_in6 xyzzy; 35920 xyzzy.sin6_scope_id = 0; 35921 35922 35923 ; 35924 return 0; 35925} 35926_ACEOF 35927if ac_fn_c_try_compile "$LINENO"; then : 35928 isc_cv_have_sin6_scope_id=yes 35929else 35930 isc_cv_have_sin6_scope_id=no 35931 35932fi 35933rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 35934 35935fi 35936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_have_sin6_scope_id" >&5 35937$as_echo "$isc_cv_have_sin6_scope_id" >&6; } 35938 35939 case "$isc_cv_have_sin6_scope_id" in 35940 yes) 35941 35942$as_echo "#define ISC_PLATFORM_HAVESCOPEID 1" >>confdefs.h 35943 35944 esac 35945esac 35946 35947 35948# We need this check run even without isc_cv_found_ipv6=yes 35949 35950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for in6addr_any" >&5 35951$as_echo_n "checking for in6addr_any... " >&6; } 35952if ${isc_cv_in6addr_any_links+:} false; then : 35953 $as_echo_n "(cached) " >&6 35954else 35955 35956 SAVED_LIBS="$LIBS" 35957 LIBS="$LDADD_LIBNTP $LIBS" 35958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35959/* end confdefs.h. */ 35960$ac_includes_default 35961 #include <sys/socket.h> 35962 #include <netinet/in.h> 35963 $isc_netinetin6_hack 35964 $isc_netinet6in6_hack 35965 35966int 35967main () 35968{ 35969 35970 printf("%x", in6addr_any.s6_addr[15]); 35971 35972 35973 ; 35974 return 0; 35975} 35976_ACEOF 35977if ac_fn_c_try_link "$LINENO"; then : 35978 isc_cv_in6addr_any_links=yes 35979else 35980 isc_cv_in6addr_any_links=no 35981 35982fi 35983rm -f core conftest.err conftest.$ac_objext \ 35984 conftest$ac_exeext conftest.$ac_ext 35985 LIBS="$SAVED_LIBS" 35986 { SAVED_LIBS=; unset SAVED_LIBS;} 35987 35988 35989fi 35990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_in6addr_any_links" >&5 35991$as_echo "$isc_cv_in6addr_any_links" >&6; } 35992 35993case "$isc_cv_in6addr_any_links" in 35994 no) 35995 35996$as_echo "#define ISC_PLATFORM_NEEDIN6ADDRANY 1" >>confdefs.h 35997 35998esac 35999 36000 36001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct if_laddrconf" >&5 36002$as_echo_n "checking for struct if_laddrconf... " >&6; } 36003if ${isc_cv_struct_if_laddrconf+:} false; then : 36004 $as_echo_n "(cached) " >&6 36005else 36006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36007/* end confdefs.h. */ 36008 36009 #include <sys/types.h> 36010 #include <net/if6.h> 36011 36012int 36013main () 36014{ 36015 36016 struct if_laddrconf a; 36017 36018 36019 ; 36020 return 0; 36021} 36022_ACEOF 36023if ac_fn_c_try_compile "$LINENO"; then : 36024 isc_cv_struct_if_laddrconf=yes 36025else 36026 isc_cv_struct_if_laddrconf=no 36027 36028fi 36029rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 36030 36031fi 36032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_struct_if_laddrconf" >&5 36033$as_echo "$isc_cv_struct_if_laddrconf" >&6; } 36034 36035case "$isc_cv_struct_if_laddrconf" in 36036 yes) 36037 36038$as_echo "#define ISC_PLATFORM_HAVEIF_LADDRCONF 1" >>confdefs.h 36039 36040esac 36041 36042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct if_laddrreq" >&5 36043$as_echo_n "checking for struct if_laddrreq... " >&6; } 36044if ${isc_cv_struct_if_laddrreq+:} false; then : 36045 $as_echo_n "(cached) " >&6 36046else 36047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36048/* end confdefs.h. */ 36049 36050 #include <sys/types.h> 36051 #include <net/if6.h> 36052 36053int 36054main () 36055{ 36056 36057 struct if_laddrreq a; 36058 36059 36060 ; 36061 return 0; 36062} 36063_ACEOF 36064if ac_fn_c_try_compile "$LINENO"; then : 36065 isc_cv_struct_if_laddrreq=yes 36066else 36067 isc_cv_struct_if_laddrreq=no 36068 36069fi 36070rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 36071 36072fi 36073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_struct_if_laddrreq" >&5 36074$as_echo "$isc_cv_struct_if_laddrreq" >&6; } 36075 36076case "$isc_cv_struct_if_laddrreq" in 36077 yes) 36078 36079$as_echo "#define ISC_PLATFORM_HAVEIF_LADDRREQ 1" >>confdefs.h 36080 36081esac 36082 36083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for multicast IP support" >&5 36084$as_echo_n "checking for multicast IP support... " >&6; } 36085if ${ntp_cv_multicast+:} false; then : 36086 $as_echo_n "(cached) " >&6 36087else 36088 36089 ntp_cv_multicast=no 36090 case "$host" in 36091 i386-sequent-sysv4) 36092 ;; 36093 *) 36094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36095/* end confdefs.h. */ 36096 36097 #ifdef HAVE_NETINET_IN_H 36098 # include <netinet/in.h> 36099 #endif 36100 36101int 36102main () 36103{ 36104 36105 struct ip_mreq ipmr; 36106 ipmr.imr_interface.s_addr = 0; 36107 36108 36109 ; 36110 return 0; 36111} 36112_ACEOF 36113if ac_fn_c_try_compile "$LINENO"; then : 36114 ntp_cv_multicast=yes 36115fi 36116rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 36117 ;; 36118 esac 36119 36120 36121fi 36122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_multicast" >&5 36123$as_echo "$ntp_cv_multicast" >&6; } 36124case "$ntp_cv_multicast" in 36125 yes) 36126 36127$as_echo "#define MCAST 1" >>confdefs.h 36128 36129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking arg type needed for setsockopt() IP*_MULTICAST_LOOP" >&5 36130$as_echo_n "checking arg type needed for setsockopt() IP*_MULTICAST_LOOP... " >&6; } 36131if ${ntp_cv_typeof_ip_multicast_loop+:} false; then : 36132 $as_echo_n "(cached) " >&6 36133else 36134 36135 case "$host" in 36136 *-*-netbsd*|*-*-*linux*) 36137 ntp_cv_typeof_ip_multicast_loop=u_int 36138 ;; 36139 *) 36140 ntp_cv_typeof_ip_multicast_loop=u_char 36141 ;; 36142 esac 36143 36144 36145fi 36146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_typeof_ip_multicast_loop" >&5 36147$as_echo "$ntp_cv_typeof_ip_multicast_loop" >&6; } 36148 36149cat >>confdefs.h <<_ACEOF 36150#define TYPEOF_IP_MULTICAST_LOOP $ntp_cv_typeof_ip_multicast_loop 36151_ACEOF 36152 36153esac 36154 36155# Check whether --enable-getifaddrs was given. 36156if test "${enable_getifaddrs+set}" = set; then : 36157 enableval=$enable_getifaddrs; want_getifaddrs="$enableval" 36158else 36159 want_getifaddrs="yes" 36160 36161fi 36162 36163 36164case $want_getifaddrs in 36165 glibc) 36166 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-getifaddrs=glibc is no longer required" >&5 36167$as_echo "$as_me: WARNING: --enable-getifaddrs=glibc is no longer required" >&2;} 36168esac 36169case $want_getifaddrs in 36170 no) 36171 ;; 36172 *) 36173 SAVED_LIBS="$LIBS" 36174 LIBS="$LDADD_LIBNTP $LIBS" 36175 for ac_func in getifaddrs 36176do : 36177 ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs" 36178if test "x$ac_cv_func_getifaddrs" = xyes; then : 36179 cat >>confdefs.h <<_ACEOF 36180#define HAVE_GETIFADDRS 1 36181_ACEOF 36182 36183fi 36184done 36185 36186 LIBS="$SAVED_LIBS" 36187 { SAVED_LIBS=; unset SAVED_LIBS;} 36188 ;; 36189esac 36190 36191# 36192# Check for if_nametoindex() for IPv6 scoped addresses support 36193# 36194case "$host" in 36195 *-hp-hpux*) 36196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing if_nametoindex" >&5 36197$as_echo_n "checking for library containing if_nametoindex... " >&6; } 36198if ${ac_cv_search_if_nametoindex+:} false; then : 36199 $as_echo_n "(cached) " >&6 36200else 36201 ac_func_search_save_LIBS=$LIBS 36202cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36203/* end confdefs.h. */ 36204 36205/* Override any GCC internal prototype to avoid an error. 36206 Use char because int might match the return type of a GCC 36207 builtin and then its argument prototype would still apply. */ 36208#ifdef __cplusplus 36209extern "C" 36210#endif 36211char if_nametoindex (); 36212int 36213main () 36214{ 36215return if_nametoindex (); 36216 ; 36217 return 0; 36218} 36219_ACEOF 36220for ac_lib in '' ipv6; do 36221 if test -z "$ac_lib"; then 36222 ac_res="none required" 36223 else 36224 ac_res=-l$ac_lib 36225 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 36226 fi 36227 if ac_fn_c_try_link "$LINENO"; then : 36228 ac_cv_search_if_nametoindex=$ac_res 36229fi 36230rm -f core conftest.err conftest.$ac_objext \ 36231 conftest$ac_exeext 36232 if ${ac_cv_search_if_nametoindex+:} false; then : 36233 break 36234fi 36235done 36236if ${ac_cv_search_if_nametoindex+:} false; then : 36237 36238else 36239 ac_cv_search_if_nametoindex=no 36240fi 36241rm conftest.$ac_ext 36242LIBS=$ac_func_search_save_LIBS 36243fi 36244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_if_nametoindex" >&5 36245$as_echo "$ac_cv_search_if_nametoindex" >&6; } 36246ac_res=$ac_cv_search_if_nametoindex 36247if test "$ac_res" != no; then : 36248 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 36249 36250fi 36251 36252esac 36253SAVED_LIBS="$LIBS" 36254LIBS="$LDADD_LIBNTP $LIBS" 36255for ac_func in if_nametoindex 36256do : 36257 ac_fn_c_check_func "$LINENO" "if_nametoindex" "ac_cv_func_if_nametoindex" 36258if test "x$ac_cv_func_if_nametoindex" = xyes; then : 36259 cat >>confdefs.h <<_ACEOF 36260#define HAVE_IF_NAMETOINDEX 1 36261_ACEOF 36262 36263fi 36264done 36265 36266LIBS="$SAVED_LIBS" 36267{ SAVED_LIBS=; unset SAVED_LIBS;} 36268case "$ac_cv_func_if_nametoindex" in 36269 yes) 36270 36271$as_echo "#define ISC_PLATFORM_HAVEIFNAMETOINDEX 1" >>confdefs.h 36272 36273esac 36274 36275 36276 36277 36278# 36279# Look for a sysctl call to get the list of network interfaces. 36280# 36281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for interface list sysctl" >&5 36282$as_echo_n "checking for interface list sysctl... " >&6; } 36283if ${ntp_cv_iflist_sysctl+:} false; then : 36284 $as_echo_n "(cached) " >&6 36285else 36286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36287/* end confdefs.h. */ 36288 36289 #include <sys/param.h> 36290 #include <sys/sysctl.h> 36291 #include <sys/socket.h> 36292 #ifndef NET_RT_IFLIST 36293 # error 36294 #endif 36295 36296_ACEOF 36297if ac_fn_c_try_cpp "$LINENO"; then : 36298 ntp_cv_iflist_sysctl=yes 36299else 36300 ntp_cv_iflist_sysctl=no 36301 36302fi 36303rm -f conftest.err conftest.i conftest.$ac_ext 36304 36305fi 36306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_iflist_sysctl" >&5 36307$as_echo "$ntp_cv_iflist_sysctl" >&6; } 36308case "$ntp_cv_iflist_sysctl" in 36309 yes) 36310 36311$as_echo "#define HAVE_IFLIST_SYSCTL 1" >>confdefs.h 36312 36313esac 36314 36315### 36316 36317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want the saveconfig mechanism" >&5 36318$as_echo_n "checking if we want the saveconfig mechanism... " >&6; } 36319# Check whether --enable-saveconfig was given. 36320if test "${enable_saveconfig+set}" = set; then : 36321 enableval=$enable_saveconfig; ntp_ok=$enableval 36322else 36323 ntp_ok=yes 36324 36325fi 36326 36327ntp_saveconfig_enabled=0 36328case "$ntp_ok" in 36329 yes) 36330 ntp_saveconfig_enabled=1 36331 36332$as_echo "#define SAVECONFIG 1" >>confdefs.h 36333 36334 ;; 36335esac 36336 if test x$ntp_saveconfig_enabled = x1; then 36337 SAVECONFIG_ENABLED_TRUE= 36338 SAVECONFIG_ENABLED_FALSE='#' 36339else 36340 SAVECONFIG_ENABLED_TRUE='#' 36341 SAVECONFIG_ENABLED_FALSE= 36342fi 36343 36344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 36345$as_echo "$ntp_ok" >&6; } 36346 36347 36348gta=false 36349 36350# Check whether --with-gtest was given. 36351if test "${with_gtest+set}" = set; then : 36352 withval=$with_gtest; try_gtest=$withval 36353else 36354 try_gtest=yes 36355 36356fi 36357 36358case "$try_gtest" in 36359 yes) 36360 # Extract the first word of "gtest-config", so it can be a program name with args. 36361set dummy gtest-config; ac_word=$2 36362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36363$as_echo_n "checking for $ac_word... " >&6; } 36364if ${ac_cv_path_GTEST_CONFIG+:} false; then : 36365 $as_echo_n "(cached) " >&6 36366else 36367 case $GTEST_CONFIG in 36368 [\\/]* | ?:[\\/]*) 36369 ac_cv_path_GTEST_CONFIG="$GTEST_CONFIG" # Let the user override the test with a path. 36370 ;; 36371 *) 36372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36373for as_dir in $PATH 36374do 36375 IFS=$as_save_IFS 36376 test -z "$as_dir" && as_dir=. 36377 for ac_exec_ext in '' $ac_executable_extensions; do 36378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 36379 ac_cv_path_GTEST_CONFIG="$as_dir/$ac_word$ac_exec_ext" 36380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36381 break 2 36382 fi 36383done 36384 done 36385IFS=$as_save_IFS 36386 36387 ;; 36388esac 36389fi 36390GTEST_CONFIG=$ac_cv_path_GTEST_CONFIG 36391if test -n "$GTEST_CONFIG"; then 36392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTEST_CONFIG" >&5 36393$as_echo "$GTEST_CONFIG" >&6; } 36394else 36395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36396$as_echo "no" >&6; } 36397fi 36398 36399 36400 { ac_cv_path_GTEST_CONFIG=; unset ac_cv_path_GTEST_CONFIG;} 36401 case x${GTEST_CONFIG} in 36402 x) ;; 36403 *) 36404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gtest version" >&5 36405$as_echo_n "checking gtest version... " >&6; } 36406 gtest_version_test=`$GTEST_CONFIG --min-version=1.5 || echo toolow` 36407 case "$gtest_version_test" in 36408 toolow*) 36409 ;; 36410 *) 36411 GTEST_LDFLAGS=`$GTEST_CONFIG --ldflags` 36412 GTEST_LIBS=`$GTEST_CONFIG --libs` 36413 GTEST_CXXFLAGS=`$GTEST_CONFIG --cxxflags` 36414 GTEST_CPPFLAGS=`$GTEST_CONFIG --cppflags` 36415 36416 36417 36418 36419 gta=true 36420 ;; 36421 esac 36422 gtest_version=`$GTEST_CONFIG --version` 36423 case "$gta" in 36424 true) 36425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ($gtest_version) ok" >&5 36426$as_echo "($gtest_version) ok" >&6; } 36427 ;; 36428 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: ($gtest_version) not ok" >&5 36429$as_echo "($gtest_version) not ok" >&6; } 36430 ;; 36431 esac 36432 { gtest_version_test=; unset gtest_version_test;} 36433 { gtest_version=; unset gtest_version;} 36434 esac 36435esac 36436 if $gta; then 36437 GTEST_AVAILABLE_TRUE= 36438 GTEST_AVAILABLE_FALSE='#' 36439else 36440 GTEST_AVAILABLE_TRUE='#' 36441 GTEST_AVAILABLE_FALSE= 36442fi 36443 36444 36445 36446 36447### 36448 36449 36450 prefix_NONE= 36451 exec_prefix_NONE= 36452 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 36453 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 36454 eval ac_define_dir="\"$sysconfdir\"" 36455 eval ac_define_dir="\"$ac_define_dir\"" 36456 NTP_KEYSDIR="$ac_define_dir" 36457 36458 36459cat >>confdefs.h <<_ACEOF 36460#define NTP_KEYSDIR "$ac_define_dir" 36461_ACEOF 36462 36463 test "$prefix_NONE" && prefix=NONE 36464 test "$exec_prefix_NONE" && exec_prefix=NONE 36465 36466 36467ac_config_files="$ac_config_files Makefile" 36468 36469ac_config_files="$ac_config_files adjtimed/Makefile" 36470 36471ac_config_files="$ac_config_files clockstuff/Makefile" 36472 36473ac_config_files="$ac_config_files include/Makefile" 36474 36475ac_config_files="$ac_config_files include/isc/Makefile" 36476 36477ac_config_files="$ac_config_files kernel/Makefile" 36478 36479ac_config_files="$ac_config_files kernel/sys/Makefile" 36480 36481ac_config_files="$ac_config_files libntp/Makefile" 36482 36483ac_config_files="$ac_config_files libparse/Makefile" 36484 36485ac_config_files="$ac_config_files ntpd/Makefile" 36486 36487ac_config_files="$ac_config_files ntpd/complete.conf" 36488 36489ac_config_files="$ac_config_files ntpdate/Makefile" 36490 36491ac_config_files="$ac_config_files ntpdc/Makefile" 36492 36493ac_config_files="$ac_config_files ntpdc/nl.pl" 36494 36495ac_config_files="$ac_config_files ntpq/Makefile" 36496 36497ac_config_files="$ac_config_files ntpsnmpd/Makefile" 36498 36499ac_config_files="$ac_config_files parseutil/Makefile" 36500 36501ac_config_files="$ac_config_files scripts/Makefile" 36502 36503ac_config_files="$ac_config_files scripts/build/Makefile" 36504 36505ac_config_files="$ac_config_files scripts/build/mkver" 36506 36507ac_config_files="$ac_config_files scripts/calc_tickadj/Makefile" 36508 36509ac_config_files="$ac_config_files scripts/calc_tickadj/calc_tickadj" 36510 36511ac_config_files="$ac_config_files scripts/lib/Makefile" 36512 36513ac_config_files="$ac_config_files scripts/ntp-wait/Makefile" 36514 36515ac_config_files="$ac_config_files scripts/ntp-wait/ntp-wait" 36516 36517ac_config_files="$ac_config_files scripts/ntpsweep/Makefile" 36518 36519ac_config_files="$ac_config_files scripts/ntpsweep/ntpsweep" 36520 36521ac_config_files="$ac_config_files scripts/ntptrace/Makefile" 36522 36523ac_config_files="$ac_config_files scripts/ntptrace/ntptrace" 36524 36525ac_config_files="$ac_config_files scripts/ntpver" 36526 36527ac_config_files="$ac_config_files scripts/plot_summary" 36528 36529ac_config_files="$ac_config_files scripts/summary" 36530 36531ac_config_files="$ac_config_files scripts/update-leap/Makefile" 36532 36533ac_config_files="$ac_config_files tests/Makefile" 36534 36535ac_config_files="$ac_config_files tests/libntp/Makefile" 36536 36537ac_config_files="$ac_config_files tests/ntpd/Makefile" 36538 36539ac_config_files="$ac_config_files util/Makefile" 36540 36541 36542perllibdir="${datadir}/ntp/lib" 36543 36544 prefix_NONE= 36545 exec_prefix_NONE= 36546 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 36547 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 36548 eval ac_define_dir="\"$perllibdir\"" 36549 eval ac_define_dir="\"$ac_define_dir\"" 36550 PERLLIBDIR="$ac_define_dir" 36551 36552 36553cat >>confdefs.h <<_ACEOF 36554#define PERLLIBDIR "$ac_define_dir" 36555_ACEOF 36556 36557 test "$prefix_NONE" && prefix=NONE 36558 test "$exec_prefix_NONE" && exec_prefix=NONE 36559 36560 36561calc_tickadj_opts="$srcdir/scripts/calc_tickadj/calc_tickadj-opts" 36562 36563ntp_wait_opts="$srcdir/scripts/ntp-wait/ntp-wait-opts" 36564 36565ntpsweep_opts="$srcdir/scripts/ntpsweep/ntpsweep-opts" 36566 36567ntptrace_opts="$srcdir/scripts/ntptrace/ntptrace-opts" 36568 36569summary_opts="$srcdir/scripts/summary-opts" 36570 36571plot_summary_opts="$srcdir/scripts/plot_summary-opts" 36572 36573 36574 36575 36576subdirs="$subdirs sntp" 36577 36578 36579cat >confcache <<\_ACEOF 36580# This file is a shell script that caches the results of configure 36581# tests run on this system so they can be shared between configure 36582# scripts and configure runs, see configure's option --config-cache. 36583# It is not useful on other systems. If it contains results you don't 36584# want to keep, you may remove or edit it. 36585# 36586# config.status only pays attention to the cache file if you give it 36587# the --recheck option to rerun configure. 36588# 36589# `ac_cv_env_foo' variables (set or unset) will be overridden when 36590# loading this file, other *unset* `ac_cv_foo' will be assigned the 36591# following values. 36592 36593_ACEOF 36594 36595# The following way of writing the cache mishandles newlines in values, 36596# but we know of no workaround that is simple, portable, and efficient. 36597# So, we kill variables containing newlines. 36598# Ultrix sh set writes to stderr and can't be redirected directly, 36599# and sets the high bit in the cache file unless we assign to the vars. 36600( 36601 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 36602 eval ac_val=\$$ac_var 36603 case $ac_val in #( 36604 *${as_nl}*) 36605 case $ac_var in #( 36606 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 36607$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 36608 esac 36609 case $ac_var in #( 36610 _ | IFS | as_nl) ;; #( 36611 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 36612 *) { eval $ac_var=; unset $ac_var;} ;; 36613 esac ;; 36614 esac 36615 done 36616 36617 (set) 2>&1 | 36618 case $as_nl`(ac_space=' '; set) 2>&1` in #( 36619 *${as_nl}ac_space=\ *) 36620 # `set' does not quote correctly, so add quotes: double-quote 36621 # substitution turns \\\\ into \\, and sed turns \\ into \. 36622 sed -n \ 36623 "s/'/'\\\\''/g; 36624 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 36625 ;; #( 36626 *) 36627 # `set' quotes correctly as required by POSIX, so do not add quotes. 36628 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 36629 ;; 36630 esac | 36631 sort 36632) | 36633 sed ' 36634 /^ac_cv_env_/b end 36635 t clear 36636 :clear 36637 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 36638 t end 36639 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 36640 :end' >>confcache 36641if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 36642 if test -w "$cache_file"; then 36643 if test "x$cache_file" != "x/dev/null"; then 36644 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 36645$as_echo "$as_me: updating cache $cache_file" >&6;} 36646 if test ! -f "$cache_file" || test -h "$cache_file"; then 36647 cat confcache >"$cache_file" 36648 else 36649 case $cache_file in #( 36650 */* | ?:*) 36651 mv -f confcache "$cache_file"$$ && 36652 mv -f "$cache_file"$$ "$cache_file" ;; #( 36653 *) 36654 mv -f confcache "$cache_file" ;; 36655 esac 36656 fi 36657 fi 36658 else 36659 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 36660$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 36661 fi 36662fi 36663rm -f confcache 36664 36665test "x$prefix" = xNONE && prefix=$ac_default_prefix 36666# Let make expand exec_prefix. 36667test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 36668 36669DEFS=-DHAVE_CONFIG_H 36670 36671ac_libobjs= 36672ac_ltlibobjs= 36673U= 36674for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 36675 # 1. Remove the extension, and $U if already installed. 36676 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 36677 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 36678 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 36679 # will be set to the directory where LIBOBJS objects are built. 36680 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 36681 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 36682done 36683LIBOBJS=$ac_libobjs 36684 36685LTLIBOBJS=$ac_ltlibobjs 36686 36687 36688 if test -n "$EXEEXT"; then 36689 am__EXEEXT_TRUE= 36690 am__EXEEXT_FALSE='#' 36691else 36692 am__EXEEXT_TRUE='#' 36693 am__EXEEXT_FALSE= 36694fi 36695 36696if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 36697 as_fn_error $? "conditional \"AMDEP\" was never defined. 36698Usually this means the macro was only invoked conditionally." "$LINENO" 5 36699fi 36700if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 36701 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 36702Usually this means the macro was only invoked conditionally." "$LINENO" 5 36703fi 36704if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 36705 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 36706Usually this means the macro was only invoked conditionally." "$LINENO" 5 36707fi 36708 36709if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 36710 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. 36711Usually this means the macro was only invoked conditionally." "$LINENO" 5 36712fi 36713if test -z "${VPATH_HACK_TRUE}" && test -z "${VPATH_HACK_FALSE}"; then 36714 as_fn_error $? "conditional \"VPATH_HACK\" was never defined. 36715Usually this means the macro was only invoked conditionally." "$LINENO" 5 36716fi 36717if test -z "${WANT_CALC_TICKADJ_MS_TRUE}" && test -z "${WANT_CALC_TICKADJ_MS_FALSE}"; then 36718 as_fn_error $? "conditional \"WANT_CALC_TICKADJ_MS\" was never defined. 36719Usually this means the macro was only invoked conditionally." "$LINENO" 5 36720fi 36721if test -z "${INSTALL_NTPSWEEP_TRUE}" && test -z "${INSTALL_NTPSWEEP_FALSE}"; then 36722 as_fn_error $? "conditional \"INSTALL_NTPSWEEP\" was never defined. 36723Usually this means the macro was only invoked conditionally." "$LINENO" 5 36724fi 36725if test -z "${INSTALL_UPDATE_LEAP_TRUE}" && test -z "${INSTALL_UPDATE_LEAP_FALSE}"; then 36726 as_fn_error $? "conditional \"INSTALL_UPDATE_LEAP\" was never defined. 36727Usually this means the macro was only invoked conditionally." "$LINENO" 5 36728fi 36729if test -z "${GL_GENERATE_STDNORETURN_H_TRUE}" && test -z "${GL_GENERATE_STDNORETURN_H_FALSE}"; then 36730 as_fn_error $? "conditional \"GL_GENERATE_STDNORETURN_H\" was never defined. 36731Usually this means the macro was only invoked conditionally." "$LINENO" 5 36732fi 36733if test -z "${INSTALL_LIBOPTS_TRUE}" && test -z "${INSTALL_LIBOPTS_FALSE}"; then 36734 as_fn_error $? "conditional \"INSTALL_LIBOPTS\" was never defined. 36735Usually this means the macro was only invoked conditionally." "$LINENO" 5 36736fi 36737if test -z "${NEED_LIBOPTS_TRUE}" && test -z "${NEED_LIBOPTS_FALSE}"; then 36738 as_fn_error $? "conditional \"NEED_LIBOPTS\" was never defined. 36739Usually this means the macro was only invoked conditionally." "$LINENO" 5 36740fi 36741if test -z "${BUILD_LIBEVENT_TRUE}" && test -z "${BUILD_LIBEVENT_FALSE}"; then 36742 as_fn_error $? "conditional \"BUILD_LIBEVENT\" was never defined. 36743Usually this means the macro was only invoked conditionally." "$LINENO" 5 36744fi 36745if test -z "${NTP_CROSSCOMPILE_TRUE}" && test -z "${NTP_CROSSCOMPILE_FALSE}"; then 36746 as_fn_error $? "conditional \"NTP_CROSSCOMPILE\" was never defined. 36747Usually this means the macro was only invoked conditionally." "$LINENO" 5 36748fi 36749if test -z "${PTHREADS_TRUE}" && test -z "${PTHREADS_FALSE}"; then 36750 as_fn_error $? "conditional \"PTHREADS\" was never defined. 36751Usually this means the macro was only invoked conditionally." "$LINENO" 5 36752fi 36753if test -z "${BUILD_SNTP_TRUE}" && test -z "${BUILD_SNTP_FALSE}"; then 36754 as_fn_error $? "conditional \"BUILD_SNTP\" was never defined. 36755Usually this means the macro was only invoked conditionally." "$LINENO" 5 36756fi 36757if test -z "${SAVECONFIG_ENABLED_TRUE}" && test -z "${SAVECONFIG_ENABLED_FALSE}"; then 36758 as_fn_error $? "conditional \"SAVECONFIG_ENABLED\" was never defined. 36759Usually this means the macro was only invoked conditionally." "$LINENO" 5 36760fi 36761if test -z "${GTEST_AVAILABLE_TRUE}" && test -z "${GTEST_AVAILABLE_FALSE}"; then 36762 as_fn_error $? "conditional \"GTEST_AVAILABLE\" was never defined. 36763Usually this means the macro was only invoked conditionally." "$LINENO" 5 36764fi 36765 36766: "${CONFIG_STATUS=./config.status}" 36767ac_write_fail=0 36768ac_clean_files_save=$ac_clean_files 36769ac_clean_files="$ac_clean_files $CONFIG_STATUS" 36770{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 36771$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 36772as_write_fail=0 36773cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 36774#! $SHELL 36775# Generated by $as_me. 36776# Run this file to recreate the current configuration. 36777# Compiler output produced by configure, useful for debugging 36778# configure, is in config.log if it exists. 36779 36780debug=false 36781ac_cs_recheck=false 36782ac_cs_silent=false 36783 36784SHELL=\${CONFIG_SHELL-$SHELL} 36785export SHELL 36786_ASEOF 36787cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 36788## -------------------- ## 36789## M4sh Initialization. ## 36790## -------------------- ## 36791 36792# Be more Bourne compatible 36793DUALCASE=1; export DUALCASE # for MKS sh 36794if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 36795 emulate sh 36796 NULLCMD=: 36797 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 36798 # is contrary to our usage. Disable this feature. 36799 alias -g '${1+"$@"}'='"$@"' 36800 setopt NO_GLOB_SUBST 36801else 36802 case `(set -o) 2>/dev/null` in #( 36803 *posix*) : 36804 set -o posix ;; #( 36805 *) : 36806 ;; 36807esac 36808fi 36809 36810 36811as_nl=' 36812' 36813export as_nl 36814# Printing a long string crashes Solaris 7 /usr/bin/printf. 36815as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 36816as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 36817as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 36818# Prefer a ksh shell builtin over an external printf program on Solaris, 36819# but without wasting forks for bash or zsh. 36820if test -z "$BASH_VERSION$ZSH_VERSION" \ 36821 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 36822 as_echo='print -r --' 36823 as_echo_n='print -rn --' 36824elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 36825 as_echo='printf %s\n' 36826 as_echo_n='printf %s' 36827else 36828 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 36829 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 36830 as_echo_n='/usr/ucb/echo -n' 36831 else 36832 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 36833 as_echo_n_body='eval 36834 arg=$1; 36835 case $arg in #( 36836 *"$as_nl"*) 36837 expr "X$arg" : "X\\(.*\\)$as_nl"; 36838 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 36839 esac; 36840 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 36841 ' 36842 export as_echo_n_body 36843 as_echo_n='sh -c $as_echo_n_body as_echo' 36844 fi 36845 export as_echo_body 36846 as_echo='sh -c $as_echo_body as_echo' 36847fi 36848 36849# The user is always right. 36850if test "${PATH_SEPARATOR+set}" != set; then 36851 PATH_SEPARATOR=: 36852 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 36853 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 36854 PATH_SEPARATOR=';' 36855 } 36856fi 36857 36858 36859# IFS 36860# We need space, tab and new line, in precisely that order. Quoting is 36861# there to prevent editors from complaining about space-tab. 36862# (If _AS_PATH_WALK were called with IFS unset, it would disable word 36863# splitting by setting IFS to empty value.) 36864IFS=" "" $as_nl" 36865 36866# Find who we are. Look in the path if we contain no directory separator. 36867as_myself= 36868case $0 in #(( 36869 *[\\/]* ) as_myself=$0 ;; 36870 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36871for as_dir in $PATH 36872do 36873 IFS=$as_save_IFS 36874 test -z "$as_dir" && as_dir=. 36875 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 36876 done 36877IFS=$as_save_IFS 36878 36879 ;; 36880esac 36881# We did not find ourselves, most probably we were run as `sh COMMAND' 36882# in which case we are not to be found in the path. 36883if test "x$as_myself" = x; then 36884 as_myself=$0 36885fi 36886if test ! -f "$as_myself"; then 36887 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 36888 exit 1 36889fi 36890 36891# Unset variables that we do not need and which cause bugs (e.g. in 36892# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 36893# suppresses any "Segmentation fault" message there. '((' could 36894# trigger a bug in pdksh 5.2.14. 36895for as_var in BASH_ENV ENV MAIL MAILPATH 36896do eval test x\${$as_var+set} = xset \ 36897 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 36898done 36899PS1='$ ' 36900PS2='> ' 36901PS4='+ ' 36902 36903# NLS nuisances. 36904LC_ALL=C 36905export LC_ALL 36906LANGUAGE=C 36907export LANGUAGE 36908 36909# CDPATH. 36910(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 36911 36912 36913# as_fn_error STATUS ERROR [LINENO LOG_FD] 36914# ---------------------------------------- 36915# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 36916# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 36917# script with STATUS, using 1 if that was 0. 36918as_fn_error () 36919{ 36920 as_status=$1; test $as_status -eq 0 && as_status=1 36921 if test "$4"; then 36922 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 36923 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 36924 fi 36925 $as_echo "$as_me: error: $2" >&2 36926 as_fn_exit $as_status 36927} # as_fn_error 36928 36929 36930# as_fn_set_status STATUS 36931# ----------------------- 36932# Set $? to STATUS, without forking. 36933as_fn_set_status () 36934{ 36935 return $1 36936} # as_fn_set_status 36937 36938# as_fn_exit STATUS 36939# ----------------- 36940# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 36941as_fn_exit () 36942{ 36943 set +e 36944 as_fn_set_status $1 36945 exit $1 36946} # as_fn_exit 36947 36948# as_fn_unset VAR 36949# --------------- 36950# Portably unset VAR. 36951as_fn_unset () 36952{ 36953 { eval $1=; unset $1;} 36954} 36955as_unset=as_fn_unset 36956# as_fn_append VAR VALUE 36957# ---------------------- 36958# Append the text in VALUE to the end of the definition contained in VAR. Take 36959# advantage of any shell optimizations that allow amortized linear growth over 36960# repeated appends, instead of the typical quadratic growth present in naive 36961# implementations. 36962if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 36963 eval 'as_fn_append () 36964 { 36965 eval $1+=\$2 36966 }' 36967else 36968 as_fn_append () 36969 { 36970 eval $1=\$$1\$2 36971 } 36972fi # as_fn_append 36973 36974# as_fn_arith ARG... 36975# ------------------ 36976# Perform arithmetic evaluation on the ARGs, and store the result in the 36977# global $as_val. Take advantage of shells that can avoid forks. The arguments 36978# must be portable across $(()) and expr. 36979if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 36980 eval 'as_fn_arith () 36981 { 36982 as_val=$(( $* )) 36983 }' 36984else 36985 as_fn_arith () 36986 { 36987 as_val=`expr "$@" || test $? -eq 1` 36988 } 36989fi # as_fn_arith 36990 36991 36992if expr a : '\(a\)' >/dev/null 2>&1 && 36993 test "X`expr 00001 : '.*\(...\)'`" = X001; then 36994 as_expr=expr 36995else 36996 as_expr=false 36997fi 36998 36999if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 37000 as_basename=basename 37001else 37002 as_basename=false 37003fi 37004 37005if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 37006 as_dirname=dirname 37007else 37008 as_dirname=false 37009fi 37010 37011as_me=`$as_basename -- "$0" || 37012$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 37013 X"$0" : 'X\(//\)$' \| \ 37014 X"$0" : 'X\(/\)' \| . 2>/dev/null || 37015$as_echo X/"$0" | 37016 sed '/^.*\/\([^/][^/]*\)\/*$/{ 37017 s//\1/ 37018 q 37019 } 37020 /^X\/\(\/\/\)$/{ 37021 s//\1/ 37022 q 37023 } 37024 /^X\/\(\/\).*/{ 37025 s//\1/ 37026 q 37027 } 37028 s/.*/./; q'` 37029 37030# Avoid depending upon Character Ranges. 37031as_cr_letters='abcdefghijklmnopqrstuvwxyz' 37032as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 37033as_cr_Letters=$as_cr_letters$as_cr_LETTERS 37034as_cr_digits='0123456789' 37035as_cr_alnum=$as_cr_Letters$as_cr_digits 37036 37037ECHO_C= ECHO_N= ECHO_T= 37038case `echo -n x` in #((((( 37039-n*) 37040 case `echo 'xy\c'` in 37041 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 37042 xy) ECHO_C='\c';; 37043 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 37044 ECHO_T=' ';; 37045 esac;; 37046*) 37047 ECHO_N='-n';; 37048esac 37049 37050rm -f conf$$ conf$$.exe conf$$.file 37051if test -d conf$$.dir; then 37052 rm -f conf$$.dir/conf$$.file 37053else 37054 rm -f conf$$.dir 37055 mkdir conf$$.dir 2>/dev/null 37056fi 37057if (echo >conf$$.file) 2>/dev/null; then 37058 if ln -s conf$$.file conf$$ 2>/dev/null; then 37059 as_ln_s='ln -s' 37060 # ... but there are two gotchas: 37061 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 37062 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 37063 # In both cases, we have to default to `cp -p'. 37064 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 37065 as_ln_s='cp -p' 37066 elif ln conf$$.file conf$$ 2>/dev/null; then 37067 as_ln_s=ln 37068 else 37069 as_ln_s='cp -p' 37070 fi 37071else 37072 as_ln_s='cp -p' 37073fi 37074rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 37075rmdir conf$$.dir 2>/dev/null 37076 37077 37078# as_fn_mkdir_p 37079# ------------- 37080# Create "$as_dir" as a directory, including parents if necessary. 37081as_fn_mkdir_p () 37082{ 37083 37084 case $as_dir in #( 37085 -*) as_dir=./$as_dir;; 37086 esac 37087 test -d "$as_dir" || eval $as_mkdir_p || { 37088 as_dirs= 37089 while :; do 37090 case $as_dir in #( 37091 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 37092 *) as_qdir=$as_dir;; 37093 esac 37094 as_dirs="'$as_qdir' $as_dirs" 37095 as_dir=`$as_dirname -- "$as_dir" || 37096$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 37097 X"$as_dir" : 'X\(//\)[^/]' \| \ 37098 X"$as_dir" : 'X\(//\)$' \| \ 37099 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 37100$as_echo X"$as_dir" | 37101 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 37102 s//\1/ 37103 q 37104 } 37105 /^X\(\/\/\)[^/].*/{ 37106 s//\1/ 37107 q 37108 } 37109 /^X\(\/\/\)$/{ 37110 s//\1/ 37111 q 37112 } 37113 /^X\(\/\).*/{ 37114 s//\1/ 37115 q 37116 } 37117 s/.*/./; q'` 37118 test -d "$as_dir" && break 37119 done 37120 test -z "$as_dirs" || eval "mkdir $as_dirs" 37121 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 37122 37123 37124} # as_fn_mkdir_p 37125if mkdir -p . 2>/dev/null; then 37126 as_mkdir_p='mkdir -p "$as_dir"' 37127else 37128 test -d ./-p && rmdir ./-p 37129 as_mkdir_p=false 37130fi 37131 37132if test -x / >/dev/null 2>&1; then 37133 as_test_x='test -x' 37134else 37135 if ls -dL / >/dev/null 2>&1; then 37136 as_ls_L_option=L 37137 else 37138 as_ls_L_option= 37139 fi 37140 as_test_x=' 37141 eval sh -c '\'' 37142 if test -d "$1"; then 37143 test -d "$1/."; 37144 else 37145 case $1 in #( 37146 -*)set "./$1";; 37147 esac; 37148 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 37149 ???[sx]*):;;*)false;;esac;fi 37150 '\'' sh 37151 ' 37152fi 37153as_executable_p=$as_test_x 37154 37155# Sed expression to map a string onto a valid CPP name. 37156as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 37157 37158# Sed expression to map a string onto a valid variable name. 37159as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 37160 37161 37162exec 6>&1 37163## ----------------------------------- ## 37164## Main body of $CONFIG_STATUS script. ## 37165## ----------------------------------- ## 37166_ASEOF 37167test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 37168 37169cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 37170# Save the log message, to keep $0 and so on meaningful, and to 37171# report actual input values of CONFIG_FILES etc. instead of their 37172# values after options handling. 37173ac_log=" 37174This file was extended by ntp $as_me 4.2.8p2, which was 37175generated by GNU Autoconf 2.68. Invocation command line was 37176 37177 CONFIG_FILES = $CONFIG_FILES 37178 CONFIG_HEADERS = $CONFIG_HEADERS 37179 CONFIG_LINKS = $CONFIG_LINKS 37180 CONFIG_COMMANDS = $CONFIG_COMMANDS 37181 $ $0 $@ 37182 37183on `(hostname || uname -n) 2>/dev/null | sed 1q` 37184" 37185 37186_ACEOF 37187 37188case $ac_config_files in *" 37189"*) set x $ac_config_files; shift; ac_config_files=$*;; 37190esac 37191 37192case $ac_config_headers in *" 37193"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 37194esac 37195 37196 37197cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 37198# Files that config.status was made for. 37199config_files="$ac_config_files" 37200config_headers="$ac_config_headers" 37201config_commands="$ac_config_commands" 37202 37203_ACEOF 37204 37205cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 37206ac_cs_usage="\ 37207\`$as_me' instantiates files and other configuration actions 37208from templates according to the current configuration. Unless the files 37209and actions are specified as TAGs, all are instantiated by default. 37210 37211Usage: $0 [OPTION]... [TAG]... 37212 37213 -h, --help print this help, then exit 37214 -V, --version print version number and configuration settings, then exit 37215 --config print configuration, then exit 37216 -q, --quiet, --silent 37217 do not print progress messages 37218 -d, --debug don't remove temporary files 37219 --recheck update $as_me by reconfiguring in the same conditions 37220 --file=FILE[:TEMPLATE] 37221 instantiate the configuration file FILE 37222 --header=FILE[:TEMPLATE] 37223 instantiate the configuration header FILE 37224 37225Configuration files: 37226$config_files 37227 37228Configuration headers: 37229$config_headers 37230 37231Configuration commands: 37232$config_commands 37233 37234Report bugs to <http://bugs.ntp.org./>. 37235ntp home page: <http://www.ntp.org./>." 37236 37237_ACEOF 37238cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 37239ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 37240ac_cs_version="\\ 37241ntp config.status 4.2.8p2 37242configured by $0, generated by GNU Autoconf 2.68, 37243 with options \\"\$ac_cs_config\\" 37244 37245Copyright (C) 2010 Free Software Foundation, Inc. 37246This config.status script is free software; the Free Software Foundation 37247gives unlimited permission to copy, distribute and modify it." 37248 37249ac_pwd='$ac_pwd' 37250srcdir='$srcdir' 37251INSTALL='$INSTALL' 37252MKDIR_P='$MKDIR_P' 37253AWK='$AWK' 37254test -n "\$AWK" || AWK=awk 37255_ACEOF 37256 37257cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 37258# The default lists apply if the user does not specify any file. 37259ac_need_defaults=: 37260while test $# != 0 37261do 37262 case $1 in 37263 --*=?*) 37264 ac_option=`expr "X$1" : 'X\([^=]*\)='` 37265 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 37266 ac_shift=: 37267 ;; 37268 --*=) 37269 ac_option=`expr "X$1" : 'X\([^=]*\)='` 37270 ac_optarg= 37271 ac_shift=: 37272 ;; 37273 *) 37274 ac_option=$1 37275 ac_optarg=$2 37276 ac_shift=shift 37277 ;; 37278 esac 37279 37280 case $ac_option in 37281 # Handling of the options. 37282 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 37283 ac_cs_recheck=: ;; 37284 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 37285 $as_echo "$ac_cs_version"; exit ;; 37286 --config | --confi | --conf | --con | --co | --c ) 37287 $as_echo "$ac_cs_config"; exit ;; 37288 --debug | --debu | --deb | --de | --d | -d ) 37289 debug=: ;; 37290 --file | --fil | --fi | --f ) 37291 $ac_shift 37292 case $ac_optarg in 37293 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 37294 '') as_fn_error $? "missing file argument" ;; 37295 esac 37296 as_fn_append CONFIG_FILES " '$ac_optarg'" 37297 ac_need_defaults=false;; 37298 --header | --heade | --head | --hea ) 37299 $ac_shift 37300 case $ac_optarg in 37301 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 37302 esac 37303 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 37304 ac_need_defaults=false;; 37305 --he | --h) 37306 # Conflict between --help and --header 37307 as_fn_error $? "ambiguous option: \`$1' 37308Try \`$0 --help' for more information.";; 37309 --help | --hel | -h ) 37310 $as_echo "$ac_cs_usage"; exit ;; 37311 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 37312 | -silent | --silent | --silen | --sile | --sil | --si | --s) 37313 ac_cs_silent=: ;; 37314 37315 # This is an error. 37316 -*) as_fn_error $? "unrecognized option: \`$1' 37317Try \`$0 --help' for more information." ;; 37318 37319 *) as_fn_append ac_config_targets " $1" 37320 ac_need_defaults=false ;; 37321 37322 esac 37323 shift 37324done 37325 37326ac_configure_extra_args= 37327 37328if $ac_cs_silent; then 37329 exec 6>/dev/null 37330 ac_configure_extra_args="$ac_configure_extra_args --silent" 37331fi 37332 37333_ACEOF 37334cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 37335if \$ac_cs_recheck; then 37336 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 37337 shift 37338 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 37339 CONFIG_SHELL='$SHELL' 37340 export CONFIG_SHELL 37341 exec "\$@" 37342fi 37343 37344_ACEOF 37345cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 37346exec 5>>config.log 37347{ 37348 echo 37349 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 37350## Running $as_me. ## 37351_ASBOX 37352 $as_echo "$ac_log" 37353} >&5 37354 37355_ACEOF 37356cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 37357# 37358# INIT-COMMANDS 37359# 37360AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 37361 37362 37363# The HP-UX ksh and POSIX shell print the target directory to stdout 37364# if CDPATH is set. 37365(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 37366 37367sed_quote_subst='$sed_quote_subst' 37368double_quote_subst='$double_quote_subst' 37369delay_variable_subst='$delay_variable_subst' 37370enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 37371macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 37372macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 37373enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 37374pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 37375enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 37376SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 37377ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 37378host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 37379host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 37380host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 37381build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 37382build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 37383build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 37384SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 37385Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 37386GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 37387EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 37388FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 37389LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 37390NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 37391LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 37392max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 37393ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 37394exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 37395lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 37396lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 37397lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 37398lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 37399lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 37400reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 37401reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 37402OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 37403deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 37404file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 37405file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 37406want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 37407DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 37408sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 37409AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 37410AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 37411archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 37412STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 37413RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 37414old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 37415old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 37416old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 37417lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 37418CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 37419CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 37420compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 37421GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 37422lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 37423lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 37424lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 37425lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`' 37426nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 37427lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 37428objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 37429MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 37430lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 37431lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 37432lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 37433lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 37434lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 37435need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 37436MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 37437DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 37438NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 37439LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 37440OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 37441OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 37442libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 37443shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 37444extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 37445archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 37446enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 37447export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 37448whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 37449compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 37450old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 37451old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 37452archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 37453archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 37454module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 37455module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 37456with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 37457allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 37458no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 37459hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 37460hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`' 37461hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 37462hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 37463hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 37464hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 37465hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 37466hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 37467inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 37468link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 37469always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 37470export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 37471exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 37472include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 37473prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 37474postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 37475file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 37476variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 37477need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 37478need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 37479version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 37480runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 37481shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 37482shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 37483libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 37484library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 37485soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 37486install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 37487postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 37488postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 37489finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 37490finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 37491hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 37492sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 37493sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 37494hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 37495enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 37496enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 37497enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 37498old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 37499striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 37500compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' 37501predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' 37502postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' 37503predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' 37504postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' 37505compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' 37506LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' 37507reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' 37508reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' 37509old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 37510compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' 37511GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' 37512lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' 37513lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' 37514lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' 37515lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' 37516lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' 37517archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' 37518enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' 37519export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 37520whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 37521compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' 37522old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' 37523old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' 37524archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 37525archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 37526module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' 37527module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 37528with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' 37529allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 37530no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 37531hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 37532hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`' 37533hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' 37534hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' 37535hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' 37536hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' 37537hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' 37538hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' 37539inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' 37540link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' 37541always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' 37542export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' 37543exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 37544include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 37545prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 37546postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 37547file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' 37548hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' 37549compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' 37550predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' 37551postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' 37552predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' 37553postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' 37554compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' 37555 37556LTCC='$LTCC' 37557LTCFLAGS='$LTCFLAGS' 37558compiler='$compiler_DEFAULT' 37559 37560# A function that is used when there is no print builtin or printf. 37561func_fallback_echo () 37562{ 37563 eval 'cat <<_LTECHO_EOF 37564\$1 37565_LTECHO_EOF' 37566} 37567 37568# Quote evaled strings. 37569for var in SHELL \ 37570ECHO \ 37571SED \ 37572GREP \ 37573EGREP \ 37574FGREP \ 37575LD \ 37576NM \ 37577LN_S \ 37578lt_SP2NL \ 37579lt_NL2SP \ 37580reload_flag \ 37581OBJDUMP \ 37582deplibs_check_method \ 37583file_magic_cmd \ 37584file_magic_glob \ 37585want_nocaseglob \ 37586DLLTOOL \ 37587sharedlib_from_linklib_cmd \ 37588AR \ 37589AR_FLAGS \ 37590archiver_list_spec \ 37591STRIP \ 37592RANLIB \ 37593CC \ 37594CFLAGS \ 37595compiler \ 37596lt_cv_sys_global_symbol_pipe \ 37597lt_cv_sys_global_symbol_to_cdecl \ 37598lt_cv_sys_global_symbol_to_c_name_address \ 37599lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 37600nm_file_list_spec \ 37601lt_prog_compiler_no_builtin_flag \ 37602lt_prog_compiler_pic \ 37603lt_prog_compiler_wl \ 37604lt_prog_compiler_static \ 37605lt_cv_prog_compiler_c_o \ 37606need_locks \ 37607MANIFEST_TOOL \ 37608DSYMUTIL \ 37609NMEDIT \ 37610LIPO \ 37611OTOOL \ 37612OTOOL64 \ 37613shrext_cmds \ 37614export_dynamic_flag_spec \ 37615whole_archive_flag_spec \ 37616compiler_needs_object \ 37617with_gnu_ld \ 37618allow_undefined_flag \ 37619no_undefined_flag \ 37620hardcode_libdir_flag_spec \ 37621hardcode_libdir_flag_spec_ld \ 37622hardcode_libdir_separator \ 37623exclude_expsyms \ 37624include_expsyms \ 37625file_list_spec \ 37626variables_saved_for_relink \ 37627libname_spec \ 37628library_names_spec \ 37629soname_spec \ 37630install_override_mode \ 37631finish_eval \ 37632old_striplib \ 37633striplib \ 37634compiler_lib_search_dirs \ 37635predep_objects \ 37636postdep_objects \ 37637predeps \ 37638postdeps \ 37639compiler_lib_search_path \ 37640LD_CXX \ 37641reload_flag_CXX \ 37642compiler_CXX \ 37643lt_prog_compiler_no_builtin_flag_CXX \ 37644lt_prog_compiler_pic_CXX \ 37645lt_prog_compiler_wl_CXX \ 37646lt_prog_compiler_static_CXX \ 37647lt_cv_prog_compiler_c_o_CXX \ 37648export_dynamic_flag_spec_CXX \ 37649whole_archive_flag_spec_CXX \ 37650compiler_needs_object_CXX \ 37651with_gnu_ld_CXX \ 37652allow_undefined_flag_CXX \ 37653no_undefined_flag_CXX \ 37654hardcode_libdir_flag_spec_CXX \ 37655hardcode_libdir_flag_spec_ld_CXX \ 37656hardcode_libdir_separator_CXX \ 37657exclude_expsyms_CXX \ 37658include_expsyms_CXX \ 37659file_list_spec_CXX \ 37660compiler_lib_search_dirs_CXX \ 37661predep_objects_CXX \ 37662postdep_objects_CXX \ 37663predeps_CXX \ 37664postdeps_CXX \ 37665compiler_lib_search_path_CXX; do 37666 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 37667 *[\\\\\\\`\\"\\\$]*) 37668 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 37669 ;; 37670 *) 37671 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 37672 ;; 37673 esac 37674done 37675 37676# Double-quote double-evaled strings. 37677for var in reload_cmds \ 37678old_postinstall_cmds \ 37679old_postuninstall_cmds \ 37680old_archive_cmds \ 37681extract_expsyms_cmds \ 37682old_archive_from_new_cmds \ 37683old_archive_from_expsyms_cmds \ 37684archive_cmds \ 37685archive_expsym_cmds \ 37686module_cmds \ 37687module_expsym_cmds \ 37688export_symbols_cmds \ 37689prelink_cmds \ 37690postlink_cmds \ 37691postinstall_cmds \ 37692postuninstall_cmds \ 37693finish_cmds \ 37694sys_lib_search_path_spec \ 37695sys_lib_dlsearch_path_spec \ 37696reload_cmds_CXX \ 37697old_archive_cmds_CXX \ 37698old_archive_from_new_cmds_CXX \ 37699old_archive_from_expsyms_cmds_CXX \ 37700archive_cmds_CXX \ 37701archive_expsym_cmds_CXX \ 37702module_cmds_CXX \ 37703module_expsym_cmds_CXX \ 37704export_symbols_cmds_CXX \ 37705prelink_cmds_CXX \ 37706postlink_cmds_CXX; do 37707 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 37708 *[\\\\\\\`\\"\\\$]*) 37709 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 37710 ;; 37711 *) 37712 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 37713 ;; 37714 esac 37715done 37716 37717ac_aux_dir='$ac_aux_dir' 37718xsi_shell='$xsi_shell' 37719lt_shell_append='$lt_shell_append' 37720 37721# See if we are running on zsh, and set the options which allow our 37722# commands through without removal of \ escapes INIT. 37723if test -n "\${ZSH_VERSION+set}" ; then 37724 setopt NO_GLOB_SUBST 37725fi 37726 37727 37728 PACKAGE='$PACKAGE' 37729 VERSION='$VERSION' 37730 TIMESTAMP='$TIMESTAMP' 37731 RM='$RM' 37732 ofile='$ofile' 37733 37734 37735 37736 37737 37738 37739_ACEOF 37740 37741cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 37742 37743# Handling of arguments. 37744for ac_config_target in $ac_config_targets 37745do 37746 case $ac_config_target in 37747 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 37748 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 37749 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 37750 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 37751 "adjtimed/Makefile") CONFIG_FILES="$CONFIG_FILES adjtimed/Makefile" ;; 37752 "clockstuff/Makefile") CONFIG_FILES="$CONFIG_FILES clockstuff/Makefile" ;; 37753 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; 37754 "include/isc/Makefile") CONFIG_FILES="$CONFIG_FILES include/isc/Makefile" ;; 37755 "kernel/Makefile") CONFIG_FILES="$CONFIG_FILES kernel/Makefile" ;; 37756 "kernel/sys/Makefile") CONFIG_FILES="$CONFIG_FILES kernel/sys/Makefile" ;; 37757 "libntp/Makefile") CONFIG_FILES="$CONFIG_FILES libntp/Makefile" ;; 37758 "libparse/Makefile") CONFIG_FILES="$CONFIG_FILES libparse/Makefile" ;; 37759 "ntpd/Makefile") CONFIG_FILES="$CONFIG_FILES ntpd/Makefile" ;; 37760 "ntpd/complete.conf") CONFIG_FILES="$CONFIG_FILES ntpd/complete.conf" ;; 37761 "ntpdate/Makefile") CONFIG_FILES="$CONFIG_FILES ntpdate/Makefile" ;; 37762 "ntpdc/Makefile") CONFIG_FILES="$CONFIG_FILES ntpdc/Makefile" ;; 37763 "ntpdc/nl.pl") CONFIG_FILES="$CONFIG_FILES ntpdc/nl.pl" ;; 37764 "ntpq/Makefile") CONFIG_FILES="$CONFIG_FILES ntpq/Makefile" ;; 37765 "ntpsnmpd/Makefile") CONFIG_FILES="$CONFIG_FILES ntpsnmpd/Makefile" ;; 37766 "parseutil/Makefile") CONFIG_FILES="$CONFIG_FILES parseutil/Makefile" ;; 37767 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;; 37768 "scripts/build/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/build/Makefile" ;; 37769 "scripts/build/mkver") CONFIG_FILES="$CONFIG_FILES scripts/build/mkver" ;; 37770 "scripts/calc_tickadj/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/calc_tickadj/Makefile" ;; 37771 "scripts/calc_tickadj/calc_tickadj") CONFIG_FILES="$CONFIG_FILES scripts/calc_tickadj/calc_tickadj" ;; 37772 "scripts/lib/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/lib/Makefile" ;; 37773 "scripts/ntp-wait/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/ntp-wait/Makefile" ;; 37774 "scripts/ntp-wait/ntp-wait") CONFIG_FILES="$CONFIG_FILES scripts/ntp-wait/ntp-wait" ;; 37775 "scripts/ntpsweep/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/ntpsweep/Makefile" ;; 37776 "scripts/ntpsweep/ntpsweep") CONFIG_FILES="$CONFIG_FILES scripts/ntpsweep/ntpsweep" ;; 37777 "scripts/ntptrace/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/ntptrace/Makefile" ;; 37778 "scripts/ntptrace/ntptrace") CONFIG_FILES="$CONFIG_FILES scripts/ntptrace/ntptrace" ;; 37779 "scripts/ntpver") CONFIG_FILES="$CONFIG_FILES scripts/ntpver" ;; 37780 "scripts/plot_summary") CONFIG_FILES="$CONFIG_FILES scripts/plot_summary" ;; 37781 "scripts/summary") CONFIG_FILES="$CONFIG_FILES scripts/summary" ;; 37782 "scripts/update-leap/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/update-leap/Makefile" ;; 37783 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; 37784 "tests/libntp/Makefile") CONFIG_FILES="$CONFIG_FILES tests/libntp/Makefile" ;; 37785 "tests/ntpd/Makefile") CONFIG_FILES="$CONFIG_FILES tests/ntpd/Makefile" ;; 37786 "util/Makefile") CONFIG_FILES="$CONFIG_FILES util/Makefile" ;; 37787 37788 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 37789 esac 37790done 37791 37792 37793# If the user did not use the arguments to specify the items to instantiate, 37794# then the envvar interface is used. Set only those that are not. 37795# We use the long form for the default assignment because of an extremely 37796# bizarre bug on SunOS 4.1.3. 37797if $ac_need_defaults; then 37798 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 37799 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 37800 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 37801fi 37802 37803# Have a temporary directory for convenience. Make it in the build tree 37804# simply because there is no reason against having it here, and in addition, 37805# creating and moving files from /tmp can sometimes cause problems. 37806# Hook for its removal unless debugging. 37807# Note that there is a small window in which the directory will not be cleaned: 37808# after its creation but before its name has been assigned to `$tmp'. 37809$debug || 37810{ 37811 tmp= ac_tmp= 37812 trap 'exit_status=$? 37813 : "${ac_tmp:=$tmp}" 37814 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 37815' 0 37816 trap 'as_fn_exit 1' 1 2 13 15 37817} 37818# Create a (secure) tmp directory for tmp files. 37819 37820{ 37821 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 37822 test -d "$tmp" 37823} || 37824{ 37825 tmp=./conf$$-$RANDOM 37826 (umask 077 && mkdir "$tmp") 37827} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 37828ac_tmp=$tmp 37829 37830# Set up the scripts for CONFIG_FILES section. 37831# No need to generate them if there are no CONFIG_FILES. 37832# This happens for instance with `./config.status config.h'. 37833if test -n "$CONFIG_FILES"; then 37834 37835if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then 37836 ac_cs_awk_getline=: 37837 ac_cs_awk_pipe_init= 37838 ac_cs_awk_read_file=' 37839 while ((getline aline < (F[key])) > 0) 37840 print(aline) 37841 close(F[key])' 37842 ac_cs_awk_pipe_fini= 37843else 37844 ac_cs_awk_getline=false 37845 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\"" 37846 ac_cs_awk_read_file=' 37847 print "|#_!!_#|" 37848 print "cat " F[key] " &&" 37849 '$ac_cs_awk_pipe_init 37850 # The final `:' finishes the AND list. 37851 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }' 37852fi 37853ac_cr=`echo X | tr X '\015'` 37854# On cygwin, bash can eat \r inside `` if the user requested igncr. 37855# But we know of no other shell where ac_cr would be empty at this 37856# point, so we can use a bashism as a fallback. 37857if test "x$ac_cr" = x; then 37858 eval ac_cr=\$\'\\r\' 37859fi 37860ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 37861if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 37862 ac_cs_awk_cr='\\r' 37863else 37864 ac_cs_awk_cr=$ac_cr 37865fi 37866 37867echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 37868_ACEOF 37869 37870# Create commands to substitute file output variables. 37871{ 37872 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" && 37873 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' && 37874 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' && 37875 echo "_ACAWK" && 37876 echo "_ACEOF" 37877} >conf$$files.sh && 37878. ./conf$$files.sh || 37879 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 37880rm -f conf$$files.sh 37881 37882{ 37883 echo "cat >conf$$subs.awk <<_ACEOF" && 37884 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 37885 echo "_ACEOF" 37886} >conf$$subs.sh || 37887 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 37888ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 37889ac_delim='%!_!# ' 37890for ac_last_try in false false false false false :; do 37891 . ./conf$$subs.sh || 37892 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 37893 37894 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 37895 if test $ac_delim_n = $ac_delim_num; then 37896 break 37897 elif $ac_last_try; then 37898 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 37899 else 37900 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 37901 fi 37902done 37903rm -f conf$$subs.sh 37904 37905cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 37906cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 37907_ACEOF 37908sed -n ' 37909h 37910s/^/S["/; s/!.*/"]=/ 37911p 37912g 37913s/^[^!]*!// 37914:repl 37915t repl 37916s/'"$ac_delim"'$// 37917t delim 37918:nl 37919h 37920s/\(.\{148\}\)..*/\1/ 37921t more1 37922s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 37923p 37924n 37925b repl 37926:more1 37927s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 37928p 37929g 37930s/.\{148\}// 37931t nl 37932:delim 37933h 37934s/\(.\{148\}\)..*/\1/ 37935t more2 37936s/["\\]/\\&/g; s/^/"/; s/$/"/ 37937p 37938b 37939:more2 37940s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 37941p 37942g 37943s/.\{148\}// 37944t delim 37945' <conf$$subs.awk | sed ' 37946/^[^""]/{ 37947 N 37948 s/\n// 37949} 37950' >>$CONFIG_STATUS || ac_write_fail=1 37951rm -f conf$$subs.awk 37952cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 37953_ACAWK 37954cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 37955 for (key in S) S_is_set[key] = 1 37956 FS = "" 37957 \$ac_cs_awk_pipe_init 37958} 37959{ 37960 line = $ 0 37961 nfields = split(line, field, "@") 37962 substed = 0 37963 len = length(field[1]) 37964 for (i = 2; i < nfields; i++) { 37965 key = field[i] 37966 keylen = length(key) 37967 if (S_is_set[key]) { 37968 value = S[key] 37969 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 37970 len += length(value) + length(field[++i]) 37971 substed = 1 37972 } else 37973 len += 1 + keylen 37974 } 37975 if (nfields == 3 && !substed) { 37976 key = field[2] 37977 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) { 37978 \$ac_cs_awk_read_file 37979 next 37980 } 37981 } 37982 print line 37983} 37984\$ac_cs_awk_pipe_fini 37985_ACAWK 37986_ACEOF 37987cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 37988if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 37989 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 37990else 37991 cat 37992fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 37993 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 37994_ACEOF 37995 37996# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 37997# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 37998# trailing colons and then remove the whole line if VPATH becomes empty 37999# (actually we leave an empty line to preserve line numbers). 38000if test "x$srcdir" = x.; then 38001 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 38002h 38003s/// 38004s/^/:/ 38005s/[ ]*$/:/ 38006s/:\$(srcdir):/:/g 38007s/:\${srcdir}:/:/g 38008s/:@srcdir@:/:/g 38009s/^:*// 38010s/:*$// 38011x 38012s/\(=[ ]*\).*/\1/ 38013G 38014s/\n// 38015s/^[^=]*=[ ]*$// 38016}' 38017fi 38018 38019cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 38020fi # test -n "$CONFIG_FILES" 38021 38022# Set up the scripts for CONFIG_HEADERS section. 38023# No need to generate them if there are no CONFIG_HEADERS. 38024# This happens for instance with `./config.status Makefile'. 38025if test -n "$CONFIG_HEADERS"; then 38026cat >"$ac_tmp/defines.awk" <<\_ACAWK || 38027BEGIN { 38028_ACEOF 38029 38030# Transform confdefs.h into an awk script `defines.awk', embedded as 38031# here-document in config.status, that substitutes the proper values into 38032# config.h.in to produce config.h. 38033 38034# Create a delimiter string that does not exist in confdefs.h, to ease 38035# handling of long lines. 38036ac_delim='%!_!# ' 38037for ac_last_try in false false :; do 38038 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 38039 if test -z "$ac_tt"; then 38040 break 38041 elif $ac_last_try; then 38042 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 38043 else 38044 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 38045 fi 38046done 38047 38048# For the awk script, D is an array of macro values keyed by name, 38049# likewise P contains macro parameters if any. Preserve backslash 38050# newline sequences. 38051 38052ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 38053sed -n ' 38054s/.\{148\}/&'"$ac_delim"'/g 38055t rset 38056:rset 38057s/^[ ]*#[ ]*define[ ][ ]*/ / 38058t def 38059d 38060:def 38061s/\\$// 38062t bsnl 38063s/["\\]/\\&/g 38064s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 38065D["\1"]=" \3"/p 38066s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 38067d 38068:bsnl 38069s/["\\]/\\&/g 38070s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 38071D["\1"]=" \3\\\\\\n"\\/p 38072t cont 38073s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 38074t cont 38075d 38076:cont 38077n 38078s/.\{148\}/&'"$ac_delim"'/g 38079t clear 38080:clear 38081s/\\$// 38082t bsnlc 38083s/["\\]/\\&/g; s/^/"/; s/$/"/p 38084d 38085:bsnlc 38086s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 38087b cont 38088' <confdefs.h | sed ' 38089s/'"$ac_delim"'/"\\\ 38090"/g' >>$CONFIG_STATUS || ac_write_fail=1 38091 38092cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 38093 for (key in D) D_is_set[key] = 1 38094 FS = "" 38095} 38096/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 38097 line = \$ 0 38098 split(line, arg, " ") 38099 if (arg[1] == "#") { 38100 defundef = arg[2] 38101 mac1 = arg[3] 38102 } else { 38103 defundef = substr(arg[1], 2) 38104 mac1 = arg[2] 38105 } 38106 split(mac1, mac2, "(") #) 38107 macro = mac2[1] 38108 prefix = substr(line, 1, index(line, defundef) - 1) 38109 if (D_is_set[macro]) { 38110 # Preserve the white space surrounding the "#". 38111 print prefix "define", macro P[macro] D[macro] 38112 next 38113 } else { 38114 # Replace #undef with comments. This is necessary, for example, 38115 # in the case of _POSIX_SOURCE, which is predefined and required 38116 # on some systems where configure will not decide to define it. 38117 if (defundef == "undef") { 38118 print "/*", prefix defundef, macro, "*/" 38119 next 38120 } 38121 } 38122} 38123{ print } 38124_ACAWK 38125_ACEOF 38126cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 38127 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 38128fi # test -n "$CONFIG_HEADERS" 38129 38130 38131eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 38132shift 38133for ac_tag 38134do 38135 case $ac_tag in 38136 :[FHLC]) ac_mode=$ac_tag; continue;; 38137 esac 38138 case $ac_mode$ac_tag in 38139 :[FHL]*:*);; 38140 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 38141 :[FH]-) ac_tag=-:-;; 38142 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 38143 esac 38144 ac_save_IFS=$IFS 38145 IFS=: 38146 set x $ac_tag 38147 IFS=$ac_save_IFS 38148 shift 38149 ac_file=$1 38150 shift 38151 38152 case $ac_mode in 38153 :L) ac_source=$1;; 38154 :[FH]) 38155 ac_file_inputs= 38156 for ac_f 38157 do 38158 case $ac_f in 38159 -) ac_f="$ac_tmp/stdin";; 38160 *) # Look for the file first in the build tree, then in the source tree 38161 # (if the path is not absolute). The absolute path cannot be DOS-style, 38162 # because $ac_f cannot contain `:'. 38163 test -f "$ac_f" || 38164 case $ac_f in 38165 [\\/$]*) false;; 38166 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 38167 esac || 38168 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 38169 esac 38170 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 38171 as_fn_append ac_file_inputs " '$ac_f'" 38172 done 38173 38174 # Let's still pretend it is `configure' which instantiates (i.e., don't 38175 # use $as_me), people would be surprised to read: 38176 # /* config.h. Generated by config.status. */ 38177 configure_input='Generated from '` 38178 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 38179 `' by configure.' 38180 if test x"$ac_file" != x-; then 38181 configure_input="$ac_file. $configure_input" 38182 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 38183$as_echo "$as_me: creating $ac_file" >&6;} 38184 fi 38185 # Neutralize special characters interpreted by sed in replacement strings. 38186 case $configure_input in #( 38187 *\&* | *\|* | *\\* ) 38188 ac_sed_conf_input=`$as_echo "$configure_input" | 38189 sed 's/[\\\\&|]/\\\\&/g'`;; #( 38190 *) ac_sed_conf_input=$configure_input;; 38191 esac 38192 38193 case $ac_tag in 38194 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 38195 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 38196 esac 38197 ;; 38198 esac 38199 38200 ac_dir=`$as_dirname -- "$ac_file" || 38201$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 38202 X"$ac_file" : 'X\(//\)[^/]' \| \ 38203 X"$ac_file" : 'X\(//\)$' \| \ 38204 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 38205$as_echo X"$ac_file" | 38206 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 38207 s//\1/ 38208 q 38209 } 38210 /^X\(\/\/\)[^/].*/{ 38211 s//\1/ 38212 q 38213 } 38214 /^X\(\/\/\)$/{ 38215 s//\1/ 38216 q 38217 } 38218 /^X\(\/\).*/{ 38219 s//\1/ 38220 q 38221 } 38222 s/.*/./; q'` 38223 as_dir="$ac_dir"; as_fn_mkdir_p 38224 ac_builddir=. 38225 38226case "$ac_dir" in 38227.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 38228*) 38229 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 38230 # A ".." for each directory in $ac_dir_suffix. 38231 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 38232 case $ac_top_builddir_sub in 38233 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 38234 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 38235 esac ;; 38236esac 38237ac_abs_top_builddir=$ac_pwd 38238ac_abs_builddir=$ac_pwd$ac_dir_suffix 38239# for backward compatibility: 38240ac_top_builddir=$ac_top_build_prefix 38241 38242case $srcdir in 38243 .) # We are building in place. 38244 ac_srcdir=. 38245 ac_top_srcdir=$ac_top_builddir_sub 38246 ac_abs_top_srcdir=$ac_pwd ;; 38247 [\\/]* | ?:[\\/]* ) # Absolute name. 38248 ac_srcdir=$srcdir$ac_dir_suffix; 38249 ac_top_srcdir=$srcdir 38250 ac_abs_top_srcdir=$srcdir ;; 38251 *) # Relative name. 38252 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 38253 ac_top_srcdir=$ac_top_build_prefix$srcdir 38254 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 38255esac 38256ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 38257 38258 38259 case $ac_mode in 38260 :F) 38261 # 38262 # CONFIG_FILE 38263 # 38264 38265 case $INSTALL in 38266 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 38267 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 38268 esac 38269 ac_MKDIR_P=$MKDIR_P 38270 case $MKDIR_P in 38271 [\\/$]* | ?:[\\/]* ) ;; 38272 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 38273 esac 38274_ACEOF 38275 38276cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 38277# If the template does not know about datarootdir, expand it. 38278# FIXME: This hack should be removed a few years after 2.60. 38279ac_datarootdir_hack=; ac_datarootdir_seen= 38280ac_sed_dataroot=' 38281/datarootdir/ { 38282 p 38283 q 38284} 38285/@datadir@/p 38286/@docdir@/p 38287/@infodir@/p 38288/@localedir@/p 38289/@mandir@/p' 38290case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 38291*datarootdir*) ac_datarootdir_seen=yes;; 38292*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 38293 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 38294$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 38295_ACEOF 38296cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 38297 ac_datarootdir_hack=' 38298 s&@datadir@&$datadir&g 38299 s&@docdir@&$docdir&g 38300 s&@infodir@&$infodir&g 38301 s&@localedir@&$localedir&g 38302 s&@mandir@&$mandir&g 38303 s&\\\${datarootdir}&$datarootdir&g' ;; 38304esac 38305_ACEOF 38306 38307# Neutralize VPATH when `$srcdir' = `.'. 38308# Shell code in configure.ac might set extrasub. 38309# FIXME: do we really want to maintain this feature? 38310cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 38311ac_sed_extra="$ac_vpsub 38312$extrasub 38313_ACEOF 38314cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 38315:t 38316/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 38317s|@configure_input@|$ac_sed_conf_input|;t t 38318s&@top_builddir@&$ac_top_builddir_sub&;t t 38319s&@top_build_prefix@&$ac_top_build_prefix&;t t 38320s&@srcdir@&$ac_srcdir&;t t 38321s&@abs_srcdir@&$ac_abs_srcdir&;t t 38322s&@top_srcdir@&$ac_top_srcdir&;t t 38323s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 38324s&@builddir@&$ac_builddir&;t t 38325s&@abs_builddir@&$ac_abs_builddir&;t t 38326s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 38327s&@INSTALL@&$ac_INSTALL&;t t 38328s&@MKDIR_P@&$ac_MKDIR_P&;t t 38329$ac_datarootdir_hack 38330" 38331eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | 38332if $ac_cs_awk_getline; then 38333 $AWK -f "$ac_tmp/subs.awk" 38334else 38335 $AWK -f "$ac_tmp/subs.awk" | $SHELL 38336fi \ 38337 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 38338 38339test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 38340 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 38341 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 38342 "$ac_tmp/out"`; test -z "$ac_out"; } && 38343 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 38344which seems to be undefined. Please make sure it is defined" >&5 38345$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 38346which seems to be undefined. Please make sure it is defined" >&2;} 38347 38348 rm -f "$ac_tmp/stdin" 38349 case $ac_file in 38350 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 38351 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 38352 esac \ 38353 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 38354 ;; 38355 :H) 38356 # 38357 # CONFIG_HEADER 38358 # 38359 if test x"$ac_file" != x-; then 38360 { 38361 $as_echo "/* $configure_input */" \ 38362 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 38363 } >"$ac_tmp/config.h" \ 38364 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 38365 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 38366 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 38367$as_echo "$as_me: $ac_file is unchanged" >&6;} 38368 else 38369 rm -f "$ac_file" 38370 mv "$ac_tmp/config.h" "$ac_file" \ 38371 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 38372 fi 38373 else 38374 $as_echo "/* $configure_input */" \ 38375 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 38376 || as_fn_error $? "could not create -" "$LINENO" 5 38377 fi 38378# Compute "$ac_file"'s index in $config_headers. 38379_am_arg="$ac_file" 38380_am_stamp_count=1 38381for _am_header in $config_headers :; do 38382 case $_am_header in 38383 $_am_arg | $_am_arg:* ) 38384 break ;; 38385 * ) 38386 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 38387 esac 38388done 38389echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 38390$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 38391 X"$_am_arg" : 'X\(//\)[^/]' \| \ 38392 X"$_am_arg" : 'X\(//\)$' \| \ 38393 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 38394$as_echo X"$_am_arg" | 38395 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 38396 s//\1/ 38397 q 38398 } 38399 /^X\(\/\/\)[^/].*/{ 38400 s//\1/ 38401 q 38402 } 38403 /^X\(\/\/\)$/{ 38404 s//\1/ 38405 q 38406 } 38407 /^X\(\/\).*/{ 38408 s//\1/ 38409 q 38410 } 38411 s/.*/./; q'`/stamp-h$_am_stamp_count 38412 ;; 38413 38414 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 38415$as_echo "$as_me: executing $ac_file commands" >&6;} 38416 ;; 38417 esac 38418 38419 38420 case $ac_file$ac_mode in 38421 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 38422 # Autoconf 2.62 quotes --file arguments for eval, but not when files 38423 # are listed without --file. Let's play safe and only enable the eval 38424 # if we detect the quoting. 38425 case $CONFIG_FILES in 38426 *\'*) eval set x "$CONFIG_FILES" ;; 38427 *) set x $CONFIG_FILES ;; 38428 esac 38429 shift 38430 for mf 38431 do 38432 # Strip MF so we end up with the name of the file. 38433 mf=`echo "$mf" | sed -e 's/:.*$//'` 38434 # Check whether this is an Automake generated Makefile or not. 38435 # We used to match only the files named `Makefile.in', but 38436 # some people rename them; so instead we look at the file content. 38437 # Grep'ing the first line is not enough: some people post-process 38438 # each Makefile.in and add a new line on top of each file to say so. 38439 # Grep'ing the whole file is not good either: AIX grep has a line 38440 # limit of 2048, but all sed's we know have understand at least 4000. 38441 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 38442 dirpart=`$as_dirname -- "$mf" || 38443$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 38444 X"$mf" : 'X\(//\)[^/]' \| \ 38445 X"$mf" : 'X\(//\)$' \| \ 38446 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 38447$as_echo X"$mf" | 38448 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 38449 s//\1/ 38450 q 38451 } 38452 /^X\(\/\/\)[^/].*/{ 38453 s//\1/ 38454 q 38455 } 38456 /^X\(\/\/\)$/{ 38457 s//\1/ 38458 q 38459 } 38460 /^X\(\/\).*/{ 38461 s//\1/ 38462 q 38463 } 38464 s/.*/./; q'` 38465 else 38466 continue 38467 fi 38468 # Extract the definition of DEPDIR, am__include, and am__quote 38469 # from the Makefile without running `make'. 38470 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 38471 test -z "$DEPDIR" && continue 38472 am__include=`sed -n 's/^am__include = //p' < "$mf"` 38473 test -z "am__include" && continue 38474 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 38475 # When using ansi2knr, U may be empty or an underscore; expand it 38476 U=`sed -n 's/^U = //p' < "$mf"` 38477 # Find all dependency output files, they are included files with 38478 # $(DEPDIR) in their names. We invoke sed twice because it is the 38479 # simplest approach to changing $(DEPDIR) to its actual value in the 38480 # expansion. 38481 for file in `sed -n " 38482 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 38483 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 38484 # Make sure the directory exists. 38485 test -f "$dirpart/$file" && continue 38486 fdir=`$as_dirname -- "$file" || 38487$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 38488 X"$file" : 'X\(//\)[^/]' \| \ 38489 X"$file" : 'X\(//\)$' \| \ 38490 X"$file" : 'X\(/\)' \| . 2>/dev/null || 38491$as_echo X"$file" | 38492 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 38493 s//\1/ 38494 q 38495 } 38496 /^X\(\/\/\)[^/].*/{ 38497 s//\1/ 38498 q 38499 } 38500 /^X\(\/\/\)$/{ 38501 s//\1/ 38502 q 38503 } 38504 /^X\(\/\).*/{ 38505 s//\1/ 38506 q 38507 } 38508 s/.*/./; q'` 38509 as_dir=$dirpart/$fdir; as_fn_mkdir_p 38510 # echo "creating $dirpart/$file" 38511 echo '# dummy' > "$dirpart/$file" 38512 done 38513 done 38514} 38515 ;; 38516 "libtool":C) 38517 38518 # See if we are running on zsh, and set the options which allow our 38519 # commands through without removal of \ escapes. 38520 if test -n "${ZSH_VERSION+set}" ; then 38521 setopt NO_GLOB_SUBST 38522 fi 38523 38524 cfgfile="${ofile}T" 38525 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 38526 $RM "$cfgfile" 38527 38528 cat <<_LT_EOF >> "$cfgfile" 38529#! $SHELL 38530 38531# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 38532# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 38533# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 38534# NOTE: Changes made to this file will be lost: look at ltmain.sh. 38535# 38536# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 38537# 2006, 2007, 2008, 2009, 2010 Free Software Foundation, 38538# Inc. 38539# Written by Gordon Matzigkeit, 1996 38540# 38541# This file is part of GNU Libtool. 38542# 38543# GNU Libtool is free software; you can redistribute it and/or 38544# modify it under the terms of the GNU General Public License as 38545# published by the Free Software Foundation; either version 2 of 38546# the License, or (at your option) any later version. 38547# 38548# As a special exception to the GNU General Public License, 38549# if you distribute this file as part of a program or library that 38550# is built using GNU Libtool, you may include this file under the 38551# same distribution terms that you use for the rest of that program. 38552# 38553# GNU Libtool is distributed in the hope that it will be useful, 38554# but WITHOUT ANY WARRANTY; without even the implied warranty of 38555# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 38556# GNU General Public License for more details. 38557# 38558# You should have received a copy of the GNU General Public License 38559# along with GNU Libtool; see the file COPYING. If not, a copy 38560# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 38561# obtained by writing to the Free Software Foundation, Inc., 38562# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 38563 38564 38565# The names of the tagged configurations supported by this script. 38566available_tags="CXX " 38567 38568# ### BEGIN LIBTOOL CONFIG 38569 38570# Whether or not to build shared libraries. 38571build_libtool_libs=$enable_shared 38572 38573# Which release of libtool.m4 was used? 38574macro_version=$macro_version 38575macro_revision=$macro_revision 38576 38577# Whether or not to build static libraries. 38578build_old_libs=$enable_static 38579 38580# What type of objects to build. 38581pic_mode=$pic_mode 38582 38583# Whether or not to optimize for fast installation. 38584fast_install=$enable_fast_install 38585 38586# Shell to use when invoking shell scripts. 38587SHELL=$lt_SHELL 38588 38589# An echo program that protects backslashes. 38590ECHO=$lt_ECHO 38591 38592# The host system. 38593host_alias=$host_alias 38594host=$host 38595host_os=$host_os 38596 38597# The build system. 38598build_alias=$build_alias 38599build=$build 38600build_os=$build_os 38601 38602# A sed program that does not truncate output. 38603SED=$lt_SED 38604 38605# Sed that helps us avoid accidentally triggering echo(1) options like -n. 38606Xsed="\$SED -e 1s/^X//" 38607 38608# A grep program that handles long lines. 38609GREP=$lt_GREP 38610 38611# An ERE matcher. 38612EGREP=$lt_EGREP 38613 38614# A literal string matcher. 38615FGREP=$lt_FGREP 38616 38617# A BSD- or MS-compatible name lister. 38618NM=$lt_NM 38619 38620# Whether we need soft or hard links. 38621LN_S=$lt_LN_S 38622 38623# What is the maximum length of a command? 38624max_cmd_len=$max_cmd_len 38625 38626# Object file suffix (normally "o"). 38627objext=$ac_objext 38628 38629# Executable file suffix (normally ""). 38630exeext=$exeext 38631 38632# whether the shell understands "unset". 38633lt_unset=$lt_unset 38634 38635# turn spaces into newlines. 38636SP2NL=$lt_lt_SP2NL 38637 38638# turn newlines into spaces. 38639NL2SP=$lt_lt_NL2SP 38640 38641# convert \$build file names to \$host format. 38642to_host_file_cmd=$lt_cv_to_host_file_cmd 38643 38644# convert \$build files to toolchain format. 38645to_tool_file_cmd=$lt_cv_to_tool_file_cmd 38646 38647# An object symbol dumper. 38648OBJDUMP=$lt_OBJDUMP 38649 38650# Method to check whether dependent libraries are shared objects. 38651deplibs_check_method=$lt_deplibs_check_method 38652 38653# Command to use when deplibs_check_method = "file_magic". 38654file_magic_cmd=$lt_file_magic_cmd 38655 38656# How to find potential files when deplibs_check_method = "file_magic". 38657file_magic_glob=$lt_file_magic_glob 38658 38659# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 38660want_nocaseglob=$lt_want_nocaseglob 38661 38662# DLL creation program. 38663DLLTOOL=$lt_DLLTOOL 38664 38665# Command to associate shared and link libraries. 38666sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 38667 38668# The archiver. 38669AR=$lt_AR 38670 38671# Flags to create an archive. 38672AR_FLAGS=$lt_AR_FLAGS 38673 38674# How to feed a file listing to the archiver. 38675archiver_list_spec=$lt_archiver_list_spec 38676 38677# A symbol stripping program. 38678STRIP=$lt_STRIP 38679 38680# Commands used to install an old-style archive. 38681RANLIB=$lt_RANLIB 38682old_postinstall_cmds=$lt_old_postinstall_cmds 38683old_postuninstall_cmds=$lt_old_postuninstall_cmds 38684 38685# Whether to use a lock for old archive extraction. 38686lock_old_archive_extraction=$lock_old_archive_extraction 38687 38688# A C compiler. 38689LTCC=$lt_CC 38690 38691# LTCC compiler flags. 38692LTCFLAGS=$lt_CFLAGS 38693 38694# Take the output of nm and produce a listing of raw symbols and C names. 38695global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 38696 38697# Transform the output of nm in a proper C declaration. 38698global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 38699 38700# Transform the output of nm in a C name address pair. 38701global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 38702 38703# Transform the output of nm in a C name address pair when lib prefix is needed. 38704global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 38705 38706# Specify filename containing input files for \$NM. 38707nm_file_list_spec=$lt_nm_file_list_spec 38708 38709# The root where to search for dependent libraries,and in which our libraries should be installed. 38710lt_sysroot=$lt_sysroot 38711 38712# The name of the directory that contains temporary libtool files. 38713objdir=$objdir 38714 38715# Used to examine libraries when file_magic_cmd begins with "file". 38716MAGIC_CMD=$MAGIC_CMD 38717 38718# Must we lock files when doing compilation? 38719need_locks=$lt_need_locks 38720 38721# Manifest tool. 38722MANIFEST_TOOL=$lt_MANIFEST_TOOL 38723 38724# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 38725DSYMUTIL=$lt_DSYMUTIL 38726 38727# Tool to change global to local symbols on Mac OS X. 38728NMEDIT=$lt_NMEDIT 38729 38730# Tool to manipulate fat objects and archives on Mac OS X. 38731LIPO=$lt_LIPO 38732 38733# ldd/readelf like tool for Mach-O binaries on Mac OS X. 38734OTOOL=$lt_OTOOL 38735 38736# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 38737OTOOL64=$lt_OTOOL64 38738 38739# Old archive suffix (normally "a"). 38740libext=$libext 38741 38742# Shared library suffix (normally ".so"). 38743shrext_cmds=$lt_shrext_cmds 38744 38745# The commands to extract the exported symbol list from a shared archive. 38746extract_expsyms_cmds=$lt_extract_expsyms_cmds 38747 38748# Variables whose values should be saved in libtool wrapper scripts and 38749# restored at link time. 38750variables_saved_for_relink=$lt_variables_saved_for_relink 38751 38752# Do we need the "lib" prefix for modules? 38753need_lib_prefix=$need_lib_prefix 38754 38755# Do we need a version for libraries? 38756need_version=$need_version 38757 38758# Library versioning type. 38759version_type=$version_type 38760 38761# Shared library runtime path variable. 38762runpath_var=$runpath_var 38763 38764# Shared library path variable. 38765shlibpath_var=$shlibpath_var 38766 38767# Is shlibpath searched before the hard-coded library search path? 38768shlibpath_overrides_runpath=$shlibpath_overrides_runpath 38769 38770# Format of library name prefix. 38771libname_spec=$lt_libname_spec 38772 38773# List of archive names. First name is the real one, the rest are links. 38774# The last name is the one that the linker finds with -lNAME 38775library_names_spec=$lt_library_names_spec 38776 38777# The coded name of the library, if different from the real name. 38778soname_spec=$lt_soname_spec 38779 38780# Permission mode override for installation of shared libraries. 38781install_override_mode=$lt_install_override_mode 38782 38783# Command to use after installation of a shared archive. 38784postinstall_cmds=$lt_postinstall_cmds 38785 38786# Command to use after uninstallation of a shared archive. 38787postuninstall_cmds=$lt_postuninstall_cmds 38788 38789# Commands used to finish a libtool library installation in a directory. 38790finish_cmds=$lt_finish_cmds 38791 38792# As "finish_cmds", except a single script fragment to be evaled but 38793# not shown. 38794finish_eval=$lt_finish_eval 38795 38796# Whether we should hardcode library paths into libraries. 38797hardcode_into_libs=$hardcode_into_libs 38798 38799# Compile-time system search path for libraries. 38800sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 38801 38802# Run-time system search path for libraries. 38803sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 38804 38805# Whether dlopen is supported. 38806dlopen_support=$enable_dlopen 38807 38808# Whether dlopen of programs is supported. 38809dlopen_self=$enable_dlopen_self 38810 38811# Whether dlopen of statically linked programs is supported. 38812dlopen_self_static=$enable_dlopen_self_static 38813 38814# Commands to strip libraries. 38815old_striplib=$lt_old_striplib 38816striplib=$lt_striplib 38817 38818 38819# The linker used to build libraries. 38820LD=$lt_LD 38821 38822# How to create reloadable object files. 38823reload_flag=$lt_reload_flag 38824reload_cmds=$lt_reload_cmds 38825 38826# Commands used to build an old-style archive. 38827old_archive_cmds=$lt_old_archive_cmds 38828 38829# A language specific compiler. 38830CC=$lt_compiler 38831 38832# Is the compiler the GNU compiler? 38833with_gcc=$GCC 38834 38835# Compiler flag to turn off builtin functions. 38836no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 38837 38838# Additional compiler flags for building library objects. 38839pic_flag=$lt_lt_prog_compiler_pic 38840 38841# How to pass a linker flag through the compiler. 38842wl=$lt_lt_prog_compiler_wl 38843 38844# Compiler flag to prevent dynamic linking. 38845link_static_flag=$lt_lt_prog_compiler_static 38846 38847# Does compiler simultaneously support -c and -o options? 38848compiler_c_o=$lt_lt_cv_prog_compiler_c_o 38849 38850# Whether or not to add -lc for building shared libraries. 38851build_libtool_need_lc=$archive_cmds_need_lc 38852 38853# Whether or not to disallow shared libs when runtime libs are static. 38854allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 38855 38856# Compiler flag to allow reflexive dlopens. 38857export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 38858 38859# Compiler flag to generate shared objects directly from archives. 38860whole_archive_flag_spec=$lt_whole_archive_flag_spec 38861 38862# Whether the compiler copes with passing no objects directly. 38863compiler_needs_object=$lt_compiler_needs_object 38864 38865# Create an old-style archive from a shared archive. 38866old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 38867 38868# Create a temporary old-style archive to link instead of a shared archive. 38869old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 38870 38871# Commands used to build a shared archive. 38872archive_cmds=$lt_archive_cmds 38873archive_expsym_cmds=$lt_archive_expsym_cmds 38874 38875# Commands used to build a loadable module if different from building 38876# a shared archive. 38877module_cmds=$lt_module_cmds 38878module_expsym_cmds=$lt_module_expsym_cmds 38879 38880# Whether we are building with GNU ld or not. 38881with_gnu_ld=$lt_with_gnu_ld 38882 38883# Flag that allows shared libraries with undefined symbols to be built. 38884allow_undefined_flag=$lt_allow_undefined_flag 38885 38886# Flag that enforces no undefined symbols. 38887no_undefined_flag=$lt_no_undefined_flag 38888 38889# Flag to hardcode \$libdir into a binary during linking. 38890# This must work even if \$libdir does not exist 38891hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 38892 38893# If ld is used when linking, flag to hardcode \$libdir into a binary 38894# during linking. This must work even if \$libdir does not exist. 38895hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 38896 38897# Whether we need a single "-rpath" flag with a separated argument. 38898hardcode_libdir_separator=$lt_hardcode_libdir_separator 38899 38900# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 38901# DIR into the resulting binary. 38902hardcode_direct=$hardcode_direct 38903 38904# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 38905# DIR into the resulting binary and the resulting library dependency is 38906# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 38907# library is relocated. 38908hardcode_direct_absolute=$hardcode_direct_absolute 38909 38910# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 38911# into the resulting binary. 38912hardcode_minus_L=$hardcode_minus_L 38913 38914# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 38915# into the resulting binary. 38916hardcode_shlibpath_var=$hardcode_shlibpath_var 38917 38918# Set to "yes" if building a shared library automatically hardcodes DIR 38919# into the library and all subsequent libraries and executables linked 38920# against it. 38921hardcode_automatic=$hardcode_automatic 38922 38923# Set to yes if linker adds runtime paths of dependent libraries 38924# to runtime path list. 38925inherit_rpath=$inherit_rpath 38926 38927# Whether libtool must link a program against all its dependency libraries. 38928link_all_deplibs=$link_all_deplibs 38929 38930# Set to "yes" if exported symbols are required. 38931always_export_symbols=$always_export_symbols 38932 38933# The commands to list exported symbols. 38934export_symbols_cmds=$lt_export_symbols_cmds 38935 38936# Symbols that should not be listed in the preloaded symbols. 38937exclude_expsyms=$lt_exclude_expsyms 38938 38939# Symbols that must always be exported. 38940include_expsyms=$lt_include_expsyms 38941 38942# Commands necessary for linking programs (against libraries) with templates. 38943prelink_cmds=$lt_prelink_cmds 38944 38945# Commands necessary for finishing linking programs. 38946postlink_cmds=$lt_postlink_cmds 38947 38948# Specify filename containing input files. 38949file_list_spec=$lt_file_list_spec 38950 38951# How to hardcode a shared library path into an executable. 38952hardcode_action=$hardcode_action 38953 38954# The directories searched by this compiler when creating a shared library. 38955compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 38956 38957# Dependencies to place before and after the objects being linked to 38958# create a shared library. 38959predep_objects=$lt_predep_objects 38960postdep_objects=$lt_postdep_objects 38961predeps=$lt_predeps 38962postdeps=$lt_postdeps 38963 38964# The library search path used internally by the compiler when linking 38965# a shared library. 38966compiler_lib_search_path=$lt_compiler_lib_search_path 38967 38968# ### END LIBTOOL CONFIG 38969 38970_LT_EOF 38971 38972 case $host_os in 38973 aix3*) 38974 cat <<\_LT_EOF >> "$cfgfile" 38975# AIX sometimes has problems with the GCC collect2 program. For some 38976# reason, if we set the COLLECT_NAMES environment variable, the problems 38977# vanish in a puff of smoke. 38978if test "X${COLLECT_NAMES+set}" != Xset; then 38979 COLLECT_NAMES= 38980 export COLLECT_NAMES 38981fi 38982_LT_EOF 38983 ;; 38984 esac 38985 38986 38987ltmain="$ac_aux_dir/ltmain.sh" 38988 38989 38990 # We use sed instead of cat because bash on DJGPP gets confused if 38991 # if finds mixed CR/LF and LF-only lines. Since sed operates in 38992 # text mode, it properly converts lines to CR/LF. This bash problem 38993 # is reportedly fixed, but why not run on old versions too? 38994 sed '$q' "$ltmain" >> "$cfgfile" \ 38995 || (rm -f "$cfgfile"; exit 1) 38996 38997 if test x"$xsi_shell" = xyes; then 38998 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ 38999func_dirname ()\ 39000{\ 39001\ case ${1} in\ 39002\ */*) func_dirname_result="${1%/*}${2}" ;;\ 39003\ * ) func_dirname_result="${3}" ;;\ 39004\ esac\ 39005} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ 39006 && mv -f "$cfgfile.tmp" "$cfgfile" \ 39007 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 39008test 0 -eq $? || _lt_function_replace_fail=: 39009 39010 39011 sed -e '/^func_basename ()$/,/^} # func_basename /c\ 39012func_basename ()\ 39013{\ 39014\ func_basename_result="${1##*/}"\ 39015} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ 39016 && mv -f "$cfgfile.tmp" "$cfgfile" \ 39017 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 39018test 0 -eq $? || _lt_function_replace_fail=: 39019 39020 39021 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ 39022func_dirname_and_basename ()\ 39023{\ 39024\ case ${1} in\ 39025\ */*) func_dirname_result="${1%/*}${2}" ;;\ 39026\ * ) func_dirname_result="${3}" ;;\ 39027\ esac\ 39028\ func_basename_result="${1##*/}"\ 39029} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ 39030 && mv -f "$cfgfile.tmp" "$cfgfile" \ 39031 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 39032test 0 -eq $? || _lt_function_replace_fail=: 39033 39034 39035 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ 39036func_stripname ()\ 39037{\ 39038\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ 39039\ # positional parameters, so assign one to ordinary parameter first.\ 39040\ func_stripname_result=${3}\ 39041\ func_stripname_result=${func_stripname_result#"${1}"}\ 39042\ func_stripname_result=${func_stripname_result%"${2}"}\ 39043} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ 39044 && mv -f "$cfgfile.tmp" "$cfgfile" \ 39045 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 39046test 0 -eq $? || _lt_function_replace_fail=: 39047 39048 39049 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ 39050func_split_long_opt ()\ 39051{\ 39052\ func_split_long_opt_name=${1%%=*}\ 39053\ func_split_long_opt_arg=${1#*=}\ 39054} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ 39055 && mv -f "$cfgfile.tmp" "$cfgfile" \ 39056 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 39057test 0 -eq $? || _lt_function_replace_fail=: 39058 39059 39060 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ 39061func_split_short_opt ()\ 39062{\ 39063\ func_split_short_opt_arg=${1#??}\ 39064\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ 39065} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ 39066 && mv -f "$cfgfile.tmp" "$cfgfile" \ 39067 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 39068test 0 -eq $? || _lt_function_replace_fail=: 39069 39070 39071 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ 39072func_lo2o ()\ 39073{\ 39074\ case ${1} in\ 39075\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ 39076\ *) func_lo2o_result=${1} ;;\ 39077\ esac\ 39078} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ 39079 && mv -f "$cfgfile.tmp" "$cfgfile" \ 39080 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 39081test 0 -eq $? || _lt_function_replace_fail=: 39082 39083 39084 sed -e '/^func_xform ()$/,/^} # func_xform /c\ 39085func_xform ()\ 39086{\ 39087 func_xform_result=${1%.*}.lo\ 39088} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ 39089 && mv -f "$cfgfile.tmp" "$cfgfile" \ 39090 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 39091test 0 -eq $? || _lt_function_replace_fail=: 39092 39093 39094 sed -e '/^func_arith ()$/,/^} # func_arith /c\ 39095func_arith ()\ 39096{\ 39097 func_arith_result=$(( $* ))\ 39098} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ 39099 && mv -f "$cfgfile.tmp" "$cfgfile" \ 39100 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 39101test 0 -eq $? || _lt_function_replace_fail=: 39102 39103 39104 sed -e '/^func_len ()$/,/^} # func_len /c\ 39105func_len ()\ 39106{\ 39107 func_len_result=${#1}\ 39108} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ 39109 && mv -f "$cfgfile.tmp" "$cfgfile" \ 39110 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 39111test 0 -eq $? || _lt_function_replace_fail=: 39112 39113fi 39114 39115if test x"$lt_shell_append" = xyes; then 39116 sed -e '/^func_append ()$/,/^} # func_append /c\ 39117func_append ()\ 39118{\ 39119 eval "${1}+=\\${2}"\ 39120} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ 39121 && mv -f "$cfgfile.tmp" "$cfgfile" \ 39122 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 39123test 0 -eq $? || _lt_function_replace_fail=: 39124 39125 39126 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ 39127func_append_quoted ()\ 39128{\ 39129\ func_quote_for_eval "${2}"\ 39130\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ 39131} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ 39132 && mv -f "$cfgfile.tmp" "$cfgfile" \ 39133 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 39134test 0 -eq $? || _lt_function_replace_fail=: 39135 39136 39137 # Save a `func_append' function call where possible by direct use of '+=' 39138 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ 39139 && mv -f "$cfgfile.tmp" "$cfgfile" \ 39140 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 39141 test 0 -eq $? || _lt_function_replace_fail=: 39142else 39143 # Save a `func_append' function call even when '+=' is not available 39144 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ 39145 && mv -f "$cfgfile.tmp" "$cfgfile" \ 39146 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 39147 test 0 -eq $? || _lt_function_replace_fail=: 39148fi 39149 39150if test x"$_lt_function_replace_fail" = x":"; then 39151 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 39152$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} 39153fi 39154 39155 39156 mv -f "$cfgfile" "$ofile" || 39157 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 39158 chmod +x "$ofile" 39159 39160 39161 cat <<_LT_EOF >> "$ofile" 39162 39163# ### BEGIN LIBTOOL TAG CONFIG: CXX 39164 39165# The linker used to build libraries. 39166LD=$lt_LD_CXX 39167 39168# How to create reloadable object files. 39169reload_flag=$lt_reload_flag_CXX 39170reload_cmds=$lt_reload_cmds_CXX 39171 39172# Commands used to build an old-style archive. 39173old_archive_cmds=$lt_old_archive_cmds_CXX 39174 39175# A language specific compiler. 39176CC=$lt_compiler_CXX 39177 39178# Is the compiler the GNU compiler? 39179with_gcc=$GCC_CXX 39180 39181# Compiler flag to turn off builtin functions. 39182no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 39183 39184# Additional compiler flags for building library objects. 39185pic_flag=$lt_lt_prog_compiler_pic_CXX 39186 39187# How to pass a linker flag through the compiler. 39188wl=$lt_lt_prog_compiler_wl_CXX 39189 39190# Compiler flag to prevent dynamic linking. 39191link_static_flag=$lt_lt_prog_compiler_static_CXX 39192 39193# Does compiler simultaneously support -c and -o options? 39194compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 39195 39196# Whether or not to add -lc for building shared libraries. 39197build_libtool_need_lc=$archive_cmds_need_lc_CXX 39198 39199# Whether or not to disallow shared libs when runtime libs are static. 39200allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 39201 39202# Compiler flag to allow reflexive dlopens. 39203export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 39204 39205# Compiler flag to generate shared objects directly from archives. 39206whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 39207 39208# Whether the compiler copes with passing no objects directly. 39209compiler_needs_object=$lt_compiler_needs_object_CXX 39210 39211# Create an old-style archive from a shared archive. 39212old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 39213 39214# Create a temporary old-style archive to link instead of a shared archive. 39215old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 39216 39217# Commands used to build a shared archive. 39218archive_cmds=$lt_archive_cmds_CXX 39219archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 39220 39221# Commands used to build a loadable module if different from building 39222# a shared archive. 39223module_cmds=$lt_module_cmds_CXX 39224module_expsym_cmds=$lt_module_expsym_cmds_CXX 39225 39226# Whether we are building with GNU ld or not. 39227with_gnu_ld=$lt_with_gnu_ld_CXX 39228 39229# Flag that allows shared libraries with undefined symbols to be built. 39230allow_undefined_flag=$lt_allow_undefined_flag_CXX 39231 39232# Flag that enforces no undefined symbols. 39233no_undefined_flag=$lt_no_undefined_flag_CXX 39234 39235# Flag to hardcode \$libdir into a binary during linking. 39236# This must work even if \$libdir does not exist 39237hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 39238 39239# If ld is used when linking, flag to hardcode \$libdir into a binary 39240# during linking. This must work even if \$libdir does not exist. 39241hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 39242 39243# Whether we need a single "-rpath" flag with a separated argument. 39244hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 39245 39246# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 39247# DIR into the resulting binary. 39248hardcode_direct=$hardcode_direct_CXX 39249 39250# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 39251# DIR into the resulting binary and the resulting library dependency is 39252# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 39253# library is relocated. 39254hardcode_direct_absolute=$hardcode_direct_absolute_CXX 39255 39256# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 39257# into the resulting binary. 39258hardcode_minus_L=$hardcode_minus_L_CXX 39259 39260# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 39261# into the resulting binary. 39262hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 39263 39264# Set to "yes" if building a shared library automatically hardcodes DIR 39265# into the library and all subsequent libraries and executables linked 39266# against it. 39267hardcode_automatic=$hardcode_automatic_CXX 39268 39269# Set to yes if linker adds runtime paths of dependent libraries 39270# to runtime path list. 39271inherit_rpath=$inherit_rpath_CXX 39272 39273# Whether libtool must link a program against all its dependency libraries. 39274link_all_deplibs=$link_all_deplibs_CXX 39275 39276# Set to "yes" if exported symbols are required. 39277always_export_symbols=$always_export_symbols_CXX 39278 39279# The commands to list exported symbols. 39280export_symbols_cmds=$lt_export_symbols_cmds_CXX 39281 39282# Symbols that should not be listed in the preloaded symbols. 39283exclude_expsyms=$lt_exclude_expsyms_CXX 39284 39285# Symbols that must always be exported. 39286include_expsyms=$lt_include_expsyms_CXX 39287 39288# Commands necessary for linking programs (against libraries) with templates. 39289prelink_cmds=$lt_prelink_cmds_CXX 39290 39291# Commands necessary for finishing linking programs. 39292postlink_cmds=$lt_postlink_cmds_CXX 39293 39294# Specify filename containing input files. 39295file_list_spec=$lt_file_list_spec_CXX 39296 39297# How to hardcode a shared library path into an executable. 39298hardcode_action=$hardcode_action_CXX 39299 39300# The directories searched by this compiler when creating a shared library. 39301compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX 39302 39303# Dependencies to place before and after the objects being linked to 39304# create a shared library. 39305predep_objects=$lt_predep_objects_CXX 39306postdep_objects=$lt_postdep_objects_CXX 39307predeps=$lt_predeps_CXX 39308postdeps=$lt_postdeps_CXX 39309 39310# The library search path used internally by the compiler when linking 39311# a shared library. 39312compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 39313 39314# ### END LIBTOOL TAG CONFIG: CXX 39315_LT_EOF 39316 39317 ;; 39318 "ntpd/complete.conf":F) sed -e '/^rlimit$/d' < ntpd/complete.conf > ntpd/complete.conf.new && mv ntpd/complete.conf.new ntpd/complete.conf ;; 39319 "ntpdc/nl.pl":F) chmod +x ntpdc/nl.pl ;; 39320 "scripts/build/mkver":F) chmod +x scripts/build/mkver ;; 39321 "scripts/calc_tickadj/calc_tickadj":F) chmod +x scripts/calc_tickadj/calc_tickadj ;; 39322 "scripts/ntp-wait/ntp-wait":F) chmod +x scripts/ntp-wait/ntp-wait ;; 39323 "scripts/ntpsweep/ntpsweep":F) chmod +x scripts/ntpsweep/ntpsweep ;; 39324 "scripts/ntptrace/ntptrace":F) chmod +x scripts/ntptrace/ntptrace ;; 39325 "scripts/ntpver":F) chmod +x scripts/ntpver ;; 39326 "scripts/plot_summary":F) chmod +x scripts/plot_summary ;; 39327 "scripts/summary":F) chmod +x scripts/summary ;; 39328 39329 esac 39330done # for ac_tag 39331 39332 39333as_fn_exit 0 39334_ACEOF 39335ac_clean_files=$ac_clean_files_save 39336 39337test $ac_write_fail = 0 || 39338 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 39339 39340 39341# configure is writing to config.log, and then calls config.status. 39342# config.status does its own redirection, appending to config.log. 39343# Unfortunately, on DOS this fails, as config.log is still kept open 39344# by configure, so config.status won't be able to write to it; its 39345# output is simply discarded. So we exec the FD to /dev/null, 39346# effectively closing config.log, so it can be properly (re)opened and 39347# appended to by config.status. When coming back to configure, we 39348# need to make the FD available again. 39349if test "$no_create" != yes; then 39350 ac_cs_success=: 39351 ac_config_status_args= 39352 test "$silent" = yes && 39353 ac_config_status_args="$ac_config_status_args --quiet" 39354 exec 5>/dev/null 39355 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 39356 exec 5>>config.log 39357 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 39358 # would make configure fail if this is the last instruction. 39359 $ac_cs_success || as_fn_exit 1 39360fi 39361 39362# 39363# CONFIG_SUBDIRS section. 39364# 39365if test "$no_recursion" != yes; then 39366 39367 # Remove --cache-file, --srcdir, and --disable-option-checking arguments 39368 # so they do not pile up. 39369 ac_sub_configure_args= 39370 ac_prev= 39371 eval "set x $ac_configure_args" 39372 shift 39373 for ac_arg 39374 do 39375 if test -n "$ac_prev"; then 39376 ac_prev= 39377 continue 39378 fi 39379 case $ac_arg in 39380 -cache-file | --cache-file | --cache-fil | --cache-fi \ 39381 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 39382 ac_prev=cache_file ;; 39383 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 39384 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ 39385 | --c=*) 39386 ;; 39387 --config-cache | -C) 39388 ;; 39389 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 39390 ac_prev=srcdir ;; 39391 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 39392 ;; 39393 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 39394 ac_prev=prefix ;; 39395 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 39396 ;; 39397 --disable-option-checking) 39398 ;; 39399 *) 39400 case $ac_arg in 39401 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 39402 esac 39403 as_fn_append ac_sub_configure_args " '$ac_arg'" ;; 39404 esac 39405 done 39406 39407 # Always prepend --prefix to ensure using the same prefix 39408 # in subdir configurations. 39409 ac_arg="--prefix=$prefix" 39410 case $ac_arg in 39411 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 39412 esac 39413 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args" 39414 39415 # Pass --silent 39416 if test "$silent" = yes; then 39417 ac_sub_configure_args="--silent $ac_sub_configure_args" 39418 fi 39419 39420 # Always prepend --disable-option-checking to silence warnings, since 39421 # different subdirs can have different --enable and --with options. 39422 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args" 39423 39424 ac_popdir=`pwd` 39425 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue 39426 39427 # Do not complain, so a configure script can configure whichever 39428 # parts of a large source tree are present. 39429 test -d "$srcdir/$ac_dir" || continue 39430 39431 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" 39432 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5 39433 $as_echo "$ac_msg" >&6 39434 as_dir="$ac_dir"; as_fn_mkdir_p 39435 ac_builddir=. 39436 39437case "$ac_dir" in 39438.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 39439*) 39440 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 39441 # A ".." for each directory in $ac_dir_suffix. 39442 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 39443 case $ac_top_builddir_sub in 39444 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 39445 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 39446 esac ;; 39447esac 39448ac_abs_top_builddir=$ac_pwd 39449ac_abs_builddir=$ac_pwd$ac_dir_suffix 39450# for backward compatibility: 39451ac_top_builddir=$ac_top_build_prefix 39452 39453case $srcdir in 39454 .) # We are building in place. 39455 ac_srcdir=. 39456 ac_top_srcdir=$ac_top_builddir_sub 39457 ac_abs_top_srcdir=$ac_pwd ;; 39458 [\\/]* | ?:[\\/]* ) # Absolute name. 39459 ac_srcdir=$srcdir$ac_dir_suffix; 39460 ac_top_srcdir=$srcdir 39461 ac_abs_top_srcdir=$srcdir ;; 39462 *) # Relative name. 39463 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 39464 ac_top_srcdir=$ac_top_build_prefix$srcdir 39465 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 39466esac 39467ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 39468 39469 39470 cd "$ac_dir" 39471 39472 # Check for guested configure; otherwise get Cygnus style configure. 39473 if test -f "$ac_srcdir/configure.gnu"; then 39474 ac_sub_configure=$ac_srcdir/configure.gnu 39475 elif test -f "$ac_srcdir/configure"; then 39476 ac_sub_configure=$ac_srcdir/configure 39477 elif test -f "$ac_srcdir/configure.in"; then 39478 # This should be Cygnus configure. 39479 ac_sub_configure=$ac_aux_dir/configure 39480 else 39481 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5 39482$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} 39483 ac_sub_configure= 39484 fi 39485 39486 # The recursion is here. 39487 if test -n "$ac_sub_configure"; then 39488 # Make the cache file name correct relative to the subdirectory. 39489 case $cache_file in 39490 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; 39491 *) # Relative name. 39492 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; 39493 esac 39494 39495 { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 39496$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} 39497 # The eval makes quoting arguments work. 39498 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ 39499 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || 39500 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5 39501 fi 39502 39503 cd "$ac_popdir" 39504 done 39505fi 39506if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 39507 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 39508$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 39509fi 39510 39511