1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for file 5.40. 4# 5# Report bugs to <christos@astron.com>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 9# 10# 11# This configure script is free software; the Free Software Foundation 12# gives unlimited permission to copy, distribute and modify it. 13## -------------------- ## 14## M4sh Initialization. ## 15## -------------------- ## 16 17# Be more Bourne compatible 18DUALCASE=1; export DUALCASE # for MKS sh 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32esac 33fi 34 35 36as_nl=' 37' 38export as_nl 39# Printing a long string crashes Solaris 7 /usr/bin/printf. 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43# Prefer a ksh shell builtin over an external printf program on Solaris, 44# but without wasting forks for bash or zsh. 45if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83 84# IFS 85# We need space, tab and new line, in precisely that order. Quoting is 86# there to prevent editors from complaining about space-tab. 87# (If _AS_PATH_WALK were called with IFS unset, it would disable word 88# splitting by setting IFS to empty value.) 89IFS=" "" $as_nl" 90 91# Find who we are. Look in the path if we contain no directory separator. 92as_myself= 93case $0 in #(( 94 *[\\/]* ) as_myself=$0 ;; 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96for as_dir in $PATH 97do 98 IFS=$as_save_IFS 99 test -z "$as_dir" && as_dir=. 100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 106# We did not find ourselves, most probably we were run as `sh COMMAND' 107# in which case we are not to be found in the path. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116# Unset variables that we do not need and which cause bugs (e.g. in 117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 118# suppresses any "Segmentation fault" message there. '((' could 119# trigger a bug in pdksh 5.2.14. 120for as_var in BASH_ENV ENV MAIL MAILPATH 121do eval test x\${$as_var+set} = xset \ 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123done 124PS1='$ ' 125PS2='> ' 126PS4='+ ' 127 128# NLS nuisances. 129LC_ALL=C 130export LC_ALL 131LANGUAGE=C 132export LANGUAGE 133 134# CDPATH. 135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136 137# Use a proper internal environment variable to ensure we don't fall 138 # into an infinite loop, continuously re-executing ourselves. 139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 140 _as_can_reexec=no; export _as_can_reexec; 141 # We cannot yet assume a decent shell, so we have to provide a 142# neutralization value for shells without unset; and this also 143# works around shells that cannot unset nonexistent variables. 144# Preserve -v and -x to the replacement shell. 145BASH_ENV=/dev/null 146ENV=/dev/null 147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 148case $- in # (((( 149 *v*x* | *x*v* ) as_opts=-vx ;; 150 *v* ) as_opts=-v ;; 151 *x* ) as_opts=-x ;; 152 * ) as_opts= ;; 153esac 154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 155# Admittedly, this is quite paranoid, since all the known shells bail 156# out after a failed `exec'. 157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 158as_fn_exit 255 159 fi 160 # We don't want this to propagate to other subprocesses. 161 { _as_can_reexec=; unset _as_can_reexec;} 162if test "x$CONFIG_SHELL" = x; then 163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 164 emulate sh 165 NULLCMD=: 166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 167 # is contrary to our usage. Disable this feature. 168 alias -g '\${1+\"\$@\"}'='\"\$@\"' 169 setopt NO_GLOB_SUBST 170else 171 case \`(set -o) 2>/dev/null\` in #( 172 *posix*) : 173 set -o posix ;; #( 174 *) : 175 ;; 176esac 177fi 178" 179 as_required="as_fn_return () { (exit \$1); } 180as_fn_success () { as_fn_return 0; } 181as_fn_failure () { as_fn_return 1; } 182as_fn_ret_success () { return 0; } 183as_fn_ret_failure () { return 1; } 184 185exitcode=0 186as_fn_success || { exitcode=1; echo as_fn_success failed.; } 187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 191 192else 193 exitcode=1; echo positional parameters were not saved. 194fi 195test x\$exitcode = x0 || exit 1 196test -x / || exit 1" 197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 201test \$(( 1 + 1 )) = 2 || exit 1 202 203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 207 PATH=/empty FPATH=/empty; export PATH FPATH 208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" 210 if (eval "$as_required") 2>/dev/null; then : 211 as_have_required=yes 212else 213 as_have_required=no 214fi 215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 216 217else 218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 219as_found=false 220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 221do 222 IFS=$as_save_IFS 223 test -z "$as_dir" && as_dir=. 224 as_found=: 225 case $as_dir in #( 226 /*) 227 for as_base in sh bash ksh sh5; do 228 # Try only shells that exist, to save several forks. 229 as_shell=$as_dir/$as_base 230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 CONFIG_SHELL=$as_shell as_have_required=yes 233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 234 break 2 235fi 236fi 237 done;; 238 esac 239 as_found=false 240done 241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 243 CONFIG_SHELL=$SHELL as_have_required=yes 244fi; } 245IFS=$as_save_IFS 246 247 248 if test "x$CONFIG_SHELL" != x; then : 249 export CONFIG_SHELL 250 # We cannot yet assume a decent shell, so we have to provide a 251# neutralization value for shells without unset; and this also 252# works around shells that cannot unset nonexistent variables. 253# Preserve -v and -x to the replacement shell. 254BASH_ENV=/dev/null 255ENV=/dev/null 256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 257case $- in # (((( 258 *v*x* | *x*v* ) as_opts=-vx ;; 259 *v* ) as_opts=-v ;; 260 *x* ) as_opts=-x ;; 261 * ) as_opts= ;; 262esac 263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 264# Admittedly, this is quite paranoid, since all the known shells bail 265# out after a failed `exec'. 266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 267exit 255 268fi 269 270 if test x$as_have_required = xno; then : 271 $as_echo "$0: This script requires a shell more modern than all" 272 $as_echo "$0: the shells that I found on your system." 273 if test x${ZSH_VERSION+set} = xset ; then 274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 275 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 276 else 277 $as_echo "$0: Please tell bug-autoconf@gnu.org and 278$0: christos@astron.com about your system, including any 279$0: error possibly output before this message. Then install 280$0: a modern shell, or manually run the script under such a 281$0: shell if you do have one." 282 fi 283 exit 1 284fi 285fi 286fi 287SHELL=${CONFIG_SHELL-/bin/sh} 288export SHELL 289# Unset more variables known to interfere with behavior of common tools. 290CLICOLOR_FORCE= GREP_OPTIONS= 291unset CLICOLOR_FORCE GREP_OPTIONS 292 293## --------------------- ## 294## M4sh Shell Functions. ## 295## --------------------- ## 296# as_fn_unset VAR 297# --------------- 298# Portably unset VAR. 299as_fn_unset () 300{ 301 { eval $1=; unset $1;} 302} 303as_unset=as_fn_unset 304 305# as_fn_set_status STATUS 306# ----------------------- 307# Set $? to STATUS, without forking. 308as_fn_set_status () 309{ 310 return $1 311} # as_fn_set_status 312 313# as_fn_exit STATUS 314# ----------------- 315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 316as_fn_exit () 317{ 318 set +e 319 as_fn_set_status $1 320 exit $1 321} # as_fn_exit 322 323# as_fn_mkdir_p 324# ------------- 325# Create "$as_dir" as a directory, including parents if necessary. 326as_fn_mkdir_p () 327{ 328 329 case $as_dir in #( 330 -*) as_dir=./$as_dir;; 331 esac 332 test -d "$as_dir" || eval $as_mkdir_p || { 333 as_dirs= 334 while :; do 335 case $as_dir in #( 336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 337 *) as_qdir=$as_dir;; 338 esac 339 as_dirs="'$as_qdir' $as_dirs" 340 as_dir=`$as_dirname -- "$as_dir" || 341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 342 X"$as_dir" : 'X\(//\)[^/]' \| \ 343 X"$as_dir" : 'X\(//\)$' \| \ 344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 345$as_echo X"$as_dir" | 346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 347 s//\1/ 348 q 349 } 350 /^X\(\/\/\)[^/].*/{ 351 s//\1/ 352 q 353 } 354 /^X\(\/\/\)$/{ 355 s//\1/ 356 q 357 } 358 /^X\(\/\).*/{ 359 s//\1/ 360 q 361 } 362 s/.*/./; q'` 363 test -d "$as_dir" && break 364 done 365 test -z "$as_dirs" || eval "mkdir $as_dirs" 366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 367 368 369} # as_fn_mkdir_p 370 371# as_fn_executable_p FILE 372# ----------------------- 373# Test if FILE is an executable regular file. 374as_fn_executable_p () 375{ 376 test -f "$1" && test -x "$1" 377} # as_fn_executable_p 378# as_fn_append VAR VALUE 379# ---------------------- 380# Append the text in VALUE to the end of the definition contained in VAR. Take 381# advantage of any shell optimizations that allow amortized linear growth over 382# repeated appends, instead of the typical quadratic growth present in naive 383# implementations. 384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 385 eval 'as_fn_append () 386 { 387 eval $1+=\$2 388 }' 389else 390 as_fn_append () 391 { 392 eval $1=\$$1\$2 393 } 394fi # as_fn_append 395 396# as_fn_arith ARG... 397# ------------------ 398# Perform arithmetic evaluation on the ARGs, and store the result in the 399# global $as_val. Take advantage of shells that can avoid forks. The arguments 400# must be portable across $(()) and expr. 401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 402 eval 'as_fn_arith () 403 { 404 as_val=$(( $* )) 405 }' 406else 407 as_fn_arith () 408 { 409 as_val=`expr "$@" || test $? -eq 1` 410 } 411fi # as_fn_arith 412 413 414# as_fn_error STATUS ERROR [LINENO LOG_FD] 415# ---------------------------------------- 416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 418# script with STATUS, using 1 if that was 0. 419as_fn_error () 420{ 421 as_status=$1; test $as_status -eq 0 && as_status=1 422 if test "$4"; then 423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 425 fi 426 $as_echo "$as_me: error: $2" >&2 427 as_fn_exit $as_status 428} # as_fn_error 429 430if expr a : '\(a\)' >/dev/null 2>&1 && 431 test "X`expr 00001 : '.*\(...\)'`" = X001; then 432 as_expr=expr 433else 434 as_expr=false 435fi 436 437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 438 as_basename=basename 439else 440 as_basename=false 441fi 442 443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 444 as_dirname=dirname 445else 446 as_dirname=false 447fi 448 449as_me=`$as_basename -- "$0" || 450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 451 X"$0" : 'X\(//\)$' \| \ 452 X"$0" : 'X\(/\)' \| . 2>/dev/null || 453$as_echo X/"$0" | 454 sed '/^.*\/\([^/][^/]*\)\/*$/{ 455 s//\1/ 456 q 457 } 458 /^X\/\(\/\/\)$/{ 459 s//\1/ 460 q 461 } 462 /^X\/\(\/\).*/{ 463 s//\1/ 464 q 465 } 466 s/.*/./; q'` 467 468# Avoid depending upon Character Ranges. 469as_cr_letters='abcdefghijklmnopqrstuvwxyz' 470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 471as_cr_Letters=$as_cr_letters$as_cr_LETTERS 472as_cr_digits='0123456789' 473as_cr_alnum=$as_cr_Letters$as_cr_digits 474 475 476 as_lineno_1=$LINENO as_lineno_1a=$LINENO 477 as_lineno_2=$LINENO as_lineno_2a=$LINENO 478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 481 sed -n ' 482 p 483 /[$]LINENO/= 484 ' <$as_myself | 485 sed ' 486 s/[$]LINENO.*/&-/ 487 t lineno 488 b 489 :lineno 490 N 491 :loop 492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 493 t loop 494 s/-\n.*// 495 ' >$as_me.lineno && 496 chmod +x "$as_me.lineno" || 497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 498 499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 500 # already done that, so ensure we don't try to do so again and fall 501 # in an infinite loop. This has already happened in practice. 502 _as_can_reexec=no; export _as_can_reexec 503 # Don't try to exec as it changes $[0], causing all sort of problems 504 # (the dirname of $[0] is not the place where we might find the 505 # original and so on. Autoconf is especially sensitive to this). 506 . "./$as_me.lineno" 507 # Exit status is that of the last command. 508 exit 509} 510 511ECHO_C= ECHO_N= ECHO_T= 512case `echo -n x` in #((((( 513-n*) 514 case `echo 'xy\c'` in 515 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 516 xy) ECHO_C='\c';; 517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 518 ECHO_T=' ';; 519 esac;; 520*) 521 ECHO_N='-n';; 522esac 523 524rm -f conf$$ conf$$.exe conf$$.file 525if test -d conf$$.dir; then 526 rm -f conf$$.dir/conf$$.file 527else 528 rm -f conf$$.dir 529 mkdir conf$$.dir 2>/dev/null 530fi 531if (echo >conf$$.file) 2>/dev/null; then 532 if ln -s conf$$.file conf$$ 2>/dev/null; then 533 as_ln_s='ln -s' 534 # ... but there are two gotchas: 535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 537 # In both cases, we have to default to `cp -pR'. 538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 539 as_ln_s='cp -pR' 540 elif ln conf$$.file conf$$ 2>/dev/null; then 541 as_ln_s=ln 542 else 543 as_ln_s='cp -pR' 544 fi 545else 546 as_ln_s='cp -pR' 547fi 548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 549rmdir conf$$.dir 2>/dev/null 550 551if mkdir -p . 2>/dev/null; then 552 as_mkdir_p='mkdir -p "$as_dir"' 553else 554 test -d ./-p && rmdir ./-p 555 as_mkdir_p=false 556fi 557 558as_test_x='test -x' 559as_executable_p=as_fn_executable_p 560 561# Sed expression to map a string onto a valid CPP name. 562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 563 564# Sed expression to map a string onto a valid variable name. 565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 566 567SHELL=${CONFIG_SHELL-/bin/sh} 568 569 570test -n "$DJDIR" || exec 7<&0 </dev/null 571exec 6>&1 572 573# Name of the host. 574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 575# so uname gets run too. 576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 577 578# 579# Initializations. 580# 581ac_default_prefix=/usr/local 582ac_clean_files= 583ac_config_libobj_dir=. 584LIBOBJS= 585cross_compiling=no 586subdirs= 587MFLAGS= 588MAKEFLAGS= 589 590# Identity of this package. 591PACKAGE_NAME='file' 592PACKAGE_TARNAME='file' 593PACKAGE_VERSION='5.40' 594PACKAGE_STRING='file 5.40' 595PACKAGE_BUGREPORT='christos@astron.com' 596PACKAGE_URL='' 597 598# Factoring default headers for most tests. 599ac_includes_default="\ 600#include <stdio.h> 601#ifdef HAVE_SYS_TYPES_H 602# include <sys/types.h> 603#endif 604#ifdef HAVE_SYS_STAT_H 605# include <sys/stat.h> 606#endif 607#ifdef STDC_HEADERS 608# include <stdlib.h> 609# include <stddef.h> 610#else 611# ifdef HAVE_STDLIB_H 612# include <stdlib.h> 613# endif 614#endif 615#ifdef HAVE_STRING_H 616# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 617# include <memory.h> 618# endif 619# include <string.h> 620#endif 621#ifdef HAVE_STRINGS_H 622# include <strings.h> 623#endif 624#ifdef HAVE_INTTYPES_H 625# include <inttypes.h> 626#endif 627#ifdef HAVE_STDINT_H 628# include <stdint.h> 629#endif 630#ifdef HAVE_UNISTD_H 631# include <unistd.h> 632#endif" 633 634ac_header_list= 635ac_subst_vars='am__EXEEXT_FALSE 636am__EXEEXT_TRUE 637LTLIBOBJS 638IS_CROSS_COMPILE_FALSE 639IS_CROSS_COMPILE_TRUE 640LIBOBJS 641HAVE_VISIBILITY 642CFLAG_VISIBILITY 643LT_SYS_LIBRARY_PATH 644OTOOL64 645OTOOL 646LIPO 647NMEDIT 648DSYMUTIL 649MANIFEST_TOOL 650RANLIB 651ac_ct_AR 652AR 653DLLTOOL 654OBJDUMP 655NM 656ac_ct_DUMPBIN 657DUMPBIN 658LD 659FGREP 660SED 661LIBTOOL 662LN_S 663EGREP 664GREP 665CPP 666am__fastdepCC_FALSE 667am__fastdepCC_TRUE 668CCDEPMODE 669am__nodep 670AMDEPBACKSLASH 671AMDEP_FALSE 672AMDEP_TRUE 673am__include 674DEPDIR 675OBJEXT 676EXEEXT 677ac_ct_CC 678CPPFLAGS 679LDFLAGS 680CFLAGS 681CC 682WARNINGS 683FSECT5_FALSE 684FSECT5_TRUE 685fsect 686pkgdatadir 687MINGW_FALSE 688MINGW_TRUE 689MINGW 690host_os 691host_vendor 692host_cpu 693host 694build_os 695build_vendor 696build_cpu 697build 698MAINT 699MAINTAINER_MODE_FALSE 700MAINTAINER_MODE_TRUE 701AM_BACKSLASH 702AM_DEFAULT_VERBOSITY 703AM_DEFAULT_V 704AM_V 705am__untar 706am__tar 707AMTAR 708am__leading_dot 709SET_MAKE 710AWK 711mkdir_p 712MKDIR_P 713INSTALL_STRIP_PROGRAM 714STRIP 715install_sh 716MAKEINFO 717AUTOHEADER 718AUTOMAKE 719AUTOCONF 720ACLOCAL 721VERSION 722PACKAGE 723CYGPATH_W 724am__isrc 725INSTALL_DATA 726INSTALL_SCRIPT 727INSTALL_PROGRAM 728target_alias 729host_alias 730build_alias 731LIBS 732ECHO_T 733ECHO_N 734ECHO_C 735DEFS 736mandir 737localedir 738libdir 739psdir 740pdfdir 741dvidir 742htmldir 743infodir 744docdir 745oldincludedir 746includedir 747localstatedir 748sharedstatedir 749sysconfdir 750datadir 751datarootdir 752libexecdir 753sbindir 754bindir 755program_transform_name 756prefix 757exec_prefix 758PACKAGE_URL 759PACKAGE_BUGREPORT 760PACKAGE_STRING 761PACKAGE_VERSION 762PACKAGE_TARNAME 763PACKAGE_NAME 764PATH_SEPARATOR 765SHELL 766am__quote' 767ac_subst_files='' 768ac_user_opts=' 769enable_option_checking 770enable_silent_rules 771enable_maintainer_mode 772enable_elf 773enable_elf_core 774enable_zlib 775enable_bzlib 776enable_xzlib 777enable_libseccomp 778enable_fsect_man5 779enable_dependency_tracking 780enable_static 781with_pic 782enable_shared 783enable_fast_install 784with_aix_soname 785with_gnu_ld 786with_sysroot 787enable_libtool_lock 788enable_largefile 789enable_warnings 790' 791 ac_precious_vars='build_alias 792host_alias 793target_alias 794CC 795CFLAGS 796LDFLAGS 797LIBS 798CPPFLAGS 799CPP 800LT_SYS_LIBRARY_PATH' 801 802 803# Initialize some variables set by options. 804ac_init_help= 805ac_init_version=false 806ac_unrecognized_opts= 807ac_unrecognized_sep= 808# The variables have the same names as the options, with 809# dashes changed to underlines. 810cache_file=/dev/null 811exec_prefix=NONE 812no_create= 813no_recursion= 814prefix=NONE 815program_prefix=NONE 816program_suffix=NONE 817program_transform_name=s,x,x, 818silent= 819site= 820srcdir= 821verbose= 822x_includes=NONE 823x_libraries=NONE 824 825# Installation directory options. 826# These are left unexpanded so users can "make install exec_prefix=/foo" 827# and all the variables that are supposed to be based on exec_prefix 828# by default will actually change. 829# Use braces instead of parens because sh, perl, etc. also accept them. 830# (The list follows the same order as the GNU Coding Standards.) 831bindir='${exec_prefix}/bin' 832sbindir='${exec_prefix}/sbin' 833libexecdir='${exec_prefix}/libexec' 834datarootdir='${prefix}/share' 835datadir='${datarootdir}' 836sysconfdir='${prefix}/etc' 837sharedstatedir='${prefix}/com' 838localstatedir='${prefix}/var' 839includedir='${prefix}/include' 840oldincludedir='/usr/include' 841docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 842infodir='${datarootdir}/info' 843htmldir='${docdir}' 844dvidir='${docdir}' 845pdfdir='${docdir}' 846psdir='${docdir}' 847libdir='${exec_prefix}/lib' 848localedir='${datarootdir}/locale' 849mandir='${datarootdir}/man' 850 851ac_prev= 852ac_dashdash= 853for ac_option 854do 855 # If the previous option needs an argument, assign it. 856 if test -n "$ac_prev"; then 857 eval $ac_prev=\$ac_option 858 ac_prev= 859 continue 860 fi 861 862 case $ac_option in 863 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 864 *=) ac_optarg= ;; 865 *) ac_optarg=yes ;; 866 esac 867 868 # Accept the important Cygnus configure options, so we can diagnose typos. 869 870 case $ac_dashdash$ac_option in 871 --) 872 ac_dashdash=yes ;; 873 874 -bindir | --bindir | --bindi | --bind | --bin | --bi) 875 ac_prev=bindir ;; 876 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 877 bindir=$ac_optarg ;; 878 879 -build | --build | --buil | --bui | --bu) 880 ac_prev=build_alias ;; 881 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 882 build_alias=$ac_optarg ;; 883 884 -cache-file | --cache-file | --cache-fil | --cache-fi \ 885 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 886 ac_prev=cache_file ;; 887 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 888 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 889 cache_file=$ac_optarg ;; 890 891 --config-cache | -C) 892 cache_file=config.cache ;; 893 894 -datadir | --datadir | --datadi | --datad) 895 ac_prev=datadir ;; 896 -datadir=* | --datadir=* | --datadi=* | --datad=*) 897 datadir=$ac_optarg ;; 898 899 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 900 | --dataroo | --dataro | --datar) 901 ac_prev=datarootdir ;; 902 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 903 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 904 datarootdir=$ac_optarg ;; 905 906 -disable-* | --disable-*) 907 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 908 # Reject names that are not valid shell variable names. 909 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 910 as_fn_error $? "invalid feature name: $ac_useropt" 911 ac_useropt_orig=$ac_useropt 912 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 913 case $ac_user_opts in 914 *" 915"enable_$ac_useropt" 916"*) ;; 917 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 918 ac_unrecognized_sep=', ';; 919 esac 920 eval enable_$ac_useropt=no ;; 921 922 -docdir | --docdir | --docdi | --doc | --do) 923 ac_prev=docdir ;; 924 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 925 docdir=$ac_optarg ;; 926 927 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 928 ac_prev=dvidir ;; 929 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 930 dvidir=$ac_optarg ;; 931 932 -enable-* | --enable-*) 933 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 934 # Reject names that are not valid shell variable names. 935 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 936 as_fn_error $? "invalid feature name: $ac_useropt" 937 ac_useropt_orig=$ac_useropt 938 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 939 case $ac_user_opts in 940 *" 941"enable_$ac_useropt" 942"*) ;; 943 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 944 ac_unrecognized_sep=', ';; 945 esac 946 eval enable_$ac_useropt=\$ac_optarg ;; 947 948 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 949 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 950 | --exec | --exe | --ex) 951 ac_prev=exec_prefix ;; 952 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 953 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 954 | --exec=* | --exe=* | --ex=*) 955 exec_prefix=$ac_optarg ;; 956 957 -gas | --gas | --ga | --g) 958 # Obsolete; use --with-gas. 959 with_gas=yes ;; 960 961 -help | --help | --hel | --he | -h) 962 ac_init_help=long ;; 963 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 964 ac_init_help=recursive ;; 965 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 966 ac_init_help=short ;; 967 968 -host | --host | --hos | --ho) 969 ac_prev=host_alias ;; 970 -host=* | --host=* | --hos=* | --ho=*) 971 host_alias=$ac_optarg ;; 972 973 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 974 ac_prev=htmldir ;; 975 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 976 | --ht=*) 977 htmldir=$ac_optarg ;; 978 979 -includedir | --includedir | --includedi | --included | --include \ 980 | --includ | --inclu | --incl | --inc) 981 ac_prev=includedir ;; 982 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 983 | --includ=* | --inclu=* | --incl=* | --inc=*) 984 includedir=$ac_optarg ;; 985 986 -infodir | --infodir | --infodi | --infod | --info | --inf) 987 ac_prev=infodir ;; 988 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 989 infodir=$ac_optarg ;; 990 991 -libdir | --libdir | --libdi | --libd) 992 ac_prev=libdir ;; 993 -libdir=* | --libdir=* | --libdi=* | --libd=*) 994 libdir=$ac_optarg ;; 995 996 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 997 | --libexe | --libex | --libe) 998 ac_prev=libexecdir ;; 999 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1000 | --libexe=* | --libex=* | --libe=*) 1001 libexecdir=$ac_optarg ;; 1002 1003 -localedir | --localedir | --localedi | --localed | --locale) 1004 ac_prev=localedir ;; 1005 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1006 localedir=$ac_optarg ;; 1007 1008 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1009 | --localstate | --localstat | --localsta | --localst | --locals) 1010 ac_prev=localstatedir ;; 1011 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1012 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1013 localstatedir=$ac_optarg ;; 1014 1015 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1016 ac_prev=mandir ;; 1017 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1018 mandir=$ac_optarg ;; 1019 1020 -nfp | --nfp | --nf) 1021 # Obsolete; use --without-fp. 1022 with_fp=no ;; 1023 1024 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1025 | --no-cr | --no-c | -n) 1026 no_create=yes ;; 1027 1028 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1029 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1030 no_recursion=yes ;; 1031 1032 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1033 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1034 | --oldin | --oldi | --old | --ol | --o) 1035 ac_prev=oldincludedir ;; 1036 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1037 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1038 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1039 oldincludedir=$ac_optarg ;; 1040 1041 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1042 ac_prev=prefix ;; 1043 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1044 prefix=$ac_optarg ;; 1045 1046 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1047 | --program-pre | --program-pr | --program-p) 1048 ac_prev=program_prefix ;; 1049 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1050 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1051 program_prefix=$ac_optarg ;; 1052 1053 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1054 | --program-suf | --program-su | --program-s) 1055 ac_prev=program_suffix ;; 1056 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1057 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1058 program_suffix=$ac_optarg ;; 1059 1060 -program-transform-name | --program-transform-name \ 1061 | --program-transform-nam | --program-transform-na \ 1062 | --program-transform-n | --program-transform- \ 1063 | --program-transform | --program-transfor \ 1064 | --program-transfo | --program-transf \ 1065 | --program-trans | --program-tran \ 1066 | --progr-tra | --program-tr | --program-t) 1067 ac_prev=program_transform_name ;; 1068 -program-transform-name=* | --program-transform-name=* \ 1069 | --program-transform-nam=* | --program-transform-na=* \ 1070 | --program-transform-n=* | --program-transform-=* \ 1071 | --program-transform=* | --program-transfor=* \ 1072 | --program-transfo=* | --program-transf=* \ 1073 | --program-trans=* | --program-tran=* \ 1074 | --progr-tra=* | --program-tr=* | --program-t=*) 1075 program_transform_name=$ac_optarg ;; 1076 1077 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1078 ac_prev=pdfdir ;; 1079 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1080 pdfdir=$ac_optarg ;; 1081 1082 -psdir | --psdir | --psdi | --psd | --ps) 1083 ac_prev=psdir ;; 1084 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1085 psdir=$ac_optarg ;; 1086 1087 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1088 | -silent | --silent | --silen | --sile | --sil) 1089 silent=yes ;; 1090 1091 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1092 ac_prev=sbindir ;; 1093 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1094 | --sbi=* | --sb=*) 1095 sbindir=$ac_optarg ;; 1096 1097 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1098 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1099 | --sharedst | --shareds | --shared | --share | --shar \ 1100 | --sha | --sh) 1101 ac_prev=sharedstatedir ;; 1102 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1103 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1104 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1105 | --sha=* | --sh=*) 1106 sharedstatedir=$ac_optarg ;; 1107 1108 -site | --site | --sit) 1109 ac_prev=site ;; 1110 -site=* | --site=* | --sit=*) 1111 site=$ac_optarg ;; 1112 1113 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1114 ac_prev=srcdir ;; 1115 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1116 srcdir=$ac_optarg ;; 1117 1118 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1119 | --syscon | --sysco | --sysc | --sys | --sy) 1120 ac_prev=sysconfdir ;; 1121 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1122 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1123 sysconfdir=$ac_optarg ;; 1124 1125 -target | --target | --targe | --targ | --tar | --ta | --t) 1126 ac_prev=target_alias ;; 1127 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1128 target_alias=$ac_optarg ;; 1129 1130 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1131 verbose=yes ;; 1132 1133 -version | --version | --versio | --versi | --vers | -V) 1134 ac_init_version=: ;; 1135 1136 -with-* | --with-*) 1137 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1138 # Reject names that are not valid shell variable names. 1139 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1140 as_fn_error $? "invalid package name: $ac_useropt" 1141 ac_useropt_orig=$ac_useropt 1142 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1143 case $ac_user_opts in 1144 *" 1145"with_$ac_useropt" 1146"*) ;; 1147 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1148 ac_unrecognized_sep=', ';; 1149 esac 1150 eval with_$ac_useropt=\$ac_optarg ;; 1151 1152 -without-* | --without-*) 1153 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1154 # Reject names that are not valid shell variable names. 1155 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1156 as_fn_error $? "invalid package name: $ac_useropt" 1157 ac_useropt_orig=$ac_useropt 1158 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1159 case $ac_user_opts in 1160 *" 1161"with_$ac_useropt" 1162"*) ;; 1163 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1164 ac_unrecognized_sep=', ';; 1165 esac 1166 eval with_$ac_useropt=no ;; 1167 1168 --x) 1169 # Obsolete; use --with-x. 1170 with_x=yes ;; 1171 1172 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1173 | --x-incl | --x-inc | --x-in | --x-i) 1174 ac_prev=x_includes ;; 1175 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1176 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1177 x_includes=$ac_optarg ;; 1178 1179 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1180 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1181 ac_prev=x_libraries ;; 1182 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1183 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1184 x_libraries=$ac_optarg ;; 1185 1186 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1187Try \`$0 --help' for more information" 1188 ;; 1189 1190 *=*) 1191 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1192 # Reject names that are not valid shell variable names. 1193 case $ac_envvar in #( 1194 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1195 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1196 esac 1197 eval $ac_envvar=\$ac_optarg 1198 export $ac_envvar ;; 1199 1200 *) 1201 # FIXME: should be removed in autoconf 3.0. 1202 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1203 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1204 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1205 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1206 ;; 1207 1208 esac 1209done 1210 1211if test -n "$ac_prev"; then 1212 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1213 as_fn_error $? "missing argument to $ac_option" 1214fi 1215 1216if test -n "$ac_unrecognized_opts"; then 1217 case $enable_option_checking in 1218 no) ;; 1219 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1220 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1221 esac 1222fi 1223 1224# Check all directory arguments for consistency. 1225for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1226 datadir sysconfdir sharedstatedir localstatedir includedir \ 1227 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1228 libdir localedir mandir 1229do 1230 eval ac_val=\$$ac_var 1231 # Remove trailing slashes. 1232 case $ac_val in 1233 */ ) 1234 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1235 eval $ac_var=\$ac_val;; 1236 esac 1237 # Be sure to have absolute directory names. 1238 case $ac_val in 1239 [\\/$]* | ?:[\\/]* ) continue;; 1240 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1241 esac 1242 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1243done 1244 1245# There might be people who depend on the old broken behavior: `$host' 1246# used to hold the argument of --host etc. 1247# FIXME: To remove some day. 1248build=$build_alias 1249host=$host_alias 1250target=$target_alias 1251 1252# FIXME: To remove some day. 1253if test "x$host_alias" != x; then 1254 if test "x$build_alias" = x; then 1255 cross_compiling=maybe 1256 elif test "x$build_alias" != "x$host_alias"; then 1257 cross_compiling=yes 1258 fi 1259fi 1260 1261ac_tool_prefix= 1262test -n "$host_alias" && ac_tool_prefix=$host_alias- 1263 1264test "$silent" = yes && exec 6>/dev/null 1265 1266 1267ac_pwd=`pwd` && test -n "$ac_pwd" && 1268ac_ls_di=`ls -di .` && 1269ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1270 as_fn_error $? "working directory cannot be determined" 1271test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1272 as_fn_error $? "pwd does not report name of working directory" 1273 1274 1275# Find the source files, if location was not specified. 1276if test -z "$srcdir"; then 1277 ac_srcdir_defaulted=yes 1278 # Try the directory containing this script, then the parent directory. 1279 ac_confdir=`$as_dirname -- "$as_myself" || 1280$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1281 X"$as_myself" : 'X\(//\)[^/]' \| \ 1282 X"$as_myself" : 'X\(//\)$' \| \ 1283 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1284$as_echo X"$as_myself" | 1285 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1286 s//\1/ 1287 q 1288 } 1289 /^X\(\/\/\)[^/].*/{ 1290 s//\1/ 1291 q 1292 } 1293 /^X\(\/\/\)$/{ 1294 s//\1/ 1295 q 1296 } 1297 /^X\(\/\).*/{ 1298 s//\1/ 1299 q 1300 } 1301 s/.*/./; q'` 1302 srcdir=$ac_confdir 1303 if test ! -r "$srcdir/$ac_unique_file"; then 1304 srcdir=.. 1305 fi 1306else 1307 ac_srcdir_defaulted=no 1308fi 1309if test ! -r "$srcdir/$ac_unique_file"; then 1310 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1311 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1312fi 1313ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1314ac_abs_confdir=`( 1315 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1316 pwd)` 1317# When building in place, set srcdir=. 1318if test "$ac_abs_confdir" = "$ac_pwd"; then 1319 srcdir=. 1320fi 1321# Remove unnecessary trailing slashes from srcdir. 1322# Double slashes in file names in object file debugging info 1323# mess up M-x gdb in Emacs. 1324case $srcdir in 1325*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1326esac 1327for ac_var in $ac_precious_vars; do 1328 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1329 eval ac_env_${ac_var}_value=\$${ac_var} 1330 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1331 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1332done 1333 1334# 1335# Report the --help message. 1336# 1337if test "$ac_init_help" = "long"; then 1338 # Omit some internal or obsolete options to make the list less imposing. 1339 # This message is too long to be a string in the A/UX 3.1 sh. 1340 cat <<_ACEOF 1341\`configure' configures file 5.40 to adapt to many kinds of systems. 1342 1343Usage: $0 [OPTION]... [VAR=VALUE]... 1344 1345To assign environment variables (e.g., CC, CFLAGS...), specify them as 1346VAR=VALUE. See below for descriptions of some of the useful variables. 1347 1348Defaults for the options are specified in brackets. 1349 1350Configuration: 1351 -h, --help display this help and exit 1352 --help=short display options specific to this package 1353 --help=recursive display the short help of all the included packages 1354 -V, --version display version information and exit 1355 -q, --quiet, --silent do not print \`checking ...' messages 1356 --cache-file=FILE cache test results in FILE [disabled] 1357 -C, --config-cache alias for \`--cache-file=config.cache' 1358 -n, --no-create do not create output files 1359 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1360 1361Installation directories: 1362 --prefix=PREFIX install architecture-independent files in PREFIX 1363 [$ac_default_prefix] 1364 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1365 [PREFIX] 1366 1367By default, \`make install' will install all the files in 1368\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1369an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1370for instance \`--prefix=\$HOME'. 1371 1372For better control, use the options below. 1373 1374Fine tuning of the installation directories: 1375 --bindir=DIR user executables [EPREFIX/bin] 1376 --sbindir=DIR system admin executables [EPREFIX/sbin] 1377 --libexecdir=DIR program executables [EPREFIX/libexec] 1378 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1379 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1380 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1381 --libdir=DIR object code libraries [EPREFIX/lib] 1382 --includedir=DIR C header files [PREFIX/include] 1383 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1384 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1385 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1386 --infodir=DIR info documentation [DATAROOTDIR/info] 1387 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1388 --mandir=DIR man documentation [DATAROOTDIR/man] 1389 --docdir=DIR documentation root [DATAROOTDIR/doc/file] 1390 --htmldir=DIR html documentation [DOCDIR] 1391 --dvidir=DIR dvi documentation [DOCDIR] 1392 --pdfdir=DIR pdf documentation [DOCDIR] 1393 --psdir=DIR ps documentation [DOCDIR] 1394_ACEOF 1395 1396 cat <<\_ACEOF 1397 1398Program names: 1399 --program-prefix=PREFIX prepend PREFIX to installed program names 1400 --program-suffix=SUFFIX append SUFFIX to installed program names 1401 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1402 1403System types: 1404 --build=BUILD configure for building on BUILD [guessed] 1405 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1406_ACEOF 1407fi 1408 1409if test -n "$ac_init_help"; then 1410 case $ac_init_help in 1411 short | recursive ) echo "Configuration of file 5.40:";; 1412 esac 1413 cat <<\_ACEOF 1414 1415Optional Features: 1416 --disable-option-checking ignore unrecognized --enable/--with options 1417 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1418 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1419 --enable-silent-rules less verbose build output (undo: "make V=1") 1420 --disable-silent-rules verbose build output (undo: "make V=0") 1421 --enable-maintainer-mode 1422 enable make rules and dependencies not useful (and 1423 sometimes confusing) to the casual installer 1424 --disable-elf disable builtin ELF support 1425 --disable-elf-core disable ELF core file support 1426 --disable-zlib disable zlib compression support [default=auto] 1427 --disable-bzlib disable bz2lib compression support [default=auto] 1428 --disable-xzlib disable liblzma/xz compression support 1429 [default=auto] 1430 --disable-libseccomp disable libseccomp sandboxing [default=auto] 1431 --enable-fsect-man5 enable file formats in man section 5 1432 --enable-dependency-tracking 1433 do not reject slow dependency extractors 1434 --disable-dependency-tracking 1435 speeds up one-time build 1436 --enable-static[=PKGS] build static libraries [default=no] 1437 --enable-shared[=PKGS] build shared libraries [default=yes] 1438 --enable-fast-install[=PKGS] 1439 optimize for fast installation [default=yes] 1440 --disable-libtool-lock avoid locking (might break parallel builds) 1441 --disable-largefile omit support for large files 1442 --disable-warnings disable compiler warnings 1443 1444Optional Packages: 1445 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1446 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1447 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1448 both] 1449 --with-aix-soname=aix|svr4|both 1450 shared library versioning (aka "SONAME") variant to 1451 provide on AIX, [default=aix]. 1452 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1453 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1454 compiler's sysroot if not specified). 1455 1456Some influential environment variables: 1457 CC C compiler command 1458 CFLAGS C compiler flags 1459 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1460 nonstandard directory <lib dir> 1461 LIBS libraries to pass to the linker, e.g. -l<library> 1462 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1463 you have headers in a nonstandard directory <include dir> 1464 CPP C preprocessor 1465 LT_SYS_LIBRARY_PATH 1466 User-defined run-time library search path. 1467 1468Use these variables to override the choices made by `configure' or to help 1469it to find libraries and programs with nonstandard names/locations. 1470 1471Report bugs to <christos@astron.com>. 1472_ACEOF 1473ac_status=$? 1474fi 1475 1476if test "$ac_init_help" = "recursive"; then 1477 # If there are subdirs, report their specific --help. 1478 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1479 test -d "$ac_dir" || 1480 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1481 continue 1482 ac_builddir=. 1483 1484case "$ac_dir" in 1485.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1486*) 1487 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1488 # A ".." for each directory in $ac_dir_suffix. 1489 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1490 case $ac_top_builddir_sub in 1491 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1492 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1493 esac ;; 1494esac 1495ac_abs_top_builddir=$ac_pwd 1496ac_abs_builddir=$ac_pwd$ac_dir_suffix 1497# for backward compatibility: 1498ac_top_builddir=$ac_top_build_prefix 1499 1500case $srcdir in 1501 .) # We are building in place. 1502 ac_srcdir=. 1503 ac_top_srcdir=$ac_top_builddir_sub 1504 ac_abs_top_srcdir=$ac_pwd ;; 1505 [\\/]* | ?:[\\/]* ) # Absolute name. 1506 ac_srcdir=$srcdir$ac_dir_suffix; 1507 ac_top_srcdir=$srcdir 1508 ac_abs_top_srcdir=$srcdir ;; 1509 *) # Relative name. 1510 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1511 ac_top_srcdir=$ac_top_build_prefix$srcdir 1512 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1513esac 1514ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1515 1516 cd "$ac_dir" || { ac_status=$?; continue; } 1517 # Check for guested configure. 1518 if test -f "$ac_srcdir/configure.gnu"; then 1519 echo && 1520 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1521 elif test -f "$ac_srcdir/configure"; then 1522 echo && 1523 $SHELL "$ac_srcdir/configure" --help=recursive 1524 else 1525 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1526 fi || ac_status=$? 1527 cd "$ac_pwd" || { ac_status=$?; break; } 1528 done 1529fi 1530 1531test -n "$ac_init_help" && exit $ac_status 1532if $ac_init_version; then 1533 cat <<\_ACEOF 1534file configure 5.40 1535generated by GNU Autoconf 2.69 1536 1537Copyright (C) 2012 Free Software Foundation, Inc. 1538This configure script is free software; the Free Software Foundation 1539gives unlimited permission to copy, distribute and modify it. 1540_ACEOF 1541 exit 1542fi 1543 1544## ------------------------ ## 1545## Autoconf initialization. ## 1546## ------------------------ ## 1547 1548# ac_fn_c_try_compile LINENO 1549# -------------------------- 1550# Try to compile conftest.$ac_ext, and return whether this succeeded. 1551ac_fn_c_try_compile () 1552{ 1553 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1554 rm -f conftest.$ac_objext 1555 if { { ac_try="$ac_compile" 1556case "(($ac_try" in 1557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1558 *) ac_try_echo=$ac_try;; 1559esac 1560eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1561$as_echo "$ac_try_echo"; } >&5 1562 (eval "$ac_compile") 2>conftest.err 1563 ac_status=$? 1564 if test -s conftest.err; then 1565 grep -v '^ *+' conftest.err >conftest.er1 1566 cat conftest.er1 >&5 1567 mv -f conftest.er1 conftest.err 1568 fi 1569 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1570 test $ac_status = 0; } && { 1571 test -z "$ac_c_werror_flag" || 1572 test ! -s conftest.err 1573 } && test -s conftest.$ac_objext; then : 1574 ac_retval=0 1575else 1576 $as_echo "$as_me: failed program was:" >&5 1577sed 's/^/| /' conftest.$ac_ext >&5 1578 1579 ac_retval=1 1580fi 1581 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1582 as_fn_set_status $ac_retval 1583 1584} # ac_fn_c_try_compile 1585 1586# ac_fn_c_try_cpp LINENO 1587# ---------------------- 1588# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1589ac_fn_c_try_cpp () 1590{ 1591 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1592 if { { ac_try="$ac_cpp conftest.$ac_ext" 1593case "(($ac_try" in 1594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1595 *) ac_try_echo=$ac_try;; 1596esac 1597eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1598$as_echo "$ac_try_echo"; } >&5 1599 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1600 ac_status=$? 1601 if test -s conftest.err; then 1602 grep -v '^ *+' conftest.err >conftest.er1 1603 cat conftest.er1 >&5 1604 mv -f conftest.er1 conftest.err 1605 fi 1606 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1607 test $ac_status = 0; } > conftest.i && { 1608 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1609 test ! -s conftest.err 1610 }; then : 1611 ac_retval=0 1612else 1613 $as_echo "$as_me: failed program was:" >&5 1614sed 's/^/| /' conftest.$ac_ext >&5 1615 1616 ac_retval=1 1617fi 1618 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1619 as_fn_set_status $ac_retval 1620 1621} # ac_fn_c_try_cpp 1622 1623# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1624# ------------------------------------------------------- 1625# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1626# the include files in INCLUDES and setting the cache variable VAR 1627# accordingly. 1628ac_fn_c_check_header_mongrel () 1629{ 1630 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1631 if eval \${$3+:} false; then : 1632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1633$as_echo_n "checking for $2... " >&6; } 1634if eval \${$3+:} false; then : 1635 $as_echo_n "(cached) " >&6 1636fi 1637eval ac_res=\$$3 1638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1639$as_echo "$ac_res" >&6; } 1640else 1641 # Is the header compilable? 1642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1643$as_echo_n "checking $2 usability... " >&6; } 1644cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1645/* end confdefs.h. */ 1646$4 1647#include <$2> 1648_ACEOF 1649if ac_fn_c_try_compile "$LINENO"; then : 1650 ac_header_compiler=yes 1651else 1652 ac_header_compiler=no 1653fi 1654rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1656$as_echo "$ac_header_compiler" >&6; } 1657 1658# Is the header present? 1659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1660$as_echo_n "checking $2 presence... " >&6; } 1661cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1662/* end confdefs.h. */ 1663#include <$2> 1664_ACEOF 1665if ac_fn_c_try_cpp "$LINENO"; then : 1666 ac_header_preproc=yes 1667else 1668 ac_header_preproc=no 1669fi 1670rm -f conftest.err conftest.i conftest.$ac_ext 1671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1672$as_echo "$ac_header_preproc" >&6; } 1673 1674# So? What about this header? 1675case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1676 yes:no: ) 1677 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1678$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1679 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1680$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1681 ;; 1682 no:yes:* ) 1683 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1684$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1685 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1686$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1687 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1688$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1689 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1690$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1691 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1692$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1693( $as_echo "## ---------------------------------- ## 1694## Report this to christos@astron.com ## 1695## ---------------------------------- ##" 1696 ) | sed "s/^/$as_me: WARNING: /" >&2 1697 ;; 1698esac 1699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1700$as_echo_n "checking for $2... " >&6; } 1701if eval \${$3+:} false; then : 1702 $as_echo_n "(cached) " >&6 1703else 1704 eval "$3=\$ac_header_compiler" 1705fi 1706eval ac_res=\$$3 1707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1708$as_echo "$ac_res" >&6; } 1709fi 1710 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1711 1712} # ac_fn_c_check_header_mongrel 1713 1714# ac_fn_c_try_run LINENO 1715# ---------------------- 1716# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1717# that executables *can* be run. 1718ac_fn_c_try_run () 1719{ 1720 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1721 if { { ac_try="$ac_link" 1722case "(($ac_try" in 1723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1724 *) ac_try_echo=$ac_try;; 1725esac 1726eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1727$as_echo "$ac_try_echo"; } >&5 1728 (eval "$ac_link") 2>&5 1729 ac_status=$? 1730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1731 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1732 { { case "(($ac_try" in 1733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1734 *) ac_try_echo=$ac_try;; 1735esac 1736eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1737$as_echo "$ac_try_echo"; } >&5 1738 (eval "$ac_try") 2>&5 1739 ac_status=$? 1740 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1741 test $ac_status = 0; }; }; then : 1742 ac_retval=0 1743else 1744 $as_echo "$as_me: program exited with status $ac_status" >&5 1745 $as_echo "$as_me: failed program was:" >&5 1746sed 's/^/| /' conftest.$ac_ext >&5 1747 1748 ac_retval=$ac_status 1749fi 1750 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1751 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1752 as_fn_set_status $ac_retval 1753 1754} # ac_fn_c_try_run 1755 1756# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1757# ------------------------------------------------------- 1758# Tests whether HEADER exists and can be compiled using the include files in 1759# INCLUDES, setting the cache variable VAR accordingly. 1760ac_fn_c_check_header_compile () 1761{ 1762 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1764$as_echo_n "checking for $2... " >&6; } 1765if eval \${$3+:} false; then : 1766 $as_echo_n "(cached) " >&6 1767else 1768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1769/* end confdefs.h. */ 1770$4 1771#include <$2> 1772_ACEOF 1773if ac_fn_c_try_compile "$LINENO"; then : 1774 eval "$3=yes" 1775else 1776 eval "$3=no" 1777fi 1778rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1779fi 1780eval ac_res=\$$3 1781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1782$as_echo "$ac_res" >&6; } 1783 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1784 1785} # ac_fn_c_check_header_compile 1786 1787# ac_fn_c_try_link LINENO 1788# ----------------------- 1789# Try to link conftest.$ac_ext, and return whether this succeeded. 1790ac_fn_c_try_link () 1791{ 1792 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1793 rm -f conftest.$ac_objext conftest$ac_exeext 1794 if { { ac_try="$ac_link" 1795case "(($ac_try" in 1796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1797 *) ac_try_echo=$ac_try;; 1798esac 1799eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1800$as_echo "$ac_try_echo"; } >&5 1801 (eval "$ac_link") 2>conftest.err 1802 ac_status=$? 1803 if test -s conftest.err; then 1804 grep -v '^ *+' conftest.err >conftest.er1 1805 cat conftest.er1 >&5 1806 mv -f conftest.er1 conftest.err 1807 fi 1808 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1809 test $ac_status = 0; } && { 1810 test -z "$ac_c_werror_flag" || 1811 test ! -s conftest.err 1812 } && test -s conftest$ac_exeext && { 1813 test "$cross_compiling" = yes || 1814 test -x conftest$ac_exeext 1815 }; then : 1816 ac_retval=0 1817else 1818 $as_echo "$as_me: failed program was:" >&5 1819sed 's/^/| /' conftest.$ac_ext >&5 1820 1821 ac_retval=1 1822fi 1823 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1824 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1825 # interfere with the next link command; also delete a directory that is 1826 # left behind by Apple's compiler. We do this before executing the actions. 1827 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1828 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1829 as_fn_set_status $ac_retval 1830 1831} # ac_fn_c_try_link 1832 1833# ac_fn_c_check_func LINENO FUNC VAR 1834# ---------------------------------- 1835# Tests whether FUNC exists, setting the cache variable VAR accordingly 1836ac_fn_c_check_func () 1837{ 1838 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1840$as_echo_n "checking for $2... " >&6; } 1841if eval \${$3+:} false; then : 1842 $as_echo_n "(cached) " >&6 1843else 1844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1845/* end confdefs.h. */ 1846/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1847 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1848#define $2 innocuous_$2 1849 1850/* System header to define __stub macros and hopefully few prototypes, 1851 which can conflict with char $2 (); below. 1852 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1853 <limits.h> exists even on freestanding compilers. */ 1854 1855#ifdef __STDC__ 1856# include <limits.h> 1857#else 1858# include <assert.h> 1859#endif 1860 1861#undef $2 1862 1863/* Override any GCC internal prototype to avoid an error. 1864 Use char because int might match the return type of a GCC 1865 builtin and then its argument prototype would still apply. */ 1866#ifdef __cplusplus 1867extern "C" 1868#endif 1869char $2 (); 1870/* The GNU C library defines this for functions which it implements 1871 to always fail with ENOSYS. Some functions are actually named 1872 something starting with __ and the normal name is an alias. */ 1873#if defined __stub_$2 || defined __stub___$2 1874choke me 1875#endif 1876 1877int 1878main () 1879{ 1880return $2 (); 1881 ; 1882 return 0; 1883} 1884_ACEOF 1885if ac_fn_c_try_link "$LINENO"; then : 1886 eval "$3=yes" 1887else 1888 eval "$3=no" 1889fi 1890rm -f core conftest.err conftest.$ac_objext \ 1891 conftest$ac_exeext conftest.$ac_ext 1892fi 1893eval ac_res=\$$3 1894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1895$as_echo "$ac_res" >&6; } 1896 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1897 1898} # ac_fn_c_check_func 1899 1900# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 1901# ------------------------------------------- 1902# Tests whether TYPE exists after having included INCLUDES, setting cache 1903# variable VAR accordingly. 1904ac_fn_c_check_type () 1905{ 1906 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1908$as_echo_n "checking for $2... " >&6; } 1909if eval \${$3+:} false; then : 1910 $as_echo_n "(cached) " >&6 1911else 1912 eval "$3=no" 1913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1914/* end confdefs.h. */ 1915$4 1916int 1917main () 1918{ 1919if (sizeof ($2)) 1920 return 0; 1921 ; 1922 return 0; 1923} 1924_ACEOF 1925if ac_fn_c_try_compile "$LINENO"; then : 1926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1927/* end confdefs.h. */ 1928$4 1929int 1930main () 1931{ 1932if (sizeof (($2))) 1933 return 0; 1934 ; 1935 return 0; 1936} 1937_ACEOF 1938if ac_fn_c_try_compile "$LINENO"; then : 1939 1940else 1941 eval "$3=yes" 1942fi 1943rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1944fi 1945rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1946fi 1947eval ac_res=\$$3 1948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1949$as_echo "$ac_res" >&6; } 1950 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1951 1952} # ac_fn_c_check_type 1953 1954# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 1955# ---------------------------------------------------- 1956# Tries to find if the field MEMBER exists in type AGGR, after including 1957# INCLUDES, setting cache variable VAR accordingly. 1958ac_fn_c_check_member () 1959{ 1960 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 1962$as_echo_n "checking for $2.$3... " >&6; } 1963if eval \${$4+:} false; then : 1964 $as_echo_n "(cached) " >&6 1965else 1966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1967/* end confdefs.h. */ 1968$5 1969int 1970main () 1971{ 1972static $2 ac_aggr; 1973if (ac_aggr.$3) 1974return 0; 1975 ; 1976 return 0; 1977} 1978_ACEOF 1979if ac_fn_c_try_compile "$LINENO"; then : 1980 eval "$4=yes" 1981else 1982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1983/* end confdefs.h. */ 1984$5 1985int 1986main () 1987{ 1988static $2 ac_aggr; 1989if (sizeof ac_aggr.$3) 1990return 0; 1991 ; 1992 return 0; 1993} 1994_ACEOF 1995if ac_fn_c_try_compile "$LINENO"; then : 1996 eval "$4=yes" 1997else 1998 eval "$4=no" 1999fi 2000rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2001fi 2002rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2003fi 2004eval ac_res=\$$4 2005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2006$as_echo "$ac_res" >&6; } 2007 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2008 2009} # ac_fn_c_check_member 2010 2011# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 2012# --------------------------------------------- 2013# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 2014# accordingly. 2015ac_fn_c_check_decl () 2016{ 2017 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2018 as_decl_name=`echo $2|sed 's/ *(.*//'` 2019 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 2020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 2021$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 2022if eval \${$3+:} false; then : 2023 $as_echo_n "(cached) " >&6 2024else 2025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2026/* end confdefs.h. */ 2027$4 2028int 2029main () 2030{ 2031#ifndef $as_decl_name 2032#ifdef __cplusplus 2033 (void) $as_decl_use; 2034#else 2035 (void) $as_decl_name; 2036#endif 2037#endif 2038 2039 ; 2040 return 0; 2041} 2042_ACEOF 2043if ac_fn_c_try_compile "$LINENO"; then : 2044 eval "$3=yes" 2045else 2046 eval "$3=no" 2047fi 2048rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2049fi 2050eval ac_res=\$$3 2051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2052$as_echo "$ac_res" >&6; } 2053 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2054 2055} # ac_fn_c_check_decl 2056 2057# ac_fn_c_find_uintX_t LINENO BITS VAR 2058# ------------------------------------ 2059# Finds an unsigned integer type with width BITS, setting cache variable VAR 2060# accordingly. 2061ac_fn_c_find_uintX_t () 2062{ 2063 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5 2065$as_echo_n "checking for uint$2_t... " >&6; } 2066if eval \${$3+:} false; then : 2067 $as_echo_n "(cached) " >&6 2068else 2069 eval "$3=no" 2070 # Order is important - never check a type that is potentially smaller 2071 # than half of the expected target width. 2072 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \ 2073 'unsigned long long int' 'unsigned short int' 'unsigned char'; do 2074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2075/* end confdefs.h. */ 2076$ac_includes_default 2077int 2078main () 2079{ 2080static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)]; 2081test_array [0] = 0; 2082return test_array [0]; 2083 2084 ; 2085 return 0; 2086} 2087_ACEOF 2088if ac_fn_c_try_compile "$LINENO"; then : 2089 case $ac_type in #( 2090 uint$2_t) : 2091 eval "$3=yes" ;; #( 2092 *) : 2093 eval "$3=\$ac_type" ;; 2094esac 2095fi 2096rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2097 if eval test \"x\$"$3"\" = x"no"; then : 2098 2099else 2100 break 2101fi 2102 done 2103fi 2104eval ac_res=\$$3 2105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2106$as_echo "$ac_res" >&6; } 2107 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2108 2109} # ac_fn_c_find_uintX_t 2110 2111# ac_fn_c_find_intX_t LINENO BITS VAR 2112# ----------------------------------- 2113# Finds a signed integer type with width BITS, setting cache variable VAR 2114# accordingly. 2115ac_fn_c_find_intX_t () 2116{ 2117 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5 2119$as_echo_n "checking for int$2_t... " >&6; } 2120if eval \${$3+:} false; then : 2121 $as_echo_n "(cached) " >&6 2122else 2123 eval "$3=no" 2124 # Order is important - never check a type that is potentially smaller 2125 # than half of the expected target width. 2126 for ac_type in int$2_t 'int' 'long int' \ 2127 'long long int' 'short int' 'signed char'; do 2128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2129/* end confdefs.h. */ 2130$ac_includes_default 2131 enum { N = $2 / 2 - 1 }; 2132int 2133main () 2134{ 2135static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))]; 2136test_array [0] = 0; 2137return test_array [0]; 2138 2139 ; 2140 return 0; 2141} 2142_ACEOF 2143if ac_fn_c_try_compile "$LINENO"; then : 2144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2145/* end confdefs.h. */ 2146$ac_includes_default 2147 enum { N = $2 / 2 - 1 }; 2148int 2149main () 2150{ 2151static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1) 2152 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))]; 2153test_array [0] = 0; 2154return test_array [0]; 2155 2156 ; 2157 return 0; 2158} 2159_ACEOF 2160if ac_fn_c_try_compile "$LINENO"; then : 2161 2162else 2163 case $ac_type in #( 2164 int$2_t) : 2165 eval "$3=yes" ;; #( 2166 *) : 2167 eval "$3=\$ac_type" ;; 2168esac 2169fi 2170rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2171fi 2172rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2173 if eval test \"x\$"$3"\" = x"no"; then : 2174 2175else 2176 break 2177fi 2178 done 2179fi 2180eval ac_res=\$$3 2181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2182$as_echo "$ac_res" >&6; } 2183 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2184 2185} # ac_fn_c_find_intX_t 2186cat >config.log <<_ACEOF 2187This file contains any messages produced by compilers while 2188running configure, to aid debugging if configure makes a mistake. 2189 2190It was created by file $as_me 5.40, which was 2191generated by GNU Autoconf 2.69. Invocation command line was 2192 2193 $ $0 $@ 2194 2195_ACEOF 2196exec 5>>config.log 2197{ 2198cat <<_ASUNAME 2199## --------- ## 2200## Platform. ## 2201## --------- ## 2202 2203hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2204uname -m = `(uname -m) 2>/dev/null || echo unknown` 2205uname -r = `(uname -r) 2>/dev/null || echo unknown` 2206uname -s = `(uname -s) 2>/dev/null || echo unknown` 2207uname -v = `(uname -v) 2>/dev/null || echo unknown` 2208 2209/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2210/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2211 2212/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2213/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2214/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2215/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2216/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2217/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2218/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2219 2220_ASUNAME 2221 2222as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2223for as_dir in $PATH 2224do 2225 IFS=$as_save_IFS 2226 test -z "$as_dir" && as_dir=. 2227 $as_echo "PATH: $as_dir" 2228 done 2229IFS=$as_save_IFS 2230 2231} >&5 2232 2233cat >&5 <<_ACEOF 2234 2235 2236## ----------- ## 2237## Core tests. ## 2238## ----------- ## 2239 2240_ACEOF 2241 2242 2243# Keep a trace of the command line. 2244# Strip out --no-create and --no-recursion so they do not pile up. 2245# Strip out --silent because we don't want to record it for future runs. 2246# Also quote any args containing shell meta-characters. 2247# Make two passes to allow for proper duplicate-argument suppression. 2248ac_configure_args= 2249ac_configure_args0= 2250ac_configure_args1= 2251ac_must_keep_next=false 2252for ac_pass in 1 2 2253do 2254 for ac_arg 2255 do 2256 case $ac_arg in 2257 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2258 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2259 | -silent | --silent | --silen | --sile | --sil) 2260 continue ;; 2261 *\'*) 2262 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2263 esac 2264 case $ac_pass in 2265 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2266 2) 2267 as_fn_append ac_configure_args1 " '$ac_arg'" 2268 if test $ac_must_keep_next = true; then 2269 ac_must_keep_next=false # Got value, back to normal. 2270 else 2271 case $ac_arg in 2272 *=* | --config-cache | -C | -disable-* | --disable-* \ 2273 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2274 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2275 | -with-* | --with-* | -without-* | --without-* | --x) 2276 case "$ac_configure_args0 " in 2277 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2278 esac 2279 ;; 2280 -* ) ac_must_keep_next=true ;; 2281 esac 2282 fi 2283 as_fn_append ac_configure_args " '$ac_arg'" 2284 ;; 2285 esac 2286 done 2287done 2288{ ac_configure_args0=; unset ac_configure_args0;} 2289{ ac_configure_args1=; unset ac_configure_args1;} 2290 2291# When interrupted or exit'd, cleanup temporary files, and complete 2292# config.log. We remove comments because anyway the quotes in there 2293# would cause problems or look ugly. 2294# WARNING: Use '\'' to represent an apostrophe within the trap. 2295# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2296trap 'exit_status=$? 2297 # Save into config.log some information that might help in debugging. 2298 { 2299 echo 2300 2301 $as_echo "## ---------------- ## 2302## Cache variables. ## 2303## ---------------- ##" 2304 echo 2305 # The following way of writing the cache mishandles newlines in values, 2306( 2307 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2308 eval ac_val=\$$ac_var 2309 case $ac_val in #( 2310 *${as_nl}*) 2311 case $ac_var in #( 2312 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2313$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2314 esac 2315 case $ac_var in #( 2316 _ | IFS | as_nl) ;; #( 2317 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2318 *) { eval $ac_var=; unset $ac_var;} ;; 2319 esac ;; 2320 esac 2321 done 2322 (set) 2>&1 | 2323 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2324 *${as_nl}ac_space=\ *) 2325 sed -n \ 2326 "s/'\''/'\''\\\\'\'''\''/g; 2327 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2328 ;; #( 2329 *) 2330 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2331 ;; 2332 esac | 2333 sort 2334) 2335 echo 2336 2337 $as_echo "## ----------------- ## 2338## Output variables. ## 2339## ----------------- ##" 2340 echo 2341 for ac_var in $ac_subst_vars 2342 do 2343 eval ac_val=\$$ac_var 2344 case $ac_val in 2345 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2346 esac 2347 $as_echo "$ac_var='\''$ac_val'\''" 2348 done | sort 2349 echo 2350 2351 if test -n "$ac_subst_files"; then 2352 $as_echo "## ------------------- ## 2353## File substitutions. ## 2354## ------------------- ##" 2355 echo 2356 for ac_var in $ac_subst_files 2357 do 2358 eval ac_val=\$$ac_var 2359 case $ac_val in 2360 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2361 esac 2362 $as_echo "$ac_var='\''$ac_val'\''" 2363 done | sort 2364 echo 2365 fi 2366 2367 if test -s confdefs.h; then 2368 $as_echo "## ----------- ## 2369## confdefs.h. ## 2370## ----------- ##" 2371 echo 2372 cat confdefs.h 2373 echo 2374 fi 2375 test "$ac_signal" != 0 && 2376 $as_echo "$as_me: caught signal $ac_signal" 2377 $as_echo "$as_me: exit $exit_status" 2378 } >&5 2379 rm -f core *.core core.conftest.* && 2380 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2381 exit $exit_status 2382' 0 2383for ac_signal in 1 2 13 15; do 2384 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2385done 2386ac_signal=0 2387 2388# confdefs.h avoids OS command line length limits that DEFS can exceed. 2389rm -f -r conftest* confdefs.h 2390 2391$as_echo "/* confdefs.h */" > confdefs.h 2392 2393# Predefined preprocessor variables. 2394 2395cat >>confdefs.h <<_ACEOF 2396#define PACKAGE_NAME "$PACKAGE_NAME" 2397_ACEOF 2398 2399cat >>confdefs.h <<_ACEOF 2400#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2401_ACEOF 2402 2403cat >>confdefs.h <<_ACEOF 2404#define PACKAGE_VERSION "$PACKAGE_VERSION" 2405_ACEOF 2406 2407cat >>confdefs.h <<_ACEOF 2408#define PACKAGE_STRING "$PACKAGE_STRING" 2409_ACEOF 2410 2411cat >>confdefs.h <<_ACEOF 2412#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2413_ACEOF 2414 2415cat >>confdefs.h <<_ACEOF 2416#define PACKAGE_URL "$PACKAGE_URL" 2417_ACEOF 2418 2419 2420# Let the site file select an alternate cache file if it wants to. 2421# Prefer an explicitly selected file to automatically selected ones. 2422ac_site_file1=NONE 2423ac_site_file2=NONE 2424if test -n "$CONFIG_SITE"; then 2425 # We do not want a PATH search for config.site. 2426 case $CONFIG_SITE in #(( 2427 -*) ac_site_file1=./$CONFIG_SITE;; 2428 */*) ac_site_file1=$CONFIG_SITE;; 2429 *) ac_site_file1=./$CONFIG_SITE;; 2430 esac 2431elif test "x$prefix" != xNONE; then 2432 ac_site_file1=$prefix/share/config.site 2433 ac_site_file2=$prefix/etc/config.site 2434else 2435 ac_site_file1=$ac_default_prefix/share/config.site 2436 ac_site_file2=$ac_default_prefix/etc/config.site 2437fi 2438for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2439do 2440 test "x$ac_site_file" = xNONE && continue 2441 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2442 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2443$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2444 sed 's/^/| /' "$ac_site_file" >&5 2445 . "$ac_site_file" \ 2446 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2447$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2448as_fn_error $? "failed to load site script $ac_site_file 2449See \`config.log' for more details" "$LINENO" 5; } 2450 fi 2451done 2452 2453if test -r "$cache_file"; then 2454 # Some versions of bash will fail to source /dev/null (special files 2455 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2456 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2457 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2458$as_echo "$as_me: loading cache $cache_file" >&6;} 2459 case $cache_file in 2460 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2461 *) . "./$cache_file";; 2462 esac 2463 fi 2464else 2465 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2466$as_echo "$as_me: creating cache $cache_file" >&6;} 2467 >$cache_file 2468fi 2469 2470as_fn_append ac_header_list " stdlib.h" 2471as_fn_append ac_header_list " unistd.h" 2472as_fn_append ac_header_list " sys/param.h" 2473# Check that the precious variables saved in the cache have kept the same 2474# value. 2475ac_cache_corrupted=false 2476for ac_var in $ac_precious_vars; do 2477 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2478 eval ac_new_set=\$ac_env_${ac_var}_set 2479 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2480 eval ac_new_val=\$ac_env_${ac_var}_value 2481 case $ac_old_set,$ac_new_set in 2482 set,) 2483 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2484$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2485 ac_cache_corrupted=: ;; 2486 ,set) 2487 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2488$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2489 ac_cache_corrupted=: ;; 2490 ,);; 2491 *) 2492 if test "x$ac_old_val" != "x$ac_new_val"; then 2493 # differences in whitespace do not lead to failure. 2494 ac_old_val_w=`echo x $ac_old_val` 2495 ac_new_val_w=`echo x $ac_new_val` 2496 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2497 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2498$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2499 ac_cache_corrupted=: 2500 else 2501 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2502$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2503 eval $ac_var=\$ac_old_val 2504 fi 2505 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2506$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2507 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2508$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2509 fi;; 2510 esac 2511 # Pass precious variables to config.status. 2512 if test "$ac_new_set" = set; then 2513 case $ac_new_val in 2514 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2515 *) ac_arg=$ac_var=$ac_new_val ;; 2516 esac 2517 case " $ac_configure_args " in 2518 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2519 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2520 esac 2521 fi 2522done 2523if $ac_cache_corrupted; then 2524 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2525$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2526 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2527$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2528 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2529fi 2530## -------------------- ## 2531## Main body of script. ## 2532## -------------------- ## 2533 2534ac_ext=c 2535ac_cpp='$CPP $CPPFLAGS' 2536ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2537ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2538ac_compiler_gnu=$ac_cv_c_compiler_gnu 2539 2540 2541am__api_version='1.16' 2542 2543ac_aux_dir= 2544for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2545 if test -f "$ac_dir/install-sh"; then 2546 ac_aux_dir=$ac_dir 2547 ac_install_sh="$ac_aux_dir/install-sh -c" 2548 break 2549 elif test -f "$ac_dir/install.sh"; then 2550 ac_aux_dir=$ac_dir 2551 ac_install_sh="$ac_aux_dir/install.sh -c" 2552 break 2553 elif test -f "$ac_dir/shtool"; then 2554 ac_aux_dir=$ac_dir 2555 ac_install_sh="$ac_aux_dir/shtool install -c" 2556 break 2557 fi 2558done 2559if test -z "$ac_aux_dir"; then 2560 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2561fi 2562 2563# These three variables are undocumented and unsupported, 2564# and are intended to be withdrawn in a future Autoconf release. 2565# They can cause serious problems if a builder's source tree is in a directory 2566# whose full name contains unusual characters. 2567ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2568ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2569ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2570 2571 2572# Find a good install program. We prefer a C program (faster), 2573# so one script is as good as another. But avoid the broken or 2574# incompatible versions: 2575# SysV /etc/install, /usr/sbin/install 2576# SunOS /usr/etc/install 2577# IRIX /sbin/install 2578# AIX /bin/install 2579# AmigaOS /C/install, which installs bootblocks on floppy discs 2580# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2581# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2582# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2583# OS/2's system install, which has a completely different semantic 2584# ./install, which can be erroneously created by make from ./install.sh. 2585# Reject install programs that cannot install multiple files. 2586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2587$as_echo_n "checking for a BSD-compatible install... " >&6; } 2588if test -z "$INSTALL"; then 2589if ${ac_cv_path_install+:} false; then : 2590 $as_echo_n "(cached) " >&6 2591else 2592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2593for as_dir in $PATH 2594do 2595 IFS=$as_save_IFS 2596 test -z "$as_dir" && as_dir=. 2597 # Account for people who put trailing slashes in PATH elements. 2598case $as_dir/ in #(( 2599 ./ | .// | /[cC]/* | \ 2600 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2601 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2602 /usr/ucb/* ) ;; 2603 *) 2604 # OSF1 and SCO ODT 3.0 have their own names for install. 2605 # Don't use installbsd from OSF since it installs stuff as root 2606 # by default. 2607 for ac_prog in ginstall scoinst install; do 2608 for ac_exec_ext in '' $ac_executable_extensions; do 2609 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2610 if test $ac_prog = install && 2611 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2612 # AIX install. It has an incompatible calling convention. 2613 : 2614 elif test $ac_prog = install && 2615 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2616 # program-specific install script used by HP pwplus--don't use. 2617 : 2618 else 2619 rm -rf conftest.one conftest.two conftest.dir 2620 echo one > conftest.one 2621 echo two > conftest.two 2622 mkdir conftest.dir 2623 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2624 test -s conftest.one && test -s conftest.two && 2625 test -s conftest.dir/conftest.one && 2626 test -s conftest.dir/conftest.two 2627 then 2628 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2629 break 3 2630 fi 2631 fi 2632 fi 2633 done 2634 done 2635 ;; 2636esac 2637 2638 done 2639IFS=$as_save_IFS 2640 2641rm -rf conftest.one conftest.two conftest.dir 2642 2643fi 2644 if test "${ac_cv_path_install+set}" = set; then 2645 INSTALL=$ac_cv_path_install 2646 else 2647 # As a last resort, use the slow shell script. Don't cache a 2648 # value for INSTALL within a source directory, because that will 2649 # break other packages using the cache if that directory is 2650 # removed, or if the value is a relative name. 2651 INSTALL=$ac_install_sh 2652 fi 2653fi 2654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2655$as_echo "$INSTALL" >&6; } 2656 2657# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2658# It thinks the first close brace ends the variable substitution. 2659test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2660 2661test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2662 2663test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2664 2665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2666$as_echo_n "checking whether build environment is sane... " >&6; } 2667# Reject unsafe characters in $srcdir or the absolute working directory 2668# name. Accept space and tab only in the latter. 2669am_lf=' 2670' 2671case `pwd` in 2672 *[\\\"\#\$\&\'\`$am_lf]*) 2673 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2674esac 2675case $srcdir in 2676 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2677 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2678esac 2679 2680# Do 'set' in a subshell so we don't clobber the current shell's 2681# arguments. Must try -L first in case configure is actually a 2682# symlink; some systems play weird games with the mod time of symlinks 2683# (eg FreeBSD returns the mod time of the symlink's containing 2684# directory). 2685if ( 2686 am_has_slept=no 2687 for am_try in 1 2; do 2688 echo "timestamp, slept: $am_has_slept" > conftest.file 2689 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2690 if test "$*" = "X"; then 2691 # -L didn't work. 2692 set X `ls -t "$srcdir/configure" conftest.file` 2693 fi 2694 if test "$*" != "X $srcdir/configure conftest.file" \ 2695 && test "$*" != "X conftest.file $srcdir/configure"; then 2696 2697 # If neither matched, then we have a broken ls. This can happen 2698 # if, for instance, CONFIG_SHELL is bash and it inherits a 2699 # broken ls alias from the environment. This has actually 2700 # happened. Such a system could not be considered "sane". 2701 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2702 alias in your environment" "$LINENO" 5 2703 fi 2704 if test "$2" = conftest.file || test $am_try -eq 2; then 2705 break 2706 fi 2707 # Just in case. 2708 sleep 1 2709 am_has_slept=yes 2710 done 2711 test "$2" = conftest.file 2712 ) 2713then 2714 # Ok. 2715 : 2716else 2717 as_fn_error $? "newly created file is older than distributed files! 2718Check your system clock" "$LINENO" 5 2719fi 2720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2721$as_echo "yes" >&6; } 2722# If we didn't sleep, we still need to ensure time stamps of config.status and 2723# generated files are strictly newer. 2724am_sleep_pid= 2725if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2726 ( sleep 1 ) & 2727 am_sleep_pid=$! 2728fi 2729 2730rm -f conftest.file 2731 2732test "$program_prefix" != NONE && 2733 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2734# Use a double $ so make ignores it. 2735test "$program_suffix" != NONE && 2736 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2737# Double any \ or $. 2738# By default was `s,x,x', remove it if useless. 2739ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2740program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2741 2742# Expand $ac_aux_dir to an absolute path. 2743am_aux_dir=`cd "$ac_aux_dir" && pwd` 2744 2745if test x"${MISSING+set}" != xset; then 2746 case $am_aux_dir in 2747 *\ * | *\ *) 2748 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2749 *) 2750 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2751 esac 2752fi 2753# Use eval to expand $SHELL 2754if eval "$MISSING --is-lightweight"; then 2755 am_missing_run="$MISSING " 2756else 2757 am_missing_run= 2758 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2759$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2760fi 2761 2762if test x"${install_sh+set}" != xset; then 2763 case $am_aux_dir in 2764 *\ * | *\ *) 2765 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2766 *) 2767 install_sh="\${SHELL} $am_aux_dir/install-sh" 2768 esac 2769fi 2770 2771# Installed binaries are usually stripped using 'strip' when the user 2772# run "make install-strip". However 'strip' might not be the right 2773# tool to use in cross-compilation environments, therefore Automake 2774# will honor the 'STRIP' environment variable to overrule this program. 2775if test "$cross_compiling" != no; then 2776 if test -n "$ac_tool_prefix"; then 2777 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2778set dummy ${ac_tool_prefix}strip; ac_word=$2 2779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2780$as_echo_n "checking for $ac_word... " >&6; } 2781if ${ac_cv_prog_STRIP+:} false; then : 2782 $as_echo_n "(cached) " >&6 2783else 2784 if test -n "$STRIP"; then 2785 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2786else 2787as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2788for as_dir in $PATH 2789do 2790 IFS=$as_save_IFS 2791 test -z "$as_dir" && as_dir=. 2792 for ac_exec_ext in '' $ac_executable_extensions; do 2793 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2794 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2796 break 2 2797 fi 2798done 2799 done 2800IFS=$as_save_IFS 2801 2802fi 2803fi 2804STRIP=$ac_cv_prog_STRIP 2805if test -n "$STRIP"; then 2806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2807$as_echo "$STRIP" >&6; } 2808else 2809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2810$as_echo "no" >&6; } 2811fi 2812 2813 2814fi 2815if test -z "$ac_cv_prog_STRIP"; then 2816 ac_ct_STRIP=$STRIP 2817 # Extract the first word of "strip", so it can be a program name with args. 2818set dummy strip; ac_word=$2 2819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2820$as_echo_n "checking for $ac_word... " >&6; } 2821if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2822 $as_echo_n "(cached) " >&6 2823else 2824 if test -n "$ac_ct_STRIP"; then 2825 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2826else 2827as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2828for as_dir in $PATH 2829do 2830 IFS=$as_save_IFS 2831 test -z "$as_dir" && as_dir=. 2832 for ac_exec_ext in '' $ac_executable_extensions; do 2833 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2834 ac_cv_prog_ac_ct_STRIP="strip" 2835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2836 break 2 2837 fi 2838done 2839 done 2840IFS=$as_save_IFS 2841 2842fi 2843fi 2844ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2845if test -n "$ac_ct_STRIP"; then 2846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2847$as_echo "$ac_ct_STRIP" >&6; } 2848else 2849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2850$as_echo "no" >&6; } 2851fi 2852 2853 if test "x$ac_ct_STRIP" = x; then 2854 STRIP=":" 2855 else 2856 case $cross_compiling:$ac_tool_warned in 2857yes:) 2858{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2859$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2860ac_tool_warned=yes ;; 2861esac 2862 STRIP=$ac_ct_STRIP 2863 fi 2864else 2865 STRIP="$ac_cv_prog_STRIP" 2866fi 2867 2868fi 2869INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2870 2871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2872$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2873if test -z "$MKDIR_P"; then 2874 if ${ac_cv_path_mkdir+:} false; then : 2875 $as_echo_n "(cached) " >&6 2876else 2877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2878for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2879do 2880 IFS=$as_save_IFS 2881 test -z "$as_dir" && as_dir=. 2882 for ac_prog in mkdir gmkdir; do 2883 for ac_exec_ext in '' $ac_executable_extensions; do 2884 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2885 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2886 'mkdir (GNU coreutils) '* | \ 2887 'mkdir (coreutils) '* | \ 2888 'mkdir (fileutils) '4.1*) 2889 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2890 break 3;; 2891 esac 2892 done 2893 done 2894 done 2895IFS=$as_save_IFS 2896 2897fi 2898 2899 test -d ./--version && rmdir ./--version 2900 if test "${ac_cv_path_mkdir+set}" = set; then 2901 MKDIR_P="$ac_cv_path_mkdir -p" 2902 else 2903 # As a last resort, use the slow shell script. Don't cache a 2904 # value for MKDIR_P within a source directory, because that will 2905 # break other packages using the cache if that directory is 2906 # removed, or if the value is a relative name. 2907 MKDIR_P="$ac_install_sh -d" 2908 fi 2909fi 2910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2911$as_echo "$MKDIR_P" >&6; } 2912 2913for ac_prog in gawk mawk nawk awk 2914do 2915 # Extract the first word of "$ac_prog", so it can be a program name with args. 2916set dummy $ac_prog; ac_word=$2 2917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2918$as_echo_n "checking for $ac_word... " >&6; } 2919if ${ac_cv_prog_AWK+:} false; then : 2920 $as_echo_n "(cached) " >&6 2921else 2922 if test -n "$AWK"; then 2923 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2924else 2925as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2926for as_dir in $PATH 2927do 2928 IFS=$as_save_IFS 2929 test -z "$as_dir" && as_dir=. 2930 for ac_exec_ext in '' $ac_executable_extensions; do 2931 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2932 ac_cv_prog_AWK="$ac_prog" 2933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2934 break 2 2935 fi 2936done 2937 done 2938IFS=$as_save_IFS 2939 2940fi 2941fi 2942AWK=$ac_cv_prog_AWK 2943if test -n "$AWK"; then 2944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2945$as_echo "$AWK" >&6; } 2946else 2947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2948$as_echo "no" >&6; } 2949fi 2950 2951 2952 test -n "$AWK" && break 2953done 2954 2955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2956$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2957set x ${MAKE-make} 2958ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2959if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2960 $as_echo_n "(cached) " >&6 2961else 2962 cat >conftest.make <<\_ACEOF 2963SHELL = /bin/sh 2964all: 2965 @echo '@@@%%%=$(MAKE)=@@@%%%' 2966_ACEOF 2967# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2968case `${MAKE-make} -f conftest.make 2>/dev/null` in 2969 *@@@%%%=?*=@@@%%%*) 2970 eval ac_cv_prog_make_${ac_make}_set=yes;; 2971 *) 2972 eval ac_cv_prog_make_${ac_make}_set=no;; 2973esac 2974rm -f conftest.make 2975fi 2976if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2978$as_echo "yes" >&6; } 2979 SET_MAKE= 2980else 2981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2982$as_echo "no" >&6; } 2983 SET_MAKE="MAKE=${MAKE-make}" 2984fi 2985 2986rm -rf .tst 2>/dev/null 2987mkdir .tst 2>/dev/null 2988if test -d .tst; then 2989 am__leading_dot=. 2990else 2991 am__leading_dot=_ 2992fi 2993rmdir .tst 2>/dev/null 2994 2995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 2996$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 2997 # Check whether --enable-maintainer-mode was given. 2998if test "${enable_maintainer_mode+set}" = set; then : 2999 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 3000else 3001 USE_MAINTAINER_MODE=no 3002fi 3003 3004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 3005$as_echo "$USE_MAINTAINER_MODE" >&6; } 3006 if test $USE_MAINTAINER_MODE = yes; then 3007 MAINTAINER_MODE_TRUE= 3008 MAINTAINER_MODE_FALSE='#' 3009else 3010 MAINTAINER_MODE_TRUE='#' 3011 MAINTAINER_MODE_FALSE= 3012fi 3013 3014 MAINT=$MAINTAINER_MODE_TRUE 3015 3016 3017# Check whether --enable-silent-rules was given. 3018if test "${enable_silent_rules+set}" = set; then : 3019 enableval=$enable_silent_rules; 3020fi 3021 3022case $enable_silent_rules in # ((( 3023 yes) AM_DEFAULT_VERBOSITY=0;; 3024 no) AM_DEFAULT_VERBOSITY=1;; 3025 *) AM_DEFAULT_VERBOSITY=1;; 3026esac 3027am_make=${MAKE-make} 3028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3029$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 3030if ${am_cv_make_support_nested_variables+:} false; then : 3031 $as_echo_n "(cached) " >&6 3032else 3033 if $as_echo 'TRUE=$(BAR$(V)) 3034BAR0=false 3035BAR1=true 3036V=1 3037am__doit: 3038 @$(TRUE) 3039.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3040 am_cv_make_support_nested_variables=yes 3041else 3042 am_cv_make_support_nested_variables=no 3043fi 3044fi 3045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3046$as_echo "$am_cv_make_support_nested_variables" >&6; } 3047if test $am_cv_make_support_nested_variables = yes; then 3048 AM_V='$(V)' 3049 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3050else 3051 AM_V=$AM_DEFAULT_VERBOSITY 3052 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3053fi 3054AM_BACKSLASH='\' 3055 3056if test "`cd $srcdir && pwd`" != "`pwd`"; then 3057 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3058 # is not polluted with repeated "-I." 3059 am__isrc=' -I$(srcdir)' 3060 # test to see if srcdir already configured 3061 if test -f $srcdir/config.status; then 3062 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3063 fi 3064fi 3065 3066# test whether we have cygpath 3067if test -z "$CYGPATH_W"; then 3068 if (cygpath --version) >/dev/null 2>/dev/null; then 3069 CYGPATH_W='cygpath -w' 3070 else 3071 CYGPATH_W=echo 3072 fi 3073fi 3074 3075 3076# Define the identity of the package. 3077 PACKAGE='file' 3078 VERSION='5.40' 3079 3080 3081cat >>confdefs.h <<_ACEOF 3082#define PACKAGE "$PACKAGE" 3083_ACEOF 3084 3085 3086cat >>confdefs.h <<_ACEOF 3087#define VERSION "$VERSION" 3088_ACEOF 3089 3090# Some tools Automake needs. 3091 3092ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3093 3094 3095AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3096 3097 3098AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3099 3100 3101AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3102 3103 3104MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3105 3106# For better backward compatibility. To be removed once Automake 1.9.x 3107# dies out for good. For more background, see: 3108# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3109# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3110mkdir_p='$(MKDIR_P)' 3111 3112# We need awk for the "check" target (and possibly the TAP driver). The 3113# system "awk" is bad on some platforms. 3114# Always define AMTAR for backward compatibility. Yes, it's still used 3115# in the wild :-( We should find a proper way to deprecate it ... 3116AMTAR='$${TAR-tar}' 3117 3118 3119# We'll loop over all known methods to create a tar archive until one works. 3120_am_tools='gnutar pax cpio none' 3121 3122am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3123 3124 3125 3126 3127 3128 3129# POSIX will say in a future version that running "rm -f" with no argument 3130# is OK; and we want to be able to make that assumption in our Makefile 3131# recipes. So use an aggressive probe to check that the usage we want is 3132# actually supported "in the wild" to an acceptable degree. 3133# See automake bug#10828. 3134# To make any issue more visible, cause the running configure to be aborted 3135# by default if the 'rm' program in use doesn't match our expectations; the 3136# user can still override this though. 3137if rm -f && rm -fr && rm -rf; then : OK; else 3138 cat >&2 <<'END' 3139Oops! 3140 3141Your 'rm' program seems unable to run without file operands specified 3142on the command line, even when the '-f' option is present. This is contrary 3143to the behaviour of most rm programs out there, and not conforming with 3144the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3145 3146Please tell bug-automake@gnu.org about your system, including the value 3147of your $PATH and any error possibly output before this message. This 3148can help us improve future automake versions. 3149 3150END 3151 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3152 echo 'Configuration will proceed anyway, since you have set the' >&2 3153 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3154 echo >&2 3155 else 3156 cat >&2 <<'END' 3157Aborting the configuration process, to ensure you take notice of the issue. 3158 3159You can download and install GNU coreutils to get an 'rm' implementation 3160that behaves properly: <https://www.gnu.org/software/coreutils/>. 3161 3162If you want to complete the configuration process using your problematic 3163'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3164to "yes", and re-run configure. 3165 3166END 3167 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3168 fi 3169fi 3170 3171# Check whether --enable-silent-rules was given. 3172if test "${enable_silent_rules+set}" = set; then : 3173 enableval=$enable_silent_rules; 3174fi 3175 3176case $enable_silent_rules in # ((( 3177 yes) AM_DEFAULT_VERBOSITY=0;; 3178 no) AM_DEFAULT_VERBOSITY=1;; 3179 *) AM_DEFAULT_VERBOSITY=0;; 3180esac 3181am_make=${MAKE-make} 3182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3183$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 3184if ${am_cv_make_support_nested_variables+:} false; then : 3185 $as_echo_n "(cached) " >&6 3186else 3187 if $as_echo 'TRUE=$(BAR$(V)) 3188BAR0=false 3189BAR1=true 3190V=1 3191am__doit: 3192 @$(TRUE) 3193.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3194 am_cv_make_support_nested_variables=yes 3195else 3196 am_cv_make_support_nested_variables=no 3197fi 3198fi 3199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3200$as_echo "$am_cv_make_support_nested_variables" >&6; } 3201if test $am_cv_make_support_nested_variables = yes; then 3202 AM_V='$(V)' 3203 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3204else 3205 AM_V=$AM_DEFAULT_VERBOSITY 3206 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3207fi 3208AM_BACKSLASH='\' 3209 3210 3211ac_config_headers="$ac_config_headers config.h" 3212 3213 3214 3215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for builtin ELF support" >&5 3216$as_echo_n "checking for builtin ELF support... " >&6; } 3217# Check whether --enable-elf was given. 3218if test "${enable_elf+set}" = set; then : 3219 enableval=$enable_elf; if test "${enableval}" = yes; then 3220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3221$as_echo "yes" >&6; } 3222 3223$as_echo "#define BUILTIN_ELF 1" >>confdefs.h 3224 3225else 3226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3227$as_echo "no" >&6; } 3228fi 3229else 3230 3231 # enable by default 3232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3233$as_echo "yes" >&6; } 3234 3235$as_echo "#define BUILTIN_ELF 1" >>confdefs.h 3236 3237 3238fi 3239 3240 3241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF core file support" >&5 3242$as_echo_n "checking for ELF core file support... " >&6; } 3243# Check whether --enable-elf-core was given. 3244if test "${enable_elf_core+set}" = set; then : 3245 enableval=$enable_elf_core; if test "${enableval}" = yes; then 3246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3247$as_echo "yes" >&6; } 3248 3249$as_echo "#define ELFCORE 1" >>confdefs.h 3250 3251else 3252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3253$as_echo "no" >&6; } 3254fi 3255else 3256 3257 # enable by default 3258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3259$as_echo "yes" >&6; } 3260 3261$as_echo "#define ELFCORE 1" >>confdefs.h 3262 3263 3264fi 3265 3266 3267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib support" >&5 3268$as_echo_n "checking for zlib support... " >&6; } 3269# Check whether --enable-zlib was given. 3270if test "${enable_zlib+set}" = set; then : 3271 enableval=$enable_zlib; 3272fi 3273 3274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_zlib" >&5 3275$as_echo "$enable_zlib" >&6; } 3276 3277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for bzlib support" >&5 3278$as_echo_n "checking for bzlib support... " >&6; } 3279# Check whether --enable-bzlib was given. 3280if test "${enable_bzlib+set}" = set; then : 3281 enableval=$enable_bzlib; 3282fi 3283 3284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_bzlib" >&5 3285$as_echo "$enable_bzlib" >&6; } 3286 3287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for xzlib support" >&5 3288$as_echo_n "checking for xzlib support... " >&6; } 3289# Check whether --enable-xzlib was given. 3290if test "${enable_xzlib+set}" = set; then : 3291 enableval=$enable_xzlib; 3292fi 3293 3294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_xzlib" >&5 3295$as_echo "$enable_xzlib" >&6; } 3296 3297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libseccomp support" >&5 3298$as_echo_n "checking for libseccomp support... " >&6; } 3299# Check whether --enable-libseccomp was given. 3300if test "${enable_libseccomp+set}" = set; then : 3301 enableval=$enable_libseccomp; 3302fi 3303 3304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_libseccomp" >&5 3305$as_echo "$enable_libseccomp" >&6; } 3306 3307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for file formats in man section 5" >&5 3308$as_echo_n "checking for file formats in man section 5... " >&6; } 3309# Check whether --enable-fsect-man5 was given. 3310if test "${enable_fsect_man5+set}" = set; then : 3311 enableval=$enable_fsect_man5; if test "${enableval}" = yes; then 3312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3313$as_echo "yes" >&6; } 3314 fsect=5 3315else 3316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3317$as_echo "no" >&6; } 3318 fsect=4 3319fi 3320else 3321 3322 # disable by default 3323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3324$as_echo "no" >&6; } 3325 fsect=4 3326 3327fi 3328 3329 3330# Make sure we can run config.sub. 3331$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 3332 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 3333 3334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 3335$as_echo_n "checking build system type... " >&6; } 3336if ${ac_cv_build+:} false; then : 3337 $as_echo_n "(cached) " >&6 3338else 3339 ac_build_alias=$build_alias 3340test "x$ac_build_alias" = x && 3341 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3342test "x$ac_build_alias" = x && 3343 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 3344ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3345 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 3346 3347fi 3348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 3349$as_echo "$ac_cv_build" >&6; } 3350case $ac_cv_build in 3351*-*-*) ;; 3352*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 3353esac 3354build=$ac_cv_build 3355ac_save_IFS=$IFS; IFS='-' 3356set x $ac_cv_build 3357shift 3358build_cpu=$1 3359build_vendor=$2 3360shift; shift 3361# Remember, the first character of IFS is used to create $*, 3362# except with old shells: 3363build_os=$* 3364IFS=$ac_save_IFS 3365case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3366 3367 3368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 3369$as_echo_n "checking host system type... " >&6; } 3370if ${ac_cv_host+:} false; then : 3371 $as_echo_n "(cached) " >&6 3372else 3373 if test "x$host_alias" = x; then 3374 ac_cv_host=$ac_cv_build 3375else 3376 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3377 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 3378fi 3379 3380fi 3381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 3382$as_echo "$ac_cv_host" >&6; } 3383case $ac_cv_host in 3384*-*-*) ;; 3385*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 3386esac 3387host=$ac_cv_host 3388ac_save_IFS=$IFS; IFS='-' 3389set x $ac_cv_host 3390shift 3391host_cpu=$1 3392host_vendor=$2 3393shift; shift 3394# Remember, the first character of IFS is used to create $*, 3395# except with old shells: 3396host_os=$* 3397IFS=$ac_save_IFS 3398case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3399 3400 3401case "$host_os" in 3402 mingw32*) 3403 MINGW=1 3404 ;; 3405 *) 3406 MINGW=0 3407 ;; 3408esac 3409 3410 if test "$MINGW" = 1; then 3411 MINGW_TRUE= 3412 MINGW_FALSE='#' 3413else 3414 MINGW_TRUE='#' 3415 MINGW_FALSE= 3416fi 3417 3418 3419pkgdatadir='$(datadir)/misc' 3420 3421 3422 if test x$fsect = x5; then 3423 FSECT5_TRUE= 3424 FSECT5_FALSE='#' 3425else 3426 FSECT5_TRUE='#' 3427 FSECT5_FALSE= 3428fi 3429 3430 3431 3432 3433DEPDIR="${am__leading_dot}deps" 3434 3435ac_config_commands="$ac_config_commands depfiles" 3436 3437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 3438$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; } 3439cat > confinc.mk << 'END' 3440am__doit: 3441 @echo this is the am__doit target >confinc.out 3442.PHONY: am__doit 3443END 3444am__include="#" 3445am__quote= 3446# BSD make does it like this. 3447echo '.include "confinc.mk" # ignored' > confmf.BSD 3448# Other make implementations (GNU, Solaris 10, AIX) do it like this. 3449echo 'include confinc.mk # ignored' > confmf.GNU 3450_am_result=no 3451for s in GNU BSD; do 3452 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 3453 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 3454 ac_status=$? 3455 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3456 (exit $ac_status); } 3457 case $?:`cat confinc.out 2>/dev/null` in #( 3458 '0:this is the am__doit target') : 3459 case $s in #( 3460 BSD) : 3461 am__include='.include' am__quote='"' ;; #( 3462 *) : 3463 am__include='include' am__quote='' ;; 3464esac ;; #( 3465 *) : 3466 ;; 3467esac 3468 if test "$am__include" != "#"; then 3469 _am_result="yes ($s style)" 3470 break 3471 fi 3472done 3473rm -f confinc.* confmf.* 3474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 3475$as_echo "${_am_result}" >&6; } 3476 3477# Check whether --enable-dependency-tracking was given. 3478if test "${enable_dependency_tracking+set}" = set; then : 3479 enableval=$enable_dependency_tracking; 3480fi 3481 3482if test "x$enable_dependency_tracking" != xno; then 3483 am_depcomp="$ac_aux_dir/depcomp" 3484 AMDEPBACKSLASH='\' 3485 am__nodep='_no' 3486fi 3487 if test "x$enable_dependency_tracking" != xno; then 3488 AMDEP_TRUE= 3489 AMDEP_FALSE='#' 3490else 3491 AMDEP_TRUE='#' 3492 AMDEP_FALSE= 3493fi 3494 3495 3496ac_ext=c 3497ac_cpp='$CPP $CPPFLAGS' 3498ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3499ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3500ac_compiler_gnu=$ac_cv_c_compiler_gnu 3501if test -n "$ac_tool_prefix"; then 3502 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3503set dummy ${ac_tool_prefix}gcc; ac_word=$2 3504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3505$as_echo_n "checking for $ac_word... " >&6; } 3506if ${ac_cv_prog_CC+:} false; then : 3507 $as_echo_n "(cached) " >&6 3508else 3509 if test -n "$CC"; then 3510 ac_cv_prog_CC="$CC" # Let the user override the test. 3511else 3512as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3513for as_dir in $PATH 3514do 3515 IFS=$as_save_IFS 3516 test -z "$as_dir" && as_dir=. 3517 for ac_exec_ext in '' $ac_executable_extensions; do 3518 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3519 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3521 break 2 3522 fi 3523done 3524 done 3525IFS=$as_save_IFS 3526 3527fi 3528fi 3529CC=$ac_cv_prog_CC 3530if test -n "$CC"; then 3531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3532$as_echo "$CC" >&6; } 3533else 3534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3535$as_echo "no" >&6; } 3536fi 3537 3538 3539fi 3540if test -z "$ac_cv_prog_CC"; then 3541 ac_ct_CC=$CC 3542 # Extract the first word of "gcc", so it can be a program name with args. 3543set dummy gcc; ac_word=$2 3544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3545$as_echo_n "checking for $ac_word... " >&6; } 3546if ${ac_cv_prog_ac_ct_CC+:} false; then : 3547 $as_echo_n "(cached) " >&6 3548else 3549 if test -n "$ac_ct_CC"; then 3550 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3551else 3552as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3553for as_dir in $PATH 3554do 3555 IFS=$as_save_IFS 3556 test -z "$as_dir" && as_dir=. 3557 for ac_exec_ext in '' $ac_executable_extensions; do 3558 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3559 ac_cv_prog_ac_ct_CC="gcc" 3560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3561 break 2 3562 fi 3563done 3564 done 3565IFS=$as_save_IFS 3566 3567fi 3568fi 3569ac_ct_CC=$ac_cv_prog_ac_ct_CC 3570if test -n "$ac_ct_CC"; then 3571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3572$as_echo "$ac_ct_CC" >&6; } 3573else 3574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3575$as_echo "no" >&6; } 3576fi 3577 3578 if test "x$ac_ct_CC" = x; then 3579 CC="" 3580 else 3581 case $cross_compiling:$ac_tool_warned in 3582yes:) 3583{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3584$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3585ac_tool_warned=yes ;; 3586esac 3587 CC=$ac_ct_CC 3588 fi 3589else 3590 CC="$ac_cv_prog_CC" 3591fi 3592 3593if test -z "$CC"; then 3594 if test -n "$ac_tool_prefix"; then 3595 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3596set dummy ${ac_tool_prefix}cc; ac_word=$2 3597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3598$as_echo_n "checking for $ac_word... " >&6; } 3599if ${ac_cv_prog_CC+:} false; then : 3600 $as_echo_n "(cached) " >&6 3601else 3602 if test -n "$CC"; then 3603 ac_cv_prog_CC="$CC" # Let the user override the test. 3604else 3605as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3606for as_dir in $PATH 3607do 3608 IFS=$as_save_IFS 3609 test -z "$as_dir" && as_dir=. 3610 for ac_exec_ext in '' $ac_executable_extensions; do 3611 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3612 ac_cv_prog_CC="${ac_tool_prefix}cc" 3613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3614 break 2 3615 fi 3616done 3617 done 3618IFS=$as_save_IFS 3619 3620fi 3621fi 3622CC=$ac_cv_prog_CC 3623if test -n "$CC"; then 3624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3625$as_echo "$CC" >&6; } 3626else 3627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3628$as_echo "no" >&6; } 3629fi 3630 3631 3632 fi 3633fi 3634if test -z "$CC"; then 3635 # Extract the first word of "cc", so it can be a program name with args. 3636set dummy cc; ac_word=$2 3637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3638$as_echo_n "checking for $ac_word... " >&6; } 3639if ${ac_cv_prog_CC+:} false; then : 3640 $as_echo_n "(cached) " >&6 3641else 3642 if test -n "$CC"; then 3643 ac_cv_prog_CC="$CC" # Let the user override the test. 3644else 3645 ac_prog_rejected=no 3646as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3647for as_dir in $PATH 3648do 3649 IFS=$as_save_IFS 3650 test -z "$as_dir" && as_dir=. 3651 for ac_exec_ext in '' $ac_executable_extensions; do 3652 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3653 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3654 ac_prog_rejected=yes 3655 continue 3656 fi 3657 ac_cv_prog_CC="cc" 3658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3659 break 2 3660 fi 3661done 3662 done 3663IFS=$as_save_IFS 3664 3665if test $ac_prog_rejected = yes; then 3666 # We found a bogon in the path, so make sure we never use it. 3667 set dummy $ac_cv_prog_CC 3668 shift 3669 if test $# != 0; then 3670 # We chose a different compiler from the bogus one. 3671 # However, it has the same basename, so the bogon will be chosen 3672 # first if we set CC to just the basename; use the full file name. 3673 shift 3674 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3675 fi 3676fi 3677fi 3678fi 3679CC=$ac_cv_prog_CC 3680if test -n "$CC"; then 3681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3682$as_echo "$CC" >&6; } 3683else 3684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3685$as_echo "no" >&6; } 3686fi 3687 3688 3689fi 3690if test -z "$CC"; then 3691 if test -n "$ac_tool_prefix"; then 3692 for ac_prog in cl.exe 3693 do 3694 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3695set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3697$as_echo_n "checking for $ac_word... " >&6; } 3698if ${ac_cv_prog_CC+:} false; then : 3699 $as_echo_n "(cached) " >&6 3700else 3701 if test -n "$CC"; then 3702 ac_cv_prog_CC="$CC" # Let the user override the test. 3703else 3704as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3705for as_dir in $PATH 3706do 3707 IFS=$as_save_IFS 3708 test -z "$as_dir" && as_dir=. 3709 for ac_exec_ext in '' $ac_executable_extensions; do 3710 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3711 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3713 break 2 3714 fi 3715done 3716 done 3717IFS=$as_save_IFS 3718 3719fi 3720fi 3721CC=$ac_cv_prog_CC 3722if test -n "$CC"; then 3723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3724$as_echo "$CC" >&6; } 3725else 3726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3727$as_echo "no" >&6; } 3728fi 3729 3730 3731 test -n "$CC" && break 3732 done 3733fi 3734if test -z "$CC"; then 3735 ac_ct_CC=$CC 3736 for ac_prog in cl.exe 3737do 3738 # Extract the first word of "$ac_prog", so it can be a program name with args. 3739set dummy $ac_prog; ac_word=$2 3740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3741$as_echo_n "checking for $ac_word... " >&6; } 3742if ${ac_cv_prog_ac_ct_CC+:} false; then : 3743 $as_echo_n "(cached) " >&6 3744else 3745 if test -n "$ac_ct_CC"; then 3746 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3747else 3748as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3749for as_dir in $PATH 3750do 3751 IFS=$as_save_IFS 3752 test -z "$as_dir" && as_dir=. 3753 for ac_exec_ext in '' $ac_executable_extensions; do 3754 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3755 ac_cv_prog_ac_ct_CC="$ac_prog" 3756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3757 break 2 3758 fi 3759done 3760 done 3761IFS=$as_save_IFS 3762 3763fi 3764fi 3765ac_ct_CC=$ac_cv_prog_ac_ct_CC 3766if test -n "$ac_ct_CC"; then 3767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3768$as_echo "$ac_ct_CC" >&6; } 3769else 3770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3771$as_echo "no" >&6; } 3772fi 3773 3774 3775 test -n "$ac_ct_CC" && break 3776done 3777 3778 if test "x$ac_ct_CC" = x; then 3779 CC="" 3780 else 3781 case $cross_compiling:$ac_tool_warned in 3782yes:) 3783{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3784$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3785ac_tool_warned=yes ;; 3786esac 3787 CC=$ac_ct_CC 3788 fi 3789fi 3790 3791fi 3792 3793 3794test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3795$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3796as_fn_error $? "no acceptable C compiler found in \$PATH 3797See \`config.log' for more details" "$LINENO" 5; } 3798 3799# Provide some information about the compiler. 3800$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3801set X $ac_compile 3802ac_compiler=$2 3803for ac_option in --version -v -V -qversion; do 3804 { { ac_try="$ac_compiler $ac_option >&5" 3805case "(($ac_try" in 3806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3807 *) ac_try_echo=$ac_try;; 3808esac 3809eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3810$as_echo "$ac_try_echo"; } >&5 3811 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3812 ac_status=$? 3813 if test -s conftest.err; then 3814 sed '10a\ 3815... rest of stderr output deleted ... 3816 10q' conftest.err >conftest.er1 3817 cat conftest.er1 >&5 3818 fi 3819 rm -f conftest.er1 conftest.err 3820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3821 test $ac_status = 0; } 3822done 3823 3824cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3825/* end confdefs.h. */ 3826 3827int 3828main () 3829{ 3830 3831 ; 3832 return 0; 3833} 3834_ACEOF 3835ac_clean_files_save=$ac_clean_files 3836ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3837# Try to create an executable without -o first, disregard a.out. 3838# It will help us diagnose broken compilers, and finding out an intuition 3839# of exeext. 3840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3841$as_echo_n "checking whether the C compiler works... " >&6; } 3842ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3843 3844# The possible output files: 3845ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3846 3847ac_rmfiles= 3848for ac_file in $ac_files 3849do 3850 case $ac_file in 3851 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3852 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3853 esac 3854done 3855rm -f $ac_rmfiles 3856 3857if { { ac_try="$ac_link_default" 3858case "(($ac_try" in 3859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3860 *) ac_try_echo=$ac_try;; 3861esac 3862eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3863$as_echo "$ac_try_echo"; } >&5 3864 (eval "$ac_link_default") 2>&5 3865 ac_status=$? 3866 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3867 test $ac_status = 0; }; then : 3868 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3869# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3870# in a Makefile. We should not override ac_cv_exeext if it was cached, 3871# so that the user can short-circuit this test for compilers unknown to 3872# Autoconf. 3873for ac_file in $ac_files '' 3874do 3875 test -f "$ac_file" || continue 3876 case $ac_file in 3877 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3878 ;; 3879 [ab].out ) 3880 # We found the default executable, but exeext='' is most 3881 # certainly right. 3882 break;; 3883 *.* ) 3884 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3885 then :; else 3886 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3887 fi 3888 # We set ac_cv_exeext here because the later test for it is not 3889 # safe: cross compilers may not add the suffix if given an `-o' 3890 # argument, so we may need to know it at that point already. 3891 # Even if this section looks crufty: it has the advantage of 3892 # actually working. 3893 break;; 3894 * ) 3895 break;; 3896 esac 3897done 3898test "$ac_cv_exeext" = no && ac_cv_exeext= 3899 3900else 3901 ac_file='' 3902fi 3903if test -z "$ac_file"; then : 3904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3905$as_echo "no" >&6; } 3906$as_echo "$as_me: failed program was:" >&5 3907sed 's/^/| /' conftest.$ac_ext >&5 3908 3909{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3910$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3911as_fn_error 77 "C compiler cannot create executables 3912See \`config.log' for more details" "$LINENO" 5; } 3913else 3914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3915$as_echo "yes" >&6; } 3916fi 3917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3918$as_echo_n "checking for C compiler default output file name... " >&6; } 3919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3920$as_echo "$ac_file" >&6; } 3921ac_exeext=$ac_cv_exeext 3922 3923rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3924ac_clean_files=$ac_clean_files_save 3925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3926$as_echo_n "checking for suffix of executables... " >&6; } 3927if { { ac_try="$ac_link" 3928case "(($ac_try" in 3929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3930 *) ac_try_echo=$ac_try;; 3931esac 3932eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3933$as_echo "$ac_try_echo"; } >&5 3934 (eval "$ac_link") 2>&5 3935 ac_status=$? 3936 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3937 test $ac_status = 0; }; then : 3938 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3939# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3940# work properly (i.e., refer to `conftest.exe'), while it won't with 3941# `rm'. 3942for ac_file in conftest.exe conftest conftest.*; do 3943 test -f "$ac_file" || continue 3944 case $ac_file in 3945 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3946 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3947 break;; 3948 * ) break;; 3949 esac 3950done 3951else 3952 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3953$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3954as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3955See \`config.log' for more details" "$LINENO" 5; } 3956fi 3957rm -f conftest conftest$ac_cv_exeext 3958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3959$as_echo "$ac_cv_exeext" >&6; } 3960 3961rm -f conftest.$ac_ext 3962EXEEXT=$ac_cv_exeext 3963ac_exeext=$EXEEXT 3964cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3965/* end confdefs.h. */ 3966#include <stdio.h> 3967int 3968main () 3969{ 3970FILE *f = fopen ("conftest.out", "w"); 3971 return ferror (f) || fclose (f) != 0; 3972 3973 ; 3974 return 0; 3975} 3976_ACEOF 3977ac_clean_files="$ac_clean_files conftest.out" 3978# Check that the compiler produces executables we can run. If not, either 3979# the compiler is broken, or we cross compile. 3980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3981$as_echo_n "checking whether we are cross compiling... " >&6; } 3982if test "$cross_compiling" != yes; then 3983 { { ac_try="$ac_link" 3984case "(($ac_try" in 3985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3986 *) ac_try_echo=$ac_try;; 3987esac 3988eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3989$as_echo "$ac_try_echo"; } >&5 3990 (eval "$ac_link") 2>&5 3991 ac_status=$? 3992 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3993 test $ac_status = 0; } 3994 if { ac_try='./conftest$ac_cv_exeext' 3995 { { case "(($ac_try" in 3996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3997 *) ac_try_echo=$ac_try;; 3998esac 3999eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4000$as_echo "$ac_try_echo"; } >&5 4001 (eval "$ac_try") 2>&5 4002 ac_status=$? 4003 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4004 test $ac_status = 0; }; }; then 4005 cross_compiling=no 4006 else 4007 if test "$cross_compiling" = maybe; then 4008 cross_compiling=yes 4009 else 4010 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4011$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4012as_fn_error $? "cannot run C compiled programs. 4013If you meant to cross compile, use \`--host'. 4014See \`config.log' for more details" "$LINENO" 5; } 4015 fi 4016 fi 4017fi 4018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4019$as_echo "$cross_compiling" >&6; } 4020 4021rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 4022ac_clean_files=$ac_clean_files_save 4023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4024$as_echo_n "checking for suffix of object files... " >&6; } 4025if ${ac_cv_objext+:} false; then : 4026 $as_echo_n "(cached) " >&6 4027else 4028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4029/* end confdefs.h. */ 4030 4031int 4032main () 4033{ 4034 4035 ; 4036 return 0; 4037} 4038_ACEOF 4039rm -f conftest.o conftest.obj 4040if { { ac_try="$ac_compile" 4041case "(($ac_try" in 4042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4043 *) ac_try_echo=$ac_try;; 4044esac 4045eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4046$as_echo "$ac_try_echo"; } >&5 4047 (eval "$ac_compile") 2>&5 4048 ac_status=$? 4049 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4050 test $ac_status = 0; }; then : 4051 for ac_file in conftest.o conftest.obj conftest.*; do 4052 test -f "$ac_file" || continue; 4053 case $ac_file in 4054 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4055 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4056 break;; 4057 esac 4058done 4059else 4060 $as_echo "$as_me: failed program was:" >&5 4061sed 's/^/| /' conftest.$ac_ext >&5 4062 4063{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4064$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4065as_fn_error $? "cannot compute suffix of object files: cannot compile 4066See \`config.log' for more details" "$LINENO" 5; } 4067fi 4068rm -f conftest.$ac_cv_objext conftest.$ac_ext 4069fi 4070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4071$as_echo "$ac_cv_objext" >&6; } 4072OBJEXT=$ac_cv_objext 4073ac_objext=$OBJEXT 4074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4075$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4076if ${ac_cv_c_compiler_gnu+:} false; then : 4077 $as_echo_n "(cached) " >&6 4078else 4079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4080/* end confdefs.h. */ 4081 4082int 4083main () 4084{ 4085#ifndef __GNUC__ 4086 choke me 4087#endif 4088 4089 ; 4090 return 0; 4091} 4092_ACEOF 4093if ac_fn_c_try_compile "$LINENO"; then : 4094 ac_compiler_gnu=yes 4095else 4096 ac_compiler_gnu=no 4097fi 4098rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4099ac_cv_c_compiler_gnu=$ac_compiler_gnu 4100 4101fi 4102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4103$as_echo "$ac_cv_c_compiler_gnu" >&6; } 4104if test $ac_compiler_gnu = yes; then 4105 GCC=yes 4106else 4107 GCC= 4108fi 4109ac_test_CFLAGS=${CFLAGS+set} 4110ac_save_CFLAGS=$CFLAGS 4111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4112$as_echo_n "checking whether $CC accepts -g... " >&6; } 4113if ${ac_cv_prog_cc_g+:} false; then : 4114 $as_echo_n "(cached) " >&6 4115else 4116 ac_save_c_werror_flag=$ac_c_werror_flag 4117 ac_c_werror_flag=yes 4118 ac_cv_prog_cc_g=no 4119 CFLAGS="-g" 4120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4121/* end confdefs.h. */ 4122 4123int 4124main () 4125{ 4126 4127 ; 4128 return 0; 4129} 4130_ACEOF 4131if ac_fn_c_try_compile "$LINENO"; then : 4132 ac_cv_prog_cc_g=yes 4133else 4134 CFLAGS="" 4135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4136/* end confdefs.h. */ 4137 4138int 4139main () 4140{ 4141 4142 ; 4143 return 0; 4144} 4145_ACEOF 4146if ac_fn_c_try_compile "$LINENO"; then : 4147 4148else 4149 ac_c_werror_flag=$ac_save_c_werror_flag 4150 CFLAGS="-g" 4151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4152/* end confdefs.h. */ 4153 4154int 4155main () 4156{ 4157 4158 ; 4159 return 0; 4160} 4161_ACEOF 4162if ac_fn_c_try_compile "$LINENO"; then : 4163 ac_cv_prog_cc_g=yes 4164fi 4165rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4166fi 4167rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4168fi 4169rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4170 ac_c_werror_flag=$ac_save_c_werror_flag 4171fi 4172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4173$as_echo "$ac_cv_prog_cc_g" >&6; } 4174if test "$ac_test_CFLAGS" = set; then 4175 CFLAGS=$ac_save_CFLAGS 4176elif test $ac_cv_prog_cc_g = yes; then 4177 if test "$GCC" = yes; then 4178 CFLAGS="-g -O2" 4179 else 4180 CFLAGS="-g" 4181 fi 4182else 4183 if test "$GCC" = yes; then 4184 CFLAGS="-O2" 4185 else 4186 CFLAGS= 4187 fi 4188fi 4189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4190$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4191if ${ac_cv_prog_cc_c89+:} false; then : 4192 $as_echo_n "(cached) " >&6 4193else 4194 ac_cv_prog_cc_c89=no 4195ac_save_CC=$CC 4196cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4197/* end confdefs.h. */ 4198#include <stdarg.h> 4199#include <stdio.h> 4200struct stat; 4201/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4202struct buf { int x; }; 4203FILE * (*rcsopen) (struct buf *, struct stat *, int); 4204static char *e (p, i) 4205 char **p; 4206 int i; 4207{ 4208 return p[i]; 4209} 4210static char *f (char * (*g) (char **, int), char **p, ...) 4211{ 4212 char *s; 4213 va_list v; 4214 va_start (v,p); 4215 s = g (p, va_arg (v,int)); 4216 va_end (v); 4217 return s; 4218} 4219 4220/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4221 function prototypes and stuff, but not '\xHH' hex character constants. 4222 These don't provoke an error unfortunately, instead are silently treated 4223 as 'x'. The following induces an error, until -std is added to get 4224 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4225 array size at least. It's necessary to write '\x00'==0 to get something 4226 that's true only with -std. */ 4227int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4228 4229/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4230 inside strings and character constants. */ 4231#define FOO(x) 'x' 4232int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4233 4234int test (int i, double x); 4235struct s1 {int (*f) (int a);}; 4236struct s2 {int (*f) (double a);}; 4237int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4238int argc; 4239char **argv; 4240int 4241main () 4242{ 4243return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4244 ; 4245 return 0; 4246} 4247_ACEOF 4248for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4249 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4250do 4251 CC="$ac_save_CC $ac_arg" 4252 if ac_fn_c_try_compile "$LINENO"; then : 4253 ac_cv_prog_cc_c89=$ac_arg 4254fi 4255rm -f core conftest.err conftest.$ac_objext 4256 test "x$ac_cv_prog_cc_c89" != "xno" && break 4257done 4258rm -f conftest.$ac_ext 4259CC=$ac_save_CC 4260 4261fi 4262# AC_CACHE_VAL 4263case "x$ac_cv_prog_cc_c89" in 4264 x) 4265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4266$as_echo "none needed" >&6; } ;; 4267 xno) 4268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4269$as_echo "unsupported" >&6; } ;; 4270 *) 4271 CC="$CC $ac_cv_prog_cc_c89" 4272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4273$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4274esac 4275if test "x$ac_cv_prog_cc_c89" != xno; then : 4276 4277fi 4278 4279ac_ext=c 4280ac_cpp='$CPP $CPPFLAGS' 4281ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4282ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4283ac_compiler_gnu=$ac_cv_c_compiler_gnu 4284 4285ac_ext=c 4286ac_cpp='$CPP $CPPFLAGS' 4287ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4288ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4289ac_compiler_gnu=$ac_cv_c_compiler_gnu 4290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4291$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 4292if ${am_cv_prog_cc_c_o+:} false; then : 4293 $as_echo_n "(cached) " >&6 4294else 4295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4296/* end confdefs.h. */ 4297 4298int 4299main () 4300{ 4301 4302 ; 4303 return 0; 4304} 4305_ACEOF 4306 # Make sure it works both with $CC and with simple cc. 4307 # Following AC_PROG_CC_C_O, we do the test twice because some 4308 # compilers refuse to overwrite an existing .o file with -o, 4309 # though they will create one. 4310 am_cv_prog_cc_c_o=yes 4311 for am_i in 1 2; do 4312 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4313 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4314 ac_status=$? 4315 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4316 (exit $ac_status); } \ 4317 && test -f conftest2.$ac_objext; then 4318 : OK 4319 else 4320 am_cv_prog_cc_c_o=no 4321 break 4322 fi 4323 done 4324 rm -f core conftest* 4325 unset am_i 4326fi 4327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4328$as_echo "$am_cv_prog_cc_c_o" >&6; } 4329if test "$am_cv_prog_cc_c_o" != yes; then 4330 # Losing compiler, so override with the script. 4331 # FIXME: It is wrong to rewrite CC. 4332 # But if we don't then we get into trouble of one sort or another. 4333 # A longer-term fix would be to have automake use am__CC in this case, 4334 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4335 CC="$am_aux_dir/compile $CC" 4336fi 4337ac_ext=c 4338ac_cpp='$CPP $CPPFLAGS' 4339ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4340ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4341ac_compiler_gnu=$ac_cv_c_compiler_gnu 4342 4343 4344depcc="$CC" am_compiler_list= 4345 4346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4347$as_echo_n "checking dependency style of $depcc... " >&6; } 4348if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4349 $as_echo_n "(cached) " >&6 4350else 4351 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4352 # We make a subdir and do the tests there. Otherwise we can end up 4353 # making bogus files that we don't know about and never remove. For 4354 # instance it was reported that on HP-UX the gcc test will end up 4355 # making a dummy file named 'D' -- because '-MD' means "put the output 4356 # in D". 4357 rm -rf conftest.dir 4358 mkdir conftest.dir 4359 # Copy depcomp to subdir because otherwise we won't find it if we're 4360 # using a relative directory. 4361 cp "$am_depcomp" conftest.dir 4362 cd conftest.dir 4363 # We will build objects and dependencies in a subdirectory because 4364 # it helps to detect inapplicable dependency modes. For instance 4365 # both Tru64's cc and ICC support -MD to output dependencies as a 4366 # side effect of compilation, but ICC will put the dependencies in 4367 # the current directory while Tru64 will put them in the object 4368 # directory. 4369 mkdir sub 4370 4371 am_cv_CC_dependencies_compiler_type=none 4372 if test "$am_compiler_list" = ""; then 4373 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4374 fi 4375 am__universal=false 4376 case " $depcc " in #( 4377 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4378 esac 4379 4380 for depmode in $am_compiler_list; do 4381 # Setup a source with many dependencies, because some compilers 4382 # like to wrap large dependency lists on column 80 (with \), and 4383 # we should not choose a depcomp mode which is confused by this. 4384 # 4385 # We need to recreate these files for each test, as the compiler may 4386 # overwrite some of them when testing with obscure command lines. 4387 # This happens at least with the AIX C compiler. 4388 : > sub/conftest.c 4389 for i in 1 2 3 4 5 6; do 4390 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4391 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4392 # Solaris 10 /bin/sh. 4393 echo '/* dummy */' > sub/conftst$i.h 4394 done 4395 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4396 4397 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4398 # mode. It turns out that the SunPro C++ compiler does not properly 4399 # handle '-M -o', and we need to detect this. Also, some Intel 4400 # versions had trouble with output in subdirs. 4401 am__obj=sub/conftest.${OBJEXT-o} 4402 am__minus_obj="-o $am__obj" 4403 case $depmode in 4404 gcc) 4405 # This depmode causes a compiler race in universal mode. 4406 test "$am__universal" = false || continue 4407 ;; 4408 nosideeffect) 4409 # After this tag, mechanisms are not by side-effect, so they'll 4410 # only be used when explicitly requested. 4411 if test "x$enable_dependency_tracking" = xyes; then 4412 continue 4413 else 4414 break 4415 fi 4416 ;; 4417 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4418 # This compiler won't grok '-c -o', but also, the minuso test has 4419 # not run yet. These depmodes are late enough in the game, and 4420 # so weak that their functioning should not be impacted. 4421 am__obj=conftest.${OBJEXT-o} 4422 am__minus_obj= 4423 ;; 4424 none) break ;; 4425 esac 4426 if depmode=$depmode \ 4427 source=sub/conftest.c object=$am__obj \ 4428 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4429 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4430 >/dev/null 2>conftest.err && 4431 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4432 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4433 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4434 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4435 # icc doesn't choke on unknown options, it will just issue warnings 4436 # or remarks (even with -Werror). So we grep stderr for any message 4437 # that says an option was ignored or not supported. 4438 # When given -MP, icc 7.0 and 7.1 complain thusly: 4439 # icc: Command line warning: ignoring option '-M'; no argument required 4440 # The diagnosis changed in icc 8.0: 4441 # icc: Command line remark: option '-MP' not supported 4442 if (grep 'ignoring option' conftest.err || 4443 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4444 am_cv_CC_dependencies_compiler_type=$depmode 4445 break 4446 fi 4447 fi 4448 done 4449 4450 cd .. 4451 rm -rf conftest.dir 4452else 4453 am_cv_CC_dependencies_compiler_type=none 4454fi 4455 4456fi 4457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4458$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4459CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4460 4461 if 4462 test "x$enable_dependency_tracking" != xno \ 4463 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4464 am__fastdepCC_TRUE= 4465 am__fastdepCC_FALSE='#' 4466else 4467 am__fastdepCC_TRUE='#' 4468 am__fastdepCC_FALSE= 4469fi 4470 4471 4472 case $ac_cv_prog_cc_stdc in #( 4473 no) : 4474 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #( 4475 *) : 4476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 4477$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 4478if ${ac_cv_prog_cc_c99+:} false; then : 4479 $as_echo_n "(cached) " >&6 4480else 4481 ac_cv_prog_cc_c99=no 4482ac_save_CC=$CC 4483cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4484/* end confdefs.h. */ 4485#include <stdarg.h> 4486#include <stdbool.h> 4487#include <stdlib.h> 4488#include <wchar.h> 4489#include <stdio.h> 4490 4491// Check varargs macros. These examples are taken from C99 6.10.3.5. 4492#define debug(...) fprintf (stderr, __VA_ARGS__) 4493#define showlist(...) puts (#__VA_ARGS__) 4494#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 4495static void 4496test_varargs_macros (void) 4497{ 4498 int x = 1234; 4499 int y = 5678; 4500 debug ("Flag"); 4501 debug ("X = %d\n", x); 4502 showlist (The first, second, and third items.); 4503 report (x>y, "x is %d but y is %d", x, y); 4504} 4505 4506// Check long long types. 4507#define BIG64 18446744073709551615ull 4508#define BIG32 4294967295ul 4509#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 4510#if !BIG_OK 4511 your preprocessor is broken; 4512#endif 4513#if BIG_OK 4514#else 4515 your preprocessor is broken; 4516#endif 4517static long long int bignum = -9223372036854775807LL; 4518static unsigned long long int ubignum = BIG64; 4519 4520struct incomplete_array 4521{ 4522 int datasize; 4523 double data[]; 4524}; 4525 4526struct named_init { 4527 int number; 4528 const wchar_t *name; 4529 double average; 4530}; 4531 4532typedef const char *ccp; 4533 4534static inline int 4535test_restrict (ccp restrict text) 4536{ 4537 // See if C++-style comments work. 4538 // Iterate through items via the restricted pointer. 4539 // Also check for declarations in for loops. 4540 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 4541 continue; 4542 return 0; 4543} 4544 4545// Check varargs and va_copy. 4546static void 4547test_varargs (const char *format, ...) 4548{ 4549 va_list args; 4550 va_start (args, format); 4551 va_list args_copy; 4552 va_copy (args_copy, args); 4553 4554 const char *str; 4555 int number; 4556 float fnumber; 4557 4558 while (*format) 4559 { 4560 switch (*format++) 4561 { 4562 case 's': // string 4563 str = va_arg (args_copy, const char *); 4564 break; 4565 case 'd': // int 4566 number = va_arg (args_copy, int); 4567 break; 4568 case 'f': // float 4569 fnumber = va_arg (args_copy, double); 4570 break; 4571 default: 4572 break; 4573 } 4574 } 4575 va_end (args_copy); 4576 va_end (args); 4577} 4578 4579int 4580main () 4581{ 4582 4583 // Check bool. 4584 _Bool success = false; 4585 4586 // Check restrict. 4587 if (test_restrict ("String literal") == 0) 4588 success = true; 4589 char *restrict newvar = "Another string"; 4590 4591 // Check varargs. 4592 test_varargs ("s, d' f .", "string", 65, 34.234); 4593 test_varargs_macros (); 4594 4595 // Check flexible array members. 4596 struct incomplete_array *ia = 4597 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 4598 ia->datasize = 10; 4599 for (int i = 0; i < ia->datasize; ++i) 4600 ia->data[i] = i * 1.234; 4601 4602 // Check named initializers. 4603 struct named_init ni = { 4604 .number = 34, 4605 .name = L"Test wide string", 4606 .average = 543.34343, 4607 }; 4608 4609 ni.number = 58; 4610 4611 int dynamic_array[ni.number]; 4612 dynamic_array[ni.number - 1] = 543; 4613 4614 // work around unused variable warnings 4615 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 4616 || dynamic_array[ni.number - 1] != 543); 4617 4618 ; 4619 return 0; 4620} 4621_ACEOF 4622for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 4623do 4624 CC="$ac_save_CC $ac_arg" 4625 if ac_fn_c_try_compile "$LINENO"; then : 4626 ac_cv_prog_cc_c99=$ac_arg 4627fi 4628rm -f core conftest.err conftest.$ac_objext 4629 test "x$ac_cv_prog_cc_c99" != "xno" && break 4630done 4631rm -f conftest.$ac_ext 4632CC=$ac_save_CC 4633 4634fi 4635# AC_CACHE_VAL 4636case "x$ac_cv_prog_cc_c99" in 4637 x) 4638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4639$as_echo "none needed" >&6; } ;; 4640 xno) 4641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4642$as_echo "unsupported" >&6; } ;; 4643 *) 4644 CC="$CC $ac_cv_prog_cc_c99" 4645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4646$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 4647esac 4648if test "x$ac_cv_prog_cc_c99" != xno; then : 4649 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 4650else 4651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4652$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4653if ${ac_cv_prog_cc_c89+:} false; then : 4654 $as_echo_n "(cached) " >&6 4655else 4656 ac_cv_prog_cc_c89=no 4657ac_save_CC=$CC 4658cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4659/* end confdefs.h. */ 4660#include <stdarg.h> 4661#include <stdio.h> 4662struct stat; 4663/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4664struct buf { int x; }; 4665FILE * (*rcsopen) (struct buf *, struct stat *, int); 4666static char *e (p, i) 4667 char **p; 4668 int i; 4669{ 4670 return p[i]; 4671} 4672static char *f (char * (*g) (char **, int), char **p, ...) 4673{ 4674 char *s; 4675 va_list v; 4676 va_start (v,p); 4677 s = g (p, va_arg (v,int)); 4678 va_end (v); 4679 return s; 4680} 4681 4682/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4683 function prototypes and stuff, but not '\xHH' hex character constants. 4684 These don't provoke an error unfortunately, instead are silently treated 4685 as 'x'. The following induces an error, until -std is added to get 4686 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4687 array size at least. It's necessary to write '\x00'==0 to get something 4688 that's true only with -std. */ 4689int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4690 4691/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4692 inside strings and character constants. */ 4693#define FOO(x) 'x' 4694int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4695 4696int test (int i, double x); 4697struct s1 {int (*f) (int a);}; 4698struct s2 {int (*f) (double a);}; 4699int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4700int argc; 4701char **argv; 4702int 4703main () 4704{ 4705return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4706 ; 4707 return 0; 4708} 4709_ACEOF 4710for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4711 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4712do 4713 CC="$ac_save_CC $ac_arg" 4714 if ac_fn_c_try_compile "$LINENO"; then : 4715 ac_cv_prog_cc_c89=$ac_arg 4716fi 4717rm -f core conftest.err conftest.$ac_objext 4718 test "x$ac_cv_prog_cc_c89" != "xno" && break 4719done 4720rm -f conftest.$ac_ext 4721CC=$ac_save_CC 4722 4723fi 4724# AC_CACHE_VAL 4725case "x$ac_cv_prog_cc_c89" in 4726 x) 4727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4728$as_echo "none needed" >&6; } ;; 4729 xno) 4730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4731$as_echo "unsupported" >&6; } ;; 4732 *) 4733 CC="$CC $ac_cv_prog_cc_c89" 4734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4735$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4736esac 4737if test "x$ac_cv_prog_cc_c89" != xno; then : 4738 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 4739else 4740 ac_cv_prog_cc_stdc=no 4741fi 4742 4743fi 4744 ;; 4745esac 4746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5 4747$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; } 4748 if ${ac_cv_prog_cc_stdc+:} false; then : 4749 $as_echo_n "(cached) " >&6 4750fi 4751 4752 case $ac_cv_prog_cc_stdc in #( 4753 no) : 4754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4755$as_echo "unsupported" >&6; } ;; #( 4756 '') : 4757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4758$as_echo "none needed" >&6; } ;; #( 4759 *) : 4760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5 4761$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;; 4762esac 4763 4764 4765ac_ext=c 4766ac_cpp='$CPP $CPPFLAGS' 4767ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4768ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4769ac_compiler_gnu=$ac_cv_c_compiler_gnu 4770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4771$as_echo_n "checking how to run the C preprocessor... " >&6; } 4772# On Suns, sometimes $CPP names a directory. 4773if test -n "$CPP" && test -d "$CPP"; then 4774 CPP= 4775fi 4776if test -z "$CPP"; then 4777 if ${ac_cv_prog_CPP+:} false; then : 4778 $as_echo_n "(cached) " >&6 4779else 4780 # Double quotes because CPP needs to be expanded 4781 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4782 do 4783 ac_preproc_ok=false 4784for ac_c_preproc_warn_flag in '' yes 4785do 4786 # Use a header file that comes with gcc, so configuring glibc 4787 # with a fresh cross-compiler works. 4788 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4789 # <limits.h> exists even on freestanding compilers. 4790 # On the NeXT, cc -E runs the code through the compiler's parser, 4791 # not just through cpp. "Syntax error" is here to catch this case. 4792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4793/* end confdefs.h. */ 4794#ifdef __STDC__ 4795# include <limits.h> 4796#else 4797# include <assert.h> 4798#endif 4799 Syntax error 4800_ACEOF 4801if ac_fn_c_try_cpp "$LINENO"; then : 4802 4803else 4804 # Broken: fails on valid input. 4805continue 4806fi 4807rm -f conftest.err conftest.i conftest.$ac_ext 4808 4809 # OK, works on sane cases. Now check whether nonexistent headers 4810 # can be detected and how. 4811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4812/* end confdefs.h. */ 4813#include <ac_nonexistent.h> 4814_ACEOF 4815if ac_fn_c_try_cpp "$LINENO"; then : 4816 # Broken: success on invalid input. 4817continue 4818else 4819 # Passes both tests. 4820ac_preproc_ok=: 4821break 4822fi 4823rm -f conftest.err conftest.i conftest.$ac_ext 4824 4825done 4826# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4827rm -f conftest.i conftest.err conftest.$ac_ext 4828if $ac_preproc_ok; then : 4829 break 4830fi 4831 4832 done 4833 ac_cv_prog_CPP=$CPP 4834 4835fi 4836 CPP=$ac_cv_prog_CPP 4837else 4838 ac_cv_prog_CPP=$CPP 4839fi 4840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4841$as_echo "$CPP" >&6; } 4842ac_preproc_ok=false 4843for ac_c_preproc_warn_flag in '' yes 4844do 4845 # Use a header file that comes with gcc, so configuring glibc 4846 # with a fresh cross-compiler works. 4847 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4848 # <limits.h> exists even on freestanding compilers. 4849 # On the NeXT, cc -E runs the code through the compiler's parser, 4850 # not just through cpp. "Syntax error" is here to catch this case. 4851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4852/* end confdefs.h. */ 4853#ifdef __STDC__ 4854# include <limits.h> 4855#else 4856# include <assert.h> 4857#endif 4858 Syntax error 4859_ACEOF 4860if ac_fn_c_try_cpp "$LINENO"; then : 4861 4862else 4863 # Broken: fails on valid input. 4864continue 4865fi 4866rm -f conftest.err conftest.i conftest.$ac_ext 4867 4868 # OK, works on sane cases. Now check whether nonexistent headers 4869 # can be detected and how. 4870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4871/* end confdefs.h. */ 4872#include <ac_nonexistent.h> 4873_ACEOF 4874if ac_fn_c_try_cpp "$LINENO"; then : 4875 # Broken: success on invalid input. 4876continue 4877else 4878 # Passes both tests. 4879ac_preproc_ok=: 4880break 4881fi 4882rm -f conftest.err conftest.i conftest.$ac_ext 4883 4884done 4885# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4886rm -f conftest.i conftest.err conftest.$ac_ext 4887if $ac_preproc_ok; then : 4888 4889else 4890 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4891$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4892as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4893See \`config.log' for more details" "$LINENO" 5; } 4894fi 4895 4896ac_ext=c 4897ac_cpp='$CPP $CPPFLAGS' 4898ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4899ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4900ac_compiler_gnu=$ac_cv_c_compiler_gnu 4901 4902 4903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4904$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4905if ${ac_cv_path_GREP+:} false; then : 4906 $as_echo_n "(cached) " >&6 4907else 4908 if test -z "$GREP"; then 4909 ac_path_GREP_found=false 4910 # Loop through the user's path and test for each of PROGNAME-LIST 4911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4912for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4913do 4914 IFS=$as_save_IFS 4915 test -z "$as_dir" && as_dir=. 4916 for ac_prog in grep ggrep; do 4917 for ac_exec_ext in '' $ac_executable_extensions; do 4918 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4919 as_fn_executable_p "$ac_path_GREP" || continue 4920# Check for GNU ac_path_GREP and select it if it is found. 4921 # Check for GNU $ac_path_GREP 4922case `"$ac_path_GREP" --version 2>&1` in 4923*GNU*) 4924 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4925*) 4926 ac_count=0 4927 $as_echo_n 0123456789 >"conftest.in" 4928 while : 4929 do 4930 cat "conftest.in" "conftest.in" >"conftest.tmp" 4931 mv "conftest.tmp" "conftest.in" 4932 cp "conftest.in" "conftest.nl" 4933 $as_echo 'GREP' >> "conftest.nl" 4934 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4935 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4936 as_fn_arith $ac_count + 1 && ac_count=$as_val 4937 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4938 # Best one so far, save it but keep looking for a better one 4939 ac_cv_path_GREP="$ac_path_GREP" 4940 ac_path_GREP_max=$ac_count 4941 fi 4942 # 10*(2^10) chars as input seems more than enough 4943 test $ac_count -gt 10 && break 4944 done 4945 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4946esac 4947 4948 $ac_path_GREP_found && break 3 4949 done 4950 done 4951 done 4952IFS=$as_save_IFS 4953 if test -z "$ac_cv_path_GREP"; then 4954 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4955 fi 4956else 4957 ac_cv_path_GREP=$GREP 4958fi 4959 4960fi 4961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4962$as_echo "$ac_cv_path_GREP" >&6; } 4963 GREP="$ac_cv_path_GREP" 4964 4965 4966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4967$as_echo_n "checking for egrep... " >&6; } 4968if ${ac_cv_path_EGREP+:} false; then : 4969 $as_echo_n "(cached) " >&6 4970else 4971 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4972 then ac_cv_path_EGREP="$GREP -E" 4973 else 4974 if test -z "$EGREP"; then 4975 ac_path_EGREP_found=false 4976 # Loop through the user's path and test for each of PROGNAME-LIST 4977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4978for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4979do 4980 IFS=$as_save_IFS 4981 test -z "$as_dir" && as_dir=. 4982 for ac_prog in egrep; do 4983 for ac_exec_ext in '' $ac_executable_extensions; do 4984 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4985 as_fn_executable_p "$ac_path_EGREP" || continue 4986# Check for GNU ac_path_EGREP and select it if it is found. 4987 # Check for GNU $ac_path_EGREP 4988case `"$ac_path_EGREP" --version 2>&1` in 4989*GNU*) 4990 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4991*) 4992 ac_count=0 4993 $as_echo_n 0123456789 >"conftest.in" 4994 while : 4995 do 4996 cat "conftest.in" "conftest.in" >"conftest.tmp" 4997 mv "conftest.tmp" "conftest.in" 4998 cp "conftest.in" "conftest.nl" 4999 $as_echo 'EGREP' >> "conftest.nl" 5000 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5001 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5002 as_fn_arith $ac_count + 1 && ac_count=$as_val 5003 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 5004 # Best one so far, save it but keep looking for a better one 5005 ac_cv_path_EGREP="$ac_path_EGREP" 5006 ac_path_EGREP_max=$ac_count 5007 fi 5008 # 10*(2^10) chars as input seems more than enough 5009 test $ac_count -gt 10 && break 5010 done 5011 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5012esac 5013 5014 $ac_path_EGREP_found && break 3 5015 done 5016 done 5017 done 5018IFS=$as_save_IFS 5019 if test -z "$ac_cv_path_EGREP"; then 5020 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5021 fi 5022else 5023 ac_cv_path_EGREP=$EGREP 5024fi 5025 5026 fi 5027fi 5028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 5029$as_echo "$ac_cv_path_EGREP" >&6; } 5030 EGREP="$ac_cv_path_EGREP" 5031 5032 5033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 5034$as_echo_n "checking for ANSI C header files... " >&6; } 5035if ${ac_cv_header_stdc+:} false; then : 5036 $as_echo_n "(cached) " >&6 5037else 5038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5039/* end confdefs.h. */ 5040#include <stdlib.h> 5041#include <stdarg.h> 5042#include <string.h> 5043#include <float.h> 5044 5045int 5046main () 5047{ 5048 5049 ; 5050 return 0; 5051} 5052_ACEOF 5053if ac_fn_c_try_compile "$LINENO"; then : 5054 ac_cv_header_stdc=yes 5055else 5056 ac_cv_header_stdc=no 5057fi 5058rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5059 5060if test $ac_cv_header_stdc = yes; then 5061 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 5062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5063/* end confdefs.h. */ 5064#include <string.h> 5065 5066_ACEOF 5067if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5068 $EGREP "memchr" >/dev/null 2>&1; then : 5069 5070else 5071 ac_cv_header_stdc=no 5072fi 5073rm -f conftest* 5074 5075fi 5076 5077if test $ac_cv_header_stdc = yes; then 5078 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 5079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5080/* end confdefs.h. */ 5081#include <stdlib.h> 5082 5083_ACEOF 5084if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5085 $EGREP "free" >/dev/null 2>&1; then : 5086 5087else 5088 ac_cv_header_stdc=no 5089fi 5090rm -f conftest* 5091 5092fi 5093 5094if test $ac_cv_header_stdc = yes; then 5095 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 5096 if test "$cross_compiling" = yes; then : 5097 : 5098else 5099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5100/* end confdefs.h. */ 5101#include <ctype.h> 5102#include <stdlib.h> 5103#if ((' ' & 0x0FF) == 0x020) 5104# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 5105# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 5106#else 5107# define ISLOWER(c) \ 5108 (('a' <= (c) && (c) <= 'i') \ 5109 || ('j' <= (c) && (c) <= 'r') \ 5110 || ('s' <= (c) && (c) <= 'z')) 5111# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 5112#endif 5113 5114#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 5115int 5116main () 5117{ 5118 int i; 5119 for (i = 0; i < 256; i++) 5120 if (XOR (islower (i), ISLOWER (i)) 5121 || toupper (i) != TOUPPER (i)) 5122 return 2; 5123 return 0; 5124} 5125_ACEOF 5126if ac_fn_c_try_run "$LINENO"; then : 5127 5128else 5129 ac_cv_header_stdc=no 5130fi 5131rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 5132 conftest.$ac_objext conftest.beam conftest.$ac_ext 5133fi 5134 5135fi 5136fi 5137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 5138$as_echo "$ac_cv_header_stdc" >&6; } 5139if test $ac_cv_header_stdc = yes; then 5140 5141$as_echo "#define STDC_HEADERS 1" >>confdefs.h 5142 5143fi 5144 5145# On IRIX 5.3, sys/types and inttypes.h are conflicting. 5146for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 5147 inttypes.h stdint.h unistd.h 5148do : 5149 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 5150ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 5151" 5152if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 5153 cat >>confdefs.h <<_ACEOF 5154#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 5155_ACEOF 5156 5157fi 5158 5159done 5160 5161 5162 5163 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 5164if test "x$ac_cv_header_minix_config_h" = xyes; then : 5165 MINIX=yes 5166else 5167 MINIX= 5168fi 5169 5170 5171 if test "$MINIX" = yes; then 5172 5173$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 5174 5175 5176$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 5177 5178 5179$as_echo "#define _MINIX 1" >>confdefs.h 5180 5181 fi 5182 5183 5184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 5185$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 5186if ${ac_cv_safe_to_define___extensions__+:} false; then : 5187 $as_echo_n "(cached) " >&6 5188else 5189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5190/* end confdefs.h. */ 5191 5192# define __EXTENSIONS__ 1 5193 $ac_includes_default 5194int 5195main () 5196{ 5197 5198 ; 5199 return 0; 5200} 5201_ACEOF 5202if ac_fn_c_try_compile "$LINENO"; then : 5203 ac_cv_safe_to_define___extensions__=yes 5204else 5205 ac_cv_safe_to_define___extensions__=no 5206fi 5207rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5208fi 5209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 5210$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 5211 test $ac_cv_safe_to_define___extensions__ = yes && 5212 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 5213 5214 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 5215 5216 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 5217 5218 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 5219 5220 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 5221 5222 5223 5224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 5225$as_echo_n "checking whether byte ordering is bigendian... " >&6; } 5226if ${ac_cv_c_bigendian+:} false; then : 5227 $as_echo_n "(cached) " >&6 5228else 5229 ac_cv_c_bigendian=unknown 5230 # See if we're dealing with a universal compiler. 5231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5232/* end confdefs.h. */ 5233#ifndef __APPLE_CC__ 5234 not a universal capable compiler 5235 #endif 5236 typedef int dummy; 5237 5238_ACEOF 5239if ac_fn_c_try_compile "$LINENO"; then : 5240 5241 # Check for potential -arch flags. It is not universal unless 5242 # there are at least two -arch flags with different values. 5243 ac_arch= 5244 ac_prev= 5245 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 5246 if test -n "$ac_prev"; then 5247 case $ac_word in 5248 i?86 | x86_64 | ppc | ppc64) 5249 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 5250 ac_arch=$ac_word 5251 else 5252 ac_cv_c_bigendian=universal 5253 break 5254 fi 5255 ;; 5256 esac 5257 ac_prev= 5258 elif test "x$ac_word" = "x-arch"; then 5259 ac_prev=arch 5260 fi 5261 done 5262fi 5263rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5264 if test $ac_cv_c_bigendian = unknown; then 5265 # See if sys/param.h defines the BYTE_ORDER macro. 5266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5267/* end confdefs.h. */ 5268#include <sys/types.h> 5269 #include <sys/param.h> 5270 5271int 5272main () 5273{ 5274#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 5275 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 5276 && LITTLE_ENDIAN) 5277 bogus endian macros 5278 #endif 5279 5280 ; 5281 return 0; 5282} 5283_ACEOF 5284if ac_fn_c_try_compile "$LINENO"; then : 5285 # It does; now see whether it defined to BIG_ENDIAN or not. 5286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5287/* end confdefs.h. */ 5288#include <sys/types.h> 5289 #include <sys/param.h> 5290 5291int 5292main () 5293{ 5294#if BYTE_ORDER != BIG_ENDIAN 5295 not big endian 5296 #endif 5297 5298 ; 5299 return 0; 5300} 5301_ACEOF 5302if ac_fn_c_try_compile "$LINENO"; then : 5303 ac_cv_c_bigendian=yes 5304else 5305 ac_cv_c_bigendian=no 5306fi 5307rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5308fi 5309rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5310 fi 5311 if test $ac_cv_c_bigendian = unknown; then 5312 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 5313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5314/* end confdefs.h. */ 5315#include <limits.h> 5316 5317int 5318main () 5319{ 5320#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 5321 bogus endian macros 5322 #endif 5323 5324 ; 5325 return 0; 5326} 5327_ACEOF 5328if ac_fn_c_try_compile "$LINENO"; then : 5329 # It does; now see whether it defined to _BIG_ENDIAN or not. 5330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5331/* end confdefs.h. */ 5332#include <limits.h> 5333 5334int 5335main () 5336{ 5337#ifndef _BIG_ENDIAN 5338 not big endian 5339 #endif 5340 5341 ; 5342 return 0; 5343} 5344_ACEOF 5345if ac_fn_c_try_compile "$LINENO"; then : 5346 ac_cv_c_bigendian=yes 5347else 5348 ac_cv_c_bigendian=no 5349fi 5350rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5351fi 5352rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5353 fi 5354 if test $ac_cv_c_bigendian = unknown; then 5355 # Compile a test program. 5356 if test "$cross_compiling" = yes; then : 5357 # Try to guess by grepping values from an object file. 5358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5359/* end confdefs.h. */ 5360short int ascii_mm[] = 5361 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 5362 short int ascii_ii[] = 5363 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 5364 int use_ascii (int i) { 5365 return ascii_mm[i] + ascii_ii[i]; 5366 } 5367 short int ebcdic_ii[] = 5368 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 5369 short int ebcdic_mm[] = 5370 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 5371 int use_ebcdic (int i) { 5372 return ebcdic_mm[i] + ebcdic_ii[i]; 5373 } 5374 extern int foo; 5375 5376int 5377main () 5378{ 5379return use_ascii (foo) == use_ebcdic (foo); 5380 ; 5381 return 0; 5382} 5383_ACEOF 5384if ac_fn_c_try_compile "$LINENO"; then : 5385 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 5386 ac_cv_c_bigendian=yes 5387 fi 5388 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 5389 if test "$ac_cv_c_bigendian" = unknown; then 5390 ac_cv_c_bigendian=no 5391 else 5392 # finding both strings is unlikely to happen, but who knows? 5393 ac_cv_c_bigendian=unknown 5394 fi 5395 fi 5396fi 5397rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5398else 5399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5400/* end confdefs.h. */ 5401$ac_includes_default 5402int 5403main () 5404{ 5405 5406 /* Are we little or big endian? From Harbison&Steele. */ 5407 union 5408 { 5409 long int l; 5410 char c[sizeof (long int)]; 5411 } u; 5412 u.l = 1; 5413 return u.c[sizeof (long int) - 1] == 1; 5414 5415 ; 5416 return 0; 5417} 5418_ACEOF 5419if ac_fn_c_try_run "$LINENO"; then : 5420 ac_cv_c_bigendian=no 5421else 5422 ac_cv_c_bigendian=yes 5423fi 5424rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 5425 conftest.$ac_objext conftest.beam conftest.$ac_ext 5426fi 5427 5428 fi 5429fi 5430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 5431$as_echo "$ac_cv_c_bigendian" >&6; } 5432 case $ac_cv_c_bigendian in #( 5433 yes) 5434 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h 5435;; #( 5436 no) 5437 ;; #( 5438 universal) 5439 5440$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 5441 5442 ;; #( 5443 *) 5444 as_fn_error $? "unknown endianness 5445 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 5446 esac 5447 5448 5449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5450$as_echo_n "checking whether ln -s works... " >&6; } 5451LN_S=$as_ln_s 5452if test "$LN_S" = "ln -s"; then 5453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5454$as_echo "yes" >&6; } 5455else 5456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5457$as_echo "no, using $LN_S" >&6; } 5458fi 5459 5460case `pwd` in 5461 *\ * | *\ *) 5462 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 5463$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 5464esac 5465 5466 5467 5468macro_version='2.4.6' 5469macro_revision='2.4.6' 5470 5471 5472 5473 5474 5475 5476 5477 5478 5479 5480 5481 5482 5483ltmain=$ac_aux_dir/ltmain.sh 5484 5485# Backslashify metacharacters that are still active within 5486# double-quoted strings. 5487sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 5488 5489# Same as above, but do not quote variable references. 5490double_quote_subst='s/\(["`\\]\)/\\\1/g' 5491 5492# Sed substitution to delay expansion of an escaped shell variable in a 5493# double_quote_subst'ed string. 5494delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 5495 5496# Sed substitution to delay expansion of an escaped single quote. 5497delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 5498 5499# Sed substitution to avoid accidental globbing in evaled expressions 5500no_glob_subst='s/\*/\\\*/g' 5501 5502ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 5503ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 5504ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 5505 5506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 5507$as_echo_n "checking how to print strings... " >&6; } 5508# Test print first, because it will be a builtin if present. 5509if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 5510 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 5511 ECHO='print -r --' 5512elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 5513 ECHO='printf %s\n' 5514else 5515 # Use this function as a fallback that always works. 5516 func_fallback_echo () 5517 { 5518 eval 'cat <<_LTECHO_EOF 5519$1 5520_LTECHO_EOF' 5521 } 5522 ECHO='func_fallback_echo' 5523fi 5524 5525# func_echo_all arg... 5526# Invoke $ECHO with all args, space-separated. 5527func_echo_all () 5528{ 5529 $ECHO "" 5530} 5531 5532case $ECHO in 5533 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 5534$as_echo "printf" >&6; } ;; 5535 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 5536$as_echo "print -r" >&6; } ;; 5537 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 5538$as_echo "cat" >&6; } ;; 5539esac 5540 5541 5542 5543 5544 5545 5546 5547 5548 5549 5550 5551 5552 5553 5554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5555$as_echo_n "checking for a sed that does not truncate output... " >&6; } 5556if ${ac_cv_path_SED+:} false; then : 5557 $as_echo_n "(cached) " >&6 5558else 5559 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5560 for ac_i in 1 2 3 4 5 6 7; do 5561 ac_script="$ac_script$as_nl$ac_script" 5562 done 5563 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5564 { ac_script=; unset ac_script;} 5565 if test -z "$SED"; then 5566 ac_path_SED_found=false 5567 # Loop through the user's path and test for each of PROGNAME-LIST 5568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5569for as_dir in $PATH 5570do 5571 IFS=$as_save_IFS 5572 test -z "$as_dir" && as_dir=. 5573 for ac_prog in sed gsed; do 5574 for ac_exec_ext in '' $ac_executable_extensions; do 5575 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 5576 as_fn_executable_p "$ac_path_SED" || continue 5577# Check for GNU ac_path_SED and select it if it is found. 5578 # Check for GNU $ac_path_SED 5579case `"$ac_path_SED" --version 2>&1` in 5580*GNU*) 5581 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5582*) 5583 ac_count=0 5584 $as_echo_n 0123456789 >"conftest.in" 5585 while : 5586 do 5587 cat "conftest.in" "conftest.in" >"conftest.tmp" 5588 mv "conftest.tmp" "conftest.in" 5589 cp "conftest.in" "conftest.nl" 5590 $as_echo '' >> "conftest.nl" 5591 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5592 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5593 as_fn_arith $ac_count + 1 && ac_count=$as_val 5594 if test $ac_count -gt ${ac_path_SED_max-0}; then 5595 # Best one so far, save it but keep looking for a better one 5596 ac_cv_path_SED="$ac_path_SED" 5597 ac_path_SED_max=$ac_count 5598 fi 5599 # 10*(2^10) chars as input seems more than enough 5600 test $ac_count -gt 10 && break 5601 done 5602 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5603esac 5604 5605 $ac_path_SED_found && break 3 5606 done 5607 done 5608 done 5609IFS=$as_save_IFS 5610 if test -z "$ac_cv_path_SED"; then 5611 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5612 fi 5613else 5614 ac_cv_path_SED=$SED 5615fi 5616 5617fi 5618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5619$as_echo "$ac_cv_path_SED" >&6; } 5620 SED="$ac_cv_path_SED" 5621 rm -f conftest.sed 5622 5623test -z "$SED" && SED=sed 5624Xsed="$SED -e 1s/^X//" 5625 5626 5627 5628 5629 5630 5631 5632 5633 5634 5635 5636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 5637$as_echo_n "checking for fgrep... " >&6; } 5638if ${ac_cv_path_FGREP+:} false; then : 5639 $as_echo_n "(cached) " >&6 5640else 5641 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5642 then ac_cv_path_FGREP="$GREP -F" 5643 else 5644 if test -z "$FGREP"; then 5645 ac_path_FGREP_found=false 5646 # Loop through the user's path and test for each of PROGNAME-LIST 5647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5648for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5649do 5650 IFS=$as_save_IFS 5651 test -z "$as_dir" && as_dir=. 5652 for ac_prog in fgrep; do 5653 for ac_exec_ext in '' $ac_executable_extensions; do 5654 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 5655 as_fn_executable_p "$ac_path_FGREP" || continue 5656# Check for GNU ac_path_FGREP and select it if it is found. 5657 # Check for GNU $ac_path_FGREP 5658case `"$ac_path_FGREP" --version 2>&1` in 5659*GNU*) 5660 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5661*) 5662 ac_count=0 5663 $as_echo_n 0123456789 >"conftest.in" 5664 while : 5665 do 5666 cat "conftest.in" "conftest.in" >"conftest.tmp" 5667 mv "conftest.tmp" "conftest.in" 5668 cp "conftest.in" "conftest.nl" 5669 $as_echo 'FGREP' >> "conftest.nl" 5670 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5671 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5672 as_fn_arith $ac_count + 1 && ac_count=$as_val 5673 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5674 # Best one so far, save it but keep looking for a better one 5675 ac_cv_path_FGREP="$ac_path_FGREP" 5676 ac_path_FGREP_max=$ac_count 5677 fi 5678 # 10*(2^10) chars as input seems more than enough 5679 test $ac_count -gt 10 && break 5680 done 5681 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5682esac 5683 5684 $ac_path_FGREP_found && break 3 5685 done 5686 done 5687 done 5688IFS=$as_save_IFS 5689 if test -z "$ac_cv_path_FGREP"; then 5690 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5691 fi 5692else 5693 ac_cv_path_FGREP=$FGREP 5694fi 5695 5696 fi 5697fi 5698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5699$as_echo "$ac_cv_path_FGREP" >&6; } 5700 FGREP="$ac_cv_path_FGREP" 5701 5702 5703test -z "$GREP" && GREP=grep 5704 5705 5706 5707 5708 5709 5710 5711 5712 5713 5714 5715 5716 5717 5718 5719 5720 5721 5722 5723# Check whether --with-gnu-ld was given. 5724if test "${with_gnu_ld+set}" = set; then : 5725 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 5726else 5727 with_gnu_ld=no 5728fi 5729 5730ac_prog=ld 5731if test yes = "$GCC"; then 5732 # Check if gcc -print-prog-name=ld gives a path. 5733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5734$as_echo_n "checking for ld used by $CC... " >&6; } 5735 case $host in 5736 *-*-mingw*) 5737 # gcc leaves a trailing carriage return, which upsets mingw 5738 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5739 *) 5740 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5741 esac 5742 case $ac_prog in 5743 # Accept absolute paths. 5744 [\\/]* | ?:[\\/]*) 5745 re_direlt='/[^/][^/]*/\.\./' 5746 # Canonicalize the pathname of ld 5747 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5748 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5749 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5750 done 5751 test -z "$LD" && LD=$ac_prog 5752 ;; 5753 "") 5754 # If it fails, then pretend we aren't using GCC. 5755 ac_prog=ld 5756 ;; 5757 *) 5758 # If it is relative, then search for the first ld in PATH. 5759 with_gnu_ld=unknown 5760 ;; 5761 esac 5762elif test yes = "$with_gnu_ld"; then 5763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5764$as_echo_n "checking for GNU ld... " >&6; } 5765else 5766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5767$as_echo_n "checking for non-GNU ld... " >&6; } 5768fi 5769if ${lt_cv_path_LD+:} false; then : 5770 $as_echo_n "(cached) " >&6 5771else 5772 if test -z "$LD"; then 5773 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5774 for ac_dir in $PATH; do 5775 IFS=$lt_save_ifs 5776 test -z "$ac_dir" && ac_dir=. 5777 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5778 lt_cv_path_LD=$ac_dir/$ac_prog 5779 # Check to see if the program is GNU ld. I'd rather use --version, 5780 # but apparently some variants of GNU ld only accept -v. 5781 # Break only if it was the GNU/non-GNU ld that we prefer. 5782 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5783 *GNU* | *'with BFD'*) 5784 test no != "$with_gnu_ld" && break 5785 ;; 5786 *) 5787 test yes != "$with_gnu_ld" && break 5788 ;; 5789 esac 5790 fi 5791 done 5792 IFS=$lt_save_ifs 5793else 5794 lt_cv_path_LD=$LD # Let the user override the test with a path. 5795fi 5796fi 5797 5798LD=$lt_cv_path_LD 5799if test -n "$LD"; then 5800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5801$as_echo "$LD" >&6; } 5802else 5803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5804$as_echo "no" >&6; } 5805fi 5806test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5808$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 5809if ${lt_cv_prog_gnu_ld+:} false; then : 5810 $as_echo_n "(cached) " >&6 5811else 5812 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5813case `$LD -v 2>&1 </dev/null` in 5814*GNU* | *'with BFD'*) 5815 lt_cv_prog_gnu_ld=yes 5816 ;; 5817*) 5818 lt_cv_prog_gnu_ld=no 5819 ;; 5820esac 5821fi 5822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5823$as_echo "$lt_cv_prog_gnu_ld" >&6; } 5824with_gnu_ld=$lt_cv_prog_gnu_ld 5825 5826 5827 5828 5829 5830 5831 5832 5833 5834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5835$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5836if ${lt_cv_path_NM+:} false; then : 5837 $as_echo_n "(cached) " >&6 5838else 5839 if test -n "$NM"; then 5840 # Let the user override the test. 5841 lt_cv_path_NM=$NM 5842else 5843 lt_nm_to_check=${ac_tool_prefix}nm 5844 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5845 lt_nm_to_check="$lt_nm_to_check nm" 5846 fi 5847 for lt_tmp_nm in $lt_nm_to_check; do 5848 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5849 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5850 IFS=$lt_save_ifs 5851 test -z "$ac_dir" && ac_dir=. 5852 tmp_nm=$ac_dir/$lt_tmp_nm 5853 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 5854 # Check to see if the nm accepts a BSD-compat flag. 5855 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 5856 # nm: unknown option "B" ignored 5857 # Tru64's nm complains that /dev/null is an invalid object file 5858 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 5859 case $build_os in 5860 mingw*) lt_bad_file=conftest.nm/nofile ;; 5861 *) lt_bad_file=/dev/null ;; 5862 esac 5863 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 5864 *$lt_bad_file* | *'Invalid file or object type'*) 5865 lt_cv_path_NM="$tmp_nm -B" 5866 break 2 5867 ;; 5868 *) 5869 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5870 */dev/null*) 5871 lt_cv_path_NM="$tmp_nm -p" 5872 break 2 5873 ;; 5874 *) 5875 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5876 continue # so that we can try to find one that supports BSD flags 5877 ;; 5878 esac 5879 ;; 5880 esac 5881 fi 5882 done 5883 IFS=$lt_save_ifs 5884 done 5885 : ${lt_cv_path_NM=no} 5886fi 5887fi 5888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5889$as_echo "$lt_cv_path_NM" >&6; } 5890if test no != "$lt_cv_path_NM"; then 5891 NM=$lt_cv_path_NM 5892else 5893 # Didn't find any BSD compatible name lister, look for dumpbin. 5894 if test -n "$DUMPBIN"; then : 5895 # Let the user override the test. 5896 else 5897 if test -n "$ac_tool_prefix"; then 5898 for ac_prog in dumpbin "link -dump" 5899 do 5900 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5901set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5903$as_echo_n "checking for $ac_word... " >&6; } 5904if ${ac_cv_prog_DUMPBIN+:} false; then : 5905 $as_echo_n "(cached) " >&6 5906else 5907 if test -n "$DUMPBIN"; then 5908 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5909else 5910as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5911for as_dir in $PATH 5912do 5913 IFS=$as_save_IFS 5914 test -z "$as_dir" && as_dir=. 5915 for ac_exec_ext in '' $ac_executable_extensions; do 5916 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5917 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5919 break 2 5920 fi 5921done 5922 done 5923IFS=$as_save_IFS 5924 5925fi 5926fi 5927DUMPBIN=$ac_cv_prog_DUMPBIN 5928if test -n "$DUMPBIN"; then 5929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5930$as_echo "$DUMPBIN" >&6; } 5931else 5932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5933$as_echo "no" >&6; } 5934fi 5935 5936 5937 test -n "$DUMPBIN" && break 5938 done 5939fi 5940if test -z "$DUMPBIN"; then 5941 ac_ct_DUMPBIN=$DUMPBIN 5942 for ac_prog in dumpbin "link -dump" 5943do 5944 # Extract the first word of "$ac_prog", so it can be a program name with args. 5945set dummy $ac_prog; ac_word=$2 5946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5947$as_echo_n "checking for $ac_word... " >&6; } 5948if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 5949 $as_echo_n "(cached) " >&6 5950else 5951 if test -n "$ac_ct_DUMPBIN"; then 5952 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5953else 5954as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5955for as_dir in $PATH 5956do 5957 IFS=$as_save_IFS 5958 test -z "$as_dir" && as_dir=. 5959 for ac_exec_ext in '' $ac_executable_extensions; do 5960 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5961 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5963 break 2 5964 fi 5965done 5966 done 5967IFS=$as_save_IFS 5968 5969fi 5970fi 5971ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5972if test -n "$ac_ct_DUMPBIN"; then 5973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5974$as_echo "$ac_ct_DUMPBIN" >&6; } 5975else 5976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5977$as_echo "no" >&6; } 5978fi 5979 5980 5981 test -n "$ac_ct_DUMPBIN" && break 5982done 5983 5984 if test "x$ac_ct_DUMPBIN" = x; then 5985 DUMPBIN=":" 5986 else 5987 case $cross_compiling:$ac_tool_warned in 5988yes:) 5989{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5990$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5991ac_tool_warned=yes ;; 5992esac 5993 DUMPBIN=$ac_ct_DUMPBIN 5994 fi 5995fi 5996 5997 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 5998 *COFF*) 5999 DUMPBIN="$DUMPBIN -symbols -headers" 6000 ;; 6001 *) 6002 DUMPBIN=: 6003 ;; 6004 esac 6005 fi 6006 6007 if test : != "$DUMPBIN"; then 6008 NM=$DUMPBIN 6009 fi 6010fi 6011test -z "$NM" && NM=nm 6012 6013 6014 6015 6016 6017 6018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 6019$as_echo_n "checking the name lister ($NM) interface... " >&6; } 6020if ${lt_cv_nm_interface+:} false; then : 6021 $as_echo_n "(cached) " >&6 6022else 6023 lt_cv_nm_interface="BSD nm" 6024 echo "int some_variable = 0;" > conftest.$ac_ext 6025 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 6026 (eval "$ac_compile" 2>conftest.err) 6027 cat conftest.err >&5 6028 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 6029 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 6030 cat conftest.err >&5 6031 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 6032 cat conftest.out >&5 6033 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 6034 lt_cv_nm_interface="MS dumpbin" 6035 fi 6036 rm -f conftest* 6037fi 6038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 6039$as_echo "$lt_cv_nm_interface" >&6; } 6040 6041# find the maximum length of command line arguments 6042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 6043$as_echo_n "checking the maximum length of command line arguments... " >&6; } 6044if ${lt_cv_sys_max_cmd_len+:} false; then : 6045 $as_echo_n "(cached) " >&6 6046else 6047 i=0 6048 teststring=ABCD 6049 6050 case $build_os in 6051 msdosdjgpp*) 6052 # On DJGPP, this test can blow up pretty badly due to problems in libc 6053 # (any single argument exceeding 2000 bytes causes a buffer overrun 6054 # during glob expansion). Even if it were fixed, the result of this 6055 # check would be larger than it should be. 6056 lt_cv_sys_max_cmd_len=12288; # 12K is about right 6057 ;; 6058 6059 gnu*) 6060 # Under GNU Hurd, this test is not required because there is 6061 # no limit to the length of command line arguments. 6062 # Libtool will interpret -1 as no limit whatsoever 6063 lt_cv_sys_max_cmd_len=-1; 6064 ;; 6065 6066 cygwin* | mingw* | cegcc*) 6067 # On Win9x/ME, this test blows up -- it succeeds, but takes 6068 # about 5 minutes as the teststring grows exponentially. 6069 # Worse, since 9x/ME are not pre-emptively multitasking, 6070 # you end up with a "frozen" computer, even though with patience 6071 # the test eventually succeeds (with a max line length of 256k). 6072 # Instead, let's just punt: use the minimum linelength reported by 6073 # all of the supported platforms: 8192 (on NT/2K/XP). 6074 lt_cv_sys_max_cmd_len=8192; 6075 ;; 6076 6077 mint*) 6078 # On MiNT this can take a long time and run out of memory. 6079 lt_cv_sys_max_cmd_len=8192; 6080 ;; 6081 6082 amigaos*) 6083 # On AmigaOS with pdksh, this test takes hours, literally. 6084 # So we just punt and use a minimum line length of 8192. 6085 lt_cv_sys_max_cmd_len=8192; 6086 ;; 6087 6088 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 6089 # This has been around since 386BSD, at least. Likely further. 6090 if test -x /sbin/sysctl; then 6091 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 6092 elif test -x /usr/sbin/sysctl; then 6093 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 6094 else 6095 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 6096 fi 6097 # And add a safety zone 6098 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6099 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6100 ;; 6101 6102 interix*) 6103 # We know the value 262144 and hardcode it with a safety zone (like BSD) 6104 lt_cv_sys_max_cmd_len=196608 6105 ;; 6106 6107 os2*) 6108 # The test takes a long time on OS/2. 6109 lt_cv_sys_max_cmd_len=8192 6110 ;; 6111 6112 osf*) 6113 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 6114 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 6115 # nice to cause kernel panics so lets avoid the loop below. 6116 # First set a reasonable default. 6117 lt_cv_sys_max_cmd_len=16384 6118 # 6119 if test -x /sbin/sysconfig; then 6120 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 6121 *1*) lt_cv_sys_max_cmd_len=-1 ;; 6122 esac 6123 fi 6124 ;; 6125 sco3.2v5*) 6126 lt_cv_sys_max_cmd_len=102400 6127 ;; 6128 sysv5* | sco5v6* | sysv4.2uw2*) 6129 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 6130 if test -n "$kargmax"; then 6131 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 6132 else 6133 lt_cv_sys_max_cmd_len=32768 6134 fi 6135 ;; 6136 *) 6137 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 6138 if test -n "$lt_cv_sys_max_cmd_len" && \ 6139 test undefined != "$lt_cv_sys_max_cmd_len"; then 6140 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6141 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6142 else 6143 # Make teststring a little bigger before we do anything with it. 6144 # a 1K string should be a reasonable start. 6145 for i in 1 2 3 4 5 6 7 8; do 6146 teststring=$teststring$teststring 6147 done 6148 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 6149 # If test is not a shell built-in, we'll probably end up computing a 6150 # maximum length that is only half of the actual maximum length, but 6151 # we can't tell. 6152 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 6153 = "X$teststring$teststring"; } >/dev/null 2>&1 && 6154 test 17 != "$i" # 1/2 MB should be enough 6155 do 6156 i=`expr $i + 1` 6157 teststring=$teststring$teststring 6158 done 6159 # Only check the string length outside the loop. 6160 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 6161 teststring= 6162 # Add a significant safety factor because C++ compilers can tack on 6163 # massive amounts of additional arguments before passing them to the 6164 # linker. It appears as though 1/2 is a usable value. 6165 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 6166 fi 6167 ;; 6168 esac 6169 6170fi 6171 6172if test -n "$lt_cv_sys_max_cmd_len"; then 6173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 6174$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 6175else 6176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 6177$as_echo "none" >&6; } 6178fi 6179max_cmd_len=$lt_cv_sys_max_cmd_len 6180 6181 6182 6183 6184 6185 6186: ${CP="cp -f"} 6187: ${MV="mv -f"} 6188: ${RM="rm -f"} 6189 6190if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 6191 lt_unset=unset 6192else 6193 lt_unset=false 6194fi 6195 6196 6197 6198 6199 6200# test EBCDIC or ASCII 6201case `echo X|tr X '\101'` in 6202 A) # ASCII based system 6203 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 6204 lt_SP2NL='tr \040 \012' 6205 lt_NL2SP='tr \015\012 \040\040' 6206 ;; 6207 *) # EBCDIC based system 6208 lt_SP2NL='tr \100 \n' 6209 lt_NL2SP='tr \r\n \100\100' 6210 ;; 6211esac 6212 6213 6214 6215 6216 6217 6218 6219 6220 6221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 6222$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 6223if ${lt_cv_to_host_file_cmd+:} false; then : 6224 $as_echo_n "(cached) " >&6 6225else 6226 case $host in 6227 *-*-mingw* ) 6228 case $build in 6229 *-*-mingw* ) # actually msys 6230 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 6231 ;; 6232 *-*-cygwin* ) 6233 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 6234 ;; 6235 * ) # otherwise, assume *nix 6236 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 6237 ;; 6238 esac 6239 ;; 6240 *-*-cygwin* ) 6241 case $build in 6242 *-*-mingw* ) # actually msys 6243 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 6244 ;; 6245 *-*-cygwin* ) 6246 lt_cv_to_host_file_cmd=func_convert_file_noop 6247 ;; 6248 * ) # otherwise, assume *nix 6249 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 6250 ;; 6251 esac 6252 ;; 6253 * ) # unhandled hosts (and "normal" native builds) 6254 lt_cv_to_host_file_cmd=func_convert_file_noop 6255 ;; 6256esac 6257 6258fi 6259 6260to_host_file_cmd=$lt_cv_to_host_file_cmd 6261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 6262$as_echo "$lt_cv_to_host_file_cmd" >&6; } 6263 6264 6265 6266 6267 6268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 6269$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 6270if ${lt_cv_to_tool_file_cmd+:} false; then : 6271 $as_echo_n "(cached) " >&6 6272else 6273 #assume ordinary cross tools, or native build. 6274lt_cv_to_tool_file_cmd=func_convert_file_noop 6275case $host in 6276 *-*-mingw* ) 6277 case $build in 6278 *-*-mingw* ) # actually msys 6279 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 6280 ;; 6281 esac 6282 ;; 6283esac 6284 6285fi 6286 6287to_tool_file_cmd=$lt_cv_to_tool_file_cmd 6288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 6289$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 6290 6291 6292 6293 6294 6295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 6296$as_echo_n "checking for $LD option to reload object files... " >&6; } 6297if ${lt_cv_ld_reload_flag+:} false; then : 6298 $as_echo_n "(cached) " >&6 6299else 6300 lt_cv_ld_reload_flag='-r' 6301fi 6302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 6303$as_echo "$lt_cv_ld_reload_flag" >&6; } 6304reload_flag=$lt_cv_ld_reload_flag 6305case $reload_flag in 6306"" | " "*) ;; 6307*) reload_flag=" $reload_flag" ;; 6308esac 6309reload_cmds='$LD$reload_flag -o $output$reload_objs' 6310case $host_os in 6311 cygwin* | mingw* | pw32* | cegcc*) 6312 if test yes != "$GCC"; then 6313 reload_cmds=false 6314 fi 6315 ;; 6316 darwin*) 6317 if test yes = "$GCC"; then 6318 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 6319 else 6320 reload_cmds='$LD$reload_flag -o $output$reload_objs' 6321 fi 6322 ;; 6323esac 6324 6325 6326 6327 6328 6329 6330 6331 6332 6333if test -n "$ac_tool_prefix"; then 6334 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 6335set dummy ${ac_tool_prefix}objdump; ac_word=$2 6336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6337$as_echo_n "checking for $ac_word... " >&6; } 6338if ${ac_cv_prog_OBJDUMP+:} false; then : 6339 $as_echo_n "(cached) " >&6 6340else 6341 if test -n "$OBJDUMP"; then 6342 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 6343else 6344as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6345for as_dir in $PATH 6346do 6347 IFS=$as_save_IFS 6348 test -z "$as_dir" && as_dir=. 6349 for ac_exec_ext in '' $ac_executable_extensions; do 6350 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6351 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 6352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6353 break 2 6354 fi 6355done 6356 done 6357IFS=$as_save_IFS 6358 6359fi 6360fi 6361OBJDUMP=$ac_cv_prog_OBJDUMP 6362if test -n "$OBJDUMP"; then 6363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 6364$as_echo "$OBJDUMP" >&6; } 6365else 6366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6367$as_echo "no" >&6; } 6368fi 6369 6370 6371fi 6372if test -z "$ac_cv_prog_OBJDUMP"; then 6373 ac_ct_OBJDUMP=$OBJDUMP 6374 # Extract the first word of "objdump", so it can be a program name with args. 6375set dummy objdump; ac_word=$2 6376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6377$as_echo_n "checking for $ac_word... " >&6; } 6378if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 6379 $as_echo_n "(cached) " >&6 6380else 6381 if test -n "$ac_ct_OBJDUMP"; then 6382 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 6383else 6384as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6385for as_dir in $PATH 6386do 6387 IFS=$as_save_IFS 6388 test -z "$as_dir" && as_dir=. 6389 for ac_exec_ext in '' $ac_executable_extensions; do 6390 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6391 ac_cv_prog_ac_ct_OBJDUMP="objdump" 6392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6393 break 2 6394 fi 6395done 6396 done 6397IFS=$as_save_IFS 6398 6399fi 6400fi 6401ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 6402if test -n "$ac_ct_OBJDUMP"; then 6403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 6404$as_echo "$ac_ct_OBJDUMP" >&6; } 6405else 6406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6407$as_echo "no" >&6; } 6408fi 6409 6410 if test "x$ac_ct_OBJDUMP" = x; then 6411 OBJDUMP="false" 6412 else 6413 case $cross_compiling:$ac_tool_warned in 6414yes:) 6415{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6416$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6417ac_tool_warned=yes ;; 6418esac 6419 OBJDUMP=$ac_ct_OBJDUMP 6420 fi 6421else 6422 OBJDUMP="$ac_cv_prog_OBJDUMP" 6423fi 6424 6425test -z "$OBJDUMP" && OBJDUMP=objdump 6426 6427 6428 6429 6430 6431 6432 6433 6434 6435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 6436$as_echo_n "checking how to recognize dependent libraries... " >&6; } 6437if ${lt_cv_deplibs_check_method+:} false; then : 6438 $as_echo_n "(cached) " >&6 6439else 6440 lt_cv_file_magic_cmd='$MAGIC_CMD' 6441lt_cv_file_magic_test_file= 6442lt_cv_deplibs_check_method='unknown' 6443# Need to set the preceding variable on all platforms that support 6444# interlibrary dependencies. 6445# 'none' -- dependencies not supported. 6446# 'unknown' -- same as none, but documents that we really don't know. 6447# 'pass_all' -- all dependencies passed with no checks. 6448# 'test_compile' -- check by making test program. 6449# 'file_magic [[regex]]' -- check by looking for files in library path 6450# that responds to the $file_magic_cmd with a given extended regex. 6451# If you have 'file' or equivalent on your system and you're not sure 6452# whether 'pass_all' will *always* work, you probably want this one. 6453 6454case $host_os in 6455aix[4-9]*) 6456 lt_cv_deplibs_check_method=pass_all 6457 ;; 6458 6459beos*) 6460 lt_cv_deplibs_check_method=pass_all 6461 ;; 6462 6463bsdi[45]*) 6464 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 6465 lt_cv_file_magic_cmd='/usr/bin/file -L' 6466 lt_cv_file_magic_test_file=/shlib/libc.so 6467 ;; 6468 6469cygwin*) 6470 # func_win32_libid is a shell function defined in ltmain.sh 6471 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6472 lt_cv_file_magic_cmd='func_win32_libid' 6473 ;; 6474 6475mingw* | pw32*) 6476 # Base MSYS/MinGW do not provide the 'file' command needed by 6477 # func_win32_libid shell function, so use a weaker test based on 'objdump', 6478 # unless we find 'file', for example because we are cross-compiling. 6479 if ( file / ) >/dev/null 2>&1; then 6480 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6481 lt_cv_file_magic_cmd='func_win32_libid' 6482 else 6483 # Keep this pattern in sync with the one in func_win32_libid. 6484 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 6485 lt_cv_file_magic_cmd='$OBJDUMP -f' 6486 fi 6487 ;; 6488 6489cegcc*) 6490 # use the weaker test based on 'objdump'. See mingw*. 6491 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 6492 lt_cv_file_magic_cmd='$OBJDUMP -f' 6493 ;; 6494 6495darwin* | rhapsody*) 6496 lt_cv_deplibs_check_method=pass_all 6497 ;; 6498 6499freebsd* | dragonfly*) 6500 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6501 case $host_cpu in 6502 i*86 ) 6503 # Not sure whether the presence of OpenBSD here was a mistake. 6504 # Let's accept both of them until this is cleared up. 6505 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6506 lt_cv_file_magic_cmd=/usr/bin/file 6507 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6508 ;; 6509 esac 6510 else 6511 lt_cv_deplibs_check_method=pass_all 6512 fi 6513 ;; 6514 6515haiku*) 6516 lt_cv_deplibs_check_method=pass_all 6517 ;; 6518 6519hpux10.20* | hpux11*) 6520 lt_cv_file_magic_cmd=/usr/bin/file 6521 case $host_cpu in 6522 ia64*) 6523 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6524 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6525 ;; 6526 hppa*64*) 6527 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]' 6528 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6529 ;; 6530 *) 6531 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 6532 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6533 ;; 6534 esac 6535 ;; 6536 6537interix[3-9]*) 6538 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6539 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6540 ;; 6541 6542irix5* | irix6* | nonstopux*) 6543 case $LD in 6544 *-32|*"-32 ") libmagic=32-bit;; 6545 *-n32|*"-n32 ") libmagic=N32;; 6546 *-64|*"-64 ") libmagic=64-bit;; 6547 *) libmagic=never-match;; 6548 esac 6549 lt_cv_deplibs_check_method=pass_all 6550 ;; 6551 6552# This must be glibc/ELF. 6553linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 6554 lt_cv_deplibs_check_method=pass_all 6555 ;; 6556 6557netbsd*) 6558 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6559 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6560 else 6561 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6562 fi 6563 ;; 6564 6565newos6*) 6566 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6567 lt_cv_file_magic_cmd=/usr/bin/file 6568 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6569 ;; 6570 6571*nto* | *qnx*) 6572 lt_cv_deplibs_check_method=pass_all 6573 ;; 6574 6575openbsd* | bitrig*) 6576 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 6577 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6578 else 6579 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6580 fi 6581 ;; 6582 6583osf3* | osf4* | osf5*) 6584 lt_cv_deplibs_check_method=pass_all 6585 ;; 6586 6587rdos*) 6588 lt_cv_deplibs_check_method=pass_all 6589 ;; 6590 6591solaris*) 6592 lt_cv_deplibs_check_method=pass_all 6593 ;; 6594 6595sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6596 lt_cv_deplibs_check_method=pass_all 6597 ;; 6598 6599sysv4 | sysv4.3*) 6600 case $host_vendor in 6601 motorola) 6602 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]' 6603 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6604 ;; 6605 ncr) 6606 lt_cv_deplibs_check_method=pass_all 6607 ;; 6608 sequent) 6609 lt_cv_file_magic_cmd='/bin/file' 6610 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6611 ;; 6612 sni) 6613 lt_cv_file_magic_cmd='/bin/file' 6614 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6615 lt_cv_file_magic_test_file=/lib/libc.so 6616 ;; 6617 siemens) 6618 lt_cv_deplibs_check_method=pass_all 6619 ;; 6620 pc) 6621 lt_cv_deplibs_check_method=pass_all 6622 ;; 6623 esac 6624 ;; 6625 6626tpf*) 6627 lt_cv_deplibs_check_method=pass_all 6628 ;; 6629os2*) 6630 lt_cv_deplibs_check_method=pass_all 6631 ;; 6632esac 6633 6634fi 6635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6636$as_echo "$lt_cv_deplibs_check_method" >&6; } 6637 6638file_magic_glob= 6639want_nocaseglob=no 6640if test "$build" = "$host"; then 6641 case $host_os in 6642 mingw* | pw32*) 6643 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 6644 want_nocaseglob=yes 6645 else 6646 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 6647 fi 6648 ;; 6649 esac 6650fi 6651 6652file_magic_cmd=$lt_cv_file_magic_cmd 6653deplibs_check_method=$lt_cv_deplibs_check_method 6654test -z "$deplibs_check_method" && deplibs_check_method=unknown 6655 6656 6657 6658 6659 6660 6661 6662 6663 6664 6665 6666 6667 6668 6669 6670 6671 6672 6673 6674 6675 6676 6677if test -n "$ac_tool_prefix"; then 6678 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 6679set dummy ${ac_tool_prefix}dlltool; ac_word=$2 6680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6681$as_echo_n "checking for $ac_word... " >&6; } 6682if ${ac_cv_prog_DLLTOOL+:} false; then : 6683 $as_echo_n "(cached) " >&6 6684else 6685 if test -n "$DLLTOOL"; then 6686 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 6687else 6688as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6689for as_dir in $PATH 6690do 6691 IFS=$as_save_IFS 6692 test -z "$as_dir" && as_dir=. 6693 for ac_exec_ext in '' $ac_executable_extensions; do 6694 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6695 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 6696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6697 break 2 6698 fi 6699done 6700 done 6701IFS=$as_save_IFS 6702 6703fi 6704fi 6705DLLTOOL=$ac_cv_prog_DLLTOOL 6706if test -n "$DLLTOOL"; then 6707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 6708$as_echo "$DLLTOOL" >&6; } 6709else 6710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6711$as_echo "no" >&6; } 6712fi 6713 6714 6715fi 6716if test -z "$ac_cv_prog_DLLTOOL"; then 6717 ac_ct_DLLTOOL=$DLLTOOL 6718 # Extract the first word of "dlltool", so it can be a program name with args. 6719set dummy dlltool; ac_word=$2 6720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6721$as_echo_n "checking for $ac_word... " >&6; } 6722if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 6723 $as_echo_n "(cached) " >&6 6724else 6725 if test -n "$ac_ct_DLLTOOL"; then 6726 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 6727else 6728as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6729for as_dir in $PATH 6730do 6731 IFS=$as_save_IFS 6732 test -z "$as_dir" && as_dir=. 6733 for ac_exec_ext in '' $ac_executable_extensions; do 6734 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6735 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 6736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6737 break 2 6738 fi 6739done 6740 done 6741IFS=$as_save_IFS 6742 6743fi 6744fi 6745ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 6746if test -n "$ac_ct_DLLTOOL"; then 6747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 6748$as_echo "$ac_ct_DLLTOOL" >&6; } 6749else 6750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6751$as_echo "no" >&6; } 6752fi 6753 6754 if test "x$ac_ct_DLLTOOL" = x; then 6755 DLLTOOL="false" 6756 else 6757 case $cross_compiling:$ac_tool_warned in 6758yes:) 6759{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6760$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6761ac_tool_warned=yes ;; 6762esac 6763 DLLTOOL=$ac_ct_DLLTOOL 6764 fi 6765else 6766 DLLTOOL="$ac_cv_prog_DLLTOOL" 6767fi 6768 6769test -z "$DLLTOOL" && DLLTOOL=dlltool 6770 6771 6772 6773 6774 6775 6776 6777 6778 6779 6780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 6781$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 6782if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 6783 $as_echo_n "(cached) " >&6 6784else 6785 lt_cv_sharedlib_from_linklib_cmd='unknown' 6786 6787case $host_os in 6788cygwin* | mingw* | pw32* | cegcc*) 6789 # two different shell functions defined in ltmain.sh; 6790 # decide which one to use based on capabilities of $DLLTOOL 6791 case `$DLLTOOL --help 2>&1` in 6792 *--identify-strict*) 6793 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 6794 ;; 6795 *) 6796 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 6797 ;; 6798 esac 6799 ;; 6800*) 6801 # fallback: assume linklib IS sharedlib 6802 lt_cv_sharedlib_from_linklib_cmd=$ECHO 6803 ;; 6804esac 6805 6806fi 6807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 6808$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 6809sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 6810test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 6811 6812 6813 6814 6815 6816 6817 6818if test -n "$ac_tool_prefix"; then 6819 for ac_prog in ar 6820 do 6821 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6822set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6824$as_echo_n "checking for $ac_word... " >&6; } 6825if ${ac_cv_prog_AR+:} false; then : 6826 $as_echo_n "(cached) " >&6 6827else 6828 if test -n "$AR"; then 6829 ac_cv_prog_AR="$AR" # Let the user override the test. 6830else 6831as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6832for as_dir in $PATH 6833do 6834 IFS=$as_save_IFS 6835 test -z "$as_dir" && as_dir=. 6836 for ac_exec_ext in '' $ac_executable_extensions; do 6837 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6838 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 6839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6840 break 2 6841 fi 6842done 6843 done 6844IFS=$as_save_IFS 6845 6846fi 6847fi 6848AR=$ac_cv_prog_AR 6849if test -n "$AR"; then 6850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6851$as_echo "$AR" >&6; } 6852else 6853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6854$as_echo "no" >&6; } 6855fi 6856 6857 6858 test -n "$AR" && break 6859 done 6860fi 6861if test -z "$AR"; then 6862 ac_ct_AR=$AR 6863 for ac_prog in ar 6864do 6865 # Extract the first word of "$ac_prog", so it can be a program name with args. 6866set dummy $ac_prog; ac_word=$2 6867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6868$as_echo_n "checking for $ac_word... " >&6; } 6869if ${ac_cv_prog_ac_ct_AR+:} false; then : 6870 $as_echo_n "(cached) " >&6 6871else 6872 if test -n "$ac_ct_AR"; then 6873 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6874else 6875as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6876for as_dir in $PATH 6877do 6878 IFS=$as_save_IFS 6879 test -z "$as_dir" && as_dir=. 6880 for ac_exec_ext in '' $ac_executable_extensions; do 6881 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6882 ac_cv_prog_ac_ct_AR="$ac_prog" 6883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6884 break 2 6885 fi 6886done 6887 done 6888IFS=$as_save_IFS 6889 6890fi 6891fi 6892ac_ct_AR=$ac_cv_prog_ac_ct_AR 6893if test -n "$ac_ct_AR"; then 6894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6895$as_echo "$ac_ct_AR" >&6; } 6896else 6897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6898$as_echo "no" >&6; } 6899fi 6900 6901 6902 test -n "$ac_ct_AR" && break 6903done 6904 6905 if test "x$ac_ct_AR" = x; then 6906 AR="false" 6907 else 6908 case $cross_compiling:$ac_tool_warned in 6909yes:) 6910{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6911$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6912ac_tool_warned=yes ;; 6913esac 6914 AR=$ac_ct_AR 6915 fi 6916fi 6917 6918: ${AR=ar} 6919: ${AR_FLAGS=cru} 6920 6921 6922 6923 6924 6925 6926 6927 6928 6929 6930 6931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 6932$as_echo_n "checking for archiver @FILE support... " >&6; } 6933if ${lt_cv_ar_at_file+:} false; then : 6934 $as_echo_n "(cached) " >&6 6935else 6936 lt_cv_ar_at_file=no 6937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6938/* end confdefs.h. */ 6939 6940int 6941main () 6942{ 6943 6944 ; 6945 return 0; 6946} 6947_ACEOF 6948if ac_fn_c_try_compile "$LINENO"; then : 6949 echo conftest.$ac_objext > conftest.lst 6950 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 6951 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6952 (eval $lt_ar_try) 2>&5 6953 ac_status=$? 6954 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6955 test $ac_status = 0; } 6956 if test 0 -eq "$ac_status"; then 6957 # Ensure the archiver fails upon bogus file names. 6958 rm -f conftest.$ac_objext libconftest.a 6959 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6960 (eval $lt_ar_try) 2>&5 6961 ac_status=$? 6962 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6963 test $ac_status = 0; } 6964 if test 0 -ne "$ac_status"; then 6965 lt_cv_ar_at_file=@ 6966 fi 6967 fi 6968 rm -f conftest.* libconftest.a 6969 6970fi 6971rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6972 6973fi 6974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 6975$as_echo "$lt_cv_ar_at_file" >&6; } 6976 6977if test no = "$lt_cv_ar_at_file"; then 6978 archiver_list_spec= 6979else 6980 archiver_list_spec=$lt_cv_ar_at_file 6981fi 6982 6983 6984 6985 6986 6987 6988 6989if test -n "$ac_tool_prefix"; then 6990 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6991set dummy ${ac_tool_prefix}strip; ac_word=$2 6992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6993$as_echo_n "checking for $ac_word... " >&6; } 6994if ${ac_cv_prog_STRIP+:} false; then : 6995 $as_echo_n "(cached) " >&6 6996else 6997 if test -n "$STRIP"; then 6998 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6999else 7000as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7001for as_dir in $PATH 7002do 7003 IFS=$as_save_IFS 7004 test -z "$as_dir" && as_dir=. 7005 for ac_exec_ext in '' $ac_executable_extensions; do 7006 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7007 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 7008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7009 break 2 7010 fi 7011done 7012 done 7013IFS=$as_save_IFS 7014 7015fi 7016fi 7017STRIP=$ac_cv_prog_STRIP 7018if test -n "$STRIP"; then 7019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 7020$as_echo "$STRIP" >&6; } 7021else 7022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7023$as_echo "no" >&6; } 7024fi 7025 7026 7027fi 7028if test -z "$ac_cv_prog_STRIP"; then 7029 ac_ct_STRIP=$STRIP 7030 # Extract the first word of "strip", so it can be a program name with args. 7031set dummy strip; ac_word=$2 7032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7033$as_echo_n "checking for $ac_word... " >&6; } 7034if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 7035 $as_echo_n "(cached) " >&6 7036else 7037 if test -n "$ac_ct_STRIP"; then 7038 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 7039else 7040as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7041for as_dir in $PATH 7042do 7043 IFS=$as_save_IFS 7044 test -z "$as_dir" && as_dir=. 7045 for ac_exec_ext in '' $ac_executable_extensions; do 7046 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7047 ac_cv_prog_ac_ct_STRIP="strip" 7048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7049 break 2 7050 fi 7051done 7052 done 7053IFS=$as_save_IFS 7054 7055fi 7056fi 7057ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 7058if test -n "$ac_ct_STRIP"; then 7059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 7060$as_echo "$ac_ct_STRIP" >&6; } 7061else 7062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7063$as_echo "no" >&6; } 7064fi 7065 7066 if test "x$ac_ct_STRIP" = x; then 7067 STRIP=":" 7068 else 7069 case $cross_compiling:$ac_tool_warned in 7070yes:) 7071{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7072$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7073ac_tool_warned=yes ;; 7074esac 7075 STRIP=$ac_ct_STRIP 7076 fi 7077else 7078 STRIP="$ac_cv_prog_STRIP" 7079fi 7080 7081test -z "$STRIP" && STRIP=: 7082 7083 7084 7085 7086 7087 7088if test -n "$ac_tool_prefix"; then 7089 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 7090set dummy ${ac_tool_prefix}ranlib; ac_word=$2 7091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7092$as_echo_n "checking for $ac_word... " >&6; } 7093if ${ac_cv_prog_RANLIB+:} false; then : 7094 $as_echo_n "(cached) " >&6 7095else 7096 if test -n "$RANLIB"; then 7097 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 7098else 7099as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7100for as_dir in $PATH 7101do 7102 IFS=$as_save_IFS 7103 test -z "$as_dir" && as_dir=. 7104 for ac_exec_ext in '' $ac_executable_extensions; do 7105 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7106 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 7107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7108 break 2 7109 fi 7110done 7111 done 7112IFS=$as_save_IFS 7113 7114fi 7115fi 7116RANLIB=$ac_cv_prog_RANLIB 7117if test -n "$RANLIB"; then 7118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 7119$as_echo "$RANLIB" >&6; } 7120else 7121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7122$as_echo "no" >&6; } 7123fi 7124 7125 7126fi 7127if test -z "$ac_cv_prog_RANLIB"; then 7128 ac_ct_RANLIB=$RANLIB 7129 # Extract the first word of "ranlib", so it can be a program name with args. 7130set dummy ranlib; ac_word=$2 7131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7132$as_echo_n "checking for $ac_word... " >&6; } 7133if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 7134 $as_echo_n "(cached) " >&6 7135else 7136 if test -n "$ac_ct_RANLIB"; then 7137 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 7138else 7139as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7140for as_dir in $PATH 7141do 7142 IFS=$as_save_IFS 7143 test -z "$as_dir" && as_dir=. 7144 for ac_exec_ext in '' $ac_executable_extensions; do 7145 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7146 ac_cv_prog_ac_ct_RANLIB="ranlib" 7147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7148 break 2 7149 fi 7150done 7151 done 7152IFS=$as_save_IFS 7153 7154fi 7155fi 7156ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 7157if test -n "$ac_ct_RANLIB"; then 7158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 7159$as_echo "$ac_ct_RANLIB" >&6; } 7160else 7161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7162$as_echo "no" >&6; } 7163fi 7164 7165 if test "x$ac_ct_RANLIB" = x; then 7166 RANLIB=":" 7167 else 7168 case $cross_compiling:$ac_tool_warned in 7169yes:) 7170{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7171$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7172ac_tool_warned=yes ;; 7173esac 7174 RANLIB=$ac_ct_RANLIB 7175 fi 7176else 7177 RANLIB="$ac_cv_prog_RANLIB" 7178fi 7179 7180test -z "$RANLIB" && RANLIB=: 7181 7182 7183 7184 7185 7186 7187# Determine commands to create old-style static archives. 7188old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 7189old_postinstall_cmds='chmod 644 $oldlib' 7190old_postuninstall_cmds= 7191 7192if test -n "$RANLIB"; then 7193 case $host_os in 7194 bitrig* | openbsd*) 7195 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 7196 ;; 7197 *) 7198 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 7199 ;; 7200 esac 7201 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 7202fi 7203 7204case $host_os in 7205 darwin*) 7206 lock_old_archive_extraction=yes ;; 7207 *) 7208 lock_old_archive_extraction=no ;; 7209esac 7210 7211 7212 7213 7214 7215 7216 7217 7218 7219 7220 7221 7222 7223 7224 7225 7226 7227 7228 7229 7230 7231 7232 7233 7234 7235 7236 7237 7238 7239 7240 7241 7242 7243 7244 7245 7246 7247 7248 7249# If no C compiler was specified, use CC. 7250LTCC=${LTCC-"$CC"} 7251 7252# If no C compiler flags were specified, use CFLAGS. 7253LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7254 7255# Allow CC to be a program name with arguments. 7256compiler=$CC 7257 7258 7259# Check for command to grab the raw symbol name followed by C symbol from nm. 7260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 7261$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 7262if ${lt_cv_sys_global_symbol_pipe+:} false; then : 7263 $as_echo_n "(cached) " >&6 7264else 7265 7266# These are sane defaults that work on at least a few old systems. 7267# [They come from Ultrix. What could be older than Ultrix?!! ;)] 7268 7269# Character class describing NM global symbol codes. 7270symcode='[BCDEGRST]' 7271 7272# Regexp to match symbols that can be accessed directly from C. 7273sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 7274 7275# Define system-specific variables. 7276case $host_os in 7277aix*) 7278 symcode='[BCDT]' 7279 ;; 7280cygwin* | mingw* | pw32* | cegcc*) 7281 symcode='[ABCDGISTW]' 7282 ;; 7283hpux*) 7284 if test ia64 = "$host_cpu"; then 7285 symcode='[ABCDEGRST]' 7286 fi 7287 ;; 7288irix* | nonstopux*) 7289 symcode='[BCDEGRST]' 7290 ;; 7291osf*) 7292 symcode='[BCDEGQRST]' 7293 ;; 7294solaris*) 7295 symcode='[BDRT]' 7296 ;; 7297sco3.2v5*) 7298 symcode='[DT]' 7299 ;; 7300sysv4.2uw2*) 7301 symcode='[DT]' 7302 ;; 7303sysv5* | sco5v6* | unixware* | OpenUNIX*) 7304 symcode='[ABDT]' 7305 ;; 7306sysv4) 7307 symcode='[DFNSTU]' 7308 ;; 7309esac 7310 7311# If we're using GNU nm, then use its standard symbol codes. 7312case `$NM -V 2>&1` in 7313*GNU* | *'with BFD'*) 7314 symcode='[ABCDGIRSTW]' ;; 7315esac 7316 7317if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7318 # Gets list of data symbols to import. 7319 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 7320 # Adjust the below global symbol transforms to fixup imported variables. 7321 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 7322 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 7323 lt_c_name_lib_hook="\ 7324 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 7325 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 7326else 7327 # Disable hooks by default. 7328 lt_cv_sys_global_symbol_to_import= 7329 lt_cdecl_hook= 7330 lt_c_name_hook= 7331 lt_c_name_lib_hook= 7332fi 7333 7334# Transform an extracted symbol line into a proper C declaration. 7335# Some systems (esp. on ia64) link data and code symbols differently, 7336# so use this general approach. 7337lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 7338$lt_cdecl_hook\ 7339" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 7340" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 7341 7342# Transform an extracted symbol line into symbol name and symbol address 7343lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 7344$lt_c_name_hook\ 7345" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 7346" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 7347 7348# Transform an extracted symbol line into symbol name with lib prefix and 7349# symbol address. 7350lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 7351$lt_c_name_lib_hook\ 7352" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 7353" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 7354" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 7355 7356# Handle CRLF in mingw tool chain 7357opt_cr= 7358case $build_os in 7359mingw*) 7360 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 7361 ;; 7362esac 7363 7364# Try without a prefix underscore, then with it. 7365for ac_symprfx in "" "_"; do 7366 7367 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 7368 symxfrm="\\1 $ac_symprfx\\2 \\2" 7369 7370 # Write the raw and C identifiers. 7371 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7372 # Fake it for dumpbin and say T for any non-static function, 7373 # D for any global variable and I for any imported variable. 7374 # Also find C++ and __fastcall symbols from MSVC++, 7375 # which start with @ or ?. 7376 lt_cv_sys_global_symbol_pipe="$AWK '"\ 7377" {last_section=section; section=\$ 3};"\ 7378" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 7379" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 7380" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 7381" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 7382" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 7383" \$ 0!~/External *\|/{next};"\ 7384" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 7385" {if(hide[section]) next};"\ 7386" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 7387" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 7388" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 7389" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 7390" ' prfx=^$ac_symprfx" 7391 else 7392 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 7393 fi 7394 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 7395 7396 # Check to see that the pipe works correctly. 7397 pipe_works=no 7398 7399 rm -f conftest* 7400 cat > conftest.$ac_ext <<_LT_EOF 7401#ifdef __cplusplus 7402extern "C" { 7403#endif 7404char nm_test_var; 7405void nm_test_func(void); 7406void nm_test_func(void){} 7407#ifdef __cplusplus 7408} 7409#endif 7410int main(){nm_test_var='a';nm_test_func();return(0);} 7411_LT_EOF 7412 7413 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7414 (eval $ac_compile) 2>&5 7415 ac_status=$? 7416 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7417 test $ac_status = 0; }; then 7418 # Now try to grab the symbols. 7419 nlist=conftest.nm 7420 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 7421 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 7422 ac_status=$? 7423 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7424 test $ac_status = 0; } && test -s "$nlist"; then 7425 # Try sorting and uniquifying the output. 7426 if sort "$nlist" | uniq > "$nlist"T; then 7427 mv -f "$nlist"T "$nlist" 7428 else 7429 rm -f "$nlist"T 7430 fi 7431 7432 # Make sure that we snagged all the symbols we need. 7433 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 7434 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 7435 cat <<_LT_EOF > conftest.$ac_ext 7436/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 7437#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 7438/* DATA imports from DLLs on WIN32 can't be const, because runtime 7439 relocations are performed -- see ld's documentation on pseudo-relocs. */ 7440# define LT_DLSYM_CONST 7441#elif defined __osf__ 7442/* This system does not cope well with relocations in const data. */ 7443# define LT_DLSYM_CONST 7444#else 7445# define LT_DLSYM_CONST const 7446#endif 7447 7448#ifdef __cplusplus 7449extern "C" { 7450#endif 7451 7452_LT_EOF 7453 # Now generate the symbol file. 7454 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 7455 7456 cat <<_LT_EOF >> conftest.$ac_ext 7457 7458/* The mapping between symbol names and symbols. */ 7459LT_DLSYM_CONST struct { 7460 const char *name; 7461 void *address; 7462} 7463lt__PROGRAM__LTX_preloaded_symbols[] = 7464{ 7465 { "@PROGRAM@", (void *) 0 }, 7466_LT_EOF 7467 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 7468 cat <<\_LT_EOF >> conftest.$ac_ext 7469 {0, (void *) 0} 7470}; 7471 7472/* This works around a problem in FreeBSD linker */ 7473#ifdef FREEBSD_WORKAROUND 7474static const void *lt_preloaded_setup() { 7475 return lt__PROGRAM__LTX_preloaded_symbols; 7476} 7477#endif 7478 7479#ifdef __cplusplus 7480} 7481#endif 7482_LT_EOF 7483 # Now try linking the two files. 7484 mv conftest.$ac_objext conftstm.$ac_objext 7485 lt_globsym_save_LIBS=$LIBS 7486 lt_globsym_save_CFLAGS=$CFLAGS 7487 LIBS=conftstm.$ac_objext 7488 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 7489 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 7490 (eval $ac_link) 2>&5 7491 ac_status=$? 7492 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7493 test $ac_status = 0; } && test -s conftest$ac_exeext; then 7494 pipe_works=yes 7495 fi 7496 LIBS=$lt_globsym_save_LIBS 7497 CFLAGS=$lt_globsym_save_CFLAGS 7498 else 7499 echo "cannot find nm_test_func in $nlist" >&5 7500 fi 7501 else 7502 echo "cannot find nm_test_var in $nlist" >&5 7503 fi 7504 else 7505 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 7506 fi 7507 else 7508 echo "$progname: failed program was:" >&5 7509 cat conftest.$ac_ext >&5 7510 fi 7511 rm -rf conftest* conftst* 7512 7513 # Do not use the global_symbol_pipe unless it works. 7514 if test yes = "$pipe_works"; then 7515 break 7516 else 7517 lt_cv_sys_global_symbol_pipe= 7518 fi 7519done 7520 7521fi 7522 7523if test -z "$lt_cv_sys_global_symbol_pipe"; then 7524 lt_cv_sys_global_symbol_to_cdecl= 7525fi 7526if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 7528$as_echo "failed" >&6; } 7529else 7530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 7531$as_echo "ok" >&6; } 7532fi 7533 7534# Response file support. 7535if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7536 nm_file_list_spec='@' 7537elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 7538 nm_file_list_spec='@' 7539fi 7540 7541 7542 7543 7544 7545 7546 7547 7548 7549 7550 7551 7552 7553 7554 7555 7556 7557 7558 7559 7560 7561 7562 7563 7564 7565 7566 7567 7568 7569 7570 7571 7572 7573 7574 7575 7576 7577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 7578$as_echo_n "checking for sysroot... " >&6; } 7579 7580# Check whether --with-sysroot was given. 7581if test "${with_sysroot+set}" = set; then : 7582 withval=$with_sysroot; 7583else 7584 with_sysroot=no 7585fi 7586 7587 7588lt_sysroot= 7589case $with_sysroot in #( 7590 yes) 7591 if test yes = "$GCC"; then 7592 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 7593 fi 7594 ;; #( 7595 /*) 7596 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 7597 ;; #( 7598 no|'') 7599 ;; #( 7600 *) 7601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 7602$as_echo "$with_sysroot" >&6; } 7603 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 7604 ;; 7605esac 7606 7607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 7608$as_echo "${lt_sysroot:-no}" >&6; } 7609 7610 7611 7612 7613 7614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 7615$as_echo_n "checking for a working dd... " >&6; } 7616if ${ac_cv_path_lt_DD+:} false; then : 7617 $as_echo_n "(cached) " >&6 7618else 7619 printf 0123456789abcdef0123456789abcdef >conftest.i 7620cat conftest.i conftest.i >conftest2.i 7621: ${lt_DD:=$DD} 7622if test -z "$lt_DD"; then 7623 ac_path_lt_DD_found=false 7624 # Loop through the user's path and test for each of PROGNAME-LIST 7625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7626for as_dir in $PATH 7627do 7628 IFS=$as_save_IFS 7629 test -z "$as_dir" && as_dir=. 7630 for ac_prog in dd; do 7631 for ac_exec_ext in '' $ac_executable_extensions; do 7632 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 7633 as_fn_executable_p "$ac_path_lt_DD" || continue 7634if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7635 cmp -s conftest.i conftest.out \ 7636 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 7637fi 7638 $ac_path_lt_DD_found && break 3 7639 done 7640 done 7641 done 7642IFS=$as_save_IFS 7643 if test -z "$ac_cv_path_lt_DD"; then 7644 : 7645 fi 7646else 7647 ac_cv_path_lt_DD=$lt_DD 7648fi 7649 7650rm -f conftest.i conftest2.i conftest.out 7651fi 7652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 7653$as_echo "$ac_cv_path_lt_DD" >&6; } 7654 7655 7656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 7657$as_echo_n "checking how to truncate binary pipes... " >&6; } 7658if ${lt_cv_truncate_bin+:} false; then : 7659 $as_echo_n "(cached) " >&6 7660else 7661 printf 0123456789abcdef0123456789abcdef >conftest.i 7662cat conftest.i conftest.i >conftest2.i 7663lt_cv_truncate_bin= 7664if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7665 cmp -s conftest.i conftest.out \ 7666 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 7667fi 7668rm -f conftest.i conftest2.i conftest.out 7669test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 7670fi 7671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 7672$as_echo "$lt_cv_truncate_bin" >&6; } 7673 7674 7675 7676 7677 7678 7679 7680# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 7681func_cc_basename () 7682{ 7683 for cc_temp in $*""; do 7684 case $cc_temp in 7685 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7686 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7687 \-*) ;; 7688 *) break;; 7689 esac 7690 done 7691 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7692} 7693 7694# Check whether --enable-libtool-lock was given. 7695if test "${enable_libtool_lock+set}" = set; then : 7696 enableval=$enable_libtool_lock; 7697fi 7698 7699test no = "$enable_libtool_lock" || enable_libtool_lock=yes 7700 7701# Some flags need to be propagated to the compiler or linker for good 7702# libtool support. 7703case $host in 7704ia64-*-hpux*) 7705 # Find out what ABI is being produced by ac_compile, and set mode 7706 # options accordingly. 7707 echo 'int i;' > conftest.$ac_ext 7708 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7709 (eval $ac_compile) 2>&5 7710 ac_status=$? 7711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7712 test $ac_status = 0; }; then 7713 case `/usr/bin/file conftest.$ac_objext` in 7714 *ELF-32*) 7715 HPUX_IA64_MODE=32 7716 ;; 7717 *ELF-64*) 7718 HPUX_IA64_MODE=64 7719 ;; 7720 esac 7721 fi 7722 rm -rf conftest* 7723 ;; 7724*-*-irix6*) 7725 # Find out what ABI is being produced by ac_compile, and set linker 7726 # options accordingly. 7727 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7728 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7729 (eval $ac_compile) 2>&5 7730 ac_status=$? 7731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7732 test $ac_status = 0; }; then 7733 if test yes = "$lt_cv_prog_gnu_ld"; then 7734 case `/usr/bin/file conftest.$ac_objext` in 7735 *32-bit*) 7736 LD="${LD-ld} -melf32bsmip" 7737 ;; 7738 *N32*) 7739 LD="${LD-ld} -melf32bmipn32" 7740 ;; 7741 *64-bit*) 7742 LD="${LD-ld} -melf64bmip" 7743 ;; 7744 esac 7745 else 7746 case `/usr/bin/file conftest.$ac_objext` in 7747 *32-bit*) 7748 LD="${LD-ld} -32" 7749 ;; 7750 *N32*) 7751 LD="${LD-ld} -n32" 7752 ;; 7753 *64-bit*) 7754 LD="${LD-ld} -64" 7755 ;; 7756 esac 7757 fi 7758 fi 7759 rm -rf conftest* 7760 ;; 7761 7762mips64*-*linux*) 7763 # Find out what ABI is being produced by ac_compile, and set linker 7764 # options accordingly. 7765 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7766 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7767 (eval $ac_compile) 2>&5 7768 ac_status=$? 7769 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7770 test $ac_status = 0; }; then 7771 emul=elf 7772 case `/usr/bin/file conftest.$ac_objext` in 7773 *32-bit*) 7774 emul="${emul}32" 7775 ;; 7776 *64-bit*) 7777 emul="${emul}64" 7778 ;; 7779 esac 7780 case `/usr/bin/file conftest.$ac_objext` in 7781 *MSB*) 7782 emul="${emul}btsmip" 7783 ;; 7784 *LSB*) 7785 emul="${emul}ltsmip" 7786 ;; 7787 esac 7788 case `/usr/bin/file conftest.$ac_objext` in 7789 *N32*) 7790 emul="${emul}n32" 7791 ;; 7792 esac 7793 LD="${LD-ld} -m $emul" 7794 fi 7795 rm -rf conftest* 7796 ;; 7797 7798x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 7799s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 7800 # Find out what ABI is being produced by ac_compile, and set linker 7801 # options accordingly. Note that the listed cases only cover the 7802 # situations where additional linker options are needed (such as when 7803 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 7804 # vice versa); the common cases where no linker options are needed do 7805 # not appear in the list. 7806 echo 'int i;' > conftest.$ac_ext 7807 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7808 (eval $ac_compile) 2>&5 7809 ac_status=$? 7810 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7811 test $ac_status = 0; }; then 7812 case `/usr/bin/file conftest.o` in 7813 *32-bit*) 7814 case $host in 7815 x86_64-*kfreebsd*-gnu) 7816 LD="${LD-ld} -m elf_i386_fbsd" 7817 ;; 7818 x86_64-*linux*) 7819 case `/usr/bin/file conftest.o` in 7820 *x86-64*) 7821 LD="${LD-ld} -m elf32_x86_64" 7822 ;; 7823 *) 7824 LD="${LD-ld} -m elf_i386" 7825 ;; 7826 esac 7827 ;; 7828 powerpc64le-*linux*) 7829 LD="${LD-ld} -m elf32lppclinux" 7830 ;; 7831 powerpc64-*linux*) 7832 LD="${LD-ld} -m elf32ppclinux" 7833 ;; 7834 s390x-*linux*) 7835 LD="${LD-ld} -m elf_s390" 7836 ;; 7837 sparc64-*linux*) 7838 LD="${LD-ld} -m elf32_sparc" 7839 ;; 7840 esac 7841 ;; 7842 *64-bit*) 7843 case $host in 7844 x86_64-*kfreebsd*-gnu) 7845 LD="${LD-ld} -m elf_x86_64_fbsd" 7846 ;; 7847 x86_64-*linux*) 7848 LD="${LD-ld} -m elf_x86_64" 7849 ;; 7850 powerpcle-*linux*) 7851 LD="${LD-ld} -m elf64lppc" 7852 ;; 7853 powerpc-*linux*) 7854 LD="${LD-ld} -m elf64ppc" 7855 ;; 7856 s390*-*linux*|s390*-*tpf*) 7857 LD="${LD-ld} -m elf64_s390" 7858 ;; 7859 sparc*-*linux*) 7860 LD="${LD-ld} -m elf64_sparc" 7861 ;; 7862 esac 7863 ;; 7864 esac 7865 fi 7866 rm -rf conftest* 7867 ;; 7868 7869*-*-sco3.2v5*) 7870 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7871 SAVE_CFLAGS=$CFLAGS 7872 CFLAGS="$CFLAGS -belf" 7873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 7874$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 7875if ${lt_cv_cc_needs_belf+:} false; then : 7876 $as_echo_n "(cached) " >&6 7877else 7878 ac_ext=c 7879ac_cpp='$CPP $CPPFLAGS' 7880ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7881ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7882ac_compiler_gnu=$ac_cv_c_compiler_gnu 7883 7884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7885/* end confdefs.h. */ 7886 7887int 7888main () 7889{ 7890 7891 ; 7892 return 0; 7893} 7894_ACEOF 7895if ac_fn_c_try_link "$LINENO"; then : 7896 lt_cv_cc_needs_belf=yes 7897else 7898 lt_cv_cc_needs_belf=no 7899fi 7900rm -f core conftest.err conftest.$ac_objext \ 7901 conftest$ac_exeext conftest.$ac_ext 7902 ac_ext=c 7903ac_cpp='$CPP $CPPFLAGS' 7904ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7905ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7906ac_compiler_gnu=$ac_cv_c_compiler_gnu 7907 7908fi 7909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 7910$as_echo "$lt_cv_cc_needs_belf" >&6; } 7911 if test yes != "$lt_cv_cc_needs_belf"; then 7912 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7913 CFLAGS=$SAVE_CFLAGS 7914 fi 7915 ;; 7916*-*solaris*) 7917 # Find out what ABI is being produced by ac_compile, and set linker 7918 # options accordingly. 7919 echo 'int i;' > conftest.$ac_ext 7920 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7921 (eval $ac_compile) 2>&5 7922 ac_status=$? 7923 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7924 test $ac_status = 0; }; then 7925 case `/usr/bin/file conftest.o` in 7926 *64-bit*) 7927 case $lt_cv_prog_gnu_ld in 7928 yes*) 7929 case $host in 7930 i?86-*-solaris*|x86_64-*-solaris*) 7931 LD="${LD-ld} -m elf_x86_64" 7932 ;; 7933 sparc*-*-solaris*) 7934 LD="${LD-ld} -m elf64_sparc" 7935 ;; 7936 esac 7937 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 7938 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 7939 LD=${LD-ld}_sol2 7940 fi 7941 ;; 7942 *) 7943 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7944 LD="${LD-ld} -64" 7945 fi 7946 ;; 7947 esac 7948 ;; 7949 esac 7950 fi 7951 rm -rf conftest* 7952 ;; 7953esac 7954 7955need_locks=$enable_libtool_lock 7956 7957if test -n "$ac_tool_prefix"; then 7958 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 7959set dummy ${ac_tool_prefix}mt; ac_word=$2 7960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7961$as_echo_n "checking for $ac_word... " >&6; } 7962if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 7963 $as_echo_n "(cached) " >&6 7964else 7965 if test -n "$MANIFEST_TOOL"; then 7966 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 7967else 7968as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7969for as_dir in $PATH 7970do 7971 IFS=$as_save_IFS 7972 test -z "$as_dir" && as_dir=. 7973 for ac_exec_ext in '' $ac_executable_extensions; do 7974 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7975 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 7976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7977 break 2 7978 fi 7979done 7980 done 7981IFS=$as_save_IFS 7982 7983fi 7984fi 7985MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 7986if test -n "$MANIFEST_TOOL"; then 7987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 7988$as_echo "$MANIFEST_TOOL" >&6; } 7989else 7990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7991$as_echo "no" >&6; } 7992fi 7993 7994 7995fi 7996if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 7997 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 7998 # Extract the first word of "mt", so it can be a program name with args. 7999set dummy mt; ac_word=$2 8000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8001$as_echo_n "checking for $ac_word... " >&6; } 8002if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 8003 $as_echo_n "(cached) " >&6 8004else 8005 if test -n "$ac_ct_MANIFEST_TOOL"; then 8006 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 8007else 8008as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8009for as_dir in $PATH 8010do 8011 IFS=$as_save_IFS 8012 test -z "$as_dir" && as_dir=. 8013 for ac_exec_ext in '' $ac_executable_extensions; do 8014 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8015 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 8016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8017 break 2 8018 fi 8019done 8020 done 8021IFS=$as_save_IFS 8022 8023fi 8024fi 8025ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 8026if test -n "$ac_ct_MANIFEST_TOOL"; then 8027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 8028$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 8029else 8030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8031$as_echo "no" >&6; } 8032fi 8033 8034 if test "x$ac_ct_MANIFEST_TOOL" = x; then 8035 MANIFEST_TOOL=":" 8036 else 8037 case $cross_compiling:$ac_tool_warned in 8038yes:) 8039{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8040$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8041ac_tool_warned=yes ;; 8042esac 8043 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 8044 fi 8045else 8046 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 8047fi 8048 8049test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 8050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 8051$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 8052if ${lt_cv_path_mainfest_tool+:} false; then : 8053 $as_echo_n "(cached) " >&6 8054else 8055 lt_cv_path_mainfest_tool=no 8056 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 8057 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 8058 cat conftest.err >&5 8059 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 8060 lt_cv_path_mainfest_tool=yes 8061 fi 8062 rm -f conftest* 8063fi 8064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 8065$as_echo "$lt_cv_path_mainfest_tool" >&6; } 8066if test yes != "$lt_cv_path_mainfest_tool"; then 8067 MANIFEST_TOOL=: 8068fi 8069 8070 8071 8072 8073 8074 8075 case $host_os in 8076 rhapsody* | darwin*) 8077 if test -n "$ac_tool_prefix"; then 8078 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 8079set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 8080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8081$as_echo_n "checking for $ac_word... " >&6; } 8082if ${ac_cv_prog_DSYMUTIL+:} false; then : 8083 $as_echo_n "(cached) " >&6 8084else 8085 if test -n "$DSYMUTIL"; then 8086 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 8087else 8088as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8089for as_dir in $PATH 8090do 8091 IFS=$as_save_IFS 8092 test -z "$as_dir" && as_dir=. 8093 for ac_exec_ext in '' $ac_executable_extensions; do 8094 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8095 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 8096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8097 break 2 8098 fi 8099done 8100 done 8101IFS=$as_save_IFS 8102 8103fi 8104fi 8105DSYMUTIL=$ac_cv_prog_DSYMUTIL 8106if test -n "$DSYMUTIL"; then 8107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 8108$as_echo "$DSYMUTIL" >&6; } 8109else 8110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8111$as_echo "no" >&6; } 8112fi 8113 8114 8115fi 8116if test -z "$ac_cv_prog_DSYMUTIL"; then 8117 ac_ct_DSYMUTIL=$DSYMUTIL 8118 # Extract the first word of "dsymutil", so it can be a program name with args. 8119set dummy dsymutil; ac_word=$2 8120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8121$as_echo_n "checking for $ac_word... " >&6; } 8122if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 8123 $as_echo_n "(cached) " >&6 8124else 8125 if test -n "$ac_ct_DSYMUTIL"; then 8126 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 8127else 8128as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8129for as_dir in $PATH 8130do 8131 IFS=$as_save_IFS 8132 test -z "$as_dir" && as_dir=. 8133 for ac_exec_ext in '' $ac_executable_extensions; do 8134 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8135 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 8136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8137 break 2 8138 fi 8139done 8140 done 8141IFS=$as_save_IFS 8142 8143fi 8144fi 8145ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 8146if test -n "$ac_ct_DSYMUTIL"; then 8147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 8148$as_echo "$ac_ct_DSYMUTIL" >&6; } 8149else 8150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8151$as_echo "no" >&6; } 8152fi 8153 8154 if test "x$ac_ct_DSYMUTIL" = x; then 8155 DSYMUTIL=":" 8156 else 8157 case $cross_compiling:$ac_tool_warned in 8158yes:) 8159{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8160$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8161ac_tool_warned=yes ;; 8162esac 8163 DSYMUTIL=$ac_ct_DSYMUTIL 8164 fi 8165else 8166 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 8167fi 8168 8169 if test -n "$ac_tool_prefix"; then 8170 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 8171set dummy ${ac_tool_prefix}nmedit; ac_word=$2 8172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8173$as_echo_n "checking for $ac_word... " >&6; } 8174if ${ac_cv_prog_NMEDIT+:} false; then : 8175 $as_echo_n "(cached) " >&6 8176else 8177 if test -n "$NMEDIT"; then 8178 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 8179else 8180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8181for as_dir in $PATH 8182do 8183 IFS=$as_save_IFS 8184 test -z "$as_dir" && as_dir=. 8185 for ac_exec_ext in '' $ac_executable_extensions; do 8186 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8187 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 8188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8189 break 2 8190 fi 8191done 8192 done 8193IFS=$as_save_IFS 8194 8195fi 8196fi 8197NMEDIT=$ac_cv_prog_NMEDIT 8198if test -n "$NMEDIT"; then 8199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 8200$as_echo "$NMEDIT" >&6; } 8201else 8202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8203$as_echo "no" >&6; } 8204fi 8205 8206 8207fi 8208if test -z "$ac_cv_prog_NMEDIT"; then 8209 ac_ct_NMEDIT=$NMEDIT 8210 # Extract the first word of "nmedit", so it can be a program name with args. 8211set dummy nmedit; ac_word=$2 8212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8213$as_echo_n "checking for $ac_word... " >&6; } 8214if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 8215 $as_echo_n "(cached) " >&6 8216else 8217 if test -n "$ac_ct_NMEDIT"; then 8218 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 8219else 8220as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8221for as_dir in $PATH 8222do 8223 IFS=$as_save_IFS 8224 test -z "$as_dir" && as_dir=. 8225 for ac_exec_ext in '' $ac_executable_extensions; do 8226 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8227 ac_cv_prog_ac_ct_NMEDIT="nmedit" 8228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8229 break 2 8230 fi 8231done 8232 done 8233IFS=$as_save_IFS 8234 8235fi 8236fi 8237ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 8238if test -n "$ac_ct_NMEDIT"; then 8239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 8240$as_echo "$ac_ct_NMEDIT" >&6; } 8241else 8242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8243$as_echo "no" >&6; } 8244fi 8245 8246 if test "x$ac_ct_NMEDIT" = x; then 8247 NMEDIT=":" 8248 else 8249 case $cross_compiling:$ac_tool_warned in 8250yes:) 8251{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8252$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8253ac_tool_warned=yes ;; 8254esac 8255 NMEDIT=$ac_ct_NMEDIT 8256 fi 8257else 8258 NMEDIT="$ac_cv_prog_NMEDIT" 8259fi 8260 8261 if test -n "$ac_tool_prefix"; then 8262 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 8263set dummy ${ac_tool_prefix}lipo; ac_word=$2 8264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8265$as_echo_n "checking for $ac_word... " >&6; } 8266if ${ac_cv_prog_LIPO+:} false; then : 8267 $as_echo_n "(cached) " >&6 8268else 8269 if test -n "$LIPO"; then 8270 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 8271else 8272as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8273for as_dir in $PATH 8274do 8275 IFS=$as_save_IFS 8276 test -z "$as_dir" && as_dir=. 8277 for ac_exec_ext in '' $ac_executable_extensions; do 8278 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8279 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 8280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8281 break 2 8282 fi 8283done 8284 done 8285IFS=$as_save_IFS 8286 8287fi 8288fi 8289LIPO=$ac_cv_prog_LIPO 8290if test -n "$LIPO"; then 8291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 8292$as_echo "$LIPO" >&6; } 8293else 8294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8295$as_echo "no" >&6; } 8296fi 8297 8298 8299fi 8300if test -z "$ac_cv_prog_LIPO"; then 8301 ac_ct_LIPO=$LIPO 8302 # Extract the first word of "lipo", so it can be a program name with args. 8303set dummy lipo; ac_word=$2 8304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8305$as_echo_n "checking for $ac_word... " >&6; } 8306if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 8307 $as_echo_n "(cached) " >&6 8308else 8309 if test -n "$ac_ct_LIPO"; then 8310 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 8311else 8312as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8313for as_dir in $PATH 8314do 8315 IFS=$as_save_IFS 8316 test -z "$as_dir" && as_dir=. 8317 for ac_exec_ext in '' $ac_executable_extensions; do 8318 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8319 ac_cv_prog_ac_ct_LIPO="lipo" 8320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8321 break 2 8322 fi 8323done 8324 done 8325IFS=$as_save_IFS 8326 8327fi 8328fi 8329ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 8330if test -n "$ac_ct_LIPO"; then 8331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 8332$as_echo "$ac_ct_LIPO" >&6; } 8333else 8334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8335$as_echo "no" >&6; } 8336fi 8337 8338 if test "x$ac_ct_LIPO" = x; then 8339 LIPO=":" 8340 else 8341 case $cross_compiling:$ac_tool_warned in 8342yes:) 8343{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8344$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8345ac_tool_warned=yes ;; 8346esac 8347 LIPO=$ac_ct_LIPO 8348 fi 8349else 8350 LIPO="$ac_cv_prog_LIPO" 8351fi 8352 8353 if test -n "$ac_tool_prefix"; then 8354 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 8355set dummy ${ac_tool_prefix}otool; ac_word=$2 8356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8357$as_echo_n "checking for $ac_word... " >&6; } 8358if ${ac_cv_prog_OTOOL+:} false; then : 8359 $as_echo_n "(cached) " >&6 8360else 8361 if test -n "$OTOOL"; then 8362 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 8363else 8364as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8365for as_dir in $PATH 8366do 8367 IFS=$as_save_IFS 8368 test -z "$as_dir" && as_dir=. 8369 for ac_exec_ext in '' $ac_executable_extensions; do 8370 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8371 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 8372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8373 break 2 8374 fi 8375done 8376 done 8377IFS=$as_save_IFS 8378 8379fi 8380fi 8381OTOOL=$ac_cv_prog_OTOOL 8382if test -n "$OTOOL"; then 8383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 8384$as_echo "$OTOOL" >&6; } 8385else 8386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8387$as_echo "no" >&6; } 8388fi 8389 8390 8391fi 8392if test -z "$ac_cv_prog_OTOOL"; then 8393 ac_ct_OTOOL=$OTOOL 8394 # Extract the first word of "otool", so it can be a program name with args. 8395set dummy otool; ac_word=$2 8396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8397$as_echo_n "checking for $ac_word... " >&6; } 8398if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 8399 $as_echo_n "(cached) " >&6 8400else 8401 if test -n "$ac_ct_OTOOL"; then 8402 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 8403else 8404as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8405for as_dir in $PATH 8406do 8407 IFS=$as_save_IFS 8408 test -z "$as_dir" && as_dir=. 8409 for ac_exec_ext in '' $ac_executable_extensions; do 8410 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8411 ac_cv_prog_ac_ct_OTOOL="otool" 8412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8413 break 2 8414 fi 8415done 8416 done 8417IFS=$as_save_IFS 8418 8419fi 8420fi 8421ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 8422if test -n "$ac_ct_OTOOL"; then 8423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 8424$as_echo "$ac_ct_OTOOL" >&6; } 8425else 8426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8427$as_echo "no" >&6; } 8428fi 8429 8430 if test "x$ac_ct_OTOOL" = x; then 8431 OTOOL=":" 8432 else 8433 case $cross_compiling:$ac_tool_warned in 8434yes:) 8435{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8436$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8437ac_tool_warned=yes ;; 8438esac 8439 OTOOL=$ac_ct_OTOOL 8440 fi 8441else 8442 OTOOL="$ac_cv_prog_OTOOL" 8443fi 8444 8445 if test -n "$ac_tool_prefix"; then 8446 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 8447set dummy ${ac_tool_prefix}otool64; ac_word=$2 8448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8449$as_echo_n "checking for $ac_word... " >&6; } 8450if ${ac_cv_prog_OTOOL64+:} false; then : 8451 $as_echo_n "(cached) " >&6 8452else 8453 if test -n "$OTOOL64"; then 8454 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 8455else 8456as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8457for as_dir in $PATH 8458do 8459 IFS=$as_save_IFS 8460 test -z "$as_dir" && as_dir=. 8461 for ac_exec_ext in '' $ac_executable_extensions; do 8462 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8463 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 8464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8465 break 2 8466 fi 8467done 8468 done 8469IFS=$as_save_IFS 8470 8471fi 8472fi 8473OTOOL64=$ac_cv_prog_OTOOL64 8474if test -n "$OTOOL64"; then 8475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 8476$as_echo "$OTOOL64" >&6; } 8477else 8478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8479$as_echo "no" >&6; } 8480fi 8481 8482 8483fi 8484if test -z "$ac_cv_prog_OTOOL64"; then 8485 ac_ct_OTOOL64=$OTOOL64 8486 # Extract the first word of "otool64", so it can be a program name with args. 8487set dummy otool64; ac_word=$2 8488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8489$as_echo_n "checking for $ac_word... " >&6; } 8490if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 8491 $as_echo_n "(cached) " >&6 8492else 8493 if test -n "$ac_ct_OTOOL64"; then 8494 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 8495else 8496as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8497for as_dir in $PATH 8498do 8499 IFS=$as_save_IFS 8500 test -z "$as_dir" && as_dir=. 8501 for ac_exec_ext in '' $ac_executable_extensions; do 8502 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8503 ac_cv_prog_ac_ct_OTOOL64="otool64" 8504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8505 break 2 8506 fi 8507done 8508 done 8509IFS=$as_save_IFS 8510 8511fi 8512fi 8513ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 8514if test -n "$ac_ct_OTOOL64"; then 8515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 8516$as_echo "$ac_ct_OTOOL64" >&6; } 8517else 8518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8519$as_echo "no" >&6; } 8520fi 8521 8522 if test "x$ac_ct_OTOOL64" = x; then 8523 OTOOL64=":" 8524 else 8525 case $cross_compiling:$ac_tool_warned in 8526yes:) 8527{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8528$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8529ac_tool_warned=yes ;; 8530esac 8531 OTOOL64=$ac_ct_OTOOL64 8532 fi 8533else 8534 OTOOL64="$ac_cv_prog_OTOOL64" 8535fi 8536 8537 8538 8539 8540 8541 8542 8543 8544 8545 8546 8547 8548 8549 8550 8551 8552 8553 8554 8555 8556 8557 8558 8559 8560 8561 8562 8563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 8564$as_echo_n "checking for -single_module linker flag... " >&6; } 8565if ${lt_cv_apple_cc_single_mod+:} false; then : 8566 $as_echo_n "(cached) " >&6 8567else 8568 lt_cv_apple_cc_single_mod=no 8569 if test -z "$LT_MULTI_MODULE"; then 8570 # By default we will add the -single_module flag. You can override 8571 # by either setting the environment variable LT_MULTI_MODULE 8572 # non-empty at configure time, or by adding -multi_module to the 8573 # link flags. 8574 rm -rf libconftest.dylib* 8575 echo "int foo(void){return 1;}" > conftest.c 8576 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8577-dynamiclib -Wl,-single_module conftest.c" >&5 8578 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8579 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 8580 _lt_result=$? 8581 # If there is a non-empty error log, and "single_module" 8582 # appears in it, assume the flag caused a linker warning 8583 if test -s conftest.err && $GREP single_module conftest.err; then 8584 cat conftest.err >&5 8585 # Otherwise, if the output was created with a 0 exit code from 8586 # the compiler, it worked. 8587 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 8588 lt_cv_apple_cc_single_mod=yes 8589 else 8590 cat conftest.err >&5 8591 fi 8592 rm -rf libconftest.dylib* 8593 rm -f conftest.* 8594 fi 8595fi 8596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 8597$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 8598 8599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 8600$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 8601if ${lt_cv_ld_exported_symbols_list+:} false; then : 8602 $as_echo_n "(cached) " >&6 8603else 8604 lt_cv_ld_exported_symbols_list=no 8605 save_LDFLAGS=$LDFLAGS 8606 echo "_main" > conftest.sym 8607 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 8608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8609/* end confdefs.h. */ 8610 8611int 8612main () 8613{ 8614 8615 ; 8616 return 0; 8617} 8618_ACEOF 8619if ac_fn_c_try_link "$LINENO"; then : 8620 lt_cv_ld_exported_symbols_list=yes 8621else 8622 lt_cv_ld_exported_symbols_list=no 8623fi 8624rm -f core conftest.err conftest.$ac_objext \ 8625 conftest$ac_exeext conftest.$ac_ext 8626 LDFLAGS=$save_LDFLAGS 8627 8628fi 8629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 8630$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 8631 8632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 8633$as_echo_n "checking for -force_load linker flag... " >&6; } 8634if ${lt_cv_ld_force_load+:} false; then : 8635 $as_echo_n "(cached) " >&6 8636else 8637 lt_cv_ld_force_load=no 8638 cat > conftest.c << _LT_EOF 8639int forced_loaded() { return 2;} 8640_LT_EOF 8641 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 8642 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 8643 echo "$AR cru libconftest.a conftest.o" >&5 8644 $AR cru libconftest.a conftest.o 2>&5 8645 echo "$RANLIB libconftest.a" >&5 8646 $RANLIB libconftest.a 2>&5 8647 cat > conftest.c << _LT_EOF 8648int main() { return 0;} 8649_LT_EOF 8650 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 8651 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 8652 _lt_result=$? 8653 if test -s conftest.err && $GREP force_load conftest.err; then 8654 cat conftest.err >&5 8655 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 8656 lt_cv_ld_force_load=yes 8657 else 8658 cat conftest.err >&5 8659 fi 8660 rm -f conftest.err libconftest.a conftest conftest.c 8661 rm -rf conftest.dSYM 8662 8663fi 8664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 8665$as_echo "$lt_cv_ld_force_load" >&6; } 8666 case $host_os in 8667 rhapsody* | darwin1.[012]) 8668 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 8669 darwin1.*) 8670 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8671 darwin*) # darwin 5.x on 8672 # if running on 10.5 or later, the deployment target defaults 8673 # to the OS version, if on x86, and 10.4, the deployment 8674 # target defaults to 10.4. Don't you love it? 8675 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 8676 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 8677 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 8678 10.[012][,.]*) 8679 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8680 10.*) 8681 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 8682 esac 8683 ;; 8684 esac 8685 if test yes = "$lt_cv_apple_cc_single_mod"; then 8686 _lt_dar_single_mod='$single_module' 8687 fi 8688 if test yes = "$lt_cv_ld_exported_symbols_list"; then 8689 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 8690 else 8691 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 8692 fi 8693 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 8694 _lt_dsymutil='~$DSYMUTIL $lib || :' 8695 else 8696 _lt_dsymutil= 8697 fi 8698 ;; 8699 esac 8700 8701# func_munge_path_list VARIABLE PATH 8702# ----------------------------------- 8703# VARIABLE is name of variable containing _space_ separated list of 8704# directories to be munged by the contents of PATH, which is string 8705# having a format: 8706# "DIR[:DIR]:" 8707# string "DIR[ DIR]" will be prepended to VARIABLE 8708# ":DIR[:DIR]" 8709# string "DIR[ DIR]" will be appended to VARIABLE 8710# "DIRP[:DIRP]::[DIRA:]DIRA" 8711# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 8712# "DIRA[ DIRA]" will be appended to VARIABLE 8713# "DIR[:DIR]" 8714# VARIABLE will be replaced by "DIR[ DIR]" 8715func_munge_path_list () 8716{ 8717 case x$2 in 8718 x) 8719 ;; 8720 *:) 8721 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 8722 ;; 8723 x:*) 8724 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 8725 ;; 8726 *::*) 8727 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 8728 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 8729 ;; 8730 *) 8731 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 8732 ;; 8733 esac 8734} 8735 8736for ac_header in dlfcn.h 8737do : 8738 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 8739" 8740if test "x$ac_cv_header_dlfcn_h" = xyes; then : 8741 cat >>confdefs.h <<_ACEOF 8742#define HAVE_DLFCN_H 1 8743_ACEOF 8744 8745fi 8746 8747done 8748 8749 8750 8751 8752 8753# Set options 8754# Check whether --enable-static was given. 8755if test "${enable_static+set}" = set; then : 8756 enableval=$enable_static; p=${PACKAGE-default} 8757 case $enableval in 8758 yes) enable_static=yes ;; 8759 no) enable_static=no ;; 8760 *) 8761 enable_static=no 8762 # Look at the argument we got. We use all the common list separators. 8763 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8764 for pkg in $enableval; do 8765 IFS=$lt_save_ifs 8766 if test "X$pkg" = "X$p"; then 8767 enable_static=yes 8768 fi 8769 done 8770 IFS=$lt_save_ifs 8771 ;; 8772 esac 8773else 8774 enable_static=no 8775fi 8776 8777 8778 8779 8780 8781 8782 8783 8784# Check whether --with-pic was given. 8785if test "${with_pic+set}" = set; then : 8786 withval=$with_pic; lt_p=${PACKAGE-default} 8787 case $withval in 8788 yes|no) pic_mode=$withval ;; 8789 *) 8790 pic_mode=default 8791 # Look at the argument we got. We use all the common list separators. 8792 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8793 for lt_pkg in $withval; do 8794 IFS=$lt_save_ifs 8795 if test "X$lt_pkg" = "X$lt_p"; then 8796 pic_mode=yes 8797 fi 8798 done 8799 IFS=$lt_save_ifs 8800 ;; 8801 esac 8802else 8803 pic_mode=yes 8804fi 8805 8806 8807 8808 8809 8810 8811 8812 8813 8814 enable_dlopen=no 8815 8816 8817 enable_win32_dll=no 8818 8819 8820 # Check whether --enable-shared was given. 8821if test "${enable_shared+set}" = set; then : 8822 enableval=$enable_shared; p=${PACKAGE-default} 8823 case $enableval in 8824 yes) enable_shared=yes ;; 8825 no) enable_shared=no ;; 8826 *) 8827 enable_shared=no 8828 # Look at the argument we got. We use all the common list separators. 8829 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8830 for pkg in $enableval; do 8831 IFS=$lt_save_ifs 8832 if test "X$pkg" = "X$p"; then 8833 enable_shared=yes 8834 fi 8835 done 8836 IFS=$lt_save_ifs 8837 ;; 8838 esac 8839else 8840 enable_shared=yes 8841fi 8842 8843 8844 8845 8846 8847 8848 8849 8850 8851 8852 8853 # Check whether --enable-fast-install was given. 8854if test "${enable_fast_install+set}" = set; then : 8855 enableval=$enable_fast_install; p=${PACKAGE-default} 8856 case $enableval in 8857 yes) enable_fast_install=yes ;; 8858 no) enable_fast_install=no ;; 8859 *) 8860 enable_fast_install=no 8861 # Look at the argument we got. We use all the common list separators. 8862 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8863 for pkg in $enableval; do 8864 IFS=$lt_save_ifs 8865 if test "X$pkg" = "X$p"; then 8866 enable_fast_install=yes 8867 fi 8868 done 8869 IFS=$lt_save_ifs 8870 ;; 8871 esac 8872else 8873 enable_fast_install=yes 8874fi 8875 8876 8877 8878 8879 8880 8881 8882 8883 shared_archive_member_spec= 8884case $host,$enable_shared in 8885power*-*-aix[5-9]*,yes) 8886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 8887$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 8888 8889# Check whether --with-aix-soname was given. 8890if test "${with_aix_soname+set}" = set; then : 8891 withval=$with_aix_soname; case $withval in 8892 aix|svr4|both) 8893 ;; 8894 *) 8895 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 8896 ;; 8897 esac 8898 lt_cv_with_aix_soname=$with_aix_soname 8899else 8900 if ${lt_cv_with_aix_soname+:} false; then : 8901 $as_echo_n "(cached) " >&6 8902else 8903 lt_cv_with_aix_soname=aix 8904fi 8905 8906 with_aix_soname=$lt_cv_with_aix_soname 8907fi 8908 8909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 8910$as_echo "$with_aix_soname" >&6; } 8911 if test aix != "$with_aix_soname"; then 8912 # For the AIX way of multilib, we name the shared archive member 8913 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 8914 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 8915 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 8916 # the AIX toolchain works better with OBJECT_MODE set (default 32). 8917 if test 64 = "${OBJECT_MODE-32}"; then 8918 shared_archive_member_spec=shr_64 8919 else 8920 shared_archive_member_spec=shr 8921 fi 8922 fi 8923 ;; 8924*) 8925 with_aix_soname=aix 8926 ;; 8927esac 8928 8929 8930 8931 8932 8933 8934 8935 8936 8937 8938# This can be used to rebuild libtool when needed 8939LIBTOOL_DEPS=$ltmain 8940 8941# Always use our own libtool. 8942LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8943 8944 8945 8946 8947 8948 8949 8950 8951 8952 8953 8954 8955 8956 8957 8958 8959 8960 8961 8962 8963 8964 8965 8966 8967 8968 8969 8970 8971 8972 8973test -z "$LN_S" && LN_S="ln -s" 8974 8975 8976 8977 8978 8979 8980 8981 8982 8983 8984 8985 8986 8987 8988if test -n "${ZSH_VERSION+set}"; then 8989 setopt NO_GLOB_SUBST 8990fi 8991 8992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8993$as_echo_n "checking for objdir... " >&6; } 8994if ${lt_cv_objdir+:} false; then : 8995 $as_echo_n "(cached) " >&6 8996else 8997 rm -f .libs 2>/dev/null 8998mkdir .libs 2>/dev/null 8999if test -d .libs; then 9000 lt_cv_objdir=.libs 9001else 9002 # MS-DOS does not allow filenames that begin with a dot. 9003 lt_cv_objdir=_libs 9004fi 9005rmdir .libs 2>/dev/null 9006fi 9007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 9008$as_echo "$lt_cv_objdir" >&6; } 9009objdir=$lt_cv_objdir 9010 9011 9012 9013 9014 9015cat >>confdefs.h <<_ACEOF 9016#define LT_OBJDIR "$lt_cv_objdir/" 9017_ACEOF 9018 9019 9020 9021 9022case $host_os in 9023aix3*) 9024 # AIX sometimes has problems with the GCC collect2 program. For some 9025 # reason, if we set the COLLECT_NAMES environment variable, the problems 9026 # vanish in a puff of smoke. 9027 if test set != "${COLLECT_NAMES+set}"; then 9028 COLLECT_NAMES= 9029 export COLLECT_NAMES 9030 fi 9031 ;; 9032esac 9033 9034# Global variables: 9035ofile=libtool 9036can_build_shared=yes 9037 9038# All known linkers require a '.a' archive for static linking (except MSVC, 9039# which needs '.lib'). 9040libext=a 9041 9042with_gnu_ld=$lt_cv_prog_gnu_ld 9043 9044old_CC=$CC 9045old_CFLAGS=$CFLAGS 9046 9047# Set sane defaults for various variables 9048test -z "$CC" && CC=cc 9049test -z "$LTCC" && LTCC=$CC 9050test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 9051test -z "$LD" && LD=ld 9052test -z "$ac_objext" && ac_objext=o 9053 9054func_cc_basename $compiler 9055cc_basename=$func_cc_basename_result 9056 9057 9058# Only perform the check for file, if the check method requires it 9059test -z "$MAGIC_CMD" && MAGIC_CMD=file 9060case $deplibs_check_method in 9061file_magic*) 9062 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 9063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 9064$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 9065if ${lt_cv_path_MAGIC_CMD+:} false; then : 9066 $as_echo_n "(cached) " >&6 9067else 9068 case $MAGIC_CMD in 9069[\\/*] | ?:[\\/]*) 9070 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 9071 ;; 9072*) 9073 lt_save_MAGIC_CMD=$MAGIC_CMD 9074 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 9075 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9076 for ac_dir in $ac_dummy; do 9077 IFS=$lt_save_ifs 9078 test -z "$ac_dir" && ac_dir=. 9079 if test -f "$ac_dir/${ac_tool_prefix}file"; then 9080 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 9081 if test -n "$file_magic_test_file"; then 9082 case $deplibs_check_method in 9083 "file_magic "*) 9084 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9085 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9086 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9087 $EGREP "$file_magic_regex" > /dev/null; then 9088 : 9089 else 9090 cat <<_LT_EOF 1>&2 9091 9092*** Warning: the command libtool uses to detect shared libraries, 9093*** $file_magic_cmd, produces output that libtool cannot recognize. 9094*** The result is that libtool may fail to recognize shared libraries 9095*** as such. This will affect the creation of libtool libraries that 9096*** depend on shared libraries, but programs linked with such libtool 9097*** libraries will work regardless of this problem. Nevertheless, you 9098*** may want to report the problem to your system manager and/or to 9099*** bug-libtool@gnu.org 9100 9101_LT_EOF 9102 fi ;; 9103 esac 9104 fi 9105 break 9106 fi 9107 done 9108 IFS=$lt_save_ifs 9109 MAGIC_CMD=$lt_save_MAGIC_CMD 9110 ;; 9111esac 9112fi 9113 9114MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9115if test -n "$MAGIC_CMD"; then 9116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9117$as_echo "$MAGIC_CMD" >&6; } 9118else 9119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9120$as_echo "no" >&6; } 9121fi 9122 9123 9124 9125 9126 9127if test -z "$lt_cv_path_MAGIC_CMD"; then 9128 if test -n "$ac_tool_prefix"; then 9129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 9130$as_echo_n "checking for file... " >&6; } 9131if ${lt_cv_path_MAGIC_CMD+:} false; then : 9132 $as_echo_n "(cached) " >&6 9133else 9134 case $MAGIC_CMD in 9135[\\/*] | ?:[\\/]*) 9136 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 9137 ;; 9138*) 9139 lt_save_MAGIC_CMD=$MAGIC_CMD 9140 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 9141 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9142 for ac_dir in $ac_dummy; do 9143 IFS=$lt_save_ifs 9144 test -z "$ac_dir" && ac_dir=. 9145 if test -f "$ac_dir/file"; then 9146 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 9147 if test -n "$file_magic_test_file"; then 9148 case $deplibs_check_method in 9149 "file_magic "*) 9150 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9151 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9152 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9153 $EGREP "$file_magic_regex" > /dev/null; then 9154 : 9155 else 9156 cat <<_LT_EOF 1>&2 9157 9158*** Warning: the command libtool uses to detect shared libraries, 9159*** $file_magic_cmd, produces output that libtool cannot recognize. 9160*** The result is that libtool may fail to recognize shared libraries 9161*** as such. This will affect the creation of libtool libraries that 9162*** depend on shared libraries, but programs linked with such libtool 9163*** libraries will work regardless of this problem. Nevertheless, you 9164*** may want to report the problem to your system manager and/or to 9165*** bug-libtool@gnu.org 9166 9167_LT_EOF 9168 fi ;; 9169 esac 9170 fi 9171 break 9172 fi 9173 done 9174 IFS=$lt_save_ifs 9175 MAGIC_CMD=$lt_save_MAGIC_CMD 9176 ;; 9177esac 9178fi 9179 9180MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9181if test -n "$MAGIC_CMD"; then 9182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9183$as_echo "$MAGIC_CMD" >&6; } 9184else 9185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9186$as_echo "no" >&6; } 9187fi 9188 9189 9190 else 9191 MAGIC_CMD=: 9192 fi 9193fi 9194 9195 fi 9196 ;; 9197esac 9198 9199# Use C for the default configuration in the libtool script 9200 9201lt_save_CC=$CC 9202ac_ext=c 9203ac_cpp='$CPP $CPPFLAGS' 9204ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9205ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9206ac_compiler_gnu=$ac_cv_c_compiler_gnu 9207 9208 9209# Source file extension for C test sources. 9210ac_ext=c 9211 9212# Object file extension for compiled C test sources. 9213objext=o 9214objext=$objext 9215 9216# Code to be used in simple compile tests 9217lt_simple_compile_test_code="int some_variable = 0;" 9218 9219# Code to be used in simple link tests 9220lt_simple_link_test_code='int main(){return(0);}' 9221 9222 9223 9224 9225 9226 9227 9228# If no C compiler was specified, use CC. 9229LTCC=${LTCC-"$CC"} 9230 9231# If no C compiler flags were specified, use CFLAGS. 9232LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 9233 9234# Allow CC to be a program name with arguments. 9235compiler=$CC 9236 9237# Save the default compiler, since it gets overwritten when the other 9238# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 9239compiler_DEFAULT=$CC 9240 9241# save warnings/boilerplate of simple test code 9242ac_outfile=conftest.$ac_objext 9243echo "$lt_simple_compile_test_code" >conftest.$ac_ext 9244eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9245_lt_compiler_boilerplate=`cat conftest.err` 9246$RM conftest* 9247 9248ac_outfile=conftest.$ac_objext 9249echo "$lt_simple_link_test_code" >conftest.$ac_ext 9250eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9251_lt_linker_boilerplate=`cat conftest.err` 9252$RM -r conftest* 9253 9254 9255## CAVEAT EMPTOR: 9256## There is no encapsulation within the following macros, do not change 9257## the running order or otherwise move them around unless you know exactly 9258## what you are doing... 9259if test -n "$compiler"; then 9260 9261lt_prog_compiler_no_builtin_flag= 9262 9263if test yes = "$GCC"; then 9264 case $cc_basename in 9265 nvcc*) 9266 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 9267 *) 9268 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 9269 esac 9270 9271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 9272$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 9273if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 9274 $as_echo_n "(cached) " >&6 9275else 9276 lt_cv_prog_compiler_rtti_exceptions=no 9277 ac_outfile=conftest.$ac_objext 9278 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9279 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 9280 # Insert the option either (1) after the last *FLAGS variable, or 9281 # (2) before a word containing "conftest.", or (3) at the end. 9282 # Note that $ac_compile itself does not contain backslashes and begins 9283 # with a dollar sign (not a hyphen), so the echo should work correctly. 9284 # The option is referenced via a variable to avoid confusing sed. 9285 lt_compile=`echo "$ac_compile" | $SED \ 9286 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9287 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9288 -e 's:$: $lt_compiler_flag:'` 9289 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9290 (eval "$lt_compile" 2>conftest.err) 9291 ac_status=$? 9292 cat conftest.err >&5 9293 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9294 if (exit $ac_status) && test -s "$ac_outfile"; then 9295 # The compiler can only warn and ignore the option if not recognized 9296 # So say no if there are warnings other than the usual output. 9297 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9298 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9299 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9300 lt_cv_prog_compiler_rtti_exceptions=yes 9301 fi 9302 fi 9303 $RM conftest* 9304 9305fi 9306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 9307$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 9308 9309if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 9310 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 9311else 9312 : 9313fi 9314 9315fi 9316 9317 9318 9319 9320 9321 9322 lt_prog_compiler_wl= 9323lt_prog_compiler_pic= 9324lt_prog_compiler_static= 9325 9326 9327 if test yes = "$GCC"; then 9328 lt_prog_compiler_wl='-Wl,' 9329 lt_prog_compiler_static='-static' 9330 9331 case $host_os in 9332 aix*) 9333 # All AIX code is PIC. 9334 if test ia64 = "$host_cpu"; then 9335 # AIX 5 now supports IA64 processor 9336 lt_prog_compiler_static='-Bstatic' 9337 fi 9338 lt_prog_compiler_pic='-fPIC' 9339 ;; 9340 9341 amigaos*) 9342 case $host_cpu in 9343 powerpc) 9344 # see comment about AmigaOS4 .so support 9345 lt_prog_compiler_pic='-fPIC' 9346 ;; 9347 m68k) 9348 # FIXME: we need at least 68020 code to build shared libraries, but 9349 # adding the '-m68020' flag to GCC prevents building anything better, 9350 # like '-m68040'. 9351 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 9352 ;; 9353 esac 9354 ;; 9355 9356 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 9357 # PIC is the default for these OSes. 9358 ;; 9359 9360 mingw* | cygwin* | pw32* | os2* | cegcc*) 9361 # This hack is so that the source file can tell whether it is being 9362 # built for inclusion in a dll (and should export symbols for example). 9363 # Although the cygwin gcc ignores -fPIC, still need this for old-style 9364 # (--disable-auto-import) libraries 9365 lt_prog_compiler_pic='-DDLL_EXPORT' 9366 case $host_os in 9367 os2*) 9368 lt_prog_compiler_static='$wl-static' 9369 ;; 9370 esac 9371 ;; 9372 9373 darwin* | rhapsody*) 9374 # PIC is the default on this platform 9375 # Common symbols not allowed in MH_DYLIB files 9376 lt_prog_compiler_pic='-fno-common' 9377 ;; 9378 9379 haiku*) 9380 # PIC is the default for Haiku. 9381 # The "-static" flag exists, but is broken. 9382 lt_prog_compiler_static= 9383 ;; 9384 9385 hpux*) 9386 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 9387 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 9388 # sets the default TLS model and affects inlining. 9389 case $host_cpu in 9390 hppa*64*) 9391 # +Z the default 9392 ;; 9393 *) 9394 lt_prog_compiler_pic='-fPIC' 9395 ;; 9396 esac 9397 ;; 9398 9399 interix[3-9]*) 9400 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 9401 # Instead, we relocate shared libraries at runtime. 9402 ;; 9403 9404 msdosdjgpp*) 9405 # Just because we use GCC doesn't mean we suddenly get shared libraries 9406 # on systems that don't support them. 9407 lt_prog_compiler_can_build_shared=no 9408 enable_shared=no 9409 ;; 9410 9411 *nto* | *qnx*) 9412 # QNX uses GNU C++, but need to define -shared option too, otherwise 9413 # it will coredump. 9414 lt_prog_compiler_pic='-fPIC -shared' 9415 ;; 9416 9417 sysv4*MP*) 9418 if test -d /usr/nec; then 9419 lt_prog_compiler_pic=-Kconform_pic 9420 fi 9421 ;; 9422 9423 *) 9424 lt_prog_compiler_pic='-fPIC' 9425 ;; 9426 esac 9427 9428 case $cc_basename in 9429 nvcc*) # Cuda Compiler Driver 2.2 9430 lt_prog_compiler_wl='-Xlinker ' 9431 if test -n "$lt_prog_compiler_pic"; then 9432 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 9433 fi 9434 ;; 9435 esac 9436 else 9437 # PORTME Check for flag to pass linker flags through the system compiler. 9438 case $host_os in 9439 aix*) 9440 lt_prog_compiler_wl='-Wl,' 9441 if test ia64 = "$host_cpu"; then 9442 # AIX 5 now supports IA64 processor 9443 lt_prog_compiler_static='-Bstatic' 9444 else 9445 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 9446 fi 9447 ;; 9448 9449 darwin* | rhapsody*) 9450 # PIC is the default on this platform 9451 # Common symbols not allowed in MH_DYLIB files 9452 lt_prog_compiler_pic='-fno-common' 9453 case $cc_basename in 9454 nagfor*) 9455 # NAG Fortran compiler 9456 lt_prog_compiler_wl='-Wl,-Wl,,' 9457 lt_prog_compiler_pic='-PIC' 9458 lt_prog_compiler_static='-Bstatic' 9459 ;; 9460 esac 9461 ;; 9462 9463 mingw* | cygwin* | pw32* | os2* | cegcc*) 9464 # This hack is so that the source file can tell whether it is being 9465 # built for inclusion in a dll (and should export symbols for example). 9466 lt_prog_compiler_pic='-DDLL_EXPORT' 9467 case $host_os in 9468 os2*) 9469 lt_prog_compiler_static='$wl-static' 9470 ;; 9471 esac 9472 ;; 9473 9474 hpux9* | hpux10* | hpux11*) 9475 lt_prog_compiler_wl='-Wl,' 9476 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 9477 # not for PA HP-UX. 9478 case $host_cpu in 9479 hppa*64*|ia64*) 9480 # +Z the default 9481 ;; 9482 *) 9483 lt_prog_compiler_pic='+Z' 9484 ;; 9485 esac 9486 # Is there a better lt_prog_compiler_static that works with the bundled CC? 9487 lt_prog_compiler_static='$wl-a ${wl}archive' 9488 ;; 9489 9490 irix5* | irix6* | nonstopux*) 9491 lt_prog_compiler_wl='-Wl,' 9492 # PIC (with -KPIC) is the default. 9493 lt_prog_compiler_static='-non_shared' 9494 ;; 9495 9496 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 9497 case $cc_basename in 9498 # old Intel for x86_64, which still supported -KPIC. 9499 ecc*) 9500 lt_prog_compiler_wl='-Wl,' 9501 lt_prog_compiler_pic='-KPIC' 9502 lt_prog_compiler_static='-static' 9503 ;; 9504 # icc used to be incompatible with GCC. 9505 # ICC 10 doesn't accept -KPIC any more. 9506 icc* | ifort*) 9507 lt_prog_compiler_wl='-Wl,' 9508 lt_prog_compiler_pic='-fPIC' 9509 lt_prog_compiler_static='-static' 9510 ;; 9511 # Lahey Fortran 8.1. 9512 lf95*) 9513 lt_prog_compiler_wl='-Wl,' 9514 lt_prog_compiler_pic='--shared' 9515 lt_prog_compiler_static='--static' 9516 ;; 9517 nagfor*) 9518 # NAG Fortran compiler 9519 lt_prog_compiler_wl='-Wl,-Wl,,' 9520 lt_prog_compiler_pic='-PIC' 9521 lt_prog_compiler_static='-Bstatic' 9522 ;; 9523 tcc*) 9524 # Fabrice Bellard et al's Tiny C Compiler 9525 lt_prog_compiler_wl='-Wl,' 9526 lt_prog_compiler_pic='-fPIC' 9527 lt_prog_compiler_static='-static' 9528 ;; 9529 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 9530 # Portland Group compilers (*not* the Pentium gcc compiler, 9531 # which looks to be a dead project) 9532 lt_prog_compiler_wl='-Wl,' 9533 lt_prog_compiler_pic='-fpic' 9534 lt_prog_compiler_static='-Bstatic' 9535 ;; 9536 ccc*) 9537 lt_prog_compiler_wl='-Wl,' 9538 # All Alpha code is PIC. 9539 lt_prog_compiler_static='-non_shared' 9540 ;; 9541 xl* | bgxl* | bgf* | mpixl*) 9542 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 9543 lt_prog_compiler_wl='-Wl,' 9544 lt_prog_compiler_pic='-qpic' 9545 lt_prog_compiler_static='-qstaticlink' 9546 ;; 9547 *) 9548 case `$CC -V 2>&1 | sed 5q` in 9549 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 9550 # Sun Fortran 8.3 passes all unrecognized flags to the linker 9551 lt_prog_compiler_pic='-KPIC' 9552 lt_prog_compiler_static='-Bstatic' 9553 lt_prog_compiler_wl='' 9554 ;; 9555 *Sun\ F* | *Sun*Fortran*) 9556 lt_prog_compiler_pic='-KPIC' 9557 lt_prog_compiler_static='-Bstatic' 9558 lt_prog_compiler_wl='-Qoption ld ' 9559 ;; 9560 *Sun\ C*) 9561 # Sun C 5.9 9562 lt_prog_compiler_pic='-KPIC' 9563 lt_prog_compiler_static='-Bstatic' 9564 lt_prog_compiler_wl='-Wl,' 9565 ;; 9566 *Intel*\ [CF]*Compiler*) 9567 lt_prog_compiler_wl='-Wl,' 9568 lt_prog_compiler_pic='-fPIC' 9569 lt_prog_compiler_static='-static' 9570 ;; 9571 *Portland\ Group*) 9572 lt_prog_compiler_wl='-Wl,' 9573 lt_prog_compiler_pic='-fpic' 9574 lt_prog_compiler_static='-Bstatic' 9575 ;; 9576 esac 9577 ;; 9578 esac 9579 ;; 9580 9581 newsos6) 9582 lt_prog_compiler_pic='-KPIC' 9583 lt_prog_compiler_static='-Bstatic' 9584 ;; 9585 9586 *nto* | *qnx*) 9587 # QNX uses GNU C++, but need to define -shared option too, otherwise 9588 # it will coredump. 9589 lt_prog_compiler_pic='-fPIC -shared' 9590 ;; 9591 9592 osf3* | osf4* | osf5*) 9593 lt_prog_compiler_wl='-Wl,' 9594 # All OSF/1 code is PIC. 9595 lt_prog_compiler_static='-non_shared' 9596 ;; 9597 9598 rdos*) 9599 lt_prog_compiler_static='-non_shared' 9600 ;; 9601 9602 solaris*) 9603 lt_prog_compiler_pic='-KPIC' 9604 lt_prog_compiler_static='-Bstatic' 9605 case $cc_basename in 9606 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 9607 lt_prog_compiler_wl='-Qoption ld ';; 9608 *) 9609 lt_prog_compiler_wl='-Wl,';; 9610 esac 9611 ;; 9612 9613 sunos4*) 9614 lt_prog_compiler_wl='-Qoption ld ' 9615 lt_prog_compiler_pic='-PIC' 9616 lt_prog_compiler_static='-Bstatic' 9617 ;; 9618 9619 sysv4 | sysv4.2uw2* | sysv4.3*) 9620 lt_prog_compiler_wl='-Wl,' 9621 lt_prog_compiler_pic='-KPIC' 9622 lt_prog_compiler_static='-Bstatic' 9623 ;; 9624 9625 sysv4*MP*) 9626 if test -d /usr/nec; then 9627 lt_prog_compiler_pic='-Kconform_pic' 9628 lt_prog_compiler_static='-Bstatic' 9629 fi 9630 ;; 9631 9632 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 9633 lt_prog_compiler_wl='-Wl,' 9634 lt_prog_compiler_pic='-KPIC' 9635 lt_prog_compiler_static='-Bstatic' 9636 ;; 9637 9638 unicos*) 9639 lt_prog_compiler_wl='-Wl,' 9640 lt_prog_compiler_can_build_shared=no 9641 ;; 9642 9643 uts4*) 9644 lt_prog_compiler_pic='-pic' 9645 lt_prog_compiler_static='-Bstatic' 9646 ;; 9647 9648 *) 9649 lt_prog_compiler_can_build_shared=no 9650 ;; 9651 esac 9652 fi 9653 9654case $host_os in 9655 # For platforms that do not support PIC, -DPIC is meaningless: 9656 *djgpp*) 9657 lt_prog_compiler_pic= 9658 ;; 9659 *) 9660 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 9661 ;; 9662esac 9663 9664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 9665$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 9666if ${lt_cv_prog_compiler_pic+:} false; then : 9667 $as_echo_n "(cached) " >&6 9668else 9669 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 9670fi 9671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 9672$as_echo "$lt_cv_prog_compiler_pic" >&6; } 9673lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 9674 9675# 9676# Check to make sure the PIC flag actually works. 9677# 9678if test -n "$lt_prog_compiler_pic"; then 9679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 9680$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 9681if ${lt_cv_prog_compiler_pic_works+:} false; then : 9682 $as_echo_n "(cached) " >&6 9683else 9684 lt_cv_prog_compiler_pic_works=no 9685 ac_outfile=conftest.$ac_objext 9686 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9687 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 9688 # Insert the option either (1) after the last *FLAGS variable, or 9689 # (2) before a word containing "conftest.", or (3) at the end. 9690 # Note that $ac_compile itself does not contain backslashes and begins 9691 # with a dollar sign (not a hyphen), so the echo should work correctly. 9692 # The option is referenced via a variable to avoid confusing sed. 9693 lt_compile=`echo "$ac_compile" | $SED \ 9694 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9695 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9696 -e 's:$: $lt_compiler_flag:'` 9697 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9698 (eval "$lt_compile" 2>conftest.err) 9699 ac_status=$? 9700 cat conftest.err >&5 9701 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9702 if (exit $ac_status) && test -s "$ac_outfile"; then 9703 # The compiler can only warn and ignore the option if not recognized 9704 # So say no if there are warnings other than the usual output. 9705 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9706 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9707 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9708 lt_cv_prog_compiler_pic_works=yes 9709 fi 9710 fi 9711 $RM conftest* 9712 9713fi 9714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 9715$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 9716 9717if test yes = "$lt_cv_prog_compiler_pic_works"; then 9718 case $lt_prog_compiler_pic in 9719 "" | " "*) ;; 9720 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 9721 esac 9722else 9723 lt_prog_compiler_pic= 9724 lt_prog_compiler_can_build_shared=no 9725fi 9726 9727fi 9728 9729 9730 9731 9732 9733 9734 9735 9736 9737 9738 9739# 9740# Check to make sure the static flag actually works. 9741# 9742wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 9743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 9744$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 9745if ${lt_cv_prog_compiler_static_works+:} false; then : 9746 $as_echo_n "(cached) " >&6 9747else 9748 lt_cv_prog_compiler_static_works=no 9749 save_LDFLAGS=$LDFLAGS 9750 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 9751 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9752 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9753 # The linker can only warn and ignore the option if not recognized 9754 # So say no if there are warnings 9755 if test -s conftest.err; then 9756 # Append any errors to the config.log. 9757 cat conftest.err 1>&5 9758 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9759 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9760 if diff conftest.exp conftest.er2 >/dev/null; then 9761 lt_cv_prog_compiler_static_works=yes 9762 fi 9763 else 9764 lt_cv_prog_compiler_static_works=yes 9765 fi 9766 fi 9767 $RM -r conftest* 9768 LDFLAGS=$save_LDFLAGS 9769 9770fi 9771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 9772$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 9773 9774if test yes = "$lt_cv_prog_compiler_static_works"; then 9775 : 9776else 9777 lt_prog_compiler_static= 9778fi 9779 9780 9781 9782 9783 9784 9785 9786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9787$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9788if ${lt_cv_prog_compiler_c_o+:} false; then : 9789 $as_echo_n "(cached) " >&6 9790else 9791 lt_cv_prog_compiler_c_o=no 9792 $RM -r conftest 2>/dev/null 9793 mkdir conftest 9794 cd conftest 9795 mkdir out 9796 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9797 9798 lt_compiler_flag="-o out/conftest2.$ac_objext" 9799 # Insert the option either (1) after the last *FLAGS variable, or 9800 # (2) before a word containing "conftest.", or (3) at the end. 9801 # Note that $ac_compile itself does not contain backslashes and begins 9802 # with a dollar sign (not a hyphen), so the echo should work correctly. 9803 lt_compile=`echo "$ac_compile" | $SED \ 9804 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9805 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9806 -e 's:$: $lt_compiler_flag:'` 9807 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9808 (eval "$lt_compile" 2>out/conftest.err) 9809 ac_status=$? 9810 cat out/conftest.err >&5 9811 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9812 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9813 then 9814 # The compiler can only warn and ignore the option if not recognized 9815 # So say no if there are warnings 9816 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9817 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9818 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9819 lt_cv_prog_compiler_c_o=yes 9820 fi 9821 fi 9822 chmod u+w . 2>&5 9823 $RM conftest* 9824 # SGI C++ compiler will create directory out/ii_files/ for 9825 # template instantiation 9826 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9827 $RM out/* && rmdir out 9828 cd .. 9829 $RM -r conftest 9830 $RM conftest* 9831 9832fi 9833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9834$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9835 9836 9837 9838 9839 9840 9841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9842$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9843if ${lt_cv_prog_compiler_c_o+:} false; then : 9844 $as_echo_n "(cached) " >&6 9845else 9846 lt_cv_prog_compiler_c_o=no 9847 $RM -r conftest 2>/dev/null 9848 mkdir conftest 9849 cd conftest 9850 mkdir out 9851 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9852 9853 lt_compiler_flag="-o out/conftest2.$ac_objext" 9854 # Insert the option either (1) after the last *FLAGS variable, or 9855 # (2) before a word containing "conftest.", or (3) at the end. 9856 # Note that $ac_compile itself does not contain backslashes and begins 9857 # with a dollar sign (not a hyphen), so the echo should work correctly. 9858 lt_compile=`echo "$ac_compile" | $SED \ 9859 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9860 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9861 -e 's:$: $lt_compiler_flag:'` 9862 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9863 (eval "$lt_compile" 2>out/conftest.err) 9864 ac_status=$? 9865 cat out/conftest.err >&5 9866 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9867 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9868 then 9869 # The compiler can only warn and ignore the option if not recognized 9870 # So say no if there are warnings 9871 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9872 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9873 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9874 lt_cv_prog_compiler_c_o=yes 9875 fi 9876 fi 9877 chmod u+w . 2>&5 9878 $RM conftest* 9879 # SGI C++ compiler will create directory out/ii_files/ for 9880 # template instantiation 9881 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9882 $RM out/* && rmdir out 9883 cd .. 9884 $RM -r conftest 9885 $RM conftest* 9886 9887fi 9888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9889$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9890 9891 9892 9893 9894hard_links=nottested 9895if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 9896 # do not overwrite the value of need_locks provided by the user 9897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9898$as_echo_n "checking if we can lock with hard links... " >&6; } 9899 hard_links=yes 9900 $RM conftest* 9901 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9902 touch conftest.a 9903 ln conftest.a conftest.b 2>&5 || hard_links=no 9904 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9906$as_echo "$hard_links" >&6; } 9907 if test no = "$hard_links"; then 9908 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 9909$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 9910 need_locks=warn 9911 fi 9912else 9913 need_locks=no 9914fi 9915 9916 9917 9918 9919 9920 9921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9922$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9923 9924 runpath_var= 9925 allow_undefined_flag= 9926 always_export_symbols=no 9927 archive_cmds= 9928 archive_expsym_cmds= 9929 compiler_needs_object=no 9930 enable_shared_with_static_runtimes=no 9931 export_dynamic_flag_spec= 9932 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9933 hardcode_automatic=no 9934 hardcode_direct=no 9935 hardcode_direct_absolute=no 9936 hardcode_libdir_flag_spec= 9937 hardcode_libdir_separator= 9938 hardcode_minus_L=no 9939 hardcode_shlibpath_var=unsupported 9940 inherit_rpath=no 9941 link_all_deplibs=unknown 9942 module_cmds= 9943 module_expsym_cmds= 9944 old_archive_from_new_cmds= 9945 old_archive_from_expsyms_cmds= 9946 thread_safe_flag_spec= 9947 whole_archive_flag_spec= 9948 # include_expsyms should be a list of space-separated symbols to be *always* 9949 # included in the symbol list 9950 include_expsyms= 9951 # exclude_expsyms can be an extended regexp of symbols to exclude 9952 # it will be wrapped by ' (' and ')$', so one must not match beginning or 9953 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 9954 # as well as any symbol that contains 'd'. 9955 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9956 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9957 # platforms (ab)use it in PIC code, but their linkers get confused if 9958 # the symbol is explicitly referenced. Since portable code cannot 9959 # rely on this symbol name, it's probably fine to never include it in 9960 # preloaded symbol tables. 9961 # Exclude shared library initialization/finalization symbols. 9962 extract_expsyms_cmds= 9963 9964 case $host_os in 9965 cygwin* | mingw* | pw32* | cegcc*) 9966 # FIXME: the MSVC++ port hasn't been tested in a loooong time 9967 # When not using gcc, we currently assume that we are using 9968 # Microsoft Visual C++. 9969 if test yes != "$GCC"; then 9970 with_gnu_ld=no 9971 fi 9972 ;; 9973 interix*) 9974 # we just hope/assume this is gcc and not c89 (= MSVC++) 9975 with_gnu_ld=yes 9976 ;; 9977 openbsd* | bitrig*) 9978 with_gnu_ld=no 9979 ;; 9980 esac 9981 9982 ld_shlibs=yes 9983 9984 # On some targets, GNU ld is compatible enough with the native linker 9985 # that we're better off using the native interface for both. 9986 lt_use_gnu_ld_interface=no 9987 if test yes = "$with_gnu_ld"; then 9988 case $host_os in 9989 aix*) 9990 # The AIX port of GNU ld has always aspired to compatibility 9991 # with the native linker. However, as the warning in the GNU ld 9992 # block says, versions before 2.19.5* couldn't really create working 9993 # shared libraries, regardless of the interface used. 9994 case `$LD -v 2>&1` in 9995 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9996 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9997 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9998 *) 9999 lt_use_gnu_ld_interface=yes 10000 ;; 10001 esac 10002 ;; 10003 *) 10004 lt_use_gnu_ld_interface=yes 10005 ;; 10006 esac 10007 fi 10008 10009 if test yes = "$lt_use_gnu_ld_interface"; then 10010 # If archive_cmds runs LD, not CC, wlarc should be empty 10011 wlarc='$wl' 10012 10013 # Set some defaults for GNU ld with shared library support. These 10014 # are reset later if shared libraries are not supported. Putting them 10015 # here allows them to be overridden if necessary. 10016 runpath_var=LD_RUN_PATH 10017 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10018 export_dynamic_flag_spec='$wl--export-dynamic' 10019 # ancient GNU ld didn't support --whole-archive et. al. 10020 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 10021 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 10022 else 10023 whole_archive_flag_spec= 10024 fi 10025 supports_anon_versioning=no 10026 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 10027 *GNU\ gold*) supports_anon_versioning=yes ;; 10028 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 10029 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 10030 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 10031 *\ 2.11.*) ;; # other 2.11 versions 10032 *) supports_anon_versioning=yes ;; 10033 esac 10034 10035 # See if GNU ld supports shared libraries. 10036 case $host_os in 10037 aix[3-9]*) 10038 # On AIX/PPC, the GNU linker is very broken 10039 if test ia64 != "$host_cpu"; then 10040 ld_shlibs=no 10041 cat <<_LT_EOF 1>&2 10042 10043*** Warning: the GNU linker, at least up to release 2.19, is reported 10044*** to be unable to reliably create shared libraries on AIX. 10045*** Therefore, libtool is disabling shared libraries support. If you 10046*** really care for shared libraries, you may want to install binutils 10047*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 10048*** You will then need to restart the configuration process. 10049 10050_LT_EOF 10051 fi 10052 ;; 10053 10054 amigaos*) 10055 case $host_cpu in 10056 powerpc) 10057 # see comment about AmigaOS4 .so support 10058 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10059 archive_expsym_cmds='' 10060 ;; 10061 m68k) 10062 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)' 10063 hardcode_libdir_flag_spec='-L$libdir' 10064 hardcode_minus_L=yes 10065 ;; 10066 esac 10067 ;; 10068 10069 beos*) 10070 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10071 allow_undefined_flag=unsupported 10072 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 10073 # support --undefined. This deserves some investigation. FIXME 10074 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10075 else 10076 ld_shlibs=no 10077 fi 10078 ;; 10079 10080 cygwin* | mingw* | pw32* | cegcc*) 10081 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 10082 # as there is no search path for DLLs. 10083 hardcode_libdir_flag_spec='-L$libdir' 10084 export_dynamic_flag_spec='$wl--export-all-symbols' 10085 allow_undefined_flag=unsupported 10086 always_export_symbols=no 10087 enable_shared_with_static_runtimes=yes 10088 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' 10089 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 10090 10091 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 10092 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10093 # If the export-symbols file already is a .def file, use it as 10094 # is; otherwise, prepend EXPORTS... 10095 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10096 cp $export_symbols $output_objdir/$soname.def; 10097 else 10098 echo EXPORTS > $output_objdir/$soname.def; 10099 cat $export_symbols >> $output_objdir/$soname.def; 10100 fi~ 10101 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10102 else 10103 ld_shlibs=no 10104 fi 10105 ;; 10106 10107 haiku*) 10108 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10109 link_all_deplibs=yes 10110 ;; 10111 10112 os2*) 10113 hardcode_libdir_flag_spec='-L$libdir' 10114 hardcode_minus_L=yes 10115 allow_undefined_flag=unsupported 10116 shrext_cmds=.dll 10117 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10118 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10119 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10120 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10121 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10122 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10123 emximp -o $lib $output_objdir/$libname.def' 10124 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10125 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10126 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10127 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10128 prefix_cmds="$SED"~ 10129 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10130 prefix_cmds="$prefix_cmds -e 1d"; 10131 fi~ 10132 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10133 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10134 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10135 emximp -o $lib $output_objdir/$libname.def' 10136 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10137 enable_shared_with_static_runtimes=yes 10138 ;; 10139 10140 interix[3-9]*) 10141 hardcode_direct=no 10142 hardcode_shlibpath_var=no 10143 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10144 export_dynamic_flag_spec='$wl-E' 10145 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 10146 # Instead, shared libraries are loaded at an image base (0x10000000 by 10147 # default) and relocated if they conflict, which is a slow very memory 10148 # consuming and fragmenting process. To avoid this, we pick a random, 10149 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 10150 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 10151 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 10152 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' 10153 ;; 10154 10155 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 10156 tmp_diet=no 10157 if test linux-dietlibc = "$host_os"; then 10158 case $cc_basename in 10159 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 10160 esac 10161 fi 10162 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 10163 && test no = "$tmp_diet" 10164 then 10165 tmp_addflag=' $pic_flag' 10166 tmp_sharedflag='-shared' 10167 case $cc_basename,$host_cpu in 10168 pgcc*) # Portland Group C compiler 10169 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' 10170 tmp_addflag=' $pic_flag' 10171 ;; 10172 pgf77* | pgf90* | pgf95* | pgfortran*) 10173 # Portland Group f77 and f90 compilers 10174 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' 10175 tmp_addflag=' $pic_flag -Mnomain' ;; 10176 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 10177 tmp_addflag=' -i_dynamic' ;; 10178 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 10179 tmp_addflag=' -i_dynamic -nofor_main' ;; 10180 ifc* | ifort*) # Intel Fortran compiler 10181 tmp_addflag=' -nofor_main' ;; 10182 lf95*) # Lahey Fortran 8.1 10183 whole_archive_flag_spec= 10184 tmp_sharedflag='--shared' ;; 10185 nagfor*) # NAGFOR 5.3 10186 tmp_sharedflag='-Wl,-shared' ;; 10187 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 10188 tmp_sharedflag='-qmkshrobj' 10189 tmp_addflag= ;; 10190 nvcc*) # Cuda Compiler Driver 2.2 10191 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' 10192 compiler_needs_object=yes 10193 ;; 10194 esac 10195 case `$CC -V 2>&1 | sed 5q` in 10196 *Sun\ C*) # Sun C 5.9 10197 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' 10198 compiler_needs_object=yes 10199 tmp_sharedflag='-G' ;; 10200 *Sun\ F*) # Sun Fortran 8.3 10201 tmp_sharedflag='-G' ;; 10202 esac 10203 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10204 10205 if test yes = "$supports_anon_versioning"; then 10206 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10207 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10208 echo "local: *; };" >> $output_objdir/$libname.ver~ 10209 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 10210 fi 10211 10212 case $cc_basename in 10213 tcc*) 10214 export_dynamic_flag_spec='-rdynamic' 10215 ;; 10216 xlf* | bgf* | bgxlf* | mpixlf*) 10217 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 10218 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 10219 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10220 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 10221 if test yes = "$supports_anon_versioning"; then 10222 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10223 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10224 echo "local: *; };" >> $output_objdir/$libname.ver~ 10225 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 10226 fi 10227 ;; 10228 esac 10229 else 10230 ld_shlibs=no 10231 fi 10232 ;; 10233 10234 netbsd*) 10235 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10236 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 10237 wlarc= 10238 else 10239 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10240 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10241 fi 10242 ;; 10243 10244 solaris*) 10245 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 10246 ld_shlibs=no 10247 cat <<_LT_EOF 1>&2 10248 10249*** Warning: The releases 2.8.* of the GNU linker cannot reliably 10250*** create shared libraries on Solaris systems. Therefore, libtool 10251*** is disabling shared libraries support. We urge you to upgrade GNU 10252*** binutils to release 2.9.1 or newer. Another option is to modify 10253*** your PATH or compiler configuration so that the native linker is 10254*** used, and then restart. 10255 10256_LT_EOF 10257 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10258 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10259 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10260 else 10261 ld_shlibs=no 10262 fi 10263 ;; 10264 10265 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 10266 case `$LD -v 2>&1` in 10267 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 10268 ld_shlibs=no 10269 cat <<_LT_EOF 1>&2 10270 10271*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 10272*** reliably create shared libraries on SCO systems. Therefore, libtool 10273*** is disabling shared libraries support. We urge you to upgrade GNU 10274*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 10275*** your PATH or compiler configuration so that the native linker is 10276*** used, and then restart. 10277 10278_LT_EOF 10279 ;; 10280 *) 10281 # For security reasons, it is highly recommended that you always 10282 # use absolute paths for naming shared libraries, and exclude the 10283 # DT_RUNPATH tag from executables and libraries. But doing so 10284 # requires that you compile everything twice, which is a pain. 10285 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10286 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10287 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10288 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10289 else 10290 ld_shlibs=no 10291 fi 10292 ;; 10293 esac 10294 ;; 10295 10296 sunos4*) 10297 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10298 wlarc= 10299 hardcode_direct=yes 10300 hardcode_shlibpath_var=no 10301 ;; 10302 10303 *) 10304 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10305 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10306 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10307 else 10308 ld_shlibs=no 10309 fi 10310 ;; 10311 esac 10312 10313 if test no = "$ld_shlibs"; then 10314 runpath_var= 10315 hardcode_libdir_flag_spec= 10316 export_dynamic_flag_spec= 10317 whole_archive_flag_spec= 10318 fi 10319 else 10320 # PORTME fill in a description of your system's linker (not GNU ld) 10321 case $host_os in 10322 aix3*) 10323 allow_undefined_flag=unsupported 10324 always_export_symbols=yes 10325 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' 10326 # Note: this linker hardcodes the directories in LIBPATH if there 10327 # are no directories specified by -L. 10328 hardcode_minus_L=yes 10329 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 10330 # Neither direct hardcoding nor static linking is supported with a 10331 # broken collect2. 10332 hardcode_direct=unsupported 10333 fi 10334 ;; 10335 10336 aix[4-9]*) 10337 if test ia64 = "$host_cpu"; then 10338 # On IA64, the linker does run time linking by default, so we don't 10339 # have to do anything special. 10340 aix_use_runtimelinking=no 10341 exp_sym_flag='-Bexport' 10342 no_entry_flag= 10343 else 10344 # If we're using GNU nm, then we don't want the "-C" option. 10345 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 10346 # Without the "-l" option, or with the "-B" option, AIX nm treats 10347 # weak defined symbols like other global defined symbols, whereas 10348 # GNU nm marks them as "W". 10349 # While the 'weak' keyword is ignored in the Export File, we need 10350 # it in the Import File for the 'aix-soname' feature, so we have 10351 # to replace the "-B" option with "-P" for AIX nm. 10352 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 10353 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' 10354 else 10355 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' 10356 fi 10357 aix_use_runtimelinking=no 10358 10359 # Test if we are trying to use run time linking or normal 10360 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10361 # have runtime linking enabled, and use it for executables. 10362 # For shared libraries, we enable/disable runtime linking 10363 # depending on the kind of the shared library created - 10364 # when "with_aix_soname,aix_use_runtimelinking" is: 10365 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 10366 # "aix,yes" lib.so shared, rtl:yes, for executables 10367 # lib.a static archive 10368 # "both,no" lib.so.V(shr.o) shared, rtl:yes 10369 # lib.a(lib.so.V) shared, rtl:no, for executables 10370 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 10371 # lib.a(lib.so.V) shared, rtl:no 10372 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 10373 # lib.a static archive 10374 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 10375 for ld_flag in $LDFLAGS; do 10376 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 10377 aix_use_runtimelinking=yes 10378 break 10379 fi 10380 done 10381 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 10382 # With aix-soname=svr4, we create the lib.so.V shared archives only, 10383 # so we don't have lib.a shared libs to link our executables. 10384 # We have to force runtime linking in this case. 10385 aix_use_runtimelinking=yes 10386 LDFLAGS="$LDFLAGS -Wl,-brtl" 10387 fi 10388 ;; 10389 esac 10390 10391 exp_sym_flag='-bexport' 10392 no_entry_flag='-bnoentry' 10393 fi 10394 10395 # When large executables or shared objects are built, AIX ld can 10396 # have problems creating the table of contents. If linking a library 10397 # or program results in "error TOC overflow" add -mminimal-toc to 10398 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10399 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10400 10401 archive_cmds='' 10402 hardcode_direct=yes 10403 hardcode_direct_absolute=yes 10404 hardcode_libdir_separator=':' 10405 link_all_deplibs=yes 10406 file_list_spec='$wl-f,' 10407 case $with_aix_soname,$aix_use_runtimelinking in 10408 aix,*) ;; # traditional, no import file 10409 svr4,* | *,yes) # use import file 10410 # The Import File defines what to hardcode. 10411 hardcode_direct=no 10412 hardcode_direct_absolute=no 10413 ;; 10414 esac 10415 10416 if test yes = "$GCC"; then 10417 case $host_os in aix4.[012]|aix4.[012].*) 10418 # We only want to do this on AIX 4.2 and lower, the check 10419 # below for broken collect2 doesn't work under 4.3+ 10420 collect2name=`$CC -print-prog-name=collect2` 10421 if test -f "$collect2name" && 10422 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 10423 then 10424 # We have reworked collect2 10425 : 10426 else 10427 # We have old collect2 10428 hardcode_direct=unsupported 10429 # It fails to find uninstalled libraries when the uninstalled 10430 # path is not listed in the libpath. Setting hardcode_minus_L 10431 # to unsupported forces relinking 10432 hardcode_minus_L=yes 10433 hardcode_libdir_flag_spec='-L$libdir' 10434 hardcode_libdir_separator= 10435 fi 10436 ;; 10437 esac 10438 shared_flag='-shared' 10439 if test yes = "$aix_use_runtimelinking"; then 10440 shared_flag="$shared_flag "'$wl-G' 10441 fi 10442 # Need to ensure runtime linking is disabled for the traditional 10443 # shared library, or the linker may eventually find shared libraries 10444 # /with/ Import File - we do not want to mix them. 10445 shared_flag_aix='-shared' 10446 shared_flag_svr4='-shared $wl-G' 10447 else 10448 # not using gcc 10449 if test ia64 = "$host_cpu"; then 10450 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10451 # chokes on -Wl,-G. The following line is correct: 10452 shared_flag='-G' 10453 else 10454 if test yes = "$aix_use_runtimelinking"; then 10455 shared_flag='$wl-G' 10456 else 10457 shared_flag='$wl-bM:SRE' 10458 fi 10459 shared_flag_aix='$wl-bM:SRE' 10460 shared_flag_svr4='$wl-G' 10461 fi 10462 fi 10463 10464 export_dynamic_flag_spec='$wl-bexpall' 10465 # It seems that -bexpall does not export symbols beginning with 10466 # underscore (_), so it is better to generate a list of symbols to export. 10467 always_export_symbols=yes 10468 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 10469 # Warning - without using the other runtime loading flags (-brtl), 10470 # -berok will link without error, but may produce a broken library. 10471 allow_undefined_flag='-berok' 10472 # Determine the default libpath from the value encoded in an 10473 # empty executable. 10474 if test set = "${lt_cv_aix_libpath+set}"; then 10475 aix_libpath=$lt_cv_aix_libpath 10476else 10477 if ${lt_cv_aix_libpath_+:} false; then : 10478 $as_echo_n "(cached) " >&6 10479else 10480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10481/* end confdefs.h. */ 10482 10483int 10484main () 10485{ 10486 10487 ; 10488 return 0; 10489} 10490_ACEOF 10491if ac_fn_c_try_link "$LINENO"; then : 10492 10493 lt_aix_libpath_sed=' 10494 /Import File Strings/,/^$/ { 10495 /^0/ { 10496 s/^0 *\([^ ]*\) *$/\1/ 10497 p 10498 } 10499 }' 10500 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10501 # Check for a 64-bit object if we didn't find anything. 10502 if test -z "$lt_cv_aix_libpath_"; then 10503 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10504 fi 10505fi 10506rm -f core conftest.err conftest.$ac_objext \ 10507 conftest$ac_exeext conftest.$ac_ext 10508 if test -z "$lt_cv_aix_libpath_"; then 10509 lt_cv_aix_libpath_=/usr/lib:/lib 10510 fi 10511 10512fi 10513 10514 aix_libpath=$lt_cv_aix_libpath_ 10515fi 10516 10517 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10518 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 10519 else 10520 if test ia64 = "$host_cpu"; then 10521 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 10522 allow_undefined_flag="-z nodefs" 10523 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" 10524 else 10525 # Determine the default libpath from the value encoded in an 10526 # empty executable. 10527 if test set = "${lt_cv_aix_libpath+set}"; then 10528 aix_libpath=$lt_cv_aix_libpath 10529else 10530 if ${lt_cv_aix_libpath_+:} false; then : 10531 $as_echo_n "(cached) " >&6 10532else 10533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10534/* end confdefs.h. */ 10535 10536int 10537main () 10538{ 10539 10540 ; 10541 return 0; 10542} 10543_ACEOF 10544if ac_fn_c_try_link "$LINENO"; then : 10545 10546 lt_aix_libpath_sed=' 10547 /Import File Strings/,/^$/ { 10548 /^0/ { 10549 s/^0 *\([^ ]*\) *$/\1/ 10550 p 10551 } 10552 }' 10553 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10554 # Check for a 64-bit object if we didn't find anything. 10555 if test -z "$lt_cv_aix_libpath_"; then 10556 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10557 fi 10558fi 10559rm -f core conftest.err conftest.$ac_objext \ 10560 conftest$ac_exeext conftest.$ac_ext 10561 if test -z "$lt_cv_aix_libpath_"; then 10562 lt_cv_aix_libpath_=/usr/lib:/lib 10563 fi 10564 10565fi 10566 10567 aix_libpath=$lt_cv_aix_libpath_ 10568fi 10569 10570 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10571 # Warning - without using the other run time loading flags, 10572 # -berok will link without error, but may produce a broken library. 10573 no_undefined_flag=' $wl-bernotok' 10574 allow_undefined_flag=' $wl-berok' 10575 if test yes = "$with_gnu_ld"; then 10576 # We only use this code for GNU lds that support --whole-archive. 10577 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 10578 else 10579 # Exported symbols can be pulled into shared objects from archives 10580 whole_archive_flag_spec='$convenience' 10581 fi 10582 archive_cmds_need_lc=yes 10583 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 10584 # -brtl affects multiple linker settings, -berok does not and is overridden later 10585 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 10586 if test svr4 != "$with_aix_soname"; then 10587 # This is similar to how AIX traditionally builds its shared libraries. 10588 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' 10589 fi 10590 if test aix != "$with_aix_soname"; then 10591 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' 10592 else 10593 # used by -dlpreopen to get the symbols 10594 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 10595 fi 10596 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 10597 fi 10598 fi 10599 ;; 10600 10601 amigaos*) 10602 case $host_cpu in 10603 powerpc) 10604 # see comment about AmigaOS4 .so support 10605 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10606 archive_expsym_cmds='' 10607 ;; 10608 m68k) 10609 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)' 10610 hardcode_libdir_flag_spec='-L$libdir' 10611 hardcode_minus_L=yes 10612 ;; 10613 esac 10614 ;; 10615 10616 bsdi[45]*) 10617 export_dynamic_flag_spec=-rdynamic 10618 ;; 10619 10620 cygwin* | mingw* | pw32* | cegcc*) 10621 # When not using gcc, we currently assume that we are using 10622 # Microsoft Visual C++. 10623 # hardcode_libdir_flag_spec is actually meaningless, as there is 10624 # no search path for DLLs. 10625 case $cc_basename in 10626 cl*) 10627 # Native MSVC 10628 hardcode_libdir_flag_spec=' ' 10629 allow_undefined_flag=unsupported 10630 always_export_symbols=yes 10631 file_list_spec='@' 10632 # Tell ltmain to make .lib files, not .a files. 10633 libext=lib 10634 # Tell ltmain to make .dll files, not .so files. 10635 shrext_cmds=.dll 10636 # FIXME: Setting linknames here is a bad hack. 10637 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 10638 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10639 cp "$export_symbols" "$output_objdir/$soname.def"; 10640 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 10641 else 10642 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 10643 fi~ 10644 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 10645 linknames=' 10646 # The linker will not automatically build a static lib if we build a DLL. 10647 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 10648 enable_shared_with_static_runtimes=yes 10649 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 10650 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 10651 # Don't use ranlib 10652 old_postinstall_cmds='chmod 644 $oldlib' 10653 postlink_cmds='lt_outputfile="@OUTPUT@"~ 10654 lt_tool_outputfile="@TOOL_OUTPUT@"~ 10655 case $lt_outputfile in 10656 *.exe|*.EXE) ;; 10657 *) 10658 lt_outputfile=$lt_outputfile.exe 10659 lt_tool_outputfile=$lt_tool_outputfile.exe 10660 ;; 10661 esac~ 10662 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 10663 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 10664 $RM "$lt_outputfile.manifest"; 10665 fi' 10666 ;; 10667 *) 10668 # Assume MSVC wrapper 10669 hardcode_libdir_flag_spec=' ' 10670 allow_undefined_flag=unsupported 10671 # Tell ltmain to make .lib files, not .a files. 10672 libext=lib 10673 # Tell ltmain to make .dll files, not .so files. 10674 shrext_cmds=.dll 10675 # FIXME: Setting linknames here is a bad hack. 10676 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 10677 # The linker will automatically build a .lib file if we build a DLL. 10678 old_archive_from_new_cmds='true' 10679 # FIXME: Should let the user specify the lib program. 10680 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 10681 enable_shared_with_static_runtimes=yes 10682 ;; 10683 esac 10684 ;; 10685 10686 darwin* | rhapsody*) 10687 10688 10689 archive_cmds_need_lc=no 10690 hardcode_direct=no 10691 hardcode_automatic=yes 10692 hardcode_shlibpath_var=unsupported 10693 if test yes = "$lt_cv_ld_force_load"; then 10694 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\"`' 10695 10696 else 10697 whole_archive_flag_spec='' 10698 fi 10699 link_all_deplibs=yes 10700 allow_undefined_flag=$_lt_dar_allow_undefined 10701 case $cc_basename in 10702 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 10703 *) _lt_dar_can_shared=$GCC ;; 10704 esac 10705 if test yes = "$_lt_dar_can_shared"; then 10706 output_verbose_link_cmd=func_echo_all 10707 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 10708 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 10709 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" 10710 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" 10711 10712 else 10713 ld_shlibs=no 10714 fi 10715 10716 ;; 10717 10718 dgux*) 10719 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10720 hardcode_libdir_flag_spec='-L$libdir' 10721 hardcode_shlibpath_var=no 10722 ;; 10723 10724 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 10725 # support. Future versions do this automatically, but an explicit c++rt0.o 10726 # does not break anything, and helps significantly (at the cost of a little 10727 # extra space). 10728 freebsd2.2*) 10729 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 10730 hardcode_libdir_flag_spec='-R$libdir' 10731 hardcode_direct=yes 10732 hardcode_shlibpath_var=no 10733 ;; 10734 10735 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 10736 freebsd2.*) 10737 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10738 hardcode_direct=yes 10739 hardcode_minus_L=yes 10740 hardcode_shlibpath_var=no 10741 ;; 10742 10743 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 10744 freebsd* | dragonfly*) 10745 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10746 hardcode_libdir_flag_spec='-R$libdir' 10747 hardcode_direct=yes 10748 hardcode_shlibpath_var=no 10749 ;; 10750 10751 hpux9*) 10752 if test yes = "$GCC"; then 10753 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' 10754 else 10755 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' 10756 fi 10757 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10758 hardcode_libdir_separator=: 10759 hardcode_direct=yes 10760 10761 # hardcode_minus_L: Not really in the search PATH, 10762 # but as the default location of the library. 10763 hardcode_minus_L=yes 10764 export_dynamic_flag_spec='$wl-E' 10765 ;; 10766 10767 hpux10*) 10768 if test yes,no = "$GCC,$with_gnu_ld"; then 10769 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10770 else 10771 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10772 fi 10773 if test no = "$with_gnu_ld"; then 10774 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10775 hardcode_libdir_separator=: 10776 hardcode_direct=yes 10777 hardcode_direct_absolute=yes 10778 export_dynamic_flag_spec='$wl-E' 10779 # hardcode_minus_L: Not really in the search PATH, 10780 # but as the default location of the library. 10781 hardcode_minus_L=yes 10782 fi 10783 ;; 10784 10785 hpux11*) 10786 if test yes,no = "$GCC,$with_gnu_ld"; then 10787 case $host_cpu in 10788 hppa*64*) 10789 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10790 ;; 10791 ia64*) 10792 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10793 ;; 10794 *) 10795 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10796 ;; 10797 esac 10798 else 10799 case $host_cpu in 10800 hppa*64*) 10801 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10802 ;; 10803 ia64*) 10804 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10805 ;; 10806 *) 10807 10808 # Older versions of the 11.00 compiler do not understand -b yet 10809 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 10810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 10811$as_echo_n "checking if $CC understands -b... " >&6; } 10812if ${lt_cv_prog_compiler__b+:} false; then : 10813 $as_echo_n "(cached) " >&6 10814else 10815 lt_cv_prog_compiler__b=no 10816 save_LDFLAGS=$LDFLAGS 10817 LDFLAGS="$LDFLAGS -b" 10818 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10819 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10820 # The linker can only warn and ignore the option if not recognized 10821 # So say no if there are warnings 10822 if test -s conftest.err; then 10823 # Append any errors to the config.log. 10824 cat conftest.err 1>&5 10825 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10826 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10827 if diff conftest.exp conftest.er2 >/dev/null; then 10828 lt_cv_prog_compiler__b=yes 10829 fi 10830 else 10831 lt_cv_prog_compiler__b=yes 10832 fi 10833 fi 10834 $RM -r conftest* 10835 LDFLAGS=$save_LDFLAGS 10836 10837fi 10838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 10839$as_echo "$lt_cv_prog_compiler__b" >&6; } 10840 10841if test yes = "$lt_cv_prog_compiler__b"; then 10842 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10843else 10844 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10845fi 10846 10847 ;; 10848 esac 10849 fi 10850 if test no = "$with_gnu_ld"; then 10851 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10852 hardcode_libdir_separator=: 10853 10854 case $host_cpu in 10855 hppa*64*|ia64*) 10856 hardcode_direct=no 10857 hardcode_shlibpath_var=no 10858 ;; 10859 *) 10860 hardcode_direct=yes 10861 hardcode_direct_absolute=yes 10862 export_dynamic_flag_spec='$wl-E' 10863 10864 # hardcode_minus_L: Not really in the search PATH, 10865 # but as the default location of the library. 10866 hardcode_minus_L=yes 10867 ;; 10868 esac 10869 fi 10870 ;; 10871 10872 irix5* | irix6* | nonstopux*) 10873 if test yes = "$GCC"; then 10874 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' 10875 # Try to use the -exported_symbol ld option, if it does not 10876 # work, assume that -exports_file does not work either and 10877 # implicitly export all symbols. 10878 # This should be the same for all languages, so no per-tag cache variable. 10879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 10880$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 10881if ${lt_cv_irix_exported_symbol+:} false; then : 10882 $as_echo_n "(cached) " >&6 10883else 10884 save_LDFLAGS=$LDFLAGS 10885 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 10886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10887/* end confdefs.h. */ 10888int foo (void) { return 0; } 10889_ACEOF 10890if ac_fn_c_try_link "$LINENO"; then : 10891 lt_cv_irix_exported_symbol=yes 10892else 10893 lt_cv_irix_exported_symbol=no 10894fi 10895rm -f core conftest.err conftest.$ac_objext \ 10896 conftest$ac_exeext conftest.$ac_ext 10897 LDFLAGS=$save_LDFLAGS 10898fi 10899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 10900$as_echo "$lt_cv_irix_exported_symbol" >&6; } 10901 if test yes = "$lt_cv_irix_exported_symbol"; then 10902 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' 10903 fi 10904 else 10905 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' 10906 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' 10907 fi 10908 archive_cmds_need_lc='no' 10909 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10910 hardcode_libdir_separator=: 10911 inherit_rpath=yes 10912 link_all_deplibs=yes 10913 ;; 10914 10915 linux*) 10916 case $cc_basename in 10917 tcc*) 10918 # Fabrice Bellard et al's Tiny C Compiler 10919 ld_shlibs=yes 10920 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10921 ;; 10922 esac 10923 ;; 10924 10925 netbsd*) 10926 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10927 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10928 else 10929 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10930 fi 10931 hardcode_libdir_flag_spec='-R$libdir' 10932 hardcode_direct=yes 10933 hardcode_shlibpath_var=no 10934 ;; 10935 10936 newsos6) 10937 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10938 hardcode_direct=yes 10939 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10940 hardcode_libdir_separator=: 10941 hardcode_shlibpath_var=no 10942 ;; 10943 10944 *nto* | *qnx*) 10945 ;; 10946 10947 openbsd* | bitrig*) 10948 if test -f /usr/libexec/ld.so; then 10949 hardcode_direct=yes 10950 hardcode_shlibpath_var=no 10951 hardcode_direct_absolute=yes 10952 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 10953 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10954 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 10955 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10956 export_dynamic_flag_spec='$wl-E' 10957 else 10958 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10959 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10960 fi 10961 else 10962 ld_shlibs=no 10963 fi 10964 ;; 10965 10966 os2*) 10967 hardcode_libdir_flag_spec='-L$libdir' 10968 hardcode_minus_L=yes 10969 allow_undefined_flag=unsupported 10970 shrext_cmds=.dll 10971 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10972 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10973 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10974 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10975 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10976 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10977 emximp -o $lib $output_objdir/$libname.def' 10978 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10979 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10980 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10981 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10982 prefix_cmds="$SED"~ 10983 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10984 prefix_cmds="$prefix_cmds -e 1d"; 10985 fi~ 10986 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10987 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10988 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10989 emximp -o $lib $output_objdir/$libname.def' 10990 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10991 enable_shared_with_static_runtimes=yes 10992 ;; 10993 10994 osf3*) 10995 if test yes = "$GCC"; then 10996 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10997 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' 10998 else 10999 allow_undefined_flag=' -expect_unresolved \*' 11000 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' 11001 fi 11002 archive_cmds_need_lc='no' 11003 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11004 hardcode_libdir_separator=: 11005 ;; 11006 11007 osf4* | osf5*) # as osf3* with the addition of -msym flag 11008 if test yes = "$GCC"; then 11009 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 11010 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' 11011 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11012 else 11013 allow_undefined_flag=' -expect_unresolved \*' 11014 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' 11015 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~ 11016 $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' 11017 11018 # Both c and cxx compiler support -rpath directly 11019 hardcode_libdir_flag_spec='-rpath $libdir' 11020 fi 11021 archive_cmds_need_lc='no' 11022 hardcode_libdir_separator=: 11023 ;; 11024 11025 solaris*) 11026 no_undefined_flag=' -z defs' 11027 if test yes = "$GCC"; then 11028 wlarc='$wl' 11029 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 11030 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11031 $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' 11032 else 11033 case `$CC -V 2>&1` in 11034 *"Compilers 5.0"*) 11035 wlarc='' 11036 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 11037 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11038 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 11039 ;; 11040 *) 11041 wlarc='$wl' 11042 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 11043 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11044 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 11045 ;; 11046 esac 11047 fi 11048 hardcode_libdir_flag_spec='-R$libdir' 11049 hardcode_shlibpath_var=no 11050 case $host_os in 11051 solaris2.[0-5] | solaris2.[0-5].*) ;; 11052 *) 11053 # The compiler driver will combine and reorder linker options, 11054 # but understands '-z linker_flag'. GCC discards it without '$wl', 11055 # but is careful enough not to reorder. 11056 # Supported since Solaris 2.6 (maybe 2.5.1?) 11057 if test yes = "$GCC"; then 11058 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 11059 else 11060 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 11061 fi 11062 ;; 11063 esac 11064 link_all_deplibs=yes 11065 ;; 11066 11067 sunos4*) 11068 if test sequent = "$host_vendor"; then 11069 # Use $CC to link under sequent, because it throws in some extra .o 11070 # files that make .init and .fini sections work. 11071 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 11072 else 11073 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 11074 fi 11075 hardcode_libdir_flag_spec='-L$libdir' 11076 hardcode_direct=yes 11077 hardcode_minus_L=yes 11078 hardcode_shlibpath_var=no 11079 ;; 11080 11081 sysv4) 11082 case $host_vendor in 11083 sni) 11084 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11085 hardcode_direct=yes # is this really true??? 11086 ;; 11087 siemens) 11088 ## LD is ld it makes a PLAMLIB 11089 ## CC just makes a GrossModule. 11090 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 11091 reload_cmds='$CC -r -o $output$reload_objs' 11092 hardcode_direct=no 11093 ;; 11094 motorola) 11095 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11096 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 11097 ;; 11098 esac 11099 runpath_var='LD_RUN_PATH' 11100 hardcode_shlibpath_var=no 11101 ;; 11102 11103 sysv4.3*) 11104 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11105 hardcode_shlibpath_var=no 11106 export_dynamic_flag_spec='-Bexport' 11107 ;; 11108 11109 sysv4*MP*) 11110 if test -d /usr/nec; then 11111 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11112 hardcode_shlibpath_var=no 11113 runpath_var=LD_RUN_PATH 11114 hardcode_runpath_var=yes 11115 ld_shlibs=yes 11116 fi 11117 ;; 11118 11119 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 11120 no_undefined_flag='$wl-z,text' 11121 archive_cmds_need_lc=no 11122 hardcode_shlibpath_var=no 11123 runpath_var='LD_RUN_PATH' 11124 11125 if test yes = "$GCC"; then 11126 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11127 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11128 else 11129 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11130 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11131 fi 11132 ;; 11133 11134 sysv5* | sco3.2v5* | sco5v6*) 11135 # Note: We CANNOT use -z defs as we might desire, because we do not 11136 # link with -lc, and that would cause any symbols used from libc to 11137 # always be unresolved, which means just about no library would 11138 # ever link correctly. If we're not using GNU ld we use -z text 11139 # though, which does catch some bad symbols but isn't as heavy-handed 11140 # as -z defs. 11141 no_undefined_flag='$wl-z,text' 11142 allow_undefined_flag='$wl-z,nodefs' 11143 archive_cmds_need_lc=no 11144 hardcode_shlibpath_var=no 11145 hardcode_libdir_flag_spec='$wl-R,$libdir' 11146 hardcode_libdir_separator=':' 11147 link_all_deplibs=yes 11148 export_dynamic_flag_spec='$wl-Bexport' 11149 runpath_var='LD_RUN_PATH' 11150 11151 if test yes = "$GCC"; then 11152 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11153 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11154 else 11155 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11156 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11157 fi 11158 ;; 11159 11160 uts4*) 11161 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11162 hardcode_libdir_flag_spec='-L$libdir' 11163 hardcode_shlibpath_var=no 11164 ;; 11165 11166 *) 11167 ld_shlibs=no 11168 ;; 11169 esac 11170 11171 if test sni = "$host_vendor"; then 11172 case $host in 11173 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 11174 export_dynamic_flag_spec='$wl-Blargedynsym' 11175 ;; 11176 esac 11177 fi 11178 fi 11179 11180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 11181$as_echo "$ld_shlibs" >&6; } 11182test no = "$ld_shlibs" && can_build_shared=no 11183 11184with_gnu_ld=$with_gnu_ld 11185 11186 11187 11188 11189 11190 11191 11192 11193 11194 11195 11196 11197 11198 11199 11200# 11201# Do we need to explicitly link libc? 11202# 11203case "x$archive_cmds_need_lc" in 11204x|xyes) 11205 # Assume -lc should be added 11206 archive_cmds_need_lc=yes 11207 11208 if test yes,yes = "$GCC,$enable_shared"; then 11209 case $archive_cmds in 11210 *'~'*) 11211 # FIXME: we may have to deal with multi-command sequences. 11212 ;; 11213 '$CC '*) 11214 # Test whether the compiler implicitly links with -lc since on some 11215 # systems, -lgcc has to come before -lc. If gcc already passes -lc 11216 # to ld, don't add -lc before -lgcc. 11217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 11218$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 11219if ${lt_cv_archive_cmds_need_lc+:} false; then : 11220 $as_echo_n "(cached) " >&6 11221else 11222 $RM conftest* 11223 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11224 11225 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 11226 (eval $ac_compile) 2>&5 11227 ac_status=$? 11228 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11229 test $ac_status = 0; } 2>conftest.err; then 11230 soname=conftest 11231 lib=conftest 11232 libobjs=conftest.$ac_objext 11233 deplibs= 11234 wl=$lt_prog_compiler_wl 11235 pic_flag=$lt_prog_compiler_pic 11236 compiler_flags=-v 11237 linker_flags=-v 11238 verstring= 11239 output_objdir=. 11240 libname=conftest 11241 lt_save_allow_undefined_flag=$allow_undefined_flag 11242 allow_undefined_flag= 11243 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 11244 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 11245 ac_status=$? 11246 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11247 test $ac_status = 0; } 11248 then 11249 lt_cv_archive_cmds_need_lc=no 11250 else 11251 lt_cv_archive_cmds_need_lc=yes 11252 fi 11253 allow_undefined_flag=$lt_save_allow_undefined_flag 11254 else 11255 cat conftest.err 1>&5 11256 fi 11257 $RM conftest* 11258 11259fi 11260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 11261$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 11262 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 11263 ;; 11264 esac 11265 fi 11266 ;; 11267esac 11268 11269 11270 11271 11272 11273 11274 11275 11276 11277 11278 11279 11280 11281 11282 11283 11284 11285 11286 11287 11288 11289 11290 11291 11292 11293 11294 11295 11296 11297 11298 11299 11300 11301 11302 11303 11304 11305 11306 11307 11308 11309 11310 11311 11312 11313 11314 11315 11316 11317 11318 11319 11320 11321 11322 11323 11324 11325 11326 11327 11328 11329 11330 11331 11332 11333 11334 11335 11336 11337 11338 11339 11340 11341 11342 11343 11344 11345 11346 11347 11348 11349 11350 11351 11352 11353 11354 11355 11356 11357 11358 11359 11360 11361 11362 11363 11364 11365 11366 11367 11368 11369 11370 11371 11372 11373 11374 11375 11376 11377 11378 11379 11380 11381 11382 11383 11384 11385 11386 11387 11388 11389 11390 11391 11392 11393 11394 11395 11396 11397 11398 11399 11400 11401 11402 11403 11404 11405 11406 11407 11408 11409 11410 11411 11412 11413 11414 11415 11416 11417 11418 11419 11420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 11421$as_echo_n "checking dynamic linker characteristics... " >&6; } 11422 11423if test yes = "$GCC"; then 11424 case $host_os in 11425 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 11426 *) lt_awk_arg='/^libraries:/' ;; 11427 esac 11428 case $host_os in 11429 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 11430 *) lt_sed_strip_eq='s|=/|/|g' ;; 11431 esac 11432 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 11433 case $lt_search_path_spec in 11434 *\;*) 11435 # if the path contains ";" then we assume it to be the separator 11436 # otherwise default to the standard path separator (i.e. ":") - it is 11437 # assumed that no part of a normal pathname contains ";" but that should 11438 # okay in the real world where ";" in dirpaths is itself problematic. 11439 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 11440 ;; 11441 *) 11442 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 11443 ;; 11444 esac 11445 # Ok, now we have the path, separated by spaces, we can step through it 11446 # and add multilib dir if necessary... 11447 lt_tmp_lt_search_path_spec= 11448 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 11449 # ...but if some path component already ends with the multilib dir we assume 11450 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 11451 case "$lt_multi_os_dir; $lt_search_path_spec " in 11452 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 11453 lt_multi_os_dir= 11454 ;; 11455 esac 11456 for lt_sys_path in $lt_search_path_spec; do 11457 if test -d "$lt_sys_path$lt_multi_os_dir"; then 11458 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 11459 elif test -n "$lt_multi_os_dir"; then 11460 test -d "$lt_sys_path" && \ 11461 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 11462 fi 11463 done 11464 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 11465BEGIN {RS = " "; FS = "/|\n";} { 11466 lt_foo = ""; 11467 lt_count = 0; 11468 for (lt_i = NF; lt_i > 0; lt_i--) { 11469 if ($lt_i != "" && $lt_i != ".") { 11470 if ($lt_i == "..") { 11471 lt_count++; 11472 } else { 11473 if (lt_count == 0) { 11474 lt_foo = "/" $lt_i lt_foo; 11475 } else { 11476 lt_count--; 11477 } 11478 } 11479 } 11480 } 11481 if (lt_foo != "") { lt_freq[lt_foo]++; } 11482 if (lt_freq[lt_foo] == 1) { print lt_foo; } 11483}'` 11484 # AWK program above erroneously prepends '/' to C:/dos/paths 11485 # for these hosts. 11486 case $host_os in 11487 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 11488 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 11489 esac 11490 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 11491else 11492 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11493fi 11494library_names_spec= 11495libname_spec='lib$name' 11496soname_spec= 11497shrext_cmds=.so 11498postinstall_cmds= 11499postuninstall_cmds= 11500finish_cmds= 11501finish_eval= 11502shlibpath_var= 11503shlibpath_overrides_runpath=unknown 11504version_type=none 11505dynamic_linker="$host_os ld.so" 11506sys_lib_dlsearch_path_spec="/lib /usr/lib" 11507need_lib_prefix=unknown 11508hardcode_into_libs=no 11509 11510# when you set need_version to no, make sure it does not cause -set_version 11511# flags to be left without arguments 11512need_version=unknown 11513 11514 11515 11516case $host_os in 11517aix3*) 11518 version_type=linux # correct to gnu/linux during the next big refactor 11519 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 11520 shlibpath_var=LIBPATH 11521 11522 # AIX 3 has no versioning support, so we append a major version to the name. 11523 soname_spec='$libname$release$shared_ext$major' 11524 ;; 11525 11526aix[4-9]*) 11527 version_type=linux # correct to gnu/linux during the next big refactor 11528 need_lib_prefix=no 11529 need_version=no 11530 hardcode_into_libs=yes 11531 if test ia64 = "$host_cpu"; then 11532 # AIX 5 supports IA64 11533 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 11534 shlibpath_var=LD_LIBRARY_PATH 11535 else 11536 # With GCC up to 2.95.x, collect2 would create an import file 11537 # for dependence libraries. The import file would start with 11538 # the line '#! .'. This would cause the generated library to 11539 # depend on '.', always an invalid library. This was fixed in 11540 # development snapshots of GCC prior to 3.0. 11541 case $host_os in 11542 aix4 | aix4.[01] | aix4.[01].*) 11543 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11544 echo ' yes ' 11545 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 11546 : 11547 else 11548 can_build_shared=no 11549 fi 11550 ;; 11551 esac 11552 # Using Import Files as archive members, it is possible to support 11553 # filename-based versioning of shared library archives on AIX. While 11554 # this would work for both with and without runtime linking, it will 11555 # prevent static linking of such archives. So we do filename-based 11556 # shared library versioning with .so extension only, which is used 11557 # when both runtime linking and shared linking is enabled. 11558 # Unfortunately, runtime linking may impact performance, so we do 11559 # not want this to be the default eventually. Also, we use the 11560 # versioned .so libs for executables only if there is the -brtl 11561 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 11562 # To allow for filename-based versioning support, we need to create 11563 # libNAME.so.V as an archive file, containing: 11564 # *) an Import File, referring to the versioned filename of the 11565 # archive as well as the shared archive member, telling the 11566 # bitwidth (32 or 64) of that shared object, and providing the 11567 # list of exported symbols of that shared object, eventually 11568 # decorated with the 'weak' keyword 11569 # *) the shared object with the F_LOADONLY flag set, to really avoid 11570 # it being seen by the linker. 11571 # At run time we better use the real file rather than another symlink, 11572 # but for link time we create the symlink libNAME.so -> libNAME.so.V 11573 11574 case $with_aix_soname,$aix_use_runtimelinking in 11575 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 11576 # soname into executable. Probably we can add versioning support to 11577 # collect2, so additional links can be useful in future. 11578 aix,yes) # traditional libtool 11579 dynamic_linker='AIX unversionable lib.so' 11580 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 11581 # instead of lib<name>.a to let people know that these are not 11582 # typical AIX shared libraries. 11583 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11584 ;; 11585 aix,no) # traditional AIX only 11586 dynamic_linker='AIX lib.a(lib.so.V)' 11587 # We preserve .a as extension for shared libraries through AIX4.2 11588 # and later when we are not doing run time linking. 11589 library_names_spec='$libname$release.a $libname.a' 11590 soname_spec='$libname$release$shared_ext$major' 11591 ;; 11592 svr4,*) # full svr4 only 11593 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 11594 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11595 # We do not specify a path in Import Files, so LIBPATH fires. 11596 shlibpath_overrides_runpath=yes 11597 ;; 11598 *,yes) # both, prefer svr4 11599 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 11600 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11601 # unpreferred sharedlib libNAME.a needs extra handling 11602 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"' 11603 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"' 11604 # We do not specify a path in Import Files, so LIBPATH fires. 11605 shlibpath_overrides_runpath=yes 11606 ;; 11607 *,no) # both, prefer aix 11608 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 11609 library_names_spec='$libname$release.a $libname.a' 11610 soname_spec='$libname$release$shared_ext$major' 11611 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 11612 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)' 11613 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"' 11614 ;; 11615 esac 11616 shlibpath_var=LIBPATH 11617 fi 11618 ;; 11619 11620amigaos*) 11621 case $host_cpu in 11622 powerpc) 11623 # Since July 2007 AmigaOS4 officially supports .so libraries. 11624 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 11625 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11626 ;; 11627 m68k) 11628 library_names_spec='$libname.ixlibrary $libname.a' 11629 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11630 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' 11631 ;; 11632 esac 11633 ;; 11634 11635beos*) 11636 library_names_spec='$libname$shared_ext' 11637 dynamic_linker="$host_os ld.so" 11638 shlibpath_var=LIBRARY_PATH 11639 ;; 11640 11641bsdi[45]*) 11642 version_type=linux # correct to gnu/linux during the next big refactor 11643 need_version=no 11644 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11645 soname_spec='$libname$release$shared_ext$major' 11646 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11647 shlibpath_var=LD_LIBRARY_PATH 11648 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11649 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11650 # the default ld.so.conf also contains /usr/contrib/lib and 11651 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11652 # libtool to hard-code these into programs 11653 ;; 11654 11655cygwin* | mingw* | pw32* | cegcc*) 11656 version_type=windows 11657 shrext_cmds=.dll 11658 need_version=no 11659 need_lib_prefix=no 11660 11661 case $GCC,$cc_basename in 11662 yes,*) 11663 # gcc 11664 library_names_spec='$libname.dll.a' 11665 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11666 postinstall_cmds='base_file=`basename \$file`~ 11667 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11668 dldir=$destdir/`dirname \$dlpath`~ 11669 test -d \$dldir || mkdir -p \$dldir~ 11670 $install_prog $dir/$dlname \$dldir/$dlname~ 11671 chmod a+x \$dldir/$dlname~ 11672 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11673 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11674 fi' 11675 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11676 dlpath=$dir/\$dldll~ 11677 $RM \$dlpath' 11678 shlibpath_overrides_runpath=yes 11679 11680 case $host_os in 11681 cygwin*) 11682 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11683 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11684 11685 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 11686 ;; 11687 mingw* | cegcc*) 11688 # MinGW DLLs use traditional 'lib' prefix 11689 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11690 ;; 11691 pw32*) 11692 # pw32 DLLs use 'pw' prefix rather than 'lib' 11693 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11694 ;; 11695 esac 11696 dynamic_linker='Win32 ld.exe' 11697 ;; 11698 11699 *,cl*) 11700 # Native MSVC 11701 libname_spec='$name' 11702 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11703 library_names_spec='$libname.dll.lib' 11704 11705 case $build_os in 11706 mingw*) 11707 sys_lib_search_path_spec= 11708 lt_save_ifs=$IFS 11709 IFS=';' 11710 for lt_path in $LIB 11711 do 11712 IFS=$lt_save_ifs 11713 # Let DOS variable expansion print the short 8.3 style file name. 11714 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 11715 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 11716 done 11717 IFS=$lt_save_ifs 11718 # Convert to MSYS style. 11719 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 11720 ;; 11721 cygwin*) 11722 # Convert to unix form, then to dos form, then back to unix form 11723 # but this time dos style (no spaces!) so that the unix form looks 11724 # like /cygdrive/c/PROGRA~1:/cygdr... 11725 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 11726 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 11727 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11728 ;; 11729 *) 11730 sys_lib_search_path_spec=$LIB 11731 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 11732 # It is most probably a Windows format PATH. 11733 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11734 else 11735 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11736 fi 11737 # FIXME: find the short name or the path components, as spaces are 11738 # common. (e.g. "Program Files" -> "PROGRA~1") 11739 ;; 11740 esac 11741 11742 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11743 postinstall_cmds='base_file=`basename \$file`~ 11744 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11745 dldir=$destdir/`dirname \$dlpath`~ 11746 test -d \$dldir || mkdir -p \$dldir~ 11747 $install_prog $dir/$dlname \$dldir/$dlname' 11748 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11749 dlpath=$dir/\$dldll~ 11750 $RM \$dlpath' 11751 shlibpath_overrides_runpath=yes 11752 dynamic_linker='Win32 link.exe' 11753 ;; 11754 11755 *) 11756 # Assume MSVC wrapper 11757 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 11758 dynamic_linker='Win32 ld.exe' 11759 ;; 11760 esac 11761 # FIXME: first we should search . and the directory the executable is in 11762 shlibpath_var=PATH 11763 ;; 11764 11765darwin* | rhapsody*) 11766 dynamic_linker="$host_os dyld" 11767 version_type=darwin 11768 need_lib_prefix=no 11769 need_version=no 11770 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 11771 soname_spec='$libname$release$major$shared_ext' 11772 shlibpath_overrides_runpath=yes 11773 shlibpath_var=DYLD_LIBRARY_PATH 11774 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 11775 11776 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 11777 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11778 ;; 11779 11780dgux*) 11781 version_type=linux # correct to gnu/linux during the next big refactor 11782 need_lib_prefix=no 11783 need_version=no 11784 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11785 soname_spec='$libname$release$shared_ext$major' 11786 shlibpath_var=LD_LIBRARY_PATH 11787 ;; 11788 11789freebsd* | dragonfly*) 11790 # DragonFly does not have aout. When/if they implement a new 11791 # versioning mechanism, adjust this. 11792 if test -x /usr/bin/objformat; then 11793 objformat=`/usr/bin/objformat` 11794 else 11795 case $host_os in 11796 freebsd[23].*) objformat=aout ;; 11797 *) objformat=elf ;; 11798 esac 11799 fi 11800 version_type=freebsd-$objformat 11801 case $version_type in 11802 freebsd-elf*) 11803 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11804 soname_spec='$libname$release$shared_ext$major' 11805 need_version=no 11806 need_lib_prefix=no 11807 ;; 11808 freebsd-*) 11809 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11810 need_version=yes 11811 ;; 11812 esac 11813 shlibpath_var=LD_LIBRARY_PATH 11814 case $host_os in 11815 freebsd2.*) 11816 shlibpath_overrides_runpath=yes 11817 ;; 11818 freebsd3.[01]* | freebsdelf3.[01]*) 11819 shlibpath_overrides_runpath=yes 11820 hardcode_into_libs=yes 11821 ;; 11822 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 11823 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 11824 shlibpath_overrides_runpath=no 11825 hardcode_into_libs=yes 11826 ;; 11827 *) # from 4.6 on, and DragonFly 11828 shlibpath_overrides_runpath=yes 11829 hardcode_into_libs=yes 11830 ;; 11831 esac 11832 ;; 11833 11834haiku*) 11835 version_type=linux # correct to gnu/linux during the next big refactor 11836 need_lib_prefix=no 11837 need_version=no 11838 dynamic_linker="$host_os runtime_loader" 11839 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11840 soname_spec='$libname$release$shared_ext$major' 11841 shlibpath_var=LIBRARY_PATH 11842 shlibpath_overrides_runpath=no 11843 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 11844 hardcode_into_libs=yes 11845 ;; 11846 11847hpux9* | hpux10* | hpux11*) 11848 # Give a soname corresponding to the major version so that dld.sl refuses to 11849 # link against other versions. 11850 version_type=sunos 11851 need_lib_prefix=no 11852 need_version=no 11853 case $host_cpu in 11854 ia64*) 11855 shrext_cmds='.so' 11856 hardcode_into_libs=yes 11857 dynamic_linker="$host_os dld.so" 11858 shlibpath_var=LD_LIBRARY_PATH 11859 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11860 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11861 soname_spec='$libname$release$shared_ext$major' 11862 if test 32 = "$HPUX_IA64_MODE"; then 11863 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11864 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 11865 else 11866 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11867 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 11868 fi 11869 ;; 11870 hppa*64*) 11871 shrext_cmds='.sl' 11872 hardcode_into_libs=yes 11873 dynamic_linker="$host_os dld.sl" 11874 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11875 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11876 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11877 soname_spec='$libname$release$shared_ext$major' 11878 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11879 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11880 ;; 11881 *) 11882 shrext_cmds='.sl' 11883 dynamic_linker="$host_os dld.sl" 11884 shlibpath_var=SHLIB_PATH 11885 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11886 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11887 soname_spec='$libname$release$shared_ext$major' 11888 ;; 11889 esac 11890 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 11891 postinstall_cmds='chmod 555 $lib' 11892 # or fails outright, so override atomically: 11893 install_override_mode=555 11894 ;; 11895 11896interix[3-9]*) 11897 version_type=linux # correct to gnu/linux during the next big refactor 11898 need_lib_prefix=no 11899 need_version=no 11900 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11901 soname_spec='$libname$release$shared_ext$major' 11902 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 11903 shlibpath_var=LD_LIBRARY_PATH 11904 shlibpath_overrides_runpath=no 11905 hardcode_into_libs=yes 11906 ;; 11907 11908irix5* | irix6* | nonstopux*) 11909 case $host_os in 11910 nonstopux*) version_type=nonstopux ;; 11911 *) 11912 if test yes = "$lt_cv_prog_gnu_ld"; then 11913 version_type=linux # correct to gnu/linux during the next big refactor 11914 else 11915 version_type=irix 11916 fi ;; 11917 esac 11918 need_lib_prefix=no 11919 need_version=no 11920 soname_spec='$libname$release$shared_ext$major' 11921 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 11922 case $host_os in 11923 irix5* | nonstopux*) 11924 libsuff= shlibsuff= 11925 ;; 11926 *) 11927 case $LD in # libtool.m4 will add one of these switches to LD 11928 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11929 libsuff= shlibsuff= libmagic=32-bit;; 11930 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11931 libsuff=32 shlibsuff=N32 libmagic=N32;; 11932 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11933 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11934 *) libsuff= shlibsuff= libmagic=never-match;; 11935 esac 11936 ;; 11937 esac 11938 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11939 shlibpath_overrides_runpath=no 11940 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 11941 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 11942 hardcode_into_libs=yes 11943 ;; 11944 11945# No shared lib support for Linux oldld, aout, or coff. 11946linux*oldld* | linux*aout* | linux*coff*) 11947 dynamic_linker=no 11948 ;; 11949 11950linux*android*) 11951 version_type=none # Android doesn't support versioned libraries. 11952 need_lib_prefix=no 11953 need_version=no 11954 library_names_spec='$libname$release$shared_ext' 11955 soname_spec='$libname$release$shared_ext' 11956 finish_cmds= 11957 shlibpath_var=LD_LIBRARY_PATH 11958 shlibpath_overrides_runpath=yes 11959 11960 # This implies no fast_install, which is unacceptable. 11961 # Some rework will be needed to allow for fast_install 11962 # before this can be enabled. 11963 hardcode_into_libs=yes 11964 11965 dynamic_linker='Android linker' 11966 # Don't embed -rpath directories since the linker doesn't support them. 11967 hardcode_libdir_flag_spec='-L$libdir' 11968 ;; 11969 11970# This must be glibc/ELF. 11971linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 11972 version_type=linux # correct to gnu/linux during the next big refactor 11973 need_lib_prefix=no 11974 need_version=no 11975 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11976 soname_spec='$libname$release$shared_ext$major' 11977 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11978 shlibpath_var=LD_LIBRARY_PATH 11979 shlibpath_overrides_runpath=no 11980 11981 # Some binutils ld are patched to set DT_RUNPATH 11982 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 11983 $as_echo_n "(cached) " >&6 11984else 11985 lt_cv_shlibpath_overrides_runpath=no 11986 save_LDFLAGS=$LDFLAGS 11987 save_libdir=$libdir 11988 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 11989 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 11990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11991/* end confdefs.h. */ 11992 11993int 11994main () 11995{ 11996 11997 ; 11998 return 0; 11999} 12000_ACEOF 12001if ac_fn_c_try_link "$LINENO"; then : 12002 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 12003 lt_cv_shlibpath_overrides_runpath=yes 12004fi 12005fi 12006rm -f core conftest.err conftest.$ac_objext \ 12007 conftest$ac_exeext conftest.$ac_ext 12008 LDFLAGS=$save_LDFLAGS 12009 libdir=$save_libdir 12010 12011fi 12012 12013 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 12014 12015 # This implies no fast_install, which is unacceptable. 12016 # Some rework will be needed to allow for fast_install 12017 # before this can be enabled. 12018 hardcode_into_libs=yes 12019 12020 # Ideally, we could use ldconfig to report *all* directores which are 12021 # searched for libraries, however this is still not possible. Aside from not 12022 # being certain /sbin/ldconfig is available, command 12023 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 12024 # even though it is searched at run-time. Try to do the best guess by 12025 # appending ld.so.conf contents (and includes) to the search path. 12026 if test -f /etc/ld.so.conf; then 12027 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' ' '` 12028 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 12029 fi 12030 12031 # We used to test for /lib/ld.so.1 and disable shared libraries on 12032 # powerpc, because MkLinux only supported shared libraries with the 12033 # GNU dynamic linker. Since this was broken with cross compilers, 12034 # most powerpc-linux boxes support dynamic linking these days and 12035 # people can always --disable-shared, the test was removed, and we 12036 # assume the GNU/Linux dynamic linker is in use. 12037 dynamic_linker='GNU/Linux ld.so' 12038 ;; 12039 12040netbsd*) 12041 version_type=sunos 12042 need_lib_prefix=no 12043 need_version=no 12044 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 12045 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12046 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12047 dynamic_linker='NetBSD (a.out) ld.so' 12048 else 12049 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12050 soname_spec='$libname$release$shared_ext$major' 12051 dynamic_linker='NetBSD ld.elf_so' 12052 fi 12053 shlibpath_var=LD_LIBRARY_PATH 12054 shlibpath_overrides_runpath=yes 12055 hardcode_into_libs=yes 12056 ;; 12057 12058newsos6) 12059 version_type=linux # correct to gnu/linux during the next big refactor 12060 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12061 shlibpath_var=LD_LIBRARY_PATH 12062 shlibpath_overrides_runpath=yes 12063 ;; 12064 12065*nto* | *qnx*) 12066 version_type=qnx 12067 need_lib_prefix=no 12068 need_version=no 12069 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12070 soname_spec='$libname$release$shared_ext$major' 12071 shlibpath_var=LD_LIBRARY_PATH 12072 shlibpath_overrides_runpath=no 12073 hardcode_into_libs=yes 12074 dynamic_linker='ldqnx.so' 12075 ;; 12076 12077openbsd* | bitrig*) 12078 version_type=sunos 12079 sys_lib_dlsearch_path_spec=/usr/lib 12080 need_lib_prefix=no 12081 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 12082 need_version=no 12083 else 12084 need_version=yes 12085 fi 12086 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12087 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12088 shlibpath_var=LD_LIBRARY_PATH 12089 shlibpath_overrides_runpath=yes 12090 ;; 12091 12092os2*) 12093 libname_spec='$name' 12094 version_type=windows 12095 shrext_cmds=.dll 12096 need_version=no 12097 need_lib_prefix=no 12098 # OS/2 can only load a DLL with a base name of 8 characters or less. 12099 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 12100 v=$($ECHO $release$versuffix | tr -d .-); 12101 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 12102 $ECHO $n$v`$shared_ext' 12103 library_names_spec='${libname}_dll.$libext' 12104 dynamic_linker='OS/2 ld.exe' 12105 shlibpath_var=BEGINLIBPATH 12106 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 12107 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12108 postinstall_cmds='base_file=`basename \$file`~ 12109 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 12110 dldir=$destdir/`dirname \$dlpath`~ 12111 test -d \$dldir || mkdir -p \$dldir~ 12112 $install_prog $dir/$dlname \$dldir/$dlname~ 12113 chmod a+x \$dldir/$dlname~ 12114 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 12115 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 12116 fi' 12117 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 12118 dlpath=$dir/\$dldll~ 12119 $RM \$dlpath' 12120 ;; 12121 12122osf3* | osf4* | osf5*) 12123 version_type=osf 12124 need_lib_prefix=no 12125 need_version=no 12126 soname_spec='$libname$release$shared_ext$major' 12127 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12128 shlibpath_var=LD_LIBRARY_PATH 12129 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 12130 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12131 ;; 12132 12133rdos*) 12134 dynamic_linker=no 12135 ;; 12136 12137solaris*) 12138 version_type=linux # correct to gnu/linux during the next big refactor 12139 need_lib_prefix=no 12140 need_version=no 12141 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12142 soname_spec='$libname$release$shared_ext$major' 12143 shlibpath_var=LD_LIBRARY_PATH 12144 shlibpath_overrides_runpath=yes 12145 hardcode_into_libs=yes 12146 # ldd complains unless libraries are executable 12147 postinstall_cmds='chmod +x $lib' 12148 ;; 12149 12150sunos4*) 12151 version_type=sunos 12152 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12153 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 12154 shlibpath_var=LD_LIBRARY_PATH 12155 shlibpath_overrides_runpath=yes 12156 if test yes = "$with_gnu_ld"; then 12157 need_lib_prefix=no 12158 fi 12159 need_version=yes 12160 ;; 12161 12162sysv4 | sysv4.3*) 12163 version_type=linux # correct to gnu/linux during the next big refactor 12164 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12165 soname_spec='$libname$release$shared_ext$major' 12166 shlibpath_var=LD_LIBRARY_PATH 12167 case $host_vendor in 12168 sni) 12169 shlibpath_overrides_runpath=no 12170 need_lib_prefix=no 12171 runpath_var=LD_RUN_PATH 12172 ;; 12173 siemens) 12174 need_lib_prefix=no 12175 ;; 12176 motorola) 12177 need_lib_prefix=no 12178 need_version=no 12179 shlibpath_overrides_runpath=no 12180 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 12181 ;; 12182 esac 12183 ;; 12184 12185sysv4*MP*) 12186 if test -d /usr/nec; then 12187 version_type=linux # correct to gnu/linux during the next big refactor 12188 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 12189 soname_spec='$libname$shared_ext.$major' 12190 shlibpath_var=LD_LIBRARY_PATH 12191 fi 12192 ;; 12193 12194sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 12195 version_type=sco 12196 need_lib_prefix=no 12197 need_version=no 12198 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 12199 soname_spec='$libname$release$shared_ext$major' 12200 shlibpath_var=LD_LIBRARY_PATH 12201 shlibpath_overrides_runpath=yes 12202 hardcode_into_libs=yes 12203 if test yes = "$with_gnu_ld"; then 12204 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 12205 else 12206 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 12207 case $host_os in 12208 sco3.2v5*) 12209 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 12210 ;; 12211 esac 12212 fi 12213 sys_lib_dlsearch_path_spec='/usr/lib' 12214 ;; 12215 12216tpf*) 12217 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 12218 version_type=linux # correct to gnu/linux during the next big refactor 12219 need_lib_prefix=no 12220 need_version=no 12221 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12222 shlibpath_var=LD_LIBRARY_PATH 12223 shlibpath_overrides_runpath=no 12224 hardcode_into_libs=yes 12225 ;; 12226 12227uts4*) 12228 version_type=linux # correct to gnu/linux during the next big refactor 12229 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12230 soname_spec='$libname$release$shared_ext$major' 12231 shlibpath_var=LD_LIBRARY_PATH 12232 ;; 12233 12234*) 12235 dynamic_linker=no 12236 ;; 12237esac 12238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 12239$as_echo "$dynamic_linker" >&6; } 12240test no = "$dynamic_linker" && can_build_shared=no 12241 12242variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 12243if test yes = "$GCC"; then 12244 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 12245fi 12246 12247if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 12248 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 12249fi 12250 12251if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 12252 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 12253fi 12254 12255# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 12256configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 12257 12258# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 12259func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 12260 12261# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 12262configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 12263 12264 12265 12266 12267 12268 12269 12270 12271 12272 12273 12274 12275 12276 12277 12278 12279 12280 12281 12282 12283 12284 12285 12286 12287 12288 12289 12290 12291 12292 12293 12294 12295 12296 12297 12298 12299 12300 12301 12302 12303 12304 12305 12306 12307 12308 12309 12310 12311 12312 12313 12314 12315 12316 12317 12318 12319 12320 12321 12322 12323 12324 12325 12326 12327 12328 12329 12330 12331 12332 12333 12334 12335 12336 12337 12338 12339 12340 12341 12342 12343 12344 12345 12346 12347 12348 12349 12350 12351 12352 12353 12354 12355 12356 12357 12358 12359 12360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 12361$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 12362hardcode_action= 12363if test -n "$hardcode_libdir_flag_spec" || 12364 test -n "$runpath_var" || 12365 test yes = "$hardcode_automatic"; then 12366 12367 # We can hardcode non-existent directories. 12368 if test no != "$hardcode_direct" && 12369 # If the only mechanism to avoid hardcoding is shlibpath_var, we 12370 # have to relink, otherwise we might link with an installed library 12371 # when we should be linking with a yet-to-be-installed one 12372 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 12373 test no != "$hardcode_minus_L"; then 12374 # Linking always hardcodes the temporary library directory. 12375 hardcode_action=relink 12376 else 12377 # We can link without hardcoding, and we can hardcode nonexisting dirs. 12378 hardcode_action=immediate 12379 fi 12380else 12381 # We cannot hardcode anything, or else we can only hardcode existing 12382 # directories. 12383 hardcode_action=unsupported 12384fi 12385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 12386$as_echo "$hardcode_action" >&6; } 12387 12388if test relink = "$hardcode_action" || 12389 test yes = "$inherit_rpath"; then 12390 # Fast installation is not supported 12391 enable_fast_install=no 12392elif test yes = "$shlibpath_overrides_runpath" || 12393 test no = "$enable_shared"; then 12394 # Fast installation is not necessary 12395 enable_fast_install=needless 12396fi 12397 12398 12399 12400 12401 12402 12403 if test yes != "$enable_dlopen"; then 12404 enable_dlopen=unknown 12405 enable_dlopen_self=unknown 12406 enable_dlopen_self_static=unknown 12407else 12408 lt_cv_dlopen=no 12409 lt_cv_dlopen_libs= 12410 12411 case $host_os in 12412 beos*) 12413 lt_cv_dlopen=load_add_on 12414 lt_cv_dlopen_libs= 12415 lt_cv_dlopen_self=yes 12416 ;; 12417 12418 mingw* | pw32* | cegcc*) 12419 lt_cv_dlopen=LoadLibrary 12420 lt_cv_dlopen_libs= 12421 ;; 12422 12423 cygwin*) 12424 lt_cv_dlopen=dlopen 12425 lt_cv_dlopen_libs= 12426 ;; 12427 12428 darwin*) 12429 # if libdl is installed we need to link against it 12430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12431$as_echo_n "checking for dlopen in -ldl... " >&6; } 12432if ${ac_cv_lib_dl_dlopen+:} false; then : 12433 $as_echo_n "(cached) " >&6 12434else 12435 ac_check_lib_save_LIBS=$LIBS 12436LIBS="-ldl $LIBS" 12437cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12438/* end confdefs.h. */ 12439 12440/* Override any GCC internal prototype to avoid an error. 12441 Use char because int might match the return type of a GCC 12442 builtin and then its argument prototype would still apply. */ 12443#ifdef __cplusplus 12444extern "C" 12445#endif 12446char dlopen (); 12447int 12448main () 12449{ 12450return dlopen (); 12451 ; 12452 return 0; 12453} 12454_ACEOF 12455if ac_fn_c_try_link "$LINENO"; then : 12456 ac_cv_lib_dl_dlopen=yes 12457else 12458 ac_cv_lib_dl_dlopen=no 12459fi 12460rm -f core conftest.err conftest.$ac_objext \ 12461 conftest$ac_exeext conftest.$ac_ext 12462LIBS=$ac_check_lib_save_LIBS 12463fi 12464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12465$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12466if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 12467 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12468else 12469 12470 lt_cv_dlopen=dyld 12471 lt_cv_dlopen_libs= 12472 lt_cv_dlopen_self=yes 12473 12474fi 12475 12476 ;; 12477 12478 tpf*) 12479 # Don't try to run any link tests for TPF. We know it's impossible 12480 # because TPF is a cross-compiler, and we know how we open DSOs. 12481 lt_cv_dlopen=dlopen 12482 lt_cv_dlopen_libs= 12483 lt_cv_dlopen_self=no 12484 ;; 12485 12486 *) 12487 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 12488if test "x$ac_cv_func_shl_load" = xyes; then : 12489 lt_cv_dlopen=shl_load 12490else 12491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 12492$as_echo_n "checking for shl_load in -ldld... " >&6; } 12493if ${ac_cv_lib_dld_shl_load+:} false; then : 12494 $as_echo_n "(cached) " >&6 12495else 12496 ac_check_lib_save_LIBS=$LIBS 12497LIBS="-ldld $LIBS" 12498cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12499/* end confdefs.h. */ 12500 12501/* Override any GCC internal prototype to avoid an error. 12502 Use char because int might match the return type of a GCC 12503 builtin and then its argument prototype would still apply. */ 12504#ifdef __cplusplus 12505extern "C" 12506#endif 12507char shl_load (); 12508int 12509main () 12510{ 12511return shl_load (); 12512 ; 12513 return 0; 12514} 12515_ACEOF 12516if ac_fn_c_try_link "$LINENO"; then : 12517 ac_cv_lib_dld_shl_load=yes 12518else 12519 ac_cv_lib_dld_shl_load=no 12520fi 12521rm -f core conftest.err conftest.$ac_objext \ 12522 conftest$ac_exeext conftest.$ac_ext 12523LIBS=$ac_check_lib_save_LIBS 12524fi 12525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 12526$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 12527if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 12528 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 12529else 12530 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 12531if test "x$ac_cv_func_dlopen" = xyes; then : 12532 lt_cv_dlopen=dlopen 12533else 12534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12535$as_echo_n "checking for dlopen in -ldl... " >&6; } 12536if ${ac_cv_lib_dl_dlopen+:} false; then : 12537 $as_echo_n "(cached) " >&6 12538else 12539 ac_check_lib_save_LIBS=$LIBS 12540LIBS="-ldl $LIBS" 12541cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12542/* end confdefs.h. */ 12543 12544/* Override any GCC internal prototype to avoid an error. 12545 Use char because int might match the return type of a GCC 12546 builtin and then its argument prototype would still apply. */ 12547#ifdef __cplusplus 12548extern "C" 12549#endif 12550char dlopen (); 12551int 12552main () 12553{ 12554return dlopen (); 12555 ; 12556 return 0; 12557} 12558_ACEOF 12559if ac_fn_c_try_link "$LINENO"; then : 12560 ac_cv_lib_dl_dlopen=yes 12561else 12562 ac_cv_lib_dl_dlopen=no 12563fi 12564rm -f core conftest.err conftest.$ac_objext \ 12565 conftest$ac_exeext conftest.$ac_ext 12566LIBS=$ac_check_lib_save_LIBS 12567fi 12568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12569$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12570if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 12571 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12572else 12573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 12574$as_echo_n "checking for dlopen in -lsvld... " >&6; } 12575if ${ac_cv_lib_svld_dlopen+:} false; then : 12576 $as_echo_n "(cached) " >&6 12577else 12578 ac_check_lib_save_LIBS=$LIBS 12579LIBS="-lsvld $LIBS" 12580cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12581/* end confdefs.h. */ 12582 12583/* Override any GCC internal prototype to avoid an error. 12584 Use char because int might match the return type of a GCC 12585 builtin and then its argument prototype would still apply. */ 12586#ifdef __cplusplus 12587extern "C" 12588#endif 12589char dlopen (); 12590int 12591main () 12592{ 12593return dlopen (); 12594 ; 12595 return 0; 12596} 12597_ACEOF 12598if ac_fn_c_try_link "$LINENO"; then : 12599 ac_cv_lib_svld_dlopen=yes 12600else 12601 ac_cv_lib_svld_dlopen=no 12602fi 12603rm -f core conftest.err conftest.$ac_objext \ 12604 conftest$ac_exeext conftest.$ac_ext 12605LIBS=$ac_check_lib_save_LIBS 12606fi 12607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 12608$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 12609if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 12610 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 12611else 12612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 12613$as_echo_n "checking for dld_link in -ldld... " >&6; } 12614if ${ac_cv_lib_dld_dld_link+:} false; then : 12615 $as_echo_n "(cached) " >&6 12616else 12617 ac_check_lib_save_LIBS=$LIBS 12618LIBS="-ldld $LIBS" 12619cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12620/* end confdefs.h. */ 12621 12622/* Override any GCC internal prototype to avoid an error. 12623 Use char because int might match the return type of a GCC 12624 builtin and then its argument prototype would still apply. */ 12625#ifdef __cplusplus 12626extern "C" 12627#endif 12628char dld_link (); 12629int 12630main () 12631{ 12632return dld_link (); 12633 ; 12634 return 0; 12635} 12636_ACEOF 12637if ac_fn_c_try_link "$LINENO"; then : 12638 ac_cv_lib_dld_dld_link=yes 12639else 12640 ac_cv_lib_dld_dld_link=no 12641fi 12642rm -f core conftest.err conftest.$ac_objext \ 12643 conftest$ac_exeext conftest.$ac_ext 12644LIBS=$ac_check_lib_save_LIBS 12645fi 12646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 12647$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 12648if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 12649 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 12650fi 12651 12652 12653fi 12654 12655 12656fi 12657 12658 12659fi 12660 12661 12662fi 12663 12664 12665fi 12666 12667 ;; 12668 esac 12669 12670 if test no = "$lt_cv_dlopen"; then 12671 enable_dlopen=no 12672 else 12673 enable_dlopen=yes 12674 fi 12675 12676 case $lt_cv_dlopen in 12677 dlopen) 12678 save_CPPFLAGS=$CPPFLAGS 12679 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 12680 12681 save_LDFLAGS=$LDFLAGS 12682 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 12683 12684 save_LIBS=$LIBS 12685 LIBS="$lt_cv_dlopen_libs $LIBS" 12686 12687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 12688$as_echo_n "checking whether a program can dlopen itself... " >&6; } 12689if ${lt_cv_dlopen_self+:} false; then : 12690 $as_echo_n "(cached) " >&6 12691else 12692 if test yes = "$cross_compiling"; then : 12693 lt_cv_dlopen_self=cross 12694else 12695 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12696 lt_status=$lt_dlunknown 12697 cat > conftest.$ac_ext <<_LT_EOF 12698#line $LINENO "configure" 12699#include "confdefs.h" 12700 12701#if HAVE_DLFCN_H 12702#include <dlfcn.h> 12703#endif 12704 12705#include <stdio.h> 12706 12707#ifdef RTLD_GLOBAL 12708# define LT_DLGLOBAL RTLD_GLOBAL 12709#else 12710# ifdef DL_GLOBAL 12711# define LT_DLGLOBAL DL_GLOBAL 12712# else 12713# define LT_DLGLOBAL 0 12714# endif 12715#endif 12716 12717/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12718 find out it does not work in some platform. */ 12719#ifndef LT_DLLAZY_OR_NOW 12720# ifdef RTLD_LAZY 12721# define LT_DLLAZY_OR_NOW RTLD_LAZY 12722# else 12723# ifdef DL_LAZY 12724# define LT_DLLAZY_OR_NOW DL_LAZY 12725# else 12726# ifdef RTLD_NOW 12727# define LT_DLLAZY_OR_NOW RTLD_NOW 12728# else 12729# ifdef DL_NOW 12730# define LT_DLLAZY_OR_NOW DL_NOW 12731# else 12732# define LT_DLLAZY_OR_NOW 0 12733# endif 12734# endif 12735# endif 12736# endif 12737#endif 12738 12739/* When -fvisibility=hidden is used, assume the code has been annotated 12740 correspondingly for the symbols needed. */ 12741#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12742int fnord () __attribute__((visibility("default"))); 12743#endif 12744 12745int fnord () { return 42; } 12746int main () 12747{ 12748 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12749 int status = $lt_dlunknown; 12750 12751 if (self) 12752 { 12753 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12754 else 12755 { 12756 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12757 else puts (dlerror ()); 12758 } 12759 /* dlclose (self); */ 12760 } 12761 else 12762 puts (dlerror ()); 12763 12764 return status; 12765} 12766_LT_EOF 12767 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12768 (eval $ac_link) 2>&5 12769 ac_status=$? 12770 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12771 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12772 (./conftest; exit; ) >&5 2>/dev/null 12773 lt_status=$? 12774 case x$lt_status in 12775 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 12776 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 12777 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 12778 esac 12779 else : 12780 # compilation failed 12781 lt_cv_dlopen_self=no 12782 fi 12783fi 12784rm -fr conftest* 12785 12786 12787fi 12788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 12789$as_echo "$lt_cv_dlopen_self" >&6; } 12790 12791 if test yes = "$lt_cv_dlopen_self"; then 12792 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 12793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 12794$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 12795if ${lt_cv_dlopen_self_static+:} false; then : 12796 $as_echo_n "(cached) " >&6 12797else 12798 if test yes = "$cross_compiling"; then : 12799 lt_cv_dlopen_self_static=cross 12800else 12801 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12802 lt_status=$lt_dlunknown 12803 cat > conftest.$ac_ext <<_LT_EOF 12804#line $LINENO "configure" 12805#include "confdefs.h" 12806 12807#if HAVE_DLFCN_H 12808#include <dlfcn.h> 12809#endif 12810 12811#include <stdio.h> 12812 12813#ifdef RTLD_GLOBAL 12814# define LT_DLGLOBAL RTLD_GLOBAL 12815#else 12816# ifdef DL_GLOBAL 12817# define LT_DLGLOBAL DL_GLOBAL 12818# else 12819# define LT_DLGLOBAL 0 12820# endif 12821#endif 12822 12823/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12824 find out it does not work in some platform. */ 12825#ifndef LT_DLLAZY_OR_NOW 12826# ifdef RTLD_LAZY 12827# define LT_DLLAZY_OR_NOW RTLD_LAZY 12828# else 12829# ifdef DL_LAZY 12830# define LT_DLLAZY_OR_NOW DL_LAZY 12831# else 12832# ifdef RTLD_NOW 12833# define LT_DLLAZY_OR_NOW RTLD_NOW 12834# else 12835# ifdef DL_NOW 12836# define LT_DLLAZY_OR_NOW DL_NOW 12837# else 12838# define LT_DLLAZY_OR_NOW 0 12839# endif 12840# endif 12841# endif 12842# endif 12843#endif 12844 12845/* When -fvisibility=hidden is used, assume the code has been annotated 12846 correspondingly for the symbols needed. */ 12847#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12848int fnord () __attribute__((visibility("default"))); 12849#endif 12850 12851int fnord () { return 42; } 12852int main () 12853{ 12854 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12855 int status = $lt_dlunknown; 12856 12857 if (self) 12858 { 12859 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12860 else 12861 { 12862 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12863 else puts (dlerror ()); 12864 } 12865 /* dlclose (self); */ 12866 } 12867 else 12868 puts (dlerror ()); 12869 12870 return status; 12871} 12872_LT_EOF 12873 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12874 (eval $ac_link) 2>&5 12875 ac_status=$? 12876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12877 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12878 (./conftest; exit; ) >&5 2>/dev/null 12879 lt_status=$? 12880 case x$lt_status in 12881 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12882 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12883 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 12884 esac 12885 else : 12886 # compilation failed 12887 lt_cv_dlopen_self_static=no 12888 fi 12889fi 12890rm -fr conftest* 12891 12892 12893fi 12894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 12895$as_echo "$lt_cv_dlopen_self_static" >&6; } 12896 fi 12897 12898 CPPFLAGS=$save_CPPFLAGS 12899 LDFLAGS=$save_LDFLAGS 12900 LIBS=$save_LIBS 12901 ;; 12902 esac 12903 12904 case $lt_cv_dlopen_self in 12905 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 12906 *) enable_dlopen_self=unknown ;; 12907 esac 12908 12909 case $lt_cv_dlopen_self_static in 12910 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 12911 *) enable_dlopen_self_static=unknown ;; 12912 esac 12913fi 12914 12915 12916 12917 12918 12919 12920 12921 12922 12923 12924 12925 12926 12927 12928 12929 12930 12931striplib= 12932old_striplib= 12933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 12934$as_echo_n "checking whether stripping libraries is possible... " >&6; } 12935if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 12936 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 12937 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 12938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12939$as_echo "yes" >&6; } 12940else 12941# FIXME - insert some real tests, host_os isn't really good enough 12942 case $host_os in 12943 darwin*) 12944 if test -n "$STRIP"; then 12945 striplib="$STRIP -x" 12946 old_striplib="$STRIP -S" 12947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12948$as_echo "yes" >&6; } 12949 else 12950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12951$as_echo "no" >&6; } 12952 fi 12953 ;; 12954 *) 12955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12956$as_echo "no" >&6; } 12957 ;; 12958 esac 12959fi 12960 12961 12962 12963 12964 12965 12966 12967 12968 12969 12970 12971 12972 # Report what library types will actually be built 12973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 12974$as_echo_n "checking if libtool supports shared libraries... " >&6; } 12975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 12976$as_echo "$can_build_shared" >&6; } 12977 12978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 12979$as_echo_n "checking whether to build shared libraries... " >&6; } 12980 test no = "$can_build_shared" && enable_shared=no 12981 12982 # On AIX, shared libraries and static libraries use the same namespace, and 12983 # are all built from PIC. 12984 case $host_os in 12985 aix3*) 12986 test yes = "$enable_shared" && enable_static=no 12987 if test -n "$RANLIB"; then 12988 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12989 postinstall_cmds='$RANLIB $lib' 12990 fi 12991 ;; 12992 12993 aix[4-9]*) 12994 if test ia64 != "$host_cpu"; then 12995 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 12996 yes,aix,yes) ;; # shared object as lib.so file only 12997 yes,svr4,*) ;; # shared object as lib.so archive member only 12998 yes,*) enable_static=no ;; # shared object in lib.a archive as well 12999 esac 13000 fi 13001 ;; 13002 esac 13003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 13004$as_echo "$enable_shared" >&6; } 13005 13006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 13007$as_echo_n "checking whether to build static libraries... " >&6; } 13008 # Make sure either enable_shared or enable_static is yes. 13009 test yes = "$enable_shared" || enable_static=yes 13010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 13011$as_echo "$enable_static" >&6; } 13012 13013 13014 13015 13016fi 13017ac_ext=c 13018ac_cpp='$CPP $CPPFLAGS' 13019ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13020ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13021ac_compiler_gnu=$ac_cv_c_compiler_gnu 13022 13023CC=$lt_save_CC 13024 13025 13026 13027 13028 13029 13030 13031 13032 13033 13034 13035 13036 13037 13038 13039 ac_config_commands="$ac_config_commands libtool" 13040 13041 13042 13043 13044# Only expand once: 13045 13046 13047 13048 13049 CFLAG_VISIBILITY= 13050 HAVE_VISIBILITY=0 13051 if test -n "$GCC"; then 13052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5 13053$as_echo_n "checking whether the -Werror option is usable... " >&6; } 13054if ${gl_cv_cc_vis_werror+:} false; then : 13055 $as_echo_n "(cached) " >&6 13056else 13057 gl_save_CFLAGS="$CFLAGS" 13058 CFLAGS="$CFLAGS -Werror" 13059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13060/* end confdefs.h. */ 13061 13062int 13063main () 13064{ 13065 13066 ; 13067 return 0; 13068} 13069_ACEOF 13070if ac_fn_c_try_compile "$LINENO"; then : 13071 gl_cv_cc_vis_werror=yes 13072else 13073 gl_cv_cc_vis_werror=no 13074fi 13075rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13076 CFLAGS="$gl_save_CFLAGS" 13077 13078fi 13079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5 13080$as_echo "$gl_cv_cc_vis_werror" >&6; } 13081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5 13082$as_echo_n "checking for simple visibility declarations... " >&6; } 13083if ${gl_cv_cc_visibility+:} false; then : 13084 $as_echo_n "(cached) " >&6 13085else 13086 gl_save_CFLAGS="$CFLAGS" 13087 CFLAGS="$CFLAGS -fvisibility=hidden" 13088 if test $gl_cv_cc_vis_werror = yes; then 13089 CFLAGS="$CFLAGS -Werror" 13090 fi 13091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13092/* end confdefs.h. */ 13093extern __attribute__((__visibility__("hidden"))) int hiddenvar; 13094 extern __attribute__((__visibility__("default"))) int exportedvar; 13095 extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void); 13096 extern __attribute__((__visibility__("default"))) int exportedfunc (void); 13097 void dummyfunc (void) {} 13098 13099int 13100main () 13101{ 13102 13103 ; 13104 return 0; 13105} 13106_ACEOF 13107if ac_fn_c_try_compile "$LINENO"; then : 13108 gl_cv_cc_visibility=yes 13109else 13110 gl_cv_cc_visibility=no 13111fi 13112rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13113 CFLAGS="$gl_save_CFLAGS" 13114 13115fi 13116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5 13117$as_echo "$gl_cv_cc_visibility" >&6; } 13118 if test $gl_cv_cc_visibility = yes; then 13119 CFLAG_VISIBILITY="-fvisibility=hidden" 13120 HAVE_VISIBILITY=1 13121 fi 13122 fi 13123 13124 13125 13126cat >>confdefs.h <<_ACEOF 13127#define HAVE_VISIBILITY $HAVE_VISIBILITY 13128_ACEOF 13129 13130 13131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 13132$as_echo_n "checking for ANSI C header files... " >&6; } 13133if ${ac_cv_header_stdc+:} false; then : 13134 $as_echo_n "(cached) " >&6 13135else 13136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13137/* end confdefs.h. */ 13138#include <stdlib.h> 13139#include <stdarg.h> 13140#include <string.h> 13141#include <float.h> 13142 13143int 13144main () 13145{ 13146 13147 ; 13148 return 0; 13149} 13150_ACEOF 13151if ac_fn_c_try_compile "$LINENO"; then : 13152 ac_cv_header_stdc=yes 13153else 13154 ac_cv_header_stdc=no 13155fi 13156rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13157 13158if test $ac_cv_header_stdc = yes; then 13159 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 13160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13161/* end confdefs.h. */ 13162#include <string.h> 13163 13164_ACEOF 13165if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 13166 $EGREP "memchr" >/dev/null 2>&1; then : 13167 13168else 13169 ac_cv_header_stdc=no 13170fi 13171rm -f conftest* 13172 13173fi 13174 13175if test $ac_cv_header_stdc = yes; then 13176 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 13177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13178/* end confdefs.h. */ 13179#include <stdlib.h> 13180 13181_ACEOF 13182if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 13183 $EGREP "free" >/dev/null 2>&1; then : 13184 13185else 13186 ac_cv_header_stdc=no 13187fi 13188rm -f conftest* 13189 13190fi 13191 13192if test $ac_cv_header_stdc = yes; then 13193 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 13194 if test "$cross_compiling" = yes; then : 13195 : 13196else 13197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13198/* end confdefs.h. */ 13199#include <ctype.h> 13200#include <stdlib.h> 13201#if ((' ' & 0x0FF) == 0x020) 13202# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 13203# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 13204#else 13205# define ISLOWER(c) \ 13206 (('a' <= (c) && (c) <= 'i') \ 13207 || ('j' <= (c) && (c) <= 'r') \ 13208 || ('s' <= (c) && (c) <= 'z')) 13209# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 13210#endif 13211 13212#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 13213int 13214main () 13215{ 13216 int i; 13217 for (i = 0; i < 256; i++) 13218 if (XOR (islower (i), ISLOWER (i)) 13219 || toupper (i) != TOUPPER (i)) 13220 return 2; 13221 return 0; 13222} 13223_ACEOF 13224if ac_fn_c_try_run "$LINENO"; then : 13225 13226else 13227 ac_cv_header_stdc=no 13228fi 13229rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13230 conftest.$ac_objext conftest.beam conftest.$ac_ext 13231fi 13232 13233fi 13234fi 13235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 13236$as_echo "$ac_cv_header_stdc" >&6; } 13237if test $ac_cv_header_stdc = yes; then 13238 13239$as_echo "#define STDC_HEADERS 1" >>confdefs.h 13240 13241fi 13242 13243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5 13244$as_echo_n "checking whether sys/types.h defines makedev... " >&6; } 13245if ${ac_cv_header_sys_types_h_makedev+:} false; then : 13246 $as_echo_n "(cached) " >&6 13247else 13248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13249/* end confdefs.h. */ 13250#include <sys/types.h> 13251int 13252main () 13253{ 13254return makedev(0, 0); 13255 ; 13256 return 0; 13257} 13258_ACEOF 13259if ac_fn_c_try_link "$LINENO"; then : 13260 ac_cv_header_sys_types_h_makedev=yes 13261else 13262 ac_cv_header_sys_types_h_makedev=no 13263fi 13264rm -f core conftest.err conftest.$ac_objext \ 13265 conftest$ac_exeext conftest.$ac_ext 13266 13267fi 13268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5 13269$as_echo "$ac_cv_header_sys_types_h_makedev" >&6; } 13270 13271if test $ac_cv_header_sys_types_h_makedev = no; then 13272ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default" 13273if test "x$ac_cv_header_sys_mkdev_h" = xyes; then : 13274 13275$as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h 13276 13277fi 13278 13279 13280 13281 if test $ac_cv_header_sys_mkdev_h = no; then 13282 ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default" 13283if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then : 13284 13285$as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h 13286 13287fi 13288 13289 13290 fi 13291fi 13292 13293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5 13294$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } 13295if ${ac_cv_header_sys_wait_h+:} false; then : 13296 $as_echo_n "(cached) " >&6 13297else 13298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13299/* end confdefs.h. */ 13300#include <sys/types.h> 13301#include <sys/wait.h> 13302#ifndef WEXITSTATUS 13303# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) 13304#endif 13305#ifndef WIFEXITED 13306# define WIFEXITED(stat_val) (((stat_val) & 255) == 0) 13307#endif 13308 13309int 13310main () 13311{ 13312 int s; 13313 wait (&s); 13314 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 13315 ; 13316 return 0; 13317} 13318_ACEOF 13319if ac_fn_c_try_compile "$LINENO"; then : 13320 ac_cv_header_sys_wait_h=yes 13321else 13322 ac_cv_header_sys_wait_h=no 13323fi 13324rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13325fi 13326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5 13327$as_echo "$ac_cv_header_sys_wait_h" >&6; } 13328if test $ac_cv_header_sys_wait_h = yes; then 13329 13330$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h 13331 13332fi 13333 13334for ac_header in stdint.h fcntl.h inttypes.h unistd.h 13335do : 13336 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 13337ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 13338if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 13339 cat >>confdefs.h <<_ACEOF 13340#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 13341_ACEOF 13342 13343fi 13344 13345done 13346 13347for ac_header in utime.h wchar.h wctype.h 13348do : 13349 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 13350ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 13351if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 13352 cat >>confdefs.h <<_ACEOF 13353#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 13354_ACEOF 13355 13356fi 13357 13358done 13359 13360for ac_header in getopt.h err.h xlocale.h 13361do : 13362 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 13363ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 13364if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 13365 cat >>confdefs.h <<_ACEOF 13366#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 13367_ACEOF 13368 13369fi 13370 13371done 13372 13373for ac_header in sys/mman.h sys/stat.h sys/types.h sys/utime.h sys/time.h sys/sysmacros.h 13374do : 13375 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 13376ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 13377if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 13378 cat >>confdefs.h <<_ACEOF 13379#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 13380_ACEOF 13381 13382fi 13383 13384done 13385 13386if test "$enable_zlib" != "no"; then 13387 for ac_header in zlib.h 13388do : 13389 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default" 13390if test "x$ac_cv_header_zlib_h" = xyes; then : 13391 cat >>confdefs.h <<_ACEOF 13392#define HAVE_ZLIB_H 1 13393_ACEOF 13394 13395fi 13396 13397done 13398 13399fi 13400if test "$enable_bzlib" != "no"; then 13401 for ac_header in bzlib.h 13402do : 13403 ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default" 13404if test "x$ac_cv_header_bzlib_h" = xyes; then : 13405 cat >>confdefs.h <<_ACEOF 13406#define HAVE_BZLIB_H 1 13407_ACEOF 13408 13409fi 13410 13411done 13412 13413fi 13414if test "$enable_xzlib" != "no"; then 13415 for ac_header in lzma.h 13416do : 13417 ac_fn_c_check_header_mongrel "$LINENO" "lzma.h" "ac_cv_header_lzma_h" "$ac_includes_default" 13418if test "x$ac_cv_header_lzma_h" = xyes; then : 13419 cat >>confdefs.h <<_ACEOF 13420#define HAVE_LZMA_H 1 13421_ACEOF 13422 13423fi 13424 13425done 13426 13427fi 13428ac_fn_c_check_type "$LINENO" "sig_t" "ac_cv_type_sig_t" "#include <signal.h> 13429" 13430if test "x$ac_cv_type_sig_t" = xyes; then : 13431 13432$as_echo "#define HAVE_SIG_T 1" >>confdefs.h 13433 13434fi 13435 13436 13437ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" 13438if test "x$ac_cv_type_off_t" = xyes; then : 13439 13440else 13441 13442cat >>confdefs.h <<_ACEOF 13443#define off_t long int 13444_ACEOF 13445 13446fi 13447 13448ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 13449if test "x$ac_cv_type_size_t" = xyes; then : 13450 13451else 13452 13453cat >>confdefs.h <<_ACEOF 13454#define size_t unsigned int 13455_ACEOF 13456 13457fi 13458 13459ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default" 13460if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then : 13461 13462cat >>confdefs.h <<_ACEOF 13463#define HAVE_STRUCT_STAT_ST_RDEV 1 13464_ACEOF 13465 13466 13467fi 13468 13469 13470ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h> 13471" 13472if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then : 13473 13474cat >>confdefs.h <<_ACEOF 13475#define HAVE_STRUCT_TM_TM_GMTOFF 1 13476_ACEOF 13477 13478 13479fi 13480 13481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 13482$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } 13483if ${ac_cv_struct_tm+:} false; then : 13484 $as_echo_n "(cached) " >&6 13485else 13486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13487/* end confdefs.h. */ 13488#include <sys/types.h> 13489#include <time.h> 13490 13491int 13492main () 13493{ 13494struct tm tm; 13495 int *p = &tm.tm_sec; 13496 return !p; 13497 ; 13498 return 0; 13499} 13500_ACEOF 13501if ac_fn_c_try_compile "$LINENO"; then : 13502 ac_cv_struct_tm=time.h 13503else 13504 ac_cv_struct_tm=sys/time.h 13505fi 13506rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13507fi 13508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 13509$as_echo "$ac_cv_struct_tm" >&6; } 13510if test $ac_cv_struct_tm = sys/time.h; then 13511 13512$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h 13513 13514fi 13515 13516ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h> 13517#include <$ac_cv_struct_tm> 13518 13519" 13520if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then : 13521 13522cat >>confdefs.h <<_ACEOF 13523#define HAVE_STRUCT_TM_TM_ZONE 1 13524_ACEOF 13525 13526 13527fi 13528 13529if test "$ac_cv_member_struct_tm_tm_zone" = yes; then 13530 13531$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h 13532 13533else 13534 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h> 13535" 13536if test "x$ac_cv_have_decl_tzname" = xyes; then : 13537 ac_have_decl=1 13538else 13539 ac_have_decl=0 13540fi 13541 13542cat >>confdefs.h <<_ACEOF 13543#define HAVE_DECL_TZNAME $ac_have_decl 13544_ACEOF 13545 13546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5 13547$as_echo_n "checking for tzname... " >&6; } 13548if ${ac_cv_var_tzname+:} false; then : 13549 $as_echo_n "(cached) " >&6 13550else 13551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13552/* end confdefs.h. */ 13553#include <time.h> 13554#if !HAVE_DECL_TZNAME 13555extern char *tzname[]; 13556#endif 13557 13558int 13559main () 13560{ 13561return tzname[0][0]; 13562 ; 13563 return 0; 13564} 13565_ACEOF 13566if ac_fn_c_try_link "$LINENO"; then : 13567 ac_cv_var_tzname=yes 13568else 13569 ac_cv_var_tzname=no 13570fi 13571rm -f core conftest.err conftest.$ac_objext \ 13572 conftest$ac_exeext conftest.$ac_ext 13573fi 13574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5 13575$as_echo "$ac_cv_var_tzname" >&6; } 13576 if test $ac_cv_var_tzname = yes; then 13577 13578$as_echo "#define HAVE_TZNAME 1" >>confdefs.h 13579 13580 fi 13581fi 13582 13583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_zone in struct tm" >&5 13584$as_echo_n "checking for tm_zone in struct tm... " >&6; } 13585if ${ac_cv_struct_tm_zone+:} false; then : 13586 $as_echo_n "(cached) " >&6 13587else 13588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13589/* end confdefs.h. */ 13590#include <sys/types.h> 13591#include <$ac_cv_struct_tm> 13592int 13593main () 13594{ 13595struct tm tm; tm.tm_zone; 13596 ; 13597 return 0; 13598} 13599_ACEOF 13600if ac_fn_c_try_compile "$LINENO"; then : 13601 ac_cv_struct_tm_zone=yes 13602else 13603 ac_cv_struct_tm_zone=no 13604fi 13605rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13606fi 13607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm_zone" >&5 13608$as_echo "$ac_cv_struct_tm_zone" >&6; } 13609if test "$ac_cv_struct_tm_zone" = yes; then 13610 13611$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h 13612 13613fi 13614 13615# On SGI, apparently tzname is a #define, but that's ok, AC_CHECK_DECL will 13616# consider it declared and we won't give our own extern. 13617ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h> 13618" 13619if test "x$ac_cv_have_decl_tzname" = xyes; then : 13620 ac_have_decl=1 13621else 13622 ac_have_decl=0 13623fi 13624 13625cat >>confdefs.h <<_ACEOF 13626#define HAVE_DECL_TZNAME $ac_have_decl 13627_ACEOF 13628 13629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5 13630$as_echo_n "checking for tzname... " >&6; } 13631if ${ac_cv_var_tzname+:} false; then : 13632 $as_echo_n "(cached) " >&6 13633else 13634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13635/* end confdefs.h. */ 13636#include <time.h> 13637#if !HAVE_DECL_TZNAME 13638extern char *tzname[]; 13639#endif 13640int 13641main () 13642{ 13643return tzname[0][0]; 13644 ; 13645 return 0; 13646} 13647_ACEOF 13648if ac_fn_c_try_link "$LINENO"; then : 13649 ac_cv_var_tzname=yes 13650else 13651 ac_cv_var_tzname=no 13652fi 13653rm -f core conftest.err conftest.$ac_objext \ 13654 conftest$ac_exeext conftest.$ac_ext 13655fi 13656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5 13657$as_echo "$ac_cv_var_tzname" >&6; } 13658 if test $ac_cv_var_tzname = yes; then 13659 13660$as_echo "#define HAVE_TZNAME 1" >>confdefs.h 13661 13662 fi 13663 13664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_isdst in struct tm" >&5 13665$as_echo_n "checking for tm_isdst in struct tm... " >&6; } 13666if ${ac_cv_struct_tm_isdst+:} false; then : 13667 $as_echo_n "(cached) " >&6 13668else 13669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13670/* end confdefs.h. */ 13671#include <sys/types.h> 13672#include <$ac_cv_struct_tm> 13673int 13674main () 13675{ 13676struct tm tm; tm.tm_isdst; 13677 ; 13678 return 0; 13679} 13680_ACEOF 13681if ac_fn_c_try_compile "$LINENO"; then : 13682 ac_cv_struct_tm_isdst=yes 13683else 13684 ac_cv_struct_tm_isdst=no 13685fi 13686rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13687fi 13688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm_isdst" >&5 13689$as_echo "$ac_cv_struct_tm_isdst" >&6; } 13690if test "$ac_cv_struct_tm_isdst" = yes; then 13691 13692$as_echo "#define HAVE_TM_ISDST 1" >>confdefs.h 13693 13694fi 13695 13696 13697ac_fn_c_check_decl "$LINENO" "daylight" "ac_cv_have_decl_daylight" "#include <time.h> 13698" 13699if test "x$ac_cv_have_decl_daylight" = xyes; then : 13700 ac_have_decl=1 13701else 13702 ac_have_decl=0 13703fi 13704 13705cat >>confdefs.h <<_ACEOF 13706#define HAVE_DECL_DAYLIGHT $ac_have_decl 13707_ACEOF 13708 13709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for daylight" >&5 13710$as_echo_n "checking for daylight... " >&6; } 13711if ${ac_cv_var_daylight+:} false; then : 13712 $as_echo_n "(cached) " >&6 13713else 13714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13715/* end confdefs.h. */ 13716#include <time.h> 13717#if !HAVE_DECL_DAYLIGHT 13718extern int daylight; 13719#endif 13720int 13721main () 13722{ 13723atoi(daylight); 13724 ; 13725 return 0; 13726} 13727_ACEOF 13728if ac_fn_c_try_link "$LINENO"; then : 13729 ac_cv_var_daylight=yes 13730else 13731 ac_cv_var_daylight=no 13732fi 13733rm -f core conftest.err conftest.$ac_objext \ 13734 conftest$ac_exeext conftest.$ac_ext 13735fi 13736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_daylight" >&5 13737$as_echo "$ac_cv_var_daylight" >&6; } 13738 if test $ac_cv_var_daylight = yes; then 13739 13740$as_echo "#define HAVE_DAYLIGHT 1" >>confdefs.h 13741 13742 fi 13743 13744# Check whether --enable-largefile was given. 13745if test "${enable_largefile+set}" = set; then : 13746 enableval=$enable_largefile; 13747fi 13748 13749if test "$enable_largefile" != no; then 13750 13751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 13752$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 13753if ${ac_cv_sys_largefile_CC+:} false; then : 13754 $as_echo_n "(cached) " >&6 13755else 13756 ac_cv_sys_largefile_CC=no 13757 if test "$GCC" != yes; then 13758 ac_save_CC=$CC 13759 while :; do 13760 # IRIX 6.2 and later do not support large files by default, 13761 # so use the C compiler's -n32 option if that helps. 13762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13763/* end confdefs.h. */ 13764#include <sys/types.h> 13765 /* Check that off_t can represent 2**63 - 1 correctly. 13766 We can't simply define LARGE_OFF_T to be 9223372036854775807, 13767 since some C++ compilers masquerading as C compilers 13768 incorrectly reject 9223372036854775807. */ 13769#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 13770 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 13771 && LARGE_OFF_T % 2147483647 == 1) 13772 ? 1 : -1]; 13773int 13774main () 13775{ 13776 13777 ; 13778 return 0; 13779} 13780_ACEOF 13781 if ac_fn_c_try_compile "$LINENO"; then : 13782 break 13783fi 13784rm -f core conftest.err conftest.$ac_objext 13785 CC="$CC -n32" 13786 if ac_fn_c_try_compile "$LINENO"; then : 13787 ac_cv_sys_largefile_CC=' -n32'; break 13788fi 13789rm -f core conftest.err conftest.$ac_objext 13790 break 13791 done 13792 CC=$ac_save_CC 13793 rm -f conftest.$ac_ext 13794 fi 13795fi 13796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 13797$as_echo "$ac_cv_sys_largefile_CC" >&6; } 13798 if test "$ac_cv_sys_largefile_CC" != no; then 13799 CC=$CC$ac_cv_sys_largefile_CC 13800 fi 13801 13802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 13803$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 13804if ${ac_cv_sys_file_offset_bits+:} false; then : 13805 $as_echo_n "(cached) " >&6 13806else 13807 while :; do 13808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13809/* end confdefs.h. */ 13810#include <sys/types.h> 13811 /* Check that off_t can represent 2**63 - 1 correctly. 13812 We can't simply define LARGE_OFF_T to be 9223372036854775807, 13813 since some C++ compilers masquerading as C compilers 13814 incorrectly reject 9223372036854775807. */ 13815#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 13816 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 13817 && LARGE_OFF_T % 2147483647 == 1) 13818 ? 1 : -1]; 13819int 13820main () 13821{ 13822 13823 ; 13824 return 0; 13825} 13826_ACEOF 13827if ac_fn_c_try_compile "$LINENO"; then : 13828 ac_cv_sys_file_offset_bits=no; break 13829fi 13830rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13832/* end confdefs.h. */ 13833#define _FILE_OFFSET_BITS 64 13834#include <sys/types.h> 13835 /* Check that off_t can represent 2**63 - 1 correctly. 13836 We can't simply define LARGE_OFF_T to be 9223372036854775807, 13837 since some C++ compilers masquerading as C compilers 13838 incorrectly reject 9223372036854775807. */ 13839#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 13840 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 13841 && LARGE_OFF_T % 2147483647 == 1) 13842 ? 1 : -1]; 13843int 13844main () 13845{ 13846 13847 ; 13848 return 0; 13849} 13850_ACEOF 13851if ac_fn_c_try_compile "$LINENO"; then : 13852 ac_cv_sys_file_offset_bits=64; break 13853fi 13854rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13855 ac_cv_sys_file_offset_bits=unknown 13856 break 13857done 13858fi 13859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 13860$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 13861case $ac_cv_sys_file_offset_bits in #( 13862 no | unknown) ;; 13863 *) 13864cat >>confdefs.h <<_ACEOF 13865#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 13866_ACEOF 13867;; 13868esac 13869rm -rf conftest* 13870 if test $ac_cv_sys_file_offset_bits = unknown; then 13871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 13872$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 13873if ${ac_cv_sys_large_files+:} false; then : 13874 $as_echo_n "(cached) " >&6 13875else 13876 while :; do 13877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13878/* end confdefs.h. */ 13879#include <sys/types.h> 13880 /* Check that off_t can represent 2**63 - 1 correctly. 13881 We can't simply define LARGE_OFF_T to be 9223372036854775807, 13882 since some C++ compilers masquerading as C compilers 13883 incorrectly reject 9223372036854775807. */ 13884#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 13885 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 13886 && LARGE_OFF_T % 2147483647 == 1) 13887 ? 1 : -1]; 13888int 13889main () 13890{ 13891 13892 ; 13893 return 0; 13894} 13895_ACEOF 13896if ac_fn_c_try_compile "$LINENO"; then : 13897 ac_cv_sys_large_files=no; break 13898fi 13899rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13901/* end confdefs.h. */ 13902#define _LARGE_FILES 1 13903#include <sys/types.h> 13904 /* Check that off_t can represent 2**63 - 1 correctly. 13905 We can't simply define LARGE_OFF_T to be 9223372036854775807, 13906 since some C++ compilers masquerading as C compilers 13907 incorrectly reject 9223372036854775807. */ 13908#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 13909 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 13910 && LARGE_OFF_T % 2147483647 == 1) 13911 ? 1 : -1]; 13912int 13913main () 13914{ 13915 13916 ; 13917 return 0; 13918} 13919_ACEOF 13920if ac_fn_c_try_compile "$LINENO"; then : 13921 ac_cv_sys_large_files=1; break 13922fi 13923rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13924 ac_cv_sys_large_files=unknown 13925 break 13926done 13927fi 13928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 13929$as_echo "$ac_cv_sys_large_files" >&6; } 13930case $ac_cv_sys_large_files in #( 13931 no | unknown) ;; 13932 *) 13933cat >>confdefs.h <<_ACEOF 13934#define _LARGE_FILES $ac_cv_sys_large_files 13935_ACEOF 13936;; 13937esac 13938rm -rf conftest* 13939 fi 13940 13941 13942fi 13943 13944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5 13945$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; } 13946if ${ac_cv_sys_largefile_source+:} false; then : 13947 $as_echo_n "(cached) " >&6 13948else 13949 while :; do 13950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13951/* end confdefs.h. */ 13952#include <sys/types.h> /* for off_t */ 13953 #include <stdio.h> 13954int 13955main () 13956{ 13957int (*fp) (FILE *, off_t, int) = fseeko; 13958 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); 13959 ; 13960 return 0; 13961} 13962_ACEOF 13963if ac_fn_c_try_link "$LINENO"; then : 13964 ac_cv_sys_largefile_source=no; break 13965fi 13966rm -f core conftest.err conftest.$ac_objext \ 13967 conftest$ac_exeext conftest.$ac_ext 13968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13969/* end confdefs.h. */ 13970#define _LARGEFILE_SOURCE 1 13971#include <sys/types.h> /* for off_t */ 13972 #include <stdio.h> 13973int 13974main () 13975{ 13976int (*fp) (FILE *, off_t, int) = fseeko; 13977 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); 13978 ; 13979 return 0; 13980} 13981_ACEOF 13982if ac_fn_c_try_link "$LINENO"; then : 13983 ac_cv_sys_largefile_source=1; break 13984fi 13985rm -f core conftest.err conftest.$ac_objext \ 13986 conftest$ac_exeext conftest.$ac_ext 13987 ac_cv_sys_largefile_source=unknown 13988 break 13989done 13990fi 13991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5 13992$as_echo "$ac_cv_sys_largefile_source" >&6; } 13993case $ac_cv_sys_largefile_source in #( 13994 no | unknown) ;; 13995 *) 13996cat >>confdefs.h <<_ACEOF 13997#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source 13998_ACEOF 13999;; 14000esac 14001rm -rf conftest* 14002 14003# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug 14004# in glibc 2.1.3, but that breaks too many other things. 14005# If you want fseeko and ftello with glibc, upgrade to a fixed glibc. 14006if test $ac_cv_sys_largefile_source != unknown; then 14007 14008$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h 14009 14010fi 14011 14012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5 14013$as_echo_n "checking for mbstate_t... " >&6; } 14014if ${ac_cv_type_mbstate_t+:} false; then : 14015 $as_echo_n "(cached) " >&6 14016else 14017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14018/* end confdefs.h. */ 14019$ac_includes_default 14020# include <wchar.h> 14021int 14022main () 14023{ 14024mbstate_t x; return sizeof x; 14025 ; 14026 return 0; 14027} 14028_ACEOF 14029if ac_fn_c_try_compile "$LINENO"; then : 14030 ac_cv_type_mbstate_t=yes 14031else 14032 ac_cv_type_mbstate_t=no 14033fi 14034rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14035fi 14036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5 14037$as_echo "$ac_cv_type_mbstate_t" >&6; } 14038 if test $ac_cv_type_mbstate_t = yes; then 14039 14040$as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h 14041 14042 else 14043 14044$as_echo "#define mbstate_t int" >>confdefs.h 14045 14046 fi 14047 14048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct option in getopt" >&5 14049$as_echo_n "checking for struct option in getopt... " >&6; } 14050if ${ac_cv_struct_option_getopt_h+:} false; then : 14051 $as_echo_n "(cached) " >&6 14052else 14053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14054/* end confdefs.h. */ 14055#include <getopt.h> 14056int 14057main () 14058{ 14059struct option op; op.name; 14060 ; 14061 return 0; 14062} 14063_ACEOF 14064if ac_fn_c_try_compile "$LINENO"; then : 14065 ac_cv_struct_option_getopt_h=yes 14066else 14067 ac_cv_struct_option_getopt_h=no 14068fi 14069rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14070fi 14071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_option_getopt_h" >&5 14072$as_echo "$ac_cv_struct_option_getopt_h" >&6; } 14073if test "$ac_cv_struct_option_getopt_h" = yes; then 14074 14075$as_echo "#define HAVE_STRUCT_OPTION 1" >>confdefs.h 14076 14077fi 14078 14079ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" 14080if test "x$ac_cv_type_pid_t" = xyes; then : 14081 14082else 14083 14084cat >>confdefs.h <<_ACEOF 14085#define pid_t int 14086_ACEOF 14087 14088fi 14089 14090ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t" 14091case $ac_cv_c_uint8_t in #( 14092 no|yes) ;; #( 14093 *) 14094 14095$as_echo "#define _UINT8_T 1" >>confdefs.h 14096 14097 14098cat >>confdefs.h <<_ACEOF 14099#define uint8_t $ac_cv_c_uint8_t 14100_ACEOF 14101;; 14102 esac 14103 14104ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t" 14105case $ac_cv_c_uint16_t in #( 14106 no|yes) ;; #( 14107 *) 14108 14109 14110cat >>confdefs.h <<_ACEOF 14111#define uint16_t $ac_cv_c_uint16_t 14112_ACEOF 14113;; 14114 esac 14115 14116ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t" 14117case $ac_cv_c_uint32_t in #( 14118 no|yes) ;; #( 14119 *) 14120 14121$as_echo "#define _UINT32_T 1" >>confdefs.h 14122 14123 14124cat >>confdefs.h <<_ACEOF 14125#define uint32_t $ac_cv_c_uint32_t 14126_ACEOF 14127;; 14128 esac 14129 14130ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t" 14131case $ac_cv_c_int32_t in #( 14132 no|yes) ;; #( 14133 *) 14134 14135cat >>confdefs.h <<_ACEOF 14136#define int32_t $ac_cv_c_int32_t 14137_ACEOF 14138;; 14139esac 14140 14141ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t" 14142case $ac_cv_c_uint64_t in #( 14143 no|yes) ;; #( 14144 *) 14145 14146$as_echo "#define _UINT64_T 1" >>confdefs.h 14147 14148 14149cat >>confdefs.h <<_ACEOF 14150#define uint64_t $ac_cv_c_uint64_t 14151_ACEOF 14152;; 14153 esac 14154 14155ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t" 14156case $ac_cv_c_int64_t in #( 14157 no|yes) ;; #( 14158 *) 14159 14160cat >>confdefs.h <<_ACEOF 14161#define int64_t $ac_cv_c_int64_t 14162_ACEOF 14163;; 14164esac 14165 14166 14167 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default" 14168if test "x$ac_cv_type_intptr_t" = xyes; then : 14169 14170$as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h 14171 14172else 14173 for ac_type in 'int' 'long int' 'long long int'; do 14174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14175/* end confdefs.h. */ 14176$ac_includes_default 14177int 14178main () 14179{ 14180static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))]; 14181test_array [0] = 0; 14182return test_array [0]; 14183 14184 ; 14185 return 0; 14186} 14187_ACEOF 14188if ac_fn_c_try_compile "$LINENO"; then : 14189 14190cat >>confdefs.h <<_ACEOF 14191#define intptr_t $ac_type 14192_ACEOF 14193 14194 ac_type= 14195fi 14196rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14197 test -z "$ac_type" && break 14198 done 14199fi 14200 14201 14202 14203 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default" 14204if test "x$ac_cv_type_uintptr_t" = xyes; then : 14205 14206$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h 14207 14208else 14209 for ac_type in 'unsigned int' 'unsigned long int' \ 14210 'unsigned long long int'; do 14211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14212/* end confdefs.h. */ 14213$ac_includes_default 14214int 14215main () 14216{ 14217static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))]; 14218test_array [0] = 0; 14219return test_array [0]; 14220 14221 ; 14222 return 0; 14223} 14224_ACEOF 14225if ac_fn_c_try_compile "$LINENO"; then : 14226 14227cat >>confdefs.h <<_ACEOF 14228#define uintptr_t $ac_type 14229_ACEOF 14230 14231 ac_type= 14232fi 14233rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14234 test -z "$ac_type" && break 14235 done 14236fi 14237 14238 14239 14240 14241 14242 for ac_header in $ac_header_list 14243do : 14244 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 14245ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 14246" 14247if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 14248 cat >>confdefs.h <<_ACEOF 14249#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 14250_ACEOF 14251 14252fi 14253 14254done 14255 14256 14257 14258 14259 14260 14261 14262 14263for ac_func in getpagesize 14264do : 14265 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" 14266if test "x$ac_cv_func_getpagesize" = xyes; then : 14267 cat >>confdefs.h <<_ACEOF 14268#define HAVE_GETPAGESIZE 1 14269_ACEOF 14270 14271fi 14272done 14273 14274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5 14275$as_echo_n "checking for working mmap... " >&6; } 14276if ${ac_cv_func_mmap_fixed_mapped+:} false; then : 14277 $as_echo_n "(cached) " >&6 14278else 14279 if test "$cross_compiling" = yes; then : 14280 ac_cv_func_mmap_fixed_mapped=no 14281else 14282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14283/* end confdefs.h. */ 14284$ac_includes_default 14285/* malloc might have been renamed as rpl_malloc. */ 14286#undef malloc 14287 14288/* Thanks to Mike Haertel and Jim Avera for this test. 14289 Here is a matrix of mmap possibilities: 14290 mmap private not fixed 14291 mmap private fixed at somewhere currently unmapped 14292 mmap private fixed at somewhere already mapped 14293 mmap shared not fixed 14294 mmap shared fixed at somewhere currently unmapped 14295 mmap shared fixed at somewhere already mapped 14296 For private mappings, we should verify that changes cannot be read() 14297 back from the file, nor mmap's back from the file at a different 14298 address. (There have been systems where private was not correctly 14299 implemented like the infamous i386 svr4.0, and systems where the 14300 VM page cache was not coherent with the file system buffer cache 14301 like early versions of FreeBSD and possibly contemporary NetBSD.) 14302 For shared mappings, we should conversely verify that changes get 14303 propagated back to all the places they're supposed to be. 14304 14305 Grep wants private fixed already mapped. 14306 The main things grep needs to know about mmap are: 14307 * does it exist and is it safe to write into the mmap'd area 14308 * how to use it (BSD variants) */ 14309 14310#include <fcntl.h> 14311#include <sys/mman.h> 14312 14313#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H 14314char *malloc (); 14315#endif 14316 14317/* This mess was copied from the GNU getpagesize.h. */ 14318#ifndef HAVE_GETPAGESIZE 14319# ifdef _SC_PAGESIZE 14320# define getpagesize() sysconf(_SC_PAGESIZE) 14321# else /* no _SC_PAGESIZE */ 14322# ifdef HAVE_SYS_PARAM_H 14323# include <sys/param.h> 14324# ifdef EXEC_PAGESIZE 14325# define getpagesize() EXEC_PAGESIZE 14326# else /* no EXEC_PAGESIZE */ 14327# ifdef NBPG 14328# define getpagesize() NBPG * CLSIZE 14329# ifndef CLSIZE 14330# define CLSIZE 1 14331# endif /* no CLSIZE */ 14332# else /* no NBPG */ 14333# ifdef NBPC 14334# define getpagesize() NBPC 14335# else /* no NBPC */ 14336# ifdef PAGESIZE 14337# define getpagesize() PAGESIZE 14338# endif /* PAGESIZE */ 14339# endif /* no NBPC */ 14340# endif /* no NBPG */ 14341# endif /* no EXEC_PAGESIZE */ 14342# else /* no HAVE_SYS_PARAM_H */ 14343# define getpagesize() 8192 /* punt totally */ 14344# endif /* no HAVE_SYS_PARAM_H */ 14345# endif /* no _SC_PAGESIZE */ 14346 14347#endif /* no HAVE_GETPAGESIZE */ 14348 14349int 14350main () 14351{ 14352 char *data, *data2, *data3; 14353 const char *cdata2; 14354 int i, pagesize; 14355 int fd, fd2; 14356 14357 pagesize = getpagesize (); 14358 14359 /* First, make a file with some known garbage in it. */ 14360 data = (char *) malloc (pagesize); 14361 if (!data) 14362 return 1; 14363 for (i = 0; i < pagesize; ++i) 14364 *(data + i) = rand (); 14365 umask (0); 14366 fd = creat ("conftest.mmap", 0600); 14367 if (fd < 0) 14368 return 2; 14369 if (write (fd, data, pagesize) != pagesize) 14370 return 3; 14371 close (fd); 14372 14373 /* Next, check that the tail of a page is zero-filled. File must have 14374 non-zero length, otherwise we risk SIGBUS for entire page. */ 14375 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600); 14376 if (fd2 < 0) 14377 return 4; 14378 cdata2 = ""; 14379 if (write (fd2, cdata2, 1) != 1) 14380 return 5; 14381 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L); 14382 if (data2 == MAP_FAILED) 14383 return 6; 14384 for (i = 0; i < pagesize; ++i) 14385 if (*(data2 + i)) 14386 return 7; 14387 close (fd2); 14388 if (munmap (data2, pagesize)) 14389 return 8; 14390 14391 /* Next, try to mmap the file at a fixed address which already has 14392 something else allocated at it. If we can, also make sure that 14393 we see the same garbage. */ 14394 fd = open ("conftest.mmap", O_RDWR); 14395 if (fd < 0) 14396 return 9; 14397 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, 14398 MAP_PRIVATE | MAP_FIXED, fd, 0L)) 14399 return 10; 14400 for (i = 0; i < pagesize; ++i) 14401 if (*(data + i) != *(data2 + i)) 14402 return 11; 14403 14404 /* Finally, make sure that changes to the mapped area do not 14405 percolate back to the file as seen by read(). (This is a bug on 14406 some variants of i386 svr4.0.) */ 14407 for (i = 0; i < pagesize; ++i) 14408 *(data2 + i) = *(data2 + i) + 1; 14409 data3 = (char *) malloc (pagesize); 14410 if (!data3) 14411 return 12; 14412 if (read (fd, data3, pagesize) != pagesize) 14413 return 13; 14414 for (i = 0; i < pagesize; ++i) 14415 if (*(data + i) != *(data3 + i)) 14416 return 14; 14417 close (fd); 14418 return 0; 14419} 14420_ACEOF 14421if ac_fn_c_try_run "$LINENO"; then : 14422 ac_cv_func_mmap_fixed_mapped=yes 14423else 14424 ac_cv_func_mmap_fixed_mapped=no 14425fi 14426rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14427 conftest.$ac_objext conftest.beam conftest.$ac_ext 14428fi 14429 14430fi 14431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5 14432$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } 14433if test $ac_cv_func_mmap_fixed_mapped = yes; then 14434 14435$as_echo "#define HAVE_MMAP 1" >>confdefs.h 14436 14437fi 14438rm -f conftest.mmap conftest.txt 14439 14440for ac_header in vfork.h 14441do : 14442 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default" 14443if test "x$ac_cv_header_vfork_h" = xyes; then : 14444 cat >>confdefs.h <<_ACEOF 14445#define HAVE_VFORK_H 1 14446_ACEOF 14447 14448fi 14449 14450done 14451 14452for ac_func in fork vfork 14453do : 14454 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 14455ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 14456if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 14457 cat >>confdefs.h <<_ACEOF 14458#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 14459_ACEOF 14460 14461fi 14462done 14463 14464if test "x$ac_cv_func_fork" = xyes; then 14465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5 14466$as_echo_n "checking for working fork... " >&6; } 14467if ${ac_cv_func_fork_works+:} false; then : 14468 $as_echo_n "(cached) " >&6 14469else 14470 if test "$cross_compiling" = yes; then : 14471 ac_cv_func_fork_works=cross 14472else 14473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14474/* end confdefs.h. */ 14475$ac_includes_default 14476int 14477main () 14478{ 14479 14480 /* By Ruediger Kuhlmann. */ 14481 return fork () < 0; 14482 14483 ; 14484 return 0; 14485} 14486_ACEOF 14487if ac_fn_c_try_run "$LINENO"; then : 14488 ac_cv_func_fork_works=yes 14489else 14490 ac_cv_func_fork_works=no 14491fi 14492rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14493 conftest.$ac_objext conftest.beam conftest.$ac_ext 14494fi 14495 14496fi 14497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5 14498$as_echo "$ac_cv_func_fork_works" >&6; } 14499 14500else 14501 ac_cv_func_fork_works=$ac_cv_func_fork 14502fi 14503if test "x$ac_cv_func_fork_works" = xcross; then 14504 case $host in 14505 *-*-amigaos* | *-*-msdosdjgpp*) 14506 # Override, as these systems have only a dummy fork() stub 14507 ac_cv_func_fork_works=no 14508 ;; 14509 *) 14510 ac_cv_func_fork_works=yes 14511 ;; 14512 esac 14513 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 14514$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} 14515fi 14516ac_cv_func_vfork_works=$ac_cv_func_vfork 14517if test "x$ac_cv_func_vfork" = xyes; then 14518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5 14519$as_echo_n "checking for working vfork... " >&6; } 14520if ${ac_cv_func_vfork_works+:} false; then : 14521 $as_echo_n "(cached) " >&6 14522else 14523 if test "$cross_compiling" = yes; then : 14524 ac_cv_func_vfork_works=cross 14525else 14526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14527/* end confdefs.h. */ 14528/* Thanks to Paul Eggert for this test. */ 14529$ac_includes_default 14530#include <sys/wait.h> 14531#ifdef HAVE_VFORK_H 14532# include <vfork.h> 14533#endif 14534/* On some sparc systems, changes by the child to local and incoming 14535 argument registers are propagated back to the parent. The compiler 14536 is told about this with #include <vfork.h>, but some compilers 14537 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a 14538 static variable whose address is put into a register that is 14539 clobbered by the vfork. */ 14540static void 14541#ifdef __cplusplus 14542sparc_address_test (int arg) 14543# else 14544sparc_address_test (arg) int arg; 14545#endif 14546{ 14547 static pid_t child; 14548 if (!child) { 14549 child = vfork (); 14550 if (child < 0) { 14551 perror ("vfork"); 14552 _exit(2); 14553 } 14554 if (!child) { 14555 arg = getpid(); 14556 write(-1, "", 0); 14557 _exit (arg); 14558 } 14559 } 14560} 14561 14562int 14563main () 14564{ 14565 pid_t parent = getpid (); 14566 pid_t child; 14567 14568 sparc_address_test (0); 14569 14570 child = vfork (); 14571 14572 if (child == 0) { 14573 /* Here is another test for sparc vfork register problems. This 14574 test uses lots of local variables, at least as many local 14575 variables as main has allocated so far including compiler 14576 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris 14577 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should 14578 reuse the register of parent for one of the local variables, 14579 since it will think that parent can't possibly be used any more 14580 in this routine. Assigning to the local variable will thus 14581 munge parent in the parent process. */ 14582 pid_t 14583 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), 14584 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); 14585 /* Convince the compiler that p..p7 are live; otherwise, it might 14586 use the same hardware register for all 8 local variables. */ 14587 if (p != p1 || p != p2 || p != p3 || p != p4 14588 || p != p5 || p != p6 || p != p7) 14589 _exit(1); 14590 14591 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent 14592 from child file descriptors. If the child closes a descriptor 14593 before it execs or exits, this munges the parent's descriptor 14594 as well. Test for this by closing stdout in the child. */ 14595 _exit(close(fileno(stdout)) != 0); 14596 } else { 14597 int status; 14598 struct stat st; 14599 14600 while (wait(&status) != child) 14601 ; 14602 return ( 14603 /* Was there some problem with vforking? */ 14604 child < 0 14605 14606 /* Did the child fail? (This shouldn't happen.) */ 14607 || status 14608 14609 /* Did the vfork/compiler bug occur? */ 14610 || parent != getpid() 14611 14612 /* Did the file descriptor bug occur? */ 14613 || fstat(fileno(stdout), &st) != 0 14614 ); 14615 } 14616} 14617_ACEOF 14618if ac_fn_c_try_run "$LINENO"; then : 14619 ac_cv_func_vfork_works=yes 14620else 14621 ac_cv_func_vfork_works=no 14622fi 14623rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14624 conftest.$ac_objext conftest.beam conftest.$ac_ext 14625fi 14626 14627fi 14628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5 14629$as_echo "$ac_cv_func_vfork_works" >&6; } 14630 14631fi; 14632if test "x$ac_cv_func_fork_works" = xcross; then 14633 ac_cv_func_vfork_works=$ac_cv_func_vfork 14634 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 14635$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} 14636fi 14637 14638if test "x$ac_cv_func_vfork_works" = xyes; then 14639 14640$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h 14641 14642else 14643 14644$as_echo "#define vfork fork" >>confdefs.h 14645 14646fi 14647if test "x$ac_cv_func_fork_works" = xyes; then 14648 14649$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h 14650 14651fi 14652 14653 14654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc and mbstate_t are properly declared" >&5 14655$as_echo_n "checking whether mbrtowc and mbstate_t are properly declared... " >&6; } 14656if ${ac_cv_func_mbrtowc+:} false; then : 14657 $as_echo_n "(cached) " >&6 14658else 14659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14660/* end confdefs.h. */ 14661#include <wchar.h> 14662int 14663main () 14664{ 14665wchar_t wc; 14666 char const s[] = ""; 14667 size_t n = 1; 14668 mbstate_t state; 14669 return ! (sizeof state && (mbrtowc) (&wc, s, n, &state)); 14670 ; 14671 return 0; 14672} 14673_ACEOF 14674if ac_fn_c_try_link "$LINENO"; then : 14675 ac_cv_func_mbrtowc=yes 14676else 14677 ac_cv_func_mbrtowc=no 14678fi 14679rm -f core conftest.err conftest.$ac_objext \ 14680 conftest$ac_exeext conftest.$ac_ext 14681fi 14682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mbrtowc" >&5 14683$as_echo "$ac_cv_func_mbrtowc" >&6; } 14684 if test $ac_cv_func_mbrtowc = yes; then 14685 14686$as_echo "#define HAVE_MBRTOWC 1" >>confdefs.h 14687 14688 fi 14689 14690 14691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc compiler warnings" >&5 14692$as_echo_n "checking for gcc compiler warnings... " >&6; } 14693# Check whether --enable-warnings was given. 14694if test "${enable_warnings+set}" = set; then : 14695 enableval=$enable_warnings; if test "${enableval}" = no -o "$GCC" = no; then 14696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14697$as_echo "no" >&6; } 14698 WARNINGS= 14699else 14700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14701$as_echo "yes" >&6; } 14702 WARNINGS="-Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith \ 14703 -Wmissing-declarations -Wredundant-decls -Wnested-externs \ 14704 -Wsign-compare -Wreturn-type -Wswitch -Wshadow \ 14705 -Wcast-qual -Wwrite-strings -Wextra -Wunused-parameter -Wformat=2" 14706fi 14707else 14708 14709if test "$GCC" = yes; then 14710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14711$as_echo "yes" >&6; } 14712 WARNINGS="-Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith \ 14713 -Wmissing-declarations -Wredundant-decls -Wnested-externs \ 14714 -Wsign-compare -Wreturn-type -Wswitch -Wshadow \ 14715 -Wcast-qual -Wwrite-strings -Wextra -Wunused-parameter -Wformat=2" 14716else 14717 WARNINGS= 14718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14719$as_echo "no" >&6; } 14720fi 14721fi 14722 14723 14724for ac_func in strndup mkstemp mkostemp utimes utime wcwidth strtof newlocale uselocale freelocale memmem pipe2 14725do : 14726 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 14727ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 14728if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 14729 cat >>confdefs.h <<_ACEOF 14730#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 14731_ACEOF 14732 14733fi 14734done 14735 14736 14737ac_fn_c_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long" 14738if test "x$ac_cv_func_getopt_long" = xyes; then : 14739 $as_echo "#define HAVE_GETOPT_LONG 1" >>confdefs.h 14740 14741else 14742 case " $LIBOBJS " in 14743 *" getopt_long.$ac_objext "* ) ;; 14744 *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext" 14745 ;; 14746esac 14747 14748fi 14749 14750ac_fn_c_check_func "$LINENO" "asprintf" "ac_cv_func_asprintf" 14751if test "x$ac_cv_func_asprintf" = xyes; then : 14752 $as_echo "#define HAVE_ASPRINTF 1" >>confdefs.h 14753 14754else 14755 case " $LIBOBJS " in 14756 *" asprintf.$ac_objext "* ) ;; 14757 *) LIBOBJS="$LIBOBJS asprintf.$ac_objext" 14758 ;; 14759esac 14760 14761fi 14762 14763ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf" 14764if test "x$ac_cv_func_vasprintf" = xyes; then : 14765 $as_echo "#define HAVE_VASPRINTF 1" >>confdefs.h 14766 14767else 14768 case " $LIBOBJS " in 14769 *" vasprintf.$ac_objext "* ) ;; 14770 *) LIBOBJS="$LIBOBJS vasprintf.$ac_objext" 14771 ;; 14772esac 14773 14774fi 14775 14776ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy" 14777if test "x$ac_cv_func_strlcpy" = xyes; then : 14778 $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h 14779 14780else 14781 case " $LIBOBJS " in 14782 *" strlcpy.$ac_objext "* ) ;; 14783 *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext" 14784 ;; 14785esac 14786 14787fi 14788 14789ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat" 14790if test "x$ac_cv_func_strlcat" = xyes; then : 14791 $as_echo "#define HAVE_STRLCAT 1" >>confdefs.h 14792 14793else 14794 case " $LIBOBJS " in 14795 *" strlcat.$ac_objext "* ) ;; 14796 *) LIBOBJS="$LIBOBJS strlcat.$ac_objext" 14797 ;; 14798esac 14799 14800fi 14801 14802ac_fn_c_check_func "$LINENO" "getline" "ac_cv_func_getline" 14803if test "x$ac_cv_func_getline" = xyes; then : 14804 $as_echo "#define HAVE_GETLINE 1" >>confdefs.h 14805 14806else 14807 case " $LIBOBJS " in 14808 *" getline.$ac_objext "* ) ;; 14809 *) LIBOBJS="$LIBOBJS getline.$ac_objext" 14810 ;; 14811esac 14812 14813fi 14814 14815ac_fn_c_check_func "$LINENO" "ctime_r" "ac_cv_func_ctime_r" 14816if test "x$ac_cv_func_ctime_r" = xyes; then : 14817 $as_echo "#define HAVE_CTIME_R 1" >>confdefs.h 14818 14819else 14820 case " $LIBOBJS " in 14821 *" ctime_r.$ac_objext "* ) ;; 14822 *) LIBOBJS="$LIBOBJS ctime_r.$ac_objext" 14823 ;; 14824esac 14825 14826fi 14827 14828ac_fn_c_check_func "$LINENO" "asctime_r" "ac_cv_func_asctime_r" 14829if test "x$ac_cv_func_asctime_r" = xyes; then : 14830 $as_echo "#define HAVE_ASCTIME_R 1" >>confdefs.h 14831 14832else 14833 case " $LIBOBJS " in 14834 *" asctime_r.$ac_objext "* ) ;; 14835 *) LIBOBJS="$LIBOBJS asctime_r.$ac_objext" 14836 ;; 14837esac 14838 14839fi 14840 14841ac_fn_c_check_func "$LINENO" "localtime_r" "ac_cv_func_localtime_r" 14842if test "x$ac_cv_func_localtime_r" = xyes; then : 14843 $as_echo "#define HAVE_LOCALTIME_R 1" >>confdefs.h 14844 14845else 14846 case " $LIBOBJS " in 14847 *" localtime_r.$ac_objext "* ) ;; 14848 *) LIBOBJS="$LIBOBJS localtime_r.$ac_objext" 14849 ;; 14850esac 14851 14852fi 14853 14854ac_fn_c_check_func "$LINENO" "gmtime_r" "ac_cv_func_gmtime_r" 14855if test "x$ac_cv_func_gmtime_r" = xyes; then : 14856 $as_echo "#define HAVE_GMTIME_R 1" >>confdefs.h 14857 14858else 14859 case " $LIBOBJS " in 14860 *" gmtime_r.$ac_objext "* ) ;; 14861 *) LIBOBJS="$LIBOBJS gmtime_r.$ac_objext" 14862 ;; 14863esac 14864 14865fi 14866 14867ac_fn_c_check_func "$LINENO" "pread" "ac_cv_func_pread" 14868if test "x$ac_cv_func_pread" = xyes; then : 14869 $as_echo "#define HAVE_PREAD 1" >>confdefs.h 14870 14871else 14872 case " $LIBOBJS " in 14873 *" pread.$ac_objext "* ) ;; 14874 *) LIBOBJS="$LIBOBJS pread.$ac_objext" 14875 ;; 14876esac 14877 14878fi 14879 14880ac_fn_c_check_func "$LINENO" "strcasestr" "ac_cv_func_strcasestr" 14881if test "x$ac_cv_func_strcasestr" = xyes; then : 14882 $as_echo "#define HAVE_STRCASESTR 1" >>confdefs.h 14883 14884else 14885 case " $LIBOBJS " in 14886 *" strcasestr.$ac_objext "* ) ;; 14887 *) LIBOBJS="$LIBOBJS strcasestr.$ac_objext" 14888 ;; 14889esac 14890 14891fi 14892 14893ac_fn_c_check_func "$LINENO" "fmtcheck" "ac_cv_func_fmtcheck" 14894if test "x$ac_cv_func_fmtcheck" = xyes; then : 14895 $as_echo "#define HAVE_FMTCHECK 1" >>confdefs.h 14896 14897else 14898 case " $LIBOBJS " in 14899 *" fmtcheck.$ac_objext "* ) ;; 14900 *) LIBOBJS="$LIBOBJS fmtcheck.$ac_objext" 14901 ;; 14902esac 14903 14904fi 14905 14906ac_fn_c_check_func "$LINENO" "dprintf" "ac_cv_func_dprintf" 14907if test "x$ac_cv_func_dprintf" = xyes; then : 14908 $as_echo "#define HAVE_DPRINTF 1" >>confdefs.h 14909 14910else 14911 case " $LIBOBJS " in 14912 *" dprintf.$ac_objext "* ) ;; 14913 *) LIBOBJS="$LIBOBJS dprintf.$ac_objext" 14914 ;; 14915esac 14916 14917fi 14918 14919 14920 14921if test "$enable_zlib" != "no"; then 14922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzopen in -lz" >&5 14923$as_echo_n "checking for gzopen in -lz... " >&6; } 14924if ${ac_cv_lib_z_gzopen+:} false; then : 14925 $as_echo_n "(cached) " >&6 14926else 14927 ac_check_lib_save_LIBS=$LIBS 14928LIBS="-lz $LIBS" 14929cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14930/* end confdefs.h. */ 14931 14932/* Override any GCC internal prototype to avoid an error. 14933 Use char because int might match the return type of a GCC 14934 builtin and then its argument prototype would still apply. */ 14935#ifdef __cplusplus 14936extern "C" 14937#endif 14938char gzopen (); 14939int 14940main () 14941{ 14942return gzopen (); 14943 ; 14944 return 0; 14945} 14946_ACEOF 14947if ac_fn_c_try_link "$LINENO"; then : 14948 ac_cv_lib_z_gzopen=yes 14949else 14950 ac_cv_lib_z_gzopen=no 14951fi 14952rm -f core conftest.err conftest.$ac_objext \ 14953 conftest$ac_exeext conftest.$ac_ext 14954LIBS=$ac_check_lib_save_LIBS 14955fi 14956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzopen" >&5 14957$as_echo "$ac_cv_lib_z_gzopen" >&6; } 14958if test "x$ac_cv_lib_z_gzopen" = xyes; then : 14959 cat >>confdefs.h <<_ACEOF 14960#define HAVE_LIBZ 1 14961_ACEOF 14962 14963 LIBS="-lz $LIBS" 14964 14965fi 14966 14967fi 14968if test "$enable_bzlib" != "no"; then 14969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzCompressInit in -lbz2" >&5 14970$as_echo_n "checking for BZ2_bzCompressInit in -lbz2... " >&6; } 14971if ${ac_cv_lib_bz2_BZ2_bzCompressInit+:} false; then : 14972 $as_echo_n "(cached) " >&6 14973else 14974 ac_check_lib_save_LIBS=$LIBS 14975LIBS="-lbz2 $LIBS" 14976cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14977/* end confdefs.h. */ 14978 14979/* Override any GCC internal prototype to avoid an error. 14980 Use char because int might match the return type of a GCC 14981 builtin and then its argument prototype would still apply. */ 14982#ifdef __cplusplus 14983extern "C" 14984#endif 14985char BZ2_bzCompressInit (); 14986int 14987main () 14988{ 14989return BZ2_bzCompressInit (); 14990 ; 14991 return 0; 14992} 14993_ACEOF 14994if ac_fn_c_try_link "$LINENO"; then : 14995 ac_cv_lib_bz2_BZ2_bzCompressInit=yes 14996else 14997 ac_cv_lib_bz2_BZ2_bzCompressInit=no 14998fi 14999rm -f core conftest.err conftest.$ac_objext \ 15000 conftest$ac_exeext conftest.$ac_ext 15001LIBS=$ac_check_lib_save_LIBS 15002fi 15003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzCompressInit" >&5 15004$as_echo "$ac_cv_lib_bz2_BZ2_bzCompressInit" >&6; } 15005if test "x$ac_cv_lib_bz2_BZ2_bzCompressInit" = xyes; then : 15006 cat >>confdefs.h <<_ACEOF 15007#define HAVE_LIBBZ2 1 15008_ACEOF 15009 15010 LIBS="-lbz2 $LIBS" 15011 15012fi 15013 15014fi 15015if test "$enable_xzlib" != "no"; then 15016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzma_stream_decoder in -llzma" >&5 15017$as_echo_n "checking for lzma_stream_decoder in -llzma... " >&6; } 15018if ${ac_cv_lib_lzma_lzma_stream_decoder+:} false; then : 15019 $as_echo_n "(cached) " >&6 15020else 15021 ac_check_lib_save_LIBS=$LIBS 15022LIBS="-llzma $LIBS" 15023cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15024/* end confdefs.h. */ 15025 15026/* Override any GCC internal prototype to avoid an error. 15027 Use char because int might match the return type of a GCC 15028 builtin and then its argument prototype would still apply. */ 15029#ifdef __cplusplus 15030extern "C" 15031#endif 15032char lzma_stream_decoder (); 15033int 15034main () 15035{ 15036return lzma_stream_decoder (); 15037 ; 15038 return 0; 15039} 15040_ACEOF 15041if ac_fn_c_try_link "$LINENO"; then : 15042 ac_cv_lib_lzma_lzma_stream_decoder=yes 15043else 15044 ac_cv_lib_lzma_lzma_stream_decoder=no 15045fi 15046rm -f core conftest.err conftest.$ac_objext \ 15047 conftest$ac_exeext conftest.$ac_ext 15048LIBS=$ac_check_lib_save_LIBS 15049fi 15050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzma_lzma_stream_decoder" >&5 15051$as_echo "$ac_cv_lib_lzma_lzma_stream_decoder" >&6; } 15052if test "x$ac_cv_lib_lzma_lzma_stream_decoder" = xyes; then : 15053 cat >>confdefs.h <<_ACEOF 15054#define HAVE_LIBLZMA 1 15055_ACEOF 15056 15057 LIBS="-llzma $LIBS" 15058 15059fi 15060 15061fi 15062if test "$enable_libseccomp" != "no"; then 15063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for seccomp_init in -lseccomp" >&5 15064$as_echo_n "checking for seccomp_init in -lseccomp... " >&6; } 15065if ${ac_cv_lib_seccomp_seccomp_init+:} false; then : 15066 $as_echo_n "(cached) " >&6 15067else 15068 ac_check_lib_save_LIBS=$LIBS 15069LIBS="-lseccomp $LIBS" 15070cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15071/* end confdefs.h. */ 15072 15073/* Override any GCC internal prototype to avoid an error. 15074 Use char because int might match the return type of a GCC 15075 builtin and then its argument prototype would still apply. */ 15076#ifdef __cplusplus 15077extern "C" 15078#endif 15079char seccomp_init (); 15080int 15081main () 15082{ 15083return seccomp_init (); 15084 ; 15085 return 0; 15086} 15087_ACEOF 15088if ac_fn_c_try_link "$LINENO"; then : 15089 ac_cv_lib_seccomp_seccomp_init=yes 15090else 15091 ac_cv_lib_seccomp_seccomp_init=no 15092fi 15093rm -f core conftest.err conftest.$ac_objext \ 15094 conftest$ac_exeext conftest.$ac_ext 15095LIBS=$ac_check_lib_save_LIBS 15096fi 15097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_seccomp_seccomp_init" >&5 15098$as_echo "$ac_cv_lib_seccomp_seccomp_init" >&6; } 15099if test "x$ac_cv_lib_seccomp_seccomp_init" = xyes; then : 15100 cat >>confdefs.h <<_ACEOF 15101#define HAVE_LIBSECCOMP 1 15102_ACEOF 15103 15104 LIBS="-lseccomp $LIBS" 15105 15106fi 15107 15108fi 15109if test "$MINGW" = 1; then 15110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for regexec in -lgnurx" >&5 15111$as_echo_n "checking for regexec in -lgnurx... " >&6; } 15112if ${ac_cv_lib_gnurx_regexec+:} false; then : 15113 $as_echo_n "(cached) " >&6 15114else 15115 ac_check_lib_save_LIBS=$LIBS 15116LIBS="-lgnurx $LIBS" 15117cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15118/* end confdefs.h. */ 15119 15120/* Override any GCC internal prototype to avoid an error. 15121 Use char because int might match the return type of a GCC 15122 builtin and then its argument prototype would still apply. */ 15123#ifdef __cplusplus 15124extern "C" 15125#endif 15126char regexec (); 15127int 15128main () 15129{ 15130return regexec (); 15131 ; 15132 return 0; 15133} 15134_ACEOF 15135if ac_fn_c_try_link "$LINENO"; then : 15136 ac_cv_lib_gnurx_regexec=yes 15137else 15138 ac_cv_lib_gnurx_regexec=no 15139fi 15140rm -f core conftest.err conftest.$ac_objext \ 15141 conftest$ac_exeext conftest.$ac_ext 15142LIBS=$ac_check_lib_save_LIBS 15143fi 15144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnurx_regexec" >&5 15145$as_echo "$ac_cv_lib_gnurx_regexec" >&6; } 15146if test "x$ac_cv_lib_gnurx_regexec" = xyes; then : 15147 cat >>confdefs.h <<_ACEOF 15148#define HAVE_LIBGNURX 1 15149_ACEOF 15150 15151 LIBS="-lgnurx $LIBS" 15152 15153else 15154 as_fn_error $? "libgnurx is required to build file(1) with MinGW" "$LINENO" 5 15155fi 15156 15157fi 15158 15159 if test "$cross_compiling" = yes; then 15160 IS_CROSS_COMPILE_TRUE= 15161 IS_CROSS_COMPILE_FALSE='#' 15162else 15163 IS_CROSS_COMPILE_TRUE='#' 15164 IS_CROSS_COMPILE_FALSE= 15165fi 15166 15167 15168if test "$enable_zlib" = "yes"; then 15169 if test "$ac_cv_header_zlib_h$ac_cv_lib_z_gzopen" != "yesyes"; then 15170 as_fn_error $? "zlib support requested but not found" "$LINENO" 5 15171 fi 15172fi 15173if test "$ac_cv_header_zlib_h$ac_cv_lib_z_gzopen" = "yesyes"; then 15174 15175$as_echo "#define ZLIBSUPPORT 1" >>confdefs.h 15176 15177fi 15178if test "$enable_bzlib" = "yes"; then 15179 if test "$ac_cv_header_bzlib_h$ac_cv_lib_bz2_BZ2_bzCompressInit" != "yesyes"; then 15180 as_fn_error $? "bzlib support requested but not found" "$LINENO" 5 15181 fi 15182fi 15183if test "$ac_cv_header_bzlib_h$ac_cv_lib_bz2_BZ2_bzCompressInit" = "yesyes"; then 15184 15185$as_echo "#define BZLIBSUPPORT 1" >>confdefs.h 15186 15187fi 15188if test "$enable_xzlib" = "yes"; then 15189 if test "$ac_cv_header_lzma_h$ac_cv_lib_lzma_lzma_stream_decoder" != "yesyes"; then 15190 as_fn_error $? "xzlib support requested but not found" "$LINENO" 5 15191 fi 15192fi 15193if test "$ac_cv_header_lzma_h$ac_cv_lib_lzma_lzma_stream_decoder" = "yesyes"; then 15194 15195$as_echo "#define XZLIBSUPPORT 1" >>confdefs.h 15196 15197fi 15198 15199ac_config_files="$ac_config_files Makefile src/Makefile magic/Makefile tests/Makefile doc/Makefile python/Makefile libmagic.pc" 15200 15201cat >confcache <<\_ACEOF 15202# This file is a shell script that caches the results of configure 15203# tests run on this system so they can be shared between configure 15204# scripts and configure runs, see configure's option --config-cache. 15205# It is not useful on other systems. If it contains results you don't 15206# want to keep, you may remove or edit it. 15207# 15208# config.status only pays attention to the cache file if you give it 15209# the --recheck option to rerun configure. 15210# 15211# `ac_cv_env_foo' variables (set or unset) will be overridden when 15212# loading this file, other *unset* `ac_cv_foo' will be assigned the 15213# following values. 15214 15215_ACEOF 15216 15217# The following way of writing the cache mishandles newlines in values, 15218# but we know of no workaround that is simple, portable, and efficient. 15219# So, we kill variables containing newlines. 15220# Ultrix sh set writes to stderr and can't be redirected directly, 15221# and sets the high bit in the cache file unless we assign to the vars. 15222( 15223 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 15224 eval ac_val=\$$ac_var 15225 case $ac_val in #( 15226 *${as_nl}*) 15227 case $ac_var in #( 15228 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 15229$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 15230 esac 15231 case $ac_var in #( 15232 _ | IFS | as_nl) ;; #( 15233 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 15234 *) { eval $ac_var=; unset $ac_var;} ;; 15235 esac ;; 15236 esac 15237 done 15238 15239 (set) 2>&1 | 15240 case $as_nl`(ac_space=' '; set) 2>&1` in #( 15241 *${as_nl}ac_space=\ *) 15242 # `set' does not quote correctly, so add quotes: double-quote 15243 # substitution turns \\\\ into \\, and sed turns \\ into \. 15244 sed -n \ 15245 "s/'/'\\\\''/g; 15246 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 15247 ;; #( 15248 *) 15249 # `set' quotes correctly as required by POSIX, so do not add quotes. 15250 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 15251 ;; 15252 esac | 15253 sort 15254) | 15255 sed ' 15256 /^ac_cv_env_/b end 15257 t clear 15258 :clear 15259 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 15260 t end 15261 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 15262 :end' >>confcache 15263if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 15264 if test -w "$cache_file"; then 15265 if test "x$cache_file" != "x/dev/null"; then 15266 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 15267$as_echo "$as_me: updating cache $cache_file" >&6;} 15268 if test ! -f "$cache_file" || test -h "$cache_file"; then 15269 cat confcache >"$cache_file" 15270 else 15271 case $cache_file in #( 15272 */* | ?:*) 15273 mv -f confcache "$cache_file"$$ && 15274 mv -f "$cache_file"$$ "$cache_file" ;; #( 15275 *) 15276 mv -f confcache "$cache_file" ;; 15277 esac 15278 fi 15279 fi 15280 else 15281 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 15282$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 15283 fi 15284fi 15285rm -f confcache 15286 15287test "x$prefix" = xNONE && prefix=$ac_default_prefix 15288# Let make expand exec_prefix. 15289test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 15290 15291DEFS=-DHAVE_CONFIG_H 15292 15293ac_libobjs= 15294ac_ltlibobjs= 15295U= 15296for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 15297 # 1. Remove the extension, and $U if already installed. 15298 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 15299 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 15300 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 15301 # will be set to the directory where LIBOBJS objects are built. 15302 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 15303 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 15304done 15305LIBOBJS=$ac_libobjs 15306 15307LTLIBOBJS=$ac_ltlibobjs 15308 15309 15310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 15311$as_echo_n "checking that generated files are newer than configure... " >&6; } 15312 if test -n "$am_sleep_pid"; then 15313 # Hide warnings about reused PIDs. 15314 wait $am_sleep_pid 2>/dev/null 15315 fi 15316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 15317$as_echo "done" >&6; } 15318 if test -n "$EXEEXT"; then 15319 am__EXEEXT_TRUE= 15320 am__EXEEXT_FALSE='#' 15321else 15322 am__EXEEXT_TRUE='#' 15323 am__EXEEXT_FALSE= 15324fi 15325 15326if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 15327 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 15328Usually this means the macro was only invoked conditionally." "$LINENO" 5 15329fi 15330if test -z "${MINGW_TRUE}" && test -z "${MINGW_FALSE}"; then 15331 as_fn_error $? "conditional \"MINGW\" was never defined. 15332Usually this means the macro was only invoked conditionally." "$LINENO" 5 15333fi 15334if test -z "${FSECT5_TRUE}" && test -z "${FSECT5_FALSE}"; then 15335 as_fn_error $? "conditional \"FSECT5\" was never defined. 15336Usually this means the macro was only invoked conditionally." "$LINENO" 5 15337fi 15338if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 15339 as_fn_error $? "conditional \"AMDEP\" was never defined. 15340Usually this means the macro was only invoked conditionally." "$LINENO" 5 15341fi 15342if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 15343 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 15344Usually this means the macro was only invoked conditionally." "$LINENO" 5 15345fi 15346 15347if test -z "${IS_CROSS_COMPILE_TRUE}" && test -z "${IS_CROSS_COMPILE_FALSE}"; then 15348 as_fn_error $? "conditional \"IS_CROSS_COMPILE\" was never defined. 15349Usually this means the macro was only invoked conditionally." "$LINENO" 5 15350fi 15351 15352: "${CONFIG_STATUS=./config.status}" 15353ac_write_fail=0 15354ac_clean_files_save=$ac_clean_files 15355ac_clean_files="$ac_clean_files $CONFIG_STATUS" 15356{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 15357$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 15358as_write_fail=0 15359cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 15360#! $SHELL 15361# Generated by $as_me. 15362# Run this file to recreate the current configuration. 15363# Compiler output produced by configure, useful for debugging 15364# configure, is in config.log if it exists. 15365 15366debug=false 15367ac_cs_recheck=false 15368ac_cs_silent=false 15369 15370SHELL=\${CONFIG_SHELL-$SHELL} 15371export SHELL 15372_ASEOF 15373cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 15374## -------------------- ## 15375## M4sh Initialization. ## 15376## -------------------- ## 15377 15378# Be more Bourne compatible 15379DUALCASE=1; export DUALCASE # for MKS sh 15380if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 15381 emulate sh 15382 NULLCMD=: 15383 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 15384 # is contrary to our usage. Disable this feature. 15385 alias -g '${1+"$@"}'='"$@"' 15386 setopt NO_GLOB_SUBST 15387else 15388 case `(set -o) 2>/dev/null` in #( 15389 *posix*) : 15390 set -o posix ;; #( 15391 *) : 15392 ;; 15393esac 15394fi 15395 15396 15397as_nl=' 15398' 15399export as_nl 15400# Printing a long string crashes Solaris 7 /usr/bin/printf. 15401as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 15402as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 15403as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 15404# Prefer a ksh shell builtin over an external printf program on Solaris, 15405# but without wasting forks for bash or zsh. 15406if test -z "$BASH_VERSION$ZSH_VERSION" \ 15407 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 15408 as_echo='print -r --' 15409 as_echo_n='print -rn --' 15410elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 15411 as_echo='printf %s\n' 15412 as_echo_n='printf %s' 15413else 15414 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 15415 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 15416 as_echo_n='/usr/ucb/echo -n' 15417 else 15418 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 15419 as_echo_n_body='eval 15420 arg=$1; 15421 case $arg in #( 15422 *"$as_nl"*) 15423 expr "X$arg" : "X\\(.*\\)$as_nl"; 15424 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 15425 esac; 15426 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 15427 ' 15428 export as_echo_n_body 15429 as_echo_n='sh -c $as_echo_n_body as_echo' 15430 fi 15431 export as_echo_body 15432 as_echo='sh -c $as_echo_body as_echo' 15433fi 15434 15435# The user is always right. 15436if test "${PATH_SEPARATOR+set}" != set; then 15437 PATH_SEPARATOR=: 15438 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 15439 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 15440 PATH_SEPARATOR=';' 15441 } 15442fi 15443 15444 15445# IFS 15446# We need space, tab and new line, in precisely that order. Quoting is 15447# there to prevent editors from complaining about space-tab. 15448# (If _AS_PATH_WALK were called with IFS unset, it would disable word 15449# splitting by setting IFS to empty value.) 15450IFS=" "" $as_nl" 15451 15452# Find who we are. Look in the path if we contain no directory separator. 15453as_myself= 15454case $0 in #(( 15455 *[\\/]* ) as_myself=$0 ;; 15456 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15457for as_dir in $PATH 15458do 15459 IFS=$as_save_IFS 15460 test -z "$as_dir" && as_dir=. 15461 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 15462 done 15463IFS=$as_save_IFS 15464 15465 ;; 15466esac 15467# We did not find ourselves, most probably we were run as `sh COMMAND' 15468# in which case we are not to be found in the path. 15469if test "x$as_myself" = x; then 15470 as_myself=$0 15471fi 15472if test ! -f "$as_myself"; then 15473 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 15474 exit 1 15475fi 15476 15477# Unset variables that we do not need and which cause bugs (e.g. in 15478# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 15479# suppresses any "Segmentation fault" message there. '((' could 15480# trigger a bug in pdksh 5.2.14. 15481for as_var in BASH_ENV ENV MAIL MAILPATH 15482do eval test x\${$as_var+set} = xset \ 15483 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 15484done 15485PS1='$ ' 15486PS2='> ' 15487PS4='+ ' 15488 15489# NLS nuisances. 15490LC_ALL=C 15491export LC_ALL 15492LANGUAGE=C 15493export LANGUAGE 15494 15495# CDPATH. 15496(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 15497 15498 15499# as_fn_error STATUS ERROR [LINENO LOG_FD] 15500# ---------------------------------------- 15501# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 15502# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 15503# script with STATUS, using 1 if that was 0. 15504as_fn_error () 15505{ 15506 as_status=$1; test $as_status -eq 0 && as_status=1 15507 if test "$4"; then 15508 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 15509 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 15510 fi 15511 $as_echo "$as_me: error: $2" >&2 15512 as_fn_exit $as_status 15513} # as_fn_error 15514 15515 15516# as_fn_set_status STATUS 15517# ----------------------- 15518# Set $? to STATUS, without forking. 15519as_fn_set_status () 15520{ 15521 return $1 15522} # as_fn_set_status 15523 15524# as_fn_exit STATUS 15525# ----------------- 15526# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 15527as_fn_exit () 15528{ 15529 set +e 15530 as_fn_set_status $1 15531 exit $1 15532} # as_fn_exit 15533 15534# as_fn_unset VAR 15535# --------------- 15536# Portably unset VAR. 15537as_fn_unset () 15538{ 15539 { eval $1=; unset $1;} 15540} 15541as_unset=as_fn_unset 15542# as_fn_append VAR VALUE 15543# ---------------------- 15544# Append the text in VALUE to the end of the definition contained in VAR. Take 15545# advantage of any shell optimizations that allow amortized linear growth over 15546# repeated appends, instead of the typical quadratic growth present in naive 15547# implementations. 15548if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 15549 eval 'as_fn_append () 15550 { 15551 eval $1+=\$2 15552 }' 15553else 15554 as_fn_append () 15555 { 15556 eval $1=\$$1\$2 15557 } 15558fi # as_fn_append 15559 15560# as_fn_arith ARG... 15561# ------------------ 15562# Perform arithmetic evaluation on the ARGs, and store the result in the 15563# global $as_val. Take advantage of shells that can avoid forks. The arguments 15564# must be portable across $(()) and expr. 15565if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 15566 eval 'as_fn_arith () 15567 { 15568 as_val=$(( $* )) 15569 }' 15570else 15571 as_fn_arith () 15572 { 15573 as_val=`expr "$@" || test $? -eq 1` 15574 } 15575fi # as_fn_arith 15576 15577 15578if expr a : '\(a\)' >/dev/null 2>&1 && 15579 test "X`expr 00001 : '.*\(...\)'`" = X001; then 15580 as_expr=expr 15581else 15582 as_expr=false 15583fi 15584 15585if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 15586 as_basename=basename 15587else 15588 as_basename=false 15589fi 15590 15591if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 15592 as_dirname=dirname 15593else 15594 as_dirname=false 15595fi 15596 15597as_me=`$as_basename -- "$0" || 15598$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 15599 X"$0" : 'X\(//\)$' \| \ 15600 X"$0" : 'X\(/\)' \| . 2>/dev/null || 15601$as_echo X/"$0" | 15602 sed '/^.*\/\([^/][^/]*\)\/*$/{ 15603 s//\1/ 15604 q 15605 } 15606 /^X\/\(\/\/\)$/{ 15607 s//\1/ 15608 q 15609 } 15610 /^X\/\(\/\).*/{ 15611 s//\1/ 15612 q 15613 } 15614 s/.*/./; q'` 15615 15616# Avoid depending upon Character Ranges. 15617as_cr_letters='abcdefghijklmnopqrstuvwxyz' 15618as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 15619as_cr_Letters=$as_cr_letters$as_cr_LETTERS 15620as_cr_digits='0123456789' 15621as_cr_alnum=$as_cr_Letters$as_cr_digits 15622 15623ECHO_C= ECHO_N= ECHO_T= 15624case `echo -n x` in #((((( 15625-n*) 15626 case `echo 'xy\c'` in 15627 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 15628 xy) ECHO_C='\c';; 15629 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 15630 ECHO_T=' ';; 15631 esac;; 15632*) 15633 ECHO_N='-n';; 15634esac 15635 15636rm -f conf$$ conf$$.exe conf$$.file 15637if test -d conf$$.dir; then 15638 rm -f conf$$.dir/conf$$.file 15639else 15640 rm -f conf$$.dir 15641 mkdir conf$$.dir 2>/dev/null 15642fi 15643if (echo >conf$$.file) 2>/dev/null; then 15644 if ln -s conf$$.file conf$$ 2>/dev/null; then 15645 as_ln_s='ln -s' 15646 # ... but there are two gotchas: 15647 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 15648 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 15649 # In both cases, we have to default to `cp -pR'. 15650 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 15651 as_ln_s='cp -pR' 15652 elif ln conf$$.file conf$$ 2>/dev/null; then 15653 as_ln_s=ln 15654 else 15655 as_ln_s='cp -pR' 15656 fi 15657else 15658 as_ln_s='cp -pR' 15659fi 15660rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 15661rmdir conf$$.dir 2>/dev/null 15662 15663 15664# as_fn_mkdir_p 15665# ------------- 15666# Create "$as_dir" as a directory, including parents if necessary. 15667as_fn_mkdir_p () 15668{ 15669 15670 case $as_dir in #( 15671 -*) as_dir=./$as_dir;; 15672 esac 15673 test -d "$as_dir" || eval $as_mkdir_p || { 15674 as_dirs= 15675 while :; do 15676 case $as_dir in #( 15677 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 15678 *) as_qdir=$as_dir;; 15679 esac 15680 as_dirs="'$as_qdir' $as_dirs" 15681 as_dir=`$as_dirname -- "$as_dir" || 15682$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15683 X"$as_dir" : 'X\(//\)[^/]' \| \ 15684 X"$as_dir" : 'X\(//\)$' \| \ 15685 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 15686$as_echo X"$as_dir" | 15687 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15688 s//\1/ 15689 q 15690 } 15691 /^X\(\/\/\)[^/].*/{ 15692 s//\1/ 15693 q 15694 } 15695 /^X\(\/\/\)$/{ 15696 s//\1/ 15697 q 15698 } 15699 /^X\(\/\).*/{ 15700 s//\1/ 15701 q 15702 } 15703 s/.*/./; q'` 15704 test -d "$as_dir" && break 15705 done 15706 test -z "$as_dirs" || eval "mkdir $as_dirs" 15707 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 15708 15709 15710} # as_fn_mkdir_p 15711if mkdir -p . 2>/dev/null; then 15712 as_mkdir_p='mkdir -p "$as_dir"' 15713else 15714 test -d ./-p && rmdir ./-p 15715 as_mkdir_p=false 15716fi 15717 15718 15719# as_fn_executable_p FILE 15720# ----------------------- 15721# Test if FILE is an executable regular file. 15722as_fn_executable_p () 15723{ 15724 test -f "$1" && test -x "$1" 15725} # as_fn_executable_p 15726as_test_x='test -x' 15727as_executable_p=as_fn_executable_p 15728 15729# Sed expression to map a string onto a valid CPP name. 15730as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 15731 15732# Sed expression to map a string onto a valid variable name. 15733as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 15734 15735 15736exec 6>&1 15737## ----------------------------------- ## 15738## Main body of $CONFIG_STATUS script. ## 15739## ----------------------------------- ## 15740_ASEOF 15741test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 15742 15743cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15744# Save the log message, to keep $0 and so on meaningful, and to 15745# report actual input values of CONFIG_FILES etc. instead of their 15746# values after options handling. 15747ac_log=" 15748This file was extended by file $as_me 5.40, which was 15749generated by GNU Autoconf 2.69. Invocation command line was 15750 15751 CONFIG_FILES = $CONFIG_FILES 15752 CONFIG_HEADERS = $CONFIG_HEADERS 15753 CONFIG_LINKS = $CONFIG_LINKS 15754 CONFIG_COMMANDS = $CONFIG_COMMANDS 15755 $ $0 $@ 15756 15757on `(hostname || uname -n) 2>/dev/null | sed 1q` 15758" 15759 15760_ACEOF 15761 15762case $ac_config_files in *" 15763"*) set x $ac_config_files; shift; ac_config_files=$*;; 15764esac 15765 15766case $ac_config_headers in *" 15767"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 15768esac 15769 15770 15771cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15772# Files that config.status was made for. 15773config_files="$ac_config_files" 15774config_headers="$ac_config_headers" 15775config_commands="$ac_config_commands" 15776 15777_ACEOF 15778 15779cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15780ac_cs_usage="\ 15781\`$as_me' instantiates files and other configuration actions 15782from templates according to the current configuration. Unless the files 15783and actions are specified as TAGs, all are instantiated by default. 15784 15785Usage: $0 [OPTION]... [TAG]... 15786 15787 -h, --help print this help, then exit 15788 -V, --version print version number and configuration settings, then exit 15789 --config print configuration, then exit 15790 -q, --quiet, --silent 15791 do not print progress messages 15792 -d, --debug don't remove temporary files 15793 --recheck update $as_me by reconfiguring in the same conditions 15794 --file=FILE[:TEMPLATE] 15795 instantiate the configuration file FILE 15796 --header=FILE[:TEMPLATE] 15797 instantiate the configuration header FILE 15798 15799Configuration files: 15800$config_files 15801 15802Configuration headers: 15803$config_headers 15804 15805Configuration commands: 15806$config_commands 15807 15808Report bugs to <christos@astron.com>." 15809 15810_ACEOF 15811cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15812ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 15813ac_cs_version="\\ 15814file config.status 5.40 15815configured by $0, generated by GNU Autoconf 2.69, 15816 with options \\"\$ac_cs_config\\" 15817 15818Copyright (C) 2012 Free Software Foundation, Inc. 15819This config.status script is free software; the Free Software Foundation 15820gives unlimited permission to copy, distribute and modify it." 15821 15822ac_pwd='$ac_pwd' 15823srcdir='$srcdir' 15824INSTALL='$INSTALL' 15825MKDIR_P='$MKDIR_P' 15826AWK='$AWK' 15827test -n "\$AWK" || AWK=awk 15828_ACEOF 15829 15830cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15831# The default lists apply if the user does not specify any file. 15832ac_need_defaults=: 15833while test $# != 0 15834do 15835 case $1 in 15836 --*=?*) 15837 ac_option=`expr "X$1" : 'X\([^=]*\)='` 15838 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 15839 ac_shift=: 15840 ;; 15841 --*=) 15842 ac_option=`expr "X$1" : 'X\([^=]*\)='` 15843 ac_optarg= 15844 ac_shift=: 15845 ;; 15846 *) 15847 ac_option=$1 15848 ac_optarg=$2 15849 ac_shift=shift 15850 ;; 15851 esac 15852 15853 case $ac_option in 15854 # Handling of the options. 15855 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 15856 ac_cs_recheck=: ;; 15857 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 15858 $as_echo "$ac_cs_version"; exit ;; 15859 --config | --confi | --conf | --con | --co | --c ) 15860 $as_echo "$ac_cs_config"; exit ;; 15861 --debug | --debu | --deb | --de | --d | -d ) 15862 debug=: ;; 15863 --file | --fil | --fi | --f ) 15864 $ac_shift 15865 case $ac_optarg in 15866 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 15867 '') as_fn_error $? "missing file argument" ;; 15868 esac 15869 as_fn_append CONFIG_FILES " '$ac_optarg'" 15870 ac_need_defaults=false;; 15871 --header | --heade | --head | --hea ) 15872 $ac_shift 15873 case $ac_optarg in 15874 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 15875 esac 15876 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 15877 ac_need_defaults=false;; 15878 --he | --h) 15879 # Conflict between --help and --header 15880 as_fn_error $? "ambiguous option: \`$1' 15881Try \`$0 --help' for more information.";; 15882 --help | --hel | -h ) 15883 $as_echo "$ac_cs_usage"; exit ;; 15884 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 15885 | -silent | --silent | --silen | --sile | --sil | --si | --s) 15886 ac_cs_silent=: ;; 15887 15888 # This is an error. 15889 -*) as_fn_error $? "unrecognized option: \`$1' 15890Try \`$0 --help' for more information." ;; 15891 15892 *) as_fn_append ac_config_targets " $1" 15893 ac_need_defaults=false ;; 15894 15895 esac 15896 shift 15897done 15898 15899ac_configure_extra_args= 15900 15901if $ac_cs_silent; then 15902 exec 6>/dev/null 15903 ac_configure_extra_args="$ac_configure_extra_args --silent" 15904fi 15905 15906_ACEOF 15907cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15908if \$ac_cs_recheck; then 15909 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 15910 shift 15911 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 15912 CONFIG_SHELL='$SHELL' 15913 export CONFIG_SHELL 15914 exec "\$@" 15915fi 15916 15917_ACEOF 15918cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15919exec 5>>config.log 15920{ 15921 echo 15922 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 15923## Running $as_me. ## 15924_ASBOX 15925 $as_echo "$ac_log" 15926} >&5 15927 15928_ACEOF 15929cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15930# 15931# INIT-COMMANDS 15932# 15933AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 15934 15935 15936# The HP-UX ksh and POSIX shell print the target directory to stdout 15937# if CDPATH is set. 15938(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 15939 15940sed_quote_subst='$sed_quote_subst' 15941double_quote_subst='$double_quote_subst' 15942delay_variable_subst='$delay_variable_subst' 15943macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 15944macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 15945enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 15946pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 15947enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 15948enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 15949shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 15950SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 15951ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 15952PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 15953host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 15954host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 15955host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 15956build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 15957build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 15958build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 15959SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 15960Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 15961GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 15962EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 15963FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 15964LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 15965NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 15966LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 15967max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 15968ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 15969exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 15970lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 15971lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 15972lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 15973lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 15974lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 15975reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 15976reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 15977OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 15978deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 15979file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 15980file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 15981want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 15982DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 15983sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 15984AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 15985AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 15986archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 15987STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 15988RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 15989old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 15990old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 15991old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 15992lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 15993CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 15994CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 15995compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 15996GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 15997lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 15998lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 15999lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 16000lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 16001lt_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"`' 16002lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 16003nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 16004lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 16005lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 16006objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 16007MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 16008lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 16009lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 16010lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 16011lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 16012lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 16013need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 16014MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 16015DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 16016NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 16017LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 16018OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 16019OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 16020libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 16021shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 16022extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 16023archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 16024enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 16025export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 16026whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 16027compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 16028old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 16029old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 16030archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 16031archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 16032module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 16033module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 16034with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 16035allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 16036no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 16037hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 16038hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 16039hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 16040hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 16041hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 16042hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 16043hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 16044inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 16045link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 16046always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 16047export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 16048exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 16049include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 16050prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 16051postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 16052file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 16053variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 16054need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 16055need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 16056version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 16057runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 16058shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 16059shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 16060libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 16061library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 16062soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 16063install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 16064postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 16065postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 16066finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 16067finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 16068hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 16069sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 16070configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 16071configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 16072hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 16073enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 16074enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 16075enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 16076old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 16077striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 16078 16079LTCC='$LTCC' 16080LTCFLAGS='$LTCFLAGS' 16081compiler='$compiler_DEFAULT' 16082 16083# A function that is used when there is no print builtin or printf. 16084func_fallback_echo () 16085{ 16086 eval 'cat <<_LTECHO_EOF 16087\$1 16088_LTECHO_EOF' 16089} 16090 16091# Quote evaled strings. 16092for var in SHELL \ 16093ECHO \ 16094PATH_SEPARATOR \ 16095SED \ 16096GREP \ 16097EGREP \ 16098FGREP \ 16099LD \ 16100NM \ 16101LN_S \ 16102lt_SP2NL \ 16103lt_NL2SP \ 16104reload_flag \ 16105OBJDUMP \ 16106deplibs_check_method \ 16107file_magic_cmd \ 16108file_magic_glob \ 16109want_nocaseglob \ 16110DLLTOOL \ 16111sharedlib_from_linklib_cmd \ 16112AR \ 16113AR_FLAGS \ 16114archiver_list_spec \ 16115STRIP \ 16116RANLIB \ 16117CC \ 16118CFLAGS \ 16119compiler \ 16120lt_cv_sys_global_symbol_pipe \ 16121lt_cv_sys_global_symbol_to_cdecl \ 16122lt_cv_sys_global_symbol_to_import \ 16123lt_cv_sys_global_symbol_to_c_name_address \ 16124lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 16125lt_cv_nm_interface \ 16126nm_file_list_spec \ 16127lt_cv_truncate_bin \ 16128lt_prog_compiler_no_builtin_flag \ 16129lt_prog_compiler_pic \ 16130lt_prog_compiler_wl \ 16131lt_prog_compiler_static \ 16132lt_cv_prog_compiler_c_o \ 16133need_locks \ 16134MANIFEST_TOOL \ 16135DSYMUTIL \ 16136NMEDIT \ 16137LIPO \ 16138OTOOL \ 16139OTOOL64 \ 16140shrext_cmds \ 16141export_dynamic_flag_spec \ 16142whole_archive_flag_spec \ 16143compiler_needs_object \ 16144with_gnu_ld \ 16145allow_undefined_flag \ 16146no_undefined_flag \ 16147hardcode_libdir_flag_spec \ 16148hardcode_libdir_separator \ 16149exclude_expsyms \ 16150include_expsyms \ 16151file_list_spec \ 16152variables_saved_for_relink \ 16153libname_spec \ 16154library_names_spec \ 16155soname_spec \ 16156install_override_mode \ 16157finish_eval \ 16158old_striplib \ 16159striplib; do 16160 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 16161 *[\\\\\\\`\\"\\\$]*) 16162 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 16163 ;; 16164 *) 16165 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 16166 ;; 16167 esac 16168done 16169 16170# Double-quote double-evaled strings. 16171for var in reload_cmds \ 16172old_postinstall_cmds \ 16173old_postuninstall_cmds \ 16174old_archive_cmds \ 16175extract_expsyms_cmds \ 16176old_archive_from_new_cmds \ 16177old_archive_from_expsyms_cmds \ 16178archive_cmds \ 16179archive_expsym_cmds \ 16180module_cmds \ 16181module_expsym_cmds \ 16182export_symbols_cmds \ 16183prelink_cmds \ 16184postlink_cmds \ 16185postinstall_cmds \ 16186postuninstall_cmds \ 16187finish_cmds \ 16188sys_lib_search_path_spec \ 16189configure_time_dlsearch_path \ 16190configure_time_lt_sys_library_path; do 16191 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 16192 *[\\\\\\\`\\"\\\$]*) 16193 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 16194 ;; 16195 *) 16196 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 16197 ;; 16198 esac 16199done 16200 16201ac_aux_dir='$ac_aux_dir' 16202 16203# See if we are running on zsh, and set the options that allow our 16204# commands through without removal of \ escapes INIT. 16205if test -n "\${ZSH_VERSION+set}"; then 16206 setopt NO_GLOB_SUBST 16207fi 16208 16209 16210 PACKAGE='$PACKAGE' 16211 VERSION='$VERSION' 16212 RM='$RM' 16213 ofile='$ofile' 16214 16215 16216 16217 16218_ACEOF 16219 16220cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16221 16222# Handling of arguments. 16223for ac_config_target in $ac_config_targets 16224do 16225 case $ac_config_target in 16226 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 16227 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 16228 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 16229 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 16230 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 16231 "magic/Makefile") CONFIG_FILES="$CONFIG_FILES magic/Makefile" ;; 16232 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; 16233 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 16234 "python/Makefile") CONFIG_FILES="$CONFIG_FILES python/Makefile" ;; 16235 "libmagic.pc") CONFIG_FILES="$CONFIG_FILES libmagic.pc" ;; 16236 16237 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 16238 esac 16239done 16240 16241 16242# If the user did not use the arguments to specify the items to instantiate, 16243# then the envvar interface is used. Set only those that are not. 16244# We use the long form for the default assignment because of an extremely 16245# bizarre bug on SunOS 4.1.3. 16246if $ac_need_defaults; then 16247 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 16248 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 16249 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 16250fi 16251 16252# Have a temporary directory for convenience. Make it in the build tree 16253# simply because there is no reason against having it here, and in addition, 16254# creating and moving files from /tmp can sometimes cause problems. 16255# Hook for its removal unless debugging. 16256# Note that there is a small window in which the directory will not be cleaned: 16257# after its creation but before its name has been assigned to `$tmp'. 16258$debug || 16259{ 16260 tmp= ac_tmp= 16261 trap 'exit_status=$? 16262 : "${ac_tmp:=$tmp}" 16263 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 16264' 0 16265 trap 'as_fn_exit 1' 1 2 13 15 16266} 16267# Create a (secure) tmp directory for tmp files. 16268 16269{ 16270 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 16271 test -d "$tmp" 16272} || 16273{ 16274 tmp=./conf$$-$RANDOM 16275 (umask 077 && mkdir "$tmp") 16276} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 16277ac_tmp=$tmp 16278 16279# Set up the scripts for CONFIG_FILES section. 16280# No need to generate them if there are no CONFIG_FILES. 16281# This happens for instance with `./config.status config.h'. 16282if test -n "$CONFIG_FILES"; then 16283 16284 16285ac_cr=`echo X | tr X '\015'` 16286# On cygwin, bash can eat \r inside `` if the user requested igncr. 16287# But we know of no other shell where ac_cr would be empty at this 16288# point, so we can use a bashism as a fallback. 16289if test "x$ac_cr" = x; then 16290 eval ac_cr=\$\'\\r\' 16291fi 16292ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 16293if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 16294 ac_cs_awk_cr='\\r' 16295else 16296 ac_cs_awk_cr=$ac_cr 16297fi 16298 16299echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 16300_ACEOF 16301 16302 16303{ 16304 echo "cat >conf$$subs.awk <<_ACEOF" && 16305 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 16306 echo "_ACEOF" 16307} >conf$$subs.sh || 16308 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 16309ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 16310ac_delim='%!_!# ' 16311for ac_last_try in false false false false false :; do 16312 . ./conf$$subs.sh || 16313 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 16314 16315 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 16316 if test $ac_delim_n = $ac_delim_num; then 16317 break 16318 elif $ac_last_try; then 16319 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 16320 else 16321 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 16322 fi 16323done 16324rm -f conf$$subs.sh 16325 16326cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16327cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 16328_ACEOF 16329sed -n ' 16330h 16331s/^/S["/; s/!.*/"]=/ 16332p 16333g 16334s/^[^!]*!// 16335:repl 16336t repl 16337s/'"$ac_delim"'$// 16338t delim 16339:nl 16340h 16341s/\(.\{148\}\)..*/\1/ 16342t more1 16343s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 16344p 16345n 16346b repl 16347:more1 16348s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 16349p 16350g 16351s/.\{148\}// 16352t nl 16353:delim 16354h 16355s/\(.\{148\}\)..*/\1/ 16356t more2 16357s/["\\]/\\&/g; s/^/"/; s/$/"/ 16358p 16359b 16360:more2 16361s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 16362p 16363g 16364s/.\{148\}// 16365t delim 16366' <conf$$subs.awk | sed ' 16367/^[^""]/{ 16368 N 16369 s/\n// 16370} 16371' >>$CONFIG_STATUS || ac_write_fail=1 16372rm -f conf$$subs.awk 16373cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16374_ACAWK 16375cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 16376 for (key in S) S_is_set[key] = 1 16377 FS = "" 16378 16379} 16380{ 16381 line = $ 0 16382 nfields = split(line, field, "@") 16383 substed = 0 16384 len = length(field[1]) 16385 for (i = 2; i < nfields; i++) { 16386 key = field[i] 16387 keylen = length(key) 16388 if (S_is_set[key]) { 16389 value = S[key] 16390 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 16391 len += length(value) + length(field[++i]) 16392 substed = 1 16393 } else 16394 len += 1 + keylen 16395 } 16396 16397 print line 16398} 16399 16400_ACAWK 16401_ACEOF 16402cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16403if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 16404 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 16405else 16406 cat 16407fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 16408 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 16409_ACEOF 16410 16411# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 16412# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 16413# trailing colons and then remove the whole line if VPATH becomes empty 16414# (actually we leave an empty line to preserve line numbers). 16415if test "x$srcdir" = x.; then 16416 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 16417h 16418s/// 16419s/^/:/ 16420s/[ ]*$/:/ 16421s/:\$(srcdir):/:/g 16422s/:\${srcdir}:/:/g 16423s/:@srcdir@:/:/g 16424s/^:*// 16425s/:*$// 16426x 16427s/\(=[ ]*\).*/\1/ 16428G 16429s/\n// 16430s/^[^=]*=[ ]*$// 16431}' 16432fi 16433 16434cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16435fi # test -n "$CONFIG_FILES" 16436 16437# Set up the scripts for CONFIG_HEADERS section. 16438# No need to generate them if there are no CONFIG_HEADERS. 16439# This happens for instance with `./config.status Makefile'. 16440if test -n "$CONFIG_HEADERS"; then 16441cat >"$ac_tmp/defines.awk" <<\_ACAWK || 16442BEGIN { 16443_ACEOF 16444 16445# Transform confdefs.h into an awk script `defines.awk', embedded as 16446# here-document in config.status, that substitutes the proper values into 16447# config.h.in to produce config.h. 16448 16449# Create a delimiter string that does not exist in confdefs.h, to ease 16450# handling of long lines. 16451ac_delim='%!_!# ' 16452for ac_last_try in false false :; do 16453 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 16454 if test -z "$ac_tt"; then 16455 break 16456 elif $ac_last_try; then 16457 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 16458 else 16459 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 16460 fi 16461done 16462 16463# For the awk script, D is an array of macro values keyed by name, 16464# likewise P contains macro parameters if any. Preserve backslash 16465# newline sequences. 16466 16467ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 16468sed -n ' 16469s/.\{148\}/&'"$ac_delim"'/g 16470t rset 16471:rset 16472s/^[ ]*#[ ]*define[ ][ ]*/ / 16473t def 16474d 16475:def 16476s/\\$// 16477t bsnl 16478s/["\\]/\\&/g 16479s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 16480D["\1"]=" \3"/p 16481s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 16482d 16483:bsnl 16484s/["\\]/\\&/g 16485s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 16486D["\1"]=" \3\\\\\\n"\\/p 16487t cont 16488s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 16489t cont 16490d 16491:cont 16492n 16493s/.\{148\}/&'"$ac_delim"'/g 16494t clear 16495:clear 16496s/\\$// 16497t bsnlc 16498s/["\\]/\\&/g; s/^/"/; s/$/"/p 16499d 16500:bsnlc 16501s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 16502b cont 16503' <confdefs.h | sed ' 16504s/'"$ac_delim"'/"\\\ 16505"/g' >>$CONFIG_STATUS || ac_write_fail=1 16506 16507cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16508 for (key in D) D_is_set[key] = 1 16509 FS = "" 16510} 16511/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 16512 line = \$ 0 16513 split(line, arg, " ") 16514 if (arg[1] == "#") { 16515 defundef = arg[2] 16516 mac1 = arg[3] 16517 } else { 16518 defundef = substr(arg[1], 2) 16519 mac1 = arg[2] 16520 } 16521 split(mac1, mac2, "(") #) 16522 macro = mac2[1] 16523 prefix = substr(line, 1, index(line, defundef) - 1) 16524 if (D_is_set[macro]) { 16525 # Preserve the white space surrounding the "#". 16526 print prefix "define", macro P[macro] D[macro] 16527 next 16528 } else { 16529 # Replace #undef with comments. This is necessary, for example, 16530 # in the case of _POSIX_SOURCE, which is predefined and required 16531 # on some systems where configure will not decide to define it. 16532 if (defundef == "undef") { 16533 print "/*", prefix defundef, macro, "*/" 16534 next 16535 } 16536 } 16537} 16538{ print } 16539_ACAWK 16540_ACEOF 16541cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16542 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 16543fi # test -n "$CONFIG_HEADERS" 16544 16545 16546eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 16547shift 16548for ac_tag 16549do 16550 case $ac_tag in 16551 :[FHLC]) ac_mode=$ac_tag; continue;; 16552 esac 16553 case $ac_mode$ac_tag in 16554 :[FHL]*:*);; 16555 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 16556 :[FH]-) ac_tag=-:-;; 16557 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 16558 esac 16559 ac_save_IFS=$IFS 16560 IFS=: 16561 set x $ac_tag 16562 IFS=$ac_save_IFS 16563 shift 16564 ac_file=$1 16565 shift 16566 16567 case $ac_mode in 16568 :L) ac_source=$1;; 16569 :[FH]) 16570 ac_file_inputs= 16571 for ac_f 16572 do 16573 case $ac_f in 16574 -) ac_f="$ac_tmp/stdin";; 16575 *) # Look for the file first in the build tree, then in the source tree 16576 # (if the path is not absolute). The absolute path cannot be DOS-style, 16577 # because $ac_f cannot contain `:'. 16578 test -f "$ac_f" || 16579 case $ac_f in 16580 [\\/$]*) false;; 16581 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 16582 esac || 16583 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 16584 esac 16585 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 16586 as_fn_append ac_file_inputs " '$ac_f'" 16587 done 16588 16589 # Let's still pretend it is `configure' which instantiates (i.e., don't 16590 # use $as_me), people would be surprised to read: 16591 # /* config.h. Generated by config.status. */ 16592 configure_input='Generated from '` 16593 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 16594 `' by configure.' 16595 if test x"$ac_file" != x-; then 16596 configure_input="$ac_file. $configure_input" 16597 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 16598$as_echo "$as_me: creating $ac_file" >&6;} 16599 fi 16600 # Neutralize special characters interpreted by sed in replacement strings. 16601 case $configure_input in #( 16602 *\&* | *\|* | *\\* ) 16603 ac_sed_conf_input=`$as_echo "$configure_input" | 16604 sed 's/[\\\\&|]/\\\\&/g'`;; #( 16605 *) ac_sed_conf_input=$configure_input;; 16606 esac 16607 16608 case $ac_tag in 16609 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 16610 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 16611 esac 16612 ;; 16613 esac 16614 16615 ac_dir=`$as_dirname -- "$ac_file" || 16616$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16617 X"$ac_file" : 'X\(//\)[^/]' \| \ 16618 X"$ac_file" : 'X\(//\)$' \| \ 16619 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 16620$as_echo X"$ac_file" | 16621 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16622 s//\1/ 16623 q 16624 } 16625 /^X\(\/\/\)[^/].*/{ 16626 s//\1/ 16627 q 16628 } 16629 /^X\(\/\/\)$/{ 16630 s//\1/ 16631 q 16632 } 16633 /^X\(\/\).*/{ 16634 s//\1/ 16635 q 16636 } 16637 s/.*/./; q'` 16638 as_dir="$ac_dir"; as_fn_mkdir_p 16639 ac_builddir=. 16640 16641case "$ac_dir" in 16642.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 16643*) 16644 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 16645 # A ".." for each directory in $ac_dir_suffix. 16646 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 16647 case $ac_top_builddir_sub in 16648 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 16649 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 16650 esac ;; 16651esac 16652ac_abs_top_builddir=$ac_pwd 16653ac_abs_builddir=$ac_pwd$ac_dir_suffix 16654# for backward compatibility: 16655ac_top_builddir=$ac_top_build_prefix 16656 16657case $srcdir in 16658 .) # We are building in place. 16659 ac_srcdir=. 16660 ac_top_srcdir=$ac_top_builddir_sub 16661 ac_abs_top_srcdir=$ac_pwd ;; 16662 [\\/]* | ?:[\\/]* ) # Absolute name. 16663 ac_srcdir=$srcdir$ac_dir_suffix; 16664 ac_top_srcdir=$srcdir 16665 ac_abs_top_srcdir=$srcdir ;; 16666 *) # Relative name. 16667 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 16668 ac_top_srcdir=$ac_top_build_prefix$srcdir 16669 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 16670esac 16671ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 16672 16673 16674 case $ac_mode in 16675 :F) 16676 # 16677 # CONFIG_FILE 16678 # 16679 16680 case $INSTALL in 16681 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 16682 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 16683 esac 16684 ac_MKDIR_P=$MKDIR_P 16685 case $MKDIR_P in 16686 [\\/$]* | ?:[\\/]* ) ;; 16687 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 16688 esac 16689_ACEOF 16690 16691cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16692# If the template does not know about datarootdir, expand it. 16693# FIXME: This hack should be removed a few years after 2.60. 16694ac_datarootdir_hack=; ac_datarootdir_seen= 16695ac_sed_dataroot=' 16696/datarootdir/ { 16697 p 16698 q 16699} 16700/@datadir@/p 16701/@docdir@/p 16702/@infodir@/p 16703/@localedir@/p 16704/@mandir@/p' 16705case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 16706*datarootdir*) ac_datarootdir_seen=yes;; 16707*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 16708 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 16709$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 16710_ACEOF 16711cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16712 ac_datarootdir_hack=' 16713 s&@datadir@&$datadir&g 16714 s&@docdir@&$docdir&g 16715 s&@infodir@&$infodir&g 16716 s&@localedir@&$localedir&g 16717 s&@mandir@&$mandir&g 16718 s&\\\${datarootdir}&$datarootdir&g' ;; 16719esac 16720_ACEOF 16721 16722# Neutralize VPATH when `$srcdir' = `.'. 16723# Shell code in configure.ac might set extrasub. 16724# FIXME: do we really want to maintain this feature? 16725cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16726ac_sed_extra="$ac_vpsub 16727$extrasub 16728_ACEOF 16729cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16730:t 16731/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 16732s|@configure_input@|$ac_sed_conf_input|;t t 16733s&@top_builddir@&$ac_top_builddir_sub&;t t 16734s&@top_build_prefix@&$ac_top_build_prefix&;t t 16735s&@srcdir@&$ac_srcdir&;t t 16736s&@abs_srcdir@&$ac_abs_srcdir&;t t 16737s&@top_srcdir@&$ac_top_srcdir&;t t 16738s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 16739s&@builddir@&$ac_builddir&;t t 16740s&@abs_builddir@&$ac_abs_builddir&;t t 16741s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 16742s&@INSTALL@&$ac_INSTALL&;t t 16743s&@MKDIR_P@&$ac_MKDIR_P&;t t 16744$ac_datarootdir_hack 16745" 16746eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 16747 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 16748 16749test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 16750 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 16751 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 16752 "$ac_tmp/out"`; test -z "$ac_out"; } && 16753 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 16754which seems to be undefined. Please make sure it is defined" >&5 16755$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 16756which seems to be undefined. Please make sure it is defined" >&2;} 16757 16758 rm -f "$ac_tmp/stdin" 16759 case $ac_file in 16760 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 16761 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 16762 esac \ 16763 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 16764 ;; 16765 :H) 16766 # 16767 # CONFIG_HEADER 16768 # 16769 if test x"$ac_file" != x-; then 16770 { 16771 $as_echo "/* $configure_input */" \ 16772 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 16773 } >"$ac_tmp/config.h" \ 16774 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 16775 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 16776 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 16777$as_echo "$as_me: $ac_file is unchanged" >&6;} 16778 else 16779 rm -f "$ac_file" 16780 mv "$ac_tmp/config.h" "$ac_file" \ 16781 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 16782 fi 16783 else 16784 $as_echo "/* $configure_input */" \ 16785 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 16786 || as_fn_error $? "could not create -" "$LINENO" 5 16787 fi 16788# Compute "$ac_file"'s index in $config_headers. 16789_am_arg="$ac_file" 16790_am_stamp_count=1 16791for _am_header in $config_headers :; do 16792 case $_am_header in 16793 $_am_arg | $_am_arg:* ) 16794 break ;; 16795 * ) 16796 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 16797 esac 16798done 16799echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 16800$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16801 X"$_am_arg" : 'X\(//\)[^/]' \| \ 16802 X"$_am_arg" : 'X\(//\)$' \| \ 16803 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 16804$as_echo X"$_am_arg" | 16805 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16806 s//\1/ 16807 q 16808 } 16809 /^X\(\/\/\)[^/].*/{ 16810 s//\1/ 16811 q 16812 } 16813 /^X\(\/\/\)$/{ 16814 s//\1/ 16815 q 16816 } 16817 /^X\(\/\).*/{ 16818 s//\1/ 16819 q 16820 } 16821 s/.*/./; q'`/stamp-h$_am_stamp_count 16822 ;; 16823 16824 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 16825$as_echo "$as_me: executing $ac_file commands" >&6;} 16826 ;; 16827 esac 16828 16829 16830 case $ac_file$ac_mode in 16831 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 16832 # Older Autoconf quotes --file arguments for eval, but not when files 16833 # are listed without --file. Let's play safe and only enable the eval 16834 # if we detect the quoting. 16835 # TODO: see whether this extra hack can be removed once we start 16836 # requiring Autoconf 2.70 or later. 16837 case $CONFIG_FILES in #( 16838 *\'*) : 16839 eval set x "$CONFIG_FILES" ;; #( 16840 *) : 16841 set x $CONFIG_FILES ;; #( 16842 *) : 16843 ;; 16844esac 16845 shift 16846 # Used to flag and report bootstrapping failures. 16847 am_rc=0 16848 for am_mf 16849 do 16850 # Strip MF so we end up with the name of the file. 16851 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'` 16852 # Check whether this is an Automake generated Makefile which includes 16853 # dependency-tracking related rules and includes. 16854 # Grep'ing the whole file directly is not great: AIX grep has a line 16855 # limit of 2048, but all sed's we know have understand at least 4000. 16856 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 16857 || continue 16858 am_dirpart=`$as_dirname -- "$am_mf" || 16859$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16860 X"$am_mf" : 'X\(//\)[^/]' \| \ 16861 X"$am_mf" : 'X\(//\)$' \| \ 16862 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 16863$as_echo X"$am_mf" | 16864 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16865 s//\1/ 16866 q 16867 } 16868 /^X\(\/\/\)[^/].*/{ 16869 s//\1/ 16870 q 16871 } 16872 /^X\(\/\/\)$/{ 16873 s//\1/ 16874 q 16875 } 16876 /^X\(\/\).*/{ 16877 s//\1/ 16878 q 16879 } 16880 s/.*/./; q'` 16881 am_filepart=`$as_basename -- "$am_mf" || 16882$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 16883 X"$am_mf" : 'X\(//\)$' \| \ 16884 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 16885$as_echo X/"$am_mf" | 16886 sed '/^.*\/\([^/][^/]*\)\/*$/{ 16887 s//\1/ 16888 q 16889 } 16890 /^X\/\(\/\/\)$/{ 16891 s//\1/ 16892 q 16893 } 16894 /^X\/\(\/\).*/{ 16895 s//\1/ 16896 q 16897 } 16898 s/.*/./; q'` 16899 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 16900 && sed -e '/# am--include-marker/d' "$am_filepart" \ 16901 | $MAKE -f - am--depfiles" >&5 16902 (cd "$am_dirpart" \ 16903 && sed -e '/# am--include-marker/d' "$am_filepart" \ 16904 | $MAKE -f - am--depfiles) >&5 2>&5 16905 ac_status=$? 16906 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16907 (exit $ac_status); } || am_rc=$? 16908 done 16909 if test $am_rc -ne 0; then 16910 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16911$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 16912as_fn_error $? "Something went wrong bootstrapping makefile fragments 16913 for automatic dependency tracking. Try re-running configure with the 16914 '--disable-dependency-tracking' option to at least be able to build 16915 the package (albeit without support for automatic dependency tracking). 16916See \`config.log' for more details" "$LINENO" 5; } 16917 fi 16918 { am_dirpart=; unset am_dirpart;} 16919 { am_filepart=; unset am_filepart;} 16920 { am_mf=; unset am_mf;} 16921 { am_rc=; unset am_rc;} 16922 rm -f conftest-deps.mk 16923} 16924 ;; 16925 "libtool":C) 16926 16927 # See if we are running on zsh, and set the options that allow our 16928 # commands through without removal of \ escapes. 16929 if test -n "${ZSH_VERSION+set}"; then 16930 setopt NO_GLOB_SUBST 16931 fi 16932 16933 cfgfile=${ofile}T 16934 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 16935 $RM "$cfgfile" 16936 16937 cat <<_LT_EOF >> "$cfgfile" 16938#! $SHELL 16939# Generated automatically by $as_me ($PACKAGE) $VERSION 16940# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 16941# NOTE: Changes made to this file will be lost: look at ltmain.sh. 16942 16943# Provide generalized library-building support services. 16944# Written by Gordon Matzigkeit, 1996 16945 16946# Copyright (C) 2014 Free Software Foundation, Inc. 16947# This is free software; see the source for copying conditions. There is NO 16948# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 16949 16950# GNU Libtool is free software; you can redistribute it and/or modify 16951# it under the terms of the GNU General Public License as published by 16952# the Free Software Foundation; either version 2 of of the License, or 16953# (at your option) any later version. 16954# 16955# As a special exception to the GNU General Public License, if you 16956# distribute this file as part of a program or library that is built 16957# using GNU Libtool, you may include this file under the same 16958# distribution terms that you use for the rest of that program. 16959# 16960# GNU Libtool is distributed in the hope that it will be useful, but 16961# WITHOUT ANY WARRANTY; without even the implied warranty of 16962# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16963# GNU General Public License for more details. 16964# 16965# You should have received a copy of the GNU General Public License 16966# along with this program. If not, see <http://www.gnu.org/licenses/>. 16967 16968 16969# The names of the tagged configurations supported by this script. 16970available_tags='' 16971 16972# Configured defaults for sys_lib_dlsearch_path munging. 16973: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 16974 16975# ### BEGIN LIBTOOL CONFIG 16976 16977# Which release of libtool.m4 was used? 16978macro_version=$macro_version 16979macro_revision=$macro_revision 16980 16981# Whether or not to build static libraries. 16982build_old_libs=$enable_static 16983 16984# What type of objects to build. 16985pic_mode=$pic_mode 16986 16987# Whether or not to build shared libraries. 16988build_libtool_libs=$enable_shared 16989 16990# Whether or not to optimize for fast installation. 16991fast_install=$enable_fast_install 16992 16993# Shared archive member basename,for filename based shared library versioning on AIX. 16994shared_archive_member_spec=$shared_archive_member_spec 16995 16996# Shell to use when invoking shell scripts. 16997SHELL=$lt_SHELL 16998 16999# An echo program that protects backslashes. 17000ECHO=$lt_ECHO 17001 17002# The PATH separator for the build system. 17003PATH_SEPARATOR=$lt_PATH_SEPARATOR 17004 17005# The host system. 17006host_alias=$host_alias 17007host=$host 17008host_os=$host_os 17009 17010# The build system. 17011build_alias=$build_alias 17012build=$build 17013build_os=$build_os 17014 17015# A sed program that does not truncate output. 17016SED=$lt_SED 17017 17018# Sed that helps us avoid accidentally triggering echo(1) options like -n. 17019Xsed="\$SED -e 1s/^X//" 17020 17021# A grep program that handles long lines. 17022GREP=$lt_GREP 17023 17024# An ERE matcher. 17025EGREP=$lt_EGREP 17026 17027# A literal string matcher. 17028FGREP=$lt_FGREP 17029 17030# A BSD- or MS-compatible name lister. 17031NM=$lt_NM 17032 17033# Whether we need soft or hard links. 17034LN_S=$lt_LN_S 17035 17036# What is the maximum length of a command? 17037max_cmd_len=$max_cmd_len 17038 17039# Object file suffix (normally "o"). 17040objext=$ac_objext 17041 17042# Executable file suffix (normally ""). 17043exeext=$exeext 17044 17045# whether the shell understands "unset". 17046lt_unset=$lt_unset 17047 17048# turn spaces into newlines. 17049SP2NL=$lt_lt_SP2NL 17050 17051# turn newlines into spaces. 17052NL2SP=$lt_lt_NL2SP 17053 17054# convert \$build file names to \$host format. 17055to_host_file_cmd=$lt_cv_to_host_file_cmd 17056 17057# convert \$build files to toolchain format. 17058to_tool_file_cmd=$lt_cv_to_tool_file_cmd 17059 17060# An object symbol dumper. 17061OBJDUMP=$lt_OBJDUMP 17062 17063# Method to check whether dependent libraries are shared objects. 17064deplibs_check_method=$lt_deplibs_check_method 17065 17066# Command to use when deplibs_check_method = "file_magic". 17067file_magic_cmd=$lt_file_magic_cmd 17068 17069# How to find potential files when deplibs_check_method = "file_magic". 17070file_magic_glob=$lt_file_magic_glob 17071 17072# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 17073want_nocaseglob=$lt_want_nocaseglob 17074 17075# DLL creation program. 17076DLLTOOL=$lt_DLLTOOL 17077 17078# Command to associate shared and link libraries. 17079sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 17080 17081# The archiver. 17082AR=$lt_AR 17083 17084# Flags to create an archive. 17085AR_FLAGS=$lt_AR_FLAGS 17086 17087# How to feed a file listing to the archiver. 17088archiver_list_spec=$lt_archiver_list_spec 17089 17090# A symbol stripping program. 17091STRIP=$lt_STRIP 17092 17093# Commands used to install an old-style archive. 17094RANLIB=$lt_RANLIB 17095old_postinstall_cmds=$lt_old_postinstall_cmds 17096old_postuninstall_cmds=$lt_old_postuninstall_cmds 17097 17098# Whether to use a lock for old archive extraction. 17099lock_old_archive_extraction=$lock_old_archive_extraction 17100 17101# A C compiler. 17102LTCC=$lt_CC 17103 17104# LTCC compiler flags. 17105LTCFLAGS=$lt_CFLAGS 17106 17107# Take the output of nm and produce a listing of raw symbols and C names. 17108global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 17109 17110# Transform the output of nm in a proper C declaration. 17111global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 17112 17113# Transform the output of nm into a list of symbols to manually relocate. 17114global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 17115 17116# Transform the output of nm in a C name address pair. 17117global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 17118 17119# Transform the output of nm in a C name address pair when lib prefix is needed. 17120global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 17121 17122# The name lister interface. 17123nm_interface=$lt_lt_cv_nm_interface 17124 17125# Specify filename containing input files for \$NM. 17126nm_file_list_spec=$lt_nm_file_list_spec 17127 17128# The root where to search for dependent libraries,and where our libraries should be installed. 17129lt_sysroot=$lt_sysroot 17130 17131# Command to truncate a binary pipe. 17132lt_truncate_bin=$lt_lt_cv_truncate_bin 17133 17134# The name of the directory that contains temporary libtool files. 17135objdir=$objdir 17136 17137# Used to examine libraries when file_magic_cmd begins with "file". 17138MAGIC_CMD=$MAGIC_CMD 17139 17140# Must we lock files when doing compilation? 17141need_locks=$lt_need_locks 17142 17143# Manifest tool. 17144MANIFEST_TOOL=$lt_MANIFEST_TOOL 17145 17146# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 17147DSYMUTIL=$lt_DSYMUTIL 17148 17149# Tool to change global to local symbols on Mac OS X. 17150NMEDIT=$lt_NMEDIT 17151 17152# Tool to manipulate fat objects and archives on Mac OS X. 17153LIPO=$lt_LIPO 17154 17155# ldd/readelf like tool for Mach-O binaries on Mac OS X. 17156OTOOL=$lt_OTOOL 17157 17158# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 17159OTOOL64=$lt_OTOOL64 17160 17161# Old archive suffix (normally "a"). 17162libext=$libext 17163 17164# Shared library suffix (normally ".so"). 17165shrext_cmds=$lt_shrext_cmds 17166 17167# The commands to extract the exported symbol list from a shared archive. 17168extract_expsyms_cmds=$lt_extract_expsyms_cmds 17169 17170# Variables whose values should be saved in libtool wrapper scripts and 17171# restored at link time. 17172variables_saved_for_relink=$lt_variables_saved_for_relink 17173 17174# Do we need the "lib" prefix for modules? 17175need_lib_prefix=$need_lib_prefix 17176 17177# Do we need a version for libraries? 17178need_version=$need_version 17179 17180# Library versioning type. 17181version_type=$version_type 17182 17183# Shared library runtime path variable. 17184runpath_var=$runpath_var 17185 17186# Shared library path variable. 17187shlibpath_var=$shlibpath_var 17188 17189# Is shlibpath searched before the hard-coded library search path? 17190shlibpath_overrides_runpath=$shlibpath_overrides_runpath 17191 17192# Format of library name prefix. 17193libname_spec=$lt_libname_spec 17194 17195# List of archive names. First name is the real one, the rest are links. 17196# The last name is the one that the linker finds with -lNAME 17197library_names_spec=$lt_library_names_spec 17198 17199# The coded name of the library, if different from the real name. 17200soname_spec=$lt_soname_spec 17201 17202# Permission mode override for installation of shared libraries. 17203install_override_mode=$lt_install_override_mode 17204 17205# Command to use after installation of a shared archive. 17206postinstall_cmds=$lt_postinstall_cmds 17207 17208# Command to use after uninstallation of a shared archive. 17209postuninstall_cmds=$lt_postuninstall_cmds 17210 17211# Commands used to finish a libtool library installation in a directory. 17212finish_cmds=$lt_finish_cmds 17213 17214# As "finish_cmds", except a single script fragment to be evaled but 17215# not shown. 17216finish_eval=$lt_finish_eval 17217 17218# Whether we should hardcode library paths into libraries. 17219hardcode_into_libs=$hardcode_into_libs 17220 17221# Compile-time system search path for libraries. 17222sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 17223 17224# Detected run-time system search path for libraries. 17225sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 17226 17227# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 17228configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 17229 17230# Whether dlopen is supported. 17231dlopen_support=$enable_dlopen 17232 17233# Whether dlopen of programs is supported. 17234dlopen_self=$enable_dlopen_self 17235 17236# Whether dlopen of statically linked programs is supported. 17237dlopen_self_static=$enable_dlopen_self_static 17238 17239# Commands to strip libraries. 17240old_striplib=$lt_old_striplib 17241striplib=$lt_striplib 17242 17243 17244# The linker used to build libraries. 17245LD=$lt_LD 17246 17247# How to create reloadable object files. 17248reload_flag=$lt_reload_flag 17249reload_cmds=$lt_reload_cmds 17250 17251# Commands used to build an old-style archive. 17252old_archive_cmds=$lt_old_archive_cmds 17253 17254# A language specific compiler. 17255CC=$lt_compiler 17256 17257# Is the compiler the GNU compiler? 17258with_gcc=$GCC 17259 17260# Compiler flag to turn off builtin functions. 17261no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 17262 17263# Additional compiler flags for building library objects. 17264pic_flag=$lt_lt_prog_compiler_pic 17265 17266# How to pass a linker flag through the compiler. 17267wl=$lt_lt_prog_compiler_wl 17268 17269# Compiler flag to prevent dynamic linking. 17270link_static_flag=$lt_lt_prog_compiler_static 17271 17272# Does compiler simultaneously support -c and -o options? 17273compiler_c_o=$lt_lt_cv_prog_compiler_c_o 17274 17275# Whether or not to add -lc for building shared libraries. 17276build_libtool_need_lc=$archive_cmds_need_lc 17277 17278# Whether or not to disallow shared libs when runtime libs are static. 17279allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 17280 17281# Compiler flag to allow reflexive dlopens. 17282export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 17283 17284# Compiler flag to generate shared objects directly from archives. 17285whole_archive_flag_spec=$lt_whole_archive_flag_spec 17286 17287# Whether the compiler copes with passing no objects directly. 17288compiler_needs_object=$lt_compiler_needs_object 17289 17290# Create an old-style archive from a shared archive. 17291old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 17292 17293# Create a temporary old-style archive to link instead of a shared archive. 17294old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 17295 17296# Commands used to build a shared archive. 17297archive_cmds=$lt_archive_cmds 17298archive_expsym_cmds=$lt_archive_expsym_cmds 17299 17300# Commands used to build a loadable module if different from building 17301# a shared archive. 17302module_cmds=$lt_module_cmds 17303module_expsym_cmds=$lt_module_expsym_cmds 17304 17305# Whether we are building with GNU ld or not. 17306with_gnu_ld=$lt_with_gnu_ld 17307 17308# Flag that allows shared libraries with undefined symbols to be built. 17309allow_undefined_flag=$lt_allow_undefined_flag 17310 17311# Flag that enforces no undefined symbols. 17312no_undefined_flag=$lt_no_undefined_flag 17313 17314# Flag to hardcode \$libdir into a binary during linking. 17315# This must work even if \$libdir does not exist 17316hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 17317 17318# Whether we need a single "-rpath" flag with a separated argument. 17319hardcode_libdir_separator=$lt_hardcode_libdir_separator 17320 17321# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 17322# DIR into the resulting binary. 17323hardcode_direct=$hardcode_direct 17324 17325# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 17326# DIR into the resulting binary and the resulting library dependency is 17327# "absolute",i.e impossible to change by setting \$shlibpath_var if the 17328# library is relocated. 17329hardcode_direct_absolute=$hardcode_direct_absolute 17330 17331# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 17332# into the resulting binary. 17333hardcode_minus_L=$hardcode_minus_L 17334 17335# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 17336# into the resulting binary. 17337hardcode_shlibpath_var=$hardcode_shlibpath_var 17338 17339# Set to "yes" if building a shared library automatically hardcodes DIR 17340# into the library and all subsequent libraries and executables linked 17341# against it. 17342hardcode_automatic=$hardcode_automatic 17343 17344# Set to yes if linker adds runtime paths of dependent libraries 17345# to runtime path list. 17346inherit_rpath=$inherit_rpath 17347 17348# Whether libtool must link a program against all its dependency libraries. 17349link_all_deplibs=$link_all_deplibs 17350 17351# Set to "yes" if exported symbols are required. 17352always_export_symbols=$always_export_symbols 17353 17354# The commands to list exported symbols. 17355export_symbols_cmds=$lt_export_symbols_cmds 17356 17357# Symbols that should not be listed in the preloaded symbols. 17358exclude_expsyms=$lt_exclude_expsyms 17359 17360# Symbols that must always be exported. 17361include_expsyms=$lt_include_expsyms 17362 17363# Commands necessary for linking programs (against libraries) with templates. 17364prelink_cmds=$lt_prelink_cmds 17365 17366# Commands necessary for finishing linking programs. 17367postlink_cmds=$lt_postlink_cmds 17368 17369# Specify filename containing input files. 17370file_list_spec=$lt_file_list_spec 17371 17372# How to hardcode a shared library path into an executable. 17373hardcode_action=$hardcode_action 17374 17375# ### END LIBTOOL CONFIG 17376 17377_LT_EOF 17378 17379 cat <<'_LT_EOF' >> "$cfgfile" 17380 17381# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 17382 17383# func_munge_path_list VARIABLE PATH 17384# ----------------------------------- 17385# VARIABLE is name of variable containing _space_ separated list of 17386# directories to be munged by the contents of PATH, which is string 17387# having a format: 17388# "DIR[:DIR]:" 17389# string "DIR[ DIR]" will be prepended to VARIABLE 17390# ":DIR[:DIR]" 17391# string "DIR[ DIR]" will be appended to VARIABLE 17392# "DIRP[:DIRP]::[DIRA:]DIRA" 17393# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 17394# "DIRA[ DIRA]" will be appended to VARIABLE 17395# "DIR[:DIR]" 17396# VARIABLE will be replaced by "DIR[ DIR]" 17397func_munge_path_list () 17398{ 17399 case x$2 in 17400 x) 17401 ;; 17402 *:) 17403 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 17404 ;; 17405 x:*) 17406 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 17407 ;; 17408 *::*) 17409 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 17410 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 17411 ;; 17412 *) 17413 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 17414 ;; 17415 esac 17416} 17417 17418 17419# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 17420func_cc_basename () 17421{ 17422 for cc_temp in $*""; do 17423 case $cc_temp in 17424 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 17425 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 17426 \-*) ;; 17427 *) break;; 17428 esac 17429 done 17430 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 17431} 17432 17433 17434# ### END FUNCTIONS SHARED WITH CONFIGURE 17435 17436_LT_EOF 17437 17438 case $host_os in 17439 aix3*) 17440 cat <<\_LT_EOF >> "$cfgfile" 17441# AIX sometimes has problems with the GCC collect2 program. For some 17442# reason, if we set the COLLECT_NAMES environment variable, the problems 17443# vanish in a puff of smoke. 17444if test set != "${COLLECT_NAMES+set}"; then 17445 COLLECT_NAMES= 17446 export COLLECT_NAMES 17447fi 17448_LT_EOF 17449 ;; 17450 esac 17451 17452 17453ltmain=$ac_aux_dir/ltmain.sh 17454 17455 17456 # We use sed instead of cat because bash on DJGPP gets confused if 17457 # if finds mixed CR/LF and LF-only lines. Since sed operates in 17458 # text mode, it properly converts lines to CR/LF. This bash problem 17459 # is reportedly fixed, but why not run on old versions too? 17460 sed '$q' "$ltmain" >> "$cfgfile" \ 17461 || (rm -f "$cfgfile"; exit 1) 17462 17463 mv -f "$cfgfile" "$ofile" || 17464 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 17465 chmod +x "$ofile" 17466 17467 ;; 17468 17469 esac 17470done # for ac_tag 17471 17472 17473as_fn_exit 0 17474_ACEOF 17475ac_clean_files=$ac_clean_files_save 17476 17477test $ac_write_fail = 0 || 17478 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 17479 17480 17481# configure is writing to config.log, and then calls config.status. 17482# config.status does its own redirection, appending to config.log. 17483# Unfortunately, on DOS this fails, as config.log is still kept open 17484# by configure, so config.status won't be able to write to it; its 17485# output is simply discarded. So we exec the FD to /dev/null, 17486# effectively closing config.log, so it can be properly (re)opened and 17487# appended to by config.status. When coming back to configure, we 17488# need to make the FD available again. 17489if test "$no_create" != yes; then 17490 ac_cs_success=: 17491 ac_config_status_args= 17492 test "$silent" = yes && 17493 ac_config_status_args="$ac_config_status_args --quiet" 17494 exec 5>/dev/null 17495 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 17496 exec 5>>config.log 17497 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 17498 # would make configure fail if this is the last instruction. 17499 $ac_cs_success || as_fn_exit 1 17500fi 17501if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 17502 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 17503$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 17504fi 17505 17506