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 8673## CAVEAT EMPTOR: 8674## There is no encapsulation within the following macros, do not change 8675## the running order or otherwise move them around unless you know exactly 8676## what you are doing... 8677if test -n "$compiler"; then 8678 8679lt_prog_compiler_no_builtin_flag= 8680 8681if test yes = "$GCC"; then 8682 case $cc_basename in 8683 nvcc*) 8684 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8685 *) 8686 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8687 esac 8688 8689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8690$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8691if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 8692 $as_echo_n "(cached) " >&6 8693else 8694 lt_cv_prog_compiler_rtti_exceptions=no 8695 ac_outfile=conftest.$ac_objext 8696 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8697 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 8698 # Insert the option either (1) after the last *FLAGS variable, or 8699 # (2) before a word containing "conftest.", or (3) at the end. 8700 # Note that $ac_compile itself does not contain backslashes and begins 8701 # with a dollar sign (not a hyphen), so the echo should work correctly. 8702 # The option is referenced via a variable to avoid confusing sed. 8703 lt_compile=`echo "$ac_compile" | $SED \ 8704 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8705 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8706 -e 's:$: $lt_compiler_flag:'` 8707 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8708 (eval "$lt_compile" 2>conftest.err) 8709 ac_status=$? 8710 cat conftest.err >&5 8711 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8712 if (exit $ac_status) && test -s "$ac_outfile"; then 8713 # The compiler can only warn and ignore the option if not recognized 8714 # So say no if there are warnings other than the usual output. 8715 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8716 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8717 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8718 lt_cv_prog_compiler_rtti_exceptions=yes 8719 fi 8720 fi 8721 $RM conftest* 8722 8723fi 8724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8725$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8726 8727if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 8728 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8729else 8730 : 8731fi 8732 8733fi 8734 8735 8736 8737 8738 8739 8740 lt_prog_compiler_wl= 8741lt_prog_compiler_pic= 8742lt_prog_compiler_static= 8743 8744 8745 if test yes = "$GCC"; then 8746 lt_prog_compiler_wl='-Wl,' 8747 lt_prog_compiler_static='-static' 8748 8749 case $host_os in 8750 aix*) 8751 # All AIX code is PIC. 8752 if test ia64 = "$host_cpu"; then 8753 # AIX 5 now supports IA64 processor 8754 lt_prog_compiler_static='-Bstatic' 8755 fi 8756 lt_prog_compiler_pic='-fPIC' 8757 ;; 8758 8759 amigaos*) 8760 case $host_cpu in 8761 powerpc) 8762 # see comment about AmigaOS4 .so support 8763 lt_prog_compiler_pic='-fPIC' 8764 ;; 8765 m68k) 8766 # FIXME: we need at least 68020 code to build shared libraries, but 8767 # adding the '-m68020' flag to GCC prevents building anything better, 8768 # like '-m68040'. 8769 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8770 ;; 8771 esac 8772 ;; 8773 8774 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8775 # PIC is the default for these OSes. 8776 ;; 8777 8778 mingw* | cygwin* | pw32* | os2* | cegcc*) 8779 # This hack is so that the source file can tell whether it is being 8780 # built for inclusion in a dll (and should export symbols for example). 8781 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8782 # (--disable-auto-import) libraries 8783 lt_prog_compiler_pic='-DDLL_EXPORT' 8784 case $host_os in 8785 os2*) 8786 lt_prog_compiler_static='$wl-static' 8787 ;; 8788 esac 8789 ;; 8790 8791 darwin* | rhapsody*) 8792 # PIC is the default on this platform 8793 # Common symbols not allowed in MH_DYLIB files 8794 lt_prog_compiler_pic='-fno-common' 8795 ;; 8796 8797 haiku*) 8798 # PIC is the default for Haiku. 8799 # The "-static" flag exists, but is broken. 8800 lt_prog_compiler_static= 8801 ;; 8802 8803 hpux*) 8804 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8805 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8806 # sets the default TLS model and affects inlining. 8807 case $host_cpu in 8808 hppa*64*) 8809 # +Z the default 8810 ;; 8811 *) 8812 lt_prog_compiler_pic='-fPIC' 8813 ;; 8814 esac 8815 ;; 8816 8817 interix[3-9]*) 8818 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8819 # Instead, we relocate shared libraries at runtime. 8820 ;; 8821 8822 msdosdjgpp*) 8823 # Just because we use GCC doesn't mean we suddenly get shared libraries 8824 # on systems that don't support them. 8825 lt_prog_compiler_can_build_shared=no 8826 enable_shared=no 8827 ;; 8828 8829 *nto* | *qnx*) 8830 # QNX uses GNU C++, but need to define -shared option too, otherwise 8831 # it will coredump. 8832 lt_prog_compiler_pic='-fPIC -shared' 8833 ;; 8834 8835 sysv4*MP*) 8836 if test -d /usr/nec; then 8837 lt_prog_compiler_pic=-Kconform_pic 8838 fi 8839 ;; 8840 8841 *) 8842 lt_prog_compiler_pic='-fPIC' 8843 ;; 8844 esac 8845 8846 case $cc_basename in 8847 nvcc*) # Cuda Compiler Driver 2.2 8848 lt_prog_compiler_wl='-Xlinker ' 8849 if test -n "$lt_prog_compiler_pic"; then 8850 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 8851 fi 8852 ;; 8853 esac 8854 else 8855 # PORTME Check for flag to pass linker flags through the system compiler. 8856 case $host_os in 8857 aix*) 8858 lt_prog_compiler_wl='-Wl,' 8859 if test ia64 = "$host_cpu"; then 8860 # AIX 5 now supports IA64 processor 8861 lt_prog_compiler_static='-Bstatic' 8862 else 8863 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8864 fi 8865 ;; 8866 8867 darwin* | rhapsody*) 8868 # PIC is the default on this platform 8869 # Common symbols not allowed in MH_DYLIB files 8870 lt_prog_compiler_pic='-fno-common' 8871 case $cc_basename in 8872 nagfor*) 8873 # NAG Fortran compiler 8874 lt_prog_compiler_wl='-Wl,-Wl,,' 8875 lt_prog_compiler_pic='-PIC' 8876 lt_prog_compiler_static='-Bstatic' 8877 ;; 8878 esac 8879 ;; 8880 8881 mingw* | cygwin* | pw32* | os2* | cegcc*) 8882 # This hack is so that the source file can tell whether it is being 8883 # built for inclusion in a dll (and should export symbols for example). 8884 lt_prog_compiler_pic='-DDLL_EXPORT' 8885 case $host_os in 8886 os2*) 8887 lt_prog_compiler_static='$wl-static' 8888 ;; 8889 esac 8890 ;; 8891 8892 hpux9* | hpux10* | hpux11*) 8893 lt_prog_compiler_wl='-Wl,' 8894 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8895 # not for PA HP-UX. 8896 case $host_cpu in 8897 hppa*64*|ia64*) 8898 # +Z the default 8899 ;; 8900 *) 8901 lt_prog_compiler_pic='+Z' 8902 ;; 8903 esac 8904 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8905 lt_prog_compiler_static='$wl-a ${wl}archive' 8906 ;; 8907 8908 irix5* | irix6* | nonstopux*) 8909 lt_prog_compiler_wl='-Wl,' 8910 # PIC (with -KPIC) is the default. 8911 lt_prog_compiler_static='-non_shared' 8912 ;; 8913 8914 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 8915 case $cc_basename in 8916 # old Intel for x86_64, which still supported -KPIC. 8917 ecc*) 8918 lt_prog_compiler_wl='-Wl,' 8919 lt_prog_compiler_pic='-KPIC' 8920 lt_prog_compiler_static='-static' 8921 ;; 8922 # icc used to be incompatible with GCC. 8923 # ICC 10 doesn't accept -KPIC any more. 8924 icc* | ifort*) 8925 lt_prog_compiler_wl='-Wl,' 8926 lt_prog_compiler_pic='-fPIC' 8927 lt_prog_compiler_static='-static' 8928 ;; 8929 # Lahey Fortran 8.1. 8930 lf95*) 8931 lt_prog_compiler_wl='-Wl,' 8932 lt_prog_compiler_pic='--shared' 8933 lt_prog_compiler_static='--static' 8934 ;; 8935 nagfor*) 8936 # NAG Fortran compiler 8937 lt_prog_compiler_wl='-Wl,-Wl,,' 8938 lt_prog_compiler_pic='-PIC' 8939 lt_prog_compiler_static='-Bstatic' 8940 ;; 8941 tcc*) 8942 # Fabrice Bellard et al's Tiny C Compiler 8943 lt_prog_compiler_wl='-Wl,' 8944 lt_prog_compiler_pic='-fPIC' 8945 lt_prog_compiler_static='-static' 8946 ;; 8947 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8948 # Portland Group compilers (*not* the Pentium gcc compiler, 8949 # which looks to be a dead project) 8950 lt_prog_compiler_wl='-Wl,' 8951 lt_prog_compiler_pic='-fpic' 8952 lt_prog_compiler_static='-Bstatic' 8953 ;; 8954 ccc*) 8955 lt_prog_compiler_wl='-Wl,' 8956 # All Alpha code is PIC. 8957 lt_prog_compiler_static='-non_shared' 8958 ;; 8959 xl* | bgxl* | bgf* | mpixl*) 8960 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8961 lt_prog_compiler_wl='-Wl,' 8962 lt_prog_compiler_pic='-qpic' 8963 lt_prog_compiler_static='-qstaticlink' 8964 ;; 8965 *) 8966 case `$CC -V 2>&1 | sed 5q` in 8967 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 8968 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8969 lt_prog_compiler_pic='-KPIC' 8970 lt_prog_compiler_static='-Bstatic' 8971 lt_prog_compiler_wl='' 8972 ;; 8973 *Sun\ F* | *Sun*Fortran*) 8974 lt_prog_compiler_pic='-KPIC' 8975 lt_prog_compiler_static='-Bstatic' 8976 lt_prog_compiler_wl='-Qoption ld ' 8977 ;; 8978 *Sun\ C*) 8979 # Sun C 5.9 8980 lt_prog_compiler_pic='-KPIC' 8981 lt_prog_compiler_static='-Bstatic' 8982 lt_prog_compiler_wl='-Wl,' 8983 ;; 8984 *Intel*\ [CF]*Compiler*) 8985 lt_prog_compiler_wl='-Wl,' 8986 lt_prog_compiler_pic='-fPIC' 8987 lt_prog_compiler_static='-static' 8988 ;; 8989 *Portland\ Group*) 8990 lt_prog_compiler_wl='-Wl,' 8991 lt_prog_compiler_pic='-fpic' 8992 lt_prog_compiler_static='-Bstatic' 8993 ;; 8994 esac 8995 ;; 8996 esac 8997 ;; 8998 8999 newsos6) 9000 lt_prog_compiler_pic='-KPIC' 9001 lt_prog_compiler_static='-Bstatic' 9002 ;; 9003 9004 *nto* | *qnx*) 9005 # QNX uses GNU C++, but need to define -shared option too, otherwise 9006 # it will coredump. 9007 lt_prog_compiler_pic='-fPIC -shared' 9008 ;; 9009 9010 osf3* | osf4* | osf5*) 9011 lt_prog_compiler_wl='-Wl,' 9012 # All OSF/1 code is PIC. 9013 lt_prog_compiler_static='-non_shared' 9014 ;; 9015 9016 rdos*) 9017 lt_prog_compiler_static='-non_shared' 9018 ;; 9019 9020 solaris*) 9021 lt_prog_compiler_pic='-KPIC' 9022 lt_prog_compiler_static='-Bstatic' 9023 case $cc_basename in 9024 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 9025 lt_prog_compiler_wl='-Qoption ld ';; 9026 *) 9027 lt_prog_compiler_wl='-Wl,';; 9028 esac 9029 ;; 9030 9031 sunos4*) 9032 lt_prog_compiler_wl='-Qoption ld ' 9033 lt_prog_compiler_pic='-PIC' 9034 lt_prog_compiler_static='-Bstatic' 9035 ;; 9036 9037 sysv4 | sysv4.2uw2* | sysv4.3*) 9038 lt_prog_compiler_wl='-Wl,' 9039 lt_prog_compiler_pic='-KPIC' 9040 lt_prog_compiler_static='-Bstatic' 9041 ;; 9042 9043 sysv4*MP*) 9044 if test -d /usr/nec; then 9045 lt_prog_compiler_pic='-Kconform_pic' 9046 lt_prog_compiler_static='-Bstatic' 9047 fi 9048 ;; 9049 9050 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 9051 lt_prog_compiler_wl='-Wl,' 9052 lt_prog_compiler_pic='-KPIC' 9053 lt_prog_compiler_static='-Bstatic' 9054 ;; 9055 9056 unicos*) 9057 lt_prog_compiler_wl='-Wl,' 9058 lt_prog_compiler_can_build_shared=no 9059 ;; 9060 9061 uts4*) 9062 lt_prog_compiler_pic='-pic' 9063 lt_prog_compiler_static='-Bstatic' 9064 ;; 9065 9066 *) 9067 lt_prog_compiler_can_build_shared=no 9068 ;; 9069 esac 9070 fi 9071 9072case $host_os in 9073 # For platforms that do not support PIC, -DPIC is meaningless: 9074 *djgpp*) 9075 lt_prog_compiler_pic= 9076 ;; 9077 *) 9078 lt_prog_compiler_pic="$lt_prog_compiler_pic@&t@ -DPIC" 9079 ;; 9080esac 9081 9082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 9083$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 9084if ${lt_cv_prog_compiler_pic+:} false; then : 9085 $as_echo_n "(cached) " >&6 9086else 9087 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 9088fi 9089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 9090$as_echo "$lt_cv_prog_compiler_pic" >&6; } 9091lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 9092 9093# 9094# Check to make sure the PIC flag actually works. 9095# 9096if test -n "$lt_prog_compiler_pic"; then 9097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 9098$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 9099if ${lt_cv_prog_compiler_pic_works+:} false; then : 9100 $as_echo_n "(cached) " >&6 9101else 9102 lt_cv_prog_compiler_pic_works=no 9103 ac_outfile=conftest.$ac_objext 9104 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9105 lt_compiler_flag="$lt_prog_compiler_pic@&t@ -DPIC" ## exclude from sc_useless_quotes_in_assignment 9106 # Insert the option either (1) after the last *FLAGS variable, or 9107 # (2) before a word containing "conftest.", or (3) at the end. 9108 # Note that $ac_compile itself does not contain backslashes and begins 9109 # with a dollar sign (not a hyphen), so the echo should work correctly. 9110 # The option is referenced via a variable to avoid confusing sed. 9111 lt_compile=`echo "$ac_compile" | $SED \ 9112 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9113 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9114 -e 's:$: $lt_compiler_flag:'` 9115 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9116 (eval "$lt_compile" 2>conftest.err) 9117 ac_status=$? 9118 cat conftest.err >&5 9119 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9120 if (exit $ac_status) && test -s "$ac_outfile"; then 9121 # The compiler can only warn and ignore the option if not recognized 9122 # So say no if there are warnings other than the usual output. 9123 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9124 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9125 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9126 lt_cv_prog_compiler_pic_works=yes 9127 fi 9128 fi 9129 $RM conftest* 9130 9131fi 9132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 9133$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 9134 9135if test yes = "$lt_cv_prog_compiler_pic_works"; then 9136 case $lt_prog_compiler_pic in 9137 "" | " "*) ;; 9138 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 9139 esac 9140else 9141 lt_prog_compiler_pic= 9142 lt_prog_compiler_can_build_shared=no 9143fi 9144 9145fi 9146 9147 9148 9149 9150 9151 9152 9153 9154 9155 9156 9157# 9158# Check to make sure the static flag actually works. 9159# 9160wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 9161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 9162$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 9163if ${lt_cv_prog_compiler_static_works+:} false; then : 9164 $as_echo_n "(cached) " >&6 9165else 9166 lt_cv_prog_compiler_static_works=no 9167 save_LDFLAGS=$LDFLAGS 9168 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 9169 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9170 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9171 # The linker can only warn and ignore the option if not recognized 9172 # So say no if there are warnings 9173 if test -s conftest.err; then 9174 # Append any errors to the config.log. 9175 cat conftest.err 1>&5 9176 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9177 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9178 if diff conftest.exp conftest.er2 >/dev/null; then 9179 lt_cv_prog_compiler_static_works=yes 9180 fi 9181 else 9182 lt_cv_prog_compiler_static_works=yes 9183 fi 9184 fi 9185 $RM -r conftest* 9186 LDFLAGS=$save_LDFLAGS 9187 9188fi 9189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 9190$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 9191 9192if test yes = "$lt_cv_prog_compiler_static_works"; then 9193 : 9194else 9195 lt_prog_compiler_static= 9196fi 9197 9198 9199 9200 9201 9202 9203 9204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9205$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9206if ${lt_cv_prog_compiler_c_o+:} false; then : 9207 $as_echo_n "(cached) " >&6 9208else 9209 lt_cv_prog_compiler_c_o=no 9210 $RM -r conftest 2>/dev/null 9211 mkdir conftest 9212 cd conftest 9213 mkdir out 9214 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9215 9216 lt_compiler_flag="-o out/conftest2.$ac_objext" 9217 # Insert the option either (1) after the last *FLAGS variable, or 9218 # (2) before a word containing "conftest.", or (3) at the end. 9219 # Note that $ac_compile itself does not contain backslashes and begins 9220 # with a dollar sign (not a hyphen), so the echo should work correctly. 9221 lt_compile=`echo "$ac_compile" | $SED \ 9222 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9223 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9224 -e 's:$: $lt_compiler_flag:'` 9225 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9226 (eval "$lt_compile" 2>out/conftest.err) 9227 ac_status=$? 9228 cat out/conftest.err >&5 9229 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9230 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9231 then 9232 # The compiler can only warn and ignore the option if not recognized 9233 # So say no if there are warnings 9234 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9235 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9236 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9237 lt_cv_prog_compiler_c_o=yes 9238 fi 9239 fi 9240 chmod u+w . 2>&5 9241 $RM conftest* 9242 # SGI C++ compiler will create directory out/ii_files/ for 9243 # template instantiation 9244 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9245 $RM out/* && rmdir out 9246 cd .. 9247 $RM -r conftest 9248 $RM conftest* 9249 9250fi 9251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9252$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9253 9254 9255 9256 9257 9258 9259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9260$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9261if ${lt_cv_prog_compiler_c_o+:} false; then : 9262 $as_echo_n "(cached) " >&6 9263else 9264 lt_cv_prog_compiler_c_o=no 9265 $RM -r conftest 2>/dev/null 9266 mkdir conftest 9267 cd conftest 9268 mkdir out 9269 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9270 9271 lt_compiler_flag="-o out/conftest2.$ac_objext" 9272 # Insert the option either (1) after the last *FLAGS variable, or 9273 # (2) before a word containing "conftest.", or (3) at the end. 9274 # Note that $ac_compile itself does not contain backslashes and begins 9275 # with a dollar sign (not a hyphen), so the echo should work correctly. 9276 lt_compile=`echo "$ac_compile" | $SED \ 9277 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9278 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9279 -e 's:$: $lt_compiler_flag:'` 9280 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9281 (eval "$lt_compile" 2>out/conftest.err) 9282 ac_status=$? 9283 cat out/conftest.err >&5 9284 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9285 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9286 then 9287 # The compiler can only warn and ignore the option if not recognized 9288 # So say no if there are warnings 9289 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9290 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9291 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9292 lt_cv_prog_compiler_c_o=yes 9293 fi 9294 fi 9295 chmod u+w . 2>&5 9296 $RM conftest* 9297 # SGI C++ compiler will create directory out/ii_files/ for 9298 # template instantiation 9299 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9300 $RM out/* && rmdir out 9301 cd .. 9302 $RM -r conftest 9303 $RM conftest* 9304 9305fi 9306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9307$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9308 9309 9310 9311 9312hard_links=nottested 9313if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 9314 # do not overwrite the value of need_locks provided by the user 9315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9316$as_echo_n "checking if we can lock with hard links... " >&6; } 9317 hard_links=yes 9318 $RM conftest* 9319 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9320 touch conftest.a 9321 ln conftest.a conftest.b 2>&5 || hard_links=no 9322 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9324$as_echo "$hard_links" >&6; } 9325 if test no = "$hard_links"; then 9326 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 9327$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 9328 need_locks=warn 9329 fi 9330else 9331 need_locks=no 9332fi 9333 9334 9335 9336 9337 9338 9339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9340$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9341 9342 runpath_var= 9343 allow_undefined_flag= 9344 always_export_symbols=no 9345 archive_cmds= 9346 archive_expsym_cmds= 9347 compiler_needs_object=no 9348 enable_shared_with_static_runtimes=no 9349 export_dynamic_flag_spec= 9350 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9351 hardcode_automatic=no 9352 hardcode_direct=no 9353 hardcode_direct_absolute=no 9354 hardcode_libdir_flag_spec= 9355 hardcode_libdir_separator= 9356 hardcode_minus_L=no 9357 hardcode_shlibpath_var=unsupported 9358 inherit_rpath=no 9359 link_all_deplibs=unknown 9360 module_cmds= 9361 module_expsym_cmds= 9362 old_archive_from_new_cmds= 9363 old_archive_from_expsyms_cmds= 9364 thread_safe_flag_spec= 9365 whole_archive_flag_spec= 9366 # include_expsyms should be a list of space-separated symbols to be *always* 9367 # included in the symbol list 9368 include_expsyms= 9369 # exclude_expsyms can be an extended regexp of symbols to exclude 9370 # it will be wrapped by ' (' and ')$', so one must not match beginning or 9371 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 9372 # as well as any symbol that contains 'd'. 9373 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9374 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9375 # platforms (ab)use it in PIC code, but their linkers get confused if 9376 # the symbol is explicitly referenced. Since portable code cannot 9377 # rely on this symbol name, it's probably fine to never include it in 9378 # preloaded symbol tables. 9379 # Exclude shared library initialization/finalization symbols. 9380 extract_expsyms_cmds= 9381 9382 case $host_os in 9383 cygwin* | mingw* | pw32* | cegcc*) 9384 # FIXME: the MSVC++ port hasn't been tested in a loooong time 9385 # When not using gcc, we currently assume that we are using 9386 # Microsoft Visual C++. 9387 if test yes != "$GCC"; then 9388 with_gnu_ld=no 9389 fi 9390 ;; 9391 interix*) 9392 # we just hope/assume this is gcc and not c89 (= MSVC++) 9393 with_gnu_ld=yes 9394 ;; 9395 openbsd* | bitrig*) 9396 with_gnu_ld=no 9397 ;; 9398 esac 9399 9400 ld_shlibs=yes 9401 9402 # On some targets, GNU ld is compatible enough with the native linker 9403 # that we're better off using the native interface for both. 9404 lt_use_gnu_ld_interface=no 9405 if test yes = "$with_gnu_ld"; then 9406 case $host_os in 9407 aix*) 9408 # The AIX port of GNU ld has always aspired to compatibility 9409 # with the native linker. However, as the warning in the GNU ld 9410 # block says, versions before 2.19.5* couldn't really create working 9411 # shared libraries, regardless of the interface used. 9412 case `$LD -v 2>&1` in 9413 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9414 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9415 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9416 *) 9417 lt_use_gnu_ld_interface=yes 9418 ;; 9419 esac 9420 ;; 9421 *) 9422 lt_use_gnu_ld_interface=yes 9423 ;; 9424 esac 9425 fi 9426 9427 if test yes = "$lt_use_gnu_ld_interface"; then 9428 # If archive_cmds runs LD, not CC, wlarc should be empty 9429 wlarc='$wl' 9430 9431 # Set some defaults for GNU ld with shared library support. These 9432 # are reset later if shared libraries are not supported. Putting them 9433 # here allows them to be overridden if necessary. 9434 runpath_var=LD_RUN_PATH 9435 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9436 export_dynamic_flag_spec='$wl--export-dynamic' 9437 # ancient GNU ld didn't support --whole-archive et. al. 9438 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9439 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 9440 else 9441 whole_archive_flag_spec= 9442 fi 9443 supports_anon_versioning=no 9444 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 9445 *GNU\ gold*) supports_anon_versioning=yes ;; 9446 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9447 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9448 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9449 *\ 2.11.*) ;; # other 2.11 versions 9450 *) supports_anon_versioning=yes ;; 9451 esac 9452 9453 # See if GNU ld supports shared libraries. 9454 case $host_os in 9455 aix[3-9]*) 9456 # On AIX/PPC, the GNU linker is very broken 9457 if test ia64 != "$host_cpu"; then 9458 ld_shlibs=no 9459 cat <<_LT_EOF 1>&2 9460 9461*** Warning: the GNU linker, at least up to release 2.19, is reported 9462*** to be unable to reliably create shared libraries on AIX. 9463*** Therefore, libtool is disabling shared libraries support. If you 9464*** really care for shared libraries, you may want to install binutils 9465*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9466*** You will then need to restart the configuration process. 9467 9468_LT_EOF 9469 fi 9470 ;; 9471 9472 amigaos*) 9473 case $host_cpu in 9474 powerpc) 9475 # see comment about AmigaOS4 .so support 9476 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9477 archive_expsym_cmds='' 9478 ;; 9479 m68k) 9480 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)' 9481 hardcode_libdir_flag_spec='-L$libdir' 9482 hardcode_minus_L=yes 9483 ;; 9484 esac 9485 ;; 9486 9487 beos*) 9488 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9489 allow_undefined_flag=unsupported 9490 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9491 # support --undefined. This deserves some investigation. FIXME 9492 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9493 else 9494 ld_shlibs=no 9495 fi 9496 ;; 9497 9498 cygwin* | mingw* | pw32* | cegcc*) 9499 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9500 # as there is no search path for DLLs. 9501 hardcode_libdir_flag_spec='-L$libdir' 9502 export_dynamic_flag_spec='$wl--export-all-symbols' 9503 allow_undefined_flag=unsupported 9504 always_export_symbols=no 9505 enable_shared_with_static_runtimes=yes 9506 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' 9507 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 9508 9509 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9510 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9511 # If the export-symbols file already is a .def file, use it as 9512 # is; otherwise, prepend EXPORTS... 9513 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 9514 cp $export_symbols $output_objdir/$soname.def; 9515 else 9516 echo EXPORTS > $output_objdir/$soname.def; 9517 cat $export_symbols >> $output_objdir/$soname.def; 9518 fi~ 9519 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9520 else 9521 ld_shlibs=no 9522 fi 9523 ;; 9524 9525 haiku*) 9526 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9527 link_all_deplibs=yes 9528 ;; 9529 9530 os2*) 9531 hardcode_libdir_flag_spec='-L$libdir' 9532 hardcode_minus_L=yes 9533 allow_undefined_flag=unsupported 9534 shrext_cmds=.dll 9535 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9536 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9537 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9538 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9539 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 9540 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9541 emximp -o $lib $output_objdir/$libname.def' 9542 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9543 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9544 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9545 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9546 prefix_cmds="$SED"~ 9547 if test EXPORTS = "`$SED 1q $export_symbols`"; then 9548 prefix_cmds="$prefix_cmds -e 1d"; 9549 fi~ 9550 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 9551 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 9552 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9553 emximp -o $lib $output_objdir/$libname.def' 9554 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 9555 enable_shared_with_static_runtimes=yes 9556 ;; 9557 9558 interix[3-9]*) 9559 hardcode_direct=no 9560 hardcode_shlibpath_var=no 9561 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 9562 export_dynamic_flag_spec='$wl-E' 9563 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9564 # Instead, shared libraries are loaded at an image base (0x10000000 by 9565 # default) and relocated if they conflict, which is a slow very memory 9566 # consuming and fragmenting process. To avoid this, we pick a random, 9567 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9568 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9569 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9570 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' 9571 ;; 9572 9573 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9574 tmp_diet=no 9575 if test linux-dietlibc = "$host_os"; then 9576 case $cc_basename in 9577 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9578 esac 9579 fi 9580 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9581 && test no = "$tmp_diet" 9582 then 9583 tmp_addflag=' $pic_flag' 9584 tmp_sharedflag='-shared' 9585 case $cc_basename,$host_cpu in 9586 pgcc*) # Portland Group C compiler 9587 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' 9588 tmp_addflag=' $pic_flag' 9589 ;; 9590 pgf77* | pgf90* | pgf95* | pgfortran*) 9591 # Portland Group f77 and f90 compilers 9592 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' 9593 tmp_addflag=' $pic_flag -Mnomain' ;; 9594 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9595 tmp_addflag=' -i_dynamic' ;; 9596 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9597 tmp_addflag=' -i_dynamic -nofor_main' ;; 9598 ifc* | ifort*) # Intel Fortran compiler 9599 tmp_addflag=' -nofor_main' ;; 9600 lf95*) # Lahey Fortran 8.1 9601 whole_archive_flag_spec= 9602 tmp_sharedflag='--shared' ;; 9603 nagfor*) # NAGFOR 5.3 9604 tmp_sharedflag='-Wl,-shared' ;; 9605 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9606 tmp_sharedflag='-qmkshrobj' 9607 tmp_addflag= ;; 9608 nvcc*) # Cuda Compiler Driver 2.2 9609 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' 9610 compiler_needs_object=yes 9611 ;; 9612 esac 9613 case `$CC -V 2>&1 | sed 5q` in 9614 *Sun\ C*) # Sun C 5.9 9615 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' 9616 compiler_needs_object=yes 9617 tmp_sharedflag='-G' ;; 9618 *Sun\ F*) # Sun Fortran 8.3 9619 tmp_sharedflag='-G' ;; 9620 esac 9621 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9622 9623 if test yes = "$supports_anon_versioning"; then 9624 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9625 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9626 echo "local: *; };" >> $output_objdir/$libname.ver~ 9627 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 9628 fi 9629 9630 case $cc_basename in 9631 tcc*) 9632 export_dynamic_flag_spec='-rdynamic' 9633 ;; 9634 xlf* | bgf* | bgxlf* | mpixlf*) 9635 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9636 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9637 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9638 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 9639 if test yes = "$supports_anon_versioning"; then 9640 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9641 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9642 echo "local: *; };" >> $output_objdir/$libname.ver~ 9643 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9644 fi 9645 ;; 9646 esac 9647 else 9648 ld_shlibs=no 9649 fi 9650 ;; 9651 9652 netbsd*) 9653 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9654 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9655 wlarc= 9656 else 9657 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9658 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9659 fi 9660 ;; 9661 9662 solaris*) 9663 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9664 ld_shlibs=no 9665 cat <<_LT_EOF 1>&2 9666 9667*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9668*** create shared libraries on Solaris systems. Therefore, libtool 9669*** is disabling shared libraries support. We urge you to upgrade GNU 9670*** binutils to release 2.9.1 or newer. Another option is to modify 9671*** your PATH or compiler configuration so that the native linker is 9672*** used, and then restart. 9673 9674_LT_EOF 9675 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9676 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9677 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9678 else 9679 ld_shlibs=no 9680 fi 9681 ;; 9682 9683 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9684 case `$LD -v 2>&1` in 9685 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9686 ld_shlibs=no 9687 cat <<_LT_EOF 1>&2 9688 9689*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 9690*** reliably create shared libraries on SCO systems. Therefore, libtool 9691*** is disabling shared libraries support. We urge you to upgrade GNU 9692*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9693*** your PATH or compiler configuration so that the native linker is 9694*** used, and then restart. 9695 9696_LT_EOF 9697 ;; 9698 *) 9699 # For security reasons, it is highly recommended that you always 9700 # use absolute paths for naming shared libraries, and exclude the 9701 # DT_RUNPATH tag from executables and libraries. But doing so 9702 # requires that you compile everything twice, which is a pain. 9703 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9704 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9705 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9706 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9707 else 9708 ld_shlibs=no 9709 fi 9710 ;; 9711 esac 9712 ;; 9713 9714 sunos4*) 9715 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9716 wlarc= 9717 hardcode_direct=yes 9718 hardcode_shlibpath_var=no 9719 ;; 9720 9721 *) 9722 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9723 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9724 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9725 else 9726 ld_shlibs=no 9727 fi 9728 ;; 9729 esac 9730 9731 if test no = "$ld_shlibs"; then 9732 runpath_var= 9733 hardcode_libdir_flag_spec= 9734 export_dynamic_flag_spec= 9735 whole_archive_flag_spec= 9736 fi 9737 else 9738 # PORTME fill in a description of your system's linker (not GNU ld) 9739 case $host_os in 9740 aix3*) 9741 allow_undefined_flag=unsupported 9742 always_export_symbols=yes 9743 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' 9744 # Note: this linker hardcodes the directories in LIBPATH if there 9745 # are no directories specified by -L. 9746 hardcode_minus_L=yes 9747 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 9748 # Neither direct hardcoding nor static linking is supported with a 9749 # broken collect2. 9750 hardcode_direct=unsupported 9751 fi 9752 ;; 9753 9754 aix[4-9]*) 9755 if test ia64 = "$host_cpu"; then 9756 # On IA64, the linker does run time linking by default, so we don't 9757 # have to do anything special. 9758 aix_use_runtimelinking=no 9759 exp_sym_flag='-Bexport' 9760 no_entry_flag= 9761 else 9762 # If we're using GNU nm, then we don't want the "-C" option. 9763 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 9764 # Without the "-l" option, or with the "-B" option, AIX nm treats 9765 # weak defined symbols like other global defined symbols, whereas 9766 # GNU nm marks them as "W". 9767 # While the 'weak' keyword is ignored in the Export File, we need 9768 # it in the Import File for the 'aix-soname' feature, so we have 9769 # to replace the "-B" option with "-P" for AIX nm. 9770 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9771 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' 9772 else 9773 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' 9774 fi 9775 aix_use_runtimelinking=no 9776 9777 # Test if we are trying to use run time linking or normal 9778 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9779 # have runtime linking enabled, and use it for executables. 9780 # For shared libraries, we enable/disable runtime linking 9781 # depending on the kind of the shared library created - 9782 # when "with_aix_soname,aix_use_runtimelinking" is: 9783 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 9784 # "aix,yes" lib.so shared, rtl:yes, for executables 9785 # lib.a static archive 9786 # "both,no" lib.so.V(shr.o) shared, rtl:yes 9787 # lib.a(lib.so.V) shared, rtl:no, for executables 9788 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 9789 # lib.a(lib.so.V) shared, rtl:no 9790 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 9791 # lib.a static archive 9792 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9793 for ld_flag in $LDFLAGS; do 9794 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 9795 aix_use_runtimelinking=yes 9796 break 9797 fi 9798 done 9799 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 9800 # With aix-soname=svr4, we create the lib.so.V shared archives only, 9801 # so we don't have lib.a shared libs to link our executables. 9802 # We have to force runtime linking in this case. 9803 aix_use_runtimelinking=yes 9804 LDFLAGS="$LDFLAGS -Wl,-brtl" 9805 fi 9806 ;; 9807 esac 9808 9809 exp_sym_flag='-bexport' 9810 no_entry_flag='-bnoentry' 9811 fi 9812 9813 # When large executables or shared objects are built, AIX ld can 9814 # have problems creating the table of contents. If linking a library 9815 # or program results in "error TOC overflow" add -mminimal-toc to 9816 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9817 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9818 9819 archive_cmds='' 9820 hardcode_direct=yes 9821 hardcode_direct_absolute=yes 9822 hardcode_libdir_separator=':' 9823 link_all_deplibs=yes 9824 file_list_spec='$wl-f,' 9825 case $with_aix_soname,$aix_use_runtimelinking in 9826 aix,*) ;; # traditional, no import file 9827 svr4,* | *,yes) # use import file 9828 # The Import File defines what to hardcode. 9829 hardcode_direct=no 9830 hardcode_direct_absolute=no 9831 ;; 9832 esac 9833 9834 if test yes = "$GCC"; then 9835 case $host_os in aix4.[012]|aix4.[012].*) 9836 # We only want to do this on AIX 4.2 and lower, the check 9837 # below for broken collect2 doesn't work under 4.3+ 9838 collect2name=`$CC -print-prog-name=collect2` 9839 if test -f "$collect2name" && 9840 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9841 then 9842 # We have reworked collect2 9843 : 9844 else 9845 # We have old collect2 9846 hardcode_direct=unsupported 9847 # It fails to find uninstalled libraries when the uninstalled 9848 # path is not listed in the libpath. Setting hardcode_minus_L 9849 # to unsupported forces relinking 9850 hardcode_minus_L=yes 9851 hardcode_libdir_flag_spec='-L$libdir' 9852 hardcode_libdir_separator= 9853 fi 9854 ;; 9855 esac 9856 shared_flag='-shared' 9857 if test yes = "$aix_use_runtimelinking"; then 9858 shared_flag="$shared_flag "'$wl-G' 9859 fi 9860 # Need to ensure runtime linking is disabled for the traditional 9861 # shared library, or the linker may eventually find shared libraries 9862 # /with/ Import File - we do not want to mix them. 9863 shared_flag_aix='-shared' 9864 shared_flag_svr4='-shared $wl-G' 9865 else 9866 # not using gcc 9867 if test ia64 = "$host_cpu"; then 9868 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9869 # chokes on -Wl,-G. The following line is correct: 9870 shared_flag='-G' 9871 else 9872 if test yes = "$aix_use_runtimelinking"; then 9873 shared_flag='$wl-G' 9874 else 9875 shared_flag='$wl-bM:SRE' 9876 fi 9877 shared_flag_aix='$wl-bM:SRE' 9878 shared_flag_svr4='$wl-G' 9879 fi 9880 fi 9881 9882 export_dynamic_flag_spec='$wl-bexpall' 9883 # It seems that -bexpall does not export symbols beginning with 9884 # underscore (_), so it is better to generate a list of symbols to export. 9885 always_export_symbols=yes 9886 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 9887 # Warning - without using the other runtime loading flags (-brtl), 9888 # -berok will link without error, but may produce a broken library. 9889 allow_undefined_flag='-berok' 9890 # Determine the default libpath from the value encoded in an 9891 # empty executable. 9892 if test set = "${lt_cv_aix_libpath+set}"; then 9893 aix_libpath=$lt_cv_aix_libpath 9894else 9895 if ${lt_cv_aix_libpath_+:} false; then : 9896 $as_echo_n "(cached) " >&6 9897else 9898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9899/* end confdefs.h. */ 9900 9901int 9902main () 9903{ 9904 9905 ; 9906 return 0; 9907} 9908_ACEOF 9909if ac_fn_c_try_link "$LINENO"; then : 9910 9911 lt_aix_libpath_sed=' 9912 /Import File Strings/,/^$/ { 9913 /^0/ { 9914 s/^0 *\([^ ]*\) *$/\1/ 9915 p 9916 } 9917 }' 9918 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9919 # Check for a 64-bit object if we didn't find anything. 9920 if test -z "$lt_cv_aix_libpath_"; then 9921 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9922 fi 9923fi 9924rm -f core conftest.err conftest.$ac_objext \ 9925 conftest$ac_exeext conftest.$ac_ext 9926 if test -z "$lt_cv_aix_libpath_"; then 9927 lt_cv_aix_libpath_=/usr/lib:/lib 9928 fi 9929 9930fi 9931 9932 aix_libpath=$lt_cv_aix_libpath_ 9933fi 9934 9935 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 9936 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 9937 else 9938 if test ia64 = "$host_cpu"; then 9939 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 9940 allow_undefined_flag="-z nodefs" 9941 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" 9942 else 9943 # Determine the default libpath from the value encoded in an 9944 # empty executable. 9945 if test set = "${lt_cv_aix_libpath+set}"; then 9946 aix_libpath=$lt_cv_aix_libpath 9947else 9948 if ${lt_cv_aix_libpath_+:} false; then : 9949 $as_echo_n "(cached) " >&6 9950else 9951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9952/* end confdefs.h. */ 9953 9954int 9955main () 9956{ 9957 9958 ; 9959 return 0; 9960} 9961_ACEOF 9962if ac_fn_c_try_link "$LINENO"; then : 9963 9964 lt_aix_libpath_sed=' 9965 /Import File Strings/,/^$/ { 9966 /^0/ { 9967 s/^0 *\([^ ]*\) *$/\1/ 9968 p 9969 } 9970 }' 9971 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9972 # Check for a 64-bit object if we didn't find anything. 9973 if test -z "$lt_cv_aix_libpath_"; then 9974 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9975 fi 9976fi 9977rm -f core conftest.err conftest.$ac_objext \ 9978 conftest$ac_exeext conftest.$ac_ext 9979 if test -z "$lt_cv_aix_libpath_"; then 9980 lt_cv_aix_libpath_=/usr/lib:/lib 9981 fi 9982 9983fi 9984 9985 aix_libpath=$lt_cv_aix_libpath_ 9986fi 9987 9988 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 9989 # Warning - without using the other run time loading flags, 9990 # -berok will link without error, but may produce a broken library. 9991 no_undefined_flag=' $wl-bernotok' 9992 allow_undefined_flag=' $wl-berok' 9993 if test yes = "$with_gnu_ld"; then 9994 # We only use this code for GNU lds that support --whole-archive. 9995 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 9996 else 9997 # Exported symbols can be pulled into shared objects from archives 9998 whole_archive_flag_spec='$convenience' 9999 fi 10000 archive_cmds_need_lc=yes 10001 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 10002 # -brtl affects multiple linker settings, -berok does not and is overridden later 10003 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 10004 if test svr4 != "$with_aix_soname"; then 10005 # This is similar to how AIX traditionally builds its shared libraries. 10006 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' 10007 fi 10008 if test aix != "$with_aix_soname"; then 10009 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' 10010 else 10011 # used by -dlpreopen to get the symbols 10012 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 10013 fi 10014 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 10015 fi 10016 fi 10017 ;; 10018 10019 amigaos*) 10020 case $host_cpu in 10021 powerpc) 10022 # see comment about AmigaOS4 .so support 10023 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10024 archive_expsym_cmds='' 10025 ;; 10026 m68k) 10027 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)' 10028 hardcode_libdir_flag_spec='-L$libdir' 10029 hardcode_minus_L=yes 10030 ;; 10031 esac 10032 ;; 10033 10034 bsdi[45]*) 10035 export_dynamic_flag_spec=-rdynamic 10036 ;; 10037 10038 cygwin* | mingw* | pw32* | cegcc*) 10039 # When not using gcc, we currently assume that we are using 10040 # Microsoft Visual C++. 10041 # hardcode_libdir_flag_spec is actually meaningless, as there is 10042 # no search path for DLLs. 10043 case $cc_basename in 10044 cl*) 10045 # Native MSVC 10046 hardcode_libdir_flag_spec=' ' 10047 allow_undefined_flag=unsupported 10048 always_export_symbols=yes 10049 file_list_spec='@' 10050 # Tell ltmain to make .lib files, not .a files. 10051 libext=lib 10052 # Tell ltmain to make .dll files, not .so files. 10053 shrext_cmds=.dll 10054 # FIXME: Setting linknames here is a bad hack. 10055 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 10056 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10057 cp "$export_symbols" "$output_objdir/$soname.def"; 10058 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 10059 else 10060 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 10061 fi~ 10062 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 10063 linknames=' 10064 # The linker will not automatically build a static lib if we build a DLL. 10065 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 10066 enable_shared_with_static_runtimes=yes 10067 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 10068 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 10069 # Don't use ranlib 10070 old_postinstall_cmds='chmod 644 $oldlib' 10071 postlink_cmds='lt_outputfile="@OUTPUT@"~ 10072 lt_tool_outputfile="@TOOL_OUTPUT@"~ 10073 case $lt_outputfile in 10074 *.exe|*.EXE) ;; 10075 *) 10076 lt_outputfile=$lt_outputfile.exe 10077 lt_tool_outputfile=$lt_tool_outputfile.exe 10078 ;; 10079 esac~ 10080 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 10081 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 10082 $RM "$lt_outputfile.manifest"; 10083 fi' 10084 ;; 10085 *) 10086 # Assume MSVC wrapper 10087 hardcode_libdir_flag_spec=' ' 10088 allow_undefined_flag=unsupported 10089 # Tell ltmain to make .lib files, not .a files. 10090 libext=lib 10091 # Tell ltmain to make .dll files, not .so files. 10092 shrext_cmds=.dll 10093 # FIXME: Setting linknames here is a bad hack. 10094 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 10095 # The linker will automatically build a .lib file if we build a DLL. 10096 old_archive_from_new_cmds='true' 10097 # FIXME: Should let the user specify the lib program. 10098 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 10099 enable_shared_with_static_runtimes=yes 10100 ;; 10101 esac 10102 ;; 10103 10104 darwin* | rhapsody*) 10105 10106 10107 archive_cmds_need_lc=no 10108 hardcode_direct=no 10109 hardcode_automatic=yes 10110 hardcode_shlibpath_var=unsupported 10111 if test yes = "$lt_cv_ld_force_load"; then 10112 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\"`' 10113 10114 else 10115 whole_archive_flag_spec='' 10116 fi 10117 link_all_deplibs=yes 10118 allow_undefined_flag=$_lt_dar_allow_undefined 10119 case $cc_basename in 10120 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 10121 *) _lt_dar_can_shared=$GCC ;; 10122 esac 10123 if test yes = "$_lt_dar_can_shared"; then 10124 output_verbose_link_cmd=func_echo_all 10125 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 10126 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 10127 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" 10128 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" 10129 10130 else 10131 ld_shlibs=no 10132 fi 10133 10134 ;; 10135 10136 dgux*) 10137 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10138 hardcode_libdir_flag_spec='-L$libdir' 10139 hardcode_shlibpath_var=no 10140 ;; 10141 10142 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 10143 # support. Future versions do this automatically, but an explicit c++rt0.o 10144 # does not break anything, and helps significantly (at the cost of a little 10145 # extra space). 10146 freebsd2.2*) 10147 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 10148 hardcode_libdir_flag_spec='-R$libdir' 10149 hardcode_direct=yes 10150 hardcode_shlibpath_var=no 10151 ;; 10152 10153 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 10154 freebsd2.*) 10155 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10156 hardcode_direct=yes 10157 hardcode_minus_L=yes 10158 hardcode_shlibpath_var=no 10159 ;; 10160 10161 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 10162 freebsd* | dragonfly*) 10163 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10164 hardcode_libdir_flag_spec='-R$libdir' 10165 hardcode_direct=yes 10166 hardcode_shlibpath_var=no 10167 ;; 10168 10169 hpux9*) 10170 if test yes = "$GCC"; then 10171 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' 10172 else 10173 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' 10174 fi 10175 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10176 hardcode_libdir_separator=: 10177 hardcode_direct=yes 10178 10179 # hardcode_minus_L: Not really in the search PATH, 10180 # but as the default location of the library. 10181 hardcode_minus_L=yes 10182 export_dynamic_flag_spec='$wl-E' 10183 ;; 10184 10185 hpux10*) 10186 if test yes,no = "$GCC,$with_gnu_ld"; then 10187 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10188 else 10189 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10190 fi 10191 if test no = "$with_gnu_ld"; then 10192 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10193 hardcode_libdir_separator=: 10194 hardcode_direct=yes 10195 hardcode_direct_absolute=yes 10196 export_dynamic_flag_spec='$wl-E' 10197 # hardcode_minus_L: Not really in the search PATH, 10198 # but as the default location of the library. 10199 hardcode_minus_L=yes 10200 fi 10201 ;; 10202 10203 hpux11*) 10204 if test yes,no = "$GCC,$with_gnu_ld"; then 10205 case $host_cpu in 10206 hppa*64*) 10207 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10208 ;; 10209 ia64*) 10210 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10211 ;; 10212 *) 10213 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10214 ;; 10215 esac 10216 else 10217 case $host_cpu in 10218 hppa*64*) 10219 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10220 ;; 10221 ia64*) 10222 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10223 ;; 10224 *) 10225 10226 # Older versions of the 11.00 compiler do not understand -b yet 10227 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 10228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 10229$as_echo_n "checking if $CC understands -b... " >&6; } 10230if ${lt_cv_prog_compiler__b+:} false; then : 10231 $as_echo_n "(cached) " >&6 10232else 10233 lt_cv_prog_compiler__b=no 10234 save_LDFLAGS=$LDFLAGS 10235 LDFLAGS="$LDFLAGS -b" 10236 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10237 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10238 # The linker can only warn and ignore the option if not recognized 10239 # So say no if there are warnings 10240 if test -s conftest.err; then 10241 # Append any errors to the config.log. 10242 cat conftest.err 1>&5 10243 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10244 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10245 if diff conftest.exp conftest.er2 >/dev/null; then 10246 lt_cv_prog_compiler__b=yes 10247 fi 10248 else 10249 lt_cv_prog_compiler__b=yes 10250 fi 10251 fi 10252 $RM -r conftest* 10253 LDFLAGS=$save_LDFLAGS 10254 10255fi 10256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 10257$as_echo "$lt_cv_prog_compiler__b" >&6; } 10258 10259if test yes = "$lt_cv_prog_compiler__b"; then 10260 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10261else 10262 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10263fi 10264 10265 ;; 10266 esac 10267 fi 10268 if test no = "$with_gnu_ld"; then 10269 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10270 hardcode_libdir_separator=: 10271 10272 case $host_cpu in 10273 hppa*64*|ia64*) 10274 hardcode_direct=no 10275 hardcode_shlibpath_var=no 10276 ;; 10277 *) 10278 hardcode_direct=yes 10279 hardcode_direct_absolute=yes 10280 export_dynamic_flag_spec='$wl-E' 10281 10282 # hardcode_minus_L: Not really in the search PATH, 10283 # but as the default location of the library. 10284 hardcode_minus_L=yes 10285 ;; 10286 esac 10287 fi 10288 ;; 10289 10290 irix5* | irix6* | nonstopux*) 10291 if test yes = "$GCC"; then 10292 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' 10293 # Try to use the -exported_symbol ld option, if it does not 10294 # work, assume that -exports_file does not work either and 10295 # implicitly export all symbols. 10296 # This should be the same for all languages, so no per-tag cache variable. 10297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 10298$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 10299if ${lt_cv_irix_exported_symbol+:} false; then : 10300 $as_echo_n "(cached) " >&6 10301else 10302 save_LDFLAGS=$LDFLAGS 10303 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 10304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10305/* end confdefs.h. */ 10306int foo (void) { return 0; } 10307_ACEOF 10308if ac_fn_c_try_link "$LINENO"; then : 10309 lt_cv_irix_exported_symbol=yes 10310else 10311 lt_cv_irix_exported_symbol=no 10312fi 10313rm -f core conftest.err conftest.$ac_objext \ 10314 conftest$ac_exeext conftest.$ac_ext 10315 LDFLAGS=$save_LDFLAGS 10316fi 10317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 10318$as_echo "$lt_cv_irix_exported_symbol" >&6; } 10319 if test yes = "$lt_cv_irix_exported_symbol"; then 10320 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' 10321 fi 10322 else 10323 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' 10324 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' 10325 fi 10326 archive_cmds_need_lc='no' 10327 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10328 hardcode_libdir_separator=: 10329 inherit_rpath=yes 10330 link_all_deplibs=yes 10331 ;; 10332 10333 linux*) 10334 case $cc_basename in 10335 tcc*) 10336 # Fabrice Bellard et al's Tiny C Compiler 10337 ld_shlibs=yes 10338 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10339 ;; 10340 esac 10341 ;; 10342 10343 netbsd*) 10344 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10345 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10346 else 10347 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10348 fi 10349 hardcode_libdir_flag_spec='-R$libdir' 10350 hardcode_direct=yes 10351 hardcode_shlibpath_var=no 10352 ;; 10353 10354 newsos6) 10355 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10356 hardcode_direct=yes 10357 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10358 hardcode_libdir_separator=: 10359 hardcode_shlibpath_var=no 10360 ;; 10361 10362 *nto* | *qnx*) 10363 ;; 10364 10365 openbsd* | bitrig*) 10366 if test -f /usr/libexec/ld.so; then 10367 hardcode_direct=yes 10368 hardcode_shlibpath_var=no 10369 hardcode_direct_absolute=yes 10370 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 10371 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10372 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 10373 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10374 export_dynamic_flag_spec='$wl-E' 10375 else 10376 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10377 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10378 fi 10379 else 10380 ld_shlibs=no 10381 fi 10382 ;; 10383 10384 os2*) 10385 hardcode_libdir_flag_spec='-L$libdir' 10386 hardcode_minus_L=yes 10387 allow_undefined_flag=unsupported 10388 shrext_cmds=.dll 10389 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10390 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10391 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10392 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10393 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10394 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10395 emximp -o $lib $output_objdir/$libname.def' 10396 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10397 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10398 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10399 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10400 prefix_cmds="$SED"~ 10401 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10402 prefix_cmds="$prefix_cmds -e 1d"; 10403 fi~ 10404 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10405 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10406 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10407 emximp -o $lib $output_objdir/$libname.def' 10408 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10409 enable_shared_with_static_runtimes=yes 10410 ;; 10411 10412 osf3*) 10413 if test yes = "$GCC"; then 10414 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10415 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' 10416 else 10417 allow_undefined_flag=' -expect_unresolved \*' 10418 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' 10419 fi 10420 archive_cmds_need_lc='no' 10421 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10422 hardcode_libdir_separator=: 10423 ;; 10424 10425 osf4* | osf5*) # as osf3* with the addition of -msym flag 10426 if test yes = "$GCC"; then 10427 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10428 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' 10429 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10430 else 10431 allow_undefined_flag=' -expect_unresolved \*' 10432 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' 10433 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~ 10434 $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' 10435 10436 # Both c and cxx compiler support -rpath directly 10437 hardcode_libdir_flag_spec='-rpath $libdir' 10438 fi 10439 archive_cmds_need_lc='no' 10440 hardcode_libdir_separator=: 10441 ;; 10442 10443 solaris*) 10444 no_undefined_flag=' -z defs' 10445 if test yes = "$GCC"; then 10446 wlarc='$wl' 10447 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10448 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10449 $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' 10450 else 10451 case `$CC -V 2>&1` in 10452 *"Compilers 5.0"*) 10453 wlarc='' 10454 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 10455 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10456 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10457 ;; 10458 *) 10459 wlarc='$wl' 10460 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10461 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10462 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10463 ;; 10464 esac 10465 fi 10466 hardcode_libdir_flag_spec='-R$libdir' 10467 hardcode_shlibpath_var=no 10468 case $host_os in 10469 solaris2.[0-5] | solaris2.[0-5].*) ;; 10470 *) 10471 # The compiler driver will combine and reorder linker options, 10472 # but understands '-z linker_flag'. GCC discards it without '$wl', 10473 # but is careful enough not to reorder. 10474 # Supported since Solaris 2.6 (maybe 2.5.1?) 10475 if test yes = "$GCC"; then 10476 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 10477 else 10478 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10479 fi 10480 ;; 10481 esac 10482 link_all_deplibs=yes 10483 ;; 10484 10485 sunos4*) 10486 if test sequent = "$host_vendor"; then 10487 # Use $CC to link under sequent, because it throws in some extra .o 10488 # files that make .init and .fini sections work. 10489 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10490 else 10491 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10492 fi 10493 hardcode_libdir_flag_spec='-L$libdir' 10494 hardcode_direct=yes 10495 hardcode_minus_L=yes 10496 hardcode_shlibpath_var=no 10497 ;; 10498 10499 sysv4) 10500 case $host_vendor in 10501 sni) 10502 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10503 hardcode_direct=yes # is this really true??? 10504 ;; 10505 siemens) 10506 ## LD is ld it makes a PLAMLIB 10507 ## CC just makes a GrossModule. 10508 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10509 reload_cmds='$CC -r -o $output$reload_objs' 10510 hardcode_direct=no 10511 ;; 10512 motorola) 10513 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10514 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10515 ;; 10516 esac 10517 runpath_var='LD_RUN_PATH' 10518 hardcode_shlibpath_var=no 10519 ;; 10520 10521 sysv4.3*) 10522 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10523 hardcode_shlibpath_var=no 10524 export_dynamic_flag_spec='-Bexport' 10525 ;; 10526 10527 sysv4*MP*) 10528 if test -d /usr/nec; then 10529 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10530 hardcode_shlibpath_var=no 10531 runpath_var=LD_RUN_PATH 10532 hardcode_runpath_var=yes 10533 ld_shlibs=yes 10534 fi 10535 ;; 10536 10537 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10538 no_undefined_flag='$wl-z,text' 10539 archive_cmds_need_lc=no 10540 hardcode_shlibpath_var=no 10541 runpath_var='LD_RUN_PATH' 10542 10543 if test yes = "$GCC"; then 10544 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10545 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10546 else 10547 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10548 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10549 fi 10550 ;; 10551 10552 sysv5* | sco3.2v5* | sco5v6*) 10553 # Note: We CANNOT use -z defs as we might desire, because we do not 10554 # link with -lc, and that would cause any symbols used from libc to 10555 # always be unresolved, which means just about no library would 10556 # ever link correctly. If we're not using GNU ld we use -z text 10557 # though, which does catch some bad symbols but isn't as heavy-handed 10558 # as -z defs. 10559 no_undefined_flag='$wl-z,text' 10560 allow_undefined_flag='$wl-z,nodefs' 10561 archive_cmds_need_lc=no 10562 hardcode_shlibpath_var=no 10563 hardcode_libdir_flag_spec='$wl-R,$libdir' 10564 hardcode_libdir_separator=':' 10565 link_all_deplibs=yes 10566 export_dynamic_flag_spec='$wl-Bexport' 10567 runpath_var='LD_RUN_PATH' 10568 10569 if test yes = "$GCC"; then 10570 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10571 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10572 else 10573 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10574 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10575 fi 10576 ;; 10577 10578 uts4*) 10579 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10580 hardcode_libdir_flag_spec='-L$libdir' 10581 hardcode_shlibpath_var=no 10582 ;; 10583 10584 *) 10585 ld_shlibs=no 10586 ;; 10587 esac 10588 10589 if test sni = "$host_vendor"; then 10590 case $host in 10591 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10592 export_dynamic_flag_spec='$wl-Blargedynsym' 10593 ;; 10594 esac 10595 fi 10596 fi 10597 10598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10599$as_echo "$ld_shlibs" >&6; } 10600test no = "$ld_shlibs" && can_build_shared=no 10601 10602with_gnu_ld=$with_gnu_ld 10603 10604 10605 10606 10607 10608 10609 10610 10611 10612 10613 10614 10615 10616 10617 10618# 10619# Do we need to explicitly link libc? 10620# 10621case "x$archive_cmds_need_lc" in 10622x|xyes) 10623 # Assume -lc should be added 10624 archive_cmds_need_lc=yes 10625 10626 if test yes,yes = "$GCC,$enable_shared"; then 10627 case $archive_cmds in 10628 *'~'*) 10629 # FIXME: we may have to deal with multi-command sequences. 10630 ;; 10631 '$CC '*) 10632 # Test whether the compiler implicitly links with -lc since on some 10633 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10634 # to ld, don't add -lc before -lgcc. 10635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10636$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 10637if ${lt_cv_archive_cmds_need_lc+:} false; then : 10638 $as_echo_n "(cached) " >&6 10639else 10640 $RM conftest* 10641 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10642 10643 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10644 (eval $ac_compile) 2>&5 10645 ac_status=$? 10646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10647 test $ac_status = 0; } 2>conftest.err; then 10648 soname=conftest 10649 lib=conftest 10650 libobjs=conftest.$ac_objext 10651 deplibs= 10652 wl=$lt_prog_compiler_wl 10653 pic_flag=$lt_prog_compiler_pic 10654 compiler_flags=-v 10655 linker_flags=-v 10656 verstring= 10657 output_objdir=. 10658 libname=conftest 10659 lt_save_allow_undefined_flag=$allow_undefined_flag 10660 allow_undefined_flag= 10661 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10662 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10663 ac_status=$? 10664 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10665 test $ac_status = 0; } 10666 then 10667 lt_cv_archive_cmds_need_lc=no 10668 else 10669 lt_cv_archive_cmds_need_lc=yes 10670 fi 10671 allow_undefined_flag=$lt_save_allow_undefined_flag 10672 else 10673 cat conftest.err 1>&5 10674 fi 10675 $RM conftest* 10676 10677fi 10678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 10679$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 10680 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 10681 ;; 10682 esac 10683 fi 10684 ;; 10685esac 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 10835 10836 10837 10838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 10839$as_echo_n "checking dynamic linker characteristics... " >&6; } 10840 10841if test yes = "$GCC"; then 10842 case $host_os in 10843 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 10844 *) lt_awk_arg='/^libraries:/' ;; 10845 esac 10846 case $host_os in 10847 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 10848 *) lt_sed_strip_eq='s|=/|/|g' ;; 10849 esac 10850 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 10851 case $lt_search_path_spec in 10852 *\;*) 10853 # if the path contains ";" then we assume it to be the separator 10854 # otherwise default to the standard path separator (i.e. ":") - it is 10855 # assumed that no part of a normal pathname contains ";" but that should 10856 # okay in the real world where ";" in dirpaths is itself problematic. 10857 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 10858 ;; 10859 *) 10860 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 10861 ;; 10862 esac 10863 # Ok, now we have the path, separated by spaces, we can step through it 10864 # and add multilib dir if necessary... 10865 lt_tmp_lt_search_path_spec= 10866 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10867 # ...but if some path component already ends with the multilib dir we assume 10868 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 10869 case "$lt_multi_os_dir; $lt_search_path_spec " in 10870 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 10871 lt_multi_os_dir= 10872 ;; 10873 esac 10874 for lt_sys_path in $lt_search_path_spec; do 10875 if test -d "$lt_sys_path$lt_multi_os_dir"; then 10876 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 10877 elif test -n "$lt_multi_os_dir"; then 10878 test -d "$lt_sys_path" && \ 10879 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10880 fi 10881 done 10882 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 10883BEGIN {RS = " "; FS = "/|\n";} { 10884 lt_foo = ""; 10885 lt_count = 0; 10886 for (lt_i = NF; lt_i > 0; lt_i--) { 10887 if ($lt_i != "" && $lt_i != ".") { 10888 if ($lt_i == "..") { 10889 lt_count++; 10890 } else { 10891 if (lt_count == 0) { 10892 lt_foo = "/" $lt_i lt_foo; 10893 } else { 10894 lt_count--; 10895 } 10896 } 10897 } 10898 } 10899 if (lt_foo != "") { lt_freq[lt_foo]++; } 10900 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10901}'` 10902 # AWK program above erroneously prepends '/' to C:/dos/paths 10903 # for these hosts. 10904 case $host_os in 10905 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 10906 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 10907 esac 10908 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 10909else 10910 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10911fi 10912library_names_spec= 10913libname_spec='lib$name' 10914soname_spec= 10915shrext_cmds=.so 10916postinstall_cmds= 10917postuninstall_cmds= 10918finish_cmds= 10919finish_eval= 10920shlibpath_var= 10921shlibpath_overrides_runpath=unknown 10922version_type=none 10923dynamic_linker="$host_os ld.so" 10924sys_lib_dlsearch_path_spec="/lib /usr/lib" 10925need_lib_prefix=unknown 10926hardcode_into_libs=no 10927 10928# when you set need_version to no, make sure it does not cause -set_version 10929# flags to be left without arguments 10930need_version=unknown 10931 10932 10933 10934case $host_os in 10935aix3*) 10936 version_type=linux # correct to gnu/linux during the next big refactor 10937 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 10938 shlibpath_var=LIBPATH 10939 10940 # AIX 3 has no versioning support, so we append a major version to the name. 10941 soname_spec='$libname$release$shared_ext$major' 10942 ;; 10943 10944aix[4-9]*) 10945 version_type=linux # correct to gnu/linux during the next big refactor 10946 need_lib_prefix=no 10947 need_version=no 10948 hardcode_into_libs=yes 10949 if test ia64 = "$host_cpu"; then 10950 # AIX 5 supports IA64 10951 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 10952 shlibpath_var=LD_LIBRARY_PATH 10953 else 10954 # With GCC up to 2.95.x, collect2 would create an import file 10955 # for dependence libraries. The import file would start with 10956 # the line '#! .'. This would cause the generated library to 10957 # depend on '.', always an invalid library. This was fixed in 10958 # development snapshots of GCC prior to 3.0. 10959 case $host_os in 10960 aix4 | aix4.[01] | aix4.[01].*) 10961 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10962 echo ' yes ' 10963 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 10964 : 10965 else 10966 can_build_shared=no 10967 fi 10968 ;; 10969 esac 10970 # Using Import Files as archive members, it is possible to support 10971 # filename-based versioning of shared library archives on AIX. While 10972 # this would work for both with and without runtime linking, it will 10973 # prevent static linking of such archives. So we do filename-based 10974 # shared library versioning with .so extension only, which is used 10975 # when both runtime linking and shared linking is enabled. 10976 # Unfortunately, runtime linking may impact performance, so we do 10977 # not want this to be the default eventually. Also, we use the 10978 # versioned .so libs for executables only if there is the -brtl 10979 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 10980 # To allow for filename-based versioning support, we need to create 10981 # libNAME.so.V as an archive file, containing: 10982 # *) an Import File, referring to the versioned filename of the 10983 # archive as well as the shared archive member, telling the 10984 # bitwidth (32 or 64) of that shared object, and providing the 10985 # list of exported symbols of that shared object, eventually 10986 # decorated with the 'weak' keyword 10987 # *) the shared object with the F_LOADONLY flag set, to really avoid 10988 # it being seen by the linker. 10989 # At run time we better use the real file rather than another symlink, 10990 # but for link time we create the symlink libNAME.so -> libNAME.so.V 10991 10992 case $with_aix_soname,$aix_use_runtimelinking in 10993 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 10994 # soname into executable. Probably we can add versioning support to 10995 # collect2, so additional links can be useful in future. 10996 aix,yes) # traditional libtool 10997 dynamic_linker='AIX unversionable lib.so' 10998 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10999 # instead of lib<name>.a to let people know that these are not 11000 # typical AIX shared libraries. 11001 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11002 ;; 11003 aix,no) # traditional AIX only 11004 dynamic_linker='AIX lib.a(lib.so.V)' 11005 # We preserve .a as extension for shared libraries through AIX4.2 11006 # and later when we are not doing run time linking. 11007 library_names_spec='$libname$release.a $libname.a' 11008 soname_spec='$libname$release$shared_ext$major' 11009 ;; 11010 svr4,*) # full svr4 only 11011 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 11012 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11013 # We do not specify a path in Import Files, so LIBPATH fires. 11014 shlibpath_overrides_runpath=yes 11015 ;; 11016 *,yes) # both, prefer svr4 11017 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 11018 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11019 # unpreferred sharedlib libNAME.a needs extra handling 11020 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"' 11021 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"' 11022 # We do not specify a path in Import Files, so LIBPATH fires. 11023 shlibpath_overrides_runpath=yes 11024 ;; 11025 *,no) # both, prefer aix 11026 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 11027 library_names_spec='$libname$release.a $libname.a' 11028 soname_spec='$libname$release$shared_ext$major' 11029 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 11030 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)' 11031 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"' 11032 ;; 11033 esac 11034 shlibpath_var=LIBPATH 11035 fi 11036 ;; 11037 11038amigaos*) 11039 case $host_cpu in 11040 powerpc) 11041 # Since July 2007 AmigaOS4 officially supports .so libraries. 11042 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 11043 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11044 ;; 11045 m68k) 11046 library_names_spec='$libname.ixlibrary $libname.a' 11047 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11048 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' 11049 ;; 11050 esac 11051 ;; 11052 11053beos*) 11054 library_names_spec='$libname$shared_ext' 11055 dynamic_linker="$host_os ld.so" 11056 shlibpath_var=LIBRARY_PATH 11057 ;; 11058 11059bsdi[45]*) 11060 version_type=linux # correct to gnu/linux during the next big refactor 11061 need_version=no 11062 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11063 soname_spec='$libname$release$shared_ext$major' 11064 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11065 shlibpath_var=LD_LIBRARY_PATH 11066 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11067 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11068 # the default ld.so.conf also contains /usr/contrib/lib and 11069 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11070 # libtool to hard-code these into programs 11071 ;; 11072 11073cygwin* | mingw* | pw32* | cegcc*) 11074 version_type=windows 11075 shrext_cmds=.dll 11076 need_version=no 11077 need_lib_prefix=no 11078 11079 case $GCC,$cc_basename in 11080 yes,*) 11081 # gcc 11082 library_names_spec='$libname.dll.a' 11083 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11084 postinstall_cmds='base_file=`basename \$file`~ 11085 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11086 dldir=$destdir/`dirname \$dlpath`~ 11087 test -d \$dldir || mkdir -p \$dldir~ 11088 $install_prog $dir/$dlname \$dldir/$dlname~ 11089 chmod a+x \$dldir/$dlname~ 11090 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11091 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11092 fi' 11093 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11094 dlpath=$dir/\$dldll~ 11095 $RM \$dlpath' 11096 shlibpath_overrides_runpath=yes 11097 11098 case $host_os in 11099 cygwin*) 11100 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11101 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11102 11103 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 11104 ;; 11105 mingw* | cegcc*) 11106 # MinGW DLLs use traditional 'lib' prefix 11107 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11108 ;; 11109 pw32*) 11110 # pw32 DLLs use 'pw' prefix rather than 'lib' 11111 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11112 ;; 11113 esac 11114 dynamic_linker='Win32 ld.exe' 11115 ;; 11116 11117 *,cl*) 11118 # Native MSVC 11119 libname_spec='$name' 11120 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11121 library_names_spec='$libname.dll.lib' 11122 11123 case $build_os in 11124 mingw*) 11125 sys_lib_search_path_spec= 11126 lt_save_ifs=$IFS 11127 IFS=';' 11128 for lt_path in $LIB 11129 do 11130 IFS=$lt_save_ifs 11131 # Let DOS variable expansion print the short 8.3 style file name. 11132 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 11133 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 11134 done 11135 IFS=$lt_save_ifs 11136 # Convert to MSYS style. 11137 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 11138 ;; 11139 cygwin*) 11140 # Convert to unix form, then to dos form, then back to unix form 11141 # but this time dos style (no spaces!) so that the unix form looks 11142 # like /cygdrive/c/PROGRA~1:/cygdr... 11143 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 11144 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 11145 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11146 ;; 11147 *) 11148 sys_lib_search_path_spec=$LIB 11149 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 11150 # It is most probably a Windows format PATH. 11151 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11152 else 11153 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11154 fi 11155 # FIXME: find the short name or the path components, as spaces are 11156 # common. (e.g. "Program Files" -> "PROGRA~1") 11157 ;; 11158 esac 11159 11160 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11161 postinstall_cmds='base_file=`basename \$file`~ 11162 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11163 dldir=$destdir/`dirname \$dlpath`~ 11164 test -d \$dldir || mkdir -p \$dldir~ 11165 $install_prog $dir/$dlname \$dldir/$dlname' 11166 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11167 dlpath=$dir/\$dldll~ 11168 $RM \$dlpath' 11169 shlibpath_overrides_runpath=yes 11170 dynamic_linker='Win32 link.exe' 11171 ;; 11172 11173 *) 11174 # Assume MSVC wrapper 11175 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 11176 dynamic_linker='Win32 ld.exe' 11177 ;; 11178 esac 11179 # FIXME: first we should search . and the directory the executable is in 11180 shlibpath_var=PATH 11181 ;; 11182 11183darwin* | rhapsody*) 11184 dynamic_linker="$host_os dyld" 11185 version_type=darwin 11186 need_lib_prefix=no 11187 need_version=no 11188 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 11189 soname_spec='$libname$release$major$shared_ext' 11190 shlibpath_overrides_runpath=yes 11191 shlibpath_var=DYLD_LIBRARY_PATH 11192 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 11193 11194 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 11195 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11196 ;; 11197 11198dgux*) 11199 version_type=linux # correct to gnu/linux during the next big refactor 11200 need_lib_prefix=no 11201 need_version=no 11202 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11203 soname_spec='$libname$release$shared_ext$major' 11204 shlibpath_var=LD_LIBRARY_PATH 11205 ;; 11206 11207freebsd* | dragonfly*) 11208 # DragonFly does not have aout. When/if they implement a new 11209 # versioning mechanism, adjust this. 11210 if test -x /usr/bin/objformat; then 11211 objformat=`/usr/bin/objformat` 11212 else 11213 case $host_os in 11214 freebsd[23].*) objformat=aout ;; 11215 *) objformat=elf ;; 11216 esac 11217 fi 11218 version_type=freebsd-$objformat 11219 case $version_type in 11220 freebsd-elf*) 11221 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11222 soname_spec='$libname$release$shared_ext$major' 11223 need_version=no 11224 need_lib_prefix=no 11225 ;; 11226 freebsd-*) 11227 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11228 need_version=yes 11229 ;; 11230 esac 11231 shlibpath_var=LD_LIBRARY_PATH 11232 case $host_os in 11233 freebsd2.*) 11234 shlibpath_overrides_runpath=yes 11235 ;; 11236 freebsd3.[01]* | freebsdelf3.[01]*) 11237 shlibpath_overrides_runpath=yes 11238 hardcode_into_libs=yes 11239 ;; 11240 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 11241 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 11242 shlibpath_overrides_runpath=no 11243 hardcode_into_libs=yes 11244 ;; 11245 *) # from 4.6 on, and DragonFly 11246 shlibpath_overrides_runpath=yes 11247 hardcode_into_libs=yes 11248 ;; 11249 esac 11250 ;; 11251 11252haiku*) 11253 version_type=linux # correct to gnu/linux during the next big refactor 11254 need_lib_prefix=no 11255 need_version=no 11256 dynamic_linker="$host_os runtime_loader" 11257 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11258 soname_spec='$libname$release$shared_ext$major' 11259 shlibpath_var=LIBRARY_PATH 11260 shlibpath_overrides_runpath=no 11261 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 11262 hardcode_into_libs=yes 11263 ;; 11264 11265hpux9* | hpux10* | hpux11*) 11266 # Give a soname corresponding to the major version so that dld.sl refuses to 11267 # link against other versions. 11268 version_type=sunos 11269 need_lib_prefix=no 11270 need_version=no 11271 case $host_cpu in 11272 ia64*) 11273 shrext_cmds='.so' 11274 hardcode_into_libs=yes 11275 dynamic_linker="$host_os dld.so" 11276 shlibpath_var=LD_LIBRARY_PATH 11277 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11278 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11279 soname_spec='$libname$release$shared_ext$major' 11280 if test 32 = "$HPUX_IA64_MODE"; then 11281 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11282 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 11283 else 11284 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11285 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 11286 fi 11287 ;; 11288 hppa*64*) 11289 shrext_cmds='.sl' 11290 hardcode_into_libs=yes 11291 dynamic_linker="$host_os dld.sl" 11292 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11293 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11294 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11295 soname_spec='$libname$release$shared_ext$major' 11296 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11297 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11298 ;; 11299 *) 11300 shrext_cmds='.sl' 11301 dynamic_linker="$host_os dld.sl" 11302 shlibpath_var=SHLIB_PATH 11303 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11304 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11305 soname_spec='$libname$release$shared_ext$major' 11306 ;; 11307 esac 11308 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 11309 postinstall_cmds='chmod 555 $lib' 11310 # or fails outright, so override atomically: 11311 install_override_mode=555 11312 ;; 11313 11314interix[3-9]*) 11315 version_type=linux # correct to gnu/linux during the next big refactor 11316 need_lib_prefix=no 11317 need_version=no 11318 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11319 soname_spec='$libname$release$shared_ext$major' 11320 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 11321 shlibpath_var=LD_LIBRARY_PATH 11322 shlibpath_overrides_runpath=no 11323 hardcode_into_libs=yes 11324 ;; 11325 11326irix5* | irix6* | nonstopux*) 11327 case $host_os in 11328 nonstopux*) version_type=nonstopux ;; 11329 *) 11330 if test yes = "$lt_cv_prog_gnu_ld"; then 11331 version_type=linux # correct to gnu/linux during the next big refactor 11332 else 11333 version_type=irix 11334 fi ;; 11335 esac 11336 need_lib_prefix=no 11337 need_version=no 11338 soname_spec='$libname$release$shared_ext$major' 11339 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 11340 case $host_os in 11341 irix5* | nonstopux*) 11342 libsuff= shlibsuff= 11343 ;; 11344 *) 11345 case $LD in # libtool.m4 will add one of these switches to LD 11346 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11347 libsuff= shlibsuff= libmagic=32-bit;; 11348 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11349 libsuff=32 shlibsuff=N32 libmagic=N32;; 11350 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11351 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11352 *) libsuff= shlibsuff= libmagic=never-match;; 11353 esac 11354 ;; 11355 esac 11356 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11357 shlibpath_overrides_runpath=no 11358 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 11359 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 11360 hardcode_into_libs=yes 11361 ;; 11362 11363# No shared lib support for Linux oldld, aout, or coff. 11364linux*oldld* | linux*aout* | linux*coff*) 11365 dynamic_linker=no 11366 ;; 11367 11368linux*android*) 11369 version_type=none # Android doesn't support versioned libraries. 11370 need_lib_prefix=no 11371 need_version=no 11372 library_names_spec='$libname$release$shared_ext' 11373 soname_spec='$libname$release$shared_ext' 11374 finish_cmds= 11375 shlibpath_var=LD_LIBRARY_PATH 11376 shlibpath_overrides_runpath=yes 11377 11378 # This implies no fast_install, which is unacceptable. 11379 # Some rework will be needed to allow for fast_install 11380 # before this can be enabled. 11381 hardcode_into_libs=yes 11382 11383 dynamic_linker='Android linker' 11384 # Don't embed -rpath directories since the linker doesn't support them. 11385 hardcode_libdir_flag_spec='-L$libdir' 11386 ;; 11387 11388# This must be glibc/ELF. 11389linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 11390 version_type=linux # correct to gnu/linux during the next big refactor 11391 need_lib_prefix=no 11392 need_version=no 11393 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11394 soname_spec='$libname$release$shared_ext$major' 11395 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11396 shlibpath_var=LD_LIBRARY_PATH 11397 shlibpath_overrides_runpath=no 11398 11399 # Some binutils ld are patched to set DT_RUNPATH 11400 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 11401 $as_echo_n "(cached) " >&6 11402else 11403 lt_cv_shlibpath_overrides_runpath=no 11404 save_LDFLAGS=$LDFLAGS 11405 save_libdir=$libdir 11406 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 11407 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 11408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11409/* end confdefs.h. */ 11410 11411int 11412main () 11413{ 11414 11415 ; 11416 return 0; 11417} 11418_ACEOF 11419if ac_fn_c_try_link "$LINENO"; then : 11420 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 11421 lt_cv_shlibpath_overrides_runpath=yes 11422fi 11423fi 11424rm -f core conftest.err conftest.$ac_objext \ 11425 conftest$ac_exeext conftest.$ac_ext 11426 LDFLAGS=$save_LDFLAGS 11427 libdir=$save_libdir 11428 11429fi 11430 11431 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 11432 11433 # This implies no fast_install, which is unacceptable. 11434 # Some rework will be needed to allow for fast_install 11435 # before this can be enabled. 11436 hardcode_into_libs=yes 11437 11438 # Ideally, we could use ldconfig to report *all* directores which are 11439 # searched for libraries, however this is still not possible. Aside from not 11440 # being certain /sbin/ldconfig is available, command 11441 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 11442 # even though it is searched at run-time. Try to do the best guess by 11443 # appending ld.so.conf contents (and includes) to the search path. 11444 if test -f /etc/ld.so.conf; then 11445 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' ' '` 11446 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 11447 fi 11448 11449 # We used to test for /lib/ld.so.1 and disable shared libraries on 11450 # powerpc, because MkLinux only supported shared libraries with the 11451 # GNU dynamic linker. Since this was broken with cross compilers, 11452 # most powerpc-linux boxes support dynamic linking these days and 11453 # people can always --disable-shared, the test was removed, and we 11454 # assume the GNU/Linux dynamic linker is in use. 11455 dynamic_linker='GNU/Linux ld.so' 11456 ;; 11457 11458netbsd*) 11459 version_type=sunos 11460 need_lib_prefix=no 11461 need_version=no 11462 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11463 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11464 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11465 dynamic_linker='NetBSD (a.out) ld.so' 11466 else 11467 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11468 soname_spec='$libname$release$shared_ext$major' 11469 dynamic_linker='NetBSD ld.elf_so' 11470 fi 11471 shlibpath_var=LD_LIBRARY_PATH 11472 shlibpath_overrides_runpath=yes 11473 hardcode_into_libs=yes 11474 ;; 11475 11476newsos6) 11477 version_type=linux # correct to gnu/linux during the next big refactor 11478 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11479 shlibpath_var=LD_LIBRARY_PATH 11480 shlibpath_overrides_runpath=yes 11481 ;; 11482 11483*nto* | *qnx*) 11484 version_type=qnx 11485 need_lib_prefix=no 11486 need_version=no 11487 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11488 soname_spec='$libname$release$shared_ext$major' 11489 shlibpath_var=LD_LIBRARY_PATH 11490 shlibpath_overrides_runpath=no 11491 hardcode_into_libs=yes 11492 dynamic_linker='ldqnx.so' 11493 ;; 11494 11495openbsd* | bitrig*) 11496 version_type=sunos 11497 sys_lib_dlsearch_path_spec=/usr/lib 11498 need_lib_prefix=no 11499 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11500 need_version=no 11501 else 11502 need_version=yes 11503 fi 11504 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11505 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11506 shlibpath_var=LD_LIBRARY_PATH 11507 shlibpath_overrides_runpath=yes 11508 ;; 11509 11510os2*) 11511 libname_spec='$name' 11512 version_type=windows 11513 shrext_cmds=.dll 11514 need_version=no 11515 need_lib_prefix=no 11516 # OS/2 can only load a DLL with a base name of 8 characters or less. 11517 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 11518 v=$($ECHO $release$versuffix | tr -d .-); 11519 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 11520 $ECHO $n$v`$shared_ext' 11521 library_names_spec='${libname}_dll.$libext' 11522 dynamic_linker='OS/2 ld.exe' 11523 shlibpath_var=BEGINLIBPATH 11524 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11525 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11526 postinstall_cmds='base_file=`basename \$file`~ 11527 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 11528 dldir=$destdir/`dirname \$dlpath`~ 11529 test -d \$dldir || mkdir -p \$dldir~ 11530 $install_prog $dir/$dlname \$dldir/$dlname~ 11531 chmod a+x \$dldir/$dlname~ 11532 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11533 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11534 fi' 11535 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 11536 dlpath=$dir/\$dldll~ 11537 $RM \$dlpath' 11538 ;; 11539 11540osf3* | osf4* | osf5*) 11541 version_type=osf 11542 need_lib_prefix=no 11543 need_version=no 11544 soname_spec='$libname$release$shared_ext$major' 11545 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11546 shlibpath_var=LD_LIBRARY_PATH 11547 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11548 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11549 ;; 11550 11551rdos*) 11552 dynamic_linker=no 11553 ;; 11554 11555solaris*) 11556 version_type=linux # correct to gnu/linux during the next big refactor 11557 need_lib_prefix=no 11558 need_version=no 11559 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11560 soname_spec='$libname$release$shared_ext$major' 11561 shlibpath_var=LD_LIBRARY_PATH 11562 shlibpath_overrides_runpath=yes 11563 hardcode_into_libs=yes 11564 # ldd complains unless libraries are executable 11565 postinstall_cmds='chmod +x $lib' 11566 ;; 11567 11568sunos4*) 11569 version_type=sunos 11570 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11571 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11572 shlibpath_var=LD_LIBRARY_PATH 11573 shlibpath_overrides_runpath=yes 11574 if test yes = "$with_gnu_ld"; then 11575 need_lib_prefix=no 11576 fi 11577 need_version=yes 11578 ;; 11579 11580sysv4 | sysv4.3*) 11581 version_type=linux # correct to gnu/linux during the next big refactor 11582 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11583 soname_spec='$libname$release$shared_ext$major' 11584 shlibpath_var=LD_LIBRARY_PATH 11585 case $host_vendor in 11586 sni) 11587 shlibpath_overrides_runpath=no 11588 need_lib_prefix=no 11589 runpath_var=LD_RUN_PATH 11590 ;; 11591 siemens) 11592 need_lib_prefix=no 11593 ;; 11594 motorola) 11595 need_lib_prefix=no 11596 need_version=no 11597 shlibpath_overrides_runpath=no 11598 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11599 ;; 11600 esac 11601 ;; 11602 11603sysv4*MP*) 11604 if test -d /usr/nec; then 11605 version_type=linux # correct to gnu/linux during the next big refactor 11606 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 11607 soname_spec='$libname$shared_ext.$major' 11608 shlibpath_var=LD_LIBRARY_PATH 11609 fi 11610 ;; 11611 11612sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11613 version_type=sco 11614 need_lib_prefix=no 11615 need_version=no 11616 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 11617 soname_spec='$libname$release$shared_ext$major' 11618 shlibpath_var=LD_LIBRARY_PATH 11619 shlibpath_overrides_runpath=yes 11620 hardcode_into_libs=yes 11621 if test yes = "$with_gnu_ld"; then 11622 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11623 else 11624 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11625 case $host_os in 11626 sco3.2v5*) 11627 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11628 ;; 11629 esac 11630 fi 11631 sys_lib_dlsearch_path_spec='/usr/lib' 11632 ;; 11633 11634tpf*) 11635 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 11636 version_type=linux # correct to gnu/linux during the next big refactor 11637 need_lib_prefix=no 11638 need_version=no 11639 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11640 shlibpath_var=LD_LIBRARY_PATH 11641 shlibpath_overrides_runpath=no 11642 hardcode_into_libs=yes 11643 ;; 11644 11645uts4*) 11646 version_type=linux # correct to gnu/linux during the next big refactor 11647 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11648 soname_spec='$libname$release$shared_ext$major' 11649 shlibpath_var=LD_LIBRARY_PATH 11650 ;; 11651 11652*) 11653 dynamic_linker=no 11654 ;; 11655esac 11656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 11657$as_echo "$dynamic_linker" >&6; } 11658test no = "$dynamic_linker" && can_build_shared=no 11659 11660variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11661if test yes = "$GCC"; then 11662 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11663fi 11664 11665if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 11666 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 11667fi 11668 11669if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 11670 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 11671fi 11672 11673# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 11674configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 11675 11676# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 11677func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 11678 11679# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 11680configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 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 11775 11776 11777 11778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 11779$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 11780hardcode_action= 11781if test -n "$hardcode_libdir_flag_spec" || 11782 test -n "$runpath_var" || 11783 test yes = "$hardcode_automatic"; then 11784 11785 # We can hardcode non-existent directories. 11786 if test no != "$hardcode_direct" && 11787 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11788 # have to relink, otherwise we might link with an installed library 11789 # when we should be linking with a yet-to-be-installed one 11790 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 11791 test no != "$hardcode_minus_L"; then 11792 # Linking always hardcodes the temporary library directory. 11793 hardcode_action=relink 11794 else 11795 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11796 hardcode_action=immediate 11797 fi 11798else 11799 # We cannot hardcode anything, or else we can only hardcode existing 11800 # directories. 11801 hardcode_action=unsupported 11802fi 11803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 11804$as_echo "$hardcode_action" >&6; } 11805 11806if test relink = "$hardcode_action" || 11807 test yes = "$inherit_rpath"; then 11808 # Fast installation is not supported 11809 enable_fast_install=no 11810elif test yes = "$shlibpath_overrides_runpath" || 11811 test no = "$enable_shared"; then 11812 # Fast installation is not necessary 11813 enable_fast_install=needless 11814fi 11815 11816 11817 11818 11819 11820 11821 if test yes != "$enable_dlopen"; then 11822 enable_dlopen=unknown 11823 enable_dlopen_self=unknown 11824 enable_dlopen_self_static=unknown 11825else 11826 lt_cv_dlopen=no 11827 lt_cv_dlopen_libs= 11828 11829 case $host_os in 11830 beos*) 11831 lt_cv_dlopen=load_add_on 11832 lt_cv_dlopen_libs= 11833 lt_cv_dlopen_self=yes 11834 ;; 11835 11836 mingw* | pw32* | cegcc*) 11837 lt_cv_dlopen=LoadLibrary 11838 lt_cv_dlopen_libs= 11839 ;; 11840 11841 cygwin*) 11842 lt_cv_dlopen=dlopen 11843 lt_cv_dlopen_libs= 11844 ;; 11845 11846 darwin*) 11847 # if libdl is installed we need to link against it 11848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11849$as_echo_n "checking for dlopen in -ldl... " >&6; } 11850if ${ac_cv_lib_dl_dlopen+:} false; then : 11851 $as_echo_n "(cached) " >&6 11852else 11853 ac_check_lib_save_LIBS=$LIBS 11854LIBS="-ldl $LIBS" 11855cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11856/* end confdefs.h. */ 11857 11858/* Override any GCC internal prototype to avoid an error. 11859 Use char because int might match the return type of a GCC 11860 builtin and then its argument prototype would still apply. */ 11861#ifdef __cplusplus 11862extern "C" 11863#endif 11864char dlopen (); 11865int 11866main () 11867{ 11868return dlopen (); 11869 ; 11870 return 0; 11871} 11872_ACEOF 11873if ac_fn_c_try_link "$LINENO"; then : 11874 ac_cv_lib_dl_dlopen=yes 11875else 11876 ac_cv_lib_dl_dlopen=no 11877fi 11878rm -f core conftest.err conftest.$ac_objext \ 11879 conftest$ac_exeext conftest.$ac_ext 11880LIBS=$ac_check_lib_save_LIBS 11881fi 11882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11883$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11884if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11885 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 11886else 11887 11888 lt_cv_dlopen=dyld 11889 lt_cv_dlopen_libs= 11890 lt_cv_dlopen_self=yes 11891 11892fi 11893 11894 ;; 11895 11896 tpf*) 11897 # Don't try to run any link tests for TPF. We know it's impossible 11898 # because TPF is a cross-compiler, and we know how we open DSOs. 11899 lt_cv_dlopen=dlopen 11900 lt_cv_dlopen_libs= 11901 lt_cv_dlopen_self=no 11902 ;; 11903 11904 *) 11905 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 11906if test "x$ac_cv_func_shl_load" = xyes; then : 11907 lt_cv_dlopen=shl_load 11908else 11909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 11910$as_echo_n "checking for shl_load in -ldld... " >&6; } 11911if ${ac_cv_lib_dld_shl_load+:} false; then : 11912 $as_echo_n "(cached) " >&6 11913else 11914 ac_check_lib_save_LIBS=$LIBS 11915LIBS="-ldld $LIBS" 11916cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11917/* end confdefs.h. */ 11918 11919/* Override any GCC internal prototype to avoid an error. 11920 Use char because int might match the return type of a GCC 11921 builtin and then its argument prototype would still apply. */ 11922#ifdef __cplusplus 11923extern "C" 11924#endif 11925char shl_load (); 11926int 11927main () 11928{ 11929return shl_load (); 11930 ; 11931 return 0; 11932} 11933_ACEOF 11934if ac_fn_c_try_link "$LINENO"; then : 11935 ac_cv_lib_dld_shl_load=yes 11936else 11937 ac_cv_lib_dld_shl_load=no 11938fi 11939rm -f core conftest.err conftest.$ac_objext \ 11940 conftest$ac_exeext conftest.$ac_ext 11941LIBS=$ac_check_lib_save_LIBS 11942fi 11943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 11944$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 11945if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 11946 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 11947else 11948 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 11949if test "x$ac_cv_func_dlopen" = xyes; then : 11950 lt_cv_dlopen=dlopen 11951else 11952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11953$as_echo_n "checking for dlopen in -ldl... " >&6; } 11954if ${ac_cv_lib_dl_dlopen+:} false; then : 11955 $as_echo_n "(cached) " >&6 11956else 11957 ac_check_lib_save_LIBS=$LIBS 11958LIBS="-ldl $LIBS" 11959cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11960/* end confdefs.h. */ 11961 11962/* Override any GCC internal prototype to avoid an error. 11963 Use char because int might match the return type of a GCC 11964 builtin and then its argument prototype would still apply. */ 11965#ifdef __cplusplus 11966extern "C" 11967#endif 11968char dlopen (); 11969int 11970main () 11971{ 11972return dlopen (); 11973 ; 11974 return 0; 11975} 11976_ACEOF 11977if ac_fn_c_try_link "$LINENO"; then : 11978 ac_cv_lib_dl_dlopen=yes 11979else 11980 ac_cv_lib_dl_dlopen=no 11981fi 11982rm -f core conftest.err conftest.$ac_objext \ 11983 conftest$ac_exeext conftest.$ac_ext 11984LIBS=$ac_check_lib_save_LIBS 11985fi 11986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11987$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11988if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11989 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 11990else 11991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 11992$as_echo_n "checking for dlopen in -lsvld... " >&6; } 11993if ${ac_cv_lib_svld_dlopen+:} false; then : 11994 $as_echo_n "(cached) " >&6 11995else 11996 ac_check_lib_save_LIBS=$LIBS 11997LIBS="-lsvld $LIBS" 11998cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11999/* end confdefs.h. */ 12000 12001/* Override any GCC internal prototype to avoid an error. 12002 Use char because int might match the return type of a GCC 12003 builtin and then its argument prototype would still apply. */ 12004#ifdef __cplusplus 12005extern "C" 12006#endif 12007char dlopen (); 12008int 12009main () 12010{ 12011return dlopen (); 12012 ; 12013 return 0; 12014} 12015_ACEOF 12016if ac_fn_c_try_link "$LINENO"; then : 12017 ac_cv_lib_svld_dlopen=yes 12018else 12019 ac_cv_lib_svld_dlopen=no 12020fi 12021rm -f core conftest.err conftest.$ac_objext \ 12022 conftest$ac_exeext conftest.$ac_ext 12023LIBS=$ac_check_lib_save_LIBS 12024fi 12025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 12026$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 12027if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 12028 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 12029else 12030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 12031$as_echo_n "checking for dld_link in -ldld... " >&6; } 12032if ${ac_cv_lib_dld_dld_link+:} false; then : 12033 $as_echo_n "(cached) " >&6 12034else 12035 ac_check_lib_save_LIBS=$LIBS 12036LIBS="-ldld $LIBS" 12037cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12038/* end confdefs.h. */ 12039 12040/* Override any GCC internal prototype to avoid an error. 12041 Use char because int might match the return type of a GCC 12042 builtin and then its argument prototype would still apply. */ 12043#ifdef __cplusplus 12044extern "C" 12045#endif 12046char dld_link (); 12047int 12048main () 12049{ 12050return dld_link (); 12051 ; 12052 return 0; 12053} 12054_ACEOF 12055if ac_fn_c_try_link "$LINENO"; then : 12056 ac_cv_lib_dld_dld_link=yes 12057else 12058 ac_cv_lib_dld_dld_link=no 12059fi 12060rm -f core conftest.err conftest.$ac_objext \ 12061 conftest$ac_exeext conftest.$ac_ext 12062LIBS=$ac_check_lib_save_LIBS 12063fi 12064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 12065$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 12066if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 12067 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 12068fi 12069 12070 12071fi 12072 12073 12074fi 12075 12076 12077fi 12078 12079 12080fi 12081 12082 12083fi 12084 12085 ;; 12086 esac 12087 12088 if test no = "$lt_cv_dlopen"; then 12089 enable_dlopen=no 12090 else 12091 enable_dlopen=yes 12092 fi 12093 12094 case $lt_cv_dlopen in 12095 dlopen) 12096 save_CPPFLAGS=$CPPFLAGS 12097 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 12098 12099 save_LDFLAGS=$LDFLAGS 12100 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 12101 12102 save_LIBS=$LIBS 12103 LIBS="$lt_cv_dlopen_libs $LIBS" 12104 12105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 12106$as_echo_n "checking whether a program can dlopen itself... " >&6; } 12107if ${lt_cv_dlopen_self+:} false; then : 12108 $as_echo_n "(cached) " >&6 12109else 12110 if test yes = "$cross_compiling"; then : 12111 lt_cv_dlopen_self=cross 12112else 12113 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12114 lt_status=$lt_dlunknown 12115 cat > conftest.$ac_ext <<_LT_EOF 12116#line $LINENO "configure" 12117#include "confdefs.h" 12118 12119#if HAVE_DLFCN_H 12120#include <dlfcn.h> 12121#endif 12122 12123#include <stdio.h> 12124 12125#ifdef RTLD_GLOBAL 12126# define LT_DLGLOBAL RTLD_GLOBAL 12127#else 12128# ifdef DL_GLOBAL 12129# define LT_DLGLOBAL DL_GLOBAL 12130# else 12131# define LT_DLGLOBAL 0 12132# endif 12133#endif 12134 12135/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12136 find out it does not work in some platform. */ 12137#ifndef LT_DLLAZY_OR_NOW 12138# ifdef RTLD_LAZY 12139# define LT_DLLAZY_OR_NOW RTLD_LAZY 12140# else 12141# ifdef DL_LAZY 12142# define LT_DLLAZY_OR_NOW DL_LAZY 12143# else 12144# ifdef RTLD_NOW 12145# define LT_DLLAZY_OR_NOW RTLD_NOW 12146# else 12147# ifdef DL_NOW 12148# define LT_DLLAZY_OR_NOW DL_NOW 12149# else 12150# define LT_DLLAZY_OR_NOW 0 12151# endif 12152# endif 12153# endif 12154# endif 12155#endif 12156 12157/* When -fvisibility=hidden is used, assume the code has been annotated 12158 correspondingly for the symbols needed. */ 12159#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12160int fnord () __attribute__((visibility("default"))); 12161#endif 12162 12163int fnord () { return 42; } 12164int main () 12165{ 12166 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12167 int status = $lt_dlunknown; 12168 12169 if (self) 12170 { 12171 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12172 else 12173 { 12174 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12175 else puts (dlerror ()); 12176 } 12177 /* dlclose (self); */ 12178 } 12179 else 12180 puts (dlerror ()); 12181 12182 return status; 12183} 12184_LT_EOF 12185 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12186 (eval $ac_link) 2>&5 12187 ac_status=$? 12188 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12189 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12190 (./conftest; exit; ) >&5 2>/dev/null 12191 lt_status=$? 12192 case x$lt_status in 12193 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 12194 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 12195 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 12196 esac 12197 else : 12198 # compilation failed 12199 lt_cv_dlopen_self=no 12200 fi 12201fi 12202rm -fr conftest* 12203 12204 12205fi 12206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 12207$as_echo "$lt_cv_dlopen_self" >&6; } 12208 12209 if test yes = "$lt_cv_dlopen_self"; then 12210 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 12211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 12212$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 12213if ${lt_cv_dlopen_self_static+:} false; then : 12214 $as_echo_n "(cached) " >&6 12215else 12216 if test yes = "$cross_compiling"; then : 12217 lt_cv_dlopen_self_static=cross 12218else 12219 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12220 lt_status=$lt_dlunknown 12221 cat > conftest.$ac_ext <<_LT_EOF 12222#line $LINENO "configure" 12223#include "confdefs.h" 12224 12225#if HAVE_DLFCN_H 12226#include <dlfcn.h> 12227#endif 12228 12229#include <stdio.h> 12230 12231#ifdef RTLD_GLOBAL 12232# define LT_DLGLOBAL RTLD_GLOBAL 12233#else 12234# ifdef DL_GLOBAL 12235# define LT_DLGLOBAL DL_GLOBAL 12236# else 12237# define LT_DLGLOBAL 0 12238# endif 12239#endif 12240 12241/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12242 find out it does not work in some platform. */ 12243#ifndef LT_DLLAZY_OR_NOW 12244# ifdef RTLD_LAZY 12245# define LT_DLLAZY_OR_NOW RTLD_LAZY 12246# else 12247# ifdef DL_LAZY 12248# define LT_DLLAZY_OR_NOW DL_LAZY 12249# else 12250# ifdef RTLD_NOW 12251# define LT_DLLAZY_OR_NOW RTLD_NOW 12252# else 12253# ifdef DL_NOW 12254# define LT_DLLAZY_OR_NOW DL_NOW 12255# else 12256# define LT_DLLAZY_OR_NOW 0 12257# endif 12258# endif 12259# endif 12260# endif 12261#endif 12262 12263/* When -fvisibility=hidden is used, assume the code has been annotated 12264 correspondingly for the symbols needed. */ 12265#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12266int fnord () __attribute__((visibility("default"))); 12267#endif 12268 12269int fnord () { return 42; } 12270int main () 12271{ 12272 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12273 int status = $lt_dlunknown; 12274 12275 if (self) 12276 { 12277 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12278 else 12279 { 12280 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12281 else puts (dlerror ()); 12282 } 12283 /* dlclose (self); */ 12284 } 12285 else 12286 puts (dlerror ()); 12287 12288 return status; 12289} 12290_LT_EOF 12291 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12292 (eval $ac_link) 2>&5 12293 ac_status=$? 12294 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12295 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12296 (./conftest; exit; ) >&5 2>/dev/null 12297 lt_status=$? 12298 case x$lt_status in 12299 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12300 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12301 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 12302 esac 12303 else : 12304 # compilation failed 12305 lt_cv_dlopen_self_static=no 12306 fi 12307fi 12308rm -fr conftest* 12309 12310 12311fi 12312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 12313$as_echo "$lt_cv_dlopen_self_static" >&6; } 12314 fi 12315 12316 CPPFLAGS=$save_CPPFLAGS 12317 LDFLAGS=$save_LDFLAGS 12318 LIBS=$save_LIBS 12319 ;; 12320 esac 12321 12322 case $lt_cv_dlopen_self in 12323 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 12324 *) enable_dlopen_self=unknown ;; 12325 esac 12326 12327 case $lt_cv_dlopen_self_static in 12328 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 12329 *) enable_dlopen_self_static=unknown ;; 12330 esac 12331fi 12332 12333 12334 12335 12336 12337 12338 12339 12340 12341 12342 12343 12344 12345 12346 12347 12348 12349striplib= 12350old_striplib= 12351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 12352$as_echo_n "checking whether stripping libraries is possible... " >&6; } 12353if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 12354 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 12355 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 12356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12357$as_echo "yes" >&6; } 12358else 12359# FIXME - insert some real tests, host_os isn't really good enough 12360 case $host_os in 12361 darwin*) 12362 if test -n "$STRIP"; then 12363 striplib="$STRIP -x" 12364 old_striplib="$STRIP -S" 12365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12366$as_echo "yes" >&6; } 12367 else 12368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12369$as_echo "no" >&6; } 12370 fi 12371 ;; 12372 *) 12373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12374$as_echo "no" >&6; } 12375 ;; 12376 esac 12377fi 12378 12379 12380 12381 12382 12383 12384 12385 12386 12387 12388 12389 12390 # Report what library types will actually be built 12391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 12392$as_echo_n "checking if libtool supports shared libraries... " >&6; } 12393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 12394$as_echo "$can_build_shared" >&6; } 12395 12396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 12397$as_echo_n "checking whether to build shared libraries... " >&6; } 12398 test no = "$can_build_shared" && enable_shared=no 12399 12400 # On AIX, shared libraries and static libraries use the same namespace, and 12401 # are all built from PIC. 12402 case $host_os in 12403 aix3*) 12404 test yes = "$enable_shared" && enable_static=no 12405 if test -n "$RANLIB"; then 12406 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12407 postinstall_cmds='$RANLIB $lib' 12408 fi 12409 ;; 12410 12411 aix[4-9]*) 12412 if test ia64 != "$host_cpu"; then 12413 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 12414 yes,aix,yes) ;; # shared object as lib.so file only 12415 yes,svr4,*) ;; # shared object as lib.so archive member only 12416 yes,*) enable_static=no ;; # shared object in lib.a archive as well 12417 esac 12418 fi 12419 ;; 12420 esac 12421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 12422$as_echo "$enable_shared" >&6; } 12423 12424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 12425$as_echo_n "checking whether to build static libraries... " >&6; } 12426 # Make sure either enable_shared or enable_static is yes. 12427 test yes = "$enable_shared" || enable_static=yes 12428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 12429$as_echo "$enable_static" >&6; } 12430 12431 12432 12433 12434fi 12435ac_ext=c 12436ac_cpp='$CPP $CPPFLAGS' 12437ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12438ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12439ac_compiler_gnu=$ac_cv_c_compiler_gnu 12440 12441CC=$lt_save_CC 12442 12443 12444 12445 12446 12447 12448 12449 12450 12451 12452 12453 12454 12455 12456 12457 ac_config_commands="$ac_config_commands libtool" 12458 12459 12460 12461 12462# Only expand once: 12463 12464 12465ac_ext=c 12466ac_cpp='$CPP $CPPFLAGS' 12467ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12468ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12469ac_compiler_gnu=$ac_cv_c_compiler_gnu 12470if test -n "$ac_tool_prefix"; then 12471 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 12472set dummy ${ac_tool_prefix}gcc; ac_word=$2 12473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12474$as_echo_n "checking for $ac_word... " >&6; } 12475if ${ac_cv_prog_CC+:} false; then : 12476 $as_echo_n "(cached) " >&6 12477else 12478 if test -n "$CC"; then 12479 ac_cv_prog_CC="$CC" # Let the user override the test. 12480else 12481as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12482for as_dir in $PATH 12483do 12484 IFS=$as_save_IFS 12485 test -z "$as_dir" && as_dir=. 12486 for ac_exec_ext in '' $ac_executable_extensions; do 12487 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12488 ac_cv_prog_CC="${ac_tool_prefix}gcc" 12489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12490 break 2 12491 fi 12492done 12493 done 12494IFS=$as_save_IFS 12495 12496fi 12497fi 12498CC=$ac_cv_prog_CC 12499if test -n "$CC"; then 12500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 12501$as_echo "$CC" >&6; } 12502else 12503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12504$as_echo "no" >&6; } 12505fi 12506 12507 12508fi 12509if test -z "$ac_cv_prog_CC"; then 12510 ac_ct_CC=$CC 12511 # Extract the first word of "gcc", so it can be a program name with args. 12512set dummy gcc; ac_word=$2 12513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12514$as_echo_n "checking for $ac_word... " >&6; } 12515if ${ac_cv_prog_ac_ct_CC+:} false; then : 12516 $as_echo_n "(cached) " >&6 12517else 12518 if test -n "$ac_ct_CC"; then 12519 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 12520else 12521as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12522for as_dir in $PATH 12523do 12524 IFS=$as_save_IFS 12525 test -z "$as_dir" && as_dir=. 12526 for ac_exec_ext in '' $ac_executable_extensions; do 12527 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12528 ac_cv_prog_ac_ct_CC="gcc" 12529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12530 break 2 12531 fi 12532done 12533 done 12534IFS=$as_save_IFS 12535 12536fi 12537fi 12538ac_ct_CC=$ac_cv_prog_ac_ct_CC 12539if test -n "$ac_ct_CC"; then 12540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 12541$as_echo "$ac_ct_CC" >&6; } 12542else 12543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12544$as_echo "no" >&6; } 12545fi 12546 12547 if test "x$ac_ct_CC" = x; then 12548 CC="" 12549 else 12550 case $cross_compiling:$ac_tool_warned in 12551yes:) 12552{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12553$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12554ac_tool_warned=yes ;; 12555esac 12556 CC=$ac_ct_CC 12557 fi 12558else 12559 CC="$ac_cv_prog_CC" 12560fi 12561 12562if test -z "$CC"; then 12563 if test -n "$ac_tool_prefix"; then 12564 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 12565set dummy ${ac_tool_prefix}cc; ac_word=$2 12566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12567$as_echo_n "checking for $ac_word... " >&6; } 12568if ${ac_cv_prog_CC+:} false; then : 12569 $as_echo_n "(cached) " >&6 12570else 12571 if test -n "$CC"; then 12572 ac_cv_prog_CC="$CC" # Let the user override the test. 12573else 12574as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12575for as_dir in $PATH 12576do 12577 IFS=$as_save_IFS 12578 test -z "$as_dir" && as_dir=. 12579 for ac_exec_ext in '' $ac_executable_extensions; do 12580 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12581 ac_cv_prog_CC="${ac_tool_prefix}cc" 12582 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12583 break 2 12584 fi 12585done 12586 done 12587IFS=$as_save_IFS 12588 12589fi 12590fi 12591CC=$ac_cv_prog_CC 12592if test -n "$CC"; then 12593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 12594$as_echo "$CC" >&6; } 12595else 12596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12597$as_echo "no" >&6; } 12598fi 12599 12600 12601 fi 12602fi 12603if test -z "$CC"; then 12604 # Extract the first word of "cc", so it can be a program name with args. 12605set dummy cc; ac_word=$2 12606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12607$as_echo_n "checking for $ac_word... " >&6; } 12608if ${ac_cv_prog_CC+:} false; then : 12609 $as_echo_n "(cached) " >&6 12610else 12611 if test -n "$CC"; then 12612 ac_cv_prog_CC="$CC" # Let the user override the test. 12613else 12614 ac_prog_rejected=no 12615as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12616for as_dir in $PATH 12617do 12618 IFS=$as_save_IFS 12619 test -z "$as_dir" && as_dir=. 12620 for ac_exec_ext in '' $ac_executable_extensions; do 12621 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12622 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 12623 ac_prog_rejected=yes 12624 continue 12625 fi 12626 ac_cv_prog_CC="cc" 12627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12628 break 2 12629 fi 12630done 12631 done 12632IFS=$as_save_IFS 12633 12634if test $ac_prog_rejected = yes; then 12635 # We found a bogon in the path, so make sure we never use it. 12636 set dummy $ac_cv_prog_CC 12637 shift 12638 if test $@%:@ != 0; then 12639 # We chose a different compiler from the bogus one. 12640 # However, it has the same basename, so the bogon will be chosen 12641 # first if we set CC to just the basename; use the full file name. 12642 shift 12643 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 12644 fi 12645fi 12646fi 12647fi 12648CC=$ac_cv_prog_CC 12649if test -n "$CC"; then 12650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 12651$as_echo "$CC" >&6; } 12652else 12653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12654$as_echo "no" >&6; } 12655fi 12656 12657 12658fi 12659if test -z "$CC"; then 12660 if test -n "$ac_tool_prefix"; then 12661 for ac_prog in cl.exe 12662 do 12663 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 12664set dummy $ac_tool_prefix$ac_prog; ac_word=$2 12665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12666$as_echo_n "checking for $ac_word... " >&6; } 12667if ${ac_cv_prog_CC+:} false; then : 12668 $as_echo_n "(cached) " >&6 12669else 12670 if test -n "$CC"; then 12671 ac_cv_prog_CC="$CC" # Let the user override the test. 12672else 12673as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12674for as_dir in $PATH 12675do 12676 IFS=$as_save_IFS 12677 test -z "$as_dir" && as_dir=. 12678 for ac_exec_ext in '' $ac_executable_extensions; do 12679 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12680 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 12681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12682 break 2 12683 fi 12684done 12685 done 12686IFS=$as_save_IFS 12687 12688fi 12689fi 12690CC=$ac_cv_prog_CC 12691if test -n "$CC"; then 12692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 12693$as_echo "$CC" >&6; } 12694else 12695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12696$as_echo "no" >&6; } 12697fi 12698 12699 12700 test -n "$CC" && break 12701 done 12702fi 12703if test -z "$CC"; then 12704 ac_ct_CC=$CC 12705 for ac_prog in cl.exe 12706do 12707 # Extract the first word of "$ac_prog", so it can be a program name with args. 12708set dummy $ac_prog; ac_word=$2 12709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12710$as_echo_n "checking for $ac_word... " >&6; } 12711if ${ac_cv_prog_ac_ct_CC+:} false; then : 12712 $as_echo_n "(cached) " >&6 12713else 12714 if test -n "$ac_ct_CC"; then 12715 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 12716else 12717as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12718for as_dir in $PATH 12719do 12720 IFS=$as_save_IFS 12721 test -z "$as_dir" && as_dir=. 12722 for ac_exec_ext in '' $ac_executable_extensions; do 12723 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12724 ac_cv_prog_ac_ct_CC="$ac_prog" 12725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12726 break 2 12727 fi 12728done 12729 done 12730IFS=$as_save_IFS 12731 12732fi 12733fi 12734ac_ct_CC=$ac_cv_prog_ac_ct_CC 12735if test -n "$ac_ct_CC"; then 12736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 12737$as_echo "$ac_ct_CC" >&6; } 12738else 12739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12740$as_echo "no" >&6; } 12741fi 12742 12743 12744 test -n "$ac_ct_CC" && break 12745done 12746 12747 if test "x$ac_ct_CC" = x; then 12748 CC="" 12749 else 12750 case $cross_compiling:$ac_tool_warned in 12751yes:) 12752{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12753$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12754ac_tool_warned=yes ;; 12755esac 12756 CC=$ac_ct_CC 12757 fi 12758fi 12759 12760fi 12761 12762 12763test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12764$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12765as_fn_error $? "no acceptable C compiler found in \$PATH 12766See \`config.log' for more details" "$LINENO" 5; } 12767 12768# Provide some information about the compiler. 12769$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 12770set X $ac_compile 12771ac_compiler=$2 12772for ac_option in --version -v -V -qversion; do 12773 { { ac_try="$ac_compiler $ac_option >&5" 12774case "(($ac_try" in 12775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12776 *) ac_try_echo=$ac_try;; 12777esac 12778eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 12779$as_echo "$ac_try_echo"; } >&5 12780 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 12781 ac_status=$? 12782 if test -s conftest.err; then 12783 sed '10a\ 12784... rest of stderr output deleted ... 12785 10q' conftest.err >conftest.er1 12786 cat conftest.er1 >&5 12787 fi 12788 rm -f conftest.er1 conftest.err 12789 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12790 test $ac_status = 0; } 12791done 12792 12793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 12794$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 12795if ${ac_cv_c_compiler_gnu+:} false; then : 12796 $as_echo_n "(cached) " >&6 12797else 12798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12799/* end confdefs.h. */ 12800 12801int 12802main () 12803{ 12804#ifndef __GNUC__ 12805 choke me 12806#endif 12807 12808 ; 12809 return 0; 12810} 12811_ACEOF 12812if ac_fn_c_try_compile "$LINENO"; then : 12813 ac_compiler_gnu=yes 12814else 12815 ac_compiler_gnu=no 12816fi 12817rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12818ac_cv_c_compiler_gnu=$ac_compiler_gnu 12819 12820fi 12821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 12822$as_echo "$ac_cv_c_compiler_gnu" >&6; } 12823if test $ac_compiler_gnu = yes; then 12824 GCC=yes 12825else 12826 GCC= 12827fi 12828ac_test_CFLAGS=${CFLAGS+set} 12829ac_save_CFLAGS=$CFLAGS 12830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 12831$as_echo_n "checking whether $CC accepts -g... " >&6; } 12832if ${ac_cv_prog_cc_g+:} false; then : 12833 $as_echo_n "(cached) " >&6 12834else 12835 ac_save_c_werror_flag=$ac_c_werror_flag 12836 ac_c_werror_flag=yes 12837 ac_cv_prog_cc_g=no 12838 CFLAGS="-g" 12839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12840/* end confdefs.h. */ 12841 12842int 12843main () 12844{ 12845 12846 ; 12847 return 0; 12848} 12849_ACEOF 12850if ac_fn_c_try_compile "$LINENO"; then : 12851 ac_cv_prog_cc_g=yes 12852else 12853 CFLAGS="" 12854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12855/* end confdefs.h. */ 12856 12857int 12858main () 12859{ 12860 12861 ; 12862 return 0; 12863} 12864_ACEOF 12865if ac_fn_c_try_compile "$LINENO"; then : 12866 12867else 12868 ac_c_werror_flag=$ac_save_c_werror_flag 12869 CFLAGS="-g" 12870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12871/* end confdefs.h. */ 12872 12873int 12874main () 12875{ 12876 12877 ; 12878 return 0; 12879} 12880_ACEOF 12881if ac_fn_c_try_compile "$LINENO"; then : 12882 ac_cv_prog_cc_g=yes 12883fi 12884rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12885fi 12886rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12887fi 12888rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12889 ac_c_werror_flag=$ac_save_c_werror_flag 12890fi 12891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 12892$as_echo "$ac_cv_prog_cc_g" >&6; } 12893if test "$ac_test_CFLAGS" = set; then 12894 CFLAGS=$ac_save_CFLAGS 12895elif test $ac_cv_prog_cc_g = yes; then 12896 if test "$GCC" = yes; then 12897 CFLAGS="-g -O2" 12898 else 12899 CFLAGS="-g" 12900 fi 12901else 12902 if test "$GCC" = yes; then 12903 CFLAGS="-O2" 12904 else 12905 CFLAGS= 12906 fi 12907fi 12908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 12909$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 12910if ${ac_cv_prog_cc_c89+:} false; then : 12911 $as_echo_n "(cached) " >&6 12912else 12913 ac_cv_prog_cc_c89=no 12914ac_save_CC=$CC 12915cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12916/* end confdefs.h. */ 12917#include <stdarg.h> 12918#include <stdio.h> 12919struct stat; 12920/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 12921struct buf { int x; }; 12922FILE * (*rcsopen) (struct buf *, struct stat *, int); 12923static char *e (p, i) 12924 char **p; 12925 int i; 12926{ 12927 return p[i]; 12928} 12929static char *f (char * (*g) (char **, int), char **p, ...) 12930{ 12931 char *s; 12932 va_list v; 12933 va_start (v,p); 12934 s = g (p, va_arg (v,int)); 12935 va_end (v); 12936 return s; 12937} 12938 12939/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 12940 function prototypes and stuff, but not '\xHH' hex character constants. 12941 These don't provoke an error unfortunately, instead are silently treated 12942 as 'x'. The following induces an error, until -std is added to get 12943 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 12944 array size at least. It's necessary to write '\x00'==0 to get something 12945 that's true only with -std. */ 12946int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 12947 12948/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 12949 inside strings and character constants. */ 12950#define FOO(x) 'x' 12951int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 12952 12953int test (int i, double x); 12954struct s1 {int (*f) (int a);}; 12955struct s2 {int (*f) (double a);}; 12956int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 12957int argc; 12958char **argv; 12959int 12960main () 12961{ 12962return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 12963 ; 12964 return 0; 12965} 12966_ACEOF 12967for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 12968 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 12969do 12970 CC="$ac_save_CC $ac_arg" 12971 if ac_fn_c_try_compile "$LINENO"; then : 12972 ac_cv_prog_cc_c89=$ac_arg 12973fi 12974rm -f core conftest.err conftest.$ac_objext 12975 test "x$ac_cv_prog_cc_c89" != "xno" && break 12976done 12977rm -f conftest.$ac_ext 12978CC=$ac_save_CC 12979 12980fi 12981# AC_CACHE_VAL 12982case "x$ac_cv_prog_cc_c89" in 12983 x) 12984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 12985$as_echo "none needed" >&6; } ;; 12986 xno) 12987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 12988$as_echo "unsupported" >&6; } ;; 12989 *) 12990 CC="$CC $ac_cv_prog_cc_c89" 12991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 12992$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 12993esac 12994if test "x$ac_cv_prog_cc_c89" != xno; then : 12995 12996fi 12997 12998ac_ext=c 12999ac_cpp='$CPP $CPPFLAGS' 13000ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13001ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13002ac_compiler_gnu=$ac_cv_c_compiler_gnu 13003 13004ac_ext=c 13005ac_cpp='$CPP $CPPFLAGS' 13006ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13007ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13008ac_compiler_gnu=$ac_cv_c_compiler_gnu 13009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 13010$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 13011if ${am_cv_prog_cc_c_o+:} false; then : 13012 $as_echo_n "(cached) " >&6 13013else 13014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13015/* end confdefs.h. */ 13016 13017int 13018main () 13019{ 13020 13021 ; 13022 return 0; 13023} 13024_ACEOF 13025 # Make sure it works both with $CC and with simple cc. 13026 # Following AC_PROG_CC_C_O, we do the test twice because some 13027 # compilers refuse to overwrite an existing .o file with -o, 13028 # though they will create one. 13029 am_cv_prog_cc_c_o=yes 13030 for am_i in 1 2; do 13031 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 13032 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 13033 ac_status=$? 13034 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13035 (exit $ac_status); } \ 13036 && test -f conftest2.$ac_objext; then 13037 : OK 13038 else 13039 am_cv_prog_cc_c_o=no 13040 break 13041 fi 13042 done 13043 rm -f core conftest* 13044 unset am_i 13045fi 13046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 13047$as_echo "$am_cv_prog_cc_c_o" >&6; } 13048if test "$am_cv_prog_cc_c_o" != yes; then 13049 # Losing compiler, so override with the script. 13050 # FIXME: It is wrong to rewrite CC. 13051 # But if we don't then we get into trouble of one sort or another. 13052 # A longer-term fix would be to have automake use am__CC in this case, 13053 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 13054 CC="$am_aux_dir/compile $CC" 13055fi 13056ac_ext=c 13057ac_cpp='$CPP $CPPFLAGS' 13058ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13059ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13060ac_compiler_gnu=$ac_cv_c_compiler_gnu 13061 13062 13063depcc="$CC" am_compiler_list= 13064 13065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 13066$as_echo_n "checking dependency style of $depcc... " >&6; } 13067if ${am_cv_CC_dependencies_compiler_type+:} false; then : 13068 $as_echo_n "(cached) " >&6 13069else 13070 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 13071 # We make a subdir and do the tests there. Otherwise we can end up 13072 # making bogus files that we don't know about and never remove. For 13073 # instance it was reported that on HP-UX the gcc test will end up 13074 # making a dummy file named 'D' -- because '-MD' means "put the output 13075 # in D". 13076 rm -rf conftest.dir 13077 mkdir conftest.dir 13078 # Copy depcomp to subdir because otherwise we won't find it if we're 13079 # using a relative directory. 13080 cp "$am_depcomp" conftest.dir 13081 cd conftest.dir 13082 # We will build objects and dependencies in a subdirectory because 13083 # it helps to detect inapplicable dependency modes. For instance 13084 # both Tru64's cc and ICC support -MD to output dependencies as a 13085 # side effect of compilation, but ICC will put the dependencies in 13086 # the current directory while Tru64 will put them in the object 13087 # directory. 13088 mkdir sub 13089 13090 am_cv_CC_dependencies_compiler_type=none 13091 if test "$am_compiler_list" = ""; then 13092 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 13093 fi 13094 am__universal=false 13095 case " $depcc " in #( 13096 *\ -arch\ *\ -arch\ *) am__universal=true ;; 13097 esac 13098 13099 for depmode in $am_compiler_list; do 13100 # Setup a source with many dependencies, because some compilers 13101 # like to wrap large dependency lists on column 80 (with \), and 13102 # we should not choose a depcomp mode which is confused by this. 13103 # 13104 # We need to recreate these files for each test, as the compiler may 13105 # overwrite some of them when testing with obscure command lines. 13106 # This happens at least with the AIX C compiler. 13107 : > sub/conftest.c 13108 for i in 1 2 3 4 5 6; do 13109 echo '#include "conftst'$i'.h"' >> sub/conftest.c 13110 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 13111 # Solaris 10 /bin/sh. 13112 echo '/* dummy */' > sub/conftst$i.h 13113 done 13114 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 13115 13116 # We check with '-c' and '-o' for the sake of the "dashmstdout" 13117 # mode. It turns out that the SunPro C++ compiler does not properly 13118 # handle '-M -o', and we need to detect this. Also, some Intel 13119 # versions had trouble with output in subdirs. 13120 am__obj=sub/conftest.${OBJEXT-o} 13121 am__minus_obj="-o $am__obj" 13122 case $depmode in 13123 gcc) 13124 # This depmode causes a compiler race in universal mode. 13125 test "$am__universal" = false || continue 13126 ;; 13127 nosideeffect) 13128 # After this tag, mechanisms are not by side-effect, so they'll 13129 # only be used when explicitly requested. 13130 if test "x$enable_dependency_tracking" = xyes; then 13131 continue 13132 else 13133 break 13134 fi 13135 ;; 13136 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 13137 # This compiler won't grok '-c -o', but also, the minuso test has 13138 # not run yet. These depmodes are late enough in the game, and 13139 # so weak that their functioning should not be impacted. 13140 am__obj=conftest.${OBJEXT-o} 13141 am__minus_obj= 13142 ;; 13143 none) break ;; 13144 esac 13145 if depmode=$depmode \ 13146 source=sub/conftest.c object=$am__obj \ 13147 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 13148 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 13149 >/dev/null 2>conftest.err && 13150 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 13151 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 13152 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 13153 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 13154 # icc doesn't choke on unknown options, it will just issue warnings 13155 # or remarks (even with -Werror). So we grep stderr for any message 13156 # that says an option was ignored or not supported. 13157 # When given -MP, icc 7.0 and 7.1 complain thusly: 13158 # icc: Command line warning: ignoring option '-M'; no argument required 13159 # The diagnosis changed in icc 8.0: 13160 # icc: Command line remark: option '-MP' not supported 13161 if (grep 'ignoring option' conftest.err || 13162 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 13163 am_cv_CC_dependencies_compiler_type=$depmode 13164 break 13165 fi 13166 fi 13167 done 13168 13169 cd .. 13170 rm -rf conftest.dir 13171else 13172 am_cv_CC_dependencies_compiler_type=none 13173fi 13174 13175fi 13176{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 13177$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 13178CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 13179 13180 if 13181 test "x$enable_dependency_tracking" != xno \ 13182 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 13183 am__fastdepCC_TRUE= 13184 am__fastdepCC_FALSE='#' 13185else 13186 am__fastdepCC_TRUE='#' 13187 am__fastdepCC_FALSE= 13188fi 13189 13190 13191if test $ac_cv_c_compiler_gnu = yes; then 13192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5 13193$as_echo_n "checking whether $CC needs -traditional... " >&6; } 13194if ${ac_cv_prog_gcc_traditional+:} false; then : 13195 $as_echo_n "(cached) " >&6 13196else 13197 ac_pattern="Autoconf.*'x'" 13198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13199/* end confdefs.h. */ 13200#include <sgtty.h> 13201Autoconf TIOCGETP 13202_ACEOF 13203if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 13204 $EGREP "$ac_pattern" >/dev/null 2>&1; then : 13205 ac_cv_prog_gcc_traditional=yes 13206else 13207 ac_cv_prog_gcc_traditional=no 13208fi 13209rm -f conftest* 13210 13211 13212 if test $ac_cv_prog_gcc_traditional = no; then 13213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13214/* end confdefs.h. */ 13215#include <termio.h> 13216Autoconf TCGETA 13217_ACEOF 13218if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 13219 $EGREP "$ac_pattern" >/dev/null 2>&1; then : 13220 ac_cv_prog_gcc_traditional=yes 13221fi 13222rm -f conftest* 13223 13224 fi 13225fi 13226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5 13227$as_echo "$ac_cv_prog_gcc_traditional" >&6; } 13228 if test $ac_cv_prog_gcc_traditional = yes; then 13229 CC="$CC -traditional" 13230 fi 13231fi 13232 13233 13234 13235ac_ext=c 13236ac_cpp='$CPP $CPPFLAGS' 13237ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13238ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13239ac_compiler_gnu=$ac_cv_c_compiler_gnu 13240 13241 13242# Whether all the debugging output should be spewed out 13243@%:@ Check whether --enable-debug was given. 13244if test "${enable_debug+set}" = set; then : 13245 enableval=$enable_debug; 13246fi 13247 13248 13249if test "x$enable_debug" != "xyes"; then 13250 13251$as_echo "@%:@define NDEBUG 1" >>confdefs.h 13252 13253fi 13254 13255# No privilege separation 13256@%:@ Check whether --enable-privsep was given. 13257if test "${enable_privsep+set}" = set; then : 13258 enableval=$enable_privsep; 13259fi 13260 13261 13262if test "x$enable_privsep" = xno; then 13263 13264$as_echo "@%:@define WITHOUT_PRIVSEP 1" >>confdefs.h 13265 13266fi 13267 13268# privsep parameters 13269 13270@%:@ Check whether --with-privsep_user was given. 13271if test "${with_privsep_user+set}" = set; then : 13272 withval=$with_privsep_user; privsep_user=$withval 13273else 13274 privsep_user=nobody 13275fi 13276 13277 13278@%:@ Check whether --with-privsep_dir was given. 13279if test "${with_privsep_dir+set}" = set; then : 13280 withval=$with_privsep_dir; privsep_dir=$withval 13281else 13282 privsep_dir=/var/empty 13283fi 13284 13285 13286@%:@ Check whether --with-privsep_dir_owner was given. 13287if test "${with_privsep_dir_owner+set}" = set; then : 13288 withval=$with_privsep_dir_owner; privsep_dir_owner=$withval 13289else 13290 privsep_dir_owner=root 13291fi 13292 13293 13294@%:@ Check whether --with-privsep_dir_group was given. 13295if test "${with_privsep_dir_group+set}" = set; then : 13296 withval=$with_privsep_dir_group; privsep_dir_group=$withval 13297else 13298 privsep_dir_group=wheel 13299fi 13300 13301 13302 13303 13304 13305 13306cat >>confdefs.h <<_ACEOF 13307@%:@define PRIVSEP_USER "$privsep_user" 13308_ACEOF 13309 13310 13311cat >>confdefs.h <<_ACEOF 13312@%:@define PRIVSEP_DIR "$privsep_dir" 13313_ACEOF 13314 13315 13316cat >>confdefs.h <<_ACEOF 13317@%:@define PRIVSEP_DIR_OWNER "$privsep_dir_owner" 13318_ACEOF 13319 13320 13321cat >>confdefs.h <<_ACEOF 13322@%:@define PRIVSEP_DIR_GROUP "$privsep_dir_group" 13323_ACEOF 13324 13325 13326# Debug file support 13327@%:@ Check whether --enable-debug-file was given. 13328if test "${enable_debug_file+set}" = set; then : 13329 enableval=$enable_debug_file; 13330fi 13331 13332 13333if test "x$enable_debug_file" = xno; then 13334 13335$as_echo "@%:@define WITHOUT_DEBUGFILE 1" >>confdefs.h 13336 13337fi 13338 13339# dmalloc support 13340 13341@%:@ Check whether --with-dmalloc was given. 13342if test "${with_dmalloc+set}" = set; then : 13343 withval=$with_dmalloc; 13344fi 13345 13346 13347if test "x$with_dmalloc" = xyes; then 13348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dmalloc_malloc in -ldmalloc" >&5 13349$as_echo_n "checking for dmalloc_malloc in -ldmalloc... " >&6; } 13350if ${ac_cv_lib_dmalloc_dmalloc_malloc+:} false; then : 13351 $as_echo_n "(cached) " >&6 13352else 13353 ac_check_lib_save_LIBS=$LIBS 13354LIBS="-ldmalloc $LIBS" 13355cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13356/* end confdefs.h. */ 13357 13358/* Override any GCC internal prototype to avoid an error. 13359 Use char because int might match the return type of a GCC 13360 builtin and then its argument prototype would still apply. */ 13361#ifdef __cplusplus 13362extern "C" 13363#endif 13364char dmalloc_malloc (); 13365int 13366main () 13367{ 13368return dmalloc_malloc (); 13369 ; 13370 return 0; 13371} 13372_ACEOF 13373if ac_fn_c_try_link "$LINENO"; then : 13374 ac_cv_lib_dmalloc_dmalloc_malloc=yes 13375else 13376 ac_cv_lib_dmalloc_dmalloc_malloc=no 13377fi 13378rm -f core conftest.err conftest.$ac_objext \ 13379 conftest$ac_exeext conftest.$ac_ext 13380LIBS=$ac_check_lib_save_LIBS 13381fi 13382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dmalloc_dmalloc_malloc" >&5 13383$as_echo "$ac_cv_lib_dmalloc_dmalloc_malloc" >&6; } 13384if test "x$ac_cv_lib_dmalloc_dmalloc_malloc" = xyes; then : 13385 13386 CFLAGS="$CFLAGS -DDMALLOC" 13387 LDFLAGS="$LDFLAGS -ldmalloc" 13388 13389else 13390 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13391$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 13392as_fn_error $? "dmalloc test failed (remove --with-dmalloc) 13393See \`config.log' for more details" "$LINENO" 5; } 13394fi 13395 13396fi 13397 13398# pcre support 13399 13400@%:@ Check whether --with-pcre was given. 13401if test "${with_pcre+set}" = set; then : 13402 withval=$with_pcre; 13403fi 13404 13405 13406if test "x$with_pcre" = xyes; then 13407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcre_compile in -lpcre" >&5 13408$as_echo_n "checking for pcre_compile in -lpcre... " >&6; } 13409if ${ac_cv_lib_pcre_pcre_compile+:} false; then : 13410 $as_echo_n "(cached) " >&6 13411else 13412 ac_check_lib_save_LIBS=$LIBS 13413LIBS="-lpcre $LIBS" 13414cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13415/* end confdefs.h. */ 13416 13417/* Override any GCC internal prototype to avoid an error. 13418 Use char because int might match the return type of a GCC 13419 builtin and then its argument prototype would still apply. */ 13420#ifdef __cplusplus 13421extern "C" 13422#endif 13423char pcre_compile (); 13424int 13425main () 13426{ 13427return pcre_compile (); 13428 ; 13429 return 0; 13430} 13431_ACEOF 13432if ac_fn_c_try_link "$LINENO"; then : 13433 ac_cv_lib_pcre_pcre_compile=yes 13434else 13435 ac_cv_lib_pcre_pcre_compile=no 13436fi 13437rm -f core conftest.err conftest.$ac_objext \ 13438 conftest$ac_exeext conftest.$ac_ext 13439LIBS=$ac_check_lib_save_LIBS 13440fi 13441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcre_pcre_compile" >&5 13442$as_echo "$ac_cv_lib_pcre_pcre_compile" >&6; } 13443if test "x$ac_cv_lib_pcre_pcre_compile" = xyes; then : 13444 13445 PCRE_CFLAGS="-DHAVE_PCRE" 13446 PCRE_LIBS="-lpcre" 13447 13448else 13449 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13450$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 13451as_fn_error $? "pcre test failed (remove --with-pcre) 13452See \`config.log' for more details" "$LINENO" 5; } 13453fi 13454 13455fi 13456 13457# pcre2 support 13458 13459@%:@ Check whether --with-pcre2 was given. 13460if test "${with_pcre2+set}" = set; then : 13461 withval=$with_pcre2; 13462fi 13463 13464 13465if test "x$with_pcre2" = xyes; then 13466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcre2_compile_8 in -lpcre2-8" >&5 13467$as_echo_n "checking for pcre2_compile_8 in -lpcre2-8... " >&6; } 13468if ${ac_cv_lib_pcre2_8_pcre2_compile_8+:} false; then : 13469 $as_echo_n "(cached) " >&6 13470else 13471 ac_check_lib_save_LIBS=$LIBS 13472LIBS="-lpcre2-8 $LIBS" 13473cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13474/* end confdefs.h. */ 13475 13476/* Override any GCC internal prototype to avoid an error. 13477 Use char because int might match the return type of a GCC 13478 builtin and then its argument prototype would still apply. */ 13479#ifdef __cplusplus 13480extern "C" 13481#endif 13482char pcre2_compile_8 (); 13483int 13484main () 13485{ 13486return pcre2_compile_8 (); 13487 ; 13488 return 0; 13489} 13490_ACEOF 13491if ac_fn_c_try_link "$LINENO"; then : 13492 ac_cv_lib_pcre2_8_pcre2_compile_8=yes 13493else 13494 ac_cv_lib_pcre2_8_pcre2_compile_8=no 13495fi 13496rm -f core conftest.err conftest.$ac_objext \ 13497 conftest$ac_exeext conftest.$ac_ext 13498LIBS=$ac_check_lib_save_LIBS 13499fi 13500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcre2_8_pcre2_compile_8" >&5 13501$as_echo "$ac_cv_lib_pcre2_8_pcre2_compile_8" >&6; } 13502if test "x$ac_cv_lib_pcre2_8_pcre2_compile_8" = xyes; then : 13503 13504 PCRE_CFLAGS="-DHAVE_PCRE2" 13505 PCRE_LIBS="-lpcre2-8" 13506 13507else 13508 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13509$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 13510as_fn_error $? "pcre2 test failed (remove --with-pcre2) 13511See \`config.log' for more details" "$LINENO" 5; } 13512fi 13513 13514fi 13515 13516 13517 13518 13519# sc_hoiho utlity 13520 13521@%:@ Check whether --with-sc_hoiho was given. 13522if test "${with_sc_hoiho+set}" = set; then : 13523 withval=$with_sc_hoiho; with_sc_hoiho=$withval 13524else 13525 with_sc_hoiho=no 13526 13527fi 13528 13529 if test x$with_sc_hoiho = xyes; then 13530 WITH_SC_HOIHO_TRUE= 13531 WITH_SC_HOIHO_FALSE='#' 13532else 13533 WITH_SC_HOIHO_TRUE='#' 13534 WITH_SC_HOIHO_FALSE= 13535fi 13536 13537 13538# sc_uptime prober support 13539 13540@%:@ Check whether --with-sc_uptime was given. 13541if test "${with_sc_uptime+set}" = set; then : 13542 withval=$with_sc_uptime; with_sc_uptime=$withval 13543else 13544 with_sc_uptime=no 13545 13546fi 13547 13548 if test x$with_sc_uptime = xyes; then 13549 WITH_SC_UPTIME_TRUE= 13550 WITH_SC_UPTIME_FALSE='#' 13551else 13552 WITH_SC_UPTIME_TRUE='#' 13553 WITH_SC_UPTIME_FALSE= 13554fi 13555 13556 13557# Checks for libraries. 13558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GetIpNetTable in -liphlpapi" >&5 13559$as_echo_n "checking for GetIpNetTable in -liphlpapi... " >&6; } 13560if ${ac_cv_lib_iphlpapi_GetIpNetTable+:} false; then : 13561 $as_echo_n "(cached) " >&6 13562else 13563 ac_check_lib_save_LIBS=$LIBS 13564LIBS="-liphlpapi $LIBS" 13565cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13566/* end confdefs.h. */ 13567 13568/* Override any GCC internal prototype to avoid an error. 13569 Use char because int might match the return type of a GCC 13570 builtin and then its argument prototype would still apply. */ 13571#ifdef __cplusplus 13572extern "C" 13573#endif 13574char GetIpNetTable (); 13575int 13576main () 13577{ 13578return GetIpNetTable (); 13579 ; 13580 return 0; 13581} 13582_ACEOF 13583if ac_fn_c_try_link "$LINENO"; then : 13584 ac_cv_lib_iphlpapi_GetIpNetTable=yes 13585else 13586 ac_cv_lib_iphlpapi_GetIpNetTable=no 13587fi 13588rm -f core conftest.err conftest.$ac_objext \ 13589 conftest$ac_exeext conftest.$ac_ext 13590LIBS=$ac_check_lib_save_LIBS 13591fi 13592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iphlpapi_GetIpNetTable" >&5 13593$as_echo "$ac_cv_lib_iphlpapi_GetIpNetTable" >&6; } 13594if test "x$ac_cv_lib_iphlpapi_GetIpNetTable" = xyes; then : 13595 cat >>confdefs.h <<_ACEOF 13596@%:@define HAVE_LIBIPHLPAPI 1 13597_ACEOF 13598 13599 LIBS="-liphlpapi $LIBS" 13600 13601fi 13602 13603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WSAStartup in -lws2_32" >&5 13604$as_echo_n "checking for WSAStartup in -lws2_32... " >&6; } 13605if ${ac_cv_lib_ws2_32_WSAStartup+:} false; then : 13606 $as_echo_n "(cached) " >&6 13607else 13608 ac_check_lib_save_LIBS=$LIBS 13609LIBS="-lws2_32 $LIBS" 13610cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13611/* end confdefs.h. */ 13612 13613/* Override any GCC internal prototype to avoid an error. 13614 Use char because int might match the return type of a GCC 13615 builtin and then its argument prototype would still apply. */ 13616#ifdef __cplusplus 13617extern "C" 13618#endif 13619char WSAStartup (); 13620int 13621main () 13622{ 13623return WSAStartup (); 13624 ; 13625 return 0; 13626} 13627_ACEOF 13628if ac_fn_c_try_link "$LINENO"; then : 13629 ac_cv_lib_ws2_32_WSAStartup=yes 13630else 13631 ac_cv_lib_ws2_32_WSAStartup=no 13632fi 13633rm -f core conftest.err conftest.$ac_objext \ 13634 conftest$ac_exeext conftest.$ac_ext 13635LIBS=$ac_check_lib_save_LIBS 13636fi 13637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_WSAStartup" >&5 13638$as_echo "$ac_cv_lib_ws2_32_WSAStartup" >&6; } 13639if test "x$ac_cv_lib_ws2_32_WSAStartup" = xyes; then : 13640 cat >>confdefs.h <<_ACEOF 13641@%:@define HAVE_LIBWS2_32 1 13642_ACEOF 13643 13644 LIBS="-lws2_32 $LIBS" 13645 13646fi 13647 13648 13649# Checks for header files. 13650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5 13651$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } 13652if ${ac_cv_header_sys_wait_h+:} false; then : 13653 $as_echo_n "(cached) " >&6 13654else 13655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13656/* end confdefs.h. */ 13657#include <sys/types.h> 13658#include <sys/wait.h> 13659#ifndef WEXITSTATUS 13660# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) 13661#endif 13662#ifndef WIFEXITED 13663# define WIFEXITED(stat_val) (((stat_val) & 255) == 0) 13664#endif 13665 13666int 13667main () 13668{ 13669 int s; 13670 wait (&s); 13671 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 13672 ; 13673 return 0; 13674} 13675_ACEOF 13676if ac_fn_c_try_compile "$LINENO"; then : 13677 ac_cv_header_sys_wait_h=yes 13678else 13679 ac_cv_header_sys_wait_h=no 13680fi 13681rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13682fi 13683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5 13684$as_echo "$ac_cv_header_sys_wait_h" >&6; } 13685if test $ac_cv_header_sys_wait_h = yes; then 13686 13687$as_echo "@%:@define HAVE_SYS_WAIT_H 1" >>confdefs.h 13688 13689fi 13690 13691for ac_header in arpa/inet.h 13692do : 13693 ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default" 13694if test "x$ac_cv_header_arpa_inet_h" = xyes; then : 13695 cat >>confdefs.h <<_ACEOF 13696@%:@define HAVE_ARPA_INET_H 1 13697_ACEOF 13698 13699fi 13700 13701done 13702 13703for ac_header in fcntl.h 13704do : 13705 ac_fn_c_check_header_mongrel "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default" 13706if test "x$ac_cv_header_fcntl_h" = xyes; then : 13707 cat >>confdefs.h <<_ACEOF 13708@%:@define HAVE_FCNTL_H 1 13709_ACEOF 13710 13711fi 13712 13713done 13714 13715for ac_header in limits.h 13716do : 13717 ac_fn_c_check_header_mongrel "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default" 13718if test "x$ac_cv_header_limits_h" = xyes; then : 13719 cat >>confdefs.h <<_ACEOF 13720@%:@define HAVE_LIMITS_H 1 13721_ACEOF 13722 13723fi 13724 13725done 13726 13727for ac_header in netdb.h 13728do : 13729 ac_fn_c_check_header_mongrel "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$ac_includes_default" 13730if test "x$ac_cv_header_netdb_h" = xyes; then : 13731 cat >>confdefs.h <<_ACEOF 13732@%:@define HAVE_NETDB_H 1 13733_ACEOF 13734 13735fi 13736 13737done 13738 13739for ac_header in net/if_dl.h 13740do : 13741 ac_fn_c_check_header_mongrel "$LINENO" "net/if_dl.h" "ac_cv_header_net_if_dl_h" "$ac_includes_default" 13742if test "x$ac_cv_header_net_if_dl_h" = xyes; then : 13743 cat >>confdefs.h <<_ACEOF 13744@%:@define HAVE_NET_IF_DL_H 1 13745_ACEOF 13746 13747fi 13748 13749done 13750 13751for ac_header in net/if_types.h 13752do : 13753 ac_fn_c_check_header_mongrel "$LINENO" "net/if_types.h" "ac_cv_header_net_if_types_h" "$ac_includes_default" 13754if test "x$ac_cv_header_net_if_types_h" = xyes; then : 13755 cat >>confdefs.h <<_ACEOF 13756@%:@define HAVE_NET_IF_TYPES_H 1 13757_ACEOF 13758 13759fi 13760 13761done 13762 13763for ac_header in netinet/in.h 13764do : 13765 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default" 13766if test "x$ac_cv_header_netinet_in_h" = xyes; then : 13767 cat >>confdefs.h <<_ACEOF 13768@%:@define HAVE_NETINET_IN_H 1 13769_ACEOF 13770 13771fi 13772 13773done 13774 13775for ac_header in poll.h 13776do : 13777 ac_fn_c_check_header_mongrel "$LINENO" "poll.h" "ac_cv_header_poll_h" "$ac_includes_default" 13778if test "x$ac_cv_header_poll_h" = xyes; then : 13779 cat >>confdefs.h <<_ACEOF 13780@%:@define HAVE_POLL_H 1 13781_ACEOF 13782 13783fi 13784 13785done 13786 13787for ac_header in stdint.h 13788do : 13789 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default" 13790if test "x$ac_cv_header_stdint_h" = xyes; then : 13791 cat >>confdefs.h <<_ACEOF 13792@%:@define HAVE_STDINT_H 1 13793_ACEOF 13794 13795fi 13796 13797done 13798 13799for ac_header in stdlib.h 13800do : 13801 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" 13802if test "x$ac_cv_header_stdlib_h" = xyes; then : 13803 cat >>confdefs.h <<_ACEOF 13804@%:@define HAVE_STDLIB_H 1 13805_ACEOF 13806 13807fi 13808 13809done 13810 13811for ac_header in string.h 13812do : 13813 ac_fn_c_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default" 13814if test "x$ac_cv_header_string_h" = xyes; then : 13815 cat >>confdefs.h <<_ACEOF 13816@%:@define HAVE_STRING_H 1 13817_ACEOF 13818 13819fi 13820 13821done 13822 13823for ac_header in sys/epoll.h 13824do : 13825 ac_fn_c_check_header_mongrel "$LINENO" "sys/epoll.h" "ac_cv_header_sys_epoll_h" "$ac_includes_default" 13826if test "x$ac_cv_header_sys_epoll_h" = xyes; then : 13827 cat >>confdefs.h <<_ACEOF 13828@%:@define HAVE_SYS_EPOLL_H 1 13829_ACEOF 13830 13831fi 13832 13833done 13834 13835for ac_header in sys/event.h 13836do : 13837 ac_fn_c_check_header_mongrel "$LINENO" "sys/event.h" "ac_cv_header_sys_event_h" "$ac_includes_default" 13838if test "x$ac_cv_header_sys_event_h" = xyes; then : 13839 cat >>confdefs.h <<_ACEOF 13840@%:@define HAVE_SYS_EVENT_H 1 13841_ACEOF 13842 13843fi 13844 13845done 13846 13847for ac_header in sys/ioctl.h 13848do : 13849 ac_fn_c_check_header_mongrel "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default" 13850if test "x$ac_cv_header_sys_ioctl_h" = xyes; then : 13851 cat >>confdefs.h <<_ACEOF 13852@%:@define HAVE_SYS_IOCTL_H 1 13853_ACEOF 13854 13855fi 13856 13857done 13858 13859for ac_header in sys/param.h 13860do : 13861 ac_fn_c_check_header_mongrel "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default" 13862if test "x$ac_cv_header_sys_param_h" = xyes; then : 13863 cat >>confdefs.h <<_ACEOF 13864@%:@define HAVE_SYS_PARAM_H 1 13865_ACEOF 13866 13867fi 13868 13869done 13870 13871for ac_header in sys/socket.h 13872do : 13873 ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default" 13874if test "x$ac_cv_header_sys_socket_h" = xyes; then : 13875 cat >>confdefs.h <<_ACEOF 13876@%:@define HAVE_SYS_SOCKET_H 1 13877_ACEOF 13878 13879fi 13880 13881done 13882 13883for ac_header in sys/socketvar.h 13884do : 13885 ac_fn_c_check_header_mongrel "$LINENO" "sys/socketvar.h" "ac_cv_header_sys_socketvar_h" "$ac_includes_default" 13886if test "x$ac_cv_header_sys_socketvar_h" = xyes; then : 13887 cat >>confdefs.h <<_ACEOF 13888@%:@define HAVE_SYS_SOCKETVAR_H 1 13889_ACEOF 13890 13891fi 13892 13893done 13894 13895for ac_header in sys/time.h 13896do : 13897 ac_fn_c_check_header_mongrel "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default" 13898if test "x$ac_cv_header_sys_time_h" = xyes; then : 13899 cat >>confdefs.h <<_ACEOF 13900@%:@define HAVE_SYS_TIME_H 1 13901_ACEOF 13902 13903fi 13904 13905done 13906 13907for ac_header in unistd.h 13908do : 13909 ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default" 13910if test "x$ac_cv_header_unistd_h" = xyes; then : 13911 cat >>confdefs.h <<_ACEOF 13912@%:@define HAVE_UNISTD_H 1 13913_ACEOF 13914 13915fi 13916 13917done 13918 13919for ac_header in ifaddrs.h 13920do : 13921 ac_fn_c_check_header_mongrel "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default" 13922if test "x$ac_cv_header_ifaddrs_h" = xyes; then : 13923 cat >>confdefs.h <<_ACEOF 13924@%:@define HAVE_IFADDRS_H 1 13925_ACEOF 13926 13927fi 13928 13929done 13930 13931 13932# sys/sysctl.h requires other headers on at least OpenBSD 13933for ac_header in sys/sysctl.h 13934do : 13935 ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" " 13936#if HAVE_SYS_PARAM_H 13937# include <sys/param.h> 13938#endif 13939 13940" 13941if test "x$ac_cv_header_sys_sysctl_h" = xyes; then : 13942 cat >>confdefs.h <<_ACEOF 13943@%:@define HAVE_SYS_SYSCTL_H 1 13944_ACEOF 13945 13946fi 13947 13948done 13949 13950 13951for ac_header in netinet/ip_fw.h netinet6/ip6_fw.h 13952do : 13953 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 13954ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" " 13955#if HAVE_SYS_TYPES_H 13956# include <sys/types.h> 13957#endif 13958#if HAVE_SYS_SOCKET_H 13959# include <sys/socket.h> 13960#endif 13961#if HAVE_NETINET_IN_H 13962# include <netinet/in.h> 13963#endif 13964#if HAVE_ARPA_INET_H 13965# include <arpa/inet.h> 13966#endif 13967#include <net/if.h> 13968#include <netinet/ip_compat.h> 13969 13970" 13971if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 13972 cat >>confdefs.h <<_ACEOF 13973@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 13974_ACEOF 13975 13976fi 13977 13978done 13979 13980 13981for ac_header in netinet/tcp_var.h 13982do : 13983 ac_fn_c_check_header_compile "$LINENO" "netinet/tcp_var.h" "ac_cv_header_netinet_tcp_var_h" " 13984#if HAVE_SYS_TYPES_H 13985# include <sys/types.h> 13986#endif 13987#if HAVE_SYS_SOCKET_H 13988# include <sys/socket.h> 13989#endif 13990#if HAVE_NETINET_IN_H 13991# include <netinet/in.h> 13992#endif 13993#include <sys/queue.h> 13994#include <netinet/tcp.h> 13995 13996" 13997if test "x$ac_cv_header_netinet_tcp_var_h" = xyes; then : 13998 cat >>confdefs.h <<_ACEOF 13999@%:@define HAVE_NETINET_TCP_VAR_H 1 14000_ACEOF 14001 14002fi 14003 14004done 14005 14006 14007for ac_header in net/pfvar.h 14008do : 14009 ac_fn_c_check_header_compile "$LINENO" "net/pfvar.h" "ac_cv_header_net_pfvar_h" " 14010#include <sys/types.h> 14011#include <sys/socket.h> 14012#include <netinet/in.h> 14013#include <net/if.h> 14014 14015" 14016if test "x$ac_cv_header_net_pfvar_h" = xyes; then : 14017 cat >>confdefs.h <<_ACEOF 14018@%:@define HAVE_NET_PFVAR_H 1 14019_ACEOF 14020 14021fi 14022 14023done 14024 14025 14026for ac_header in linux/netlink.h 14027do : 14028 ac_fn_c_check_header_compile "$LINENO" "linux/netlink.h" "ac_cv_header_linux_netlink_h" " 14029#include <sys/types.h> 14030#include <sys/socket.h> 14031 14032" 14033if test "x$ac_cv_header_linux_netlink_h" = xyes; then : 14034 cat >>confdefs.h <<_ACEOF 14035@%:@define HAVE_LINUX_NETLINK_H 1 14036_ACEOF 14037 14038fi 14039 14040done 14041 14042 14043# Checks for typedefs, structures, and compiler characteristics. 14044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 14045$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 14046if ${ac_cv_c_const+:} false; then : 14047 $as_echo_n "(cached) " >&6 14048else 14049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14050/* end confdefs.h. */ 14051 14052int 14053main () 14054{ 14055 14056#ifndef __cplusplus 14057 /* Ultrix mips cc rejects this sort of thing. */ 14058 typedef int charset[2]; 14059 const charset cs = { 0, 0 }; 14060 /* SunOS 4.1.1 cc rejects this. */ 14061 char const *const *pcpcc; 14062 char **ppc; 14063 /* NEC SVR4.0.2 mips cc rejects this. */ 14064 struct point {int x, y;}; 14065 static struct point const zero = {0,0}; 14066 /* AIX XL C 1.02.0.0 rejects this. 14067 It does not let you subtract one const X* pointer from another in 14068 an arm of an if-expression whose if-part is not a constant 14069 expression */ 14070 const char *g = "string"; 14071 pcpcc = &g + (g ? g-g : 0); 14072 /* HPUX 7.0 cc rejects these. */ 14073 ++pcpcc; 14074 ppc = (char**) pcpcc; 14075 pcpcc = (char const *const *) ppc; 14076 { /* SCO 3.2v4 cc rejects this sort of thing. */ 14077 char tx; 14078 char *t = &tx; 14079 char const *s = 0 ? (char *) 0 : (char const *) 0; 14080 14081 *t++ = 0; 14082 if (s) return 0; 14083 } 14084 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 14085 int x[] = {25, 17}; 14086 const int *foo = &x[0]; 14087 ++foo; 14088 } 14089 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 14090 typedef const int *iptr; 14091 iptr p = 0; 14092 ++p; 14093 } 14094 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 14095 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 14096 struct s { int j; const int *ap[3]; } bx; 14097 struct s *b = &bx; b->j = 5; 14098 } 14099 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 14100 const int foo = 10; 14101 if (!foo) return 0; 14102 } 14103 return !cs[0] && !zero.x; 14104#endif 14105 14106 ; 14107 return 0; 14108} 14109_ACEOF 14110if ac_fn_c_try_compile "$LINENO"; then : 14111 ac_cv_c_const=yes 14112else 14113 ac_cv_c_const=no 14114fi 14115rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14116fi 14117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 14118$as_echo "$ac_cv_c_const" >&6; } 14119if test $ac_cv_c_const = no; then 14120 14121$as_echo "@%:@define const /**/" >>confdefs.h 14122 14123fi 14124 14125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 14126$as_echo_n "checking for uid_t in sys/types.h... " >&6; } 14127if ${ac_cv_type_uid_t+:} false; then : 14128 $as_echo_n "(cached) " >&6 14129else 14130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14131/* end confdefs.h. */ 14132#include <sys/types.h> 14133 14134_ACEOF 14135if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 14136 $EGREP "uid_t" >/dev/null 2>&1; then : 14137 ac_cv_type_uid_t=yes 14138else 14139 ac_cv_type_uid_t=no 14140fi 14141rm -f conftest* 14142 14143fi 14144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 14145$as_echo "$ac_cv_type_uid_t" >&6; } 14146if test $ac_cv_type_uid_t = no; then 14147 14148$as_echo "@%:@define uid_t int" >>confdefs.h 14149 14150 14151$as_echo "@%:@define gid_t int" >>confdefs.h 14152 14153fi 14154 14155ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t" 14156case $ac_cv_c_int16_t in #( 14157 no|yes) ;; #( 14158 *) 14159 14160cat >>confdefs.h <<_ACEOF 14161@%:@define int16_t $ac_cv_c_int16_t 14162_ACEOF 14163;; 14164esac 14165 14166ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t" 14167case $ac_cv_c_int32_t in #( 14168 no|yes) ;; #( 14169 *) 14170 14171cat >>confdefs.h <<_ACEOF 14172@%:@define int32_t $ac_cv_c_int32_t 14173_ACEOF 14174;; 14175esac 14176 14177ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default" 14178if test "x$ac_cv_type_mode_t" = xyes; then : 14179 14180else 14181 14182cat >>confdefs.h <<_ACEOF 14183@%:@define mode_t int 14184_ACEOF 14185 14186fi 14187 14188ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" 14189if test "x$ac_cv_type_off_t" = xyes; then : 14190 14191else 14192 14193cat >>confdefs.h <<_ACEOF 14194@%:@define off_t long int 14195_ACEOF 14196 14197fi 14198 14199ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" 14200if test "x$ac_cv_type_pid_t" = xyes; then : 14201 14202else 14203 14204cat >>confdefs.h <<_ACEOF 14205@%:@define pid_t int 14206_ACEOF 14207 14208fi 14209 14210ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 14211if test "x$ac_cv_type_size_t" = xyes; then : 14212 14213else 14214 14215cat >>confdefs.h <<_ACEOF 14216@%:@define size_t unsigned int 14217_ACEOF 14218 14219fi 14220 14221ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default" 14222if test "x$ac_cv_type_ssize_t" = xyes; then : 14223 14224else 14225 14226cat >>confdefs.h <<_ACEOF 14227@%:@define ssize_t int 14228_ACEOF 14229 14230fi 14231 14232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 14233$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } 14234if ${ac_cv_struct_tm+:} false; then : 14235 $as_echo_n "(cached) " >&6 14236else 14237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14238/* end confdefs.h. */ 14239#include <sys/types.h> 14240#include <time.h> 14241 14242int 14243main () 14244{ 14245struct tm tm; 14246 int *p = &tm.tm_sec; 14247 return !p; 14248 ; 14249 return 0; 14250} 14251_ACEOF 14252if ac_fn_c_try_compile "$LINENO"; then : 14253 ac_cv_struct_tm=time.h 14254else 14255 ac_cv_struct_tm=sys/time.h 14256fi 14257rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14258fi 14259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 14260$as_echo "$ac_cv_struct_tm" >&6; } 14261if test $ac_cv_struct_tm = sys/time.h; then 14262 14263$as_echo "@%:@define TM_IN_SYS_TIME 1" >>confdefs.h 14264 14265fi 14266 14267ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t" 14268case $ac_cv_c_uint16_t in #( 14269 no|yes) ;; #( 14270 *) 14271 14272 14273cat >>confdefs.h <<_ACEOF 14274@%:@define uint16_t $ac_cv_c_uint16_t 14275_ACEOF 14276;; 14277 esac 14278 14279ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t" 14280case $ac_cv_c_uint32_t in #( 14281 no|yes) ;; #( 14282 *) 14283 14284$as_echo "@%:@define _UINT32_T 1" >>confdefs.h 14285 14286 14287cat >>confdefs.h <<_ACEOF 14288@%:@define uint32_t $ac_cv_c_uint32_t 14289_ACEOF 14290;; 14291 esac 14292 14293ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t" 14294case $ac_cv_c_uint64_t in #( 14295 no|yes) ;; #( 14296 *) 14297 14298$as_echo "@%:@define _UINT64_T 1" >>confdefs.h 14299 14300 14301cat >>confdefs.h <<_ACEOF 14302@%:@define uint64_t $ac_cv_c_uint64_t 14303_ACEOF 14304;; 14305 esac 14306 14307ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t" 14308case $ac_cv_c_uint8_t in #( 14309 no|yes) ;; #( 14310 *) 14311 14312$as_echo "@%:@define _UINT8_T 1" >>confdefs.h 14313 14314 14315cat >>confdefs.h <<_ACEOF 14316@%:@define uint8_t $ac_cv_c_uint8_t 14317_ACEOF 14318;; 14319 esac 14320 14321 14322# Checks for library functions. 14323for ac_header in unistd.h 14324do : 14325 ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default" 14326if test "x$ac_cv_header_unistd_h" = xyes; then : 14327 cat >>confdefs.h <<_ACEOF 14328@%:@define HAVE_UNISTD_H 1 14329_ACEOF 14330 14331fi 14332 14333done 14334 14335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working chown" >&5 14336$as_echo_n "checking for working chown... " >&6; } 14337if ${ac_cv_func_chown_works+:} false; then : 14338 $as_echo_n "(cached) " >&6 14339else 14340 if test "$cross_compiling" = yes; then : 14341 ac_cv_func_chown_works=no 14342else 14343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14344/* end confdefs.h. */ 14345$ac_includes_default 14346#include <fcntl.h> 14347 14348int 14349main () 14350{ 14351 char *f = "conftest.chown"; 14352 struct stat before, after; 14353 14354 if (creat (f, 0600) < 0) 14355 return 1; 14356 if (stat (f, &before) < 0) 14357 return 1; 14358 if (chown (f, (uid_t) -1, (gid_t) -1) == -1) 14359 return 1; 14360 if (stat (f, &after) < 0) 14361 return 1; 14362 return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid); 14363 14364 ; 14365 return 0; 14366} 14367_ACEOF 14368if ac_fn_c_try_run "$LINENO"; then : 14369 ac_cv_func_chown_works=yes 14370else 14371 ac_cv_func_chown_works=no 14372fi 14373rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14374 conftest.$ac_objext conftest.beam conftest.$ac_ext 14375fi 14376 14377rm -f conftest.chown 14378 14379fi 14380{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chown_works" >&5 14381$as_echo "$ac_cv_func_chown_works" >&6; } 14382if test $ac_cv_func_chown_works = yes; then 14383 14384$as_echo "@%:@define HAVE_CHOWN 1" >>confdefs.h 14385 14386fi 14387 14388for ac_header in vfork.h 14389do : 14390 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default" 14391if test "x$ac_cv_header_vfork_h" = xyes; then : 14392 cat >>confdefs.h <<_ACEOF 14393@%:@define HAVE_VFORK_H 1 14394_ACEOF 14395 14396fi 14397 14398done 14399 14400for ac_func in fork vfork 14401do : 14402 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 14403ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 14404if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 14405 cat >>confdefs.h <<_ACEOF 14406@%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 14407_ACEOF 14408 14409fi 14410done 14411 14412if test "x$ac_cv_func_fork" = xyes; then 14413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5 14414$as_echo_n "checking for working fork... " >&6; } 14415if ${ac_cv_func_fork_works+:} false; then : 14416 $as_echo_n "(cached) " >&6 14417else 14418 if test "$cross_compiling" = yes; then : 14419 ac_cv_func_fork_works=cross 14420else 14421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14422/* end confdefs.h. */ 14423$ac_includes_default 14424int 14425main () 14426{ 14427 14428 /* By Ruediger Kuhlmann. */ 14429 return fork () < 0; 14430 14431 ; 14432 return 0; 14433} 14434_ACEOF 14435if ac_fn_c_try_run "$LINENO"; then : 14436 ac_cv_func_fork_works=yes 14437else 14438 ac_cv_func_fork_works=no 14439fi 14440rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14441 conftest.$ac_objext conftest.beam conftest.$ac_ext 14442fi 14443 14444fi 14445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5 14446$as_echo "$ac_cv_func_fork_works" >&6; } 14447 14448else 14449 ac_cv_func_fork_works=$ac_cv_func_fork 14450fi 14451if test "x$ac_cv_func_fork_works" = xcross; then 14452 case $host in 14453 *-*-amigaos* | *-*-msdosdjgpp*) 14454 # Override, as these systems have only a dummy fork() stub 14455 ac_cv_func_fork_works=no 14456 ;; 14457 *) 14458 ac_cv_func_fork_works=yes 14459 ;; 14460 esac 14461 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 14462$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} 14463fi 14464ac_cv_func_vfork_works=$ac_cv_func_vfork 14465if test "x$ac_cv_func_vfork" = xyes; then 14466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5 14467$as_echo_n "checking for working vfork... " >&6; } 14468if ${ac_cv_func_vfork_works+:} false; then : 14469 $as_echo_n "(cached) " >&6 14470else 14471 if test "$cross_compiling" = yes; then : 14472 ac_cv_func_vfork_works=cross 14473else 14474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14475/* end confdefs.h. */ 14476/* Thanks to Paul Eggert for this test. */ 14477$ac_includes_default 14478#include <sys/wait.h> 14479#ifdef HAVE_VFORK_H 14480# include <vfork.h> 14481#endif 14482/* On some sparc systems, changes by the child to local and incoming 14483 argument registers are propagated back to the parent. The compiler 14484 is told about this with #include <vfork.h>, but some compilers 14485 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a 14486 static variable whose address is put into a register that is 14487 clobbered by the vfork. */ 14488static void 14489#ifdef __cplusplus 14490sparc_address_test (int arg) 14491# else 14492sparc_address_test (arg) int arg; 14493#endif 14494{ 14495 static pid_t child; 14496 if (!child) { 14497 child = vfork (); 14498 if (child < 0) { 14499 perror ("vfork"); 14500 _exit(2); 14501 } 14502 if (!child) { 14503 arg = getpid(); 14504 write(-1, "", 0); 14505 _exit (arg); 14506 } 14507 } 14508} 14509 14510int 14511main () 14512{ 14513 pid_t parent = getpid (); 14514 pid_t child; 14515 14516 sparc_address_test (0); 14517 14518 child = vfork (); 14519 14520 if (child == 0) { 14521 /* Here is another test for sparc vfork register problems. This 14522 test uses lots of local variables, at least as many local 14523 variables as main has allocated so far including compiler 14524 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris 14525 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should 14526 reuse the register of parent for one of the local variables, 14527 since it will think that parent can't possibly be used any more 14528 in this routine. Assigning to the local variable will thus 14529 munge parent in the parent process. */ 14530 pid_t 14531 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), 14532 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); 14533 /* Convince the compiler that p..p7 are live; otherwise, it might 14534 use the same hardware register for all 8 local variables. */ 14535 if (p != p1 || p != p2 || p != p3 || p != p4 14536 || p != p5 || p != p6 || p != p7) 14537 _exit(1); 14538 14539 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent 14540 from child file descriptors. If the child closes a descriptor 14541 before it execs or exits, this munges the parent's descriptor 14542 as well. Test for this by closing stdout in the child. */ 14543 _exit(close(fileno(stdout)) != 0); 14544 } else { 14545 int status; 14546 struct stat st; 14547 14548 while (wait(&status) != child) 14549 ; 14550 return ( 14551 /* Was there some problem with vforking? */ 14552 child < 0 14553 14554 /* Did the child fail? (This shouldn't happen.) */ 14555 || status 14556 14557 /* Did the vfork/compiler bug occur? */ 14558 || parent != getpid() 14559 14560 /* Did the file descriptor bug occur? */ 14561 || fstat(fileno(stdout), &st) != 0 14562 ); 14563 } 14564} 14565_ACEOF 14566if ac_fn_c_try_run "$LINENO"; then : 14567 ac_cv_func_vfork_works=yes 14568else 14569 ac_cv_func_vfork_works=no 14570fi 14571rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14572 conftest.$ac_objext conftest.beam conftest.$ac_ext 14573fi 14574 14575fi 14576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5 14577$as_echo "$ac_cv_func_vfork_works" >&6; } 14578 14579fi; 14580if test "x$ac_cv_func_fork_works" = xcross; then 14581 ac_cv_func_vfork_works=$ac_cv_func_vfork 14582 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 14583$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} 14584fi 14585 14586if test "x$ac_cv_func_vfork_works" = xyes; then 14587 14588$as_echo "@%:@define HAVE_WORKING_VFORK 1" >>confdefs.h 14589 14590else 14591 14592$as_echo "@%:@define vfork fork" >>confdefs.h 14593 14594fi 14595if test "x$ac_cv_func_fork_works" = xyes; then 14596 14597$as_echo "@%:@define HAVE_WORKING_FORK 1" >>confdefs.h 14598 14599fi 14600 14601for ac_func in arc4random 14602do : 14603 ac_fn_c_check_func "$LINENO" "arc4random" "ac_cv_func_arc4random" 14604if test "x$ac_cv_func_arc4random" = xyes; then : 14605 cat >>confdefs.h <<_ACEOF 14606@%:@define HAVE_ARC4RANDOM 1 14607_ACEOF 14608 14609fi 14610done 14611 14612for ac_func in arc4random_uniform 14613do : 14614 ac_fn_c_check_func "$LINENO" "arc4random_uniform" "ac_cv_func_arc4random_uniform" 14615if test "x$ac_cv_func_arc4random_uniform" = xyes; then : 14616 cat >>confdefs.h <<_ACEOF 14617@%:@define HAVE_ARC4RANDOM_UNIFORM 1 14618_ACEOF 14619 14620fi 14621done 14622 14623for ac_func in atexit 14624do : 14625 ac_fn_c_check_func "$LINENO" "atexit" "ac_cv_func_atexit" 14626if test "x$ac_cv_func_atexit" = xyes; then : 14627 cat >>confdefs.h <<_ACEOF 14628@%:@define HAVE_ATEXIT 1 14629_ACEOF 14630 14631fi 14632done 14633 14634for ac_func in calloc 14635do : 14636 ac_fn_c_check_func "$LINENO" "calloc" "ac_cv_func_calloc" 14637if test "x$ac_cv_func_calloc" = xyes; then : 14638 cat >>confdefs.h <<_ACEOF 14639@%:@define HAVE_CALLOC 1 14640_ACEOF 14641 14642fi 14643done 14644 14645for ac_func in daemon 14646do : 14647 ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon" 14648if test "x$ac_cv_func_daemon" = xyes; then : 14649 cat >>confdefs.h <<_ACEOF 14650@%:@define HAVE_DAEMON 1 14651_ACEOF 14652 14653fi 14654done 14655 14656for ac_func in endpwent 14657do : 14658 ac_fn_c_check_func "$LINENO" "endpwent" "ac_cv_func_endpwent" 14659if test "x$ac_cv_func_endpwent" = xyes; then : 14660 cat >>confdefs.h <<_ACEOF 14661@%:@define HAVE_ENDPWENT 1 14662_ACEOF 14663 14664fi 14665done 14666 14667for ac_func in epoll_wait 14668do : 14669 ac_fn_c_check_func "$LINENO" "epoll_wait" "ac_cv_func_epoll_wait" 14670if test "x$ac_cv_func_epoll_wait" = xyes; then : 14671 cat >>confdefs.h <<_ACEOF 14672@%:@define HAVE_EPOLL_WAIT 1 14673_ACEOF 14674 14675fi 14676done 14677 14678for ac_func in ftruncate 14679do : 14680 ac_fn_c_check_func "$LINENO" "ftruncate" "ac_cv_func_ftruncate" 14681if test "x$ac_cv_func_ftruncate" = xyes; then : 14682 cat >>confdefs.h <<_ACEOF 14683@%:@define HAVE_FTRUNCATE 1 14684_ACEOF 14685 14686fi 14687done 14688 14689for ac_func in getdtablesize 14690do : 14691 ac_fn_c_check_func "$LINENO" "getdtablesize" "ac_cv_func_getdtablesize" 14692if test "x$ac_cv_func_getdtablesize" = xyes; then : 14693 cat >>confdefs.h <<_ACEOF 14694@%:@define HAVE_GETDTABLESIZE 1 14695_ACEOF 14696 14697fi 14698done 14699 14700for ac_func in gethostname 14701do : 14702 ac_fn_c_check_func "$LINENO" "gethostname" "ac_cv_func_gethostname" 14703if test "x$ac_cv_func_gethostname" = xyes; then : 14704 cat >>confdefs.h <<_ACEOF 14705@%:@define HAVE_GETHOSTNAME 1 14706_ACEOF 14707 14708fi 14709done 14710 14711for ac_func in getifaddrs 14712do : 14713 ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs" 14714if test "x$ac_cv_func_getifaddrs" = xyes; then : 14715 cat >>confdefs.h <<_ACEOF 14716@%:@define HAVE_GETIFADDRS 1 14717_ACEOF 14718 14719fi 14720done 14721 14722for ac_func in getpagesize 14723do : 14724 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" 14725if test "x$ac_cv_func_getpagesize" = xyes; then : 14726 cat >>confdefs.h <<_ACEOF 14727@%:@define HAVE_GETPAGESIZE 1 14728_ACEOF 14729 14730fi 14731done 14732 14733for ac_func in gettimeofday 14734do : 14735 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday" 14736if test "x$ac_cv_func_gettimeofday" = xyes; then : 14737 cat >>confdefs.h <<_ACEOF 14738@%:@define HAVE_GETTIMEOFDAY 1 14739_ACEOF 14740 14741fi 14742done 14743 14744for ac_func in kqueue 14745do : 14746 ac_fn_c_check_func "$LINENO" "kqueue" "ac_cv_func_kqueue" 14747if test "x$ac_cv_func_kqueue" = xyes; then : 14748 cat >>confdefs.h <<_ACEOF 14749@%:@define HAVE_KQUEUE 1 14750_ACEOF 14751 14752fi 14753done 14754 14755for ac_func in memmove 14756do : 14757 ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove" 14758if test "x$ac_cv_func_memmove" = xyes; then : 14759 cat >>confdefs.h <<_ACEOF 14760@%:@define HAVE_MEMMOVE 1 14761_ACEOF 14762 14763fi 14764done 14765 14766for ac_func in memset 14767do : 14768 ac_fn_c_check_func "$LINENO" "memset" "ac_cv_func_memset" 14769if test "x$ac_cv_func_memset" = xyes; then : 14770 cat >>confdefs.h <<_ACEOF 14771@%:@define HAVE_MEMSET 1 14772_ACEOF 14773 14774fi 14775done 14776 14777for ac_func in mkdir 14778do : 14779 ac_fn_c_check_func "$LINENO" "mkdir" "ac_cv_func_mkdir" 14780if test "x$ac_cv_func_mkdir" = xyes; then : 14781 cat >>confdefs.h <<_ACEOF 14782@%:@define HAVE_MKDIR 1 14783_ACEOF 14784 14785fi 14786done 14787 14788for ac_func in poll 14789do : 14790 ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll" 14791if test "x$ac_cv_func_poll" = xyes; then : 14792 cat >>confdefs.h <<_ACEOF 14793@%:@define HAVE_POLL 1 14794_ACEOF 14795 14796fi 14797done 14798 14799for ac_func in rmdir 14800do : 14801 ac_fn_c_check_func "$LINENO" "rmdir" "ac_cv_func_rmdir" 14802if test "x$ac_cv_func_rmdir" = xyes; then : 14803 cat >>confdefs.h <<_ACEOF 14804@%:@define HAVE_RMDIR 1 14805_ACEOF 14806 14807fi 14808done 14809 14810for ac_func in select 14811do : 14812 ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select" 14813if test "x$ac_cv_func_select" = xyes; then : 14814 cat >>confdefs.h <<_ACEOF 14815@%:@define HAVE_SELECT 1 14816_ACEOF 14817 14818fi 14819done 14820 14821for ac_func in socket 14822do : 14823 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket" 14824if test "x$ac_cv_func_socket" = xyes; then : 14825 cat >>confdefs.h <<_ACEOF 14826@%:@define HAVE_SOCKET 1 14827_ACEOF 14828 14829fi 14830done 14831 14832for ac_func in snprintf 14833do : 14834 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf" 14835if test "x$ac_cv_func_snprintf" = xyes; then : 14836 cat >>confdefs.h <<_ACEOF 14837@%:@define HAVE_SNPRINTF 1 14838_ACEOF 14839 14840fi 14841done 14842 14843for ac_func in setproctitle 14844do : 14845 ac_fn_c_check_func "$LINENO" "setproctitle" "ac_cv_func_setproctitle" 14846if test "x$ac_cv_func_setproctitle" = xyes; then : 14847 cat >>confdefs.h <<_ACEOF 14848@%:@define HAVE_SETPROCTITLE 1 14849_ACEOF 14850 14851fi 14852done 14853 14854for ac_func in strcasecmp 14855do : 14856 ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp" 14857if test "x$ac_cv_func_strcasecmp" = xyes; then : 14858 cat >>confdefs.h <<_ACEOF 14859@%:@define HAVE_STRCASECMP 1 14860_ACEOF 14861 14862fi 14863done 14864 14865for ac_func in strcasestr 14866do : 14867 ac_fn_c_check_func "$LINENO" "strcasestr" "ac_cv_func_strcasestr" 14868if test "x$ac_cv_func_strcasestr" = xyes; then : 14869 cat >>confdefs.h <<_ACEOF 14870@%:@define HAVE_STRCASESTR 1 14871_ACEOF 14872 14873fi 14874done 14875 14876for ac_func in strdup 14877do : 14878 ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup" 14879if test "x$ac_cv_func_strdup" = xyes; then : 14880 cat >>confdefs.h <<_ACEOF 14881@%:@define HAVE_STRDUP 1 14882_ACEOF 14883 14884fi 14885done 14886 14887for ac_func in strerror 14888do : 14889 ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror" 14890if test "x$ac_cv_func_strerror" = xyes; then : 14891 cat >>confdefs.h <<_ACEOF 14892@%:@define HAVE_STRERROR 1 14893_ACEOF 14894 14895fi 14896done 14897 14898for ac_func in strncasecmp 14899do : 14900 ac_fn_c_check_func "$LINENO" "strncasecmp" "ac_cv_func_strncasecmp" 14901if test "x$ac_cv_func_strncasecmp" = xyes; then : 14902 cat >>confdefs.h <<_ACEOF 14903@%:@define HAVE_STRNCASECMP 1 14904_ACEOF 14905 14906fi 14907done 14908 14909for ac_func in strtol 14910do : 14911 ac_fn_c_check_func "$LINENO" "strtol" "ac_cv_func_strtol" 14912if test "x$ac_cv_func_strtol" = xyes; then : 14913 cat >>confdefs.h <<_ACEOF 14914@%:@define HAVE_STRTOL 1 14915_ACEOF 14916 14917fi 14918done 14919 14920for ac_func in sysctl 14921do : 14922 ac_fn_c_check_func "$LINENO" "sysctl" "ac_cv_func_sysctl" 14923if test "x$ac_cv_func_sysctl" = xyes; then : 14924 cat >>confdefs.h <<_ACEOF 14925@%:@define HAVE_SYSCTL 1 14926_ACEOF 14927 14928fi 14929done 14930 14931for ac_func in uname 14932do : 14933 ac_fn_c_check_func "$LINENO" "uname" "ac_cv_func_uname" 14934if test "x$ac_cv_func_uname" = xyes; then : 14935 cat >>confdefs.h <<_ACEOF 14936@%:@define HAVE_UNAME 1 14937_ACEOF 14938 14939fi 14940done 14941 14942 14943# The cast to long int works around a bug in the HP C Compiler 14944# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 14945# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 14946# This bug is HP SR number 8606223364. 14947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 14948$as_echo_n "checking size of long... " >&6; } 14949if ${ac_cv_sizeof_long+:} false; then : 14950 $as_echo_n "(cached) " >&6 14951else 14952 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : 14953 14954else 14955 if test "$ac_cv_type_long" = yes; then 14956 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14957$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14958as_fn_error 77 "cannot compute sizeof (long) 14959See \`config.log' for more details" "$LINENO" 5; } 14960 else 14961 ac_cv_sizeof_long=0 14962 fi 14963fi 14964 14965fi 14966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 14967$as_echo "$ac_cv_sizeof_long" >&6; } 14968 14969 14970 14971cat >>confdefs.h <<_ACEOF 14972@%:@define SIZEOF_LONG $ac_cv_sizeof_long 14973_ACEOF 14974 14975 14976 14977ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h> 14978 #include <sys/socket.h> 14979" 14980if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then : 14981 14982$as_echo "@%:@define HAVE_STRUCT_SOCKADDR_SA_LEN 1" >>confdefs.h 14983 14984else 14985 : 14986fi 14987 14988 14989if test "x$ac_cv_header_net_pfvar_h" == xyes; then 14990 ac_fn_c_check_member "$LINENO" "struct pfioc_trans_e" "type" "ac_cv_member_struct_pfioc_trans_e_type" "#include <sys/types.h> 14991 #include <sys/socket.h> 14992 #include <netinet/in.h> 14993 #include <net/if.h> 14994 #include <net/pfvar.h> 14995" 14996if test "x$ac_cv_member_struct_pfioc_trans_e_type" = xyes; then : 14997 14998$as_echo "@%:@define HAVE_STRUCT_PFIOC_TRANS_E_TYPE 1" >>confdefs.h 14999 15000else 15001 : 15002fi 15003 15004 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> 15005 #include <sys/socket.h> 15006 #include <netinet/in.h> 15007 #include <net/if.h> 15008 #include <net/pfvar.h> 15009" 15010if test "x$ac_cv_member_struct_pfioc_trans_e_rs_num" = xyes; then : 15011 15012$as_echo "@%:@define HAVE_STRUCT_PFIOC_TRANS_E_RS_NUM 1" >>confdefs.h 15013 15014else 15015 : 15016fi 15017 15018 ac_fn_c_check_member "$LINENO" "struct pf_rule" "nat" "ac_cv_member_struct_pf_rule_nat" "#include <sys/types.h> 15019 #include <sys/socket.h> 15020 #include <netinet/in.h> 15021 #include <net/if.h> 15022 #include <net/pfvar.h> 15023" 15024if test "x$ac_cv_member_struct_pf_rule_nat" = xyes; then : 15025 15026$as_echo "@%:@define HAVE_STRUCT_PF_RULE_NAT 1" >>confdefs.h 15027 15028else 15029 : 15030fi 15031 15032 ac_fn_c_check_member "$LINENO" "struct pf_rule" "rdr" "ac_cv_member_struct_pf_rule_rdr" "#include <sys/types.h> 15033 #include <sys/socket.h> 15034 #include <netinet/in.h> 15035 #include <net/if.h> 15036 #include <net/pfvar.h> 15037" 15038if test "x$ac_cv_member_struct_pf_rule_rdr" = xyes; then : 15039 15040$as_echo "@%:@define HAVE_STRUCT_PF_RULE_RDR 1" >>confdefs.h 15041 15042else 15043 : 15044fi 15045 15046fi 15047 15048# Check for structs 15049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct nlmsghdr" >&5 15050$as_echo_n "checking for struct nlmsghdr... " >&6; } 15051cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15052/* end confdefs.h. */ 15053 15054 #include <sys/types.h> 15055 #include <sys/socket.h> 15056 #include <linux/netlink.h> 15057 15058int 15059main () 15060{ 15061 15062 struct nlmsghdr msg; 15063 15064 ; 15065 return 0; 15066} 15067_ACEOF 15068if ac_fn_c_try_compile "$LINENO"; then : 15069 15070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15071$as_echo "yes" >&6; } 15072 15073cat >>confdefs.h <<_ACEOF 15074@%:@define HAVE_STRUCT_NLMSGHDR 1 15075_ACEOF 15076 15077 15078else 15079 15080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15081$as_echo "no" >&6; } 15082 15083fi 15084rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15085 15086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct nlmsgerr" >&5 15087$as_echo_n "checking for struct nlmsgerr... " >&6; } 15088cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15089/* end confdefs.h. */ 15090 15091 #include <sys/types.h> 15092 #include <sys/socket.h> 15093 #include <linux/netlink.h> 15094 15095int 15096main () 15097{ 15098 15099 struct nlmsgerr msgerr; 15100 15101 ; 15102 return 0; 15103} 15104_ACEOF 15105if ac_fn_c_try_compile "$LINENO"; then : 15106 15107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15108$as_echo "yes" >&6; } 15109 15110cat >>confdefs.h <<_ACEOF 15111@%:@define HAVE_STRUCT_NLMSGERR 1 15112_ACEOF 15113 15114 15115else 15116 15117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15118$as_echo "no" >&6; } 15119 15120fi 15121rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15122 15123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_nl" >&5 15124$as_echo_n "checking for struct sockaddr_nl... " >&6; } 15125cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15126/* end confdefs.h. */ 15127 15128 #include <sys/types.h> 15129 #include <sys/socket.h> 15130 #include <linux/netlink.h> 15131 15132int 15133main () 15134{ 15135 15136 struct sockaddr_nl snl; 15137 15138 ; 15139 return 0; 15140} 15141_ACEOF 15142if ac_fn_c_try_compile "$LINENO"; then : 15143 15144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15145$as_echo "yes" >&6; } 15146 15147cat >>confdefs.h <<_ACEOF 15148@%:@define HAVE_STRUCT_SOCKADDR_NL 1 15149_ACEOF 15150 15151 15152else 15153 15154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15155$as_echo "no" >&6; } 15156 15157fi 15158rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15159 15160# These libraries have to be explicitly linked in OpenSolaris 15161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getaddrinfo" >&5 15162$as_echo_n "checking for library containing getaddrinfo... " >&6; } 15163if ${ac_cv_search_getaddrinfo+:} false; then : 15164 $as_echo_n "(cached) " >&6 15165else 15166 ac_func_search_save_LIBS=$LIBS 15167cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15168/* end confdefs.h. */ 15169 15170/* Override any GCC internal prototype to avoid an error. 15171 Use char because int might match the return type of a GCC 15172 builtin and then its argument prototype would still apply. */ 15173#ifdef __cplusplus 15174extern "C" 15175#endif 15176char getaddrinfo (); 15177int 15178main () 15179{ 15180return getaddrinfo (); 15181 ; 15182 return 0; 15183} 15184_ACEOF 15185for ac_lib in '' socket; do 15186 if test -z "$ac_lib"; then 15187 ac_res="none required" 15188 else 15189 ac_res=-l$ac_lib 15190 LIBS="-l$ac_lib -lnsl $ac_func_search_save_LIBS" 15191 fi 15192 if ac_fn_c_try_link "$LINENO"; then : 15193 ac_cv_search_getaddrinfo=$ac_res 15194fi 15195rm -f core conftest.err conftest.$ac_objext \ 15196 conftest$ac_exeext 15197 if ${ac_cv_search_getaddrinfo+:} false; then : 15198 break 15199fi 15200done 15201if ${ac_cv_search_getaddrinfo+:} false; then : 15202 15203else 15204 ac_cv_search_getaddrinfo=no 15205fi 15206rm conftest.$ac_ext 15207LIBS=$ac_func_search_save_LIBS 15208fi 15209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getaddrinfo" >&5 15210$as_echo "$ac_cv_search_getaddrinfo" >&6; } 15211ac_res=$ac_cv_search_getaddrinfo 15212if test "$ac_res" != no; then : 15213 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 15214 15215fi 15216 15217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntop" >&5 15218$as_echo_n "checking for library containing inet_ntop... " >&6; } 15219if ${ac_cv_search_inet_ntop+:} false; then : 15220 $as_echo_n "(cached) " >&6 15221else 15222 ac_func_search_save_LIBS=$LIBS 15223cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15224/* end confdefs.h. */ 15225 15226/* Override any GCC internal prototype to avoid an error. 15227 Use char because int might match the return type of a GCC 15228 builtin and then its argument prototype would still apply. */ 15229#ifdef __cplusplus 15230extern "C" 15231#endif 15232char inet_ntop (); 15233int 15234main () 15235{ 15236return inet_ntop (); 15237 ; 15238 return 0; 15239} 15240_ACEOF 15241for ac_lib in '' nsl; do 15242 if test -z "$ac_lib"; then 15243 ac_res="none required" 15244 else 15245 ac_res=-l$ac_lib 15246 LIBS="-l$ac_lib -lsocket $ac_func_search_save_LIBS" 15247 fi 15248 if ac_fn_c_try_link "$LINENO"; then : 15249 ac_cv_search_inet_ntop=$ac_res 15250fi 15251rm -f core conftest.err conftest.$ac_objext \ 15252 conftest$ac_exeext 15253 if ${ac_cv_search_inet_ntop+:} false; then : 15254 break 15255fi 15256done 15257if ${ac_cv_search_inet_ntop+:} false; then : 15258 15259else 15260 ac_cv_search_inet_ntop=no 15261fi 15262rm conftest.$ac_ext 15263LIBS=$ac_func_search_save_LIBS 15264fi 15265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntop" >&5 15266$as_echo "$ac_cv_search_inet_ntop" >&6; } 15267ac_res=$ac_cv_search_inet_ntop 15268if test "$ac_res" != no; then : 15269 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 15270 15271fi 15272 15273 15274# Some systems need -lm to use sqrt. 15275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sqrt" >&5 15276$as_echo_n "checking for library containing sqrt... " >&6; } 15277if ${ac_cv_search_sqrt+:} false; then : 15278 $as_echo_n "(cached) " >&6 15279else 15280 ac_func_search_save_LIBS=$LIBS 15281cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15282/* end confdefs.h. */ 15283 15284/* Override any GCC internal prototype to avoid an error. 15285 Use char because int might match the return type of a GCC 15286 builtin and then its argument prototype would still apply. */ 15287#ifdef __cplusplus 15288extern "C" 15289#endif 15290char sqrt (); 15291int 15292main () 15293{ 15294return sqrt (); 15295 ; 15296 return 0; 15297} 15298_ACEOF 15299for ac_lib in '' m; do 15300 if test -z "$ac_lib"; then 15301 ac_res="none required" 15302 else 15303 ac_res=-l$ac_lib 15304 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 15305 fi 15306 if ac_fn_c_try_link "$LINENO"; then : 15307 ac_cv_search_sqrt=$ac_res 15308fi 15309rm -f core conftest.err conftest.$ac_objext \ 15310 conftest$ac_exeext 15311 if ${ac_cv_search_sqrt+:} false; then : 15312 break 15313fi 15314done 15315if ${ac_cv_search_sqrt+:} false; then : 15316 15317else 15318 ac_cv_search_sqrt=no 15319fi 15320rm conftest.$ac_ext 15321LIBS=$ac_func_search_save_LIBS 15322fi 15323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sqrt" >&5 15324$as_echo "$ac_cv_search_sqrt" >&6; } 15325ac_res=$ac_cv_search_sqrt 15326if test "$ac_res" != no; then : 15327 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 15328 15329fi 15330 15331 15332 15333 found=false 15334 15335@%:@ Check whether --with-openssl was given. 15336if test "${with_openssl+set}" = set; then : 15337 withval=$with_openssl; 15338 case "$withval" in 15339 "" | y | ye | yes | n | no) 15340 as_fn_error $? "Invalid --with-openssl value" "$LINENO" 5 15341 ;; 15342 *) ssldirs="$withval" 15343 ;; 15344 esac 15345 15346else 15347 15348 # if pkg-config is installed and openssl has installed a .pc file, 15349 # then use that information and don't search ssldirs 15350 if test -n "$ac_tool_prefix"; then 15351 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 15352set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 15353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15354$as_echo_n "checking for $ac_word... " >&6; } 15355if ${ac_cv_prog_PKG_CONFIG+:} false; then : 15356 $as_echo_n "(cached) " >&6 15357else 15358 if test -n "$PKG_CONFIG"; then 15359 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test. 15360else 15361as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15362for as_dir in $PATH 15363do 15364 IFS=$as_save_IFS 15365 test -z "$as_dir" && as_dir=. 15366 for ac_exec_ext in '' $ac_executable_extensions; do 15367 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15368 ac_cv_prog_PKG_CONFIG="${ac_tool_prefix}pkg-config" 15369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15370 break 2 15371 fi 15372done 15373 done 15374IFS=$as_save_IFS 15375 15376fi 15377fi 15378PKG_CONFIG=$ac_cv_prog_PKG_CONFIG 15379if test -n "$PKG_CONFIG"; then 15380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 15381$as_echo "$PKG_CONFIG" >&6; } 15382else 15383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15384$as_echo "no" >&6; } 15385fi 15386 15387 15388fi 15389if test -z "$ac_cv_prog_PKG_CONFIG"; then 15390 ac_ct_PKG_CONFIG=$PKG_CONFIG 15391 # Extract the first word of "pkg-config", so it can be a program name with args. 15392set dummy pkg-config; ac_word=$2 15393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15394$as_echo_n "checking for $ac_word... " >&6; } 15395if ${ac_cv_prog_ac_ct_PKG_CONFIG+:} false; then : 15396 $as_echo_n "(cached) " >&6 15397else 15398 if test -n "$ac_ct_PKG_CONFIG"; then 15399 ac_cv_prog_ac_ct_PKG_CONFIG="$ac_ct_PKG_CONFIG" # Let the user override the test. 15400else 15401as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15402for as_dir in $PATH 15403do 15404 IFS=$as_save_IFS 15405 test -z "$as_dir" && as_dir=. 15406 for ac_exec_ext in '' $ac_executable_extensions; do 15407 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15408 ac_cv_prog_ac_ct_PKG_CONFIG="pkg-config" 15409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15410 break 2 15411 fi 15412done 15413 done 15414IFS=$as_save_IFS 15415 15416fi 15417fi 15418ac_ct_PKG_CONFIG=$ac_cv_prog_ac_ct_PKG_CONFIG 15419if test -n "$ac_ct_PKG_CONFIG"; then 15420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_PKG_CONFIG" >&5 15421$as_echo "$ac_ct_PKG_CONFIG" >&6; } 15422else 15423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15424$as_echo "no" >&6; } 15425fi 15426 15427 if test "x$ac_ct_PKG_CONFIG" = x; then 15428 PKG_CONFIG="" 15429 else 15430 case $cross_compiling:$ac_tool_warned in 15431yes:) 15432{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 15433$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 15434ac_tool_warned=yes ;; 15435esac 15436 PKG_CONFIG=$ac_ct_PKG_CONFIG 15437 fi 15438else 15439 PKG_CONFIG="$ac_cv_prog_PKG_CONFIG" 15440fi 15441 15442 if test x"$PKG_CONFIG" != x""; then 15443 OPENSSL_LDFLAGS=`$PKG_CONFIG openssl --libs-only-L 2>/dev/null` 15444 if test $? = 0; then 15445 OPENSSL_LIBS=`$PKG_CONFIG openssl --libs-only-l 2>/dev/null` 15446 OPENSSL_INCLUDES=`$PKG_CONFIG openssl --cflags-only-I 2>/dev/null` 15447 found=true 15448 fi 15449 fi 15450 15451 # no such luck; use some default ssldirs 15452 if ! $found; then 15453 ssldirs="/usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /usr" 15454 fi 15455 15456 15457fi 15458 15459 15460 15461 # note that we #include <openssl/foo.h>, so the OpenSSL headers have to be in 15462 # an 'openssl' subdirectory 15463 15464 if ! $found; then 15465 OPENSSL_INCLUDES= 15466 for ssldir in $ssldirs; do 15467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for include/openssl/ssl.h in $ssldir" >&5 15468$as_echo_n "checking for include/openssl/ssl.h in $ssldir... " >&6; } 15469 if test -f "$ssldir/include/openssl/ssl.h"; then 15470 OPENSSL_INCLUDES="-I$ssldir/include" 15471 OPENSSL_LDFLAGS="-L$ssldir/lib" 15472 OPENSSL_LIBS="-lssl -lcrypto" 15473 found=true 15474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15475$as_echo "yes" >&6; } 15476 break 15477 else 15478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15479$as_echo "no" >&6; } 15480 fi 15481 done 15482 15483 # if the file wasn't found, well, go ahead and try the link anyway -- maybe 15484 # it will just work! 15485 fi 15486 15487 # try the preprocessor and linker with our new flags, 15488 # being careful not to pollute the global LIBS, LDFLAGS, and CPPFLAGS 15489 15490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiling and linking against OpenSSL works" >&5 15491$as_echo_n "checking whether compiling and linking against OpenSSL works... " >&6; } 15492 echo "Trying link with OPENSSL_LDFLAGS=$OPENSSL_LDFLAGS;" \ 15493 "OPENSSL_LIBS=$OPENSSL_LIBS; OPENSSL_INCLUDES=$OPENSSL_INCLUDES" >&5 15494 15495 save_LIBS="$LIBS" 15496 save_LDFLAGS="$LDFLAGS" 15497 save_CPPFLAGS="$CPPFLAGS" 15498 LDFLAGS="$LDFLAGS $OPENSSL_LDFLAGS" 15499 LIBS="$OPENSSL_LIBS $LIBS" 15500 CPPFLAGS="$OPENSSL_INCLUDES $CPPFLAGS" 15501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15502/* end confdefs.h. */ 15503#include <openssl/ssl.h> 15504int 15505main () 15506{ 15507SSL_new(NULL) 15508 ; 15509 return 0; 15510} 15511_ACEOF 15512if ac_fn_c_try_link "$LINENO"; then : 15513 15514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15515$as_echo "yes" >&6; } 15516 15517$as_echo "@%:@define HAVE_OPENSSL 1" >>confdefs.h 15518 15519 CFLAGS="$CFLAGS $OPENSSL_INCLUDES" 15520 have_openssl=yes 15521 15522else 15523 15524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15525$as_echo "no" >&6; } 15526 15527 15528fi 15529rm -f core conftest.err conftest.$ac_objext \ 15530 conftest$ac_exeext conftest.$ac_ext 15531 CPPFLAGS="$save_CPPFLAGS" 15532 LDFLAGS="$save_LDFLAGS" 15533 LIBS="$save_LIBS" 15534 15535 15536 15537 15538 15539 15540if test "x$have_openssl" = xyes; then 15541 save_LIBS="$LIBS" 15542 save_LDFLAGS="$LDFLAGS" 15543 LDFLAGS="$LDFLAGS $OPENSSL_LDFLAGS" 15544 LIBS="$LIBS $OPENSSL_LIBS" 15545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X509_VERIFY_PARAM_set1_host" >&5 15546$as_echo_n "checking for X509_VERIFY_PARAM_set1_host... " >&6; } 15547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15548/* end confdefs.h. */ 15549 15550 15551 #include <openssl/bio.h> 15552 #include <openssl/ssl.h> 15553 #include <openssl/err.h> 15554 #include <openssl/x509v3.h> 15555int 15556main () 15557{ 15558 15559 X509_VERIFY_PARAM *p = X509_VERIFY_PARAM_new(); 15560 X509_VERIFY_PARAM_set_hostflags(p, X509_CHECK_FLAG_NO_PARTIAL_WILDCARDS); 15561 X509_VERIFY_PARAM_set1_host(p, "localhost", 0); 15562 15563 ; 15564 return 0; 15565} 15566 15567_ACEOF 15568if ac_fn_c_try_link "$LINENO"; then : 15569 15570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15571$as_echo "yes" >&6; } 15572 15573cat >>confdefs.h <<_ACEOF 15574@%:@define HAVE_X509_VERIFY_PARAM_SET1_HOST 1 15575_ACEOF 15576 15577 15578else 15579 15580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15581$as_echo "no" >&6; } 15582 15583fi 15584rm -f core conftest.err conftest.$ac_objext \ 15585 conftest$ac_exeext conftest.$ac_ext 15586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ASN1_STRING_get0_data" >&5 15587$as_echo_n "checking for ASN1_STRING_get0_data... " >&6; } 15588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15589/* end confdefs.h. */ 15590 15591 15592 #include <openssl/bio.h> 15593 #include <openssl/ssl.h> 15594 #include <openssl/err.h> 15595 #include <openssl/x509v3.h> 15596int 15597main () 15598{ 15599 15600 ASN1_STRING_get0_data(NULL); 15601 15602 ; 15603 return 0; 15604} 15605 15606_ACEOF 15607if ac_fn_c_try_link "$LINENO"; then : 15608 15609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15610$as_echo "yes" >&6; } 15611 15612cat >>confdefs.h <<_ACEOF 15613@%:@define HAVE_ASN1_STRING_GET0_DATA 1 15614_ACEOF 15615 15616 15617else 15618 15619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15620$as_echo "no" >&6; } 15621 15622fi 15623rm -f core conftest.err conftest.$ac_objext \ 15624 conftest$ac_exeext conftest.$ac_ext 15625 LDFLAGS="$save_LDFLAGS" 15626 LIBS="$save_LIBS" 15627fi 15628 15629 15630 15631 15632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_clz" >&5 15633$as_echo_n "checking for __builtin_clz... " >&6; } 15634if ${ax_cv_have___builtin_clz+:} false; then : 15635 $as_echo_n "(cached) " >&6 15636else 15637 15638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15639/* end confdefs.h. */ 15640 15641int 15642main () 15643{ 15644 15645 __builtin_clz(0) 15646 15647 ; 15648 return 0; 15649} 15650_ACEOF 15651if ac_fn_c_try_link "$LINENO"; then : 15652 ax_cv_have___builtin_clz=yes 15653else 15654 ax_cv_have___builtin_clz=no 15655fi 15656rm -f core conftest.err conftest.$ac_objext \ 15657 conftest$ac_exeext conftest.$ac_ext 15658 15659fi 15660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have___builtin_clz" >&5 15661$as_echo "$ax_cv_have___builtin_clz" >&6; } 15662 15663 if test yes = $ax_cv_have___builtin_clz; then : 15664 15665cat >>confdefs.h <<_ACEOF 15666@%:@define HAVE___BUILTIN_CLZ 1 15667_ACEOF 15668 15669fi 15670 15671 15672 15673 15674# No thread support 15675@%:@ Check whether --enable-threads was given. 15676if test "${enable_threads+set}" = set; then : 15677 enableval=$enable_threads; 15678fi 15679 15680 15681if test "x$enable_threads" != xno; then 15682 15683 15684 15685 15686ac_ext=c 15687ac_cpp='$CPP $CPPFLAGS' 15688ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15689ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15690ac_compiler_gnu=$ac_cv_c_compiler_gnu 15691 15692ax_pthread_ok=no 15693 15694# We used to check for pthread.h first, but this fails if pthread.h 15695# requires special compiler flags (e.g. on Tru64 or Sequent). 15696# It gets checked for in the link test anyway. 15697 15698# First of all, check if the user has set any of the PTHREAD_LIBS, 15699# etcetera environment variables, and if threads linking works using 15700# them: 15701if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then 15702 ax_pthread_save_CC="$CC" 15703 ax_pthread_save_CFLAGS="$CFLAGS" 15704 ax_pthread_save_LIBS="$LIBS" 15705 if test "x$PTHREAD_CC" != "x"; then : 15706 CC="$PTHREAD_CC" 15707fi 15708 if test "x$PTHREAD_CXX" != "x"; then : 15709 CXX="$PTHREAD_CXX" 15710fi 15711 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 15712 LIBS="$PTHREAD_LIBS $LIBS" 15713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5 15714$as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; } 15715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15716/* end confdefs.h. */ 15717 15718/* Override any GCC internal prototype to avoid an error. 15719 Use char because int might match the return type of a GCC 15720 builtin and then its argument prototype would still apply. */ 15721#ifdef __cplusplus 15722extern "C" 15723#endif 15724char pthread_join (); 15725int 15726main () 15727{ 15728return pthread_join (); 15729 ; 15730 return 0; 15731} 15732_ACEOF 15733if ac_fn_c_try_link "$LINENO"; then : 15734 ax_pthread_ok=yes 15735fi 15736rm -f core conftest.err conftest.$ac_objext \ 15737 conftest$ac_exeext conftest.$ac_ext 15738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 15739$as_echo "$ax_pthread_ok" >&6; } 15740 if test "x$ax_pthread_ok" = "xno"; then 15741 PTHREAD_LIBS="" 15742 PTHREAD_CFLAGS="" 15743 fi 15744 CC="$ax_pthread_save_CC" 15745 CFLAGS="$ax_pthread_save_CFLAGS" 15746 LIBS="$ax_pthread_save_LIBS" 15747fi 15748 15749# We must check for the threads library under a number of different 15750# names; the ordering is very important because some systems 15751# (e.g. DEC) have both -lpthread and -lpthreads, where one of the 15752# libraries is broken (non-POSIX). 15753 15754# Create a list of thread flags to try. Items with a "," contain both 15755# C compiler flags (before ",") and linker flags (after ","). Other items 15756# starting with a "-" are C compiler flags, and remaining items are 15757# library names, except for "none" which indicates that we try without 15758# any flags at all, and "pthread-config" which is a program returning 15759# the flags for the Pth emulation library. 15760 15761ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config" 15762 15763# The ordering *is* (sometimes) important. Some notes on the 15764# individual items follow: 15765 15766# pthreads: AIX (must check this before -lpthread) 15767# none: in case threads are in libc; should be tried before -Kthread and 15768# other compiler flags to prevent continual compiler warnings 15769# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) 15770# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64 15771# (Note: HP C rejects this with "bad form for `-t' option") 15772# -pthreads: Solaris/gcc (Note: HP C also rejects) 15773# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it 15774# doesn't hurt to check since this sometimes defines pthreads and 15775# -D_REENTRANT too), HP C (must be checked before -lpthread, which 15776# is present but should not be used directly; and before -mthreads, 15777# because the compiler interprets this as "-mt" + "-hreads") 15778# -mthreads: Mingw32/gcc, Lynx/gcc 15779# pthread: Linux, etcetera 15780# --thread-safe: KAI C++ 15781# pthread-config: use pthread-config program (for GNU Pth library) 15782 15783case $host_os in 15784 15785 freebsd*) 15786 15787 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) 15788 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread) 15789 15790 ax_pthread_flags="-kthread lthread $ax_pthread_flags" 15791 ;; 15792 15793 hpux*) 15794 15795 # From the cc(1) man page: "[-mt] Sets various -D flags to enable 15796 # multi-threading and also sets -lpthread." 15797 15798 ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags" 15799 ;; 15800 15801 openedition*) 15802 15803 # IBM z/OS requires a feature-test macro to be defined in order to 15804 # enable POSIX threads at all, so give the user a hint if this is 15805 # not set. (We don't define these ourselves, as they can affect 15806 # other portions of the system API in unpredictable ways.) 15807 15808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15809/* end confdefs.h. */ 15810 15811# if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS) 15812 AX_PTHREAD_ZOS_MISSING 15813# endif 15814 15815_ACEOF 15816if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 15817 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1; then : 15818 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5 15819$as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;} 15820fi 15821rm -f conftest* 15822 15823 ;; 15824 15825 solaris*) 15826 15827 # On Solaris (at least, for some versions), libc contains stubbed 15828 # (non-functional) versions of the pthreads routines, so link-based 15829 # tests will erroneously succeed. (N.B.: The stubs are missing 15830 # pthread_cleanup_push, or rather a function called by this macro, 15831 # so we could check for that, but who knows whether they'll stub 15832 # that too in a future libc.) So we'll check first for the 15833 # standard Solaris way of linking pthreads (-mt -lpthread). 15834 15835 ax_pthread_flags="-mt,-lpthread pthread $ax_pthread_flags" 15836 ;; 15837esac 15838 15839# Are we compiling with Clang? 15840 15841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5 15842$as_echo_n "checking whether $CC is Clang... " >&6; } 15843if ${ax_cv_PTHREAD_CLANG+:} false; then : 15844 $as_echo_n "(cached) " >&6 15845else 15846 ax_cv_PTHREAD_CLANG=no 15847 # Note that Autoconf sets GCC=yes for Clang as well as GCC 15848 if test "x$GCC" = "xyes"; then 15849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15850/* end confdefs.h. */ 15851/* Note: Clang 2.7 lacks __clang_[a-z]+__ */ 15852# if defined(__clang__) && defined(__llvm__) 15853 AX_PTHREAD_CC_IS_CLANG 15854# endif 15855 15856_ACEOF 15857if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 15858 $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1; then : 15859 ax_cv_PTHREAD_CLANG=yes 15860fi 15861rm -f conftest* 15862 15863 fi 15864 15865fi 15866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5 15867$as_echo "$ax_cv_PTHREAD_CLANG" >&6; } 15868ax_pthread_clang="$ax_cv_PTHREAD_CLANG" 15869 15870 15871# GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC) 15872 15873# Note that for GCC and Clang -pthread generally implies -lpthread, 15874# except when -nostdlib is passed. 15875# This is problematic using libtool to build C++ shared libraries with pthread: 15876# [1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=25460 15877# [2] https://bugzilla.redhat.com/show_bug.cgi?id=661333 15878# [3] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=468555 15879# To solve this, first try -pthread together with -lpthread for GCC 15880 15881if test "x$GCC" = "xyes"; then : 15882 ax_pthread_flags="-pthread,-lpthread -pthread -pthreads $ax_pthread_flags" 15883fi 15884 15885# Clang takes -pthread (never supported any other flag), but we'll try with -lpthread first 15886 15887if test "x$ax_pthread_clang" = "xyes"; then : 15888 ax_pthread_flags="-pthread,-lpthread -pthread" 15889fi 15890 15891 15892# The presence of a feature test macro requesting re-entrant function 15893# definitions is, on some systems, a strong hint that pthreads support is 15894# correctly enabled 15895 15896case $host_os in 15897 darwin* | hpux* | linux* | osf* | solaris*) 15898 ax_pthread_check_macro="_REENTRANT" 15899 ;; 15900 15901 aix*) 15902 ax_pthread_check_macro="_THREAD_SAFE" 15903 ;; 15904 15905 *) 15906 ax_pthread_check_macro="--" 15907 ;; 15908esac 15909if test "x$ax_pthread_check_macro" = "x--"; then : 15910 ax_pthread_check_cond=0 15911else 15912 ax_pthread_check_cond="!defined($ax_pthread_check_macro)" 15913fi 15914 15915 15916if test "x$ax_pthread_ok" = "xno"; then 15917for ax_pthread_try_flag in $ax_pthread_flags; do 15918 15919 case $ax_pthread_try_flag in 15920 none) 15921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5 15922$as_echo_n "checking whether pthreads work without any flags... " >&6; } 15923 ;; 15924 15925 *,*) 15926 PTHREAD_CFLAGS=`echo $ax_pthread_try_flag | sed "s/^\(.*\),\(.*\)$/\1/"` 15927 PTHREAD_LIBS=`echo $ax_pthread_try_flag | sed "s/^\(.*\),\(.*\)$/\2/"` 15928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with \"$PTHREAD_CFLAGS\" and \"$PTHREAD_LIBS\"" >&5 15929$as_echo_n "checking whether pthreads work with \"$PTHREAD_CFLAGS\" and \"$PTHREAD_LIBS\"... " >&6; } 15930 ;; 15931 15932 -*) 15933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5 15934$as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; } 15935 PTHREAD_CFLAGS="$ax_pthread_try_flag" 15936 ;; 15937 15938 pthread-config) 15939 # Extract the first word of "pthread-config", so it can be a program name with args. 15940set dummy pthread-config; ac_word=$2 15941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15942$as_echo_n "checking for $ac_word... " >&6; } 15943if ${ac_cv_prog_ax_pthread_config+:} false; then : 15944 $as_echo_n "(cached) " >&6 15945else 15946 if test -n "$ax_pthread_config"; then 15947 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test. 15948else 15949as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15950for as_dir in $PATH 15951do 15952 IFS=$as_save_IFS 15953 test -z "$as_dir" && as_dir=. 15954 for ac_exec_ext in '' $ac_executable_extensions; do 15955 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15956 ac_cv_prog_ax_pthread_config="yes" 15957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15958 break 2 15959 fi 15960done 15961 done 15962IFS=$as_save_IFS 15963 15964 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no" 15965fi 15966fi 15967ax_pthread_config=$ac_cv_prog_ax_pthread_config 15968if test -n "$ax_pthread_config"; then 15969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5 15970$as_echo "$ax_pthread_config" >&6; } 15971else 15972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15973$as_echo "no" >&6; } 15974fi 15975 15976 15977 if test "x$ax_pthread_config" = "xno"; then : 15978 continue 15979fi 15980 PTHREAD_CFLAGS="`pthread-config --cflags`" 15981 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" 15982 ;; 15983 15984 *) 15985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5 15986$as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; } 15987 PTHREAD_LIBS="-l$ax_pthread_try_flag" 15988 ;; 15989 esac 15990 15991 ax_pthread_save_CFLAGS="$CFLAGS" 15992 ax_pthread_save_LIBS="$LIBS" 15993 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 15994 LIBS="$PTHREAD_LIBS $LIBS" 15995 15996 # Check for various functions. We must include pthread.h, 15997 # since some functions may be macros. (On the Sequent, we 15998 # need a special flag -Kthread to make this header compile.) 15999 # We check for pthread_join because it is in -lpthread on IRIX 16000 # while pthread_create is in libc. We check for pthread_attr_init 16001 # due to DEC craziness with -lpthreads. We check for 16002 # pthread_cleanup_push because it is one of the few pthread 16003 # functions on Solaris that doesn't have a non-functional libc stub. 16004 # We try pthread_create on general principles. 16005 16006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16007/* end confdefs.h. */ 16008#include <pthread.h> 16009# if $ax_pthread_check_cond 16010# error "$ax_pthread_check_macro must be defined" 16011# endif 16012 static void *some_global = NULL; 16013 static void routine(void *a) 16014 { 16015 /* To avoid any unused-parameter or 16016 unused-but-set-parameter warning. */ 16017 some_global = a; 16018 } 16019 static void *start_routine(void *a) { return a; } 16020int 16021main () 16022{ 16023pthread_t th; pthread_attr_t attr; 16024 pthread_create(&th, 0, start_routine, 0); 16025 pthread_join(th, 0); 16026 pthread_attr_init(&attr); 16027 pthread_cleanup_push(routine, 0); 16028 pthread_cleanup_pop(0) /* ; */ 16029 ; 16030 return 0; 16031} 16032_ACEOF 16033if ac_fn_c_try_link "$LINENO"; then : 16034 ax_pthread_ok=yes 16035fi 16036rm -f core conftest.err conftest.$ac_objext \ 16037 conftest$ac_exeext conftest.$ac_ext 16038 16039 CFLAGS="$ax_pthread_save_CFLAGS" 16040 LIBS="$ax_pthread_save_LIBS" 16041 16042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 16043$as_echo "$ax_pthread_ok" >&6; } 16044 if test "x$ax_pthread_ok" = "xyes"; then : 16045 break 16046fi 16047 16048 PTHREAD_LIBS="" 16049 PTHREAD_CFLAGS="" 16050done 16051fi 16052 16053 16054# Clang needs special handling, because older versions handle the -pthread 16055# option in a rather... idiosyncratic way 16056 16057if test "x$ax_pthread_clang" = "xyes"; then 16058 16059 # Clang takes -pthread; it has never supported any other flag 16060 16061 # (Note 1: This will need to be revisited if a system that Clang 16062 # supports has POSIX threads in a separate library. This tends not 16063 # to be the way of modern systems, but it's conceivable.) 16064 16065 # (Note 2: On some systems, notably Darwin, -pthread is not needed 16066 # to get POSIX threads support; the API is always present and 16067 # active. We could reasonably leave PTHREAD_CFLAGS empty. But 16068 # -pthread does define _REENTRANT, and while the Darwin headers 16069 # ignore this macro, third-party headers might not.) 16070 16071 # However, older versions of Clang make a point of warning the user 16072 # that, in an invocation where only linking and no compilation is 16073 # taking place, the -pthread option has no effect ("argument unused 16074 # during compilation"). They expect -pthread to be passed in only 16075 # when source code is being compiled. 16076 # 16077 # Problem is, this is at odds with the way Automake and most other 16078 # C build frameworks function, which is that the same flags used in 16079 # compilation (CFLAGS) are also used in linking. Many systems 16080 # supported by AX_PTHREAD require exactly this for POSIX threads 16081 # support, and in fact it is often not straightforward to specify a 16082 # flag that is used only in the compilation phase and not in 16083 # linking. Such a scenario is extremely rare in practice. 16084 # 16085 # Even though use of the -pthread flag in linking would only print 16086 # a warning, this can be a nuisance for well-run software projects 16087 # that build with -Werror. So if the active version of Clang has 16088 # this misfeature, we search for an option to squash it. 16089 16090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5 16091$as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; } 16092if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false; then : 16093 $as_echo_n "(cached) " >&6 16094else 16095 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown 16096 # Create an alternate version of $ac_link that compiles and 16097 # links in two steps (.c -> .o, .o -> exe) instead of one 16098 # (.c -> exe), because the warning occurs only in the second 16099 # step 16100 ax_pthread_save_ac_link="$ac_link" 16101 ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g' 16102 ax_pthread_link_step=`$as_echo "$ac_link" | sed "$ax_pthread_sed"` 16103 ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)" 16104 ax_pthread_save_CFLAGS="$CFLAGS" 16105 for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do 16106 if test "x$ax_pthread_try" = "xunknown"; then : 16107 break 16108fi 16109 CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS" 16110 ac_link="$ax_pthread_save_ac_link" 16111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16112/* end confdefs.h. */ 16113int main(void){return 0;} 16114_ACEOF 16115if ac_fn_c_try_link "$LINENO"; then : 16116 ac_link="$ax_pthread_2step_ac_link" 16117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16118/* end confdefs.h. */ 16119int main(void){return 0;} 16120_ACEOF 16121if ac_fn_c_try_link "$LINENO"; then : 16122 break 16123fi 16124rm -f core conftest.err conftest.$ac_objext \ 16125 conftest$ac_exeext conftest.$ac_ext 16126 16127fi 16128rm -f core conftest.err conftest.$ac_objext \ 16129 conftest$ac_exeext conftest.$ac_ext 16130 done 16131 ac_link="$ax_pthread_save_ac_link" 16132 CFLAGS="$ax_pthread_save_CFLAGS" 16133 if test "x$ax_pthread_try" = "x"; then : 16134 ax_pthread_try=no 16135fi 16136 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try" 16137 16138fi 16139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5 16140$as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; } 16141 16142 case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in 16143 no | unknown) ;; 16144 *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;; 16145 esac 16146 16147fi # $ax_pthread_clang = yes 16148 16149 16150 16151# Various other checks: 16152if test "x$ax_pthread_ok" = "xyes"; then 16153 ax_pthread_save_CFLAGS="$CFLAGS" 16154 ax_pthread_save_LIBS="$LIBS" 16155 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 16156 LIBS="$PTHREAD_LIBS $LIBS" 16157 16158 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED. 16159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5 16160$as_echo_n "checking for joinable pthread attribute... " >&6; } 16161if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false; then : 16162 $as_echo_n "(cached) " >&6 16163else 16164 ax_cv_PTHREAD_JOINABLE_ATTR=unknown 16165 for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do 16166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16167/* end confdefs.h. */ 16168#include <pthread.h> 16169int 16170main () 16171{ 16172int attr = $ax_pthread_attr; return attr /* ; */ 16173 ; 16174 return 0; 16175} 16176_ACEOF 16177if ac_fn_c_try_link "$LINENO"; then : 16178 ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break 16179fi 16180rm -f core conftest.err conftest.$ac_objext \ 16181 conftest$ac_exeext conftest.$ac_ext 16182 done 16183 16184fi 16185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5 16186$as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; } 16187 if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \ 16188 test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \ 16189 test "x$ax_pthread_joinable_attr_defined" != "xyes"; then : 16190 16191cat >>confdefs.h <<_ACEOF 16192@%:@define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR 16193_ACEOF 16194 16195 ax_pthread_joinable_attr_defined=yes 16196 16197fi 16198 16199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5 16200$as_echo_n "checking whether more special flags are required for pthreads... " >&6; } 16201if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false; then : 16202 $as_echo_n "(cached) " >&6 16203else 16204 ax_cv_PTHREAD_SPECIAL_FLAGS=no 16205 case $host_os in 16206 solaris*) 16207 ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS" 16208 ;; 16209 esac 16210 16211fi 16212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5 16213$as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; } 16214 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \ 16215 test "x$ax_pthread_special_flags_added" != "xyes"; then : 16216 PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS" 16217 ax_pthread_special_flags_added=yes 16218fi 16219 16220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5 16221$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; } 16222if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then : 16223 $as_echo_n "(cached) " >&6 16224else 16225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16226/* end confdefs.h. */ 16227#include <pthread.h> 16228int 16229main () 16230{ 16231int i = PTHREAD_PRIO_INHERIT; 16232 return i; 16233 ; 16234 return 0; 16235} 16236_ACEOF 16237if ac_fn_c_try_link "$LINENO"; then : 16238 ax_cv_PTHREAD_PRIO_INHERIT=yes 16239else 16240 ax_cv_PTHREAD_PRIO_INHERIT=no 16241fi 16242rm -f core conftest.err conftest.$ac_objext \ 16243 conftest$ac_exeext conftest.$ac_ext 16244 16245fi 16246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5 16247$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; } 16248 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \ 16249 test "x$ax_pthread_prio_inherit_defined" != "xyes"; then : 16250 16251$as_echo "@%:@define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h 16252 16253 ax_pthread_prio_inherit_defined=yes 16254 16255fi 16256 16257 CFLAGS="$ax_pthread_save_CFLAGS" 16258 LIBS="$ax_pthread_save_LIBS" 16259 16260 # More AIX lossage: compile with *_r variant 16261 if test "x$GCC" != "xyes"; then 16262 case $host_os in 16263 aix*) 16264 case "x/$CC" in @%:@( 16265 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) : 16266 #handle absolute path differently from PATH based program lookup 16267 case "x$CC" in @%:@( 16268 x/*) : 16269 16270 if as_fn_executable_p ${CC}_r; then : 16271 PTHREAD_CC="${CC}_r" 16272fi 16273 if test "x${CXX}" != "x"; then : 16274 if as_fn_executable_p ${CXX}_r; then : 16275 PTHREAD_CXX="${CXX}_r" 16276fi 16277fi 16278 ;; @%:@( 16279 *) : 16280 16281 for ac_prog in ${CC}_r 16282do 16283 # Extract the first word of "$ac_prog", so it can be a program name with args. 16284set dummy $ac_prog; ac_word=$2 16285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16286$as_echo_n "checking for $ac_word... " >&6; } 16287if ${ac_cv_prog_PTHREAD_CC+:} false; then : 16288 $as_echo_n "(cached) " >&6 16289else 16290 if test -n "$PTHREAD_CC"; then 16291 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test. 16292else 16293as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16294for as_dir in $PATH 16295do 16296 IFS=$as_save_IFS 16297 test -z "$as_dir" && as_dir=. 16298 for ac_exec_ext in '' $ac_executable_extensions; do 16299 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16300 ac_cv_prog_PTHREAD_CC="$ac_prog" 16301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16302 break 2 16303 fi 16304done 16305 done 16306IFS=$as_save_IFS 16307 16308fi 16309fi 16310PTHREAD_CC=$ac_cv_prog_PTHREAD_CC 16311if test -n "$PTHREAD_CC"; then 16312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5 16313$as_echo "$PTHREAD_CC" >&6; } 16314else 16315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16316$as_echo "no" >&6; } 16317fi 16318 16319 16320 test -n "$PTHREAD_CC" && break 16321done 16322test -n "$PTHREAD_CC" || PTHREAD_CC="$CC" 16323 16324 if test "x${CXX}" != "x"; then : 16325 for ac_prog in ${CXX}_r 16326do 16327 # Extract the first word of "$ac_prog", so it can be a program name with args. 16328set dummy $ac_prog; ac_word=$2 16329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16330$as_echo_n "checking for $ac_word... " >&6; } 16331if ${ac_cv_prog_PTHREAD_CXX+:} false; then : 16332 $as_echo_n "(cached) " >&6 16333else 16334 if test -n "$PTHREAD_CXX"; then 16335 ac_cv_prog_PTHREAD_CXX="$PTHREAD_CXX" # Let the user override the test. 16336else 16337as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16338for as_dir in $PATH 16339do 16340 IFS=$as_save_IFS 16341 test -z "$as_dir" && as_dir=. 16342 for ac_exec_ext in '' $ac_executable_extensions; do 16343 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16344 ac_cv_prog_PTHREAD_CXX="$ac_prog" 16345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16346 break 2 16347 fi 16348done 16349 done 16350IFS=$as_save_IFS 16351 16352fi 16353fi 16354PTHREAD_CXX=$ac_cv_prog_PTHREAD_CXX 16355if test -n "$PTHREAD_CXX"; then 16356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CXX" >&5 16357$as_echo "$PTHREAD_CXX" >&6; } 16358else 16359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16360$as_echo "no" >&6; } 16361fi 16362 16363 16364 test -n "$PTHREAD_CXX" && break 16365done 16366test -n "$PTHREAD_CXX" || PTHREAD_CXX="$CXX" 16367 16368fi 16369 16370 ;; 16371esac 16372 ;; @%:@( 16373 *) : 16374 ;; 16375esac 16376 ;; 16377 esac 16378 fi 16379fi 16380 16381test -n "$PTHREAD_CC" || PTHREAD_CC="$CC" 16382test -n "$PTHREAD_CXX" || PTHREAD_CXX="$CXX" 16383 16384 16385 16386 16387 16388 16389# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: 16390if test "x$ax_pthread_ok" = "xyes"; then 16391 16392$as_echo "@%:@define HAVE_PTHREAD 1" >>confdefs.h 16393 16394 : 16395else 16396 ax_pthread_ok=no 16397 16398fi 16399ac_ext=c 16400ac_cpp='$CPP $CPPFLAGS' 16401ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16402ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16403ac_compiler_gnu=$ac_cv_c_compiler_gnu 16404 16405 16406fi 16407 16408ac_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" 16409 16410 16411if test "x$with_sc_hoiho" != xno; then 16412 ac_config_files="$ac_config_files utils/sc_hoiho/Makefile" 16413 16414fi 16415 16416ac_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" 16417 16418 16419if test "x$with_sc_uptime" != xno; then 16420 ac_config_files="$ac_config_files utils/sc_uptime/Makefile" 16421 16422fi 16423 16424ac_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" 16425 16426 16427cat >confcache <<\_ACEOF 16428# This file is a shell script that caches the results of configure 16429# tests run on this system so they can be shared between configure 16430# scripts and configure runs, see configure's option --config-cache. 16431# It is not useful on other systems. If it contains results you don't 16432# want to keep, you may remove or edit it. 16433# 16434# config.status only pays attention to the cache file if you give it 16435# the --recheck option to rerun configure. 16436# 16437# `ac_cv_env_foo' variables (set or unset) will be overridden when 16438# loading this file, other *unset* `ac_cv_foo' will be assigned the 16439# following values. 16440 16441_ACEOF 16442 16443# The following way of writing the cache mishandles newlines in values, 16444# but we know of no workaround that is simple, portable, and efficient. 16445# So, we kill variables containing newlines. 16446# Ultrix sh set writes to stderr and can't be redirected directly, 16447# and sets the high bit in the cache file unless we assign to the vars. 16448( 16449 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 16450 eval ac_val=\$$ac_var 16451 case $ac_val in #( 16452 *${as_nl}*) 16453 case $ac_var in #( 16454 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 16455$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 16456 esac 16457 case $ac_var in #( 16458 _ | IFS | as_nl) ;; #( 16459 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 16460 *) { eval $ac_var=; unset $ac_var;} ;; 16461 esac ;; 16462 esac 16463 done 16464 16465 (set) 2>&1 | 16466 case $as_nl`(ac_space=' '; set) 2>&1` in #( 16467 *${as_nl}ac_space=\ *) 16468 # `set' does not quote correctly, so add quotes: double-quote 16469 # substitution turns \\\\ into \\, and sed turns \\ into \. 16470 sed -n \ 16471 "s/'/'\\\\''/g; 16472 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 16473 ;; #( 16474 *) 16475 # `set' quotes correctly as required by POSIX, so do not add quotes. 16476 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 16477 ;; 16478 esac | 16479 sort 16480) | 16481 sed ' 16482 /^ac_cv_env_/b end 16483 t clear 16484 :clear 16485 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 16486 t end 16487 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 16488 :end' >>confcache 16489if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 16490 if test -w "$cache_file"; then 16491 if test "x$cache_file" != "x/dev/null"; then 16492 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 16493$as_echo "$as_me: updating cache $cache_file" >&6;} 16494 if test ! -f "$cache_file" || test -h "$cache_file"; then 16495 cat confcache >"$cache_file" 16496 else 16497 case $cache_file in #( 16498 */* | ?:*) 16499 mv -f confcache "$cache_file"$$ && 16500 mv -f "$cache_file"$$ "$cache_file" ;; #( 16501 *) 16502 mv -f confcache "$cache_file" ;; 16503 esac 16504 fi 16505 fi 16506 else 16507 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 16508$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 16509 fi 16510fi 16511rm -f confcache 16512 16513test "x$prefix" = xNONE && prefix=$ac_default_prefix 16514# Let make expand exec_prefix. 16515test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 16516 16517DEFS=-DHAVE_CONFIG_H 16518 16519ac_libobjs= 16520ac_ltlibobjs= 16521U= 16522for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue 16523 # 1. Remove the extension, and $U if already installed. 16524 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 16525 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 16526 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 16527 # will be set to the directory where LIBOBJS objects are built. 16528 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 16529 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 16530done 16531LIB@&t@OBJS=$ac_libobjs 16532 16533LTLIBOBJS=$ac_ltlibobjs 16534 16535 16536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 16537$as_echo_n "checking that generated files are newer than configure... " >&6; } 16538 if test -n "$am_sleep_pid"; then 16539 # Hide warnings about reused PIDs. 16540 wait $am_sleep_pid 2>/dev/null 16541 fi 16542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 16543$as_echo "done" >&6; } 16544 if test -n "$EXEEXT"; then 16545 am__EXEEXT_TRUE= 16546 am__EXEEXT_FALSE='#' 16547else 16548 am__EXEEXT_TRUE='#' 16549 am__EXEEXT_FALSE= 16550fi 16551 16552if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 16553 as_fn_error $? "conditional \"AMDEP\" 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 "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 16561 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 16562Usually this means the macro was only invoked conditionally." "$LINENO" 5 16563fi 16564if test -z "${WITH_SC_HOIHO_TRUE}" && test -z "${WITH_SC_HOIHO_FALSE}"; then 16565 as_fn_error $? "conditional \"WITH_SC_HOIHO\" was never defined. 16566Usually this means the macro was only invoked conditionally." "$LINENO" 5 16567fi 16568if test -z "${WITH_SC_UPTIME_TRUE}" && test -z "${WITH_SC_UPTIME_FALSE}"; then 16569 as_fn_error $? "conditional \"WITH_SC_UPTIME\" was never defined. 16570Usually this means the macro was only invoked conditionally." "$LINENO" 5 16571fi 16572 16573: "${CONFIG_STATUS=./config.status}" 16574ac_write_fail=0 16575ac_clean_files_save=$ac_clean_files 16576ac_clean_files="$ac_clean_files $CONFIG_STATUS" 16577{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 16578$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 16579as_write_fail=0 16580cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 16581#! $SHELL 16582# Generated by $as_me. 16583# Run this file to recreate the current configuration. 16584# Compiler output produced by configure, useful for debugging 16585# configure, is in config.log if it exists. 16586 16587debug=false 16588ac_cs_recheck=false 16589ac_cs_silent=false 16590 16591SHELL=\${CONFIG_SHELL-$SHELL} 16592export SHELL 16593_ASEOF 16594cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 16595## -------------------- ## 16596## M4sh Initialization. ## 16597## -------------------- ## 16598 16599# Be more Bourne compatible 16600DUALCASE=1; export DUALCASE # for MKS sh 16601if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 16602 emulate sh 16603 NULLCMD=: 16604 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 16605 # is contrary to our usage. Disable this feature. 16606 alias -g '${1+"$@"}'='"$@"' 16607 setopt NO_GLOB_SUBST 16608else 16609 case `(set -o) 2>/dev/null` in @%:@( 16610 *posix*) : 16611 set -o posix ;; @%:@( 16612 *) : 16613 ;; 16614esac 16615fi 16616 16617 16618as_nl=' 16619' 16620export as_nl 16621# Printing a long string crashes Solaris 7 /usr/bin/printf. 16622as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 16623as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 16624as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 16625# Prefer a ksh shell builtin over an external printf program on Solaris, 16626# but without wasting forks for bash or zsh. 16627if test -z "$BASH_VERSION$ZSH_VERSION" \ 16628 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 16629 as_echo='print -r --' 16630 as_echo_n='print -rn --' 16631elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 16632 as_echo='printf %s\n' 16633 as_echo_n='printf %s' 16634else 16635 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 16636 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 16637 as_echo_n='/usr/ucb/echo -n' 16638 else 16639 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 16640 as_echo_n_body='eval 16641 arg=$1; 16642 case $arg in @%:@( 16643 *"$as_nl"*) 16644 expr "X$arg" : "X\\(.*\\)$as_nl"; 16645 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 16646 esac; 16647 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 16648 ' 16649 export as_echo_n_body 16650 as_echo_n='sh -c $as_echo_n_body as_echo' 16651 fi 16652 export as_echo_body 16653 as_echo='sh -c $as_echo_body as_echo' 16654fi 16655 16656# The user is always right. 16657if test "${PATH_SEPARATOR+set}" != set; then 16658 PATH_SEPARATOR=: 16659 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 16660 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 16661 PATH_SEPARATOR=';' 16662 } 16663fi 16664 16665 16666# IFS 16667# We need space, tab and new line, in precisely that order. Quoting is 16668# there to prevent editors from complaining about space-tab. 16669# (If _AS_PATH_WALK were called with IFS unset, it would disable word 16670# splitting by setting IFS to empty value.) 16671IFS=" "" $as_nl" 16672 16673# Find who we are. Look in the path if we contain no directory separator. 16674as_myself= 16675case $0 in @%:@(( 16676 *[\\/]* ) as_myself=$0 ;; 16677 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16678for as_dir in $PATH 16679do 16680 IFS=$as_save_IFS 16681 test -z "$as_dir" && as_dir=. 16682 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 16683 done 16684IFS=$as_save_IFS 16685 16686 ;; 16687esac 16688# We did not find ourselves, most probably we were run as `sh COMMAND' 16689# in which case we are not to be found in the path. 16690if test "x$as_myself" = x; then 16691 as_myself=$0 16692fi 16693if test ! -f "$as_myself"; then 16694 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 16695 exit 1 16696fi 16697 16698# Unset variables that we do not need and which cause bugs (e.g. in 16699# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 16700# suppresses any "Segmentation fault" message there. '((' could 16701# trigger a bug in pdksh 5.2.14. 16702for as_var in BASH_ENV ENV MAIL MAILPATH 16703do eval test x\${$as_var+set} = xset \ 16704 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 16705done 16706PS1='$ ' 16707PS2='> ' 16708PS4='+ ' 16709 16710# NLS nuisances. 16711LC_ALL=C 16712export LC_ALL 16713LANGUAGE=C 16714export LANGUAGE 16715 16716# CDPATH. 16717(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 16718 16719 16720@%:@ as_fn_error STATUS ERROR [LINENO LOG_FD] 16721@%:@ ---------------------------------------- 16722@%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are 16723@%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the 16724@%:@ script with STATUS, using 1 if that was 0. 16725as_fn_error () 16726{ 16727 as_status=$1; test $as_status -eq 0 && as_status=1 16728 if test "$4"; then 16729 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 16730 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 16731 fi 16732 $as_echo "$as_me: error: $2" >&2 16733 as_fn_exit $as_status 16734} @%:@ as_fn_error 16735 16736 16737@%:@ as_fn_set_status STATUS 16738@%:@ ----------------------- 16739@%:@ Set @S|@? to STATUS, without forking. 16740as_fn_set_status () 16741{ 16742 return $1 16743} @%:@ as_fn_set_status 16744 16745@%:@ as_fn_exit STATUS 16746@%:@ ----------------- 16747@%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 16748as_fn_exit () 16749{ 16750 set +e 16751 as_fn_set_status $1 16752 exit $1 16753} @%:@ as_fn_exit 16754 16755@%:@ as_fn_unset VAR 16756@%:@ --------------- 16757@%:@ Portably unset VAR. 16758as_fn_unset () 16759{ 16760 { eval $1=; unset $1;} 16761} 16762as_unset=as_fn_unset 16763@%:@ as_fn_append VAR VALUE 16764@%:@ ---------------------- 16765@%:@ Append the text in VALUE to the end of the definition contained in VAR. Take 16766@%:@ advantage of any shell optimizations that allow amortized linear growth over 16767@%:@ repeated appends, instead of the typical quadratic growth present in naive 16768@%:@ implementations. 16769if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 16770 eval 'as_fn_append () 16771 { 16772 eval $1+=\$2 16773 }' 16774else 16775 as_fn_append () 16776 { 16777 eval $1=\$$1\$2 16778 } 16779fi # as_fn_append 16780 16781@%:@ as_fn_arith ARG... 16782@%:@ ------------------ 16783@%:@ Perform arithmetic evaluation on the ARGs, and store the result in the 16784@%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments 16785@%:@ must be portable across @S|@(()) and expr. 16786if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 16787 eval 'as_fn_arith () 16788 { 16789 as_val=$(( $* )) 16790 }' 16791else 16792 as_fn_arith () 16793 { 16794 as_val=`expr "$@" || test $? -eq 1` 16795 } 16796fi # as_fn_arith 16797 16798 16799if expr a : '\(a\)' >/dev/null 2>&1 && 16800 test "X`expr 00001 : '.*\(...\)'`" = X001; then 16801 as_expr=expr 16802else 16803 as_expr=false 16804fi 16805 16806if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 16807 as_basename=basename 16808else 16809 as_basename=false 16810fi 16811 16812if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 16813 as_dirname=dirname 16814else 16815 as_dirname=false 16816fi 16817 16818as_me=`$as_basename -- "$0" || 16819$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 16820 X"$0" : 'X\(//\)$' \| \ 16821 X"$0" : 'X\(/\)' \| . 2>/dev/null || 16822$as_echo X/"$0" | 16823 sed '/^.*\/\([^/][^/]*\)\/*$/{ 16824 s//\1/ 16825 q 16826 } 16827 /^X\/\(\/\/\)$/{ 16828 s//\1/ 16829 q 16830 } 16831 /^X\/\(\/\).*/{ 16832 s//\1/ 16833 q 16834 } 16835 s/.*/./; q'` 16836 16837# Avoid depending upon Character Ranges. 16838as_cr_letters='abcdefghijklmnopqrstuvwxyz' 16839as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 16840as_cr_Letters=$as_cr_letters$as_cr_LETTERS 16841as_cr_digits='0123456789' 16842as_cr_alnum=$as_cr_Letters$as_cr_digits 16843 16844ECHO_C= ECHO_N= ECHO_T= 16845case `echo -n x` in @%:@((((( 16846-n*) 16847 case `echo 'xy\c'` in 16848 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 16849 xy) ECHO_C='\c';; 16850 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 16851 ECHO_T=' ';; 16852 esac;; 16853*) 16854 ECHO_N='-n';; 16855esac 16856 16857rm -f conf$$ conf$$.exe conf$$.file 16858if test -d conf$$.dir; then 16859 rm -f conf$$.dir/conf$$.file 16860else 16861 rm -f conf$$.dir 16862 mkdir conf$$.dir 2>/dev/null 16863fi 16864if (echo >conf$$.file) 2>/dev/null; then 16865 if ln -s conf$$.file conf$$ 2>/dev/null; then 16866 as_ln_s='ln -s' 16867 # ... but there are two gotchas: 16868 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 16869 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 16870 # In both cases, we have to default to `cp -pR'. 16871 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 16872 as_ln_s='cp -pR' 16873 elif ln conf$$.file conf$$ 2>/dev/null; then 16874 as_ln_s=ln 16875 else 16876 as_ln_s='cp -pR' 16877 fi 16878else 16879 as_ln_s='cp -pR' 16880fi 16881rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 16882rmdir conf$$.dir 2>/dev/null 16883 16884 16885@%:@ as_fn_mkdir_p 16886@%:@ ------------- 16887@%:@ Create "@S|@as_dir" as a directory, including parents if necessary. 16888as_fn_mkdir_p () 16889{ 16890 16891 case $as_dir in #( 16892 -*) as_dir=./$as_dir;; 16893 esac 16894 test -d "$as_dir" || eval $as_mkdir_p || { 16895 as_dirs= 16896 while :; do 16897 case $as_dir in #( 16898 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 16899 *) as_qdir=$as_dir;; 16900 esac 16901 as_dirs="'$as_qdir' $as_dirs" 16902 as_dir=`$as_dirname -- "$as_dir" || 16903$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16904 X"$as_dir" : 'X\(//\)[^/]' \| \ 16905 X"$as_dir" : 'X\(//\)$' \| \ 16906 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 16907$as_echo X"$as_dir" | 16908 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16909 s//\1/ 16910 q 16911 } 16912 /^X\(\/\/\)[^/].*/{ 16913 s//\1/ 16914 q 16915 } 16916 /^X\(\/\/\)$/{ 16917 s//\1/ 16918 q 16919 } 16920 /^X\(\/\).*/{ 16921 s//\1/ 16922 q 16923 } 16924 s/.*/./; q'` 16925 test -d "$as_dir" && break 16926 done 16927 test -z "$as_dirs" || eval "mkdir $as_dirs" 16928 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 16929 16930 16931} @%:@ as_fn_mkdir_p 16932if mkdir -p . 2>/dev/null; then 16933 as_mkdir_p='mkdir -p "$as_dir"' 16934else 16935 test -d ./-p && rmdir ./-p 16936 as_mkdir_p=false 16937fi 16938 16939 16940@%:@ as_fn_executable_p FILE 16941@%:@ ----------------------- 16942@%:@ Test if FILE is an executable regular file. 16943as_fn_executable_p () 16944{ 16945 test -f "$1" && test -x "$1" 16946} @%:@ as_fn_executable_p 16947as_test_x='test -x' 16948as_executable_p=as_fn_executable_p 16949 16950# Sed expression to map a string onto a valid CPP name. 16951as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 16952 16953# Sed expression to map a string onto a valid variable name. 16954as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 16955 16956 16957exec 6>&1 16958## ----------------------------------- ## 16959## Main body of $CONFIG_STATUS script. ## 16960## ----------------------------------- ## 16961_ASEOF 16962test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 16963 16964cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16965# Save the log message, to keep $0 and so on meaningful, and to 16966# report actual input values of CONFIG_FILES etc. instead of their 16967# values after options handling. 16968ac_log=" 16969This file was extended by scamper $as_me 20211026, which was 16970generated by GNU Autoconf 2.69. Invocation command line was 16971 16972 CONFIG_FILES = $CONFIG_FILES 16973 CONFIG_HEADERS = $CONFIG_HEADERS 16974 CONFIG_LINKS = $CONFIG_LINKS 16975 CONFIG_COMMANDS = $CONFIG_COMMANDS 16976 $ $0 $@ 16977 16978on `(hostname || uname -n) 2>/dev/null | sed 1q` 16979" 16980 16981_ACEOF 16982 16983case $ac_config_files in *" 16984"*) set x $ac_config_files; shift; ac_config_files=$*;; 16985esac 16986 16987case $ac_config_headers in *" 16988"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 16989esac 16990 16991 16992cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16993# Files that config.status was made for. 16994config_files="$ac_config_files" 16995config_headers="$ac_config_headers" 16996config_commands="$ac_config_commands" 16997 16998_ACEOF 16999 17000cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17001ac_cs_usage="\ 17002\`$as_me' instantiates files and other configuration actions 17003from templates according to the current configuration. Unless the files 17004and actions are specified as TAGs, all are instantiated by default. 17005 17006Usage: $0 [OPTION]... [TAG]... 17007 17008 -h, --help print this help, then exit 17009 -V, --version print version number and configuration settings, then exit 17010 --config print configuration, then exit 17011 -q, --quiet, --silent 17012 do not print progress messages 17013 -d, --debug don't remove temporary files 17014 --recheck update $as_me by reconfiguring in the same conditions 17015 --file=FILE[:TEMPLATE] 17016 instantiate the configuration file FILE 17017 --header=FILE[:TEMPLATE] 17018 instantiate the configuration header FILE 17019 17020Configuration files: 17021$config_files 17022 17023Configuration headers: 17024$config_headers 17025 17026Configuration commands: 17027$config_commands 17028 17029Report bugs to <mjl@luckie.org.nz>." 17030 17031_ACEOF 17032cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17033ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 17034ac_cs_version="\\ 17035scamper config.status 20211026 17036configured by $0, generated by GNU Autoconf 2.69, 17037 with options \\"\$ac_cs_config\\" 17038 17039Copyright (C) 2012 Free Software Foundation, Inc. 17040This config.status script is free software; the Free Software Foundation 17041gives unlimited permission to copy, distribute and modify it." 17042 17043ac_pwd='$ac_pwd' 17044srcdir='$srcdir' 17045INSTALL='$INSTALL' 17046MKDIR_P='$MKDIR_P' 17047AWK='$AWK' 17048test -n "\$AWK" || AWK=awk 17049_ACEOF 17050 17051cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17052# The default lists apply if the user does not specify any file. 17053ac_need_defaults=: 17054while test $# != 0 17055do 17056 case $1 in 17057 --*=?*) 17058 ac_option=`expr "X$1" : 'X\([^=]*\)='` 17059 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 17060 ac_shift=: 17061 ;; 17062 --*=) 17063 ac_option=`expr "X$1" : 'X\([^=]*\)='` 17064 ac_optarg= 17065 ac_shift=: 17066 ;; 17067 *) 17068 ac_option=$1 17069 ac_optarg=$2 17070 ac_shift=shift 17071 ;; 17072 esac 17073 17074 case $ac_option in 17075 # Handling of the options. 17076 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 17077 ac_cs_recheck=: ;; 17078 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 17079 $as_echo "$ac_cs_version"; exit ;; 17080 --config | --confi | --conf | --con | --co | --c ) 17081 $as_echo "$ac_cs_config"; exit ;; 17082 --debug | --debu | --deb | --de | --d | -d ) 17083 debug=: ;; 17084 --file | --fil | --fi | --f ) 17085 $ac_shift 17086 case $ac_optarg in 17087 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 17088 '') as_fn_error $? "missing file argument" ;; 17089 esac 17090 as_fn_append CONFIG_FILES " '$ac_optarg'" 17091 ac_need_defaults=false;; 17092 --header | --heade | --head | --hea ) 17093 $ac_shift 17094 case $ac_optarg in 17095 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 17096 esac 17097 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 17098 ac_need_defaults=false;; 17099 --he | --h) 17100 # Conflict between --help and --header 17101 as_fn_error $? "ambiguous option: \`$1' 17102Try \`$0 --help' for more information.";; 17103 --help | --hel | -h ) 17104 $as_echo "$ac_cs_usage"; exit ;; 17105 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 17106 | -silent | --silent | --silen | --sile | --sil | --si | --s) 17107 ac_cs_silent=: ;; 17108 17109 # This is an error. 17110 -*) as_fn_error $? "unrecognized option: \`$1' 17111Try \`$0 --help' for more information." ;; 17112 17113 *) as_fn_append ac_config_targets " $1" 17114 ac_need_defaults=false ;; 17115 17116 esac 17117 shift 17118done 17119 17120ac_configure_extra_args= 17121 17122if $ac_cs_silent; then 17123 exec 6>/dev/null 17124 ac_configure_extra_args="$ac_configure_extra_args --silent" 17125fi 17126 17127_ACEOF 17128cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17129if \$ac_cs_recheck; then 17130 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 17131 shift 17132 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 17133 CONFIG_SHELL='$SHELL' 17134 export CONFIG_SHELL 17135 exec "\$@" 17136fi 17137 17138_ACEOF 17139cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17140exec 5>>config.log 17141{ 17142 echo 17143 sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX 17144@%:@@%:@ Running $as_me. @%:@@%:@ 17145_ASBOX 17146 $as_echo "$ac_log" 17147} >&5 17148 17149_ACEOF 17150cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17151# 17152# INIT-COMMANDS 17153# 17154AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 17155 17156 17157# The HP-UX ksh and POSIX shell print the target directory to stdout 17158# if CDPATH is set. 17159(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 17160 17161sed_quote_subst='$sed_quote_subst' 17162double_quote_subst='$double_quote_subst' 17163delay_variable_subst='$delay_variable_subst' 17164macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 17165macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 17166enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 17167enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 17168pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 17169enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 17170shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 17171SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 17172ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 17173PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 17174host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 17175host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 17176host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 17177build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 17178build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 17179build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 17180SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 17181Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 17182GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 17183EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 17184FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 17185LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 17186NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 17187LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 17188max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 17189ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 17190exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 17191lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 17192lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 17193lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 17194lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 17195lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 17196reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 17197reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 17198OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 17199deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 17200file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 17201file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 17202want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 17203DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 17204sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 17205AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 17206AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 17207archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 17208STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 17209RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 17210old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 17211old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 17212old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 17213lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 17214CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 17215CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 17216compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 17217GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 17218lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 17219lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 17220lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 17221lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 17222lt_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"`' 17223lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 17224nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 17225lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 17226lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 17227objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 17228MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 17229lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 17230lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 17231lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 17232lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 17233lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 17234need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 17235MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 17236DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 17237NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 17238LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 17239OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 17240OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 17241libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 17242shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 17243extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 17244archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 17245enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 17246export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 17247whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 17248compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 17249old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 17250old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 17251archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 17252archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 17253module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 17254module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 17255with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 17256allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 17257no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 17258hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 17259hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 17260hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 17261hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 17262hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 17263hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 17264hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 17265inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 17266link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 17267always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 17268export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 17269exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 17270include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 17271prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 17272postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 17273file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 17274variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 17275need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 17276need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 17277version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 17278runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 17279shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 17280shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 17281libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 17282library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 17283soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 17284install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 17285postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 17286postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 17287finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 17288finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 17289hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 17290sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 17291configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 17292configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 17293hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 17294enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 17295enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 17296enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 17297old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 17298striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 17299 17300LTCC='$LTCC' 17301LTCFLAGS='$LTCFLAGS' 17302compiler='$compiler_DEFAULT' 17303 17304# A function that is used when there is no print builtin or printf. 17305func_fallback_echo () 17306{ 17307 eval 'cat <<_LTECHO_EOF 17308\$1 17309_LTECHO_EOF' 17310} 17311 17312# Quote evaled strings. 17313for var in SHELL \ 17314ECHO \ 17315PATH_SEPARATOR \ 17316SED \ 17317GREP \ 17318EGREP \ 17319FGREP \ 17320LD \ 17321NM \ 17322LN_S \ 17323lt_SP2NL \ 17324lt_NL2SP \ 17325reload_flag \ 17326OBJDUMP \ 17327deplibs_check_method \ 17328file_magic_cmd \ 17329file_magic_glob \ 17330want_nocaseglob \ 17331DLLTOOL \ 17332sharedlib_from_linklib_cmd \ 17333AR \ 17334AR_FLAGS \ 17335archiver_list_spec \ 17336STRIP \ 17337RANLIB \ 17338CC \ 17339CFLAGS \ 17340compiler \ 17341lt_cv_sys_global_symbol_pipe \ 17342lt_cv_sys_global_symbol_to_cdecl \ 17343lt_cv_sys_global_symbol_to_import \ 17344lt_cv_sys_global_symbol_to_c_name_address \ 17345lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 17346lt_cv_nm_interface \ 17347nm_file_list_spec \ 17348lt_cv_truncate_bin \ 17349lt_prog_compiler_no_builtin_flag \ 17350lt_prog_compiler_pic \ 17351lt_prog_compiler_wl \ 17352lt_prog_compiler_static \ 17353lt_cv_prog_compiler_c_o \ 17354need_locks \ 17355MANIFEST_TOOL \ 17356DSYMUTIL \ 17357NMEDIT \ 17358LIPO \ 17359OTOOL \ 17360OTOOL64 \ 17361shrext_cmds \ 17362export_dynamic_flag_spec \ 17363whole_archive_flag_spec \ 17364compiler_needs_object \ 17365with_gnu_ld \ 17366allow_undefined_flag \ 17367no_undefined_flag \ 17368hardcode_libdir_flag_spec \ 17369hardcode_libdir_separator \ 17370exclude_expsyms \ 17371include_expsyms \ 17372file_list_spec \ 17373variables_saved_for_relink \ 17374libname_spec \ 17375library_names_spec \ 17376soname_spec \ 17377install_override_mode \ 17378finish_eval \ 17379old_striplib \ 17380striplib; do 17381 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 17382 *[\\\\\\\`\\"\\\$]*) 17383 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 17384 ;; 17385 *) 17386 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 17387 ;; 17388 esac 17389done 17390 17391# Double-quote double-evaled strings. 17392for var in reload_cmds \ 17393old_postinstall_cmds \ 17394old_postuninstall_cmds \ 17395old_archive_cmds \ 17396extract_expsyms_cmds \ 17397old_archive_from_new_cmds \ 17398old_archive_from_expsyms_cmds \ 17399archive_cmds \ 17400archive_expsym_cmds \ 17401module_cmds \ 17402module_expsym_cmds \ 17403export_symbols_cmds \ 17404prelink_cmds \ 17405postlink_cmds \ 17406postinstall_cmds \ 17407postuninstall_cmds \ 17408finish_cmds \ 17409sys_lib_search_path_spec \ 17410configure_time_dlsearch_path \ 17411configure_time_lt_sys_library_path; do 17412 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 17413 *[\\\\\\\`\\"\\\$]*) 17414 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 17415 ;; 17416 *) 17417 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 17418 ;; 17419 esac 17420done 17421 17422ac_aux_dir='$ac_aux_dir' 17423 17424# See if we are running on zsh, and set the options that allow our 17425# commands through without removal of \ escapes INIT. 17426if test -n "\${ZSH_VERSION+set}"; then 17427 setopt NO_GLOB_SUBST 17428fi 17429 17430 17431 PACKAGE='$PACKAGE' 17432 VERSION='$VERSION' 17433 RM='$RM' 17434 ofile='$ofile' 17435 17436 17437 17438 17439_ACEOF 17440 17441cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17442 17443# Handling of arguments. 17444for ac_config_target in $ac_config_targets 17445do 17446 case $ac_config_target in 17447 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 17448 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 17449 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 17450 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 17451 "scamper/Makefile") CONFIG_FILES="$CONFIG_FILES scamper/Makefile" ;; 17452 "utils/Makefile") CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;; 17453 "utils/sc_ally/Makefile") CONFIG_FILES="$CONFIG_FILES utils/sc_ally/Makefile" ;; 17454 "utils/sc_analysis_dump/Makefile") CONFIG_FILES="$CONFIG_FILES utils/sc_analysis_dump/Makefile" ;; 17455 "utils/sc_attach/Makefile") CONFIG_FILES="$CONFIG_FILES utils/sc_attach/Makefile" ;; 17456 "utils/sc_bdrmap/Makefile") CONFIG_FILES="$CONFIG_FILES utils/sc_bdrmap/Makefile" ;; 17457 "utils/sc_erosprober/Makefile") CONFIG_FILES="$CONFIG_FILES utils/sc_erosprober/Makefile" ;; 17458 "utils/sc_hoiho/Makefile") CONFIG_FILES="$CONFIG_FILES utils/sc_hoiho/Makefile" ;; 17459 "utils/sc_filterpolicy/Makefile") CONFIG_FILES="$CONFIG_FILES utils/sc_filterpolicy/Makefile" ;; 17460 "utils/sc_ipiddump/Makefile") CONFIG_FILES="$CONFIG_FILES utils/sc_ipiddump/Makefile" ;; 17461 "utils/sc_pinger/Makefile") CONFIG_FILES="$CONFIG_FILES utils/sc_pinger/Makefile" ;; 17462 "utils/sc_prefixscan/Makefile") CONFIG_FILES="$CONFIG_FILES utils/sc_prefixscan/Makefile" ;; 17463 "utils/sc_radargun/Makefile") CONFIG_FILES="$CONFIG_FILES utils/sc_radargun/Makefile" ;; 17464 "utils/sc_remoted/Makefile") CONFIG_FILES="$CONFIG_FILES utils/sc_remoted/Makefile" ;; 17465 "utils/sc_speedtrap/Makefile") CONFIG_FILES="$CONFIG_FILES utils/sc_speedtrap/Makefile" ;; 17466 "utils/sc_tbitblind/Makefile") CONFIG_FILES="$CONFIG_FILES utils/sc_tbitblind/Makefile" ;; 17467 "utils/sc_tbitpmtud/Makefile") CONFIG_FILES="$CONFIG_FILES utils/sc_tbitpmtud/Makefile" ;; 17468 "utils/sc_tracediff/Makefile") CONFIG_FILES="$CONFIG_FILES utils/sc_tracediff/Makefile" ;; 17469 "utils/sc_ttlexp/Makefile") CONFIG_FILES="$CONFIG_FILES utils/sc_ttlexp/Makefile" ;; 17470 "utils/sc_uptime/Makefile") CONFIG_FILES="$CONFIG_FILES utils/sc_uptime/Makefile" ;; 17471 "utils/sc_warts2csv/Makefile") CONFIG_FILES="$CONFIG_FILES utils/sc_warts2csv/Makefile" ;; 17472 "utils/sc_warts2json/Makefile") CONFIG_FILES="$CONFIG_FILES utils/sc_warts2json/Makefile" ;; 17473 "utils/sc_warts2pcap/Makefile") CONFIG_FILES="$CONFIG_FILES utils/sc_warts2pcap/Makefile" ;; 17474 "utils/sc_warts2text/Makefile") CONFIG_FILES="$CONFIG_FILES utils/sc_warts2text/Makefile" ;; 17475 "utils/sc_wartscat/Makefile") CONFIG_FILES="$CONFIG_FILES utils/sc_wartscat/Makefile" ;; 17476 "utils/sc_wartsdump/Makefile") CONFIG_FILES="$CONFIG_FILES utils/sc_wartsdump/Makefile" ;; 17477 "utils/sc_wartsfilter/Makefile") CONFIG_FILES="$CONFIG_FILES utils/sc_wartsfilter/Makefile" ;; 17478 "utils/sc_wartsfix/Makefile") CONFIG_FILES="$CONFIG_FILES utils/sc_wartsfix/Makefile" ;; 17479 17480 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 17481 esac 17482done 17483 17484 17485# If the user did not use the arguments to specify the items to instantiate, 17486# then the envvar interface is used. Set only those that are not. 17487# We use the long form for the default assignment because of an extremely 17488# bizarre bug on SunOS 4.1.3. 17489if $ac_need_defaults; then 17490 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 17491 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 17492 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 17493fi 17494 17495# Have a temporary directory for convenience. Make it in the build tree 17496# simply because there is no reason against having it here, and in addition, 17497# creating and moving files from /tmp can sometimes cause problems. 17498# Hook for its removal unless debugging. 17499# Note that there is a small window in which the directory will not be cleaned: 17500# after its creation but before its name has been assigned to `$tmp'. 17501$debug || 17502{ 17503 tmp= ac_tmp= 17504 trap 'exit_status=$? 17505 : "${ac_tmp:=$tmp}" 17506 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 17507' 0 17508 trap 'as_fn_exit 1' 1 2 13 15 17509} 17510# Create a (secure) tmp directory for tmp files. 17511 17512{ 17513 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 17514 test -d "$tmp" 17515} || 17516{ 17517 tmp=./conf$$-$RANDOM 17518 (umask 077 && mkdir "$tmp") 17519} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 17520ac_tmp=$tmp 17521 17522# Set up the scripts for CONFIG_FILES section. 17523# No need to generate them if there are no CONFIG_FILES. 17524# This happens for instance with `./config.status config.h'. 17525if test -n "$CONFIG_FILES"; then 17526 17527 17528ac_cr=`echo X | tr X '\015'` 17529# On cygwin, bash can eat \r inside `` if the user requested igncr. 17530# But we know of no other shell where ac_cr would be empty at this 17531# point, so we can use a bashism as a fallback. 17532if test "x$ac_cr" = x; then 17533 eval ac_cr=\$\'\\r\' 17534fi 17535ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 17536if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 17537 ac_cs_awk_cr='\\r' 17538else 17539 ac_cs_awk_cr=$ac_cr 17540fi 17541 17542echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 17543_ACEOF 17544 17545 17546{ 17547 echo "cat >conf$$subs.awk <<_ACEOF" && 17548 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 17549 echo "_ACEOF" 17550} >conf$$subs.sh || 17551 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 17552ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 17553ac_delim='%!_!# ' 17554for ac_last_try in false false false false false :; do 17555 . ./conf$$subs.sh || 17556 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 17557 17558 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 17559 if test $ac_delim_n = $ac_delim_num; then 17560 break 17561 elif $ac_last_try; then 17562 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 17563 else 17564 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 17565 fi 17566done 17567rm -f conf$$subs.sh 17568 17569cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17570cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 17571_ACEOF 17572sed -n ' 17573h 17574s/^/S["/; s/!.*/"]=/ 17575p 17576g 17577s/^[^!]*!// 17578:repl 17579t repl 17580s/'"$ac_delim"'$// 17581t delim 17582:nl 17583h 17584s/\(.\{148\}\)..*/\1/ 17585t more1 17586s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 17587p 17588n 17589b repl 17590:more1 17591s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 17592p 17593g 17594s/.\{148\}// 17595t nl 17596:delim 17597h 17598s/\(.\{148\}\)..*/\1/ 17599t more2 17600s/["\\]/\\&/g; s/^/"/; s/$/"/ 17601p 17602b 17603:more2 17604s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 17605p 17606g 17607s/.\{148\}// 17608t delim 17609' <conf$$subs.awk | sed ' 17610/^[^""]/{ 17611 N 17612 s/\n// 17613} 17614' >>$CONFIG_STATUS || ac_write_fail=1 17615rm -f conf$$subs.awk 17616cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17617_ACAWK 17618cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 17619 for (key in S) S_is_set[key] = 1 17620 FS = "" 17621 17622} 17623{ 17624 line = $ 0 17625 nfields = split(line, field, "@") 17626 substed = 0 17627 len = length(field[1]) 17628 for (i = 2; i < nfields; i++) { 17629 key = field[i] 17630 keylen = length(key) 17631 if (S_is_set[key]) { 17632 value = S[key] 17633 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 17634 len += length(value) + length(field[++i]) 17635 substed = 1 17636 } else 17637 len += 1 + keylen 17638 } 17639 17640 print line 17641} 17642 17643_ACAWK 17644_ACEOF 17645cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17646if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 17647 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 17648else 17649 cat 17650fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 17651 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 17652_ACEOF 17653 17654# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 17655# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 17656# trailing colons and then remove the whole line if VPATH becomes empty 17657# (actually we leave an empty line to preserve line numbers). 17658if test "x$srcdir" = x.; then 17659 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 17660h 17661s/// 17662s/^/:/ 17663s/[ ]*$/:/ 17664s/:\$(srcdir):/:/g 17665s/:\${srcdir}:/:/g 17666s/:@srcdir@:/:/g 17667s/^:*// 17668s/:*$// 17669x 17670s/\(=[ ]*\).*/\1/ 17671G 17672s/\n// 17673s/^[^=]*=[ ]*$// 17674}' 17675fi 17676 17677cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17678fi # test -n "$CONFIG_FILES" 17679 17680# Set up the scripts for CONFIG_HEADERS section. 17681# No need to generate them if there are no CONFIG_HEADERS. 17682# This happens for instance with `./config.status Makefile'. 17683if test -n "$CONFIG_HEADERS"; then 17684cat >"$ac_tmp/defines.awk" <<\_ACAWK || 17685BEGIN { 17686_ACEOF 17687 17688# Transform confdefs.h into an awk script `defines.awk', embedded as 17689# here-document in config.status, that substitutes the proper values into 17690# config.h.in to produce config.h. 17691 17692# Create a delimiter string that does not exist in confdefs.h, to ease 17693# handling of long lines. 17694ac_delim='%!_!# ' 17695for ac_last_try in false false :; do 17696 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 17697 if test -z "$ac_tt"; then 17698 break 17699 elif $ac_last_try; then 17700 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 17701 else 17702 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 17703 fi 17704done 17705 17706# For the awk script, D is an array of macro values keyed by name, 17707# likewise P contains macro parameters if any. Preserve backslash 17708# newline sequences. 17709 17710ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 17711sed -n ' 17712s/.\{148\}/&'"$ac_delim"'/g 17713t rset 17714:rset 17715s/^[ ]*#[ ]*define[ ][ ]*/ / 17716t def 17717d 17718:def 17719s/\\$// 17720t bsnl 17721s/["\\]/\\&/g 17722s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 17723D["\1"]=" \3"/p 17724s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 17725d 17726:bsnl 17727s/["\\]/\\&/g 17728s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 17729D["\1"]=" \3\\\\\\n"\\/p 17730t cont 17731s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 17732t cont 17733d 17734:cont 17735n 17736s/.\{148\}/&'"$ac_delim"'/g 17737t clear 17738:clear 17739s/\\$// 17740t bsnlc 17741s/["\\]/\\&/g; s/^/"/; s/$/"/p 17742d 17743:bsnlc 17744s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 17745b cont 17746' <confdefs.h | sed ' 17747s/'"$ac_delim"'/"\\\ 17748"/g' >>$CONFIG_STATUS || ac_write_fail=1 17749 17750cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17751 for (key in D) D_is_set[key] = 1 17752 FS = "" 17753} 17754/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 17755 line = \$ 0 17756 split(line, arg, " ") 17757 if (arg[1] == "#") { 17758 defundef = arg[2] 17759 mac1 = arg[3] 17760 } else { 17761 defundef = substr(arg[1], 2) 17762 mac1 = arg[2] 17763 } 17764 split(mac1, mac2, "(") #) 17765 macro = mac2[1] 17766 prefix = substr(line, 1, index(line, defundef) - 1) 17767 if (D_is_set[macro]) { 17768 # Preserve the white space surrounding the "#". 17769 print prefix "define", macro P[macro] D[macro] 17770 next 17771 } else { 17772 # Replace #undef with comments. This is necessary, for example, 17773 # in the case of _POSIX_SOURCE, which is predefined and required 17774 # on some systems where configure will not decide to define it. 17775 if (defundef == "undef") { 17776 print "/*", prefix defundef, macro, "*/" 17777 next 17778 } 17779 } 17780} 17781{ print } 17782_ACAWK 17783_ACEOF 17784cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17785 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 17786fi # test -n "$CONFIG_HEADERS" 17787 17788 17789eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 17790shift 17791for ac_tag 17792do 17793 case $ac_tag in 17794 :[FHLC]) ac_mode=$ac_tag; continue;; 17795 esac 17796 case $ac_mode$ac_tag in 17797 :[FHL]*:*);; 17798 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 17799 :[FH]-) ac_tag=-:-;; 17800 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 17801 esac 17802 ac_save_IFS=$IFS 17803 IFS=: 17804 set x $ac_tag 17805 IFS=$ac_save_IFS 17806 shift 17807 ac_file=$1 17808 shift 17809 17810 case $ac_mode in 17811 :L) ac_source=$1;; 17812 :[FH]) 17813 ac_file_inputs= 17814 for ac_f 17815 do 17816 case $ac_f in 17817 -) ac_f="$ac_tmp/stdin";; 17818 *) # Look for the file first in the build tree, then in the source tree 17819 # (if the path is not absolute). The absolute path cannot be DOS-style, 17820 # because $ac_f cannot contain `:'. 17821 test -f "$ac_f" || 17822 case $ac_f in 17823 [\\/$]*) false;; 17824 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 17825 esac || 17826 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 17827 esac 17828 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 17829 as_fn_append ac_file_inputs " '$ac_f'" 17830 done 17831 17832 # Let's still pretend it is `configure' which instantiates (i.e., don't 17833 # use $as_me), people would be surprised to read: 17834 # /* config.h. Generated by config.status. */ 17835 configure_input='Generated from '` 17836 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 17837 `' by configure.' 17838 if test x"$ac_file" != x-; then 17839 configure_input="$ac_file. $configure_input" 17840 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 17841$as_echo "$as_me: creating $ac_file" >&6;} 17842 fi 17843 # Neutralize special characters interpreted by sed in replacement strings. 17844 case $configure_input in #( 17845 *\&* | *\|* | *\\* ) 17846 ac_sed_conf_input=`$as_echo "$configure_input" | 17847 sed 's/[\\\\&|]/\\\\&/g'`;; #( 17848 *) ac_sed_conf_input=$configure_input;; 17849 esac 17850 17851 case $ac_tag in 17852 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 17853 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 17854 esac 17855 ;; 17856 esac 17857 17858 ac_dir=`$as_dirname -- "$ac_file" || 17859$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17860 X"$ac_file" : 'X\(//\)[^/]' \| \ 17861 X"$ac_file" : 'X\(//\)$' \| \ 17862 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 17863$as_echo X"$ac_file" | 17864 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17865 s//\1/ 17866 q 17867 } 17868 /^X\(\/\/\)[^/].*/{ 17869 s//\1/ 17870 q 17871 } 17872 /^X\(\/\/\)$/{ 17873 s//\1/ 17874 q 17875 } 17876 /^X\(\/\).*/{ 17877 s//\1/ 17878 q 17879 } 17880 s/.*/./; q'` 17881 as_dir="$ac_dir"; as_fn_mkdir_p 17882 ac_builddir=. 17883 17884case "$ac_dir" in 17885.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 17886*) 17887 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 17888 # A ".." for each directory in $ac_dir_suffix. 17889 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 17890 case $ac_top_builddir_sub in 17891 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 17892 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 17893 esac ;; 17894esac 17895ac_abs_top_builddir=$ac_pwd 17896ac_abs_builddir=$ac_pwd$ac_dir_suffix 17897# for backward compatibility: 17898ac_top_builddir=$ac_top_build_prefix 17899 17900case $srcdir in 17901 .) # We are building in place. 17902 ac_srcdir=. 17903 ac_top_srcdir=$ac_top_builddir_sub 17904 ac_abs_top_srcdir=$ac_pwd ;; 17905 [\\/]* | ?:[\\/]* ) # Absolute name. 17906 ac_srcdir=$srcdir$ac_dir_suffix; 17907 ac_top_srcdir=$srcdir 17908 ac_abs_top_srcdir=$srcdir ;; 17909 *) # Relative name. 17910 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 17911 ac_top_srcdir=$ac_top_build_prefix$srcdir 17912 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 17913esac 17914ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 17915 17916 17917 case $ac_mode in 17918 :F) 17919 # 17920 # CONFIG_FILE 17921 # 17922 17923 case $INSTALL in 17924 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 17925 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 17926 esac 17927 ac_MKDIR_P=$MKDIR_P 17928 case $MKDIR_P in 17929 [\\/$]* | ?:[\\/]* ) ;; 17930 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 17931 esac 17932_ACEOF 17933 17934cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17935# If the template does not know about datarootdir, expand it. 17936# FIXME: This hack should be removed a few years after 2.60. 17937ac_datarootdir_hack=; ac_datarootdir_seen= 17938ac_sed_dataroot=' 17939/datarootdir/ { 17940 p 17941 q 17942} 17943/@datadir@/p 17944/@docdir@/p 17945/@infodir@/p 17946/@localedir@/p 17947/@mandir@/p' 17948case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 17949*datarootdir*) ac_datarootdir_seen=yes;; 17950*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 17951 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 17952$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 17953_ACEOF 17954cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17955 ac_datarootdir_hack=' 17956 s&@datadir@&$datadir&g 17957 s&@docdir@&$docdir&g 17958 s&@infodir@&$infodir&g 17959 s&@localedir@&$localedir&g 17960 s&@mandir@&$mandir&g 17961 s&\\\${datarootdir}&$datarootdir&g' ;; 17962esac 17963_ACEOF 17964 17965# Neutralize VPATH when `$srcdir' = `.'. 17966# Shell code in configure.ac might set extrasub. 17967# FIXME: do we really want to maintain this feature? 17968cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17969ac_sed_extra="$ac_vpsub 17970$extrasub 17971_ACEOF 17972cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17973:t 17974/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 17975s|@configure_input@|$ac_sed_conf_input|;t t 17976s&@top_builddir@&$ac_top_builddir_sub&;t t 17977s&@top_build_prefix@&$ac_top_build_prefix&;t t 17978s&@srcdir@&$ac_srcdir&;t t 17979s&@abs_srcdir@&$ac_abs_srcdir&;t t 17980s&@top_srcdir@&$ac_top_srcdir&;t t 17981s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 17982s&@builddir@&$ac_builddir&;t t 17983s&@abs_builddir@&$ac_abs_builddir&;t t 17984s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 17985s&@INSTALL@&$ac_INSTALL&;t t 17986s&@MKDIR_P@&$ac_MKDIR_P&;t t 17987$ac_datarootdir_hack 17988" 17989eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 17990 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 17991 17992test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 17993 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 17994 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 17995 "$ac_tmp/out"`; test -z "$ac_out"; } && 17996 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 17997which seems to be undefined. Please make sure it is defined" >&5 17998$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 17999which seems to be undefined. Please make sure it is defined" >&2;} 18000 18001 rm -f "$ac_tmp/stdin" 18002 case $ac_file in 18003 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 18004 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 18005 esac \ 18006 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 18007 ;; 18008 :H) 18009 # 18010 # CONFIG_HEADER 18011 # 18012 if test x"$ac_file" != x-; then 18013 { 18014 $as_echo "/* $configure_input */" \ 18015 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 18016 } >"$ac_tmp/config.h" \ 18017 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 18018 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 18019 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 18020$as_echo "$as_me: $ac_file is unchanged" >&6;} 18021 else 18022 rm -f "$ac_file" 18023 mv "$ac_tmp/config.h" "$ac_file" \ 18024 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 18025 fi 18026 else 18027 $as_echo "/* $configure_input */" \ 18028 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 18029 || as_fn_error $? "could not create -" "$LINENO" 5 18030 fi 18031# Compute "$ac_file"'s index in $config_headers. 18032_am_arg="$ac_file" 18033_am_stamp_count=1 18034for _am_header in $config_headers :; do 18035 case $_am_header in 18036 $_am_arg | $_am_arg:* ) 18037 break ;; 18038 * ) 18039 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 18040 esac 18041done 18042echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 18043$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18044 X"$_am_arg" : 'X\(//\)[^/]' \| \ 18045 X"$_am_arg" : 'X\(//\)$' \| \ 18046 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 18047$as_echo X"$_am_arg" | 18048 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18049 s//\1/ 18050 q 18051 } 18052 /^X\(\/\/\)[^/].*/{ 18053 s//\1/ 18054 q 18055 } 18056 /^X\(\/\/\)$/{ 18057 s//\1/ 18058 q 18059 } 18060 /^X\(\/\).*/{ 18061 s//\1/ 18062 q 18063 } 18064 s/.*/./; q'`/stamp-h$_am_stamp_count 18065 ;; 18066 18067 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 18068$as_echo "$as_me: executing $ac_file commands" >&6;} 18069 ;; 18070 esac 18071 18072 18073 case $ac_file$ac_mode in 18074 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 18075 # Older Autoconf quotes --file arguments for eval, but not when files 18076 # are listed without --file. Let's play safe and only enable the eval 18077 # if we detect the quoting. 18078 # TODO: see whether this extra hack can be removed once we start 18079 # requiring Autoconf 2.70 or later. 18080 case $CONFIG_FILES in @%:@( 18081 *\'*) : 18082 eval set x "$CONFIG_FILES" ;; @%:@( 18083 *) : 18084 set x $CONFIG_FILES ;; @%:@( 18085 *) : 18086 ;; 18087esac 18088 shift 18089 # Used to flag and report bootstrapping failures. 18090 am_rc=0 18091 for am_mf 18092 do 18093 # Strip MF so we end up with the name of the file. 18094 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'` 18095 # Check whether this is an Automake generated Makefile which includes 18096 # dependency-tracking related rules and includes. 18097 # Grep'ing the whole file directly is not great: AIX grep has a line 18098 # limit of 2048, but all sed's we know have understand at least 4000. 18099 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 18100 || continue 18101 am_dirpart=`$as_dirname -- "$am_mf" || 18102$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18103 X"$am_mf" : 'X\(//\)[^/]' \| \ 18104 X"$am_mf" : 'X\(//\)$' \| \ 18105 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 18106$as_echo X"$am_mf" | 18107 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18108 s//\1/ 18109 q 18110 } 18111 /^X\(\/\/\)[^/].*/{ 18112 s//\1/ 18113 q 18114 } 18115 /^X\(\/\/\)$/{ 18116 s//\1/ 18117 q 18118 } 18119 /^X\(\/\).*/{ 18120 s//\1/ 18121 q 18122 } 18123 s/.*/./; q'` 18124 am_filepart=`$as_basename -- "$am_mf" || 18125$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 18126 X"$am_mf" : 'X\(//\)$' \| \ 18127 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 18128$as_echo X/"$am_mf" | 18129 sed '/^.*\/\([^/][^/]*\)\/*$/{ 18130 s//\1/ 18131 q 18132 } 18133 /^X\/\(\/\/\)$/{ 18134 s//\1/ 18135 q 18136 } 18137 /^X\/\(\/\).*/{ 18138 s//\1/ 18139 q 18140 } 18141 s/.*/./; q'` 18142 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 18143 && sed -e '/# am--include-marker/d' "$am_filepart" \ 18144 | $MAKE -f - am--depfiles" >&5 18145 (cd "$am_dirpart" \ 18146 && sed -e '/# am--include-marker/d' "$am_filepart" \ 18147 | $MAKE -f - am--depfiles) >&5 2>&5 18148 ac_status=$? 18149 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18150 (exit $ac_status); } || am_rc=$? 18151 done 18152 if test $am_rc -ne 0; then 18153 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18154$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18155as_fn_error $? "Something went wrong bootstrapping makefile fragments 18156 for automatic dependency tracking. If GNU make was not used, consider 18157 re-running the configure script with MAKE=\"gmake\" (or whatever is 18158 necessary). You can also try re-running configure with the 18159 '--disable-dependency-tracking' option to at least be able to build 18160 the package (albeit without support for automatic dependency tracking). 18161See \`config.log' for more details" "$LINENO" 5; } 18162 fi 18163 { am_dirpart=; unset am_dirpart;} 18164 { am_filepart=; unset am_filepart;} 18165 { am_mf=; unset am_mf;} 18166 { am_rc=; unset am_rc;} 18167 rm -f conftest-deps.mk 18168} 18169 ;; 18170 "libtool":C) 18171 18172 # See if we are running on zsh, and set the options that allow our 18173 # commands through without removal of \ escapes. 18174 if test -n "${ZSH_VERSION+set}"; then 18175 setopt NO_GLOB_SUBST 18176 fi 18177 18178 cfgfile=${ofile}T 18179 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 18180 $RM "$cfgfile" 18181 18182 cat <<_LT_EOF >> "$cfgfile" 18183#! $SHELL 18184# Generated automatically by $as_me ($PACKAGE) $VERSION 18185# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 18186# NOTE: Changes made to this file will be lost: look at ltmain.sh. 18187 18188# Provide generalized library-building support services. 18189# Written by Gordon Matzigkeit, 1996 18190 18191# Copyright (C) 2014 Free Software Foundation, Inc. 18192# This is free software; see the source for copying conditions. There is NO 18193# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 18194 18195# GNU Libtool is free software; you can redistribute it and/or modify 18196# it under the terms of the GNU General Public License as published by 18197# the Free Software Foundation; either version 2 of of the License, or 18198# (at your option) any later version. 18199# 18200# As a special exception to the GNU General Public License, if you 18201# distribute this file as part of a program or library that is built 18202# using GNU Libtool, you may include this file under the same 18203# distribution terms that you use for the rest of that program. 18204# 18205# GNU Libtool is distributed in the hope that it will be useful, but 18206# WITHOUT ANY WARRANTY; without even the implied warranty of 18207# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18208# GNU General Public License for more details. 18209# 18210# You should have received a copy of the GNU General Public License 18211# along with this program. If not, see <http://www.gnu.org/licenses/>. 18212 18213 18214# The names of the tagged configurations supported by this script. 18215available_tags='' 18216 18217# Configured defaults for sys_lib_dlsearch_path munging. 18218: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 18219 18220# ### BEGIN LIBTOOL CONFIG 18221 18222# Which release of libtool.m4 was used? 18223macro_version=$macro_version 18224macro_revision=$macro_revision 18225 18226# Whether or not to build shared libraries. 18227build_libtool_libs=$enable_shared 18228 18229# Whether or not to build static libraries. 18230build_old_libs=$enable_static 18231 18232# What type of objects to build. 18233pic_mode=$pic_mode 18234 18235# Whether or not to optimize for fast installation. 18236fast_install=$enable_fast_install 18237 18238# Shared archive member basename,for filename based shared library versioning on AIX. 18239shared_archive_member_spec=$shared_archive_member_spec 18240 18241# Shell to use when invoking shell scripts. 18242SHELL=$lt_SHELL 18243 18244# An echo program that protects backslashes. 18245ECHO=$lt_ECHO 18246 18247# The PATH separator for the build system. 18248PATH_SEPARATOR=$lt_PATH_SEPARATOR 18249 18250# The host system. 18251host_alias=$host_alias 18252host=$host 18253host_os=$host_os 18254 18255# The build system. 18256build_alias=$build_alias 18257build=$build 18258build_os=$build_os 18259 18260# A sed program that does not truncate output. 18261SED=$lt_SED 18262 18263# Sed that helps us avoid accidentally triggering echo(1) options like -n. 18264Xsed="\$SED -e 1s/^X//" 18265 18266# A grep program that handles long lines. 18267GREP=$lt_GREP 18268 18269# An ERE matcher. 18270EGREP=$lt_EGREP 18271 18272# A literal string matcher. 18273FGREP=$lt_FGREP 18274 18275# A BSD- or MS-compatible name lister. 18276NM=$lt_NM 18277 18278# Whether we need soft or hard links. 18279LN_S=$lt_LN_S 18280 18281# What is the maximum length of a command? 18282max_cmd_len=$max_cmd_len 18283 18284# Object file suffix (normally "o"). 18285objext=$ac_objext 18286 18287# Executable file suffix (normally ""). 18288exeext=$exeext 18289 18290# whether the shell understands "unset". 18291lt_unset=$lt_unset 18292 18293# turn spaces into newlines. 18294SP2NL=$lt_lt_SP2NL 18295 18296# turn newlines into spaces. 18297NL2SP=$lt_lt_NL2SP 18298 18299# convert \$build file names to \$host format. 18300to_host_file_cmd=$lt_cv_to_host_file_cmd 18301 18302# convert \$build files to toolchain format. 18303to_tool_file_cmd=$lt_cv_to_tool_file_cmd 18304 18305# An object symbol dumper. 18306OBJDUMP=$lt_OBJDUMP 18307 18308# Method to check whether dependent libraries are shared objects. 18309deplibs_check_method=$lt_deplibs_check_method 18310 18311# Command to use when deplibs_check_method = "file_magic". 18312file_magic_cmd=$lt_file_magic_cmd 18313 18314# How to find potential files when deplibs_check_method = "file_magic". 18315file_magic_glob=$lt_file_magic_glob 18316 18317# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 18318want_nocaseglob=$lt_want_nocaseglob 18319 18320# DLL creation program. 18321DLLTOOL=$lt_DLLTOOL 18322 18323# Command to associate shared and link libraries. 18324sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 18325 18326# The archiver. 18327AR=$lt_AR 18328 18329# Flags to create an archive. 18330AR_FLAGS=$lt_AR_FLAGS 18331 18332# How to feed a file listing to the archiver. 18333archiver_list_spec=$lt_archiver_list_spec 18334 18335# A symbol stripping program. 18336STRIP=$lt_STRIP 18337 18338# Commands used to install an old-style archive. 18339RANLIB=$lt_RANLIB 18340old_postinstall_cmds=$lt_old_postinstall_cmds 18341old_postuninstall_cmds=$lt_old_postuninstall_cmds 18342 18343# Whether to use a lock for old archive extraction. 18344lock_old_archive_extraction=$lock_old_archive_extraction 18345 18346# A C compiler. 18347LTCC=$lt_CC 18348 18349# LTCC compiler flags. 18350LTCFLAGS=$lt_CFLAGS 18351 18352# Take the output of nm and produce a listing of raw symbols and C names. 18353global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 18354 18355# Transform the output of nm in a proper C declaration. 18356global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 18357 18358# Transform the output of nm into a list of symbols to manually relocate. 18359global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 18360 18361# Transform the output of nm in a C name address pair. 18362global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 18363 18364# Transform the output of nm in a C name address pair when lib prefix is needed. 18365global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 18366 18367# The name lister interface. 18368nm_interface=$lt_lt_cv_nm_interface 18369 18370# Specify filename containing input files for \$NM. 18371nm_file_list_spec=$lt_nm_file_list_spec 18372 18373# The root where to search for dependent libraries,and where our libraries should be installed. 18374lt_sysroot=$lt_sysroot 18375 18376# Command to truncate a binary pipe. 18377lt_truncate_bin=$lt_lt_cv_truncate_bin 18378 18379# The name of the directory that contains temporary libtool files. 18380objdir=$objdir 18381 18382# Used to examine libraries when file_magic_cmd begins with "file". 18383MAGIC_CMD=$MAGIC_CMD 18384 18385# Must we lock files when doing compilation? 18386need_locks=$lt_need_locks 18387 18388# Manifest tool. 18389MANIFEST_TOOL=$lt_MANIFEST_TOOL 18390 18391# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 18392DSYMUTIL=$lt_DSYMUTIL 18393 18394# Tool to change global to local symbols on Mac OS X. 18395NMEDIT=$lt_NMEDIT 18396 18397# Tool to manipulate fat objects and archives on Mac OS X. 18398LIPO=$lt_LIPO 18399 18400# ldd/readelf like tool for Mach-O binaries on Mac OS X. 18401OTOOL=$lt_OTOOL 18402 18403# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 18404OTOOL64=$lt_OTOOL64 18405 18406# Old archive suffix (normally "a"). 18407libext=$libext 18408 18409# Shared library suffix (normally ".so"). 18410shrext_cmds=$lt_shrext_cmds 18411 18412# The commands to extract the exported symbol list from a shared archive. 18413extract_expsyms_cmds=$lt_extract_expsyms_cmds 18414 18415# Variables whose values should be saved in libtool wrapper scripts and 18416# restored at link time. 18417variables_saved_for_relink=$lt_variables_saved_for_relink 18418 18419# Do we need the "lib" prefix for modules? 18420need_lib_prefix=$need_lib_prefix 18421 18422# Do we need a version for libraries? 18423need_version=$need_version 18424 18425# Library versioning type. 18426version_type=$version_type 18427 18428# Shared library runtime path variable. 18429runpath_var=$runpath_var 18430 18431# Shared library path variable. 18432shlibpath_var=$shlibpath_var 18433 18434# Is shlibpath searched before the hard-coded library search path? 18435shlibpath_overrides_runpath=$shlibpath_overrides_runpath 18436 18437# Format of library name prefix. 18438libname_spec=$lt_libname_spec 18439 18440# List of archive names. First name is the real one, the rest are links. 18441# The last name is the one that the linker finds with -lNAME 18442library_names_spec=$lt_library_names_spec 18443 18444# The coded name of the library, if different from the real name. 18445soname_spec=$lt_soname_spec 18446 18447# Permission mode override for installation of shared libraries. 18448install_override_mode=$lt_install_override_mode 18449 18450# Command to use after installation of a shared archive. 18451postinstall_cmds=$lt_postinstall_cmds 18452 18453# Command to use after uninstallation of a shared archive. 18454postuninstall_cmds=$lt_postuninstall_cmds 18455 18456# Commands used to finish a libtool library installation in a directory. 18457finish_cmds=$lt_finish_cmds 18458 18459# As "finish_cmds", except a single script fragment to be evaled but 18460# not shown. 18461finish_eval=$lt_finish_eval 18462 18463# Whether we should hardcode library paths into libraries. 18464hardcode_into_libs=$hardcode_into_libs 18465 18466# Compile-time system search path for libraries. 18467sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 18468 18469# Detected run-time system search path for libraries. 18470sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 18471 18472# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 18473configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 18474 18475# Whether dlopen is supported. 18476dlopen_support=$enable_dlopen 18477 18478# Whether dlopen of programs is supported. 18479dlopen_self=$enable_dlopen_self 18480 18481# Whether dlopen of statically linked programs is supported. 18482dlopen_self_static=$enable_dlopen_self_static 18483 18484# Commands to strip libraries. 18485old_striplib=$lt_old_striplib 18486striplib=$lt_striplib 18487 18488 18489# The linker used to build libraries. 18490LD=$lt_LD 18491 18492# How to create reloadable object files. 18493reload_flag=$lt_reload_flag 18494reload_cmds=$lt_reload_cmds 18495 18496# Commands used to build an old-style archive. 18497old_archive_cmds=$lt_old_archive_cmds 18498 18499# A language specific compiler. 18500CC=$lt_compiler 18501 18502# Is the compiler the GNU compiler? 18503with_gcc=$GCC 18504 18505# Compiler flag to turn off builtin functions. 18506no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 18507 18508# Additional compiler flags for building library objects. 18509pic_flag=$lt_lt_prog_compiler_pic 18510 18511# How to pass a linker flag through the compiler. 18512wl=$lt_lt_prog_compiler_wl 18513 18514# Compiler flag to prevent dynamic linking. 18515link_static_flag=$lt_lt_prog_compiler_static 18516 18517# Does compiler simultaneously support -c and -o options? 18518compiler_c_o=$lt_lt_cv_prog_compiler_c_o 18519 18520# Whether or not to add -lc for building shared libraries. 18521build_libtool_need_lc=$archive_cmds_need_lc 18522 18523# Whether or not to disallow shared libs when runtime libs are static. 18524allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 18525 18526# Compiler flag to allow reflexive dlopens. 18527export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 18528 18529# Compiler flag to generate shared objects directly from archives. 18530whole_archive_flag_spec=$lt_whole_archive_flag_spec 18531 18532# Whether the compiler copes with passing no objects directly. 18533compiler_needs_object=$lt_compiler_needs_object 18534 18535# Create an old-style archive from a shared archive. 18536old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 18537 18538# Create a temporary old-style archive to link instead of a shared archive. 18539old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 18540 18541# Commands used to build a shared archive. 18542archive_cmds=$lt_archive_cmds 18543archive_expsym_cmds=$lt_archive_expsym_cmds 18544 18545# Commands used to build a loadable module if different from building 18546# a shared archive. 18547module_cmds=$lt_module_cmds 18548module_expsym_cmds=$lt_module_expsym_cmds 18549 18550# Whether we are building with GNU ld or not. 18551with_gnu_ld=$lt_with_gnu_ld 18552 18553# Flag that allows shared libraries with undefined symbols to be built. 18554allow_undefined_flag=$lt_allow_undefined_flag 18555 18556# Flag that enforces no undefined symbols. 18557no_undefined_flag=$lt_no_undefined_flag 18558 18559# Flag to hardcode \$libdir into a binary during linking. 18560# This must work even if \$libdir does not exist 18561hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 18562 18563# Whether we need a single "-rpath" flag with a separated argument. 18564hardcode_libdir_separator=$lt_hardcode_libdir_separator 18565 18566# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 18567# DIR into the resulting binary. 18568hardcode_direct=$hardcode_direct 18569 18570# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 18571# DIR into the resulting binary and the resulting library dependency is 18572# "absolute",i.e impossible to change by setting \$shlibpath_var if the 18573# library is relocated. 18574hardcode_direct_absolute=$hardcode_direct_absolute 18575 18576# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 18577# into the resulting binary. 18578hardcode_minus_L=$hardcode_minus_L 18579 18580# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 18581# into the resulting binary. 18582hardcode_shlibpath_var=$hardcode_shlibpath_var 18583 18584# Set to "yes" if building a shared library automatically hardcodes DIR 18585# into the library and all subsequent libraries and executables linked 18586# against it. 18587hardcode_automatic=$hardcode_automatic 18588 18589# Set to yes if linker adds runtime paths of dependent libraries 18590# to runtime path list. 18591inherit_rpath=$inherit_rpath 18592 18593# Whether libtool must link a program against all its dependency libraries. 18594link_all_deplibs=$link_all_deplibs 18595 18596# Set to "yes" if exported symbols are required. 18597always_export_symbols=$always_export_symbols 18598 18599# The commands to list exported symbols. 18600export_symbols_cmds=$lt_export_symbols_cmds 18601 18602# Symbols that should not be listed in the preloaded symbols. 18603exclude_expsyms=$lt_exclude_expsyms 18604 18605# Symbols that must always be exported. 18606include_expsyms=$lt_include_expsyms 18607 18608# Commands necessary for linking programs (against libraries) with templates. 18609prelink_cmds=$lt_prelink_cmds 18610 18611# Commands necessary for finishing linking programs. 18612postlink_cmds=$lt_postlink_cmds 18613 18614# Specify filename containing input files. 18615file_list_spec=$lt_file_list_spec 18616 18617# How to hardcode a shared library path into an executable. 18618hardcode_action=$hardcode_action 18619 18620# ### END LIBTOOL CONFIG 18621 18622_LT_EOF 18623 18624 cat <<'_LT_EOF' >> "$cfgfile" 18625 18626# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 18627 18628# func_munge_path_list VARIABLE PATH 18629# ----------------------------------- 18630# VARIABLE is name of variable containing _space_ separated list of 18631# directories to be munged by the contents of PATH, which is string 18632# having a format: 18633# "DIR[:DIR]:" 18634# string "DIR[ DIR]" will be prepended to VARIABLE 18635# ":DIR[:DIR]" 18636# string "DIR[ DIR]" will be appended to VARIABLE 18637# "DIRP[:DIRP]::[DIRA:]DIRA" 18638# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 18639# "DIRA[ DIRA]" will be appended to VARIABLE 18640# "DIR[:DIR]" 18641# VARIABLE will be replaced by "DIR[ DIR]" 18642func_munge_path_list () 18643{ 18644 case x@S|@2 in 18645 x) 18646 ;; 18647 *:) 18648 eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'` \@S|@@S|@1\" 18649 ;; 18650 x:*) 18651 eval @S|@1=\"\@S|@@S|@1 `$ECHO @S|@2 | $SED 's/:/ /g'`\" 18652 ;; 18653 *::*) 18654 eval @S|@1=\"\@S|@@S|@1\ `$ECHO @S|@2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 18655 eval @S|@1=\"`$ECHO @S|@2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \@S|@@S|@1\" 18656 ;; 18657 *) 18658 eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'`\" 18659 ;; 18660 esac 18661} 18662 18663 18664# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 18665func_cc_basename () 18666{ 18667 for cc_temp in @S|@*""; do 18668 case $cc_temp in 18669 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 18670 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 18671 \-*) ;; 18672 *) break;; 18673 esac 18674 done 18675 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 18676} 18677 18678 18679# ### END FUNCTIONS SHARED WITH CONFIGURE 18680 18681_LT_EOF 18682 18683 case $host_os in 18684 aix3*) 18685 cat <<\_LT_EOF >> "$cfgfile" 18686# AIX sometimes has problems with the GCC collect2 program. For some 18687# reason, if we set the COLLECT_NAMES environment variable, the problems 18688# vanish in a puff of smoke. 18689if test set != "${COLLECT_NAMES+set}"; then 18690 COLLECT_NAMES= 18691 export COLLECT_NAMES 18692fi 18693_LT_EOF 18694 ;; 18695 esac 18696 18697 18698ltmain=$ac_aux_dir/ltmain.sh 18699 18700 18701 # We use sed instead of cat because bash on DJGPP gets confused if 18702 # if finds mixed CR/LF and LF-only lines. Since sed operates in 18703 # text mode, it properly converts lines to CR/LF. This bash problem 18704 # is reportedly fixed, but why not run on old versions too? 18705 sed '$q' "$ltmain" >> "$cfgfile" \ 18706 || (rm -f "$cfgfile"; exit 1) 18707 18708 mv -f "$cfgfile" "$ofile" || 18709 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 18710 chmod +x "$ofile" 18711 18712 ;; 18713 18714 esac 18715done # for ac_tag 18716 18717 18718as_fn_exit 0 18719_ACEOF 18720ac_clean_files=$ac_clean_files_save 18721 18722test $ac_write_fail = 0 || 18723 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 18724 18725 18726# configure is writing to config.log, and then calls config.status. 18727# config.status does its own redirection, appending to config.log. 18728# Unfortunately, on DOS this fails, as config.log is still kept open 18729# by configure, so config.status won't be able to write to it; its 18730# output is simply discarded. So we exec the FD to /dev/null, 18731# effectively closing config.log, so it can be properly (re)opened and 18732# appended to by config.status. When coming back to configure, we 18733# need to make the FD available again. 18734if test "$no_create" != yes; then 18735 ac_cs_success=: 18736 ac_config_status_args= 18737 test "$silent" = yes && 18738 ac_config_status_args="$ac_config_status_args --quiet" 18739 exec 5>/dev/null 18740 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 18741 exec 5>>config.log 18742 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 18743 # would make configure fail if this is the last instruction. 18744 $ac_cs_success || as_fn_exit 1 18745fi 18746if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 18747 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 18748$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 18749fi 18750 18751