1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for sntp 4.2.8p5. 4# 5# Report bugs to <http://bugs.ntp.org./>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 9# 10# 11# This configure script is free software; the Free Software Foundation 12# gives unlimited permission to copy, distribute and modify it. 13## -------------------- ## 14## M4sh Initialization. ## 15## -------------------- ## 16 17# Be more Bourne compatible 18DUALCASE=1; export DUALCASE # for MKS sh 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32esac 33fi 34 35 36as_nl=' 37' 38export as_nl 39# Printing a long string crashes Solaris 7 /usr/bin/printf. 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43# Prefer a ksh shell builtin over an external printf program on Solaris, 44# but without wasting forks for bash or zsh. 45if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83 84# IFS 85# We need space, tab and new line, in precisely that order. Quoting is 86# there to prevent editors from complaining about space-tab. 87# (If _AS_PATH_WALK were called with IFS unset, it would disable word 88# splitting by setting IFS to empty value.) 89IFS=" "" $as_nl" 90 91# Find who we are. Look in the path if we contain no directory separator. 92as_myself= 93case $0 in #(( 94 *[\\/]* ) as_myself=$0 ;; 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96for as_dir in $PATH 97do 98 IFS=$as_save_IFS 99 test -z "$as_dir" && as_dir=. 100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 106# We did not find ourselves, most probably we were run as `sh COMMAND' 107# in which case we are not to be found in the path. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116# Unset variables that we do not need and which cause bugs (e.g. in 117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 118# suppresses any "Segmentation fault" message there. '((' could 119# trigger a bug in pdksh 5.2.14. 120for as_var in BASH_ENV ENV MAIL MAILPATH 121do eval test x\${$as_var+set} = xset \ 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123done 124PS1='$ ' 125PS2='> ' 126PS4='+ ' 127 128# NLS nuisances. 129LC_ALL=C 130export LC_ALL 131LANGUAGE=C 132export LANGUAGE 133 134# CDPATH. 135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136 137# Use a proper internal environment variable to ensure we don't fall 138 # into an infinite loop, continuously re-executing ourselves. 139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 140 _as_can_reexec=no; export _as_can_reexec; 141 # We cannot yet assume a decent shell, so we have to provide a 142# neutralization value for shells without unset; and this also 143# works around shells that cannot unset nonexistent variables. 144# Preserve -v and -x to the replacement shell. 145BASH_ENV=/dev/null 146ENV=/dev/null 147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 148case $- in # (((( 149 *v*x* | *x*v* ) as_opts=-vx ;; 150 *v* ) as_opts=-v ;; 151 *x* ) as_opts=-x ;; 152 * ) as_opts= ;; 153esac 154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 155# Admittedly, this is quite paranoid, since all the known shells bail 156# out after a failed `exec'. 157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 158as_fn_exit 255 159 fi 160 # We don't want this to propagate to other subprocesses. 161 { _as_can_reexec=; unset _as_can_reexec;} 162if test "x$CONFIG_SHELL" = x; then 163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 164 emulate sh 165 NULLCMD=: 166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 167 # is contrary to our usage. Disable this feature. 168 alias -g '\${1+\"\$@\"}'='\"\$@\"' 169 setopt NO_GLOB_SUBST 170else 171 case \`(set -o) 2>/dev/null\` in #( 172 *posix*) : 173 set -o posix ;; #( 174 *) : 175 ;; 176esac 177fi 178" 179 as_required="as_fn_return () { (exit \$1); } 180as_fn_success () { as_fn_return 0; } 181as_fn_failure () { as_fn_return 1; } 182as_fn_ret_success () { return 0; } 183as_fn_ret_failure () { return 1; } 184 185exitcode=0 186as_fn_success || { exitcode=1; echo as_fn_success failed.; } 187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 191 192else 193 exitcode=1; echo positional parameters were not saved. 194fi 195test x\$exitcode = x0 || exit 1 196test -x / || exit 1" 197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 201test \$(( 1 + 1 )) = 2 || exit 1 202 203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 207 PATH=/empty FPATH=/empty; export PATH FPATH 208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" 210 if (eval "$as_required") 2>/dev/null; then : 211 as_have_required=yes 212else 213 as_have_required=no 214fi 215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 216 217else 218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 219as_found=false 220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 221do 222 IFS=$as_save_IFS 223 test -z "$as_dir" && as_dir=. 224 as_found=: 225 case $as_dir in #( 226 /*) 227 for as_base in sh bash ksh sh5; do 228 # Try only shells that exist, to save several forks. 229 as_shell=$as_dir/$as_base 230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 CONFIG_SHELL=$as_shell as_have_required=yes 233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 234 break 2 235fi 236fi 237 done;; 238 esac 239 as_found=false 240done 241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 243 CONFIG_SHELL=$SHELL as_have_required=yes 244fi; } 245IFS=$as_save_IFS 246 247 248 if test "x$CONFIG_SHELL" != x; then : 249 export CONFIG_SHELL 250 # We cannot yet assume a decent shell, so we have to provide a 251# neutralization value for shells without unset; and this also 252# works around shells that cannot unset nonexistent variables. 253# Preserve -v and -x to the replacement shell. 254BASH_ENV=/dev/null 255ENV=/dev/null 256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 257case $- in # (((( 258 *v*x* | *x*v* ) as_opts=-vx ;; 259 *v* ) as_opts=-v ;; 260 *x* ) as_opts=-x ;; 261 * ) as_opts= ;; 262esac 263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 264# Admittedly, this is quite paranoid, since all the known shells bail 265# out after a failed `exec'. 266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 267exit 255 268fi 269 270 if test x$as_have_required = xno; then : 271 $as_echo "$0: This script requires a shell more modern than all" 272 $as_echo "$0: the shells that I found on your system." 273 if test x${ZSH_VERSION+set} = xset ; then 274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 275 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 276 else 277 $as_echo "$0: Please tell bug-autoconf@gnu.org and 278$0: http://bugs.ntp.org./ about your system, including any 279$0: error possibly output before this message. Then install 280$0: a modern shell, or manually run the script under such a 281$0: shell if you do have one." 282 fi 283 exit 1 284fi 285fi 286fi 287SHELL=${CONFIG_SHELL-/bin/sh} 288export SHELL 289# Unset more variables known to interfere with behavior of common tools. 290CLICOLOR_FORCE= GREP_OPTIONS= 291unset CLICOLOR_FORCE GREP_OPTIONS 292 293## --------------------- ## 294## M4sh Shell Functions. ## 295## --------------------- ## 296# as_fn_unset VAR 297# --------------- 298# Portably unset VAR. 299as_fn_unset () 300{ 301 { eval $1=; unset $1;} 302} 303as_unset=as_fn_unset 304 305# as_fn_set_status STATUS 306# ----------------------- 307# Set $? to STATUS, without forking. 308as_fn_set_status () 309{ 310 return $1 311} # as_fn_set_status 312 313# as_fn_exit STATUS 314# ----------------- 315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 316as_fn_exit () 317{ 318 set +e 319 as_fn_set_status $1 320 exit $1 321} # as_fn_exit 322 323# as_fn_mkdir_p 324# ------------- 325# Create "$as_dir" as a directory, including parents if necessary. 326as_fn_mkdir_p () 327{ 328 329 case $as_dir in #( 330 -*) as_dir=./$as_dir;; 331 esac 332 test -d "$as_dir" || eval $as_mkdir_p || { 333 as_dirs= 334 while :; do 335 case $as_dir in #( 336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 337 *) as_qdir=$as_dir;; 338 esac 339 as_dirs="'$as_qdir' $as_dirs" 340 as_dir=`$as_dirname -- "$as_dir" || 341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 342 X"$as_dir" : 'X\(//\)[^/]' \| \ 343 X"$as_dir" : 'X\(//\)$' \| \ 344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 345$as_echo X"$as_dir" | 346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 347 s//\1/ 348 q 349 } 350 /^X\(\/\/\)[^/].*/{ 351 s//\1/ 352 q 353 } 354 /^X\(\/\/\)$/{ 355 s//\1/ 356 q 357 } 358 /^X\(\/\).*/{ 359 s//\1/ 360 q 361 } 362 s/.*/./; q'` 363 test -d "$as_dir" && break 364 done 365 test -z "$as_dirs" || eval "mkdir $as_dirs" 366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 367 368 369} # as_fn_mkdir_p 370 371# as_fn_executable_p FILE 372# ----------------------- 373# Test if FILE is an executable regular file. 374as_fn_executable_p () 375{ 376 test -f "$1" && test -x "$1" 377} # as_fn_executable_p 378# as_fn_append VAR VALUE 379# ---------------------- 380# Append the text in VALUE to the end of the definition contained in VAR. Take 381# advantage of any shell optimizations that allow amortized linear growth over 382# repeated appends, instead of the typical quadratic growth present in naive 383# implementations. 384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 385 eval 'as_fn_append () 386 { 387 eval $1+=\$2 388 }' 389else 390 as_fn_append () 391 { 392 eval $1=\$$1\$2 393 } 394fi # as_fn_append 395 396# as_fn_arith ARG... 397# ------------------ 398# Perform arithmetic evaluation on the ARGs, and store the result in the 399# global $as_val. Take advantage of shells that can avoid forks. The arguments 400# must be portable across $(()) and expr. 401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 402 eval 'as_fn_arith () 403 { 404 as_val=$(( $* )) 405 }' 406else 407 as_fn_arith () 408 { 409 as_val=`expr "$@" || test $? -eq 1` 410 } 411fi # as_fn_arith 412 413 414# as_fn_error STATUS ERROR [LINENO LOG_FD] 415# ---------------------------------------- 416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 418# script with STATUS, using 1 if that was 0. 419as_fn_error () 420{ 421 as_status=$1; test $as_status -eq 0 && as_status=1 422 if test "$4"; then 423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 425 fi 426 $as_echo "$as_me: error: $2" >&2 427 as_fn_exit $as_status 428} # as_fn_error 429 430if expr a : '\(a\)' >/dev/null 2>&1 && 431 test "X`expr 00001 : '.*\(...\)'`" = X001; then 432 as_expr=expr 433else 434 as_expr=false 435fi 436 437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 438 as_basename=basename 439else 440 as_basename=false 441fi 442 443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 444 as_dirname=dirname 445else 446 as_dirname=false 447fi 448 449as_me=`$as_basename -- "$0" || 450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 451 X"$0" : 'X\(//\)$' \| \ 452 X"$0" : 'X\(/\)' \| . 2>/dev/null || 453$as_echo X/"$0" | 454 sed '/^.*\/\([^/][^/]*\)\/*$/{ 455 s//\1/ 456 q 457 } 458 /^X\/\(\/\/\)$/{ 459 s//\1/ 460 q 461 } 462 /^X\/\(\/\).*/{ 463 s//\1/ 464 q 465 } 466 s/.*/./; q'` 467 468# Avoid depending upon Character Ranges. 469as_cr_letters='abcdefghijklmnopqrstuvwxyz' 470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 471as_cr_Letters=$as_cr_letters$as_cr_LETTERS 472as_cr_digits='0123456789' 473as_cr_alnum=$as_cr_Letters$as_cr_digits 474 475 476 as_lineno_1=$LINENO as_lineno_1a=$LINENO 477 as_lineno_2=$LINENO as_lineno_2a=$LINENO 478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 481 sed -n ' 482 p 483 /[$]LINENO/= 484 ' <$as_myself | 485 sed ' 486 s/[$]LINENO.*/&-/ 487 t lineno 488 b 489 :lineno 490 N 491 :loop 492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 493 t loop 494 s/-\n.*// 495 ' >$as_me.lineno && 496 chmod +x "$as_me.lineno" || 497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 498 499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 500 # already done that, so ensure we don't try to do so again and fall 501 # in an infinite loop. This has already happened in practice. 502 _as_can_reexec=no; export _as_can_reexec 503 # Don't try to exec as it changes $[0], causing all sort of problems 504 # (the dirname of $[0] is not the place where we might find the 505 # original and so on. Autoconf is especially sensitive to this). 506 . "./$as_me.lineno" 507 # Exit status is that of the last command. 508 exit 509} 510 511ECHO_C= ECHO_N= ECHO_T= 512case `echo -n x` in #((((( 513-n*) 514 case `echo 'xy\c'` in 515 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 516 xy) ECHO_C='\c';; 517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 518 ECHO_T=' ';; 519 esac;; 520*) 521 ECHO_N='-n';; 522esac 523 524rm -f conf$$ conf$$.exe conf$$.file 525if test -d conf$$.dir; then 526 rm -f conf$$.dir/conf$$.file 527else 528 rm -f conf$$.dir 529 mkdir conf$$.dir 2>/dev/null 530fi 531if (echo >conf$$.file) 2>/dev/null; then 532 if ln -s conf$$.file conf$$ 2>/dev/null; then 533 as_ln_s='ln -s' 534 # ... but there are two gotchas: 535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 537 # In both cases, we have to default to `cp -pR'. 538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 539 as_ln_s='cp -pR' 540 elif ln conf$$.file conf$$ 2>/dev/null; then 541 as_ln_s=ln 542 else 543 as_ln_s='cp -pR' 544 fi 545else 546 as_ln_s='cp -pR' 547fi 548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 549rmdir conf$$.dir 2>/dev/null 550 551if mkdir -p . 2>/dev/null; then 552 as_mkdir_p='mkdir -p "$as_dir"' 553else 554 test -d ./-p && rmdir ./-p 555 as_mkdir_p=false 556fi 557 558as_test_x='test -x' 559as_executable_p=as_fn_executable_p 560 561# Sed expression to map a string onto a valid CPP name. 562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 563 564# Sed expression to map a string onto a valid variable name. 565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 566 567SHELL=${CONFIG_SHELL-/bin/sh} 568 569 570test -n "$DJDIR" || exec 7<&0 </dev/null 571exec 6>&1 572 573# Name of the host. 574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 575# so uname gets run too. 576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 577 578# 579# Initializations. 580# 581ac_default_prefix=/usr/local 582ac_clean_files= 583ac_config_libobj_dir=. 584LIBOBJS= 585cross_compiling=no 586subdirs= 587MFLAGS= 588MAKEFLAGS= 589 590# Identity of this package. 591PACKAGE_NAME='sntp' 592PACKAGE_TARNAME='sntp' 593PACKAGE_VERSION='4.2.8p5' 594PACKAGE_STRING='sntp 4.2.8p5' 595PACKAGE_BUGREPORT='http://bugs.ntp.org./' 596PACKAGE_URL='http://www.ntp.org./' 597 598# Factoring default headers for most tests. 599ac_includes_default="\ 600#include <stdio.h> 601#ifdef HAVE_SYS_TYPES_H 602# include <sys/types.h> 603#endif 604#ifdef HAVE_SYS_STAT_H 605# include <sys/stat.h> 606#endif 607#ifdef STDC_HEADERS 608# include <stdlib.h> 609# include <stddef.h> 610#else 611# ifdef HAVE_STDLIB_H 612# include <stdlib.h> 613# endif 614#endif 615#ifdef HAVE_STRING_H 616# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 617# include <memory.h> 618# endif 619# include <string.h> 620#endif 621#ifdef HAVE_STRINGS_H 622# include <strings.h> 623#endif 624#ifdef HAVE_INTTYPES_H 625# include <inttypes.h> 626#endif 627#ifdef HAVE_STDINT_H 628# include <stdint.h> 629#endif 630#ifdef HAVE_UNISTD_H 631# include <unistd.h> 632#endif" 633 634ac_header_list= 635enable_option_checking=no 636ac_subst_vars='am__EXEEXT_FALSE 637am__EXEEXT_TRUE 638LTLIBOBJS 639GTEST_AVAILABLE_FALSE 640GTEST_AVAILABLE_TRUE 641GTEST_CPPFLAGS 642GTEST_CXXFLAGS 643GTEST_LIBS 644GTEST_LDFLAGS 645GTEST_CONFIG 646CXXCPP 647am__fastdepCXX_FALSE 648am__fastdepCXX_TRUE 649CXXDEPMODE 650ac_ct_CXX 651CXXFLAGS 652CXX 653UNITYBUILD_AVAILABLE_FALSE 654UNITYBUILD_AVAILABLE_TRUE 655PATH_RUBY 656VER_SUFFIX 657LIB_SYSLOG 658subdirs 659BUILD_LIBEVENT_FALSE 660BUILD_LIBEVENT_TRUE 661LDADD_LIBEVENT 662CPPFLAGS_LIBEVENT 663CFLAGS_LIBEVENT 664PKG_CONFIG 665NTP_FORCE_LIBEVENT_DIST 666LIBOPTS_DIR 667LIBOPTS_CFLAGS 668LIBOPTS_LDADD 669NEED_LIBOPTS_FALSE 670NEED_LIBOPTS_TRUE 671INSTALL_LIBOPTS_FALSE 672INSTALL_LIBOPTS_TRUE 673POSIX_SHELL 674GL_GENERATE_STDNORETURN_H_FALSE 675GL_GENERATE_STDNORETURN_H_TRUE 676STDNORETURN_H 677BUILD_SNTP_FALSE 678BUILD_SNTP_TRUE 679SNTP 680LIBTOOL_DEPS 681LT_SYS_LIBRARY_PATH 682OTOOL64 683OTOOL 684LIPO 685NMEDIT 686DSYMUTIL 687MANIFEST_TOOL 688RANLIB 689DLLTOOL 690OBJDUMP 691LN_S 692NM 693ac_ct_DUMPBIN 694DUMPBIN 695LIBTOOL 696LIBOBJS 697PTHREADS_FALSE 698PTHREADS_TRUE 699LIBISC_PTHREADS_NOTHREADS 700PTHREAD_LIBS 701LTHREAD_LIBS 702BUILD_THREAD 703HAVE_INLINE 704LDADD_LIBUTIL 705ALLOCA 706LIBM 707EDITLINE_LIBS 708LD 709FGREP 710SED 711LDADD_LIBNTP 712NTP_CROSSCOMPILE_FALSE 713NTP_CROSSCOMPILE_TRUE 714ac_ct_AR 715AR 716INSTALL_UPDATE_LEAP_FALSE 717INSTALL_UPDATE_LEAP_TRUE 718UPDATE_LEAP_NI 719UPDATE_LEAP_MS 720UPDATE_LEAP_DS 721UPDATE_LEAP_DL 722UPDATE_LEAP_DB 723TIMETRIM_NI 724TIMETRIM_MS 725TIMETRIM_DS 726TIMETRIM_DL 727TIMETRIM_DB 728TICKADJ_NI 729TICKADJ_MS 730TICKADJ_DS 731TICKADJ_DL 732TICKADJ_DB 733SNTP_NI 734SNTP_MS 735SNTP_DS 736SNTP_DL 737SNTP_DB 738NTP_WAIT_NI 739NTP_WAIT_MS 740NTP_WAIT_DS 741NTP_WAIT_DL 742NTP_WAIT_DB 743NTP_KEYGEN_NI 744NTP_KEYGEN_MS 745NTP_KEYGEN_DS 746NTP_KEYGEN_DL 747NTP_KEYGEN_DB 748NTPTRACE_NI 749NTPTRACE_MS 750NTPTRACE_DS 751NTPTRACE_DL 752NTPTRACE_DB 753NTPTIME_NI 754NTPTIME_MS 755NTPTIME_DS 756NTPTIME_DL 757NTPTIME_DB 758INSTALL_NTPSWEEP_FALSE 759INSTALL_NTPSWEEP_TRUE 760NTPSWEEP_NI 761NTPSWEEP_MS 762NTPSWEEP_DS 763NTPSWEEP_DL 764NTPSWEEP_DB 765NTPSNMPD_NI 766NTPSNMPD_MS 767NTPSNMPD_DS 768NTPSNMPD_DL 769NTPSNMPD_DB 770NTPQ_NI 771NTPQ_MS 772NTPQ_DS 773NTPQ_DL 774NTPQ_DB 775NTPD_NI 776NTPD_MS 777NTPD_DS 778NTPD_DL 779NTPD_DB 780NTPDSIM_NI 781NTPDSIM_MS 782NTPDSIM_DS 783NTPDSIM_DL 784NTPDSIM_DB 785NTPDC_NI 786NTPDC_MS 787NTPDC_DS 788NTPDC_DL 789NTPDC_DB 790NTPDATE_NI 791NTPDATE_MS 792NTPDATE_DS 793NTPDATE_DL 794NTPDATE_DB 795MANTAGFMT 796CALC_TICKADJ_NI 797CALC_TICKADJ_MS 798CALC_TICKADJ_DS 799CALC_TICKADJ_DL 800CALC_TICKADJ_DB 801WANT_CALC_TICKADJ_MS_FALSE 802WANT_CALC_TICKADJ_MS_TRUE 803LDFLAGS_NTP 804LDADD_NTP 805CPPFLAGS_NTP 806CFLAGS_NTP 807EGREP 808GREP 809CPP 810am__fastdepCC_FALSE 811am__fastdepCC_TRUE 812CCDEPMODE 813am__nodep 814AMDEPBACKSLASH 815AMDEP_FALSE 816AMDEP_TRUE 817am__quote 818am__include 819DEPDIR 820OBJEXT 821EXEEXT 822ac_ct_CC 823CPPFLAGS 824LDFLAGS 825CFLAGS 826CC 827host_os 828host_vendor 829host_cpu 830host 831build_os 832build_vendor 833build_cpu 834build 835AM_BACKSLASH 836AM_DEFAULT_VERBOSITY 837AM_DEFAULT_V 838AM_V 839am__untar 840am__tar 841AMTAR 842am__leading_dot 843SET_MAKE 844AWK 845mkdir_p 846MKDIR_P 847INSTALL_STRIP_PROGRAM 848STRIP 849install_sh 850MAKEINFO 851AUTOHEADER 852AUTOMAKE 853AUTOCONF 854ACLOCAL 855VERSION 856PACKAGE 857CYGPATH_W 858am__isrc 859INSTALL_DATA 860INSTALL_SCRIPT 861INSTALL_PROGRAM 862target_alias 863host_alias 864build_alias 865LIBS 866ECHO_T 867ECHO_N 868ECHO_C 869DEFS 870mandir 871localedir 872libdir 873psdir 874pdfdir 875dvidir 876htmldir 877infodir 878docdir 879oldincludedir 880includedir 881localstatedir 882sharedstatedir 883sysconfdir 884datadir 885datarootdir 886libexecdir 887sbindir 888bindir 889program_transform_name 890prefix 891exec_prefix 892PACKAGE_URL 893PACKAGE_BUGREPORT 894PACKAGE_STRING 895PACKAGE_VERSION 896PACKAGE_TARNAME 897PACKAGE_NAME 898PATH_SEPARATOR 899SHELL' 900ac_subst_files='' 901ac_user_opts=' 902enable_option_checking 903enable_silent_rules 904enable_dependency_tracking 905with_locfile 906with_gnu_ld 907with_lineeditlibs 908enable_debugging 909enable_thread_support 910with_threads 911with_yielding_select 912enable_c99_snprintf 913enable_clockctl 914enable_linuxcaps 915enable_solarisprivs 916enable_shared 917enable_static 918with_pic 919enable_fast_install 920with_aix_soname 921with_sysroot 922enable_libtool_lock 923with_sntp 924enable_nls 925enable_local_libopts 926enable_libopts_install 927with_autoopts_config 928with_regex_header 929with_libregex 930with_libregex_cflags 931with_libregex_libs 932enable_optional_args 933enable_local_libevent 934with_crypto 935with_openssl_libdir 936with_openssl_incdir 937with_rpath 938enable_ipv6 939with_kame 940enable_getifaddrs 941with_gtest 942' 943 ac_precious_vars='build_alias 944host_alias 945target_alias 946CC 947CFLAGS 948LDFLAGS 949LIBS 950CPPFLAGS 951CPP 952LT_SYS_LIBRARY_PATH 953CXX 954CXXFLAGS 955CCC 956CXXCPP' 957ac_subdirs_all='libevent' 958 959# Initialize some variables set by options. 960ac_init_help= 961ac_init_version=false 962ac_unrecognized_opts= 963ac_unrecognized_sep= 964# The variables have the same names as the options, with 965# dashes changed to underlines. 966cache_file=/dev/null 967exec_prefix=NONE 968no_create= 969no_recursion= 970prefix=NONE 971program_prefix=NONE 972program_suffix=NONE 973program_transform_name=s,x,x, 974silent= 975site= 976srcdir= 977verbose= 978x_includes=NONE 979x_libraries=NONE 980 981# Installation directory options. 982# These are left unexpanded so users can "make install exec_prefix=/foo" 983# and all the variables that are supposed to be based on exec_prefix 984# by default will actually change. 985# Use braces instead of parens because sh, perl, etc. also accept them. 986# (The list follows the same order as the GNU Coding Standards.) 987bindir='${exec_prefix}/bin' 988sbindir='${exec_prefix}/sbin' 989libexecdir='${exec_prefix}/libexec' 990datarootdir='${prefix}/share' 991datadir='${datarootdir}' 992sysconfdir='${prefix}/etc' 993sharedstatedir='${prefix}/com' 994localstatedir='${prefix}/var' 995includedir='${prefix}/include' 996oldincludedir='/usr/include' 997docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 998infodir='${datarootdir}/info' 999htmldir='${docdir}' 1000dvidir='${docdir}' 1001pdfdir='${docdir}' 1002psdir='${docdir}' 1003libdir='${exec_prefix}/lib' 1004localedir='${datarootdir}/locale' 1005mandir='${datarootdir}/man' 1006 1007ac_prev= 1008ac_dashdash= 1009for ac_option 1010do 1011 # If the previous option needs an argument, assign it. 1012 if test -n "$ac_prev"; then 1013 eval $ac_prev=\$ac_option 1014 ac_prev= 1015 continue 1016 fi 1017 1018 case $ac_option in 1019 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1020 *=) ac_optarg= ;; 1021 *) ac_optarg=yes ;; 1022 esac 1023 1024 # Accept the important Cygnus configure options, so we can diagnose typos. 1025 1026 case $ac_dashdash$ac_option in 1027 --) 1028 ac_dashdash=yes ;; 1029 1030 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1031 ac_prev=bindir ;; 1032 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1033 bindir=$ac_optarg ;; 1034 1035 -build | --build | --buil | --bui | --bu) 1036 ac_prev=build_alias ;; 1037 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1038 build_alias=$ac_optarg ;; 1039 1040 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1041 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1042 ac_prev=cache_file ;; 1043 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1044 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1045 cache_file=$ac_optarg ;; 1046 1047 --config-cache | -C) 1048 cache_file=config.cache ;; 1049 1050 -datadir | --datadir | --datadi | --datad) 1051 ac_prev=datadir ;; 1052 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1053 datadir=$ac_optarg ;; 1054 1055 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1056 | --dataroo | --dataro | --datar) 1057 ac_prev=datarootdir ;; 1058 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1059 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1060 datarootdir=$ac_optarg ;; 1061 1062 -disable-* | --disable-*) 1063 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1064 # Reject names that are not valid shell variable names. 1065 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1066 as_fn_error $? "invalid feature name: $ac_useropt" 1067 ac_useropt_orig=$ac_useropt 1068 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1069 case $ac_user_opts in 1070 *" 1071"enable_$ac_useropt" 1072"*) ;; 1073 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1074 ac_unrecognized_sep=', ';; 1075 esac 1076 eval enable_$ac_useropt=no ;; 1077 1078 -docdir | --docdir | --docdi | --doc | --do) 1079 ac_prev=docdir ;; 1080 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1081 docdir=$ac_optarg ;; 1082 1083 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1084 ac_prev=dvidir ;; 1085 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1086 dvidir=$ac_optarg ;; 1087 1088 -enable-* | --enable-*) 1089 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1090 # Reject names that are not valid shell variable names. 1091 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1092 as_fn_error $? "invalid feature name: $ac_useropt" 1093 ac_useropt_orig=$ac_useropt 1094 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1095 case $ac_user_opts in 1096 *" 1097"enable_$ac_useropt" 1098"*) ;; 1099 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1100 ac_unrecognized_sep=', ';; 1101 esac 1102 eval enable_$ac_useropt=\$ac_optarg ;; 1103 1104 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1105 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1106 | --exec | --exe | --ex) 1107 ac_prev=exec_prefix ;; 1108 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1109 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1110 | --exec=* | --exe=* | --ex=*) 1111 exec_prefix=$ac_optarg ;; 1112 1113 -gas | --gas | --ga | --g) 1114 # Obsolete; use --with-gas. 1115 with_gas=yes ;; 1116 1117 -help | --help | --hel | --he | -h) 1118 ac_init_help=long ;; 1119 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1120 ac_init_help=recursive ;; 1121 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1122 ac_init_help=short ;; 1123 1124 -host | --host | --hos | --ho) 1125 ac_prev=host_alias ;; 1126 -host=* | --host=* | --hos=* | --ho=*) 1127 host_alias=$ac_optarg ;; 1128 1129 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1130 ac_prev=htmldir ;; 1131 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1132 | --ht=*) 1133 htmldir=$ac_optarg ;; 1134 1135 -includedir | --includedir | --includedi | --included | --include \ 1136 | --includ | --inclu | --incl | --inc) 1137 ac_prev=includedir ;; 1138 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1139 | --includ=* | --inclu=* | --incl=* | --inc=*) 1140 includedir=$ac_optarg ;; 1141 1142 -infodir | --infodir | --infodi | --infod | --info | --inf) 1143 ac_prev=infodir ;; 1144 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1145 infodir=$ac_optarg ;; 1146 1147 -libdir | --libdir | --libdi | --libd) 1148 ac_prev=libdir ;; 1149 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1150 libdir=$ac_optarg ;; 1151 1152 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1153 | --libexe | --libex | --libe) 1154 ac_prev=libexecdir ;; 1155 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1156 | --libexe=* | --libex=* | --libe=*) 1157 libexecdir=$ac_optarg ;; 1158 1159 -localedir | --localedir | --localedi | --localed | --locale) 1160 ac_prev=localedir ;; 1161 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1162 localedir=$ac_optarg ;; 1163 1164 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1165 | --localstate | --localstat | --localsta | --localst | --locals) 1166 ac_prev=localstatedir ;; 1167 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1168 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1169 localstatedir=$ac_optarg ;; 1170 1171 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1172 ac_prev=mandir ;; 1173 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1174 mandir=$ac_optarg ;; 1175 1176 -nfp | --nfp | --nf) 1177 # Obsolete; use --without-fp. 1178 with_fp=no ;; 1179 1180 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1181 | --no-cr | --no-c | -n) 1182 no_create=yes ;; 1183 1184 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1185 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1186 no_recursion=yes ;; 1187 1188 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1189 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1190 | --oldin | --oldi | --old | --ol | --o) 1191 ac_prev=oldincludedir ;; 1192 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1193 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1194 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1195 oldincludedir=$ac_optarg ;; 1196 1197 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1198 ac_prev=prefix ;; 1199 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1200 prefix=$ac_optarg ;; 1201 1202 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1203 | --program-pre | --program-pr | --program-p) 1204 ac_prev=program_prefix ;; 1205 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1206 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1207 program_prefix=$ac_optarg ;; 1208 1209 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1210 | --program-suf | --program-su | --program-s) 1211 ac_prev=program_suffix ;; 1212 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1213 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1214 program_suffix=$ac_optarg ;; 1215 1216 -program-transform-name | --program-transform-name \ 1217 | --program-transform-nam | --program-transform-na \ 1218 | --program-transform-n | --program-transform- \ 1219 | --program-transform | --program-transfor \ 1220 | --program-transfo | --program-transf \ 1221 | --program-trans | --program-tran \ 1222 | --progr-tra | --program-tr | --program-t) 1223 ac_prev=program_transform_name ;; 1224 -program-transform-name=* | --program-transform-name=* \ 1225 | --program-transform-nam=* | --program-transform-na=* \ 1226 | --program-transform-n=* | --program-transform-=* \ 1227 | --program-transform=* | --program-transfor=* \ 1228 | --program-transfo=* | --program-transf=* \ 1229 | --program-trans=* | --program-tran=* \ 1230 | --progr-tra=* | --program-tr=* | --program-t=*) 1231 program_transform_name=$ac_optarg ;; 1232 1233 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1234 ac_prev=pdfdir ;; 1235 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1236 pdfdir=$ac_optarg ;; 1237 1238 -psdir | --psdir | --psdi | --psd | --ps) 1239 ac_prev=psdir ;; 1240 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1241 psdir=$ac_optarg ;; 1242 1243 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1244 | -silent | --silent | --silen | --sile | --sil) 1245 silent=yes ;; 1246 1247 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1248 ac_prev=sbindir ;; 1249 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1250 | --sbi=* | --sb=*) 1251 sbindir=$ac_optarg ;; 1252 1253 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1254 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1255 | --sharedst | --shareds | --shared | --share | --shar \ 1256 | --sha | --sh) 1257 ac_prev=sharedstatedir ;; 1258 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1259 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1260 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1261 | --sha=* | --sh=*) 1262 sharedstatedir=$ac_optarg ;; 1263 1264 -site | --site | --sit) 1265 ac_prev=site ;; 1266 -site=* | --site=* | --sit=*) 1267 site=$ac_optarg ;; 1268 1269 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1270 ac_prev=srcdir ;; 1271 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1272 srcdir=$ac_optarg ;; 1273 1274 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1275 | --syscon | --sysco | --sysc | --sys | --sy) 1276 ac_prev=sysconfdir ;; 1277 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1278 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1279 sysconfdir=$ac_optarg ;; 1280 1281 -target | --target | --targe | --targ | --tar | --ta | --t) 1282 ac_prev=target_alias ;; 1283 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1284 target_alias=$ac_optarg ;; 1285 1286 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1287 verbose=yes ;; 1288 1289 -version | --version | --versio | --versi | --vers | -V) 1290 ac_init_version=: ;; 1291 1292 -with-* | --with-*) 1293 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1294 # Reject names that are not valid shell variable names. 1295 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1296 as_fn_error $? "invalid package name: $ac_useropt" 1297 ac_useropt_orig=$ac_useropt 1298 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1299 case $ac_user_opts in 1300 *" 1301"with_$ac_useropt" 1302"*) ;; 1303 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1304 ac_unrecognized_sep=', ';; 1305 esac 1306 eval with_$ac_useropt=\$ac_optarg ;; 1307 1308 -without-* | --without-*) 1309 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1310 # Reject names that are not valid shell variable names. 1311 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1312 as_fn_error $? "invalid package name: $ac_useropt" 1313 ac_useropt_orig=$ac_useropt 1314 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1315 case $ac_user_opts in 1316 *" 1317"with_$ac_useropt" 1318"*) ;; 1319 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1320 ac_unrecognized_sep=', ';; 1321 esac 1322 eval with_$ac_useropt=no ;; 1323 1324 --x) 1325 # Obsolete; use --with-x. 1326 with_x=yes ;; 1327 1328 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1329 | --x-incl | --x-inc | --x-in | --x-i) 1330 ac_prev=x_includes ;; 1331 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1332 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1333 x_includes=$ac_optarg ;; 1334 1335 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1336 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1337 ac_prev=x_libraries ;; 1338 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1339 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1340 x_libraries=$ac_optarg ;; 1341 1342 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1343Try \`$0 --help' for more information" 1344 ;; 1345 1346 *=*) 1347 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1348 # Reject names that are not valid shell variable names. 1349 case $ac_envvar in #( 1350 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1351 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1352 esac 1353 eval $ac_envvar=\$ac_optarg 1354 export $ac_envvar ;; 1355 1356 *) 1357 # FIXME: should be removed in autoconf 3.0. 1358 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1359 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1360 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1361 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1362 ;; 1363 1364 esac 1365done 1366 1367if test -n "$ac_prev"; then 1368 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1369 as_fn_error $? "missing argument to $ac_option" 1370fi 1371 1372if test -n "$ac_unrecognized_opts"; then 1373 case $enable_option_checking in 1374 no) ;; 1375 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1376 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1377 esac 1378fi 1379 1380# Check all directory arguments for consistency. 1381for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1382 datadir sysconfdir sharedstatedir localstatedir includedir \ 1383 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1384 libdir localedir mandir 1385do 1386 eval ac_val=\$$ac_var 1387 # Remove trailing slashes. 1388 case $ac_val in 1389 */ ) 1390 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1391 eval $ac_var=\$ac_val;; 1392 esac 1393 # Be sure to have absolute directory names. 1394 case $ac_val in 1395 [\\/$]* | ?:[\\/]* ) continue;; 1396 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1397 esac 1398 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1399done 1400 1401# There might be people who depend on the old broken behavior: `$host' 1402# used to hold the argument of --host etc. 1403# FIXME: To remove some day. 1404build=$build_alias 1405host=$host_alias 1406target=$target_alias 1407 1408# FIXME: To remove some day. 1409if test "x$host_alias" != x; then 1410 if test "x$build_alias" = x; then 1411 cross_compiling=maybe 1412 elif test "x$build_alias" != "x$host_alias"; then 1413 cross_compiling=yes 1414 fi 1415fi 1416 1417ac_tool_prefix= 1418test -n "$host_alias" && ac_tool_prefix=$host_alias- 1419 1420test "$silent" = yes && exec 6>/dev/null 1421 1422 1423ac_pwd=`pwd` && test -n "$ac_pwd" && 1424ac_ls_di=`ls -di .` && 1425ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1426 as_fn_error $? "working directory cannot be determined" 1427test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1428 as_fn_error $? "pwd does not report name of working directory" 1429 1430 1431# Find the source files, if location was not specified. 1432if test -z "$srcdir"; then 1433 ac_srcdir_defaulted=yes 1434 # Try the directory containing this script, then the parent directory. 1435 ac_confdir=`$as_dirname -- "$as_myself" || 1436$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1437 X"$as_myself" : 'X\(//\)[^/]' \| \ 1438 X"$as_myself" : 'X\(//\)$' \| \ 1439 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1440$as_echo X"$as_myself" | 1441 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1442 s//\1/ 1443 q 1444 } 1445 /^X\(\/\/\)[^/].*/{ 1446 s//\1/ 1447 q 1448 } 1449 /^X\(\/\/\)$/{ 1450 s//\1/ 1451 q 1452 } 1453 /^X\(\/\).*/{ 1454 s//\1/ 1455 q 1456 } 1457 s/.*/./; q'` 1458 srcdir=$ac_confdir 1459 if test ! -r "$srcdir/$ac_unique_file"; then 1460 srcdir=.. 1461 fi 1462else 1463 ac_srcdir_defaulted=no 1464fi 1465if test ! -r "$srcdir/$ac_unique_file"; then 1466 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1467 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1468fi 1469ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1470ac_abs_confdir=`( 1471 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1472 pwd)` 1473# When building in place, set srcdir=. 1474if test "$ac_abs_confdir" = "$ac_pwd"; then 1475 srcdir=. 1476fi 1477# Remove unnecessary trailing slashes from srcdir. 1478# Double slashes in file names in object file debugging info 1479# mess up M-x gdb in Emacs. 1480case $srcdir in 1481*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1482esac 1483for ac_var in $ac_precious_vars; do 1484 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1485 eval ac_env_${ac_var}_value=\$${ac_var} 1486 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1487 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1488done 1489 1490# 1491# Report the --help message. 1492# 1493if test "$ac_init_help" = "long"; then 1494 # Omit some internal or obsolete options to make the list less imposing. 1495 # This message is too long to be a string in the A/UX 3.1 sh. 1496 cat <<_ACEOF 1497\`configure' configures sntp 4.2.8p5 to adapt to many kinds of systems. 1498 1499Usage: $0 [OPTION]... [VAR=VALUE]... 1500 1501To assign environment variables (e.g., CC, CFLAGS...), specify them as 1502VAR=VALUE. See below for descriptions of some of the useful variables. 1503 1504Defaults for the options are specified in brackets. 1505 1506Configuration: 1507 -h, --help display this help and exit 1508 --help=short display options specific to this package 1509 --help=recursive display the short help of all the included packages 1510 -V, --version display version information and exit 1511 -q, --quiet, --silent do not print \`checking ...' messages 1512 --cache-file=FILE cache test results in FILE [disabled] 1513 -C, --config-cache alias for \`--cache-file=config.cache' 1514 -n, --no-create do not create output files 1515 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1516 1517Installation directories: 1518 --prefix=PREFIX install architecture-independent files in PREFIX 1519 [$ac_default_prefix] 1520 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1521 [PREFIX] 1522 1523By default, \`make install' will install all the files in 1524\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1525an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1526for instance \`--prefix=\$HOME'. 1527 1528For better control, use the options below. 1529 1530Fine tuning of the installation directories: 1531 --bindir=DIR user executables [EPREFIX/bin] 1532 --sbindir=DIR system admin executables [EPREFIX/sbin] 1533 --libexecdir=DIR program executables [EPREFIX/libexec] 1534 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1535 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1536 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1537 --libdir=DIR object code libraries [EPREFIX/lib] 1538 --includedir=DIR C header files [PREFIX/include] 1539 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1540 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1541 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1542 --infodir=DIR info documentation [DATAROOTDIR/info] 1543 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1544 --mandir=DIR man documentation [DATAROOTDIR/man] 1545 --docdir=DIR documentation root [DATAROOTDIR/doc/sntp] 1546 --htmldir=DIR html documentation [DOCDIR] 1547 --dvidir=DIR dvi documentation [DOCDIR] 1548 --pdfdir=DIR pdf documentation [DOCDIR] 1549 --psdir=DIR ps documentation [DOCDIR] 1550_ACEOF 1551 1552 cat <<\_ACEOF 1553 1554Program names: 1555 --program-prefix=PREFIX prepend PREFIX to installed program names 1556 --program-suffix=SUFFIX append SUFFIX to installed program names 1557 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1558 1559System types: 1560 --build=BUILD configure for building on BUILD [guessed] 1561 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1562_ACEOF 1563fi 1564 1565if test -n "$ac_init_help"; then 1566 case $ac_init_help in 1567 short | recursive ) echo "Configuration of sntp 4.2.8p5:";; 1568 esac 1569 cat <<\_ACEOF 1570 1571Optional Features: 1572 --disable-option-checking ignore unrecognized --enable/--with options 1573 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1574 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1575 --enable-silent-rules less verbose build output (undo: "make V=1") 1576 --disable-silent-rules verbose build output (undo: "make V=0") 1577 --enable-dependency-tracking 1578 do not reject slow dependency extractors 1579 --disable-dependency-tracking 1580 speeds up one-time build 1581 defaults: + yes, - no, s system-specific 1582 --enable-debugging + include ntpd debugging code 1583 --enable-thread-support s use threads (+ if available) 1584 --enable-c99-snprintf s force replacement 1585 --enable-clockctl s Use /dev/clockctl for non-root clock control 1586 --enable-linuxcaps + Use Linux capabilities for non-root clock control 1587 --enable-solarisprivs + Use Solaris privileges for non-root clock control 1588 --enable-shared[=PKGS] build shared libraries [default=no] 1589 --enable-static[=PKGS] build static libraries [default=yes] 1590 --enable-fast-install[=PKGS] 1591 optimize for fast installation [default=yes] 1592 --disable-libtool-lock avoid locking (might break parallel builds) 1593 --disable-nls disable nls support in libopts 1594 --enable-local-libopts Use the supplied libopts tearoff code 1595 --enable-libopts-install 1596 Install libopts with client installation 1597 --disable-optional-args not wanting optional option args 1598 --enable-local-libevent Force using the supplied libevent tearoff code 1599 --enable-ipv6 s use IPv6? 1600 1601 --enable-getifaddrs + Enable the use of getifaddrs() [[yes|no]]. 1602 1603Optional Packages: 1604 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1605 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1606 --with-locfile=XXX os-specific or "legacy" 1607 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1608 --with-lineeditlibs edit,editline (readline may be specified if desired) 1609 --with-threads with threads [auto] 1610 --with-yielding-select with yielding select [auto] 1611 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1612 both] 1613 --with-aix-soname=aix|svr4|both 1614 shared library versioning (aka "SONAME") variant to 1615 provide on AIX, [default=aix]. 1616 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1617 compiler's sysroot if not specified). 1618 --without-sntp - disable building sntp and sntp/tests 1619 --with-autoopts-config specify the config-info script 1620 --with-regex-header a reg expr header is specified 1621 --with-libregex libregex installation prefix 1622 --with-libregex-cflags libregex compile flags 1623 --with-libregex-libs libregex link command arguments 1624 --with-crypto + =openssl,libcrypto 1625 1626 --with-openssl-libdir + =/something/reasonable 1627 1628 --with-openssl-incdir + =/something/reasonable 1629 1630 --without-rpath s Disable auto-added -R linker paths 1631 1632 --with-kame - =/usr/local/v6 1633 --with-gtest Use the gtest framework (Default: if it's available) 1634 1635Some influential environment variables: 1636 CC C compiler command 1637 CFLAGS C compiler flags 1638 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1639 nonstandard directory <lib dir> 1640 LIBS libraries to pass to the linker, e.g. -l<library> 1641 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1642 you have headers in a nonstandard directory <include dir> 1643 CPP C preprocessor 1644 LT_SYS_LIBRARY_PATH 1645 User-defined run-time library search path. 1646 CXX C++ compiler command 1647 CXXFLAGS C++ compiler flags 1648 CXXCPP C++ preprocessor 1649 1650Use these variables to override the choices made by `configure' or to help 1651it to find libraries and programs with nonstandard names/locations. 1652 1653Report bugs to <http://bugs.ntp.org./>. 1654sntp home page: <http://www.ntp.org./>. 1655_ACEOF 1656ac_status=$? 1657fi 1658 1659if test "$ac_init_help" = "recursive"; then 1660 # If there are subdirs, report their specific --help. 1661 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1662 test -d "$ac_dir" || 1663 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1664 continue 1665 ac_builddir=. 1666 1667case "$ac_dir" in 1668.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1669*) 1670 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1671 # A ".." for each directory in $ac_dir_suffix. 1672 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1673 case $ac_top_builddir_sub in 1674 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1675 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1676 esac ;; 1677esac 1678ac_abs_top_builddir=$ac_pwd 1679ac_abs_builddir=$ac_pwd$ac_dir_suffix 1680# for backward compatibility: 1681ac_top_builddir=$ac_top_build_prefix 1682 1683case $srcdir in 1684 .) # We are building in place. 1685 ac_srcdir=. 1686 ac_top_srcdir=$ac_top_builddir_sub 1687 ac_abs_top_srcdir=$ac_pwd ;; 1688 [\\/]* | ?:[\\/]* ) # Absolute name. 1689 ac_srcdir=$srcdir$ac_dir_suffix; 1690 ac_top_srcdir=$srcdir 1691 ac_abs_top_srcdir=$srcdir ;; 1692 *) # Relative name. 1693 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1694 ac_top_srcdir=$ac_top_build_prefix$srcdir 1695 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1696esac 1697ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1698 1699 cd "$ac_dir" || { ac_status=$?; continue; } 1700 # Check for guested configure. 1701 if test -f "$ac_srcdir/configure.gnu"; then 1702 echo && 1703 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1704 elif test -f "$ac_srcdir/configure"; then 1705 echo && 1706 $SHELL "$ac_srcdir/configure" --help=recursive 1707 else 1708 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1709 fi || ac_status=$? 1710 cd "$ac_pwd" || { ac_status=$?; break; } 1711 done 1712fi 1713 1714test -n "$ac_init_help" && exit $ac_status 1715if $ac_init_version; then 1716 cat <<\_ACEOF 1717sntp configure 4.2.8p5 1718generated by GNU Autoconf 2.69 1719 1720Copyright (C) 2012 Free Software Foundation, Inc. 1721This configure script is free software; the Free Software Foundation 1722gives unlimited permission to copy, distribute and modify it. 1723_ACEOF 1724 exit 1725fi 1726 1727## ------------------------ ## 1728## Autoconf initialization. ## 1729## ------------------------ ## 1730 1731# ac_fn_c_try_compile LINENO 1732# -------------------------- 1733# Try to compile conftest.$ac_ext, and return whether this succeeded. 1734ac_fn_c_try_compile () 1735{ 1736 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1737 rm -f conftest.$ac_objext 1738 if { { ac_try="$ac_compile" 1739case "(($ac_try" in 1740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1741 *) ac_try_echo=$ac_try;; 1742esac 1743eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1744$as_echo "$ac_try_echo"; } >&5 1745 (eval "$ac_compile") 2>conftest.err 1746 ac_status=$? 1747 if test -s conftest.err; then 1748 grep -v '^ *+' conftest.err >conftest.er1 1749 cat conftest.er1 >&5 1750 mv -f conftest.er1 conftest.err 1751 fi 1752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1753 test $ac_status = 0; } && { 1754 test -z "$ac_c_werror_flag" || 1755 test ! -s conftest.err 1756 } && test -s conftest.$ac_objext; then : 1757 ac_retval=0 1758else 1759 $as_echo "$as_me: failed program was:" >&5 1760sed 's/^/| /' conftest.$ac_ext >&5 1761 1762 ac_retval=1 1763fi 1764 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1765 as_fn_set_status $ac_retval 1766 1767} # ac_fn_c_try_compile 1768 1769# ac_fn_c_try_cpp LINENO 1770# ---------------------- 1771# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1772ac_fn_c_try_cpp () 1773{ 1774 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1775 if { { ac_try="$ac_cpp conftest.$ac_ext" 1776case "(($ac_try" in 1777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1778 *) ac_try_echo=$ac_try;; 1779esac 1780eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1781$as_echo "$ac_try_echo"; } >&5 1782 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1783 ac_status=$? 1784 if test -s conftest.err; then 1785 grep -v '^ *+' conftest.err >conftest.er1 1786 cat conftest.er1 >&5 1787 mv -f conftest.er1 conftest.err 1788 fi 1789 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1790 test $ac_status = 0; } > conftest.i && { 1791 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1792 test ! -s conftest.err 1793 }; then : 1794 ac_retval=0 1795else 1796 $as_echo "$as_me: failed program was:" >&5 1797sed 's/^/| /' conftest.$ac_ext >&5 1798 1799 ac_retval=1 1800fi 1801 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1802 as_fn_set_status $ac_retval 1803 1804} # ac_fn_c_try_cpp 1805 1806# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1807# ------------------------------------------------------- 1808# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1809# the include files in INCLUDES and setting the cache variable VAR 1810# accordingly. 1811ac_fn_c_check_header_mongrel () 1812{ 1813 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1814 if eval \${$3+:} false; then : 1815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1816$as_echo_n "checking for $2... " >&6; } 1817if eval \${$3+:} false; then : 1818 $as_echo_n "(cached) " >&6 1819fi 1820eval ac_res=\$$3 1821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1822$as_echo "$ac_res" >&6; } 1823else 1824 # Is the header compilable? 1825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1826$as_echo_n "checking $2 usability... " >&6; } 1827cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1828/* end confdefs.h. */ 1829$4 1830#include <$2> 1831_ACEOF 1832if ac_fn_c_try_compile "$LINENO"; then : 1833 ac_header_compiler=yes 1834else 1835 ac_header_compiler=no 1836fi 1837rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1839$as_echo "$ac_header_compiler" >&6; } 1840 1841# Is the header present? 1842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1843$as_echo_n "checking $2 presence... " >&6; } 1844cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1845/* end confdefs.h. */ 1846#include <$2> 1847_ACEOF 1848if ac_fn_c_try_cpp "$LINENO"; then : 1849 ac_header_preproc=yes 1850else 1851 ac_header_preproc=no 1852fi 1853rm -f conftest.err conftest.i conftest.$ac_ext 1854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1855$as_echo "$ac_header_preproc" >&6; } 1856 1857# So? What about this header? 1858case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1859 yes:no: ) 1860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1861$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1863$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1864 ;; 1865 no:yes:* ) 1866 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1867$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1868 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1869$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1870 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1871$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1872 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1873$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1874 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1875$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1876( $as_echo "## ------------------------------------ ## 1877## Report this to http://bugs.ntp.org./ ## 1878## ------------------------------------ ##" 1879 ) | sed "s/^/$as_me: WARNING: /" >&2 1880 ;; 1881esac 1882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1883$as_echo_n "checking for $2... " >&6; } 1884if eval \${$3+:} false; then : 1885 $as_echo_n "(cached) " >&6 1886else 1887 eval "$3=\$ac_header_compiler" 1888fi 1889eval ac_res=\$$3 1890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1891$as_echo "$ac_res" >&6; } 1892fi 1893 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1894 1895} # ac_fn_c_check_header_mongrel 1896 1897# ac_fn_c_try_run LINENO 1898# ---------------------- 1899# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1900# that executables *can* be run. 1901ac_fn_c_try_run () 1902{ 1903 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1904 if { { ac_try="$ac_link" 1905case "(($ac_try" in 1906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1907 *) ac_try_echo=$ac_try;; 1908esac 1909eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1910$as_echo "$ac_try_echo"; } >&5 1911 (eval "$ac_link") 2>&5 1912 ac_status=$? 1913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1914 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1915 { { case "(($ac_try" in 1916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1917 *) ac_try_echo=$ac_try;; 1918esac 1919eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1920$as_echo "$ac_try_echo"; } >&5 1921 (eval "$ac_try") 2>&5 1922 ac_status=$? 1923 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1924 test $ac_status = 0; }; }; then : 1925 ac_retval=0 1926else 1927 $as_echo "$as_me: program exited with status $ac_status" >&5 1928 $as_echo "$as_me: failed program was:" >&5 1929sed 's/^/| /' conftest.$ac_ext >&5 1930 1931 ac_retval=$ac_status 1932fi 1933 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1934 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1935 as_fn_set_status $ac_retval 1936 1937} # ac_fn_c_try_run 1938 1939# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1940# ------------------------------------------------------- 1941# Tests whether HEADER exists and can be compiled using the include files in 1942# INCLUDES, setting the cache variable VAR accordingly. 1943ac_fn_c_check_header_compile () 1944{ 1945 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1947$as_echo_n "checking for $2... " >&6; } 1948if eval \${$3+:} false; then : 1949 $as_echo_n "(cached) " >&6 1950else 1951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1952/* end confdefs.h. */ 1953$4 1954#include <$2> 1955_ACEOF 1956if ac_fn_c_try_compile "$LINENO"; then : 1957 eval "$3=yes" 1958else 1959 eval "$3=no" 1960fi 1961rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1962fi 1963eval ac_res=\$$3 1964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1965$as_echo "$ac_res" >&6; } 1966 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1967 1968} # ac_fn_c_check_header_compile 1969 1970# ac_fn_c_try_link LINENO 1971# ----------------------- 1972# Try to link conftest.$ac_ext, and return whether this succeeded. 1973ac_fn_c_try_link () 1974{ 1975 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1976 rm -f conftest.$ac_objext conftest$ac_exeext 1977 if { { ac_try="$ac_link" 1978case "(($ac_try" in 1979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1980 *) ac_try_echo=$ac_try;; 1981esac 1982eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1983$as_echo "$ac_try_echo"; } >&5 1984 (eval "$ac_link") 2>conftest.err 1985 ac_status=$? 1986 if test -s conftest.err; then 1987 grep -v '^ *+' conftest.err >conftest.er1 1988 cat conftest.er1 >&5 1989 mv -f conftest.er1 conftest.err 1990 fi 1991 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1992 test $ac_status = 0; } && { 1993 test -z "$ac_c_werror_flag" || 1994 test ! -s conftest.err 1995 } && test -s conftest$ac_exeext && { 1996 test "$cross_compiling" = yes || 1997 test -x conftest$ac_exeext 1998 }; then : 1999 ac_retval=0 2000else 2001 $as_echo "$as_me: failed program was:" >&5 2002sed 's/^/| /' conftest.$ac_ext >&5 2003 2004 ac_retval=1 2005fi 2006 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2007 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2008 # interfere with the next link command; also delete a directory that is 2009 # left behind by Apple's compiler. We do this before executing the actions. 2010 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2011 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2012 as_fn_set_status $ac_retval 2013 2014} # ac_fn_c_try_link 2015 2016# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2017# ------------------------------------------- 2018# Tests whether TYPE exists after having included INCLUDES, setting cache 2019# variable VAR accordingly. 2020ac_fn_c_check_type () 2021{ 2022 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2024$as_echo_n "checking for $2... " >&6; } 2025if eval \${$3+:} false; then : 2026 $as_echo_n "(cached) " >&6 2027else 2028 eval "$3=no" 2029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2030/* end confdefs.h. */ 2031$4 2032int 2033main () 2034{ 2035if (sizeof ($2)) 2036 return 0; 2037 ; 2038 return 0; 2039} 2040_ACEOF 2041if ac_fn_c_try_compile "$LINENO"; then : 2042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2043/* end confdefs.h. */ 2044$4 2045int 2046main () 2047{ 2048if (sizeof (($2))) 2049 return 0; 2050 ; 2051 return 0; 2052} 2053_ACEOF 2054if ac_fn_c_try_compile "$LINENO"; then : 2055 2056else 2057 eval "$3=yes" 2058fi 2059rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2060fi 2061rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2062fi 2063eval ac_res=\$$3 2064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2065$as_echo "$ac_res" >&6; } 2066 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2067 2068} # ac_fn_c_check_type 2069 2070# ac_fn_c_check_func LINENO FUNC VAR 2071# ---------------------------------- 2072# Tests whether FUNC exists, setting the cache variable VAR accordingly 2073ac_fn_c_check_func () 2074{ 2075 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2077$as_echo_n "checking for $2... " >&6; } 2078if eval \${$3+:} false; then : 2079 $as_echo_n "(cached) " >&6 2080else 2081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2082/* end confdefs.h. */ 2083/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2084 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2085#define $2 innocuous_$2 2086 2087/* System header to define __stub macros and hopefully few prototypes, 2088 which can conflict with char $2 (); below. 2089 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2090 <limits.h> exists even on freestanding compilers. */ 2091 2092#ifdef __STDC__ 2093# include <limits.h> 2094#else 2095# include <assert.h> 2096#endif 2097 2098#undef $2 2099 2100/* Override any GCC internal prototype to avoid an error. 2101 Use char because int might match the return type of a GCC 2102 builtin and then its argument prototype would still apply. */ 2103#ifdef __cplusplus 2104extern "C" 2105#endif 2106char $2 (); 2107/* The GNU C library defines this for functions which it implements 2108 to always fail with ENOSYS. Some functions are actually named 2109 something starting with __ and the normal name is an alias. */ 2110#if defined __stub_$2 || defined __stub___$2 2111choke me 2112#endif 2113 2114int 2115main () 2116{ 2117return $2 (); 2118 ; 2119 return 0; 2120} 2121_ACEOF 2122if ac_fn_c_try_link "$LINENO"; then : 2123 eval "$3=yes" 2124else 2125 eval "$3=no" 2126fi 2127rm -f core conftest.err conftest.$ac_objext \ 2128 conftest$ac_exeext conftest.$ac_ext 2129fi 2130eval ac_res=\$$3 2131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2132$as_echo "$ac_res" >&6; } 2133 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2134 2135} # ac_fn_c_check_func 2136 2137# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 2138# --------------------------------------------- 2139# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 2140# accordingly. 2141ac_fn_c_check_decl () 2142{ 2143 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2144 as_decl_name=`echo $2|sed 's/ *(.*//'` 2145 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 2146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 2147$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 2148if eval \${$3+:} false; then : 2149 $as_echo_n "(cached) " >&6 2150else 2151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2152/* end confdefs.h. */ 2153$4 2154int 2155main () 2156{ 2157#ifndef $as_decl_name 2158#ifdef __cplusplus 2159 (void) $as_decl_use; 2160#else 2161 (void) $as_decl_name; 2162#endif 2163#endif 2164 2165 ; 2166 return 0; 2167} 2168_ACEOF 2169if ac_fn_c_try_compile "$LINENO"; then : 2170 eval "$3=yes" 2171else 2172 eval "$3=no" 2173fi 2174rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2175fi 2176eval ac_res=\$$3 2177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2178$as_echo "$ac_res" >&6; } 2179 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2180 2181} # ac_fn_c_check_decl 2182 2183# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 2184# -------------------------------------------- 2185# Tries to find the compile-time value of EXPR in a program that includes 2186# INCLUDES, setting VAR accordingly. Returns whether the value could be 2187# computed 2188ac_fn_c_compute_int () 2189{ 2190 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2191 if test "$cross_compiling" = yes; then 2192 # Depending upon the size, compute the lo and hi bounds. 2193cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2194/* end confdefs.h. */ 2195$4 2196int 2197main () 2198{ 2199static int test_array [1 - 2 * !(($2) >= 0)]; 2200test_array [0] = 0; 2201return test_array [0]; 2202 2203 ; 2204 return 0; 2205} 2206_ACEOF 2207if ac_fn_c_try_compile "$LINENO"; then : 2208 ac_lo=0 ac_mid=0 2209 while :; do 2210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2211/* end confdefs.h. */ 2212$4 2213int 2214main () 2215{ 2216static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2217test_array [0] = 0; 2218return test_array [0]; 2219 2220 ; 2221 return 0; 2222} 2223_ACEOF 2224if ac_fn_c_try_compile "$LINENO"; then : 2225 ac_hi=$ac_mid; break 2226else 2227 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2228 if test $ac_lo -le $ac_mid; then 2229 ac_lo= ac_hi= 2230 break 2231 fi 2232 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2233fi 2234rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2235 done 2236else 2237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2238/* end confdefs.h. */ 2239$4 2240int 2241main () 2242{ 2243static int test_array [1 - 2 * !(($2) < 0)]; 2244test_array [0] = 0; 2245return test_array [0]; 2246 2247 ; 2248 return 0; 2249} 2250_ACEOF 2251if ac_fn_c_try_compile "$LINENO"; then : 2252 ac_hi=-1 ac_mid=-1 2253 while :; do 2254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2255/* end confdefs.h. */ 2256$4 2257int 2258main () 2259{ 2260static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2261test_array [0] = 0; 2262return test_array [0]; 2263 2264 ; 2265 return 0; 2266} 2267_ACEOF 2268if ac_fn_c_try_compile "$LINENO"; then : 2269 ac_lo=$ac_mid; break 2270else 2271 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2272 if test $ac_mid -le $ac_hi; then 2273 ac_lo= ac_hi= 2274 break 2275 fi 2276 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2277fi 2278rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2279 done 2280else 2281 ac_lo= ac_hi= 2282fi 2283rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2284fi 2285rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2286# Binary search between lo and hi bounds. 2287while test "x$ac_lo" != "x$ac_hi"; do 2288 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2290/* end confdefs.h. */ 2291$4 2292int 2293main () 2294{ 2295static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2296test_array [0] = 0; 2297return test_array [0]; 2298 2299 ; 2300 return 0; 2301} 2302_ACEOF 2303if ac_fn_c_try_compile "$LINENO"; then : 2304 ac_hi=$ac_mid 2305else 2306 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2307fi 2308rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2309done 2310case $ac_lo in #(( 2311?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2312'') ac_retval=1 ;; 2313esac 2314 else 2315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2316/* end confdefs.h. */ 2317$4 2318static long int longval () { return $2; } 2319static unsigned long int ulongval () { return $2; } 2320#include <stdio.h> 2321#include <stdlib.h> 2322int 2323main () 2324{ 2325 2326 FILE *f = fopen ("conftest.val", "w"); 2327 if (! f) 2328 return 1; 2329 if (($2) < 0) 2330 { 2331 long int i = longval (); 2332 if (i != ($2)) 2333 return 1; 2334 fprintf (f, "%ld", i); 2335 } 2336 else 2337 { 2338 unsigned long int i = ulongval (); 2339 if (i != ($2)) 2340 return 1; 2341 fprintf (f, "%lu", i); 2342 } 2343 /* Do not output a trailing newline, as this causes \r\n confusion 2344 on some platforms. */ 2345 return ferror (f) || fclose (f) != 0; 2346 2347 ; 2348 return 0; 2349} 2350_ACEOF 2351if ac_fn_c_try_run "$LINENO"; then : 2352 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2353else 2354 ac_retval=1 2355fi 2356rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2357 conftest.$ac_objext conftest.beam conftest.$ac_ext 2358rm -f conftest.val 2359 2360 fi 2361 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2362 as_fn_set_status $ac_retval 2363 2364} # ac_fn_c_compute_int 2365 2366# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 2367# ---------------------------------------------------- 2368# Tries to find if the field MEMBER exists in type AGGR, after including 2369# INCLUDES, setting cache variable VAR accordingly. 2370ac_fn_c_check_member () 2371{ 2372 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 2374$as_echo_n "checking for $2.$3... " >&6; } 2375if eval \${$4+:} false; then : 2376 $as_echo_n "(cached) " >&6 2377else 2378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2379/* end confdefs.h. */ 2380$5 2381int 2382main () 2383{ 2384static $2 ac_aggr; 2385if (ac_aggr.$3) 2386return 0; 2387 ; 2388 return 0; 2389} 2390_ACEOF 2391if ac_fn_c_try_compile "$LINENO"; then : 2392 eval "$4=yes" 2393else 2394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2395/* end confdefs.h. */ 2396$5 2397int 2398main () 2399{ 2400static $2 ac_aggr; 2401if (sizeof ac_aggr.$3) 2402return 0; 2403 ; 2404 return 0; 2405} 2406_ACEOF 2407if ac_fn_c_try_compile "$LINENO"; then : 2408 eval "$4=yes" 2409else 2410 eval "$4=no" 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=\$$4 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_member 2422 2423# ac_fn_cxx_try_compile LINENO 2424# ---------------------------- 2425# Try to compile conftest.$ac_ext, and return whether this succeeded. 2426ac_fn_cxx_try_compile () 2427{ 2428 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2429 rm -f conftest.$ac_objext 2430 if { { ac_try="$ac_compile" 2431case "(($ac_try" in 2432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2433 *) ac_try_echo=$ac_try;; 2434esac 2435eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2436$as_echo "$ac_try_echo"; } >&5 2437 (eval "$ac_compile") 2>conftest.err 2438 ac_status=$? 2439 if test -s conftest.err; then 2440 grep -v '^ *+' conftest.err >conftest.er1 2441 cat conftest.er1 >&5 2442 mv -f conftest.er1 conftest.err 2443 fi 2444 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2445 test $ac_status = 0; } && { 2446 test -z "$ac_cxx_werror_flag" || 2447 test ! -s conftest.err 2448 } && test -s conftest.$ac_objext; then : 2449 ac_retval=0 2450else 2451 $as_echo "$as_me: failed program was:" >&5 2452sed 's/^/| /' conftest.$ac_ext >&5 2453 2454 ac_retval=1 2455fi 2456 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2457 as_fn_set_status $ac_retval 2458 2459} # ac_fn_cxx_try_compile 2460 2461# ac_fn_cxx_try_cpp LINENO 2462# ------------------------ 2463# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 2464ac_fn_cxx_try_cpp () 2465{ 2466 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2467 if { { ac_try="$ac_cpp conftest.$ac_ext" 2468case "(($ac_try" in 2469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2470 *) ac_try_echo=$ac_try;; 2471esac 2472eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2473$as_echo "$ac_try_echo"; } >&5 2474 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 2475 ac_status=$? 2476 if test -s conftest.err; then 2477 grep -v '^ *+' conftest.err >conftest.er1 2478 cat conftest.er1 >&5 2479 mv -f conftest.er1 conftest.err 2480 fi 2481 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2482 test $ac_status = 0; } > conftest.i && { 2483 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 2484 test ! -s conftest.err 2485 }; then : 2486 ac_retval=0 2487else 2488 $as_echo "$as_me: failed program was:" >&5 2489sed 's/^/| /' conftest.$ac_ext >&5 2490 2491 ac_retval=1 2492fi 2493 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2494 as_fn_set_status $ac_retval 2495 2496} # ac_fn_cxx_try_cpp 2497 2498# ac_fn_cxx_try_link LINENO 2499# ------------------------- 2500# Try to link conftest.$ac_ext, and return whether this succeeded. 2501ac_fn_cxx_try_link () 2502{ 2503 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2504 rm -f conftest.$ac_objext conftest$ac_exeext 2505 if { { ac_try="$ac_link" 2506case "(($ac_try" in 2507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2508 *) ac_try_echo=$ac_try;; 2509esac 2510eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2511$as_echo "$ac_try_echo"; } >&5 2512 (eval "$ac_link") 2>conftest.err 2513 ac_status=$? 2514 if test -s conftest.err; then 2515 grep -v '^ *+' conftest.err >conftest.er1 2516 cat conftest.er1 >&5 2517 mv -f conftest.er1 conftest.err 2518 fi 2519 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2520 test $ac_status = 0; } && { 2521 test -z "$ac_cxx_werror_flag" || 2522 test ! -s conftest.err 2523 } && test -s conftest$ac_exeext && { 2524 test "$cross_compiling" = yes || 2525 test -x conftest$ac_exeext 2526 }; then : 2527 ac_retval=0 2528else 2529 $as_echo "$as_me: failed program was:" >&5 2530sed 's/^/| /' conftest.$ac_ext >&5 2531 2532 ac_retval=1 2533fi 2534 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2535 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2536 # interfere with the next link command; also delete a directory that is 2537 # left behind by Apple's compiler. We do this before executing the actions. 2538 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2539 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2540 as_fn_set_status $ac_retval 2541 2542} # ac_fn_cxx_try_link 2543cat >config.log <<_ACEOF 2544This file contains any messages produced by compilers while 2545running configure, to aid debugging if configure makes a mistake. 2546 2547It was created by sntp $as_me 4.2.8p5, which was 2548generated by GNU Autoconf 2.69. Invocation command line was 2549 2550 $ $0 $@ 2551 2552_ACEOF 2553exec 5>>config.log 2554{ 2555cat <<_ASUNAME 2556## --------- ## 2557## Platform. ## 2558## --------- ## 2559 2560hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2561uname -m = `(uname -m) 2>/dev/null || echo unknown` 2562uname -r = `(uname -r) 2>/dev/null || echo unknown` 2563uname -s = `(uname -s) 2>/dev/null || echo unknown` 2564uname -v = `(uname -v) 2>/dev/null || echo unknown` 2565 2566/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2567/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2568 2569/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2570/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2571/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2572/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2573/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2574/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2575/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2576 2577_ASUNAME 2578 2579as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2580for as_dir in $PATH 2581do 2582 IFS=$as_save_IFS 2583 test -z "$as_dir" && as_dir=. 2584 $as_echo "PATH: $as_dir" 2585 done 2586IFS=$as_save_IFS 2587 2588} >&5 2589 2590cat >&5 <<_ACEOF 2591 2592 2593## ----------- ## 2594## Core tests. ## 2595## ----------- ## 2596 2597_ACEOF 2598 2599 2600# Keep a trace of the command line. 2601# Strip out --no-create and --no-recursion so they do not pile up. 2602# Strip out --silent because we don't want to record it for future runs. 2603# Also quote any args containing shell meta-characters. 2604# Make two passes to allow for proper duplicate-argument suppression. 2605ac_configure_args= 2606ac_configure_args0= 2607ac_configure_args1= 2608ac_must_keep_next=false 2609for ac_pass in 1 2 2610do 2611 for ac_arg 2612 do 2613 case $ac_arg in 2614 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2615 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2616 | -silent | --silent | --silen | --sile | --sil) 2617 continue ;; 2618 *\'*) 2619 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2620 esac 2621 case $ac_pass in 2622 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2623 2) 2624 as_fn_append ac_configure_args1 " '$ac_arg'" 2625 if test $ac_must_keep_next = true; then 2626 ac_must_keep_next=false # Got value, back to normal. 2627 else 2628 case $ac_arg in 2629 *=* | --config-cache | -C | -disable-* | --disable-* \ 2630 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2631 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2632 | -with-* | --with-* | -without-* | --without-* | --x) 2633 case "$ac_configure_args0 " in 2634 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2635 esac 2636 ;; 2637 -* ) ac_must_keep_next=true ;; 2638 esac 2639 fi 2640 as_fn_append ac_configure_args " '$ac_arg'" 2641 ;; 2642 esac 2643 done 2644done 2645{ ac_configure_args0=; unset ac_configure_args0;} 2646{ ac_configure_args1=; unset ac_configure_args1;} 2647 2648# When interrupted or exit'd, cleanup temporary files, and complete 2649# config.log. We remove comments because anyway the quotes in there 2650# would cause problems or look ugly. 2651# WARNING: Use '\'' to represent an apostrophe within the trap. 2652# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2653trap 'exit_status=$? 2654 # Save into config.log some information that might help in debugging. 2655 { 2656 echo 2657 2658 $as_echo "## ---------------- ## 2659## Cache variables. ## 2660## ---------------- ##" 2661 echo 2662 # The following way of writing the cache mishandles newlines in values, 2663( 2664 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2665 eval ac_val=\$$ac_var 2666 case $ac_val in #( 2667 *${as_nl}*) 2668 case $ac_var in #( 2669 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2670$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2671 esac 2672 case $ac_var in #( 2673 _ | IFS | as_nl) ;; #( 2674 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2675 *) { eval $ac_var=; unset $ac_var;} ;; 2676 esac ;; 2677 esac 2678 done 2679 (set) 2>&1 | 2680 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2681 *${as_nl}ac_space=\ *) 2682 sed -n \ 2683 "s/'\''/'\''\\\\'\'''\''/g; 2684 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2685 ;; #( 2686 *) 2687 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2688 ;; 2689 esac | 2690 sort 2691) 2692 echo 2693 2694 $as_echo "## ----------------- ## 2695## Output variables. ## 2696## ----------------- ##" 2697 echo 2698 for ac_var in $ac_subst_vars 2699 do 2700 eval ac_val=\$$ac_var 2701 case $ac_val in 2702 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2703 esac 2704 $as_echo "$ac_var='\''$ac_val'\''" 2705 done | sort 2706 echo 2707 2708 if test -n "$ac_subst_files"; then 2709 $as_echo "## ------------------- ## 2710## File substitutions. ## 2711## ------------------- ##" 2712 echo 2713 for ac_var in $ac_subst_files 2714 do 2715 eval ac_val=\$$ac_var 2716 case $ac_val in 2717 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2718 esac 2719 $as_echo "$ac_var='\''$ac_val'\''" 2720 done | sort 2721 echo 2722 fi 2723 2724 if test -s confdefs.h; then 2725 $as_echo "## ----------- ## 2726## confdefs.h. ## 2727## ----------- ##" 2728 echo 2729 cat confdefs.h 2730 echo 2731 fi 2732 test "$ac_signal" != 0 && 2733 $as_echo "$as_me: caught signal $ac_signal" 2734 $as_echo "$as_me: exit $exit_status" 2735 } >&5 2736 rm -f core *.core core.conftest.* && 2737 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2738 exit $exit_status 2739' 0 2740for ac_signal in 1 2 13 15; do 2741 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2742done 2743ac_signal=0 2744 2745# confdefs.h avoids OS command line length limits that DEFS can exceed. 2746rm -f -r conftest* confdefs.h 2747 2748$as_echo "/* confdefs.h */" > confdefs.h 2749 2750# Predefined preprocessor variables. 2751 2752cat >>confdefs.h <<_ACEOF 2753#define PACKAGE_NAME "$PACKAGE_NAME" 2754_ACEOF 2755 2756cat >>confdefs.h <<_ACEOF 2757#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2758_ACEOF 2759 2760cat >>confdefs.h <<_ACEOF 2761#define PACKAGE_VERSION "$PACKAGE_VERSION" 2762_ACEOF 2763 2764cat >>confdefs.h <<_ACEOF 2765#define PACKAGE_STRING "$PACKAGE_STRING" 2766_ACEOF 2767 2768cat >>confdefs.h <<_ACEOF 2769#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2770_ACEOF 2771 2772cat >>confdefs.h <<_ACEOF 2773#define PACKAGE_URL "$PACKAGE_URL" 2774_ACEOF 2775 2776 2777# Let the site file select an alternate cache file if it wants to. 2778# Prefer an explicitly selected file to automatically selected ones. 2779ac_site_file1=NONE 2780ac_site_file2=NONE 2781if test -n "$CONFIG_SITE"; then 2782 # We do not want a PATH search for config.site. 2783 case $CONFIG_SITE in #(( 2784 -*) ac_site_file1=./$CONFIG_SITE;; 2785 */*) ac_site_file1=$CONFIG_SITE;; 2786 *) ac_site_file1=./$CONFIG_SITE;; 2787 esac 2788elif test "x$prefix" != xNONE; then 2789 ac_site_file1=$prefix/share/config.site 2790 ac_site_file2=$prefix/etc/config.site 2791else 2792 ac_site_file1=$ac_default_prefix/share/config.site 2793 ac_site_file2=$ac_default_prefix/etc/config.site 2794fi 2795for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2796do 2797 test "x$ac_site_file" = xNONE && continue 2798 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2799 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2800$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2801 sed 's/^/| /' "$ac_site_file" >&5 2802 . "$ac_site_file" \ 2803 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2804$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2805as_fn_error $? "failed to load site script $ac_site_file 2806See \`config.log' for more details" "$LINENO" 5; } 2807 fi 2808done 2809 2810if test -r "$cache_file"; then 2811 # Some versions of bash will fail to source /dev/null (special files 2812 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2813 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2814 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2815$as_echo "$as_me: loading cache $cache_file" >&6;} 2816 case $cache_file in 2817 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2818 *) . "./$cache_file";; 2819 esac 2820 fi 2821else 2822 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2823$as_echo "$as_me: creating cache $cache_file" >&6;} 2824 >$cache_file 2825fi 2826 2827as_fn_append ac_header_list " stdarg.h" 2828# Check that the precious variables saved in the cache have kept the same 2829# value. 2830ac_cache_corrupted=false 2831for ac_var in $ac_precious_vars; do 2832 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2833 eval ac_new_set=\$ac_env_${ac_var}_set 2834 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2835 eval ac_new_val=\$ac_env_${ac_var}_value 2836 case $ac_old_set,$ac_new_set in 2837 set,) 2838 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2839$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2840 ac_cache_corrupted=: ;; 2841 ,set) 2842 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2843$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2844 ac_cache_corrupted=: ;; 2845 ,);; 2846 *) 2847 if test "x$ac_old_val" != "x$ac_new_val"; then 2848 # differences in whitespace do not lead to failure. 2849 ac_old_val_w=`echo x $ac_old_val` 2850 ac_new_val_w=`echo x $ac_new_val` 2851 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2852 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2853$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2854 ac_cache_corrupted=: 2855 else 2856 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2857$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2858 eval $ac_var=\$ac_old_val 2859 fi 2860 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2861$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2862 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2863$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2864 fi;; 2865 esac 2866 # Pass precious variables to config.status. 2867 if test "$ac_new_set" = set; then 2868 case $ac_new_val in 2869 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2870 *) ac_arg=$ac_var=$ac_new_val ;; 2871 esac 2872 case " $ac_configure_args " in 2873 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2874 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2875 esac 2876 fi 2877done 2878if $ac_cache_corrupted; then 2879 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2880$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2881 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2882$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2883 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2884fi 2885## -------------------- ## 2886## Main body of script. ## 2887## -------------------- ## 2888 2889ac_ext=c 2890ac_cpp='$CPP $CPPFLAGS' 2891ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2892ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2893ac_compiler_gnu=$ac_cv_c_compiler_gnu 2894 2895 2896 2897ac_aux_dir= 2898for ac_dir in libevent/build-aux "$srcdir"/libevent/build-aux; do 2899 if test -f "$ac_dir/install-sh"; then 2900 ac_aux_dir=$ac_dir 2901 ac_install_sh="$ac_aux_dir/install-sh -c" 2902 break 2903 elif test -f "$ac_dir/install.sh"; then 2904 ac_aux_dir=$ac_dir 2905 ac_install_sh="$ac_aux_dir/install.sh -c" 2906 break 2907 elif test -f "$ac_dir/shtool"; then 2908 ac_aux_dir=$ac_dir 2909 ac_install_sh="$ac_aux_dir/shtool install -c" 2910 break 2911 fi 2912done 2913if test -z "$ac_aux_dir"; then 2914 as_fn_error $? "cannot find install-sh, install.sh, or shtool in libevent/build-aux \"$srcdir\"/libevent/build-aux" "$LINENO" 5 2915fi 2916 2917# These three variables are undocumented and unsupported, 2918# and are intended to be withdrawn in a future Autoconf release. 2919# They can cause serious problems if a builder's source tree is in a directory 2920# whose full name contains unusual characters. 2921ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2922ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2923ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2924 2925 2926ac_ext=c 2927ac_cpp='$CPP $CPPFLAGS' 2928ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2929ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2930ac_compiler_gnu=$ac_cv_c_compiler_gnu 2931 2932 2933# Bump sntp_configure_cache_version for each change to configure.ac or 2934# .m4 files which invalidates cached values from previous configure 2935# runs. 2936# 2937# If the change affects cache variables used only by the main NTP 2938# configure.ac, then only its version number should be bumped, while 2939# the subdir configure.ac version numbers should be unchanged. The 2940# same is true for a test/variable that is used only by one subdir 2941# being changed incompatibly; only that subdir's cache version needs 2942# bumping. 2943# 2944# If a change affects variables shared by all NTP configure scripts, 2945# please bump the version numbers of each. If you are not sure, the 2946# safe choice is to bump all on any cache-invalidating change. 2947# 2948# In order to avoid the risk of version stamp collision between -stable 2949# and -dev branches, do not simply increment the version, instead use 2950# the date YYYYMMDD optionally with -HHMM if there is more than one 2951# bump in a day. 2952 2953sntp_configure_cache_version=20120806 2954 2955# When the version of config.cache and configure do not 2956# match, NTP_CACHEVERSION will flush the cache. 2957 2958 2959 2960 ntp_cache_flush=1 2961 2962 case "$ntp_cv_sntp_cache_version" in 2963 $sntp_configure_cache_version) 2964 # same version, good 2965 ntp_cache_flush=0 2966 ;; 2967 '') 2968 # No cache, predates ntp_cv_sntp_cache_version, or is empty. 2969 case "$cache_file" in 2970 /dev/null) 2971 ntp_cache_flush=0 2972 ;; 2973 *) 2974 case "$NTP_CACHEVERSION_PARENT" in 2975 '') 2976 # Do not clear the cache immediately after it is created 2977 # empty as it is noisy. Differentiate a newly-created 2978 # config.cache from one predating the cache version 2979 # mechanism by looking for the first cached variable set 2980 # by Autoconf 2981 case "$ac_cv_path_install" in 2982 '') 2983 # empty config.cache file 2984 ntp_cache_flush=0 2985 esac 2986 ;; 2987 *) 2988 # Parent configure just created cache from empty, 2989 # flushing would be counterproductive. 2990 ntp_cache_flush=0; 2991 ;; 2992 esac 2993 esac 2994 ;; 2995 *) 2996 # configure cache version mismatches config.cache version 2997 ;; 2998 esac 2999 3000 case "$ntp_cache_flush" in 3001 1) 3002 c_version="${ntp_cv_sntp_cache_version:-(no version found)}" 3003 3004 # Do we flush all variables or exclude others' version stamps? 3005 3006 case "$NTP_CACHEVERSION_PARENT" in 3007 '') 3008 # Clear all *_cv_* variables including our child subdirs' 3009 # ntp_cv_*_cache_version variables. This prevents subdir 3010 # configure scripts from noticing a version mismatch just 3011 # after the top configure in the invocation cleared and 3012 # recreated the cache. 3013 3014 c_varname_list=`set | 3015 sed -n -e 's/=.*$//' \ 3016 -e '/_cv_/p' 3017 ` 3018 ;; 3019 *) 3020 # This is not the top configure this particular invocation. 3021 # Clear all *_cv_* variables sparing the version stamps 3022 # of other configure scripts, so we don't trigger 3023 # useless repeated clearings. 3024 3025 c_varname_list=`set | 3026 sed -n -e 's/=.*$//' \ 3027 -e '/ntp_cv_.*_cache_version/d' \ 3028 -e '/_cv_/p' 3029 ` 3030 esac 3031 3032 for c_varname in $c_varname_list 3033 do 3034 { eval $c_varname=; unset $c_varname; } 3035 done 3036 3037 { $as_echo "$as_me:${as_lineno-$LINENO}: $cache_file saved by another version, ignored." >&5 3038$as_echo "$as_me: $cache_file saved by another version, ignored." >&6;} 3039 { $as_echo "$as_me:${as_lineno-$LINENO}: configure script cache version: $sntp_configure_cache_version" >&5 3040$as_echo "$as_me: configure script cache version: $sntp_configure_cache_version" >&6;} 3041 { $as_echo "$as_me:${as_lineno-$LINENO}: $cache_file version: $c_version" >&5 3042$as_echo "$as_me: $cache_file version: $c_version" >&6;} 3043 { c_varname=; unset c_varname;} 3044 { c_varname_list=; unset c_varname_list;} 3045 { c_version=; unset c_version;} 3046 esac 3047 3048 { ntp_cache_flush=; unset ntp_cache_flush;} 3049 3050 # save configure version in config.cache for next time 3051 ntp_cv_sntp_cache_version="$sntp_configure_cache_version" 3052 3053 # let any subdir configure.ac NTP_CACHEVERSION invocations 3054 # know they are not the top level. 3055 NTP_CACHEVERSION_PARENT='sntp' ; export NTP_CACHEVERSION_PARENT 3056 3057 3058am__api_version='1.15' 3059 3060# Find a good install program. We prefer a C program (faster), 3061# so one script is as good as another. But avoid the broken or 3062# incompatible versions: 3063# SysV /etc/install, /usr/sbin/install 3064# SunOS /usr/etc/install 3065# IRIX /sbin/install 3066# AIX /bin/install 3067# AmigaOS /C/install, which installs bootblocks on floppy discs 3068# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3069# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3070# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3071# OS/2's system install, which has a completely different semantic 3072# ./install, which can be erroneously created by make from ./install.sh. 3073# Reject install programs that cannot install multiple files. 3074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 3075$as_echo_n "checking for a BSD-compatible install... " >&6; } 3076if test -z "$INSTALL"; then 3077if ${ac_cv_path_install+:} false; then : 3078 $as_echo_n "(cached) " >&6 3079else 3080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3081for as_dir in $PATH 3082do 3083 IFS=$as_save_IFS 3084 test -z "$as_dir" && as_dir=. 3085 # Account for people who put trailing slashes in PATH elements. 3086case $as_dir/ in #(( 3087 ./ | .// | /[cC]/* | \ 3088 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3089 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 3090 /usr/ucb/* ) ;; 3091 *) 3092 # OSF1 and SCO ODT 3.0 have their own names for install. 3093 # Don't use installbsd from OSF since it installs stuff as root 3094 # by default. 3095 for ac_prog in ginstall scoinst install; do 3096 for ac_exec_ext in '' $ac_executable_extensions; do 3097 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 3098 if test $ac_prog = install && 3099 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3100 # AIX install. It has an incompatible calling convention. 3101 : 3102 elif test $ac_prog = install && 3103 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3104 # program-specific install script used by HP pwplus--don't use. 3105 : 3106 else 3107 rm -rf conftest.one conftest.two conftest.dir 3108 echo one > conftest.one 3109 echo two > conftest.two 3110 mkdir conftest.dir 3111 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 3112 test -s conftest.one && test -s conftest.two && 3113 test -s conftest.dir/conftest.one && 3114 test -s conftest.dir/conftest.two 3115 then 3116 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3117 break 3 3118 fi 3119 fi 3120 fi 3121 done 3122 done 3123 ;; 3124esac 3125 3126 done 3127IFS=$as_save_IFS 3128 3129rm -rf conftest.one conftest.two conftest.dir 3130 3131fi 3132 if test "${ac_cv_path_install+set}" = set; then 3133 INSTALL=$ac_cv_path_install 3134 else 3135 # As a last resort, use the slow shell script. Don't cache a 3136 # value for INSTALL within a source directory, because that will 3137 # break other packages using the cache if that directory is 3138 # removed, or if the value is a relative name. 3139 INSTALL=$ac_install_sh 3140 fi 3141fi 3142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 3143$as_echo "$INSTALL" >&6; } 3144 3145# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3146# It thinks the first close brace ends the variable substitution. 3147test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3148 3149test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3150 3151test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3152 3153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 3154$as_echo_n "checking whether build environment is sane... " >&6; } 3155# Reject unsafe characters in $srcdir or the absolute working directory 3156# name. Accept space and tab only in the latter. 3157am_lf=' 3158' 3159case `pwd` in 3160 *[\\\"\#\$\&\'\`$am_lf]*) 3161 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 3162esac 3163case $srcdir in 3164 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 3165 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 3166esac 3167 3168# Do 'set' in a subshell so we don't clobber the current shell's 3169# arguments. Must try -L first in case configure is actually a 3170# symlink; some systems play weird games with the mod time of symlinks 3171# (eg FreeBSD returns the mod time of the symlink's containing 3172# directory). 3173if ( 3174 am_has_slept=no 3175 for am_try in 1 2; do 3176 echo "timestamp, slept: $am_has_slept" > conftest.file 3177 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 3178 if test "$*" = "X"; then 3179 # -L didn't work. 3180 set X `ls -t "$srcdir/configure" conftest.file` 3181 fi 3182 if test "$*" != "X $srcdir/configure conftest.file" \ 3183 && test "$*" != "X conftest.file $srcdir/configure"; then 3184 3185 # If neither matched, then we have a broken ls. This can happen 3186 # if, for instance, CONFIG_SHELL is bash and it inherits a 3187 # broken ls alias from the environment. This has actually 3188 # happened. Such a system could not be considered "sane". 3189 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 3190 alias in your environment" "$LINENO" 5 3191 fi 3192 if test "$2" = conftest.file || test $am_try -eq 2; then 3193 break 3194 fi 3195 # Just in case. 3196 sleep 1 3197 am_has_slept=yes 3198 done 3199 test "$2" = conftest.file 3200 ) 3201then 3202 # Ok. 3203 : 3204else 3205 as_fn_error $? "newly created file is older than distributed files! 3206Check your system clock" "$LINENO" 5 3207fi 3208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3209$as_echo "yes" >&6; } 3210# If we didn't sleep, we still need to ensure time stamps of config.status and 3211# generated files are strictly newer. 3212am_sleep_pid= 3213if grep 'slept: no' conftest.file >/dev/null 2>&1; then 3214 ( sleep 1 ) & 3215 am_sleep_pid=$! 3216fi 3217 3218rm -f conftest.file 3219 3220test "$program_prefix" != NONE && 3221 program_transform_name="s&^&$program_prefix&;$program_transform_name" 3222# Use a double $ so make ignores it. 3223test "$program_suffix" != NONE && 3224 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 3225# Double any \ or $. 3226# By default was `s,x,x', remove it if useless. 3227ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 3228program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 3229 3230# Expand $ac_aux_dir to an absolute path. 3231am_aux_dir=`cd "$ac_aux_dir" && pwd` 3232 3233if test x"${MISSING+set}" != xset; then 3234 case $am_aux_dir in 3235 *\ * | *\ *) 3236 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 3237 *) 3238 MISSING="\${SHELL} $am_aux_dir/missing" ;; 3239 esac 3240fi 3241# Use eval to expand $SHELL 3242if eval "$MISSING --is-lightweight"; then 3243 am_missing_run="$MISSING " 3244else 3245 am_missing_run= 3246 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 3247$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 3248fi 3249 3250if test x"${install_sh+set}" != xset; then 3251 case $am_aux_dir in 3252 *\ * | *\ *) 3253 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 3254 *) 3255 install_sh="\${SHELL} $am_aux_dir/install-sh" 3256 esac 3257fi 3258 3259# Installed binaries are usually stripped using 'strip' when the user 3260# run "make install-strip". However 'strip' might not be the right 3261# tool to use in cross-compilation environments, therefore Automake 3262# will honor the 'STRIP' environment variable to overrule this program. 3263if test "$cross_compiling" != no; then 3264 if test -n "$ac_tool_prefix"; then 3265 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3266set dummy ${ac_tool_prefix}strip; ac_word=$2 3267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3268$as_echo_n "checking for $ac_word... " >&6; } 3269if ${ac_cv_prog_STRIP+:} false; then : 3270 $as_echo_n "(cached) " >&6 3271else 3272 if test -n "$STRIP"; then 3273 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3274else 3275as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3276for as_dir in $PATH 3277do 3278 IFS=$as_save_IFS 3279 test -z "$as_dir" && as_dir=. 3280 for ac_exec_ext in '' $ac_executable_extensions; do 3281 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3282 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3284 break 2 3285 fi 3286done 3287 done 3288IFS=$as_save_IFS 3289 3290fi 3291fi 3292STRIP=$ac_cv_prog_STRIP 3293if test -n "$STRIP"; then 3294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3295$as_echo "$STRIP" >&6; } 3296else 3297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3298$as_echo "no" >&6; } 3299fi 3300 3301 3302fi 3303if test -z "$ac_cv_prog_STRIP"; then 3304 ac_ct_STRIP=$STRIP 3305 # Extract the first word of "strip", so it can be a program name with args. 3306set dummy strip; ac_word=$2 3307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3308$as_echo_n "checking for $ac_word... " >&6; } 3309if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 3310 $as_echo_n "(cached) " >&6 3311else 3312 if test -n "$ac_ct_STRIP"; then 3313 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3314else 3315as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3316for as_dir in $PATH 3317do 3318 IFS=$as_save_IFS 3319 test -z "$as_dir" && as_dir=. 3320 for ac_exec_ext in '' $ac_executable_extensions; do 3321 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3322 ac_cv_prog_ac_ct_STRIP="strip" 3323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3324 break 2 3325 fi 3326done 3327 done 3328IFS=$as_save_IFS 3329 3330fi 3331fi 3332ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3333if test -n "$ac_ct_STRIP"; then 3334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3335$as_echo "$ac_ct_STRIP" >&6; } 3336else 3337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3338$as_echo "no" >&6; } 3339fi 3340 3341 if test "x$ac_ct_STRIP" = x; then 3342 STRIP=":" 3343 else 3344 case $cross_compiling:$ac_tool_warned in 3345yes:) 3346{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3347$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3348ac_tool_warned=yes ;; 3349esac 3350 STRIP=$ac_ct_STRIP 3351 fi 3352else 3353 STRIP="$ac_cv_prog_STRIP" 3354fi 3355 3356fi 3357INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3358 3359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 3360$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 3361if test -z "$MKDIR_P"; then 3362 if ${ac_cv_path_mkdir+:} false; then : 3363 $as_echo_n "(cached) " >&6 3364else 3365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3366for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3367do 3368 IFS=$as_save_IFS 3369 test -z "$as_dir" && as_dir=. 3370 for ac_prog in mkdir gmkdir; do 3371 for ac_exec_ext in '' $ac_executable_extensions; do 3372 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 3373 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 3374 'mkdir (GNU coreutils) '* | \ 3375 'mkdir (coreutils) '* | \ 3376 'mkdir (fileutils) '4.1*) 3377 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 3378 break 3;; 3379 esac 3380 done 3381 done 3382 done 3383IFS=$as_save_IFS 3384 3385fi 3386 3387 test -d ./--version && rmdir ./--version 3388 if test "${ac_cv_path_mkdir+set}" = set; then 3389 MKDIR_P="$ac_cv_path_mkdir -p" 3390 else 3391 # As a last resort, use the slow shell script. Don't cache a 3392 # value for MKDIR_P within a source directory, because that will 3393 # break other packages using the cache if that directory is 3394 # removed, or if the value is a relative name. 3395 MKDIR_P="$ac_install_sh -d" 3396 fi 3397fi 3398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3399$as_echo "$MKDIR_P" >&6; } 3400 3401for ac_prog in gawk mawk nawk awk 3402do 3403 # Extract the first word of "$ac_prog", so it can be a program name with args. 3404set dummy $ac_prog; ac_word=$2 3405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3406$as_echo_n "checking for $ac_word... " >&6; } 3407if ${ac_cv_prog_AWK+:} false; then : 3408 $as_echo_n "(cached) " >&6 3409else 3410 if test -n "$AWK"; then 3411 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3412else 3413as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3414for as_dir in $PATH 3415do 3416 IFS=$as_save_IFS 3417 test -z "$as_dir" && as_dir=. 3418 for ac_exec_ext in '' $ac_executable_extensions; do 3419 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3420 ac_cv_prog_AWK="$ac_prog" 3421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3422 break 2 3423 fi 3424done 3425 done 3426IFS=$as_save_IFS 3427 3428fi 3429fi 3430AWK=$ac_cv_prog_AWK 3431if test -n "$AWK"; then 3432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3433$as_echo "$AWK" >&6; } 3434else 3435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3436$as_echo "no" >&6; } 3437fi 3438 3439 3440 test -n "$AWK" && break 3441done 3442 3443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3444$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3445set x ${MAKE-make} 3446ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3447if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 3448 $as_echo_n "(cached) " >&6 3449else 3450 cat >conftest.make <<\_ACEOF 3451SHELL = /bin/sh 3452all: 3453 @echo '@@@%%%=$(MAKE)=@@@%%%' 3454_ACEOF 3455# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3456case `${MAKE-make} -f conftest.make 2>/dev/null` in 3457 *@@@%%%=?*=@@@%%%*) 3458 eval ac_cv_prog_make_${ac_make}_set=yes;; 3459 *) 3460 eval ac_cv_prog_make_${ac_make}_set=no;; 3461esac 3462rm -f conftest.make 3463fi 3464if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3466$as_echo "yes" >&6; } 3467 SET_MAKE= 3468else 3469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3470$as_echo "no" >&6; } 3471 SET_MAKE="MAKE=${MAKE-make}" 3472fi 3473 3474rm -rf .tst 2>/dev/null 3475mkdir .tst 2>/dev/null 3476if test -d .tst; then 3477 am__leading_dot=. 3478else 3479 am__leading_dot=_ 3480fi 3481rmdir .tst 2>/dev/null 3482 3483# Check whether --enable-silent-rules was given. 3484if test "${enable_silent_rules+set}" = set; then : 3485 enableval=$enable_silent_rules; 3486fi 3487 3488case $enable_silent_rules in # ((( 3489 yes) AM_DEFAULT_VERBOSITY=0;; 3490 no) AM_DEFAULT_VERBOSITY=1;; 3491 *) AM_DEFAULT_VERBOSITY=1;; 3492esac 3493am_make=${MAKE-make} 3494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3495$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 3496if ${am_cv_make_support_nested_variables+:} false; then : 3497 $as_echo_n "(cached) " >&6 3498else 3499 if $as_echo 'TRUE=$(BAR$(V)) 3500BAR0=false 3501BAR1=true 3502V=1 3503am__doit: 3504 @$(TRUE) 3505.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3506 am_cv_make_support_nested_variables=yes 3507else 3508 am_cv_make_support_nested_variables=no 3509fi 3510fi 3511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3512$as_echo "$am_cv_make_support_nested_variables" >&6; } 3513if test $am_cv_make_support_nested_variables = yes; then 3514 AM_V='$(V)' 3515 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3516else 3517 AM_V=$AM_DEFAULT_VERBOSITY 3518 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3519fi 3520AM_BACKSLASH='\' 3521 3522if test "`cd $srcdir && pwd`" != "`pwd`"; then 3523 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3524 # is not polluted with repeated "-I." 3525 am__isrc=' -I$(srcdir)' 3526 # test to see if srcdir already configured 3527 if test -f $srcdir/config.status; then 3528 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3529 fi 3530fi 3531 3532# test whether we have cygpath 3533if test -z "$CYGPATH_W"; then 3534 if (cygpath --version) >/dev/null 2>/dev/null; then 3535 CYGPATH_W='cygpath -w' 3536 else 3537 CYGPATH_W=echo 3538 fi 3539fi 3540 3541 3542# Define the identity of the package. 3543 PACKAGE='sntp' 3544 VERSION='4.2.8p5' 3545 3546 3547cat >>confdefs.h <<_ACEOF 3548#define PACKAGE "$PACKAGE" 3549_ACEOF 3550 3551 3552cat >>confdefs.h <<_ACEOF 3553#define VERSION "$VERSION" 3554_ACEOF 3555 3556# Some tools Automake needs. 3557 3558ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3559 3560 3561AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3562 3563 3564AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3565 3566 3567AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3568 3569 3570MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3571 3572# For better backward compatibility. To be removed once Automake 1.9.x 3573# dies out for good. For more background, see: 3574# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3575# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3576mkdir_p='$(MKDIR_P)' 3577 3578# We need awk for the "check" target (and possibly the TAP driver). The 3579# system "awk" is bad on some platforms. 3580# Always define AMTAR for backward compatibility. Yes, it's still used 3581# in the wild :-( We should find a proper way to deprecate it ... 3582AMTAR='$${TAR-tar}' 3583 3584 3585# We'll loop over all known methods to create a tar archive until one works. 3586_am_tools='gnutar pax cpio none' 3587 3588am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3589 3590 3591 3592 3593 3594 3595# POSIX will say in a future version that running "rm -f" with no argument 3596# is OK; and we want to be able to make that assumption in our Makefile 3597# recipes. So use an aggressive probe to check that the usage we want is 3598# actually supported "in the wild" to an acceptable degree. 3599# See automake bug#10828. 3600# To make any issue more visible, cause the running configure to be aborted 3601# by default if the 'rm' program in use doesn't match our expectations; the 3602# user can still override this though. 3603if rm -f && rm -fr && rm -rf; then : OK; else 3604 cat >&2 <<'END' 3605Oops! 3606 3607Your 'rm' program seems unable to run without file operands specified 3608on the command line, even when the '-f' option is present. This is contrary 3609to the behaviour of most rm programs out there, and not conforming with 3610the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3611 3612Please tell bug-automake@gnu.org about your system, including the value 3613of your $PATH and any error possibly output before this message. This 3614can help us improve future automake versions. 3615 3616END 3617 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3618 echo 'Configuration will proceed anyway, since you have set the' >&2 3619 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3620 echo >&2 3621 else 3622 cat >&2 <<'END' 3623Aborting the configuration process, to ensure you take notice of the issue. 3624 3625You can download and install GNU coreutils to get an 'rm' implementation 3626that behaves properly: <http://www.gnu.org/software/coreutils/>. 3627 3628If you want to complete the configuration process using your problematic 3629'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3630to "yes", and re-run configure. 3631 3632END 3633 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3634 fi 3635fi 3636 3637# Check whether --enable-silent-rules was given. 3638if test "${enable_silent_rules+set}" = set; then : 3639 enableval=$enable_silent_rules; 3640fi 3641 3642case $enable_silent_rules in # ((( 3643 yes) AM_DEFAULT_VERBOSITY=0;; 3644 no) AM_DEFAULT_VERBOSITY=1;; 3645 *) AM_DEFAULT_VERBOSITY=0;; 3646esac 3647am_make=${MAKE-make} 3648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3649$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 3650if ${am_cv_make_support_nested_variables+:} false; then : 3651 $as_echo_n "(cached) " >&6 3652else 3653 if $as_echo 'TRUE=$(BAR$(V)) 3654BAR0=false 3655BAR1=true 3656V=1 3657am__doit: 3658 @$(TRUE) 3659.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3660 am_cv_make_support_nested_variables=yes 3661else 3662 am_cv_make_support_nested_variables=no 3663fi 3664fi 3665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3666$as_echo "$am_cv_make_support_nested_variables" >&6; } 3667if test $am_cv_make_support_nested_variables = yes; then 3668 AM_V='$(V)' 3669 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3670else 3671 AM_V=$AM_DEFAULT_VERBOSITY 3672 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3673fi 3674AM_BACKSLASH='\' 3675 3676 3677# Make sure we can run config.sub. 3678$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 3679 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 3680 3681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 3682$as_echo_n "checking build system type... " >&6; } 3683if ${ac_cv_build+:} false; then : 3684 $as_echo_n "(cached) " >&6 3685else 3686 ac_build_alias=$build_alias 3687test "x$ac_build_alias" = x && 3688 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3689test "x$ac_build_alias" = x && 3690 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 3691ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3692 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 3693 3694fi 3695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 3696$as_echo "$ac_cv_build" >&6; } 3697case $ac_cv_build in 3698*-*-*) ;; 3699*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 3700esac 3701build=$ac_cv_build 3702ac_save_IFS=$IFS; IFS='-' 3703set x $ac_cv_build 3704shift 3705build_cpu=$1 3706build_vendor=$2 3707shift; shift 3708# Remember, the first character of IFS is used to create $*, 3709# except with old shells: 3710build_os=$* 3711IFS=$ac_save_IFS 3712case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3713 3714 3715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 3716$as_echo_n "checking host system type... " >&6; } 3717if ${ac_cv_host+:} false; then : 3718 $as_echo_n "(cached) " >&6 3719else 3720 if test "x$host_alias" = x; then 3721 ac_cv_host=$ac_cv_build 3722else 3723 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3724 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 3725fi 3726 3727fi 3728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 3729$as_echo "$ac_cv_host" >&6; } 3730case $ac_cv_host in 3731*-*-*) ;; 3732*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 3733esac 3734host=$ac_cv_host 3735ac_save_IFS=$IFS; IFS='-' 3736set x $ac_cv_host 3737shift 3738host_cpu=$1 3739host_vendor=$2 3740shift; shift 3741# Remember, the first character of IFS is used to create $*, 3742# except with old shells: 3743host_os=$* 3744IFS=$ac_save_IFS 3745case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3746 3747 3748 3749cat >>confdefs.h <<_ACEOF 3750#define STR_SYSTEM "$host" 3751_ACEOF 3752 3753ac_config_headers="$ac_config_headers config.h" 3754 3755 3756DEPDIR="${am__leading_dot}deps" 3757 3758ac_config_commands="$ac_config_commands depfiles" 3759 3760 3761am_make=${MAKE-make} 3762cat > confinc << 'END' 3763am__doit: 3764 @echo this is the am__doit target 3765.PHONY: am__doit 3766END 3767# If we don't find an include directive, just comment out the code. 3768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3769$as_echo_n "checking for style of include used by $am_make... " >&6; } 3770am__include="#" 3771am__quote= 3772_am_result=none 3773# First try GNU make style include. 3774echo "include confinc" > confmf 3775# Ignore all kinds of additional output from 'make'. 3776case `$am_make -s -f confmf 2> /dev/null` in #( 3777*the\ am__doit\ target*) 3778 am__include=include 3779 am__quote= 3780 _am_result=GNU 3781 ;; 3782esac 3783# Now try BSD make style include. 3784if test "$am__include" = "#"; then 3785 echo '.include "confinc"' > confmf 3786 case `$am_make -s -f confmf 2> /dev/null` in #( 3787 *the\ am__doit\ target*) 3788 am__include=.include 3789 am__quote="\"" 3790 _am_result=BSD 3791 ;; 3792 esac 3793fi 3794 3795 3796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3797$as_echo "$_am_result" >&6; } 3798rm -f confinc confmf 3799 3800# Check whether --enable-dependency-tracking was given. 3801if test "${enable_dependency_tracking+set}" = set; then : 3802 enableval=$enable_dependency_tracking; 3803fi 3804 3805if test "x$enable_dependency_tracking" != xno; then 3806 am_depcomp="$ac_aux_dir/depcomp" 3807 AMDEPBACKSLASH='\' 3808 am__nodep='_no' 3809fi 3810 if test "x$enable_dependency_tracking" != xno; then 3811 AMDEP_TRUE= 3812 AMDEP_FALSE='#' 3813else 3814 AMDEP_TRUE='#' 3815 AMDEP_FALSE= 3816fi 3817 3818 3819ac_ext=c 3820ac_cpp='$CPP $CPPFLAGS' 3821ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3822ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3823ac_compiler_gnu=$ac_cv_c_compiler_gnu 3824if test -n "$ac_tool_prefix"; then 3825 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3826set dummy ${ac_tool_prefix}gcc; ac_word=$2 3827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3828$as_echo_n "checking for $ac_word... " >&6; } 3829if ${ac_cv_prog_CC+:} false; then : 3830 $as_echo_n "(cached) " >&6 3831else 3832 if test -n "$CC"; then 3833 ac_cv_prog_CC="$CC" # Let the user override the test. 3834else 3835as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3836for as_dir in $PATH 3837do 3838 IFS=$as_save_IFS 3839 test -z "$as_dir" && as_dir=. 3840 for ac_exec_ext in '' $ac_executable_extensions; do 3841 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3842 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3844 break 2 3845 fi 3846done 3847 done 3848IFS=$as_save_IFS 3849 3850fi 3851fi 3852CC=$ac_cv_prog_CC 3853if test -n "$CC"; then 3854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3855$as_echo "$CC" >&6; } 3856else 3857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3858$as_echo "no" >&6; } 3859fi 3860 3861 3862fi 3863if test -z "$ac_cv_prog_CC"; then 3864 ac_ct_CC=$CC 3865 # Extract the first word of "gcc", so it can be a program name with args. 3866set dummy gcc; ac_word=$2 3867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3868$as_echo_n "checking for $ac_word... " >&6; } 3869if ${ac_cv_prog_ac_ct_CC+:} false; then : 3870 $as_echo_n "(cached) " >&6 3871else 3872 if test -n "$ac_ct_CC"; then 3873 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3874else 3875as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3876for as_dir in $PATH 3877do 3878 IFS=$as_save_IFS 3879 test -z "$as_dir" && as_dir=. 3880 for ac_exec_ext in '' $ac_executable_extensions; do 3881 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3882 ac_cv_prog_ac_ct_CC="gcc" 3883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3884 break 2 3885 fi 3886done 3887 done 3888IFS=$as_save_IFS 3889 3890fi 3891fi 3892ac_ct_CC=$ac_cv_prog_ac_ct_CC 3893if test -n "$ac_ct_CC"; then 3894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3895$as_echo "$ac_ct_CC" >&6; } 3896else 3897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3898$as_echo "no" >&6; } 3899fi 3900 3901 if test "x$ac_ct_CC" = x; then 3902 CC="" 3903 else 3904 case $cross_compiling:$ac_tool_warned in 3905yes:) 3906{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3907$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3908ac_tool_warned=yes ;; 3909esac 3910 CC=$ac_ct_CC 3911 fi 3912else 3913 CC="$ac_cv_prog_CC" 3914fi 3915 3916if test -z "$CC"; then 3917 if test -n "$ac_tool_prefix"; then 3918 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3919set dummy ${ac_tool_prefix}cc; ac_word=$2 3920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3921$as_echo_n "checking for $ac_word... " >&6; } 3922if ${ac_cv_prog_CC+:} false; then : 3923 $as_echo_n "(cached) " >&6 3924else 3925 if test -n "$CC"; then 3926 ac_cv_prog_CC="$CC" # Let the user override the test. 3927else 3928as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3929for as_dir in $PATH 3930do 3931 IFS=$as_save_IFS 3932 test -z "$as_dir" && as_dir=. 3933 for ac_exec_ext in '' $ac_executable_extensions; do 3934 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3935 ac_cv_prog_CC="${ac_tool_prefix}cc" 3936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3937 break 2 3938 fi 3939done 3940 done 3941IFS=$as_save_IFS 3942 3943fi 3944fi 3945CC=$ac_cv_prog_CC 3946if test -n "$CC"; then 3947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3948$as_echo "$CC" >&6; } 3949else 3950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3951$as_echo "no" >&6; } 3952fi 3953 3954 3955 fi 3956fi 3957if test -z "$CC"; then 3958 # Extract the first word of "cc", so it can be a program name with args. 3959set dummy cc; ac_word=$2 3960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3961$as_echo_n "checking for $ac_word... " >&6; } 3962if ${ac_cv_prog_CC+:} false; then : 3963 $as_echo_n "(cached) " >&6 3964else 3965 if test -n "$CC"; then 3966 ac_cv_prog_CC="$CC" # Let the user override the test. 3967else 3968 ac_prog_rejected=no 3969as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3970for as_dir in $PATH 3971do 3972 IFS=$as_save_IFS 3973 test -z "$as_dir" && as_dir=. 3974 for ac_exec_ext in '' $ac_executable_extensions; do 3975 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3976 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3977 ac_prog_rejected=yes 3978 continue 3979 fi 3980 ac_cv_prog_CC="cc" 3981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3982 break 2 3983 fi 3984done 3985 done 3986IFS=$as_save_IFS 3987 3988if test $ac_prog_rejected = yes; then 3989 # We found a bogon in the path, so make sure we never use it. 3990 set dummy $ac_cv_prog_CC 3991 shift 3992 if test $# != 0; then 3993 # We chose a different compiler from the bogus one. 3994 # However, it has the same basename, so the bogon will be chosen 3995 # first if we set CC to just the basename; use the full file name. 3996 shift 3997 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3998 fi 3999fi 4000fi 4001fi 4002CC=$ac_cv_prog_CC 4003if test -n "$CC"; then 4004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4005$as_echo "$CC" >&6; } 4006else 4007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4008$as_echo "no" >&6; } 4009fi 4010 4011 4012fi 4013if test -z "$CC"; then 4014 if test -n "$ac_tool_prefix"; then 4015 for ac_prog in cl.exe 4016 do 4017 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4018set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4020$as_echo_n "checking for $ac_word... " >&6; } 4021if ${ac_cv_prog_CC+:} false; then : 4022 $as_echo_n "(cached) " >&6 4023else 4024 if test -n "$CC"; then 4025 ac_cv_prog_CC="$CC" # Let the user override the test. 4026else 4027as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4028for as_dir in $PATH 4029do 4030 IFS=$as_save_IFS 4031 test -z "$as_dir" && as_dir=. 4032 for ac_exec_ext in '' $ac_executable_extensions; do 4033 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4034 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 4035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4036 break 2 4037 fi 4038done 4039 done 4040IFS=$as_save_IFS 4041 4042fi 4043fi 4044CC=$ac_cv_prog_CC 4045if test -n "$CC"; then 4046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4047$as_echo "$CC" >&6; } 4048else 4049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4050$as_echo "no" >&6; } 4051fi 4052 4053 4054 test -n "$CC" && break 4055 done 4056fi 4057if test -z "$CC"; then 4058 ac_ct_CC=$CC 4059 for ac_prog in cl.exe 4060do 4061 # Extract the first word of "$ac_prog", so it can be a program name with args. 4062set dummy $ac_prog; ac_word=$2 4063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4064$as_echo_n "checking for $ac_word... " >&6; } 4065if ${ac_cv_prog_ac_ct_CC+:} false; then : 4066 $as_echo_n "(cached) " >&6 4067else 4068 if test -n "$ac_ct_CC"; then 4069 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4070else 4071as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4072for as_dir in $PATH 4073do 4074 IFS=$as_save_IFS 4075 test -z "$as_dir" && as_dir=. 4076 for ac_exec_ext in '' $ac_executable_extensions; do 4077 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4078 ac_cv_prog_ac_ct_CC="$ac_prog" 4079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4080 break 2 4081 fi 4082done 4083 done 4084IFS=$as_save_IFS 4085 4086fi 4087fi 4088ac_ct_CC=$ac_cv_prog_ac_ct_CC 4089if test -n "$ac_ct_CC"; then 4090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4091$as_echo "$ac_ct_CC" >&6; } 4092else 4093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4094$as_echo "no" >&6; } 4095fi 4096 4097 4098 test -n "$ac_ct_CC" && break 4099done 4100 4101 if test "x$ac_ct_CC" = x; then 4102 CC="" 4103 else 4104 case $cross_compiling:$ac_tool_warned in 4105yes:) 4106{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4107$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4108ac_tool_warned=yes ;; 4109esac 4110 CC=$ac_ct_CC 4111 fi 4112fi 4113 4114fi 4115 4116 4117test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4118$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4119as_fn_error $? "no acceptable C compiler found in \$PATH 4120See \`config.log' for more details" "$LINENO" 5; } 4121 4122# Provide some information about the compiler. 4123$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 4124set X $ac_compile 4125ac_compiler=$2 4126for ac_option in --version -v -V -qversion; do 4127 { { ac_try="$ac_compiler $ac_option >&5" 4128case "(($ac_try" in 4129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4130 *) ac_try_echo=$ac_try;; 4131esac 4132eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4133$as_echo "$ac_try_echo"; } >&5 4134 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4135 ac_status=$? 4136 if test -s conftest.err; then 4137 sed '10a\ 4138... rest of stderr output deleted ... 4139 10q' conftest.err >conftest.er1 4140 cat conftest.er1 >&5 4141 fi 4142 rm -f conftest.er1 conftest.err 4143 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4144 test $ac_status = 0; } 4145done 4146 4147cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4148/* end confdefs.h. */ 4149 4150int 4151main () 4152{ 4153 4154 ; 4155 return 0; 4156} 4157_ACEOF 4158ac_clean_files_save=$ac_clean_files 4159ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 4160# Try to create an executable without -o first, disregard a.out. 4161# It will help us diagnose broken compilers, and finding out an intuition 4162# of exeext. 4163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 4164$as_echo_n "checking whether the C compiler works... " >&6; } 4165ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 4166 4167# The possible output files: 4168ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 4169 4170ac_rmfiles= 4171for ac_file in $ac_files 4172do 4173 case $ac_file in 4174 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4175 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 4176 esac 4177done 4178rm -f $ac_rmfiles 4179 4180if { { ac_try="$ac_link_default" 4181case "(($ac_try" in 4182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4183 *) ac_try_echo=$ac_try;; 4184esac 4185eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4186$as_echo "$ac_try_echo"; } >&5 4187 (eval "$ac_link_default") 2>&5 4188 ac_status=$? 4189 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4190 test $ac_status = 0; }; then : 4191 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 4192# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 4193# in a Makefile. We should not override ac_cv_exeext if it was cached, 4194# so that the user can short-circuit this test for compilers unknown to 4195# Autoconf. 4196for ac_file in $ac_files '' 4197do 4198 test -f "$ac_file" || continue 4199 case $ac_file in 4200 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 4201 ;; 4202 [ab].out ) 4203 # We found the default executable, but exeext='' is most 4204 # certainly right. 4205 break;; 4206 *.* ) 4207 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 4208 then :; else 4209 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4210 fi 4211 # We set ac_cv_exeext here because the later test for it is not 4212 # safe: cross compilers may not add the suffix if given an `-o' 4213 # argument, so we may need to know it at that point already. 4214 # Even if this section looks crufty: it has the advantage of 4215 # actually working. 4216 break;; 4217 * ) 4218 break;; 4219 esac 4220done 4221test "$ac_cv_exeext" = no && ac_cv_exeext= 4222 4223else 4224 ac_file='' 4225fi 4226if test -z "$ac_file"; then : 4227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4228$as_echo "no" >&6; } 4229$as_echo "$as_me: failed program was:" >&5 4230sed 's/^/| /' conftest.$ac_ext >&5 4231 4232{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4233$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4234as_fn_error 77 "C compiler cannot create executables 4235See \`config.log' for more details" "$LINENO" 5; } 4236else 4237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4238$as_echo "yes" >&6; } 4239fi 4240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 4241$as_echo_n "checking for C compiler default output file name... " >&6; } 4242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 4243$as_echo "$ac_file" >&6; } 4244ac_exeext=$ac_cv_exeext 4245 4246rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 4247ac_clean_files=$ac_clean_files_save 4248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 4249$as_echo_n "checking for suffix of executables... " >&6; } 4250if { { ac_try="$ac_link" 4251case "(($ac_try" in 4252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4253 *) ac_try_echo=$ac_try;; 4254esac 4255eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4256$as_echo "$ac_try_echo"; } >&5 4257 (eval "$ac_link") 2>&5 4258 ac_status=$? 4259 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4260 test $ac_status = 0; }; then : 4261 # If both `conftest.exe' and `conftest' are `present' (well, observable) 4262# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 4263# work properly (i.e., refer to `conftest.exe'), while it won't with 4264# `rm'. 4265for ac_file in conftest.exe conftest conftest.*; do 4266 test -f "$ac_file" || continue 4267 case $ac_file in 4268 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4269 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4270 break;; 4271 * ) break;; 4272 esac 4273done 4274else 4275 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4276$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4277as_fn_error $? "cannot compute suffix of executables: cannot compile and link 4278See \`config.log' for more details" "$LINENO" 5; } 4279fi 4280rm -f conftest conftest$ac_cv_exeext 4281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 4282$as_echo "$ac_cv_exeext" >&6; } 4283 4284rm -f conftest.$ac_ext 4285EXEEXT=$ac_cv_exeext 4286ac_exeext=$EXEEXT 4287cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4288/* end confdefs.h. */ 4289#include <stdio.h> 4290int 4291main () 4292{ 4293FILE *f = fopen ("conftest.out", "w"); 4294 return ferror (f) || fclose (f) != 0; 4295 4296 ; 4297 return 0; 4298} 4299_ACEOF 4300ac_clean_files="$ac_clean_files conftest.out" 4301# Check that the compiler produces executables we can run. If not, either 4302# the compiler is broken, or we cross compile. 4303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4304$as_echo_n "checking whether we are cross compiling... " >&6; } 4305if test "$cross_compiling" != yes; then 4306 { { ac_try="$ac_link" 4307case "(($ac_try" in 4308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4309 *) ac_try_echo=$ac_try;; 4310esac 4311eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4312$as_echo "$ac_try_echo"; } >&5 4313 (eval "$ac_link") 2>&5 4314 ac_status=$? 4315 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4316 test $ac_status = 0; } 4317 if { ac_try='./conftest$ac_cv_exeext' 4318 { { case "(($ac_try" in 4319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4320 *) ac_try_echo=$ac_try;; 4321esac 4322eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4323$as_echo "$ac_try_echo"; } >&5 4324 (eval "$ac_try") 2>&5 4325 ac_status=$? 4326 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4327 test $ac_status = 0; }; }; then 4328 cross_compiling=no 4329 else 4330 if test "$cross_compiling" = maybe; then 4331 cross_compiling=yes 4332 else 4333 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4334$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4335as_fn_error $? "cannot run C compiled programs. 4336If you meant to cross compile, use \`--host'. 4337See \`config.log' for more details" "$LINENO" 5; } 4338 fi 4339 fi 4340fi 4341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4342$as_echo "$cross_compiling" >&6; } 4343 4344rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 4345ac_clean_files=$ac_clean_files_save 4346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4347$as_echo_n "checking for suffix of object files... " >&6; } 4348if ${ac_cv_objext+:} false; then : 4349 $as_echo_n "(cached) " >&6 4350else 4351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4352/* end confdefs.h. */ 4353 4354int 4355main () 4356{ 4357 4358 ; 4359 return 0; 4360} 4361_ACEOF 4362rm -f conftest.o conftest.obj 4363if { { ac_try="$ac_compile" 4364case "(($ac_try" in 4365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4366 *) ac_try_echo=$ac_try;; 4367esac 4368eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4369$as_echo "$ac_try_echo"; } >&5 4370 (eval "$ac_compile") 2>&5 4371 ac_status=$? 4372 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4373 test $ac_status = 0; }; then : 4374 for ac_file in conftest.o conftest.obj conftest.*; do 4375 test -f "$ac_file" || continue; 4376 case $ac_file in 4377 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4378 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4379 break;; 4380 esac 4381done 4382else 4383 $as_echo "$as_me: failed program was:" >&5 4384sed 's/^/| /' conftest.$ac_ext >&5 4385 4386{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4387$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4388as_fn_error $? "cannot compute suffix of object files: cannot compile 4389See \`config.log' for more details" "$LINENO" 5; } 4390fi 4391rm -f conftest.$ac_cv_objext conftest.$ac_ext 4392fi 4393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4394$as_echo "$ac_cv_objext" >&6; } 4395OBJEXT=$ac_cv_objext 4396ac_objext=$OBJEXT 4397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4398$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4399if ${ac_cv_c_compiler_gnu+:} false; then : 4400 $as_echo_n "(cached) " >&6 4401else 4402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4403/* end confdefs.h. */ 4404 4405int 4406main () 4407{ 4408#ifndef __GNUC__ 4409 choke me 4410#endif 4411 4412 ; 4413 return 0; 4414} 4415_ACEOF 4416if ac_fn_c_try_compile "$LINENO"; then : 4417 ac_compiler_gnu=yes 4418else 4419 ac_compiler_gnu=no 4420fi 4421rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4422ac_cv_c_compiler_gnu=$ac_compiler_gnu 4423 4424fi 4425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4426$as_echo "$ac_cv_c_compiler_gnu" >&6; } 4427if test $ac_compiler_gnu = yes; then 4428 GCC=yes 4429else 4430 GCC= 4431fi 4432ac_test_CFLAGS=${CFLAGS+set} 4433ac_save_CFLAGS=$CFLAGS 4434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4435$as_echo_n "checking whether $CC accepts -g... " >&6; } 4436if ${ac_cv_prog_cc_g+:} false; then : 4437 $as_echo_n "(cached) " >&6 4438else 4439 ac_save_c_werror_flag=$ac_c_werror_flag 4440 ac_c_werror_flag=yes 4441 ac_cv_prog_cc_g=no 4442 CFLAGS="-g" 4443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4444/* end confdefs.h. */ 4445 4446int 4447main () 4448{ 4449 4450 ; 4451 return 0; 4452} 4453_ACEOF 4454if ac_fn_c_try_compile "$LINENO"; then : 4455 ac_cv_prog_cc_g=yes 4456else 4457 CFLAGS="" 4458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4459/* end confdefs.h. */ 4460 4461int 4462main () 4463{ 4464 4465 ; 4466 return 0; 4467} 4468_ACEOF 4469if ac_fn_c_try_compile "$LINENO"; then : 4470 4471else 4472 ac_c_werror_flag=$ac_save_c_werror_flag 4473 CFLAGS="-g" 4474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4475/* end confdefs.h. */ 4476 4477int 4478main () 4479{ 4480 4481 ; 4482 return 0; 4483} 4484_ACEOF 4485if ac_fn_c_try_compile "$LINENO"; then : 4486 ac_cv_prog_cc_g=yes 4487fi 4488rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4489fi 4490rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4491fi 4492rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4493 ac_c_werror_flag=$ac_save_c_werror_flag 4494fi 4495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4496$as_echo "$ac_cv_prog_cc_g" >&6; } 4497if test "$ac_test_CFLAGS" = set; then 4498 CFLAGS=$ac_save_CFLAGS 4499elif test $ac_cv_prog_cc_g = yes; then 4500 if test "$GCC" = yes; then 4501 CFLAGS="-g -O2" 4502 else 4503 CFLAGS="-g" 4504 fi 4505else 4506 if test "$GCC" = yes; then 4507 CFLAGS="-O2" 4508 else 4509 CFLAGS= 4510 fi 4511fi 4512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4513$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4514if ${ac_cv_prog_cc_c89+:} false; then : 4515 $as_echo_n "(cached) " >&6 4516else 4517 ac_cv_prog_cc_c89=no 4518ac_save_CC=$CC 4519cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4520/* end confdefs.h. */ 4521#include <stdarg.h> 4522#include <stdio.h> 4523struct stat; 4524/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4525struct buf { int x; }; 4526FILE * (*rcsopen) (struct buf *, struct stat *, int); 4527static char *e (p, i) 4528 char **p; 4529 int i; 4530{ 4531 return p[i]; 4532} 4533static char *f (char * (*g) (char **, int), char **p, ...) 4534{ 4535 char *s; 4536 va_list v; 4537 va_start (v,p); 4538 s = g (p, va_arg (v,int)); 4539 va_end (v); 4540 return s; 4541} 4542 4543/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4544 function prototypes and stuff, but not '\xHH' hex character constants. 4545 These don't provoke an error unfortunately, instead are silently treated 4546 as 'x'. The following induces an error, until -std is added to get 4547 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4548 array size at least. It's necessary to write '\x00'==0 to get something 4549 that's true only with -std. */ 4550int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4551 4552/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4553 inside strings and character constants. */ 4554#define FOO(x) 'x' 4555int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4556 4557int test (int i, double x); 4558struct s1 {int (*f) (int a);}; 4559struct s2 {int (*f) (double a);}; 4560int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4561int argc; 4562char **argv; 4563int 4564main () 4565{ 4566return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4567 ; 4568 return 0; 4569} 4570_ACEOF 4571for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4572 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4573do 4574 CC="$ac_save_CC $ac_arg" 4575 if ac_fn_c_try_compile "$LINENO"; then : 4576 ac_cv_prog_cc_c89=$ac_arg 4577fi 4578rm -f core conftest.err conftest.$ac_objext 4579 test "x$ac_cv_prog_cc_c89" != "xno" && break 4580done 4581rm -f conftest.$ac_ext 4582CC=$ac_save_CC 4583 4584fi 4585# AC_CACHE_VAL 4586case "x$ac_cv_prog_cc_c89" in 4587 x) 4588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4589$as_echo "none needed" >&6; } ;; 4590 xno) 4591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4592$as_echo "unsupported" >&6; } ;; 4593 *) 4594 CC="$CC $ac_cv_prog_cc_c89" 4595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4596$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4597esac 4598if test "x$ac_cv_prog_cc_c89" != xno; then : 4599 4600fi 4601 4602ac_ext=c 4603ac_cpp='$CPP $CPPFLAGS' 4604ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4605ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4606ac_compiler_gnu=$ac_cv_c_compiler_gnu 4607 4608ac_ext=c 4609ac_cpp='$CPP $CPPFLAGS' 4610ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4611ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4612ac_compiler_gnu=$ac_cv_c_compiler_gnu 4613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4614$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 4615if ${am_cv_prog_cc_c_o+:} false; then : 4616 $as_echo_n "(cached) " >&6 4617else 4618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4619/* end confdefs.h. */ 4620 4621int 4622main () 4623{ 4624 4625 ; 4626 return 0; 4627} 4628_ACEOF 4629 # Make sure it works both with $CC and with simple cc. 4630 # Following AC_PROG_CC_C_O, we do the test twice because some 4631 # compilers refuse to overwrite an existing .o file with -o, 4632 # though they will create one. 4633 am_cv_prog_cc_c_o=yes 4634 for am_i in 1 2; do 4635 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4636 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4637 ac_status=$? 4638 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4639 (exit $ac_status); } \ 4640 && test -f conftest2.$ac_objext; then 4641 : OK 4642 else 4643 am_cv_prog_cc_c_o=no 4644 break 4645 fi 4646 done 4647 rm -f core conftest* 4648 unset am_i 4649fi 4650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4651$as_echo "$am_cv_prog_cc_c_o" >&6; } 4652if test "$am_cv_prog_cc_c_o" != yes; then 4653 # Losing compiler, so override with the script. 4654 # FIXME: It is wrong to rewrite CC. 4655 # But if we don't then we get into trouble of one sort or another. 4656 # A longer-term fix would be to have automake use am__CC in this case, 4657 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4658 CC="$am_aux_dir/compile $CC" 4659fi 4660ac_ext=c 4661ac_cpp='$CPP $CPPFLAGS' 4662ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4663ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4664ac_compiler_gnu=$ac_cv_c_compiler_gnu 4665 4666 4667depcc="$CC" am_compiler_list= 4668 4669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4670$as_echo_n "checking dependency style of $depcc... " >&6; } 4671if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4672 $as_echo_n "(cached) " >&6 4673else 4674 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4675 # We make a subdir and do the tests there. Otherwise we can end up 4676 # making bogus files that we don't know about and never remove. For 4677 # instance it was reported that on HP-UX the gcc test will end up 4678 # making a dummy file named 'D' -- because '-MD' means "put the output 4679 # in D". 4680 rm -rf conftest.dir 4681 mkdir conftest.dir 4682 # Copy depcomp to subdir because otherwise we won't find it if we're 4683 # using a relative directory. 4684 cp "$am_depcomp" conftest.dir 4685 cd conftest.dir 4686 # We will build objects and dependencies in a subdirectory because 4687 # it helps to detect inapplicable dependency modes. For instance 4688 # both Tru64's cc and ICC support -MD to output dependencies as a 4689 # side effect of compilation, but ICC will put the dependencies in 4690 # the current directory while Tru64 will put them in the object 4691 # directory. 4692 mkdir sub 4693 4694 am_cv_CC_dependencies_compiler_type=none 4695 if test "$am_compiler_list" = ""; then 4696 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4697 fi 4698 am__universal=false 4699 case " $depcc " in #( 4700 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4701 esac 4702 4703 for depmode in $am_compiler_list; do 4704 # Setup a source with many dependencies, because some compilers 4705 # like to wrap large dependency lists on column 80 (with \), and 4706 # we should not choose a depcomp mode which is confused by this. 4707 # 4708 # We need to recreate these files for each test, as the compiler may 4709 # overwrite some of them when testing with obscure command lines. 4710 # This happens at least with the AIX C compiler. 4711 : > sub/conftest.c 4712 for i in 1 2 3 4 5 6; do 4713 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4714 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4715 # Solaris 10 /bin/sh. 4716 echo '/* dummy */' > sub/conftst$i.h 4717 done 4718 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4719 4720 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4721 # mode. It turns out that the SunPro C++ compiler does not properly 4722 # handle '-M -o', and we need to detect this. Also, some Intel 4723 # versions had trouble with output in subdirs. 4724 am__obj=sub/conftest.${OBJEXT-o} 4725 am__minus_obj="-o $am__obj" 4726 case $depmode in 4727 gcc) 4728 # This depmode causes a compiler race in universal mode. 4729 test "$am__universal" = false || continue 4730 ;; 4731 nosideeffect) 4732 # After this tag, mechanisms are not by side-effect, so they'll 4733 # only be used when explicitly requested. 4734 if test "x$enable_dependency_tracking" = xyes; then 4735 continue 4736 else 4737 break 4738 fi 4739 ;; 4740 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4741 # This compiler won't grok '-c -o', but also, the minuso test has 4742 # not run yet. These depmodes are late enough in the game, and 4743 # so weak that their functioning should not be impacted. 4744 am__obj=conftest.${OBJEXT-o} 4745 am__minus_obj= 4746 ;; 4747 none) break ;; 4748 esac 4749 if depmode=$depmode \ 4750 source=sub/conftest.c object=$am__obj \ 4751 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4752 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4753 >/dev/null 2>conftest.err && 4754 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4755 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4756 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4757 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4758 # icc doesn't choke on unknown options, it will just issue warnings 4759 # or remarks (even with -Werror). So we grep stderr for any message 4760 # that says an option was ignored or not supported. 4761 # When given -MP, icc 7.0 and 7.1 complain thusly: 4762 # icc: Command line warning: ignoring option '-M'; no argument required 4763 # The diagnosis changed in icc 8.0: 4764 # icc: Command line remark: option '-MP' not supported 4765 if (grep 'ignoring option' conftest.err || 4766 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4767 am_cv_CC_dependencies_compiler_type=$depmode 4768 break 4769 fi 4770 fi 4771 done 4772 4773 cd .. 4774 rm -rf conftest.dir 4775else 4776 am_cv_CC_dependencies_compiler_type=none 4777fi 4778 4779fi 4780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4781$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4782CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4783 4784 if 4785 test "x$enable_dependency_tracking" != xno \ 4786 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4787 am__fastdepCC_TRUE= 4788 am__fastdepCC_FALSE='#' 4789else 4790 am__fastdepCC_TRUE='#' 4791 am__fastdepCC_FALSE= 4792fi 4793 4794 4795 4796ac_ext=c 4797ac_cpp='$CPP $CPPFLAGS' 4798ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4799ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4800ac_compiler_gnu=$ac_cv_c_compiler_gnu 4801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4802$as_echo_n "checking how to run the C preprocessor... " >&6; } 4803# On Suns, sometimes $CPP names a directory. 4804if test -n "$CPP" && test -d "$CPP"; then 4805 CPP= 4806fi 4807if test -z "$CPP"; then 4808 if ${ac_cv_prog_CPP+:} false; then : 4809 $as_echo_n "(cached) " >&6 4810else 4811 # Double quotes because CPP needs to be expanded 4812 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4813 do 4814 ac_preproc_ok=false 4815for ac_c_preproc_warn_flag in '' yes 4816do 4817 # Use a header file that comes with gcc, so configuring glibc 4818 # with a fresh cross-compiler works. 4819 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4820 # <limits.h> exists even on freestanding compilers. 4821 # On the NeXT, cc -E runs the code through the compiler's parser, 4822 # not just through cpp. "Syntax error" is here to catch this case. 4823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4824/* end confdefs.h. */ 4825#ifdef __STDC__ 4826# include <limits.h> 4827#else 4828# include <assert.h> 4829#endif 4830 Syntax error 4831_ACEOF 4832if ac_fn_c_try_cpp "$LINENO"; then : 4833 4834else 4835 # Broken: fails on valid input. 4836continue 4837fi 4838rm -f conftest.err conftest.i conftest.$ac_ext 4839 4840 # OK, works on sane cases. Now check whether nonexistent headers 4841 # can be detected and how. 4842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4843/* end confdefs.h. */ 4844#include <ac_nonexistent.h> 4845_ACEOF 4846if ac_fn_c_try_cpp "$LINENO"; then : 4847 # Broken: success on invalid input. 4848continue 4849else 4850 # Passes both tests. 4851ac_preproc_ok=: 4852break 4853fi 4854rm -f conftest.err conftest.i conftest.$ac_ext 4855 4856done 4857# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4858rm -f conftest.i conftest.err conftest.$ac_ext 4859if $ac_preproc_ok; then : 4860 break 4861fi 4862 4863 done 4864 ac_cv_prog_CPP=$CPP 4865 4866fi 4867 CPP=$ac_cv_prog_CPP 4868else 4869 ac_cv_prog_CPP=$CPP 4870fi 4871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4872$as_echo "$CPP" >&6; } 4873ac_preproc_ok=false 4874for ac_c_preproc_warn_flag in '' yes 4875do 4876 # Use a header file that comes with gcc, so configuring glibc 4877 # with a fresh cross-compiler works. 4878 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4879 # <limits.h> exists even on freestanding compilers. 4880 # On the NeXT, cc -E runs the code through the compiler's parser, 4881 # not just through cpp. "Syntax error" is here to catch this case. 4882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4883/* end confdefs.h. */ 4884#ifdef __STDC__ 4885# include <limits.h> 4886#else 4887# include <assert.h> 4888#endif 4889 Syntax error 4890_ACEOF 4891if ac_fn_c_try_cpp "$LINENO"; then : 4892 4893else 4894 # Broken: fails on valid input. 4895continue 4896fi 4897rm -f conftest.err conftest.i conftest.$ac_ext 4898 4899 # OK, works on sane cases. Now check whether nonexistent headers 4900 # can be detected and how. 4901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4902/* end confdefs.h. */ 4903#include <ac_nonexistent.h> 4904_ACEOF 4905if ac_fn_c_try_cpp "$LINENO"; then : 4906 # Broken: success on invalid input. 4907continue 4908else 4909 # Passes both tests. 4910ac_preproc_ok=: 4911break 4912fi 4913rm -f conftest.err conftest.i conftest.$ac_ext 4914 4915done 4916# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4917rm -f conftest.i conftest.err conftest.$ac_ext 4918if $ac_preproc_ok; then : 4919 4920else 4921 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4922$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4923as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4924See \`config.log' for more details" "$LINENO" 5; } 4925fi 4926 4927ac_ext=c 4928ac_cpp='$CPP $CPPFLAGS' 4929ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4930ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4931ac_compiler_gnu=$ac_cv_c_compiler_gnu 4932 4933 4934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4935$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4936if ${ac_cv_path_GREP+:} false; then : 4937 $as_echo_n "(cached) " >&6 4938else 4939 if test -z "$GREP"; then 4940 ac_path_GREP_found=false 4941 # Loop through the user's path and test for each of PROGNAME-LIST 4942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4943for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4944do 4945 IFS=$as_save_IFS 4946 test -z "$as_dir" && as_dir=. 4947 for ac_prog in grep ggrep; do 4948 for ac_exec_ext in '' $ac_executable_extensions; do 4949 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4950 as_fn_executable_p "$ac_path_GREP" || continue 4951# Check for GNU ac_path_GREP and select it if it is found. 4952 # Check for GNU $ac_path_GREP 4953case `"$ac_path_GREP" --version 2>&1` in 4954*GNU*) 4955 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4956*) 4957 ac_count=0 4958 $as_echo_n 0123456789 >"conftest.in" 4959 while : 4960 do 4961 cat "conftest.in" "conftest.in" >"conftest.tmp" 4962 mv "conftest.tmp" "conftest.in" 4963 cp "conftest.in" "conftest.nl" 4964 $as_echo 'GREP' >> "conftest.nl" 4965 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4966 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4967 as_fn_arith $ac_count + 1 && ac_count=$as_val 4968 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4969 # Best one so far, save it but keep looking for a better one 4970 ac_cv_path_GREP="$ac_path_GREP" 4971 ac_path_GREP_max=$ac_count 4972 fi 4973 # 10*(2^10) chars as input seems more than enough 4974 test $ac_count -gt 10 && break 4975 done 4976 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4977esac 4978 4979 $ac_path_GREP_found && break 3 4980 done 4981 done 4982 done 4983IFS=$as_save_IFS 4984 if test -z "$ac_cv_path_GREP"; then 4985 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4986 fi 4987else 4988 ac_cv_path_GREP=$GREP 4989fi 4990 4991fi 4992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4993$as_echo "$ac_cv_path_GREP" >&6; } 4994 GREP="$ac_cv_path_GREP" 4995 4996 4997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4998$as_echo_n "checking for egrep... " >&6; } 4999if ${ac_cv_path_EGREP+:} false; then : 5000 $as_echo_n "(cached) " >&6 5001else 5002 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 5003 then ac_cv_path_EGREP="$GREP -E" 5004 else 5005 if test -z "$EGREP"; then 5006 ac_path_EGREP_found=false 5007 # Loop through the user's path and test for each of PROGNAME-LIST 5008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5009for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5010do 5011 IFS=$as_save_IFS 5012 test -z "$as_dir" && as_dir=. 5013 for ac_prog in egrep; do 5014 for ac_exec_ext in '' $ac_executable_extensions; do 5015 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 5016 as_fn_executable_p "$ac_path_EGREP" || continue 5017# Check for GNU ac_path_EGREP and select it if it is found. 5018 # Check for GNU $ac_path_EGREP 5019case `"$ac_path_EGREP" --version 2>&1` in 5020*GNU*) 5021 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 5022*) 5023 ac_count=0 5024 $as_echo_n 0123456789 >"conftest.in" 5025 while : 5026 do 5027 cat "conftest.in" "conftest.in" >"conftest.tmp" 5028 mv "conftest.tmp" "conftest.in" 5029 cp "conftest.in" "conftest.nl" 5030 $as_echo 'EGREP' >> "conftest.nl" 5031 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5032 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5033 as_fn_arith $ac_count + 1 && ac_count=$as_val 5034 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 5035 # Best one so far, save it but keep looking for a better one 5036 ac_cv_path_EGREP="$ac_path_EGREP" 5037 ac_path_EGREP_max=$ac_count 5038 fi 5039 # 10*(2^10) chars as input seems more than enough 5040 test $ac_count -gt 10 && break 5041 done 5042 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5043esac 5044 5045 $ac_path_EGREP_found && break 3 5046 done 5047 done 5048 done 5049IFS=$as_save_IFS 5050 if test -z "$ac_cv_path_EGREP"; then 5051 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5052 fi 5053else 5054 ac_cv_path_EGREP=$EGREP 5055fi 5056 5057 fi 5058fi 5059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 5060$as_echo "$ac_cv_path_EGREP" >&6; } 5061 EGREP="$ac_cv_path_EGREP" 5062 5063 5064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 5065$as_echo_n "checking for ANSI C header files... " >&6; } 5066if ${ac_cv_header_stdc+:} false; then : 5067 $as_echo_n "(cached) " >&6 5068else 5069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5070/* end confdefs.h. */ 5071#include <stdlib.h> 5072#include <stdarg.h> 5073#include <string.h> 5074#include <float.h> 5075 5076int 5077main () 5078{ 5079 5080 ; 5081 return 0; 5082} 5083_ACEOF 5084if ac_fn_c_try_compile "$LINENO"; then : 5085 ac_cv_header_stdc=yes 5086else 5087 ac_cv_header_stdc=no 5088fi 5089rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5090 5091if test $ac_cv_header_stdc = yes; then 5092 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 5093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5094/* end confdefs.h. */ 5095#include <string.h> 5096 5097_ACEOF 5098if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5099 $EGREP "memchr" >/dev/null 2>&1; then : 5100 5101else 5102 ac_cv_header_stdc=no 5103fi 5104rm -f conftest* 5105 5106fi 5107 5108if test $ac_cv_header_stdc = yes; then 5109 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 5110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5111/* end confdefs.h. */ 5112#include <stdlib.h> 5113 5114_ACEOF 5115if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5116 $EGREP "free" >/dev/null 2>&1; then : 5117 5118else 5119 ac_cv_header_stdc=no 5120fi 5121rm -f conftest* 5122 5123fi 5124 5125if test $ac_cv_header_stdc = yes; then 5126 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 5127 if test "$cross_compiling" = yes; then : 5128 : 5129else 5130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5131/* end confdefs.h. */ 5132#include <ctype.h> 5133#include <stdlib.h> 5134#if ((' ' & 0x0FF) == 0x020) 5135# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 5136# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 5137#else 5138# define ISLOWER(c) \ 5139 (('a' <= (c) && (c) <= 'i') \ 5140 || ('j' <= (c) && (c) <= 'r') \ 5141 || ('s' <= (c) && (c) <= 'z')) 5142# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 5143#endif 5144 5145#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 5146int 5147main () 5148{ 5149 int i; 5150 for (i = 0; i < 256; i++) 5151 if (XOR (islower (i), ISLOWER (i)) 5152 || toupper (i) != TOUPPER (i)) 5153 return 2; 5154 return 0; 5155} 5156_ACEOF 5157if ac_fn_c_try_run "$LINENO"; then : 5158 5159else 5160 ac_cv_header_stdc=no 5161fi 5162rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 5163 conftest.$ac_objext conftest.beam conftest.$ac_ext 5164fi 5165 5166fi 5167fi 5168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 5169$as_echo "$ac_cv_header_stdc" >&6; } 5170if test $ac_cv_header_stdc = yes; then 5171 5172$as_echo "#define STDC_HEADERS 1" >>confdefs.h 5173 5174fi 5175 5176# On IRIX 5.3, sys/types and inttypes.h are conflicting. 5177for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 5178 inttypes.h stdint.h unistd.h 5179do : 5180 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 5181ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 5182" 5183if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 5184 cat >>confdefs.h <<_ACEOF 5185#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 5186_ACEOF 5187 5188fi 5189 5190done 5191 5192 5193 5194 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 5195if test "x$ac_cv_header_minix_config_h" = xyes; then : 5196 MINIX=yes 5197else 5198 MINIX= 5199fi 5200 5201 5202 if test "$MINIX" = yes; then 5203 5204$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 5205 5206 5207$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 5208 5209 5210$as_echo "#define _MINIX 1" >>confdefs.h 5211 5212 fi 5213 5214 5215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 5216$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 5217if ${ac_cv_safe_to_define___extensions__+:} false; then : 5218 $as_echo_n "(cached) " >&6 5219else 5220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5221/* end confdefs.h. */ 5222 5223# define __EXTENSIONS__ 1 5224 $ac_includes_default 5225int 5226main () 5227{ 5228 5229 ; 5230 return 0; 5231} 5232_ACEOF 5233if ac_fn_c_try_compile "$LINENO"; then : 5234 ac_cv_safe_to_define___extensions__=yes 5235else 5236 ac_cv_safe_to_define___extensions__=no 5237fi 5238rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5239fi 5240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 5241$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 5242 test $ac_cv_safe_to_define___extensions__ = yes && 5243 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 5244 5245 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 5246 5247 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 5248 5249 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 5250 5251 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 5252 5253 5254 5255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 5256$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 5257if ${ac_cv_prog_cc_c89+:} false; then : 5258 $as_echo_n "(cached) " >&6 5259else 5260 ac_cv_prog_cc_c89=no 5261ac_save_CC=$CC 5262cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5263/* end confdefs.h. */ 5264#include <stdarg.h> 5265#include <stdio.h> 5266struct stat; 5267/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 5268struct buf { int x; }; 5269FILE * (*rcsopen) (struct buf *, struct stat *, int); 5270static char *e (p, i) 5271 char **p; 5272 int i; 5273{ 5274 return p[i]; 5275} 5276static char *f (char * (*g) (char **, int), char **p, ...) 5277{ 5278 char *s; 5279 va_list v; 5280 va_start (v,p); 5281 s = g (p, va_arg (v,int)); 5282 va_end (v); 5283 return s; 5284} 5285 5286/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 5287 function prototypes and stuff, but not '\xHH' hex character constants. 5288 These don't provoke an error unfortunately, instead are silently treated 5289 as 'x'. The following induces an error, until -std is added to get 5290 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 5291 array size at least. It's necessary to write '\x00'==0 to get something 5292 that's true only with -std. */ 5293int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 5294 5295/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 5296 inside strings and character constants. */ 5297#define FOO(x) 'x' 5298int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 5299 5300int test (int i, double x); 5301struct s1 {int (*f) (int a);}; 5302struct s2 {int (*f) (double a);}; 5303int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 5304int argc; 5305char **argv; 5306int 5307main () 5308{ 5309return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 5310 ; 5311 return 0; 5312} 5313_ACEOF 5314for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 5315 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 5316do 5317 CC="$ac_save_CC $ac_arg" 5318 if ac_fn_c_try_compile "$LINENO"; then : 5319 ac_cv_prog_cc_c89=$ac_arg 5320fi 5321rm -f core conftest.err conftest.$ac_objext 5322 test "x$ac_cv_prog_cc_c89" != "xno" && break 5323done 5324rm -f conftest.$ac_ext 5325CC=$ac_save_CC 5326 5327fi 5328# AC_CACHE_VAL 5329case "x$ac_cv_prog_cc_c89" in 5330 x) 5331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5332$as_echo "none needed" >&6; } ;; 5333 xno) 5334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5335$as_echo "unsupported" >&6; } ;; 5336 *) 5337 CC="$CC $ac_cv_prog_cc_c89" 5338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 5339$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 5340esac 5341if test "x$ac_cv_prog_cc_c89" != xno; then : 5342 5343fi 5344 5345 5346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 5347$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 5348if ${ac_cv_prog_cc_c99+:} false; then : 5349 $as_echo_n "(cached) " >&6 5350else 5351 ac_cv_prog_cc_c99=no 5352ac_save_CC=$CC 5353cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5354/* end confdefs.h. */ 5355#include <stdarg.h> 5356#include <stdbool.h> 5357#include <stdlib.h> 5358#include <wchar.h> 5359#include <stdio.h> 5360 5361// Check varargs macros. These examples are taken from C99 6.10.3.5. 5362#define debug(...) fprintf (stderr, __VA_ARGS__) 5363#define showlist(...) puts (#__VA_ARGS__) 5364#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 5365static void 5366test_varargs_macros (void) 5367{ 5368 int x = 1234; 5369 int y = 5678; 5370 debug ("Flag"); 5371 debug ("X = %d\n", x); 5372 showlist (The first, second, and third items.); 5373 report (x>y, "x is %d but y is %d", x, y); 5374} 5375 5376// Check long long types. 5377#define BIG64 18446744073709551615ull 5378#define BIG32 4294967295ul 5379#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 5380#if !BIG_OK 5381 your preprocessor is broken; 5382#endif 5383#if BIG_OK 5384#else 5385 your preprocessor is broken; 5386#endif 5387static long long int bignum = -9223372036854775807LL; 5388static unsigned long long int ubignum = BIG64; 5389 5390struct incomplete_array 5391{ 5392 int datasize; 5393 double data[]; 5394}; 5395 5396struct named_init { 5397 int number; 5398 const wchar_t *name; 5399 double average; 5400}; 5401 5402typedef const char *ccp; 5403 5404static inline int 5405test_restrict (ccp restrict text) 5406{ 5407 // See if C++-style comments work. 5408 // Iterate through items via the restricted pointer. 5409 // Also check for declarations in for loops. 5410 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 5411 continue; 5412 return 0; 5413} 5414 5415// Check varargs and va_copy. 5416static void 5417test_varargs (const char *format, ...) 5418{ 5419 va_list args; 5420 va_start (args, format); 5421 va_list args_copy; 5422 va_copy (args_copy, args); 5423 5424 const char *str; 5425 int number; 5426 float fnumber; 5427 5428 while (*format) 5429 { 5430 switch (*format++) 5431 { 5432 case 's': // string 5433 str = va_arg (args_copy, const char *); 5434 break; 5435 case 'd': // int 5436 number = va_arg (args_copy, int); 5437 break; 5438 case 'f': // float 5439 fnumber = va_arg (args_copy, double); 5440 break; 5441 default: 5442 break; 5443 } 5444 } 5445 va_end (args_copy); 5446 va_end (args); 5447} 5448 5449int 5450main () 5451{ 5452 5453 // Check bool. 5454 _Bool success = false; 5455 5456 // Check restrict. 5457 if (test_restrict ("String literal") == 0) 5458 success = true; 5459 char *restrict newvar = "Another string"; 5460 5461 // Check varargs. 5462 test_varargs ("s, d' f .", "string", 65, 34.234); 5463 test_varargs_macros (); 5464 5465 // Check flexible array members. 5466 struct incomplete_array *ia = 5467 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 5468 ia->datasize = 10; 5469 for (int i = 0; i < ia->datasize; ++i) 5470 ia->data[i] = i * 1.234; 5471 5472 // Check named initializers. 5473 struct named_init ni = { 5474 .number = 34, 5475 .name = L"Test wide string", 5476 .average = 543.34343, 5477 }; 5478 5479 ni.number = 58; 5480 5481 int dynamic_array[ni.number]; 5482 dynamic_array[ni.number - 1] = 543; 5483 5484 // work around unused variable warnings 5485 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 5486 || dynamic_array[ni.number - 1] != 543); 5487 5488 ; 5489 return 0; 5490} 5491_ACEOF 5492for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 5493do 5494 CC="$ac_save_CC $ac_arg" 5495 if ac_fn_c_try_compile "$LINENO"; then : 5496 ac_cv_prog_cc_c99=$ac_arg 5497fi 5498rm -f core conftest.err conftest.$ac_objext 5499 test "x$ac_cv_prog_cc_c99" != "xno" && break 5500done 5501rm -f conftest.$ac_ext 5502CC=$ac_save_CC 5503 5504fi 5505# AC_CACHE_VAL 5506case "x$ac_cv_prog_cc_c99" in 5507 x) 5508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5509$as_echo "none needed" >&6; } ;; 5510 xno) 5511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5512$as_echo "unsupported" >&6; } ;; 5513 *) 5514 CC="$CC $ac_cv_prog_cc_c99" 5515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 5516$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 5517esac 5518if test "x$ac_cv_prog_cc_c99" != xno; then : 5519 5520fi 5521 5522 5523 5524 5525 5526 5527ac_ext=c 5528ac_cpp='$CPP $CPPFLAGS' 5529ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5530ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5531ac_compiler_gnu=$ac_cv_c_compiler_gnu 5532if test -n "$ac_tool_prefix"; then 5533 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 5534set dummy ${ac_tool_prefix}gcc; ac_word=$2 5535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5536$as_echo_n "checking for $ac_word... " >&6; } 5537if ${ac_cv_prog_CC+:} false; then : 5538 $as_echo_n "(cached) " >&6 5539else 5540 if test -n "$CC"; then 5541 ac_cv_prog_CC="$CC" # Let the user override the test. 5542else 5543as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5544for as_dir in $PATH 5545do 5546 IFS=$as_save_IFS 5547 test -z "$as_dir" && as_dir=. 5548 for ac_exec_ext in '' $ac_executable_extensions; do 5549 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5550 ac_cv_prog_CC="${ac_tool_prefix}gcc" 5551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5552 break 2 5553 fi 5554done 5555 done 5556IFS=$as_save_IFS 5557 5558fi 5559fi 5560CC=$ac_cv_prog_CC 5561if test -n "$CC"; then 5562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5563$as_echo "$CC" >&6; } 5564else 5565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5566$as_echo "no" >&6; } 5567fi 5568 5569 5570fi 5571if test -z "$ac_cv_prog_CC"; then 5572 ac_ct_CC=$CC 5573 # Extract the first word of "gcc", so it can be a program name with args. 5574set dummy gcc; ac_word=$2 5575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5576$as_echo_n "checking for $ac_word... " >&6; } 5577if ${ac_cv_prog_ac_ct_CC+:} false; then : 5578 $as_echo_n "(cached) " >&6 5579else 5580 if test -n "$ac_ct_CC"; then 5581 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 5582else 5583as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5584for as_dir in $PATH 5585do 5586 IFS=$as_save_IFS 5587 test -z "$as_dir" && as_dir=. 5588 for ac_exec_ext in '' $ac_executable_extensions; do 5589 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5590 ac_cv_prog_ac_ct_CC="gcc" 5591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5592 break 2 5593 fi 5594done 5595 done 5596IFS=$as_save_IFS 5597 5598fi 5599fi 5600ac_ct_CC=$ac_cv_prog_ac_ct_CC 5601if test -n "$ac_ct_CC"; then 5602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 5603$as_echo "$ac_ct_CC" >&6; } 5604else 5605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5606$as_echo "no" >&6; } 5607fi 5608 5609 if test "x$ac_ct_CC" = x; then 5610 CC="" 5611 else 5612 case $cross_compiling:$ac_tool_warned in 5613yes:) 5614{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5615$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5616ac_tool_warned=yes ;; 5617esac 5618 CC=$ac_ct_CC 5619 fi 5620else 5621 CC="$ac_cv_prog_CC" 5622fi 5623 5624if test -z "$CC"; then 5625 if test -n "$ac_tool_prefix"; then 5626 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 5627set dummy ${ac_tool_prefix}cc; ac_word=$2 5628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5629$as_echo_n "checking for $ac_word... " >&6; } 5630if ${ac_cv_prog_CC+:} false; then : 5631 $as_echo_n "(cached) " >&6 5632else 5633 if test -n "$CC"; then 5634 ac_cv_prog_CC="$CC" # Let the user override the test. 5635else 5636as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5637for as_dir in $PATH 5638do 5639 IFS=$as_save_IFS 5640 test -z "$as_dir" && as_dir=. 5641 for ac_exec_ext in '' $ac_executable_extensions; do 5642 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5643 ac_cv_prog_CC="${ac_tool_prefix}cc" 5644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5645 break 2 5646 fi 5647done 5648 done 5649IFS=$as_save_IFS 5650 5651fi 5652fi 5653CC=$ac_cv_prog_CC 5654if test -n "$CC"; then 5655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5656$as_echo "$CC" >&6; } 5657else 5658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5659$as_echo "no" >&6; } 5660fi 5661 5662 5663 fi 5664fi 5665if test -z "$CC"; then 5666 # Extract the first word of "cc", so it can be a program name with args. 5667set dummy cc; ac_word=$2 5668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5669$as_echo_n "checking for $ac_word... " >&6; } 5670if ${ac_cv_prog_CC+:} false; then : 5671 $as_echo_n "(cached) " >&6 5672else 5673 if test -n "$CC"; then 5674 ac_cv_prog_CC="$CC" # Let the user override the test. 5675else 5676 ac_prog_rejected=no 5677as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5678for as_dir in $PATH 5679do 5680 IFS=$as_save_IFS 5681 test -z "$as_dir" && as_dir=. 5682 for ac_exec_ext in '' $ac_executable_extensions; do 5683 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5684 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 5685 ac_prog_rejected=yes 5686 continue 5687 fi 5688 ac_cv_prog_CC="cc" 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 5696if test $ac_prog_rejected = yes; then 5697 # We found a bogon in the path, so make sure we never use it. 5698 set dummy $ac_cv_prog_CC 5699 shift 5700 if test $# != 0; then 5701 # We chose a different compiler from the bogus one. 5702 # However, it has the same basename, so the bogon will be chosen 5703 # first if we set CC to just the basename; use the full file name. 5704 shift 5705 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 5706 fi 5707fi 5708fi 5709fi 5710CC=$ac_cv_prog_CC 5711if test -n "$CC"; then 5712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5713$as_echo "$CC" >&6; } 5714else 5715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5716$as_echo "no" >&6; } 5717fi 5718 5719 5720fi 5721if test -z "$CC"; then 5722 if test -n "$ac_tool_prefix"; then 5723 for ac_prog in cl.exe 5724 do 5725 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5726set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5728$as_echo_n "checking for $ac_word... " >&6; } 5729if ${ac_cv_prog_CC+:} false; then : 5730 $as_echo_n "(cached) " >&6 5731else 5732 if test -n "$CC"; then 5733 ac_cv_prog_CC="$CC" # Let the user override the test. 5734else 5735as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5736for as_dir in $PATH 5737do 5738 IFS=$as_save_IFS 5739 test -z "$as_dir" && as_dir=. 5740 for ac_exec_ext in '' $ac_executable_extensions; do 5741 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5742 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 5743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5744 break 2 5745 fi 5746done 5747 done 5748IFS=$as_save_IFS 5749 5750fi 5751fi 5752CC=$ac_cv_prog_CC 5753if test -n "$CC"; then 5754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5755$as_echo "$CC" >&6; } 5756else 5757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5758$as_echo "no" >&6; } 5759fi 5760 5761 5762 test -n "$CC" && break 5763 done 5764fi 5765if test -z "$CC"; then 5766 ac_ct_CC=$CC 5767 for ac_prog in cl.exe 5768do 5769 # Extract the first word of "$ac_prog", so it can be a program name with args. 5770set dummy $ac_prog; ac_word=$2 5771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5772$as_echo_n "checking for $ac_word... " >&6; } 5773if ${ac_cv_prog_ac_ct_CC+:} false; then : 5774 $as_echo_n "(cached) " >&6 5775else 5776 if test -n "$ac_ct_CC"; then 5777 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 5778else 5779as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5780for as_dir in $PATH 5781do 5782 IFS=$as_save_IFS 5783 test -z "$as_dir" && as_dir=. 5784 for ac_exec_ext in '' $ac_executable_extensions; do 5785 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5786 ac_cv_prog_ac_ct_CC="$ac_prog" 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 5794fi 5795fi 5796ac_ct_CC=$ac_cv_prog_ac_ct_CC 5797if test -n "$ac_ct_CC"; then 5798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 5799$as_echo "$ac_ct_CC" >&6; } 5800else 5801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5802$as_echo "no" >&6; } 5803fi 5804 5805 5806 test -n "$ac_ct_CC" && break 5807done 5808 5809 if test "x$ac_ct_CC" = x; then 5810 CC="" 5811 else 5812 case $cross_compiling:$ac_tool_warned in 5813yes:) 5814{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5815$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5816ac_tool_warned=yes ;; 5817esac 5818 CC=$ac_ct_CC 5819 fi 5820fi 5821 5822fi 5823 5824 5825test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5826$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5827as_fn_error $? "no acceptable C compiler found in \$PATH 5828See \`config.log' for more details" "$LINENO" 5; } 5829 5830# Provide some information about the compiler. 5831$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 5832set X $ac_compile 5833ac_compiler=$2 5834for ac_option in --version -v -V -qversion; do 5835 { { ac_try="$ac_compiler $ac_option >&5" 5836case "(($ac_try" in 5837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5838 *) ac_try_echo=$ac_try;; 5839esac 5840eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5841$as_echo "$ac_try_echo"; } >&5 5842 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 5843 ac_status=$? 5844 if test -s conftest.err; then 5845 sed '10a\ 5846... rest of stderr output deleted ... 5847 10q' conftest.err >conftest.er1 5848 cat conftest.er1 >&5 5849 fi 5850 rm -f conftest.er1 conftest.err 5851 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5852 test $ac_status = 0; } 5853done 5854 5855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 5856$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 5857if ${ac_cv_c_compiler_gnu+:} false; then : 5858 $as_echo_n "(cached) " >&6 5859else 5860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5861/* end confdefs.h. */ 5862 5863int 5864main () 5865{ 5866#ifndef __GNUC__ 5867 choke me 5868#endif 5869 5870 ; 5871 return 0; 5872} 5873_ACEOF 5874if ac_fn_c_try_compile "$LINENO"; then : 5875 ac_compiler_gnu=yes 5876else 5877 ac_compiler_gnu=no 5878fi 5879rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5880ac_cv_c_compiler_gnu=$ac_compiler_gnu 5881 5882fi 5883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 5884$as_echo "$ac_cv_c_compiler_gnu" >&6; } 5885if test $ac_compiler_gnu = yes; then 5886 GCC=yes 5887else 5888 GCC= 5889fi 5890ac_test_CFLAGS=${CFLAGS+set} 5891ac_save_CFLAGS=$CFLAGS 5892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 5893$as_echo_n "checking whether $CC accepts -g... " >&6; } 5894if ${ac_cv_prog_cc_g+:} false; then : 5895 $as_echo_n "(cached) " >&6 5896else 5897 ac_save_c_werror_flag=$ac_c_werror_flag 5898 ac_c_werror_flag=yes 5899 ac_cv_prog_cc_g=no 5900 CFLAGS="-g" 5901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5902/* end confdefs.h. */ 5903 5904int 5905main () 5906{ 5907 5908 ; 5909 return 0; 5910} 5911_ACEOF 5912if ac_fn_c_try_compile "$LINENO"; then : 5913 ac_cv_prog_cc_g=yes 5914else 5915 CFLAGS="" 5916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5917/* end confdefs.h. */ 5918 5919int 5920main () 5921{ 5922 5923 ; 5924 return 0; 5925} 5926_ACEOF 5927if ac_fn_c_try_compile "$LINENO"; then : 5928 5929else 5930 ac_c_werror_flag=$ac_save_c_werror_flag 5931 CFLAGS="-g" 5932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5933/* end confdefs.h. */ 5934 5935int 5936main () 5937{ 5938 5939 ; 5940 return 0; 5941} 5942_ACEOF 5943if ac_fn_c_try_compile "$LINENO"; then : 5944 ac_cv_prog_cc_g=yes 5945fi 5946rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5947fi 5948rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5949fi 5950rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5951 ac_c_werror_flag=$ac_save_c_werror_flag 5952fi 5953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 5954$as_echo "$ac_cv_prog_cc_g" >&6; } 5955if test "$ac_test_CFLAGS" = set; then 5956 CFLAGS=$ac_save_CFLAGS 5957elif test $ac_cv_prog_cc_g = yes; then 5958 if test "$GCC" = yes; then 5959 CFLAGS="-g -O2" 5960 else 5961 CFLAGS="-g" 5962 fi 5963else 5964 if test "$GCC" = yes; then 5965 CFLAGS="-O2" 5966 else 5967 CFLAGS= 5968 fi 5969fi 5970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 5971$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 5972if ${ac_cv_prog_cc_c89+:} false; then : 5973 $as_echo_n "(cached) " >&6 5974else 5975 ac_cv_prog_cc_c89=no 5976ac_save_CC=$CC 5977cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5978/* end confdefs.h. */ 5979#include <stdarg.h> 5980#include <stdio.h> 5981struct stat; 5982/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 5983struct buf { int x; }; 5984FILE * (*rcsopen) (struct buf *, struct stat *, int); 5985static char *e (p, i) 5986 char **p; 5987 int i; 5988{ 5989 return p[i]; 5990} 5991static char *f (char * (*g) (char **, int), char **p, ...) 5992{ 5993 char *s; 5994 va_list v; 5995 va_start (v,p); 5996 s = g (p, va_arg (v,int)); 5997 va_end (v); 5998 return s; 5999} 6000 6001/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 6002 function prototypes and stuff, but not '\xHH' hex character constants. 6003 These don't provoke an error unfortunately, instead are silently treated 6004 as 'x'. The following induces an error, until -std is added to get 6005 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 6006 array size at least. It's necessary to write '\x00'==0 to get something 6007 that's true only with -std. */ 6008int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 6009 6010/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 6011 inside strings and character constants. */ 6012#define FOO(x) 'x' 6013int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 6014 6015int test (int i, double x); 6016struct s1 {int (*f) (int a);}; 6017struct s2 {int (*f) (double a);}; 6018int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 6019int argc; 6020char **argv; 6021int 6022main () 6023{ 6024return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 6025 ; 6026 return 0; 6027} 6028_ACEOF 6029for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 6030 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 6031do 6032 CC="$ac_save_CC $ac_arg" 6033 if ac_fn_c_try_compile "$LINENO"; then : 6034 ac_cv_prog_cc_c89=$ac_arg 6035fi 6036rm -f core conftest.err conftest.$ac_objext 6037 test "x$ac_cv_prog_cc_c89" != "xno" && break 6038done 6039rm -f conftest.$ac_ext 6040CC=$ac_save_CC 6041 6042fi 6043# AC_CACHE_VAL 6044case "x$ac_cv_prog_cc_c89" in 6045 x) 6046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 6047$as_echo "none needed" >&6; } ;; 6048 xno) 6049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 6050$as_echo "unsupported" >&6; } ;; 6051 *) 6052 CC="$CC $ac_cv_prog_cc_c89" 6053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 6054$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 6055esac 6056if test "x$ac_cv_prog_cc_c89" != xno; then : 6057 6058fi 6059 6060ac_ext=c 6061ac_cpp='$CPP $CPPFLAGS' 6062ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6063ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6064ac_compiler_gnu=$ac_cv_c_compiler_gnu 6065 6066ac_ext=c 6067ac_cpp='$CPP $CPPFLAGS' 6068ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6069ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6070ac_compiler_gnu=$ac_cv_c_compiler_gnu 6071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 6072$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 6073if ${am_cv_prog_cc_c_o+:} false; then : 6074 $as_echo_n "(cached) " >&6 6075else 6076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6077/* end confdefs.h. */ 6078 6079int 6080main () 6081{ 6082 6083 ; 6084 return 0; 6085} 6086_ACEOF 6087 # Make sure it works both with $CC and with simple cc. 6088 # Following AC_PROG_CC_C_O, we do the test twice because some 6089 # compilers refuse to overwrite an existing .o file with -o, 6090 # though they will create one. 6091 am_cv_prog_cc_c_o=yes 6092 for am_i in 1 2; do 6093 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 6094 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 6095 ac_status=$? 6096 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6097 (exit $ac_status); } \ 6098 && test -f conftest2.$ac_objext; then 6099 : OK 6100 else 6101 am_cv_prog_cc_c_o=no 6102 break 6103 fi 6104 done 6105 rm -f core conftest* 6106 unset am_i 6107fi 6108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 6109$as_echo "$am_cv_prog_cc_c_o" >&6; } 6110if test "$am_cv_prog_cc_c_o" != yes; then 6111 # Losing compiler, so override with the script. 6112 # FIXME: It is wrong to rewrite CC. 6113 # But if we don't then we get into trouble of one sort or another. 6114 # A longer-term fix would be to have automake use am__CC in this case, 6115 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 6116 CC="$am_aux_dir/compile $CC" 6117fi 6118ac_ext=c 6119ac_cpp='$CPP $CPPFLAGS' 6120ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6121ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6122ac_compiler_gnu=$ac_cv_c_compiler_gnu 6123 6124 6125depcc="$CC" am_compiler_list= 6126 6127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 6128$as_echo_n "checking dependency style of $depcc... " >&6; } 6129if ${am_cv_CC_dependencies_compiler_type+:} false; then : 6130 $as_echo_n "(cached) " >&6 6131else 6132 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 6133 # We make a subdir and do the tests there. Otherwise we can end up 6134 # making bogus files that we don't know about and never remove. For 6135 # instance it was reported that on HP-UX the gcc test will end up 6136 # making a dummy file named 'D' -- because '-MD' means "put the output 6137 # in D". 6138 rm -rf conftest.dir 6139 mkdir conftest.dir 6140 # Copy depcomp to subdir because otherwise we won't find it if we're 6141 # using a relative directory. 6142 cp "$am_depcomp" conftest.dir 6143 cd conftest.dir 6144 # We will build objects and dependencies in a subdirectory because 6145 # it helps to detect inapplicable dependency modes. For instance 6146 # both Tru64's cc and ICC support -MD to output dependencies as a 6147 # side effect of compilation, but ICC will put the dependencies in 6148 # the current directory while Tru64 will put them in the object 6149 # directory. 6150 mkdir sub 6151 6152 am_cv_CC_dependencies_compiler_type=none 6153 if test "$am_compiler_list" = ""; then 6154 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 6155 fi 6156 am__universal=false 6157 case " $depcc " in #( 6158 *\ -arch\ *\ -arch\ *) am__universal=true ;; 6159 esac 6160 6161 for depmode in $am_compiler_list; do 6162 # Setup a source with many dependencies, because some compilers 6163 # like to wrap large dependency lists on column 80 (with \), and 6164 # we should not choose a depcomp mode which is confused by this. 6165 # 6166 # We need to recreate these files for each test, as the compiler may 6167 # overwrite some of them when testing with obscure command lines. 6168 # This happens at least with the AIX C compiler. 6169 : > sub/conftest.c 6170 for i in 1 2 3 4 5 6; do 6171 echo '#include "conftst'$i'.h"' >> sub/conftest.c 6172 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 6173 # Solaris 10 /bin/sh. 6174 echo '/* dummy */' > sub/conftst$i.h 6175 done 6176 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 6177 6178 # We check with '-c' and '-o' for the sake of the "dashmstdout" 6179 # mode. It turns out that the SunPro C++ compiler does not properly 6180 # handle '-M -o', and we need to detect this. Also, some Intel 6181 # versions had trouble with output in subdirs. 6182 am__obj=sub/conftest.${OBJEXT-o} 6183 am__minus_obj="-o $am__obj" 6184 case $depmode in 6185 gcc) 6186 # This depmode causes a compiler race in universal mode. 6187 test "$am__universal" = false || continue 6188 ;; 6189 nosideeffect) 6190 # After this tag, mechanisms are not by side-effect, so they'll 6191 # only be used when explicitly requested. 6192 if test "x$enable_dependency_tracking" = xyes; then 6193 continue 6194 else 6195 break 6196 fi 6197 ;; 6198 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 6199 # This compiler won't grok '-c -o', but also, the minuso test has 6200 # not run yet. These depmodes are late enough in the game, and 6201 # so weak that their functioning should not be impacted. 6202 am__obj=conftest.${OBJEXT-o} 6203 am__minus_obj= 6204 ;; 6205 none) break ;; 6206 esac 6207 if depmode=$depmode \ 6208 source=sub/conftest.c object=$am__obj \ 6209 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 6210 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 6211 >/dev/null 2>conftest.err && 6212 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 6213 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 6214 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 6215 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 6216 # icc doesn't choke on unknown options, it will just issue warnings 6217 # or remarks (even with -Werror). So we grep stderr for any message 6218 # that says an option was ignored or not supported. 6219 # When given -MP, icc 7.0 and 7.1 complain thusly: 6220 # icc: Command line warning: ignoring option '-M'; no argument required 6221 # The diagnosis changed in icc 8.0: 6222 # icc: Command line remark: option '-MP' not supported 6223 if (grep 'ignoring option' conftest.err || 6224 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 6225 am_cv_CC_dependencies_compiler_type=$depmode 6226 break 6227 fi 6228 fi 6229 done 6230 6231 cd .. 6232 rm -rf conftest.dir 6233else 6234 am_cv_CC_dependencies_compiler_type=none 6235fi 6236 6237fi 6238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 6239$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 6240CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 6241 6242 if 6243 test "x$enable_dependency_tracking" != xno \ 6244 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 6245 am__fastdepCC_TRUE= 6246 am__fastdepCC_FALSE='#' 6247else 6248 am__fastdepCC_TRUE='#' 6249 am__fastdepCC_FALSE= 6250fi 6251 6252 6253# Ralf Wildenhues: With per-target flags we need CC_C_O 6254# AM_PROG_CC_C_O supersets AC_PROG_CC_C_O 6255 6256if test $ac_cv_c_compiler_gnu = yes; then 6257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5 6258$as_echo_n "checking whether $CC needs -traditional... " >&6; } 6259if ${ac_cv_prog_gcc_traditional+:} false; then : 6260 $as_echo_n "(cached) " >&6 6261else 6262 ac_pattern="Autoconf.*'x'" 6263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6264/* end confdefs.h. */ 6265#include <sgtty.h> 6266Autoconf TIOCGETP 6267_ACEOF 6268if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6269 $EGREP "$ac_pattern" >/dev/null 2>&1; then : 6270 ac_cv_prog_gcc_traditional=yes 6271else 6272 ac_cv_prog_gcc_traditional=no 6273fi 6274rm -f conftest* 6275 6276 6277 if test $ac_cv_prog_gcc_traditional = no; then 6278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6279/* end confdefs.h. */ 6280#include <termio.h> 6281Autoconf TCGETA 6282_ACEOF 6283if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6284 $EGREP "$ac_pattern" >/dev/null 2>&1; then : 6285 ac_cv_prog_gcc_traditional=yes 6286fi 6287rm -f conftest* 6288 6289 fi 6290fi 6291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5 6292$as_echo "$ac_cv_prog_gcc_traditional" >&6; } 6293 if test $ac_cv_prog_gcc_traditional = yes; then 6294 CC="$CC -traditional" 6295 fi 6296fi 6297 6298 6299 6300 6301 6302CFLAGS_NTP= 6303CPPFLAGS_NTP= 6304LDADD_NTP= 6305LDFLAGS_NTP= 6306 6307 6308 6309 6310 6311case "$ac_cv_prog_cc_c89" in 6312 no) 6313 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ANSI C89/ISO C90 is the minimum to compile NTP 6314 version 4.2.5 and higher." >&5 6315$as_echo "$as_me: WARNING: ANSI C89/ISO C90 is the minimum to compile NTP 6316 version 4.2.5 and higher." >&2;} 6317 ;; 6318esac 6319 6320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle #warning" >&5 6321$as_echo_n "checking if $CC can handle #warning... " >&6; } 6322if ${ntp_cv_cpp_warning+:} false; then : 6323 $as_echo_n "(cached) " >&6 6324else 6325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6326/* end confdefs.h. */ 6327 6328int 6329main () 6330{ 6331#warning foo 6332 ; 6333 return 0; 6334} 6335_ACEOF 6336if ac_fn_c_try_compile "$LINENO"; then : 6337 ntp_cv_cpp_warning=yes 6338else 6339 ntp_cv_cpp_warning=no 6340 6341fi 6342rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6343 6344fi 6345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_cpp_warning" >&5 6346$as_echo "$ntp_cv_cpp_warning" >&6; } 6347case "$ntp_cv_cpp_warning" in 6348 no) 6349 6350$as_echo "#define NO_OPTION_NAME_WARNINGS 1" >>confdefs.h 6351 6352esac 6353 6354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports __attribute__((...))" >&5 6355$as_echo_n "checking if $CC supports __attribute__((...))... " >&6; } 6356if ${ntp_cv_cc_attribute+:} false; then : 6357 $as_echo_n "(cached) " >&6 6358else 6359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6360/* end confdefs.h. */ 6361 6362int 6363main () 6364{ 6365void foo(void) __attribute__((__noreturn__)); 6366 6367 ; 6368 return 0; 6369} 6370_ACEOF 6371if ac_fn_c_try_compile "$LINENO"; then : 6372 ntp_cv_cc_attribute=yes 6373else 6374 ntp_cv_cc_attribute=no 6375 6376fi 6377rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6378 6379fi 6380{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_cc_attribute" >&5 6381$as_echo "$ntp_cv_cc_attribute" >&6; } 6382case "$ntp_cv_cc_attribute" in 6383 yes) 6384 6385$as_echo "#define HAVE___ATTRIBUTE__ /**/" >>confdefs.h 6386 6387esac 6388 6389 6390case "$GCC" in 6391 yes) 6392 SAVED_CFLAGS="$CFLAGS" 6393 CFLAGS="$CFLAGS -Wstrict-overflow" 6394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle -Wstrict-overflow" >&5 6395$as_echo_n "checking if $CC can handle -Wstrict-overflow... " >&6; } 6396if ${ntp_cv_gcc_Wstrict_overflow+:} false; then : 6397 $as_echo_n "(cached) " >&6 6398else 6399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6400/* end confdefs.h. */ 6401 6402int 6403main () 6404{ 6405 6406 ; 6407 return 0; 6408} 6409_ACEOF 6410if ac_fn_c_try_compile "$LINENO"; then : 6411 ntp_cv_gcc_Wstrict_overflow=yes 6412else 6413 ntp_cv_gcc_Wstrict_overflow=no 6414 6415fi 6416rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6417 6418fi 6419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_gcc_Wstrict_overflow" >&5 6420$as_echo "$ntp_cv_gcc_Wstrict_overflow" >&6; } 6421 # 6422 # $ntp_cv_gcc_Wstrict_overflow is tested later to add the 6423 # flag to CFLAGS. 6424 # 6425 CFLAGS="$SAVED_CFLAGS -Winit-self" 6426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle -Winit-self" >&5 6427$as_echo_n "checking if $CC can handle -Winit-self... " >&6; } 6428if ${ntp_cv_gcc_Winit_self+:} false; then : 6429 $as_echo_n "(cached) " >&6 6430else 6431 6432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6433/* end confdefs.h. */ 6434 6435int 6436main () 6437{ 6438 6439 ; 6440 return 0; 6441} 6442_ACEOF 6443if ac_fn_c_try_compile "$LINENO"; then : 6444 ntp_cv_gcc_Winit_self=yes 6445else 6446 ntp_cv_gcc_Winit_self=no 6447 6448fi 6449rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6450 6451 6452fi 6453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_gcc_Winit_self" >&5 6454$as_echo "$ntp_cv_gcc_Winit_self" >&6; } 6455 CFLAGS="$SAVED_CFLAGS" 6456 { SAVED_CFLAGS=; unset SAVED_CFLAGS;} 6457 # 6458 # $ntp_cv_gcc_Winit_self is tested later to add the 6459 # flag to CFLAGS_NTP. 6460 # 6461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker supports omitting unused code and data" >&5 6462$as_echo_n "checking if linker supports omitting unused code and data... " >&6; } 6463if ${ntp_cv_gc_sections_runs+:} false; then : 6464 $as_echo_n "(cached) " >&6 6465else 6466 6467 origCFLAGS="$CFLAGS" 6468 CFLAGS="$CFLAGS -Wl,--gc-sections" 6469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6470/* end confdefs.h. */ 6471 6472 #include <stdlib.h> 6473 #include <stdio.h> 6474 6475int 6476main () 6477{ 6478 6479 FILE * fpC; 6480 char buf[32]; 6481 size_t cch; 6482 int read_success_once; 6483 6484 fpC = fopen("conftest.c", "r"); 6485 if (NULL == fpC) 6486 exit(1); 6487 do { 6488 cch = fread(buf, sizeof(buf), 1, fpC); 6489 read_success_once |= (0 != cch); 6490 } while (0 != cch); 6491 if (!read_success_once) 6492 exit(2); 6493 if (!feof(fpC)) 6494 exit(3); 6495 if (0 != fclose(fpC)) 6496 exit(4); 6497 6498 exit(EXIT_SUCCESS); 6499 6500 6501 ; 6502 return 0; 6503} 6504_ACEOF 6505if ac_fn_c_try_link "$LINENO"; then : 6506 6507 if test "X$cross_compiling" = "Xyes" || grep gc-sections conftest.err ; then 6508 ntp_cv_gc_sections_runs=no 6509 else 6510 ntp_cv_gc_sections_runs=no 6511 ./conftest >/dev/null 2>&1 && ntp_cv_gc_sections_runs=yes 6512 fi 6513 6514else 6515 ntp_cv_gc_sections_runs=no 6516 6517fi 6518rm -f core conftest.err conftest.$ac_objext \ 6519 conftest$ac_exeext conftest.$ac_ext 6520 CFLAGS="$origCFLAGS" 6521 { origCFLAGS=; unset origCFLAGS;} 6522 6523 6524fi 6525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_gc_sections_runs" >&5 6526$as_echo "$ntp_cv_gc_sections_runs" >&6; } 6527 case "$ntp_cv_gc_sections_runs" in 6528 yes) 6529 LDADD_LIBNTP="-Wl,--gc-sections" 6530 CFLAGS_NTP="$CFLAGS_NTP -ffunction-sections -fdata-sections" 6531 ;; 6532 no) 6533 LDADD_LIBNTP= 6534 ;; 6535 esac 6536 CFLAGS_NTP="$CFLAGS_NTP -Wall" 6537 CFLAGS_NTP="$CFLAGS_NTP -Wcast-align" 6538 CFLAGS_NTP="$CFLAGS_NTP -Wcast-qual" 6539 # CFLAGS_NTP="$CFLAGS_NTP -Wconversion" 6540 # CFLAGS_NTP="$CFLAGS_NTP -Werror" 6541 # CFLAGS_NTP="$CFLAGS_NTP -Wextra" 6542 # CFLAGS_NTP="$CFLAGS_NTP -Wfloat-equal" 6543 CFLAGS_NTP="$CFLAGS_NTP -Wmissing-prototypes" 6544 CFLAGS_NTP="$CFLAGS_NTP -Wpointer-arith" 6545 CFLAGS_NTP="$CFLAGS_NTP -Wshadow" 6546 # CFLAGS_NTP="$CFLAGS_NTP -Wtraditional" 6547 # CFLAGS_NTP="$CFLAGS_NTP -Wwrite-strings" 6548 case "$ntp_cv_gcc_Winit_self" in 6549 yes) 6550 CFLAGS_NTP="$CFLAGS_NTP -Winit-self" 6551 esac 6552 case "$ntp_cv_gcc_Wstrict_overflow" in 6553 yes) 6554 CFLAGS_NTP="$CFLAGS_NTP -Wstrict-overflow" 6555 esac 6556 # -W[no-]strict-prototypes might be added by NTP_OPENSSL 6557esac 6558 6559 6560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking additional compiler flags" >&5 6561$as_echo_n "checking additional compiler flags... " >&6; } 6562 # allow ntp_os_cflags to be preset to skip this stuff 6563 case "${ntp_os_cflags+set}" in 6564 set) 6565 ;; 6566 *) 6567 ntp_os_cflags= 6568 case "$host_os" in 6569 aix[1-3]*) 6570 ;; 6571 aix4.[0-2]*) 6572 # turn on additional headers 6573 ntp_os_cflags="-D_XOPEN_EXTENDED_SOURCE" 6574 ;; 6575 aix5.3*) 6576 # avoid circular dependencies in yp headers, and more 6577 ntp_os_cflags="-DHAVE_BAD_HEADERS -D_XOPEN_EXTENDED_SOURCE" 6578 ntp_os_cflags="${ntp_os_cflags} -D_USE_IRS -D_MSGQSUPPORT" 6579 ;; 6580 aix*) 6581 # XXX Only verified thru AIX6. 6582 # aix7 seems to need a different XOPEN_SOURCE_EXTENDED thing. 6583 # avoid circular dependencies in yp headers 6584 # _XOPEN_SOURCE=500 = X/Open 5: POSIX 1995 6585 # _XOPEN_SOURCE=600 = X/Open 6: POSIX 2004 6586 # _XOPEN_SOURCE=700 = X/Open 7: POSIX 2008 6587 ntp_os_cflags="-DHAVE_BAD_HEADERS -D_XOPEN_SOURCE=600" 6588 ntp_os_cflags="${ntp_os_cflags} -D_USE_IRS" 6589 ;; 6590 amigaos) 6591 ntp_os_cflags="-DSYS_AMIGA" 6592 ;; 6593 darwin*|macosx*|rhapsody*) 6594 ntp_os_cflags="-D_P1003_1B_VISIBLE" 6595 ;; 6596 hpux10.*) # at least for hppa2.0-hp-hpux10.20 6597 case "$GCC" in 6598 yes) 6599 ;; 6600 *) 6601 # use Ansi compiler on HPUX, and some -Wp magic 6602 ntp_os_cflags="-Ae -Wp,-H18816" 6603 ;; 6604 esac 6605 ntp_os_cflags="${ntp_os_cflags} -D_HPUX_SOURCE -D__STDC_VERSION__=199901L" 6606 ;; 6607 hpux*) 6608 case "$GCC" in 6609 yes) 6610 ;; 6611 *) 6612 # use Ansi compiler on HPUX 6613 ntp_os_cflags="-Ae" 6614 esac 6615 ntp_os_cflags="${ntp_os_cflags} -D_HPUX_SOURCE -D__STDC_VERSION__=199901L" 6616 ;; 6617 irix6*) 6618 case "$CC" in 6619 cc) 6620 # do not use 64-bit compiler 6621 ntp_os_cflags="-n32 -mips3 -Wl,-woff,84" 6622 esac 6623 ;; 6624 nextstep3) 6625 ntp_os_cflags="-posix" 6626 ;; 6627 solaris1*|solaris2.[0-5]|solaris2.5.*) 6628 ;; 6629 sunos[34]*|sunos5.[0-5]|sunos5.5.*) 6630 ;; 6631 solaris2*|sunos5*) 6632 # turn on 64-bit file offset interface 6633 ntp_os_cflags="-D_LARGEFILE64_SOURCE" 6634 ;; 6635 vxworks*) 6636 case "$build" in 6637 $host) 6638 ;; 6639 *) 6640 # Quick and dirty sanity check 6641 case "$VX_KERNEL" in 6642 '') 6643 as_fn_error $? "See html/build/hints/vxworks.html" "$LINENO" 5 6644 esac 6645 ntp_os_cflags="-DSYS_VXWORKS" 6646 esac 6647 ;; 6648 esac 6649 esac 6650 case "$ntp_os_cflags" in 6651 '') 6652 ntp_os_cflags_msg="none needed" 6653 ;; 6654 *) 6655 ntp_os_cflags_msg="$ntp_os_cflags" 6656 esac 6657 CFLAGS_NTP="$CFLAGS_NTP $ntp_os_cflags" 6658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_os_cflags_msg" >&5 6659$as_echo "$ntp_os_cflags_msg" >&6; } 6660 { ntp_os_cflags_msg=; unset ntp_os_cflags_msg;} 6661 ### 6662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking additional linker flags" >&5 6663$as_echo_n "checking additional linker flags... " >&6; } 6664 # HMS: The following might still need tweaking 6665 # allow ntp_os_ldflags to be preset to skip this stuff 6666 case "${ntp_os_ldflags+set}" in 6667 set) 6668 ;; 6669 *) 6670 ntp_os_ldflags= 6671 case "$host_os" in 6672 hpux*) 6673 case "$GCC" in 6674 yes) 6675 ntp_os_ldflags="-Wl,+allowdups" 6676 ;; 6677 esac 6678 ;; 6679 esac 6680 ;; 6681 esac 6682 case "$ntp_os_ldflags" in 6683 '') 6684 ntp_os_ldflags_msg="none needed" 6685 ;; 6686 *) 6687 ntp_os_ldflags_msg="$ntp_os_ldflags" 6688 esac 6689 LDFLAGS_NTP="$LDFLAGS_NTP $ntp_os_ldflags" 6690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_os_ldflags_msg" >&5 6691$as_echo "$ntp_os_ldflags_msg" >&6; } 6692 { ntp_os_ldflags_msg=; unset ntp_os_ldflags_msg;} 6693 6694 6695 6696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 6697$as_echo_n "checking whether byte ordering is bigendian... " >&6; } 6698if ${ac_cv_c_bigendian+:} false; then : 6699 $as_echo_n "(cached) " >&6 6700else 6701 ac_cv_c_bigendian=unknown 6702 # See if we're dealing with a universal compiler. 6703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6704/* end confdefs.h. */ 6705#ifndef __APPLE_CC__ 6706 not a universal capable compiler 6707 #endif 6708 typedef int dummy; 6709 6710_ACEOF 6711if ac_fn_c_try_compile "$LINENO"; then : 6712 6713 # Check for potential -arch flags. It is not universal unless 6714 # there are at least two -arch flags with different values. 6715 ac_arch= 6716 ac_prev= 6717 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 6718 if test -n "$ac_prev"; then 6719 case $ac_word in 6720 i?86 | x86_64 | ppc | ppc64) 6721 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 6722 ac_arch=$ac_word 6723 else 6724 ac_cv_c_bigendian=universal 6725 break 6726 fi 6727 ;; 6728 esac 6729 ac_prev= 6730 elif test "x$ac_word" = "x-arch"; then 6731 ac_prev=arch 6732 fi 6733 done 6734fi 6735rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6736 if test $ac_cv_c_bigendian = unknown; then 6737 # See if sys/param.h defines the BYTE_ORDER macro. 6738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6739/* end confdefs.h. */ 6740#include <sys/types.h> 6741 #include <sys/param.h> 6742 6743int 6744main () 6745{ 6746#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 6747 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 6748 && LITTLE_ENDIAN) 6749 bogus endian macros 6750 #endif 6751 6752 ; 6753 return 0; 6754} 6755_ACEOF 6756if ac_fn_c_try_compile "$LINENO"; then : 6757 # It does; now see whether it defined to BIG_ENDIAN or not. 6758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6759/* end confdefs.h. */ 6760#include <sys/types.h> 6761 #include <sys/param.h> 6762 6763int 6764main () 6765{ 6766#if BYTE_ORDER != BIG_ENDIAN 6767 not big endian 6768 #endif 6769 6770 ; 6771 return 0; 6772} 6773_ACEOF 6774if ac_fn_c_try_compile "$LINENO"; then : 6775 ac_cv_c_bigendian=yes 6776else 6777 ac_cv_c_bigendian=no 6778fi 6779rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6780fi 6781rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6782 fi 6783 if test $ac_cv_c_bigendian = unknown; then 6784 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 6785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6786/* end confdefs.h. */ 6787#include <limits.h> 6788 6789int 6790main () 6791{ 6792#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 6793 bogus endian macros 6794 #endif 6795 6796 ; 6797 return 0; 6798} 6799_ACEOF 6800if ac_fn_c_try_compile "$LINENO"; then : 6801 # It does; now see whether it defined to _BIG_ENDIAN or not. 6802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6803/* end confdefs.h. */ 6804#include <limits.h> 6805 6806int 6807main () 6808{ 6809#ifndef _BIG_ENDIAN 6810 not big endian 6811 #endif 6812 6813 ; 6814 return 0; 6815} 6816_ACEOF 6817if ac_fn_c_try_compile "$LINENO"; then : 6818 ac_cv_c_bigendian=yes 6819else 6820 ac_cv_c_bigendian=no 6821fi 6822rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6823fi 6824rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6825 fi 6826 if test $ac_cv_c_bigendian = unknown; then 6827 # Compile a test program. 6828 if test "$cross_compiling" = yes; then : 6829 # Try to guess by grepping values from an object file. 6830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6831/* end confdefs.h. */ 6832short int ascii_mm[] = 6833 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 6834 short int ascii_ii[] = 6835 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 6836 int use_ascii (int i) { 6837 return ascii_mm[i] + ascii_ii[i]; 6838 } 6839 short int ebcdic_ii[] = 6840 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 6841 short int ebcdic_mm[] = 6842 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 6843 int use_ebcdic (int i) { 6844 return ebcdic_mm[i] + ebcdic_ii[i]; 6845 } 6846 extern int foo; 6847 6848int 6849main () 6850{ 6851return use_ascii (foo) == use_ebcdic (foo); 6852 ; 6853 return 0; 6854} 6855_ACEOF 6856if ac_fn_c_try_compile "$LINENO"; then : 6857 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 6858 ac_cv_c_bigendian=yes 6859 fi 6860 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 6861 if test "$ac_cv_c_bigendian" = unknown; then 6862 ac_cv_c_bigendian=no 6863 else 6864 # finding both strings is unlikely to happen, but who knows? 6865 ac_cv_c_bigendian=unknown 6866 fi 6867 fi 6868fi 6869rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6870else 6871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6872/* end confdefs.h. */ 6873$ac_includes_default 6874int 6875main () 6876{ 6877 6878 /* Are we little or big endian? From Harbison&Steele. */ 6879 union 6880 { 6881 long int l; 6882 char c[sizeof (long int)]; 6883 } u; 6884 u.l = 1; 6885 return u.c[sizeof (long int) - 1] == 1; 6886 6887 ; 6888 return 0; 6889} 6890_ACEOF 6891if ac_fn_c_try_run "$LINENO"; then : 6892 ac_cv_c_bigendian=no 6893else 6894 ac_cv_c_bigendian=yes 6895fi 6896rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 6897 conftest.$ac_objext conftest.beam conftest.$ac_ext 6898fi 6899 6900 fi 6901fi 6902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 6903$as_echo "$ac_cv_c_bigendian" >&6; } 6904 case $ac_cv_c_bigendian in #( 6905 yes) 6906 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h 6907;; #( 6908 no) 6909 ;; #( 6910 universal) 6911 6912$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 6913 6914 ;; #( 6915 *) 6916 as_fn_error $? "unknown endianness 6917 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 6918 esac 6919 6920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5 6921$as_echo_n "checking for working volatile... " >&6; } 6922if ${ac_cv_c_volatile+:} false; then : 6923 $as_echo_n "(cached) " >&6 6924else 6925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6926/* end confdefs.h. */ 6927 6928int 6929main () 6930{ 6931 6932volatile int x; 6933int * volatile y = (int *) 0; 6934return !x && !y; 6935 ; 6936 return 0; 6937} 6938_ACEOF 6939if ac_fn_c_try_compile "$LINENO"; then : 6940 ac_cv_c_volatile=yes 6941else 6942 ac_cv_c_volatile=no 6943fi 6944rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6945fi 6946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5 6947$as_echo "$ac_cv_c_volatile" >&6; } 6948if test $ac_cv_c_volatile = no; then 6949 6950$as_echo "#define volatile /**/" >>confdefs.h 6951 6952fi 6953 6954ac_ext=c 6955ac_cpp='$CPP $CPPFLAGS' 6956ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6957ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6958ac_compiler_gnu=$ac_cv_c_compiler_gnu 6959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 6960$as_echo_n "checking how to run the C preprocessor... " >&6; } 6961# On Suns, sometimes $CPP names a directory. 6962if test -n "$CPP" && test -d "$CPP"; then 6963 CPP= 6964fi 6965if test -z "$CPP"; then 6966 if ${ac_cv_prog_CPP+:} false; then : 6967 $as_echo_n "(cached) " >&6 6968else 6969 # Double quotes because CPP needs to be expanded 6970 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 6971 do 6972 ac_preproc_ok=false 6973for ac_c_preproc_warn_flag in '' yes 6974do 6975 # Use a header file that comes with gcc, so configuring glibc 6976 # with a fresh cross-compiler works. 6977 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6978 # <limits.h> exists even on freestanding compilers. 6979 # On the NeXT, cc -E runs the code through the compiler's parser, 6980 # not just through cpp. "Syntax error" is here to catch this case. 6981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6982/* end confdefs.h. */ 6983#ifdef __STDC__ 6984# include <limits.h> 6985#else 6986# include <assert.h> 6987#endif 6988 Syntax error 6989_ACEOF 6990if ac_fn_c_try_cpp "$LINENO"; then : 6991 6992else 6993 # Broken: fails on valid input. 6994continue 6995fi 6996rm -f conftest.err conftest.i conftest.$ac_ext 6997 6998 # OK, works on sane cases. Now check whether nonexistent headers 6999 # can be detected and how. 7000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7001/* end confdefs.h. */ 7002#include <ac_nonexistent.h> 7003_ACEOF 7004if ac_fn_c_try_cpp "$LINENO"; then : 7005 # Broken: success on invalid input. 7006continue 7007else 7008 # Passes both tests. 7009ac_preproc_ok=: 7010break 7011fi 7012rm -f conftest.err conftest.i conftest.$ac_ext 7013 7014done 7015# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7016rm -f conftest.i conftest.err conftest.$ac_ext 7017if $ac_preproc_ok; then : 7018 break 7019fi 7020 7021 done 7022 ac_cv_prog_CPP=$CPP 7023 7024fi 7025 CPP=$ac_cv_prog_CPP 7026else 7027 ac_cv_prog_CPP=$CPP 7028fi 7029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 7030$as_echo "$CPP" >&6; } 7031ac_preproc_ok=false 7032for ac_c_preproc_warn_flag in '' yes 7033do 7034 # Use a header file that comes with gcc, so configuring glibc 7035 # with a fresh cross-compiler works. 7036 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7037 # <limits.h> exists even on freestanding compilers. 7038 # On the NeXT, cc -E runs the code through the compiler's parser, 7039 # not just through cpp. "Syntax error" is here to catch this case. 7040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7041/* end confdefs.h. */ 7042#ifdef __STDC__ 7043# include <limits.h> 7044#else 7045# include <assert.h> 7046#endif 7047 Syntax error 7048_ACEOF 7049if ac_fn_c_try_cpp "$LINENO"; then : 7050 7051else 7052 # Broken: fails on valid input. 7053continue 7054fi 7055rm -f conftest.err conftest.i conftest.$ac_ext 7056 7057 # OK, works on sane cases. Now check whether nonexistent headers 7058 # can be detected and how. 7059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7060/* end confdefs.h. */ 7061#include <ac_nonexistent.h> 7062_ACEOF 7063if ac_fn_c_try_cpp "$LINENO"; then : 7064 # Broken: success on invalid input. 7065continue 7066else 7067 # Passes both tests. 7068ac_preproc_ok=: 7069break 7070fi 7071rm -f conftest.err conftest.i conftest.$ac_ext 7072 7073done 7074# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7075rm -f conftest.i conftest.err conftest.$ac_ext 7076if $ac_preproc_ok; then : 7077 7078else 7079 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7080$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7081as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 7082See \`config.log' for more details" "$LINENO" 5; } 7083fi 7084 7085ac_ext=c 7086ac_cpp='$CPP $CPPFLAGS' 7087ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7088ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7089ac_compiler_gnu=$ac_cv_c_compiler_gnu 7090 7091 7092 7093 7094 7095 7096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for install dir and man conventions" >&5 7097$as_echo_n "checking for install dir and man conventions... " >&6; } 7098 7099 7100# Check whether --with-locfile was given. 7101if test "${with_locfile+set}" = set; then : 7102 withval=$with_locfile; 7103else 7104 with_locfile=no 7105 7106fi 7107 7108 7109( \ 7110 SENTINEL_DIR="$PWD" && \ 7111 cd $srcdir/ && \ 7112 case "$with_locfile" in \ 7113 yes|no|'') \ 7114 scripts/genLocInfo -d "$SENTINEL_DIR" \ 7115 ;; \ 7116 *) \ 7117 scripts/genLocInfo -d "$SENTINEL_DIR" -f "$with_locfile" \ 7118 ;; \ 7119 esac \ 7120) > genLocInfo.i 2> genLocInfo.err 7121. ./genLocInfo.i 7122 7123case "$GENLOCINFO" in 7124 OK) 7125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in file $GENLOCINFOFILE" >&5 7126$as_echo "in file $GENLOCINFOFILE" >&6; } 7127 rm genLocInfo.err genLocInfo.i 7128 ;; 7129 *) 7130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed." >&5 7131$as_echo "failed." >&6; } 7132 as_fn_error $? "Problem with genLocInfo!" "$LINENO" 5 7133 ;; 7134esac 7135 7136 if test "$CALC_TICKADJ_MS" ; then 7137 WANT_CALC_TICKADJ_MS_TRUE= 7138 WANT_CALC_TICKADJ_MS_FALSE='#' 7139else 7140 WANT_CALC_TICKADJ_MS_TRUE='#' 7141 WANT_CALC_TICKADJ_MS_FALSE= 7142fi 7143 7144 7145 7146 7147 7148 7149 7150 7151 7152 7153 7154 7155 7156 7157 7158 7159 7160 7161 7162 7163 7164 7165 7166 7167 7168 7169 7170 7171 7172 7173 7174 7175 7176 7177 7178 7179 7180 7181 7182 7183 7184 7185 7186 if test -z "$NTPSWEEP_NI" ; then 7187 INSTALL_NTPSWEEP_TRUE= 7188 INSTALL_NTPSWEEP_FALSE='#' 7189else 7190 INSTALL_NTPSWEEP_TRUE='#' 7191 INSTALL_NTPSWEEP_FALSE= 7192fi 7193 7194 7195 7196 7197 7198 7199 7200 7201 7202 7203 7204 7205 7206 7207 7208 7209 7210 7211 7212 7213 7214 7215 7216 7217 7218 7219 7220 7221 7222 7223 7224 7225 7226 7227 7228 7229 7230 7231 7232 7233 7234 if test -z "$UPDATE_LEAP_NI" ; then 7235 INSTALL_UPDATE_LEAP_TRUE= 7236 INSTALL_UPDATE_LEAP_FALSE='#' 7237else 7238 INSTALL_UPDATE_LEAP_TRUE='#' 7239 INSTALL_UPDATE_LEAP_FALSE= 7240fi 7241 7242 7243 7244 7245if test -n "$ac_tool_prefix"; then 7246 for ac_prog in ar lib "link -lib" 7247 do 7248 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 7249set dummy $ac_tool_prefix$ac_prog; ac_word=$2 7250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7251$as_echo_n "checking for $ac_word... " >&6; } 7252if ${ac_cv_prog_AR+:} false; then : 7253 $as_echo_n "(cached) " >&6 7254else 7255 if test -n "$AR"; then 7256 ac_cv_prog_AR="$AR" # Let the user override the test. 7257else 7258as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7259for as_dir in $PATH 7260do 7261 IFS=$as_save_IFS 7262 test -z "$as_dir" && as_dir=. 7263 for ac_exec_ext in '' $ac_executable_extensions; do 7264 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7265 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 7266 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7267 break 2 7268 fi 7269done 7270 done 7271IFS=$as_save_IFS 7272 7273fi 7274fi 7275AR=$ac_cv_prog_AR 7276if test -n "$AR"; then 7277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 7278$as_echo "$AR" >&6; } 7279else 7280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7281$as_echo "no" >&6; } 7282fi 7283 7284 7285 test -n "$AR" && break 7286 done 7287fi 7288if test -z "$AR"; then 7289 ac_ct_AR=$AR 7290 for ac_prog in ar lib "link -lib" 7291do 7292 # Extract the first word of "$ac_prog", so it can be a program name with args. 7293set dummy $ac_prog; ac_word=$2 7294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7295$as_echo_n "checking for $ac_word... " >&6; } 7296if ${ac_cv_prog_ac_ct_AR+:} false; then : 7297 $as_echo_n "(cached) " >&6 7298else 7299 if test -n "$ac_ct_AR"; then 7300 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 7301else 7302as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7303for as_dir in $PATH 7304do 7305 IFS=$as_save_IFS 7306 test -z "$as_dir" && as_dir=. 7307 for ac_exec_ext in '' $ac_executable_extensions; do 7308 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7309 ac_cv_prog_ac_ct_AR="$ac_prog" 7310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7311 break 2 7312 fi 7313done 7314 done 7315IFS=$as_save_IFS 7316 7317fi 7318fi 7319ac_ct_AR=$ac_cv_prog_ac_ct_AR 7320if test -n "$ac_ct_AR"; then 7321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 7322$as_echo "$ac_ct_AR" >&6; } 7323else 7324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7325$as_echo "no" >&6; } 7326fi 7327 7328 7329 test -n "$ac_ct_AR" && break 7330done 7331 7332 if test "x$ac_ct_AR" = x; then 7333 AR="false" 7334 else 7335 case $cross_compiling:$ac_tool_warned in 7336yes:) 7337{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7338$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7339ac_tool_warned=yes ;; 7340esac 7341 AR=$ac_ct_AR 7342 fi 7343fi 7344 7345: ${AR=ar} 7346 7347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5 7348$as_echo_n "checking the archiver ($AR) interface... " >&6; } 7349if ${am_cv_ar_interface+:} false; then : 7350 $as_echo_n "(cached) " >&6 7351else 7352 ac_ext=c 7353ac_cpp='$CPP $CPPFLAGS' 7354ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7355ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7356ac_compiler_gnu=$ac_cv_c_compiler_gnu 7357 7358 am_cv_ar_interface=ar 7359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7360/* end confdefs.h. */ 7361int some_variable = 0; 7362_ACEOF 7363if ac_fn_c_try_compile "$LINENO"; then : 7364 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5' 7365 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 7366 (eval $am_ar_try) 2>&5 7367 ac_status=$? 7368 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7369 test $ac_status = 0; } 7370 if test "$ac_status" -eq 0; then 7371 am_cv_ar_interface=ar 7372 else 7373 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5' 7374 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 7375 (eval $am_ar_try) 2>&5 7376 ac_status=$? 7377 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7378 test $ac_status = 0; } 7379 if test "$ac_status" -eq 0; then 7380 am_cv_ar_interface=lib 7381 else 7382 am_cv_ar_interface=unknown 7383 fi 7384 fi 7385 rm -f conftest.lib libconftest.a 7386 7387fi 7388rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7389 ac_ext=c 7390ac_cpp='$CPP $CPPFLAGS' 7391ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7392ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7393ac_compiler_gnu=$ac_cv_c_compiler_gnu 7394 7395fi 7396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5 7397$as_echo "$am_cv_ar_interface" >&6; } 7398 7399case $am_cv_ar_interface in 7400ar) 7401 ;; 7402lib) 7403 # Microsoft lib, so override with the ar-lib wrapper script. 7404 # FIXME: It is wrong to rewrite AR. 7405 # But if we don't then we get into trouble of one sort or another. 7406 # A longer-term fix would be to have automake use am__AR in this case, 7407 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something 7408 # similar. 7409 AR="$am_aux_dir/ar-lib $AR" 7410 ;; 7411unknown) 7412 as_fn_error $? "could not determine $AR interface" "$LINENO" 5 7413 ;; 7414esac 7415 7416 7417 7418 7419 7420# Expose a cross-compilation indicator to makefiles 7421 if test $build != $host; then 7422 NTP_CROSSCOMPILE_TRUE= 7423 NTP_CROSSCOMPILE_FALSE='#' 7424else 7425 NTP_CROSSCOMPILE_TRUE='#' 7426 NTP_CROSSCOMPILE_FALSE= 7427fi 7428 7429 7430 7431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 7432$as_echo_n "checking for a sed that does not truncate output... " >&6; } 7433if ${ac_cv_path_SED+:} false; then : 7434 $as_echo_n "(cached) " >&6 7435else 7436 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 7437 for ac_i in 1 2 3 4 5 6 7; do 7438 ac_script="$ac_script$as_nl$ac_script" 7439 done 7440 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 7441 { ac_script=; unset ac_script;} 7442 if test -z "$SED"; then 7443 ac_path_SED_found=false 7444 # Loop through the user's path and test for each of PROGNAME-LIST 7445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7446for as_dir in $PATH 7447do 7448 IFS=$as_save_IFS 7449 test -z "$as_dir" && as_dir=. 7450 for ac_prog in sed gsed; do 7451 for ac_exec_ext in '' $ac_executable_extensions; do 7452 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 7453 as_fn_executable_p "$ac_path_SED" || continue 7454# Check for GNU ac_path_SED and select it if it is found. 7455 # Check for GNU $ac_path_SED 7456case `"$ac_path_SED" --version 2>&1` in 7457*GNU*) 7458 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 7459*) 7460 ac_count=0 7461 $as_echo_n 0123456789 >"conftest.in" 7462 while : 7463 do 7464 cat "conftest.in" "conftest.in" >"conftest.tmp" 7465 mv "conftest.tmp" "conftest.in" 7466 cp "conftest.in" "conftest.nl" 7467 $as_echo '' >> "conftest.nl" 7468 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 7469 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 7470 as_fn_arith $ac_count + 1 && ac_count=$as_val 7471 if test $ac_count -gt ${ac_path_SED_max-0}; then 7472 # Best one so far, save it but keep looking for a better one 7473 ac_cv_path_SED="$ac_path_SED" 7474 ac_path_SED_max=$ac_count 7475 fi 7476 # 10*(2^10) chars as input seems more than enough 7477 test $ac_count -gt 10 && break 7478 done 7479 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 7480esac 7481 7482 $ac_path_SED_found && break 3 7483 done 7484 done 7485 done 7486IFS=$as_save_IFS 7487 if test -z "$ac_cv_path_SED"; then 7488 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 7489 fi 7490else 7491 ac_cv_path_SED=$SED 7492fi 7493 7494fi 7495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 7496$as_echo "$ac_cv_path_SED" >&6; } 7497 SED="$ac_cv_path_SED" 7498 rm -f conftest.sed 7499 7500test -z "$SED" && SED=sed 7501Xsed="$SED -e 1s/^X//" 7502 7503 7504 7505 7506 7507 7508 7509 7510 7511 7512 7513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 7514$as_echo_n "checking for fgrep... " >&6; } 7515if ${ac_cv_path_FGREP+:} false; then : 7516 $as_echo_n "(cached) " >&6 7517else 7518 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 7519 then ac_cv_path_FGREP="$GREP -F" 7520 else 7521 if test -z "$FGREP"; then 7522 ac_path_FGREP_found=false 7523 # Loop through the user's path and test for each of PROGNAME-LIST 7524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7525for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 7526do 7527 IFS=$as_save_IFS 7528 test -z "$as_dir" && as_dir=. 7529 for ac_prog in fgrep; do 7530 for ac_exec_ext in '' $ac_executable_extensions; do 7531 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 7532 as_fn_executable_p "$ac_path_FGREP" || continue 7533# Check for GNU ac_path_FGREP and select it if it is found. 7534 # Check for GNU $ac_path_FGREP 7535case `"$ac_path_FGREP" --version 2>&1` in 7536*GNU*) 7537 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 7538*) 7539 ac_count=0 7540 $as_echo_n 0123456789 >"conftest.in" 7541 while : 7542 do 7543 cat "conftest.in" "conftest.in" >"conftest.tmp" 7544 mv "conftest.tmp" "conftest.in" 7545 cp "conftest.in" "conftest.nl" 7546 $as_echo 'FGREP' >> "conftest.nl" 7547 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 7548 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 7549 as_fn_arith $ac_count + 1 && ac_count=$as_val 7550 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 7551 # Best one so far, save it but keep looking for a better one 7552 ac_cv_path_FGREP="$ac_path_FGREP" 7553 ac_path_FGREP_max=$ac_count 7554 fi 7555 # 10*(2^10) chars as input seems more than enough 7556 test $ac_count -gt 10 && break 7557 done 7558 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 7559esac 7560 7561 $ac_path_FGREP_found && break 3 7562 done 7563 done 7564 done 7565IFS=$as_save_IFS 7566 if test -z "$ac_cv_path_FGREP"; then 7567 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 7568 fi 7569else 7570 ac_cv_path_FGREP=$FGREP 7571fi 7572 7573 fi 7574fi 7575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 7576$as_echo "$ac_cv_path_FGREP" >&6; } 7577 FGREP="$ac_cv_path_FGREP" 7578 7579 7580test -z "$GREP" && GREP=grep 7581 7582 7583 7584 7585 7586 7587 7588 7589 7590 7591 7592 7593 7594 7595 7596 7597 7598ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 7599ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 7600ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 7601 7602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 7603$as_echo_n "checking how to print strings... " >&6; } 7604# Test print first, because it will be a builtin if present. 7605if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 7606 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 7607 ECHO='print -r --' 7608elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 7609 ECHO='printf %s\n' 7610else 7611 # Use this function as a fallback that always works. 7612 func_fallback_echo () 7613 { 7614 eval 'cat <<_LTECHO_EOF 7615$1 7616_LTECHO_EOF' 7617 } 7618 ECHO='func_fallback_echo' 7619fi 7620 7621# func_echo_all arg... 7622# Invoke $ECHO with all args, space-separated. 7623func_echo_all () 7624{ 7625 $ECHO "" 7626} 7627 7628case $ECHO in 7629 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 7630$as_echo "printf" >&6; } ;; 7631 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 7632$as_echo "print -r" >&6; } ;; 7633 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 7634$as_echo "cat" >&6; } ;; 7635esac 7636 7637 7638 7639 7640 7641 7642 7643 7644 7645 7646 7647 7648 7649 7650ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" 7651if test "x$ac_cv_type_pid_t" = xyes; then : 7652 7653else 7654 7655cat >>confdefs.h <<_ACEOF 7656#define pid_t int 7657_ACEOF 7658 7659fi 7660 7661ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 7662if test "x$ac_cv_type_size_t" = xyes; then : 7663 7664else 7665 7666cat >>confdefs.h <<_ACEOF 7667#define size_t unsigned int 7668_ACEOF 7669 7670fi 7671 7672 7673 # Check whether --enable-c99-snprintf was given. 7674if test "${enable_c99_snprintf+set}" = set; then : 7675 enableval=$enable_c99_snprintf; force_c99_snprintf=$enableval 7676else 7677 force_c99_snprintf=no 7678 7679fi 7680 7681 case "$force_c99_snprintf" in 7682 yes) 7683 hw_force_rpl_snprintf=yes 7684 hw_force_rpl_vsnprintf=yes 7685 esac 7686 7687 7688 7689 7690 7691 7692 for ac_header in $ac_header_list 7693do : 7694 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7695ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 7696" 7697if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 7698 cat >>confdefs.h <<_ACEOF 7699#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7700_ACEOF 7701 7702fi 7703 7704done 7705 7706 7707 7708 7709 7710 7711 7712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5 7713$as_echo_n "checking for unsigned long long int... " >&6; } 7714if ${ac_cv_type_unsigned_long_long_int+:} false; then : 7715 $as_echo_n "(cached) " >&6 7716else 7717 ac_cv_type_unsigned_long_long_int=yes 7718 if test "x${ac_cv_prog_cc_c99-no}" = xno; then 7719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7720/* end confdefs.h. */ 7721 7722 /* For now, do not test the preprocessor; as of 2007 there are too many 7723 implementations with broken preprocessors. Perhaps this can 7724 be revisited in 2012. In the meantime, code should not expect 7725 #if to work with literals wider than 32 bits. */ 7726 /* Test literals. */ 7727 long long int ll = 9223372036854775807ll; 7728 long long int nll = -9223372036854775807LL; 7729 unsigned long long int ull = 18446744073709551615ULL; 7730 /* Test constant expressions. */ 7731 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll) 7732 ? 1 : -1)]; 7733 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1 7734 ? 1 : -1)]; 7735 int i = 63; 7736int 7737main () 7738{ 7739/* Test availability of runtime routines for shift and division. */ 7740 long long int llmax = 9223372036854775807ll; 7741 unsigned long long int ullmax = 18446744073709551615ull; 7742 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i) 7743 | (llmax / ll) | (llmax % ll) 7744 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i) 7745 | (ullmax / ull) | (ullmax % ull)); 7746 ; 7747 return 0; 7748} 7749 7750_ACEOF 7751if ac_fn_c_try_link "$LINENO"; then : 7752 7753else 7754 ac_cv_type_unsigned_long_long_int=no 7755fi 7756rm -f core conftest.err conftest.$ac_objext \ 7757 conftest$ac_exeext conftest.$ac_ext 7758 fi 7759fi 7760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5 7761$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; } 7762 if test $ac_cv_type_unsigned_long_long_int = yes; then 7763 7764$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h 7765 7766 fi 7767 7768 7769 ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf" 7770if test "x$ac_cv_func_vsnprintf" = xyes; then : 7771 hw_cv_func_vsnprintf=yes 7772else 7773 hw_cv_func_vsnprintf=no 7774fi 7775 7776 if test "$hw_cv_func_vsnprintf" = yes; then : 7777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vsnprintf is C99 compliant" >&5 7778$as_echo_n "checking whether vsnprintf is C99 compliant... " >&6; } 7779if ${hw_cv_func_vsnprintf_c99+:} false; then : 7780 $as_echo_n "(cached) " >&6 7781else 7782 if test "$cross_compiling" = yes; then : 7783 hw_cv_func_vsnprintf_c99=no 7784else 7785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7786/* end confdefs.h. */ 7787#if HAVE_STDARG_H 7788 #include <stdarg.h> 7789 #endif 7790 #include <stdio.h> 7791 static int testprintf(char *buf, size_t size, const char *format, ...) 7792 { 7793 int result; 7794 va_list ap; 7795 va_start(ap, format); 7796 result = vsnprintf(buf, size, format, ap); 7797 va_end(ap); 7798 return result; 7799 } 7800int 7801main () 7802{ 7803char buf[43]; 7804 if (testprintf(buf, 4, "The answer is %27.2g.", 42.0) != 42 || 7805 testprintf(buf, 0, "No, it's %32zu.", (size_t)42) != 42 || 7806 buf[0] != 'T' || buf[3] != '\0') 7807 return 1; 7808 ; 7809 return 0; 7810} 7811_ACEOF 7812if ac_fn_c_try_run "$LINENO"; then : 7813 hw_cv_func_vsnprintf_c99=yes 7814else 7815 hw_cv_func_vsnprintf_c99=no 7816fi 7817rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7818 conftest.$ac_objext conftest.beam conftest.$ac_ext 7819fi 7820 7821fi 7822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_cv_func_vsnprintf_c99" >&5 7823$as_echo "$hw_cv_func_vsnprintf_c99" >&6; } 7824else 7825 hw_cv_func_vsnprintf_c99=no 7826fi 7827 7828$as_echo "#define HAVE_VSNPRINTF 1" >>confdefs.h 7829 7830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C99-snprintf replacement vsnprintf will be used" >&5 7831$as_echo_n "checking if C99-snprintf replacement vsnprintf will be used... " >&6; } 7832 if test "${hw_force_rpl_vsnprintf=no}" = yes -o "$hw_cv_func_vsnprintf_c99" = no; then : 7833 hw_use_rpl_vsnprintf=yes 7834else 7835 hw_use_rpl_vsnprintf=no 7836fi 7837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_use_rpl_vsnprintf" >&5 7838$as_echo "$hw_use_rpl_vsnprintf" >&6; } 7839 if test "$hw_use_rpl_vsnprintf" = yes; then : 7840 7841$as_echo "#define HW_WANT_RPL_VSNPRINTF 1" >>confdefs.h 7842 7843 if test ${hw_nodef_vsnprintf=no} = no; then : 7844 7845$as_echo "#define vsnprintf rpl_vsnprintf" >>confdefs.h 7846 7847fi 7848 for ac_header in inttypes.h locale.h stddef.h stdint.h 7849do : 7850 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7851ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 7852if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 7853 cat >>confdefs.h <<_ACEOF 7854#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7855_ACEOF 7856 7857fi 7858 7859done 7860 7861 ac_fn_c_check_member "$LINENO" "struct lconv" "decimal_point" "ac_cv_member_struct_lconv_decimal_point" "#include <locale.h> 7862" 7863if test "x$ac_cv_member_struct_lconv_decimal_point" = xyes; then : 7864 7865cat >>confdefs.h <<_ACEOF 7866#define HAVE_STRUCT_LCONV_DECIMAL_POINT 1 7867_ACEOF 7868 7869 7870fi 7871ac_fn_c_check_member "$LINENO" "struct lconv" "thousands_sep" "ac_cv_member_struct_lconv_thousands_sep" "#include <locale.h> 7872" 7873if test "x$ac_cv_member_struct_lconv_thousands_sep" = xyes; then : 7874 7875cat >>confdefs.h <<_ACEOF 7876#define HAVE_STRUCT_LCONV_THOUSANDS_SEP 1 7877_ACEOF 7878 7879 7880fi 7881 7882 7883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5 7884$as_echo_n "checking for long double... " >&6; } 7885if ${ac_cv_type_long_double+:} false; then : 7886 $as_echo_n "(cached) " >&6 7887else 7888 if test "$GCC" = yes; then 7889 ac_cv_type_long_double=yes 7890 else 7891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7892/* end confdefs.h. */ 7893/* The Stardent Vistra knows sizeof (long double), but does 7894 not support it. */ 7895 long double foo = 0.0L; 7896int 7897main () 7898{ 7899static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8. */ 7900 sizeof (double) <= sizeof (long double))]; 7901test_array [0] = 0; 7902return test_array [0]; 7903 7904 ; 7905 return 0; 7906} 7907_ACEOF 7908if ac_fn_c_try_compile "$LINENO"; then : 7909 ac_cv_type_long_double=yes 7910else 7911 ac_cv_type_long_double=no 7912fi 7913rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7914 fi 7915fi 7916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5 7917$as_echo "$ac_cv_type_long_double" >&6; } 7918 if test $ac_cv_type_long_double = yes; then 7919 7920$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h 7921 7922 fi 7923 7924 7925 7926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5 7927$as_echo_n "checking for long long int... " >&6; } 7928if ${ac_cv_type_long_long_int+:} false; then : 7929 $as_echo_n "(cached) " >&6 7930else 7931 ac_cv_type_long_long_int=yes 7932 if test "x${ac_cv_prog_cc_c99-no}" = xno; then 7933 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int 7934 if test $ac_cv_type_long_long_int = yes; then 7935 if test "$cross_compiling" = yes; then : 7936 : 7937else 7938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7939/* end confdefs.h. */ 7940#include <limits.h> 7941 #ifndef LLONG_MAX 7942 # define HALF \ 7943 (1LL << (sizeof (long long int) * CHAR_BIT - 2)) 7944 # define LLONG_MAX (HALF - 1 + HALF) 7945 #endif 7946int 7947main () 7948{ 7949long long int n = 1; 7950 int i; 7951 for (i = 0; ; i++) 7952 { 7953 long long int m = n << i; 7954 if (m >> i != n) 7955 return 1; 7956 if (LLONG_MAX / 2 < m) 7957 break; 7958 } 7959 return 0; 7960 ; 7961 return 0; 7962} 7963_ACEOF 7964if ac_fn_c_try_run "$LINENO"; then : 7965 7966else 7967 ac_cv_type_long_long_int=no 7968fi 7969rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7970 conftest.$ac_objext conftest.beam conftest.$ac_ext 7971fi 7972 7973 fi 7974 fi 7975fi 7976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5 7977$as_echo "$ac_cv_type_long_long_int" >&6; } 7978 if test $ac_cv_type_long_long_int = yes; then 7979 7980$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h 7981 7982 fi 7983 7984 7985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5 7986$as_echo_n "checking for unsigned long long int... " >&6; } 7987if ${ac_cv_type_unsigned_long_long_int+:} false; then : 7988 $as_echo_n "(cached) " >&6 7989else 7990 ac_cv_type_unsigned_long_long_int=yes 7991 if test "x${ac_cv_prog_cc_c99-no}" = xno; then 7992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7993/* end confdefs.h. */ 7994 7995 /* For now, do not test the preprocessor; as of 2007 there are too many 7996 implementations with broken preprocessors. Perhaps this can 7997 be revisited in 2012. In the meantime, code should not expect 7998 #if to work with literals wider than 32 bits. */ 7999 /* Test literals. */ 8000 long long int ll = 9223372036854775807ll; 8001 long long int nll = -9223372036854775807LL; 8002 unsigned long long int ull = 18446744073709551615ULL; 8003 /* Test constant expressions. */ 8004 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll) 8005 ? 1 : -1)]; 8006 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1 8007 ? 1 : -1)]; 8008 int i = 63; 8009int 8010main () 8011{ 8012/* Test availability of runtime routines for shift and division. */ 8013 long long int llmax = 9223372036854775807ll; 8014 unsigned long long int ullmax = 18446744073709551615ull; 8015 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i) 8016 | (llmax / ll) | (llmax % ll) 8017 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i) 8018 | (ullmax / ull) | (ullmax % ull)); 8019 ; 8020 return 0; 8021} 8022 8023_ACEOF 8024if ac_fn_c_try_link "$LINENO"; then : 8025 8026else 8027 ac_cv_type_unsigned_long_long_int=no 8028fi 8029rm -f core conftest.err conftest.$ac_objext \ 8030 conftest$ac_exeext conftest.$ac_ext 8031 fi 8032fi 8033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5 8034$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; } 8035 if test $ac_cv_type_unsigned_long_long_int = yes; then 8036 8037$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h 8038 8039 fi 8040 8041 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 8042if test "x$ac_cv_type_size_t" = xyes; then : 8043 8044else 8045 8046cat >>confdefs.h <<_ACEOF 8047#define size_t unsigned int 8048_ACEOF 8049 8050fi 8051 8052 8053 8054 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default" 8055if test "x$ac_cv_type_intmax_t" = xyes; then : 8056 8057$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h 8058 8059else 8060 test $ac_cv_type_long_long_int = yes \ 8061 && ac_type='long long int' \ 8062 || ac_type='long int' 8063 8064cat >>confdefs.h <<_ACEOF 8065#define intmax_t $ac_type 8066_ACEOF 8067 8068fi 8069 8070 8071 8072 8073 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default" 8074if test "x$ac_cv_type_uintmax_t" = xyes; then : 8075 8076$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h 8077 8078else 8079 test $ac_cv_type_unsigned_long_long_int = yes \ 8080 && ac_type='unsigned long long int' \ 8081 || ac_type='unsigned long int' 8082 8083cat >>confdefs.h <<_ACEOF 8084#define uintmax_t $ac_type 8085_ACEOF 8086 8087fi 8088 8089 8090 8091 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default" 8092if test "x$ac_cv_type_uintptr_t" = xyes; then : 8093 8094$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h 8095 8096else 8097 for ac_type in 'unsigned int' 'unsigned long int' \ 8098 'unsigned long long int'; do 8099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8100/* end confdefs.h. */ 8101$ac_includes_default 8102int 8103main () 8104{ 8105static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))]; 8106test_array [0] = 0; 8107return test_array [0]; 8108 8109 ; 8110 return 0; 8111} 8112_ACEOF 8113if ac_fn_c_try_compile "$LINENO"; then : 8114 8115cat >>confdefs.h <<_ACEOF 8116#define uintptr_t $ac_type 8117_ACEOF 8118 8119 ac_type= 8120fi 8121rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8122 test -z "$ac_type" && break 8123 done 8124fi 8125 8126 8127 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default" 8128if test "x$ac_cv_type_ptrdiff_t" = xyes; then : 8129 8130cat >>confdefs.h <<_ACEOF 8131#define HAVE_PTRDIFF_T 1 8132_ACEOF 8133 8134 8135fi 8136 8137 for ac_func in localeconv 8138do : 8139 ac_fn_c_check_func "$LINENO" "localeconv" "ac_cv_func_localeconv" 8140if test "x$ac_cv_func_localeconv" = xyes; then : 8141 cat >>confdefs.h <<_ACEOF 8142#define HAVE_LOCALECONV 1 8143_ACEOF 8144 8145fi 8146done 8147 8148 8149 if test "x$_hw_cv_func_xprintf_replace_done" != xyes; then : 8150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 8151$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 8152if ${ac_cv_c_const+:} false; then : 8153 $as_echo_n "(cached) " >&6 8154else 8155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8156/* end confdefs.h. */ 8157 8158int 8159main () 8160{ 8161 8162#ifndef __cplusplus 8163 /* Ultrix mips cc rejects this sort of thing. */ 8164 typedef int charset[2]; 8165 const charset cs = { 0, 0 }; 8166 /* SunOS 4.1.1 cc rejects this. */ 8167 char const *const *pcpcc; 8168 char **ppc; 8169 /* NEC SVR4.0.2 mips cc rejects this. */ 8170 struct point {int x, y;}; 8171 static struct point const zero = {0,0}; 8172 /* AIX XL C 1.02.0.0 rejects this. 8173 It does not let you subtract one const X* pointer from another in 8174 an arm of an if-expression whose if-part is not a constant 8175 expression */ 8176 const char *g = "string"; 8177 pcpcc = &g + (g ? g-g : 0); 8178 /* HPUX 7.0 cc rejects these. */ 8179 ++pcpcc; 8180 ppc = (char**) pcpcc; 8181 pcpcc = (char const *const *) ppc; 8182 { /* SCO 3.2v4 cc rejects this sort of thing. */ 8183 char tx; 8184 char *t = &tx; 8185 char const *s = 0 ? (char *) 0 : (char const *) 0; 8186 8187 *t++ = 0; 8188 if (s) return 0; 8189 } 8190 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 8191 int x[] = {25, 17}; 8192 const int *foo = &x[0]; 8193 ++foo; 8194 } 8195 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 8196 typedef const int *iptr; 8197 iptr p = 0; 8198 ++p; 8199 } 8200 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 8201 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 8202 struct s { int j; const int *ap[3]; } bx; 8203 struct s *b = &bx; b->j = 5; 8204 } 8205 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 8206 const int foo = 10; 8207 if (!foo) return 0; 8208 } 8209 return !cs[0] && !zero.x; 8210#endif 8211 8212 ; 8213 return 0; 8214} 8215_ACEOF 8216if ac_fn_c_try_compile "$LINENO"; then : 8217 ac_cv_c_const=yes 8218else 8219 ac_cv_c_const=no 8220fi 8221rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8222fi 8223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 8224$as_echo "$ac_cv_c_const" >&6; } 8225if test $ac_cv_c_const = no; then 8226 8227$as_echo "#define const /**/" >>confdefs.h 8228 8229fi 8230 8231 8232 8233 8234 case " $LIBOBJS " in 8235 *" snprintf.$ac_objext "* ) ;; 8236 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext" 8237 ;; 8238esac 8239 8240 _hw_cv_func_xprintf_replace_done=yes 8241fi 8242 8243fi 8244 8245 8246 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf" 8247if test "x$ac_cv_func_snprintf" = xyes; then : 8248 hw_cv_func_snprintf=yes 8249else 8250 hw_cv_func_snprintf=no 8251fi 8252 8253 if test "$hw_cv_func_snprintf" = yes; then : 8254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf is C99 compliant" >&5 8255$as_echo_n "checking whether snprintf is C99 compliant... " >&6; } 8256if ${hw_cv_func_snprintf_c99+:} false; then : 8257 $as_echo_n "(cached) " >&6 8258else 8259 if test "$cross_compiling" = yes; then : 8260 hw_cv_func_snprintf_c99=no 8261else 8262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8263/* end confdefs.h. */ 8264#include <stdio.h> 8265int 8266main () 8267{ 8268char buf[43]; 8269 if (snprintf(buf, 4, "The answer is %27.2g.", 42.0) != 42 || 8270 snprintf(buf, 0, "No, it's %32zu.", (size_t)42) != 42 || 8271 buf[0] != 'T' || buf[3] != '\0') 8272 return 1; 8273 ; 8274 return 0; 8275} 8276_ACEOF 8277if ac_fn_c_try_run "$LINENO"; then : 8278 hw_cv_func_snprintf_c99=yes 8279else 8280 hw_cv_func_snprintf_c99=no 8281fi 8282rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8283 conftest.$ac_objext conftest.beam conftest.$ac_ext 8284fi 8285 8286fi 8287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_cv_func_snprintf_c99" >&5 8288$as_echo "$hw_cv_func_snprintf_c99" >&6; } 8289else 8290 hw_cv_func_snprintf_c99=no 8291fi 8292 8293$as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h 8294 8295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C99-snprintf replacement snprintf will be used" >&5 8296$as_echo_n "checking if C99-snprintf replacement snprintf will be used... " >&6; } 8297 if test "${hw_force_rpl_snprintf=no}" = yes -o "$hw_cv_func_snprintf_c99" = no; then : 8298 hw_use_rpl_snprintf=yes 8299else 8300 hw_use_rpl_snprintf=no 8301fi 8302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_use_rpl_snprintf" >&5 8303$as_echo "$hw_use_rpl_snprintf" >&6; } 8304 if test "$hw_use_rpl_snprintf" = yes; then : 8305 8306$as_echo "#define HW_WANT_RPL_SNPRINTF 1" >>confdefs.h 8307 8308 if test ${hw_nodef_snprintf=no} = no; then : 8309 8310$as_echo "#define snprintf rpl_snprintf" >>confdefs.h 8311 8312fi 8313 8314 if test "x$_hw_cv_func_xprintf_replace_done" != xyes; then : 8315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 8316$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 8317if ${ac_cv_c_const+:} false; then : 8318 $as_echo_n "(cached) " >&6 8319else 8320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8321/* end confdefs.h. */ 8322 8323int 8324main () 8325{ 8326 8327#ifndef __cplusplus 8328 /* Ultrix mips cc rejects this sort of thing. */ 8329 typedef int charset[2]; 8330 const charset cs = { 0, 0 }; 8331 /* SunOS 4.1.1 cc rejects this. */ 8332 char const *const *pcpcc; 8333 char **ppc; 8334 /* NEC SVR4.0.2 mips cc rejects this. */ 8335 struct point {int x, y;}; 8336 static struct point const zero = {0,0}; 8337 /* AIX XL C 1.02.0.0 rejects this. 8338 It does not let you subtract one const X* pointer from another in 8339 an arm of an if-expression whose if-part is not a constant 8340 expression */ 8341 const char *g = "string"; 8342 pcpcc = &g + (g ? g-g : 0); 8343 /* HPUX 7.0 cc rejects these. */ 8344 ++pcpcc; 8345 ppc = (char**) pcpcc; 8346 pcpcc = (char const *const *) ppc; 8347 { /* SCO 3.2v4 cc rejects this sort of thing. */ 8348 char tx; 8349 char *t = &tx; 8350 char const *s = 0 ? (char *) 0 : (char const *) 0; 8351 8352 *t++ = 0; 8353 if (s) return 0; 8354 } 8355 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 8356 int x[] = {25, 17}; 8357 const int *foo = &x[0]; 8358 ++foo; 8359 } 8360 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 8361 typedef const int *iptr; 8362 iptr p = 0; 8363 ++p; 8364 } 8365 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 8366 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 8367 struct s { int j; const int *ap[3]; } bx; 8368 struct s *b = &bx; b->j = 5; 8369 } 8370 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 8371 const int foo = 10; 8372 if (!foo) return 0; 8373 } 8374 return !cs[0] && !zero.x; 8375#endif 8376 8377 ; 8378 return 0; 8379} 8380_ACEOF 8381if ac_fn_c_try_compile "$LINENO"; then : 8382 ac_cv_c_const=yes 8383else 8384 ac_cv_c_const=no 8385fi 8386rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8387fi 8388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 8389$as_echo "$ac_cv_c_const" >&6; } 8390if test $ac_cv_c_const = no; then 8391 8392$as_echo "#define const /**/" >>confdefs.h 8393 8394fi 8395 8396 8397 8398 8399 case " $LIBOBJS " in 8400 *" snprintf.$ac_objext "* ) ;; 8401 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext" 8402 ;; 8403esac 8404 8405 _hw_cv_func_xprintf_replace_done=yes 8406fi 8407 8408fi 8409 8410 8411 8412 8413 8414# HMS: Save $LIBS and empty it. 8415# any LIBS we add here should go in to LDADD_LIBNTP 8416 8417__LIBS=$LIBS 8418LIBS= 8419 8420 8421 8422# [Bug 2332] because we need to know if we are using GNU ld... 8423 8424 8425# Check whether --with-gnu-ld was given. 8426if test "${with_gnu_ld+set}" = set; then : 8427 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 8428else 8429 with_gnu_ld=no 8430fi 8431 8432ac_prog=ld 8433if test yes = "$GCC"; then 8434 # Check if gcc -print-prog-name=ld gives a path. 8435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 8436$as_echo_n "checking for ld used by $CC... " >&6; } 8437 case $host in 8438 *-*-mingw*) 8439 # gcc leaves a trailing carriage return, which upsets mingw 8440 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 8441 *) 8442 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 8443 esac 8444 case $ac_prog in 8445 # Accept absolute paths. 8446 [\\/]* | ?:[\\/]*) 8447 re_direlt='/[^/][^/]*/\.\./' 8448 # Canonicalize the pathname of ld 8449 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 8450 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 8451 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 8452 done 8453 test -z "$LD" && LD=$ac_prog 8454 ;; 8455 "") 8456 # If it fails, then pretend we aren't using GCC. 8457 ac_prog=ld 8458 ;; 8459 *) 8460 # If it is relative, then search for the first ld in PATH. 8461 with_gnu_ld=unknown 8462 ;; 8463 esac 8464elif test yes = "$with_gnu_ld"; then 8465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 8466$as_echo_n "checking for GNU ld... " >&6; } 8467else 8468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 8469$as_echo_n "checking for non-GNU ld... " >&6; } 8470fi 8471if ${lt_cv_path_LD+:} false; then : 8472 $as_echo_n "(cached) " >&6 8473else 8474 if test -z "$LD"; then 8475 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8476 for ac_dir in $PATH; do 8477 IFS=$lt_save_ifs 8478 test -z "$ac_dir" && ac_dir=. 8479 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 8480 lt_cv_path_LD=$ac_dir/$ac_prog 8481 # Check to see if the program is GNU ld. I'd rather use --version, 8482 # but apparently some variants of GNU ld only accept -v. 8483 # Break only if it was the GNU/non-GNU ld that we prefer. 8484 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 8485 *GNU* | *'with BFD'*) 8486 test no != "$with_gnu_ld" && break 8487 ;; 8488 *) 8489 test yes != "$with_gnu_ld" && break 8490 ;; 8491 esac 8492 fi 8493 done 8494 IFS=$lt_save_ifs 8495else 8496 lt_cv_path_LD=$LD # Let the user override the test with a path. 8497fi 8498fi 8499 8500LD=$lt_cv_path_LD 8501if test -n "$LD"; then 8502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 8503$as_echo "$LD" >&6; } 8504else 8505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8506$as_echo "no" >&6; } 8507fi 8508test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 8509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 8510$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 8511if ${lt_cv_prog_gnu_ld+:} false; then : 8512 $as_echo_n "(cached) " >&6 8513else 8514 # I'd rather use --version here, but apparently some GNU lds only accept -v. 8515case `$LD -v 2>&1 </dev/null` in 8516*GNU* | *'with BFD'*) 8517 lt_cv_prog_gnu_ld=yes 8518 ;; 8519*) 8520 lt_cv_prog_gnu_ld=no 8521 ;; 8522esac 8523fi 8524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 8525$as_echo "$lt_cv_prog_gnu_ld" >&6; } 8526with_gnu_ld=$lt_cv_prog_gnu_ld 8527 8528 8529 8530 8531 8532 8533 8534 8535 8536 8537 8538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for directory path separator" >&5 8539$as_echo_n "checking for directory path separator... " >&6; } 8540if ${ntp_cv_dir_sep+:} false; then : 8541 $as_echo_n "(cached) " >&6 8542else 8543 8544 case "$ntp_cv_dir_sep" in 8545 '') 8546 case "$host_os" in 8547 *djgpp | *mingw32* | *emx*) 8548 ntp_cv_dir_sep="'\\'" 8549 ;; 8550 *) 8551 ntp_cv_dir_sep="'/'" 8552 ;; 8553 esac 8554 esac 8555 8556 8557fi 8558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_dir_sep" >&5 8559$as_echo "$ntp_cv_dir_sep" >&6; } 8560 8561cat >>confdefs.h <<_ACEOF 8562#define DIR_SEP $ntp_cv_dir_sep 8563_ACEOF 8564 8565 8566 8567 NTP_ORIG_LIBS="$LIBS" 8568 8569# Check whether --with-lineeditlibs was given. 8570if test "${with_lineeditlibs+set}" = set; then : 8571 withval=$with_lineeditlibs; use_lineeditlibs="$withval" 8572else 8573 use_lineeditlibs="edit,editline" 8574 8575fi 8576 8577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking line editing libraries" >&5 8578$as_echo_n "checking line editing libraries... " >&6; } 8579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_lineeditlibs" >&5 8580$as_echo "$use_lineeditlibs" >&6; } 8581 case "$use_lineeditlibs" in 8582 no) 8583 ntp_lib_lineedit=no 8584 ;; 8585 *) 8586 for lineedit_lib in `echo $use_lineeditlibs | sed -e 's/,/ /'`; do 8587 for term_lib in "" termcap curses ncurses; do 8588 case "$term_lib" in 8589 '') 8590 TRY_LIB="-l$lineedit_lib" 8591 ;; 8592 *) 8593 TRY_LIB="-l$lineedit_lib -l$term_lib" 8594 ;; 8595 esac 8596 LIBS="$NTP_ORIG_LIBS $TRY_LIB" 8597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline() with $TRY_LIB" >&5 8598$as_echo_n "checking for readline() with $TRY_LIB... " >&6; } 8599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8600/* end confdefs.h. */ 8601 8602/* Override any GCC internal prototype to avoid an error. 8603 Use char because int might match the return type of a GCC 8604 builtin and then its argument prototype would still apply. */ 8605#ifdef __cplusplus 8606extern "C" 8607#endif 8608char readline (); 8609int 8610main () 8611{ 8612return readline (); 8613 ; 8614 return 0; 8615} 8616_ACEOF 8617if ac_fn_c_try_link "$LINENO"; then : 8618 ntp_lib_lineedit="$TRY_LIB" 8619fi 8620rm -f core conftest.err conftest.$ac_objext \ 8621 conftest$ac_exeext conftest.$ac_ext 8622 case "$ntp_lib_lineedit" in 8623 '') 8624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8625$as_echo "no" >&6; } 8626 ;; 8627 *) 8628 # Use readline() 8629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8630$as_echo "yes" >&6; } 8631 break 8632 esac 8633 case "$term_lib" in 8634 '') 8635 # do not try el_gets without a terminal library 8636 ;; 8637 *) 8638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for el_gets() with $TRY_LIB" >&5 8639$as_echo_n "checking for el_gets() with $TRY_LIB... " >&6; } 8640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8641/* end confdefs.h. */ 8642 8643/* Override any GCC internal prototype to avoid an error. 8644 Use char because int might match the return type of a GCC 8645 builtin and then its argument prototype would still apply. */ 8646#ifdef __cplusplus 8647extern "C" 8648#endif 8649char el_gets (); 8650int 8651main () 8652{ 8653return el_gets (); 8654 ; 8655 return 0; 8656} 8657_ACEOF 8658if ac_fn_c_try_link "$LINENO"; then : 8659 ntp_lib_lineedit="$TRY_LIB" 8660fi 8661rm -f core conftest.err conftest.$ac_objext \ 8662 conftest$ac_exeext conftest.$ac_ext 8663 case "$ntp_lib_lineedit" in 8664 '') 8665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8666$as_echo "no" >&6; } 8667 ;; 8668 *) # Use el_gets() 8669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8670$as_echo "yes" >&6; } 8671 break 8672 ;; 8673 esac # $ntp_lib_lineedit 8674 esac # $term_lib 8675 done 8676 case "$ntp_lib_lineedit" in 8677 '') 8678 ;; 8679 *) 8680 break 8681 ;; 8682 esac 8683 done 8684 LIBS="$NTP_ORIG_LIBS" 8685 ;; 8686 esac # $use_lineeditlibs 8687 8688 case "$ntp_lib_lineedit" in 8689 '') 8690 ntp_lib_lineedit="no" 8691 ;; 8692 no) 8693 ;; 8694 *) 8695 EDITLINE_LIBS="$ntp_lib_lineedit" 8696 8697 ;; 8698 esac # $ntp_lib_lineedit 8699 8700 case "$ntp_lib_lineedit" in 8701 no) 8702 ;; 8703 *) 8704 for ac_header in readline.h readline/readline.h histedit.h 8705do : 8706 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 8707ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 8708if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 8709 cat >>confdefs.h <<_ACEOF 8710#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 8711_ACEOF 8712 8713fi 8714 8715done 8716 8717 for ac_header in history.h readline/history.h 8718do : 8719 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 8720ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 8721if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 8722 cat >>confdefs.h <<_ACEOF 8723#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 8724_ACEOF 8725 8726fi 8727 8728done 8729 8730 8731 case "$ac_cv_header_histedit_h" in 8732 yes) 8733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of arguments to el_init()" >&5 8734$as_echo_n "checking number of arguments to el_init()... " >&6; } 8735if ${ntp_cv_el_init_args+:} false; then : 8736 $as_echo_n "(cached) " >&6 8737else 8738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8739/* end confdefs.h. */ 8740 8741 #include <stdio.h> 8742 #include <histedit.h> 8743 8744int 8745main () 8746{ 8747 8748 el_init("conftest", stdin, stdout, stderr); 8749 8750 8751 ; 8752 return 0; 8753} 8754_ACEOF 8755if ac_fn_c_try_compile "$LINENO"; then : 8756 ntp_cv_el_init_args=4 8757else 8758 ntp_cv_el_init_args=3 8759 8760fi 8761rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8762 8763fi 8764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_el_init_args" >&5 8765$as_echo "$ntp_cv_el_init_args" >&6; } 8766 8767cat >>confdefs.h <<_ACEOF 8768#define EL_INIT_ARGS $ntp_cv_el_init_args 8769_ACEOF 8770 8771 esac 8772 8773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5 8774$as_echo_n "checking whether readline supports history... " >&6; } 8775 8776 ntp_lib_lineedit_history="no" 8777 ORIG_LIBS="$LIBS" 8778 LIBS="$ORIG_LIBS $ntp_lib_lineedit" 8779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8780/* end confdefs.h. */ 8781 8782/* Override any GCC internal prototype to avoid an error. 8783 Use char because int might match the return type of a GCC 8784 builtin and then its argument prototype would still apply. */ 8785#ifdef __cplusplus 8786extern "C" 8787#endif 8788char add_history (); 8789int 8790main () 8791{ 8792return add_history (); 8793 ; 8794 return 0; 8795} 8796_ACEOF 8797if ac_fn_c_try_link "$LINENO"; then : 8798 ntp_lib_lineedit_history="yes" 8799fi 8800rm -f core conftest.err conftest.$ac_objext \ 8801 conftest$ac_exeext conftest.$ac_ext 8802 LIBS="$ORIG_LIBS" 8803 8804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_lib_lineedit_history" >&5 8805$as_echo "$ntp_lib_lineedit_history" >&6; } 8806 8807 case "$ntp_lib_lineedit_history" in 8808 yes) 8809 8810$as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h 8811 8812 esac 8813 esac # $ntp_lib_lineedit 8814 { NTP_ORIG_LIBS=; unset NTP_ORIG_LIBS;} 8815 { ORIG_LIBS=; unset ORIG_LIBS;} 8816 { TRY_LIB=; unset TRY_LIB;} 8817 { use_lineeditlibs=; unset use_lineeditlibs;} 8818 8819 8820LIBM= 8821case "$host" in 8822 *-*-darwin*) 8823 ;; 8824 *) 8825 _libs=$LIBS 8826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cos" >&5 8827$as_echo_n "checking for library containing cos... " >&6; } 8828if ${ac_cv_search_cos+:} false; then : 8829 $as_echo_n "(cached) " >&6 8830else 8831 ac_func_search_save_LIBS=$LIBS 8832cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8833/* end confdefs.h. */ 8834 8835/* Override any GCC internal prototype to avoid an error. 8836 Use char because int might match the return type of a GCC 8837 builtin and then its argument prototype would still apply. */ 8838#ifdef __cplusplus 8839extern "C" 8840#endif 8841char cos (); 8842int 8843main () 8844{ 8845return cos (); 8846 ; 8847 return 0; 8848} 8849_ACEOF 8850for ac_lib in '' m; do 8851 if test -z "$ac_lib"; then 8852 ac_res="none required" 8853 else 8854 ac_res=-l$ac_lib 8855 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 8856 fi 8857 if ac_fn_c_try_link "$LINENO"; then : 8858 ac_cv_search_cos=$ac_res 8859fi 8860rm -f core conftest.err conftest.$ac_objext \ 8861 conftest$ac_exeext 8862 if ${ac_cv_search_cos+:} false; then : 8863 break 8864fi 8865done 8866if ${ac_cv_search_cos+:} false; then : 8867 8868else 8869 ac_cv_search_cos=no 8870fi 8871rm conftest.$ac_ext 8872LIBS=$ac_func_search_save_LIBS 8873fi 8874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cos" >&5 8875$as_echo "$ac_cv_search_cos" >&6; } 8876ac_res=$ac_cv_search_cos 8877if test "$ac_res" != no; then : 8878 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 8879 LIBM="-lm" 8880fi 8881 8882 LIBS=$_libs 8883 ;; 8884esac 8885 8886{ _libs=; unset _libs;} 8887 8888 8889for ac_header in vfork.h 8890do : 8891 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default" 8892if test "x$ac_cv_header_vfork_h" = xyes; then : 8893 cat >>confdefs.h <<_ACEOF 8894#define HAVE_VFORK_H 1 8895_ACEOF 8896 8897fi 8898 8899done 8900 8901for ac_func in fork vfork 8902do : 8903 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 8904ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 8905if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 8906 cat >>confdefs.h <<_ACEOF 8907#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 8908_ACEOF 8909 8910fi 8911done 8912 8913if test "x$ac_cv_func_fork" = xyes; then 8914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5 8915$as_echo_n "checking for working fork... " >&6; } 8916if ${ac_cv_func_fork_works+:} false; then : 8917 $as_echo_n "(cached) " >&6 8918else 8919 if test "$cross_compiling" = yes; then : 8920 ac_cv_func_fork_works=cross 8921else 8922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8923/* end confdefs.h. */ 8924$ac_includes_default 8925int 8926main () 8927{ 8928 8929 /* By Ruediger Kuhlmann. */ 8930 return fork () < 0; 8931 8932 ; 8933 return 0; 8934} 8935_ACEOF 8936if ac_fn_c_try_run "$LINENO"; then : 8937 ac_cv_func_fork_works=yes 8938else 8939 ac_cv_func_fork_works=no 8940fi 8941rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8942 conftest.$ac_objext conftest.beam conftest.$ac_ext 8943fi 8944 8945fi 8946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5 8947$as_echo "$ac_cv_func_fork_works" >&6; } 8948 8949else 8950 ac_cv_func_fork_works=$ac_cv_func_fork 8951fi 8952if test "x$ac_cv_func_fork_works" = xcross; then 8953 case $host in 8954 *-*-amigaos* | *-*-msdosdjgpp*) 8955 # Override, as these systems have only a dummy fork() stub 8956 ac_cv_func_fork_works=no 8957 ;; 8958 *) 8959 ac_cv_func_fork_works=yes 8960 ;; 8961 esac 8962 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 8963$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} 8964fi 8965ac_cv_func_vfork_works=$ac_cv_func_vfork 8966if test "x$ac_cv_func_vfork" = xyes; then 8967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5 8968$as_echo_n "checking for working vfork... " >&6; } 8969if ${ac_cv_func_vfork_works+:} false; then : 8970 $as_echo_n "(cached) " >&6 8971else 8972 if test "$cross_compiling" = yes; then : 8973 ac_cv_func_vfork_works=cross 8974else 8975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8976/* end confdefs.h. */ 8977/* Thanks to Paul Eggert for this test. */ 8978$ac_includes_default 8979#include <sys/wait.h> 8980#ifdef HAVE_VFORK_H 8981# include <vfork.h> 8982#endif 8983/* On some sparc systems, changes by the child to local and incoming 8984 argument registers are propagated back to the parent. The compiler 8985 is told about this with #include <vfork.h>, but some compilers 8986 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a 8987 static variable whose address is put into a register that is 8988 clobbered by the vfork. */ 8989static void 8990#ifdef __cplusplus 8991sparc_address_test (int arg) 8992# else 8993sparc_address_test (arg) int arg; 8994#endif 8995{ 8996 static pid_t child; 8997 if (!child) { 8998 child = vfork (); 8999 if (child < 0) { 9000 perror ("vfork"); 9001 _exit(2); 9002 } 9003 if (!child) { 9004 arg = getpid(); 9005 write(-1, "", 0); 9006 _exit (arg); 9007 } 9008 } 9009} 9010 9011int 9012main () 9013{ 9014 pid_t parent = getpid (); 9015 pid_t child; 9016 9017 sparc_address_test (0); 9018 9019 child = vfork (); 9020 9021 if (child == 0) { 9022 /* Here is another test for sparc vfork register problems. This 9023 test uses lots of local variables, at least as many local 9024 variables as main has allocated so far including compiler 9025 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris 9026 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should 9027 reuse the register of parent for one of the local variables, 9028 since it will think that parent can't possibly be used any more 9029 in this routine. Assigning to the local variable will thus 9030 munge parent in the parent process. */ 9031 pid_t 9032 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), 9033 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); 9034 /* Convince the compiler that p..p7 are live; otherwise, it might 9035 use the same hardware register for all 8 local variables. */ 9036 if (p != p1 || p != p2 || p != p3 || p != p4 9037 || p != p5 || p != p6 || p != p7) 9038 _exit(1); 9039 9040 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent 9041 from child file descriptors. If the child closes a descriptor 9042 before it execs or exits, this munges the parent's descriptor 9043 as well. Test for this by closing stdout in the child. */ 9044 _exit(close(fileno(stdout)) != 0); 9045 } else { 9046 int status; 9047 struct stat st; 9048 9049 while (wait(&status) != child) 9050 ; 9051 return ( 9052 /* Was there some problem with vforking? */ 9053 child < 0 9054 9055 /* Did the child fail? (This shouldn't happen.) */ 9056 || status 9057 9058 /* Did the vfork/compiler bug occur? */ 9059 || parent != getpid() 9060 9061 /* Did the file descriptor bug occur? */ 9062 || fstat(fileno(stdout), &st) != 0 9063 ); 9064 } 9065} 9066_ACEOF 9067if ac_fn_c_try_run "$LINENO"; then : 9068 ac_cv_func_vfork_works=yes 9069else 9070 ac_cv_func_vfork_works=no 9071fi 9072rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 9073 conftest.$ac_objext conftest.beam conftest.$ac_ext 9074fi 9075 9076fi 9077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5 9078$as_echo "$ac_cv_func_vfork_works" >&6; } 9079 9080fi; 9081if test "x$ac_cv_func_fork_works" = xcross; then 9082 ac_cv_func_vfork_works=$ac_cv_func_vfork 9083 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 9084$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} 9085fi 9086 9087if test "x$ac_cv_func_vfork_works" = xyes; then 9088 9089$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h 9090 9091else 9092 9093$as_echo "#define vfork fork" >>confdefs.h 9094 9095fi 9096if test "x$ac_cv_func_fork_works" = xyes; then 9097 9098$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h 9099 9100fi 9101 9102# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 9103# for constant arguments. Useless! 9104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 9105$as_echo_n "checking for working alloca.h... " >&6; } 9106if ${ac_cv_working_alloca_h+:} false; then : 9107 $as_echo_n "(cached) " >&6 9108else 9109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9110/* end confdefs.h. */ 9111#include <alloca.h> 9112int 9113main () 9114{ 9115char *p = (char *) alloca (2 * sizeof (int)); 9116 if (p) return 0; 9117 ; 9118 return 0; 9119} 9120_ACEOF 9121if ac_fn_c_try_link "$LINENO"; then : 9122 ac_cv_working_alloca_h=yes 9123else 9124 ac_cv_working_alloca_h=no 9125fi 9126rm -f core conftest.err conftest.$ac_objext \ 9127 conftest$ac_exeext conftest.$ac_ext 9128fi 9129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 9130$as_echo "$ac_cv_working_alloca_h" >&6; } 9131if test $ac_cv_working_alloca_h = yes; then 9132 9133$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h 9134 9135fi 9136 9137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 9138$as_echo_n "checking for alloca... " >&6; } 9139if ${ac_cv_func_alloca_works+:} false; then : 9140 $as_echo_n "(cached) " >&6 9141else 9142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9143/* end confdefs.h. */ 9144#ifdef __GNUC__ 9145# define alloca __builtin_alloca 9146#else 9147# ifdef _MSC_VER 9148# include <malloc.h> 9149# define alloca _alloca 9150# else 9151# ifdef HAVE_ALLOCA_H 9152# include <alloca.h> 9153# else 9154# ifdef _AIX 9155 #pragma alloca 9156# else 9157# ifndef alloca /* predefined by HP cc +Olibcalls */ 9158void *alloca (size_t); 9159# endif 9160# endif 9161# endif 9162# endif 9163#endif 9164 9165int 9166main () 9167{ 9168char *p = (char *) alloca (1); 9169 if (p) return 0; 9170 ; 9171 return 0; 9172} 9173_ACEOF 9174if ac_fn_c_try_link "$LINENO"; then : 9175 ac_cv_func_alloca_works=yes 9176else 9177 ac_cv_func_alloca_works=no 9178fi 9179rm -f core conftest.err conftest.$ac_objext \ 9180 conftest$ac_exeext conftest.$ac_ext 9181fi 9182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 9183$as_echo "$ac_cv_func_alloca_works" >&6; } 9184 9185if test $ac_cv_func_alloca_works = yes; then 9186 9187$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h 9188 9189else 9190 # The SVR3 libPW and SVR4 libucb both contain incompatible functions 9191# that cause trouble. Some versions do not even contain alloca or 9192# contain a buggy version. If you still want to use their alloca, 9193# use ar to extract alloca.o from them instead of compiling alloca.c. 9194 9195ALLOCA=\${LIBOBJDIR}alloca.$ac_objext 9196 9197$as_echo "#define C_ALLOCA 1" >>confdefs.h 9198 9199 9200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 9201$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } 9202if ${ac_cv_os_cray+:} false; then : 9203 $as_echo_n "(cached) " >&6 9204else 9205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9206/* end confdefs.h. */ 9207#if defined CRAY && ! defined CRAY2 9208webecray 9209#else 9210wenotbecray 9211#endif 9212 9213_ACEOF 9214if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 9215 $EGREP "webecray" >/dev/null 2>&1; then : 9216 ac_cv_os_cray=yes 9217else 9218 ac_cv_os_cray=no 9219fi 9220rm -f conftest* 9221 9222fi 9223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 9224$as_echo "$ac_cv_os_cray" >&6; } 9225if test $ac_cv_os_cray = yes; then 9226 for ac_func in _getb67 GETB67 getb67; do 9227 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 9228ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 9229if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 9230 9231cat >>confdefs.h <<_ACEOF 9232#define CRAY_STACKSEG_END $ac_func 9233_ACEOF 9234 9235 break 9236fi 9237 9238 done 9239fi 9240 9241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 9242$as_echo_n "checking stack direction for C alloca... " >&6; } 9243if ${ac_cv_c_stack_direction+:} false; then : 9244 $as_echo_n "(cached) " >&6 9245else 9246 if test "$cross_compiling" = yes; then : 9247 ac_cv_c_stack_direction=0 9248else 9249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9250/* end confdefs.h. */ 9251$ac_includes_default 9252int 9253find_stack_direction (int *addr, int depth) 9254{ 9255 int dir, dummy = 0; 9256 if (! addr) 9257 addr = &dummy; 9258 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1; 9259 dir = depth ? find_stack_direction (addr, depth - 1) : 0; 9260 return dir + dummy; 9261} 9262 9263int 9264main (int argc, char **argv) 9265{ 9266 return find_stack_direction (0, argc + !argv + 20) < 0; 9267} 9268_ACEOF 9269if ac_fn_c_try_run "$LINENO"; then : 9270 ac_cv_c_stack_direction=1 9271else 9272 ac_cv_c_stack_direction=-1 9273fi 9274rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 9275 conftest.$ac_objext conftest.beam conftest.$ac_ext 9276fi 9277 9278fi 9279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 9280$as_echo "$ac_cv_c_stack_direction" >&6; } 9281cat >>confdefs.h <<_ACEOF 9282#define STACK_DIRECTION $ac_cv_c_stack_direction 9283_ACEOF 9284 9285 9286fi 9287 9288ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default" 9289if test "x$ac_cv_have_decl_strerror_r" = xyes; then : 9290 ac_have_decl=1 9291else 9292 ac_have_decl=0 9293fi 9294 9295cat >>confdefs.h <<_ACEOF 9296#define HAVE_DECL_STRERROR_R $ac_have_decl 9297_ACEOF 9298 9299for ac_func in strerror_r 9300do : 9301 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r" 9302if test "x$ac_cv_func_strerror_r" = xyes; then : 9303 cat >>confdefs.h <<_ACEOF 9304#define HAVE_STRERROR_R 1 9305_ACEOF 9306 9307fi 9308done 9309 9310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5 9311$as_echo_n "checking whether strerror_r returns char *... " >&6; } 9312if ${ac_cv_func_strerror_r_char_p+:} false; then : 9313 $as_echo_n "(cached) " >&6 9314else 9315 9316 ac_cv_func_strerror_r_char_p=no 9317 if test $ac_cv_have_decl_strerror_r = yes; then 9318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9319/* end confdefs.h. */ 9320$ac_includes_default 9321int 9322main () 9323{ 9324 9325 char buf[100]; 9326 char x = *strerror_r (0, buf, sizeof buf); 9327 char *p = strerror_r (0, buf, sizeof buf); 9328 return !p || x; 9329 9330 ; 9331 return 0; 9332} 9333_ACEOF 9334if ac_fn_c_try_compile "$LINENO"; then : 9335 ac_cv_func_strerror_r_char_p=yes 9336fi 9337rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9338 else 9339 # strerror_r is not declared. Choose between 9340 # systems that have relatively inaccessible declarations for the 9341 # function. BeOS and DEC UNIX 4.0 fall in this category, but the 9342 # former has a strerror_r that returns char*, while the latter 9343 # has a strerror_r that returns `int'. 9344 # This test should segfault on the DEC system. 9345 if test "$cross_compiling" = yes; then : 9346 : 9347else 9348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9349/* end confdefs.h. */ 9350$ac_includes_default 9351 extern char *strerror_r (); 9352int 9353main () 9354{ 9355char buf[100]; 9356 char x = *strerror_r (0, buf, sizeof buf); 9357 return ! isalpha (x); 9358 ; 9359 return 0; 9360} 9361_ACEOF 9362if ac_fn_c_try_run "$LINENO"; then : 9363 ac_cv_func_strerror_r_char_p=yes 9364fi 9365rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 9366 conftest.$ac_objext conftest.beam conftest.$ac_ext 9367fi 9368 9369 fi 9370 9371fi 9372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5 9373$as_echo "$ac_cv_func_strerror_r_char_p" >&6; } 9374if test $ac_cv_func_strerror_r_char_p = yes; then 9375 9376$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h 9377 9378fi 9379 9380 9381ac_busted_vpath_in_make=no 9382case "$build" in 9383 *-*-irix6.1*) # 64 bit only 9384 # busted vpath? 9385 ;; 9386 *-*-irix6*) # 6.2 (and later?) 9387 ac_busted_vpath_in_make=yes 9388 ;; 9389 *-*-solaris2.5.1) 9390 ac_busted_vpath_in_make=yes 9391 ;; 9392 *-*-unicosmp*) 9393 ac_busted_vpath_in_make=yes 9394 ;; 9395esac 9396 9397case "$ac_busted_vpath_in_make$srcdir" in 9398 yes.|no*) 9399 ;; 9400 *) case "`${MAKE-make} -v -f /dev/null 2>/dev/null | grep 'GNU Make'`" in 9401 '') 9402 as_fn_error $? "building outside of the main directory requires GNU make" "$LINENO" 5 9403 esac 9404 ;; 9405esac 9406 9407case "$host" in 9408 *-*-aix4*) 9409 # Bug 2516: 9410 # Was *-*-aix[[4-9]]* 9411 # XXX only verified thru AIX6. But... 9412 # Ken Link says this is fine for AIX 5.3 and 7.1, and sees no reason 9413 # that this support would be in 5.3, removed in 6, and added back. 9414 # 9415 # (prr) aix 4.1 doesn't have clock_settime, but in aix 4.3 it's a stub 9416 # (returning ENOSYS). I didn't check 4.2. If, in the future, 9417 # IBM pulls its thumbs out long enough to implement clock_settime, 9418 # this conditional will need to change. Maybe use AC_TRY_RUN 9419 # instead to try to set the time to itself and check errno. 9420 ;; 9421 *) 9422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5 9423$as_echo_n "checking for library containing clock_gettime... " >&6; } 9424if ${ac_cv_search_clock_gettime+:} false; then : 9425 $as_echo_n "(cached) " >&6 9426else 9427 ac_func_search_save_LIBS=$LIBS 9428cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9429/* end confdefs.h. */ 9430 9431/* Override any GCC internal prototype to avoid an error. 9432 Use char because int might match the return type of a GCC 9433 builtin and then its argument prototype would still apply. */ 9434#ifdef __cplusplus 9435extern "C" 9436#endif 9437char clock_gettime (); 9438int 9439main () 9440{ 9441return clock_gettime (); 9442 ; 9443 return 0; 9444} 9445_ACEOF 9446for ac_lib in '' rt; do 9447 if test -z "$ac_lib"; then 9448 ac_res="none required" 9449 else 9450 ac_res=-l$ac_lib 9451 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 9452 fi 9453 if ac_fn_c_try_link "$LINENO"; then : 9454 ac_cv_search_clock_gettime=$ac_res 9455fi 9456rm -f core conftest.err conftest.$ac_objext \ 9457 conftest$ac_exeext 9458 if ${ac_cv_search_clock_gettime+:} false; then : 9459 break 9460fi 9461done 9462if ${ac_cv_search_clock_gettime+:} false; then : 9463 9464else 9465 ac_cv_search_clock_gettime=no 9466fi 9467rm conftest.$ac_ext 9468LIBS=$ac_func_search_save_LIBS 9469fi 9470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5 9471$as_echo "$ac_cv_search_clock_gettime" >&6; } 9472ac_res=$ac_cv_search_clock_gettime 9473if test "$ac_res" != no; then : 9474 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 9475 case "$ac_cv_search_clock_gettime" in 9476 'none required') ;; 9477 no) ;; 9478 *) LDADD_LIBNTP="$ac_cv_search_clock_gettime $LDADD_LIBNTP" ;; 9479 esac 9480 9481fi 9482 9483 for ac_func in clock_getres clock_gettime clock_settime 9484do : 9485 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 9486ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 9487if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 9488 cat >>confdefs.h <<_ACEOF 9489#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 9490_ACEOF 9491 9492fi 9493done 9494 9495 ;; 9496esac 9497 9498for ac_func in getclock stime timegm strlcpy strlcat 9499do : 9500 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 9501ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 9502if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 9503 cat >>confdefs.h <<_ACEOF 9504#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 9505_ACEOF 9506 9507fi 9508done 9509 9510 9511# Bug 2713 9512LDADD_LIBUTIL= 9513 9514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing snprintb" >&5 9515$as_echo_n "checking for library containing snprintb... " >&6; } 9516if ${ac_cv_search_snprintb+:} false; then : 9517 $as_echo_n "(cached) " >&6 9518else 9519 ac_func_search_save_LIBS=$LIBS 9520cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9521/* end confdefs.h. */ 9522 9523/* Override any GCC internal prototype to avoid an error. 9524 Use char because int might match the return type of a GCC 9525 builtin and then its argument prototype would still apply. */ 9526#ifdef __cplusplus 9527extern "C" 9528#endif 9529char snprintb (); 9530int 9531main () 9532{ 9533return snprintb (); 9534 ; 9535 return 0; 9536} 9537_ACEOF 9538for ac_lib in '' util; do 9539 if test -z "$ac_lib"; then 9540 ac_res="none required" 9541 else 9542 ac_res=-l$ac_lib 9543 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 9544 fi 9545 if ac_fn_c_try_link "$LINENO"; then : 9546 ac_cv_search_snprintb=$ac_res 9547fi 9548rm -f core conftest.err conftest.$ac_objext \ 9549 conftest$ac_exeext 9550 if ${ac_cv_search_snprintb+:} false; then : 9551 break 9552fi 9553done 9554if ${ac_cv_search_snprintb+:} false; then : 9555 9556else 9557 ac_cv_search_snprintb=no 9558fi 9559rm conftest.$ac_ext 9560LIBS=$ac_func_search_save_LIBS 9561fi 9562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_snprintb" >&5 9563$as_echo "$ac_cv_search_snprintb" >&6; } 9564ac_res=$ac_cv_search_snprintb 9565if test "$ac_res" != no; then : 9566 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 9567 case "$ac_cv_search_snprintb" in 9568 'none required') ;; 9569 no) ;; 9570 *) LDADD_LIBUTIL="$ac_cv_search_snprintb $LDADD_LIBUTIL" ;; 9571 esac 9572 9573$as_echo "#define USE_SNPRINTB 1" >>confdefs.h 9574 9575fi 9576 9577 9578# 9579for ac_header in errno.h sys/socket.h sys/types.h time.h 9580do : 9581 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 9582ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 9583if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 9584 cat >>confdefs.h <<_ACEOF 9585#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 9586_ACEOF 9587 9588fi 9589 9590done 9591 9592for ac_header in net/if.h 9593do : 9594 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" " 9595 #ifdef HAVE_SYS_SOCKET_H 9596 # include <sys/socket.h> 9597 #endif 9598 9599" 9600if test "x$ac_cv_header_net_if_h" = xyes; then : 9601 cat >>confdefs.h <<_ACEOF 9602#define HAVE_NET_IF_H 1 9603_ACEOF 9604 9605fi 9606 9607done 9608 9609case "$host" in 9610 *-hp-hpux*) 9611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if net/if.h requires mpinfou predeclaration" >&5 9612$as_echo_n "checking if net/if.h requires mpinfou predeclaration... " >&6; } 9613if ${ntp_cv_predecl_mpinfou+:} false; then : 9614 $as_echo_n "(cached) " >&6 9615else 9616 9617 np_cv_predecl_mpinfou=no 9618 case "$ac_cv_header_net_if_h" in 9619 no) 9620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9621/* end confdefs.h. */ 9622 9623 typedef union mpinfou { 9624 struct pdk_mpinfo *pdkptr; 9625 struct mpinfo *pikptr; 9626 } mpinfou_t; 9627 #ifdef HAVE_SYS_SOCKET_H 9628 # include <sys/socket.h> 9629 #endif 9630 #include <net/if.h> 9631 9632int 9633main () 9634{ 9635 9636 9637 9638 ; 9639 return 0; 9640} 9641_ACEOF 9642if ac_fn_c_try_compile "$LINENO"; then : 9643 9644 ntp_cv_predecl_mpinfou=yes 9645 ac_cv_header_net_if_h=yes 9646 9647 9648fi 9649rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9650 esac 9651 9652 9653fi 9654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_predecl_mpinfou" >&5 9655$as_echo "$ntp_cv_predecl_mpinfou" >&6; } 9656 case "$ntp_cv_predecl_mpinfou" in 9657 yes) 9658 cat >>confdefs.h <<_ACEOF 9659#ifndef MPINFOU_PREDECLARED 9660# define MPINFOU_PREDECLARED 9661typedef union mpinfou { 9662 struct pdk_mpinfo *pdkptr; 9663 struct mpinfo *pikptr; 9664} mpinfou_t; 9665#endif 9666_ACEOF 9667 9668 esac 9669esac 9670 9671case "$host" in 9672 *-linux*) 9673 for ac_header in linux/if_addr.h 9674do : 9675 ac_fn_c_check_header_compile "$LINENO" "linux/if_addr.h" "ac_cv_header_linux_if_addr_h" " 9676 #ifdef HAVE_SYS_SOCKET_H 9677 # include <sys/socket.h> 9678 #endif 9679 9680" 9681if test "x$ac_cv_header_linux_if_addr_h" = xyes; then : 9682 cat >>confdefs.h <<_ACEOF 9683#define HAVE_LINUX_IF_ADDR_H 1 9684_ACEOF 9685 9686fi 9687 9688done 9689 9690esac 9691 9692for ac_header in arpa/nameser.h sys/param.h sys/time.h sys/timers.h 9693do : 9694 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 9695ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 9696if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 9697 cat >>confdefs.h <<_ACEOF 9698#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 9699_ACEOF 9700 9701fi 9702 9703done 9704 9705# sys/sysctl.h depends on sys/param.h on OpenBSD - Bug 1576 9706for ac_header in sys/sysctl.h 9707do : 9708 ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" " 9709 #if defined HAVE_SYS_PARAM_H 9710 # include <sys/param.h> 9711 #endif 9712 9713" 9714if test "x$ac_cv_header_sys_sysctl_h" = xyes; then : 9715 cat >>confdefs.h <<_ACEOF 9716#define HAVE_SYS_SYSCTL_H 1 9717_ACEOF 9718 9719fi 9720 9721done 9722 9723for ac_header in netinet/in_system.h netinet/in_systm.h netinet/in.h 9724do : 9725 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 9726ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 9727if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 9728 cat >>confdefs.h <<_ACEOF 9729#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 9730_ACEOF 9731 9732fi 9733 9734done 9735 9736 9737for ac_header in resolv.h 9738do : 9739 ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" " 9740 #ifdef HAVE_SYS_TYPES_H 9741 # include <sys/types.h> 9742 #endif 9743 #ifdef HAVE_NETINET_IN_H 9744 # include <netinet/in.h> 9745 #endif 9746 #ifdef HAVE_ARPA_NAMESER_H 9747 # include <arpa/nameser.h> 9748 #endif 9749 9750" 9751if test "x$ac_cv_header_resolv_h" = xyes; then : 9752 cat >>confdefs.h <<_ACEOF 9753#define HAVE_RESOLV_H 1 9754_ACEOF 9755 9756fi 9757 9758done 9759 9760 9761for ac_header in net/if_var.h 9762do : 9763 ac_fn_c_check_header_compile "$LINENO" "net/if_var.h" "ac_cv_header_net_if_var_h" " 9764 #if HAVE_SYS_TYPES_H 9765 # include <sys/types.h> 9766 #endif 9767 #ifdef HAVE_SYS_SOCKET_H 9768 # include <sys/socket.h> 9769 #endif 9770 #ifdef HAVE_NETINET_IN_H 9771 # include <netinet/in.h> 9772 #endif 9773 #ifdef HAVE_NET_IF_H 9774 # include <net/if.h> 9775 #endif 9776 9777" 9778if test "x$ac_cv_header_net_if_var_h" = xyes; then : 9779 cat >>confdefs.h <<_ACEOF 9780#define HAVE_NET_IF_VAR_H 1 9781_ACEOF 9782 9783fi 9784 9785done 9786 9787 9788for ac_header in netinet/ip.h netinet/in_var.h 9789do : 9790 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 9791ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" " 9792 #ifdef HAVE_SYS_TYPES_H 9793 # include <sys/types.h> 9794 #endif 9795 #ifdef HAVE_SYS_SOCKET_H 9796 # include <sys/socket.h> 9797 #endif 9798 #ifdef HAVE_NET_IF_H 9799 # include <net/if.h> 9800 #endif 9801 #ifdef HAVE_NETINET_IN_H 9802 # include <netinet/in.h> 9803 #endif 9804 #ifdef HAVE_NET_IF_VAR_H 9805 # include <net/if_var.h> 9806 #endif 9807 #ifdef HAVE_NETINET_IN_SYSTM_H 9808 # include <netinet/in_systm.h> 9809 #endif 9810 9811" 9812if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 9813 cat >>confdefs.h <<_ACEOF 9814#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 9815_ACEOF 9816 9817fi 9818 9819done 9820 9821 9822# HMS: Do we need to check for -lsocket before or after these tests? 9823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_pton" >&5 9824$as_echo_n "checking for library containing inet_pton... " >&6; } 9825if ${ac_cv_search_inet_pton+:} false; then : 9826 $as_echo_n "(cached) " >&6 9827else 9828 ac_func_search_save_LIBS=$LIBS 9829cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9830/* end confdefs.h. */ 9831 9832/* Override any GCC internal prototype to avoid an error. 9833 Use char because int might match the return type of a GCC 9834 builtin and then its argument prototype would still apply. */ 9835#ifdef __cplusplus 9836extern "C" 9837#endif 9838char inet_pton (); 9839int 9840main () 9841{ 9842return inet_pton (); 9843 ; 9844 return 0; 9845} 9846_ACEOF 9847for ac_lib in '' nsl; do 9848 if test -z "$ac_lib"; then 9849 ac_res="none required" 9850 else 9851 ac_res=-l$ac_lib 9852 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 9853 fi 9854 if ac_fn_c_try_link "$LINENO"; then : 9855 ac_cv_search_inet_pton=$ac_res 9856fi 9857rm -f core conftest.err conftest.$ac_objext \ 9858 conftest$ac_exeext 9859 if ${ac_cv_search_inet_pton+:} false; then : 9860 break 9861fi 9862done 9863if ${ac_cv_search_inet_pton+:} false; then : 9864 9865else 9866 ac_cv_search_inet_pton=no 9867fi 9868rm conftest.$ac_ext 9869LIBS=$ac_func_search_save_LIBS 9870fi 9871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_pton" >&5 9872$as_echo "$ac_cv_search_inet_pton" >&6; } 9873ac_res=$ac_cv_search_inet_pton 9874if test "$ac_res" != no; then : 9875 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 9876 case "$ac_cv_search_inet_pton" in 9877 'none required') ;; 9878 no) ;; 9879 *) LDADD_LIBNTP="$ac_cv_search_inet_pton $LDADD_LIBNTP" ;; 9880 esac 9881 9882fi 9883 9884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntop" >&5 9885$as_echo_n "checking for library containing inet_ntop... " >&6; } 9886if ${ac_cv_search_inet_ntop+:} false; then : 9887 $as_echo_n "(cached) " >&6 9888else 9889 ac_func_search_save_LIBS=$LIBS 9890cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9891/* end confdefs.h. */ 9892 9893/* Override any GCC internal prototype to avoid an error. 9894 Use char because int might match the return type of a GCC 9895 builtin and then its argument prototype would still apply. */ 9896#ifdef __cplusplus 9897extern "C" 9898#endif 9899char inet_ntop (); 9900int 9901main () 9902{ 9903return inet_ntop (); 9904 ; 9905 return 0; 9906} 9907_ACEOF 9908for ac_lib in '' resolv; do 9909 if test -z "$ac_lib"; then 9910 ac_res="none required" 9911 else 9912 ac_res=-l$ac_lib 9913 LIBS="-l$ac_lib -lnsl $ac_func_search_save_LIBS" 9914 fi 9915 if ac_fn_c_try_link "$LINENO"; then : 9916 ac_cv_search_inet_ntop=$ac_res 9917fi 9918rm -f core conftest.err conftest.$ac_objext \ 9919 conftest$ac_exeext 9920 if ${ac_cv_search_inet_ntop+:} false; then : 9921 break 9922fi 9923done 9924if ${ac_cv_search_inet_ntop+:} false; then : 9925 9926else 9927 ac_cv_search_inet_ntop=no 9928fi 9929rm conftest.$ac_ext 9930LIBS=$ac_func_search_save_LIBS 9931fi 9932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntop" >&5 9933$as_echo "$ac_cv_search_inet_ntop" >&6; } 9934ac_res=$ac_cv_search_inet_ntop 9935if test "$ac_res" != no; then : 9936 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 9937 case "$ac_cv_search_inet_ntop" in 9938 'none required') ;; 9939 no) ;; 9940 *) LDADD_LIBNTP="$ac_cv_search_inet_ntop $LDADD_LIBNTP" ;; 9941 esac 9942 9943fi 9944 9945 9946# [Bug 1628] On Solaris, we need -lxnet -lsocket. Generalize this to 9947# avoid keying on the OS name: If we find socket functions in 9948# libsocket, next try for them in libxnet without libsocket, if found, 9949# list both. If we simply tested libxnet first, we would find the 9950# functions there and never add libsocket. See also [Bug 660] 9951# http://bugs.ntp.org/show_bug.cgi?id=660#c9 9952saved_LIBS=$LIBS 9953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setsockopt" >&5 9954$as_echo_n "checking for library containing setsockopt... " >&6; } 9955if ${ac_cv_search_setsockopt+:} false; then : 9956 $as_echo_n "(cached) " >&6 9957else 9958 ac_func_search_save_LIBS=$LIBS 9959cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9960/* end confdefs.h. */ 9961 9962/* Override any GCC internal prototype to avoid an error. 9963 Use char because int might match the return type of a GCC 9964 builtin and then its argument prototype would still apply. */ 9965#ifdef __cplusplus 9966extern "C" 9967#endif 9968char setsockopt (); 9969int 9970main () 9971{ 9972return setsockopt (); 9973 ; 9974 return 0; 9975} 9976_ACEOF 9977for ac_lib in '' socket; do 9978 if test -z "$ac_lib"; then 9979 ac_res="none required" 9980 else 9981 ac_res=-l$ac_lib 9982 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 9983 fi 9984 if ac_fn_c_try_link "$LINENO"; then : 9985 ac_cv_search_setsockopt=$ac_res 9986fi 9987rm -f core conftest.err conftest.$ac_objext \ 9988 conftest$ac_exeext 9989 if ${ac_cv_search_setsockopt+:} false; then : 9990 break 9991fi 9992done 9993if ${ac_cv_search_setsockopt+:} false; then : 9994 9995else 9996 ac_cv_search_setsockopt=no 9997fi 9998rm conftest.$ac_ext 9999LIBS=$ac_func_search_save_LIBS 10000fi 10001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setsockopt" >&5 10002$as_echo "$ac_cv_search_setsockopt" >&6; } 10003ac_res=$ac_cv_search_setsockopt 10004if test "$ac_res" != no; then : 10005 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 10006 case "$ac_cv_search_setsockopt" in 10007 'none required') ;; 10008 no) ;; 10009 *) LDADD_LIBNTP="$ac_cv_search_setsockopt $LDADD_LIBNTP" ;; 10010 esac 10011 10012fi 10013 10014case "$ac_cv_search_setsockopt" in 10015 -lsocket) 10016 LIBS="$saved_LIBS" 10017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getsockopt" >&5 10018$as_echo_n "checking for library containing getsockopt... " >&6; } 10019if ${ac_cv_search_getsockopt+:} false; then : 10020 $as_echo_n "(cached) " >&6 10021else 10022 ac_func_search_save_LIBS=$LIBS 10023cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10024/* end confdefs.h. */ 10025 10026/* Override any GCC internal prototype to avoid an error. 10027 Use char because int might match the return type of a GCC 10028 builtin and then its argument prototype would still apply. */ 10029#ifdef __cplusplus 10030extern "C" 10031#endif 10032char getsockopt (); 10033int 10034main () 10035{ 10036return getsockopt (); 10037 ; 10038 return 0; 10039} 10040_ACEOF 10041for ac_lib in '' xnet; do 10042 if test -z "$ac_lib"; then 10043 ac_res="none required" 10044 else 10045 ac_res=-l$ac_lib 10046 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 10047 fi 10048 if ac_fn_c_try_link "$LINENO"; then : 10049 ac_cv_search_getsockopt=$ac_res 10050fi 10051rm -f core conftest.err conftest.$ac_objext \ 10052 conftest$ac_exeext 10053 if ${ac_cv_search_getsockopt+:} false; then : 10054 break 10055fi 10056done 10057if ${ac_cv_search_getsockopt+:} false; then : 10058 10059else 10060 ac_cv_search_getsockopt=no 10061fi 10062rm conftest.$ac_ext 10063LIBS=$ac_func_search_save_LIBS 10064fi 10065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getsockopt" >&5 10066$as_echo "$ac_cv_search_getsockopt" >&6; } 10067ac_res=$ac_cv_search_getsockopt 10068if test "$ac_res" != no; then : 10069 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 10070 case "$ac_cv_search_getsockopt" in 10071 'none required') ;; 10072 no) ;; 10073 *) LDADD_LIBNTP="$ac_cv_search_getsockopt $LDADD_LIBNTP" ;; 10074 esac 10075 10076fi 10077 10078 # XXX Possible trouble here - reading the comments above and looking at the 10079 # code below I wonder if we'll add -lxnet when we don't need it. 10080 # Also, do we need to add -lxnet to LDADD_LIBNTP, or perhaps see if it's 10081 # there when it is not needed? 10082 case "$ac_cv_search_getsockopt" in 10083 -lxnet) 10084 LIBS="-lxnet -lsocket $saved_LIBS" 10085 ;; 10086 *) LIBS="-lsocket $saved_LIBS" 10087 ;; 10088 esac 10089 ;; 10090esac 10091{ saved_LIBS=; unset saved_LIBS;} 10092 10093# Bug 2427 - look for recvmsg here. 10094for ac_func in recvmsg 10095do : 10096 ac_fn_c_check_func "$LINENO" "recvmsg" "ac_cv_func_recvmsg" 10097if test "x$ac_cv_func_recvmsg" = xyes; then : 10098 cat >>confdefs.h <<_ACEOF 10099#define HAVE_RECVMSG 1 10100_ACEOF 10101 10102fi 10103done 10104 10105 10106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 10107$as_echo_n "checking for inline... " >&6; } 10108if ${ac_cv_c_inline+:} false; then : 10109 $as_echo_n "(cached) " >&6 10110else 10111 ac_cv_c_inline=no 10112for ac_kw in inline __inline__ __inline; do 10113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10114/* end confdefs.h. */ 10115#ifndef __cplusplus 10116typedef int foo_t; 10117static $ac_kw foo_t static_foo () {return 0; } 10118$ac_kw foo_t foo () {return 0; } 10119#endif 10120 10121_ACEOF 10122if ac_fn_c_try_compile "$LINENO"; then : 10123 ac_cv_c_inline=$ac_kw 10124fi 10125rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10126 test "$ac_cv_c_inline" != no && break 10127done 10128 10129fi 10130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 10131$as_echo "$ac_cv_c_inline" >&6; } 10132 10133case $ac_cv_c_inline in 10134 inline | yes) ;; 10135 *) 10136 case $ac_cv_c_inline in 10137 no) ac_val=;; 10138 *) ac_val=$ac_cv_c_inline;; 10139 esac 10140 cat >>confdefs.h <<_ACEOF 10141#ifndef __cplusplus 10142#define inline $ac_val 10143#endif 10144_ACEOF 10145 ;; 10146esac 10147 10148 10149case "$ac_cv_c_inline" in 10150 '') 10151 ;; 10152 *) 10153 10154$as_echo "#define HAVE_INLINE 1" >>confdefs.h 10155 10156 10157esac 10158 10159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 10160$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } 10161if ${ac_cv_header_time+:} false; then : 10162 $as_echo_n "(cached) " >&6 10163else 10164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10165/* end confdefs.h. */ 10166#include <sys/types.h> 10167#include <sys/time.h> 10168#include <time.h> 10169 10170int 10171main () 10172{ 10173if ((struct tm *) 0) 10174return 0; 10175 ; 10176 return 0; 10177} 10178_ACEOF 10179if ac_fn_c_try_compile "$LINENO"; then : 10180 ac_cv_header_time=yes 10181else 10182 ac_cv_header_time=no 10183fi 10184rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10185fi 10186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 10187$as_echo "$ac_cv_header_time" >&6; } 10188if test $ac_cv_header_time = yes; then 10189 10190$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h 10191 10192fi 10193 10194# The cast to long int works around a bug in the HP C Compiler 10195# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 10196# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 10197# This bug is HP SR number 8606223364. 10198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5 10199$as_echo_n "checking size of time_t... " >&6; } 10200if ${ac_cv_sizeof_time_t+:} false; then : 10201 $as_echo_n "(cached) " >&6 10202else 10203 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "$ac_includes_default"; then : 10204 10205else 10206 if test "$ac_cv_type_time_t" = yes; then 10207 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 10208$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 10209as_fn_error 77 "cannot compute sizeof (time_t) 10210See \`config.log' for more details" "$LINENO" 5; } 10211 else 10212 ac_cv_sizeof_time_t=0 10213 fi 10214fi 10215 10216fi 10217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5 10218$as_echo "$ac_cv_sizeof_time_t" >&6; } 10219 10220 10221 10222cat >>confdefs.h <<_ACEOF 10223#define SIZEOF_TIME_T $ac_cv_sizeof_time_t 10224_ACEOF 10225 10226 10227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5 10228$as_echo_n "checking whether char is unsigned... " >&6; } 10229if ${ac_cv_c_char_unsigned+:} false; then : 10230 $as_echo_n "(cached) " >&6 10231else 10232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10233/* end confdefs.h. */ 10234$ac_includes_default 10235int 10236main () 10237{ 10238static int test_array [1 - 2 * !(((char) -1) < 0)]; 10239test_array [0] = 0; 10240return test_array [0]; 10241 10242 ; 10243 return 0; 10244} 10245_ACEOF 10246if ac_fn_c_try_compile "$LINENO"; then : 10247 ac_cv_c_char_unsigned=no 10248else 10249 ac_cv_c_char_unsigned=yes 10250fi 10251rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10252fi 10253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5 10254$as_echo "$ac_cv_c_char_unsigned" >&6; } 10255if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then 10256 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h 10257 10258fi 10259 # The cast to long int works around a bug in the HP C Compiler 10260# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 10261# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 10262# This bug is HP SR number 8606223364. 10263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed char" >&5 10264$as_echo_n "checking size of signed char... " >&6; } 10265if ${ac_cv_sizeof_signed_char+:} false; then : 10266 $as_echo_n "(cached) " >&6 10267else 10268 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed char))" "ac_cv_sizeof_signed_char" "$ac_includes_default"; then : 10269 10270else 10271 if test "$ac_cv_type_signed_char" = yes; then 10272 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 10273$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 10274as_fn_error 77 "cannot compute sizeof (signed char) 10275See \`config.log' for more details" "$LINENO" 5; } 10276 else 10277 ac_cv_sizeof_signed_char=0 10278 fi 10279fi 10280 10281fi 10282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_char" >&5 10283$as_echo "$ac_cv_sizeof_signed_char" >&6; } 10284 10285 10286 10287cat >>confdefs.h <<_ACEOF 10288#define SIZEOF_SIGNED_CHAR $ac_cv_sizeof_signed_char 10289_ACEOF 10290 10291 10292ac_fn_c_check_type "$LINENO" "s_char" "ac_cv_type_s_char" "$ac_includes_default" 10293if test "x$ac_cv_type_s_char" = xyes; then : 10294 10295cat >>confdefs.h <<_ACEOF 10296#define HAVE_S_CHAR 1 10297_ACEOF 10298 10299 10300fi 10301ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default" 10302if test "x$ac_cv_type_long_long" = xyes; then : 10303 10304cat >>confdefs.h <<_ACEOF 10305#define HAVE_LONG_LONG 1 10306_ACEOF 10307 10308 10309fi 10310 10311# The cast to long int works around a bug in the HP C Compiler 10312# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 10313# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 10314# This bug is HP SR number 8606223364. 10315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 10316$as_echo_n "checking size of short... " >&6; } 10317if ${ac_cv_sizeof_short+:} false; then : 10318 $as_echo_n "(cached) " >&6 10319else 10320 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then : 10321 10322else 10323 if test "$ac_cv_type_short" = yes; then 10324 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 10325$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 10326as_fn_error 77 "cannot compute sizeof (short) 10327See \`config.log' for more details" "$LINENO" 5; } 10328 else 10329 ac_cv_sizeof_short=0 10330 fi 10331fi 10332 10333fi 10334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 10335$as_echo "$ac_cv_sizeof_short" >&6; } 10336 10337 10338 10339cat >>confdefs.h <<_ACEOF 10340#define SIZEOF_SHORT $ac_cv_sizeof_short 10341_ACEOF 10342 10343 10344# The cast to long int works around a bug in the HP C Compiler 10345# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 10346# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 10347# This bug is HP SR number 8606223364. 10348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 10349$as_echo_n "checking size of int... " >&6; } 10350if ${ac_cv_sizeof_int+:} false; then : 10351 $as_echo_n "(cached) " >&6 10352else 10353 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : 10354 10355else 10356 if test "$ac_cv_type_int" = yes; then 10357 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 10358$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 10359as_fn_error 77 "cannot compute sizeof (int) 10360See \`config.log' for more details" "$LINENO" 5; } 10361 else 10362 ac_cv_sizeof_int=0 10363 fi 10364fi 10365 10366fi 10367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 10368$as_echo "$ac_cv_sizeof_int" >&6; } 10369 10370 10371 10372cat >>confdefs.h <<_ACEOF 10373#define SIZEOF_INT $ac_cv_sizeof_int 10374_ACEOF 10375 10376 10377# The cast to long int works around a bug in the HP C Compiler 10378# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 10379# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 10380# This bug is HP SR number 8606223364. 10381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 10382$as_echo_n "checking size of long... " >&6; } 10383if ${ac_cv_sizeof_long+:} false; then : 10384 $as_echo_n "(cached) " >&6 10385else 10386 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : 10387 10388else 10389 if test "$ac_cv_type_long" = yes; then 10390 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 10391$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 10392as_fn_error 77 "cannot compute sizeof (long) 10393See \`config.log' for more details" "$LINENO" 5; } 10394 else 10395 ac_cv_sizeof_long=0 10396 fi 10397fi 10398 10399fi 10400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 10401$as_echo "$ac_cv_sizeof_long" >&6; } 10402 10403 10404 10405cat >>confdefs.h <<_ACEOF 10406#define SIZEOF_LONG $ac_cv_sizeof_long 10407_ACEOF 10408 10409 10410 10411case "$ac_cv_type_long_long" in 10412 no) 10413 ;; 10414 *) 10415 # The cast to long int works around a bug in the HP C Compiler 10416# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 10417# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 10418# This bug is HP SR number 8606223364. 10419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 10420$as_echo_n "checking size of long long... " >&6; } 10421if ${ac_cv_sizeof_long_long+:} false; then : 10422 $as_echo_n "(cached) " >&6 10423else 10424 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then : 10425 10426else 10427 if test "$ac_cv_type_long_long" = yes; then 10428 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 10429$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 10430as_fn_error 77 "cannot compute sizeof (long long) 10431See \`config.log' for more details" "$LINENO" 5; } 10432 else 10433 ac_cv_sizeof_long_long=0 10434 fi 10435fi 10436 10437fi 10438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 10439$as_echo "$ac_cv_sizeof_long_long" >&6; } 10440 10441 10442 10443cat >>confdefs.h <<_ACEOF 10444#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long 10445_ACEOF 10446 10447 10448 ;; 10449esac 10450 10451case "$ac_cv_c_char_unsigned$ac_cv_sizeof_signed_char$ac_cv_type_s_char" in 10452 *yes) 10453 # We have a typedef for s_char. Might as well believe it... 10454 ;; 10455 no0no) 10456 # We have signed chars, can't say 'signed char', no s_char typedef. 10457 10458$as_echo "#define NEED_S_CHAR_TYPEDEF 1" >>confdefs.h 10459 10460 ;; 10461 no1no) 10462 # We have signed chars, can say 'signed char', no s_char typedef. 10463 10464$as_echo "#define NEED_S_CHAR_TYPEDEF 1" >>confdefs.h 10465 10466 ;; 10467 yes0no) 10468 # We have unsigned chars, can't say 'signed char', no s_char typedef. 10469 as_fn_error $? "No way to specify a signed character!" "$LINENO" 5 10470 ;; 10471 yes1no) 10472 # We have unsigned chars, can say 'signed char', no s_char typedef. 10473 10474$as_echo "#define NEED_S_CHAR_TYPEDEF 1" >>confdefs.h 10475 10476 ;; 10477esac 10478 10479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 10480$as_echo_n "checking for uid_t in sys/types.h... " >&6; } 10481if ${ac_cv_type_uid_t+:} false; then : 10482 $as_echo_n "(cached) " >&6 10483else 10484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10485/* end confdefs.h. */ 10486#include <sys/types.h> 10487 10488_ACEOF 10489if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10490 $EGREP "uid_t" >/dev/null 2>&1; then : 10491 ac_cv_type_uid_t=yes 10492else 10493 ac_cv_type_uid_t=no 10494fi 10495rm -f conftest* 10496 10497fi 10498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 10499$as_echo "$ac_cv_type_uid_t" >&6; } 10500if test $ac_cv_type_uid_t = no; then 10501 10502$as_echo "#define uid_t int" >>confdefs.h 10503 10504 10505$as_echo "#define gid_t int" >>confdefs.h 10506 10507fi 10508 10509 10510 10511 10512 10513 10514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we're including debugging code" >&5 10515$as_echo_n "checking if we're including debugging code... " >&6; } 10516# Check whether --enable-debugging was given. 10517if test "${enable_debugging+set}" = set; then : 10518 enableval=$enable_debugging; ntp_ok=$enableval 10519else 10520 ntp_ok=yes 10521 10522fi 10523 10524case "$ntp_ok" in 10525 yes) 10526 10527$as_echo "#define DEBUG 1" >>confdefs.h 10528 10529esac 10530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5 10531$as_echo "$ntp_ok" >&6; } 10532 10533 10534 10535# check if we can compile with pthreads 10536for ac_header in semaphore.h 10537do : 10538 ac_fn_c_check_header_mongrel "$LINENO" "semaphore.h" "ac_cv_header_semaphore_h" "$ac_includes_default" 10539if test "x$ac_cv_header_semaphore_h" = xyes; then : 10540 cat >>confdefs.h <<_ACEOF 10541#define HAVE_SEMAPHORE_H 1 10542_ACEOF 10543 10544fi 10545 10546done 10547 10548for ac_func in socketpair 10549do : 10550 ac_fn_c_check_func "$LINENO" "socketpair" "ac_cv_func_socketpair" 10551if test "x$ac_cv_func_socketpair" = xyes; then : 10552 cat >>confdefs.h <<_ACEOF 10553#define HAVE_SOCKETPAIR 1 10554_ACEOF 10555 10556fi 10557done 10558 10559# Check whether --enable-thread-support was given. 10560if test "${enable_thread_support+set}" = set; then : 10561 enableval=$enable_thread_support; 10562else 10563 enable_thread_support=yes 10564 10565fi 10566 10567have_pthreads=no 10568case "$enable_thread_support" in 10569 no) ;; 10570 *) 10571 ol_found_pthreads=no 10572 10573 10574 10575ac_ext=c 10576ac_cpp='$CPP $CPPFLAGS' 10577ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10578ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10579ac_compiler_gnu=$ac_cv_c_compiler_gnu 10580 10581# OpenLDAP --with-threads 10582 10583# Check whether --with-threads was given. 10584if test "${with_threads+set}" = set; then : 10585 withval=$with_threads; 10586 ol_arg=invalid 10587 for ol_val in auto nt posix mach pth lwp yes no manual ; do 10588 if test "$withval" = "$ol_val" ; then 10589 ol_arg="$ol_val" 10590 fi 10591 done 10592 if test "$ol_arg" = "invalid" ; then 10593 as_fn_error $? "bad value $withval for --with-threads" "$LINENO" 5 10594 fi 10595 ol_with_threads="$ol_arg" 10596 10597else 10598 ol_with_threads="auto" 10599fi 10600# end --with-threads 10601 10602 10603case "$ol_with_threads$host" in 10604 auto*-*-solaris2.[0-6]) 10605 ol_with_threads=no 10606 ;; 10607esac 10608 10609 10610ol_aix_threads=no 10611case "$host" in 10612*-*-aix*) if test -z "$CC" ; then 10613 case "$ol_with_threads" in 10614 auto | yes | posix) ol_aix_threads=yes ;; 10615 esac 10616 fi 10617;; 10618esac 10619 10620if test $ol_aix_threads = yes ; then 10621 if test -z "${CC}" ; then 10622 for ac_prog in cc_r xlc_r cc 10623do 10624 # Extract the first word of "$ac_prog", so it can be a program name with args. 10625set dummy $ac_prog; ac_word=$2 10626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10627$as_echo_n "checking for $ac_word... " >&6; } 10628if ${ac_cv_prog_CC+:} false; then : 10629 $as_echo_n "(cached) " >&6 10630else 10631 if test -n "$CC"; then 10632 ac_cv_prog_CC="$CC" # Let the user override the test. 10633else 10634as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10635for as_dir in $PATH 10636do 10637 IFS=$as_save_IFS 10638 test -z "$as_dir" && as_dir=. 10639 for ac_exec_ext in '' $ac_executable_extensions; do 10640 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10641 ac_cv_prog_CC="$ac_prog" 10642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10643 break 2 10644 fi 10645done 10646 done 10647IFS=$as_save_IFS 10648 10649fi 10650fi 10651CC=$ac_cv_prog_CC 10652if test -n "$CC"; then 10653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 10654$as_echo "$CC" >&6; } 10655else 10656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10657$as_echo "no" >&6; } 10658fi 10659 10660 10661 test -n "$CC" && break 10662done 10663 10664 10665 if test "$CC" = cc ; then 10666 if test $ol_with_threads != auto ; then 10667 as_fn_error $? "--with-threads requires cc_r (or other suitable compiler) on AIX" "$LINENO" 5 10668 else 10669 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling threads, no cc_r on AIX" >&5 10670$as_echo "$as_me: WARNING: disabling threads, no cc_r on AIX" >&2;} 10671 fi 10672 ol_with_threads=no 10673 fi 10674 fi 10675 10676 case ${CC} in cc_r | xlc_r) 10677 ol_with_threads=posix 10678 ol_cv_pthread_create=yes 10679 ;; 10680 esac 10681fi 10682 10683ol_link_threads=no 10684# OpenLDAP --with-yielding_select 10685 10686# Check whether --with-yielding_select was given. 10687if test "${with_yielding_select+set}" = set; then : 10688 withval=$with_yielding_select; 10689 ol_arg=invalid 10690 for ol_val in auto yes no manual ; do 10691 if test "$withval" = "$ol_val" ; then 10692 ol_arg="$ol_val" 10693 fi 10694 done 10695 if test "$ol_arg" = "invalid" ; then 10696 as_fn_error $? "bad value $withval for --with-yielding_select" "$LINENO" 5 10697 fi 10698 ol_with_yielding_select="$ol_arg" 10699 10700else 10701 ol_with_yielding_select="auto" 10702fi 10703# end --with-yielding_select 10704 10705 10706case $ol_with_threads in auto | yes | nt) 10707 10708 10709 ac_fn_c_check_func "$LINENO" "_beginthread" "ac_cv_func__beginthread" 10710if test "x$ac_cv_func__beginthread" = xyes; then : 10711 10712fi 10713 10714 10715 if test $ac_cv_func__beginthread = yes ; then 10716 10717$as_echo "#define HAVE_NT_THREADS 1" >>confdefs.h 10718 10719 ol_cv_nt_threads=yes 10720 fi 10721 10722 10723 if test "$ol_cv_nt_threads" = yes ; then 10724 ol_link_threads=nt 10725 ol_with_threads=found 10726 ol_with_yielding_select=yes 10727 10728 10729$as_echo "#define HAVE_NT_SERVICE_MANAGER 1" >>confdefs.h 10730 10731 10732$as_echo "#define HAVE_NT_EVENT_LOG 1" >>confdefs.h 10733 10734 fi 10735 10736 if test $ol_with_threads = nt ; then 10737 as_fn_error $? "could not locate NT Threads" "$LINENO" 5 10738 fi 10739 ;; 10740esac 10741 10742case $ol_with_threads in auto | yes | posix) 10743 10744 for ac_header in pthread.h 10745do : 10746 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default" 10747if test "x$ac_cv_header_pthread_h" = xyes; then : 10748 cat >>confdefs.h <<_ACEOF 10749#define HAVE_PTHREAD_H 1 10750_ACEOF 10751 10752fi 10753 10754done 10755 10756 10757 if test $ac_cv_header_pthread_h = yes ; then 10758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking POSIX thread version" >&5 10759$as_echo_n "checking POSIX thread version... " >&6; } 10760if ${ol_cv_pthread_version+:} false; then : 10761 $as_echo_n "(cached) " >&6 10762else 10763 10764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10765/* end confdefs.h. */ 10766 10767# include <pthread.h> 10768 10769int 10770main () 10771{ 10772 10773 int i = PTHREAD_CREATE_JOINABLE; 10774 10775 ; 10776 return 0; 10777} 10778_ACEOF 10779if ac_fn_c_try_compile "$LINENO"; then : 10780 10781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10782/* end confdefs.h. */ 10783#include <pthread.h> 10784 10785_ACEOF 10786if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10787 $EGREP "pthread_detach" >/dev/null 2>&1; then : 10788 ol_cv_pthread_version=10 10789else 10790 ol_cv_pthread_version=8 10791fi 10792rm -f conftest* 10793 10794else 10795 10796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10797/* end confdefs.h. */ 10798 10799# include <pthread.h> 10800# ifdef PTHREAD_CREATE_UNDETACHED 10801 draft7 10802# endif 10803 10804_ACEOF 10805if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10806 $EGREP "draft7" >/dev/null 2>&1; then : 10807 ol_cv_pthread_version=7 10808else 10809 10810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10811/* end confdefs.h. */ 10812#include <pthread.h> 10813 10814_ACEOF 10815if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10816 $EGREP "pthread_attr_init" >/dev/null 2>&1; then : 10817 ol_cv_pthread_version=6 10818else 10819 10820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10821/* end confdefs.h. */ 10822 10823# include <pthread.h> 10824#ifdef PTHREAD_MUTEX_INITIALIZER 10825 draft5 10826#endif 10827 10828_ACEOF 10829if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10830 $EGREP "draft5" >/dev/null 2>&1; then : 10831 ol_cv_pthread_version=5 10832else 10833 ol_cv_pthread_version=4 10834fi 10835rm -f conftest* 10836 10837fi 10838rm -f conftest* 10839 10840fi 10841rm -f conftest* 10842 10843fi 10844rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10845 10846fi 10847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_version" >&5 10848$as_echo "$ol_cv_pthread_version" >&6; } 10849 10850 10851 if test $ol_cv_pthread_version != 0 ; then 10852 10853cat >>confdefs.h <<_ACEOF 10854#define HAVE_PTHREADS $ol_cv_pthread_version 10855_ACEOF 10856 10857 else 10858 as_fn_error $? "unknown pthread version" "$LINENO" 5 10859 fi 10860 10861 # consider threads found 10862 ol_with_threads=found 10863 10864 10865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads pthread.h" >&5 10866$as_echo_n "checking for LinuxThreads pthread.h... " >&6; } 10867if ${ol_cv_header_linux_threads+:} false; then : 10868 $as_echo_n "(cached) " >&6 10869else 10870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10871/* end confdefs.h. */ 10872#include <pthread.h> 10873_ACEOF 10874if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10875 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then : 10876 ol_cv_header_linux_threads=yes 10877else 10878 ol_cv_header_linux_threads=no 10879fi 10880rm -f conftest* 10881 10882 10883fi 10884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_linux_threads" >&5 10885$as_echo "$ol_cv_header_linux_threads" >&6; } 10886 if test $ol_cv_header_linux_threads = yes; then 10887 10888$as_echo "#define HAVE_LINUX_THREADS 1" >>confdefs.h 10889 10890 fi 10891 10892 10893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU Pth pthread.h" >&5 10894$as_echo_n "checking for GNU Pth pthread.h... " >&6; } 10895if ${ol_cv_header_gnu_pth_pthread_h+:} false; then : 10896 $as_echo_n "(cached) " >&6 10897else 10898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10899/* end confdefs.h. */ 10900#include <pthread.h> 10901#ifdef _POSIX_THREAD_IS_GNU_PTH 10902 __gnu_pth__; 10903#endif 10904 10905_ACEOF 10906if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10907 $EGREP "__gnu_pth__" >/dev/null 2>&1; then : 10908 ol_cv_header_gnu_pth_pthread_h=yes 10909else 10910 ol_cv_header_gnu_pth_pthread_h=no 10911fi 10912rm -f conftest* 10913 10914 10915fi 10916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_gnu_pth_pthread_h" >&5 10917$as_echo "$ol_cv_header_gnu_pth_pthread_h" >&6; } 10918 10919 10920 if test $ol_cv_header_gnu_pth_pthread_h = no ; then 10921 for ac_header in sched.h 10922do : 10923 ac_fn_c_check_header_mongrel "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default" 10924if test "x$ac_cv_header_sched_h" = xyes; then : 10925 cat >>confdefs.h <<_ACEOF 10926#define HAVE_SCHED_H 1 10927_ACEOF 10928 10929fi 10930 10931done 10932 10933 fi 10934 10935 10936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in default libraries" >&5 10937$as_echo_n "checking for pthread_create in default libraries... " >&6; } 10938if ${ol_cv_pthread_create+:} false; then : 10939 $as_echo_n "(cached) " >&6 10940else 10941 10942 if test "$cross_compiling" = yes; then : 10943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10944/* end confdefs.h. */ 10945 10946/* pthread test headers */ 10947#include <pthread.h> 10948#if HAVE_PTHREADS < 7 10949#include <errno.h> 10950#endif 10951#ifndef NULL 10952#define NULL (void*)0 10953#endif 10954 10955static void *task(p) 10956 void *p; 10957{ 10958 return (void *) (p == NULL); 10959} 10960 10961int 10962main () 10963{ 10964 10965 /* pthread test function */ 10966#ifndef PTHREAD_CREATE_DETACHED 10967#define PTHREAD_CREATE_DETACHED 1 10968#endif 10969 pthread_t t; 10970 int status; 10971 int detach = PTHREAD_CREATE_DETACHED; 10972 10973#if HAVE_PTHREADS > 4 10974 /* Final pthreads */ 10975 pthread_attr_t attr; 10976 10977 status = pthread_attr_init(&attr); 10978 if( status ) return status; 10979 10980#if HAVE_PTHREADS < 7 10981 status = pthread_attr_setdetachstate(&attr, &detach); 10982 if( status < 0 ) status = errno; 10983#else 10984 status = pthread_attr_setdetachstate(&attr, detach); 10985#endif 10986 if( status ) return status; 10987 status = pthread_create( &t, &attr, task, NULL ); 10988#if HAVE_PTHREADS < 7 10989 if( status < 0 ) status = errno; 10990#endif 10991 if( status ) return status; 10992#else 10993 /* Draft 4 pthreads */ 10994 status = pthread_create( &t, pthread_attr_default, task, NULL ); 10995 if( status ) return errno; 10996 10997 /* give thread a chance to complete */ 10998 /* it should remain joinable and hence detachable */ 10999 sleep( 1 ); 11000 11001 status = pthread_detach( &t ); 11002 if( status ) return errno; 11003#endif 11004 11005#ifdef HAVE_LINUX_THREADS 11006 pthread_kill_other_threads_np(); 11007#endif 11008 11009 return 0; 11010 11011 ; 11012 return 0; 11013} 11014_ACEOF 11015if ac_fn_c_try_link "$LINENO"; then : 11016 ol_cv_pthread_create=yes 11017else 11018 ol_cv_pthread_create=no 11019fi 11020rm -f core conftest.err conftest.$ac_objext \ 11021 conftest$ac_exeext conftest.$ac_ext 11022else 11023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11024/* end confdefs.h. */ 11025 11026 11027/* pthread test headers */ 11028#include <pthread.h> 11029#if HAVE_PTHREADS < 7 11030#include <errno.h> 11031#endif 11032#ifndef NULL 11033#define NULL (void*)0 11034#endif 11035 11036static void *task(p) 11037 void *p; 11038{ 11039 return (void *) (p == NULL); 11040} 11041 11042 11043int main(argc, argv) 11044 int argc; 11045 char **argv; 11046{ 11047 11048 /* pthread test function */ 11049#ifndef PTHREAD_CREATE_DETACHED 11050#define PTHREAD_CREATE_DETACHED 1 11051#endif 11052 pthread_t t; 11053 int status; 11054 int detach = PTHREAD_CREATE_DETACHED; 11055 11056#if HAVE_PTHREADS > 4 11057 /* Final pthreads */ 11058 pthread_attr_t attr; 11059 11060 status = pthread_attr_init(&attr); 11061 if( status ) return status; 11062 11063#if HAVE_PTHREADS < 7 11064 status = pthread_attr_setdetachstate(&attr, &detach); 11065 if( status < 0 ) status = errno; 11066#else 11067 status = pthread_attr_setdetachstate(&attr, detach); 11068#endif 11069 if( status ) return status; 11070 status = pthread_create( &t, &attr, task, NULL ); 11071#if HAVE_PTHREADS < 7 11072 if( status < 0 ) status = errno; 11073#endif 11074 if( status ) return status; 11075#else 11076 /* Draft 4 pthreads */ 11077 status = pthread_create( &t, pthread_attr_default, task, NULL ); 11078 if( status ) return errno; 11079 11080 /* give thread a chance to complete */ 11081 /* it should remain joinable and hence detachable */ 11082 sleep( 1 ); 11083 11084 status = pthread_detach( &t ); 11085 if( status ) return errno; 11086#endif 11087 11088#ifdef HAVE_LINUX_THREADS 11089 pthread_kill_other_threads_np(); 11090#endif 11091 11092 return 0; 11093 11094} 11095 11096_ACEOF 11097if ac_fn_c_try_run "$LINENO"; then : 11098 ol_cv_pthread_create=yes 11099else 11100 ol_cv_pthread_create=no 11101fi 11102rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11103 conftest.$ac_objext conftest.beam conftest.$ac_ext 11104fi 11105 11106fi 11107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_create" >&5 11108$as_echo "$ol_cv_pthread_create" >&6; } 11109 11110 if test $ol_cv_pthread_create != no ; then 11111 ol_link_threads=posix 11112 ol_link_pthreads="" 11113 fi 11114 11115 # Pthread try link: -kthread (ol_cv_pthread_kthread) 11116if test "$ol_link_threads" = no ; then 11117 # try -kthread 11118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -kthread" >&5 11119$as_echo_n "checking for pthread link with -kthread... " >&6; } 11120if ${ol_cv_pthread_kthread+:} false; then : 11121 $as_echo_n "(cached) " >&6 11122else 11123 11124 # save the flags 11125 ol_LIBS="$LIBS" 11126 LIBS="-kthread $LIBS" 11127 11128 if test "$cross_compiling" = yes; then : 11129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11130/* end confdefs.h. */ 11131 11132/* pthread test headers */ 11133#include <pthread.h> 11134#if HAVE_PTHREADS < 7 11135#include <errno.h> 11136#endif 11137#ifndef NULL 11138#define NULL (void*)0 11139#endif 11140 11141static void *task(p) 11142 void *p; 11143{ 11144 return (void *) (p == NULL); 11145} 11146 11147int 11148main () 11149{ 11150 11151 /* pthread test function */ 11152#ifndef PTHREAD_CREATE_DETACHED 11153#define PTHREAD_CREATE_DETACHED 1 11154#endif 11155 pthread_t t; 11156 int status; 11157 int detach = PTHREAD_CREATE_DETACHED; 11158 11159#if HAVE_PTHREADS > 4 11160 /* Final pthreads */ 11161 pthread_attr_t attr; 11162 11163 status = pthread_attr_init(&attr); 11164 if( status ) return status; 11165 11166#if HAVE_PTHREADS < 7 11167 status = pthread_attr_setdetachstate(&attr, &detach); 11168 if( status < 0 ) status = errno; 11169#else 11170 status = pthread_attr_setdetachstate(&attr, detach); 11171#endif 11172 if( status ) return status; 11173 status = pthread_create( &t, &attr, task, NULL ); 11174#if HAVE_PTHREADS < 7 11175 if( status < 0 ) status = errno; 11176#endif 11177 if( status ) return status; 11178#else 11179 /* Draft 4 pthreads */ 11180 status = pthread_create( &t, pthread_attr_default, task, NULL ); 11181 if( status ) return errno; 11182 11183 /* give thread a chance to complete */ 11184 /* it should remain joinable and hence detachable */ 11185 sleep( 1 ); 11186 11187 status = pthread_detach( &t ); 11188 if( status ) return errno; 11189#endif 11190 11191#ifdef HAVE_LINUX_THREADS 11192 pthread_kill_other_threads_np(); 11193#endif 11194 11195 return 0; 11196 11197 ; 11198 return 0; 11199} 11200_ACEOF 11201if ac_fn_c_try_link "$LINENO"; then : 11202 ol_cv_pthread_kthread=yes 11203else 11204 ol_cv_pthread_kthread=no 11205fi 11206rm -f core conftest.err conftest.$ac_objext \ 11207 conftest$ac_exeext conftest.$ac_ext 11208else 11209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11210/* end confdefs.h. */ 11211 11212 11213/* pthread test headers */ 11214#include <pthread.h> 11215#if HAVE_PTHREADS < 7 11216#include <errno.h> 11217#endif 11218#ifndef NULL 11219#define NULL (void*)0 11220#endif 11221 11222static void *task(p) 11223 void *p; 11224{ 11225 return (void *) (p == NULL); 11226} 11227 11228 11229int main(argc, argv) 11230 int argc; 11231 char **argv; 11232{ 11233 11234 /* pthread test function */ 11235#ifndef PTHREAD_CREATE_DETACHED 11236#define PTHREAD_CREATE_DETACHED 1 11237#endif 11238 pthread_t t; 11239 int status; 11240 int detach = PTHREAD_CREATE_DETACHED; 11241 11242#if HAVE_PTHREADS > 4 11243 /* Final pthreads */ 11244 pthread_attr_t attr; 11245 11246 status = pthread_attr_init(&attr); 11247 if( status ) return status; 11248 11249#if HAVE_PTHREADS < 7 11250 status = pthread_attr_setdetachstate(&attr, &detach); 11251 if( status < 0 ) status = errno; 11252#else 11253 status = pthread_attr_setdetachstate(&attr, detach); 11254#endif 11255 if( status ) return status; 11256 status = pthread_create( &t, &attr, task, NULL ); 11257#if HAVE_PTHREADS < 7 11258 if( status < 0 ) status = errno; 11259#endif 11260 if( status ) return status; 11261#else 11262 /* Draft 4 pthreads */ 11263 status = pthread_create( &t, pthread_attr_default, task, NULL ); 11264 if( status ) return errno; 11265 11266 /* give thread a chance to complete */ 11267 /* it should remain joinable and hence detachable */ 11268 sleep( 1 ); 11269 11270 status = pthread_detach( &t ); 11271 if( status ) return errno; 11272#endif 11273 11274#ifdef HAVE_LINUX_THREADS 11275 pthread_kill_other_threads_np(); 11276#endif 11277 11278 return 0; 11279 11280} 11281 11282_ACEOF 11283if ac_fn_c_try_run "$LINENO"; then : 11284 ol_cv_pthread_kthread=yes 11285else 11286 ol_cv_pthread_kthread=no 11287fi 11288rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11289 conftest.$ac_objext conftest.beam conftest.$ac_ext 11290fi 11291 11292 11293 # restore the LIBS 11294 LIBS="$ol_LIBS" 11295 11296fi 11297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_kthread" >&5 11298$as_echo "$ol_cv_pthread_kthread" >&6; } 11299 11300 if test $ol_cv_pthread_kthread = yes ; then 11301 ol_link_pthreads="-kthread" 11302 ol_link_threads=posix 11303 fi 11304fi 11305 11306 # Pthread try link: -pthread (ol_cv_pthread_pthread) 11307if test "$ol_link_threads" = no ; then 11308 # try -pthread 11309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -pthread" >&5 11310$as_echo_n "checking for pthread link with -pthread... " >&6; } 11311if ${ol_cv_pthread_pthread+:} false; then : 11312 $as_echo_n "(cached) " >&6 11313else 11314 11315 # save the flags 11316 ol_LIBS="$LIBS" 11317 LIBS="-pthread $LIBS" 11318 11319 if test "$cross_compiling" = yes; then : 11320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11321/* end confdefs.h. */ 11322 11323/* pthread test headers */ 11324#include <pthread.h> 11325#if HAVE_PTHREADS < 7 11326#include <errno.h> 11327#endif 11328#ifndef NULL 11329#define NULL (void*)0 11330#endif 11331 11332static void *task(p) 11333 void *p; 11334{ 11335 return (void *) (p == NULL); 11336} 11337 11338int 11339main () 11340{ 11341 11342 /* pthread test function */ 11343#ifndef PTHREAD_CREATE_DETACHED 11344#define PTHREAD_CREATE_DETACHED 1 11345#endif 11346 pthread_t t; 11347 int status; 11348 int detach = PTHREAD_CREATE_DETACHED; 11349 11350#if HAVE_PTHREADS > 4 11351 /* Final pthreads */ 11352 pthread_attr_t attr; 11353 11354 status = pthread_attr_init(&attr); 11355 if( status ) return status; 11356 11357#if HAVE_PTHREADS < 7 11358 status = pthread_attr_setdetachstate(&attr, &detach); 11359 if( status < 0 ) status = errno; 11360#else 11361 status = pthread_attr_setdetachstate(&attr, detach); 11362#endif 11363 if( status ) return status; 11364 status = pthread_create( &t, &attr, task, NULL ); 11365#if HAVE_PTHREADS < 7 11366 if( status < 0 ) status = errno; 11367#endif 11368 if( status ) return status; 11369#else 11370 /* Draft 4 pthreads */ 11371 status = pthread_create( &t, pthread_attr_default, task, NULL ); 11372 if( status ) return errno; 11373 11374 /* give thread a chance to complete */ 11375 /* it should remain joinable and hence detachable */ 11376 sleep( 1 ); 11377 11378 status = pthread_detach( &t ); 11379 if( status ) return errno; 11380#endif 11381 11382#ifdef HAVE_LINUX_THREADS 11383 pthread_kill_other_threads_np(); 11384#endif 11385 11386 return 0; 11387 11388 ; 11389 return 0; 11390} 11391_ACEOF 11392if ac_fn_c_try_link "$LINENO"; then : 11393 ol_cv_pthread_pthread=yes 11394else 11395 ol_cv_pthread_pthread=no 11396fi 11397rm -f core conftest.err conftest.$ac_objext \ 11398 conftest$ac_exeext conftest.$ac_ext 11399else 11400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11401/* end confdefs.h. */ 11402 11403 11404/* pthread test headers */ 11405#include <pthread.h> 11406#if HAVE_PTHREADS < 7 11407#include <errno.h> 11408#endif 11409#ifndef NULL 11410#define NULL (void*)0 11411#endif 11412 11413static void *task(p) 11414 void *p; 11415{ 11416 return (void *) (p == NULL); 11417} 11418 11419 11420int main(argc, argv) 11421 int argc; 11422 char **argv; 11423{ 11424 11425 /* pthread test function */ 11426#ifndef PTHREAD_CREATE_DETACHED 11427#define PTHREAD_CREATE_DETACHED 1 11428#endif 11429 pthread_t t; 11430 int status; 11431 int detach = PTHREAD_CREATE_DETACHED; 11432 11433#if HAVE_PTHREADS > 4 11434 /* Final pthreads */ 11435 pthread_attr_t attr; 11436 11437 status = pthread_attr_init(&attr); 11438 if( status ) return status; 11439 11440#if HAVE_PTHREADS < 7 11441 status = pthread_attr_setdetachstate(&attr, &detach); 11442 if( status < 0 ) status = errno; 11443#else 11444 status = pthread_attr_setdetachstate(&attr, detach); 11445#endif 11446 if( status ) return status; 11447 status = pthread_create( &t, &attr, task, NULL ); 11448#if HAVE_PTHREADS < 7 11449 if( status < 0 ) status = errno; 11450#endif 11451 if( status ) return status; 11452#else 11453 /* Draft 4 pthreads */ 11454 status = pthread_create( &t, pthread_attr_default, task, NULL ); 11455 if( status ) return errno; 11456 11457 /* give thread a chance to complete */ 11458 /* it should remain joinable and hence detachable */ 11459 sleep( 1 ); 11460 11461 status = pthread_detach( &t ); 11462 if( status ) return errno; 11463#endif 11464 11465#ifdef HAVE_LINUX_THREADS 11466 pthread_kill_other_threads_np(); 11467#endif 11468 11469 return 0; 11470 11471} 11472 11473_ACEOF 11474if ac_fn_c_try_run "$LINENO"; then : 11475 ol_cv_pthread_pthread=yes 11476else 11477 ol_cv_pthread_pthread=no 11478fi 11479rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11480 conftest.$ac_objext conftest.beam conftest.$ac_ext 11481fi 11482 11483 11484 # restore the LIBS 11485 LIBS="$ol_LIBS" 11486 11487fi 11488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_pthread" >&5 11489$as_echo "$ol_cv_pthread_pthread" >&6; } 11490 11491 if test $ol_cv_pthread_pthread = yes ; then 11492 ol_link_pthreads="-pthread" 11493 ol_link_threads=posix 11494 fi 11495fi 11496 11497 # Pthread try link: -pthreads (ol_cv_pthread_pthreads) 11498if test "$ol_link_threads" = no ; then 11499 # try -pthreads 11500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -pthreads" >&5 11501$as_echo_n "checking for pthread link with -pthreads... " >&6; } 11502if ${ol_cv_pthread_pthreads+:} false; then : 11503 $as_echo_n "(cached) " >&6 11504else 11505 11506 # save the flags 11507 ol_LIBS="$LIBS" 11508 LIBS="-pthreads $LIBS" 11509 11510 if test "$cross_compiling" = yes; then : 11511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11512/* end confdefs.h. */ 11513 11514/* pthread test headers */ 11515#include <pthread.h> 11516#if HAVE_PTHREADS < 7 11517#include <errno.h> 11518#endif 11519#ifndef NULL 11520#define NULL (void*)0 11521#endif 11522 11523static void *task(p) 11524 void *p; 11525{ 11526 return (void *) (p == NULL); 11527} 11528 11529int 11530main () 11531{ 11532 11533 /* pthread test function */ 11534#ifndef PTHREAD_CREATE_DETACHED 11535#define PTHREAD_CREATE_DETACHED 1 11536#endif 11537 pthread_t t; 11538 int status; 11539 int detach = PTHREAD_CREATE_DETACHED; 11540 11541#if HAVE_PTHREADS > 4 11542 /* Final pthreads */ 11543 pthread_attr_t attr; 11544 11545 status = pthread_attr_init(&attr); 11546 if( status ) return status; 11547 11548#if HAVE_PTHREADS < 7 11549 status = pthread_attr_setdetachstate(&attr, &detach); 11550 if( status < 0 ) status = errno; 11551#else 11552 status = pthread_attr_setdetachstate(&attr, detach); 11553#endif 11554 if( status ) return status; 11555 status = pthread_create( &t, &attr, task, NULL ); 11556#if HAVE_PTHREADS < 7 11557 if( status < 0 ) status = errno; 11558#endif 11559 if( status ) return status; 11560#else 11561 /* Draft 4 pthreads */ 11562 status = pthread_create( &t, pthread_attr_default, task, NULL ); 11563 if( status ) return errno; 11564 11565 /* give thread a chance to complete */ 11566 /* it should remain joinable and hence detachable */ 11567 sleep( 1 ); 11568 11569 status = pthread_detach( &t ); 11570 if( status ) return errno; 11571#endif 11572 11573#ifdef HAVE_LINUX_THREADS 11574 pthread_kill_other_threads_np(); 11575#endif 11576 11577 return 0; 11578 11579 ; 11580 return 0; 11581} 11582_ACEOF 11583if ac_fn_c_try_link "$LINENO"; then : 11584 ol_cv_pthread_pthreads=yes 11585else 11586 ol_cv_pthread_pthreads=no 11587fi 11588rm -f core conftest.err conftest.$ac_objext \ 11589 conftest$ac_exeext conftest.$ac_ext 11590else 11591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11592/* end confdefs.h. */ 11593 11594 11595/* pthread test headers */ 11596#include <pthread.h> 11597#if HAVE_PTHREADS < 7 11598#include <errno.h> 11599#endif 11600#ifndef NULL 11601#define NULL (void*)0 11602#endif 11603 11604static void *task(p) 11605 void *p; 11606{ 11607 return (void *) (p == NULL); 11608} 11609 11610 11611int main(argc, argv) 11612 int argc; 11613 char **argv; 11614{ 11615 11616 /* pthread test function */ 11617#ifndef PTHREAD_CREATE_DETACHED 11618#define PTHREAD_CREATE_DETACHED 1 11619#endif 11620 pthread_t t; 11621 int status; 11622 int detach = PTHREAD_CREATE_DETACHED; 11623 11624#if HAVE_PTHREADS > 4 11625 /* Final pthreads */ 11626 pthread_attr_t attr; 11627 11628 status = pthread_attr_init(&attr); 11629 if( status ) return status; 11630 11631#if HAVE_PTHREADS < 7 11632 status = pthread_attr_setdetachstate(&attr, &detach); 11633 if( status < 0 ) status = errno; 11634#else 11635 status = pthread_attr_setdetachstate(&attr, detach); 11636#endif 11637 if( status ) return status; 11638 status = pthread_create( &t, &attr, task, NULL ); 11639#if HAVE_PTHREADS < 7 11640 if( status < 0 ) status = errno; 11641#endif 11642 if( status ) return status; 11643#else 11644 /* Draft 4 pthreads */ 11645 status = pthread_create( &t, pthread_attr_default, task, NULL ); 11646 if( status ) return errno; 11647 11648 /* give thread a chance to complete */ 11649 /* it should remain joinable and hence detachable */ 11650 sleep( 1 ); 11651 11652 status = pthread_detach( &t ); 11653 if( status ) return errno; 11654#endif 11655 11656#ifdef HAVE_LINUX_THREADS 11657 pthread_kill_other_threads_np(); 11658#endif 11659 11660 return 0; 11661 11662} 11663 11664_ACEOF 11665if ac_fn_c_try_run "$LINENO"; then : 11666 ol_cv_pthread_pthreads=yes 11667else 11668 ol_cv_pthread_pthreads=no 11669fi 11670rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11671 conftest.$ac_objext conftest.beam conftest.$ac_ext 11672fi 11673 11674 11675 # restore the LIBS 11676 LIBS="$ol_LIBS" 11677 11678fi 11679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_pthreads" >&5 11680$as_echo "$ol_cv_pthread_pthreads" >&6; } 11681 11682 if test $ol_cv_pthread_pthreads = yes ; then 11683 ol_link_pthreads="-pthreads" 11684 ol_link_threads=posix 11685 fi 11686fi 11687 11688 # Pthread try link: -mthreads (ol_cv_pthread_mthreads) 11689if test "$ol_link_threads" = no ; then 11690 # try -mthreads 11691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -mthreads" >&5 11692$as_echo_n "checking for pthread link with -mthreads... " >&6; } 11693if ${ol_cv_pthread_mthreads+:} false; then : 11694 $as_echo_n "(cached) " >&6 11695else 11696 11697 # save the flags 11698 ol_LIBS="$LIBS" 11699 LIBS="-mthreads $LIBS" 11700 11701 if test "$cross_compiling" = yes; then : 11702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11703/* end confdefs.h. */ 11704 11705/* pthread test headers */ 11706#include <pthread.h> 11707#if HAVE_PTHREADS < 7 11708#include <errno.h> 11709#endif 11710#ifndef NULL 11711#define NULL (void*)0 11712#endif 11713 11714static void *task(p) 11715 void *p; 11716{ 11717 return (void *) (p == NULL); 11718} 11719 11720int 11721main () 11722{ 11723 11724 /* pthread test function */ 11725#ifndef PTHREAD_CREATE_DETACHED 11726#define PTHREAD_CREATE_DETACHED 1 11727#endif 11728 pthread_t t; 11729 int status; 11730 int detach = PTHREAD_CREATE_DETACHED; 11731 11732#if HAVE_PTHREADS > 4 11733 /* Final pthreads */ 11734 pthread_attr_t attr; 11735 11736 status = pthread_attr_init(&attr); 11737 if( status ) return status; 11738 11739#if HAVE_PTHREADS < 7 11740 status = pthread_attr_setdetachstate(&attr, &detach); 11741 if( status < 0 ) status = errno; 11742#else 11743 status = pthread_attr_setdetachstate(&attr, detach); 11744#endif 11745 if( status ) return status; 11746 status = pthread_create( &t, &attr, task, NULL ); 11747#if HAVE_PTHREADS < 7 11748 if( status < 0 ) status = errno; 11749#endif 11750 if( status ) return status; 11751#else 11752 /* Draft 4 pthreads */ 11753 status = pthread_create( &t, pthread_attr_default, task, NULL ); 11754 if( status ) return errno; 11755 11756 /* give thread a chance to complete */ 11757 /* it should remain joinable and hence detachable */ 11758 sleep( 1 ); 11759 11760 status = pthread_detach( &t ); 11761 if( status ) return errno; 11762#endif 11763 11764#ifdef HAVE_LINUX_THREADS 11765 pthread_kill_other_threads_np(); 11766#endif 11767 11768 return 0; 11769 11770 ; 11771 return 0; 11772} 11773_ACEOF 11774if ac_fn_c_try_link "$LINENO"; then : 11775 ol_cv_pthread_mthreads=yes 11776else 11777 ol_cv_pthread_mthreads=no 11778fi 11779rm -f core conftest.err conftest.$ac_objext \ 11780 conftest$ac_exeext conftest.$ac_ext 11781else 11782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11783/* end confdefs.h. */ 11784 11785 11786/* pthread test headers */ 11787#include <pthread.h> 11788#if HAVE_PTHREADS < 7 11789#include <errno.h> 11790#endif 11791#ifndef NULL 11792#define NULL (void*)0 11793#endif 11794 11795static void *task(p) 11796 void *p; 11797{ 11798 return (void *) (p == NULL); 11799} 11800 11801 11802int main(argc, argv) 11803 int argc; 11804 char **argv; 11805{ 11806 11807 /* pthread test function */ 11808#ifndef PTHREAD_CREATE_DETACHED 11809#define PTHREAD_CREATE_DETACHED 1 11810#endif 11811 pthread_t t; 11812 int status; 11813 int detach = PTHREAD_CREATE_DETACHED; 11814 11815#if HAVE_PTHREADS > 4 11816 /* Final pthreads */ 11817 pthread_attr_t attr; 11818 11819 status = pthread_attr_init(&attr); 11820 if( status ) return status; 11821 11822#if HAVE_PTHREADS < 7 11823 status = pthread_attr_setdetachstate(&attr, &detach); 11824 if( status < 0 ) status = errno; 11825#else 11826 status = pthread_attr_setdetachstate(&attr, detach); 11827#endif 11828 if( status ) return status; 11829 status = pthread_create( &t, &attr, task, NULL ); 11830#if HAVE_PTHREADS < 7 11831 if( status < 0 ) status = errno; 11832#endif 11833 if( status ) return status; 11834#else 11835 /* Draft 4 pthreads */ 11836 status = pthread_create( &t, pthread_attr_default, task, NULL ); 11837 if( status ) return errno; 11838 11839 /* give thread a chance to complete */ 11840 /* it should remain joinable and hence detachable */ 11841 sleep( 1 ); 11842 11843 status = pthread_detach( &t ); 11844 if( status ) return errno; 11845#endif 11846 11847#ifdef HAVE_LINUX_THREADS 11848 pthread_kill_other_threads_np(); 11849#endif 11850 11851 return 0; 11852 11853} 11854 11855_ACEOF 11856if ac_fn_c_try_run "$LINENO"; then : 11857 ol_cv_pthread_mthreads=yes 11858else 11859 ol_cv_pthread_mthreads=no 11860fi 11861rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11862 conftest.$ac_objext conftest.beam conftest.$ac_ext 11863fi 11864 11865 11866 # restore the LIBS 11867 LIBS="$ol_LIBS" 11868 11869fi 11870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_mthreads" >&5 11871$as_echo "$ol_cv_pthread_mthreads" >&6; } 11872 11873 if test $ol_cv_pthread_mthreads = yes ; then 11874 ol_link_pthreads="-mthreads" 11875 ol_link_threads=posix 11876 fi 11877fi 11878 11879 # Pthread try link: -thread (ol_cv_pthread_thread) 11880if test "$ol_link_threads" = no ; then 11881 # try -thread 11882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -thread" >&5 11883$as_echo_n "checking for pthread link with -thread... " >&6; } 11884if ${ol_cv_pthread_thread+:} false; then : 11885 $as_echo_n "(cached) " >&6 11886else 11887 11888 # save the flags 11889 ol_LIBS="$LIBS" 11890 LIBS="-thread $LIBS" 11891 11892 if test "$cross_compiling" = yes; then : 11893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11894/* end confdefs.h. */ 11895 11896/* pthread test headers */ 11897#include <pthread.h> 11898#if HAVE_PTHREADS < 7 11899#include <errno.h> 11900#endif 11901#ifndef NULL 11902#define NULL (void*)0 11903#endif 11904 11905static void *task(p) 11906 void *p; 11907{ 11908 return (void *) (p == NULL); 11909} 11910 11911int 11912main () 11913{ 11914 11915 /* pthread test function */ 11916#ifndef PTHREAD_CREATE_DETACHED 11917#define PTHREAD_CREATE_DETACHED 1 11918#endif 11919 pthread_t t; 11920 int status; 11921 int detach = PTHREAD_CREATE_DETACHED; 11922 11923#if HAVE_PTHREADS > 4 11924 /* Final pthreads */ 11925 pthread_attr_t attr; 11926 11927 status = pthread_attr_init(&attr); 11928 if( status ) return status; 11929 11930#if HAVE_PTHREADS < 7 11931 status = pthread_attr_setdetachstate(&attr, &detach); 11932 if( status < 0 ) status = errno; 11933#else 11934 status = pthread_attr_setdetachstate(&attr, detach); 11935#endif 11936 if( status ) return status; 11937 status = pthread_create( &t, &attr, task, NULL ); 11938#if HAVE_PTHREADS < 7 11939 if( status < 0 ) status = errno; 11940#endif 11941 if( status ) return status; 11942#else 11943 /* Draft 4 pthreads */ 11944 status = pthread_create( &t, pthread_attr_default, task, NULL ); 11945 if( status ) return errno; 11946 11947 /* give thread a chance to complete */ 11948 /* it should remain joinable and hence detachable */ 11949 sleep( 1 ); 11950 11951 status = pthread_detach( &t ); 11952 if( status ) return errno; 11953#endif 11954 11955#ifdef HAVE_LINUX_THREADS 11956 pthread_kill_other_threads_np(); 11957#endif 11958 11959 return 0; 11960 11961 ; 11962 return 0; 11963} 11964_ACEOF 11965if ac_fn_c_try_link "$LINENO"; then : 11966 ol_cv_pthread_thread=yes 11967else 11968 ol_cv_pthread_thread=no 11969fi 11970rm -f core conftest.err conftest.$ac_objext \ 11971 conftest$ac_exeext conftest.$ac_ext 11972else 11973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11974/* end confdefs.h. */ 11975 11976 11977/* pthread test headers */ 11978#include <pthread.h> 11979#if HAVE_PTHREADS < 7 11980#include <errno.h> 11981#endif 11982#ifndef NULL 11983#define NULL (void*)0 11984#endif 11985 11986static void *task(p) 11987 void *p; 11988{ 11989 return (void *) (p == NULL); 11990} 11991 11992 11993int main(argc, argv) 11994 int argc; 11995 char **argv; 11996{ 11997 11998 /* pthread test function */ 11999#ifndef PTHREAD_CREATE_DETACHED 12000#define PTHREAD_CREATE_DETACHED 1 12001#endif 12002 pthread_t t; 12003 int status; 12004 int detach = PTHREAD_CREATE_DETACHED; 12005 12006#if HAVE_PTHREADS > 4 12007 /* Final pthreads */ 12008 pthread_attr_t attr; 12009 12010 status = pthread_attr_init(&attr); 12011 if( status ) return status; 12012 12013#if HAVE_PTHREADS < 7 12014 status = pthread_attr_setdetachstate(&attr, &detach); 12015 if( status < 0 ) status = errno; 12016#else 12017 status = pthread_attr_setdetachstate(&attr, detach); 12018#endif 12019 if( status ) return status; 12020 status = pthread_create( &t, &attr, task, NULL ); 12021#if HAVE_PTHREADS < 7 12022 if( status < 0 ) status = errno; 12023#endif 12024 if( status ) return status; 12025#else 12026 /* Draft 4 pthreads */ 12027 status = pthread_create( &t, pthread_attr_default, task, NULL ); 12028 if( status ) return errno; 12029 12030 /* give thread a chance to complete */ 12031 /* it should remain joinable and hence detachable */ 12032 sleep( 1 ); 12033 12034 status = pthread_detach( &t ); 12035 if( status ) return errno; 12036#endif 12037 12038#ifdef HAVE_LINUX_THREADS 12039 pthread_kill_other_threads_np(); 12040#endif 12041 12042 return 0; 12043 12044} 12045 12046_ACEOF 12047if ac_fn_c_try_run "$LINENO"; then : 12048 ol_cv_pthread_thread=yes 12049else 12050 ol_cv_pthread_thread=no 12051fi 12052rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12053 conftest.$ac_objext conftest.beam conftest.$ac_ext 12054fi 12055 12056 12057 # restore the LIBS 12058 LIBS="$ol_LIBS" 12059 12060fi 12061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_thread" >&5 12062$as_echo "$ol_cv_pthread_thread" >&6; } 12063 12064 if test $ol_cv_pthread_thread = yes ; then 12065 ol_link_pthreads="-thread" 12066 ol_link_threads=posix 12067 fi 12068fi 12069 12070 12071 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r) 12072if test "$ol_link_threads" = no ; then 12073 # try -lpthread -lmach -lexc -lc_r 12074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5 12075$as_echo_n "checking for pthread link with -lpthread -lmach -lexc -lc_r... " >&6; } 12076if ${ol_cv_pthread_lpthread_lmach_lexc_lc_r+:} false; then : 12077 $as_echo_n "(cached) " >&6 12078else 12079 12080 # save the flags 12081 ol_LIBS="$LIBS" 12082 LIBS="-lpthread -lmach -lexc -lc_r $LIBS" 12083 12084 if test "$cross_compiling" = yes; then : 12085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12086/* end confdefs.h. */ 12087 12088/* pthread test headers */ 12089#include <pthread.h> 12090#if HAVE_PTHREADS < 7 12091#include <errno.h> 12092#endif 12093#ifndef NULL 12094#define NULL (void*)0 12095#endif 12096 12097static void *task(p) 12098 void *p; 12099{ 12100 return (void *) (p == NULL); 12101} 12102 12103int 12104main () 12105{ 12106 12107 /* pthread test function */ 12108#ifndef PTHREAD_CREATE_DETACHED 12109#define PTHREAD_CREATE_DETACHED 1 12110#endif 12111 pthread_t t; 12112 int status; 12113 int detach = PTHREAD_CREATE_DETACHED; 12114 12115#if HAVE_PTHREADS > 4 12116 /* Final pthreads */ 12117 pthread_attr_t attr; 12118 12119 status = pthread_attr_init(&attr); 12120 if( status ) return status; 12121 12122#if HAVE_PTHREADS < 7 12123 status = pthread_attr_setdetachstate(&attr, &detach); 12124 if( status < 0 ) status = errno; 12125#else 12126 status = pthread_attr_setdetachstate(&attr, detach); 12127#endif 12128 if( status ) return status; 12129 status = pthread_create( &t, &attr, task, NULL ); 12130#if HAVE_PTHREADS < 7 12131 if( status < 0 ) status = errno; 12132#endif 12133 if( status ) return status; 12134#else 12135 /* Draft 4 pthreads */ 12136 status = pthread_create( &t, pthread_attr_default, task, NULL ); 12137 if( status ) return errno; 12138 12139 /* give thread a chance to complete */ 12140 /* it should remain joinable and hence detachable */ 12141 sleep( 1 ); 12142 12143 status = pthread_detach( &t ); 12144 if( status ) return errno; 12145#endif 12146 12147#ifdef HAVE_LINUX_THREADS 12148 pthread_kill_other_threads_np(); 12149#endif 12150 12151 return 0; 12152 12153 ; 12154 return 0; 12155} 12156_ACEOF 12157if ac_fn_c_try_link "$LINENO"; then : 12158 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes 12159else 12160 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no 12161fi 12162rm -f core conftest.err conftest.$ac_objext \ 12163 conftest$ac_exeext conftest.$ac_ext 12164else 12165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12166/* end confdefs.h. */ 12167 12168 12169/* pthread test headers */ 12170#include <pthread.h> 12171#if HAVE_PTHREADS < 7 12172#include <errno.h> 12173#endif 12174#ifndef NULL 12175#define NULL (void*)0 12176#endif 12177 12178static void *task(p) 12179 void *p; 12180{ 12181 return (void *) (p == NULL); 12182} 12183 12184 12185int main(argc, argv) 12186 int argc; 12187 char **argv; 12188{ 12189 12190 /* pthread test function */ 12191#ifndef PTHREAD_CREATE_DETACHED 12192#define PTHREAD_CREATE_DETACHED 1 12193#endif 12194 pthread_t t; 12195 int status; 12196 int detach = PTHREAD_CREATE_DETACHED; 12197 12198#if HAVE_PTHREADS > 4 12199 /* Final pthreads */ 12200 pthread_attr_t attr; 12201 12202 status = pthread_attr_init(&attr); 12203 if( status ) return status; 12204 12205#if HAVE_PTHREADS < 7 12206 status = pthread_attr_setdetachstate(&attr, &detach); 12207 if( status < 0 ) status = errno; 12208#else 12209 status = pthread_attr_setdetachstate(&attr, detach); 12210#endif 12211 if( status ) return status; 12212 status = pthread_create( &t, &attr, task, NULL ); 12213#if HAVE_PTHREADS < 7 12214 if( status < 0 ) status = errno; 12215#endif 12216 if( status ) return status; 12217#else 12218 /* Draft 4 pthreads */ 12219 status = pthread_create( &t, pthread_attr_default, task, NULL ); 12220 if( status ) return errno; 12221 12222 /* give thread a chance to complete */ 12223 /* it should remain joinable and hence detachable */ 12224 sleep( 1 ); 12225 12226 status = pthread_detach( &t ); 12227 if( status ) return errno; 12228#endif 12229 12230#ifdef HAVE_LINUX_THREADS 12231 pthread_kill_other_threads_np(); 12232#endif 12233 12234 return 0; 12235 12236} 12237 12238_ACEOF 12239if ac_fn_c_try_run "$LINENO"; then : 12240 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes 12241else 12242 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no 12243fi 12244rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12245 conftest.$ac_objext conftest.beam conftest.$ac_ext 12246fi 12247 12248 12249 # restore the LIBS 12250 LIBS="$ol_LIBS" 12251 12252fi 12253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&5 12254$as_echo "$ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&6; } 12255 12256 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then 12257 ol_link_pthreads="-lpthread -lmach -lexc -lc_r" 12258 ol_link_threads=posix 12259 fi 12260fi 12261 12262 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc) 12263if test "$ol_link_threads" = no ; then 12264 # try -lpthread -lmach -lexc 12265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread -lmach -lexc" >&5 12266$as_echo_n "checking for pthread link with -lpthread -lmach -lexc... " >&6; } 12267if ${ol_cv_pthread_lpthread_lmach_lexc+:} false; then : 12268 $as_echo_n "(cached) " >&6 12269else 12270 12271 # save the flags 12272 ol_LIBS="$LIBS" 12273 LIBS="-lpthread -lmach -lexc $LIBS" 12274 12275 if test "$cross_compiling" = yes; then : 12276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12277/* end confdefs.h. */ 12278 12279/* pthread test headers */ 12280#include <pthread.h> 12281#if HAVE_PTHREADS < 7 12282#include <errno.h> 12283#endif 12284#ifndef NULL 12285#define NULL (void*)0 12286#endif 12287 12288static void *task(p) 12289 void *p; 12290{ 12291 return (void *) (p == NULL); 12292} 12293 12294int 12295main () 12296{ 12297 12298 /* pthread test function */ 12299#ifndef PTHREAD_CREATE_DETACHED 12300#define PTHREAD_CREATE_DETACHED 1 12301#endif 12302 pthread_t t; 12303 int status; 12304 int detach = PTHREAD_CREATE_DETACHED; 12305 12306#if HAVE_PTHREADS > 4 12307 /* Final pthreads */ 12308 pthread_attr_t attr; 12309 12310 status = pthread_attr_init(&attr); 12311 if( status ) return status; 12312 12313#if HAVE_PTHREADS < 7 12314 status = pthread_attr_setdetachstate(&attr, &detach); 12315 if( status < 0 ) status = errno; 12316#else 12317 status = pthread_attr_setdetachstate(&attr, detach); 12318#endif 12319 if( status ) return status; 12320 status = pthread_create( &t, &attr, task, NULL ); 12321#if HAVE_PTHREADS < 7 12322 if( status < 0 ) status = errno; 12323#endif 12324 if( status ) return status; 12325#else 12326 /* Draft 4 pthreads */ 12327 status = pthread_create( &t, pthread_attr_default, task, NULL ); 12328 if( status ) return errno; 12329 12330 /* give thread a chance to complete */ 12331 /* it should remain joinable and hence detachable */ 12332 sleep( 1 ); 12333 12334 status = pthread_detach( &t ); 12335 if( status ) return errno; 12336#endif 12337 12338#ifdef HAVE_LINUX_THREADS 12339 pthread_kill_other_threads_np(); 12340#endif 12341 12342 return 0; 12343 12344 ; 12345 return 0; 12346} 12347_ACEOF 12348if ac_fn_c_try_link "$LINENO"; then : 12349 ol_cv_pthread_lpthread_lmach_lexc=yes 12350else 12351 ol_cv_pthread_lpthread_lmach_lexc=no 12352fi 12353rm -f core conftest.err conftest.$ac_objext \ 12354 conftest$ac_exeext conftest.$ac_ext 12355else 12356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12357/* end confdefs.h. */ 12358 12359 12360/* pthread test headers */ 12361#include <pthread.h> 12362#if HAVE_PTHREADS < 7 12363#include <errno.h> 12364#endif 12365#ifndef NULL 12366#define NULL (void*)0 12367#endif 12368 12369static void *task(p) 12370 void *p; 12371{ 12372 return (void *) (p == NULL); 12373} 12374 12375 12376int main(argc, argv) 12377 int argc; 12378 char **argv; 12379{ 12380 12381 /* pthread test function */ 12382#ifndef PTHREAD_CREATE_DETACHED 12383#define PTHREAD_CREATE_DETACHED 1 12384#endif 12385 pthread_t t; 12386 int status; 12387 int detach = PTHREAD_CREATE_DETACHED; 12388 12389#if HAVE_PTHREADS > 4 12390 /* Final pthreads */ 12391 pthread_attr_t attr; 12392 12393 status = pthread_attr_init(&attr); 12394 if( status ) return status; 12395 12396#if HAVE_PTHREADS < 7 12397 status = pthread_attr_setdetachstate(&attr, &detach); 12398 if( status < 0 ) status = errno; 12399#else 12400 status = pthread_attr_setdetachstate(&attr, detach); 12401#endif 12402 if( status ) return status; 12403 status = pthread_create( &t, &attr, task, NULL ); 12404#if HAVE_PTHREADS < 7 12405 if( status < 0 ) status = errno; 12406#endif 12407 if( status ) return status; 12408#else 12409 /* Draft 4 pthreads */ 12410 status = pthread_create( &t, pthread_attr_default, task, NULL ); 12411 if( status ) return errno; 12412 12413 /* give thread a chance to complete */ 12414 /* it should remain joinable and hence detachable */ 12415 sleep( 1 ); 12416 12417 status = pthread_detach( &t ); 12418 if( status ) return errno; 12419#endif 12420 12421#ifdef HAVE_LINUX_THREADS 12422 pthread_kill_other_threads_np(); 12423#endif 12424 12425 return 0; 12426 12427} 12428 12429_ACEOF 12430if ac_fn_c_try_run "$LINENO"; then : 12431 ol_cv_pthread_lpthread_lmach_lexc=yes 12432else 12433 ol_cv_pthread_lpthread_lmach_lexc=no 12434fi 12435rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12436 conftest.$ac_objext conftest.beam conftest.$ac_ext 12437fi 12438 12439 12440 # restore the LIBS 12441 LIBS="$ol_LIBS" 12442 12443fi 12444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthread_lmach_lexc" >&5 12445$as_echo "$ol_cv_pthread_lpthread_lmach_lexc" >&6; } 12446 12447 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then 12448 ol_link_pthreads="-lpthread -lmach -lexc" 12449 ol_link_threads=posix 12450 fi 12451fi 12452 12453 12454 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff) 12455if test "$ol_link_threads" = no ; then 12456 # try -lpthread -Wl,-woff,85 12457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread -Wl,-woff,85" >&5 12458$as_echo_n "checking for pthread link with -lpthread -Wl,-woff,85... " >&6; } 12459if ${ol_cv_pthread_lib_lpthread_woff+:} false; then : 12460 $as_echo_n "(cached) " >&6 12461else 12462 12463 # save the flags 12464 ol_LIBS="$LIBS" 12465 LIBS="-lpthread -Wl,-woff,85 $LIBS" 12466 12467 if test "$cross_compiling" = yes; then : 12468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12469/* end confdefs.h. */ 12470 12471/* pthread test headers */ 12472#include <pthread.h> 12473#if HAVE_PTHREADS < 7 12474#include <errno.h> 12475#endif 12476#ifndef NULL 12477#define NULL (void*)0 12478#endif 12479 12480static void *task(p) 12481 void *p; 12482{ 12483 return (void *) (p == NULL); 12484} 12485 12486int 12487main () 12488{ 12489 12490 /* pthread test function */ 12491#ifndef PTHREAD_CREATE_DETACHED 12492#define PTHREAD_CREATE_DETACHED 1 12493#endif 12494 pthread_t t; 12495 int status; 12496 int detach = PTHREAD_CREATE_DETACHED; 12497 12498#if HAVE_PTHREADS > 4 12499 /* Final pthreads */ 12500 pthread_attr_t attr; 12501 12502 status = pthread_attr_init(&attr); 12503 if( status ) return status; 12504 12505#if HAVE_PTHREADS < 7 12506 status = pthread_attr_setdetachstate(&attr, &detach); 12507 if( status < 0 ) status = errno; 12508#else 12509 status = pthread_attr_setdetachstate(&attr, detach); 12510#endif 12511 if( status ) return status; 12512 status = pthread_create( &t, &attr, task, NULL ); 12513#if HAVE_PTHREADS < 7 12514 if( status < 0 ) status = errno; 12515#endif 12516 if( status ) return status; 12517#else 12518 /* Draft 4 pthreads */ 12519 status = pthread_create( &t, pthread_attr_default, task, NULL ); 12520 if( status ) return errno; 12521 12522 /* give thread a chance to complete */ 12523 /* it should remain joinable and hence detachable */ 12524 sleep( 1 ); 12525 12526 status = pthread_detach( &t ); 12527 if( status ) return errno; 12528#endif 12529 12530#ifdef HAVE_LINUX_THREADS 12531 pthread_kill_other_threads_np(); 12532#endif 12533 12534 return 0; 12535 12536 ; 12537 return 0; 12538} 12539_ACEOF 12540if ac_fn_c_try_link "$LINENO"; then : 12541 ol_cv_pthread_lib_lpthread_woff=yes 12542else 12543 ol_cv_pthread_lib_lpthread_woff=no 12544fi 12545rm -f core conftest.err conftest.$ac_objext \ 12546 conftest$ac_exeext conftest.$ac_ext 12547else 12548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12549/* end confdefs.h. */ 12550 12551 12552/* pthread test headers */ 12553#include <pthread.h> 12554#if HAVE_PTHREADS < 7 12555#include <errno.h> 12556#endif 12557#ifndef NULL 12558#define NULL (void*)0 12559#endif 12560 12561static void *task(p) 12562 void *p; 12563{ 12564 return (void *) (p == NULL); 12565} 12566 12567 12568int main(argc, argv) 12569 int argc; 12570 char **argv; 12571{ 12572 12573 /* pthread test function */ 12574#ifndef PTHREAD_CREATE_DETACHED 12575#define PTHREAD_CREATE_DETACHED 1 12576#endif 12577 pthread_t t; 12578 int status; 12579 int detach = PTHREAD_CREATE_DETACHED; 12580 12581#if HAVE_PTHREADS > 4 12582 /* Final pthreads */ 12583 pthread_attr_t attr; 12584 12585 status = pthread_attr_init(&attr); 12586 if( status ) return status; 12587 12588#if HAVE_PTHREADS < 7 12589 status = pthread_attr_setdetachstate(&attr, &detach); 12590 if( status < 0 ) status = errno; 12591#else 12592 status = pthread_attr_setdetachstate(&attr, detach); 12593#endif 12594 if( status ) return status; 12595 status = pthread_create( &t, &attr, task, NULL ); 12596#if HAVE_PTHREADS < 7 12597 if( status < 0 ) status = errno; 12598#endif 12599 if( status ) return status; 12600#else 12601 /* Draft 4 pthreads */ 12602 status = pthread_create( &t, pthread_attr_default, task, NULL ); 12603 if( status ) return errno; 12604 12605 /* give thread a chance to complete */ 12606 /* it should remain joinable and hence detachable */ 12607 sleep( 1 ); 12608 12609 status = pthread_detach( &t ); 12610 if( status ) return errno; 12611#endif 12612 12613#ifdef HAVE_LINUX_THREADS 12614 pthread_kill_other_threads_np(); 12615#endif 12616 12617 return 0; 12618 12619} 12620 12621_ACEOF 12622if ac_fn_c_try_run "$LINENO"; then : 12623 ol_cv_pthread_lib_lpthread_woff=yes 12624else 12625 ol_cv_pthread_lib_lpthread_woff=no 12626fi 12627rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12628 conftest.$ac_objext conftest.beam conftest.$ac_ext 12629fi 12630 12631 12632 # restore the LIBS 12633 LIBS="$ol_LIBS" 12634 12635fi 12636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lib_lpthread_woff" >&5 12637$as_echo "$ol_cv_pthread_lib_lpthread_woff" >&6; } 12638 12639 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then 12640 ol_link_pthreads="-lpthread -Wl,-woff,85" 12641 ol_link_threads=posix 12642 fi 12643fi 12644 12645 12646 # Pthread try link: -lpthread (ol_cv_pthread_lpthread) 12647if test "$ol_link_threads" = no ; then 12648 # try -lpthread 12649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread" >&5 12650$as_echo_n "checking for pthread link with -lpthread... " >&6; } 12651if ${ol_cv_pthread_lpthread+:} false; then : 12652 $as_echo_n "(cached) " >&6 12653else 12654 12655 # save the flags 12656 ol_LIBS="$LIBS" 12657 LIBS="-lpthread $LIBS" 12658 12659 if test "$cross_compiling" = yes; then : 12660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12661/* end confdefs.h. */ 12662 12663/* pthread test headers */ 12664#include <pthread.h> 12665#if HAVE_PTHREADS < 7 12666#include <errno.h> 12667#endif 12668#ifndef NULL 12669#define NULL (void*)0 12670#endif 12671 12672static void *task(p) 12673 void *p; 12674{ 12675 return (void *) (p == NULL); 12676} 12677 12678int 12679main () 12680{ 12681 12682 /* pthread test function */ 12683#ifndef PTHREAD_CREATE_DETACHED 12684#define PTHREAD_CREATE_DETACHED 1 12685#endif 12686 pthread_t t; 12687 int status; 12688 int detach = PTHREAD_CREATE_DETACHED; 12689 12690#if HAVE_PTHREADS > 4 12691 /* Final pthreads */ 12692 pthread_attr_t attr; 12693 12694 status = pthread_attr_init(&attr); 12695 if( status ) return status; 12696 12697#if HAVE_PTHREADS < 7 12698 status = pthread_attr_setdetachstate(&attr, &detach); 12699 if( status < 0 ) status = errno; 12700#else 12701 status = pthread_attr_setdetachstate(&attr, detach); 12702#endif 12703 if( status ) return status; 12704 status = pthread_create( &t, &attr, task, NULL ); 12705#if HAVE_PTHREADS < 7 12706 if( status < 0 ) status = errno; 12707#endif 12708 if( status ) return status; 12709#else 12710 /* Draft 4 pthreads */ 12711 status = pthread_create( &t, pthread_attr_default, task, NULL ); 12712 if( status ) return errno; 12713 12714 /* give thread a chance to complete */ 12715 /* it should remain joinable and hence detachable */ 12716 sleep( 1 ); 12717 12718 status = pthread_detach( &t ); 12719 if( status ) return errno; 12720#endif 12721 12722#ifdef HAVE_LINUX_THREADS 12723 pthread_kill_other_threads_np(); 12724#endif 12725 12726 return 0; 12727 12728 ; 12729 return 0; 12730} 12731_ACEOF 12732if ac_fn_c_try_link "$LINENO"; then : 12733 ol_cv_pthread_lpthread=yes 12734else 12735 ol_cv_pthread_lpthread=no 12736fi 12737rm -f core conftest.err conftest.$ac_objext \ 12738 conftest$ac_exeext conftest.$ac_ext 12739else 12740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12741/* end confdefs.h. */ 12742 12743 12744/* pthread test headers */ 12745#include <pthread.h> 12746#if HAVE_PTHREADS < 7 12747#include <errno.h> 12748#endif 12749#ifndef NULL 12750#define NULL (void*)0 12751#endif 12752 12753static void *task(p) 12754 void *p; 12755{ 12756 return (void *) (p == NULL); 12757} 12758 12759 12760int main(argc, argv) 12761 int argc; 12762 char **argv; 12763{ 12764 12765 /* pthread test function */ 12766#ifndef PTHREAD_CREATE_DETACHED 12767#define PTHREAD_CREATE_DETACHED 1 12768#endif 12769 pthread_t t; 12770 int status; 12771 int detach = PTHREAD_CREATE_DETACHED; 12772 12773#if HAVE_PTHREADS > 4 12774 /* Final pthreads */ 12775 pthread_attr_t attr; 12776 12777 status = pthread_attr_init(&attr); 12778 if( status ) return status; 12779 12780#if HAVE_PTHREADS < 7 12781 status = pthread_attr_setdetachstate(&attr, &detach); 12782 if( status < 0 ) status = errno; 12783#else 12784 status = pthread_attr_setdetachstate(&attr, detach); 12785#endif 12786 if( status ) return status; 12787 status = pthread_create( &t, &attr, task, NULL ); 12788#if HAVE_PTHREADS < 7 12789 if( status < 0 ) status = errno; 12790#endif 12791 if( status ) return status; 12792#else 12793 /* Draft 4 pthreads */ 12794 status = pthread_create( &t, pthread_attr_default, task, NULL ); 12795 if( status ) return errno; 12796 12797 /* give thread a chance to complete */ 12798 /* it should remain joinable and hence detachable */ 12799 sleep( 1 ); 12800 12801 status = pthread_detach( &t ); 12802 if( status ) return errno; 12803#endif 12804 12805#ifdef HAVE_LINUX_THREADS 12806 pthread_kill_other_threads_np(); 12807#endif 12808 12809 return 0; 12810 12811} 12812 12813_ACEOF 12814if ac_fn_c_try_run "$LINENO"; then : 12815 ol_cv_pthread_lpthread=yes 12816else 12817 ol_cv_pthread_lpthread=no 12818fi 12819rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12820 conftest.$ac_objext conftest.beam conftest.$ac_ext 12821fi 12822 12823 12824 # restore the LIBS 12825 LIBS="$ol_LIBS" 12826 12827fi 12828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthread" >&5 12829$as_echo "$ol_cv_pthread_lpthread" >&6; } 12830 12831 if test $ol_cv_pthread_lpthread = yes ; then 12832 ol_link_pthreads="-lpthread" 12833 ol_link_threads=posix 12834 fi 12835fi 12836 12837 # Pthread try link: -lc_r (ol_cv_pthread_lc_r) 12838if test "$ol_link_threads" = no ; then 12839 # try -lc_r 12840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lc_r" >&5 12841$as_echo_n "checking for pthread link with -lc_r... " >&6; } 12842if ${ol_cv_pthread_lc_r+:} false; then : 12843 $as_echo_n "(cached) " >&6 12844else 12845 12846 # save the flags 12847 ol_LIBS="$LIBS" 12848 LIBS="-lc_r $LIBS" 12849 12850 if test "$cross_compiling" = yes; then : 12851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12852/* end confdefs.h. */ 12853 12854/* pthread test headers */ 12855#include <pthread.h> 12856#if HAVE_PTHREADS < 7 12857#include <errno.h> 12858#endif 12859#ifndef NULL 12860#define NULL (void*)0 12861#endif 12862 12863static void *task(p) 12864 void *p; 12865{ 12866 return (void *) (p == NULL); 12867} 12868 12869int 12870main () 12871{ 12872 12873 /* pthread test function */ 12874#ifndef PTHREAD_CREATE_DETACHED 12875#define PTHREAD_CREATE_DETACHED 1 12876#endif 12877 pthread_t t; 12878 int status; 12879 int detach = PTHREAD_CREATE_DETACHED; 12880 12881#if HAVE_PTHREADS > 4 12882 /* Final pthreads */ 12883 pthread_attr_t attr; 12884 12885 status = pthread_attr_init(&attr); 12886 if( status ) return status; 12887 12888#if HAVE_PTHREADS < 7 12889 status = pthread_attr_setdetachstate(&attr, &detach); 12890 if( status < 0 ) status = errno; 12891#else 12892 status = pthread_attr_setdetachstate(&attr, detach); 12893#endif 12894 if( status ) return status; 12895 status = pthread_create( &t, &attr, task, NULL ); 12896#if HAVE_PTHREADS < 7 12897 if( status < 0 ) status = errno; 12898#endif 12899 if( status ) return status; 12900#else 12901 /* Draft 4 pthreads */ 12902 status = pthread_create( &t, pthread_attr_default, task, NULL ); 12903 if( status ) return errno; 12904 12905 /* give thread a chance to complete */ 12906 /* it should remain joinable and hence detachable */ 12907 sleep( 1 ); 12908 12909 status = pthread_detach( &t ); 12910 if( status ) return errno; 12911#endif 12912 12913#ifdef HAVE_LINUX_THREADS 12914 pthread_kill_other_threads_np(); 12915#endif 12916 12917 return 0; 12918 12919 ; 12920 return 0; 12921} 12922_ACEOF 12923if ac_fn_c_try_link "$LINENO"; then : 12924 ol_cv_pthread_lc_r=yes 12925else 12926 ol_cv_pthread_lc_r=no 12927fi 12928rm -f core conftest.err conftest.$ac_objext \ 12929 conftest$ac_exeext conftest.$ac_ext 12930else 12931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12932/* end confdefs.h. */ 12933 12934 12935/* pthread test headers */ 12936#include <pthread.h> 12937#if HAVE_PTHREADS < 7 12938#include <errno.h> 12939#endif 12940#ifndef NULL 12941#define NULL (void*)0 12942#endif 12943 12944static void *task(p) 12945 void *p; 12946{ 12947 return (void *) (p == NULL); 12948} 12949 12950 12951int main(argc, argv) 12952 int argc; 12953 char **argv; 12954{ 12955 12956 /* pthread test function */ 12957#ifndef PTHREAD_CREATE_DETACHED 12958#define PTHREAD_CREATE_DETACHED 1 12959#endif 12960 pthread_t t; 12961 int status; 12962 int detach = PTHREAD_CREATE_DETACHED; 12963 12964#if HAVE_PTHREADS > 4 12965 /* Final pthreads */ 12966 pthread_attr_t attr; 12967 12968 status = pthread_attr_init(&attr); 12969 if( status ) return status; 12970 12971#if HAVE_PTHREADS < 7 12972 status = pthread_attr_setdetachstate(&attr, &detach); 12973 if( status < 0 ) status = errno; 12974#else 12975 status = pthread_attr_setdetachstate(&attr, detach); 12976#endif 12977 if( status ) return status; 12978 status = pthread_create( &t, &attr, task, NULL ); 12979#if HAVE_PTHREADS < 7 12980 if( status < 0 ) status = errno; 12981#endif 12982 if( status ) return status; 12983#else 12984 /* Draft 4 pthreads */ 12985 status = pthread_create( &t, pthread_attr_default, task, NULL ); 12986 if( status ) return errno; 12987 12988 /* give thread a chance to complete */ 12989 /* it should remain joinable and hence detachable */ 12990 sleep( 1 ); 12991 12992 status = pthread_detach( &t ); 12993 if( status ) return errno; 12994#endif 12995 12996#ifdef HAVE_LINUX_THREADS 12997 pthread_kill_other_threads_np(); 12998#endif 12999 13000 return 0; 13001 13002} 13003 13004_ACEOF 13005if ac_fn_c_try_run "$LINENO"; then : 13006 ol_cv_pthread_lc_r=yes 13007else 13008 ol_cv_pthread_lc_r=no 13009fi 13010rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13011 conftest.$ac_objext conftest.beam conftest.$ac_ext 13012fi 13013 13014 13015 # restore the LIBS 13016 LIBS="$ol_LIBS" 13017 13018fi 13019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lc_r" >&5 13020$as_echo "$ol_cv_pthread_lc_r" >&6; } 13021 13022 if test $ol_cv_pthread_lc_r = yes ; then 13023 ol_link_pthreads="-lc_r" 13024 ol_link_threads=posix 13025 fi 13026fi 13027 13028 13029 # Pthread try link: -threads (ol_cv_pthread_threads) 13030if test "$ol_link_threads" = no ; then 13031 # try -threads 13032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -threads" >&5 13033$as_echo_n "checking for pthread link with -threads... " >&6; } 13034if ${ol_cv_pthread_threads+:} false; then : 13035 $as_echo_n "(cached) " >&6 13036else 13037 13038 # save the flags 13039 ol_LIBS="$LIBS" 13040 LIBS="-threads $LIBS" 13041 13042 if test "$cross_compiling" = yes; then : 13043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13044/* end confdefs.h. */ 13045 13046/* pthread test headers */ 13047#include <pthread.h> 13048#if HAVE_PTHREADS < 7 13049#include <errno.h> 13050#endif 13051#ifndef NULL 13052#define NULL (void*)0 13053#endif 13054 13055static void *task(p) 13056 void *p; 13057{ 13058 return (void *) (p == NULL); 13059} 13060 13061int 13062main () 13063{ 13064 13065 /* pthread test function */ 13066#ifndef PTHREAD_CREATE_DETACHED 13067#define PTHREAD_CREATE_DETACHED 1 13068#endif 13069 pthread_t t; 13070 int status; 13071 int detach = PTHREAD_CREATE_DETACHED; 13072 13073#if HAVE_PTHREADS > 4 13074 /* Final pthreads */ 13075 pthread_attr_t attr; 13076 13077 status = pthread_attr_init(&attr); 13078 if( status ) return status; 13079 13080#if HAVE_PTHREADS < 7 13081 status = pthread_attr_setdetachstate(&attr, &detach); 13082 if( status < 0 ) status = errno; 13083#else 13084 status = pthread_attr_setdetachstate(&attr, detach); 13085#endif 13086 if( status ) return status; 13087 status = pthread_create( &t, &attr, task, NULL ); 13088#if HAVE_PTHREADS < 7 13089 if( status < 0 ) status = errno; 13090#endif 13091 if( status ) return status; 13092#else 13093 /* Draft 4 pthreads */ 13094 status = pthread_create( &t, pthread_attr_default, task, NULL ); 13095 if( status ) return errno; 13096 13097 /* give thread a chance to complete */ 13098 /* it should remain joinable and hence detachable */ 13099 sleep( 1 ); 13100 13101 status = pthread_detach( &t ); 13102 if( status ) return errno; 13103#endif 13104 13105#ifdef HAVE_LINUX_THREADS 13106 pthread_kill_other_threads_np(); 13107#endif 13108 13109 return 0; 13110 13111 ; 13112 return 0; 13113} 13114_ACEOF 13115if ac_fn_c_try_link "$LINENO"; then : 13116 ol_cv_pthread_threads=yes 13117else 13118 ol_cv_pthread_threads=no 13119fi 13120rm -f core conftest.err conftest.$ac_objext \ 13121 conftest$ac_exeext conftest.$ac_ext 13122else 13123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13124/* end confdefs.h. */ 13125 13126 13127/* pthread test headers */ 13128#include <pthread.h> 13129#if HAVE_PTHREADS < 7 13130#include <errno.h> 13131#endif 13132#ifndef NULL 13133#define NULL (void*)0 13134#endif 13135 13136static void *task(p) 13137 void *p; 13138{ 13139 return (void *) (p == NULL); 13140} 13141 13142 13143int main(argc, argv) 13144 int argc; 13145 char **argv; 13146{ 13147 13148 /* pthread test function */ 13149#ifndef PTHREAD_CREATE_DETACHED 13150#define PTHREAD_CREATE_DETACHED 1 13151#endif 13152 pthread_t t; 13153 int status; 13154 int detach = PTHREAD_CREATE_DETACHED; 13155 13156#if HAVE_PTHREADS > 4 13157 /* Final pthreads */ 13158 pthread_attr_t attr; 13159 13160 status = pthread_attr_init(&attr); 13161 if( status ) return status; 13162 13163#if HAVE_PTHREADS < 7 13164 status = pthread_attr_setdetachstate(&attr, &detach); 13165 if( status < 0 ) status = errno; 13166#else 13167 status = pthread_attr_setdetachstate(&attr, detach); 13168#endif 13169 if( status ) return status; 13170 status = pthread_create( &t, &attr, task, NULL ); 13171#if HAVE_PTHREADS < 7 13172 if( status < 0 ) status = errno; 13173#endif 13174 if( status ) return status; 13175#else 13176 /* Draft 4 pthreads */ 13177 status = pthread_create( &t, pthread_attr_default, task, NULL ); 13178 if( status ) return errno; 13179 13180 /* give thread a chance to complete */ 13181 /* it should remain joinable and hence detachable */ 13182 sleep( 1 ); 13183 13184 status = pthread_detach( &t ); 13185 if( status ) return errno; 13186#endif 13187 13188#ifdef HAVE_LINUX_THREADS 13189 pthread_kill_other_threads_np(); 13190#endif 13191 13192 return 0; 13193 13194} 13195 13196_ACEOF 13197if ac_fn_c_try_run "$LINENO"; then : 13198 ol_cv_pthread_threads=yes 13199else 13200 ol_cv_pthread_threads=no 13201fi 13202rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13203 conftest.$ac_objext conftest.beam conftest.$ac_ext 13204fi 13205 13206 13207 # restore the LIBS 13208 LIBS="$ol_LIBS" 13209 13210fi 13211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_threads" >&5 13212$as_echo "$ol_cv_pthread_threads" >&6; } 13213 13214 if test $ol_cv_pthread_threads = yes ; then 13215 ol_link_pthreads="-threads" 13216 ol_link_threads=posix 13217 fi 13218fi 13219 13220 13221 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r) 13222if test "$ol_link_threads" = no ; then 13223 # try -lpthreads -lmach -lexc -lc_r 13224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5 13225$as_echo_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r... " >&6; } 13226if ${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+:} false; then : 13227 $as_echo_n "(cached) " >&6 13228else 13229 13230 # save the flags 13231 ol_LIBS="$LIBS" 13232 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS" 13233 13234 if test "$cross_compiling" = yes; then : 13235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13236/* end confdefs.h. */ 13237 13238/* pthread test headers */ 13239#include <pthread.h> 13240#if HAVE_PTHREADS < 7 13241#include <errno.h> 13242#endif 13243#ifndef NULL 13244#define NULL (void*)0 13245#endif 13246 13247static void *task(p) 13248 void *p; 13249{ 13250 return (void *) (p == NULL); 13251} 13252 13253int 13254main () 13255{ 13256 13257 /* pthread test function */ 13258#ifndef PTHREAD_CREATE_DETACHED 13259#define PTHREAD_CREATE_DETACHED 1 13260#endif 13261 pthread_t t; 13262 int status; 13263 int detach = PTHREAD_CREATE_DETACHED; 13264 13265#if HAVE_PTHREADS > 4 13266 /* Final pthreads */ 13267 pthread_attr_t attr; 13268 13269 status = pthread_attr_init(&attr); 13270 if( status ) return status; 13271 13272#if HAVE_PTHREADS < 7 13273 status = pthread_attr_setdetachstate(&attr, &detach); 13274 if( status < 0 ) status = errno; 13275#else 13276 status = pthread_attr_setdetachstate(&attr, detach); 13277#endif 13278 if( status ) return status; 13279 status = pthread_create( &t, &attr, task, NULL ); 13280#if HAVE_PTHREADS < 7 13281 if( status < 0 ) status = errno; 13282#endif 13283 if( status ) return status; 13284#else 13285 /* Draft 4 pthreads */ 13286 status = pthread_create( &t, pthread_attr_default, task, NULL ); 13287 if( status ) return errno; 13288 13289 /* give thread a chance to complete */ 13290 /* it should remain joinable and hence detachable */ 13291 sleep( 1 ); 13292 13293 status = pthread_detach( &t ); 13294 if( status ) return errno; 13295#endif 13296 13297#ifdef HAVE_LINUX_THREADS 13298 pthread_kill_other_threads_np(); 13299#endif 13300 13301 return 0; 13302 13303 ; 13304 return 0; 13305} 13306_ACEOF 13307if ac_fn_c_try_link "$LINENO"; then : 13308 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes 13309else 13310 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no 13311fi 13312rm -f core conftest.err conftest.$ac_objext \ 13313 conftest$ac_exeext conftest.$ac_ext 13314else 13315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13316/* end confdefs.h. */ 13317 13318 13319/* pthread test headers */ 13320#include <pthread.h> 13321#if HAVE_PTHREADS < 7 13322#include <errno.h> 13323#endif 13324#ifndef NULL 13325#define NULL (void*)0 13326#endif 13327 13328static void *task(p) 13329 void *p; 13330{ 13331 return (void *) (p == NULL); 13332} 13333 13334 13335int main(argc, argv) 13336 int argc; 13337 char **argv; 13338{ 13339 13340 /* pthread test function */ 13341#ifndef PTHREAD_CREATE_DETACHED 13342#define PTHREAD_CREATE_DETACHED 1 13343#endif 13344 pthread_t t; 13345 int status; 13346 int detach = PTHREAD_CREATE_DETACHED; 13347 13348#if HAVE_PTHREADS > 4 13349 /* Final pthreads */ 13350 pthread_attr_t attr; 13351 13352 status = pthread_attr_init(&attr); 13353 if( status ) return status; 13354 13355#if HAVE_PTHREADS < 7 13356 status = pthread_attr_setdetachstate(&attr, &detach); 13357 if( status < 0 ) status = errno; 13358#else 13359 status = pthread_attr_setdetachstate(&attr, detach); 13360#endif 13361 if( status ) return status; 13362 status = pthread_create( &t, &attr, task, NULL ); 13363#if HAVE_PTHREADS < 7 13364 if( status < 0 ) status = errno; 13365#endif 13366 if( status ) return status; 13367#else 13368 /* Draft 4 pthreads */ 13369 status = pthread_create( &t, pthread_attr_default, task, NULL ); 13370 if( status ) return errno; 13371 13372 /* give thread a chance to complete */ 13373 /* it should remain joinable and hence detachable */ 13374 sleep( 1 ); 13375 13376 status = pthread_detach( &t ); 13377 if( status ) return errno; 13378#endif 13379 13380#ifdef HAVE_LINUX_THREADS 13381 pthread_kill_other_threads_np(); 13382#endif 13383 13384 return 0; 13385 13386} 13387 13388_ACEOF 13389if ac_fn_c_try_run "$LINENO"; then : 13390 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes 13391else 13392 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no 13393fi 13394rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13395 conftest.$ac_objext conftest.beam conftest.$ac_ext 13396fi 13397 13398 13399 # restore the LIBS 13400 LIBS="$ol_LIBS" 13401 13402fi 13403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&5 13404$as_echo "$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&6; } 13405 13406 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then 13407 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r" 13408 ol_link_threads=posix 13409 fi 13410fi 13411 13412 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc) 13413if test "$ol_link_threads" = no ; then 13414 # try -lpthreads -lmach -lexc 13415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads -lmach -lexc" >&5 13416$as_echo_n "checking for pthread link with -lpthreads -lmach -lexc... " >&6; } 13417if ${ol_cv_pthread_lpthreads_lmach_lexc+:} false; then : 13418 $as_echo_n "(cached) " >&6 13419else 13420 13421 # save the flags 13422 ol_LIBS="$LIBS" 13423 LIBS="-lpthreads -lmach -lexc $LIBS" 13424 13425 if test "$cross_compiling" = yes; then : 13426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13427/* end confdefs.h. */ 13428 13429/* pthread test headers */ 13430#include <pthread.h> 13431#if HAVE_PTHREADS < 7 13432#include <errno.h> 13433#endif 13434#ifndef NULL 13435#define NULL (void*)0 13436#endif 13437 13438static void *task(p) 13439 void *p; 13440{ 13441 return (void *) (p == NULL); 13442} 13443 13444int 13445main () 13446{ 13447 13448 /* pthread test function */ 13449#ifndef PTHREAD_CREATE_DETACHED 13450#define PTHREAD_CREATE_DETACHED 1 13451#endif 13452 pthread_t t; 13453 int status; 13454 int detach = PTHREAD_CREATE_DETACHED; 13455 13456#if HAVE_PTHREADS > 4 13457 /* Final pthreads */ 13458 pthread_attr_t attr; 13459 13460 status = pthread_attr_init(&attr); 13461 if( status ) return status; 13462 13463#if HAVE_PTHREADS < 7 13464 status = pthread_attr_setdetachstate(&attr, &detach); 13465 if( status < 0 ) status = errno; 13466#else 13467 status = pthread_attr_setdetachstate(&attr, detach); 13468#endif 13469 if( status ) return status; 13470 status = pthread_create( &t, &attr, task, NULL ); 13471#if HAVE_PTHREADS < 7 13472 if( status < 0 ) status = errno; 13473#endif 13474 if( status ) return status; 13475#else 13476 /* Draft 4 pthreads */ 13477 status = pthread_create( &t, pthread_attr_default, task, NULL ); 13478 if( status ) return errno; 13479 13480 /* give thread a chance to complete */ 13481 /* it should remain joinable and hence detachable */ 13482 sleep( 1 ); 13483 13484 status = pthread_detach( &t ); 13485 if( status ) return errno; 13486#endif 13487 13488#ifdef HAVE_LINUX_THREADS 13489 pthread_kill_other_threads_np(); 13490#endif 13491 13492 return 0; 13493 13494 ; 13495 return 0; 13496} 13497_ACEOF 13498if ac_fn_c_try_link "$LINENO"; then : 13499 ol_cv_pthread_lpthreads_lmach_lexc=yes 13500else 13501 ol_cv_pthread_lpthreads_lmach_lexc=no 13502fi 13503rm -f core conftest.err conftest.$ac_objext \ 13504 conftest$ac_exeext conftest.$ac_ext 13505else 13506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13507/* end confdefs.h. */ 13508 13509 13510/* pthread test headers */ 13511#include <pthread.h> 13512#if HAVE_PTHREADS < 7 13513#include <errno.h> 13514#endif 13515#ifndef NULL 13516#define NULL (void*)0 13517#endif 13518 13519static void *task(p) 13520 void *p; 13521{ 13522 return (void *) (p == NULL); 13523} 13524 13525 13526int main(argc, argv) 13527 int argc; 13528 char **argv; 13529{ 13530 13531 /* pthread test function */ 13532#ifndef PTHREAD_CREATE_DETACHED 13533#define PTHREAD_CREATE_DETACHED 1 13534#endif 13535 pthread_t t; 13536 int status; 13537 int detach = PTHREAD_CREATE_DETACHED; 13538 13539#if HAVE_PTHREADS > 4 13540 /* Final pthreads */ 13541 pthread_attr_t attr; 13542 13543 status = pthread_attr_init(&attr); 13544 if( status ) return status; 13545 13546#if HAVE_PTHREADS < 7 13547 status = pthread_attr_setdetachstate(&attr, &detach); 13548 if( status < 0 ) status = errno; 13549#else 13550 status = pthread_attr_setdetachstate(&attr, detach); 13551#endif 13552 if( status ) return status; 13553 status = pthread_create( &t, &attr, task, NULL ); 13554#if HAVE_PTHREADS < 7 13555 if( status < 0 ) status = errno; 13556#endif 13557 if( status ) return status; 13558#else 13559 /* Draft 4 pthreads */ 13560 status = pthread_create( &t, pthread_attr_default, task, NULL ); 13561 if( status ) return errno; 13562 13563 /* give thread a chance to complete */ 13564 /* it should remain joinable and hence detachable */ 13565 sleep( 1 ); 13566 13567 status = pthread_detach( &t ); 13568 if( status ) return errno; 13569#endif 13570 13571#ifdef HAVE_LINUX_THREADS 13572 pthread_kill_other_threads_np(); 13573#endif 13574 13575 return 0; 13576 13577} 13578 13579_ACEOF 13580if ac_fn_c_try_run "$LINENO"; then : 13581 ol_cv_pthread_lpthreads_lmach_lexc=yes 13582else 13583 ol_cv_pthread_lpthreads_lmach_lexc=no 13584fi 13585rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13586 conftest.$ac_objext conftest.beam conftest.$ac_ext 13587fi 13588 13589 13590 # restore the LIBS 13591 LIBS="$ol_LIBS" 13592 13593fi 13594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthreads_lmach_lexc" >&5 13595$as_echo "$ol_cv_pthread_lpthreads_lmach_lexc" >&6; } 13596 13597 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then 13598 ol_link_pthreads="-lpthreads -lmach -lexc" 13599 ol_link_threads=posix 13600 fi 13601fi 13602 13603 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc) 13604if test "$ol_link_threads" = no ; then 13605 # try -lpthreads -lexc 13606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads -lexc" >&5 13607$as_echo_n "checking for pthread link with -lpthreads -lexc... " >&6; } 13608if ${ol_cv_pthread_lpthreads_lexc+:} false; then : 13609 $as_echo_n "(cached) " >&6 13610else 13611 13612 # save the flags 13613 ol_LIBS="$LIBS" 13614 LIBS="-lpthreads -lexc $LIBS" 13615 13616 if test "$cross_compiling" = yes; then : 13617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13618/* end confdefs.h. */ 13619 13620/* pthread test headers */ 13621#include <pthread.h> 13622#if HAVE_PTHREADS < 7 13623#include <errno.h> 13624#endif 13625#ifndef NULL 13626#define NULL (void*)0 13627#endif 13628 13629static void *task(p) 13630 void *p; 13631{ 13632 return (void *) (p == NULL); 13633} 13634 13635int 13636main () 13637{ 13638 13639 /* pthread test function */ 13640#ifndef PTHREAD_CREATE_DETACHED 13641#define PTHREAD_CREATE_DETACHED 1 13642#endif 13643 pthread_t t; 13644 int status; 13645 int detach = PTHREAD_CREATE_DETACHED; 13646 13647#if HAVE_PTHREADS > 4 13648 /* Final pthreads */ 13649 pthread_attr_t attr; 13650 13651 status = pthread_attr_init(&attr); 13652 if( status ) return status; 13653 13654#if HAVE_PTHREADS < 7 13655 status = pthread_attr_setdetachstate(&attr, &detach); 13656 if( status < 0 ) status = errno; 13657#else 13658 status = pthread_attr_setdetachstate(&attr, detach); 13659#endif 13660 if( status ) return status; 13661 status = pthread_create( &t, &attr, task, NULL ); 13662#if HAVE_PTHREADS < 7 13663 if( status < 0 ) status = errno; 13664#endif 13665 if( status ) return status; 13666#else 13667 /* Draft 4 pthreads */ 13668 status = pthread_create( &t, pthread_attr_default, task, NULL ); 13669 if( status ) return errno; 13670 13671 /* give thread a chance to complete */ 13672 /* it should remain joinable and hence detachable */ 13673 sleep( 1 ); 13674 13675 status = pthread_detach( &t ); 13676 if( status ) return errno; 13677#endif 13678 13679#ifdef HAVE_LINUX_THREADS 13680 pthread_kill_other_threads_np(); 13681#endif 13682 13683 return 0; 13684 13685 ; 13686 return 0; 13687} 13688_ACEOF 13689if ac_fn_c_try_link "$LINENO"; then : 13690 ol_cv_pthread_lpthreads_lexc=yes 13691else 13692 ol_cv_pthread_lpthreads_lexc=no 13693fi 13694rm -f core conftest.err conftest.$ac_objext \ 13695 conftest$ac_exeext conftest.$ac_ext 13696else 13697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13698/* end confdefs.h. */ 13699 13700 13701/* pthread test headers */ 13702#include <pthread.h> 13703#if HAVE_PTHREADS < 7 13704#include <errno.h> 13705#endif 13706#ifndef NULL 13707#define NULL (void*)0 13708#endif 13709 13710static void *task(p) 13711 void *p; 13712{ 13713 return (void *) (p == NULL); 13714} 13715 13716 13717int main(argc, argv) 13718 int argc; 13719 char **argv; 13720{ 13721 13722 /* pthread test function */ 13723#ifndef PTHREAD_CREATE_DETACHED 13724#define PTHREAD_CREATE_DETACHED 1 13725#endif 13726 pthread_t t; 13727 int status; 13728 int detach = PTHREAD_CREATE_DETACHED; 13729 13730#if HAVE_PTHREADS > 4 13731 /* Final pthreads */ 13732 pthread_attr_t attr; 13733 13734 status = pthread_attr_init(&attr); 13735 if( status ) return status; 13736 13737#if HAVE_PTHREADS < 7 13738 status = pthread_attr_setdetachstate(&attr, &detach); 13739 if( status < 0 ) status = errno; 13740#else 13741 status = pthread_attr_setdetachstate(&attr, detach); 13742#endif 13743 if( status ) return status; 13744 status = pthread_create( &t, &attr, task, NULL ); 13745#if HAVE_PTHREADS < 7 13746 if( status < 0 ) status = errno; 13747#endif 13748 if( status ) return status; 13749#else 13750 /* Draft 4 pthreads */ 13751 status = pthread_create( &t, pthread_attr_default, task, NULL ); 13752 if( status ) return errno; 13753 13754 /* give thread a chance to complete */ 13755 /* it should remain joinable and hence detachable */ 13756 sleep( 1 ); 13757 13758 status = pthread_detach( &t ); 13759 if( status ) return errno; 13760#endif 13761 13762#ifdef HAVE_LINUX_THREADS 13763 pthread_kill_other_threads_np(); 13764#endif 13765 13766 return 0; 13767 13768} 13769 13770_ACEOF 13771if ac_fn_c_try_run "$LINENO"; then : 13772 ol_cv_pthread_lpthreads_lexc=yes 13773else 13774 ol_cv_pthread_lpthreads_lexc=no 13775fi 13776rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13777 conftest.$ac_objext conftest.beam conftest.$ac_ext 13778fi 13779 13780 13781 # restore the LIBS 13782 LIBS="$ol_LIBS" 13783 13784fi 13785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthreads_lexc" >&5 13786$as_echo "$ol_cv_pthread_lpthreads_lexc" >&6; } 13787 13788 if test $ol_cv_pthread_lpthreads_lexc = yes ; then 13789 ol_link_pthreads="-lpthreads -lexc" 13790 ol_link_threads=posix 13791 fi 13792fi 13793 13794 13795 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads) 13796if test "$ol_link_threads" = no ; then 13797 # try -lpthreads 13798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads" >&5 13799$as_echo_n "checking for pthread link with -lpthreads... " >&6; } 13800if ${ol_cv_pthread_lib_lpthreads+:} false; then : 13801 $as_echo_n "(cached) " >&6 13802else 13803 13804 # save the flags 13805 ol_LIBS="$LIBS" 13806 LIBS="-lpthreads $LIBS" 13807 13808 if test "$cross_compiling" = yes; then : 13809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13810/* end confdefs.h. */ 13811 13812/* pthread test headers */ 13813#include <pthread.h> 13814#if HAVE_PTHREADS < 7 13815#include <errno.h> 13816#endif 13817#ifndef NULL 13818#define NULL (void*)0 13819#endif 13820 13821static void *task(p) 13822 void *p; 13823{ 13824 return (void *) (p == NULL); 13825} 13826 13827int 13828main () 13829{ 13830 13831 /* pthread test function */ 13832#ifndef PTHREAD_CREATE_DETACHED 13833#define PTHREAD_CREATE_DETACHED 1 13834#endif 13835 pthread_t t; 13836 int status; 13837 int detach = PTHREAD_CREATE_DETACHED; 13838 13839#if HAVE_PTHREADS > 4 13840 /* Final pthreads */ 13841 pthread_attr_t attr; 13842 13843 status = pthread_attr_init(&attr); 13844 if( status ) return status; 13845 13846#if HAVE_PTHREADS < 7 13847 status = pthread_attr_setdetachstate(&attr, &detach); 13848 if( status < 0 ) status = errno; 13849#else 13850 status = pthread_attr_setdetachstate(&attr, detach); 13851#endif 13852 if( status ) return status; 13853 status = pthread_create( &t, &attr, task, NULL ); 13854#if HAVE_PTHREADS < 7 13855 if( status < 0 ) status = errno; 13856#endif 13857 if( status ) return status; 13858#else 13859 /* Draft 4 pthreads */ 13860 status = pthread_create( &t, pthread_attr_default, task, NULL ); 13861 if( status ) return errno; 13862 13863 /* give thread a chance to complete */ 13864 /* it should remain joinable and hence detachable */ 13865 sleep( 1 ); 13866 13867 status = pthread_detach( &t ); 13868 if( status ) return errno; 13869#endif 13870 13871#ifdef HAVE_LINUX_THREADS 13872 pthread_kill_other_threads_np(); 13873#endif 13874 13875 return 0; 13876 13877 ; 13878 return 0; 13879} 13880_ACEOF 13881if ac_fn_c_try_link "$LINENO"; then : 13882 ol_cv_pthread_lib_lpthreads=yes 13883else 13884 ol_cv_pthread_lib_lpthreads=no 13885fi 13886rm -f core conftest.err conftest.$ac_objext \ 13887 conftest$ac_exeext conftest.$ac_ext 13888else 13889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13890/* end confdefs.h. */ 13891 13892 13893/* pthread test headers */ 13894#include <pthread.h> 13895#if HAVE_PTHREADS < 7 13896#include <errno.h> 13897#endif 13898#ifndef NULL 13899#define NULL (void*)0 13900#endif 13901 13902static void *task(p) 13903 void *p; 13904{ 13905 return (void *) (p == NULL); 13906} 13907 13908 13909int main(argc, argv) 13910 int argc; 13911 char **argv; 13912{ 13913 13914 /* pthread test function */ 13915#ifndef PTHREAD_CREATE_DETACHED 13916#define PTHREAD_CREATE_DETACHED 1 13917#endif 13918 pthread_t t; 13919 int status; 13920 int detach = PTHREAD_CREATE_DETACHED; 13921 13922#if HAVE_PTHREADS > 4 13923 /* Final pthreads */ 13924 pthread_attr_t attr; 13925 13926 status = pthread_attr_init(&attr); 13927 if( status ) return status; 13928 13929#if HAVE_PTHREADS < 7 13930 status = pthread_attr_setdetachstate(&attr, &detach); 13931 if( status < 0 ) status = errno; 13932#else 13933 status = pthread_attr_setdetachstate(&attr, detach); 13934#endif 13935 if( status ) return status; 13936 status = pthread_create( &t, &attr, task, NULL ); 13937#if HAVE_PTHREADS < 7 13938 if( status < 0 ) status = errno; 13939#endif 13940 if( status ) return status; 13941#else 13942 /* Draft 4 pthreads */ 13943 status = pthread_create( &t, pthread_attr_default, task, NULL ); 13944 if( status ) return errno; 13945 13946 /* give thread a chance to complete */ 13947 /* it should remain joinable and hence detachable */ 13948 sleep( 1 ); 13949 13950 status = pthread_detach( &t ); 13951 if( status ) return errno; 13952#endif 13953 13954#ifdef HAVE_LINUX_THREADS 13955 pthread_kill_other_threads_np(); 13956#endif 13957 13958 return 0; 13959 13960} 13961 13962_ACEOF 13963if ac_fn_c_try_run "$LINENO"; then : 13964 ol_cv_pthread_lib_lpthreads=yes 13965else 13966 ol_cv_pthread_lib_lpthreads=no 13967fi 13968rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13969 conftest.$ac_objext conftest.beam conftest.$ac_ext 13970fi 13971 13972 13973 # restore the LIBS 13974 LIBS="$ol_LIBS" 13975 13976fi 13977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lib_lpthreads" >&5 13978$as_echo "$ol_cv_pthread_lib_lpthreads" >&6; } 13979 13980 if test $ol_cv_pthread_lib_lpthreads = yes ; then 13981 ol_link_pthreads="-lpthreads" 13982 ol_link_threads=posix 13983 fi 13984fi 13985 13986 13987{ $as_echo "$as_me:${as_lineno-$LINENO}: ol_link_threads: <$ol_link_threads> ol_link_pthreads <$ol_link_pthreads>" >&5 13988$as_echo "$as_me: ol_link_threads: <$ol_link_threads> ol_link_pthreads <$ol_link_pthreads>" >&6;} 13989 13990 if test $ol_link_threads != no ; then 13991 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads" 13992 13993 save_CPPFLAGS="$CPPFLAGS" 13994 save_LIBS="$LIBS" 13995 LIBS="$LTHREAD_LIBS $LIBS" 13996 13997 for ac_func in sched_yield pthread_yield thr_yield 13998do : 13999 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 14000ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 14001if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 14002 cat >>confdefs.h <<_ACEOF 14003#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 14004_ACEOF 14005 14006fi 14007done 14008 14009 14010 if test $ac_cv_func_sched_yield = no && 14011 test $ac_cv_func_pthread_yield = no && 14012 test $ac_cv_func_thr_yield = no ; then 14013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5 14014$as_echo_n "checking for sched_yield in -lrt... " >&6; } 14015if ${ac_cv_lib_rt_sched_yield+:} false; then : 14016 $as_echo_n "(cached) " >&6 14017else 14018 ac_check_lib_save_LIBS=$LIBS 14019LIBS="-lrt $LIBS" 14020cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14021/* end confdefs.h. */ 14022 14023/* Override any GCC internal prototype to avoid an error. 14024 Use char because int might match the return type of a GCC 14025 builtin and then its argument prototype would still apply. */ 14026#ifdef __cplusplus 14027extern "C" 14028#endif 14029char sched_yield (); 14030int 14031main () 14032{ 14033return sched_yield (); 14034 ; 14035 return 0; 14036} 14037_ACEOF 14038if ac_fn_c_try_link "$LINENO"; then : 14039 ac_cv_lib_rt_sched_yield=yes 14040else 14041 ac_cv_lib_rt_sched_yield=no 14042fi 14043rm -f core conftest.err conftest.$ac_objext \ 14044 conftest$ac_exeext conftest.$ac_ext 14045LIBS=$ac_check_lib_save_LIBS 14046fi 14047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5 14048$as_echo "$ac_cv_lib_rt_sched_yield" >&6; } 14049if test "x$ac_cv_lib_rt_sched_yield" = xyes; then : 14050 LTHREAD_LIBS="$LTHREAD_LIBS -lrt" 14051 14052$as_echo "#define HAVE_SCHED_YIELD 1" >>confdefs.h 14053 14054 ac_cv_func_sched_yield=yes 14055else 14056 ac_cv_func_sched_yield=no 14057fi 14058 14059 fi 14060 if test $ac_cv_func_sched_yield = no && 14061 test $ac_cv_func_pthread_yield = no && 14062 test "$ac_cv_func_thr_yield" = no ; then 14063 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not locate sched_yield() or pthread_yield()" >&5 14064$as_echo "$as_me: WARNING: could not locate sched_yield() or pthread_yield()" >&2;} 14065 fi 14066 14067 for ac_func in pthread_kill 14068do : 14069 ac_fn_c_check_func "$LINENO" "pthread_kill" "ac_cv_func_pthread_kill" 14070if test "x$ac_cv_func_pthread_kill" = xyes; then : 14071 cat >>confdefs.h <<_ACEOF 14072#define HAVE_PTHREAD_KILL 1 14073_ACEOF 14074 14075fi 14076done 14077 14078 14079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_rwlock_destroy with <pthread.h>" >&5 14080$as_echo_n "checking for pthread_rwlock_destroy with <pthread.h>... " >&6; } 14081if ${ol_cv_func_pthread_rwlock_destroy+:} false; then : 14082 $as_echo_n "(cached) " >&6 14083else 14084 14085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14086/* end confdefs.h. */ 14087 14088#include <pthread.h> 14089pthread_rwlock_t rwlock; 14090 14091int 14092main () 14093{ 14094pthread_rwlock_destroy(&rwlock); 14095 ; 14096 return 0; 14097} 14098_ACEOF 14099if ac_fn_c_try_link "$LINENO"; then : 14100 ol_cv_func_pthread_rwlock_destroy=yes 14101else 14102 ol_cv_func_pthread_rwlock_destroy=no 14103fi 14104rm -f core conftest.err conftest.$ac_objext \ 14105 conftest$ac_exeext conftest.$ac_ext 14106 14107fi 14108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_func_pthread_rwlock_destroy" >&5 14109$as_echo "$ol_cv_func_pthread_rwlock_destroy" >&6; } 14110 if test $ol_cv_func_pthread_rwlock_destroy = yes ; then 14111 14112$as_echo "#define HAVE_PTHREAD_RWLOCK_DESTROY 1" >>confdefs.h 14113 14114 fi 14115 14116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_detach with <pthread.h>" >&5 14117$as_echo_n "checking for pthread_detach with <pthread.h>... " >&6; } 14118if ${ol_cv_func_pthread_detach+:} false; then : 14119 $as_echo_n "(cached) " >&6 14120else 14121 14122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14123/* end confdefs.h. */ 14124 14125#include <pthread.h> 14126#ifndef NULL 14127#define NULL (void*)0 14128#endif 14129 14130int 14131main () 14132{ 14133pthread_detach(NULL); 14134 ; 14135 return 0; 14136} 14137_ACEOF 14138if ac_fn_c_try_link "$LINENO"; then : 14139 ol_cv_func_pthread_detach=yes 14140else 14141 ol_cv_func_pthread_detach=no 14142fi 14143rm -f core conftest.err conftest.$ac_objext \ 14144 conftest$ac_exeext conftest.$ac_ext 14145 14146fi 14147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_func_pthread_detach" >&5 14148$as_echo "$ol_cv_func_pthread_detach" >&6; } 14149 14150 if test $ol_cv_func_pthread_detach = no ; then 14151 as_fn_error $? "could not locate pthread_detach()" "$LINENO" 5 14152 fi 14153 14154 14155$as_echo "#define HAVE_PTHREAD_DETACH 1" >>confdefs.h 14156 14157 14158 for ac_func in \ 14159 pthread_setconcurrency \ 14160 pthread_getconcurrency \ 14161 thr_setconcurrency \ 14162 thr_getconcurrency \ 14163 14164do : 14165 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 14166ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 14167if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 14168 cat >>confdefs.h <<_ACEOF 14169#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 14170_ACEOF 14171 14172fi 14173done 14174 14175 14176 14177 for ac_func in pthread_kill_other_threads_np 14178do : 14179 ac_fn_c_check_func "$LINENO" "pthread_kill_other_threads_np" "ac_cv_func_pthread_kill_other_threads_np" 14180if test "x$ac_cv_func_pthread_kill_other_threads_np" = xyes; then : 14181 cat >>confdefs.h <<_ACEOF 14182#define HAVE_PTHREAD_KILL_OTHER_THREADS_NP 1 14183_ACEOF 14184 14185fi 14186done 14187 14188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads implementation" >&5 14189$as_echo_n "checking for LinuxThreads implementation... " >&6; } 14190if ${ol_cv_sys_linux_threads+:} false; then : 14191 $as_echo_n "(cached) " >&6 14192else 14193 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np 14194fi 14195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_sys_linux_threads" >&5 14196$as_echo "$ol_cv_sys_linux_threads" >&6; } 14197 14198 14199 14200 14201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads consistency" >&5 14202$as_echo_n "checking for LinuxThreads consistency... " >&6; } 14203if ${ol_cv_linux_threads+:} false; then : 14204 $as_echo_n "(cached) " >&6 14205else 14206 14207 if test $ol_cv_header_linux_threads = yes && 14208 test $ol_cv_sys_linux_threads = yes; then 14209 ol_cv_linux_threads=yes 14210 elif test $ol_cv_header_linux_threads = no && 14211 test $ol_cv_sys_linux_threads = no; then 14212 ol_cv_linux_threads=no 14213 else 14214 ol_cv_linux_threads=error 14215 fi 14216 14217fi 14218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_linux_threads" >&5 14219$as_echo "$ol_cv_linux_threads" >&6; } 14220 14221 14222 if test $ol_cv_linux_threads = error; then 14223 as_fn_error $? "LinuxThreads header/library mismatch" "$LINENO" 5; 14224 fi 14225 14226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if pthread_create() works" >&5 14227$as_echo_n "checking if pthread_create() works... " >&6; } 14228if ${ol_cv_pthread_create_works+:} false; then : 14229 $as_echo_n "(cached) " >&6 14230else 14231 14232 if test "$cross_compiling" = yes; then : 14233 ol_cv_pthread_create_works=yes 14234else 14235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14236/* end confdefs.h. */ 14237 14238 14239/* pthread test headers */ 14240#include <pthread.h> 14241#if HAVE_PTHREADS < 7 14242#include <errno.h> 14243#endif 14244#ifndef NULL 14245#define NULL (void*)0 14246#endif 14247 14248static void *task(p) 14249 void *p; 14250{ 14251 return (void *) (p == NULL); 14252} 14253 14254 14255int main(argc, argv) 14256 int argc; 14257 char **argv; 14258{ 14259 14260 /* pthread test function */ 14261#ifndef PTHREAD_CREATE_DETACHED 14262#define PTHREAD_CREATE_DETACHED 1 14263#endif 14264 pthread_t t; 14265 int status; 14266 int detach = PTHREAD_CREATE_DETACHED; 14267 14268#if HAVE_PTHREADS > 4 14269 /* Final pthreads */ 14270 pthread_attr_t attr; 14271 14272 status = pthread_attr_init(&attr); 14273 if( status ) return status; 14274 14275#if HAVE_PTHREADS < 7 14276 status = pthread_attr_setdetachstate(&attr, &detach); 14277 if( status < 0 ) status = errno; 14278#else 14279 status = pthread_attr_setdetachstate(&attr, detach); 14280#endif 14281 if( status ) return status; 14282 status = pthread_create( &t, &attr, task, NULL ); 14283#if HAVE_PTHREADS < 7 14284 if( status < 0 ) status = errno; 14285#endif 14286 if( status ) return status; 14287#else 14288 /* Draft 4 pthreads */ 14289 status = pthread_create( &t, pthread_attr_default, task, NULL ); 14290 if( status ) return errno; 14291 14292 /* give thread a chance to complete */ 14293 /* it should remain joinable and hence detachable */ 14294 sleep( 1 ); 14295 14296 status = pthread_detach( &t ); 14297 if( status ) return errno; 14298#endif 14299 14300#ifdef HAVE_LINUX_THREADS 14301 pthread_kill_other_threads_np(); 14302#endif 14303 14304 return 0; 14305 14306} 14307 14308_ACEOF 14309if ac_fn_c_try_run "$LINENO"; then : 14310 ol_cv_pthread_create_works=yes 14311else 14312 ol_cv_pthread_create_works=no 14313fi 14314rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14315 conftest.$ac_objext conftest.beam conftest.$ac_ext 14316fi 14317 14318fi 14319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_create_works" >&5 14320$as_echo "$ol_cv_pthread_create_works" >&6; } 14321 14322 if test $ol_cv_pthread_create_works = no ; then 14323 as_fn_error $? "pthread_create is not usable, check environment settings" "$LINENO" 5 14324 fi 14325 14326 ol_replace_broken_yield=no 14327 14328 if test $ol_replace_broken_yield = yes ; then 14329 14330$as_echo "#define REPLACE_BROKEN_YIELD 1" >>confdefs.h 14331 14332 fi 14333 14334 if test x$ol_with_yielding_select = xauto ; then 14335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if select yields when using pthreads" >&5 14336$as_echo_n "checking if select yields when using pthreads... " >&6; } 14337if ${ol_cv_pthread_select_yields+:} false; then : 14338 $as_echo_n "(cached) " >&6 14339else 14340 14341 if test "$cross_compiling" = yes; then : 14342 ol_cv_pthread_select_yields=cross 14343else 14344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14345/* end confdefs.h. */ 14346 14347#include <sys/types.h> 14348#include <sys/time.h> 14349#include <unistd.h> 14350#include <pthread.h> 14351#ifndef NULL 14352#define NULL (void*) 0 14353#endif 14354 14355static int fildes[2]; 14356 14357static void *task(p) 14358 void *p; 14359{ 14360 int i; 14361 struct timeval tv; 14362 14363 fd_set rfds; 14364 14365 tv.tv_sec=10; 14366 tv.tv_usec=0; 14367 14368 FD_ZERO(&rfds); 14369 FD_SET(fildes[0], &rfds); 14370 14371 /* we're not interested in any fds */ 14372 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv); 14373 14374 if(i < 0) { 14375 perror("select"); 14376 exit(10); 14377 } 14378 14379 exit(0); /* if we exit here, the select blocked the whole process */ 14380} 14381 14382int main(argc, argv) 14383 int argc; 14384 char **argv; 14385{ 14386 pthread_t t; 14387 14388 /* create a pipe to select */ 14389 if(pipe(&fildes[0])) { 14390 perror("select"); 14391 exit(1); 14392 } 14393 14394#ifdef HAVE_PTHREAD_SETCONCURRENCY 14395 (void) pthread_setconcurrency(2); 14396#else 14397#ifdef HAVE_THR_SETCONCURRENCY 14398 /* Set Solaris LWP concurrency to 2 */ 14399 thr_setconcurrency(2); 14400#endif 14401#endif 14402 14403#if HAVE_PTHREADS < 6 14404 pthread_create(&t, pthread_attr_default, task, NULL); 14405#else 14406 pthread_create(&t, NULL, task, NULL); 14407#endif 14408 14409 /* make sure task runs first */ 14410#ifdef HAVE_THR_YIELD 14411 thr_yield(); 14412#elif defined( HAVE_SCHED_YIELD ) 14413 sched_yield(); 14414#elif defined( HAVE_PTHREAD_YIELD ) 14415 pthread_yield(); 14416#endif 14417 14418 exit(2); 14419} 14420_ACEOF 14421if ac_fn_c_try_run "$LINENO"; then : 14422 ol_cv_pthread_select_yields=no 14423else 14424 ol_cv_pthread_select_yields=yes 14425fi 14426rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14427 conftest.$ac_objext conftest.beam conftest.$ac_ext 14428fi 14429 14430fi 14431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_select_yields" >&5 14432$as_echo "$ol_cv_pthread_select_yields" >&6; } 14433 14434 if test $ol_cv_pthread_select_yields = cross ; then 14435 as_fn_error $? "crossing compiling: use --with-yielding-select=yes|no|manual" "$LINENO" 5 14436 fi 14437 14438 if test $ol_cv_pthread_select_yields = yes ; then 14439 ol_with_yielding_select=yes 14440 fi 14441 fi 14442 14443 CPPFLAGS="$save_CPPFLAGS" 14444 LIBS="$save_LIBS" 14445 else 14446 as_fn_error $? "could not locate usable POSIX Threads" "$LINENO" 5 14447 fi 14448 fi 14449 14450 if test $ol_with_threads = posix ; then 14451 as_fn_error $? "could not locate POSIX Threads" "$LINENO" 5 14452 fi 14453 ;; 14454esac 14455 14456case $ol_with_threads in auto | yes | mach) 14457 14458 for ac_header in mach/cthreads.h cthreads.h 14459do : 14460 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 14461ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 14462if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 14463 cat >>confdefs.h <<_ACEOF 14464#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 14465_ACEOF 14466 14467fi 14468 14469done 14470 14471 if test $ac_cv_header_mach_cthreads_h = yes ; then 14472 ol_with_threads=found 14473 14474 ac_fn_c_check_func "$LINENO" "cthread_fork" "ac_cv_func_cthread_fork" 14475if test "x$ac_cv_func_cthread_fork" = xyes; then : 14476 ol_link_threads=yes 14477fi 14478 14479 14480 if test $ol_link_threads = no ; then 14481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cthread_fork with -all_load" >&5 14482$as_echo_n "checking for cthread_fork with -all_load... " >&6; } 14483if ${ol_cv_cthread_all_load+:} false; then : 14484 $as_echo_n "(cached) " >&6 14485else 14486 14487 save_LIBS="$LIBS" 14488 LIBS="-all_load $LIBS" 14489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14490/* end confdefs.h. */ 14491#include <mach/cthreads.h> 14492int 14493main () 14494{ 14495 14496 cthread_fork((void *)0, (void *)0); 14497 14498 ; 14499 return 0; 14500} 14501_ACEOF 14502if ac_fn_c_try_link "$LINENO"; then : 14503 ol_cv_cthread_all_load=yes 14504else 14505 ol_cv_cthread_all_load=no 14506fi 14507rm -f core conftest.err conftest.$ac_objext \ 14508 conftest$ac_exeext conftest.$ac_ext 14509 LIBS="$save_LIBS" 14510 14511fi 14512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_cthread_all_load" >&5 14513$as_echo "$ol_cv_cthread_all_load" >&6; } 14514 14515 if test $ol_cv_cthread_all_load = yes ; then 14516 LTHREAD_LIBS="$LTHREAD_LIBS -all_load" 14517 ol_link_threads=mach 14518 ol_with_threads=found 14519 fi 14520 fi 14521 14522 elif test $ac_cv_header_cthreads_h = yes ; then 14523 14524 ol_with_threads=found 14525 14526 save_LIBS="$LIBS" 14527 LIBS="$LIBS -lthreads" 14528 ac_fn_c_check_func "$LINENO" "cthread_fork" "ac_cv_func_cthread_fork" 14529if test "x$ac_cv_func_cthread_fork" = xyes; then : 14530 ol_link_threads=yes 14531fi 14532 14533 LIBS="$save_LIBS" 14534 14535 if test $ol_link_threads = yes ; then 14536 LTHREAD_LIBS="-lthreads" 14537 ol_link_threads=mach 14538 ol_with_threads=found 14539 else 14540 as_fn_error $? "could not link with Mach CThreads" "$LINENO" 5 14541 fi 14542 14543 elif test $ol_with_threads = mach ; then 14544 as_fn_error $? "could not locate Mach CThreads" "$LINENO" 5 14545 fi 14546 14547 if test $ol_link_threads = mach ; then 14548 14549$as_echo "#define HAVE_MACH_CTHREADS 1" >>confdefs.h 14550 14551 elif test $ol_with_threads = found ; then 14552 as_fn_error $? "could not link with Mach CThreads" "$LINENO" 5 14553 fi 14554 ;; 14555esac 14556 14557case $ol_with_threads in auto | yes | pth) 14558 14559 for ac_header in pth.h 14560do : 14561 ac_fn_c_check_header_mongrel "$LINENO" "pth.h" "ac_cv_header_pth_h" "$ac_includes_default" 14562if test "x$ac_cv_header_pth_h" = xyes; then : 14563 cat >>confdefs.h <<_ACEOF 14564#define HAVE_PTH_H 1 14565_ACEOF 14566 14567fi 14568 14569done 14570 14571 14572 if test $ac_cv_header_pth_h = yes ; then 14573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pth_version in -lpth" >&5 14574$as_echo_n "checking for pth_version in -lpth... " >&6; } 14575if ${ac_cv_lib_pth_pth_version+:} false; then : 14576 $as_echo_n "(cached) " >&6 14577else 14578 ac_check_lib_save_LIBS=$LIBS 14579LIBS="-lpth $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 pth_version (); 14590int 14591main () 14592{ 14593return pth_version (); 14594 ; 14595 return 0; 14596} 14597_ACEOF 14598if ac_fn_c_try_link "$LINENO"; then : 14599 ac_cv_lib_pth_pth_version=yes 14600else 14601 ac_cv_lib_pth_pth_version=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_pth_pth_version" >&5 14608$as_echo "$ac_cv_lib_pth_pth_version" >&6; } 14609if test "x$ac_cv_lib_pth_pth_version" = xyes; then : 14610 have_pth=yes 14611else 14612 have_pth=no 14613fi 14614 14615 14616 if test $have_pth = yes ; then 14617 14618$as_echo "#define HAVE_GNU_PTH 1" >>confdefs.h 14619 14620 LTHREAD_LIBS="$LTHREAD_LIBS -lpth" 14621 ol_link_threads=pth 14622 ol_with_threads=found 14623 14624 if test x$ol_with_yielding_select = xauto ; then 14625 ol_with_yielding_select=yes 14626 fi 14627 fi 14628 fi 14629 ;; 14630esac 14631 14632case $ol_with_threads in auto | yes | lwp) 14633 14634 for ac_header in thread.h synch.h 14635do : 14636 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 14637ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 14638if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 14639 cat >>confdefs.h <<_ACEOF 14640#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 14641_ACEOF 14642 14643fi 14644 14645done 14646 14647 if test $ac_cv_header_thread_h = yes && 14648 test $ac_cv_header_synch_h = yes ; then 14649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thr_create in -lthread" >&5 14650$as_echo_n "checking for thr_create in -lthread... " >&6; } 14651if ${ac_cv_lib_thread_thr_create+:} false; then : 14652 $as_echo_n "(cached) " >&6 14653else 14654 ac_check_lib_save_LIBS=$LIBS 14655LIBS="-lthread $LIBS" 14656cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14657/* end confdefs.h. */ 14658 14659/* Override any GCC internal prototype to avoid an error. 14660 Use char because int might match the return type of a GCC 14661 builtin and then its argument prototype would still apply. */ 14662#ifdef __cplusplus 14663extern "C" 14664#endif 14665char thr_create (); 14666int 14667main () 14668{ 14669return thr_create (); 14670 ; 14671 return 0; 14672} 14673_ACEOF 14674if ac_fn_c_try_link "$LINENO"; then : 14675 ac_cv_lib_thread_thr_create=yes 14676else 14677 ac_cv_lib_thread_thr_create=no 14678fi 14679rm -f core conftest.err conftest.$ac_objext \ 14680 conftest$ac_exeext conftest.$ac_ext 14681LIBS=$ac_check_lib_save_LIBS 14682fi 14683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_thread_thr_create" >&5 14684$as_echo "$ac_cv_lib_thread_thr_create" >&6; } 14685if test "x$ac_cv_lib_thread_thr_create" = xyes; then : 14686 have_thr=yes 14687else 14688 have_thr=no 14689fi 14690 14691 14692 if test $have_thr = yes ; then 14693 14694$as_echo "#define HAVE_THR 1" >>confdefs.h 14695 14696 LTHREAD_LIBS="$LTHREAD_LIBS -lthread" 14697 ol_link_threads=thr 14698 14699 if test x$ol_with_yielding_select = xauto ; then 14700 ol_with_yielding_select=yes 14701 fi 14702 14703 for ac_func in \ 14704 thr_setconcurrency \ 14705 thr_getconcurrency \ 14706 14707do : 14708 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 14709ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 14710if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 14711 cat >>confdefs.h <<_ACEOF 14712#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 14713_ACEOF 14714 14715fi 14716done 14717 14718 fi 14719 fi 14720 14721 for ac_header in lwp/lwp.h 14722do : 14723 ac_fn_c_check_header_mongrel "$LINENO" "lwp/lwp.h" "ac_cv_header_lwp_lwp_h" "$ac_includes_default" 14724if test "x$ac_cv_header_lwp_lwp_h" = xyes; then : 14725 cat >>confdefs.h <<_ACEOF 14726#define HAVE_LWP_LWP_H 1 14727_ACEOF 14728 14729fi 14730 14731done 14732 14733 if test $ac_cv_header_lwp_lwp_h = yes ; then 14734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwp_create in -llwp" >&5 14735$as_echo_n "checking for lwp_create in -llwp... " >&6; } 14736if ${ac_cv_lib_lwp_lwp_create+:} false; then : 14737 $as_echo_n "(cached) " >&6 14738else 14739 ac_check_lib_save_LIBS=$LIBS 14740LIBS="-llwp $LIBS" 14741cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14742/* end confdefs.h. */ 14743 14744/* Override any GCC internal prototype to avoid an error. 14745 Use char because int might match the return type of a GCC 14746 builtin and then its argument prototype would still apply. */ 14747#ifdef __cplusplus 14748extern "C" 14749#endif 14750char lwp_create (); 14751int 14752main () 14753{ 14754return lwp_create (); 14755 ; 14756 return 0; 14757} 14758_ACEOF 14759if ac_fn_c_try_link "$LINENO"; then : 14760 ac_cv_lib_lwp_lwp_create=yes 14761else 14762 ac_cv_lib_lwp_lwp_create=no 14763fi 14764rm -f core conftest.err conftest.$ac_objext \ 14765 conftest$ac_exeext conftest.$ac_ext 14766LIBS=$ac_check_lib_save_LIBS 14767fi 14768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lwp_lwp_create" >&5 14769$as_echo "$ac_cv_lib_lwp_lwp_create" >&6; } 14770if test "x$ac_cv_lib_lwp_lwp_create" = xyes; then : 14771 have_lwp=yes 14772else 14773 have_lwp=no 14774fi 14775 14776 14777 if test $have_lwp = yes ; then 14778 14779$as_echo "#define HAVE_LWP 1" >>confdefs.h 14780 14781 LTHREAD_LIBS="$LTHREAD_LIBS -llwp" 14782 ol_link_threads=lwp 14783 14784 if test x$ol_with_yielding_select = xauto ; then 14785 ol_with_yielding_select=no 14786 fi 14787 fi 14788 fi 14789 ;; 14790esac 14791 14792if test $ol_with_yielding_select = yes ; then 14793 14794$as_echo "#define HAVE_YIELDING_SELECT 1" >>confdefs.h 14795 14796fi 14797 14798if test $ol_with_threads = manual ; then 14799 ol_link_threads=yes 14800 14801 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: thread defines and link options must be set manually" >&5 14802$as_echo "$as_me: WARNING: thread defines and link options must be set manually" >&2;} 14803 14804 for ac_header in pthread.h sched.h 14805do : 14806 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 14807ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 14808if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 14809 cat >>confdefs.h <<_ACEOF 14810#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 14811_ACEOF 14812 14813fi 14814 14815done 14816 14817 for ac_func in sched_yield pthread_yield 14818do : 14819 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 14820ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 14821if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 14822 cat >>confdefs.h <<_ACEOF 14823#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 14824_ACEOF 14825 14826fi 14827done 14828 14829 14830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads pthread.h" >&5 14831$as_echo_n "checking for LinuxThreads pthread.h... " >&6; } 14832if ${ol_cv_header_linux_threads+:} false; then : 14833 $as_echo_n "(cached) " >&6 14834else 14835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14836/* end confdefs.h. */ 14837#include <pthread.h> 14838_ACEOF 14839if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 14840 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then : 14841 ol_cv_header_linux_threads=yes 14842else 14843 ol_cv_header_linux_threads=no 14844fi 14845rm -f conftest* 14846 14847 14848fi 14849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_linux_threads" >&5 14850$as_echo "$ol_cv_header_linux_threads" >&6; } 14851 if test $ol_cv_header_linux_threads = yes; then 14852 14853$as_echo "#define HAVE_LINUX_THREADS 1" >>confdefs.h 14854 14855 fi 14856 14857 14858 for ac_header in mach/cthreads.h 14859do : 14860 ac_fn_c_check_header_mongrel "$LINENO" "mach/cthreads.h" "ac_cv_header_mach_cthreads_h" "$ac_includes_default" 14861if test "x$ac_cv_header_mach_cthreads_h" = xyes; then : 14862 cat >>confdefs.h <<_ACEOF 14863#define HAVE_MACH_CTHREADS_H 1 14864_ACEOF 14865 14866fi 14867 14868done 14869 14870 for ac_header in lwp/lwp.h 14871do : 14872 ac_fn_c_check_header_mongrel "$LINENO" "lwp/lwp.h" "ac_cv_header_lwp_lwp_h" "$ac_includes_default" 14873if test "x$ac_cv_header_lwp_lwp_h" = xyes; then : 14874 cat >>confdefs.h <<_ACEOF 14875#define HAVE_LWP_LWP_H 1 14876_ACEOF 14877 14878fi 14879 14880done 14881 14882 for ac_header in thread.h synch.h 14883do : 14884 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 14885ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 14886if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 14887 cat >>confdefs.h <<_ACEOF 14888#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 14889_ACEOF 14890 14891fi 14892 14893done 14894 14895fi 14896 14897if test $ol_link_threads != no && test $ol_link_threads != nt ; then 14898 14899$as_echo "#define REENTRANT 1" >>confdefs.h 14900 14901 14902$as_echo "#define _REENTRANT 1" >>confdefs.h 14903 14904 14905$as_echo "#define THREAD_SAFE 1" >>confdefs.h 14906 14907 14908$as_echo "#define _THREAD_SAFE 1" >>confdefs.h 14909 14910 14911$as_echo "#define THREADSAFE 1" >>confdefs.h 14912 14913 14914$as_echo "#define _THREADSAFE 1" >>confdefs.h 14915 14916 14917$as_echo "#define _SGI_MP_SOURCE 1" >>confdefs.h 14918 14919 14920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread specific errno" >&5 14921$as_echo_n "checking for thread specific errno... " >&6; } 14922if ${ol_cv_errno_thread_specific+:} false; then : 14923 $as_echo_n "(cached) " >&6 14924else 14925 14926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14927/* end confdefs.h. */ 14928#include <errno.h> 14929int 14930main () 14931{ 14932errno = 0; 14933 ; 14934 return 0; 14935} 14936_ACEOF 14937if ac_fn_c_try_link "$LINENO"; then : 14938 ol_cv_errno_thread_specific=yes 14939else 14940 ol_cv_errno_thread_specific=no 14941fi 14942rm -f core conftest.err conftest.$ac_objext \ 14943 conftest$ac_exeext conftest.$ac_ext 14944 14945fi 14946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_errno_thread_specific" >&5 14947$as_echo "$ol_cv_errno_thread_specific" >&6; } 14948 14949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread specific h_errno" >&5 14950$as_echo_n "checking for thread specific h_errno... " >&6; } 14951if ${ol_cv_h_errno_thread_specific+:} false; then : 14952 $as_echo_n "(cached) " >&6 14953else 14954 14955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14956/* end confdefs.h. */ 14957#include <netdb.h> 14958int 14959main () 14960{ 14961h_errno = 0; 14962 ; 14963 return 0; 14964} 14965_ACEOF 14966if ac_fn_c_try_link "$LINENO"; then : 14967 ol_cv_h_errno_thread_specific=yes 14968else 14969 ol_cv_h_errno_thread_specific=no 14970fi 14971rm -f core conftest.err conftest.$ac_objext \ 14972 conftest$ac_exeext conftest.$ac_ext 14973 14974fi 14975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_h_errno_thread_specific" >&5 14976$as_echo "$ol_cv_h_errno_thread_specific" >&6; } 14977 14978 if test $ol_cv_errno_thread_specific != yes || 14979 test $ol_cv_h_errno_thread_specific != yes ; then 14980 LIBS="$LTHREAD_LIBS $LIBS" 14981 LTHREAD_LIBS="" 14982 fi 14983 14984fi 14985 14986if test $ol_link_threads = no ; then 14987 if test $ol_with_threads = yes ; then 14988 as_fn_error $? "no suitable thread support" "$LINENO" 5 14989 fi 14990 14991 if test $ol_with_threads = auto ; then 14992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no suitable thread support, disabling threads" >&5 14993$as_echo "$as_me: WARNING: no suitable thread support, disabling threads" >&2;} 14994 ol_with_threads=no 14995 fi 14996 14997 14998$as_echo "#define NO_THREADS 1" >>confdefs.h 14999 15000 LTHREAD_LIBS="" 15001 BUILD_THREAD=no 15002else 15003 BUILD_THREAD=yes 15004fi 15005 15006if test $ol_link_threads != no ; then 15007 15008$as_echo "#define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1" >>confdefs.h 15009 15010fi 15011 15012# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: 15013case "$ol_with_threads" in 15014 no) 15015 ol_pthread_ok=no 15016 15017 ;; 15018 *) 15019 ol_found_pthreads=yes 15020 ;; 15021esac 15022 15023ac_ext=c 15024ac_cpp='$CPP $CPPFLAGS' 15025ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15026ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15027ac_compiler_gnu=$ac_cv_c_compiler_gnu 15028 15029 15030 15031 15032 15033 15034 case "$ol_found_pthreads" in 15035 yes) 15036 saved_LIBS="$LIBS" 15037 LIBS="$LTHREAD_LIBS $LIBS" 15038 saved_CFLAGS="$CFLAGS" 15039 CFLAGS="$PTHREAD_CFLAGS $CFLAGS" 15040 for ac_func in sem_timedwait 15041do : 15042 ac_fn_c_check_func "$LINENO" "sem_timedwait" "ac_cv_func_sem_timedwait" 15043if test "x$ac_cv_func_sem_timedwait" = xyes; then : 15044 cat >>confdefs.h <<_ACEOF 15045#define HAVE_SEM_TIMEDWAIT 1 15046_ACEOF 15047 15048fi 15049done 15050 15051 LIBS="$saved_LIBS" 15052 { saved_LIBS=; unset saved_LIBS;} 15053 CFLAGS="$saved_CFLAGS" 15054 { saved_CFLAGS=; unset saved_CFLAGS;} 15055 case "$ac_cv_func_sem_timedwait" in 15056 yes) 15057 PTHREAD_LIBS="$LTHREAD_LIBS" 15058 have_pthreads=yes 15059 esac 15060 esac 15061esac 15062 15063case "$have_pthreads" in 15064 yes) 15065 CFLAGS_NTP="$CFLAGS_NTP $PTHREAD_CFLAGS" 15066 saved_LIBS="$LIBS" 15067 LIBS="$LTHREAD_LIBS $LIBS" 15068 saved_CFLAGS="$CFLAGS" 15069 CFLAGS="$PTHREAD_CFLAGS $CFLAGS" 15070 # The cast to long int works around a bug in the HP C Compiler 15071# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 15072# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 15073# This bug is HP SR number 8606223364. 15074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pthread_t" >&5 15075$as_echo_n "checking size of pthread_t... " >&6; } 15076if ${ac_cv_sizeof_pthread_t+:} false; then : 15077 $as_echo_n "(cached) " >&6 15078else 15079 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pthread_t))" "ac_cv_sizeof_pthread_t" " 15080 $ac_includes_default 15081 #include <pthread.h> 15082 15083 15084"; then : 15085 15086else 15087 if test "$ac_cv_type_pthread_t" = yes; then 15088 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15089$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 15090as_fn_error 77 "cannot compute sizeof (pthread_t) 15091See \`config.log' for more details" "$LINENO" 5; } 15092 else 15093 ac_cv_sizeof_pthread_t=0 15094 fi 15095fi 15096 15097fi 15098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_t" >&5 15099$as_echo "$ac_cv_sizeof_pthread_t" >&6; } 15100 15101 15102 15103cat >>confdefs.h <<_ACEOF 15104#define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t 15105_ACEOF 15106 15107 15108 LIBISC_PTHREADS_NOTHREADS=pthreads 15109 15110$as_echo "#define ISC_PLATFORM_USETHREADS 1" >>confdefs.h 15111 15112 # 15113 # We'd like to use sigwait() too 15114 # 15115 ac_fn_c_check_func "$LINENO" "sigwait" "ac_cv_func_sigwait" 15116if test "x$ac_cv_func_sigwait" = xyes; then : 15117 have_sigwait=yes 15118else 15119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigwait in -lc" >&5 15120$as_echo_n "checking for sigwait in -lc... " >&6; } 15121if ${ac_cv_lib_c_sigwait+:} false; then : 15122 $as_echo_n "(cached) " >&6 15123else 15124 ac_check_lib_save_LIBS=$LIBS 15125LIBS="-lc $LIBS" 15126cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15127/* end confdefs.h. */ 15128 15129/* Override any GCC internal prototype to avoid an error. 15130 Use char because int might match the return type of a GCC 15131 builtin and then its argument prototype would still apply. */ 15132#ifdef __cplusplus 15133extern "C" 15134#endif 15135char sigwait (); 15136int 15137main () 15138{ 15139return sigwait (); 15140 ; 15141 return 0; 15142} 15143_ACEOF 15144if ac_fn_c_try_link "$LINENO"; then : 15145 ac_cv_lib_c_sigwait=yes 15146else 15147 ac_cv_lib_c_sigwait=no 15148fi 15149rm -f core conftest.err conftest.$ac_objext \ 15150 conftest$ac_exeext conftest.$ac_ext 15151LIBS=$ac_check_lib_save_LIBS 15152fi 15153{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_sigwait" >&5 15154$as_echo "$ac_cv_lib_c_sigwait" >&6; } 15155if test "x$ac_cv_lib_c_sigwait" = xyes; then : 15156 have_sigwait=yes 15157else 15158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigwait in -lpthread" >&5 15159$as_echo_n "checking for sigwait in -lpthread... " >&6; } 15160if ${ac_cv_lib_pthread_sigwait+:} false; then : 15161 $as_echo_n "(cached) " >&6 15162else 15163 ac_check_lib_save_LIBS=$LIBS 15164LIBS="-lpthread $LIBS" 15165cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15166/* end confdefs.h. */ 15167 15168/* Override any GCC internal prototype to avoid an error. 15169 Use char because int might match the return type of a GCC 15170 builtin and then its argument prototype would still apply. */ 15171#ifdef __cplusplus 15172extern "C" 15173#endif 15174char sigwait (); 15175int 15176main () 15177{ 15178return sigwait (); 15179 ; 15180 return 0; 15181} 15182_ACEOF 15183if ac_fn_c_try_link "$LINENO"; then : 15184 ac_cv_lib_pthread_sigwait=yes 15185else 15186 ac_cv_lib_pthread_sigwait=no 15187fi 15188rm -f core conftest.err conftest.$ac_objext \ 15189 conftest$ac_exeext conftest.$ac_ext 15190LIBS=$ac_check_lib_save_LIBS 15191fi 15192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sigwait" >&5 15193$as_echo "$ac_cv_lib_pthread_sigwait" >&6; } 15194if test "x$ac_cv_lib_pthread_sigwait" = xyes; then : 15195 have_sigwait=yes 15196else 15197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Psigwait in -lpthread" >&5 15198$as_echo_n "checking for _Psigwait in -lpthread... " >&6; } 15199if ${ac_cv_lib_pthread__Psigwait+:} false; then : 15200 $as_echo_n "(cached) " >&6 15201else 15202 ac_check_lib_save_LIBS=$LIBS 15203LIBS="-lpthread $LIBS" 15204cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15205/* end confdefs.h. */ 15206 15207/* Override any GCC internal prototype to avoid an error. 15208 Use char because int might match the return type of a GCC 15209 builtin and then its argument prototype would still apply. */ 15210#ifdef __cplusplus 15211extern "C" 15212#endif 15213char _Psigwait (); 15214int 15215main () 15216{ 15217return _Psigwait (); 15218 ; 15219 return 0; 15220} 15221_ACEOF 15222if ac_fn_c_try_link "$LINENO"; then : 15223 ac_cv_lib_pthread__Psigwait=yes 15224else 15225 ac_cv_lib_pthread__Psigwait=no 15226fi 15227rm -f core conftest.err conftest.$ac_objext \ 15228 conftest$ac_exeext conftest.$ac_ext 15229LIBS=$ac_check_lib_save_LIBS 15230fi 15231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread__Psigwait" >&5 15232$as_echo "$ac_cv_lib_pthread__Psigwait" >&6; } 15233if test "x$ac_cv_lib_pthread__Psigwait" = xyes; then : 15234 have_sigwait=yes 15235else 15236 have_sigwait=no 15237 15238fi 15239 15240 15241fi 15242 15243 15244fi 15245 15246 15247fi 15248 15249 case "$host:$have_sigwait" in 15250 *-freebsd*:no) 15251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigwait in -lc_r" >&5 15252$as_echo_n "checking for sigwait in -lc_r... " >&6; } 15253if ${ac_cv_lib_c_r_sigwait+:} false; then : 15254 $as_echo_n "(cached) " >&6 15255else 15256 ac_check_lib_save_LIBS=$LIBS 15257LIBS="-lc_r $LIBS" 15258cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15259/* end confdefs.h. */ 15260 15261/* Override any GCC internal prototype to avoid an error. 15262 Use char because int might match the return type of a GCC 15263 builtin and then its argument prototype would still apply. */ 15264#ifdef __cplusplus 15265extern "C" 15266#endif 15267char sigwait (); 15268int 15269main () 15270{ 15271return sigwait (); 15272 ; 15273 return 0; 15274} 15275_ACEOF 15276if ac_fn_c_try_link "$LINENO"; then : 15277 ac_cv_lib_c_r_sigwait=yes 15278else 15279 ac_cv_lib_c_r_sigwait=no 15280fi 15281rm -f core conftest.err conftest.$ac_objext \ 15282 conftest$ac_exeext conftest.$ac_ext 15283LIBS=$ac_check_lib_save_LIBS 15284fi 15285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_sigwait" >&5 15286$as_echo "$ac_cv_lib_c_r_sigwait" >&6; } 15287if test "x$ac_cv_lib_c_r_sigwait" = xyes; then : 15288 have_sigwait=yes 15289 15290fi 15291 15292 esac 15293 case "$have_sigwait" in 15294 yes) 15295 ac_cv_func_sigwait=yes 15296 15297$as_echo "#define HAVE_SIGWAIT 1" >>confdefs.h 15298 15299 esac 15300 15301 for ac_func in pthread_attr_getstacksize 15302do : 15303 ac_fn_c_check_func "$LINENO" "pthread_attr_getstacksize" "ac_cv_func_pthread_attr_getstacksize" 15304if test "x$ac_cv_func_pthread_attr_getstacksize" = xyes; then : 15305 cat >>confdefs.h <<_ACEOF 15306#define HAVE_PTHREAD_ATTR_GETSTACKSIZE 1 15307_ACEOF 15308 15309fi 15310done 15311 15312 for ac_func in pthread_attr_setstacksize sysconf 15313do : 15314 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 15315ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 15316if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 15317 cat >>confdefs.h <<_ACEOF 15318#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 15319_ACEOF 15320 15321fi 15322done 15323 15324 15325 case "$host" in 15326 *-freebsd5.[012]|*-freebsd5.[012].*) 15327 ;; 15328 *-freebsd5.[3456789]|*-freebsd5.[3456789].*|*-freebsd6.*) 15329 15330$as_echo "#define NEED_PTHREAD_SCOPE_SYSTEM 1" >>confdefs.h 15331 15332 ;; 15333 *-bsdi3.*|*-bsdi4.0*) 15334 15335$as_echo "#define NEED_PTHREAD_INIT 1" >>confdefs.h 15336 15337 ;; 15338 *-linux*) 15339 15340$as_echo "#define HAVE_LINUXTHREADS 1" >>confdefs.h 15341 15342 ;; 15343 *-solaris*) 15344 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 15345 15346 for ac_func in pthread_setconcurrency 15347do : 15348 ac_fn_c_check_func "$LINENO" "pthread_setconcurrency" "ac_cv_func_pthread_setconcurrency" 15349if test "x$ac_cv_func_pthread_setconcurrency" = xyes; then : 15350 cat >>confdefs.h <<_ACEOF 15351#define HAVE_PTHREAD_SETCONCURRENCY 1 15352_ACEOF 15353 15354fi 15355done 15356 15357 case "$ac_cv_func_pthread_setconcurrency" in 15358 yes) 15359 15360$as_echo "#define CALL_PTHREAD_SETCONCURRENCY 1" >>confdefs.h 15361 15362 esac 15363 ;; 15364 *-sco-sysv*uw*|*-*-sysv*UnixWare*|*-*-sysv*OpenUNIX*) 15365 15366$as_echo "#define HAVE_UNIXWARE_SIGWAIT 1" >>confdefs.h 15367 15368 ;; 15369 esac 15370 hack_shutup_pthreadonceinit=no 15371 case "$host" in 15372 *-aix5.[123].*) 15373 hack_shutup_pthreadonceinit=yes 15374 ;; 15375 *-solaris2.[89]) 15376 hack_shutup_pthreadonceinit=yes 15377 ;; 15378 *-solaris2.1[0-9]) 15379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if extra braces are needed for PTHREAD_ONCE_INIT" >&5 15380$as_echo_n "checking if extra braces are needed for PTHREAD_ONCE_INIT... " >&6; } 15381if ${ntp_cv_braces_around_pthread_once_init+:} false; then : 15382 $as_echo_n "(cached) " >&6 15383else 15384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15385/* end confdefs.h. */ 15386 15387 #include <pthread.h> 15388 15389int 15390main () 15391{ 15392 15393 static pthread_once_t once_test = 15394 PTHREAD_ONCE_INIT; 15395 15396 15397 ; 15398 return 0; 15399} 15400_ACEOF 15401if ac_fn_c_try_compile "$LINENO"; then : 15402 ntp_cv_braces_around_pthread_once_init=no 15403else 15404 ntp_cv_braces_around_pthread_once_init=yes 15405 15406fi 15407rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15408 15409fi 15410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_braces_around_pthread_once_init" >&5 15411$as_echo "$ntp_cv_braces_around_pthread_once_init" >&6; } 15412 case "$ntp_cv_braces_around_pthread_once_init" in 15413 yes) 15414 hack_shutup_pthreadonceinit=yes 15415 esac 15416 ;; 15417 esac 15418 case "$hack_shutup_pthreadonceinit" in 15419 yes) 15420 15421$as_echo "#define ISC_PLATFORM_BRACEPTHREADONCEINIT 1" >>confdefs.h 15422 15423 esac 15424 LIBS="$saved_LIBS" 15425 { saved_LIBS=; unset saved_LIBS;} 15426 CFLAGS="$saved_CFLAGS" 15427 { saved_CFLAGS=; unset saved_CFLAGS;} 15428 ;; 15429 *) 15430 LIBISC_PTHREADS_NOTHREADS=nothreads 15431 ;; 15432esac 15433 15434 if test "$have_pthreads" != "no"; then 15435 PTHREADS_TRUE= 15436 PTHREADS_FALSE='#' 15437else 15438 PTHREADS_TRUE='#' 15439 PTHREADS_FALSE= 15440fi 15441 15442 15443 15444 15445 15446 15447 15448case "$hw_use_rpl_vsnprintf:$hw_cv_func_vsnprintf" in 15449 no:yes) 15450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if vsnprintf expands \"%m\" to strerror(errno)" >&5 15451$as_echo_n "checking if vsnprintf expands \"%m\" to strerror(errno)... " >&6; } 15452if ${ntp_cv_vsnprintf_percent_m+:} false; then : 15453 $as_echo_n "(cached) " >&6 15454else 15455 if test "$cross_compiling" = yes; then : 15456 ntp_cv_vsnprintf_percent_m=no 15457 15458else 15459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15460/* end confdefs.h. */ 15461 15462 #include <stdarg.h> 15463 #include <errno.h> 15464 #include <stdio.h> 15465 #include <string.h> 15466 15467 int call_vsnprintf( 15468 char * dst, 15469 size_t sz, 15470 const char *fmt, 15471 ... 15472 ); 15473 15474 int call_vsnprintf( 15475 char * dst, 15476 size_t sz, 15477 const char *fmt, 15478 ... 15479 ) 15480 { 15481 va_list ap; 15482 int rc; 15483 15484 va_start(ap, fmt); 15485 rc = vsnprintf(dst, sz, fmt, ap); 15486 va_end(ap); 15487 15488 return rc; 15489 } 15490 15491int 15492main () 15493{ 15494 15495 char sbuf[512]; 15496 char pbuf[512]; 15497 int slen; 15498 15499 strcpy(sbuf, strerror(ENOENT)); 15500 errno = ENOENT; 15501 slen = call_vsnprintf(pbuf, sizeof(pbuf), "%m", 15502 "wrong"); 15503 return strcmp(sbuf, pbuf); 15504 15505 15506 ; 15507 return 0; 15508} 15509_ACEOF 15510if ac_fn_c_try_run "$LINENO"; then : 15511 ntp_cv_vsnprintf_percent_m=yes 15512else 15513 ntp_cv_vsnprintf_percent_m=no 15514fi 15515rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15516 conftest.$ac_objext conftest.beam conftest.$ac_ext 15517fi 15518 15519 15520fi 15521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_vsnprintf_percent_m" >&5 15522$as_echo "$ntp_cv_vsnprintf_percent_m" >&6; } 15523 case "$ntp_cv_vsnprintf_percent_m" in 15524 yes) 15525 15526$as_echo "#define VSNPRINTF_PERCENT_M 1" >>confdefs.h 15527 15528 esac 15529esac 15530 15531for ac_header in sys/clockctl.h 15532do : 15533 ac_fn_c_check_header_mongrel "$LINENO" "sys/clockctl.h" "ac_cv_header_sys_clockctl_h" "$ac_includes_default" 15534if test "x$ac_cv_header_sys_clockctl_h" = xyes; then : 15535 cat >>confdefs.h <<_ACEOF 15536#define HAVE_SYS_CLOCKCTL_H 1 15537_ACEOF 15538 15539fi 15540 15541done 15542 15543 15544# Check whether --enable-clockctl was given. 15545if test "${enable_clockctl+set}" = set; then : 15546 enableval=$enable_clockctl; ntp_use_dev_clockctl=$enableval 15547else 15548 ntp_use_dev_clockctl=$ac_cv_header_sys_clockctl_h 15549 15550fi 15551 15552 15553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should use /dev/clockctl" >&5 15554$as_echo_n "checking if we should use /dev/clockctl... " >&6; } 15555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_use_dev_clockctl" >&5 15556$as_echo "$ntp_use_dev_clockctl" >&6; } 15557 15558 15559for ac_header in sys/capability.h sys/prctl.h 15560do : 15561 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 15562ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 15563if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 15564 cat >>confdefs.h <<_ACEOF 15565#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 15566_ACEOF 15567 15568fi 15569 15570done 15571 15572 15573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have linux capabilities (libcap)" >&5 15574$as_echo_n "checking if we have linux capabilities (libcap)... " >&6; } 15575 15576case "$ac_cv_header_sys_capability_h$ac_cv_header_sys_prctl_h" in 15577 yesyes) 15578 case "$host" in 15579 mips-sgi-irix*) 15580 ntp_have_linuxcaps=no 15581 ;; 15582 *) ntp_have_linuxcaps=yes 15583 ;; 15584 esac 15585 ;; 15586 *) 15587 ntp_have_linuxcaps=no 15588 ;; 15589esac 15590 15591# Check whether --enable-linuxcaps was given. 15592if test "${enable_linuxcaps+set}" = set; then : 15593 enableval=$enable_linuxcaps; ntp_have_linuxcaps=$enableval 15594 15595fi 15596 15597 15598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_have_linuxcaps" >&5 15599$as_echo "$ntp_have_linuxcaps" >&6; } 15600 15601case "$ntp_have_linuxcaps" in 15602 yes) 15603 15604$as_echo "#define HAVE_LINUX_CAPABILITIES 1" >>confdefs.h 15605 15606 LIBS="$LIBS -lcap" 15607 ;; 15608esac 15609 15610 15611for ac_header in priv.h 15612do : 15613 ac_fn_c_check_header_mongrel "$LINENO" "priv.h" "ac_cv_header_priv_h" "$ac_includes_default" 15614if test "x$ac_cv_header_priv_h" = xyes; then : 15615 cat >>confdefs.h <<_ACEOF 15616#define HAVE_PRIV_H 1 15617_ACEOF 15618 15619fi 15620 15621done 15622 15623 15624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have solaris privileges" >&5 15625$as_echo_n "checking if we have solaris privileges... " >&6; } 15626 15627case "$ac_cv_header_priv_h" in 15628 yes) 15629 case "$host" in 15630 *-solaris*) 15631 ac_fn_c_check_func "$LINENO" "setppriv" "ac_cv_func_setppriv" 15632if test "x$ac_cv_func_setppriv" = xyes; then : 15633 ntp_have_solarisprivs=yes 15634else 15635 ntp_have_solarisprivs=no 15636 15637fi 15638 15639 ;; 15640 esac 15641esac 15642 15643# Check whether --enable-solarisprivs was given. 15644if test "${enable_solarisprivs+set}" = set; then : 15645 enableval=$enable_solarisprivs; ntp_have_solarisprivs=$enableval 15646 15647fi 15648 15649 15650 15651case "$ntp_have_solarisprivs" in 15652 yes) 15653 15654$as_echo "#define HAVE_SOLARIS_PRIVS 1" >>confdefs.h 15655 15656esac 15657 15658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_have_solarisprivs" >&5 15659$as_echo "$ntp_have_solarisprivs" >&6; } 15660 15661case "$ntp_use_dev_clockctl$ntp_have_linuxcaps$ntp_have_solarisprivs" in 15662 *yes*) 15663 15664$as_echo "#define HAVE_DROPROOT 1" >>confdefs.h 15665 15666esac 15667 15668case "$host" in 15669 *-*-darwin*) 15670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_9_init" >&5 15671$as_echo_n "checking for library containing res_9_init... " >&6; } 15672if ${ac_cv_search_res_9_init+:} false; then : 15673 $as_echo_n "(cached) " >&6 15674else 15675 ac_func_search_save_LIBS=$LIBS 15676cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15677/* end confdefs.h. */ 15678 15679/* Override any GCC internal prototype to avoid an error. 15680 Use char because int might match the return type of a GCC 15681 builtin and then its argument prototype would still apply. */ 15682#ifdef __cplusplus 15683extern "C" 15684#endif 15685char res_9_init (); 15686int 15687main () 15688{ 15689return res_9_init (); 15690 ; 15691 return 0; 15692} 15693_ACEOF 15694for ac_lib in '' resolv; do 15695 if test -z "$ac_lib"; then 15696 ac_res="none required" 15697 else 15698 ac_res=-l$ac_lib 15699 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 15700 fi 15701 if ac_fn_c_try_link "$LINENO"; then : 15702 ac_cv_search_res_9_init=$ac_res 15703fi 15704rm -f core conftest.err conftest.$ac_objext \ 15705 conftest$ac_exeext 15706 if ${ac_cv_search_res_9_init+:} false; then : 15707 break 15708fi 15709done 15710if ${ac_cv_search_res_9_init+:} false; then : 15711 15712else 15713 ac_cv_search_res_9_init=no 15714fi 15715rm conftest.$ac_ext 15716LIBS=$ac_func_search_save_LIBS 15717fi 15718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_9_init" >&5 15719$as_echo "$ac_cv_search_res_9_init" >&6; } 15720ac_res=$ac_cv_search_res_9_init 15721if test "$ac_res" != no; then : 15722 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 15723 15724fi 15725 15726 ;; 15727 *) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_init" >&5 15728$as_echo_n "checking for library containing res_init... " >&6; } 15729if ${ac_cv_search_res_init+:} false; then : 15730 $as_echo_n "(cached) " >&6 15731else 15732 ac_func_search_save_LIBS=$LIBS 15733cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15734/* end confdefs.h. */ 15735 15736/* Override any GCC internal prototype to avoid an error. 15737 Use char because int might match the return type of a GCC 15738 builtin and then its argument prototype would still apply. */ 15739#ifdef __cplusplus 15740extern "C" 15741#endif 15742char res_init (); 15743int 15744main () 15745{ 15746return res_init (); 15747 ; 15748 return 0; 15749} 15750_ACEOF 15751for ac_lib in '' resolv; do 15752 if test -z "$ac_lib"; then 15753 ac_res="none required" 15754 else 15755 ac_res=-l$ac_lib 15756 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 15757 fi 15758 if ac_fn_c_try_link "$LINENO"; then : 15759 ac_cv_search_res_init=$ac_res 15760fi 15761rm -f core conftest.err conftest.$ac_objext \ 15762 conftest$ac_exeext 15763 if ${ac_cv_search_res_init+:} false; then : 15764 break 15765fi 15766done 15767if ${ac_cv_search_res_init+:} false; then : 15768 15769else 15770 ac_cv_search_res_init=no 15771fi 15772rm conftest.$ac_ext 15773LIBS=$ac_func_search_save_LIBS 15774fi 15775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_init" >&5 15776$as_echo "$ac_cv_search_res_init" >&6; } 15777ac_res=$ac_cv_search_res_init 15778if test "$ac_res" != no; then : 15779 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 15780 15781fi 15782 15783 ;; 15784esac 15785for ac_header in sys/types.h netinet/in.h arpa/nameser.h netdb.h resolv.h 15786do : 15787 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 15788ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_SYS_TYPES_H 15789# include <sys/types.h> 15790#endif 15791#ifdef HAVE_NETINET_IN_H 15792# include <netinet/in.h> /* inet_ functions / structs */ 15793#endif 15794#ifdef HAVE_ARPA_NAMESER_H 15795# include <arpa/nameser.h> /* DNS HEADER struct */ 15796#endif 15797#ifdef HAVE_NETDB_H 15798# include <netdb.h> 15799#endif 15800" 15801if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 15802 cat >>confdefs.h <<_ACEOF 15803#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 15804_ACEOF 15805 15806fi 15807 15808done 15809 15810 15811#HMS: Why do we do this check so "early"? 15812for ac_func in res_init 15813do : 15814 ac_fn_c_check_func "$LINENO" "res_init" "ac_cv_func_res_init" 15815if test "x$ac_cv_func_res_init" = xyes; then : 15816 cat >>confdefs.h <<_ACEOF 15817#define HAVE_RES_INIT 1 15818_ACEOF 15819 15820else 15821 for ac_func in __res_init 15822do : 15823 ac_fn_c_check_func "$LINENO" "__res_init" "ac_cv_func___res_init" 15824if test "x$ac_cv_func___res_init" = xyes; then : 15825 cat >>confdefs.h <<_ACEOF 15826#define HAVE___RES_INIT 1 15827_ACEOF 15828 15829fi 15830done 15831 15832fi 15833done 15834 15835 15836# We also need -lsocket, but we have tested for that already. 15837ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop" 15838if test "x$ac_cv_func_inet_ntop" = xyes; then : 15839 15840else 15841 15842$as_echo "#define ISC_PLATFORM_NEEDNTOP 1" >>confdefs.h 15843 15844fi 15845 15846ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton" 15847if test "x$ac_cv_func_inet_pton" = xyes; then : 15848 15849else 15850 15851$as_echo "#define ISC_PLATFORM_NEEDPTON 1" >>confdefs.h 15852 15853fi 15854 15855 15856ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default" 15857if test "x$ac_cv_type_uintptr_t" = xyes; then : 15858 15859cat >>confdefs.h <<_ACEOF 15860#define HAVE_UINTPTR_T 1 15861_ACEOF 15862 15863 15864fi 15865ac_fn_c_check_type "$LINENO" "int32" "ac_cv_type_int32" "$ac_includes_default" 15866if test "x$ac_cv_type_int32" = xyes; then : 15867 15868cat >>confdefs.h <<_ACEOF 15869#define HAVE_INT32 1 15870_ACEOF 15871 15872 15873fi 15874ac_fn_c_check_type "$LINENO" "u_int32" "ac_cv_type_u_int32" "$ac_includes_default" 15875if test "x$ac_cv_type_u_int32" = xyes; then : 15876 15877cat >>confdefs.h <<_ACEOF 15878#define HAVE_U_INT32 1 15879_ACEOF 15880 15881 15882fi 15883 15884 15885 15886 15887case "$ac_cv_type_int32::$ac_cv_header_resolv_h" in 15888 no::yes) 15889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int32 with DNS headers included" >&5 15890$as_echo_n "checking for int32 with DNS headers included... " >&6; } 15891if ${ntp_cv_type_int32_with_dns+:} false; then : 15892 $as_echo_n "(cached) " >&6 15893else 15894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15895/* end confdefs.h. */ 15896 15897 #ifdef HAVE_ARPA_NAMESER_H 15898 # include <arpa/nameser.h> 15899 #endif 15900 #include <resolv.h> 15901 15902int 15903main () 15904{ 15905 15906 size_t cb = sizeof(int32); 15907 15908 15909 ; 15910 return 0; 15911} 15912_ACEOF 15913if ac_fn_c_try_compile "$LINENO"; then : 15914 ntp_cv_type_int32_with_dns=yes 15915else 15916 ntp_cv_type_int32_with_dns=no 15917 15918fi 15919rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15920 15921fi 15922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_type_int32_with_dns" >&5 15923$as_echo "$ntp_cv_type_int32_with_dns" >&6; } 15924 case "$ntp_cv_type_int32_with_dns" in 15925 yes) 15926 15927$as_echo "#define HAVE_INT32_ONLY_WITH_DNS 1" >>confdefs.h 15928 15929 esac 15930esac 15931 15932case "$ac_cv_type_u_int32::$ac_cv_header_resolv_h" in 15933 no::yes) 15934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int32 with DNS headers included" >&5 15935$as_echo_n "checking for u_int32 with DNS headers included... " >&6; } 15936if ${ntp_cv_type_u_int32_with_dns+:} false; then : 15937 $as_echo_n "(cached) " >&6 15938else 15939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15940/* end confdefs.h. */ 15941 15942 #ifdef HAVE_ARPA_NAMESER_H 15943 # include <arpa/nameser.h> 15944 #endif 15945 #include <resolv.h> 15946 15947int 15948main () 15949{ 15950 15951 size_t cb = sizeof(u_int32); 15952 15953 15954 ; 15955 return 0; 15956} 15957_ACEOF 15958if ac_fn_c_try_compile "$LINENO"; then : 15959 ntp_cv_type_u_int32_with_dns=yes 15960else 15961 ntp_cv_type_u_int32_with_dns=no 15962 15963fi 15964rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15965 15966fi 15967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_type_u_int32_with_dns" >&5 15968$as_echo "$ntp_cv_type_u_int32_with_dns" >&6; } 15969 case "$ntp_cv_type_u_int32_with_dns" in 15970 yes) 15971 15972$as_echo "#define HAVE_U_INT32_ONLY_WITH_DNS 1" >>confdefs.h 15973 15974 esac 15975esac 15976 15977for ac_header in sys/timepps.h 15978do : 15979 ac_fn_c_check_header_compile "$LINENO" "sys/timepps.h" "ac_cv_header_sys_timepps_h" " 15980 #ifdef HAVE_SYS_TIME_H 15981 # include <sys/time.h> 15982 #endif 15983 #ifdef HAVE_ERRNO_H 15984 # include <errno.h> 15985 #endif 15986 15987 15988" 15989if test "x$ac_cv_header_sys_timepps_h" = xyes; then : 15990 cat >>confdefs.h <<_ACEOF 15991#define HAVE_SYS_TIMEPPS_H 1 15992_ACEOF 15993 15994fi 15995 15996done 15997 15998 15999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec" >&5 16000$as_echo_n "checking for struct timespec... " >&6; } 16001if ${ntp_cv_struct_timespec+:} false; then : 16002 $as_echo_n "(cached) " >&6 16003else 16004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16005/* end confdefs.h. */ 16006 16007 #include <sys/time.h> 16008 /* Under SunOS, timespec is in sys/timepps.h, 16009 which needs errno.h and FRAC */ 16010 #ifdef HAVE_ERRNO_H 16011 # include <errno.h> 16012 #endif 16013 #ifdef HAVE_SYS_TIMEPPS_H 16014 # define FRAC 4294967296 16015 # include <sys/timepps.h> 16016 #endif 16017 16018int 16019main () 16020{ 16021 16022 struct timespec n; 16023 16024 16025 ; 16026 return 0; 16027} 16028_ACEOF 16029if ac_fn_c_try_compile "$LINENO"; then : 16030 ntp_cv_struct_timespec=yes 16031else 16032 ntp_cv_struct_timespec=no 16033 16034fi 16035rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16036 16037fi 16038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_timespec" >&5 16039$as_echo "$ntp_cv_struct_timespec" >&6; } 16040case "$ntp_cv_struct_timespec" in 16041 yes) 16042 16043$as_echo "#define HAVE_STRUCT_TIMESPEC 1" >>confdefs.h 16044 16045esac 16046 16047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct ntptimeval" >&5 16048$as_echo_n "checking for struct ntptimeval... " >&6; } 16049if ${ntp_cv_struct_ntptimeval+:} false; then : 16050 $as_echo_n "(cached) " >&6 16051else 16052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16053/* end confdefs.h. */ 16054 16055 #include <sys/time.h> 16056 #include <sys/timex.h> 16057 16058int 16059main () 16060{ 16061 16062 struct ntptimeval n; 16063 16064 16065 ; 16066 return 0; 16067} 16068_ACEOF 16069if ac_fn_c_try_compile "$LINENO"; then : 16070 ntp_cv_struct_ntptimeval=yes 16071else 16072 ntp_cv_struct_ntptimeval=no 16073 16074fi 16075rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16076 16077fi 16078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_ntptimeval" >&5 16079$as_echo "$ntp_cv_struct_ntptimeval" >&6; } 16080case "$ntp_cv_struct_ntptimeval" in 16081 yes) 16082 16083$as_echo "#define HAVE_STRUCT_NTPTIMEVAL 1" >>confdefs.h 16084 16085esac 16086 16087for ac_header in md5.h 16088do : 16089 ac_fn_c_check_header_compile "$LINENO" "md5.h" "ac_cv_header_md5_h" " 16090 #ifdef HAVE_SYS_TYPES_H 16091 # include <sys/types.h> 16092 #endif 16093 16094 16095" 16096if test "x$ac_cv_header_md5_h" = xyes; then : 16097 cat >>confdefs.h <<_ACEOF 16098#define HAVE_MD5_H 1 16099_ACEOF 16100 16101fi 16102 16103done 16104 16105 16106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing MD5Init" >&5 16107$as_echo_n "checking for library containing MD5Init... " >&6; } 16108if ${ac_cv_search_MD5Init+:} false; then : 16109 $as_echo_n "(cached) " >&6 16110else 16111 ac_func_search_save_LIBS=$LIBS 16112cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16113/* end confdefs.h. */ 16114 16115/* Override any GCC internal prototype to avoid an error. 16116 Use char because int might match the return type of a GCC 16117 builtin and then its argument prototype would still apply. */ 16118#ifdef __cplusplus 16119extern "C" 16120#endif 16121char MD5Init (); 16122int 16123main () 16124{ 16125return MD5Init (); 16126 ; 16127 return 0; 16128} 16129_ACEOF 16130for ac_lib in '' md5 md; do 16131 if test -z "$ac_lib"; then 16132 ac_res="none required" 16133 else 16134 ac_res=-l$ac_lib 16135 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 16136 fi 16137 if ac_fn_c_try_link "$LINENO"; then : 16138 ac_cv_search_MD5Init=$ac_res 16139fi 16140rm -f core conftest.err conftest.$ac_objext \ 16141 conftest$ac_exeext 16142 if ${ac_cv_search_MD5Init+:} false; then : 16143 break 16144fi 16145done 16146if ${ac_cv_search_MD5Init+:} false; then : 16147 16148else 16149 ac_cv_search_MD5Init=no 16150fi 16151rm conftest.$ac_ext 16152LIBS=$ac_func_search_save_LIBS 16153fi 16154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_MD5Init" >&5 16155$as_echo "$ac_cv_search_MD5Init" >&6; } 16156ac_res=$ac_cv_search_MD5Init 16157if test "$ac_res" != no; then : 16158 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 16159 16160fi 16161 16162for ac_func in MD5Init sysconf getdtablesize sigaction sigset sigvec 16163do : 16164 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 16165ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 16166if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 16167 cat >>confdefs.h <<_ACEOF 16168#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 16169_ACEOF 16170 16171fi 16172done 16173 16174 16175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIGIO" >&5 16176$as_echo_n "checking for SIGIO... " >&6; } 16177if ${ntp_cv_hdr_def_sigio+:} false; then : 16178 $as_echo_n "(cached) " >&6 16179else 16180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16181/* end confdefs.h. */ 16182 16183 #include <signal.h> 16184 16185 #ifndef SIGIO 16186 # error 16187 #endif 16188 16189_ACEOF 16190if ac_fn_c_try_cpp "$LINENO"; then : 16191 ntp_cv_hdr_def_sigio=yes 16192else 16193 ntp_cv_hdr_def_sigio=no 16194 16195fi 16196rm -f conftest.err conftest.i conftest.$ac_ext 16197 16198fi 16199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_hdr_def_sigio" >&5 16200$as_echo "$ntp_cv_hdr_def_sigio" >&6; } 16201 16202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to use SIGIO" >&5 16203$as_echo_n "checking if we want to use SIGIO... " >&6; } 16204ans=no 16205case "$ntp_cv_hdr_def_sigio" in 16206 yes) 16207 ans=yes 16208 case "$host" in 16209 alpha*-dec-osf4*|alpha*-dec-osf5*) 16210 ans=no 16211 ;; 16212 *-convex-*) 16213 ans=no 16214 ;; 16215 *-dec-*) 16216 ans=no 16217 ;; 16218 *-pc-cygwin*) 16219 ans=no 16220 ;; 16221 *-sni-sysv*) 16222 ans=no 16223 ;; 16224 *-stratus-vos) 16225 ans=no 16226 ;; 16227 *-univel-sysv*) 16228 ans=no 16229 ;; 16230 *-*-irix6*) 16231 ans=no 16232 ;; 16233 *-*-freebsd*) 16234 ans=no 16235 ;; 16236 *-*-*linux*) 16237 ans=no 16238 ;; 16239 *-*-unicosmp*) 16240 ans=no 16241 ;; 16242 *-*-kfreebsd*) 16243 ans=no 16244 ;; 16245 m68k-*-mint*) 16246 ans=no 16247 ;; 16248 esac 16249 ;; 16250esac 16251case "$ans" in 16252 yes) 16253 16254$as_echo "#define HAVE_SIGNALED_IO 1" >>confdefs.h 16255 16256esac 16257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 16258$as_echo "$ans" >&6; } 16259 16260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIGPOLL" >&5 16261$as_echo_n "checking for SIGPOLL... " >&6; } 16262if ${ntp_cv_hdr_def_sigpoll+:} false; then : 16263 $as_echo_n "(cached) " >&6 16264else 16265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16266/* end confdefs.h. */ 16267 16268 #include <signal.h> 16269 16270 #ifndef SIGPOLL 16271 # error 16272 #endif 16273 16274_ACEOF 16275if ac_fn_c_try_cpp "$LINENO"; then : 16276 ntp_cv_hdr_def_sigpoll=yes 16277else 16278 ntp_cv_hdr_def_sigpoll=no 16279 16280fi 16281rm -f conftest.err conftest.i conftest.$ac_ext 16282 16283fi 16284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_hdr_def_sigpoll" >&5 16285$as_echo "$ntp_cv_hdr_def_sigpoll" >&6; } 16286 16287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can use SIGPOLL for UDP I/O" >&5 16288$as_echo_n "checking if we can use SIGPOLL for UDP I/O... " >&6; } 16289ans=no 16290case "$ntp_cv_hdr_def_sigpoll" in 16291 yes) 16292 case "$host" in 16293 mips-sgi-irix*) 16294 ans=no 16295 ;; 16296 vax-dec-bsd) 16297 ans=no 16298 ;; 16299 *-pc-cygwin*) 16300 ans=no 16301 ;; 16302 *-sni-sysv*) 16303 ans=no 16304 ;; 16305 *-stratus-vos) 16306 ans=no 16307 ;; 16308 *-*-aix[4-9]*) 16309 # XXX Only verified thru AIX6 16310 ans=no 16311 ;; 16312 *-*-hpux*) 16313 ans=no 16314 ;; 16315 *-*-*linux*) 16316 ans=no 16317 ;; 16318 *-*-osf*) 16319 ans=no 16320 ;; 16321 *-*-qnx*) 16322 ans=no 16323 ;; 16324 *-*-sunos*) 16325 ans=no 16326 ;; 16327 *-*-solaris*) 16328 ans=no 16329 ;; 16330 *-*-ultrix*) 16331 ans=no 16332 ;; 16333 *-*-unicosmp*) 16334 ans=no 16335 ;; 16336 *-*-kfreebsd*) 16337 ans=no 16338 ;; 16339 *) ans=yes 16340 ;; 16341 esac 16342 ;; 16343esac 16344case "$ans" in 16345 yes) 16346 16347$as_echo "#define USE_UDP_SIGPOLL 1" >>confdefs.h 16348 16349esac 16350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 16351$as_echo "$ans" >&6; } 16352 16353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can use SIGPOLL for TTY I/O" >&5 16354$as_echo_n "checking if we can use SIGPOLL for TTY I/O... " >&6; } 16355ans=no 16356case "$ntp_cv_hdr_def_sigpoll" in 16357 yes) 16358 case "$host" in 16359 mips-sgi-irix*) 16360 ans=no 16361 ;; 16362 vax-dec-bsd) 16363 ans=no 16364 ;; 16365 *-pc-cygwin*) 16366 ans=no 16367 ;; 16368 *-sni-sysv*) 16369 ans=no 16370 ;; 16371 *-stratus-vos) 16372 ans=no 16373 ;; 16374 *-*-aix[4-9]*) 16375 # XXX Only verified thru AIX6 16376 ans=no 16377 ;; 16378 *-*-hpux*) 16379 ans=no 16380 ;; 16381 *-*-*linux*) 16382 ans=no 16383 ;; 16384 *-*-osf*) 16385 ans=no 16386 ;; 16387 *-*-sunos*) 16388 ans=no 16389 ;; 16390 *-*-ultrix*) 16391 ans=no 16392 ;; 16393 *-*-qnx*) 16394 ans=no 16395 ;; 16396 *-*-unicosmp*) 16397 ans=no 16398 ;; 16399 *-*-kfreebsd*) 16400 ans=no 16401 ;; 16402 *) ans=yes 16403 ;; 16404 esac 16405 ;; 16406esac 16407case "$ans" in 16408 yes) 16409 16410$as_echo "#define USE_TTY_SIGPOLL 1" >>confdefs.h 16411 16412esac 16413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 16414$as_echo "$ans" >&6; } 16415 16416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking number of arguments to gettimeofday()" >&5 16417$as_echo_n "checking number of arguments to gettimeofday()... " >&6; } 16418if ${ntp_cv_func_Xettimeofday_nargs+:} false; then : 16419 $as_echo_n "(cached) " >&6 16420else 16421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16422/* end confdefs.h. */ 16423 16424 #include <sys/time.h> 16425 16426int 16427main () 16428{ 16429 16430 gettimeofday(0, 0); 16431 settimeofday(0, 0); 16432 16433 16434 ; 16435 return 0; 16436} 16437_ACEOF 16438if ac_fn_c_try_compile "$LINENO"; then : 16439 ntp_cv_func_Xettimeofday_nargs=2 16440else 16441 ntp_cv_func_Xettimeofday_nargs=1 16442 16443fi 16444rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16445 16446fi 16447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_func_Xettimeofday_nargs" >&5 16448$as_echo "$ntp_cv_func_Xettimeofday_nargs" >&6; } 16449case "$ntp_cv_func_Xettimeofday_nargs" in 16450 1) 16451 16452$as_echo "#define SYSV_TIMEOFDAY 1" >>confdefs.h 16453 16454esac 16455 16456for ac_func in settimeofday 16457do : 16458 ac_fn_c_check_func "$LINENO" "settimeofday" "ac_cv_func_settimeofday" 16459if test "x$ac_cv_func_settimeofday" = xyes; then : 16460 cat >>confdefs.h <<_ACEOF 16461#define HAVE_SETTIMEOFDAY 1 16462_ACEOF 16463 16464else 16465 16466 case "$host" in 16467 *-*-mpeix*) ac_cv_func_settimeofday=yes 16468 esac 16469 16470fi 16471done 16472 16473 16474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we'll use clock_settime or settimeofday or stime" >&5 16475$as_echo_n "checking if we'll use clock_settime or settimeofday or stime... " >&6; } 16476ntp_warning='GRONK' 16477ans=none 16478case "$ac_cv_func_clock_settime$ac_cv_func_settimeofday$ac_cv_func_stime" in 16479 yes*) 16480 ntp_warning='' 16481 ans='clock_settime()' 16482 ;; 16483 noyes*) 16484 ntp_warning='But clock_settime() would be better (if we had it)' 16485 ans='settimeofday()' 16486 ;; 16487 nonoyes) 16488 ntp_warning='Which is the worst of the three' 16489 ans='stime()' 16490 ;; 16491 *) 16492 case "$build" in 16493 $host) 16494 ntp_warning='Which leaves us with nothing to use!' 16495 esac 16496esac 16497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5 16498$as_echo "$ans" >&6; } 16499case "$ntp_warning" in 16500 '') 16501 ;; 16502 *) 16503 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** $ntp_warning ***" >&5 16504$as_echo "$as_me: WARNING: *** $ntp_warning ***" >&2;} 16505 ;; 16506esac 16507 16508 16509LDADD_LIBNTP="$LDADD_LIBNTP $LIBS" 16510LIBS=$__LIBS 16511{ __LIBS=; unset __LIBS;} 16512 16513 16514 16515# Check whether --enable-shared was given. 16516if test "${enable_shared+set}" = set; then : 16517 enableval=$enable_shared; p=${PACKAGE-default} 16518 case $enableval in 16519 yes) enable_shared=yes ;; 16520 no) enable_shared=no ;; 16521 *) 16522 enable_shared=no 16523 # Look at the argument we got. We use all the common list separators. 16524 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 16525 for pkg in $enableval; do 16526 IFS=$lt_save_ifs 16527 if test "X$pkg" = "X$p"; then 16528 enable_shared=yes 16529 fi 16530 done 16531 IFS=$lt_save_ifs 16532 ;; 16533 esac 16534else 16535 enable_shared=no 16536fi 16537 16538 16539 16540 16541 16542 16543 16544 16545 16546case `pwd` in 16547 *\ * | *\ *) 16548 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 16549$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 16550esac 16551 16552 16553 16554macro_version='2.4.6' 16555macro_revision='2.4.6' 16556 16557 16558 16559 16560 16561 16562 16563 16564 16565 16566 16567 16568 16569ltmain=$ac_aux_dir/ltmain.sh 16570 16571# Backslashify metacharacters that are still active within 16572# double-quoted strings. 16573sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 16574 16575# Same as above, but do not quote variable references. 16576double_quote_subst='s/\(["`\\]\)/\\\1/g' 16577 16578# Sed substitution to delay expansion of an escaped shell variable in a 16579# double_quote_subst'ed string. 16580delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 16581 16582# Sed substitution to delay expansion of an escaped single quote. 16583delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 16584 16585# Sed substitution to avoid accidental globbing in evaled expressions 16586no_glob_subst='s/\*/\\\*/g' 16587 16588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 16589$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 16590if ${lt_cv_path_NM+:} false; then : 16591 $as_echo_n "(cached) " >&6 16592else 16593 if test -n "$NM"; then 16594 # Let the user override the test. 16595 lt_cv_path_NM=$NM 16596else 16597 lt_nm_to_check=${ac_tool_prefix}nm 16598 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 16599 lt_nm_to_check="$lt_nm_to_check nm" 16600 fi 16601 for lt_tmp_nm in $lt_nm_to_check; do 16602 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 16603 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 16604 IFS=$lt_save_ifs 16605 test -z "$ac_dir" && ac_dir=. 16606 tmp_nm=$ac_dir/$lt_tmp_nm 16607 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 16608 # Check to see if the nm accepts a BSD-compat flag. 16609 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 16610 # nm: unknown option "B" ignored 16611 # Tru64's nm complains that /dev/null is an invalid object file 16612 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 16613 case $build_os in 16614 mingw*) lt_bad_file=conftest.nm/nofile ;; 16615 *) lt_bad_file=/dev/null ;; 16616 esac 16617 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 16618 *$lt_bad_file* | *'Invalid file or object type'*) 16619 lt_cv_path_NM="$tmp_nm -B" 16620 break 2 16621 ;; 16622 *) 16623 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 16624 */dev/null*) 16625 lt_cv_path_NM="$tmp_nm -p" 16626 break 2 16627 ;; 16628 *) 16629 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 16630 continue # so that we can try to find one that supports BSD flags 16631 ;; 16632 esac 16633 ;; 16634 esac 16635 fi 16636 done 16637 IFS=$lt_save_ifs 16638 done 16639 : ${lt_cv_path_NM=no} 16640fi 16641fi 16642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 16643$as_echo "$lt_cv_path_NM" >&6; } 16644if test no != "$lt_cv_path_NM"; then 16645 NM=$lt_cv_path_NM 16646else 16647 # Didn't find any BSD compatible name lister, look for dumpbin. 16648 if test -n "$DUMPBIN"; then : 16649 # Let the user override the test. 16650 else 16651 if test -n "$ac_tool_prefix"; then 16652 for ac_prog in dumpbin "link -dump" 16653 do 16654 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 16655set dummy $ac_tool_prefix$ac_prog; ac_word=$2 16656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16657$as_echo_n "checking for $ac_word... " >&6; } 16658if ${ac_cv_prog_DUMPBIN+:} false; then : 16659 $as_echo_n "(cached) " >&6 16660else 16661 if test -n "$DUMPBIN"; then 16662 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 16663else 16664as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16665for as_dir in $PATH 16666do 16667 IFS=$as_save_IFS 16668 test -z "$as_dir" && as_dir=. 16669 for ac_exec_ext in '' $ac_executable_extensions; do 16670 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16671 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 16672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16673 break 2 16674 fi 16675done 16676 done 16677IFS=$as_save_IFS 16678 16679fi 16680fi 16681DUMPBIN=$ac_cv_prog_DUMPBIN 16682if test -n "$DUMPBIN"; then 16683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 16684$as_echo "$DUMPBIN" >&6; } 16685else 16686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16687$as_echo "no" >&6; } 16688fi 16689 16690 16691 test -n "$DUMPBIN" && break 16692 done 16693fi 16694if test -z "$DUMPBIN"; then 16695 ac_ct_DUMPBIN=$DUMPBIN 16696 for ac_prog in dumpbin "link -dump" 16697do 16698 # Extract the first word of "$ac_prog", so it can be a program name with args. 16699set dummy $ac_prog; ac_word=$2 16700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16701$as_echo_n "checking for $ac_word... " >&6; } 16702if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 16703 $as_echo_n "(cached) " >&6 16704else 16705 if test -n "$ac_ct_DUMPBIN"; then 16706 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 16707else 16708as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16709for as_dir in $PATH 16710do 16711 IFS=$as_save_IFS 16712 test -z "$as_dir" && as_dir=. 16713 for ac_exec_ext in '' $ac_executable_extensions; do 16714 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16715 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 16716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16717 break 2 16718 fi 16719done 16720 done 16721IFS=$as_save_IFS 16722 16723fi 16724fi 16725ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 16726if test -n "$ac_ct_DUMPBIN"; then 16727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 16728$as_echo "$ac_ct_DUMPBIN" >&6; } 16729else 16730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16731$as_echo "no" >&6; } 16732fi 16733 16734 16735 test -n "$ac_ct_DUMPBIN" && break 16736done 16737 16738 if test "x$ac_ct_DUMPBIN" = x; then 16739 DUMPBIN=":" 16740 else 16741 case $cross_compiling:$ac_tool_warned in 16742yes:) 16743{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 16744$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 16745ac_tool_warned=yes ;; 16746esac 16747 DUMPBIN=$ac_ct_DUMPBIN 16748 fi 16749fi 16750 16751 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 16752 *COFF*) 16753 DUMPBIN="$DUMPBIN -symbols -headers" 16754 ;; 16755 *) 16756 DUMPBIN=: 16757 ;; 16758 esac 16759 fi 16760 16761 if test : != "$DUMPBIN"; then 16762 NM=$DUMPBIN 16763 fi 16764fi 16765test -z "$NM" && NM=nm 16766 16767 16768 16769 16770 16771 16772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 16773$as_echo_n "checking the name lister ($NM) interface... " >&6; } 16774if ${lt_cv_nm_interface+:} false; then : 16775 $as_echo_n "(cached) " >&6 16776else 16777 lt_cv_nm_interface="BSD nm" 16778 echo "int some_variable = 0;" > conftest.$ac_ext 16779 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 16780 (eval "$ac_compile" 2>conftest.err) 16781 cat conftest.err >&5 16782 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 16783 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 16784 cat conftest.err >&5 16785 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 16786 cat conftest.out >&5 16787 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 16788 lt_cv_nm_interface="MS dumpbin" 16789 fi 16790 rm -f conftest* 16791fi 16792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 16793$as_echo "$lt_cv_nm_interface" >&6; } 16794 16795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 16796$as_echo_n "checking whether ln -s works... " >&6; } 16797LN_S=$as_ln_s 16798if test "$LN_S" = "ln -s"; then 16799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16800$as_echo "yes" >&6; } 16801else 16802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 16803$as_echo "no, using $LN_S" >&6; } 16804fi 16805 16806# find the maximum length of command line arguments 16807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 16808$as_echo_n "checking the maximum length of command line arguments... " >&6; } 16809if ${lt_cv_sys_max_cmd_len+:} false; then : 16810 $as_echo_n "(cached) " >&6 16811else 16812 i=0 16813 teststring=ABCD 16814 16815 case $build_os in 16816 msdosdjgpp*) 16817 # On DJGPP, this test can blow up pretty badly due to problems in libc 16818 # (any single argument exceeding 2000 bytes causes a buffer overrun 16819 # during glob expansion). Even if it were fixed, the result of this 16820 # check would be larger than it should be. 16821 lt_cv_sys_max_cmd_len=12288; # 12K is about right 16822 ;; 16823 16824 gnu*) 16825 # Under GNU Hurd, this test is not required because there is 16826 # no limit to the length of command line arguments. 16827 # Libtool will interpret -1 as no limit whatsoever 16828 lt_cv_sys_max_cmd_len=-1; 16829 ;; 16830 16831 cygwin* | mingw* | cegcc*) 16832 # On Win9x/ME, this test blows up -- it succeeds, but takes 16833 # about 5 minutes as the teststring grows exponentially. 16834 # Worse, since 9x/ME are not pre-emptively multitasking, 16835 # you end up with a "frozen" computer, even though with patience 16836 # the test eventually succeeds (with a max line length of 256k). 16837 # Instead, let's just punt: use the minimum linelength reported by 16838 # all of the supported platforms: 8192 (on NT/2K/XP). 16839 lt_cv_sys_max_cmd_len=8192; 16840 ;; 16841 16842 mint*) 16843 # On MiNT this can take a long time and run out of memory. 16844 lt_cv_sys_max_cmd_len=8192; 16845 ;; 16846 16847 amigaos*) 16848 # On AmigaOS with pdksh, this test takes hours, literally. 16849 # So we just punt and use a minimum line length of 8192. 16850 lt_cv_sys_max_cmd_len=8192; 16851 ;; 16852 16853 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 16854 # This has been around since 386BSD, at least. Likely further. 16855 if test -x /sbin/sysctl; then 16856 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 16857 elif test -x /usr/sbin/sysctl; then 16858 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 16859 else 16860 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 16861 fi 16862 # And add a safety zone 16863 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 16864 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 16865 ;; 16866 16867 interix*) 16868 # We know the value 262144 and hardcode it with a safety zone (like BSD) 16869 lt_cv_sys_max_cmd_len=196608 16870 ;; 16871 16872 os2*) 16873 # The test takes a long time on OS/2. 16874 lt_cv_sys_max_cmd_len=8192 16875 ;; 16876 16877 osf*) 16878 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 16879 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 16880 # nice to cause kernel panics so lets avoid the loop below. 16881 # First set a reasonable default. 16882 lt_cv_sys_max_cmd_len=16384 16883 # 16884 if test -x /sbin/sysconfig; then 16885 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 16886 *1*) lt_cv_sys_max_cmd_len=-1 ;; 16887 esac 16888 fi 16889 ;; 16890 sco3.2v5*) 16891 lt_cv_sys_max_cmd_len=102400 16892 ;; 16893 sysv5* | sco5v6* | sysv4.2uw2*) 16894 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 16895 if test -n "$kargmax"; then 16896 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 16897 else 16898 lt_cv_sys_max_cmd_len=32768 16899 fi 16900 ;; 16901 *) 16902 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 16903 if test -n "$lt_cv_sys_max_cmd_len" && \ 16904 test undefined != "$lt_cv_sys_max_cmd_len"; then 16905 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 16906 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 16907 else 16908 # Make teststring a little bigger before we do anything with it. 16909 # a 1K string should be a reasonable start. 16910 for i in 1 2 3 4 5 6 7 8; do 16911 teststring=$teststring$teststring 16912 done 16913 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 16914 # If test is not a shell built-in, we'll probably end up computing a 16915 # maximum length that is only half of the actual maximum length, but 16916 # we can't tell. 16917 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 16918 = "X$teststring$teststring"; } >/dev/null 2>&1 && 16919 test 17 != "$i" # 1/2 MB should be enough 16920 do 16921 i=`expr $i + 1` 16922 teststring=$teststring$teststring 16923 done 16924 # Only check the string length outside the loop. 16925 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 16926 teststring= 16927 # Add a significant safety factor because C++ compilers can tack on 16928 # massive amounts of additional arguments before passing them to the 16929 # linker. It appears as though 1/2 is a usable value. 16930 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 16931 fi 16932 ;; 16933 esac 16934 16935fi 16936 16937if test -n "$lt_cv_sys_max_cmd_len"; then 16938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 16939$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 16940else 16941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 16942$as_echo "none" >&6; } 16943fi 16944max_cmd_len=$lt_cv_sys_max_cmd_len 16945 16946 16947 16948 16949 16950 16951: ${CP="cp -f"} 16952: ${MV="mv -f"} 16953: ${RM="rm -f"} 16954 16955if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 16956 lt_unset=unset 16957else 16958 lt_unset=false 16959fi 16960 16961 16962 16963 16964 16965# test EBCDIC or ASCII 16966case `echo X|tr X '\101'` in 16967 A) # ASCII based system 16968 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 16969 lt_SP2NL='tr \040 \012' 16970 lt_NL2SP='tr \015\012 \040\040' 16971 ;; 16972 *) # EBCDIC based system 16973 lt_SP2NL='tr \100 \n' 16974 lt_NL2SP='tr \r\n \100\100' 16975 ;; 16976esac 16977 16978 16979 16980 16981 16982 16983 16984 16985 16986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 16987$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 16988if ${lt_cv_to_host_file_cmd+:} false; then : 16989 $as_echo_n "(cached) " >&6 16990else 16991 case $host in 16992 *-*-mingw* ) 16993 case $build in 16994 *-*-mingw* ) # actually msys 16995 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 16996 ;; 16997 *-*-cygwin* ) 16998 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 16999 ;; 17000 * ) # otherwise, assume *nix 17001 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 17002 ;; 17003 esac 17004 ;; 17005 *-*-cygwin* ) 17006 case $build in 17007 *-*-mingw* ) # actually msys 17008 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 17009 ;; 17010 *-*-cygwin* ) 17011 lt_cv_to_host_file_cmd=func_convert_file_noop 17012 ;; 17013 * ) # otherwise, assume *nix 17014 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 17015 ;; 17016 esac 17017 ;; 17018 * ) # unhandled hosts (and "normal" native builds) 17019 lt_cv_to_host_file_cmd=func_convert_file_noop 17020 ;; 17021esac 17022 17023fi 17024 17025to_host_file_cmd=$lt_cv_to_host_file_cmd 17026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 17027$as_echo "$lt_cv_to_host_file_cmd" >&6; } 17028 17029 17030 17031 17032 17033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 17034$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 17035if ${lt_cv_to_tool_file_cmd+:} false; then : 17036 $as_echo_n "(cached) " >&6 17037else 17038 #assume ordinary cross tools, or native build. 17039lt_cv_to_tool_file_cmd=func_convert_file_noop 17040case $host in 17041 *-*-mingw* ) 17042 case $build in 17043 *-*-mingw* ) # actually msys 17044 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 17045 ;; 17046 esac 17047 ;; 17048esac 17049 17050fi 17051 17052to_tool_file_cmd=$lt_cv_to_tool_file_cmd 17053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 17054$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 17055 17056 17057 17058 17059 17060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 17061$as_echo_n "checking for $LD option to reload object files... " >&6; } 17062if ${lt_cv_ld_reload_flag+:} false; then : 17063 $as_echo_n "(cached) " >&6 17064else 17065 lt_cv_ld_reload_flag='-r' 17066fi 17067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 17068$as_echo "$lt_cv_ld_reload_flag" >&6; } 17069reload_flag=$lt_cv_ld_reload_flag 17070case $reload_flag in 17071"" | " "*) ;; 17072*) reload_flag=" $reload_flag" ;; 17073esac 17074reload_cmds='$LD$reload_flag -o $output$reload_objs' 17075case $host_os in 17076 cygwin* | mingw* | pw32* | cegcc*) 17077 if test yes != "$GCC"; then 17078 reload_cmds=false 17079 fi 17080 ;; 17081 darwin*) 17082 if test yes = "$GCC"; then 17083 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 17084 else 17085 reload_cmds='$LD$reload_flag -o $output$reload_objs' 17086 fi 17087 ;; 17088esac 17089 17090 17091 17092 17093 17094 17095 17096 17097 17098if test -n "$ac_tool_prefix"; then 17099 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 17100set dummy ${ac_tool_prefix}objdump; ac_word=$2 17101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17102$as_echo_n "checking for $ac_word... " >&6; } 17103if ${ac_cv_prog_OBJDUMP+:} false; then : 17104 $as_echo_n "(cached) " >&6 17105else 17106 if test -n "$OBJDUMP"; then 17107 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 17108else 17109as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17110for as_dir in $PATH 17111do 17112 IFS=$as_save_IFS 17113 test -z "$as_dir" && as_dir=. 17114 for ac_exec_ext in '' $ac_executable_extensions; do 17115 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17116 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 17117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17118 break 2 17119 fi 17120done 17121 done 17122IFS=$as_save_IFS 17123 17124fi 17125fi 17126OBJDUMP=$ac_cv_prog_OBJDUMP 17127if test -n "$OBJDUMP"; then 17128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 17129$as_echo "$OBJDUMP" >&6; } 17130else 17131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17132$as_echo "no" >&6; } 17133fi 17134 17135 17136fi 17137if test -z "$ac_cv_prog_OBJDUMP"; then 17138 ac_ct_OBJDUMP=$OBJDUMP 17139 # Extract the first word of "objdump", so it can be a program name with args. 17140set dummy objdump; ac_word=$2 17141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17142$as_echo_n "checking for $ac_word... " >&6; } 17143if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 17144 $as_echo_n "(cached) " >&6 17145else 17146 if test -n "$ac_ct_OBJDUMP"; then 17147 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 17148else 17149as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17150for as_dir in $PATH 17151do 17152 IFS=$as_save_IFS 17153 test -z "$as_dir" && as_dir=. 17154 for ac_exec_ext in '' $ac_executable_extensions; do 17155 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17156 ac_cv_prog_ac_ct_OBJDUMP="objdump" 17157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17158 break 2 17159 fi 17160done 17161 done 17162IFS=$as_save_IFS 17163 17164fi 17165fi 17166ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 17167if test -n "$ac_ct_OBJDUMP"; then 17168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 17169$as_echo "$ac_ct_OBJDUMP" >&6; } 17170else 17171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17172$as_echo "no" >&6; } 17173fi 17174 17175 if test "x$ac_ct_OBJDUMP" = x; then 17176 OBJDUMP="false" 17177 else 17178 case $cross_compiling:$ac_tool_warned in 17179yes:) 17180{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 17181$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 17182ac_tool_warned=yes ;; 17183esac 17184 OBJDUMP=$ac_ct_OBJDUMP 17185 fi 17186else 17187 OBJDUMP="$ac_cv_prog_OBJDUMP" 17188fi 17189 17190test -z "$OBJDUMP" && OBJDUMP=objdump 17191 17192 17193 17194 17195 17196 17197 17198 17199 17200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 17201$as_echo_n "checking how to recognize dependent libraries... " >&6; } 17202if ${lt_cv_deplibs_check_method+:} false; then : 17203 $as_echo_n "(cached) " >&6 17204else 17205 lt_cv_file_magic_cmd='$MAGIC_CMD' 17206lt_cv_file_magic_test_file= 17207lt_cv_deplibs_check_method='unknown' 17208# Need to set the preceding variable on all platforms that support 17209# interlibrary dependencies. 17210# 'none' -- dependencies not supported. 17211# 'unknown' -- same as none, but documents that we really don't know. 17212# 'pass_all' -- all dependencies passed with no checks. 17213# 'test_compile' -- check by making test program. 17214# 'file_magic [[regex]]' -- check by looking for files in library path 17215# that responds to the $file_magic_cmd with a given extended regex. 17216# If you have 'file' or equivalent on your system and you're not sure 17217# whether 'pass_all' will *always* work, you probably want this one. 17218 17219case $host_os in 17220aix[4-9]*) 17221 lt_cv_deplibs_check_method=pass_all 17222 ;; 17223 17224beos*) 17225 lt_cv_deplibs_check_method=pass_all 17226 ;; 17227 17228bsdi[45]*) 17229 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 17230 lt_cv_file_magic_cmd='/usr/bin/file -L' 17231 lt_cv_file_magic_test_file=/shlib/libc.so 17232 ;; 17233 17234cygwin*) 17235 # func_win32_libid is a shell function defined in ltmain.sh 17236 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 17237 lt_cv_file_magic_cmd='func_win32_libid' 17238 ;; 17239 17240mingw* | pw32*) 17241 # Base MSYS/MinGW do not provide the 'file' command needed by 17242 # func_win32_libid shell function, so use a weaker test based on 'objdump', 17243 # unless we find 'file', for example because we are cross-compiling. 17244 if ( file / ) >/dev/null 2>&1; then 17245 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 17246 lt_cv_file_magic_cmd='func_win32_libid' 17247 else 17248 # Keep this pattern in sync with the one in func_win32_libid. 17249 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 17250 lt_cv_file_magic_cmd='$OBJDUMP -f' 17251 fi 17252 ;; 17253 17254cegcc*) 17255 # use the weaker test based on 'objdump'. See mingw*. 17256 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 17257 lt_cv_file_magic_cmd='$OBJDUMP -f' 17258 ;; 17259 17260darwin* | rhapsody*) 17261 lt_cv_deplibs_check_method=pass_all 17262 ;; 17263 17264freebsd* | dragonfly*) 17265 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 17266 case $host_cpu in 17267 i*86 ) 17268 # Not sure whether the presence of OpenBSD here was a mistake. 17269 # Let's accept both of them until this is cleared up. 17270 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 17271 lt_cv_file_magic_cmd=/usr/bin/file 17272 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 17273 ;; 17274 esac 17275 else 17276 lt_cv_deplibs_check_method=pass_all 17277 fi 17278 ;; 17279 17280haiku*) 17281 lt_cv_deplibs_check_method=pass_all 17282 ;; 17283 17284hpux10.20* | hpux11*) 17285 lt_cv_file_magic_cmd=/usr/bin/file 17286 case $host_cpu in 17287 ia64*) 17288 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 17289 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 17290 ;; 17291 hppa*64*) 17292 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]' 17293 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 17294 ;; 17295 *) 17296 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 17297 lt_cv_file_magic_test_file=/usr/lib/libc.sl 17298 ;; 17299 esac 17300 ;; 17301 17302interix[3-9]*) 17303 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 17304 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 17305 ;; 17306 17307irix5* | irix6* | nonstopux*) 17308 case $LD in 17309 *-32|*"-32 ") libmagic=32-bit;; 17310 *-n32|*"-n32 ") libmagic=N32;; 17311 *-64|*"-64 ") libmagic=64-bit;; 17312 *) libmagic=never-match;; 17313 esac 17314 lt_cv_deplibs_check_method=pass_all 17315 ;; 17316 17317# This must be glibc/ELF. 17318linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 17319 lt_cv_deplibs_check_method=pass_all 17320 ;; 17321 17322netbsd*) 17323 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 17324 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 17325 else 17326 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 17327 fi 17328 ;; 17329 17330newos6*) 17331 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 17332 lt_cv_file_magic_cmd=/usr/bin/file 17333 lt_cv_file_magic_test_file=/usr/lib/libnls.so 17334 ;; 17335 17336*nto* | *qnx*) 17337 lt_cv_deplibs_check_method=pass_all 17338 ;; 17339 17340openbsd* | bitrig*) 17341 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 17342 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 17343 else 17344 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 17345 fi 17346 ;; 17347 17348osf3* | osf4* | osf5*) 17349 lt_cv_deplibs_check_method=pass_all 17350 ;; 17351 17352rdos*) 17353 lt_cv_deplibs_check_method=pass_all 17354 ;; 17355 17356solaris*) 17357 lt_cv_deplibs_check_method=pass_all 17358 ;; 17359 17360sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 17361 lt_cv_deplibs_check_method=pass_all 17362 ;; 17363 17364sysv4 | sysv4.3*) 17365 case $host_vendor in 17366 motorola) 17367 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]' 17368 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 17369 ;; 17370 ncr) 17371 lt_cv_deplibs_check_method=pass_all 17372 ;; 17373 sequent) 17374 lt_cv_file_magic_cmd='/bin/file' 17375 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 17376 ;; 17377 sni) 17378 lt_cv_file_magic_cmd='/bin/file' 17379 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 17380 lt_cv_file_magic_test_file=/lib/libc.so 17381 ;; 17382 siemens) 17383 lt_cv_deplibs_check_method=pass_all 17384 ;; 17385 pc) 17386 lt_cv_deplibs_check_method=pass_all 17387 ;; 17388 esac 17389 ;; 17390 17391tpf*) 17392 lt_cv_deplibs_check_method=pass_all 17393 ;; 17394os2*) 17395 lt_cv_deplibs_check_method=pass_all 17396 ;; 17397esac 17398 17399fi 17400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 17401$as_echo "$lt_cv_deplibs_check_method" >&6; } 17402 17403file_magic_glob= 17404want_nocaseglob=no 17405if test "$build" = "$host"; then 17406 case $host_os in 17407 mingw* | pw32*) 17408 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 17409 want_nocaseglob=yes 17410 else 17411 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 17412 fi 17413 ;; 17414 esac 17415fi 17416 17417file_magic_cmd=$lt_cv_file_magic_cmd 17418deplibs_check_method=$lt_cv_deplibs_check_method 17419test -z "$deplibs_check_method" && deplibs_check_method=unknown 17420 17421 17422 17423 17424 17425 17426 17427 17428 17429 17430 17431 17432 17433 17434 17435 17436 17437 17438 17439 17440 17441 17442if test -n "$ac_tool_prefix"; then 17443 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 17444set dummy ${ac_tool_prefix}dlltool; ac_word=$2 17445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17446$as_echo_n "checking for $ac_word... " >&6; } 17447if ${ac_cv_prog_DLLTOOL+:} false; then : 17448 $as_echo_n "(cached) " >&6 17449else 17450 if test -n "$DLLTOOL"; then 17451 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 17452else 17453as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17454for as_dir in $PATH 17455do 17456 IFS=$as_save_IFS 17457 test -z "$as_dir" && as_dir=. 17458 for ac_exec_ext in '' $ac_executable_extensions; do 17459 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17460 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 17461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17462 break 2 17463 fi 17464done 17465 done 17466IFS=$as_save_IFS 17467 17468fi 17469fi 17470DLLTOOL=$ac_cv_prog_DLLTOOL 17471if test -n "$DLLTOOL"; then 17472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 17473$as_echo "$DLLTOOL" >&6; } 17474else 17475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17476$as_echo "no" >&6; } 17477fi 17478 17479 17480fi 17481if test -z "$ac_cv_prog_DLLTOOL"; then 17482 ac_ct_DLLTOOL=$DLLTOOL 17483 # Extract the first word of "dlltool", so it can be a program name with args. 17484set dummy dlltool; ac_word=$2 17485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17486$as_echo_n "checking for $ac_word... " >&6; } 17487if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 17488 $as_echo_n "(cached) " >&6 17489else 17490 if test -n "$ac_ct_DLLTOOL"; then 17491 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 17492else 17493as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17494for as_dir in $PATH 17495do 17496 IFS=$as_save_IFS 17497 test -z "$as_dir" && as_dir=. 17498 for ac_exec_ext in '' $ac_executable_extensions; do 17499 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17500 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 17501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17502 break 2 17503 fi 17504done 17505 done 17506IFS=$as_save_IFS 17507 17508fi 17509fi 17510ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 17511if test -n "$ac_ct_DLLTOOL"; then 17512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 17513$as_echo "$ac_ct_DLLTOOL" >&6; } 17514else 17515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17516$as_echo "no" >&6; } 17517fi 17518 17519 if test "x$ac_ct_DLLTOOL" = x; then 17520 DLLTOOL="false" 17521 else 17522 case $cross_compiling:$ac_tool_warned in 17523yes:) 17524{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 17525$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 17526ac_tool_warned=yes ;; 17527esac 17528 DLLTOOL=$ac_ct_DLLTOOL 17529 fi 17530else 17531 DLLTOOL="$ac_cv_prog_DLLTOOL" 17532fi 17533 17534test -z "$DLLTOOL" && DLLTOOL=dlltool 17535 17536 17537 17538 17539 17540 17541 17542 17543 17544 17545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 17546$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 17547if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 17548 $as_echo_n "(cached) " >&6 17549else 17550 lt_cv_sharedlib_from_linklib_cmd='unknown' 17551 17552case $host_os in 17553cygwin* | mingw* | pw32* | cegcc*) 17554 # two different shell functions defined in ltmain.sh; 17555 # decide which one to use based on capabilities of $DLLTOOL 17556 case `$DLLTOOL --help 2>&1` in 17557 *--identify-strict*) 17558 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 17559 ;; 17560 *) 17561 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 17562 ;; 17563 esac 17564 ;; 17565*) 17566 # fallback: assume linklib IS sharedlib 17567 lt_cv_sharedlib_from_linklib_cmd=$ECHO 17568 ;; 17569esac 17570 17571fi 17572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 17573$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 17574sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 17575test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 17576 17577 17578 17579 17580 17581 17582 17583if test -n "$ac_tool_prefix"; then 17584 for ac_prog in ar 17585 do 17586 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 17587set dummy $ac_tool_prefix$ac_prog; ac_word=$2 17588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17589$as_echo_n "checking for $ac_word... " >&6; } 17590if ${ac_cv_prog_AR+:} false; then : 17591 $as_echo_n "(cached) " >&6 17592else 17593 if test -n "$AR"; then 17594 ac_cv_prog_AR="$AR" # Let the user override the test. 17595else 17596as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17597for as_dir in $PATH 17598do 17599 IFS=$as_save_IFS 17600 test -z "$as_dir" && as_dir=. 17601 for ac_exec_ext in '' $ac_executable_extensions; do 17602 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17603 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 17604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17605 break 2 17606 fi 17607done 17608 done 17609IFS=$as_save_IFS 17610 17611fi 17612fi 17613AR=$ac_cv_prog_AR 17614if test -n "$AR"; then 17615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 17616$as_echo "$AR" >&6; } 17617else 17618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17619$as_echo "no" >&6; } 17620fi 17621 17622 17623 test -n "$AR" && break 17624 done 17625fi 17626if test -z "$AR"; then 17627 ac_ct_AR=$AR 17628 for ac_prog in ar 17629do 17630 # Extract the first word of "$ac_prog", so it can be a program name with args. 17631set dummy $ac_prog; ac_word=$2 17632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17633$as_echo_n "checking for $ac_word... " >&6; } 17634if ${ac_cv_prog_ac_ct_AR+:} false; then : 17635 $as_echo_n "(cached) " >&6 17636else 17637 if test -n "$ac_ct_AR"; then 17638 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 17639else 17640as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17641for as_dir in $PATH 17642do 17643 IFS=$as_save_IFS 17644 test -z "$as_dir" && as_dir=. 17645 for ac_exec_ext in '' $ac_executable_extensions; do 17646 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17647 ac_cv_prog_ac_ct_AR="$ac_prog" 17648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17649 break 2 17650 fi 17651done 17652 done 17653IFS=$as_save_IFS 17654 17655fi 17656fi 17657ac_ct_AR=$ac_cv_prog_ac_ct_AR 17658if test -n "$ac_ct_AR"; then 17659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 17660$as_echo "$ac_ct_AR" >&6; } 17661else 17662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17663$as_echo "no" >&6; } 17664fi 17665 17666 17667 test -n "$ac_ct_AR" && break 17668done 17669 17670 if test "x$ac_ct_AR" = x; then 17671 AR="false" 17672 else 17673 case $cross_compiling:$ac_tool_warned in 17674yes:) 17675{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 17676$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 17677ac_tool_warned=yes ;; 17678esac 17679 AR=$ac_ct_AR 17680 fi 17681fi 17682 17683: ${AR=ar} 17684: ${AR_FLAGS=cru} 17685 17686 17687 17688 17689 17690 17691 17692 17693 17694 17695 17696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 17697$as_echo_n "checking for archiver @FILE support... " >&6; } 17698if ${lt_cv_ar_at_file+:} false; then : 17699 $as_echo_n "(cached) " >&6 17700else 17701 lt_cv_ar_at_file=no 17702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17703/* end confdefs.h. */ 17704 17705int 17706main () 17707{ 17708 17709 ; 17710 return 0; 17711} 17712_ACEOF 17713if ac_fn_c_try_compile "$LINENO"; then : 17714 echo conftest.$ac_objext > conftest.lst 17715 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 17716 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 17717 (eval $lt_ar_try) 2>&5 17718 ac_status=$? 17719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17720 test $ac_status = 0; } 17721 if test 0 -eq "$ac_status"; then 17722 # Ensure the archiver fails upon bogus file names. 17723 rm -f conftest.$ac_objext libconftest.a 17724 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 17725 (eval $lt_ar_try) 2>&5 17726 ac_status=$? 17727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17728 test $ac_status = 0; } 17729 if test 0 -ne "$ac_status"; then 17730 lt_cv_ar_at_file=@ 17731 fi 17732 fi 17733 rm -f conftest.* libconftest.a 17734 17735fi 17736rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17737 17738fi 17739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 17740$as_echo "$lt_cv_ar_at_file" >&6; } 17741 17742if test no = "$lt_cv_ar_at_file"; then 17743 archiver_list_spec= 17744else 17745 archiver_list_spec=$lt_cv_ar_at_file 17746fi 17747 17748 17749 17750 17751 17752 17753 17754if test -n "$ac_tool_prefix"; then 17755 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 17756set dummy ${ac_tool_prefix}strip; ac_word=$2 17757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17758$as_echo_n "checking for $ac_word... " >&6; } 17759if ${ac_cv_prog_STRIP+:} false; then : 17760 $as_echo_n "(cached) " >&6 17761else 17762 if test -n "$STRIP"; then 17763 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 17764else 17765as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17766for as_dir in $PATH 17767do 17768 IFS=$as_save_IFS 17769 test -z "$as_dir" && as_dir=. 17770 for ac_exec_ext in '' $ac_executable_extensions; do 17771 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17772 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 17773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17774 break 2 17775 fi 17776done 17777 done 17778IFS=$as_save_IFS 17779 17780fi 17781fi 17782STRIP=$ac_cv_prog_STRIP 17783if test -n "$STRIP"; then 17784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 17785$as_echo "$STRIP" >&6; } 17786else 17787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17788$as_echo "no" >&6; } 17789fi 17790 17791 17792fi 17793if test -z "$ac_cv_prog_STRIP"; then 17794 ac_ct_STRIP=$STRIP 17795 # Extract the first word of "strip", so it can be a program name with args. 17796set dummy strip; ac_word=$2 17797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17798$as_echo_n "checking for $ac_word... " >&6; } 17799if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 17800 $as_echo_n "(cached) " >&6 17801else 17802 if test -n "$ac_ct_STRIP"; then 17803 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 17804else 17805as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17806for as_dir in $PATH 17807do 17808 IFS=$as_save_IFS 17809 test -z "$as_dir" && as_dir=. 17810 for ac_exec_ext in '' $ac_executable_extensions; do 17811 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17812 ac_cv_prog_ac_ct_STRIP="strip" 17813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17814 break 2 17815 fi 17816done 17817 done 17818IFS=$as_save_IFS 17819 17820fi 17821fi 17822ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 17823if test -n "$ac_ct_STRIP"; then 17824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 17825$as_echo "$ac_ct_STRIP" >&6; } 17826else 17827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17828$as_echo "no" >&6; } 17829fi 17830 17831 if test "x$ac_ct_STRIP" = x; then 17832 STRIP=":" 17833 else 17834 case $cross_compiling:$ac_tool_warned in 17835yes:) 17836{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 17837$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 17838ac_tool_warned=yes ;; 17839esac 17840 STRIP=$ac_ct_STRIP 17841 fi 17842else 17843 STRIP="$ac_cv_prog_STRIP" 17844fi 17845 17846test -z "$STRIP" && STRIP=: 17847 17848 17849 17850 17851 17852 17853if test -n "$ac_tool_prefix"; then 17854 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 17855set dummy ${ac_tool_prefix}ranlib; ac_word=$2 17856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17857$as_echo_n "checking for $ac_word... " >&6; } 17858if ${ac_cv_prog_RANLIB+:} false; then : 17859 $as_echo_n "(cached) " >&6 17860else 17861 if test -n "$RANLIB"; then 17862 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 17863else 17864as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17865for as_dir in $PATH 17866do 17867 IFS=$as_save_IFS 17868 test -z "$as_dir" && as_dir=. 17869 for ac_exec_ext in '' $ac_executable_extensions; do 17870 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17871 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 17872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17873 break 2 17874 fi 17875done 17876 done 17877IFS=$as_save_IFS 17878 17879fi 17880fi 17881RANLIB=$ac_cv_prog_RANLIB 17882if test -n "$RANLIB"; then 17883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 17884$as_echo "$RANLIB" >&6; } 17885else 17886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17887$as_echo "no" >&6; } 17888fi 17889 17890 17891fi 17892if test -z "$ac_cv_prog_RANLIB"; then 17893 ac_ct_RANLIB=$RANLIB 17894 # Extract the first word of "ranlib", so it can be a program name with args. 17895set dummy ranlib; ac_word=$2 17896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17897$as_echo_n "checking for $ac_word... " >&6; } 17898if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 17899 $as_echo_n "(cached) " >&6 17900else 17901 if test -n "$ac_ct_RANLIB"; then 17902 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 17903else 17904as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17905for as_dir in $PATH 17906do 17907 IFS=$as_save_IFS 17908 test -z "$as_dir" && as_dir=. 17909 for ac_exec_ext in '' $ac_executable_extensions; do 17910 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17911 ac_cv_prog_ac_ct_RANLIB="ranlib" 17912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17913 break 2 17914 fi 17915done 17916 done 17917IFS=$as_save_IFS 17918 17919fi 17920fi 17921ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 17922if test -n "$ac_ct_RANLIB"; then 17923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 17924$as_echo "$ac_ct_RANLIB" >&6; } 17925else 17926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17927$as_echo "no" >&6; } 17928fi 17929 17930 if test "x$ac_ct_RANLIB" = x; then 17931 RANLIB=":" 17932 else 17933 case $cross_compiling:$ac_tool_warned in 17934yes:) 17935{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 17936$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 17937ac_tool_warned=yes ;; 17938esac 17939 RANLIB=$ac_ct_RANLIB 17940 fi 17941else 17942 RANLIB="$ac_cv_prog_RANLIB" 17943fi 17944 17945test -z "$RANLIB" && RANLIB=: 17946 17947 17948 17949 17950 17951 17952# Determine commands to create old-style static archives. 17953old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 17954old_postinstall_cmds='chmod 644 $oldlib' 17955old_postuninstall_cmds= 17956 17957if test -n "$RANLIB"; then 17958 case $host_os in 17959 bitrig* | openbsd*) 17960 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 17961 ;; 17962 *) 17963 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 17964 ;; 17965 esac 17966 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 17967fi 17968 17969case $host_os in 17970 darwin*) 17971 lock_old_archive_extraction=yes ;; 17972 *) 17973 lock_old_archive_extraction=no ;; 17974esac 17975 17976 17977 17978 17979 17980 17981 17982 17983 17984 17985 17986 17987 17988 17989 17990 17991 17992 17993 17994 17995 17996 17997 17998 17999 18000 18001 18002 18003 18004 18005 18006 18007 18008 18009 18010 18011 18012 18013 18014# If no C compiler was specified, use CC. 18015LTCC=${LTCC-"$CC"} 18016 18017# If no C compiler flags were specified, use CFLAGS. 18018LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 18019 18020# Allow CC to be a program name with arguments. 18021compiler=$CC 18022 18023 18024# Check for command to grab the raw symbol name followed by C symbol from nm. 18025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 18026$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 18027if ${lt_cv_sys_global_symbol_pipe+:} false; then : 18028 $as_echo_n "(cached) " >&6 18029else 18030 18031# These are sane defaults that work on at least a few old systems. 18032# [They come from Ultrix. What could be older than Ultrix?!! ;)] 18033 18034# Character class describing NM global symbol codes. 18035symcode='[BCDEGRST]' 18036 18037# Regexp to match symbols that can be accessed directly from C. 18038sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 18039 18040# Define system-specific variables. 18041case $host_os in 18042aix*) 18043 symcode='[BCDT]' 18044 ;; 18045cygwin* | mingw* | pw32* | cegcc*) 18046 symcode='[ABCDGISTW]' 18047 ;; 18048hpux*) 18049 if test ia64 = "$host_cpu"; then 18050 symcode='[ABCDEGRST]' 18051 fi 18052 ;; 18053irix* | nonstopux*) 18054 symcode='[BCDEGRST]' 18055 ;; 18056osf*) 18057 symcode='[BCDEGQRST]' 18058 ;; 18059solaris*) 18060 symcode='[BDRT]' 18061 ;; 18062sco3.2v5*) 18063 symcode='[DT]' 18064 ;; 18065sysv4.2uw2*) 18066 symcode='[DT]' 18067 ;; 18068sysv5* | sco5v6* | unixware* | OpenUNIX*) 18069 symcode='[ABDT]' 18070 ;; 18071sysv4) 18072 symcode='[DFNSTU]' 18073 ;; 18074esac 18075 18076# If we're using GNU nm, then use its standard symbol codes. 18077case `$NM -V 2>&1` in 18078*GNU* | *'with BFD'*) 18079 symcode='[ABCDGIRSTW]' ;; 18080esac 18081 18082if test "$lt_cv_nm_interface" = "MS dumpbin"; then 18083 # Gets list of data symbols to import. 18084 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 18085 # Adjust the below global symbol transforms to fixup imported variables. 18086 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 18087 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 18088 lt_c_name_lib_hook="\ 18089 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 18090 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 18091else 18092 # Disable hooks by default. 18093 lt_cv_sys_global_symbol_to_import= 18094 lt_cdecl_hook= 18095 lt_c_name_hook= 18096 lt_c_name_lib_hook= 18097fi 18098 18099# Transform an extracted symbol line into a proper C declaration. 18100# Some systems (esp. on ia64) link data and code symbols differently, 18101# so use this general approach. 18102lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 18103$lt_cdecl_hook\ 18104" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 18105" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 18106 18107# Transform an extracted symbol line into symbol name and symbol address 18108lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 18109$lt_c_name_hook\ 18110" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 18111" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 18112 18113# Transform an extracted symbol line into symbol name with lib prefix and 18114# symbol address. 18115lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 18116$lt_c_name_lib_hook\ 18117" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 18118" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 18119" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 18120 18121# Handle CRLF in mingw tool chain 18122opt_cr= 18123case $build_os in 18124mingw*) 18125 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 18126 ;; 18127esac 18128 18129# Try without a prefix underscore, then with it. 18130for ac_symprfx in "" "_"; do 18131 18132 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 18133 symxfrm="\\1 $ac_symprfx\\2 \\2" 18134 18135 # Write the raw and C identifiers. 18136 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 18137 # Fake it for dumpbin and say T for any non-static function, 18138 # D for any global variable and I for any imported variable. 18139 # Also find C++ and __fastcall symbols from MSVC++, 18140 # which start with @ or ?. 18141 lt_cv_sys_global_symbol_pipe="$AWK '"\ 18142" {last_section=section; section=\$ 3};"\ 18143" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 18144" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 18145" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 18146" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 18147" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 18148" \$ 0!~/External *\|/{next};"\ 18149" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 18150" {if(hide[section]) next};"\ 18151" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 18152" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 18153" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 18154" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 18155" ' prfx=^$ac_symprfx" 18156 else 18157 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 18158 fi 18159 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 18160 18161 # Check to see that the pipe works correctly. 18162 pipe_works=no 18163 18164 rm -f conftest* 18165 cat > conftest.$ac_ext <<_LT_EOF 18166#ifdef __cplusplus 18167extern "C" { 18168#endif 18169char nm_test_var; 18170void nm_test_func(void); 18171void nm_test_func(void){} 18172#ifdef __cplusplus 18173} 18174#endif 18175int main(){nm_test_var='a';nm_test_func();return(0);} 18176_LT_EOF 18177 18178 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 18179 (eval $ac_compile) 2>&5 18180 ac_status=$? 18181 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18182 test $ac_status = 0; }; then 18183 # Now try to grab the symbols. 18184 nlist=conftest.nm 18185 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 18186 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 18187 ac_status=$? 18188 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18189 test $ac_status = 0; } && test -s "$nlist"; then 18190 # Try sorting and uniquifying the output. 18191 if sort "$nlist" | uniq > "$nlist"T; then 18192 mv -f "$nlist"T "$nlist" 18193 else 18194 rm -f "$nlist"T 18195 fi 18196 18197 # Make sure that we snagged all the symbols we need. 18198 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 18199 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 18200 cat <<_LT_EOF > conftest.$ac_ext 18201/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 18202#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 18203/* DATA imports from DLLs on WIN32 can't be const, because runtime 18204 relocations are performed -- see ld's documentation on pseudo-relocs. */ 18205# define LT_DLSYM_CONST 18206#elif defined __osf__ 18207/* This system does not cope well with relocations in const data. */ 18208# define LT_DLSYM_CONST 18209#else 18210# define LT_DLSYM_CONST const 18211#endif 18212 18213#ifdef __cplusplus 18214extern "C" { 18215#endif 18216 18217_LT_EOF 18218 # Now generate the symbol file. 18219 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 18220 18221 cat <<_LT_EOF >> conftest.$ac_ext 18222 18223/* The mapping between symbol names and symbols. */ 18224LT_DLSYM_CONST struct { 18225 const char *name; 18226 void *address; 18227} 18228lt__PROGRAM__LTX_preloaded_symbols[] = 18229{ 18230 { "@PROGRAM@", (void *) 0 }, 18231_LT_EOF 18232 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 18233 cat <<\_LT_EOF >> conftest.$ac_ext 18234 {0, (void *) 0} 18235}; 18236 18237/* This works around a problem in FreeBSD linker */ 18238#ifdef FREEBSD_WORKAROUND 18239static const void *lt_preloaded_setup() { 18240 return lt__PROGRAM__LTX_preloaded_symbols; 18241} 18242#endif 18243 18244#ifdef __cplusplus 18245} 18246#endif 18247_LT_EOF 18248 # Now try linking the two files. 18249 mv conftest.$ac_objext conftstm.$ac_objext 18250 lt_globsym_save_LIBS=$LIBS 18251 lt_globsym_save_CFLAGS=$CFLAGS 18252 LIBS=conftstm.$ac_objext 18253 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 18254 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 18255 (eval $ac_link) 2>&5 18256 ac_status=$? 18257 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18258 test $ac_status = 0; } && test -s conftest$ac_exeext; then 18259 pipe_works=yes 18260 fi 18261 LIBS=$lt_globsym_save_LIBS 18262 CFLAGS=$lt_globsym_save_CFLAGS 18263 else 18264 echo "cannot find nm_test_func in $nlist" >&5 18265 fi 18266 else 18267 echo "cannot find nm_test_var in $nlist" >&5 18268 fi 18269 else 18270 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 18271 fi 18272 else 18273 echo "$progname: failed program was:" >&5 18274 cat conftest.$ac_ext >&5 18275 fi 18276 rm -rf conftest* conftst* 18277 18278 # Do not use the global_symbol_pipe unless it works. 18279 if test yes = "$pipe_works"; then 18280 break 18281 else 18282 lt_cv_sys_global_symbol_pipe= 18283 fi 18284done 18285 18286fi 18287 18288if test -z "$lt_cv_sys_global_symbol_pipe"; then 18289 lt_cv_sys_global_symbol_to_cdecl= 18290fi 18291if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 18292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 18293$as_echo "failed" >&6; } 18294else 18295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 18296$as_echo "ok" >&6; } 18297fi 18298 18299# Response file support. 18300if test "$lt_cv_nm_interface" = "MS dumpbin"; then 18301 nm_file_list_spec='@' 18302elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 18303 nm_file_list_spec='@' 18304fi 18305 18306 18307 18308 18309 18310 18311 18312 18313 18314 18315 18316 18317 18318 18319 18320 18321 18322 18323 18324 18325 18326 18327 18328 18329 18330 18331 18332 18333 18334 18335 18336 18337 18338 18339 18340 18341 18342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 18343$as_echo_n "checking for sysroot... " >&6; } 18344 18345# Check whether --with-sysroot was given. 18346if test "${with_sysroot+set}" = set; then : 18347 withval=$with_sysroot; 18348else 18349 with_sysroot=no 18350fi 18351 18352 18353lt_sysroot= 18354case $with_sysroot in #( 18355 yes) 18356 if test yes = "$GCC"; then 18357 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 18358 fi 18359 ;; #( 18360 /*) 18361 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 18362 ;; #( 18363 no|'') 18364 ;; #( 18365 *) 18366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 18367$as_echo "$with_sysroot" >&6; } 18368 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 18369 ;; 18370esac 18371 18372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 18373$as_echo "${lt_sysroot:-no}" >&6; } 18374 18375 18376 18377 18378 18379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 18380$as_echo_n "checking for a working dd... " >&6; } 18381if ${ac_cv_path_lt_DD+:} false; then : 18382 $as_echo_n "(cached) " >&6 18383else 18384 printf 0123456789abcdef0123456789abcdef >conftest.i 18385cat conftest.i conftest.i >conftest2.i 18386: ${lt_DD:=$DD} 18387if test -z "$lt_DD"; then 18388 ac_path_lt_DD_found=false 18389 # Loop through the user's path and test for each of PROGNAME-LIST 18390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18391for as_dir in $PATH 18392do 18393 IFS=$as_save_IFS 18394 test -z "$as_dir" && as_dir=. 18395 for ac_prog in dd; do 18396 for ac_exec_ext in '' $ac_executable_extensions; do 18397 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 18398 as_fn_executable_p "$ac_path_lt_DD" || continue 18399if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 18400 cmp -s conftest.i conftest.out \ 18401 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 18402fi 18403 $ac_path_lt_DD_found && break 3 18404 done 18405 done 18406 done 18407IFS=$as_save_IFS 18408 if test -z "$ac_cv_path_lt_DD"; then 18409 : 18410 fi 18411else 18412 ac_cv_path_lt_DD=$lt_DD 18413fi 18414 18415rm -f conftest.i conftest2.i conftest.out 18416fi 18417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 18418$as_echo "$ac_cv_path_lt_DD" >&6; } 18419 18420 18421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 18422$as_echo_n "checking how to truncate binary pipes... " >&6; } 18423if ${lt_cv_truncate_bin+:} false; then : 18424 $as_echo_n "(cached) " >&6 18425else 18426 printf 0123456789abcdef0123456789abcdef >conftest.i 18427cat conftest.i conftest.i >conftest2.i 18428lt_cv_truncate_bin= 18429if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 18430 cmp -s conftest.i conftest.out \ 18431 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 18432fi 18433rm -f conftest.i conftest2.i conftest.out 18434test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 18435fi 18436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 18437$as_echo "$lt_cv_truncate_bin" >&6; } 18438 18439 18440 18441 18442 18443 18444 18445# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 18446func_cc_basename () 18447{ 18448 for cc_temp in $*""; do 18449 case $cc_temp in 18450 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 18451 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 18452 \-*) ;; 18453 *) break;; 18454 esac 18455 done 18456 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 18457} 18458 18459# Check whether --enable-libtool-lock was given. 18460if test "${enable_libtool_lock+set}" = set; then : 18461 enableval=$enable_libtool_lock; 18462fi 18463 18464test no = "$enable_libtool_lock" || enable_libtool_lock=yes 18465 18466# Some flags need to be propagated to the compiler or linker for good 18467# libtool support. 18468case $host in 18469ia64-*-hpux*) 18470 # Find out what ABI is being produced by ac_compile, and set mode 18471 # options accordingly. 18472 echo 'int i;' > conftest.$ac_ext 18473 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 18474 (eval $ac_compile) 2>&5 18475 ac_status=$? 18476 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18477 test $ac_status = 0; }; then 18478 case `/usr/bin/file conftest.$ac_objext` in 18479 *ELF-32*) 18480 HPUX_IA64_MODE=32 18481 ;; 18482 *ELF-64*) 18483 HPUX_IA64_MODE=64 18484 ;; 18485 esac 18486 fi 18487 rm -rf conftest* 18488 ;; 18489*-*-irix6*) 18490 # Find out what ABI is being produced by ac_compile, and set linker 18491 # options accordingly. 18492 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 18493 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 18494 (eval $ac_compile) 2>&5 18495 ac_status=$? 18496 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18497 test $ac_status = 0; }; then 18498 if test yes = "$lt_cv_prog_gnu_ld"; then 18499 case `/usr/bin/file conftest.$ac_objext` in 18500 *32-bit*) 18501 LD="${LD-ld} -melf32bsmip" 18502 ;; 18503 *N32*) 18504 LD="${LD-ld} -melf32bmipn32" 18505 ;; 18506 *64-bit*) 18507 LD="${LD-ld} -melf64bmip" 18508 ;; 18509 esac 18510 else 18511 case `/usr/bin/file conftest.$ac_objext` in 18512 *32-bit*) 18513 LD="${LD-ld} -32" 18514 ;; 18515 *N32*) 18516 LD="${LD-ld} -n32" 18517 ;; 18518 *64-bit*) 18519 LD="${LD-ld} -64" 18520 ;; 18521 esac 18522 fi 18523 fi 18524 rm -rf conftest* 18525 ;; 18526 18527mips64*-*linux*) 18528 # Find out what ABI is being produced by ac_compile, and set linker 18529 # options accordingly. 18530 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 18531 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 18532 (eval $ac_compile) 2>&5 18533 ac_status=$? 18534 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18535 test $ac_status = 0; }; then 18536 emul=elf 18537 case `/usr/bin/file conftest.$ac_objext` in 18538 *32-bit*) 18539 emul="${emul}32" 18540 ;; 18541 *64-bit*) 18542 emul="${emul}64" 18543 ;; 18544 esac 18545 case `/usr/bin/file conftest.$ac_objext` in 18546 *MSB*) 18547 emul="${emul}btsmip" 18548 ;; 18549 *LSB*) 18550 emul="${emul}ltsmip" 18551 ;; 18552 esac 18553 case `/usr/bin/file conftest.$ac_objext` in 18554 *N32*) 18555 emul="${emul}n32" 18556 ;; 18557 esac 18558 LD="${LD-ld} -m $emul" 18559 fi 18560 rm -rf conftest* 18561 ;; 18562 18563x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 18564s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 18565 # Find out what ABI is being produced by ac_compile, and set linker 18566 # options accordingly. Note that the listed cases only cover the 18567 # situations where additional linker options are needed (such as when 18568 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 18569 # vice versa); the common cases where no linker options are needed do 18570 # not appear in the list. 18571 echo 'int i;' > conftest.$ac_ext 18572 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 18573 (eval $ac_compile) 2>&5 18574 ac_status=$? 18575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18576 test $ac_status = 0; }; then 18577 case `/usr/bin/file conftest.o` in 18578 *32-bit*) 18579 case $host in 18580 x86_64-*kfreebsd*-gnu) 18581 LD="${LD-ld} -m elf_i386_fbsd" 18582 ;; 18583 x86_64-*linux*) 18584 case `/usr/bin/file conftest.o` in 18585 *x86-64*) 18586 LD="${LD-ld} -m elf32_x86_64" 18587 ;; 18588 *) 18589 LD="${LD-ld} -m elf_i386" 18590 ;; 18591 esac 18592 ;; 18593 powerpc64le-*linux*) 18594 LD="${LD-ld} -m elf32lppclinux" 18595 ;; 18596 powerpc64-*linux*) 18597 LD="${LD-ld} -m elf32ppclinux" 18598 ;; 18599 s390x-*linux*) 18600 LD="${LD-ld} -m elf_s390" 18601 ;; 18602 sparc64-*linux*) 18603 LD="${LD-ld} -m elf32_sparc" 18604 ;; 18605 esac 18606 ;; 18607 *64-bit*) 18608 case $host in 18609 x86_64-*kfreebsd*-gnu) 18610 LD="${LD-ld} -m elf_x86_64_fbsd" 18611 ;; 18612 x86_64-*linux*) 18613 LD="${LD-ld} -m elf_x86_64" 18614 ;; 18615 powerpcle-*linux*) 18616 LD="${LD-ld} -m elf64lppc" 18617 ;; 18618 powerpc-*linux*) 18619 LD="${LD-ld} -m elf64ppc" 18620 ;; 18621 s390*-*linux*|s390*-*tpf*) 18622 LD="${LD-ld} -m elf64_s390" 18623 ;; 18624 sparc*-*linux*) 18625 LD="${LD-ld} -m elf64_sparc" 18626 ;; 18627 esac 18628 ;; 18629 esac 18630 fi 18631 rm -rf conftest* 18632 ;; 18633 18634*-*-sco3.2v5*) 18635 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 18636 SAVE_CFLAGS=$CFLAGS 18637 CFLAGS="$CFLAGS -belf" 18638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 18639$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 18640if ${lt_cv_cc_needs_belf+:} false; then : 18641 $as_echo_n "(cached) " >&6 18642else 18643 ac_ext=c 18644ac_cpp='$CPP $CPPFLAGS' 18645ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18646ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18647ac_compiler_gnu=$ac_cv_c_compiler_gnu 18648 18649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18650/* end confdefs.h. */ 18651 18652int 18653main () 18654{ 18655 18656 ; 18657 return 0; 18658} 18659_ACEOF 18660if ac_fn_c_try_link "$LINENO"; then : 18661 lt_cv_cc_needs_belf=yes 18662else 18663 lt_cv_cc_needs_belf=no 18664fi 18665rm -f core conftest.err conftest.$ac_objext \ 18666 conftest$ac_exeext conftest.$ac_ext 18667 ac_ext=c 18668ac_cpp='$CPP $CPPFLAGS' 18669ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18670ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18671ac_compiler_gnu=$ac_cv_c_compiler_gnu 18672 18673fi 18674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 18675$as_echo "$lt_cv_cc_needs_belf" >&6; } 18676 if test yes != "$lt_cv_cc_needs_belf"; then 18677 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 18678 CFLAGS=$SAVE_CFLAGS 18679 fi 18680 ;; 18681*-*solaris*) 18682 # Find out what ABI is being produced by ac_compile, and set linker 18683 # options accordingly. 18684 echo 'int i;' > conftest.$ac_ext 18685 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 18686 (eval $ac_compile) 2>&5 18687 ac_status=$? 18688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18689 test $ac_status = 0; }; then 18690 case `/usr/bin/file conftest.o` in 18691 *64-bit*) 18692 case $lt_cv_prog_gnu_ld in 18693 yes*) 18694 case $host in 18695 i?86-*-solaris*|x86_64-*-solaris*) 18696 LD="${LD-ld} -m elf_x86_64" 18697 ;; 18698 sparc*-*-solaris*) 18699 LD="${LD-ld} -m elf64_sparc" 18700 ;; 18701 esac 18702 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 18703 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 18704 LD=${LD-ld}_sol2 18705 fi 18706 ;; 18707 *) 18708 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 18709 LD="${LD-ld} -64" 18710 fi 18711 ;; 18712 esac 18713 ;; 18714 esac 18715 fi 18716 rm -rf conftest* 18717 ;; 18718esac 18719 18720need_locks=$enable_libtool_lock 18721 18722if test -n "$ac_tool_prefix"; then 18723 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 18724set dummy ${ac_tool_prefix}mt; ac_word=$2 18725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18726$as_echo_n "checking for $ac_word... " >&6; } 18727if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 18728 $as_echo_n "(cached) " >&6 18729else 18730 if test -n "$MANIFEST_TOOL"; then 18731 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 18732else 18733as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18734for as_dir in $PATH 18735do 18736 IFS=$as_save_IFS 18737 test -z "$as_dir" && as_dir=. 18738 for ac_exec_ext in '' $ac_executable_extensions; do 18739 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18740 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 18741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18742 break 2 18743 fi 18744done 18745 done 18746IFS=$as_save_IFS 18747 18748fi 18749fi 18750MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 18751if test -n "$MANIFEST_TOOL"; then 18752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 18753$as_echo "$MANIFEST_TOOL" >&6; } 18754else 18755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18756$as_echo "no" >&6; } 18757fi 18758 18759 18760fi 18761if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 18762 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 18763 # Extract the first word of "mt", so it can be a program name with args. 18764set dummy mt; ac_word=$2 18765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18766$as_echo_n "checking for $ac_word... " >&6; } 18767if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 18768 $as_echo_n "(cached) " >&6 18769else 18770 if test -n "$ac_ct_MANIFEST_TOOL"; then 18771 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 18772else 18773as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18774for as_dir in $PATH 18775do 18776 IFS=$as_save_IFS 18777 test -z "$as_dir" && as_dir=. 18778 for ac_exec_ext in '' $ac_executable_extensions; do 18779 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18780 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 18781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18782 break 2 18783 fi 18784done 18785 done 18786IFS=$as_save_IFS 18787 18788fi 18789fi 18790ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 18791if test -n "$ac_ct_MANIFEST_TOOL"; then 18792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 18793$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 18794else 18795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18796$as_echo "no" >&6; } 18797fi 18798 18799 if test "x$ac_ct_MANIFEST_TOOL" = x; then 18800 MANIFEST_TOOL=":" 18801 else 18802 case $cross_compiling:$ac_tool_warned in 18803yes:) 18804{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 18805$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 18806ac_tool_warned=yes ;; 18807esac 18808 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 18809 fi 18810else 18811 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 18812fi 18813 18814test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 18815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 18816$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 18817if ${lt_cv_path_mainfest_tool+:} false; then : 18818 $as_echo_n "(cached) " >&6 18819else 18820 lt_cv_path_mainfest_tool=no 18821 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 18822 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 18823 cat conftest.err >&5 18824 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 18825 lt_cv_path_mainfest_tool=yes 18826 fi 18827 rm -f conftest* 18828fi 18829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 18830$as_echo "$lt_cv_path_mainfest_tool" >&6; } 18831if test yes != "$lt_cv_path_mainfest_tool"; then 18832 MANIFEST_TOOL=: 18833fi 18834 18835 18836 18837 18838 18839 18840 case $host_os in 18841 rhapsody* | darwin*) 18842 if test -n "$ac_tool_prefix"; then 18843 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 18844set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 18845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18846$as_echo_n "checking for $ac_word... " >&6; } 18847if ${ac_cv_prog_DSYMUTIL+:} false; then : 18848 $as_echo_n "(cached) " >&6 18849else 18850 if test -n "$DSYMUTIL"; then 18851 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 18852else 18853as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18854for as_dir in $PATH 18855do 18856 IFS=$as_save_IFS 18857 test -z "$as_dir" && as_dir=. 18858 for ac_exec_ext in '' $ac_executable_extensions; do 18859 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18860 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 18861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18862 break 2 18863 fi 18864done 18865 done 18866IFS=$as_save_IFS 18867 18868fi 18869fi 18870DSYMUTIL=$ac_cv_prog_DSYMUTIL 18871if test -n "$DSYMUTIL"; then 18872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 18873$as_echo "$DSYMUTIL" >&6; } 18874else 18875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18876$as_echo "no" >&6; } 18877fi 18878 18879 18880fi 18881if test -z "$ac_cv_prog_DSYMUTIL"; then 18882 ac_ct_DSYMUTIL=$DSYMUTIL 18883 # Extract the first word of "dsymutil", so it can be a program name with args. 18884set dummy dsymutil; ac_word=$2 18885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18886$as_echo_n "checking for $ac_word... " >&6; } 18887if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 18888 $as_echo_n "(cached) " >&6 18889else 18890 if test -n "$ac_ct_DSYMUTIL"; then 18891 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 18892else 18893as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18894for as_dir in $PATH 18895do 18896 IFS=$as_save_IFS 18897 test -z "$as_dir" && as_dir=. 18898 for ac_exec_ext in '' $ac_executable_extensions; do 18899 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18900 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 18901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18902 break 2 18903 fi 18904done 18905 done 18906IFS=$as_save_IFS 18907 18908fi 18909fi 18910ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 18911if test -n "$ac_ct_DSYMUTIL"; then 18912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 18913$as_echo "$ac_ct_DSYMUTIL" >&6; } 18914else 18915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18916$as_echo "no" >&6; } 18917fi 18918 18919 if test "x$ac_ct_DSYMUTIL" = x; then 18920 DSYMUTIL=":" 18921 else 18922 case $cross_compiling:$ac_tool_warned in 18923yes:) 18924{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 18925$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 18926ac_tool_warned=yes ;; 18927esac 18928 DSYMUTIL=$ac_ct_DSYMUTIL 18929 fi 18930else 18931 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 18932fi 18933 18934 if test -n "$ac_tool_prefix"; then 18935 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 18936set dummy ${ac_tool_prefix}nmedit; ac_word=$2 18937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18938$as_echo_n "checking for $ac_word... " >&6; } 18939if ${ac_cv_prog_NMEDIT+:} false; then : 18940 $as_echo_n "(cached) " >&6 18941else 18942 if test -n "$NMEDIT"; then 18943 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 18944else 18945as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18946for as_dir in $PATH 18947do 18948 IFS=$as_save_IFS 18949 test -z "$as_dir" && as_dir=. 18950 for ac_exec_ext in '' $ac_executable_extensions; do 18951 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18952 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 18953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18954 break 2 18955 fi 18956done 18957 done 18958IFS=$as_save_IFS 18959 18960fi 18961fi 18962NMEDIT=$ac_cv_prog_NMEDIT 18963if test -n "$NMEDIT"; then 18964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 18965$as_echo "$NMEDIT" >&6; } 18966else 18967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18968$as_echo "no" >&6; } 18969fi 18970 18971 18972fi 18973if test -z "$ac_cv_prog_NMEDIT"; then 18974 ac_ct_NMEDIT=$NMEDIT 18975 # Extract the first word of "nmedit", so it can be a program name with args. 18976set dummy nmedit; ac_word=$2 18977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18978$as_echo_n "checking for $ac_word... " >&6; } 18979if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 18980 $as_echo_n "(cached) " >&6 18981else 18982 if test -n "$ac_ct_NMEDIT"; then 18983 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 18984else 18985as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18986for as_dir in $PATH 18987do 18988 IFS=$as_save_IFS 18989 test -z "$as_dir" && as_dir=. 18990 for ac_exec_ext in '' $ac_executable_extensions; do 18991 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18992 ac_cv_prog_ac_ct_NMEDIT="nmedit" 18993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18994 break 2 18995 fi 18996done 18997 done 18998IFS=$as_save_IFS 18999 19000fi 19001fi 19002ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 19003if test -n "$ac_ct_NMEDIT"; then 19004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 19005$as_echo "$ac_ct_NMEDIT" >&6; } 19006else 19007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19008$as_echo "no" >&6; } 19009fi 19010 19011 if test "x$ac_ct_NMEDIT" = x; then 19012 NMEDIT=":" 19013 else 19014 case $cross_compiling:$ac_tool_warned in 19015yes:) 19016{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 19017$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 19018ac_tool_warned=yes ;; 19019esac 19020 NMEDIT=$ac_ct_NMEDIT 19021 fi 19022else 19023 NMEDIT="$ac_cv_prog_NMEDIT" 19024fi 19025 19026 if test -n "$ac_tool_prefix"; then 19027 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 19028set dummy ${ac_tool_prefix}lipo; ac_word=$2 19029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19030$as_echo_n "checking for $ac_word... " >&6; } 19031if ${ac_cv_prog_LIPO+:} false; then : 19032 $as_echo_n "(cached) " >&6 19033else 19034 if test -n "$LIPO"; then 19035 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 19036else 19037as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19038for as_dir in $PATH 19039do 19040 IFS=$as_save_IFS 19041 test -z "$as_dir" && as_dir=. 19042 for ac_exec_ext in '' $ac_executable_extensions; do 19043 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19044 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 19045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19046 break 2 19047 fi 19048done 19049 done 19050IFS=$as_save_IFS 19051 19052fi 19053fi 19054LIPO=$ac_cv_prog_LIPO 19055if test -n "$LIPO"; then 19056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 19057$as_echo "$LIPO" >&6; } 19058else 19059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19060$as_echo "no" >&6; } 19061fi 19062 19063 19064fi 19065if test -z "$ac_cv_prog_LIPO"; then 19066 ac_ct_LIPO=$LIPO 19067 # Extract the first word of "lipo", so it can be a program name with args. 19068set dummy lipo; ac_word=$2 19069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19070$as_echo_n "checking for $ac_word... " >&6; } 19071if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 19072 $as_echo_n "(cached) " >&6 19073else 19074 if test -n "$ac_ct_LIPO"; then 19075 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 19076else 19077as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19078for as_dir in $PATH 19079do 19080 IFS=$as_save_IFS 19081 test -z "$as_dir" && as_dir=. 19082 for ac_exec_ext in '' $ac_executable_extensions; do 19083 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19084 ac_cv_prog_ac_ct_LIPO="lipo" 19085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19086 break 2 19087 fi 19088done 19089 done 19090IFS=$as_save_IFS 19091 19092fi 19093fi 19094ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 19095if test -n "$ac_ct_LIPO"; then 19096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 19097$as_echo "$ac_ct_LIPO" >&6; } 19098else 19099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19100$as_echo "no" >&6; } 19101fi 19102 19103 if test "x$ac_ct_LIPO" = x; then 19104 LIPO=":" 19105 else 19106 case $cross_compiling:$ac_tool_warned in 19107yes:) 19108{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 19109$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 19110ac_tool_warned=yes ;; 19111esac 19112 LIPO=$ac_ct_LIPO 19113 fi 19114else 19115 LIPO="$ac_cv_prog_LIPO" 19116fi 19117 19118 if test -n "$ac_tool_prefix"; then 19119 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 19120set dummy ${ac_tool_prefix}otool; ac_word=$2 19121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19122$as_echo_n "checking for $ac_word... " >&6; } 19123if ${ac_cv_prog_OTOOL+:} false; then : 19124 $as_echo_n "(cached) " >&6 19125else 19126 if test -n "$OTOOL"; then 19127 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 19128else 19129as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19130for as_dir in $PATH 19131do 19132 IFS=$as_save_IFS 19133 test -z "$as_dir" && as_dir=. 19134 for ac_exec_ext in '' $ac_executable_extensions; do 19135 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19136 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 19137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19138 break 2 19139 fi 19140done 19141 done 19142IFS=$as_save_IFS 19143 19144fi 19145fi 19146OTOOL=$ac_cv_prog_OTOOL 19147if test -n "$OTOOL"; then 19148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 19149$as_echo "$OTOOL" >&6; } 19150else 19151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19152$as_echo "no" >&6; } 19153fi 19154 19155 19156fi 19157if test -z "$ac_cv_prog_OTOOL"; then 19158 ac_ct_OTOOL=$OTOOL 19159 # Extract the first word of "otool", so it can be a program name with args. 19160set dummy otool; ac_word=$2 19161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19162$as_echo_n "checking for $ac_word... " >&6; } 19163if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 19164 $as_echo_n "(cached) " >&6 19165else 19166 if test -n "$ac_ct_OTOOL"; then 19167 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 19168else 19169as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19170for as_dir in $PATH 19171do 19172 IFS=$as_save_IFS 19173 test -z "$as_dir" && as_dir=. 19174 for ac_exec_ext in '' $ac_executable_extensions; do 19175 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19176 ac_cv_prog_ac_ct_OTOOL="otool" 19177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19178 break 2 19179 fi 19180done 19181 done 19182IFS=$as_save_IFS 19183 19184fi 19185fi 19186ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 19187if test -n "$ac_ct_OTOOL"; then 19188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 19189$as_echo "$ac_ct_OTOOL" >&6; } 19190else 19191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19192$as_echo "no" >&6; } 19193fi 19194 19195 if test "x$ac_ct_OTOOL" = x; then 19196 OTOOL=":" 19197 else 19198 case $cross_compiling:$ac_tool_warned in 19199yes:) 19200{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 19201$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 19202ac_tool_warned=yes ;; 19203esac 19204 OTOOL=$ac_ct_OTOOL 19205 fi 19206else 19207 OTOOL="$ac_cv_prog_OTOOL" 19208fi 19209 19210 if test -n "$ac_tool_prefix"; then 19211 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 19212set dummy ${ac_tool_prefix}otool64; ac_word=$2 19213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19214$as_echo_n "checking for $ac_word... " >&6; } 19215if ${ac_cv_prog_OTOOL64+:} false; then : 19216 $as_echo_n "(cached) " >&6 19217else 19218 if test -n "$OTOOL64"; then 19219 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 19220else 19221as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19222for as_dir in $PATH 19223do 19224 IFS=$as_save_IFS 19225 test -z "$as_dir" && as_dir=. 19226 for ac_exec_ext in '' $ac_executable_extensions; do 19227 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19228 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 19229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19230 break 2 19231 fi 19232done 19233 done 19234IFS=$as_save_IFS 19235 19236fi 19237fi 19238OTOOL64=$ac_cv_prog_OTOOL64 19239if test -n "$OTOOL64"; then 19240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 19241$as_echo "$OTOOL64" >&6; } 19242else 19243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19244$as_echo "no" >&6; } 19245fi 19246 19247 19248fi 19249if test -z "$ac_cv_prog_OTOOL64"; then 19250 ac_ct_OTOOL64=$OTOOL64 19251 # Extract the first word of "otool64", so it can be a program name with args. 19252set dummy otool64; ac_word=$2 19253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19254$as_echo_n "checking for $ac_word... " >&6; } 19255if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 19256 $as_echo_n "(cached) " >&6 19257else 19258 if test -n "$ac_ct_OTOOL64"; then 19259 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 19260else 19261as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19262for as_dir in $PATH 19263do 19264 IFS=$as_save_IFS 19265 test -z "$as_dir" && as_dir=. 19266 for ac_exec_ext in '' $ac_executable_extensions; do 19267 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19268 ac_cv_prog_ac_ct_OTOOL64="otool64" 19269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19270 break 2 19271 fi 19272done 19273 done 19274IFS=$as_save_IFS 19275 19276fi 19277fi 19278ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 19279if test -n "$ac_ct_OTOOL64"; then 19280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 19281$as_echo "$ac_ct_OTOOL64" >&6; } 19282else 19283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19284$as_echo "no" >&6; } 19285fi 19286 19287 if test "x$ac_ct_OTOOL64" = x; then 19288 OTOOL64=":" 19289 else 19290 case $cross_compiling:$ac_tool_warned in 19291yes:) 19292{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 19293$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 19294ac_tool_warned=yes ;; 19295esac 19296 OTOOL64=$ac_ct_OTOOL64 19297 fi 19298else 19299 OTOOL64="$ac_cv_prog_OTOOL64" 19300fi 19301 19302 19303 19304 19305 19306 19307 19308 19309 19310 19311 19312 19313 19314 19315 19316 19317 19318 19319 19320 19321 19322 19323 19324 19325 19326 19327 19328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 19329$as_echo_n "checking for -single_module linker flag... " >&6; } 19330if ${lt_cv_apple_cc_single_mod+:} false; then : 19331 $as_echo_n "(cached) " >&6 19332else 19333 lt_cv_apple_cc_single_mod=no 19334 if test -z "$LT_MULTI_MODULE"; then 19335 # By default we will add the -single_module flag. You can override 19336 # by either setting the environment variable LT_MULTI_MODULE 19337 # non-empty at configure time, or by adding -multi_module to the 19338 # link flags. 19339 rm -rf libconftest.dylib* 19340 echo "int foo(void){return 1;}" > conftest.c 19341 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 19342-dynamiclib -Wl,-single_module conftest.c" >&5 19343 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 19344 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 19345 _lt_result=$? 19346 # If there is a non-empty error log, and "single_module" 19347 # appears in it, assume the flag caused a linker warning 19348 if test -s conftest.err && $GREP single_module conftest.err; then 19349 cat conftest.err >&5 19350 # Otherwise, if the output was created with a 0 exit code from 19351 # the compiler, it worked. 19352 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 19353 lt_cv_apple_cc_single_mod=yes 19354 else 19355 cat conftest.err >&5 19356 fi 19357 rm -rf libconftest.dylib* 19358 rm -f conftest.* 19359 fi 19360fi 19361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 19362$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 19363 19364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 19365$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 19366if ${lt_cv_ld_exported_symbols_list+:} false; then : 19367 $as_echo_n "(cached) " >&6 19368else 19369 lt_cv_ld_exported_symbols_list=no 19370 save_LDFLAGS=$LDFLAGS 19371 echo "_main" > conftest.sym 19372 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 19373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19374/* end confdefs.h. */ 19375 19376int 19377main () 19378{ 19379 19380 ; 19381 return 0; 19382} 19383_ACEOF 19384if ac_fn_c_try_link "$LINENO"; then : 19385 lt_cv_ld_exported_symbols_list=yes 19386else 19387 lt_cv_ld_exported_symbols_list=no 19388fi 19389rm -f core conftest.err conftest.$ac_objext \ 19390 conftest$ac_exeext conftest.$ac_ext 19391 LDFLAGS=$save_LDFLAGS 19392 19393fi 19394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 19395$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 19396 19397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 19398$as_echo_n "checking for -force_load linker flag... " >&6; } 19399if ${lt_cv_ld_force_load+:} false; then : 19400 $as_echo_n "(cached) " >&6 19401else 19402 lt_cv_ld_force_load=no 19403 cat > conftest.c << _LT_EOF 19404int forced_loaded() { return 2;} 19405_LT_EOF 19406 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 19407 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 19408 echo "$AR cru libconftest.a conftest.o" >&5 19409 $AR cru libconftest.a conftest.o 2>&5 19410 echo "$RANLIB libconftest.a" >&5 19411 $RANLIB libconftest.a 2>&5 19412 cat > conftest.c << _LT_EOF 19413int main() { return 0;} 19414_LT_EOF 19415 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 19416 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 19417 _lt_result=$? 19418 if test -s conftest.err && $GREP force_load conftest.err; then 19419 cat conftest.err >&5 19420 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 19421 lt_cv_ld_force_load=yes 19422 else 19423 cat conftest.err >&5 19424 fi 19425 rm -f conftest.err libconftest.a conftest conftest.c 19426 rm -rf conftest.dSYM 19427 19428fi 19429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 19430$as_echo "$lt_cv_ld_force_load" >&6; } 19431 case $host_os in 19432 rhapsody* | darwin1.[012]) 19433 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 19434 darwin1.*) 19435 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 19436 darwin*) # darwin 5.x on 19437 # if running on 10.5 or later, the deployment target defaults 19438 # to the OS version, if on x86, and 10.4, the deployment 19439 # target defaults to 10.4. Don't you love it? 19440 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 19441 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 19442 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 19443 10.[012][,.]*) 19444 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 19445 10.*) 19446 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 19447 esac 19448 ;; 19449 esac 19450 if test yes = "$lt_cv_apple_cc_single_mod"; then 19451 _lt_dar_single_mod='$single_module' 19452 fi 19453 if test yes = "$lt_cv_ld_exported_symbols_list"; then 19454 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 19455 else 19456 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 19457 fi 19458 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 19459 _lt_dsymutil='~$DSYMUTIL $lib || :' 19460 else 19461 _lt_dsymutil= 19462 fi 19463 ;; 19464 esac 19465 19466# func_munge_path_list VARIABLE PATH 19467# ----------------------------------- 19468# VARIABLE is name of variable containing _space_ separated list of 19469# directories to be munged by the contents of PATH, which is string 19470# having a format: 19471# "DIR[:DIR]:" 19472# string "DIR[ DIR]" will be prepended to VARIABLE 19473# ":DIR[:DIR]" 19474# string "DIR[ DIR]" will be appended to VARIABLE 19475# "DIRP[:DIRP]::[DIRA:]DIRA" 19476# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 19477# "DIRA[ DIRA]" will be appended to VARIABLE 19478# "DIR[:DIR]" 19479# VARIABLE will be replaced by "DIR[ DIR]" 19480func_munge_path_list () 19481{ 19482 case x$2 in 19483 x) 19484 ;; 19485 *:) 19486 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 19487 ;; 19488 x:*) 19489 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 19490 ;; 19491 *::*) 19492 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 19493 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 19494 ;; 19495 *) 19496 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 19497 ;; 19498 esac 19499} 19500 19501for ac_header in dlfcn.h 19502do : 19503 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 19504" 19505if test "x$ac_cv_header_dlfcn_h" = xyes; then : 19506 cat >>confdefs.h <<_ACEOF 19507#define HAVE_DLFCN_H 1 19508_ACEOF 19509 19510fi 19511 19512done 19513 19514 19515 19516 19517 19518# Set options 19519 19520 19521 19522 enable_dlopen=no 19523 19524 19525 enable_win32_dll=no 19526 19527 19528 19529 # Check whether --enable-static was given. 19530if test "${enable_static+set}" = set; then : 19531 enableval=$enable_static; p=${PACKAGE-default} 19532 case $enableval in 19533 yes) enable_static=yes ;; 19534 no) enable_static=no ;; 19535 *) 19536 enable_static=no 19537 # Look at the argument we got. We use all the common list separators. 19538 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 19539 for pkg in $enableval; do 19540 IFS=$lt_save_ifs 19541 if test "X$pkg" = "X$p"; then 19542 enable_static=yes 19543 fi 19544 done 19545 IFS=$lt_save_ifs 19546 ;; 19547 esac 19548else 19549 enable_static=yes 19550fi 19551 19552 19553 19554 19555 19556 19557 19558 19559 19560 19561# Check whether --with-pic was given. 19562if test "${with_pic+set}" = set; then : 19563 withval=$with_pic; lt_p=${PACKAGE-default} 19564 case $withval in 19565 yes|no) pic_mode=$withval ;; 19566 *) 19567 pic_mode=default 19568 # Look at the argument we got. We use all the common list separators. 19569 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 19570 for lt_pkg in $withval; do 19571 IFS=$lt_save_ifs 19572 if test "X$lt_pkg" = "X$lt_p"; then 19573 pic_mode=yes 19574 fi 19575 done 19576 IFS=$lt_save_ifs 19577 ;; 19578 esac 19579else 19580 pic_mode=default 19581fi 19582 19583 19584 19585 19586 19587 19588 19589 19590 # Check whether --enable-fast-install was given. 19591if test "${enable_fast_install+set}" = set; then : 19592 enableval=$enable_fast_install; p=${PACKAGE-default} 19593 case $enableval in 19594 yes) enable_fast_install=yes ;; 19595 no) enable_fast_install=no ;; 19596 *) 19597 enable_fast_install=no 19598 # Look at the argument we got. We use all the common list separators. 19599 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 19600 for pkg in $enableval; do 19601 IFS=$lt_save_ifs 19602 if test "X$pkg" = "X$p"; then 19603 enable_fast_install=yes 19604 fi 19605 done 19606 IFS=$lt_save_ifs 19607 ;; 19608 esac 19609else 19610 enable_fast_install=yes 19611fi 19612 19613 19614 19615 19616 19617 19618 19619 19620 shared_archive_member_spec= 19621case $host,$enable_shared in 19622power*-*-aix[5-9]*,yes) 19623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 19624$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 19625 19626# Check whether --with-aix-soname was given. 19627if test "${with_aix_soname+set}" = set; then : 19628 withval=$with_aix_soname; case $withval in 19629 aix|svr4|both) 19630 ;; 19631 *) 19632 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 19633 ;; 19634 esac 19635 lt_cv_with_aix_soname=$with_aix_soname 19636else 19637 if ${lt_cv_with_aix_soname+:} false; then : 19638 $as_echo_n "(cached) " >&6 19639else 19640 lt_cv_with_aix_soname=aix 19641fi 19642 19643 with_aix_soname=$lt_cv_with_aix_soname 19644fi 19645 19646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 19647$as_echo "$with_aix_soname" >&6; } 19648 if test aix != "$with_aix_soname"; then 19649 # For the AIX way of multilib, we name the shared archive member 19650 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 19651 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 19652 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 19653 # the AIX toolchain works better with OBJECT_MODE set (default 32). 19654 if test 64 = "${OBJECT_MODE-32}"; then 19655 shared_archive_member_spec=shr_64 19656 else 19657 shared_archive_member_spec=shr 19658 fi 19659 fi 19660 ;; 19661*) 19662 with_aix_soname=aix 19663 ;; 19664esac 19665 19666 19667 19668 19669 19670 19671 19672 19673 19674 19675# This can be used to rebuild libtool when needed 19676LIBTOOL_DEPS=$ltmain 19677 19678# Always use our own libtool. 19679LIBTOOL='$(SHELL) $(top_builddir)/libtool' 19680 19681 19682 19683 19684 19685 19686 19687 19688 19689 19690 19691 19692 19693 19694 19695 19696 19697 19698 19699 19700 19701 19702 19703 19704 19705 19706 19707 19708 19709 19710test -z "$LN_S" && LN_S="ln -s" 19711 19712 19713 19714 19715 19716 19717 19718 19719 19720 19721 19722 19723 19724 19725if test -n "${ZSH_VERSION+set}"; then 19726 setopt NO_GLOB_SUBST 19727fi 19728 19729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 19730$as_echo_n "checking for objdir... " >&6; } 19731if ${lt_cv_objdir+:} false; then : 19732 $as_echo_n "(cached) " >&6 19733else 19734 rm -f .libs 2>/dev/null 19735mkdir .libs 2>/dev/null 19736if test -d .libs; then 19737 lt_cv_objdir=.libs 19738else 19739 # MS-DOS does not allow filenames that begin with a dot. 19740 lt_cv_objdir=_libs 19741fi 19742rmdir .libs 2>/dev/null 19743fi 19744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 19745$as_echo "$lt_cv_objdir" >&6; } 19746objdir=$lt_cv_objdir 19747 19748 19749 19750 19751 19752cat >>confdefs.h <<_ACEOF 19753#define LT_OBJDIR "$lt_cv_objdir/" 19754_ACEOF 19755 19756 19757 19758 19759case $host_os in 19760aix3*) 19761 # AIX sometimes has problems with the GCC collect2 program. For some 19762 # reason, if we set the COLLECT_NAMES environment variable, the problems 19763 # vanish in a puff of smoke. 19764 if test set != "${COLLECT_NAMES+set}"; then 19765 COLLECT_NAMES= 19766 export COLLECT_NAMES 19767 fi 19768 ;; 19769esac 19770 19771# Global variables: 19772ofile=libtool 19773can_build_shared=yes 19774 19775# All known linkers require a '.a' archive for static linking (except MSVC, 19776# which needs '.lib'). 19777libext=a 19778 19779with_gnu_ld=$lt_cv_prog_gnu_ld 19780 19781old_CC=$CC 19782old_CFLAGS=$CFLAGS 19783 19784# Set sane defaults for various variables 19785test -z "$CC" && CC=cc 19786test -z "$LTCC" && LTCC=$CC 19787test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 19788test -z "$LD" && LD=ld 19789test -z "$ac_objext" && ac_objext=o 19790 19791func_cc_basename $compiler 19792cc_basename=$func_cc_basename_result 19793 19794 19795# Only perform the check for file, if the check method requires it 19796test -z "$MAGIC_CMD" && MAGIC_CMD=file 19797case $deplibs_check_method in 19798file_magic*) 19799 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 19800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 19801$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 19802if ${lt_cv_path_MAGIC_CMD+:} false; then : 19803 $as_echo_n "(cached) " >&6 19804else 19805 case $MAGIC_CMD in 19806[\\/*] | ?:[\\/]*) 19807 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 19808 ;; 19809*) 19810 lt_save_MAGIC_CMD=$MAGIC_CMD 19811 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 19812 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 19813 for ac_dir in $ac_dummy; do 19814 IFS=$lt_save_ifs 19815 test -z "$ac_dir" && ac_dir=. 19816 if test -f "$ac_dir/${ac_tool_prefix}file"; then 19817 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 19818 if test -n "$file_magic_test_file"; then 19819 case $deplibs_check_method in 19820 "file_magic "*) 19821 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 19822 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 19823 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 19824 $EGREP "$file_magic_regex" > /dev/null; then 19825 : 19826 else 19827 cat <<_LT_EOF 1>&2 19828 19829*** Warning: the command libtool uses to detect shared libraries, 19830*** $file_magic_cmd, produces output that libtool cannot recognize. 19831*** The result is that libtool may fail to recognize shared libraries 19832*** as such. This will affect the creation of libtool libraries that 19833*** depend on shared libraries, but programs linked with such libtool 19834*** libraries will work regardless of this problem. Nevertheless, you 19835*** may want to report the problem to your system manager and/or to 19836*** bug-libtool@gnu.org 19837 19838_LT_EOF 19839 fi ;; 19840 esac 19841 fi 19842 break 19843 fi 19844 done 19845 IFS=$lt_save_ifs 19846 MAGIC_CMD=$lt_save_MAGIC_CMD 19847 ;; 19848esac 19849fi 19850 19851MAGIC_CMD=$lt_cv_path_MAGIC_CMD 19852if test -n "$MAGIC_CMD"; then 19853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 19854$as_echo "$MAGIC_CMD" >&6; } 19855else 19856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19857$as_echo "no" >&6; } 19858fi 19859 19860 19861 19862 19863 19864if test -z "$lt_cv_path_MAGIC_CMD"; then 19865 if test -n "$ac_tool_prefix"; then 19866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 19867$as_echo_n "checking for file... " >&6; } 19868if ${lt_cv_path_MAGIC_CMD+:} false; then : 19869 $as_echo_n "(cached) " >&6 19870else 19871 case $MAGIC_CMD in 19872[\\/*] | ?:[\\/]*) 19873 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 19874 ;; 19875*) 19876 lt_save_MAGIC_CMD=$MAGIC_CMD 19877 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 19878 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 19879 for ac_dir in $ac_dummy; do 19880 IFS=$lt_save_ifs 19881 test -z "$ac_dir" && ac_dir=. 19882 if test -f "$ac_dir/file"; then 19883 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 19884 if test -n "$file_magic_test_file"; then 19885 case $deplibs_check_method in 19886 "file_magic "*) 19887 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 19888 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 19889 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 19890 $EGREP "$file_magic_regex" > /dev/null; then 19891 : 19892 else 19893 cat <<_LT_EOF 1>&2 19894 19895*** Warning: the command libtool uses to detect shared libraries, 19896*** $file_magic_cmd, produces output that libtool cannot recognize. 19897*** The result is that libtool may fail to recognize shared libraries 19898*** as such. This will affect the creation of libtool libraries that 19899*** depend on shared libraries, but programs linked with such libtool 19900*** libraries will work regardless of this problem. Nevertheless, you 19901*** may want to report the problem to your system manager and/or to 19902*** bug-libtool@gnu.org 19903 19904_LT_EOF 19905 fi ;; 19906 esac 19907 fi 19908 break 19909 fi 19910 done 19911 IFS=$lt_save_ifs 19912 MAGIC_CMD=$lt_save_MAGIC_CMD 19913 ;; 19914esac 19915fi 19916 19917MAGIC_CMD=$lt_cv_path_MAGIC_CMD 19918if test -n "$MAGIC_CMD"; then 19919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 19920$as_echo "$MAGIC_CMD" >&6; } 19921else 19922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19923$as_echo "no" >&6; } 19924fi 19925 19926 19927 else 19928 MAGIC_CMD=: 19929 fi 19930fi 19931 19932 fi 19933 ;; 19934esac 19935 19936# Use C for the default configuration in the libtool script 19937 19938lt_save_CC=$CC 19939ac_ext=c 19940ac_cpp='$CPP $CPPFLAGS' 19941ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19942ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19943ac_compiler_gnu=$ac_cv_c_compiler_gnu 19944 19945 19946# Source file extension for C test sources. 19947ac_ext=c 19948 19949# Object file extension for compiled C test sources. 19950objext=o 19951objext=$objext 19952 19953# Code to be used in simple compile tests 19954lt_simple_compile_test_code="int some_variable = 0;" 19955 19956# Code to be used in simple link tests 19957lt_simple_link_test_code='int main(){return(0);}' 19958 19959 19960 19961 19962 19963 19964 19965# If no C compiler was specified, use CC. 19966LTCC=${LTCC-"$CC"} 19967 19968# If no C compiler flags were specified, use CFLAGS. 19969LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 19970 19971# Allow CC to be a program name with arguments. 19972compiler=$CC 19973 19974# Save the default compiler, since it gets overwritten when the other 19975# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 19976compiler_DEFAULT=$CC 19977 19978# save warnings/boilerplate of simple test code 19979ac_outfile=conftest.$ac_objext 19980echo "$lt_simple_compile_test_code" >conftest.$ac_ext 19981eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 19982_lt_compiler_boilerplate=`cat conftest.err` 19983$RM conftest* 19984 19985ac_outfile=conftest.$ac_objext 19986echo "$lt_simple_link_test_code" >conftest.$ac_ext 19987eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 19988_lt_linker_boilerplate=`cat conftest.err` 19989$RM -r conftest* 19990 19991 19992## CAVEAT EMPTOR: 19993## There is no encapsulation within the following macros, do not change 19994## the running order or otherwise move them around unless you know exactly 19995## what you are doing... 19996if test -n "$compiler"; then 19997 19998lt_prog_compiler_no_builtin_flag= 19999 20000if test yes = "$GCC"; then 20001 case $cc_basename in 20002 nvcc*) 20003 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 20004 *) 20005 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 20006 esac 20007 20008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 20009$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 20010if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 20011 $as_echo_n "(cached) " >&6 20012else 20013 lt_cv_prog_compiler_rtti_exceptions=no 20014 ac_outfile=conftest.$ac_objext 20015 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 20016 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 20017 # Insert the option either (1) after the last *FLAGS variable, or 20018 # (2) before a word containing "conftest.", or (3) at the end. 20019 # Note that $ac_compile itself does not contain backslashes and begins 20020 # with a dollar sign (not a hyphen), so the echo should work correctly. 20021 # The option is referenced via a variable to avoid confusing sed. 20022 lt_compile=`echo "$ac_compile" | $SED \ 20023 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 20024 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 20025 -e 's:$: $lt_compiler_flag:'` 20026 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 20027 (eval "$lt_compile" 2>conftest.err) 20028 ac_status=$? 20029 cat conftest.err >&5 20030 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20031 if (exit $ac_status) && test -s "$ac_outfile"; then 20032 # The compiler can only warn and ignore the option if not recognized 20033 # So say no if there are warnings other than the usual output. 20034 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 20035 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 20036 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 20037 lt_cv_prog_compiler_rtti_exceptions=yes 20038 fi 20039 fi 20040 $RM conftest* 20041 20042fi 20043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 20044$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 20045 20046if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 20047 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 20048else 20049 : 20050fi 20051 20052fi 20053 20054 20055 20056 20057 20058 20059 lt_prog_compiler_wl= 20060lt_prog_compiler_pic= 20061lt_prog_compiler_static= 20062 20063 20064 if test yes = "$GCC"; then 20065 lt_prog_compiler_wl='-Wl,' 20066 lt_prog_compiler_static='-static' 20067 20068 case $host_os in 20069 aix*) 20070 # All AIX code is PIC. 20071 if test ia64 = "$host_cpu"; then 20072 # AIX 5 now supports IA64 processor 20073 lt_prog_compiler_static='-Bstatic' 20074 fi 20075 lt_prog_compiler_pic='-fPIC' 20076 ;; 20077 20078 amigaos*) 20079 case $host_cpu in 20080 powerpc) 20081 # see comment about AmigaOS4 .so support 20082 lt_prog_compiler_pic='-fPIC' 20083 ;; 20084 m68k) 20085 # FIXME: we need at least 68020 code to build shared libraries, but 20086 # adding the '-m68020' flag to GCC prevents building anything better, 20087 # like '-m68040'. 20088 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 20089 ;; 20090 esac 20091 ;; 20092 20093 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 20094 # PIC is the default for these OSes. 20095 ;; 20096 20097 mingw* | cygwin* | pw32* | os2* | cegcc*) 20098 # This hack is so that the source file can tell whether it is being 20099 # built for inclusion in a dll (and should export symbols for example). 20100 # Although the cygwin gcc ignores -fPIC, still need this for old-style 20101 # (--disable-auto-import) libraries 20102 lt_prog_compiler_pic='-DDLL_EXPORT' 20103 case $host_os in 20104 os2*) 20105 lt_prog_compiler_static='$wl-static' 20106 ;; 20107 esac 20108 ;; 20109 20110 darwin* | rhapsody*) 20111 # PIC is the default on this platform 20112 # Common symbols not allowed in MH_DYLIB files 20113 lt_prog_compiler_pic='-fno-common' 20114 ;; 20115 20116 haiku*) 20117 # PIC is the default for Haiku. 20118 # The "-static" flag exists, but is broken. 20119 lt_prog_compiler_static= 20120 ;; 20121 20122 hpux*) 20123 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 20124 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 20125 # sets the default TLS model and affects inlining. 20126 case $host_cpu in 20127 hppa*64*) 20128 # +Z the default 20129 ;; 20130 *) 20131 lt_prog_compiler_pic='-fPIC' 20132 ;; 20133 esac 20134 ;; 20135 20136 interix[3-9]*) 20137 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 20138 # Instead, we relocate shared libraries at runtime. 20139 ;; 20140 20141 msdosdjgpp*) 20142 # Just because we use GCC doesn't mean we suddenly get shared libraries 20143 # on systems that don't support them. 20144 lt_prog_compiler_can_build_shared=no 20145 enable_shared=no 20146 ;; 20147 20148 *nto* | *qnx*) 20149 # QNX uses GNU C++, but need to define -shared option too, otherwise 20150 # it will coredump. 20151 lt_prog_compiler_pic='-fPIC -shared' 20152 ;; 20153 20154 sysv4*MP*) 20155 if test -d /usr/nec; then 20156 lt_prog_compiler_pic=-Kconform_pic 20157 fi 20158 ;; 20159 20160 *) 20161 lt_prog_compiler_pic='-fPIC' 20162 ;; 20163 esac 20164 20165 case $cc_basename in 20166 nvcc*) # Cuda Compiler Driver 2.2 20167 lt_prog_compiler_wl='-Xlinker ' 20168 if test -n "$lt_prog_compiler_pic"; then 20169 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 20170 fi 20171 ;; 20172 esac 20173 else 20174 # PORTME Check for flag to pass linker flags through the system compiler. 20175 case $host_os in 20176 aix*) 20177 lt_prog_compiler_wl='-Wl,' 20178 if test ia64 = "$host_cpu"; then 20179 # AIX 5 now supports IA64 processor 20180 lt_prog_compiler_static='-Bstatic' 20181 else 20182 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 20183 fi 20184 ;; 20185 20186 darwin* | rhapsody*) 20187 # PIC is the default on this platform 20188 # Common symbols not allowed in MH_DYLIB files 20189 lt_prog_compiler_pic='-fno-common' 20190 case $cc_basename in 20191 nagfor*) 20192 # NAG Fortran compiler 20193 lt_prog_compiler_wl='-Wl,-Wl,,' 20194 lt_prog_compiler_pic='-PIC' 20195 lt_prog_compiler_static='-Bstatic' 20196 ;; 20197 esac 20198 ;; 20199 20200 mingw* | cygwin* | pw32* | os2* | cegcc*) 20201 # This hack is so that the source file can tell whether it is being 20202 # built for inclusion in a dll (and should export symbols for example). 20203 lt_prog_compiler_pic='-DDLL_EXPORT' 20204 case $host_os in 20205 os2*) 20206 lt_prog_compiler_static='$wl-static' 20207 ;; 20208 esac 20209 ;; 20210 20211 hpux9* | hpux10* | hpux11*) 20212 lt_prog_compiler_wl='-Wl,' 20213 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 20214 # not for PA HP-UX. 20215 case $host_cpu in 20216 hppa*64*|ia64*) 20217 # +Z the default 20218 ;; 20219 *) 20220 lt_prog_compiler_pic='+Z' 20221 ;; 20222 esac 20223 # Is there a better lt_prog_compiler_static that works with the bundled CC? 20224 lt_prog_compiler_static='$wl-a ${wl}archive' 20225 ;; 20226 20227 irix5* | irix6* | nonstopux*) 20228 lt_prog_compiler_wl='-Wl,' 20229 # PIC (with -KPIC) is the default. 20230 lt_prog_compiler_static='-non_shared' 20231 ;; 20232 20233 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 20234 case $cc_basename in 20235 # old Intel for x86_64, which still supported -KPIC. 20236 ecc*) 20237 lt_prog_compiler_wl='-Wl,' 20238 lt_prog_compiler_pic='-KPIC' 20239 lt_prog_compiler_static='-static' 20240 ;; 20241 # icc used to be incompatible with GCC. 20242 # ICC 10 doesn't accept -KPIC any more. 20243 icc* | ifort*) 20244 lt_prog_compiler_wl='-Wl,' 20245 lt_prog_compiler_pic='-fPIC' 20246 lt_prog_compiler_static='-static' 20247 ;; 20248 # Lahey Fortran 8.1. 20249 lf95*) 20250 lt_prog_compiler_wl='-Wl,' 20251 lt_prog_compiler_pic='--shared' 20252 lt_prog_compiler_static='--static' 20253 ;; 20254 nagfor*) 20255 # NAG Fortran compiler 20256 lt_prog_compiler_wl='-Wl,-Wl,,' 20257 lt_prog_compiler_pic='-PIC' 20258 lt_prog_compiler_static='-Bstatic' 20259 ;; 20260 tcc*) 20261 # Fabrice Bellard et al's Tiny C Compiler 20262 lt_prog_compiler_wl='-Wl,' 20263 lt_prog_compiler_pic='-fPIC' 20264 lt_prog_compiler_static='-static' 20265 ;; 20266 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 20267 # Portland Group compilers (*not* the Pentium gcc compiler, 20268 # which looks to be a dead project) 20269 lt_prog_compiler_wl='-Wl,' 20270 lt_prog_compiler_pic='-fpic' 20271 lt_prog_compiler_static='-Bstatic' 20272 ;; 20273 ccc*) 20274 lt_prog_compiler_wl='-Wl,' 20275 # All Alpha code is PIC. 20276 lt_prog_compiler_static='-non_shared' 20277 ;; 20278 xl* | bgxl* | bgf* | mpixl*) 20279 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 20280 lt_prog_compiler_wl='-Wl,' 20281 lt_prog_compiler_pic='-qpic' 20282 lt_prog_compiler_static='-qstaticlink' 20283 ;; 20284 *) 20285 case `$CC -V 2>&1 | sed 5q` in 20286 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 20287 # Sun Fortran 8.3 passes all unrecognized flags to the linker 20288 lt_prog_compiler_pic='-KPIC' 20289 lt_prog_compiler_static='-Bstatic' 20290 lt_prog_compiler_wl='' 20291 ;; 20292 *Sun\ F* | *Sun*Fortran*) 20293 lt_prog_compiler_pic='-KPIC' 20294 lt_prog_compiler_static='-Bstatic' 20295 lt_prog_compiler_wl='-Qoption ld ' 20296 ;; 20297 *Sun\ C*) 20298 # Sun C 5.9 20299 lt_prog_compiler_pic='-KPIC' 20300 lt_prog_compiler_static='-Bstatic' 20301 lt_prog_compiler_wl='-Wl,' 20302 ;; 20303 *Intel*\ [CF]*Compiler*) 20304 lt_prog_compiler_wl='-Wl,' 20305 lt_prog_compiler_pic='-fPIC' 20306 lt_prog_compiler_static='-static' 20307 ;; 20308 *Portland\ Group*) 20309 lt_prog_compiler_wl='-Wl,' 20310 lt_prog_compiler_pic='-fpic' 20311 lt_prog_compiler_static='-Bstatic' 20312 ;; 20313 esac 20314 ;; 20315 esac 20316 ;; 20317 20318 newsos6) 20319 lt_prog_compiler_pic='-KPIC' 20320 lt_prog_compiler_static='-Bstatic' 20321 ;; 20322 20323 *nto* | *qnx*) 20324 # QNX uses GNU C++, but need to define -shared option too, otherwise 20325 # it will coredump. 20326 lt_prog_compiler_pic='-fPIC -shared' 20327 ;; 20328 20329 osf3* | osf4* | osf5*) 20330 lt_prog_compiler_wl='-Wl,' 20331 # All OSF/1 code is PIC. 20332 lt_prog_compiler_static='-non_shared' 20333 ;; 20334 20335 rdos*) 20336 lt_prog_compiler_static='-non_shared' 20337 ;; 20338 20339 solaris*) 20340 lt_prog_compiler_pic='-KPIC' 20341 lt_prog_compiler_static='-Bstatic' 20342 case $cc_basename in 20343 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 20344 lt_prog_compiler_wl='-Qoption ld ';; 20345 *) 20346 lt_prog_compiler_wl='-Wl,';; 20347 esac 20348 ;; 20349 20350 sunos4*) 20351 lt_prog_compiler_wl='-Qoption ld ' 20352 lt_prog_compiler_pic='-PIC' 20353 lt_prog_compiler_static='-Bstatic' 20354 ;; 20355 20356 sysv4 | sysv4.2uw2* | sysv4.3*) 20357 lt_prog_compiler_wl='-Wl,' 20358 lt_prog_compiler_pic='-KPIC' 20359 lt_prog_compiler_static='-Bstatic' 20360 ;; 20361 20362 sysv4*MP*) 20363 if test -d /usr/nec; then 20364 lt_prog_compiler_pic='-Kconform_pic' 20365 lt_prog_compiler_static='-Bstatic' 20366 fi 20367 ;; 20368 20369 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 20370 lt_prog_compiler_wl='-Wl,' 20371 lt_prog_compiler_pic='-KPIC' 20372 lt_prog_compiler_static='-Bstatic' 20373 ;; 20374 20375 unicos*) 20376 lt_prog_compiler_wl='-Wl,' 20377 lt_prog_compiler_can_build_shared=no 20378 ;; 20379 20380 uts4*) 20381 lt_prog_compiler_pic='-pic' 20382 lt_prog_compiler_static='-Bstatic' 20383 ;; 20384 20385 *) 20386 lt_prog_compiler_can_build_shared=no 20387 ;; 20388 esac 20389 fi 20390 20391case $host_os in 20392 # For platforms that do not support PIC, -DPIC is meaningless: 20393 *djgpp*) 20394 lt_prog_compiler_pic= 20395 ;; 20396 *) 20397 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 20398 ;; 20399esac 20400 20401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 20402$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 20403if ${lt_cv_prog_compiler_pic+:} false; then : 20404 $as_echo_n "(cached) " >&6 20405else 20406 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 20407fi 20408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 20409$as_echo "$lt_cv_prog_compiler_pic" >&6; } 20410lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 20411 20412# 20413# Check to make sure the PIC flag actually works. 20414# 20415if test -n "$lt_prog_compiler_pic"; then 20416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 20417$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 20418if ${lt_cv_prog_compiler_pic_works+:} false; then : 20419 $as_echo_n "(cached) " >&6 20420else 20421 lt_cv_prog_compiler_pic_works=no 20422 ac_outfile=conftest.$ac_objext 20423 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 20424 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 20425 # Insert the option either (1) after the last *FLAGS variable, or 20426 # (2) before a word containing "conftest.", or (3) at the end. 20427 # Note that $ac_compile itself does not contain backslashes and begins 20428 # with a dollar sign (not a hyphen), so the echo should work correctly. 20429 # The option is referenced via a variable to avoid confusing sed. 20430 lt_compile=`echo "$ac_compile" | $SED \ 20431 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 20432 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 20433 -e 's:$: $lt_compiler_flag:'` 20434 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 20435 (eval "$lt_compile" 2>conftest.err) 20436 ac_status=$? 20437 cat conftest.err >&5 20438 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20439 if (exit $ac_status) && test -s "$ac_outfile"; then 20440 # The compiler can only warn and ignore the option if not recognized 20441 # So say no if there are warnings other than the usual output. 20442 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 20443 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 20444 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 20445 lt_cv_prog_compiler_pic_works=yes 20446 fi 20447 fi 20448 $RM conftest* 20449 20450fi 20451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 20452$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 20453 20454if test yes = "$lt_cv_prog_compiler_pic_works"; then 20455 case $lt_prog_compiler_pic in 20456 "" | " "*) ;; 20457 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 20458 esac 20459else 20460 lt_prog_compiler_pic= 20461 lt_prog_compiler_can_build_shared=no 20462fi 20463 20464fi 20465 20466 20467 20468 20469 20470 20471 20472 20473 20474 20475 20476# 20477# Check to make sure the static flag actually works. 20478# 20479wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 20480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 20481$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 20482if ${lt_cv_prog_compiler_static_works+:} false; then : 20483 $as_echo_n "(cached) " >&6 20484else 20485 lt_cv_prog_compiler_static_works=no 20486 save_LDFLAGS=$LDFLAGS 20487 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 20488 echo "$lt_simple_link_test_code" > conftest.$ac_ext 20489 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 20490 # The linker can only warn and ignore the option if not recognized 20491 # So say no if there are warnings 20492 if test -s conftest.err; then 20493 # Append any errors to the config.log. 20494 cat conftest.err 1>&5 20495 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 20496 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 20497 if diff conftest.exp conftest.er2 >/dev/null; then 20498 lt_cv_prog_compiler_static_works=yes 20499 fi 20500 else 20501 lt_cv_prog_compiler_static_works=yes 20502 fi 20503 fi 20504 $RM -r conftest* 20505 LDFLAGS=$save_LDFLAGS 20506 20507fi 20508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 20509$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 20510 20511if test yes = "$lt_cv_prog_compiler_static_works"; then 20512 : 20513else 20514 lt_prog_compiler_static= 20515fi 20516 20517 20518 20519 20520 20521 20522 20523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 20524$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 20525if ${lt_cv_prog_compiler_c_o+:} false; then : 20526 $as_echo_n "(cached) " >&6 20527else 20528 lt_cv_prog_compiler_c_o=no 20529 $RM -r conftest 2>/dev/null 20530 mkdir conftest 20531 cd conftest 20532 mkdir out 20533 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 20534 20535 lt_compiler_flag="-o out/conftest2.$ac_objext" 20536 # Insert the option either (1) after the last *FLAGS variable, or 20537 # (2) before a word containing "conftest.", or (3) at the end. 20538 # Note that $ac_compile itself does not contain backslashes and begins 20539 # with a dollar sign (not a hyphen), so the echo should work correctly. 20540 lt_compile=`echo "$ac_compile" | $SED \ 20541 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 20542 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 20543 -e 's:$: $lt_compiler_flag:'` 20544 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 20545 (eval "$lt_compile" 2>out/conftest.err) 20546 ac_status=$? 20547 cat out/conftest.err >&5 20548 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20549 if (exit $ac_status) && test -s out/conftest2.$ac_objext 20550 then 20551 # The compiler can only warn and ignore the option if not recognized 20552 # So say no if there are warnings 20553 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 20554 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 20555 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 20556 lt_cv_prog_compiler_c_o=yes 20557 fi 20558 fi 20559 chmod u+w . 2>&5 20560 $RM conftest* 20561 # SGI C++ compiler will create directory out/ii_files/ for 20562 # template instantiation 20563 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 20564 $RM out/* && rmdir out 20565 cd .. 20566 $RM -r conftest 20567 $RM conftest* 20568 20569fi 20570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 20571$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 20572 20573 20574 20575 20576 20577 20578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 20579$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 20580if ${lt_cv_prog_compiler_c_o+:} false; then : 20581 $as_echo_n "(cached) " >&6 20582else 20583 lt_cv_prog_compiler_c_o=no 20584 $RM -r conftest 2>/dev/null 20585 mkdir conftest 20586 cd conftest 20587 mkdir out 20588 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 20589 20590 lt_compiler_flag="-o out/conftest2.$ac_objext" 20591 # Insert the option either (1) after the last *FLAGS variable, or 20592 # (2) before a word containing "conftest.", or (3) at the end. 20593 # Note that $ac_compile itself does not contain backslashes and begins 20594 # with a dollar sign (not a hyphen), so the echo should work correctly. 20595 lt_compile=`echo "$ac_compile" | $SED \ 20596 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 20597 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 20598 -e 's:$: $lt_compiler_flag:'` 20599 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 20600 (eval "$lt_compile" 2>out/conftest.err) 20601 ac_status=$? 20602 cat out/conftest.err >&5 20603 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20604 if (exit $ac_status) && test -s out/conftest2.$ac_objext 20605 then 20606 # The compiler can only warn and ignore the option if not recognized 20607 # So say no if there are warnings 20608 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 20609 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 20610 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 20611 lt_cv_prog_compiler_c_o=yes 20612 fi 20613 fi 20614 chmod u+w . 2>&5 20615 $RM conftest* 20616 # SGI C++ compiler will create directory out/ii_files/ for 20617 # template instantiation 20618 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 20619 $RM out/* && rmdir out 20620 cd .. 20621 $RM -r conftest 20622 $RM conftest* 20623 20624fi 20625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 20626$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 20627 20628 20629 20630 20631hard_links=nottested 20632if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 20633 # do not overwrite the value of need_locks provided by the user 20634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 20635$as_echo_n "checking if we can lock with hard links... " >&6; } 20636 hard_links=yes 20637 $RM conftest* 20638 ln conftest.a conftest.b 2>/dev/null && hard_links=no 20639 touch conftest.a 20640 ln conftest.a conftest.b 2>&5 || hard_links=no 20641 ln conftest.a conftest.b 2>/dev/null && hard_links=no 20642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 20643$as_echo "$hard_links" >&6; } 20644 if test no = "$hard_links"; then 20645 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 20646$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 20647 need_locks=warn 20648 fi 20649else 20650 need_locks=no 20651fi 20652 20653 20654 20655 20656 20657 20658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 20659$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 20660 20661 runpath_var= 20662 allow_undefined_flag= 20663 always_export_symbols=no 20664 archive_cmds= 20665 archive_expsym_cmds= 20666 compiler_needs_object=no 20667 enable_shared_with_static_runtimes=no 20668 export_dynamic_flag_spec= 20669 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 20670 hardcode_automatic=no 20671 hardcode_direct=no 20672 hardcode_direct_absolute=no 20673 hardcode_libdir_flag_spec= 20674 hardcode_libdir_separator= 20675 hardcode_minus_L=no 20676 hardcode_shlibpath_var=unsupported 20677 inherit_rpath=no 20678 link_all_deplibs=unknown 20679 module_cmds= 20680 module_expsym_cmds= 20681 old_archive_from_new_cmds= 20682 old_archive_from_expsyms_cmds= 20683 thread_safe_flag_spec= 20684 whole_archive_flag_spec= 20685 # include_expsyms should be a list of space-separated symbols to be *always* 20686 # included in the symbol list 20687 include_expsyms= 20688 # exclude_expsyms can be an extended regexp of symbols to exclude 20689 # it will be wrapped by ' (' and ')$', so one must not match beginning or 20690 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 20691 # as well as any symbol that contains 'd'. 20692 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 20693 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 20694 # platforms (ab)use it in PIC code, but their linkers get confused if 20695 # the symbol is explicitly referenced. Since portable code cannot 20696 # rely on this symbol name, it's probably fine to never include it in 20697 # preloaded symbol tables. 20698 # Exclude shared library initialization/finalization symbols. 20699 extract_expsyms_cmds= 20700 20701 case $host_os in 20702 cygwin* | mingw* | pw32* | cegcc*) 20703 # FIXME: the MSVC++ port hasn't been tested in a loooong time 20704 # When not using gcc, we currently assume that we are using 20705 # Microsoft Visual C++. 20706 if test yes != "$GCC"; then 20707 with_gnu_ld=no 20708 fi 20709 ;; 20710 interix*) 20711 # we just hope/assume this is gcc and not c89 (= MSVC++) 20712 with_gnu_ld=yes 20713 ;; 20714 openbsd* | bitrig*) 20715 with_gnu_ld=no 20716 ;; 20717 esac 20718 20719 ld_shlibs=yes 20720 20721 # On some targets, GNU ld is compatible enough with the native linker 20722 # that we're better off using the native interface for both. 20723 lt_use_gnu_ld_interface=no 20724 if test yes = "$with_gnu_ld"; then 20725 case $host_os in 20726 aix*) 20727 # The AIX port of GNU ld has always aspired to compatibility 20728 # with the native linker. However, as the warning in the GNU ld 20729 # block says, versions before 2.19.5* couldn't really create working 20730 # shared libraries, regardless of the interface used. 20731 case `$LD -v 2>&1` in 20732 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 20733 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 20734 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 20735 *) 20736 lt_use_gnu_ld_interface=yes 20737 ;; 20738 esac 20739 ;; 20740 *) 20741 lt_use_gnu_ld_interface=yes 20742 ;; 20743 esac 20744 fi 20745 20746 if test yes = "$lt_use_gnu_ld_interface"; then 20747 # If archive_cmds runs LD, not CC, wlarc should be empty 20748 wlarc='$wl' 20749 20750 # Set some defaults for GNU ld with shared library support. These 20751 # are reset later if shared libraries are not supported. Putting them 20752 # here allows them to be overridden if necessary. 20753 runpath_var=LD_RUN_PATH 20754 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 20755 export_dynamic_flag_spec='$wl--export-dynamic' 20756 # ancient GNU ld didn't support --whole-archive et. al. 20757 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 20758 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 20759 else 20760 whole_archive_flag_spec= 20761 fi 20762 supports_anon_versioning=no 20763 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 20764 *GNU\ gold*) supports_anon_versioning=yes ;; 20765 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 20766 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 20767 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 20768 *\ 2.11.*) ;; # other 2.11 versions 20769 *) supports_anon_versioning=yes ;; 20770 esac 20771 20772 # See if GNU ld supports shared libraries. 20773 case $host_os in 20774 aix[3-9]*) 20775 # On AIX/PPC, the GNU linker is very broken 20776 if test ia64 != "$host_cpu"; then 20777 ld_shlibs=no 20778 cat <<_LT_EOF 1>&2 20779 20780*** Warning: the GNU linker, at least up to release 2.19, is reported 20781*** to be unable to reliably create shared libraries on AIX. 20782*** Therefore, libtool is disabling shared libraries support. If you 20783*** really care for shared libraries, you may want to install binutils 20784*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 20785*** You will then need to restart the configuration process. 20786 20787_LT_EOF 20788 fi 20789 ;; 20790 20791 amigaos*) 20792 case $host_cpu in 20793 powerpc) 20794 # see comment about AmigaOS4 .so support 20795 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 20796 archive_expsym_cmds='' 20797 ;; 20798 m68k) 20799 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)' 20800 hardcode_libdir_flag_spec='-L$libdir' 20801 hardcode_minus_L=yes 20802 ;; 20803 esac 20804 ;; 20805 20806 beos*) 20807 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 20808 allow_undefined_flag=unsupported 20809 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 20810 # support --undefined. This deserves some investigation. FIXME 20811 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 20812 else 20813 ld_shlibs=no 20814 fi 20815 ;; 20816 20817 cygwin* | mingw* | pw32* | cegcc*) 20818 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 20819 # as there is no search path for DLLs. 20820 hardcode_libdir_flag_spec='-L$libdir' 20821 export_dynamic_flag_spec='$wl--export-all-symbols' 20822 allow_undefined_flag=unsupported 20823 always_export_symbols=no 20824 enable_shared_with_static_runtimes=yes 20825 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' 20826 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 20827 20828 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 20829 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 20830 # If the export-symbols file already is a .def file, use it as 20831 # is; otherwise, prepend EXPORTS... 20832 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 20833 cp $export_symbols $output_objdir/$soname.def; 20834 else 20835 echo EXPORTS > $output_objdir/$soname.def; 20836 cat $export_symbols >> $output_objdir/$soname.def; 20837 fi~ 20838 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 20839 else 20840 ld_shlibs=no 20841 fi 20842 ;; 20843 20844 haiku*) 20845 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 20846 link_all_deplibs=yes 20847 ;; 20848 20849 os2*) 20850 hardcode_libdir_flag_spec='-L$libdir' 20851 hardcode_minus_L=yes 20852 allow_undefined_flag=unsupported 20853 shrext_cmds=.dll 20854 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 20855 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 20856 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 20857 $ECHO EXPORTS >> $output_objdir/$libname.def~ 20858 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 20859 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 20860 emximp -o $lib $output_objdir/$libname.def' 20861 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 20862 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 20863 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 20864 $ECHO EXPORTS >> $output_objdir/$libname.def~ 20865 prefix_cmds="$SED"~ 20866 if test EXPORTS = "`$SED 1q $export_symbols`"; then 20867 prefix_cmds="$prefix_cmds -e 1d"; 20868 fi~ 20869 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 20870 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 20871 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 20872 emximp -o $lib $output_objdir/$libname.def' 20873 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 20874 enable_shared_with_static_runtimes=yes 20875 ;; 20876 20877 interix[3-9]*) 20878 hardcode_direct=no 20879 hardcode_shlibpath_var=no 20880 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 20881 export_dynamic_flag_spec='$wl-E' 20882 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 20883 # Instead, shared libraries are loaded at an image base (0x10000000 by 20884 # default) and relocated if they conflict, which is a slow very memory 20885 # consuming and fragmenting process. To avoid this, we pick a random, 20886 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 20887 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 20888 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 20889 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' 20890 ;; 20891 20892 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 20893 tmp_diet=no 20894 if test linux-dietlibc = "$host_os"; then 20895 case $cc_basename in 20896 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 20897 esac 20898 fi 20899 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 20900 && test no = "$tmp_diet" 20901 then 20902 tmp_addflag=' $pic_flag' 20903 tmp_sharedflag='-shared' 20904 case $cc_basename,$host_cpu in 20905 pgcc*) # Portland Group C compiler 20906 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' 20907 tmp_addflag=' $pic_flag' 20908 ;; 20909 pgf77* | pgf90* | pgf95* | pgfortran*) 20910 # Portland Group f77 and f90 compilers 20911 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' 20912 tmp_addflag=' $pic_flag -Mnomain' ;; 20913 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 20914 tmp_addflag=' -i_dynamic' ;; 20915 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 20916 tmp_addflag=' -i_dynamic -nofor_main' ;; 20917 ifc* | ifort*) # Intel Fortran compiler 20918 tmp_addflag=' -nofor_main' ;; 20919 lf95*) # Lahey Fortran 8.1 20920 whole_archive_flag_spec= 20921 tmp_sharedflag='--shared' ;; 20922 nagfor*) # NAGFOR 5.3 20923 tmp_sharedflag='-Wl,-shared' ;; 20924 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 20925 tmp_sharedflag='-qmkshrobj' 20926 tmp_addflag= ;; 20927 nvcc*) # Cuda Compiler Driver 2.2 20928 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' 20929 compiler_needs_object=yes 20930 ;; 20931 esac 20932 case `$CC -V 2>&1 | sed 5q` in 20933 *Sun\ C*) # Sun C 5.9 20934 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' 20935 compiler_needs_object=yes 20936 tmp_sharedflag='-G' ;; 20937 *Sun\ F*) # Sun Fortran 8.3 20938 tmp_sharedflag='-G' ;; 20939 esac 20940 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 20941 20942 if test yes = "$supports_anon_versioning"; then 20943 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 20944 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 20945 echo "local: *; };" >> $output_objdir/$libname.ver~ 20946 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 20947 fi 20948 20949 case $cc_basename in 20950 tcc*) 20951 export_dynamic_flag_spec='-rdynamic' 20952 ;; 20953 xlf* | bgf* | bgxlf* | mpixlf*) 20954 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 20955 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 20956 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 20957 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 20958 if test yes = "$supports_anon_versioning"; then 20959 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 20960 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 20961 echo "local: *; };" >> $output_objdir/$libname.ver~ 20962 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 20963 fi 20964 ;; 20965 esac 20966 else 20967 ld_shlibs=no 20968 fi 20969 ;; 20970 20971 netbsd*) 20972 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 20973 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 20974 wlarc= 20975 else 20976 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 20977 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 20978 fi 20979 ;; 20980 20981 solaris*) 20982 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 20983 ld_shlibs=no 20984 cat <<_LT_EOF 1>&2 20985 20986*** Warning: The releases 2.8.* of the GNU linker cannot reliably 20987*** create shared libraries on Solaris systems. Therefore, libtool 20988*** is disabling shared libraries support. We urge you to upgrade GNU 20989*** binutils to release 2.9.1 or newer. Another option is to modify 20990*** your PATH or compiler configuration so that the native linker is 20991*** used, and then restart. 20992 20993_LT_EOF 20994 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 20995 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 20996 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 20997 else 20998 ld_shlibs=no 20999 fi 21000 ;; 21001 21002 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 21003 case `$LD -v 2>&1` in 21004 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 21005 ld_shlibs=no 21006 cat <<_LT_EOF 1>&2 21007 21008*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 21009*** reliably create shared libraries on SCO systems. Therefore, libtool 21010*** is disabling shared libraries support. We urge you to upgrade GNU 21011*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 21012*** your PATH or compiler configuration so that the native linker is 21013*** used, and then restart. 21014 21015_LT_EOF 21016 ;; 21017 *) 21018 # For security reasons, it is highly recommended that you always 21019 # use absolute paths for naming shared libraries, and exclude the 21020 # DT_RUNPATH tag from executables and libraries. But doing so 21021 # requires that you compile everything twice, which is a pain. 21022 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 21023 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 21024 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 21025 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 21026 else 21027 ld_shlibs=no 21028 fi 21029 ;; 21030 esac 21031 ;; 21032 21033 sunos4*) 21034 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 21035 wlarc= 21036 hardcode_direct=yes 21037 hardcode_shlibpath_var=no 21038 ;; 21039 21040 *) 21041 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 21042 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 21043 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 21044 else 21045 ld_shlibs=no 21046 fi 21047 ;; 21048 esac 21049 21050 if test no = "$ld_shlibs"; then 21051 runpath_var= 21052 hardcode_libdir_flag_spec= 21053 export_dynamic_flag_spec= 21054 whole_archive_flag_spec= 21055 fi 21056 else 21057 # PORTME fill in a description of your system's linker (not GNU ld) 21058 case $host_os in 21059 aix3*) 21060 allow_undefined_flag=unsupported 21061 always_export_symbols=yes 21062 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' 21063 # Note: this linker hardcodes the directories in LIBPATH if there 21064 # are no directories specified by -L. 21065 hardcode_minus_L=yes 21066 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 21067 # Neither direct hardcoding nor static linking is supported with a 21068 # broken collect2. 21069 hardcode_direct=unsupported 21070 fi 21071 ;; 21072 21073 aix[4-9]*) 21074 if test ia64 = "$host_cpu"; then 21075 # On IA64, the linker does run time linking by default, so we don't 21076 # have to do anything special. 21077 aix_use_runtimelinking=no 21078 exp_sym_flag='-Bexport' 21079 no_entry_flag= 21080 else 21081 # If we're using GNU nm, then we don't want the "-C" option. 21082 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 21083 # Without the "-l" option, or with the "-B" option, AIX nm treats 21084 # weak defined symbols like other global defined symbols, whereas 21085 # GNU nm marks them as "W". 21086 # While the 'weak' keyword is ignored in the Export File, we need 21087 # it in the Import File for the 'aix-soname' feature, so we have 21088 # to replace the "-B" option with "-P" for AIX nm. 21089 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 21090 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' 21091 else 21092 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' 21093 fi 21094 aix_use_runtimelinking=no 21095 21096 # Test if we are trying to use run time linking or normal 21097 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 21098 # have runtime linking enabled, and use it for executables. 21099 # For shared libraries, we enable/disable runtime linking 21100 # depending on the kind of the shared library created - 21101 # when "with_aix_soname,aix_use_runtimelinking" is: 21102 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 21103 # "aix,yes" lib.so shared, rtl:yes, for executables 21104 # lib.a static archive 21105 # "both,no" lib.so.V(shr.o) shared, rtl:yes 21106 # lib.a(lib.so.V) shared, rtl:no, for executables 21107 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 21108 # lib.a(lib.so.V) shared, rtl:no 21109 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 21110 # lib.a static archive 21111 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 21112 for ld_flag in $LDFLAGS; do 21113 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 21114 aix_use_runtimelinking=yes 21115 break 21116 fi 21117 done 21118 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 21119 # With aix-soname=svr4, we create the lib.so.V shared archives only, 21120 # so we don't have lib.a shared libs to link our executables. 21121 # We have to force runtime linking in this case. 21122 aix_use_runtimelinking=yes 21123 LDFLAGS="$LDFLAGS -Wl,-brtl" 21124 fi 21125 ;; 21126 esac 21127 21128 exp_sym_flag='-bexport' 21129 no_entry_flag='-bnoentry' 21130 fi 21131 21132 # When large executables or shared objects are built, AIX ld can 21133 # have problems creating the table of contents. If linking a library 21134 # or program results in "error TOC overflow" add -mminimal-toc to 21135 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 21136 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 21137 21138 archive_cmds='' 21139 hardcode_direct=yes 21140 hardcode_direct_absolute=yes 21141 hardcode_libdir_separator=':' 21142 link_all_deplibs=yes 21143 file_list_spec='$wl-f,' 21144 case $with_aix_soname,$aix_use_runtimelinking in 21145 aix,*) ;; # traditional, no import file 21146 svr4,* | *,yes) # use import file 21147 # The Import File defines what to hardcode. 21148 hardcode_direct=no 21149 hardcode_direct_absolute=no 21150 ;; 21151 esac 21152 21153 if test yes = "$GCC"; then 21154 case $host_os in aix4.[012]|aix4.[012].*) 21155 # We only want to do this on AIX 4.2 and lower, the check 21156 # below for broken collect2 doesn't work under 4.3+ 21157 collect2name=`$CC -print-prog-name=collect2` 21158 if test -f "$collect2name" && 21159 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 21160 then 21161 # We have reworked collect2 21162 : 21163 else 21164 # We have old collect2 21165 hardcode_direct=unsupported 21166 # It fails to find uninstalled libraries when the uninstalled 21167 # path is not listed in the libpath. Setting hardcode_minus_L 21168 # to unsupported forces relinking 21169 hardcode_minus_L=yes 21170 hardcode_libdir_flag_spec='-L$libdir' 21171 hardcode_libdir_separator= 21172 fi 21173 ;; 21174 esac 21175 shared_flag='-shared' 21176 if test yes = "$aix_use_runtimelinking"; then 21177 shared_flag="$shared_flag "'$wl-G' 21178 fi 21179 # Need to ensure runtime linking is disabled for the traditional 21180 # shared library, or the linker may eventually find shared libraries 21181 # /with/ Import File - we do not want to mix them. 21182 shared_flag_aix='-shared' 21183 shared_flag_svr4='-shared $wl-G' 21184 else 21185 # not using gcc 21186 if test ia64 = "$host_cpu"; then 21187 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 21188 # chokes on -Wl,-G. The following line is correct: 21189 shared_flag='-G' 21190 else 21191 if test yes = "$aix_use_runtimelinking"; then 21192 shared_flag='$wl-G' 21193 else 21194 shared_flag='$wl-bM:SRE' 21195 fi 21196 shared_flag_aix='$wl-bM:SRE' 21197 shared_flag_svr4='$wl-G' 21198 fi 21199 fi 21200 21201 export_dynamic_flag_spec='$wl-bexpall' 21202 # It seems that -bexpall does not export symbols beginning with 21203 # underscore (_), so it is better to generate a list of symbols to export. 21204 always_export_symbols=yes 21205 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 21206 # Warning - without using the other runtime loading flags (-brtl), 21207 # -berok will link without error, but may produce a broken library. 21208 allow_undefined_flag='-berok' 21209 # Determine the default libpath from the value encoded in an 21210 # empty executable. 21211 if test set = "${lt_cv_aix_libpath+set}"; then 21212 aix_libpath=$lt_cv_aix_libpath 21213else 21214 if ${lt_cv_aix_libpath_+:} false; then : 21215 $as_echo_n "(cached) " >&6 21216else 21217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21218/* end confdefs.h. */ 21219 21220int 21221main () 21222{ 21223 21224 ; 21225 return 0; 21226} 21227_ACEOF 21228if ac_fn_c_try_link "$LINENO"; then : 21229 21230 lt_aix_libpath_sed=' 21231 /Import File Strings/,/^$/ { 21232 /^0/ { 21233 s/^0 *\([^ ]*\) *$/\1/ 21234 p 21235 } 21236 }' 21237 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 21238 # Check for a 64-bit object if we didn't find anything. 21239 if test -z "$lt_cv_aix_libpath_"; then 21240 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 21241 fi 21242fi 21243rm -f core conftest.err conftest.$ac_objext \ 21244 conftest$ac_exeext conftest.$ac_ext 21245 if test -z "$lt_cv_aix_libpath_"; then 21246 lt_cv_aix_libpath_=/usr/lib:/lib 21247 fi 21248 21249fi 21250 21251 aix_libpath=$lt_cv_aix_libpath_ 21252fi 21253 21254 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 21255 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag 21256 else 21257 if test ia64 = "$host_cpu"; then 21258 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 21259 allow_undefined_flag="-z nodefs" 21260 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" 21261 else 21262 # Determine the default libpath from the value encoded in an 21263 # empty executable. 21264 if test set = "${lt_cv_aix_libpath+set}"; then 21265 aix_libpath=$lt_cv_aix_libpath 21266else 21267 if ${lt_cv_aix_libpath_+:} false; then : 21268 $as_echo_n "(cached) " >&6 21269else 21270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21271/* end confdefs.h. */ 21272 21273int 21274main () 21275{ 21276 21277 ; 21278 return 0; 21279} 21280_ACEOF 21281if ac_fn_c_try_link "$LINENO"; then : 21282 21283 lt_aix_libpath_sed=' 21284 /Import File Strings/,/^$/ { 21285 /^0/ { 21286 s/^0 *\([^ ]*\) *$/\1/ 21287 p 21288 } 21289 }' 21290 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 21291 # Check for a 64-bit object if we didn't find anything. 21292 if test -z "$lt_cv_aix_libpath_"; then 21293 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 21294 fi 21295fi 21296rm -f core conftest.err conftest.$ac_objext \ 21297 conftest$ac_exeext conftest.$ac_ext 21298 if test -z "$lt_cv_aix_libpath_"; then 21299 lt_cv_aix_libpath_=/usr/lib:/lib 21300 fi 21301 21302fi 21303 21304 aix_libpath=$lt_cv_aix_libpath_ 21305fi 21306 21307 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 21308 # Warning - without using the other run time loading flags, 21309 # -berok will link without error, but may produce a broken library. 21310 no_undefined_flag=' $wl-bernotok' 21311 allow_undefined_flag=' $wl-berok' 21312 if test yes = "$with_gnu_ld"; then 21313 # We only use this code for GNU lds that support --whole-archive. 21314 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 21315 else 21316 # Exported symbols can be pulled into shared objects from archives 21317 whole_archive_flag_spec='$convenience' 21318 fi 21319 archive_cmds_need_lc=yes 21320 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 21321 # -brtl affects multiple linker settings, -berok does not and is overridden later 21322 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 21323 if test svr4 != "$with_aix_soname"; then 21324 # This is similar to how AIX traditionally builds its shared libraries. 21325 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' 21326 fi 21327 if test aix != "$with_aix_soname"; then 21328 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' 21329 else 21330 # used by -dlpreopen to get the symbols 21331 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 21332 fi 21333 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 21334 fi 21335 fi 21336 ;; 21337 21338 amigaos*) 21339 case $host_cpu in 21340 powerpc) 21341 # see comment about AmigaOS4 .so support 21342 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 21343 archive_expsym_cmds='' 21344 ;; 21345 m68k) 21346 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)' 21347 hardcode_libdir_flag_spec='-L$libdir' 21348 hardcode_minus_L=yes 21349 ;; 21350 esac 21351 ;; 21352 21353 bsdi[45]*) 21354 export_dynamic_flag_spec=-rdynamic 21355 ;; 21356 21357 cygwin* | mingw* | pw32* | cegcc*) 21358 # When not using gcc, we currently assume that we are using 21359 # Microsoft Visual C++. 21360 # hardcode_libdir_flag_spec is actually meaningless, as there is 21361 # no search path for DLLs. 21362 case $cc_basename in 21363 cl*) 21364 # Native MSVC 21365 hardcode_libdir_flag_spec=' ' 21366 allow_undefined_flag=unsupported 21367 always_export_symbols=yes 21368 file_list_spec='@' 21369 # Tell ltmain to make .lib files, not .a files. 21370 libext=lib 21371 # Tell ltmain to make .dll files, not .so files. 21372 shrext_cmds=.dll 21373 # FIXME: Setting linknames here is a bad hack. 21374 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 21375 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 21376 cp "$export_symbols" "$output_objdir/$soname.def"; 21377 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 21378 else 21379 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 21380 fi~ 21381 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 21382 linknames=' 21383 # The linker will not automatically build a static lib if we build a DLL. 21384 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 21385 enable_shared_with_static_runtimes=yes 21386 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 21387 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 21388 # Don't use ranlib 21389 old_postinstall_cmds='chmod 644 $oldlib' 21390 postlink_cmds='lt_outputfile="@OUTPUT@"~ 21391 lt_tool_outputfile="@TOOL_OUTPUT@"~ 21392 case $lt_outputfile in 21393 *.exe|*.EXE) ;; 21394 *) 21395 lt_outputfile=$lt_outputfile.exe 21396 lt_tool_outputfile=$lt_tool_outputfile.exe 21397 ;; 21398 esac~ 21399 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 21400 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 21401 $RM "$lt_outputfile.manifest"; 21402 fi' 21403 ;; 21404 *) 21405 # Assume MSVC wrapper 21406 hardcode_libdir_flag_spec=' ' 21407 allow_undefined_flag=unsupported 21408 # Tell ltmain to make .lib files, not .a files. 21409 libext=lib 21410 # Tell ltmain to make .dll files, not .so files. 21411 shrext_cmds=.dll 21412 # FIXME: Setting linknames here is a bad hack. 21413 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 21414 # The linker will automatically build a .lib file if we build a DLL. 21415 old_archive_from_new_cmds='true' 21416 # FIXME: Should let the user specify the lib program. 21417 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 21418 enable_shared_with_static_runtimes=yes 21419 ;; 21420 esac 21421 ;; 21422 21423 darwin* | rhapsody*) 21424 21425 21426 archive_cmds_need_lc=no 21427 hardcode_direct=no 21428 hardcode_automatic=yes 21429 hardcode_shlibpath_var=unsupported 21430 if test yes = "$lt_cv_ld_force_load"; then 21431 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\"`' 21432 21433 else 21434 whole_archive_flag_spec='' 21435 fi 21436 link_all_deplibs=yes 21437 allow_undefined_flag=$_lt_dar_allow_undefined 21438 case $cc_basename in 21439 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 21440 *) _lt_dar_can_shared=$GCC ;; 21441 esac 21442 if test yes = "$_lt_dar_can_shared"; then 21443 output_verbose_link_cmd=func_echo_all 21444 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 21445 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 21446 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" 21447 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" 21448 21449 else 21450 ld_shlibs=no 21451 fi 21452 21453 ;; 21454 21455 dgux*) 21456 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 21457 hardcode_libdir_flag_spec='-L$libdir' 21458 hardcode_shlibpath_var=no 21459 ;; 21460 21461 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 21462 # support. Future versions do this automatically, but an explicit c++rt0.o 21463 # does not break anything, and helps significantly (at the cost of a little 21464 # extra space). 21465 freebsd2.2*) 21466 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 21467 hardcode_libdir_flag_spec='-R$libdir' 21468 hardcode_direct=yes 21469 hardcode_shlibpath_var=no 21470 ;; 21471 21472 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 21473 freebsd2.*) 21474 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 21475 hardcode_direct=yes 21476 hardcode_minus_L=yes 21477 hardcode_shlibpath_var=no 21478 ;; 21479 21480 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 21481 freebsd* | dragonfly*) 21482 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 21483 hardcode_libdir_flag_spec='-R$libdir' 21484 hardcode_direct=yes 21485 hardcode_shlibpath_var=no 21486 ;; 21487 21488 hpux9*) 21489 if test yes = "$GCC"; then 21490 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 21491 else 21492 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 21493 fi 21494 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 21495 hardcode_libdir_separator=: 21496 hardcode_direct=yes 21497 21498 # hardcode_minus_L: Not really in the search PATH, 21499 # but as the default location of the library. 21500 hardcode_minus_L=yes 21501 export_dynamic_flag_spec='$wl-E' 21502 ;; 21503 21504 hpux10*) 21505 if test yes,no = "$GCC,$with_gnu_ld"; then 21506 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 21507 else 21508 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 21509 fi 21510 if test no = "$with_gnu_ld"; then 21511 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 21512 hardcode_libdir_separator=: 21513 hardcode_direct=yes 21514 hardcode_direct_absolute=yes 21515 export_dynamic_flag_spec='$wl-E' 21516 # hardcode_minus_L: Not really in the search PATH, 21517 # but as the default location of the library. 21518 hardcode_minus_L=yes 21519 fi 21520 ;; 21521 21522 hpux11*) 21523 if test yes,no = "$GCC,$with_gnu_ld"; then 21524 case $host_cpu in 21525 hppa*64*) 21526 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 21527 ;; 21528 ia64*) 21529 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 21530 ;; 21531 *) 21532 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 21533 ;; 21534 esac 21535 else 21536 case $host_cpu in 21537 hppa*64*) 21538 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 21539 ;; 21540 ia64*) 21541 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 21542 ;; 21543 *) 21544 21545 # Older versions of the 11.00 compiler do not understand -b yet 21546 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 21547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 21548$as_echo_n "checking if $CC understands -b... " >&6; } 21549if ${lt_cv_prog_compiler__b+:} false; then : 21550 $as_echo_n "(cached) " >&6 21551else 21552 lt_cv_prog_compiler__b=no 21553 save_LDFLAGS=$LDFLAGS 21554 LDFLAGS="$LDFLAGS -b" 21555 echo "$lt_simple_link_test_code" > conftest.$ac_ext 21556 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 21557 # The linker can only warn and ignore the option if not recognized 21558 # So say no if there are warnings 21559 if test -s conftest.err; then 21560 # Append any errors to the config.log. 21561 cat conftest.err 1>&5 21562 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 21563 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 21564 if diff conftest.exp conftest.er2 >/dev/null; then 21565 lt_cv_prog_compiler__b=yes 21566 fi 21567 else 21568 lt_cv_prog_compiler__b=yes 21569 fi 21570 fi 21571 $RM -r conftest* 21572 LDFLAGS=$save_LDFLAGS 21573 21574fi 21575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 21576$as_echo "$lt_cv_prog_compiler__b" >&6; } 21577 21578if test yes = "$lt_cv_prog_compiler__b"; then 21579 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 21580else 21581 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 21582fi 21583 21584 ;; 21585 esac 21586 fi 21587 if test no = "$with_gnu_ld"; then 21588 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 21589 hardcode_libdir_separator=: 21590 21591 case $host_cpu in 21592 hppa*64*|ia64*) 21593 hardcode_direct=no 21594 hardcode_shlibpath_var=no 21595 ;; 21596 *) 21597 hardcode_direct=yes 21598 hardcode_direct_absolute=yes 21599 export_dynamic_flag_spec='$wl-E' 21600 21601 # hardcode_minus_L: Not really in the search PATH, 21602 # but as the default location of the library. 21603 hardcode_minus_L=yes 21604 ;; 21605 esac 21606 fi 21607 ;; 21608 21609 irix5* | irix6* | nonstopux*) 21610 if test yes = "$GCC"; then 21611 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' 21612 # Try to use the -exported_symbol ld option, if it does not 21613 # work, assume that -exports_file does not work either and 21614 # implicitly export all symbols. 21615 # This should be the same for all languages, so no per-tag cache variable. 21616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 21617$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 21618if ${lt_cv_irix_exported_symbol+:} false; then : 21619 $as_echo_n "(cached) " >&6 21620else 21621 save_LDFLAGS=$LDFLAGS 21622 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 21623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21624/* end confdefs.h. */ 21625int foo (void) { return 0; } 21626_ACEOF 21627if ac_fn_c_try_link "$LINENO"; then : 21628 lt_cv_irix_exported_symbol=yes 21629else 21630 lt_cv_irix_exported_symbol=no 21631fi 21632rm -f core conftest.err conftest.$ac_objext \ 21633 conftest$ac_exeext conftest.$ac_ext 21634 LDFLAGS=$save_LDFLAGS 21635fi 21636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 21637$as_echo "$lt_cv_irix_exported_symbol" >&6; } 21638 if test yes = "$lt_cv_irix_exported_symbol"; then 21639 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' 21640 fi 21641 else 21642 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' 21643 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' 21644 fi 21645 archive_cmds_need_lc='no' 21646 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 21647 hardcode_libdir_separator=: 21648 inherit_rpath=yes 21649 link_all_deplibs=yes 21650 ;; 21651 21652 linux*) 21653 case $cc_basename in 21654 tcc*) 21655 # Fabrice Bellard et al's Tiny C Compiler 21656 ld_shlibs=yes 21657 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 21658 ;; 21659 esac 21660 ;; 21661 21662 netbsd*) 21663 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 21664 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 21665 else 21666 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 21667 fi 21668 hardcode_libdir_flag_spec='-R$libdir' 21669 hardcode_direct=yes 21670 hardcode_shlibpath_var=no 21671 ;; 21672 21673 newsos6) 21674 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 21675 hardcode_direct=yes 21676 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 21677 hardcode_libdir_separator=: 21678 hardcode_shlibpath_var=no 21679 ;; 21680 21681 *nto* | *qnx*) 21682 ;; 21683 21684 openbsd* | bitrig*) 21685 if test -f /usr/libexec/ld.so; then 21686 hardcode_direct=yes 21687 hardcode_shlibpath_var=no 21688 hardcode_direct_absolute=yes 21689 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 21690 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 21691 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 21692 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 21693 export_dynamic_flag_spec='$wl-E' 21694 else 21695 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 21696 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 21697 fi 21698 else 21699 ld_shlibs=no 21700 fi 21701 ;; 21702 21703 os2*) 21704 hardcode_libdir_flag_spec='-L$libdir' 21705 hardcode_minus_L=yes 21706 allow_undefined_flag=unsupported 21707 shrext_cmds=.dll 21708 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 21709 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 21710 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 21711 $ECHO EXPORTS >> $output_objdir/$libname.def~ 21712 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 21713 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 21714 emximp -o $lib $output_objdir/$libname.def' 21715 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 21716 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 21717 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 21718 $ECHO EXPORTS >> $output_objdir/$libname.def~ 21719 prefix_cmds="$SED"~ 21720 if test EXPORTS = "`$SED 1q $export_symbols`"; then 21721 prefix_cmds="$prefix_cmds -e 1d"; 21722 fi~ 21723 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 21724 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 21725 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 21726 emximp -o $lib $output_objdir/$libname.def' 21727 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 21728 enable_shared_with_static_runtimes=yes 21729 ;; 21730 21731 osf3*) 21732 if test yes = "$GCC"; then 21733 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 21734 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' 21735 else 21736 allow_undefined_flag=' -expect_unresolved \*' 21737 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' 21738 fi 21739 archive_cmds_need_lc='no' 21740 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 21741 hardcode_libdir_separator=: 21742 ;; 21743 21744 osf4* | osf5*) # as osf3* with the addition of -msym flag 21745 if test yes = "$GCC"; then 21746 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 21747 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' 21748 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 21749 else 21750 allow_undefined_flag=' -expect_unresolved \*' 21751 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' 21752 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~ 21753 $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' 21754 21755 # Both c and cxx compiler support -rpath directly 21756 hardcode_libdir_flag_spec='-rpath $libdir' 21757 fi 21758 archive_cmds_need_lc='no' 21759 hardcode_libdir_separator=: 21760 ;; 21761 21762 solaris*) 21763 no_undefined_flag=' -z defs' 21764 if test yes = "$GCC"; then 21765 wlarc='$wl' 21766 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 21767 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 21768 $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' 21769 else 21770 case `$CC -V 2>&1` in 21771 *"Compilers 5.0"*) 21772 wlarc='' 21773 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 21774 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 21775 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 21776 ;; 21777 *) 21778 wlarc='$wl' 21779 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 21780 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 21781 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 21782 ;; 21783 esac 21784 fi 21785 hardcode_libdir_flag_spec='-R$libdir' 21786 hardcode_shlibpath_var=no 21787 case $host_os in 21788 solaris2.[0-5] | solaris2.[0-5].*) ;; 21789 *) 21790 # The compiler driver will combine and reorder linker options, 21791 # but understands '-z linker_flag'. GCC discards it without '$wl', 21792 # but is careful enough not to reorder. 21793 # Supported since Solaris 2.6 (maybe 2.5.1?) 21794 if test yes = "$GCC"; then 21795 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 21796 else 21797 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 21798 fi 21799 ;; 21800 esac 21801 link_all_deplibs=yes 21802 ;; 21803 21804 sunos4*) 21805 if test sequent = "$host_vendor"; then 21806 # Use $CC to link under sequent, because it throws in some extra .o 21807 # files that make .init and .fini sections work. 21808 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 21809 else 21810 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 21811 fi 21812 hardcode_libdir_flag_spec='-L$libdir' 21813 hardcode_direct=yes 21814 hardcode_minus_L=yes 21815 hardcode_shlibpath_var=no 21816 ;; 21817 21818 sysv4) 21819 case $host_vendor in 21820 sni) 21821 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 21822 hardcode_direct=yes # is this really true??? 21823 ;; 21824 siemens) 21825 ## LD is ld it makes a PLAMLIB 21826 ## CC just makes a GrossModule. 21827 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 21828 reload_cmds='$CC -r -o $output$reload_objs' 21829 hardcode_direct=no 21830 ;; 21831 motorola) 21832 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 21833 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 21834 ;; 21835 esac 21836 runpath_var='LD_RUN_PATH' 21837 hardcode_shlibpath_var=no 21838 ;; 21839 21840 sysv4.3*) 21841 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 21842 hardcode_shlibpath_var=no 21843 export_dynamic_flag_spec='-Bexport' 21844 ;; 21845 21846 sysv4*MP*) 21847 if test -d /usr/nec; then 21848 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 21849 hardcode_shlibpath_var=no 21850 runpath_var=LD_RUN_PATH 21851 hardcode_runpath_var=yes 21852 ld_shlibs=yes 21853 fi 21854 ;; 21855 21856 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 21857 no_undefined_flag='$wl-z,text' 21858 archive_cmds_need_lc=no 21859 hardcode_shlibpath_var=no 21860 runpath_var='LD_RUN_PATH' 21861 21862 if test yes = "$GCC"; then 21863 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 21864 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 21865 else 21866 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 21867 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 21868 fi 21869 ;; 21870 21871 sysv5* | sco3.2v5* | sco5v6*) 21872 # Note: We CANNOT use -z defs as we might desire, because we do not 21873 # link with -lc, and that would cause any symbols used from libc to 21874 # always be unresolved, which means just about no library would 21875 # ever link correctly. If we're not using GNU ld we use -z text 21876 # though, which does catch some bad symbols but isn't as heavy-handed 21877 # as -z defs. 21878 no_undefined_flag='$wl-z,text' 21879 allow_undefined_flag='$wl-z,nodefs' 21880 archive_cmds_need_lc=no 21881 hardcode_shlibpath_var=no 21882 hardcode_libdir_flag_spec='$wl-R,$libdir' 21883 hardcode_libdir_separator=':' 21884 link_all_deplibs=yes 21885 export_dynamic_flag_spec='$wl-Bexport' 21886 runpath_var='LD_RUN_PATH' 21887 21888 if test yes = "$GCC"; then 21889 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 21890 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 21891 else 21892 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 21893 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 21894 fi 21895 ;; 21896 21897 uts4*) 21898 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 21899 hardcode_libdir_flag_spec='-L$libdir' 21900 hardcode_shlibpath_var=no 21901 ;; 21902 21903 *) 21904 ld_shlibs=no 21905 ;; 21906 esac 21907 21908 if test sni = "$host_vendor"; then 21909 case $host in 21910 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 21911 export_dynamic_flag_spec='$wl-Blargedynsym' 21912 ;; 21913 esac 21914 fi 21915 fi 21916 21917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 21918$as_echo "$ld_shlibs" >&6; } 21919test no = "$ld_shlibs" && can_build_shared=no 21920 21921with_gnu_ld=$with_gnu_ld 21922 21923 21924 21925 21926 21927 21928 21929 21930 21931 21932 21933 21934 21935 21936 21937# 21938# Do we need to explicitly link libc? 21939# 21940case "x$archive_cmds_need_lc" in 21941x|xyes) 21942 # Assume -lc should be added 21943 archive_cmds_need_lc=yes 21944 21945 if test yes,yes = "$GCC,$enable_shared"; then 21946 case $archive_cmds in 21947 *'~'*) 21948 # FIXME: we may have to deal with multi-command sequences. 21949 ;; 21950 '$CC '*) 21951 # Test whether the compiler implicitly links with -lc since on some 21952 # systems, -lgcc has to come before -lc. If gcc already passes -lc 21953 # to ld, don't add -lc before -lgcc. 21954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 21955$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 21956if ${lt_cv_archive_cmds_need_lc+:} false; then : 21957 $as_echo_n "(cached) " >&6 21958else 21959 $RM conftest* 21960 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 21961 21962 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 21963 (eval $ac_compile) 2>&5 21964 ac_status=$? 21965 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21966 test $ac_status = 0; } 2>conftest.err; then 21967 soname=conftest 21968 lib=conftest 21969 libobjs=conftest.$ac_objext 21970 deplibs= 21971 wl=$lt_prog_compiler_wl 21972 pic_flag=$lt_prog_compiler_pic 21973 compiler_flags=-v 21974 linker_flags=-v 21975 verstring= 21976 output_objdir=. 21977 libname=conftest 21978 lt_save_allow_undefined_flag=$allow_undefined_flag 21979 allow_undefined_flag= 21980 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 21981 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 21982 ac_status=$? 21983 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21984 test $ac_status = 0; } 21985 then 21986 lt_cv_archive_cmds_need_lc=no 21987 else 21988 lt_cv_archive_cmds_need_lc=yes 21989 fi 21990 allow_undefined_flag=$lt_save_allow_undefined_flag 21991 else 21992 cat conftest.err 1>&5 21993 fi 21994 $RM conftest* 21995 21996fi 21997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 21998$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 21999 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 22000 ;; 22001 esac 22002 fi 22003 ;; 22004esac 22005 22006 22007 22008 22009 22010 22011 22012 22013 22014 22015 22016 22017 22018 22019 22020 22021 22022 22023 22024 22025 22026 22027 22028 22029 22030 22031 22032 22033 22034 22035 22036 22037 22038 22039 22040 22041 22042 22043 22044 22045 22046 22047 22048 22049 22050 22051 22052 22053 22054 22055 22056 22057 22058 22059 22060 22061 22062 22063 22064 22065 22066 22067 22068 22069 22070 22071 22072 22073 22074 22075 22076 22077 22078 22079 22080 22081 22082 22083 22084 22085 22086 22087 22088 22089 22090 22091 22092 22093 22094 22095 22096 22097 22098 22099 22100 22101 22102 22103 22104 22105 22106 22107 22108 22109 22110 22111 22112 22113 22114 22115 22116 22117 22118 22119 22120 22121 22122 22123 22124 22125 22126 22127 22128 22129 22130 22131 22132 22133 22134 22135 22136 22137 22138 22139 22140 22141 22142 22143 22144 22145 22146 22147 22148 22149 22150 22151 22152 22153 22154 22155 22156 22157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 22158$as_echo_n "checking dynamic linker characteristics... " >&6; } 22159 22160if test yes = "$GCC"; then 22161 case $host_os in 22162 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 22163 *) lt_awk_arg='/^libraries:/' ;; 22164 esac 22165 case $host_os in 22166 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 22167 *) lt_sed_strip_eq='s|=/|/|g' ;; 22168 esac 22169 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 22170 case $lt_search_path_spec in 22171 *\;*) 22172 # if the path contains ";" then we assume it to be the separator 22173 # otherwise default to the standard path separator (i.e. ":") - it is 22174 # assumed that no part of a normal pathname contains ";" but that should 22175 # okay in the real world where ";" in dirpaths is itself problematic. 22176 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 22177 ;; 22178 *) 22179 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 22180 ;; 22181 esac 22182 # Ok, now we have the path, separated by spaces, we can step through it 22183 # and add multilib dir if necessary... 22184 lt_tmp_lt_search_path_spec= 22185 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 22186 # ...but if some path component already ends with the multilib dir we assume 22187 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 22188 case "$lt_multi_os_dir; $lt_search_path_spec " in 22189 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 22190 lt_multi_os_dir= 22191 ;; 22192 esac 22193 for lt_sys_path in $lt_search_path_spec; do 22194 if test -d "$lt_sys_path$lt_multi_os_dir"; then 22195 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 22196 elif test -n "$lt_multi_os_dir"; then 22197 test -d "$lt_sys_path" && \ 22198 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 22199 fi 22200 done 22201 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 22202BEGIN {RS = " "; FS = "/|\n";} { 22203 lt_foo = ""; 22204 lt_count = 0; 22205 for (lt_i = NF; lt_i > 0; lt_i--) { 22206 if ($lt_i != "" && $lt_i != ".") { 22207 if ($lt_i == "..") { 22208 lt_count++; 22209 } else { 22210 if (lt_count == 0) { 22211 lt_foo = "/" $lt_i lt_foo; 22212 } else { 22213 lt_count--; 22214 } 22215 } 22216 } 22217 } 22218 if (lt_foo != "") { lt_freq[lt_foo]++; } 22219 if (lt_freq[lt_foo] == 1) { print lt_foo; } 22220}'` 22221 # AWK program above erroneously prepends '/' to C:/dos/paths 22222 # for these hosts. 22223 case $host_os in 22224 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 22225 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 22226 esac 22227 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 22228else 22229 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 22230fi 22231library_names_spec= 22232libname_spec='lib$name' 22233soname_spec= 22234shrext_cmds=.so 22235postinstall_cmds= 22236postuninstall_cmds= 22237finish_cmds= 22238finish_eval= 22239shlibpath_var= 22240shlibpath_overrides_runpath=unknown 22241version_type=none 22242dynamic_linker="$host_os ld.so" 22243sys_lib_dlsearch_path_spec="/lib /usr/lib" 22244need_lib_prefix=unknown 22245hardcode_into_libs=no 22246 22247# when you set need_version to no, make sure it does not cause -set_version 22248# flags to be left without arguments 22249need_version=unknown 22250 22251 22252 22253case $host_os in 22254aix3*) 22255 version_type=linux # correct to gnu/linux during the next big refactor 22256 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 22257 shlibpath_var=LIBPATH 22258 22259 # AIX 3 has no versioning support, so we append a major version to the name. 22260 soname_spec='$libname$release$shared_ext$major' 22261 ;; 22262 22263aix[4-9]*) 22264 version_type=linux # correct to gnu/linux during the next big refactor 22265 need_lib_prefix=no 22266 need_version=no 22267 hardcode_into_libs=yes 22268 if test ia64 = "$host_cpu"; then 22269 # AIX 5 supports IA64 22270 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 22271 shlibpath_var=LD_LIBRARY_PATH 22272 else 22273 # With GCC up to 2.95.x, collect2 would create an import file 22274 # for dependence libraries. The import file would start with 22275 # the line '#! .'. This would cause the generated library to 22276 # depend on '.', always an invalid library. This was fixed in 22277 # development snapshots of GCC prior to 3.0. 22278 case $host_os in 22279 aix4 | aix4.[01] | aix4.[01].*) 22280 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 22281 echo ' yes ' 22282 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 22283 : 22284 else 22285 can_build_shared=no 22286 fi 22287 ;; 22288 esac 22289 # Using Import Files as archive members, it is possible to support 22290 # filename-based versioning of shared library archives on AIX. While 22291 # this would work for both with and without runtime linking, it will 22292 # prevent static linking of such archives. So we do filename-based 22293 # shared library versioning with .so extension only, which is used 22294 # when both runtime linking and shared linking is enabled. 22295 # Unfortunately, runtime linking may impact performance, so we do 22296 # not want this to be the default eventually. Also, we use the 22297 # versioned .so libs for executables only if there is the -brtl 22298 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 22299 # To allow for filename-based versioning support, we need to create 22300 # libNAME.so.V as an archive file, containing: 22301 # *) an Import File, referring to the versioned filename of the 22302 # archive as well as the shared archive member, telling the 22303 # bitwidth (32 or 64) of that shared object, and providing the 22304 # list of exported symbols of that shared object, eventually 22305 # decorated with the 'weak' keyword 22306 # *) the shared object with the F_LOADONLY flag set, to really avoid 22307 # it being seen by the linker. 22308 # At run time we better use the real file rather than another symlink, 22309 # but for link time we create the symlink libNAME.so -> libNAME.so.V 22310 22311 case $with_aix_soname,$aix_use_runtimelinking in 22312 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 22313 # soname into executable. Probably we can add versioning support to 22314 # collect2, so additional links can be useful in future. 22315 aix,yes) # traditional libtool 22316 dynamic_linker='AIX unversionable lib.so' 22317 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 22318 # instead of lib<name>.a to let people know that these are not 22319 # typical AIX shared libraries. 22320 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 22321 ;; 22322 aix,no) # traditional AIX only 22323 dynamic_linker='AIX lib.a(lib.so.V)' 22324 # We preserve .a as extension for shared libraries through AIX4.2 22325 # and later when we are not doing run time linking. 22326 library_names_spec='$libname$release.a $libname.a' 22327 soname_spec='$libname$release$shared_ext$major' 22328 ;; 22329 svr4,*) # full svr4 only 22330 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 22331 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 22332 # We do not specify a path in Import Files, so LIBPATH fires. 22333 shlibpath_overrides_runpath=yes 22334 ;; 22335 *,yes) # both, prefer svr4 22336 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 22337 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 22338 # unpreferred sharedlib libNAME.a needs extra handling 22339 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' 22340 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' 22341 # We do not specify a path in Import Files, so LIBPATH fires. 22342 shlibpath_overrides_runpath=yes 22343 ;; 22344 *,no) # both, prefer aix 22345 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 22346 library_names_spec='$libname$release.a $libname.a' 22347 soname_spec='$libname$release$shared_ext$major' 22348 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 22349 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' 22350 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' 22351 ;; 22352 esac 22353 shlibpath_var=LIBPATH 22354 fi 22355 ;; 22356 22357amigaos*) 22358 case $host_cpu in 22359 powerpc) 22360 # Since July 2007 AmigaOS4 officially supports .so libraries. 22361 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 22362 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 22363 ;; 22364 m68k) 22365 library_names_spec='$libname.ixlibrary $libname.a' 22366 # Create ${libname}_ixlibrary.a entries in /sys/libs. 22367 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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' 22368 ;; 22369 esac 22370 ;; 22371 22372beos*) 22373 library_names_spec='$libname$shared_ext' 22374 dynamic_linker="$host_os ld.so" 22375 shlibpath_var=LIBRARY_PATH 22376 ;; 22377 22378bsdi[45]*) 22379 version_type=linux # correct to gnu/linux during the next big refactor 22380 need_version=no 22381 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 22382 soname_spec='$libname$release$shared_ext$major' 22383 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 22384 shlibpath_var=LD_LIBRARY_PATH 22385 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 22386 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 22387 # the default ld.so.conf also contains /usr/contrib/lib and 22388 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 22389 # libtool to hard-code these into programs 22390 ;; 22391 22392cygwin* | mingw* | pw32* | cegcc*) 22393 version_type=windows 22394 shrext_cmds=.dll 22395 need_version=no 22396 need_lib_prefix=no 22397 22398 case $GCC,$cc_basename in 22399 yes,*) 22400 # gcc 22401 library_names_spec='$libname.dll.a' 22402 # DLL is installed to $(libdir)/../bin by postinstall_cmds 22403 postinstall_cmds='base_file=`basename \$file`~ 22404 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 22405 dldir=$destdir/`dirname \$dlpath`~ 22406 test -d \$dldir || mkdir -p \$dldir~ 22407 $install_prog $dir/$dlname \$dldir/$dlname~ 22408 chmod a+x \$dldir/$dlname~ 22409 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 22410 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 22411 fi' 22412 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 22413 dlpath=$dir/\$dldll~ 22414 $RM \$dlpath' 22415 shlibpath_overrides_runpath=yes 22416 22417 case $host_os in 22418 cygwin*) 22419 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 22420 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 22421 22422 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 22423 ;; 22424 mingw* | cegcc*) 22425 # MinGW DLLs use traditional 'lib' prefix 22426 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 22427 ;; 22428 pw32*) 22429 # pw32 DLLs use 'pw' prefix rather than 'lib' 22430 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 22431 ;; 22432 esac 22433 dynamic_linker='Win32 ld.exe' 22434 ;; 22435 22436 *,cl*) 22437 # Native MSVC 22438 libname_spec='$name' 22439 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 22440 library_names_spec='$libname.dll.lib' 22441 22442 case $build_os in 22443 mingw*) 22444 sys_lib_search_path_spec= 22445 lt_save_ifs=$IFS 22446 IFS=';' 22447 for lt_path in $LIB 22448 do 22449 IFS=$lt_save_ifs 22450 # Let DOS variable expansion print the short 8.3 style file name. 22451 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 22452 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 22453 done 22454 IFS=$lt_save_ifs 22455 # Convert to MSYS style. 22456 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 22457 ;; 22458 cygwin*) 22459 # Convert to unix form, then to dos form, then back to unix form 22460 # but this time dos style (no spaces!) so that the unix form looks 22461 # like /cygdrive/c/PROGRA~1:/cygdr... 22462 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 22463 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 22464 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 22465 ;; 22466 *) 22467 sys_lib_search_path_spec=$LIB 22468 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 22469 # It is most probably a Windows format PATH. 22470 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 22471 else 22472 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 22473 fi 22474 # FIXME: find the short name or the path components, as spaces are 22475 # common. (e.g. "Program Files" -> "PROGRA~1") 22476 ;; 22477 esac 22478 22479 # DLL is installed to $(libdir)/../bin by postinstall_cmds 22480 postinstall_cmds='base_file=`basename \$file`~ 22481 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 22482 dldir=$destdir/`dirname \$dlpath`~ 22483 test -d \$dldir || mkdir -p \$dldir~ 22484 $install_prog $dir/$dlname \$dldir/$dlname' 22485 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 22486 dlpath=$dir/\$dldll~ 22487 $RM \$dlpath' 22488 shlibpath_overrides_runpath=yes 22489 dynamic_linker='Win32 link.exe' 22490 ;; 22491 22492 *) 22493 # Assume MSVC wrapper 22494 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 22495 dynamic_linker='Win32 ld.exe' 22496 ;; 22497 esac 22498 # FIXME: first we should search . and the directory the executable is in 22499 shlibpath_var=PATH 22500 ;; 22501 22502darwin* | rhapsody*) 22503 dynamic_linker="$host_os dyld" 22504 version_type=darwin 22505 need_lib_prefix=no 22506 need_version=no 22507 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 22508 soname_spec='$libname$release$major$shared_ext' 22509 shlibpath_overrides_runpath=yes 22510 shlibpath_var=DYLD_LIBRARY_PATH 22511 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 22512 22513 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 22514 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 22515 ;; 22516 22517dgux*) 22518 version_type=linux # correct to gnu/linux during the next big refactor 22519 need_lib_prefix=no 22520 need_version=no 22521 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 22522 soname_spec='$libname$release$shared_ext$major' 22523 shlibpath_var=LD_LIBRARY_PATH 22524 ;; 22525 22526freebsd* | dragonfly*) 22527 # DragonFly does not have aout. When/if they implement a new 22528 # versioning mechanism, adjust this. 22529 if test -x /usr/bin/objformat; then 22530 objformat=`/usr/bin/objformat` 22531 else 22532 case $host_os in 22533 freebsd[23].*) objformat=aout ;; 22534 *) objformat=elf ;; 22535 esac 22536 fi 22537 version_type=freebsd-$objformat 22538 case $version_type in 22539 freebsd-elf*) 22540 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 22541 soname_spec='$libname$release$shared_ext$major' 22542 need_version=no 22543 need_lib_prefix=no 22544 ;; 22545 freebsd-*) 22546 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 22547 need_version=yes 22548 ;; 22549 esac 22550 shlibpath_var=LD_LIBRARY_PATH 22551 case $host_os in 22552 freebsd2.*) 22553 shlibpath_overrides_runpath=yes 22554 ;; 22555 freebsd3.[01]* | freebsdelf3.[01]*) 22556 shlibpath_overrides_runpath=yes 22557 hardcode_into_libs=yes 22558 ;; 22559 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 22560 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 22561 shlibpath_overrides_runpath=no 22562 hardcode_into_libs=yes 22563 ;; 22564 *) # from 4.6 on, and DragonFly 22565 shlibpath_overrides_runpath=yes 22566 hardcode_into_libs=yes 22567 ;; 22568 esac 22569 ;; 22570 22571haiku*) 22572 version_type=linux # correct to gnu/linux during the next big refactor 22573 need_lib_prefix=no 22574 need_version=no 22575 dynamic_linker="$host_os runtime_loader" 22576 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 22577 soname_spec='$libname$release$shared_ext$major' 22578 shlibpath_var=LIBRARY_PATH 22579 shlibpath_overrides_runpath=no 22580 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 22581 hardcode_into_libs=yes 22582 ;; 22583 22584hpux9* | hpux10* | hpux11*) 22585 # Give a soname corresponding to the major version so that dld.sl refuses to 22586 # link against other versions. 22587 version_type=sunos 22588 need_lib_prefix=no 22589 need_version=no 22590 case $host_cpu in 22591 ia64*) 22592 shrext_cmds='.so' 22593 hardcode_into_libs=yes 22594 dynamic_linker="$host_os dld.so" 22595 shlibpath_var=LD_LIBRARY_PATH 22596 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 22597 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 22598 soname_spec='$libname$release$shared_ext$major' 22599 if test 32 = "$HPUX_IA64_MODE"; then 22600 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 22601 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 22602 else 22603 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 22604 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 22605 fi 22606 ;; 22607 hppa*64*) 22608 shrext_cmds='.sl' 22609 hardcode_into_libs=yes 22610 dynamic_linker="$host_os dld.sl" 22611 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 22612 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 22613 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 22614 soname_spec='$libname$release$shared_ext$major' 22615 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 22616 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 22617 ;; 22618 *) 22619 shrext_cmds='.sl' 22620 dynamic_linker="$host_os dld.sl" 22621 shlibpath_var=SHLIB_PATH 22622 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 22623 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 22624 soname_spec='$libname$release$shared_ext$major' 22625 ;; 22626 esac 22627 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 22628 postinstall_cmds='chmod 555 $lib' 22629 # or fails outright, so override atomically: 22630 install_override_mode=555 22631 ;; 22632 22633interix[3-9]*) 22634 version_type=linux # correct to gnu/linux during the next big refactor 22635 need_lib_prefix=no 22636 need_version=no 22637 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 22638 soname_spec='$libname$release$shared_ext$major' 22639 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 22640 shlibpath_var=LD_LIBRARY_PATH 22641 shlibpath_overrides_runpath=no 22642 hardcode_into_libs=yes 22643 ;; 22644 22645irix5* | irix6* | nonstopux*) 22646 case $host_os in 22647 nonstopux*) version_type=nonstopux ;; 22648 *) 22649 if test yes = "$lt_cv_prog_gnu_ld"; then 22650 version_type=linux # correct to gnu/linux during the next big refactor 22651 else 22652 version_type=irix 22653 fi ;; 22654 esac 22655 need_lib_prefix=no 22656 need_version=no 22657 soname_spec='$libname$release$shared_ext$major' 22658 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 22659 case $host_os in 22660 irix5* | nonstopux*) 22661 libsuff= shlibsuff= 22662 ;; 22663 *) 22664 case $LD in # libtool.m4 will add one of these switches to LD 22665 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 22666 libsuff= shlibsuff= libmagic=32-bit;; 22667 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 22668 libsuff=32 shlibsuff=N32 libmagic=N32;; 22669 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 22670 libsuff=64 shlibsuff=64 libmagic=64-bit;; 22671 *) libsuff= shlibsuff= libmagic=never-match;; 22672 esac 22673 ;; 22674 esac 22675 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 22676 shlibpath_overrides_runpath=no 22677 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 22678 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 22679 hardcode_into_libs=yes 22680 ;; 22681 22682# No shared lib support for Linux oldld, aout, or coff. 22683linux*oldld* | linux*aout* | linux*coff*) 22684 dynamic_linker=no 22685 ;; 22686 22687linux*android*) 22688 version_type=none # Android doesn't support versioned libraries. 22689 need_lib_prefix=no 22690 need_version=no 22691 library_names_spec='$libname$release$shared_ext' 22692 soname_spec='$libname$release$shared_ext' 22693 finish_cmds= 22694 shlibpath_var=LD_LIBRARY_PATH 22695 shlibpath_overrides_runpath=yes 22696 22697 # This implies no fast_install, which is unacceptable. 22698 # Some rework will be needed to allow for fast_install 22699 # before this can be enabled. 22700 hardcode_into_libs=yes 22701 22702 dynamic_linker='Android linker' 22703 # Don't embed -rpath directories since the linker doesn't support them. 22704 hardcode_libdir_flag_spec='-L$libdir' 22705 ;; 22706 22707# This must be glibc/ELF. 22708linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 22709 version_type=linux # correct to gnu/linux during the next big refactor 22710 need_lib_prefix=no 22711 need_version=no 22712 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 22713 soname_spec='$libname$release$shared_ext$major' 22714 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 22715 shlibpath_var=LD_LIBRARY_PATH 22716 shlibpath_overrides_runpath=no 22717 22718 # Some binutils ld are patched to set DT_RUNPATH 22719 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 22720 $as_echo_n "(cached) " >&6 22721else 22722 lt_cv_shlibpath_overrides_runpath=no 22723 save_LDFLAGS=$LDFLAGS 22724 save_libdir=$libdir 22725 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 22726 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 22727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22728/* end confdefs.h. */ 22729 22730int 22731main () 22732{ 22733 22734 ; 22735 return 0; 22736} 22737_ACEOF 22738if ac_fn_c_try_link "$LINENO"; then : 22739 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 22740 lt_cv_shlibpath_overrides_runpath=yes 22741fi 22742fi 22743rm -f core conftest.err conftest.$ac_objext \ 22744 conftest$ac_exeext conftest.$ac_ext 22745 LDFLAGS=$save_LDFLAGS 22746 libdir=$save_libdir 22747 22748fi 22749 22750 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 22751 22752 # This implies no fast_install, which is unacceptable. 22753 # Some rework will be needed to allow for fast_install 22754 # before this can be enabled. 22755 hardcode_into_libs=yes 22756 22757 # Ideally, we could use ldconfig to report *all* directores which are 22758 # searched for libraries, however this is still not possible. Aside from not 22759 # being certain /sbin/ldconfig is available, command 22760 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 22761 # even though it is searched at run-time. Try to do the best guess by 22762 # appending ld.so.conf contents (and includes) to the search path. 22763 if test -f /etc/ld.so.conf; then 22764 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' ' '` 22765 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 22766 fi 22767 22768 # We used to test for /lib/ld.so.1 and disable shared libraries on 22769 # powerpc, because MkLinux only supported shared libraries with the 22770 # GNU dynamic linker. Since this was broken with cross compilers, 22771 # most powerpc-linux boxes support dynamic linking these days and 22772 # people can always --disable-shared, the test was removed, and we 22773 # assume the GNU/Linux dynamic linker is in use. 22774 dynamic_linker='GNU/Linux ld.so' 22775 ;; 22776 22777netbsd*) 22778 version_type=sunos 22779 need_lib_prefix=no 22780 need_version=no 22781 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 22782 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 22783 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 22784 dynamic_linker='NetBSD (a.out) ld.so' 22785 else 22786 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 22787 soname_spec='$libname$release$shared_ext$major' 22788 dynamic_linker='NetBSD ld.elf_so' 22789 fi 22790 shlibpath_var=LD_LIBRARY_PATH 22791 shlibpath_overrides_runpath=yes 22792 hardcode_into_libs=yes 22793 ;; 22794 22795newsos6) 22796 version_type=linux # correct to gnu/linux during the next big refactor 22797 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 22798 shlibpath_var=LD_LIBRARY_PATH 22799 shlibpath_overrides_runpath=yes 22800 ;; 22801 22802*nto* | *qnx*) 22803 version_type=qnx 22804 need_lib_prefix=no 22805 need_version=no 22806 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 22807 soname_spec='$libname$release$shared_ext$major' 22808 shlibpath_var=LD_LIBRARY_PATH 22809 shlibpath_overrides_runpath=no 22810 hardcode_into_libs=yes 22811 dynamic_linker='ldqnx.so' 22812 ;; 22813 22814openbsd* | bitrig*) 22815 version_type=sunos 22816 sys_lib_dlsearch_path_spec=/usr/lib 22817 need_lib_prefix=no 22818 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 22819 need_version=no 22820 else 22821 need_version=yes 22822 fi 22823 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 22824 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 22825 shlibpath_var=LD_LIBRARY_PATH 22826 shlibpath_overrides_runpath=yes 22827 ;; 22828 22829os2*) 22830 libname_spec='$name' 22831 version_type=windows 22832 shrext_cmds=.dll 22833 need_version=no 22834 need_lib_prefix=no 22835 # OS/2 can only load a DLL with a base name of 8 characters or less. 22836 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 22837 v=$($ECHO $release$versuffix | tr -d .-); 22838 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 22839 $ECHO $n$v`$shared_ext' 22840 library_names_spec='${libname}_dll.$libext' 22841 dynamic_linker='OS/2 ld.exe' 22842 shlibpath_var=BEGINLIBPATH 22843 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 22844 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 22845 postinstall_cmds='base_file=`basename \$file`~ 22846 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 22847 dldir=$destdir/`dirname \$dlpath`~ 22848 test -d \$dldir || mkdir -p \$dldir~ 22849 $install_prog $dir/$dlname \$dldir/$dlname~ 22850 chmod a+x \$dldir/$dlname~ 22851 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 22852 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 22853 fi' 22854 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 22855 dlpath=$dir/\$dldll~ 22856 $RM \$dlpath' 22857 ;; 22858 22859osf3* | osf4* | osf5*) 22860 version_type=osf 22861 need_lib_prefix=no 22862 need_version=no 22863 soname_spec='$libname$release$shared_ext$major' 22864 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 22865 shlibpath_var=LD_LIBRARY_PATH 22866 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 22867 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 22868 ;; 22869 22870rdos*) 22871 dynamic_linker=no 22872 ;; 22873 22874solaris*) 22875 version_type=linux # correct to gnu/linux during the next big refactor 22876 need_lib_prefix=no 22877 need_version=no 22878 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 22879 soname_spec='$libname$release$shared_ext$major' 22880 shlibpath_var=LD_LIBRARY_PATH 22881 shlibpath_overrides_runpath=yes 22882 hardcode_into_libs=yes 22883 # ldd complains unless libraries are executable 22884 postinstall_cmds='chmod +x $lib' 22885 ;; 22886 22887sunos4*) 22888 version_type=sunos 22889 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 22890 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 22891 shlibpath_var=LD_LIBRARY_PATH 22892 shlibpath_overrides_runpath=yes 22893 if test yes = "$with_gnu_ld"; then 22894 need_lib_prefix=no 22895 fi 22896 need_version=yes 22897 ;; 22898 22899sysv4 | sysv4.3*) 22900 version_type=linux # correct to gnu/linux during the next big refactor 22901 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 22902 soname_spec='$libname$release$shared_ext$major' 22903 shlibpath_var=LD_LIBRARY_PATH 22904 case $host_vendor in 22905 sni) 22906 shlibpath_overrides_runpath=no 22907 need_lib_prefix=no 22908 runpath_var=LD_RUN_PATH 22909 ;; 22910 siemens) 22911 need_lib_prefix=no 22912 ;; 22913 motorola) 22914 need_lib_prefix=no 22915 need_version=no 22916 shlibpath_overrides_runpath=no 22917 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 22918 ;; 22919 esac 22920 ;; 22921 22922sysv4*MP*) 22923 if test -d /usr/nec; then 22924 version_type=linux # correct to gnu/linux during the next big refactor 22925 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 22926 soname_spec='$libname$shared_ext.$major' 22927 shlibpath_var=LD_LIBRARY_PATH 22928 fi 22929 ;; 22930 22931sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 22932 version_type=sco 22933 need_lib_prefix=no 22934 need_version=no 22935 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 22936 soname_spec='$libname$release$shared_ext$major' 22937 shlibpath_var=LD_LIBRARY_PATH 22938 shlibpath_overrides_runpath=yes 22939 hardcode_into_libs=yes 22940 if test yes = "$with_gnu_ld"; then 22941 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 22942 else 22943 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 22944 case $host_os in 22945 sco3.2v5*) 22946 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 22947 ;; 22948 esac 22949 fi 22950 sys_lib_dlsearch_path_spec='/usr/lib' 22951 ;; 22952 22953tpf*) 22954 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 22955 version_type=linux # correct to gnu/linux during the next big refactor 22956 need_lib_prefix=no 22957 need_version=no 22958 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 22959 shlibpath_var=LD_LIBRARY_PATH 22960 shlibpath_overrides_runpath=no 22961 hardcode_into_libs=yes 22962 ;; 22963 22964uts4*) 22965 version_type=linux # correct to gnu/linux during the next big refactor 22966 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 22967 soname_spec='$libname$release$shared_ext$major' 22968 shlibpath_var=LD_LIBRARY_PATH 22969 ;; 22970 22971*) 22972 dynamic_linker=no 22973 ;; 22974esac 22975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 22976$as_echo "$dynamic_linker" >&6; } 22977test no = "$dynamic_linker" && can_build_shared=no 22978 22979variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 22980if test yes = "$GCC"; then 22981 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 22982fi 22983 22984if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 22985 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 22986fi 22987 22988if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 22989 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 22990fi 22991 22992# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 22993configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 22994 22995# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 22996func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 22997 22998# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 22999configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 23000 23001 23002 23003 23004 23005 23006 23007 23008 23009 23010 23011 23012 23013 23014 23015 23016 23017 23018 23019 23020 23021 23022 23023 23024 23025 23026 23027 23028 23029 23030 23031 23032 23033 23034 23035 23036 23037 23038 23039 23040 23041 23042 23043 23044 23045 23046 23047 23048 23049 23050 23051 23052 23053 23054 23055 23056 23057 23058 23059 23060 23061 23062 23063 23064 23065 23066 23067 23068 23069 23070 23071 23072 23073 23074 23075 23076 23077 23078 23079 23080 23081 23082 23083 23084 23085 23086 23087 23088 23089 23090 23091 23092 23093 23094 23095 23096 23097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 23098$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 23099hardcode_action= 23100if test -n "$hardcode_libdir_flag_spec" || 23101 test -n "$runpath_var" || 23102 test yes = "$hardcode_automatic"; then 23103 23104 # We can hardcode non-existent directories. 23105 if test no != "$hardcode_direct" && 23106 # If the only mechanism to avoid hardcoding is shlibpath_var, we 23107 # have to relink, otherwise we might link with an installed library 23108 # when we should be linking with a yet-to-be-installed one 23109 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 23110 test no != "$hardcode_minus_L"; then 23111 # Linking always hardcodes the temporary library directory. 23112 hardcode_action=relink 23113 else 23114 # We can link without hardcoding, and we can hardcode nonexisting dirs. 23115 hardcode_action=immediate 23116 fi 23117else 23118 # We cannot hardcode anything, or else we can only hardcode existing 23119 # directories. 23120 hardcode_action=unsupported 23121fi 23122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 23123$as_echo "$hardcode_action" >&6; } 23124 23125if test relink = "$hardcode_action" || 23126 test yes = "$inherit_rpath"; then 23127 # Fast installation is not supported 23128 enable_fast_install=no 23129elif test yes = "$shlibpath_overrides_runpath" || 23130 test no = "$enable_shared"; then 23131 # Fast installation is not necessary 23132 enable_fast_install=needless 23133fi 23134 23135 23136 23137 23138 23139 23140 if test yes != "$enable_dlopen"; then 23141 enable_dlopen=unknown 23142 enable_dlopen_self=unknown 23143 enable_dlopen_self_static=unknown 23144else 23145 lt_cv_dlopen=no 23146 lt_cv_dlopen_libs= 23147 23148 case $host_os in 23149 beos*) 23150 lt_cv_dlopen=load_add_on 23151 lt_cv_dlopen_libs= 23152 lt_cv_dlopen_self=yes 23153 ;; 23154 23155 mingw* | pw32* | cegcc*) 23156 lt_cv_dlopen=LoadLibrary 23157 lt_cv_dlopen_libs= 23158 ;; 23159 23160 cygwin*) 23161 lt_cv_dlopen=dlopen 23162 lt_cv_dlopen_libs= 23163 ;; 23164 23165 darwin*) 23166 # if libdl is installed we need to link against it 23167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 23168$as_echo_n "checking for dlopen in -ldl... " >&6; } 23169if ${ac_cv_lib_dl_dlopen+:} false; then : 23170 $as_echo_n "(cached) " >&6 23171else 23172 ac_check_lib_save_LIBS=$LIBS 23173LIBS="-ldl $LIBS" 23174cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23175/* end confdefs.h. */ 23176 23177/* Override any GCC internal prototype to avoid an error. 23178 Use char because int might match the return type of a GCC 23179 builtin and then its argument prototype would still apply. */ 23180#ifdef __cplusplus 23181extern "C" 23182#endif 23183char dlopen (); 23184int 23185main () 23186{ 23187return dlopen (); 23188 ; 23189 return 0; 23190} 23191_ACEOF 23192if ac_fn_c_try_link "$LINENO"; then : 23193 ac_cv_lib_dl_dlopen=yes 23194else 23195 ac_cv_lib_dl_dlopen=no 23196fi 23197rm -f core conftest.err conftest.$ac_objext \ 23198 conftest$ac_exeext conftest.$ac_ext 23199LIBS=$ac_check_lib_save_LIBS 23200fi 23201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 23202$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 23203if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 23204 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 23205else 23206 23207 lt_cv_dlopen=dyld 23208 lt_cv_dlopen_libs= 23209 lt_cv_dlopen_self=yes 23210 23211fi 23212 23213 ;; 23214 23215 tpf*) 23216 # Don't try to run any link tests for TPF. We know it's impossible 23217 # because TPF is a cross-compiler, and we know how we open DSOs. 23218 lt_cv_dlopen=dlopen 23219 lt_cv_dlopen_libs= 23220 lt_cv_dlopen_self=no 23221 ;; 23222 23223 *) 23224 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 23225if test "x$ac_cv_func_shl_load" = xyes; then : 23226 lt_cv_dlopen=shl_load 23227else 23228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 23229$as_echo_n "checking for shl_load in -ldld... " >&6; } 23230if ${ac_cv_lib_dld_shl_load+:} false; then : 23231 $as_echo_n "(cached) " >&6 23232else 23233 ac_check_lib_save_LIBS=$LIBS 23234LIBS="-ldld $LIBS" 23235cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23236/* end confdefs.h. */ 23237 23238/* Override any GCC internal prototype to avoid an error. 23239 Use char because int might match the return type of a GCC 23240 builtin and then its argument prototype would still apply. */ 23241#ifdef __cplusplus 23242extern "C" 23243#endif 23244char shl_load (); 23245int 23246main () 23247{ 23248return shl_load (); 23249 ; 23250 return 0; 23251} 23252_ACEOF 23253if ac_fn_c_try_link "$LINENO"; then : 23254 ac_cv_lib_dld_shl_load=yes 23255else 23256 ac_cv_lib_dld_shl_load=no 23257fi 23258rm -f core conftest.err conftest.$ac_objext \ 23259 conftest$ac_exeext conftest.$ac_ext 23260LIBS=$ac_check_lib_save_LIBS 23261fi 23262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 23263$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 23264if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 23265 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 23266else 23267 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 23268if test "x$ac_cv_func_dlopen" = xyes; then : 23269 lt_cv_dlopen=dlopen 23270else 23271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 23272$as_echo_n "checking for dlopen in -ldl... " >&6; } 23273if ${ac_cv_lib_dl_dlopen+:} false; then : 23274 $as_echo_n "(cached) " >&6 23275else 23276 ac_check_lib_save_LIBS=$LIBS 23277LIBS="-ldl $LIBS" 23278cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23279/* end confdefs.h. */ 23280 23281/* Override any GCC internal prototype to avoid an error. 23282 Use char because int might match the return type of a GCC 23283 builtin and then its argument prototype would still apply. */ 23284#ifdef __cplusplus 23285extern "C" 23286#endif 23287char dlopen (); 23288int 23289main () 23290{ 23291return dlopen (); 23292 ; 23293 return 0; 23294} 23295_ACEOF 23296if ac_fn_c_try_link "$LINENO"; then : 23297 ac_cv_lib_dl_dlopen=yes 23298else 23299 ac_cv_lib_dl_dlopen=no 23300fi 23301rm -f core conftest.err conftest.$ac_objext \ 23302 conftest$ac_exeext conftest.$ac_ext 23303LIBS=$ac_check_lib_save_LIBS 23304fi 23305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 23306$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 23307if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 23308 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 23309else 23310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 23311$as_echo_n "checking for dlopen in -lsvld... " >&6; } 23312if ${ac_cv_lib_svld_dlopen+:} false; then : 23313 $as_echo_n "(cached) " >&6 23314else 23315 ac_check_lib_save_LIBS=$LIBS 23316LIBS="-lsvld $LIBS" 23317cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23318/* end confdefs.h. */ 23319 23320/* Override any GCC internal prototype to avoid an error. 23321 Use char because int might match the return type of a GCC 23322 builtin and then its argument prototype would still apply. */ 23323#ifdef __cplusplus 23324extern "C" 23325#endif 23326char dlopen (); 23327int 23328main () 23329{ 23330return dlopen (); 23331 ; 23332 return 0; 23333} 23334_ACEOF 23335if ac_fn_c_try_link "$LINENO"; then : 23336 ac_cv_lib_svld_dlopen=yes 23337else 23338 ac_cv_lib_svld_dlopen=no 23339fi 23340rm -f core conftest.err conftest.$ac_objext \ 23341 conftest$ac_exeext conftest.$ac_ext 23342LIBS=$ac_check_lib_save_LIBS 23343fi 23344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 23345$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 23346if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 23347 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 23348else 23349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 23350$as_echo_n "checking for dld_link in -ldld... " >&6; } 23351if ${ac_cv_lib_dld_dld_link+:} false; then : 23352 $as_echo_n "(cached) " >&6 23353else 23354 ac_check_lib_save_LIBS=$LIBS 23355LIBS="-ldld $LIBS" 23356cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23357/* end confdefs.h. */ 23358 23359/* Override any GCC internal prototype to avoid an error. 23360 Use char because int might match the return type of a GCC 23361 builtin and then its argument prototype would still apply. */ 23362#ifdef __cplusplus 23363extern "C" 23364#endif 23365char dld_link (); 23366int 23367main () 23368{ 23369return dld_link (); 23370 ; 23371 return 0; 23372} 23373_ACEOF 23374if ac_fn_c_try_link "$LINENO"; then : 23375 ac_cv_lib_dld_dld_link=yes 23376else 23377 ac_cv_lib_dld_dld_link=no 23378fi 23379rm -f core conftest.err conftest.$ac_objext \ 23380 conftest$ac_exeext conftest.$ac_ext 23381LIBS=$ac_check_lib_save_LIBS 23382fi 23383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 23384$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 23385if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 23386 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 23387fi 23388 23389 23390fi 23391 23392 23393fi 23394 23395 23396fi 23397 23398 23399fi 23400 23401 23402fi 23403 23404 ;; 23405 esac 23406 23407 if test no = "$lt_cv_dlopen"; then 23408 enable_dlopen=no 23409 else 23410 enable_dlopen=yes 23411 fi 23412 23413 case $lt_cv_dlopen in 23414 dlopen) 23415 save_CPPFLAGS=$CPPFLAGS 23416 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 23417 23418 save_LDFLAGS=$LDFLAGS 23419 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 23420 23421 save_LIBS=$LIBS 23422 LIBS="$lt_cv_dlopen_libs $LIBS" 23423 23424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 23425$as_echo_n "checking whether a program can dlopen itself... " >&6; } 23426if ${lt_cv_dlopen_self+:} false; then : 23427 $as_echo_n "(cached) " >&6 23428else 23429 if test yes = "$cross_compiling"; then : 23430 lt_cv_dlopen_self=cross 23431else 23432 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 23433 lt_status=$lt_dlunknown 23434 cat > conftest.$ac_ext <<_LT_EOF 23435#line $LINENO "configure" 23436#include "confdefs.h" 23437 23438#if HAVE_DLFCN_H 23439#include <dlfcn.h> 23440#endif 23441 23442#include <stdio.h> 23443 23444#ifdef RTLD_GLOBAL 23445# define LT_DLGLOBAL RTLD_GLOBAL 23446#else 23447# ifdef DL_GLOBAL 23448# define LT_DLGLOBAL DL_GLOBAL 23449# else 23450# define LT_DLGLOBAL 0 23451# endif 23452#endif 23453 23454/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 23455 find out it does not work in some platform. */ 23456#ifndef LT_DLLAZY_OR_NOW 23457# ifdef RTLD_LAZY 23458# define LT_DLLAZY_OR_NOW RTLD_LAZY 23459# else 23460# ifdef DL_LAZY 23461# define LT_DLLAZY_OR_NOW DL_LAZY 23462# else 23463# ifdef RTLD_NOW 23464# define LT_DLLAZY_OR_NOW RTLD_NOW 23465# else 23466# ifdef DL_NOW 23467# define LT_DLLAZY_OR_NOW DL_NOW 23468# else 23469# define LT_DLLAZY_OR_NOW 0 23470# endif 23471# endif 23472# endif 23473# endif 23474#endif 23475 23476/* When -fvisibility=hidden is used, assume the code has been annotated 23477 correspondingly for the symbols needed. */ 23478#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 23479int fnord () __attribute__((visibility("default"))); 23480#endif 23481 23482int fnord () { return 42; } 23483int main () 23484{ 23485 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 23486 int status = $lt_dlunknown; 23487 23488 if (self) 23489 { 23490 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 23491 else 23492 { 23493 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 23494 else puts (dlerror ()); 23495 } 23496 /* dlclose (self); */ 23497 } 23498 else 23499 puts (dlerror ()); 23500 23501 return status; 23502} 23503_LT_EOF 23504 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 23505 (eval $ac_link) 2>&5 23506 ac_status=$? 23507 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 23508 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 23509 (./conftest; exit; ) >&5 2>/dev/null 23510 lt_status=$? 23511 case x$lt_status in 23512 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 23513 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 23514 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 23515 esac 23516 else : 23517 # compilation failed 23518 lt_cv_dlopen_self=no 23519 fi 23520fi 23521rm -fr conftest* 23522 23523 23524fi 23525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 23526$as_echo "$lt_cv_dlopen_self" >&6; } 23527 23528 if test yes = "$lt_cv_dlopen_self"; then 23529 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 23530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 23531$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 23532if ${lt_cv_dlopen_self_static+:} false; then : 23533 $as_echo_n "(cached) " >&6 23534else 23535 if test yes = "$cross_compiling"; then : 23536 lt_cv_dlopen_self_static=cross 23537else 23538 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 23539 lt_status=$lt_dlunknown 23540 cat > conftest.$ac_ext <<_LT_EOF 23541#line $LINENO "configure" 23542#include "confdefs.h" 23543 23544#if HAVE_DLFCN_H 23545#include <dlfcn.h> 23546#endif 23547 23548#include <stdio.h> 23549 23550#ifdef RTLD_GLOBAL 23551# define LT_DLGLOBAL RTLD_GLOBAL 23552#else 23553# ifdef DL_GLOBAL 23554# define LT_DLGLOBAL DL_GLOBAL 23555# else 23556# define LT_DLGLOBAL 0 23557# endif 23558#endif 23559 23560/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 23561 find out it does not work in some platform. */ 23562#ifndef LT_DLLAZY_OR_NOW 23563# ifdef RTLD_LAZY 23564# define LT_DLLAZY_OR_NOW RTLD_LAZY 23565# else 23566# ifdef DL_LAZY 23567# define LT_DLLAZY_OR_NOW DL_LAZY 23568# else 23569# ifdef RTLD_NOW 23570# define LT_DLLAZY_OR_NOW RTLD_NOW 23571# else 23572# ifdef DL_NOW 23573# define LT_DLLAZY_OR_NOW DL_NOW 23574# else 23575# define LT_DLLAZY_OR_NOW 0 23576# endif 23577# endif 23578# endif 23579# endif 23580#endif 23581 23582/* When -fvisibility=hidden is used, assume the code has been annotated 23583 correspondingly for the symbols needed. */ 23584#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 23585int fnord () __attribute__((visibility("default"))); 23586#endif 23587 23588int fnord () { return 42; } 23589int main () 23590{ 23591 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 23592 int status = $lt_dlunknown; 23593 23594 if (self) 23595 { 23596 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 23597 else 23598 { 23599 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 23600 else puts (dlerror ()); 23601 } 23602 /* dlclose (self); */ 23603 } 23604 else 23605 puts (dlerror ()); 23606 23607 return status; 23608} 23609_LT_EOF 23610 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 23611 (eval $ac_link) 2>&5 23612 ac_status=$? 23613 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 23614 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 23615 (./conftest; exit; ) >&5 2>/dev/null 23616 lt_status=$? 23617 case x$lt_status in 23618 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 23619 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 23620 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 23621 esac 23622 else : 23623 # compilation failed 23624 lt_cv_dlopen_self_static=no 23625 fi 23626fi 23627rm -fr conftest* 23628 23629 23630fi 23631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 23632$as_echo "$lt_cv_dlopen_self_static" >&6; } 23633 fi 23634 23635 CPPFLAGS=$save_CPPFLAGS 23636 LDFLAGS=$save_LDFLAGS 23637 LIBS=$save_LIBS 23638 ;; 23639 esac 23640 23641 case $lt_cv_dlopen_self in 23642 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 23643 *) enable_dlopen_self=unknown ;; 23644 esac 23645 23646 case $lt_cv_dlopen_self_static in 23647 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 23648 *) enable_dlopen_self_static=unknown ;; 23649 esac 23650fi 23651 23652 23653 23654 23655 23656 23657 23658 23659 23660 23661 23662 23663 23664 23665 23666 23667 23668striplib= 23669old_striplib= 23670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 23671$as_echo_n "checking whether stripping libraries is possible... " >&6; } 23672if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 23673 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 23674 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 23675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 23676$as_echo "yes" >&6; } 23677else 23678# FIXME - insert some real tests, host_os isn't really good enough 23679 case $host_os in 23680 darwin*) 23681 if test -n "$STRIP"; then 23682 striplib="$STRIP -x" 23683 old_striplib="$STRIP -S" 23684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 23685$as_echo "yes" >&6; } 23686 else 23687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23688$as_echo "no" >&6; } 23689 fi 23690 ;; 23691 *) 23692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23693$as_echo "no" >&6; } 23694 ;; 23695 esac 23696fi 23697 23698 23699 23700 23701 23702 23703 23704 23705 23706 23707 23708 23709 # Report what library types will actually be built 23710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 23711$as_echo_n "checking if libtool supports shared libraries... " >&6; } 23712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 23713$as_echo "$can_build_shared" >&6; } 23714 23715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 23716$as_echo_n "checking whether to build shared libraries... " >&6; } 23717 test no = "$can_build_shared" && enable_shared=no 23718 23719 # On AIX, shared libraries and static libraries use the same namespace, and 23720 # are all built from PIC. 23721 case $host_os in 23722 aix3*) 23723 test yes = "$enable_shared" && enable_static=no 23724 if test -n "$RANLIB"; then 23725 archive_cmds="$archive_cmds~\$RANLIB \$lib" 23726 postinstall_cmds='$RANLIB $lib' 23727 fi 23728 ;; 23729 23730 aix[4-9]*) 23731 if test ia64 != "$host_cpu"; then 23732 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 23733 yes,aix,yes) ;; # shared object as lib.so file only 23734 yes,svr4,*) ;; # shared object as lib.so archive member only 23735 yes,*) enable_static=no ;; # shared object in lib.a archive as well 23736 esac 23737 fi 23738 ;; 23739 esac 23740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 23741$as_echo "$enable_shared" >&6; } 23742 23743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 23744$as_echo_n "checking whether to build static libraries... " >&6; } 23745 # Make sure either enable_shared or enable_static is yes. 23746 test yes = "$enable_shared" || enable_static=yes 23747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 23748$as_echo "$enable_static" >&6; } 23749 23750 23751 23752 23753fi 23754ac_ext=c 23755ac_cpp='$CPP $CPPFLAGS' 23756ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 23757ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 23758ac_compiler_gnu=$ac_cv_c_compiler_gnu 23759 23760CC=$lt_save_CC 23761 23762 23763 23764 23765 23766 23767 23768 23769 23770 23771 23772 23773 23774 23775 23776 ac_config_commands="$ac_config_commands libtool" 23777 23778 23779 23780 23781# Only expand once: 23782 23783 23784 23785 23786 23787 23788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if sntp will be built" >&5 23789$as_echo_n "checking if sntp will be built... " >&6; } 23790 23791# Check whether --with-sntp was given. 23792if test "${with_sntp+set}" = set; then : 23793 withval=$with_sntp; 23794else 23795 with_sntp="${withsntp=yes}" 23796 23797fi 23798 23799case "$with_sntp" in 23800 no) 23801 SNTP= 23802 ;; 23803 *) 23804 SNTP=sntp 23805 ;; 23806esac 23807 23808 if test -n "$SNTP"; then 23809 BUILD_SNTP_TRUE= 23810 BUILD_SNTP_FALSE='#' 23811else 23812 BUILD_SNTP_TRUE='#' 23813 BUILD_SNTP_FALSE= 23814fi 23815 23816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sntp" >&5 23817$as_echo "$with_sntp" >&6; } 23818 23819 23820 23821case "$SNTP" in 23822 '') 23823 SNTP_DB= 23824 SNTP_DL= 23825 SNTP_DS= 23826 ;; 23827esac 23828 23829### 23830 23831# NTP has (so far) been relying on leading-edge autogen. 23832# Therefore, by default: 23833# - use the version we ship with 23834# - do not install it 23835# - build a static copy (AC_DISABLE_SHARED - done earlier) 23836case "${enable_local_libopts+set}" in 23837 set) ;; 23838 *) enable_local_libopts=yes ;; 23839esac 23840case "${enable_libopts_install+set}" in 23841 set) ;; 23842 *) enable_libopts_install=no ;; 23843esac 23844enable_nls=no 23845 23846 23847 ac_header_dirent=no 23848for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 23849 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` 23850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 23851$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } 23852if eval \${$as_ac_Header+:} false; then : 23853 $as_echo_n "(cached) " >&6 23854else 23855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23856/* end confdefs.h. */ 23857#include <sys/types.h> 23858#include <$ac_hdr> 23859 23860int 23861main () 23862{ 23863if ((DIR *) 0) 23864return 0; 23865 ; 23866 return 0; 23867} 23868_ACEOF 23869if ac_fn_c_try_compile "$LINENO"; then : 23870 eval "$as_ac_Header=yes" 23871else 23872 eval "$as_ac_Header=no" 23873fi 23874rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23875fi 23876eval ac_res=\$$as_ac_Header 23877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 23878$as_echo "$ac_res" >&6; } 23879if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 23880 cat >>confdefs.h <<_ACEOF 23881#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 23882_ACEOF 23883 23884ac_header_dirent=$ac_hdr; break 23885fi 23886 23887done 23888# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 23889if test $ac_header_dirent = dirent.h; then 23890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 23891$as_echo_n "checking for library containing opendir... " >&6; } 23892if ${ac_cv_search_opendir+:} false; then : 23893 $as_echo_n "(cached) " >&6 23894else 23895 ac_func_search_save_LIBS=$LIBS 23896cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23897/* end confdefs.h. */ 23898 23899/* Override any GCC internal prototype to avoid an error. 23900 Use char because int might match the return type of a GCC 23901 builtin and then its argument prototype would still apply. */ 23902#ifdef __cplusplus 23903extern "C" 23904#endif 23905char opendir (); 23906int 23907main () 23908{ 23909return opendir (); 23910 ; 23911 return 0; 23912} 23913_ACEOF 23914for ac_lib in '' dir; do 23915 if test -z "$ac_lib"; then 23916 ac_res="none required" 23917 else 23918 ac_res=-l$ac_lib 23919 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 23920 fi 23921 if ac_fn_c_try_link "$LINENO"; then : 23922 ac_cv_search_opendir=$ac_res 23923fi 23924rm -f core conftest.err conftest.$ac_objext \ 23925 conftest$ac_exeext 23926 if ${ac_cv_search_opendir+:} false; then : 23927 break 23928fi 23929done 23930if ${ac_cv_search_opendir+:} false; then : 23931 23932else 23933 ac_cv_search_opendir=no 23934fi 23935rm conftest.$ac_ext 23936LIBS=$ac_func_search_save_LIBS 23937fi 23938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 23939$as_echo "$ac_cv_search_opendir" >&6; } 23940ac_res=$ac_cv_search_opendir 23941if test "$ac_res" != no; then : 23942 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 23943 23944fi 23945 23946else 23947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 23948$as_echo_n "checking for library containing opendir... " >&6; } 23949if ${ac_cv_search_opendir+:} false; then : 23950 $as_echo_n "(cached) " >&6 23951else 23952 ac_func_search_save_LIBS=$LIBS 23953cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23954/* end confdefs.h. */ 23955 23956/* Override any GCC internal prototype to avoid an error. 23957 Use char because int might match the return type of a GCC 23958 builtin and then its argument prototype would still apply. */ 23959#ifdef __cplusplus 23960extern "C" 23961#endif 23962char opendir (); 23963int 23964main () 23965{ 23966return opendir (); 23967 ; 23968 return 0; 23969} 23970_ACEOF 23971for ac_lib in '' x; do 23972 if test -z "$ac_lib"; then 23973 ac_res="none required" 23974 else 23975 ac_res=-l$ac_lib 23976 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 23977 fi 23978 if ac_fn_c_try_link "$LINENO"; then : 23979 ac_cv_search_opendir=$ac_res 23980fi 23981rm -f core conftest.err conftest.$ac_objext \ 23982 conftest$ac_exeext 23983 if ${ac_cv_search_opendir+:} false; then : 23984 break 23985fi 23986done 23987if ${ac_cv_search_opendir+:} false; then : 23988 23989else 23990 ac_cv_search_opendir=no 23991fi 23992rm conftest.$ac_ext 23993LIBS=$ac_func_search_save_LIBS 23994fi 23995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 23996$as_echo "$ac_cv_search_opendir" >&6; } 23997ac_res=$ac_cv_search_opendir 23998if test "$ac_res" != no; then : 23999 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 24000 24001fi 24002 24003fi 24004 24005 24006 # ================= 24007 # AC_CHECK_HEADERS 24008 # ================= 24009 for ac_header in \ 24010 sys/mman.h sys/param.h sys/poll.h sys/procset.h \ 24011 sys/select.h sys/socket.h sys/stropts.h sys/time.h \ 24012 sys/un.h sys/wait.h dlfcn.h errno.h \ 24013 fcntl.h libgen.h libintl.h memory.h \ 24014 netinet/in.h setjmp.h stdbool.h sysexits.h \ 24015 unistd.h utime.h 24016do : 24017 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 24018ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 24019if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 24020 cat >>confdefs.h <<_ACEOF 24021#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 24022_ACEOF 24023 24024fi 24025 24026done 24027 24028 24029 for ac_header in stdarg.h varargs.h 24030do : 24031 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 24032ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 24033if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 24034 cat >>confdefs.h <<_ACEOF 24035#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 24036_ACEOF 24037 lo_have_arg_hdr=true;break 24038else 24039 lo_have_arg_hdr=false 24040fi 24041 24042done 24043 24044 24045 for ac_header in string.h strings.h 24046do : 24047 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 24048ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 24049if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 24050 cat >>confdefs.h <<_ACEOF 24051#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 24052_ACEOF 24053 lo_have_str_hdr=true;break 24054else 24055 lo_have_str_hdr=false 24056fi 24057 24058done 24059 24060 24061 for ac_header in limits.h sys/limits.h values.h 24062do : 24063 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 24064ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 24065if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 24066 cat >>confdefs.h <<_ACEOF 24067#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 24068_ACEOF 24069 lo_have_lim_hdr=true;break 24070else 24071 lo_have_lim_hdr=false 24072fi 24073 24074done 24075 24076 24077 for ac_header in inttypes.h stdint.h 24078do : 24079 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 24080ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 24081if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 24082 cat >>confdefs.h <<_ACEOF 24083#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 24084_ACEOF 24085 lo_have_typ_hdr=true;break 24086else 24087 lo_have_typ_hdr=false 24088fi 24089 24090done 24091 24092 24093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stdnoreturn.h" >&5 24094$as_echo_n "checking for working stdnoreturn.h... " >&6; } 24095if ${gl_cv_header_working_stdnoreturn_h+:} false; then : 24096 $as_echo_n "(cached) " >&6 24097else 24098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24099/* end confdefs.h. */ 24100#include <stdlib.h> 24101 #include <stdnoreturn.h> 24102 /* Do not check for 'noreturn' after the return type. 24103 C11 allows it, but it's rarely done that way 24104 and circa-2012 bleeding-edge GCC rejects it when given 24105 -Werror=old-style-declaration. */ 24106 noreturn void foo1 (void) { exit (0); } 24107 _Noreturn void foo2 (void) { exit (0); } 24108 int testit (int argc, char **argv) { 24109 if (argc & 1) 24110 return 0; 24111 (argv[0][0] ? foo1 : foo2) (); 24112 } 24113 24114int 24115main () 24116{ 24117 24118 ; 24119 return 0; 24120} 24121_ACEOF 24122if ac_fn_c_try_compile "$LINENO"; then : 24123 gl_cv_header_working_stdnoreturn_h=yes 24124else 24125 gl_cv_header_working_stdnoreturn_h=no 24126fi 24127rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24128fi 24129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdnoreturn_h" >&5 24130$as_echo "$gl_cv_header_working_stdnoreturn_h" >&6; } 24131 24132 if test $gl_cv_header_working_stdnoreturn_h = yes; then 24133 STDNORETURN_H='' 24134 else 24135 STDNORETURN_H='stdnoreturn.h' 24136 fi 24137 24138 24139 if test -n "$STDNORETURN_H"; then 24140 GL_GENERATE_STDNORETURN_H_TRUE= 24141 GL_GENERATE_STDNORETURN_H_FALSE='#' 24142else 24143 GL_GENERATE_STDNORETURN_H_TRUE='#' 24144 GL_GENERATE_STDNORETURN_H_FALSE= 24145fi 24146 24147 24148 24149 # ---------------------------------------------------------------------- 24150 # check for various programs used during the build. 24151 # On OS/X, "wchar.h" needs "runetype.h" to work properly. 24152 # ---------------------------------------------------------------------- 24153 for ac_header in runetype.h wchar.h 24154do : 24155 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 24156ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" " 24157 $ac_includes_default 24158 #if HAVE_RUNETYPE_H 24159 # include <runetype.h> 24160 #endif 24161 24162" 24163if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 24164 cat >>confdefs.h <<_ACEOF 24165#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 24166_ACEOF 24167 24168fi 24169 24170done 24171 24172 24173 # Check whether --enable-nls was given. 24174if test "${enable_nls+set}" = set; then : 24175 enableval=$enable_nls; 24176fi 24177 24178 if test "x$enable_nls" != "xno" && \ 24179 test "X${ac_cv_header_libintl_h}" = Xyes; then : 24180 24181 24182$as_echo "#define ENABLE_NLS 1" >>confdefs.h 24183 24184fi 24185 24186 # -------------------------------------------- 24187 # Verify certain entries from AC_CHECK_HEADERS 24188 # -------------------------------------------- 24189 ${lo_have_arg_hdr} || \ 24190 as_fn_error $? "you must have stdarg.h or varargs.h on your system" "$LINENO" 5 24191 24192 ${lo_have_str_hdr} || \ 24193 as_fn_error $? "you must have string.h or strings.h on your system" "$LINENO" 5 24194 24195 ${lo_have_lim_hdr} || \ 24196 as_fn_error $? "you must have one of limits.h, sys/limits.h or values.h" "$LINENO" 5 24197 24198 ${lo_have_typ_hdr} || \ 24199 as_fn_error $? "you must have inttypes.h or stdint.h on your system" "$LINENO" 5 24200 24201 for f in sys_types sys_param sys_stat string errno stdlib memory setjmp 24202 do eval as_ac_var=\${ac_cv_header_${f}_h} 24203 test "X${as_ac_var}" = Xyes || { 24204 as_fn_error $? "you must have ${f}.h on your system" "$LINENO" 5 24205 } 24206 done 24207 test "X${ac_cv_header_inttypes_h-no}" = Xyes || \ 24208 echo '#include <stdint.h>' > inttypes.h 24209 24210 # ---------------------------------------------------------------------- 24211 # Checks for typedefs 24212 # ---------------------------------------------------------------------- 24213 ac_fn_c_check_type "$LINENO" "wchar_t" "ac_cv_type_wchar_t" "$ac_includes_default" 24214if test "x$ac_cv_type_wchar_t" = xyes; then : 24215 24216cat >>confdefs.h <<_ACEOF 24217#define HAVE_WCHAR_T 1 24218_ACEOF 24219 24220 24221fi 24222 24223 ac_fn_c_check_type "$LINENO" "wint_t" "ac_cv_type_wint_t" " 24224 $ac_includes_default 24225 #if HAVE_RUNETYPE_H 24226 # include <runetype.h> 24227 #endif 24228 #if HAVE_WCHAR_H 24229 # include <wchar.h> 24230 #endif 24231 24232" 24233if test "x$ac_cv_type_wint_t" = xyes; then : 24234 24235cat >>confdefs.h <<_ACEOF 24236#define HAVE_WINT_T 1 24237_ACEOF 24238 24239 24240fi 24241 24242 ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default" 24243if test "x$ac_cv_type_int8_t" = xyes; then : 24244 24245cat >>confdefs.h <<_ACEOF 24246#define HAVE_INT8_T 1 24247_ACEOF 24248 24249 24250fi 24251ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default" 24252if test "x$ac_cv_type_uint8_t" = xyes; then : 24253 24254cat >>confdefs.h <<_ACEOF 24255#define HAVE_UINT8_T 1 24256_ACEOF 24257 24258 24259fi 24260ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default" 24261if test "x$ac_cv_type_int16_t" = xyes; then : 24262 24263cat >>confdefs.h <<_ACEOF 24264#define HAVE_INT16_T 1 24265_ACEOF 24266 24267 24268fi 24269ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default" 24270if test "x$ac_cv_type_uint16_t" = xyes; then : 24271 24272cat >>confdefs.h <<_ACEOF 24273#define HAVE_UINT16_T 1 24274_ACEOF 24275 24276 24277fi 24278ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default" 24279if test "x$ac_cv_type_int32_t" = xyes; then : 24280 24281cat >>confdefs.h <<_ACEOF 24282#define HAVE_INT32_T 1 24283_ACEOF 24284 24285 24286fi 24287ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default" 24288if test "x$ac_cv_type_uint32_t" = xyes; then : 24289 24290cat >>confdefs.h <<_ACEOF 24291#define HAVE_UINT32_T 1 24292_ACEOF 24293 24294 24295fi 24296ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default" 24297if test "x$ac_cv_type_intptr_t" = xyes; then : 24298 24299cat >>confdefs.h <<_ACEOF 24300#define HAVE_INTPTR_T 1 24301_ACEOF 24302 24303 24304fi 24305ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default" 24306if test "x$ac_cv_type_uintptr_t" = xyes; then : 24307 24308cat >>confdefs.h <<_ACEOF 24309#define HAVE_UINTPTR_T 1 24310_ACEOF 24311 24312 24313fi 24314ac_fn_c_check_type "$LINENO" "uint_t" "ac_cv_type_uint_t" "$ac_includes_default" 24315if test "x$ac_cv_type_uint_t" = xyes; then : 24316 24317cat >>confdefs.h <<_ACEOF 24318#define HAVE_UINT_T 1 24319_ACEOF 24320 24321 24322fi 24323ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" 24324if test "x$ac_cv_type_pid_t" = xyes; then : 24325 24326cat >>confdefs.h <<_ACEOF 24327#define HAVE_PID_T 1 24328_ACEOF 24329 24330 24331fi 24332ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 24333if test "x$ac_cv_type_size_t" = xyes; then : 24334 24335cat >>confdefs.h <<_ACEOF 24336#define HAVE_SIZE_T 1 24337_ACEOF 24338 24339 24340fi 24341ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default" 24342if test "x$ac_cv_type_ptrdiff_t" = xyes; then : 24343 24344cat >>confdefs.h <<_ACEOF 24345#define HAVE_PTRDIFF_T 1 24346_ACEOF 24347 24348 24349fi 24350 24351 # The cast to long int works around a bug in the HP C Compiler 24352# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 24353# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 24354# This bug is HP SR number 8606223364. 24355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char *" >&5 24356$as_echo_n "checking size of char *... " >&6; } 24357if ${ac_cv_sizeof_char_p+:} false; then : 24358 $as_echo_n "(cached) " >&6 24359else 24360 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char *))" "ac_cv_sizeof_char_p" "$ac_includes_default"; then : 24361 24362else 24363 if test "$ac_cv_type_char_p" = yes; then 24364 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 24365$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 24366as_fn_error 77 "cannot compute sizeof (char *) 24367See \`config.log' for more details" "$LINENO" 5; } 24368 else 24369 ac_cv_sizeof_char_p=0 24370 fi 24371fi 24372 24373fi 24374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char_p" >&5 24375$as_echo "$ac_cv_sizeof_char_p" >&6; } 24376 24377 24378 24379cat >>confdefs.h <<_ACEOF 24380#define SIZEOF_CHAR_P $ac_cv_sizeof_char_p 24381_ACEOF 24382 24383 24384 # The cast to long int works around a bug in the HP C Compiler 24385# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 24386# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 24387# This bug is HP SR number 8606223364. 24388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 24389$as_echo_n "checking size of int... " >&6; } 24390if ${ac_cv_sizeof_int+:} false; then : 24391 $as_echo_n "(cached) " >&6 24392else 24393 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : 24394 24395else 24396 if test "$ac_cv_type_int" = yes; then 24397 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 24398$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 24399as_fn_error 77 "cannot compute sizeof (int) 24400See \`config.log' for more details" "$LINENO" 5; } 24401 else 24402 ac_cv_sizeof_int=0 24403 fi 24404fi 24405 24406fi 24407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 24408$as_echo "$ac_cv_sizeof_int" >&6; } 24409 24410 24411 24412cat >>confdefs.h <<_ACEOF 24413#define SIZEOF_INT $ac_cv_sizeof_int 24414_ACEOF 24415 24416 24417 # The cast to long int works around a bug in the HP C Compiler 24418# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 24419# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 24420# This bug is HP SR number 8606223364. 24421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 24422$as_echo_n "checking size of long... " >&6; } 24423if ${ac_cv_sizeof_long+:} false; then : 24424 $as_echo_n "(cached) " >&6 24425else 24426 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : 24427 24428else 24429 if test "$ac_cv_type_long" = yes; then 24430 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 24431$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 24432as_fn_error 77 "cannot compute sizeof (long) 24433See \`config.log' for more details" "$LINENO" 5; } 24434 else 24435 ac_cv_sizeof_long=0 24436 fi 24437fi 24438 24439fi 24440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 24441$as_echo "$ac_cv_sizeof_long" >&6; } 24442 24443 24444 24445cat >>confdefs.h <<_ACEOF 24446#define SIZEOF_LONG $ac_cv_sizeof_long 24447_ACEOF 24448 24449 24450 # The cast to long int works around a bug in the HP C Compiler 24451# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 24452# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 24453# This bug is HP SR number 8606223364. 24454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 24455$as_echo_n "checking size of short... " >&6; } 24456if ${ac_cv_sizeof_short+:} false; then : 24457 $as_echo_n "(cached) " >&6 24458else 24459 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then : 24460 24461else 24462 if test "$ac_cv_type_short" = yes; then 24463 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 24464$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 24465as_fn_error 77 "cannot compute sizeof (short) 24466See \`config.log' for more details" "$LINENO" 5; } 24467 else 24468 ac_cv_sizeof_short=0 24469 fi 24470fi 24471 24472fi 24473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 24474$as_echo "$ac_cv_sizeof_short" >&6; } 24475 24476 24477 24478cat >>confdefs.h <<_ACEOF 24479#define SIZEOF_SHORT $ac_cv_sizeof_short 24480_ACEOF 24481 24482 24483 24484 # ------------ 24485 # AC_CHECK_LIB 24486 # ------------ 24487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pathfind in -lgen" >&5 24488$as_echo_n "checking for pathfind in -lgen... " >&6; } 24489if ${ac_cv_lib_gen_pathfind+:} false; then : 24490 $as_echo_n "(cached) " >&6 24491else 24492 ac_check_lib_save_LIBS=$LIBS 24493LIBS="-lgen $LIBS" 24494cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24495/* end confdefs.h. */ 24496 24497/* Override any GCC internal prototype to avoid an error. 24498 Use char because int might match the return type of a GCC 24499 builtin and then its argument prototype would still apply. */ 24500#ifdef __cplusplus 24501extern "C" 24502#endif 24503char pathfind (); 24504int 24505main () 24506{ 24507return pathfind (); 24508 ; 24509 return 0; 24510} 24511_ACEOF 24512if ac_fn_c_try_link "$LINENO"; then : 24513 ac_cv_lib_gen_pathfind=yes 24514else 24515 ac_cv_lib_gen_pathfind=no 24516fi 24517rm -f core conftest.err conftest.$ac_objext \ 24518 conftest$ac_exeext conftest.$ac_ext 24519LIBS=$ac_check_lib_save_LIBS 24520fi 24521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_pathfind" >&5 24522$as_echo "$ac_cv_lib_gen_pathfind" >&6; } 24523if test "x$ac_cv_lib_gen_pathfind" = xyes; then : 24524 cat >>confdefs.h <<_ACEOF 24525#define HAVE_LIBGEN 1 24526_ACEOF 24527 24528 LIBS="-lgen $LIBS" 24529 24530fi 24531 24532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext in -lintl" >&5 24533$as_echo_n "checking for gettext in -lintl... " >&6; } 24534if ${ac_cv_lib_intl_gettext+:} false; then : 24535 $as_echo_n "(cached) " >&6 24536else 24537 ac_check_lib_save_LIBS=$LIBS 24538LIBS="-lintl $LIBS" 24539cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24540/* end confdefs.h. */ 24541 24542/* Override any GCC internal prototype to avoid an error. 24543 Use char because int might match the return type of a GCC 24544 builtin and then its argument prototype would still apply. */ 24545#ifdef __cplusplus 24546extern "C" 24547#endif 24548char gettext (); 24549int 24550main () 24551{ 24552return gettext (); 24553 ; 24554 return 0; 24555} 24556_ACEOF 24557if ac_fn_c_try_link "$LINENO"; then : 24558 ac_cv_lib_intl_gettext=yes 24559else 24560 ac_cv_lib_intl_gettext=no 24561fi 24562rm -f core conftest.err conftest.$ac_objext \ 24563 conftest$ac_exeext conftest.$ac_ext 24564LIBS=$ac_check_lib_save_LIBS 24565fi 24566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_gettext" >&5 24567$as_echo "$ac_cv_lib_intl_gettext" >&6; } 24568if test "x$ac_cv_lib_intl_gettext" = xyes; then : 24569 cat >>confdefs.h <<_ACEOF 24570#define HAVE_LIBINTL 1 24571_ACEOF 24572 24573 LIBS="-lintl $LIBS" 24574 24575fi 24576 24577 for ac_func in vprintf 24578do : 24579 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf" 24580if test "x$ac_cv_func_vprintf" = xyes; then : 24581 cat >>confdefs.h <<_ACEOF 24582#define HAVE_VPRINTF 1 24583_ACEOF 24584 24585ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt" 24586if test "x$ac_cv_func__doprnt" = xyes; then : 24587 24588$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h 24589 24590fi 24591 24592fi 24593done 24594 24595 24596 for ac_header in vfork.h 24597do : 24598 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default" 24599if test "x$ac_cv_header_vfork_h" = xyes; then : 24600 cat >>confdefs.h <<_ACEOF 24601#define HAVE_VFORK_H 1 24602_ACEOF 24603 24604fi 24605 24606done 24607 24608for ac_func in fork vfork 24609do : 24610 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 24611ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 24612if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 24613 cat >>confdefs.h <<_ACEOF 24614#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 24615_ACEOF 24616 24617fi 24618done 24619 24620if test "x$ac_cv_func_fork" = xyes; then 24621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5 24622$as_echo_n "checking for working fork... " >&6; } 24623if ${ac_cv_func_fork_works+:} false; then : 24624 $as_echo_n "(cached) " >&6 24625else 24626 if test "$cross_compiling" = yes; then : 24627 ac_cv_func_fork_works=cross 24628else 24629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24630/* end confdefs.h. */ 24631$ac_includes_default 24632int 24633main () 24634{ 24635 24636 /* By Ruediger Kuhlmann. */ 24637 return fork () < 0; 24638 24639 ; 24640 return 0; 24641} 24642_ACEOF 24643if ac_fn_c_try_run "$LINENO"; then : 24644 ac_cv_func_fork_works=yes 24645else 24646 ac_cv_func_fork_works=no 24647fi 24648rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 24649 conftest.$ac_objext conftest.beam conftest.$ac_ext 24650fi 24651 24652fi 24653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5 24654$as_echo "$ac_cv_func_fork_works" >&6; } 24655 24656else 24657 ac_cv_func_fork_works=$ac_cv_func_fork 24658fi 24659if test "x$ac_cv_func_fork_works" = xcross; then 24660 case $host in 24661 *-*-amigaos* | *-*-msdosdjgpp*) 24662 # Override, as these systems have only a dummy fork() stub 24663 ac_cv_func_fork_works=no 24664 ;; 24665 *) 24666 ac_cv_func_fork_works=yes 24667 ;; 24668 esac 24669 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 24670$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} 24671fi 24672ac_cv_func_vfork_works=$ac_cv_func_vfork 24673if test "x$ac_cv_func_vfork" = xyes; then 24674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5 24675$as_echo_n "checking for working vfork... " >&6; } 24676if ${ac_cv_func_vfork_works+:} false; then : 24677 $as_echo_n "(cached) " >&6 24678else 24679 if test "$cross_compiling" = yes; then : 24680 ac_cv_func_vfork_works=cross 24681else 24682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24683/* end confdefs.h. */ 24684/* Thanks to Paul Eggert for this test. */ 24685$ac_includes_default 24686#include <sys/wait.h> 24687#ifdef HAVE_VFORK_H 24688# include <vfork.h> 24689#endif 24690/* On some sparc systems, changes by the child to local and incoming 24691 argument registers are propagated back to the parent. The compiler 24692 is told about this with #include <vfork.h>, but some compilers 24693 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a 24694 static variable whose address is put into a register that is 24695 clobbered by the vfork. */ 24696static void 24697#ifdef __cplusplus 24698sparc_address_test (int arg) 24699# else 24700sparc_address_test (arg) int arg; 24701#endif 24702{ 24703 static pid_t child; 24704 if (!child) { 24705 child = vfork (); 24706 if (child < 0) { 24707 perror ("vfork"); 24708 _exit(2); 24709 } 24710 if (!child) { 24711 arg = getpid(); 24712 write(-1, "", 0); 24713 _exit (arg); 24714 } 24715 } 24716} 24717 24718int 24719main () 24720{ 24721 pid_t parent = getpid (); 24722 pid_t child; 24723 24724 sparc_address_test (0); 24725 24726 child = vfork (); 24727 24728 if (child == 0) { 24729 /* Here is another test for sparc vfork register problems. This 24730 test uses lots of local variables, at least as many local 24731 variables as main has allocated so far including compiler 24732 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris 24733 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should 24734 reuse the register of parent for one of the local variables, 24735 since it will think that parent can't possibly be used any more 24736 in this routine. Assigning to the local variable will thus 24737 munge parent in the parent process. */ 24738 pid_t 24739 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), 24740 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); 24741 /* Convince the compiler that p..p7 are live; otherwise, it might 24742 use the same hardware register for all 8 local variables. */ 24743 if (p != p1 || p != p2 || p != p3 || p != p4 24744 || p != p5 || p != p6 || p != p7) 24745 _exit(1); 24746 24747 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent 24748 from child file descriptors. If the child closes a descriptor 24749 before it execs or exits, this munges the parent's descriptor 24750 as well. Test for this by closing stdout in the child. */ 24751 _exit(close(fileno(stdout)) != 0); 24752 } else { 24753 int status; 24754 struct stat st; 24755 24756 while (wait(&status) != child) 24757 ; 24758 return ( 24759 /* Was there some problem with vforking? */ 24760 child < 0 24761 24762 /* Did the child fail? (This shouldn't happen.) */ 24763 || status 24764 24765 /* Did the vfork/compiler bug occur? */ 24766 || parent != getpid() 24767 24768 /* Did the file descriptor bug occur? */ 24769 || fstat(fileno(stdout), &st) != 0 24770 ); 24771 } 24772} 24773_ACEOF 24774if ac_fn_c_try_run "$LINENO"; then : 24775 ac_cv_func_vfork_works=yes 24776else 24777 ac_cv_func_vfork_works=no 24778fi 24779rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 24780 conftest.$ac_objext conftest.beam conftest.$ac_ext 24781fi 24782 24783fi 24784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5 24785$as_echo "$ac_cv_func_vfork_works" >&6; } 24786 24787fi; 24788if test "x$ac_cv_func_fork_works" = xcross; then 24789 ac_cv_func_vfork_works=$ac_cv_func_vfork 24790 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 24791$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} 24792fi 24793 24794if test "x$ac_cv_func_vfork_works" = xyes; then 24795 24796$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h 24797 24798else 24799 24800$as_echo "#define vfork fork" >>confdefs.h 24801 24802fi 24803if test "x$ac_cv_func_fork_works" = xyes; then 24804 24805$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h 24806 24807fi 24808 24809 for ac_func in mmap canonicalize_file_name snprintf strdup strchr \ 24810 strrchr strsignal fchmod fstat chmod 24811do : 24812 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 24813ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 24814if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 24815 cat >>confdefs.h <<_ACEOF 24816#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 24817_ACEOF 24818 24819fi 24820done 24821 24822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 24823$as_echo_n "checking for a sed that does not truncate output... " >&6; } 24824if ${ac_cv_path_SED+:} false; then : 24825 $as_echo_n "(cached) " >&6 24826else 24827 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 24828 for ac_i in 1 2 3 4 5 6 7; do 24829 ac_script="$ac_script$as_nl$ac_script" 24830 done 24831 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 24832 { ac_script=; unset ac_script;} 24833 if test -z "$SED"; then 24834 ac_path_SED_found=false 24835 # Loop through the user's path and test for each of PROGNAME-LIST 24836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24837for as_dir in $PATH 24838do 24839 IFS=$as_save_IFS 24840 test -z "$as_dir" && as_dir=. 24841 for ac_prog in sed gsed; do 24842 for ac_exec_ext in '' $ac_executable_extensions; do 24843 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 24844 as_fn_executable_p "$ac_path_SED" || continue 24845# Check for GNU ac_path_SED and select it if it is found. 24846 # Check for GNU $ac_path_SED 24847case `"$ac_path_SED" --version 2>&1` in 24848*GNU*) 24849 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 24850*) 24851 ac_count=0 24852 $as_echo_n 0123456789 >"conftest.in" 24853 while : 24854 do 24855 cat "conftest.in" "conftest.in" >"conftest.tmp" 24856 mv "conftest.tmp" "conftest.in" 24857 cp "conftest.in" "conftest.nl" 24858 $as_echo '' >> "conftest.nl" 24859 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 24860 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 24861 as_fn_arith $ac_count + 1 && ac_count=$as_val 24862 if test $ac_count -gt ${ac_path_SED_max-0}; then 24863 # Best one so far, save it but keep looking for a better one 24864 ac_cv_path_SED="$ac_path_SED" 24865 ac_path_SED_max=$ac_count 24866 fi 24867 # 10*(2^10) chars as input seems more than enough 24868 test $ac_count -gt 10 && break 24869 done 24870 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 24871esac 24872 24873 $ac_path_SED_found && break 3 24874 done 24875 done 24876 done 24877IFS=$as_save_IFS 24878 if test -z "$ac_cv_path_SED"; then 24879 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 24880 fi 24881else 24882 ac_cv_path_SED=$SED 24883fi 24884 24885fi 24886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 24887$as_echo "$ac_cv_path_SED" >&6; } 24888 SED="$ac_cv_path_SED" 24889 rm -f conftest.sed 24890 24891 while : 24892 do 24893 POSIX_SHELL=`which bash` 24894 test -x "$POSIX_SHELL" && break 24895 POSIX_SHELL=`which dash` 24896 test -x "$POSIX_SHELL" && break 24897 POSIX_SHELL=/usr/xpg4/bin/sh 24898 test -x "$POSIX_SHELL" && break 24899 POSIX_SHELL=`/bin/sh -c ' 24900 exec 2>/dev/null 24901 if ! true ; then exit 1 ; fi 24902 echo /bin/sh'` 24903 test -x "$POSIX_SHELL" && break 24904 as_fn_error $? "cannot locate a working POSIX shell" "$LINENO" 5 24905 done 24906 24907cat >>confdefs.h <<_ACEOF 24908#define POSIX_SHELL "${POSIX_SHELL}" 24909_ACEOF 24910 24911 24912 24913 24914 24915 LIBOPTS_BUILD_BLOCKED='' 24916 24917 24918 NEED_LIBOPTS_DIR='' 24919 24920 # Check whether --enable-local-libopts was given. 24921if test "${enable_local_libopts+set}" = set; then : 24922 enableval=$enable_local_libopts; 24923 if test x$enableval = xyes ; then 24924 { $as_echo "$as_me:${as_lineno-$LINENO}: Using supplied libopts tearoff" >&5 24925$as_echo "$as_me: Using supplied libopts tearoff" >&6;} 24926 LIBOPTS_CFLAGS='-I$(top_srcdir)/libopts' 24927 NEED_LIBOPTS_DIR=true 24928 LIBOPTS_LDADD='$(top_builddir)/libopts/libopts.la' 24929 fi 24930fi 24931 24932 24933 # Check whether --enable-libopts-install was given. 24934if test "${enable_libopts_install+set}" = set; then : 24935 enableval=$enable_libopts_install; 24936fi 24937 24938 if test "X${enable_libopts_install}" = Xyes; then 24939 INSTALL_LIBOPTS_TRUE= 24940 INSTALL_LIBOPTS_FALSE='#' 24941else 24942 INSTALL_LIBOPTS_TRUE='#' 24943 INSTALL_LIBOPTS_FALSE= 24944fi 24945 24946 24947 if test -z "${NEED_LIBOPTS_DIR}" ; then 24948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether autoopts-config can be found" >&5 24949$as_echo_n "checking whether autoopts-config can be found... " >&6; } 24950 24951# Check whether --with-autoopts-config was given. 24952if test "${with_autoopts_config+set}" = set; then : 24953 withval=$with_autoopts_config; lo_cv_with_autoopts_config=${with_autoopts_config} 24954else 24955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether autoopts-config is specified" >&5 24956$as_echo_n "checking whether autoopts-config is specified... " >&6; } 24957if ${lo_cv_with_autoopts_config+:} false; then : 24958 $as_echo_n "(cached) " >&6 24959else 24960 if autoopts-config --help 2>/dev/null 1>&2 24961 then lo_cv_with_autoopts_config=autoopts-config 24962 elif libopts-config --help 2>/dev/null 1>&2 24963 then lo_cv_with_autoopts_config=libopts-config 24964 else lo_cv_with_autoopts_config=no ; fi 24965fi 24966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lo_cv_with_autoopts_config" >&5 24967$as_echo "$lo_cv_with_autoopts_config" >&6; } 24968 24969fi 24970 # end of AC_ARG_WITH 24971 24972 if ${lo_cv_test_autoopts+:} false; then : 24973 $as_echo_n "(cached) " >&6 24974else 24975 24976 if test -z "${lo_cv_with_autoopts_config}" \ 24977 -o X"${lo_cv_with_autoopts_config}" = Xno 24978 then 24979 if autoopts-config --help 2>/dev/null 1>&2 24980 then lo_cv_with_autoopts_config=autoopts-config 24981 elif libopts-config --help 2>/dev/null 1>&2 24982 then lo_cv_with_autoopts_config=libopts-config 24983 else lo_cv_with_autoopts_config=false ; fi 24984 fi 24985 lo_cv_test_autoopts=` 24986 ${lo_cv_with_autoopts_config} --libs` 2> /dev/null 24987 if test $? -ne 0 -o -z "${lo_cv_test_autoopts}" 24988 then lo_cv_test_autoopts=no ; fi 24989 24990fi 24991 # end of CACHE_VAL 24992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lo_cv_test_autoopts}" >&5 24993$as_echo "${lo_cv_test_autoopts}" >&6; } 24994 24995 if test "X${lo_cv_test_autoopts}" != Xno 24996 then 24997 LIBOPTS_LDADD="${lo_cv_test_autoopts}" 24998 LIBOPTS_CFLAGS="`${lo_cv_with_autoopts_config} --cflags`" 24999 else 25000 LIBOPTS_LDADD='$(top_builddir)/libopts/libopts.la' 25001 LIBOPTS_CFLAGS='-I$(top_srcdir)/libopts' 25002 NEED_LIBOPTS_DIR=true 25003 fi 25004 fi # end of if test -z "${NEED_LIBOPTS_DIR}" 25005 if test -n "${LIBOPTS_BUILD_BLOCKED}" ; then 25006 NEED_LIBOPTS_DIR='' 25007 fi 25008 if test -n "${NEED_LIBOPTS_DIR}"; then 25009 NEED_LIBOPTS_TRUE= 25010 NEED_LIBOPTS_FALSE='#' 25011else 25012 NEED_LIBOPTS_TRUE='#' 25013 NEED_LIBOPTS_FALSE= 25014fi 25015 25016 25017 25018 LIBOPTS_DIR=libopts 25019 25020 25021# end of AC_DEFUN of LIBOPTS_CHECK_COMMON 25022 25023 25024 if test -z "$NEED_LIBOPTS_TRUE"; then : 25025 25026 25027 25028 # Check to see if a reg expr header is specified. 25029 25030 25031# Check whether --with-regex-header was given. 25032if test "${with_regex_header+set}" = set; then : 25033 withval=$with_regex_header; libopts_cv_with_regex_header=${with_regex_header} 25034else 25035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a reg expr header is specified" >&5 25036$as_echo_n "checking whether a reg expr header is specified... " >&6; } 25037if ${libopts_cv_with_regex_header+:} false; then : 25038 $as_echo_n "(cached) " >&6 25039else 25040 libopts_cv_with_regex_header=no 25041fi 25042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_regex_header" >&5 25043$as_echo "$libopts_cv_with_regex_header" >&6; } 25044 25045fi 25046 # end of AC_ARG_WITH 25047 if test "X${libopts_cv_with_regex_header}" != Xno 25048 then 25049 cat >>confdefs.h <<_ACEOF 25050#define REGEX_HEADER <${libopts_cv_with_regex_header}> 25051_ACEOF 25052 25053 else 25054 25055$as_echo "#define REGEX_HEADER <regex.h>" >>confdefs.h 25056 25057 fi 25058 25059 25060 25061 # Check to see if a working libregex can be found. 25062 25063 25064# Check whether --with-libregex was given. 25065if test "${with_libregex+set}" = set; then : 25066 withval=$with_libregex; libopts_cv_with_libregex_root=${with_libregex} 25067else 25068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether with-libregex was specified" >&5 25069$as_echo_n "checking whether with-libregex was specified... " >&6; } 25070if ${libopts_cv_with_libregex_root+:} false; then : 25071 $as_echo_n "(cached) " >&6 25072else 25073 libopts_cv_with_libregex_root=no 25074fi 25075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_libregex_root" >&5 25076$as_echo "$libopts_cv_with_libregex_root" >&6; } 25077 25078fi 25079 # end of AC_ARG_WITH libregex 25080 25081 if test "${with_libregex+set}" = set && \ 25082 test "X${withval}" = Xno 25083 then ## disabled by request 25084 libopts_cv_with_libregex_root=no 25085 libopts_cv_with_libregex_cflags=no 25086 libopts_cv_with_libregex_libs=no 25087 else 25088 25089 25090# Check whether --with-libregex-cflags was given. 25091if test "${with_libregex_cflags+set}" = set; then : 25092 withval=$with_libregex_cflags; libopts_cv_with_libregex_cflags=${with_libregex_cflags} 25093else 25094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether with-libregex-cflags was specified" >&5 25095$as_echo_n "checking whether with-libregex-cflags was specified... " >&6; } 25096if ${libopts_cv_with_libregex_cflags+:} false; then : 25097 $as_echo_n "(cached) " >&6 25098else 25099 libopts_cv_with_libregex_cflags=no 25100fi 25101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_libregex_cflags" >&5 25102$as_echo "$libopts_cv_with_libregex_cflags" >&6; } 25103 25104fi 25105 # end of AC_ARG_WITH libregex-cflags 25106 25107 25108# Check whether --with-libregex-libs was given. 25109if test "${with_libregex_libs+set}" = set; then : 25110 withval=$with_libregex_libs; libopts_cv_with_libregex_libs=${with_libregex_libs} 25111else 25112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether with-libregex-libs was specified" >&5 25113$as_echo_n "checking whether with-libregex-libs was specified... " >&6; } 25114if ${libopts_cv_with_libregex_libs+:} false; then : 25115 $as_echo_n "(cached) " >&6 25116else 25117 libopts_cv_with_libregex_libs=no 25118fi 25119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_libregex_libs" >&5 25120$as_echo "$libopts_cv_with_libregex_libs" >&6; } 25121 25122fi 25123 # end of AC_ARG_WITH libregex-libs 25124 25125 case "X${libopts_cv_with_libregex_cflags}" in 25126 Xyes|Xno|X ) 25127 case "X${libopts_cv_with_libregex_root}" in 25128 Xyes|Xno|X ) libopts_cv_with_libregex_cflags=no ;; 25129 * ) libopts_cv_with_libregex_cflags=-I${libopts_cv_with_libregex_root}/include ;; 25130 esac 25131 esac 25132 case "X${libopts_cv_with_libregex_libs}" in 25133 Xyes|Xno|X ) 25134 case "X${libopts_cv_with_libregex_root}" in 25135 Xyes|Xno|X ) libopts_cv_with_libregex_libs=no ;; 25136 * ) libopts_cv_with_libregex_libs="-L${libopts_cv_with_libregex_root}/lib -lregex" ;; 25137 esac 25138 esac 25139 libopts_save_CPPFLAGS="${CPPFLAGS}" 25140 libopts_save_LIBS="${LIBS}" 25141 case "X${libopts_cv_with_libregex_cflags}" in 25142 Xyes|Xno|X ) 25143 libopts_cv_with_libregex_cflags="" ;; 25144 * ) CPPFLAGS="${CPPFLAGS} ${libopts_cv_with_libregex_cflags}" ;; 25145 esac 25146 case "X${libopts_cv_with_libregex_libs}" in 25147 Xyes|Xno|X ) 25148 libopts_cv_with_libregex_libs="" ;; 25149 * ) 25150 LIBS="${LIBS} ${libopts_cv_with_libregex_libs}" ;; 25151 esac 25152 LIBREGEX_CFLAGS="" 25153 LIBREGEX_LIBS="" 25154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libregex functions properly" >&5 25155$as_echo_n "checking whether libregex functions properly... " >&6; } 25156 if ${libopts_cv_with_libregex+:} false; then : 25157 $as_echo_n "(cached) " >&6 25158else 25159 25160 if test "$cross_compiling" = yes; then : 25161 libopts_cv_with_libregex=no 25162else 25163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25164/* end confdefs.h. */ 25165#include <stdio.h> 25166#include <stdlib.h> 25167#include <sys/types.h> 25168#include REGEX_HEADER 25169static regex_t re; 25170void comp_re(char const * pzPat) { 25171 int res = regcomp( &re, pzPat, REG_EXTENDED|REG_ICASE|REG_NEWLINE ); 25172 if (res == 0) return; 25173 exit( res ); } 25174int main() { 25175 regmatch_t m[2]; 25176 comp_re( "^.*\$" ); 25177 comp_re( "()|no.*" ); 25178 comp_re( "." ); 25179 if (regexec( &re, "X", 2, m, 0 ) != 0) return 1; 25180 if ((m[0].rm_so != 0) || (m[0].rm_eo != 1)) { 25181 fputs( "error: regex -->.<-- did not match\n", stderr ); 25182 return 1; 25183 } 25184 return 0; } 25185_ACEOF 25186if ac_fn_c_try_run "$LINENO"; then : 25187 libopts_cv_with_libregex=yes 25188else 25189 libopts_cv_with_libregex=no 25190fi 25191rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 25192 conftest.$ac_objext conftest.beam conftest.$ac_ext 25193fi 25194 # end of AC_RUN_IFELSE 25195 25196fi 25197 # end of AC_CACHE_VAL for libopts_cv_with_libregex 25198 fi ## disabled by request 25199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_with_libregex}" >&5 25200$as_echo "${libopts_cv_with_libregex}" >&6; } 25201 if test "X${libopts_cv_with_libregex}" != Xno 25202 then 25203 25204$as_echo "#define WITH_LIBREGEX 1" >>confdefs.h 25205 25206 else 25207 CPPFLAGS="${libopts_save_CPPFLAGS}" 25208 LIBS="${libopts_save_LIBS}" 25209 libopts_cv_with_libregex_root=no 25210libopts_cv_with_libregex_cflags=no 25211libopts_cv_with_libregex_libs=no 25212libopts_cv_with_libregex=no 25213 fi 25214 25215 25216 25217 # Check to see if pathfind(3) works. 25218 25219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pathfind(3) works" >&5 25220$as_echo_n "checking whether pathfind(3) works... " >&6; } 25221 if ${libopts_cv_run_pathfind+:} false; then : 25222 $as_echo_n "(cached) " >&6 25223else 25224 25225 if test "$cross_compiling" = yes; then : 25226 libopts_cv_run_pathfind=no 25227 25228else 25229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25230/* end confdefs.h. */ 25231#include <string.h> 25232#include <stdlib.h> 25233int main (int argc, char ** argv) { 25234 char * pz = pathfind( getenv( "PATH" ), "sh", "x" ); 25235 return (pz == 0) ? 1 : 0; 25236} 25237_ACEOF 25238if ac_fn_c_try_run "$LINENO"; then : 25239 libopts_cv_run_pathfind=yes 25240else 25241 libopts_cv_run_pathfind=no 25242fi 25243rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 25244 conftest.$ac_objext conftest.beam conftest.$ac_ext 25245fi 25246 # end of RUN_IFELSE 25247 25248fi 25249 # end of AC_CACHE_VAL for libopts_cv_run_pathfind 25250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_pathfind}" >&5 25251$as_echo "${libopts_cv_run_pathfind}" >&6; } 25252 if test "X${libopts_cv_run_pathfind}" != Xno 25253 then 25254 25255$as_echo "#define HAVE_PATHFIND 1" >>confdefs.h 25256 25257 fi 25258 25259 25260 25261 # Check to see if /dev/zero is readable device. 25262 25263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether /dev/zero is readable device" >&5 25264$as_echo_n "checking whether /dev/zero is readable device... " >&6; } 25265 if ${libopts_cv_test_dev_zero+:} false; then : 25266 $as_echo_n "(cached) " >&6 25267else 25268 25269 libopts_cv_test_dev_zero=`exec 2> /dev/null 25270dzero=\`ls -lL /dev/zero | egrep ^c......r\` 25271test -z "${dzero}" && exit 1 25272echo ${dzero}` 25273 if test $? -ne 0 || test -z "$libopts_cv_test_dev_zero" 25274 then libopts_cv_test_dev_zero=no 25275 fi 25276 25277fi 25278 # end of CACHE_VAL of libopts_cv_test_dev_zero 25279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_test_dev_zero}" >&5 25280$as_echo "${libopts_cv_test_dev_zero}" >&6; } 25281 if test "X${libopts_cv_test_dev_zero}" != Xno 25282 then 25283 25284$as_echo "#define HAVE_DEV_ZERO 1" >>confdefs.h 25285 25286 fi 25287 25288 25289 25290 # Check to see if we have a functional realpath(3C). 25291 25292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have a functional realpath(3C)" >&5 25293$as_echo_n "checking whether we have a functional realpath(3C)... " >&6; } 25294 if ${libopts_cv_run_realpath+:} false; then : 25295 $as_echo_n "(cached) " >&6 25296else 25297 25298 if test "$cross_compiling" = yes; then : 25299 libopts_cv_run_realpath=no 25300 25301else 25302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25303/* end confdefs.h. */ 25304#include <limits.h> 25305#include <stdlib.h> 25306int main (int argc, char ** argv) { 25307#ifndef PATH_MAX 25308choke me!! 25309#else 25310 char zPath[PATH_MAX+1]; 25311#endif 25312 char *pz = realpath(argv[0], zPath); 25313 return (pz == zPath) ? 0 : 1; 25314} 25315_ACEOF 25316if ac_fn_c_try_run "$LINENO"; then : 25317 libopts_cv_run_realpath=yes 25318else 25319 libopts_cv_run_realpath=no 25320fi 25321rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 25322 conftest.$ac_objext conftest.beam conftest.$ac_ext 25323fi 25324 # end of RUN_IFELSE 25325 25326fi 25327 # end of AC_CACHE_VAL for libopts_cv_run_realpath 25328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_realpath}" >&5 25329$as_echo "${libopts_cv_run_realpath}" >&6; } 25330 if test "X${libopts_cv_run_realpath}" != Xno 25331 then 25332 25333$as_echo "#define HAVE_REALPATH 1" >>confdefs.h 25334 25335 fi 25336 25337 25338 25339 # Check to see if strftime() works. 25340 25341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strftime() works" >&5 25342$as_echo_n "checking whether strftime() works... " >&6; } 25343 if ${libopts_cv_run_strftime+:} false; then : 25344 $as_echo_n "(cached) " >&6 25345else 25346 25347 if test "$cross_compiling" = yes; then : 25348 libopts_cv_run_strftime=no 25349 25350else 25351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25352/* end confdefs.h. */ 25353#include <time.h> 25354#include <string.h> 25355char t_buf[ 64 ]; 25356int main() { 25357 static char const z[] = "Thursday Aug 28 240"; 25358 struct tm tm; 25359 tm.tm_sec = 36; /* seconds after the minute [0, 61] */ 25360 tm.tm_min = 44; /* minutes after the hour [0, 59] */ 25361 tm.tm_hour = 12; /* hour since midnight [0, 23] */ 25362 tm.tm_mday = 28; /* day of the month [1, 31] */ 25363 tm.tm_mon = 7; /* months since January [0, 11] */ 25364 tm.tm_year = 86; /* years since 1900 */ 25365 tm.tm_wday = 4; /* days since Sunday [0, 6] */ 25366 tm.tm_yday = 239; /* days since January 1 [0, 365] */ 25367 tm.tm_isdst = 1; /* flag for daylight savings time */ 25368 strftime( t_buf, sizeof( t_buf ), "%A %b %d %j", &tm ); 25369 return (strcmp( t_buf, z ) != 0); } 25370_ACEOF 25371if ac_fn_c_try_run "$LINENO"; then : 25372 libopts_cv_run_strftime=yes 25373else 25374 libopts_cv_run_strftime=no 25375fi 25376rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 25377 conftest.$ac_objext conftest.beam conftest.$ac_ext 25378fi 25379 # end of RUN_IFELSE 25380 25381fi 25382 # end of AC_CACHE_VAL for libopts_cv_run_strftime 25383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_strftime}" >&5 25384$as_echo "${libopts_cv_run_strftime}" >&6; } 25385 if test "X${libopts_cv_run_strftime}" != Xno 25386 then 25387 25388$as_echo "#define HAVE_STRFTIME 1" >>confdefs.h 25389 25390 fi 25391 25392 25393 25394 # Check to see if fopen accepts "b" mode. 25395 25396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fopen accepts \"b\" mode" >&5 25397$as_echo_n "checking whether fopen accepts \"b\" mode... " >&6; } 25398 if ${libopts_cv_run_fopen_binary+:} false; then : 25399 $as_echo_n "(cached) " >&6 25400else 25401 25402 if test "$cross_compiling" = yes; then : 25403 libopts_cv_run_fopen_binary=no 25404 25405else 25406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25407/* end confdefs.h. */ 25408#include <stdio.h> 25409int main (int argc, char ** argv) { 25410FILE * fp = fopen("conftest.$ac_ext", "rb"); 25411return (fp == NULL) ? 1 : fclose(fp); } 25412_ACEOF 25413if ac_fn_c_try_run "$LINENO"; then : 25414 libopts_cv_run_fopen_binary=yes 25415else 25416 libopts_cv_run_fopen_binary=no 25417fi 25418rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 25419 conftest.$ac_objext conftest.beam conftest.$ac_ext 25420fi 25421 # end of RUN_IFELSE 25422 25423fi 25424 # end of AC_CACHE_VAL for libopts_cv_run_fopen_binary 25425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_fopen_binary}" >&5 25426$as_echo "${libopts_cv_run_fopen_binary}" >&6; } 25427 if test "X${libopts_cv_run_fopen_binary}" != Xno 25428 then 25429 25430$as_echo "#define FOPEN_BINARY_FLAG \"b\"" >>confdefs.h 25431 25432 else 25433 25434$as_echo "#define FOPEN_BINARY_FLAG \"\"" >>confdefs.h 25435 25436 fi 25437 25438 25439 25440 # Check to see if fopen accepts "t" mode. 25441 25442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fopen accepts \"t\" mode" >&5 25443$as_echo_n "checking whether fopen accepts \"t\" mode... " >&6; } 25444 if ${libopts_cv_run_fopen_text+:} false; then : 25445 $as_echo_n "(cached) " >&6 25446else 25447 25448 if test "$cross_compiling" = yes; then : 25449 libopts_cv_run_fopen_text=no 25450 25451else 25452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25453/* end confdefs.h. */ 25454#include <stdio.h> 25455int main (int argc, char ** argv) { 25456FILE * fp = fopen("conftest.$ac_ext", "rt"); 25457return (fp == NULL) ? 1 : fclose(fp); } 25458_ACEOF 25459if ac_fn_c_try_run "$LINENO"; then : 25460 libopts_cv_run_fopen_text=yes 25461else 25462 libopts_cv_run_fopen_text=no 25463fi 25464rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 25465 conftest.$ac_objext conftest.beam conftest.$ac_ext 25466fi 25467 # end of RUN_IFELSE 25468 25469fi 25470 # end of AC_CACHE_VAL for libopts_cv_run_fopen_text 25471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_fopen_text}" >&5 25472$as_echo "${libopts_cv_run_fopen_text}" >&6; } 25473 if test "X${libopts_cv_run_fopen_text}" != Xno 25474 then 25475 25476$as_echo "#define FOPEN_TEXT_FLAG \"t\"" >>confdefs.h 25477 25478 else 25479 25480$as_echo "#define FOPEN_TEXT_FLAG \"\"" >>confdefs.h 25481 25482 fi 25483 25484 25485 25486 # Check to see if not wanting optional option args. 25487 25488 # Check whether --enable-optional-args was given. 25489if test "${enable_optional_args+set}" = set; then : 25490 enableval=$enable_optional_args; libopts_cv_enable_optional_args=${enable_optional_args} 25491else 25492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether not wanting optional option args" >&5 25493$as_echo_n "checking whether not wanting optional option args... " >&6; } 25494if ${libopts_cv_enable_optional_args+:} false; then : 25495 $as_echo_n "(cached) " >&6 25496else 25497 libopts_cv_enable_optional_args=yes 25498fi 25499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_enable_optional_args" >&5 25500$as_echo "$libopts_cv_enable_optional_args" >&6; } 25501 25502fi 25503 # end of AC_ARG_ENABLE 25504 if test "X${libopts_cv_enable_optional_args}" = Xno 25505 then 25506 25507$as_echo "#define NO_OPTIONAL_OPT_ARGS 1" >>confdefs.h 25508 25509 fi 25510 25511 25512 25513 25514 25515 fi 25516 ac_config_files="$ac_config_files libopts/Makefile" 25517 25518 # end of AC_DEFUN of LIBOPTS_CHECK 25519 25520 25521# From when we only used libevent for sntp: 25522#AM_COND_IF( 25523# [BUILD_SNTP], 25524# [NTP_LIBEVENT_CHECK], 25525# [NTP_LIBEVENT_CHECK_NOBUILD] 25526#) 25527 25528 25529 25530ntp_pkgconfig_min_version='0.15.0' 25531if test -n "$ac_tool_prefix"; then 25532 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 25533set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 25534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 25535$as_echo_n "checking for $ac_word... " >&6; } 25536if ${ac_cv_path_PKG_CONFIG+:} false; then : 25537 $as_echo_n "(cached) " >&6 25538else 25539 case $PKG_CONFIG in 25540 [\\/]* | ?:[\\/]*) 25541 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 25542 ;; 25543 *) 25544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 25545for as_dir in $PATH 25546do 25547 IFS=$as_save_IFS 25548 test -z "$as_dir" && as_dir=. 25549 for ac_exec_ext in '' $ac_executable_extensions; do 25550 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 25551 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 25552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 25553 break 2 25554 fi 25555done 25556 done 25557IFS=$as_save_IFS 25558 25559 ;; 25560esac 25561fi 25562PKG_CONFIG=$ac_cv_path_PKG_CONFIG 25563if test -n "$PKG_CONFIG"; then 25564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 25565$as_echo "$PKG_CONFIG" >&6; } 25566else 25567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25568$as_echo "no" >&6; } 25569fi 25570 25571 25572fi 25573if test -z "$ac_cv_path_PKG_CONFIG"; then 25574 ac_pt_PKG_CONFIG=$PKG_CONFIG 25575 # Extract the first word of "pkg-config", so it can be a program name with args. 25576set dummy pkg-config; ac_word=$2 25577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 25578$as_echo_n "checking for $ac_word... " >&6; } 25579if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 25580 $as_echo_n "(cached) " >&6 25581else 25582 case $ac_pt_PKG_CONFIG in 25583 [\\/]* | ?:[\\/]*) 25584 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 25585 ;; 25586 *) 25587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 25588for as_dir in $PATH 25589do 25590 IFS=$as_save_IFS 25591 test -z "$as_dir" && as_dir=. 25592 for ac_exec_ext in '' $ac_executable_extensions; do 25593 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 25594 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 25595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 25596 break 2 25597 fi 25598done 25599 done 25600IFS=$as_save_IFS 25601 25602 ;; 25603esac 25604fi 25605ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 25606if test -n "$ac_pt_PKG_CONFIG"; then 25607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 25608$as_echo "$ac_pt_PKG_CONFIG" >&6; } 25609else 25610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25611$as_echo "no" >&6; } 25612fi 25613 25614 if test "x$ac_pt_PKG_CONFIG" = x; then 25615 PKG_CONFIG="" 25616 else 25617 case $cross_compiling:$ac_tool_warned in 25618yes:) 25619{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 25620$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 25621ac_tool_warned=yes ;; 25622esac 25623 PKG_CONFIG=$ac_pt_PKG_CONFIG 25624 fi 25625else 25626 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 25627fi 25628 25629{ ac_cv_path_PKG_CONFIG=; unset ac_cv_path_PKG_CONFIG;} 25630{ ac_cv_path_ac_pt_PKG_CONFIG=; unset ac_cv_path_ac_pt_PKG_CONFIG;} 25631 25632case "$PKG_CONFIG" in 25633 /*) 25634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if pkg-config is at least version $ntp_pkgconfig_min_version" >&5 25635$as_echo_n "checking if pkg-config is at least version $ntp_pkgconfig_min_version... " >&6; } 25636 if $PKG_CONFIG --atleast-pkgconfig-version $ntp_pkgconfig_min_version; then 25637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 25638$as_echo "yes" >&6; } 25639 else 25640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25641$as_echo "no" >&6; } 25642 PKG_CONFIG="" 25643 fi 25644 ;; 25645esac 25646 25647 25648 25649 25650# Check whether --enable-local-libevent was given. 25651if test "${enable_local_libevent+set}" = set; then : 25652 enableval=$enable_local_libevent; ntp_use_local_libevent=$enableval 25653else 25654 ntp_use_local_libevent=${ntp_use_local_libevent-detect} 25655 25656fi 25657 25658 25659 25660 25661 25662 25663 25664 25665 25666 25667ntp_libevent_min_version=2 25668ntp_libevent_tearoff=libevent 25669 25670 25671 25672 25673 25674case "$ntp_use_local_libevent" in 25675 yes) 25676 ;; 25677 *) # If we have (a good enough) pkg-config, see if it can find libevent 25678 case "$PKG_CONFIG" in 25679 /*) 25680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libevent $ntp_libevent_min_version or later is installed" >&5 25681$as_echo_n "checking if libevent $ntp_libevent_min_version or later is installed... " >&6; } 25682 if $PKG_CONFIG --atleast-version=$ntp_libevent_min_version libevent 25683 then 25684 ntp_use_local_libevent=no 25685 { $as_echo "$as_me:${as_lineno-$LINENO}: Using the installed libevent" >&5 25686$as_echo "$as_me: Using the installed libevent" >&6;} 25687 CFLAGS_LIBEVENT=`$PKG_CONFIG --cflags libevent_pthreads` 25688 CPPFLAGS_LIBEVENT=`$PKG_CONFIG --cflags-only-I libevent` 25689 # HMS: I hope the following is accurate. 25690 # We don't need -levent, we only need -levent_core. 25691 # While we could grab only the -L stuff, there *might* be 25692 # other flags there we want. Originally we just removed -levent 25693 # but then somebody decided to install -levent-2.0 25694 # LDADD_LIBEVENT=`$PKG_CONFIG --libs libevent | sed 's:-levent::'` 25695 # So now we dance... 25696 LDADD_LIBEVENT= 25697 for i in `$PKG_CONFIG --libs libevent` `$PKG_CONFIG --cflags-only-other libevent_pthreads` 25698 do 25699 case "$i" in 25700 -D*) ;; 25701 -levent*) ;; 25702 *) case "$LDADD_LIBEVENT" in 25703 '') LDADD_LIBEVENT="$i" ;; 25704 *) LDADD_LIBEVENT="$LDADD_LIBEVENT $i" ;; 25705 esac 25706 ;; 25707 esac 25708 done 25709 case "$LIBISC_PTHREADS_NOTHREADS" in 25710 pthreads) 25711 LDADD_LIBEVENT="$LDADD_LIBEVENT -levent_pthreads" 25712 esac 25713 LDADD_LIBEVENT="$LDADD_LIBEVENT -levent_core" 25714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 25715$as_echo "yes" >&6; } 25716 else 25717 ntp_use_local_libevent=yes 25718 # HMS: do we only need to do this if LIBISC_PTHREADS_NOTHREADS 25719 # is "pthreads"? 25720 CFLAGS_LIBEVENT=`$PKG_CONFIG --cflags libevent_pthreads` 25721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25722$as_echo "no" >&6; } 25723 fi 25724 ;; 25725 *) 25726 ntp_use_local_libevent=yes 25727 ;; 25728 esac 25729 ;; 25730esac 25731 25732case "$ntp_use_local_libevent" in 25733 yes) 25734 { $as_echo "$as_me:${as_lineno-$LINENO}: Using libevent tearoff" >&5 25735$as_echo "$as_me: Using libevent tearoff" >&6;} 25736 CPPFLAGS_LIBEVENT="-I\$(top_builddir)/$ntp_libevent_tearoff/include -I\$(top_srcdir)/$ntp_libevent_tearoff/include" 25737 case "$LIBISC_PTHREADS_NOTHREADS" in 25738 pthreads) 25739 LDADD_LIBEVENT="\$(top_builddir)/$ntp_libevent_tearoff/libevent_pthreads.la \$(top_builddir)/$ntp_libevent_tearoff/libevent_core.la" 25740 ;; 25741 *) 25742 LDADD_LIBEVENT="\$(top_builddir)/$ntp_libevent_tearoff/libevent_core.la" 25743 esac 25744esac 25745 25746 25747 if test "x$ntp_use_local_libevent" = "xyes"; then 25748 BUILD_LIBEVENT_TRUE= 25749 BUILD_LIBEVENT_FALSE='#' 25750else 25751 BUILD_LIBEVENT_TRUE='#' 25752 BUILD_LIBEVENT_FALSE= 25753fi 25754 25755 25756 25757 25758case "$ntp_libevent_tearoff" in 25759 libevent) 25760 ;; 25761 *) 25762 as_fn_error $? "ntp_libevent.m4 dir must be libevent, not $ntp_libevent_tearoff" "$LINENO" 5 25763 ;; 25764esac 25765 25766case "$ntp_use_local_libevent" in 25767 yes) 25768 ac_configure_args=" --disable-openssl${ac_configure_args}" 25769 ac_configure_args=" --disable-shared${ac_configure_args}" 25770 ac_configure_args=" --disable-libevent-regress${ac_configure_args}" 25771 ac_configure_args=" --disable-libevent-install${ac_configure_args}" 25772 ac_configure_args=" --enable-silent-rules${ac_configure_args}" 25773 ac_configure_args=" --enable-function-sections${ac_configure_args}" 25774 subdirs="$subdirs libevent" 25775 25776 ;; 25777 *) 25778 NTP_FORCE_LIBEVENT_DIST=libevent 25779 ;; 25780esac 25781 25782 25783 25784# Checks for libraries. 25785 25786 25787LIB_SYSLOG='' 25788 25789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing openlog" >&5 25790$as_echo_n "checking for library containing openlog... " >&6; } 25791if ${ac_cv_search_openlog+:} false; then : 25792 $as_echo_n "(cached) " >&6 25793else 25794 ac_func_search_save_LIBS=$LIBS 25795cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25796/* end confdefs.h. */ 25797 25798/* Override any GCC internal prototype to avoid an error. 25799 Use char because int might match the return type of a GCC 25800 builtin and then its argument prototype would still apply. */ 25801#ifdef __cplusplus 25802extern "C" 25803#endif 25804char openlog (); 25805int 25806main () 25807{ 25808return openlog (); 25809 ; 25810 return 0; 25811} 25812_ACEOF 25813for ac_lib in '' gen syslog; do 25814 if test -z "$ac_lib"; then 25815 ac_res="none required" 25816 else 25817 ac_res=-l$ac_lib 25818 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 25819 fi 25820 if ac_fn_c_try_link "$LINENO"; then : 25821 ac_cv_search_openlog=$ac_res 25822fi 25823rm -f core conftest.err conftest.$ac_objext \ 25824 conftest$ac_exeext 25825 if ${ac_cv_search_openlog+:} false; then : 25826 break 25827fi 25828done 25829if ${ac_cv_search_openlog+:} false; then : 25830 25831else 25832 ac_cv_search_openlog=no 25833fi 25834rm conftest.$ac_ext 25835LIBS=$ac_func_search_save_LIBS 25836fi 25837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_openlog" >&5 25838$as_echo "$ac_cv_search_openlog" >&6; } 25839ac_res=$ac_cv_search_openlog 25840if test "$ac_res" != no; then : 25841 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 25842 case "$ac_cv_search_openlog" in 25843 'none required') ;; 25844 no) ;; 25845 *) LIB_SYSLOG="$ac_cv_search_openlog $LIB_SYSLOG" ;; 25846 esac 25847 25848fi 25849 25850 25851# Checks for header files. 25852for ac_header in netdb.h string.h strings.h syslog.h 25853do : 25854 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 25855ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 25856if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 25857 cat >>confdefs.h <<_ACEOF 25858#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 25859_ACEOF 25860 25861fi 25862 25863done 25864 25865 25866 25867for ac_header in sysexits.h 25868do : 25869 ac_fn_c_check_header_mongrel "$LINENO" "sysexits.h" "ac_cv_header_sysexits_h" "$ac_includes_default" 25870if test "x$ac_cv_header_sysexits_h" = xyes; then : 25871 cat >>confdefs.h <<_ACEOF 25872#define HAVE_SYSEXITS_H 1 25873_ACEOF 25874 25875else 25876 25877 25878$as_echo "#define EX_OK 0" >>confdefs.h 25879 25880 25881$as_echo "#define EX_SOFTWARE 70" >>confdefs.h 25882 25883 25884fi 25885 25886done 25887 25888 25889 25890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for facilitynames in syslog.h" >&5 25891$as_echo_n "checking for facilitynames in syslog.h... " >&6; } 25892if ${ac_cv_HAVE_SYSLOG_FACILITYNAMES+:} false; then : 25893 $as_echo_n "(cached) " >&6 25894else 25895 25896cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25897/* end confdefs.h. */ 25898 25899#define SYSLOG_NAMES 25900#include <stdlib.h> 25901#include <syslog.h> 25902 25903int 25904main () 25905{ 25906 void *fnames; fnames = facilitynames; 25907 ; 25908 return 0; 25909} 25910_ACEOF 25911if ac_fn_c_try_compile "$LINENO"; then : 25912 ac_cv_HAVE_SYSLOG_FACILITYNAMES=yes 25913else 25914 ac_cv_HAVE_SYSLOG_FACILITYNAMES=no 25915fi 25916rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25917fi 25918{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_HAVE_SYSLOG_FACILITYNAMES" >&5 25919$as_echo "$ac_cv_HAVE_SYSLOG_FACILITYNAMES" >&6; } 25920case "$ac_cv_HAVE_SYSLOG_FACILITYNAMES" in 25921 yes) 25922 25923$as_echo "#define HAVE_SYSLOG_FACILITYNAMES 1" >>confdefs.h 25924 25925 ;; 25926 no) 25927 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No facilitynames in <syslog.h>" >&5 25928$as_echo "$as_me: WARNING: No facilitynames in <syslog.h>" >&2;} 25929 ;; 25930 cross) 25931 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: facilitynames in <syslog.h> - cross-compiling" >&5 25932$as_echo "$as_me: WARNING: facilitynames in <syslog.h> - cross-compiling" >&2;} 25933 ;; 25934esac 25935 25936 25937# Checks for typedefs, structures, and compiler characteristics. 25938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5 25939$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; } 25940if ${ac_cv_header_stdbool_h+:} false; then : 25941 $as_echo_n "(cached) " >&6 25942else 25943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25944/* end confdefs.h. */ 25945 25946 #include <stdbool.h> 25947 #ifndef bool 25948 "error: bool is not defined" 25949 #endif 25950 #ifndef false 25951 "error: false is not defined" 25952 #endif 25953 #if false 25954 "error: false is not 0" 25955 #endif 25956 #ifndef true 25957 "error: true is not defined" 25958 #endif 25959 #if true != 1 25960 "error: true is not 1" 25961 #endif 25962 #ifndef __bool_true_false_are_defined 25963 "error: __bool_true_false_are_defined is not defined" 25964 #endif 25965 25966 struct s { _Bool s: 1; _Bool t; } s; 25967 25968 char a[true == 1 ? 1 : -1]; 25969 char b[false == 0 ? 1 : -1]; 25970 char c[__bool_true_false_are_defined == 1 ? 1 : -1]; 25971 char d[(bool) 0.5 == true ? 1 : -1]; 25972 /* See body of main program for 'e'. */ 25973 char f[(_Bool) 0.0 == false ? 1 : -1]; 25974 char g[true]; 25975 char h[sizeof (_Bool)]; 25976 char i[sizeof s.t]; 25977 enum { j = false, k = true, l = false * true, m = true * 256 }; 25978 /* The following fails for 25979 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */ 25980 _Bool n[m]; 25981 char o[sizeof n == m * sizeof n[0] ? 1 : -1]; 25982 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1]; 25983 /* Catch a bug in an HP-UX C compiler. See 25984 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html 25985 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html 25986 */ 25987 _Bool q = true; 25988 _Bool *pq = &q; 25989 25990int 25991main () 25992{ 25993 25994 bool e = &s; 25995 *pq |= q; 25996 *pq |= ! q; 25997 /* Refer to every declared value, to avoid compiler optimizations. */ 25998 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l 25999 + !m + !n + !o + !p + !q + !pq); 26000 26001 ; 26002 return 0; 26003} 26004_ACEOF 26005if ac_fn_c_try_compile "$LINENO"; then : 26006 ac_cv_header_stdbool_h=yes 26007else 26008 ac_cv_header_stdbool_h=no 26009fi 26010rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26011fi 26012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5 26013$as_echo "$ac_cv_header_stdbool_h" >&6; } 26014 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default" 26015if test "x$ac_cv_type__Bool" = xyes; then : 26016 26017cat >>confdefs.h <<_ACEOF 26018#define HAVE__BOOL 1 26019_ACEOF 26020 26021 26022fi 26023 26024 26025if test $ac_cv_header_stdbool_h = yes; then 26026 26027$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h 26028 26029fi 26030 26031 26032 26033 26034 26035VER_SUFFIX= 26036 26037 26038 26039 26040# Check whether --with-crypto was given. 26041if test "${with_crypto+set}" = set; then : 26042 withval=$with_crypto; 26043fi 26044 26045 26046# Check whether --with-openssl-libdir was given. 26047if test "${with_openssl_libdir+set}" = set; then : 26048 withval=$with_openssl_libdir; 26049fi 26050 26051 26052# Check whether --with-openssl-incdir was given. 26053if test "${with_openssl_incdir+set}" = set; then : 26054 withval=$with_openssl_incdir; 26055fi 26056 26057 26058# Check whether --with-rpath was given. 26059if test "${with_rpath+set}" = set; then : 26060 withval=$with_rpath; 26061fi 26062 26063ntp_openssl=no 26064ntp_openssl_from_pkg_config=no 26065with_crypto=${with_crypto:-openssl,libcrypto} 26066case "$with_crypto" in 26067 yes) 26068 with_crypto=openssl,libcrypto 26069esac 26070case "$with_crypto:${PKG_CONFIG:+notempty}:${with_openssl_libdir-notgiven}:${with_openssl_incdir-notgiven}" in 26071 no:*) ;; 26072 *:notempty:notgiven:notgiven) 26073 for pkg in `echo $with_crypto | sed -e 's/,/ /'`; do 26074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config for $pkg" >&5 26075$as_echo_n "checking pkg-config for $pkg... " >&6; } 26076 if $PKG_CONFIG --exists $pkg ; then 26077 CPPFLAGS_NTP="$CPPFLAGS_NTP `$PKG_CONFIG --cflags-only-I $pkg`" 26078 CFLAGS_NTP="$CFLAGS_NTP `$PKG_CONFIG --cflags-only-other $pkg`" 26079 LDADD_NTP="$LDADD_NTP `$PKG_CONFIG --libs-only-L $pkg`" 26080 LDADD_NTP="$LDADD_NTP `$PKG_CONFIG --libs-only-l $pkg`" 26081 LDFLAGS_NTP="$LDFLAGS_NTP `$PKG_CONFIG --libs-only-other $pkg`" 26082 VER_SUFFIX=o 26083 ntp_openssl=yes 26084 ntp_openssl_from_pkg_config=yes 26085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 26086$as_echo "yes" >&6; } 26087 26088 break 26089 fi 26090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26091$as_echo "no" >&6; } 26092 done 26093esac 26094case "$with_crypto:$ntp_openssl" in 26095 no:*) ;; 26096 *:no) 26097 need_dash_r= 26098 need_dash_Wlrpath= 26099 case "${with_rpath-notgiven}" in 26100 yes) 26101 # Lame - what to do if we need -Wl... but not -R? 26102 need_dash_r=1 26103 ;; 26104 notgiven) 26105 case "$host" in 26106 *-*-linux*) 26107 # This may really only be true for gcc 26108 need_dash_Wlrpath=1 26109 ;; 26110 *-*-netbsd*) 26111 need_dash_r=1 26112 ;; 26113 *-*-solaris*) 26114 need_dash_r=1 26115 ;; 26116 esac 26117 ;; 26118 esac 26119 26120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl library directory" >&5 26121$as_echo_n "checking for openssl library directory... " >&6; } 26122 with_openssl_libdir=${with_openssl_libdir-notgiven} 26123 case "$with_openssl_libdir" in 26124 notgiven) 26125 case "$build" in 26126 $host) 26127 with_openssl_libdir=default 26128 ;; 26129 *) 26130 with_openssl_libdir=no 26131 ;; 26132 esac 26133 esac 26134 case "$with_openssl_libdir" in 26135 default) 26136 # Look in: 26137 with_openssl_libdir="/usr/lib /usr/lib/openssl /usr/sfw/lib" 26138 with_openssl_libdir="$with_openssl_libdir /usr/local/lib" 26139 with_openssl_libdir="$with_openssl_libdir /usr/local/ssl/lib /lib" 26140 esac 26141 case "$with_openssl_libdir" in 26142 no) 26143 ;; 26144 *) # Look for libcrypto.a and libssl.a: 26145 for i in $with_openssl_libdir no 26146 do 26147 case "$host" in 26148 *-*-darwin*) 26149 test -f $i/libcrypto.dylib -a -f $i/libssl.dylib && break 26150 ;; 26151 *) 26152 test -f $i/libcrypto.so -a -f $i/libssl.so && break 26153 test -f $i/libcrypto.a -a -f $i/libssl.a && break 26154 ;; 26155 esac 26156 done 26157 openssl_libdir=$i 26158 ;; 26159 esac 26160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $openssl_libdir" >&5 26161$as_echo "$openssl_libdir" >&6; } 26162 case "$openssl_libdir" in 26163 no) 26164 openssl_libdir= 26165 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libcrypto and libssl not found in any of $with_openssl_libdir" >&5 26166$as_echo "$as_me: WARNING: libcrypto and libssl not found in any of $with_openssl_libdir" >&2;} 26167 esac 26168 26169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl include directory" >&5 26170$as_echo_n "checking for openssl include directory... " >&6; } 26171 with_openssl_incdir=${with_openssl_incdir-notgiven} 26172 case "$with_openssl_incdir" in 26173 notgiven) 26174 # Look in: 26175 with_openssl_incdir="/usr/include /usr/sfw/include" 26176 with_openssl_incdir="$with_openssl_incdir /usr/local/include" 26177 with_openssl_incdir="$with_openssl_incdir /usr/local/ssl/include" 26178 esac 26179 case "$with_openssl_incdir" in 26180 no) 26181 ;; 26182 *) # look for openssl/evp.h: 26183 for i in $with_openssl_incdir no 26184 do 26185 test -f $i/openssl/evp.h && break 26186 done 26187 openssl_incdir=$i 26188 ;; 26189 esac 26190 { i=; unset i;} 26191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $openssl_incdir" >&5 26192$as_echo "$openssl_incdir" >&6; } 26193 case "$openssl_incdir" in 26194 no) 26195 openssl_incdir= 26196 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: did not find openssl/evp.h in any of $with_openssl_incdir" >&5 26197$as_echo "$as_me: WARNING: did not find openssl/evp.h in any of $with_openssl_incdir" >&2;} 26198 esac 26199 if test -z "$openssl_libdir" -o -z "$openssl_incdir" 26200 then 26201 ntp_openssl=no 26202 else 26203 ntp_openssl=yes 26204 VER_SUFFIX=o 26205 fi 26206 case "$ntp_openssl" in 26207 yes) 26208 # We have OpenSSL inc/lib dirs - use them. 26209 case "$openssl_incdir" in 26210 /usr/include) 26211 ;; 26212 *) 26213 CPPFLAGS_NTP="$CPPFLAGS_NTP -I$openssl_incdir" 26214 ;; 26215 esac 26216 case "$openssl_libdir" in 26217 /usr/lib) 26218 ;; 26219 *) 26220 LDADD_NTP="$LDADD_NTP -L$openssl_libdir" 26221 case "$need_dash_r" in 26222 1) 26223 LDFLAGS_NTP="$LDFLAGS_NTP -R$openssl_libdir" 26224 esac 26225 case "$need_dash_Wlrpath" in 26226 1) 26227 LDFLAGS_NTP="$LDFLAGS_NTP -Wl,-rpath,$openssl_libdir" 26228 esac 26229 ;; 26230 esac 26231 LDADD_NTP="$LDADD_NTP -lcrypto" 26232 esac 26233esac 26234 26235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we will use crypto" >&5 26236$as_echo_n "checking if we will use crypto... " >&6; } 26237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_openssl" >&5 26238$as_echo "$ntp_openssl" >&6; } 26239 26240case "$ntp_openssl" in 26241 yes) 26242 26243$as_echo "#define OPENSSL /**/" >>confdefs.h 26244 26245 case "$VER_SUFFIX" in 26246 *o*) ;; 26247 *) as_fn_error $? "OPENSSL set but no 'o' in VER_SUFFIX!" "$LINENO" 5 ;; 26248 esac 26249 ;; 26250esac 26251 26252NTPO_SAVED_CPPFLAGS="$CPPFLAGS" 26253CPPFLAGS="$CPPFLAGS $CPPFLAGS_NTP" 26254NTPO_SAVED_LIBS="$LIBS" 26255 26256# 26257# check for linking with -lcrypto failure, and try -lcrypto -lz. 26258# Helps m68k-atari-mint 26259# 26260case "$ntp_openssl:$ntp_openssl_from_pkg_config" in 26261 yes:no) 26262 LIBS="$NTPO_SAVED_LIBS $LDADD_NTP" 26263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linking with -lcrypto alone works" >&5 26264$as_echo_n "checking if linking with -lcrypto alone works... " >&6; } 26265if ${ntp_cv_bare_lcrypto+:} false; then : 26266 $as_echo_n "(cached) " >&6 26267else 26268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26269/* end confdefs.h. */ 26270 26271 #include "openssl/err.h" 26272 #include "openssl/evp.h" 26273 26274int 26275main () 26276{ 26277 26278 ERR_load_crypto_strings(); 26279 OpenSSL_add_all_algorithms(); 26280 26281 26282 ; 26283 return 0; 26284} 26285_ACEOF 26286if ac_fn_c_try_link "$LINENO"; then : 26287 ntp_cv_bare_lcrypto=yes 26288else 26289 ntp_cv_bare_lcrypto=no 26290 26291fi 26292rm -f core conftest.err conftest.$ac_objext \ 26293 conftest$ac_exeext conftest.$ac_ext 26294 26295fi 26296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_bare_lcrypto" >&5 26297$as_echo "$ntp_cv_bare_lcrypto" >&6; } 26298 case "$ntp_cv_bare_lcrypto" in 26299 no) 26300 LIBS="$NTPO_SAVED_LIBS $LDADD_NTP -lz" 26301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linking with -lcrypto -lz works" >&5 26302$as_echo_n "checking if linking with -lcrypto -lz works... " >&6; } 26303if ${ntp_cv_lcrypto_lz+:} false; then : 26304 $as_echo_n "(cached) " >&6 26305else 26306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26307/* end confdefs.h. */ 26308 26309 #include "openssl/err.h" 26310 #include "openssl/evp.h" 26311 26312int 26313main () 26314{ 26315 26316 ERR_load_crypto_strings(); 26317 OpenSSL_add_all_algorithms(); 26318 26319 26320 ; 26321 return 0; 26322} 26323_ACEOF 26324if ac_fn_c_try_link "$LINENO"; then : 26325 ntp_cv_lcrypto_lz=yes 26326else 26327 ntp_cv_lcrypto_lz=no 26328 26329fi 26330rm -f core conftest.err conftest.$ac_objext \ 26331 conftest$ac_exeext conftest.$ac_ext 26332 26333fi 26334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_lcrypto_lz" >&5 26335$as_echo "$ntp_cv_lcrypto_lz" >&6; } 26336 case "$ntp_cv_lcrypto_lz" in 26337 yes) 26338 LDADD_NTP="$LDADD_NTP -lz" 26339 esac 26340 esac 26341esac 26342 26343# 26344# Older OpenSSL headers have a number of callback prototypes inside 26345# other function prototypes which trigger copious warnings with gcc's 26346# -Wstrict-prototypes, which is included in -Wall. 26347# 26348# An example: 26349# 26350# int i2d_RSA_NET(const RSA *a, unsigned char **pp, 26351# int (*cb)(), int sgckey); 26352# ^^^^^^^^^^^ 26353# 26354# 26355# 26356openssl_triggers_warnings=unknown 26357NTPO_SAVED_CFLAGS="$CFLAGS" 26358 26359case "$ntp_openssl:$GCC" in 26360 yes:yes) 26361 CFLAGS="$CFLAGS -Werror" 26362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26363/* end confdefs.h. */ 26364 26365 26366int 26367main () 26368{ 26369 26370 /* see if -Werror breaks gcc */ 26371 26372 26373 ; 26374 return 0; 26375} 26376_ACEOF 26377if ac_fn_c_try_compile "$LINENO"; then : 26378 gcc_handles_Werror=yes 26379else 26380 gcc_handles_Werror=no 26381 26382fi 26383rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26384 case "$gcc_handles_Werror" in 26385 no) 26386 # if this gcc doesn't do -Werror go ahead and use 26387 # -Wstrict-prototypes. 26388 openssl_triggers_warnings=yes 26389 ;; 26390 yes) 26391 CFLAGS="$CFLAGS -Wstrict-prototypes" 26392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26393/* end confdefs.h. */ 26394 26395 #include "openssl/asn1_mac.h" 26396 #include "openssl/bn.h" 26397 #include "openssl/err.h" 26398 #include "openssl/evp.h" 26399 #include "openssl/pem.h" 26400 #include "openssl/rand.h" 26401 #include "openssl/x509v3.h" 26402 26403int 26404main () 26405{ 26406 26407 /* empty body */ 26408 26409 26410 ; 26411 return 0; 26412} 26413_ACEOF 26414if ac_fn_c_try_compile "$LINENO"; then : 26415 openssl_triggers_warnings=no 26416else 26417 openssl_triggers_warnings=yes 26418 26419fi 26420rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26421 esac 26422 case "$openssl_triggers_warnings" in 26423 yes) 26424 CFLAGS_NTP="$CFLAGS_NTP -Wno-strict-prototypes" 26425 ;; 26426 *) 26427 CFLAGS_NTP="$CFLAGS_NTP -Wstrict-prototypes" 26428 esac 26429 ;; 26430 no:yes) 26431 # gcc without OpenSSL 26432 CFLAGS_NTP="$CFLAGS_NTP -Wstrict-prototypes" 26433esac 26434 26435# Because we don't want -Werror for the EVP_MD_do_all_sorted check 26436CFLAGS="$NTPO_SAVED_CFLAGS" 26437 26438case "$ntp_openssl" in 26439 yes) 26440 LIBS="$NTPO_SAVED_LIBS $LDADD_NTP" 26441 for ac_func in EVP_MD_do_all_sorted 26442do : 26443 ac_fn_c_check_func "$LINENO" "EVP_MD_do_all_sorted" "ac_cv_func_EVP_MD_do_all_sorted" 26444if test "x$ac_cv_func_EVP_MD_do_all_sorted" = xyes; then : 26445 cat >>confdefs.h <<_ACEOF 26446#define HAVE_EVP_MD_DO_ALL_SORTED 1 26447_ACEOF 26448 26449fi 26450done 26451 26452 ;; 26453esac 26454 26455CPPFLAGS="$NTPO_SAVED_CPPFLAGS" 26456LIBS="$NTPO_SAVED_LIBS" 26457{ NTPO_SAVED_CFLAGS=; unset NTPO_SAVED_CFLAGS;} 26458{ NTPO_SAVED_CPPFLAGS=; unset NTPO_SAVED_CPPFLAGS;} 26459{ NTPO_SAVED_LIBS=; unset NTPO_SAVED_LIBS;} 26460{ openssl_triggers_warnings=; unset openssl_triggers_warnings;} 26461{ ntp_openssl_from_pkg_config=; unset ntp_openssl_from_pkg_config;} 26462 26463 26464 26465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_storage" >&5 26466$as_echo_n "checking for struct sockaddr_storage... " >&6; } 26467if ${ntp_cv_sockaddr_storage+:} false; then : 26468 $as_echo_n "(cached) " >&6 26469else 26470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26471/* end confdefs.h. */ 26472 26473 #ifdef HAVE_SYS_TYPES_H 26474 # include <sys/types.h> 26475 #endif 26476 #ifdef HAVE_SYS_SOCKET_H 26477 # include <sys/socket.h> 26478 #endif 26479 #ifdef HAVE_NETINET_IN_H 26480 # include <netinet/in.h> 26481 #endif 26482 26483int 26484main () 26485{ 26486 26487 struct sockaddr_storage n; 26488 26489 26490 ; 26491 return 0; 26492} 26493_ACEOF 26494if ac_fn_c_try_compile "$LINENO"; then : 26495 ntp_cv_sockaddr_storage=yes 26496else 26497 ntp_cv_sockaddr_storage=no 26498 26499fi 26500rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26501 26502fi 26503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_sockaddr_storage" >&5 26504$as_echo "$ntp_cv_sockaddr_storage" >&6; } 26505case "$ntp_cv_sockaddr_storage" in 26506 yes) 26507 26508$as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h 26509 26510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_storage.__ss_family" >&5 26511$as_echo_n "checking for sockaddr_storage.__ss_family... " >&6; } 26512if ${ntp_cv_have___ss_family+:} false; then : 26513 $as_echo_n "(cached) " >&6 26514else 26515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26516/* end confdefs.h. */ 26517 26518 #ifdef HAVE_SYS_TYPES_H 26519 # include <sys/types.h> 26520 #endif 26521 #ifdef HAVE_SYS_SOCKET_H 26522 # include <sys/socket.h> 26523 #endif 26524 #ifdef HAVE_NETINET_IN_H 26525 # include <netinet/in.h> 26526 #endif 26527 26528int 26529main () 26530{ 26531 26532 struct sockaddr_storage s; 26533 s.__ss_family = 1; 26534 26535 26536 ; 26537 return 0; 26538} 26539_ACEOF 26540if ac_fn_c_try_compile "$LINENO"; then : 26541 ntp_cv_have___ss_family=yes 26542else 26543 ntp_cv_have___ss_family=no 26544 26545fi 26546rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26547 26548fi 26549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_have___ss_family" >&5 26550$as_echo "$ntp_cv_have___ss_family" >&6; } 26551 case "$ntp_cv_have___ss_family" in 26552 yes) 26553 26554$as_echo "#define HAVE___SS_FAMILY_IN_SS 1" >>confdefs.h 26555 26556 esac 26557 26558esac 26559 26560 26561# 26562# Look for in_port_t. 26563# 26564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for in_port_t" >&5 26565$as_echo_n "checking for in_port_t... " >&6; } 26566if ${isc_cv_have_in_port_t+:} false; then : 26567 $as_echo_n "(cached) " >&6 26568else 26569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26570/* end confdefs.h. */ 26571 26572 #include <sys/types.h> 26573 #include <netinet/in.h> 26574 26575int 26576main () 26577{ 26578 26579 in_port_t port = 25; 26580 return (0); 26581 26582 26583 ; 26584 return 0; 26585} 26586_ACEOF 26587if ac_fn_c_try_compile "$LINENO"; then : 26588 isc_cv_have_in_port_t=yes 26589else 26590 isc_cv_have_in_port_t=no 26591 26592fi 26593rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26594 26595fi 26596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_have_in_port_t" >&5 26597$as_echo "$isc_cv_have_in_port_t" >&6; } 26598case "$isc_cv_have_in_port_t" in 26599 no) 26600 26601$as_echo "#define ISC_PLATFORM_NEEDPORTT 1" >>confdefs.h 26602 26603esac 26604 26605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking type of socklen arg for getsockname()" >&5 26606$as_echo_n "checking type of socklen arg for getsockname()... " >&6; } 26607if ${ntp_cv_getsockname_socklen_type+:} false; then : 26608 $as_echo_n "(cached) " >&6 26609else 26610 26611 getsockname_socklen_type_found=no 26612 for getsockname_arg2 in 'struct sockaddr *' 'void *'; do 26613 for ntp_cv_getsockname_socklen_type in 'socklen_t' 'size_t' 'unsigned int' 'int'; do 26614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26615/* end confdefs.h. */ 26616 26617 #ifdef HAVE_SYS_TYPES_H 26618 # include <sys/types.h> 26619 #endif 26620 #ifdef HAVE_SYS_SOCKET_H 26621 # include <sys/socket.h> 26622 #endif 26623 26624int 26625main () 26626{ 26627 26628 extern 26629 getsockname(int, $getsockname_arg2, 26630 $ntp_cv_getsockname_socklen_type *); 26631 26632 26633 ; 26634 return 0; 26635} 26636_ACEOF 26637if ac_fn_c_try_compile "$LINENO"; then : 26638 getsockname_socklen_type_found=yes ; break 2 26639fi 26640rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26641 done 26642 done 26643 case "$getsockname_socklen_type_found" in 26644 no) 26645 ntp_cv_getsockname_socklen_type='socklen_t' 26646 esac 26647 { getsockname_arg2=; unset getsockname_arg2;} 26648 { getsockname_socklen_type_found=; unset getsockname_socklen_type_found;} 26649 26650 26651fi 26652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_getsockname_socklen_type" >&5 26653$as_echo "$ntp_cv_getsockname_socklen_type" >&6; } 26654 26655cat >>confdefs.h <<_ACEOF 26656#define GETSOCKNAME_SOCKLEN_TYPE $ntp_cv_getsockname_socklen_type 26657_ACEOF 26658 26659 26660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking struct sockaddr for sa_len" >&5 26661$as_echo_n "checking struct sockaddr for sa_len... " >&6; } 26662if ${isc_cv_platform_havesalen+:} false; then : 26663 $as_echo_n "(cached) " >&6 26664else 26665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26666/* end confdefs.h. */ 26667 26668 #include <sys/types.h> 26669 #include <sys/socket.h> 26670 26671int 26672main () 26673{ 26674 26675 extern struct sockaddr *ps; 26676 return ps->sa_len; 26677 26678 26679 ; 26680 return 0; 26681} 26682_ACEOF 26683if ac_fn_c_try_compile "$LINENO"; then : 26684 isc_cv_platform_havesalen=yes 26685else 26686 isc_cv_platform_havesalen=no 26687 26688fi 26689rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26690 26691fi 26692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_platform_havesalen" >&5 26693$as_echo "$isc_cv_platform_havesalen" >&6; } 26694case "$isc_cv_platform_havesalen" in 26695 yes) 26696 26697$as_echo "#define ISC_PLATFORM_HAVESALEN 1" >>confdefs.h 26698 26699esac 26700 26701# Check whether --enable-ipv6 was given. 26702if test "${enable_ipv6+set}" = set; then : 26703 enableval=$enable_ipv6; 26704fi 26705 26706 26707case "$enable_ipv6" in 26708 yes|''|autodetect) 26709 case "$host" in 26710 powerpc-ibm-aix4*) 26711 ;; 26712 *) 26713 26714$as_echo "#define WANT_IPV6 1" >>confdefs.h 26715 26716 ;; 26717 esac 26718 ;; 26719 no) 26720 ;; 26721esac 26722 26723 26724case "$host" in 26725 *-*-darwin*) 26726 26727$as_echo "#define __APPLE_USE_RFC_3542 1" >>confdefs.h 26728 26729esac 26730 26731 26732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv6 structures" >&5 26733$as_echo_n "checking for IPv6 structures... " >&6; } 26734if ${isc_cv_found_ipv6+:} false; then : 26735 $as_echo_n "(cached) " >&6 26736else 26737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26738/* end confdefs.h. */ 26739 26740 #include <sys/types.h> 26741 #include <sys/socket.h> 26742 #include <netinet/in.h> 26743 26744int 26745main () 26746{ 26747 26748 struct sockaddr_in6 sin6; 26749 26750 26751 ; 26752 return 0; 26753} 26754_ACEOF 26755if ac_fn_c_try_compile "$LINENO"; then : 26756 isc_cv_found_ipv6=yes 26757else 26758 isc_cv_found_ipv6=no 26759 26760fi 26761rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26762 26763fi 26764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_found_ipv6" >&5 26765$as_echo "$isc_cv_found_ipv6" >&6; } 26766 26767# 26768# See whether IPv6 support is provided via a Kame add-on. 26769# This is done before other IPv6 linking tests so LIBS is properly set. 26770# 26771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Kame IPv6 support" >&5 26772$as_echo_n "checking for Kame IPv6 support... " >&6; } 26773 26774# Check whether --with-kame was given. 26775if test "${with_kame+set}" = set; then : 26776 withval=$with_kame; use_kame="$withval" 26777else 26778 use_kame="no" 26779 26780fi 26781 26782case "$use_kame" in 26783 no) 26784 ;; 26785 yes) 26786 kame_path=/usr/local/v6 26787 ;; 26788 *) 26789 kame_path="$use_kame" 26790 ;; 26791esac 26792case "$use_kame" in 26793 no) 26794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26795$as_echo "no" >&6; } 26796 ;; 26797 *) 26798 if test -f $kame_path/lib/libinet6.a; then 26799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kame_path/lib/libinet6.a" >&5 26800$as_echo "$kame_path/lib/libinet6.a" >&6; } 26801 LIBS="-L$kame_path/lib -linet6 $LIBS" 26802 else 26803 as_fn_error $? "$kame_path/lib/libinet6.a not found. 26804 26805Please choose the proper path with the following command: 26806 26807 configure --with-kame=PATH 26808" "$LINENO" 5 26809 fi 26810 ;; 26811esac 26812 26813# 26814# Whether netinet6/in6.h is needed has to be defined in isc/platform.h. 26815# Including it on Kame-using platforms is very bad, though, because 26816# Kame uses #error against direct inclusion. So include it on only 26817# the platform that is otherwise broken without it -- BSD/OS 4.0 through 4.1. 26818# This is done before the in6_pktinfo check because that's what 26819# netinet6/in6.h is needed for. 26820# 26821case "$host" in 26822 *-bsdi4.[01]*) 26823 26824$as_echo "#define ISC_PLATFORM_NEEDNETINET6IN6H 1" >>confdefs.h 26825 26826 isc_netinet6in6_hack="#include <netinet6/in6.h>" 26827 ;; 26828 *) 26829 isc_netinet6in6_hack="" 26830 ;; 26831esac 26832 26833# 26834# This is similar to the netinet6/in6.h issue. 26835# 26836case "$host" in 26837 *-sco-sysv*uw*|*-*-sysv*UnixWare*|*-*-sysv*OpenUNIX*) 26838 26839$as_echo "#define ISC_PLATFORM_FIXIN6ISADDR 1" >>confdefs.h 26840 26841 isc_netinetin6_hack="#include <netinet/in6.h>" 26842 ;; 26843 *) 26844 isc_netinetin6_hack="" 26845 ;; 26846esac 26847 26848 26849case "$isc_cv_found_ipv6" in 26850 yes) 26851 26852$as_echo "#define ISC_PLATFORM_HAVEIPV6 1" >>confdefs.h 26853 26854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in6_pktinfo" >&5 26855$as_echo_n "checking for in6_pktinfo... " >&6; } 26856if ${isc_cv_have_in6_pktinfo+:} false; then : 26857 $as_echo_n "(cached) " >&6 26858else 26859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26860/* end confdefs.h. */ 26861 26862 #include <sys/types.h> 26863 #include <sys/socket.h> 26864 #include <netinet/in.h> 26865 $isc_netinetin6_hack 26866 $isc_netinet6in6_hack 26867 26868int 26869main () 26870{ 26871 26872 struct in6_pktinfo xyzzy; 26873 26874 26875 ; 26876 return 0; 26877} 26878_ACEOF 26879if ac_fn_c_try_compile "$LINENO"; then : 26880 isc_cv_have_in6_pktinfo=yes 26881else 26882 isc_cv_have_in6_pktinfo=no 26883 26884fi 26885rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26886 26887fi 26888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_have_in6_pktinfo" >&5 26889$as_echo "$isc_cv_have_in6_pktinfo" >&6; } 26890 case "$isc_cv_have_in6_pktinfo" in 26891 yes) 26892 26893$as_echo "#define ISC_PLATFORM_HAVEIN6PKTINFO 1" >>confdefs.h 26894 26895 esac 26896 26897 26898 # HMS: Use HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID instead? 26899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_in6.sin6_scope_id" >&5 26900$as_echo_n "checking for sockaddr_in6.sin6_scope_id... " >&6; } 26901if ${isc_cv_have_sin6_scope_id+:} false; then : 26902 $as_echo_n "(cached) " >&6 26903else 26904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26905/* end confdefs.h. */ 26906 26907 #include <sys/types.h> 26908 #include <sys/socket.h> 26909 #include <netinet/in.h> 26910 $isc_netinetin6_hack 26911 $isc_netinet6in6_hack 26912 26913int 26914main () 26915{ 26916 26917 struct sockaddr_in6 xyzzy; 26918 xyzzy.sin6_scope_id = 0; 26919 26920 26921 ; 26922 return 0; 26923} 26924_ACEOF 26925if ac_fn_c_try_compile "$LINENO"; then : 26926 isc_cv_have_sin6_scope_id=yes 26927else 26928 isc_cv_have_sin6_scope_id=no 26929 26930fi 26931rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26932 26933fi 26934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_have_sin6_scope_id" >&5 26935$as_echo "$isc_cv_have_sin6_scope_id" >&6; } 26936 26937 case "$isc_cv_have_sin6_scope_id" in 26938 yes) 26939 26940$as_echo "#define ISC_PLATFORM_HAVESCOPEID 1" >>confdefs.h 26941 26942 esac 26943esac 26944 26945 26946# We need this check run even without isc_cv_found_ipv6=yes 26947 26948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for in6addr_any" >&5 26949$as_echo_n "checking for in6addr_any... " >&6; } 26950if ${isc_cv_in6addr_any_links+:} false; then : 26951 $as_echo_n "(cached) " >&6 26952else 26953 26954 SAVED_LIBS="$LIBS" 26955 LIBS="$LDADD_LIBNTP $LIBS" 26956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26957/* end confdefs.h. */ 26958$ac_includes_default 26959 #include <sys/socket.h> 26960 #include <netinet/in.h> 26961 $isc_netinetin6_hack 26962 $isc_netinet6in6_hack 26963 26964int 26965main () 26966{ 26967 26968 printf("%x", in6addr_any.s6_addr[15]); 26969 26970 26971 ; 26972 return 0; 26973} 26974_ACEOF 26975if ac_fn_c_try_link "$LINENO"; then : 26976 isc_cv_in6addr_any_links=yes 26977else 26978 isc_cv_in6addr_any_links=no 26979 26980fi 26981rm -f core conftest.err conftest.$ac_objext \ 26982 conftest$ac_exeext conftest.$ac_ext 26983 LIBS="$SAVED_LIBS" 26984 { SAVED_LIBS=; unset SAVED_LIBS;} 26985 26986 26987fi 26988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_in6addr_any_links" >&5 26989$as_echo "$isc_cv_in6addr_any_links" >&6; } 26990 26991case "$isc_cv_in6addr_any_links" in 26992 no) 26993 26994$as_echo "#define ISC_PLATFORM_NEEDIN6ADDRANY 1" >>confdefs.h 26995 26996esac 26997 26998 26999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct if_laddrconf" >&5 27000$as_echo_n "checking for struct if_laddrconf... " >&6; } 27001if ${isc_cv_struct_if_laddrconf+:} false; then : 27002 $as_echo_n "(cached) " >&6 27003else 27004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27005/* end confdefs.h. */ 27006 27007 #include <sys/types.h> 27008 #include <net/if6.h> 27009 27010int 27011main () 27012{ 27013 27014 struct if_laddrconf a; 27015 27016 27017 ; 27018 return 0; 27019} 27020_ACEOF 27021if ac_fn_c_try_compile "$LINENO"; then : 27022 isc_cv_struct_if_laddrconf=yes 27023else 27024 isc_cv_struct_if_laddrconf=no 27025 27026fi 27027rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27028 27029fi 27030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_struct_if_laddrconf" >&5 27031$as_echo "$isc_cv_struct_if_laddrconf" >&6; } 27032 27033case "$isc_cv_struct_if_laddrconf" in 27034 yes) 27035 27036$as_echo "#define ISC_PLATFORM_HAVEIF_LADDRCONF 1" >>confdefs.h 27037 27038esac 27039 27040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct if_laddrreq" >&5 27041$as_echo_n "checking for struct if_laddrreq... " >&6; } 27042if ${isc_cv_struct_if_laddrreq+:} false; then : 27043 $as_echo_n "(cached) " >&6 27044else 27045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27046/* end confdefs.h. */ 27047 27048 #include <sys/types.h> 27049 #include <net/if6.h> 27050 27051int 27052main () 27053{ 27054 27055 struct if_laddrreq a; 27056 27057 27058 ; 27059 return 0; 27060} 27061_ACEOF 27062if ac_fn_c_try_compile "$LINENO"; then : 27063 isc_cv_struct_if_laddrreq=yes 27064else 27065 isc_cv_struct_if_laddrreq=no 27066 27067fi 27068rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27069 27070fi 27071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_struct_if_laddrreq" >&5 27072$as_echo "$isc_cv_struct_if_laddrreq" >&6; } 27073 27074case "$isc_cv_struct_if_laddrreq" in 27075 yes) 27076 27077$as_echo "#define ISC_PLATFORM_HAVEIF_LADDRREQ 1" >>confdefs.h 27078 27079esac 27080 27081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for multicast IP support" >&5 27082$as_echo_n "checking for multicast IP support... " >&6; } 27083if ${ntp_cv_multicast+:} false; then : 27084 $as_echo_n "(cached) " >&6 27085else 27086 27087 ntp_cv_multicast=no 27088 case "$host" in 27089 i386-sequent-sysv4) 27090 ;; 27091 *) 27092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27093/* end confdefs.h. */ 27094 27095 #ifdef HAVE_NETINET_IN_H 27096 # include <netinet/in.h> 27097 #endif 27098 27099int 27100main () 27101{ 27102 27103 struct ip_mreq ipmr; 27104 ipmr.imr_interface.s_addr = 0; 27105 27106 27107 ; 27108 return 0; 27109} 27110_ACEOF 27111if ac_fn_c_try_compile "$LINENO"; then : 27112 ntp_cv_multicast=yes 27113fi 27114rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27115 ;; 27116 esac 27117 27118 27119fi 27120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_multicast" >&5 27121$as_echo "$ntp_cv_multicast" >&6; } 27122case "$ntp_cv_multicast" in 27123 yes) 27124 27125$as_echo "#define MCAST 1" >>confdefs.h 27126 27127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking arg type needed for setsockopt() IP*_MULTICAST_LOOP" >&5 27128$as_echo_n "checking arg type needed for setsockopt() IP*_MULTICAST_LOOP... " >&6; } 27129if ${ntp_cv_typeof_ip_multicast_loop+:} false; then : 27130 $as_echo_n "(cached) " >&6 27131else 27132 27133 case "$host" in 27134 *-*-netbsd*|*-*-*linux*) 27135 ntp_cv_typeof_ip_multicast_loop=u_int 27136 ;; 27137 *) 27138 ntp_cv_typeof_ip_multicast_loop=u_char 27139 ;; 27140 esac 27141 27142 27143fi 27144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_typeof_ip_multicast_loop" >&5 27145$as_echo "$ntp_cv_typeof_ip_multicast_loop" >&6; } 27146 27147cat >>confdefs.h <<_ACEOF 27148#define TYPEOF_IP_MULTICAST_LOOP $ntp_cv_typeof_ip_multicast_loop 27149_ACEOF 27150 27151esac 27152 27153# Check whether --enable-getifaddrs was given. 27154if test "${enable_getifaddrs+set}" = set; then : 27155 enableval=$enable_getifaddrs; want_getifaddrs="$enableval" 27156else 27157 want_getifaddrs="yes" 27158 27159fi 27160 27161 27162case $want_getifaddrs in 27163 glibc) 27164 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-getifaddrs=glibc is no longer required" >&5 27165$as_echo "$as_me: WARNING: --enable-getifaddrs=glibc is no longer required" >&2;} 27166esac 27167case $want_getifaddrs in 27168 no) 27169 ;; 27170 *) 27171 SAVED_LIBS="$LIBS" 27172 LIBS="$LDADD_LIBNTP $LIBS" 27173 for ac_func in getifaddrs 27174do : 27175 ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs" 27176if test "x$ac_cv_func_getifaddrs" = xyes; then : 27177 cat >>confdefs.h <<_ACEOF 27178#define HAVE_GETIFADDRS 1 27179_ACEOF 27180 27181fi 27182done 27183 27184 LIBS="$SAVED_LIBS" 27185 { SAVED_LIBS=; unset SAVED_LIBS;} 27186 ;; 27187esac 27188 27189# 27190# Check for if_nametoindex() for IPv6 scoped addresses support 27191# 27192case "$host" in 27193 *-hp-hpux*) 27194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing if_nametoindex" >&5 27195$as_echo_n "checking for library containing if_nametoindex... " >&6; } 27196if ${ac_cv_search_if_nametoindex+:} false; then : 27197 $as_echo_n "(cached) " >&6 27198else 27199 ac_func_search_save_LIBS=$LIBS 27200cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27201/* end confdefs.h. */ 27202 27203/* Override any GCC internal prototype to avoid an error. 27204 Use char because int might match the return type of a GCC 27205 builtin and then its argument prototype would still apply. */ 27206#ifdef __cplusplus 27207extern "C" 27208#endif 27209char if_nametoindex (); 27210int 27211main () 27212{ 27213return if_nametoindex (); 27214 ; 27215 return 0; 27216} 27217_ACEOF 27218for ac_lib in '' ipv6; do 27219 if test -z "$ac_lib"; then 27220 ac_res="none required" 27221 else 27222 ac_res=-l$ac_lib 27223 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 27224 fi 27225 if ac_fn_c_try_link "$LINENO"; then : 27226 ac_cv_search_if_nametoindex=$ac_res 27227fi 27228rm -f core conftest.err conftest.$ac_objext \ 27229 conftest$ac_exeext 27230 if ${ac_cv_search_if_nametoindex+:} false; then : 27231 break 27232fi 27233done 27234if ${ac_cv_search_if_nametoindex+:} false; then : 27235 27236else 27237 ac_cv_search_if_nametoindex=no 27238fi 27239rm conftest.$ac_ext 27240LIBS=$ac_func_search_save_LIBS 27241fi 27242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_if_nametoindex" >&5 27243$as_echo "$ac_cv_search_if_nametoindex" >&6; } 27244ac_res=$ac_cv_search_if_nametoindex 27245if test "$ac_res" != no; then : 27246 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 27247 27248fi 27249 27250esac 27251SAVED_LIBS="$LIBS" 27252LIBS="$LDADD_LIBNTP $LIBS" 27253for ac_func in if_nametoindex 27254do : 27255 ac_fn_c_check_func "$LINENO" "if_nametoindex" "ac_cv_func_if_nametoindex" 27256if test "x$ac_cv_func_if_nametoindex" = xyes; then : 27257 cat >>confdefs.h <<_ACEOF 27258#define HAVE_IF_NAMETOINDEX 1 27259_ACEOF 27260 27261fi 27262done 27263 27264LIBS="$SAVED_LIBS" 27265{ SAVED_LIBS=; unset SAVED_LIBS;} 27266case "$ac_cv_func_if_nametoindex" in 27267 yes) 27268 27269$as_echo "#define ISC_PLATFORM_HAVEIFNAMETOINDEX 1" >>confdefs.h 27270 27271esac 27272 27273 27274 27275### 27276 27277# Hacks 27278# these need work if we're to move libntp under sntp 27279 27280$as_echo "#define HAVE_NO_NICE 1" >>confdefs.h 27281 27282 27283$as_echo "#define HAVE_TERMIOS 1" >>confdefs.h 27284 27285 27286# Checks for library functions. 27287for ac_func in socket 27288do : 27289 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket" 27290if test "x$ac_cv_func_socket" = xyes; then : 27291 cat >>confdefs.h <<_ACEOF 27292#define HAVE_SOCKET 1 27293_ACEOF 27294 27295fi 27296done 27297 27298 27299 27300# We may not need have_unity 27301have_unity=false 27302# Extract the first word of "ruby", so it can be a program name with args. 27303set dummy ruby; ac_word=$2 27304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 27305$as_echo_n "checking for $ac_word... " >&6; } 27306if ${ac_cv_path_PATH_RUBY+:} false; then : 27307 $as_echo_n "(cached) " >&6 27308else 27309 case $PATH_RUBY in 27310 [\\/]* | ?:[\\/]*) 27311 ac_cv_path_PATH_RUBY="$PATH_RUBY" # Let the user override the test with a path. 27312 ;; 27313 *) 27314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 27315for as_dir in $PATH 27316do 27317 IFS=$as_save_IFS 27318 test -z "$as_dir" && as_dir=. 27319 for ac_exec_ext in '' $ac_executable_extensions; do 27320 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 27321 ac_cv_path_PATH_RUBY="$as_dir/$ac_word$ac_exec_ext" 27322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 27323 break 2 27324 fi 27325done 27326 done 27327IFS=$as_save_IFS 27328 27329 ;; 27330esac 27331fi 27332PATH_RUBY=$ac_cv_path_PATH_RUBY 27333if test -n "$PATH_RUBY"; then 27334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_RUBY" >&5 27335$as_echo "$PATH_RUBY" >&6; } 27336else 27337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27338$as_echo "no" >&6; } 27339fi 27340 27341 27342case "$PATH_RUBY" in 27343 /*) 27344 have_unity=true 27345 ;; 27346 *) PATH_RUBY="false" 27347 ;; 27348esac 27349# We may not need UNITYBUILD_AVAILABLE 27350 if $have_unity; then 27351 UNITYBUILD_AVAILABLE_TRUE= 27352 UNITYBUILD_AVAILABLE_FALSE='#' 27353else 27354 UNITYBUILD_AVAILABLE_TRUE='#' 27355 UNITYBUILD_AVAILABLE_FALSE= 27356fi 27357 27358 27359 27360# HMS: if we don't find c++ we should not look for gtest. 27361ac_ext=cpp 27362ac_cpp='$CXXCPP $CPPFLAGS' 27363ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 27364ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 27365ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 27366if test -z "$CXX"; then 27367 if test -n "$CCC"; then 27368 CXX=$CCC 27369 else 27370 if test -n "$ac_tool_prefix"; then 27371 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 27372 do 27373 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 27374set dummy $ac_tool_prefix$ac_prog; ac_word=$2 27375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 27376$as_echo_n "checking for $ac_word... " >&6; } 27377if ${ac_cv_prog_CXX+:} false; then : 27378 $as_echo_n "(cached) " >&6 27379else 27380 if test -n "$CXX"; then 27381 ac_cv_prog_CXX="$CXX" # Let the user override the test. 27382else 27383as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 27384for as_dir in $PATH 27385do 27386 IFS=$as_save_IFS 27387 test -z "$as_dir" && as_dir=. 27388 for ac_exec_ext in '' $ac_executable_extensions; do 27389 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 27390 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 27391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 27392 break 2 27393 fi 27394done 27395 done 27396IFS=$as_save_IFS 27397 27398fi 27399fi 27400CXX=$ac_cv_prog_CXX 27401if test -n "$CXX"; then 27402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 27403$as_echo "$CXX" >&6; } 27404else 27405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27406$as_echo "no" >&6; } 27407fi 27408 27409 27410 test -n "$CXX" && break 27411 done 27412fi 27413if test -z "$CXX"; then 27414 ac_ct_CXX=$CXX 27415 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 27416do 27417 # Extract the first word of "$ac_prog", so it can be a program name with args. 27418set dummy $ac_prog; ac_word=$2 27419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 27420$as_echo_n "checking for $ac_word... " >&6; } 27421if ${ac_cv_prog_ac_ct_CXX+:} false; then : 27422 $as_echo_n "(cached) " >&6 27423else 27424 if test -n "$ac_ct_CXX"; then 27425 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 27426else 27427as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 27428for as_dir in $PATH 27429do 27430 IFS=$as_save_IFS 27431 test -z "$as_dir" && as_dir=. 27432 for ac_exec_ext in '' $ac_executable_extensions; do 27433 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 27434 ac_cv_prog_ac_ct_CXX="$ac_prog" 27435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 27436 break 2 27437 fi 27438done 27439 done 27440IFS=$as_save_IFS 27441 27442fi 27443fi 27444ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 27445if test -n "$ac_ct_CXX"; then 27446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 27447$as_echo "$ac_ct_CXX" >&6; } 27448else 27449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27450$as_echo "no" >&6; } 27451fi 27452 27453 27454 test -n "$ac_ct_CXX" && break 27455done 27456 27457 if test "x$ac_ct_CXX" = x; then 27458 CXX="g++" 27459 else 27460 case $cross_compiling:$ac_tool_warned in 27461yes:) 27462{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 27463$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 27464ac_tool_warned=yes ;; 27465esac 27466 CXX=$ac_ct_CXX 27467 fi 27468fi 27469 27470 fi 27471fi 27472# Provide some information about the compiler. 27473$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 27474set X $ac_compile 27475ac_compiler=$2 27476for ac_option in --version -v -V -qversion; do 27477 { { ac_try="$ac_compiler $ac_option >&5" 27478case "(($ac_try" in 27479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 27480 *) ac_try_echo=$ac_try;; 27481esac 27482eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 27483$as_echo "$ac_try_echo"; } >&5 27484 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 27485 ac_status=$? 27486 if test -s conftest.err; then 27487 sed '10a\ 27488... rest of stderr output deleted ... 27489 10q' conftest.err >conftest.er1 27490 cat conftest.er1 >&5 27491 fi 27492 rm -f conftest.er1 conftest.err 27493 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27494 test $ac_status = 0; } 27495done 27496 27497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 27498$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 27499if ${ac_cv_cxx_compiler_gnu+:} false; then : 27500 $as_echo_n "(cached) " >&6 27501else 27502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27503/* end confdefs.h. */ 27504 27505int 27506main () 27507{ 27508#ifndef __GNUC__ 27509 choke me 27510#endif 27511 27512 ; 27513 return 0; 27514} 27515_ACEOF 27516if ac_fn_cxx_try_compile "$LINENO"; then : 27517 ac_compiler_gnu=yes 27518else 27519 ac_compiler_gnu=no 27520fi 27521rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27522ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 27523 27524fi 27525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 27526$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 27527if test $ac_compiler_gnu = yes; then 27528 GXX=yes 27529else 27530 GXX= 27531fi 27532ac_test_CXXFLAGS=${CXXFLAGS+set} 27533ac_save_CXXFLAGS=$CXXFLAGS 27534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 27535$as_echo_n "checking whether $CXX accepts -g... " >&6; } 27536if ${ac_cv_prog_cxx_g+:} false; then : 27537 $as_echo_n "(cached) " >&6 27538else 27539 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 27540 ac_cxx_werror_flag=yes 27541 ac_cv_prog_cxx_g=no 27542 CXXFLAGS="-g" 27543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27544/* end confdefs.h. */ 27545 27546int 27547main () 27548{ 27549 27550 ; 27551 return 0; 27552} 27553_ACEOF 27554if ac_fn_cxx_try_compile "$LINENO"; then : 27555 ac_cv_prog_cxx_g=yes 27556else 27557 CXXFLAGS="" 27558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27559/* end confdefs.h. */ 27560 27561int 27562main () 27563{ 27564 27565 ; 27566 return 0; 27567} 27568_ACEOF 27569if ac_fn_cxx_try_compile "$LINENO"; then : 27570 27571else 27572 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 27573 CXXFLAGS="-g" 27574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27575/* end confdefs.h. */ 27576 27577int 27578main () 27579{ 27580 27581 ; 27582 return 0; 27583} 27584_ACEOF 27585if ac_fn_cxx_try_compile "$LINENO"; then : 27586 ac_cv_prog_cxx_g=yes 27587fi 27588rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27589fi 27590rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27591fi 27592rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27593 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 27594fi 27595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 27596$as_echo "$ac_cv_prog_cxx_g" >&6; } 27597if test "$ac_test_CXXFLAGS" = set; then 27598 CXXFLAGS=$ac_save_CXXFLAGS 27599elif test $ac_cv_prog_cxx_g = yes; then 27600 if test "$GXX" = yes; then 27601 CXXFLAGS="-g -O2" 27602 else 27603 CXXFLAGS="-g" 27604 fi 27605else 27606 if test "$GXX" = yes; then 27607 CXXFLAGS="-O2" 27608 else 27609 CXXFLAGS= 27610 fi 27611fi 27612ac_ext=c 27613ac_cpp='$CPP $CPPFLAGS' 27614ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 27615ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 27616ac_compiler_gnu=$ac_cv_c_compiler_gnu 27617 27618depcc="$CXX" am_compiler_list= 27619 27620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 27621$as_echo_n "checking dependency style of $depcc... " >&6; } 27622if ${am_cv_CXX_dependencies_compiler_type+:} false; then : 27623 $as_echo_n "(cached) " >&6 27624else 27625 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 27626 # We make a subdir and do the tests there. Otherwise we can end up 27627 # making bogus files that we don't know about and never remove. For 27628 # instance it was reported that on HP-UX the gcc test will end up 27629 # making a dummy file named 'D' -- because '-MD' means "put the output 27630 # in D". 27631 rm -rf conftest.dir 27632 mkdir conftest.dir 27633 # Copy depcomp to subdir because otherwise we won't find it if we're 27634 # using a relative directory. 27635 cp "$am_depcomp" conftest.dir 27636 cd conftest.dir 27637 # We will build objects and dependencies in a subdirectory because 27638 # it helps to detect inapplicable dependency modes. For instance 27639 # both Tru64's cc and ICC support -MD to output dependencies as a 27640 # side effect of compilation, but ICC will put the dependencies in 27641 # the current directory while Tru64 will put them in the object 27642 # directory. 27643 mkdir sub 27644 27645 am_cv_CXX_dependencies_compiler_type=none 27646 if test "$am_compiler_list" = ""; then 27647 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 27648 fi 27649 am__universal=false 27650 case " $depcc " in #( 27651 *\ -arch\ *\ -arch\ *) am__universal=true ;; 27652 esac 27653 27654 for depmode in $am_compiler_list; do 27655 # Setup a source with many dependencies, because some compilers 27656 # like to wrap large dependency lists on column 80 (with \), and 27657 # we should not choose a depcomp mode which is confused by this. 27658 # 27659 # We need to recreate these files for each test, as the compiler may 27660 # overwrite some of them when testing with obscure command lines. 27661 # This happens at least with the AIX C compiler. 27662 : > sub/conftest.c 27663 for i in 1 2 3 4 5 6; do 27664 echo '#include "conftst'$i'.h"' >> sub/conftest.c 27665 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 27666 # Solaris 10 /bin/sh. 27667 echo '/* dummy */' > sub/conftst$i.h 27668 done 27669 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 27670 27671 # We check with '-c' and '-o' for the sake of the "dashmstdout" 27672 # mode. It turns out that the SunPro C++ compiler does not properly 27673 # handle '-M -o', and we need to detect this. Also, some Intel 27674 # versions had trouble with output in subdirs. 27675 am__obj=sub/conftest.${OBJEXT-o} 27676 am__minus_obj="-o $am__obj" 27677 case $depmode in 27678 gcc) 27679 # This depmode causes a compiler race in universal mode. 27680 test "$am__universal" = false || continue 27681 ;; 27682 nosideeffect) 27683 # After this tag, mechanisms are not by side-effect, so they'll 27684 # only be used when explicitly requested. 27685 if test "x$enable_dependency_tracking" = xyes; then 27686 continue 27687 else 27688 break 27689 fi 27690 ;; 27691 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 27692 # This compiler won't grok '-c -o', but also, the minuso test has 27693 # not run yet. These depmodes are late enough in the game, and 27694 # so weak that their functioning should not be impacted. 27695 am__obj=conftest.${OBJEXT-o} 27696 am__minus_obj= 27697 ;; 27698 none) break ;; 27699 esac 27700 if depmode=$depmode \ 27701 source=sub/conftest.c object=$am__obj \ 27702 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 27703 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 27704 >/dev/null 2>conftest.err && 27705 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 27706 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 27707 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 27708 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 27709 # icc doesn't choke on unknown options, it will just issue warnings 27710 # or remarks (even with -Werror). So we grep stderr for any message 27711 # that says an option was ignored or not supported. 27712 # When given -MP, icc 7.0 and 7.1 complain thusly: 27713 # icc: Command line warning: ignoring option '-M'; no argument required 27714 # The diagnosis changed in icc 8.0: 27715 # icc: Command line remark: option '-MP' not supported 27716 if (grep 'ignoring option' conftest.err || 27717 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 27718 am_cv_CXX_dependencies_compiler_type=$depmode 27719 break 27720 fi 27721 fi 27722 done 27723 27724 cd .. 27725 rm -rf conftest.dir 27726else 27727 am_cv_CXX_dependencies_compiler_type=none 27728fi 27729 27730fi 27731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 27732$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 27733CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 27734 27735 if 27736 test "x$enable_dependency_tracking" != xno \ 27737 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 27738 am__fastdepCXX_TRUE= 27739 am__fastdepCXX_FALSE='#' 27740else 27741 am__fastdepCXX_TRUE='#' 27742 am__fastdepCXX_FALSE= 27743fi 27744 27745 27746 27747 27748func_stripname_cnf () 27749{ 27750 case $2 in 27751 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;; 27752 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;; 27753 esac 27754} # func_stripname_cnf 27755 27756 if test -n "$CXX" && ( test no != "$CXX" && 27757 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) || 27758 (test g++ != "$CXX"))); then 27759 ac_ext=cpp 27760ac_cpp='$CXXCPP $CPPFLAGS' 27761ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 27762ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 27763ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 27764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 27765$as_echo_n "checking how to run the C++ preprocessor... " >&6; } 27766if test -z "$CXXCPP"; then 27767 if ${ac_cv_prog_CXXCPP+:} false; then : 27768 $as_echo_n "(cached) " >&6 27769else 27770 # Double quotes because CXXCPP needs to be expanded 27771 for CXXCPP in "$CXX -E" "/lib/cpp" 27772 do 27773 ac_preproc_ok=false 27774for ac_cxx_preproc_warn_flag in '' yes 27775do 27776 # Use a header file that comes with gcc, so configuring glibc 27777 # with a fresh cross-compiler works. 27778 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 27779 # <limits.h> exists even on freestanding compilers. 27780 # On the NeXT, cc -E runs the code through the compiler's parser, 27781 # not just through cpp. "Syntax error" is here to catch this case. 27782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27783/* end confdefs.h. */ 27784#ifdef __STDC__ 27785# include <limits.h> 27786#else 27787# include <assert.h> 27788#endif 27789 Syntax error 27790_ACEOF 27791if ac_fn_cxx_try_cpp "$LINENO"; then : 27792 27793else 27794 # Broken: fails on valid input. 27795continue 27796fi 27797rm -f conftest.err conftest.i conftest.$ac_ext 27798 27799 # OK, works on sane cases. Now check whether nonexistent headers 27800 # can be detected and how. 27801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27802/* end confdefs.h. */ 27803#include <ac_nonexistent.h> 27804_ACEOF 27805if ac_fn_cxx_try_cpp "$LINENO"; then : 27806 # Broken: success on invalid input. 27807continue 27808else 27809 # Passes both tests. 27810ac_preproc_ok=: 27811break 27812fi 27813rm -f conftest.err conftest.i conftest.$ac_ext 27814 27815done 27816# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 27817rm -f conftest.i conftest.err conftest.$ac_ext 27818if $ac_preproc_ok; then : 27819 break 27820fi 27821 27822 done 27823 ac_cv_prog_CXXCPP=$CXXCPP 27824 27825fi 27826 CXXCPP=$ac_cv_prog_CXXCPP 27827else 27828 ac_cv_prog_CXXCPP=$CXXCPP 27829fi 27830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 27831$as_echo "$CXXCPP" >&6; } 27832ac_preproc_ok=false 27833for ac_cxx_preproc_warn_flag in '' yes 27834do 27835 # Use a header file that comes with gcc, so configuring glibc 27836 # with a fresh cross-compiler works. 27837 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 27838 # <limits.h> exists even on freestanding compilers. 27839 # On the NeXT, cc -E runs the code through the compiler's parser, 27840 # not just through cpp. "Syntax error" is here to catch this case. 27841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27842/* end confdefs.h. */ 27843#ifdef __STDC__ 27844# include <limits.h> 27845#else 27846# include <assert.h> 27847#endif 27848 Syntax error 27849_ACEOF 27850if ac_fn_cxx_try_cpp "$LINENO"; then : 27851 27852else 27853 # Broken: fails on valid input. 27854continue 27855fi 27856rm -f conftest.err conftest.i conftest.$ac_ext 27857 27858 # OK, works on sane cases. Now check whether nonexistent headers 27859 # can be detected and how. 27860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27861/* end confdefs.h. */ 27862#include <ac_nonexistent.h> 27863_ACEOF 27864if ac_fn_cxx_try_cpp "$LINENO"; then : 27865 # Broken: success on invalid input. 27866continue 27867else 27868 # Passes both tests. 27869ac_preproc_ok=: 27870break 27871fi 27872rm -f conftest.err conftest.i conftest.$ac_ext 27873 27874done 27875# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 27876rm -f conftest.i conftest.err conftest.$ac_ext 27877if $ac_preproc_ok; then : 27878 27879else 27880 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 27881$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 27882as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 27883See \`config.log' for more details" "$LINENO" 5; } 27884fi 27885 27886ac_ext=c 27887ac_cpp='$CPP $CPPFLAGS' 27888ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 27889ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 27890ac_compiler_gnu=$ac_cv_c_compiler_gnu 27891 27892else 27893 _lt_caught_CXX_error=yes 27894fi 27895 27896ac_ext=cpp 27897ac_cpp='$CXXCPP $CPPFLAGS' 27898ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 27899ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 27900ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 27901 27902archive_cmds_need_lc_CXX=no 27903allow_undefined_flag_CXX= 27904always_export_symbols_CXX=no 27905archive_expsym_cmds_CXX= 27906compiler_needs_object_CXX=no 27907export_dynamic_flag_spec_CXX= 27908hardcode_direct_CXX=no 27909hardcode_direct_absolute_CXX=no 27910hardcode_libdir_flag_spec_CXX= 27911hardcode_libdir_separator_CXX= 27912hardcode_minus_L_CXX=no 27913hardcode_shlibpath_var_CXX=unsupported 27914hardcode_automatic_CXX=no 27915inherit_rpath_CXX=no 27916module_cmds_CXX= 27917module_expsym_cmds_CXX= 27918link_all_deplibs_CXX=unknown 27919old_archive_cmds_CXX=$old_archive_cmds 27920reload_flag_CXX=$reload_flag 27921reload_cmds_CXX=$reload_cmds 27922no_undefined_flag_CXX= 27923whole_archive_flag_spec_CXX= 27924enable_shared_with_static_runtimes_CXX=no 27925 27926# Source file extension for C++ test sources. 27927ac_ext=cpp 27928 27929# Object file extension for compiled C++ test sources. 27930objext=o 27931objext_CXX=$objext 27932 27933# No sense in running all these tests if we already determined that 27934# the CXX compiler isn't working. Some variables (like enable_shared) 27935# are currently assumed to apply to all compilers on this platform, 27936# and will be corrupted by setting them based on a non-working compiler. 27937if test yes != "$_lt_caught_CXX_error"; then 27938 # Code to be used in simple compile tests 27939 lt_simple_compile_test_code="int some_variable = 0;" 27940 27941 # Code to be used in simple link tests 27942 lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 27943 27944 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 27945 27946 27947 27948 27949 27950 27951# If no C compiler was specified, use CC. 27952LTCC=${LTCC-"$CC"} 27953 27954# If no C compiler flags were specified, use CFLAGS. 27955LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 27956 27957# Allow CC to be a program name with arguments. 27958compiler=$CC 27959 27960 27961 # save warnings/boilerplate of simple test code 27962 ac_outfile=conftest.$ac_objext 27963echo "$lt_simple_compile_test_code" >conftest.$ac_ext 27964eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 27965_lt_compiler_boilerplate=`cat conftest.err` 27966$RM conftest* 27967 27968 ac_outfile=conftest.$ac_objext 27969echo "$lt_simple_link_test_code" >conftest.$ac_ext 27970eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 27971_lt_linker_boilerplate=`cat conftest.err` 27972$RM -r conftest* 27973 27974 27975 # Allow CC to be a program name with arguments. 27976 lt_save_CC=$CC 27977 lt_save_CFLAGS=$CFLAGS 27978 lt_save_LD=$LD 27979 lt_save_GCC=$GCC 27980 GCC=$GXX 27981 lt_save_with_gnu_ld=$with_gnu_ld 27982 lt_save_path_LD=$lt_cv_path_LD 27983 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 27984 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 27985 else 27986 $as_unset lt_cv_prog_gnu_ld 27987 fi 27988 if test -n "${lt_cv_path_LDCXX+set}"; then 27989 lt_cv_path_LD=$lt_cv_path_LDCXX 27990 else 27991 $as_unset lt_cv_path_LD 27992 fi 27993 test -z "${LDCXX+set}" || LD=$LDCXX 27994 CC=${CXX-"c++"} 27995 CFLAGS=$CXXFLAGS 27996 compiler=$CC 27997 compiler_CXX=$CC 27998 func_cc_basename $compiler 27999cc_basename=$func_cc_basename_result 28000 28001 28002 if test -n "$compiler"; then 28003 # We don't want -fno-exception when compiling C++ code, so set the 28004 # no_builtin_flag separately 28005 if test yes = "$GXX"; then 28006 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 28007 else 28008 lt_prog_compiler_no_builtin_flag_CXX= 28009 fi 28010 28011 if test yes = "$GXX"; then 28012 # Set up default GNU C++ configuration 28013 28014 28015 28016# Check whether --with-gnu-ld was given. 28017if test "${with_gnu_ld+set}" = set; then : 28018 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 28019else 28020 with_gnu_ld=no 28021fi 28022 28023ac_prog=ld 28024if test yes = "$GCC"; then 28025 # Check if gcc -print-prog-name=ld gives a path. 28026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 28027$as_echo_n "checking for ld used by $CC... " >&6; } 28028 case $host in 28029 *-*-mingw*) 28030 # gcc leaves a trailing carriage return, which upsets mingw 28031 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 28032 *) 28033 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 28034 esac 28035 case $ac_prog in 28036 # Accept absolute paths. 28037 [\\/]* | ?:[\\/]*) 28038 re_direlt='/[^/][^/]*/\.\./' 28039 # Canonicalize the pathname of ld 28040 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 28041 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 28042 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 28043 done 28044 test -z "$LD" && LD=$ac_prog 28045 ;; 28046 "") 28047 # If it fails, then pretend we aren't using GCC. 28048 ac_prog=ld 28049 ;; 28050 *) 28051 # If it is relative, then search for the first ld in PATH. 28052 with_gnu_ld=unknown 28053 ;; 28054 esac 28055elif test yes = "$with_gnu_ld"; then 28056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 28057$as_echo_n "checking for GNU ld... " >&6; } 28058else 28059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 28060$as_echo_n "checking for non-GNU ld... " >&6; } 28061fi 28062if ${lt_cv_path_LD+:} false; then : 28063 $as_echo_n "(cached) " >&6 28064else 28065 if test -z "$LD"; then 28066 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 28067 for ac_dir in $PATH; do 28068 IFS=$lt_save_ifs 28069 test -z "$ac_dir" && ac_dir=. 28070 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 28071 lt_cv_path_LD=$ac_dir/$ac_prog 28072 # Check to see if the program is GNU ld. I'd rather use --version, 28073 # but apparently some variants of GNU ld only accept -v. 28074 # Break only if it was the GNU/non-GNU ld that we prefer. 28075 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 28076 *GNU* | *'with BFD'*) 28077 test no != "$with_gnu_ld" && break 28078 ;; 28079 *) 28080 test yes != "$with_gnu_ld" && break 28081 ;; 28082 esac 28083 fi 28084 done 28085 IFS=$lt_save_ifs 28086else 28087 lt_cv_path_LD=$LD # Let the user override the test with a path. 28088fi 28089fi 28090 28091LD=$lt_cv_path_LD 28092if test -n "$LD"; then 28093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 28094$as_echo "$LD" >&6; } 28095else 28096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28097$as_echo "no" >&6; } 28098fi 28099test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 28100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 28101$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 28102if ${lt_cv_prog_gnu_ld+:} false; then : 28103 $as_echo_n "(cached) " >&6 28104else 28105 # I'd rather use --version here, but apparently some GNU lds only accept -v. 28106case `$LD -v 2>&1 </dev/null` in 28107*GNU* | *'with BFD'*) 28108 lt_cv_prog_gnu_ld=yes 28109 ;; 28110*) 28111 lt_cv_prog_gnu_ld=no 28112 ;; 28113esac 28114fi 28115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 28116$as_echo "$lt_cv_prog_gnu_ld" >&6; } 28117with_gnu_ld=$lt_cv_prog_gnu_ld 28118 28119 28120 28121 28122 28123 28124 28125 # Check if GNU C++ uses GNU ld as the underlying linker, since the 28126 # archiving commands below assume that GNU ld is being used. 28127 if test yes = "$with_gnu_ld"; then 28128 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 28129 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' 28130 28131 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 28132 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 28133 28134 # If archive_cmds runs LD, not CC, wlarc should be empty 28135 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 28136 # investigate it a little bit more. (MM) 28137 wlarc='$wl' 28138 28139 # ancient GNU ld didn't support --whole-archive et. al. 28140 if eval "`$CC -print-prog-name=ld` --help 2>&1" | 28141 $GREP 'no-whole-archive' > /dev/null; then 28142 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 28143 else 28144 whole_archive_flag_spec_CXX= 28145 fi 28146 else 28147 with_gnu_ld=no 28148 wlarc= 28149 28150 # A generic and very simple default shared library creation 28151 # command for GNU C++ for the case where it uses the native 28152 # linker, instead of GNU ld. If possible, this setting should 28153 # overridden to take advantage of the native linker features on 28154 # the platform it is being used on. 28155 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 28156 fi 28157 28158 # Commands to make compiler produce verbose output that lists 28159 # what "hidden" libraries, object files and flags are used when 28160 # linking a shared library. 28161 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 28162 28163 else 28164 GXX=no 28165 with_gnu_ld=no 28166 wlarc= 28167 fi 28168 28169 # PORTME: fill in a description of your system's C++ link characteristics 28170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 28171$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 28172 ld_shlibs_CXX=yes 28173 case $host_os in 28174 aix3*) 28175 # FIXME: insert proper C++ library support 28176 ld_shlibs_CXX=no 28177 ;; 28178 aix[4-9]*) 28179 if test ia64 = "$host_cpu"; then 28180 # On IA64, the linker does run time linking by default, so we don't 28181 # have to do anything special. 28182 aix_use_runtimelinking=no 28183 exp_sym_flag='-Bexport' 28184 no_entry_flag= 28185 else 28186 aix_use_runtimelinking=no 28187 28188 # Test if we are trying to use run time linking or normal 28189 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 28190 # have runtime linking enabled, and use it for executables. 28191 # For shared libraries, we enable/disable runtime linking 28192 # depending on the kind of the shared library created - 28193 # when "with_aix_soname,aix_use_runtimelinking" is: 28194 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 28195 # "aix,yes" lib.so shared, rtl:yes, for executables 28196 # lib.a static archive 28197 # "both,no" lib.so.V(shr.o) shared, rtl:yes 28198 # lib.a(lib.so.V) shared, rtl:no, for executables 28199 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 28200 # lib.a(lib.so.V) shared, rtl:no 28201 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 28202 # lib.a static archive 28203 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 28204 for ld_flag in $LDFLAGS; do 28205 case $ld_flag in 28206 *-brtl*) 28207 aix_use_runtimelinking=yes 28208 break 28209 ;; 28210 esac 28211 done 28212 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 28213 # With aix-soname=svr4, we create the lib.so.V shared archives only, 28214 # so we don't have lib.a shared libs to link our executables. 28215 # We have to force runtime linking in this case. 28216 aix_use_runtimelinking=yes 28217 LDFLAGS="$LDFLAGS -Wl,-brtl" 28218 fi 28219 ;; 28220 esac 28221 28222 exp_sym_flag='-bexport' 28223 no_entry_flag='-bnoentry' 28224 fi 28225 28226 # When large executables or shared objects are built, AIX ld can 28227 # have problems creating the table of contents. If linking a library 28228 # or program results in "error TOC overflow" add -mminimal-toc to 28229 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 28230 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 28231 28232 archive_cmds_CXX='' 28233 hardcode_direct_CXX=yes 28234 hardcode_direct_absolute_CXX=yes 28235 hardcode_libdir_separator_CXX=':' 28236 link_all_deplibs_CXX=yes 28237 file_list_spec_CXX='$wl-f,' 28238 case $with_aix_soname,$aix_use_runtimelinking in 28239 aix,*) ;; # no import file 28240 svr4,* | *,yes) # use import file 28241 # The Import File defines what to hardcode. 28242 hardcode_direct_CXX=no 28243 hardcode_direct_absolute_CXX=no 28244 ;; 28245 esac 28246 28247 if test yes = "$GXX"; then 28248 case $host_os in aix4.[012]|aix4.[012].*) 28249 # We only want to do this on AIX 4.2 and lower, the check 28250 # below for broken collect2 doesn't work under 4.3+ 28251 collect2name=`$CC -print-prog-name=collect2` 28252 if test -f "$collect2name" && 28253 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 28254 then 28255 # We have reworked collect2 28256 : 28257 else 28258 # We have old collect2 28259 hardcode_direct_CXX=unsupported 28260 # It fails to find uninstalled libraries when the uninstalled 28261 # path is not listed in the libpath. Setting hardcode_minus_L 28262 # to unsupported forces relinking 28263 hardcode_minus_L_CXX=yes 28264 hardcode_libdir_flag_spec_CXX='-L$libdir' 28265 hardcode_libdir_separator_CXX= 28266 fi 28267 esac 28268 shared_flag='-shared' 28269 if test yes = "$aix_use_runtimelinking"; then 28270 shared_flag=$shared_flag' $wl-G' 28271 fi 28272 # Need to ensure runtime linking is disabled for the traditional 28273 # shared library, or the linker may eventually find shared libraries 28274 # /with/ Import File - we do not want to mix them. 28275 shared_flag_aix='-shared' 28276 shared_flag_svr4='-shared $wl-G' 28277 else 28278 # not using gcc 28279 if test ia64 = "$host_cpu"; then 28280 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 28281 # chokes on -Wl,-G. The following line is correct: 28282 shared_flag='-G' 28283 else 28284 if test yes = "$aix_use_runtimelinking"; then 28285 shared_flag='$wl-G' 28286 else 28287 shared_flag='$wl-bM:SRE' 28288 fi 28289 shared_flag_aix='$wl-bM:SRE' 28290 shared_flag_svr4='$wl-G' 28291 fi 28292 fi 28293 28294 export_dynamic_flag_spec_CXX='$wl-bexpall' 28295 # It seems that -bexpall does not export symbols beginning with 28296 # underscore (_), so it is better to generate a list of symbols to 28297 # export. 28298 always_export_symbols_CXX=yes 28299 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 28300 # Warning - without using the other runtime loading flags (-brtl), 28301 # -berok will link without error, but may produce a broken library. 28302 # The "-G" linker flag allows undefined symbols. 28303 no_undefined_flag_CXX='-bernotok' 28304 # Determine the default libpath from the value encoded in an empty 28305 # executable. 28306 if test set = "${lt_cv_aix_libpath+set}"; then 28307 aix_libpath=$lt_cv_aix_libpath 28308else 28309 if ${lt_cv_aix_libpath__CXX+:} false; then : 28310 $as_echo_n "(cached) " >&6 28311else 28312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28313/* end confdefs.h. */ 28314 28315int 28316main () 28317{ 28318 28319 ; 28320 return 0; 28321} 28322_ACEOF 28323if ac_fn_cxx_try_link "$LINENO"; then : 28324 28325 lt_aix_libpath_sed=' 28326 /Import File Strings/,/^$/ { 28327 /^0/ { 28328 s/^0 *\([^ ]*\) *$/\1/ 28329 p 28330 } 28331 }' 28332 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 28333 # Check for a 64-bit object if we didn't find anything. 28334 if test -z "$lt_cv_aix_libpath__CXX"; then 28335 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 28336 fi 28337fi 28338rm -f core conftest.err conftest.$ac_objext \ 28339 conftest$ac_exeext conftest.$ac_ext 28340 if test -z "$lt_cv_aix_libpath__CXX"; then 28341 lt_cv_aix_libpath__CXX=/usr/lib:/lib 28342 fi 28343 28344fi 28345 28346 aix_libpath=$lt_cv_aix_libpath__CXX 28347fi 28348 28349 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" 28350 28351 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag 28352 else 28353 if test ia64 = "$host_cpu"; then 28354 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib' 28355 allow_undefined_flag_CXX="-z nodefs" 28356 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" 28357 else 28358 # Determine the default libpath from the value encoded in an 28359 # empty executable. 28360 if test set = "${lt_cv_aix_libpath+set}"; then 28361 aix_libpath=$lt_cv_aix_libpath 28362else 28363 if ${lt_cv_aix_libpath__CXX+:} false; then : 28364 $as_echo_n "(cached) " >&6 28365else 28366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28367/* end confdefs.h. */ 28368 28369int 28370main () 28371{ 28372 28373 ; 28374 return 0; 28375} 28376_ACEOF 28377if ac_fn_cxx_try_link "$LINENO"; then : 28378 28379 lt_aix_libpath_sed=' 28380 /Import File Strings/,/^$/ { 28381 /^0/ { 28382 s/^0 *\([^ ]*\) *$/\1/ 28383 p 28384 } 28385 }' 28386 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 28387 # Check for a 64-bit object if we didn't find anything. 28388 if test -z "$lt_cv_aix_libpath__CXX"; then 28389 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 28390 fi 28391fi 28392rm -f core conftest.err conftest.$ac_objext \ 28393 conftest$ac_exeext conftest.$ac_ext 28394 if test -z "$lt_cv_aix_libpath__CXX"; then 28395 lt_cv_aix_libpath__CXX=/usr/lib:/lib 28396 fi 28397 28398fi 28399 28400 aix_libpath=$lt_cv_aix_libpath__CXX 28401fi 28402 28403 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" 28404 # Warning - without using the other run time loading flags, 28405 # -berok will link without error, but may produce a broken library. 28406 no_undefined_flag_CXX=' $wl-bernotok' 28407 allow_undefined_flag_CXX=' $wl-berok' 28408 if test yes = "$with_gnu_ld"; then 28409 # We only use this code for GNU lds that support --whole-archive. 28410 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' 28411 else 28412 # Exported symbols can be pulled into shared objects from archives 28413 whole_archive_flag_spec_CXX='$convenience' 28414 fi 28415 archive_cmds_need_lc_CXX=yes 28416 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 28417 # -brtl affects multiple linker settings, -berok does not and is overridden later 28418 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 28419 if test svr4 != "$with_aix_soname"; then 28420 # This is similar to how AIX traditionally builds its shared 28421 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS. 28422 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' 28423 fi 28424 if test aix != "$with_aix_soname"; then 28425 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' 28426 else 28427 # used by -dlpreopen to get the symbols 28428 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 28429 fi 28430 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d' 28431 fi 28432 fi 28433 ;; 28434 28435 beos*) 28436 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 28437 allow_undefined_flag_CXX=unsupported 28438 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 28439 # support --undefined. This deserves some investigation. FIXME 28440 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 28441 else 28442 ld_shlibs_CXX=no 28443 fi 28444 ;; 28445 28446 chorus*) 28447 case $cc_basename in 28448 *) 28449 # FIXME: insert proper C++ library support 28450 ld_shlibs_CXX=no 28451 ;; 28452 esac 28453 ;; 28454 28455 cygwin* | mingw* | pw32* | cegcc*) 28456 case $GXX,$cc_basename in 28457 ,cl* | no,cl*) 28458 # Native MSVC 28459 # hardcode_libdir_flag_spec is actually meaningless, as there is 28460 # no search path for DLLs. 28461 hardcode_libdir_flag_spec_CXX=' ' 28462 allow_undefined_flag_CXX=unsupported 28463 always_export_symbols_CXX=yes 28464 file_list_spec_CXX='@' 28465 # Tell ltmain to make .lib files, not .a files. 28466 libext=lib 28467 # Tell ltmain to make .dll files, not .so files. 28468 shrext_cmds=.dll 28469 # FIXME: Setting linknames here is a bad hack. 28470 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 28471 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 28472 cp "$export_symbols" "$output_objdir/$soname.def"; 28473 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 28474 else 28475 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 28476 fi~ 28477 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 28478 linknames=' 28479 # The linker will not automatically build a static lib if we build a DLL. 28480 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true' 28481 enable_shared_with_static_runtimes_CXX=yes 28482 # Don't use ranlib 28483 old_postinstall_cmds_CXX='chmod 644 $oldlib' 28484 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~ 28485 lt_tool_outputfile="@TOOL_OUTPUT@"~ 28486 case $lt_outputfile in 28487 *.exe|*.EXE) ;; 28488 *) 28489 lt_outputfile=$lt_outputfile.exe 28490 lt_tool_outputfile=$lt_tool_outputfile.exe 28491 ;; 28492 esac~ 28493 func_to_tool_file "$lt_outputfile"~ 28494 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 28495 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 28496 $RM "$lt_outputfile.manifest"; 28497 fi' 28498 ;; 28499 *) 28500 # g++ 28501 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 28502 # as there is no search path for DLLs. 28503 hardcode_libdir_flag_spec_CXX='-L$libdir' 28504 export_dynamic_flag_spec_CXX='$wl--export-all-symbols' 28505 allow_undefined_flag_CXX=unsupported 28506 always_export_symbols_CXX=no 28507 enable_shared_with_static_runtimes_CXX=yes 28508 28509 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 28510 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' 28511 # If the export-symbols file already is a .def file, use it as 28512 # is; otherwise, prepend EXPORTS... 28513 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 28514 cp $export_symbols $output_objdir/$soname.def; 28515 else 28516 echo EXPORTS > $output_objdir/$soname.def; 28517 cat $export_symbols >> $output_objdir/$soname.def; 28518 fi~ 28519 $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' 28520 else 28521 ld_shlibs_CXX=no 28522 fi 28523 ;; 28524 esac 28525 ;; 28526 darwin* | rhapsody*) 28527 28528 28529 archive_cmds_need_lc_CXX=no 28530 hardcode_direct_CXX=no 28531 hardcode_automatic_CXX=yes 28532 hardcode_shlibpath_var_CXX=unsupported 28533 if test yes = "$lt_cv_ld_force_load"; then 28534 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\"`' 28535 28536 else 28537 whole_archive_flag_spec_CXX='' 28538 fi 28539 link_all_deplibs_CXX=yes 28540 allow_undefined_flag_CXX=$_lt_dar_allow_undefined 28541 case $cc_basename in 28542 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 28543 *) _lt_dar_can_shared=$GCC ;; 28544 esac 28545 if test yes = "$_lt_dar_can_shared"; then 28546 output_verbose_link_cmd=func_echo_all 28547 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" 28548 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 28549 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" 28550 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" 28551 if test yes != "$lt_cv_apple_cc_single_mod"; then 28552 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" 28553 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" 28554 fi 28555 28556 else 28557 ld_shlibs_CXX=no 28558 fi 28559 28560 ;; 28561 28562 os2*) 28563 hardcode_libdir_flag_spec_CXX='-L$libdir' 28564 hardcode_minus_L_CXX=yes 28565 allow_undefined_flag_CXX=unsupported 28566 shrext_cmds=.dll 28567 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 28568 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 28569 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 28570 $ECHO EXPORTS >> $output_objdir/$libname.def~ 28571 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 28572 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 28573 emximp -o $lib $output_objdir/$libname.def' 28574 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 28575 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 28576 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 28577 $ECHO EXPORTS >> $output_objdir/$libname.def~ 28578 prefix_cmds="$SED"~ 28579 if test EXPORTS = "`$SED 1q $export_symbols`"; then 28580 prefix_cmds="$prefix_cmds -e 1d"; 28581 fi~ 28582 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 28583 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 28584 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 28585 emximp -o $lib $output_objdir/$libname.def' 28586 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 28587 enable_shared_with_static_runtimes_CXX=yes 28588 ;; 28589 28590 dgux*) 28591 case $cc_basename in 28592 ec++*) 28593 # FIXME: insert proper C++ library support 28594 ld_shlibs_CXX=no 28595 ;; 28596 ghcx*) 28597 # Green Hills C++ Compiler 28598 # FIXME: insert proper C++ library support 28599 ld_shlibs_CXX=no 28600 ;; 28601 *) 28602 # FIXME: insert proper C++ library support 28603 ld_shlibs_CXX=no 28604 ;; 28605 esac 28606 ;; 28607 28608 freebsd2.*) 28609 # C++ shared libraries reported to be fairly broken before 28610 # switch to ELF 28611 ld_shlibs_CXX=no 28612 ;; 28613 28614 freebsd-elf*) 28615 archive_cmds_need_lc_CXX=no 28616 ;; 28617 28618 freebsd* | dragonfly*) 28619 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 28620 # conventions 28621 ld_shlibs_CXX=yes 28622 ;; 28623 28624 haiku*) 28625 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 28626 link_all_deplibs_CXX=yes 28627 ;; 28628 28629 hpux9*) 28630 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' 28631 hardcode_libdir_separator_CXX=: 28632 export_dynamic_flag_spec_CXX='$wl-E' 28633 hardcode_direct_CXX=yes 28634 hardcode_minus_L_CXX=yes # Not in the search PATH, 28635 # but as the default 28636 # location of the library. 28637 28638 case $cc_basename in 28639 CC*) 28640 # FIXME: insert proper C++ library support 28641 ld_shlibs_CXX=no 28642 ;; 28643 aCC*) 28644 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 "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 28645 # Commands to make compiler produce verbose output that lists 28646 # what "hidden" libraries, object files and flags are used when 28647 # linking a shared library. 28648 # 28649 # There doesn't appear to be a way to prevent this compiler from 28650 # explicitly linking system object files so we need to strip them 28651 # from the output so that they don't get included in the library 28652 # dependencies. 28653 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"' 28654 ;; 28655 *) 28656 if test yes = "$GXX"; then 28657 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 "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 28658 else 28659 # FIXME: insert proper C++ library support 28660 ld_shlibs_CXX=no 28661 fi 28662 ;; 28663 esac 28664 ;; 28665 28666 hpux10*|hpux11*) 28667 if test no = "$with_gnu_ld"; then 28668 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' 28669 hardcode_libdir_separator_CXX=: 28670 28671 case $host_cpu in 28672 hppa*64*|ia64*) 28673 ;; 28674 *) 28675 export_dynamic_flag_spec_CXX='$wl-E' 28676 ;; 28677 esac 28678 fi 28679 case $host_cpu in 28680 hppa*64*|ia64*) 28681 hardcode_direct_CXX=no 28682 hardcode_shlibpath_var_CXX=no 28683 ;; 28684 *) 28685 hardcode_direct_CXX=yes 28686 hardcode_direct_absolute_CXX=yes 28687 hardcode_minus_L_CXX=yes # Not in the search PATH, 28688 # but as the default 28689 # location of the library. 28690 ;; 28691 esac 28692 28693 case $cc_basename in 28694 CC*) 28695 # FIXME: insert proper C++ library support 28696 ld_shlibs_CXX=no 28697 ;; 28698 aCC*) 28699 case $host_cpu in 28700 hppa*64*) 28701 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 28702 ;; 28703 ia64*) 28704 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 28705 ;; 28706 *) 28707 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 28708 ;; 28709 esac 28710 # Commands to make compiler produce verbose output that lists 28711 # what "hidden" libraries, object files and flags are used when 28712 # linking a shared library. 28713 # 28714 # There doesn't appear to be a way to prevent this compiler from 28715 # explicitly linking system object files so we need to strip them 28716 # from the output so that they don't get included in the library 28717 # dependencies. 28718 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"' 28719 ;; 28720 *) 28721 if test yes = "$GXX"; then 28722 if test no = "$with_gnu_ld"; then 28723 case $host_cpu in 28724 hppa*64*) 28725 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 28726 ;; 28727 ia64*) 28728 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 28729 ;; 28730 *) 28731 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' 28732 ;; 28733 esac 28734 fi 28735 else 28736 # FIXME: insert proper C++ library support 28737 ld_shlibs_CXX=no 28738 fi 28739 ;; 28740 esac 28741 ;; 28742 28743 interix[3-9]*) 28744 hardcode_direct_CXX=no 28745 hardcode_shlibpath_var_CXX=no 28746 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 28747 export_dynamic_flag_spec_CXX='$wl-E' 28748 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 28749 # Instead, shared libraries are loaded at an image base (0x10000000 by 28750 # default) and relocated if they conflict, which is a slow very memory 28751 # consuming and fragmenting process. To avoid this, we pick a random, 28752 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 28753 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 28754 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' 28755 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' 28756 ;; 28757 irix5* | irix6*) 28758 case $cc_basename in 28759 CC*) 28760 # SGI C++ 28761 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' 28762 28763 # Archives containing C++ object files must be created using 28764 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 28765 # necessary to make sure instantiated templates are included 28766 # in the archive. 28767 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 28768 ;; 28769 *) 28770 if test yes = "$GXX"; then 28771 if test no = "$with_gnu_ld"; then 28772 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' 28773 else 28774 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' 28775 fi 28776 fi 28777 link_all_deplibs_CXX=yes 28778 ;; 28779 esac 28780 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 28781 hardcode_libdir_separator_CXX=: 28782 inherit_rpath_CXX=yes 28783 ;; 28784 28785 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 28786 case $cc_basename in 28787 KCC*) 28788 # Kuck and Associates, Inc. (KAI) C++ Compiler 28789 28790 # KCC will only create a shared library if the output file 28791 # ends with ".so" (or ".sl" for HP-UX), so rename the library 28792 # to its proper name (with version) after linking. 28793 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' 28794 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' 28795 # Commands to make compiler produce verbose output that lists 28796 # what "hidden" libraries, object files and flags are used when 28797 # linking a shared library. 28798 # 28799 # There doesn't appear to be a way to prevent this compiler from 28800 # explicitly linking system object files so we need to strip them 28801 # from the output so that they don't get included in the library 28802 # dependencies. 28803 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"' 28804 28805 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 28806 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 28807 28808 # Archives containing C++ object files must be created using 28809 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 28810 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 28811 ;; 28812 icpc* | ecpc* ) 28813 # Intel C++ 28814 with_gnu_ld=yes 28815 # version 8.0 and above of icpc choke on multiply defined symbols 28816 # if we add $predep_objects and $postdep_objects, however 7.1 and 28817 # earlier do not add the objects themselves. 28818 case `$CC -V 2>&1` in 28819 *"Version 7."*) 28820 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 28821 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' 28822 ;; 28823 *) # Version 8.0 or newer 28824 tmp_idyn= 28825 case $host_cpu in 28826 ia64*) tmp_idyn=' -i_dynamic';; 28827 esac 28828 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 28829 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' 28830 ;; 28831 esac 28832 archive_cmds_need_lc_CXX=no 28833 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 28834 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 28835 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' 28836 ;; 28837 pgCC* | pgcpp*) 28838 # Portland Group C++ compiler 28839 case `$CC -V` in 28840 *pgCC\ [1-5].* | *pgcpp\ [1-5].*) 28841 prelink_cmds_CXX='tpldir=Template.dir~ 28842 rm -rf $tpldir~ 28843 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 28844 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' 28845 old_archive_cmds_CXX='tpldir=Template.dir~ 28846 rm -rf $tpldir~ 28847 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 28848 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ 28849 $RANLIB $oldlib' 28850 archive_cmds_CXX='tpldir=Template.dir~ 28851 rm -rf $tpldir~ 28852 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 28853 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 28854 archive_expsym_cmds_CXX='tpldir=Template.dir~ 28855 rm -rf $tpldir~ 28856 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 28857 $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' 28858 ;; 28859 *) # Version 6 and above use weak symbols 28860 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 28861 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' 28862 ;; 28863 esac 28864 28865 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir' 28866 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 28867 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' 28868 ;; 28869 cxx*) 28870 # Compaq C++ 28871 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 28872 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' 28873 28874 runpath_var=LD_RUN_PATH 28875 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 28876 hardcode_libdir_separator_CXX=: 28877 28878 # Commands to make compiler produce verbose output that lists 28879 # what "hidden" libraries, object files and flags are used when 28880 # linking a shared library. 28881 # 28882 # There doesn't appear to be a way to prevent this compiler from 28883 # explicitly linking system object files so we need to strip them 28884 # from the output so that they don't get included in the library 28885 # dependencies. 28886 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' 28887 ;; 28888 xl* | mpixl* | bgxl*) 28889 # IBM XL 8.0 on PPC, with GNU ld 28890 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 28891 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 28892 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 28893 if test yes = "$supports_anon_versioning"; then 28894 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ 28895 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 28896 echo "local: *; };" >> $output_objdir/$libname.ver~ 28897 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 28898 fi 28899 ;; 28900 *) 28901 case `$CC -V 2>&1 | sed 5q` in 28902 *Sun\ C*) 28903 # Sun C++ 5.9 28904 no_undefined_flag_CXX=' -zdefs' 28905 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 28906 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' 28907 hardcode_libdir_flag_spec_CXX='-R$libdir' 28908 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' 28909 compiler_needs_object_CXX=yes 28910 28911 # Not sure whether something based on 28912 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 28913 # would be better. 28914 output_verbose_link_cmd='func_echo_all' 28915 28916 # Archives containing C++ object files must be created using 28917 # "CC -xar", where "CC" is the Sun C++ compiler. This is 28918 # necessary to make sure instantiated templates are included 28919 # in the archive. 28920 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 28921 ;; 28922 esac 28923 ;; 28924 esac 28925 ;; 28926 28927 lynxos*) 28928 # FIXME: insert proper C++ library support 28929 ld_shlibs_CXX=no 28930 ;; 28931 28932 m88k*) 28933 # FIXME: insert proper C++ library support 28934 ld_shlibs_CXX=no 28935 ;; 28936 28937 mvs*) 28938 case $cc_basename in 28939 cxx*) 28940 # FIXME: insert proper C++ library support 28941 ld_shlibs_CXX=no 28942 ;; 28943 *) 28944 # FIXME: insert proper C++ library support 28945 ld_shlibs_CXX=no 28946 ;; 28947 esac 28948 ;; 28949 28950 netbsd*) 28951 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 28952 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 28953 wlarc= 28954 hardcode_libdir_flag_spec_CXX='-R$libdir' 28955 hardcode_direct_CXX=yes 28956 hardcode_shlibpath_var_CXX=no 28957 fi 28958 # Workaround some broken pre-1.5 toolchains 28959 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 28960 ;; 28961 28962 *nto* | *qnx*) 28963 ld_shlibs_CXX=yes 28964 ;; 28965 28966 openbsd* | bitrig*) 28967 if test -f /usr/libexec/ld.so; then 28968 hardcode_direct_CXX=yes 28969 hardcode_shlibpath_var_CXX=no 28970 hardcode_direct_absolute_CXX=yes 28971 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 28972 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 28973 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then 28974 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib' 28975 export_dynamic_flag_spec_CXX='$wl-E' 28976 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 28977 fi 28978 output_verbose_link_cmd=func_echo_all 28979 else 28980 ld_shlibs_CXX=no 28981 fi 28982 ;; 28983 28984 osf3* | osf4* | osf5*) 28985 case $cc_basename in 28986 KCC*) 28987 # Kuck and Associates, Inc. (KAI) C++ Compiler 28988 28989 # KCC will only create a shared library if the output file 28990 # ends with ".so" (or ".sl" for HP-UX), so rename the library 28991 # to its proper name (with version) after linking. 28992 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' 28993 28994 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 28995 hardcode_libdir_separator_CXX=: 28996 28997 # Archives containing C++ object files must be created using 28998 # the KAI C++ compiler. 28999 case $host in 29000 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; 29001 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; 29002 esac 29003 ;; 29004 RCC*) 29005 # Rational C++ 2.4.1 29006 # FIXME: insert proper C++ library support 29007 ld_shlibs_CXX=no 29008 ;; 29009 cxx*) 29010 case $host in 29011 osf3*) 29012 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' 29013 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' 29014 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 29015 ;; 29016 *) 29017 allow_undefined_flag_CXX=' -expect_unresolved \*' 29018 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' 29019 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 29020 echo "-hidden">> $lib.exp~ 29021 $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~ 29022 $RM $lib.exp' 29023 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 29024 ;; 29025 esac 29026 29027 hardcode_libdir_separator_CXX=: 29028 29029 # Commands to make compiler produce verbose output that lists 29030 # what "hidden" libraries, object files and flags are used when 29031 # linking a shared library. 29032 # 29033 # There doesn't appear to be a way to prevent this compiler from 29034 # explicitly linking system object files so we need to strip them 29035 # from the output so that they don't get included in the library 29036 # dependencies. 29037 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"' 29038 ;; 29039 *) 29040 if test yes,no = "$GXX,$with_gnu_ld"; then 29041 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' 29042 case $host in 29043 osf3*) 29044 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' 29045 ;; 29046 *) 29047 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' 29048 ;; 29049 esac 29050 29051 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 29052 hardcode_libdir_separator_CXX=: 29053 29054 # Commands to make compiler produce verbose output that lists 29055 # what "hidden" libraries, object files and flags are used when 29056 # linking a shared library. 29057 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 29058 29059 else 29060 # FIXME: insert proper C++ library support 29061 ld_shlibs_CXX=no 29062 fi 29063 ;; 29064 esac 29065 ;; 29066 29067 psos*) 29068 # FIXME: insert proper C++ library support 29069 ld_shlibs_CXX=no 29070 ;; 29071 29072 sunos4*) 29073 case $cc_basename in 29074 CC*) 29075 # Sun C++ 4.x 29076 # FIXME: insert proper C++ library support 29077 ld_shlibs_CXX=no 29078 ;; 29079 lcc*) 29080 # Lucid 29081 # FIXME: insert proper C++ library support 29082 ld_shlibs_CXX=no 29083 ;; 29084 *) 29085 # FIXME: insert proper C++ library support 29086 ld_shlibs_CXX=no 29087 ;; 29088 esac 29089 ;; 29090 29091 solaris*) 29092 case $cc_basename in 29093 CC* | sunCC*) 29094 # Sun C++ 4.2, 5.x and Centerline C++ 29095 archive_cmds_need_lc_CXX=yes 29096 no_undefined_flag_CXX=' -zdefs' 29097 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 29098 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 29099 $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' 29100 29101 hardcode_libdir_flag_spec_CXX='-R$libdir' 29102 hardcode_shlibpath_var_CXX=no 29103 case $host_os in 29104 solaris2.[0-5] | solaris2.[0-5].*) ;; 29105 *) 29106 # The compiler driver will combine and reorder linker options, 29107 # but understands '-z linker_flag'. 29108 # Supported since Solaris 2.6 (maybe 2.5.1?) 29109 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 29110 ;; 29111 esac 29112 link_all_deplibs_CXX=yes 29113 29114 output_verbose_link_cmd='func_echo_all' 29115 29116 # Archives containing C++ object files must be created using 29117 # "CC -xar", where "CC" is the Sun C++ compiler. This is 29118 # necessary to make sure instantiated templates are included 29119 # in the archive. 29120 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 29121 ;; 29122 gcx*) 29123 # Green Hills C++ Compiler 29124 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 29125 29126 # The C++ compiler must be used to create the archive. 29127 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 29128 ;; 29129 *) 29130 # GNU C++ compiler with Solaris linker 29131 if test yes,no = "$GXX,$with_gnu_ld"; then 29132 no_undefined_flag_CXX=' $wl-z ${wl}defs' 29133 if $CC --version | $GREP -v '^2\.7' > /dev/null; then 29134 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 29135 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 29136 $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 29137 29138 # Commands to make compiler produce verbose output that lists 29139 # what "hidden" libraries, object files and flags are used when 29140 # linking a shared library. 29141 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 29142 else 29143 # g++ 2.7 appears to require '-G' NOT '-shared' on this 29144 # platform. 29145 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 29146 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 29147 $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 29148 29149 # Commands to make compiler produce verbose output that lists 29150 # what "hidden" libraries, object files and flags are used when 29151 # linking a shared library. 29152 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 29153 fi 29154 29155 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir' 29156 case $host_os in 29157 solaris2.[0-5] | solaris2.[0-5].*) ;; 29158 *) 29159 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 29160 ;; 29161 esac 29162 fi 29163 ;; 29164 esac 29165 ;; 29166 29167 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 29168 no_undefined_flag_CXX='$wl-z,text' 29169 archive_cmds_need_lc_CXX=no 29170 hardcode_shlibpath_var_CXX=no 29171 runpath_var='LD_RUN_PATH' 29172 29173 case $cc_basename in 29174 CC*) 29175 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 29176 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 29177 ;; 29178 *) 29179 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 29180 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 29181 ;; 29182 esac 29183 ;; 29184 29185 sysv5* | sco3.2v5* | sco5v6*) 29186 # Note: We CANNOT use -z defs as we might desire, because we do not 29187 # link with -lc, and that would cause any symbols used from libc to 29188 # always be unresolved, which means just about no library would 29189 # ever link correctly. If we're not using GNU ld we use -z text 29190 # though, which does catch some bad symbols but isn't as heavy-handed 29191 # as -z defs. 29192 no_undefined_flag_CXX='$wl-z,text' 29193 allow_undefined_flag_CXX='$wl-z,nodefs' 29194 archive_cmds_need_lc_CXX=no 29195 hardcode_shlibpath_var_CXX=no 29196 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir' 29197 hardcode_libdir_separator_CXX=':' 29198 link_all_deplibs_CXX=yes 29199 export_dynamic_flag_spec_CXX='$wl-Bexport' 29200 runpath_var='LD_RUN_PATH' 29201 29202 case $cc_basename in 29203 CC*) 29204 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 29205 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 29206 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ 29207 '"$old_archive_cmds_CXX" 29208 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ 29209 '"$reload_cmds_CXX" 29210 ;; 29211 *) 29212 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 29213 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 29214 ;; 29215 esac 29216 ;; 29217 29218 tandem*) 29219 case $cc_basename in 29220 NCC*) 29221 # NonStop-UX NCC 3.20 29222 # FIXME: insert proper C++ library support 29223 ld_shlibs_CXX=no 29224 ;; 29225 *) 29226 # FIXME: insert proper C++ library support 29227 ld_shlibs_CXX=no 29228 ;; 29229 esac 29230 ;; 29231 29232 vxworks*) 29233 # FIXME: insert proper C++ library support 29234 ld_shlibs_CXX=no 29235 ;; 29236 29237 *) 29238 # FIXME: insert proper C++ library support 29239 ld_shlibs_CXX=no 29240 ;; 29241 esac 29242 29243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 29244$as_echo "$ld_shlibs_CXX" >&6; } 29245 test no = "$ld_shlibs_CXX" && can_build_shared=no 29246 29247 GCC_CXX=$GXX 29248 LD_CXX=$LD 29249 29250 ## CAVEAT EMPTOR: 29251 ## There is no encapsulation within the following macros, do not change 29252 ## the running order or otherwise move them around unless you know exactly 29253 ## what you are doing... 29254 # Dependencies to place before and after the object being linked: 29255predep_objects_CXX= 29256postdep_objects_CXX= 29257predeps_CXX= 29258postdeps_CXX= 29259compiler_lib_search_path_CXX= 29260 29261cat > conftest.$ac_ext <<_LT_EOF 29262class Foo 29263{ 29264public: 29265 Foo (void) { a = 0; } 29266private: 29267 int a; 29268}; 29269_LT_EOF 29270 29271 29272_lt_libdeps_save_CFLAGS=$CFLAGS 29273case "$CC $CFLAGS " in #( 29274*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; 29275*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; 29276*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; 29277esac 29278 29279if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 29280 (eval $ac_compile) 2>&5 29281 ac_status=$? 29282 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29283 test $ac_status = 0; }; then 29284 # Parse the compiler output and extract the necessary 29285 # objects, libraries and library flags. 29286 29287 # Sentinel used to keep track of whether or not we are before 29288 # the conftest object file. 29289 pre_test_object_deps_done=no 29290 29291 for p in `eval "$output_verbose_link_cmd"`; do 29292 case $prev$p in 29293 29294 -L* | -R* | -l*) 29295 # Some compilers place space between "-{L,R}" and the path. 29296 # Remove the space. 29297 if test x-L = "$p" || 29298 test x-R = "$p"; then 29299 prev=$p 29300 continue 29301 fi 29302 29303 # Expand the sysroot to ease extracting the directories later. 29304 if test -z "$prev"; then 29305 case $p in 29306 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; 29307 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; 29308 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; 29309 esac 29310 fi 29311 case $p in 29312 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; 29313 esac 29314 if test no = "$pre_test_object_deps_done"; then 29315 case $prev in 29316 -L | -R) 29317 # Internal compiler library paths should come after those 29318 # provided the user. The postdeps already come after the 29319 # user supplied libs so there is no need to process them. 29320 if test -z "$compiler_lib_search_path_CXX"; then 29321 compiler_lib_search_path_CXX=$prev$p 29322 else 29323 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p" 29324 fi 29325 ;; 29326 # The "-l" case would never come before the object being 29327 # linked, so don't bother handling this case. 29328 esac 29329 else 29330 if test -z "$postdeps_CXX"; then 29331 postdeps_CXX=$prev$p 29332 else 29333 postdeps_CXX="${postdeps_CXX} $prev$p" 29334 fi 29335 fi 29336 prev= 29337 ;; 29338 29339 *.lto.$objext) ;; # Ignore GCC LTO objects 29340 *.$objext) 29341 # This assumes that the test object file only shows up 29342 # once in the compiler output. 29343 if test "$p" = "conftest.$objext"; then 29344 pre_test_object_deps_done=yes 29345 continue 29346 fi 29347 29348 if test no = "$pre_test_object_deps_done"; then 29349 if test -z "$predep_objects_CXX"; then 29350 predep_objects_CXX=$p 29351 else 29352 predep_objects_CXX="$predep_objects_CXX $p" 29353 fi 29354 else 29355 if test -z "$postdep_objects_CXX"; then 29356 postdep_objects_CXX=$p 29357 else 29358 postdep_objects_CXX="$postdep_objects_CXX $p" 29359 fi 29360 fi 29361 ;; 29362 29363 *) ;; # Ignore the rest. 29364 29365 esac 29366 done 29367 29368 # Clean up. 29369 rm -f a.out a.exe 29370else 29371 echo "libtool.m4: error: problem compiling CXX test program" 29372fi 29373 29374$RM -f confest.$objext 29375CFLAGS=$_lt_libdeps_save_CFLAGS 29376 29377# PORTME: override above test on systems where it is broken 29378case $host_os in 29379interix[3-9]*) 29380 # Interix 3.5 installs completely hosed .la files for C++, so rather than 29381 # hack all around it, let's just trust "g++" to DTRT. 29382 predep_objects_CXX= 29383 postdep_objects_CXX= 29384 postdeps_CXX= 29385 ;; 29386esac 29387 29388 29389case " $postdeps_CXX " in 29390*" -lc "*) archive_cmds_need_lc_CXX=no ;; 29391esac 29392 compiler_lib_search_dirs_CXX= 29393if test -n "${compiler_lib_search_path_CXX}"; then 29394 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'` 29395fi 29396 29397 29398 29399 29400 29401 29402 29403 29404 29405 29406 29407 29408 29409 29410 29411 29412 29413 29414 29415 29416 29417 29418 29419 29420 29421 29422 29423 29424 29425 29426 29427 lt_prog_compiler_wl_CXX= 29428lt_prog_compiler_pic_CXX= 29429lt_prog_compiler_static_CXX= 29430 29431 29432 # C++ specific cases for pic, static, wl, etc. 29433 if test yes = "$GXX"; then 29434 lt_prog_compiler_wl_CXX='-Wl,' 29435 lt_prog_compiler_static_CXX='-static' 29436 29437 case $host_os in 29438 aix*) 29439 # All AIX code is PIC. 29440 if test ia64 = "$host_cpu"; then 29441 # AIX 5 now supports IA64 processor 29442 lt_prog_compiler_static_CXX='-Bstatic' 29443 fi 29444 lt_prog_compiler_pic_CXX='-fPIC' 29445 ;; 29446 29447 amigaos*) 29448 case $host_cpu in 29449 powerpc) 29450 # see comment about AmigaOS4 .so support 29451 lt_prog_compiler_pic_CXX='-fPIC' 29452 ;; 29453 m68k) 29454 # FIXME: we need at least 68020 code to build shared libraries, but 29455 # adding the '-m68020' flag to GCC prevents building anything better, 29456 # like '-m68040'. 29457 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 29458 ;; 29459 esac 29460 ;; 29461 29462 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 29463 # PIC is the default for these OSes. 29464 ;; 29465 mingw* | cygwin* | os2* | pw32* | cegcc*) 29466 # This hack is so that the source file can tell whether it is being 29467 # built for inclusion in a dll (and should export symbols for example). 29468 # Although the cygwin gcc ignores -fPIC, still need this for old-style 29469 # (--disable-auto-import) libraries 29470 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 29471 case $host_os in 29472 os2*) 29473 lt_prog_compiler_static_CXX='$wl-static' 29474 ;; 29475 esac 29476 ;; 29477 darwin* | rhapsody*) 29478 # PIC is the default on this platform 29479 # Common symbols not allowed in MH_DYLIB files 29480 lt_prog_compiler_pic_CXX='-fno-common' 29481 ;; 29482 *djgpp*) 29483 # DJGPP does not support shared libraries at all 29484 lt_prog_compiler_pic_CXX= 29485 ;; 29486 haiku*) 29487 # PIC is the default for Haiku. 29488 # The "-static" flag exists, but is broken. 29489 lt_prog_compiler_static_CXX= 29490 ;; 29491 interix[3-9]*) 29492 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 29493 # Instead, we relocate shared libraries at runtime. 29494 ;; 29495 sysv4*MP*) 29496 if test -d /usr/nec; then 29497 lt_prog_compiler_pic_CXX=-Kconform_pic 29498 fi 29499 ;; 29500 hpux*) 29501 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 29502 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 29503 # sets the default TLS model and affects inlining. 29504 case $host_cpu in 29505 hppa*64*) 29506 ;; 29507 *) 29508 lt_prog_compiler_pic_CXX='-fPIC' 29509 ;; 29510 esac 29511 ;; 29512 *qnx* | *nto*) 29513 # QNX uses GNU C++, but need to define -shared option too, otherwise 29514 # it will coredump. 29515 lt_prog_compiler_pic_CXX='-fPIC -shared' 29516 ;; 29517 *) 29518 lt_prog_compiler_pic_CXX='-fPIC' 29519 ;; 29520 esac 29521 else 29522 case $host_os in 29523 aix[4-9]*) 29524 # All AIX code is PIC. 29525 if test ia64 = "$host_cpu"; then 29526 # AIX 5 now supports IA64 processor 29527 lt_prog_compiler_static_CXX='-Bstatic' 29528 else 29529 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 29530 fi 29531 ;; 29532 chorus*) 29533 case $cc_basename in 29534 cxch68*) 29535 # Green Hills C++ Compiler 29536 # _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" 29537 ;; 29538 esac 29539 ;; 29540 mingw* | cygwin* | os2* | pw32* | cegcc*) 29541 # This hack is so that the source file can tell whether it is being 29542 # built for inclusion in a dll (and should export symbols for example). 29543 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 29544 ;; 29545 dgux*) 29546 case $cc_basename in 29547 ec++*) 29548 lt_prog_compiler_pic_CXX='-KPIC' 29549 ;; 29550 ghcx*) 29551 # Green Hills C++ Compiler 29552 lt_prog_compiler_pic_CXX='-pic' 29553 ;; 29554 *) 29555 ;; 29556 esac 29557 ;; 29558 freebsd* | dragonfly*) 29559 # FreeBSD uses GNU C++ 29560 ;; 29561 hpux9* | hpux10* | hpux11*) 29562 case $cc_basename in 29563 CC*) 29564 lt_prog_compiler_wl_CXX='-Wl,' 29565 lt_prog_compiler_static_CXX='$wl-a ${wl}archive' 29566 if test ia64 != "$host_cpu"; then 29567 lt_prog_compiler_pic_CXX='+Z' 29568 fi 29569 ;; 29570 aCC*) 29571 lt_prog_compiler_wl_CXX='-Wl,' 29572 lt_prog_compiler_static_CXX='$wl-a ${wl}archive' 29573 case $host_cpu in 29574 hppa*64*|ia64*) 29575 # +Z the default 29576 ;; 29577 *) 29578 lt_prog_compiler_pic_CXX='+Z' 29579 ;; 29580 esac 29581 ;; 29582 *) 29583 ;; 29584 esac 29585 ;; 29586 interix*) 29587 # This is c89, which is MS Visual C++ (no shared libs) 29588 # Anyone wants to do a port? 29589 ;; 29590 irix5* | irix6* | nonstopux*) 29591 case $cc_basename in 29592 CC*) 29593 lt_prog_compiler_wl_CXX='-Wl,' 29594 lt_prog_compiler_static_CXX='-non_shared' 29595 # CC pic flag -KPIC is the default. 29596 ;; 29597 *) 29598 ;; 29599 esac 29600 ;; 29601 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 29602 case $cc_basename in 29603 KCC*) 29604 # KAI C++ Compiler 29605 lt_prog_compiler_wl_CXX='--backend -Wl,' 29606 lt_prog_compiler_pic_CXX='-fPIC' 29607 ;; 29608 ecpc* ) 29609 # old Intel C++ for x86_64, which still supported -KPIC. 29610 lt_prog_compiler_wl_CXX='-Wl,' 29611 lt_prog_compiler_pic_CXX='-KPIC' 29612 lt_prog_compiler_static_CXX='-static' 29613 ;; 29614 icpc* ) 29615 # Intel C++, used to be incompatible with GCC. 29616 # ICC 10 doesn't accept -KPIC any more. 29617 lt_prog_compiler_wl_CXX='-Wl,' 29618 lt_prog_compiler_pic_CXX='-fPIC' 29619 lt_prog_compiler_static_CXX='-static' 29620 ;; 29621 pgCC* | pgcpp*) 29622 # Portland Group C++ compiler 29623 lt_prog_compiler_wl_CXX='-Wl,' 29624 lt_prog_compiler_pic_CXX='-fpic' 29625 lt_prog_compiler_static_CXX='-Bstatic' 29626 ;; 29627 cxx*) 29628 # Compaq C++ 29629 # Make sure the PIC flag is empty. It appears that all Alpha 29630 # Linux and Compaq Tru64 Unix objects are PIC. 29631 lt_prog_compiler_pic_CXX= 29632 lt_prog_compiler_static_CXX='-non_shared' 29633 ;; 29634 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) 29635 # IBM XL 8.0, 9.0 on PPC and BlueGene 29636 lt_prog_compiler_wl_CXX='-Wl,' 29637 lt_prog_compiler_pic_CXX='-qpic' 29638 lt_prog_compiler_static_CXX='-qstaticlink' 29639 ;; 29640 *) 29641 case `$CC -V 2>&1 | sed 5q` in 29642 *Sun\ C*) 29643 # Sun C++ 5.9 29644 lt_prog_compiler_pic_CXX='-KPIC' 29645 lt_prog_compiler_static_CXX='-Bstatic' 29646 lt_prog_compiler_wl_CXX='-Qoption ld ' 29647 ;; 29648 esac 29649 ;; 29650 esac 29651 ;; 29652 lynxos*) 29653 ;; 29654 m88k*) 29655 ;; 29656 mvs*) 29657 case $cc_basename in 29658 cxx*) 29659 lt_prog_compiler_pic_CXX='-W c,exportall' 29660 ;; 29661 *) 29662 ;; 29663 esac 29664 ;; 29665 netbsd*) 29666 ;; 29667 *qnx* | *nto*) 29668 # QNX uses GNU C++, but need to define -shared option too, otherwise 29669 # it will coredump. 29670 lt_prog_compiler_pic_CXX='-fPIC -shared' 29671 ;; 29672 osf3* | osf4* | osf5*) 29673 case $cc_basename in 29674 KCC*) 29675 lt_prog_compiler_wl_CXX='--backend -Wl,' 29676 ;; 29677 RCC*) 29678 # Rational C++ 2.4.1 29679 lt_prog_compiler_pic_CXX='-pic' 29680 ;; 29681 cxx*) 29682 # Digital/Compaq C++ 29683 lt_prog_compiler_wl_CXX='-Wl,' 29684 # Make sure the PIC flag is empty. It appears that all Alpha 29685 # Linux and Compaq Tru64 Unix objects are PIC. 29686 lt_prog_compiler_pic_CXX= 29687 lt_prog_compiler_static_CXX='-non_shared' 29688 ;; 29689 *) 29690 ;; 29691 esac 29692 ;; 29693 psos*) 29694 ;; 29695 solaris*) 29696 case $cc_basename in 29697 CC* | sunCC*) 29698 # Sun C++ 4.2, 5.x and Centerline C++ 29699 lt_prog_compiler_pic_CXX='-KPIC' 29700 lt_prog_compiler_static_CXX='-Bstatic' 29701 lt_prog_compiler_wl_CXX='-Qoption ld ' 29702 ;; 29703 gcx*) 29704 # Green Hills C++ Compiler 29705 lt_prog_compiler_pic_CXX='-PIC' 29706 ;; 29707 *) 29708 ;; 29709 esac 29710 ;; 29711 sunos4*) 29712 case $cc_basename in 29713 CC*) 29714 # Sun C++ 4.x 29715 lt_prog_compiler_pic_CXX='-pic' 29716 lt_prog_compiler_static_CXX='-Bstatic' 29717 ;; 29718 lcc*) 29719 # Lucid 29720 lt_prog_compiler_pic_CXX='-pic' 29721 ;; 29722 *) 29723 ;; 29724 esac 29725 ;; 29726 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 29727 case $cc_basename in 29728 CC*) 29729 lt_prog_compiler_wl_CXX='-Wl,' 29730 lt_prog_compiler_pic_CXX='-KPIC' 29731 lt_prog_compiler_static_CXX='-Bstatic' 29732 ;; 29733 esac 29734 ;; 29735 tandem*) 29736 case $cc_basename in 29737 NCC*) 29738 # NonStop-UX NCC 3.20 29739 lt_prog_compiler_pic_CXX='-KPIC' 29740 ;; 29741 *) 29742 ;; 29743 esac 29744 ;; 29745 vxworks*) 29746 ;; 29747 *) 29748 lt_prog_compiler_can_build_shared_CXX=no 29749 ;; 29750 esac 29751 fi 29752 29753case $host_os in 29754 # For platforms that do not support PIC, -DPIC is meaningless: 29755 *djgpp*) 29756 lt_prog_compiler_pic_CXX= 29757 ;; 29758 *) 29759 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 29760 ;; 29761esac 29762 29763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 29764$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 29765if ${lt_cv_prog_compiler_pic_CXX+:} false; then : 29766 $as_echo_n "(cached) " >&6 29767else 29768 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX 29769fi 29770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 29771$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; } 29772lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX 29773 29774# 29775# Check to make sure the PIC flag actually works. 29776# 29777if test -n "$lt_prog_compiler_pic_CXX"; then 29778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 29779$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } 29780if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then : 29781 $as_echo_n "(cached) " >&6 29782else 29783 lt_cv_prog_compiler_pic_works_CXX=no 29784 ac_outfile=conftest.$ac_objext 29785 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 29786 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment 29787 # Insert the option either (1) after the last *FLAGS variable, or 29788 # (2) before a word containing "conftest.", or (3) at the end. 29789 # Note that $ac_compile itself does not contain backslashes and begins 29790 # with a dollar sign (not a hyphen), so the echo should work correctly. 29791 # The option is referenced via a variable to avoid confusing sed. 29792 lt_compile=`echo "$ac_compile" | $SED \ 29793 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 29794 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 29795 -e 's:$: $lt_compiler_flag:'` 29796 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 29797 (eval "$lt_compile" 2>conftest.err) 29798 ac_status=$? 29799 cat conftest.err >&5 29800 echo "$as_me:$LINENO: \$? = $ac_status" >&5 29801 if (exit $ac_status) && test -s "$ac_outfile"; then 29802 # The compiler can only warn and ignore the option if not recognized 29803 # So say no if there are warnings other than the usual output. 29804 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 29805 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 29806 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 29807 lt_cv_prog_compiler_pic_works_CXX=yes 29808 fi 29809 fi 29810 $RM conftest* 29811 29812fi 29813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 29814$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } 29815 29816if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then 29817 case $lt_prog_compiler_pic_CXX in 29818 "" | " "*) ;; 29819 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 29820 esac 29821else 29822 lt_prog_compiler_pic_CXX= 29823 lt_prog_compiler_can_build_shared_CXX=no 29824fi 29825 29826fi 29827 29828 29829 29830 29831 29832# 29833# Check to make sure the static flag actually works. 29834# 29835wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 29836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 29837$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 29838if ${lt_cv_prog_compiler_static_works_CXX+:} false; then : 29839 $as_echo_n "(cached) " >&6 29840else 29841 lt_cv_prog_compiler_static_works_CXX=no 29842 save_LDFLAGS=$LDFLAGS 29843 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 29844 echo "$lt_simple_link_test_code" > conftest.$ac_ext 29845 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 29846 # The linker can only warn and ignore the option if not recognized 29847 # So say no if there are warnings 29848 if test -s conftest.err; then 29849 # Append any errors to the config.log. 29850 cat conftest.err 1>&5 29851 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 29852 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 29853 if diff conftest.exp conftest.er2 >/dev/null; then 29854 lt_cv_prog_compiler_static_works_CXX=yes 29855 fi 29856 else 29857 lt_cv_prog_compiler_static_works_CXX=yes 29858 fi 29859 fi 29860 $RM -r conftest* 29861 LDFLAGS=$save_LDFLAGS 29862 29863fi 29864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 29865$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } 29866 29867if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then 29868 : 29869else 29870 lt_prog_compiler_static_CXX= 29871fi 29872 29873 29874 29875 29876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 29877$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 29878if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 29879 $as_echo_n "(cached) " >&6 29880else 29881 lt_cv_prog_compiler_c_o_CXX=no 29882 $RM -r conftest 2>/dev/null 29883 mkdir conftest 29884 cd conftest 29885 mkdir out 29886 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 29887 29888 lt_compiler_flag="-o out/conftest2.$ac_objext" 29889 # Insert the option either (1) after the last *FLAGS variable, or 29890 # (2) before a word containing "conftest.", or (3) at the end. 29891 # Note that $ac_compile itself does not contain backslashes and begins 29892 # with a dollar sign (not a hyphen), so the echo should work correctly. 29893 lt_compile=`echo "$ac_compile" | $SED \ 29894 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 29895 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 29896 -e 's:$: $lt_compiler_flag:'` 29897 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 29898 (eval "$lt_compile" 2>out/conftest.err) 29899 ac_status=$? 29900 cat out/conftest.err >&5 29901 echo "$as_me:$LINENO: \$? = $ac_status" >&5 29902 if (exit $ac_status) && test -s out/conftest2.$ac_objext 29903 then 29904 # The compiler can only warn and ignore the option if not recognized 29905 # So say no if there are warnings 29906 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 29907 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 29908 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 29909 lt_cv_prog_compiler_c_o_CXX=yes 29910 fi 29911 fi 29912 chmod u+w . 2>&5 29913 $RM conftest* 29914 # SGI C++ compiler will create directory out/ii_files/ for 29915 # template instantiation 29916 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 29917 $RM out/* && rmdir out 29918 cd .. 29919 $RM -r conftest 29920 $RM conftest* 29921 29922fi 29923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 29924$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 29925 29926 29927 29928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 29929$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 29930if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 29931 $as_echo_n "(cached) " >&6 29932else 29933 lt_cv_prog_compiler_c_o_CXX=no 29934 $RM -r conftest 2>/dev/null 29935 mkdir conftest 29936 cd conftest 29937 mkdir out 29938 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 29939 29940 lt_compiler_flag="-o out/conftest2.$ac_objext" 29941 # Insert the option either (1) after the last *FLAGS variable, or 29942 # (2) before a word containing "conftest.", or (3) at the end. 29943 # Note that $ac_compile itself does not contain backslashes and begins 29944 # with a dollar sign (not a hyphen), so the echo should work correctly. 29945 lt_compile=`echo "$ac_compile" | $SED \ 29946 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 29947 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 29948 -e 's:$: $lt_compiler_flag:'` 29949 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 29950 (eval "$lt_compile" 2>out/conftest.err) 29951 ac_status=$? 29952 cat out/conftest.err >&5 29953 echo "$as_me:$LINENO: \$? = $ac_status" >&5 29954 if (exit $ac_status) && test -s out/conftest2.$ac_objext 29955 then 29956 # The compiler can only warn and ignore the option if not recognized 29957 # So say no if there are warnings 29958 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 29959 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 29960 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 29961 lt_cv_prog_compiler_c_o_CXX=yes 29962 fi 29963 fi 29964 chmod u+w . 2>&5 29965 $RM conftest* 29966 # SGI C++ compiler will create directory out/ii_files/ for 29967 # template instantiation 29968 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 29969 $RM out/* && rmdir out 29970 cd .. 29971 $RM -r conftest 29972 $RM conftest* 29973 29974fi 29975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 29976$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 29977 29978 29979 29980 29981hard_links=nottested 29982if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then 29983 # do not overwrite the value of need_locks provided by the user 29984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 29985$as_echo_n "checking if we can lock with hard links... " >&6; } 29986 hard_links=yes 29987 $RM conftest* 29988 ln conftest.a conftest.b 2>/dev/null && hard_links=no 29989 touch conftest.a 29990 ln conftest.a conftest.b 2>&5 || hard_links=no 29991 ln conftest.a conftest.b 2>/dev/null && hard_links=no 29992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 29993$as_echo "$hard_links" >&6; } 29994 if test no = "$hard_links"; then 29995 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 29996$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 29997 need_locks=warn 29998 fi 29999else 30000 need_locks=no 30001fi 30002 30003 30004 30005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 30006$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 30007 30008 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 30009 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 30010 case $host_os in 30011 aix[4-9]*) 30012 # If we're using GNU nm, then we don't want the "-C" option. 30013 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 30014 # Without the "-l" option, or with the "-B" option, AIX nm treats 30015 # weak defined symbols like other global defined symbols, whereas 30016 # GNU nm marks them as "W". 30017 # While the 'weak' keyword is ignored in the Export File, we need 30018 # it in the Import File for the 'aix-soname' feature, so we have 30019 # to replace the "-B" option with "-P" for AIX nm. 30020 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 30021 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' 30022 else 30023 export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' 30024 fi 30025 ;; 30026 pw32*) 30027 export_symbols_cmds_CXX=$ltdll_cmds 30028 ;; 30029 cygwin* | mingw* | cegcc*) 30030 case $cc_basename in 30031 cl*) 30032 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 30033 ;; 30034 *) 30035 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' 30036 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 30037 ;; 30038 esac 30039 ;; 30040 *) 30041 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 30042 ;; 30043 esac 30044 30045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 30046$as_echo "$ld_shlibs_CXX" >&6; } 30047test no = "$ld_shlibs_CXX" && can_build_shared=no 30048 30049with_gnu_ld_CXX=$with_gnu_ld 30050 30051 30052 30053 30054 30055 30056# 30057# Do we need to explicitly link libc? 30058# 30059case "x$archive_cmds_need_lc_CXX" in 30060x|xyes) 30061 # Assume -lc should be added 30062 archive_cmds_need_lc_CXX=yes 30063 30064 if test yes,yes = "$GCC,$enable_shared"; then 30065 case $archive_cmds_CXX in 30066 *'~'*) 30067 # FIXME: we may have to deal with multi-command sequences. 30068 ;; 30069 '$CC '*) 30070 # Test whether the compiler implicitly links with -lc since on some 30071 # systems, -lgcc has to come before -lc. If gcc already passes -lc 30072 # to ld, don't add -lc before -lgcc. 30073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 30074$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 30075if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then : 30076 $as_echo_n "(cached) " >&6 30077else 30078 $RM conftest* 30079 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 30080 30081 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 30082 (eval $ac_compile) 2>&5 30083 ac_status=$? 30084 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30085 test $ac_status = 0; } 2>conftest.err; then 30086 soname=conftest 30087 lib=conftest 30088 libobjs=conftest.$ac_objext 30089 deplibs= 30090 wl=$lt_prog_compiler_wl_CXX 30091 pic_flag=$lt_prog_compiler_pic_CXX 30092 compiler_flags=-v 30093 linker_flags=-v 30094 verstring= 30095 output_objdir=. 30096 libname=conftest 30097 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 30098 allow_undefined_flag_CXX= 30099 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 30100 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 30101 ac_status=$? 30102 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30103 test $ac_status = 0; } 30104 then 30105 lt_cv_archive_cmds_need_lc_CXX=no 30106 else 30107 lt_cv_archive_cmds_need_lc_CXX=yes 30108 fi 30109 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 30110 else 30111 cat conftest.err 1>&5 30112 fi 30113 $RM conftest* 30114 30115fi 30116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 30117$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } 30118 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX 30119 ;; 30120 esac 30121 fi 30122 ;; 30123esac 30124 30125 30126 30127 30128 30129 30130 30131 30132 30133 30134 30135 30136 30137 30138 30139 30140 30141 30142 30143 30144 30145 30146 30147 30148 30149 30150 30151 30152 30153 30154 30155 30156 30157 30158 30159 30160 30161 30162 30163 30164 30165 30166 30167 30168 30169 30170 30171 30172 30173 30174 30175 30176 30177 30178 30179 30180 30181 30182 30183 30184 30185 30186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 30187$as_echo_n "checking dynamic linker characteristics... " >&6; } 30188 30189library_names_spec= 30190libname_spec='lib$name' 30191soname_spec= 30192shrext_cmds=.so 30193postinstall_cmds= 30194postuninstall_cmds= 30195finish_cmds= 30196finish_eval= 30197shlibpath_var= 30198shlibpath_overrides_runpath=unknown 30199version_type=none 30200dynamic_linker="$host_os ld.so" 30201sys_lib_dlsearch_path_spec="/lib /usr/lib" 30202need_lib_prefix=unknown 30203hardcode_into_libs=no 30204 30205# when you set need_version to no, make sure it does not cause -set_version 30206# flags to be left without arguments 30207need_version=unknown 30208 30209 30210 30211case $host_os in 30212aix3*) 30213 version_type=linux # correct to gnu/linux during the next big refactor 30214 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 30215 shlibpath_var=LIBPATH 30216 30217 # AIX 3 has no versioning support, so we append a major version to the name. 30218 soname_spec='$libname$release$shared_ext$major' 30219 ;; 30220 30221aix[4-9]*) 30222 version_type=linux # correct to gnu/linux during the next big refactor 30223 need_lib_prefix=no 30224 need_version=no 30225 hardcode_into_libs=yes 30226 if test ia64 = "$host_cpu"; then 30227 # AIX 5 supports IA64 30228 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 30229 shlibpath_var=LD_LIBRARY_PATH 30230 else 30231 # With GCC up to 2.95.x, collect2 would create an import file 30232 # for dependence libraries. The import file would start with 30233 # the line '#! .'. This would cause the generated library to 30234 # depend on '.', always an invalid library. This was fixed in 30235 # development snapshots of GCC prior to 3.0. 30236 case $host_os in 30237 aix4 | aix4.[01] | aix4.[01].*) 30238 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 30239 echo ' yes ' 30240 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 30241 : 30242 else 30243 can_build_shared=no 30244 fi 30245 ;; 30246 esac 30247 # Using Import Files as archive members, it is possible to support 30248 # filename-based versioning of shared library archives on AIX. While 30249 # this would work for both with and without runtime linking, it will 30250 # prevent static linking of such archives. So we do filename-based 30251 # shared library versioning with .so extension only, which is used 30252 # when both runtime linking and shared linking is enabled. 30253 # Unfortunately, runtime linking may impact performance, so we do 30254 # not want this to be the default eventually. Also, we use the 30255 # versioned .so libs for executables only if there is the -brtl 30256 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 30257 # To allow for filename-based versioning support, we need to create 30258 # libNAME.so.V as an archive file, containing: 30259 # *) an Import File, referring to the versioned filename of the 30260 # archive as well as the shared archive member, telling the 30261 # bitwidth (32 or 64) of that shared object, and providing the 30262 # list of exported symbols of that shared object, eventually 30263 # decorated with the 'weak' keyword 30264 # *) the shared object with the F_LOADONLY flag set, to really avoid 30265 # it being seen by the linker. 30266 # At run time we better use the real file rather than another symlink, 30267 # but for link time we create the symlink libNAME.so -> libNAME.so.V 30268 30269 case $with_aix_soname,$aix_use_runtimelinking in 30270 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 30271 # soname into executable. Probably we can add versioning support to 30272 # collect2, so additional links can be useful in future. 30273 aix,yes) # traditional libtool 30274 dynamic_linker='AIX unversionable lib.so' 30275 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 30276 # instead of lib<name>.a to let people know that these are not 30277 # typical AIX shared libraries. 30278 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 30279 ;; 30280 aix,no) # traditional AIX only 30281 dynamic_linker='AIX lib.a(lib.so.V)' 30282 # We preserve .a as extension for shared libraries through AIX4.2 30283 # and later when we are not doing run time linking. 30284 library_names_spec='$libname$release.a $libname.a' 30285 soname_spec='$libname$release$shared_ext$major' 30286 ;; 30287 svr4,*) # full svr4 only 30288 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 30289 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 30290 # We do not specify a path in Import Files, so LIBPATH fires. 30291 shlibpath_overrides_runpath=yes 30292 ;; 30293 *,yes) # both, prefer svr4 30294 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 30295 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 30296 # unpreferred sharedlib libNAME.a needs extra handling 30297 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' 30298 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' 30299 # We do not specify a path in Import Files, so LIBPATH fires. 30300 shlibpath_overrides_runpath=yes 30301 ;; 30302 *,no) # both, prefer aix 30303 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 30304 library_names_spec='$libname$release.a $libname.a' 30305 soname_spec='$libname$release$shared_ext$major' 30306 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 30307 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' 30308 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' 30309 ;; 30310 esac 30311 shlibpath_var=LIBPATH 30312 fi 30313 ;; 30314 30315amigaos*) 30316 case $host_cpu in 30317 powerpc) 30318 # Since July 2007 AmigaOS4 officially supports .so libraries. 30319 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 30320 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 30321 ;; 30322 m68k) 30323 library_names_spec='$libname.ixlibrary $libname.a' 30324 # Create ${libname}_ixlibrary.a entries in /sys/libs. 30325 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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' 30326 ;; 30327 esac 30328 ;; 30329 30330beos*) 30331 library_names_spec='$libname$shared_ext' 30332 dynamic_linker="$host_os ld.so" 30333 shlibpath_var=LIBRARY_PATH 30334 ;; 30335 30336bsdi[45]*) 30337 version_type=linux # correct to gnu/linux during the next big refactor 30338 need_version=no 30339 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 30340 soname_spec='$libname$release$shared_ext$major' 30341 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 30342 shlibpath_var=LD_LIBRARY_PATH 30343 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 30344 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 30345 # the default ld.so.conf also contains /usr/contrib/lib and 30346 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 30347 # libtool to hard-code these into programs 30348 ;; 30349 30350cygwin* | mingw* | pw32* | cegcc*) 30351 version_type=windows 30352 shrext_cmds=.dll 30353 need_version=no 30354 need_lib_prefix=no 30355 30356 case $GCC,$cc_basename in 30357 yes,*) 30358 # gcc 30359 library_names_spec='$libname.dll.a' 30360 # DLL is installed to $(libdir)/../bin by postinstall_cmds 30361 postinstall_cmds='base_file=`basename \$file`~ 30362 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 30363 dldir=$destdir/`dirname \$dlpath`~ 30364 test -d \$dldir || mkdir -p \$dldir~ 30365 $install_prog $dir/$dlname \$dldir/$dlname~ 30366 chmod a+x \$dldir/$dlname~ 30367 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 30368 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 30369 fi' 30370 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 30371 dlpath=$dir/\$dldll~ 30372 $RM \$dlpath' 30373 shlibpath_overrides_runpath=yes 30374 30375 case $host_os in 30376 cygwin*) 30377 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 30378 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 30379 30380 ;; 30381 mingw* | cegcc*) 30382 # MinGW DLLs use traditional 'lib' prefix 30383 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 30384 ;; 30385 pw32*) 30386 # pw32 DLLs use 'pw' prefix rather than 'lib' 30387 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 30388 ;; 30389 esac 30390 dynamic_linker='Win32 ld.exe' 30391 ;; 30392 30393 *,cl*) 30394 # Native MSVC 30395 libname_spec='$name' 30396 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 30397 library_names_spec='$libname.dll.lib' 30398 30399 case $build_os in 30400 mingw*) 30401 sys_lib_search_path_spec= 30402 lt_save_ifs=$IFS 30403 IFS=';' 30404 for lt_path in $LIB 30405 do 30406 IFS=$lt_save_ifs 30407 # Let DOS variable expansion print the short 8.3 style file name. 30408 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 30409 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 30410 done 30411 IFS=$lt_save_ifs 30412 # Convert to MSYS style. 30413 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 30414 ;; 30415 cygwin*) 30416 # Convert to unix form, then to dos form, then back to unix form 30417 # but this time dos style (no spaces!) so that the unix form looks 30418 # like /cygdrive/c/PROGRA~1:/cygdr... 30419 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 30420 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 30421 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 30422 ;; 30423 *) 30424 sys_lib_search_path_spec=$LIB 30425 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 30426 # It is most probably a Windows format PATH. 30427 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 30428 else 30429 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 30430 fi 30431 # FIXME: find the short name or the path components, as spaces are 30432 # common. (e.g. "Program Files" -> "PROGRA~1") 30433 ;; 30434 esac 30435 30436 # DLL is installed to $(libdir)/../bin by postinstall_cmds 30437 postinstall_cmds='base_file=`basename \$file`~ 30438 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 30439 dldir=$destdir/`dirname \$dlpath`~ 30440 test -d \$dldir || mkdir -p \$dldir~ 30441 $install_prog $dir/$dlname \$dldir/$dlname' 30442 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 30443 dlpath=$dir/\$dldll~ 30444 $RM \$dlpath' 30445 shlibpath_overrides_runpath=yes 30446 dynamic_linker='Win32 link.exe' 30447 ;; 30448 30449 *) 30450 # Assume MSVC wrapper 30451 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 30452 dynamic_linker='Win32 ld.exe' 30453 ;; 30454 esac 30455 # FIXME: first we should search . and the directory the executable is in 30456 shlibpath_var=PATH 30457 ;; 30458 30459darwin* | rhapsody*) 30460 dynamic_linker="$host_os dyld" 30461 version_type=darwin 30462 need_lib_prefix=no 30463 need_version=no 30464 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 30465 soname_spec='$libname$release$major$shared_ext' 30466 shlibpath_overrides_runpath=yes 30467 shlibpath_var=DYLD_LIBRARY_PATH 30468 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 30469 30470 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 30471 ;; 30472 30473dgux*) 30474 version_type=linux # correct to gnu/linux during the next big refactor 30475 need_lib_prefix=no 30476 need_version=no 30477 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 30478 soname_spec='$libname$release$shared_ext$major' 30479 shlibpath_var=LD_LIBRARY_PATH 30480 ;; 30481 30482freebsd* | dragonfly*) 30483 # DragonFly does not have aout. When/if they implement a new 30484 # versioning mechanism, adjust this. 30485 if test -x /usr/bin/objformat; then 30486 objformat=`/usr/bin/objformat` 30487 else 30488 case $host_os in 30489 freebsd[23].*) objformat=aout ;; 30490 *) objformat=elf ;; 30491 esac 30492 fi 30493 version_type=freebsd-$objformat 30494 case $version_type in 30495 freebsd-elf*) 30496 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 30497 soname_spec='$libname$release$shared_ext$major' 30498 need_version=no 30499 need_lib_prefix=no 30500 ;; 30501 freebsd-*) 30502 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 30503 need_version=yes 30504 ;; 30505 esac 30506 shlibpath_var=LD_LIBRARY_PATH 30507 case $host_os in 30508 freebsd2.*) 30509 shlibpath_overrides_runpath=yes 30510 ;; 30511 freebsd3.[01]* | freebsdelf3.[01]*) 30512 shlibpath_overrides_runpath=yes 30513 hardcode_into_libs=yes 30514 ;; 30515 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 30516 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 30517 shlibpath_overrides_runpath=no 30518 hardcode_into_libs=yes 30519 ;; 30520 *) # from 4.6 on, and DragonFly 30521 shlibpath_overrides_runpath=yes 30522 hardcode_into_libs=yes 30523 ;; 30524 esac 30525 ;; 30526 30527haiku*) 30528 version_type=linux # correct to gnu/linux during the next big refactor 30529 need_lib_prefix=no 30530 need_version=no 30531 dynamic_linker="$host_os runtime_loader" 30532 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 30533 soname_spec='$libname$release$shared_ext$major' 30534 shlibpath_var=LIBRARY_PATH 30535 shlibpath_overrides_runpath=no 30536 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 30537 hardcode_into_libs=yes 30538 ;; 30539 30540hpux9* | hpux10* | hpux11*) 30541 # Give a soname corresponding to the major version so that dld.sl refuses to 30542 # link against other versions. 30543 version_type=sunos 30544 need_lib_prefix=no 30545 need_version=no 30546 case $host_cpu in 30547 ia64*) 30548 shrext_cmds='.so' 30549 hardcode_into_libs=yes 30550 dynamic_linker="$host_os dld.so" 30551 shlibpath_var=LD_LIBRARY_PATH 30552 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 30553 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 30554 soname_spec='$libname$release$shared_ext$major' 30555 if test 32 = "$HPUX_IA64_MODE"; then 30556 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 30557 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 30558 else 30559 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 30560 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 30561 fi 30562 ;; 30563 hppa*64*) 30564 shrext_cmds='.sl' 30565 hardcode_into_libs=yes 30566 dynamic_linker="$host_os dld.sl" 30567 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 30568 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 30569 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 30570 soname_spec='$libname$release$shared_ext$major' 30571 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 30572 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 30573 ;; 30574 *) 30575 shrext_cmds='.sl' 30576 dynamic_linker="$host_os dld.sl" 30577 shlibpath_var=SHLIB_PATH 30578 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 30579 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 30580 soname_spec='$libname$release$shared_ext$major' 30581 ;; 30582 esac 30583 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 30584 postinstall_cmds='chmod 555 $lib' 30585 # or fails outright, so override atomically: 30586 install_override_mode=555 30587 ;; 30588 30589interix[3-9]*) 30590 version_type=linux # correct to gnu/linux during the next big refactor 30591 need_lib_prefix=no 30592 need_version=no 30593 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 30594 soname_spec='$libname$release$shared_ext$major' 30595 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 30596 shlibpath_var=LD_LIBRARY_PATH 30597 shlibpath_overrides_runpath=no 30598 hardcode_into_libs=yes 30599 ;; 30600 30601irix5* | irix6* | nonstopux*) 30602 case $host_os in 30603 nonstopux*) version_type=nonstopux ;; 30604 *) 30605 if test yes = "$lt_cv_prog_gnu_ld"; then 30606 version_type=linux # correct to gnu/linux during the next big refactor 30607 else 30608 version_type=irix 30609 fi ;; 30610 esac 30611 need_lib_prefix=no 30612 need_version=no 30613 soname_spec='$libname$release$shared_ext$major' 30614 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 30615 case $host_os in 30616 irix5* | nonstopux*) 30617 libsuff= shlibsuff= 30618 ;; 30619 *) 30620 case $LD in # libtool.m4 will add one of these switches to LD 30621 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 30622 libsuff= shlibsuff= libmagic=32-bit;; 30623 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 30624 libsuff=32 shlibsuff=N32 libmagic=N32;; 30625 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 30626 libsuff=64 shlibsuff=64 libmagic=64-bit;; 30627 *) libsuff= shlibsuff= libmagic=never-match;; 30628 esac 30629 ;; 30630 esac 30631 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 30632 shlibpath_overrides_runpath=no 30633 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 30634 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 30635 hardcode_into_libs=yes 30636 ;; 30637 30638# No shared lib support for Linux oldld, aout, or coff. 30639linux*oldld* | linux*aout* | linux*coff*) 30640 dynamic_linker=no 30641 ;; 30642 30643linux*android*) 30644 version_type=none # Android doesn't support versioned libraries. 30645 need_lib_prefix=no 30646 need_version=no 30647 library_names_spec='$libname$release$shared_ext' 30648 soname_spec='$libname$release$shared_ext' 30649 finish_cmds= 30650 shlibpath_var=LD_LIBRARY_PATH 30651 shlibpath_overrides_runpath=yes 30652 30653 # This implies no fast_install, which is unacceptable. 30654 # Some rework will be needed to allow for fast_install 30655 # before this can be enabled. 30656 hardcode_into_libs=yes 30657 30658 dynamic_linker='Android linker' 30659 # Don't embed -rpath directories since the linker doesn't support them. 30660 hardcode_libdir_flag_spec_CXX='-L$libdir' 30661 ;; 30662 30663# This must be glibc/ELF. 30664linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 30665 version_type=linux # correct to gnu/linux during the next big refactor 30666 need_lib_prefix=no 30667 need_version=no 30668 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 30669 soname_spec='$libname$release$shared_ext$major' 30670 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 30671 shlibpath_var=LD_LIBRARY_PATH 30672 shlibpath_overrides_runpath=no 30673 30674 # Some binutils ld are patched to set DT_RUNPATH 30675 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 30676 $as_echo_n "(cached) " >&6 30677else 30678 lt_cv_shlibpath_overrides_runpath=no 30679 save_LDFLAGS=$LDFLAGS 30680 save_libdir=$libdir 30681 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ 30682 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" 30683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30684/* end confdefs.h. */ 30685 30686int 30687main () 30688{ 30689 30690 ; 30691 return 0; 30692} 30693_ACEOF 30694if ac_fn_cxx_try_link "$LINENO"; then : 30695 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 30696 lt_cv_shlibpath_overrides_runpath=yes 30697fi 30698fi 30699rm -f core conftest.err conftest.$ac_objext \ 30700 conftest$ac_exeext conftest.$ac_ext 30701 LDFLAGS=$save_LDFLAGS 30702 libdir=$save_libdir 30703 30704fi 30705 30706 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 30707 30708 # This implies no fast_install, which is unacceptable. 30709 # Some rework will be needed to allow for fast_install 30710 # before this can be enabled. 30711 hardcode_into_libs=yes 30712 30713 # Ideally, we could use ldconfig to report *all* directores which are 30714 # searched for libraries, however this is still not possible. Aside from not 30715 # being certain /sbin/ldconfig is available, command 30716 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 30717 # even though it is searched at run-time. Try to do the best guess by 30718 # appending ld.so.conf contents (and includes) to the search path. 30719 if test -f /etc/ld.so.conf; then 30720 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' ' '` 30721 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 30722 fi 30723 30724 # We used to test for /lib/ld.so.1 and disable shared libraries on 30725 # powerpc, because MkLinux only supported shared libraries with the 30726 # GNU dynamic linker. Since this was broken with cross compilers, 30727 # most powerpc-linux boxes support dynamic linking these days and 30728 # people can always --disable-shared, the test was removed, and we 30729 # assume the GNU/Linux dynamic linker is in use. 30730 dynamic_linker='GNU/Linux ld.so' 30731 ;; 30732 30733netbsd*) 30734 version_type=sunos 30735 need_lib_prefix=no 30736 need_version=no 30737 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 30738 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 30739 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 30740 dynamic_linker='NetBSD (a.out) ld.so' 30741 else 30742 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 30743 soname_spec='$libname$release$shared_ext$major' 30744 dynamic_linker='NetBSD ld.elf_so' 30745 fi 30746 shlibpath_var=LD_LIBRARY_PATH 30747 shlibpath_overrides_runpath=yes 30748 hardcode_into_libs=yes 30749 ;; 30750 30751newsos6) 30752 version_type=linux # correct to gnu/linux during the next big refactor 30753 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 30754 shlibpath_var=LD_LIBRARY_PATH 30755 shlibpath_overrides_runpath=yes 30756 ;; 30757 30758*nto* | *qnx*) 30759 version_type=qnx 30760 need_lib_prefix=no 30761 need_version=no 30762 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 30763 soname_spec='$libname$release$shared_ext$major' 30764 shlibpath_var=LD_LIBRARY_PATH 30765 shlibpath_overrides_runpath=no 30766 hardcode_into_libs=yes 30767 dynamic_linker='ldqnx.so' 30768 ;; 30769 30770openbsd* | bitrig*) 30771 version_type=sunos 30772 sys_lib_dlsearch_path_spec=/usr/lib 30773 need_lib_prefix=no 30774 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 30775 need_version=no 30776 else 30777 need_version=yes 30778 fi 30779 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 30780 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 30781 shlibpath_var=LD_LIBRARY_PATH 30782 shlibpath_overrides_runpath=yes 30783 ;; 30784 30785os2*) 30786 libname_spec='$name' 30787 version_type=windows 30788 shrext_cmds=.dll 30789 need_version=no 30790 need_lib_prefix=no 30791 # OS/2 can only load a DLL with a base name of 8 characters or less. 30792 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 30793 v=$($ECHO $release$versuffix | tr -d .-); 30794 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 30795 $ECHO $n$v`$shared_ext' 30796 library_names_spec='${libname}_dll.$libext' 30797 dynamic_linker='OS/2 ld.exe' 30798 shlibpath_var=BEGINLIBPATH 30799 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 30800 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 30801 postinstall_cmds='base_file=`basename \$file`~ 30802 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 30803 dldir=$destdir/`dirname \$dlpath`~ 30804 test -d \$dldir || mkdir -p \$dldir~ 30805 $install_prog $dir/$dlname \$dldir/$dlname~ 30806 chmod a+x \$dldir/$dlname~ 30807 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 30808 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 30809 fi' 30810 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 30811 dlpath=$dir/\$dldll~ 30812 $RM \$dlpath' 30813 ;; 30814 30815osf3* | osf4* | osf5*) 30816 version_type=osf 30817 need_lib_prefix=no 30818 need_version=no 30819 soname_spec='$libname$release$shared_ext$major' 30820 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 30821 shlibpath_var=LD_LIBRARY_PATH 30822 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 30823 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 30824 ;; 30825 30826rdos*) 30827 dynamic_linker=no 30828 ;; 30829 30830solaris*) 30831 version_type=linux # correct to gnu/linux during the next big refactor 30832 need_lib_prefix=no 30833 need_version=no 30834 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 30835 soname_spec='$libname$release$shared_ext$major' 30836 shlibpath_var=LD_LIBRARY_PATH 30837 shlibpath_overrides_runpath=yes 30838 hardcode_into_libs=yes 30839 # ldd complains unless libraries are executable 30840 postinstall_cmds='chmod +x $lib' 30841 ;; 30842 30843sunos4*) 30844 version_type=sunos 30845 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 30846 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 30847 shlibpath_var=LD_LIBRARY_PATH 30848 shlibpath_overrides_runpath=yes 30849 if test yes = "$with_gnu_ld"; then 30850 need_lib_prefix=no 30851 fi 30852 need_version=yes 30853 ;; 30854 30855sysv4 | sysv4.3*) 30856 version_type=linux # correct to gnu/linux during the next big refactor 30857 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 30858 soname_spec='$libname$release$shared_ext$major' 30859 shlibpath_var=LD_LIBRARY_PATH 30860 case $host_vendor in 30861 sni) 30862 shlibpath_overrides_runpath=no 30863 need_lib_prefix=no 30864 runpath_var=LD_RUN_PATH 30865 ;; 30866 siemens) 30867 need_lib_prefix=no 30868 ;; 30869 motorola) 30870 need_lib_prefix=no 30871 need_version=no 30872 shlibpath_overrides_runpath=no 30873 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 30874 ;; 30875 esac 30876 ;; 30877 30878sysv4*MP*) 30879 if test -d /usr/nec; then 30880 version_type=linux # correct to gnu/linux during the next big refactor 30881 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 30882 soname_spec='$libname$shared_ext.$major' 30883 shlibpath_var=LD_LIBRARY_PATH 30884 fi 30885 ;; 30886 30887sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 30888 version_type=sco 30889 need_lib_prefix=no 30890 need_version=no 30891 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 30892 soname_spec='$libname$release$shared_ext$major' 30893 shlibpath_var=LD_LIBRARY_PATH 30894 shlibpath_overrides_runpath=yes 30895 hardcode_into_libs=yes 30896 if test yes = "$with_gnu_ld"; then 30897 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 30898 else 30899 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 30900 case $host_os in 30901 sco3.2v5*) 30902 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 30903 ;; 30904 esac 30905 fi 30906 sys_lib_dlsearch_path_spec='/usr/lib' 30907 ;; 30908 30909tpf*) 30910 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 30911 version_type=linux # correct to gnu/linux during the next big refactor 30912 need_lib_prefix=no 30913 need_version=no 30914 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 30915 shlibpath_var=LD_LIBRARY_PATH 30916 shlibpath_overrides_runpath=no 30917 hardcode_into_libs=yes 30918 ;; 30919 30920uts4*) 30921 version_type=linux # correct to gnu/linux during the next big refactor 30922 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 30923 soname_spec='$libname$release$shared_ext$major' 30924 shlibpath_var=LD_LIBRARY_PATH 30925 ;; 30926 30927*) 30928 dynamic_linker=no 30929 ;; 30930esac 30931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 30932$as_echo "$dynamic_linker" >&6; } 30933test no = "$dynamic_linker" && can_build_shared=no 30934 30935variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 30936if test yes = "$GCC"; then 30937 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 30938fi 30939 30940if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 30941 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 30942fi 30943 30944if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 30945 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 30946fi 30947 30948# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 30949configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 30950 30951# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 30952func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 30953 30954# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 30955configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 30956 30957 30958 30959 30960 30961 30962 30963 30964 30965 30966 30967 30968 30969 30970 30971 30972 30973 30974 30975 30976 30977 30978 30979 30980 30981 30982 30983 30984 30985 30986 30987 30988 30989 30990 30991 30992 30993 30994 30995 30996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 30997$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 30998hardcode_action_CXX= 30999if test -n "$hardcode_libdir_flag_spec_CXX" || 31000 test -n "$runpath_var_CXX" || 31001 test yes = "$hardcode_automatic_CXX"; then 31002 31003 # We can hardcode non-existent directories. 31004 if test no != "$hardcode_direct_CXX" && 31005 # If the only mechanism to avoid hardcoding is shlibpath_var, we 31006 # have to relink, otherwise we might link with an installed library 31007 # when we should be linking with a yet-to-be-installed one 31008 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" && 31009 test no != "$hardcode_minus_L_CXX"; then 31010 # Linking always hardcodes the temporary library directory. 31011 hardcode_action_CXX=relink 31012 else 31013 # We can link without hardcoding, and we can hardcode nonexisting dirs. 31014 hardcode_action_CXX=immediate 31015 fi 31016else 31017 # We cannot hardcode anything, or else we can only hardcode existing 31018 # directories. 31019 hardcode_action_CXX=unsupported 31020fi 31021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 31022$as_echo "$hardcode_action_CXX" >&6; } 31023 31024if test relink = "$hardcode_action_CXX" || 31025 test yes = "$inherit_rpath_CXX"; then 31026 # Fast installation is not supported 31027 enable_fast_install=no 31028elif test yes = "$shlibpath_overrides_runpath" || 31029 test no = "$enable_shared"; then 31030 # Fast installation is not necessary 31031 enable_fast_install=needless 31032fi 31033 31034 31035 31036 31037 31038 31039 31040 fi # test -n "$compiler" 31041 31042 CC=$lt_save_CC 31043 CFLAGS=$lt_save_CFLAGS 31044 LDCXX=$LD 31045 LD=$lt_save_LD 31046 GCC=$lt_save_GCC 31047 with_gnu_ld=$lt_save_with_gnu_ld 31048 lt_cv_path_LDCXX=$lt_cv_path_LD 31049 lt_cv_path_LD=$lt_save_path_LD 31050 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 31051 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 31052fi # test yes != "$_lt_caught_CXX_error" 31053 31054ac_ext=c 31055ac_cpp='$CPP $CPPFLAGS' 31056ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 31057ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 31058ac_compiler_gnu=$ac_cv_c_compiler_gnu 31059 31060 31061 31062gta=false 31063 31064# Check whether --with-gtest was given. 31065if test "${with_gtest+set}" = set; then : 31066 withval=$with_gtest; try_gtest=$withval 31067else 31068 try_gtest=yes 31069 31070fi 31071 31072case "$try_gtest" in 31073 yes) 31074 # Extract the first word of "gtest-config", so it can be a program name with args. 31075set dummy gtest-config; ac_word=$2 31076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 31077$as_echo_n "checking for $ac_word... " >&6; } 31078if ${ac_cv_path_GTEST_CONFIG+:} false; then : 31079 $as_echo_n "(cached) " >&6 31080else 31081 case $GTEST_CONFIG in 31082 [\\/]* | ?:[\\/]*) 31083 ac_cv_path_GTEST_CONFIG="$GTEST_CONFIG" # Let the user override the test with a path. 31084 ;; 31085 *) 31086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 31087for as_dir in $PATH 31088do 31089 IFS=$as_save_IFS 31090 test -z "$as_dir" && as_dir=. 31091 for ac_exec_ext in '' $ac_executable_extensions; do 31092 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 31093 ac_cv_path_GTEST_CONFIG="$as_dir/$ac_word$ac_exec_ext" 31094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 31095 break 2 31096 fi 31097done 31098 done 31099IFS=$as_save_IFS 31100 31101 ;; 31102esac 31103fi 31104GTEST_CONFIG=$ac_cv_path_GTEST_CONFIG 31105if test -n "$GTEST_CONFIG"; then 31106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTEST_CONFIG" >&5 31107$as_echo "$GTEST_CONFIG" >&6; } 31108else 31109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31110$as_echo "no" >&6; } 31111fi 31112 31113 31114 { ac_cv_path_GTEST_CONFIG=; unset ac_cv_path_GTEST_CONFIG;} 31115 case x${GTEST_CONFIG} in 31116 x) ;; 31117 *) 31118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gtest version" >&5 31119$as_echo_n "checking gtest version... " >&6; } 31120 gtest_version_test=`$GTEST_CONFIG --min-version=1.5 || echo toolow` 31121 case "$gtest_version_test" in 31122 toolow*) 31123 ;; 31124 *) 31125 GTEST_LDFLAGS=`$GTEST_CONFIG --ldflags` 31126 GTEST_LIBS=`$GTEST_CONFIG --libs` 31127 GTEST_CXXFLAGS=`$GTEST_CONFIG --cxxflags` 31128 GTEST_CPPFLAGS=`$GTEST_CONFIG --cppflags` 31129 31130 31131 31132 31133 gta=true 31134 ;; 31135 esac 31136 gtest_version=`$GTEST_CONFIG --version` 31137 case "$gta" in 31138 true) 31139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ($gtest_version) ok" >&5 31140$as_echo "($gtest_version) ok" >&6; } 31141 ;; 31142 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: ($gtest_version) not ok" >&5 31143$as_echo "($gtest_version) not ok" >&6; } 31144 ;; 31145 esac 31146 { gtest_version_test=; unset gtest_version_test;} 31147 { gtest_version=; unset gtest_version;} 31148 esac 31149esac 31150 if $gta; then 31151 GTEST_AVAILABLE_TRUE= 31152 GTEST_AVAILABLE_FALSE='#' 31153else 31154 GTEST_AVAILABLE_TRUE='#' 31155 GTEST_AVAILABLE_FALSE= 31156fi 31157 31158 31159 31160 31161# All libraries should be in various LIB_* variables now. 31162#LIBS= 31163# Sadly not. There is a gettext() check somewhere, and on Solaris this pulls 31164# in -lintl -lgen, outside our "scope". 31165 31166ac_config_files="$ac_config_files Makefile" 31167 31168ac_config_files="$ac_config_files include/Makefile" 31169 31170ac_config_files="$ac_config_files scripts/Makefile" 31171 31172ac_config_files="$ac_config_files tests/Makefile" 31173 31174ac_config_files="$ac_config_files tests/fileHandlingTest.h" 31175 31176ac_config_files="$ac_config_files unity/Makefile" 31177 31178 31179cat >confcache <<\_ACEOF 31180# This file is a shell script that caches the results of configure 31181# tests run on this system so they can be shared between configure 31182# scripts and configure runs, see configure's option --config-cache. 31183# It is not useful on other systems. If it contains results you don't 31184# want to keep, you may remove or edit it. 31185# 31186# config.status only pays attention to the cache file if you give it 31187# the --recheck option to rerun configure. 31188# 31189# `ac_cv_env_foo' variables (set or unset) will be overridden when 31190# loading this file, other *unset* `ac_cv_foo' will be assigned the 31191# following values. 31192 31193_ACEOF 31194 31195# The following way of writing the cache mishandles newlines in values, 31196# but we know of no workaround that is simple, portable, and efficient. 31197# So, we kill variables containing newlines. 31198# Ultrix sh set writes to stderr and can't be redirected directly, 31199# and sets the high bit in the cache file unless we assign to the vars. 31200( 31201 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 31202 eval ac_val=\$$ac_var 31203 case $ac_val in #( 31204 *${as_nl}*) 31205 case $ac_var in #( 31206 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 31207$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 31208 esac 31209 case $ac_var in #( 31210 _ | IFS | as_nl) ;; #( 31211 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 31212 *) { eval $ac_var=; unset $ac_var;} ;; 31213 esac ;; 31214 esac 31215 done 31216 31217 (set) 2>&1 | 31218 case $as_nl`(ac_space=' '; set) 2>&1` in #( 31219 *${as_nl}ac_space=\ *) 31220 # `set' does not quote correctly, so add quotes: double-quote 31221 # substitution turns \\\\ into \\, and sed turns \\ into \. 31222 sed -n \ 31223 "s/'/'\\\\''/g; 31224 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 31225 ;; #( 31226 *) 31227 # `set' quotes correctly as required by POSIX, so do not add quotes. 31228 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 31229 ;; 31230 esac | 31231 sort 31232) | 31233 sed ' 31234 /^ac_cv_env_/b end 31235 t clear 31236 :clear 31237 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 31238 t end 31239 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 31240 :end' >>confcache 31241if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 31242 if test -w "$cache_file"; then 31243 if test "x$cache_file" != "x/dev/null"; then 31244 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 31245$as_echo "$as_me: updating cache $cache_file" >&6;} 31246 if test ! -f "$cache_file" || test -h "$cache_file"; then 31247 cat confcache >"$cache_file" 31248 else 31249 case $cache_file in #( 31250 */* | ?:*) 31251 mv -f confcache "$cache_file"$$ && 31252 mv -f "$cache_file"$$ "$cache_file" ;; #( 31253 *) 31254 mv -f confcache "$cache_file" ;; 31255 esac 31256 fi 31257 fi 31258 else 31259 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 31260$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 31261 fi 31262fi 31263rm -f confcache 31264 31265test "x$prefix" = xNONE && prefix=$ac_default_prefix 31266# Let make expand exec_prefix. 31267test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 31268 31269DEFS=-DHAVE_CONFIG_H 31270 31271ac_libobjs= 31272ac_ltlibobjs= 31273U= 31274for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 31275 # 1. Remove the extension, and $U if already installed. 31276 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 31277 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 31278 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 31279 # will be set to the directory where LIBOBJS objects are built. 31280 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 31281 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 31282done 31283LIBOBJS=$ac_libobjs 31284 31285LTLIBOBJS=$ac_ltlibobjs 31286 31287 31288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 31289$as_echo_n "checking that generated files are newer than configure... " >&6; } 31290 if test -n "$am_sleep_pid"; then 31291 # Hide warnings about reused PIDs. 31292 wait $am_sleep_pid 2>/dev/null 31293 fi 31294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 31295$as_echo "done" >&6; } 31296 if test -n "$EXEEXT"; then 31297 am__EXEEXT_TRUE= 31298 am__EXEEXT_FALSE='#' 31299else 31300 am__EXEEXT_TRUE='#' 31301 am__EXEEXT_FALSE= 31302fi 31303 31304if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 31305 as_fn_error $? "conditional \"AMDEP\" was never defined. 31306Usually this means the macro was only invoked conditionally." "$LINENO" 5 31307fi 31308if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 31309 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 31310Usually this means the macro was only invoked conditionally." "$LINENO" 5 31311fi 31312if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 31313 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 31314Usually this means the macro was only invoked conditionally." "$LINENO" 5 31315fi 31316 31317if test -z "${WANT_CALC_TICKADJ_MS_TRUE}" && test -z "${WANT_CALC_TICKADJ_MS_FALSE}"; then 31318 as_fn_error $? "conditional \"WANT_CALC_TICKADJ_MS\" was never defined. 31319Usually this means the macro was only invoked conditionally." "$LINENO" 5 31320fi 31321if test -z "${INSTALL_NTPSWEEP_TRUE}" && test -z "${INSTALL_NTPSWEEP_FALSE}"; then 31322 as_fn_error $? "conditional \"INSTALL_NTPSWEEP\" was never defined. 31323Usually this means the macro was only invoked conditionally." "$LINENO" 5 31324fi 31325if test -z "${INSTALL_UPDATE_LEAP_TRUE}" && test -z "${INSTALL_UPDATE_LEAP_FALSE}"; then 31326 as_fn_error $? "conditional \"INSTALL_UPDATE_LEAP\" was never defined. 31327Usually this means the macro was only invoked conditionally." "$LINENO" 5 31328fi 31329if test -z "${NTP_CROSSCOMPILE_TRUE}" && test -z "${NTP_CROSSCOMPILE_FALSE}"; then 31330 as_fn_error $? "conditional \"NTP_CROSSCOMPILE\" was never defined. 31331Usually this means the macro was only invoked conditionally." "$LINENO" 5 31332fi 31333if test -z "${PTHREADS_TRUE}" && test -z "${PTHREADS_FALSE}"; then 31334 as_fn_error $? "conditional \"PTHREADS\" was never defined. 31335Usually this means the macro was only invoked conditionally." "$LINENO" 5 31336fi 31337if test -z "${BUILD_SNTP_TRUE}" && test -z "${BUILD_SNTP_FALSE}"; then 31338 as_fn_error $? "conditional \"BUILD_SNTP\" was never defined. 31339Usually this means the macro was only invoked conditionally." "$LINENO" 5 31340fi 31341if test -z "${GL_GENERATE_STDNORETURN_H_TRUE}" && test -z "${GL_GENERATE_STDNORETURN_H_FALSE}"; then 31342 as_fn_error $? "conditional \"GL_GENERATE_STDNORETURN_H\" was never defined. 31343Usually this means the macro was only invoked conditionally." "$LINENO" 5 31344fi 31345if test -z "${INSTALL_LIBOPTS_TRUE}" && test -z "${INSTALL_LIBOPTS_FALSE}"; then 31346 as_fn_error $? "conditional \"INSTALL_LIBOPTS\" was never defined. 31347Usually this means the macro was only invoked conditionally." "$LINENO" 5 31348fi 31349if test -z "${NEED_LIBOPTS_TRUE}" && test -z "${NEED_LIBOPTS_FALSE}"; then 31350 as_fn_error $? "conditional \"NEED_LIBOPTS\" was never defined. 31351Usually this means the macro was only invoked conditionally." "$LINENO" 5 31352fi 31353if test -z "${BUILD_LIBEVENT_TRUE}" && test -z "${BUILD_LIBEVENT_FALSE}"; then 31354 as_fn_error $? "conditional \"BUILD_LIBEVENT\" was never defined. 31355Usually this means the macro was only invoked conditionally." "$LINENO" 5 31356fi 31357if test -z "${UNITYBUILD_AVAILABLE_TRUE}" && test -z "${UNITYBUILD_AVAILABLE_FALSE}"; then 31358 as_fn_error $? "conditional \"UNITYBUILD_AVAILABLE\" was never defined. 31359Usually this means the macro was only invoked conditionally." "$LINENO" 5 31360fi 31361if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 31362 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. 31363Usually this means the macro was only invoked conditionally." "$LINENO" 5 31364fi 31365if test -z "${GTEST_AVAILABLE_TRUE}" && test -z "${GTEST_AVAILABLE_FALSE}"; then 31366 as_fn_error $? "conditional \"GTEST_AVAILABLE\" was never defined. 31367Usually this means the macro was only invoked conditionally." "$LINENO" 5 31368fi 31369 31370: "${CONFIG_STATUS=./config.status}" 31371ac_write_fail=0 31372ac_clean_files_save=$ac_clean_files 31373ac_clean_files="$ac_clean_files $CONFIG_STATUS" 31374{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 31375$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 31376as_write_fail=0 31377cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 31378#! $SHELL 31379# Generated by $as_me. 31380# Run this file to recreate the current configuration. 31381# Compiler output produced by configure, useful for debugging 31382# configure, is in config.log if it exists. 31383 31384debug=false 31385ac_cs_recheck=false 31386ac_cs_silent=false 31387 31388SHELL=\${CONFIG_SHELL-$SHELL} 31389export SHELL 31390_ASEOF 31391cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 31392## -------------------- ## 31393## M4sh Initialization. ## 31394## -------------------- ## 31395 31396# Be more Bourne compatible 31397DUALCASE=1; export DUALCASE # for MKS sh 31398if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 31399 emulate sh 31400 NULLCMD=: 31401 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 31402 # is contrary to our usage. Disable this feature. 31403 alias -g '${1+"$@"}'='"$@"' 31404 setopt NO_GLOB_SUBST 31405else 31406 case `(set -o) 2>/dev/null` in #( 31407 *posix*) : 31408 set -o posix ;; #( 31409 *) : 31410 ;; 31411esac 31412fi 31413 31414 31415as_nl=' 31416' 31417export as_nl 31418# Printing a long string crashes Solaris 7 /usr/bin/printf. 31419as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 31420as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 31421as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 31422# Prefer a ksh shell builtin over an external printf program on Solaris, 31423# but without wasting forks for bash or zsh. 31424if test -z "$BASH_VERSION$ZSH_VERSION" \ 31425 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 31426 as_echo='print -r --' 31427 as_echo_n='print -rn --' 31428elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 31429 as_echo='printf %s\n' 31430 as_echo_n='printf %s' 31431else 31432 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 31433 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 31434 as_echo_n='/usr/ucb/echo -n' 31435 else 31436 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 31437 as_echo_n_body='eval 31438 arg=$1; 31439 case $arg in #( 31440 *"$as_nl"*) 31441 expr "X$arg" : "X\\(.*\\)$as_nl"; 31442 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 31443 esac; 31444 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 31445 ' 31446 export as_echo_n_body 31447 as_echo_n='sh -c $as_echo_n_body as_echo' 31448 fi 31449 export as_echo_body 31450 as_echo='sh -c $as_echo_body as_echo' 31451fi 31452 31453# The user is always right. 31454if test "${PATH_SEPARATOR+set}" != set; then 31455 PATH_SEPARATOR=: 31456 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 31457 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 31458 PATH_SEPARATOR=';' 31459 } 31460fi 31461 31462 31463# IFS 31464# We need space, tab and new line, in precisely that order. Quoting is 31465# there to prevent editors from complaining about space-tab. 31466# (If _AS_PATH_WALK were called with IFS unset, it would disable word 31467# splitting by setting IFS to empty value.) 31468IFS=" "" $as_nl" 31469 31470# Find who we are. Look in the path if we contain no directory separator. 31471as_myself= 31472case $0 in #(( 31473 *[\\/]* ) as_myself=$0 ;; 31474 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 31475for as_dir in $PATH 31476do 31477 IFS=$as_save_IFS 31478 test -z "$as_dir" && as_dir=. 31479 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 31480 done 31481IFS=$as_save_IFS 31482 31483 ;; 31484esac 31485# We did not find ourselves, most probably we were run as `sh COMMAND' 31486# in which case we are not to be found in the path. 31487if test "x$as_myself" = x; then 31488 as_myself=$0 31489fi 31490if test ! -f "$as_myself"; then 31491 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 31492 exit 1 31493fi 31494 31495# Unset variables that we do not need and which cause bugs (e.g. in 31496# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 31497# suppresses any "Segmentation fault" message there. '((' could 31498# trigger a bug in pdksh 5.2.14. 31499for as_var in BASH_ENV ENV MAIL MAILPATH 31500do eval test x\${$as_var+set} = xset \ 31501 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 31502done 31503PS1='$ ' 31504PS2='> ' 31505PS4='+ ' 31506 31507# NLS nuisances. 31508LC_ALL=C 31509export LC_ALL 31510LANGUAGE=C 31511export LANGUAGE 31512 31513# CDPATH. 31514(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 31515 31516 31517# as_fn_error STATUS ERROR [LINENO LOG_FD] 31518# ---------------------------------------- 31519# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 31520# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 31521# script with STATUS, using 1 if that was 0. 31522as_fn_error () 31523{ 31524 as_status=$1; test $as_status -eq 0 && as_status=1 31525 if test "$4"; then 31526 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 31527 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 31528 fi 31529 $as_echo "$as_me: error: $2" >&2 31530 as_fn_exit $as_status 31531} # as_fn_error 31532 31533 31534# as_fn_set_status STATUS 31535# ----------------------- 31536# Set $? to STATUS, without forking. 31537as_fn_set_status () 31538{ 31539 return $1 31540} # as_fn_set_status 31541 31542# as_fn_exit STATUS 31543# ----------------- 31544# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 31545as_fn_exit () 31546{ 31547 set +e 31548 as_fn_set_status $1 31549 exit $1 31550} # as_fn_exit 31551 31552# as_fn_unset VAR 31553# --------------- 31554# Portably unset VAR. 31555as_fn_unset () 31556{ 31557 { eval $1=; unset $1;} 31558} 31559as_unset=as_fn_unset 31560# as_fn_append VAR VALUE 31561# ---------------------- 31562# Append the text in VALUE to the end of the definition contained in VAR. Take 31563# advantage of any shell optimizations that allow amortized linear growth over 31564# repeated appends, instead of the typical quadratic growth present in naive 31565# implementations. 31566if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 31567 eval 'as_fn_append () 31568 { 31569 eval $1+=\$2 31570 }' 31571else 31572 as_fn_append () 31573 { 31574 eval $1=\$$1\$2 31575 } 31576fi # as_fn_append 31577 31578# as_fn_arith ARG... 31579# ------------------ 31580# Perform arithmetic evaluation on the ARGs, and store the result in the 31581# global $as_val. Take advantage of shells that can avoid forks. The arguments 31582# must be portable across $(()) and expr. 31583if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 31584 eval 'as_fn_arith () 31585 { 31586 as_val=$(( $* )) 31587 }' 31588else 31589 as_fn_arith () 31590 { 31591 as_val=`expr "$@" || test $? -eq 1` 31592 } 31593fi # as_fn_arith 31594 31595 31596if expr a : '\(a\)' >/dev/null 2>&1 && 31597 test "X`expr 00001 : '.*\(...\)'`" = X001; then 31598 as_expr=expr 31599else 31600 as_expr=false 31601fi 31602 31603if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 31604 as_basename=basename 31605else 31606 as_basename=false 31607fi 31608 31609if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 31610 as_dirname=dirname 31611else 31612 as_dirname=false 31613fi 31614 31615as_me=`$as_basename -- "$0" || 31616$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 31617 X"$0" : 'X\(//\)$' \| \ 31618 X"$0" : 'X\(/\)' \| . 2>/dev/null || 31619$as_echo X/"$0" | 31620 sed '/^.*\/\([^/][^/]*\)\/*$/{ 31621 s//\1/ 31622 q 31623 } 31624 /^X\/\(\/\/\)$/{ 31625 s//\1/ 31626 q 31627 } 31628 /^X\/\(\/\).*/{ 31629 s//\1/ 31630 q 31631 } 31632 s/.*/./; q'` 31633 31634# Avoid depending upon Character Ranges. 31635as_cr_letters='abcdefghijklmnopqrstuvwxyz' 31636as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 31637as_cr_Letters=$as_cr_letters$as_cr_LETTERS 31638as_cr_digits='0123456789' 31639as_cr_alnum=$as_cr_Letters$as_cr_digits 31640 31641ECHO_C= ECHO_N= ECHO_T= 31642case `echo -n x` in #((((( 31643-n*) 31644 case `echo 'xy\c'` in 31645 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 31646 xy) ECHO_C='\c';; 31647 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 31648 ECHO_T=' ';; 31649 esac;; 31650*) 31651 ECHO_N='-n';; 31652esac 31653 31654rm -f conf$$ conf$$.exe conf$$.file 31655if test -d conf$$.dir; then 31656 rm -f conf$$.dir/conf$$.file 31657else 31658 rm -f conf$$.dir 31659 mkdir conf$$.dir 2>/dev/null 31660fi 31661if (echo >conf$$.file) 2>/dev/null; then 31662 if ln -s conf$$.file conf$$ 2>/dev/null; then 31663 as_ln_s='ln -s' 31664 # ... but there are two gotchas: 31665 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 31666 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 31667 # In both cases, we have to default to `cp -pR'. 31668 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 31669 as_ln_s='cp -pR' 31670 elif ln conf$$.file conf$$ 2>/dev/null; then 31671 as_ln_s=ln 31672 else 31673 as_ln_s='cp -pR' 31674 fi 31675else 31676 as_ln_s='cp -pR' 31677fi 31678rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 31679rmdir conf$$.dir 2>/dev/null 31680 31681 31682# as_fn_mkdir_p 31683# ------------- 31684# Create "$as_dir" as a directory, including parents if necessary. 31685as_fn_mkdir_p () 31686{ 31687 31688 case $as_dir in #( 31689 -*) as_dir=./$as_dir;; 31690 esac 31691 test -d "$as_dir" || eval $as_mkdir_p || { 31692 as_dirs= 31693 while :; do 31694 case $as_dir in #( 31695 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 31696 *) as_qdir=$as_dir;; 31697 esac 31698 as_dirs="'$as_qdir' $as_dirs" 31699 as_dir=`$as_dirname -- "$as_dir" || 31700$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 31701 X"$as_dir" : 'X\(//\)[^/]' \| \ 31702 X"$as_dir" : 'X\(//\)$' \| \ 31703 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 31704$as_echo X"$as_dir" | 31705 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 31706 s//\1/ 31707 q 31708 } 31709 /^X\(\/\/\)[^/].*/{ 31710 s//\1/ 31711 q 31712 } 31713 /^X\(\/\/\)$/{ 31714 s//\1/ 31715 q 31716 } 31717 /^X\(\/\).*/{ 31718 s//\1/ 31719 q 31720 } 31721 s/.*/./; q'` 31722 test -d "$as_dir" && break 31723 done 31724 test -z "$as_dirs" || eval "mkdir $as_dirs" 31725 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 31726 31727 31728} # as_fn_mkdir_p 31729if mkdir -p . 2>/dev/null; then 31730 as_mkdir_p='mkdir -p "$as_dir"' 31731else 31732 test -d ./-p && rmdir ./-p 31733 as_mkdir_p=false 31734fi 31735 31736 31737# as_fn_executable_p FILE 31738# ----------------------- 31739# Test if FILE is an executable regular file. 31740as_fn_executable_p () 31741{ 31742 test -f "$1" && test -x "$1" 31743} # as_fn_executable_p 31744as_test_x='test -x' 31745as_executable_p=as_fn_executable_p 31746 31747# Sed expression to map a string onto a valid CPP name. 31748as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 31749 31750# Sed expression to map a string onto a valid variable name. 31751as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 31752 31753 31754exec 6>&1 31755## ----------------------------------- ## 31756## Main body of $CONFIG_STATUS script. ## 31757## ----------------------------------- ## 31758_ASEOF 31759test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 31760 31761cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 31762# Save the log message, to keep $0 and so on meaningful, and to 31763# report actual input values of CONFIG_FILES etc. instead of their 31764# values after options handling. 31765ac_log=" 31766This file was extended by sntp $as_me 4.2.8p5, which was 31767generated by GNU Autoconf 2.69. Invocation command line was 31768 31769 CONFIG_FILES = $CONFIG_FILES 31770 CONFIG_HEADERS = $CONFIG_HEADERS 31771 CONFIG_LINKS = $CONFIG_LINKS 31772 CONFIG_COMMANDS = $CONFIG_COMMANDS 31773 $ $0 $@ 31774 31775on `(hostname || uname -n) 2>/dev/null | sed 1q` 31776" 31777 31778_ACEOF 31779 31780case $ac_config_files in *" 31781"*) set x $ac_config_files; shift; ac_config_files=$*;; 31782esac 31783 31784case $ac_config_headers in *" 31785"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 31786esac 31787 31788 31789cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 31790# Files that config.status was made for. 31791config_files="$ac_config_files" 31792config_headers="$ac_config_headers" 31793config_commands="$ac_config_commands" 31794 31795_ACEOF 31796 31797cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 31798ac_cs_usage="\ 31799\`$as_me' instantiates files and other configuration actions 31800from templates according to the current configuration. Unless the files 31801and actions are specified as TAGs, all are instantiated by default. 31802 31803Usage: $0 [OPTION]... [TAG]... 31804 31805 -h, --help print this help, then exit 31806 -V, --version print version number and configuration settings, then exit 31807 --config print configuration, then exit 31808 -q, --quiet, --silent 31809 do not print progress messages 31810 -d, --debug don't remove temporary files 31811 --recheck update $as_me by reconfiguring in the same conditions 31812 --file=FILE[:TEMPLATE] 31813 instantiate the configuration file FILE 31814 --header=FILE[:TEMPLATE] 31815 instantiate the configuration header FILE 31816 31817Configuration files: 31818$config_files 31819 31820Configuration headers: 31821$config_headers 31822 31823Configuration commands: 31824$config_commands 31825 31826Report bugs to <http://bugs.ntp.org./>. 31827sntp home page: <http://www.ntp.org./>." 31828 31829_ACEOF 31830cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 31831ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 31832ac_cs_version="\\ 31833sntp config.status 4.2.8p5 31834configured by $0, generated by GNU Autoconf 2.69, 31835 with options \\"\$ac_cs_config\\" 31836 31837Copyright (C) 2012 Free Software Foundation, Inc. 31838This config.status script is free software; the Free Software Foundation 31839gives unlimited permission to copy, distribute and modify it." 31840 31841ac_pwd='$ac_pwd' 31842srcdir='$srcdir' 31843INSTALL='$INSTALL' 31844MKDIR_P='$MKDIR_P' 31845AWK='$AWK' 31846test -n "\$AWK" || AWK=awk 31847_ACEOF 31848 31849cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 31850# The default lists apply if the user does not specify any file. 31851ac_need_defaults=: 31852while test $# != 0 31853do 31854 case $1 in 31855 --*=?*) 31856 ac_option=`expr "X$1" : 'X\([^=]*\)='` 31857 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 31858 ac_shift=: 31859 ;; 31860 --*=) 31861 ac_option=`expr "X$1" : 'X\([^=]*\)='` 31862 ac_optarg= 31863 ac_shift=: 31864 ;; 31865 *) 31866 ac_option=$1 31867 ac_optarg=$2 31868 ac_shift=shift 31869 ;; 31870 esac 31871 31872 case $ac_option in 31873 # Handling of the options. 31874 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 31875 ac_cs_recheck=: ;; 31876 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 31877 $as_echo "$ac_cs_version"; exit ;; 31878 --config | --confi | --conf | --con | --co | --c ) 31879 $as_echo "$ac_cs_config"; exit ;; 31880 --debug | --debu | --deb | --de | --d | -d ) 31881 debug=: ;; 31882 --file | --fil | --fi | --f ) 31883 $ac_shift 31884 case $ac_optarg in 31885 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 31886 '') as_fn_error $? "missing file argument" ;; 31887 esac 31888 as_fn_append CONFIG_FILES " '$ac_optarg'" 31889 ac_need_defaults=false;; 31890 --header | --heade | --head | --hea ) 31891 $ac_shift 31892 case $ac_optarg in 31893 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 31894 esac 31895 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 31896 ac_need_defaults=false;; 31897 --he | --h) 31898 # Conflict between --help and --header 31899 as_fn_error $? "ambiguous option: \`$1' 31900Try \`$0 --help' for more information.";; 31901 --help | --hel | -h ) 31902 $as_echo "$ac_cs_usage"; exit ;; 31903 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 31904 | -silent | --silent | --silen | --sile | --sil | --si | --s) 31905 ac_cs_silent=: ;; 31906 31907 # This is an error. 31908 -*) as_fn_error $? "unrecognized option: \`$1' 31909Try \`$0 --help' for more information." ;; 31910 31911 *) as_fn_append ac_config_targets " $1" 31912 ac_need_defaults=false ;; 31913 31914 esac 31915 shift 31916done 31917 31918ac_configure_extra_args= 31919 31920if $ac_cs_silent; then 31921 exec 6>/dev/null 31922 ac_configure_extra_args="$ac_configure_extra_args --silent" 31923fi 31924 31925_ACEOF 31926cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 31927if \$ac_cs_recheck; then 31928 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 31929 shift 31930 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 31931 CONFIG_SHELL='$SHELL' 31932 export CONFIG_SHELL 31933 exec "\$@" 31934fi 31935 31936_ACEOF 31937cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 31938exec 5>>config.log 31939{ 31940 echo 31941 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 31942## Running $as_me. ## 31943_ASBOX 31944 $as_echo "$ac_log" 31945} >&5 31946 31947_ACEOF 31948cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 31949# 31950# INIT-COMMANDS 31951# 31952AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 31953 31954 31955# The HP-UX ksh and POSIX shell print the target directory to stdout 31956# if CDPATH is set. 31957(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 31958 31959sed_quote_subst='$sed_quote_subst' 31960double_quote_subst='$double_quote_subst' 31961delay_variable_subst='$delay_variable_subst' 31962SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 31963Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 31964GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 31965EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 31966FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 31967SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 31968ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 31969LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 31970enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 31971macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 31972macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 31973enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 31974pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 31975enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 31976shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 31977PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 31978host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 31979host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 31980host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 31981build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 31982build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 31983build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 31984NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 31985LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 31986max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 31987ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 31988exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 31989lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 31990lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 31991lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 31992lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 31993lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 31994reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 31995reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 31996OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 31997deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 31998file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 31999file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 32000want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 32001DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 32002sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 32003AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 32004AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 32005archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 32006STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 32007RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 32008old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 32009old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 32010old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 32011lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 32012CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 32013CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 32014compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 32015GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 32016lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 32017lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 32018lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 32019lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 32020lt_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"`' 32021lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 32022nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 32023lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 32024lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 32025objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 32026MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 32027lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 32028lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 32029lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 32030lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 32031lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 32032need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 32033MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 32034DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 32035NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 32036LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 32037OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 32038OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 32039libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 32040shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 32041extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 32042archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 32043enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 32044export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 32045whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 32046compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 32047old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 32048old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 32049archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 32050archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 32051module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 32052module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 32053with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 32054allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 32055no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 32056hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 32057hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 32058hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 32059hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 32060hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 32061hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 32062hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 32063inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 32064link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 32065always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 32066export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 32067exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 32068include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 32069prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 32070postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 32071file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 32072variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 32073need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 32074need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 32075version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 32076runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 32077shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 32078shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 32079libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 32080library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 32081soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 32082install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 32083postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 32084postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 32085finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 32086finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 32087hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 32088sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 32089configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 32090configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 32091hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 32092enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 32093enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 32094enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 32095old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 32096striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 32097compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' 32098predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' 32099postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' 32100predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' 32101postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' 32102compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' 32103LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' 32104reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' 32105reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' 32106old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 32107compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' 32108GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' 32109lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' 32110lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' 32111lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' 32112lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' 32113lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' 32114archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' 32115enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' 32116export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 32117whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 32118compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' 32119old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' 32120old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' 32121archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 32122archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 32123module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' 32124module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 32125with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' 32126allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 32127no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 32128hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 32129hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' 32130hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' 32131hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' 32132hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' 32133hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' 32134hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' 32135inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' 32136link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' 32137always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' 32138export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' 32139exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 32140include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 32141prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 32142postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 32143file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' 32144hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' 32145compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' 32146predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' 32147postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' 32148predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' 32149postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' 32150compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' 32151 32152LTCC='$LTCC' 32153LTCFLAGS='$LTCFLAGS' 32154compiler='$compiler_DEFAULT' 32155 32156# A function that is used when there is no print builtin or printf. 32157func_fallback_echo () 32158{ 32159 eval 'cat <<_LTECHO_EOF 32160\$1 32161_LTECHO_EOF' 32162} 32163 32164# Quote evaled strings. 32165for var in SED \ 32166GREP \ 32167EGREP \ 32168FGREP \ 32169SHELL \ 32170ECHO \ 32171LD \ 32172PATH_SEPARATOR \ 32173NM \ 32174LN_S \ 32175lt_SP2NL \ 32176lt_NL2SP \ 32177reload_flag \ 32178OBJDUMP \ 32179deplibs_check_method \ 32180file_magic_cmd \ 32181file_magic_glob \ 32182want_nocaseglob \ 32183DLLTOOL \ 32184sharedlib_from_linklib_cmd \ 32185AR \ 32186AR_FLAGS \ 32187archiver_list_spec \ 32188STRIP \ 32189RANLIB \ 32190CC \ 32191CFLAGS \ 32192compiler \ 32193lt_cv_sys_global_symbol_pipe \ 32194lt_cv_sys_global_symbol_to_cdecl \ 32195lt_cv_sys_global_symbol_to_import \ 32196lt_cv_sys_global_symbol_to_c_name_address \ 32197lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 32198lt_cv_nm_interface \ 32199nm_file_list_spec \ 32200lt_cv_truncate_bin \ 32201lt_prog_compiler_no_builtin_flag \ 32202lt_prog_compiler_pic \ 32203lt_prog_compiler_wl \ 32204lt_prog_compiler_static \ 32205lt_cv_prog_compiler_c_o \ 32206need_locks \ 32207MANIFEST_TOOL \ 32208DSYMUTIL \ 32209NMEDIT \ 32210LIPO \ 32211OTOOL \ 32212OTOOL64 \ 32213shrext_cmds \ 32214export_dynamic_flag_spec \ 32215whole_archive_flag_spec \ 32216compiler_needs_object \ 32217with_gnu_ld \ 32218allow_undefined_flag \ 32219no_undefined_flag \ 32220hardcode_libdir_flag_spec \ 32221hardcode_libdir_separator \ 32222exclude_expsyms \ 32223include_expsyms \ 32224file_list_spec \ 32225variables_saved_for_relink \ 32226libname_spec \ 32227library_names_spec \ 32228soname_spec \ 32229install_override_mode \ 32230finish_eval \ 32231old_striplib \ 32232striplib \ 32233compiler_lib_search_dirs \ 32234predep_objects \ 32235postdep_objects \ 32236predeps \ 32237postdeps \ 32238compiler_lib_search_path \ 32239LD_CXX \ 32240reload_flag_CXX \ 32241compiler_CXX \ 32242lt_prog_compiler_no_builtin_flag_CXX \ 32243lt_prog_compiler_pic_CXX \ 32244lt_prog_compiler_wl_CXX \ 32245lt_prog_compiler_static_CXX \ 32246lt_cv_prog_compiler_c_o_CXX \ 32247export_dynamic_flag_spec_CXX \ 32248whole_archive_flag_spec_CXX \ 32249compiler_needs_object_CXX \ 32250with_gnu_ld_CXX \ 32251allow_undefined_flag_CXX \ 32252no_undefined_flag_CXX \ 32253hardcode_libdir_flag_spec_CXX \ 32254hardcode_libdir_separator_CXX \ 32255exclude_expsyms_CXX \ 32256include_expsyms_CXX \ 32257file_list_spec_CXX \ 32258compiler_lib_search_dirs_CXX \ 32259predep_objects_CXX \ 32260postdep_objects_CXX \ 32261predeps_CXX \ 32262postdeps_CXX \ 32263compiler_lib_search_path_CXX; do 32264 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 32265 *[\\\\\\\`\\"\\\$]*) 32266 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 32267 ;; 32268 *) 32269 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 32270 ;; 32271 esac 32272done 32273 32274# Double-quote double-evaled strings. 32275for var in reload_cmds \ 32276old_postinstall_cmds \ 32277old_postuninstall_cmds \ 32278old_archive_cmds \ 32279extract_expsyms_cmds \ 32280old_archive_from_new_cmds \ 32281old_archive_from_expsyms_cmds \ 32282archive_cmds \ 32283archive_expsym_cmds \ 32284module_cmds \ 32285module_expsym_cmds \ 32286export_symbols_cmds \ 32287prelink_cmds \ 32288postlink_cmds \ 32289postinstall_cmds \ 32290postuninstall_cmds \ 32291finish_cmds \ 32292sys_lib_search_path_spec \ 32293configure_time_dlsearch_path \ 32294configure_time_lt_sys_library_path \ 32295reload_cmds_CXX \ 32296old_archive_cmds_CXX \ 32297old_archive_from_new_cmds_CXX \ 32298old_archive_from_expsyms_cmds_CXX \ 32299archive_cmds_CXX \ 32300archive_expsym_cmds_CXX \ 32301module_cmds_CXX \ 32302module_expsym_cmds_CXX \ 32303export_symbols_cmds_CXX \ 32304prelink_cmds_CXX \ 32305postlink_cmds_CXX; do 32306 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 32307 *[\\\\\\\`\\"\\\$]*) 32308 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 32309 ;; 32310 *) 32311 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 32312 ;; 32313 esac 32314done 32315 32316ac_aux_dir='$ac_aux_dir' 32317 32318# See if we are running on zsh, and set the options that allow our 32319# commands through without removal of \ escapes INIT. 32320if test -n "\${ZSH_VERSION+set}"; then 32321 setopt NO_GLOB_SUBST 32322fi 32323 32324 32325 PACKAGE='$PACKAGE' 32326 VERSION='$VERSION' 32327 RM='$RM' 32328 ofile='$ofile' 32329 32330 32331 32332 32333 32334 32335_ACEOF 32336 32337cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 32338 32339# Handling of arguments. 32340for ac_config_target in $ac_config_targets 32341do 32342 case $ac_config_target in 32343 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 32344 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 32345 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 32346 "libopts/Makefile") CONFIG_FILES="$CONFIG_FILES libopts/Makefile" ;; 32347 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 32348 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; 32349 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;; 32350 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; 32351 "tests/fileHandlingTest.h") CONFIG_FILES="$CONFIG_FILES tests/fileHandlingTest.h" ;; 32352 "unity/Makefile") CONFIG_FILES="$CONFIG_FILES unity/Makefile" ;; 32353 32354 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 32355 esac 32356done 32357 32358 32359# If the user did not use the arguments to specify the items to instantiate, 32360# then the envvar interface is used. Set only those that are not. 32361# We use the long form for the default assignment because of an extremely 32362# bizarre bug on SunOS 4.1.3. 32363if $ac_need_defaults; then 32364 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 32365 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 32366 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 32367fi 32368 32369# Have a temporary directory for convenience. Make it in the build tree 32370# simply because there is no reason against having it here, and in addition, 32371# creating and moving files from /tmp can sometimes cause problems. 32372# Hook for its removal unless debugging. 32373# Note that there is a small window in which the directory will not be cleaned: 32374# after its creation but before its name has been assigned to `$tmp'. 32375$debug || 32376{ 32377 tmp= ac_tmp= 32378 trap 'exit_status=$? 32379 : "${ac_tmp:=$tmp}" 32380 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 32381' 0 32382 trap 'as_fn_exit 1' 1 2 13 15 32383} 32384# Create a (secure) tmp directory for tmp files. 32385 32386{ 32387 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 32388 test -d "$tmp" 32389} || 32390{ 32391 tmp=./conf$$-$RANDOM 32392 (umask 077 && mkdir "$tmp") 32393} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 32394ac_tmp=$tmp 32395 32396# Set up the scripts for CONFIG_FILES section. 32397# No need to generate them if there are no CONFIG_FILES. 32398# This happens for instance with `./config.status config.h'. 32399if test -n "$CONFIG_FILES"; then 32400 32401 32402ac_cr=`echo X | tr X '\015'` 32403# On cygwin, bash can eat \r inside `` if the user requested igncr. 32404# But we know of no other shell where ac_cr would be empty at this 32405# point, so we can use a bashism as a fallback. 32406if test "x$ac_cr" = x; then 32407 eval ac_cr=\$\'\\r\' 32408fi 32409ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 32410if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 32411 ac_cs_awk_cr='\\r' 32412else 32413 ac_cs_awk_cr=$ac_cr 32414fi 32415 32416echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 32417_ACEOF 32418 32419 32420{ 32421 echo "cat >conf$$subs.awk <<_ACEOF" && 32422 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 32423 echo "_ACEOF" 32424} >conf$$subs.sh || 32425 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 32426ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 32427ac_delim='%!_!# ' 32428for ac_last_try in false false false false false :; do 32429 . ./conf$$subs.sh || 32430 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 32431 32432 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 32433 if test $ac_delim_n = $ac_delim_num; then 32434 break 32435 elif $ac_last_try; then 32436 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 32437 else 32438 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 32439 fi 32440done 32441rm -f conf$$subs.sh 32442 32443cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 32444cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 32445_ACEOF 32446sed -n ' 32447h 32448s/^/S["/; s/!.*/"]=/ 32449p 32450g 32451s/^[^!]*!// 32452:repl 32453t repl 32454s/'"$ac_delim"'$// 32455t delim 32456:nl 32457h 32458s/\(.\{148\}\)..*/\1/ 32459t more1 32460s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 32461p 32462n 32463b repl 32464:more1 32465s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 32466p 32467g 32468s/.\{148\}// 32469t nl 32470:delim 32471h 32472s/\(.\{148\}\)..*/\1/ 32473t more2 32474s/["\\]/\\&/g; s/^/"/; s/$/"/ 32475p 32476b 32477:more2 32478s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 32479p 32480g 32481s/.\{148\}// 32482t delim 32483' <conf$$subs.awk | sed ' 32484/^[^""]/{ 32485 N 32486 s/\n// 32487} 32488' >>$CONFIG_STATUS || ac_write_fail=1 32489rm -f conf$$subs.awk 32490cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 32491_ACAWK 32492cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 32493 for (key in S) S_is_set[key] = 1 32494 FS = "" 32495 32496} 32497{ 32498 line = $ 0 32499 nfields = split(line, field, "@") 32500 substed = 0 32501 len = length(field[1]) 32502 for (i = 2; i < nfields; i++) { 32503 key = field[i] 32504 keylen = length(key) 32505 if (S_is_set[key]) { 32506 value = S[key] 32507 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 32508 len += length(value) + length(field[++i]) 32509 substed = 1 32510 } else 32511 len += 1 + keylen 32512 } 32513 32514 print line 32515} 32516 32517_ACAWK 32518_ACEOF 32519cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 32520if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 32521 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 32522else 32523 cat 32524fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 32525 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 32526_ACEOF 32527 32528# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 32529# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 32530# trailing colons and then remove the whole line if VPATH becomes empty 32531# (actually we leave an empty line to preserve line numbers). 32532if test "x$srcdir" = x.; then 32533 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 32534h 32535s/// 32536s/^/:/ 32537s/[ ]*$/:/ 32538s/:\$(srcdir):/:/g 32539s/:\${srcdir}:/:/g 32540s/:@srcdir@:/:/g 32541s/^:*// 32542s/:*$// 32543x 32544s/\(=[ ]*\).*/\1/ 32545G 32546s/\n// 32547s/^[^=]*=[ ]*$// 32548}' 32549fi 32550 32551cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 32552fi # test -n "$CONFIG_FILES" 32553 32554# Set up the scripts for CONFIG_HEADERS section. 32555# No need to generate them if there are no CONFIG_HEADERS. 32556# This happens for instance with `./config.status Makefile'. 32557if test -n "$CONFIG_HEADERS"; then 32558cat >"$ac_tmp/defines.awk" <<\_ACAWK || 32559BEGIN { 32560_ACEOF 32561 32562# Transform confdefs.h into an awk script `defines.awk', embedded as 32563# here-document in config.status, that substitutes the proper values into 32564# config.h.in to produce config.h. 32565 32566# Create a delimiter string that does not exist in confdefs.h, to ease 32567# handling of long lines. 32568ac_delim='%!_!# ' 32569for ac_last_try in false false :; do 32570 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 32571 if test -z "$ac_tt"; then 32572 break 32573 elif $ac_last_try; then 32574 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 32575 else 32576 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 32577 fi 32578done 32579 32580# For the awk script, D is an array of macro values keyed by name, 32581# likewise P contains macro parameters if any. Preserve backslash 32582# newline sequences. 32583 32584ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 32585sed -n ' 32586s/.\{148\}/&'"$ac_delim"'/g 32587t rset 32588:rset 32589s/^[ ]*#[ ]*define[ ][ ]*/ / 32590t def 32591d 32592:def 32593s/\\$// 32594t bsnl 32595s/["\\]/\\&/g 32596s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 32597D["\1"]=" \3"/p 32598s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 32599d 32600:bsnl 32601s/["\\]/\\&/g 32602s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 32603D["\1"]=" \3\\\\\\n"\\/p 32604t cont 32605s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 32606t cont 32607d 32608:cont 32609n 32610s/.\{148\}/&'"$ac_delim"'/g 32611t clear 32612:clear 32613s/\\$// 32614t bsnlc 32615s/["\\]/\\&/g; s/^/"/; s/$/"/p 32616d 32617:bsnlc 32618s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 32619b cont 32620' <confdefs.h | sed ' 32621s/'"$ac_delim"'/"\\\ 32622"/g' >>$CONFIG_STATUS || ac_write_fail=1 32623 32624cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 32625 for (key in D) D_is_set[key] = 1 32626 FS = "" 32627} 32628/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 32629 line = \$ 0 32630 split(line, arg, " ") 32631 if (arg[1] == "#") { 32632 defundef = arg[2] 32633 mac1 = arg[3] 32634 } else { 32635 defundef = substr(arg[1], 2) 32636 mac1 = arg[2] 32637 } 32638 split(mac1, mac2, "(") #) 32639 macro = mac2[1] 32640 prefix = substr(line, 1, index(line, defundef) - 1) 32641 if (D_is_set[macro]) { 32642 # Preserve the white space surrounding the "#". 32643 print prefix "define", macro P[macro] D[macro] 32644 next 32645 } else { 32646 # Replace #undef with comments. This is necessary, for example, 32647 # in the case of _POSIX_SOURCE, which is predefined and required 32648 # on some systems where configure will not decide to define it. 32649 if (defundef == "undef") { 32650 print "/*", prefix defundef, macro, "*/" 32651 next 32652 } 32653 } 32654} 32655{ print } 32656_ACAWK 32657_ACEOF 32658cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 32659 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 32660fi # test -n "$CONFIG_HEADERS" 32661 32662 32663eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 32664shift 32665for ac_tag 32666do 32667 case $ac_tag in 32668 :[FHLC]) ac_mode=$ac_tag; continue;; 32669 esac 32670 case $ac_mode$ac_tag in 32671 :[FHL]*:*);; 32672 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 32673 :[FH]-) ac_tag=-:-;; 32674 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 32675 esac 32676 ac_save_IFS=$IFS 32677 IFS=: 32678 set x $ac_tag 32679 IFS=$ac_save_IFS 32680 shift 32681 ac_file=$1 32682 shift 32683 32684 case $ac_mode in 32685 :L) ac_source=$1;; 32686 :[FH]) 32687 ac_file_inputs= 32688 for ac_f 32689 do 32690 case $ac_f in 32691 -) ac_f="$ac_tmp/stdin";; 32692 *) # Look for the file first in the build tree, then in the source tree 32693 # (if the path is not absolute). The absolute path cannot be DOS-style, 32694 # because $ac_f cannot contain `:'. 32695 test -f "$ac_f" || 32696 case $ac_f in 32697 [\\/$]*) false;; 32698 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 32699 esac || 32700 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 32701 esac 32702 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 32703 as_fn_append ac_file_inputs " '$ac_f'" 32704 done 32705 32706 # Let's still pretend it is `configure' which instantiates (i.e., don't 32707 # use $as_me), people would be surprised to read: 32708 # /* config.h. Generated by config.status. */ 32709 configure_input='Generated from '` 32710 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 32711 `' by configure.' 32712 if test x"$ac_file" != x-; then 32713 configure_input="$ac_file. $configure_input" 32714 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 32715$as_echo "$as_me: creating $ac_file" >&6;} 32716 fi 32717 # Neutralize special characters interpreted by sed in replacement strings. 32718 case $configure_input in #( 32719 *\&* | *\|* | *\\* ) 32720 ac_sed_conf_input=`$as_echo "$configure_input" | 32721 sed 's/[\\\\&|]/\\\\&/g'`;; #( 32722 *) ac_sed_conf_input=$configure_input;; 32723 esac 32724 32725 case $ac_tag in 32726 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 32727 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 32728 esac 32729 ;; 32730 esac 32731 32732 ac_dir=`$as_dirname -- "$ac_file" || 32733$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 32734 X"$ac_file" : 'X\(//\)[^/]' \| \ 32735 X"$ac_file" : 'X\(//\)$' \| \ 32736 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 32737$as_echo X"$ac_file" | 32738 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 32739 s//\1/ 32740 q 32741 } 32742 /^X\(\/\/\)[^/].*/{ 32743 s//\1/ 32744 q 32745 } 32746 /^X\(\/\/\)$/{ 32747 s//\1/ 32748 q 32749 } 32750 /^X\(\/\).*/{ 32751 s//\1/ 32752 q 32753 } 32754 s/.*/./; q'` 32755 as_dir="$ac_dir"; as_fn_mkdir_p 32756 ac_builddir=. 32757 32758case "$ac_dir" in 32759.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 32760*) 32761 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 32762 # A ".." for each directory in $ac_dir_suffix. 32763 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 32764 case $ac_top_builddir_sub in 32765 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 32766 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 32767 esac ;; 32768esac 32769ac_abs_top_builddir=$ac_pwd 32770ac_abs_builddir=$ac_pwd$ac_dir_suffix 32771# for backward compatibility: 32772ac_top_builddir=$ac_top_build_prefix 32773 32774case $srcdir in 32775 .) # We are building in place. 32776 ac_srcdir=. 32777 ac_top_srcdir=$ac_top_builddir_sub 32778 ac_abs_top_srcdir=$ac_pwd ;; 32779 [\\/]* | ?:[\\/]* ) # Absolute name. 32780 ac_srcdir=$srcdir$ac_dir_suffix; 32781 ac_top_srcdir=$srcdir 32782 ac_abs_top_srcdir=$srcdir ;; 32783 *) # Relative name. 32784 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 32785 ac_top_srcdir=$ac_top_build_prefix$srcdir 32786 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 32787esac 32788ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 32789 32790 32791 case $ac_mode in 32792 :F) 32793 # 32794 # CONFIG_FILE 32795 # 32796 32797 case $INSTALL in 32798 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 32799 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 32800 esac 32801 ac_MKDIR_P=$MKDIR_P 32802 case $MKDIR_P in 32803 [\\/$]* | ?:[\\/]* ) ;; 32804 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 32805 esac 32806_ACEOF 32807 32808cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 32809# If the template does not know about datarootdir, expand it. 32810# FIXME: This hack should be removed a few years after 2.60. 32811ac_datarootdir_hack=; ac_datarootdir_seen= 32812ac_sed_dataroot=' 32813/datarootdir/ { 32814 p 32815 q 32816} 32817/@datadir@/p 32818/@docdir@/p 32819/@infodir@/p 32820/@localedir@/p 32821/@mandir@/p' 32822case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 32823*datarootdir*) ac_datarootdir_seen=yes;; 32824*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 32825 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 32826$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 32827_ACEOF 32828cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 32829 ac_datarootdir_hack=' 32830 s&@datadir@&$datadir&g 32831 s&@docdir@&$docdir&g 32832 s&@infodir@&$infodir&g 32833 s&@localedir@&$localedir&g 32834 s&@mandir@&$mandir&g 32835 s&\\\${datarootdir}&$datarootdir&g' ;; 32836esac 32837_ACEOF 32838 32839# Neutralize VPATH when `$srcdir' = `.'. 32840# Shell code in configure.ac might set extrasub. 32841# FIXME: do we really want to maintain this feature? 32842cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 32843ac_sed_extra="$ac_vpsub 32844$extrasub 32845_ACEOF 32846cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 32847:t 32848/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 32849s|@configure_input@|$ac_sed_conf_input|;t t 32850s&@top_builddir@&$ac_top_builddir_sub&;t t 32851s&@top_build_prefix@&$ac_top_build_prefix&;t t 32852s&@srcdir@&$ac_srcdir&;t t 32853s&@abs_srcdir@&$ac_abs_srcdir&;t t 32854s&@top_srcdir@&$ac_top_srcdir&;t t 32855s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 32856s&@builddir@&$ac_builddir&;t t 32857s&@abs_builddir@&$ac_abs_builddir&;t t 32858s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 32859s&@INSTALL@&$ac_INSTALL&;t t 32860s&@MKDIR_P@&$ac_MKDIR_P&;t t 32861$ac_datarootdir_hack 32862" 32863eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 32864 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 32865 32866test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 32867 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 32868 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 32869 "$ac_tmp/out"`; test -z "$ac_out"; } && 32870 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 32871which seems to be undefined. Please make sure it is defined" >&5 32872$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 32873which seems to be undefined. Please make sure it is defined" >&2;} 32874 32875 rm -f "$ac_tmp/stdin" 32876 case $ac_file in 32877 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 32878 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 32879 esac \ 32880 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 32881 ;; 32882 :H) 32883 # 32884 # CONFIG_HEADER 32885 # 32886 if test x"$ac_file" != x-; then 32887 { 32888 $as_echo "/* $configure_input */" \ 32889 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 32890 } >"$ac_tmp/config.h" \ 32891 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 32892 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 32893 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 32894$as_echo "$as_me: $ac_file is unchanged" >&6;} 32895 else 32896 rm -f "$ac_file" 32897 mv "$ac_tmp/config.h" "$ac_file" \ 32898 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 32899 fi 32900 else 32901 $as_echo "/* $configure_input */" \ 32902 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 32903 || as_fn_error $? "could not create -" "$LINENO" 5 32904 fi 32905# Compute "$ac_file"'s index in $config_headers. 32906_am_arg="$ac_file" 32907_am_stamp_count=1 32908for _am_header in $config_headers :; do 32909 case $_am_header in 32910 $_am_arg | $_am_arg:* ) 32911 break ;; 32912 * ) 32913 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 32914 esac 32915done 32916echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 32917$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 32918 X"$_am_arg" : 'X\(//\)[^/]' \| \ 32919 X"$_am_arg" : 'X\(//\)$' \| \ 32920 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 32921$as_echo X"$_am_arg" | 32922 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 32923 s//\1/ 32924 q 32925 } 32926 /^X\(\/\/\)[^/].*/{ 32927 s//\1/ 32928 q 32929 } 32930 /^X\(\/\/\)$/{ 32931 s//\1/ 32932 q 32933 } 32934 /^X\(\/\).*/{ 32935 s//\1/ 32936 q 32937 } 32938 s/.*/./; q'`/stamp-h$_am_stamp_count 32939 ;; 32940 32941 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 32942$as_echo "$as_me: executing $ac_file commands" >&6;} 32943 ;; 32944 esac 32945 32946 32947 case $ac_file$ac_mode in 32948 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 32949 # Older Autoconf quotes --file arguments for eval, but not when files 32950 # are listed without --file. Let's play safe and only enable the eval 32951 # if we detect the quoting. 32952 case $CONFIG_FILES in 32953 *\'*) eval set x "$CONFIG_FILES" ;; 32954 *) set x $CONFIG_FILES ;; 32955 esac 32956 shift 32957 for mf 32958 do 32959 # Strip MF so we end up with the name of the file. 32960 mf=`echo "$mf" | sed -e 's/:.*$//'` 32961 # Check whether this is an Automake generated Makefile or not. 32962 # We used to match only the files named 'Makefile.in', but 32963 # some people rename them; so instead we look at the file content. 32964 # Grep'ing the first line is not enough: some people post-process 32965 # each Makefile.in and add a new line on top of each file to say so. 32966 # Grep'ing the whole file is not good either: AIX grep has a line 32967 # limit of 2048, but all sed's we know have understand at least 4000. 32968 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 32969 dirpart=`$as_dirname -- "$mf" || 32970$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 32971 X"$mf" : 'X\(//\)[^/]' \| \ 32972 X"$mf" : 'X\(//\)$' \| \ 32973 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 32974$as_echo X"$mf" | 32975 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 32976 s//\1/ 32977 q 32978 } 32979 /^X\(\/\/\)[^/].*/{ 32980 s//\1/ 32981 q 32982 } 32983 /^X\(\/\/\)$/{ 32984 s//\1/ 32985 q 32986 } 32987 /^X\(\/\).*/{ 32988 s//\1/ 32989 q 32990 } 32991 s/.*/./; q'` 32992 else 32993 continue 32994 fi 32995 # Extract the definition of DEPDIR, am__include, and am__quote 32996 # from the Makefile without running 'make'. 32997 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 32998 test -z "$DEPDIR" && continue 32999 am__include=`sed -n 's/^am__include = //p' < "$mf"` 33000 test -z "$am__include" && continue 33001 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 33002 # Find all dependency output files, they are included files with 33003 # $(DEPDIR) in their names. We invoke sed twice because it is the 33004 # simplest approach to changing $(DEPDIR) to its actual value in the 33005 # expansion. 33006 for file in `sed -n " 33007 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 33008 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 33009 # Make sure the directory exists. 33010 test -f "$dirpart/$file" && continue 33011 fdir=`$as_dirname -- "$file" || 33012$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 33013 X"$file" : 'X\(//\)[^/]' \| \ 33014 X"$file" : 'X\(//\)$' \| \ 33015 X"$file" : 'X\(/\)' \| . 2>/dev/null || 33016$as_echo X"$file" | 33017 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 33018 s//\1/ 33019 q 33020 } 33021 /^X\(\/\/\)[^/].*/{ 33022 s//\1/ 33023 q 33024 } 33025 /^X\(\/\/\)$/{ 33026 s//\1/ 33027 q 33028 } 33029 /^X\(\/\).*/{ 33030 s//\1/ 33031 q 33032 } 33033 s/.*/./; q'` 33034 as_dir=$dirpart/$fdir; as_fn_mkdir_p 33035 # echo "creating $dirpart/$file" 33036 echo '# dummy' > "$dirpart/$file" 33037 done 33038 done 33039} 33040 ;; 33041 "libtool":C) 33042 33043 # See if we are running on zsh, and set the options that allow our 33044 # commands through without removal of \ escapes. 33045 if test -n "${ZSH_VERSION+set}"; then 33046 setopt NO_GLOB_SUBST 33047 fi 33048 33049 cfgfile=${ofile}T 33050 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 33051 $RM "$cfgfile" 33052 33053 cat <<_LT_EOF >> "$cfgfile" 33054#! $SHELL 33055# Generated automatically by $as_me ($PACKAGE) $VERSION 33056# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 33057# NOTE: Changes made to this file will be lost: look at ltmain.sh. 33058 33059# Provide generalized library-building support services. 33060# Written by Gordon Matzigkeit, 1996 33061 33062# Copyright (C) 2014 Free Software Foundation, Inc. 33063# This is free software; see the source for copying conditions. There is NO 33064# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 33065 33066# GNU Libtool is free software; you can redistribute it and/or modify 33067# it under the terms of the GNU General Public License as published by 33068# the Free Software Foundation; either version 2 of of the License, or 33069# (at your option) any later version. 33070# 33071# As a special exception to the GNU General Public License, if you 33072# distribute this file as part of a program or library that is built 33073# using GNU Libtool, you may include this file under the same 33074# distribution terms that you use for the rest of that program. 33075# 33076# GNU Libtool is distributed in the hope that it will be useful, but 33077# WITHOUT ANY WARRANTY; without even the implied warranty of 33078# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 33079# GNU General Public License for more details. 33080# 33081# You should have received a copy of the GNU General Public License 33082# along with this program. If not, see <http://www.gnu.org/licenses/>. 33083 33084 33085# The names of the tagged configurations supported by this script. 33086available_tags='CXX ' 33087 33088# Configured defaults for sys_lib_dlsearch_path munging. 33089: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 33090 33091# ### BEGIN LIBTOOL CONFIG 33092 33093# A sed program that does not truncate output. 33094SED=$lt_SED 33095 33096# Sed that helps us avoid accidentally triggering echo(1) options like -n. 33097Xsed="\$SED -e 1s/^X//" 33098 33099# A grep program that handles long lines. 33100GREP=$lt_GREP 33101 33102# An ERE matcher. 33103EGREP=$lt_EGREP 33104 33105# A literal string matcher. 33106FGREP=$lt_FGREP 33107 33108# Shell to use when invoking shell scripts. 33109SHELL=$lt_SHELL 33110 33111# An echo program that protects backslashes. 33112ECHO=$lt_ECHO 33113 33114# Whether or not to build shared libraries. 33115build_libtool_libs=$enable_shared 33116 33117# Which release of libtool.m4 was used? 33118macro_version=$macro_version 33119macro_revision=$macro_revision 33120 33121# Whether or not to build static libraries. 33122build_old_libs=$enable_static 33123 33124# What type of objects to build. 33125pic_mode=$pic_mode 33126 33127# Whether or not to optimize for fast installation. 33128fast_install=$enable_fast_install 33129 33130# Shared archive member basename,for filename based shared library versioning on AIX. 33131shared_archive_member_spec=$shared_archive_member_spec 33132 33133# The PATH separator for the build system. 33134PATH_SEPARATOR=$lt_PATH_SEPARATOR 33135 33136# The host system. 33137host_alias=$host_alias 33138host=$host 33139host_os=$host_os 33140 33141# The build system. 33142build_alias=$build_alias 33143build=$build 33144build_os=$build_os 33145 33146# A BSD- or MS-compatible name lister. 33147NM=$lt_NM 33148 33149# Whether we need soft or hard links. 33150LN_S=$lt_LN_S 33151 33152# What is the maximum length of a command? 33153max_cmd_len=$max_cmd_len 33154 33155# Object file suffix (normally "o"). 33156objext=$ac_objext 33157 33158# Executable file suffix (normally ""). 33159exeext=$exeext 33160 33161# whether the shell understands "unset". 33162lt_unset=$lt_unset 33163 33164# turn spaces into newlines. 33165SP2NL=$lt_lt_SP2NL 33166 33167# turn newlines into spaces. 33168NL2SP=$lt_lt_NL2SP 33169 33170# convert \$build file names to \$host format. 33171to_host_file_cmd=$lt_cv_to_host_file_cmd 33172 33173# convert \$build files to toolchain format. 33174to_tool_file_cmd=$lt_cv_to_tool_file_cmd 33175 33176# An object symbol dumper. 33177OBJDUMP=$lt_OBJDUMP 33178 33179# Method to check whether dependent libraries are shared objects. 33180deplibs_check_method=$lt_deplibs_check_method 33181 33182# Command to use when deplibs_check_method = "file_magic". 33183file_magic_cmd=$lt_file_magic_cmd 33184 33185# How to find potential files when deplibs_check_method = "file_magic". 33186file_magic_glob=$lt_file_magic_glob 33187 33188# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 33189want_nocaseglob=$lt_want_nocaseglob 33190 33191# DLL creation program. 33192DLLTOOL=$lt_DLLTOOL 33193 33194# Command to associate shared and link libraries. 33195sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 33196 33197# The archiver. 33198AR=$lt_AR 33199 33200# Flags to create an archive. 33201AR_FLAGS=$lt_AR_FLAGS 33202 33203# How to feed a file listing to the archiver. 33204archiver_list_spec=$lt_archiver_list_spec 33205 33206# A symbol stripping program. 33207STRIP=$lt_STRIP 33208 33209# Commands used to install an old-style archive. 33210RANLIB=$lt_RANLIB 33211old_postinstall_cmds=$lt_old_postinstall_cmds 33212old_postuninstall_cmds=$lt_old_postuninstall_cmds 33213 33214# Whether to use a lock for old archive extraction. 33215lock_old_archive_extraction=$lock_old_archive_extraction 33216 33217# A C compiler. 33218LTCC=$lt_CC 33219 33220# LTCC compiler flags. 33221LTCFLAGS=$lt_CFLAGS 33222 33223# Take the output of nm and produce a listing of raw symbols and C names. 33224global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 33225 33226# Transform the output of nm in a proper C declaration. 33227global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 33228 33229# Transform the output of nm into a list of symbols to manually relocate. 33230global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 33231 33232# Transform the output of nm in a C name address pair. 33233global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 33234 33235# Transform the output of nm in a C name address pair when lib prefix is needed. 33236global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 33237 33238# The name lister interface. 33239nm_interface=$lt_lt_cv_nm_interface 33240 33241# Specify filename containing input files for \$NM. 33242nm_file_list_spec=$lt_nm_file_list_spec 33243 33244# The root where to search for dependent libraries,and where our libraries should be installed. 33245lt_sysroot=$lt_sysroot 33246 33247# Command to truncate a binary pipe. 33248lt_truncate_bin=$lt_lt_cv_truncate_bin 33249 33250# The name of the directory that contains temporary libtool files. 33251objdir=$objdir 33252 33253# Used to examine libraries when file_magic_cmd begins with "file". 33254MAGIC_CMD=$MAGIC_CMD 33255 33256# Must we lock files when doing compilation? 33257need_locks=$lt_need_locks 33258 33259# Manifest tool. 33260MANIFEST_TOOL=$lt_MANIFEST_TOOL 33261 33262# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 33263DSYMUTIL=$lt_DSYMUTIL 33264 33265# Tool to change global to local symbols on Mac OS X. 33266NMEDIT=$lt_NMEDIT 33267 33268# Tool to manipulate fat objects and archives on Mac OS X. 33269LIPO=$lt_LIPO 33270 33271# ldd/readelf like tool for Mach-O binaries on Mac OS X. 33272OTOOL=$lt_OTOOL 33273 33274# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 33275OTOOL64=$lt_OTOOL64 33276 33277# Old archive suffix (normally "a"). 33278libext=$libext 33279 33280# Shared library suffix (normally ".so"). 33281shrext_cmds=$lt_shrext_cmds 33282 33283# The commands to extract the exported symbol list from a shared archive. 33284extract_expsyms_cmds=$lt_extract_expsyms_cmds 33285 33286# Variables whose values should be saved in libtool wrapper scripts and 33287# restored at link time. 33288variables_saved_for_relink=$lt_variables_saved_for_relink 33289 33290# Do we need the "lib" prefix for modules? 33291need_lib_prefix=$need_lib_prefix 33292 33293# Do we need a version for libraries? 33294need_version=$need_version 33295 33296# Library versioning type. 33297version_type=$version_type 33298 33299# Shared library runtime path variable. 33300runpath_var=$runpath_var 33301 33302# Shared library path variable. 33303shlibpath_var=$shlibpath_var 33304 33305# Is shlibpath searched before the hard-coded library search path? 33306shlibpath_overrides_runpath=$shlibpath_overrides_runpath 33307 33308# Format of library name prefix. 33309libname_spec=$lt_libname_spec 33310 33311# List of archive names. First name is the real one, the rest are links. 33312# The last name is the one that the linker finds with -lNAME 33313library_names_spec=$lt_library_names_spec 33314 33315# The coded name of the library, if different from the real name. 33316soname_spec=$lt_soname_spec 33317 33318# Permission mode override for installation of shared libraries. 33319install_override_mode=$lt_install_override_mode 33320 33321# Command to use after installation of a shared archive. 33322postinstall_cmds=$lt_postinstall_cmds 33323 33324# Command to use after uninstallation of a shared archive. 33325postuninstall_cmds=$lt_postuninstall_cmds 33326 33327# Commands used to finish a libtool library installation in a directory. 33328finish_cmds=$lt_finish_cmds 33329 33330# As "finish_cmds", except a single script fragment to be evaled but 33331# not shown. 33332finish_eval=$lt_finish_eval 33333 33334# Whether we should hardcode library paths into libraries. 33335hardcode_into_libs=$hardcode_into_libs 33336 33337# Compile-time system search path for libraries. 33338sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 33339 33340# Detected run-time system search path for libraries. 33341sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 33342 33343# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 33344configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 33345 33346# Whether dlopen is supported. 33347dlopen_support=$enable_dlopen 33348 33349# Whether dlopen of programs is supported. 33350dlopen_self=$enable_dlopen_self 33351 33352# Whether dlopen of statically linked programs is supported. 33353dlopen_self_static=$enable_dlopen_self_static 33354 33355# Commands to strip libraries. 33356old_striplib=$lt_old_striplib 33357striplib=$lt_striplib 33358 33359 33360# The linker used to build libraries. 33361LD=$lt_LD 33362 33363# How to create reloadable object files. 33364reload_flag=$lt_reload_flag 33365reload_cmds=$lt_reload_cmds 33366 33367# Commands used to build an old-style archive. 33368old_archive_cmds=$lt_old_archive_cmds 33369 33370# A language specific compiler. 33371CC=$lt_compiler 33372 33373# Is the compiler the GNU compiler? 33374with_gcc=$GCC 33375 33376# Compiler flag to turn off builtin functions. 33377no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 33378 33379# Additional compiler flags for building library objects. 33380pic_flag=$lt_lt_prog_compiler_pic 33381 33382# How to pass a linker flag through the compiler. 33383wl=$lt_lt_prog_compiler_wl 33384 33385# Compiler flag to prevent dynamic linking. 33386link_static_flag=$lt_lt_prog_compiler_static 33387 33388# Does compiler simultaneously support -c and -o options? 33389compiler_c_o=$lt_lt_cv_prog_compiler_c_o 33390 33391# Whether or not to add -lc for building shared libraries. 33392build_libtool_need_lc=$archive_cmds_need_lc 33393 33394# Whether or not to disallow shared libs when runtime libs are static. 33395allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 33396 33397# Compiler flag to allow reflexive dlopens. 33398export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 33399 33400# Compiler flag to generate shared objects directly from archives. 33401whole_archive_flag_spec=$lt_whole_archive_flag_spec 33402 33403# Whether the compiler copes with passing no objects directly. 33404compiler_needs_object=$lt_compiler_needs_object 33405 33406# Create an old-style archive from a shared archive. 33407old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 33408 33409# Create a temporary old-style archive to link instead of a shared archive. 33410old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 33411 33412# Commands used to build a shared archive. 33413archive_cmds=$lt_archive_cmds 33414archive_expsym_cmds=$lt_archive_expsym_cmds 33415 33416# Commands used to build a loadable module if different from building 33417# a shared archive. 33418module_cmds=$lt_module_cmds 33419module_expsym_cmds=$lt_module_expsym_cmds 33420 33421# Whether we are building with GNU ld or not. 33422with_gnu_ld=$lt_with_gnu_ld 33423 33424# Flag that allows shared libraries with undefined symbols to be built. 33425allow_undefined_flag=$lt_allow_undefined_flag 33426 33427# Flag that enforces no undefined symbols. 33428no_undefined_flag=$lt_no_undefined_flag 33429 33430# Flag to hardcode \$libdir into a binary during linking. 33431# This must work even if \$libdir does not exist 33432hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 33433 33434# Whether we need a single "-rpath" flag with a separated argument. 33435hardcode_libdir_separator=$lt_hardcode_libdir_separator 33436 33437# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 33438# DIR into the resulting binary. 33439hardcode_direct=$hardcode_direct 33440 33441# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 33442# DIR into the resulting binary and the resulting library dependency is 33443# "absolute",i.e impossible to change by setting \$shlibpath_var if the 33444# library is relocated. 33445hardcode_direct_absolute=$hardcode_direct_absolute 33446 33447# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 33448# into the resulting binary. 33449hardcode_minus_L=$hardcode_minus_L 33450 33451# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 33452# into the resulting binary. 33453hardcode_shlibpath_var=$hardcode_shlibpath_var 33454 33455# Set to "yes" if building a shared library automatically hardcodes DIR 33456# into the library and all subsequent libraries and executables linked 33457# against it. 33458hardcode_automatic=$hardcode_automatic 33459 33460# Set to yes if linker adds runtime paths of dependent libraries 33461# to runtime path list. 33462inherit_rpath=$inherit_rpath 33463 33464# Whether libtool must link a program against all its dependency libraries. 33465link_all_deplibs=$link_all_deplibs 33466 33467# Set to "yes" if exported symbols are required. 33468always_export_symbols=$always_export_symbols 33469 33470# The commands to list exported symbols. 33471export_symbols_cmds=$lt_export_symbols_cmds 33472 33473# Symbols that should not be listed in the preloaded symbols. 33474exclude_expsyms=$lt_exclude_expsyms 33475 33476# Symbols that must always be exported. 33477include_expsyms=$lt_include_expsyms 33478 33479# Commands necessary for linking programs (against libraries) with templates. 33480prelink_cmds=$lt_prelink_cmds 33481 33482# Commands necessary for finishing linking programs. 33483postlink_cmds=$lt_postlink_cmds 33484 33485# Specify filename containing input files. 33486file_list_spec=$lt_file_list_spec 33487 33488# How to hardcode a shared library path into an executable. 33489hardcode_action=$hardcode_action 33490 33491# The directories searched by this compiler when creating a shared library. 33492compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 33493 33494# Dependencies to place before and after the objects being linked to 33495# create a shared library. 33496predep_objects=$lt_predep_objects 33497postdep_objects=$lt_postdep_objects 33498predeps=$lt_predeps 33499postdeps=$lt_postdeps 33500 33501# The library search path used internally by the compiler when linking 33502# a shared library. 33503compiler_lib_search_path=$lt_compiler_lib_search_path 33504 33505# ### END LIBTOOL CONFIG 33506 33507_LT_EOF 33508 33509 cat <<'_LT_EOF' >> "$cfgfile" 33510 33511# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 33512 33513# func_munge_path_list VARIABLE PATH 33514# ----------------------------------- 33515# VARIABLE is name of variable containing _space_ separated list of 33516# directories to be munged by the contents of PATH, which is string 33517# having a format: 33518# "DIR[:DIR]:" 33519# string "DIR[ DIR]" will be prepended to VARIABLE 33520# ":DIR[:DIR]" 33521# string "DIR[ DIR]" will be appended to VARIABLE 33522# "DIRP[:DIRP]::[DIRA:]DIRA" 33523# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 33524# "DIRA[ DIRA]" will be appended to VARIABLE 33525# "DIR[:DIR]" 33526# VARIABLE will be replaced by "DIR[ DIR]" 33527func_munge_path_list () 33528{ 33529 case x$2 in 33530 x) 33531 ;; 33532 *:) 33533 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 33534 ;; 33535 x:*) 33536 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 33537 ;; 33538 *::*) 33539 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 33540 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 33541 ;; 33542 *) 33543 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 33544 ;; 33545 esac 33546} 33547 33548 33549# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 33550func_cc_basename () 33551{ 33552 for cc_temp in $*""; do 33553 case $cc_temp in 33554 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 33555 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 33556 \-*) ;; 33557 *) break;; 33558 esac 33559 done 33560 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 33561} 33562 33563 33564# ### END FUNCTIONS SHARED WITH CONFIGURE 33565 33566_LT_EOF 33567 33568 case $host_os in 33569 aix3*) 33570 cat <<\_LT_EOF >> "$cfgfile" 33571# AIX sometimes has problems with the GCC collect2 program. For some 33572# reason, if we set the COLLECT_NAMES environment variable, the problems 33573# vanish in a puff of smoke. 33574if test set != "${COLLECT_NAMES+set}"; then 33575 COLLECT_NAMES= 33576 export COLLECT_NAMES 33577fi 33578_LT_EOF 33579 ;; 33580 esac 33581 33582 33583ltmain=$ac_aux_dir/ltmain.sh 33584 33585 33586 # We use sed instead of cat because bash on DJGPP gets confused if 33587 # if finds mixed CR/LF and LF-only lines. Since sed operates in 33588 # text mode, it properly converts lines to CR/LF. This bash problem 33589 # is reportedly fixed, but why not run on old versions too? 33590 sed '$q' "$ltmain" >> "$cfgfile" \ 33591 || (rm -f "$cfgfile"; exit 1) 33592 33593 mv -f "$cfgfile" "$ofile" || 33594 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 33595 chmod +x "$ofile" 33596 33597 33598 cat <<_LT_EOF >> "$ofile" 33599 33600# ### BEGIN LIBTOOL TAG CONFIG: CXX 33601 33602# The linker used to build libraries. 33603LD=$lt_LD_CXX 33604 33605# How to create reloadable object files. 33606reload_flag=$lt_reload_flag_CXX 33607reload_cmds=$lt_reload_cmds_CXX 33608 33609# Commands used to build an old-style archive. 33610old_archive_cmds=$lt_old_archive_cmds_CXX 33611 33612# A language specific compiler. 33613CC=$lt_compiler_CXX 33614 33615# Is the compiler the GNU compiler? 33616with_gcc=$GCC_CXX 33617 33618# Compiler flag to turn off builtin functions. 33619no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 33620 33621# Additional compiler flags for building library objects. 33622pic_flag=$lt_lt_prog_compiler_pic_CXX 33623 33624# How to pass a linker flag through the compiler. 33625wl=$lt_lt_prog_compiler_wl_CXX 33626 33627# Compiler flag to prevent dynamic linking. 33628link_static_flag=$lt_lt_prog_compiler_static_CXX 33629 33630# Does compiler simultaneously support -c and -o options? 33631compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 33632 33633# Whether or not to add -lc for building shared libraries. 33634build_libtool_need_lc=$archive_cmds_need_lc_CXX 33635 33636# Whether or not to disallow shared libs when runtime libs are static. 33637allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 33638 33639# Compiler flag to allow reflexive dlopens. 33640export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 33641 33642# Compiler flag to generate shared objects directly from archives. 33643whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 33644 33645# Whether the compiler copes with passing no objects directly. 33646compiler_needs_object=$lt_compiler_needs_object_CXX 33647 33648# Create an old-style archive from a shared archive. 33649old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 33650 33651# Create a temporary old-style archive to link instead of a shared archive. 33652old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 33653 33654# Commands used to build a shared archive. 33655archive_cmds=$lt_archive_cmds_CXX 33656archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 33657 33658# Commands used to build a loadable module if different from building 33659# a shared archive. 33660module_cmds=$lt_module_cmds_CXX 33661module_expsym_cmds=$lt_module_expsym_cmds_CXX 33662 33663# Whether we are building with GNU ld or not. 33664with_gnu_ld=$lt_with_gnu_ld_CXX 33665 33666# Flag that allows shared libraries with undefined symbols to be built. 33667allow_undefined_flag=$lt_allow_undefined_flag_CXX 33668 33669# Flag that enforces no undefined symbols. 33670no_undefined_flag=$lt_no_undefined_flag_CXX 33671 33672# Flag to hardcode \$libdir into a binary during linking. 33673# This must work even if \$libdir does not exist 33674hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 33675 33676# Whether we need a single "-rpath" flag with a separated argument. 33677hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 33678 33679# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 33680# DIR into the resulting binary. 33681hardcode_direct=$hardcode_direct_CXX 33682 33683# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 33684# DIR into the resulting binary and the resulting library dependency is 33685# "absolute",i.e impossible to change by setting \$shlibpath_var if the 33686# library is relocated. 33687hardcode_direct_absolute=$hardcode_direct_absolute_CXX 33688 33689# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 33690# into the resulting binary. 33691hardcode_minus_L=$hardcode_minus_L_CXX 33692 33693# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 33694# into the resulting binary. 33695hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 33696 33697# Set to "yes" if building a shared library automatically hardcodes DIR 33698# into the library and all subsequent libraries and executables linked 33699# against it. 33700hardcode_automatic=$hardcode_automatic_CXX 33701 33702# Set to yes if linker adds runtime paths of dependent libraries 33703# to runtime path list. 33704inherit_rpath=$inherit_rpath_CXX 33705 33706# Whether libtool must link a program against all its dependency libraries. 33707link_all_deplibs=$link_all_deplibs_CXX 33708 33709# Set to "yes" if exported symbols are required. 33710always_export_symbols=$always_export_symbols_CXX 33711 33712# The commands to list exported symbols. 33713export_symbols_cmds=$lt_export_symbols_cmds_CXX 33714 33715# Symbols that should not be listed in the preloaded symbols. 33716exclude_expsyms=$lt_exclude_expsyms_CXX 33717 33718# Symbols that must always be exported. 33719include_expsyms=$lt_include_expsyms_CXX 33720 33721# Commands necessary for linking programs (against libraries) with templates. 33722prelink_cmds=$lt_prelink_cmds_CXX 33723 33724# Commands necessary for finishing linking programs. 33725postlink_cmds=$lt_postlink_cmds_CXX 33726 33727# Specify filename containing input files. 33728file_list_spec=$lt_file_list_spec_CXX 33729 33730# How to hardcode a shared library path into an executable. 33731hardcode_action=$hardcode_action_CXX 33732 33733# The directories searched by this compiler when creating a shared library. 33734compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX 33735 33736# Dependencies to place before and after the objects being linked to 33737# create a shared library. 33738predep_objects=$lt_predep_objects_CXX 33739postdep_objects=$lt_postdep_objects_CXX 33740predeps=$lt_predeps_CXX 33741postdeps=$lt_postdeps_CXX 33742 33743# The library search path used internally by the compiler when linking 33744# a shared library. 33745compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 33746 33747# ### END LIBTOOL TAG CONFIG: CXX 33748_LT_EOF 33749 33750 ;; 33751 33752 esac 33753done # for ac_tag 33754 33755 33756as_fn_exit 0 33757_ACEOF 33758ac_clean_files=$ac_clean_files_save 33759 33760test $ac_write_fail = 0 || 33761 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 33762 33763 33764# configure is writing to config.log, and then calls config.status. 33765# config.status does its own redirection, appending to config.log. 33766# Unfortunately, on DOS this fails, as config.log is still kept open 33767# by configure, so config.status won't be able to write to it; its 33768# output is simply discarded. So we exec the FD to /dev/null, 33769# effectively closing config.log, so it can be properly (re)opened and 33770# appended to by config.status. When coming back to configure, we 33771# need to make the FD available again. 33772if test "$no_create" != yes; then 33773 ac_cs_success=: 33774 ac_config_status_args= 33775 test "$silent" = yes && 33776 ac_config_status_args="$ac_config_status_args --quiet" 33777 exec 5>/dev/null 33778 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 33779 exec 5>>config.log 33780 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 33781 # would make configure fail if this is the last instruction. 33782 $ac_cs_success || as_fn_exit 1 33783fi 33784 33785# 33786# CONFIG_SUBDIRS section. 33787# 33788if test "$no_recursion" != yes; then 33789 33790 # Remove --cache-file, --srcdir, and --disable-option-checking arguments 33791 # so they do not pile up. 33792 ac_sub_configure_args= 33793 ac_prev= 33794 eval "set x $ac_configure_args" 33795 shift 33796 for ac_arg 33797 do 33798 if test -n "$ac_prev"; then 33799 ac_prev= 33800 continue 33801 fi 33802 case $ac_arg in 33803 -cache-file | --cache-file | --cache-fil | --cache-fi \ 33804 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 33805 ac_prev=cache_file ;; 33806 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 33807 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ 33808 | --c=*) 33809 ;; 33810 --config-cache | -C) 33811 ;; 33812 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 33813 ac_prev=srcdir ;; 33814 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 33815 ;; 33816 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 33817 ac_prev=prefix ;; 33818 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 33819 ;; 33820 --disable-option-checking) 33821 ;; 33822 *) 33823 case $ac_arg in 33824 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 33825 esac 33826 as_fn_append ac_sub_configure_args " '$ac_arg'" ;; 33827 esac 33828 done 33829 33830 # Always prepend --prefix to ensure using the same prefix 33831 # in subdir configurations. 33832 ac_arg="--prefix=$prefix" 33833 case $ac_arg in 33834 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 33835 esac 33836 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args" 33837 33838 # Pass --silent 33839 if test "$silent" = yes; then 33840 ac_sub_configure_args="--silent $ac_sub_configure_args" 33841 fi 33842 33843 # Always prepend --disable-option-checking to silence warnings, since 33844 # different subdirs can have different --enable and --with options. 33845 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args" 33846 33847 ac_popdir=`pwd` 33848 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue 33849 33850 # Do not complain, so a configure script can configure whichever 33851 # parts of a large source tree are present. 33852 test -d "$srcdir/$ac_dir" || continue 33853 33854 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" 33855 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5 33856 $as_echo "$ac_msg" >&6 33857 as_dir="$ac_dir"; as_fn_mkdir_p 33858 ac_builddir=. 33859 33860case "$ac_dir" in 33861.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 33862*) 33863 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 33864 # A ".." for each directory in $ac_dir_suffix. 33865 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 33866 case $ac_top_builddir_sub in 33867 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 33868 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 33869 esac ;; 33870esac 33871ac_abs_top_builddir=$ac_pwd 33872ac_abs_builddir=$ac_pwd$ac_dir_suffix 33873# for backward compatibility: 33874ac_top_builddir=$ac_top_build_prefix 33875 33876case $srcdir in 33877 .) # We are building in place. 33878 ac_srcdir=. 33879 ac_top_srcdir=$ac_top_builddir_sub 33880 ac_abs_top_srcdir=$ac_pwd ;; 33881 [\\/]* | ?:[\\/]* ) # Absolute name. 33882 ac_srcdir=$srcdir$ac_dir_suffix; 33883 ac_top_srcdir=$srcdir 33884 ac_abs_top_srcdir=$srcdir ;; 33885 *) # Relative name. 33886 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 33887 ac_top_srcdir=$ac_top_build_prefix$srcdir 33888 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 33889esac 33890ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 33891 33892 33893 cd "$ac_dir" 33894 33895 # Check for guested configure; otherwise get Cygnus style configure. 33896 if test -f "$ac_srcdir/configure.gnu"; then 33897 ac_sub_configure=$ac_srcdir/configure.gnu 33898 elif test -f "$ac_srcdir/configure"; then 33899 ac_sub_configure=$ac_srcdir/configure 33900 elif test -f "$ac_srcdir/configure.in"; then 33901 # This should be Cygnus configure. 33902 ac_sub_configure=$ac_aux_dir/configure 33903 else 33904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5 33905$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} 33906 ac_sub_configure= 33907 fi 33908 33909 # The recursion is here. 33910 if test -n "$ac_sub_configure"; then 33911 # Make the cache file name correct relative to the subdirectory. 33912 case $cache_file in 33913 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; 33914 *) # Relative name. 33915 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; 33916 esac 33917 33918 { $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 33919$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} 33920 # The eval makes quoting arguments work. 33921 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ 33922 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || 33923 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5 33924 fi 33925 33926 cd "$ac_popdir" 33927 done 33928fi 33929if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 33930 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 33931$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 33932fi 33933 33934