1@%:@! /bin/sh 2@%:@ Guess values for system-dependent variables and create Makefiles. 3@%:@ Generated by GNU Autoconf 2.69 for scamper 20211026. 4@%:@ 5@%:@ Report bugs to <mjl@luckie.org.nz>. 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 201 202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 206 PATH=/empty FPATH=/empty; export PATH FPATH 207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 209test \$(( 1 + 1 )) = 2 || 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 mjl@luckie.org.nz 278$0: about your system, including any error possibly output 279$0: before this message. Then install a modern shell, or 280$0: manually run the script under such a shell if you do 281$0: 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 @S|@? 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 "@S|@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 @S|@as_val. Take advantage of shells that can avoid forks. The arguments 400@%:@ must be portable across @S|@(()) 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 @S|@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=. 584LIB@&t@OBJS= 585cross_compiling=no 586subdirs= 587MFLAGS= 588MAKEFLAGS= 589 590# Identity of this package. 591PACKAGE_NAME='scamper' 592PACKAGE_TARNAME='scamper' 593PACKAGE_VERSION='20211026' 594PACKAGE_STRING='scamper 20211026' 595PACKAGE_BUGREPORT='mjl@luckie.org.nz' 596PACKAGE_URL='' 597 598ac_unique_file="scamper/scamper.c" 599# Factoring default headers for most tests. 600ac_includes_default="\ 601#include <stdio.h> 602#ifdef HAVE_SYS_TYPES_H 603# include <sys/types.h> 604#endif 605#ifdef HAVE_SYS_STAT_H 606# include <sys/stat.h> 607#endif 608#ifdef STDC_HEADERS 609# include <stdlib.h> 610# include <stddef.h> 611#else 612# ifdef HAVE_STDLIB_H 613# include <stdlib.h> 614# endif 615#endif 616#ifdef HAVE_STRING_H 617# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 618# include <memory.h> 619# endif 620# include <string.h> 621#endif 622#ifdef HAVE_STRINGS_H 623# include <strings.h> 624#endif 625#ifdef HAVE_INTTYPES_H 626# include <inttypes.h> 627#endif 628#ifdef HAVE_STDINT_H 629# include <stdint.h> 630#endif 631#ifdef HAVE_UNISTD_H 632# include <unistd.h> 633#endif" 634 635ac_subst_vars='am__EXEEXT_FALSE 636am__EXEEXT_TRUE 637LTLIBOBJS 638LIB@&t@OBJS 639PTHREAD_CFLAGS 640PTHREAD_LIBS 641PTHREAD_CXX 642PTHREAD_CC 643ax_pthread_config 644OPENSSL_LDFLAGS 645OPENSSL_LIBS 646OPENSSL_INCLUDES 647PKG_CONFIG 648WITH_SC_UPTIME_FALSE 649WITH_SC_UPTIME_TRUE 650WITH_SC_HOIHO_FALSE 651WITH_SC_HOIHO_TRUE 652PCRE_LIBS 653PCRE_CFLAGS 654privsep_dir_group 655privsep_dir_owner 656privsep_dir 657privsep_user 658CPP 659LT_SYS_LIBRARY_PATH 660OTOOL64 661OTOOL 662LIPO 663NMEDIT 664DSYMUTIL 665MANIFEST_TOOL 666RANLIB 667ac_ct_AR 668AR 669DLLTOOL 670OBJDUMP 671LN_S 672NM 673ac_ct_DUMPBIN 674DUMPBIN 675LD 676FGREP 677EGREP 678GREP 679SED 680am__fastdepCC_FALSE 681am__fastdepCC_TRUE 682CCDEPMODE 683am__nodep 684AMDEPBACKSLASH 685AMDEP_FALSE 686AMDEP_TRUE 687am__include 688DEPDIR 689OBJEXT 690EXEEXT 691ac_ct_CC 692CPPFLAGS 693LDFLAGS 694CFLAGS 695CC 696LIBTOOL 697AM_BACKSLASH 698AM_DEFAULT_VERBOSITY 699AM_DEFAULT_V 700AM_V 701CSCOPE 702ETAGS 703CTAGS 704am__untar 705am__tar 706AMTAR 707am__leading_dot 708SET_MAKE 709AWK 710mkdir_p 711MKDIR_P 712INSTALL_STRIP_PROGRAM 713STRIP 714install_sh 715MAKEINFO 716AUTOHEADER 717AUTOMAKE 718AUTOCONF 719ACLOCAL 720VERSION 721PACKAGE 722CYGPATH_W 723am__isrc 724INSTALL_DATA 725INSTALL_SCRIPT 726INSTALL_PROGRAM 727target_os 728target_vendor 729target_cpu 730target 731host_os 732host_vendor 733host_cpu 734host 735build_os 736build_vendor 737build_cpu 738build 739target_alias 740host_alias 741build_alias 742LIBS 743ECHO_T 744ECHO_N 745ECHO_C 746DEFS 747mandir 748localedir 749libdir 750psdir 751pdfdir 752dvidir 753htmldir 754infodir 755docdir 756oldincludedir 757includedir 758localstatedir 759sharedstatedir 760sysconfdir 761datadir 762datarootdir 763libexecdir 764sbindir 765bindir 766program_transform_name 767prefix 768exec_prefix 769PACKAGE_URL 770PACKAGE_BUGREPORT 771PACKAGE_STRING 772PACKAGE_VERSION 773PACKAGE_TARNAME 774PACKAGE_NAME 775PATH_SEPARATOR 776SHELL 777am__quote' 778ac_subst_files='' 779ac_user_opts=' 780enable_option_checking 781enable_silent_rules 782enable_shared 783enable_static 784with_pic 785enable_fast_install 786with_aix_soname 787enable_dependency_tracking 788with_gnu_ld 789with_sysroot 790enable_libtool_lock 791enable_debug 792enable_privsep 793with_privsep_user 794with_privsep_dir 795with_privsep_dir_owner 796with_privsep_dir_group 797enable_debug_file 798with_dmalloc 799with_pcre 800with_pcre2 801with_sc_hoiho 802with_sc_uptime 803with_openssl 804enable_threads 805' 806 ac_precious_vars='build_alias 807host_alias 808target_alias 809CC 810CFLAGS 811LDFLAGS 812LIBS 813CPPFLAGS 814LT_SYS_LIBRARY_PATH 815CPP' 816 817 818# Initialize some variables set by options. 819ac_init_help= 820ac_init_version=false 821ac_unrecognized_opts= 822ac_unrecognized_sep= 823# The variables have the same names as the options, with 824# dashes changed to underlines. 825cache_file=/dev/null 826exec_prefix=NONE 827no_create= 828no_recursion= 829prefix=NONE 830program_prefix=NONE 831program_suffix=NONE 832program_transform_name=s,x,x, 833silent= 834site= 835srcdir= 836verbose= 837x_includes=NONE 838x_libraries=NONE 839 840# Installation directory options. 841# These are left unexpanded so users can "make install exec_prefix=/foo" 842# and all the variables that are supposed to be based on exec_prefix 843# by default will actually change. 844# Use braces instead of parens because sh, perl, etc. also accept them. 845# (The list follows the same order as the GNU Coding Standards.) 846bindir='${exec_prefix}/bin' 847sbindir='${exec_prefix}/sbin' 848libexecdir='${exec_prefix}/libexec' 849datarootdir='${prefix}/share' 850datadir='${datarootdir}' 851sysconfdir='${prefix}/etc' 852sharedstatedir='${prefix}/com' 853localstatedir='${prefix}/var' 854includedir='${prefix}/include' 855oldincludedir='/usr/include' 856docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 857infodir='${datarootdir}/info' 858htmldir='${docdir}' 859dvidir='${docdir}' 860pdfdir='${docdir}' 861psdir='${docdir}' 862libdir='${exec_prefix}/lib' 863localedir='${datarootdir}/locale' 864mandir='${datarootdir}/man' 865 866ac_prev= 867ac_dashdash= 868for ac_option 869do 870 # If the previous option needs an argument, assign it. 871 if test -n "$ac_prev"; then 872 eval $ac_prev=\$ac_option 873 ac_prev= 874 continue 875 fi 876 877 case $ac_option in 878 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 879 *=) ac_optarg= ;; 880 *) ac_optarg=yes ;; 881 esac 882 883 # Accept the important Cygnus configure options, so we can diagnose typos. 884 885 case $ac_dashdash$ac_option in 886 --) 887 ac_dashdash=yes ;; 888 889 -bindir | --bindir | --bindi | --bind | --bin | --bi) 890 ac_prev=bindir ;; 891 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 892 bindir=$ac_optarg ;; 893 894 -build | --build | --buil | --bui | --bu) 895 ac_prev=build_alias ;; 896 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 897 build_alias=$ac_optarg ;; 898 899 -cache-file | --cache-file | --cache-fil | --cache-fi \ 900 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 901 ac_prev=cache_file ;; 902 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 903 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 904 cache_file=$ac_optarg ;; 905 906 --config-cache | -C) 907 cache_file=config.cache ;; 908 909 -datadir | --datadir | --datadi | --datad) 910 ac_prev=datadir ;; 911 -datadir=* | --datadir=* | --datadi=* | --datad=*) 912 datadir=$ac_optarg ;; 913 914 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 915 | --dataroo | --dataro | --datar) 916 ac_prev=datarootdir ;; 917 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 918 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 919 datarootdir=$ac_optarg ;; 920 921 -disable-* | --disable-*) 922 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 923 # Reject names that are not valid shell variable names. 924 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 925 as_fn_error $? "invalid feature name: $ac_useropt" 926 ac_useropt_orig=$ac_useropt 927 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 928 case $ac_user_opts in 929 *" 930"enable_$ac_useropt" 931"*) ;; 932 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 933 ac_unrecognized_sep=', ';; 934 esac 935 eval enable_$ac_useropt=no ;; 936 937 -docdir | --docdir | --docdi | --doc | --do) 938 ac_prev=docdir ;; 939 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 940 docdir=$ac_optarg ;; 941 942 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 943 ac_prev=dvidir ;; 944 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 945 dvidir=$ac_optarg ;; 946 947 -enable-* | --enable-*) 948 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 949 # Reject names that are not valid shell variable names. 950 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 951 as_fn_error $? "invalid feature name: $ac_useropt" 952 ac_useropt_orig=$ac_useropt 953 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 954 case $ac_user_opts in 955 *" 956"enable_$ac_useropt" 957"*) ;; 958 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 959 ac_unrecognized_sep=', ';; 960 esac 961 eval enable_$ac_useropt=\$ac_optarg ;; 962 963 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 964 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 965 | --exec | --exe | --ex) 966 ac_prev=exec_prefix ;; 967 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 968 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 969 | --exec=* | --exe=* | --ex=*) 970 exec_prefix=$ac_optarg ;; 971 972 -gas | --gas | --ga | --g) 973 # Obsolete; use --with-gas. 974 with_gas=yes ;; 975 976 -help | --help | --hel | --he | -h) 977 ac_init_help=long ;; 978 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 979 ac_init_help=recursive ;; 980 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 981 ac_init_help=short ;; 982 983 -host | --host | --hos | --ho) 984 ac_prev=host_alias ;; 985 -host=* | --host=* | --hos=* | --ho=*) 986 host_alias=$ac_optarg ;; 987 988 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 989 ac_prev=htmldir ;; 990 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 991 | --ht=*) 992 htmldir=$ac_optarg ;; 993 994 -includedir | --includedir | --includedi | --included | --include \ 995 | --includ | --inclu | --incl | --inc) 996 ac_prev=includedir ;; 997 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 998 | --includ=* | --inclu=* | --incl=* | --inc=*) 999 includedir=$ac_optarg ;; 1000 1001 -infodir | --infodir | --infodi | --infod | --info | --inf) 1002 ac_prev=infodir ;; 1003 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1004 infodir=$ac_optarg ;; 1005 1006 -libdir | --libdir | --libdi | --libd) 1007 ac_prev=libdir ;; 1008 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1009 libdir=$ac_optarg ;; 1010 1011 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1012 | --libexe | --libex | --libe) 1013 ac_prev=libexecdir ;; 1014 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1015 | --libexe=* | --libex=* | --libe=*) 1016 libexecdir=$ac_optarg ;; 1017 1018 -localedir | --localedir | --localedi | --localed | --locale) 1019 ac_prev=localedir ;; 1020 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1021 localedir=$ac_optarg ;; 1022 1023 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1024 | --localstate | --localstat | --localsta | --localst | --locals) 1025 ac_prev=localstatedir ;; 1026 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1027 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1028 localstatedir=$ac_optarg ;; 1029 1030 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1031 ac_prev=mandir ;; 1032 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1033 mandir=$ac_optarg ;; 1034 1035 -nfp | --nfp | --nf) 1036 # Obsolete; use --without-fp. 1037 with_fp=no ;; 1038 1039 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1040 | --no-cr | --no-c | -n) 1041 no_create=yes ;; 1042 1043 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1044 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1045 no_recursion=yes ;; 1046 1047 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1048 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1049 | --oldin | --oldi | --old | --ol | --o) 1050 ac_prev=oldincludedir ;; 1051 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1052 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1053 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1054 oldincludedir=$ac_optarg ;; 1055 1056 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1057 ac_prev=prefix ;; 1058 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1059 prefix=$ac_optarg ;; 1060 1061 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1062 | --program-pre | --program-pr | --program-p) 1063 ac_prev=program_prefix ;; 1064 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1065 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1066 program_prefix=$ac_optarg ;; 1067 1068 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1069 | --program-suf | --program-su | --program-s) 1070 ac_prev=program_suffix ;; 1071 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1072 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1073 program_suffix=$ac_optarg ;; 1074 1075 -program-transform-name | --program-transform-name \ 1076 | --program-transform-nam | --program-transform-na \ 1077 | --program-transform-n | --program-transform- \ 1078 | --program-transform | --program-transfor \ 1079 | --program-transfo | --program-transf \ 1080 | --program-trans | --program-tran \ 1081 | --progr-tra | --program-tr | --program-t) 1082 ac_prev=program_transform_name ;; 1083 -program-transform-name=* | --program-transform-name=* \ 1084 | --program-transform-nam=* | --program-transform-na=* \ 1085 | --program-transform-n=* | --program-transform-=* \ 1086 | --program-transform=* | --program-transfor=* \ 1087 | --program-transfo=* | --program-transf=* \ 1088 | --program-trans=* | --program-tran=* \ 1089 | --progr-tra=* | --program-tr=* | --program-t=*) 1090 program_transform_name=$ac_optarg ;; 1091 1092 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1093 ac_prev=pdfdir ;; 1094 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1095 pdfdir=$ac_optarg ;; 1096 1097 -psdir | --psdir | --psdi | --psd | --ps) 1098 ac_prev=psdir ;; 1099 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1100 psdir=$ac_optarg ;; 1101 1102 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1103 | -silent | --silent | --silen | --sile | --sil) 1104 silent=yes ;; 1105 1106 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1107 ac_prev=sbindir ;; 1108 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1109 | --sbi=* | --sb=*) 1110 sbindir=$ac_optarg ;; 1111 1112 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1113 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1114 | --sharedst | --shareds | --shared | --share | --shar \ 1115 | --sha | --sh) 1116 ac_prev=sharedstatedir ;; 1117 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1118 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1119 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1120 | --sha=* | --sh=*) 1121 sharedstatedir=$ac_optarg ;; 1122 1123 -site | --site | --sit) 1124 ac_prev=site ;; 1125 -site=* | --site=* | --sit=*) 1126 site=$ac_optarg ;; 1127 1128 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1129 ac_prev=srcdir ;; 1130 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1131 srcdir=$ac_optarg ;; 1132 1133 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1134 | --syscon | --sysco | --sysc | --sys | --sy) 1135 ac_prev=sysconfdir ;; 1136 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1137 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1138 sysconfdir=$ac_optarg ;; 1139 1140 -target | --target | --targe | --targ | --tar | --ta | --t) 1141 ac_prev=target_alias ;; 1142 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1143 target_alias=$ac_optarg ;; 1144 1145 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1146 verbose=yes ;; 1147 1148 -version | --version | --versio | --versi | --vers | -V) 1149 ac_init_version=: ;; 1150 1151 -with-* | --with-*) 1152 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1153 # Reject names that are not valid shell variable names. 1154 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1155 as_fn_error $? "invalid package name: $ac_useropt" 1156 ac_useropt_orig=$ac_useropt 1157 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1158 case $ac_user_opts in 1159 *" 1160"with_$ac_useropt" 1161"*) ;; 1162 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1163 ac_unrecognized_sep=', ';; 1164 esac 1165 eval with_$ac_useropt=\$ac_optarg ;; 1166 1167 -without-* | --without-*) 1168 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1169 # Reject names that are not valid shell variable names. 1170 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1171 as_fn_error $? "invalid package name: $ac_useropt" 1172 ac_useropt_orig=$ac_useropt 1173 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1174 case $ac_user_opts in 1175 *" 1176"with_$ac_useropt" 1177"*) ;; 1178 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1179 ac_unrecognized_sep=', ';; 1180 esac 1181 eval with_$ac_useropt=no ;; 1182 1183 --x) 1184 # Obsolete; use --with-x. 1185 with_x=yes ;; 1186 1187 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1188 | --x-incl | --x-inc | --x-in | --x-i) 1189 ac_prev=x_includes ;; 1190 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1191 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1192 x_includes=$ac_optarg ;; 1193 1194 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1195 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1196 ac_prev=x_libraries ;; 1197 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1198 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1199 x_libraries=$ac_optarg ;; 1200 1201 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1202Try \`$0 --help' for more information" 1203 ;; 1204 1205 *=*) 1206 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1207 # Reject names that are not valid shell variable names. 1208 case $ac_envvar in #( 1209 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1210 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1211 esac 1212 eval $ac_envvar=\$ac_optarg 1213 export $ac_envvar ;; 1214 1215 *) 1216 # FIXME: should be removed in autoconf 3.0. 1217 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1218 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1219 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1220 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1221 ;; 1222 1223 esac 1224done 1225 1226if test -n "$ac_prev"; then 1227 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1228 as_fn_error $? "missing argument to $ac_option" 1229fi 1230 1231if test -n "$ac_unrecognized_opts"; then 1232 case $enable_option_checking in 1233 no) ;; 1234 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1235 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1236 esac 1237fi 1238 1239# Check all directory arguments for consistency. 1240for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1241 datadir sysconfdir sharedstatedir localstatedir includedir \ 1242 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1243 libdir localedir mandir 1244do 1245 eval ac_val=\$$ac_var 1246 # Remove trailing slashes. 1247 case $ac_val in 1248 */ ) 1249 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1250 eval $ac_var=\$ac_val;; 1251 esac 1252 # Be sure to have absolute directory names. 1253 case $ac_val in 1254 [\\/$]* | ?:[\\/]* ) continue;; 1255 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1256 esac 1257 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1258done 1259 1260# There might be people who depend on the old broken behavior: `$host' 1261# used to hold the argument of --host etc. 1262# FIXME: To remove some day. 1263build=$build_alias 1264host=$host_alias 1265target=$target_alias 1266 1267# FIXME: To remove some day. 1268if test "x$host_alias" != x; then 1269 if test "x$build_alias" = x; then 1270 cross_compiling=maybe 1271 elif test "x$build_alias" != "x$host_alias"; then 1272 cross_compiling=yes 1273 fi 1274fi 1275 1276ac_tool_prefix= 1277test -n "$host_alias" && ac_tool_prefix=$host_alias- 1278 1279test "$silent" = yes && exec 6>/dev/null 1280 1281 1282ac_pwd=`pwd` && test -n "$ac_pwd" && 1283ac_ls_di=`ls -di .` && 1284ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1285 as_fn_error $? "working directory cannot be determined" 1286test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1287 as_fn_error $? "pwd does not report name of working directory" 1288 1289 1290# Find the source files, if location was not specified. 1291if test -z "$srcdir"; then 1292 ac_srcdir_defaulted=yes 1293 # Try the directory containing this script, then the parent directory. 1294 ac_confdir=`$as_dirname -- "$as_myself" || 1295$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1296 X"$as_myself" : 'X\(//\)[^/]' \| \ 1297 X"$as_myself" : 'X\(//\)$' \| \ 1298 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1299$as_echo X"$as_myself" | 1300 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1301 s//\1/ 1302 q 1303 } 1304 /^X\(\/\/\)[^/].*/{ 1305 s//\1/ 1306 q 1307 } 1308 /^X\(\/\/\)$/{ 1309 s//\1/ 1310 q 1311 } 1312 /^X\(\/\).*/{ 1313 s//\1/ 1314 q 1315 } 1316 s/.*/./; q'` 1317 srcdir=$ac_confdir 1318 if test ! -r "$srcdir/$ac_unique_file"; then 1319 srcdir=.. 1320 fi 1321else 1322 ac_srcdir_defaulted=no 1323fi 1324if test ! -r "$srcdir/$ac_unique_file"; then 1325 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1326 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1327fi 1328ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1329ac_abs_confdir=`( 1330 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1331 pwd)` 1332# When building in place, set srcdir=. 1333if test "$ac_abs_confdir" = "$ac_pwd"; then 1334 srcdir=. 1335fi 1336# Remove unnecessary trailing slashes from srcdir. 1337# Double slashes in file names in object file debugging info 1338# mess up M-x gdb in Emacs. 1339case $srcdir in 1340*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1341esac 1342for ac_var in $ac_precious_vars; do 1343 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1344 eval ac_env_${ac_var}_value=\$${ac_var} 1345 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1346 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1347done 1348 1349# 1350# Report the --help message. 1351# 1352if test "$ac_init_help" = "long"; then 1353 # Omit some internal or obsolete options to make the list less imposing. 1354 # This message is too long to be a string in the A/UX 3.1 sh. 1355 cat <<_ACEOF 1356\`configure' configures scamper 20211026 to adapt to many kinds of systems. 1357 1358Usage: $0 [OPTION]... [VAR=VALUE]... 1359 1360To assign environment variables (e.g., CC, CFLAGS...), specify them as 1361VAR=VALUE. See below for descriptions of some of the useful variables. 1362 1363Defaults for the options are specified in brackets. 1364 1365Configuration: 1366 -h, --help display this help and exit 1367 --help=short display options specific to this package 1368 --help=recursive display the short help of all the included packages 1369 -V, --version display version information and exit 1370 -q, --quiet, --silent do not print \`checking ...' messages 1371 --cache-file=FILE cache test results in FILE [disabled] 1372 -C, --config-cache alias for \`--cache-file=config.cache' 1373 -n, --no-create do not create output files 1374 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1375 1376Installation directories: 1377 --prefix=PREFIX install architecture-independent files in PREFIX 1378 @<:@@S|@ac_default_prefix@:>@ 1379 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1380 @<:@PREFIX@:>@ 1381 1382By default, \`make install' will install all the files in 1383\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1384an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1385for instance \`--prefix=\$HOME'. 1386 1387For better control, use the options below. 1388 1389Fine tuning of the installation directories: 1390 --bindir=DIR user executables [EPREFIX/bin] 1391 --sbindir=DIR system admin executables [EPREFIX/sbin] 1392 --libexecdir=DIR program executables [EPREFIX/libexec] 1393 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1394 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1395 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1396 --libdir=DIR object code libraries [EPREFIX/lib] 1397 --includedir=DIR C header files [PREFIX/include] 1398 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1399 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1400 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1401 --infodir=DIR info documentation [DATAROOTDIR/info] 1402 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1403 --mandir=DIR man documentation [DATAROOTDIR/man] 1404 --docdir=DIR documentation root @<:@DATAROOTDIR/doc/scamper@:>@ 1405 --htmldir=DIR html documentation [DOCDIR] 1406 --dvidir=DIR dvi documentation [DOCDIR] 1407 --pdfdir=DIR pdf documentation [DOCDIR] 1408 --psdir=DIR ps documentation [DOCDIR] 1409_ACEOF 1410 1411 cat <<\_ACEOF 1412 1413Program names: 1414 --program-prefix=PREFIX prepend PREFIX to installed program names 1415 --program-suffix=SUFFIX append SUFFIX to installed program names 1416 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1417 1418System types: 1419 --build=BUILD configure for building on BUILD [guessed] 1420 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1421 --target=TARGET configure for building compilers for TARGET [HOST] 1422_ACEOF 1423fi 1424 1425if test -n "$ac_init_help"; then 1426 case $ac_init_help in 1427 short | recursive ) echo "Configuration of scamper 20211026:";; 1428 esac 1429 cat <<\_ACEOF 1430 1431Optional Features: 1432 --disable-option-checking ignore unrecognized --enable/--with options 1433 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1434 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1435 --enable-silent-rules less verbose build output (undo: "make V=1") 1436 --disable-silent-rules verbose build output (undo: "make V=0") 1437 --enable-shared@<:@=PKGS@:>@ build shared libraries @<:@default=yes@:>@ 1438 --enable-static@<:@=PKGS@:>@ build static libraries @<:@default=yes@:>@ 1439 --enable-fast-install@<:@=PKGS@:>@ 1440 optimize for fast installation @<:@default=yes@:>@ 1441 --enable-dependency-tracking 1442 do not reject slow dependency extractors 1443 --disable-dependency-tracking 1444 speeds up one-time build 1445 --disable-libtool-lock avoid locking (might break parallel builds) 1446 --enable-debug build with debugging symbols 1447 --disable-privsep disable privilege separation 1448 --disable-debug-file remove support for generating a debug file 1449 --disable-threads disable use of threads 1450 1451Optional Packages: 1452 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1453 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1454 --with-pic@<:@=PKGS@:>@ try to use only PIC/non-PIC objects @<:@default=use 1455 both@:>@ 1456 --with-aix-soname=aix|svr4|both 1457 shared library versioning (aka "SONAME") variant to 1458 provide on AIX, @<:@default=aix@:>@. 1459 --with-gnu-ld assume the C compiler uses GNU ld @<:@default=no@:>@ 1460 --with-sysroot@<:@=DIR@:>@ Search for dependent libraries within DIR (or the 1461 compiler's sysroot if not specified). 1462 --with-privsep-user=USER 1463 sets user name for privsep process 1464 --with-privsep-dir=DIR sets chroot directory for privsep process 1465 --with-privsep-dir-owner=USER 1466 sets chroot directory owner 1467 --with-privsep-dir-group=GROUP 1468 sets chroot directory group id 1469 --with-dmalloc enable support for dmalloc 1470 --with-pcre use pcre for regex engine 1471 --with-pcre2 use pcre2 for regex engine 1472 --with-sc_hoiho enable support for sc_hoiho 1473 --with-sc_uptime enable support for sc_uptime 1474 --with-openssl=DIR root of the OpenSSL directory 1475 1476Some influential environment variables: 1477 CC C compiler command 1478 CFLAGS C compiler flags 1479 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1480 nonstandard directory <lib dir> 1481 LIBS libraries to pass to the linker, e.g. -l<library> 1482 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1483 you have headers in a nonstandard directory <include dir> 1484 LT_SYS_LIBRARY_PATH 1485 User-defined run-time library search path. 1486 CPP C preprocessor 1487 1488Use these variables to override the choices made by `configure' or to help 1489it to find libraries and programs with nonstandard names/locations. 1490 1491Report bugs to <mjl@luckie.org.nz>. 1492_ACEOF 1493ac_status=$? 1494fi 1495 1496if test "$ac_init_help" = "recursive"; then 1497 # If there are subdirs, report their specific --help. 1498 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1499 test -d "$ac_dir" || 1500 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1501 continue 1502 ac_builddir=. 1503 1504case "$ac_dir" in 1505.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1506*) 1507 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1508 # A ".." for each directory in $ac_dir_suffix. 1509 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1510 case $ac_top_builddir_sub in 1511 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1512 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1513 esac ;; 1514esac 1515ac_abs_top_builddir=$ac_pwd 1516ac_abs_builddir=$ac_pwd$ac_dir_suffix 1517# for backward compatibility: 1518ac_top_builddir=$ac_top_build_prefix 1519 1520case $srcdir in 1521 .) # We are building in place. 1522 ac_srcdir=. 1523 ac_top_srcdir=$ac_top_builddir_sub 1524 ac_abs_top_srcdir=$ac_pwd ;; 1525 [\\/]* | ?:[\\/]* ) # Absolute name. 1526 ac_srcdir=$srcdir$ac_dir_suffix; 1527 ac_top_srcdir=$srcdir 1528 ac_abs_top_srcdir=$srcdir ;; 1529 *) # Relative name. 1530 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1531 ac_top_srcdir=$ac_top_build_prefix$srcdir 1532 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1533esac 1534ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1535 1536 cd "$ac_dir" || { ac_status=$?; continue; } 1537 # Check for guested configure. 1538 if test -f "$ac_srcdir/configure.gnu"; then 1539 echo && 1540 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1541 elif test -f "$ac_srcdir/configure"; then 1542 echo && 1543 $SHELL "$ac_srcdir/configure" --help=recursive 1544 else 1545 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1546 fi || ac_status=$? 1547 cd "$ac_pwd" || { ac_status=$?; break; } 1548 done 1549fi 1550 1551test -n "$ac_init_help" && exit $ac_status 1552if $ac_init_version; then 1553 cat <<\_ACEOF 1554scamper configure 20211026 1555generated by GNU Autoconf 2.69 1556 1557Copyright (C) 2012 Free Software Foundation, Inc. 1558This configure script is free software; the Free Software Foundation 1559gives unlimited permission to copy, distribute and modify it. 1560_ACEOF 1561 exit 1562fi 1563 1564## ------------------------ ## 1565## Autoconf initialization. ## 1566## ------------------------ ## 1567 1568@%:@ ac_fn_c_try_compile LINENO 1569@%:@ -------------------------- 1570@%:@ Try to compile conftest.@S|@ac_ext, and return whether this succeeded. 1571ac_fn_c_try_compile () 1572{ 1573 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1574 rm -f conftest.$ac_objext 1575 if { { ac_try="$ac_compile" 1576case "(($ac_try" in 1577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1578 *) ac_try_echo=$ac_try;; 1579esac 1580eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1581$as_echo "$ac_try_echo"; } >&5 1582 (eval "$ac_compile") 2>conftest.err 1583 ac_status=$? 1584 if test -s conftest.err; then 1585 grep -v '^ *+' conftest.err >conftest.er1 1586 cat conftest.er1 >&5 1587 mv -f conftest.er1 conftest.err 1588 fi 1589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1590 test $ac_status = 0; } && { 1591 test -z "$ac_c_werror_flag" || 1592 test ! -s conftest.err 1593 } && test -s conftest.$ac_objext; then : 1594 ac_retval=0 1595else 1596 $as_echo "$as_me: failed program was:" >&5 1597sed 's/^/| /' conftest.$ac_ext >&5 1598 1599 ac_retval=1 1600fi 1601 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1602 as_fn_set_status $ac_retval 1603 1604} @%:@ ac_fn_c_try_compile 1605 1606@%:@ ac_fn_c_try_link LINENO 1607@%:@ ----------------------- 1608@%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded. 1609ac_fn_c_try_link () 1610{ 1611 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1612 rm -f conftest.$ac_objext conftest$ac_exeext 1613 if { { ac_try="$ac_link" 1614case "(($ac_try" in 1615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1616 *) ac_try_echo=$ac_try;; 1617esac 1618eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1619$as_echo "$ac_try_echo"; } >&5 1620 (eval "$ac_link") 2>conftest.err 1621 ac_status=$? 1622 if test -s conftest.err; then 1623 grep -v '^ *+' conftest.err >conftest.er1 1624 cat conftest.er1 >&5 1625 mv -f conftest.er1 conftest.err 1626 fi 1627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1628 test $ac_status = 0; } && { 1629 test -z "$ac_c_werror_flag" || 1630 test ! -s conftest.err 1631 } && test -s conftest$ac_exeext && { 1632 test "$cross_compiling" = yes || 1633 test -x conftest$ac_exeext 1634 }; then : 1635 ac_retval=0 1636else 1637 $as_echo "$as_me: failed program was:" >&5 1638sed 's/^/| /' conftest.$ac_ext >&5 1639 1640 ac_retval=1 1641fi 1642 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1643 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1644 # interfere with the next link command; also delete a directory that is 1645 # left behind by Apple's compiler. We do this before executing the actions. 1646 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1647 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1648 as_fn_set_status $ac_retval 1649 1650} @%:@ ac_fn_c_try_link 1651 1652@%:@ ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1653@%:@ ------------------------------------------------------- 1654@%:@ Tests whether HEADER exists and can be compiled using the include files in 1655@%:@ INCLUDES, setting the cache variable VAR accordingly. 1656ac_fn_c_check_header_compile () 1657{ 1658 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1660$as_echo_n "checking for $2... " >&6; } 1661if eval \${$3+:} false; then : 1662 $as_echo_n "(cached) " >&6 1663else 1664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1665/* end confdefs.h. */ 1666$4 1667@%:@include <$2> 1668_ACEOF 1669if ac_fn_c_try_compile "$LINENO"; then : 1670 eval "$3=yes" 1671else 1672 eval "$3=no" 1673fi 1674rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1675fi 1676eval ac_res=\$$3 1677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1678$as_echo "$ac_res" >&6; } 1679 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1680 1681} @%:@ ac_fn_c_check_header_compile 1682 1683@%:@ ac_fn_c_try_cpp LINENO 1684@%:@ ---------------------- 1685@%:@ Try to preprocess conftest.@S|@ac_ext, and return whether this succeeded. 1686ac_fn_c_try_cpp () 1687{ 1688 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1689 if { { ac_try="$ac_cpp conftest.$ac_ext" 1690case "(($ac_try" in 1691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1692 *) ac_try_echo=$ac_try;; 1693esac 1694eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1695$as_echo "$ac_try_echo"; } >&5 1696 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1697 ac_status=$? 1698 if test -s conftest.err; then 1699 grep -v '^ *+' conftest.err >conftest.er1 1700 cat conftest.er1 >&5 1701 mv -f conftest.er1 conftest.err 1702 fi 1703 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1704 test $ac_status = 0; } > conftest.i && { 1705 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1706 test ! -s conftest.err 1707 }; then : 1708 ac_retval=0 1709else 1710 $as_echo "$as_me: failed program was:" >&5 1711sed 's/^/| /' conftest.$ac_ext >&5 1712 1713 ac_retval=1 1714fi 1715 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1716 as_fn_set_status $ac_retval 1717 1718} @%:@ ac_fn_c_try_cpp 1719 1720@%:@ ac_fn_c_try_run LINENO 1721@%:@ ---------------------- 1722@%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded. Assumes 1723@%:@ that executables *can* be run. 1724ac_fn_c_try_run () 1725{ 1726 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1727 if { { ac_try="$ac_link" 1728case "(($ac_try" in 1729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1730 *) ac_try_echo=$ac_try;; 1731esac 1732eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1733$as_echo "$ac_try_echo"; } >&5 1734 (eval "$ac_link") 2>&5 1735 ac_status=$? 1736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1737 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1738 { { case "(($ac_try" in 1739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1740 *) ac_try_echo=$ac_try;; 1741esac 1742eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1743$as_echo "$ac_try_echo"; } >&5 1744 (eval "$ac_try") 2>&5 1745 ac_status=$? 1746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1747 test $ac_status = 0; }; }; then : 1748 ac_retval=0 1749else 1750 $as_echo "$as_me: program exited with status $ac_status" >&5 1751 $as_echo "$as_me: failed program was:" >&5 1752sed 's/^/| /' conftest.$ac_ext >&5 1753 1754 ac_retval=$ac_status 1755fi 1756 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1757 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1758 as_fn_set_status $ac_retval 1759 1760} @%:@ ac_fn_c_try_run 1761 1762@%:@ ac_fn_c_check_func LINENO FUNC VAR 1763@%:@ ---------------------------------- 1764@%:@ Tests whether FUNC exists, setting the cache variable VAR accordingly 1765ac_fn_c_check_func () 1766{ 1767 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1769$as_echo_n "checking for $2... " >&6; } 1770if eval \${$3+:} false; then : 1771 $as_echo_n "(cached) " >&6 1772else 1773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1774/* end confdefs.h. */ 1775/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1776 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1777#define $2 innocuous_$2 1778 1779/* System header to define __stub macros and hopefully few prototypes, 1780 which can conflict with char $2 (); below. 1781 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1782 <limits.h> exists even on freestanding compilers. */ 1783 1784#ifdef __STDC__ 1785# include <limits.h> 1786#else 1787# include <assert.h> 1788#endif 1789 1790#undef $2 1791 1792/* Override any GCC internal prototype to avoid an error. 1793 Use char because int might match the return type of a GCC 1794 builtin and then its argument prototype would still apply. */ 1795#ifdef __cplusplus 1796extern "C" 1797#endif 1798char $2 (); 1799/* The GNU C library defines this for functions which it implements 1800 to always fail with ENOSYS. Some functions are actually named 1801 something starting with __ and the normal name is an alias. */ 1802#if defined __stub_$2 || defined __stub___$2 1803choke me 1804#endif 1805 1806int 1807main () 1808{ 1809return $2 (); 1810 ; 1811 return 0; 1812} 1813_ACEOF 1814if ac_fn_c_try_link "$LINENO"; then : 1815 eval "$3=yes" 1816else 1817 eval "$3=no" 1818fi 1819rm -f core conftest.err conftest.$ac_objext \ 1820 conftest$ac_exeext conftest.$ac_ext 1821fi 1822eval ac_res=\$$3 1823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1824$as_echo "$ac_res" >&6; } 1825 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1826 1827} @%:@ ac_fn_c_check_func 1828 1829@%:@ ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1830@%:@ ------------------------------------------------------- 1831@%:@ Tests whether HEADER exists, giving a warning if it cannot be compiled using 1832@%:@ the include files in INCLUDES and setting the cache variable VAR 1833@%:@ accordingly. 1834ac_fn_c_check_header_mongrel () 1835{ 1836 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1837 if eval \${$3+:} false; then : 1838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1839$as_echo_n "checking for $2... " >&6; } 1840if eval \${$3+:} false; then : 1841 $as_echo_n "(cached) " >&6 1842fi 1843eval ac_res=\$$3 1844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1845$as_echo "$ac_res" >&6; } 1846else 1847 # Is the header compilable? 1848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1849$as_echo_n "checking $2 usability... " >&6; } 1850cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1851/* end confdefs.h. */ 1852$4 1853@%:@include <$2> 1854_ACEOF 1855if ac_fn_c_try_compile "$LINENO"; then : 1856 ac_header_compiler=yes 1857else 1858 ac_header_compiler=no 1859fi 1860rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1862$as_echo "$ac_header_compiler" >&6; } 1863 1864# Is the header present? 1865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1866$as_echo_n "checking $2 presence... " >&6; } 1867cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1868/* end confdefs.h. */ 1869@%:@include <$2> 1870_ACEOF 1871if ac_fn_c_try_cpp "$LINENO"; then : 1872 ac_header_preproc=yes 1873else 1874 ac_header_preproc=no 1875fi 1876rm -f conftest.err conftest.i conftest.$ac_ext 1877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1878$as_echo "$ac_header_preproc" >&6; } 1879 1880# So? What about this header? 1881case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1882 yes:no: ) 1883 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1884$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1885 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1886$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1887 ;; 1888 no:yes:* ) 1889 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1890$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1891 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1892$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1893 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1894$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1895 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1896$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1897 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1898$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1899( $as_echo "## -------------------------------- ## 1900## Report this to mjl@luckie.org.nz ## 1901## -------------------------------- ##" 1902 ) | sed "s/^/$as_me: WARNING: /" >&2 1903 ;; 1904esac 1905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1906$as_echo_n "checking for $2... " >&6; } 1907if eval \${$3+:} false; then : 1908 $as_echo_n "(cached) " >&6 1909else 1910 eval "$3=\$ac_header_compiler" 1911fi 1912eval ac_res=\$$3 1913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1914$as_echo "$ac_res" >&6; } 1915fi 1916 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1917 1918} @%:@ ac_fn_c_check_header_mongrel 1919 1920@%:@ ac_fn_c_find_intX_t LINENO BITS VAR 1921@%:@ ----------------------------------- 1922@%:@ Finds a signed integer type with width BITS, setting cache variable VAR 1923@%:@ accordingly. 1924ac_fn_c_find_intX_t () 1925{ 1926 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5 1928$as_echo_n "checking for int$2_t... " >&6; } 1929if eval \${$3+:} false; then : 1930 $as_echo_n "(cached) " >&6 1931else 1932 eval "$3=no" 1933 # Order is important - never check a type that is potentially smaller 1934 # than half of the expected target width. 1935 for ac_type in int$2_t 'int' 'long int' \ 1936 'long long int' 'short int' 'signed char'; do 1937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1938/* end confdefs.h. */ 1939$ac_includes_default 1940 enum { N = $2 / 2 - 1 }; 1941int 1942main () 1943{ 1944static int test_array @<:@1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))@:>@; 1945test_array @<:@0@:>@ = 0; 1946return test_array @<:@0@:>@; 1947 1948 ; 1949 return 0; 1950} 1951_ACEOF 1952if ac_fn_c_try_compile "$LINENO"; then : 1953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1954/* end confdefs.h. */ 1955$ac_includes_default 1956 enum { N = $2 / 2 - 1 }; 1957int 1958main () 1959{ 1960static int test_array @<:@1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1) 1961 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))@:>@; 1962test_array @<:@0@:>@ = 0; 1963return test_array @<:@0@:>@; 1964 1965 ; 1966 return 0; 1967} 1968_ACEOF 1969if ac_fn_c_try_compile "$LINENO"; then : 1970 1971else 1972 case $ac_type in @%:@( 1973 int$2_t) : 1974 eval "$3=yes" ;; @%:@( 1975 *) : 1976 eval "$3=\$ac_type" ;; 1977esac 1978fi 1979rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1980fi 1981rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1982 if eval test \"x\$"$3"\" = x"no"; then : 1983 1984else 1985 break 1986fi 1987 done 1988fi 1989eval ac_res=\$$3 1990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1991$as_echo "$ac_res" >&6; } 1992 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1993 1994} @%:@ ac_fn_c_find_intX_t 1995 1996@%:@ ac_fn_c_check_type LINENO TYPE VAR INCLUDES 1997@%:@ ------------------------------------------- 1998@%:@ Tests whether TYPE exists after having included INCLUDES, setting cache 1999@%:@ variable VAR accordingly. 2000ac_fn_c_check_type () 2001{ 2002 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2004$as_echo_n "checking for $2... " >&6; } 2005if eval \${$3+:} false; then : 2006 $as_echo_n "(cached) " >&6 2007else 2008 eval "$3=no" 2009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2010/* end confdefs.h. */ 2011$4 2012int 2013main () 2014{ 2015if (sizeof ($2)) 2016 return 0; 2017 ; 2018 return 0; 2019} 2020_ACEOF 2021if ac_fn_c_try_compile "$LINENO"; then : 2022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2023/* end confdefs.h. */ 2024$4 2025int 2026main () 2027{ 2028if (sizeof (($2))) 2029 return 0; 2030 ; 2031 return 0; 2032} 2033_ACEOF 2034if ac_fn_c_try_compile "$LINENO"; then : 2035 2036else 2037 eval "$3=yes" 2038fi 2039rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2040fi 2041rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2042fi 2043eval ac_res=\$$3 2044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2045$as_echo "$ac_res" >&6; } 2046 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2047 2048} @%:@ ac_fn_c_check_type 2049 2050@%:@ ac_fn_c_find_uintX_t LINENO BITS VAR 2051@%:@ ------------------------------------ 2052@%:@ Finds an unsigned integer type with width BITS, setting cache variable VAR 2053@%:@ accordingly. 2054ac_fn_c_find_uintX_t () 2055{ 2056 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5 2058$as_echo_n "checking for uint$2_t... " >&6; } 2059if eval \${$3+:} false; then : 2060 $as_echo_n "(cached) " >&6 2061else 2062 eval "$3=no" 2063 # Order is important - never check a type that is potentially smaller 2064 # than half of the expected target width. 2065 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \ 2066 'unsigned long long int' 'unsigned short int' 'unsigned char'; do 2067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2068/* end confdefs.h. */ 2069$ac_includes_default 2070int 2071main () 2072{ 2073static int test_array @<:@1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)@:>@; 2074test_array @<:@0@:>@ = 0; 2075return test_array @<:@0@:>@; 2076 2077 ; 2078 return 0; 2079} 2080_ACEOF 2081if ac_fn_c_try_compile "$LINENO"; then : 2082 case $ac_type in @%:@( 2083 uint$2_t) : 2084 eval "$3=yes" ;; @%:@( 2085 *) : 2086 eval "$3=\$ac_type" ;; 2087esac 2088fi 2089rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2090 if eval test \"x\$"$3"\" = x"no"; then : 2091 2092else 2093 break 2094fi 2095 done 2096fi 2097eval ac_res=\$$3 2098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2099$as_echo "$ac_res" >&6; } 2100 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2101 2102} @%:@ ac_fn_c_find_uintX_t 2103 2104@%:@ ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 2105@%:@ -------------------------------------------- 2106@%:@ Tries to find the compile-time value of EXPR in a program that includes 2107@%:@ INCLUDES, setting VAR accordingly. Returns whether the value could be 2108@%:@ computed 2109ac_fn_c_compute_int () 2110{ 2111 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2112 if test "$cross_compiling" = yes; then 2113 # Depending upon the size, compute the lo and hi bounds. 2114cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2115/* end confdefs.h. */ 2116$4 2117int 2118main () 2119{ 2120static int test_array @<:@1 - 2 * !(($2) >= 0)@:>@; 2121test_array @<:@0@:>@ = 0; 2122return test_array @<:@0@:>@; 2123 2124 ; 2125 return 0; 2126} 2127_ACEOF 2128if ac_fn_c_try_compile "$LINENO"; then : 2129 ac_lo=0 ac_mid=0 2130 while :; do 2131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2132/* end confdefs.h. */ 2133$4 2134int 2135main () 2136{ 2137static int test_array @<:@1 - 2 * !(($2) <= $ac_mid)@:>@; 2138test_array @<:@0@:>@ = 0; 2139return test_array @<:@0@:>@; 2140 2141 ; 2142 return 0; 2143} 2144_ACEOF 2145if ac_fn_c_try_compile "$LINENO"; then : 2146 ac_hi=$ac_mid; break 2147else 2148 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2149 if test $ac_lo -le $ac_mid; then 2150 ac_lo= ac_hi= 2151 break 2152 fi 2153 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2154fi 2155rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2156 done 2157else 2158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2159/* end confdefs.h. */ 2160$4 2161int 2162main () 2163{ 2164static int test_array @<:@1 - 2 * !(($2) < 0)@:>@; 2165test_array @<:@0@:>@ = 0; 2166return test_array @<:@0@:>@; 2167 2168 ; 2169 return 0; 2170} 2171_ACEOF 2172if ac_fn_c_try_compile "$LINENO"; then : 2173 ac_hi=-1 ac_mid=-1 2174 while :; do 2175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2176/* end confdefs.h. */ 2177$4 2178int 2179main () 2180{ 2181static int test_array @<:@1 - 2 * !(($2) >= $ac_mid)@:>@; 2182test_array @<:@0@:>@ = 0; 2183return test_array @<:@0@:>@; 2184 2185 ; 2186 return 0; 2187} 2188_ACEOF 2189if ac_fn_c_try_compile "$LINENO"; then : 2190 ac_lo=$ac_mid; break 2191else 2192 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2193 if test $ac_mid -le $ac_hi; then 2194 ac_lo= ac_hi= 2195 break 2196 fi 2197 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2198fi 2199rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2200 done 2201else 2202 ac_lo= ac_hi= 2203fi 2204rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2205fi 2206rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2207# Binary search between lo and hi bounds. 2208while test "x$ac_lo" != "x$ac_hi"; do 2209 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 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 2226else 2227 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2228fi 2229rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2230done 2231case $ac_lo in @%:@(( 2232?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2233'') ac_retval=1 ;; 2234esac 2235 else 2236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2237/* end confdefs.h. */ 2238$4 2239static long int longval () { return $2; } 2240static unsigned long int ulongval () { return $2; } 2241@%:@include <stdio.h> 2242@%:@include <stdlib.h> 2243int 2244main () 2245{ 2246 2247 FILE *f = fopen ("conftest.val", "w"); 2248 if (! f) 2249 return 1; 2250 if (($2) < 0) 2251 { 2252 long int i = longval (); 2253 if (i != ($2)) 2254 return 1; 2255 fprintf (f, "%ld", i); 2256 } 2257 else 2258 { 2259 unsigned long int i = ulongval (); 2260 if (i != ($2)) 2261 return 1; 2262 fprintf (f, "%lu", i); 2263 } 2264 /* Do not output a trailing newline, as this causes \r\n confusion 2265 on some platforms. */ 2266 return ferror (f) || fclose (f) != 0; 2267 2268 ; 2269 return 0; 2270} 2271_ACEOF 2272if ac_fn_c_try_run "$LINENO"; then : 2273 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2274else 2275 ac_retval=1 2276fi 2277rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2278 conftest.$ac_objext conftest.beam conftest.$ac_ext 2279rm -f conftest.val 2280 2281 fi 2282 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2283 as_fn_set_status $ac_retval 2284 2285} @%:@ ac_fn_c_compute_int 2286 2287@%:@ ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 2288@%:@ ---------------------------------------------------- 2289@%:@ Tries to find if the field MEMBER exists in type AGGR, after including 2290@%:@ INCLUDES, setting cache variable VAR accordingly. 2291ac_fn_c_check_member () 2292{ 2293 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 2295$as_echo_n "checking for $2.$3... " >&6; } 2296if eval \${$4+:} false; then : 2297 $as_echo_n "(cached) " >&6 2298else 2299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2300/* end confdefs.h. */ 2301$5 2302int 2303main () 2304{ 2305static $2 ac_aggr; 2306if (ac_aggr.$3) 2307return 0; 2308 ; 2309 return 0; 2310} 2311_ACEOF 2312if ac_fn_c_try_compile "$LINENO"; then : 2313 eval "$4=yes" 2314else 2315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2316/* end confdefs.h. */ 2317$5 2318int 2319main () 2320{ 2321static $2 ac_aggr; 2322if (sizeof ac_aggr.$3) 2323return 0; 2324 ; 2325 return 0; 2326} 2327_ACEOF 2328if ac_fn_c_try_compile "$LINENO"; then : 2329 eval "$4=yes" 2330else 2331 eval "$4=no" 2332fi 2333rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2334fi 2335rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2336fi 2337eval ac_res=\$$4 2338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2339$as_echo "$ac_res" >&6; } 2340 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2341 2342} @%:@ ac_fn_c_check_member 2343cat >config.log <<_ACEOF 2344This file contains any messages produced by compilers while 2345running configure, to aid debugging if configure makes a mistake. 2346 2347It was created by scamper $as_me 20211026, which was 2348generated by GNU Autoconf 2.69. Invocation command line was 2349 2350 $ $0 $@ 2351 2352_ACEOF 2353exec 5>>config.log 2354{ 2355cat <<_ASUNAME 2356## --------- ## 2357## Platform. ## 2358## --------- ## 2359 2360hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2361uname -m = `(uname -m) 2>/dev/null || echo unknown` 2362uname -r = `(uname -r) 2>/dev/null || echo unknown` 2363uname -s = `(uname -s) 2>/dev/null || echo unknown` 2364uname -v = `(uname -v) 2>/dev/null || echo unknown` 2365 2366/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2367/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2368 2369/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2370/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2371/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2372/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2373/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2374/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2375/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2376 2377_ASUNAME 2378 2379as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2380for as_dir in $PATH 2381do 2382 IFS=$as_save_IFS 2383 test -z "$as_dir" && as_dir=. 2384 $as_echo "PATH: $as_dir" 2385 done 2386IFS=$as_save_IFS 2387 2388} >&5 2389 2390cat >&5 <<_ACEOF 2391 2392 2393## ----------- ## 2394## Core tests. ## 2395## ----------- ## 2396 2397_ACEOF 2398 2399 2400# Keep a trace of the command line. 2401# Strip out --no-create and --no-recursion so they do not pile up. 2402# Strip out --silent because we don't want to record it for future runs. 2403# Also quote any args containing shell meta-characters. 2404# Make two passes to allow for proper duplicate-argument suppression. 2405ac_configure_args= 2406ac_configure_args0= 2407ac_configure_args1= 2408ac_must_keep_next=false 2409for ac_pass in 1 2 2410do 2411 for ac_arg 2412 do 2413 case $ac_arg in 2414 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2415 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2416 | -silent | --silent | --silen | --sile | --sil) 2417 continue ;; 2418 *\'*) 2419 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2420 esac 2421 case $ac_pass in 2422 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2423 2) 2424 as_fn_append ac_configure_args1 " '$ac_arg'" 2425 if test $ac_must_keep_next = true; then 2426 ac_must_keep_next=false # Got value, back to normal. 2427 else 2428 case $ac_arg in 2429 *=* | --config-cache | -C | -disable-* | --disable-* \ 2430 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2431 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2432 | -with-* | --with-* | -without-* | --without-* | --x) 2433 case "$ac_configure_args0 " in 2434 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2435 esac 2436 ;; 2437 -* ) ac_must_keep_next=true ;; 2438 esac 2439 fi 2440 as_fn_append ac_configure_args " '$ac_arg'" 2441 ;; 2442 esac 2443 done 2444done 2445{ ac_configure_args0=; unset ac_configure_args0;} 2446{ ac_configure_args1=; unset ac_configure_args1;} 2447 2448# When interrupted or exit'd, cleanup temporary files, and complete 2449# config.log. We remove comments because anyway the quotes in there 2450# would cause problems or look ugly. 2451# WARNING: Use '\'' to represent an apostrophe within the trap. 2452# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2453trap 'exit_status=$? 2454 # Save into config.log some information that might help in debugging. 2455 { 2456 echo 2457 2458 $as_echo "## ---------------- ## 2459## Cache variables. ## 2460## ---------------- ##" 2461 echo 2462 # The following way of writing the cache mishandles newlines in values, 2463( 2464 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2465 eval ac_val=\$$ac_var 2466 case $ac_val in #( 2467 *${as_nl}*) 2468 case $ac_var in #( 2469 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2470$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2471 esac 2472 case $ac_var in #( 2473 _ | IFS | as_nl) ;; #( 2474 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2475 *) { eval $ac_var=; unset $ac_var;} ;; 2476 esac ;; 2477 esac 2478 done 2479 (set) 2>&1 | 2480 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2481 *${as_nl}ac_space=\ *) 2482 sed -n \ 2483 "s/'\''/'\''\\\\'\'''\''/g; 2484 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2485 ;; #( 2486 *) 2487 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2488 ;; 2489 esac | 2490 sort 2491) 2492 echo 2493 2494 $as_echo "## ----------------- ## 2495## Output variables. ## 2496## ----------------- ##" 2497 echo 2498 for ac_var in $ac_subst_vars 2499 do 2500 eval ac_val=\$$ac_var 2501 case $ac_val in 2502 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2503 esac 2504 $as_echo "$ac_var='\''$ac_val'\''" 2505 done | sort 2506 echo 2507 2508 if test -n "$ac_subst_files"; then 2509 $as_echo "## ------------------- ## 2510## File substitutions. ## 2511## ------------------- ##" 2512 echo 2513 for ac_var in $ac_subst_files 2514 do 2515 eval ac_val=\$$ac_var 2516 case $ac_val in 2517 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2518 esac 2519 $as_echo "$ac_var='\''$ac_val'\''" 2520 done | sort 2521 echo 2522 fi 2523 2524 if test -s confdefs.h; then 2525 $as_echo "## ----------- ## 2526## confdefs.h. ## 2527## ----------- ##" 2528 echo 2529 cat confdefs.h 2530 echo 2531 fi 2532 test "$ac_signal" != 0 && 2533 $as_echo "$as_me: caught signal $ac_signal" 2534 $as_echo "$as_me: exit $exit_status" 2535 } >&5 2536 rm -f core *.core core.conftest.* && 2537 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2538 exit $exit_status 2539' 0 2540for ac_signal in 1 2 13 15; do 2541 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2542done 2543ac_signal=0 2544 2545# confdefs.h avoids OS command line length limits that DEFS can exceed. 2546rm -f -r conftest* confdefs.h 2547 2548$as_echo "/* confdefs.h */" > confdefs.h 2549 2550# Predefined preprocessor variables. 2551 2552cat >>confdefs.h <<_ACEOF 2553@%:@define PACKAGE_NAME "$PACKAGE_NAME" 2554_ACEOF 2555 2556cat >>confdefs.h <<_ACEOF 2557@%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2558_ACEOF 2559 2560cat >>confdefs.h <<_ACEOF 2561@%:@define PACKAGE_VERSION "$PACKAGE_VERSION" 2562_ACEOF 2563 2564cat >>confdefs.h <<_ACEOF 2565@%:@define PACKAGE_STRING "$PACKAGE_STRING" 2566_ACEOF 2567 2568cat >>confdefs.h <<_ACEOF 2569@%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2570_ACEOF 2571 2572cat >>confdefs.h <<_ACEOF 2573@%:@define PACKAGE_URL "$PACKAGE_URL" 2574_ACEOF 2575 2576 2577# Let the site file select an alternate cache file if it wants to. 2578# Prefer an explicitly selected file to automatically selected ones. 2579ac_site_file1=NONE 2580ac_site_file2=NONE 2581if test -n "$CONFIG_SITE"; then 2582 # We do not want a PATH search for config.site. 2583 case $CONFIG_SITE in @%:@(( 2584 -*) ac_site_file1=./$CONFIG_SITE;; 2585 */*) ac_site_file1=$CONFIG_SITE;; 2586 *) ac_site_file1=./$CONFIG_SITE;; 2587 esac 2588elif test "x$prefix" != xNONE; then 2589 ac_site_file1=$prefix/share/config.site 2590 ac_site_file2=$prefix/etc/config.site 2591else 2592 ac_site_file1=$ac_default_prefix/share/config.site 2593 ac_site_file2=$ac_default_prefix/etc/config.site 2594fi 2595for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2596do 2597 test "x$ac_site_file" = xNONE && continue 2598 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2599 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2600$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2601 sed 's/^/| /' "$ac_site_file" >&5 2602 . "$ac_site_file" \ 2603 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2604$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2605as_fn_error $? "failed to load site script $ac_site_file 2606See \`config.log' for more details" "$LINENO" 5; } 2607 fi 2608done 2609 2610if test -r "$cache_file"; then 2611 # Some versions of bash will fail to source /dev/null (special files 2612 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2613 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2614 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2615$as_echo "$as_me: loading cache $cache_file" >&6;} 2616 case $cache_file in 2617 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2618 *) . "./$cache_file";; 2619 esac 2620 fi 2621else 2622 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2623$as_echo "$as_me: creating cache $cache_file" >&6;} 2624 >$cache_file 2625fi 2626 2627# Check that the precious variables saved in the cache have kept the same 2628# value. 2629ac_cache_corrupted=false 2630for ac_var in $ac_precious_vars; do 2631 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2632 eval ac_new_set=\$ac_env_${ac_var}_set 2633 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2634 eval ac_new_val=\$ac_env_${ac_var}_value 2635 case $ac_old_set,$ac_new_set in 2636 set,) 2637 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2638$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2639 ac_cache_corrupted=: ;; 2640 ,set) 2641 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2642$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2643 ac_cache_corrupted=: ;; 2644 ,);; 2645 *) 2646 if test "x$ac_old_val" != "x$ac_new_val"; then 2647 # differences in whitespace do not lead to failure. 2648 ac_old_val_w=`echo x $ac_old_val` 2649 ac_new_val_w=`echo x $ac_new_val` 2650 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2651 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2652$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2653 ac_cache_corrupted=: 2654 else 2655 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2656$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2657 eval $ac_var=\$ac_old_val 2658 fi 2659 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2660$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2661 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2662$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2663 fi;; 2664 esac 2665 # Pass precious variables to config.status. 2666 if test "$ac_new_set" = set; then 2667 case $ac_new_val in 2668 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2669 *) ac_arg=$ac_var=$ac_new_val ;; 2670 esac 2671 case " $ac_configure_args " in 2672 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2673 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2674 esac 2675 fi 2676done 2677if $ac_cache_corrupted; then 2678 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2679$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2680 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2681$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2682 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2683fi 2684## -------------------- ## 2685## Main body of script. ## 2686## -------------------- ## 2687 2688ac_ext=c 2689ac_cpp='$CPP $CPPFLAGS' 2690ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2691ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2692ac_compiler_gnu=$ac_cv_c_compiler_gnu 2693 2694 2695 2696 2697ac_config_headers="$ac_config_headers config.h" 2698 2699 2700ac_aux_dir= 2701for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2702 if test -f "$ac_dir/install-sh"; then 2703 ac_aux_dir=$ac_dir 2704 ac_install_sh="$ac_aux_dir/install-sh -c" 2705 break 2706 elif test -f "$ac_dir/install.sh"; then 2707 ac_aux_dir=$ac_dir 2708 ac_install_sh="$ac_aux_dir/install.sh -c" 2709 break 2710 elif test -f "$ac_dir/shtool"; then 2711 ac_aux_dir=$ac_dir 2712 ac_install_sh="$ac_aux_dir/shtool install -c" 2713 break 2714 fi 2715done 2716if test -z "$ac_aux_dir"; then 2717 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2718fi 2719 2720# These three variables are undocumented and unsupported, 2721# and are intended to be withdrawn in a future Autoconf release. 2722# They can cause serious problems if a builder's source tree is in a directory 2723# whose full name contains unusual characters. 2724ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2725ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2726ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2727 2728 2729# Make sure we can run config.sub. 2730$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2731 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2732 2733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2734$as_echo_n "checking build system type... " >&6; } 2735if ${ac_cv_build+:} false; then : 2736 $as_echo_n "(cached) " >&6 2737else 2738 ac_build_alias=$build_alias 2739test "x$ac_build_alias" = x && 2740 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2741test "x$ac_build_alias" = x && 2742 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2743ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2744 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2745 2746fi 2747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2748$as_echo "$ac_cv_build" >&6; } 2749case $ac_cv_build in 2750*-*-*) ;; 2751*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2752esac 2753build=$ac_cv_build 2754ac_save_IFS=$IFS; IFS='-' 2755set x $ac_cv_build 2756shift 2757build_cpu=$1 2758build_vendor=$2 2759shift; shift 2760# Remember, the first character of IFS is used to create $*, 2761# except with old shells: 2762build_os=$* 2763IFS=$ac_save_IFS 2764case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2765 2766 2767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2768$as_echo_n "checking host system type... " >&6; } 2769if ${ac_cv_host+:} false; then : 2770 $as_echo_n "(cached) " >&6 2771else 2772 if test "x$host_alias" = x; then 2773 ac_cv_host=$ac_cv_build 2774else 2775 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2776 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2777fi 2778 2779fi 2780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2781$as_echo "$ac_cv_host" >&6; } 2782case $ac_cv_host in 2783*-*-*) ;; 2784*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2785esac 2786host=$ac_cv_host 2787ac_save_IFS=$IFS; IFS='-' 2788set x $ac_cv_host 2789shift 2790host_cpu=$1 2791host_vendor=$2 2792shift; shift 2793# Remember, the first character of IFS is used to create $*, 2794# except with old shells: 2795host_os=$* 2796IFS=$ac_save_IFS 2797case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2798 2799 2800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 2801$as_echo_n "checking target system type... " >&6; } 2802if ${ac_cv_target+:} false; then : 2803 $as_echo_n "(cached) " >&6 2804else 2805 if test "x$target_alias" = x; then 2806 ac_cv_target=$ac_cv_host 2807else 2808 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 2809 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 2810fi 2811 2812fi 2813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 2814$as_echo "$ac_cv_target" >&6; } 2815case $ac_cv_target in 2816*-*-*) ;; 2817*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; 2818esac 2819target=$ac_cv_target 2820ac_save_IFS=$IFS; IFS='-' 2821set x $ac_cv_target 2822shift 2823target_cpu=$1 2824target_vendor=$2 2825shift; shift 2826# Remember, the first character of IFS is used to create $*, 2827# except with old shells: 2828target_os=$* 2829IFS=$ac_save_IFS 2830case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 2831 2832 2833# The aliases save the names the user supplied, while $host etc. 2834# will get canonicalized. 2835test -n "$target_alias" && 2836 test "$program_prefix$program_suffix$program_transform_name" = \ 2837 NONENONEs,x,x, && 2838 program_prefix=${target_alias}- 2839am__api_version='1.16' 2840 2841# Find a good install program. We prefer a C program (faster), 2842# so one script is as good as another. But avoid the broken or 2843# incompatible versions: 2844# SysV /etc/install, /usr/sbin/install 2845# SunOS /usr/etc/install 2846# IRIX /sbin/install 2847# AIX /bin/install 2848# AmigaOS /C/install, which installs bootblocks on floppy discs 2849# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2850# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2851# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2852# OS/2's system install, which has a completely different semantic 2853# ./install, which can be erroneously created by make from ./install.sh. 2854# Reject install programs that cannot install multiple files. 2855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2856$as_echo_n "checking for a BSD-compatible install... " >&6; } 2857if test -z "$INSTALL"; then 2858if ${ac_cv_path_install+:} false; then : 2859 $as_echo_n "(cached) " >&6 2860else 2861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2862for as_dir in $PATH 2863do 2864 IFS=$as_save_IFS 2865 test -z "$as_dir" && as_dir=. 2866 # Account for people who put trailing slashes in PATH elements. 2867case $as_dir/ in @%:@(( 2868 ./ | .// | /[cC]/* | \ 2869 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2870 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2871 /usr/ucb/* ) ;; 2872 *) 2873 # OSF1 and SCO ODT 3.0 have their own names for install. 2874 # Don't use installbsd from OSF since it installs stuff as root 2875 # by default. 2876 for ac_prog in ginstall scoinst install; do 2877 for ac_exec_ext in '' $ac_executable_extensions; do 2878 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2879 if test $ac_prog = install && 2880 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2881 # AIX install. It has an incompatible calling convention. 2882 : 2883 elif test $ac_prog = install && 2884 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2885 # program-specific install script used by HP pwplus--don't use. 2886 : 2887 else 2888 rm -rf conftest.one conftest.two conftest.dir 2889 echo one > conftest.one 2890 echo two > conftest.two 2891 mkdir conftest.dir 2892 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2893 test -s conftest.one && test -s conftest.two && 2894 test -s conftest.dir/conftest.one && 2895 test -s conftest.dir/conftest.two 2896 then 2897 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2898 break 3 2899 fi 2900 fi 2901 fi 2902 done 2903 done 2904 ;; 2905esac 2906 2907 done 2908IFS=$as_save_IFS 2909 2910rm -rf conftest.one conftest.two conftest.dir 2911 2912fi 2913 if test "${ac_cv_path_install+set}" = set; then 2914 INSTALL=$ac_cv_path_install 2915 else 2916 # As a last resort, use the slow shell script. Don't cache a 2917 # value for INSTALL within a source directory, because that will 2918 # break other packages using the cache if that directory is 2919 # removed, or if the value is a relative name. 2920 INSTALL=$ac_install_sh 2921 fi 2922fi 2923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2924$as_echo "$INSTALL" >&6; } 2925 2926# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2927# It thinks the first close brace ends the variable substitution. 2928test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2929 2930test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2931 2932test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2933 2934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2935$as_echo_n "checking whether build environment is sane... " >&6; } 2936# Reject unsafe characters in $srcdir or the absolute working directory 2937# name. Accept space and tab only in the latter. 2938am_lf=' 2939' 2940case `pwd` in 2941 *[\\\"\#\$\&\'\`$am_lf]*) 2942 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2943esac 2944case $srcdir in 2945 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2946 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2947esac 2948 2949# Do 'set' in a subshell so we don't clobber the current shell's 2950# arguments. Must try -L first in case configure is actually a 2951# symlink; some systems play weird games with the mod time of symlinks 2952# (eg FreeBSD returns the mod time of the symlink's containing 2953# directory). 2954if ( 2955 am_has_slept=no 2956 for am_try in 1 2; do 2957 echo "timestamp, slept: $am_has_slept" > conftest.file 2958 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2959 if test "$*" = "X"; then 2960 # -L didn't work. 2961 set X `ls -t "$srcdir/configure" conftest.file` 2962 fi 2963 if test "$*" != "X $srcdir/configure conftest.file" \ 2964 && test "$*" != "X conftest.file $srcdir/configure"; then 2965 2966 # If neither matched, then we have a broken ls. This can happen 2967 # if, for instance, CONFIG_SHELL is bash and it inherits a 2968 # broken ls alias from the environment. This has actually 2969 # happened. Such a system could not be considered "sane". 2970 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2971 alias in your environment" "$LINENO" 5 2972 fi 2973 if test "$2" = conftest.file || test $am_try -eq 2; then 2974 break 2975 fi 2976 # Just in case. 2977 sleep 1 2978 am_has_slept=yes 2979 done 2980 test "$2" = conftest.file 2981 ) 2982then 2983 # Ok. 2984 : 2985else 2986 as_fn_error $? "newly created file is older than distributed files! 2987Check your system clock" "$LINENO" 5 2988fi 2989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2990$as_echo "yes" >&6; } 2991# If we didn't sleep, we still need to ensure time stamps of config.status and 2992# generated files are strictly newer. 2993am_sleep_pid= 2994if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2995 ( sleep 1 ) & 2996 am_sleep_pid=$! 2997fi 2998 2999rm -f conftest.file 3000 3001test "$program_prefix" != NONE && 3002 program_transform_name="s&^&$program_prefix&;$program_transform_name" 3003# Use a double $ so make ignores it. 3004test "$program_suffix" != NONE && 3005 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 3006# Double any \ or $. 3007# By default was `s,x,x', remove it if useless. 3008ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 3009program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 3010 3011# Expand $ac_aux_dir to an absolute path. 3012am_aux_dir=`cd "$ac_aux_dir" && pwd` 3013 3014if test x"${MISSING+set}" != xset; then 3015 MISSING="\${SHELL} '$am_aux_dir/missing'" 3016fi 3017# Use eval to expand $SHELL 3018if eval "$MISSING --is-lightweight"; then 3019 am_missing_run="$MISSING " 3020else 3021 am_missing_run= 3022 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 3023$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 3024fi 3025 3026if test x"${install_sh+set}" != xset; then 3027 case $am_aux_dir in 3028 *\ * | *\ *) 3029 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 3030 *) 3031 install_sh="\${SHELL} $am_aux_dir/install-sh" 3032 esac 3033fi 3034 3035# Installed binaries are usually stripped using 'strip' when the user 3036# run "make install-strip". However 'strip' might not be the right 3037# tool to use in cross-compilation environments, therefore Automake 3038# will honor the 'STRIP' environment variable to overrule this program. 3039if test "$cross_compiling" != no; then 3040 if test -n "$ac_tool_prefix"; then 3041 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3042set dummy ${ac_tool_prefix}strip; ac_word=$2 3043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3044$as_echo_n "checking for $ac_word... " >&6; } 3045if ${ac_cv_prog_STRIP+:} false; then : 3046 $as_echo_n "(cached) " >&6 3047else 3048 if test -n "$STRIP"; then 3049 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3050else 3051as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3052for as_dir in $PATH 3053do 3054 IFS=$as_save_IFS 3055 test -z "$as_dir" && as_dir=. 3056 for ac_exec_ext in '' $ac_executable_extensions; do 3057 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3058 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3060 break 2 3061 fi 3062done 3063 done 3064IFS=$as_save_IFS 3065 3066fi 3067fi 3068STRIP=$ac_cv_prog_STRIP 3069if test -n "$STRIP"; then 3070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3071$as_echo "$STRIP" >&6; } 3072else 3073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3074$as_echo "no" >&6; } 3075fi 3076 3077 3078fi 3079if test -z "$ac_cv_prog_STRIP"; then 3080 ac_ct_STRIP=$STRIP 3081 # Extract the first word of "strip", so it can be a program name with args. 3082set dummy strip; ac_word=$2 3083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3084$as_echo_n "checking for $ac_word... " >&6; } 3085if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 3086 $as_echo_n "(cached) " >&6 3087else 3088 if test -n "$ac_ct_STRIP"; then 3089 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3090else 3091as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3092for as_dir in $PATH 3093do 3094 IFS=$as_save_IFS 3095 test -z "$as_dir" && as_dir=. 3096 for ac_exec_ext in '' $ac_executable_extensions; do 3097 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3098 ac_cv_prog_ac_ct_STRIP="strip" 3099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3100 break 2 3101 fi 3102done 3103 done 3104IFS=$as_save_IFS 3105 3106fi 3107fi 3108ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3109if test -n "$ac_ct_STRIP"; then 3110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3111$as_echo "$ac_ct_STRIP" >&6; } 3112else 3113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3114$as_echo "no" >&6; } 3115fi 3116 3117 if test "x$ac_ct_STRIP" = x; then 3118 STRIP=":" 3119 else 3120 case $cross_compiling:$ac_tool_warned in 3121yes:) 3122{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3123$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3124ac_tool_warned=yes ;; 3125esac 3126 STRIP=$ac_ct_STRIP 3127 fi 3128else 3129 STRIP="$ac_cv_prog_STRIP" 3130fi 3131 3132fi 3133INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3134 3135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 3136$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 3137if test -z "$MKDIR_P"; then 3138 if ${ac_cv_path_mkdir+:} false; then : 3139 $as_echo_n "(cached) " >&6 3140else 3141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3142for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3143do 3144 IFS=$as_save_IFS 3145 test -z "$as_dir" && as_dir=. 3146 for ac_prog in mkdir gmkdir; do 3147 for ac_exec_ext in '' $ac_executable_extensions; do 3148 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 3149 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 3150 'mkdir (GNU coreutils) '* | \ 3151 'mkdir (coreutils) '* | \ 3152 'mkdir (fileutils) '4.1*) 3153 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 3154 break 3;; 3155 esac 3156 done 3157 done 3158 done 3159IFS=$as_save_IFS 3160 3161fi 3162 3163 test -d ./--version && rmdir ./--version 3164 if test "${ac_cv_path_mkdir+set}" = set; then 3165 MKDIR_P="$ac_cv_path_mkdir -p" 3166 else 3167 # As a last resort, use the slow shell script. Don't cache a 3168 # value for MKDIR_P within a source directory, because that will 3169 # break other packages using the cache if that directory is 3170 # removed, or if the value is a relative name. 3171 MKDIR_P="$ac_install_sh -d" 3172 fi 3173fi 3174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3175$as_echo "$MKDIR_P" >&6; } 3176 3177for ac_prog in gawk mawk nawk awk 3178do 3179 # Extract the first word of "$ac_prog", so it can be a program name with args. 3180set dummy $ac_prog; ac_word=$2 3181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3182$as_echo_n "checking for $ac_word... " >&6; } 3183if ${ac_cv_prog_AWK+:} false; then : 3184 $as_echo_n "(cached) " >&6 3185else 3186 if test -n "$AWK"; then 3187 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3188else 3189as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3190for as_dir in $PATH 3191do 3192 IFS=$as_save_IFS 3193 test -z "$as_dir" && as_dir=. 3194 for ac_exec_ext in '' $ac_executable_extensions; do 3195 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3196 ac_cv_prog_AWK="$ac_prog" 3197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3198 break 2 3199 fi 3200done 3201 done 3202IFS=$as_save_IFS 3203 3204fi 3205fi 3206AWK=$ac_cv_prog_AWK 3207if test -n "$AWK"; then 3208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3209$as_echo "$AWK" >&6; } 3210else 3211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3212$as_echo "no" >&6; } 3213fi 3214 3215 3216 test -n "$AWK" && break 3217done 3218 3219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3220$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3221set x ${MAKE-make} 3222ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3223if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 3224 $as_echo_n "(cached) " >&6 3225else 3226 cat >conftest.make <<\_ACEOF 3227SHELL = /bin/sh 3228all: 3229 @echo '@@@%%%=$(MAKE)=@@@%%%' 3230_ACEOF 3231# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3232case `${MAKE-make} -f conftest.make 2>/dev/null` in 3233 *@@@%%%=?*=@@@%%%*) 3234 eval ac_cv_prog_make_${ac_make}_set=yes;; 3235 *) 3236 eval ac_cv_prog_make_${ac_make}_set=no;; 3237esac 3238rm -f conftest.make 3239fi 3240if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3242$as_echo "yes" >&6; } 3243 SET_MAKE= 3244else 3245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3246$as_echo "no" >&6; } 3247 SET_MAKE="MAKE=${MAKE-make}" 3248fi 3249 3250rm -rf .tst 2>/dev/null 3251mkdir .tst 2>/dev/null 3252if test -d .tst; then 3253 am__leading_dot=. 3254else 3255 am__leading_dot=_ 3256fi 3257rmdir .tst 2>/dev/null 3258 3259@%:@ Check whether --enable-silent-rules was given. 3260if test "${enable_silent_rules+set}" = set; then : 3261 enableval=$enable_silent_rules; 3262fi 3263 3264case $enable_silent_rules in @%:@ ((( 3265 yes) AM_DEFAULT_VERBOSITY=0;; 3266 no) AM_DEFAULT_VERBOSITY=1;; 3267 *) AM_DEFAULT_VERBOSITY=1;; 3268esac 3269am_make=${MAKE-make} 3270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3271$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 3272if ${am_cv_make_support_nested_variables+:} false; then : 3273 $as_echo_n "(cached) " >&6 3274else 3275 if $as_echo 'TRUE=$(BAR$(V)) 3276BAR0=false 3277BAR1=true 3278V=1 3279am__doit: 3280 @$(TRUE) 3281.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3282 am_cv_make_support_nested_variables=yes 3283else 3284 am_cv_make_support_nested_variables=no 3285fi 3286fi 3287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3288$as_echo "$am_cv_make_support_nested_variables" >&6; } 3289if test $am_cv_make_support_nested_variables = yes; then 3290 AM_V='$(V)' 3291 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3292else 3293 AM_V=$AM_DEFAULT_VERBOSITY 3294 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3295fi 3296AM_BACKSLASH='\' 3297 3298if test "`cd $srcdir && pwd`" != "`pwd`"; then 3299 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3300 # is not polluted with repeated "-I." 3301 am__isrc=' -I$(srcdir)' 3302 # test to see if srcdir already configured 3303 if test -f $srcdir/config.status; then 3304 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3305 fi 3306fi 3307 3308# test whether we have cygpath 3309if test -z "$CYGPATH_W"; then 3310 if (cygpath --version) >/dev/null 2>/dev/null; then 3311 CYGPATH_W='cygpath -w' 3312 else 3313 CYGPATH_W=echo 3314 fi 3315fi 3316 3317 3318# Define the identity of the package. 3319 PACKAGE='scamper' 3320 VERSION='20211026' 3321 3322 3323cat >>confdefs.h <<_ACEOF 3324@%:@define PACKAGE "$PACKAGE" 3325_ACEOF 3326 3327 3328cat >>confdefs.h <<_ACEOF 3329@%:@define VERSION "$VERSION" 3330_ACEOF 3331 3332# Some tools Automake needs. 3333 3334ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3335 3336 3337AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3338 3339 3340AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3341 3342 3343AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3344 3345 3346MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3347 3348# For better backward compatibility. To be removed once Automake 1.9.x 3349# dies out for good. For more background, see: 3350# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3351# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3352mkdir_p='$(MKDIR_P)' 3353 3354# We need awk for the "check" target (and possibly the TAP driver). The 3355# system "awk" is bad on some platforms. 3356# Always define AMTAR for backward compatibility. Yes, it's still used 3357# in the wild :-( We should find a proper way to deprecate it ... 3358AMTAR='$${TAR-tar}' 3359 3360 3361# We'll loop over all known methods to create a tar archive until one works. 3362_am_tools='gnutar pax cpio none' 3363 3364am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3365 3366 3367 3368 3369 3370# Variables for tags utilities; see am/tags.am 3371if test -z "$CTAGS"; then 3372 CTAGS=ctags 3373fi 3374 3375if test -z "$ETAGS"; then 3376 ETAGS=etags 3377fi 3378 3379if test -z "$CSCOPE"; then 3380 CSCOPE=cscope 3381fi 3382 3383 3384 3385# POSIX will say in a future version that running "rm -f" with no argument 3386# is OK; and we want to be able to make that assumption in our Makefile 3387# recipes. So use an aggressive probe to check that the usage we want is 3388# actually supported "in the wild" to an acceptable degree. 3389# See automake bug#10828. 3390# To make any issue more visible, cause the running configure to be aborted 3391# by default if the 'rm' program in use doesn't match our expectations; the 3392# user can still override this though. 3393if rm -f && rm -fr && rm -rf; then : OK; else 3394 cat >&2 <<'END' 3395Oops! 3396 3397Your 'rm' program seems unable to run without file operands specified 3398on the command line, even when the '-f' option is present. This is contrary 3399to the behaviour of most rm programs out there, and not conforming with 3400the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3401 3402Please tell bug-automake@gnu.org about your system, including the value 3403of your $PATH and any error possibly output before this message. This 3404can help us improve future automake versions. 3405 3406END 3407 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3408 echo 'Configuration will proceed anyway, since you have set the' >&2 3409 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3410 echo >&2 3411 else 3412 cat >&2 <<'END' 3413Aborting the configuration process, to ensure you take notice of the issue. 3414 3415You can download and install GNU coreutils to get an 'rm' implementation 3416that behaves properly: <https://www.gnu.org/software/coreutils/>. 3417 3418If you want to complete the configuration process using your problematic 3419'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3420to "yes", and re-run configure. 3421 3422END 3423 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3424 fi 3425fi 3426 3427 3428case `pwd` in 3429 *\ * | *\ *) 3430 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 3431$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 3432esac 3433 3434 3435 3436macro_version='2.4.6' 3437macro_revision='2.4.6' 3438 3439 3440 3441 3442 3443 3444 3445 3446 3447 3448 3449 3450 3451ltmain=$ac_aux_dir/ltmain.sh 3452 3453# Backslashify metacharacters that are still active within 3454# double-quoted strings. 3455sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 3456 3457# Same as above, but do not quote variable references. 3458double_quote_subst='s/\(["`\\]\)/\\\1/g' 3459 3460# Sed substitution to delay expansion of an escaped shell variable in a 3461# double_quote_subst'ed string. 3462delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 3463 3464# Sed substitution to delay expansion of an escaped single quote. 3465delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 3466 3467# Sed substitution to avoid accidental globbing in evaled expressions 3468no_glob_subst='s/\*/\\\*/g' 3469 3470ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 3471ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 3472ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 3473 3474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 3475$as_echo_n "checking how to print strings... " >&6; } 3476# Test print first, because it will be a builtin if present. 3477if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 3478 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 3479 ECHO='print -r --' 3480elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 3481 ECHO='printf %s\n' 3482else 3483 # Use this function as a fallback that always works. 3484 func_fallback_echo () 3485 { 3486 eval 'cat <<_LTECHO_EOF 3487$1 3488_LTECHO_EOF' 3489 } 3490 ECHO='func_fallback_echo' 3491fi 3492 3493# func_echo_all arg... 3494# Invoke $ECHO with all args, space-separated. 3495func_echo_all () 3496{ 3497 $ECHO "" 3498} 3499 3500case $ECHO in 3501 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 3502$as_echo "printf" >&6; } ;; 3503 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 3504$as_echo "print -r" >&6; } ;; 3505 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 3506$as_echo "cat" >&6; } ;; 3507esac 3508 3509 3510 3511 3512 3513 3514 3515 3516 3517 3518 3519 3520 3521 3522DEPDIR="${am__leading_dot}deps" 3523 3524ac_config_commands="$ac_config_commands depfiles" 3525 3526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 3527$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; } 3528cat > confinc.mk << 'END' 3529am__doit: 3530 @echo this is the am__doit target >confinc.out 3531.PHONY: am__doit 3532END 3533am__include="#" 3534am__quote= 3535# BSD make does it like this. 3536echo '.include "confinc.mk" # ignored' > confmf.BSD 3537# Other make implementations (GNU, Solaris 10, AIX) do it like this. 3538echo 'include confinc.mk # ignored' > confmf.GNU 3539_am_result=no 3540for s in GNU BSD; do 3541 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 3542 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 3543 ac_status=$? 3544 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3545 (exit $ac_status); } 3546 case $?:`cat confinc.out 2>/dev/null` in @%:@( 3547 '0:this is the am__doit target') : 3548 case $s in @%:@( 3549 BSD) : 3550 am__include='.include' am__quote='"' ;; @%:@( 3551 *) : 3552 am__include='include' am__quote='' ;; 3553esac ;; @%:@( 3554 *) : 3555 ;; 3556esac 3557 if test "$am__include" != "#"; then 3558 _am_result="yes ($s style)" 3559 break 3560 fi 3561done 3562rm -f confinc.* confmf.* 3563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 3564$as_echo "${_am_result}" >&6; } 3565 3566@%:@ Check whether --enable-dependency-tracking was given. 3567if test "${enable_dependency_tracking+set}" = set; then : 3568 enableval=$enable_dependency_tracking; 3569fi 3570 3571if test "x$enable_dependency_tracking" != xno; then 3572 am_depcomp="$ac_aux_dir/depcomp" 3573 AMDEPBACKSLASH='\' 3574 am__nodep='_no' 3575fi 3576 if test "x$enable_dependency_tracking" != xno; then 3577 AMDEP_TRUE= 3578 AMDEP_FALSE='#' 3579else 3580 AMDEP_TRUE='#' 3581 AMDEP_FALSE= 3582fi 3583 3584 3585ac_ext=c 3586ac_cpp='$CPP $CPPFLAGS' 3587ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3588ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3589ac_compiler_gnu=$ac_cv_c_compiler_gnu 3590if test -n "$ac_tool_prefix"; then 3591 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3592set dummy ${ac_tool_prefix}gcc; ac_word=$2 3593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3594$as_echo_n "checking for $ac_word... " >&6; } 3595if ${ac_cv_prog_CC+:} false; then : 3596 $as_echo_n "(cached) " >&6 3597else 3598 if test -n "$CC"; then 3599 ac_cv_prog_CC="$CC" # Let the user override the test. 3600else 3601as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3602for as_dir in $PATH 3603do 3604 IFS=$as_save_IFS 3605 test -z "$as_dir" && as_dir=. 3606 for ac_exec_ext in '' $ac_executable_extensions; do 3607 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3608 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3610 break 2 3611 fi 3612done 3613 done 3614IFS=$as_save_IFS 3615 3616fi 3617fi 3618CC=$ac_cv_prog_CC 3619if test -n "$CC"; then 3620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3621$as_echo "$CC" >&6; } 3622else 3623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3624$as_echo "no" >&6; } 3625fi 3626 3627 3628fi 3629if test -z "$ac_cv_prog_CC"; then 3630 ac_ct_CC=$CC 3631 # Extract the first word of "gcc", so it can be a program name with args. 3632set dummy gcc; ac_word=$2 3633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3634$as_echo_n "checking for $ac_word... " >&6; } 3635if ${ac_cv_prog_ac_ct_CC+:} false; then : 3636 $as_echo_n "(cached) " >&6 3637else 3638 if test -n "$ac_ct_CC"; then 3639 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3640else 3641as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3642for as_dir in $PATH 3643do 3644 IFS=$as_save_IFS 3645 test -z "$as_dir" && as_dir=. 3646 for ac_exec_ext in '' $ac_executable_extensions; do 3647 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3648 ac_cv_prog_ac_ct_CC="gcc" 3649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3650 break 2 3651 fi 3652done 3653 done 3654IFS=$as_save_IFS 3655 3656fi 3657fi 3658ac_ct_CC=$ac_cv_prog_ac_ct_CC 3659if test -n "$ac_ct_CC"; then 3660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3661$as_echo "$ac_ct_CC" >&6; } 3662else 3663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3664$as_echo "no" >&6; } 3665fi 3666 3667 if test "x$ac_ct_CC" = x; then 3668 CC="" 3669 else 3670 case $cross_compiling:$ac_tool_warned in 3671yes:) 3672{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3673$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3674ac_tool_warned=yes ;; 3675esac 3676 CC=$ac_ct_CC 3677 fi 3678else 3679 CC="$ac_cv_prog_CC" 3680fi 3681 3682if test -z "$CC"; then 3683 if test -n "$ac_tool_prefix"; then 3684 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3685set dummy ${ac_tool_prefix}cc; ac_word=$2 3686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3687$as_echo_n "checking for $ac_word... " >&6; } 3688if ${ac_cv_prog_CC+:} false; then : 3689 $as_echo_n "(cached) " >&6 3690else 3691 if test -n "$CC"; then 3692 ac_cv_prog_CC="$CC" # Let the user override the test. 3693else 3694as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3695for as_dir in $PATH 3696do 3697 IFS=$as_save_IFS 3698 test -z "$as_dir" && as_dir=. 3699 for ac_exec_ext in '' $ac_executable_extensions; do 3700 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3701 ac_cv_prog_CC="${ac_tool_prefix}cc" 3702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3703 break 2 3704 fi 3705done 3706 done 3707IFS=$as_save_IFS 3708 3709fi 3710fi 3711CC=$ac_cv_prog_CC 3712if test -n "$CC"; then 3713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3714$as_echo "$CC" >&6; } 3715else 3716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3717$as_echo "no" >&6; } 3718fi 3719 3720 3721 fi 3722fi 3723if test -z "$CC"; then 3724 # Extract the first word of "cc", so it can be a program name with args. 3725set dummy cc; ac_word=$2 3726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3727$as_echo_n "checking for $ac_word... " >&6; } 3728if ${ac_cv_prog_CC+:} false; then : 3729 $as_echo_n "(cached) " >&6 3730else 3731 if test -n "$CC"; then 3732 ac_cv_prog_CC="$CC" # Let the user override the test. 3733else 3734 ac_prog_rejected=no 3735as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3736for as_dir in $PATH 3737do 3738 IFS=$as_save_IFS 3739 test -z "$as_dir" && as_dir=. 3740 for ac_exec_ext in '' $ac_executable_extensions; do 3741 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3742 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3743 ac_prog_rejected=yes 3744 continue 3745 fi 3746 ac_cv_prog_CC="cc" 3747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3748 break 2 3749 fi 3750done 3751 done 3752IFS=$as_save_IFS 3753 3754if test $ac_prog_rejected = yes; then 3755 # We found a bogon in the path, so make sure we never use it. 3756 set dummy $ac_cv_prog_CC 3757 shift 3758 if test $@%:@ != 0; then 3759 # We chose a different compiler from the bogus one. 3760 # However, it has the same basename, so the bogon will be chosen 3761 # first if we set CC to just the basename; use the full file name. 3762 shift 3763 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3764 fi 3765fi 3766fi 3767fi 3768CC=$ac_cv_prog_CC 3769if test -n "$CC"; then 3770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3771$as_echo "$CC" >&6; } 3772else 3773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3774$as_echo "no" >&6; } 3775fi 3776 3777 3778fi 3779if test -z "$CC"; then 3780 if test -n "$ac_tool_prefix"; then 3781 for ac_prog in cl.exe 3782 do 3783 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3784set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3786$as_echo_n "checking for $ac_word... " >&6; } 3787if ${ac_cv_prog_CC+:} false; then : 3788 $as_echo_n "(cached) " >&6 3789else 3790 if test -n "$CC"; then 3791 ac_cv_prog_CC="$CC" # Let the user override the test. 3792else 3793as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3794for as_dir in $PATH 3795do 3796 IFS=$as_save_IFS 3797 test -z "$as_dir" && as_dir=. 3798 for ac_exec_ext in '' $ac_executable_extensions; do 3799 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3800 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3802 break 2 3803 fi 3804done 3805 done 3806IFS=$as_save_IFS 3807 3808fi 3809fi 3810CC=$ac_cv_prog_CC 3811if test -n "$CC"; then 3812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3813$as_echo "$CC" >&6; } 3814else 3815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3816$as_echo "no" >&6; } 3817fi 3818 3819 3820 test -n "$CC" && break 3821 done 3822fi 3823if test -z "$CC"; then 3824 ac_ct_CC=$CC 3825 for ac_prog in cl.exe 3826do 3827 # Extract the first word of "$ac_prog", so it can be a program name with args. 3828set dummy $ac_prog; ac_word=$2 3829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3830$as_echo_n "checking for $ac_word... " >&6; } 3831if ${ac_cv_prog_ac_ct_CC+:} false; then : 3832 $as_echo_n "(cached) " >&6 3833else 3834 if test -n "$ac_ct_CC"; then 3835 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3836else 3837as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3838for as_dir in $PATH 3839do 3840 IFS=$as_save_IFS 3841 test -z "$as_dir" && as_dir=. 3842 for ac_exec_ext in '' $ac_executable_extensions; do 3843 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3844 ac_cv_prog_ac_ct_CC="$ac_prog" 3845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3846 break 2 3847 fi 3848done 3849 done 3850IFS=$as_save_IFS 3851 3852fi 3853fi 3854ac_ct_CC=$ac_cv_prog_ac_ct_CC 3855if test -n "$ac_ct_CC"; then 3856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3857$as_echo "$ac_ct_CC" >&6; } 3858else 3859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3860$as_echo "no" >&6; } 3861fi 3862 3863 3864 test -n "$ac_ct_CC" && break 3865done 3866 3867 if test "x$ac_ct_CC" = x; then 3868 CC="" 3869 else 3870 case $cross_compiling:$ac_tool_warned in 3871yes:) 3872{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3873$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3874ac_tool_warned=yes ;; 3875esac 3876 CC=$ac_ct_CC 3877 fi 3878fi 3879 3880fi 3881 3882 3883test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3884$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3885as_fn_error $? "no acceptable C compiler found in \$PATH 3886See \`config.log' for more details" "$LINENO" 5; } 3887 3888# Provide some information about the compiler. 3889$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3890set X $ac_compile 3891ac_compiler=$2 3892for ac_option in --version -v -V -qversion; do 3893 { { ac_try="$ac_compiler $ac_option >&5" 3894case "(($ac_try" in 3895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3896 *) ac_try_echo=$ac_try;; 3897esac 3898eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3899$as_echo "$ac_try_echo"; } >&5 3900 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3901 ac_status=$? 3902 if test -s conftest.err; then 3903 sed '10a\ 3904... rest of stderr output deleted ... 3905 10q' conftest.err >conftest.er1 3906 cat conftest.er1 >&5 3907 fi 3908 rm -f conftest.er1 conftest.err 3909 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3910 test $ac_status = 0; } 3911done 3912 3913cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3914/* end confdefs.h. */ 3915 3916int 3917main () 3918{ 3919 3920 ; 3921 return 0; 3922} 3923_ACEOF 3924ac_clean_files_save=$ac_clean_files 3925ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3926# Try to create an executable without -o first, disregard a.out. 3927# It will help us diagnose broken compilers, and finding out an intuition 3928# of exeext. 3929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3930$as_echo_n "checking whether the C compiler works... " >&6; } 3931ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3932 3933# The possible output files: 3934ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3935 3936ac_rmfiles= 3937for ac_file in $ac_files 3938do 3939 case $ac_file in 3940 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3941 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3942 esac 3943done 3944rm -f $ac_rmfiles 3945 3946if { { ac_try="$ac_link_default" 3947case "(($ac_try" in 3948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3949 *) ac_try_echo=$ac_try;; 3950esac 3951eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3952$as_echo "$ac_try_echo"; } >&5 3953 (eval "$ac_link_default") 2>&5 3954 ac_status=$? 3955 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3956 test $ac_status = 0; }; then : 3957 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3958# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3959# in a Makefile. We should not override ac_cv_exeext if it was cached, 3960# so that the user can short-circuit this test for compilers unknown to 3961# Autoconf. 3962for ac_file in $ac_files '' 3963do 3964 test -f "$ac_file" || continue 3965 case $ac_file in 3966 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3967 ;; 3968 [ab].out ) 3969 # We found the default executable, but exeext='' is most 3970 # certainly right. 3971 break;; 3972 *.* ) 3973 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3974 then :; else 3975 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3976 fi 3977 # We set ac_cv_exeext here because the later test for it is not 3978 # safe: cross compilers may not add the suffix if given an `-o' 3979 # argument, so we may need to know it at that point already. 3980 # Even if this section looks crufty: it has the advantage of 3981 # actually working. 3982 break;; 3983 * ) 3984 break;; 3985 esac 3986done 3987test "$ac_cv_exeext" = no && ac_cv_exeext= 3988 3989else 3990 ac_file='' 3991fi 3992if test -z "$ac_file"; then : 3993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3994$as_echo "no" >&6; } 3995$as_echo "$as_me: failed program was:" >&5 3996sed 's/^/| /' conftest.$ac_ext >&5 3997 3998{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3999$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4000as_fn_error 77 "C compiler cannot create executables 4001See \`config.log' for more details" "$LINENO" 5; } 4002else 4003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4004$as_echo "yes" >&6; } 4005fi 4006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 4007$as_echo_n "checking for C compiler default output file name... " >&6; } 4008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 4009$as_echo "$ac_file" >&6; } 4010ac_exeext=$ac_cv_exeext 4011 4012rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 4013ac_clean_files=$ac_clean_files_save 4014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 4015$as_echo_n "checking for suffix of executables... " >&6; } 4016if { { ac_try="$ac_link" 4017case "(($ac_try" in 4018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4019 *) ac_try_echo=$ac_try;; 4020esac 4021eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4022$as_echo "$ac_try_echo"; } >&5 4023 (eval "$ac_link") 2>&5 4024 ac_status=$? 4025 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4026 test $ac_status = 0; }; then : 4027 # If both `conftest.exe' and `conftest' are `present' (well, observable) 4028# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 4029# work properly (i.e., refer to `conftest.exe'), while it won't with 4030# `rm'. 4031for ac_file in conftest.exe conftest conftest.*; do 4032 test -f "$ac_file" || continue 4033 case $ac_file in 4034 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4035 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4036 break;; 4037 * ) break;; 4038 esac 4039done 4040else 4041 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4042$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4043as_fn_error $? "cannot compute suffix of executables: cannot compile and link 4044See \`config.log' for more details" "$LINENO" 5; } 4045fi 4046rm -f conftest conftest$ac_cv_exeext 4047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 4048$as_echo "$ac_cv_exeext" >&6; } 4049 4050rm -f conftest.$ac_ext 4051EXEEXT=$ac_cv_exeext 4052ac_exeext=$EXEEXT 4053cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4054/* end confdefs.h. */ 4055@%:@include <stdio.h> 4056int 4057main () 4058{ 4059FILE *f = fopen ("conftest.out", "w"); 4060 return ferror (f) || fclose (f) != 0; 4061 4062 ; 4063 return 0; 4064} 4065_ACEOF 4066ac_clean_files="$ac_clean_files conftest.out" 4067# Check that the compiler produces executables we can run. If not, either 4068# the compiler is broken, or we cross compile. 4069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4070$as_echo_n "checking whether we are cross compiling... " >&6; } 4071if test "$cross_compiling" != yes; then 4072 { { ac_try="$ac_link" 4073case "(($ac_try" in 4074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4075 *) ac_try_echo=$ac_try;; 4076esac 4077eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4078$as_echo "$ac_try_echo"; } >&5 4079 (eval "$ac_link") 2>&5 4080 ac_status=$? 4081 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4082 test $ac_status = 0; } 4083 if { ac_try='./conftest$ac_cv_exeext' 4084 { { case "(($ac_try" in 4085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4086 *) ac_try_echo=$ac_try;; 4087esac 4088eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4089$as_echo "$ac_try_echo"; } >&5 4090 (eval "$ac_try") 2>&5 4091 ac_status=$? 4092 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4093 test $ac_status = 0; }; }; then 4094 cross_compiling=no 4095 else 4096 if test "$cross_compiling" = maybe; then 4097 cross_compiling=yes 4098 else 4099 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4100$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4101as_fn_error $? "cannot run C compiled programs. 4102If you meant to cross compile, use \`--host'. 4103See \`config.log' for more details" "$LINENO" 5; } 4104 fi 4105 fi 4106fi 4107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4108$as_echo "$cross_compiling" >&6; } 4109 4110rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 4111ac_clean_files=$ac_clean_files_save 4112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4113$as_echo_n "checking for suffix of object files... " >&6; } 4114if ${ac_cv_objext+:} false; then : 4115 $as_echo_n "(cached) " >&6 4116else 4117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4118/* end confdefs.h. */ 4119 4120int 4121main () 4122{ 4123 4124 ; 4125 return 0; 4126} 4127_ACEOF 4128rm -f conftest.o conftest.obj 4129if { { ac_try="$ac_compile" 4130case "(($ac_try" in 4131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4132 *) ac_try_echo=$ac_try;; 4133esac 4134eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4135$as_echo "$ac_try_echo"; } >&5 4136 (eval "$ac_compile") 2>&5 4137 ac_status=$? 4138 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4139 test $ac_status = 0; }; then : 4140 for ac_file in conftest.o conftest.obj conftest.*; do 4141 test -f "$ac_file" || continue; 4142 case $ac_file in 4143 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4144 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4145 break;; 4146 esac 4147done 4148else 4149 $as_echo "$as_me: failed program was:" >&5 4150sed 's/^/| /' conftest.$ac_ext >&5 4151 4152{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4153$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4154as_fn_error $? "cannot compute suffix of object files: cannot compile 4155See \`config.log' for more details" "$LINENO" 5; } 4156fi 4157rm -f conftest.$ac_cv_objext conftest.$ac_ext 4158fi 4159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4160$as_echo "$ac_cv_objext" >&6; } 4161OBJEXT=$ac_cv_objext 4162ac_objext=$OBJEXT 4163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4164$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4165if ${ac_cv_c_compiler_gnu+:} false; then : 4166 $as_echo_n "(cached) " >&6 4167else 4168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4169/* end confdefs.h. */ 4170 4171int 4172main () 4173{ 4174#ifndef __GNUC__ 4175 choke me 4176#endif 4177 4178 ; 4179 return 0; 4180} 4181_ACEOF 4182if ac_fn_c_try_compile "$LINENO"; then : 4183 ac_compiler_gnu=yes 4184else 4185 ac_compiler_gnu=no 4186fi 4187rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4188ac_cv_c_compiler_gnu=$ac_compiler_gnu 4189 4190fi 4191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4192$as_echo "$ac_cv_c_compiler_gnu" >&6; } 4193if test $ac_compiler_gnu = yes; then 4194 GCC=yes 4195else 4196 GCC= 4197fi 4198ac_test_CFLAGS=${CFLAGS+set} 4199ac_save_CFLAGS=$CFLAGS 4200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4201$as_echo_n "checking whether $CC accepts -g... " >&6; } 4202if ${ac_cv_prog_cc_g+:} false; then : 4203 $as_echo_n "(cached) " >&6 4204else 4205 ac_save_c_werror_flag=$ac_c_werror_flag 4206 ac_c_werror_flag=yes 4207 ac_cv_prog_cc_g=no 4208 CFLAGS="-g" 4209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4210/* end confdefs.h. */ 4211 4212int 4213main () 4214{ 4215 4216 ; 4217 return 0; 4218} 4219_ACEOF 4220if ac_fn_c_try_compile "$LINENO"; then : 4221 ac_cv_prog_cc_g=yes 4222else 4223 CFLAGS="" 4224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4225/* end confdefs.h. */ 4226 4227int 4228main () 4229{ 4230 4231 ; 4232 return 0; 4233} 4234_ACEOF 4235if ac_fn_c_try_compile "$LINENO"; then : 4236 4237else 4238 ac_c_werror_flag=$ac_save_c_werror_flag 4239 CFLAGS="-g" 4240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4241/* end confdefs.h. */ 4242 4243int 4244main () 4245{ 4246 4247 ; 4248 return 0; 4249} 4250_ACEOF 4251if ac_fn_c_try_compile "$LINENO"; then : 4252 ac_cv_prog_cc_g=yes 4253fi 4254rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4255fi 4256rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4257fi 4258rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4259 ac_c_werror_flag=$ac_save_c_werror_flag 4260fi 4261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4262$as_echo "$ac_cv_prog_cc_g" >&6; } 4263if test "$ac_test_CFLAGS" = set; then 4264 CFLAGS=$ac_save_CFLAGS 4265elif test $ac_cv_prog_cc_g = yes; then 4266 if test "$GCC" = yes; then 4267 CFLAGS="-g -O2" 4268 else 4269 CFLAGS="-g" 4270 fi 4271else 4272 if test "$GCC" = yes; then 4273 CFLAGS="-O2" 4274 else 4275 CFLAGS= 4276 fi 4277fi 4278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4279$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4280if ${ac_cv_prog_cc_c89+:} false; then : 4281 $as_echo_n "(cached) " >&6 4282else 4283 ac_cv_prog_cc_c89=no 4284ac_save_CC=$CC 4285cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4286/* end confdefs.h. */ 4287#include <stdarg.h> 4288#include <stdio.h> 4289struct stat; 4290/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4291struct buf { int x; }; 4292FILE * (*rcsopen) (struct buf *, struct stat *, int); 4293static char *e (p, i) 4294 char **p; 4295 int i; 4296{ 4297 return p[i]; 4298} 4299static char *f (char * (*g) (char **, int), char **p, ...) 4300{ 4301 char *s; 4302 va_list v; 4303 va_start (v,p); 4304 s = g (p, va_arg (v,int)); 4305 va_end (v); 4306 return s; 4307} 4308 4309/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4310 function prototypes and stuff, but not '\xHH' hex character constants. 4311 These don't provoke an error unfortunately, instead are silently treated 4312 as 'x'. The following induces an error, until -std is added to get 4313 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4314 array size at least. It's necessary to write '\x00'==0 to get something 4315 that's true only with -std. */ 4316int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4317 4318/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4319 inside strings and character constants. */ 4320#define FOO(x) 'x' 4321int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4322 4323int test (int i, double x); 4324struct s1 {int (*f) (int a);}; 4325struct s2 {int (*f) (double a);}; 4326int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4327int argc; 4328char **argv; 4329int 4330main () 4331{ 4332return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4333 ; 4334 return 0; 4335} 4336_ACEOF 4337for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4338 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4339do 4340 CC="$ac_save_CC $ac_arg" 4341 if ac_fn_c_try_compile "$LINENO"; then : 4342 ac_cv_prog_cc_c89=$ac_arg 4343fi 4344rm -f core conftest.err conftest.$ac_objext 4345 test "x$ac_cv_prog_cc_c89" != "xno" && break 4346done 4347rm -f conftest.$ac_ext 4348CC=$ac_save_CC 4349 4350fi 4351# AC_CACHE_VAL 4352case "x$ac_cv_prog_cc_c89" in 4353 x) 4354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4355$as_echo "none needed" >&6; } ;; 4356 xno) 4357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4358$as_echo "unsupported" >&6; } ;; 4359 *) 4360 CC="$CC $ac_cv_prog_cc_c89" 4361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4362$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4363esac 4364if test "x$ac_cv_prog_cc_c89" != xno; then : 4365 4366fi 4367 4368ac_ext=c 4369ac_cpp='$CPP $CPPFLAGS' 4370ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4371ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4372ac_compiler_gnu=$ac_cv_c_compiler_gnu 4373 4374ac_ext=c 4375ac_cpp='$CPP $CPPFLAGS' 4376ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4377ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4378ac_compiler_gnu=$ac_cv_c_compiler_gnu 4379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4380$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 4381if ${am_cv_prog_cc_c_o+:} false; then : 4382 $as_echo_n "(cached) " >&6 4383else 4384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4385/* end confdefs.h. */ 4386 4387int 4388main () 4389{ 4390 4391 ; 4392 return 0; 4393} 4394_ACEOF 4395 # Make sure it works both with $CC and with simple cc. 4396 # Following AC_PROG_CC_C_O, we do the test twice because some 4397 # compilers refuse to overwrite an existing .o file with -o, 4398 # though they will create one. 4399 am_cv_prog_cc_c_o=yes 4400 for am_i in 1 2; do 4401 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4402 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4403 ac_status=$? 4404 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4405 (exit $ac_status); } \ 4406 && test -f conftest2.$ac_objext; then 4407 : OK 4408 else 4409 am_cv_prog_cc_c_o=no 4410 break 4411 fi 4412 done 4413 rm -f core conftest* 4414 unset am_i 4415fi 4416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4417$as_echo "$am_cv_prog_cc_c_o" >&6; } 4418if test "$am_cv_prog_cc_c_o" != yes; then 4419 # Losing compiler, so override with the script. 4420 # FIXME: It is wrong to rewrite CC. 4421 # But if we don't then we get into trouble of one sort or another. 4422 # A longer-term fix would be to have automake use am__CC in this case, 4423 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4424 CC="$am_aux_dir/compile $CC" 4425fi 4426ac_ext=c 4427ac_cpp='$CPP $CPPFLAGS' 4428ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4429ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4430ac_compiler_gnu=$ac_cv_c_compiler_gnu 4431 4432 4433depcc="$CC" am_compiler_list= 4434 4435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4436$as_echo_n "checking dependency style of $depcc... " >&6; } 4437if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4438 $as_echo_n "(cached) " >&6 4439else 4440 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4441 # We make a subdir and do the tests there. Otherwise we can end up 4442 # making bogus files that we don't know about and never remove. For 4443 # instance it was reported that on HP-UX the gcc test will end up 4444 # making a dummy file named 'D' -- because '-MD' means "put the output 4445 # in D". 4446 rm -rf conftest.dir 4447 mkdir conftest.dir 4448 # Copy depcomp to subdir because otherwise we won't find it if we're 4449 # using a relative directory. 4450 cp "$am_depcomp" conftest.dir 4451 cd conftest.dir 4452 # We will build objects and dependencies in a subdirectory because 4453 # it helps to detect inapplicable dependency modes. For instance 4454 # both Tru64's cc and ICC support -MD to output dependencies as a 4455 # side effect of compilation, but ICC will put the dependencies in 4456 # the current directory while Tru64 will put them in the object 4457 # directory. 4458 mkdir sub 4459 4460 am_cv_CC_dependencies_compiler_type=none 4461 if test "$am_compiler_list" = ""; then 4462 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4463 fi 4464 am__universal=false 4465 case " $depcc " in #( 4466 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4467 esac 4468 4469 for depmode in $am_compiler_list; do 4470 # Setup a source with many dependencies, because some compilers 4471 # like to wrap large dependency lists on column 80 (with \), and 4472 # we should not choose a depcomp mode which is confused by this. 4473 # 4474 # We need to recreate these files for each test, as the compiler may 4475 # overwrite some of them when testing with obscure command lines. 4476 # This happens at least with the AIX C compiler. 4477 : > sub/conftest.c 4478 for i in 1 2 3 4 5 6; do 4479 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4480 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4481 # Solaris 10 /bin/sh. 4482 echo '/* dummy */' > sub/conftst$i.h 4483 done 4484 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4485 4486 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4487 # mode. It turns out that the SunPro C++ compiler does not properly 4488 # handle '-M -o', and we need to detect this. Also, some Intel 4489 # versions had trouble with output in subdirs. 4490 am__obj=sub/conftest.${OBJEXT-o} 4491 am__minus_obj="-o $am__obj" 4492 case $depmode in 4493 gcc) 4494 # This depmode causes a compiler race in universal mode. 4495 test "$am__universal" = false || continue 4496 ;; 4497 nosideeffect) 4498 # After this tag, mechanisms are not by side-effect, so they'll 4499 # only be used when explicitly requested. 4500 if test "x$enable_dependency_tracking" = xyes; then 4501 continue 4502 else 4503 break 4504 fi 4505 ;; 4506 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4507 # This compiler won't grok '-c -o', but also, the minuso test has 4508 # not run yet. These depmodes are late enough in the game, and 4509 # so weak that their functioning should not be impacted. 4510 am__obj=conftest.${OBJEXT-o} 4511 am__minus_obj= 4512 ;; 4513 none) break ;; 4514 esac 4515 if depmode=$depmode \ 4516 source=sub/conftest.c object=$am__obj \ 4517 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4518 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4519 >/dev/null 2>conftest.err && 4520 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4521 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4522 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4523 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4524 # icc doesn't choke on unknown options, it will just issue warnings 4525 # or remarks (even with -Werror). So we grep stderr for any message 4526 # that says an option was ignored or not supported. 4527 # When given -MP, icc 7.0 and 7.1 complain thusly: 4528 # icc: Command line warning: ignoring option '-M'; no argument required 4529 # The diagnosis changed in icc 8.0: 4530 # icc: Command line remark: option '-MP' not supported 4531 if (grep 'ignoring option' conftest.err || 4532 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4533 am_cv_CC_dependencies_compiler_type=$depmode 4534 break 4535 fi 4536 fi 4537 done 4538 4539 cd .. 4540 rm -rf conftest.dir 4541else 4542 am_cv_CC_dependencies_compiler_type=none 4543fi 4544 4545fi 4546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4547$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4548CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4549 4550 if 4551 test "x$enable_dependency_tracking" != xno \ 4552 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4553 am__fastdepCC_TRUE= 4554 am__fastdepCC_FALSE='#' 4555else 4556 am__fastdepCC_TRUE='#' 4557 am__fastdepCC_FALSE= 4558fi 4559 4560 4561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4562$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4563if ${ac_cv_path_SED+:} false; then : 4564 $as_echo_n "(cached) " >&6 4565else 4566 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4567 for ac_i in 1 2 3 4 5 6 7; do 4568 ac_script="$ac_script$as_nl$ac_script" 4569 done 4570 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4571 { ac_script=; unset ac_script;} 4572 if test -z "$SED"; then 4573 ac_path_SED_found=false 4574 # Loop through the user's path and test for each of PROGNAME-LIST 4575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4576for as_dir in $PATH 4577do 4578 IFS=$as_save_IFS 4579 test -z "$as_dir" && as_dir=. 4580 for ac_prog in sed gsed; do 4581 for ac_exec_ext in '' $ac_executable_extensions; do 4582 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4583 as_fn_executable_p "$ac_path_SED" || continue 4584# Check for GNU ac_path_SED and select it if it is found. 4585 # Check for GNU $ac_path_SED 4586case `"$ac_path_SED" --version 2>&1` in 4587*GNU*) 4588 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4589*) 4590 ac_count=0 4591 $as_echo_n 0123456789 >"conftest.in" 4592 while : 4593 do 4594 cat "conftest.in" "conftest.in" >"conftest.tmp" 4595 mv "conftest.tmp" "conftest.in" 4596 cp "conftest.in" "conftest.nl" 4597 $as_echo '' >> "conftest.nl" 4598 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4599 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4600 as_fn_arith $ac_count + 1 && ac_count=$as_val 4601 if test $ac_count -gt ${ac_path_SED_max-0}; then 4602 # Best one so far, save it but keep looking for a better one 4603 ac_cv_path_SED="$ac_path_SED" 4604 ac_path_SED_max=$ac_count 4605 fi 4606 # 10*(2^10) chars as input seems more than enough 4607 test $ac_count -gt 10 && break 4608 done 4609 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4610esac 4611 4612 $ac_path_SED_found && break 3 4613 done 4614 done 4615 done 4616IFS=$as_save_IFS 4617 if test -z "$ac_cv_path_SED"; then 4618 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4619 fi 4620else 4621 ac_cv_path_SED=$SED 4622fi 4623 4624fi 4625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4626$as_echo "$ac_cv_path_SED" >&6; } 4627 SED="$ac_cv_path_SED" 4628 rm -f conftest.sed 4629 4630test -z "$SED" && SED=sed 4631Xsed="$SED -e 1s/^X//" 4632 4633 4634 4635 4636 4637 4638 4639 4640 4641 4642 4643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4644$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4645if ${ac_cv_path_GREP+:} false; then : 4646 $as_echo_n "(cached) " >&6 4647else 4648 if test -z "$GREP"; then 4649 ac_path_GREP_found=false 4650 # Loop through the user's path and test for each of PROGNAME-LIST 4651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4652for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4653do 4654 IFS=$as_save_IFS 4655 test -z "$as_dir" && as_dir=. 4656 for ac_prog in grep ggrep; do 4657 for ac_exec_ext in '' $ac_executable_extensions; do 4658 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4659 as_fn_executable_p "$ac_path_GREP" || continue 4660# Check for GNU ac_path_GREP and select it if it is found. 4661 # Check for GNU $ac_path_GREP 4662case `"$ac_path_GREP" --version 2>&1` in 4663*GNU*) 4664 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4665*) 4666 ac_count=0 4667 $as_echo_n 0123456789 >"conftest.in" 4668 while : 4669 do 4670 cat "conftest.in" "conftest.in" >"conftest.tmp" 4671 mv "conftest.tmp" "conftest.in" 4672 cp "conftest.in" "conftest.nl" 4673 $as_echo 'GREP' >> "conftest.nl" 4674 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4675 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4676 as_fn_arith $ac_count + 1 && ac_count=$as_val 4677 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4678 # Best one so far, save it but keep looking for a better one 4679 ac_cv_path_GREP="$ac_path_GREP" 4680 ac_path_GREP_max=$ac_count 4681 fi 4682 # 10*(2^10) chars as input seems more than enough 4683 test $ac_count -gt 10 && break 4684 done 4685 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4686esac 4687 4688 $ac_path_GREP_found && break 3 4689 done 4690 done 4691 done 4692IFS=$as_save_IFS 4693 if test -z "$ac_cv_path_GREP"; then 4694 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4695 fi 4696else 4697 ac_cv_path_GREP=$GREP 4698fi 4699 4700fi 4701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4702$as_echo "$ac_cv_path_GREP" >&6; } 4703 GREP="$ac_cv_path_GREP" 4704 4705 4706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4707$as_echo_n "checking for egrep... " >&6; } 4708if ${ac_cv_path_EGREP+:} false; then : 4709 $as_echo_n "(cached) " >&6 4710else 4711 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4712 then ac_cv_path_EGREP="$GREP -E" 4713 else 4714 if test -z "$EGREP"; then 4715 ac_path_EGREP_found=false 4716 # Loop through the user's path and test for each of PROGNAME-LIST 4717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4718for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4719do 4720 IFS=$as_save_IFS 4721 test -z "$as_dir" && as_dir=. 4722 for ac_prog in egrep; do 4723 for ac_exec_ext in '' $ac_executable_extensions; do 4724 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4725 as_fn_executable_p "$ac_path_EGREP" || continue 4726# Check for GNU ac_path_EGREP and select it if it is found. 4727 # Check for GNU $ac_path_EGREP 4728case `"$ac_path_EGREP" --version 2>&1` in 4729*GNU*) 4730 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4731*) 4732 ac_count=0 4733 $as_echo_n 0123456789 >"conftest.in" 4734 while : 4735 do 4736 cat "conftest.in" "conftest.in" >"conftest.tmp" 4737 mv "conftest.tmp" "conftest.in" 4738 cp "conftest.in" "conftest.nl" 4739 $as_echo 'EGREP' >> "conftest.nl" 4740 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4741 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4742 as_fn_arith $ac_count + 1 && ac_count=$as_val 4743 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4744 # Best one so far, save it but keep looking for a better one 4745 ac_cv_path_EGREP="$ac_path_EGREP" 4746 ac_path_EGREP_max=$ac_count 4747 fi 4748 # 10*(2^10) chars as input seems more than enough 4749 test $ac_count -gt 10 && break 4750 done 4751 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4752esac 4753 4754 $ac_path_EGREP_found && break 3 4755 done 4756 done 4757 done 4758IFS=$as_save_IFS 4759 if test -z "$ac_cv_path_EGREP"; then 4760 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4761 fi 4762else 4763 ac_cv_path_EGREP=$EGREP 4764fi 4765 4766 fi 4767fi 4768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4769$as_echo "$ac_cv_path_EGREP" >&6; } 4770 EGREP="$ac_cv_path_EGREP" 4771 4772 4773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4774$as_echo_n "checking for fgrep... " >&6; } 4775if ${ac_cv_path_FGREP+:} false; then : 4776 $as_echo_n "(cached) " >&6 4777else 4778 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4779 then ac_cv_path_FGREP="$GREP -F" 4780 else 4781 if test -z "$FGREP"; then 4782 ac_path_FGREP_found=false 4783 # Loop through the user's path and test for each of PROGNAME-LIST 4784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4785for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4786do 4787 IFS=$as_save_IFS 4788 test -z "$as_dir" && as_dir=. 4789 for ac_prog in fgrep; do 4790 for ac_exec_ext in '' $ac_executable_extensions; do 4791 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4792 as_fn_executable_p "$ac_path_FGREP" || continue 4793# Check for GNU ac_path_FGREP and select it if it is found. 4794 # Check for GNU $ac_path_FGREP 4795case `"$ac_path_FGREP" --version 2>&1` in 4796*GNU*) 4797 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4798*) 4799 ac_count=0 4800 $as_echo_n 0123456789 >"conftest.in" 4801 while : 4802 do 4803 cat "conftest.in" "conftest.in" >"conftest.tmp" 4804 mv "conftest.tmp" "conftest.in" 4805 cp "conftest.in" "conftest.nl" 4806 $as_echo 'FGREP' >> "conftest.nl" 4807 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4808 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4809 as_fn_arith $ac_count + 1 && ac_count=$as_val 4810 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4811 # Best one so far, save it but keep looking for a better one 4812 ac_cv_path_FGREP="$ac_path_FGREP" 4813 ac_path_FGREP_max=$ac_count 4814 fi 4815 # 10*(2^10) chars as input seems more than enough 4816 test $ac_count -gt 10 && break 4817 done 4818 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4819esac 4820 4821 $ac_path_FGREP_found && break 3 4822 done 4823 done 4824 done 4825IFS=$as_save_IFS 4826 if test -z "$ac_cv_path_FGREP"; then 4827 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4828 fi 4829else 4830 ac_cv_path_FGREP=$FGREP 4831fi 4832 4833 fi 4834fi 4835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4836$as_echo "$ac_cv_path_FGREP" >&6; } 4837 FGREP="$ac_cv_path_FGREP" 4838 4839 4840test -z "$GREP" && GREP=grep 4841 4842 4843 4844 4845 4846 4847 4848 4849 4850 4851 4852 4853 4854 4855 4856 4857 4858 4859 4860@%:@ Check whether --with-gnu-ld was given. 4861if test "${with_gnu_ld+set}" = set; then : 4862 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 4863else 4864 with_gnu_ld=no 4865fi 4866 4867ac_prog=ld 4868if test yes = "$GCC"; then 4869 # Check if gcc -print-prog-name=ld gives a path. 4870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 4871$as_echo_n "checking for ld used by $CC... " >&6; } 4872 case $host in 4873 *-*-mingw*) 4874 # gcc leaves a trailing carriage return, which upsets mingw 4875 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4876 *) 4877 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4878 esac 4879 case $ac_prog in 4880 # Accept absolute paths. 4881 [\\/]* | ?:[\\/]*) 4882 re_direlt='/[^/][^/]*/\.\./' 4883 # Canonicalize the pathname of ld 4884 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4885 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4886 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4887 done 4888 test -z "$LD" && LD=$ac_prog 4889 ;; 4890 "") 4891 # If it fails, then pretend we aren't using GCC. 4892 ac_prog=ld 4893 ;; 4894 *) 4895 # If it is relative, then search for the first ld in PATH. 4896 with_gnu_ld=unknown 4897 ;; 4898 esac 4899elif test yes = "$with_gnu_ld"; then 4900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 4901$as_echo_n "checking for GNU ld... " >&6; } 4902else 4903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 4904$as_echo_n "checking for non-GNU ld... " >&6; } 4905fi 4906if ${lt_cv_path_LD+:} false; then : 4907 $as_echo_n "(cached) " >&6 4908else 4909 if test -z "$LD"; then 4910 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 4911 for ac_dir in $PATH; do 4912 IFS=$lt_save_ifs 4913 test -z "$ac_dir" && ac_dir=. 4914 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4915 lt_cv_path_LD=$ac_dir/$ac_prog 4916 # Check to see if the program is GNU ld. I'd rather use --version, 4917 # but apparently some variants of GNU ld only accept -v. 4918 # Break only if it was the GNU/non-GNU ld that we prefer. 4919 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4920 *GNU* | *'with BFD'*) 4921 test no != "$with_gnu_ld" && break 4922 ;; 4923 *) 4924 test yes != "$with_gnu_ld" && break 4925 ;; 4926 esac 4927 fi 4928 done 4929 IFS=$lt_save_ifs 4930else 4931 lt_cv_path_LD=$LD # Let the user override the test with a path. 4932fi 4933fi 4934 4935LD=$lt_cv_path_LD 4936if test -n "$LD"; then 4937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 4938$as_echo "$LD" >&6; } 4939else 4940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4941$as_echo "no" >&6; } 4942fi 4943test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 4944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 4945$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4946if ${lt_cv_prog_gnu_ld+:} false; then : 4947 $as_echo_n "(cached) " >&6 4948else 4949 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4950case `$LD -v 2>&1 </dev/null` in 4951*GNU* | *'with BFD'*) 4952 lt_cv_prog_gnu_ld=yes 4953 ;; 4954*) 4955 lt_cv_prog_gnu_ld=no 4956 ;; 4957esac 4958fi 4959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 4960$as_echo "$lt_cv_prog_gnu_ld" >&6; } 4961with_gnu_ld=$lt_cv_prog_gnu_ld 4962 4963 4964 4965 4966 4967 4968 4969 4970 4971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 4972$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 4973if ${lt_cv_path_NM+:} false; then : 4974 $as_echo_n "(cached) " >&6 4975else 4976 if test -n "$NM"; then 4977 # Let the user override the test. 4978 lt_cv_path_NM=$NM 4979else 4980 lt_nm_to_check=${ac_tool_prefix}nm 4981 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4982 lt_nm_to_check="$lt_nm_to_check nm" 4983 fi 4984 for lt_tmp_nm in $lt_nm_to_check; do 4985 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 4986 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4987 IFS=$lt_save_ifs 4988 test -z "$ac_dir" && ac_dir=. 4989 tmp_nm=$ac_dir/$lt_tmp_nm 4990 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 4991 # Check to see if the nm accepts a BSD-compat flag. 4992 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 4993 # nm: unknown option "B" ignored 4994 # Tru64's nm complains that /dev/null is an invalid object file 4995 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 4996 case $build_os in 4997 mingw*) lt_bad_file=conftest.nm/nofile ;; 4998 *) lt_bad_file=/dev/null ;; 4999 esac 5000 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 5001 *$lt_bad_file* | *'Invalid file or object type'*) 5002 lt_cv_path_NM="$tmp_nm -B" 5003 break 2 5004 ;; 5005 *) 5006 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5007 */dev/null*) 5008 lt_cv_path_NM="$tmp_nm -p" 5009 break 2 5010 ;; 5011 *) 5012 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5013 continue # so that we can try to find one that supports BSD flags 5014 ;; 5015 esac 5016 ;; 5017 esac 5018 fi 5019 done 5020 IFS=$lt_save_ifs 5021 done 5022 : ${lt_cv_path_NM=no} 5023fi 5024fi 5025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5026$as_echo "$lt_cv_path_NM" >&6; } 5027if test no != "$lt_cv_path_NM"; then 5028 NM=$lt_cv_path_NM 5029else 5030 # Didn't find any BSD compatible name lister, look for dumpbin. 5031 if test -n "$DUMPBIN"; then : 5032 # Let the user override the test. 5033 else 5034 if test -n "$ac_tool_prefix"; then 5035 for ac_prog in dumpbin "link -dump" 5036 do 5037 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5038set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5040$as_echo_n "checking for $ac_word... " >&6; } 5041if ${ac_cv_prog_DUMPBIN+:} false; then : 5042 $as_echo_n "(cached) " >&6 5043else 5044 if test -n "$DUMPBIN"; then 5045 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5046else 5047as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5048for as_dir in $PATH 5049do 5050 IFS=$as_save_IFS 5051 test -z "$as_dir" && as_dir=. 5052 for ac_exec_ext in '' $ac_executable_extensions; do 5053 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5054 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5056 break 2 5057 fi 5058done 5059 done 5060IFS=$as_save_IFS 5061 5062fi 5063fi 5064DUMPBIN=$ac_cv_prog_DUMPBIN 5065if test -n "$DUMPBIN"; then 5066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5067$as_echo "$DUMPBIN" >&6; } 5068else 5069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5070$as_echo "no" >&6; } 5071fi 5072 5073 5074 test -n "$DUMPBIN" && break 5075 done 5076fi 5077if test -z "$DUMPBIN"; then 5078 ac_ct_DUMPBIN=$DUMPBIN 5079 for ac_prog in dumpbin "link -dump" 5080do 5081 # Extract the first word of "$ac_prog", so it can be a program name with args. 5082set dummy $ac_prog; ac_word=$2 5083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5084$as_echo_n "checking for $ac_word... " >&6; } 5085if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 5086 $as_echo_n "(cached) " >&6 5087else 5088 if test -n "$ac_ct_DUMPBIN"; then 5089 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5090else 5091as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5092for as_dir in $PATH 5093do 5094 IFS=$as_save_IFS 5095 test -z "$as_dir" && as_dir=. 5096 for ac_exec_ext in '' $ac_executable_extensions; do 5097 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5098 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5100 break 2 5101 fi 5102done 5103 done 5104IFS=$as_save_IFS 5105 5106fi 5107fi 5108ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5109if test -n "$ac_ct_DUMPBIN"; then 5110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5111$as_echo "$ac_ct_DUMPBIN" >&6; } 5112else 5113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5114$as_echo "no" >&6; } 5115fi 5116 5117 5118 test -n "$ac_ct_DUMPBIN" && break 5119done 5120 5121 if test "x$ac_ct_DUMPBIN" = x; then 5122 DUMPBIN=":" 5123 else 5124 case $cross_compiling:$ac_tool_warned in 5125yes:) 5126{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5127$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5128ac_tool_warned=yes ;; 5129esac 5130 DUMPBIN=$ac_ct_DUMPBIN 5131 fi 5132fi 5133 5134 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 5135 *COFF*) 5136 DUMPBIN="$DUMPBIN -symbols -headers" 5137 ;; 5138 *) 5139 DUMPBIN=: 5140 ;; 5141 esac 5142 fi 5143 5144 if test : != "$DUMPBIN"; then 5145 NM=$DUMPBIN 5146 fi 5147fi 5148test -z "$NM" && NM=nm 5149 5150 5151 5152 5153 5154 5155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5156$as_echo_n "checking the name lister ($NM) interface... " >&6; } 5157if ${lt_cv_nm_interface+:} false; then : 5158 $as_echo_n "(cached) " >&6 5159else 5160 lt_cv_nm_interface="BSD nm" 5161 echo "int some_variable = 0;" > conftest.$ac_ext 5162 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5163 (eval "$ac_compile" 2>conftest.err) 5164 cat conftest.err >&5 5165 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5166 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5167 cat conftest.err >&5 5168 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5169 cat conftest.out >&5 5170 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5171 lt_cv_nm_interface="MS dumpbin" 5172 fi 5173 rm -f conftest* 5174fi 5175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5176$as_echo "$lt_cv_nm_interface" >&6; } 5177 5178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5179$as_echo_n "checking whether ln -s works... " >&6; } 5180LN_S=$as_ln_s 5181if test "$LN_S" = "ln -s"; then 5182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5183$as_echo "yes" >&6; } 5184else 5185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5186$as_echo "no, using $LN_S" >&6; } 5187fi 5188 5189# find the maximum length of command line arguments 5190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5191$as_echo_n "checking the maximum length of command line arguments... " >&6; } 5192if ${lt_cv_sys_max_cmd_len+:} false; then : 5193 $as_echo_n "(cached) " >&6 5194else 5195 i=0 5196 teststring=ABCD 5197 5198 case $build_os in 5199 msdosdjgpp*) 5200 # On DJGPP, this test can blow up pretty badly due to problems in libc 5201 # (any single argument exceeding 2000 bytes causes a buffer overrun 5202 # during glob expansion). Even if it were fixed, the result of this 5203 # check would be larger than it should be. 5204 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5205 ;; 5206 5207 gnu*) 5208 # Under GNU Hurd, this test is not required because there is 5209 # no limit to the length of command line arguments. 5210 # Libtool will interpret -1 as no limit whatsoever 5211 lt_cv_sys_max_cmd_len=-1; 5212 ;; 5213 5214 cygwin* | mingw* | cegcc*) 5215 # On Win9x/ME, this test blows up -- it succeeds, but takes 5216 # about 5 minutes as the teststring grows exponentially. 5217 # Worse, since 9x/ME are not pre-emptively multitasking, 5218 # you end up with a "frozen" computer, even though with patience 5219 # the test eventually succeeds (with a max line length of 256k). 5220 # Instead, let's just punt: use the minimum linelength reported by 5221 # all of the supported platforms: 8192 (on NT/2K/XP). 5222 lt_cv_sys_max_cmd_len=8192; 5223 ;; 5224 5225 mint*) 5226 # On MiNT this can take a long time and run out of memory. 5227 lt_cv_sys_max_cmd_len=8192; 5228 ;; 5229 5230 amigaos*) 5231 # On AmigaOS with pdksh, this test takes hours, literally. 5232 # So we just punt and use a minimum line length of 8192. 5233 lt_cv_sys_max_cmd_len=8192; 5234 ;; 5235 5236 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 5237 # This has been around since 386BSD, at least. Likely further. 5238 if test -x /sbin/sysctl; then 5239 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5240 elif test -x /usr/sbin/sysctl; then 5241 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5242 else 5243 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5244 fi 5245 # And add a safety zone 5246 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5247 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5248 ;; 5249 5250 interix*) 5251 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5252 lt_cv_sys_max_cmd_len=196608 5253 ;; 5254 5255 os2*) 5256 # The test takes a long time on OS/2. 5257 lt_cv_sys_max_cmd_len=8192 5258 ;; 5259 5260 osf*) 5261 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5262 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5263 # nice to cause kernel panics so lets avoid the loop below. 5264 # First set a reasonable default. 5265 lt_cv_sys_max_cmd_len=16384 5266 # 5267 if test -x /sbin/sysconfig; then 5268 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5269 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5270 esac 5271 fi 5272 ;; 5273 sco3.2v5*) 5274 lt_cv_sys_max_cmd_len=102400 5275 ;; 5276 sysv5* | sco5v6* | sysv4.2uw2*) 5277 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5278 if test -n "$kargmax"; then 5279 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5280 else 5281 lt_cv_sys_max_cmd_len=32768 5282 fi 5283 ;; 5284 *) 5285 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5286 if test -n "$lt_cv_sys_max_cmd_len" && \ 5287 test undefined != "$lt_cv_sys_max_cmd_len"; then 5288 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5289 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5290 else 5291 # Make teststring a little bigger before we do anything with it. 5292 # a 1K string should be a reasonable start. 5293 for i in 1 2 3 4 5 6 7 8; do 5294 teststring=$teststring$teststring 5295 done 5296 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5297 # If test is not a shell built-in, we'll probably end up computing a 5298 # maximum length that is only half of the actual maximum length, but 5299 # we can't tell. 5300 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 5301 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5302 test 17 != "$i" # 1/2 MB should be enough 5303 do 5304 i=`expr $i + 1` 5305 teststring=$teststring$teststring 5306 done 5307 # Only check the string length outside the loop. 5308 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5309 teststring= 5310 # Add a significant safety factor because C++ compilers can tack on 5311 # massive amounts of additional arguments before passing them to the 5312 # linker. It appears as though 1/2 is a usable value. 5313 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5314 fi 5315 ;; 5316 esac 5317 5318fi 5319 5320if test -n "$lt_cv_sys_max_cmd_len"; then 5321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5322$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5323else 5324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5325$as_echo "none" >&6; } 5326fi 5327max_cmd_len=$lt_cv_sys_max_cmd_len 5328 5329 5330 5331 5332 5333 5334: ${CP="cp -f"} 5335: ${MV="mv -f"} 5336: ${RM="rm -f"} 5337 5338if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5339 lt_unset=unset 5340else 5341 lt_unset=false 5342fi 5343 5344 5345 5346 5347 5348# test EBCDIC or ASCII 5349case `echo X|tr X '\101'` in 5350 A) # ASCII based system 5351 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5352 lt_SP2NL='tr \040 \012' 5353 lt_NL2SP='tr \015\012 \040\040' 5354 ;; 5355 *) # EBCDIC based system 5356 lt_SP2NL='tr \100 \n' 5357 lt_NL2SP='tr \r\n \100\100' 5358 ;; 5359esac 5360 5361 5362 5363 5364 5365 5366 5367 5368 5369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 5370$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 5371if ${lt_cv_to_host_file_cmd+:} false; then : 5372 $as_echo_n "(cached) " >&6 5373else 5374 case $host in 5375 *-*-mingw* ) 5376 case $build in 5377 *-*-mingw* ) # actually msys 5378 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 5379 ;; 5380 *-*-cygwin* ) 5381 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 5382 ;; 5383 * ) # otherwise, assume *nix 5384 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 5385 ;; 5386 esac 5387 ;; 5388 *-*-cygwin* ) 5389 case $build in 5390 *-*-mingw* ) # actually msys 5391 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 5392 ;; 5393 *-*-cygwin* ) 5394 lt_cv_to_host_file_cmd=func_convert_file_noop 5395 ;; 5396 * ) # otherwise, assume *nix 5397 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 5398 ;; 5399 esac 5400 ;; 5401 * ) # unhandled hosts (and "normal" native builds) 5402 lt_cv_to_host_file_cmd=func_convert_file_noop 5403 ;; 5404esac 5405 5406fi 5407 5408to_host_file_cmd=$lt_cv_to_host_file_cmd 5409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 5410$as_echo "$lt_cv_to_host_file_cmd" >&6; } 5411 5412 5413 5414 5415 5416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 5417$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 5418if ${lt_cv_to_tool_file_cmd+:} false; then : 5419 $as_echo_n "(cached) " >&6 5420else 5421 #assume ordinary cross tools, or native build. 5422lt_cv_to_tool_file_cmd=func_convert_file_noop 5423case $host in 5424 *-*-mingw* ) 5425 case $build in 5426 *-*-mingw* ) # actually msys 5427 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 5428 ;; 5429 esac 5430 ;; 5431esac 5432 5433fi 5434 5435to_tool_file_cmd=$lt_cv_to_tool_file_cmd 5436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 5437$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 5438 5439 5440 5441 5442 5443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5444$as_echo_n "checking for $LD option to reload object files... " >&6; } 5445if ${lt_cv_ld_reload_flag+:} false; then : 5446 $as_echo_n "(cached) " >&6 5447else 5448 lt_cv_ld_reload_flag='-r' 5449fi 5450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5451$as_echo "$lt_cv_ld_reload_flag" >&6; } 5452reload_flag=$lt_cv_ld_reload_flag 5453case $reload_flag in 5454"" | " "*) ;; 5455*) reload_flag=" $reload_flag" ;; 5456esac 5457reload_cmds='$LD$reload_flag -o $output$reload_objs' 5458case $host_os in 5459 cygwin* | mingw* | pw32* | cegcc*) 5460 if test yes != "$GCC"; then 5461 reload_cmds=false 5462 fi 5463 ;; 5464 darwin*) 5465 if test yes = "$GCC"; then 5466 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 5467 else 5468 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5469 fi 5470 ;; 5471esac 5472 5473 5474 5475 5476 5477 5478 5479 5480 5481if test -n "$ac_tool_prefix"; then 5482 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5483set dummy ${ac_tool_prefix}objdump; ac_word=$2 5484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5485$as_echo_n "checking for $ac_word... " >&6; } 5486if ${ac_cv_prog_OBJDUMP+:} false; then : 5487 $as_echo_n "(cached) " >&6 5488else 5489 if test -n "$OBJDUMP"; then 5490 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5491else 5492as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5493for as_dir in $PATH 5494do 5495 IFS=$as_save_IFS 5496 test -z "$as_dir" && as_dir=. 5497 for ac_exec_ext in '' $ac_executable_extensions; do 5498 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5499 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5501 break 2 5502 fi 5503done 5504 done 5505IFS=$as_save_IFS 5506 5507fi 5508fi 5509OBJDUMP=$ac_cv_prog_OBJDUMP 5510if test -n "$OBJDUMP"; then 5511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5512$as_echo "$OBJDUMP" >&6; } 5513else 5514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5515$as_echo "no" >&6; } 5516fi 5517 5518 5519fi 5520if test -z "$ac_cv_prog_OBJDUMP"; then 5521 ac_ct_OBJDUMP=$OBJDUMP 5522 # Extract the first word of "objdump", so it can be a program name with args. 5523set dummy objdump; ac_word=$2 5524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5525$as_echo_n "checking for $ac_word... " >&6; } 5526if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5527 $as_echo_n "(cached) " >&6 5528else 5529 if test -n "$ac_ct_OBJDUMP"; then 5530 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5531else 5532as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5533for as_dir in $PATH 5534do 5535 IFS=$as_save_IFS 5536 test -z "$as_dir" && as_dir=. 5537 for ac_exec_ext in '' $ac_executable_extensions; do 5538 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5539 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5541 break 2 5542 fi 5543done 5544 done 5545IFS=$as_save_IFS 5546 5547fi 5548fi 5549ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5550if test -n "$ac_ct_OBJDUMP"; then 5551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5552$as_echo "$ac_ct_OBJDUMP" >&6; } 5553else 5554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5555$as_echo "no" >&6; } 5556fi 5557 5558 if test "x$ac_ct_OBJDUMP" = x; then 5559 OBJDUMP="false" 5560 else 5561 case $cross_compiling:$ac_tool_warned in 5562yes:) 5563{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5564$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5565ac_tool_warned=yes ;; 5566esac 5567 OBJDUMP=$ac_ct_OBJDUMP 5568 fi 5569else 5570 OBJDUMP="$ac_cv_prog_OBJDUMP" 5571fi 5572 5573test -z "$OBJDUMP" && OBJDUMP=objdump 5574 5575 5576 5577 5578 5579 5580 5581 5582 5583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5584$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5585if ${lt_cv_deplibs_check_method+:} false; then : 5586 $as_echo_n "(cached) " >&6 5587else 5588 lt_cv_file_magic_cmd='$MAGIC_CMD' 5589lt_cv_file_magic_test_file= 5590lt_cv_deplibs_check_method='unknown' 5591# Need to set the preceding variable on all platforms that support 5592# interlibrary dependencies. 5593# 'none' -- dependencies not supported. 5594# 'unknown' -- same as none, but documents that we really don't know. 5595# 'pass_all' -- all dependencies passed with no checks. 5596# 'test_compile' -- check by making test program. 5597# 'file_magic [[regex]]' -- check by looking for files in library path 5598# that responds to the $file_magic_cmd with a given extended regex. 5599# If you have 'file' or equivalent on your system and you're not sure 5600# whether 'pass_all' will *always* work, you probably want this one. 5601 5602case $host_os in 5603aix[4-9]*) 5604 lt_cv_deplibs_check_method=pass_all 5605 ;; 5606 5607beos*) 5608 lt_cv_deplibs_check_method=pass_all 5609 ;; 5610 5611bsdi[45]*) 5612 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5613 lt_cv_file_magic_cmd='/usr/bin/file -L' 5614 lt_cv_file_magic_test_file=/shlib/libc.so 5615 ;; 5616 5617cygwin*) 5618 # func_win32_libid is a shell function defined in ltmain.sh 5619 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5620 lt_cv_file_magic_cmd='func_win32_libid' 5621 ;; 5622 5623mingw* | pw32*) 5624 # Base MSYS/MinGW do not provide the 'file' command needed by 5625 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5626 # unless we find 'file', for example because we are cross-compiling. 5627 if ( file / ) >/dev/null 2>&1; then 5628 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5629 lt_cv_file_magic_cmd='func_win32_libid' 5630 else 5631 # Keep this pattern in sync with the one in func_win32_libid. 5632 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 5633 lt_cv_file_magic_cmd='$OBJDUMP -f' 5634 fi 5635 ;; 5636 5637cegcc*) 5638 # use the weaker test based on 'objdump'. See mingw*. 5639 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5640 lt_cv_file_magic_cmd='$OBJDUMP -f' 5641 ;; 5642 5643darwin* | rhapsody*) 5644 lt_cv_deplibs_check_method=pass_all 5645 ;; 5646 5647freebsd* | dragonfly*) 5648 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5649 case $host_cpu in 5650 i*86 ) 5651 # Not sure whether the presence of OpenBSD here was a mistake. 5652 # Let's accept both of them until this is cleared up. 5653 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5654 lt_cv_file_magic_cmd=/usr/bin/file 5655 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5656 ;; 5657 esac 5658 else 5659 lt_cv_deplibs_check_method=pass_all 5660 fi 5661 ;; 5662 5663haiku*) 5664 lt_cv_deplibs_check_method=pass_all 5665 ;; 5666 5667hpux10.20* | hpux11*) 5668 lt_cv_file_magic_cmd=/usr/bin/file 5669 case $host_cpu in 5670 ia64*) 5671 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5672 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5673 ;; 5674 hppa*64*) 5675 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]' 5676 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5677 ;; 5678 *) 5679 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5680 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5681 ;; 5682 esac 5683 ;; 5684 5685interix[3-9]*) 5686 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5687 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5688 ;; 5689 5690irix5* | irix6* | nonstopux*) 5691 case $LD in 5692 *-32|*"-32 ") libmagic=32-bit;; 5693 *-n32|*"-n32 ") libmagic=N32;; 5694 *-64|*"-64 ") libmagic=64-bit;; 5695 *) libmagic=never-match;; 5696 esac 5697 lt_cv_deplibs_check_method=pass_all 5698 ;; 5699 5700# This must be glibc/ELF. 5701linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 5702 lt_cv_deplibs_check_method=pass_all 5703 ;; 5704 5705netbsd*) 5706 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5707 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5708 else 5709 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5710 fi 5711 ;; 5712 5713newos6*) 5714 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5715 lt_cv_file_magic_cmd=/usr/bin/file 5716 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5717 ;; 5718 5719*nto* | *qnx*) 5720 lt_cv_deplibs_check_method=pass_all 5721 ;; 5722 5723openbsd* | bitrig*) 5724 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 5725 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5726 else 5727 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5728 fi 5729 ;; 5730 5731osf3* | osf4* | osf5*) 5732 lt_cv_deplibs_check_method=pass_all 5733 ;; 5734 5735rdos*) 5736 lt_cv_deplibs_check_method=pass_all 5737 ;; 5738 5739solaris*) 5740 lt_cv_deplibs_check_method=pass_all 5741 ;; 5742 5743sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5744 lt_cv_deplibs_check_method=pass_all 5745 ;; 5746 5747sysv4 | sysv4.3*) 5748 case $host_vendor in 5749 motorola) 5750 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]' 5751 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5752 ;; 5753 ncr) 5754 lt_cv_deplibs_check_method=pass_all 5755 ;; 5756 sequent) 5757 lt_cv_file_magic_cmd='/bin/file' 5758 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5759 ;; 5760 sni) 5761 lt_cv_file_magic_cmd='/bin/file' 5762 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5763 lt_cv_file_magic_test_file=/lib/libc.so 5764 ;; 5765 siemens) 5766 lt_cv_deplibs_check_method=pass_all 5767 ;; 5768 pc) 5769 lt_cv_deplibs_check_method=pass_all 5770 ;; 5771 esac 5772 ;; 5773 5774tpf*) 5775 lt_cv_deplibs_check_method=pass_all 5776 ;; 5777os2*) 5778 lt_cv_deplibs_check_method=pass_all 5779 ;; 5780esac 5781 5782fi 5783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5784$as_echo "$lt_cv_deplibs_check_method" >&6; } 5785 5786file_magic_glob= 5787want_nocaseglob=no 5788if test "$build" = "$host"; then 5789 case $host_os in 5790 mingw* | pw32*) 5791 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 5792 want_nocaseglob=yes 5793 else 5794 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 5795 fi 5796 ;; 5797 esac 5798fi 5799 5800file_magic_cmd=$lt_cv_file_magic_cmd 5801deplibs_check_method=$lt_cv_deplibs_check_method 5802test -z "$deplibs_check_method" && deplibs_check_method=unknown 5803 5804 5805 5806 5807 5808 5809 5810 5811 5812 5813 5814 5815 5816 5817 5818 5819 5820 5821 5822 5823 5824 5825if test -n "$ac_tool_prefix"; then 5826 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 5827set dummy ${ac_tool_prefix}dlltool; ac_word=$2 5828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5829$as_echo_n "checking for $ac_word... " >&6; } 5830if ${ac_cv_prog_DLLTOOL+:} false; then : 5831 $as_echo_n "(cached) " >&6 5832else 5833 if test -n "$DLLTOOL"; then 5834 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 5835else 5836as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5837for as_dir in $PATH 5838do 5839 IFS=$as_save_IFS 5840 test -z "$as_dir" && as_dir=. 5841 for ac_exec_ext in '' $ac_executable_extensions; do 5842 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5843 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 5844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5845 break 2 5846 fi 5847done 5848 done 5849IFS=$as_save_IFS 5850 5851fi 5852fi 5853DLLTOOL=$ac_cv_prog_DLLTOOL 5854if test -n "$DLLTOOL"; then 5855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 5856$as_echo "$DLLTOOL" >&6; } 5857else 5858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5859$as_echo "no" >&6; } 5860fi 5861 5862 5863fi 5864if test -z "$ac_cv_prog_DLLTOOL"; then 5865 ac_ct_DLLTOOL=$DLLTOOL 5866 # Extract the first word of "dlltool", so it can be a program name with args. 5867set dummy dlltool; ac_word=$2 5868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5869$as_echo_n "checking for $ac_word... " >&6; } 5870if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 5871 $as_echo_n "(cached) " >&6 5872else 5873 if test -n "$ac_ct_DLLTOOL"; then 5874 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 5875else 5876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5877for as_dir in $PATH 5878do 5879 IFS=$as_save_IFS 5880 test -z "$as_dir" && as_dir=. 5881 for ac_exec_ext in '' $ac_executable_extensions; do 5882 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5883 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 5884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5885 break 2 5886 fi 5887done 5888 done 5889IFS=$as_save_IFS 5890 5891fi 5892fi 5893ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 5894if test -n "$ac_ct_DLLTOOL"; then 5895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 5896$as_echo "$ac_ct_DLLTOOL" >&6; } 5897else 5898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5899$as_echo "no" >&6; } 5900fi 5901 5902 if test "x$ac_ct_DLLTOOL" = x; then 5903 DLLTOOL="false" 5904 else 5905 case $cross_compiling:$ac_tool_warned in 5906yes:) 5907{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5908$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5909ac_tool_warned=yes ;; 5910esac 5911 DLLTOOL=$ac_ct_DLLTOOL 5912 fi 5913else 5914 DLLTOOL="$ac_cv_prog_DLLTOOL" 5915fi 5916 5917test -z "$DLLTOOL" && DLLTOOL=dlltool 5918 5919 5920 5921 5922 5923 5924 5925 5926 5927 5928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 5929$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 5930if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 5931 $as_echo_n "(cached) " >&6 5932else 5933 lt_cv_sharedlib_from_linklib_cmd='unknown' 5934 5935case $host_os in 5936cygwin* | mingw* | pw32* | cegcc*) 5937 # two different shell functions defined in ltmain.sh; 5938 # decide which one to use based on capabilities of $DLLTOOL 5939 case `$DLLTOOL --help 2>&1` in 5940 *--identify-strict*) 5941 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 5942 ;; 5943 *) 5944 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 5945 ;; 5946 esac 5947 ;; 5948*) 5949 # fallback: assume linklib IS sharedlib 5950 lt_cv_sharedlib_from_linklib_cmd=$ECHO 5951 ;; 5952esac 5953 5954fi 5955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 5956$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 5957sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 5958test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 5959 5960 5961 5962 5963 5964 5965 5966 5967if test -n "$ac_tool_prefix"; then 5968 for ac_prog in ar 5969 do 5970 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5971set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5973$as_echo_n "checking for $ac_word... " >&6; } 5974if ${ac_cv_prog_AR+:} false; then : 5975 $as_echo_n "(cached) " >&6 5976else 5977 if test -n "$AR"; then 5978 ac_cv_prog_AR="$AR" # Let the user override the test. 5979else 5980as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5981for as_dir in $PATH 5982do 5983 IFS=$as_save_IFS 5984 test -z "$as_dir" && as_dir=. 5985 for ac_exec_ext in '' $ac_executable_extensions; do 5986 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5987 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 5988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5989 break 2 5990 fi 5991done 5992 done 5993IFS=$as_save_IFS 5994 5995fi 5996fi 5997AR=$ac_cv_prog_AR 5998if test -n "$AR"; then 5999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6000$as_echo "$AR" >&6; } 6001else 6002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6003$as_echo "no" >&6; } 6004fi 6005 6006 6007 test -n "$AR" && break 6008 done 6009fi 6010if test -z "$AR"; then 6011 ac_ct_AR=$AR 6012 for ac_prog in ar 6013do 6014 # Extract the first word of "$ac_prog", so it can be a program name with args. 6015set dummy $ac_prog; ac_word=$2 6016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6017$as_echo_n "checking for $ac_word... " >&6; } 6018if ${ac_cv_prog_ac_ct_AR+:} false; then : 6019 $as_echo_n "(cached) " >&6 6020else 6021 if test -n "$ac_ct_AR"; then 6022 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6023else 6024as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6025for as_dir in $PATH 6026do 6027 IFS=$as_save_IFS 6028 test -z "$as_dir" && as_dir=. 6029 for ac_exec_ext in '' $ac_executable_extensions; do 6030 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6031 ac_cv_prog_ac_ct_AR="$ac_prog" 6032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6033 break 2 6034 fi 6035done 6036 done 6037IFS=$as_save_IFS 6038 6039fi 6040fi 6041ac_ct_AR=$ac_cv_prog_ac_ct_AR 6042if test -n "$ac_ct_AR"; then 6043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6044$as_echo "$ac_ct_AR" >&6; } 6045else 6046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6047$as_echo "no" >&6; } 6048fi 6049 6050 6051 test -n "$ac_ct_AR" && break 6052done 6053 6054 if test "x$ac_ct_AR" = x; then 6055 AR="false" 6056 else 6057 case $cross_compiling:$ac_tool_warned in 6058yes:) 6059{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6060$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6061ac_tool_warned=yes ;; 6062esac 6063 AR=$ac_ct_AR 6064 fi 6065fi 6066 6067: ${AR=ar} 6068: ${AR_FLAGS=cru} 6069 6070 6071 6072 6073 6074 6075 6076 6077 6078 6079 6080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 6081$as_echo_n "checking for archiver @FILE support... " >&6; } 6082if ${lt_cv_ar_at_file+:} false; then : 6083 $as_echo_n "(cached) " >&6 6084else 6085 lt_cv_ar_at_file=no 6086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6087/* end confdefs.h. */ 6088 6089int 6090main () 6091{ 6092 6093 ; 6094 return 0; 6095} 6096_ACEOF 6097if ac_fn_c_try_compile "$LINENO"; then : 6098 echo conftest.$ac_objext > conftest.lst 6099 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 6100 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6101 (eval $lt_ar_try) 2>&5 6102 ac_status=$? 6103 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6104 test $ac_status = 0; } 6105 if test 0 -eq "$ac_status"; then 6106 # Ensure the archiver fails upon bogus file names. 6107 rm -f conftest.$ac_objext libconftest.a 6108 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6109 (eval $lt_ar_try) 2>&5 6110 ac_status=$? 6111 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6112 test $ac_status = 0; } 6113 if test 0 -ne "$ac_status"; then 6114 lt_cv_ar_at_file=@ 6115 fi 6116 fi 6117 rm -f conftest.* libconftest.a 6118 6119fi 6120rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6121 6122fi 6123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 6124$as_echo "$lt_cv_ar_at_file" >&6; } 6125 6126if test no = "$lt_cv_ar_at_file"; then 6127 archiver_list_spec= 6128else 6129 archiver_list_spec=$lt_cv_ar_at_file 6130fi 6131 6132 6133 6134 6135 6136 6137 6138if test -n "$ac_tool_prefix"; then 6139 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6140set dummy ${ac_tool_prefix}strip; ac_word=$2 6141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6142$as_echo_n "checking for $ac_word... " >&6; } 6143if ${ac_cv_prog_STRIP+:} false; then : 6144 $as_echo_n "(cached) " >&6 6145else 6146 if test -n "$STRIP"; then 6147 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6148else 6149as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6150for as_dir in $PATH 6151do 6152 IFS=$as_save_IFS 6153 test -z "$as_dir" && as_dir=. 6154 for ac_exec_ext in '' $ac_executable_extensions; do 6155 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6156 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6158 break 2 6159 fi 6160done 6161 done 6162IFS=$as_save_IFS 6163 6164fi 6165fi 6166STRIP=$ac_cv_prog_STRIP 6167if test -n "$STRIP"; then 6168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6169$as_echo "$STRIP" >&6; } 6170else 6171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6172$as_echo "no" >&6; } 6173fi 6174 6175 6176fi 6177if test -z "$ac_cv_prog_STRIP"; then 6178 ac_ct_STRIP=$STRIP 6179 # Extract the first word of "strip", so it can be a program name with args. 6180set dummy strip; ac_word=$2 6181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6182$as_echo_n "checking for $ac_word... " >&6; } 6183if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 6184 $as_echo_n "(cached) " >&6 6185else 6186 if test -n "$ac_ct_STRIP"; then 6187 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6188else 6189as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6190for as_dir in $PATH 6191do 6192 IFS=$as_save_IFS 6193 test -z "$as_dir" && as_dir=. 6194 for ac_exec_ext in '' $ac_executable_extensions; do 6195 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6196 ac_cv_prog_ac_ct_STRIP="strip" 6197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6198 break 2 6199 fi 6200done 6201 done 6202IFS=$as_save_IFS 6203 6204fi 6205fi 6206ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6207if test -n "$ac_ct_STRIP"; then 6208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6209$as_echo "$ac_ct_STRIP" >&6; } 6210else 6211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6212$as_echo "no" >&6; } 6213fi 6214 6215 if test "x$ac_ct_STRIP" = x; then 6216 STRIP=":" 6217 else 6218 case $cross_compiling:$ac_tool_warned in 6219yes:) 6220{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6221$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6222ac_tool_warned=yes ;; 6223esac 6224 STRIP=$ac_ct_STRIP 6225 fi 6226else 6227 STRIP="$ac_cv_prog_STRIP" 6228fi 6229 6230test -z "$STRIP" && STRIP=: 6231 6232 6233 6234 6235 6236 6237if test -n "$ac_tool_prefix"; then 6238 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6239set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6241$as_echo_n "checking for $ac_word... " >&6; } 6242if ${ac_cv_prog_RANLIB+:} false; then : 6243 $as_echo_n "(cached) " >&6 6244else 6245 if test -n "$RANLIB"; then 6246 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6247else 6248as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6249for as_dir in $PATH 6250do 6251 IFS=$as_save_IFS 6252 test -z "$as_dir" && as_dir=. 6253 for ac_exec_ext in '' $ac_executable_extensions; do 6254 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6255 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6257 break 2 6258 fi 6259done 6260 done 6261IFS=$as_save_IFS 6262 6263fi 6264fi 6265RANLIB=$ac_cv_prog_RANLIB 6266if test -n "$RANLIB"; then 6267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6268$as_echo "$RANLIB" >&6; } 6269else 6270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6271$as_echo "no" >&6; } 6272fi 6273 6274 6275fi 6276if test -z "$ac_cv_prog_RANLIB"; then 6277 ac_ct_RANLIB=$RANLIB 6278 # Extract the first word of "ranlib", so it can be a program name with args. 6279set dummy ranlib; ac_word=$2 6280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6281$as_echo_n "checking for $ac_word... " >&6; } 6282if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 6283 $as_echo_n "(cached) " >&6 6284else 6285 if test -n "$ac_ct_RANLIB"; then 6286 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6287else 6288as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6289for as_dir in $PATH 6290do 6291 IFS=$as_save_IFS 6292 test -z "$as_dir" && as_dir=. 6293 for ac_exec_ext in '' $ac_executable_extensions; do 6294 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6295 ac_cv_prog_ac_ct_RANLIB="ranlib" 6296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6297 break 2 6298 fi 6299done 6300 done 6301IFS=$as_save_IFS 6302 6303fi 6304fi 6305ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6306if test -n "$ac_ct_RANLIB"; then 6307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6308$as_echo "$ac_ct_RANLIB" >&6; } 6309else 6310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6311$as_echo "no" >&6; } 6312fi 6313 6314 if test "x$ac_ct_RANLIB" = x; then 6315 RANLIB=":" 6316 else 6317 case $cross_compiling:$ac_tool_warned in 6318yes:) 6319{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6320$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6321ac_tool_warned=yes ;; 6322esac 6323 RANLIB=$ac_ct_RANLIB 6324 fi 6325else 6326 RANLIB="$ac_cv_prog_RANLIB" 6327fi 6328 6329test -z "$RANLIB" && RANLIB=: 6330 6331 6332 6333 6334 6335 6336# Determine commands to create old-style static archives. 6337old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6338old_postinstall_cmds='chmod 644 $oldlib' 6339old_postuninstall_cmds= 6340 6341if test -n "$RANLIB"; then 6342 case $host_os in 6343 bitrig* | openbsd*) 6344 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 6345 ;; 6346 *) 6347 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 6348 ;; 6349 esac 6350 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 6351fi 6352 6353case $host_os in 6354 darwin*) 6355 lock_old_archive_extraction=yes ;; 6356 *) 6357 lock_old_archive_extraction=no ;; 6358esac 6359 6360 6361 6362 6363 6364 6365 6366 6367 6368 6369 6370 6371 6372 6373 6374 6375 6376 6377 6378 6379 6380 6381 6382 6383 6384 6385 6386 6387 6388 6389 6390 6391 6392 6393 6394 6395 6396 6397 6398# If no C compiler was specified, use CC. 6399LTCC=${LTCC-"$CC"} 6400 6401# If no C compiler flags were specified, use CFLAGS. 6402LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6403 6404# Allow CC to be a program name with arguments. 6405compiler=$CC 6406 6407 6408# Check for command to grab the raw symbol name followed by C symbol from nm. 6409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6410$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6411if ${lt_cv_sys_global_symbol_pipe+:} false; then : 6412 $as_echo_n "(cached) " >&6 6413else 6414 6415# These are sane defaults that work on at least a few old systems. 6416# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6417 6418# Character class describing NM global symbol codes. 6419symcode='[BCDEGRST]' 6420 6421# Regexp to match symbols that can be accessed directly from C. 6422sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6423 6424# Define system-specific variables. 6425case $host_os in 6426aix*) 6427 symcode='[BCDT]' 6428 ;; 6429cygwin* | mingw* | pw32* | cegcc*) 6430 symcode='[ABCDGISTW]' 6431 ;; 6432hpux*) 6433 if test ia64 = "$host_cpu"; then 6434 symcode='[ABCDEGRST]' 6435 fi 6436 ;; 6437irix* | nonstopux*) 6438 symcode='[BCDEGRST]' 6439 ;; 6440osf*) 6441 symcode='[BCDEGQRST]' 6442 ;; 6443solaris*) 6444 symcode='[BDRT]' 6445 ;; 6446sco3.2v5*) 6447 symcode='[DT]' 6448 ;; 6449sysv4.2uw2*) 6450 symcode='[DT]' 6451 ;; 6452sysv5* | sco5v6* | unixware* | OpenUNIX*) 6453 symcode='[ABDT]' 6454 ;; 6455sysv4) 6456 symcode='[DFNSTU]' 6457 ;; 6458esac 6459 6460# If we're using GNU nm, then use its standard symbol codes. 6461case `$NM -V 2>&1` in 6462*GNU* | *'with BFD'*) 6463 symcode='[ABCDGIRSTW]' ;; 6464esac 6465 6466if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6467 # Gets list of data symbols to import. 6468 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 6469 # Adjust the below global symbol transforms to fixup imported variables. 6470 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 6471 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 6472 lt_c_name_lib_hook="\ 6473 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 6474 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 6475else 6476 # Disable hooks by default. 6477 lt_cv_sys_global_symbol_to_import= 6478 lt_cdecl_hook= 6479 lt_c_name_hook= 6480 lt_c_name_lib_hook= 6481fi 6482 6483# Transform an extracted symbol line into a proper C declaration. 6484# Some systems (esp. on ia64) link data and code symbols differently, 6485# so use this general approach. 6486lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 6487$lt_cdecl_hook\ 6488" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 6489" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 6490 6491# Transform an extracted symbol line into symbol name and symbol address 6492lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 6493$lt_c_name_hook\ 6494" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6495" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 6496 6497# Transform an extracted symbol line into symbol name with lib prefix and 6498# symbol address. 6499lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 6500$lt_c_name_lib_hook\ 6501" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6502" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 6503" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 6504 6505# Handle CRLF in mingw tool chain 6506opt_cr= 6507case $build_os in 6508mingw*) 6509 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6510 ;; 6511esac 6512 6513# Try without a prefix underscore, then with it. 6514for ac_symprfx in "" "_"; do 6515 6516 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6517 symxfrm="\\1 $ac_symprfx\\2 \\2" 6518 6519 # Write the raw and C identifiers. 6520 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6521 # Fake it for dumpbin and say T for any non-static function, 6522 # D for any global variable and I for any imported variable. 6523 # Also find C++ and __fastcall symbols from MSVC++, 6524 # which start with @ or ?. 6525 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6526" {last_section=section; section=\$ 3};"\ 6527" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 6528" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6529" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 6530" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 6531" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 6532" \$ 0!~/External *\|/{next};"\ 6533" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6534" {if(hide[section]) next};"\ 6535" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 6536" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 6537" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 6538" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 6539" ' prfx=^$ac_symprfx" 6540 else 6541 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6542 fi 6543 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 6544 6545 # Check to see that the pipe works correctly. 6546 pipe_works=no 6547 6548 rm -f conftest* 6549 cat > conftest.$ac_ext <<_LT_EOF 6550#ifdef __cplusplus 6551extern "C" { 6552#endif 6553char nm_test_var; 6554void nm_test_func(void); 6555void nm_test_func(void){} 6556#ifdef __cplusplus 6557} 6558#endif 6559int main(){nm_test_var='a';nm_test_func();return(0);} 6560_LT_EOF 6561 6562 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6563 (eval $ac_compile) 2>&5 6564 ac_status=$? 6565 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6566 test $ac_status = 0; }; then 6567 # Now try to grab the symbols. 6568 nlist=conftest.nm 6569 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6570 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6571 ac_status=$? 6572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6573 test $ac_status = 0; } && test -s "$nlist"; then 6574 # Try sorting and uniquifying the output. 6575 if sort "$nlist" | uniq > "$nlist"T; then 6576 mv -f "$nlist"T "$nlist" 6577 else 6578 rm -f "$nlist"T 6579 fi 6580 6581 # Make sure that we snagged all the symbols we need. 6582 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6583 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6584 cat <<_LT_EOF > conftest.$ac_ext 6585/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 6586#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 6587/* DATA imports from DLLs on WIN32 can't be const, because runtime 6588 relocations are performed -- see ld's documentation on pseudo-relocs. */ 6589# define LT@&t@_DLSYM_CONST 6590#elif defined __osf__ 6591/* This system does not cope well with relocations in const data. */ 6592# define LT@&t@_DLSYM_CONST 6593#else 6594# define LT@&t@_DLSYM_CONST const 6595#endif 6596 6597#ifdef __cplusplus 6598extern "C" { 6599#endif 6600 6601_LT_EOF 6602 # Now generate the symbol file. 6603 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6604 6605 cat <<_LT_EOF >> conftest.$ac_ext 6606 6607/* The mapping between symbol names and symbols. */ 6608LT@&t@_DLSYM_CONST struct { 6609 const char *name; 6610 void *address; 6611} 6612lt__PROGRAM__LTX_preloaded_symbols[] = 6613{ 6614 { "@PROGRAM@", (void *) 0 }, 6615_LT_EOF 6616 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6617 cat <<\_LT_EOF >> conftest.$ac_ext 6618 {0, (void *) 0} 6619}; 6620 6621/* This works around a problem in FreeBSD linker */ 6622#ifdef FREEBSD_WORKAROUND 6623static const void *lt_preloaded_setup() { 6624 return lt__PROGRAM__LTX_preloaded_symbols; 6625} 6626#endif 6627 6628#ifdef __cplusplus 6629} 6630#endif 6631_LT_EOF 6632 # Now try linking the two files. 6633 mv conftest.$ac_objext conftstm.$ac_objext 6634 lt_globsym_save_LIBS=$LIBS 6635 lt_globsym_save_CFLAGS=$CFLAGS 6636 LIBS=conftstm.$ac_objext 6637 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6638 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6639 (eval $ac_link) 2>&5 6640 ac_status=$? 6641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6642 test $ac_status = 0; } && test -s conftest$ac_exeext; then 6643 pipe_works=yes 6644 fi 6645 LIBS=$lt_globsym_save_LIBS 6646 CFLAGS=$lt_globsym_save_CFLAGS 6647 else 6648 echo "cannot find nm_test_func in $nlist" >&5 6649 fi 6650 else 6651 echo "cannot find nm_test_var in $nlist" >&5 6652 fi 6653 else 6654 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6655 fi 6656 else 6657 echo "$progname: failed program was:" >&5 6658 cat conftest.$ac_ext >&5 6659 fi 6660 rm -rf conftest* conftst* 6661 6662 # Do not use the global_symbol_pipe unless it works. 6663 if test yes = "$pipe_works"; then 6664 break 6665 else 6666 lt_cv_sys_global_symbol_pipe= 6667 fi 6668done 6669 6670fi 6671 6672if test -z "$lt_cv_sys_global_symbol_pipe"; then 6673 lt_cv_sys_global_symbol_to_cdecl= 6674fi 6675if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6677$as_echo "failed" >&6; } 6678else 6679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6680$as_echo "ok" >&6; } 6681fi 6682 6683# Response file support. 6684if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6685 nm_file_list_spec='@' 6686elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 6687 nm_file_list_spec='@' 6688fi 6689 6690 6691 6692 6693 6694 6695 6696 6697 6698 6699 6700 6701 6702 6703 6704 6705 6706 6707 6708 6709 6710 6711 6712 6713 6714 6715 6716 6717 6718 6719 6720 6721 6722 6723 6724 6725 6726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 6727$as_echo_n "checking for sysroot... " >&6; } 6728 6729@%:@ Check whether --with-sysroot was given. 6730if test "${with_sysroot+set}" = set; then : 6731 withval=$with_sysroot; 6732else 6733 with_sysroot=no 6734fi 6735 6736 6737lt_sysroot= 6738case $with_sysroot in #( 6739 yes) 6740 if test yes = "$GCC"; then 6741 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 6742 fi 6743 ;; #( 6744 /*) 6745 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 6746 ;; #( 6747 no|'') 6748 ;; #( 6749 *) 6750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 6751$as_echo "$with_sysroot" >&6; } 6752 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 6753 ;; 6754esac 6755 6756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 6757$as_echo "${lt_sysroot:-no}" >&6; } 6758 6759 6760 6761 6762 6763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 6764$as_echo_n "checking for a working dd... " >&6; } 6765if ${ac_cv_path_lt_DD+:} false; then : 6766 $as_echo_n "(cached) " >&6 6767else 6768 printf 0123456789abcdef0123456789abcdef >conftest.i 6769cat conftest.i conftest.i >conftest2.i 6770: ${lt_DD:=$DD} 6771if test -z "$lt_DD"; then 6772 ac_path_lt_DD_found=false 6773 # Loop through the user's path and test for each of PROGNAME-LIST 6774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6775for as_dir in $PATH 6776do 6777 IFS=$as_save_IFS 6778 test -z "$as_dir" && as_dir=. 6779 for ac_prog in dd; do 6780 for ac_exec_ext in '' $ac_executable_extensions; do 6781 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 6782 as_fn_executable_p "$ac_path_lt_DD" || continue 6783if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 6784 cmp -s conftest.i conftest.out \ 6785 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 6786fi 6787 $ac_path_lt_DD_found && break 3 6788 done 6789 done 6790 done 6791IFS=$as_save_IFS 6792 if test -z "$ac_cv_path_lt_DD"; then 6793 : 6794 fi 6795else 6796 ac_cv_path_lt_DD=$lt_DD 6797fi 6798 6799rm -f conftest.i conftest2.i conftest.out 6800fi 6801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 6802$as_echo "$ac_cv_path_lt_DD" >&6; } 6803 6804 6805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 6806$as_echo_n "checking how to truncate binary pipes... " >&6; } 6807if ${lt_cv_truncate_bin+:} false; then : 6808 $as_echo_n "(cached) " >&6 6809else 6810 printf 0123456789abcdef0123456789abcdef >conftest.i 6811cat conftest.i conftest.i >conftest2.i 6812lt_cv_truncate_bin= 6813if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 6814 cmp -s conftest.i conftest.out \ 6815 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 6816fi 6817rm -f conftest.i conftest2.i conftest.out 6818test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 6819fi 6820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 6821$as_echo "$lt_cv_truncate_bin" >&6; } 6822 6823 6824 6825 6826 6827 6828 6829# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 6830func_cc_basename () 6831{ 6832 for cc_temp in @S|@*""; do 6833 case $cc_temp in 6834 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 6835 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 6836 \-*) ;; 6837 *) break;; 6838 esac 6839 done 6840 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 6841} 6842 6843@%:@ Check whether --enable-libtool-lock was given. 6844if test "${enable_libtool_lock+set}" = set; then : 6845 enableval=$enable_libtool_lock; 6846fi 6847 6848test no = "$enable_libtool_lock" || enable_libtool_lock=yes 6849 6850# Some flags need to be propagated to the compiler or linker for good 6851# libtool support. 6852case $host in 6853ia64-*-hpux*) 6854 # Find out what ABI is being produced by ac_compile, and set mode 6855 # options accordingly. 6856 echo 'int i;' > conftest.$ac_ext 6857 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6858 (eval $ac_compile) 2>&5 6859 ac_status=$? 6860 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6861 test $ac_status = 0; }; then 6862 case `/usr/bin/file conftest.$ac_objext` in 6863 *ELF-32*) 6864 HPUX_IA64_MODE=32 6865 ;; 6866 *ELF-64*) 6867 HPUX_IA64_MODE=64 6868 ;; 6869 esac 6870 fi 6871 rm -rf conftest* 6872 ;; 6873*-*-irix6*) 6874 # Find out what ABI is being produced by ac_compile, and set linker 6875 # options accordingly. 6876 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6877 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6878 (eval $ac_compile) 2>&5 6879 ac_status=$? 6880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6881 test $ac_status = 0; }; then 6882 if test yes = "$lt_cv_prog_gnu_ld"; then 6883 case `/usr/bin/file conftest.$ac_objext` in 6884 *32-bit*) 6885 LD="${LD-ld} -melf32bsmip" 6886 ;; 6887 *N32*) 6888 LD="${LD-ld} -melf32bmipn32" 6889 ;; 6890 *64-bit*) 6891 LD="${LD-ld} -melf64bmip" 6892 ;; 6893 esac 6894 else 6895 case `/usr/bin/file conftest.$ac_objext` in 6896 *32-bit*) 6897 LD="${LD-ld} -32" 6898 ;; 6899 *N32*) 6900 LD="${LD-ld} -n32" 6901 ;; 6902 *64-bit*) 6903 LD="${LD-ld} -64" 6904 ;; 6905 esac 6906 fi 6907 fi 6908 rm -rf conftest* 6909 ;; 6910 6911mips64*-*linux*) 6912 # Find out what ABI is being produced by ac_compile, and set linker 6913 # options accordingly. 6914 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6915 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6916 (eval $ac_compile) 2>&5 6917 ac_status=$? 6918 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6919 test $ac_status = 0; }; then 6920 emul=elf 6921 case `/usr/bin/file conftest.$ac_objext` in 6922 *32-bit*) 6923 emul="${emul}32" 6924 ;; 6925 *64-bit*) 6926 emul="${emul}64" 6927 ;; 6928 esac 6929 case `/usr/bin/file conftest.$ac_objext` in 6930 *MSB*) 6931 emul="${emul}btsmip" 6932 ;; 6933 *LSB*) 6934 emul="${emul}ltsmip" 6935 ;; 6936 esac 6937 case `/usr/bin/file conftest.$ac_objext` in 6938 *N32*) 6939 emul="${emul}n32" 6940 ;; 6941 esac 6942 LD="${LD-ld} -m $emul" 6943 fi 6944 rm -rf conftest* 6945 ;; 6946 6947x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 6948s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6949 # Find out what ABI is being produced by ac_compile, and set linker 6950 # options accordingly. Note that the listed cases only cover the 6951 # situations where additional linker options are needed (such as when 6952 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 6953 # vice versa); the common cases where no linker options are needed do 6954 # not appear in the list. 6955 echo 'int i;' > conftest.$ac_ext 6956 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6957 (eval $ac_compile) 2>&5 6958 ac_status=$? 6959 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6960 test $ac_status = 0; }; then 6961 case `/usr/bin/file conftest.o` in 6962 *32-bit*) 6963 case $host in 6964 x86_64-*kfreebsd*-gnu) 6965 LD="${LD-ld} -m elf_i386_fbsd" 6966 ;; 6967 x86_64-*linux*) 6968 case `/usr/bin/file conftest.o` in 6969 *x86-64*) 6970 LD="${LD-ld} -m elf32_x86_64" 6971 ;; 6972 *) 6973 LD="${LD-ld} -m elf_i386" 6974 ;; 6975 esac 6976 ;; 6977 powerpc64le-*linux*) 6978 LD="${LD-ld} -m elf32lppclinux" 6979 ;; 6980 powerpc64-*linux*) 6981 LD="${LD-ld} -m elf32ppclinux" 6982 ;; 6983 s390x-*linux*) 6984 LD="${LD-ld} -m elf_s390" 6985 ;; 6986 sparc64-*linux*) 6987 LD="${LD-ld} -m elf32_sparc" 6988 ;; 6989 esac 6990 ;; 6991 *64-bit*) 6992 case $host in 6993 x86_64-*kfreebsd*-gnu) 6994 LD="${LD-ld} -m elf_x86_64_fbsd" 6995 ;; 6996 x86_64-*linux*) 6997 LD="${LD-ld} -m elf_x86_64" 6998 ;; 6999 powerpcle-*linux*) 7000 LD="${LD-ld} -m elf64lppc" 7001 ;; 7002 powerpc-*linux*) 7003 LD="${LD-ld} -m elf64ppc" 7004 ;; 7005 s390*-*linux*|s390*-*tpf*) 7006 LD="${LD-ld} -m elf64_s390" 7007 ;; 7008 sparc*-*linux*) 7009 LD="${LD-ld} -m elf64_sparc" 7010 ;; 7011 esac 7012 ;; 7013 esac 7014 fi 7015 rm -rf conftest* 7016 ;; 7017 7018*-*-sco3.2v5*) 7019 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7020 SAVE_CFLAGS=$CFLAGS 7021 CFLAGS="$CFLAGS -belf" 7022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 7023$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 7024if ${lt_cv_cc_needs_belf+:} false; then : 7025 $as_echo_n "(cached) " >&6 7026else 7027 ac_ext=c 7028ac_cpp='$CPP $CPPFLAGS' 7029ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7030ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7031ac_compiler_gnu=$ac_cv_c_compiler_gnu 7032 7033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7034/* end confdefs.h. */ 7035 7036int 7037main () 7038{ 7039 7040 ; 7041 return 0; 7042} 7043_ACEOF 7044if ac_fn_c_try_link "$LINENO"; then : 7045 lt_cv_cc_needs_belf=yes 7046else 7047 lt_cv_cc_needs_belf=no 7048fi 7049rm -f core conftest.err conftest.$ac_objext \ 7050 conftest$ac_exeext conftest.$ac_ext 7051 ac_ext=c 7052ac_cpp='$CPP $CPPFLAGS' 7053ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7054ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7055ac_compiler_gnu=$ac_cv_c_compiler_gnu 7056 7057fi 7058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 7059$as_echo "$lt_cv_cc_needs_belf" >&6; } 7060 if test yes != "$lt_cv_cc_needs_belf"; then 7061 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7062 CFLAGS=$SAVE_CFLAGS 7063 fi 7064 ;; 7065*-*solaris*) 7066 # Find out what ABI is being produced by ac_compile, and set linker 7067 # options accordingly. 7068 echo 'int i;' > conftest.$ac_ext 7069 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7070 (eval $ac_compile) 2>&5 7071 ac_status=$? 7072 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7073 test $ac_status = 0; }; then 7074 case `/usr/bin/file conftest.o` in 7075 *64-bit*) 7076 case $lt_cv_prog_gnu_ld in 7077 yes*) 7078 case $host in 7079 i?86-*-solaris*|x86_64-*-solaris*) 7080 LD="${LD-ld} -m elf_x86_64" 7081 ;; 7082 sparc*-*-solaris*) 7083 LD="${LD-ld} -m elf64_sparc" 7084 ;; 7085 esac 7086 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 7087 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 7088 LD=${LD-ld}_sol2 7089 fi 7090 ;; 7091 *) 7092 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7093 LD="${LD-ld} -64" 7094 fi 7095 ;; 7096 esac 7097 ;; 7098 esac 7099 fi 7100 rm -rf conftest* 7101 ;; 7102esac 7103 7104need_locks=$enable_libtool_lock 7105 7106if test -n "$ac_tool_prefix"; then 7107 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 7108set dummy ${ac_tool_prefix}mt; ac_word=$2 7109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7110$as_echo_n "checking for $ac_word... " >&6; } 7111if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 7112 $as_echo_n "(cached) " >&6 7113else 7114 if test -n "$MANIFEST_TOOL"; then 7115 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 7116else 7117as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7118for as_dir in $PATH 7119do 7120 IFS=$as_save_IFS 7121 test -z "$as_dir" && as_dir=. 7122 for ac_exec_ext in '' $ac_executable_extensions; do 7123 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7124 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 7125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7126 break 2 7127 fi 7128done 7129 done 7130IFS=$as_save_IFS 7131 7132fi 7133fi 7134MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 7135if test -n "$MANIFEST_TOOL"; then 7136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 7137$as_echo "$MANIFEST_TOOL" >&6; } 7138else 7139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7140$as_echo "no" >&6; } 7141fi 7142 7143 7144fi 7145if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 7146 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 7147 # Extract the first word of "mt", so it can be a program name with args. 7148set dummy mt; ac_word=$2 7149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7150$as_echo_n "checking for $ac_word... " >&6; } 7151if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 7152 $as_echo_n "(cached) " >&6 7153else 7154 if test -n "$ac_ct_MANIFEST_TOOL"; then 7155 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 7156else 7157as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7158for as_dir in $PATH 7159do 7160 IFS=$as_save_IFS 7161 test -z "$as_dir" && as_dir=. 7162 for ac_exec_ext in '' $ac_executable_extensions; do 7163 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7164 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 7165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7166 break 2 7167 fi 7168done 7169 done 7170IFS=$as_save_IFS 7171 7172fi 7173fi 7174ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 7175if test -n "$ac_ct_MANIFEST_TOOL"; then 7176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 7177$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 7178else 7179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7180$as_echo "no" >&6; } 7181fi 7182 7183 if test "x$ac_ct_MANIFEST_TOOL" = x; then 7184 MANIFEST_TOOL=":" 7185 else 7186 case $cross_compiling:$ac_tool_warned in 7187yes:) 7188{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7189$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7190ac_tool_warned=yes ;; 7191esac 7192 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 7193 fi 7194else 7195 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 7196fi 7197 7198test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 7199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 7200$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 7201if ${lt_cv_path_mainfest_tool+:} false; then : 7202 $as_echo_n "(cached) " >&6 7203else 7204 lt_cv_path_mainfest_tool=no 7205 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 7206 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 7207 cat conftest.err >&5 7208 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 7209 lt_cv_path_mainfest_tool=yes 7210 fi 7211 rm -f conftest* 7212fi 7213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 7214$as_echo "$lt_cv_path_mainfest_tool" >&6; } 7215if test yes != "$lt_cv_path_mainfest_tool"; then 7216 MANIFEST_TOOL=: 7217fi 7218 7219 7220 7221 7222 7223 7224 case $host_os in 7225 rhapsody* | darwin*) 7226 if test -n "$ac_tool_prefix"; then 7227 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7228set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7230$as_echo_n "checking for $ac_word... " >&6; } 7231if ${ac_cv_prog_DSYMUTIL+:} false; then : 7232 $as_echo_n "(cached) " >&6 7233else 7234 if test -n "$DSYMUTIL"; then 7235 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7236else 7237as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7238for as_dir in $PATH 7239do 7240 IFS=$as_save_IFS 7241 test -z "$as_dir" && as_dir=. 7242 for ac_exec_ext in '' $ac_executable_extensions; do 7243 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7244 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7246 break 2 7247 fi 7248done 7249 done 7250IFS=$as_save_IFS 7251 7252fi 7253fi 7254DSYMUTIL=$ac_cv_prog_DSYMUTIL 7255if test -n "$DSYMUTIL"; then 7256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7257$as_echo "$DSYMUTIL" >&6; } 7258else 7259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7260$as_echo "no" >&6; } 7261fi 7262 7263 7264fi 7265if test -z "$ac_cv_prog_DSYMUTIL"; then 7266 ac_ct_DSYMUTIL=$DSYMUTIL 7267 # Extract the first word of "dsymutil", so it can be a program name with args. 7268set dummy dsymutil; ac_word=$2 7269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7270$as_echo_n "checking for $ac_word... " >&6; } 7271if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 7272 $as_echo_n "(cached) " >&6 7273else 7274 if test -n "$ac_ct_DSYMUTIL"; then 7275 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7276else 7277as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7278for as_dir in $PATH 7279do 7280 IFS=$as_save_IFS 7281 test -z "$as_dir" && as_dir=. 7282 for ac_exec_ext in '' $ac_executable_extensions; do 7283 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7284 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7286 break 2 7287 fi 7288done 7289 done 7290IFS=$as_save_IFS 7291 7292fi 7293fi 7294ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7295if test -n "$ac_ct_DSYMUTIL"; then 7296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7297$as_echo "$ac_ct_DSYMUTIL" >&6; } 7298else 7299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7300$as_echo "no" >&6; } 7301fi 7302 7303 if test "x$ac_ct_DSYMUTIL" = x; then 7304 DSYMUTIL=":" 7305 else 7306 case $cross_compiling:$ac_tool_warned in 7307yes:) 7308{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7309$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7310ac_tool_warned=yes ;; 7311esac 7312 DSYMUTIL=$ac_ct_DSYMUTIL 7313 fi 7314else 7315 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7316fi 7317 7318 if test -n "$ac_tool_prefix"; then 7319 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7320set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7322$as_echo_n "checking for $ac_word... " >&6; } 7323if ${ac_cv_prog_NMEDIT+:} false; then : 7324 $as_echo_n "(cached) " >&6 7325else 7326 if test -n "$NMEDIT"; then 7327 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7328else 7329as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7330for as_dir in $PATH 7331do 7332 IFS=$as_save_IFS 7333 test -z "$as_dir" && as_dir=. 7334 for ac_exec_ext in '' $ac_executable_extensions; do 7335 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7336 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7338 break 2 7339 fi 7340done 7341 done 7342IFS=$as_save_IFS 7343 7344fi 7345fi 7346NMEDIT=$ac_cv_prog_NMEDIT 7347if test -n "$NMEDIT"; then 7348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7349$as_echo "$NMEDIT" >&6; } 7350else 7351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7352$as_echo "no" >&6; } 7353fi 7354 7355 7356fi 7357if test -z "$ac_cv_prog_NMEDIT"; then 7358 ac_ct_NMEDIT=$NMEDIT 7359 # Extract the first word of "nmedit", so it can be a program name with args. 7360set dummy nmedit; ac_word=$2 7361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7362$as_echo_n "checking for $ac_word... " >&6; } 7363if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 7364 $as_echo_n "(cached) " >&6 7365else 7366 if test -n "$ac_ct_NMEDIT"; then 7367 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7368else 7369as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7370for as_dir in $PATH 7371do 7372 IFS=$as_save_IFS 7373 test -z "$as_dir" && as_dir=. 7374 for ac_exec_ext in '' $ac_executable_extensions; do 7375 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7376 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7378 break 2 7379 fi 7380done 7381 done 7382IFS=$as_save_IFS 7383 7384fi 7385fi 7386ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7387if test -n "$ac_ct_NMEDIT"; then 7388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7389$as_echo "$ac_ct_NMEDIT" >&6; } 7390else 7391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7392$as_echo "no" >&6; } 7393fi 7394 7395 if test "x$ac_ct_NMEDIT" = x; then 7396 NMEDIT=":" 7397 else 7398 case $cross_compiling:$ac_tool_warned in 7399yes:) 7400{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7401$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7402ac_tool_warned=yes ;; 7403esac 7404 NMEDIT=$ac_ct_NMEDIT 7405 fi 7406else 7407 NMEDIT="$ac_cv_prog_NMEDIT" 7408fi 7409 7410 if test -n "$ac_tool_prefix"; then 7411 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7412set dummy ${ac_tool_prefix}lipo; ac_word=$2 7413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7414$as_echo_n "checking for $ac_word... " >&6; } 7415if ${ac_cv_prog_LIPO+:} false; then : 7416 $as_echo_n "(cached) " >&6 7417else 7418 if test -n "$LIPO"; then 7419 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7420else 7421as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7422for as_dir in $PATH 7423do 7424 IFS=$as_save_IFS 7425 test -z "$as_dir" && as_dir=. 7426 for ac_exec_ext in '' $ac_executable_extensions; do 7427 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7428 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7430 break 2 7431 fi 7432done 7433 done 7434IFS=$as_save_IFS 7435 7436fi 7437fi 7438LIPO=$ac_cv_prog_LIPO 7439if test -n "$LIPO"; then 7440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7441$as_echo "$LIPO" >&6; } 7442else 7443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7444$as_echo "no" >&6; } 7445fi 7446 7447 7448fi 7449if test -z "$ac_cv_prog_LIPO"; then 7450 ac_ct_LIPO=$LIPO 7451 # Extract the first word of "lipo", so it can be a program name with args. 7452set dummy lipo; ac_word=$2 7453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7454$as_echo_n "checking for $ac_word... " >&6; } 7455if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 7456 $as_echo_n "(cached) " >&6 7457else 7458 if test -n "$ac_ct_LIPO"; then 7459 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7460else 7461as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7462for as_dir in $PATH 7463do 7464 IFS=$as_save_IFS 7465 test -z "$as_dir" && as_dir=. 7466 for ac_exec_ext in '' $ac_executable_extensions; do 7467 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7468 ac_cv_prog_ac_ct_LIPO="lipo" 7469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7470 break 2 7471 fi 7472done 7473 done 7474IFS=$as_save_IFS 7475 7476fi 7477fi 7478ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7479if test -n "$ac_ct_LIPO"; then 7480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7481$as_echo "$ac_ct_LIPO" >&6; } 7482else 7483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7484$as_echo "no" >&6; } 7485fi 7486 7487 if test "x$ac_ct_LIPO" = x; then 7488 LIPO=":" 7489 else 7490 case $cross_compiling:$ac_tool_warned in 7491yes:) 7492{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7493$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7494ac_tool_warned=yes ;; 7495esac 7496 LIPO=$ac_ct_LIPO 7497 fi 7498else 7499 LIPO="$ac_cv_prog_LIPO" 7500fi 7501 7502 if test -n "$ac_tool_prefix"; then 7503 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7504set dummy ${ac_tool_prefix}otool; ac_word=$2 7505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7506$as_echo_n "checking for $ac_word... " >&6; } 7507if ${ac_cv_prog_OTOOL+:} false; then : 7508 $as_echo_n "(cached) " >&6 7509else 7510 if test -n "$OTOOL"; then 7511 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7512else 7513as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7514for as_dir in $PATH 7515do 7516 IFS=$as_save_IFS 7517 test -z "$as_dir" && as_dir=. 7518 for ac_exec_ext in '' $ac_executable_extensions; do 7519 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7520 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7522 break 2 7523 fi 7524done 7525 done 7526IFS=$as_save_IFS 7527 7528fi 7529fi 7530OTOOL=$ac_cv_prog_OTOOL 7531if test -n "$OTOOL"; then 7532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7533$as_echo "$OTOOL" >&6; } 7534else 7535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7536$as_echo "no" >&6; } 7537fi 7538 7539 7540fi 7541if test -z "$ac_cv_prog_OTOOL"; then 7542 ac_ct_OTOOL=$OTOOL 7543 # Extract the first word of "otool", so it can be a program name with args. 7544set dummy otool; ac_word=$2 7545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7546$as_echo_n "checking for $ac_word... " >&6; } 7547if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 7548 $as_echo_n "(cached) " >&6 7549else 7550 if test -n "$ac_ct_OTOOL"; then 7551 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7552else 7553as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7554for as_dir in $PATH 7555do 7556 IFS=$as_save_IFS 7557 test -z "$as_dir" && as_dir=. 7558 for ac_exec_ext in '' $ac_executable_extensions; do 7559 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7560 ac_cv_prog_ac_ct_OTOOL="otool" 7561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7562 break 2 7563 fi 7564done 7565 done 7566IFS=$as_save_IFS 7567 7568fi 7569fi 7570ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7571if test -n "$ac_ct_OTOOL"; then 7572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7573$as_echo "$ac_ct_OTOOL" >&6; } 7574else 7575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7576$as_echo "no" >&6; } 7577fi 7578 7579 if test "x$ac_ct_OTOOL" = x; then 7580 OTOOL=":" 7581 else 7582 case $cross_compiling:$ac_tool_warned in 7583yes:) 7584{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7585$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7586ac_tool_warned=yes ;; 7587esac 7588 OTOOL=$ac_ct_OTOOL 7589 fi 7590else 7591 OTOOL="$ac_cv_prog_OTOOL" 7592fi 7593 7594 if test -n "$ac_tool_prefix"; then 7595 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7596set dummy ${ac_tool_prefix}otool64; ac_word=$2 7597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7598$as_echo_n "checking for $ac_word... " >&6; } 7599if ${ac_cv_prog_OTOOL64+:} false; then : 7600 $as_echo_n "(cached) " >&6 7601else 7602 if test -n "$OTOOL64"; then 7603 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7604else 7605as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7606for as_dir in $PATH 7607do 7608 IFS=$as_save_IFS 7609 test -z "$as_dir" && as_dir=. 7610 for ac_exec_ext in '' $ac_executable_extensions; do 7611 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7612 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7614 break 2 7615 fi 7616done 7617 done 7618IFS=$as_save_IFS 7619 7620fi 7621fi 7622OTOOL64=$ac_cv_prog_OTOOL64 7623if test -n "$OTOOL64"; then 7624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7625$as_echo "$OTOOL64" >&6; } 7626else 7627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7628$as_echo "no" >&6; } 7629fi 7630 7631 7632fi 7633if test -z "$ac_cv_prog_OTOOL64"; then 7634 ac_ct_OTOOL64=$OTOOL64 7635 # Extract the first word of "otool64", so it can be a program name with args. 7636set dummy otool64; ac_word=$2 7637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7638$as_echo_n "checking for $ac_word... " >&6; } 7639if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 7640 $as_echo_n "(cached) " >&6 7641else 7642 if test -n "$ac_ct_OTOOL64"; then 7643 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7644else 7645as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7646for as_dir in $PATH 7647do 7648 IFS=$as_save_IFS 7649 test -z "$as_dir" && as_dir=. 7650 for ac_exec_ext in '' $ac_executable_extensions; do 7651 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7652 ac_cv_prog_ac_ct_OTOOL64="otool64" 7653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7654 break 2 7655 fi 7656done 7657 done 7658IFS=$as_save_IFS 7659 7660fi 7661fi 7662ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7663if test -n "$ac_ct_OTOOL64"; then 7664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7665$as_echo "$ac_ct_OTOOL64" >&6; } 7666else 7667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7668$as_echo "no" >&6; } 7669fi 7670 7671 if test "x$ac_ct_OTOOL64" = x; then 7672 OTOOL64=":" 7673 else 7674 case $cross_compiling:$ac_tool_warned in 7675yes:) 7676{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7677$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7678ac_tool_warned=yes ;; 7679esac 7680 OTOOL64=$ac_ct_OTOOL64 7681 fi 7682else 7683 OTOOL64="$ac_cv_prog_OTOOL64" 7684fi 7685 7686 7687 7688 7689 7690 7691 7692 7693 7694 7695 7696 7697 7698 7699 7700 7701 7702 7703 7704 7705 7706 7707 7708 7709 7710 7711 7712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7713$as_echo_n "checking for -single_module linker flag... " >&6; } 7714if ${lt_cv_apple_cc_single_mod+:} false; then : 7715 $as_echo_n "(cached) " >&6 7716else 7717 lt_cv_apple_cc_single_mod=no 7718 if test -z "$LT_MULTI_MODULE"; then 7719 # By default we will add the -single_module flag. You can override 7720 # by either setting the environment variable LT_MULTI_MODULE 7721 # non-empty at configure time, or by adding -multi_module to the 7722 # link flags. 7723 rm -rf libconftest.dylib* 7724 echo "int foo(void){return 1;}" > conftest.c 7725 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7726-dynamiclib -Wl,-single_module conftest.c" >&5 7727 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7728 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7729 _lt_result=$? 7730 # If there is a non-empty error log, and "single_module" 7731 # appears in it, assume the flag caused a linker warning 7732 if test -s conftest.err && $GREP single_module conftest.err; then 7733 cat conftest.err >&5 7734 # Otherwise, if the output was created with a 0 exit code from 7735 # the compiler, it worked. 7736 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 7737 lt_cv_apple_cc_single_mod=yes 7738 else 7739 cat conftest.err >&5 7740 fi 7741 rm -rf libconftest.dylib* 7742 rm -f conftest.* 7743 fi 7744fi 7745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7746$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7747 7748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7749$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7750if ${lt_cv_ld_exported_symbols_list+:} false; then : 7751 $as_echo_n "(cached) " >&6 7752else 7753 lt_cv_ld_exported_symbols_list=no 7754 save_LDFLAGS=$LDFLAGS 7755 echo "_main" > conftest.sym 7756 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7758/* end confdefs.h. */ 7759 7760int 7761main () 7762{ 7763 7764 ; 7765 return 0; 7766} 7767_ACEOF 7768if ac_fn_c_try_link "$LINENO"; then : 7769 lt_cv_ld_exported_symbols_list=yes 7770else 7771 lt_cv_ld_exported_symbols_list=no 7772fi 7773rm -f core conftest.err conftest.$ac_objext \ 7774 conftest$ac_exeext conftest.$ac_ext 7775 LDFLAGS=$save_LDFLAGS 7776 7777fi 7778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7779$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7780 7781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 7782$as_echo_n "checking for -force_load linker flag... " >&6; } 7783if ${lt_cv_ld_force_load+:} false; then : 7784 $as_echo_n "(cached) " >&6 7785else 7786 lt_cv_ld_force_load=no 7787 cat > conftest.c << _LT_EOF 7788int forced_loaded() { return 2;} 7789_LT_EOF 7790 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 7791 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 7792 echo "$AR cru libconftest.a conftest.o" >&5 7793 $AR cru libconftest.a conftest.o 2>&5 7794 echo "$RANLIB libconftest.a" >&5 7795 $RANLIB libconftest.a 2>&5 7796 cat > conftest.c << _LT_EOF 7797int main() { return 0;} 7798_LT_EOF 7799 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 7800 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 7801 _lt_result=$? 7802 if test -s conftest.err && $GREP force_load conftest.err; then 7803 cat conftest.err >&5 7804 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 7805 lt_cv_ld_force_load=yes 7806 else 7807 cat conftest.err >&5 7808 fi 7809 rm -f conftest.err libconftest.a conftest conftest.c 7810 rm -rf conftest.dSYM 7811 7812fi 7813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 7814$as_echo "$lt_cv_ld_force_load" >&6; } 7815 case $host_os in 7816 rhapsody* | darwin1.[012]) 7817 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 7818 darwin1.*) 7819 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 7820 darwin*) # darwin 5.x on 7821 # if running on 10.5 or later, the deployment target defaults 7822 # to the OS version, if on x86, and 10.4, the deployment 7823 # target defaults to 10.4. Don't you love it? 7824 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7825 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7826 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 7827 10.[012][,.]*) 7828 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 7829 10.*) 7830 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 7831 esac 7832 ;; 7833 esac 7834 if test yes = "$lt_cv_apple_cc_single_mod"; then 7835 _lt_dar_single_mod='$single_module' 7836 fi 7837 if test yes = "$lt_cv_ld_exported_symbols_list"; then 7838 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 7839 else 7840 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 7841 fi 7842 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 7843 _lt_dsymutil='~$DSYMUTIL $lib || :' 7844 else 7845 _lt_dsymutil= 7846 fi 7847 ;; 7848 esac 7849 7850# func_munge_path_list VARIABLE PATH 7851# ----------------------------------- 7852# VARIABLE is name of variable containing _space_ separated list of 7853# directories to be munged by the contents of PATH, which is string 7854# having a format: 7855# "DIR[:DIR]:" 7856# string "DIR[ DIR]" will be prepended to VARIABLE 7857# ":DIR[:DIR]" 7858# string "DIR[ DIR]" will be appended to VARIABLE 7859# "DIRP[:DIRP]::[DIRA:]DIRA" 7860# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 7861# "DIRA[ DIRA]" will be appended to VARIABLE 7862# "DIR[:DIR]" 7863# VARIABLE will be replaced by "DIR[ DIR]" 7864func_munge_path_list () 7865{ 7866 case x@S|@2 in 7867 x) 7868 ;; 7869 *:) 7870 eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'` \@S|@@S|@1\" 7871 ;; 7872 x:*) 7873 eval @S|@1=\"\@S|@@S|@1 `$ECHO @S|@2 | $SED 's/:/ /g'`\" 7874 ;; 7875 *::*) 7876 eval @S|@1=\"\@S|@@S|@1\ `$ECHO @S|@2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 7877 eval @S|@1=\"`$ECHO @S|@2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \@S|@@S|@1\" 7878 ;; 7879 *) 7880 eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'`\" 7881 ;; 7882 esac 7883} 7884 7885ac_ext=c 7886ac_cpp='$CPP $CPPFLAGS' 7887ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7888ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7889ac_compiler_gnu=$ac_cv_c_compiler_gnu 7890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 7891$as_echo_n "checking how to run the C preprocessor... " >&6; } 7892# On Suns, sometimes $CPP names a directory. 7893if test -n "$CPP" && test -d "$CPP"; then 7894 CPP= 7895fi 7896if test -z "$CPP"; then 7897 if ${ac_cv_prog_CPP+:} false; then : 7898 $as_echo_n "(cached) " >&6 7899else 7900 # Double quotes because CPP needs to be expanded 7901 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 7902 do 7903 ac_preproc_ok=false 7904for ac_c_preproc_warn_flag in '' yes 7905do 7906 # Use a header file that comes with gcc, so configuring glibc 7907 # with a fresh cross-compiler works. 7908 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7909 # <limits.h> exists even on freestanding compilers. 7910 # On the NeXT, cc -E runs the code through the compiler's parser, 7911 # not just through cpp. "Syntax error" is here to catch this case. 7912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7913/* end confdefs.h. */ 7914@%:@ifdef __STDC__ 7915@%:@ include <limits.h> 7916@%:@else 7917@%:@ include <assert.h> 7918@%:@endif 7919 Syntax error 7920_ACEOF 7921if ac_fn_c_try_cpp "$LINENO"; then : 7922 7923else 7924 # Broken: fails on valid input. 7925continue 7926fi 7927rm -f conftest.err conftest.i conftest.$ac_ext 7928 7929 # OK, works on sane cases. Now check whether nonexistent headers 7930 # can be detected and how. 7931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7932/* end confdefs.h. */ 7933@%:@include <ac_nonexistent.h> 7934_ACEOF 7935if ac_fn_c_try_cpp "$LINENO"; then : 7936 # Broken: success on invalid input. 7937continue 7938else 7939 # Passes both tests. 7940ac_preproc_ok=: 7941break 7942fi 7943rm -f conftest.err conftest.i conftest.$ac_ext 7944 7945done 7946# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7947rm -f conftest.i conftest.err conftest.$ac_ext 7948if $ac_preproc_ok; then : 7949 break 7950fi 7951 7952 done 7953 ac_cv_prog_CPP=$CPP 7954 7955fi 7956 CPP=$ac_cv_prog_CPP 7957else 7958 ac_cv_prog_CPP=$CPP 7959fi 7960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 7961$as_echo "$CPP" >&6; } 7962ac_preproc_ok=false 7963for ac_c_preproc_warn_flag in '' yes 7964do 7965 # Use a header file that comes with gcc, so configuring glibc 7966 # with a fresh cross-compiler works. 7967 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7968 # <limits.h> exists even on freestanding compilers. 7969 # On the NeXT, cc -E runs the code through the compiler's parser, 7970 # not just through cpp. "Syntax error" is here to catch this case. 7971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7972/* end confdefs.h. */ 7973@%:@ifdef __STDC__ 7974@%:@ include <limits.h> 7975@%:@else 7976@%:@ include <assert.h> 7977@%:@endif 7978 Syntax error 7979_ACEOF 7980if ac_fn_c_try_cpp "$LINENO"; then : 7981 7982else 7983 # Broken: fails on valid input. 7984continue 7985fi 7986rm -f conftest.err conftest.i conftest.$ac_ext 7987 7988 # OK, works on sane cases. Now check whether nonexistent headers 7989 # can be detected and how. 7990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7991/* end confdefs.h. */ 7992@%:@include <ac_nonexistent.h> 7993_ACEOF 7994if ac_fn_c_try_cpp "$LINENO"; then : 7995 # Broken: success on invalid input. 7996continue 7997else 7998 # Passes both tests. 7999ac_preproc_ok=: 8000break 8001fi 8002rm -f conftest.err conftest.i conftest.$ac_ext 8003 8004done 8005# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 8006rm -f conftest.i conftest.err conftest.$ac_ext 8007if $ac_preproc_ok; then : 8008 8009else 8010 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 8011$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 8012as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 8013See \`config.log' for more details" "$LINENO" 5; } 8014fi 8015 8016ac_ext=c 8017ac_cpp='$CPP $CPPFLAGS' 8018ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8019ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8020ac_compiler_gnu=$ac_cv_c_compiler_gnu 8021 8022 8023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 8024$as_echo_n "checking for ANSI C header files... " >&6; } 8025if ${ac_cv_header_stdc+:} false; then : 8026 $as_echo_n "(cached) " >&6 8027else 8028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8029/* end confdefs.h. */ 8030#include <stdlib.h> 8031#include <stdarg.h> 8032#include <string.h> 8033#include <float.h> 8034 8035int 8036main () 8037{ 8038 8039 ; 8040 return 0; 8041} 8042_ACEOF 8043if ac_fn_c_try_compile "$LINENO"; then : 8044 ac_cv_header_stdc=yes 8045else 8046 ac_cv_header_stdc=no 8047fi 8048rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8049 8050if test $ac_cv_header_stdc = yes; then 8051 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 8052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8053/* end confdefs.h. */ 8054#include <string.h> 8055 8056_ACEOF 8057if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8058 $EGREP "memchr" >/dev/null 2>&1; then : 8059 8060else 8061 ac_cv_header_stdc=no 8062fi 8063rm -f conftest* 8064 8065fi 8066 8067if test $ac_cv_header_stdc = yes; then 8068 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 8069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8070/* end confdefs.h. */ 8071#include <stdlib.h> 8072 8073_ACEOF 8074if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8075 $EGREP "free" >/dev/null 2>&1; then : 8076 8077else 8078 ac_cv_header_stdc=no 8079fi 8080rm -f conftest* 8081 8082fi 8083 8084if test $ac_cv_header_stdc = yes; then 8085 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 8086 if test "$cross_compiling" = yes; then : 8087 : 8088else 8089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8090/* end confdefs.h. */ 8091#include <ctype.h> 8092#include <stdlib.h> 8093#if ((' ' & 0x0FF) == 0x020) 8094# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 8095# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 8096#else 8097# define ISLOWER(c) \ 8098 (('a' <= (c) && (c) <= 'i') \ 8099 || ('j' <= (c) && (c) <= 'r') \ 8100 || ('s' <= (c) && (c) <= 'z')) 8101# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 8102#endif 8103 8104#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 8105int 8106main () 8107{ 8108 int i; 8109 for (i = 0; i < 256; i++) 8110 if (XOR (islower (i), ISLOWER (i)) 8111 || toupper (i) != TOUPPER (i)) 8112 return 2; 8113 return 0; 8114} 8115_ACEOF 8116if ac_fn_c_try_run "$LINENO"; then : 8117 8118else 8119 ac_cv_header_stdc=no 8120fi 8121rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8122 conftest.$ac_objext conftest.beam conftest.$ac_ext 8123fi 8124 8125fi 8126fi 8127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 8128$as_echo "$ac_cv_header_stdc" >&6; } 8129if test $ac_cv_header_stdc = yes; then 8130 8131$as_echo "@%:@define STDC_HEADERS 1" >>confdefs.h 8132 8133fi 8134 8135# On IRIX 5.3, sys/types and inttypes.h are conflicting. 8136for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 8137 inttypes.h stdint.h unistd.h 8138do : 8139 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 8140ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 8141" 8142if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 8143 cat >>confdefs.h <<_ACEOF 8144@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 8145_ACEOF 8146 8147fi 8148 8149done 8150 8151 8152for ac_header in dlfcn.h 8153do : 8154 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 8155" 8156if test "x$ac_cv_header_dlfcn_h" = xyes; then : 8157 cat >>confdefs.h <<_ACEOF 8158@%:@define HAVE_DLFCN_H 1 8159_ACEOF 8160 8161fi 8162 8163done 8164 8165 8166 8167 8168 8169# Set options 8170 8171 8172 8173 enable_dlopen=no 8174 8175 8176 enable_win32_dll=no 8177 8178 8179 @%:@ Check whether --enable-shared was given. 8180if test "${enable_shared+set}" = set; then : 8181 enableval=$enable_shared; p=${PACKAGE-default} 8182 case $enableval in 8183 yes) enable_shared=yes ;; 8184 no) enable_shared=no ;; 8185 *) 8186 enable_shared=no 8187 # Look at the argument we got. We use all the common list separators. 8188 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8189 for pkg in $enableval; do 8190 IFS=$lt_save_ifs 8191 if test "X$pkg" = "X$p"; then 8192 enable_shared=yes 8193 fi 8194 done 8195 IFS=$lt_save_ifs 8196 ;; 8197 esac 8198else 8199 enable_shared=yes 8200fi 8201 8202 8203 8204 8205 8206 8207 8208 8209 8210 @%:@ Check whether --enable-static was given. 8211if test "${enable_static+set}" = set; then : 8212 enableval=$enable_static; p=${PACKAGE-default} 8213 case $enableval in 8214 yes) enable_static=yes ;; 8215 no) enable_static=no ;; 8216 *) 8217 enable_static=no 8218 # Look at the argument we got. We use all the common list separators. 8219 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8220 for pkg in $enableval; do 8221 IFS=$lt_save_ifs 8222 if test "X$pkg" = "X$p"; then 8223 enable_static=yes 8224 fi 8225 done 8226 IFS=$lt_save_ifs 8227 ;; 8228 esac 8229else 8230 enable_static=yes 8231fi 8232 8233 8234 8235 8236 8237 8238 8239 8240 8241 8242@%:@ Check whether --with-pic was given. 8243if test "${with_pic+set}" = set; then : 8244 withval=$with_pic; lt_p=${PACKAGE-default} 8245 case $withval in 8246 yes|no) pic_mode=$withval ;; 8247 *) 8248 pic_mode=default 8249 # Look at the argument we got. We use all the common list separators. 8250 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8251 for lt_pkg in $withval; do 8252 IFS=$lt_save_ifs 8253 if test "X$lt_pkg" = "X$lt_p"; then 8254 pic_mode=yes 8255 fi 8256 done 8257 IFS=$lt_save_ifs 8258 ;; 8259 esac 8260else 8261 pic_mode=default 8262fi 8263 8264 8265 8266 8267 8268 8269 8270 8271 @%:@ Check whether --enable-fast-install was given. 8272if test "${enable_fast_install+set}" = set; then : 8273 enableval=$enable_fast_install; p=${PACKAGE-default} 8274 case $enableval in 8275 yes) enable_fast_install=yes ;; 8276 no) enable_fast_install=no ;; 8277 *) 8278 enable_fast_install=no 8279 # Look at the argument we got. We use all the common list separators. 8280 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8281 for pkg in $enableval; do 8282 IFS=$lt_save_ifs 8283 if test "X$pkg" = "X$p"; then 8284 enable_fast_install=yes 8285 fi 8286 done 8287 IFS=$lt_save_ifs 8288 ;; 8289 esac 8290else 8291 enable_fast_install=yes 8292fi 8293 8294 8295 8296 8297 8298 8299 8300 8301 shared_archive_member_spec= 8302case $host,$enable_shared in 8303power*-*-aix[5-9]*,yes) 8304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 8305$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 8306 8307@%:@ Check whether --with-aix-soname was given. 8308if test "${with_aix_soname+set}" = set; then : 8309 withval=$with_aix_soname; case $withval in 8310 aix|svr4|both) 8311 ;; 8312 *) 8313 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 8314 ;; 8315 esac 8316 lt_cv_with_aix_soname=$with_aix_soname 8317else 8318 if ${lt_cv_with_aix_soname+:} false; then : 8319 $as_echo_n "(cached) " >&6 8320else 8321 lt_cv_with_aix_soname=aix 8322fi 8323 8324 with_aix_soname=$lt_cv_with_aix_soname 8325fi 8326 8327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 8328$as_echo "$with_aix_soname" >&6; } 8329 if test aix != "$with_aix_soname"; then 8330 # For the AIX way of multilib, we name the shared archive member 8331 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 8332 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 8333 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 8334 # the AIX toolchain works better with OBJECT_MODE set (default 32). 8335 if test 64 = "${OBJECT_MODE-32}"; then 8336 shared_archive_member_spec=shr_64 8337 else 8338 shared_archive_member_spec=shr 8339 fi 8340 fi 8341 ;; 8342*) 8343 with_aix_soname=aix 8344 ;; 8345esac 8346 8347 8348 8349 8350 8351 8352 8353 8354 8355 8356# This can be used to rebuild libtool when needed 8357LIBTOOL_DEPS=$ltmain 8358 8359# Always use our own libtool. 8360LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8361 8362 8363 8364 8365 8366 8367 8368 8369 8370 8371 8372 8373 8374 8375 8376 8377 8378 8379 8380 8381 8382 8383 8384 8385 8386 8387 8388 8389 8390 8391test -z "$LN_S" && LN_S="ln -s" 8392 8393 8394 8395 8396 8397 8398 8399 8400 8401 8402 8403 8404 8405 8406if test -n "${ZSH_VERSION+set}"; then 8407 setopt NO_GLOB_SUBST 8408fi 8409 8410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8411$as_echo_n "checking for objdir... " >&6; } 8412if ${lt_cv_objdir+:} false; then : 8413 $as_echo_n "(cached) " >&6 8414else 8415 rm -f .libs 2>/dev/null 8416mkdir .libs 2>/dev/null 8417if test -d .libs; then 8418 lt_cv_objdir=.libs 8419else 8420 # MS-DOS does not allow filenames that begin with a dot. 8421 lt_cv_objdir=_libs 8422fi 8423rmdir .libs 2>/dev/null 8424fi 8425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8426$as_echo "$lt_cv_objdir" >&6; } 8427objdir=$lt_cv_objdir 8428 8429 8430 8431 8432 8433cat >>confdefs.h <<_ACEOF 8434@%:@define LT_OBJDIR "$lt_cv_objdir/" 8435_ACEOF 8436 8437 8438 8439 8440case $host_os in 8441aix3*) 8442 # AIX sometimes has problems with the GCC collect2 program. For some 8443 # reason, if we set the COLLECT_NAMES environment variable, the problems 8444 # vanish in a puff of smoke. 8445 if test set != "${COLLECT_NAMES+set}"; then 8446 COLLECT_NAMES= 8447 export COLLECT_NAMES 8448 fi 8449 ;; 8450esac 8451 8452# Global variables: 8453ofile=libtool 8454can_build_shared=yes 8455 8456# All known linkers require a '.a' archive for static linking (except MSVC, 8457# which needs '.lib'). 8458libext=a 8459 8460with_gnu_ld=$lt_cv_prog_gnu_ld 8461 8462old_CC=$CC 8463old_CFLAGS=$CFLAGS 8464 8465# Set sane defaults for various variables 8466test -z "$CC" && CC=cc 8467test -z "$LTCC" && LTCC=$CC 8468test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8469test -z "$LD" && LD=ld 8470test -z "$ac_objext" && ac_objext=o 8471 8472func_cc_basename $compiler 8473cc_basename=$func_cc_basename_result 8474 8475 8476# Only perform the check for file, if the check method requires it 8477test -z "$MAGIC_CMD" && MAGIC_CMD=file 8478case $deplibs_check_method in 8479file_magic*) 8480 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8482$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8483if ${lt_cv_path_MAGIC_CMD+:} false; then : 8484 $as_echo_n "(cached) " >&6 8485else 8486 case $MAGIC_CMD in 8487[\\/*] | ?:[\\/]*) 8488 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8489 ;; 8490*) 8491 lt_save_MAGIC_CMD=$MAGIC_CMD 8492 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8493 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8494 for ac_dir in $ac_dummy; do 8495 IFS=$lt_save_ifs 8496 test -z "$ac_dir" && ac_dir=. 8497 if test -f "$ac_dir/${ac_tool_prefix}file"; then 8498 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 8499 if test -n "$file_magic_test_file"; then 8500 case $deplibs_check_method in 8501 "file_magic "*) 8502 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8503 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8504 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8505 $EGREP "$file_magic_regex" > /dev/null; then 8506 : 8507 else 8508 cat <<_LT_EOF 1>&2 8509 8510*** Warning: the command libtool uses to detect shared libraries, 8511*** $file_magic_cmd, produces output that libtool cannot recognize. 8512*** The result is that libtool may fail to recognize shared libraries 8513*** as such. This will affect the creation of libtool libraries that 8514*** depend on shared libraries, but programs linked with such libtool 8515*** libraries will work regardless of this problem. Nevertheless, you 8516*** may want to report the problem to your system manager and/or to 8517*** bug-libtool@gnu.org 8518 8519_LT_EOF 8520 fi ;; 8521 esac 8522 fi 8523 break 8524 fi 8525 done 8526 IFS=$lt_save_ifs 8527 MAGIC_CMD=$lt_save_MAGIC_CMD 8528 ;; 8529esac 8530fi 8531 8532MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8533if test -n "$MAGIC_CMD"; then 8534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8535$as_echo "$MAGIC_CMD" >&6; } 8536else 8537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8538$as_echo "no" >&6; } 8539fi 8540 8541 8542 8543 8544 8545if test -z "$lt_cv_path_MAGIC_CMD"; then 8546 if test -n "$ac_tool_prefix"; then 8547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8548$as_echo_n "checking for file... " >&6; } 8549if ${lt_cv_path_MAGIC_CMD+:} false; then : 8550 $as_echo_n "(cached) " >&6 8551else 8552 case $MAGIC_CMD in 8553[\\/*] | ?:[\\/]*) 8554 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8555 ;; 8556*) 8557 lt_save_MAGIC_CMD=$MAGIC_CMD 8558 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8559 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8560 for ac_dir in $ac_dummy; do 8561 IFS=$lt_save_ifs 8562 test -z "$ac_dir" && ac_dir=. 8563 if test -f "$ac_dir/file"; then 8564 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 8565 if test -n "$file_magic_test_file"; then 8566 case $deplibs_check_method in 8567 "file_magic "*) 8568 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8569 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8570 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8571 $EGREP "$file_magic_regex" > /dev/null; then 8572 : 8573 else 8574 cat <<_LT_EOF 1>&2 8575 8576*** Warning: the command libtool uses to detect shared libraries, 8577*** $file_magic_cmd, produces output that libtool cannot recognize. 8578*** The result is that libtool may fail to recognize shared libraries 8579*** as such. This will affect the creation of libtool libraries that 8580*** depend on shared libraries, but programs linked with such libtool 8581*** libraries will work regardless of this problem. Nevertheless, you 8582*** may want to report the problem to your system manager and/or to 8583*** bug-libtool@gnu.org 8584 8585_LT_EOF 8586 fi ;; 8587 esac 8588 fi 8589 break 8590 fi 8591 done 8592 IFS=$lt_save_ifs 8593 MAGIC_CMD=$lt_save_MAGIC_CMD 8594 ;; 8595esac 8596fi 8597 8598MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8599if test -n "$MAGIC_CMD"; then 8600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8601$as_echo "$MAGIC_CMD" >&6; } 8602else 8603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8604$as_echo "no" >&6; } 8605fi 8606 8607 8608 else 8609 MAGIC_CMD=: 8610 fi 8611fi 8612 8613 fi 8614 ;; 8615esac 8616 8617# Use C for the default configuration in the libtool script 8618 8619lt_save_CC=$CC 8620ac_ext=c 8621ac_cpp='$CPP $CPPFLAGS' 8622ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8623ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8624ac_compiler_gnu=$ac_cv_c_compiler_gnu 8625 8626 8627# Source file extension for C test sources. 8628ac_ext=c 8629 8630# Object file extension for compiled C test sources. 8631objext=o 8632objext=$objext 8633 8634# Code to be used in simple compile tests 8635lt_simple_compile_test_code="int some_variable = 0;" 8636 8637# Code to be used in simple link tests 8638lt_simple_link_test_code='int main(){return(0);}' 8639 8640 8641 8642 8643 8644 8645 8646# If no C compiler was specified, use CC. 8647LTCC=${LTCC-"$CC"} 8648 8649# If no C compiler flags were specified, use CFLAGS. 8650LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8651 8652# Allow CC to be a program name with arguments. 8653compiler=$CC 8654 8655# Save the default compiler, since it gets overwritten when the other 8656# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8657compiler_DEFAULT=$CC 8658 8659# save warnings/boilerplate of simple test code 8660ac_outfile=conftest.$ac_objext 8661echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8662eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8663_lt_compiler_boilerplate=`cat conftest.err` 8664$RM conftest* 8665 8666ac_outfile=conftest.$ac_objext 8667echo "$lt_simple_link_test_code" >conftest.$ac_ext 8668eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8669_lt_linker_boilerplate=`cat conftest.err` 8670$RM -r conftest* 8671 8672 8673if test -n "$compiler"; then 8674 8675lt_prog_compiler_no_builtin_flag= 8676 8677if test yes = "$GCC"; then 8678 case $cc_basename in 8679 nvcc*) 8680 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8681 *) 8682 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8683 esac 8684 8685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8686$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8687if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 8688 $as_echo_n "(cached) " >&6 8689else 8690 lt_cv_prog_compiler_rtti_exceptions=no 8691 ac_outfile=conftest.$ac_objext 8692 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8693 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 8694 # Insert the option either (1) after the last *FLAGS variable, or 8695 # (2) before a word containing "conftest.", or (3) at the end. 8696 # Note that $ac_compile itself does not contain backslashes and begins 8697 # with a dollar sign (not a hyphen), so the echo should work correctly. 8698 # The option is referenced via a variable to avoid confusing sed. 8699 lt_compile=`echo "$ac_compile" | $SED \ 8700 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8701 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8702 -e 's:$: $lt_compiler_flag:'` 8703 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8704 (eval "$lt_compile" 2>conftest.err) 8705 ac_status=$? 8706 cat conftest.err >&5 8707 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8708 if (exit $ac_status) && test -s "$ac_outfile"; then 8709 # The compiler can only warn and ignore the option if not recognized 8710 # So say no if there are warnings other than the usual output. 8711 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8712 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8713 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8714 lt_cv_prog_compiler_rtti_exceptions=yes 8715 fi 8716 fi 8717 $RM conftest* 8718 8719fi 8720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8721$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8722 8723if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 8724 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8725else 8726 : 8727fi 8728 8729fi 8730 8731 8732 8733 8734 8735 8736 lt_prog_compiler_wl= 8737lt_prog_compiler_pic= 8738lt_prog_compiler_static= 8739 8740 8741 if test yes = "$GCC"; then 8742 lt_prog_compiler_wl='-Wl,' 8743 lt_prog_compiler_static='-static' 8744 8745 case $host_os in 8746 aix*) 8747 # All AIX code is PIC. 8748 if test ia64 = "$host_cpu"; then 8749 # AIX 5 now supports IA64 processor 8750 lt_prog_compiler_static='-Bstatic' 8751 fi 8752 lt_prog_compiler_pic='-fPIC' 8753 ;; 8754 8755 amigaos*) 8756 case $host_cpu in 8757 powerpc) 8758 # see comment about AmigaOS4 .so support 8759 lt_prog_compiler_pic='-fPIC' 8760 ;; 8761 m68k) 8762 # FIXME: we need at least 68020 code to build shared libraries, but 8763 # adding the '-m68020' flag to GCC prevents building anything better, 8764 # like '-m68040'. 8765 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8766 ;; 8767 esac 8768 ;; 8769 8770 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8771 # PIC is the default for these OSes. 8772 ;; 8773 8774 mingw* | cygwin* | pw32* | os2* | cegcc*) 8775 # This hack is so that the source file can tell whether it is being 8776 # built for inclusion in a dll (and should export symbols for example). 8777 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8778 # (--disable-auto-import) libraries 8779 lt_prog_compiler_pic='-DDLL_EXPORT' 8780 case $host_os in 8781 os2*) 8782 lt_prog_compiler_static='$wl-static' 8783 ;; 8784 esac 8785 ;; 8786 8787 darwin* | rhapsody*) 8788 # PIC is the default on this platform 8789 # Common symbols not allowed in MH_DYLIB files 8790 lt_prog_compiler_pic='-fno-common' 8791 ;; 8792 8793 haiku*) 8794 # PIC is the default for Haiku. 8795 # The "-static" flag exists, but is broken. 8796 lt_prog_compiler_static= 8797 ;; 8798 8799 hpux*) 8800 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8801 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8802 # sets the default TLS model and affects inlining. 8803 case $host_cpu in 8804 hppa*64*) 8805 # +Z the default 8806 ;; 8807 *) 8808 lt_prog_compiler_pic='-fPIC' 8809 ;; 8810 esac 8811 ;; 8812 8813 interix[3-9]*) 8814 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8815 # Instead, we relocate shared libraries at runtime. 8816 ;; 8817 8818 msdosdjgpp*) 8819 # Just because we use GCC doesn't mean we suddenly get shared libraries 8820 # on systems that don't support them. 8821 lt_prog_compiler_can_build_shared=no 8822 enable_shared=no 8823 ;; 8824 8825 *nto* | *qnx*) 8826 # QNX uses GNU C++, but need to define -shared option too, otherwise 8827 # it will coredump. 8828 lt_prog_compiler_pic='-fPIC -shared' 8829 ;; 8830 8831 sysv4*MP*) 8832 if test -d /usr/nec; then 8833 lt_prog_compiler_pic=-Kconform_pic 8834 fi 8835 ;; 8836 8837 *) 8838 lt_prog_compiler_pic='-fPIC' 8839 ;; 8840 esac 8841 8842 case $cc_basename in 8843 nvcc*) # Cuda Compiler Driver 2.2 8844 lt_prog_compiler_wl='-Xlinker ' 8845 if test -n "$lt_prog_compiler_pic"; then 8846 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 8847 fi 8848 ;; 8849 esac 8850 else 8851 # PORTME Check for flag to pass linker flags through the system compiler. 8852 case $host_os in 8853 aix*) 8854 lt_prog_compiler_wl='-Wl,' 8855 if test ia64 = "$host_cpu"; then 8856 # AIX 5 now supports IA64 processor 8857 lt_prog_compiler_static='-Bstatic' 8858 else 8859 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8860 fi 8861 ;; 8862 8863 darwin* | rhapsody*) 8864 # PIC is the default on this platform 8865 # Common symbols not allowed in MH_DYLIB files 8866 lt_prog_compiler_pic='-fno-common' 8867 case $cc_basename in 8868 nagfor*) 8869 # NAG Fortran compiler 8870 lt_prog_compiler_wl='-Wl,-Wl,,' 8871 lt_prog_compiler_pic='-PIC' 8872 lt_prog_compiler_static='-Bstatic' 8873 ;; 8874 esac 8875 ;; 8876 8877 mingw* | cygwin* | pw32* | os2* | cegcc*) 8878 # This hack is so that the source file can tell whether it is being 8879 # built for inclusion in a dll (and should export symbols for example). 8880 lt_prog_compiler_pic='-DDLL_EXPORT' 8881 case $host_os in 8882 os2*) 8883 lt_prog_compiler_static='$wl-static' 8884 ;; 8885 esac 8886 ;; 8887 8888 hpux9* | hpux10* | hpux11*) 8889 lt_prog_compiler_wl='-Wl,' 8890 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8891 # not for PA HP-UX. 8892 case $host_cpu in 8893 hppa*64*|ia64*) 8894 # +Z the default 8895 ;; 8896 *) 8897 lt_prog_compiler_pic='+Z' 8898 ;; 8899 esac 8900 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8901 lt_prog_compiler_static='$wl-a ${wl}archive' 8902 ;; 8903 8904 irix5* | irix6* | nonstopux*) 8905 lt_prog_compiler_wl='-Wl,' 8906 # PIC (with -KPIC) is the default. 8907 lt_prog_compiler_static='-non_shared' 8908 ;; 8909 8910 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 8911 case $cc_basename in 8912 # old Intel for x86_64, which still supported -KPIC. 8913 ecc*) 8914 lt_prog_compiler_wl='-Wl,' 8915 lt_prog_compiler_pic='-KPIC' 8916 lt_prog_compiler_static='-static' 8917 ;; 8918 # icc used to be incompatible with GCC. 8919 # ICC 10 doesn't accept -KPIC any more. 8920 icc* | ifort*) 8921 lt_prog_compiler_wl='-Wl,' 8922 lt_prog_compiler_pic='-fPIC' 8923 lt_prog_compiler_static='-static' 8924 ;; 8925 # Lahey Fortran 8.1. 8926 lf95*) 8927 lt_prog_compiler_wl='-Wl,' 8928 lt_prog_compiler_pic='--shared' 8929 lt_prog_compiler_static='--static' 8930 ;; 8931 nagfor*) 8932 # NAG Fortran compiler 8933 lt_prog_compiler_wl='-Wl,-Wl,,' 8934 lt_prog_compiler_pic='-PIC' 8935 lt_prog_compiler_static='-Bstatic' 8936 ;; 8937 tcc*) 8938 # Fabrice Bellard et al's Tiny C Compiler 8939 lt_prog_compiler_wl='-Wl,' 8940 lt_prog_compiler_pic='-fPIC' 8941 lt_prog_compiler_static='-static' 8942 ;; 8943 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8944 # Portland Group compilers (*not* the Pentium gcc compiler, 8945 # which looks to be a dead project) 8946 lt_prog_compiler_wl='-Wl,' 8947 lt_prog_compiler_pic='-fpic' 8948 lt_prog_compiler_static='-Bstatic' 8949 ;; 8950 ccc*) 8951 lt_prog_compiler_wl='-Wl,' 8952 # All Alpha code is PIC. 8953 lt_prog_compiler_static='-non_shared' 8954 ;; 8955 xl* | bgxl* | bgf* | mpixl*) 8956 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8957 lt_prog_compiler_wl='-Wl,' 8958 lt_prog_compiler_pic='-qpic' 8959 lt_prog_compiler_static='-qstaticlink' 8960 ;; 8961 *) 8962 case `$CC -V 2>&1 | sed 5q` in 8963 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 8964 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8965 lt_prog_compiler_pic='-KPIC' 8966 lt_prog_compiler_static='-Bstatic' 8967 lt_prog_compiler_wl='' 8968 ;; 8969 *Sun\ F* | *Sun*Fortran*) 8970 lt_prog_compiler_pic='-KPIC' 8971 lt_prog_compiler_static='-Bstatic' 8972 lt_prog_compiler_wl='-Qoption ld ' 8973 ;; 8974 *Sun\ C*) 8975 # Sun C 5.9 8976 lt_prog_compiler_pic='-KPIC' 8977 lt_prog_compiler_static='-Bstatic' 8978 lt_prog_compiler_wl='-Wl,' 8979 ;; 8980 *Intel*\ [CF]*Compiler*) 8981 lt_prog_compiler_wl='-Wl,' 8982 lt_prog_compiler_pic='-fPIC' 8983 lt_prog_compiler_static='-static' 8984 ;; 8985 *Portland\ Group*) 8986 lt_prog_compiler_wl='-Wl,' 8987 lt_prog_compiler_pic='-fpic' 8988 lt_prog_compiler_static='-Bstatic' 8989 ;; 8990 esac 8991 ;; 8992 esac 8993 ;; 8994 8995 newsos6) 8996 lt_prog_compiler_pic='-KPIC' 8997 lt_prog_compiler_static='-Bstatic' 8998 ;; 8999 9000 *nto* | *qnx*) 9001 # QNX uses GNU C++, but need to define -shared option too, otherwise 9002 # it will coredump. 9003 lt_prog_compiler_pic='-fPIC -shared' 9004 ;; 9005 9006 osf3* | osf4* | osf5*) 9007 lt_prog_compiler_wl='-Wl,' 9008 # All OSF/1 code is PIC. 9009 lt_prog_compiler_static='-non_shared' 9010 ;; 9011 9012 rdos*) 9013 lt_prog_compiler_static='-non_shared' 9014 ;; 9015 9016 solaris*) 9017 lt_prog_compiler_pic='-KPIC' 9018 lt_prog_compiler_static='-Bstatic' 9019 case $cc_basename in 9020 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 9021 lt_prog_compiler_wl='-Qoption ld ';; 9022 *) 9023 lt_prog_compiler_wl='-Wl,';; 9024 esac 9025 ;; 9026 9027 sunos4*) 9028 lt_prog_compiler_wl='-Qoption ld ' 9029 lt_prog_compiler_pic='-PIC' 9030 lt_prog_compiler_static='-Bstatic' 9031 ;; 9032 9033 sysv4 | sysv4.2uw2* | sysv4.3*) 9034 lt_prog_compiler_wl='-Wl,' 9035 lt_prog_compiler_pic='-KPIC' 9036 lt_prog_compiler_static='-Bstatic' 9037 ;; 9038 9039 sysv4*MP*) 9040 if test -d /usr/nec; then 9041 lt_prog_compiler_pic='-Kconform_pic' 9042 lt_prog_compiler_static='-Bstatic' 9043 fi 9044 ;; 9045 9046 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 9047 lt_prog_compiler_wl='-Wl,' 9048 lt_prog_compiler_pic='-KPIC' 9049 lt_prog_compiler_static='-Bstatic' 9050 ;; 9051 9052 unicos*) 9053 lt_prog_compiler_wl='-Wl,' 9054 lt_prog_compiler_can_build_shared=no 9055 ;; 9056 9057 uts4*) 9058 lt_prog_compiler_pic='-pic' 9059 lt_prog_compiler_static='-Bstatic' 9060 ;; 9061 9062 *) 9063 lt_prog_compiler_can_build_shared=no 9064 ;; 9065 esac 9066 fi 9067 9068case $host_os in 9069 # For platforms that do not support PIC, -DPIC is meaningless: 9070 *djgpp*) 9071 lt_prog_compiler_pic= 9072 ;; 9073 *) 9074 lt_prog_compiler_pic="$lt_prog_compiler_pic@&t@ -DPIC" 9075 ;; 9076esac 9077 9078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 9079$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 9080if ${lt_cv_prog_compiler_pic+:} false; then : 9081 $as_echo_n "(cached) " >&6 9082else 9083 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 9084fi 9085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 9086$as_echo "$lt_cv_prog_compiler_pic" >&6; } 9087lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 9088 9089# 9090# Check to make sure the PIC flag actually works. 9091# 9092if test -n "$lt_prog_compiler_pic"; then 9093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 9094$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 9095if ${lt_cv_prog_compiler_pic_works+:} false; then : 9096 $as_echo_n "(cached) " >&6 9097else 9098 lt_cv_prog_compiler_pic_works=no 9099 ac_outfile=conftest.$ac_objext 9100 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9101 lt_compiler_flag="$lt_prog_compiler_pic@&t@ -DPIC" ## exclude from sc_useless_quotes_in_assignment 9102 # Insert the option either (1) after the last *FLAGS variable, or 9103 # (2) before a word containing "conftest.", or (3) at the end. 9104 # Note that $ac_compile itself does not contain backslashes and begins 9105 # with a dollar sign (not a hyphen), so the echo should work correctly. 9106 # The option is referenced via a variable to avoid confusing sed. 9107 lt_compile=`echo "$ac_compile" | $SED \ 9108 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9109 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9110 -e 's:$: $lt_compiler_flag:'` 9111 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9112 (eval "$lt_compile" 2>conftest.err) 9113 ac_status=$? 9114 cat conftest.err >&5 9115 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9116 if (exit $ac_status) && test -s "$ac_outfile"; then 9117 # The compiler can only warn and ignore the option if not recognized 9118 # So say no if there are warnings other than the usual output. 9119 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9120 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9121 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9122 lt_cv_prog_compiler_pic_works=yes 9123 fi 9124 fi 9125 $RM conftest* 9126 9127fi 9128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 9129$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 9130 9131if test yes = "$lt_cv_prog_compiler_pic_works"; then 9132 case $lt_prog_compiler_pic in 9133 "" | " "*) ;; 9134 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 9135 esac 9136else 9137 lt_prog_compiler_pic= 9138 lt_prog_compiler_can_build_shared=no 9139fi 9140 9141fi 9142 9143 9144 9145 9146 9147 9148 9149 9150 9151 9152 9153# 9154# Check to make sure the static flag actually works. 9155# 9156wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 9157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 9158$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 9159if ${lt_cv_prog_compiler_static_works+:} false; then : 9160 $as_echo_n "(cached) " >&6 9161else 9162 lt_cv_prog_compiler_static_works=no 9163 save_LDFLAGS=$LDFLAGS 9164 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 9165 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9166 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9167 # The linker can only warn and ignore the option if not recognized 9168 # So say no if there are warnings 9169 if test -s conftest.err; then 9170 # Append any errors to the config.log. 9171 cat conftest.err 1>&5 9172 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9173 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9174 if diff conftest.exp conftest.er2 >/dev/null; then 9175 lt_cv_prog_compiler_static_works=yes 9176 fi 9177 else 9178 lt_cv_prog_compiler_static_works=yes 9179 fi 9180 fi 9181 $RM -r conftest* 9182 LDFLAGS=$save_LDFLAGS 9183 9184fi 9185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 9186$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 9187 9188if test yes = "$lt_cv_prog_compiler_static_works"; then 9189 : 9190else 9191 lt_prog_compiler_static= 9192fi 9193 9194 9195 9196 9197 9198 9199 9200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9201$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9202if ${lt_cv_prog_compiler_c_o+:} false; then : 9203 $as_echo_n "(cached) " >&6 9204else 9205 lt_cv_prog_compiler_c_o=no 9206 $RM -r conftest 2>/dev/null 9207 mkdir conftest 9208 cd conftest 9209 mkdir out 9210 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9211 9212 lt_compiler_flag="-o out/conftest2.$ac_objext" 9213 # Insert the option either (1) after the last *FLAGS variable, or 9214 # (2) before a word containing "conftest.", or (3) at the end. 9215 # Note that $ac_compile itself does not contain backslashes and begins 9216 # with a dollar sign (not a hyphen), so the echo should work correctly. 9217 lt_compile=`echo "$ac_compile" | $SED \ 9218 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9219 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9220 -e 's:$: $lt_compiler_flag:'` 9221 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9222 (eval "$lt_compile" 2>out/conftest.err) 9223 ac_status=$? 9224 cat out/conftest.err >&5 9225 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9226 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9227 then 9228 # The compiler can only warn and ignore the option if not recognized 9229 # So say no if there are warnings 9230 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9231 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9232 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9233 lt_cv_prog_compiler_c_o=yes 9234 fi 9235 fi 9236 chmod u+w . 2>&5 9237 $RM conftest* 9238 # SGI C++ compiler will create directory out/ii_files/ for 9239 # template instantiation 9240 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9241 $RM out/* && rmdir out 9242 cd .. 9243 $RM -r conftest 9244 $RM conftest* 9245 9246fi 9247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9248$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9249 9250 9251 9252 9253 9254 9255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9256$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9257if ${lt_cv_prog_compiler_c_o+:} false; then : 9258 $as_echo_n "(cached) " >&6 9259else 9260 lt_cv_prog_compiler_c_o=no 9261 $RM -r conftest 2>/dev/null 9262 mkdir conftest 9263 cd conftest 9264 mkdir out 9265 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9266 9267 lt_compiler_flag="-o out/conftest2.$ac_objext" 9268 # Insert the option either (1) after the last *FLAGS variable, or 9269 # (2) before a word containing "conftest.", or (3) at the end. 9270 # Note that $ac_compile itself does not contain backslashes and begins 9271 # with a dollar sign (not a hyphen), so the echo should work correctly. 9272 lt_compile=`echo "$ac_compile" | $SED \ 9273 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9274 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9275 -e 's:$: $lt_compiler_flag:'` 9276 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9277 (eval "$lt_compile" 2>out/conftest.err) 9278 ac_status=$? 9279 cat out/conftest.err >&5 9280 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9281 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9282 then 9283 # The compiler can only warn and ignore the option if not recognized 9284 # So say no if there are warnings 9285 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9286 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9287 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9288 lt_cv_prog_compiler_c_o=yes 9289 fi 9290 fi 9291 chmod u+w . 2>&5 9292 $RM conftest* 9293 # SGI C++ compiler will create directory out/ii_files/ for 9294 # template instantiation 9295 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9296 $RM out/* && rmdir out 9297 cd .. 9298 $RM -r conftest 9299 $RM conftest* 9300 9301fi 9302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9303$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9304 9305 9306 9307 9308hard_links=nottested 9309if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 9310 # do not overwrite the value of need_locks provided by the user 9311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9312$as_echo_n "checking if we can lock with hard links... " >&6; } 9313 hard_links=yes 9314 $RM conftest* 9315 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9316 touch conftest.a 9317 ln conftest.a conftest.b 2>&5 || hard_links=no 9318 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9320$as_echo "$hard_links" >&6; } 9321 if test no = "$hard_links"; then 9322 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 9323$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 9324 need_locks=warn 9325 fi 9326else 9327 need_locks=no 9328fi 9329 9330 9331 9332 9333 9334 9335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9336$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9337 9338 runpath_var= 9339 allow_undefined_flag= 9340 always_export_symbols=no 9341 archive_cmds= 9342 archive_expsym_cmds= 9343 compiler_needs_object=no 9344 enable_shared_with_static_runtimes=no 9345 export_dynamic_flag_spec= 9346 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9347 hardcode_automatic=no 9348 hardcode_direct=no 9349 hardcode_direct_absolute=no 9350 hardcode_libdir_flag_spec= 9351 hardcode_libdir_separator= 9352 hardcode_minus_L=no 9353 hardcode_shlibpath_var=unsupported 9354 inherit_rpath=no 9355 link_all_deplibs=unknown 9356 module_cmds= 9357 module_expsym_cmds= 9358 old_archive_from_new_cmds= 9359 old_archive_from_expsyms_cmds= 9360 thread_safe_flag_spec= 9361 whole_archive_flag_spec= 9362 # include_expsyms should be a list of space-separated symbols to be *always* 9363 # included in the symbol list 9364 include_expsyms= 9365 # exclude_expsyms can be an extended regexp of symbols to exclude 9366 # it will be wrapped by ' (' and ')$', so one must not match beginning or 9367 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 9368 # as well as any symbol that contains 'd'. 9369 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9370 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9371 # platforms (ab)use it in PIC code, but their linkers get confused if 9372 # the symbol is explicitly referenced. Since portable code cannot 9373 # rely on this symbol name, it's probably fine to never include it in 9374 # preloaded symbol tables. 9375 # Exclude shared library initialization/finalization symbols. 9376 extract_expsyms_cmds= 9377 9378 case $host_os in 9379 cygwin* | mingw* | pw32* | cegcc*) 9380 # FIXME: the MSVC++ port hasn't been tested in a loooong time 9381 # When not using gcc, we currently assume that we are using 9382 # Microsoft Visual C++. 9383 if test yes != "$GCC"; then 9384 with_gnu_ld=no 9385 fi 9386 ;; 9387 interix*) 9388 # we just hope/assume this is gcc and not c89 (= MSVC++) 9389 with_gnu_ld=yes 9390 ;; 9391 openbsd* | bitrig*) 9392 with_gnu_ld=no 9393 ;; 9394 esac 9395 9396 ld_shlibs=yes 9397 9398 # On some targets, GNU ld is compatible enough with the native linker 9399 # that we're better off using the native interface for both. 9400 lt_use_gnu_ld_interface=no 9401 if test yes = "$with_gnu_ld"; then 9402 case $host_os in 9403 aix*) 9404 # The AIX port of GNU ld has always aspired to compatibility 9405 # with the native linker. However, as the warning in the GNU ld 9406 # block says, versions before 2.19.5* couldn't really create working 9407 # shared libraries, regardless of the interface used. 9408 case `$LD -v 2>&1` in 9409 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9410 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9411 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9412 *) 9413 lt_use_gnu_ld_interface=yes 9414 ;; 9415 esac 9416 ;; 9417 *) 9418 lt_use_gnu_ld_interface=yes 9419 ;; 9420 esac 9421 fi 9422 9423 if test yes = "$lt_use_gnu_ld_interface"; then 9424 # If archive_cmds runs LD, not CC, wlarc should be empty 9425 wlarc='$wl' 9426 9427 # Set some defaults for GNU ld with shared library support. These 9428 # are reset later if shared libraries are not supported. Putting them 9429 # here allows them to be overridden if necessary. 9430 runpath_var=LD_RUN_PATH 9431 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9432 export_dynamic_flag_spec='$wl--export-dynamic' 9433 # ancient GNU ld didn't support --whole-archive et. al. 9434 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9435 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 9436 else 9437 whole_archive_flag_spec= 9438 fi 9439 supports_anon_versioning=no 9440 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 9441 *GNU\ gold*) supports_anon_versioning=yes ;; 9442 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9443 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9444 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9445 *\ 2.11.*) ;; # other 2.11 versions 9446 *) supports_anon_versioning=yes ;; 9447 esac 9448 9449 # See if GNU ld supports shared libraries. 9450 case $host_os in 9451 aix[3-9]*) 9452 # On AIX/PPC, the GNU linker is very broken 9453 if test ia64 != "$host_cpu"; then 9454 ld_shlibs=no 9455 cat <<_LT_EOF 1>&2 9456 9457*** Warning: the GNU linker, at least up to release 2.19, is reported 9458*** to be unable to reliably create shared libraries on AIX. 9459*** Therefore, libtool is disabling shared libraries support. If you 9460*** really care for shared libraries, you may want to install binutils 9461*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9462*** You will then need to restart the configuration process. 9463 9464_LT_EOF 9465 fi 9466 ;; 9467 9468 amigaos*) 9469 case $host_cpu in 9470 powerpc) 9471 # see comment about AmigaOS4 .so support 9472 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9473 archive_expsym_cmds='' 9474 ;; 9475 m68k) 9476 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)' 9477 hardcode_libdir_flag_spec='-L$libdir' 9478 hardcode_minus_L=yes 9479 ;; 9480 esac 9481 ;; 9482 9483 beos*) 9484 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9485 allow_undefined_flag=unsupported 9486 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9487 # support --undefined. This deserves some investigation. FIXME 9488 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9489 else 9490 ld_shlibs=no 9491 fi 9492 ;; 9493 9494 cygwin* | mingw* | pw32* | cegcc*) 9495 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9496 # as there is no search path for DLLs. 9497 hardcode_libdir_flag_spec='-L$libdir' 9498 export_dynamic_flag_spec='$wl--export-all-symbols' 9499 allow_undefined_flag=unsupported 9500 always_export_symbols=no 9501 enable_shared_with_static_runtimes=yes 9502 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' 9503 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 9504 9505 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9506 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9507 # If the export-symbols file already is a .def file, use it as 9508 # is; otherwise, prepend EXPORTS... 9509 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 9510 cp $export_symbols $output_objdir/$soname.def; 9511 else 9512 echo EXPORTS > $output_objdir/$soname.def; 9513 cat $export_symbols >> $output_objdir/$soname.def; 9514 fi~ 9515 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9516 else 9517 ld_shlibs=no 9518 fi 9519 ;; 9520 9521 haiku*) 9522 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9523 link_all_deplibs=yes 9524 ;; 9525 9526 os2*) 9527 hardcode_libdir_flag_spec='-L$libdir' 9528 hardcode_minus_L=yes 9529 allow_undefined_flag=unsupported 9530 shrext_cmds=.dll 9531 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9532 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9533 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9534 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9535 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 9536 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9537 emximp -o $lib $output_objdir/$libname.def' 9538 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9539 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9540 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9541 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9542 prefix_cmds="$SED"~ 9543 if test EXPORTS = "`$SED 1q $export_symbols`"; then 9544 prefix_cmds="$prefix_cmds -e 1d"; 9545 fi~ 9546 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 9547 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 9548 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9549 emximp -o $lib $output_objdir/$libname.def' 9550 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 9551 enable_shared_with_static_runtimes=yes 9552 ;; 9553 9554 interix[3-9]*) 9555 hardcode_direct=no 9556 hardcode_shlibpath_var=no 9557 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 9558 export_dynamic_flag_spec='$wl-E' 9559 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9560 # Instead, shared libraries are loaded at an image base (0x10000000 by 9561 # default) and relocated if they conflict, which is a slow very memory 9562 # consuming and fragmenting process. To avoid this, we pick a random, 9563 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9564 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9565 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9566 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' 9567 ;; 9568 9569 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9570 tmp_diet=no 9571 if test linux-dietlibc = "$host_os"; then 9572 case $cc_basename in 9573 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9574 esac 9575 fi 9576 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9577 && test no = "$tmp_diet" 9578 then 9579 tmp_addflag=' $pic_flag' 9580 tmp_sharedflag='-shared' 9581 case $cc_basename,$host_cpu in 9582 pgcc*) # Portland Group C compiler 9583 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' 9584 tmp_addflag=' $pic_flag' 9585 ;; 9586 pgf77* | pgf90* | pgf95* | pgfortran*) 9587 # Portland Group f77 and f90 compilers 9588 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' 9589 tmp_addflag=' $pic_flag -Mnomain' ;; 9590 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9591 tmp_addflag=' -i_dynamic' ;; 9592 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9593 tmp_addflag=' -i_dynamic -nofor_main' ;; 9594 ifc* | ifort*) # Intel Fortran compiler 9595 tmp_addflag=' -nofor_main' ;; 9596 lf95*) # Lahey Fortran 8.1 9597 whole_archive_flag_spec= 9598 tmp_sharedflag='--shared' ;; 9599 nagfor*) # NAGFOR 5.3 9600 tmp_sharedflag='-Wl,-shared' ;; 9601 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9602 tmp_sharedflag='-qmkshrobj' 9603 tmp_addflag= ;; 9604 nvcc*) # Cuda Compiler Driver 2.2 9605 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' 9606 compiler_needs_object=yes 9607 ;; 9608 esac 9609 case `$CC -V 2>&1 | sed 5q` in 9610 *Sun\ C*) # Sun C 5.9 9611 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' 9612 compiler_needs_object=yes 9613 tmp_sharedflag='-G' ;; 9614 *Sun\ F*) # Sun Fortran 8.3 9615 tmp_sharedflag='-G' ;; 9616 esac 9617 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9618 9619 if test yes = "$supports_anon_versioning"; then 9620 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9621 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9622 echo "local: *; };" >> $output_objdir/$libname.ver~ 9623 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 9624 fi 9625 9626 case $cc_basename in 9627 tcc*) 9628 export_dynamic_flag_spec='-rdynamic' 9629 ;; 9630 xlf* | bgf* | bgxlf* | mpixlf*) 9631 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9632 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9633 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9634 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 9635 if test yes = "$supports_anon_versioning"; then 9636 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9637 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9638 echo "local: *; };" >> $output_objdir/$libname.ver~ 9639 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9640 fi 9641 ;; 9642 esac 9643 else 9644 ld_shlibs=no 9645 fi 9646 ;; 9647 9648 netbsd*) 9649 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9650 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9651 wlarc= 9652 else 9653 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9654 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9655 fi 9656 ;; 9657 9658 solaris*) 9659 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9660 ld_shlibs=no 9661 cat <<_LT_EOF 1>&2 9662 9663*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9664*** create shared libraries on Solaris systems. Therefore, libtool 9665*** is disabling shared libraries support. We urge you to upgrade GNU 9666*** binutils to release 2.9.1 or newer. Another option is to modify 9667*** your PATH or compiler configuration so that the native linker is 9668*** used, and then restart. 9669 9670_LT_EOF 9671 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9672 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9673 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9674 else 9675 ld_shlibs=no 9676 fi 9677 ;; 9678 9679 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9680 case `$LD -v 2>&1` in 9681 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9682 ld_shlibs=no 9683 cat <<_LT_EOF 1>&2 9684 9685*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 9686*** reliably create shared libraries on SCO systems. Therefore, libtool 9687*** is disabling shared libraries support. We urge you to upgrade GNU 9688*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9689*** your PATH or compiler configuration so that the native linker is 9690*** used, and then restart. 9691 9692_LT_EOF 9693 ;; 9694 *) 9695 # For security reasons, it is highly recommended that you always 9696 # use absolute paths for naming shared libraries, and exclude the 9697 # DT_RUNPATH tag from executables and libraries. But doing so 9698 # requires that you compile everything twice, which is a pain. 9699 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9700 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9701 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9702 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9703 else 9704 ld_shlibs=no 9705 fi 9706 ;; 9707 esac 9708 ;; 9709 9710 sunos4*) 9711 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9712 wlarc= 9713 hardcode_direct=yes 9714 hardcode_shlibpath_var=no 9715 ;; 9716 9717 *) 9718 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9719 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9720 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9721 else 9722 ld_shlibs=no 9723 fi 9724 ;; 9725 esac 9726 9727 if test no = "$ld_shlibs"; then 9728 runpath_var= 9729 hardcode_libdir_flag_spec= 9730 export_dynamic_flag_spec= 9731 whole_archive_flag_spec= 9732 fi 9733 else 9734 # PORTME fill in a description of your system's linker (not GNU ld) 9735 case $host_os in 9736 aix3*) 9737 allow_undefined_flag=unsupported 9738 always_export_symbols=yes 9739 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' 9740 # Note: this linker hardcodes the directories in LIBPATH if there 9741 # are no directories specified by -L. 9742 hardcode_minus_L=yes 9743 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 9744 # Neither direct hardcoding nor static linking is supported with a 9745 # broken collect2. 9746 hardcode_direct=unsupported 9747 fi 9748 ;; 9749 9750 aix[4-9]*) 9751 if test ia64 = "$host_cpu"; then 9752 # On IA64, the linker does run time linking by default, so we don't 9753 # have to do anything special. 9754 aix_use_runtimelinking=no 9755 exp_sym_flag='-Bexport' 9756 no_entry_flag= 9757 else 9758 # If we're using GNU nm, then we don't want the "-C" option. 9759 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 9760 # Without the "-l" option, or with the "-B" option, AIX nm treats 9761 # weak defined symbols like other global defined symbols, whereas 9762 # GNU nm marks them as "W". 9763 # While the 'weak' keyword is ignored in the Export File, we need 9764 # it in the Import File for the 'aix-soname' feature, so we have 9765 # to replace the "-B" option with "-P" for AIX nm. 9766 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9767 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' 9768 else 9769 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' 9770 fi 9771 aix_use_runtimelinking=no 9772 9773 # Test if we are trying to use run time linking or normal 9774 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9775 # have runtime linking enabled, and use it for executables. 9776 # For shared libraries, we enable/disable runtime linking 9777 # depending on the kind of the shared library created - 9778 # when "with_aix_soname,aix_use_runtimelinking" is: 9779 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 9780 # "aix,yes" lib.so shared, rtl:yes, for executables 9781 # lib.a static archive 9782 # "both,no" lib.so.V(shr.o) shared, rtl:yes 9783 # lib.a(lib.so.V) shared, rtl:no, for executables 9784 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 9785 # lib.a(lib.so.V) shared, rtl:no 9786 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 9787 # lib.a static archive 9788 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9789 for ld_flag in $LDFLAGS; do 9790 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 9791 aix_use_runtimelinking=yes 9792 break 9793 fi 9794 done 9795 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 9796 # With aix-soname=svr4, we create the lib.so.V shared archives only, 9797 # so we don't have lib.a shared libs to link our executables. 9798 # We have to force runtime linking in this case. 9799 aix_use_runtimelinking=yes 9800 LDFLAGS="$LDFLAGS -Wl,-brtl" 9801 fi 9802 ;; 9803 esac 9804 9805 exp_sym_flag='-bexport' 9806 no_entry_flag='-bnoentry' 9807 fi 9808 9809 # When large executables or shared objects are built, AIX ld can 9810 # have problems creating the table of contents. If linking a library 9811 # or program results in "error TOC overflow" add -mminimal-toc to 9812 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9813 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9814 9815 archive_cmds='' 9816 hardcode_direct=yes 9817 hardcode_direct_absolute=yes 9818 hardcode_libdir_separator=':' 9819 link_all_deplibs=yes 9820 file_list_spec='$wl-f,' 9821 case $with_aix_soname,$aix_use_runtimelinking in 9822 aix,*) ;; # traditional, no import file 9823 svr4,* | *,yes) # use import file 9824 # The Import File defines what to hardcode. 9825 hardcode_direct=no 9826 hardcode_direct_absolute=no 9827 ;; 9828 esac 9829 9830 if test yes = "$GCC"; then 9831 case $host_os in aix4.[012]|aix4.[012].*) 9832 # We only want to do this on AIX 4.2 and lower, the check 9833 # below for broken collect2 doesn't work under 4.3+ 9834 collect2name=`$CC -print-prog-name=collect2` 9835 if test -f "$collect2name" && 9836 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9837 then 9838 # We have reworked collect2 9839 : 9840 else 9841 # We have old collect2 9842 hardcode_direct=unsupported 9843 # It fails to find uninstalled libraries when the uninstalled 9844 # path is not listed in the libpath. Setting hardcode_minus_L 9845 # to unsupported forces relinking 9846 hardcode_minus_L=yes 9847 hardcode_libdir_flag_spec='-L$libdir' 9848 hardcode_libdir_separator= 9849 fi 9850 ;; 9851 esac 9852 shared_flag='-shared' 9853 if test yes = "$aix_use_runtimelinking"; then 9854 shared_flag="$shared_flag "'$wl-G' 9855 fi 9856 # Need to ensure runtime linking is disabled for the traditional 9857 # shared library, or the linker may eventually find shared libraries 9858 # /with/ Import File - we do not want to mix them. 9859 shared_flag_aix='-shared' 9860 shared_flag_svr4='-shared $wl-G' 9861 else 9862 # not using gcc 9863 if test ia64 = "$host_cpu"; then 9864 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9865 # chokes on -Wl,-G. The following line is correct: 9866 shared_flag='-G' 9867 else 9868 if test yes = "$aix_use_runtimelinking"; then 9869 shared_flag='$wl-G' 9870 else 9871 shared_flag='$wl-bM:SRE' 9872 fi 9873 shared_flag_aix='$wl-bM:SRE' 9874 shared_flag_svr4='$wl-G' 9875 fi 9876 fi 9877 9878 export_dynamic_flag_spec='$wl-bexpall' 9879 # It seems that -bexpall does not export symbols beginning with 9880 # underscore (_), so it is better to generate a list of symbols to export. 9881 always_export_symbols=yes 9882 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 9883 # Warning - without using the other runtime loading flags (-brtl), 9884 # -berok will link without error, but may produce a broken library. 9885 allow_undefined_flag='-berok' 9886 # Determine the default libpath from the value encoded in an 9887 # empty executable. 9888 if test set = "${lt_cv_aix_libpath+set}"; then 9889 aix_libpath=$lt_cv_aix_libpath 9890else 9891 if ${lt_cv_aix_libpath_+:} false; then : 9892 $as_echo_n "(cached) " >&6 9893else 9894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9895/* end confdefs.h. */ 9896 9897int 9898main () 9899{ 9900 9901 ; 9902 return 0; 9903} 9904_ACEOF 9905if ac_fn_c_try_link "$LINENO"; then : 9906 9907 lt_aix_libpath_sed=' 9908 /Import File Strings/,/^$/ { 9909 /^0/ { 9910 s/^0 *\([^ ]*\) *$/\1/ 9911 p 9912 } 9913 }' 9914 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9915 # Check for a 64-bit object if we didn't find anything. 9916 if test -z "$lt_cv_aix_libpath_"; then 9917 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9918 fi 9919fi 9920rm -f core conftest.err conftest.$ac_objext \ 9921 conftest$ac_exeext conftest.$ac_ext 9922 if test -z "$lt_cv_aix_libpath_"; then 9923 lt_cv_aix_libpath_=/usr/lib:/lib 9924 fi 9925 9926fi 9927 9928 aix_libpath=$lt_cv_aix_libpath_ 9929fi 9930 9931 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 9932 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 9933 else 9934 if test ia64 = "$host_cpu"; then 9935 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 9936 allow_undefined_flag="-z nodefs" 9937 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" 9938 else 9939 # Determine the default libpath from the value encoded in an 9940 # empty executable. 9941 if test set = "${lt_cv_aix_libpath+set}"; then 9942 aix_libpath=$lt_cv_aix_libpath 9943else 9944 if ${lt_cv_aix_libpath_+:} false; then : 9945 $as_echo_n "(cached) " >&6 9946else 9947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9948/* end confdefs.h. */ 9949 9950int 9951main () 9952{ 9953 9954 ; 9955 return 0; 9956} 9957_ACEOF 9958if ac_fn_c_try_link "$LINENO"; then : 9959 9960 lt_aix_libpath_sed=' 9961 /Import File Strings/,/^$/ { 9962 /^0/ { 9963 s/^0 *\([^ ]*\) *$/\1/ 9964 p 9965 } 9966 }' 9967 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9968 # Check for a 64-bit object if we didn't find anything. 9969 if test -z "$lt_cv_aix_libpath_"; then 9970 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9971 fi 9972fi 9973rm -f core conftest.err conftest.$ac_objext \ 9974 conftest$ac_exeext conftest.$ac_ext 9975 if test -z "$lt_cv_aix_libpath_"; then 9976 lt_cv_aix_libpath_=/usr/lib:/lib 9977 fi 9978 9979fi 9980 9981 aix_libpath=$lt_cv_aix_libpath_ 9982fi 9983 9984 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 9985 # Warning - without using the other run time loading flags, 9986 # -berok will link without error, but may produce a broken library. 9987 no_undefined_flag=' $wl-bernotok' 9988 allow_undefined_flag=' $wl-berok' 9989 if test yes = "$with_gnu_ld"; then 9990 # We only use this code for GNU lds that support --whole-archive. 9991 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 9992 else 9993 # Exported symbols can be pulled into shared objects from archives 9994 whole_archive_flag_spec='$convenience' 9995 fi 9996 archive_cmds_need_lc=yes 9997 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 9998 # -brtl affects multiple linker settings, -berok does not and is overridden later 9999 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 10000 if test svr4 != "$with_aix_soname"; then 10001 # This is similar to how AIX traditionally builds its shared libraries. 10002 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' 10003 fi 10004 if test aix != "$with_aix_soname"; then 10005 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' 10006 else 10007 # used by -dlpreopen to get the symbols 10008 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 10009 fi 10010 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 10011 fi 10012 fi 10013 ;; 10014 10015 amigaos*) 10016 case $host_cpu in 10017 powerpc) 10018 # see comment about AmigaOS4 .so support 10019 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10020 archive_expsym_cmds='' 10021 ;; 10022 m68k) 10023 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)' 10024 hardcode_libdir_flag_spec='-L$libdir' 10025 hardcode_minus_L=yes 10026 ;; 10027 esac 10028 ;; 10029 10030 bsdi[45]*) 10031 export_dynamic_flag_spec=-rdynamic 10032 ;; 10033 10034 cygwin* | mingw* | pw32* | cegcc*) 10035 # When not using gcc, we currently assume that we are using 10036 # Microsoft Visual C++. 10037 # hardcode_libdir_flag_spec is actually meaningless, as there is 10038 # no search path for DLLs. 10039 case $cc_basename in 10040 cl*) 10041 # Native MSVC 10042 hardcode_libdir_flag_spec=' ' 10043 allow_undefined_flag=unsupported 10044 always_export_symbols=yes 10045 file_list_spec='@' 10046 # Tell ltmain to make .lib files, not .a files. 10047 libext=lib 10048 # Tell ltmain to make .dll files, not .so files. 10049 shrext_cmds=.dll 10050 # FIXME: Setting linknames here is a bad hack. 10051 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 10052 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10053 cp "$export_symbols" "$output_objdir/$soname.def"; 10054 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 10055 else 10056 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 10057 fi~ 10058 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 10059 linknames=' 10060 # The linker will not automatically build a static lib if we build a DLL. 10061 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 10062 enable_shared_with_static_runtimes=yes 10063 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 10064 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 10065 # Don't use ranlib 10066 old_postinstall_cmds='chmod 644 $oldlib' 10067 postlink_cmds='lt_outputfile="@OUTPUT@"~ 10068 lt_tool_outputfile="@TOOL_OUTPUT@"~ 10069 case $lt_outputfile in 10070 *.exe|*.EXE) ;; 10071 *) 10072 lt_outputfile=$lt_outputfile.exe 10073 lt_tool_outputfile=$lt_tool_outputfile.exe 10074 ;; 10075 esac~ 10076 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 10077 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 10078 $RM "$lt_outputfile.manifest"; 10079 fi' 10080 ;; 10081 *) 10082 # Assume MSVC wrapper 10083 hardcode_libdir_flag_spec=' ' 10084 allow_undefined_flag=unsupported 10085 # Tell ltmain to make .lib files, not .a files. 10086 libext=lib 10087 # Tell ltmain to make .dll files, not .so files. 10088 shrext_cmds=.dll 10089 # FIXME: Setting linknames here is a bad hack. 10090 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 10091 # The linker will automatically build a .lib file if we build a DLL. 10092 old_archive_from_new_cmds='true' 10093 # FIXME: Should let the user specify the lib program. 10094 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 10095 enable_shared_with_static_runtimes=yes 10096 ;; 10097 esac 10098 ;; 10099 10100 darwin* | rhapsody*) 10101 10102 10103 archive_cmds_need_lc=no 10104 hardcode_direct=no 10105 hardcode_automatic=yes 10106 hardcode_shlibpath_var=unsupported 10107 if test yes = "$lt_cv_ld_force_load"; then 10108 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\"`' 10109 10110 else 10111 whole_archive_flag_spec='' 10112 fi 10113 link_all_deplibs=yes 10114 allow_undefined_flag=$_lt_dar_allow_undefined 10115 case $cc_basename in 10116 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 10117 *) _lt_dar_can_shared=$GCC ;; 10118 esac 10119 if test yes = "$_lt_dar_can_shared"; then 10120 output_verbose_link_cmd=func_echo_all 10121 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 10122 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 10123 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" 10124 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" 10125 10126 else 10127 ld_shlibs=no 10128 fi 10129 10130 ;; 10131 10132 dgux*) 10133 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10134 hardcode_libdir_flag_spec='-L$libdir' 10135 hardcode_shlibpath_var=no 10136 ;; 10137 10138 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 10139 # support. Future versions do this automatically, but an explicit c++rt0.o 10140 # does not break anything, and helps significantly (at the cost of a little 10141 # extra space). 10142 freebsd2.2*) 10143 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 10144 hardcode_libdir_flag_spec='-R$libdir' 10145 hardcode_direct=yes 10146 hardcode_shlibpath_var=no 10147 ;; 10148 10149 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 10150 freebsd2.*) 10151 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10152 hardcode_direct=yes 10153 hardcode_minus_L=yes 10154 hardcode_shlibpath_var=no 10155 ;; 10156 10157 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 10158 freebsd* | dragonfly*) 10159 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10160 hardcode_libdir_flag_spec='-R$libdir' 10161 hardcode_direct=yes 10162 hardcode_shlibpath_var=no 10163 ;; 10164 10165 hpux9*) 10166 if test yes = "$GCC"; then 10167 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' 10168 else 10169 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' 10170 fi 10171 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10172 hardcode_libdir_separator=: 10173 hardcode_direct=yes 10174 10175 # hardcode_minus_L: Not really in the search PATH, 10176 # but as the default location of the library. 10177 hardcode_minus_L=yes 10178 export_dynamic_flag_spec='$wl-E' 10179 ;; 10180 10181 hpux10*) 10182 if test yes,no = "$GCC,$with_gnu_ld"; then 10183 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10184 else 10185 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10186 fi 10187 if test no = "$with_gnu_ld"; then 10188 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10189 hardcode_libdir_separator=: 10190 hardcode_direct=yes 10191 hardcode_direct_absolute=yes 10192 export_dynamic_flag_spec='$wl-E' 10193 # hardcode_minus_L: Not really in the search PATH, 10194 # but as the default location of the library. 10195 hardcode_minus_L=yes 10196 fi 10197 ;; 10198 10199 hpux11*) 10200 if test yes,no = "$GCC,$with_gnu_ld"; then 10201 case $host_cpu in 10202 hppa*64*) 10203 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10204 ;; 10205 ia64*) 10206 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10207 ;; 10208 *) 10209 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10210 ;; 10211 esac 10212 else 10213 case $host_cpu in 10214 hppa*64*) 10215 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10216 ;; 10217 ia64*) 10218 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10219 ;; 10220 *) 10221 10222 # Older versions of the 11.00 compiler do not understand -b yet 10223 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 10224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 10225$as_echo_n "checking if $CC understands -b... " >&6; } 10226if ${lt_cv_prog_compiler__b+:} false; then : 10227 $as_echo_n "(cached) " >&6 10228else 10229 lt_cv_prog_compiler__b=no 10230 save_LDFLAGS=$LDFLAGS 10231 LDFLAGS="$LDFLAGS -b" 10232 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10233 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10234 # The linker can only warn and ignore the option if not recognized 10235 # So say no if there are warnings 10236 if test -s conftest.err; then 10237 # Append any errors to the config.log. 10238 cat conftest.err 1>&5 10239 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10240 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10241 if diff conftest.exp conftest.er2 >/dev/null; then 10242 lt_cv_prog_compiler__b=yes 10243 fi 10244 else 10245 lt_cv_prog_compiler__b=yes 10246 fi 10247 fi 10248 $RM -r conftest* 10249 LDFLAGS=$save_LDFLAGS 10250 10251fi 10252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 10253$as_echo "$lt_cv_prog_compiler__b" >&6; } 10254 10255if test yes = "$lt_cv_prog_compiler__b"; then 10256 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10257else 10258 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10259fi 10260 10261 ;; 10262 esac 10263 fi 10264 if test no = "$with_gnu_ld"; then 10265 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10266 hardcode_libdir_separator=: 10267 10268 case $host_cpu in 10269 hppa*64*|ia64*) 10270 hardcode_direct=no 10271 hardcode_shlibpath_var=no 10272 ;; 10273 *) 10274 hardcode_direct=yes 10275 hardcode_direct_absolute=yes 10276 export_dynamic_flag_spec='$wl-E' 10277 10278 # hardcode_minus_L: Not really in the search PATH, 10279 # but as the default location of the library. 10280 hardcode_minus_L=yes 10281 ;; 10282 esac 10283 fi 10284 ;; 10285 10286 irix5* | irix6* | nonstopux*) 10287 if test yes = "$GCC"; then 10288 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' 10289 # Try to use the -exported_symbol ld option, if it does not 10290 # work, assume that -exports_file does not work either and 10291 # implicitly export all symbols. 10292 # This should be the same for all languages, so no per-tag cache variable. 10293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 10294$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 10295if ${lt_cv_irix_exported_symbol+:} false; then : 10296 $as_echo_n "(cached) " >&6 10297else 10298 save_LDFLAGS=$LDFLAGS 10299 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 10300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10301/* end confdefs.h. */ 10302int foo (void) { return 0; } 10303_ACEOF 10304if ac_fn_c_try_link "$LINENO"; then : 10305 lt_cv_irix_exported_symbol=yes 10306else 10307 lt_cv_irix_exported_symbol=no 10308fi 10309rm -f core conftest.err conftest.$ac_objext \ 10310 conftest$ac_exeext conftest.$ac_ext 10311 LDFLAGS=$save_LDFLAGS 10312fi 10313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 10314$as_echo "$lt_cv_irix_exported_symbol" >&6; } 10315 if test yes = "$lt_cv_irix_exported_symbol"; then 10316 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' 10317 fi 10318 else 10319 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' 10320 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' 10321 fi 10322 archive_cmds_need_lc='no' 10323 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10324 hardcode_libdir_separator=: 10325 inherit_rpath=yes 10326 link_all_deplibs=yes 10327 ;; 10328 10329 linux*) 10330 case $cc_basename in 10331 tcc*) 10332 # Fabrice Bellard et al's Tiny C Compiler 10333 ld_shlibs=yes 10334 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10335 ;; 10336 esac 10337 ;; 10338 10339 netbsd*) 10340 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10341 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10342 else 10343 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10344 fi 10345 hardcode_libdir_flag_spec='-R$libdir' 10346 hardcode_direct=yes 10347 hardcode_shlibpath_var=no 10348 ;; 10349 10350 newsos6) 10351 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10352 hardcode_direct=yes 10353 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10354 hardcode_libdir_separator=: 10355 hardcode_shlibpath_var=no 10356 ;; 10357 10358 *nto* | *qnx*) 10359 ;; 10360 10361 openbsd* | bitrig*) 10362 if test -f /usr/libexec/ld.so; then 10363 hardcode_direct=yes 10364 hardcode_shlibpath_var=no 10365 hardcode_direct_absolute=yes 10366 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 10367 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10368 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 10369 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10370 export_dynamic_flag_spec='$wl-E' 10371 else 10372 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10373 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10374 fi 10375 else 10376 ld_shlibs=no 10377 fi 10378 ;; 10379 10380 os2*) 10381 hardcode_libdir_flag_spec='-L$libdir' 10382 hardcode_minus_L=yes 10383 allow_undefined_flag=unsupported 10384 shrext_cmds=.dll 10385 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10386 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10387 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10388 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10389 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10390 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10391 emximp -o $lib $output_objdir/$libname.def' 10392 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10393 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10394 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10395 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10396 prefix_cmds="$SED"~ 10397 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10398 prefix_cmds="$prefix_cmds -e 1d"; 10399 fi~ 10400 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10401 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10402 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10403 emximp -o $lib $output_objdir/$libname.def' 10404 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10405 enable_shared_with_static_runtimes=yes 10406 ;; 10407 10408 osf3*) 10409 if test yes = "$GCC"; then 10410 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10411 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' 10412 else 10413 allow_undefined_flag=' -expect_unresolved \*' 10414 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' 10415 fi 10416 archive_cmds_need_lc='no' 10417 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10418 hardcode_libdir_separator=: 10419 ;; 10420 10421 osf4* | osf5*) # as osf3* with the addition of -msym flag 10422 if test yes = "$GCC"; then 10423 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10424 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' 10425 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10426 else 10427 allow_undefined_flag=' -expect_unresolved \*' 10428 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' 10429 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~ 10430 $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' 10431 10432 # Both c and cxx compiler support -rpath directly 10433 hardcode_libdir_flag_spec='-rpath $libdir' 10434 fi 10435 archive_cmds_need_lc='no' 10436 hardcode_libdir_separator=: 10437 ;; 10438 10439 solaris*) 10440 no_undefined_flag=' -z defs' 10441 if test yes = "$GCC"; then 10442 wlarc='$wl' 10443 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10444 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10445 $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' 10446 else 10447 case `$CC -V 2>&1` in 10448 *"Compilers 5.0"*) 10449 wlarc='' 10450 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 10451 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10452 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10453 ;; 10454 *) 10455 wlarc='$wl' 10456 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10457 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10458 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10459 ;; 10460 esac 10461 fi 10462 hardcode_libdir_flag_spec='-R$libdir' 10463 hardcode_shlibpath_var=no 10464 case $host_os in 10465 solaris2.[0-5] | solaris2.[0-5].*) ;; 10466 *) 10467 # The compiler driver will combine and reorder linker options, 10468 # but understands '-z linker_flag'. GCC discards it without '$wl', 10469 # but is careful enough not to reorder. 10470 # Supported since Solaris 2.6 (maybe 2.5.1?) 10471 if test yes = "$GCC"; then 10472 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 10473 else 10474 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10475 fi 10476 ;; 10477 esac 10478 link_all_deplibs=yes 10479 ;; 10480 10481 sunos4*) 10482 if test sequent = "$host_vendor"; then 10483 # Use $CC to link under sequent, because it throws in some extra .o 10484 # files that make .init and .fini sections work. 10485 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10486 else 10487 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10488 fi 10489 hardcode_libdir_flag_spec='-L$libdir' 10490 hardcode_direct=yes 10491 hardcode_minus_L=yes 10492 hardcode_shlibpath_var=no 10493 ;; 10494 10495 sysv4) 10496 case $host_vendor in 10497 sni) 10498 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10499 hardcode_direct=yes # is this really true??? 10500 ;; 10501 siemens) 10502 ## LD is ld it makes a PLAMLIB 10503 ## CC just makes a GrossModule. 10504 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10505 reload_cmds='$CC -r -o $output$reload_objs' 10506 hardcode_direct=no 10507 ;; 10508 motorola) 10509 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10510 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10511 ;; 10512 esac 10513 runpath_var='LD_RUN_PATH' 10514 hardcode_shlibpath_var=no 10515 ;; 10516 10517 sysv4.3*) 10518 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10519 hardcode_shlibpath_var=no 10520 export_dynamic_flag_spec='-Bexport' 10521 ;; 10522 10523 sysv4*MP*) 10524 if test -d /usr/nec; then 10525 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10526 hardcode_shlibpath_var=no 10527 runpath_var=LD_RUN_PATH 10528 hardcode_runpath_var=yes 10529 ld_shlibs=yes 10530 fi 10531 ;; 10532 10533 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10534 no_undefined_flag='$wl-z,text' 10535 archive_cmds_need_lc=no 10536 hardcode_shlibpath_var=no 10537 runpath_var='LD_RUN_PATH' 10538 10539 if test yes = "$GCC"; then 10540 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10541 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10542 else 10543 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10544 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10545 fi 10546 ;; 10547 10548 sysv5* | sco3.2v5* | sco5v6*) 10549 # Note: We CANNOT use -z defs as we might desire, because we do not 10550 # link with -lc, and that would cause any symbols used from libc to 10551 # always be unresolved, which means just about no library would 10552 # ever link correctly. If we're not using GNU ld we use -z text 10553 # though, which does catch some bad symbols but isn't as heavy-handed 10554 # as -z defs. 10555 no_undefined_flag='$wl-z,text' 10556 allow_undefined_flag='$wl-z,nodefs' 10557 archive_cmds_need_lc=no 10558 hardcode_shlibpath_var=no 10559 hardcode_libdir_flag_spec='$wl-R,$libdir' 10560 hardcode_libdir_separator=':' 10561 link_all_deplibs=yes 10562 export_dynamic_flag_spec='$wl-Bexport' 10563 runpath_var='LD_RUN_PATH' 10564 10565 if test yes = "$GCC"; then 10566 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10567 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10568 else 10569 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10570 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10571 fi 10572 ;; 10573 10574 uts4*) 10575 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10576 hardcode_libdir_flag_spec='-L$libdir' 10577 hardcode_shlibpath_var=no 10578 ;; 10579 10580 *) 10581 ld_shlibs=no 10582 ;; 10583 esac 10584 10585 if test sni = "$host_vendor"; then 10586 case $host in 10587 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10588 export_dynamic_flag_spec='$wl-Blargedynsym' 10589 ;; 10590 esac 10591 fi 10592 fi 10593 10594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10595$as_echo "$ld_shlibs" >&6; } 10596test no = "$ld_shlibs" && can_build_shared=no 10597 10598with_gnu_ld=$with_gnu_ld 10599 10600 10601 10602 10603 10604 10605 10606 10607 10608 10609 10610 10611 10612 10613 10614# 10615# Do we need to explicitly link libc? 10616# 10617case "x$archive_cmds_need_lc" in 10618x|xyes) 10619 # Assume -lc should be added 10620 archive_cmds_need_lc=yes 10621 10622 if test yes,yes = "$GCC,$enable_shared"; then 10623 case $archive_cmds in 10624 *'~'*) 10625 # FIXME: we may have to deal with multi-command sequences. 10626 ;; 10627 '$CC '*) 10628 # Test whether the compiler implicitly links with -lc since on some 10629 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10630 # to ld, don't add -lc before -lgcc. 10631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10632$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 10633if ${lt_cv_archive_cmds_need_lc+:} false; then : 10634 $as_echo_n "(cached) " >&6 10635else 10636 $RM conftest* 10637 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10638 10639 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10640 (eval $ac_compile) 2>&5 10641 ac_status=$? 10642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10643 test $ac_status = 0; } 2>conftest.err; then 10644 soname=conftest 10645 lib=conftest 10646 libobjs=conftest.$ac_objext 10647 deplibs= 10648 wl=$lt_prog_compiler_wl 10649 pic_flag=$lt_prog_compiler_pic 10650 compiler_flags=-v 10651 linker_flags=-v 10652 verstring= 10653 output_objdir=. 10654 libname=conftest 10655 lt_save_allow_undefined_flag=$allow_undefined_flag 10656 allow_undefined_flag= 10657 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10658 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10659 ac_status=$? 10660 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10661 test $ac_status = 0; } 10662 then 10663 lt_cv_archive_cmds_need_lc=no 10664 else 10665 lt_cv_archive_cmds_need_lc=yes 10666 fi 10667 allow_undefined_flag=$lt_save_allow_undefined_flag 10668 else 10669 cat conftest.err 1>&5 10670 fi 10671 $RM conftest* 10672 10673fi 10674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 10675$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 10676 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 10677 ;; 10678 esac 10679 fi 10680 ;; 10681esac 10682 10683 10684 10685 10686 10687 10688 10689 10690 10691 10692 10693 10694 10695 10696 10697 10698 10699 10700 10701 10702 10703 10704 10705 10706 10707 10708 10709 10710 10711 10712 10713 10714 10715 10716 10717 10718 10719 10720 10721 10722 10723 10724 10725 10726 10727 10728 10729 10730 10731 10732 10733 10734 10735 10736 10737 10738 10739 10740 10741 10742 10743 10744 10745 10746 10747 10748 10749 10750 10751 10752 10753 10754 10755 10756 10757 10758 10759 10760 10761 10762 10763 10764 10765 10766 10767 10768 10769 10770 10771 10772 10773 10774 10775 10776 10777 10778 10779 10780 10781 10782 10783 10784 10785 10786 10787 10788 10789 10790 10791 10792 10793 10794 10795 10796 10797 10798 10799 10800 10801 10802 10803 10804 10805 10806 10807 10808 10809 10810 10811 10812 10813 10814 10815 10816 10817 10818 10819 10820 10821 10822 10823 10824 10825 10826 10827 10828 10829 10830 10831 10832 10833 10834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 10835$as_echo_n "checking dynamic linker characteristics... " >&6; } 10836 10837if test yes = "$GCC"; then 10838 case $host_os in 10839 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 10840 *) lt_awk_arg='/^libraries:/' ;; 10841 esac 10842 case $host_os in 10843 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 10844 *) lt_sed_strip_eq='s|=/|/|g' ;; 10845 esac 10846 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 10847 case $lt_search_path_spec in 10848 *\;*) 10849 # if the path contains ";" then we assume it to be the separator 10850 # otherwise default to the standard path separator (i.e. ":") - it is 10851 # assumed that no part of a normal pathname contains ";" but that should 10852 # okay in the real world where ";" in dirpaths is itself problematic. 10853 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 10854 ;; 10855 *) 10856 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 10857 ;; 10858 esac 10859 # Ok, now we have the path, separated by spaces, we can step through it 10860 # and add multilib dir if necessary... 10861 lt_tmp_lt_search_path_spec= 10862 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10863 # ...but if some path component already ends with the multilib dir we assume 10864 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 10865 case "$lt_multi_os_dir; $lt_search_path_spec " in 10866 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 10867 lt_multi_os_dir= 10868 ;; 10869 esac 10870 for lt_sys_path in $lt_search_path_spec; do 10871 if test -d "$lt_sys_path$lt_multi_os_dir"; then 10872 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 10873 elif test -n "$lt_multi_os_dir"; then 10874 test -d "$lt_sys_path" && \ 10875 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10876 fi 10877 done 10878 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 10879BEGIN {RS = " "; FS = "/|\n";} { 10880 lt_foo = ""; 10881 lt_count = 0; 10882 for (lt_i = NF; lt_i > 0; lt_i--) { 10883 if ($lt_i != "" && $lt_i != ".") { 10884 if ($lt_i == "..") { 10885 lt_count++; 10886 } else { 10887 if (lt_count == 0) { 10888 lt_foo = "/" $lt_i lt_foo; 10889 } else { 10890 lt_count--; 10891 } 10892 } 10893 } 10894 } 10895 if (lt_foo != "") { lt_freq[lt_foo]++; } 10896 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10897}'` 10898 # AWK program above erroneously prepends '/' to C:/dos/paths 10899 # for these hosts. 10900 case $host_os in 10901 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 10902 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 10903 esac 10904 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 10905else 10906 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10907fi 10908library_names_spec= 10909libname_spec='lib$name' 10910soname_spec= 10911shrext_cmds=.so 10912postinstall_cmds= 10913postuninstall_cmds= 10914finish_cmds= 10915finish_eval= 10916shlibpath_var= 10917shlibpath_overrides_runpath=unknown 10918version_type=none 10919dynamic_linker="$host_os ld.so" 10920sys_lib_dlsearch_path_spec="/lib /usr/lib" 10921need_lib_prefix=unknown 10922hardcode_into_libs=no 10923 10924# when you set need_version to no, make sure it does not cause -set_version 10925# flags to be left without arguments 10926need_version=unknown 10927 10928 10929 10930case $host_os in 10931aix3*) 10932 version_type=linux # correct to gnu/linux during the next big refactor 10933 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 10934 shlibpath_var=LIBPATH 10935 10936 # AIX 3 has no versioning support, so we append a major version to the name. 10937 soname_spec='$libname$release$shared_ext$major' 10938 ;; 10939 10940aix[4-9]*) 10941 version_type=linux # correct to gnu/linux during the next big refactor 10942 need_lib_prefix=no 10943 need_version=no 10944 hardcode_into_libs=yes 10945 if test ia64 = "$host_cpu"; then 10946 # AIX 5 supports IA64 10947 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 10948 shlibpath_var=LD_LIBRARY_PATH 10949 else 10950 # With GCC up to 2.95.x, collect2 would create an import file 10951 # for dependence libraries. The import file would start with 10952 # the line '#! .'. This would cause the generated library to 10953 # depend on '.', always an invalid library. This was fixed in 10954 # development snapshots of GCC prior to 3.0. 10955 case $host_os in 10956 aix4 | aix4.[01] | aix4.[01].*) 10957 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10958 echo ' yes ' 10959 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 10960 : 10961 else 10962 can_build_shared=no 10963 fi 10964 ;; 10965 esac 10966 # Using Import Files as archive members, it is possible to support 10967 # filename-based versioning of shared library archives on AIX. While 10968 # this would work for both with and without runtime linking, it will 10969 # prevent static linking of such archives. So we do filename-based 10970 # shared library versioning with .so extension only, which is used 10971 # when both runtime linking and shared linking is enabled. 10972 # Unfortunately, runtime linking may impact performance, so we do 10973 # not want this to be the default eventually. Also, we use the 10974 # versioned .so libs for executables only if there is the -brtl 10975 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 10976 # To allow for filename-based versioning support, we need to create 10977 # libNAME.so.V as an archive file, containing: 10978 # *) an Import File, referring to the versioned filename of the 10979 # archive as well as the shared archive member, telling the 10980 # bitwidth (32 or 64) of that shared object, and providing the 10981 # list of exported symbols of that shared object, eventually 10982 # decorated with the 'weak' keyword 10983 # *) the shared object with the F_LOADONLY flag set, to really avoid 10984 # it being seen by the linker. 10985 # At run time we better use the real file rather than another symlink, 10986 # but for link time we create the symlink libNAME.so -> libNAME.so.V 10987 10988 case $with_aix_soname,$aix_use_runtimelinking in 10989 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 10990 # soname into executable. Probably we can add versioning support to 10991 # collect2, so additional links can be useful in future. 10992 aix,yes) # traditional libtool 10993 dynamic_linker='AIX unversionable lib.so' 10994 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10995 # instead of lib<name>.a to let people know that these are not 10996 # typical AIX shared libraries. 10997 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10998 ;; 10999 aix,no) # traditional AIX only 11000 dynamic_linker='AIX lib.a(lib.so.V)' 11001 # We preserve .a as extension for shared libraries through AIX4.2 11002 # and later when we are not doing run time linking. 11003 library_names_spec='$libname$release.a $libname.a' 11004 soname_spec='$libname$release$shared_ext$major' 11005 ;; 11006 svr4,*) # full svr4 only 11007 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 11008 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11009 # We do not specify a path in Import Files, so LIBPATH fires. 11010 shlibpath_overrides_runpath=yes 11011 ;; 11012 *,yes) # both, prefer svr4 11013 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 11014 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11015 # unpreferred sharedlib libNAME.a needs extra handling 11016 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"' 11017 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"' 11018 # We do not specify a path in Import Files, so LIBPATH fires. 11019 shlibpath_overrides_runpath=yes 11020 ;; 11021 *,no) # both, prefer aix 11022 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 11023 library_names_spec='$libname$release.a $libname.a' 11024 soname_spec='$libname$release$shared_ext$major' 11025 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 11026 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)' 11027 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"' 11028 ;; 11029 esac 11030 shlibpath_var=LIBPATH 11031 fi 11032 ;; 11033 11034amigaos*) 11035 case $host_cpu in 11036 powerpc) 11037 # Since July 2007 AmigaOS4 officially supports .so libraries. 11038 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 11039 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11040 ;; 11041 m68k) 11042 library_names_spec='$libname.ixlibrary $libname.a' 11043 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11044 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' 11045 ;; 11046 esac 11047 ;; 11048 11049beos*) 11050 library_names_spec='$libname$shared_ext' 11051 dynamic_linker="$host_os ld.so" 11052 shlibpath_var=LIBRARY_PATH 11053 ;; 11054 11055bsdi[45]*) 11056 version_type=linux # correct to gnu/linux during the next big refactor 11057 need_version=no 11058 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11059 soname_spec='$libname$release$shared_ext$major' 11060 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11061 shlibpath_var=LD_LIBRARY_PATH 11062 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11063 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11064 # the default ld.so.conf also contains /usr/contrib/lib and 11065 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11066 # libtool to hard-code these into programs 11067 ;; 11068 11069cygwin* | mingw* | pw32* | cegcc*) 11070 version_type=windows 11071 shrext_cmds=.dll 11072 need_version=no 11073 need_lib_prefix=no 11074 11075 case $GCC,$cc_basename in 11076 yes,*) 11077 # gcc 11078 library_names_spec='$libname.dll.a' 11079 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11080 postinstall_cmds='base_file=`basename \$file`~ 11081 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11082 dldir=$destdir/`dirname \$dlpath`~ 11083 test -d \$dldir || mkdir -p \$dldir~ 11084 $install_prog $dir/$dlname \$dldir/$dlname~ 11085 chmod a+x \$dldir/$dlname~ 11086 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11087 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11088 fi' 11089 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11090 dlpath=$dir/\$dldll~ 11091 $RM \$dlpath' 11092 shlibpath_overrides_runpath=yes 11093 11094 case $host_os in 11095 cygwin*) 11096 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11097 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11098 11099 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 11100 ;; 11101 mingw* | cegcc*) 11102 # MinGW DLLs use traditional 'lib' prefix 11103 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11104 ;; 11105 pw32*) 11106 # pw32 DLLs use 'pw' prefix rather than 'lib' 11107 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11108 ;; 11109 esac 11110 dynamic_linker='Win32 ld.exe' 11111 ;; 11112 11113 *,cl*) 11114 # Native MSVC 11115 libname_spec='$name' 11116 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11117 library_names_spec='$libname.dll.lib' 11118 11119 case $build_os in 11120 mingw*) 11121 sys_lib_search_path_spec= 11122 lt_save_ifs=$IFS 11123 IFS=';' 11124 for lt_path in $LIB 11125 do 11126 IFS=$lt_save_ifs 11127 # Let DOS variable expansion print the short 8.3 style file name. 11128 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 11129 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 11130 done 11131 IFS=$lt_save_ifs 11132 # Convert to MSYS style. 11133 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 11134 ;; 11135 cygwin*) 11136 # Convert to unix form, then to dos form, then back to unix form 11137 # but this time dos style (no spaces!) so that the unix form looks 11138 # like /cygdrive/c/PROGRA~1:/cygdr... 11139 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 11140 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 11141 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11142 ;; 11143 *) 11144 sys_lib_search_path_spec=$LIB 11145 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 11146 # It is most probably a Windows format PATH. 11147 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11148 else 11149 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11150 fi 11151 # FIXME: find the short name or the path components, as spaces are 11152 # common. (e.g. "Program Files" -> "PROGRA~1") 11153 ;; 11154 esac 11155 11156 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11157 postinstall_cmds='base_file=`basename \$file`~ 11158 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11159 dldir=$destdir/`dirname \$dlpath`~ 11160 test -d \$dldir || mkdir -p \$dldir~ 11161 $install_prog $dir/$dlname \$dldir/$dlname' 11162 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11163 dlpath=$dir/\$dldll~ 11164 $RM \$dlpath' 11165 shlibpath_overrides_runpath=yes 11166 dynamic_linker='Win32 link.exe' 11167 ;; 11168 11169 *) 11170 # Assume MSVC wrapper 11171 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 11172 dynamic_linker='Win32 ld.exe' 11173 ;; 11174 esac 11175 # FIXME: first we should search . and the directory the executable is in 11176 shlibpath_var=PATH 11177 ;; 11178 11179darwin* | rhapsody*) 11180 dynamic_linker="$host_os dyld" 11181 version_type=darwin 11182 need_lib_prefix=no 11183 need_version=no 11184 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 11185 soname_spec='$libname$release$major$shared_ext' 11186 shlibpath_overrides_runpath=yes 11187 shlibpath_var=DYLD_LIBRARY_PATH 11188 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 11189 11190 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 11191 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11192 ;; 11193 11194dgux*) 11195 version_type=linux # correct to gnu/linux during the next big refactor 11196 need_lib_prefix=no 11197 need_version=no 11198 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11199 soname_spec='$libname$release$shared_ext$major' 11200 shlibpath_var=LD_LIBRARY_PATH 11201 ;; 11202 11203freebsd* | dragonfly*) 11204 # DragonFly does not have aout. When/if they implement a new 11205 # versioning mechanism, adjust this. 11206 if test -x /usr/bin/objformat; then 11207 objformat=`/usr/bin/objformat` 11208 else 11209 case $host_os in 11210 freebsd[23].*) objformat=aout ;; 11211 *) objformat=elf ;; 11212 esac 11213 fi 11214 version_type=freebsd-$objformat 11215 case $version_type in 11216 freebsd-elf*) 11217 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11218 soname_spec='$libname$release$shared_ext$major' 11219 need_version=no 11220 need_lib_prefix=no 11221 ;; 11222 freebsd-*) 11223 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11224 need_version=yes 11225 ;; 11226 esac 11227 shlibpath_var=LD_LIBRARY_PATH 11228 case $host_os in 11229 freebsd2.*) 11230 shlibpath_overrides_runpath=yes 11231 ;; 11232 freebsd3.[01]* | freebsdelf3.[01]*) 11233 shlibpath_overrides_runpath=yes 11234 hardcode_into_libs=yes 11235 ;; 11236 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 11237 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 11238 shlibpath_overrides_runpath=no 11239 hardcode_into_libs=yes 11240 ;; 11241 *) # from 4.6 on, and DragonFly 11242 shlibpath_overrides_runpath=yes 11243 hardcode_into_libs=yes 11244 ;; 11245 esac 11246 ;; 11247 11248haiku*) 11249 version_type=linux # correct to gnu/linux during the next big refactor 11250 need_lib_prefix=no 11251 need_version=no 11252 dynamic_linker="$host_os runtime_loader" 11253 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11254 soname_spec='$libname$release$shared_ext$major' 11255 shlibpath_var=LIBRARY_PATH 11256 shlibpath_overrides_runpath=no 11257 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 11258 hardcode_into_libs=yes 11259 ;; 11260 11261hpux9* | hpux10* | hpux11*) 11262 # Give a soname corresponding to the major version so that dld.sl refuses to 11263 # link against other versions. 11264 version_type=sunos 11265 need_lib_prefix=no 11266 need_version=no 11267 case $host_cpu in 11268 ia64*) 11269 shrext_cmds='.so' 11270 hardcode_into_libs=yes 11271 dynamic_linker="$host_os dld.so" 11272 shlibpath_var=LD_LIBRARY_PATH 11273 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11274 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11275 soname_spec='$libname$release$shared_ext$major' 11276 if test 32 = "$HPUX_IA64_MODE"; then 11277 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11278 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 11279 else 11280 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11281 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 11282 fi 11283 ;; 11284 hppa*64*) 11285 shrext_cmds='.sl' 11286 hardcode_into_libs=yes 11287 dynamic_linker="$host_os dld.sl" 11288 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11289 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11290 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11291 soname_spec='$libname$release$shared_ext$major' 11292 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11293 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11294 ;; 11295 *) 11296 shrext_cmds='.sl' 11297 dynamic_linker="$host_os dld.sl" 11298 shlibpath_var=SHLIB_PATH 11299 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11300 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11301 soname_spec='$libname$release$shared_ext$major' 11302 ;; 11303 esac 11304 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 11305 postinstall_cmds='chmod 555 $lib' 11306 # or fails outright, so override atomically: 11307 install_override_mode=555 11308 ;; 11309 11310interix[3-9]*) 11311 version_type=linux # correct to gnu/linux during the next big refactor 11312 need_lib_prefix=no 11313 need_version=no 11314 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11315 soname_spec='$libname$release$shared_ext$major' 11316 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 11317 shlibpath_var=LD_LIBRARY_PATH 11318 shlibpath_overrides_runpath=no 11319 hardcode_into_libs=yes 11320 ;; 11321 11322irix5* | irix6* | nonstopux*) 11323 case $host_os in 11324 nonstopux*) version_type=nonstopux ;; 11325 *) 11326 if test yes = "$lt_cv_prog_gnu_ld"; then 11327 version_type=linux # correct to gnu/linux during the next big refactor 11328 else 11329 version_type=irix 11330 fi ;; 11331 esac 11332 need_lib_prefix=no 11333 need_version=no 11334 soname_spec='$libname$release$shared_ext$major' 11335 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 11336 case $host_os in 11337 irix5* | nonstopux*) 11338 libsuff= shlibsuff= 11339 ;; 11340 *) 11341 case $LD in # libtool.m4 will add one of these switches to LD 11342 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11343 libsuff= shlibsuff= libmagic=32-bit;; 11344 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11345 libsuff=32 shlibsuff=N32 libmagic=N32;; 11346 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11347 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11348 *) libsuff= shlibsuff= libmagic=never-match;; 11349 esac 11350 ;; 11351 esac 11352 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11353 shlibpath_overrides_runpath=no 11354 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 11355 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 11356 hardcode_into_libs=yes 11357 ;; 11358 11359# No shared lib support for Linux oldld, aout, or coff. 11360linux*oldld* | linux*aout* | linux*coff*) 11361 dynamic_linker=no 11362 ;; 11363 11364linux*android*) 11365 version_type=none # Android doesn't support versioned libraries. 11366 need_lib_prefix=no 11367 need_version=no 11368 library_names_spec='$libname$release$shared_ext' 11369 soname_spec='$libname$release$shared_ext' 11370 finish_cmds= 11371 shlibpath_var=LD_LIBRARY_PATH 11372 shlibpath_overrides_runpath=yes 11373 11374 # This implies no fast_install, which is unacceptable. 11375 # Some rework will be needed to allow for fast_install 11376 # before this can be enabled. 11377 hardcode_into_libs=yes 11378 11379 dynamic_linker='Android linker' 11380 # Don't embed -rpath directories since the linker doesn't support them. 11381 hardcode_libdir_flag_spec='-L$libdir' 11382 ;; 11383 11384# This must be glibc/ELF. 11385linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 11386 version_type=linux # correct to gnu/linux during the next big refactor 11387 need_lib_prefix=no 11388 need_version=no 11389 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11390 soname_spec='$libname$release$shared_ext$major' 11391 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11392 shlibpath_var=LD_LIBRARY_PATH 11393 shlibpath_overrides_runpath=no 11394 11395 # Some binutils ld are patched to set DT_RUNPATH 11396 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 11397 $as_echo_n "(cached) " >&6 11398else 11399 lt_cv_shlibpath_overrides_runpath=no 11400 save_LDFLAGS=$LDFLAGS 11401 save_libdir=$libdir 11402 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 11403 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 11404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11405/* end confdefs.h. */ 11406 11407int 11408main () 11409{ 11410 11411 ; 11412 return 0; 11413} 11414_ACEOF 11415if ac_fn_c_try_link "$LINENO"; then : 11416 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 11417 lt_cv_shlibpath_overrides_runpath=yes 11418fi 11419fi 11420rm -f core conftest.err conftest.$ac_objext \ 11421 conftest$ac_exeext conftest.$ac_ext 11422 LDFLAGS=$save_LDFLAGS 11423 libdir=$save_libdir 11424 11425fi 11426 11427 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 11428 11429 # This implies no fast_install, which is unacceptable. 11430 # Some rework will be needed to allow for fast_install 11431 # before this can be enabled. 11432 hardcode_into_libs=yes 11433 11434 # Ideally, we could use ldconfig to report *all* directores which are 11435 # searched for libraries, however this is still not possible. Aside from not 11436 # being certain /sbin/ldconfig is available, command 11437 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 11438 # even though it is searched at run-time. Try to do the best guess by 11439 # appending ld.so.conf contents (and includes) to the search path. 11440 if test -f /etc/ld.so.conf; then 11441 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' ' '` 11442 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 11443 fi 11444 11445 # We used to test for /lib/ld.so.1 and disable shared libraries on 11446 # powerpc, because MkLinux only supported shared libraries with the 11447 # GNU dynamic linker. Since this was broken with cross compilers, 11448 # most powerpc-linux boxes support dynamic linking these days and 11449 # people can always --disable-shared, the test was removed, and we 11450 # assume the GNU/Linux dynamic linker is in use. 11451 dynamic_linker='GNU/Linux ld.so' 11452 ;; 11453 11454netbsd*) 11455 version_type=sunos 11456 need_lib_prefix=no 11457 need_version=no 11458 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11459 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11460 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11461 dynamic_linker='NetBSD (a.out) ld.so' 11462 else 11463 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11464 soname_spec='$libname$release$shared_ext$major' 11465 dynamic_linker='NetBSD ld.elf_so' 11466 fi 11467 shlibpath_var=LD_LIBRARY_PATH 11468 shlibpath_overrides_runpath=yes 11469 hardcode_into_libs=yes 11470 ;; 11471 11472newsos6) 11473 version_type=linux # correct to gnu/linux during the next big refactor 11474 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11475 shlibpath_var=LD_LIBRARY_PATH 11476 shlibpath_overrides_runpath=yes 11477 ;; 11478 11479*nto* | *qnx*) 11480 version_type=qnx 11481 need_lib_prefix=no 11482 need_version=no 11483 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11484 soname_spec='$libname$release$shared_ext$major' 11485 shlibpath_var=LD_LIBRARY_PATH 11486 shlibpath_overrides_runpath=no 11487 hardcode_into_libs=yes 11488 dynamic_linker='ldqnx.so' 11489 ;; 11490 11491openbsd* | bitrig*) 11492 version_type=sunos 11493 sys_lib_dlsearch_path_spec=/usr/lib 11494 need_lib_prefix=no 11495 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11496 need_version=no 11497 else 11498 need_version=yes 11499 fi 11500 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11501 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11502 shlibpath_var=LD_LIBRARY_PATH 11503 shlibpath_overrides_runpath=yes 11504 ;; 11505 11506os2*) 11507 libname_spec='$name' 11508 version_type=windows 11509 shrext_cmds=.dll 11510 need_version=no 11511 need_lib_prefix=no 11512 # OS/2 can only load a DLL with a base name of 8 characters or less. 11513 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 11514 v=$($ECHO $release$versuffix | tr -d .-); 11515 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 11516 $ECHO $n$v`$shared_ext' 11517 library_names_spec='${libname}_dll.$libext' 11518 dynamic_linker='OS/2 ld.exe' 11519 shlibpath_var=BEGINLIBPATH 11520 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11521 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11522 postinstall_cmds='base_file=`basename \$file`~ 11523 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 11524 dldir=$destdir/`dirname \$dlpath`~ 11525 test -d \$dldir || mkdir -p \$dldir~ 11526 $install_prog $dir/$dlname \$dldir/$dlname~ 11527 chmod a+x \$dldir/$dlname~ 11528 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11529 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11530 fi' 11531 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 11532 dlpath=$dir/\$dldll~ 11533 $RM \$dlpath' 11534 ;; 11535 11536osf3* | osf4* | osf5*) 11537 version_type=osf 11538 need_lib_prefix=no 11539 need_version=no 11540 soname_spec='$libname$release$shared_ext$major' 11541 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11542 shlibpath_var=LD_LIBRARY_PATH 11543 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11544 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11545 ;; 11546 11547rdos*) 11548 dynamic_linker=no 11549 ;; 11550 11551solaris*) 11552 version_type=linux # correct to gnu/linux during the next big refactor 11553 need_lib_prefix=no 11554 need_version=no 11555 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11556 soname_spec='$libname$release$shared_ext$major' 11557 shlibpath_var=LD_LIBRARY_PATH 11558 shlibpath_overrides_runpath=yes 11559 hardcode_into_libs=yes 11560 # ldd complains unless libraries are executable 11561 postinstall_cmds='chmod +x $lib' 11562 ;; 11563 11564sunos4*) 11565 version_type=sunos 11566 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11567 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11568 shlibpath_var=LD_LIBRARY_PATH 11569 shlibpath_overrides_runpath=yes 11570 if test yes = "$with_gnu_ld"; then 11571 need_lib_prefix=no 11572 fi 11573 need_version=yes 11574 ;; 11575 11576sysv4 | sysv4.3*) 11577 version_type=linux # correct to gnu/linux during the next big refactor 11578 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11579 soname_spec='$libname$release$shared_ext$major' 11580 shlibpath_var=LD_LIBRARY_PATH 11581 case $host_vendor in 11582 sni) 11583 shlibpath_overrides_runpath=no 11584 need_lib_prefix=no 11585 runpath_var=LD_RUN_PATH 11586 ;; 11587 siemens) 11588 need_lib_prefix=no 11589 ;; 11590 motorola) 11591 need_lib_prefix=no 11592 need_version=no 11593 shlibpath_overrides_runpath=no 11594 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11595 ;; 11596 esac 11597 ;; 11598 11599sysv4*MP*) 11600 if test -d /usr/nec; then 11601 version_type=linux # correct to gnu/linux during the next big refactor 11602 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 11603 soname_spec='$libname$shared_ext.$major' 11604 shlibpath_var=LD_LIBRARY_PATH 11605 fi 11606 ;; 11607 11608sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11609 version_type=sco 11610 need_lib_prefix=no 11611 need_version=no 11612 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 11613 soname_spec='$libname$release$shared_ext$major' 11614 shlibpath_var=LD_LIBRARY_PATH 11615 shlibpath_overrides_runpath=yes 11616 hardcode_into_libs=yes 11617 if test yes = "$with_gnu_ld"; then 11618 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11619 else 11620 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11621 case $host_os in 11622 sco3.2v5*) 11623 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11624 ;; 11625 esac 11626 fi 11627 sys_lib_dlsearch_path_spec='/usr/lib' 11628 ;; 11629 11630tpf*) 11631 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 11632 version_type=linux # correct to gnu/linux during the next big refactor 11633 need_lib_prefix=no 11634 need_version=no 11635 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11636 shlibpath_var=LD_LIBRARY_PATH 11637 shlibpath_overrides_runpath=no 11638 hardcode_into_libs=yes 11639 ;; 11640 11641uts4*) 11642 version_type=linux # correct to gnu/linux during the next big refactor 11643 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11644 soname_spec='$libname$release$shared_ext$major' 11645 shlibpath_var=LD_LIBRARY_PATH 11646 ;; 11647 11648*) 11649 dynamic_linker=no 11650 ;; 11651esac 11652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 11653$as_echo "$dynamic_linker" >&6; } 11654test no = "$dynamic_linker" && can_build_shared=no 11655 11656variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11657if test yes = "$GCC"; then 11658 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11659fi 11660 11661if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 11662 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 11663fi 11664 11665if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 11666 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 11667fi 11668 11669# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 11670configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 11671 11672# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 11673func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 11674 11675# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 11676configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 11677 11678 11679 11680 11681 11682 11683 11684 11685 11686 11687 11688 11689 11690 11691 11692 11693 11694 11695 11696 11697 11698 11699 11700 11701 11702 11703 11704 11705 11706 11707 11708 11709 11710 11711 11712 11713 11714 11715 11716 11717 11718 11719 11720 11721 11722 11723 11724 11725 11726 11727 11728 11729 11730 11731 11732 11733 11734 11735 11736 11737 11738 11739 11740 11741 11742 11743 11744 11745 11746 11747 11748 11749 11750 11751 11752 11753 11754 11755 11756 11757 11758 11759 11760 11761 11762 11763 11764 11765 11766 11767 11768 11769 11770 11771 11772 11773 11774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 11775$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 11776hardcode_action= 11777if test -n "$hardcode_libdir_flag_spec" || 11778 test -n "$runpath_var" || 11779 test yes = "$hardcode_automatic"; then 11780 11781 # We can hardcode non-existent directories. 11782 if test no != "$hardcode_direct" && 11783 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11784 # have to relink, otherwise we might link with an installed library 11785 # when we should be linking with a yet-to-be-installed one 11786 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 11787 test no != "$hardcode_minus_L"; then 11788 # Linking always hardcodes the temporary library directory. 11789 hardcode_action=relink 11790 else 11791 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11792 hardcode_action=immediate 11793 fi 11794else 11795 # We cannot hardcode anything, or else we can only hardcode existing 11796 # directories. 11797 hardcode_action=unsupported 11798fi 11799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 11800$as_echo "$hardcode_action" >&6; } 11801 11802if test relink = "$hardcode_action" || 11803 test yes = "$inherit_rpath"; then 11804 # Fast installation is not supported 11805 enable_fast_install=no 11806elif test yes = "$shlibpath_overrides_runpath" || 11807 test no = "$enable_shared"; then 11808 # Fast installation is not necessary 11809 enable_fast_install=needless 11810fi 11811 11812 11813 11814 11815 11816 11817 if test yes != "$enable_dlopen"; then 11818 enable_dlopen=unknown 11819 enable_dlopen_self=unknown 11820 enable_dlopen_self_static=unknown 11821else 11822 lt_cv_dlopen=no 11823 lt_cv_dlopen_libs= 11824 11825 case $host_os in 11826 beos*) 11827 lt_cv_dlopen=load_add_on 11828 lt_cv_dlopen_libs= 11829 lt_cv_dlopen_self=yes 11830 ;; 11831 11832 mingw* | pw32* | cegcc*) 11833 lt_cv_dlopen=LoadLibrary 11834 lt_cv_dlopen_libs= 11835 ;; 11836 11837 cygwin*) 11838 lt_cv_dlopen=dlopen 11839 lt_cv_dlopen_libs= 11840 ;; 11841 11842 darwin*) 11843 # if libdl is installed we need to link against it 11844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11845$as_echo_n "checking for dlopen in -ldl... " >&6; } 11846if ${ac_cv_lib_dl_dlopen+:} false; then : 11847 $as_echo_n "(cached) " >&6 11848else 11849 ac_check_lib_save_LIBS=$LIBS 11850LIBS="-ldl $LIBS" 11851cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11852/* end confdefs.h. */ 11853 11854/* Override any GCC internal prototype to avoid an error. 11855 Use char because int might match the return type of a GCC 11856 builtin and then its argument prototype would still apply. */ 11857#ifdef __cplusplus 11858extern "C" 11859#endif 11860char dlopen (); 11861int 11862main () 11863{ 11864return dlopen (); 11865 ; 11866 return 0; 11867} 11868_ACEOF 11869if ac_fn_c_try_link "$LINENO"; then : 11870 ac_cv_lib_dl_dlopen=yes 11871else 11872 ac_cv_lib_dl_dlopen=no 11873fi 11874rm -f core conftest.err conftest.$ac_objext \ 11875 conftest$ac_exeext conftest.$ac_ext 11876LIBS=$ac_check_lib_save_LIBS 11877fi 11878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11879$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11880if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11881 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 11882else 11883 11884 lt_cv_dlopen=dyld 11885 lt_cv_dlopen_libs= 11886 lt_cv_dlopen_self=yes 11887 11888fi 11889 11890 ;; 11891 11892 tpf*) 11893 # Don't try to run any link tests for TPF. We know it's impossible 11894 # because TPF is a cross-compiler, and we know how we open DSOs. 11895 lt_cv_dlopen=dlopen 11896 lt_cv_dlopen_libs= 11897 lt_cv_dlopen_self=no 11898 ;; 11899 11900 *) 11901 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 11902if test "x$ac_cv_func_shl_load" = xyes; then : 11903 lt_cv_dlopen=shl_load 11904else 11905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 11906$as_echo_n "checking for shl_load in -ldld... " >&6; } 11907if ${ac_cv_lib_dld_shl_load+:} false; then : 11908 $as_echo_n "(cached) " >&6 11909else 11910 ac_check_lib_save_LIBS=$LIBS 11911LIBS="-ldld $LIBS" 11912cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11913/* end confdefs.h. */ 11914 11915/* Override any GCC internal prototype to avoid an error. 11916 Use char because int might match the return type of a GCC 11917 builtin and then its argument prototype would still apply. */ 11918#ifdef __cplusplus 11919extern "C" 11920#endif 11921char shl_load (); 11922int 11923main () 11924{ 11925return shl_load (); 11926 ; 11927 return 0; 11928} 11929_ACEOF 11930if ac_fn_c_try_link "$LINENO"; then : 11931 ac_cv_lib_dld_shl_load=yes 11932else 11933 ac_cv_lib_dld_shl_load=no 11934fi 11935rm -f core conftest.err conftest.$ac_objext \ 11936 conftest$ac_exeext conftest.$ac_ext 11937LIBS=$ac_check_lib_save_LIBS 11938fi 11939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 11940$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 11941if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 11942 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 11943else 11944 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 11945if test "x$ac_cv_func_dlopen" = xyes; then : 11946 lt_cv_dlopen=dlopen 11947else 11948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11949$as_echo_n "checking for dlopen in -ldl... " >&6; } 11950if ${ac_cv_lib_dl_dlopen+:} false; then : 11951 $as_echo_n "(cached) " >&6 11952else 11953 ac_check_lib_save_LIBS=$LIBS 11954LIBS="-ldl $LIBS" 11955cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11956/* end confdefs.h. */ 11957 11958/* Override any GCC internal prototype to avoid an error. 11959 Use char because int might match the return type of a GCC 11960 builtin and then its argument prototype would still apply. */ 11961#ifdef __cplusplus 11962extern "C" 11963#endif 11964char dlopen (); 11965int 11966main () 11967{ 11968return dlopen (); 11969 ; 11970 return 0; 11971} 11972_ACEOF 11973if ac_fn_c_try_link "$LINENO"; then : 11974 ac_cv_lib_dl_dlopen=yes 11975else 11976 ac_cv_lib_dl_dlopen=no 11977fi 11978rm -f core conftest.err conftest.$ac_objext \ 11979 conftest$ac_exeext conftest.$ac_ext 11980LIBS=$ac_check_lib_save_LIBS 11981fi 11982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11983$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11984if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11985 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 11986else 11987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 11988$as_echo_n "checking for dlopen in -lsvld... " >&6; } 11989if ${ac_cv_lib_svld_dlopen+:} false; then : 11990 $as_echo_n "(cached) " >&6 11991else 11992 ac_check_lib_save_LIBS=$LIBS 11993LIBS="-lsvld $LIBS" 11994cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11995/* end confdefs.h. */ 11996 11997/* Override any GCC internal prototype to avoid an error. 11998 Use char because int might match the return type of a GCC 11999 builtin and then its argument prototype would still apply. */ 12000#ifdef __cplusplus 12001extern "C" 12002#endif 12003char dlopen (); 12004int 12005main () 12006{ 12007return dlopen (); 12008 ; 12009 return 0; 12010} 12011_ACEOF 12012if ac_fn_c_try_link "$LINENO"; then : 12013 ac_cv_lib_svld_dlopen=yes 12014else 12015 ac_cv_lib_svld_dlopen=no 12016fi 12017rm -f core conftest.err conftest.$ac_objext \ 12018 conftest$ac_exeext conftest.$ac_ext 12019LIBS=$ac_check_lib_save_LIBS 12020fi 12021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 12022$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 12023if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 12024 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 12025else 12026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 12027$as_echo_n "checking for dld_link in -ldld... " >&6; } 12028if ${ac_cv_lib_dld_dld_link+:} false; then : 12029 $as_echo_n "(cached) " >&6 12030else 12031 ac_check_lib_save_LIBS=$LIBS 12032LIBS="-ldld $LIBS" 12033cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12034/* end confdefs.h. */ 12035 12036/* Override any GCC internal prototype to avoid an error. 12037 Use char because int might match the return type of a GCC 12038 builtin and then its argument prototype would still apply. */ 12039#ifdef __cplusplus 12040extern "C" 12041#endif 12042char dld_link (); 12043int 12044main () 12045{ 12046return dld_link (); 12047 ; 12048 return 0; 12049} 12050_ACEOF 12051if ac_fn_c_try_link "$LINENO"; then : 12052 ac_cv_lib_dld_dld_link=yes 12053else 12054 ac_cv_lib_dld_dld_link=no 12055fi 12056rm -f core conftest.err conftest.$ac_objext \ 12057 conftest$ac_exeext conftest.$ac_ext 12058LIBS=$ac_check_lib_save_LIBS 12059fi 12060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 12061$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 12062if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 12063 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 12064fi 12065 12066 12067fi 12068 12069 12070fi 12071 12072 12073fi 12074 12075 12076fi 12077 12078 12079fi 12080 12081 ;; 12082 esac 12083 12084 if test no = "$lt_cv_dlopen"; then 12085 enable_dlopen=no 12086 else 12087 enable_dlopen=yes 12088 fi 12089 12090 case $lt_cv_dlopen in 12091 dlopen) 12092 save_CPPFLAGS=$CPPFLAGS 12093 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 12094 12095 save_LDFLAGS=$LDFLAGS 12096 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 12097 12098 save_LIBS=$LIBS 12099 LIBS="$lt_cv_dlopen_libs $LIBS" 12100 12101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 12102$as_echo_n "checking whether a program can dlopen itself... " >&6; } 12103if ${lt_cv_dlopen_self+:} false; then : 12104 $as_echo_n "(cached) " >&6 12105else 12106 if test yes = "$cross_compiling"; then : 12107 lt_cv_dlopen_self=cross 12108else 12109 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12110 lt_status=$lt_dlunknown 12111 cat > conftest.$ac_ext <<_LT_EOF 12112#line $LINENO "configure" 12113#include "confdefs.h" 12114 12115#if HAVE_DLFCN_H 12116#include <dlfcn.h> 12117#endif 12118 12119#include <stdio.h> 12120 12121#ifdef RTLD_GLOBAL 12122# define LT_DLGLOBAL RTLD_GLOBAL 12123#else 12124# ifdef DL_GLOBAL 12125# define LT_DLGLOBAL DL_GLOBAL 12126# else 12127# define LT_DLGLOBAL 0 12128# endif 12129#endif 12130 12131/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12132 find out it does not work in some platform. */ 12133#ifndef LT_DLLAZY_OR_NOW 12134# ifdef RTLD_LAZY 12135# define LT_DLLAZY_OR_NOW RTLD_LAZY 12136# else 12137# ifdef DL_LAZY 12138# define LT_DLLAZY_OR_NOW DL_LAZY 12139# else 12140# ifdef RTLD_NOW 12141# define LT_DLLAZY_OR_NOW RTLD_NOW 12142# else 12143# ifdef DL_NOW 12144# define LT_DLLAZY_OR_NOW DL_NOW 12145# else 12146# define LT_DLLAZY_OR_NOW 0 12147# endif 12148# endif 12149# endif 12150# endif 12151#endif 12152 12153/* When -fvisibility=hidden is used, assume the code has been annotated 12154 correspondingly for the symbols needed. */ 12155#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12156int fnord () __attribute__((visibility("default"))); 12157#endif 12158 12159int fnord () { return 42; } 12160int main () 12161{ 12162 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12163 int status = $lt_dlunknown; 12164 12165 if (self) 12166 { 12167 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12168 else 12169 { 12170 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12171 else puts (dlerror ()); 12172 } 12173 /* dlclose (self); */ 12174 } 12175 else 12176 puts (dlerror ()); 12177 12178 return status; 12179} 12180_LT_EOF 12181 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12182 (eval $ac_link) 2>&5 12183 ac_status=$? 12184 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12185 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12186 (./conftest; exit; ) >&5 2>/dev/null 12187 lt_status=$? 12188 case x$lt_status in 12189 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 12190 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 12191 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 12192 esac 12193 else : 12194 # compilation failed 12195 lt_cv_dlopen_self=no 12196 fi 12197fi 12198rm -fr conftest* 12199 12200 12201fi 12202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 12203$as_echo "$lt_cv_dlopen_self" >&6; } 12204 12205 if test yes = "$lt_cv_dlopen_self"; then 12206 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 12207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 12208$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 12209if ${lt_cv_dlopen_self_static+:} false; then : 12210 $as_echo_n "(cached) " >&6 12211else 12212 if test yes = "$cross_compiling"; then : 12213 lt_cv_dlopen_self_static=cross 12214else 12215 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12216 lt_status=$lt_dlunknown 12217 cat > conftest.$ac_ext <<_LT_EOF 12218#line $LINENO "configure" 12219#include "confdefs.h" 12220 12221#if HAVE_DLFCN_H 12222#include <dlfcn.h> 12223#endif 12224 12225#include <stdio.h> 12226 12227#ifdef RTLD_GLOBAL 12228# define LT_DLGLOBAL RTLD_GLOBAL 12229#else 12230# ifdef DL_GLOBAL 12231# define LT_DLGLOBAL DL_GLOBAL 12232# else 12233# define LT_DLGLOBAL 0 12234# endif 12235#endif 12236 12237/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12238 find out it does not work in some platform. */ 12239#ifndef LT_DLLAZY_OR_NOW 12240# ifdef RTLD_LAZY 12241# define LT_DLLAZY_OR_NOW RTLD_LAZY 12242# else 12243# ifdef DL_LAZY 12244# define LT_DLLAZY_OR_NOW DL_LAZY 12245# else 12246# ifdef RTLD_NOW 12247# define LT_DLLAZY_OR_NOW RTLD_NOW 12248# else 12249# ifdef DL_NOW 12250# define LT_DLLAZY_OR_NOW DL_NOW 12251# else 12252# define LT_DLLAZY_OR_NOW 0 12253# endif 12254# endif 12255# endif 12256# endif 12257#endif 12258 12259/* When -fvisibility=hidden is used, assume the code has been annotated 12260 correspondingly for the symbols needed. */ 12261#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12262int fnord () __attribute__((visibility("default"))); 12263#endif 12264 12265int fnord () { return 42; } 12266int main () 12267{ 12268 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12269 int status = $lt_dlunknown; 12270 12271 if (self) 12272 { 12273 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12274 else 12275 { 12276 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12277 else puts (dlerror ()); 12278 } 12279 /* dlclose (self); */ 12280 } 12281 else 12282 puts (dlerror ()); 12283 12284 return status; 12285} 12286_LT_EOF 12287 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12288 (eval $ac_link) 2>&5 12289 ac_status=$? 12290 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12291 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12292 (./conftest; exit; ) >&5 2>/dev/null 12293 lt_status=$? 12294 case x$lt_status in 12295 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12296 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12297 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 12298 esac 12299 else : 12300 # compilation failed 12301 lt_cv_dlopen_self_static=no 12302 fi 12303fi 12304rm -fr conftest* 12305 12306 12307fi 12308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 12309$as_echo "$lt_cv_dlopen_self_static" >&6; } 12310 fi 12311 12312 CPPFLAGS=$save_CPPFLAGS 12313 LDFLAGS=$save_LDFLAGS 12314 LIBS=$save_LIBS 12315 ;; 12316 esac 12317 12318 case $lt_cv_dlopen_self in 12319 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 12320 *) enable_dlopen_self=unknown ;; 12321 esac 12322 12323 case $lt_cv_dlopen_self_static in 12324 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 12325 *) enable_dlopen_self_static=unknown ;; 12326 esac 12327fi 12328 12329 12330 12331 12332 12333 12334 12335 12336 12337 12338 12339 12340 12341 12342 12343 12344 12345striplib= 12346old_striplib= 12347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 12348$as_echo_n "checking whether stripping libraries is possible... " >&6; } 12349if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 12350 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 12351 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 12352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12353$as_echo "yes" >&6; } 12354else 12355# FIXME - insert some real tests, host_os isn't really good enough 12356 case $host_os in 12357 darwin*) 12358 if test -n "$STRIP"; then 12359 striplib="$STRIP -x" 12360 old_striplib="$STRIP -S" 12361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12362$as_echo "yes" >&6; } 12363 else 12364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12365$as_echo "no" >&6; } 12366 fi 12367 ;; 12368 *) 12369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12370$as_echo "no" >&6; } 12371 ;; 12372 esac 12373fi 12374 12375 12376 12377 12378 12379 12380 12381 12382 12383 12384 12385 12386 # Report what library types will actually be built 12387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 12388$as_echo_n "checking if libtool supports shared libraries... " >&6; } 12389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 12390$as_echo "$can_build_shared" >&6; } 12391 12392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 12393$as_echo_n "checking whether to build shared libraries... " >&6; } 12394 test no = "$can_build_shared" && enable_shared=no 12395 12396 # On AIX, shared libraries and static libraries use the same namespace, and 12397 # are all built from PIC. 12398 case $host_os in 12399 aix3*) 12400 test yes = "$enable_shared" && enable_static=no 12401 if test -n "$RANLIB"; then 12402 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12403 postinstall_cmds='$RANLIB $lib' 12404 fi 12405 ;; 12406 12407 aix[4-9]*) 12408 if test ia64 != "$host_cpu"; then 12409 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 12410 yes,aix,yes) ;; # shared object as lib.so file only 12411 yes,svr4,*) ;; # shared object as lib.so archive member only 12412 yes,*) enable_static=no ;; # shared object in lib.a archive as well 12413 esac 12414 fi 12415 ;; 12416 esac 12417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 12418$as_echo "$enable_shared" >&6; } 12419 12420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 12421$as_echo_n "checking whether to build static libraries... " >&6; } 12422 # Make sure either enable_shared or enable_static is yes. 12423 test yes = "$enable_shared" || enable_static=yes 12424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 12425$as_echo "$enable_static" >&6; } 12426 12427 12428 12429 12430fi 12431ac_ext=c 12432ac_cpp='$CPP $CPPFLAGS' 12433ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12434ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12435ac_compiler_gnu=$ac_cv_c_compiler_gnu 12436 12437CC=$lt_save_CC 12438 12439 12440 12441 12442 12443 12444 12445 12446 12447 12448 12449 12450 12451 12452 12453 ac_config_commands="$ac_config_commands libtool" 12454 12455 12456 12457 12458# Only expand once: 12459 12460 12461ac_ext=c 12462ac_cpp='$CPP $CPPFLAGS' 12463ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12464ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12465ac_compiler_gnu=$ac_cv_c_compiler_gnu 12466if test -n "$ac_tool_prefix"; then 12467 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 12468set dummy ${ac_tool_prefix}gcc; ac_word=$2 12469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12470$as_echo_n "checking for $ac_word... " >&6; } 12471if ${ac_cv_prog_CC+:} false; then : 12472 $as_echo_n "(cached) " >&6 12473else 12474 if test -n "$CC"; then 12475 ac_cv_prog_CC="$CC" # Let the user override the test. 12476else 12477as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12478for as_dir in $PATH 12479do 12480 IFS=$as_save_IFS 12481 test -z "$as_dir" && as_dir=. 12482 for ac_exec_ext in '' $ac_executable_extensions; do 12483 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12484 ac_cv_prog_CC="${ac_tool_prefix}gcc" 12485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12486 break 2 12487 fi 12488done 12489 done 12490IFS=$as_save_IFS 12491 12492fi 12493fi 12494CC=$ac_cv_prog_CC 12495if test -n "$CC"; then 12496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 12497$as_echo "$CC" >&6; } 12498else 12499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12500$as_echo "no" >&6; } 12501fi 12502 12503 12504fi 12505if test -z "$ac_cv_prog_CC"; then 12506 ac_ct_CC=$CC 12507 # Extract the first word of "gcc", so it can be a program name with args. 12508set dummy gcc; ac_word=$2 12509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12510$as_echo_n "checking for $ac_word... " >&6; } 12511if ${ac_cv_prog_ac_ct_CC+:} false; then : 12512 $as_echo_n "(cached) " >&6 12513else 12514 if test -n "$ac_ct_CC"; then 12515 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 12516else 12517as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12518for as_dir in $PATH 12519do 12520 IFS=$as_save_IFS 12521 test -z "$as_dir" && as_dir=. 12522 for ac_exec_ext in '' $ac_executable_extensions; do 12523 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12524 ac_cv_prog_ac_ct_CC="gcc" 12525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12526 break 2 12527 fi 12528done 12529 done 12530IFS=$as_save_IFS 12531 12532fi 12533fi 12534ac_ct_CC=$ac_cv_prog_ac_ct_CC 12535if test -n "$ac_ct_CC"; then 12536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 12537$as_echo "$ac_ct_CC" >&6; } 12538else 12539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12540$as_echo "no" >&6; } 12541fi 12542 12543 if test "x$ac_ct_CC" = x; then 12544 CC="" 12545 else 12546 case $cross_compiling:$ac_tool_warned in 12547yes:) 12548{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12549$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12550ac_tool_warned=yes ;; 12551esac 12552 CC=$ac_ct_CC 12553 fi 12554else 12555 CC="$ac_cv_prog_CC" 12556fi 12557 12558if test -z "$CC"; then 12559 if test -n "$ac_tool_prefix"; then 12560 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 12561set dummy ${ac_tool_prefix}cc; ac_word=$2 12562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12563$as_echo_n "checking for $ac_word... " >&6; } 12564if ${ac_cv_prog_CC+:} false; then : 12565 $as_echo_n "(cached) " >&6 12566else 12567 if test -n "$CC"; then 12568 ac_cv_prog_CC="$CC" # Let the user override the test. 12569else 12570as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12571for as_dir in $PATH 12572do 12573 IFS=$as_save_IFS 12574 test -z "$as_dir" && as_dir=. 12575 for ac_exec_ext in '' $ac_executable_extensions; do 12576 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12577 ac_cv_prog_CC="${ac_tool_prefix}cc" 12578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12579 break 2 12580 fi 12581done 12582 done 12583IFS=$as_save_IFS 12584 12585fi 12586fi 12587CC=$ac_cv_prog_CC 12588if test -n "$CC"; then 12589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 12590$as_echo "$CC" >&6; } 12591else 12592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12593$as_echo "no" >&6; } 12594fi 12595 12596 12597 fi 12598fi 12599if test -z "$CC"; then 12600 # Extract the first word of "cc", so it can be a program name with args. 12601set dummy cc; ac_word=$2 12602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12603$as_echo_n "checking for $ac_word... " >&6; } 12604if ${ac_cv_prog_CC+:} false; then : 12605 $as_echo_n "(cached) " >&6 12606else 12607 if test -n "$CC"; then 12608 ac_cv_prog_CC="$CC" # Let the user override the test. 12609else 12610 ac_prog_rejected=no 12611as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12612for as_dir in $PATH 12613do 12614 IFS=$as_save_IFS 12615 test -z "$as_dir" && as_dir=. 12616 for ac_exec_ext in '' $ac_executable_extensions; do 12617 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12618 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 12619 ac_prog_rejected=yes 12620 continue 12621 fi 12622 ac_cv_prog_CC="cc" 12623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12624 break 2 12625 fi 12626done 12627 done 12628IFS=$as_save_IFS 12629 12630if test $ac_prog_rejected = yes; then 12631 # We found a bogon in the path, so make sure we never use it. 12632 set dummy $ac_cv_prog_CC 12633 shift 12634 if test $@%:@ != 0; then 12635 # We chose a different compiler from the bogus one. 12636 # However, it has the same basename, so the bogon will be chosen 12637 # first if we set CC to just the basename; use the full file name. 12638 shift 12639 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 12640 fi 12641fi 12642fi 12643fi 12644CC=$ac_cv_prog_CC 12645if test -n "$CC"; then 12646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 12647$as_echo "$CC" >&6; } 12648else 12649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12650$as_echo "no" >&6; } 12651fi 12652 12653 12654fi 12655if test -z "$CC"; then 12656 if test -n "$ac_tool_prefix"; then 12657 for ac_prog in cl.exe 12658 do 12659 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 12660set dummy $ac_tool_prefix$ac_prog; ac_word=$2 12661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12662$as_echo_n "checking for $ac_word... " >&6; } 12663if ${ac_cv_prog_CC+:} false; then : 12664 $as_echo_n "(cached) " >&6 12665else 12666 if test -n "$CC"; then 12667 ac_cv_prog_CC="$CC" # Let the user override the test. 12668else 12669as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12670for as_dir in $PATH 12671do 12672 IFS=$as_save_IFS 12673 test -z "$as_dir" && as_dir=. 12674 for ac_exec_ext in '' $ac_executable_extensions; do 12675 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12676 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 12677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12678 break 2 12679 fi 12680done 12681 done 12682IFS=$as_save_IFS 12683 12684fi 12685fi 12686CC=$ac_cv_prog_CC 12687if test -n "$CC"; then 12688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 12689$as_echo "$CC" >&6; } 12690else 12691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12692$as_echo "no" >&6; } 12693fi 12694 12695 12696 test -n "$CC" && break 12697 done 12698fi 12699if test -z "$CC"; then 12700 ac_ct_CC=$CC 12701 for ac_prog in cl.exe 12702do 12703 # Extract the first word of "$ac_prog", so it can be a program name with args. 12704set dummy $ac_prog; ac_word=$2 12705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12706$as_echo_n "checking for $ac_word... " >&6; } 12707if ${ac_cv_prog_ac_ct_CC+:} false; then : 12708 $as_echo_n "(cached) " >&6 12709else 12710 if test -n "$ac_ct_CC"; then 12711 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 12712else 12713as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12714for as_dir in $PATH 12715do 12716 IFS=$as_save_IFS 12717 test -z "$as_dir" && as_dir=. 12718 for ac_exec_ext in '' $ac_executable_extensions; do 12719 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12720 ac_cv_prog_ac_ct_CC="$ac_prog" 12721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12722 break 2 12723 fi 12724done 12725 done 12726IFS=$as_save_IFS 12727 12728fi 12729fi 12730ac_ct_CC=$ac_cv_prog_ac_ct_CC 12731if test -n "$ac_ct_CC"; then 12732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 12733$as_echo "$ac_ct_CC" >&6; } 12734else 12735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12736$as_echo "no" >&6; } 12737fi 12738 12739 12740 test -n "$ac_ct_CC" && break 12741done 12742 12743 if test "x$ac_ct_CC" = x; then 12744 CC="" 12745 else 12746 case $cross_compiling:$ac_tool_warned in 12747yes:) 12748{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12749$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12750ac_tool_warned=yes ;; 12751esac 12752 CC=$ac_ct_CC 12753 fi 12754fi 12755 12756fi 12757 12758 12759test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12760$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12761as_fn_error $? "no acceptable C compiler found in \$PATH 12762See \`config.log' for more details" "$LINENO" 5; } 12763 12764# Provide some information about the compiler. 12765$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 12766set X $ac_compile 12767ac_compiler=$2 12768for ac_option in --version -v -V -qversion; do 12769 { { ac_try="$ac_compiler $ac_option >&5" 12770case "(($ac_try" in 12771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12772 *) ac_try_echo=$ac_try;; 12773esac 12774eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 12775$as_echo "$ac_try_echo"; } >&5 12776 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 12777 ac_status=$? 12778 if test -s conftest.err; then 12779 sed '10a\ 12780... rest of stderr output deleted ... 12781 10q' conftest.err >conftest.er1 12782 cat conftest.er1 >&5 12783 fi 12784 rm -f conftest.er1 conftest.err 12785 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12786 test $ac_status = 0; } 12787done 12788 12789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 12790$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 12791if ${ac_cv_c_compiler_gnu+:} false; then : 12792 $as_echo_n "(cached) " >&6 12793else 12794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12795/* end confdefs.h. */ 12796 12797int 12798main () 12799{ 12800#ifndef __GNUC__ 12801 choke me 12802#endif 12803 12804 ; 12805 return 0; 12806} 12807_ACEOF 12808if ac_fn_c_try_compile "$LINENO"; then : 12809 ac_compiler_gnu=yes 12810else 12811 ac_compiler_gnu=no 12812fi 12813rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12814ac_cv_c_compiler_gnu=$ac_compiler_gnu 12815 12816fi 12817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 12818$as_echo "$ac_cv_c_compiler_gnu" >&6; } 12819if test $ac_compiler_gnu = yes; then 12820 GCC=yes 12821else 12822 GCC= 12823fi 12824ac_test_CFLAGS=${CFLAGS+set} 12825ac_save_CFLAGS=$CFLAGS 12826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 12827$as_echo_n "checking whether $CC accepts -g... " >&6; } 12828if ${ac_cv_prog_cc_g+:} false; then : 12829 $as_echo_n "(cached) " >&6 12830else 12831 ac_save_c_werror_flag=$ac_c_werror_flag 12832 ac_c_werror_flag=yes 12833 ac_cv_prog_cc_g=no 12834 CFLAGS="-g" 12835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12836/* end confdefs.h. */ 12837 12838int 12839main () 12840{ 12841 12842 ; 12843 return 0; 12844} 12845_ACEOF 12846if ac_fn_c_try_compile "$LINENO"; then : 12847 ac_cv_prog_cc_g=yes 12848else 12849 CFLAGS="" 12850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12851/* end confdefs.h. */ 12852 12853int 12854main () 12855{ 12856 12857 ; 12858 return 0; 12859} 12860_ACEOF 12861if ac_fn_c_try_compile "$LINENO"; then : 12862 12863else 12864 ac_c_werror_flag=$ac_save_c_werror_flag 12865 CFLAGS="-g" 12866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12867/* end confdefs.h. */ 12868 12869int 12870main () 12871{ 12872 12873 ; 12874 return 0; 12875} 12876_ACEOF 12877if ac_fn_c_try_compile "$LINENO"; then : 12878 ac_cv_prog_cc_g=yes 12879fi 12880rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12881fi 12882rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12883fi 12884rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12885 ac_c_werror_flag=$ac_save_c_werror_flag 12886fi 12887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 12888$as_echo "$ac_cv_prog_cc_g" >&6; } 12889if test "$ac_test_CFLAGS" = set; then 12890 CFLAGS=$ac_save_CFLAGS 12891elif test $ac_cv_prog_cc_g = yes; then 12892 if test "$GCC" = yes; then 12893 CFLAGS="-g -O2" 12894 else 12895 CFLAGS="-g" 12896 fi 12897else 12898 if test "$GCC" = yes; then 12899 CFLAGS="-O2" 12900 else 12901 CFLAGS= 12902 fi 12903fi 12904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 12905$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 12906if ${ac_cv_prog_cc_c89+:} false; then : 12907 $as_echo_n "(cached) " >&6 12908else 12909 ac_cv_prog_cc_c89=no 12910ac_save_CC=$CC 12911cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12912/* end confdefs.h. */ 12913#include <stdarg.h> 12914#include <stdio.h> 12915struct stat; 12916/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 12917struct buf { int x; }; 12918FILE * (*rcsopen) (struct buf *, struct stat *, int); 12919static char *e (p, i) 12920 char **p; 12921 int i; 12922{ 12923 return p[i]; 12924} 12925static char *f (char * (*g) (char **, int), char **p, ...) 12926{ 12927 char *s; 12928 va_list v; 12929 va_start (v,p); 12930 s = g (p, va_arg (v,int)); 12931 va_end (v); 12932 return s; 12933} 12934 12935/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 12936 function prototypes and stuff, but not '\xHH' hex character constants. 12937 These don't provoke an error unfortunately, instead are silently treated 12938 as 'x'. The following induces an error, until -std is added to get 12939 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 12940 array size at least. It's necessary to write '\x00'==0 to get something 12941 that's true only with -std. */ 12942int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 12943 12944/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 12945 inside strings and character constants. */ 12946#define FOO(x) 'x' 12947int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 12948 12949int test (int i, double x); 12950struct s1 {int (*f) (int a);}; 12951struct s2 {int (*f) (double a);}; 12952int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 12953int argc; 12954char **argv; 12955int 12956main () 12957{ 12958return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 12959 ; 12960 return 0; 12961} 12962_ACEOF 12963for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 12964 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 12965do 12966 CC="$ac_save_CC $ac_arg" 12967 if ac_fn_c_try_compile "$LINENO"; then : 12968 ac_cv_prog_cc_c89=$ac_arg 12969fi 12970rm -f core conftest.err conftest.$ac_objext 12971 test "x$ac_cv_prog_cc_c89" != "xno" && break 12972done 12973rm -f conftest.$ac_ext 12974CC=$ac_save_CC 12975 12976fi 12977# AC_CACHE_VAL 12978case "x$ac_cv_prog_cc_c89" in 12979 x) 12980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 12981$as_echo "none needed" >&6; } ;; 12982 xno) 12983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 12984$as_echo "unsupported" >&6; } ;; 12985 *) 12986 CC="$CC $ac_cv_prog_cc_c89" 12987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 12988$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 12989esac 12990if test "x$ac_cv_prog_cc_c89" != xno; then : 12991 12992fi 12993 12994ac_ext=c 12995ac_cpp='$CPP $CPPFLAGS' 12996ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12997ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12998ac_compiler_gnu=$ac_cv_c_compiler_gnu 12999 13000ac_ext=c 13001ac_cpp='$CPP $CPPFLAGS' 13002ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13003ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13004ac_compiler_gnu=$ac_cv_c_compiler_gnu 13005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 13006$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 13007if ${am_cv_prog_cc_c_o+:} false; then : 13008 $as_echo_n "(cached) " >&6 13009else 13010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13011/* end confdefs.h. */ 13012 13013int 13014main () 13015{ 13016 13017 ; 13018 return 0; 13019} 13020_ACEOF 13021 # Make sure it works both with $CC and with simple cc. 13022 # Following AC_PROG_CC_C_O, we do the test twice because some 13023 # compilers refuse to overwrite an existing .o file with -o, 13024 # though they will create one. 13025 am_cv_prog_cc_c_o=yes 13026 for am_i in 1 2; do 13027 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 13028 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 13029 ac_status=$? 13030 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13031 (exit $ac_status); } \ 13032 && test -f conftest2.$ac_objext; then 13033 : OK 13034 else 13035 am_cv_prog_cc_c_o=no 13036 break 13037 fi 13038 done 13039 rm -f core conftest* 13040 unset am_i 13041fi 13042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 13043$as_echo "$am_cv_prog_cc_c_o" >&6; } 13044if test "$am_cv_prog_cc_c_o" != yes; then 13045 # Losing compiler, so override with the script. 13046 # FIXME: It is wrong to rewrite CC. 13047 # But if we don't then we get into trouble of one sort or another. 13048 # A longer-term fix would be to have automake use am__CC in this case, 13049 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 13050 CC="$am_aux_dir/compile $CC" 13051fi 13052ac_ext=c 13053ac_cpp='$CPP $CPPFLAGS' 13054ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13055ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13056ac_compiler_gnu=$ac_cv_c_compiler_gnu 13057 13058 13059depcc="$CC" am_compiler_list= 13060 13061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 13062$as_echo_n "checking dependency style of $depcc... " >&6; } 13063if ${am_cv_CC_dependencies_compiler_type+:} false; then : 13064 $as_echo_n "(cached) " >&6 13065else 13066 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 13067 # We make a subdir and do the tests there. Otherwise we can end up 13068 # making bogus files that we don't know about and never remove. For 13069 # instance it was reported that on HP-UX the gcc test will end up 13070 # making a dummy file named 'D' -- because '-MD' means "put the output 13071 # in D". 13072 rm -rf conftest.dir 13073 mkdir conftest.dir 13074 # Copy depcomp to subdir because otherwise we won't find it if we're 13075 # using a relative directory. 13076 cp "$am_depcomp" conftest.dir 13077 cd conftest.dir 13078 # We will build objects and dependencies in a subdirectory because 13079 # it helps to detect inapplicable dependency modes. For instance 13080 # both Tru64's cc and ICC support -MD to output dependencies as a 13081 # side effect of compilation, but ICC will put the dependencies in 13082 # the current directory while Tru64 will put them in the object 13083 # directory. 13084 mkdir sub 13085 13086 am_cv_CC_dependencies_compiler_type=none 13087 if test "$am_compiler_list" = ""; then 13088 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 13089 fi 13090 am__universal=false 13091 case " $depcc " in #( 13092 *\ -arch\ *\ -arch\ *) am__universal=true ;; 13093 esac 13094 13095 for depmode in $am_compiler_list; do 13096 # Setup a source with many dependencies, because some compilers 13097 # like to wrap large dependency lists on column 80 (with \), and 13098 # we should not choose a depcomp mode which is confused by this. 13099 # 13100 # We need to recreate these files for each test, as the compiler may 13101 # overwrite some of them when testing with obscure command lines. 13102 # This happens at least with the AIX C compiler. 13103 : > sub/conftest.c 13104 for i in 1 2 3 4 5 6; do 13105 echo '#include "conftst'$i'.h"' >> sub/conftest.c 13106 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 13107 # Solaris 10 /bin/sh. 13108 echo '/* dummy */' > sub/conftst$i.h 13109 done 13110 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 13111 13112 # We check with '-c' and '-o' for the sake of the "dashmstdout" 13113 # mode. It turns out that the SunPro C++ compiler does not properly 13114 # handle '-M -o', and we need to detect this. Also, some Intel 13115 # versions had trouble with output in subdirs. 13116 am__obj=sub/conftest.${OBJEXT-o} 13117 am__minus_obj="-o $am__obj" 13118 case $depmode in 13119 gcc) 13120 # This depmode causes a compiler race in universal mode. 13121 test "$am__universal" = false || continue 13122 ;; 13123 nosideeffect) 13124 # After this tag, mechanisms are not by side-effect, so they'll 13125 # only be used when explicitly requested. 13126 if test "x$enable_dependency_tracking" = xyes; then 13127 continue 13128 else 13129 break 13130 fi 13131 ;; 13132 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 13133 # This compiler won't grok '-c -o', but also, the minuso test has 13134 # not run yet. These depmodes are late enough in the game, and 13135 # so weak that their functioning should not be impacted. 13136 am__obj=conftest.${OBJEXT-o} 13137 am__minus_obj= 13138 ;; 13139 none) break ;; 13140 esac 13141 if depmode=$depmode \ 13142 source=sub/conftest.c object=$am__obj \ 13143 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 13144 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 13145 >/dev/null 2>conftest.err && 13146 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 13147 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 13148 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 13149 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 13150 # icc doesn't choke on unknown options, it will just issue warnings 13151 # or remarks (even with -Werror). So we grep stderr for any message 13152 # that says an option was ignored or not supported. 13153 # When given -MP, icc 7.0 and 7.1 complain thusly: 13154 # icc: Command line warning: ignoring option '-M'; no argument required 13155 # The diagnosis changed in icc 8.0: 13156 # icc: Command line remark: option '-MP' not supported 13157 if (grep 'ignoring option' conftest.err || 13158 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 13159 am_cv_CC_dependencies_compiler_type=$depmode 13160 break 13161 fi 13162 fi 13163 done 13164 13165 cd .. 13166 rm -rf conftest.dir 13167else 13168 am_cv_CC_dependencies_compiler_type=none 13169fi 13170 13171fi 13172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 13173$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 13174CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 13175 13176 if 13177 test "x$enable_dependency_tracking" != xno \ 13178 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 13179 am__fastdepCC_TRUE= 13180 am__fastdepCC_FALSE='#' 13181else 13182 am__fastdepCC_TRUE='#' 13183 am__fastdepCC_FALSE= 13184fi 13185 13186 13187if test $ac_cv_c_compiler_gnu = yes; then 13188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5 13189$as_echo_n "checking whether $CC needs -traditional... " >&6; } 13190if ${ac_cv_prog_gcc_traditional+:} false; then : 13191 $as_echo_n "(cached) " >&6 13192else 13193 ac_pattern="Autoconf.*'x'" 13194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13195/* end confdefs.h. */ 13196#include <sgtty.h> 13197Autoconf TIOCGETP 13198_ACEOF 13199if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 13200 $EGREP "$ac_pattern" >/dev/null 2>&1; then : 13201 ac_cv_prog_gcc_traditional=yes 13202else 13203 ac_cv_prog_gcc_traditional=no 13204fi 13205rm -f conftest* 13206 13207 13208 if test $ac_cv_prog_gcc_traditional = no; then 13209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13210/* end confdefs.h. */ 13211#include <termio.h> 13212Autoconf TCGETA 13213_ACEOF 13214if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 13215 $EGREP "$ac_pattern" >/dev/null 2>&1; then : 13216 ac_cv_prog_gcc_traditional=yes 13217fi 13218rm -f conftest* 13219 13220 fi 13221fi 13222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5 13223$as_echo "$ac_cv_prog_gcc_traditional" >&6; } 13224 if test $ac_cv_prog_gcc_traditional = yes; then 13225 CC="$CC -traditional" 13226 fi 13227fi 13228 13229 13230 13231ac_ext=c 13232ac_cpp='$CPP $CPPFLAGS' 13233ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13234ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13235ac_compiler_gnu=$ac_cv_c_compiler_gnu 13236 13237 13238# Whether all the debugging output should be spewed out 13239@%:@ Check whether --enable-debug was given. 13240if test "${enable_debug+set}" = set; then : 13241 enableval=$enable_debug; 13242fi 13243 13244 13245if test "x$enable_debug" != "xyes"; then 13246 13247$as_echo "@%:@define NDEBUG 1" >>confdefs.h 13248 13249fi 13250 13251# No privilege separation 13252@%:@ Check whether --enable-privsep was given. 13253if test "${enable_privsep+set}" = set; then : 13254 enableval=$enable_privsep; 13255fi 13256 13257 13258if test "x$enable_privsep" = xno; then 13259 13260$as_echo "@%:@define WITHOUT_PRIVSEP 1" >>confdefs.h 13261 13262fi 13263 13264# privsep parameters 13265 13266@%:@ Check whether --with-privsep_user was given. 13267if test "${with_privsep_user+set}" = set; then : 13268 withval=$with_privsep_user; privsep_user=$withval 13269else 13270 privsep_user=nobody 13271fi 13272 13273 13274@%:@ Check whether --with-privsep_dir was given. 13275if test "${with_privsep_dir+set}" = set; then : 13276 withval=$with_privsep_dir; privsep_dir=$withval 13277else 13278 privsep_dir=/var/empty 13279fi 13280 13281 13282@%:@ Check whether --with-privsep_dir_owner was given. 13283if test "${with_privsep_dir_owner+set}" = set; then : 13284 withval=$with_privsep_dir_owner; privsep_dir_owner=$withval 13285else 13286 privsep_dir_owner=root 13287fi 13288 13289 13290@%:@ Check whether --with-privsep_dir_group was given. 13291if test "${with_privsep_dir_group+set}" = set; then : 13292 withval=$with_privsep_dir_group; privsep_dir_group=$withval 13293else 13294 privsep_dir_group=wheel 13295fi 13296 13297 13298 13299 13300 13301 13302cat >>confdefs.h <<_ACEOF 13303@%:@define PRIVSEP_USER "$privsep_user" 13304_ACEOF 13305 13306 13307cat >>confdefs.h <<_ACEOF 13308@%:@define PRIVSEP_DIR "$privsep_dir" 13309_ACEOF 13310 13311 13312cat >>confdefs.h <<_ACEOF 13313@%:@define PRIVSEP_DIR_OWNER "$privsep_dir_owner" 13314_ACEOF 13315 13316 13317cat >>confdefs.h <<_ACEOF 13318@%:@define PRIVSEP_DIR_GROUP "$privsep_dir_group" 13319_ACEOF 13320 13321 13322# Debug file support 13323@%:@ Check whether --enable-debug-file was given. 13324if test "${enable_debug_file+set}" = set; then : 13325 enableval=$enable_debug_file; 13326fi 13327 13328 13329if test "x$enable_debug_file" = xno; then 13330 13331$as_echo "@%:@define WITHOUT_DEBUGFILE 1" >>confdefs.h 13332 13333fi 13334 13335# dmalloc support 13336 13337@%:@ Check whether --with-dmalloc was given. 13338if test "${with_dmalloc+set}" = set; then : 13339 withval=$with_dmalloc; 13340fi 13341 13342 13343if test "x$with_dmalloc" = xyes; then 13344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dmalloc_malloc in -ldmalloc" >&5 13345$as_echo_n "checking for dmalloc_malloc in -ldmalloc... " >&6; } 13346if ${ac_cv_lib_dmalloc_dmalloc_malloc+:} false; then : 13347 $as_echo_n "(cached) " >&6 13348else 13349 ac_check_lib_save_LIBS=$LIBS 13350LIBS="-ldmalloc $LIBS" 13351cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13352/* end confdefs.h. */ 13353 13354/* Override any GCC internal prototype to avoid an error. 13355 Use char because int might match the return type of a GCC 13356 builtin and then its argument prototype would still apply. */ 13357#ifdef __cplusplus 13358extern "C" 13359#endif 13360char dmalloc_malloc (); 13361int 13362main () 13363{ 13364return dmalloc_malloc (); 13365 ; 13366 return 0; 13367} 13368_ACEOF 13369if ac_fn_c_try_link "$LINENO"; then : 13370 ac_cv_lib_dmalloc_dmalloc_malloc=yes 13371else 13372 ac_cv_lib_dmalloc_dmalloc_malloc=no 13373fi 13374rm -f core conftest.err conftest.$ac_objext \ 13375 conftest$ac_exeext conftest.$ac_ext 13376LIBS=$ac_check_lib_save_LIBS 13377fi 13378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dmalloc_dmalloc_malloc" >&5 13379$as_echo "$ac_cv_lib_dmalloc_dmalloc_malloc" >&6; } 13380if test "x$ac_cv_lib_dmalloc_dmalloc_malloc" = xyes; then : 13381 13382 CFLAGS="$CFLAGS -DDMALLOC" 13383 LDFLAGS="$LDFLAGS -ldmalloc" 13384 13385else 13386 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13387$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 13388as_fn_error $? "dmalloc test failed (remove --with-dmalloc) 13389See \`config.log' for more details" "$LINENO" 5; } 13390fi 13391 13392fi 13393 13394# pcre support 13395 13396@%:@ Check whether --with-pcre was given. 13397if test "${with_pcre+set}" = set; then : 13398 withval=$with_pcre; 13399fi 13400 13401 13402if test "x$with_pcre" = xyes; then 13403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcre_compile in -lpcre" >&5 13404$as_echo_n "checking for pcre_compile in -lpcre... " >&6; } 13405if ${ac_cv_lib_pcre_pcre_compile+:} false; then : 13406 $as_echo_n "(cached) " >&6 13407else 13408 ac_check_lib_save_LIBS=$LIBS 13409LIBS="-lpcre $LIBS" 13410cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13411/* end confdefs.h. */ 13412 13413/* Override any GCC internal prototype to avoid an error. 13414 Use char because int might match the return type of a GCC 13415 builtin and then its argument prototype would still apply. */ 13416#ifdef __cplusplus 13417extern "C" 13418#endif 13419char pcre_compile (); 13420int 13421main () 13422{ 13423return pcre_compile (); 13424 ; 13425 return 0; 13426} 13427_ACEOF 13428if ac_fn_c_try_link "$LINENO"; then : 13429 ac_cv_lib_pcre_pcre_compile=yes 13430else 13431 ac_cv_lib_pcre_pcre_compile=no 13432fi 13433rm -f core conftest.err conftest.$ac_objext \ 13434 conftest$ac_exeext conftest.$ac_ext 13435LIBS=$ac_check_lib_save_LIBS 13436fi 13437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcre_pcre_compile" >&5 13438$as_echo "$ac_cv_lib_pcre_pcre_compile" >&6; } 13439if test "x$ac_cv_lib_pcre_pcre_compile" = xyes; then : 13440 13441 PCRE_CFLAGS="-DHAVE_PCRE" 13442 PCRE_LIBS="-lpcre" 13443 13444else 13445 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13446$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 13447as_fn_error $? "pcre test failed (remove --with-pcre) 13448See \`config.log' for more details" "$LINENO" 5; } 13449fi 13450 13451fi 13452 13453# pcre2 support 13454 13455@%:@ Check whether --with-pcre2 was given. 13456if test "${with_pcre2+set}" = set; then : 13457 withval=$with_pcre2; 13458fi 13459 13460 13461if test "x$with_pcre2" = xyes; then 13462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcre2_compile_8 in -lpcre2-8" >&5 13463$as_echo_n "checking for pcre2_compile_8 in -lpcre2-8... " >&6; } 13464if ${ac_cv_lib_pcre2_8_pcre2_compile_8+:} false; then : 13465 $as_echo_n "(cached) " >&6 13466else 13467 ac_check_lib_save_LIBS=$LIBS 13468LIBS="-lpcre2-8 $LIBS" 13469cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13470/* end confdefs.h. */ 13471 13472/* Override any GCC internal prototype to avoid an error. 13473 Use char because int might match the return type of a GCC 13474 builtin and then its argument prototype would still apply. */ 13475#ifdef __cplusplus 13476extern "C" 13477#endif 13478char pcre2_compile_8 (); 13479int 13480main () 13481{ 13482return pcre2_compile_8 (); 13483 ; 13484 return 0; 13485} 13486_ACEOF 13487if ac_fn_c_try_link "$LINENO"; then : 13488 ac_cv_lib_pcre2_8_pcre2_compile_8=yes 13489else 13490 ac_cv_lib_pcre2_8_pcre2_compile_8=no 13491fi 13492rm -f core conftest.err conftest.$ac_objext \ 13493 conftest$ac_exeext conftest.$ac_ext 13494LIBS=$ac_check_lib_save_LIBS 13495fi 13496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcre2_8_pcre2_compile_8" >&5 13497$as_echo "$ac_cv_lib_pcre2_8_pcre2_compile_8" >&6; } 13498if test "x$ac_cv_lib_pcre2_8_pcre2_compile_8" = xyes; then : 13499 13500 PCRE_CFLAGS="-DHAVE_PCRE2" 13501 PCRE_LIBS="-lpcre2-8" 13502 13503else 13504 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13505$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 13506as_fn_error $? "pcre2 test failed (remove --with-pcre2) 13507See \`config.log' for more details" "$LINENO" 5; } 13508fi 13509 13510fi 13511 13512 13513 13514 13515# sc_hoiho utlity 13516 13517@%:@ Check whether --with-sc_hoiho was given. 13518if test "${with_sc_hoiho+set}" = set; then : 13519 withval=$with_sc_hoiho; with_sc_hoiho=$withval 13520else 13521 with_sc_hoiho=no 13522 13523fi 13524 13525 if test x$with_sc_hoiho = xyes; then 13526 WITH_SC_HOIHO_TRUE= 13527 WITH_SC_HOIHO_FALSE='#' 13528else 13529 WITH_SC_HOIHO_TRUE='#' 13530 WITH_SC_HOIHO_FALSE= 13531fi 13532 13533 13534# sc_uptime prober support 13535 13536@%:@ Check whether --with-sc_uptime was given. 13537if test "${with_sc_uptime+set}" = set; then : 13538 withval=$with_sc_uptime; with_sc_uptime=$withval 13539else 13540 with_sc_uptime=no 13541 13542fi 13543 13544 if test x$with_sc_uptime = xyes; then 13545 WITH_SC_UPTIME_TRUE= 13546 WITH_SC_UPTIME_FALSE='#' 13547else 13548 WITH_SC_UPTIME_TRUE='#' 13549 WITH_SC_UPTIME_FALSE= 13550fi 13551 13552 13553# Checks for libraries. 13554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GetIpNetTable in -liphlpapi" >&5 13555$as_echo_n "checking for GetIpNetTable in -liphlpapi... " >&6; } 13556if ${ac_cv_lib_iphlpapi_GetIpNetTable+:} false; then : 13557 $as_echo_n "(cached) " >&6 13558else 13559 ac_check_lib_save_LIBS=$LIBS 13560LIBS="-liphlpapi $LIBS" 13561cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13562/* end confdefs.h. */ 13563 13564/* Override any GCC internal prototype to avoid an error. 13565 Use char because int might match the return type of a GCC 13566 builtin and then its argument prototype would still apply. */ 13567#ifdef __cplusplus 13568extern "C" 13569#endif 13570char GetIpNetTable (); 13571int 13572main () 13573{ 13574return GetIpNetTable (); 13575 ; 13576 return 0; 13577} 13578_ACEOF 13579if ac_fn_c_try_link "$LINENO"; then : 13580 ac_cv_lib_iphlpapi_GetIpNetTable=yes 13581else 13582 ac_cv_lib_iphlpapi_GetIpNetTable=no 13583fi 13584rm -f core conftest.err conftest.$ac_objext \ 13585 conftest$ac_exeext conftest.$ac_ext 13586LIBS=$ac_check_lib_save_LIBS 13587fi 13588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iphlpapi_GetIpNetTable" >&5 13589$as_echo "$ac_cv_lib_iphlpapi_GetIpNetTable" >&6; } 13590if test "x$ac_cv_lib_iphlpapi_GetIpNetTable" = xyes; then : 13591 cat >>confdefs.h <<_ACEOF 13592@%:@define HAVE_LIBIPHLPAPI 1 13593_ACEOF 13594 13595 LIBS="-liphlpapi $LIBS" 13596 13597fi 13598 13599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WSAStartup in -lws2_32" >&5 13600$as_echo_n "checking for WSAStartup in -lws2_32... " >&6; } 13601if ${ac_cv_lib_ws2_32_WSAStartup+:} false; then : 13602 $as_echo_n "(cached) " >&6 13603else 13604 ac_check_lib_save_LIBS=$LIBS 13605LIBS="-lws2_32 $LIBS" 13606cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13607/* end confdefs.h. */ 13608 13609/* Override any GCC internal prototype to avoid an error. 13610 Use char because int might match the return type of a GCC 13611 builtin and then its argument prototype would still apply. */ 13612#ifdef __cplusplus 13613extern "C" 13614#endif 13615char WSAStartup (); 13616int 13617main () 13618{ 13619return WSAStartup (); 13620 ; 13621 return 0; 13622} 13623_ACEOF 13624if ac_fn_c_try_link "$LINENO"; then : 13625 ac_cv_lib_ws2_32_WSAStartup=yes 13626else 13627 ac_cv_lib_ws2_32_WSAStartup=no 13628fi 13629rm -f core conftest.err conftest.$ac_objext \ 13630 conftest$ac_exeext conftest.$ac_ext 13631LIBS=$ac_check_lib_save_LIBS 13632fi 13633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_WSAStartup" >&5 13634$as_echo "$ac_cv_lib_ws2_32_WSAStartup" >&6; } 13635if test "x$ac_cv_lib_ws2_32_WSAStartup" = xyes; then : 13636 cat >>confdefs.h <<_ACEOF 13637@%:@define HAVE_LIBWS2_32 1 13638_ACEOF 13639 13640 LIBS="-lws2_32 $LIBS" 13641 13642fi 13643 13644 13645# Checks for header files. 13646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5 13647$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } 13648if ${ac_cv_header_sys_wait_h+:} false; then : 13649 $as_echo_n "(cached) " >&6 13650else 13651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13652/* end confdefs.h. */ 13653#include <sys/types.h> 13654#include <sys/wait.h> 13655#ifndef WEXITSTATUS 13656# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) 13657#endif 13658#ifndef WIFEXITED 13659# define WIFEXITED(stat_val) (((stat_val) & 255) == 0) 13660#endif 13661 13662int 13663main () 13664{ 13665 int s; 13666 wait (&s); 13667 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 13668 ; 13669 return 0; 13670} 13671_ACEOF 13672if ac_fn_c_try_compile "$LINENO"; then : 13673 ac_cv_header_sys_wait_h=yes 13674else 13675 ac_cv_header_sys_wait_h=no 13676fi 13677rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13678fi 13679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5 13680$as_echo "$ac_cv_header_sys_wait_h" >&6; } 13681if test $ac_cv_header_sys_wait_h = yes; then 13682 13683$as_echo "@%:@define HAVE_SYS_WAIT_H 1" >>confdefs.h 13684 13685fi 13686 13687for ac_header in arpa/inet.h 13688do : 13689 ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default" 13690if test "x$ac_cv_header_arpa_inet_h" = xyes; then : 13691 cat >>confdefs.h <<_ACEOF 13692@%:@define HAVE_ARPA_INET_H 1 13693_ACEOF 13694 13695fi 13696 13697done 13698 13699for ac_header in fcntl.h 13700do : 13701 ac_fn_c_check_header_mongrel "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default" 13702if test "x$ac_cv_header_fcntl_h" = xyes; then : 13703 cat >>confdefs.h <<_ACEOF 13704@%:@define HAVE_FCNTL_H 1 13705_ACEOF 13706 13707fi 13708 13709done 13710 13711for ac_header in limits.h 13712do : 13713 ac_fn_c_check_header_mongrel "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default" 13714if test "x$ac_cv_header_limits_h" = xyes; then : 13715 cat >>confdefs.h <<_ACEOF 13716@%:@define HAVE_LIMITS_H 1 13717_ACEOF 13718 13719fi 13720 13721done 13722 13723for ac_header in netdb.h 13724do : 13725 ac_fn_c_check_header_mongrel "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$ac_includes_default" 13726if test "x$ac_cv_header_netdb_h" = xyes; then : 13727 cat >>confdefs.h <<_ACEOF 13728@%:@define HAVE_NETDB_H 1 13729_ACEOF 13730 13731fi 13732 13733done 13734 13735for ac_header in net/if_dl.h 13736do : 13737 ac_fn_c_check_header_mongrel "$LINENO" "net/if_dl.h" "ac_cv_header_net_if_dl_h" "$ac_includes_default" 13738if test "x$ac_cv_header_net_if_dl_h" = xyes; then : 13739 cat >>confdefs.h <<_ACEOF 13740@%:@define HAVE_NET_IF_DL_H 1 13741_ACEOF 13742 13743fi 13744 13745done 13746 13747for ac_header in net/if_types.h 13748do : 13749 ac_fn_c_check_header_mongrel "$LINENO" "net/if_types.h" "ac_cv_header_net_if_types_h" "$ac_includes_default" 13750if test "x$ac_cv_header_net_if_types_h" = xyes; then : 13751 cat >>confdefs.h <<_ACEOF 13752@%:@define HAVE_NET_IF_TYPES_H 1 13753_ACEOF 13754 13755fi 13756 13757done 13758 13759for ac_header in netinet/in.h 13760do : 13761 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default" 13762if test "x$ac_cv_header_netinet_in_h" = xyes; then : 13763 cat >>confdefs.h <<_ACEOF 13764@%:@define HAVE_NETINET_IN_H 1 13765_ACEOF 13766 13767fi 13768 13769done 13770 13771for ac_header in poll.h 13772do : 13773 ac_fn_c_check_header_mongrel "$LINENO" "poll.h" "ac_cv_header_poll_h" "$ac_includes_default" 13774if test "x$ac_cv_header_poll_h" = xyes; then : 13775 cat >>confdefs.h <<_ACEOF 13776@%:@define HAVE_POLL_H 1 13777_ACEOF 13778 13779fi 13780 13781done 13782 13783for ac_header in stdint.h 13784do : 13785 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default" 13786if test "x$ac_cv_header_stdint_h" = xyes; then : 13787 cat >>confdefs.h <<_ACEOF 13788@%:@define HAVE_STDINT_H 1 13789_ACEOF 13790 13791fi 13792 13793done 13794 13795for ac_header in stdlib.h 13796do : 13797 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" 13798if test "x$ac_cv_header_stdlib_h" = xyes; then : 13799 cat >>confdefs.h <<_ACEOF 13800@%:@define HAVE_STDLIB_H 1 13801_ACEOF 13802 13803fi 13804 13805done 13806 13807for ac_header in string.h 13808do : 13809 ac_fn_c_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default" 13810if test "x$ac_cv_header_string_h" = xyes; then : 13811 cat >>confdefs.h <<_ACEOF 13812@%:@define HAVE_STRING_H 1 13813_ACEOF 13814 13815fi 13816 13817done 13818 13819for ac_header in sys/epoll.h 13820do : 13821 ac_fn_c_check_header_mongrel "$LINENO" "sys/epoll.h" "ac_cv_header_sys_epoll_h" "$ac_includes_default" 13822if test "x$ac_cv_header_sys_epoll_h" = xyes; then : 13823 cat >>confdefs.h <<_ACEOF 13824@%:@define HAVE_SYS_EPOLL_H 1 13825_ACEOF 13826 13827fi 13828 13829done 13830 13831for ac_header in sys/event.h 13832do : 13833 ac_fn_c_check_header_mongrel "$LINENO" "sys/event.h" "ac_cv_header_sys_event_h" "$ac_includes_default" 13834if test "x$ac_cv_header_sys_event_h" = xyes; then : 13835 cat >>confdefs.h <<_ACEOF 13836@%:@define HAVE_SYS_EVENT_H 1 13837_ACEOF 13838 13839fi 13840 13841done 13842 13843for ac_header in sys/ioctl.h 13844do : 13845 ac_fn_c_check_header_mongrel "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default" 13846if test "x$ac_cv_header_sys_ioctl_h" = xyes; then : 13847 cat >>confdefs.h <<_ACEOF 13848@%:@define HAVE_SYS_IOCTL_H 1 13849_ACEOF 13850 13851fi 13852 13853done 13854 13855for ac_header in sys/param.h 13856do : 13857 ac_fn_c_check_header_mongrel "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default" 13858if test "x$ac_cv_header_sys_param_h" = xyes; then : 13859 cat >>confdefs.h <<_ACEOF 13860@%:@define HAVE_SYS_PARAM_H 1 13861_ACEOF 13862 13863fi 13864 13865done 13866 13867for ac_header in sys/socket.h 13868do : 13869 ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default" 13870if test "x$ac_cv_header_sys_socket_h" = xyes; then : 13871 cat >>confdefs.h <<_ACEOF 13872@%:@define HAVE_SYS_SOCKET_H 1 13873_ACEOF 13874 13875fi 13876 13877done 13878 13879for ac_header in sys/socketvar.h 13880do : 13881 ac_fn_c_check_header_mongrel "$LINENO" "sys/socketvar.h" "ac_cv_header_sys_socketvar_h" "$ac_includes_default" 13882if test "x$ac_cv_header_sys_socketvar_h" = xyes; then : 13883 cat >>confdefs.h <<_ACEOF 13884@%:@define HAVE_SYS_SOCKETVAR_H 1 13885_ACEOF 13886 13887fi 13888 13889done 13890 13891for ac_header in sys/time.h 13892do : 13893 ac_fn_c_check_header_mongrel "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default" 13894if test "x$ac_cv_header_sys_time_h" = xyes; then : 13895 cat >>confdefs.h <<_ACEOF 13896@%:@define HAVE_SYS_TIME_H 1 13897_ACEOF 13898 13899fi 13900 13901done 13902 13903for ac_header in unistd.h 13904do : 13905 ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default" 13906if test "x$ac_cv_header_unistd_h" = xyes; then : 13907 cat >>confdefs.h <<_ACEOF 13908@%:@define HAVE_UNISTD_H 1 13909_ACEOF 13910 13911fi 13912 13913done 13914 13915for ac_header in ifaddrs.h 13916do : 13917 ac_fn_c_check_header_mongrel "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default" 13918if test "x$ac_cv_header_ifaddrs_h" = xyes; then : 13919 cat >>confdefs.h <<_ACEOF 13920@%:@define HAVE_IFADDRS_H 1 13921_ACEOF 13922 13923fi 13924 13925done 13926 13927 13928# sys/sysctl.h requires other headers on at least OpenBSD 13929for ac_header in sys/sysctl.h 13930do : 13931 ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" " 13932#if HAVE_SYS_PARAM_H 13933# include <sys/param.h> 13934#endif 13935 13936" 13937if test "x$ac_cv_header_sys_sysctl_h" = xyes; then : 13938 cat >>confdefs.h <<_ACEOF 13939@%:@define HAVE_SYS_SYSCTL_H 1 13940_ACEOF 13941 13942fi 13943 13944done 13945 13946 13947for ac_header in netinet/ip_fw.h netinet6/ip6_fw.h 13948do : 13949 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 13950ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" " 13951#if HAVE_SYS_TYPES_H 13952# include <sys/types.h> 13953#endif 13954#if HAVE_SYS_SOCKET_H 13955# include <sys/socket.h> 13956#endif 13957#if HAVE_NETINET_IN_H 13958# include <netinet/in.h> 13959#endif 13960#if HAVE_ARPA_INET_H 13961# include <arpa/inet.h> 13962#endif 13963#include <net/if.h> 13964#include <netinet/ip_compat.h> 13965 13966" 13967if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 13968 cat >>confdefs.h <<_ACEOF 13969@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 13970_ACEOF 13971 13972fi 13973 13974done 13975 13976 13977for ac_header in netinet/tcp_var.h 13978do : 13979 ac_fn_c_check_header_compile "$LINENO" "netinet/tcp_var.h" "ac_cv_header_netinet_tcp_var_h" " 13980#if HAVE_SYS_TYPES_H 13981# include <sys/types.h> 13982#endif 13983#if HAVE_SYS_SOCKET_H 13984# include <sys/socket.h> 13985#endif 13986#if HAVE_NETINET_IN_H 13987# include <netinet/in.h> 13988#endif 13989#include <sys/queue.h> 13990#include <netinet/tcp.h> 13991 13992" 13993if test "x$ac_cv_header_netinet_tcp_var_h" = xyes; then : 13994 cat >>confdefs.h <<_ACEOF 13995@%:@define HAVE_NETINET_TCP_VAR_H 1 13996_ACEOF 13997 13998fi 13999 14000done 14001 14002 14003for ac_header in net/pfvar.h 14004do : 14005 ac_fn_c_check_header_compile "$LINENO" "net/pfvar.h" "ac_cv_header_net_pfvar_h" " 14006#include <sys/types.h> 14007#include <sys/socket.h> 14008#include <netinet/in.h> 14009#include <net/if.h> 14010 14011" 14012if test "x$ac_cv_header_net_pfvar_h" = xyes; then : 14013 cat >>confdefs.h <<_ACEOF 14014@%:@define HAVE_NET_PFVAR_H 1 14015_ACEOF 14016 14017fi 14018 14019done 14020 14021 14022for ac_header in linux/netlink.h 14023do : 14024 ac_fn_c_check_header_compile "$LINENO" "linux/netlink.h" "ac_cv_header_linux_netlink_h" " 14025#include <sys/types.h> 14026#include <sys/socket.h> 14027 14028" 14029if test "x$ac_cv_header_linux_netlink_h" = xyes; then : 14030 cat >>confdefs.h <<_ACEOF 14031@%:@define HAVE_LINUX_NETLINK_H 1 14032_ACEOF 14033 14034fi 14035 14036done 14037 14038 14039# Checks for typedefs, structures, and compiler characteristics. 14040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 14041$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 14042if ${ac_cv_c_const+:} false; then : 14043 $as_echo_n "(cached) " >&6 14044else 14045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14046/* end confdefs.h. */ 14047 14048int 14049main () 14050{ 14051 14052#ifndef __cplusplus 14053 /* Ultrix mips cc rejects this sort of thing. */ 14054 typedef int charset[2]; 14055 const charset cs = { 0, 0 }; 14056 /* SunOS 4.1.1 cc rejects this. */ 14057 char const *const *pcpcc; 14058 char **ppc; 14059 /* NEC SVR4.0.2 mips cc rejects this. */ 14060 struct point {int x, y;}; 14061 static struct point const zero = {0,0}; 14062 /* AIX XL C 1.02.0.0 rejects this. 14063 It does not let you subtract one const X* pointer from another in 14064 an arm of an if-expression whose if-part is not a constant 14065 expression */ 14066 const char *g = "string"; 14067 pcpcc = &g + (g ? g-g : 0); 14068 /* HPUX 7.0 cc rejects these. */ 14069 ++pcpcc; 14070 ppc = (char**) pcpcc; 14071 pcpcc = (char const *const *) ppc; 14072 { /* SCO 3.2v4 cc rejects this sort of thing. */ 14073 char tx; 14074 char *t = &tx; 14075 char const *s = 0 ? (char *) 0 : (char const *) 0; 14076 14077 *t++ = 0; 14078 if (s) return 0; 14079 } 14080 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 14081 int x[] = {25, 17}; 14082 const int *foo = &x[0]; 14083 ++foo; 14084 } 14085 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 14086 typedef const int *iptr; 14087 iptr p = 0; 14088 ++p; 14089 } 14090 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 14091 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 14092 struct s { int j; const int *ap[3]; } bx; 14093 struct s *b = &bx; b->j = 5; 14094 } 14095 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 14096 const int foo = 10; 14097 if (!foo) return 0; 14098 } 14099 return !cs[0] && !zero.x; 14100#endif 14101 14102 ; 14103 return 0; 14104} 14105_ACEOF 14106if ac_fn_c_try_compile "$LINENO"; then : 14107 ac_cv_c_const=yes 14108else 14109 ac_cv_c_const=no 14110fi 14111rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14112fi 14113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 14114$as_echo "$ac_cv_c_const" >&6; } 14115if test $ac_cv_c_const = no; then 14116 14117$as_echo "@%:@define const /**/" >>confdefs.h 14118 14119fi 14120 14121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 14122$as_echo_n "checking for uid_t in sys/types.h... " >&6; } 14123if ${ac_cv_type_uid_t+:} false; then : 14124 $as_echo_n "(cached) " >&6 14125else 14126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14127/* end confdefs.h. */ 14128#include <sys/types.h> 14129 14130_ACEOF 14131if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 14132 $EGREP "uid_t" >/dev/null 2>&1; then : 14133 ac_cv_type_uid_t=yes 14134else 14135 ac_cv_type_uid_t=no 14136fi 14137rm -f conftest* 14138 14139fi 14140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 14141$as_echo "$ac_cv_type_uid_t" >&6; } 14142if test $ac_cv_type_uid_t = no; then 14143 14144$as_echo "@%:@define uid_t int" >>confdefs.h 14145 14146 14147$as_echo "@%:@define gid_t int" >>confdefs.h 14148 14149fi 14150 14151ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t" 14152case $ac_cv_c_int16_t in #( 14153 no|yes) ;; #( 14154 *) 14155 14156cat >>confdefs.h <<_ACEOF 14157@%:@define int16_t $ac_cv_c_int16_t 14158_ACEOF 14159;; 14160esac 14161 14162ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t" 14163case $ac_cv_c_int32_t in #( 14164 no|yes) ;; #( 14165 *) 14166 14167cat >>confdefs.h <<_ACEOF 14168@%:@define int32_t $ac_cv_c_int32_t 14169_ACEOF 14170;; 14171esac 14172 14173ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default" 14174if test "x$ac_cv_type_mode_t" = xyes; then : 14175 14176else 14177 14178cat >>confdefs.h <<_ACEOF 14179@%:@define mode_t int 14180_ACEOF 14181 14182fi 14183 14184ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" 14185if test "x$ac_cv_type_off_t" = xyes; then : 14186 14187else 14188 14189cat >>confdefs.h <<_ACEOF 14190@%:@define off_t long int 14191_ACEOF 14192 14193fi 14194 14195ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" 14196if test "x$ac_cv_type_pid_t" = xyes; then : 14197 14198else 14199 14200cat >>confdefs.h <<_ACEOF 14201@%:@define pid_t int 14202_ACEOF 14203 14204fi 14205 14206ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 14207if test "x$ac_cv_type_size_t" = xyes; then : 14208 14209else 14210 14211cat >>confdefs.h <<_ACEOF 14212@%:@define size_t unsigned int 14213_ACEOF 14214 14215fi 14216 14217ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default" 14218if test "x$ac_cv_type_ssize_t" = xyes; then : 14219 14220else 14221 14222cat >>confdefs.h <<_ACEOF 14223@%:@define ssize_t int 14224_ACEOF 14225 14226fi 14227 14228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 14229$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } 14230if ${ac_cv_struct_tm+:} false; then : 14231 $as_echo_n "(cached) " >&6 14232else 14233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14234/* end confdefs.h. */ 14235#include <sys/types.h> 14236#include <time.h> 14237 14238int 14239main () 14240{ 14241struct tm tm; 14242 int *p = &tm.tm_sec; 14243 return !p; 14244 ; 14245 return 0; 14246} 14247_ACEOF 14248if ac_fn_c_try_compile "$LINENO"; then : 14249 ac_cv_struct_tm=time.h 14250else 14251 ac_cv_struct_tm=sys/time.h 14252fi 14253rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14254fi 14255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 14256$as_echo "$ac_cv_struct_tm" >&6; } 14257if test $ac_cv_struct_tm = sys/time.h; then 14258 14259$as_echo "@%:@define TM_IN_SYS_TIME 1" >>confdefs.h 14260 14261fi 14262 14263ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t" 14264case $ac_cv_c_uint16_t in #( 14265 no|yes) ;; #( 14266 *) 14267 14268 14269cat >>confdefs.h <<_ACEOF 14270@%:@define uint16_t $ac_cv_c_uint16_t 14271_ACEOF 14272;; 14273 esac 14274 14275ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t" 14276case $ac_cv_c_uint32_t in #( 14277 no|yes) ;; #( 14278 *) 14279 14280$as_echo "@%:@define _UINT32_T 1" >>confdefs.h 14281 14282 14283cat >>confdefs.h <<_ACEOF 14284@%:@define uint32_t $ac_cv_c_uint32_t 14285_ACEOF 14286;; 14287 esac 14288 14289ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t" 14290case $ac_cv_c_uint64_t in #( 14291 no|yes) ;; #( 14292 *) 14293 14294$as_echo "@%:@define _UINT64_T 1" >>confdefs.h 14295 14296 14297cat >>confdefs.h <<_ACEOF 14298@%:@define uint64_t $ac_cv_c_uint64_t 14299_ACEOF 14300;; 14301 esac 14302 14303ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t" 14304case $ac_cv_c_uint8_t in #( 14305 no|yes) ;; #( 14306 *) 14307 14308$as_echo "@%:@define _UINT8_T 1" >>confdefs.h 14309 14310 14311cat >>confdefs.h <<_ACEOF 14312@%:@define uint8_t $ac_cv_c_uint8_t 14313_ACEOF 14314;; 14315 esac 14316 14317 14318# Checks for library functions. 14319for ac_header in unistd.h 14320do : 14321 ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default" 14322if test "x$ac_cv_header_unistd_h" = xyes; then : 14323 cat >>confdefs.h <<_ACEOF 14324@%:@define HAVE_UNISTD_H 1 14325_ACEOF 14326 14327fi 14328 14329done 14330 14331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working chown" >&5 14332$as_echo_n "checking for working chown... " >&6; } 14333if ${ac_cv_func_chown_works+:} false; then : 14334 $as_echo_n "(cached) " >&6 14335else 14336 if test "$cross_compiling" = yes; then : 14337 ac_cv_func_chown_works=no 14338else 14339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14340/* end confdefs.h. */ 14341$ac_includes_default 14342#include <fcntl.h> 14343 14344int 14345main () 14346{ 14347 char *f = "conftest.chown"; 14348 struct stat before, after; 14349 14350 if (creat (f, 0600) < 0) 14351 return 1; 14352 if (stat (f, &before) < 0) 14353 return 1; 14354 if (chown (f, (uid_t) -1, (gid_t) -1) == -1) 14355 return 1; 14356 if (stat (f, &after) < 0) 14357 return 1; 14358 return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid); 14359 14360 ; 14361 return 0; 14362} 14363_ACEOF 14364if ac_fn_c_try_run "$LINENO"; then : 14365 ac_cv_func_chown_works=yes 14366else 14367 ac_cv_func_chown_works=no 14368fi 14369rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14370 conftest.$ac_objext conftest.beam conftest.$ac_ext 14371fi 14372 14373rm -f conftest.chown 14374 14375fi 14376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chown_works" >&5 14377$as_echo "$ac_cv_func_chown_works" >&6; } 14378if test $ac_cv_func_chown_works = yes; then 14379 14380$as_echo "@%:@define HAVE_CHOWN 1" >>confdefs.h 14381 14382fi 14383 14384for ac_header in vfork.h 14385do : 14386 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default" 14387if test "x$ac_cv_header_vfork_h" = xyes; then : 14388 cat >>confdefs.h <<_ACEOF 14389@%:@define HAVE_VFORK_H 1 14390_ACEOF 14391 14392fi 14393 14394done 14395 14396for ac_func in fork vfork 14397do : 14398 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 14399ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 14400if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 14401 cat >>confdefs.h <<_ACEOF 14402@%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 14403_ACEOF 14404 14405fi 14406done 14407 14408if test "x$ac_cv_func_fork" = xyes; then 14409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5 14410$as_echo_n "checking for working fork... " >&6; } 14411if ${ac_cv_func_fork_works+:} false; then : 14412 $as_echo_n "(cached) " >&6 14413else 14414 if test "$cross_compiling" = yes; then : 14415 ac_cv_func_fork_works=cross 14416else 14417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14418/* end confdefs.h. */ 14419$ac_includes_default 14420int 14421main () 14422{ 14423 14424 /* By Ruediger Kuhlmann. */ 14425 return fork () < 0; 14426 14427 ; 14428 return 0; 14429} 14430_ACEOF 14431if ac_fn_c_try_run "$LINENO"; then : 14432 ac_cv_func_fork_works=yes 14433else 14434 ac_cv_func_fork_works=no 14435fi 14436rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14437 conftest.$ac_objext conftest.beam conftest.$ac_ext 14438fi 14439 14440fi 14441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5 14442$as_echo "$ac_cv_func_fork_works" >&6; } 14443 14444else 14445 ac_cv_func_fork_works=$ac_cv_func_fork 14446fi 14447if test "x$ac_cv_func_fork_works" = xcross; then 14448 case $host in 14449 *-*-amigaos* | *-*-msdosdjgpp*) 14450 # Override, as these systems have only a dummy fork() stub 14451 ac_cv_func_fork_works=no 14452 ;; 14453 *) 14454 ac_cv_func_fork_works=yes 14455 ;; 14456 esac 14457 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 14458$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} 14459fi 14460ac_cv_func_vfork_works=$ac_cv_func_vfork 14461if test "x$ac_cv_func_vfork" = xyes; then 14462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5 14463$as_echo_n "checking for working vfork... " >&6; } 14464if ${ac_cv_func_vfork_works+:} false; then : 14465 $as_echo_n "(cached) " >&6 14466else 14467 if test "$cross_compiling" = yes; then : 14468 ac_cv_func_vfork_works=cross 14469else 14470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14471/* end confdefs.h. */ 14472/* Thanks to Paul Eggert for this test. */ 14473$ac_includes_default 14474#include <sys/wait.h> 14475#ifdef HAVE_VFORK_H 14476# include <vfork.h> 14477#endif 14478/* On some sparc systems, changes by the child to local and incoming 14479 argument registers are propagated back to the parent. The compiler 14480 is told about this with #include <vfork.h>, but some compilers 14481 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a 14482 static variable whose address is put into a register that is 14483 clobbered by the vfork. */ 14484static void 14485#ifdef __cplusplus 14486sparc_address_test (int arg) 14487# else 14488sparc_address_test (arg) int arg; 14489#endif 14490{ 14491 static pid_t child; 14492 if (!child) { 14493 child = vfork (); 14494 if (child < 0) { 14495 perror ("vfork"); 14496 _exit(2); 14497 } 14498 if (!child) { 14499 arg = getpid(); 14500 write(-1, "", 0); 14501 _exit (arg); 14502 } 14503 } 14504} 14505 14506int 14507main () 14508{ 14509 pid_t parent = getpid (); 14510 pid_t child; 14511 14512 sparc_address_test (0); 14513 14514 child = vfork (); 14515 14516 if (child == 0) { 14517 /* Here is another test for sparc vfork register problems. This 14518 test uses lots of local variables, at least as many local 14519 variables as main has allocated so far including compiler 14520 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris 14521 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should 14522 reuse the register of parent for one of the local variables, 14523 since it will think that parent can't possibly be used any more 14524 in this routine. Assigning to the local variable will thus 14525 munge parent in the parent process. */ 14526 pid_t 14527 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), 14528 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); 14529 /* Convince the compiler that p..p7 are live; otherwise, it might 14530 use the same hardware register for all 8 local variables. */ 14531 if (p != p1 || p != p2 || p != p3 || p != p4 14532 || p != p5 || p != p6 || p != p7) 14533 _exit(1); 14534 14535 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent 14536 from child file descriptors. If the child closes a descriptor 14537 before it execs or exits, this munges the parent's descriptor 14538 as well. Test for this by closing stdout in the child. */ 14539 _exit(close(fileno(stdout)) != 0); 14540 } else { 14541 int status; 14542 struct stat st; 14543 14544 while (wait(&status) != child) 14545 ; 14546 return ( 14547 /* Was there some problem with vforking? */ 14548 child < 0 14549 14550 /* Did the child fail? (This shouldn't happen.) */ 14551 || status 14552 14553 /* Did the vfork/compiler bug occur? */ 14554 || parent != getpid() 14555 14556 /* Did the file descriptor bug occur? */ 14557 || fstat(fileno(stdout), &st) != 0 14558 ); 14559 } 14560} 14561_ACEOF 14562if ac_fn_c_try_run "$LINENO"; then : 14563 ac_cv_func_vfork_works=yes 14564else 14565 ac_cv_func_vfork_works=no 14566fi 14567rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14568 conftest.$ac_objext conftest.beam conftest.$ac_ext 14569fi 14570 14571fi 14572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5 14573$as_echo "$ac_cv_func_vfork_works" >&6; } 14574 14575fi; 14576if test "x$ac_cv_func_fork_works" = xcross; then 14577 ac_cv_func_vfork_works=$ac_cv_func_vfork 14578 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 14579$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} 14580fi 14581 14582if test "x$ac_cv_func_vfork_works" = xyes; then 14583 14584$as_echo "@%:@define HAVE_WORKING_VFORK 1" >>confdefs.h 14585 14586else 14587 14588$as_echo "@%:@define vfork fork" >>confdefs.h 14589 14590fi 14591if test "x$ac_cv_func_fork_works" = xyes; then 14592 14593$as_echo "@%:@define HAVE_WORKING_FORK 1" >>confdefs.h 14594 14595fi 14596 14597for ac_func in arc4random 14598do : 14599 ac_fn_c_check_func "$LINENO" "arc4random" "ac_cv_func_arc4random" 14600if test "x$ac_cv_func_arc4random" = xyes; then : 14601 cat >>confdefs.h <<_ACEOF 14602@%:@define HAVE_ARC4RANDOM 1 14603_ACEOF 14604 14605fi 14606done 14607 14608for ac_func in arc4random_uniform 14609do : 14610 ac_fn_c_check_func "$LINENO" "arc4random_uniform" "ac_cv_func_arc4random_uniform" 14611if test "x$ac_cv_func_arc4random_uniform" = xyes; then : 14612 cat >>confdefs.h <<_ACEOF 14613@%:@define HAVE_ARC4RANDOM_UNIFORM 1 14614_ACEOF 14615 14616fi 14617done 14618 14619for ac_func in atexit 14620do : 14621 ac_fn_c_check_func "$LINENO" "atexit" "ac_cv_func_atexit" 14622if test "x$ac_cv_func_atexit" = xyes; then : 14623 cat >>confdefs.h <<_ACEOF 14624@%:@define HAVE_ATEXIT 1 14625_ACEOF 14626 14627fi 14628done 14629 14630for ac_func in calloc 14631do : 14632 ac_fn_c_check_func "$LINENO" "calloc" "ac_cv_func_calloc" 14633if test "x$ac_cv_func_calloc" = xyes; then : 14634 cat >>confdefs.h <<_ACEOF 14635@%:@define HAVE_CALLOC 1 14636_ACEOF 14637 14638fi 14639done 14640 14641for ac_func in daemon 14642do : 14643 ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon" 14644if test "x$ac_cv_func_daemon" = xyes; then : 14645 cat >>confdefs.h <<_ACEOF 14646@%:@define HAVE_DAEMON 1 14647_ACEOF 14648 14649fi 14650done 14651 14652for ac_func in endpwent 14653do : 14654 ac_fn_c_check_func "$LINENO" "endpwent" "ac_cv_func_endpwent" 14655if test "x$ac_cv_func_endpwent" = xyes; then : 14656 cat >>confdefs.h <<_ACEOF 14657@%:@define HAVE_ENDPWENT 1 14658_ACEOF 14659 14660fi 14661done 14662 14663for ac_func in epoll_wait 14664do : 14665 ac_fn_c_check_func "$LINENO" "epoll_wait" "ac_cv_func_epoll_wait" 14666if test "x$ac_cv_func_epoll_wait" = xyes; then : 14667 cat >>confdefs.h <<_ACEOF 14668@%:@define HAVE_EPOLL_WAIT 1 14669_ACEOF 14670 14671fi 14672done 14673 14674for ac_func in ftruncate 14675do : 14676 ac_fn_c_check_func "$LINENO" "ftruncate" "ac_cv_func_ftruncate" 14677if test "x$ac_cv_func_ftruncate" = xyes; then : 14678 cat >>confdefs.h <<_ACEOF 14679@%:@define HAVE_FTRUNCATE 1 14680_ACEOF 14681 14682fi 14683done 14684 14685for ac_func in getdtablesize 14686do : 14687 ac_fn_c_check_func "$LINENO" "getdtablesize" "ac_cv_func_getdtablesize" 14688if test "x$ac_cv_func_getdtablesize" = xyes; then : 14689 cat >>confdefs.h <<_ACEOF 14690@%:@define HAVE_GETDTABLESIZE 1 14691_ACEOF 14692 14693fi 14694done 14695 14696for ac_func in gethostname 14697do : 14698 ac_fn_c_check_func "$LINENO" "gethostname" "ac_cv_func_gethostname" 14699if test "x$ac_cv_func_gethostname" = xyes; then : 14700 cat >>confdefs.h <<_ACEOF 14701@%:@define HAVE_GETHOSTNAME 1 14702_ACEOF 14703 14704fi 14705done 14706 14707for ac_func in getifaddrs 14708do : 14709 ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs" 14710if test "x$ac_cv_func_getifaddrs" = xyes; then : 14711 cat >>confdefs.h <<_ACEOF 14712@%:@define HAVE_GETIFADDRS 1 14713_ACEOF 14714 14715fi 14716done 14717 14718for ac_func in getpagesize 14719do : 14720 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" 14721if test "x$ac_cv_func_getpagesize" = xyes; then : 14722 cat >>confdefs.h <<_ACEOF 14723@%:@define HAVE_GETPAGESIZE 1 14724_ACEOF 14725 14726fi 14727done 14728 14729for ac_func in gettimeofday 14730do : 14731 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday" 14732if test "x$ac_cv_func_gettimeofday" = xyes; then : 14733 cat >>confdefs.h <<_ACEOF 14734@%:@define HAVE_GETTIMEOFDAY 1 14735_ACEOF 14736 14737fi 14738done 14739 14740for ac_func in kqueue 14741do : 14742 ac_fn_c_check_func "$LINENO" "kqueue" "ac_cv_func_kqueue" 14743if test "x$ac_cv_func_kqueue" = xyes; then : 14744 cat >>confdefs.h <<_ACEOF 14745@%:@define HAVE_KQUEUE 1 14746_ACEOF 14747 14748fi 14749done 14750 14751for ac_func in memmove 14752do : 14753 ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove" 14754if test "x$ac_cv_func_memmove" = xyes; then : 14755 cat >>confdefs.h <<_ACEOF 14756@%:@define HAVE_MEMMOVE 1 14757_ACEOF 14758 14759fi 14760done 14761 14762for ac_func in memset 14763do : 14764 ac_fn_c_check_func "$LINENO" "memset" "ac_cv_func_memset" 14765if test "x$ac_cv_func_memset" = xyes; then : 14766 cat >>confdefs.h <<_ACEOF 14767@%:@define HAVE_MEMSET 1 14768_ACEOF 14769 14770fi 14771done 14772 14773for ac_func in mkdir 14774do : 14775 ac_fn_c_check_func "$LINENO" "mkdir" "ac_cv_func_mkdir" 14776if test "x$ac_cv_func_mkdir" = xyes; then : 14777 cat >>confdefs.h <<_ACEOF 14778@%:@define HAVE_MKDIR 1 14779_ACEOF 14780 14781fi 14782done 14783 14784for ac_func in poll 14785do : 14786 ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll" 14787if test "x$ac_cv_func_poll" = xyes; then : 14788 cat >>confdefs.h <<_ACEOF 14789@%:@define HAVE_POLL 1 14790_ACEOF 14791 14792fi 14793done 14794 14795for ac_func in rmdir 14796do : 14797 ac_fn_c_check_func "$LINENO" "rmdir" "ac_cv_func_rmdir" 14798if test "x$ac_cv_func_rmdir" = xyes; then : 14799 cat >>confdefs.h <<_ACEOF 14800@%:@define HAVE_RMDIR 1 14801_ACEOF 14802 14803fi 14804done 14805 14806for ac_func in select 14807do : 14808 ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select" 14809if test "x$ac_cv_func_select" = xyes; then : 14810 cat >>confdefs.h <<_ACEOF 14811@%:@define HAVE_SELECT 1 14812_ACEOF 14813 14814fi 14815done 14816 14817for ac_func in socket 14818do : 14819 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket" 14820if test "x$ac_cv_func_socket" = xyes; then : 14821 cat >>confdefs.h <<_ACEOF 14822@%:@define HAVE_SOCKET 1 14823_ACEOF 14824 14825fi 14826done 14827 14828for ac_func in snprintf 14829do : 14830 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf" 14831if test "x$ac_cv_func_snprintf" = xyes; then : 14832 cat >>confdefs.h <<_ACEOF 14833@%:@define HAVE_SNPRINTF 1 14834_ACEOF 14835 14836fi 14837done 14838 14839for ac_func in setproctitle 14840do : 14841 ac_fn_c_check_func "$LINENO" "setproctitle" "ac_cv_func_setproctitle" 14842if test "x$ac_cv_func_setproctitle" = xyes; then : 14843 cat >>confdefs.h <<_ACEOF 14844@%:@define HAVE_SETPROCTITLE 1 14845_ACEOF 14846 14847fi 14848done 14849 14850for ac_func in strcasecmp 14851do : 14852 ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp" 14853if test "x$ac_cv_func_strcasecmp" = xyes; then : 14854 cat >>confdefs.h <<_ACEOF 14855@%:@define HAVE_STRCASECMP 1 14856_ACEOF 14857 14858fi 14859done 14860 14861for ac_func in strcasestr 14862do : 14863 ac_fn_c_check_func "$LINENO" "strcasestr" "ac_cv_func_strcasestr" 14864if test "x$ac_cv_func_strcasestr" = xyes; then : 14865 cat >>confdefs.h <<_ACEOF 14866@%:@define HAVE_STRCASESTR 1 14867_ACEOF 14868 14869fi 14870done 14871 14872for ac_func in strdup 14873do : 14874 ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup" 14875if test "x$ac_cv_func_strdup" = xyes; then : 14876 cat >>confdefs.h <<_ACEOF 14877@%:@define HAVE_STRDUP 1 14878_ACEOF 14879 14880fi 14881done 14882 14883for ac_func in strerror 14884do : 14885 ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror" 14886if test "x$ac_cv_func_strerror" = xyes; then : 14887 cat >>confdefs.h <<_ACEOF 14888@%:@define HAVE_STRERROR 1 14889_ACEOF 14890 14891fi 14892done 14893 14894for ac_func in strncasecmp 14895do : 14896 ac_fn_c_check_func "$LINENO" "strncasecmp" "ac_cv_func_strncasecmp" 14897if test "x$ac_cv_func_strncasecmp" = xyes; then : 14898 cat >>confdefs.h <<_ACEOF 14899@%:@define HAVE_STRNCASECMP 1 14900_ACEOF 14901 14902fi 14903done 14904 14905for ac_func in strtol 14906do : 14907 ac_fn_c_check_func "$LINENO" "strtol" "ac_cv_func_strtol" 14908if test "x$ac_cv_func_strtol" = xyes; then : 14909 cat >>confdefs.h <<_ACEOF 14910@%:@define HAVE_STRTOL 1 14911_ACEOF 14912 14913fi 14914done 14915 14916for ac_func in sysctl 14917do : 14918 ac_fn_c_check_func "$LINENO" "sysctl" "ac_cv_func_sysctl" 14919if test "x$ac_cv_func_sysctl" = xyes; then : 14920 cat >>confdefs.h <<_ACEOF 14921@%:@define HAVE_SYSCTL 1 14922_ACEOF 14923 14924fi 14925done 14926 14927for ac_func in uname 14928do : 14929 ac_fn_c_check_func "$LINENO" "uname" "ac_cv_func_uname" 14930if test "x$ac_cv_func_uname" = xyes; then : 14931 cat >>confdefs.h <<_ACEOF 14932@%:@define HAVE_UNAME 1 14933_ACEOF 14934 14935fi 14936done 14937 14938 14939# The cast to long int works around a bug in the HP C Compiler 14940# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 14941# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 14942# This bug is HP SR number 8606223364. 14943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 14944$as_echo_n "checking size of long... " >&6; } 14945if ${ac_cv_sizeof_long+:} false; then : 14946 $as_echo_n "(cached) " >&6 14947else 14948 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : 14949 14950else 14951 if test "$ac_cv_type_long" = yes; then 14952 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14953$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14954as_fn_error 77 "cannot compute sizeof (long) 14955See \`config.log' for more details" "$LINENO" 5; } 14956 else 14957 ac_cv_sizeof_long=0 14958 fi 14959fi 14960 14961fi 14962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 14963$as_echo "$ac_cv_sizeof_long" >&6; } 14964 14965 14966 14967cat >>confdefs.h <<_ACEOF 14968@%:@define SIZEOF_LONG $ac_cv_sizeof_long 14969_ACEOF 14970 14971 14972 14973ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h> 14974 #include <sys/socket.h> 14975" 14976if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then : 14977 14978$as_echo "@%:@define HAVE_STRUCT_SOCKADDR_SA_LEN 1" >>confdefs.h 14979 14980else 14981 : 14982fi 14983 14984 14985if test "x$ac_cv_header_net_pfvar_h" == xyes; then 14986 ac_fn_c_check_member "$LINENO" "struct pfioc_trans_e" "type" "ac_cv_member_struct_pfioc_trans_e_type" "#include <sys/types.h> 14987 #include <sys/socket.h> 14988 #include <netinet/in.h> 14989 #include <net/if.h> 14990 #include <net/pfvar.h> 14991" 14992if test "x$ac_cv_member_struct_pfioc_trans_e_type" = xyes; then : 14993 14994$as_echo "@%:@define HAVE_STRUCT_PFIOC_TRANS_E_TYPE 1" >>confdefs.h 14995 14996else 14997 : 14998fi 14999 15000 ac_fn_c_check_member "$LINENO" "struct pfioc_trans_e" "rs_num" "ac_cv_member_struct_pfioc_trans_e_rs_num" "#include <sys/types.h> 15001 #include <sys/socket.h> 15002 #include <netinet/in.h> 15003 #include <net/if.h> 15004 #include <net/pfvar.h> 15005" 15006if test "x$ac_cv_member_struct_pfioc_trans_e_rs_num" = xyes; then : 15007 15008$as_echo "@%:@define HAVE_STRUCT_PFIOC_TRANS_E_RS_NUM 1" >>confdefs.h 15009 15010else 15011 : 15012fi 15013 15014 ac_fn_c_check_member "$LINENO" "struct pf_rule" "nat" "ac_cv_member_struct_pf_rule_nat" "#include <sys/types.h> 15015 #include <sys/socket.h> 15016 #include <netinet/in.h> 15017 #include <net/if.h> 15018 #include <net/pfvar.h> 15019" 15020if test "x$ac_cv_member_struct_pf_rule_nat" = xyes; then : 15021 15022$as_echo "@%:@define HAVE_STRUCT_PF_RULE_NAT 1" >>confdefs.h 15023 15024else 15025 : 15026fi 15027 15028 ac_fn_c_check_member "$LINENO" "struct pf_rule" "rdr" "ac_cv_member_struct_pf_rule_rdr" "#include <sys/types.h> 15029 #include <sys/socket.h> 15030 #include <netinet/in.h> 15031 #include <net/if.h> 15032 #include <net/pfvar.h> 15033" 15034if test "x$ac_cv_member_struct_pf_rule_rdr" = xyes; then : 15035 15036$as_echo "@%:@define HAVE_STRUCT_PF_RULE_RDR 1" >>confdefs.h 15037 15038else 15039 : 15040fi 15041 15042fi 15043 15044# Check for structs 15045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct nlmsghdr" >&5 15046$as_echo_n "checking for struct nlmsghdr... " >&6; } 15047cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15048/* end confdefs.h. */ 15049 15050 #include <sys/types.h> 15051 #include <sys/socket.h> 15052 #include <linux/netlink.h> 15053 15054int 15055main () 15056{ 15057 15058 struct nlmsghdr msg; 15059 15060 ; 15061 return 0; 15062} 15063_ACEOF 15064if ac_fn_c_try_compile "$LINENO"; then : 15065 15066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15067$as_echo "yes" >&6; } 15068 15069cat >>confdefs.h <<_ACEOF 15070@%:@define HAVE_STRUCT_NLMSGHDR 1 15071_ACEOF 15072 15073 15074else 15075 15076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15077$as_echo "no" >&6; } 15078 15079fi 15080rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15081 15082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct nlmsgerr" >&5 15083$as_echo_n "checking for struct nlmsgerr... " >&6; } 15084cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15085/* end confdefs.h. */ 15086 15087 #include <sys/types.h> 15088 #include <sys/socket.h> 15089 #include <linux/netlink.h> 15090 15091int 15092main () 15093{ 15094 15095 struct nlmsgerr msgerr; 15096 15097 ; 15098 return 0; 15099} 15100_ACEOF 15101if ac_fn_c_try_compile "$LINENO"; then : 15102 15103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15104$as_echo "yes" >&6; } 15105 15106cat >>confdefs.h <<_ACEOF 15107@%:@define HAVE_STRUCT_NLMSGERR 1 15108_ACEOF 15109 15110 15111else 15112 15113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15114$as_echo "no" >&6; } 15115 15116fi 15117rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15118 15119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_nl" >&5 15120$as_echo_n "checking for struct sockaddr_nl... " >&6; } 15121cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15122/* end confdefs.h. */ 15123 15124 #include <sys/types.h> 15125 #include <sys/socket.h> 15126 #include <linux/netlink.h> 15127 15128int 15129main () 15130{ 15131 15132 struct sockaddr_nl snl; 15133 15134 ; 15135 return 0; 15136} 15137_ACEOF 15138if ac_fn_c_try_compile "$LINENO"; then : 15139 15140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15141$as_echo "yes" >&6; } 15142 15143cat >>confdefs.h <<_ACEOF 15144@%:@define HAVE_STRUCT_SOCKADDR_NL 1 15145_ACEOF 15146 15147 15148else 15149 15150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15151$as_echo "no" >&6; } 15152 15153fi 15154rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15155 15156# These libraries have to be explicitly linked in OpenSolaris 15157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getaddrinfo" >&5 15158$as_echo_n "checking for library containing getaddrinfo... " >&6; } 15159if ${ac_cv_search_getaddrinfo+:} false; then : 15160 $as_echo_n "(cached) " >&6 15161else 15162 ac_func_search_save_LIBS=$LIBS 15163cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15164/* end confdefs.h. */ 15165 15166/* Override any GCC internal prototype to avoid an error. 15167 Use char because int might match the return type of a GCC 15168 builtin and then its argument prototype would still apply. */ 15169#ifdef __cplusplus 15170extern "C" 15171#endif 15172char getaddrinfo (); 15173int 15174main () 15175{ 15176return getaddrinfo (); 15177 ; 15178 return 0; 15179} 15180_ACEOF 15181for ac_lib in '' socket; do 15182 if test -z "$ac_lib"; then 15183 ac_res="none required" 15184 else 15185 ac_res=-l$ac_lib 15186 LIBS="-l$ac_lib -lnsl $ac_func_search_save_LIBS" 15187 fi 15188 if ac_fn_c_try_link "$LINENO"; then : 15189 ac_cv_search_getaddrinfo=$ac_res 15190fi 15191rm -f core conftest.err conftest.$ac_objext \ 15192 conftest$ac_exeext 15193 if ${ac_cv_search_getaddrinfo+:} false; then : 15194 break 15195fi 15196done 15197if ${ac_cv_search_getaddrinfo+:} false; then : 15198 15199else 15200 ac_cv_search_getaddrinfo=no 15201fi 15202rm conftest.$ac_ext 15203LIBS=$ac_func_search_save_LIBS 15204fi 15205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getaddrinfo" >&5 15206$as_echo "$ac_cv_search_getaddrinfo" >&6; } 15207ac_res=$ac_cv_search_getaddrinfo 15208if test "$ac_res" != no; then : 15209 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 15210 15211fi 15212 15213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntop" >&5 15214$as_echo_n "checking for library containing inet_ntop... " >&6; } 15215if ${ac_cv_search_inet_ntop+:} false; then : 15216 $as_echo_n "(cached) " >&6 15217else 15218 ac_func_search_save_LIBS=$LIBS 15219cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15220/* end confdefs.h. */ 15221 15222/* Override any GCC internal prototype to avoid an error. 15223 Use char because int might match the return type of a GCC 15224 builtin and then its argument prototype would still apply. */ 15225#ifdef __cplusplus 15226extern "C" 15227#endif 15228char inet_ntop (); 15229int 15230main () 15231{ 15232return inet_ntop (); 15233 ; 15234 return 0; 15235} 15236_ACEOF 15237for ac_lib in '' nsl; do 15238 if test -z "$ac_lib"; then 15239 ac_res="none required" 15240 else 15241 ac_res=-l$ac_lib 15242 LIBS="-l$ac_lib -lsocket $ac_func_search_save_LIBS" 15243 fi 15244 if ac_fn_c_try_link "$LINENO"; then : 15245 ac_cv_search_inet_ntop=$ac_res 15246fi 15247rm -f core conftest.err conftest.$ac_objext \ 15248 conftest$ac_exeext 15249 if ${ac_cv_search_inet_ntop+:} false; then : 15250 break 15251fi 15252done 15253if ${ac_cv_search_inet_ntop+:} false; then : 15254 15255else 15256 ac_cv_search_inet_ntop=no 15257fi 15258rm conftest.$ac_ext 15259LIBS=$ac_func_search_save_LIBS 15260fi 15261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntop" >&5 15262$as_echo "$ac_cv_search_inet_ntop" >&6; } 15263ac_res=$ac_cv_search_inet_ntop 15264if test "$ac_res" != no; then : 15265 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 15266 15267fi 15268 15269 15270# Some systems need -lm to use sqrt. 15271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sqrt" >&5 15272$as_echo_n "checking for library containing sqrt... " >&6; } 15273if ${ac_cv_search_sqrt+:} false; then : 15274 $as_echo_n "(cached) " >&6 15275else 15276 ac_func_search_save_LIBS=$LIBS 15277cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15278/* end confdefs.h. */ 15279 15280/* Override any GCC internal prototype to avoid an error. 15281 Use char because int might match the return type of a GCC 15282 builtin and then its argument prototype would still apply. */ 15283#ifdef __cplusplus 15284extern "C" 15285#endif 15286char sqrt (); 15287int 15288main () 15289{ 15290return sqrt (); 15291 ; 15292 return 0; 15293} 15294_ACEOF 15295for ac_lib in '' m; do 15296 if test -z "$ac_lib"; then 15297 ac_res="none required" 15298 else 15299 ac_res=-l$ac_lib 15300 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 15301 fi 15302 if ac_fn_c_try_link "$LINENO"; then : 15303 ac_cv_search_sqrt=$ac_res 15304fi 15305rm -f core conftest.err conftest.$ac_objext \ 15306 conftest$ac_exeext 15307 if ${ac_cv_search_sqrt+:} false; then : 15308 break 15309fi 15310done 15311if ${ac_cv_search_sqrt+:} false; then : 15312 15313else 15314 ac_cv_search_sqrt=no 15315fi 15316rm conftest.$ac_ext 15317LIBS=$ac_func_search_save_LIBS 15318fi 15319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sqrt" >&5 15320$as_echo "$ac_cv_search_sqrt" >&6; } 15321ac_res=$ac_cv_search_sqrt 15322if test "$ac_res" != no; then : 15323 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 15324 15325fi 15326 15327 15328 15329 found=false 15330 15331@%:@ Check whether --with-openssl was given. 15332if test "${with_openssl+set}" = set; then : 15333 withval=$with_openssl; 15334 case "$withval" in 15335 "" | y | ye | yes | n | no) 15336 as_fn_error $? "Invalid --with-openssl value" "$LINENO" 5 15337 ;; 15338 *) ssldirs="$withval" 15339 ;; 15340 esac 15341 15342else 15343 15344 # if pkg-config is installed and openssl has installed a .pc file, 15345 # then use that information and don't search ssldirs 15346 if test -n "$ac_tool_prefix"; then 15347 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 15348set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 15349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15350$as_echo_n "checking for $ac_word... " >&6; } 15351if ${ac_cv_prog_PKG_CONFIG+:} false; then : 15352 $as_echo_n "(cached) " >&6 15353else 15354 if test -n "$PKG_CONFIG"; then 15355 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test. 15356else 15357as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15358for as_dir in $PATH 15359do 15360 IFS=$as_save_IFS 15361 test -z "$as_dir" && as_dir=. 15362 for ac_exec_ext in '' $ac_executable_extensions; do 15363 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15364 ac_cv_prog_PKG_CONFIG="${ac_tool_prefix}pkg-config" 15365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15366 break 2 15367 fi 15368done 15369 done 15370IFS=$as_save_IFS 15371 15372fi 15373fi 15374PKG_CONFIG=$ac_cv_prog_PKG_CONFIG 15375if test -n "$PKG_CONFIG"; then 15376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 15377$as_echo "$PKG_CONFIG" >&6; } 15378else 15379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15380$as_echo "no" >&6; } 15381fi 15382 15383 15384fi 15385if test -z "$ac_cv_prog_PKG_CONFIG"; then 15386 ac_ct_PKG_CONFIG=$PKG_CONFIG 15387 # Extract the first word of "pkg-config", so it can be a program name with args. 15388set dummy pkg-config; ac_word=$2 15389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15390$as_echo_n "checking for $ac_word... " >&6; } 15391if ${ac_cv_prog_ac_ct_PKG_CONFIG+:} false; then : 15392 $as_echo_n "(cached) " >&6 15393else 15394 if test -n "$ac_ct_PKG_CONFIG"; then 15395 ac_cv_prog_ac_ct_PKG_CONFIG="$ac_ct_PKG_CONFIG" # Let the user override the test. 15396else 15397as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15398for as_dir in $PATH 15399do 15400 IFS=$as_save_IFS 15401 test -z "$as_dir" && as_dir=. 15402 for ac_exec_ext in '' $ac_executable_extensions; do 15403 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15404 ac_cv_prog_ac_ct_PKG_CONFIG="pkg-config" 15405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15406 break 2 15407 fi 15408done 15409 done 15410IFS=$as_save_IFS 15411 15412fi 15413fi 15414ac_ct_PKG_CONFIG=$ac_cv_prog_ac_ct_PKG_CONFIG 15415if test -n "$ac_ct_PKG_CONFIG"; then 15416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_PKG_CONFIG" >&5 15417$as_echo "$ac_ct_PKG_CONFIG" >&6; } 15418else 15419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15420$as_echo "no" >&6; } 15421fi 15422 15423 if test "x$ac_ct_PKG_CONFIG" = x; then 15424 PKG_CONFIG="" 15425 else 15426 case $cross_compiling:$ac_tool_warned in 15427yes:) 15428{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 15429$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 15430ac_tool_warned=yes ;; 15431esac 15432 PKG_CONFIG=$ac_ct_PKG_CONFIG 15433 fi 15434else 15435 PKG_CONFIG="$ac_cv_prog_PKG_CONFIG" 15436fi 15437 15438 if test x"$PKG_CONFIG" != x""; then 15439 OPENSSL_LDFLAGS=`$PKG_CONFIG openssl --libs-only-L 2>/dev/null` 15440 if test $? = 0; then 15441 OPENSSL_LIBS=`$PKG_CONFIG openssl --libs-only-l 2>/dev/null` 15442 OPENSSL_INCLUDES=`$PKG_CONFIG openssl --cflags-only-I 2>/dev/null` 15443 found=true 15444 fi 15445 fi 15446 15447 # no such luck; use some default ssldirs 15448 if ! $found; then 15449 ssldirs="/usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /usr" 15450 fi 15451 15452 15453fi 15454 15455 15456 15457 # note that we #include <openssl/foo.h>, so the OpenSSL headers have to be in 15458 # an 'openssl' subdirectory 15459 15460 if ! $found; then 15461 OPENSSL_INCLUDES= 15462 for ssldir in $ssldirs; do 15463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for include/openssl/ssl.h in $ssldir" >&5 15464$as_echo_n "checking for include/openssl/ssl.h in $ssldir... " >&6; } 15465 if test -f "$ssldir/include/openssl/ssl.h"; then 15466 OPENSSL_INCLUDES="-I$ssldir/include" 15467 OPENSSL_LDFLAGS="-L$ssldir/lib" 15468 OPENSSL_LIBS="-lssl -lcrypto" 15469 found=true 15470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15471$as_echo "yes" >&6; } 15472 break 15473 else 15474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15475$as_echo "no" >&6; } 15476 fi 15477 done 15478 15479 # if the file wasn't found, well, go ahead and try the link anyway -- maybe 15480 # it will just work! 15481 fi 15482 15483 # try the preprocessor and linker with our new flags, 15484 # being careful not to pollute the global LIBS, LDFLAGS, and CPPFLAGS 15485 15486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiling and linking against OpenSSL works" >&5 15487$as_echo_n "checking whether compiling and linking against OpenSSL works... " >&6; } 15488 echo "Trying link with OPENSSL_LDFLAGS=$OPENSSL_LDFLAGS;" \ 15489 "OPENSSL_LIBS=$OPENSSL_LIBS; OPENSSL_INCLUDES=$OPENSSL_INCLUDES" >&5 15490 15491 save_LIBS="$LIBS" 15492 save_LDFLAGS="$LDFLAGS" 15493 save_CPPFLAGS="$CPPFLAGS" 15494 LDFLAGS="$LDFLAGS $OPENSSL_LDFLAGS" 15495 LIBS="$OPENSSL_LIBS $LIBS" 15496 CPPFLAGS="$OPENSSL_INCLUDES $CPPFLAGS" 15497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15498/* end confdefs.h. */ 15499#include <openssl/ssl.h> 15500int 15501main () 15502{ 15503SSL_new(NULL) 15504 ; 15505 return 0; 15506} 15507_ACEOF 15508if ac_fn_c_try_link "$LINENO"; then : 15509 15510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15511$as_echo "yes" >&6; } 15512 15513$as_echo "@%:@define HAVE_OPENSSL 1" >>confdefs.h 15514 15515 CFLAGS="$CFLAGS $OPENSSL_INCLUDES" 15516 have_openssl=yes 15517 15518else 15519 15520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15521$as_echo "no" >&6; } 15522 15523 15524fi 15525rm -f core conftest.err conftest.$ac_objext \ 15526 conftest$ac_exeext conftest.$ac_ext 15527 CPPFLAGS="$save_CPPFLAGS" 15528 LDFLAGS="$save_LDFLAGS" 15529 LIBS="$save_LIBS" 15530 15531 15532 15533 15534 15535 15536if test "x$have_openssl" = xyes; then 15537 save_LIBS="$LIBS" 15538 save_LDFLAGS="$LDFLAGS" 15539 LDFLAGS="$LDFLAGS $OPENSSL_LDFLAGS" 15540 LIBS="$LIBS $OPENSSL_LIBS" 15541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X509_VERIFY_PARAM_set1_host" >&5 15542$as_echo_n "checking for X509_VERIFY_PARAM_set1_host... " >&6; } 15543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15544/* end confdefs.h. */ 15545 15546 15547 #include <openssl/bio.h> 15548 #include <openssl/ssl.h> 15549 #include <openssl/err.h> 15550 #include <openssl/x509v3.h> 15551int 15552main () 15553{ 15554 15555 X509_VERIFY_PARAM *p = X509_VERIFY_PARAM_new(); 15556 X509_VERIFY_PARAM_set_hostflags(p, X509_CHECK_FLAG_NO_PARTIAL_WILDCARDS); 15557 X509_VERIFY_PARAM_set1_host(p, "localhost", 0); 15558 15559 ; 15560 return 0; 15561} 15562 15563_ACEOF 15564if ac_fn_c_try_link "$LINENO"; then : 15565 15566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15567$as_echo "yes" >&6; } 15568 15569cat >>confdefs.h <<_ACEOF 15570@%:@define HAVE_X509_VERIFY_PARAM_SET1_HOST 1 15571_ACEOF 15572 15573 15574else 15575 15576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15577$as_echo "no" >&6; } 15578 15579fi 15580rm -f core conftest.err conftest.$ac_objext \ 15581 conftest$ac_exeext conftest.$ac_ext 15582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ASN1_STRING_get0_data" >&5 15583$as_echo_n "checking for ASN1_STRING_get0_data... " >&6; } 15584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15585/* end confdefs.h. */ 15586 15587 15588 #include <openssl/bio.h> 15589 #include <openssl/ssl.h> 15590 #include <openssl/err.h> 15591 #include <openssl/x509v3.h> 15592int 15593main () 15594{ 15595 15596 ASN1_STRING_get0_data(NULL); 15597 15598 ; 15599 return 0; 15600} 15601 15602_ACEOF 15603if ac_fn_c_try_link "$LINENO"; then : 15604 15605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15606$as_echo "yes" >&6; } 15607 15608cat >>confdefs.h <<_ACEOF 15609@%:@define HAVE_ASN1_STRING_GET0_DATA 1 15610_ACEOF 15611 15612 15613else 15614 15615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15616$as_echo "no" >&6; } 15617 15618fi 15619rm -f core conftest.err conftest.$ac_objext \ 15620 conftest$ac_exeext conftest.$ac_ext 15621 LDFLAGS="$save_LDFLAGS" 15622 LIBS="$save_LIBS" 15623fi 15624 15625 15626 15627 15628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_clz" >&5 15629$as_echo_n "checking for __builtin_clz... " >&6; } 15630if ${ax_cv_have___builtin_clz+:} false; then : 15631 $as_echo_n "(cached) " >&6 15632else 15633 15634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15635/* end confdefs.h. */ 15636 15637int 15638main () 15639{ 15640 15641 __builtin_clz(0) 15642 15643 ; 15644 return 0; 15645} 15646_ACEOF 15647if ac_fn_c_try_link "$LINENO"; then : 15648 ax_cv_have___builtin_clz=yes 15649else 15650 ax_cv_have___builtin_clz=no 15651fi 15652rm -f core conftest.err conftest.$ac_objext \ 15653 conftest$ac_exeext conftest.$ac_ext 15654 15655fi 15656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have___builtin_clz" >&5 15657$as_echo "$ax_cv_have___builtin_clz" >&6; } 15658 15659 if test yes = $ax_cv_have___builtin_clz; then : 15660 15661cat >>confdefs.h <<_ACEOF 15662@%:@define HAVE___BUILTIN_CLZ 1 15663_ACEOF 15664 15665fi 15666 15667 15668 15669 15670# No thread support 15671@%:@ Check whether --enable-threads was given. 15672if test "${enable_threads+set}" = set; then : 15673 enableval=$enable_threads; 15674fi 15675 15676 15677if test "x$enable_threads" != xno; then 15678 15679 15680 15681 15682ac_ext=c 15683ac_cpp='$CPP $CPPFLAGS' 15684ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15685ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15686ac_compiler_gnu=$ac_cv_c_compiler_gnu 15687 15688ax_pthread_ok=no 15689 15690# We used to check for pthread.h first, but this fails if pthread.h 15691# requires special compiler flags (e.g. on Tru64 or Sequent). 15692# It gets checked for in the link test anyway. 15693 15694# First of all, check if the user has set any of the PTHREAD_LIBS, 15695# etcetera environment variables, and if threads linking works using 15696# them: 15697if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then 15698 ax_pthread_save_CC="$CC" 15699 ax_pthread_save_CFLAGS="$CFLAGS" 15700 ax_pthread_save_LIBS="$LIBS" 15701 if test "x$PTHREAD_CC" != "x"; then : 15702 CC="$PTHREAD_CC" 15703fi 15704 if test "x$PTHREAD_CXX" != "x"; then : 15705 CXX="$PTHREAD_CXX" 15706fi 15707 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 15708 LIBS="$PTHREAD_LIBS $LIBS" 15709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5 15710$as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; } 15711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15712/* end confdefs.h. */ 15713 15714/* Override any GCC internal prototype to avoid an error. 15715 Use char because int might match the return type of a GCC 15716 builtin and then its argument prototype would still apply. */ 15717#ifdef __cplusplus 15718extern "C" 15719#endif 15720char pthread_join (); 15721int 15722main () 15723{ 15724return pthread_join (); 15725 ; 15726 return 0; 15727} 15728_ACEOF 15729if ac_fn_c_try_link "$LINENO"; then : 15730 ax_pthread_ok=yes 15731fi 15732rm -f core conftest.err conftest.$ac_objext \ 15733 conftest$ac_exeext conftest.$ac_ext 15734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 15735$as_echo "$ax_pthread_ok" >&6; } 15736 if test "x$ax_pthread_ok" = "xno"; then 15737 PTHREAD_LIBS="" 15738 PTHREAD_CFLAGS="" 15739 fi 15740 CC="$ax_pthread_save_CC" 15741 CFLAGS="$ax_pthread_save_CFLAGS" 15742 LIBS="$ax_pthread_save_LIBS" 15743fi 15744 15745# We must check for the threads library under a number of different 15746# names; the ordering is very important because some systems 15747# (e.g. DEC) have both -lpthread and -lpthreads, where one of the 15748# libraries is broken (non-POSIX). 15749 15750# Create a list of thread flags to try. Items with a "," contain both 15751# C compiler flags (before ",") and linker flags (after ","). Other items 15752# starting with a "-" are C compiler flags, and remaining items are 15753# library names, except for "none" which indicates that we try without 15754# any flags at all, and "pthread-config" which is a program returning 15755# the flags for the Pth emulation library. 15756 15757ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config" 15758 15759# The ordering *is* (sometimes) important. Some notes on the 15760# individual items follow: 15761 15762# pthreads: AIX (must check this before -lpthread) 15763# none: in case threads are in libc; should be tried before -Kthread and 15764# other compiler flags to prevent continual compiler warnings 15765# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) 15766# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64 15767# (Note: HP C rejects this with "bad form for `-t' option") 15768# -pthreads: Solaris/gcc (Note: HP C also rejects) 15769# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it 15770# doesn't hurt to check since this sometimes defines pthreads and 15771# -D_REENTRANT too), HP C (must be checked before -lpthread, which 15772# is present but should not be used directly; and before -mthreads, 15773# because the compiler interprets this as "-mt" + "-hreads") 15774# -mthreads: Mingw32/gcc, Lynx/gcc 15775# pthread: Linux, etcetera 15776# --thread-safe: KAI C++ 15777# pthread-config: use pthread-config program (for GNU Pth library) 15778 15779case $host_os in 15780 15781 freebsd*) 15782 15783 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) 15784 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread) 15785 15786 ax_pthread_flags="-kthread lthread $ax_pthread_flags" 15787 ;; 15788 15789 hpux*) 15790 15791 # From the cc(1) man page: "[-mt] Sets various -D flags to enable 15792 # multi-threading and also sets -lpthread." 15793 15794 ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags" 15795 ;; 15796 15797 openedition*) 15798 15799 # IBM z/OS requires a feature-test macro to be defined in order to 15800 # enable POSIX threads at all, so give the user a hint if this is 15801 # not set. (We don't define these ourselves, as they can affect 15802 # other portions of the system API in unpredictable ways.) 15803 15804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15805/* end confdefs.h. */ 15806 15807# if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS) 15808 AX_PTHREAD_ZOS_MISSING 15809# endif 15810 15811_ACEOF 15812if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 15813 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1; then : 15814 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5 15815$as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;} 15816fi 15817rm -f conftest* 15818 15819 ;; 15820 15821 solaris*) 15822 15823 # On Solaris (at least, for some versions), libc contains stubbed 15824 # (non-functional) versions of the pthreads routines, so link-based 15825 # tests will erroneously succeed. (N.B.: The stubs are missing 15826 # pthread_cleanup_push, or rather a function called by this macro, 15827 # so we could check for that, but who knows whether they'll stub 15828 # that too in a future libc.) So we'll check first for the 15829 # standard Solaris way of linking pthreads (-mt -lpthread). 15830 15831 ax_pthread_flags="-mt,-lpthread pthread $ax_pthread_flags" 15832 ;; 15833esac 15834 15835# Are we compiling with Clang? 15836 15837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5 15838$as_echo_n "checking whether $CC is Clang... " >&6; } 15839if ${ax_cv_PTHREAD_CLANG+:} false; then : 15840 $as_echo_n "(cached) " >&6 15841else 15842 ax_cv_PTHREAD_CLANG=no 15843 # Note that Autoconf sets GCC=yes for Clang as well as GCC 15844 if test "x$GCC" = "xyes"; then 15845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15846/* end confdefs.h. */ 15847/* Note: Clang 2.7 lacks __clang_[a-z]+__ */ 15848# if defined(__clang__) && defined(__llvm__) 15849 AX_PTHREAD_CC_IS_CLANG 15850# endif 15851 15852_ACEOF 15853if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 15854 $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1; then : 15855 ax_cv_PTHREAD_CLANG=yes 15856fi 15857rm -f conftest* 15858 15859 fi 15860 15861fi 15862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5 15863$as_echo "$ax_cv_PTHREAD_CLANG" >&6; } 15864ax_pthread_clang="$ax_cv_PTHREAD_CLANG" 15865 15866 15867# GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC) 15868 15869# Note that for GCC and Clang -pthread generally implies -lpthread, 15870# except when -nostdlib is passed. 15871# This is problematic using libtool to build C++ shared libraries with pthread: 15872# [1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=25460 15873# [2] https://bugzilla.redhat.com/show_bug.cgi?id=661333 15874# [3] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=468555 15875# To solve this, first try -pthread together with -lpthread for GCC 15876 15877if test "x$GCC" = "xyes"; then : 15878 ax_pthread_flags="-pthread,-lpthread -pthread -pthreads $ax_pthread_flags" 15879fi 15880 15881# Clang takes -pthread (never supported any other flag), but we'll try with -lpthread first 15882 15883if test "x$ax_pthread_clang" = "xyes"; then : 15884 ax_pthread_flags="-pthread,-lpthread -pthread" 15885fi 15886 15887 15888# The presence of a feature test macro requesting re-entrant function 15889# definitions is, on some systems, a strong hint that pthreads support is 15890# correctly enabled 15891 15892case $host_os in 15893 darwin* | hpux* | linux* | osf* | solaris*) 15894 ax_pthread_check_macro="_REENTRANT" 15895 ;; 15896 15897 aix*) 15898 ax_pthread_check_macro="_THREAD_SAFE" 15899 ;; 15900 15901 *) 15902 ax_pthread_check_macro="--" 15903 ;; 15904esac 15905if test "x$ax_pthread_check_macro" = "x--"; then : 15906 ax_pthread_check_cond=0 15907else 15908 ax_pthread_check_cond="!defined($ax_pthread_check_macro)" 15909fi 15910 15911 15912if test "x$ax_pthread_ok" = "xno"; then 15913for ax_pthread_try_flag in $ax_pthread_flags; do 15914 15915 case $ax_pthread_try_flag in 15916 none) 15917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5 15918$as_echo_n "checking whether pthreads work without any flags... " >&6; } 15919 ;; 15920 15921 *,*) 15922 PTHREAD_CFLAGS=`echo $ax_pthread_try_flag | sed "s/^\(.*\),\(.*\)$/\1/"` 15923 PTHREAD_LIBS=`echo $ax_pthread_try_flag | sed "s/^\(.*\),\(.*\)$/\2/"` 15924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with \"$PTHREAD_CFLAGS\" and \"$PTHREAD_LIBS\"" >&5 15925$as_echo_n "checking whether pthreads work with \"$PTHREAD_CFLAGS\" and \"$PTHREAD_LIBS\"... " >&6; } 15926 ;; 15927 15928 -*) 15929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5 15930$as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; } 15931 PTHREAD_CFLAGS="$ax_pthread_try_flag" 15932 ;; 15933 15934 pthread-config) 15935 # Extract the first word of "pthread-config", so it can be a program name with args. 15936set dummy pthread-config; ac_word=$2 15937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15938$as_echo_n "checking for $ac_word... " >&6; } 15939if ${ac_cv_prog_ax_pthread_config+:} false; then : 15940 $as_echo_n "(cached) " >&6 15941else 15942 if test -n "$ax_pthread_config"; then 15943 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test. 15944else 15945as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15946for as_dir in $PATH 15947do 15948 IFS=$as_save_IFS 15949 test -z "$as_dir" && as_dir=. 15950 for ac_exec_ext in '' $ac_executable_extensions; do 15951 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15952 ac_cv_prog_ax_pthread_config="yes" 15953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15954 break 2 15955 fi 15956done 15957 done 15958IFS=$as_save_IFS 15959 15960 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no" 15961fi 15962fi 15963ax_pthread_config=$ac_cv_prog_ax_pthread_config 15964if test -n "$ax_pthread_config"; then 15965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5 15966$as_echo "$ax_pthread_config" >&6; } 15967else 15968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15969$as_echo "no" >&6; } 15970fi 15971 15972 15973 if test "x$ax_pthread_config" = "xno"; then : 15974 continue 15975fi 15976 PTHREAD_CFLAGS="`pthread-config --cflags`" 15977 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" 15978 ;; 15979 15980 *) 15981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5 15982$as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; } 15983 PTHREAD_LIBS="-l$ax_pthread_try_flag" 15984 ;; 15985 esac 15986 15987 ax_pthread_save_CFLAGS="$CFLAGS" 15988 ax_pthread_save_LIBS="$LIBS" 15989 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 15990 LIBS="$PTHREAD_LIBS $LIBS" 15991 15992 # Check for various functions. We must include pthread.h, 15993 # since some functions may be macros. (On the Sequent, we 15994 # need a special flag -Kthread to make this header compile.) 15995 # We check for pthread_join because it is in -lpthread on IRIX 15996 # while pthread_create is in libc. We check for pthread_attr_init 15997 # due to DEC craziness with -lpthreads. We check for 15998 # pthread_cleanup_push because it is one of the few pthread 15999 # functions on Solaris that doesn't have a non-functional libc stub. 16000 # We try pthread_create on general principles. 16001 16002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16003/* end confdefs.h. */ 16004#include <pthread.h> 16005# if $ax_pthread_check_cond 16006# error "$ax_pthread_check_macro must be defined" 16007# endif 16008 static void *some_global = NULL; 16009 static void routine(void *a) 16010 { 16011 /* To avoid any unused-parameter or 16012 unused-but-set-parameter warning. */ 16013 some_global = a; 16014 } 16015 static void *start_routine(void *a) { return a; } 16016int 16017main () 16018{ 16019pthread_t th; pthread_attr_t attr; 16020 pthread_create(&th, 0, start_routine, 0); 16021 pthread_join(th, 0); 16022 pthread_attr_init(&attr); 16023 pthread_cleanup_push(routine, 0); 16024 pthread_cleanup_pop(0) /* ; */ 16025 ; 16026 return 0; 16027} 16028_ACEOF 16029if ac_fn_c_try_link "$LINENO"; then : 16030 ax_pthread_ok=yes 16031fi 16032rm -f core conftest.err conftest.$ac_objext \ 16033 conftest$ac_exeext conftest.$ac_ext 16034 16035 CFLAGS="$ax_pthread_save_CFLAGS" 16036 LIBS="$ax_pthread_save_LIBS" 16037 16038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 16039$as_echo "$ax_pthread_ok" >&6; } 16040 if test "x$ax_pthread_ok" = "xyes"; then : 16041 break 16042fi 16043 16044 PTHREAD_LIBS="" 16045 PTHREAD_CFLAGS="" 16046done 16047fi 16048 16049 16050# Clang needs special handling, because older versions handle the -pthread 16051# option in a rather... idiosyncratic way 16052 16053if test "x$ax_pthread_clang" = "xyes"; then 16054 16055 # Clang takes -pthread; it has never supported any other flag 16056 16057 # (Note 1: This will need to be revisited if a system that Clang 16058 # supports has POSIX threads in a separate library. This tends not 16059 # to be the way of modern systems, but it's conceivable.) 16060 16061 # (Note 2: On some systems, notably Darwin, -pthread is not needed 16062 # to get POSIX threads support; the API is always present and 16063 # active. We could reasonably leave PTHREAD_CFLAGS empty. But 16064 # -pthread does define _REENTRANT, and while the Darwin headers 16065 # ignore this macro, third-party headers might not.) 16066 16067 # However, older versions of Clang make a point of warning the user 16068 # that, in an invocation where only linking and no compilation is 16069 # taking place, the -pthread option has no effect ("argument unused 16070 # during compilation"). They expect -pthread to be passed in only 16071 # when source code is being compiled. 16072 # 16073 # Problem is, this is at odds with the way Automake and most other 16074 # C build frameworks function, which is that the same flags used in 16075 # compilation (CFLAGS) are also used in linking. Many systems 16076 # supported by AX_PTHREAD require exactly this for POSIX threads 16077 # support, and in fact it is often not straightforward to specify a 16078 # flag that is used only in the compilation phase and not in 16079 # linking. Such a scenario is extremely rare in practice. 16080 # 16081 # Even though use of the -pthread flag in linking would only print 16082 # a warning, this can be a nuisance for well-run software projects 16083 # that build with -Werror. So if the active version of Clang has 16084 # this misfeature, we search for an option to squash it. 16085 16086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5 16087$as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; } 16088if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false; then : 16089 $as_echo_n "(cached) " >&6 16090else 16091 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown 16092 # Create an alternate version of $ac_link that compiles and 16093 # links in two steps (.c -> .o, .o -> exe) instead of one 16094 # (.c -> exe), because the warning occurs only in the second 16095 # step 16096 ax_pthread_save_ac_link="$ac_link" 16097 ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g' 16098 ax_pthread_link_step=`$as_echo "$ac_link" | sed "$ax_pthread_sed"` 16099 ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)" 16100 ax_pthread_save_CFLAGS="$CFLAGS" 16101 for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do 16102 if test "x$ax_pthread_try" = "xunknown"; then : 16103 break 16104fi 16105 CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS" 16106 ac_link="$ax_pthread_save_ac_link" 16107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16108/* end confdefs.h. */ 16109int main(void){return 0;} 16110_ACEOF 16111if ac_fn_c_try_link "$LINENO"; then : 16112 ac_link="$ax_pthread_2step_ac_link" 16113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16114/* end confdefs.h. */ 16115int main(void){return 0;} 16116_ACEOF 16117if ac_fn_c_try_link "$LINENO"; then : 16118 break 16119fi 16120rm -f core conftest.err conftest.$ac_objext \ 16121 conftest$ac_exeext conftest.$ac_ext 16122 16123fi 16124rm -f core conftest.err conftest.$ac_objext \ 16125 conftest$ac_exeext conftest.$ac_ext 16126 done 16127 ac_link="$ax_pthread_save_ac_link" 16128 CFLAGS="$ax_pthread_save_CFLAGS" 16129 if test "x$ax_pthread_try" = "x"; then : 16130 ax_pthread_try=no 16131fi 16132 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try" 16133 16134fi 16135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5 16136$as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; } 16137 16138 case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in 16139 no | unknown) ;; 16140 *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;; 16141 esac 16142 16143fi # $ax_pthread_clang = yes 16144 16145 16146 16147# Various other checks: 16148if test "x$ax_pthread_ok" = "xyes"; then 16149 ax_pthread_save_CFLAGS="$CFLAGS" 16150 ax_pthread_save_LIBS="$LIBS" 16151 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 16152 LIBS="$PTHREAD_LIBS $LIBS" 16153 16154 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED. 16155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5 16156$as_echo_n "checking for joinable pthread attribute... " >&6; } 16157if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false; then : 16158 $as_echo_n "(cached) " >&6 16159else 16160 ax_cv_PTHREAD_JOINABLE_ATTR=unknown 16161 for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do 16162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16163/* end confdefs.h. */ 16164#include <pthread.h> 16165int 16166main () 16167{ 16168int attr = $ax_pthread_attr; return attr /* ; */ 16169 ; 16170 return 0; 16171} 16172_ACEOF 16173if ac_fn_c_try_link "$LINENO"; then : 16174 ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break 16175fi 16176rm -f core conftest.err conftest.$ac_objext \ 16177 conftest$ac_exeext conftest.$ac_ext 16178 done 16179 16180fi 16181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5 16182$as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; } 16183 if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \ 16184 test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \ 16185 test "x$ax_pthread_joinable_attr_defined" != "xyes"; then : 16186 16187cat >>confdefs.h <<_ACEOF 16188@%:@define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR 16189_ACEOF 16190 16191 ax_pthread_joinable_attr_defined=yes 16192 16193fi 16194 16195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5 16196$as_echo_n "checking whether more special flags are required for pthreads... " >&6; } 16197if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false; then : 16198 $as_echo_n "(cached) " >&6 16199else 16200 ax_cv_PTHREAD_SPECIAL_FLAGS=no 16201 case $host_os in 16202 solaris*) 16203 ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS" 16204 ;; 16205 esac 16206 16207fi 16208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5 16209$as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; } 16210 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \ 16211 test "x$ax_pthread_special_flags_added" != "xyes"; then : 16212 PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS" 16213 ax_pthread_special_flags_added=yes 16214fi 16215 16216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5 16217$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; } 16218if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then : 16219 $as_echo_n "(cached) " >&6 16220else 16221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16222/* end confdefs.h. */ 16223#include <pthread.h> 16224int 16225main () 16226{ 16227int i = PTHREAD_PRIO_INHERIT; 16228 return i; 16229 ; 16230 return 0; 16231} 16232_ACEOF 16233if ac_fn_c_try_link "$LINENO"; then : 16234 ax_cv_PTHREAD_PRIO_INHERIT=yes 16235else 16236 ax_cv_PTHREAD_PRIO_INHERIT=no 16237fi 16238rm -f core conftest.err conftest.$ac_objext \ 16239 conftest$ac_exeext conftest.$ac_ext 16240 16241fi 16242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5 16243$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; } 16244 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \ 16245 test "x$ax_pthread_prio_inherit_defined" != "xyes"; then : 16246 16247$as_echo "@%:@define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h 16248 16249 ax_pthread_prio_inherit_defined=yes 16250 16251fi 16252 16253 CFLAGS="$ax_pthread_save_CFLAGS" 16254 LIBS="$ax_pthread_save_LIBS" 16255 16256 # More AIX lossage: compile with *_r variant 16257 if test "x$GCC" != "xyes"; then 16258 case $host_os in 16259 aix*) 16260 case "x/$CC" in @%:@( 16261 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) : 16262 #handle absolute path differently from PATH based program lookup 16263 case "x$CC" in @%:@( 16264 x/*) : 16265 16266 if as_fn_executable_p ${CC}_r; then : 16267 PTHREAD_CC="${CC}_r" 16268fi 16269 if test "x${CXX}" != "x"; then : 16270 if as_fn_executable_p ${CXX}_r; then : 16271 PTHREAD_CXX="${CXX}_r" 16272fi 16273fi 16274 ;; @%:@( 16275 *) : 16276 16277 for ac_prog in ${CC}_r 16278do 16279 # Extract the first word of "$ac_prog", so it can be a program name with args. 16280set dummy $ac_prog; ac_word=$2 16281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16282$as_echo_n "checking for $ac_word... " >&6; } 16283if ${ac_cv_prog_PTHREAD_CC+:} false; then : 16284 $as_echo_n "(cached) " >&6 16285else 16286 if test -n "$PTHREAD_CC"; then 16287 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test. 16288else 16289as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16290for as_dir in $PATH 16291do 16292 IFS=$as_save_IFS 16293 test -z "$as_dir" && as_dir=. 16294 for ac_exec_ext in '' $ac_executable_extensions; do 16295 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16296 ac_cv_prog_PTHREAD_CC="$ac_prog" 16297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16298 break 2 16299 fi 16300done 16301 done 16302IFS=$as_save_IFS 16303 16304fi 16305fi 16306PTHREAD_CC=$ac_cv_prog_PTHREAD_CC 16307if test -n "$PTHREAD_CC"; then 16308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5 16309$as_echo "$PTHREAD_CC" >&6; } 16310else 16311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16312$as_echo "no" >&6; } 16313fi 16314 16315 16316 test -n "$PTHREAD_CC" && break 16317done 16318test -n "$PTHREAD_CC" || PTHREAD_CC="$CC" 16319 16320 if test "x${CXX}" != "x"; then : 16321 for ac_prog in ${CXX}_r 16322do 16323 # Extract the first word of "$ac_prog", so it can be a program name with args. 16324set dummy $ac_prog; ac_word=$2 16325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16326$as_echo_n "checking for $ac_word... " >&6; } 16327if ${ac_cv_prog_PTHREAD_CXX+:} false; then : 16328 $as_echo_n "(cached) " >&6 16329else 16330 if test -n "$PTHREAD_CXX"; then 16331 ac_cv_prog_PTHREAD_CXX="$PTHREAD_CXX" # Let the user override the test. 16332else 16333as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16334for as_dir in $PATH 16335do 16336 IFS=$as_save_IFS 16337 test -z "$as_dir" && as_dir=. 16338 for ac_exec_ext in '' $ac_executable_extensions; do 16339 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16340 ac_cv_prog_PTHREAD_CXX="$ac_prog" 16341 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16342 break 2 16343 fi 16344done 16345 done 16346IFS=$as_save_IFS 16347 16348fi 16349fi 16350PTHREAD_CXX=$ac_cv_prog_PTHREAD_CXX 16351if test -n "$PTHREAD_CXX"; then 16352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CXX" >&5 16353$as_echo "$PTHREAD_CXX" >&6; } 16354else 16355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16356$as_echo "no" >&6; } 16357fi 16358 16359 16360 test -n "$PTHREAD_CXX" && break 16361done 16362test -n "$PTHREAD_CXX" || PTHREAD_CXX="$CXX" 16363 16364fi 16365 16366 ;; 16367esac 16368 ;; @%:@( 16369 *) : 16370 ;; 16371esac 16372 ;; 16373 esac 16374 fi 16375fi 16376 16377test -n "$PTHREAD_CC" || PTHREAD_CC="$CC" 16378test -n "$PTHREAD_CXX" || PTHREAD_CXX="$CXX" 16379 16380 16381 16382 16383 16384 16385# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: 16386if test "x$ax_pthread_ok" = "xyes"; then 16387 16388$as_echo "@%:@define HAVE_PTHREAD 1" >>confdefs.h 16389 16390 : 16391else 16392 ax_pthread_ok=no 16393 16394fi 16395ac_ext=c 16396ac_cpp='$CPP $CPPFLAGS' 16397ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16398ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16399ac_compiler_gnu=$ac_cv_c_compiler_gnu 16400 16401 16402fi 16403 16404ac_config_files="$ac_config_files Makefile scamper/Makefile utils/Makefile utils/sc_ally/Makefile utils/sc_analysis_dump/Makefile utils/sc_attach/Makefile utils/sc_bdrmap/Makefile utils/sc_erosprober/Makefile" 16405 16406 16407if test "x$with_sc_hoiho" != xno; then 16408 ac_config_files="$ac_config_files utils/sc_hoiho/Makefile" 16409 16410fi 16411 16412ac_config_files="$ac_config_files utils/sc_filterpolicy/Makefile utils/sc_ipiddump/Makefile utils/sc_pinger/Makefile utils/sc_prefixscan/Makefile utils/sc_radargun/Makefile utils/sc_remoted/Makefile utils/sc_speedtrap/Makefile utils/sc_tbitblind/Makefile utils/sc_tbitpmtud/Makefile utils/sc_tracediff/Makefile utils/sc_ttlexp/Makefile" 16413 16414 16415if test "x$with_sc_uptime" != xno; then 16416 ac_config_files="$ac_config_files utils/sc_uptime/Makefile" 16417 16418fi 16419 16420ac_config_files="$ac_config_files utils/sc_warts2csv/Makefile utils/sc_warts2json/Makefile utils/sc_warts2pcap/Makefile utils/sc_warts2text/Makefile utils/sc_wartscat/Makefile utils/sc_wartsdump/Makefile utils/sc_wartsfilter/Makefile utils/sc_wartsfix/Makefile" 16421 16422 16423cat >confcache <<\_ACEOF 16424# This file is a shell script that caches the results of configure 16425# tests run on this system so they can be shared between configure 16426# scripts and configure runs, see configure's option --config-cache. 16427# It is not useful on other systems. If it contains results you don't 16428# want to keep, you may remove or edit it. 16429# 16430# config.status only pays attention to the cache file if you give it 16431# the --recheck option to rerun configure. 16432# 16433# `ac_cv_env_foo' variables (set or unset) will be overridden when 16434# loading this file, other *unset* `ac_cv_foo' will be assigned the 16435# following values. 16436 16437_ACEOF 16438 16439# The following way of writing the cache mishandles newlines in values, 16440# but we know of no workaround that is simple, portable, and efficient. 16441# So, we kill variables containing newlines. 16442# Ultrix sh set writes to stderr and can't be redirected directly, 16443# and sets the high bit in the cache file unless we assign to the vars. 16444( 16445 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 16446 eval ac_val=\$$ac_var 16447 case $ac_val in #( 16448 *${as_nl}*) 16449 case $ac_var in #( 16450 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 16451$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 16452 esac 16453 case $ac_var in #( 16454 _ | IFS | as_nl) ;; #( 16455 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 16456 *) { eval $ac_var=; unset $ac_var;} ;; 16457 esac ;; 16458 esac 16459 done 16460 16461 (set) 2>&1 | 16462 case $as_nl`(ac_space=' '; set) 2>&1` in #( 16463 *${as_nl}ac_space=\ *) 16464 # `set' does not quote correctly, so add quotes: double-quote 16465 # substitution turns \\\\ into \\, and sed turns \\ into \. 16466 sed -n \ 16467 "s/'/'\\\\''/g; 16468 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 16469 ;; #( 16470 *) 16471 # `set' quotes correctly as required by POSIX, so do not add quotes. 16472 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 16473 ;; 16474 esac | 16475 sort 16476) | 16477 sed ' 16478 /^ac_cv_env_/b end 16479 t clear 16480 :clear 16481 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 16482 t end 16483 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 16484 :end' >>confcache 16485if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 16486 if test -w "$cache_file"; then 16487 if test "x$cache_file" != "x/dev/null"; then 16488 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 16489$as_echo "$as_me: updating cache $cache_file" >&6;} 16490 if test ! -f "$cache_file" || test -h "$cache_file"; then 16491 cat confcache >"$cache_file" 16492 else 16493 case $cache_file in #( 16494 */* | ?:*) 16495 mv -f confcache "$cache_file"$$ && 16496 mv -f "$cache_file"$$ "$cache_file" ;; #( 16497 *) 16498 mv -f confcache "$cache_file" ;; 16499 esac 16500 fi 16501 fi 16502 else 16503 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 16504$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 16505 fi 16506fi 16507rm -f confcache 16508 16509test "x$prefix" = xNONE && prefix=$ac_default_prefix 16510# Let make expand exec_prefix. 16511test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 16512 16513DEFS=-DHAVE_CONFIG_H 16514 16515ac_libobjs= 16516ac_ltlibobjs= 16517U= 16518for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue 16519 # 1. Remove the extension, and $U if already installed. 16520 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 16521 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 16522 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 16523 # will be set to the directory where LIBOBJS objects are built. 16524 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 16525 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 16526done 16527LIB@&t@OBJS=$ac_libobjs 16528 16529LTLIBOBJS=$ac_ltlibobjs 16530 16531 16532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 16533$as_echo_n "checking that generated files are newer than configure... " >&6; } 16534 if test -n "$am_sleep_pid"; then 16535 # Hide warnings about reused PIDs. 16536 wait $am_sleep_pid 2>/dev/null 16537 fi 16538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 16539$as_echo "done" >&6; } 16540 if test -n "$EXEEXT"; then 16541 am__EXEEXT_TRUE= 16542 am__EXEEXT_FALSE='#' 16543else 16544 am__EXEEXT_TRUE='#' 16545 am__EXEEXT_FALSE= 16546fi 16547 16548if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 16549 as_fn_error $? "conditional \"AMDEP\" was never defined. 16550Usually this means the macro was only invoked conditionally." "$LINENO" 5 16551fi 16552if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 16553 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 16554Usually this means the macro was only invoked conditionally." "$LINENO" 5 16555fi 16556if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 16557 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 16558Usually this means the macro was only invoked conditionally." "$LINENO" 5 16559fi 16560if test -z "${WITH_SC_HOIHO_TRUE}" && test -z "${WITH_SC_HOIHO_FALSE}"; then 16561 as_fn_error $? "conditional \"WITH_SC_HOIHO\" was never defined. 16562Usually this means the macro was only invoked conditionally." "$LINENO" 5 16563fi 16564if test -z "${WITH_SC_UPTIME_TRUE}" && test -z "${WITH_SC_UPTIME_FALSE}"; then 16565 as_fn_error $? "conditional \"WITH_SC_UPTIME\" was never defined. 16566Usually this means the macro was only invoked conditionally." "$LINENO" 5 16567fi 16568 16569: "${CONFIG_STATUS=./config.status}" 16570ac_write_fail=0 16571ac_clean_files_save=$ac_clean_files 16572ac_clean_files="$ac_clean_files $CONFIG_STATUS" 16573{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 16574$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 16575as_write_fail=0 16576cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 16577#! $SHELL 16578# Generated by $as_me. 16579# Run this file to recreate the current configuration. 16580# Compiler output produced by configure, useful for debugging 16581# configure, is in config.log if it exists. 16582 16583debug=false 16584ac_cs_recheck=false 16585ac_cs_silent=false 16586 16587SHELL=\${CONFIG_SHELL-$SHELL} 16588export SHELL 16589_ASEOF 16590cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 16591## -------------------- ## 16592## M4sh Initialization. ## 16593## -------------------- ## 16594 16595# Be more Bourne compatible 16596DUALCASE=1; export DUALCASE # for MKS sh 16597if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 16598 emulate sh 16599 NULLCMD=: 16600 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 16601 # is contrary to our usage. Disable this feature. 16602 alias -g '${1+"$@"}'='"$@"' 16603 setopt NO_GLOB_SUBST 16604else 16605 case `(set -o) 2>/dev/null` in @%:@( 16606 *posix*) : 16607 set -o posix ;; @%:@( 16608 *) : 16609 ;; 16610esac 16611fi 16612 16613 16614as_nl=' 16615' 16616export as_nl 16617# Printing a long string crashes Solaris 7 /usr/bin/printf. 16618as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 16619as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 16620as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 16621# Prefer a ksh shell builtin over an external printf program on Solaris, 16622# but without wasting forks for bash or zsh. 16623if test -z "$BASH_VERSION$ZSH_VERSION" \ 16624 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 16625 as_echo='print -r --' 16626 as_echo_n='print -rn --' 16627elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 16628 as_echo='printf %s\n' 16629 as_echo_n='printf %s' 16630else 16631 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 16632 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 16633 as_echo_n='/usr/ucb/echo -n' 16634 else 16635 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 16636 as_echo_n_body='eval 16637 arg=$1; 16638 case $arg in @%:@( 16639 *"$as_nl"*) 16640 expr "X$arg" : "X\\(.*\\)$as_nl"; 16641 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 16642 esac; 16643 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 16644 ' 16645 export as_echo_n_body 16646 as_echo_n='sh -c $as_echo_n_body as_echo' 16647 fi 16648 export as_echo_body 16649 as_echo='sh -c $as_echo_body as_echo' 16650fi 16651 16652# The user is always right. 16653if test "${PATH_SEPARATOR+set}" != set; then 16654 PATH_SEPARATOR=: 16655 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 16656 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 16657 PATH_SEPARATOR=';' 16658 } 16659fi 16660 16661 16662# IFS 16663# We need space, tab and new line, in precisely that order. Quoting is 16664# there to prevent editors from complaining about space-tab. 16665# (If _AS_PATH_WALK were called with IFS unset, it would disable word 16666# splitting by setting IFS to empty value.) 16667IFS=" "" $as_nl" 16668 16669# Find who we are. Look in the path if we contain no directory separator. 16670as_myself= 16671case $0 in @%:@(( 16672 *[\\/]* ) as_myself=$0 ;; 16673 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16674for as_dir in $PATH 16675do 16676 IFS=$as_save_IFS 16677 test -z "$as_dir" && as_dir=. 16678 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 16679 done 16680IFS=$as_save_IFS 16681 16682 ;; 16683esac 16684# We did not find ourselves, most probably we were run as `sh COMMAND' 16685# in which case we are not to be found in the path. 16686if test "x$as_myself" = x; then 16687 as_myself=$0 16688fi 16689if test ! -f "$as_myself"; then 16690 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 16691 exit 1 16692fi 16693 16694# Unset variables that we do not need and which cause bugs (e.g. in 16695# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 16696# suppresses any "Segmentation fault" message there. '((' could 16697# trigger a bug in pdksh 5.2.14. 16698for as_var in BASH_ENV ENV MAIL MAILPATH 16699do eval test x\${$as_var+set} = xset \ 16700 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 16701done 16702PS1='$ ' 16703PS2='> ' 16704PS4='+ ' 16705 16706# NLS nuisances. 16707LC_ALL=C 16708export LC_ALL 16709LANGUAGE=C 16710export LANGUAGE 16711 16712# CDPATH. 16713(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 16714 16715 16716@%:@ as_fn_error STATUS ERROR [LINENO LOG_FD] 16717@%:@ ---------------------------------------- 16718@%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are 16719@%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the 16720@%:@ script with STATUS, using 1 if that was 0. 16721as_fn_error () 16722{ 16723 as_status=$1; test $as_status -eq 0 && as_status=1 16724 if test "$4"; then 16725 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 16726 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 16727 fi 16728 $as_echo "$as_me: error: $2" >&2 16729 as_fn_exit $as_status 16730} @%:@ as_fn_error 16731 16732 16733@%:@ as_fn_set_status STATUS 16734@%:@ ----------------------- 16735@%:@ Set @S|@? to STATUS, without forking. 16736as_fn_set_status () 16737{ 16738 return $1 16739} @%:@ as_fn_set_status 16740 16741@%:@ as_fn_exit STATUS 16742@%:@ ----------------- 16743@%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 16744as_fn_exit () 16745{ 16746 set +e 16747 as_fn_set_status $1 16748 exit $1 16749} @%:@ as_fn_exit 16750 16751@%:@ as_fn_unset VAR 16752@%:@ --------------- 16753@%:@ Portably unset VAR. 16754as_fn_unset () 16755{ 16756 { eval $1=; unset $1;} 16757} 16758as_unset=as_fn_unset 16759@%:@ as_fn_append VAR VALUE 16760@%:@ ---------------------- 16761@%:@ Append the text in VALUE to the end of the definition contained in VAR. Take 16762@%:@ advantage of any shell optimizations that allow amortized linear growth over 16763@%:@ repeated appends, instead of the typical quadratic growth present in naive 16764@%:@ implementations. 16765if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 16766 eval 'as_fn_append () 16767 { 16768 eval $1+=\$2 16769 }' 16770else 16771 as_fn_append () 16772 { 16773 eval $1=\$$1\$2 16774 } 16775fi # as_fn_append 16776 16777@%:@ as_fn_arith ARG... 16778@%:@ ------------------ 16779@%:@ Perform arithmetic evaluation on the ARGs, and store the result in the 16780@%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments 16781@%:@ must be portable across @S|@(()) and expr. 16782if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 16783 eval 'as_fn_arith () 16784 { 16785 as_val=$(( $* )) 16786 }' 16787else 16788 as_fn_arith () 16789 { 16790 as_val=`expr "$@" || test $? -eq 1` 16791 } 16792fi # as_fn_arith 16793 16794 16795if expr a : '\(a\)' >/dev/null 2>&1 && 16796 test "X`expr 00001 : '.*\(...\)'`" = X001; then 16797 as_expr=expr 16798else 16799 as_expr=false 16800fi 16801 16802if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 16803 as_basename=basename 16804else 16805 as_basename=false 16806fi 16807 16808if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 16809 as_dirname=dirname 16810else 16811 as_dirname=false 16812fi 16813 16814as_me=`$as_basename -- "$0" || 16815$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 16816 X"$0" : 'X\(//\)$' \| \ 16817 X"$0" : 'X\(/\)' \| . 2>/dev/null || 16818$as_echo X/"$0" | 16819 sed '/^.*\/\([^/][^/]*\)\/*$/{ 16820 s//\1/ 16821 q 16822 } 16823 /^X\/\(\/\/\)$/{ 16824 s//\1/ 16825 q 16826 } 16827 /^X\/\(\/\).*/{ 16828 s//\1/ 16829 q 16830 } 16831 s/.*/./; q'` 16832 16833# Avoid depending upon Character Ranges. 16834as_cr_letters='abcdefghijklmnopqrstuvwxyz' 16835as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 16836as_cr_Letters=$as_cr_letters$as_cr_LETTERS 16837as_cr_digits='0123456789' 16838as_cr_alnum=$as_cr_Letters$as_cr_digits 16839 16840ECHO_C= ECHO_N= ECHO_T= 16841case `echo -n x` in @%:@((((( 16842-n*) 16843 case `echo 'xy\c'` in 16844 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 16845 xy) ECHO_C='\c';; 16846 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 16847 ECHO_T=' ';; 16848 esac;; 16849*) 16850 ECHO_N='-n';; 16851esac 16852 16853rm -f conf$$ conf$$.exe conf$$.file 16854if test -d conf$$.dir; then 16855 rm -f conf$$.dir/conf$$.file 16856else 16857 rm -f conf$$.dir 16858 mkdir conf$$.dir 2>/dev/null 16859fi 16860if (echo >conf$$.file) 2>/dev/null; then 16861 if ln -s conf$$.file conf$$ 2>/dev/null; then 16862 as_ln_s='ln -s' 16863 # ... but there are two gotchas: 16864 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 16865 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 16866 # In both cases, we have to default to `cp -pR'. 16867 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 16868 as_ln_s='cp -pR' 16869 elif ln conf$$.file conf$$ 2>/dev/null; then 16870 as_ln_s=ln 16871 else 16872 as_ln_s='cp -pR' 16873 fi 16874else 16875 as_ln_s='cp -pR' 16876fi 16877rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 16878rmdir conf$$.dir 2>/dev/null 16879 16880 16881@%:@ as_fn_mkdir_p 16882@%:@ ------------- 16883@%:@ Create "@S|@as_dir" as a directory, including parents if necessary. 16884as_fn_mkdir_p () 16885{ 16886 16887 case $as_dir in #( 16888 -*) as_dir=./$as_dir;; 16889 esac 16890 test -d "$as_dir" || eval $as_mkdir_p || { 16891 as_dirs= 16892 while :; do 16893 case $as_dir in #( 16894 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 16895 *) as_qdir=$as_dir;; 16896 esac 16897 as_dirs="'$as_qdir' $as_dirs" 16898 as_dir=`$as_dirname -- "$as_dir" || 16899$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16900 X"$as_dir" : 'X\(//\)[^/]' \| \ 16901 X"$as_dir" : 'X\(//\)$' \| \ 16902 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 16903$as_echo X"$as_dir" | 16904 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16905 s//\1/ 16906 q 16907 } 16908 /^X\(\/\/\)[^/].*/{ 16909 s//\1/ 16910 q 16911 } 16912 /^X\(\/\/\)$/{ 16913 s//\1/ 16914 q 16915 } 16916 /^X\(\/\).*/{ 16917 s//\1/ 16918 q 16919 } 16920 s/.*/./; q'` 16921 test -d "$as_dir" && break 16922 done 16923 test -z "$as_dirs" || eval "mkdir $as_dirs" 16924 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 16925 16926 16927} @%:@ as_fn_mkdir_p 16928if mkdir -p . 2>/dev/null; then 16929 as_mkdir_p='mkdir -p "$as_dir"' 16930else 16931 test -d ./-p && rmdir ./-p 16932 as_mkdir_p=false 16933fi 16934 16935 16936@%:@ as_fn_executable_p FILE 16937@%:@ ----------------------- 16938@%:@ Test if FILE is an executable regular file. 16939as_fn_executable_p () 16940{ 16941 test -f "$1" && test -x "$1" 16942} @%:@ as_fn_executable_p 16943as_test_x='test -x' 16944as_executable_p=as_fn_executable_p 16945 16946# Sed expression to map a string onto a valid CPP name. 16947as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 16948 16949# Sed expression to map a string onto a valid variable name. 16950as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 16951 16952 16953exec 6>&1 16954## ----------------------------------- ## 16955## Main body of $CONFIG_STATUS script. ## 16956## ----------------------------------- ## 16957_ASEOF 16958test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 16959 16960cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16961# Save the log message, to keep $0 and so on meaningful, and to 16962# report actual input values of CONFIG_FILES etc. instead of their 16963# values after options handling. 16964ac_log=" 16965This file was extended by scamper $as_me 20211026, which was 16966generated by GNU Autoconf 2.69. Invocation command line was 16967 16968 CONFIG_FILES = $CONFIG_FILES 16969 CONFIG_HEADERS = $CONFIG_HEADERS 16970 CONFIG_LINKS = $CONFIG_LINKS 16971 CONFIG_COMMANDS = $CONFIG_COMMANDS 16972 $ $0 $@ 16973 16974on `(hostname || uname -n) 2>/dev/null | sed 1q` 16975" 16976 16977_ACEOF 16978 16979case $ac_config_files in *" 16980"*) set x $ac_config_files; shift; ac_config_files=$*;; 16981esac 16982 16983case $ac_config_headers in *" 16984"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 16985esac 16986 16987 16988cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16989# Files that config.status was made for. 16990config_files="$ac_config_files" 16991config_headers="$ac_config_headers" 16992config_commands="$ac_config_commands" 16993 16994_ACEOF 16995 16996cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16997ac_cs_usage="\ 16998\`$as_me' instantiates files and other configuration actions 16999from templates according to the current configuration. Unless the files 17000and actions are specified as TAGs, all are instantiated by default. 17001 17002Usage: $0 [OPTION]... [TAG]... 17003 17004 -h, --help print this help, then exit 17005 -V, --version print version number and configuration settings, then exit 17006 --config print configuration, then exit 17007 -q, --quiet, --silent 17008 do not print progress messages 17009 -d, --debug don't remove temporary files 17010 --recheck update $as_me by reconfiguring in the same conditions 17011 --file=FILE[:TEMPLATE] 17012 instantiate the configuration file FILE 17013 --header=FILE[:TEMPLATE] 17014 instantiate the configuration header FILE 17015 17016Configuration files: 17017$config_files 17018 17019Configuration headers: 17020$config_headers 17021 17022Configuration commands: 17023$config_commands 17024 17025Report bugs to <mjl@luckie.org.nz>." 17026 17027_ACEOF 17028cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17029ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 17030ac_cs_version="\\ 17031scamper config.status 20211026 17032configured by $0, generated by GNU Autoconf 2.69, 17033 with options \\"\$ac_cs_config\\" 17034 17035Copyright (C) 2012 Free Software Foundation, Inc. 17036This config.status script is free software; the Free Software Foundation 17037gives unlimited permission to copy, distribute and modify it." 17038 17039ac_pwd='$ac_pwd' 17040srcdir='$srcdir' 17041INSTALL='$INSTALL' 17042MKDIR_P='$MKDIR_P' 17043AWK='$AWK' 17044test -n "\$AWK" || AWK=awk 17045_ACEOF 17046 17047cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17048# The default lists apply if the user does not specify any file. 17049ac_need_defaults=: 17050while test $# != 0 17051do 17052 case $1 in 17053 --*=?*) 17054 ac_option=`expr "X$1" : 'X\([^=]*\)='` 17055 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 17056 ac_shift=: 17057 ;; 17058 --*=) 17059 ac_option=`expr "X$1" : 'X\([^=]*\)='` 17060 ac_optarg= 17061 ac_shift=: 17062 ;; 17063 *) 17064 ac_option=$1 17065 ac_optarg=$2 17066 ac_shift=shift 17067 ;; 17068 esac 17069 17070 case $ac_option in 17071 # Handling of the options. 17072 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 17073 ac_cs_recheck=: ;; 17074 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 17075 $as_echo "$ac_cs_version"; exit ;; 17076 --config | --confi | --conf | --con | --co | --c ) 17077 $as_echo "$ac_cs_config"; exit ;; 17078 --debug | --debu | --deb | --de | --d | -d ) 17079 debug=: ;; 17080 --file | --fil | --fi | --f ) 17081 $ac_shift 17082 case $ac_optarg in 17083 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 17084 '') as_fn_error $? "missing file argument" ;; 17085 esac 17086 as_fn_append CONFIG_FILES " '$ac_optarg'" 17087 ac_need_defaults=false;; 17088 --header | --heade | --head | --hea ) 17089 $ac_shift 17090 case $ac_optarg in 17091 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 17092 esac 17093 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 17094 ac_need_defaults=false;; 17095 --he | --h) 17096 # Conflict between --help and --header 17097 as_fn_error $? "ambiguous option: \`$1' 17098Try \`$0 --help' for more information.";; 17099 --help | --hel | -h ) 17100 $as_echo "$ac_cs_usage"; exit ;; 17101 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 17102 | -silent | --silent | --silen | --sile | --sil | --si | --s) 17103 ac_cs_silent=: ;; 17104 17105 # This is an error. 17106 -*) as_fn_error $? "unrecognized option: \`$1' 17107Try \`$0 --help' for more information." ;; 17108 17109 *) as_fn_append ac_config_targets " $1" 17110 ac_need_defaults=false ;; 17111 17112 esac 17113 shift 17114done 17115 17116ac_configure_extra_args= 17117 17118if $ac_cs_silent; then 17119 exec 6>/dev/null 17120 ac_configure_extra_args="$ac_configure_extra_args --silent" 17121fi 17122 17123_ACEOF 17124cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17125if \$ac_cs_recheck; then 17126 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 17127 shift 17128 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 17129 CONFIG_SHELL='$SHELL' 17130 export CONFIG_SHELL 17131 exec "\$@" 17132fi 17133 17134_ACEOF 17135cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17136exec 5>>config.log 17137{ 17138 echo 17139 sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX 17140@%:@@%:@ Running $as_me. @%:@@%:@ 17141_ASBOX 17142 $as_echo "$ac_log" 17143} >&5 17144 17145_ACEOF 17146cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17147# 17148# INIT-COMMANDS 17149# 17150AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 17151 17152 17153# The HP-UX ksh and POSIX shell print the target directory to stdout 17154# if CDPATH is set. 17155(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 17156 17157sed_quote_subst='$sed_quote_subst' 17158double_quote_subst='$double_quote_subst' 17159delay_variable_subst='$delay_variable_subst' 17160macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 17161macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 17162enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 17163enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 17164pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 17165enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 17166shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 17167SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 17168ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 17169PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 17170host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 17171host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 17172host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 17173build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 17174build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 17175build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 17176SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 17177Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 17178GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 17179EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 17180FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 17181LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 17182NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 17183LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 17184max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 17185ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 17186exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 17187lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 17188lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 17189lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 17190lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 17191lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 17192reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 17193reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 17194OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 17195deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 17196file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 17197file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 17198want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 17199DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 17200sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 17201AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 17202AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 17203archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 17204STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 17205RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 17206old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 17207old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 17208old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 17209lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 17210CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 17211CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 17212compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 17213GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 17214lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 17215lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 17216lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 17217lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 17218lt_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"`' 17219lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 17220nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 17221lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 17222lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 17223objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 17224MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 17225lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 17226lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 17227lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 17228lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 17229lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 17230need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 17231MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 17232DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 17233NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 17234LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 17235OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 17236OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 17237libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 17238shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 17239extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 17240archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 17241enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 17242export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 17243whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 17244compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 17245old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 17246old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 17247archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 17248archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 17249module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 17250module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 17251with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 17252allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 17253no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 17254hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 17255hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 17256hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 17257hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 17258hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 17259hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 17260hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 17261inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 17262link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 17263always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 17264export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 17265exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 17266include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 17267prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 17268postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 17269file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 17270variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 17271need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 17272need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 17273version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 17274runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 17275shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 17276shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 17277libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 17278library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 17279soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 17280install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 17281postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 17282postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 17283finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 17284finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 17285hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 17286sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 17287configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 17288configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 17289hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 17290enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 17291enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 17292enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 17293old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 17294striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 17295 17296LTCC='$LTCC' 17297LTCFLAGS='$LTCFLAGS' 17298compiler='$compiler_DEFAULT' 17299 17300# A function that is used when there is no print builtin or printf. 17301func_fallback_echo () 17302{ 17303 eval 'cat <<_LTECHO_EOF 17304\$1 17305_LTECHO_EOF' 17306} 17307 17308# Quote evaled strings. 17309for var in SHELL \ 17310ECHO \ 17311PATH_SEPARATOR \ 17312SED \ 17313GREP \ 17314EGREP \ 17315FGREP \ 17316LD \ 17317NM \ 17318LN_S \ 17319lt_SP2NL \ 17320lt_NL2SP \ 17321reload_flag \ 17322OBJDUMP \ 17323deplibs_check_method \ 17324file_magic_cmd \ 17325file_magic_glob \ 17326want_nocaseglob \ 17327DLLTOOL \ 17328sharedlib_from_linklib_cmd \ 17329AR \ 17330AR_FLAGS \ 17331archiver_list_spec \ 17332STRIP \ 17333RANLIB \ 17334CC \ 17335CFLAGS \ 17336compiler \ 17337lt_cv_sys_global_symbol_pipe \ 17338lt_cv_sys_global_symbol_to_cdecl \ 17339lt_cv_sys_global_symbol_to_import \ 17340lt_cv_sys_global_symbol_to_c_name_address \ 17341lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 17342lt_cv_nm_interface \ 17343nm_file_list_spec \ 17344lt_cv_truncate_bin \ 17345lt_prog_compiler_no_builtin_flag \ 17346lt_prog_compiler_pic \ 17347lt_prog_compiler_wl \ 17348lt_prog_compiler_static \ 17349lt_cv_prog_compiler_c_o \ 17350need_locks \ 17351MANIFEST_TOOL \ 17352DSYMUTIL \ 17353NMEDIT \ 17354LIPO \ 17355OTOOL \ 17356OTOOL64 \ 17357shrext_cmds \ 17358export_dynamic_flag_spec \ 17359whole_archive_flag_spec \ 17360compiler_needs_object \ 17361with_gnu_ld \ 17362allow_undefined_flag \ 17363no_undefined_flag \ 17364hardcode_libdir_flag_spec \ 17365hardcode_libdir_separator \ 17366exclude_expsyms \ 17367include_expsyms \ 17368file_list_spec \ 17369variables_saved_for_relink \ 17370libname_spec \ 17371library_names_spec \ 17372soname_spec \ 17373install_override_mode \ 17374finish_eval \ 17375old_striplib \ 17376striplib; do 17377 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 17378 *[\\\\\\\`\\"\\\$]*) 17379 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 17380 ;; 17381 *) 17382 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 17383 ;; 17384 esac 17385done 17386 17387# Double-quote double-evaled strings. 17388for var in reload_cmds \ 17389old_postinstall_cmds \ 17390old_postuninstall_cmds \ 17391old_archive_cmds \ 17392extract_expsyms_cmds \ 17393old_archive_from_new_cmds \ 17394old_archive_from_expsyms_cmds \ 17395archive_cmds \ 17396archive_expsym_cmds \ 17397module_cmds \ 17398module_expsym_cmds \ 17399export_symbols_cmds \ 17400prelink_cmds \ 17401postlink_cmds \ 17402postinstall_cmds \ 17403postuninstall_cmds \ 17404finish_cmds \ 17405sys_lib_search_path_spec \ 17406configure_time_dlsearch_path \ 17407configure_time_lt_sys_library_path; do 17408 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 17409 *[\\\\\\\`\\"\\\$]*) 17410 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 17411 ;; 17412 *) 17413 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 17414 ;; 17415 esac 17416done 17417 17418ac_aux_dir='$ac_aux_dir' 17419 17420# See if we are running on zsh, and set the options that allow our 17421# commands through without removal of \ escapes INIT. 17422if test -n "\${ZSH_VERSION+set}"; then 17423 setopt NO_GLOB_SUBST 17424fi 17425 17426 17427 PACKAGE='$PACKAGE' 17428 VERSION='$VERSION' 17429 RM='$RM' 17430 ofile='$ofile' 17431 17432 17433 17434 17435_ACEOF 17436 17437cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17438 17439# Handling of arguments. 17440for ac_config_target in $ac_config_targets 17441do 17442 case $ac_config_target in 17443 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 17444 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 17445 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 17446 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 17447 "scamper/Makefile") CONFIG_FILES="$CONFIG_FILES scamper/Makefile" ;; 17448 "utils/Makefile") CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;; 17449 "utils/sc_ally/Makefile") CONFIG_FILES="$CONFIG_FILES utils/sc_ally/Makefile" ;; 17450 "utils/sc_analysis_dump/Makefile") CONFIG_FILES="$CONFIG_FILES utils/sc_analysis_dump/Makefile" ;; 17451 "utils/sc_attach/Makefile") CONFIG_FILES="$CONFIG_FILES utils/sc_attach/Makefile" ;; 17452 "utils/sc_bdrmap/Makefile") CONFIG_FILES="$CONFIG_FILES utils/sc_bdrmap/Makefile" ;; 17453 "utils/sc_erosprober/Makefile") CONFIG_FILES="$CONFIG_FILES utils/sc_erosprober/Makefile" ;; 17454 "utils/sc_hoiho/Makefile") CONFIG_FILES="$CONFIG_FILES utils/sc_hoiho/Makefile" ;; 17455 "utils/sc_filterpolicy/Makefile") CONFIG_FILES="$CONFIG_FILES utils/sc_filterpolicy/Makefile" ;; 17456 "utils/sc_ipiddump/Makefile") CONFIG_FILES="$CONFIG_FILES utils/sc_ipiddump/Makefile" ;; 17457 "utils/sc_pinger/Makefile") CONFIG_FILES="$CONFIG_FILES utils/sc_pinger/Makefile" ;; 17458 "utils/sc_prefixscan/Makefile") CONFIG_FILES="$CONFIG_FILES utils/sc_prefixscan/Makefile" ;; 17459 "utils/sc_radargun/Makefile") CONFIG_FILES="$CONFIG_FILES utils/sc_radargun/Makefile" ;; 17460 "utils/sc_remoted/Makefile") CONFIG_FILES="$CONFIG_FILES utils/sc_remoted/Makefile" ;; 17461 "utils/sc_speedtrap/Makefile") CONFIG_FILES="$CONFIG_FILES utils/sc_speedtrap/Makefile" ;; 17462 "utils/sc_tbitblind/Makefile") CONFIG_FILES="$CONFIG_FILES utils/sc_tbitblind/Makefile" ;; 17463 "utils/sc_tbitpmtud/Makefile") CONFIG_FILES="$CONFIG_FILES utils/sc_tbitpmtud/Makefile" ;; 17464 "utils/sc_tracediff/Makefile") CONFIG_FILES="$CONFIG_FILES utils/sc_tracediff/Makefile" ;; 17465 "utils/sc_ttlexp/Makefile") CONFIG_FILES="$CONFIG_FILES utils/sc_ttlexp/Makefile" ;; 17466 "utils/sc_uptime/Makefile") CONFIG_FILES="$CONFIG_FILES utils/sc_uptime/Makefile" ;; 17467 "utils/sc_warts2csv/Makefile") CONFIG_FILES="$CONFIG_FILES utils/sc_warts2csv/Makefile" ;; 17468 "utils/sc_warts2json/Makefile") CONFIG_FILES="$CONFIG_FILES utils/sc_warts2json/Makefile" ;; 17469 "utils/sc_warts2pcap/Makefile") CONFIG_FILES="$CONFIG_FILES utils/sc_warts2pcap/Makefile" ;; 17470 "utils/sc_warts2text/Makefile") CONFIG_FILES="$CONFIG_FILES utils/sc_warts2text/Makefile" ;; 17471 "utils/sc_wartscat/Makefile") CONFIG_FILES="$CONFIG_FILES utils/sc_wartscat/Makefile" ;; 17472 "utils/sc_wartsdump/Makefile") CONFIG_FILES="$CONFIG_FILES utils/sc_wartsdump/Makefile" ;; 17473 "utils/sc_wartsfilter/Makefile") CONFIG_FILES="$CONFIG_FILES utils/sc_wartsfilter/Makefile" ;; 17474 "utils/sc_wartsfix/Makefile") CONFIG_FILES="$CONFIG_FILES utils/sc_wartsfix/Makefile" ;; 17475 17476 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 17477 esac 17478done 17479 17480 17481# If the user did not use the arguments to specify the items to instantiate, 17482# then the envvar interface is used. Set only those that are not. 17483# We use the long form for the default assignment because of an extremely 17484# bizarre bug on SunOS 4.1.3. 17485if $ac_need_defaults; then 17486 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 17487 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 17488 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 17489fi 17490 17491# Have a temporary directory for convenience. Make it in the build tree 17492# simply because there is no reason against having it here, and in addition, 17493# creating and moving files from /tmp can sometimes cause problems. 17494# Hook for its removal unless debugging. 17495# Note that there is a small window in which the directory will not be cleaned: 17496# after its creation but before its name has been assigned to `$tmp'. 17497$debug || 17498{ 17499 tmp= ac_tmp= 17500 trap 'exit_status=$? 17501 : "${ac_tmp:=$tmp}" 17502 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 17503' 0 17504 trap 'as_fn_exit 1' 1 2 13 15 17505} 17506# Create a (secure) tmp directory for tmp files. 17507 17508{ 17509 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 17510 test -d "$tmp" 17511} || 17512{ 17513 tmp=./conf$$-$RANDOM 17514 (umask 077 && mkdir "$tmp") 17515} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 17516ac_tmp=$tmp 17517 17518# Set up the scripts for CONFIG_FILES section. 17519# No need to generate them if there are no CONFIG_FILES. 17520# This happens for instance with `./config.status config.h'. 17521if test -n "$CONFIG_FILES"; then 17522 17523 17524ac_cr=`echo X | tr X '\015'` 17525# On cygwin, bash can eat \r inside `` if the user requested igncr. 17526# But we know of no other shell where ac_cr would be empty at this 17527# point, so we can use a bashism as a fallback. 17528if test "x$ac_cr" = x; then 17529 eval ac_cr=\$\'\\r\' 17530fi 17531ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 17532if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 17533 ac_cs_awk_cr='\\r' 17534else 17535 ac_cs_awk_cr=$ac_cr 17536fi 17537 17538echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 17539_ACEOF 17540 17541 17542{ 17543 echo "cat >conf$$subs.awk <<_ACEOF" && 17544 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 17545 echo "_ACEOF" 17546} >conf$$subs.sh || 17547 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 17548ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 17549ac_delim='%!_!# ' 17550for ac_last_try in false false false false false :; do 17551 . ./conf$$subs.sh || 17552 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 17553 17554 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 17555 if test $ac_delim_n = $ac_delim_num; then 17556 break 17557 elif $ac_last_try; then 17558 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 17559 else 17560 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 17561 fi 17562done 17563rm -f conf$$subs.sh 17564 17565cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17566cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 17567_ACEOF 17568sed -n ' 17569h 17570s/^/S["/; s/!.*/"]=/ 17571p 17572g 17573s/^[^!]*!// 17574:repl 17575t repl 17576s/'"$ac_delim"'$// 17577t delim 17578:nl 17579h 17580s/\(.\{148\}\)..*/\1/ 17581t more1 17582s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 17583p 17584n 17585b repl 17586:more1 17587s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 17588p 17589g 17590s/.\{148\}// 17591t nl 17592:delim 17593h 17594s/\(.\{148\}\)..*/\1/ 17595t more2 17596s/["\\]/\\&/g; s/^/"/; s/$/"/ 17597p 17598b 17599:more2 17600s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 17601p 17602g 17603s/.\{148\}// 17604t delim 17605' <conf$$subs.awk | sed ' 17606/^[^""]/{ 17607 N 17608 s/\n// 17609} 17610' >>$CONFIG_STATUS || ac_write_fail=1 17611rm -f conf$$subs.awk 17612cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17613_ACAWK 17614cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 17615 for (key in S) S_is_set[key] = 1 17616 FS = "" 17617 17618} 17619{ 17620 line = $ 0 17621 nfields = split(line, field, "@") 17622 substed = 0 17623 len = length(field[1]) 17624 for (i = 2; i < nfields; i++) { 17625 key = field[i] 17626 keylen = length(key) 17627 if (S_is_set[key]) { 17628 value = S[key] 17629 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 17630 len += length(value) + length(field[++i]) 17631 substed = 1 17632 } else 17633 len += 1 + keylen 17634 } 17635 17636 print line 17637} 17638 17639_ACAWK 17640_ACEOF 17641cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17642if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 17643 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 17644else 17645 cat 17646fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 17647 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 17648_ACEOF 17649 17650# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 17651# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 17652# trailing colons and then remove the whole line if VPATH becomes empty 17653# (actually we leave an empty line to preserve line numbers). 17654if test "x$srcdir" = x.; then 17655 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 17656h 17657s/// 17658s/^/:/ 17659s/[ ]*$/:/ 17660s/:\$(srcdir):/:/g 17661s/:\${srcdir}:/:/g 17662s/:@srcdir@:/:/g 17663s/^:*// 17664s/:*$// 17665x 17666s/\(=[ ]*\).*/\1/ 17667G 17668s/\n// 17669s/^[^=]*=[ ]*$// 17670}' 17671fi 17672 17673cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17674fi # test -n "$CONFIG_FILES" 17675 17676# Set up the scripts for CONFIG_HEADERS section. 17677# No need to generate them if there are no CONFIG_HEADERS. 17678# This happens for instance with `./config.status Makefile'. 17679if test -n "$CONFIG_HEADERS"; then 17680cat >"$ac_tmp/defines.awk" <<\_ACAWK || 17681BEGIN { 17682_ACEOF 17683 17684# Transform confdefs.h into an awk script `defines.awk', embedded as 17685# here-document in config.status, that substitutes the proper values into 17686# config.h.in to produce config.h. 17687 17688# Create a delimiter string that does not exist in confdefs.h, to ease 17689# handling of long lines. 17690ac_delim='%!_!# ' 17691for ac_last_try in false false :; do 17692 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 17693 if test -z "$ac_tt"; then 17694 break 17695 elif $ac_last_try; then 17696 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 17697 else 17698 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 17699 fi 17700done 17701 17702# For the awk script, D is an array of macro values keyed by name, 17703# likewise P contains macro parameters if any. Preserve backslash 17704# newline sequences. 17705 17706ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 17707sed -n ' 17708s/.\{148\}/&'"$ac_delim"'/g 17709t rset 17710:rset 17711s/^[ ]*#[ ]*define[ ][ ]*/ / 17712t def 17713d 17714:def 17715s/\\$// 17716t bsnl 17717s/["\\]/\\&/g 17718s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 17719D["\1"]=" \3"/p 17720s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 17721d 17722:bsnl 17723s/["\\]/\\&/g 17724s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 17725D["\1"]=" \3\\\\\\n"\\/p 17726t cont 17727s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 17728t cont 17729d 17730:cont 17731n 17732s/.\{148\}/&'"$ac_delim"'/g 17733t clear 17734:clear 17735s/\\$// 17736t bsnlc 17737s/["\\]/\\&/g; s/^/"/; s/$/"/p 17738d 17739:bsnlc 17740s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 17741b cont 17742' <confdefs.h | sed ' 17743s/'"$ac_delim"'/"\\\ 17744"/g' >>$CONFIG_STATUS || ac_write_fail=1 17745 17746cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17747 for (key in D) D_is_set[key] = 1 17748 FS = "" 17749} 17750/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 17751 line = \$ 0 17752 split(line, arg, " ") 17753 if (arg[1] == "#") { 17754 defundef = arg[2] 17755 mac1 = arg[3] 17756 } else { 17757 defundef = substr(arg[1], 2) 17758 mac1 = arg[2] 17759 } 17760 split(mac1, mac2, "(") #) 17761 macro = mac2[1] 17762 prefix = substr(line, 1, index(line, defundef) - 1) 17763 if (D_is_set[macro]) { 17764 # Preserve the white space surrounding the "#". 17765 print prefix "define", macro P[macro] D[macro] 17766 next 17767 } else { 17768 # Replace #undef with comments. This is necessary, for example, 17769 # in the case of _POSIX_SOURCE, which is predefined and required 17770 # on some systems where configure will not decide to define it. 17771 if (defundef == "undef") { 17772 print "/*", prefix defundef, macro, "*/" 17773 next 17774 } 17775 } 17776} 17777{ print } 17778_ACAWK 17779_ACEOF 17780cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17781 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 17782fi # test -n "$CONFIG_HEADERS" 17783 17784 17785eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 17786shift 17787for ac_tag 17788do 17789 case $ac_tag in 17790 :[FHLC]) ac_mode=$ac_tag; continue;; 17791 esac 17792 case $ac_mode$ac_tag in 17793 :[FHL]*:*);; 17794 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 17795 :[FH]-) ac_tag=-:-;; 17796 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 17797 esac 17798 ac_save_IFS=$IFS 17799 IFS=: 17800 set x $ac_tag 17801 IFS=$ac_save_IFS 17802 shift 17803 ac_file=$1 17804 shift 17805 17806 case $ac_mode in 17807 :L) ac_source=$1;; 17808 :[FH]) 17809 ac_file_inputs= 17810 for ac_f 17811 do 17812 case $ac_f in 17813 -) ac_f="$ac_tmp/stdin";; 17814 *) # Look for the file first in the build tree, then in the source tree 17815 # (if the path is not absolute). The absolute path cannot be DOS-style, 17816 # because $ac_f cannot contain `:'. 17817 test -f "$ac_f" || 17818 case $ac_f in 17819 [\\/$]*) false;; 17820 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 17821 esac || 17822 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 17823 esac 17824 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 17825 as_fn_append ac_file_inputs " '$ac_f'" 17826 done 17827 17828 # Let's still pretend it is `configure' which instantiates (i.e., don't 17829 # use $as_me), people would be surprised to read: 17830 # /* config.h. Generated by config.status. */ 17831 configure_input='Generated from '` 17832 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 17833 `' by configure.' 17834 if test x"$ac_file" != x-; then 17835 configure_input="$ac_file. $configure_input" 17836 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 17837$as_echo "$as_me: creating $ac_file" >&6;} 17838 fi 17839 # Neutralize special characters interpreted by sed in replacement strings. 17840 case $configure_input in #( 17841 *\&* | *\|* | *\\* ) 17842 ac_sed_conf_input=`$as_echo "$configure_input" | 17843 sed 's/[\\\\&|]/\\\\&/g'`;; #( 17844 *) ac_sed_conf_input=$configure_input;; 17845 esac 17846 17847 case $ac_tag in 17848 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 17849 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 17850 esac 17851 ;; 17852 esac 17853 17854 ac_dir=`$as_dirname -- "$ac_file" || 17855$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17856 X"$ac_file" : 'X\(//\)[^/]' \| \ 17857 X"$ac_file" : 'X\(//\)$' \| \ 17858 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 17859$as_echo X"$ac_file" | 17860 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17861 s//\1/ 17862 q 17863 } 17864 /^X\(\/\/\)[^/].*/{ 17865 s//\1/ 17866 q 17867 } 17868 /^X\(\/\/\)$/{ 17869 s//\1/ 17870 q 17871 } 17872 /^X\(\/\).*/{ 17873 s//\1/ 17874 q 17875 } 17876 s/.*/./; q'` 17877 as_dir="$ac_dir"; as_fn_mkdir_p 17878 ac_builddir=. 17879 17880case "$ac_dir" in 17881.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 17882*) 17883 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 17884 # A ".." for each directory in $ac_dir_suffix. 17885 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 17886 case $ac_top_builddir_sub in 17887 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 17888 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 17889 esac ;; 17890esac 17891ac_abs_top_builddir=$ac_pwd 17892ac_abs_builddir=$ac_pwd$ac_dir_suffix 17893# for backward compatibility: 17894ac_top_builddir=$ac_top_build_prefix 17895 17896case $srcdir in 17897 .) # We are building in place. 17898 ac_srcdir=. 17899 ac_top_srcdir=$ac_top_builddir_sub 17900 ac_abs_top_srcdir=$ac_pwd ;; 17901 [\\/]* | ?:[\\/]* ) # Absolute name. 17902 ac_srcdir=$srcdir$ac_dir_suffix; 17903 ac_top_srcdir=$srcdir 17904 ac_abs_top_srcdir=$srcdir ;; 17905 *) # Relative name. 17906 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 17907 ac_top_srcdir=$ac_top_build_prefix$srcdir 17908 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 17909esac 17910ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 17911 17912 17913 case $ac_mode in 17914 :F) 17915 # 17916 # CONFIG_FILE 17917 # 17918 17919 case $INSTALL in 17920 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 17921 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 17922 esac 17923 ac_MKDIR_P=$MKDIR_P 17924 case $MKDIR_P in 17925 [\\/$]* | ?:[\\/]* ) ;; 17926 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 17927 esac 17928_ACEOF 17929 17930cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17931# If the template does not know about datarootdir, expand it. 17932# FIXME: This hack should be removed a few years after 2.60. 17933ac_datarootdir_hack=; ac_datarootdir_seen= 17934ac_sed_dataroot=' 17935/datarootdir/ { 17936 p 17937 q 17938} 17939/@datadir@/p 17940/@docdir@/p 17941/@infodir@/p 17942/@localedir@/p 17943/@mandir@/p' 17944case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 17945*datarootdir*) ac_datarootdir_seen=yes;; 17946*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 17947 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 17948$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 17949_ACEOF 17950cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17951 ac_datarootdir_hack=' 17952 s&@datadir@&$datadir&g 17953 s&@docdir@&$docdir&g 17954 s&@infodir@&$infodir&g 17955 s&@localedir@&$localedir&g 17956 s&@mandir@&$mandir&g 17957 s&\\\${datarootdir}&$datarootdir&g' ;; 17958esac 17959_ACEOF 17960 17961# Neutralize VPATH when `$srcdir' = `.'. 17962# Shell code in configure.ac might set extrasub. 17963# FIXME: do we really want to maintain this feature? 17964cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17965ac_sed_extra="$ac_vpsub 17966$extrasub 17967_ACEOF 17968cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17969:t 17970/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 17971s|@configure_input@|$ac_sed_conf_input|;t t 17972s&@top_builddir@&$ac_top_builddir_sub&;t t 17973s&@top_build_prefix@&$ac_top_build_prefix&;t t 17974s&@srcdir@&$ac_srcdir&;t t 17975s&@abs_srcdir@&$ac_abs_srcdir&;t t 17976s&@top_srcdir@&$ac_top_srcdir&;t t 17977s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 17978s&@builddir@&$ac_builddir&;t t 17979s&@abs_builddir@&$ac_abs_builddir&;t t 17980s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 17981s&@INSTALL@&$ac_INSTALL&;t t 17982s&@MKDIR_P@&$ac_MKDIR_P&;t t 17983$ac_datarootdir_hack 17984" 17985eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 17986 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 17987 17988test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 17989 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 17990 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 17991 "$ac_tmp/out"`; test -z "$ac_out"; } && 17992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 17993which seems to be undefined. Please make sure it is defined" >&5 17994$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 17995which seems to be undefined. Please make sure it is defined" >&2;} 17996 17997 rm -f "$ac_tmp/stdin" 17998 case $ac_file in 17999 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 18000 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 18001 esac \ 18002 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 18003 ;; 18004 :H) 18005 # 18006 # CONFIG_HEADER 18007 # 18008 if test x"$ac_file" != x-; then 18009 { 18010 $as_echo "/* $configure_input */" \ 18011 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 18012 } >"$ac_tmp/config.h" \ 18013 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 18014 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 18015 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 18016$as_echo "$as_me: $ac_file is unchanged" >&6;} 18017 else 18018 rm -f "$ac_file" 18019 mv "$ac_tmp/config.h" "$ac_file" \ 18020 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 18021 fi 18022 else 18023 $as_echo "/* $configure_input */" \ 18024 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 18025 || as_fn_error $? "could not create -" "$LINENO" 5 18026 fi 18027# Compute "$ac_file"'s index in $config_headers. 18028_am_arg="$ac_file" 18029_am_stamp_count=1 18030for _am_header in $config_headers :; do 18031 case $_am_header in 18032 $_am_arg | $_am_arg:* ) 18033 break ;; 18034 * ) 18035 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 18036 esac 18037done 18038echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 18039$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18040 X"$_am_arg" : 'X\(//\)[^/]' \| \ 18041 X"$_am_arg" : 'X\(//\)$' \| \ 18042 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 18043$as_echo X"$_am_arg" | 18044 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18045 s//\1/ 18046 q 18047 } 18048 /^X\(\/\/\)[^/].*/{ 18049 s//\1/ 18050 q 18051 } 18052 /^X\(\/\/\)$/{ 18053 s//\1/ 18054 q 18055 } 18056 /^X\(\/\).*/{ 18057 s//\1/ 18058 q 18059 } 18060 s/.*/./; q'`/stamp-h$_am_stamp_count 18061 ;; 18062 18063 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 18064$as_echo "$as_me: executing $ac_file commands" >&6;} 18065 ;; 18066 esac 18067 18068 18069 case $ac_file$ac_mode in 18070 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 18071 # Older Autoconf quotes --file arguments for eval, but not when files 18072 # are listed without --file. Let's play safe and only enable the eval 18073 # if we detect the quoting. 18074 # TODO: see whether this extra hack can be removed once we start 18075 # requiring Autoconf 2.70 or later. 18076 case $CONFIG_FILES in @%:@( 18077 *\'*) : 18078 eval set x "$CONFIG_FILES" ;; @%:@( 18079 *) : 18080 set x $CONFIG_FILES ;; @%:@( 18081 *) : 18082 ;; 18083esac 18084 shift 18085 # Used to flag and report bootstrapping failures. 18086 am_rc=0 18087 for am_mf 18088 do 18089 # Strip MF so we end up with the name of the file. 18090 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'` 18091 # Check whether this is an Automake generated Makefile which includes 18092 # dependency-tracking related rules and includes. 18093 # Grep'ing the whole file directly is not great: AIX grep has a line 18094 # limit of 2048, but all sed's we know have understand at least 4000. 18095 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 18096 || continue 18097 am_dirpart=`$as_dirname -- "$am_mf" || 18098$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18099 X"$am_mf" : 'X\(//\)[^/]' \| \ 18100 X"$am_mf" : 'X\(//\)$' \| \ 18101 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 18102$as_echo X"$am_mf" | 18103 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18104 s//\1/ 18105 q 18106 } 18107 /^X\(\/\/\)[^/].*/{ 18108 s//\1/ 18109 q 18110 } 18111 /^X\(\/\/\)$/{ 18112 s//\1/ 18113 q 18114 } 18115 /^X\(\/\).*/{ 18116 s//\1/ 18117 q 18118 } 18119 s/.*/./; q'` 18120 am_filepart=`$as_basename -- "$am_mf" || 18121$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 18122 X"$am_mf" : 'X\(//\)$' \| \ 18123 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 18124$as_echo X/"$am_mf" | 18125 sed '/^.*\/\([^/][^/]*\)\/*$/{ 18126 s//\1/ 18127 q 18128 } 18129 /^X\/\(\/\/\)$/{ 18130 s//\1/ 18131 q 18132 } 18133 /^X\/\(\/\).*/{ 18134 s//\1/ 18135 q 18136 } 18137 s/.*/./; q'` 18138 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 18139 && sed -e '/# am--include-marker/d' "$am_filepart" \ 18140 | $MAKE -f - am--depfiles" >&5 18141 (cd "$am_dirpart" \ 18142 && sed -e '/# am--include-marker/d' "$am_filepart" \ 18143 | $MAKE -f - am--depfiles) >&5 2>&5 18144 ac_status=$? 18145 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18146 (exit $ac_status); } || am_rc=$? 18147 done 18148 if test $am_rc -ne 0; then 18149 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18150$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18151as_fn_error $? "Something went wrong bootstrapping makefile fragments 18152 for automatic dependency tracking. If GNU make was not used, consider 18153 re-running the configure script with MAKE=\"gmake\" (or whatever is 18154 necessary). You can also try re-running configure with the 18155 '--disable-dependency-tracking' option to at least be able to build 18156 the package (albeit without support for automatic dependency tracking). 18157See \`config.log' for more details" "$LINENO" 5; } 18158 fi 18159 { am_dirpart=; unset am_dirpart;} 18160 { am_filepart=; unset am_filepart;} 18161 { am_mf=; unset am_mf;} 18162 { am_rc=; unset am_rc;} 18163 rm -f conftest-deps.mk 18164} 18165 ;; 18166 "libtool":C) 18167 18168 # See if we are running on zsh, and set the options that allow our 18169 # commands through without removal of \ escapes. 18170 if test -n "${ZSH_VERSION+set}"; then 18171 setopt NO_GLOB_SUBST 18172 fi 18173 18174 cfgfile=${ofile}T 18175 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 18176 $RM "$cfgfile" 18177 18178 cat <<_LT_EOF >> "$cfgfile" 18179#! $SHELL 18180# Generated automatically by $as_me ($PACKAGE) $VERSION 18181# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 18182# NOTE: Changes made to this file will be lost: look at ltmain.sh. 18183 18184# Provide generalized library-building support services. 18185# Written by Gordon Matzigkeit, 1996 18186 18187# Copyright (C) 2014 Free Software Foundation, Inc. 18188# This is free software; see the source for copying conditions. There is NO 18189# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 18190 18191# GNU Libtool is free software; you can redistribute it and/or modify 18192# it under the terms of the GNU General Public License as published by 18193# the Free Software Foundation; either version 2 of of the License, or 18194# (at your option) any later version. 18195# 18196# As a special exception to the GNU General Public License, if you 18197# distribute this file as part of a program or library that is built 18198# using GNU Libtool, you may include this file under the same 18199# distribution terms that you use for the rest of that program. 18200# 18201# GNU Libtool is distributed in the hope that it will be useful, but 18202# WITHOUT ANY WARRANTY; without even the implied warranty of 18203# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18204# GNU General Public License for more details. 18205# 18206# You should have received a copy of the GNU General Public License 18207# along with this program. If not, see <http://www.gnu.org/licenses/>. 18208 18209 18210# The names of the tagged configurations supported by this script. 18211available_tags='' 18212 18213# Configured defaults for sys_lib_dlsearch_path munging. 18214: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 18215 18216# ### BEGIN LIBTOOL CONFIG 18217 18218# Which release of libtool.m4 was used? 18219macro_version=$macro_version 18220macro_revision=$macro_revision 18221 18222# Whether or not to build shared libraries. 18223build_libtool_libs=$enable_shared 18224 18225# Whether or not to build static libraries. 18226build_old_libs=$enable_static 18227 18228# What type of objects to build. 18229pic_mode=$pic_mode 18230 18231# Whether or not to optimize for fast installation. 18232fast_install=$enable_fast_install 18233 18234# Shared archive member basename,for filename based shared library versioning on AIX. 18235shared_archive_member_spec=$shared_archive_member_spec 18236 18237# Shell to use when invoking shell scripts. 18238SHELL=$lt_SHELL 18239 18240# An echo program that protects backslashes. 18241ECHO=$lt_ECHO 18242 18243# The PATH separator for the build system. 18244PATH_SEPARATOR=$lt_PATH_SEPARATOR 18245 18246# The host system. 18247host_alias=$host_alias 18248host=$host 18249host_os=$host_os 18250 18251# The build system. 18252build_alias=$build_alias 18253build=$build 18254build_os=$build_os 18255 18256# A sed program that does not truncate output. 18257SED=$lt_SED 18258 18259# Sed that helps us avoid accidentally triggering echo(1) options like -n. 18260Xsed="\$SED -e 1s/^X//" 18261 18262# A grep program that handles long lines. 18263GREP=$lt_GREP 18264 18265# An ERE matcher. 18266EGREP=$lt_EGREP 18267 18268# A literal string matcher. 18269FGREP=$lt_FGREP 18270 18271# A BSD- or MS-compatible name lister. 18272NM=$lt_NM 18273 18274# Whether we need soft or hard links. 18275LN_S=$lt_LN_S 18276 18277# What is the maximum length of a command? 18278max_cmd_len=$max_cmd_len 18279 18280# Object file suffix (normally "o"). 18281objext=$ac_objext 18282 18283# Executable file suffix (normally ""). 18284exeext=$exeext 18285 18286# whether the shell understands "unset". 18287lt_unset=$lt_unset 18288 18289# turn spaces into newlines. 18290SP2NL=$lt_lt_SP2NL 18291 18292# turn newlines into spaces. 18293NL2SP=$lt_lt_NL2SP 18294 18295# convert \$build file names to \$host format. 18296to_host_file_cmd=$lt_cv_to_host_file_cmd 18297 18298# convert \$build files to toolchain format. 18299to_tool_file_cmd=$lt_cv_to_tool_file_cmd 18300 18301# An object symbol dumper. 18302OBJDUMP=$lt_OBJDUMP 18303 18304# Method to check whether dependent libraries are shared objects. 18305deplibs_check_method=$lt_deplibs_check_method 18306 18307# Command to use when deplibs_check_method = "file_magic". 18308file_magic_cmd=$lt_file_magic_cmd 18309 18310# How to find potential files when deplibs_check_method = "file_magic". 18311file_magic_glob=$lt_file_magic_glob 18312 18313# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 18314want_nocaseglob=$lt_want_nocaseglob 18315 18316# DLL creation program. 18317DLLTOOL=$lt_DLLTOOL 18318 18319# Command to associate shared and link libraries. 18320sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 18321 18322# The archiver. 18323AR=$lt_AR 18324 18325# Flags to create an archive. 18326AR_FLAGS=$lt_AR_FLAGS 18327 18328# How to feed a file listing to the archiver. 18329archiver_list_spec=$lt_archiver_list_spec 18330 18331# A symbol stripping program. 18332STRIP=$lt_STRIP 18333 18334# Commands used to install an old-style archive. 18335RANLIB=$lt_RANLIB 18336old_postinstall_cmds=$lt_old_postinstall_cmds 18337old_postuninstall_cmds=$lt_old_postuninstall_cmds 18338 18339# Whether to use a lock for old archive extraction. 18340lock_old_archive_extraction=$lock_old_archive_extraction 18341 18342# A C compiler. 18343LTCC=$lt_CC 18344 18345# LTCC compiler flags. 18346LTCFLAGS=$lt_CFLAGS 18347 18348# Take the output of nm and produce a listing of raw symbols and C names. 18349global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 18350 18351# Transform the output of nm in a proper C declaration. 18352global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 18353 18354# Transform the output of nm into a list of symbols to manually relocate. 18355global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 18356 18357# Transform the output of nm in a C name address pair. 18358global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 18359 18360# Transform the output of nm in a C name address pair when lib prefix is needed. 18361global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 18362 18363# The name lister interface. 18364nm_interface=$lt_lt_cv_nm_interface 18365 18366# Specify filename containing input files for \$NM. 18367nm_file_list_spec=$lt_nm_file_list_spec 18368 18369# The root where to search for dependent libraries,and where our libraries should be installed. 18370lt_sysroot=$lt_sysroot 18371 18372# Command to truncate a binary pipe. 18373lt_truncate_bin=$lt_lt_cv_truncate_bin 18374 18375# The name of the directory that contains temporary libtool files. 18376objdir=$objdir 18377 18378# Used to examine libraries when file_magic_cmd begins with "file". 18379MAGIC_CMD=$MAGIC_CMD 18380 18381# Must we lock files when doing compilation? 18382need_locks=$lt_need_locks 18383 18384# Manifest tool. 18385MANIFEST_TOOL=$lt_MANIFEST_TOOL 18386 18387# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 18388DSYMUTIL=$lt_DSYMUTIL 18389 18390# Tool to change global to local symbols on Mac OS X. 18391NMEDIT=$lt_NMEDIT 18392 18393# Tool to manipulate fat objects and archives on Mac OS X. 18394LIPO=$lt_LIPO 18395 18396# ldd/readelf like tool for Mach-O binaries on Mac OS X. 18397OTOOL=$lt_OTOOL 18398 18399# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 18400OTOOL64=$lt_OTOOL64 18401 18402# Old archive suffix (normally "a"). 18403libext=$libext 18404 18405# Shared library suffix (normally ".so"). 18406shrext_cmds=$lt_shrext_cmds 18407 18408# The commands to extract the exported symbol list from a shared archive. 18409extract_expsyms_cmds=$lt_extract_expsyms_cmds 18410 18411# Variables whose values should be saved in libtool wrapper scripts and 18412# restored at link time. 18413variables_saved_for_relink=$lt_variables_saved_for_relink 18414 18415# Do we need the "lib" prefix for modules? 18416need_lib_prefix=$need_lib_prefix 18417 18418# Do we need a version for libraries? 18419need_version=$need_version 18420 18421# Library versioning type. 18422version_type=$version_type 18423 18424# Shared library runtime path variable. 18425runpath_var=$runpath_var 18426 18427# Shared library path variable. 18428shlibpath_var=$shlibpath_var 18429 18430# Is shlibpath searched before the hard-coded library search path? 18431shlibpath_overrides_runpath=$shlibpath_overrides_runpath 18432 18433# Format of library name prefix. 18434libname_spec=$lt_libname_spec 18435 18436# List of archive names. First name is the real one, the rest are links. 18437# The last name is the one that the linker finds with -lNAME 18438library_names_spec=$lt_library_names_spec 18439 18440# The coded name of the library, if different from the real name. 18441soname_spec=$lt_soname_spec 18442 18443# Permission mode override for installation of shared libraries. 18444install_override_mode=$lt_install_override_mode 18445 18446# Command to use after installation of a shared archive. 18447postinstall_cmds=$lt_postinstall_cmds 18448 18449# Command to use after uninstallation of a shared archive. 18450postuninstall_cmds=$lt_postuninstall_cmds 18451 18452# Commands used to finish a libtool library installation in a directory. 18453finish_cmds=$lt_finish_cmds 18454 18455# As "finish_cmds", except a single script fragment to be evaled but 18456# not shown. 18457finish_eval=$lt_finish_eval 18458 18459# Whether we should hardcode library paths into libraries. 18460hardcode_into_libs=$hardcode_into_libs 18461 18462# Compile-time system search path for libraries. 18463sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 18464 18465# Detected run-time system search path for libraries. 18466sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 18467 18468# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 18469configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 18470 18471# Whether dlopen is supported. 18472dlopen_support=$enable_dlopen 18473 18474# Whether dlopen of programs is supported. 18475dlopen_self=$enable_dlopen_self 18476 18477# Whether dlopen of statically linked programs is supported. 18478dlopen_self_static=$enable_dlopen_self_static 18479 18480# Commands to strip libraries. 18481old_striplib=$lt_old_striplib 18482striplib=$lt_striplib 18483 18484 18485# The linker used to build libraries. 18486LD=$lt_LD 18487 18488# How to create reloadable object files. 18489reload_flag=$lt_reload_flag 18490reload_cmds=$lt_reload_cmds 18491 18492# Commands used to build an old-style archive. 18493old_archive_cmds=$lt_old_archive_cmds 18494 18495# A language specific compiler. 18496CC=$lt_compiler 18497 18498# Is the compiler the GNU compiler? 18499with_gcc=$GCC 18500 18501# Compiler flag to turn off builtin functions. 18502no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 18503 18504# Additional compiler flags for building library objects. 18505pic_flag=$lt_lt_prog_compiler_pic 18506 18507# How to pass a linker flag through the compiler. 18508wl=$lt_lt_prog_compiler_wl 18509 18510# Compiler flag to prevent dynamic linking. 18511link_static_flag=$lt_lt_prog_compiler_static 18512 18513# Does compiler simultaneously support -c and -o options? 18514compiler_c_o=$lt_lt_cv_prog_compiler_c_o 18515 18516# Whether or not to add -lc for building shared libraries. 18517build_libtool_need_lc=$archive_cmds_need_lc 18518 18519# Whether or not to disallow shared libs when runtime libs are static. 18520allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 18521 18522# Compiler flag to allow reflexive dlopens. 18523export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 18524 18525# Compiler flag to generate shared objects directly from archives. 18526whole_archive_flag_spec=$lt_whole_archive_flag_spec 18527 18528# Whether the compiler copes with passing no objects directly. 18529compiler_needs_object=$lt_compiler_needs_object 18530 18531# Create an old-style archive from a shared archive. 18532old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 18533 18534# Create a temporary old-style archive to link instead of a shared archive. 18535old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 18536 18537# Commands used to build a shared archive. 18538archive_cmds=$lt_archive_cmds 18539archive_expsym_cmds=$lt_archive_expsym_cmds 18540 18541# Commands used to build a loadable module if different from building 18542# a shared archive. 18543module_cmds=$lt_module_cmds 18544module_expsym_cmds=$lt_module_expsym_cmds 18545 18546# Whether we are building with GNU ld or not. 18547with_gnu_ld=$lt_with_gnu_ld 18548 18549# Flag that allows shared libraries with undefined symbols to be built. 18550allow_undefined_flag=$lt_allow_undefined_flag 18551 18552# Flag that enforces no undefined symbols. 18553no_undefined_flag=$lt_no_undefined_flag 18554 18555# Flag to hardcode \$libdir into a binary during linking. 18556# This must work even if \$libdir does not exist 18557hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 18558 18559# Whether we need a single "-rpath" flag with a separated argument. 18560hardcode_libdir_separator=$lt_hardcode_libdir_separator 18561 18562# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 18563# DIR into the resulting binary. 18564hardcode_direct=$hardcode_direct 18565 18566# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 18567# DIR into the resulting binary and the resulting library dependency is 18568# "absolute",i.e impossible to change by setting \$shlibpath_var if the 18569# library is relocated. 18570hardcode_direct_absolute=$hardcode_direct_absolute 18571 18572# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 18573# into the resulting binary. 18574hardcode_minus_L=$hardcode_minus_L 18575 18576# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 18577# into the resulting binary. 18578hardcode_shlibpath_var=$hardcode_shlibpath_var 18579 18580# Set to "yes" if building a shared library automatically hardcodes DIR 18581# into the library and all subsequent libraries and executables linked 18582# against it. 18583hardcode_automatic=$hardcode_automatic 18584 18585# Set to yes if linker adds runtime paths of dependent libraries 18586# to runtime path list. 18587inherit_rpath=$inherit_rpath 18588 18589# Whether libtool must link a program against all its dependency libraries. 18590link_all_deplibs=$link_all_deplibs 18591 18592# Set to "yes" if exported symbols are required. 18593always_export_symbols=$always_export_symbols 18594 18595# The commands to list exported symbols. 18596export_symbols_cmds=$lt_export_symbols_cmds 18597 18598# Symbols that should not be listed in the preloaded symbols. 18599exclude_expsyms=$lt_exclude_expsyms 18600 18601# Symbols that must always be exported. 18602include_expsyms=$lt_include_expsyms 18603 18604# Commands necessary for linking programs (against libraries) with templates. 18605prelink_cmds=$lt_prelink_cmds 18606 18607# Commands necessary for finishing linking programs. 18608postlink_cmds=$lt_postlink_cmds 18609 18610# Specify filename containing input files. 18611file_list_spec=$lt_file_list_spec 18612 18613# How to hardcode a shared library path into an executable. 18614hardcode_action=$hardcode_action 18615 18616# ### END LIBTOOL CONFIG 18617 18618_LT_EOF 18619 18620 cat <<'_LT_EOF' >> "$cfgfile" 18621 18622# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 18623 18624# func_munge_path_list VARIABLE PATH 18625# ----------------------------------- 18626# VARIABLE is name of variable containing _space_ separated list of 18627# directories to be munged by the contents of PATH, which is string 18628# having a format: 18629# "DIR[:DIR]:" 18630# string "DIR[ DIR]" will be prepended to VARIABLE 18631# ":DIR[:DIR]" 18632# string "DIR[ DIR]" will be appended to VARIABLE 18633# "DIRP[:DIRP]::[DIRA:]DIRA" 18634# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 18635# "DIRA[ DIRA]" will be appended to VARIABLE 18636# "DIR[:DIR]" 18637# VARIABLE will be replaced by "DIR[ DIR]" 18638func_munge_path_list () 18639{ 18640 case x@S|@2 in 18641 x) 18642 ;; 18643 *:) 18644 eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'` \@S|@@S|@1\" 18645 ;; 18646 x:*) 18647 eval @S|@1=\"\@S|@@S|@1 `$ECHO @S|@2 | $SED 's/:/ /g'`\" 18648 ;; 18649 *::*) 18650 eval @S|@1=\"\@S|@@S|@1\ `$ECHO @S|@2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 18651 eval @S|@1=\"`$ECHO @S|@2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \@S|@@S|@1\" 18652 ;; 18653 *) 18654 eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'`\" 18655 ;; 18656 esac 18657} 18658 18659 18660# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 18661func_cc_basename () 18662{ 18663 for cc_temp in @S|@*""; do 18664 case $cc_temp in 18665 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 18666 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 18667 \-*) ;; 18668 *) break;; 18669 esac 18670 done 18671 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 18672} 18673 18674 18675# ### END FUNCTIONS SHARED WITH CONFIGURE 18676 18677_LT_EOF 18678 18679 case $host_os in 18680 aix3*) 18681 cat <<\_LT_EOF >> "$cfgfile" 18682# AIX sometimes has problems with the GCC collect2 program. For some 18683# reason, if we set the COLLECT_NAMES environment variable, the problems 18684# vanish in a puff of smoke. 18685if test set != "${COLLECT_NAMES+set}"; then 18686 COLLECT_NAMES= 18687 export COLLECT_NAMES 18688fi 18689_LT_EOF 18690 ;; 18691 esac 18692 18693 18694ltmain=$ac_aux_dir/ltmain.sh 18695 18696 18697 # We use sed instead of cat because bash on DJGPP gets confused if 18698 # if finds mixed CR/LF and LF-only lines. Since sed operates in 18699 # text mode, it properly converts lines to CR/LF. This bash problem 18700 # is reportedly fixed, but why not run on old versions too? 18701 sed '$q' "$ltmain" >> "$cfgfile" \ 18702 || (rm -f "$cfgfile"; exit 1) 18703 18704 mv -f "$cfgfile" "$ofile" || 18705 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 18706 chmod +x "$ofile" 18707 18708 ;; 18709 18710 esac 18711done # for ac_tag 18712 18713 18714as_fn_exit 0 18715_ACEOF 18716ac_clean_files=$ac_clean_files_save 18717 18718test $ac_write_fail = 0 || 18719 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 18720 18721 18722# configure is writing to config.log, and then calls config.status. 18723# config.status does its own redirection, appending to config.log. 18724# Unfortunately, on DOS this fails, as config.log is still kept open 18725# by configure, so config.status won't be able to write to it; its 18726# output is simply discarded. So we exec the FD to /dev/null, 18727# effectively closing config.log, so it can be properly (re)opened and 18728# appended to by config.status. When coming back to configure, we 18729# need to make the FD available again. 18730if test "$no_create" != yes; then 18731 ac_cs_success=: 18732 ac_config_status_args= 18733 test "$silent" = yes && 18734 ac_config_status_args="$ac_config_status_args --quiet" 18735 exec 5>/dev/null 18736 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 18737 exec 5>>config.log 18738 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 18739 # would make configure fail if this is the last instruction. 18740 $ac_cs_success || as_fn_exit 1 18741fi 18742if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 18743 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 18744$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 18745fi 18746 18747