1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for file 5.37. 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.37' 594PACKAGE_STRING='file 5.37' 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 643OTOOL64 644OTOOL 645LIPO 646NMEDIT 647DSYMUTIL 648MANIFEST_TOOL 649RANLIB 650ac_ct_AR 651AR 652DLLTOOL 653OBJDUMP 654NM 655ac_ct_DUMPBIN 656DUMPBIN 657LD 658FGREP 659SED 660LIBTOOL 661LN_S 662EGREP 663GREP 664CPP 665am__fastdepCC_FALSE 666am__fastdepCC_TRUE 667CCDEPMODE 668am__nodep 669AMDEPBACKSLASH 670AMDEP_FALSE 671AMDEP_TRUE 672am__quote 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' 766ac_subst_files='' 767ac_user_opts=' 768enable_option_checking 769enable_silent_rules 770enable_maintainer_mode 771enable_elf 772enable_elf_core 773enable_zlib 774enable_libseccomp 775enable_fsect_man5 776enable_dependency_tracking 777enable_static 778with_pic 779enable_shared 780enable_fast_install 781with_gnu_ld 782with_sysroot 783enable_libtool_lock 784enable_largefile 785enable_warnings 786' 787 ac_precious_vars='build_alias 788host_alias 789target_alias 790CC 791CFLAGS 792LDFLAGS 793LIBS 794CPPFLAGS 795CPP' 796 797 798# Initialize some variables set by options. 799ac_init_help= 800ac_init_version=false 801ac_unrecognized_opts= 802ac_unrecognized_sep= 803# The variables have the same names as the options, with 804# dashes changed to underlines. 805cache_file=/dev/null 806exec_prefix=NONE 807no_create= 808no_recursion= 809prefix=NONE 810program_prefix=NONE 811program_suffix=NONE 812program_transform_name=s,x,x, 813silent= 814site= 815srcdir= 816verbose= 817x_includes=NONE 818x_libraries=NONE 819 820# Installation directory options. 821# These are left unexpanded so users can "make install exec_prefix=/foo" 822# and all the variables that are supposed to be based on exec_prefix 823# by default will actually change. 824# Use braces instead of parens because sh, perl, etc. also accept them. 825# (The list follows the same order as the GNU Coding Standards.) 826bindir='${exec_prefix}/bin' 827sbindir='${exec_prefix}/sbin' 828libexecdir='${exec_prefix}/libexec' 829datarootdir='${prefix}/share' 830datadir='${datarootdir}' 831sysconfdir='${prefix}/etc' 832sharedstatedir='${prefix}/com' 833localstatedir='${prefix}/var' 834includedir='${prefix}/include' 835oldincludedir='/usr/include' 836docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 837infodir='${datarootdir}/info' 838htmldir='${docdir}' 839dvidir='${docdir}' 840pdfdir='${docdir}' 841psdir='${docdir}' 842libdir='${exec_prefix}/lib' 843localedir='${datarootdir}/locale' 844mandir='${datarootdir}/man' 845 846ac_prev= 847ac_dashdash= 848for ac_option 849do 850 # If the previous option needs an argument, assign it. 851 if test -n "$ac_prev"; then 852 eval $ac_prev=\$ac_option 853 ac_prev= 854 continue 855 fi 856 857 case $ac_option in 858 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 859 *=) ac_optarg= ;; 860 *) ac_optarg=yes ;; 861 esac 862 863 # Accept the important Cygnus configure options, so we can diagnose typos. 864 865 case $ac_dashdash$ac_option in 866 --) 867 ac_dashdash=yes ;; 868 869 -bindir | --bindir | --bindi | --bind | --bin | --bi) 870 ac_prev=bindir ;; 871 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 872 bindir=$ac_optarg ;; 873 874 -build | --build | --buil | --bui | --bu) 875 ac_prev=build_alias ;; 876 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 877 build_alias=$ac_optarg ;; 878 879 -cache-file | --cache-file | --cache-fil | --cache-fi \ 880 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 881 ac_prev=cache_file ;; 882 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 883 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 884 cache_file=$ac_optarg ;; 885 886 --config-cache | -C) 887 cache_file=config.cache ;; 888 889 -datadir | --datadir | --datadi | --datad) 890 ac_prev=datadir ;; 891 -datadir=* | --datadir=* | --datadi=* | --datad=*) 892 datadir=$ac_optarg ;; 893 894 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 895 | --dataroo | --dataro | --datar) 896 ac_prev=datarootdir ;; 897 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 898 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 899 datarootdir=$ac_optarg ;; 900 901 -disable-* | --disable-*) 902 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 903 # Reject names that are not valid shell variable names. 904 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 905 as_fn_error $? "invalid feature name: $ac_useropt" 906 ac_useropt_orig=$ac_useropt 907 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 908 case $ac_user_opts in 909 *" 910"enable_$ac_useropt" 911"*) ;; 912 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 913 ac_unrecognized_sep=', ';; 914 esac 915 eval enable_$ac_useropt=no ;; 916 917 -docdir | --docdir | --docdi | --doc | --do) 918 ac_prev=docdir ;; 919 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 920 docdir=$ac_optarg ;; 921 922 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 923 ac_prev=dvidir ;; 924 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 925 dvidir=$ac_optarg ;; 926 927 -enable-* | --enable-*) 928 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 929 # Reject names that are not valid shell variable names. 930 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 931 as_fn_error $? "invalid feature name: $ac_useropt" 932 ac_useropt_orig=$ac_useropt 933 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 934 case $ac_user_opts in 935 *" 936"enable_$ac_useropt" 937"*) ;; 938 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 939 ac_unrecognized_sep=', ';; 940 esac 941 eval enable_$ac_useropt=\$ac_optarg ;; 942 943 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 944 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 945 | --exec | --exe | --ex) 946 ac_prev=exec_prefix ;; 947 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 948 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 949 | --exec=* | --exe=* | --ex=*) 950 exec_prefix=$ac_optarg ;; 951 952 -gas | --gas | --ga | --g) 953 # Obsolete; use --with-gas. 954 with_gas=yes ;; 955 956 -help | --help | --hel | --he | -h) 957 ac_init_help=long ;; 958 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 959 ac_init_help=recursive ;; 960 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 961 ac_init_help=short ;; 962 963 -host | --host | --hos | --ho) 964 ac_prev=host_alias ;; 965 -host=* | --host=* | --hos=* | --ho=*) 966 host_alias=$ac_optarg ;; 967 968 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 969 ac_prev=htmldir ;; 970 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 971 | --ht=*) 972 htmldir=$ac_optarg ;; 973 974 -includedir | --includedir | --includedi | --included | --include \ 975 | --includ | --inclu | --incl | --inc) 976 ac_prev=includedir ;; 977 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 978 | --includ=* | --inclu=* | --incl=* | --inc=*) 979 includedir=$ac_optarg ;; 980 981 -infodir | --infodir | --infodi | --infod | --info | --inf) 982 ac_prev=infodir ;; 983 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 984 infodir=$ac_optarg ;; 985 986 -libdir | --libdir | --libdi | --libd) 987 ac_prev=libdir ;; 988 -libdir=* | --libdir=* | --libdi=* | --libd=*) 989 libdir=$ac_optarg ;; 990 991 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 992 | --libexe | --libex | --libe) 993 ac_prev=libexecdir ;; 994 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 995 | --libexe=* | --libex=* | --libe=*) 996 libexecdir=$ac_optarg ;; 997 998 -localedir | --localedir | --localedi | --localed | --locale) 999 ac_prev=localedir ;; 1000 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1001 localedir=$ac_optarg ;; 1002 1003 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1004 | --localstate | --localstat | --localsta | --localst | --locals) 1005 ac_prev=localstatedir ;; 1006 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1007 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1008 localstatedir=$ac_optarg ;; 1009 1010 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1011 ac_prev=mandir ;; 1012 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1013 mandir=$ac_optarg ;; 1014 1015 -nfp | --nfp | --nf) 1016 # Obsolete; use --without-fp. 1017 with_fp=no ;; 1018 1019 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1020 | --no-cr | --no-c | -n) 1021 no_create=yes ;; 1022 1023 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1024 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1025 no_recursion=yes ;; 1026 1027 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1028 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1029 | --oldin | --oldi | --old | --ol | --o) 1030 ac_prev=oldincludedir ;; 1031 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1032 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1033 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1034 oldincludedir=$ac_optarg ;; 1035 1036 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1037 ac_prev=prefix ;; 1038 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1039 prefix=$ac_optarg ;; 1040 1041 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1042 | --program-pre | --program-pr | --program-p) 1043 ac_prev=program_prefix ;; 1044 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1045 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1046 program_prefix=$ac_optarg ;; 1047 1048 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1049 | --program-suf | --program-su | --program-s) 1050 ac_prev=program_suffix ;; 1051 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1052 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1053 program_suffix=$ac_optarg ;; 1054 1055 -program-transform-name | --program-transform-name \ 1056 | --program-transform-nam | --program-transform-na \ 1057 | --program-transform-n | --program-transform- \ 1058 | --program-transform | --program-transfor \ 1059 | --program-transfo | --program-transf \ 1060 | --program-trans | --program-tran \ 1061 | --progr-tra | --program-tr | --program-t) 1062 ac_prev=program_transform_name ;; 1063 -program-transform-name=* | --program-transform-name=* \ 1064 | --program-transform-nam=* | --program-transform-na=* \ 1065 | --program-transform-n=* | --program-transform-=* \ 1066 | --program-transform=* | --program-transfor=* \ 1067 | --program-transfo=* | --program-transf=* \ 1068 | --program-trans=* | --program-tran=* \ 1069 | --progr-tra=* | --program-tr=* | --program-t=*) 1070 program_transform_name=$ac_optarg ;; 1071 1072 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1073 ac_prev=pdfdir ;; 1074 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1075 pdfdir=$ac_optarg ;; 1076 1077 -psdir | --psdir | --psdi | --psd | --ps) 1078 ac_prev=psdir ;; 1079 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1080 psdir=$ac_optarg ;; 1081 1082 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1083 | -silent | --silent | --silen | --sile | --sil) 1084 silent=yes ;; 1085 1086 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1087 ac_prev=sbindir ;; 1088 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1089 | --sbi=* | --sb=*) 1090 sbindir=$ac_optarg ;; 1091 1092 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1093 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1094 | --sharedst | --shareds | --shared | --share | --shar \ 1095 | --sha | --sh) 1096 ac_prev=sharedstatedir ;; 1097 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1098 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1099 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1100 | --sha=* | --sh=*) 1101 sharedstatedir=$ac_optarg ;; 1102 1103 -site | --site | --sit) 1104 ac_prev=site ;; 1105 -site=* | --site=* | --sit=*) 1106 site=$ac_optarg ;; 1107 1108 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1109 ac_prev=srcdir ;; 1110 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1111 srcdir=$ac_optarg ;; 1112 1113 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1114 | --syscon | --sysco | --sysc | --sys | --sy) 1115 ac_prev=sysconfdir ;; 1116 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1117 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1118 sysconfdir=$ac_optarg ;; 1119 1120 -target | --target | --targe | --targ | --tar | --ta | --t) 1121 ac_prev=target_alias ;; 1122 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1123 target_alias=$ac_optarg ;; 1124 1125 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1126 verbose=yes ;; 1127 1128 -version | --version | --versio | --versi | --vers | -V) 1129 ac_init_version=: ;; 1130 1131 -with-* | --with-*) 1132 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1133 # Reject names that are not valid shell variable names. 1134 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1135 as_fn_error $? "invalid package name: $ac_useropt" 1136 ac_useropt_orig=$ac_useropt 1137 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1138 case $ac_user_opts in 1139 *" 1140"with_$ac_useropt" 1141"*) ;; 1142 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1143 ac_unrecognized_sep=', ';; 1144 esac 1145 eval with_$ac_useropt=\$ac_optarg ;; 1146 1147 -without-* | --without-*) 1148 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1149 # Reject names that are not valid shell variable names. 1150 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1151 as_fn_error $? "invalid package name: $ac_useropt" 1152 ac_useropt_orig=$ac_useropt 1153 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1154 case $ac_user_opts in 1155 *" 1156"with_$ac_useropt" 1157"*) ;; 1158 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1159 ac_unrecognized_sep=', ';; 1160 esac 1161 eval with_$ac_useropt=no ;; 1162 1163 --x) 1164 # Obsolete; use --with-x. 1165 with_x=yes ;; 1166 1167 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1168 | --x-incl | --x-inc | --x-in | --x-i) 1169 ac_prev=x_includes ;; 1170 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1171 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1172 x_includes=$ac_optarg ;; 1173 1174 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1175 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1176 ac_prev=x_libraries ;; 1177 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1178 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1179 x_libraries=$ac_optarg ;; 1180 1181 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1182Try \`$0 --help' for more information" 1183 ;; 1184 1185 *=*) 1186 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1187 # Reject names that are not valid shell variable names. 1188 case $ac_envvar in #( 1189 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1190 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1191 esac 1192 eval $ac_envvar=\$ac_optarg 1193 export $ac_envvar ;; 1194 1195 *) 1196 # FIXME: should be removed in autoconf 3.0. 1197 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1198 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1199 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1200 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1201 ;; 1202 1203 esac 1204done 1205 1206if test -n "$ac_prev"; then 1207 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1208 as_fn_error $? "missing argument to $ac_option" 1209fi 1210 1211if test -n "$ac_unrecognized_opts"; then 1212 case $enable_option_checking in 1213 no) ;; 1214 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1215 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1216 esac 1217fi 1218 1219# Check all directory arguments for consistency. 1220for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1221 datadir sysconfdir sharedstatedir localstatedir includedir \ 1222 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1223 libdir localedir mandir 1224do 1225 eval ac_val=\$$ac_var 1226 # Remove trailing slashes. 1227 case $ac_val in 1228 */ ) 1229 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1230 eval $ac_var=\$ac_val;; 1231 esac 1232 # Be sure to have absolute directory names. 1233 case $ac_val in 1234 [\\/$]* | ?:[\\/]* ) continue;; 1235 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1236 esac 1237 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1238done 1239 1240# There might be people who depend on the old broken behavior: `$host' 1241# used to hold the argument of --host etc. 1242# FIXME: To remove some day. 1243build=$build_alias 1244host=$host_alias 1245target=$target_alias 1246 1247# FIXME: To remove some day. 1248if test "x$host_alias" != x; then 1249 if test "x$build_alias" = x; then 1250 cross_compiling=maybe 1251 elif test "x$build_alias" != "x$host_alias"; then 1252 cross_compiling=yes 1253 fi 1254fi 1255 1256ac_tool_prefix= 1257test -n "$host_alias" && ac_tool_prefix=$host_alias- 1258 1259test "$silent" = yes && exec 6>/dev/null 1260 1261 1262ac_pwd=`pwd` && test -n "$ac_pwd" && 1263ac_ls_di=`ls -di .` && 1264ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1265 as_fn_error $? "working directory cannot be determined" 1266test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1267 as_fn_error $? "pwd does not report name of working directory" 1268 1269 1270# Find the source files, if location was not specified. 1271if test -z "$srcdir"; then 1272 ac_srcdir_defaulted=yes 1273 # Try the directory containing this script, then the parent directory. 1274 ac_confdir=`$as_dirname -- "$as_myself" || 1275$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1276 X"$as_myself" : 'X\(//\)[^/]' \| \ 1277 X"$as_myself" : 'X\(//\)$' \| \ 1278 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1279$as_echo X"$as_myself" | 1280 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1281 s//\1/ 1282 q 1283 } 1284 /^X\(\/\/\)[^/].*/{ 1285 s//\1/ 1286 q 1287 } 1288 /^X\(\/\/\)$/{ 1289 s//\1/ 1290 q 1291 } 1292 /^X\(\/\).*/{ 1293 s//\1/ 1294 q 1295 } 1296 s/.*/./; q'` 1297 srcdir=$ac_confdir 1298 if test ! -r "$srcdir/$ac_unique_file"; then 1299 srcdir=.. 1300 fi 1301else 1302 ac_srcdir_defaulted=no 1303fi 1304if test ! -r "$srcdir/$ac_unique_file"; then 1305 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1306 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1307fi 1308ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1309ac_abs_confdir=`( 1310 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1311 pwd)` 1312# When building in place, set srcdir=. 1313if test "$ac_abs_confdir" = "$ac_pwd"; then 1314 srcdir=. 1315fi 1316# Remove unnecessary trailing slashes from srcdir. 1317# Double slashes in file names in object file debugging info 1318# mess up M-x gdb in Emacs. 1319case $srcdir in 1320*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1321esac 1322for ac_var in $ac_precious_vars; do 1323 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1324 eval ac_env_${ac_var}_value=\$${ac_var} 1325 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1326 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1327done 1328 1329# 1330# Report the --help message. 1331# 1332if test "$ac_init_help" = "long"; then 1333 # Omit some internal or obsolete options to make the list less imposing. 1334 # This message is too long to be a string in the A/UX 3.1 sh. 1335 cat <<_ACEOF 1336\`configure' configures file 5.37 to adapt to many kinds of systems. 1337 1338Usage: $0 [OPTION]... [VAR=VALUE]... 1339 1340To assign environment variables (e.g., CC, CFLAGS...), specify them as 1341VAR=VALUE. See below for descriptions of some of the useful variables. 1342 1343Defaults for the options are specified in brackets. 1344 1345Configuration: 1346 -h, --help display this help and exit 1347 --help=short display options specific to this package 1348 --help=recursive display the short help of all the included packages 1349 -V, --version display version information and exit 1350 -q, --quiet, --silent do not print \`checking ...' messages 1351 --cache-file=FILE cache test results in FILE [disabled] 1352 -C, --config-cache alias for \`--cache-file=config.cache' 1353 -n, --no-create do not create output files 1354 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1355 1356Installation directories: 1357 --prefix=PREFIX install architecture-independent files in PREFIX 1358 [$ac_default_prefix] 1359 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1360 [PREFIX] 1361 1362By default, \`make install' will install all the files in 1363\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1364an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1365for instance \`--prefix=\$HOME'. 1366 1367For better control, use the options below. 1368 1369Fine tuning of the installation directories: 1370 --bindir=DIR user executables [EPREFIX/bin] 1371 --sbindir=DIR system admin executables [EPREFIX/sbin] 1372 --libexecdir=DIR program executables [EPREFIX/libexec] 1373 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1374 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1375 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1376 --libdir=DIR object code libraries [EPREFIX/lib] 1377 --includedir=DIR C header files [PREFIX/include] 1378 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1379 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1380 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1381 --infodir=DIR info documentation [DATAROOTDIR/info] 1382 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1383 --mandir=DIR man documentation [DATAROOTDIR/man] 1384 --docdir=DIR documentation root [DATAROOTDIR/doc/file] 1385 --htmldir=DIR html documentation [DOCDIR] 1386 --dvidir=DIR dvi documentation [DOCDIR] 1387 --pdfdir=DIR pdf documentation [DOCDIR] 1388 --psdir=DIR ps documentation [DOCDIR] 1389_ACEOF 1390 1391 cat <<\_ACEOF 1392 1393Program names: 1394 --program-prefix=PREFIX prepend PREFIX to installed program names 1395 --program-suffix=SUFFIX append SUFFIX to installed program names 1396 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1397 1398System types: 1399 --build=BUILD configure for building on BUILD [guessed] 1400 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1401_ACEOF 1402fi 1403 1404if test -n "$ac_init_help"; then 1405 case $ac_init_help in 1406 short | recursive ) echo "Configuration of file 5.37:";; 1407 esac 1408 cat <<\_ACEOF 1409 1410Optional Features: 1411 --disable-option-checking ignore unrecognized --enable/--with options 1412 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1413 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1414 --enable-silent-rules less verbose build output (undo: "make V=1") 1415 --disable-silent-rules verbose build output (undo: "make V=0") 1416 --enable-maintainer-mode 1417 enable make rules and dependencies not useful (and 1418 sometimes confusing) to the casual installer 1419 --disable-elf disable builtin ELF support 1420 --disable-elf-core disable ELF core file support 1421 --disable-zlib disable zlib compression support [default=auto] 1422 --disable-libseccomp disable libseccomp sandboxing [default=auto] 1423 --enable-fsect-man5 enable file formats in man section 5 1424 --enable-dependency-tracking 1425 do not reject slow dependency extractors 1426 --disable-dependency-tracking 1427 speeds up one-time build 1428 --enable-static[=PKGS] build static libraries [default=no] 1429 --enable-shared[=PKGS] build shared libraries [default=yes] 1430 --enable-fast-install[=PKGS] 1431 optimize for fast installation [default=yes] 1432 --disable-libtool-lock avoid locking (might break parallel builds) 1433 --disable-largefile omit support for large files 1434 --disable-warnings disable compiler warnings 1435 1436Optional Packages: 1437 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1438 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1439 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1440 both] 1441 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1442 --with-sysroot=DIR Search for dependent libraries within DIR 1443 (or the compiler's sysroot if not specified). 1444 1445Some influential environment variables: 1446 CC C compiler command 1447 CFLAGS C compiler flags 1448 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1449 nonstandard directory <lib dir> 1450 LIBS libraries to pass to the linker, e.g. -l<library> 1451 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1452 you have headers in a nonstandard directory <include dir> 1453 CPP C preprocessor 1454 1455Use these variables to override the choices made by `configure' or to help 1456it to find libraries and programs with nonstandard names/locations. 1457 1458Report bugs to <christos@astron.com>. 1459_ACEOF 1460ac_status=$? 1461fi 1462 1463if test "$ac_init_help" = "recursive"; then 1464 # If there are subdirs, report their specific --help. 1465 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1466 test -d "$ac_dir" || 1467 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1468 continue 1469 ac_builddir=. 1470 1471case "$ac_dir" in 1472.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1473*) 1474 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1475 # A ".." for each directory in $ac_dir_suffix. 1476 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1477 case $ac_top_builddir_sub in 1478 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1479 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1480 esac ;; 1481esac 1482ac_abs_top_builddir=$ac_pwd 1483ac_abs_builddir=$ac_pwd$ac_dir_suffix 1484# for backward compatibility: 1485ac_top_builddir=$ac_top_build_prefix 1486 1487case $srcdir in 1488 .) # We are building in place. 1489 ac_srcdir=. 1490 ac_top_srcdir=$ac_top_builddir_sub 1491 ac_abs_top_srcdir=$ac_pwd ;; 1492 [\\/]* | ?:[\\/]* ) # Absolute name. 1493 ac_srcdir=$srcdir$ac_dir_suffix; 1494 ac_top_srcdir=$srcdir 1495 ac_abs_top_srcdir=$srcdir ;; 1496 *) # Relative name. 1497 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1498 ac_top_srcdir=$ac_top_build_prefix$srcdir 1499 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1500esac 1501ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1502 1503 cd "$ac_dir" || { ac_status=$?; continue; } 1504 # Check for guested configure. 1505 if test -f "$ac_srcdir/configure.gnu"; then 1506 echo && 1507 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1508 elif test -f "$ac_srcdir/configure"; then 1509 echo && 1510 $SHELL "$ac_srcdir/configure" --help=recursive 1511 else 1512 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1513 fi || ac_status=$? 1514 cd "$ac_pwd" || { ac_status=$?; break; } 1515 done 1516fi 1517 1518test -n "$ac_init_help" && exit $ac_status 1519if $ac_init_version; then 1520 cat <<\_ACEOF 1521file configure 5.37 1522generated by GNU Autoconf 2.69 1523 1524Copyright (C) 2012 Free Software Foundation, Inc. 1525This configure script is free software; the Free Software Foundation 1526gives unlimited permission to copy, distribute and modify it. 1527_ACEOF 1528 exit 1529fi 1530 1531## ------------------------ ## 1532## Autoconf initialization. ## 1533## ------------------------ ## 1534 1535# ac_fn_c_try_compile LINENO 1536# -------------------------- 1537# Try to compile conftest.$ac_ext, and return whether this succeeded. 1538ac_fn_c_try_compile () 1539{ 1540 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1541 rm -f conftest.$ac_objext 1542 if { { ac_try="$ac_compile" 1543case "(($ac_try" in 1544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1545 *) ac_try_echo=$ac_try;; 1546esac 1547eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1548$as_echo "$ac_try_echo"; } >&5 1549 (eval "$ac_compile") 2>conftest.err 1550 ac_status=$? 1551 if test -s conftest.err; then 1552 grep -v '^ *+' conftest.err >conftest.er1 1553 cat conftest.er1 >&5 1554 mv -f conftest.er1 conftest.err 1555 fi 1556 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1557 test $ac_status = 0; } && { 1558 test -z "$ac_c_werror_flag" || 1559 test ! -s conftest.err 1560 } && test -s conftest.$ac_objext; then : 1561 ac_retval=0 1562else 1563 $as_echo "$as_me: failed program was:" >&5 1564sed 's/^/| /' conftest.$ac_ext >&5 1565 1566 ac_retval=1 1567fi 1568 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1569 as_fn_set_status $ac_retval 1570 1571} # ac_fn_c_try_compile 1572 1573# ac_fn_c_try_cpp LINENO 1574# ---------------------- 1575# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1576ac_fn_c_try_cpp () 1577{ 1578 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1579 if { { ac_try="$ac_cpp conftest.$ac_ext" 1580case "(($ac_try" in 1581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1582 *) ac_try_echo=$ac_try;; 1583esac 1584eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1585$as_echo "$ac_try_echo"; } >&5 1586 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1587 ac_status=$? 1588 if test -s conftest.err; then 1589 grep -v '^ *+' conftest.err >conftest.er1 1590 cat conftest.er1 >&5 1591 mv -f conftest.er1 conftest.err 1592 fi 1593 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1594 test $ac_status = 0; } > conftest.i && { 1595 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1596 test ! -s conftest.err 1597 }; then : 1598 ac_retval=0 1599else 1600 $as_echo "$as_me: failed program was:" >&5 1601sed 's/^/| /' conftest.$ac_ext >&5 1602 1603 ac_retval=1 1604fi 1605 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1606 as_fn_set_status $ac_retval 1607 1608} # ac_fn_c_try_cpp 1609 1610# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1611# ------------------------------------------------------- 1612# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1613# the include files in INCLUDES and setting the cache variable VAR 1614# accordingly. 1615ac_fn_c_check_header_mongrel () 1616{ 1617 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1618 if eval \${$3+:} false; then : 1619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1620$as_echo_n "checking for $2... " >&6; } 1621if eval \${$3+:} false; then : 1622 $as_echo_n "(cached) " >&6 1623fi 1624eval ac_res=\$$3 1625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1626$as_echo "$ac_res" >&6; } 1627else 1628 # Is the header compilable? 1629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1630$as_echo_n "checking $2 usability... " >&6; } 1631cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1632/* end confdefs.h. */ 1633$4 1634#include <$2> 1635_ACEOF 1636if ac_fn_c_try_compile "$LINENO"; then : 1637 ac_header_compiler=yes 1638else 1639 ac_header_compiler=no 1640fi 1641rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1643$as_echo "$ac_header_compiler" >&6; } 1644 1645# Is the header present? 1646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1647$as_echo_n "checking $2 presence... " >&6; } 1648cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1649/* end confdefs.h. */ 1650#include <$2> 1651_ACEOF 1652if ac_fn_c_try_cpp "$LINENO"; then : 1653 ac_header_preproc=yes 1654else 1655 ac_header_preproc=no 1656fi 1657rm -f conftest.err conftest.i conftest.$ac_ext 1658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1659$as_echo "$ac_header_preproc" >&6; } 1660 1661# So? What about this header? 1662case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1663 yes:no: ) 1664 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1665$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1666 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1667$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1668 ;; 1669 no:yes:* ) 1670 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1671$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1672 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1673$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1674 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1675$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1676 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1677$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1678 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1679$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1680( $as_echo "## ---------------------------------- ## 1681## Report this to christos@astron.com ## 1682## ---------------------------------- ##" 1683 ) | sed "s/^/$as_me: WARNING: /" >&2 1684 ;; 1685esac 1686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1687$as_echo_n "checking for $2... " >&6; } 1688if eval \${$3+:} false; then : 1689 $as_echo_n "(cached) " >&6 1690else 1691 eval "$3=\$ac_header_compiler" 1692fi 1693eval ac_res=\$$3 1694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1695$as_echo "$ac_res" >&6; } 1696fi 1697 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1698 1699} # ac_fn_c_check_header_mongrel 1700 1701# ac_fn_c_try_run LINENO 1702# ---------------------- 1703# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1704# that executables *can* be run. 1705ac_fn_c_try_run () 1706{ 1707 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1708 if { { ac_try="$ac_link" 1709case "(($ac_try" in 1710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1711 *) ac_try_echo=$ac_try;; 1712esac 1713eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1714$as_echo "$ac_try_echo"; } >&5 1715 (eval "$ac_link") 2>&5 1716 ac_status=$? 1717 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1718 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1719 { { case "(($ac_try" in 1720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1721 *) ac_try_echo=$ac_try;; 1722esac 1723eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1724$as_echo "$ac_try_echo"; } >&5 1725 (eval "$ac_try") 2>&5 1726 ac_status=$? 1727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1728 test $ac_status = 0; }; }; then : 1729 ac_retval=0 1730else 1731 $as_echo "$as_me: program exited with status $ac_status" >&5 1732 $as_echo "$as_me: failed program was:" >&5 1733sed 's/^/| /' conftest.$ac_ext >&5 1734 1735 ac_retval=$ac_status 1736fi 1737 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1738 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1739 as_fn_set_status $ac_retval 1740 1741} # ac_fn_c_try_run 1742 1743# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1744# ------------------------------------------------------- 1745# Tests whether HEADER exists and can be compiled using the include files in 1746# INCLUDES, setting the cache variable VAR accordingly. 1747ac_fn_c_check_header_compile () 1748{ 1749 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1751$as_echo_n "checking for $2... " >&6; } 1752if eval \${$3+:} false; then : 1753 $as_echo_n "(cached) " >&6 1754else 1755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1756/* end confdefs.h. */ 1757$4 1758#include <$2> 1759_ACEOF 1760if ac_fn_c_try_compile "$LINENO"; then : 1761 eval "$3=yes" 1762else 1763 eval "$3=no" 1764fi 1765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1766fi 1767eval ac_res=\$$3 1768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1769$as_echo "$ac_res" >&6; } 1770 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1771 1772} # ac_fn_c_check_header_compile 1773 1774# ac_fn_c_try_link LINENO 1775# ----------------------- 1776# Try to link conftest.$ac_ext, and return whether this succeeded. 1777ac_fn_c_try_link () 1778{ 1779 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1780 rm -f conftest.$ac_objext conftest$ac_exeext 1781 if { { ac_try="$ac_link" 1782case "(($ac_try" in 1783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1784 *) ac_try_echo=$ac_try;; 1785esac 1786eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1787$as_echo "$ac_try_echo"; } >&5 1788 (eval "$ac_link") 2>conftest.err 1789 ac_status=$? 1790 if test -s conftest.err; then 1791 grep -v '^ *+' conftest.err >conftest.er1 1792 cat conftest.er1 >&5 1793 mv -f conftest.er1 conftest.err 1794 fi 1795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1796 test $ac_status = 0; } && { 1797 test -z "$ac_c_werror_flag" || 1798 test ! -s conftest.err 1799 } && test -s conftest$ac_exeext && { 1800 test "$cross_compiling" = yes || 1801 test -x conftest$ac_exeext 1802 }; then : 1803 ac_retval=0 1804else 1805 $as_echo "$as_me: failed program was:" >&5 1806sed 's/^/| /' conftest.$ac_ext >&5 1807 1808 ac_retval=1 1809fi 1810 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1811 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1812 # interfere with the next link command; also delete a directory that is 1813 # left behind by Apple's compiler. We do this before executing the actions. 1814 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1815 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1816 as_fn_set_status $ac_retval 1817 1818} # ac_fn_c_try_link 1819 1820# ac_fn_c_check_func LINENO FUNC VAR 1821# ---------------------------------- 1822# Tests whether FUNC exists, setting the cache variable VAR accordingly 1823ac_fn_c_check_func () 1824{ 1825 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1827$as_echo_n "checking for $2... " >&6; } 1828if eval \${$3+:} false; then : 1829 $as_echo_n "(cached) " >&6 1830else 1831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1832/* end confdefs.h. */ 1833/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1834 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1835#define $2 innocuous_$2 1836 1837/* System header to define __stub macros and hopefully few prototypes, 1838 which can conflict with char $2 (); below. 1839 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1840 <limits.h> exists even on freestanding compilers. */ 1841 1842#ifdef __STDC__ 1843# include <limits.h> 1844#else 1845# include <assert.h> 1846#endif 1847 1848#undef $2 1849 1850/* Override any GCC internal prototype to avoid an error. 1851 Use char because int might match the return type of a GCC 1852 builtin and then its argument prototype would still apply. */ 1853#ifdef __cplusplus 1854extern "C" 1855#endif 1856char $2 (); 1857/* The GNU C library defines this for functions which it implements 1858 to always fail with ENOSYS. Some functions are actually named 1859 something starting with __ and the normal name is an alias. */ 1860#if defined __stub_$2 || defined __stub___$2 1861choke me 1862#endif 1863 1864int 1865main () 1866{ 1867return $2 (); 1868 ; 1869 return 0; 1870} 1871_ACEOF 1872if ac_fn_c_try_link "$LINENO"; then : 1873 eval "$3=yes" 1874else 1875 eval "$3=no" 1876fi 1877rm -f core conftest.err conftest.$ac_objext \ 1878 conftest$ac_exeext conftest.$ac_ext 1879fi 1880eval ac_res=\$$3 1881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1882$as_echo "$ac_res" >&6; } 1883 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1884 1885} # ac_fn_c_check_func 1886 1887# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 1888# ------------------------------------------- 1889# Tests whether TYPE exists after having included INCLUDES, setting cache 1890# variable VAR accordingly. 1891ac_fn_c_check_type () 1892{ 1893 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1895$as_echo_n "checking for $2... " >&6; } 1896if eval \${$3+:} false; then : 1897 $as_echo_n "(cached) " >&6 1898else 1899 eval "$3=no" 1900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1901/* end confdefs.h. */ 1902$4 1903int 1904main () 1905{ 1906if (sizeof ($2)) 1907 return 0; 1908 ; 1909 return 0; 1910} 1911_ACEOF 1912if ac_fn_c_try_compile "$LINENO"; then : 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 1927else 1928 eval "$3=yes" 1929fi 1930rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1931fi 1932rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1933fi 1934eval ac_res=\$$3 1935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1936$as_echo "$ac_res" >&6; } 1937 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1938 1939} # ac_fn_c_check_type 1940 1941# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 1942# ---------------------------------------------------- 1943# Tries to find if the field MEMBER exists in type AGGR, after including 1944# INCLUDES, setting cache variable VAR accordingly. 1945ac_fn_c_check_member () 1946{ 1947 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 1949$as_echo_n "checking for $2.$3... " >&6; } 1950if eval \${$4+:} false; then : 1951 $as_echo_n "(cached) " >&6 1952else 1953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1954/* end confdefs.h. */ 1955$5 1956int 1957main () 1958{ 1959static $2 ac_aggr; 1960if (ac_aggr.$3) 1961return 0; 1962 ; 1963 return 0; 1964} 1965_ACEOF 1966if ac_fn_c_try_compile "$LINENO"; then : 1967 eval "$4=yes" 1968else 1969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1970/* end confdefs.h. */ 1971$5 1972int 1973main () 1974{ 1975static $2 ac_aggr; 1976if (sizeof ac_aggr.$3) 1977return 0; 1978 ; 1979 return 0; 1980} 1981_ACEOF 1982if ac_fn_c_try_compile "$LINENO"; then : 1983 eval "$4=yes" 1984else 1985 eval "$4=no" 1986fi 1987rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1988fi 1989rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1990fi 1991eval ac_res=\$$4 1992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1993$as_echo "$ac_res" >&6; } 1994 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1995 1996} # ac_fn_c_check_member 1997 1998# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1999# --------------------------------------------- 2000# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 2001# accordingly. 2002ac_fn_c_check_decl () 2003{ 2004 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2005 as_decl_name=`echo $2|sed 's/ *(.*//'` 2006 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 2007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 2008$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 2009if eval \${$3+:} false; then : 2010 $as_echo_n "(cached) " >&6 2011else 2012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2013/* end confdefs.h. */ 2014$4 2015int 2016main () 2017{ 2018#ifndef $as_decl_name 2019#ifdef __cplusplus 2020 (void) $as_decl_use; 2021#else 2022 (void) $as_decl_name; 2023#endif 2024#endif 2025 2026 ; 2027 return 0; 2028} 2029_ACEOF 2030if ac_fn_c_try_compile "$LINENO"; then : 2031 eval "$3=yes" 2032else 2033 eval "$3=no" 2034fi 2035rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2036fi 2037eval ac_res=\$$3 2038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2039$as_echo "$ac_res" >&6; } 2040 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2041 2042} # ac_fn_c_check_decl 2043 2044# ac_fn_c_find_uintX_t LINENO BITS VAR 2045# ------------------------------------ 2046# Finds an unsigned integer type with width BITS, setting cache variable VAR 2047# accordingly. 2048ac_fn_c_find_uintX_t () 2049{ 2050 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5 2052$as_echo_n "checking for uint$2_t... " >&6; } 2053if eval \${$3+:} false; then : 2054 $as_echo_n "(cached) " >&6 2055else 2056 eval "$3=no" 2057 # Order is important - never check a type that is potentially smaller 2058 # than half of the expected target width. 2059 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \ 2060 'unsigned long long int' 'unsigned short int' 'unsigned char'; do 2061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2062/* end confdefs.h. */ 2063$ac_includes_default 2064int 2065main () 2066{ 2067static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)]; 2068test_array [0] = 0; 2069return test_array [0]; 2070 2071 ; 2072 return 0; 2073} 2074_ACEOF 2075if ac_fn_c_try_compile "$LINENO"; then : 2076 case $ac_type in #( 2077 uint$2_t) : 2078 eval "$3=yes" ;; #( 2079 *) : 2080 eval "$3=\$ac_type" ;; 2081esac 2082fi 2083rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2084 if eval test \"x\$"$3"\" = x"no"; then : 2085 2086else 2087 break 2088fi 2089 done 2090fi 2091eval ac_res=\$$3 2092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2093$as_echo "$ac_res" >&6; } 2094 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2095 2096} # ac_fn_c_find_uintX_t 2097 2098# ac_fn_c_find_intX_t LINENO BITS VAR 2099# ----------------------------------- 2100# Finds a signed integer type with width BITS, setting cache variable VAR 2101# accordingly. 2102ac_fn_c_find_intX_t () 2103{ 2104 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5 2106$as_echo_n "checking for int$2_t... " >&6; } 2107if eval \${$3+:} false; then : 2108 $as_echo_n "(cached) " >&6 2109else 2110 eval "$3=no" 2111 # Order is important - never check a type that is potentially smaller 2112 # than half of the expected target width. 2113 for ac_type in int$2_t 'int' 'long int' \ 2114 'long long int' 'short int' 'signed char'; do 2115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2116/* end confdefs.h. */ 2117$ac_includes_default 2118 enum { N = $2 / 2 - 1 }; 2119int 2120main () 2121{ 2122static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))]; 2123test_array [0] = 0; 2124return test_array [0]; 2125 2126 ; 2127 return 0; 2128} 2129_ACEOF 2130if ac_fn_c_try_compile "$LINENO"; then : 2131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2132/* end confdefs.h. */ 2133$ac_includes_default 2134 enum { N = $2 / 2 - 1 }; 2135int 2136main () 2137{ 2138static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1) 2139 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))]; 2140test_array [0] = 0; 2141return test_array [0]; 2142 2143 ; 2144 return 0; 2145} 2146_ACEOF 2147if ac_fn_c_try_compile "$LINENO"; then : 2148 2149else 2150 case $ac_type in #( 2151 int$2_t) : 2152 eval "$3=yes" ;; #( 2153 *) : 2154 eval "$3=\$ac_type" ;; 2155esac 2156fi 2157rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2158fi 2159rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2160 if eval test \"x\$"$3"\" = x"no"; then : 2161 2162else 2163 break 2164fi 2165 done 2166fi 2167eval ac_res=\$$3 2168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2169$as_echo "$ac_res" >&6; } 2170 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2171 2172} # ac_fn_c_find_intX_t 2173cat >config.log <<_ACEOF 2174This file contains any messages produced by compilers while 2175running configure, to aid debugging if configure makes a mistake. 2176 2177It was created by file $as_me 5.37, which was 2178generated by GNU Autoconf 2.69. Invocation command line was 2179 2180 $ $0 $@ 2181 2182_ACEOF 2183exec 5>>config.log 2184{ 2185cat <<_ASUNAME 2186## --------- ## 2187## Platform. ## 2188## --------- ## 2189 2190hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2191uname -m = `(uname -m) 2>/dev/null || echo unknown` 2192uname -r = `(uname -r) 2>/dev/null || echo unknown` 2193uname -s = `(uname -s) 2>/dev/null || echo unknown` 2194uname -v = `(uname -v) 2>/dev/null || echo unknown` 2195 2196/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2197/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2198 2199/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2200/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2201/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2202/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2203/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2204/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2205/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2206 2207_ASUNAME 2208 2209as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2210for as_dir in $PATH 2211do 2212 IFS=$as_save_IFS 2213 test -z "$as_dir" && as_dir=. 2214 $as_echo "PATH: $as_dir" 2215 done 2216IFS=$as_save_IFS 2217 2218} >&5 2219 2220cat >&5 <<_ACEOF 2221 2222 2223## ----------- ## 2224## Core tests. ## 2225## ----------- ## 2226 2227_ACEOF 2228 2229 2230# Keep a trace of the command line. 2231# Strip out --no-create and --no-recursion so they do not pile up. 2232# Strip out --silent because we don't want to record it for future runs. 2233# Also quote any args containing shell meta-characters. 2234# Make two passes to allow for proper duplicate-argument suppression. 2235ac_configure_args= 2236ac_configure_args0= 2237ac_configure_args1= 2238ac_must_keep_next=false 2239for ac_pass in 1 2 2240do 2241 for ac_arg 2242 do 2243 case $ac_arg in 2244 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2245 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2246 | -silent | --silent | --silen | --sile | --sil) 2247 continue ;; 2248 *\'*) 2249 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2250 esac 2251 case $ac_pass in 2252 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2253 2) 2254 as_fn_append ac_configure_args1 " '$ac_arg'" 2255 if test $ac_must_keep_next = true; then 2256 ac_must_keep_next=false # Got value, back to normal. 2257 else 2258 case $ac_arg in 2259 *=* | --config-cache | -C | -disable-* | --disable-* \ 2260 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2261 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2262 | -with-* | --with-* | -without-* | --without-* | --x) 2263 case "$ac_configure_args0 " in 2264 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2265 esac 2266 ;; 2267 -* ) ac_must_keep_next=true ;; 2268 esac 2269 fi 2270 as_fn_append ac_configure_args " '$ac_arg'" 2271 ;; 2272 esac 2273 done 2274done 2275{ ac_configure_args0=; unset ac_configure_args0;} 2276{ ac_configure_args1=; unset ac_configure_args1;} 2277 2278# When interrupted or exit'd, cleanup temporary files, and complete 2279# config.log. We remove comments because anyway the quotes in there 2280# would cause problems or look ugly. 2281# WARNING: Use '\'' to represent an apostrophe within the trap. 2282# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2283trap 'exit_status=$? 2284 # Save into config.log some information that might help in debugging. 2285 { 2286 echo 2287 2288 $as_echo "## ---------------- ## 2289## Cache variables. ## 2290## ---------------- ##" 2291 echo 2292 # The following way of writing the cache mishandles newlines in values, 2293( 2294 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2295 eval ac_val=\$$ac_var 2296 case $ac_val in #( 2297 *${as_nl}*) 2298 case $ac_var in #( 2299 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2300$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2301 esac 2302 case $ac_var in #( 2303 _ | IFS | as_nl) ;; #( 2304 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2305 *) { eval $ac_var=; unset $ac_var;} ;; 2306 esac ;; 2307 esac 2308 done 2309 (set) 2>&1 | 2310 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2311 *${as_nl}ac_space=\ *) 2312 sed -n \ 2313 "s/'\''/'\''\\\\'\'''\''/g; 2314 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2315 ;; #( 2316 *) 2317 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2318 ;; 2319 esac | 2320 sort 2321) 2322 echo 2323 2324 $as_echo "## ----------------- ## 2325## Output variables. ## 2326## ----------------- ##" 2327 echo 2328 for ac_var in $ac_subst_vars 2329 do 2330 eval ac_val=\$$ac_var 2331 case $ac_val in 2332 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2333 esac 2334 $as_echo "$ac_var='\''$ac_val'\''" 2335 done | sort 2336 echo 2337 2338 if test -n "$ac_subst_files"; then 2339 $as_echo "## ------------------- ## 2340## File substitutions. ## 2341## ------------------- ##" 2342 echo 2343 for ac_var in $ac_subst_files 2344 do 2345 eval ac_val=\$$ac_var 2346 case $ac_val in 2347 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2348 esac 2349 $as_echo "$ac_var='\''$ac_val'\''" 2350 done | sort 2351 echo 2352 fi 2353 2354 if test -s confdefs.h; then 2355 $as_echo "## ----------- ## 2356## confdefs.h. ## 2357## ----------- ##" 2358 echo 2359 cat confdefs.h 2360 echo 2361 fi 2362 test "$ac_signal" != 0 && 2363 $as_echo "$as_me: caught signal $ac_signal" 2364 $as_echo "$as_me: exit $exit_status" 2365 } >&5 2366 rm -f core *.core core.conftest.* && 2367 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2368 exit $exit_status 2369' 0 2370for ac_signal in 1 2 13 15; do 2371 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2372done 2373ac_signal=0 2374 2375# confdefs.h avoids OS command line length limits that DEFS can exceed. 2376rm -f -r conftest* confdefs.h 2377 2378$as_echo "/* confdefs.h */" > confdefs.h 2379 2380# Predefined preprocessor variables. 2381 2382cat >>confdefs.h <<_ACEOF 2383#define PACKAGE_NAME "$PACKAGE_NAME" 2384_ACEOF 2385 2386cat >>confdefs.h <<_ACEOF 2387#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2388_ACEOF 2389 2390cat >>confdefs.h <<_ACEOF 2391#define PACKAGE_VERSION "$PACKAGE_VERSION" 2392_ACEOF 2393 2394cat >>confdefs.h <<_ACEOF 2395#define PACKAGE_STRING "$PACKAGE_STRING" 2396_ACEOF 2397 2398cat >>confdefs.h <<_ACEOF 2399#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2400_ACEOF 2401 2402cat >>confdefs.h <<_ACEOF 2403#define PACKAGE_URL "$PACKAGE_URL" 2404_ACEOF 2405 2406 2407# Let the site file select an alternate cache file if it wants to. 2408# Prefer an explicitly selected file to automatically selected ones. 2409ac_site_file1=NONE 2410ac_site_file2=NONE 2411if test -n "$CONFIG_SITE"; then 2412 # We do not want a PATH search for config.site. 2413 case $CONFIG_SITE in #(( 2414 -*) ac_site_file1=./$CONFIG_SITE;; 2415 */*) ac_site_file1=$CONFIG_SITE;; 2416 *) ac_site_file1=./$CONFIG_SITE;; 2417 esac 2418elif test "x$prefix" != xNONE; then 2419 ac_site_file1=$prefix/share/config.site 2420 ac_site_file2=$prefix/etc/config.site 2421else 2422 ac_site_file1=$ac_default_prefix/share/config.site 2423 ac_site_file2=$ac_default_prefix/etc/config.site 2424fi 2425for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2426do 2427 test "x$ac_site_file" = xNONE && continue 2428 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2429 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2430$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2431 sed 's/^/| /' "$ac_site_file" >&5 2432 . "$ac_site_file" \ 2433 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2434$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2435as_fn_error $? "failed to load site script $ac_site_file 2436See \`config.log' for more details" "$LINENO" 5; } 2437 fi 2438done 2439 2440if test -r "$cache_file"; then 2441 # Some versions of bash will fail to source /dev/null (special files 2442 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2443 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2444 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2445$as_echo "$as_me: loading cache $cache_file" >&6;} 2446 case $cache_file in 2447 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2448 *) . "./$cache_file";; 2449 esac 2450 fi 2451else 2452 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2453$as_echo "$as_me: creating cache $cache_file" >&6;} 2454 >$cache_file 2455fi 2456 2457as_fn_append ac_header_list " stdlib.h" 2458as_fn_append ac_header_list " unistd.h" 2459as_fn_append ac_header_list " sys/param.h" 2460# Check that the precious variables saved in the cache have kept the same 2461# value. 2462ac_cache_corrupted=false 2463for ac_var in $ac_precious_vars; do 2464 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2465 eval ac_new_set=\$ac_env_${ac_var}_set 2466 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2467 eval ac_new_val=\$ac_env_${ac_var}_value 2468 case $ac_old_set,$ac_new_set in 2469 set,) 2470 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2471$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2472 ac_cache_corrupted=: ;; 2473 ,set) 2474 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2475$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2476 ac_cache_corrupted=: ;; 2477 ,);; 2478 *) 2479 if test "x$ac_old_val" != "x$ac_new_val"; then 2480 # differences in whitespace do not lead to failure. 2481 ac_old_val_w=`echo x $ac_old_val` 2482 ac_new_val_w=`echo x $ac_new_val` 2483 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2484 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2485$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2486 ac_cache_corrupted=: 2487 else 2488 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2489$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2490 eval $ac_var=\$ac_old_val 2491 fi 2492 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2493$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2494 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2495$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2496 fi;; 2497 esac 2498 # Pass precious variables to config.status. 2499 if test "$ac_new_set" = set; then 2500 case $ac_new_val in 2501 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2502 *) ac_arg=$ac_var=$ac_new_val ;; 2503 esac 2504 case " $ac_configure_args " in 2505 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2506 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2507 esac 2508 fi 2509done 2510if $ac_cache_corrupted; then 2511 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2512$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2513 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2514$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2515 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2516fi 2517## -------------------- ## 2518## Main body of script. ## 2519## -------------------- ## 2520 2521ac_ext=c 2522ac_cpp='$CPP $CPPFLAGS' 2523ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2524ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2525ac_compiler_gnu=$ac_cv_c_compiler_gnu 2526 2527 2528am__api_version='1.15' 2529 2530ac_aux_dir= 2531for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2532 if test -f "$ac_dir/install-sh"; then 2533 ac_aux_dir=$ac_dir 2534 ac_install_sh="$ac_aux_dir/install-sh -c" 2535 break 2536 elif test -f "$ac_dir/install.sh"; then 2537 ac_aux_dir=$ac_dir 2538 ac_install_sh="$ac_aux_dir/install.sh -c" 2539 break 2540 elif test -f "$ac_dir/shtool"; then 2541 ac_aux_dir=$ac_dir 2542 ac_install_sh="$ac_aux_dir/shtool install -c" 2543 break 2544 fi 2545done 2546if test -z "$ac_aux_dir"; then 2547 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2548fi 2549 2550# These three variables are undocumented and unsupported, 2551# and are intended to be withdrawn in a future Autoconf release. 2552# They can cause serious problems if a builder's source tree is in a directory 2553# whose full name contains unusual characters. 2554ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2555ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2556ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2557 2558 2559# Find a good install program. We prefer a C program (faster), 2560# so one script is as good as another. But avoid the broken or 2561# incompatible versions: 2562# SysV /etc/install, /usr/sbin/install 2563# SunOS /usr/etc/install 2564# IRIX /sbin/install 2565# AIX /bin/install 2566# AmigaOS /C/install, which installs bootblocks on floppy discs 2567# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2568# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2569# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2570# OS/2's system install, which has a completely different semantic 2571# ./install, which can be erroneously created by make from ./install.sh. 2572# Reject install programs that cannot install multiple files. 2573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2574$as_echo_n "checking for a BSD-compatible install... " >&6; } 2575if test -z "$INSTALL"; then 2576if ${ac_cv_path_install+:} false; then : 2577 $as_echo_n "(cached) " >&6 2578else 2579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2580for as_dir in $PATH 2581do 2582 IFS=$as_save_IFS 2583 test -z "$as_dir" && as_dir=. 2584 # Account for people who put trailing slashes in PATH elements. 2585case $as_dir/ in #(( 2586 ./ | .// | /[cC]/* | \ 2587 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2588 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2589 /usr/ucb/* ) ;; 2590 *) 2591 # OSF1 and SCO ODT 3.0 have their own names for install. 2592 # Don't use installbsd from OSF since it installs stuff as root 2593 # by default. 2594 for ac_prog in ginstall scoinst install; do 2595 for ac_exec_ext in '' $ac_executable_extensions; do 2596 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2597 if test $ac_prog = install && 2598 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2599 # AIX install. It has an incompatible calling convention. 2600 : 2601 elif test $ac_prog = install && 2602 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2603 # program-specific install script used by HP pwplus--don't use. 2604 : 2605 else 2606 rm -rf conftest.one conftest.two conftest.dir 2607 echo one > conftest.one 2608 echo two > conftest.two 2609 mkdir conftest.dir 2610 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2611 test -s conftest.one && test -s conftest.two && 2612 test -s conftest.dir/conftest.one && 2613 test -s conftest.dir/conftest.two 2614 then 2615 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2616 break 3 2617 fi 2618 fi 2619 fi 2620 done 2621 done 2622 ;; 2623esac 2624 2625 done 2626IFS=$as_save_IFS 2627 2628rm -rf conftest.one conftest.two conftest.dir 2629 2630fi 2631 if test "${ac_cv_path_install+set}" = set; then 2632 INSTALL=$ac_cv_path_install 2633 else 2634 # As a last resort, use the slow shell script. Don't cache a 2635 # value for INSTALL within a source directory, because that will 2636 # break other packages using the cache if that directory is 2637 # removed, or if the value is a relative name. 2638 INSTALL=$ac_install_sh 2639 fi 2640fi 2641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2642$as_echo "$INSTALL" >&6; } 2643 2644# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2645# It thinks the first close brace ends the variable substitution. 2646test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2647 2648test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2649 2650test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2651 2652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2653$as_echo_n "checking whether build environment is sane... " >&6; } 2654# Reject unsafe characters in $srcdir or the absolute working directory 2655# name. Accept space and tab only in the latter. 2656am_lf=' 2657' 2658case `pwd` in 2659 *[\\\"\#\$\&\'\`$am_lf]*) 2660 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2661esac 2662case $srcdir in 2663 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2664 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2665esac 2666 2667# Do 'set' in a subshell so we don't clobber the current shell's 2668# arguments. Must try -L first in case configure is actually a 2669# symlink; some systems play weird games with the mod time of symlinks 2670# (eg FreeBSD returns the mod time of the symlink's containing 2671# directory). 2672if ( 2673 am_has_slept=no 2674 for am_try in 1 2; do 2675 echo "timestamp, slept: $am_has_slept" > conftest.file 2676 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2677 if test "$*" = "X"; then 2678 # -L didn't work. 2679 set X `ls -t "$srcdir/configure" conftest.file` 2680 fi 2681 if test "$*" != "X $srcdir/configure conftest.file" \ 2682 && test "$*" != "X conftest.file $srcdir/configure"; then 2683 2684 # If neither matched, then we have a broken ls. This can happen 2685 # if, for instance, CONFIG_SHELL is bash and it inherits a 2686 # broken ls alias from the environment. This has actually 2687 # happened. Such a system could not be considered "sane". 2688 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2689 alias in your environment" "$LINENO" 5 2690 fi 2691 if test "$2" = conftest.file || test $am_try -eq 2; then 2692 break 2693 fi 2694 # Just in case. 2695 sleep 1 2696 am_has_slept=yes 2697 done 2698 test "$2" = conftest.file 2699 ) 2700then 2701 # Ok. 2702 : 2703else 2704 as_fn_error $? "newly created file is older than distributed files! 2705Check your system clock" "$LINENO" 5 2706fi 2707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2708$as_echo "yes" >&6; } 2709# If we didn't sleep, we still need to ensure time stamps of config.status and 2710# generated files are strictly newer. 2711am_sleep_pid= 2712if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2713 ( sleep 1 ) & 2714 am_sleep_pid=$! 2715fi 2716 2717rm -f conftest.file 2718 2719test "$program_prefix" != NONE && 2720 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2721# Use a double $ so make ignores it. 2722test "$program_suffix" != NONE && 2723 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2724# Double any \ or $. 2725# By default was `s,x,x', remove it if useless. 2726ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2727program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2728 2729# Expand $ac_aux_dir to an absolute path. 2730am_aux_dir=`cd "$ac_aux_dir" && pwd` 2731 2732if test x"${MISSING+set}" != xset; then 2733 case $am_aux_dir in 2734 *\ * | *\ *) 2735 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2736 *) 2737 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2738 esac 2739fi 2740# Use eval to expand $SHELL 2741if eval "$MISSING --is-lightweight"; then 2742 am_missing_run="$MISSING " 2743else 2744 am_missing_run= 2745 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2746$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2747fi 2748 2749if test x"${install_sh+set}" != xset; then 2750 case $am_aux_dir in 2751 *\ * | *\ *) 2752 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2753 *) 2754 install_sh="\${SHELL} $am_aux_dir/install-sh" 2755 esac 2756fi 2757 2758# Installed binaries are usually stripped using 'strip' when the user 2759# run "make install-strip". However 'strip' might not be the right 2760# tool to use in cross-compilation environments, therefore Automake 2761# will honor the 'STRIP' environment variable to overrule this program. 2762if test "$cross_compiling" != no; then 2763 if test -n "$ac_tool_prefix"; then 2764 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2765set dummy ${ac_tool_prefix}strip; ac_word=$2 2766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2767$as_echo_n "checking for $ac_word... " >&6; } 2768if ${ac_cv_prog_STRIP+:} false; then : 2769 $as_echo_n "(cached) " >&6 2770else 2771 if test -n "$STRIP"; then 2772 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2773else 2774as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2775for as_dir in $PATH 2776do 2777 IFS=$as_save_IFS 2778 test -z "$as_dir" && as_dir=. 2779 for ac_exec_ext in '' $ac_executable_extensions; do 2780 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2781 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2783 break 2 2784 fi 2785done 2786 done 2787IFS=$as_save_IFS 2788 2789fi 2790fi 2791STRIP=$ac_cv_prog_STRIP 2792if test -n "$STRIP"; then 2793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2794$as_echo "$STRIP" >&6; } 2795else 2796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2797$as_echo "no" >&6; } 2798fi 2799 2800 2801fi 2802if test -z "$ac_cv_prog_STRIP"; then 2803 ac_ct_STRIP=$STRIP 2804 # Extract the first word of "strip", so it can be a program name with args. 2805set dummy strip; ac_word=$2 2806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2807$as_echo_n "checking for $ac_word... " >&6; } 2808if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2809 $as_echo_n "(cached) " >&6 2810else 2811 if test -n "$ac_ct_STRIP"; then 2812 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2813else 2814as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2815for as_dir in $PATH 2816do 2817 IFS=$as_save_IFS 2818 test -z "$as_dir" && as_dir=. 2819 for ac_exec_ext in '' $ac_executable_extensions; do 2820 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2821 ac_cv_prog_ac_ct_STRIP="strip" 2822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2823 break 2 2824 fi 2825done 2826 done 2827IFS=$as_save_IFS 2828 2829fi 2830fi 2831ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2832if test -n "$ac_ct_STRIP"; then 2833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2834$as_echo "$ac_ct_STRIP" >&6; } 2835else 2836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2837$as_echo "no" >&6; } 2838fi 2839 2840 if test "x$ac_ct_STRIP" = x; then 2841 STRIP=":" 2842 else 2843 case $cross_compiling:$ac_tool_warned in 2844yes:) 2845{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2846$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2847ac_tool_warned=yes ;; 2848esac 2849 STRIP=$ac_ct_STRIP 2850 fi 2851else 2852 STRIP="$ac_cv_prog_STRIP" 2853fi 2854 2855fi 2856INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2857 2858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2859$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2860if test -z "$MKDIR_P"; then 2861 if ${ac_cv_path_mkdir+:} false; then : 2862 $as_echo_n "(cached) " >&6 2863else 2864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2865for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2866do 2867 IFS=$as_save_IFS 2868 test -z "$as_dir" && as_dir=. 2869 for ac_prog in mkdir gmkdir; do 2870 for ac_exec_ext in '' $ac_executable_extensions; do 2871 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2872 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2873 'mkdir (GNU coreutils) '* | \ 2874 'mkdir (coreutils) '* | \ 2875 'mkdir (fileutils) '4.1*) 2876 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2877 break 3;; 2878 esac 2879 done 2880 done 2881 done 2882IFS=$as_save_IFS 2883 2884fi 2885 2886 test -d ./--version && rmdir ./--version 2887 if test "${ac_cv_path_mkdir+set}" = set; then 2888 MKDIR_P="$ac_cv_path_mkdir -p" 2889 else 2890 # As a last resort, use the slow shell script. Don't cache a 2891 # value for MKDIR_P within a source directory, because that will 2892 # break other packages using the cache if that directory is 2893 # removed, or if the value is a relative name. 2894 MKDIR_P="$ac_install_sh -d" 2895 fi 2896fi 2897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2898$as_echo "$MKDIR_P" >&6; } 2899 2900for ac_prog in gawk mawk nawk awk 2901do 2902 # Extract the first word of "$ac_prog", so it can be a program name with args. 2903set dummy $ac_prog; ac_word=$2 2904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2905$as_echo_n "checking for $ac_word... " >&6; } 2906if ${ac_cv_prog_AWK+:} false; then : 2907 $as_echo_n "(cached) " >&6 2908else 2909 if test -n "$AWK"; then 2910 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2911else 2912as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2913for as_dir in $PATH 2914do 2915 IFS=$as_save_IFS 2916 test -z "$as_dir" && as_dir=. 2917 for ac_exec_ext in '' $ac_executable_extensions; do 2918 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2919 ac_cv_prog_AWK="$ac_prog" 2920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2921 break 2 2922 fi 2923done 2924 done 2925IFS=$as_save_IFS 2926 2927fi 2928fi 2929AWK=$ac_cv_prog_AWK 2930if test -n "$AWK"; then 2931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2932$as_echo "$AWK" >&6; } 2933else 2934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2935$as_echo "no" >&6; } 2936fi 2937 2938 2939 test -n "$AWK" && break 2940done 2941 2942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2943$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2944set x ${MAKE-make} 2945ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2946if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2947 $as_echo_n "(cached) " >&6 2948else 2949 cat >conftest.make <<\_ACEOF 2950SHELL = /bin/sh 2951all: 2952 @echo '@@@%%%=$(MAKE)=@@@%%%' 2953_ACEOF 2954# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2955case `${MAKE-make} -f conftest.make 2>/dev/null` in 2956 *@@@%%%=?*=@@@%%%*) 2957 eval ac_cv_prog_make_${ac_make}_set=yes;; 2958 *) 2959 eval ac_cv_prog_make_${ac_make}_set=no;; 2960esac 2961rm -f conftest.make 2962fi 2963if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2965$as_echo "yes" >&6; } 2966 SET_MAKE= 2967else 2968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2969$as_echo "no" >&6; } 2970 SET_MAKE="MAKE=${MAKE-make}" 2971fi 2972 2973rm -rf .tst 2>/dev/null 2974mkdir .tst 2>/dev/null 2975if test -d .tst; then 2976 am__leading_dot=. 2977else 2978 am__leading_dot=_ 2979fi 2980rmdir .tst 2>/dev/null 2981 2982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 2983$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 2984 # Check whether --enable-maintainer-mode was given. 2985if test "${enable_maintainer_mode+set}" = set; then : 2986 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 2987else 2988 USE_MAINTAINER_MODE=no 2989fi 2990 2991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 2992$as_echo "$USE_MAINTAINER_MODE" >&6; } 2993 if test $USE_MAINTAINER_MODE = yes; then 2994 MAINTAINER_MODE_TRUE= 2995 MAINTAINER_MODE_FALSE='#' 2996else 2997 MAINTAINER_MODE_TRUE='#' 2998 MAINTAINER_MODE_FALSE= 2999fi 3000 3001 MAINT=$MAINTAINER_MODE_TRUE 3002 3003 3004# Check whether --enable-silent-rules was given. 3005if test "${enable_silent_rules+set}" = set; then : 3006 enableval=$enable_silent_rules; 3007fi 3008 3009case $enable_silent_rules in # ((( 3010 yes) AM_DEFAULT_VERBOSITY=0;; 3011 no) AM_DEFAULT_VERBOSITY=1;; 3012 *) AM_DEFAULT_VERBOSITY=1;; 3013esac 3014am_make=${MAKE-make} 3015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3016$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 3017if ${am_cv_make_support_nested_variables+:} false; then : 3018 $as_echo_n "(cached) " >&6 3019else 3020 if $as_echo 'TRUE=$(BAR$(V)) 3021BAR0=false 3022BAR1=true 3023V=1 3024am__doit: 3025 @$(TRUE) 3026.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3027 am_cv_make_support_nested_variables=yes 3028else 3029 am_cv_make_support_nested_variables=no 3030fi 3031fi 3032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3033$as_echo "$am_cv_make_support_nested_variables" >&6; } 3034if test $am_cv_make_support_nested_variables = yes; then 3035 AM_V='$(V)' 3036 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3037else 3038 AM_V=$AM_DEFAULT_VERBOSITY 3039 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3040fi 3041AM_BACKSLASH='\' 3042 3043if test "`cd $srcdir && pwd`" != "`pwd`"; then 3044 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3045 # is not polluted with repeated "-I." 3046 am__isrc=' -I$(srcdir)' 3047 # test to see if srcdir already configured 3048 if test -f $srcdir/config.status; then 3049 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3050 fi 3051fi 3052 3053# test whether we have cygpath 3054if test -z "$CYGPATH_W"; then 3055 if (cygpath --version) >/dev/null 2>/dev/null; then 3056 CYGPATH_W='cygpath -w' 3057 else 3058 CYGPATH_W=echo 3059 fi 3060fi 3061 3062 3063# Define the identity of the package. 3064 PACKAGE='file' 3065 VERSION='5.37' 3066 3067 3068cat >>confdefs.h <<_ACEOF 3069#define PACKAGE "$PACKAGE" 3070_ACEOF 3071 3072 3073cat >>confdefs.h <<_ACEOF 3074#define VERSION "$VERSION" 3075_ACEOF 3076 3077# Some tools Automake needs. 3078 3079ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3080 3081 3082AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3083 3084 3085AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3086 3087 3088AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3089 3090 3091MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3092 3093# For better backward compatibility. To be removed once Automake 1.9.x 3094# dies out for good. For more background, see: 3095# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3096# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3097mkdir_p='$(MKDIR_P)' 3098 3099# We need awk for the "check" target (and possibly the TAP driver). The 3100# system "awk" is bad on some platforms. 3101# Always define AMTAR for backward compatibility. Yes, it's still used 3102# in the wild :-( We should find a proper way to deprecate it ... 3103AMTAR='$${TAR-tar}' 3104 3105 3106# We'll loop over all known methods to create a tar archive until one works. 3107_am_tools='gnutar pax cpio none' 3108 3109am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3110 3111 3112 3113 3114 3115 3116# POSIX will say in a future version that running "rm -f" with no argument 3117# is OK; and we want to be able to make that assumption in our Makefile 3118# recipes. So use an aggressive probe to check that the usage we want is 3119# actually supported "in the wild" to an acceptable degree. 3120# See automake bug#10828. 3121# To make any issue more visible, cause the running configure to be aborted 3122# by default if the 'rm' program in use doesn't match our expectations; the 3123# user can still override this though. 3124if rm -f && rm -fr && rm -rf; then : OK; else 3125 cat >&2 <<'END' 3126Oops! 3127 3128Your 'rm' program seems unable to run without file operands specified 3129on the command line, even when the '-f' option is present. This is contrary 3130to the behaviour of most rm programs out there, and not conforming with 3131the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3132 3133Please tell bug-automake@gnu.org about your system, including the value 3134of your $PATH and any error possibly output before this message. This 3135can help us improve future automake versions. 3136 3137END 3138 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3139 echo 'Configuration will proceed anyway, since you have set the' >&2 3140 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3141 echo >&2 3142 else 3143 cat >&2 <<'END' 3144Aborting the configuration process, to ensure you take notice of the issue. 3145 3146You can download and install GNU coreutils to get an 'rm' implementation 3147that behaves properly: <http://www.gnu.org/software/coreutils/>. 3148 3149If you want to complete the configuration process using your problematic 3150'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3151to "yes", and re-run configure. 3152 3153END 3154 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3155 fi 3156fi 3157 3158# Check whether --enable-silent-rules was given. 3159if test "${enable_silent_rules+set}" = set; then : 3160 enableval=$enable_silent_rules; 3161fi 3162 3163case $enable_silent_rules in # ((( 3164 yes) AM_DEFAULT_VERBOSITY=0;; 3165 no) AM_DEFAULT_VERBOSITY=1;; 3166 *) AM_DEFAULT_VERBOSITY=0;; 3167esac 3168am_make=${MAKE-make} 3169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3170$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 3171if ${am_cv_make_support_nested_variables+:} false; then : 3172 $as_echo_n "(cached) " >&6 3173else 3174 if $as_echo 'TRUE=$(BAR$(V)) 3175BAR0=false 3176BAR1=true 3177V=1 3178am__doit: 3179 @$(TRUE) 3180.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3181 am_cv_make_support_nested_variables=yes 3182else 3183 am_cv_make_support_nested_variables=no 3184fi 3185fi 3186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3187$as_echo "$am_cv_make_support_nested_variables" >&6; } 3188if test $am_cv_make_support_nested_variables = yes; then 3189 AM_V='$(V)' 3190 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3191else 3192 AM_V=$AM_DEFAULT_VERBOSITY 3193 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3194fi 3195AM_BACKSLASH='\' 3196 3197 3198ac_config_headers="$ac_config_headers config.h" 3199 3200 3201 3202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for builtin ELF support" >&5 3203$as_echo_n "checking for builtin ELF support... " >&6; } 3204# Check whether --enable-elf was given. 3205if test "${enable_elf+set}" = set; then : 3206 enableval=$enable_elf; if test "${enableval}" = yes; then 3207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3208$as_echo "yes" >&6; } 3209 3210$as_echo "#define BUILTIN_ELF 1" >>confdefs.h 3211 3212else 3213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3214$as_echo "no" >&6; } 3215fi 3216else 3217 3218 # enable by default 3219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3220$as_echo "yes" >&6; } 3221 3222$as_echo "#define BUILTIN_ELF 1" >>confdefs.h 3223 3224 3225fi 3226 3227 3228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF core file support" >&5 3229$as_echo_n "checking for ELF core file support... " >&6; } 3230# Check whether --enable-elf-core was given. 3231if test "${enable_elf_core+set}" = set; then : 3232 enableval=$enable_elf_core; if test "${enableval}" = yes; then 3233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3234$as_echo "yes" >&6; } 3235 3236$as_echo "#define ELFCORE 1" >>confdefs.h 3237 3238else 3239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3240$as_echo "no" >&6; } 3241fi 3242else 3243 3244 # enable by default 3245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3246$as_echo "yes" >&6; } 3247 3248$as_echo "#define ELFCORE 1" >>confdefs.h 3249 3250 3251fi 3252 3253 3254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib support" >&5 3255$as_echo_n "checking for zlib support... " >&6; } 3256# Check whether --enable-zlib was given. 3257if test "${enable_zlib+set}" = set; then : 3258 enableval=$enable_zlib; 3259fi 3260 3261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_zlib" >&5 3262$as_echo "$enable_zlib" >&6; } 3263 3264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libseccomp support" >&5 3265$as_echo_n "checking for libseccomp support... " >&6; } 3266# Check whether --enable-libseccomp was given. 3267if test "${enable_libseccomp+set}" = set; then : 3268 enableval=$enable_libseccomp; 3269fi 3270 3271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_libseccomp" >&5 3272$as_echo "$enable_libseccomp" >&6; } 3273 3274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for file formats in man section 5" >&5 3275$as_echo_n "checking for file formats in man section 5... " >&6; } 3276# Check whether --enable-fsect-man5 was given. 3277if test "${enable_fsect_man5+set}" = set; then : 3278 enableval=$enable_fsect_man5; if test "${enableval}" = yes; then 3279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3280$as_echo "yes" >&6; } 3281 fsect=5 3282else 3283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3284$as_echo "no" >&6; } 3285 fsect=4 3286fi 3287else 3288 3289 # disable by default 3290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3291$as_echo "no" >&6; } 3292 fsect=4 3293 3294fi 3295 3296 3297# Make sure we can run config.sub. 3298$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 3299 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 3300 3301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 3302$as_echo_n "checking build system type... " >&6; } 3303if ${ac_cv_build+:} false; then : 3304 $as_echo_n "(cached) " >&6 3305else 3306 ac_build_alias=$build_alias 3307test "x$ac_build_alias" = x && 3308 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3309test "x$ac_build_alias" = x && 3310 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 3311ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3312 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 3313 3314fi 3315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 3316$as_echo "$ac_cv_build" >&6; } 3317case $ac_cv_build in 3318*-*-*) ;; 3319*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 3320esac 3321build=$ac_cv_build 3322ac_save_IFS=$IFS; IFS='-' 3323set x $ac_cv_build 3324shift 3325build_cpu=$1 3326build_vendor=$2 3327shift; shift 3328# Remember, the first character of IFS is used to create $*, 3329# except with old shells: 3330build_os=$* 3331IFS=$ac_save_IFS 3332case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3333 3334 3335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 3336$as_echo_n "checking host system type... " >&6; } 3337if ${ac_cv_host+:} false; then : 3338 $as_echo_n "(cached) " >&6 3339else 3340 if test "x$host_alias" = x; then 3341 ac_cv_host=$ac_cv_build 3342else 3343 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3344 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 3345fi 3346 3347fi 3348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 3349$as_echo "$ac_cv_host" >&6; } 3350case $ac_cv_host in 3351*-*-*) ;; 3352*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 3353esac 3354host=$ac_cv_host 3355ac_save_IFS=$IFS; IFS='-' 3356set x $ac_cv_host 3357shift 3358host_cpu=$1 3359host_vendor=$2 3360shift; shift 3361# Remember, the first character of IFS is used to create $*, 3362# except with old shells: 3363host_os=$* 3364IFS=$ac_save_IFS 3365case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3366 3367 3368case "$host_os" in 3369 mingw32*) 3370 MINGW=1 3371 ;; 3372 *) 3373 MINGW=0 3374 ;; 3375esac 3376 3377 if test "$MINGW" = 1; then 3378 MINGW_TRUE= 3379 MINGW_FALSE='#' 3380else 3381 MINGW_TRUE='#' 3382 MINGW_FALSE= 3383fi 3384 3385 3386pkgdatadir='$(datadir)/misc' 3387 3388 3389 if test x$fsect = x5; then 3390 FSECT5_TRUE= 3391 FSECT5_FALSE='#' 3392else 3393 FSECT5_TRUE='#' 3394 FSECT5_FALSE= 3395fi 3396 3397 3398 3399 3400DEPDIR="${am__leading_dot}deps" 3401 3402ac_config_commands="$ac_config_commands depfiles" 3403 3404 3405am_make=${MAKE-make} 3406cat > confinc << 'END' 3407am__doit: 3408 @echo this is the am__doit target 3409.PHONY: am__doit 3410END 3411# If we don't find an include directive, just comment out the code. 3412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3413$as_echo_n "checking for style of include used by $am_make... " >&6; } 3414am__include="#" 3415am__quote= 3416_am_result=none 3417# First try GNU make style include. 3418echo "include confinc" > confmf 3419# Ignore all kinds of additional output from 'make'. 3420case `$am_make -s -f confmf 2> /dev/null` in #( 3421*the\ am__doit\ target*) 3422 am__include=include 3423 am__quote= 3424 _am_result=GNU 3425 ;; 3426esac 3427# Now try BSD make style include. 3428if test "$am__include" = "#"; then 3429 echo '.include "confinc"' > confmf 3430 case `$am_make -s -f confmf 2> /dev/null` in #( 3431 *the\ am__doit\ target*) 3432 am__include=.include 3433 am__quote="\"" 3434 _am_result=BSD 3435 ;; 3436 esac 3437fi 3438 3439 3440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3441$as_echo "$_am_result" >&6; } 3442rm -f confinc confmf 3443 3444# Check whether --enable-dependency-tracking was given. 3445if test "${enable_dependency_tracking+set}" = set; then : 3446 enableval=$enable_dependency_tracking; 3447fi 3448 3449if test "x$enable_dependency_tracking" != xno; then 3450 am_depcomp="$ac_aux_dir/depcomp" 3451 AMDEPBACKSLASH='\' 3452 am__nodep='_no' 3453fi 3454 if test "x$enable_dependency_tracking" != xno; then 3455 AMDEP_TRUE= 3456 AMDEP_FALSE='#' 3457else 3458 AMDEP_TRUE='#' 3459 AMDEP_FALSE= 3460fi 3461 3462 3463ac_ext=c 3464ac_cpp='$CPP $CPPFLAGS' 3465ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3466ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3467ac_compiler_gnu=$ac_cv_c_compiler_gnu 3468if test -n "$ac_tool_prefix"; then 3469 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3470set dummy ${ac_tool_prefix}gcc; ac_word=$2 3471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3472$as_echo_n "checking for $ac_word... " >&6; } 3473if ${ac_cv_prog_CC+:} false; then : 3474 $as_echo_n "(cached) " >&6 3475else 3476 if test -n "$CC"; then 3477 ac_cv_prog_CC="$CC" # Let the user override the test. 3478else 3479as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3480for as_dir in $PATH 3481do 3482 IFS=$as_save_IFS 3483 test -z "$as_dir" && as_dir=. 3484 for ac_exec_ext in '' $ac_executable_extensions; do 3485 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3486 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3488 break 2 3489 fi 3490done 3491 done 3492IFS=$as_save_IFS 3493 3494fi 3495fi 3496CC=$ac_cv_prog_CC 3497if test -n "$CC"; then 3498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3499$as_echo "$CC" >&6; } 3500else 3501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3502$as_echo "no" >&6; } 3503fi 3504 3505 3506fi 3507if test -z "$ac_cv_prog_CC"; then 3508 ac_ct_CC=$CC 3509 # Extract the first word of "gcc", so it can be a program name with args. 3510set dummy gcc; ac_word=$2 3511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3512$as_echo_n "checking for $ac_word... " >&6; } 3513if ${ac_cv_prog_ac_ct_CC+:} false; then : 3514 $as_echo_n "(cached) " >&6 3515else 3516 if test -n "$ac_ct_CC"; then 3517 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3518else 3519as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3520for as_dir in $PATH 3521do 3522 IFS=$as_save_IFS 3523 test -z "$as_dir" && as_dir=. 3524 for ac_exec_ext in '' $ac_executable_extensions; do 3525 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3526 ac_cv_prog_ac_ct_CC="gcc" 3527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3528 break 2 3529 fi 3530done 3531 done 3532IFS=$as_save_IFS 3533 3534fi 3535fi 3536ac_ct_CC=$ac_cv_prog_ac_ct_CC 3537if test -n "$ac_ct_CC"; then 3538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3539$as_echo "$ac_ct_CC" >&6; } 3540else 3541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3542$as_echo "no" >&6; } 3543fi 3544 3545 if test "x$ac_ct_CC" = x; then 3546 CC="" 3547 else 3548 case $cross_compiling:$ac_tool_warned in 3549yes:) 3550{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3551$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3552ac_tool_warned=yes ;; 3553esac 3554 CC=$ac_ct_CC 3555 fi 3556else 3557 CC="$ac_cv_prog_CC" 3558fi 3559 3560if test -z "$CC"; then 3561 if test -n "$ac_tool_prefix"; then 3562 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3563set dummy ${ac_tool_prefix}cc; ac_word=$2 3564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3565$as_echo_n "checking for $ac_word... " >&6; } 3566if ${ac_cv_prog_CC+:} false; then : 3567 $as_echo_n "(cached) " >&6 3568else 3569 if test -n "$CC"; then 3570 ac_cv_prog_CC="$CC" # Let the user override the test. 3571else 3572as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3573for as_dir in $PATH 3574do 3575 IFS=$as_save_IFS 3576 test -z "$as_dir" && as_dir=. 3577 for ac_exec_ext in '' $ac_executable_extensions; do 3578 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3579 ac_cv_prog_CC="${ac_tool_prefix}cc" 3580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3581 break 2 3582 fi 3583done 3584 done 3585IFS=$as_save_IFS 3586 3587fi 3588fi 3589CC=$ac_cv_prog_CC 3590if test -n "$CC"; then 3591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3592$as_echo "$CC" >&6; } 3593else 3594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3595$as_echo "no" >&6; } 3596fi 3597 3598 3599 fi 3600fi 3601if test -z "$CC"; then 3602 # Extract the first word of "cc", so it can be a program name with args. 3603set dummy cc; ac_word=$2 3604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3605$as_echo_n "checking for $ac_word... " >&6; } 3606if ${ac_cv_prog_CC+:} false; then : 3607 $as_echo_n "(cached) " >&6 3608else 3609 if test -n "$CC"; then 3610 ac_cv_prog_CC="$CC" # Let the user override the test. 3611else 3612 ac_prog_rejected=no 3613as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3614for as_dir in $PATH 3615do 3616 IFS=$as_save_IFS 3617 test -z "$as_dir" && as_dir=. 3618 for ac_exec_ext in '' $ac_executable_extensions; do 3619 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3620 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3621 ac_prog_rejected=yes 3622 continue 3623 fi 3624 ac_cv_prog_CC="cc" 3625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3626 break 2 3627 fi 3628done 3629 done 3630IFS=$as_save_IFS 3631 3632if test $ac_prog_rejected = yes; then 3633 # We found a bogon in the path, so make sure we never use it. 3634 set dummy $ac_cv_prog_CC 3635 shift 3636 if test $# != 0; then 3637 # We chose a different compiler from the bogus one. 3638 # However, it has the same basename, so the bogon will be chosen 3639 # first if we set CC to just the basename; use the full file name. 3640 shift 3641 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3642 fi 3643fi 3644fi 3645fi 3646CC=$ac_cv_prog_CC 3647if test -n "$CC"; then 3648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3649$as_echo "$CC" >&6; } 3650else 3651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3652$as_echo "no" >&6; } 3653fi 3654 3655 3656fi 3657if test -z "$CC"; then 3658 if test -n "$ac_tool_prefix"; then 3659 for ac_prog in cl.exe 3660 do 3661 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3662set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3664$as_echo_n "checking for $ac_word... " >&6; } 3665if ${ac_cv_prog_CC+:} false; then : 3666 $as_echo_n "(cached) " >&6 3667else 3668 if test -n "$CC"; then 3669 ac_cv_prog_CC="$CC" # Let the user override the test. 3670else 3671as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3672for as_dir in $PATH 3673do 3674 IFS=$as_save_IFS 3675 test -z "$as_dir" && as_dir=. 3676 for ac_exec_ext in '' $ac_executable_extensions; do 3677 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3678 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3680 break 2 3681 fi 3682done 3683 done 3684IFS=$as_save_IFS 3685 3686fi 3687fi 3688CC=$ac_cv_prog_CC 3689if test -n "$CC"; then 3690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3691$as_echo "$CC" >&6; } 3692else 3693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3694$as_echo "no" >&6; } 3695fi 3696 3697 3698 test -n "$CC" && break 3699 done 3700fi 3701if test -z "$CC"; then 3702 ac_ct_CC=$CC 3703 for ac_prog in cl.exe 3704do 3705 # Extract the first word of "$ac_prog", so it can be a program name with args. 3706set dummy $ac_prog; ac_word=$2 3707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3708$as_echo_n "checking for $ac_word... " >&6; } 3709if ${ac_cv_prog_ac_ct_CC+:} false; then : 3710 $as_echo_n "(cached) " >&6 3711else 3712 if test -n "$ac_ct_CC"; then 3713 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3714else 3715as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3716for as_dir in $PATH 3717do 3718 IFS=$as_save_IFS 3719 test -z "$as_dir" && as_dir=. 3720 for ac_exec_ext in '' $ac_executable_extensions; do 3721 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3722 ac_cv_prog_ac_ct_CC="$ac_prog" 3723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3724 break 2 3725 fi 3726done 3727 done 3728IFS=$as_save_IFS 3729 3730fi 3731fi 3732ac_ct_CC=$ac_cv_prog_ac_ct_CC 3733if test -n "$ac_ct_CC"; then 3734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3735$as_echo "$ac_ct_CC" >&6; } 3736else 3737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3738$as_echo "no" >&6; } 3739fi 3740 3741 3742 test -n "$ac_ct_CC" && break 3743done 3744 3745 if test "x$ac_ct_CC" = x; then 3746 CC="" 3747 else 3748 case $cross_compiling:$ac_tool_warned in 3749yes:) 3750{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3751$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3752ac_tool_warned=yes ;; 3753esac 3754 CC=$ac_ct_CC 3755 fi 3756fi 3757 3758fi 3759 3760 3761test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3762$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3763as_fn_error $? "no acceptable C compiler found in \$PATH 3764See \`config.log' for more details" "$LINENO" 5; } 3765 3766# Provide some information about the compiler. 3767$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3768set X $ac_compile 3769ac_compiler=$2 3770for ac_option in --version -v -V -qversion; do 3771 { { ac_try="$ac_compiler $ac_option >&5" 3772case "(($ac_try" in 3773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3774 *) ac_try_echo=$ac_try;; 3775esac 3776eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3777$as_echo "$ac_try_echo"; } >&5 3778 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3779 ac_status=$? 3780 if test -s conftest.err; then 3781 sed '10a\ 3782... rest of stderr output deleted ... 3783 10q' conftest.err >conftest.er1 3784 cat conftest.er1 >&5 3785 fi 3786 rm -f conftest.er1 conftest.err 3787 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3788 test $ac_status = 0; } 3789done 3790 3791cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3792/* end confdefs.h. */ 3793 3794int 3795main () 3796{ 3797 3798 ; 3799 return 0; 3800} 3801_ACEOF 3802ac_clean_files_save=$ac_clean_files 3803ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3804# Try to create an executable without -o first, disregard a.out. 3805# It will help us diagnose broken compilers, and finding out an intuition 3806# of exeext. 3807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3808$as_echo_n "checking whether the C compiler works... " >&6; } 3809ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3810 3811# The possible output files: 3812ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3813 3814ac_rmfiles= 3815for ac_file in $ac_files 3816do 3817 case $ac_file in 3818 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3819 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3820 esac 3821done 3822rm -f $ac_rmfiles 3823 3824if { { ac_try="$ac_link_default" 3825case "(($ac_try" in 3826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3827 *) ac_try_echo=$ac_try;; 3828esac 3829eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3830$as_echo "$ac_try_echo"; } >&5 3831 (eval "$ac_link_default") 2>&5 3832 ac_status=$? 3833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3834 test $ac_status = 0; }; then : 3835 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3836# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3837# in a Makefile. We should not override ac_cv_exeext if it was cached, 3838# so that the user can short-circuit this test for compilers unknown to 3839# Autoconf. 3840for ac_file in $ac_files '' 3841do 3842 test -f "$ac_file" || continue 3843 case $ac_file in 3844 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3845 ;; 3846 [ab].out ) 3847 # We found the default executable, but exeext='' is most 3848 # certainly right. 3849 break;; 3850 *.* ) 3851 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3852 then :; else 3853 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3854 fi 3855 # We set ac_cv_exeext here because the later test for it is not 3856 # safe: cross compilers may not add the suffix if given an `-o' 3857 # argument, so we may need to know it at that point already. 3858 # Even if this section looks crufty: it has the advantage of 3859 # actually working. 3860 break;; 3861 * ) 3862 break;; 3863 esac 3864done 3865test "$ac_cv_exeext" = no && ac_cv_exeext= 3866 3867else 3868 ac_file='' 3869fi 3870if test -z "$ac_file"; then : 3871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3872$as_echo "no" >&6; } 3873$as_echo "$as_me: failed program was:" >&5 3874sed 's/^/| /' conftest.$ac_ext >&5 3875 3876{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3877$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3878as_fn_error 77 "C compiler cannot create executables 3879See \`config.log' for more details" "$LINENO" 5; } 3880else 3881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3882$as_echo "yes" >&6; } 3883fi 3884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3885$as_echo_n "checking for C compiler default output file name... " >&6; } 3886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3887$as_echo "$ac_file" >&6; } 3888ac_exeext=$ac_cv_exeext 3889 3890rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3891ac_clean_files=$ac_clean_files_save 3892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3893$as_echo_n "checking for suffix of executables... " >&6; } 3894if { { ac_try="$ac_link" 3895case "(($ac_try" in 3896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3897 *) ac_try_echo=$ac_try;; 3898esac 3899eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3900$as_echo "$ac_try_echo"; } >&5 3901 (eval "$ac_link") 2>&5 3902 ac_status=$? 3903 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3904 test $ac_status = 0; }; then : 3905 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3906# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3907# work properly (i.e., refer to `conftest.exe'), while it won't with 3908# `rm'. 3909for ac_file in conftest.exe conftest conftest.*; do 3910 test -f "$ac_file" || continue 3911 case $ac_file in 3912 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3913 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3914 break;; 3915 * ) break;; 3916 esac 3917done 3918else 3919 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3920$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3921as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3922See \`config.log' for more details" "$LINENO" 5; } 3923fi 3924rm -f conftest conftest$ac_cv_exeext 3925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3926$as_echo "$ac_cv_exeext" >&6; } 3927 3928rm -f conftest.$ac_ext 3929EXEEXT=$ac_cv_exeext 3930ac_exeext=$EXEEXT 3931cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3932/* end confdefs.h. */ 3933#include <stdio.h> 3934int 3935main () 3936{ 3937FILE *f = fopen ("conftest.out", "w"); 3938 return ferror (f) || fclose (f) != 0; 3939 3940 ; 3941 return 0; 3942} 3943_ACEOF 3944ac_clean_files="$ac_clean_files conftest.out" 3945# Check that the compiler produces executables we can run. If not, either 3946# the compiler is broken, or we cross compile. 3947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3948$as_echo_n "checking whether we are cross compiling... " >&6; } 3949if test "$cross_compiling" != yes; then 3950 { { ac_try="$ac_link" 3951case "(($ac_try" in 3952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3953 *) ac_try_echo=$ac_try;; 3954esac 3955eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3956$as_echo "$ac_try_echo"; } >&5 3957 (eval "$ac_link") 2>&5 3958 ac_status=$? 3959 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3960 test $ac_status = 0; } 3961 if { ac_try='./conftest$ac_cv_exeext' 3962 { { case "(($ac_try" in 3963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3964 *) ac_try_echo=$ac_try;; 3965esac 3966eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3967$as_echo "$ac_try_echo"; } >&5 3968 (eval "$ac_try") 2>&5 3969 ac_status=$? 3970 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3971 test $ac_status = 0; }; }; then 3972 cross_compiling=no 3973 else 3974 if test "$cross_compiling" = maybe; then 3975 cross_compiling=yes 3976 else 3977 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3978$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3979as_fn_error $? "cannot run C compiled programs. 3980If you meant to cross compile, use \`--host'. 3981See \`config.log' for more details" "$LINENO" 5; } 3982 fi 3983 fi 3984fi 3985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3986$as_echo "$cross_compiling" >&6; } 3987 3988rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3989ac_clean_files=$ac_clean_files_save 3990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3991$as_echo_n "checking for suffix of object files... " >&6; } 3992if ${ac_cv_objext+:} false; then : 3993 $as_echo_n "(cached) " >&6 3994else 3995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3996/* end confdefs.h. */ 3997 3998int 3999main () 4000{ 4001 4002 ; 4003 return 0; 4004} 4005_ACEOF 4006rm -f conftest.o conftest.obj 4007if { { ac_try="$ac_compile" 4008case "(($ac_try" in 4009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4010 *) ac_try_echo=$ac_try;; 4011esac 4012eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4013$as_echo "$ac_try_echo"; } >&5 4014 (eval "$ac_compile") 2>&5 4015 ac_status=$? 4016 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4017 test $ac_status = 0; }; then : 4018 for ac_file in conftest.o conftest.obj conftest.*; do 4019 test -f "$ac_file" || continue; 4020 case $ac_file in 4021 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4022 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4023 break;; 4024 esac 4025done 4026else 4027 $as_echo "$as_me: failed program was:" >&5 4028sed 's/^/| /' conftest.$ac_ext >&5 4029 4030{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4031$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4032as_fn_error $? "cannot compute suffix of object files: cannot compile 4033See \`config.log' for more details" "$LINENO" 5; } 4034fi 4035rm -f conftest.$ac_cv_objext conftest.$ac_ext 4036fi 4037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4038$as_echo "$ac_cv_objext" >&6; } 4039OBJEXT=$ac_cv_objext 4040ac_objext=$OBJEXT 4041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4042$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4043if ${ac_cv_c_compiler_gnu+:} false; then : 4044 $as_echo_n "(cached) " >&6 4045else 4046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4047/* end confdefs.h. */ 4048 4049int 4050main () 4051{ 4052#ifndef __GNUC__ 4053 choke me 4054#endif 4055 4056 ; 4057 return 0; 4058} 4059_ACEOF 4060if ac_fn_c_try_compile "$LINENO"; then : 4061 ac_compiler_gnu=yes 4062else 4063 ac_compiler_gnu=no 4064fi 4065rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4066ac_cv_c_compiler_gnu=$ac_compiler_gnu 4067 4068fi 4069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4070$as_echo "$ac_cv_c_compiler_gnu" >&6; } 4071if test $ac_compiler_gnu = yes; then 4072 GCC=yes 4073else 4074 GCC= 4075fi 4076ac_test_CFLAGS=${CFLAGS+set} 4077ac_save_CFLAGS=$CFLAGS 4078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4079$as_echo_n "checking whether $CC accepts -g... " >&6; } 4080if ${ac_cv_prog_cc_g+:} false; then : 4081 $as_echo_n "(cached) " >&6 4082else 4083 ac_save_c_werror_flag=$ac_c_werror_flag 4084 ac_c_werror_flag=yes 4085 ac_cv_prog_cc_g=no 4086 CFLAGS="-g" 4087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4088/* end confdefs.h. */ 4089 4090int 4091main () 4092{ 4093 4094 ; 4095 return 0; 4096} 4097_ACEOF 4098if ac_fn_c_try_compile "$LINENO"; then : 4099 ac_cv_prog_cc_g=yes 4100else 4101 CFLAGS="" 4102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4103/* end confdefs.h. */ 4104 4105int 4106main () 4107{ 4108 4109 ; 4110 return 0; 4111} 4112_ACEOF 4113if ac_fn_c_try_compile "$LINENO"; then : 4114 4115else 4116 ac_c_werror_flag=$ac_save_c_werror_flag 4117 CFLAGS="-g" 4118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4119/* end confdefs.h. */ 4120 4121int 4122main () 4123{ 4124 4125 ; 4126 return 0; 4127} 4128_ACEOF 4129if ac_fn_c_try_compile "$LINENO"; then : 4130 ac_cv_prog_cc_g=yes 4131fi 4132rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4133fi 4134rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4135fi 4136rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4137 ac_c_werror_flag=$ac_save_c_werror_flag 4138fi 4139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4140$as_echo "$ac_cv_prog_cc_g" >&6; } 4141if test "$ac_test_CFLAGS" = set; then 4142 CFLAGS=$ac_save_CFLAGS 4143elif test $ac_cv_prog_cc_g = yes; then 4144 if test "$GCC" = yes; then 4145 CFLAGS="-g -O2" 4146 else 4147 CFLAGS="-g" 4148 fi 4149else 4150 if test "$GCC" = yes; then 4151 CFLAGS="-O2" 4152 else 4153 CFLAGS= 4154 fi 4155fi 4156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4157$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4158if ${ac_cv_prog_cc_c89+:} false; then : 4159 $as_echo_n "(cached) " >&6 4160else 4161 ac_cv_prog_cc_c89=no 4162ac_save_CC=$CC 4163cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4164/* end confdefs.h. */ 4165#include <stdarg.h> 4166#include <stdio.h> 4167struct stat; 4168/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4169struct buf { int x; }; 4170FILE * (*rcsopen) (struct buf *, struct stat *, int); 4171static char *e (p, i) 4172 char **p; 4173 int i; 4174{ 4175 return p[i]; 4176} 4177static char *f (char * (*g) (char **, int), char **p, ...) 4178{ 4179 char *s; 4180 va_list v; 4181 va_start (v,p); 4182 s = g (p, va_arg (v,int)); 4183 va_end (v); 4184 return s; 4185} 4186 4187/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4188 function prototypes and stuff, but not '\xHH' hex character constants. 4189 These don't provoke an error unfortunately, instead are silently treated 4190 as 'x'. The following induces an error, until -std is added to get 4191 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4192 array size at least. It's necessary to write '\x00'==0 to get something 4193 that's true only with -std. */ 4194int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4195 4196/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4197 inside strings and character constants. */ 4198#define FOO(x) 'x' 4199int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4200 4201int test (int i, double x); 4202struct s1 {int (*f) (int a);}; 4203struct s2 {int (*f) (double a);}; 4204int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4205int argc; 4206char **argv; 4207int 4208main () 4209{ 4210return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4211 ; 4212 return 0; 4213} 4214_ACEOF 4215for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4216 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4217do 4218 CC="$ac_save_CC $ac_arg" 4219 if ac_fn_c_try_compile "$LINENO"; then : 4220 ac_cv_prog_cc_c89=$ac_arg 4221fi 4222rm -f core conftest.err conftest.$ac_objext 4223 test "x$ac_cv_prog_cc_c89" != "xno" && break 4224done 4225rm -f conftest.$ac_ext 4226CC=$ac_save_CC 4227 4228fi 4229# AC_CACHE_VAL 4230case "x$ac_cv_prog_cc_c89" in 4231 x) 4232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4233$as_echo "none needed" >&6; } ;; 4234 xno) 4235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4236$as_echo "unsupported" >&6; } ;; 4237 *) 4238 CC="$CC $ac_cv_prog_cc_c89" 4239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4240$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4241esac 4242if test "x$ac_cv_prog_cc_c89" != xno; then : 4243 4244fi 4245 4246ac_ext=c 4247ac_cpp='$CPP $CPPFLAGS' 4248ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4249ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4250ac_compiler_gnu=$ac_cv_c_compiler_gnu 4251 4252ac_ext=c 4253ac_cpp='$CPP $CPPFLAGS' 4254ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4255ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4256ac_compiler_gnu=$ac_cv_c_compiler_gnu 4257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4258$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 4259if ${am_cv_prog_cc_c_o+:} false; then : 4260 $as_echo_n "(cached) " >&6 4261else 4262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4263/* end confdefs.h. */ 4264 4265int 4266main () 4267{ 4268 4269 ; 4270 return 0; 4271} 4272_ACEOF 4273 # Make sure it works both with $CC and with simple cc. 4274 # Following AC_PROG_CC_C_O, we do the test twice because some 4275 # compilers refuse to overwrite an existing .o file with -o, 4276 # though they will create one. 4277 am_cv_prog_cc_c_o=yes 4278 for am_i in 1 2; do 4279 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4280 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4281 ac_status=$? 4282 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4283 (exit $ac_status); } \ 4284 && test -f conftest2.$ac_objext; then 4285 : OK 4286 else 4287 am_cv_prog_cc_c_o=no 4288 break 4289 fi 4290 done 4291 rm -f core conftest* 4292 unset am_i 4293fi 4294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4295$as_echo "$am_cv_prog_cc_c_o" >&6; } 4296if test "$am_cv_prog_cc_c_o" != yes; then 4297 # Losing compiler, so override with the script. 4298 # FIXME: It is wrong to rewrite CC. 4299 # But if we don't then we get into trouble of one sort or another. 4300 # A longer-term fix would be to have automake use am__CC in this case, 4301 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4302 CC="$am_aux_dir/compile $CC" 4303fi 4304ac_ext=c 4305ac_cpp='$CPP $CPPFLAGS' 4306ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4307ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4308ac_compiler_gnu=$ac_cv_c_compiler_gnu 4309 4310 4311depcc="$CC" am_compiler_list= 4312 4313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4314$as_echo_n "checking dependency style of $depcc... " >&6; } 4315if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4316 $as_echo_n "(cached) " >&6 4317else 4318 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4319 # We make a subdir and do the tests there. Otherwise we can end up 4320 # making bogus files that we don't know about and never remove. For 4321 # instance it was reported that on HP-UX the gcc test will end up 4322 # making a dummy file named 'D' -- because '-MD' means "put the output 4323 # in D". 4324 rm -rf conftest.dir 4325 mkdir conftest.dir 4326 # Copy depcomp to subdir because otherwise we won't find it if we're 4327 # using a relative directory. 4328 cp "$am_depcomp" conftest.dir 4329 cd conftest.dir 4330 # We will build objects and dependencies in a subdirectory because 4331 # it helps to detect inapplicable dependency modes. For instance 4332 # both Tru64's cc and ICC support -MD to output dependencies as a 4333 # side effect of compilation, but ICC will put the dependencies in 4334 # the current directory while Tru64 will put them in the object 4335 # directory. 4336 mkdir sub 4337 4338 am_cv_CC_dependencies_compiler_type=none 4339 if test "$am_compiler_list" = ""; then 4340 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4341 fi 4342 am__universal=false 4343 case " $depcc " in #( 4344 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4345 esac 4346 4347 for depmode in $am_compiler_list; do 4348 # Setup a source with many dependencies, because some compilers 4349 # like to wrap large dependency lists on column 80 (with \), and 4350 # we should not choose a depcomp mode which is confused by this. 4351 # 4352 # We need to recreate these files for each test, as the compiler may 4353 # overwrite some of them when testing with obscure command lines. 4354 # This happens at least with the AIX C compiler. 4355 : > sub/conftest.c 4356 for i in 1 2 3 4 5 6; do 4357 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4358 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4359 # Solaris 10 /bin/sh. 4360 echo '/* dummy */' > sub/conftst$i.h 4361 done 4362 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4363 4364 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4365 # mode. It turns out that the SunPro C++ compiler does not properly 4366 # handle '-M -o', and we need to detect this. Also, some Intel 4367 # versions had trouble with output in subdirs. 4368 am__obj=sub/conftest.${OBJEXT-o} 4369 am__minus_obj="-o $am__obj" 4370 case $depmode in 4371 gcc) 4372 # This depmode causes a compiler race in universal mode. 4373 test "$am__universal" = false || continue 4374 ;; 4375 nosideeffect) 4376 # After this tag, mechanisms are not by side-effect, so they'll 4377 # only be used when explicitly requested. 4378 if test "x$enable_dependency_tracking" = xyes; then 4379 continue 4380 else 4381 break 4382 fi 4383 ;; 4384 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4385 # This compiler won't grok '-c -o', but also, the minuso test has 4386 # not run yet. These depmodes are late enough in the game, and 4387 # so weak that their functioning should not be impacted. 4388 am__obj=conftest.${OBJEXT-o} 4389 am__minus_obj= 4390 ;; 4391 none) break ;; 4392 esac 4393 if depmode=$depmode \ 4394 source=sub/conftest.c object=$am__obj \ 4395 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4396 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4397 >/dev/null 2>conftest.err && 4398 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4399 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4400 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4401 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4402 # icc doesn't choke on unknown options, it will just issue warnings 4403 # or remarks (even with -Werror). So we grep stderr for any message 4404 # that says an option was ignored or not supported. 4405 # When given -MP, icc 7.0 and 7.1 complain thusly: 4406 # icc: Command line warning: ignoring option '-M'; no argument required 4407 # The diagnosis changed in icc 8.0: 4408 # icc: Command line remark: option '-MP' not supported 4409 if (grep 'ignoring option' conftest.err || 4410 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4411 am_cv_CC_dependencies_compiler_type=$depmode 4412 break 4413 fi 4414 fi 4415 done 4416 4417 cd .. 4418 rm -rf conftest.dir 4419else 4420 am_cv_CC_dependencies_compiler_type=none 4421fi 4422 4423fi 4424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4425$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4426CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4427 4428 if 4429 test "x$enable_dependency_tracking" != xno \ 4430 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4431 am__fastdepCC_TRUE= 4432 am__fastdepCC_FALSE='#' 4433else 4434 am__fastdepCC_TRUE='#' 4435 am__fastdepCC_FALSE= 4436fi 4437 4438 4439 case $ac_cv_prog_cc_stdc in #( 4440 no) : 4441 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #( 4442 *) : 4443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 4444$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 4445if ${ac_cv_prog_cc_c99+:} false; then : 4446 $as_echo_n "(cached) " >&6 4447else 4448 ac_cv_prog_cc_c99=no 4449ac_save_CC=$CC 4450cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4451/* end confdefs.h. */ 4452#include <stdarg.h> 4453#include <stdbool.h> 4454#include <stdlib.h> 4455#include <wchar.h> 4456#include <stdio.h> 4457 4458// Check varargs macros. These examples are taken from C99 6.10.3.5. 4459#define debug(...) fprintf (stderr, __VA_ARGS__) 4460#define showlist(...) puts (#__VA_ARGS__) 4461#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 4462static void 4463test_varargs_macros (void) 4464{ 4465 int x = 1234; 4466 int y = 5678; 4467 debug ("Flag"); 4468 debug ("X = %d\n", x); 4469 showlist (The first, second, and third items.); 4470 report (x>y, "x is %d but y is %d", x, y); 4471} 4472 4473// Check long long types. 4474#define BIG64 18446744073709551615ull 4475#define BIG32 4294967295ul 4476#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 4477#if !BIG_OK 4478 your preprocessor is broken; 4479#endif 4480#if BIG_OK 4481#else 4482 your preprocessor is broken; 4483#endif 4484static long long int bignum = -9223372036854775807LL; 4485static unsigned long long int ubignum = BIG64; 4486 4487struct incomplete_array 4488{ 4489 int datasize; 4490 double data[]; 4491}; 4492 4493struct named_init { 4494 int number; 4495 const wchar_t *name; 4496 double average; 4497}; 4498 4499typedef const char *ccp; 4500 4501static inline int 4502test_restrict (ccp restrict text) 4503{ 4504 // See if C++-style comments work. 4505 // Iterate through items via the restricted pointer. 4506 // Also check for declarations in for loops. 4507 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 4508 continue; 4509 return 0; 4510} 4511 4512// Check varargs and va_copy. 4513static void 4514test_varargs (const char *format, ...) 4515{ 4516 va_list args; 4517 va_start (args, format); 4518 va_list args_copy; 4519 va_copy (args_copy, args); 4520 4521 const char *str; 4522 int number; 4523 float fnumber; 4524 4525 while (*format) 4526 { 4527 switch (*format++) 4528 { 4529 case 's': // string 4530 str = va_arg (args_copy, const char *); 4531 break; 4532 case 'd': // int 4533 number = va_arg (args_copy, int); 4534 break; 4535 case 'f': // float 4536 fnumber = va_arg (args_copy, double); 4537 break; 4538 default: 4539 break; 4540 } 4541 } 4542 va_end (args_copy); 4543 va_end (args); 4544} 4545 4546int 4547main () 4548{ 4549 4550 // Check bool. 4551 _Bool success = false; 4552 4553 // Check restrict. 4554 if (test_restrict ("String literal") == 0) 4555 success = true; 4556 char *restrict newvar = "Another string"; 4557 4558 // Check varargs. 4559 test_varargs ("s, d' f .", "string", 65, 34.234); 4560 test_varargs_macros (); 4561 4562 // Check flexible array members. 4563 struct incomplete_array *ia = 4564 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 4565 ia->datasize = 10; 4566 for (int i = 0; i < ia->datasize; ++i) 4567 ia->data[i] = i * 1.234; 4568 4569 // Check named initializers. 4570 struct named_init ni = { 4571 .number = 34, 4572 .name = L"Test wide string", 4573 .average = 543.34343, 4574 }; 4575 4576 ni.number = 58; 4577 4578 int dynamic_array[ni.number]; 4579 dynamic_array[ni.number - 1] = 543; 4580 4581 // work around unused variable warnings 4582 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 4583 || dynamic_array[ni.number - 1] != 543); 4584 4585 ; 4586 return 0; 4587} 4588_ACEOF 4589for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 4590do 4591 CC="$ac_save_CC $ac_arg" 4592 if ac_fn_c_try_compile "$LINENO"; then : 4593 ac_cv_prog_cc_c99=$ac_arg 4594fi 4595rm -f core conftest.err conftest.$ac_objext 4596 test "x$ac_cv_prog_cc_c99" != "xno" && break 4597done 4598rm -f conftest.$ac_ext 4599CC=$ac_save_CC 4600 4601fi 4602# AC_CACHE_VAL 4603case "x$ac_cv_prog_cc_c99" in 4604 x) 4605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4606$as_echo "none needed" >&6; } ;; 4607 xno) 4608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4609$as_echo "unsupported" >&6; } ;; 4610 *) 4611 CC="$CC $ac_cv_prog_cc_c99" 4612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4613$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 4614esac 4615if test "x$ac_cv_prog_cc_c99" != xno; then : 4616 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 4617else 4618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4619$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4620if ${ac_cv_prog_cc_c89+:} false; then : 4621 $as_echo_n "(cached) " >&6 4622else 4623 ac_cv_prog_cc_c89=no 4624ac_save_CC=$CC 4625cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4626/* end confdefs.h. */ 4627#include <stdarg.h> 4628#include <stdio.h> 4629struct stat; 4630/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4631struct buf { int x; }; 4632FILE * (*rcsopen) (struct buf *, struct stat *, int); 4633static char *e (p, i) 4634 char **p; 4635 int i; 4636{ 4637 return p[i]; 4638} 4639static char *f (char * (*g) (char **, int), char **p, ...) 4640{ 4641 char *s; 4642 va_list v; 4643 va_start (v,p); 4644 s = g (p, va_arg (v,int)); 4645 va_end (v); 4646 return s; 4647} 4648 4649/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4650 function prototypes and stuff, but not '\xHH' hex character constants. 4651 These don't provoke an error unfortunately, instead are silently treated 4652 as 'x'. The following induces an error, until -std is added to get 4653 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4654 array size at least. It's necessary to write '\x00'==0 to get something 4655 that's true only with -std. */ 4656int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4657 4658/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4659 inside strings and character constants. */ 4660#define FOO(x) 'x' 4661int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4662 4663int test (int i, double x); 4664struct s1 {int (*f) (int a);}; 4665struct s2 {int (*f) (double a);}; 4666int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4667int argc; 4668char **argv; 4669int 4670main () 4671{ 4672return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4673 ; 4674 return 0; 4675} 4676_ACEOF 4677for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4678 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4679do 4680 CC="$ac_save_CC $ac_arg" 4681 if ac_fn_c_try_compile "$LINENO"; then : 4682 ac_cv_prog_cc_c89=$ac_arg 4683fi 4684rm -f core conftest.err conftest.$ac_objext 4685 test "x$ac_cv_prog_cc_c89" != "xno" && break 4686done 4687rm -f conftest.$ac_ext 4688CC=$ac_save_CC 4689 4690fi 4691# AC_CACHE_VAL 4692case "x$ac_cv_prog_cc_c89" in 4693 x) 4694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4695$as_echo "none needed" >&6; } ;; 4696 xno) 4697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4698$as_echo "unsupported" >&6; } ;; 4699 *) 4700 CC="$CC $ac_cv_prog_cc_c89" 4701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4702$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4703esac 4704if test "x$ac_cv_prog_cc_c89" != xno; then : 4705 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 4706else 4707 ac_cv_prog_cc_stdc=no 4708fi 4709 4710fi 4711 ;; 4712esac 4713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5 4714$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; } 4715 if ${ac_cv_prog_cc_stdc+:} false; then : 4716 $as_echo_n "(cached) " >&6 4717fi 4718 4719 case $ac_cv_prog_cc_stdc in #( 4720 no) : 4721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4722$as_echo "unsupported" >&6; } ;; #( 4723 '') : 4724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4725$as_echo "none needed" >&6; } ;; #( 4726 *) : 4727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5 4728$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;; 4729esac 4730 4731 4732ac_ext=c 4733ac_cpp='$CPP $CPPFLAGS' 4734ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4735ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4736ac_compiler_gnu=$ac_cv_c_compiler_gnu 4737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4738$as_echo_n "checking how to run the C preprocessor... " >&6; } 4739# On Suns, sometimes $CPP names a directory. 4740if test -n "$CPP" && test -d "$CPP"; then 4741 CPP= 4742fi 4743if test -z "$CPP"; then 4744 if ${ac_cv_prog_CPP+:} false; then : 4745 $as_echo_n "(cached) " >&6 4746else 4747 # Double quotes because CPP needs to be expanded 4748 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4749 do 4750 ac_preproc_ok=false 4751for ac_c_preproc_warn_flag in '' yes 4752do 4753 # Use a header file that comes with gcc, so configuring glibc 4754 # with a fresh cross-compiler works. 4755 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4756 # <limits.h> exists even on freestanding compilers. 4757 # On the NeXT, cc -E runs the code through the compiler's parser, 4758 # not just through cpp. "Syntax error" is here to catch this case. 4759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4760/* end confdefs.h. */ 4761#ifdef __STDC__ 4762# include <limits.h> 4763#else 4764# include <assert.h> 4765#endif 4766 Syntax error 4767_ACEOF 4768if ac_fn_c_try_cpp "$LINENO"; then : 4769 4770else 4771 # Broken: fails on valid input. 4772continue 4773fi 4774rm -f conftest.err conftest.i conftest.$ac_ext 4775 4776 # OK, works on sane cases. Now check whether nonexistent headers 4777 # can be detected and how. 4778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4779/* end confdefs.h. */ 4780#include <ac_nonexistent.h> 4781_ACEOF 4782if ac_fn_c_try_cpp "$LINENO"; then : 4783 # Broken: success on invalid input. 4784continue 4785else 4786 # Passes both tests. 4787ac_preproc_ok=: 4788break 4789fi 4790rm -f conftest.err conftest.i conftest.$ac_ext 4791 4792done 4793# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4794rm -f conftest.i conftest.err conftest.$ac_ext 4795if $ac_preproc_ok; then : 4796 break 4797fi 4798 4799 done 4800 ac_cv_prog_CPP=$CPP 4801 4802fi 4803 CPP=$ac_cv_prog_CPP 4804else 4805 ac_cv_prog_CPP=$CPP 4806fi 4807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4808$as_echo "$CPP" >&6; } 4809ac_preproc_ok=false 4810for ac_c_preproc_warn_flag in '' yes 4811do 4812 # Use a header file that comes with gcc, so configuring glibc 4813 # with a fresh cross-compiler works. 4814 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4815 # <limits.h> exists even on freestanding compilers. 4816 # On the NeXT, cc -E runs the code through the compiler's parser, 4817 # not just through cpp. "Syntax error" is here to catch this case. 4818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4819/* end confdefs.h. */ 4820#ifdef __STDC__ 4821# include <limits.h> 4822#else 4823# include <assert.h> 4824#endif 4825 Syntax error 4826_ACEOF 4827if ac_fn_c_try_cpp "$LINENO"; then : 4828 4829else 4830 # Broken: fails on valid input. 4831continue 4832fi 4833rm -f conftest.err conftest.i conftest.$ac_ext 4834 4835 # OK, works on sane cases. Now check whether nonexistent headers 4836 # can be detected and how. 4837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4838/* end confdefs.h. */ 4839#include <ac_nonexistent.h> 4840_ACEOF 4841if ac_fn_c_try_cpp "$LINENO"; then : 4842 # Broken: success on invalid input. 4843continue 4844else 4845 # Passes both tests. 4846ac_preproc_ok=: 4847break 4848fi 4849rm -f conftest.err conftest.i conftest.$ac_ext 4850 4851done 4852# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4853rm -f conftest.i conftest.err conftest.$ac_ext 4854if $ac_preproc_ok; then : 4855 4856else 4857 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4858$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4859as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4860See \`config.log' for more details" "$LINENO" 5; } 4861fi 4862 4863ac_ext=c 4864ac_cpp='$CPP $CPPFLAGS' 4865ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4866ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4867ac_compiler_gnu=$ac_cv_c_compiler_gnu 4868 4869 4870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4871$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4872if ${ac_cv_path_GREP+:} false; then : 4873 $as_echo_n "(cached) " >&6 4874else 4875 if test -z "$GREP"; then 4876 ac_path_GREP_found=false 4877 # Loop through the user's path and test for each of PROGNAME-LIST 4878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4879for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4880do 4881 IFS=$as_save_IFS 4882 test -z "$as_dir" && as_dir=. 4883 for ac_prog in grep ggrep; do 4884 for ac_exec_ext in '' $ac_executable_extensions; do 4885 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4886 as_fn_executable_p "$ac_path_GREP" || continue 4887# Check for GNU ac_path_GREP and select it if it is found. 4888 # Check for GNU $ac_path_GREP 4889case `"$ac_path_GREP" --version 2>&1` in 4890*GNU*) 4891 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4892*) 4893 ac_count=0 4894 $as_echo_n 0123456789 >"conftest.in" 4895 while : 4896 do 4897 cat "conftest.in" "conftest.in" >"conftest.tmp" 4898 mv "conftest.tmp" "conftest.in" 4899 cp "conftest.in" "conftest.nl" 4900 $as_echo 'GREP' >> "conftest.nl" 4901 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4902 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4903 as_fn_arith $ac_count + 1 && ac_count=$as_val 4904 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4905 # Best one so far, save it but keep looking for a better one 4906 ac_cv_path_GREP="$ac_path_GREP" 4907 ac_path_GREP_max=$ac_count 4908 fi 4909 # 10*(2^10) chars as input seems more than enough 4910 test $ac_count -gt 10 && break 4911 done 4912 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4913esac 4914 4915 $ac_path_GREP_found && break 3 4916 done 4917 done 4918 done 4919IFS=$as_save_IFS 4920 if test -z "$ac_cv_path_GREP"; then 4921 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4922 fi 4923else 4924 ac_cv_path_GREP=$GREP 4925fi 4926 4927fi 4928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4929$as_echo "$ac_cv_path_GREP" >&6; } 4930 GREP="$ac_cv_path_GREP" 4931 4932 4933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4934$as_echo_n "checking for egrep... " >&6; } 4935if ${ac_cv_path_EGREP+:} false; then : 4936 $as_echo_n "(cached) " >&6 4937else 4938 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4939 then ac_cv_path_EGREP="$GREP -E" 4940 else 4941 if test -z "$EGREP"; then 4942 ac_path_EGREP_found=false 4943 # Loop through the user's path and test for each of PROGNAME-LIST 4944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4945for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4946do 4947 IFS=$as_save_IFS 4948 test -z "$as_dir" && as_dir=. 4949 for ac_prog in egrep; do 4950 for ac_exec_ext in '' $ac_executable_extensions; do 4951 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4952 as_fn_executable_p "$ac_path_EGREP" || continue 4953# Check for GNU ac_path_EGREP and select it if it is found. 4954 # Check for GNU $ac_path_EGREP 4955case `"$ac_path_EGREP" --version 2>&1` in 4956*GNU*) 4957 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4958*) 4959 ac_count=0 4960 $as_echo_n 0123456789 >"conftest.in" 4961 while : 4962 do 4963 cat "conftest.in" "conftest.in" >"conftest.tmp" 4964 mv "conftest.tmp" "conftest.in" 4965 cp "conftest.in" "conftest.nl" 4966 $as_echo 'EGREP' >> "conftest.nl" 4967 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4968 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4969 as_fn_arith $ac_count + 1 && ac_count=$as_val 4970 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4971 # Best one so far, save it but keep looking for a better one 4972 ac_cv_path_EGREP="$ac_path_EGREP" 4973 ac_path_EGREP_max=$ac_count 4974 fi 4975 # 10*(2^10) chars as input seems more than enough 4976 test $ac_count -gt 10 && break 4977 done 4978 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4979esac 4980 4981 $ac_path_EGREP_found && break 3 4982 done 4983 done 4984 done 4985IFS=$as_save_IFS 4986 if test -z "$ac_cv_path_EGREP"; then 4987 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4988 fi 4989else 4990 ac_cv_path_EGREP=$EGREP 4991fi 4992 4993 fi 4994fi 4995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4996$as_echo "$ac_cv_path_EGREP" >&6; } 4997 EGREP="$ac_cv_path_EGREP" 4998 4999 5000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 5001$as_echo_n "checking for ANSI C header files... " >&6; } 5002if ${ac_cv_header_stdc+:} false; then : 5003 $as_echo_n "(cached) " >&6 5004else 5005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5006/* end confdefs.h. */ 5007#include <stdlib.h> 5008#include <stdarg.h> 5009#include <string.h> 5010#include <float.h> 5011 5012int 5013main () 5014{ 5015 5016 ; 5017 return 0; 5018} 5019_ACEOF 5020if ac_fn_c_try_compile "$LINENO"; then : 5021 ac_cv_header_stdc=yes 5022else 5023 ac_cv_header_stdc=no 5024fi 5025rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5026 5027if test $ac_cv_header_stdc = yes; then 5028 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 5029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5030/* end confdefs.h. */ 5031#include <string.h> 5032 5033_ACEOF 5034if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5035 $EGREP "memchr" >/dev/null 2>&1; then : 5036 5037else 5038 ac_cv_header_stdc=no 5039fi 5040rm -f conftest* 5041 5042fi 5043 5044if test $ac_cv_header_stdc = yes; then 5045 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 5046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5047/* end confdefs.h. */ 5048#include <stdlib.h> 5049 5050_ACEOF 5051if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5052 $EGREP "free" >/dev/null 2>&1; then : 5053 5054else 5055 ac_cv_header_stdc=no 5056fi 5057rm -f conftest* 5058 5059fi 5060 5061if test $ac_cv_header_stdc = yes; then 5062 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 5063 if test "$cross_compiling" = yes; then : 5064 : 5065else 5066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5067/* end confdefs.h. */ 5068#include <ctype.h> 5069#include <stdlib.h> 5070#if ((' ' & 0x0FF) == 0x020) 5071# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 5072# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 5073#else 5074# define ISLOWER(c) \ 5075 (('a' <= (c) && (c) <= 'i') \ 5076 || ('j' <= (c) && (c) <= 'r') \ 5077 || ('s' <= (c) && (c) <= 'z')) 5078# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 5079#endif 5080 5081#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 5082int 5083main () 5084{ 5085 int i; 5086 for (i = 0; i < 256; i++) 5087 if (XOR (islower (i), ISLOWER (i)) 5088 || toupper (i) != TOUPPER (i)) 5089 return 2; 5090 return 0; 5091} 5092_ACEOF 5093if ac_fn_c_try_run "$LINENO"; then : 5094 5095else 5096 ac_cv_header_stdc=no 5097fi 5098rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 5099 conftest.$ac_objext conftest.beam conftest.$ac_ext 5100fi 5101 5102fi 5103fi 5104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 5105$as_echo "$ac_cv_header_stdc" >&6; } 5106if test $ac_cv_header_stdc = yes; then 5107 5108$as_echo "#define STDC_HEADERS 1" >>confdefs.h 5109 5110fi 5111 5112# On IRIX 5.3, sys/types and inttypes.h are conflicting. 5113for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 5114 inttypes.h stdint.h unistd.h 5115do : 5116 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 5117ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 5118" 5119if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 5120 cat >>confdefs.h <<_ACEOF 5121#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 5122_ACEOF 5123 5124fi 5125 5126done 5127 5128 5129 5130 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 5131if test "x$ac_cv_header_minix_config_h" = xyes; then : 5132 MINIX=yes 5133else 5134 MINIX= 5135fi 5136 5137 5138 if test "$MINIX" = yes; then 5139 5140$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 5141 5142 5143$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 5144 5145 5146$as_echo "#define _MINIX 1" >>confdefs.h 5147 5148 fi 5149 5150 5151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 5152$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 5153if ${ac_cv_safe_to_define___extensions__+:} false; then : 5154 $as_echo_n "(cached) " >&6 5155else 5156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5157/* end confdefs.h. */ 5158 5159# define __EXTENSIONS__ 1 5160 $ac_includes_default 5161int 5162main () 5163{ 5164 5165 ; 5166 return 0; 5167} 5168_ACEOF 5169if ac_fn_c_try_compile "$LINENO"; then : 5170 ac_cv_safe_to_define___extensions__=yes 5171else 5172 ac_cv_safe_to_define___extensions__=no 5173fi 5174rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5175fi 5176{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 5177$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 5178 test $ac_cv_safe_to_define___extensions__ = yes && 5179 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 5180 5181 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 5182 5183 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 5184 5185 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 5186 5187 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 5188 5189 5190 5191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 5192$as_echo_n "checking whether byte ordering is bigendian... " >&6; } 5193if ${ac_cv_c_bigendian+:} false; then : 5194 $as_echo_n "(cached) " >&6 5195else 5196 ac_cv_c_bigendian=unknown 5197 # See if we're dealing with a universal compiler. 5198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5199/* end confdefs.h. */ 5200#ifndef __APPLE_CC__ 5201 not a universal capable compiler 5202 #endif 5203 typedef int dummy; 5204 5205_ACEOF 5206if ac_fn_c_try_compile "$LINENO"; then : 5207 5208 # Check for potential -arch flags. It is not universal unless 5209 # there are at least two -arch flags with different values. 5210 ac_arch= 5211 ac_prev= 5212 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 5213 if test -n "$ac_prev"; then 5214 case $ac_word in 5215 i?86 | x86_64 | ppc | ppc64) 5216 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 5217 ac_arch=$ac_word 5218 else 5219 ac_cv_c_bigendian=universal 5220 break 5221 fi 5222 ;; 5223 esac 5224 ac_prev= 5225 elif test "x$ac_word" = "x-arch"; then 5226 ac_prev=arch 5227 fi 5228 done 5229fi 5230rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5231 if test $ac_cv_c_bigendian = unknown; then 5232 # See if sys/param.h defines the BYTE_ORDER macro. 5233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5234/* end confdefs.h. */ 5235#include <sys/types.h> 5236 #include <sys/param.h> 5237 5238int 5239main () 5240{ 5241#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 5242 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 5243 && LITTLE_ENDIAN) 5244 bogus endian macros 5245 #endif 5246 5247 ; 5248 return 0; 5249} 5250_ACEOF 5251if ac_fn_c_try_compile "$LINENO"; then : 5252 # It does; now see whether it defined to BIG_ENDIAN or not. 5253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5254/* end confdefs.h. */ 5255#include <sys/types.h> 5256 #include <sys/param.h> 5257 5258int 5259main () 5260{ 5261#if BYTE_ORDER != BIG_ENDIAN 5262 not big endian 5263 #endif 5264 5265 ; 5266 return 0; 5267} 5268_ACEOF 5269if ac_fn_c_try_compile "$LINENO"; then : 5270 ac_cv_c_bigendian=yes 5271else 5272 ac_cv_c_bigendian=no 5273fi 5274rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5275fi 5276rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5277 fi 5278 if test $ac_cv_c_bigendian = unknown; then 5279 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 5280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5281/* end confdefs.h. */ 5282#include <limits.h> 5283 5284int 5285main () 5286{ 5287#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 5288 bogus endian macros 5289 #endif 5290 5291 ; 5292 return 0; 5293} 5294_ACEOF 5295if ac_fn_c_try_compile "$LINENO"; then : 5296 # It does; now see whether it defined to _BIG_ENDIAN or not. 5297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5298/* end confdefs.h. */ 5299#include <limits.h> 5300 5301int 5302main () 5303{ 5304#ifndef _BIG_ENDIAN 5305 not big endian 5306 #endif 5307 5308 ; 5309 return 0; 5310} 5311_ACEOF 5312if ac_fn_c_try_compile "$LINENO"; then : 5313 ac_cv_c_bigendian=yes 5314else 5315 ac_cv_c_bigendian=no 5316fi 5317rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5318fi 5319rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5320 fi 5321 if test $ac_cv_c_bigendian = unknown; then 5322 # Compile a test program. 5323 if test "$cross_compiling" = yes; then : 5324 # Try to guess by grepping values from an object file. 5325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5326/* end confdefs.h. */ 5327short int ascii_mm[] = 5328 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 5329 short int ascii_ii[] = 5330 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 5331 int use_ascii (int i) { 5332 return ascii_mm[i] + ascii_ii[i]; 5333 } 5334 short int ebcdic_ii[] = 5335 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 5336 short int ebcdic_mm[] = 5337 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 5338 int use_ebcdic (int i) { 5339 return ebcdic_mm[i] + ebcdic_ii[i]; 5340 } 5341 extern int foo; 5342 5343int 5344main () 5345{ 5346return use_ascii (foo) == use_ebcdic (foo); 5347 ; 5348 return 0; 5349} 5350_ACEOF 5351if ac_fn_c_try_compile "$LINENO"; then : 5352 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 5353 ac_cv_c_bigendian=yes 5354 fi 5355 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 5356 if test "$ac_cv_c_bigendian" = unknown; then 5357 ac_cv_c_bigendian=no 5358 else 5359 # finding both strings is unlikely to happen, but who knows? 5360 ac_cv_c_bigendian=unknown 5361 fi 5362 fi 5363fi 5364rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5365else 5366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5367/* end confdefs.h. */ 5368$ac_includes_default 5369int 5370main () 5371{ 5372 5373 /* Are we little or big endian? From Harbison&Steele. */ 5374 union 5375 { 5376 long int l; 5377 char c[sizeof (long int)]; 5378 } u; 5379 u.l = 1; 5380 return u.c[sizeof (long int) - 1] == 1; 5381 5382 ; 5383 return 0; 5384} 5385_ACEOF 5386if ac_fn_c_try_run "$LINENO"; then : 5387 ac_cv_c_bigendian=no 5388else 5389 ac_cv_c_bigendian=yes 5390fi 5391rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 5392 conftest.$ac_objext conftest.beam conftest.$ac_ext 5393fi 5394 5395 fi 5396fi 5397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 5398$as_echo "$ac_cv_c_bigendian" >&6; } 5399 case $ac_cv_c_bigendian in #( 5400 yes) 5401 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h 5402;; #( 5403 no) 5404 ;; #( 5405 universal) 5406 5407$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 5408 5409 ;; #( 5410 *) 5411 as_fn_error $? "unknown endianness 5412 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 5413 esac 5414 5415 5416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5417$as_echo_n "checking whether ln -s works... " >&6; } 5418LN_S=$as_ln_s 5419if test "$LN_S" = "ln -s"; then 5420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5421$as_echo "yes" >&6; } 5422else 5423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5424$as_echo "no, using $LN_S" >&6; } 5425fi 5426 5427case `pwd` in 5428 *\ * | *\ *) 5429 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 5430$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 5431esac 5432 5433 5434 5435macro_version='2.4.2' 5436macro_revision='1.3337' 5437 5438 5439 5440 5441 5442 5443 5444 5445 5446 5447 5448 5449 5450ltmain="$ac_aux_dir/ltmain.sh" 5451 5452# Backslashify metacharacters that are still active within 5453# double-quoted strings. 5454sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 5455 5456# Same as above, but do not quote variable references. 5457double_quote_subst='s/\(["`\\]\)/\\\1/g' 5458 5459# Sed substitution to delay expansion of an escaped shell variable in a 5460# double_quote_subst'ed string. 5461delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 5462 5463# Sed substitution to delay expansion of an escaped single quote. 5464delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 5465 5466# Sed substitution to avoid accidental globbing in evaled expressions 5467no_glob_subst='s/\*/\\\*/g' 5468 5469ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 5470ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 5471ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 5472 5473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 5474$as_echo_n "checking how to print strings... " >&6; } 5475# Test print first, because it will be a builtin if present. 5476if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 5477 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 5478 ECHO='print -r --' 5479elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 5480 ECHO='printf %s\n' 5481else 5482 # Use this function as a fallback that always works. 5483 func_fallback_echo () 5484 { 5485 eval 'cat <<_LTECHO_EOF 5486$1 5487_LTECHO_EOF' 5488 } 5489 ECHO='func_fallback_echo' 5490fi 5491 5492# func_echo_all arg... 5493# Invoke $ECHO with all args, space-separated. 5494func_echo_all () 5495{ 5496 $ECHO "" 5497} 5498 5499case "$ECHO" in 5500 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 5501$as_echo "printf" >&6; } ;; 5502 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 5503$as_echo "print -r" >&6; } ;; 5504 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 5505$as_echo "cat" >&6; } ;; 5506esac 5507 5508 5509 5510 5511 5512 5513 5514 5515 5516 5517 5518 5519 5520 5521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5522$as_echo_n "checking for a sed that does not truncate output... " >&6; } 5523if ${ac_cv_path_SED+:} false; then : 5524 $as_echo_n "(cached) " >&6 5525else 5526 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5527 for ac_i in 1 2 3 4 5 6 7; do 5528 ac_script="$ac_script$as_nl$ac_script" 5529 done 5530 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5531 { ac_script=; unset ac_script;} 5532 if test -z "$SED"; then 5533 ac_path_SED_found=false 5534 # Loop through the user's path and test for each of PROGNAME-LIST 5535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5536for as_dir in $PATH 5537do 5538 IFS=$as_save_IFS 5539 test -z "$as_dir" && as_dir=. 5540 for ac_prog in sed gsed; do 5541 for ac_exec_ext in '' $ac_executable_extensions; do 5542 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 5543 as_fn_executable_p "$ac_path_SED" || continue 5544# Check for GNU ac_path_SED and select it if it is found. 5545 # Check for GNU $ac_path_SED 5546case `"$ac_path_SED" --version 2>&1` in 5547*GNU*) 5548 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5549*) 5550 ac_count=0 5551 $as_echo_n 0123456789 >"conftest.in" 5552 while : 5553 do 5554 cat "conftest.in" "conftest.in" >"conftest.tmp" 5555 mv "conftest.tmp" "conftest.in" 5556 cp "conftest.in" "conftest.nl" 5557 $as_echo '' >> "conftest.nl" 5558 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5559 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5560 as_fn_arith $ac_count + 1 && ac_count=$as_val 5561 if test $ac_count -gt ${ac_path_SED_max-0}; then 5562 # Best one so far, save it but keep looking for a better one 5563 ac_cv_path_SED="$ac_path_SED" 5564 ac_path_SED_max=$ac_count 5565 fi 5566 # 10*(2^10) chars as input seems more than enough 5567 test $ac_count -gt 10 && break 5568 done 5569 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5570esac 5571 5572 $ac_path_SED_found && break 3 5573 done 5574 done 5575 done 5576IFS=$as_save_IFS 5577 if test -z "$ac_cv_path_SED"; then 5578 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5579 fi 5580else 5581 ac_cv_path_SED=$SED 5582fi 5583 5584fi 5585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5586$as_echo "$ac_cv_path_SED" >&6; } 5587 SED="$ac_cv_path_SED" 5588 rm -f conftest.sed 5589 5590test -z "$SED" && SED=sed 5591Xsed="$SED -e 1s/^X//" 5592 5593 5594 5595 5596 5597 5598 5599 5600 5601 5602 5603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 5604$as_echo_n "checking for fgrep... " >&6; } 5605if ${ac_cv_path_FGREP+:} false; then : 5606 $as_echo_n "(cached) " >&6 5607else 5608 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5609 then ac_cv_path_FGREP="$GREP -F" 5610 else 5611 if test -z "$FGREP"; then 5612 ac_path_FGREP_found=false 5613 # Loop through the user's path and test for each of PROGNAME-LIST 5614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5615for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5616do 5617 IFS=$as_save_IFS 5618 test -z "$as_dir" && as_dir=. 5619 for ac_prog in fgrep; do 5620 for ac_exec_ext in '' $ac_executable_extensions; do 5621 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 5622 as_fn_executable_p "$ac_path_FGREP" || continue 5623# Check for GNU ac_path_FGREP and select it if it is found. 5624 # Check for GNU $ac_path_FGREP 5625case `"$ac_path_FGREP" --version 2>&1` in 5626*GNU*) 5627 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5628*) 5629 ac_count=0 5630 $as_echo_n 0123456789 >"conftest.in" 5631 while : 5632 do 5633 cat "conftest.in" "conftest.in" >"conftest.tmp" 5634 mv "conftest.tmp" "conftest.in" 5635 cp "conftest.in" "conftest.nl" 5636 $as_echo 'FGREP' >> "conftest.nl" 5637 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5638 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5639 as_fn_arith $ac_count + 1 && ac_count=$as_val 5640 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5641 # Best one so far, save it but keep looking for a better one 5642 ac_cv_path_FGREP="$ac_path_FGREP" 5643 ac_path_FGREP_max=$ac_count 5644 fi 5645 # 10*(2^10) chars as input seems more than enough 5646 test $ac_count -gt 10 && break 5647 done 5648 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5649esac 5650 5651 $ac_path_FGREP_found && break 3 5652 done 5653 done 5654 done 5655IFS=$as_save_IFS 5656 if test -z "$ac_cv_path_FGREP"; then 5657 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5658 fi 5659else 5660 ac_cv_path_FGREP=$FGREP 5661fi 5662 5663 fi 5664fi 5665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5666$as_echo "$ac_cv_path_FGREP" >&6; } 5667 FGREP="$ac_cv_path_FGREP" 5668 5669 5670test -z "$GREP" && GREP=grep 5671 5672 5673 5674 5675 5676 5677 5678 5679 5680 5681 5682 5683 5684 5685 5686 5687 5688 5689 5690# Check whether --with-gnu-ld was given. 5691if test "${with_gnu_ld+set}" = set; then : 5692 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 5693else 5694 with_gnu_ld=no 5695fi 5696 5697ac_prog=ld 5698if test "$GCC" = yes; then 5699 # Check if gcc -print-prog-name=ld gives a path. 5700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5701$as_echo_n "checking for ld used by $CC... " >&6; } 5702 case $host in 5703 *-*-mingw*) 5704 # gcc leaves a trailing carriage return which upsets mingw 5705 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5706 *) 5707 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5708 esac 5709 case $ac_prog in 5710 # Accept absolute paths. 5711 [\\/]* | ?:[\\/]*) 5712 re_direlt='/[^/][^/]*/\.\./' 5713 # Canonicalize the pathname of ld 5714 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5715 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5716 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5717 done 5718 test -z "$LD" && LD="$ac_prog" 5719 ;; 5720 "") 5721 # If it fails, then pretend we aren't using GCC. 5722 ac_prog=ld 5723 ;; 5724 *) 5725 # If it is relative, then search for the first ld in PATH. 5726 with_gnu_ld=unknown 5727 ;; 5728 esac 5729elif test "$with_gnu_ld" = yes; then 5730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5731$as_echo_n "checking for GNU ld... " >&6; } 5732else 5733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5734$as_echo_n "checking for non-GNU ld... " >&6; } 5735fi 5736if ${lt_cv_path_LD+:} false; then : 5737 $as_echo_n "(cached) " >&6 5738else 5739 if test -z "$LD"; then 5740 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5741 for ac_dir in $PATH; do 5742 IFS="$lt_save_ifs" 5743 test -z "$ac_dir" && ac_dir=. 5744 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5745 lt_cv_path_LD="$ac_dir/$ac_prog" 5746 # Check to see if the program is GNU ld. I'd rather use --version, 5747 # but apparently some variants of GNU ld only accept -v. 5748 # Break only if it was the GNU/non-GNU ld that we prefer. 5749 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5750 *GNU* | *'with BFD'*) 5751 test "$with_gnu_ld" != no && break 5752 ;; 5753 *) 5754 test "$with_gnu_ld" != yes && break 5755 ;; 5756 esac 5757 fi 5758 done 5759 IFS="$lt_save_ifs" 5760else 5761 lt_cv_path_LD="$LD" # Let the user override the test with a path. 5762fi 5763fi 5764 5765LD="$lt_cv_path_LD" 5766if test -n "$LD"; then 5767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5768$as_echo "$LD" >&6; } 5769else 5770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5771$as_echo "no" >&6; } 5772fi 5773test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5775$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 5776if ${lt_cv_prog_gnu_ld+:} false; then : 5777 $as_echo_n "(cached) " >&6 5778else 5779 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5780case `$LD -v 2>&1 </dev/null` in 5781*GNU* | *'with BFD'*) 5782 lt_cv_prog_gnu_ld=yes 5783 ;; 5784*) 5785 lt_cv_prog_gnu_ld=no 5786 ;; 5787esac 5788fi 5789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5790$as_echo "$lt_cv_prog_gnu_ld" >&6; } 5791with_gnu_ld=$lt_cv_prog_gnu_ld 5792 5793 5794 5795 5796 5797 5798 5799 5800 5801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5802$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5803if ${lt_cv_path_NM+:} false; then : 5804 $as_echo_n "(cached) " >&6 5805else 5806 if test -n "$NM"; then 5807 # Let the user override the test. 5808 lt_cv_path_NM="$NM" 5809else 5810 lt_nm_to_check="${ac_tool_prefix}nm" 5811 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5812 lt_nm_to_check="$lt_nm_to_check nm" 5813 fi 5814 for lt_tmp_nm in $lt_nm_to_check; do 5815 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5816 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5817 IFS="$lt_save_ifs" 5818 test -z "$ac_dir" && ac_dir=. 5819 tmp_nm="$ac_dir/$lt_tmp_nm" 5820 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 5821 # Check to see if the nm accepts a BSD-compat flag. 5822 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 5823 # nm: unknown option "B" ignored 5824 # Tru64's nm complains that /dev/null is an invalid object file 5825 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 5826 */dev/null* | *'Invalid file or object type'*) 5827 lt_cv_path_NM="$tmp_nm -B" 5828 break 5829 ;; 5830 *) 5831 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5832 */dev/null*) 5833 lt_cv_path_NM="$tmp_nm -p" 5834 break 5835 ;; 5836 *) 5837 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5838 continue # so that we can try to find one that supports BSD flags 5839 ;; 5840 esac 5841 ;; 5842 esac 5843 fi 5844 done 5845 IFS="$lt_save_ifs" 5846 done 5847 : ${lt_cv_path_NM=no} 5848fi 5849fi 5850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5851$as_echo "$lt_cv_path_NM" >&6; } 5852if test "$lt_cv_path_NM" != "no"; then 5853 NM="$lt_cv_path_NM" 5854else 5855 # Didn't find any BSD compatible name lister, look for dumpbin. 5856 if test -n "$DUMPBIN"; then : 5857 # Let the user override the test. 5858 else 5859 if test -n "$ac_tool_prefix"; then 5860 for ac_prog in dumpbin "link -dump" 5861 do 5862 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5863set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5865$as_echo_n "checking for $ac_word... " >&6; } 5866if ${ac_cv_prog_DUMPBIN+:} false; then : 5867 $as_echo_n "(cached) " >&6 5868else 5869 if test -n "$DUMPBIN"; then 5870 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5871else 5872as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5873for as_dir in $PATH 5874do 5875 IFS=$as_save_IFS 5876 test -z "$as_dir" && as_dir=. 5877 for ac_exec_ext in '' $ac_executable_extensions; do 5878 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5879 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5881 break 2 5882 fi 5883done 5884 done 5885IFS=$as_save_IFS 5886 5887fi 5888fi 5889DUMPBIN=$ac_cv_prog_DUMPBIN 5890if test -n "$DUMPBIN"; then 5891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5892$as_echo "$DUMPBIN" >&6; } 5893else 5894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5895$as_echo "no" >&6; } 5896fi 5897 5898 5899 test -n "$DUMPBIN" && break 5900 done 5901fi 5902if test -z "$DUMPBIN"; then 5903 ac_ct_DUMPBIN=$DUMPBIN 5904 for ac_prog in dumpbin "link -dump" 5905do 5906 # Extract the first word of "$ac_prog", so it can be a program name with args. 5907set dummy $ac_prog; ac_word=$2 5908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5909$as_echo_n "checking for $ac_word... " >&6; } 5910if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 5911 $as_echo_n "(cached) " >&6 5912else 5913 if test -n "$ac_ct_DUMPBIN"; then 5914 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5915else 5916as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5917for as_dir in $PATH 5918do 5919 IFS=$as_save_IFS 5920 test -z "$as_dir" && as_dir=. 5921 for ac_exec_ext in '' $ac_executable_extensions; do 5922 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5923 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5925 break 2 5926 fi 5927done 5928 done 5929IFS=$as_save_IFS 5930 5931fi 5932fi 5933ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5934if test -n "$ac_ct_DUMPBIN"; then 5935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5936$as_echo "$ac_ct_DUMPBIN" >&6; } 5937else 5938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5939$as_echo "no" >&6; } 5940fi 5941 5942 5943 test -n "$ac_ct_DUMPBIN" && break 5944done 5945 5946 if test "x$ac_ct_DUMPBIN" = x; then 5947 DUMPBIN=":" 5948 else 5949 case $cross_compiling:$ac_tool_warned in 5950yes:) 5951{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5952$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5953ac_tool_warned=yes ;; 5954esac 5955 DUMPBIN=$ac_ct_DUMPBIN 5956 fi 5957fi 5958 5959 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 5960 *COFF*) 5961 DUMPBIN="$DUMPBIN -symbols" 5962 ;; 5963 *) 5964 DUMPBIN=: 5965 ;; 5966 esac 5967 fi 5968 5969 if test "$DUMPBIN" != ":"; then 5970 NM="$DUMPBIN" 5971 fi 5972fi 5973test -z "$NM" && NM=nm 5974 5975 5976 5977 5978 5979 5980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5981$as_echo_n "checking the name lister ($NM) interface... " >&6; } 5982if ${lt_cv_nm_interface+:} false; then : 5983 $as_echo_n "(cached) " >&6 5984else 5985 lt_cv_nm_interface="BSD nm" 5986 echo "int some_variable = 0;" > conftest.$ac_ext 5987 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5988 (eval "$ac_compile" 2>conftest.err) 5989 cat conftest.err >&5 5990 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5991 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5992 cat conftest.err >&5 5993 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5994 cat conftest.out >&5 5995 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5996 lt_cv_nm_interface="MS dumpbin" 5997 fi 5998 rm -f conftest* 5999fi 6000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 6001$as_echo "$lt_cv_nm_interface" >&6; } 6002 6003# find the maximum length of command line arguments 6004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 6005$as_echo_n "checking the maximum length of command line arguments... " >&6; } 6006if ${lt_cv_sys_max_cmd_len+:} false; then : 6007 $as_echo_n "(cached) " >&6 6008else 6009 i=0 6010 teststring="ABCD" 6011 6012 case $build_os in 6013 msdosdjgpp*) 6014 # On DJGPP, this test can blow up pretty badly due to problems in libc 6015 # (any single argument exceeding 2000 bytes causes a buffer overrun 6016 # during glob expansion). Even if it were fixed, the result of this 6017 # check would be larger than it should be. 6018 lt_cv_sys_max_cmd_len=12288; # 12K is about right 6019 ;; 6020 6021 gnu*) 6022 # Under GNU Hurd, this test is not required because there is 6023 # no limit to the length of command line arguments. 6024 # Libtool will interpret -1 as no limit whatsoever 6025 lt_cv_sys_max_cmd_len=-1; 6026 ;; 6027 6028 cygwin* | mingw* | cegcc*) 6029 # On Win9x/ME, this test blows up -- it succeeds, but takes 6030 # about 5 minutes as the teststring grows exponentially. 6031 # Worse, since 9x/ME are not pre-emptively multitasking, 6032 # you end up with a "frozen" computer, even though with patience 6033 # the test eventually succeeds (with a max line length of 256k). 6034 # Instead, let's just punt: use the minimum linelength reported by 6035 # all of the supported platforms: 8192 (on NT/2K/XP). 6036 lt_cv_sys_max_cmd_len=8192; 6037 ;; 6038 6039 mint*) 6040 # On MiNT this can take a long time and run out of memory. 6041 lt_cv_sys_max_cmd_len=8192; 6042 ;; 6043 6044 amigaos*) 6045 # On AmigaOS with pdksh, this test takes hours, literally. 6046 # So we just punt and use a minimum line length of 8192. 6047 lt_cv_sys_max_cmd_len=8192; 6048 ;; 6049 6050 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 6051 # This has been around since 386BSD, at least. Likely further. 6052 if test -x /sbin/sysctl; then 6053 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 6054 elif test -x /usr/sbin/sysctl; then 6055 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 6056 else 6057 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 6058 fi 6059 # And add a safety zone 6060 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6061 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6062 ;; 6063 6064 interix*) 6065 # We know the value 262144 and hardcode it with a safety zone (like BSD) 6066 lt_cv_sys_max_cmd_len=196608 6067 ;; 6068 6069 os2*) 6070 # The test takes a long time on OS/2. 6071 lt_cv_sys_max_cmd_len=8192 6072 ;; 6073 6074 osf*) 6075 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 6076 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 6077 # nice to cause kernel panics so lets avoid the loop below. 6078 # First set a reasonable default. 6079 lt_cv_sys_max_cmd_len=16384 6080 # 6081 if test -x /sbin/sysconfig; then 6082 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 6083 *1*) lt_cv_sys_max_cmd_len=-1 ;; 6084 esac 6085 fi 6086 ;; 6087 sco3.2v5*) 6088 lt_cv_sys_max_cmd_len=102400 6089 ;; 6090 sysv5* | sco5v6* | sysv4.2uw2*) 6091 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 6092 if test -n "$kargmax"; then 6093 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 6094 else 6095 lt_cv_sys_max_cmd_len=32768 6096 fi 6097 ;; 6098 *) 6099 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 6100 if test -n "$lt_cv_sys_max_cmd_len"; then 6101 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6102 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6103 else 6104 # Make teststring a little bigger before we do anything with it. 6105 # a 1K string should be a reasonable start. 6106 for i in 1 2 3 4 5 6 7 8 ; do 6107 teststring=$teststring$teststring 6108 done 6109 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 6110 # If test is not a shell built-in, we'll probably end up computing a 6111 # maximum length that is only half of the actual maximum length, but 6112 # we can't tell. 6113 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ 6114 = "X$teststring$teststring"; } >/dev/null 2>&1 && 6115 test $i != 17 # 1/2 MB should be enough 6116 do 6117 i=`expr $i + 1` 6118 teststring=$teststring$teststring 6119 done 6120 # Only check the string length outside the loop. 6121 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 6122 teststring= 6123 # Add a significant safety factor because C++ compilers can tack on 6124 # massive amounts of additional arguments before passing them to the 6125 # linker. It appears as though 1/2 is a usable value. 6126 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 6127 fi 6128 ;; 6129 esac 6130 6131fi 6132 6133if test -n $lt_cv_sys_max_cmd_len ; then 6134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 6135$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 6136else 6137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 6138$as_echo "none" >&6; } 6139fi 6140max_cmd_len=$lt_cv_sys_max_cmd_len 6141 6142 6143 6144 6145 6146 6147: ${CP="cp -f"} 6148: ${MV="mv -f"} 6149: ${RM="rm -f"} 6150 6151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 6152$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 6153# Try some XSI features 6154xsi_shell=no 6155( _lt_dummy="a/b/c" 6156 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ 6157 = c,a/b,b/c, \ 6158 && eval 'test $(( 1 + 1 )) -eq 2 \ 6159 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 6160 && xsi_shell=yes 6161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 6162$as_echo "$xsi_shell" >&6; } 6163 6164 6165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 6166$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 6167lt_shell_append=no 6168( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 6169 >/dev/null 2>&1 \ 6170 && lt_shell_append=yes 6171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 6172$as_echo "$lt_shell_append" >&6; } 6173 6174 6175if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 6176 lt_unset=unset 6177else 6178 lt_unset=false 6179fi 6180 6181 6182 6183 6184 6185# test EBCDIC or ASCII 6186case `echo X|tr X '\101'` in 6187 A) # ASCII based system 6188 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 6189 lt_SP2NL='tr \040 \012' 6190 lt_NL2SP='tr \015\012 \040\040' 6191 ;; 6192 *) # EBCDIC based system 6193 lt_SP2NL='tr \100 \n' 6194 lt_NL2SP='tr \r\n \100\100' 6195 ;; 6196esac 6197 6198 6199 6200 6201 6202 6203 6204 6205 6206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 6207$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 6208if ${lt_cv_to_host_file_cmd+:} false; then : 6209 $as_echo_n "(cached) " >&6 6210else 6211 case $host in 6212 *-*-mingw* ) 6213 case $build in 6214 *-*-mingw* ) # actually msys 6215 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 6216 ;; 6217 *-*-cygwin* ) 6218 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 6219 ;; 6220 * ) # otherwise, assume *nix 6221 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 6222 ;; 6223 esac 6224 ;; 6225 *-*-cygwin* ) 6226 case $build in 6227 *-*-mingw* ) # actually msys 6228 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 6229 ;; 6230 *-*-cygwin* ) 6231 lt_cv_to_host_file_cmd=func_convert_file_noop 6232 ;; 6233 * ) # otherwise, assume *nix 6234 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 6235 ;; 6236 esac 6237 ;; 6238 * ) # unhandled hosts (and "normal" native builds) 6239 lt_cv_to_host_file_cmd=func_convert_file_noop 6240 ;; 6241esac 6242 6243fi 6244 6245to_host_file_cmd=$lt_cv_to_host_file_cmd 6246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 6247$as_echo "$lt_cv_to_host_file_cmd" >&6; } 6248 6249 6250 6251 6252 6253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 6254$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 6255if ${lt_cv_to_tool_file_cmd+:} false; then : 6256 $as_echo_n "(cached) " >&6 6257else 6258 #assume ordinary cross tools, or native build. 6259lt_cv_to_tool_file_cmd=func_convert_file_noop 6260case $host in 6261 *-*-mingw* ) 6262 case $build in 6263 *-*-mingw* ) # actually msys 6264 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 6265 ;; 6266 esac 6267 ;; 6268esac 6269 6270fi 6271 6272to_tool_file_cmd=$lt_cv_to_tool_file_cmd 6273{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 6274$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 6275 6276 6277 6278 6279 6280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 6281$as_echo_n "checking for $LD option to reload object files... " >&6; } 6282if ${lt_cv_ld_reload_flag+:} false; then : 6283 $as_echo_n "(cached) " >&6 6284else 6285 lt_cv_ld_reload_flag='-r' 6286fi 6287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 6288$as_echo "$lt_cv_ld_reload_flag" >&6; } 6289reload_flag=$lt_cv_ld_reload_flag 6290case $reload_flag in 6291"" | " "*) ;; 6292*) reload_flag=" $reload_flag" ;; 6293esac 6294reload_cmds='$LD$reload_flag -o $output$reload_objs' 6295case $host_os in 6296 cygwin* | mingw* | pw32* | cegcc*) 6297 if test "$GCC" != yes; then 6298 reload_cmds=false 6299 fi 6300 ;; 6301 darwin*) 6302 if test "$GCC" = yes; then 6303 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 6304 else 6305 reload_cmds='$LD$reload_flag -o $output$reload_objs' 6306 fi 6307 ;; 6308esac 6309 6310 6311 6312 6313 6314 6315 6316 6317 6318if test -n "$ac_tool_prefix"; then 6319 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 6320set dummy ${ac_tool_prefix}objdump; ac_word=$2 6321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6322$as_echo_n "checking for $ac_word... " >&6; } 6323if ${ac_cv_prog_OBJDUMP+:} false; then : 6324 $as_echo_n "(cached) " >&6 6325else 6326 if test -n "$OBJDUMP"; then 6327 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 6328else 6329as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6330for as_dir in $PATH 6331do 6332 IFS=$as_save_IFS 6333 test -z "$as_dir" && as_dir=. 6334 for ac_exec_ext in '' $ac_executable_extensions; do 6335 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6336 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 6337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6338 break 2 6339 fi 6340done 6341 done 6342IFS=$as_save_IFS 6343 6344fi 6345fi 6346OBJDUMP=$ac_cv_prog_OBJDUMP 6347if test -n "$OBJDUMP"; then 6348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 6349$as_echo "$OBJDUMP" >&6; } 6350else 6351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6352$as_echo "no" >&6; } 6353fi 6354 6355 6356fi 6357if test -z "$ac_cv_prog_OBJDUMP"; then 6358 ac_ct_OBJDUMP=$OBJDUMP 6359 # Extract the first word of "objdump", so it can be a program name with args. 6360set dummy objdump; ac_word=$2 6361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6362$as_echo_n "checking for $ac_word... " >&6; } 6363if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 6364 $as_echo_n "(cached) " >&6 6365else 6366 if test -n "$ac_ct_OBJDUMP"; then 6367 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 6368else 6369as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6370for as_dir in $PATH 6371do 6372 IFS=$as_save_IFS 6373 test -z "$as_dir" && as_dir=. 6374 for ac_exec_ext in '' $ac_executable_extensions; do 6375 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6376 ac_cv_prog_ac_ct_OBJDUMP="objdump" 6377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6378 break 2 6379 fi 6380done 6381 done 6382IFS=$as_save_IFS 6383 6384fi 6385fi 6386ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 6387if test -n "$ac_ct_OBJDUMP"; then 6388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 6389$as_echo "$ac_ct_OBJDUMP" >&6; } 6390else 6391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6392$as_echo "no" >&6; } 6393fi 6394 6395 if test "x$ac_ct_OBJDUMP" = x; then 6396 OBJDUMP="false" 6397 else 6398 case $cross_compiling:$ac_tool_warned in 6399yes:) 6400{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6401$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6402ac_tool_warned=yes ;; 6403esac 6404 OBJDUMP=$ac_ct_OBJDUMP 6405 fi 6406else 6407 OBJDUMP="$ac_cv_prog_OBJDUMP" 6408fi 6409 6410test -z "$OBJDUMP" && OBJDUMP=objdump 6411 6412 6413 6414 6415 6416 6417 6418 6419 6420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 6421$as_echo_n "checking how to recognize dependent libraries... " >&6; } 6422if ${lt_cv_deplibs_check_method+:} false; then : 6423 $as_echo_n "(cached) " >&6 6424else 6425 lt_cv_file_magic_cmd='$MAGIC_CMD' 6426lt_cv_file_magic_test_file= 6427lt_cv_deplibs_check_method='unknown' 6428# Need to set the preceding variable on all platforms that support 6429# interlibrary dependencies. 6430# 'none' -- dependencies not supported. 6431# `unknown' -- same as none, but documents that we really don't know. 6432# 'pass_all' -- all dependencies passed with no checks. 6433# 'test_compile' -- check by making test program. 6434# 'file_magic [[regex]]' -- check by looking for files in library path 6435# which responds to the $file_magic_cmd with a given extended regex. 6436# If you have `file' or equivalent on your system and you're not sure 6437# whether `pass_all' will *always* work, you probably want this one. 6438 6439case $host_os in 6440aix[4-9]*) 6441 lt_cv_deplibs_check_method=pass_all 6442 ;; 6443 6444beos*) 6445 lt_cv_deplibs_check_method=pass_all 6446 ;; 6447 6448bsdi[45]*) 6449 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 6450 lt_cv_file_magic_cmd='/usr/bin/file -L' 6451 lt_cv_file_magic_test_file=/shlib/libc.so 6452 ;; 6453 6454cygwin*) 6455 # func_win32_libid is a shell function defined in ltmain.sh 6456 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6457 lt_cv_file_magic_cmd='func_win32_libid' 6458 ;; 6459 6460mingw* | pw32*) 6461 # Base MSYS/MinGW do not provide the 'file' command needed by 6462 # func_win32_libid shell function, so use a weaker test based on 'objdump', 6463 # unless we find 'file', for example because we are cross-compiling. 6464 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 6465 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 6466 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6467 lt_cv_file_magic_cmd='func_win32_libid' 6468 else 6469 # Keep this pattern in sync with the one in func_win32_libid. 6470 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 6471 lt_cv_file_magic_cmd='$OBJDUMP -f' 6472 fi 6473 ;; 6474 6475cegcc*) 6476 # use the weaker test based on 'objdump'. See mingw*. 6477 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 6478 lt_cv_file_magic_cmd='$OBJDUMP -f' 6479 ;; 6480 6481darwin* | rhapsody*) 6482 lt_cv_deplibs_check_method=pass_all 6483 ;; 6484 6485freebsd* | dragonfly*) 6486 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6487 case $host_cpu in 6488 i*86 ) 6489 # Not sure whether the presence of OpenBSD here was a mistake. 6490 # Let's accept both of them until this is cleared up. 6491 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6492 lt_cv_file_magic_cmd=/usr/bin/file 6493 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6494 ;; 6495 esac 6496 else 6497 lt_cv_deplibs_check_method=pass_all 6498 fi 6499 ;; 6500 6501gnu*) 6502 lt_cv_deplibs_check_method=pass_all 6503 ;; 6504 6505haiku*) 6506 lt_cv_deplibs_check_method=pass_all 6507 ;; 6508 6509hpux10.20* | hpux11*) 6510 lt_cv_file_magic_cmd=/usr/bin/file 6511 case $host_cpu in 6512 ia64*) 6513 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6514 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6515 ;; 6516 hppa*64*) 6517 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]' 6518 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6519 ;; 6520 *) 6521 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 6522 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6523 ;; 6524 esac 6525 ;; 6526 6527interix[3-9]*) 6528 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6529 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6530 ;; 6531 6532irix5* | irix6* | nonstopux*) 6533 case $LD in 6534 *-32|*"-32 ") libmagic=32-bit;; 6535 *-n32|*"-n32 ") libmagic=N32;; 6536 *-64|*"-64 ") libmagic=64-bit;; 6537 *) libmagic=never-match;; 6538 esac 6539 lt_cv_deplibs_check_method=pass_all 6540 ;; 6541 6542# This must be glibc/ELF. 6543linux* | k*bsd*-gnu | kopensolaris*-gnu) 6544 lt_cv_deplibs_check_method=pass_all 6545 ;; 6546 6547netbsd*) 6548 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6549 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6550 else 6551 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6552 fi 6553 ;; 6554 6555newos6*) 6556 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6557 lt_cv_file_magic_cmd=/usr/bin/file 6558 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6559 ;; 6560 6561*nto* | *qnx*) 6562 lt_cv_deplibs_check_method=pass_all 6563 ;; 6564 6565openbsd*) 6566 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 6567 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6568 else 6569 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6570 fi 6571 ;; 6572 6573osf3* | osf4* | osf5*) 6574 lt_cv_deplibs_check_method=pass_all 6575 ;; 6576 6577rdos*) 6578 lt_cv_deplibs_check_method=pass_all 6579 ;; 6580 6581solaris*) 6582 lt_cv_deplibs_check_method=pass_all 6583 ;; 6584 6585sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6586 lt_cv_deplibs_check_method=pass_all 6587 ;; 6588 6589sysv4 | sysv4.3*) 6590 case $host_vendor in 6591 motorola) 6592 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]' 6593 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6594 ;; 6595 ncr) 6596 lt_cv_deplibs_check_method=pass_all 6597 ;; 6598 sequent) 6599 lt_cv_file_magic_cmd='/bin/file' 6600 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6601 ;; 6602 sni) 6603 lt_cv_file_magic_cmd='/bin/file' 6604 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6605 lt_cv_file_magic_test_file=/lib/libc.so 6606 ;; 6607 siemens) 6608 lt_cv_deplibs_check_method=pass_all 6609 ;; 6610 pc) 6611 lt_cv_deplibs_check_method=pass_all 6612 ;; 6613 esac 6614 ;; 6615 6616tpf*) 6617 lt_cv_deplibs_check_method=pass_all 6618 ;; 6619esac 6620 6621fi 6622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6623$as_echo "$lt_cv_deplibs_check_method" >&6; } 6624 6625file_magic_glob= 6626want_nocaseglob=no 6627if test "$build" = "$host"; then 6628 case $host_os in 6629 mingw* | pw32*) 6630 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 6631 want_nocaseglob=yes 6632 else 6633 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 6634 fi 6635 ;; 6636 esac 6637fi 6638 6639file_magic_cmd=$lt_cv_file_magic_cmd 6640deplibs_check_method=$lt_cv_deplibs_check_method 6641test -z "$deplibs_check_method" && deplibs_check_method=unknown 6642 6643 6644 6645 6646 6647 6648 6649 6650 6651 6652 6653 6654 6655 6656 6657 6658 6659 6660 6661 6662 6663 6664if test -n "$ac_tool_prefix"; then 6665 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 6666set dummy ${ac_tool_prefix}dlltool; ac_word=$2 6667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6668$as_echo_n "checking for $ac_word... " >&6; } 6669if ${ac_cv_prog_DLLTOOL+:} false; then : 6670 $as_echo_n "(cached) " >&6 6671else 6672 if test -n "$DLLTOOL"; then 6673 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 6674else 6675as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6676for as_dir in $PATH 6677do 6678 IFS=$as_save_IFS 6679 test -z "$as_dir" && as_dir=. 6680 for ac_exec_ext in '' $ac_executable_extensions; do 6681 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6682 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 6683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6684 break 2 6685 fi 6686done 6687 done 6688IFS=$as_save_IFS 6689 6690fi 6691fi 6692DLLTOOL=$ac_cv_prog_DLLTOOL 6693if test -n "$DLLTOOL"; then 6694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 6695$as_echo "$DLLTOOL" >&6; } 6696else 6697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6698$as_echo "no" >&6; } 6699fi 6700 6701 6702fi 6703if test -z "$ac_cv_prog_DLLTOOL"; then 6704 ac_ct_DLLTOOL=$DLLTOOL 6705 # Extract the first word of "dlltool", so it can be a program name with args. 6706set dummy dlltool; ac_word=$2 6707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6708$as_echo_n "checking for $ac_word... " >&6; } 6709if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 6710 $as_echo_n "(cached) " >&6 6711else 6712 if test -n "$ac_ct_DLLTOOL"; then 6713 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 6714else 6715as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6716for as_dir in $PATH 6717do 6718 IFS=$as_save_IFS 6719 test -z "$as_dir" && as_dir=. 6720 for ac_exec_ext in '' $ac_executable_extensions; do 6721 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6722 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 6723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6724 break 2 6725 fi 6726done 6727 done 6728IFS=$as_save_IFS 6729 6730fi 6731fi 6732ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 6733if test -n "$ac_ct_DLLTOOL"; then 6734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 6735$as_echo "$ac_ct_DLLTOOL" >&6; } 6736else 6737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6738$as_echo "no" >&6; } 6739fi 6740 6741 if test "x$ac_ct_DLLTOOL" = x; then 6742 DLLTOOL="false" 6743 else 6744 case $cross_compiling:$ac_tool_warned in 6745yes:) 6746{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6747$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6748ac_tool_warned=yes ;; 6749esac 6750 DLLTOOL=$ac_ct_DLLTOOL 6751 fi 6752else 6753 DLLTOOL="$ac_cv_prog_DLLTOOL" 6754fi 6755 6756test -z "$DLLTOOL" && DLLTOOL=dlltool 6757 6758 6759 6760 6761 6762 6763 6764 6765 6766 6767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 6768$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 6769if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 6770 $as_echo_n "(cached) " >&6 6771else 6772 lt_cv_sharedlib_from_linklib_cmd='unknown' 6773 6774case $host_os in 6775cygwin* | mingw* | pw32* | cegcc*) 6776 # two different shell functions defined in ltmain.sh 6777 # decide which to use based on capabilities of $DLLTOOL 6778 case `$DLLTOOL --help 2>&1` in 6779 *--identify-strict*) 6780 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 6781 ;; 6782 *) 6783 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 6784 ;; 6785 esac 6786 ;; 6787*) 6788 # fallback: assume linklib IS sharedlib 6789 lt_cv_sharedlib_from_linklib_cmd="$ECHO" 6790 ;; 6791esac 6792 6793fi 6794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 6795$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 6796sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 6797test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 6798 6799 6800 6801 6802 6803 6804 6805if test -n "$ac_tool_prefix"; then 6806 for ac_prog in ar 6807 do 6808 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6809set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6811$as_echo_n "checking for $ac_word... " >&6; } 6812if ${ac_cv_prog_AR+:} false; then : 6813 $as_echo_n "(cached) " >&6 6814else 6815 if test -n "$AR"; then 6816 ac_cv_prog_AR="$AR" # Let the user override the test. 6817else 6818as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6819for as_dir in $PATH 6820do 6821 IFS=$as_save_IFS 6822 test -z "$as_dir" && as_dir=. 6823 for ac_exec_ext in '' $ac_executable_extensions; do 6824 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6825 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 6826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6827 break 2 6828 fi 6829done 6830 done 6831IFS=$as_save_IFS 6832 6833fi 6834fi 6835AR=$ac_cv_prog_AR 6836if test -n "$AR"; then 6837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6838$as_echo "$AR" >&6; } 6839else 6840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6841$as_echo "no" >&6; } 6842fi 6843 6844 6845 test -n "$AR" && break 6846 done 6847fi 6848if test -z "$AR"; then 6849 ac_ct_AR=$AR 6850 for ac_prog in ar 6851do 6852 # Extract the first word of "$ac_prog", so it can be a program name with args. 6853set dummy $ac_prog; ac_word=$2 6854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6855$as_echo_n "checking for $ac_word... " >&6; } 6856if ${ac_cv_prog_ac_ct_AR+:} false; then : 6857 $as_echo_n "(cached) " >&6 6858else 6859 if test -n "$ac_ct_AR"; then 6860 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6861else 6862as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6863for as_dir in $PATH 6864do 6865 IFS=$as_save_IFS 6866 test -z "$as_dir" && as_dir=. 6867 for ac_exec_ext in '' $ac_executable_extensions; do 6868 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6869 ac_cv_prog_ac_ct_AR="$ac_prog" 6870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6871 break 2 6872 fi 6873done 6874 done 6875IFS=$as_save_IFS 6876 6877fi 6878fi 6879ac_ct_AR=$ac_cv_prog_ac_ct_AR 6880if test -n "$ac_ct_AR"; then 6881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6882$as_echo "$ac_ct_AR" >&6; } 6883else 6884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6885$as_echo "no" >&6; } 6886fi 6887 6888 6889 test -n "$ac_ct_AR" && break 6890done 6891 6892 if test "x$ac_ct_AR" = x; then 6893 AR="false" 6894 else 6895 case $cross_compiling:$ac_tool_warned in 6896yes:) 6897{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6898$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6899ac_tool_warned=yes ;; 6900esac 6901 AR=$ac_ct_AR 6902 fi 6903fi 6904 6905: ${AR=ar} 6906: ${AR_FLAGS=cru} 6907 6908 6909 6910 6911 6912 6913 6914 6915 6916 6917 6918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 6919$as_echo_n "checking for archiver @FILE support... " >&6; } 6920if ${lt_cv_ar_at_file+:} false; then : 6921 $as_echo_n "(cached) " >&6 6922else 6923 lt_cv_ar_at_file=no 6924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6925/* end confdefs.h. */ 6926 6927int 6928main () 6929{ 6930 6931 ; 6932 return 0; 6933} 6934_ACEOF 6935if ac_fn_c_try_compile "$LINENO"; then : 6936 echo conftest.$ac_objext > conftest.lst 6937 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 6938 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6939 (eval $lt_ar_try) 2>&5 6940 ac_status=$? 6941 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6942 test $ac_status = 0; } 6943 if test "$ac_status" -eq 0; then 6944 # Ensure the archiver fails upon bogus file names. 6945 rm -f conftest.$ac_objext libconftest.a 6946 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6947 (eval $lt_ar_try) 2>&5 6948 ac_status=$? 6949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6950 test $ac_status = 0; } 6951 if test "$ac_status" -ne 0; then 6952 lt_cv_ar_at_file=@ 6953 fi 6954 fi 6955 rm -f conftest.* libconftest.a 6956 6957fi 6958rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6959 6960fi 6961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 6962$as_echo "$lt_cv_ar_at_file" >&6; } 6963 6964if test "x$lt_cv_ar_at_file" = xno; then 6965 archiver_list_spec= 6966else 6967 archiver_list_spec=$lt_cv_ar_at_file 6968fi 6969 6970 6971 6972 6973 6974 6975 6976if test -n "$ac_tool_prefix"; then 6977 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6978set dummy ${ac_tool_prefix}strip; ac_word=$2 6979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6980$as_echo_n "checking for $ac_word... " >&6; } 6981if ${ac_cv_prog_STRIP+:} false; then : 6982 $as_echo_n "(cached) " >&6 6983else 6984 if test -n "$STRIP"; then 6985 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6986else 6987as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6988for as_dir in $PATH 6989do 6990 IFS=$as_save_IFS 6991 test -z "$as_dir" && as_dir=. 6992 for ac_exec_ext in '' $ac_executable_extensions; do 6993 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6994 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6996 break 2 6997 fi 6998done 6999 done 7000IFS=$as_save_IFS 7001 7002fi 7003fi 7004STRIP=$ac_cv_prog_STRIP 7005if test -n "$STRIP"; then 7006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 7007$as_echo "$STRIP" >&6; } 7008else 7009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7010$as_echo "no" >&6; } 7011fi 7012 7013 7014fi 7015if test -z "$ac_cv_prog_STRIP"; then 7016 ac_ct_STRIP=$STRIP 7017 # Extract the first word of "strip", so it can be a program name with args. 7018set dummy strip; ac_word=$2 7019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7020$as_echo_n "checking for $ac_word... " >&6; } 7021if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 7022 $as_echo_n "(cached) " >&6 7023else 7024 if test -n "$ac_ct_STRIP"; then 7025 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 7026else 7027as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7028for as_dir in $PATH 7029do 7030 IFS=$as_save_IFS 7031 test -z "$as_dir" && as_dir=. 7032 for ac_exec_ext in '' $ac_executable_extensions; do 7033 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7034 ac_cv_prog_ac_ct_STRIP="strip" 7035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7036 break 2 7037 fi 7038done 7039 done 7040IFS=$as_save_IFS 7041 7042fi 7043fi 7044ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 7045if test -n "$ac_ct_STRIP"; then 7046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 7047$as_echo "$ac_ct_STRIP" >&6; } 7048else 7049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7050$as_echo "no" >&6; } 7051fi 7052 7053 if test "x$ac_ct_STRIP" = x; then 7054 STRIP=":" 7055 else 7056 case $cross_compiling:$ac_tool_warned in 7057yes:) 7058{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7059$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7060ac_tool_warned=yes ;; 7061esac 7062 STRIP=$ac_ct_STRIP 7063 fi 7064else 7065 STRIP="$ac_cv_prog_STRIP" 7066fi 7067 7068test -z "$STRIP" && STRIP=: 7069 7070 7071 7072 7073 7074 7075if test -n "$ac_tool_prefix"; then 7076 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 7077set dummy ${ac_tool_prefix}ranlib; ac_word=$2 7078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7079$as_echo_n "checking for $ac_word... " >&6; } 7080if ${ac_cv_prog_RANLIB+:} false; then : 7081 $as_echo_n "(cached) " >&6 7082else 7083 if test -n "$RANLIB"; then 7084 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 7085else 7086as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7087for as_dir in $PATH 7088do 7089 IFS=$as_save_IFS 7090 test -z "$as_dir" && as_dir=. 7091 for ac_exec_ext in '' $ac_executable_extensions; do 7092 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7093 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 7094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7095 break 2 7096 fi 7097done 7098 done 7099IFS=$as_save_IFS 7100 7101fi 7102fi 7103RANLIB=$ac_cv_prog_RANLIB 7104if test -n "$RANLIB"; then 7105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 7106$as_echo "$RANLIB" >&6; } 7107else 7108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7109$as_echo "no" >&6; } 7110fi 7111 7112 7113fi 7114if test -z "$ac_cv_prog_RANLIB"; then 7115 ac_ct_RANLIB=$RANLIB 7116 # Extract the first word of "ranlib", so it can be a program name with args. 7117set dummy ranlib; ac_word=$2 7118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7119$as_echo_n "checking for $ac_word... " >&6; } 7120if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 7121 $as_echo_n "(cached) " >&6 7122else 7123 if test -n "$ac_ct_RANLIB"; then 7124 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 7125else 7126as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7127for as_dir in $PATH 7128do 7129 IFS=$as_save_IFS 7130 test -z "$as_dir" && as_dir=. 7131 for ac_exec_ext in '' $ac_executable_extensions; do 7132 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7133 ac_cv_prog_ac_ct_RANLIB="ranlib" 7134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7135 break 2 7136 fi 7137done 7138 done 7139IFS=$as_save_IFS 7140 7141fi 7142fi 7143ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 7144if test -n "$ac_ct_RANLIB"; then 7145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 7146$as_echo "$ac_ct_RANLIB" >&6; } 7147else 7148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7149$as_echo "no" >&6; } 7150fi 7151 7152 if test "x$ac_ct_RANLIB" = x; then 7153 RANLIB=":" 7154 else 7155 case $cross_compiling:$ac_tool_warned in 7156yes:) 7157{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7158$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7159ac_tool_warned=yes ;; 7160esac 7161 RANLIB=$ac_ct_RANLIB 7162 fi 7163else 7164 RANLIB="$ac_cv_prog_RANLIB" 7165fi 7166 7167test -z "$RANLIB" && RANLIB=: 7168 7169 7170 7171 7172 7173 7174# Determine commands to create old-style static archives. 7175old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 7176old_postinstall_cmds='chmod 644 $oldlib' 7177old_postuninstall_cmds= 7178 7179if test -n "$RANLIB"; then 7180 case $host_os in 7181 openbsd*) 7182 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 7183 ;; 7184 *) 7185 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 7186 ;; 7187 esac 7188 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 7189fi 7190 7191case $host_os in 7192 darwin*) 7193 lock_old_archive_extraction=yes ;; 7194 *) 7195 lock_old_archive_extraction=no ;; 7196esac 7197 7198 7199 7200 7201 7202 7203 7204 7205 7206 7207 7208 7209 7210 7211 7212 7213 7214 7215 7216 7217 7218 7219 7220 7221 7222 7223 7224 7225 7226 7227 7228 7229 7230 7231 7232 7233 7234 7235 7236# If no C compiler was specified, use CC. 7237LTCC=${LTCC-"$CC"} 7238 7239# If no C compiler flags were specified, use CFLAGS. 7240LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7241 7242# Allow CC to be a program name with arguments. 7243compiler=$CC 7244 7245 7246# Check for command to grab the raw symbol name followed by C symbol from nm. 7247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 7248$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 7249if ${lt_cv_sys_global_symbol_pipe+:} false; then : 7250 $as_echo_n "(cached) " >&6 7251else 7252 7253# These are sane defaults that work on at least a few old systems. 7254# [They come from Ultrix. What could be older than Ultrix?!! ;)] 7255 7256# Character class describing NM global symbol codes. 7257symcode='[BCDEGRST]' 7258 7259# Regexp to match symbols that can be accessed directly from C. 7260sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 7261 7262# Define system-specific variables. 7263case $host_os in 7264aix*) 7265 symcode='[BCDT]' 7266 ;; 7267cygwin* | mingw* | pw32* | cegcc*) 7268 symcode='[ABCDGISTW]' 7269 ;; 7270hpux*) 7271 if test "$host_cpu" = ia64; then 7272 symcode='[ABCDEGRST]' 7273 fi 7274 ;; 7275irix* | nonstopux*) 7276 symcode='[BCDEGRST]' 7277 ;; 7278osf*) 7279 symcode='[BCDEGQRST]' 7280 ;; 7281solaris*) 7282 symcode='[BDRT]' 7283 ;; 7284sco3.2v5*) 7285 symcode='[DT]' 7286 ;; 7287sysv4.2uw2*) 7288 symcode='[DT]' 7289 ;; 7290sysv5* | sco5v6* | unixware* | OpenUNIX*) 7291 symcode='[ABDT]' 7292 ;; 7293sysv4) 7294 symcode='[DFNSTU]' 7295 ;; 7296esac 7297 7298# If we're using GNU nm, then use its standard symbol codes. 7299case `$NM -V 2>&1` in 7300*GNU* | *'with BFD'*) 7301 symcode='[ABCDGIRSTW]' ;; 7302esac 7303 7304# Transform an extracted symbol line into a proper C declaration. 7305# Some systems (esp. on ia64) link data and code symbols differently, 7306# so use this general approach. 7307lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 7308 7309# Transform an extracted symbol line into symbol name and symbol address 7310lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 7311lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" 7312 7313# Handle CRLF in mingw tool chain 7314opt_cr= 7315case $build_os in 7316mingw*) 7317 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 7318 ;; 7319esac 7320 7321# Try without a prefix underscore, then with it. 7322for ac_symprfx in "" "_"; do 7323 7324 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 7325 symxfrm="\\1 $ac_symprfx\\2 \\2" 7326 7327 # Write the raw and C identifiers. 7328 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7329 # Fake it for dumpbin and say T for any non-static function 7330 # and D for any global variable. 7331 # Also find C++ and __fastcall symbols from MSVC++, 7332 # which start with @ or ?. 7333 lt_cv_sys_global_symbol_pipe="$AWK '"\ 7334" {last_section=section; section=\$ 3};"\ 7335" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 7336" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 7337" \$ 0!~/External *\|/{next};"\ 7338" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 7339" {if(hide[section]) next};"\ 7340" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 7341" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 7342" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 7343" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 7344" ' prfx=^$ac_symprfx" 7345 else 7346 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 7347 fi 7348 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 7349 7350 # Check to see that the pipe works correctly. 7351 pipe_works=no 7352 7353 rm -f conftest* 7354 cat > conftest.$ac_ext <<_LT_EOF 7355#ifdef __cplusplus 7356extern "C" { 7357#endif 7358char nm_test_var; 7359void nm_test_func(void); 7360void nm_test_func(void){} 7361#ifdef __cplusplus 7362} 7363#endif 7364int main(){nm_test_var='a';nm_test_func();return(0);} 7365_LT_EOF 7366 7367 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7368 (eval $ac_compile) 2>&5 7369 ac_status=$? 7370 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7371 test $ac_status = 0; }; then 7372 # Now try to grab the symbols. 7373 nlist=conftest.nm 7374 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 7375 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 7376 ac_status=$? 7377 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7378 test $ac_status = 0; } && test -s "$nlist"; then 7379 # Try sorting and uniquifying the output. 7380 if sort "$nlist" | uniq > "$nlist"T; then 7381 mv -f "$nlist"T "$nlist" 7382 else 7383 rm -f "$nlist"T 7384 fi 7385 7386 # Make sure that we snagged all the symbols we need. 7387 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 7388 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 7389 cat <<_LT_EOF > conftest.$ac_ext 7390/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 7391#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) 7392/* DATA imports from DLLs on WIN32 con't be const, because runtime 7393 relocations are performed -- see ld's documentation on pseudo-relocs. */ 7394# define LT_DLSYM_CONST 7395#elif defined(__osf__) 7396/* This system does not cope well with relocations in const data. */ 7397# define LT_DLSYM_CONST 7398#else 7399# define LT_DLSYM_CONST const 7400#endif 7401 7402#ifdef __cplusplus 7403extern "C" { 7404#endif 7405 7406_LT_EOF 7407 # Now generate the symbol file. 7408 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 7409 7410 cat <<_LT_EOF >> conftest.$ac_ext 7411 7412/* The mapping between symbol names and symbols. */ 7413LT_DLSYM_CONST struct { 7414 const char *name; 7415 void *address; 7416} 7417lt__PROGRAM__LTX_preloaded_symbols[] = 7418{ 7419 { "@PROGRAM@", (void *) 0 }, 7420_LT_EOF 7421 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 7422 cat <<\_LT_EOF >> conftest.$ac_ext 7423 {0, (void *) 0} 7424}; 7425 7426/* This works around a problem in FreeBSD linker */ 7427#ifdef FREEBSD_WORKAROUND 7428static const void *lt_preloaded_setup() { 7429 return lt__PROGRAM__LTX_preloaded_symbols; 7430} 7431#endif 7432 7433#ifdef __cplusplus 7434} 7435#endif 7436_LT_EOF 7437 # Now try linking the two files. 7438 mv conftest.$ac_objext conftstm.$ac_objext 7439 lt_globsym_save_LIBS=$LIBS 7440 lt_globsym_save_CFLAGS=$CFLAGS 7441 LIBS="conftstm.$ac_objext" 7442 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 7443 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 7444 (eval $ac_link) 2>&5 7445 ac_status=$? 7446 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7447 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 7448 pipe_works=yes 7449 fi 7450 LIBS=$lt_globsym_save_LIBS 7451 CFLAGS=$lt_globsym_save_CFLAGS 7452 else 7453 echo "cannot find nm_test_func in $nlist" >&5 7454 fi 7455 else 7456 echo "cannot find nm_test_var in $nlist" >&5 7457 fi 7458 else 7459 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 7460 fi 7461 else 7462 echo "$progname: failed program was:" >&5 7463 cat conftest.$ac_ext >&5 7464 fi 7465 rm -rf conftest* conftst* 7466 7467 # Do not use the global_symbol_pipe unless it works. 7468 if test "$pipe_works" = yes; then 7469 break 7470 else 7471 lt_cv_sys_global_symbol_pipe= 7472 fi 7473done 7474 7475fi 7476 7477if test -z "$lt_cv_sys_global_symbol_pipe"; then 7478 lt_cv_sys_global_symbol_to_cdecl= 7479fi 7480if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 7482$as_echo "failed" >&6; } 7483else 7484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 7485$as_echo "ok" >&6; } 7486fi 7487 7488# Response file support. 7489if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7490 nm_file_list_spec='@' 7491elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 7492 nm_file_list_spec='@' 7493fi 7494 7495 7496 7497 7498 7499 7500 7501 7502 7503 7504 7505 7506 7507 7508 7509 7510 7511 7512 7513 7514 7515 7516 7517 7518 7519 7520 7521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 7522$as_echo_n "checking for sysroot... " >&6; } 7523 7524# Check whether --with-sysroot was given. 7525if test "${with_sysroot+set}" = set; then : 7526 withval=$with_sysroot; 7527else 7528 with_sysroot=no 7529fi 7530 7531 7532lt_sysroot= 7533case ${with_sysroot} in #( 7534 yes) 7535 if test "$GCC" = yes; then 7536 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 7537 fi 7538 ;; #( 7539 /*) 7540 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 7541 ;; #( 7542 no|'') 7543 ;; #( 7544 *) 7545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 7546$as_echo "${with_sysroot}" >&6; } 7547 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 7548 ;; 7549esac 7550 7551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 7552$as_echo "${lt_sysroot:-no}" >&6; } 7553 7554 7555 7556 7557 7558# Check whether --enable-libtool-lock was given. 7559if test "${enable_libtool_lock+set}" = set; then : 7560 enableval=$enable_libtool_lock; 7561fi 7562 7563test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 7564 7565# Some flags need to be propagated to the compiler or linker for good 7566# libtool support. 7567case $host in 7568ia64-*-hpux*) 7569 # Find out which ABI we are using. 7570 echo 'int i;' > conftest.$ac_ext 7571 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7572 (eval $ac_compile) 2>&5 7573 ac_status=$? 7574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7575 test $ac_status = 0; }; then 7576 case `/usr/bin/file conftest.$ac_objext` in 7577 *ELF-32*) 7578 HPUX_IA64_MODE="32" 7579 ;; 7580 *ELF-64*) 7581 HPUX_IA64_MODE="64" 7582 ;; 7583 esac 7584 fi 7585 rm -rf conftest* 7586 ;; 7587*-*-irix6*) 7588 # Find out which ABI we are using. 7589 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7590 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7591 (eval $ac_compile) 2>&5 7592 ac_status=$? 7593 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7594 test $ac_status = 0; }; then 7595 if test "$lt_cv_prog_gnu_ld" = yes; then 7596 case `/usr/bin/file conftest.$ac_objext` in 7597 *32-bit*) 7598 LD="${LD-ld} -melf32bsmip" 7599 ;; 7600 *N32*) 7601 LD="${LD-ld} -melf32bmipn32" 7602 ;; 7603 *64-bit*) 7604 LD="${LD-ld} -melf64bmip" 7605 ;; 7606 esac 7607 else 7608 case `/usr/bin/file conftest.$ac_objext` in 7609 *32-bit*) 7610 LD="${LD-ld} -32" 7611 ;; 7612 *N32*) 7613 LD="${LD-ld} -n32" 7614 ;; 7615 *64-bit*) 7616 LD="${LD-ld} -64" 7617 ;; 7618 esac 7619 fi 7620 fi 7621 rm -rf conftest* 7622 ;; 7623 7624x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 7625s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 7626 # Find out which ABI we are using. 7627 echo 'int i;' > conftest.$ac_ext 7628 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7629 (eval $ac_compile) 2>&5 7630 ac_status=$? 7631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7632 test $ac_status = 0; }; then 7633 case `/usr/bin/file conftest.o` in 7634 *32-bit*) 7635 case $host in 7636 x86_64-*kfreebsd*-gnu) 7637 LD="${LD-ld} -m elf_i386_fbsd" 7638 ;; 7639 x86_64-*linux*) 7640 LD="${LD-ld} -m elf_i386" 7641 ;; 7642 ppc64-*linux*|powerpc64-*linux*) 7643 LD="${LD-ld} -m elf32ppclinux" 7644 ;; 7645 s390x-*linux*) 7646 LD="${LD-ld} -m elf_s390" 7647 ;; 7648 sparc64-*linux*) 7649 LD="${LD-ld} -m elf32_sparc" 7650 ;; 7651 esac 7652 ;; 7653 *64-bit*) 7654 case $host in 7655 x86_64-*kfreebsd*-gnu) 7656 LD="${LD-ld} -m elf_x86_64_fbsd" 7657 ;; 7658 x86_64-*linux*) 7659 LD="${LD-ld} -m elf_x86_64" 7660 ;; 7661 ppc*-*linux*|powerpc*-*linux*) 7662 LD="${LD-ld} -m elf64ppc" 7663 ;; 7664 s390*-*linux*|s390*-*tpf*) 7665 LD="${LD-ld} -m elf64_s390" 7666 ;; 7667 sparc*-*linux*) 7668 LD="${LD-ld} -m elf64_sparc" 7669 ;; 7670 esac 7671 ;; 7672 esac 7673 fi 7674 rm -rf conftest* 7675 ;; 7676 7677*-*-sco3.2v5*) 7678 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7679 SAVE_CFLAGS="$CFLAGS" 7680 CFLAGS="$CFLAGS -belf" 7681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 7682$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 7683if ${lt_cv_cc_needs_belf+:} false; then : 7684 $as_echo_n "(cached) " >&6 7685else 7686 ac_ext=c 7687ac_cpp='$CPP $CPPFLAGS' 7688ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7689ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7690ac_compiler_gnu=$ac_cv_c_compiler_gnu 7691 7692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7693/* end confdefs.h. */ 7694 7695int 7696main () 7697{ 7698 7699 ; 7700 return 0; 7701} 7702_ACEOF 7703if ac_fn_c_try_link "$LINENO"; then : 7704 lt_cv_cc_needs_belf=yes 7705else 7706 lt_cv_cc_needs_belf=no 7707fi 7708rm -f core conftest.err conftest.$ac_objext \ 7709 conftest$ac_exeext conftest.$ac_ext 7710 ac_ext=c 7711ac_cpp='$CPP $CPPFLAGS' 7712ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7713ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7714ac_compiler_gnu=$ac_cv_c_compiler_gnu 7715 7716fi 7717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 7718$as_echo "$lt_cv_cc_needs_belf" >&6; } 7719 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 7720 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7721 CFLAGS="$SAVE_CFLAGS" 7722 fi 7723 ;; 7724*-*solaris*) 7725 # Find out which ABI we are using. 7726 echo 'int i;' > conftest.$ac_ext 7727 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7728 (eval $ac_compile) 2>&5 7729 ac_status=$? 7730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7731 test $ac_status = 0; }; then 7732 case `/usr/bin/file conftest.o` in 7733 *64-bit*) 7734 case $lt_cv_prog_gnu_ld in 7735 yes*) 7736 case $host in 7737 i?86-*-solaris*) 7738 LD="${LD-ld} -m elf_x86_64" 7739 ;; 7740 sparc*-*-solaris*) 7741 LD="${LD-ld} -m elf64_sparc" 7742 ;; 7743 esac 7744 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 7745 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 7746 LD="${LD-ld}_sol2" 7747 fi 7748 ;; 7749 *) 7750 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7751 LD="${LD-ld} -64" 7752 fi 7753 ;; 7754 esac 7755 ;; 7756 esac 7757 fi 7758 rm -rf conftest* 7759 ;; 7760esac 7761 7762need_locks="$enable_libtool_lock" 7763 7764if test -n "$ac_tool_prefix"; then 7765 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 7766set dummy ${ac_tool_prefix}mt; ac_word=$2 7767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7768$as_echo_n "checking for $ac_word... " >&6; } 7769if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 7770 $as_echo_n "(cached) " >&6 7771else 7772 if test -n "$MANIFEST_TOOL"; then 7773 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 7774else 7775as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7776for as_dir in $PATH 7777do 7778 IFS=$as_save_IFS 7779 test -z "$as_dir" && as_dir=. 7780 for ac_exec_ext in '' $ac_executable_extensions; do 7781 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7782 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 7783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7784 break 2 7785 fi 7786done 7787 done 7788IFS=$as_save_IFS 7789 7790fi 7791fi 7792MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 7793if test -n "$MANIFEST_TOOL"; then 7794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 7795$as_echo "$MANIFEST_TOOL" >&6; } 7796else 7797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7798$as_echo "no" >&6; } 7799fi 7800 7801 7802fi 7803if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 7804 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 7805 # Extract the first word of "mt", so it can be a program name with args. 7806set dummy mt; ac_word=$2 7807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7808$as_echo_n "checking for $ac_word... " >&6; } 7809if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 7810 $as_echo_n "(cached) " >&6 7811else 7812 if test -n "$ac_ct_MANIFEST_TOOL"; then 7813 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 7814else 7815as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7816for as_dir in $PATH 7817do 7818 IFS=$as_save_IFS 7819 test -z "$as_dir" && as_dir=. 7820 for ac_exec_ext in '' $ac_executable_extensions; do 7821 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7822 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 7823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7824 break 2 7825 fi 7826done 7827 done 7828IFS=$as_save_IFS 7829 7830fi 7831fi 7832ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 7833if test -n "$ac_ct_MANIFEST_TOOL"; then 7834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 7835$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 7836else 7837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7838$as_echo "no" >&6; } 7839fi 7840 7841 if test "x$ac_ct_MANIFEST_TOOL" = x; then 7842 MANIFEST_TOOL=":" 7843 else 7844 case $cross_compiling:$ac_tool_warned in 7845yes:) 7846{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7847$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7848ac_tool_warned=yes ;; 7849esac 7850 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 7851 fi 7852else 7853 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 7854fi 7855 7856test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 7857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 7858$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 7859if ${lt_cv_path_mainfest_tool+:} false; then : 7860 $as_echo_n "(cached) " >&6 7861else 7862 lt_cv_path_mainfest_tool=no 7863 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 7864 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 7865 cat conftest.err >&5 7866 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 7867 lt_cv_path_mainfest_tool=yes 7868 fi 7869 rm -f conftest* 7870fi 7871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 7872$as_echo "$lt_cv_path_mainfest_tool" >&6; } 7873if test "x$lt_cv_path_mainfest_tool" != xyes; then 7874 MANIFEST_TOOL=: 7875fi 7876 7877 7878 7879 7880 7881 7882 case $host_os in 7883 rhapsody* | darwin*) 7884 if test -n "$ac_tool_prefix"; then 7885 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7886set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7888$as_echo_n "checking for $ac_word... " >&6; } 7889if ${ac_cv_prog_DSYMUTIL+:} false; then : 7890 $as_echo_n "(cached) " >&6 7891else 7892 if test -n "$DSYMUTIL"; then 7893 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7894else 7895as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7896for as_dir in $PATH 7897do 7898 IFS=$as_save_IFS 7899 test -z "$as_dir" && as_dir=. 7900 for ac_exec_ext in '' $ac_executable_extensions; do 7901 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7902 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7904 break 2 7905 fi 7906done 7907 done 7908IFS=$as_save_IFS 7909 7910fi 7911fi 7912DSYMUTIL=$ac_cv_prog_DSYMUTIL 7913if test -n "$DSYMUTIL"; then 7914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7915$as_echo "$DSYMUTIL" >&6; } 7916else 7917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7918$as_echo "no" >&6; } 7919fi 7920 7921 7922fi 7923if test -z "$ac_cv_prog_DSYMUTIL"; then 7924 ac_ct_DSYMUTIL=$DSYMUTIL 7925 # Extract the first word of "dsymutil", so it can be a program name with args. 7926set dummy dsymutil; ac_word=$2 7927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7928$as_echo_n "checking for $ac_word... " >&6; } 7929if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 7930 $as_echo_n "(cached) " >&6 7931else 7932 if test -n "$ac_ct_DSYMUTIL"; then 7933 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7934else 7935as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7936for as_dir in $PATH 7937do 7938 IFS=$as_save_IFS 7939 test -z "$as_dir" && as_dir=. 7940 for ac_exec_ext in '' $ac_executable_extensions; do 7941 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7942 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7944 break 2 7945 fi 7946done 7947 done 7948IFS=$as_save_IFS 7949 7950fi 7951fi 7952ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7953if test -n "$ac_ct_DSYMUTIL"; then 7954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7955$as_echo "$ac_ct_DSYMUTIL" >&6; } 7956else 7957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7958$as_echo "no" >&6; } 7959fi 7960 7961 if test "x$ac_ct_DSYMUTIL" = x; then 7962 DSYMUTIL=":" 7963 else 7964 case $cross_compiling:$ac_tool_warned in 7965yes:) 7966{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7967$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7968ac_tool_warned=yes ;; 7969esac 7970 DSYMUTIL=$ac_ct_DSYMUTIL 7971 fi 7972else 7973 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7974fi 7975 7976 if test -n "$ac_tool_prefix"; then 7977 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7978set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7980$as_echo_n "checking for $ac_word... " >&6; } 7981if ${ac_cv_prog_NMEDIT+:} false; then : 7982 $as_echo_n "(cached) " >&6 7983else 7984 if test -n "$NMEDIT"; then 7985 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7986else 7987as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7988for as_dir in $PATH 7989do 7990 IFS=$as_save_IFS 7991 test -z "$as_dir" && as_dir=. 7992 for ac_exec_ext in '' $ac_executable_extensions; do 7993 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7994 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7996 break 2 7997 fi 7998done 7999 done 8000IFS=$as_save_IFS 8001 8002fi 8003fi 8004NMEDIT=$ac_cv_prog_NMEDIT 8005if test -n "$NMEDIT"; then 8006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 8007$as_echo "$NMEDIT" >&6; } 8008else 8009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8010$as_echo "no" >&6; } 8011fi 8012 8013 8014fi 8015if test -z "$ac_cv_prog_NMEDIT"; then 8016 ac_ct_NMEDIT=$NMEDIT 8017 # Extract the first word of "nmedit", so it can be a program name with args. 8018set dummy nmedit; ac_word=$2 8019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8020$as_echo_n "checking for $ac_word... " >&6; } 8021if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 8022 $as_echo_n "(cached) " >&6 8023else 8024 if test -n "$ac_ct_NMEDIT"; then 8025 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 8026else 8027as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8028for as_dir in $PATH 8029do 8030 IFS=$as_save_IFS 8031 test -z "$as_dir" && as_dir=. 8032 for ac_exec_ext in '' $ac_executable_extensions; do 8033 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8034 ac_cv_prog_ac_ct_NMEDIT="nmedit" 8035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8036 break 2 8037 fi 8038done 8039 done 8040IFS=$as_save_IFS 8041 8042fi 8043fi 8044ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 8045if test -n "$ac_ct_NMEDIT"; then 8046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 8047$as_echo "$ac_ct_NMEDIT" >&6; } 8048else 8049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8050$as_echo "no" >&6; } 8051fi 8052 8053 if test "x$ac_ct_NMEDIT" = x; then 8054 NMEDIT=":" 8055 else 8056 case $cross_compiling:$ac_tool_warned in 8057yes:) 8058{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8059$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8060ac_tool_warned=yes ;; 8061esac 8062 NMEDIT=$ac_ct_NMEDIT 8063 fi 8064else 8065 NMEDIT="$ac_cv_prog_NMEDIT" 8066fi 8067 8068 if test -n "$ac_tool_prefix"; then 8069 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 8070set dummy ${ac_tool_prefix}lipo; ac_word=$2 8071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8072$as_echo_n "checking for $ac_word... " >&6; } 8073if ${ac_cv_prog_LIPO+:} false; then : 8074 $as_echo_n "(cached) " >&6 8075else 8076 if test -n "$LIPO"; then 8077 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 8078else 8079as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8080for as_dir in $PATH 8081do 8082 IFS=$as_save_IFS 8083 test -z "$as_dir" && as_dir=. 8084 for ac_exec_ext in '' $ac_executable_extensions; do 8085 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8086 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 8087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8088 break 2 8089 fi 8090done 8091 done 8092IFS=$as_save_IFS 8093 8094fi 8095fi 8096LIPO=$ac_cv_prog_LIPO 8097if test -n "$LIPO"; then 8098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 8099$as_echo "$LIPO" >&6; } 8100else 8101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8102$as_echo "no" >&6; } 8103fi 8104 8105 8106fi 8107if test -z "$ac_cv_prog_LIPO"; then 8108 ac_ct_LIPO=$LIPO 8109 # Extract the first word of "lipo", so it can be a program name with args. 8110set dummy lipo; ac_word=$2 8111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8112$as_echo_n "checking for $ac_word... " >&6; } 8113if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 8114 $as_echo_n "(cached) " >&6 8115else 8116 if test -n "$ac_ct_LIPO"; then 8117 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 8118else 8119as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8120for as_dir in $PATH 8121do 8122 IFS=$as_save_IFS 8123 test -z "$as_dir" && as_dir=. 8124 for ac_exec_ext in '' $ac_executable_extensions; do 8125 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8126 ac_cv_prog_ac_ct_LIPO="lipo" 8127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8128 break 2 8129 fi 8130done 8131 done 8132IFS=$as_save_IFS 8133 8134fi 8135fi 8136ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 8137if test -n "$ac_ct_LIPO"; then 8138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 8139$as_echo "$ac_ct_LIPO" >&6; } 8140else 8141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8142$as_echo "no" >&6; } 8143fi 8144 8145 if test "x$ac_ct_LIPO" = x; then 8146 LIPO=":" 8147 else 8148 case $cross_compiling:$ac_tool_warned in 8149yes:) 8150{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8151$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8152ac_tool_warned=yes ;; 8153esac 8154 LIPO=$ac_ct_LIPO 8155 fi 8156else 8157 LIPO="$ac_cv_prog_LIPO" 8158fi 8159 8160 if test -n "$ac_tool_prefix"; then 8161 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 8162set dummy ${ac_tool_prefix}otool; ac_word=$2 8163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8164$as_echo_n "checking for $ac_word... " >&6; } 8165if ${ac_cv_prog_OTOOL+:} false; then : 8166 $as_echo_n "(cached) " >&6 8167else 8168 if test -n "$OTOOL"; then 8169 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 8170else 8171as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8172for as_dir in $PATH 8173do 8174 IFS=$as_save_IFS 8175 test -z "$as_dir" && as_dir=. 8176 for ac_exec_ext in '' $ac_executable_extensions; do 8177 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8178 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 8179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8180 break 2 8181 fi 8182done 8183 done 8184IFS=$as_save_IFS 8185 8186fi 8187fi 8188OTOOL=$ac_cv_prog_OTOOL 8189if test -n "$OTOOL"; then 8190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 8191$as_echo "$OTOOL" >&6; } 8192else 8193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8194$as_echo "no" >&6; } 8195fi 8196 8197 8198fi 8199if test -z "$ac_cv_prog_OTOOL"; then 8200 ac_ct_OTOOL=$OTOOL 8201 # Extract the first word of "otool", so it can be a program name with args. 8202set dummy otool; ac_word=$2 8203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8204$as_echo_n "checking for $ac_word... " >&6; } 8205if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 8206 $as_echo_n "(cached) " >&6 8207else 8208 if test -n "$ac_ct_OTOOL"; then 8209 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 8210else 8211as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8212for as_dir in $PATH 8213do 8214 IFS=$as_save_IFS 8215 test -z "$as_dir" && as_dir=. 8216 for ac_exec_ext in '' $ac_executable_extensions; do 8217 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8218 ac_cv_prog_ac_ct_OTOOL="otool" 8219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8220 break 2 8221 fi 8222done 8223 done 8224IFS=$as_save_IFS 8225 8226fi 8227fi 8228ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 8229if test -n "$ac_ct_OTOOL"; then 8230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 8231$as_echo "$ac_ct_OTOOL" >&6; } 8232else 8233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8234$as_echo "no" >&6; } 8235fi 8236 8237 if test "x$ac_ct_OTOOL" = x; then 8238 OTOOL=":" 8239 else 8240 case $cross_compiling:$ac_tool_warned in 8241yes:) 8242{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8243$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8244ac_tool_warned=yes ;; 8245esac 8246 OTOOL=$ac_ct_OTOOL 8247 fi 8248else 8249 OTOOL="$ac_cv_prog_OTOOL" 8250fi 8251 8252 if test -n "$ac_tool_prefix"; then 8253 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 8254set dummy ${ac_tool_prefix}otool64; ac_word=$2 8255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8256$as_echo_n "checking for $ac_word... " >&6; } 8257if ${ac_cv_prog_OTOOL64+:} false; then : 8258 $as_echo_n "(cached) " >&6 8259else 8260 if test -n "$OTOOL64"; then 8261 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 8262else 8263as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8264for as_dir in $PATH 8265do 8266 IFS=$as_save_IFS 8267 test -z "$as_dir" && as_dir=. 8268 for ac_exec_ext in '' $ac_executable_extensions; do 8269 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8270 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 8271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8272 break 2 8273 fi 8274done 8275 done 8276IFS=$as_save_IFS 8277 8278fi 8279fi 8280OTOOL64=$ac_cv_prog_OTOOL64 8281if test -n "$OTOOL64"; then 8282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 8283$as_echo "$OTOOL64" >&6; } 8284else 8285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8286$as_echo "no" >&6; } 8287fi 8288 8289 8290fi 8291if test -z "$ac_cv_prog_OTOOL64"; then 8292 ac_ct_OTOOL64=$OTOOL64 8293 # Extract the first word of "otool64", so it can be a program name with args. 8294set dummy otool64; ac_word=$2 8295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8296$as_echo_n "checking for $ac_word... " >&6; } 8297if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 8298 $as_echo_n "(cached) " >&6 8299else 8300 if test -n "$ac_ct_OTOOL64"; then 8301 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 8302else 8303as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8304for as_dir in $PATH 8305do 8306 IFS=$as_save_IFS 8307 test -z "$as_dir" && as_dir=. 8308 for ac_exec_ext in '' $ac_executable_extensions; do 8309 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8310 ac_cv_prog_ac_ct_OTOOL64="otool64" 8311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8312 break 2 8313 fi 8314done 8315 done 8316IFS=$as_save_IFS 8317 8318fi 8319fi 8320ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 8321if test -n "$ac_ct_OTOOL64"; then 8322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 8323$as_echo "$ac_ct_OTOOL64" >&6; } 8324else 8325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8326$as_echo "no" >&6; } 8327fi 8328 8329 if test "x$ac_ct_OTOOL64" = x; then 8330 OTOOL64=":" 8331 else 8332 case $cross_compiling:$ac_tool_warned in 8333yes:) 8334{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8335$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8336ac_tool_warned=yes ;; 8337esac 8338 OTOOL64=$ac_ct_OTOOL64 8339 fi 8340else 8341 OTOOL64="$ac_cv_prog_OTOOL64" 8342fi 8343 8344 8345 8346 8347 8348 8349 8350 8351 8352 8353 8354 8355 8356 8357 8358 8359 8360 8361 8362 8363 8364 8365 8366 8367 8368 8369 8370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 8371$as_echo_n "checking for -single_module linker flag... " >&6; } 8372if ${lt_cv_apple_cc_single_mod+:} false; then : 8373 $as_echo_n "(cached) " >&6 8374else 8375 lt_cv_apple_cc_single_mod=no 8376 if test -z "${LT_MULTI_MODULE}"; then 8377 # By default we will add the -single_module flag. You can override 8378 # by either setting the environment variable LT_MULTI_MODULE 8379 # non-empty at configure time, or by adding -multi_module to the 8380 # link flags. 8381 rm -rf libconftest.dylib* 8382 echo "int foo(void){return 1;}" > conftest.c 8383 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8384-dynamiclib -Wl,-single_module conftest.c" >&5 8385 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8386 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 8387 _lt_result=$? 8388 # If there is a non-empty error log, and "single_module" 8389 # appears in it, assume the flag caused a linker warning 8390 if test -s conftest.err && $GREP single_module conftest.err; then 8391 cat conftest.err >&5 8392 # Otherwise, if the output was created with a 0 exit code from 8393 # the compiler, it worked. 8394 elif test -f libconftest.dylib && test $_lt_result -eq 0; then 8395 lt_cv_apple_cc_single_mod=yes 8396 else 8397 cat conftest.err >&5 8398 fi 8399 rm -rf libconftest.dylib* 8400 rm -f conftest.* 8401 fi 8402fi 8403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 8404$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 8405 8406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 8407$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 8408if ${lt_cv_ld_exported_symbols_list+:} false; then : 8409 $as_echo_n "(cached) " >&6 8410else 8411 lt_cv_ld_exported_symbols_list=no 8412 save_LDFLAGS=$LDFLAGS 8413 echo "_main" > conftest.sym 8414 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 8415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8416/* end confdefs.h. */ 8417 8418int 8419main () 8420{ 8421 8422 ; 8423 return 0; 8424} 8425_ACEOF 8426if ac_fn_c_try_link "$LINENO"; then : 8427 lt_cv_ld_exported_symbols_list=yes 8428else 8429 lt_cv_ld_exported_symbols_list=no 8430fi 8431rm -f core conftest.err conftest.$ac_objext \ 8432 conftest$ac_exeext conftest.$ac_ext 8433 LDFLAGS="$save_LDFLAGS" 8434 8435fi 8436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 8437$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 8438 8439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 8440$as_echo_n "checking for -force_load linker flag... " >&6; } 8441if ${lt_cv_ld_force_load+:} false; then : 8442 $as_echo_n "(cached) " >&6 8443else 8444 lt_cv_ld_force_load=no 8445 cat > conftest.c << _LT_EOF 8446int forced_loaded() { return 2;} 8447_LT_EOF 8448 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 8449 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 8450 echo "$AR cru libconftest.a conftest.o" >&5 8451 $AR cru libconftest.a conftest.o 2>&5 8452 echo "$RANLIB libconftest.a" >&5 8453 $RANLIB libconftest.a 2>&5 8454 cat > conftest.c << _LT_EOF 8455int main() { return 0;} 8456_LT_EOF 8457 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 8458 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 8459 _lt_result=$? 8460 if test -s conftest.err && $GREP force_load conftest.err; then 8461 cat conftest.err >&5 8462 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then 8463 lt_cv_ld_force_load=yes 8464 else 8465 cat conftest.err >&5 8466 fi 8467 rm -f conftest.err libconftest.a conftest conftest.c 8468 rm -rf conftest.dSYM 8469 8470fi 8471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 8472$as_echo "$lt_cv_ld_force_load" >&6; } 8473 case $host_os in 8474 rhapsody* | darwin1.[012]) 8475 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 8476 darwin1.*) 8477 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 8478 darwin*) # darwin 5.x on 8479 # if running on 10.5 or later, the deployment target defaults 8480 # to the OS version, if on x86, and 10.4, the deployment 8481 # target defaults to 10.4. Don't you love it? 8482 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 8483 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 8484 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 8485 10.[012]*) 8486 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 8487 10.*) 8488 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 8489 esac 8490 ;; 8491 esac 8492 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 8493 _lt_dar_single_mod='$single_module' 8494 fi 8495 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 8496 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 8497 else 8498 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 8499 fi 8500 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 8501 _lt_dsymutil='~$DSYMUTIL $lib || :' 8502 else 8503 _lt_dsymutil= 8504 fi 8505 ;; 8506 esac 8507 8508for ac_header in dlfcn.h 8509do : 8510 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 8511" 8512if test "x$ac_cv_header_dlfcn_h" = xyes; then : 8513 cat >>confdefs.h <<_ACEOF 8514#define HAVE_DLFCN_H 1 8515_ACEOF 8516 8517fi 8518 8519done 8520 8521 8522 8523 8524 8525# Set options 8526# Check whether --enable-static was given. 8527if test "${enable_static+set}" = set; then : 8528 enableval=$enable_static; p=${PACKAGE-default} 8529 case $enableval in 8530 yes) enable_static=yes ;; 8531 no) enable_static=no ;; 8532 *) 8533 enable_static=no 8534 # Look at the argument we got. We use all the common list separators. 8535 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8536 for pkg in $enableval; do 8537 IFS="$lt_save_ifs" 8538 if test "X$pkg" = "X$p"; then 8539 enable_static=yes 8540 fi 8541 done 8542 IFS="$lt_save_ifs" 8543 ;; 8544 esac 8545else 8546 enable_static=no 8547fi 8548 8549 8550 8551 8552 8553 8554 8555 8556# Check whether --with-pic was given. 8557if test "${with_pic+set}" = set; then : 8558 withval=$with_pic; lt_p=${PACKAGE-default} 8559 case $withval in 8560 yes|no) pic_mode=$withval ;; 8561 *) 8562 pic_mode=default 8563 # Look at the argument we got. We use all the common list separators. 8564 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8565 for lt_pkg in $withval; do 8566 IFS="$lt_save_ifs" 8567 if test "X$lt_pkg" = "X$lt_p"; then 8568 pic_mode=yes 8569 fi 8570 done 8571 IFS="$lt_save_ifs" 8572 ;; 8573 esac 8574else 8575 pic_mode=default 8576fi 8577 8578 8579test -z "$pic_mode" && pic_mode=yes 8580 8581 8582 8583 8584 8585 8586 8587 8588 enable_dlopen=no 8589 8590 8591 enable_win32_dll=no 8592 8593 8594 # Check whether --enable-shared was given. 8595if test "${enable_shared+set}" = set; then : 8596 enableval=$enable_shared; p=${PACKAGE-default} 8597 case $enableval in 8598 yes) enable_shared=yes ;; 8599 no) enable_shared=no ;; 8600 *) 8601 enable_shared=no 8602 # Look at the argument we got. We use all the common list separators. 8603 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8604 for pkg in $enableval; do 8605 IFS="$lt_save_ifs" 8606 if test "X$pkg" = "X$p"; then 8607 enable_shared=yes 8608 fi 8609 done 8610 IFS="$lt_save_ifs" 8611 ;; 8612 esac 8613else 8614 enable_shared=yes 8615fi 8616 8617 8618 8619 8620 8621 8622 8623 8624 8625 8626 8627 # Check whether --enable-fast-install was given. 8628if test "${enable_fast_install+set}" = set; then : 8629 enableval=$enable_fast_install; p=${PACKAGE-default} 8630 case $enableval in 8631 yes) enable_fast_install=yes ;; 8632 no) enable_fast_install=no ;; 8633 *) 8634 enable_fast_install=no 8635 # Look at the argument we got. We use all the common list separators. 8636 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8637 for pkg in $enableval; do 8638 IFS="$lt_save_ifs" 8639 if test "X$pkg" = "X$p"; then 8640 enable_fast_install=yes 8641 fi 8642 done 8643 IFS="$lt_save_ifs" 8644 ;; 8645 esac 8646else 8647 enable_fast_install=yes 8648fi 8649 8650 8651 8652 8653 8654 8655 8656 8657 8658 8659 8660# This can be used to rebuild libtool when needed 8661LIBTOOL_DEPS="$ltmain" 8662 8663# Always use our own libtool. 8664LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8665 8666 8667 8668 8669 8670 8671 8672 8673 8674 8675 8676 8677 8678 8679 8680 8681 8682 8683 8684 8685 8686 8687 8688 8689 8690 8691 8692 8693 8694 8695test -z "$LN_S" && LN_S="ln -s" 8696 8697 8698 8699 8700 8701 8702 8703 8704 8705 8706 8707 8708 8709 8710if test -n "${ZSH_VERSION+set}" ; then 8711 setopt NO_GLOB_SUBST 8712fi 8713 8714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8715$as_echo_n "checking for objdir... " >&6; } 8716if ${lt_cv_objdir+:} false; then : 8717 $as_echo_n "(cached) " >&6 8718else 8719 rm -f .libs 2>/dev/null 8720mkdir .libs 2>/dev/null 8721if test -d .libs; then 8722 lt_cv_objdir=.libs 8723else 8724 # MS-DOS does not allow filenames that begin with a dot. 8725 lt_cv_objdir=_libs 8726fi 8727rmdir .libs 2>/dev/null 8728fi 8729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8730$as_echo "$lt_cv_objdir" >&6; } 8731objdir=$lt_cv_objdir 8732 8733 8734 8735 8736 8737cat >>confdefs.h <<_ACEOF 8738#define LT_OBJDIR "$lt_cv_objdir/" 8739_ACEOF 8740 8741 8742 8743 8744case $host_os in 8745aix3*) 8746 # AIX sometimes has problems with the GCC collect2 program. For some 8747 # reason, if we set the COLLECT_NAMES environment variable, the problems 8748 # vanish in a puff of smoke. 8749 if test "X${COLLECT_NAMES+set}" != Xset; then 8750 COLLECT_NAMES= 8751 export COLLECT_NAMES 8752 fi 8753 ;; 8754esac 8755 8756# Global variables: 8757ofile=libtool 8758can_build_shared=yes 8759 8760# All known linkers require a `.a' archive for static linking (except MSVC, 8761# which needs '.lib'). 8762libext=a 8763 8764with_gnu_ld="$lt_cv_prog_gnu_ld" 8765 8766old_CC="$CC" 8767old_CFLAGS="$CFLAGS" 8768 8769# Set sane defaults for various variables 8770test -z "$CC" && CC=cc 8771test -z "$LTCC" && LTCC=$CC 8772test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8773test -z "$LD" && LD=ld 8774test -z "$ac_objext" && ac_objext=o 8775 8776for cc_temp in $compiler""; do 8777 case $cc_temp in 8778 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 8779 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 8780 \-*) ;; 8781 *) break;; 8782 esac 8783done 8784cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 8785 8786 8787# Only perform the check for file, if the check method requires it 8788test -z "$MAGIC_CMD" && MAGIC_CMD=file 8789case $deplibs_check_method in 8790file_magic*) 8791 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8793$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8794if ${lt_cv_path_MAGIC_CMD+:} false; then : 8795 $as_echo_n "(cached) " >&6 8796else 8797 case $MAGIC_CMD in 8798[\\/*] | ?:[\\/]*) 8799 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8800 ;; 8801*) 8802 lt_save_MAGIC_CMD="$MAGIC_CMD" 8803 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8804 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8805 for ac_dir in $ac_dummy; do 8806 IFS="$lt_save_ifs" 8807 test -z "$ac_dir" && ac_dir=. 8808 if test -f $ac_dir/${ac_tool_prefix}file; then 8809 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 8810 if test -n "$file_magic_test_file"; then 8811 case $deplibs_check_method in 8812 "file_magic "*) 8813 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8814 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8815 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8816 $EGREP "$file_magic_regex" > /dev/null; then 8817 : 8818 else 8819 cat <<_LT_EOF 1>&2 8820 8821*** Warning: the command libtool uses to detect shared libraries, 8822*** $file_magic_cmd, produces output that libtool cannot recognize. 8823*** The result is that libtool may fail to recognize shared libraries 8824*** as such. This will affect the creation of libtool libraries that 8825*** depend on shared libraries, but programs linked with such libtool 8826*** libraries will work regardless of this problem. Nevertheless, you 8827*** may want to report the problem to your system manager and/or to 8828*** bug-libtool@gnu.org 8829 8830_LT_EOF 8831 fi ;; 8832 esac 8833 fi 8834 break 8835 fi 8836 done 8837 IFS="$lt_save_ifs" 8838 MAGIC_CMD="$lt_save_MAGIC_CMD" 8839 ;; 8840esac 8841fi 8842 8843MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8844if test -n "$MAGIC_CMD"; then 8845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8846$as_echo "$MAGIC_CMD" >&6; } 8847else 8848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8849$as_echo "no" >&6; } 8850fi 8851 8852 8853 8854 8855 8856if test -z "$lt_cv_path_MAGIC_CMD"; then 8857 if test -n "$ac_tool_prefix"; then 8858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8859$as_echo_n "checking for file... " >&6; } 8860if ${lt_cv_path_MAGIC_CMD+:} false; then : 8861 $as_echo_n "(cached) " >&6 8862else 8863 case $MAGIC_CMD in 8864[\\/*] | ?:[\\/]*) 8865 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8866 ;; 8867*) 8868 lt_save_MAGIC_CMD="$MAGIC_CMD" 8869 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8870 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8871 for ac_dir in $ac_dummy; do 8872 IFS="$lt_save_ifs" 8873 test -z "$ac_dir" && ac_dir=. 8874 if test -f $ac_dir/file; then 8875 lt_cv_path_MAGIC_CMD="$ac_dir/file" 8876 if test -n "$file_magic_test_file"; then 8877 case $deplibs_check_method in 8878 "file_magic "*) 8879 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8880 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8881 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8882 $EGREP "$file_magic_regex" > /dev/null; then 8883 : 8884 else 8885 cat <<_LT_EOF 1>&2 8886 8887*** Warning: the command libtool uses to detect shared libraries, 8888*** $file_magic_cmd, produces output that libtool cannot recognize. 8889*** The result is that libtool may fail to recognize shared libraries 8890*** as such. This will affect the creation of libtool libraries that 8891*** depend on shared libraries, but programs linked with such libtool 8892*** libraries will work regardless of this problem. Nevertheless, you 8893*** may want to report the problem to your system manager and/or to 8894*** bug-libtool@gnu.org 8895 8896_LT_EOF 8897 fi ;; 8898 esac 8899 fi 8900 break 8901 fi 8902 done 8903 IFS="$lt_save_ifs" 8904 MAGIC_CMD="$lt_save_MAGIC_CMD" 8905 ;; 8906esac 8907fi 8908 8909MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8910if test -n "$MAGIC_CMD"; then 8911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8912$as_echo "$MAGIC_CMD" >&6; } 8913else 8914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8915$as_echo "no" >&6; } 8916fi 8917 8918 8919 else 8920 MAGIC_CMD=: 8921 fi 8922fi 8923 8924 fi 8925 ;; 8926esac 8927 8928# Use C for the default configuration in the libtool script 8929 8930lt_save_CC="$CC" 8931ac_ext=c 8932ac_cpp='$CPP $CPPFLAGS' 8933ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8934ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8935ac_compiler_gnu=$ac_cv_c_compiler_gnu 8936 8937 8938# Source file extension for C test sources. 8939ac_ext=c 8940 8941# Object file extension for compiled C test sources. 8942objext=o 8943objext=$objext 8944 8945# Code to be used in simple compile tests 8946lt_simple_compile_test_code="int some_variable = 0;" 8947 8948# Code to be used in simple link tests 8949lt_simple_link_test_code='int main(){return(0);}' 8950 8951 8952 8953 8954 8955 8956 8957# If no C compiler was specified, use CC. 8958LTCC=${LTCC-"$CC"} 8959 8960# If no C compiler flags were specified, use CFLAGS. 8961LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8962 8963# Allow CC to be a program name with arguments. 8964compiler=$CC 8965 8966# Save the default compiler, since it gets overwritten when the other 8967# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8968compiler_DEFAULT=$CC 8969 8970# save warnings/boilerplate of simple test code 8971ac_outfile=conftest.$ac_objext 8972echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8973eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8974_lt_compiler_boilerplate=`cat conftest.err` 8975$RM conftest* 8976 8977ac_outfile=conftest.$ac_objext 8978echo "$lt_simple_link_test_code" >conftest.$ac_ext 8979eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8980_lt_linker_boilerplate=`cat conftest.err` 8981$RM -r conftest* 8982 8983 8984## CAVEAT EMPTOR: 8985## There is no encapsulation within the following macros, do not change 8986## the running order or otherwise move them around unless you know exactly 8987## what you are doing... 8988if test -n "$compiler"; then 8989 8990lt_prog_compiler_no_builtin_flag= 8991 8992if test "$GCC" = yes; then 8993 case $cc_basename in 8994 nvcc*) 8995 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8996 *) 8997 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8998 esac 8999 9000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 9001$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 9002if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 9003 $as_echo_n "(cached) " >&6 9004else 9005 lt_cv_prog_compiler_rtti_exceptions=no 9006 ac_outfile=conftest.$ac_objext 9007 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9008 lt_compiler_flag="-fno-rtti -fno-exceptions" 9009 # Insert the option either (1) after the last *FLAGS variable, or 9010 # (2) before a word containing "conftest.", or (3) at the end. 9011 # Note that $ac_compile itself does not contain backslashes and begins 9012 # with a dollar sign (not a hyphen), so the echo should work correctly. 9013 # The option is referenced via a variable to avoid confusing sed. 9014 lt_compile=`echo "$ac_compile" | $SED \ 9015 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9016 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9017 -e 's:$: $lt_compiler_flag:'` 9018 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9019 (eval "$lt_compile" 2>conftest.err) 9020 ac_status=$? 9021 cat conftest.err >&5 9022 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9023 if (exit $ac_status) && test -s "$ac_outfile"; then 9024 # The compiler can only warn and ignore the option if not recognized 9025 # So say no if there are warnings other than the usual output. 9026 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9027 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9028 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9029 lt_cv_prog_compiler_rtti_exceptions=yes 9030 fi 9031 fi 9032 $RM conftest* 9033 9034fi 9035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 9036$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 9037 9038if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 9039 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 9040else 9041 : 9042fi 9043 9044fi 9045 9046 9047 9048 9049 9050 9051 lt_prog_compiler_wl= 9052lt_prog_compiler_pic= 9053lt_prog_compiler_static= 9054 9055 9056 if test "$GCC" = yes; then 9057 lt_prog_compiler_wl='-Wl,' 9058 lt_prog_compiler_static='-static' 9059 9060 case $host_os in 9061 aix*) 9062 # All AIX code is PIC. 9063 if test "$host_cpu" = ia64; then 9064 # AIX 5 now supports IA64 processor 9065 lt_prog_compiler_static='-Bstatic' 9066 fi 9067 ;; 9068 9069 amigaos*) 9070 case $host_cpu in 9071 powerpc) 9072 # see comment about AmigaOS4 .so support 9073 lt_prog_compiler_pic='-fPIC' 9074 ;; 9075 m68k) 9076 # FIXME: we need at least 68020 code to build shared libraries, but 9077 # adding the `-m68020' flag to GCC prevents building anything better, 9078 # like `-m68040'. 9079 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 9080 ;; 9081 esac 9082 ;; 9083 9084 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 9085 # PIC is the default for these OSes. 9086 ;; 9087 9088 mingw* | cygwin* | pw32* | os2* | cegcc*) 9089 # This hack is so that the source file can tell whether it is being 9090 # built for inclusion in a dll (and should export symbols for example). 9091 # Although the cygwin gcc ignores -fPIC, still need this for old-style 9092 # (--disable-auto-import) libraries 9093 lt_prog_compiler_pic='-DDLL_EXPORT' 9094 ;; 9095 9096 darwin* | rhapsody*) 9097 # PIC is the default on this platform 9098 # Common symbols not allowed in MH_DYLIB files 9099 lt_prog_compiler_pic='-fno-common' 9100 ;; 9101 9102 haiku*) 9103 # PIC is the default for Haiku. 9104 # The "-static" flag exists, but is broken. 9105 lt_prog_compiler_static= 9106 ;; 9107 9108 hpux*) 9109 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 9110 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 9111 # sets the default TLS model and affects inlining. 9112 case $host_cpu in 9113 hppa*64*) 9114 # +Z the default 9115 ;; 9116 *) 9117 lt_prog_compiler_pic='-fPIC' 9118 ;; 9119 esac 9120 ;; 9121 9122 interix[3-9]*) 9123 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 9124 # Instead, we relocate shared libraries at runtime. 9125 ;; 9126 9127 msdosdjgpp*) 9128 # Just because we use GCC doesn't mean we suddenly get shared libraries 9129 # on systems that don't support them. 9130 lt_prog_compiler_can_build_shared=no 9131 enable_shared=no 9132 ;; 9133 9134 *nto* | *qnx*) 9135 # QNX uses GNU C++, but need to define -shared option too, otherwise 9136 # it will coredump. 9137 lt_prog_compiler_pic='-fPIC -shared' 9138 ;; 9139 9140 sysv4*MP*) 9141 if test -d /usr/nec; then 9142 lt_prog_compiler_pic=-Kconform_pic 9143 fi 9144 ;; 9145 9146 *) 9147 lt_prog_compiler_pic='-fPIC' 9148 ;; 9149 esac 9150 9151 case $cc_basename in 9152 nvcc*) # Cuda Compiler Driver 2.2 9153 lt_prog_compiler_wl='-Xlinker ' 9154 if test -n "$lt_prog_compiler_pic"; then 9155 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 9156 fi 9157 ;; 9158 esac 9159 else 9160 # PORTME Check for flag to pass linker flags through the system compiler. 9161 case $host_os in 9162 aix*) 9163 lt_prog_compiler_wl='-Wl,' 9164 if test "$host_cpu" = ia64; then 9165 # AIX 5 now supports IA64 processor 9166 lt_prog_compiler_static='-Bstatic' 9167 else 9168 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 9169 fi 9170 ;; 9171 9172 mingw* | cygwin* | pw32* | os2* | cegcc*) 9173 # This hack is so that the source file can tell whether it is being 9174 # built for inclusion in a dll (and should export symbols for example). 9175 lt_prog_compiler_pic='-DDLL_EXPORT' 9176 ;; 9177 9178 hpux9* | hpux10* | hpux11*) 9179 lt_prog_compiler_wl='-Wl,' 9180 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 9181 # not for PA HP-UX. 9182 case $host_cpu in 9183 hppa*64*|ia64*) 9184 # +Z the default 9185 ;; 9186 *) 9187 lt_prog_compiler_pic='+Z' 9188 ;; 9189 esac 9190 # Is there a better lt_prog_compiler_static that works with the bundled CC? 9191 lt_prog_compiler_static='${wl}-a ${wl}archive' 9192 ;; 9193 9194 irix5* | irix6* | nonstopux*) 9195 lt_prog_compiler_wl='-Wl,' 9196 # PIC (with -KPIC) is the default. 9197 lt_prog_compiler_static='-non_shared' 9198 ;; 9199 9200 linux* | k*bsd*-gnu | kopensolaris*-gnu) 9201 case $cc_basename in 9202 # old Intel for x86_64 which still supported -KPIC. 9203 ecc*) 9204 lt_prog_compiler_wl='-Wl,' 9205 lt_prog_compiler_pic='-KPIC' 9206 lt_prog_compiler_static='-static' 9207 ;; 9208 # icc used to be incompatible with GCC. 9209 # ICC 10 doesn't accept -KPIC any more. 9210 icc* | ifort*) 9211 lt_prog_compiler_wl='-Wl,' 9212 lt_prog_compiler_pic='-fPIC' 9213 lt_prog_compiler_static='-static' 9214 ;; 9215 # Lahey Fortran 8.1. 9216 lf95*) 9217 lt_prog_compiler_wl='-Wl,' 9218 lt_prog_compiler_pic='--shared' 9219 lt_prog_compiler_static='--static' 9220 ;; 9221 nagfor*) 9222 # NAG Fortran compiler 9223 lt_prog_compiler_wl='-Wl,-Wl,,' 9224 lt_prog_compiler_pic='-PIC' 9225 lt_prog_compiler_static='-Bstatic' 9226 ;; 9227 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 9228 # Portland Group compilers (*not* the Pentium gcc compiler, 9229 # which looks to be a dead project) 9230 lt_prog_compiler_wl='-Wl,' 9231 lt_prog_compiler_pic='-fpic' 9232 lt_prog_compiler_static='-Bstatic' 9233 ;; 9234 ccc*) 9235 lt_prog_compiler_wl='-Wl,' 9236 # All Alpha code is PIC. 9237 lt_prog_compiler_static='-non_shared' 9238 ;; 9239 xl* | bgxl* | bgf* | mpixl*) 9240 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 9241 lt_prog_compiler_wl='-Wl,' 9242 lt_prog_compiler_pic='-qpic' 9243 lt_prog_compiler_static='-qstaticlink' 9244 ;; 9245 *) 9246 case `$CC -V 2>&1 | sed 5q` in 9247 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 9248 # Sun Fortran 8.3 passes all unrecognized flags to the linker 9249 lt_prog_compiler_pic='-KPIC' 9250 lt_prog_compiler_static='-Bstatic' 9251 lt_prog_compiler_wl='' 9252 ;; 9253 *Sun\ F* | *Sun*Fortran*) 9254 lt_prog_compiler_pic='-KPIC' 9255 lt_prog_compiler_static='-Bstatic' 9256 lt_prog_compiler_wl='-Qoption ld ' 9257 ;; 9258 *Sun\ C*) 9259 # Sun C 5.9 9260 lt_prog_compiler_pic='-KPIC' 9261 lt_prog_compiler_static='-Bstatic' 9262 lt_prog_compiler_wl='-Wl,' 9263 ;; 9264 *Intel*\ [CF]*Compiler*) 9265 lt_prog_compiler_wl='-Wl,' 9266 lt_prog_compiler_pic='-fPIC' 9267 lt_prog_compiler_static='-static' 9268 ;; 9269 *Portland\ Group*) 9270 lt_prog_compiler_wl='-Wl,' 9271 lt_prog_compiler_pic='-fpic' 9272 lt_prog_compiler_static='-Bstatic' 9273 ;; 9274 esac 9275 ;; 9276 esac 9277 ;; 9278 9279 newsos6) 9280 lt_prog_compiler_pic='-KPIC' 9281 lt_prog_compiler_static='-Bstatic' 9282 ;; 9283 9284 *nto* | *qnx*) 9285 # QNX uses GNU C++, but need to define -shared option too, otherwise 9286 # it will coredump. 9287 lt_prog_compiler_pic='-fPIC -shared' 9288 ;; 9289 9290 osf3* | osf4* | osf5*) 9291 lt_prog_compiler_wl='-Wl,' 9292 # All OSF/1 code is PIC. 9293 lt_prog_compiler_static='-non_shared' 9294 ;; 9295 9296 rdos*) 9297 lt_prog_compiler_static='-non_shared' 9298 ;; 9299 9300 solaris*) 9301 lt_prog_compiler_pic='-KPIC' 9302 lt_prog_compiler_static='-Bstatic' 9303 case $cc_basename in 9304 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 9305 lt_prog_compiler_wl='-Qoption ld ';; 9306 *) 9307 lt_prog_compiler_wl='-Wl,';; 9308 esac 9309 ;; 9310 9311 sunos4*) 9312 lt_prog_compiler_wl='-Qoption ld ' 9313 lt_prog_compiler_pic='-PIC' 9314 lt_prog_compiler_static='-Bstatic' 9315 ;; 9316 9317 sysv4 | sysv4.2uw2* | sysv4.3*) 9318 lt_prog_compiler_wl='-Wl,' 9319 lt_prog_compiler_pic='-KPIC' 9320 lt_prog_compiler_static='-Bstatic' 9321 ;; 9322 9323 sysv4*MP*) 9324 if test -d /usr/nec ;then 9325 lt_prog_compiler_pic='-Kconform_pic' 9326 lt_prog_compiler_static='-Bstatic' 9327 fi 9328 ;; 9329 9330 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 9331 lt_prog_compiler_wl='-Wl,' 9332 lt_prog_compiler_pic='-KPIC' 9333 lt_prog_compiler_static='-Bstatic' 9334 ;; 9335 9336 unicos*) 9337 lt_prog_compiler_wl='-Wl,' 9338 lt_prog_compiler_can_build_shared=no 9339 ;; 9340 9341 uts4*) 9342 lt_prog_compiler_pic='-pic' 9343 lt_prog_compiler_static='-Bstatic' 9344 ;; 9345 9346 *) 9347 lt_prog_compiler_can_build_shared=no 9348 ;; 9349 esac 9350 fi 9351 9352case $host_os in 9353 # For platforms which do not support PIC, -DPIC is meaningless: 9354 *djgpp*) 9355 lt_prog_compiler_pic= 9356 ;; 9357 *) 9358 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 9359 ;; 9360esac 9361 9362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 9363$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 9364if ${lt_cv_prog_compiler_pic+:} false; then : 9365 $as_echo_n "(cached) " >&6 9366else 9367 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 9368fi 9369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 9370$as_echo "$lt_cv_prog_compiler_pic" >&6; } 9371lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 9372 9373# 9374# Check to make sure the PIC flag actually works. 9375# 9376if test -n "$lt_prog_compiler_pic"; then 9377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 9378$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 9379if ${lt_cv_prog_compiler_pic_works+:} false; then : 9380 $as_echo_n "(cached) " >&6 9381else 9382 lt_cv_prog_compiler_pic_works=no 9383 ac_outfile=conftest.$ac_objext 9384 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9385 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 9386 # Insert the option either (1) after the last *FLAGS variable, or 9387 # (2) before a word containing "conftest.", or (3) at the end. 9388 # Note that $ac_compile itself does not contain backslashes and begins 9389 # with a dollar sign (not a hyphen), so the echo should work correctly. 9390 # The option is referenced via a variable to avoid confusing sed. 9391 lt_compile=`echo "$ac_compile" | $SED \ 9392 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9393 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9394 -e 's:$: $lt_compiler_flag:'` 9395 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9396 (eval "$lt_compile" 2>conftest.err) 9397 ac_status=$? 9398 cat conftest.err >&5 9399 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9400 if (exit $ac_status) && test -s "$ac_outfile"; then 9401 # The compiler can only warn and ignore the option if not recognized 9402 # So say no if there are warnings other than the usual output. 9403 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9404 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9405 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9406 lt_cv_prog_compiler_pic_works=yes 9407 fi 9408 fi 9409 $RM conftest* 9410 9411fi 9412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 9413$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 9414 9415if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 9416 case $lt_prog_compiler_pic in 9417 "" | " "*) ;; 9418 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 9419 esac 9420else 9421 lt_prog_compiler_pic= 9422 lt_prog_compiler_can_build_shared=no 9423fi 9424 9425fi 9426 9427 9428 9429 9430 9431 9432 9433 9434 9435 9436 9437# 9438# Check to make sure the static flag actually works. 9439# 9440wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 9441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 9442$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 9443if ${lt_cv_prog_compiler_static_works+:} false; then : 9444 $as_echo_n "(cached) " >&6 9445else 9446 lt_cv_prog_compiler_static_works=no 9447 save_LDFLAGS="$LDFLAGS" 9448 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 9449 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9450 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9451 # The linker can only warn and ignore the option if not recognized 9452 # So say no if there are warnings 9453 if test -s conftest.err; then 9454 # Append any errors to the config.log. 9455 cat conftest.err 1>&5 9456 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9457 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9458 if diff conftest.exp conftest.er2 >/dev/null; then 9459 lt_cv_prog_compiler_static_works=yes 9460 fi 9461 else 9462 lt_cv_prog_compiler_static_works=yes 9463 fi 9464 fi 9465 $RM -r conftest* 9466 LDFLAGS="$save_LDFLAGS" 9467 9468fi 9469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 9470$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 9471 9472if test x"$lt_cv_prog_compiler_static_works" = xyes; then 9473 : 9474else 9475 lt_prog_compiler_static= 9476fi 9477 9478 9479 9480 9481 9482 9483 9484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9485$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9486if ${lt_cv_prog_compiler_c_o+:} false; then : 9487 $as_echo_n "(cached) " >&6 9488else 9489 lt_cv_prog_compiler_c_o=no 9490 $RM -r conftest 2>/dev/null 9491 mkdir conftest 9492 cd conftest 9493 mkdir out 9494 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9495 9496 lt_compiler_flag="-o out/conftest2.$ac_objext" 9497 # Insert the option either (1) after the last *FLAGS variable, or 9498 # (2) before a word containing "conftest.", or (3) at the end. 9499 # Note that $ac_compile itself does not contain backslashes and begins 9500 # with a dollar sign (not a hyphen), so the echo should work correctly. 9501 lt_compile=`echo "$ac_compile" | $SED \ 9502 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9503 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9504 -e 's:$: $lt_compiler_flag:'` 9505 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9506 (eval "$lt_compile" 2>out/conftest.err) 9507 ac_status=$? 9508 cat out/conftest.err >&5 9509 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9510 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9511 then 9512 # The compiler can only warn and ignore the option if not recognized 9513 # So say no if there are warnings 9514 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9515 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9516 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9517 lt_cv_prog_compiler_c_o=yes 9518 fi 9519 fi 9520 chmod u+w . 2>&5 9521 $RM conftest* 9522 # SGI C++ compiler will create directory out/ii_files/ for 9523 # template instantiation 9524 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9525 $RM out/* && rmdir out 9526 cd .. 9527 $RM -r conftest 9528 $RM conftest* 9529 9530fi 9531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9532$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9533 9534 9535 9536 9537 9538 9539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9540$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9541if ${lt_cv_prog_compiler_c_o+:} false; then : 9542 $as_echo_n "(cached) " >&6 9543else 9544 lt_cv_prog_compiler_c_o=no 9545 $RM -r conftest 2>/dev/null 9546 mkdir conftest 9547 cd conftest 9548 mkdir out 9549 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9550 9551 lt_compiler_flag="-o out/conftest2.$ac_objext" 9552 # Insert the option either (1) after the last *FLAGS variable, or 9553 # (2) before a word containing "conftest.", or (3) at the end. 9554 # Note that $ac_compile itself does not contain backslashes and begins 9555 # with a dollar sign (not a hyphen), so the echo should work correctly. 9556 lt_compile=`echo "$ac_compile" | $SED \ 9557 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9558 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9559 -e 's:$: $lt_compiler_flag:'` 9560 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9561 (eval "$lt_compile" 2>out/conftest.err) 9562 ac_status=$? 9563 cat out/conftest.err >&5 9564 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9565 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9566 then 9567 # The compiler can only warn and ignore the option if not recognized 9568 # So say no if there are warnings 9569 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9570 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9571 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9572 lt_cv_prog_compiler_c_o=yes 9573 fi 9574 fi 9575 chmod u+w . 2>&5 9576 $RM conftest* 9577 # SGI C++ compiler will create directory out/ii_files/ for 9578 # template instantiation 9579 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9580 $RM out/* && rmdir out 9581 cd .. 9582 $RM -r conftest 9583 $RM conftest* 9584 9585fi 9586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9587$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9588 9589 9590 9591 9592hard_links="nottested" 9593if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 9594 # do not overwrite the value of need_locks provided by the user 9595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9596$as_echo_n "checking if we can lock with hard links... " >&6; } 9597 hard_links=yes 9598 $RM conftest* 9599 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9600 touch conftest.a 9601 ln conftest.a conftest.b 2>&5 || hard_links=no 9602 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9604$as_echo "$hard_links" >&6; } 9605 if test "$hard_links" = no; then 9606 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 9607$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 9608 need_locks=warn 9609 fi 9610else 9611 need_locks=no 9612fi 9613 9614 9615 9616 9617 9618 9619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9620$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9621 9622 runpath_var= 9623 allow_undefined_flag= 9624 always_export_symbols=no 9625 archive_cmds= 9626 archive_expsym_cmds= 9627 compiler_needs_object=no 9628 enable_shared_with_static_runtimes=no 9629 export_dynamic_flag_spec= 9630 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9631 hardcode_automatic=no 9632 hardcode_direct=no 9633 hardcode_direct_absolute=no 9634 hardcode_libdir_flag_spec= 9635 hardcode_libdir_separator= 9636 hardcode_minus_L=no 9637 hardcode_shlibpath_var=unsupported 9638 inherit_rpath=no 9639 link_all_deplibs=unknown 9640 module_cmds= 9641 module_expsym_cmds= 9642 old_archive_from_new_cmds= 9643 old_archive_from_expsyms_cmds= 9644 thread_safe_flag_spec= 9645 whole_archive_flag_spec= 9646 # include_expsyms should be a list of space-separated symbols to be *always* 9647 # included in the symbol list 9648 include_expsyms= 9649 # exclude_expsyms can be an extended regexp of symbols to exclude 9650 # it will be wrapped by ` (' and `)$', so one must not match beginning or 9651 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 9652 # as well as any symbol that contains `d'. 9653 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9654 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9655 # platforms (ab)use it in PIC code, but their linkers get confused if 9656 # the symbol is explicitly referenced. Since portable code cannot 9657 # rely on this symbol name, it's probably fine to never include it in 9658 # preloaded symbol tables. 9659 # Exclude shared library initialization/finalization symbols. 9660 extract_expsyms_cmds= 9661 9662 case $host_os in 9663 cygwin* | mingw* | pw32* | cegcc*) 9664 # FIXME: the MSVC++ port hasn't been tested in a loooong time 9665 # When not using gcc, we currently assume that we are using 9666 # Microsoft Visual C++. 9667 if test "$GCC" != yes; then 9668 with_gnu_ld=no 9669 fi 9670 ;; 9671 interix*) 9672 # we just hope/assume this is gcc and not c89 (= MSVC++) 9673 with_gnu_ld=yes 9674 ;; 9675 openbsd*) 9676 with_gnu_ld=no 9677 ;; 9678 esac 9679 9680 ld_shlibs=yes 9681 9682 # On some targets, GNU ld is compatible enough with the native linker 9683 # that we're better off using the native interface for both. 9684 lt_use_gnu_ld_interface=no 9685 if test "$with_gnu_ld" = yes; then 9686 case $host_os in 9687 aix*) 9688 # The AIX port of GNU ld has always aspired to compatibility 9689 # with the native linker. However, as the warning in the GNU ld 9690 # block says, versions before 2.19.5* couldn't really create working 9691 # shared libraries, regardless of the interface used. 9692 case `$LD -v 2>&1` in 9693 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9694 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9695 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9696 *) 9697 lt_use_gnu_ld_interface=yes 9698 ;; 9699 esac 9700 ;; 9701 *) 9702 lt_use_gnu_ld_interface=yes 9703 ;; 9704 esac 9705 fi 9706 9707 if test "$lt_use_gnu_ld_interface" = yes; then 9708 # If archive_cmds runs LD, not CC, wlarc should be empty 9709 wlarc='${wl}' 9710 9711 # Set some defaults for GNU ld with shared library support. These 9712 # are reset later if shared libraries are not supported. Putting them 9713 # here allows them to be overridden if necessary. 9714 runpath_var=LD_RUN_PATH 9715 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9716 export_dynamic_flag_spec='${wl}--export-dynamic' 9717 # ancient GNU ld didn't support --whole-archive et. al. 9718 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9719 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 9720 else 9721 whole_archive_flag_spec= 9722 fi 9723 supports_anon_versioning=no 9724 case `$LD -v 2>&1` in 9725 *GNU\ gold*) supports_anon_versioning=yes ;; 9726 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9727 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9728 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9729 *\ 2.11.*) ;; # other 2.11 versions 9730 *) supports_anon_versioning=yes ;; 9731 esac 9732 9733 # See if GNU ld supports shared libraries. 9734 case $host_os in 9735 aix[3-9]*) 9736 # On AIX/PPC, the GNU linker is very broken 9737 if test "$host_cpu" != ia64; then 9738 ld_shlibs=no 9739 cat <<_LT_EOF 1>&2 9740 9741*** Warning: the GNU linker, at least up to release 2.19, is reported 9742*** to be unable to reliably create shared libraries on AIX. 9743*** Therefore, libtool is disabling shared libraries support. If you 9744*** really care for shared libraries, you may want to install binutils 9745*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9746*** You will then need to restart the configuration process. 9747 9748_LT_EOF 9749 fi 9750 ;; 9751 9752 amigaos*) 9753 case $host_cpu in 9754 powerpc) 9755 # see comment about AmigaOS4 .so support 9756 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9757 archive_expsym_cmds='' 9758 ;; 9759 m68k) 9760 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)' 9761 hardcode_libdir_flag_spec='-L$libdir' 9762 hardcode_minus_L=yes 9763 ;; 9764 esac 9765 ;; 9766 9767 beos*) 9768 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9769 allow_undefined_flag=unsupported 9770 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9771 # support --undefined. This deserves some investigation. FIXME 9772 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9773 else 9774 ld_shlibs=no 9775 fi 9776 ;; 9777 9778 cygwin* | mingw* | pw32* | cegcc*) 9779 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9780 # as there is no search path for DLLs. 9781 hardcode_libdir_flag_spec='-L$libdir' 9782 export_dynamic_flag_spec='${wl}--export-all-symbols' 9783 allow_undefined_flag=unsupported 9784 always_export_symbols=no 9785 enable_shared_with_static_runtimes=yes 9786 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' 9787 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 9788 9789 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9790 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9791 # If the export-symbols file already is a .def file (1st line 9792 # is EXPORTS), use it as is; otherwise, prepend... 9793 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9794 cp $export_symbols $output_objdir/$soname.def; 9795 else 9796 echo EXPORTS > $output_objdir/$soname.def; 9797 cat $export_symbols >> $output_objdir/$soname.def; 9798 fi~ 9799 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9800 else 9801 ld_shlibs=no 9802 fi 9803 ;; 9804 9805 haiku*) 9806 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9807 link_all_deplibs=yes 9808 ;; 9809 9810 interix[3-9]*) 9811 hardcode_direct=no 9812 hardcode_shlibpath_var=no 9813 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9814 export_dynamic_flag_spec='${wl}-E' 9815 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9816 # Instead, shared libraries are loaded at an image base (0x10000000 by 9817 # default) and relocated if they conflict, which is a slow very memory 9818 # consuming and fragmenting process. To avoid this, we pick a random, 9819 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9820 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9821 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9822 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' 9823 ;; 9824 9825 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9826 tmp_diet=no 9827 if test "$host_os" = linux-dietlibc; then 9828 case $cc_basename in 9829 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9830 esac 9831 fi 9832 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9833 && test "$tmp_diet" = no 9834 then 9835 tmp_addflag=' $pic_flag' 9836 tmp_sharedflag='-shared' 9837 case $cc_basename,$host_cpu in 9838 pgcc*) # Portland Group C compiler 9839 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' 9840 tmp_addflag=' $pic_flag' 9841 ;; 9842 pgf77* | pgf90* | pgf95* | pgfortran*) 9843 # Portland Group f77 and f90 compilers 9844 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' 9845 tmp_addflag=' $pic_flag -Mnomain' ;; 9846 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9847 tmp_addflag=' -i_dynamic' ;; 9848 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9849 tmp_addflag=' -i_dynamic -nofor_main' ;; 9850 ifc* | ifort*) # Intel Fortran compiler 9851 tmp_addflag=' -nofor_main' ;; 9852 lf95*) # Lahey Fortran 8.1 9853 whole_archive_flag_spec= 9854 tmp_sharedflag='--shared' ;; 9855 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9856 tmp_sharedflag='-qmkshrobj' 9857 tmp_addflag= ;; 9858 nvcc*) # Cuda Compiler Driver 2.2 9859 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' 9860 compiler_needs_object=yes 9861 ;; 9862 esac 9863 case `$CC -V 2>&1 | sed 5q` in 9864 *Sun\ C*) # Sun C 5.9 9865 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' 9866 compiler_needs_object=yes 9867 tmp_sharedflag='-G' ;; 9868 *Sun\ F*) # Sun Fortran 8.3 9869 tmp_sharedflag='-G' ;; 9870 esac 9871 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9872 9873 if test "x$supports_anon_versioning" = xyes; then 9874 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9875 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9876 echo "local: *; };" >> $output_objdir/$libname.ver~ 9877 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 9878 fi 9879 9880 case $cc_basename in 9881 xlf* | bgf* | bgxlf* | mpixlf*) 9882 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9883 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9884 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9885 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 9886 if test "x$supports_anon_versioning" = xyes; then 9887 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9888 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9889 echo "local: *; };" >> $output_objdir/$libname.ver~ 9890 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9891 fi 9892 ;; 9893 esac 9894 else 9895 ld_shlibs=no 9896 fi 9897 ;; 9898 9899 netbsd*) 9900 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9901 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9902 wlarc= 9903 else 9904 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9905 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9906 fi 9907 ;; 9908 9909 solaris*) 9910 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9911 ld_shlibs=no 9912 cat <<_LT_EOF 1>&2 9913 9914*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9915*** create shared libraries on Solaris systems. Therefore, libtool 9916*** is disabling shared libraries support. We urge you to upgrade GNU 9917*** binutils to release 2.9.1 or newer. Another option is to modify 9918*** your PATH or compiler configuration so that the native linker is 9919*** used, and then restart. 9920 9921_LT_EOF 9922 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9923 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9924 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9925 else 9926 ld_shlibs=no 9927 fi 9928 ;; 9929 9930 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9931 case `$LD -v 2>&1` in 9932 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9933 ld_shlibs=no 9934 cat <<_LT_EOF 1>&2 9935 9936*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 9937*** reliably create shared libraries on SCO systems. Therefore, libtool 9938*** is disabling shared libraries support. We urge you to upgrade GNU 9939*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9940*** your PATH or compiler configuration so that the native linker is 9941*** used, and then restart. 9942 9943_LT_EOF 9944 ;; 9945 *) 9946 # For security reasons, it is highly recommended that you always 9947 # use absolute paths for naming shared libraries, and exclude the 9948 # DT_RUNPATH tag from executables and libraries. But doing so 9949 # requires that you compile everything twice, which is a pain. 9950 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9951 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9952 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9953 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9954 else 9955 ld_shlibs=no 9956 fi 9957 ;; 9958 esac 9959 ;; 9960 9961 sunos4*) 9962 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9963 wlarc= 9964 hardcode_direct=yes 9965 hardcode_shlibpath_var=no 9966 ;; 9967 9968 *) 9969 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9970 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9971 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9972 else 9973 ld_shlibs=no 9974 fi 9975 ;; 9976 esac 9977 9978 if test "$ld_shlibs" = no; then 9979 runpath_var= 9980 hardcode_libdir_flag_spec= 9981 export_dynamic_flag_spec= 9982 whole_archive_flag_spec= 9983 fi 9984 else 9985 # PORTME fill in a description of your system's linker (not GNU ld) 9986 case $host_os in 9987 aix3*) 9988 allow_undefined_flag=unsupported 9989 always_export_symbols=yes 9990 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' 9991 # Note: this linker hardcodes the directories in LIBPATH if there 9992 # are no directories specified by -L. 9993 hardcode_minus_L=yes 9994 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 9995 # Neither direct hardcoding nor static linking is supported with a 9996 # broken collect2. 9997 hardcode_direct=unsupported 9998 fi 9999 ;; 10000 10001 aix[4-9]*) 10002 if test "$host_cpu" = ia64; then 10003 # On IA64, the linker does run time linking by default, so we don't 10004 # have to do anything special. 10005 aix_use_runtimelinking=no 10006 exp_sym_flag='-Bexport' 10007 no_entry_flag="" 10008 else 10009 # If we're using GNU nm, then we don't want the "-C" option. 10010 # -C means demangle to AIX nm, but means don't demangle with GNU nm 10011 # Also, AIX nm treats weak defined symbols like other global 10012 # defined symbols, whereas GNU nm marks them as "W". 10013 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 10014 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 10015 else 10016 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 10017 fi 10018 aix_use_runtimelinking=no 10019 10020 # Test if we are trying to use run time linking or normal 10021 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10022 # need to do runtime linking. 10023 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 10024 for ld_flag in $LDFLAGS; do 10025 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 10026 aix_use_runtimelinking=yes 10027 break 10028 fi 10029 done 10030 ;; 10031 esac 10032 10033 exp_sym_flag='-bexport' 10034 no_entry_flag='-bnoentry' 10035 fi 10036 10037 # When large executables or shared objects are built, AIX ld can 10038 # have problems creating the table of contents. If linking a library 10039 # or program results in "error TOC overflow" add -mminimal-toc to 10040 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10041 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10042 10043 archive_cmds='' 10044 hardcode_direct=yes 10045 hardcode_direct_absolute=yes 10046 hardcode_libdir_separator=':' 10047 link_all_deplibs=yes 10048 file_list_spec='${wl}-f,' 10049 10050 if test "$GCC" = yes; then 10051 case $host_os in aix4.[012]|aix4.[012].*) 10052 # We only want to do this on AIX 4.2 and lower, the check 10053 # below for broken collect2 doesn't work under 4.3+ 10054 collect2name=`${CC} -print-prog-name=collect2` 10055 if test -f "$collect2name" && 10056 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 10057 then 10058 # We have reworked collect2 10059 : 10060 else 10061 # We have old collect2 10062 hardcode_direct=unsupported 10063 # It fails to find uninstalled libraries when the uninstalled 10064 # path is not listed in the libpath. Setting hardcode_minus_L 10065 # to unsupported forces relinking 10066 hardcode_minus_L=yes 10067 hardcode_libdir_flag_spec='-L$libdir' 10068 hardcode_libdir_separator= 10069 fi 10070 ;; 10071 esac 10072 shared_flag='-shared' 10073 if test "$aix_use_runtimelinking" = yes; then 10074 shared_flag="$shared_flag "'${wl}-G' 10075 fi 10076 else 10077 # not using gcc 10078 if test "$host_cpu" = ia64; then 10079 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10080 # chokes on -Wl,-G. The following line is correct: 10081 shared_flag='-G' 10082 else 10083 if test "$aix_use_runtimelinking" = yes; then 10084 shared_flag='${wl}-G' 10085 else 10086 shared_flag='${wl}-bM:SRE' 10087 fi 10088 fi 10089 fi 10090 10091 export_dynamic_flag_spec='${wl}-bexpall' 10092 # It seems that -bexpall does not export symbols beginning with 10093 # underscore (_), so it is better to generate a list of symbols to export. 10094 always_export_symbols=yes 10095 if test "$aix_use_runtimelinking" = yes; then 10096 # Warning - without using the other runtime loading flags (-brtl), 10097 # -berok will link without error, but may produce a broken library. 10098 allow_undefined_flag='-berok' 10099 # Determine the default libpath from the value encoded in an 10100 # empty executable. 10101 if test "${lt_cv_aix_libpath+set}" = set; then 10102 aix_libpath=$lt_cv_aix_libpath 10103else 10104 if ${lt_cv_aix_libpath_+:} false; then : 10105 $as_echo_n "(cached) " >&6 10106else 10107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10108/* end confdefs.h. */ 10109 10110int 10111main () 10112{ 10113 10114 ; 10115 return 0; 10116} 10117_ACEOF 10118if ac_fn_c_try_link "$LINENO"; then : 10119 10120 lt_aix_libpath_sed=' 10121 /Import File Strings/,/^$/ { 10122 /^0/ { 10123 s/^0 *\([^ ]*\) *$/\1/ 10124 p 10125 } 10126 }' 10127 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10128 # Check for a 64-bit object if we didn't find anything. 10129 if test -z "$lt_cv_aix_libpath_"; then 10130 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10131 fi 10132fi 10133rm -f core conftest.err conftest.$ac_objext \ 10134 conftest$ac_exeext conftest.$ac_ext 10135 if test -z "$lt_cv_aix_libpath_"; then 10136 lt_cv_aix_libpath_="/usr/lib:/lib" 10137 fi 10138 10139fi 10140 10141 aix_libpath=$lt_cv_aix_libpath_ 10142fi 10143 10144 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 10145 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 10146 else 10147 if test "$host_cpu" = ia64; then 10148 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 10149 allow_undefined_flag="-z nodefs" 10150 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" 10151 else 10152 # Determine the default libpath from the value encoded in an 10153 # empty executable. 10154 if test "${lt_cv_aix_libpath+set}" = set; then 10155 aix_libpath=$lt_cv_aix_libpath 10156else 10157 if ${lt_cv_aix_libpath_+:} false; then : 10158 $as_echo_n "(cached) " >&6 10159else 10160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10161/* end confdefs.h. */ 10162 10163int 10164main () 10165{ 10166 10167 ; 10168 return 0; 10169} 10170_ACEOF 10171if ac_fn_c_try_link "$LINENO"; then : 10172 10173 lt_aix_libpath_sed=' 10174 /Import File Strings/,/^$/ { 10175 /^0/ { 10176 s/^0 *\([^ ]*\) *$/\1/ 10177 p 10178 } 10179 }' 10180 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10181 # Check for a 64-bit object if we didn't find anything. 10182 if test -z "$lt_cv_aix_libpath_"; then 10183 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10184 fi 10185fi 10186rm -f core conftest.err conftest.$ac_objext \ 10187 conftest$ac_exeext conftest.$ac_ext 10188 if test -z "$lt_cv_aix_libpath_"; then 10189 lt_cv_aix_libpath_="/usr/lib:/lib" 10190 fi 10191 10192fi 10193 10194 aix_libpath=$lt_cv_aix_libpath_ 10195fi 10196 10197 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 10198 # Warning - without using the other run time loading flags, 10199 # -berok will link without error, but may produce a broken library. 10200 no_undefined_flag=' ${wl}-bernotok' 10201 allow_undefined_flag=' ${wl}-berok' 10202 if test "$with_gnu_ld" = yes; then 10203 # We only use this code for GNU lds that support --whole-archive. 10204 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 10205 else 10206 # Exported symbols can be pulled into shared objects from archives 10207 whole_archive_flag_spec='$convenience' 10208 fi 10209 archive_cmds_need_lc=yes 10210 # This is similar to how AIX traditionally builds its shared libraries. 10211 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 10212 fi 10213 fi 10214 ;; 10215 10216 amigaos*) 10217 case $host_cpu in 10218 powerpc) 10219 # see comment about AmigaOS4 .so support 10220 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10221 archive_expsym_cmds='' 10222 ;; 10223 m68k) 10224 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)' 10225 hardcode_libdir_flag_spec='-L$libdir' 10226 hardcode_minus_L=yes 10227 ;; 10228 esac 10229 ;; 10230 10231 bsdi[45]*) 10232 export_dynamic_flag_spec=-rdynamic 10233 ;; 10234 10235 cygwin* | mingw* | pw32* | cegcc*) 10236 # When not using gcc, we currently assume that we are using 10237 # Microsoft Visual C++. 10238 # hardcode_libdir_flag_spec is actually meaningless, as there is 10239 # no search path for DLLs. 10240 case $cc_basename in 10241 cl*) 10242 # Native MSVC 10243 hardcode_libdir_flag_spec=' ' 10244 allow_undefined_flag=unsupported 10245 always_export_symbols=yes 10246 file_list_spec='@' 10247 # Tell ltmain to make .lib files, not .a files. 10248 libext=lib 10249 # Tell ltmain to make .dll files, not .so files. 10250 shrext_cmds=".dll" 10251 # FIXME: Setting linknames here is a bad hack. 10252 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 10253 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 10254 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 10255 else 10256 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 10257 fi~ 10258 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 10259 linknames=' 10260 # The linker will not automatically build a static lib if we build a DLL. 10261 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 10262 enable_shared_with_static_runtimes=yes 10263 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 10264 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 10265 # Don't use ranlib 10266 old_postinstall_cmds='chmod 644 $oldlib' 10267 postlink_cmds='lt_outputfile="@OUTPUT@"~ 10268 lt_tool_outputfile="@TOOL_OUTPUT@"~ 10269 case $lt_outputfile in 10270 *.exe|*.EXE) ;; 10271 *) 10272 lt_outputfile="$lt_outputfile.exe" 10273 lt_tool_outputfile="$lt_tool_outputfile.exe" 10274 ;; 10275 esac~ 10276 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 10277 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 10278 $RM "$lt_outputfile.manifest"; 10279 fi' 10280 ;; 10281 *) 10282 # Assume MSVC wrapper 10283 hardcode_libdir_flag_spec=' ' 10284 allow_undefined_flag=unsupported 10285 # Tell ltmain to make .lib files, not .a files. 10286 libext=lib 10287 # Tell ltmain to make .dll files, not .so files. 10288 shrext_cmds=".dll" 10289 # FIXME: Setting linknames here is a bad hack. 10290 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 10291 # The linker will automatically build a .lib file if we build a DLL. 10292 old_archive_from_new_cmds='true' 10293 # FIXME: Should let the user specify the lib program. 10294 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 10295 enable_shared_with_static_runtimes=yes 10296 ;; 10297 esac 10298 ;; 10299 10300 darwin* | rhapsody*) 10301 10302 10303 archive_cmds_need_lc=no 10304 hardcode_direct=no 10305 hardcode_automatic=yes 10306 hardcode_shlibpath_var=unsupported 10307 if test "$lt_cv_ld_force_load" = "yes"; then 10308 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\"`' 10309 10310 else 10311 whole_archive_flag_spec='' 10312 fi 10313 link_all_deplibs=yes 10314 allow_undefined_flag="$_lt_dar_allow_undefined" 10315 case $cc_basename in 10316 ifort*) _lt_dar_can_shared=yes ;; 10317 *) _lt_dar_can_shared=$GCC ;; 10318 esac 10319 if test "$_lt_dar_can_shared" = "yes"; then 10320 output_verbose_link_cmd=func_echo_all 10321 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 10322 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 10323 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}" 10324 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}" 10325 10326 else 10327 ld_shlibs=no 10328 fi 10329 10330 ;; 10331 10332 dgux*) 10333 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10334 hardcode_libdir_flag_spec='-L$libdir' 10335 hardcode_shlibpath_var=no 10336 ;; 10337 10338 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 10339 # support. Future versions do this automatically, but an explicit c++rt0.o 10340 # does not break anything, and helps significantly (at the cost of a little 10341 # extra space). 10342 freebsd2.2*) 10343 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 10344 hardcode_libdir_flag_spec='-R$libdir' 10345 hardcode_direct=yes 10346 hardcode_shlibpath_var=no 10347 ;; 10348 10349 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 10350 freebsd2.*) 10351 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10352 hardcode_direct=yes 10353 hardcode_minus_L=yes 10354 hardcode_shlibpath_var=no 10355 ;; 10356 10357 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 10358 freebsd* | dragonfly*) 10359 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10360 hardcode_libdir_flag_spec='-R$libdir' 10361 hardcode_direct=yes 10362 hardcode_shlibpath_var=no 10363 ;; 10364 10365 hpux9*) 10366 if test "$GCC" = yes; then 10367 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 10368 else 10369 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 10370 fi 10371 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 10372 hardcode_libdir_separator=: 10373 hardcode_direct=yes 10374 10375 # hardcode_minus_L: Not really in the search PATH, 10376 # but as the default location of the library. 10377 hardcode_minus_L=yes 10378 export_dynamic_flag_spec='${wl}-E' 10379 ;; 10380 10381 hpux10*) 10382 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 10383 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10384 else 10385 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10386 fi 10387 if test "$with_gnu_ld" = no; then 10388 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 10389 hardcode_libdir_separator=: 10390 hardcode_direct=yes 10391 hardcode_direct_absolute=yes 10392 export_dynamic_flag_spec='${wl}-E' 10393 # hardcode_minus_L: Not really in the search PATH, 10394 # but as the default location of the library. 10395 hardcode_minus_L=yes 10396 fi 10397 ;; 10398 10399 hpux11*) 10400 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 10401 case $host_cpu in 10402 hppa*64*) 10403 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 10404 ;; 10405 ia64*) 10406 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10407 ;; 10408 *) 10409 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10410 ;; 10411 esac 10412 else 10413 case $host_cpu in 10414 hppa*64*) 10415 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 10416 ;; 10417 ia64*) 10418 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10419 ;; 10420 *) 10421 10422 # Older versions of the 11.00 compiler do not understand -b yet 10423 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 10424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 10425$as_echo_n "checking if $CC understands -b... " >&6; } 10426if ${lt_cv_prog_compiler__b+:} false; then : 10427 $as_echo_n "(cached) " >&6 10428else 10429 lt_cv_prog_compiler__b=no 10430 save_LDFLAGS="$LDFLAGS" 10431 LDFLAGS="$LDFLAGS -b" 10432 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10433 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10434 # The linker can only warn and ignore the option if not recognized 10435 # So say no if there are warnings 10436 if test -s conftest.err; then 10437 # Append any errors to the config.log. 10438 cat conftest.err 1>&5 10439 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10440 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10441 if diff conftest.exp conftest.er2 >/dev/null; then 10442 lt_cv_prog_compiler__b=yes 10443 fi 10444 else 10445 lt_cv_prog_compiler__b=yes 10446 fi 10447 fi 10448 $RM -r conftest* 10449 LDFLAGS="$save_LDFLAGS" 10450 10451fi 10452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 10453$as_echo "$lt_cv_prog_compiler__b" >&6; } 10454 10455if test x"$lt_cv_prog_compiler__b" = xyes; then 10456 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10457else 10458 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10459fi 10460 10461 ;; 10462 esac 10463 fi 10464 if test "$with_gnu_ld" = no; then 10465 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 10466 hardcode_libdir_separator=: 10467 10468 case $host_cpu in 10469 hppa*64*|ia64*) 10470 hardcode_direct=no 10471 hardcode_shlibpath_var=no 10472 ;; 10473 *) 10474 hardcode_direct=yes 10475 hardcode_direct_absolute=yes 10476 export_dynamic_flag_spec='${wl}-E' 10477 10478 # hardcode_minus_L: Not really in the search PATH, 10479 # but as the default location of the library. 10480 hardcode_minus_L=yes 10481 ;; 10482 esac 10483 fi 10484 ;; 10485 10486 irix5* | irix6* | nonstopux*) 10487 if test "$GCC" = yes; then 10488 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' 10489 # Try to use the -exported_symbol ld option, if it does not 10490 # work, assume that -exports_file does not work either and 10491 # implicitly export all symbols. 10492 # This should be the same for all languages, so no per-tag cache variable. 10493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 10494$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 10495if ${lt_cv_irix_exported_symbol+:} false; then : 10496 $as_echo_n "(cached) " >&6 10497else 10498 save_LDFLAGS="$LDFLAGS" 10499 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 10500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10501/* end confdefs.h. */ 10502int foo (void) { return 0; } 10503_ACEOF 10504if ac_fn_c_try_link "$LINENO"; then : 10505 lt_cv_irix_exported_symbol=yes 10506else 10507 lt_cv_irix_exported_symbol=no 10508fi 10509rm -f core conftest.err conftest.$ac_objext \ 10510 conftest$ac_exeext conftest.$ac_ext 10511 LDFLAGS="$save_LDFLAGS" 10512fi 10513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 10514$as_echo "$lt_cv_irix_exported_symbol" >&6; } 10515 if test "$lt_cv_irix_exported_symbol" = yes; then 10516 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' 10517 fi 10518 else 10519 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' 10520 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' 10521 fi 10522 archive_cmds_need_lc='no' 10523 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10524 hardcode_libdir_separator=: 10525 inherit_rpath=yes 10526 link_all_deplibs=yes 10527 ;; 10528 10529 netbsd*) 10530 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10531 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10532 else 10533 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10534 fi 10535 hardcode_libdir_flag_spec='-R$libdir' 10536 hardcode_direct=yes 10537 hardcode_shlibpath_var=no 10538 ;; 10539 10540 newsos6) 10541 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10542 hardcode_direct=yes 10543 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10544 hardcode_libdir_separator=: 10545 hardcode_shlibpath_var=no 10546 ;; 10547 10548 *nto* | *qnx*) 10549 ;; 10550 10551 openbsd*) 10552 if test -f /usr/libexec/ld.so; then 10553 hardcode_direct=yes 10554 hardcode_shlibpath_var=no 10555 hardcode_direct_absolute=yes 10556 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10557 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10558 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 10559 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 10560 export_dynamic_flag_spec='${wl}-E' 10561 else 10562 case $host_os in 10563 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 10564 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10565 hardcode_libdir_flag_spec='-R$libdir' 10566 ;; 10567 *) 10568 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10569 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 10570 ;; 10571 esac 10572 fi 10573 else 10574 ld_shlibs=no 10575 fi 10576 ;; 10577 10578 os2*) 10579 hardcode_libdir_flag_spec='-L$libdir' 10580 hardcode_minus_L=yes 10581 allow_undefined_flag=unsupported 10582 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' 10583 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 10584 ;; 10585 10586 osf3*) 10587 if test "$GCC" = yes; then 10588 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 10589 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' 10590 else 10591 allow_undefined_flag=' -expect_unresolved \*' 10592 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' 10593 fi 10594 archive_cmds_need_lc='no' 10595 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10596 hardcode_libdir_separator=: 10597 ;; 10598 10599 osf4* | osf5*) # as osf3* with the addition of -msym flag 10600 if test "$GCC" = yes; then 10601 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 10602 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' 10603 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10604 else 10605 allow_undefined_flag=' -expect_unresolved \*' 10606 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' 10607 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~ 10608 $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' 10609 10610 # Both c and cxx compiler support -rpath directly 10611 hardcode_libdir_flag_spec='-rpath $libdir' 10612 fi 10613 archive_cmds_need_lc='no' 10614 hardcode_libdir_separator=: 10615 ;; 10616 10617 solaris*) 10618 no_undefined_flag=' -z defs' 10619 if test "$GCC" = yes; then 10620 wlarc='${wl}' 10621 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 10622 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10623 $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' 10624 else 10625 case `$CC -V 2>&1` in 10626 *"Compilers 5.0"*) 10627 wlarc='' 10628 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 10629 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10630 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10631 ;; 10632 *) 10633 wlarc='${wl}' 10634 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10635 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10636 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10637 ;; 10638 esac 10639 fi 10640 hardcode_libdir_flag_spec='-R$libdir' 10641 hardcode_shlibpath_var=no 10642 case $host_os in 10643 solaris2.[0-5] | solaris2.[0-5].*) ;; 10644 *) 10645 # The compiler driver will combine and reorder linker options, 10646 # but understands `-z linker_flag'. GCC discards it without `$wl', 10647 # but is careful enough not to reorder. 10648 # Supported since Solaris 2.6 (maybe 2.5.1?) 10649 if test "$GCC" = yes; then 10650 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 10651 else 10652 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10653 fi 10654 ;; 10655 esac 10656 link_all_deplibs=yes 10657 ;; 10658 10659 sunos4*) 10660 if test "x$host_vendor" = xsequent; then 10661 # Use $CC to link under sequent, because it throws in some extra .o 10662 # files that make .init and .fini sections work. 10663 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10664 else 10665 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10666 fi 10667 hardcode_libdir_flag_spec='-L$libdir' 10668 hardcode_direct=yes 10669 hardcode_minus_L=yes 10670 hardcode_shlibpath_var=no 10671 ;; 10672 10673 sysv4) 10674 case $host_vendor in 10675 sni) 10676 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10677 hardcode_direct=yes # is this really true??? 10678 ;; 10679 siemens) 10680 ## LD is ld it makes a PLAMLIB 10681 ## CC just makes a GrossModule. 10682 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10683 reload_cmds='$CC -r -o $output$reload_objs' 10684 hardcode_direct=no 10685 ;; 10686 motorola) 10687 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10688 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10689 ;; 10690 esac 10691 runpath_var='LD_RUN_PATH' 10692 hardcode_shlibpath_var=no 10693 ;; 10694 10695 sysv4.3*) 10696 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10697 hardcode_shlibpath_var=no 10698 export_dynamic_flag_spec='-Bexport' 10699 ;; 10700 10701 sysv4*MP*) 10702 if test -d /usr/nec; then 10703 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10704 hardcode_shlibpath_var=no 10705 runpath_var=LD_RUN_PATH 10706 hardcode_runpath_var=yes 10707 ld_shlibs=yes 10708 fi 10709 ;; 10710 10711 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10712 no_undefined_flag='${wl}-z,text' 10713 archive_cmds_need_lc=no 10714 hardcode_shlibpath_var=no 10715 runpath_var='LD_RUN_PATH' 10716 10717 if test "$GCC" = yes; then 10718 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10719 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10720 else 10721 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10722 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10723 fi 10724 ;; 10725 10726 sysv5* | sco3.2v5* | sco5v6*) 10727 # Note: We can NOT use -z defs as we might desire, because we do not 10728 # link with -lc, and that would cause any symbols used from libc to 10729 # always be unresolved, which means just about no library would 10730 # ever link correctly. If we're not using GNU ld we use -z text 10731 # though, which does catch some bad symbols but isn't as heavy-handed 10732 # as -z defs. 10733 no_undefined_flag='${wl}-z,text' 10734 allow_undefined_flag='${wl}-z,nodefs' 10735 archive_cmds_need_lc=no 10736 hardcode_shlibpath_var=no 10737 hardcode_libdir_flag_spec='${wl}-R,$libdir' 10738 hardcode_libdir_separator=':' 10739 link_all_deplibs=yes 10740 export_dynamic_flag_spec='${wl}-Bexport' 10741 runpath_var='LD_RUN_PATH' 10742 10743 if test "$GCC" = yes; then 10744 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10745 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10746 else 10747 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10748 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10749 fi 10750 ;; 10751 10752 uts4*) 10753 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10754 hardcode_libdir_flag_spec='-L$libdir' 10755 hardcode_shlibpath_var=no 10756 ;; 10757 10758 *) 10759 ld_shlibs=no 10760 ;; 10761 esac 10762 10763 if test x$host_vendor = xsni; then 10764 case $host in 10765 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10766 export_dynamic_flag_spec='${wl}-Blargedynsym' 10767 ;; 10768 esac 10769 fi 10770 fi 10771 10772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10773$as_echo "$ld_shlibs" >&6; } 10774test "$ld_shlibs" = no && can_build_shared=no 10775 10776with_gnu_ld=$with_gnu_ld 10777 10778 10779 10780 10781 10782 10783 10784 10785 10786 10787 10788 10789 10790 10791 10792# 10793# Do we need to explicitly link libc? 10794# 10795case "x$archive_cmds_need_lc" in 10796x|xyes) 10797 # Assume -lc should be added 10798 archive_cmds_need_lc=yes 10799 10800 if test "$enable_shared" = yes && test "$GCC" = yes; then 10801 case $archive_cmds in 10802 *'~'*) 10803 # FIXME: we may have to deal with multi-command sequences. 10804 ;; 10805 '$CC '*) 10806 # Test whether the compiler implicitly links with -lc since on some 10807 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10808 # to ld, don't add -lc before -lgcc. 10809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10810$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 10811if ${lt_cv_archive_cmds_need_lc+:} false; then : 10812 $as_echo_n "(cached) " >&6 10813else 10814 $RM conftest* 10815 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10816 10817 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10818 (eval $ac_compile) 2>&5 10819 ac_status=$? 10820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10821 test $ac_status = 0; } 2>conftest.err; then 10822 soname=conftest 10823 lib=conftest 10824 libobjs=conftest.$ac_objext 10825 deplibs= 10826 wl=$lt_prog_compiler_wl 10827 pic_flag=$lt_prog_compiler_pic 10828 compiler_flags=-v 10829 linker_flags=-v 10830 verstring= 10831 output_objdir=. 10832 libname=conftest 10833 lt_save_allow_undefined_flag=$allow_undefined_flag 10834 allow_undefined_flag= 10835 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10836 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10837 ac_status=$? 10838 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10839 test $ac_status = 0; } 10840 then 10841 lt_cv_archive_cmds_need_lc=no 10842 else 10843 lt_cv_archive_cmds_need_lc=yes 10844 fi 10845 allow_undefined_flag=$lt_save_allow_undefined_flag 10846 else 10847 cat conftest.err 1>&5 10848 fi 10849 $RM conftest* 10850 10851fi 10852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 10853$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 10854 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 10855 ;; 10856 esac 10857 fi 10858 ;; 10859esac 10860 10861 10862 10863 10864 10865 10866 10867 10868 10869 10870 10871 10872 10873 10874 10875 10876 10877 10878 10879 10880 10881 10882 10883 10884 10885 10886 10887 10888 10889 10890 10891 10892 10893 10894 10895 10896 10897 10898 10899 10900 10901 10902 10903 10904 10905 10906 10907 10908 10909 10910 10911 10912 10913 10914 10915 10916 10917 10918 10919 10920 10921 10922 10923 10924 10925 10926 10927 10928 10929 10930 10931 10932 10933 10934 10935 10936 10937 10938 10939 10940 10941 10942 10943 10944 10945 10946 10947 10948 10949 10950 10951 10952 10953 10954 10955 10956 10957 10958 10959 10960 10961 10962 10963 10964 10965 10966 10967 10968 10969 10970 10971 10972 10973 10974 10975 10976 10977 10978 10979 10980 10981 10982 10983 10984 10985 10986 10987 10988 10989 10990 10991 10992 10993 10994 10995 10996 10997 10998 10999 11000 11001 11002 11003 11004 11005 11006 11007 11008 11009 11010 11011 11012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 11013$as_echo_n "checking dynamic linker characteristics... " >&6; } 11014 11015if test "$GCC" = yes; then 11016 case $host_os in 11017 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 11018 *) lt_awk_arg="/^libraries:/" ;; 11019 esac 11020 case $host_os in 11021 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 11022 *) lt_sed_strip_eq="s,=/,/,g" ;; 11023 esac 11024 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 11025 case $lt_search_path_spec in 11026 *\;*) 11027 # if the path contains ";" then we assume it to be the separator 11028 # otherwise default to the standard path separator (i.e. ":") - it is 11029 # assumed that no part of a normal pathname contains ";" but that should 11030 # okay in the real world where ";" in dirpaths is itself problematic. 11031 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 11032 ;; 11033 *) 11034 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 11035 ;; 11036 esac 11037 # Ok, now we have the path, separated by spaces, we can step through it 11038 # and add multilib dir if necessary. 11039 lt_tmp_lt_search_path_spec= 11040 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 11041 for lt_sys_path in $lt_search_path_spec; do 11042 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 11043 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 11044 else 11045 test -d "$lt_sys_path" && \ 11046 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 11047 fi 11048 done 11049 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 11050BEGIN {RS=" "; FS="/|\n";} { 11051 lt_foo=""; 11052 lt_count=0; 11053 for (lt_i = NF; lt_i > 0; lt_i--) { 11054 if ($lt_i != "" && $lt_i != ".") { 11055 if ($lt_i == "..") { 11056 lt_count++; 11057 } else { 11058 if (lt_count == 0) { 11059 lt_foo="/" $lt_i lt_foo; 11060 } else { 11061 lt_count--; 11062 } 11063 } 11064 } 11065 } 11066 if (lt_foo != "") { lt_freq[lt_foo]++; } 11067 if (lt_freq[lt_foo] == 1) { print lt_foo; } 11068}'` 11069 # AWK program above erroneously prepends '/' to C:/dos/paths 11070 # for these hosts. 11071 case $host_os in 11072 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 11073 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 11074 esac 11075 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 11076else 11077 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11078fi 11079library_names_spec= 11080libname_spec='lib$name' 11081soname_spec= 11082shrext_cmds=".so" 11083postinstall_cmds= 11084postuninstall_cmds= 11085finish_cmds= 11086finish_eval= 11087shlibpath_var= 11088shlibpath_overrides_runpath=unknown 11089version_type=none 11090dynamic_linker="$host_os ld.so" 11091sys_lib_dlsearch_path_spec="/lib /usr/lib" 11092need_lib_prefix=unknown 11093hardcode_into_libs=no 11094 11095# when you set need_version to no, make sure it does not cause -set_version 11096# flags to be left without arguments 11097need_version=unknown 11098 11099case $host_os in 11100aix3*) 11101 version_type=linux # correct to gnu/linux during the next big refactor 11102 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 11103 shlibpath_var=LIBPATH 11104 11105 # AIX 3 has no versioning support, so we append a major version to the name. 11106 soname_spec='${libname}${release}${shared_ext}$major' 11107 ;; 11108 11109aix[4-9]*) 11110 version_type=linux # correct to gnu/linux during the next big refactor 11111 need_lib_prefix=no 11112 need_version=no 11113 hardcode_into_libs=yes 11114 if test "$host_cpu" = ia64; then 11115 # AIX 5 supports IA64 11116 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 11117 shlibpath_var=LD_LIBRARY_PATH 11118 else 11119 # With GCC up to 2.95.x, collect2 would create an import file 11120 # for dependence libraries. The import file would start with 11121 # the line `#! .'. This would cause the generated library to 11122 # depend on `.', always an invalid library. This was fixed in 11123 # development snapshots of GCC prior to 3.0. 11124 case $host_os in 11125 aix4 | aix4.[01] | aix4.[01].*) 11126 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11127 echo ' yes ' 11128 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 11129 : 11130 else 11131 can_build_shared=no 11132 fi 11133 ;; 11134 esac 11135 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 11136 # soname into executable. Probably we can add versioning support to 11137 # collect2, so additional links can be useful in future. 11138 if test "$aix_use_runtimelinking" = yes; then 11139 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 11140 # instead of lib<name>.a to let people know that these are not 11141 # typical AIX shared libraries. 11142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11143 else 11144 # We preserve .a as extension for shared libraries through AIX4.2 11145 # and later when we are not doing run time linking. 11146 library_names_spec='${libname}${release}.a $libname.a' 11147 soname_spec='${libname}${release}${shared_ext}$major' 11148 fi 11149 shlibpath_var=LIBPATH 11150 fi 11151 ;; 11152 11153amigaos*) 11154 case $host_cpu in 11155 powerpc) 11156 # Since July 2007 AmigaOS4 officially supports .so libraries. 11157 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 11158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11159 ;; 11160 m68k) 11161 library_names_spec='$libname.ixlibrary $libname.a' 11162 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11163 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 11164 ;; 11165 esac 11166 ;; 11167 11168beos*) 11169 library_names_spec='${libname}${shared_ext}' 11170 dynamic_linker="$host_os ld.so" 11171 shlibpath_var=LIBRARY_PATH 11172 ;; 11173 11174bsdi[45]*) 11175 version_type=linux # correct to gnu/linux during the next big refactor 11176 need_version=no 11177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11178 soname_spec='${libname}${release}${shared_ext}$major' 11179 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11180 shlibpath_var=LD_LIBRARY_PATH 11181 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11182 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11183 # the default ld.so.conf also contains /usr/contrib/lib and 11184 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11185 # libtool to hard-code these into programs 11186 ;; 11187 11188cygwin* | mingw* | pw32* | cegcc*) 11189 version_type=windows 11190 shrext_cmds=".dll" 11191 need_version=no 11192 need_lib_prefix=no 11193 11194 case $GCC,$cc_basename in 11195 yes,*) 11196 # gcc 11197 library_names_spec='$libname.dll.a' 11198 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11199 postinstall_cmds='base_file=`basename \${file}`~ 11200 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 11201 dldir=$destdir/`dirname \$dlpath`~ 11202 test -d \$dldir || mkdir -p \$dldir~ 11203 $install_prog $dir/$dlname \$dldir/$dlname~ 11204 chmod a+x \$dldir/$dlname~ 11205 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11206 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11207 fi' 11208 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11209 dlpath=$dir/\$dldll~ 11210 $RM \$dlpath' 11211 shlibpath_overrides_runpath=yes 11212 11213 case $host_os in 11214 cygwin*) 11215 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11216 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11217 11218 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 11219 ;; 11220 mingw* | cegcc*) 11221 # MinGW DLLs use traditional 'lib' prefix 11222 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11223 ;; 11224 pw32*) 11225 # pw32 DLLs use 'pw' prefix rather than 'lib' 11226 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11227 ;; 11228 esac 11229 dynamic_linker='Win32 ld.exe' 11230 ;; 11231 11232 *,cl*) 11233 # Native MSVC 11234 libname_spec='$name' 11235 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11236 library_names_spec='${libname}.dll.lib' 11237 11238 case $build_os in 11239 mingw*) 11240 sys_lib_search_path_spec= 11241 lt_save_ifs=$IFS 11242 IFS=';' 11243 for lt_path in $LIB 11244 do 11245 IFS=$lt_save_ifs 11246 # Let DOS variable expansion print the short 8.3 style file name. 11247 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 11248 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 11249 done 11250 IFS=$lt_save_ifs 11251 # Convert to MSYS style. 11252 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 11253 ;; 11254 cygwin*) 11255 # Convert to unix form, then to dos form, then back to unix form 11256 # but this time dos style (no spaces!) so that the unix form looks 11257 # like /cygdrive/c/PROGRA~1:/cygdr... 11258 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 11259 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 11260 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11261 ;; 11262 *) 11263 sys_lib_search_path_spec="$LIB" 11264 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 11265 # It is most probably a Windows format PATH. 11266 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11267 else 11268 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11269 fi 11270 # FIXME: find the short name or the path components, as spaces are 11271 # common. (e.g. "Program Files" -> "PROGRA~1") 11272 ;; 11273 esac 11274 11275 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11276 postinstall_cmds='base_file=`basename \${file}`~ 11277 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 11278 dldir=$destdir/`dirname \$dlpath`~ 11279 test -d \$dldir || mkdir -p \$dldir~ 11280 $install_prog $dir/$dlname \$dldir/$dlname' 11281 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11282 dlpath=$dir/\$dldll~ 11283 $RM \$dlpath' 11284 shlibpath_overrides_runpath=yes 11285 dynamic_linker='Win32 link.exe' 11286 ;; 11287 11288 *) 11289 # Assume MSVC wrapper 11290 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 11291 dynamic_linker='Win32 ld.exe' 11292 ;; 11293 esac 11294 # FIXME: first we should search . and the directory the executable is in 11295 shlibpath_var=PATH 11296 ;; 11297 11298darwin* | rhapsody*) 11299 dynamic_linker="$host_os dyld" 11300 version_type=darwin 11301 need_lib_prefix=no 11302 need_version=no 11303 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 11304 soname_spec='${libname}${release}${major}$shared_ext' 11305 shlibpath_overrides_runpath=yes 11306 shlibpath_var=DYLD_LIBRARY_PATH 11307 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 11308 11309 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 11310 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11311 ;; 11312 11313dgux*) 11314 version_type=linux # correct to gnu/linux during the next big refactor 11315 need_lib_prefix=no 11316 need_version=no 11317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 11318 soname_spec='${libname}${release}${shared_ext}$major' 11319 shlibpath_var=LD_LIBRARY_PATH 11320 ;; 11321 11322freebsd* | dragonfly*) 11323 # DragonFly does not have aout. When/if they implement a new 11324 # versioning mechanism, adjust this. 11325 if test -x /usr/bin/objformat; then 11326 objformat=`/usr/bin/objformat` 11327 else 11328 case $host_os in 11329 freebsd[23].*) objformat=aout ;; 11330 *) objformat=elf ;; 11331 esac 11332 fi 11333 version_type=freebsd-$objformat 11334 case $version_type in 11335 freebsd-elf*) 11336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 11337 need_version=no 11338 need_lib_prefix=no 11339 ;; 11340 freebsd-*) 11341 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 11342 need_version=yes 11343 ;; 11344 esac 11345 shlibpath_var=LD_LIBRARY_PATH 11346 case $host_os in 11347 freebsd2.*) 11348 shlibpath_overrides_runpath=yes 11349 ;; 11350 freebsd3.[01]* | freebsdelf3.[01]*) 11351 shlibpath_overrides_runpath=yes 11352 hardcode_into_libs=yes 11353 ;; 11354 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 11355 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 11356 shlibpath_overrides_runpath=no 11357 hardcode_into_libs=yes 11358 ;; 11359 *) # from 4.6 on, and DragonFly 11360 shlibpath_overrides_runpath=yes 11361 hardcode_into_libs=yes 11362 ;; 11363 esac 11364 ;; 11365 11366gnu*) 11367 version_type=linux # correct to gnu/linux during the next big refactor 11368 need_lib_prefix=no 11369 need_version=no 11370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 11371 soname_spec='${libname}${release}${shared_ext}$major' 11372 shlibpath_var=LD_LIBRARY_PATH 11373 shlibpath_overrides_runpath=no 11374 hardcode_into_libs=yes 11375 ;; 11376 11377haiku*) 11378 version_type=linux # correct to gnu/linux during the next big refactor 11379 need_lib_prefix=no 11380 need_version=no 11381 dynamic_linker="$host_os runtime_loader" 11382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 11383 soname_spec='${libname}${release}${shared_ext}$major' 11384 shlibpath_var=LIBRARY_PATH 11385 shlibpath_overrides_runpath=yes 11386 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 11387 hardcode_into_libs=yes 11388 ;; 11389 11390hpux9* | hpux10* | hpux11*) 11391 # Give a soname corresponding to the major version so that dld.sl refuses to 11392 # link against other versions. 11393 version_type=sunos 11394 need_lib_prefix=no 11395 need_version=no 11396 case $host_cpu in 11397 ia64*) 11398 shrext_cmds='.so' 11399 hardcode_into_libs=yes 11400 dynamic_linker="$host_os dld.so" 11401 shlibpath_var=LD_LIBRARY_PATH 11402 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11404 soname_spec='${libname}${release}${shared_ext}$major' 11405 if test "X$HPUX_IA64_MODE" = X32; then 11406 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11407 else 11408 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11409 fi 11410 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11411 ;; 11412 hppa*64*) 11413 shrext_cmds='.sl' 11414 hardcode_into_libs=yes 11415 dynamic_linker="$host_os dld.sl" 11416 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11417 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11419 soname_spec='${libname}${release}${shared_ext}$major' 11420 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11421 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11422 ;; 11423 *) 11424 shrext_cmds='.sl' 11425 dynamic_linker="$host_os dld.sl" 11426 shlibpath_var=SHLIB_PATH 11427 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11429 soname_spec='${libname}${release}${shared_ext}$major' 11430 ;; 11431 esac 11432 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 11433 postinstall_cmds='chmod 555 $lib' 11434 # or fails outright, so override atomically: 11435 install_override_mode=555 11436 ;; 11437 11438interix[3-9]*) 11439 version_type=linux # correct to gnu/linux during the next big refactor 11440 need_lib_prefix=no 11441 need_version=no 11442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11443 soname_spec='${libname}${release}${shared_ext}$major' 11444 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 11445 shlibpath_var=LD_LIBRARY_PATH 11446 shlibpath_overrides_runpath=no 11447 hardcode_into_libs=yes 11448 ;; 11449 11450irix5* | irix6* | nonstopux*) 11451 case $host_os in 11452 nonstopux*) version_type=nonstopux ;; 11453 *) 11454 if test "$lt_cv_prog_gnu_ld" = yes; then 11455 version_type=linux # correct to gnu/linux during the next big refactor 11456 else 11457 version_type=irix 11458 fi ;; 11459 esac 11460 need_lib_prefix=no 11461 need_version=no 11462 soname_spec='${libname}${release}${shared_ext}$major' 11463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 11464 case $host_os in 11465 irix5* | nonstopux*) 11466 libsuff= shlibsuff= 11467 ;; 11468 *) 11469 case $LD in # libtool.m4 will add one of these switches to LD 11470 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11471 libsuff= shlibsuff= libmagic=32-bit;; 11472 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11473 libsuff=32 shlibsuff=N32 libmagic=N32;; 11474 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11475 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11476 *) libsuff= shlibsuff= libmagic=never-match;; 11477 esac 11478 ;; 11479 esac 11480 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11481 shlibpath_overrides_runpath=no 11482 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 11483 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 11484 hardcode_into_libs=yes 11485 ;; 11486 11487# No shared lib support for Linux oldld, aout, or coff. 11488linux*oldld* | linux*aout* | linux*coff*) 11489 dynamic_linker=no 11490 ;; 11491 11492# This must be glibc/ELF. 11493linux* | k*bsd*-gnu | kopensolaris*-gnu) 11494 version_type=linux # correct to gnu/linux during the next big refactor 11495 need_lib_prefix=no 11496 need_version=no 11497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11498 soname_spec='${libname}${release}${shared_ext}$major' 11499 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11500 shlibpath_var=LD_LIBRARY_PATH 11501 shlibpath_overrides_runpath=no 11502 11503 # Some binutils ld are patched to set DT_RUNPATH 11504 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 11505 $as_echo_n "(cached) " >&6 11506else 11507 lt_cv_shlibpath_overrides_runpath=no 11508 save_LDFLAGS=$LDFLAGS 11509 save_libdir=$libdir 11510 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 11511 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 11512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11513/* end confdefs.h. */ 11514 11515int 11516main () 11517{ 11518 11519 ; 11520 return 0; 11521} 11522_ACEOF 11523if ac_fn_c_try_link "$LINENO"; then : 11524 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 11525 lt_cv_shlibpath_overrides_runpath=yes 11526fi 11527fi 11528rm -f core conftest.err conftest.$ac_objext \ 11529 conftest$ac_exeext conftest.$ac_ext 11530 LDFLAGS=$save_LDFLAGS 11531 libdir=$save_libdir 11532 11533fi 11534 11535 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 11536 11537 # This implies no fast_install, which is unacceptable. 11538 # Some rework will be needed to allow for fast_install 11539 # before this can be enabled. 11540 hardcode_into_libs=yes 11541 11542 # Append ld.so.conf contents to the search path 11543 if test -f /etc/ld.so.conf; then 11544 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' ' '` 11545 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 11546 fi 11547 11548 # We used to test for /lib/ld.so.1 and disable shared libraries on 11549 # powerpc, because MkLinux only supported shared libraries with the 11550 # GNU dynamic linker. Since this was broken with cross compilers, 11551 # most powerpc-linux boxes support dynamic linking these days and 11552 # people can always --disable-shared, the test was removed, and we 11553 # assume the GNU/Linux dynamic linker is in use. 11554 dynamic_linker='GNU/Linux ld.so' 11555 ;; 11556 11557netbsd*) 11558 version_type=sunos 11559 need_lib_prefix=no 11560 need_version=no 11561 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11562 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11563 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11564 dynamic_linker='NetBSD (a.out) ld.so' 11565 else 11566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11567 soname_spec='${libname}${release}${shared_ext}$major' 11568 dynamic_linker='NetBSD ld.elf_so' 11569 fi 11570 shlibpath_var=LD_LIBRARY_PATH 11571 shlibpath_overrides_runpath=yes 11572 hardcode_into_libs=yes 11573 ;; 11574 11575newsos6) 11576 version_type=linux # correct to gnu/linux during the next big refactor 11577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11578 shlibpath_var=LD_LIBRARY_PATH 11579 shlibpath_overrides_runpath=yes 11580 ;; 11581 11582*nto* | *qnx*) 11583 version_type=qnx 11584 need_lib_prefix=no 11585 need_version=no 11586 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11587 soname_spec='${libname}${release}${shared_ext}$major' 11588 shlibpath_var=LD_LIBRARY_PATH 11589 shlibpath_overrides_runpath=no 11590 hardcode_into_libs=yes 11591 dynamic_linker='ldqnx.so' 11592 ;; 11593 11594openbsd*) 11595 version_type=sunos 11596 sys_lib_dlsearch_path_spec="/usr/lib" 11597 need_lib_prefix=no 11598 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 11599 case $host_os in 11600 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 11601 *) need_version=no ;; 11602 esac 11603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11604 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11605 shlibpath_var=LD_LIBRARY_PATH 11606 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 11607 case $host_os in 11608 openbsd2.[89] | openbsd2.[89].*) 11609 shlibpath_overrides_runpath=no 11610 ;; 11611 *) 11612 shlibpath_overrides_runpath=yes 11613 ;; 11614 esac 11615 else 11616 shlibpath_overrides_runpath=yes 11617 fi 11618 ;; 11619 11620os2*) 11621 libname_spec='$name' 11622 shrext_cmds=".dll" 11623 need_lib_prefix=no 11624 library_names_spec='$libname${shared_ext} $libname.a' 11625 dynamic_linker='OS/2 ld.exe' 11626 shlibpath_var=LIBPATH 11627 ;; 11628 11629osf3* | osf4* | osf5*) 11630 version_type=osf 11631 need_lib_prefix=no 11632 need_version=no 11633 soname_spec='${libname}${release}${shared_ext}$major' 11634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11635 shlibpath_var=LD_LIBRARY_PATH 11636 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11637 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 11638 ;; 11639 11640rdos*) 11641 dynamic_linker=no 11642 ;; 11643 11644solaris*) 11645 version_type=linux # correct to gnu/linux during the next big refactor 11646 need_lib_prefix=no 11647 need_version=no 11648 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11649 soname_spec='${libname}${release}${shared_ext}$major' 11650 shlibpath_var=LD_LIBRARY_PATH 11651 shlibpath_overrides_runpath=yes 11652 hardcode_into_libs=yes 11653 # ldd complains unless libraries are executable 11654 postinstall_cmds='chmod +x $lib' 11655 ;; 11656 11657sunos4*) 11658 version_type=sunos 11659 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11660 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11661 shlibpath_var=LD_LIBRARY_PATH 11662 shlibpath_overrides_runpath=yes 11663 if test "$with_gnu_ld" = yes; then 11664 need_lib_prefix=no 11665 fi 11666 need_version=yes 11667 ;; 11668 11669sysv4 | sysv4.3*) 11670 version_type=linux # correct to gnu/linux during the next big refactor 11671 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11672 soname_spec='${libname}${release}${shared_ext}$major' 11673 shlibpath_var=LD_LIBRARY_PATH 11674 case $host_vendor in 11675 sni) 11676 shlibpath_overrides_runpath=no 11677 need_lib_prefix=no 11678 runpath_var=LD_RUN_PATH 11679 ;; 11680 siemens) 11681 need_lib_prefix=no 11682 ;; 11683 motorola) 11684 need_lib_prefix=no 11685 need_version=no 11686 shlibpath_overrides_runpath=no 11687 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11688 ;; 11689 esac 11690 ;; 11691 11692sysv4*MP*) 11693 if test -d /usr/nec ;then 11694 version_type=linux # correct to gnu/linux during the next big refactor 11695 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 11696 soname_spec='$libname${shared_ext}.$major' 11697 shlibpath_var=LD_LIBRARY_PATH 11698 fi 11699 ;; 11700 11701sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11702 version_type=freebsd-elf 11703 need_lib_prefix=no 11704 need_version=no 11705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 11706 soname_spec='${libname}${release}${shared_ext}$major' 11707 shlibpath_var=LD_LIBRARY_PATH 11708 shlibpath_overrides_runpath=yes 11709 hardcode_into_libs=yes 11710 if test "$with_gnu_ld" = yes; then 11711 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11712 else 11713 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11714 case $host_os in 11715 sco3.2v5*) 11716 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11717 ;; 11718 esac 11719 fi 11720 sys_lib_dlsearch_path_spec='/usr/lib' 11721 ;; 11722 11723tpf*) 11724 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 11725 version_type=linux # correct to gnu/linux during the next big refactor 11726 need_lib_prefix=no 11727 need_version=no 11728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11729 shlibpath_var=LD_LIBRARY_PATH 11730 shlibpath_overrides_runpath=no 11731 hardcode_into_libs=yes 11732 ;; 11733 11734uts4*) 11735 version_type=linux # correct to gnu/linux during the next big refactor 11736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11737 soname_spec='${libname}${release}${shared_ext}$major' 11738 shlibpath_var=LD_LIBRARY_PATH 11739 ;; 11740 11741*) 11742 dynamic_linker=no 11743 ;; 11744esac 11745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 11746$as_echo "$dynamic_linker" >&6; } 11747test "$dynamic_linker" = no && can_build_shared=no 11748 11749variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11750if test "$GCC" = yes; then 11751 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11752fi 11753 11754if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 11755 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 11756fi 11757if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 11758 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 11759fi 11760 11761 11762 11763 11764 11765 11766 11767 11768 11769 11770 11771 11772 11773 11774 11775 11776 11777 11778 11779 11780 11781 11782 11783 11784 11785 11786 11787 11788 11789 11790 11791 11792 11793 11794 11795 11796 11797 11798 11799 11800 11801 11802 11803 11804 11805 11806 11807 11808 11809 11810 11811 11812 11813 11814 11815 11816 11817 11818 11819 11820 11821 11822 11823 11824 11825 11826 11827 11828 11829 11830 11831 11832 11833 11834 11835 11836 11837 11838 11839 11840 11841 11842 11843 11844 11845 11846 11847 11848 11849 11850 11851 11852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 11853$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 11854hardcode_action= 11855if test -n "$hardcode_libdir_flag_spec" || 11856 test -n "$runpath_var" || 11857 test "X$hardcode_automatic" = "Xyes" ; then 11858 11859 # We can hardcode non-existent directories. 11860 if test "$hardcode_direct" != no && 11861 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11862 # have to relink, otherwise we might link with an installed library 11863 # when we should be linking with a yet-to-be-installed one 11864 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 11865 test "$hardcode_minus_L" != no; then 11866 # Linking always hardcodes the temporary library directory. 11867 hardcode_action=relink 11868 else 11869 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11870 hardcode_action=immediate 11871 fi 11872else 11873 # We cannot hardcode anything, or else we can only hardcode existing 11874 # directories. 11875 hardcode_action=unsupported 11876fi 11877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 11878$as_echo "$hardcode_action" >&6; } 11879 11880if test "$hardcode_action" = relink || 11881 test "$inherit_rpath" = yes; then 11882 # Fast installation is not supported 11883 enable_fast_install=no 11884elif test "$shlibpath_overrides_runpath" = yes || 11885 test "$enable_shared" = no; then 11886 # Fast installation is not necessary 11887 enable_fast_install=needless 11888fi 11889 11890 11891 11892 11893 11894 11895 if test "x$enable_dlopen" != xyes; then 11896 enable_dlopen=unknown 11897 enable_dlopen_self=unknown 11898 enable_dlopen_self_static=unknown 11899else 11900 lt_cv_dlopen=no 11901 lt_cv_dlopen_libs= 11902 11903 case $host_os in 11904 beos*) 11905 lt_cv_dlopen="load_add_on" 11906 lt_cv_dlopen_libs= 11907 lt_cv_dlopen_self=yes 11908 ;; 11909 11910 mingw* | pw32* | cegcc*) 11911 lt_cv_dlopen="LoadLibrary" 11912 lt_cv_dlopen_libs= 11913 ;; 11914 11915 cygwin*) 11916 lt_cv_dlopen="dlopen" 11917 lt_cv_dlopen_libs= 11918 ;; 11919 11920 darwin*) 11921 # if libdl is installed we need to link against it 11922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11923$as_echo_n "checking for dlopen in -ldl... " >&6; } 11924if ${ac_cv_lib_dl_dlopen+:} false; then : 11925 $as_echo_n "(cached) " >&6 11926else 11927 ac_check_lib_save_LIBS=$LIBS 11928LIBS="-ldl $LIBS" 11929cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11930/* end confdefs.h. */ 11931 11932/* Override any GCC internal prototype to avoid an error. 11933 Use char because int might match the return type of a GCC 11934 builtin and then its argument prototype would still apply. */ 11935#ifdef __cplusplus 11936extern "C" 11937#endif 11938char dlopen (); 11939int 11940main () 11941{ 11942return dlopen (); 11943 ; 11944 return 0; 11945} 11946_ACEOF 11947if ac_fn_c_try_link "$LINENO"; then : 11948 ac_cv_lib_dl_dlopen=yes 11949else 11950 ac_cv_lib_dl_dlopen=no 11951fi 11952rm -f core conftest.err conftest.$ac_objext \ 11953 conftest$ac_exeext conftest.$ac_ext 11954LIBS=$ac_check_lib_save_LIBS 11955fi 11956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11957$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11958if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11959 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11960else 11961 11962 lt_cv_dlopen="dyld" 11963 lt_cv_dlopen_libs= 11964 lt_cv_dlopen_self=yes 11965 11966fi 11967 11968 ;; 11969 11970 *) 11971 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 11972if test "x$ac_cv_func_shl_load" = xyes; then : 11973 lt_cv_dlopen="shl_load" 11974else 11975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 11976$as_echo_n "checking for shl_load in -ldld... " >&6; } 11977if ${ac_cv_lib_dld_shl_load+:} false; then : 11978 $as_echo_n "(cached) " >&6 11979else 11980 ac_check_lib_save_LIBS=$LIBS 11981LIBS="-ldld $LIBS" 11982cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11983/* end confdefs.h. */ 11984 11985/* Override any GCC internal prototype to avoid an error. 11986 Use char because int might match the return type of a GCC 11987 builtin and then its argument prototype would still apply. */ 11988#ifdef __cplusplus 11989extern "C" 11990#endif 11991char shl_load (); 11992int 11993main () 11994{ 11995return shl_load (); 11996 ; 11997 return 0; 11998} 11999_ACEOF 12000if ac_fn_c_try_link "$LINENO"; then : 12001 ac_cv_lib_dld_shl_load=yes 12002else 12003 ac_cv_lib_dld_shl_load=no 12004fi 12005rm -f core conftest.err conftest.$ac_objext \ 12006 conftest$ac_exeext conftest.$ac_ext 12007LIBS=$ac_check_lib_save_LIBS 12008fi 12009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 12010$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 12011if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 12012 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 12013else 12014 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 12015if test "x$ac_cv_func_dlopen" = xyes; then : 12016 lt_cv_dlopen="dlopen" 12017else 12018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12019$as_echo_n "checking for dlopen in -ldl... " >&6; } 12020if ${ac_cv_lib_dl_dlopen+:} false; then : 12021 $as_echo_n "(cached) " >&6 12022else 12023 ac_check_lib_save_LIBS=$LIBS 12024LIBS="-ldl $LIBS" 12025cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12026/* end confdefs.h. */ 12027 12028/* Override any GCC internal prototype to avoid an error. 12029 Use char because int might match the return type of a GCC 12030 builtin and then its argument prototype would still apply. */ 12031#ifdef __cplusplus 12032extern "C" 12033#endif 12034char dlopen (); 12035int 12036main () 12037{ 12038return dlopen (); 12039 ; 12040 return 0; 12041} 12042_ACEOF 12043if ac_fn_c_try_link "$LINENO"; then : 12044 ac_cv_lib_dl_dlopen=yes 12045else 12046 ac_cv_lib_dl_dlopen=no 12047fi 12048rm -f core conftest.err conftest.$ac_objext \ 12049 conftest$ac_exeext conftest.$ac_ext 12050LIBS=$ac_check_lib_save_LIBS 12051fi 12052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12053$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12054if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 12055 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 12056else 12057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 12058$as_echo_n "checking for dlopen in -lsvld... " >&6; } 12059if ${ac_cv_lib_svld_dlopen+:} false; then : 12060 $as_echo_n "(cached) " >&6 12061else 12062 ac_check_lib_save_LIBS=$LIBS 12063LIBS="-lsvld $LIBS" 12064cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12065/* end confdefs.h. */ 12066 12067/* Override any GCC internal prototype to avoid an error. 12068 Use char because int might match the return type of a GCC 12069 builtin and then its argument prototype would still apply. */ 12070#ifdef __cplusplus 12071extern "C" 12072#endif 12073char dlopen (); 12074int 12075main () 12076{ 12077return dlopen (); 12078 ; 12079 return 0; 12080} 12081_ACEOF 12082if ac_fn_c_try_link "$LINENO"; then : 12083 ac_cv_lib_svld_dlopen=yes 12084else 12085 ac_cv_lib_svld_dlopen=no 12086fi 12087rm -f core conftest.err conftest.$ac_objext \ 12088 conftest$ac_exeext conftest.$ac_ext 12089LIBS=$ac_check_lib_save_LIBS 12090fi 12091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 12092$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 12093if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 12094 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 12095else 12096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 12097$as_echo_n "checking for dld_link in -ldld... " >&6; } 12098if ${ac_cv_lib_dld_dld_link+:} false; then : 12099 $as_echo_n "(cached) " >&6 12100else 12101 ac_check_lib_save_LIBS=$LIBS 12102LIBS="-ldld $LIBS" 12103cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12104/* end confdefs.h. */ 12105 12106/* Override any GCC internal prototype to avoid an error. 12107 Use char because int might match the return type of a GCC 12108 builtin and then its argument prototype would still apply. */ 12109#ifdef __cplusplus 12110extern "C" 12111#endif 12112char dld_link (); 12113int 12114main () 12115{ 12116return dld_link (); 12117 ; 12118 return 0; 12119} 12120_ACEOF 12121if ac_fn_c_try_link "$LINENO"; then : 12122 ac_cv_lib_dld_dld_link=yes 12123else 12124 ac_cv_lib_dld_dld_link=no 12125fi 12126rm -f core conftest.err conftest.$ac_objext \ 12127 conftest$ac_exeext conftest.$ac_ext 12128LIBS=$ac_check_lib_save_LIBS 12129fi 12130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 12131$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 12132if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 12133 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 12134fi 12135 12136 12137fi 12138 12139 12140fi 12141 12142 12143fi 12144 12145 12146fi 12147 12148 12149fi 12150 12151 ;; 12152 esac 12153 12154 if test "x$lt_cv_dlopen" != xno; then 12155 enable_dlopen=yes 12156 else 12157 enable_dlopen=no 12158 fi 12159 12160 case $lt_cv_dlopen in 12161 dlopen) 12162 save_CPPFLAGS="$CPPFLAGS" 12163 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 12164 12165 save_LDFLAGS="$LDFLAGS" 12166 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 12167 12168 save_LIBS="$LIBS" 12169 LIBS="$lt_cv_dlopen_libs $LIBS" 12170 12171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 12172$as_echo_n "checking whether a program can dlopen itself... " >&6; } 12173if ${lt_cv_dlopen_self+:} false; then : 12174 $as_echo_n "(cached) " >&6 12175else 12176 if test "$cross_compiling" = yes; then : 12177 lt_cv_dlopen_self=cross 12178else 12179 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12180 lt_status=$lt_dlunknown 12181 cat > conftest.$ac_ext <<_LT_EOF 12182#line $LINENO "configure" 12183#include "confdefs.h" 12184 12185#if HAVE_DLFCN_H 12186#include <dlfcn.h> 12187#endif 12188 12189#include <stdio.h> 12190 12191#ifdef RTLD_GLOBAL 12192# define LT_DLGLOBAL RTLD_GLOBAL 12193#else 12194# ifdef DL_GLOBAL 12195# define LT_DLGLOBAL DL_GLOBAL 12196# else 12197# define LT_DLGLOBAL 0 12198# endif 12199#endif 12200 12201/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12202 find out it does not work in some platform. */ 12203#ifndef LT_DLLAZY_OR_NOW 12204# ifdef RTLD_LAZY 12205# define LT_DLLAZY_OR_NOW RTLD_LAZY 12206# else 12207# ifdef DL_LAZY 12208# define LT_DLLAZY_OR_NOW DL_LAZY 12209# else 12210# ifdef RTLD_NOW 12211# define LT_DLLAZY_OR_NOW RTLD_NOW 12212# else 12213# ifdef DL_NOW 12214# define LT_DLLAZY_OR_NOW DL_NOW 12215# else 12216# define LT_DLLAZY_OR_NOW 0 12217# endif 12218# endif 12219# endif 12220# endif 12221#endif 12222 12223/* When -fvisbility=hidden is used, assume the code has been annotated 12224 correspondingly for the symbols needed. */ 12225#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12226int fnord () __attribute__((visibility("default"))); 12227#endif 12228 12229int fnord () { return 42; } 12230int main () 12231{ 12232 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12233 int status = $lt_dlunknown; 12234 12235 if (self) 12236 { 12237 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12238 else 12239 { 12240 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12241 else puts (dlerror ()); 12242 } 12243 /* dlclose (self); */ 12244 } 12245 else 12246 puts (dlerror ()); 12247 12248 return status; 12249} 12250_LT_EOF 12251 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12252 (eval $ac_link) 2>&5 12253 ac_status=$? 12254 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12255 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 12256 (./conftest; exit; ) >&5 2>/dev/null 12257 lt_status=$? 12258 case x$lt_status in 12259 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 12260 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 12261 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 12262 esac 12263 else : 12264 # compilation failed 12265 lt_cv_dlopen_self=no 12266 fi 12267fi 12268rm -fr conftest* 12269 12270 12271fi 12272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 12273$as_echo "$lt_cv_dlopen_self" >&6; } 12274 12275 if test "x$lt_cv_dlopen_self" = xyes; then 12276 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 12277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 12278$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 12279if ${lt_cv_dlopen_self_static+:} false; then : 12280 $as_echo_n "(cached) " >&6 12281else 12282 if test "$cross_compiling" = yes; then : 12283 lt_cv_dlopen_self_static=cross 12284else 12285 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12286 lt_status=$lt_dlunknown 12287 cat > conftest.$ac_ext <<_LT_EOF 12288#line $LINENO "configure" 12289#include "confdefs.h" 12290 12291#if HAVE_DLFCN_H 12292#include <dlfcn.h> 12293#endif 12294 12295#include <stdio.h> 12296 12297#ifdef RTLD_GLOBAL 12298# define LT_DLGLOBAL RTLD_GLOBAL 12299#else 12300# ifdef DL_GLOBAL 12301# define LT_DLGLOBAL DL_GLOBAL 12302# else 12303# define LT_DLGLOBAL 0 12304# endif 12305#endif 12306 12307/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12308 find out it does not work in some platform. */ 12309#ifndef LT_DLLAZY_OR_NOW 12310# ifdef RTLD_LAZY 12311# define LT_DLLAZY_OR_NOW RTLD_LAZY 12312# else 12313# ifdef DL_LAZY 12314# define LT_DLLAZY_OR_NOW DL_LAZY 12315# else 12316# ifdef RTLD_NOW 12317# define LT_DLLAZY_OR_NOW RTLD_NOW 12318# else 12319# ifdef DL_NOW 12320# define LT_DLLAZY_OR_NOW DL_NOW 12321# else 12322# define LT_DLLAZY_OR_NOW 0 12323# endif 12324# endif 12325# endif 12326# endif 12327#endif 12328 12329/* When -fvisbility=hidden is used, assume the code has been annotated 12330 correspondingly for the symbols needed. */ 12331#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12332int fnord () __attribute__((visibility("default"))); 12333#endif 12334 12335int fnord () { return 42; } 12336int main () 12337{ 12338 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12339 int status = $lt_dlunknown; 12340 12341 if (self) 12342 { 12343 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12344 else 12345 { 12346 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12347 else puts (dlerror ()); 12348 } 12349 /* dlclose (self); */ 12350 } 12351 else 12352 puts (dlerror ()); 12353 12354 return status; 12355} 12356_LT_EOF 12357 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12358 (eval $ac_link) 2>&5 12359 ac_status=$? 12360 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12361 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 12362 (./conftest; exit; ) >&5 2>/dev/null 12363 lt_status=$? 12364 case x$lt_status in 12365 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12366 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12367 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 12368 esac 12369 else : 12370 # compilation failed 12371 lt_cv_dlopen_self_static=no 12372 fi 12373fi 12374rm -fr conftest* 12375 12376 12377fi 12378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 12379$as_echo "$lt_cv_dlopen_self_static" >&6; } 12380 fi 12381 12382 CPPFLAGS="$save_CPPFLAGS" 12383 LDFLAGS="$save_LDFLAGS" 12384 LIBS="$save_LIBS" 12385 ;; 12386 esac 12387 12388 case $lt_cv_dlopen_self in 12389 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 12390 *) enable_dlopen_self=unknown ;; 12391 esac 12392 12393 case $lt_cv_dlopen_self_static in 12394 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 12395 *) enable_dlopen_self_static=unknown ;; 12396 esac 12397fi 12398 12399 12400 12401 12402 12403 12404 12405 12406 12407 12408 12409 12410 12411 12412 12413 12414 12415striplib= 12416old_striplib= 12417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 12418$as_echo_n "checking whether stripping libraries is possible... " >&6; } 12419if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 12420 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 12421 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 12422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12423$as_echo "yes" >&6; } 12424else 12425# FIXME - insert some real tests, host_os isn't really good enough 12426 case $host_os in 12427 darwin*) 12428 if test -n "$STRIP" ; then 12429 striplib="$STRIP -x" 12430 old_striplib="$STRIP -S" 12431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12432$as_echo "yes" >&6; } 12433 else 12434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12435$as_echo "no" >&6; } 12436 fi 12437 ;; 12438 *) 12439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12440$as_echo "no" >&6; } 12441 ;; 12442 esac 12443fi 12444 12445 12446 12447 12448 12449 12450 12451 12452 12453 12454 12455 12456 # Report which library types will actually be built 12457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 12458$as_echo_n "checking if libtool supports shared libraries... " >&6; } 12459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 12460$as_echo "$can_build_shared" >&6; } 12461 12462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 12463$as_echo_n "checking whether to build shared libraries... " >&6; } 12464 test "$can_build_shared" = "no" && enable_shared=no 12465 12466 # On AIX, shared libraries and static libraries use the same namespace, and 12467 # are all built from PIC. 12468 case $host_os in 12469 aix3*) 12470 test "$enable_shared" = yes && enable_static=no 12471 if test -n "$RANLIB"; then 12472 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12473 postinstall_cmds='$RANLIB $lib' 12474 fi 12475 ;; 12476 12477 aix[4-9]*) 12478 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 12479 test "$enable_shared" = yes && enable_static=no 12480 fi 12481 ;; 12482 esac 12483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 12484$as_echo "$enable_shared" >&6; } 12485 12486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 12487$as_echo_n "checking whether to build static libraries... " >&6; } 12488 # Make sure either enable_shared or enable_static is yes. 12489 test "$enable_shared" = yes || enable_static=yes 12490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 12491$as_echo "$enable_static" >&6; } 12492 12493 12494 12495 12496fi 12497ac_ext=c 12498ac_cpp='$CPP $CPPFLAGS' 12499ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12500ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12501ac_compiler_gnu=$ac_cv_c_compiler_gnu 12502 12503CC="$lt_save_CC" 12504 12505 12506 12507 12508 12509 12510 12511 12512 12513 12514 12515 12516 12517 12518 12519 ac_config_commands="$ac_config_commands libtool" 12520 12521 12522 12523 12524# Only expand once: 12525 12526 12527 12528 12529 CFLAG_VISIBILITY= 12530 HAVE_VISIBILITY=0 12531 if test -n "$GCC"; then 12532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5 12533$as_echo_n "checking whether the -Werror option is usable... " >&6; } 12534 if ${gl_cv_cc_vis_werror+:} false; then : 12535 $as_echo_n "(cached) " >&6 12536else 12537 12538 gl_save_CFLAGS="$CFLAGS" 12539 CFLAGS="$CFLAGS -Werror" 12540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12541/* end confdefs.h. */ 12542 12543int 12544main () 12545{ 12546 12547 ; 12548 return 0; 12549} 12550_ACEOF 12551if ac_fn_c_try_compile "$LINENO"; then : 12552 gl_cv_cc_vis_werror=yes 12553else 12554 gl_cv_cc_vis_werror=no 12555fi 12556rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12557 CFLAGS="$gl_save_CFLAGS" 12558fi 12559 12560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5 12561$as_echo "$gl_cv_cc_vis_werror" >&6; } 12562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5 12563$as_echo_n "checking for simple visibility declarations... " >&6; } 12564 if ${gl_cv_cc_visibility+:} false; then : 12565 $as_echo_n "(cached) " >&6 12566else 12567 12568 gl_save_CFLAGS="$CFLAGS" 12569 CFLAGS="$CFLAGS -fvisibility=hidden" 12570 if test $gl_cv_cc_vis_werror = yes; then 12571 CFLAGS="$CFLAGS -Werror" 12572 fi 12573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12574/* end confdefs.h. */ 12575extern __attribute__((__visibility__("hidden"))) int hiddenvar; 12576 extern __attribute__((__visibility__("default"))) int exportedvar; 12577 extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void); 12578 extern __attribute__((__visibility__("default"))) int exportedfunc (void); 12579 void dummyfunc (void) {} 12580 12581int 12582main () 12583{ 12584 12585 ; 12586 return 0; 12587} 12588_ACEOF 12589if ac_fn_c_try_compile "$LINENO"; then : 12590 gl_cv_cc_visibility=yes 12591else 12592 gl_cv_cc_visibility=no 12593fi 12594rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12595 CFLAGS="$gl_save_CFLAGS" 12596fi 12597 12598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5 12599$as_echo "$gl_cv_cc_visibility" >&6; } 12600 if test $gl_cv_cc_visibility = yes; then 12601 CFLAG_VISIBILITY="-fvisibility=hidden" 12602 HAVE_VISIBILITY=1 12603 fi 12604 fi 12605 12606 12607 12608cat >>confdefs.h <<_ACEOF 12609#define HAVE_VISIBILITY $HAVE_VISIBILITY 12610_ACEOF 12611 12612 12613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 12614$as_echo_n "checking for ANSI C header files... " >&6; } 12615if ${ac_cv_header_stdc+:} false; then : 12616 $as_echo_n "(cached) " >&6 12617else 12618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12619/* end confdefs.h. */ 12620#include <stdlib.h> 12621#include <stdarg.h> 12622#include <string.h> 12623#include <float.h> 12624 12625int 12626main () 12627{ 12628 12629 ; 12630 return 0; 12631} 12632_ACEOF 12633if ac_fn_c_try_compile "$LINENO"; then : 12634 ac_cv_header_stdc=yes 12635else 12636 ac_cv_header_stdc=no 12637fi 12638rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12639 12640if test $ac_cv_header_stdc = yes; then 12641 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 12642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12643/* end confdefs.h. */ 12644#include <string.h> 12645 12646_ACEOF 12647if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12648 $EGREP "memchr" >/dev/null 2>&1; then : 12649 12650else 12651 ac_cv_header_stdc=no 12652fi 12653rm -f conftest* 12654 12655fi 12656 12657if test $ac_cv_header_stdc = yes; then 12658 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 12659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12660/* end confdefs.h. */ 12661#include <stdlib.h> 12662 12663_ACEOF 12664if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12665 $EGREP "free" >/dev/null 2>&1; then : 12666 12667else 12668 ac_cv_header_stdc=no 12669fi 12670rm -f conftest* 12671 12672fi 12673 12674if test $ac_cv_header_stdc = yes; then 12675 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 12676 if test "$cross_compiling" = yes; then : 12677 : 12678else 12679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12680/* end confdefs.h. */ 12681#include <ctype.h> 12682#include <stdlib.h> 12683#if ((' ' & 0x0FF) == 0x020) 12684# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 12685# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 12686#else 12687# define ISLOWER(c) \ 12688 (('a' <= (c) && (c) <= 'i') \ 12689 || ('j' <= (c) && (c) <= 'r') \ 12690 || ('s' <= (c) && (c) <= 'z')) 12691# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 12692#endif 12693 12694#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 12695int 12696main () 12697{ 12698 int i; 12699 for (i = 0; i < 256; i++) 12700 if (XOR (islower (i), ISLOWER (i)) 12701 || toupper (i) != TOUPPER (i)) 12702 return 2; 12703 return 0; 12704} 12705_ACEOF 12706if ac_fn_c_try_run "$LINENO"; then : 12707 12708else 12709 ac_cv_header_stdc=no 12710fi 12711rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12712 conftest.$ac_objext conftest.beam conftest.$ac_ext 12713fi 12714 12715fi 12716fi 12717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 12718$as_echo "$ac_cv_header_stdc" >&6; } 12719if test $ac_cv_header_stdc = yes; then 12720 12721$as_echo "#define STDC_HEADERS 1" >>confdefs.h 12722 12723fi 12724 12725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5 12726$as_echo_n "checking whether sys/types.h defines makedev... " >&6; } 12727if ${ac_cv_header_sys_types_h_makedev+:} false; then : 12728 $as_echo_n "(cached) " >&6 12729else 12730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12731/* end confdefs.h. */ 12732#include <sys/types.h> 12733int 12734main () 12735{ 12736return makedev(0, 0); 12737 ; 12738 return 0; 12739} 12740_ACEOF 12741if ac_fn_c_try_link "$LINENO"; then : 12742 ac_cv_header_sys_types_h_makedev=yes 12743else 12744 ac_cv_header_sys_types_h_makedev=no 12745fi 12746rm -f core conftest.err conftest.$ac_objext \ 12747 conftest$ac_exeext conftest.$ac_ext 12748 12749fi 12750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5 12751$as_echo "$ac_cv_header_sys_types_h_makedev" >&6; } 12752 12753if test $ac_cv_header_sys_types_h_makedev = no; then 12754ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default" 12755if test "x$ac_cv_header_sys_mkdev_h" = xyes; then : 12756 12757$as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h 12758 12759fi 12760 12761 12762 12763 if test $ac_cv_header_sys_mkdev_h = no; then 12764 ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default" 12765if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then : 12766 12767$as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h 12768 12769fi 12770 12771 12772 fi 12773fi 12774 12775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5 12776$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } 12777if ${ac_cv_header_sys_wait_h+:} false; then : 12778 $as_echo_n "(cached) " >&6 12779else 12780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12781/* end confdefs.h. */ 12782#include <sys/types.h> 12783#include <sys/wait.h> 12784#ifndef WEXITSTATUS 12785# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) 12786#endif 12787#ifndef WIFEXITED 12788# define WIFEXITED(stat_val) (((stat_val) & 255) == 0) 12789#endif 12790 12791int 12792main () 12793{ 12794 int s; 12795 wait (&s); 12796 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 12797 ; 12798 return 0; 12799} 12800_ACEOF 12801if ac_fn_c_try_compile "$LINENO"; then : 12802 ac_cv_header_sys_wait_h=yes 12803else 12804 ac_cv_header_sys_wait_h=no 12805fi 12806rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12807fi 12808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5 12809$as_echo "$ac_cv_header_sys_wait_h" >&6; } 12810if test $ac_cv_header_sys_wait_h = yes; then 12811 12812$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h 12813 12814fi 12815 12816for ac_header in stdint.h fcntl.h inttypes.h unistd.h 12817do : 12818 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 12819ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 12820if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 12821 cat >>confdefs.h <<_ACEOF 12822#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 12823_ACEOF 12824 12825fi 12826 12827done 12828 12829for ac_header in utime.h wchar.h wctype.h 12830do : 12831 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 12832ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 12833if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 12834 cat >>confdefs.h <<_ACEOF 12835#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 12836_ACEOF 12837 12838fi 12839 12840done 12841 12842for ac_header in getopt.h err.h xlocale.h 12843do : 12844 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 12845ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 12846if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 12847 cat >>confdefs.h <<_ACEOF 12848#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 12849_ACEOF 12850 12851fi 12852 12853done 12854 12855for ac_header in sys/mman.h sys/stat.h sys/types.h sys/utime.h sys/time.h sys/sysmacros.h 12856do : 12857 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 12858ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 12859if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 12860 cat >>confdefs.h <<_ACEOF 12861#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 12862_ACEOF 12863 12864fi 12865 12866done 12867 12868if test "$enable_zlib" != "no"; then 12869 for ac_header in zlib.h 12870do : 12871 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default" 12872if test "x$ac_cv_header_zlib_h" = xyes; then : 12873 cat >>confdefs.h <<_ACEOF 12874#define HAVE_ZLIB_H 1 12875_ACEOF 12876 12877fi 12878 12879done 12880 12881fi 12882ac_fn_c_check_type "$LINENO" "sig_t" "ac_cv_type_sig_t" "#include <signal.h> 12883" 12884if test "x$ac_cv_type_sig_t" = xyes; then : 12885 12886$as_echo "#define HAVE_SIG_T 1" >>confdefs.h 12887 12888fi 12889 12890 12891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 12892$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 12893if ${ac_cv_c_const+:} false; then : 12894 $as_echo_n "(cached) " >&6 12895else 12896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12897/* end confdefs.h. */ 12898 12899int 12900main () 12901{ 12902 12903#ifndef __cplusplus 12904 /* Ultrix mips cc rejects this sort of thing. */ 12905 typedef int charset[2]; 12906 const charset cs = { 0, 0 }; 12907 /* SunOS 4.1.1 cc rejects this. */ 12908 char const *const *pcpcc; 12909 char **ppc; 12910 /* NEC SVR4.0.2 mips cc rejects this. */ 12911 struct point {int x, y;}; 12912 static struct point const zero = {0,0}; 12913 /* AIX XL C 1.02.0.0 rejects this. 12914 It does not let you subtract one const X* pointer from another in 12915 an arm of an if-expression whose if-part is not a constant 12916 expression */ 12917 const char *g = "string"; 12918 pcpcc = &g + (g ? g-g : 0); 12919 /* HPUX 7.0 cc rejects these. */ 12920 ++pcpcc; 12921 ppc = (char**) pcpcc; 12922 pcpcc = (char const *const *) ppc; 12923 { /* SCO 3.2v4 cc rejects this sort of thing. */ 12924 char tx; 12925 char *t = &tx; 12926 char const *s = 0 ? (char *) 0 : (char const *) 0; 12927 12928 *t++ = 0; 12929 if (s) return 0; 12930 } 12931 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 12932 int x[] = {25, 17}; 12933 const int *foo = &x[0]; 12934 ++foo; 12935 } 12936 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 12937 typedef const int *iptr; 12938 iptr p = 0; 12939 ++p; 12940 } 12941 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 12942 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 12943 struct s { int j; const int *ap[3]; } bx; 12944 struct s *b = &bx; b->j = 5; 12945 } 12946 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 12947 const int foo = 10; 12948 if (!foo) return 0; 12949 } 12950 return !cs[0] && !zero.x; 12951#endif 12952 12953 ; 12954 return 0; 12955} 12956_ACEOF 12957if ac_fn_c_try_compile "$LINENO"; then : 12958 ac_cv_c_const=yes 12959else 12960 ac_cv_c_const=no 12961fi 12962rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12963fi 12964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 12965$as_echo "$ac_cv_c_const" >&6; } 12966if test $ac_cv_c_const = no; then 12967 12968$as_echo "#define const /**/" >>confdefs.h 12969 12970fi 12971 12972ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" 12973if test "x$ac_cv_type_off_t" = xyes; then : 12974 12975else 12976 12977cat >>confdefs.h <<_ACEOF 12978#define off_t long int 12979_ACEOF 12980 12981fi 12982 12983ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 12984if test "x$ac_cv_type_size_t" = xyes; then : 12985 12986else 12987 12988cat >>confdefs.h <<_ACEOF 12989#define size_t unsigned int 12990_ACEOF 12991 12992fi 12993 12994ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default" 12995if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then : 12996 12997cat >>confdefs.h <<_ACEOF 12998#define HAVE_STRUCT_STAT_ST_RDEV 1 12999_ACEOF 13000 13001 13002fi 13003 13004 13005ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h> 13006" 13007if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then : 13008 13009cat >>confdefs.h <<_ACEOF 13010#define HAVE_STRUCT_TM_TM_GMTOFF 1 13011_ACEOF 13012 13013 13014fi 13015 13016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 13017$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } 13018if ${ac_cv_struct_tm+:} false; then : 13019 $as_echo_n "(cached) " >&6 13020else 13021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13022/* end confdefs.h. */ 13023#include <sys/types.h> 13024#include <time.h> 13025 13026int 13027main () 13028{ 13029struct tm tm; 13030 int *p = &tm.tm_sec; 13031 return !p; 13032 ; 13033 return 0; 13034} 13035_ACEOF 13036if ac_fn_c_try_compile "$LINENO"; then : 13037 ac_cv_struct_tm=time.h 13038else 13039 ac_cv_struct_tm=sys/time.h 13040fi 13041rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13042fi 13043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 13044$as_echo "$ac_cv_struct_tm" >&6; } 13045if test $ac_cv_struct_tm = sys/time.h; then 13046 13047$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h 13048 13049fi 13050 13051ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h> 13052#include <$ac_cv_struct_tm> 13053 13054" 13055if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then : 13056 13057cat >>confdefs.h <<_ACEOF 13058#define HAVE_STRUCT_TM_TM_ZONE 1 13059_ACEOF 13060 13061 13062fi 13063 13064if test "$ac_cv_member_struct_tm_tm_zone" = yes; then 13065 13066$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h 13067 13068else 13069 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h> 13070" 13071if test "x$ac_cv_have_decl_tzname" = xyes; then : 13072 ac_have_decl=1 13073else 13074 ac_have_decl=0 13075fi 13076 13077cat >>confdefs.h <<_ACEOF 13078#define HAVE_DECL_TZNAME $ac_have_decl 13079_ACEOF 13080 13081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5 13082$as_echo_n "checking for tzname... " >&6; } 13083if ${ac_cv_var_tzname+:} false; then : 13084 $as_echo_n "(cached) " >&6 13085else 13086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13087/* end confdefs.h. */ 13088#include <time.h> 13089#if !HAVE_DECL_TZNAME 13090extern char *tzname[]; 13091#endif 13092 13093int 13094main () 13095{ 13096return tzname[0][0]; 13097 ; 13098 return 0; 13099} 13100_ACEOF 13101if ac_fn_c_try_link "$LINENO"; then : 13102 ac_cv_var_tzname=yes 13103else 13104 ac_cv_var_tzname=no 13105fi 13106rm -f core conftest.err conftest.$ac_objext \ 13107 conftest$ac_exeext conftest.$ac_ext 13108fi 13109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5 13110$as_echo "$ac_cv_var_tzname" >&6; } 13111 if test $ac_cv_var_tzname = yes; then 13112 13113$as_echo "#define HAVE_TZNAME 1" >>confdefs.h 13114 13115 fi 13116fi 13117 13118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_zone in struct tm" >&5 13119$as_echo_n "checking for tm_zone in struct tm... " >&6; } 13120if ${ac_cv_struct_tm_zone+:} false; then : 13121 $as_echo_n "(cached) " >&6 13122else 13123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13124/* end confdefs.h. */ 13125#include <sys/types.h> 13126#include <$ac_cv_struct_tm> 13127int 13128main () 13129{ 13130struct tm tm; tm.tm_zone; 13131 ; 13132 return 0; 13133} 13134_ACEOF 13135if ac_fn_c_try_compile "$LINENO"; then : 13136 ac_cv_struct_tm_zone=yes 13137else 13138 ac_cv_struct_tm_zone=no 13139fi 13140rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13141fi 13142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm_zone" >&5 13143$as_echo "$ac_cv_struct_tm_zone" >&6; } 13144if test "$ac_cv_struct_tm_zone" = yes; then 13145 13146$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h 13147 13148fi 13149 13150# On SGI, apparently tzname is a #define, but that's ok, AC_CHECK_DECL will 13151# consider it declared and we won't give our own extern. 13152ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h> 13153" 13154if test "x$ac_cv_have_decl_tzname" = xyes; then : 13155 ac_have_decl=1 13156else 13157 ac_have_decl=0 13158fi 13159 13160cat >>confdefs.h <<_ACEOF 13161#define HAVE_DECL_TZNAME $ac_have_decl 13162_ACEOF 13163 13164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5 13165$as_echo_n "checking for tzname... " >&6; } 13166if ${ac_cv_var_tzname+:} false; then : 13167 $as_echo_n "(cached) " >&6 13168else 13169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13170/* end confdefs.h. */ 13171#include <time.h> 13172#if !HAVE_DECL_TZNAME 13173extern char *tzname[]; 13174#endif 13175int 13176main () 13177{ 13178return tzname[0][0]; 13179 ; 13180 return 0; 13181} 13182_ACEOF 13183if ac_fn_c_try_link "$LINENO"; then : 13184 ac_cv_var_tzname=yes 13185else 13186 ac_cv_var_tzname=no 13187fi 13188rm -f core conftest.err conftest.$ac_objext \ 13189 conftest$ac_exeext conftest.$ac_ext 13190fi 13191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5 13192$as_echo "$ac_cv_var_tzname" >&6; } 13193 if test $ac_cv_var_tzname = yes; then 13194 13195$as_echo "#define HAVE_TZNAME 1" >>confdefs.h 13196 13197 fi 13198 13199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_isdst in struct tm" >&5 13200$as_echo_n "checking for tm_isdst in struct tm... " >&6; } 13201if ${ac_cv_struct_tm_isdst+:} false; then : 13202 $as_echo_n "(cached) " >&6 13203else 13204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13205/* end confdefs.h. */ 13206#include <sys/types.h> 13207#include <$ac_cv_struct_tm> 13208int 13209main () 13210{ 13211struct tm tm; tm.tm_isdst; 13212 ; 13213 return 0; 13214} 13215_ACEOF 13216if ac_fn_c_try_compile "$LINENO"; then : 13217 ac_cv_struct_tm_isdst=yes 13218else 13219 ac_cv_struct_tm_isdst=no 13220fi 13221rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13222fi 13223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm_isdst" >&5 13224$as_echo "$ac_cv_struct_tm_isdst" >&6; } 13225if test "$ac_cv_struct_tm_isdst" = yes; then 13226 13227$as_echo "#define HAVE_TM_ISDST 1" >>confdefs.h 13228 13229fi 13230 13231 13232ac_fn_c_check_decl "$LINENO" "daylight" "ac_cv_have_decl_daylight" "#include <time.h> 13233" 13234if test "x$ac_cv_have_decl_daylight" = xyes; then : 13235 ac_have_decl=1 13236else 13237 ac_have_decl=0 13238fi 13239 13240cat >>confdefs.h <<_ACEOF 13241#define HAVE_DECL_DAYLIGHT $ac_have_decl 13242_ACEOF 13243 13244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for daylight" >&5 13245$as_echo_n "checking for daylight... " >&6; } 13246if ${ac_cv_var_daylight+:} false; then : 13247 $as_echo_n "(cached) " >&6 13248else 13249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13250/* end confdefs.h. */ 13251#include <time.h> 13252#if !HAVE_DECL_DAYLIGHT 13253extern int daylight; 13254#endif 13255int 13256main () 13257{ 13258atoi(daylight); 13259 ; 13260 return 0; 13261} 13262_ACEOF 13263if ac_fn_c_try_link "$LINENO"; then : 13264 ac_cv_var_daylight=yes 13265else 13266 ac_cv_var_daylight=no 13267fi 13268rm -f core conftest.err conftest.$ac_objext \ 13269 conftest$ac_exeext conftest.$ac_ext 13270fi 13271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_daylight" >&5 13272$as_echo "$ac_cv_var_daylight" >&6; } 13273 if test $ac_cv_var_daylight = yes; then 13274 13275$as_echo "#define HAVE_DAYLIGHT 1" >>confdefs.h 13276 13277 fi 13278 13279# Check whether --enable-largefile was given. 13280if test "${enable_largefile+set}" = set; then : 13281 enableval=$enable_largefile; 13282fi 13283 13284if test "$enable_largefile" != no; then 13285 13286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 13287$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 13288if ${ac_cv_sys_largefile_CC+:} false; then : 13289 $as_echo_n "(cached) " >&6 13290else 13291 ac_cv_sys_largefile_CC=no 13292 if test "$GCC" != yes; then 13293 ac_save_CC=$CC 13294 while :; do 13295 # IRIX 6.2 and later do not support large files by default, 13296 # so use the C compiler's -n32 option if that helps. 13297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13298/* end confdefs.h. */ 13299#include <sys/types.h> 13300 /* Check that off_t can represent 2**63 - 1 correctly. 13301 We can't simply define LARGE_OFF_T to be 9223372036854775807, 13302 since some C++ compilers masquerading as C compilers 13303 incorrectly reject 9223372036854775807. */ 13304#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 13305 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 13306 && LARGE_OFF_T % 2147483647 == 1) 13307 ? 1 : -1]; 13308int 13309main () 13310{ 13311 13312 ; 13313 return 0; 13314} 13315_ACEOF 13316 if ac_fn_c_try_compile "$LINENO"; then : 13317 break 13318fi 13319rm -f core conftest.err conftest.$ac_objext 13320 CC="$CC -n32" 13321 if ac_fn_c_try_compile "$LINENO"; then : 13322 ac_cv_sys_largefile_CC=' -n32'; break 13323fi 13324rm -f core conftest.err conftest.$ac_objext 13325 break 13326 done 13327 CC=$ac_save_CC 13328 rm -f conftest.$ac_ext 13329 fi 13330fi 13331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 13332$as_echo "$ac_cv_sys_largefile_CC" >&6; } 13333 if test "$ac_cv_sys_largefile_CC" != no; then 13334 CC=$CC$ac_cv_sys_largefile_CC 13335 fi 13336 13337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 13338$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 13339if ${ac_cv_sys_file_offset_bits+:} false; then : 13340 $as_echo_n "(cached) " >&6 13341else 13342 while :; do 13343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13344/* end confdefs.h. */ 13345#include <sys/types.h> 13346 /* Check that off_t can represent 2**63 - 1 correctly. 13347 We can't simply define LARGE_OFF_T to be 9223372036854775807, 13348 since some C++ compilers masquerading as C compilers 13349 incorrectly reject 9223372036854775807. */ 13350#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 13351 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 13352 && LARGE_OFF_T % 2147483647 == 1) 13353 ? 1 : -1]; 13354int 13355main () 13356{ 13357 13358 ; 13359 return 0; 13360} 13361_ACEOF 13362if ac_fn_c_try_compile "$LINENO"; then : 13363 ac_cv_sys_file_offset_bits=no; break 13364fi 13365rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13367/* end confdefs.h. */ 13368#define _FILE_OFFSET_BITS 64 13369#include <sys/types.h> 13370 /* Check that off_t can represent 2**63 - 1 correctly. 13371 We can't simply define LARGE_OFF_T to be 9223372036854775807, 13372 since some C++ compilers masquerading as C compilers 13373 incorrectly reject 9223372036854775807. */ 13374#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 13375 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 13376 && LARGE_OFF_T % 2147483647 == 1) 13377 ? 1 : -1]; 13378int 13379main () 13380{ 13381 13382 ; 13383 return 0; 13384} 13385_ACEOF 13386if ac_fn_c_try_compile "$LINENO"; then : 13387 ac_cv_sys_file_offset_bits=64; break 13388fi 13389rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13390 ac_cv_sys_file_offset_bits=unknown 13391 break 13392done 13393fi 13394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 13395$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 13396case $ac_cv_sys_file_offset_bits in #( 13397 no | unknown) ;; 13398 *) 13399cat >>confdefs.h <<_ACEOF 13400#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 13401_ACEOF 13402;; 13403esac 13404rm -rf conftest* 13405 if test $ac_cv_sys_file_offset_bits = unknown; then 13406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 13407$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 13408if ${ac_cv_sys_large_files+:} false; then : 13409 $as_echo_n "(cached) " >&6 13410else 13411 while :; do 13412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13413/* end confdefs.h. */ 13414#include <sys/types.h> 13415 /* Check that off_t can represent 2**63 - 1 correctly. 13416 We can't simply define LARGE_OFF_T to be 9223372036854775807, 13417 since some C++ compilers masquerading as C compilers 13418 incorrectly reject 9223372036854775807. */ 13419#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 13420 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 13421 && LARGE_OFF_T % 2147483647 == 1) 13422 ? 1 : -1]; 13423int 13424main () 13425{ 13426 13427 ; 13428 return 0; 13429} 13430_ACEOF 13431if ac_fn_c_try_compile "$LINENO"; then : 13432 ac_cv_sys_large_files=no; break 13433fi 13434rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13436/* end confdefs.h. */ 13437#define _LARGE_FILES 1 13438#include <sys/types.h> 13439 /* Check that off_t can represent 2**63 - 1 correctly. 13440 We can't simply define LARGE_OFF_T to be 9223372036854775807, 13441 since some C++ compilers masquerading as C compilers 13442 incorrectly reject 9223372036854775807. */ 13443#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 13444 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 13445 && LARGE_OFF_T % 2147483647 == 1) 13446 ? 1 : -1]; 13447int 13448main () 13449{ 13450 13451 ; 13452 return 0; 13453} 13454_ACEOF 13455if ac_fn_c_try_compile "$LINENO"; then : 13456 ac_cv_sys_large_files=1; break 13457fi 13458rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13459 ac_cv_sys_large_files=unknown 13460 break 13461done 13462fi 13463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 13464$as_echo "$ac_cv_sys_large_files" >&6; } 13465case $ac_cv_sys_large_files in #( 13466 no | unknown) ;; 13467 *) 13468cat >>confdefs.h <<_ACEOF 13469#define _LARGE_FILES $ac_cv_sys_large_files 13470_ACEOF 13471;; 13472esac 13473rm -rf conftest* 13474 fi 13475 13476 13477fi 13478 13479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5 13480$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; } 13481if ${ac_cv_sys_largefile_source+:} false; then : 13482 $as_echo_n "(cached) " >&6 13483else 13484 while :; do 13485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13486/* end confdefs.h. */ 13487#include <sys/types.h> /* for off_t */ 13488 #include <stdio.h> 13489int 13490main () 13491{ 13492int (*fp) (FILE *, off_t, int) = fseeko; 13493 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); 13494 ; 13495 return 0; 13496} 13497_ACEOF 13498if ac_fn_c_try_link "$LINENO"; then : 13499 ac_cv_sys_largefile_source=no; break 13500fi 13501rm -f core conftest.err conftest.$ac_objext \ 13502 conftest$ac_exeext conftest.$ac_ext 13503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13504/* end confdefs.h. */ 13505#define _LARGEFILE_SOURCE 1 13506#include <sys/types.h> /* for off_t */ 13507 #include <stdio.h> 13508int 13509main () 13510{ 13511int (*fp) (FILE *, off_t, int) = fseeko; 13512 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); 13513 ; 13514 return 0; 13515} 13516_ACEOF 13517if ac_fn_c_try_link "$LINENO"; then : 13518 ac_cv_sys_largefile_source=1; break 13519fi 13520rm -f core conftest.err conftest.$ac_objext \ 13521 conftest$ac_exeext conftest.$ac_ext 13522 ac_cv_sys_largefile_source=unknown 13523 break 13524done 13525fi 13526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5 13527$as_echo "$ac_cv_sys_largefile_source" >&6; } 13528case $ac_cv_sys_largefile_source in #( 13529 no | unknown) ;; 13530 *) 13531cat >>confdefs.h <<_ACEOF 13532#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source 13533_ACEOF 13534;; 13535esac 13536rm -rf conftest* 13537 13538# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug 13539# in glibc 2.1.3, but that breaks too many other things. 13540# If you want fseeko and ftello with glibc, upgrade to a fixed glibc. 13541if test $ac_cv_sys_largefile_source != unknown; then 13542 13543$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h 13544 13545fi 13546 13547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5 13548$as_echo_n "checking for mbstate_t... " >&6; } 13549if ${ac_cv_type_mbstate_t+:} false; then : 13550 $as_echo_n "(cached) " >&6 13551else 13552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13553/* end confdefs.h. */ 13554$ac_includes_default 13555# include <wchar.h> 13556int 13557main () 13558{ 13559mbstate_t x; return sizeof x; 13560 ; 13561 return 0; 13562} 13563_ACEOF 13564if ac_fn_c_try_compile "$LINENO"; then : 13565 ac_cv_type_mbstate_t=yes 13566else 13567 ac_cv_type_mbstate_t=no 13568fi 13569rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13570fi 13571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5 13572$as_echo "$ac_cv_type_mbstate_t" >&6; } 13573 if test $ac_cv_type_mbstate_t = yes; then 13574 13575$as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h 13576 13577 else 13578 13579$as_echo "#define mbstate_t int" >>confdefs.h 13580 13581 fi 13582 13583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct option in getopt" >&5 13584$as_echo_n "checking for struct option in getopt... " >&6; } 13585if ${ac_cv_struct_option_getopt_h+:} false; then : 13586 $as_echo_n "(cached) " >&6 13587else 13588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13589/* end confdefs.h. */ 13590#include <getopt.h> 13591int 13592main () 13593{ 13594struct option op; op.name; 13595 ; 13596 return 0; 13597} 13598_ACEOF 13599if ac_fn_c_try_compile "$LINENO"; then : 13600 ac_cv_struct_option_getopt_h=yes 13601else 13602 ac_cv_struct_option_getopt_h=no 13603fi 13604rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13605fi 13606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_option_getopt_h" >&5 13607$as_echo "$ac_cv_struct_option_getopt_h" >&6; } 13608if test "$ac_cv_struct_option_getopt_h" = yes; then 13609 13610$as_echo "#define HAVE_STRUCT_OPTION 1" >>confdefs.h 13611 13612fi 13613 13614ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" 13615if test "x$ac_cv_type_pid_t" = xyes; then : 13616 13617else 13618 13619cat >>confdefs.h <<_ACEOF 13620#define pid_t int 13621_ACEOF 13622 13623fi 13624 13625ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t" 13626case $ac_cv_c_uint8_t in #( 13627 no|yes) ;; #( 13628 *) 13629 13630$as_echo "#define _UINT8_T 1" >>confdefs.h 13631 13632 13633cat >>confdefs.h <<_ACEOF 13634#define uint8_t $ac_cv_c_uint8_t 13635_ACEOF 13636;; 13637 esac 13638 13639ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t" 13640case $ac_cv_c_uint16_t in #( 13641 no|yes) ;; #( 13642 *) 13643 13644 13645cat >>confdefs.h <<_ACEOF 13646#define uint16_t $ac_cv_c_uint16_t 13647_ACEOF 13648;; 13649 esac 13650 13651ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t" 13652case $ac_cv_c_uint32_t in #( 13653 no|yes) ;; #( 13654 *) 13655 13656$as_echo "#define _UINT32_T 1" >>confdefs.h 13657 13658 13659cat >>confdefs.h <<_ACEOF 13660#define uint32_t $ac_cv_c_uint32_t 13661_ACEOF 13662;; 13663 esac 13664 13665ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t" 13666case $ac_cv_c_int32_t in #( 13667 no|yes) ;; #( 13668 *) 13669 13670cat >>confdefs.h <<_ACEOF 13671#define int32_t $ac_cv_c_int32_t 13672_ACEOF 13673;; 13674esac 13675 13676ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t" 13677case $ac_cv_c_uint64_t in #( 13678 no|yes) ;; #( 13679 *) 13680 13681$as_echo "#define _UINT64_T 1" >>confdefs.h 13682 13683 13684cat >>confdefs.h <<_ACEOF 13685#define uint64_t $ac_cv_c_uint64_t 13686_ACEOF 13687;; 13688 esac 13689 13690ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t" 13691case $ac_cv_c_int64_t in #( 13692 no|yes) ;; #( 13693 *) 13694 13695cat >>confdefs.h <<_ACEOF 13696#define int64_t $ac_cv_c_int64_t 13697_ACEOF 13698;; 13699esac 13700 13701 13702 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default" 13703if test "x$ac_cv_type_intptr_t" = xyes; then : 13704 13705$as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h 13706 13707else 13708 for ac_type in 'int' 'long int' 'long long int'; do 13709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13710/* end confdefs.h. */ 13711$ac_includes_default 13712int 13713main () 13714{ 13715static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))]; 13716test_array [0] = 0; 13717return test_array [0]; 13718 13719 ; 13720 return 0; 13721} 13722_ACEOF 13723if ac_fn_c_try_compile "$LINENO"; then : 13724 13725cat >>confdefs.h <<_ACEOF 13726#define intptr_t $ac_type 13727_ACEOF 13728 13729 ac_type= 13730fi 13731rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13732 test -z "$ac_type" && break 13733 done 13734fi 13735 13736 13737 13738 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default" 13739if test "x$ac_cv_type_uintptr_t" = xyes; then : 13740 13741$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h 13742 13743else 13744 for ac_type in 'unsigned int' 'unsigned long int' \ 13745 'unsigned long long int'; do 13746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13747/* end confdefs.h. */ 13748$ac_includes_default 13749int 13750main () 13751{ 13752static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))]; 13753test_array [0] = 0; 13754return test_array [0]; 13755 13756 ; 13757 return 0; 13758} 13759_ACEOF 13760if ac_fn_c_try_compile "$LINENO"; then : 13761 13762cat >>confdefs.h <<_ACEOF 13763#define uintptr_t $ac_type 13764_ACEOF 13765 13766 ac_type= 13767fi 13768rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13769 test -z "$ac_type" && break 13770 done 13771fi 13772 13773 13774 13775 13776 13777 for ac_header in $ac_header_list 13778do : 13779 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 13780ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 13781" 13782if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 13783 cat >>confdefs.h <<_ACEOF 13784#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 13785_ACEOF 13786 13787fi 13788 13789done 13790 13791 13792 13793 13794 13795 13796 13797 13798for ac_func in getpagesize 13799do : 13800 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" 13801if test "x$ac_cv_func_getpagesize" = xyes; then : 13802 cat >>confdefs.h <<_ACEOF 13803#define HAVE_GETPAGESIZE 1 13804_ACEOF 13805 13806fi 13807done 13808 13809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5 13810$as_echo_n "checking for working mmap... " >&6; } 13811if ${ac_cv_func_mmap_fixed_mapped+:} false; then : 13812 $as_echo_n "(cached) " >&6 13813else 13814 if test "$cross_compiling" = yes; then : 13815 ac_cv_func_mmap_fixed_mapped=no 13816else 13817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13818/* end confdefs.h. */ 13819$ac_includes_default 13820/* malloc might have been renamed as rpl_malloc. */ 13821#undef malloc 13822 13823/* Thanks to Mike Haertel and Jim Avera for this test. 13824 Here is a matrix of mmap possibilities: 13825 mmap private not fixed 13826 mmap private fixed at somewhere currently unmapped 13827 mmap private fixed at somewhere already mapped 13828 mmap shared not fixed 13829 mmap shared fixed at somewhere currently unmapped 13830 mmap shared fixed at somewhere already mapped 13831 For private mappings, we should verify that changes cannot be read() 13832 back from the file, nor mmap's back from the file at a different 13833 address. (There have been systems where private was not correctly 13834 implemented like the infamous i386 svr4.0, and systems where the 13835 VM page cache was not coherent with the file system buffer cache 13836 like early versions of FreeBSD and possibly contemporary NetBSD.) 13837 For shared mappings, we should conversely verify that changes get 13838 propagated back to all the places they're supposed to be. 13839 13840 Grep wants private fixed already mapped. 13841 The main things grep needs to know about mmap are: 13842 * does it exist and is it safe to write into the mmap'd area 13843 * how to use it (BSD variants) */ 13844 13845#include <fcntl.h> 13846#include <sys/mman.h> 13847 13848#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H 13849char *malloc (); 13850#endif 13851 13852/* This mess was copied from the GNU getpagesize.h. */ 13853#ifndef HAVE_GETPAGESIZE 13854# ifdef _SC_PAGESIZE 13855# define getpagesize() sysconf(_SC_PAGESIZE) 13856# else /* no _SC_PAGESIZE */ 13857# ifdef HAVE_SYS_PARAM_H 13858# include <sys/param.h> 13859# ifdef EXEC_PAGESIZE 13860# define getpagesize() EXEC_PAGESIZE 13861# else /* no EXEC_PAGESIZE */ 13862# ifdef NBPG 13863# define getpagesize() NBPG * CLSIZE 13864# ifndef CLSIZE 13865# define CLSIZE 1 13866# endif /* no CLSIZE */ 13867# else /* no NBPG */ 13868# ifdef NBPC 13869# define getpagesize() NBPC 13870# else /* no NBPC */ 13871# ifdef PAGESIZE 13872# define getpagesize() PAGESIZE 13873# endif /* PAGESIZE */ 13874# endif /* no NBPC */ 13875# endif /* no NBPG */ 13876# endif /* no EXEC_PAGESIZE */ 13877# else /* no HAVE_SYS_PARAM_H */ 13878# define getpagesize() 8192 /* punt totally */ 13879# endif /* no HAVE_SYS_PARAM_H */ 13880# endif /* no _SC_PAGESIZE */ 13881 13882#endif /* no HAVE_GETPAGESIZE */ 13883 13884int 13885main () 13886{ 13887 char *data, *data2, *data3; 13888 const char *cdata2; 13889 int i, pagesize; 13890 int fd, fd2; 13891 13892 pagesize = getpagesize (); 13893 13894 /* First, make a file with some known garbage in it. */ 13895 data = (char *) malloc (pagesize); 13896 if (!data) 13897 return 1; 13898 for (i = 0; i < pagesize; ++i) 13899 *(data + i) = rand (); 13900 umask (0); 13901 fd = creat ("conftest.mmap", 0600); 13902 if (fd < 0) 13903 return 2; 13904 if (write (fd, data, pagesize) != pagesize) 13905 return 3; 13906 close (fd); 13907 13908 /* Next, check that the tail of a page is zero-filled. File must have 13909 non-zero length, otherwise we risk SIGBUS for entire page. */ 13910 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600); 13911 if (fd2 < 0) 13912 return 4; 13913 cdata2 = ""; 13914 if (write (fd2, cdata2, 1) != 1) 13915 return 5; 13916 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L); 13917 if (data2 == MAP_FAILED) 13918 return 6; 13919 for (i = 0; i < pagesize; ++i) 13920 if (*(data2 + i)) 13921 return 7; 13922 close (fd2); 13923 if (munmap (data2, pagesize)) 13924 return 8; 13925 13926 /* Next, try to mmap the file at a fixed address which already has 13927 something else allocated at it. If we can, also make sure that 13928 we see the same garbage. */ 13929 fd = open ("conftest.mmap", O_RDWR); 13930 if (fd < 0) 13931 return 9; 13932 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, 13933 MAP_PRIVATE | MAP_FIXED, fd, 0L)) 13934 return 10; 13935 for (i = 0; i < pagesize; ++i) 13936 if (*(data + i) != *(data2 + i)) 13937 return 11; 13938 13939 /* Finally, make sure that changes to the mapped area do not 13940 percolate back to the file as seen by read(). (This is a bug on 13941 some variants of i386 svr4.0.) */ 13942 for (i = 0; i < pagesize; ++i) 13943 *(data2 + i) = *(data2 + i) + 1; 13944 data3 = (char *) malloc (pagesize); 13945 if (!data3) 13946 return 12; 13947 if (read (fd, data3, pagesize) != pagesize) 13948 return 13; 13949 for (i = 0; i < pagesize; ++i) 13950 if (*(data + i) != *(data3 + i)) 13951 return 14; 13952 close (fd); 13953 return 0; 13954} 13955_ACEOF 13956if ac_fn_c_try_run "$LINENO"; then : 13957 ac_cv_func_mmap_fixed_mapped=yes 13958else 13959 ac_cv_func_mmap_fixed_mapped=no 13960fi 13961rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13962 conftest.$ac_objext conftest.beam conftest.$ac_ext 13963fi 13964 13965fi 13966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5 13967$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } 13968if test $ac_cv_func_mmap_fixed_mapped = yes; then 13969 13970$as_echo "#define HAVE_MMAP 1" >>confdefs.h 13971 13972fi 13973rm -f conftest.mmap conftest.txt 13974 13975for ac_header in vfork.h 13976do : 13977 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default" 13978if test "x$ac_cv_header_vfork_h" = xyes; then : 13979 cat >>confdefs.h <<_ACEOF 13980#define HAVE_VFORK_H 1 13981_ACEOF 13982 13983fi 13984 13985done 13986 13987for ac_func in fork vfork 13988do : 13989 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 13990ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 13991if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 13992 cat >>confdefs.h <<_ACEOF 13993#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 13994_ACEOF 13995 13996fi 13997done 13998 13999if test "x$ac_cv_func_fork" = xyes; then 14000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5 14001$as_echo_n "checking for working fork... " >&6; } 14002if ${ac_cv_func_fork_works+:} false; then : 14003 $as_echo_n "(cached) " >&6 14004else 14005 if test "$cross_compiling" = yes; then : 14006 ac_cv_func_fork_works=cross 14007else 14008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14009/* end confdefs.h. */ 14010$ac_includes_default 14011int 14012main () 14013{ 14014 14015 /* By Ruediger Kuhlmann. */ 14016 return fork () < 0; 14017 14018 ; 14019 return 0; 14020} 14021_ACEOF 14022if ac_fn_c_try_run "$LINENO"; then : 14023 ac_cv_func_fork_works=yes 14024else 14025 ac_cv_func_fork_works=no 14026fi 14027rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14028 conftest.$ac_objext conftest.beam conftest.$ac_ext 14029fi 14030 14031fi 14032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5 14033$as_echo "$ac_cv_func_fork_works" >&6; } 14034 14035else 14036 ac_cv_func_fork_works=$ac_cv_func_fork 14037fi 14038if test "x$ac_cv_func_fork_works" = xcross; then 14039 case $host in 14040 *-*-amigaos* | *-*-msdosdjgpp*) 14041 # Override, as these systems have only a dummy fork() stub 14042 ac_cv_func_fork_works=no 14043 ;; 14044 *) 14045 ac_cv_func_fork_works=yes 14046 ;; 14047 esac 14048 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 14049$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} 14050fi 14051ac_cv_func_vfork_works=$ac_cv_func_vfork 14052if test "x$ac_cv_func_vfork" = xyes; then 14053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5 14054$as_echo_n "checking for working vfork... " >&6; } 14055if ${ac_cv_func_vfork_works+:} false; then : 14056 $as_echo_n "(cached) " >&6 14057else 14058 if test "$cross_compiling" = yes; then : 14059 ac_cv_func_vfork_works=cross 14060else 14061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14062/* end confdefs.h. */ 14063/* Thanks to Paul Eggert for this test. */ 14064$ac_includes_default 14065#include <sys/wait.h> 14066#ifdef HAVE_VFORK_H 14067# include <vfork.h> 14068#endif 14069/* On some sparc systems, changes by the child to local and incoming 14070 argument registers are propagated back to the parent. The compiler 14071 is told about this with #include <vfork.h>, but some compilers 14072 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a 14073 static variable whose address is put into a register that is 14074 clobbered by the vfork. */ 14075static void 14076#ifdef __cplusplus 14077sparc_address_test (int arg) 14078# else 14079sparc_address_test (arg) int arg; 14080#endif 14081{ 14082 static pid_t child; 14083 if (!child) { 14084 child = vfork (); 14085 if (child < 0) { 14086 perror ("vfork"); 14087 _exit(2); 14088 } 14089 if (!child) { 14090 arg = getpid(); 14091 write(-1, "", 0); 14092 _exit (arg); 14093 } 14094 } 14095} 14096 14097int 14098main () 14099{ 14100 pid_t parent = getpid (); 14101 pid_t child; 14102 14103 sparc_address_test (0); 14104 14105 child = vfork (); 14106 14107 if (child == 0) { 14108 /* Here is another test for sparc vfork register problems. This 14109 test uses lots of local variables, at least as many local 14110 variables as main has allocated so far including compiler 14111 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris 14112 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should 14113 reuse the register of parent for one of the local variables, 14114 since it will think that parent can't possibly be used any more 14115 in this routine. Assigning to the local variable will thus 14116 munge parent in the parent process. */ 14117 pid_t 14118 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), 14119 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); 14120 /* Convince the compiler that p..p7 are live; otherwise, it might 14121 use the same hardware register for all 8 local variables. */ 14122 if (p != p1 || p != p2 || p != p3 || p != p4 14123 || p != p5 || p != p6 || p != p7) 14124 _exit(1); 14125 14126 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent 14127 from child file descriptors. If the child closes a descriptor 14128 before it execs or exits, this munges the parent's descriptor 14129 as well. Test for this by closing stdout in the child. */ 14130 _exit(close(fileno(stdout)) != 0); 14131 } else { 14132 int status; 14133 struct stat st; 14134 14135 while (wait(&status) != child) 14136 ; 14137 return ( 14138 /* Was there some problem with vforking? */ 14139 child < 0 14140 14141 /* Did the child fail? (This shouldn't happen.) */ 14142 || status 14143 14144 /* Did the vfork/compiler bug occur? */ 14145 || parent != getpid() 14146 14147 /* Did the file descriptor bug occur? */ 14148 || fstat(fileno(stdout), &st) != 0 14149 ); 14150 } 14151} 14152_ACEOF 14153if ac_fn_c_try_run "$LINENO"; then : 14154 ac_cv_func_vfork_works=yes 14155else 14156 ac_cv_func_vfork_works=no 14157fi 14158rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14159 conftest.$ac_objext conftest.beam conftest.$ac_ext 14160fi 14161 14162fi 14163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5 14164$as_echo "$ac_cv_func_vfork_works" >&6; } 14165 14166fi; 14167if test "x$ac_cv_func_fork_works" = xcross; then 14168 ac_cv_func_vfork_works=$ac_cv_func_vfork 14169 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 14170$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} 14171fi 14172 14173if test "x$ac_cv_func_vfork_works" = xyes; then 14174 14175$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h 14176 14177else 14178 14179$as_echo "#define vfork fork" >>confdefs.h 14180 14181fi 14182if test "x$ac_cv_func_fork_works" = xyes; then 14183 14184$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h 14185 14186fi 14187 14188 14189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc and mbstate_t are properly declared" >&5 14190$as_echo_n "checking whether mbrtowc and mbstate_t are properly declared... " >&6; } 14191if ${ac_cv_func_mbrtowc+:} false; then : 14192 $as_echo_n "(cached) " >&6 14193else 14194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14195/* end confdefs.h. */ 14196#include <wchar.h> 14197int 14198main () 14199{ 14200wchar_t wc; 14201 char const s[] = ""; 14202 size_t n = 1; 14203 mbstate_t state; 14204 return ! (sizeof state && (mbrtowc) (&wc, s, n, &state)); 14205 ; 14206 return 0; 14207} 14208_ACEOF 14209if ac_fn_c_try_link "$LINENO"; then : 14210 ac_cv_func_mbrtowc=yes 14211else 14212 ac_cv_func_mbrtowc=no 14213fi 14214rm -f core conftest.err conftest.$ac_objext \ 14215 conftest$ac_exeext conftest.$ac_ext 14216fi 14217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mbrtowc" >&5 14218$as_echo "$ac_cv_func_mbrtowc" >&6; } 14219 if test $ac_cv_func_mbrtowc = yes; then 14220 14221$as_echo "#define HAVE_MBRTOWC 1" >>confdefs.h 14222 14223 fi 14224 14225 14226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc compiler warnings" >&5 14227$as_echo_n "checking for gcc compiler warnings... " >&6; } 14228# Check whether --enable-warnings was given. 14229if test "${enable_warnings+set}" = set; then : 14230 enableval=$enable_warnings; if test "${enableval}" = no -o "$GCC" = no; then 14231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14232$as_echo "no" >&6; } 14233 WARNINGS= 14234else 14235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14236$as_echo "yes" >&6; } 14237 WARNINGS="-Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith \ 14238 -Wmissing-declarations -Wredundant-decls -Wnested-externs \ 14239 -Wsign-compare -Wreturn-type -Wswitch -Wshadow \ 14240 -Wcast-qual -Wwrite-strings -Wextra -Wunused-parameter -Wformat=2" 14241fi 14242else 14243 14244if test "$GCC" = yes; then 14245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14246$as_echo "yes" >&6; } 14247 WARNINGS="-Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith \ 14248 -Wmissing-declarations -Wredundant-decls -Wnested-externs \ 14249 -Wsign-compare -Wreturn-type -Wswitch -Wshadow \ 14250 -Wcast-qual -Wwrite-strings -Wextra -Wunused-parameter -Wformat=2" 14251else 14252 WARNINGS= 14253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14254$as_echo "no" >&6; } 14255fi 14256fi 14257 14258 14259for ac_func in strndup mkstemp mkostemp utimes utime wcwidth strtof newlocale uselocale freelocale memmem 14260do : 14261 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 14262ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 14263if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 14264 cat >>confdefs.h <<_ACEOF 14265#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 14266_ACEOF 14267 14268fi 14269done 14270 14271 14272ac_fn_c_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long" 14273if test "x$ac_cv_func_getopt_long" = xyes; then : 14274 $as_echo "#define HAVE_GETOPT_LONG 1" >>confdefs.h 14275 14276else 14277 case " $LIBOBJS " in 14278 *" getopt_long.$ac_objext "* ) ;; 14279 *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext" 14280 ;; 14281esac 14282 14283fi 14284 14285ac_fn_c_check_func "$LINENO" "asprintf" "ac_cv_func_asprintf" 14286if test "x$ac_cv_func_asprintf" = xyes; then : 14287 $as_echo "#define HAVE_ASPRINTF 1" >>confdefs.h 14288 14289else 14290 case " $LIBOBJS " in 14291 *" asprintf.$ac_objext "* ) ;; 14292 *) LIBOBJS="$LIBOBJS asprintf.$ac_objext" 14293 ;; 14294esac 14295 14296fi 14297 14298ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf" 14299if test "x$ac_cv_func_vasprintf" = xyes; then : 14300 $as_echo "#define HAVE_VASPRINTF 1" >>confdefs.h 14301 14302else 14303 case " $LIBOBJS " in 14304 *" vasprintf.$ac_objext "* ) ;; 14305 *) LIBOBJS="$LIBOBJS vasprintf.$ac_objext" 14306 ;; 14307esac 14308 14309fi 14310 14311ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy" 14312if test "x$ac_cv_func_strlcpy" = xyes; then : 14313 $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h 14314 14315else 14316 case " $LIBOBJS " in 14317 *" strlcpy.$ac_objext "* ) ;; 14318 *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext" 14319 ;; 14320esac 14321 14322fi 14323 14324ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat" 14325if test "x$ac_cv_func_strlcat" = xyes; then : 14326 $as_echo "#define HAVE_STRLCAT 1" >>confdefs.h 14327 14328else 14329 case " $LIBOBJS " in 14330 *" strlcat.$ac_objext "* ) ;; 14331 *) LIBOBJS="$LIBOBJS strlcat.$ac_objext" 14332 ;; 14333esac 14334 14335fi 14336 14337ac_fn_c_check_func "$LINENO" "getline" "ac_cv_func_getline" 14338if test "x$ac_cv_func_getline" = xyes; then : 14339 $as_echo "#define HAVE_GETLINE 1" >>confdefs.h 14340 14341else 14342 case " $LIBOBJS " in 14343 *" getline.$ac_objext "* ) ;; 14344 *) LIBOBJS="$LIBOBJS getline.$ac_objext" 14345 ;; 14346esac 14347 14348fi 14349 14350ac_fn_c_check_func "$LINENO" "ctime_r" "ac_cv_func_ctime_r" 14351if test "x$ac_cv_func_ctime_r" = xyes; then : 14352 $as_echo "#define HAVE_CTIME_R 1" >>confdefs.h 14353 14354else 14355 case " $LIBOBJS " in 14356 *" ctime_r.$ac_objext "* ) ;; 14357 *) LIBOBJS="$LIBOBJS ctime_r.$ac_objext" 14358 ;; 14359esac 14360 14361fi 14362 14363ac_fn_c_check_func "$LINENO" "asctime_r" "ac_cv_func_asctime_r" 14364if test "x$ac_cv_func_asctime_r" = xyes; then : 14365 $as_echo "#define HAVE_ASCTIME_R 1" >>confdefs.h 14366 14367else 14368 case " $LIBOBJS " in 14369 *" asctime_r.$ac_objext "* ) ;; 14370 *) LIBOBJS="$LIBOBJS asctime_r.$ac_objext" 14371 ;; 14372esac 14373 14374fi 14375 14376ac_fn_c_check_func "$LINENO" "localtime_r" "ac_cv_func_localtime_r" 14377if test "x$ac_cv_func_localtime_r" = xyes; then : 14378 $as_echo "#define HAVE_LOCALTIME_R 1" >>confdefs.h 14379 14380else 14381 case " $LIBOBJS " in 14382 *" localtime_r.$ac_objext "* ) ;; 14383 *) LIBOBJS="$LIBOBJS localtime_r.$ac_objext" 14384 ;; 14385esac 14386 14387fi 14388 14389ac_fn_c_check_func "$LINENO" "gmtime_r" "ac_cv_func_gmtime_r" 14390if test "x$ac_cv_func_gmtime_r" = xyes; then : 14391 $as_echo "#define HAVE_GMTIME_R 1" >>confdefs.h 14392 14393else 14394 case " $LIBOBJS " in 14395 *" gmtime_r.$ac_objext "* ) ;; 14396 *) LIBOBJS="$LIBOBJS gmtime_r.$ac_objext" 14397 ;; 14398esac 14399 14400fi 14401 14402ac_fn_c_check_func "$LINENO" "pread" "ac_cv_func_pread" 14403if test "x$ac_cv_func_pread" = xyes; then : 14404 $as_echo "#define HAVE_PREAD 1" >>confdefs.h 14405 14406else 14407 case " $LIBOBJS " in 14408 *" pread.$ac_objext "* ) ;; 14409 *) LIBOBJS="$LIBOBJS pread.$ac_objext" 14410 ;; 14411esac 14412 14413fi 14414 14415ac_fn_c_check_func "$LINENO" "strcasestr" "ac_cv_func_strcasestr" 14416if test "x$ac_cv_func_strcasestr" = xyes; then : 14417 $as_echo "#define HAVE_STRCASESTR 1" >>confdefs.h 14418 14419else 14420 case " $LIBOBJS " in 14421 *" strcasestr.$ac_objext "* ) ;; 14422 *) LIBOBJS="$LIBOBJS strcasestr.$ac_objext" 14423 ;; 14424esac 14425 14426fi 14427 14428ac_fn_c_check_func "$LINENO" "fmtcheck" "ac_cv_func_fmtcheck" 14429if test "x$ac_cv_func_fmtcheck" = xyes; then : 14430 $as_echo "#define HAVE_FMTCHECK 1" >>confdefs.h 14431 14432else 14433 case " $LIBOBJS " in 14434 *" fmtcheck.$ac_objext "* ) ;; 14435 *) LIBOBJS="$LIBOBJS fmtcheck.$ac_objext" 14436 ;; 14437esac 14438 14439fi 14440 14441ac_fn_c_check_func "$LINENO" "dprintf" "ac_cv_func_dprintf" 14442if test "x$ac_cv_func_dprintf" = xyes; then : 14443 $as_echo "#define HAVE_DPRINTF 1" >>confdefs.h 14444 14445else 14446 case " $LIBOBJS " in 14447 *" dprintf.$ac_objext "* ) ;; 14448 *) LIBOBJS="$LIBOBJS dprintf.$ac_objext" 14449 ;; 14450esac 14451 14452fi 14453 14454 14455 14456if test "$enable_zlib" != "no"; then 14457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzopen in -lz" >&5 14458$as_echo_n "checking for gzopen in -lz... " >&6; } 14459if ${ac_cv_lib_z_gzopen+:} false; then : 14460 $as_echo_n "(cached) " >&6 14461else 14462 ac_check_lib_save_LIBS=$LIBS 14463LIBS="-lz $LIBS" 14464cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14465/* end confdefs.h. */ 14466 14467/* Override any GCC internal prototype to avoid an error. 14468 Use char because int might match the return type of a GCC 14469 builtin and then its argument prototype would still apply. */ 14470#ifdef __cplusplus 14471extern "C" 14472#endif 14473char gzopen (); 14474int 14475main () 14476{ 14477return gzopen (); 14478 ; 14479 return 0; 14480} 14481_ACEOF 14482if ac_fn_c_try_link "$LINENO"; then : 14483 ac_cv_lib_z_gzopen=yes 14484else 14485 ac_cv_lib_z_gzopen=no 14486fi 14487rm -f core conftest.err conftest.$ac_objext \ 14488 conftest$ac_exeext conftest.$ac_ext 14489LIBS=$ac_check_lib_save_LIBS 14490fi 14491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzopen" >&5 14492$as_echo "$ac_cv_lib_z_gzopen" >&6; } 14493if test "x$ac_cv_lib_z_gzopen" = xyes; then : 14494 cat >>confdefs.h <<_ACEOF 14495#define HAVE_LIBZ 1 14496_ACEOF 14497 14498 LIBS="-lz $LIBS" 14499 14500fi 14501 14502fi 14503if test "$enable_libseccomp" != "no"; then 14504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for seccomp_init in -lseccomp" >&5 14505$as_echo_n "checking for seccomp_init in -lseccomp... " >&6; } 14506if ${ac_cv_lib_seccomp_seccomp_init+:} false; then : 14507 $as_echo_n "(cached) " >&6 14508else 14509 ac_check_lib_save_LIBS=$LIBS 14510LIBS="-lseccomp $LIBS" 14511cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14512/* end confdefs.h. */ 14513 14514/* Override any GCC internal prototype to avoid an error. 14515 Use char because int might match the return type of a GCC 14516 builtin and then its argument prototype would still apply. */ 14517#ifdef __cplusplus 14518extern "C" 14519#endif 14520char seccomp_init (); 14521int 14522main () 14523{ 14524return seccomp_init (); 14525 ; 14526 return 0; 14527} 14528_ACEOF 14529if ac_fn_c_try_link "$LINENO"; then : 14530 ac_cv_lib_seccomp_seccomp_init=yes 14531else 14532 ac_cv_lib_seccomp_seccomp_init=no 14533fi 14534rm -f core conftest.err conftest.$ac_objext \ 14535 conftest$ac_exeext conftest.$ac_ext 14536LIBS=$ac_check_lib_save_LIBS 14537fi 14538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_seccomp_seccomp_init" >&5 14539$as_echo "$ac_cv_lib_seccomp_seccomp_init" >&6; } 14540if test "x$ac_cv_lib_seccomp_seccomp_init" = xyes; then : 14541 cat >>confdefs.h <<_ACEOF 14542#define HAVE_LIBSECCOMP 1 14543_ACEOF 14544 14545 LIBS="-lseccomp $LIBS" 14546 14547fi 14548 14549fi 14550if test "$MINGW" = 1; then 14551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for regexec in -lgnurx" >&5 14552$as_echo_n "checking for regexec in -lgnurx... " >&6; } 14553if ${ac_cv_lib_gnurx_regexec+:} false; then : 14554 $as_echo_n "(cached) " >&6 14555else 14556 ac_check_lib_save_LIBS=$LIBS 14557LIBS="-lgnurx $LIBS" 14558cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14559/* end confdefs.h. */ 14560 14561/* Override any GCC internal prototype to avoid an error. 14562 Use char because int might match the return type of a GCC 14563 builtin and then its argument prototype would still apply. */ 14564#ifdef __cplusplus 14565extern "C" 14566#endif 14567char regexec (); 14568int 14569main () 14570{ 14571return regexec (); 14572 ; 14573 return 0; 14574} 14575_ACEOF 14576if ac_fn_c_try_link "$LINENO"; then : 14577 ac_cv_lib_gnurx_regexec=yes 14578else 14579 ac_cv_lib_gnurx_regexec=no 14580fi 14581rm -f core conftest.err conftest.$ac_objext \ 14582 conftest$ac_exeext conftest.$ac_ext 14583LIBS=$ac_check_lib_save_LIBS 14584fi 14585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnurx_regexec" >&5 14586$as_echo "$ac_cv_lib_gnurx_regexec" >&6; } 14587if test "x$ac_cv_lib_gnurx_regexec" = xyes; then : 14588 cat >>confdefs.h <<_ACEOF 14589#define HAVE_LIBGNURX 1 14590_ACEOF 14591 14592 LIBS="-lgnurx $LIBS" 14593 14594else 14595 as_fn_error $? "libgnurx is required to build file(1) with MinGW" "$LINENO" 5 14596fi 14597 14598fi 14599 14600 if test "$cross_compiling" = yes; then 14601 IS_CROSS_COMPILE_TRUE= 14602 IS_CROSS_COMPILE_FALSE='#' 14603else 14604 IS_CROSS_COMPILE_TRUE='#' 14605 IS_CROSS_COMPILE_FALSE= 14606fi 14607 14608 14609if test "$enable_zlib" = "yes"; then 14610 if test "$ac_cv_header_zlib_h$ac_cv_lib_z_gzopen" != "yesyes"; then 14611 as_fn_error $? "zlib support requested but not found" "$LINENO" 5 14612 fi 14613fi 14614if test "$ac_cv_header_zlib_h$ac_cv_lib_z_gzopen" = "yesyes"; then 14615 14616$as_echo "#define ZLIBSUPPORT 1" >>confdefs.h 14617 14618fi 14619 14620ac_config_files="$ac_config_files Makefile src/Makefile magic/Makefile tests/Makefile doc/Makefile python/Makefile" 14621 14622cat >confcache <<\_ACEOF 14623# This file is a shell script that caches the results of configure 14624# tests run on this system so they can be shared between configure 14625# scripts and configure runs, see configure's option --config-cache. 14626# It is not useful on other systems. If it contains results you don't 14627# want to keep, you may remove or edit it. 14628# 14629# config.status only pays attention to the cache file if you give it 14630# the --recheck option to rerun configure. 14631# 14632# `ac_cv_env_foo' variables (set or unset) will be overridden when 14633# loading this file, other *unset* `ac_cv_foo' will be assigned the 14634# following values. 14635 14636_ACEOF 14637 14638# The following way of writing the cache mishandles newlines in values, 14639# but we know of no workaround that is simple, portable, and efficient. 14640# So, we kill variables containing newlines. 14641# Ultrix sh set writes to stderr and can't be redirected directly, 14642# and sets the high bit in the cache file unless we assign to the vars. 14643( 14644 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 14645 eval ac_val=\$$ac_var 14646 case $ac_val in #( 14647 *${as_nl}*) 14648 case $ac_var in #( 14649 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 14650$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 14651 esac 14652 case $ac_var in #( 14653 _ | IFS | as_nl) ;; #( 14654 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 14655 *) { eval $ac_var=; unset $ac_var;} ;; 14656 esac ;; 14657 esac 14658 done 14659 14660 (set) 2>&1 | 14661 case $as_nl`(ac_space=' '; set) 2>&1` in #( 14662 *${as_nl}ac_space=\ *) 14663 # `set' does not quote correctly, so add quotes: double-quote 14664 # substitution turns \\\\ into \\, and sed turns \\ into \. 14665 sed -n \ 14666 "s/'/'\\\\''/g; 14667 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 14668 ;; #( 14669 *) 14670 # `set' quotes correctly as required by POSIX, so do not add quotes. 14671 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 14672 ;; 14673 esac | 14674 sort 14675) | 14676 sed ' 14677 /^ac_cv_env_/b end 14678 t clear 14679 :clear 14680 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 14681 t end 14682 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 14683 :end' >>confcache 14684if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 14685 if test -w "$cache_file"; then 14686 if test "x$cache_file" != "x/dev/null"; then 14687 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 14688$as_echo "$as_me: updating cache $cache_file" >&6;} 14689 if test ! -f "$cache_file" || test -h "$cache_file"; then 14690 cat confcache >"$cache_file" 14691 else 14692 case $cache_file in #( 14693 */* | ?:*) 14694 mv -f confcache "$cache_file"$$ && 14695 mv -f "$cache_file"$$ "$cache_file" ;; #( 14696 *) 14697 mv -f confcache "$cache_file" ;; 14698 esac 14699 fi 14700 fi 14701 else 14702 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 14703$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 14704 fi 14705fi 14706rm -f confcache 14707 14708test "x$prefix" = xNONE && prefix=$ac_default_prefix 14709# Let make expand exec_prefix. 14710test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 14711 14712DEFS=-DHAVE_CONFIG_H 14713 14714ac_libobjs= 14715ac_ltlibobjs= 14716U= 14717for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 14718 # 1. Remove the extension, and $U if already installed. 14719 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 14720 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 14721 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 14722 # will be set to the directory where LIBOBJS objects are built. 14723 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 14724 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 14725done 14726LIBOBJS=$ac_libobjs 14727 14728LTLIBOBJS=$ac_ltlibobjs 14729 14730 14731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 14732$as_echo_n "checking that generated files are newer than configure... " >&6; } 14733 if test -n "$am_sleep_pid"; then 14734 # Hide warnings about reused PIDs. 14735 wait $am_sleep_pid 2>/dev/null 14736 fi 14737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 14738$as_echo "done" >&6; } 14739 if test -n "$EXEEXT"; then 14740 am__EXEEXT_TRUE= 14741 am__EXEEXT_FALSE='#' 14742else 14743 am__EXEEXT_TRUE='#' 14744 am__EXEEXT_FALSE= 14745fi 14746 14747if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 14748 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 14749Usually this means the macro was only invoked conditionally." "$LINENO" 5 14750fi 14751if test -z "${MINGW_TRUE}" && test -z "${MINGW_FALSE}"; then 14752 as_fn_error $? "conditional \"MINGW\" was never defined. 14753Usually this means the macro was only invoked conditionally." "$LINENO" 5 14754fi 14755if test -z "${FSECT5_TRUE}" && test -z "${FSECT5_FALSE}"; then 14756 as_fn_error $? "conditional \"FSECT5\" was never defined. 14757Usually this means the macro was only invoked conditionally." "$LINENO" 5 14758fi 14759if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 14760 as_fn_error $? "conditional \"AMDEP\" was never defined. 14761Usually this means the macro was only invoked conditionally." "$LINENO" 5 14762fi 14763if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 14764 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 14765Usually this means the macro was only invoked conditionally." "$LINENO" 5 14766fi 14767 14768if test -z "${IS_CROSS_COMPILE_TRUE}" && test -z "${IS_CROSS_COMPILE_FALSE}"; then 14769 as_fn_error $? "conditional \"IS_CROSS_COMPILE\" was never defined. 14770Usually this means the macro was only invoked conditionally." "$LINENO" 5 14771fi 14772 14773: "${CONFIG_STATUS=./config.status}" 14774ac_write_fail=0 14775ac_clean_files_save=$ac_clean_files 14776ac_clean_files="$ac_clean_files $CONFIG_STATUS" 14777{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 14778$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 14779as_write_fail=0 14780cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 14781#! $SHELL 14782# Generated by $as_me. 14783# Run this file to recreate the current configuration. 14784# Compiler output produced by configure, useful for debugging 14785# configure, is in config.log if it exists. 14786 14787debug=false 14788ac_cs_recheck=false 14789ac_cs_silent=false 14790 14791SHELL=\${CONFIG_SHELL-$SHELL} 14792export SHELL 14793_ASEOF 14794cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 14795## -------------------- ## 14796## M4sh Initialization. ## 14797## -------------------- ## 14798 14799# Be more Bourne compatible 14800DUALCASE=1; export DUALCASE # for MKS sh 14801if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 14802 emulate sh 14803 NULLCMD=: 14804 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 14805 # is contrary to our usage. Disable this feature. 14806 alias -g '${1+"$@"}'='"$@"' 14807 setopt NO_GLOB_SUBST 14808else 14809 case `(set -o) 2>/dev/null` in #( 14810 *posix*) : 14811 set -o posix ;; #( 14812 *) : 14813 ;; 14814esac 14815fi 14816 14817 14818as_nl=' 14819' 14820export as_nl 14821# Printing a long string crashes Solaris 7 /usr/bin/printf. 14822as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 14823as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 14824as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 14825# Prefer a ksh shell builtin over an external printf program on Solaris, 14826# but without wasting forks for bash or zsh. 14827if test -z "$BASH_VERSION$ZSH_VERSION" \ 14828 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 14829 as_echo='print -r --' 14830 as_echo_n='print -rn --' 14831elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 14832 as_echo='printf %s\n' 14833 as_echo_n='printf %s' 14834else 14835 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 14836 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 14837 as_echo_n='/usr/ucb/echo -n' 14838 else 14839 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 14840 as_echo_n_body='eval 14841 arg=$1; 14842 case $arg in #( 14843 *"$as_nl"*) 14844 expr "X$arg" : "X\\(.*\\)$as_nl"; 14845 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 14846 esac; 14847 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 14848 ' 14849 export as_echo_n_body 14850 as_echo_n='sh -c $as_echo_n_body as_echo' 14851 fi 14852 export as_echo_body 14853 as_echo='sh -c $as_echo_body as_echo' 14854fi 14855 14856# The user is always right. 14857if test "${PATH_SEPARATOR+set}" != set; then 14858 PATH_SEPARATOR=: 14859 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 14860 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 14861 PATH_SEPARATOR=';' 14862 } 14863fi 14864 14865 14866# IFS 14867# We need space, tab and new line, in precisely that order. Quoting is 14868# there to prevent editors from complaining about space-tab. 14869# (If _AS_PATH_WALK were called with IFS unset, it would disable word 14870# splitting by setting IFS to empty value.) 14871IFS=" "" $as_nl" 14872 14873# Find who we are. Look in the path if we contain no directory separator. 14874as_myself= 14875case $0 in #(( 14876 *[\\/]* ) as_myself=$0 ;; 14877 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14878for as_dir in $PATH 14879do 14880 IFS=$as_save_IFS 14881 test -z "$as_dir" && as_dir=. 14882 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 14883 done 14884IFS=$as_save_IFS 14885 14886 ;; 14887esac 14888# We did not find ourselves, most probably we were run as `sh COMMAND' 14889# in which case we are not to be found in the path. 14890if test "x$as_myself" = x; then 14891 as_myself=$0 14892fi 14893if test ! -f "$as_myself"; then 14894 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 14895 exit 1 14896fi 14897 14898# Unset variables that we do not need and which cause bugs (e.g. in 14899# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 14900# suppresses any "Segmentation fault" message there. '((' could 14901# trigger a bug in pdksh 5.2.14. 14902for as_var in BASH_ENV ENV MAIL MAILPATH 14903do eval test x\${$as_var+set} = xset \ 14904 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 14905done 14906PS1='$ ' 14907PS2='> ' 14908PS4='+ ' 14909 14910# NLS nuisances. 14911LC_ALL=C 14912export LC_ALL 14913LANGUAGE=C 14914export LANGUAGE 14915 14916# CDPATH. 14917(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 14918 14919 14920# as_fn_error STATUS ERROR [LINENO LOG_FD] 14921# ---------------------------------------- 14922# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 14923# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 14924# script with STATUS, using 1 if that was 0. 14925as_fn_error () 14926{ 14927 as_status=$1; test $as_status -eq 0 && as_status=1 14928 if test "$4"; then 14929 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 14930 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 14931 fi 14932 $as_echo "$as_me: error: $2" >&2 14933 as_fn_exit $as_status 14934} # as_fn_error 14935 14936 14937# as_fn_set_status STATUS 14938# ----------------------- 14939# Set $? to STATUS, without forking. 14940as_fn_set_status () 14941{ 14942 return $1 14943} # as_fn_set_status 14944 14945# as_fn_exit STATUS 14946# ----------------- 14947# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 14948as_fn_exit () 14949{ 14950 set +e 14951 as_fn_set_status $1 14952 exit $1 14953} # as_fn_exit 14954 14955# as_fn_unset VAR 14956# --------------- 14957# Portably unset VAR. 14958as_fn_unset () 14959{ 14960 { eval $1=; unset $1;} 14961} 14962as_unset=as_fn_unset 14963# as_fn_append VAR VALUE 14964# ---------------------- 14965# Append the text in VALUE to the end of the definition contained in VAR. Take 14966# advantage of any shell optimizations that allow amortized linear growth over 14967# repeated appends, instead of the typical quadratic growth present in naive 14968# implementations. 14969if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 14970 eval 'as_fn_append () 14971 { 14972 eval $1+=\$2 14973 }' 14974else 14975 as_fn_append () 14976 { 14977 eval $1=\$$1\$2 14978 } 14979fi # as_fn_append 14980 14981# as_fn_arith ARG... 14982# ------------------ 14983# Perform arithmetic evaluation on the ARGs, and store the result in the 14984# global $as_val. Take advantage of shells that can avoid forks. The arguments 14985# must be portable across $(()) and expr. 14986if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 14987 eval 'as_fn_arith () 14988 { 14989 as_val=$(( $* )) 14990 }' 14991else 14992 as_fn_arith () 14993 { 14994 as_val=`expr "$@" || test $? -eq 1` 14995 } 14996fi # as_fn_arith 14997 14998 14999if expr a : '\(a\)' >/dev/null 2>&1 && 15000 test "X`expr 00001 : '.*\(...\)'`" = X001; then 15001 as_expr=expr 15002else 15003 as_expr=false 15004fi 15005 15006if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 15007 as_basename=basename 15008else 15009 as_basename=false 15010fi 15011 15012if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 15013 as_dirname=dirname 15014else 15015 as_dirname=false 15016fi 15017 15018as_me=`$as_basename -- "$0" || 15019$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 15020 X"$0" : 'X\(//\)$' \| \ 15021 X"$0" : 'X\(/\)' \| . 2>/dev/null || 15022$as_echo X/"$0" | 15023 sed '/^.*\/\([^/][^/]*\)\/*$/{ 15024 s//\1/ 15025 q 15026 } 15027 /^X\/\(\/\/\)$/{ 15028 s//\1/ 15029 q 15030 } 15031 /^X\/\(\/\).*/{ 15032 s//\1/ 15033 q 15034 } 15035 s/.*/./; q'` 15036 15037# Avoid depending upon Character Ranges. 15038as_cr_letters='abcdefghijklmnopqrstuvwxyz' 15039as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 15040as_cr_Letters=$as_cr_letters$as_cr_LETTERS 15041as_cr_digits='0123456789' 15042as_cr_alnum=$as_cr_Letters$as_cr_digits 15043 15044ECHO_C= ECHO_N= ECHO_T= 15045case `echo -n x` in #((((( 15046-n*) 15047 case `echo 'xy\c'` in 15048 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 15049 xy) ECHO_C='\c';; 15050 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 15051 ECHO_T=' ';; 15052 esac;; 15053*) 15054 ECHO_N='-n';; 15055esac 15056 15057rm -f conf$$ conf$$.exe conf$$.file 15058if test -d conf$$.dir; then 15059 rm -f conf$$.dir/conf$$.file 15060else 15061 rm -f conf$$.dir 15062 mkdir conf$$.dir 2>/dev/null 15063fi 15064if (echo >conf$$.file) 2>/dev/null; then 15065 if ln -s conf$$.file conf$$ 2>/dev/null; then 15066 as_ln_s='ln -s' 15067 # ... but there are two gotchas: 15068 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 15069 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 15070 # In both cases, we have to default to `cp -pR'. 15071 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 15072 as_ln_s='cp -pR' 15073 elif ln conf$$.file conf$$ 2>/dev/null; then 15074 as_ln_s=ln 15075 else 15076 as_ln_s='cp -pR' 15077 fi 15078else 15079 as_ln_s='cp -pR' 15080fi 15081rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 15082rmdir conf$$.dir 2>/dev/null 15083 15084 15085# as_fn_mkdir_p 15086# ------------- 15087# Create "$as_dir" as a directory, including parents if necessary. 15088as_fn_mkdir_p () 15089{ 15090 15091 case $as_dir in #( 15092 -*) as_dir=./$as_dir;; 15093 esac 15094 test -d "$as_dir" || eval $as_mkdir_p || { 15095 as_dirs= 15096 while :; do 15097 case $as_dir in #( 15098 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 15099 *) as_qdir=$as_dir;; 15100 esac 15101 as_dirs="'$as_qdir' $as_dirs" 15102 as_dir=`$as_dirname -- "$as_dir" || 15103$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15104 X"$as_dir" : 'X\(//\)[^/]' \| \ 15105 X"$as_dir" : 'X\(//\)$' \| \ 15106 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 15107$as_echo X"$as_dir" | 15108 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15109 s//\1/ 15110 q 15111 } 15112 /^X\(\/\/\)[^/].*/{ 15113 s//\1/ 15114 q 15115 } 15116 /^X\(\/\/\)$/{ 15117 s//\1/ 15118 q 15119 } 15120 /^X\(\/\).*/{ 15121 s//\1/ 15122 q 15123 } 15124 s/.*/./; q'` 15125 test -d "$as_dir" && break 15126 done 15127 test -z "$as_dirs" || eval "mkdir $as_dirs" 15128 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 15129 15130 15131} # as_fn_mkdir_p 15132if mkdir -p . 2>/dev/null; then 15133 as_mkdir_p='mkdir -p "$as_dir"' 15134else 15135 test -d ./-p && rmdir ./-p 15136 as_mkdir_p=false 15137fi 15138 15139 15140# as_fn_executable_p FILE 15141# ----------------------- 15142# Test if FILE is an executable regular file. 15143as_fn_executable_p () 15144{ 15145 test -f "$1" && test -x "$1" 15146} # as_fn_executable_p 15147as_test_x='test -x' 15148as_executable_p=as_fn_executable_p 15149 15150# Sed expression to map a string onto a valid CPP name. 15151as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 15152 15153# Sed expression to map a string onto a valid variable name. 15154as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 15155 15156 15157exec 6>&1 15158## ----------------------------------- ## 15159## Main body of $CONFIG_STATUS script. ## 15160## ----------------------------------- ## 15161_ASEOF 15162test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 15163 15164cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15165# Save the log message, to keep $0 and so on meaningful, and to 15166# report actual input values of CONFIG_FILES etc. instead of their 15167# values after options handling. 15168ac_log=" 15169This file was extended by file $as_me 5.37, which was 15170generated by GNU Autoconf 2.69. Invocation command line was 15171 15172 CONFIG_FILES = $CONFIG_FILES 15173 CONFIG_HEADERS = $CONFIG_HEADERS 15174 CONFIG_LINKS = $CONFIG_LINKS 15175 CONFIG_COMMANDS = $CONFIG_COMMANDS 15176 $ $0 $@ 15177 15178on `(hostname || uname -n) 2>/dev/null | sed 1q` 15179" 15180 15181_ACEOF 15182 15183case $ac_config_files in *" 15184"*) set x $ac_config_files; shift; ac_config_files=$*;; 15185esac 15186 15187case $ac_config_headers in *" 15188"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 15189esac 15190 15191 15192cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15193# Files that config.status was made for. 15194config_files="$ac_config_files" 15195config_headers="$ac_config_headers" 15196config_commands="$ac_config_commands" 15197 15198_ACEOF 15199 15200cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15201ac_cs_usage="\ 15202\`$as_me' instantiates files and other configuration actions 15203from templates according to the current configuration. Unless the files 15204and actions are specified as TAGs, all are instantiated by default. 15205 15206Usage: $0 [OPTION]... [TAG]... 15207 15208 -h, --help print this help, then exit 15209 -V, --version print version number and configuration settings, then exit 15210 --config print configuration, then exit 15211 -q, --quiet, --silent 15212 do not print progress messages 15213 -d, --debug don't remove temporary files 15214 --recheck update $as_me by reconfiguring in the same conditions 15215 --file=FILE[:TEMPLATE] 15216 instantiate the configuration file FILE 15217 --header=FILE[:TEMPLATE] 15218 instantiate the configuration header FILE 15219 15220Configuration files: 15221$config_files 15222 15223Configuration headers: 15224$config_headers 15225 15226Configuration commands: 15227$config_commands 15228 15229Report bugs to <christos@astron.com>." 15230 15231_ACEOF 15232cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15233ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 15234ac_cs_version="\\ 15235file config.status 5.37 15236configured by $0, generated by GNU Autoconf 2.69, 15237 with options \\"\$ac_cs_config\\" 15238 15239Copyright (C) 2012 Free Software Foundation, Inc. 15240This config.status script is free software; the Free Software Foundation 15241gives unlimited permission to copy, distribute and modify it." 15242 15243ac_pwd='$ac_pwd' 15244srcdir='$srcdir' 15245INSTALL='$INSTALL' 15246MKDIR_P='$MKDIR_P' 15247AWK='$AWK' 15248test -n "\$AWK" || AWK=awk 15249_ACEOF 15250 15251cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15252# The default lists apply if the user does not specify any file. 15253ac_need_defaults=: 15254while test $# != 0 15255do 15256 case $1 in 15257 --*=?*) 15258 ac_option=`expr "X$1" : 'X\([^=]*\)='` 15259 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 15260 ac_shift=: 15261 ;; 15262 --*=) 15263 ac_option=`expr "X$1" : 'X\([^=]*\)='` 15264 ac_optarg= 15265 ac_shift=: 15266 ;; 15267 *) 15268 ac_option=$1 15269 ac_optarg=$2 15270 ac_shift=shift 15271 ;; 15272 esac 15273 15274 case $ac_option in 15275 # Handling of the options. 15276 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 15277 ac_cs_recheck=: ;; 15278 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 15279 $as_echo "$ac_cs_version"; exit ;; 15280 --config | --confi | --conf | --con | --co | --c ) 15281 $as_echo "$ac_cs_config"; exit ;; 15282 --debug | --debu | --deb | --de | --d | -d ) 15283 debug=: ;; 15284 --file | --fil | --fi | --f ) 15285 $ac_shift 15286 case $ac_optarg in 15287 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 15288 '') as_fn_error $? "missing file argument" ;; 15289 esac 15290 as_fn_append CONFIG_FILES " '$ac_optarg'" 15291 ac_need_defaults=false;; 15292 --header | --heade | --head | --hea ) 15293 $ac_shift 15294 case $ac_optarg in 15295 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 15296 esac 15297 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 15298 ac_need_defaults=false;; 15299 --he | --h) 15300 # Conflict between --help and --header 15301 as_fn_error $? "ambiguous option: \`$1' 15302Try \`$0 --help' for more information.";; 15303 --help | --hel | -h ) 15304 $as_echo "$ac_cs_usage"; exit ;; 15305 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 15306 | -silent | --silent | --silen | --sile | --sil | --si | --s) 15307 ac_cs_silent=: ;; 15308 15309 # This is an error. 15310 -*) as_fn_error $? "unrecognized option: \`$1' 15311Try \`$0 --help' for more information." ;; 15312 15313 *) as_fn_append ac_config_targets " $1" 15314 ac_need_defaults=false ;; 15315 15316 esac 15317 shift 15318done 15319 15320ac_configure_extra_args= 15321 15322if $ac_cs_silent; then 15323 exec 6>/dev/null 15324 ac_configure_extra_args="$ac_configure_extra_args --silent" 15325fi 15326 15327_ACEOF 15328cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15329if \$ac_cs_recheck; then 15330 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 15331 shift 15332 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 15333 CONFIG_SHELL='$SHELL' 15334 export CONFIG_SHELL 15335 exec "\$@" 15336fi 15337 15338_ACEOF 15339cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15340exec 5>>config.log 15341{ 15342 echo 15343 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 15344## Running $as_me. ## 15345_ASBOX 15346 $as_echo "$ac_log" 15347} >&5 15348 15349_ACEOF 15350cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15351# 15352# INIT-COMMANDS 15353# 15354AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 15355 15356 15357# The HP-UX ksh and POSIX shell print the target directory to stdout 15358# if CDPATH is set. 15359(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 15360 15361sed_quote_subst='$sed_quote_subst' 15362double_quote_subst='$double_quote_subst' 15363delay_variable_subst='$delay_variable_subst' 15364macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 15365macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 15366enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 15367pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 15368enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 15369enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 15370SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 15371ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 15372PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 15373host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 15374host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 15375host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 15376build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 15377build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 15378build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 15379SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 15380Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 15381GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 15382EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 15383FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 15384LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 15385NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 15386LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 15387max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 15388ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 15389exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 15390lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 15391lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 15392lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 15393lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 15394lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 15395reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 15396reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 15397OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 15398deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 15399file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 15400file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 15401want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 15402DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 15403sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 15404AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 15405AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 15406archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 15407STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 15408RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 15409old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 15410old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 15411old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 15412lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 15413CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 15414CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 15415compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 15416GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 15417lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 15418lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 15419lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 15420lt_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"`' 15421nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 15422lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 15423objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 15424MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 15425lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 15426lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 15427lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 15428lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 15429lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 15430need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 15431MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 15432DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 15433NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 15434LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 15435OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 15436OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 15437libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 15438shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 15439extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 15440archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 15441enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 15442export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 15443whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 15444compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 15445old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 15446old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 15447archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 15448archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 15449module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 15450module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 15451with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 15452allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 15453no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 15454hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 15455hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 15456hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 15457hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 15458hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 15459hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 15460hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 15461inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 15462link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 15463always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 15464export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 15465exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 15466include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 15467prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 15468postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 15469file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 15470variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 15471need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 15472need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 15473version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 15474runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 15475shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 15476shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 15477libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 15478library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 15479soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 15480install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 15481postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 15482postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 15483finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 15484finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 15485hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 15486sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 15487sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 15488hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 15489enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 15490enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 15491enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 15492old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 15493striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 15494 15495LTCC='$LTCC' 15496LTCFLAGS='$LTCFLAGS' 15497compiler='$compiler_DEFAULT' 15498 15499# A function that is used when there is no print builtin or printf. 15500func_fallback_echo () 15501{ 15502 eval 'cat <<_LTECHO_EOF 15503\$1 15504_LTECHO_EOF' 15505} 15506 15507# Quote evaled strings. 15508for var in SHELL \ 15509ECHO \ 15510PATH_SEPARATOR \ 15511SED \ 15512GREP \ 15513EGREP \ 15514FGREP \ 15515LD \ 15516NM \ 15517LN_S \ 15518lt_SP2NL \ 15519lt_NL2SP \ 15520reload_flag \ 15521OBJDUMP \ 15522deplibs_check_method \ 15523file_magic_cmd \ 15524file_magic_glob \ 15525want_nocaseglob \ 15526DLLTOOL \ 15527sharedlib_from_linklib_cmd \ 15528AR \ 15529AR_FLAGS \ 15530archiver_list_spec \ 15531STRIP \ 15532RANLIB \ 15533CC \ 15534CFLAGS \ 15535compiler \ 15536lt_cv_sys_global_symbol_pipe \ 15537lt_cv_sys_global_symbol_to_cdecl \ 15538lt_cv_sys_global_symbol_to_c_name_address \ 15539lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 15540nm_file_list_spec \ 15541lt_prog_compiler_no_builtin_flag \ 15542lt_prog_compiler_pic \ 15543lt_prog_compiler_wl \ 15544lt_prog_compiler_static \ 15545lt_cv_prog_compiler_c_o \ 15546need_locks \ 15547MANIFEST_TOOL \ 15548DSYMUTIL \ 15549NMEDIT \ 15550LIPO \ 15551OTOOL \ 15552OTOOL64 \ 15553shrext_cmds \ 15554export_dynamic_flag_spec \ 15555whole_archive_flag_spec \ 15556compiler_needs_object \ 15557with_gnu_ld \ 15558allow_undefined_flag \ 15559no_undefined_flag \ 15560hardcode_libdir_flag_spec \ 15561hardcode_libdir_separator \ 15562exclude_expsyms \ 15563include_expsyms \ 15564file_list_spec \ 15565variables_saved_for_relink \ 15566libname_spec \ 15567library_names_spec \ 15568soname_spec \ 15569install_override_mode \ 15570finish_eval \ 15571old_striplib \ 15572striplib; do 15573 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 15574 *[\\\\\\\`\\"\\\$]*) 15575 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 15576 ;; 15577 *) 15578 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 15579 ;; 15580 esac 15581done 15582 15583# Double-quote double-evaled strings. 15584for var in reload_cmds \ 15585old_postinstall_cmds \ 15586old_postuninstall_cmds \ 15587old_archive_cmds \ 15588extract_expsyms_cmds \ 15589old_archive_from_new_cmds \ 15590old_archive_from_expsyms_cmds \ 15591archive_cmds \ 15592archive_expsym_cmds \ 15593module_cmds \ 15594module_expsym_cmds \ 15595export_symbols_cmds \ 15596prelink_cmds \ 15597postlink_cmds \ 15598postinstall_cmds \ 15599postuninstall_cmds \ 15600finish_cmds \ 15601sys_lib_search_path_spec \ 15602sys_lib_dlsearch_path_spec; do 15603 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 15604 *[\\\\\\\`\\"\\\$]*) 15605 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 15606 ;; 15607 *) 15608 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 15609 ;; 15610 esac 15611done 15612 15613ac_aux_dir='$ac_aux_dir' 15614xsi_shell='$xsi_shell' 15615lt_shell_append='$lt_shell_append' 15616 15617# See if we are running on zsh, and set the options which allow our 15618# commands through without removal of \ escapes INIT. 15619if test -n "\${ZSH_VERSION+set}" ; then 15620 setopt NO_GLOB_SUBST 15621fi 15622 15623 15624 PACKAGE='$PACKAGE' 15625 VERSION='$VERSION' 15626 TIMESTAMP='$TIMESTAMP' 15627 RM='$RM' 15628 ofile='$ofile' 15629 15630 15631 15632 15633_ACEOF 15634 15635cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15636 15637# Handling of arguments. 15638for ac_config_target in $ac_config_targets 15639do 15640 case $ac_config_target in 15641 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 15642 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 15643 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 15644 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 15645 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 15646 "magic/Makefile") CONFIG_FILES="$CONFIG_FILES magic/Makefile" ;; 15647 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; 15648 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 15649 "python/Makefile") CONFIG_FILES="$CONFIG_FILES python/Makefile" ;; 15650 15651 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 15652 esac 15653done 15654 15655 15656# If the user did not use the arguments to specify the items to instantiate, 15657# then the envvar interface is used. Set only those that are not. 15658# We use the long form for the default assignment because of an extremely 15659# bizarre bug on SunOS 4.1.3. 15660if $ac_need_defaults; then 15661 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 15662 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 15663 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 15664fi 15665 15666# Have a temporary directory for convenience. Make it in the build tree 15667# simply because there is no reason against having it here, and in addition, 15668# creating and moving files from /tmp can sometimes cause problems. 15669# Hook for its removal unless debugging. 15670# Note that there is a small window in which the directory will not be cleaned: 15671# after its creation but before its name has been assigned to `$tmp'. 15672$debug || 15673{ 15674 tmp= ac_tmp= 15675 trap 'exit_status=$? 15676 : "${ac_tmp:=$tmp}" 15677 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 15678' 0 15679 trap 'as_fn_exit 1' 1 2 13 15 15680} 15681# Create a (secure) tmp directory for tmp files. 15682 15683{ 15684 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 15685 test -d "$tmp" 15686} || 15687{ 15688 tmp=./conf$$-$RANDOM 15689 (umask 077 && mkdir "$tmp") 15690} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 15691ac_tmp=$tmp 15692 15693# Set up the scripts for CONFIG_FILES section. 15694# No need to generate them if there are no CONFIG_FILES. 15695# This happens for instance with `./config.status config.h'. 15696if test -n "$CONFIG_FILES"; then 15697 15698 15699ac_cr=`echo X | tr X '\015'` 15700# On cygwin, bash can eat \r inside `` if the user requested igncr. 15701# But we know of no other shell where ac_cr would be empty at this 15702# point, so we can use a bashism as a fallback. 15703if test "x$ac_cr" = x; then 15704 eval ac_cr=\$\'\\r\' 15705fi 15706ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 15707if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 15708 ac_cs_awk_cr='\\r' 15709else 15710 ac_cs_awk_cr=$ac_cr 15711fi 15712 15713echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 15714_ACEOF 15715 15716 15717{ 15718 echo "cat >conf$$subs.awk <<_ACEOF" && 15719 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 15720 echo "_ACEOF" 15721} >conf$$subs.sh || 15722 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 15723ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 15724ac_delim='%!_!# ' 15725for ac_last_try in false false false false false :; do 15726 . ./conf$$subs.sh || 15727 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 15728 15729 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 15730 if test $ac_delim_n = $ac_delim_num; then 15731 break 15732 elif $ac_last_try; then 15733 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 15734 else 15735 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 15736 fi 15737done 15738rm -f conf$$subs.sh 15739 15740cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15741cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 15742_ACEOF 15743sed -n ' 15744h 15745s/^/S["/; s/!.*/"]=/ 15746p 15747g 15748s/^[^!]*!// 15749:repl 15750t repl 15751s/'"$ac_delim"'$// 15752t delim 15753:nl 15754h 15755s/\(.\{148\}\)..*/\1/ 15756t more1 15757s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 15758p 15759n 15760b repl 15761:more1 15762s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 15763p 15764g 15765s/.\{148\}// 15766t nl 15767:delim 15768h 15769s/\(.\{148\}\)..*/\1/ 15770t more2 15771s/["\\]/\\&/g; s/^/"/; s/$/"/ 15772p 15773b 15774:more2 15775s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 15776p 15777g 15778s/.\{148\}// 15779t delim 15780' <conf$$subs.awk | sed ' 15781/^[^""]/{ 15782 N 15783 s/\n// 15784} 15785' >>$CONFIG_STATUS || ac_write_fail=1 15786rm -f conf$$subs.awk 15787cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15788_ACAWK 15789cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 15790 for (key in S) S_is_set[key] = 1 15791 FS = "" 15792 15793} 15794{ 15795 line = $ 0 15796 nfields = split(line, field, "@") 15797 substed = 0 15798 len = length(field[1]) 15799 for (i = 2; i < nfields; i++) { 15800 key = field[i] 15801 keylen = length(key) 15802 if (S_is_set[key]) { 15803 value = S[key] 15804 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 15805 len += length(value) + length(field[++i]) 15806 substed = 1 15807 } else 15808 len += 1 + keylen 15809 } 15810 15811 print line 15812} 15813 15814_ACAWK 15815_ACEOF 15816cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15817if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 15818 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 15819else 15820 cat 15821fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 15822 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 15823_ACEOF 15824 15825# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 15826# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 15827# trailing colons and then remove the whole line if VPATH becomes empty 15828# (actually we leave an empty line to preserve line numbers). 15829if test "x$srcdir" = x.; then 15830 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 15831h 15832s/// 15833s/^/:/ 15834s/[ ]*$/:/ 15835s/:\$(srcdir):/:/g 15836s/:\${srcdir}:/:/g 15837s/:@srcdir@:/:/g 15838s/^:*// 15839s/:*$// 15840x 15841s/\(=[ ]*\).*/\1/ 15842G 15843s/\n// 15844s/^[^=]*=[ ]*$// 15845}' 15846fi 15847 15848cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15849fi # test -n "$CONFIG_FILES" 15850 15851# Set up the scripts for CONFIG_HEADERS section. 15852# No need to generate them if there are no CONFIG_HEADERS. 15853# This happens for instance with `./config.status Makefile'. 15854if test -n "$CONFIG_HEADERS"; then 15855cat >"$ac_tmp/defines.awk" <<\_ACAWK || 15856BEGIN { 15857_ACEOF 15858 15859# Transform confdefs.h into an awk script `defines.awk', embedded as 15860# here-document in config.status, that substitutes the proper values into 15861# config.h.in to produce config.h. 15862 15863# Create a delimiter string that does not exist in confdefs.h, to ease 15864# handling of long lines. 15865ac_delim='%!_!# ' 15866for ac_last_try in false false :; do 15867 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 15868 if test -z "$ac_tt"; then 15869 break 15870 elif $ac_last_try; then 15871 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 15872 else 15873 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 15874 fi 15875done 15876 15877# For the awk script, D is an array of macro values keyed by name, 15878# likewise P contains macro parameters if any. Preserve backslash 15879# newline sequences. 15880 15881ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 15882sed -n ' 15883s/.\{148\}/&'"$ac_delim"'/g 15884t rset 15885:rset 15886s/^[ ]*#[ ]*define[ ][ ]*/ / 15887t def 15888d 15889:def 15890s/\\$// 15891t bsnl 15892s/["\\]/\\&/g 15893s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 15894D["\1"]=" \3"/p 15895s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 15896d 15897:bsnl 15898s/["\\]/\\&/g 15899s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 15900D["\1"]=" \3\\\\\\n"\\/p 15901t cont 15902s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 15903t cont 15904d 15905:cont 15906n 15907s/.\{148\}/&'"$ac_delim"'/g 15908t clear 15909:clear 15910s/\\$// 15911t bsnlc 15912s/["\\]/\\&/g; s/^/"/; s/$/"/p 15913d 15914:bsnlc 15915s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 15916b cont 15917' <confdefs.h | sed ' 15918s/'"$ac_delim"'/"\\\ 15919"/g' >>$CONFIG_STATUS || ac_write_fail=1 15920 15921cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15922 for (key in D) D_is_set[key] = 1 15923 FS = "" 15924} 15925/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 15926 line = \$ 0 15927 split(line, arg, " ") 15928 if (arg[1] == "#") { 15929 defundef = arg[2] 15930 mac1 = arg[3] 15931 } else { 15932 defundef = substr(arg[1], 2) 15933 mac1 = arg[2] 15934 } 15935 split(mac1, mac2, "(") #) 15936 macro = mac2[1] 15937 prefix = substr(line, 1, index(line, defundef) - 1) 15938 if (D_is_set[macro]) { 15939 # Preserve the white space surrounding the "#". 15940 print prefix "define", macro P[macro] D[macro] 15941 next 15942 } else { 15943 # Replace #undef with comments. This is necessary, for example, 15944 # in the case of _POSIX_SOURCE, which is predefined and required 15945 # on some systems where configure will not decide to define it. 15946 if (defundef == "undef") { 15947 print "/*", prefix defundef, macro, "*/" 15948 next 15949 } 15950 } 15951} 15952{ print } 15953_ACAWK 15954_ACEOF 15955cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15956 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 15957fi # test -n "$CONFIG_HEADERS" 15958 15959 15960eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 15961shift 15962for ac_tag 15963do 15964 case $ac_tag in 15965 :[FHLC]) ac_mode=$ac_tag; continue;; 15966 esac 15967 case $ac_mode$ac_tag in 15968 :[FHL]*:*);; 15969 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 15970 :[FH]-) ac_tag=-:-;; 15971 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 15972 esac 15973 ac_save_IFS=$IFS 15974 IFS=: 15975 set x $ac_tag 15976 IFS=$ac_save_IFS 15977 shift 15978 ac_file=$1 15979 shift 15980 15981 case $ac_mode in 15982 :L) ac_source=$1;; 15983 :[FH]) 15984 ac_file_inputs= 15985 for ac_f 15986 do 15987 case $ac_f in 15988 -) ac_f="$ac_tmp/stdin";; 15989 *) # Look for the file first in the build tree, then in the source tree 15990 # (if the path is not absolute). The absolute path cannot be DOS-style, 15991 # because $ac_f cannot contain `:'. 15992 test -f "$ac_f" || 15993 case $ac_f in 15994 [\\/$]*) false;; 15995 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 15996 esac || 15997 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 15998 esac 15999 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 16000 as_fn_append ac_file_inputs " '$ac_f'" 16001 done 16002 16003 # Let's still pretend it is `configure' which instantiates (i.e., don't 16004 # use $as_me), people would be surprised to read: 16005 # /* config.h. Generated by config.status. */ 16006 configure_input='Generated from '` 16007 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 16008 `' by configure.' 16009 if test x"$ac_file" != x-; then 16010 configure_input="$ac_file. $configure_input" 16011 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 16012$as_echo "$as_me: creating $ac_file" >&6;} 16013 fi 16014 # Neutralize special characters interpreted by sed in replacement strings. 16015 case $configure_input in #( 16016 *\&* | *\|* | *\\* ) 16017 ac_sed_conf_input=`$as_echo "$configure_input" | 16018 sed 's/[\\\\&|]/\\\\&/g'`;; #( 16019 *) ac_sed_conf_input=$configure_input;; 16020 esac 16021 16022 case $ac_tag in 16023 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 16024 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 16025 esac 16026 ;; 16027 esac 16028 16029 ac_dir=`$as_dirname -- "$ac_file" || 16030$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16031 X"$ac_file" : 'X\(//\)[^/]' \| \ 16032 X"$ac_file" : 'X\(//\)$' \| \ 16033 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 16034$as_echo X"$ac_file" | 16035 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16036 s//\1/ 16037 q 16038 } 16039 /^X\(\/\/\)[^/].*/{ 16040 s//\1/ 16041 q 16042 } 16043 /^X\(\/\/\)$/{ 16044 s//\1/ 16045 q 16046 } 16047 /^X\(\/\).*/{ 16048 s//\1/ 16049 q 16050 } 16051 s/.*/./; q'` 16052 as_dir="$ac_dir"; as_fn_mkdir_p 16053 ac_builddir=. 16054 16055case "$ac_dir" in 16056.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 16057*) 16058 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 16059 # A ".." for each directory in $ac_dir_suffix. 16060 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 16061 case $ac_top_builddir_sub in 16062 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 16063 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 16064 esac ;; 16065esac 16066ac_abs_top_builddir=$ac_pwd 16067ac_abs_builddir=$ac_pwd$ac_dir_suffix 16068# for backward compatibility: 16069ac_top_builddir=$ac_top_build_prefix 16070 16071case $srcdir in 16072 .) # We are building in place. 16073 ac_srcdir=. 16074 ac_top_srcdir=$ac_top_builddir_sub 16075 ac_abs_top_srcdir=$ac_pwd ;; 16076 [\\/]* | ?:[\\/]* ) # Absolute name. 16077 ac_srcdir=$srcdir$ac_dir_suffix; 16078 ac_top_srcdir=$srcdir 16079 ac_abs_top_srcdir=$srcdir ;; 16080 *) # Relative name. 16081 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 16082 ac_top_srcdir=$ac_top_build_prefix$srcdir 16083 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 16084esac 16085ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 16086 16087 16088 case $ac_mode in 16089 :F) 16090 # 16091 # CONFIG_FILE 16092 # 16093 16094 case $INSTALL in 16095 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 16096 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 16097 esac 16098 ac_MKDIR_P=$MKDIR_P 16099 case $MKDIR_P in 16100 [\\/$]* | ?:[\\/]* ) ;; 16101 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 16102 esac 16103_ACEOF 16104 16105cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16106# If the template does not know about datarootdir, expand it. 16107# FIXME: This hack should be removed a few years after 2.60. 16108ac_datarootdir_hack=; ac_datarootdir_seen= 16109ac_sed_dataroot=' 16110/datarootdir/ { 16111 p 16112 q 16113} 16114/@datadir@/p 16115/@docdir@/p 16116/@infodir@/p 16117/@localedir@/p 16118/@mandir@/p' 16119case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 16120*datarootdir*) ac_datarootdir_seen=yes;; 16121*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 16122 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 16123$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 16124_ACEOF 16125cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16126 ac_datarootdir_hack=' 16127 s&@datadir@&$datadir&g 16128 s&@docdir@&$docdir&g 16129 s&@infodir@&$infodir&g 16130 s&@localedir@&$localedir&g 16131 s&@mandir@&$mandir&g 16132 s&\\\${datarootdir}&$datarootdir&g' ;; 16133esac 16134_ACEOF 16135 16136# Neutralize VPATH when `$srcdir' = `.'. 16137# Shell code in configure.ac might set extrasub. 16138# FIXME: do we really want to maintain this feature? 16139cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16140ac_sed_extra="$ac_vpsub 16141$extrasub 16142_ACEOF 16143cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16144:t 16145/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 16146s|@configure_input@|$ac_sed_conf_input|;t t 16147s&@top_builddir@&$ac_top_builddir_sub&;t t 16148s&@top_build_prefix@&$ac_top_build_prefix&;t t 16149s&@srcdir@&$ac_srcdir&;t t 16150s&@abs_srcdir@&$ac_abs_srcdir&;t t 16151s&@top_srcdir@&$ac_top_srcdir&;t t 16152s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 16153s&@builddir@&$ac_builddir&;t t 16154s&@abs_builddir@&$ac_abs_builddir&;t t 16155s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 16156s&@INSTALL@&$ac_INSTALL&;t t 16157s&@MKDIR_P@&$ac_MKDIR_P&;t t 16158$ac_datarootdir_hack 16159" 16160eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 16161 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 16162 16163test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 16164 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 16165 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 16166 "$ac_tmp/out"`; test -z "$ac_out"; } && 16167 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 16168which seems to be undefined. Please make sure it is defined" >&5 16169$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 16170which seems to be undefined. Please make sure it is defined" >&2;} 16171 16172 rm -f "$ac_tmp/stdin" 16173 case $ac_file in 16174 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 16175 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 16176 esac \ 16177 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 16178 ;; 16179 :H) 16180 # 16181 # CONFIG_HEADER 16182 # 16183 if test x"$ac_file" != x-; then 16184 { 16185 $as_echo "/* $configure_input */" \ 16186 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 16187 } >"$ac_tmp/config.h" \ 16188 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 16189 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 16190 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 16191$as_echo "$as_me: $ac_file is unchanged" >&6;} 16192 else 16193 rm -f "$ac_file" 16194 mv "$ac_tmp/config.h" "$ac_file" \ 16195 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 16196 fi 16197 else 16198 $as_echo "/* $configure_input */" \ 16199 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 16200 || as_fn_error $? "could not create -" "$LINENO" 5 16201 fi 16202# Compute "$ac_file"'s index in $config_headers. 16203_am_arg="$ac_file" 16204_am_stamp_count=1 16205for _am_header in $config_headers :; do 16206 case $_am_header in 16207 $_am_arg | $_am_arg:* ) 16208 break ;; 16209 * ) 16210 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 16211 esac 16212done 16213echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 16214$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16215 X"$_am_arg" : 'X\(//\)[^/]' \| \ 16216 X"$_am_arg" : 'X\(//\)$' \| \ 16217 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 16218$as_echo X"$_am_arg" | 16219 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16220 s//\1/ 16221 q 16222 } 16223 /^X\(\/\/\)[^/].*/{ 16224 s//\1/ 16225 q 16226 } 16227 /^X\(\/\/\)$/{ 16228 s//\1/ 16229 q 16230 } 16231 /^X\(\/\).*/{ 16232 s//\1/ 16233 q 16234 } 16235 s/.*/./; q'`/stamp-h$_am_stamp_count 16236 ;; 16237 16238 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 16239$as_echo "$as_me: executing $ac_file commands" >&6;} 16240 ;; 16241 esac 16242 16243 16244 case $ac_file$ac_mode in 16245 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 16246 # Older Autoconf quotes --file arguments for eval, but not when files 16247 # are listed without --file. Let's play safe and only enable the eval 16248 # if we detect the quoting. 16249 case $CONFIG_FILES in 16250 *\'*) eval set x "$CONFIG_FILES" ;; 16251 *) set x $CONFIG_FILES ;; 16252 esac 16253 shift 16254 for mf 16255 do 16256 # Strip MF so we end up with the name of the file. 16257 mf=`echo "$mf" | sed -e 's/:.*$//'` 16258 # Check whether this is an Automake generated Makefile or not. 16259 # We used to match only the files named 'Makefile.in', but 16260 # some people rename them; so instead we look at the file content. 16261 # Grep'ing the first line is not enough: some people post-process 16262 # each Makefile.in and add a new line on top of each file to say so. 16263 # Grep'ing the whole file is not good either: AIX grep has a line 16264 # limit of 2048, but all sed's we know have understand at least 4000. 16265 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 16266 dirpart=`$as_dirname -- "$mf" || 16267$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16268 X"$mf" : 'X\(//\)[^/]' \| \ 16269 X"$mf" : 'X\(//\)$' \| \ 16270 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 16271$as_echo X"$mf" | 16272 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16273 s//\1/ 16274 q 16275 } 16276 /^X\(\/\/\)[^/].*/{ 16277 s//\1/ 16278 q 16279 } 16280 /^X\(\/\/\)$/{ 16281 s//\1/ 16282 q 16283 } 16284 /^X\(\/\).*/{ 16285 s//\1/ 16286 q 16287 } 16288 s/.*/./; q'` 16289 else 16290 continue 16291 fi 16292 # Extract the definition of DEPDIR, am__include, and am__quote 16293 # from the Makefile without running 'make'. 16294 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 16295 test -z "$DEPDIR" && continue 16296 am__include=`sed -n 's/^am__include = //p' < "$mf"` 16297 test -z "$am__include" && continue 16298 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 16299 # Find all dependency output files, they are included files with 16300 # $(DEPDIR) in their names. We invoke sed twice because it is the 16301 # simplest approach to changing $(DEPDIR) to its actual value in the 16302 # expansion. 16303 for file in `sed -n " 16304 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 16305 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 16306 # Make sure the directory exists. 16307 test -f "$dirpart/$file" && continue 16308 fdir=`$as_dirname -- "$file" || 16309$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16310 X"$file" : 'X\(//\)[^/]' \| \ 16311 X"$file" : 'X\(//\)$' \| \ 16312 X"$file" : 'X\(/\)' \| . 2>/dev/null || 16313$as_echo X"$file" | 16314 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16315 s//\1/ 16316 q 16317 } 16318 /^X\(\/\/\)[^/].*/{ 16319 s//\1/ 16320 q 16321 } 16322 /^X\(\/\/\)$/{ 16323 s//\1/ 16324 q 16325 } 16326 /^X\(\/\).*/{ 16327 s//\1/ 16328 q 16329 } 16330 s/.*/./; q'` 16331 as_dir=$dirpart/$fdir; as_fn_mkdir_p 16332 # echo "creating $dirpart/$file" 16333 echo '# dummy' > "$dirpart/$file" 16334 done 16335 done 16336} 16337 ;; 16338 "libtool":C) 16339 16340 # See if we are running on zsh, and set the options which allow our 16341 # commands through without removal of \ escapes. 16342 if test -n "${ZSH_VERSION+set}" ; then 16343 setopt NO_GLOB_SUBST 16344 fi 16345 16346 cfgfile="${ofile}T" 16347 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 16348 $RM "$cfgfile" 16349 16350 cat <<_LT_EOF >> "$cfgfile" 16351#! $SHELL 16352 16353# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 16354# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 16355# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 16356# NOTE: Changes made to this file will be lost: look at ltmain.sh. 16357# 16358# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 16359# 2006, 2007, 2008, 2009, 2010, 2011 Free Software 16360# Foundation, Inc. 16361# Written by Gordon Matzigkeit, 1996 16362# 16363# This file is part of GNU Libtool. 16364# 16365# GNU Libtool is free software; you can redistribute it and/or 16366# modify it under the terms of the GNU General Public License as 16367# published by the Free Software Foundation; either version 2 of 16368# the License, or (at your option) any later version. 16369# 16370# As a special exception to the GNU General Public License, 16371# if you distribute this file as part of a program or library that 16372# is built using GNU Libtool, you may include this file under the 16373# same distribution terms that you use for the rest of that program. 16374# 16375# GNU Libtool is distributed in the hope that it will be useful, 16376# but WITHOUT ANY WARRANTY; without even the implied warranty of 16377# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16378# GNU General Public License for more details. 16379# 16380# You should have received a copy of the GNU General Public License 16381# along with GNU Libtool; see the file COPYING. If not, a copy 16382# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 16383# obtained by writing to the Free Software Foundation, Inc., 16384# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 16385 16386 16387# The names of the tagged configurations supported by this script. 16388available_tags="" 16389 16390# ### BEGIN LIBTOOL CONFIG 16391 16392# Which release of libtool.m4 was used? 16393macro_version=$macro_version 16394macro_revision=$macro_revision 16395 16396# Whether or not to build static libraries. 16397build_old_libs=$enable_static 16398 16399# What type of objects to build. 16400pic_mode=$pic_mode 16401 16402# Whether or not to build shared libraries. 16403build_libtool_libs=$enable_shared 16404 16405# Whether or not to optimize for fast installation. 16406fast_install=$enable_fast_install 16407 16408# Shell to use when invoking shell scripts. 16409SHELL=$lt_SHELL 16410 16411# An echo program that protects backslashes. 16412ECHO=$lt_ECHO 16413 16414# The PATH separator for the build system. 16415PATH_SEPARATOR=$lt_PATH_SEPARATOR 16416 16417# The host system. 16418host_alias=$host_alias 16419host=$host 16420host_os=$host_os 16421 16422# The build system. 16423build_alias=$build_alias 16424build=$build 16425build_os=$build_os 16426 16427# A sed program that does not truncate output. 16428SED=$lt_SED 16429 16430# Sed that helps us avoid accidentally triggering echo(1) options like -n. 16431Xsed="\$SED -e 1s/^X//" 16432 16433# A grep program that handles long lines. 16434GREP=$lt_GREP 16435 16436# An ERE matcher. 16437EGREP=$lt_EGREP 16438 16439# A literal string matcher. 16440FGREP=$lt_FGREP 16441 16442# A BSD- or MS-compatible name lister. 16443NM=$lt_NM 16444 16445# Whether we need soft or hard links. 16446LN_S=$lt_LN_S 16447 16448# What is the maximum length of a command? 16449max_cmd_len=$max_cmd_len 16450 16451# Object file suffix (normally "o"). 16452objext=$ac_objext 16453 16454# Executable file suffix (normally ""). 16455exeext=$exeext 16456 16457# whether the shell understands "unset". 16458lt_unset=$lt_unset 16459 16460# turn spaces into newlines. 16461SP2NL=$lt_lt_SP2NL 16462 16463# turn newlines into spaces. 16464NL2SP=$lt_lt_NL2SP 16465 16466# convert \$build file names to \$host format. 16467to_host_file_cmd=$lt_cv_to_host_file_cmd 16468 16469# convert \$build files to toolchain format. 16470to_tool_file_cmd=$lt_cv_to_tool_file_cmd 16471 16472# An object symbol dumper. 16473OBJDUMP=$lt_OBJDUMP 16474 16475# Method to check whether dependent libraries are shared objects. 16476deplibs_check_method=$lt_deplibs_check_method 16477 16478# Command to use when deplibs_check_method = "file_magic". 16479file_magic_cmd=$lt_file_magic_cmd 16480 16481# How to find potential files when deplibs_check_method = "file_magic". 16482file_magic_glob=$lt_file_magic_glob 16483 16484# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 16485want_nocaseglob=$lt_want_nocaseglob 16486 16487# DLL creation program. 16488DLLTOOL=$lt_DLLTOOL 16489 16490# Command to associate shared and link libraries. 16491sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 16492 16493# The archiver. 16494AR=$lt_AR 16495 16496# Flags to create an archive. 16497AR_FLAGS=$lt_AR_FLAGS 16498 16499# How to feed a file listing to the archiver. 16500archiver_list_spec=$lt_archiver_list_spec 16501 16502# A symbol stripping program. 16503STRIP=$lt_STRIP 16504 16505# Commands used to install an old-style archive. 16506RANLIB=$lt_RANLIB 16507old_postinstall_cmds=$lt_old_postinstall_cmds 16508old_postuninstall_cmds=$lt_old_postuninstall_cmds 16509 16510# Whether to use a lock for old archive extraction. 16511lock_old_archive_extraction=$lock_old_archive_extraction 16512 16513# A C compiler. 16514LTCC=$lt_CC 16515 16516# LTCC compiler flags. 16517LTCFLAGS=$lt_CFLAGS 16518 16519# Take the output of nm and produce a listing of raw symbols and C names. 16520global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 16521 16522# Transform the output of nm in a proper C declaration. 16523global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 16524 16525# Transform the output of nm in a C name address pair. 16526global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 16527 16528# Transform the output of nm in a C name address pair when lib prefix is needed. 16529global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 16530 16531# Specify filename containing input files for \$NM. 16532nm_file_list_spec=$lt_nm_file_list_spec 16533 16534# The root where to search for dependent libraries,and in which our libraries should be installed. 16535lt_sysroot=$lt_sysroot 16536 16537# The name of the directory that contains temporary libtool files. 16538objdir=$objdir 16539 16540# Used to examine libraries when file_magic_cmd begins with "file". 16541MAGIC_CMD=$MAGIC_CMD 16542 16543# Must we lock files when doing compilation? 16544need_locks=$lt_need_locks 16545 16546# Manifest tool. 16547MANIFEST_TOOL=$lt_MANIFEST_TOOL 16548 16549# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 16550DSYMUTIL=$lt_DSYMUTIL 16551 16552# Tool to change global to local symbols on Mac OS X. 16553NMEDIT=$lt_NMEDIT 16554 16555# Tool to manipulate fat objects and archives on Mac OS X. 16556LIPO=$lt_LIPO 16557 16558# ldd/readelf like tool for Mach-O binaries on Mac OS X. 16559OTOOL=$lt_OTOOL 16560 16561# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 16562OTOOL64=$lt_OTOOL64 16563 16564# Old archive suffix (normally "a"). 16565libext=$libext 16566 16567# Shared library suffix (normally ".so"). 16568shrext_cmds=$lt_shrext_cmds 16569 16570# The commands to extract the exported symbol list from a shared archive. 16571extract_expsyms_cmds=$lt_extract_expsyms_cmds 16572 16573# Variables whose values should be saved in libtool wrapper scripts and 16574# restored at link time. 16575variables_saved_for_relink=$lt_variables_saved_for_relink 16576 16577# Do we need the "lib" prefix for modules? 16578need_lib_prefix=$need_lib_prefix 16579 16580# Do we need a version for libraries? 16581need_version=$need_version 16582 16583# Library versioning type. 16584version_type=$version_type 16585 16586# Shared library runtime path variable. 16587runpath_var=$runpath_var 16588 16589# Shared library path variable. 16590shlibpath_var=$shlibpath_var 16591 16592# Is shlibpath searched before the hard-coded library search path? 16593shlibpath_overrides_runpath=$shlibpath_overrides_runpath 16594 16595# Format of library name prefix. 16596libname_spec=$lt_libname_spec 16597 16598# List of archive names. First name is the real one, the rest are links. 16599# The last name is the one that the linker finds with -lNAME 16600library_names_spec=$lt_library_names_spec 16601 16602# The coded name of the library, if different from the real name. 16603soname_spec=$lt_soname_spec 16604 16605# Permission mode override for installation of shared libraries. 16606install_override_mode=$lt_install_override_mode 16607 16608# Command to use after installation of a shared archive. 16609postinstall_cmds=$lt_postinstall_cmds 16610 16611# Command to use after uninstallation of a shared archive. 16612postuninstall_cmds=$lt_postuninstall_cmds 16613 16614# Commands used to finish a libtool library installation in a directory. 16615finish_cmds=$lt_finish_cmds 16616 16617# As "finish_cmds", except a single script fragment to be evaled but 16618# not shown. 16619finish_eval=$lt_finish_eval 16620 16621# Whether we should hardcode library paths into libraries. 16622hardcode_into_libs=$hardcode_into_libs 16623 16624# Compile-time system search path for libraries. 16625sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 16626 16627# Run-time system search path for libraries. 16628sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 16629 16630# Whether dlopen is supported. 16631dlopen_support=$enable_dlopen 16632 16633# Whether dlopen of programs is supported. 16634dlopen_self=$enable_dlopen_self 16635 16636# Whether dlopen of statically linked programs is supported. 16637dlopen_self_static=$enable_dlopen_self_static 16638 16639# Commands to strip libraries. 16640old_striplib=$lt_old_striplib 16641striplib=$lt_striplib 16642 16643 16644# The linker used to build libraries. 16645LD=$lt_LD 16646 16647# How to create reloadable object files. 16648reload_flag=$lt_reload_flag 16649reload_cmds=$lt_reload_cmds 16650 16651# Commands used to build an old-style archive. 16652old_archive_cmds=$lt_old_archive_cmds 16653 16654# A language specific compiler. 16655CC=$lt_compiler 16656 16657# Is the compiler the GNU compiler? 16658with_gcc=$GCC 16659 16660# Compiler flag to turn off builtin functions. 16661no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 16662 16663# Additional compiler flags for building library objects. 16664pic_flag=$lt_lt_prog_compiler_pic 16665 16666# How to pass a linker flag through the compiler. 16667wl=$lt_lt_prog_compiler_wl 16668 16669# Compiler flag to prevent dynamic linking. 16670link_static_flag=$lt_lt_prog_compiler_static 16671 16672# Does compiler simultaneously support -c and -o options? 16673compiler_c_o=$lt_lt_cv_prog_compiler_c_o 16674 16675# Whether or not to add -lc for building shared libraries. 16676build_libtool_need_lc=$archive_cmds_need_lc 16677 16678# Whether or not to disallow shared libs when runtime libs are static. 16679allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 16680 16681# Compiler flag to allow reflexive dlopens. 16682export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 16683 16684# Compiler flag to generate shared objects directly from archives. 16685whole_archive_flag_spec=$lt_whole_archive_flag_spec 16686 16687# Whether the compiler copes with passing no objects directly. 16688compiler_needs_object=$lt_compiler_needs_object 16689 16690# Create an old-style archive from a shared archive. 16691old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 16692 16693# Create a temporary old-style archive to link instead of a shared archive. 16694old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 16695 16696# Commands used to build a shared archive. 16697archive_cmds=$lt_archive_cmds 16698archive_expsym_cmds=$lt_archive_expsym_cmds 16699 16700# Commands used to build a loadable module if different from building 16701# a shared archive. 16702module_cmds=$lt_module_cmds 16703module_expsym_cmds=$lt_module_expsym_cmds 16704 16705# Whether we are building with GNU ld or not. 16706with_gnu_ld=$lt_with_gnu_ld 16707 16708# Flag that allows shared libraries with undefined symbols to be built. 16709allow_undefined_flag=$lt_allow_undefined_flag 16710 16711# Flag that enforces no undefined symbols. 16712no_undefined_flag=$lt_no_undefined_flag 16713 16714# Flag to hardcode \$libdir into a binary during linking. 16715# This must work even if \$libdir does not exist 16716hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 16717 16718# Whether we need a single "-rpath" flag with a separated argument. 16719hardcode_libdir_separator=$lt_hardcode_libdir_separator 16720 16721# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 16722# DIR into the resulting binary. 16723hardcode_direct=$hardcode_direct 16724 16725# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 16726# DIR into the resulting binary and the resulting library dependency is 16727# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 16728# library is relocated. 16729hardcode_direct_absolute=$hardcode_direct_absolute 16730 16731# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 16732# into the resulting binary. 16733hardcode_minus_L=$hardcode_minus_L 16734 16735# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 16736# into the resulting binary. 16737hardcode_shlibpath_var=$hardcode_shlibpath_var 16738 16739# Set to "yes" if building a shared library automatically hardcodes DIR 16740# into the library and all subsequent libraries and executables linked 16741# against it. 16742hardcode_automatic=$hardcode_automatic 16743 16744# Set to yes if linker adds runtime paths of dependent libraries 16745# to runtime path list. 16746inherit_rpath=$inherit_rpath 16747 16748# Whether libtool must link a program against all its dependency libraries. 16749link_all_deplibs=$link_all_deplibs 16750 16751# Set to "yes" if exported symbols are required. 16752always_export_symbols=$always_export_symbols 16753 16754# The commands to list exported symbols. 16755export_symbols_cmds=$lt_export_symbols_cmds 16756 16757# Symbols that should not be listed in the preloaded symbols. 16758exclude_expsyms=$lt_exclude_expsyms 16759 16760# Symbols that must always be exported. 16761include_expsyms=$lt_include_expsyms 16762 16763# Commands necessary for linking programs (against libraries) with templates. 16764prelink_cmds=$lt_prelink_cmds 16765 16766# Commands necessary for finishing linking programs. 16767postlink_cmds=$lt_postlink_cmds 16768 16769# Specify filename containing input files. 16770file_list_spec=$lt_file_list_spec 16771 16772# How to hardcode a shared library path into an executable. 16773hardcode_action=$hardcode_action 16774 16775# ### END LIBTOOL CONFIG 16776 16777_LT_EOF 16778 16779 case $host_os in 16780 aix3*) 16781 cat <<\_LT_EOF >> "$cfgfile" 16782# AIX sometimes has problems with the GCC collect2 program. For some 16783# reason, if we set the COLLECT_NAMES environment variable, the problems 16784# vanish in a puff of smoke. 16785if test "X${COLLECT_NAMES+set}" != Xset; then 16786 COLLECT_NAMES= 16787 export COLLECT_NAMES 16788fi 16789_LT_EOF 16790 ;; 16791 esac 16792 16793 16794ltmain="$ac_aux_dir/ltmain.sh" 16795 16796 16797 # We use sed instead of cat because bash on DJGPP gets confused if 16798 # if finds mixed CR/LF and LF-only lines. Since sed operates in 16799 # text mode, it properly converts lines to CR/LF. This bash problem 16800 # is reportedly fixed, but why not run on old versions too? 16801 sed '$q' "$ltmain" >> "$cfgfile" \ 16802 || (rm -f "$cfgfile"; exit 1) 16803 16804 if test x"$xsi_shell" = xyes; then 16805 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ 16806func_dirname ()\ 16807{\ 16808\ case ${1} in\ 16809\ */*) func_dirname_result="${1%/*}${2}" ;;\ 16810\ * ) func_dirname_result="${3}" ;;\ 16811\ esac\ 16812} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ 16813 && mv -f "$cfgfile.tmp" "$cfgfile" \ 16814 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 16815test 0 -eq $? || _lt_function_replace_fail=: 16816 16817 16818 sed -e '/^func_basename ()$/,/^} # func_basename /c\ 16819func_basename ()\ 16820{\ 16821\ func_basename_result="${1##*/}"\ 16822} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ 16823 && mv -f "$cfgfile.tmp" "$cfgfile" \ 16824 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 16825test 0 -eq $? || _lt_function_replace_fail=: 16826 16827 16828 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ 16829func_dirname_and_basename ()\ 16830{\ 16831\ case ${1} in\ 16832\ */*) func_dirname_result="${1%/*}${2}" ;;\ 16833\ * ) func_dirname_result="${3}" ;;\ 16834\ esac\ 16835\ func_basename_result="${1##*/}"\ 16836} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ 16837 && mv -f "$cfgfile.tmp" "$cfgfile" \ 16838 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 16839test 0 -eq $? || _lt_function_replace_fail=: 16840 16841 16842 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ 16843func_stripname ()\ 16844{\ 16845\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ 16846\ # positional parameters, so assign one to ordinary parameter first.\ 16847\ func_stripname_result=${3}\ 16848\ func_stripname_result=${func_stripname_result#"${1}"}\ 16849\ func_stripname_result=${func_stripname_result%"${2}"}\ 16850} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ 16851 && mv -f "$cfgfile.tmp" "$cfgfile" \ 16852 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 16853test 0 -eq $? || _lt_function_replace_fail=: 16854 16855 16856 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ 16857func_split_long_opt ()\ 16858{\ 16859\ func_split_long_opt_name=${1%%=*}\ 16860\ func_split_long_opt_arg=${1#*=}\ 16861} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ 16862 && mv -f "$cfgfile.tmp" "$cfgfile" \ 16863 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 16864test 0 -eq $? || _lt_function_replace_fail=: 16865 16866 16867 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ 16868func_split_short_opt ()\ 16869{\ 16870\ func_split_short_opt_arg=${1#??}\ 16871\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ 16872} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ 16873 && mv -f "$cfgfile.tmp" "$cfgfile" \ 16874 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 16875test 0 -eq $? || _lt_function_replace_fail=: 16876 16877 16878 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ 16879func_lo2o ()\ 16880{\ 16881\ case ${1} in\ 16882\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ 16883\ *) func_lo2o_result=${1} ;;\ 16884\ esac\ 16885} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ 16886 && mv -f "$cfgfile.tmp" "$cfgfile" \ 16887 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 16888test 0 -eq $? || _lt_function_replace_fail=: 16889 16890 16891 sed -e '/^func_xform ()$/,/^} # func_xform /c\ 16892func_xform ()\ 16893{\ 16894 func_xform_result=${1%.*}.lo\ 16895} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ 16896 && mv -f "$cfgfile.tmp" "$cfgfile" \ 16897 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 16898test 0 -eq $? || _lt_function_replace_fail=: 16899 16900 16901 sed -e '/^func_arith ()$/,/^} # func_arith /c\ 16902func_arith ()\ 16903{\ 16904 func_arith_result=$(( $* ))\ 16905} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ 16906 && mv -f "$cfgfile.tmp" "$cfgfile" \ 16907 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 16908test 0 -eq $? || _lt_function_replace_fail=: 16909 16910 16911 sed -e '/^func_len ()$/,/^} # func_len /c\ 16912func_len ()\ 16913{\ 16914 func_len_result=${#1}\ 16915} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ 16916 && mv -f "$cfgfile.tmp" "$cfgfile" \ 16917 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 16918test 0 -eq $? || _lt_function_replace_fail=: 16919 16920fi 16921 16922if test x"$lt_shell_append" = xyes; then 16923 sed -e '/^func_append ()$/,/^} # func_append /c\ 16924func_append ()\ 16925{\ 16926 eval "${1}+=\\${2}"\ 16927} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ 16928 && mv -f "$cfgfile.tmp" "$cfgfile" \ 16929 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 16930test 0 -eq $? || _lt_function_replace_fail=: 16931 16932 16933 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ 16934func_append_quoted ()\ 16935{\ 16936\ func_quote_for_eval "${2}"\ 16937\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ 16938} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ 16939 && mv -f "$cfgfile.tmp" "$cfgfile" \ 16940 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 16941test 0 -eq $? || _lt_function_replace_fail=: 16942 16943 16944 # Save a `func_append' function call where possible by direct use of '+=' 16945 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ 16946 && mv -f "$cfgfile.tmp" "$cfgfile" \ 16947 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 16948 test 0 -eq $? || _lt_function_replace_fail=: 16949else 16950 # Save a `func_append' function call even when '+=' is not available 16951 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ 16952 && mv -f "$cfgfile.tmp" "$cfgfile" \ 16953 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 16954 test 0 -eq $? || _lt_function_replace_fail=: 16955fi 16956 16957if test x"$_lt_function_replace_fail" = x":"; then 16958 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 16959$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} 16960fi 16961 16962 16963 mv -f "$cfgfile" "$ofile" || 16964 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 16965 chmod +x "$ofile" 16966 16967 ;; 16968 16969 esac 16970done # for ac_tag 16971 16972 16973as_fn_exit 0 16974_ACEOF 16975ac_clean_files=$ac_clean_files_save 16976 16977test $ac_write_fail = 0 || 16978 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 16979 16980 16981# configure is writing to config.log, and then calls config.status. 16982# config.status does its own redirection, appending to config.log. 16983# Unfortunately, on DOS this fails, as config.log is still kept open 16984# by configure, so config.status won't be able to write to it; its 16985# output is simply discarded. So we exec the FD to /dev/null, 16986# effectively closing config.log, so it can be properly (re)opened and 16987# appended to by config.status. When coming back to configure, we 16988# need to make the FD available again. 16989if test "$no_create" != yes; then 16990 ac_cs_success=: 16991 ac_config_status_args= 16992 test "$silent" = yes && 16993 ac_config_status_args="$ac_config_status_args --quiet" 16994 exec 5>/dev/null 16995 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 16996 exec 5>>config.log 16997 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 16998 # would make configure fail if this is the last instruction. 16999 $ac_cs_success || as_fn_exit 1 17000fi 17001if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 17002 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 17003$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 17004fi 17005 17006