1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.68 for GeoIP 1.5.1. 4# 5# Report bugs to <support@maxmind.com>. 6# 7# 8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 9# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software 10# Foundation, Inc. 11# 12# 13# This configure script is free software; the Free Software Foundation 14# gives unlimited permission to copy, distribute and modify it. 15## -------------------- ## 16## M4sh Initialization. ## 17## -------------------- ## 18 19# Be more Bourne compatible 20DUALCASE=1; export DUALCASE # for MKS sh 21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 22 emulate sh 23 NULLCMD=: 24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 25 # is contrary to our usage. Disable this feature. 26 alias -g '${1+"$@"}'='"$@"' 27 setopt NO_GLOB_SUBST 28else 29 case `(set -o) 2>/dev/null` in #( 30 *posix*) : 31 set -o posix ;; #( 32 *) : 33 ;; 34esac 35fi 36 37 38as_nl=' 39' 40export as_nl 41# Printing a long string crashes Solaris 7 /usr/bin/printf. 42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 45# Prefer a ksh shell builtin over an external printf program on Solaris, 46# but without wasting forks for bash or zsh. 47if test -z "$BASH_VERSION$ZSH_VERSION" \ 48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 49 as_echo='print -r --' 50 as_echo_n='print -rn --' 51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 52 as_echo='printf %s\n' 53 as_echo_n='printf %s' 54else 55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 57 as_echo_n='/usr/ucb/echo -n' 58 else 59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 60 as_echo_n_body='eval 61 arg=$1; 62 case $arg in #( 63 *"$as_nl"*) 64 expr "X$arg" : "X\\(.*\\)$as_nl"; 65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 66 esac; 67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 68 ' 69 export as_echo_n_body 70 as_echo_n='sh -c $as_echo_n_body as_echo' 71 fi 72 export as_echo_body 73 as_echo='sh -c $as_echo_body as_echo' 74fi 75 76# The user is always right. 77if test "${PATH_SEPARATOR+set}" != set; then 78 PATH_SEPARATOR=: 79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 81 PATH_SEPARATOR=';' 82 } 83fi 84 85 86# IFS 87# We need space, tab and new line, in precisely that order. Quoting is 88# there to prevent editors from complaining about space-tab. 89# (If _AS_PATH_WALK were called with IFS unset, it would disable word 90# splitting by setting IFS to empty value.) 91IFS=" "" $as_nl" 92 93# Find who we are. Look in the path if we contain no directory separator. 94as_myself= 95case $0 in #(( 96 *[\\/]* ) as_myself=$0 ;; 97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 98for as_dir in $PATH 99do 100 IFS=$as_save_IFS 101 test -z "$as_dir" && as_dir=. 102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 103 done 104IFS=$as_save_IFS 105 106 ;; 107esac 108# We did not find ourselves, most probably we were run as `sh COMMAND' 109# in which case we are not to be found in the path. 110if test "x$as_myself" = x; then 111 as_myself=$0 112fi 113if test ! -f "$as_myself"; then 114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 115 exit 1 116fi 117 118# Unset variables that we do not need and which cause bugs (e.g. in 119# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 120# suppresses any "Segmentation fault" message there. '((' could 121# trigger a bug in pdksh 5.2.14. 122for as_var in BASH_ENV ENV MAIL MAILPATH 123do eval test x\${$as_var+set} = xset \ 124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 125done 126PS1='$ ' 127PS2='> ' 128PS4='+ ' 129 130# NLS nuisances. 131LC_ALL=C 132export LC_ALL 133LANGUAGE=C 134export LANGUAGE 135 136# CDPATH. 137(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 138 139if test "x$CONFIG_SHELL" = x; then 140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 141 emulate sh 142 NULLCMD=: 143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 144 # is contrary to our usage. Disable this feature. 145 alias -g '\${1+\"\$@\"}'='\"\$@\"' 146 setopt NO_GLOB_SUBST 147else 148 case \`(set -o) 2>/dev/null\` in #( 149 *posix*) : 150 set -o posix ;; #( 151 *) : 152 ;; 153esac 154fi 155" 156 as_required="as_fn_return () { (exit \$1); } 157as_fn_success () { as_fn_return 0; } 158as_fn_failure () { as_fn_return 1; } 159as_fn_ret_success () { return 0; } 160as_fn_ret_failure () { return 1; } 161 162exitcode=0 163as_fn_success || { exitcode=1; echo as_fn_success failed.; } 164as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 165as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 166as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 167if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 168 169else 170 exitcode=1; echo positional parameters were not saved. 171fi 172test x\$exitcode = x0 || exit 1" 173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 177test \$(( 1 + 1 )) = 2 || exit 1 178 179 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 180 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 181 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 182 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 183 PATH=/empty FPATH=/empty; export PATH FPATH 184 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 185 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" 186 if (eval "$as_required") 2>/dev/null; then : 187 as_have_required=yes 188else 189 as_have_required=no 190fi 191 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 192 193else 194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 195as_found=false 196for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 197do 198 IFS=$as_save_IFS 199 test -z "$as_dir" && as_dir=. 200 as_found=: 201 case $as_dir in #( 202 /*) 203 for as_base in sh bash ksh sh5; do 204 # Try only shells that exist, to save several forks. 205 as_shell=$as_dir/$as_base 206 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 208 CONFIG_SHELL=$as_shell as_have_required=yes 209 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 210 break 2 211fi 212fi 213 done;; 214 esac 215 as_found=false 216done 217$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 218 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 219 CONFIG_SHELL=$SHELL as_have_required=yes 220fi; } 221IFS=$as_save_IFS 222 223 224 if test "x$CONFIG_SHELL" != x; then : 225 # We cannot yet assume a decent shell, so we have to provide a 226 # neutralization value for shells without unset; and this also 227 # works around shells that cannot unset nonexistent variables. 228 # Preserve -v and -x to the replacement shell. 229 BASH_ENV=/dev/null 230 ENV=/dev/null 231 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 232 export CONFIG_SHELL 233 case $- in # (((( 234 *v*x* | *x*v* ) as_opts=-vx ;; 235 *v* ) as_opts=-v ;; 236 *x* ) as_opts=-x ;; 237 * ) as_opts= ;; 238 esac 239 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"} 240fi 241 242 if test x$as_have_required = xno; then : 243 $as_echo "$0: This script requires a shell more modern than all" 244 $as_echo "$0: the shells that I found on your system." 245 if test x${ZSH_VERSION+set} = xset ; then 246 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 247 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 248 else 249 $as_echo "$0: Please tell bug-autoconf@gnu.org and 250$0: support@maxmind.com about your system, including any 251$0: error possibly output before this message. Then install 252$0: a modern shell, or manually run the script under such a 253$0: shell if you do have one." 254 fi 255 exit 1 256fi 257fi 258fi 259SHELL=${CONFIG_SHELL-/bin/sh} 260export SHELL 261# Unset more variables known to interfere with behavior of common tools. 262CLICOLOR_FORCE= GREP_OPTIONS= 263unset CLICOLOR_FORCE GREP_OPTIONS 264 265## --------------------- ## 266## M4sh Shell Functions. ## 267## --------------------- ## 268# as_fn_unset VAR 269# --------------- 270# Portably unset VAR. 271as_fn_unset () 272{ 273 { eval $1=; unset $1;} 274} 275as_unset=as_fn_unset 276 277# as_fn_set_status STATUS 278# ----------------------- 279# Set $? to STATUS, without forking. 280as_fn_set_status () 281{ 282 return $1 283} # as_fn_set_status 284 285# as_fn_exit STATUS 286# ----------------- 287# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 288as_fn_exit () 289{ 290 set +e 291 as_fn_set_status $1 292 exit $1 293} # as_fn_exit 294 295# as_fn_mkdir_p 296# ------------- 297# Create "$as_dir" as a directory, including parents if necessary. 298as_fn_mkdir_p () 299{ 300 301 case $as_dir in #( 302 -*) as_dir=./$as_dir;; 303 esac 304 test -d "$as_dir" || eval $as_mkdir_p || { 305 as_dirs= 306 while :; do 307 case $as_dir in #( 308 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 309 *) as_qdir=$as_dir;; 310 esac 311 as_dirs="'$as_qdir' $as_dirs" 312 as_dir=`$as_dirname -- "$as_dir" || 313$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 314 X"$as_dir" : 'X\(//\)[^/]' \| \ 315 X"$as_dir" : 'X\(//\)$' \| \ 316 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 317$as_echo X"$as_dir" | 318 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 319 s//\1/ 320 q 321 } 322 /^X\(\/\/\)[^/].*/{ 323 s//\1/ 324 q 325 } 326 /^X\(\/\/\)$/{ 327 s//\1/ 328 q 329 } 330 /^X\(\/\).*/{ 331 s//\1/ 332 q 333 } 334 s/.*/./; q'` 335 test -d "$as_dir" && break 336 done 337 test -z "$as_dirs" || eval "mkdir $as_dirs" 338 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 339 340 341} # as_fn_mkdir_p 342# as_fn_append VAR VALUE 343# ---------------------- 344# Append the text in VALUE to the end of the definition contained in VAR. Take 345# advantage of any shell optimizations that allow amortized linear growth over 346# repeated appends, instead of the typical quadratic growth present in naive 347# implementations. 348if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 349 eval 'as_fn_append () 350 { 351 eval $1+=\$2 352 }' 353else 354 as_fn_append () 355 { 356 eval $1=\$$1\$2 357 } 358fi # as_fn_append 359 360# as_fn_arith ARG... 361# ------------------ 362# Perform arithmetic evaluation on the ARGs, and store the result in the 363# global $as_val. Take advantage of shells that can avoid forks. The arguments 364# must be portable across $(()) and expr. 365if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 366 eval 'as_fn_arith () 367 { 368 as_val=$(( $* )) 369 }' 370else 371 as_fn_arith () 372 { 373 as_val=`expr "$@" || test $? -eq 1` 374 } 375fi # as_fn_arith 376 377 378# as_fn_error STATUS ERROR [LINENO LOG_FD] 379# ---------------------------------------- 380# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 381# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 382# script with STATUS, using 1 if that was 0. 383as_fn_error () 384{ 385 as_status=$1; test $as_status -eq 0 && as_status=1 386 if test "$4"; then 387 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 388 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 389 fi 390 $as_echo "$as_me: error: $2" >&2 391 as_fn_exit $as_status 392} # as_fn_error 393 394if expr a : '\(a\)' >/dev/null 2>&1 && 395 test "X`expr 00001 : '.*\(...\)'`" = X001; then 396 as_expr=expr 397else 398 as_expr=false 399fi 400 401if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 402 as_basename=basename 403else 404 as_basename=false 405fi 406 407if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 408 as_dirname=dirname 409else 410 as_dirname=false 411fi 412 413as_me=`$as_basename -- "$0" || 414$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 415 X"$0" : 'X\(//\)$' \| \ 416 X"$0" : 'X\(/\)' \| . 2>/dev/null || 417$as_echo X/"$0" | 418 sed '/^.*\/\([^/][^/]*\)\/*$/{ 419 s//\1/ 420 q 421 } 422 /^X\/\(\/\/\)$/{ 423 s//\1/ 424 q 425 } 426 /^X\/\(\/\).*/{ 427 s//\1/ 428 q 429 } 430 s/.*/./; q'` 431 432# Avoid depending upon Character Ranges. 433as_cr_letters='abcdefghijklmnopqrstuvwxyz' 434as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 435as_cr_Letters=$as_cr_letters$as_cr_LETTERS 436as_cr_digits='0123456789' 437as_cr_alnum=$as_cr_Letters$as_cr_digits 438 439 440 as_lineno_1=$LINENO as_lineno_1a=$LINENO 441 as_lineno_2=$LINENO as_lineno_2a=$LINENO 442 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 443 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 444 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 445 sed -n ' 446 p 447 /[$]LINENO/= 448 ' <$as_myself | 449 sed ' 450 s/[$]LINENO.*/&-/ 451 t lineno 452 b 453 :lineno 454 N 455 :loop 456 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 457 t loop 458 s/-\n.*// 459 ' >$as_me.lineno && 460 chmod +x "$as_me.lineno" || 461 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 462 463 # Don't try to exec as it changes $[0], causing all sort of problems 464 # (the dirname of $[0] is not the place where we might find the 465 # original and so on. Autoconf is especially sensitive to this). 466 . "./$as_me.lineno" 467 # Exit status is that of the last command. 468 exit 469} 470 471ECHO_C= ECHO_N= ECHO_T= 472case `echo -n x` in #((((( 473-n*) 474 case `echo 'xy\c'` in 475 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 476 xy) ECHO_C='\c';; 477 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 478 ECHO_T=' ';; 479 esac;; 480*) 481 ECHO_N='-n';; 482esac 483 484rm -f conf$$ conf$$.exe conf$$.file 485if test -d conf$$.dir; then 486 rm -f conf$$.dir/conf$$.file 487else 488 rm -f conf$$.dir 489 mkdir conf$$.dir 2>/dev/null 490fi 491if (echo >conf$$.file) 2>/dev/null; then 492 if ln -s conf$$.file conf$$ 2>/dev/null; then 493 as_ln_s='ln -s' 494 # ... but there are two gotchas: 495 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 496 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 497 # In both cases, we have to default to `cp -p'. 498 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 499 as_ln_s='cp -p' 500 elif ln conf$$.file conf$$ 2>/dev/null; then 501 as_ln_s=ln 502 else 503 as_ln_s='cp -p' 504 fi 505else 506 as_ln_s='cp -p' 507fi 508rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 509rmdir conf$$.dir 2>/dev/null 510 511if mkdir -p . 2>/dev/null; then 512 as_mkdir_p='mkdir -p "$as_dir"' 513else 514 test -d ./-p && rmdir ./-p 515 as_mkdir_p=false 516fi 517 518if test -x / >/dev/null 2>&1; then 519 as_test_x='test -x' 520else 521 if ls -dL / >/dev/null 2>&1; then 522 as_ls_L_option=L 523 else 524 as_ls_L_option= 525 fi 526 as_test_x=' 527 eval sh -c '\'' 528 if test -d "$1"; then 529 test -d "$1/."; 530 else 531 case $1 in #( 532 -*)set "./$1";; 533 esac; 534 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 535 ???[sx]*):;;*)false;;esac;fi 536 '\'' sh 537 ' 538fi 539as_executable_p=$as_test_x 540 541# Sed expression to map a string onto a valid CPP name. 542as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 543 544# Sed expression to map a string onto a valid variable name. 545as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 546 547SHELL=${CONFIG_SHELL-/bin/sh} 548 549 550test -n "$DJDIR" || exec 7<&0 </dev/null 551exec 6>&1 552 553# Name of the host. 554# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 555# so uname gets run too. 556ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 557 558# 559# Initializations. 560# 561ac_default_prefix=/usr/local 562ac_clean_files= 563ac_config_libobj_dir=. 564LIBOBJS= 565cross_compiling=no 566subdirs= 567MFLAGS= 568MAKEFLAGS= 569 570# Identity of this package. 571PACKAGE_NAME='GeoIP' 572PACKAGE_TARNAME='GeoIP' 573PACKAGE_VERSION='1.5.1' 574PACKAGE_STRING='GeoIP 1.5.1' 575PACKAGE_BUGREPORT='support@maxmind.com' 576PACKAGE_URL='' 577 578# Factoring default headers for most tests. 579ac_includes_default="\ 580#include <stdio.h> 581#ifdef HAVE_SYS_TYPES_H 582# include <sys/types.h> 583#endif 584#ifdef HAVE_SYS_STAT_H 585# include <sys/stat.h> 586#endif 587#ifdef STDC_HEADERS 588# include <stdlib.h> 589# include <stddef.h> 590#else 591# ifdef HAVE_STDLIB_H 592# include <stdlib.h> 593# endif 594#endif 595#ifdef HAVE_STRING_H 596# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 597# include <memory.h> 598# endif 599# include <string.h> 600#endif 601#ifdef HAVE_STRINGS_H 602# include <strings.h> 603#endif 604#ifdef HAVE_INTTYPES_H 605# include <inttypes.h> 606#endif 607#ifdef HAVE_STDINT_H 608# include <stdint.h> 609#endif 610#ifdef HAVE_UNISTD_H 611# include <unistd.h> 612#endif" 613 614ac_unique_file="libGeoIP/GeoIP.c" 615ac_subst_vars='am__EXEEXT_FALSE 616am__EXEEXT_TRUE 617LTLIBOBJS 618GEOIP_DB_FILE 619LIBOBJS 620OTOOL64 621OTOOL 622LIPO 623NMEDIT 624DSYMUTIL 625MANIFEST_TOOL 626RANLIB 627ac_ct_AR 628AR 629DLLTOOL 630OBJDUMP 631LN_S 632NM 633ac_ct_DUMPBIN 634DUMPBIN 635LD 636FGREP 637SED 638host_os 639host_vendor 640host_cpu 641host 642build_os 643build_vendor 644build_cpu 645build 646LIBTOOL 647GEOIP_VERSION_INFO 648am__fastdepCC_FALSE 649am__fastdepCC_TRUE 650CCDEPMODE 651am__nodep 652AMDEPBACKSLASH 653AMDEP_FALSE 654AMDEP_TRUE 655am__quote 656am__include 657DEPDIR 658am__untar 659am__tar 660AMTAR 661am__leading_dot 662SET_MAKE 663AWK 664mkdir_p 665MKDIR_P 666INSTALL_STRIP_PROGRAM 667STRIP 668install_sh 669MAKEINFO 670AUTOHEADER 671AUTOMAKE 672AUTOCONF 673ACLOCAL 674VERSION 675PACKAGE 676CYGPATH_W 677am__isrc 678INSTALL_DATA 679INSTALL_SCRIPT 680INSTALL_PROGRAM 681EGREP 682GREP 683CPP 684OBJEXT 685EXEEXT 686ac_ct_CC 687CPPFLAGS 688LDFLAGS 689CFLAGS 690CC 691target_alias 692host_alias 693build_alias 694LIBS 695ECHO_T 696ECHO_N 697ECHO_C 698DEFS 699mandir 700localedir 701libdir 702psdir 703pdfdir 704dvidir 705htmldir 706infodir 707docdir 708oldincludedir 709includedir 710localstatedir 711sharedstatedir 712sysconfdir 713datadir 714datarootdir 715libexecdir 716sbindir 717bindir 718program_transform_name 719prefix 720exec_prefix 721PACKAGE_URL 722PACKAGE_BUGREPORT 723PACKAGE_STRING 724PACKAGE_VERSION 725PACKAGE_TARNAME 726PACKAGE_NAME 727PATH_SEPARATOR 728SHELL' 729ac_subst_files='' 730ac_user_opts=' 731enable_option_checking 732enable_dependency_tracking 733enable_shared 734enable_static 735with_pic 736enable_fast_install 737with_gnu_ld 738with_sysroot 739enable_libtool_lock 740enable_data_files 741' 742 ac_precious_vars='build_alias 743host_alias 744target_alias 745CC 746CFLAGS 747LDFLAGS 748LIBS 749CPPFLAGS 750CPP' 751 752 753# Initialize some variables set by options. 754ac_init_help= 755ac_init_version=false 756ac_unrecognized_opts= 757ac_unrecognized_sep= 758# The variables have the same names as the options, with 759# dashes changed to underlines. 760cache_file=/dev/null 761exec_prefix=NONE 762no_create= 763no_recursion= 764prefix=NONE 765program_prefix=NONE 766program_suffix=NONE 767program_transform_name=s,x,x, 768silent= 769site= 770srcdir= 771verbose= 772x_includes=NONE 773x_libraries=NONE 774 775# Installation directory options. 776# These are left unexpanded so users can "make install exec_prefix=/foo" 777# and all the variables that are supposed to be based on exec_prefix 778# by default will actually change. 779# Use braces instead of parens because sh, perl, etc. also accept them. 780# (The list follows the same order as the GNU Coding Standards.) 781bindir='${exec_prefix}/bin' 782sbindir='${exec_prefix}/sbin' 783libexecdir='${exec_prefix}/libexec' 784datarootdir='${prefix}/share' 785datadir='${datarootdir}' 786sysconfdir='${prefix}/etc' 787sharedstatedir='${prefix}/com' 788localstatedir='${prefix}/var' 789includedir='${prefix}/include' 790oldincludedir='/usr/include' 791docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 792infodir='${datarootdir}/info' 793htmldir='${docdir}' 794dvidir='${docdir}' 795pdfdir='${docdir}' 796psdir='${docdir}' 797libdir='${exec_prefix}/lib' 798localedir='${datarootdir}/locale' 799mandir='${datarootdir}/man' 800 801ac_prev= 802ac_dashdash= 803for ac_option 804do 805 # If the previous option needs an argument, assign it. 806 if test -n "$ac_prev"; then 807 eval $ac_prev=\$ac_option 808 ac_prev= 809 continue 810 fi 811 812 case $ac_option in 813 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 814 *=) ac_optarg= ;; 815 *) ac_optarg=yes ;; 816 esac 817 818 # Accept the important Cygnus configure options, so we can diagnose typos. 819 820 case $ac_dashdash$ac_option in 821 --) 822 ac_dashdash=yes ;; 823 824 -bindir | --bindir | --bindi | --bind | --bin | --bi) 825 ac_prev=bindir ;; 826 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 827 bindir=$ac_optarg ;; 828 829 -build | --build | --buil | --bui | --bu) 830 ac_prev=build_alias ;; 831 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 832 build_alias=$ac_optarg ;; 833 834 -cache-file | --cache-file | --cache-fil | --cache-fi \ 835 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 836 ac_prev=cache_file ;; 837 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 838 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 839 cache_file=$ac_optarg ;; 840 841 --config-cache | -C) 842 cache_file=config.cache ;; 843 844 -datadir | --datadir | --datadi | --datad) 845 ac_prev=datadir ;; 846 -datadir=* | --datadir=* | --datadi=* | --datad=*) 847 datadir=$ac_optarg ;; 848 849 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 850 | --dataroo | --dataro | --datar) 851 ac_prev=datarootdir ;; 852 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 853 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 854 datarootdir=$ac_optarg ;; 855 856 -disable-* | --disable-*) 857 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 858 # Reject names that are not valid shell variable names. 859 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 860 as_fn_error $? "invalid feature name: $ac_useropt" 861 ac_useropt_orig=$ac_useropt 862 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 863 case $ac_user_opts in 864 *" 865"enable_$ac_useropt" 866"*) ;; 867 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 868 ac_unrecognized_sep=', ';; 869 esac 870 eval enable_$ac_useropt=no ;; 871 872 -docdir | --docdir | --docdi | --doc | --do) 873 ac_prev=docdir ;; 874 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 875 docdir=$ac_optarg ;; 876 877 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 878 ac_prev=dvidir ;; 879 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 880 dvidir=$ac_optarg ;; 881 882 -enable-* | --enable-*) 883 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 884 # Reject names that are not valid shell variable names. 885 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 886 as_fn_error $? "invalid feature name: $ac_useropt" 887 ac_useropt_orig=$ac_useropt 888 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 889 case $ac_user_opts in 890 *" 891"enable_$ac_useropt" 892"*) ;; 893 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 894 ac_unrecognized_sep=', ';; 895 esac 896 eval enable_$ac_useropt=\$ac_optarg ;; 897 898 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 899 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 900 | --exec | --exe | --ex) 901 ac_prev=exec_prefix ;; 902 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 903 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 904 | --exec=* | --exe=* | --ex=*) 905 exec_prefix=$ac_optarg ;; 906 907 -gas | --gas | --ga | --g) 908 # Obsolete; use --with-gas. 909 with_gas=yes ;; 910 911 -help | --help | --hel | --he | -h) 912 ac_init_help=long ;; 913 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 914 ac_init_help=recursive ;; 915 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 916 ac_init_help=short ;; 917 918 -host | --host | --hos | --ho) 919 ac_prev=host_alias ;; 920 -host=* | --host=* | --hos=* | --ho=*) 921 host_alias=$ac_optarg ;; 922 923 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 924 ac_prev=htmldir ;; 925 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 926 | --ht=*) 927 htmldir=$ac_optarg ;; 928 929 -includedir | --includedir | --includedi | --included | --include \ 930 | --includ | --inclu | --incl | --inc) 931 ac_prev=includedir ;; 932 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 933 | --includ=* | --inclu=* | --incl=* | --inc=*) 934 includedir=$ac_optarg ;; 935 936 -infodir | --infodir | --infodi | --infod | --info | --inf) 937 ac_prev=infodir ;; 938 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 939 infodir=$ac_optarg ;; 940 941 -libdir | --libdir | --libdi | --libd) 942 ac_prev=libdir ;; 943 -libdir=* | --libdir=* | --libdi=* | --libd=*) 944 libdir=$ac_optarg ;; 945 946 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 947 | --libexe | --libex | --libe) 948 ac_prev=libexecdir ;; 949 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 950 | --libexe=* | --libex=* | --libe=*) 951 libexecdir=$ac_optarg ;; 952 953 -localedir | --localedir | --localedi | --localed | --locale) 954 ac_prev=localedir ;; 955 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 956 localedir=$ac_optarg ;; 957 958 -localstatedir | --localstatedir | --localstatedi | --localstated \ 959 | --localstate | --localstat | --localsta | --localst | --locals) 960 ac_prev=localstatedir ;; 961 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 962 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 963 localstatedir=$ac_optarg ;; 964 965 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 966 ac_prev=mandir ;; 967 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 968 mandir=$ac_optarg ;; 969 970 -nfp | --nfp | --nf) 971 # Obsolete; use --without-fp. 972 with_fp=no ;; 973 974 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 975 | --no-cr | --no-c | -n) 976 no_create=yes ;; 977 978 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 979 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 980 no_recursion=yes ;; 981 982 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 983 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 984 | --oldin | --oldi | --old | --ol | --o) 985 ac_prev=oldincludedir ;; 986 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 987 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 988 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 989 oldincludedir=$ac_optarg ;; 990 991 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 992 ac_prev=prefix ;; 993 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 994 prefix=$ac_optarg ;; 995 996 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 997 | --program-pre | --program-pr | --program-p) 998 ac_prev=program_prefix ;; 999 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1000 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1001 program_prefix=$ac_optarg ;; 1002 1003 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1004 | --program-suf | --program-su | --program-s) 1005 ac_prev=program_suffix ;; 1006 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1007 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1008 program_suffix=$ac_optarg ;; 1009 1010 -program-transform-name | --program-transform-name \ 1011 | --program-transform-nam | --program-transform-na \ 1012 | --program-transform-n | --program-transform- \ 1013 | --program-transform | --program-transfor \ 1014 | --program-transfo | --program-transf \ 1015 | --program-trans | --program-tran \ 1016 | --progr-tra | --program-tr | --program-t) 1017 ac_prev=program_transform_name ;; 1018 -program-transform-name=* | --program-transform-name=* \ 1019 | --program-transform-nam=* | --program-transform-na=* \ 1020 | --program-transform-n=* | --program-transform-=* \ 1021 | --program-transform=* | --program-transfor=* \ 1022 | --program-transfo=* | --program-transf=* \ 1023 | --program-trans=* | --program-tran=* \ 1024 | --progr-tra=* | --program-tr=* | --program-t=*) 1025 program_transform_name=$ac_optarg ;; 1026 1027 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1028 ac_prev=pdfdir ;; 1029 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1030 pdfdir=$ac_optarg ;; 1031 1032 -psdir | --psdir | --psdi | --psd | --ps) 1033 ac_prev=psdir ;; 1034 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1035 psdir=$ac_optarg ;; 1036 1037 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1038 | -silent | --silent | --silen | --sile | --sil) 1039 silent=yes ;; 1040 1041 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1042 ac_prev=sbindir ;; 1043 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1044 | --sbi=* | --sb=*) 1045 sbindir=$ac_optarg ;; 1046 1047 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1048 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1049 | --sharedst | --shareds | --shared | --share | --shar \ 1050 | --sha | --sh) 1051 ac_prev=sharedstatedir ;; 1052 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1053 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1054 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1055 | --sha=* | --sh=*) 1056 sharedstatedir=$ac_optarg ;; 1057 1058 -site | --site | --sit) 1059 ac_prev=site ;; 1060 -site=* | --site=* | --sit=*) 1061 site=$ac_optarg ;; 1062 1063 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1064 ac_prev=srcdir ;; 1065 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1066 srcdir=$ac_optarg ;; 1067 1068 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1069 | --syscon | --sysco | --sysc | --sys | --sy) 1070 ac_prev=sysconfdir ;; 1071 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1072 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1073 sysconfdir=$ac_optarg ;; 1074 1075 -target | --target | --targe | --targ | --tar | --ta | --t) 1076 ac_prev=target_alias ;; 1077 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1078 target_alias=$ac_optarg ;; 1079 1080 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1081 verbose=yes ;; 1082 1083 -version | --version | --versio | --versi | --vers | -V) 1084 ac_init_version=: ;; 1085 1086 -with-* | --with-*) 1087 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1088 # Reject names that are not valid shell variable names. 1089 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1090 as_fn_error $? "invalid package name: $ac_useropt" 1091 ac_useropt_orig=$ac_useropt 1092 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1093 case $ac_user_opts in 1094 *" 1095"with_$ac_useropt" 1096"*) ;; 1097 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1098 ac_unrecognized_sep=', ';; 1099 esac 1100 eval with_$ac_useropt=\$ac_optarg ;; 1101 1102 -without-* | --without-*) 1103 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1104 # Reject names that are not valid shell variable names. 1105 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1106 as_fn_error $? "invalid package name: $ac_useropt" 1107 ac_useropt_orig=$ac_useropt 1108 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1109 case $ac_user_opts in 1110 *" 1111"with_$ac_useropt" 1112"*) ;; 1113 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1114 ac_unrecognized_sep=', ';; 1115 esac 1116 eval with_$ac_useropt=no ;; 1117 1118 --x) 1119 # Obsolete; use --with-x. 1120 with_x=yes ;; 1121 1122 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1123 | --x-incl | --x-inc | --x-in | --x-i) 1124 ac_prev=x_includes ;; 1125 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1126 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1127 x_includes=$ac_optarg ;; 1128 1129 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1130 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1131 ac_prev=x_libraries ;; 1132 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1133 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1134 x_libraries=$ac_optarg ;; 1135 1136 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1137Try \`$0 --help' for more information" 1138 ;; 1139 1140 *=*) 1141 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1142 # Reject names that are not valid shell variable names. 1143 case $ac_envvar in #( 1144 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1145 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1146 esac 1147 eval $ac_envvar=\$ac_optarg 1148 export $ac_envvar ;; 1149 1150 *) 1151 # FIXME: should be removed in autoconf 3.0. 1152 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1153 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1154 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1155 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1156 ;; 1157 1158 esac 1159done 1160 1161if test -n "$ac_prev"; then 1162 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1163 as_fn_error $? "missing argument to $ac_option" 1164fi 1165 1166if test -n "$ac_unrecognized_opts"; then 1167 case $enable_option_checking in 1168 no) ;; 1169 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1170 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1171 esac 1172fi 1173 1174# Check all directory arguments for consistency. 1175for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1176 datadir sysconfdir sharedstatedir localstatedir includedir \ 1177 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1178 libdir localedir mandir 1179do 1180 eval ac_val=\$$ac_var 1181 # Remove trailing slashes. 1182 case $ac_val in 1183 */ ) 1184 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1185 eval $ac_var=\$ac_val;; 1186 esac 1187 # Be sure to have absolute directory names. 1188 case $ac_val in 1189 [\\/$]* | ?:[\\/]* ) continue;; 1190 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1191 esac 1192 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1193done 1194 1195# There might be people who depend on the old broken behavior: `$host' 1196# used to hold the argument of --host etc. 1197# FIXME: To remove some day. 1198build=$build_alias 1199host=$host_alias 1200target=$target_alias 1201 1202# FIXME: To remove some day. 1203if test "x$host_alias" != x; then 1204 if test "x$build_alias" = x; then 1205 cross_compiling=maybe 1206 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. 1207 If a cross compiler is detected then cross compile mode will be used" >&2 1208 elif test "x$build_alias" != "x$host_alias"; then 1209 cross_compiling=yes 1210 fi 1211fi 1212 1213ac_tool_prefix= 1214test -n "$host_alias" && ac_tool_prefix=$host_alias- 1215 1216test "$silent" = yes && exec 6>/dev/null 1217 1218 1219ac_pwd=`pwd` && test -n "$ac_pwd" && 1220ac_ls_di=`ls -di .` && 1221ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1222 as_fn_error $? "working directory cannot be determined" 1223test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1224 as_fn_error $? "pwd does not report name of working directory" 1225 1226 1227# Find the source files, if location was not specified. 1228if test -z "$srcdir"; then 1229 ac_srcdir_defaulted=yes 1230 # Try the directory containing this script, then the parent directory. 1231 ac_confdir=`$as_dirname -- "$as_myself" || 1232$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1233 X"$as_myself" : 'X\(//\)[^/]' \| \ 1234 X"$as_myself" : 'X\(//\)$' \| \ 1235 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1236$as_echo X"$as_myself" | 1237 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1238 s//\1/ 1239 q 1240 } 1241 /^X\(\/\/\)[^/].*/{ 1242 s//\1/ 1243 q 1244 } 1245 /^X\(\/\/\)$/{ 1246 s//\1/ 1247 q 1248 } 1249 /^X\(\/\).*/{ 1250 s//\1/ 1251 q 1252 } 1253 s/.*/./; q'` 1254 srcdir=$ac_confdir 1255 if test ! -r "$srcdir/$ac_unique_file"; then 1256 srcdir=.. 1257 fi 1258else 1259 ac_srcdir_defaulted=no 1260fi 1261if test ! -r "$srcdir/$ac_unique_file"; then 1262 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1263 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1264fi 1265ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1266ac_abs_confdir=`( 1267 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1268 pwd)` 1269# When building in place, set srcdir=. 1270if test "$ac_abs_confdir" = "$ac_pwd"; then 1271 srcdir=. 1272fi 1273# Remove unnecessary trailing slashes from srcdir. 1274# Double slashes in file names in object file debugging info 1275# mess up M-x gdb in Emacs. 1276case $srcdir in 1277*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1278esac 1279for ac_var in $ac_precious_vars; do 1280 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1281 eval ac_env_${ac_var}_value=\$${ac_var} 1282 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1283 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1284done 1285 1286# 1287# Report the --help message. 1288# 1289if test "$ac_init_help" = "long"; then 1290 # Omit some internal or obsolete options to make the list less imposing. 1291 # This message is too long to be a string in the A/UX 3.1 sh. 1292 cat <<_ACEOF 1293\`configure' configures GeoIP 1.5.1 to adapt to many kinds of systems. 1294 1295Usage: $0 [OPTION]... [VAR=VALUE]... 1296 1297To assign environment variables (e.g., CC, CFLAGS...), specify them as 1298VAR=VALUE. See below for descriptions of some of the useful variables. 1299 1300Defaults for the options are specified in brackets. 1301 1302Configuration: 1303 -h, --help display this help and exit 1304 --help=short display options specific to this package 1305 --help=recursive display the short help of all the included packages 1306 -V, --version display version information and exit 1307 -q, --quiet, --silent do not print \`checking ...' messages 1308 --cache-file=FILE cache test results in FILE [disabled] 1309 -C, --config-cache alias for \`--cache-file=config.cache' 1310 -n, --no-create do not create output files 1311 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1312 1313Installation directories: 1314 --prefix=PREFIX install architecture-independent files in PREFIX 1315 [$ac_default_prefix] 1316 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1317 [PREFIX] 1318 1319By default, \`make install' will install all the files in 1320\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1321an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1322for instance \`--prefix=\$HOME'. 1323 1324For better control, use the options below. 1325 1326Fine tuning of the installation directories: 1327 --bindir=DIR user executables [EPREFIX/bin] 1328 --sbindir=DIR system admin executables [EPREFIX/sbin] 1329 --libexecdir=DIR program executables [EPREFIX/libexec] 1330 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1331 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1332 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1333 --libdir=DIR object code libraries [EPREFIX/lib] 1334 --includedir=DIR C header files [PREFIX/include] 1335 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1336 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1337 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1338 --infodir=DIR info documentation [DATAROOTDIR/info] 1339 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1340 --mandir=DIR man documentation [DATAROOTDIR/man] 1341 --docdir=DIR documentation root [DATAROOTDIR/doc/GeoIP] 1342 --htmldir=DIR html documentation [DOCDIR] 1343 --dvidir=DIR dvi documentation [DOCDIR] 1344 --pdfdir=DIR pdf documentation [DOCDIR] 1345 --psdir=DIR ps documentation [DOCDIR] 1346_ACEOF 1347 1348 cat <<\_ACEOF 1349 1350Program names: 1351 --program-prefix=PREFIX prepend PREFIX to installed program names 1352 --program-suffix=SUFFIX append SUFFIX to installed program names 1353 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1354 1355System types: 1356 --build=BUILD configure for building on BUILD [guessed] 1357 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1358_ACEOF 1359fi 1360 1361if test -n "$ac_init_help"; then 1362 case $ac_init_help in 1363 short | recursive ) echo "Configuration of GeoIP 1.5.1:";; 1364 esac 1365 cat <<\_ACEOF 1366 1367Optional Features: 1368 --disable-option-checking ignore unrecognized --enable/--with options 1369 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1370 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1371 --disable-dependency-tracking speeds up one-time build 1372 --enable-dependency-tracking do not reject slow dependency extractors 1373 --enable-shared[=PKGS] build shared libraries [default=yes] 1374 --enable-static[=PKGS] build static libraries [default=yes] 1375 --enable-fast-install[=PKGS] 1376 optimize for fast installation [default=yes] 1377 --disable-libtool-lock avoid locking (might break parallel builds) 1378 --disable-data-files Install library without installing data files 1379 1380Optional Packages: 1381 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1382 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1383 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1384 both] 1385 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1386 --with-sysroot=DIR Search for dependent libraries within DIR 1387 (or the compiler's sysroot if not specified). 1388 1389Some influential environment variables: 1390 CC C compiler command 1391 CFLAGS C compiler flags 1392 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1393 nonstandard directory <lib dir> 1394 LIBS libraries to pass to the linker, e.g. -l<library> 1395 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1396 you have headers in a nonstandard directory <include dir> 1397 CPP C preprocessor 1398 1399Use these variables to override the choices made by `configure' or to help 1400it to find libraries and programs with nonstandard names/locations. 1401 1402Report bugs to <support@maxmind.com>. 1403_ACEOF 1404ac_status=$? 1405fi 1406 1407if test "$ac_init_help" = "recursive"; then 1408 # If there are subdirs, report their specific --help. 1409 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1410 test -d "$ac_dir" || 1411 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1412 continue 1413 ac_builddir=. 1414 1415case "$ac_dir" in 1416.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1417*) 1418 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1419 # A ".." for each directory in $ac_dir_suffix. 1420 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1421 case $ac_top_builddir_sub in 1422 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1423 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1424 esac ;; 1425esac 1426ac_abs_top_builddir=$ac_pwd 1427ac_abs_builddir=$ac_pwd$ac_dir_suffix 1428# for backward compatibility: 1429ac_top_builddir=$ac_top_build_prefix 1430 1431case $srcdir in 1432 .) # We are building in place. 1433 ac_srcdir=. 1434 ac_top_srcdir=$ac_top_builddir_sub 1435 ac_abs_top_srcdir=$ac_pwd ;; 1436 [\\/]* | ?:[\\/]* ) # Absolute name. 1437 ac_srcdir=$srcdir$ac_dir_suffix; 1438 ac_top_srcdir=$srcdir 1439 ac_abs_top_srcdir=$srcdir ;; 1440 *) # Relative name. 1441 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1442 ac_top_srcdir=$ac_top_build_prefix$srcdir 1443 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1444esac 1445ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1446 1447 cd "$ac_dir" || { ac_status=$?; continue; } 1448 # Check for guested configure. 1449 if test -f "$ac_srcdir/configure.gnu"; then 1450 echo && 1451 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1452 elif test -f "$ac_srcdir/configure"; then 1453 echo && 1454 $SHELL "$ac_srcdir/configure" --help=recursive 1455 else 1456 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1457 fi || ac_status=$? 1458 cd "$ac_pwd" || { ac_status=$?; break; } 1459 done 1460fi 1461 1462test -n "$ac_init_help" && exit $ac_status 1463if $ac_init_version; then 1464 cat <<\_ACEOF 1465GeoIP configure 1.5.1 1466generated by GNU Autoconf 2.68 1467 1468Copyright (C) 2010 Free Software Foundation, Inc. 1469This configure script is free software; the Free Software Foundation 1470gives unlimited permission to copy, distribute and modify it. 1471_ACEOF 1472 exit 1473fi 1474 1475## ------------------------ ## 1476## Autoconf initialization. ## 1477## ------------------------ ## 1478 1479# ac_fn_c_try_compile LINENO 1480# -------------------------- 1481# Try to compile conftest.$ac_ext, and return whether this succeeded. 1482ac_fn_c_try_compile () 1483{ 1484 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1485 rm -f conftest.$ac_objext 1486 if { { ac_try="$ac_compile" 1487case "(($ac_try" in 1488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1489 *) ac_try_echo=$ac_try;; 1490esac 1491eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1492$as_echo "$ac_try_echo"; } >&5 1493 (eval "$ac_compile") 2>conftest.err 1494 ac_status=$? 1495 if test -s conftest.err; then 1496 grep -v '^ *+' conftest.err >conftest.er1 1497 cat conftest.er1 >&5 1498 mv -f conftest.er1 conftest.err 1499 fi 1500 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1501 test $ac_status = 0; } && { 1502 test -z "$ac_c_werror_flag" || 1503 test ! -s conftest.err 1504 } && test -s conftest.$ac_objext; then : 1505 ac_retval=0 1506else 1507 $as_echo "$as_me: failed program was:" >&5 1508sed 's/^/| /' conftest.$ac_ext >&5 1509 1510 ac_retval=1 1511fi 1512 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1513 as_fn_set_status $ac_retval 1514 1515} # ac_fn_c_try_compile 1516 1517# ac_fn_c_try_cpp LINENO 1518# ---------------------- 1519# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1520ac_fn_c_try_cpp () 1521{ 1522 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1523 if { { ac_try="$ac_cpp conftest.$ac_ext" 1524case "(($ac_try" in 1525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1526 *) ac_try_echo=$ac_try;; 1527esac 1528eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1529$as_echo "$ac_try_echo"; } >&5 1530 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1531 ac_status=$? 1532 if test -s conftest.err; then 1533 grep -v '^ *+' conftest.err >conftest.er1 1534 cat conftest.er1 >&5 1535 mv -f conftest.er1 conftest.err 1536 fi 1537 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1538 test $ac_status = 0; } > conftest.i && { 1539 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1540 test ! -s conftest.err 1541 }; then : 1542 ac_retval=0 1543else 1544 $as_echo "$as_me: failed program was:" >&5 1545sed 's/^/| /' conftest.$ac_ext >&5 1546 1547 ac_retval=1 1548fi 1549 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1550 as_fn_set_status $ac_retval 1551 1552} # ac_fn_c_try_cpp 1553 1554# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1555# ------------------------------------------------------- 1556# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1557# the include files in INCLUDES and setting the cache variable VAR 1558# accordingly. 1559ac_fn_c_check_header_mongrel () 1560{ 1561 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1562 if eval \${$3+:} false; then : 1563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1564$as_echo_n "checking for $2... " >&6; } 1565if eval \${$3+:} false; then : 1566 $as_echo_n "(cached) " >&6 1567fi 1568eval ac_res=\$$3 1569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1570$as_echo "$ac_res" >&6; } 1571else 1572 # Is the header compilable? 1573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1574$as_echo_n "checking $2 usability... " >&6; } 1575cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1576/* end confdefs.h. */ 1577$4 1578#include <$2> 1579_ACEOF 1580if ac_fn_c_try_compile "$LINENO"; then : 1581 ac_header_compiler=yes 1582else 1583 ac_header_compiler=no 1584fi 1585rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1587$as_echo "$ac_header_compiler" >&6; } 1588 1589# Is the header present? 1590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1591$as_echo_n "checking $2 presence... " >&6; } 1592cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1593/* end confdefs.h. */ 1594#include <$2> 1595_ACEOF 1596if ac_fn_c_try_cpp "$LINENO"; then : 1597 ac_header_preproc=yes 1598else 1599 ac_header_preproc=no 1600fi 1601rm -f conftest.err conftest.i conftest.$ac_ext 1602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1603$as_echo "$ac_header_preproc" >&6; } 1604 1605# So? What about this header? 1606case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1607 yes:no: ) 1608 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1609$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1610 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1611$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1612 ;; 1613 no:yes:* ) 1614 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1615$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1616 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1617$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1618 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1619$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1620 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1621$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1622 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1623$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1624( $as_echo "## ---------------------------------- ## 1625## Report this to support@maxmind.com ## 1626## ---------------------------------- ##" 1627 ) | sed "s/^/$as_me: WARNING: /" >&2 1628 ;; 1629esac 1630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1631$as_echo_n "checking for $2... " >&6; } 1632if eval \${$3+:} false; then : 1633 $as_echo_n "(cached) " >&6 1634else 1635 eval "$3=\$ac_header_compiler" 1636fi 1637eval ac_res=\$$3 1638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1639$as_echo "$ac_res" >&6; } 1640fi 1641 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1642 1643} # ac_fn_c_check_header_mongrel 1644 1645# ac_fn_c_try_run LINENO 1646# ---------------------- 1647# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1648# that executables *can* be run. 1649ac_fn_c_try_run () 1650{ 1651 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1652 if { { ac_try="$ac_link" 1653case "(($ac_try" in 1654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1655 *) ac_try_echo=$ac_try;; 1656esac 1657eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1658$as_echo "$ac_try_echo"; } >&5 1659 (eval "$ac_link") 2>&5 1660 ac_status=$? 1661 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1662 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1663 { { case "(($ac_try" in 1664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1665 *) ac_try_echo=$ac_try;; 1666esac 1667eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1668$as_echo "$ac_try_echo"; } >&5 1669 (eval "$ac_try") 2>&5 1670 ac_status=$? 1671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1672 test $ac_status = 0; }; }; then : 1673 ac_retval=0 1674else 1675 $as_echo "$as_me: program exited with status $ac_status" >&5 1676 $as_echo "$as_me: failed program was:" >&5 1677sed 's/^/| /' conftest.$ac_ext >&5 1678 1679 ac_retval=$ac_status 1680fi 1681 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1682 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1683 as_fn_set_status $ac_retval 1684 1685} # ac_fn_c_try_run 1686 1687# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1688# ------------------------------------------------------- 1689# Tests whether HEADER exists and can be compiled using the include files in 1690# INCLUDES, setting the cache variable VAR accordingly. 1691ac_fn_c_check_header_compile () 1692{ 1693 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1695$as_echo_n "checking for $2... " >&6; } 1696if eval \${$3+:} false; then : 1697 $as_echo_n "(cached) " >&6 1698else 1699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1700/* end confdefs.h. */ 1701$4 1702#include <$2> 1703_ACEOF 1704if ac_fn_c_try_compile "$LINENO"; then : 1705 eval "$3=yes" 1706else 1707 eval "$3=no" 1708fi 1709rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1710fi 1711eval ac_res=\$$3 1712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1713$as_echo "$ac_res" >&6; } 1714 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1715 1716} # ac_fn_c_check_header_compile 1717 1718# ac_fn_c_try_link LINENO 1719# ----------------------- 1720# Try to link conftest.$ac_ext, and return whether this succeeded. 1721ac_fn_c_try_link () 1722{ 1723 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1724 rm -f conftest.$ac_objext conftest$ac_exeext 1725 if { { ac_try="$ac_link" 1726case "(($ac_try" in 1727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1728 *) ac_try_echo=$ac_try;; 1729esac 1730eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1731$as_echo "$ac_try_echo"; } >&5 1732 (eval "$ac_link") 2>conftest.err 1733 ac_status=$? 1734 if test -s conftest.err; then 1735 grep -v '^ *+' conftest.err >conftest.er1 1736 cat conftest.er1 >&5 1737 mv -f conftest.er1 conftest.err 1738 fi 1739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1740 test $ac_status = 0; } && { 1741 test -z "$ac_c_werror_flag" || 1742 test ! -s conftest.err 1743 } && test -s conftest$ac_exeext && { 1744 test "$cross_compiling" = yes || 1745 $as_test_x conftest$ac_exeext 1746 }; then : 1747 ac_retval=0 1748else 1749 $as_echo "$as_me: failed program was:" >&5 1750sed 's/^/| /' conftest.$ac_ext >&5 1751 1752 ac_retval=1 1753fi 1754 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1755 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1756 # interfere with the next link command; also delete a directory that is 1757 # left behind by Apple's compiler. We do this before executing the actions. 1758 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1759 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1760 as_fn_set_status $ac_retval 1761 1762} # ac_fn_c_try_link 1763 1764# ac_fn_c_check_func LINENO FUNC VAR 1765# ---------------------------------- 1766# Tests whether FUNC exists, setting the cache variable VAR accordingly 1767ac_fn_c_check_func () 1768{ 1769 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1771$as_echo_n "checking for $2... " >&6; } 1772if eval \${$3+:} false; then : 1773 $as_echo_n "(cached) " >&6 1774else 1775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1776/* end confdefs.h. */ 1777/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1778 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1779#define $2 innocuous_$2 1780 1781/* System header to define __stub macros and hopefully few prototypes, 1782 which can conflict with char $2 (); below. 1783 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1784 <limits.h> exists even on freestanding compilers. */ 1785 1786#ifdef __STDC__ 1787# include <limits.h> 1788#else 1789# include <assert.h> 1790#endif 1791 1792#undef $2 1793 1794/* Override any GCC internal prototype to avoid an error. 1795 Use char because int might match the return type of a GCC 1796 builtin and then its argument prototype would still apply. */ 1797#ifdef __cplusplus 1798extern "C" 1799#endif 1800char $2 (); 1801/* The GNU C library defines this for functions which it implements 1802 to always fail with ENOSYS. Some functions are actually named 1803 something starting with __ and the normal name is an alias. */ 1804#if defined __stub_$2 || defined __stub___$2 1805choke me 1806#endif 1807 1808int 1809main () 1810{ 1811return $2 (); 1812 ; 1813 return 0; 1814} 1815_ACEOF 1816if ac_fn_c_try_link "$LINENO"; then : 1817 eval "$3=yes" 1818else 1819 eval "$3=no" 1820fi 1821rm -f core conftest.err conftest.$ac_objext \ 1822 conftest$ac_exeext conftest.$ac_ext 1823fi 1824eval ac_res=\$$3 1825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1826$as_echo "$ac_res" >&6; } 1827 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1828 1829} # ac_fn_c_check_func 1830 1831# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 1832# ------------------------------------------- 1833# Tests whether TYPE exists after having included INCLUDES, setting cache 1834# variable VAR accordingly. 1835ac_fn_c_check_type () 1836{ 1837 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1839$as_echo_n "checking for $2... " >&6; } 1840if eval \${$3+:} false; then : 1841 $as_echo_n "(cached) " >&6 1842else 1843 eval "$3=no" 1844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1845/* end confdefs.h. */ 1846$4 1847int 1848main () 1849{ 1850if (sizeof ($2)) 1851 return 0; 1852 ; 1853 return 0; 1854} 1855_ACEOF 1856if ac_fn_c_try_compile "$LINENO"; then : 1857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1858/* end confdefs.h. */ 1859$4 1860int 1861main () 1862{ 1863if (sizeof (($2))) 1864 return 0; 1865 ; 1866 return 0; 1867} 1868_ACEOF 1869if ac_fn_c_try_compile "$LINENO"; then : 1870 1871else 1872 eval "$3=yes" 1873fi 1874rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1875fi 1876rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1877fi 1878eval ac_res=\$$3 1879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1880$as_echo "$ac_res" >&6; } 1881 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1882 1883} # ac_fn_c_check_type 1884 1885# ac_fn_c_find_uintX_t LINENO BITS VAR 1886# ------------------------------------ 1887# Finds an unsigned integer type with width BITS, setting cache variable VAR 1888# accordingly. 1889ac_fn_c_find_uintX_t () 1890{ 1891 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5 1893$as_echo_n "checking for uint$2_t... " >&6; } 1894if eval \${$3+:} false; then : 1895 $as_echo_n "(cached) " >&6 1896else 1897 eval "$3=no" 1898 # Order is important - never check a type that is potentially smaller 1899 # than half of the expected target width. 1900 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \ 1901 'unsigned long long int' 'unsigned short int' 'unsigned char'; do 1902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1903/* end confdefs.h. */ 1904$ac_includes_default 1905int 1906main () 1907{ 1908static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)]; 1909test_array [0] = 0 1910 1911 ; 1912 return 0; 1913} 1914_ACEOF 1915if ac_fn_c_try_compile "$LINENO"; then : 1916 case $ac_type in #( 1917 uint$2_t) : 1918 eval "$3=yes" ;; #( 1919 *) : 1920 eval "$3=\$ac_type" ;; 1921esac 1922fi 1923rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1924 if eval test \"x\$"$3"\" = x"no"; then : 1925 1926else 1927 break 1928fi 1929 done 1930fi 1931eval ac_res=\$$3 1932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1933$as_echo "$ac_res" >&6; } 1934 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1935 1936} # ac_fn_c_find_uintX_t 1937cat >config.log <<_ACEOF 1938This file contains any messages produced by compilers while 1939running configure, to aid debugging if configure makes a mistake. 1940 1941It was created by GeoIP $as_me 1.5.1, which was 1942generated by GNU Autoconf 2.68. Invocation command line was 1943 1944 $ $0 $@ 1945 1946_ACEOF 1947exec 5>>config.log 1948{ 1949cat <<_ASUNAME 1950## --------- ## 1951## Platform. ## 1952## --------- ## 1953 1954hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1955uname -m = `(uname -m) 2>/dev/null || echo unknown` 1956uname -r = `(uname -r) 2>/dev/null || echo unknown` 1957uname -s = `(uname -s) 2>/dev/null || echo unknown` 1958uname -v = `(uname -v) 2>/dev/null || echo unknown` 1959 1960/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1961/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1962 1963/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1964/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1965/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1966/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1967/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1968/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1969/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1970 1971_ASUNAME 1972 1973as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1974for as_dir in $PATH 1975do 1976 IFS=$as_save_IFS 1977 test -z "$as_dir" && as_dir=. 1978 $as_echo "PATH: $as_dir" 1979 done 1980IFS=$as_save_IFS 1981 1982} >&5 1983 1984cat >&5 <<_ACEOF 1985 1986 1987## ----------- ## 1988## Core tests. ## 1989## ----------- ## 1990 1991_ACEOF 1992 1993 1994# Keep a trace of the command line. 1995# Strip out --no-create and --no-recursion so they do not pile up. 1996# Strip out --silent because we don't want to record it for future runs. 1997# Also quote any args containing shell meta-characters. 1998# Make two passes to allow for proper duplicate-argument suppression. 1999ac_configure_args= 2000ac_configure_args0= 2001ac_configure_args1= 2002ac_must_keep_next=false 2003for ac_pass in 1 2 2004do 2005 for ac_arg 2006 do 2007 case $ac_arg in 2008 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2009 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2010 | -silent | --silent | --silen | --sile | --sil) 2011 continue ;; 2012 *\'*) 2013 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2014 esac 2015 case $ac_pass in 2016 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2017 2) 2018 as_fn_append ac_configure_args1 " '$ac_arg'" 2019 if test $ac_must_keep_next = true; then 2020 ac_must_keep_next=false # Got value, back to normal. 2021 else 2022 case $ac_arg in 2023 *=* | --config-cache | -C | -disable-* | --disable-* \ 2024 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2025 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2026 | -with-* | --with-* | -without-* | --without-* | --x) 2027 case "$ac_configure_args0 " in 2028 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2029 esac 2030 ;; 2031 -* ) ac_must_keep_next=true ;; 2032 esac 2033 fi 2034 as_fn_append ac_configure_args " '$ac_arg'" 2035 ;; 2036 esac 2037 done 2038done 2039{ ac_configure_args0=; unset ac_configure_args0;} 2040{ ac_configure_args1=; unset ac_configure_args1;} 2041 2042# When interrupted or exit'd, cleanup temporary files, and complete 2043# config.log. We remove comments because anyway the quotes in there 2044# would cause problems or look ugly. 2045# WARNING: Use '\'' to represent an apostrophe within the trap. 2046# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2047trap 'exit_status=$? 2048 # Save into config.log some information that might help in debugging. 2049 { 2050 echo 2051 2052 $as_echo "## ---------------- ## 2053## Cache variables. ## 2054## ---------------- ##" 2055 echo 2056 # The following way of writing the cache mishandles newlines in values, 2057( 2058 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2059 eval ac_val=\$$ac_var 2060 case $ac_val in #( 2061 *${as_nl}*) 2062 case $ac_var in #( 2063 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2064$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2065 esac 2066 case $ac_var in #( 2067 _ | IFS | as_nl) ;; #( 2068 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2069 *) { eval $ac_var=; unset $ac_var;} ;; 2070 esac ;; 2071 esac 2072 done 2073 (set) 2>&1 | 2074 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2075 *${as_nl}ac_space=\ *) 2076 sed -n \ 2077 "s/'\''/'\''\\\\'\'''\''/g; 2078 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2079 ;; #( 2080 *) 2081 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2082 ;; 2083 esac | 2084 sort 2085) 2086 echo 2087 2088 $as_echo "## ----------------- ## 2089## Output variables. ## 2090## ----------------- ##" 2091 echo 2092 for ac_var in $ac_subst_vars 2093 do 2094 eval ac_val=\$$ac_var 2095 case $ac_val in 2096 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2097 esac 2098 $as_echo "$ac_var='\''$ac_val'\''" 2099 done | sort 2100 echo 2101 2102 if test -n "$ac_subst_files"; then 2103 $as_echo "## ------------------- ## 2104## File substitutions. ## 2105## ------------------- ##" 2106 echo 2107 for ac_var in $ac_subst_files 2108 do 2109 eval ac_val=\$$ac_var 2110 case $ac_val in 2111 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2112 esac 2113 $as_echo "$ac_var='\''$ac_val'\''" 2114 done | sort 2115 echo 2116 fi 2117 2118 if test -s confdefs.h; then 2119 $as_echo "## ----------- ## 2120## confdefs.h. ## 2121## ----------- ##" 2122 echo 2123 cat confdefs.h 2124 echo 2125 fi 2126 test "$ac_signal" != 0 && 2127 $as_echo "$as_me: caught signal $ac_signal" 2128 $as_echo "$as_me: exit $exit_status" 2129 } >&5 2130 rm -f core *.core core.conftest.* && 2131 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2132 exit $exit_status 2133' 0 2134for ac_signal in 1 2 13 15; do 2135 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2136done 2137ac_signal=0 2138 2139# confdefs.h avoids OS command line length limits that DEFS can exceed. 2140rm -f -r conftest* confdefs.h 2141 2142$as_echo "/* confdefs.h */" > confdefs.h 2143 2144# Predefined preprocessor variables. 2145 2146cat >>confdefs.h <<_ACEOF 2147#define PACKAGE_NAME "$PACKAGE_NAME" 2148_ACEOF 2149 2150cat >>confdefs.h <<_ACEOF 2151#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2152_ACEOF 2153 2154cat >>confdefs.h <<_ACEOF 2155#define PACKAGE_VERSION "$PACKAGE_VERSION" 2156_ACEOF 2157 2158cat >>confdefs.h <<_ACEOF 2159#define PACKAGE_STRING "$PACKAGE_STRING" 2160_ACEOF 2161 2162cat >>confdefs.h <<_ACEOF 2163#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2164_ACEOF 2165 2166cat >>confdefs.h <<_ACEOF 2167#define PACKAGE_URL "$PACKAGE_URL" 2168_ACEOF 2169 2170 2171# Let the site file select an alternate cache file if it wants to. 2172# Prefer an explicitly selected file to automatically selected ones. 2173ac_site_file1=NONE 2174ac_site_file2=NONE 2175if test -n "$CONFIG_SITE"; then 2176 # We do not want a PATH search for config.site. 2177 case $CONFIG_SITE in #(( 2178 -*) ac_site_file1=./$CONFIG_SITE;; 2179 */*) ac_site_file1=$CONFIG_SITE;; 2180 *) ac_site_file1=./$CONFIG_SITE;; 2181 esac 2182elif test "x$prefix" != xNONE; then 2183 ac_site_file1=$prefix/share/config.site 2184 ac_site_file2=$prefix/etc/config.site 2185else 2186 ac_site_file1=$ac_default_prefix/share/config.site 2187 ac_site_file2=$ac_default_prefix/etc/config.site 2188fi 2189for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2190do 2191 test "x$ac_site_file" = xNONE && continue 2192 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2193 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2194$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2195 sed 's/^/| /' "$ac_site_file" >&5 2196 . "$ac_site_file" \ 2197 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2198$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2199as_fn_error $? "failed to load site script $ac_site_file 2200See \`config.log' for more details" "$LINENO" 5; } 2201 fi 2202done 2203 2204if test -r "$cache_file"; then 2205 # Some versions of bash will fail to source /dev/null (special files 2206 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2207 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2208 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2209$as_echo "$as_me: loading cache $cache_file" >&6;} 2210 case $cache_file in 2211 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2212 *) . "./$cache_file";; 2213 esac 2214 fi 2215else 2216 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2217$as_echo "$as_me: creating cache $cache_file" >&6;} 2218 >$cache_file 2219fi 2220 2221# Check that the precious variables saved in the cache have kept the same 2222# value. 2223ac_cache_corrupted=false 2224for ac_var in $ac_precious_vars; do 2225 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2226 eval ac_new_set=\$ac_env_${ac_var}_set 2227 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2228 eval ac_new_val=\$ac_env_${ac_var}_value 2229 case $ac_old_set,$ac_new_set in 2230 set,) 2231 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2232$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2233 ac_cache_corrupted=: ;; 2234 ,set) 2235 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2236$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2237 ac_cache_corrupted=: ;; 2238 ,);; 2239 *) 2240 if test "x$ac_old_val" != "x$ac_new_val"; then 2241 # differences in whitespace do not lead to failure. 2242 ac_old_val_w=`echo x $ac_old_val` 2243 ac_new_val_w=`echo x $ac_new_val` 2244 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2245 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2246$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2247 ac_cache_corrupted=: 2248 else 2249 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2250$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2251 eval $ac_var=\$ac_old_val 2252 fi 2253 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2254$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2255 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2256$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2257 fi;; 2258 esac 2259 # Pass precious variables to config.status. 2260 if test "$ac_new_set" = set; then 2261 case $ac_new_val in 2262 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2263 *) ac_arg=$ac_var=$ac_new_val ;; 2264 esac 2265 case " $ac_configure_args " in 2266 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2267 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2268 esac 2269 fi 2270done 2271if $ac_cache_corrupted; then 2272 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2273$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2274 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2275$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2276 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2277fi 2278## -------------------- ## 2279## Main body of script. ## 2280## -------------------- ## 2281 2282ac_ext=c 2283ac_cpp='$CPP $CPPFLAGS' 2284ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2285ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2286ac_compiler_gnu=$ac_cv_c_compiler_gnu 2287 2288 2289ac_ext=c 2290ac_cpp='$CPP $CPPFLAGS' 2291ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2292ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2293ac_compiler_gnu=$ac_cv_c_compiler_gnu 2294if test -n "$ac_tool_prefix"; then 2295 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2296set dummy ${ac_tool_prefix}gcc; ac_word=$2 2297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2298$as_echo_n "checking for $ac_word... " >&6; } 2299if ${ac_cv_prog_CC+:} false; then : 2300 $as_echo_n "(cached) " >&6 2301else 2302 if test -n "$CC"; then 2303 ac_cv_prog_CC="$CC" # Let the user override the test. 2304else 2305as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2306for as_dir in $PATH 2307do 2308 IFS=$as_save_IFS 2309 test -z "$as_dir" && as_dir=. 2310 for ac_exec_ext in '' $ac_executable_extensions; do 2311 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2312 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2313 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2314 break 2 2315 fi 2316done 2317 done 2318IFS=$as_save_IFS 2319 2320fi 2321fi 2322CC=$ac_cv_prog_CC 2323if test -n "$CC"; then 2324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2325$as_echo "$CC" >&6; } 2326else 2327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2328$as_echo "no" >&6; } 2329fi 2330 2331 2332fi 2333if test -z "$ac_cv_prog_CC"; then 2334 ac_ct_CC=$CC 2335 # Extract the first word of "gcc", so it can be a program name with args. 2336set dummy gcc; ac_word=$2 2337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2338$as_echo_n "checking for $ac_word... " >&6; } 2339if ${ac_cv_prog_ac_ct_CC+:} false; then : 2340 $as_echo_n "(cached) " >&6 2341else 2342 if test -n "$ac_ct_CC"; then 2343 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2344else 2345as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2346for as_dir in $PATH 2347do 2348 IFS=$as_save_IFS 2349 test -z "$as_dir" && as_dir=. 2350 for ac_exec_ext in '' $ac_executable_extensions; do 2351 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2352 ac_cv_prog_ac_ct_CC="gcc" 2353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2354 break 2 2355 fi 2356done 2357 done 2358IFS=$as_save_IFS 2359 2360fi 2361fi 2362ac_ct_CC=$ac_cv_prog_ac_ct_CC 2363if test -n "$ac_ct_CC"; then 2364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2365$as_echo "$ac_ct_CC" >&6; } 2366else 2367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2368$as_echo "no" >&6; } 2369fi 2370 2371 if test "x$ac_ct_CC" = x; then 2372 CC="" 2373 else 2374 case $cross_compiling:$ac_tool_warned in 2375yes:) 2376{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2377$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2378ac_tool_warned=yes ;; 2379esac 2380 CC=$ac_ct_CC 2381 fi 2382else 2383 CC="$ac_cv_prog_CC" 2384fi 2385 2386if test -z "$CC"; then 2387 if test -n "$ac_tool_prefix"; then 2388 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2389set dummy ${ac_tool_prefix}cc; ac_word=$2 2390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2391$as_echo_n "checking for $ac_word... " >&6; } 2392if ${ac_cv_prog_CC+:} false; then : 2393 $as_echo_n "(cached) " >&6 2394else 2395 if test -n "$CC"; then 2396 ac_cv_prog_CC="$CC" # Let the user override the test. 2397else 2398as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2399for as_dir in $PATH 2400do 2401 IFS=$as_save_IFS 2402 test -z "$as_dir" && as_dir=. 2403 for ac_exec_ext in '' $ac_executable_extensions; do 2404 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2405 ac_cv_prog_CC="${ac_tool_prefix}cc" 2406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2407 break 2 2408 fi 2409done 2410 done 2411IFS=$as_save_IFS 2412 2413fi 2414fi 2415CC=$ac_cv_prog_CC 2416if test -n "$CC"; then 2417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2418$as_echo "$CC" >&6; } 2419else 2420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2421$as_echo "no" >&6; } 2422fi 2423 2424 2425 fi 2426fi 2427if test -z "$CC"; then 2428 # Extract the first word of "cc", so it can be a program name with args. 2429set dummy cc; ac_word=$2 2430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2431$as_echo_n "checking for $ac_word... " >&6; } 2432if ${ac_cv_prog_CC+:} false; then : 2433 $as_echo_n "(cached) " >&6 2434else 2435 if test -n "$CC"; then 2436 ac_cv_prog_CC="$CC" # Let the user override the test. 2437else 2438 ac_prog_rejected=no 2439as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2440for as_dir in $PATH 2441do 2442 IFS=$as_save_IFS 2443 test -z "$as_dir" && as_dir=. 2444 for ac_exec_ext in '' $ac_executable_extensions; do 2445 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2446 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2447 ac_prog_rejected=yes 2448 continue 2449 fi 2450 ac_cv_prog_CC="cc" 2451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2452 break 2 2453 fi 2454done 2455 done 2456IFS=$as_save_IFS 2457 2458if test $ac_prog_rejected = yes; then 2459 # We found a bogon in the path, so make sure we never use it. 2460 set dummy $ac_cv_prog_CC 2461 shift 2462 if test $# != 0; then 2463 # We chose a different compiler from the bogus one. 2464 # However, it has the same basename, so the bogon will be chosen 2465 # first if we set CC to just the basename; use the full file name. 2466 shift 2467 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2468 fi 2469fi 2470fi 2471fi 2472CC=$ac_cv_prog_CC 2473if test -n "$CC"; then 2474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2475$as_echo "$CC" >&6; } 2476else 2477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2478$as_echo "no" >&6; } 2479fi 2480 2481 2482fi 2483if test -z "$CC"; then 2484 if test -n "$ac_tool_prefix"; then 2485 for ac_prog in cl.exe 2486 do 2487 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2488set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2490$as_echo_n "checking for $ac_word... " >&6; } 2491if ${ac_cv_prog_CC+:} false; then : 2492 $as_echo_n "(cached) " >&6 2493else 2494 if test -n "$CC"; then 2495 ac_cv_prog_CC="$CC" # Let the user override the test. 2496else 2497as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2498for as_dir in $PATH 2499do 2500 IFS=$as_save_IFS 2501 test -z "$as_dir" && as_dir=. 2502 for ac_exec_ext in '' $ac_executable_extensions; do 2503 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2504 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2506 break 2 2507 fi 2508done 2509 done 2510IFS=$as_save_IFS 2511 2512fi 2513fi 2514CC=$ac_cv_prog_CC 2515if test -n "$CC"; then 2516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2517$as_echo "$CC" >&6; } 2518else 2519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2520$as_echo "no" >&6; } 2521fi 2522 2523 2524 test -n "$CC" && break 2525 done 2526fi 2527if test -z "$CC"; then 2528 ac_ct_CC=$CC 2529 for ac_prog in cl.exe 2530do 2531 # Extract the first word of "$ac_prog", so it can be a program name with args. 2532set dummy $ac_prog; ac_word=$2 2533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2534$as_echo_n "checking for $ac_word... " >&6; } 2535if ${ac_cv_prog_ac_ct_CC+:} false; then : 2536 $as_echo_n "(cached) " >&6 2537else 2538 if test -n "$ac_ct_CC"; then 2539 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2540else 2541as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2542for as_dir in $PATH 2543do 2544 IFS=$as_save_IFS 2545 test -z "$as_dir" && as_dir=. 2546 for ac_exec_ext in '' $ac_executable_extensions; do 2547 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2548 ac_cv_prog_ac_ct_CC="$ac_prog" 2549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2550 break 2 2551 fi 2552done 2553 done 2554IFS=$as_save_IFS 2555 2556fi 2557fi 2558ac_ct_CC=$ac_cv_prog_ac_ct_CC 2559if test -n "$ac_ct_CC"; then 2560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2561$as_echo "$ac_ct_CC" >&6; } 2562else 2563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2564$as_echo "no" >&6; } 2565fi 2566 2567 2568 test -n "$ac_ct_CC" && break 2569done 2570 2571 if test "x$ac_ct_CC" = x; then 2572 CC="" 2573 else 2574 case $cross_compiling:$ac_tool_warned in 2575yes:) 2576{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2577$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2578ac_tool_warned=yes ;; 2579esac 2580 CC=$ac_ct_CC 2581 fi 2582fi 2583 2584fi 2585 2586 2587test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2588$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2589as_fn_error $? "no acceptable C compiler found in \$PATH 2590See \`config.log' for more details" "$LINENO" 5; } 2591 2592# Provide some information about the compiler. 2593$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 2594set X $ac_compile 2595ac_compiler=$2 2596for ac_option in --version -v -V -qversion; do 2597 { { ac_try="$ac_compiler $ac_option >&5" 2598case "(($ac_try" in 2599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2600 *) ac_try_echo=$ac_try;; 2601esac 2602eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2603$as_echo "$ac_try_echo"; } >&5 2604 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 2605 ac_status=$? 2606 if test -s conftest.err; then 2607 sed '10a\ 2608... rest of stderr output deleted ... 2609 10q' conftest.err >conftest.er1 2610 cat conftest.er1 >&5 2611 fi 2612 rm -f conftest.er1 conftest.err 2613 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2614 test $ac_status = 0; } 2615done 2616 2617cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2618/* end confdefs.h. */ 2619 2620int 2621main () 2622{ 2623 2624 ; 2625 return 0; 2626} 2627_ACEOF 2628ac_clean_files_save=$ac_clean_files 2629ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 2630# Try to create an executable without -o first, disregard a.out. 2631# It will help us diagnose broken compilers, and finding out an intuition 2632# of exeext. 2633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 2634$as_echo_n "checking whether the C compiler works... " >&6; } 2635ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2636 2637# The possible output files: 2638ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 2639 2640ac_rmfiles= 2641for ac_file in $ac_files 2642do 2643 case $ac_file in 2644 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2645 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2646 esac 2647done 2648rm -f $ac_rmfiles 2649 2650if { { ac_try="$ac_link_default" 2651case "(($ac_try" in 2652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2653 *) ac_try_echo=$ac_try;; 2654esac 2655eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2656$as_echo "$ac_try_echo"; } >&5 2657 (eval "$ac_link_default") 2>&5 2658 ac_status=$? 2659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2660 test $ac_status = 0; }; then : 2661 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2662# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2663# in a Makefile. We should not override ac_cv_exeext if it was cached, 2664# so that the user can short-circuit this test for compilers unknown to 2665# Autoconf. 2666for ac_file in $ac_files '' 2667do 2668 test -f "$ac_file" || continue 2669 case $ac_file in 2670 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 2671 ;; 2672 [ab].out ) 2673 # We found the default executable, but exeext='' is most 2674 # certainly right. 2675 break;; 2676 *.* ) 2677 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2678 then :; else 2679 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2680 fi 2681 # We set ac_cv_exeext here because the later test for it is not 2682 # safe: cross compilers may not add the suffix if given an `-o' 2683 # argument, so we may need to know it at that point already. 2684 # Even if this section looks crufty: it has the advantage of 2685 # actually working. 2686 break;; 2687 * ) 2688 break;; 2689 esac 2690done 2691test "$ac_cv_exeext" = no && ac_cv_exeext= 2692 2693else 2694 ac_file='' 2695fi 2696if test -z "$ac_file"; then : 2697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2698$as_echo "no" >&6; } 2699$as_echo "$as_me: failed program was:" >&5 2700sed 's/^/| /' conftest.$ac_ext >&5 2701 2702{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2703$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2704as_fn_error 77 "C compiler cannot create executables 2705See \`config.log' for more details" "$LINENO" 5; } 2706else 2707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2708$as_echo "yes" >&6; } 2709fi 2710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 2711$as_echo_n "checking for C compiler default output file name... " >&6; } 2712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 2713$as_echo "$ac_file" >&6; } 2714ac_exeext=$ac_cv_exeext 2715 2716rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 2717ac_clean_files=$ac_clean_files_save 2718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 2719$as_echo_n "checking for suffix of executables... " >&6; } 2720if { { ac_try="$ac_link" 2721case "(($ac_try" in 2722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2723 *) ac_try_echo=$ac_try;; 2724esac 2725eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2726$as_echo "$ac_try_echo"; } >&5 2727 (eval "$ac_link") 2>&5 2728 ac_status=$? 2729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2730 test $ac_status = 0; }; then : 2731 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2732# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2733# work properly (i.e., refer to `conftest.exe'), while it won't with 2734# `rm'. 2735for ac_file in conftest.exe conftest conftest.*; do 2736 test -f "$ac_file" || continue 2737 case $ac_file in 2738 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2739 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2740 break;; 2741 * ) break;; 2742 esac 2743done 2744else 2745 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2746$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2747as_fn_error $? "cannot compute suffix of executables: cannot compile and link 2748See \`config.log' for more details" "$LINENO" 5; } 2749fi 2750rm -f conftest conftest$ac_cv_exeext 2751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 2752$as_echo "$ac_cv_exeext" >&6; } 2753 2754rm -f conftest.$ac_ext 2755EXEEXT=$ac_cv_exeext 2756ac_exeext=$EXEEXT 2757cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2758/* end confdefs.h. */ 2759#include <stdio.h> 2760int 2761main () 2762{ 2763FILE *f = fopen ("conftest.out", "w"); 2764 return ferror (f) || fclose (f) != 0; 2765 2766 ; 2767 return 0; 2768} 2769_ACEOF 2770ac_clean_files="$ac_clean_files conftest.out" 2771# Check that the compiler produces executables we can run. If not, either 2772# the compiler is broken, or we cross compile. 2773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 2774$as_echo_n "checking whether we are cross compiling... " >&6; } 2775if test "$cross_compiling" != yes; then 2776 { { ac_try="$ac_link" 2777case "(($ac_try" in 2778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2779 *) ac_try_echo=$ac_try;; 2780esac 2781eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2782$as_echo "$ac_try_echo"; } >&5 2783 (eval "$ac_link") 2>&5 2784 ac_status=$? 2785 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2786 test $ac_status = 0; } 2787 if { ac_try='./conftest$ac_cv_exeext' 2788 { { case "(($ac_try" in 2789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2790 *) ac_try_echo=$ac_try;; 2791esac 2792eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2793$as_echo "$ac_try_echo"; } >&5 2794 (eval "$ac_try") 2>&5 2795 ac_status=$? 2796 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2797 test $ac_status = 0; }; }; then 2798 cross_compiling=no 2799 else 2800 if test "$cross_compiling" = maybe; then 2801 cross_compiling=yes 2802 else 2803 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2804$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2805as_fn_error $? "cannot run C compiled programs. 2806If you meant to cross compile, use \`--host'. 2807See \`config.log' for more details" "$LINENO" 5; } 2808 fi 2809 fi 2810fi 2811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 2812$as_echo "$cross_compiling" >&6; } 2813 2814rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 2815ac_clean_files=$ac_clean_files_save 2816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 2817$as_echo_n "checking for suffix of object files... " >&6; } 2818if ${ac_cv_objext+:} false; then : 2819 $as_echo_n "(cached) " >&6 2820else 2821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2822/* end confdefs.h. */ 2823 2824int 2825main () 2826{ 2827 2828 ; 2829 return 0; 2830} 2831_ACEOF 2832rm -f conftest.o conftest.obj 2833if { { ac_try="$ac_compile" 2834case "(($ac_try" in 2835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2836 *) ac_try_echo=$ac_try;; 2837esac 2838eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2839$as_echo "$ac_try_echo"; } >&5 2840 (eval "$ac_compile") 2>&5 2841 ac_status=$? 2842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2843 test $ac_status = 0; }; then : 2844 for ac_file in conftest.o conftest.obj conftest.*; do 2845 test -f "$ac_file" || continue; 2846 case $ac_file in 2847 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 2848 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2849 break;; 2850 esac 2851done 2852else 2853 $as_echo "$as_me: failed program was:" >&5 2854sed 's/^/| /' conftest.$ac_ext >&5 2855 2856{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2857$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2858as_fn_error $? "cannot compute suffix of object files: cannot compile 2859See \`config.log' for more details" "$LINENO" 5; } 2860fi 2861rm -f conftest.$ac_cv_objext conftest.$ac_ext 2862fi 2863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 2864$as_echo "$ac_cv_objext" >&6; } 2865OBJEXT=$ac_cv_objext 2866ac_objext=$OBJEXT 2867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 2868$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 2869if ${ac_cv_c_compiler_gnu+:} false; then : 2870 $as_echo_n "(cached) " >&6 2871else 2872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2873/* end confdefs.h. */ 2874 2875int 2876main () 2877{ 2878#ifndef __GNUC__ 2879 choke me 2880#endif 2881 2882 ; 2883 return 0; 2884} 2885_ACEOF 2886if ac_fn_c_try_compile "$LINENO"; then : 2887 ac_compiler_gnu=yes 2888else 2889 ac_compiler_gnu=no 2890fi 2891rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2892ac_cv_c_compiler_gnu=$ac_compiler_gnu 2893 2894fi 2895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 2896$as_echo "$ac_cv_c_compiler_gnu" >&6; } 2897if test $ac_compiler_gnu = yes; then 2898 GCC=yes 2899else 2900 GCC= 2901fi 2902ac_test_CFLAGS=${CFLAGS+set} 2903ac_save_CFLAGS=$CFLAGS 2904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 2905$as_echo_n "checking whether $CC accepts -g... " >&6; } 2906if ${ac_cv_prog_cc_g+:} false; then : 2907 $as_echo_n "(cached) " >&6 2908else 2909 ac_save_c_werror_flag=$ac_c_werror_flag 2910 ac_c_werror_flag=yes 2911 ac_cv_prog_cc_g=no 2912 CFLAGS="-g" 2913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2914/* end confdefs.h. */ 2915 2916int 2917main () 2918{ 2919 2920 ; 2921 return 0; 2922} 2923_ACEOF 2924if ac_fn_c_try_compile "$LINENO"; then : 2925 ac_cv_prog_cc_g=yes 2926else 2927 CFLAGS="" 2928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2929/* end confdefs.h. */ 2930 2931int 2932main () 2933{ 2934 2935 ; 2936 return 0; 2937} 2938_ACEOF 2939if ac_fn_c_try_compile "$LINENO"; then : 2940 2941else 2942 ac_c_werror_flag=$ac_save_c_werror_flag 2943 CFLAGS="-g" 2944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2945/* end confdefs.h. */ 2946 2947int 2948main () 2949{ 2950 2951 ; 2952 return 0; 2953} 2954_ACEOF 2955if ac_fn_c_try_compile "$LINENO"; then : 2956 ac_cv_prog_cc_g=yes 2957fi 2958rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2959fi 2960rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2961fi 2962rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2963 ac_c_werror_flag=$ac_save_c_werror_flag 2964fi 2965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 2966$as_echo "$ac_cv_prog_cc_g" >&6; } 2967if test "$ac_test_CFLAGS" = set; then 2968 CFLAGS=$ac_save_CFLAGS 2969elif test $ac_cv_prog_cc_g = yes; then 2970 if test "$GCC" = yes; then 2971 CFLAGS="-g -O2" 2972 else 2973 CFLAGS="-g" 2974 fi 2975else 2976 if test "$GCC" = yes; then 2977 CFLAGS="-O2" 2978 else 2979 CFLAGS= 2980 fi 2981fi 2982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 2983$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 2984if ${ac_cv_prog_cc_c89+:} false; then : 2985 $as_echo_n "(cached) " >&6 2986else 2987 ac_cv_prog_cc_c89=no 2988ac_save_CC=$CC 2989cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2990/* end confdefs.h. */ 2991#include <stdarg.h> 2992#include <stdio.h> 2993#include <sys/types.h> 2994#include <sys/stat.h> 2995/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2996struct buf { int x; }; 2997FILE * (*rcsopen) (struct buf *, struct stat *, int); 2998static char *e (p, i) 2999 char **p; 3000 int i; 3001{ 3002 return p[i]; 3003} 3004static char *f (char * (*g) (char **, int), char **p, ...) 3005{ 3006 char *s; 3007 va_list v; 3008 va_start (v,p); 3009 s = g (p, va_arg (v,int)); 3010 va_end (v); 3011 return s; 3012} 3013 3014/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3015 function prototypes and stuff, but not '\xHH' hex character constants. 3016 These don't provoke an error unfortunately, instead are silently treated 3017 as 'x'. The following induces an error, until -std is added to get 3018 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3019 array size at least. It's necessary to write '\x00'==0 to get something 3020 that's true only with -std. */ 3021int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3022 3023/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3024 inside strings and character constants. */ 3025#define FOO(x) 'x' 3026int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3027 3028int test (int i, double x); 3029struct s1 {int (*f) (int a);}; 3030struct s2 {int (*f) (double a);}; 3031int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3032int argc; 3033char **argv; 3034int 3035main () 3036{ 3037return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3038 ; 3039 return 0; 3040} 3041_ACEOF 3042for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3043 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3044do 3045 CC="$ac_save_CC $ac_arg" 3046 if ac_fn_c_try_compile "$LINENO"; then : 3047 ac_cv_prog_cc_c89=$ac_arg 3048fi 3049rm -f core conftest.err conftest.$ac_objext 3050 test "x$ac_cv_prog_cc_c89" != "xno" && break 3051done 3052rm -f conftest.$ac_ext 3053CC=$ac_save_CC 3054 3055fi 3056# AC_CACHE_VAL 3057case "x$ac_cv_prog_cc_c89" in 3058 x) 3059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3060$as_echo "none needed" >&6; } ;; 3061 xno) 3062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3063$as_echo "unsupported" >&6; } ;; 3064 *) 3065 CC="$CC $ac_cv_prog_cc_c89" 3066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3067$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3068esac 3069if test "x$ac_cv_prog_cc_c89" != xno; then : 3070 3071fi 3072 3073ac_ext=c 3074ac_cpp='$CPP $CPPFLAGS' 3075ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3076ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3077ac_compiler_gnu=$ac_cv_c_compiler_gnu 3078 3079 3080ac_ext=c 3081ac_cpp='$CPP $CPPFLAGS' 3082ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3083ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3084ac_compiler_gnu=$ac_cv_c_compiler_gnu 3085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3086$as_echo_n "checking how to run the C preprocessor... " >&6; } 3087# On Suns, sometimes $CPP names a directory. 3088if test -n "$CPP" && test -d "$CPP"; then 3089 CPP= 3090fi 3091if test -z "$CPP"; then 3092 if ${ac_cv_prog_CPP+:} false; then : 3093 $as_echo_n "(cached) " >&6 3094else 3095 # Double quotes because CPP needs to be expanded 3096 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3097 do 3098 ac_preproc_ok=false 3099for ac_c_preproc_warn_flag in '' yes 3100do 3101 # Use a header file that comes with gcc, so configuring glibc 3102 # with a fresh cross-compiler works. 3103 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3104 # <limits.h> exists even on freestanding compilers. 3105 # On the NeXT, cc -E runs the code through the compiler's parser, 3106 # not just through cpp. "Syntax error" is here to catch this case. 3107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3108/* end confdefs.h. */ 3109#ifdef __STDC__ 3110# include <limits.h> 3111#else 3112# include <assert.h> 3113#endif 3114 Syntax error 3115_ACEOF 3116if ac_fn_c_try_cpp "$LINENO"; then : 3117 3118else 3119 # Broken: fails on valid input. 3120continue 3121fi 3122rm -f conftest.err conftest.i conftest.$ac_ext 3123 3124 # OK, works on sane cases. Now check whether nonexistent headers 3125 # can be detected and how. 3126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3127/* end confdefs.h. */ 3128#include <ac_nonexistent.h> 3129_ACEOF 3130if ac_fn_c_try_cpp "$LINENO"; then : 3131 # Broken: success on invalid input. 3132continue 3133else 3134 # Passes both tests. 3135ac_preproc_ok=: 3136break 3137fi 3138rm -f conftest.err conftest.i conftest.$ac_ext 3139 3140done 3141# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3142rm -f conftest.i conftest.err conftest.$ac_ext 3143if $ac_preproc_ok; then : 3144 break 3145fi 3146 3147 done 3148 ac_cv_prog_CPP=$CPP 3149 3150fi 3151 CPP=$ac_cv_prog_CPP 3152else 3153 ac_cv_prog_CPP=$CPP 3154fi 3155{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 3156$as_echo "$CPP" >&6; } 3157ac_preproc_ok=false 3158for ac_c_preproc_warn_flag in '' yes 3159do 3160 # Use a header file that comes with gcc, so configuring glibc 3161 # with a fresh cross-compiler works. 3162 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3163 # <limits.h> exists even on freestanding compilers. 3164 # On the NeXT, cc -E runs the code through the compiler's parser, 3165 # not just through cpp. "Syntax error" is here to catch this case. 3166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3167/* end confdefs.h. */ 3168#ifdef __STDC__ 3169# include <limits.h> 3170#else 3171# include <assert.h> 3172#endif 3173 Syntax error 3174_ACEOF 3175if ac_fn_c_try_cpp "$LINENO"; then : 3176 3177else 3178 # Broken: fails on valid input. 3179continue 3180fi 3181rm -f conftest.err conftest.i conftest.$ac_ext 3182 3183 # OK, works on sane cases. Now check whether nonexistent headers 3184 # can be detected and how. 3185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3186/* end confdefs.h. */ 3187#include <ac_nonexistent.h> 3188_ACEOF 3189if ac_fn_c_try_cpp "$LINENO"; then : 3190 # Broken: success on invalid input. 3191continue 3192else 3193 # Passes both tests. 3194ac_preproc_ok=: 3195break 3196fi 3197rm -f conftest.err conftest.i conftest.$ac_ext 3198 3199done 3200# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3201rm -f conftest.i conftest.err conftest.$ac_ext 3202if $ac_preproc_ok; then : 3203 3204else 3205 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3206$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3207as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 3208See \`config.log' for more details" "$LINENO" 5; } 3209fi 3210 3211ac_ext=c 3212ac_cpp='$CPP $CPPFLAGS' 3213ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3214ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3215ac_compiler_gnu=$ac_cv_c_compiler_gnu 3216 3217 3218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 3219$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3220if ${ac_cv_path_GREP+:} false; then : 3221 $as_echo_n "(cached) " >&6 3222else 3223 if test -z "$GREP"; then 3224 ac_path_GREP_found=false 3225 # Loop through the user's path and test for each of PROGNAME-LIST 3226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3227for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3228do 3229 IFS=$as_save_IFS 3230 test -z "$as_dir" && as_dir=. 3231 for ac_prog in grep ggrep; do 3232 for ac_exec_ext in '' $ac_executable_extensions; do 3233 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3234 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 3235# Check for GNU ac_path_GREP and select it if it is found. 3236 # Check for GNU $ac_path_GREP 3237case `"$ac_path_GREP" --version 2>&1` in 3238*GNU*) 3239 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3240*) 3241 ac_count=0 3242 $as_echo_n 0123456789 >"conftest.in" 3243 while : 3244 do 3245 cat "conftest.in" "conftest.in" >"conftest.tmp" 3246 mv "conftest.tmp" "conftest.in" 3247 cp "conftest.in" "conftest.nl" 3248 $as_echo 'GREP' >> "conftest.nl" 3249 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3250 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3251 as_fn_arith $ac_count + 1 && ac_count=$as_val 3252 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3253 # Best one so far, save it but keep looking for a better one 3254 ac_cv_path_GREP="$ac_path_GREP" 3255 ac_path_GREP_max=$ac_count 3256 fi 3257 # 10*(2^10) chars as input seems more than enough 3258 test $ac_count -gt 10 && break 3259 done 3260 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3261esac 3262 3263 $ac_path_GREP_found && break 3 3264 done 3265 done 3266 done 3267IFS=$as_save_IFS 3268 if test -z "$ac_cv_path_GREP"; then 3269 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3270 fi 3271else 3272 ac_cv_path_GREP=$GREP 3273fi 3274 3275fi 3276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 3277$as_echo "$ac_cv_path_GREP" >&6; } 3278 GREP="$ac_cv_path_GREP" 3279 3280 3281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 3282$as_echo_n "checking for egrep... " >&6; } 3283if ${ac_cv_path_EGREP+:} false; then : 3284 $as_echo_n "(cached) " >&6 3285else 3286 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3287 then ac_cv_path_EGREP="$GREP -E" 3288 else 3289 if test -z "$EGREP"; then 3290 ac_path_EGREP_found=false 3291 # Loop through the user's path and test for each of PROGNAME-LIST 3292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3293for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3294do 3295 IFS=$as_save_IFS 3296 test -z "$as_dir" && as_dir=. 3297 for ac_prog in egrep; do 3298 for ac_exec_ext in '' $ac_executable_extensions; do 3299 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3300 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 3301# Check for GNU ac_path_EGREP and select it if it is found. 3302 # Check for GNU $ac_path_EGREP 3303case `"$ac_path_EGREP" --version 2>&1` in 3304*GNU*) 3305 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3306*) 3307 ac_count=0 3308 $as_echo_n 0123456789 >"conftest.in" 3309 while : 3310 do 3311 cat "conftest.in" "conftest.in" >"conftest.tmp" 3312 mv "conftest.tmp" "conftest.in" 3313 cp "conftest.in" "conftest.nl" 3314 $as_echo 'EGREP' >> "conftest.nl" 3315 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3316 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3317 as_fn_arith $ac_count + 1 && ac_count=$as_val 3318 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3319 # Best one so far, save it but keep looking for a better one 3320 ac_cv_path_EGREP="$ac_path_EGREP" 3321 ac_path_EGREP_max=$ac_count 3322 fi 3323 # 10*(2^10) chars as input seems more than enough 3324 test $ac_count -gt 10 && break 3325 done 3326 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3327esac 3328 3329 $ac_path_EGREP_found && break 3 3330 done 3331 done 3332 done 3333IFS=$as_save_IFS 3334 if test -z "$ac_cv_path_EGREP"; then 3335 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3336 fi 3337else 3338 ac_cv_path_EGREP=$EGREP 3339fi 3340 3341 fi 3342fi 3343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 3344$as_echo "$ac_cv_path_EGREP" >&6; } 3345 EGREP="$ac_cv_path_EGREP" 3346 3347 3348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 3349$as_echo_n "checking for ANSI C header files... " >&6; } 3350if ${ac_cv_header_stdc+:} false; then : 3351 $as_echo_n "(cached) " >&6 3352else 3353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3354/* end confdefs.h. */ 3355#include <stdlib.h> 3356#include <stdarg.h> 3357#include <string.h> 3358#include <float.h> 3359 3360int 3361main () 3362{ 3363 3364 ; 3365 return 0; 3366} 3367_ACEOF 3368if ac_fn_c_try_compile "$LINENO"; then : 3369 ac_cv_header_stdc=yes 3370else 3371 ac_cv_header_stdc=no 3372fi 3373rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3374 3375if test $ac_cv_header_stdc = yes; then 3376 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3378/* end confdefs.h. */ 3379#include <string.h> 3380 3381_ACEOF 3382if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3383 $EGREP "memchr" >/dev/null 2>&1; then : 3384 3385else 3386 ac_cv_header_stdc=no 3387fi 3388rm -f conftest* 3389 3390fi 3391 3392if test $ac_cv_header_stdc = yes; then 3393 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3395/* end confdefs.h. */ 3396#include <stdlib.h> 3397 3398_ACEOF 3399if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3400 $EGREP "free" >/dev/null 2>&1; then : 3401 3402else 3403 ac_cv_header_stdc=no 3404fi 3405rm -f conftest* 3406 3407fi 3408 3409if test $ac_cv_header_stdc = yes; then 3410 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3411 if test "$cross_compiling" = yes; then : 3412 : 3413else 3414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3415/* end confdefs.h. */ 3416#include <ctype.h> 3417#include <stdlib.h> 3418#if ((' ' & 0x0FF) == 0x020) 3419# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3420# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3421#else 3422# define ISLOWER(c) \ 3423 (('a' <= (c) && (c) <= 'i') \ 3424 || ('j' <= (c) && (c) <= 'r') \ 3425 || ('s' <= (c) && (c) <= 'z')) 3426# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3427#endif 3428 3429#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3430int 3431main () 3432{ 3433 int i; 3434 for (i = 0; i < 256; i++) 3435 if (XOR (islower (i), ISLOWER (i)) 3436 || toupper (i) != TOUPPER (i)) 3437 return 2; 3438 return 0; 3439} 3440_ACEOF 3441if ac_fn_c_try_run "$LINENO"; then : 3442 3443else 3444 ac_cv_header_stdc=no 3445fi 3446rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 3447 conftest.$ac_objext conftest.beam conftest.$ac_ext 3448fi 3449 3450fi 3451fi 3452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 3453$as_echo "$ac_cv_header_stdc" >&6; } 3454if test $ac_cv_header_stdc = yes; then 3455 3456$as_echo "#define STDC_HEADERS 1" >>confdefs.h 3457 3458fi 3459 3460# On IRIX 5.3, sys/types and inttypes.h are conflicting. 3461for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3462 inttypes.h stdint.h unistd.h 3463do : 3464 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 3465ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 3466" 3467if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 3468 cat >>confdefs.h <<_ACEOF 3469#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 3470_ACEOF 3471 3472fi 3473 3474done 3475 3476 3477 3478 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 3479if test "x$ac_cv_header_minix_config_h" = xyes; then : 3480 MINIX=yes 3481else 3482 MINIX= 3483fi 3484 3485 3486 if test "$MINIX" = yes; then 3487 3488$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 3489 3490 3491$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 3492 3493 3494$as_echo "#define _MINIX 1" >>confdefs.h 3495 3496 fi 3497 3498 3499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 3500$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 3501if ${ac_cv_safe_to_define___extensions__+:} false; then : 3502 $as_echo_n "(cached) " >&6 3503else 3504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3505/* end confdefs.h. */ 3506 3507# define __EXTENSIONS__ 1 3508 $ac_includes_default 3509int 3510main () 3511{ 3512 3513 ; 3514 return 0; 3515} 3516_ACEOF 3517if ac_fn_c_try_compile "$LINENO"; then : 3518 ac_cv_safe_to_define___extensions__=yes 3519else 3520 ac_cv_safe_to_define___extensions__=no 3521fi 3522rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3523fi 3524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 3525$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 3526 test $ac_cv_safe_to_define___extensions__ = yes && 3527 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 3528 3529 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 3530 3531 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 3532 3533 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 3534 3535 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 3536 3537 3538 3539am__api_version='1.11' 3540 3541ac_aux_dir= 3542for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 3543 if test -f "$ac_dir/install-sh"; then 3544 ac_aux_dir=$ac_dir 3545 ac_install_sh="$ac_aux_dir/install-sh -c" 3546 break 3547 elif test -f "$ac_dir/install.sh"; then 3548 ac_aux_dir=$ac_dir 3549 ac_install_sh="$ac_aux_dir/install.sh -c" 3550 break 3551 elif test -f "$ac_dir/shtool"; then 3552 ac_aux_dir=$ac_dir 3553 ac_install_sh="$ac_aux_dir/shtool install -c" 3554 break 3555 fi 3556done 3557if test -z "$ac_aux_dir"; then 3558 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 3559fi 3560 3561# These three variables are undocumented and unsupported, 3562# and are intended to be withdrawn in a future Autoconf release. 3563# They can cause serious problems if a builder's source tree is in a directory 3564# whose full name contains unusual characters. 3565ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 3566ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 3567ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 3568 3569 3570# Find a good install program. We prefer a C program (faster), 3571# so one script is as good as another. But avoid the broken or 3572# incompatible versions: 3573# SysV /etc/install, /usr/sbin/install 3574# SunOS /usr/etc/install 3575# IRIX /sbin/install 3576# AIX /bin/install 3577# AmigaOS /C/install, which installs bootblocks on floppy discs 3578# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3579# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3580# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3581# OS/2's system install, which has a completely different semantic 3582# ./install, which can be erroneously created by make from ./install.sh. 3583# Reject install programs that cannot install multiple files. 3584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 3585$as_echo_n "checking for a BSD-compatible install... " >&6; } 3586if test -z "$INSTALL"; then 3587if ${ac_cv_path_install+:} false; then : 3588 $as_echo_n "(cached) " >&6 3589else 3590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3591for as_dir in $PATH 3592do 3593 IFS=$as_save_IFS 3594 test -z "$as_dir" && as_dir=. 3595 # Account for people who put trailing slashes in PATH elements. 3596case $as_dir/ in #(( 3597 ./ | .// | /[cC]/* | \ 3598 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3599 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 3600 /usr/ucb/* ) ;; 3601 *) 3602 # OSF1 and SCO ODT 3.0 have their own names for install. 3603 # Don't use installbsd from OSF since it installs stuff as root 3604 # by default. 3605 for ac_prog in ginstall scoinst install; do 3606 for ac_exec_ext in '' $ac_executable_extensions; do 3607 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 3608 if test $ac_prog = install && 3609 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3610 # AIX install. It has an incompatible calling convention. 3611 : 3612 elif test $ac_prog = install && 3613 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3614 # program-specific install script used by HP pwplus--don't use. 3615 : 3616 else 3617 rm -rf conftest.one conftest.two conftest.dir 3618 echo one > conftest.one 3619 echo two > conftest.two 3620 mkdir conftest.dir 3621 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 3622 test -s conftest.one && test -s conftest.two && 3623 test -s conftest.dir/conftest.one && 3624 test -s conftest.dir/conftest.two 3625 then 3626 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3627 break 3 3628 fi 3629 fi 3630 fi 3631 done 3632 done 3633 ;; 3634esac 3635 3636 done 3637IFS=$as_save_IFS 3638 3639rm -rf conftest.one conftest.two conftest.dir 3640 3641fi 3642 if test "${ac_cv_path_install+set}" = set; then 3643 INSTALL=$ac_cv_path_install 3644 else 3645 # As a last resort, use the slow shell script. Don't cache a 3646 # value for INSTALL within a source directory, because that will 3647 # break other packages using the cache if that directory is 3648 # removed, or if the value is a relative name. 3649 INSTALL=$ac_install_sh 3650 fi 3651fi 3652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 3653$as_echo "$INSTALL" >&6; } 3654 3655# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3656# It thinks the first close brace ends the variable substitution. 3657test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3658 3659test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3660 3661test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3662 3663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 3664$as_echo_n "checking whether build environment is sane... " >&6; } 3665# Just in case 3666sleep 1 3667echo timestamp > conftest.file 3668# Reject unsafe characters in $srcdir or the absolute working directory 3669# name. Accept space and tab only in the latter. 3670am_lf=' 3671' 3672case `pwd` in 3673 *[\\\"\#\$\&\'\`$am_lf]*) 3674 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 3675esac 3676case $srcdir in 3677 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 3678 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; 3679esac 3680 3681# Do `set' in a subshell so we don't clobber the current shell's 3682# arguments. Must try -L first in case configure is actually a 3683# symlink; some systems play weird games with the mod time of symlinks 3684# (eg FreeBSD returns the mod time of the symlink's containing 3685# directory). 3686if ( 3687 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 3688 if test "$*" = "X"; then 3689 # -L didn't work. 3690 set X `ls -t "$srcdir/configure" conftest.file` 3691 fi 3692 rm -f conftest.file 3693 if test "$*" != "X $srcdir/configure conftest.file" \ 3694 && test "$*" != "X conftest.file $srcdir/configure"; then 3695 3696 # If neither matched, then we have a broken ls. This can happen 3697 # if, for instance, CONFIG_SHELL is bash and it inherits a 3698 # broken ls alias from the environment. This has actually 3699 # happened. Such a system could not be considered "sane". 3700 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 3701alias in your environment" "$LINENO" 5 3702 fi 3703 3704 test "$2" = conftest.file 3705 ) 3706then 3707 # Ok. 3708 : 3709else 3710 as_fn_error $? "newly created file is older than distributed files! 3711Check your system clock" "$LINENO" 5 3712fi 3713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3714$as_echo "yes" >&6; } 3715test "$program_prefix" != NONE && 3716 program_transform_name="s&^&$program_prefix&;$program_transform_name" 3717# Use a double $ so make ignores it. 3718test "$program_suffix" != NONE && 3719 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 3720# Double any \ or $. 3721# By default was `s,x,x', remove it if useless. 3722ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 3723program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 3724 3725# expand $ac_aux_dir to an absolute path 3726am_aux_dir=`cd $ac_aux_dir && pwd` 3727 3728if test x"${MISSING+set}" != xset; then 3729 case $am_aux_dir in 3730 *\ * | *\ *) 3731 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 3732 *) 3733 MISSING="\${SHELL} $am_aux_dir/missing" ;; 3734 esac 3735fi 3736# Use eval to expand $SHELL 3737if eval "$MISSING --run true"; then 3738 am_missing_run="$MISSING --run " 3739else 3740 am_missing_run= 3741 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 3742$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 3743fi 3744 3745if test x"${install_sh}" != xset; then 3746 case $am_aux_dir in 3747 *\ * | *\ *) 3748 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 3749 *) 3750 install_sh="\${SHELL} $am_aux_dir/install-sh" 3751 esac 3752fi 3753 3754# Installed binaries are usually stripped using `strip' when the user 3755# run `make install-strip'. However `strip' might not be the right 3756# tool to use in cross-compilation environments, therefore Automake 3757# will honor the `STRIP' environment variable to overrule this program. 3758if test "$cross_compiling" != no; then 3759 if test -n "$ac_tool_prefix"; then 3760 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3761set dummy ${ac_tool_prefix}strip; ac_word=$2 3762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3763$as_echo_n "checking for $ac_word... " >&6; } 3764if ${ac_cv_prog_STRIP+:} false; then : 3765 $as_echo_n "(cached) " >&6 3766else 3767 if test -n "$STRIP"; then 3768 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3769else 3770as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3771for as_dir in $PATH 3772do 3773 IFS=$as_save_IFS 3774 test -z "$as_dir" && as_dir=. 3775 for ac_exec_ext in '' $ac_executable_extensions; do 3776 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3777 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3779 break 2 3780 fi 3781done 3782 done 3783IFS=$as_save_IFS 3784 3785fi 3786fi 3787STRIP=$ac_cv_prog_STRIP 3788if test -n "$STRIP"; then 3789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3790$as_echo "$STRIP" >&6; } 3791else 3792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3793$as_echo "no" >&6; } 3794fi 3795 3796 3797fi 3798if test -z "$ac_cv_prog_STRIP"; then 3799 ac_ct_STRIP=$STRIP 3800 # Extract the first word of "strip", so it can be a program name with args. 3801set dummy strip; ac_word=$2 3802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3803$as_echo_n "checking for $ac_word... " >&6; } 3804if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 3805 $as_echo_n "(cached) " >&6 3806else 3807 if test -n "$ac_ct_STRIP"; then 3808 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3809else 3810as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3811for as_dir in $PATH 3812do 3813 IFS=$as_save_IFS 3814 test -z "$as_dir" && as_dir=. 3815 for ac_exec_ext in '' $ac_executable_extensions; do 3816 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3817 ac_cv_prog_ac_ct_STRIP="strip" 3818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3819 break 2 3820 fi 3821done 3822 done 3823IFS=$as_save_IFS 3824 3825fi 3826fi 3827ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3828if test -n "$ac_ct_STRIP"; then 3829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3830$as_echo "$ac_ct_STRIP" >&6; } 3831else 3832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3833$as_echo "no" >&6; } 3834fi 3835 3836 if test "x$ac_ct_STRIP" = x; then 3837 STRIP=":" 3838 else 3839 case $cross_compiling:$ac_tool_warned in 3840yes:) 3841{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3842$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3843ac_tool_warned=yes ;; 3844esac 3845 STRIP=$ac_ct_STRIP 3846 fi 3847else 3848 STRIP="$ac_cv_prog_STRIP" 3849fi 3850 3851fi 3852INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3853 3854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 3855$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 3856if test -z "$MKDIR_P"; then 3857 if ${ac_cv_path_mkdir+:} false; then : 3858 $as_echo_n "(cached) " >&6 3859else 3860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3861for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3862do 3863 IFS=$as_save_IFS 3864 test -z "$as_dir" && as_dir=. 3865 for ac_prog in mkdir gmkdir; do 3866 for ac_exec_ext in '' $ac_executable_extensions; do 3867 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 3868 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 3869 'mkdir (GNU coreutils) '* | \ 3870 'mkdir (coreutils) '* | \ 3871 'mkdir (fileutils) '4.1*) 3872 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 3873 break 3;; 3874 esac 3875 done 3876 done 3877 done 3878IFS=$as_save_IFS 3879 3880fi 3881 3882 test -d ./--version && rmdir ./--version 3883 if test "${ac_cv_path_mkdir+set}" = set; then 3884 MKDIR_P="$ac_cv_path_mkdir -p" 3885 else 3886 # As a last resort, use the slow shell script. Don't cache a 3887 # value for MKDIR_P within a source directory, because that will 3888 # break other packages using the cache if that directory is 3889 # removed, or if the value is a relative name. 3890 MKDIR_P="$ac_install_sh -d" 3891 fi 3892fi 3893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3894$as_echo "$MKDIR_P" >&6; } 3895 3896mkdir_p="$MKDIR_P" 3897case $mkdir_p in 3898 [\\/$]* | ?:[\\/]*) ;; 3899 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 3900esac 3901 3902for ac_prog in gawk mawk nawk awk 3903do 3904 # Extract the first word of "$ac_prog", so it can be a program name with args. 3905set dummy $ac_prog; ac_word=$2 3906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3907$as_echo_n "checking for $ac_word... " >&6; } 3908if ${ac_cv_prog_AWK+:} false; then : 3909 $as_echo_n "(cached) " >&6 3910else 3911 if test -n "$AWK"; then 3912 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3913else 3914as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3915for as_dir in $PATH 3916do 3917 IFS=$as_save_IFS 3918 test -z "$as_dir" && as_dir=. 3919 for ac_exec_ext in '' $ac_executable_extensions; do 3920 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3921 ac_cv_prog_AWK="$ac_prog" 3922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3923 break 2 3924 fi 3925done 3926 done 3927IFS=$as_save_IFS 3928 3929fi 3930fi 3931AWK=$ac_cv_prog_AWK 3932if test -n "$AWK"; then 3933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3934$as_echo "$AWK" >&6; } 3935else 3936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3937$as_echo "no" >&6; } 3938fi 3939 3940 3941 test -n "$AWK" && break 3942done 3943 3944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3945$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3946set x ${MAKE-make} 3947ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3948if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 3949 $as_echo_n "(cached) " >&6 3950else 3951 cat >conftest.make <<\_ACEOF 3952SHELL = /bin/sh 3953all: 3954 @echo '@@@%%%=$(MAKE)=@@@%%%' 3955_ACEOF 3956# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3957case `${MAKE-make} -f conftest.make 2>/dev/null` in 3958 *@@@%%%=?*=@@@%%%*) 3959 eval ac_cv_prog_make_${ac_make}_set=yes;; 3960 *) 3961 eval ac_cv_prog_make_${ac_make}_set=no;; 3962esac 3963rm -f conftest.make 3964fi 3965if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3967$as_echo "yes" >&6; } 3968 SET_MAKE= 3969else 3970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3971$as_echo "no" >&6; } 3972 SET_MAKE="MAKE=${MAKE-make}" 3973fi 3974 3975rm -rf .tst 2>/dev/null 3976mkdir .tst 2>/dev/null 3977if test -d .tst; then 3978 am__leading_dot=. 3979else 3980 am__leading_dot=_ 3981fi 3982rmdir .tst 2>/dev/null 3983 3984DEPDIR="${am__leading_dot}deps" 3985 3986ac_config_commands="$ac_config_commands depfiles" 3987 3988 3989am_make=${MAKE-make} 3990cat > confinc << 'END' 3991am__doit: 3992 @echo this is the am__doit target 3993.PHONY: am__doit 3994END 3995# If we don't find an include directive, just comment out the code. 3996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3997$as_echo_n "checking for style of include used by $am_make... " >&6; } 3998am__include="#" 3999am__quote= 4000_am_result=none 4001# First try GNU make style include. 4002echo "include confinc" > confmf 4003# Ignore all kinds of additional output from `make'. 4004case `$am_make -s -f confmf 2> /dev/null` in #( 4005*the\ am__doit\ target*) 4006 am__include=include 4007 am__quote= 4008 _am_result=GNU 4009 ;; 4010esac 4011# Now try BSD make style include. 4012if test "$am__include" = "#"; then 4013 echo '.include "confinc"' > confmf 4014 case `$am_make -s -f confmf 2> /dev/null` in #( 4015 *the\ am__doit\ target*) 4016 am__include=.include 4017 am__quote="\"" 4018 _am_result=BSD 4019 ;; 4020 esac 4021fi 4022 4023 4024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 4025$as_echo "$_am_result" >&6; } 4026rm -f confinc confmf 4027 4028# Check whether --enable-dependency-tracking was given. 4029if test "${enable_dependency_tracking+set}" = set; then : 4030 enableval=$enable_dependency_tracking; 4031fi 4032 4033if test "x$enable_dependency_tracking" != xno; then 4034 am_depcomp="$ac_aux_dir/depcomp" 4035 AMDEPBACKSLASH='\' 4036 am__nodep='_no' 4037fi 4038 if test "x$enable_dependency_tracking" != xno; then 4039 AMDEP_TRUE= 4040 AMDEP_FALSE='#' 4041else 4042 AMDEP_TRUE='#' 4043 AMDEP_FALSE= 4044fi 4045 4046 4047if test "`cd $srcdir && pwd`" != "`pwd`"; then 4048 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 4049 # is not polluted with repeated "-I." 4050 am__isrc=' -I$(srcdir)' 4051 # test to see if srcdir already configured 4052 if test -f $srcdir/config.status; then 4053 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 4054 fi 4055fi 4056 4057# test whether we have cygpath 4058if test -z "$CYGPATH_W"; then 4059 if (cygpath --version) >/dev/null 2>/dev/null; then 4060 CYGPATH_W='cygpath -w' 4061 else 4062 CYGPATH_W=echo 4063 fi 4064fi 4065 4066 4067# Define the identity of the package. 4068 PACKAGE='GeoIP' 4069 VERSION='1.5.1' 4070 4071 4072cat >>confdefs.h <<_ACEOF 4073#define PACKAGE "$PACKAGE" 4074_ACEOF 4075 4076 4077cat >>confdefs.h <<_ACEOF 4078#define VERSION "$VERSION" 4079_ACEOF 4080 4081# Some tools Automake needs. 4082 4083ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 4084 4085 4086AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 4087 4088 4089AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 4090 4091 4092AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 4093 4094 4095MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 4096 4097# We need awk for the "check" target. The system "awk" is bad on 4098# some platforms. 4099# Always define AMTAR for backward compatibility. Yes, it's still used 4100# in the wild :-( We should find a proper way to deprecate it ... 4101AMTAR='$${TAR-tar}' 4102 4103am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 4104 4105 4106 4107 4108depcc="$CC" am_compiler_list= 4109 4110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4111$as_echo_n "checking dependency style of $depcc... " >&6; } 4112if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4113 $as_echo_n "(cached) " >&6 4114else 4115 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4116 # We make a subdir and do the tests there. Otherwise we can end up 4117 # making bogus files that we don't know about and never remove. For 4118 # instance it was reported that on HP-UX the gcc test will end up 4119 # making a dummy file named `D' -- because `-MD' means `put the output 4120 # in D'. 4121 rm -rf conftest.dir 4122 mkdir conftest.dir 4123 # Copy depcomp to subdir because otherwise we won't find it if we're 4124 # using a relative directory. 4125 cp "$am_depcomp" conftest.dir 4126 cd conftest.dir 4127 # We will build objects and dependencies in a subdirectory because 4128 # it helps to detect inapplicable dependency modes. For instance 4129 # both Tru64's cc and ICC support -MD to output dependencies as a 4130 # side effect of compilation, but ICC will put the dependencies in 4131 # the current directory while Tru64 will put them in the object 4132 # directory. 4133 mkdir sub 4134 4135 am_cv_CC_dependencies_compiler_type=none 4136 if test "$am_compiler_list" = ""; then 4137 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4138 fi 4139 am__universal=false 4140 case " $depcc " in #( 4141 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4142 esac 4143 4144 for depmode in $am_compiler_list; do 4145 # Setup a source with many dependencies, because some compilers 4146 # like to wrap large dependency lists on column 80 (with \), and 4147 # we should not choose a depcomp mode which is confused by this. 4148 # 4149 # We need to recreate these files for each test, as the compiler may 4150 # overwrite some of them when testing with obscure command lines. 4151 # This happens at least with the AIX C compiler. 4152 : > sub/conftest.c 4153 for i in 1 2 3 4 5 6; do 4154 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4155 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 4156 # Solaris 8's {/usr,}/bin/sh. 4157 touch sub/conftst$i.h 4158 done 4159 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4160 4161 # We check with `-c' and `-o' for the sake of the "dashmstdout" 4162 # mode. It turns out that the SunPro C++ compiler does not properly 4163 # handle `-M -o', and we need to detect this. Also, some Intel 4164 # versions had trouble with output in subdirs 4165 am__obj=sub/conftest.${OBJEXT-o} 4166 am__minus_obj="-o $am__obj" 4167 case $depmode in 4168 gcc) 4169 # This depmode causes a compiler race in universal mode. 4170 test "$am__universal" = false || continue 4171 ;; 4172 nosideeffect) 4173 # after this tag, mechanisms are not by side-effect, so they'll 4174 # only be used when explicitly requested 4175 if test "x$enable_dependency_tracking" = xyes; then 4176 continue 4177 else 4178 break 4179 fi 4180 ;; 4181 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4182 # This compiler won't grok `-c -o', but also, the minuso test has 4183 # not run yet. These depmodes are late enough in the game, and 4184 # so weak that their functioning should not be impacted. 4185 am__obj=conftest.${OBJEXT-o} 4186 am__minus_obj= 4187 ;; 4188 none) break ;; 4189 esac 4190 if depmode=$depmode \ 4191 source=sub/conftest.c object=$am__obj \ 4192 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4193 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4194 >/dev/null 2>conftest.err && 4195 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4196 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4197 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4198 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4199 # icc doesn't choke on unknown options, it will just issue warnings 4200 # or remarks (even with -Werror). So we grep stderr for any message 4201 # that says an option was ignored or not supported. 4202 # When given -MP, icc 7.0 and 7.1 complain thusly: 4203 # icc: Command line warning: ignoring option '-M'; no argument required 4204 # The diagnosis changed in icc 8.0: 4205 # icc: Command line remark: option '-MP' not supported 4206 if (grep 'ignoring option' conftest.err || 4207 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4208 am_cv_CC_dependencies_compiler_type=$depmode 4209 break 4210 fi 4211 fi 4212 done 4213 4214 cd .. 4215 rm -rf conftest.dir 4216else 4217 am_cv_CC_dependencies_compiler_type=none 4218fi 4219 4220fi 4221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4222$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4223CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4224 4225 if 4226 test "x$enable_dependency_tracking" != xno \ 4227 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4228 am__fastdepCC_TRUE= 4229 am__fastdepCC_FALSE='#' 4230else 4231 am__fastdepCC_TRUE='#' 4232 am__fastdepCC_FALSE= 4233fi 4234 4235 4236 4237 4238GEOIP_VERSION_INFO=`echo $VERSION | awk -F. '{ printf "%d:%d:%d", $1+$2, $3, $2 }'` 4239 4240 4241ac_ext=c 4242ac_cpp='$CPP $CPPFLAGS' 4243ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4244ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4245ac_compiler_gnu=$ac_cv_c_compiler_gnu 4246if test -n "$ac_tool_prefix"; then 4247 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 4248set dummy ${ac_tool_prefix}gcc; ac_word=$2 4249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4250$as_echo_n "checking for $ac_word... " >&6; } 4251if ${ac_cv_prog_CC+:} false; then : 4252 $as_echo_n "(cached) " >&6 4253else 4254 if test -n "$CC"; then 4255 ac_cv_prog_CC="$CC" # Let the user override the test. 4256else 4257as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4258for as_dir in $PATH 4259do 4260 IFS=$as_save_IFS 4261 test -z "$as_dir" && as_dir=. 4262 for ac_exec_ext in '' $ac_executable_extensions; do 4263 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4264 ac_cv_prog_CC="${ac_tool_prefix}gcc" 4265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4266 break 2 4267 fi 4268done 4269 done 4270IFS=$as_save_IFS 4271 4272fi 4273fi 4274CC=$ac_cv_prog_CC 4275if test -n "$CC"; then 4276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4277$as_echo "$CC" >&6; } 4278else 4279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4280$as_echo "no" >&6; } 4281fi 4282 4283 4284fi 4285if test -z "$ac_cv_prog_CC"; then 4286 ac_ct_CC=$CC 4287 # Extract the first word of "gcc", so it can be a program name with args. 4288set dummy gcc; ac_word=$2 4289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4290$as_echo_n "checking for $ac_word... " >&6; } 4291if ${ac_cv_prog_ac_ct_CC+:} false; then : 4292 $as_echo_n "(cached) " >&6 4293else 4294 if test -n "$ac_ct_CC"; then 4295 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4296else 4297as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4298for as_dir in $PATH 4299do 4300 IFS=$as_save_IFS 4301 test -z "$as_dir" && as_dir=. 4302 for ac_exec_ext in '' $ac_executable_extensions; do 4303 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4304 ac_cv_prog_ac_ct_CC="gcc" 4305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4306 break 2 4307 fi 4308done 4309 done 4310IFS=$as_save_IFS 4311 4312fi 4313fi 4314ac_ct_CC=$ac_cv_prog_ac_ct_CC 4315if test -n "$ac_ct_CC"; then 4316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4317$as_echo "$ac_ct_CC" >&6; } 4318else 4319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4320$as_echo "no" >&6; } 4321fi 4322 4323 if test "x$ac_ct_CC" = x; then 4324 CC="" 4325 else 4326 case $cross_compiling:$ac_tool_warned in 4327yes:) 4328{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4329$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4330ac_tool_warned=yes ;; 4331esac 4332 CC=$ac_ct_CC 4333 fi 4334else 4335 CC="$ac_cv_prog_CC" 4336fi 4337 4338if test -z "$CC"; then 4339 if test -n "$ac_tool_prefix"; then 4340 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 4341set dummy ${ac_tool_prefix}cc; ac_word=$2 4342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4343$as_echo_n "checking for $ac_word... " >&6; } 4344if ${ac_cv_prog_CC+:} false; then : 4345 $as_echo_n "(cached) " >&6 4346else 4347 if test -n "$CC"; then 4348 ac_cv_prog_CC="$CC" # Let the user override the test. 4349else 4350as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4351for as_dir in $PATH 4352do 4353 IFS=$as_save_IFS 4354 test -z "$as_dir" && as_dir=. 4355 for ac_exec_ext in '' $ac_executable_extensions; do 4356 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4357 ac_cv_prog_CC="${ac_tool_prefix}cc" 4358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4359 break 2 4360 fi 4361done 4362 done 4363IFS=$as_save_IFS 4364 4365fi 4366fi 4367CC=$ac_cv_prog_CC 4368if test -n "$CC"; then 4369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4370$as_echo "$CC" >&6; } 4371else 4372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4373$as_echo "no" >&6; } 4374fi 4375 4376 4377 fi 4378fi 4379if test -z "$CC"; then 4380 # Extract the first word of "cc", so it can be a program name with args. 4381set dummy cc; ac_word=$2 4382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4383$as_echo_n "checking for $ac_word... " >&6; } 4384if ${ac_cv_prog_CC+:} false; then : 4385 $as_echo_n "(cached) " >&6 4386else 4387 if test -n "$CC"; then 4388 ac_cv_prog_CC="$CC" # Let the user override the test. 4389else 4390 ac_prog_rejected=no 4391as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4392for as_dir in $PATH 4393do 4394 IFS=$as_save_IFS 4395 test -z "$as_dir" && as_dir=. 4396 for ac_exec_ext in '' $ac_executable_extensions; do 4397 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4398 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 4399 ac_prog_rejected=yes 4400 continue 4401 fi 4402 ac_cv_prog_CC="cc" 4403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4404 break 2 4405 fi 4406done 4407 done 4408IFS=$as_save_IFS 4409 4410if test $ac_prog_rejected = yes; then 4411 # We found a bogon in the path, so make sure we never use it. 4412 set dummy $ac_cv_prog_CC 4413 shift 4414 if test $# != 0; then 4415 # We chose a different compiler from the bogus one. 4416 # However, it has the same basename, so the bogon will be chosen 4417 # first if we set CC to just the basename; use the full file name. 4418 shift 4419 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 4420 fi 4421fi 4422fi 4423fi 4424CC=$ac_cv_prog_CC 4425if test -n "$CC"; then 4426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4427$as_echo "$CC" >&6; } 4428else 4429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4430$as_echo "no" >&6; } 4431fi 4432 4433 4434fi 4435if test -z "$CC"; then 4436 if test -n "$ac_tool_prefix"; then 4437 for ac_prog in cl.exe 4438 do 4439 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4440set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4442$as_echo_n "checking for $ac_word... " >&6; } 4443if ${ac_cv_prog_CC+:} false; then : 4444 $as_echo_n "(cached) " >&6 4445else 4446 if test -n "$CC"; then 4447 ac_cv_prog_CC="$CC" # Let the user override the test. 4448else 4449as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4450for as_dir in $PATH 4451do 4452 IFS=$as_save_IFS 4453 test -z "$as_dir" && as_dir=. 4454 for ac_exec_ext in '' $ac_executable_extensions; do 4455 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4456 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 4457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4458 break 2 4459 fi 4460done 4461 done 4462IFS=$as_save_IFS 4463 4464fi 4465fi 4466CC=$ac_cv_prog_CC 4467if test -n "$CC"; then 4468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4469$as_echo "$CC" >&6; } 4470else 4471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4472$as_echo "no" >&6; } 4473fi 4474 4475 4476 test -n "$CC" && break 4477 done 4478fi 4479if test -z "$CC"; then 4480 ac_ct_CC=$CC 4481 for ac_prog in cl.exe 4482do 4483 # Extract the first word of "$ac_prog", so it can be a program name with args. 4484set dummy $ac_prog; ac_word=$2 4485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4486$as_echo_n "checking for $ac_word... " >&6; } 4487if ${ac_cv_prog_ac_ct_CC+:} false; then : 4488 $as_echo_n "(cached) " >&6 4489else 4490 if test -n "$ac_ct_CC"; then 4491 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4492else 4493as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4494for as_dir in $PATH 4495do 4496 IFS=$as_save_IFS 4497 test -z "$as_dir" && as_dir=. 4498 for ac_exec_ext in '' $ac_executable_extensions; do 4499 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4500 ac_cv_prog_ac_ct_CC="$ac_prog" 4501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4502 break 2 4503 fi 4504done 4505 done 4506IFS=$as_save_IFS 4507 4508fi 4509fi 4510ac_ct_CC=$ac_cv_prog_ac_ct_CC 4511if test -n "$ac_ct_CC"; then 4512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4513$as_echo "$ac_ct_CC" >&6; } 4514else 4515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4516$as_echo "no" >&6; } 4517fi 4518 4519 4520 test -n "$ac_ct_CC" && break 4521done 4522 4523 if test "x$ac_ct_CC" = x; then 4524 CC="" 4525 else 4526 case $cross_compiling:$ac_tool_warned in 4527yes:) 4528{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4529$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4530ac_tool_warned=yes ;; 4531esac 4532 CC=$ac_ct_CC 4533 fi 4534fi 4535 4536fi 4537 4538 4539test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4540$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4541as_fn_error $? "no acceptable C compiler found in \$PATH 4542See \`config.log' for more details" "$LINENO" 5; } 4543 4544# Provide some information about the compiler. 4545$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 4546set X $ac_compile 4547ac_compiler=$2 4548for ac_option in --version -v -V -qversion; do 4549 { { ac_try="$ac_compiler $ac_option >&5" 4550case "(($ac_try" in 4551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4552 *) ac_try_echo=$ac_try;; 4553esac 4554eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4555$as_echo "$ac_try_echo"; } >&5 4556 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4557 ac_status=$? 4558 if test -s conftest.err; then 4559 sed '10a\ 4560... rest of stderr output deleted ... 4561 10q' conftest.err >conftest.er1 4562 cat conftest.er1 >&5 4563 fi 4564 rm -f conftest.er1 conftest.err 4565 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4566 test $ac_status = 0; } 4567done 4568 4569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4570$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4571if ${ac_cv_c_compiler_gnu+:} false; then : 4572 $as_echo_n "(cached) " >&6 4573else 4574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4575/* end confdefs.h. */ 4576 4577int 4578main () 4579{ 4580#ifndef __GNUC__ 4581 choke me 4582#endif 4583 4584 ; 4585 return 0; 4586} 4587_ACEOF 4588if ac_fn_c_try_compile "$LINENO"; then : 4589 ac_compiler_gnu=yes 4590else 4591 ac_compiler_gnu=no 4592fi 4593rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4594ac_cv_c_compiler_gnu=$ac_compiler_gnu 4595 4596fi 4597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4598$as_echo "$ac_cv_c_compiler_gnu" >&6; } 4599if test $ac_compiler_gnu = yes; then 4600 GCC=yes 4601else 4602 GCC= 4603fi 4604ac_test_CFLAGS=${CFLAGS+set} 4605ac_save_CFLAGS=$CFLAGS 4606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4607$as_echo_n "checking whether $CC accepts -g... " >&6; } 4608if ${ac_cv_prog_cc_g+:} false; then : 4609 $as_echo_n "(cached) " >&6 4610else 4611 ac_save_c_werror_flag=$ac_c_werror_flag 4612 ac_c_werror_flag=yes 4613 ac_cv_prog_cc_g=no 4614 CFLAGS="-g" 4615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4616/* end confdefs.h. */ 4617 4618int 4619main () 4620{ 4621 4622 ; 4623 return 0; 4624} 4625_ACEOF 4626if ac_fn_c_try_compile "$LINENO"; then : 4627 ac_cv_prog_cc_g=yes 4628else 4629 CFLAGS="" 4630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4631/* end confdefs.h. */ 4632 4633int 4634main () 4635{ 4636 4637 ; 4638 return 0; 4639} 4640_ACEOF 4641if ac_fn_c_try_compile "$LINENO"; then : 4642 4643else 4644 ac_c_werror_flag=$ac_save_c_werror_flag 4645 CFLAGS="-g" 4646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4647/* end confdefs.h. */ 4648 4649int 4650main () 4651{ 4652 4653 ; 4654 return 0; 4655} 4656_ACEOF 4657if ac_fn_c_try_compile "$LINENO"; then : 4658 ac_cv_prog_cc_g=yes 4659fi 4660rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4661fi 4662rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4663fi 4664rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4665 ac_c_werror_flag=$ac_save_c_werror_flag 4666fi 4667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4668$as_echo "$ac_cv_prog_cc_g" >&6; } 4669if test "$ac_test_CFLAGS" = set; then 4670 CFLAGS=$ac_save_CFLAGS 4671elif test $ac_cv_prog_cc_g = yes; then 4672 if test "$GCC" = yes; then 4673 CFLAGS="-g -O2" 4674 else 4675 CFLAGS="-g" 4676 fi 4677else 4678 if test "$GCC" = yes; then 4679 CFLAGS="-O2" 4680 else 4681 CFLAGS= 4682 fi 4683fi 4684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4685$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4686if ${ac_cv_prog_cc_c89+:} false; then : 4687 $as_echo_n "(cached) " >&6 4688else 4689 ac_cv_prog_cc_c89=no 4690ac_save_CC=$CC 4691cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4692/* end confdefs.h. */ 4693#include <stdarg.h> 4694#include <stdio.h> 4695#include <sys/types.h> 4696#include <sys/stat.h> 4697/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4698struct buf { int x; }; 4699FILE * (*rcsopen) (struct buf *, struct stat *, int); 4700static char *e (p, i) 4701 char **p; 4702 int i; 4703{ 4704 return p[i]; 4705} 4706static char *f (char * (*g) (char **, int), char **p, ...) 4707{ 4708 char *s; 4709 va_list v; 4710 va_start (v,p); 4711 s = g (p, va_arg (v,int)); 4712 va_end (v); 4713 return s; 4714} 4715 4716/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4717 function prototypes and stuff, but not '\xHH' hex character constants. 4718 These don't provoke an error unfortunately, instead are silently treated 4719 as 'x'. The following induces an error, until -std is added to get 4720 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4721 array size at least. It's necessary to write '\x00'==0 to get something 4722 that's true only with -std. */ 4723int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4724 4725/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4726 inside strings and character constants. */ 4727#define FOO(x) 'x' 4728int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4729 4730int test (int i, double x); 4731struct s1 {int (*f) (int a);}; 4732struct s2 {int (*f) (double a);}; 4733int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4734int argc; 4735char **argv; 4736int 4737main () 4738{ 4739return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4740 ; 4741 return 0; 4742} 4743_ACEOF 4744for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4745 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4746do 4747 CC="$ac_save_CC $ac_arg" 4748 if ac_fn_c_try_compile "$LINENO"; then : 4749 ac_cv_prog_cc_c89=$ac_arg 4750fi 4751rm -f core conftest.err conftest.$ac_objext 4752 test "x$ac_cv_prog_cc_c89" != "xno" && break 4753done 4754rm -f conftest.$ac_ext 4755CC=$ac_save_CC 4756 4757fi 4758# AC_CACHE_VAL 4759case "x$ac_cv_prog_cc_c89" in 4760 x) 4761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4762$as_echo "none needed" >&6; } ;; 4763 xno) 4764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4765$as_echo "unsupported" >&6; } ;; 4766 *) 4767 CC="$CC $ac_cv_prog_cc_c89" 4768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4769$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4770esac 4771if test "x$ac_cv_prog_cc_c89" != xno; then : 4772 4773fi 4774 4775ac_ext=c 4776ac_cpp='$CPP $CPPFLAGS' 4777ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4778ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4779ac_compiler_gnu=$ac_cv_c_compiler_gnu 4780 4781case `pwd` in 4782 *\ * | *\ *) 4783 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 4784$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 4785esac 4786 4787 4788 4789macro_version='2.4.2' 4790macro_revision='1.3337' 4791 4792 4793 4794 4795 4796 4797 4798 4799 4800 4801 4802 4803 4804ltmain="$ac_aux_dir/ltmain.sh" 4805 4806# Make sure we can run config.sub. 4807$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4808 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4809 4810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4811$as_echo_n "checking build system type... " >&6; } 4812if ${ac_cv_build+:} false; then : 4813 $as_echo_n "(cached) " >&6 4814else 4815 ac_build_alias=$build_alias 4816test "x$ac_build_alias" = x && 4817 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4818test "x$ac_build_alias" = x && 4819 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4820ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4821 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4822 4823fi 4824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4825$as_echo "$ac_cv_build" >&6; } 4826case $ac_cv_build in 4827*-*-*) ;; 4828*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4829esac 4830build=$ac_cv_build 4831ac_save_IFS=$IFS; IFS='-' 4832set x $ac_cv_build 4833shift 4834build_cpu=$1 4835build_vendor=$2 4836shift; shift 4837# Remember, the first character of IFS is used to create $*, 4838# except with old shells: 4839build_os=$* 4840IFS=$ac_save_IFS 4841case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4842 4843 4844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4845$as_echo_n "checking host system type... " >&6; } 4846if ${ac_cv_host+:} false; then : 4847 $as_echo_n "(cached) " >&6 4848else 4849 if test "x$host_alias" = x; then 4850 ac_cv_host=$ac_cv_build 4851else 4852 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4853 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4854fi 4855 4856fi 4857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4858$as_echo "$ac_cv_host" >&6; } 4859case $ac_cv_host in 4860*-*-*) ;; 4861*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4862esac 4863host=$ac_cv_host 4864ac_save_IFS=$IFS; IFS='-' 4865set x $ac_cv_host 4866shift 4867host_cpu=$1 4868host_vendor=$2 4869shift; shift 4870# Remember, the first character of IFS is used to create $*, 4871# except with old shells: 4872host_os=$* 4873IFS=$ac_save_IFS 4874case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4875 4876 4877# Backslashify metacharacters that are still active within 4878# double-quoted strings. 4879sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 4880 4881# Same as above, but do not quote variable references. 4882double_quote_subst='s/\(["`\\]\)/\\\1/g' 4883 4884# Sed substitution to delay expansion of an escaped shell variable in a 4885# double_quote_subst'ed string. 4886delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 4887 4888# Sed substitution to delay expansion of an escaped single quote. 4889delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 4890 4891# Sed substitution to avoid accidental globbing in evaled expressions 4892no_glob_subst='s/\*/\\\*/g' 4893 4894ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 4895ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 4896ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 4897 4898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 4899$as_echo_n "checking how to print strings... " >&6; } 4900# Test print first, because it will be a builtin if present. 4901if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 4902 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 4903 ECHO='print -r --' 4904elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 4905 ECHO='printf %s\n' 4906else 4907 # Use this function as a fallback that always works. 4908 func_fallback_echo () 4909 { 4910 eval 'cat <<_LTECHO_EOF 4911$1 4912_LTECHO_EOF' 4913 } 4914 ECHO='func_fallback_echo' 4915fi 4916 4917# func_echo_all arg... 4918# Invoke $ECHO with all args, space-separated. 4919func_echo_all () 4920{ 4921 $ECHO "" 4922} 4923 4924case "$ECHO" in 4925 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 4926$as_echo "printf" >&6; } ;; 4927 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 4928$as_echo "print -r" >&6; } ;; 4929 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 4930$as_echo "cat" >&6; } ;; 4931esac 4932 4933 4934 4935 4936 4937 4938 4939 4940 4941 4942 4943 4944 4945 4946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4947$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4948if ${ac_cv_path_SED+:} false; then : 4949 $as_echo_n "(cached) " >&6 4950else 4951 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4952 for ac_i in 1 2 3 4 5 6 7; do 4953 ac_script="$ac_script$as_nl$ac_script" 4954 done 4955 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4956 { ac_script=; unset ac_script;} 4957 if test -z "$SED"; then 4958 ac_path_SED_found=false 4959 # Loop through the user's path and test for each of PROGNAME-LIST 4960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4961for as_dir in $PATH 4962do 4963 IFS=$as_save_IFS 4964 test -z "$as_dir" && as_dir=. 4965 for ac_prog in sed gsed; do 4966 for ac_exec_ext in '' $ac_executable_extensions; do 4967 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4968 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 4969# Check for GNU ac_path_SED and select it if it is found. 4970 # Check for GNU $ac_path_SED 4971case `"$ac_path_SED" --version 2>&1` in 4972*GNU*) 4973 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4974*) 4975 ac_count=0 4976 $as_echo_n 0123456789 >"conftest.in" 4977 while : 4978 do 4979 cat "conftest.in" "conftest.in" >"conftest.tmp" 4980 mv "conftest.tmp" "conftest.in" 4981 cp "conftest.in" "conftest.nl" 4982 $as_echo '' >> "conftest.nl" 4983 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4984 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4985 as_fn_arith $ac_count + 1 && ac_count=$as_val 4986 if test $ac_count -gt ${ac_path_SED_max-0}; then 4987 # Best one so far, save it but keep looking for a better one 4988 ac_cv_path_SED="$ac_path_SED" 4989 ac_path_SED_max=$ac_count 4990 fi 4991 # 10*(2^10) chars as input seems more than enough 4992 test $ac_count -gt 10 && break 4993 done 4994 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4995esac 4996 4997 $ac_path_SED_found && break 3 4998 done 4999 done 5000 done 5001IFS=$as_save_IFS 5002 if test -z "$ac_cv_path_SED"; then 5003 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5004 fi 5005else 5006 ac_cv_path_SED=$SED 5007fi 5008 5009fi 5010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5011$as_echo "$ac_cv_path_SED" >&6; } 5012 SED="$ac_cv_path_SED" 5013 rm -f conftest.sed 5014 5015test -z "$SED" && SED=sed 5016Xsed="$SED -e 1s/^X//" 5017 5018 5019 5020 5021 5022 5023 5024 5025 5026 5027 5028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 5029$as_echo_n "checking for fgrep... " >&6; } 5030if ${ac_cv_path_FGREP+:} false; then : 5031 $as_echo_n "(cached) " >&6 5032else 5033 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5034 then ac_cv_path_FGREP="$GREP -F" 5035 else 5036 if test -z "$FGREP"; then 5037 ac_path_FGREP_found=false 5038 # Loop through the user's path and test for each of PROGNAME-LIST 5039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5040for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5041do 5042 IFS=$as_save_IFS 5043 test -z "$as_dir" && as_dir=. 5044 for ac_prog in fgrep; do 5045 for ac_exec_ext in '' $ac_executable_extensions; do 5046 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 5047 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue 5048# Check for GNU ac_path_FGREP and select it if it is found. 5049 # Check for GNU $ac_path_FGREP 5050case `"$ac_path_FGREP" --version 2>&1` in 5051*GNU*) 5052 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5053*) 5054 ac_count=0 5055 $as_echo_n 0123456789 >"conftest.in" 5056 while : 5057 do 5058 cat "conftest.in" "conftest.in" >"conftest.tmp" 5059 mv "conftest.tmp" "conftest.in" 5060 cp "conftest.in" "conftest.nl" 5061 $as_echo 'FGREP' >> "conftest.nl" 5062 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5063 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5064 as_fn_arith $ac_count + 1 && ac_count=$as_val 5065 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5066 # Best one so far, save it but keep looking for a better one 5067 ac_cv_path_FGREP="$ac_path_FGREP" 5068 ac_path_FGREP_max=$ac_count 5069 fi 5070 # 10*(2^10) chars as input seems more than enough 5071 test $ac_count -gt 10 && break 5072 done 5073 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5074esac 5075 5076 $ac_path_FGREP_found && break 3 5077 done 5078 done 5079 done 5080IFS=$as_save_IFS 5081 if test -z "$ac_cv_path_FGREP"; then 5082 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5083 fi 5084else 5085 ac_cv_path_FGREP=$FGREP 5086fi 5087 5088 fi 5089fi 5090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5091$as_echo "$ac_cv_path_FGREP" >&6; } 5092 FGREP="$ac_cv_path_FGREP" 5093 5094 5095test -z "$GREP" && GREP=grep 5096 5097 5098 5099 5100 5101 5102 5103 5104 5105 5106 5107 5108 5109 5110 5111 5112 5113 5114 5115# Check whether --with-gnu-ld was given. 5116if test "${with_gnu_ld+set}" = set; then : 5117 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 5118else 5119 with_gnu_ld=no 5120fi 5121 5122ac_prog=ld 5123if test "$GCC" = yes; then 5124 # Check if gcc -print-prog-name=ld gives a path. 5125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5126$as_echo_n "checking for ld used by $CC... " >&6; } 5127 case $host in 5128 *-*-mingw*) 5129 # gcc leaves a trailing carriage return which upsets mingw 5130 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5131 *) 5132 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5133 esac 5134 case $ac_prog in 5135 # Accept absolute paths. 5136 [\\/]* | ?:[\\/]*) 5137 re_direlt='/[^/][^/]*/\.\./' 5138 # Canonicalize the pathname of ld 5139 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5140 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5141 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5142 done 5143 test -z "$LD" && LD="$ac_prog" 5144 ;; 5145 "") 5146 # If it fails, then pretend we aren't using GCC. 5147 ac_prog=ld 5148 ;; 5149 *) 5150 # If it is relative, then search for the first ld in PATH. 5151 with_gnu_ld=unknown 5152 ;; 5153 esac 5154elif test "$with_gnu_ld" = yes; then 5155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5156$as_echo_n "checking for GNU ld... " >&6; } 5157else 5158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5159$as_echo_n "checking for non-GNU ld... " >&6; } 5160fi 5161if ${lt_cv_path_LD+:} false; then : 5162 $as_echo_n "(cached) " >&6 5163else 5164 if test -z "$LD"; then 5165 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5166 for ac_dir in $PATH; do 5167 IFS="$lt_save_ifs" 5168 test -z "$ac_dir" && ac_dir=. 5169 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5170 lt_cv_path_LD="$ac_dir/$ac_prog" 5171 # Check to see if the program is GNU ld. I'd rather use --version, 5172 # but apparently some variants of GNU ld only accept -v. 5173 # Break only if it was the GNU/non-GNU ld that we prefer. 5174 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5175 *GNU* | *'with BFD'*) 5176 test "$with_gnu_ld" != no && break 5177 ;; 5178 *) 5179 test "$with_gnu_ld" != yes && break 5180 ;; 5181 esac 5182 fi 5183 done 5184 IFS="$lt_save_ifs" 5185else 5186 lt_cv_path_LD="$LD" # Let the user override the test with a path. 5187fi 5188fi 5189 5190LD="$lt_cv_path_LD" 5191if test -n "$LD"; then 5192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5193$as_echo "$LD" >&6; } 5194else 5195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5196$as_echo "no" >&6; } 5197fi 5198test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5200$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 5201if ${lt_cv_prog_gnu_ld+:} false; then : 5202 $as_echo_n "(cached) " >&6 5203else 5204 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5205case `$LD -v 2>&1 </dev/null` in 5206*GNU* | *'with BFD'*) 5207 lt_cv_prog_gnu_ld=yes 5208 ;; 5209*) 5210 lt_cv_prog_gnu_ld=no 5211 ;; 5212esac 5213fi 5214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5215$as_echo "$lt_cv_prog_gnu_ld" >&6; } 5216with_gnu_ld=$lt_cv_prog_gnu_ld 5217 5218 5219 5220 5221 5222 5223 5224 5225 5226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5227$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5228if ${lt_cv_path_NM+:} false; then : 5229 $as_echo_n "(cached) " >&6 5230else 5231 if test -n "$NM"; then 5232 # Let the user override the test. 5233 lt_cv_path_NM="$NM" 5234else 5235 lt_nm_to_check="${ac_tool_prefix}nm" 5236 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5237 lt_nm_to_check="$lt_nm_to_check nm" 5238 fi 5239 for lt_tmp_nm in $lt_nm_to_check; do 5240 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5241 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5242 IFS="$lt_save_ifs" 5243 test -z "$ac_dir" && ac_dir=. 5244 tmp_nm="$ac_dir/$lt_tmp_nm" 5245 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 5246 # Check to see if the nm accepts a BSD-compat flag. 5247 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 5248 # nm: unknown option "B" ignored 5249 # Tru64's nm complains that /dev/null is an invalid object file 5250 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 5251 */dev/null* | *'Invalid file or object type'*) 5252 lt_cv_path_NM="$tmp_nm -B" 5253 break 5254 ;; 5255 *) 5256 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5257 */dev/null*) 5258 lt_cv_path_NM="$tmp_nm -p" 5259 break 5260 ;; 5261 *) 5262 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5263 continue # so that we can try to find one that supports BSD flags 5264 ;; 5265 esac 5266 ;; 5267 esac 5268 fi 5269 done 5270 IFS="$lt_save_ifs" 5271 done 5272 : ${lt_cv_path_NM=no} 5273fi 5274fi 5275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5276$as_echo "$lt_cv_path_NM" >&6; } 5277if test "$lt_cv_path_NM" != "no"; then 5278 NM="$lt_cv_path_NM" 5279else 5280 # Didn't find any BSD compatible name lister, look for dumpbin. 5281 if test -n "$DUMPBIN"; then : 5282 # Let the user override the test. 5283 else 5284 if test -n "$ac_tool_prefix"; then 5285 for ac_prog in dumpbin "link -dump" 5286 do 5287 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5288set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5290$as_echo_n "checking for $ac_word... " >&6; } 5291if ${ac_cv_prog_DUMPBIN+:} false; then : 5292 $as_echo_n "(cached) " >&6 5293else 5294 if test -n "$DUMPBIN"; then 5295 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5296else 5297as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5298for as_dir in $PATH 5299do 5300 IFS=$as_save_IFS 5301 test -z "$as_dir" && as_dir=. 5302 for ac_exec_ext in '' $ac_executable_extensions; do 5303 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5304 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5306 break 2 5307 fi 5308done 5309 done 5310IFS=$as_save_IFS 5311 5312fi 5313fi 5314DUMPBIN=$ac_cv_prog_DUMPBIN 5315if test -n "$DUMPBIN"; then 5316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5317$as_echo "$DUMPBIN" >&6; } 5318else 5319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5320$as_echo "no" >&6; } 5321fi 5322 5323 5324 test -n "$DUMPBIN" && break 5325 done 5326fi 5327if test -z "$DUMPBIN"; then 5328 ac_ct_DUMPBIN=$DUMPBIN 5329 for ac_prog in dumpbin "link -dump" 5330do 5331 # Extract the first word of "$ac_prog", so it can be a program name with args. 5332set dummy $ac_prog; ac_word=$2 5333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5334$as_echo_n "checking for $ac_word... " >&6; } 5335if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 5336 $as_echo_n "(cached) " >&6 5337else 5338 if test -n "$ac_ct_DUMPBIN"; then 5339 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5340else 5341as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5342for as_dir in $PATH 5343do 5344 IFS=$as_save_IFS 5345 test -z "$as_dir" && as_dir=. 5346 for ac_exec_ext in '' $ac_executable_extensions; do 5347 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5348 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5350 break 2 5351 fi 5352done 5353 done 5354IFS=$as_save_IFS 5355 5356fi 5357fi 5358ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5359if test -n "$ac_ct_DUMPBIN"; then 5360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5361$as_echo "$ac_ct_DUMPBIN" >&6; } 5362else 5363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5364$as_echo "no" >&6; } 5365fi 5366 5367 5368 test -n "$ac_ct_DUMPBIN" && break 5369done 5370 5371 if test "x$ac_ct_DUMPBIN" = x; then 5372 DUMPBIN=":" 5373 else 5374 case $cross_compiling:$ac_tool_warned in 5375yes:) 5376{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5377$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5378ac_tool_warned=yes ;; 5379esac 5380 DUMPBIN=$ac_ct_DUMPBIN 5381 fi 5382fi 5383 5384 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 5385 *COFF*) 5386 DUMPBIN="$DUMPBIN -symbols" 5387 ;; 5388 *) 5389 DUMPBIN=: 5390 ;; 5391 esac 5392 fi 5393 5394 if test "$DUMPBIN" != ":"; then 5395 NM="$DUMPBIN" 5396 fi 5397fi 5398test -z "$NM" && NM=nm 5399 5400 5401 5402 5403 5404 5405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5406$as_echo_n "checking the name lister ($NM) interface... " >&6; } 5407if ${lt_cv_nm_interface+:} false; then : 5408 $as_echo_n "(cached) " >&6 5409else 5410 lt_cv_nm_interface="BSD nm" 5411 echo "int some_variable = 0;" > conftest.$ac_ext 5412 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5413 (eval "$ac_compile" 2>conftest.err) 5414 cat conftest.err >&5 5415 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5416 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5417 cat conftest.err >&5 5418 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5419 cat conftest.out >&5 5420 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5421 lt_cv_nm_interface="MS dumpbin" 5422 fi 5423 rm -f conftest* 5424fi 5425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5426$as_echo "$lt_cv_nm_interface" >&6; } 5427 5428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5429$as_echo_n "checking whether ln -s works... " >&6; } 5430LN_S=$as_ln_s 5431if test "$LN_S" = "ln -s"; then 5432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5433$as_echo "yes" >&6; } 5434else 5435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5436$as_echo "no, using $LN_S" >&6; } 5437fi 5438 5439# find the maximum length of command line arguments 5440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5441$as_echo_n "checking the maximum length of command line arguments... " >&6; } 5442if ${lt_cv_sys_max_cmd_len+:} false; then : 5443 $as_echo_n "(cached) " >&6 5444else 5445 i=0 5446 teststring="ABCD" 5447 5448 case $build_os in 5449 msdosdjgpp*) 5450 # On DJGPP, this test can blow up pretty badly due to problems in libc 5451 # (any single argument exceeding 2000 bytes causes a buffer overrun 5452 # during glob expansion). Even if it were fixed, the result of this 5453 # check would be larger than it should be. 5454 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5455 ;; 5456 5457 gnu*) 5458 # Under GNU Hurd, this test is not required because there is 5459 # no limit to the length of command line arguments. 5460 # Libtool will interpret -1 as no limit whatsoever 5461 lt_cv_sys_max_cmd_len=-1; 5462 ;; 5463 5464 cygwin* | mingw* | cegcc*) 5465 # On Win9x/ME, this test blows up -- it succeeds, but takes 5466 # about 5 minutes as the teststring grows exponentially. 5467 # Worse, since 9x/ME are not pre-emptively multitasking, 5468 # you end up with a "frozen" computer, even though with patience 5469 # the test eventually succeeds (with a max line length of 256k). 5470 # Instead, let's just punt: use the minimum linelength reported by 5471 # all of the supported platforms: 8192 (on NT/2K/XP). 5472 lt_cv_sys_max_cmd_len=8192; 5473 ;; 5474 5475 mint*) 5476 # On MiNT this can take a long time and run out of memory. 5477 lt_cv_sys_max_cmd_len=8192; 5478 ;; 5479 5480 amigaos*) 5481 # On AmigaOS with pdksh, this test takes hours, literally. 5482 # So we just punt and use a minimum line length of 8192. 5483 lt_cv_sys_max_cmd_len=8192; 5484 ;; 5485 5486 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 5487 # This has been around since 386BSD, at least. Likely further. 5488 if test -x /sbin/sysctl; then 5489 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5490 elif test -x /usr/sbin/sysctl; then 5491 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5492 else 5493 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5494 fi 5495 # And add a safety zone 5496 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5497 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5498 ;; 5499 5500 interix*) 5501 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5502 lt_cv_sys_max_cmd_len=196608 5503 ;; 5504 5505 os2*) 5506 # The test takes a long time on OS/2. 5507 lt_cv_sys_max_cmd_len=8192 5508 ;; 5509 5510 osf*) 5511 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5512 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5513 # nice to cause kernel panics so lets avoid the loop below. 5514 # First set a reasonable default. 5515 lt_cv_sys_max_cmd_len=16384 5516 # 5517 if test -x /sbin/sysconfig; then 5518 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5519 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5520 esac 5521 fi 5522 ;; 5523 sco3.2v5*) 5524 lt_cv_sys_max_cmd_len=102400 5525 ;; 5526 sysv5* | sco5v6* | sysv4.2uw2*) 5527 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5528 if test -n "$kargmax"; then 5529 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5530 else 5531 lt_cv_sys_max_cmd_len=32768 5532 fi 5533 ;; 5534 *) 5535 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5536 if test -n "$lt_cv_sys_max_cmd_len"; then 5537 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5538 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5539 else 5540 # Make teststring a little bigger before we do anything with it. 5541 # a 1K string should be a reasonable start. 5542 for i in 1 2 3 4 5 6 7 8 ; do 5543 teststring=$teststring$teststring 5544 done 5545 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5546 # If test is not a shell built-in, we'll probably end up computing a 5547 # maximum length that is only half of the actual maximum length, but 5548 # we can't tell. 5549 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ 5550 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5551 test $i != 17 # 1/2 MB should be enough 5552 do 5553 i=`expr $i + 1` 5554 teststring=$teststring$teststring 5555 done 5556 # Only check the string length outside the loop. 5557 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5558 teststring= 5559 # Add a significant safety factor because C++ compilers can tack on 5560 # massive amounts of additional arguments before passing them to the 5561 # linker. It appears as though 1/2 is a usable value. 5562 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5563 fi 5564 ;; 5565 esac 5566 5567fi 5568 5569if test -n $lt_cv_sys_max_cmd_len ; then 5570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5571$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5572else 5573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5574$as_echo "none" >&6; } 5575fi 5576max_cmd_len=$lt_cv_sys_max_cmd_len 5577 5578 5579 5580 5581 5582 5583: ${CP="cp -f"} 5584: ${MV="mv -f"} 5585: ${RM="rm -f"} 5586 5587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 5588$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 5589# Try some XSI features 5590xsi_shell=no 5591( _lt_dummy="a/b/c" 5592 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ 5593 = c,a/b,b/c, \ 5594 && eval 'test $(( 1 + 1 )) -eq 2 \ 5595 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 5596 && xsi_shell=yes 5597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 5598$as_echo "$xsi_shell" >&6; } 5599 5600 5601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 5602$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 5603lt_shell_append=no 5604( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 5605 >/dev/null 2>&1 \ 5606 && lt_shell_append=yes 5607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 5608$as_echo "$lt_shell_append" >&6; } 5609 5610 5611if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5612 lt_unset=unset 5613else 5614 lt_unset=false 5615fi 5616 5617 5618 5619 5620 5621# test EBCDIC or ASCII 5622case `echo X|tr X '\101'` in 5623 A) # ASCII based system 5624 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5625 lt_SP2NL='tr \040 \012' 5626 lt_NL2SP='tr \015\012 \040\040' 5627 ;; 5628 *) # EBCDIC based system 5629 lt_SP2NL='tr \100 \n' 5630 lt_NL2SP='tr \r\n \100\100' 5631 ;; 5632esac 5633 5634 5635 5636 5637 5638 5639 5640 5641 5642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 5643$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 5644if ${lt_cv_to_host_file_cmd+:} false; then : 5645 $as_echo_n "(cached) " >&6 5646else 5647 case $host in 5648 *-*-mingw* ) 5649 case $build in 5650 *-*-mingw* ) # actually msys 5651 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 5652 ;; 5653 *-*-cygwin* ) 5654 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 5655 ;; 5656 * ) # otherwise, assume *nix 5657 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 5658 ;; 5659 esac 5660 ;; 5661 *-*-cygwin* ) 5662 case $build in 5663 *-*-mingw* ) # actually msys 5664 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 5665 ;; 5666 *-*-cygwin* ) 5667 lt_cv_to_host_file_cmd=func_convert_file_noop 5668 ;; 5669 * ) # otherwise, assume *nix 5670 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 5671 ;; 5672 esac 5673 ;; 5674 * ) # unhandled hosts (and "normal" native builds) 5675 lt_cv_to_host_file_cmd=func_convert_file_noop 5676 ;; 5677esac 5678 5679fi 5680 5681to_host_file_cmd=$lt_cv_to_host_file_cmd 5682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 5683$as_echo "$lt_cv_to_host_file_cmd" >&6; } 5684 5685 5686 5687 5688 5689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 5690$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 5691if ${lt_cv_to_tool_file_cmd+:} false; then : 5692 $as_echo_n "(cached) " >&6 5693else 5694 #assume ordinary cross tools, or native build. 5695lt_cv_to_tool_file_cmd=func_convert_file_noop 5696case $host in 5697 *-*-mingw* ) 5698 case $build in 5699 *-*-mingw* ) # actually msys 5700 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 5701 ;; 5702 esac 5703 ;; 5704esac 5705 5706fi 5707 5708to_tool_file_cmd=$lt_cv_to_tool_file_cmd 5709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 5710$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 5711 5712 5713 5714 5715 5716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5717$as_echo_n "checking for $LD option to reload object files... " >&6; } 5718if ${lt_cv_ld_reload_flag+:} false; then : 5719 $as_echo_n "(cached) " >&6 5720else 5721 lt_cv_ld_reload_flag='-r' 5722fi 5723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5724$as_echo "$lt_cv_ld_reload_flag" >&6; } 5725reload_flag=$lt_cv_ld_reload_flag 5726case $reload_flag in 5727"" | " "*) ;; 5728*) reload_flag=" $reload_flag" ;; 5729esac 5730reload_cmds='$LD$reload_flag -o $output$reload_objs' 5731case $host_os in 5732 cygwin* | mingw* | pw32* | cegcc*) 5733 if test "$GCC" != yes; then 5734 reload_cmds=false 5735 fi 5736 ;; 5737 darwin*) 5738 if test "$GCC" = yes; then 5739 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 5740 else 5741 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5742 fi 5743 ;; 5744esac 5745 5746 5747 5748 5749 5750 5751 5752 5753 5754if test -n "$ac_tool_prefix"; then 5755 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5756set dummy ${ac_tool_prefix}objdump; ac_word=$2 5757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5758$as_echo_n "checking for $ac_word... " >&6; } 5759if ${ac_cv_prog_OBJDUMP+:} false; then : 5760 $as_echo_n "(cached) " >&6 5761else 5762 if test -n "$OBJDUMP"; then 5763 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5764else 5765as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5766for as_dir in $PATH 5767do 5768 IFS=$as_save_IFS 5769 test -z "$as_dir" && as_dir=. 5770 for ac_exec_ext in '' $ac_executable_extensions; do 5771 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5772 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5774 break 2 5775 fi 5776done 5777 done 5778IFS=$as_save_IFS 5779 5780fi 5781fi 5782OBJDUMP=$ac_cv_prog_OBJDUMP 5783if test -n "$OBJDUMP"; then 5784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5785$as_echo "$OBJDUMP" >&6; } 5786else 5787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5788$as_echo "no" >&6; } 5789fi 5790 5791 5792fi 5793if test -z "$ac_cv_prog_OBJDUMP"; then 5794 ac_ct_OBJDUMP=$OBJDUMP 5795 # Extract the first word of "objdump", so it can be a program name with args. 5796set dummy objdump; ac_word=$2 5797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5798$as_echo_n "checking for $ac_word... " >&6; } 5799if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5800 $as_echo_n "(cached) " >&6 5801else 5802 if test -n "$ac_ct_OBJDUMP"; then 5803 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5804else 5805as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5806for as_dir in $PATH 5807do 5808 IFS=$as_save_IFS 5809 test -z "$as_dir" && as_dir=. 5810 for ac_exec_ext in '' $ac_executable_extensions; do 5811 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5812 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5814 break 2 5815 fi 5816done 5817 done 5818IFS=$as_save_IFS 5819 5820fi 5821fi 5822ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5823if test -n "$ac_ct_OBJDUMP"; then 5824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5825$as_echo "$ac_ct_OBJDUMP" >&6; } 5826else 5827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5828$as_echo "no" >&6; } 5829fi 5830 5831 if test "x$ac_ct_OBJDUMP" = x; then 5832 OBJDUMP="false" 5833 else 5834 case $cross_compiling:$ac_tool_warned in 5835yes:) 5836{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5837$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5838ac_tool_warned=yes ;; 5839esac 5840 OBJDUMP=$ac_ct_OBJDUMP 5841 fi 5842else 5843 OBJDUMP="$ac_cv_prog_OBJDUMP" 5844fi 5845 5846test -z "$OBJDUMP" && OBJDUMP=objdump 5847 5848 5849 5850 5851 5852 5853 5854 5855 5856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5857$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5858if ${lt_cv_deplibs_check_method+:} false; then : 5859 $as_echo_n "(cached) " >&6 5860else 5861 lt_cv_file_magic_cmd='$MAGIC_CMD' 5862lt_cv_file_magic_test_file= 5863lt_cv_deplibs_check_method='unknown' 5864# Need to set the preceding variable on all platforms that support 5865# interlibrary dependencies. 5866# 'none' -- dependencies not supported. 5867# `unknown' -- same as none, but documents that we really don't know. 5868# 'pass_all' -- all dependencies passed with no checks. 5869# 'test_compile' -- check by making test program. 5870# 'file_magic [[regex]]' -- check by looking for files in library path 5871# which responds to the $file_magic_cmd with a given extended regex. 5872# If you have `file' or equivalent on your system and you're not sure 5873# whether `pass_all' will *always* work, you probably want this one. 5874 5875case $host_os in 5876aix[4-9]*) 5877 lt_cv_deplibs_check_method=pass_all 5878 ;; 5879 5880beos*) 5881 lt_cv_deplibs_check_method=pass_all 5882 ;; 5883 5884bsdi[45]*) 5885 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5886 lt_cv_file_magic_cmd='/usr/bin/file -L' 5887 lt_cv_file_magic_test_file=/shlib/libc.so 5888 ;; 5889 5890cygwin*) 5891 # func_win32_libid is a shell function defined in ltmain.sh 5892 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5893 lt_cv_file_magic_cmd='func_win32_libid' 5894 ;; 5895 5896mingw* | pw32*) 5897 # Base MSYS/MinGW do not provide the 'file' command needed by 5898 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5899 # unless we find 'file', for example because we are cross-compiling. 5900 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 5901 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 5902 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5903 lt_cv_file_magic_cmd='func_win32_libid' 5904 else 5905 # Keep this pattern in sync with the one in func_win32_libid. 5906 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 5907 lt_cv_file_magic_cmd='$OBJDUMP -f' 5908 fi 5909 ;; 5910 5911cegcc*) 5912 # use the weaker test based on 'objdump'. See mingw*. 5913 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5914 lt_cv_file_magic_cmd='$OBJDUMP -f' 5915 ;; 5916 5917darwin* | rhapsody*) 5918 lt_cv_deplibs_check_method=pass_all 5919 ;; 5920 5921freebsd* | dragonfly*) 5922 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5923 case $host_cpu in 5924 i*86 ) 5925 # Not sure whether the presence of OpenBSD here was a mistake. 5926 # Let's accept both of them until this is cleared up. 5927 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5928 lt_cv_file_magic_cmd=/usr/bin/file 5929 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5930 ;; 5931 esac 5932 else 5933 lt_cv_deplibs_check_method=pass_all 5934 fi 5935 ;; 5936 5937gnu*) 5938 lt_cv_deplibs_check_method=pass_all 5939 ;; 5940 5941haiku*) 5942 lt_cv_deplibs_check_method=pass_all 5943 ;; 5944 5945hpux10.20* | hpux11*) 5946 lt_cv_file_magic_cmd=/usr/bin/file 5947 case $host_cpu in 5948 ia64*) 5949 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5950 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5951 ;; 5952 hppa*64*) 5953 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]' 5954 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5955 ;; 5956 *) 5957 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5958 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5959 ;; 5960 esac 5961 ;; 5962 5963interix[3-9]*) 5964 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5965 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5966 ;; 5967 5968irix5* | irix6* | nonstopux*) 5969 case $LD in 5970 *-32|*"-32 ") libmagic=32-bit;; 5971 *-n32|*"-n32 ") libmagic=N32;; 5972 *-64|*"-64 ") libmagic=64-bit;; 5973 *) libmagic=never-match;; 5974 esac 5975 lt_cv_deplibs_check_method=pass_all 5976 ;; 5977 5978# This must be glibc/ELF. 5979linux* | k*bsd*-gnu | kopensolaris*-gnu) 5980 lt_cv_deplibs_check_method=pass_all 5981 ;; 5982 5983netbsd* | netbsdelf*-gnu) 5984 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5985 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5986 else 5987 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5988 fi 5989 ;; 5990 5991newos6*) 5992 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5993 lt_cv_file_magic_cmd=/usr/bin/file 5994 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5995 ;; 5996 5997*nto* | *qnx*) 5998 lt_cv_deplibs_check_method=pass_all 5999 ;; 6000 6001openbsd*) 6002 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 6003 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6004 else 6005 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6006 fi 6007 ;; 6008 6009osf3* | osf4* | osf5*) 6010 lt_cv_deplibs_check_method=pass_all 6011 ;; 6012 6013rdos*) 6014 lt_cv_deplibs_check_method=pass_all 6015 ;; 6016 6017solaris*) 6018 lt_cv_deplibs_check_method=pass_all 6019 ;; 6020 6021sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6022 lt_cv_deplibs_check_method=pass_all 6023 ;; 6024 6025sysv4 | sysv4.3*) 6026 case $host_vendor in 6027 motorola) 6028 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]' 6029 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6030 ;; 6031 ncr) 6032 lt_cv_deplibs_check_method=pass_all 6033 ;; 6034 sequent) 6035 lt_cv_file_magic_cmd='/bin/file' 6036 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6037 ;; 6038 sni) 6039 lt_cv_file_magic_cmd='/bin/file' 6040 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6041 lt_cv_file_magic_test_file=/lib/libc.so 6042 ;; 6043 siemens) 6044 lt_cv_deplibs_check_method=pass_all 6045 ;; 6046 pc) 6047 lt_cv_deplibs_check_method=pass_all 6048 ;; 6049 esac 6050 ;; 6051 6052tpf*) 6053 lt_cv_deplibs_check_method=pass_all 6054 ;; 6055esac 6056 6057fi 6058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6059$as_echo "$lt_cv_deplibs_check_method" >&6; } 6060 6061file_magic_glob= 6062want_nocaseglob=no 6063if test "$build" = "$host"; then 6064 case $host_os in 6065 mingw* | pw32*) 6066 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 6067 want_nocaseglob=yes 6068 else 6069 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 6070 fi 6071 ;; 6072 esac 6073fi 6074 6075file_magic_cmd=$lt_cv_file_magic_cmd 6076deplibs_check_method=$lt_cv_deplibs_check_method 6077test -z "$deplibs_check_method" && deplibs_check_method=unknown 6078 6079 6080 6081 6082 6083 6084 6085 6086 6087 6088 6089 6090 6091 6092 6093 6094 6095 6096 6097 6098 6099 6100if test -n "$ac_tool_prefix"; then 6101 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 6102set dummy ${ac_tool_prefix}dlltool; ac_word=$2 6103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6104$as_echo_n "checking for $ac_word... " >&6; } 6105if ${ac_cv_prog_DLLTOOL+:} false; then : 6106 $as_echo_n "(cached) " >&6 6107else 6108 if test -n "$DLLTOOL"; then 6109 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 6110else 6111as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6112for as_dir in $PATH 6113do 6114 IFS=$as_save_IFS 6115 test -z "$as_dir" && as_dir=. 6116 for ac_exec_ext in '' $ac_executable_extensions; do 6117 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6118 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 6119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6120 break 2 6121 fi 6122done 6123 done 6124IFS=$as_save_IFS 6125 6126fi 6127fi 6128DLLTOOL=$ac_cv_prog_DLLTOOL 6129if test -n "$DLLTOOL"; then 6130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 6131$as_echo "$DLLTOOL" >&6; } 6132else 6133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6134$as_echo "no" >&6; } 6135fi 6136 6137 6138fi 6139if test -z "$ac_cv_prog_DLLTOOL"; then 6140 ac_ct_DLLTOOL=$DLLTOOL 6141 # Extract the first word of "dlltool", so it can be a program name with args. 6142set dummy dlltool; ac_word=$2 6143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6144$as_echo_n "checking for $ac_word... " >&6; } 6145if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 6146 $as_echo_n "(cached) " >&6 6147else 6148 if test -n "$ac_ct_DLLTOOL"; then 6149 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 6150else 6151as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6152for as_dir in $PATH 6153do 6154 IFS=$as_save_IFS 6155 test -z "$as_dir" && as_dir=. 6156 for ac_exec_ext in '' $ac_executable_extensions; do 6157 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6158 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 6159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6160 break 2 6161 fi 6162done 6163 done 6164IFS=$as_save_IFS 6165 6166fi 6167fi 6168ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 6169if test -n "$ac_ct_DLLTOOL"; then 6170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 6171$as_echo "$ac_ct_DLLTOOL" >&6; } 6172else 6173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6174$as_echo "no" >&6; } 6175fi 6176 6177 if test "x$ac_ct_DLLTOOL" = x; then 6178 DLLTOOL="false" 6179 else 6180 case $cross_compiling:$ac_tool_warned in 6181yes:) 6182{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6183$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6184ac_tool_warned=yes ;; 6185esac 6186 DLLTOOL=$ac_ct_DLLTOOL 6187 fi 6188else 6189 DLLTOOL="$ac_cv_prog_DLLTOOL" 6190fi 6191 6192test -z "$DLLTOOL" && DLLTOOL=dlltool 6193 6194 6195 6196 6197 6198 6199 6200 6201 6202 6203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 6204$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 6205if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 6206 $as_echo_n "(cached) " >&6 6207else 6208 lt_cv_sharedlib_from_linklib_cmd='unknown' 6209 6210case $host_os in 6211cygwin* | mingw* | pw32* | cegcc*) 6212 # two different shell functions defined in ltmain.sh 6213 # decide which to use based on capabilities of $DLLTOOL 6214 case `$DLLTOOL --help 2>&1` in 6215 *--identify-strict*) 6216 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 6217 ;; 6218 *) 6219 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 6220 ;; 6221 esac 6222 ;; 6223*) 6224 # fallback: assume linklib IS sharedlib 6225 lt_cv_sharedlib_from_linklib_cmd="$ECHO" 6226 ;; 6227esac 6228 6229fi 6230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 6231$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 6232sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 6233test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 6234 6235 6236 6237 6238 6239 6240 6241if test -n "$ac_tool_prefix"; then 6242 for ac_prog in ar 6243 do 6244 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6245set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6247$as_echo_n "checking for $ac_word... " >&6; } 6248if ${ac_cv_prog_AR+:} false; then : 6249 $as_echo_n "(cached) " >&6 6250else 6251 if test -n "$AR"; then 6252 ac_cv_prog_AR="$AR" # Let the user override the test. 6253else 6254as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6255for as_dir in $PATH 6256do 6257 IFS=$as_save_IFS 6258 test -z "$as_dir" && as_dir=. 6259 for ac_exec_ext in '' $ac_executable_extensions; do 6260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6261 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 6262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6263 break 2 6264 fi 6265done 6266 done 6267IFS=$as_save_IFS 6268 6269fi 6270fi 6271AR=$ac_cv_prog_AR 6272if test -n "$AR"; then 6273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6274$as_echo "$AR" >&6; } 6275else 6276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6277$as_echo "no" >&6; } 6278fi 6279 6280 6281 test -n "$AR" && break 6282 done 6283fi 6284if test -z "$AR"; then 6285 ac_ct_AR=$AR 6286 for ac_prog in ar 6287do 6288 # Extract the first word of "$ac_prog", so it can be a program name with args. 6289set dummy $ac_prog; ac_word=$2 6290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6291$as_echo_n "checking for $ac_word... " >&6; } 6292if ${ac_cv_prog_ac_ct_AR+:} false; then : 6293 $as_echo_n "(cached) " >&6 6294else 6295 if test -n "$ac_ct_AR"; then 6296 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6297else 6298as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6299for as_dir in $PATH 6300do 6301 IFS=$as_save_IFS 6302 test -z "$as_dir" && as_dir=. 6303 for ac_exec_ext in '' $ac_executable_extensions; do 6304 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6305 ac_cv_prog_ac_ct_AR="$ac_prog" 6306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6307 break 2 6308 fi 6309done 6310 done 6311IFS=$as_save_IFS 6312 6313fi 6314fi 6315ac_ct_AR=$ac_cv_prog_ac_ct_AR 6316if test -n "$ac_ct_AR"; then 6317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6318$as_echo "$ac_ct_AR" >&6; } 6319else 6320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6321$as_echo "no" >&6; } 6322fi 6323 6324 6325 test -n "$ac_ct_AR" && break 6326done 6327 6328 if test "x$ac_ct_AR" = x; then 6329 AR="false" 6330 else 6331 case $cross_compiling:$ac_tool_warned in 6332yes:) 6333{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6334$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6335ac_tool_warned=yes ;; 6336esac 6337 AR=$ac_ct_AR 6338 fi 6339fi 6340 6341: ${AR=ar} 6342: ${AR_FLAGS=cru} 6343 6344 6345 6346 6347 6348 6349 6350 6351 6352 6353 6354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 6355$as_echo_n "checking for archiver @FILE support... " >&6; } 6356if ${lt_cv_ar_at_file+:} false; then : 6357 $as_echo_n "(cached) " >&6 6358else 6359 lt_cv_ar_at_file=no 6360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6361/* end confdefs.h. */ 6362 6363int 6364main () 6365{ 6366 6367 ; 6368 return 0; 6369} 6370_ACEOF 6371if ac_fn_c_try_compile "$LINENO"; then : 6372 echo conftest.$ac_objext > conftest.lst 6373 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 6374 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6375 (eval $lt_ar_try) 2>&5 6376 ac_status=$? 6377 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6378 test $ac_status = 0; } 6379 if test "$ac_status" -eq 0; then 6380 # Ensure the archiver fails upon bogus file names. 6381 rm -f conftest.$ac_objext libconftest.a 6382 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6383 (eval $lt_ar_try) 2>&5 6384 ac_status=$? 6385 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6386 test $ac_status = 0; } 6387 if test "$ac_status" -ne 0; then 6388 lt_cv_ar_at_file=@ 6389 fi 6390 fi 6391 rm -f conftest.* libconftest.a 6392 6393fi 6394rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6395 6396fi 6397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 6398$as_echo "$lt_cv_ar_at_file" >&6; } 6399 6400if test "x$lt_cv_ar_at_file" = xno; then 6401 archiver_list_spec= 6402else 6403 archiver_list_spec=$lt_cv_ar_at_file 6404fi 6405 6406 6407 6408 6409 6410 6411 6412if test -n "$ac_tool_prefix"; then 6413 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6414set dummy ${ac_tool_prefix}strip; ac_word=$2 6415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6416$as_echo_n "checking for $ac_word... " >&6; } 6417if ${ac_cv_prog_STRIP+:} false; then : 6418 $as_echo_n "(cached) " >&6 6419else 6420 if test -n "$STRIP"; then 6421 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6422else 6423as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6424for as_dir in $PATH 6425do 6426 IFS=$as_save_IFS 6427 test -z "$as_dir" && as_dir=. 6428 for ac_exec_ext in '' $ac_executable_extensions; do 6429 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6430 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6432 break 2 6433 fi 6434done 6435 done 6436IFS=$as_save_IFS 6437 6438fi 6439fi 6440STRIP=$ac_cv_prog_STRIP 6441if test -n "$STRIP"; then 6442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6443$as_echo "$STRIP" >&6; } 6444else 6445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6446$as_echo "no" >&6; } 6447fi 6448 6449 6450fi 6451if test -z "$ac_cv_prog_STRIP"; then 6452 ac_ct_STRIP=$STRIP 6453 # Extract the first word of "strip", so it can be a program name with args. 6454set dummy strip; ac_word=$2 6455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6456$as_echo_n "checking for $ac_word... " >&6; } 6457if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 6458 $as_echo_n "(cached) " >&6 6459else 6460 if test -n "$ac_ct_STRIP"; then 6461 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6462else 6463as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6464for as_dir in $PATH 6465do 6466 IFS=$as_save_IFS 6467 test -z "$as_dir" && as_dir=. 6468 for ac_exec_ext in '' $ac_executable_extensions; do 6469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6470 ac_cv_prog_ac_ct_STRIP="strip" 6471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6472 break 2 6473 fi 6474done 6475 done 6476IFS=$as_save_IFS 6477 6478fi 6479fi 6480ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6481if test -n "$ac_ct_STRIP"; then 6482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6483$as_echo "$ac_ct_STRIP" >&6; } 6484else 6485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6486$as_echo "no" >&6; } 6487fi 6488 6489 if test "x$ac_ct_STRIP" = x; then 6490 STRIP=":" 6491 else 6492 case $cross_compiling:$ac_tool_warned in 6493yes:) 6494{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6495$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6496ac_tool_warned=yes ;; 6497esac 6498 STRIP=$ac_ct_STRIP 6499 fi 6500else 6501 STRIP="$ac_cv_prog_STRIP" 6502fi 6503 6504test -z "$STRIP" && STRIP=: 6505 6506 6507 6508 6509 6510 6511if test -n "$ac_tool_prefix"; then 6512 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6513set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6515$as_echo_n "checking for $ac_word... " >&6; } 6516if ${ac_cv_prog_RANLIB+:} false; then : 6517 $as_echo_n "(cached) " >&6 6518else 6519 if test -n "$RANLIB"; then 6520 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6521else 6522as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6523for as_dir in $PATH 6524do 6525 IFS=$as_save_IFS 6526 test -z "$as_dir" && as_dir=. 6527 for ac_exec_ext in '' $ac_executable_extensions; do 6528 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6529 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6531 break 2 6532 fi 6533done 6534 done 6535IFS=$as_save_IFS 6536 6537fi 6538fi 6539RANLIB=$ac_cv_prog_RANLIB 6540if test -n "$RANLIB"; then 6541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6542$as_echo "$RANLIB" >&6; } 6543else 6544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6545$as_echo "no" >&6; } 6546fi 6547 6548 6549fi 6550if test -z "$ac_cv_prog_RANLIB"; then 6551 ac_ct_RANLIB=$RANLIB 6552 # Extract the first word of "ranlib", so it can be a program name with args. 6553set dummy ranlib; ac_word=$2 6554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6555$as_echo_n "checking for $ac_word... " >&6; } 6556if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 6557 $as_echo_n "(cached) " >&6 6558else 6559 if test -n "$ac_ct_RANLIB"; then 6560 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6561else 6562as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6563for as_dir in $PATH 6564do 6565 IFS=$as_save_IFS 6566 test -z "$as_dir" && as_dir=. 6567 for ac_exec_ext in '' $ac_executable_extensions; do 6568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6569 ac_cv_prog_ac_ct_RANLIB="ranlib" 6570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6571 break 2 6572 fi 6573done 6574 done 6575IFS=$as_save_IFS 6576 6577fi 6578fi 6579ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6580if test -n "$ac_ct_RANLIB"; then 6581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6582$as_echo "$ac_ct_RANLIB" >&6; } 6583else 6584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6585$as_echo "no" >&6; } 6586fi 6587 6588 if test "x$ac_ct_RANLIB" = x; then 6589 RANLIB=":" 6590 else 6591 case $cross_compiling:$ac_tool_warned in 6592yes:) 6593{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6594$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6595ac_tool_warned=yes ;; 6596esac 6597 RANLIB=$ac_ct_RANLIB 6598 fi 6599else 6600 RANLIB="$ac_cv_prog_RANLIB" 6601fi 6602 6603test -z "$RANLIB" && RANLIB=: 6604 6605 6606 6607 6608 6609 6610# Determine commands to create old-style static archives. 6611old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6612old_postinstall_cmds='chmod 644 $oldlib' 6613old_postuninstall_cmds= 6614 6615if test -n "$RANLIB"; then 6616 case $host_os in 6617 openbsd*) 6618 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 6619 ;; 6620 *) 6621 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 6622 ;; 6623 esac 6624 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 6625fi 6626 6627case $host_os in 6628 darwin*) 6629 lock_old_archive_extraction=yes ;; 6630 *) 6631 lock_old_archive_extraction=no ;; 6632esac 6633 6634 6635 6636 6637 6638 6639 6640 6641 6642 6643 6644 6645 6646 6647 6648 6649 6650 6651 6652 6653 6654 6655 6656 6657 6658 6659 6660 6661 6662 6663 6664 6665 6666 6667 6668 6669 6670 6671 6672# If no C compiler was specified, use CC. 6673LTCC=${LTCC-"$CC"} 6674 6675# If no C compiler flags were specified, use CFLAGS. 6676LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6677 6678# Allow CC to be a program name with arguments. 6679compiler=$CC 6680 6681 6682# Check for command to grab the raw symbol name followed by C symbol from nm. 6683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6684$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6685if ${lt_cv_sys_global_symbol_pipe+:} false; then : 6686 $as_echo_n "(cached) " >&6 6687else 6688 6689# These are sane defaults that work on at least a few old systems. 6690# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6691 6692# Character class describing NM global symbol codes. 6693symcode='[BCDEGRST]' 6694 6695# Regexp to match symbols that can be accessed directly from C. 6696sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6697 6698# Define system-specific variables. 6699case $host_os in 6700aix*) 6701 symcode='[BCDT]' 6702 ;; 6703cygwin* | mingw* | pw32* | cegcc*) 6704 symcode='[ABCDGISTW]' 6705 ;; 6706hpux*) 6707 if test "$host_cpu" = ia64; then 6708 symcode='[ABCDEGRST]' 6709 fi 6710 ;; 6711irix* | nonstopux*) 6712 symcode='[BCDEGRST]' 6713 ;; 6714osf*) 6715 symcode='[BCDEGQRST]' 6716 ;; 6717solaris*) 6718 symcode='[BDRT]' 6719 ;; 6720sco3.2v5*) 6721 symcode='[DT]' 6722 ;; 6723sysv4.2uw2*) 6724 symcode='[DT]' 6725 ;; 6726sysv5* | sco5v6* | unixware* | OpenUNIX*) 6727 symcode='[ABDT]' 6728 ;; 6729sysv4) 6730 symcode='[DFNSTU]' 6731 ;; 6732esac 6733 6734# If we're using GNU nm, then use its standard symbol codes. 6735case `$NM -V 2>&1` in 6736*GNU* | *'with BFD'*) 6737 symcode='[ABCDGIRSTW]' ;; 6738esac 6739 6740# Transform an extracted symbol line into a proper C declaration. 6741# Some systems (esp. on ia64) link data and code symbols differently, 6742# so use this general approach. 6743lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6744 6745# Transform an extracted symbol line into symbol name and symbol address 6746lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 6747lt_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'" 6748 6749# Handle CRLF in mingw tool chain 6750opt_cr= 6751case $build_os in 6752mingw*) 6753 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6754 ;; 6755esac 6756 6757# Try without a prefix underscore, then with it. 6758for ac_symprfx in "" "_"; do 6759 6760 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6761 symxfrm="\\1 $ac_symprfx\\2 \\2" 6762 6763 # Write the raw and C identifiers. 6764 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6765 # Fake it for dumpbin and say T for any non-static function 6766 # and D for any global variable. 6767 # Also find C++ and __fastcall symbols from MSVC++, 6768 # which start with @ or ?. 6769 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6770" {last_section=section; section=\$ 3};"\ 6771" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 6772" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6773" \$ 0!~/External *\|/{next};"\ 6774" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6775" {if(hide[section]) next};"\ 6776" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 6777" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 6778" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 6779" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 6780" ' prfx=^$ac_symprfx" 6781 else 6782 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6783 fi 6784 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 6785 6786 # Check to see that the pipe works correctly. 6787 pipe_works=no 6788 6789 rm -f conftest* 6790 cat > conftest.$ac_ext <<_LT_EOF 6791#ifdef __cplusplus 6792extern "C" { 6793#endif 6794char nm_test_var; 6795void nm_test_func(void); 6796void nm_test_func(void){} 6797#ifdef __cplusplus 6798} 6799#endif 6800int main(){nm_test_var='a';nm_test_func();return(0);} 6801_LT_EOF 6802 6803 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6804 (eval $ac_compile) 2>&5 6805 ac_status=$? 6806 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6807 test $ac_status = 0; }; then 6808 # Now try to grab the symbols. 6809 nlist=conftest.nm 6810 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6811 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6812 ac_status=$? 6813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6814 test $ac_status = 0; } && test -s "$nlist"; then 6815 # Try sorting and uniquifying the output. 6816 if sort "$nlist" | uniq > "$nlist"T; then 6817 mv -f "$nlist"T "$nlist" 6818 else 6819 rm -f "$nlist"T 6820 fi 6821 6822 # Make sure that we snagged all the symbols we need. 6823 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6824 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6825 cat <<_LT_EOF > conftest.$ac_ext 6826/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 6827#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) 6828/* DATA imports from DLLs on WIN32 con't be const, because runtime 6829 relocations are performed -- see ld's documentation on pseudo-relocs. */ 6830# define LT_DLSYM_CONST 6831#elif defined(__osf__) 6832/* This system does not cope well with relocations in const data. */ 6833# define LT_DLSYM_CONST 6834#else 6835# define LT_DLSYM_CONST const 6836#endif 6837 6838#ifdef __cplusplus 6839extern "C" { 6840#endif 6841 6842_LT_EOF 6843 # Now generate the symbol file. 6844 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6845 6846 cat <<_LT_EOF >> conftest.$ac_ext 6847 6848/* The mapping between symbol names and symbols. */ 6849LT_DLSYM_CONST struct { 6850 const char *name; 6851 void *address; 6852} 6853lt__PROGRAM__LTX_preloaded_symbols[] = 6854{ 6855 { "@PROGRAM@", (void *) 0 }, 6856_LT_EOF 6857 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6858 cat <<\_LT_EOF >> conftest.$ac_ext 6859 {0, (void *) 0} 6860}; 6861 6862/* This works around a problem in FreeBSD linker */ 6863#ifdef FREEBSD_WORKAROUND 6864static const void *lt_preloaded_setup() { 6865 return lt__PROGRAM__LTX_preloaded_symbols; 6866} 6867#endif 6868 6869#ifdef __cplusplus 6870} 6871#endif 6872_LT_EOF 6873 # Now try linking the two files. 6874 mv conftest.$ac_objext conftstm.$ac_objext 6875 lt_globsym_save_LIBS=$LIBS 6876 lt_globsym_save_CFLAGS=$CFLAGS 6877 LIBS="conftstm.$ac_objext" 6878 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6879 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6880 (eval $ac_link) 2>&5 6881 ac_status=$? 6882 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6883 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 6884 pipe_works=yes 6885 fi 6886 LIBS=$lt_globsym_save_LIBS 6887 CFLAGS=$lt_globsym_save_CFLAGS 6888 else 6889 echo "cannot find nm_test_func in $nlist" >&5 6890 fi 6891 else 6892 echo "cannot find nm_test_var in $nlist" >&5 6893 fi 6894 else 6895 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6896 fi 6897 else 6898 echo "$progname: failed program was:" >&5 6899 cat conftest.$ac_ext >&5 6900 fi 6901 rm -rf conftest* conftst* 6902 6903 # Do not use the global_symbol_pipe unless it works. 6904 if test "$pipe_works" = yes; then 6905 break 6906 else 6907 lt_cv_sys_global_symbol_pipe= 6908 fi 6909done 6910 6911fi 6912 6913if test -z "$lt_cv_sys_global_symbol_pipe"; then 6914 lt_cv_sys_global_symbol_to_cdecl= 6915fi 6916if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6918$as_echo "failed" >&6; } 6919else 6920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6921$as_echo "ok" >&6; } 6922fi 6923 6924# Response file support. 6925if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6926 nm_file_list_spec='@' 6927elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 6928 nm_file_list_spec='@' 6929fi 6930 6931 6932 6933 6934 6935 6936 6937 6938 6939 6940 6941 6942 6943 6944 6945 6946 6947 6948 6949 6950 6951 6952 6953 6954 6955 6956 6957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 6958$as_echo_n "checking for sysroot... " >&6; } 6959 6960# Check whether --with-sysroot was given. 6961if test "${with_sysroot+set}" = set; then : 6962 withval=$with_sysroot; 6963else 6964 with_sysroot=no 6965fi 6966 6967 6968lt_sysroot= 6969case ${with_sysroot} in #( 6970 yes) 6971 if test "$GCC" = yes; then 6972 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 6973 fi 6974 ;; #( 6975 /*) 6976 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 6977 ;; #( 6978 no|'') 6979 ;; #( 6980 *) 6981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 6982$as_echo "${with_sysroot}" >&6; } 6983 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 6984 ;; 6985esac 6986 6987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 6988$as_echo "${lt_sysroot:-no}" >&6; } 6989 6990 6991 6992 6993 6994# Check whether --enable-libtool-lock was given. 6995if test "${enable_libtool_lock+set}" = set; then : 6996 enableval=$enable_libtool_lock; 6997fi 6998 6999test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 7000 7001# Some flags need to be propagated to the compiler or linker for good 7002# libtool support. 7003case $host in 7004ia64-*-hpux*) 7005 # Find out which ABI we are using. 7006 echo 'int i;' > conftest.$ac_ext 7007 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7008 (eval $ac_compile) 2>&5 7009 ac_status=$? 7010 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7011 test $ac_status = 0; }; then 7012 case `/usr/bin/file conftest.$ac_objext` in 7013 *ELF-32*) 7014 HPUX_IA64_MODE="32" 7015 ;; 7016 *ELF-64*) 7017 HPUX_IA64_MODE="64" 7018 ;; 7019 esac 7020 fi 7021 rm -rf conftest* 7022 ;; 7023*-*-irix6*) 7024 # Find out which ABI we are using. 7025 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7026 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7027 (eval $ac_compile) 2>&5 7028 ac_status=$? 7029 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7030 test $ac_status = 0; }; then 7031 if test "$lt_cv_prog_gnu_ld" = yes; then 7032 case `/usr/bin/file conftest.$ac_objext` in 7033 *32-bit*) 7034 LD="${LD-ld} -melf32bsmip" 7035 ;; 7036 *N32*) 7037 LD="${LD-ld} -melf32bmipn32" 7038 ;; 7039 *64-bit*) 7040 LD="${LD-ld} -melf64bmip" 7041 ;; 7042 esac 7043 else 7044 case `/usr/bin/file conftest.$ac_objext` in 7045 *32-bit*) 7046 LD="${LD-ld} -32" 7047 ;; 7048 *N32*) 7049 LD="${LD-ld} -n32" 7050 ;; 7051 *64-bit*) 7052 LD="${LD-ld} -64" 7053 ;; 7054 esac 7055 fi 7056 fi 7057 rm -rf conftest* 7058 ;; 7059 7060x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 7061s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 7062 # Find out which ABI we are using. 7063 echo 'int i;' > conftest.$ac_ext 7064 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7065 (eval $ac_compile) 2>&5 7066 ac_status=$? 7067 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7068 test $ac_status = 0; }; then 7069 case `/usr/bin/file conftest.o` in 7070 *32-bit*) 7071 case $host in 7072 x86_64-*kfreebsd*-gnu) 7073 LD="${LD-ld} -m elf_i386_fbsd" 7074 ;; 7075 x86_64-*linux*) 7076 LD="${LD-ld} -m elf_i386" 7077 ;; 7078 ppc64-*linux*|powerpc64-*linux*) 7079 LD="${LD-ld} -m elf32ppclinux" 7080 ;; 7081 s390x-*linux*) 7082 LD="${LD-ld} -m elf_s390" 7083 ;; 7084 sparc64-*linux*) 7085 LD="${LD-ld} -m elf32_sparc" 7086 ;; 7087 esac 7088 ;; 7089 *64-bit*) 7090 case $host in 7091 x86_64-*kfreebsd*-gnu) 7092 LD="${LD-ld} -m elf_x86_64_fbsd" 7093 ;; 7094 x86_64-*linux*) 7095 LD="${LD-ld} -m elf_x86_64" 7096 ;; 7097 ppc*-*linux*|powerpc*-*linux*) 7098 LD="${LD-ld} -m elf64ppc" 7099 ;; 7100 s390*-*linux*|s390*-*tpf*) 7101 LD="${LD-ld} -m elf64_s390" 7102 ;; 7103 sparc*-*linux*) 7104 LD="${LD-ld} -m elf64_sparc" 7105 ;; 7106 esac 7107 ;; 7108 esac 7109 fi 7110 rm -rf conftest* 7111 ;; 7112 7113*-*-sco3.2v5*) 7114 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7115 SAVE_CFLAGS="$CFLAGS" 7116 CFLAGS="$CFLAGS -belf" 7117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 7118$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 7119if ${lt_cv_cc_needs_belf+:} false; then : 7120 $as_echo_n "(cached) " >&6 7121else 7122 ac_ext=c 7123ac_cpp='$CPP $CPPFLAGS' 7124ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7125ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7126ac_compiler_gnu=$ac_cv_c_compiler_gnu 7127 7128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7129/* end confdefs.h. */ 7130 7131int 7132main () 7133{ 7134 7135 ; 7136 return 0; 7137} 7138_ACEOF 7139if ac_fn_c_try_link "$LINENO"; then : 7140 lt_cv_cc_needs_belf=yes 7141else 7142 lt_cv_cc_needs_belf=no 7143fi 7144rm -f core conftest.err conftest.$ac_objext \ 7145 conftest$ac_exeext conftest.$ac_ext 7146 ac_ext=c 7147ac_cpp='$CPP $CPPFLAGS' 7148ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7149ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7150ac_compiler_gnu=$ac_cv_c_compiler_gnu 7151 7152fi 7153{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 7154$as_echo "$lt_cv_cc_needs_belf" >&6; } 7155 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 7156 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7157 CFLAGS="$SAVE_CFLAGS" 7158 fi 7159 ;; 7160*-*solaris*) 7161 # Find out which ABI we are using. 7162 echo 'int i;' > conftest.$ac_ext 7163 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7164 (eval $ac_compile) 2>&5 7165 ac_status=$? 7166 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7167 test $ac_status = 0; }; then 7168 case `/usr/bin/file conftest.o` in 7169 *64-bit*) 7170 case $lt_cv_prog_gnu_ld in 7171 yes*) 7172 case $host in 7173 i?86-*-solaris*) 7174 LD="${LD-ld} -m elf_x86_64" 7175 ;; 7176 sparc*-*-solaris*) 7177 LD="${LD-ld} -m elf64_sparc" 7178 ;; 7179 esac 7180 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 7181 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 7182 LD="${LD-ld}_sol2" 7183 fi 7184 ;; 7185 *) 7186 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7187 LD="${LD-ld} -64" 7188 fi 7189 ;; 7190 esac 7191 ;; 7192 esac 7193 fi 7194 rm -rf conftest* 7195 ;; 7196esac 7197 7198need_locks="$enable_libtool_lock" 7199 7200if test -n "$ac_tool_prefix"; then 7201 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 7202set dummy ${ac_tool_prefix}mt; ac_word=$2 7203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7204$as_echo_n "checking for $ac_word... " >&6; } 7205if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 7206 $as_echo_n "(cached) " >&6 7207else 7208 if test -n "$MANIFEST_TOOL"; then 7209 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 7210else 7211as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7212for as_dir in $PATH 7213do 7214 IFS=$as_save_IFS 7215 test -z "$as_dir" && as_dir=. 7216 for ac_exec_ext in '' $ac_executable_extensions; do 7217 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7218 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 7219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7220 break 2 7221 fi 7222done 7223 done 7224IFS=$as_save_IFS 7225 7226fi 7227fi 7228MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 7229if test -n "$MANIFEST_TOOL"; then 7230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 7231$as_echo "$MANIFEST_TOOL" >&6; } 7232else 7233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7234$as_echo "no" >&6; } 7235fi 7236 7237 7238fi 7239if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 7240 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 7241 # Extract the first word of "mt", so it can be a program name with args. 7242set dummy mt; ac_word=$2 7243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7244$as_echo_n "checking for $ac_word... " >&6; } 7245if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 7246 $as_echo_n "(cached) " >&6 7247else 7248 if test -n "$ac_ct_MANIFEST_TOOL"; then 7249 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 7250else 7251as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7252for as_dir in $PATH 7253do 7254 IFS=$as_save_IFS 7255 test -z "$as_dir" && as_dir=. 7256 for ac_exec_ext in '' $ac_executable_extensions; do 7257 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7258 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 7259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7260 break 2 7261 fi 7262done 7263 done 7264IFS=$as_save_IFS 7265 7266fi 7267fi 7268ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 7269if test -n "$ac_ct_MANIFEST_TOOL"; then 7270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 7271$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 7272else 7273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7274$as_echo "no" >&6; } 7275fi 7276 7277 if test "x$ac_ct_MANIFEST_TOOL" = x; then 7278 MANIFEST_TOOL=":" 7279 else 7280 case $cross_compiling:$ac_tool_warned in 7281yes:) 7282{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7283$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7284ac_tool_warned=yes ;; 7285esac 7286 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 7287 fi 7288else 7289 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 7290fi 7291 7292test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 7293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 7294$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 7295if ${lt_cv_path_mainfest_tool+:} false; then : 7296 $as_echo_n "(cached) " >&6 7297else 7298 lt_cv_path_mainfest_tool=no 7299 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 7300 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 7301 cat conftest.err >&5 7302 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 7303 lt_cv_path_mainfest_tool=yes 7304 fi 7305 rm -f conftest* 7306fi 7307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 7308$as_echo "$lt_cv_path_mainfest_tool" >&6; } 7309if test "x$lt_cv_path_mainfest_tool" != xyes; then 7310 MANIFEST_TOOL=: 7311fi 7312 7313 7314 7315 7316 7317 7318 case $host_os in 7319 rhapsody* | darwin*) 7320 if test -n "$ac_tool_prefix"; then 7321 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7322set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7324$as_echo_n "checking for $ac_word... " >&6; } 7325if ${ac_cv_prog_DSYMUTIL+:} false; then : 7326 $as_echo_n "(cached) " >&6 7327else 7328 if test -n "$DSYMUTIL"; then 7329 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7330else 7331as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7332for as_dir in $PATH 7333do 7334 IFS=$as_save_IFS 7335 test -z "$as_dir" && as_dir=. 7336 for ac_exec_ext in '' $ac_executable_extensions; do 7337 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7338 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7340 break 2 7341 fi 7342done 7343 done 7344IFS=$as_save_IFS 7345 7346fi 7347fi 7348DSYMUTIL=$ac_cv_prog_DSYMUTIL 7349if test -n "$DSYMUTIL"; then 7350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7351$as_echo "$DSYMUTIL" >&6; } 7352else 7353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7354$as_echo "no" >&6; } 7355fi 7356 7357 7358fi 7359if test -z "$ac_cv_prog_DSYMUTIL"; then 7360 ac_ct_DSYMUTIL=$DSYMUTIL 7361 # Extract the first word of "dsymutil", so it can be a program name with args. 7362set dummy dsymutil; ac_word=$2 7363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7364$as_echo_n "checking for $ac_word... " >&6; } 7365if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 7366 $as_echo_n "(cached) " >&6 7367else 7368 if test -n "$ac_ct_DSYMUTIL"; then 7369 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7370else 7371as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7372for as_dir in $PATH 7373do 7374 IFS=$as_save_IFS 7375 test -z "$as_dir" && as_dir=. 7376 for ac_exec_ext in '' $ac_executable_extensions; do 7377 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7378 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7380 break 2 7381 fi 7382done 7383 done 7384IFS=$as_save_IFS 7385 7386fi 7387fi 7388ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7389if test -n "$ac_ct_DSYMUTIL"; then 7390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7391$as_echo "$ac_ct_DSYMUTIL" >&6; } 7392else 7393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7394$as_echo "no" >&6; } 7395fi 7396 7397 if test "x$ac_ct_DSYMUTIL" = x; then 7398 DSYMUTIL=":" 7399 else 7400 case $cross_compiling:$ac_tool_warned in 7401yes:) 7402{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7403$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7404ac_tool_warned=yes ;; 7405esac 7406 DSYMUTIL=$ac_ct_DSYMUTIL 7407 fi 7408else 7409 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7410fi 7411 7412 if test -n "$ac_tool_prefix"; then 7413 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7414set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7416$as_echo_n "checking for $ac_word... " >&6; } 7417if ${ac_cv_prog_NMEDIT+:} false; then : 7418 $as_echo_n "(cached) " >&6 7419else 7420 if test -n "$NMEDIT"; then 7421 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7422else 7423as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7424for as_dir in $PATH 7425do 7426 IFS=$as_save_IFS 7427 test -z "$as_dir" && as_dir=. 7428 for ac_exec_ext in '' $ac_executable_extensions; do 7429 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7430 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7432 break 2 7433 fi 7434done 7435 done 7436IFS=$as_save_IFS 7437 7438fi 7439fi 7440NMEDIT=$ac_cv_prog_NMEDIT 7441if test -n "$NMEDIT"; then 7442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7443$as_echo "$NMEDIT" >&6; } 7444else 7445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7446$as_echo "no" >&6; } 7447fi 7448 7449 7450fi 7451if test -z "$ac_cv_prog_NMEDIT"; then 7452 ac_ct_NMEDIT=$NMEDIT 7453 # Extract the first word of "nmedit", so it can be a program name with args. 7454set dummy nmedit; ac_word=$2 7455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7456$as_echo_n "checking for $ac_word... " >&6; } 7457if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 7458 $as_echo_n "(cached) " >&6 7459else 7460 if test -n "$ac_ct_NMEDIT"; then 7461 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7462else 7463as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7464for as_dir in $PATH 7465do 7466 IFS=$as_save_IFS 7467 test -z "$as_dir" && as_dir=. 7468 for ac_exec_ext in '' $ac_executable_extensions; do 7469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7470 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7472 break 2 7473 fi 7474done 7475 done 7476IFS=$as_save_IFS 7477 7478fi 7479fi 7480ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7481if test -n "$ac_ct_NMEDIT"; then 7482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7483$as_echo "$ac_ct_NMEDIT" >&6; } 7484else 7485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7486$as_echo "no" >&6; } 7487fi 7488 7489 if test "x$ac_ct_NMEDIT" = x; then 7490 NMEDIT=":" 7491 else 7492 case $cross_compiling:$ac_tool_warned in 7493yes:) 7494{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7495$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7496ac_tool_warned=yes ;; 7497esac 7498 NMEDIT=$ac_ct_NMEDIT 7499 fi 7500else 7501 NMEDIT="$ac_cv_prog_NMEDIT" 7502fi 7503 7504 if test -n "$ac_tool_prefix"; then 7505 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7506set dummy ${ac_tool_prefix}lipo; ac_word=$2 7507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7508$as_echo_n "checking for $ac_word... " >&6; } 7509if ${ac_cv_prog_LIPO+:} false; then : 7510 $as_echo_n "(cached) " >&6 7511else 7512 if test -n "$LIPO"; then 7513 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7514else 7515as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7516for as_dir in $PATH 7517do 7518 IFS=$as_save_IFS 7519 test -z "$as_dir" && as_dir=. 7520 for ac_exec_ext in '' $ac_executable_extensions; do 7521 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7522 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7524 break 2 7525 fi 7526done 7527 done 7528IFS=$as_save_IFS 7529 7530fi 7531fi 7532LIPO=$ac_cv_prog_LIPO 7533if test -n "$LIPO"; then 7534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7535$as_echo "$LIPO" >&6; } 7536else 7537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7538$as_echo "no" >&6; } 7539fi 7540 7541 7542fi 7543if test -z "$ac_cv_prog_LIPO"; then 7544 ac_ct_LIPO=$LIPO 7545 # Extract the first word of "lipo", so it can be a program name with args. 7546set dummy lipo; ac_word=$2 7547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7548$as_echo_n "checking for $ac_word... " >&6; } 7549if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 7550 $as_echo_n "(cached) " >&6 7551else 7552 if test -n "$ac_ct_LIPO"; then 7553 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7554else 7555as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7556for as_dir in $PATH 7557do 7558 IFS=$as_save_IFS 7559 test -z "$as_dir" && as_dir=. 7560 for ac_exec_ext in '' $ac_executable_extensions; do 7561 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7562 ac_cv_prog_ac_ct_LIPO="lipo" 7563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7564 break 2 7565 fi 7566done 7567 done 7568IFS=$as_save_IFS 7569 7570fi 7571fi 7572ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7573if test -n "$ac_ct_LIPO"; then 7574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7575$as_echo "$ac_ct_LIPO" >&6; } 7576else 7577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7578$as_echo "no" >&6; } 7579fi 7580 7581 if test "x$ac_ct_LIPO" = x; then 7582 LIPO=":" 7583 else 7584 case $cross_compiling:$ac_tool_warned in 7585yes:) 7586{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7587$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7588ac_tool_warned=yes ;; 7589esac 7590 LIPO=$ac_ct_LIPO 7591 fi 7592else 7593 LIPO="$ac_cv_prog_LIPO" 7594fi 7595 7596 if test -n "$ac_tool_prefix"; then 7597 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7598set dummy ${ac_tool_prefix}otool; ac_word=$2 7599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7600$as_echo_n "checking for $ac_word... " >&6; } 7601if ${ac_cv_prog_OTOOL+:} false; then : 7602 $as_echo_n "(cached) " >&6 7603else 7604 if test -n "$OTOOL"; then 7605 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7606else 7607as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7608for as_dir in $PATH 7609do 7610 IFS=$as_save_IFS 7611 test -z "$as_dir" && as_dir=. 7612 for ac_exec_ext in '' $ac_executable_extensions; do 7613 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7614 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7616 break 2 7617 fi 7618done 7619 done 7620IFS=$as_save_IFS 7621 7622fi 7623fi 7624OTOOL=$ac_cv_prog_OTOOL 7625if test -n "$OTOOL"; then 7626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7627$as_echo "$OTOOL" >&6; } 7628else 7629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7630$as_echo "no" >&6; } 7631fi 7632 7633 7634fi 7635if test -z "$ac_cv_prog_OTOOL"; then 7636 ac_ct_OTOOL=$OTOOL 7637 # Extract the first word of "otool", so it can be a program name with args. 7638set dummy otool; ac_word=$2 7639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7640$as_echo_n "checking for $ac_word... " >&6; } 7641if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 7642 $as_echo_n "(cached) " >&6 7643else 7644 if test -n "$ac_ct_OTOOL"; then 7645 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7646else 7647as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7648for as_dir in $PATH 7649do 7650 IFS=$as_save_IFS 7651 test -z "$as_dir" && as_dir=. 7652 for ac_exec_ext in '' $ac_executable_extensions; do 7653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7654 ac_cv_prog_ac_ct_OTOOL="otool" 7655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7656 break 2 7657 fi 7658done 7659 done 7660IFS=$as_save_IFS 7661 7662fi 7663fi 7664ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7665if test -n "$ac_ct_OTOOL"; then 7666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7667$as_echo "$ac_ct_OTOOL" >&6; } 7668else 7669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7670$as_echo "no" >&6; } 7671fi 7672 7673 if test "x$ac_ct_OTOOL" = x; then 7674 OTOOL=":" 7675 else 7676 case $cross_compiling:$ac_tool_warned in 7677yes:) 7678{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7679$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7680ac_tool_warned=yes ;; 7681esac 7682 OTOOL=$ac_ct_OTOOL 7683 fi 7684else 7685 OTOOL="$ac_cv_prog_OTOOL" 7686fi 7687 7688 if test -n "$ac_tool_prefix"; then 7689 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7690set dummy ${ac_tool_prefix}otool64; ac_word=$2 7691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7692$as_echo_n "checking for $ac_word... " >&6; } 7693if ${ac_cv_prog_OTOOL64+:} false; then : 7694 $as_echo_n "(cached) " >&6 7695else 7696 if test -n "$OTOOL64"; then 7697 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7698else 7699as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7700for as_dir in $PATH 7701do 7702 IFS=$as_save_IFS 7703 test -z "$as_dir" && as_dir=. 7704 for ac_exec_ext in '' $ac_executable_extensions; do 7705 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7706 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7708 break 2 7709 fi 7710done 7711 done 7712IFS=$as_save_IFS 7713 7714fi 7715fi 7716OTOOL64=$ac_cv_prog_OTOOL64 7717if test -n "$OTOOL64"; then 7718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7719$as_echo "$OTOOL64" >&6; } 7720else 7721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7722$as_echo "no" >&6; } 7723fi 7724 7725 7726fi 7727if test -z "$ac_cv_prog_OTOOL64"; then 7728 ac_ct_OTOOL64=$OTOOL64 7729 # Extract the first word of "otool64", so it can be a program name with args. 7730set dummy otool64; ac_word=$2 7731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7732$as_echo_n "checking for $ac_word... " >&6; } 7733if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 7734 $as_echo_n "(cached) " >&6 7735else 7736 if test -n "$ac_ct_OTOOL64"; then 7737 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7738else 7739as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7740for as_dir in $PATH 7741do 7742 IFS=$as_save_IFS 7743 test -z "$as_dir" && as_dir=. 7744 for ac_exec_ext in '' $ac_executable_extensions; do 7745 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7746 ac_cv_prog_ac_ct_OTOOL64="otool64" 7747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7748 break 2 7749 fi 7750done 7751 done 7752IFS=$as_save_IFS 7753 7754fi 7755fi 7756ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7757if test -n "$ac_ct_OTOOL64"; then 7758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7759$as_echo "$ac_ct_OTOOL64" >&6; } 7760else 7761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7762$as_echo "no" >&6; } 7763fi 7764 7765 if test "x$ac_ct_OTOOL64" = x; then 7766 OTOOL64=":" 7767 else 7768 case $cross_compiling:$ac_tool_warned in 7769yes:) 7770{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7771$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7772ac_tool_warned=yes ;; 7773esac 7774 OTOOL64=$ac_ct_OTOOL64 7775 fi 7776else 7777 OTOOL64="$ac_cv_prog_OTOOL64" 7778fi 7779 7780 7781 7782 7783 7784 7785 7786 7787 7788 7789 7790 7791 7792 7793 7794 7795 7796 7797 7798 7799 7800 7801 7802 7803 7804 7805 7806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7807$as_echo_n "checking for -single_module linker flag... " >&6; } 7808if ${lt_cv_apple_cc_single_mod+:} false; then : 7809 $as_echo_n "(cached) " >&6 7810else 7811 lt_cv_apple_cc_single_mod=no 7812 if test -z "${LT_MULTI_MODULE}"; then 7813 # By default we will add the -single_module flag. You can override 7814 # by either setting the environment variable LT_MULTI_MODULE 7815 # non-empty at configure time, or by adding -multi_module to the 7816 # link flags. 7817 rm -rf libconftest.dylib* 7818 echo "int foo(void){return 1;}" > conftest.c 7819 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7820-dynamiclib -Wl,-single_module conftest.c" >&5 7821 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7822 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7823 _lt_result=$? 7824 # If there is a non-empty error log, and "single_module" 7825 # appears in it, assume the flag caused a linker warning 7826 if test -s conftest.err && $GREP single_module conftest.err; then 7827 cat conftest.err >&5 7828 # Otherwise, if the output was created with a 0 exit code from 7829 # the compiler, it worked. 7830 elif test -f libconftest.dylib && test $_lt_result -eq 0; then 7831 lt_cv_apple_cc_single_mod=yes 7832 else 7833 cat conftest.err >&5 7834 fi 7835 rm -rf libconftest.dylib* 7836 rm -f conftest.* 7837 fi 7838fi 7839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7840$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7841 7842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7843$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7844if ${lt_cv_ld_exported_symbols_list+:} false; then : 7845 $as_echo_n "(cached) " >&6 7846else 7847 lt_cv_ld_exported_symbols_list=no 7848 save_LDFLAGS=$LDFLAGS 7849 echo "_main" > conftest.sym 7850 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7852/* end confdefs.h. */ 7853 7854int 7855main () 7856{ 7857 7858 ; 7859 return 0; 7860} 7861_ACEOF 7862if ac_fn_c_try_link "$LINENO"; then : 7863 lt_cv_ld_exported_symbols_list=yes 7864else 7865 lt_cv_ld_exported_symbols_list=no 7866fi 7867rm -f core conftest.err conftest.$ac_objext \ 7868 conftest$ac_exeext conftest.$ac_ext 7869 LDFLAGS="$save_LDFLAGS" 7870 7871fi 7872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7873$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7874 7875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 7876$as_echo_n "checking for -force_load linker flag... " >&6; } 7877if ${lt_cv_ld_force_load+:} false; then : 7878 $as_echo_n "(cached) " >&6 7879else 7880 lt_cv_ld_force_load=no 7881 cat > conftest.c << _LT_EOF 7882int forced_loaded() { return 2;} 7883_LT_EOF 7884 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 7885 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 7886 echo "$AR cru libconftest.a conftest.o" >&5 7887 $AR cru libconftest.a conftest.o 2>&5 7888 echo "$RANLIB libconftest.a" >&5 7889 $RANLIB libconftest.a 2>&5 7890 cat > conftest.c << _LT_EOF 7891int main() { return 0;} 7892_LT_EOF 7893 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 7894 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 7895 _lt_result=$? 7896 if test -s conftest.err && $GREP force_load conftest.err; then 7897 cat conftest.err >&5 7898 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then 7899 lt_cv_ld_force_load=yes 7900 else 7901 cat conftest.err >&5 7902 fi 7903 rm -f conftest.err libconftest.a conftest conftest.c 7904 rm -rf conftest.dSYM 7905 7906fi 7907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 7908$as_echo "$lt_cv_ld_force_load" >&6; } 7909 case $host_os in 7910 rhapsody* | darwin1.[012]) 7911 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 7912 darwin1.*) 7913 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7914 darwin*) # darwin 5.x on 7915 # if running on 10.5 or later, the deployment target defaults 7916 # to the OS version, if on x86, and 10.4, the deployment 7917 # target defaults to 10.4. Don't you love it? 7918 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7919 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7920 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7921 10.[012]*) 7922 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7923 10.*) 7924 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7925 esac 7926 ;; 7927 esac 7928 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 7929 _lt_dar_single_mod='$single_module' 7930 fi 7931 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 7932 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 7933 else 7934 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 7935 fi 7936 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 7937 _lt_dsymutil='~$DSYMUTIL $lib || :' 7938 else 7939 _lt_dsymutil= 7940 fi 7941 ;; 7942 esac 7943 7944for ac_header in dlfcn.h 7945do : 7946 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7947" 7948if test "x$ac_cv_header_dlfcn_h" = xyes; then : 7949 cat >>confdefs.h <<_ACEOF 7950#define HAVE_DLFCN_H 1 7951_ACEOF 7952 7953fi 7954 7955done 7956 7957 7958 7959 7960 7961# Set options 7962 7963 7964 7965 enable_dlopen=no 7966 7967 7968 enable_win32_dll=no 7969 7970 7971 # Check whether --enable-shared was given. 7972if test "${enable_shared+set}" = set; then : 7973 enableval=$enable_shared; p=${PACKAGE-default} 7974 case $enableval in 7975 yes) enable_shared=yes ;; 7976 no) enable_shared=no ;; 7977 *) 7978 enable_shared=no 7979 # Look at the argument we got. We use all the common list separators. 7980 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7981 for pkg in $enableval; do 7982 IFS="$lt_save_ifs" 7983 if test "X$pkg" = "X$p"; then 7984 enable_shared=yes 7985 fi 7986 done 7987 IFS="$lt_save_ifs" 7988 ;; 7989 esac 7990else 7991 enable_shared=yes 7992fi 7993 7994 7995 7996 7997 7998 7999 8000 8001 8002 # Check whether --enable-static was given. 8003if test "${enable_static+set}" = set; then : 8004 enableval=$enable_static; p=${PACKAGE-default} 8005 case $enableval in 8006 yes) enable_static=yes ;; 8007 no) enable_static=no ;; 8008 *) 8009 enable_static=no 8010 # Look at the argument we got. We use all the common list separators. 8011 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8012 for pkg in $enableval; do 8013 IFS="$lt_save_ifs" 8014 if test "X$pkg" = "X$p"; then 8015 enable_static=yes 8016 fi 8017 done 8018 IFS="$lt_save_ifs" 8019 ;; 8020 esac 8021else 8022 enable_static=yes 8023fi 8024 8025 8026 8027 8028 8029 8030 8031 8032 8033 8034# Check whether --with-pic was given. 8035if test "${with_pic+set}" = set; then : 8036 withval=$with_pic; lt_p=${PACKAGE-default} 8037 case $withval in 8038 yes|no) pic_mode=$withval ;; 8039 *) 8040 pic_mode=default 8041 # Look at the argument we got. We use all the common list separators. 8042 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8043 for lt_pkg in $withval; do 8044 IFS="$lt_save_ifs" 8045 if test "X$lt_pkg" = "X$lt_p"; then 8046 pic_mode=yes 8047 fi 8048 done 8049 IFS="$lt_save_ifs" 8050 ;; 8051 esac 8052else 8053 pic_mode=default 8054fi 8055 8056 8057test -z "$pic_mode" && pic_mode=default 8058 8059 8060 8061 8062 8063 8064 8065 # Check whether --enable-fast-install was given. 8066if test "${enable_fast_install+set}" = set; then : 8067 enableval=$enable_fast_install; p=${PACKAGE-default} 8068 case $enableval in 8069 yes) enable_fast_install=yes ;; 8070 no) enable_fast_install=no ;; 8071 *) 8072 enable_fast_install=no 8073 # Look at the argument we got. We use all the common list separators. 8074 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8075 for pkg in $enableval; do 8076 IFS="$lt_save_ifs" 8077 if test "X$pkg" = "X$p"; then 8078 enable_fast_install=yes 8079 fi 8080 done 8081 IFS="$lt_save_ifs" 8082 ;; 8083 esac 8084else 8085 enable_fast_install=yes 8086fi 8087 8088 8089 8090 8091 8092 8093 8094 8095 8096 8097 8098# This can be used to rebuild libtool when needed 8099LIBTOOL_DEPS="$ltmain" 8100 8101# Always use our own libtool. 8102LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8103 8104 8105 8106 8107 8108 8109 8110 8111 8112 8113 8114 8115 8116 8117 8118 8119 8120 8121 8122 8123 8124 8125 8126 8127 8128 8129 8130 8131 8132 8133test -z "$LN_S" && LN_S="ln -s" 8134 8135 8136 8137 8138 8139 8140 8141 8142 8143 8144 8145 8146 8147 8148if test -n "${ZSH_VERSION+set}" ; then 8149 setopt NO_GLOB_SUBST 8150fi 8151 8152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8153$as_echo_n "checking for objdir... " >&6; } 8154if ${lt_cv_objdir+:} false; then : 8155 $as_echo_n "(cached) " >&6 8156else 8157 rm -f .libs 2>/dev/null 8158mkdir .libs 2>/dev/null 8159if test -d .libs; then 8160 lt_cv_objdir=.libs 8161else 8162 # MS-DOS does not allow filenames that begin with a dot. 8163 lt_cv_objdir=_libs 8164fi 8165rmdir .libs 2>/dev/null 8166fi 8167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8168$as_echo "$lt_cv_objdir" >&6; } 8169objdir=$lt_cv_objdir 8170 8171 8172 8173 8174 8175cat >>confdefs.h <<_ACEOF 8176#define LT_OBJDIR "$lt_cv_objdir/" 8177_ACEOF 8178 8179 8180 8181 8182case $host_os in 8183aix3*) 8184 # AIX sometimes has problems with the GCC collect2 program. For some 8185 # reason, if we set the COLLECT_NAMES environment variable, the problems 8186 # vanish in a puff of smoke. 8187 if test "X${COLLECT_NAMES+set}" != Xset; then 8188 COLLECT_NAMES= 8189 export COLLECT_NAMES 8190 fi 8191 ;; 8192esac 8193 8194# Global variables: 8195ofile=libtool 8196can_build_shared=yes 8197 8198# All known linkers require a `.a' archive for static linking (except MSVC, 8199# which needs '.lib'). 8200libext=a 8201 8202with_gnu_ld="$lt_cv_prog_gnu_ld" 8203 8204old_CC="$CC" 8205old_CFLAGS="$CFLAGS" 8206 8207# Set sane defaults for various variables 8208test -z "$CC" && CC=cc 8209test -z "$LTCC" && LTCC=$CC 8210test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8211test -z "$LD" && LD=ld 8212test -z "$ac_objext" && ac_objext=o 8213 8214for cc_temp in $compiler""; do 8215 case $cc_temp in 8216 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 8217 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 8218 \-*) ;; 8219 *) break;; 8220 esac 8221done 8222cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 8223 8224 8225# Only perform the check for file, if the check method requires it 8226test -z "$MAGIC_CMD" && MAGIC_CMD=file 8227case $deplibs_check_method in 8228file_magic*) 8229 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8231$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8232if ${lt_cv_path_MAGIC_CMD+:} false; then : 8233 $as_echo_n "(cached) " >&6 8234else 8235 case $MAGIC_CMD in 8236[\\/*] | ?:[\\/]*) 8237 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8238 ;; 8239*) 8240 lt_save_MAGIC_CMD="$MAGIC_CMD" 8241 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8242 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8243 for ac_dir in $ac_dummy; do 8244 IFS="$lt_save_ifs" 8245 test -z "$ac_dir" && ac_dir=. 8246 if test -f $ac_dir/${ac_tool_prefix}file; then 8247 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 8248 if test -n "$file_magic_test_file"; then 8249 case $deplibs_check_method in 8250 "file_magic "*) 8251 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8252 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8253 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8254 $EGREP "$file_magic_regex" > /dev/null; then 8255 : 8256 else 8257 cat <<_LT_EOF 1>&2 8258 8259*** Warning: the command libtool uses to detect shared libraries, 8260*** $file_magic_cmd, produces output that libtool cannot recognize. 8261*** The result is that libtool may fail to recognize shared libraries 8262*** as such. This will affect the creation of libtool libraries that 8263*** depend on shared libraries, but programs linked with such libtool 8264*** libraries will work regardless of this problem. Nevertheless, you 8265*** may want to report the problem to your system manager and/or to 8266*** bug-libtool@gnu.org 8267 8268_LT_EOF 8269 fi ;; 8270 esac 8271 fi 8272 break 8273 fi 8274 done 8275 IFS="$lt_save_ifs" 8276 MAGIC_CMD="$lt_save_MAGIC_CMD" 8277 ;; 8278esac 8279fi 8280 8281MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8282if test -n "$MAGIC_CMD"; then 8283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8284$as_echo "$MAGIC_CMD" >&6; } 8285else 8286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8287$as_echo "no" >&6; } 8288fi 8289 8290 8291 8292 8293 8294if test -z "$lt_cv_path_MAGIC_CMD"; then 8295 if test -n "$ac_tool_prefix"; then 8296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8297$as_echo_n "checking for file... " >&6; } 8298if ${lt_cv_path_MAGIC_CMD+:} false; then : 8299 $as_echo_n "(cached) " >&6 8300else 8301 case $MAGIC_CMD in 8302[\\/*] | ?:[\\/]*) 8303 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8304 ;; 8305*) 8306 lt_save_MAGIC_CMD="$MAGIC_CMD" 8307 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8308 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8309 for ac_dir in $ac_dummy; do 8310 IFS="$lt_save_ifs" 8311 test -z "$ac_dir" && ac_dir=. 8312 if test -f $ac_dir/file; then 8313 lt_cv_path_MAGIC_CMD="$ac_dir/file" 8314 if test -n "$file_magic_test_file"; then 8315 case $deplibs_check_method in 8316 "file_magic "*) 8317 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8318 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8319 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8320 $EGREP "$file_magic_regex" > /dev/null; then 8321 : 8322 else 8323 cat <<_LT_EOF 1>&2 8324 8325*** Warning: the command libtool uses to detect shared libraries, 8326*** $file_magic_cmd, produces output that libtool cannot recognize. 8327*** The result is that libtool may fail to recognize shared libraries 8328*** as such. This will affect the creation of libtool libraries that 8329*** depend on shared libraries, but programs linked with such libtool 8330*** libraries will work regardless of this problem. Nevertheless, you 8331*** may want to report the problem to your system manager and/or to 8332*** bug-libtool@gnu.org 8333 8334_LT_EOF 8335 fi ;; 8336 esac 8337 fi 8338 break 8339 fi 8340 done 8341 IFS="$lt_save_ifs" 8342 MAGIC_CMD="$lt_save_MAGIC_CMD" 8343 ;; 8344esac 8345fi 8346 8347MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8348if test -n "$MAGIC_CMD"; then 8349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8350$as_echo "$MAGIC_CMD" >&6; } 8351else 8352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8353$as_echo "no" >&6; } 8354fi 8355 8356 8357 else 8358 MAGIC_CMD=: 8359 fi 8360fi 8361 8362 fi 8363 ;; 8364esac 8365 8366# Use C for the default configuration in the libtool script 8367 8368lt_save_CC="$CC" 8369ac_ext=c 8370ac_cpp='$CPP $CPPFLAGS' 8371ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8372ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8373ac_compiler_gnu=$ac_cv_c_compiler_gnu 8374 8375 8376# Source file extension for C test sources. 8377ac_ext=c 8378 8379# Object file extension for compiled C test sources. 8380objext=o 8381objext=$objext 8382 8383# Code to be used in simple compile tests 8384lt_simple_compile_test_code="int some_variable = 0;" 8385 8386# Code to be used in simple link tests 8387lt_simple_link_test_code='int main(){return(0);}' 8388 8389 8390 8391 8392 8393 8394 8395# If no C compiler was specified, use CC. 8396LTCC=${LTCC-"$CC"} 8397 8398# If no C compiler flags were specified, use CFLAGS. 8399LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8400 8401# Allow CC to be a program name with arguments. 8402compiler=$CC 8403 8404# Save the default compiler, since it gets overwritten when the other 8405# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8406compiler_DEFAULT=$CC 8407 8408# save warnings/boilerplate of simple test code 8409ac_outfile=conftest.$ac_objext 8410echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8411eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8412_lt_compiler_boilerplate=`cat conftest.err` 8413$RM conftest* 8414 8415ac_outfile=conftest.$ac_objext 8416echo "$lt_simple_link_test_code" >conftest.$ac_ext 8417eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8418_lt_linker_boilerplate=`cat conftest.err` 8419$RM -r conftest* 8420 8421 8422if test -n "$compiler"; then 8423 8424lt_prog_compiler_no_builtin_flag= 8425 8426if test "$GCC" = yes; then 8427 case $cc_basename in 8428 nvcc*) 8429 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8430 *) 8431 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8432 esac 8433 8434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8435$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8436if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 8437 $as_echo_n "(cached) " >&6 8438else 8439 lt_cv_prog_compiler_rtti_exceptions=no 8440 ac_outfile=conftest.$ac_objext 8441 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8442 lt_compiler_flag="-fno-rtti -fno-exceptions" 8443 # Insert the option either (1) after the last *FLAGS variable, or 8444 # (2) before a word containing "conftest.", or (3) at the end. 8445 # Note that $ac_compile itself does not contain backslashes and begins 8446 # with a dollar sign (not a hyphen), so the echo should work correctly. 8447 # The option is referenced via a variable to avoid confusing sed. 8448 lt_compile=`echo "$ac_compile" | $SED \ 8449 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8450 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8451 -e 's:$: $lt_compiler_flag:'` 8452 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8453 (eval "$lt_compile" 2>conftest.err) 8454 ac_status=$? 8455 cat conftest.err >&5 8456 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8457 if (exit $ac_status) && test -s "$ac_outfile"; then 8458 # The compiler can only warn and ignore the option if not recognized 8459 # So say no if there are warnings other than the usual output. 8460 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8461 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8462 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8463 lt_cv_prog_compiler_rtti_exceptions=yes 8464 fi 8465 fi 8466 $RM conftest* 8467 8468fi 8469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8470$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8471 8472if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 8473 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8474else 8475 : 8476fi 8477 8478fi 8479 8480 8481 8482 8483 8484 8485 lt_prog_compiler_wl= 8486lt_prog_compiler_pic= 8487lt_prog_compiler_static= 8488 8489 8490 if test "$GCC" = yes; then 8491 lt_prog_compiler_wl='-Wl,' 8492 lt_prog_compiler_static='-static' 8493 8494 case $host_os in 8495 aix*) 8496 # All AIX code is PIC. 8497 if test "$host_cpu" = ia64; then 8498 # AIX 5 now supports IA64 processor 8499 lt_prog_compiler_static='-Bstatic' 8500 fi 8501 ;; 8502 8503 amigaos*) 8504 case $host_cpu in 8505 powerpc) 8506 # see comment about AmigaOS4 .so support 8507 lt_prog_compiler_pic='-fPIC' 8508 ;; 8509 m68k) 8510 # FIXME: we need at least 68020 code to build shared libraries, but 8511 # adding the `-m68020' flag to GCC prevents building anything better, 8512 # like `-m68040'. 8513 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8514 ;; 8515 esac 8516 ;; 8517 8518 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8519 # PIC is the default for these OSes. 8520 ;; 8521 8522 mingw* | cygwin* | pw32* | os2* | cegcc*) 8523 # This hack is so that the source file can tell whether it is being 8524 # built for inclusion in a dll (and should export symbols for example). 8525 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8526 # (--disable-auto-import) libraries 8527 lt_prog_compiler_pic='-DDLL_EXPORT' 8528 ;; 8529 8530 darwin* | rhapsody*) 8531 # PIC is the default on this platform 8532 # Common symbols not allowed in MH_DYLIB files 8533 lt_prog_compiler_pic='-fno-common' 8534 ;; 8535 8536 haiku*) 8537 # PIC is the default for Haiku. 8538 # The "-static" flag exists, but is broken. 8539 lt_prog_compiler_static= 8540 ;; 8541 8542 hpux*) 8543 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8544 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8545 # sets the default TLS model and affects inlining. 8546 case $host_cpu in 8547 hppa*64*) 8548 # +Z the default 8549 ;; 8550 *) 8551 lt_prog_compiler_pic='-fPIC' 8552 ;; 8553 esac 8554 ;; 8555 8556 interix[3-9]*) 8557 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8558 # Instead, we relocate shared libraries at runtime. 8559 ;; 8560 8561 msdosdjgpp*) 8562 # Just because we use GCC doesn't mean we suddenly get shared libraries 8563 # on systems that don't support them. 8564 lt_prog_compiler_can_build_shared=no 8565 enable_shared=no 8566 ;; 8567 8568 *nto* | *qnx*) 8569 # QNX uses GNU C++, but need to define -shared option too, otherwise 8570 # it will coredump. 8571 lt_prog_compiler_pic='-fPIC -shared' 8572 ;; 8573 8574 sysv4*MP*) 8575 if test -d /usr/nec; then 8576 lt_prog_compiler_pic=-Kconform_pic 8577 fi 8578 ;; 8579 8580 *) 8581 lt_prog_compiler_pic='-fPIC' 8582 ;; 8583 esac 8584 8585 case $cc_basename in 8586 nvcc*) # Cuda Compiler Driver 2.2 8587 lt_prog_compiler_wl='-Xlinker ' 8588 if test -n "$lt_prog_compiler_pic"; then 8589 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 8590 fi 8591 ;; 8592 esac 8593 else 8594 # PORTME Check for flag to pass linker flags through the system compiler. 8595 case $host_os in 8596 aix*) 8597 lt_prog_compiler_wl='-Wl,' 8598 if test "$host_cpu" = ia64; then 8599 # AIX 5 now supports IA64 processor 8600 lt_prog_compiler_static='-Bstatic' 8601 else 8602 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8603 fi 8604 ;; 8605 8606 mingw* | cygwin* | pw32* | os2* | cegcc*) 8607 # This hack is so that the source file can tell whether it is being 8608 # built for inclusion in a dll (and should export symbols for example). 8609 lt_prog_compiler_pic='-DDLL_EXPORT' 8610 ;; 8611 8612 hpux9* | hpux10* | hpux11*) 8613 lt_prog_compiler_wl='-Wl,' 8614 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8615 # not for PA HP-UX. 8616 case $host_cpu in 8617 hppa*64*|ia64*) 8618 # +Z the default 8619 ;; 8620 *) 8621 lt_prog_compiler_pic='+Z' 8622 ;; 8623 esac 8624 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8625 lt_prog_compiler_static='${wl}-a ${wl}archive' 8626 ;; 8627 8628 irix5* | irix6* | nonstopux*) 8629 lt_prog_compiler_wl='-Wl,' 8630 # PIC (with -KPIC) is the default. 8631 lt_prog_compiler_static='-non_shared' 8632 ;; 8633 8634 linux* | k*bsd*-gnu | kopensolaris*-gnu) 8635 case $cc_basename in 8636 # old Intel for x86_64 which still supported -KPIC. 8637 ecc*) 8638 lt_prog_compiler_wl='-Wl,' 8639 lt_prog_compiler_pic='-KPIC' 8640 lt_prog_compiler_static='-static' 8641 ;; 8642 # icc used to be incompatible with GCC. 8643 # ICC 10 doesn't accept -KPIC any more. 8644 icc* | ifort*) 8645 lt_prog_compiler_wl='-Wl,' 8646 lt_prog_compiler_pic='-fPIC' 8647 lt_prog_compiler_static='-static' 8648 ;; 8649 # Lahey Fortran 8.1. 8650 lf95*) 8651 lt_prog_compiler_wl='-Wl,' 8652 lt_prog_compiler_pic='--shared' 8653 lt_prog_compiler_static='--static' 8654 ;; 8655 nagfor*) 8656 # NAG Fortran compiler 8657 lt_prog_compiler_wl='-Wl,-Wl,,' 8658 lt_prog_compiler_pic='-PIC' 8659 lt_prog_compiler_static='-Bstatic' 8660 ;; 8661 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8662 # Portland Group compilers (*not* the Pentium gcc compiler, 8663 # which looks to be a dead project) 8664 lt_prog_compiler_wl='-Wl,' 8665 lt_prog_compiler_pic='-fpic' 8666 lt_prog_compiler_static='-Bstatic' 8667 ;; 8668 ccc*) 8669 lt_prog_compiler_wl='-Wl,' 8670 # All Alpha code is PIC. 8671 lt_prog_compiler_static='-non_shared' 8672 ;; 8673 xl* | bgxl* | bgf* | mpixl*) 8674 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8675 lt_prog_compiler_wl='-Wl,' 8676 lt_prog_compiler_pic='-qpic' 8677 lt_prog_compiler_static='-qstaticlink' 8678 ;; 8679 *) 8680 case `$CC -V 2>&1 | sed 5q` in 8681 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 8682 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8683 lt_prog_compiler_pic='-KPIC' 8684 lt_prog_compiler_static='-Bstatic' 8685 lt_prog_compiler_wl='' 8686 ;; 8687 *Sun\ F* | *Sun*Fortran*) 8688 lt_prog_compiler_pic='-KPIC' 8689 lt_prog_compiler_static='-Bstatic' 8690 lt_prog_compiler_wl='-Qoption ld ' 8691 ;; 8692 *Sun\ C*) 8693 # Sun C 5.9 8694 lt_prog_compiler_pic='-KPIC' 8695 lt_prog_compiler_static='-Bstatic' 8696 lt_prog_compiler_wl='-Wl,' 8697 ;; 8698 *Intel*\ [CF]*Compiler*) 8699 lt_prog_compiler_wl='-Wl,' 8700 lt_prog_compiler_pic='-fPIC' 8701 lt_prog_compiler_static='-static' 8702 ;; 8703 *Portland\ Group*) 8704 lt_prog_compiler_wl='-Wl,' 8705 lt_prog_compiler_pic='-fpic' 8706 lt_prog_compiler_static='-Bstatic' 8707 ;; 8708 esac 8709 ;; 8710 esac 8711 ;; 8712 8713 newsos6) 8714 lt_prog_compiler_pic='-KPIC' 8715 lt_prog_compiler_static='-Bstatic' 8716 ;; 8717 8718 *nto* | *qnx*) 8719 # QNX uses GNU C++, but need to define -shared option too, otherwise 8720 # it will coredump. 8721 lt_prog_compiler_pic='-fPIC -shared' 8722 ;; 8723 8724 osf3* | osf4* | osf5*) 8725 lt_prog_compiler_wl='-Wl,' 8726 # All OSF/1 code is PIC. 8727 lt_prog_compiler_static='-non_shared' 8728 ;; 8729 8730 rdos*) 8731 lt_prog_compiler_static='-non_shared' 8732 ;; 8733 8734 solaris*) 8735 lt_prog_compiler_pic='-KPIC' 8736 lt_prog_compiler_static='-Bstatic' 8737 case $cc_basename in 8738 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 8739 lt_prog_compiler_wl='-Qoption ld ';; 8740 *) 8741 lt_prog_compiler_wl='-Wl,';; 8742 esac 8743 ;; 8744 8745 sunos4*) 8746 lt_prog_compiler_wl='-Qoption ld ' 8747 lt_prog_compiler_pic='-PIC' 8748 lt_prog_compiler_static='-Bstatic' 8749 ;; 8750 8751 sysv4 | sysv4.2uw2* | sysv4.3*) 8752 lt_prog_compiler_wl='-Wl,' 8753 lt_prog_compiler_pic='-KPIC' 8754 lt_prog_compiler_static='-Bstatic' 8755 ;; 8756 8757 sysv4*MP*) 8758 if test -d /usr/nec ;then 8759 lt_prog_compiler_pic='-Kconform_pic' 8760 lt_prog_compiler_static='-Bstatic' 8761 fi 8762 ;; 8763 8764 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8765 lt_prog_compiler_wl='-Wl,' 8766 lt_prog_compiler_pic='-KPIC' 8767 lt_prog_compiler_static='-Bstatic' 8768 ;; 8769 8770 unicos*) 8771 lt_prog_compiler_wl='-Wl,' 8772 lt_prog_compiler_can_build_shared=no 8773 ;; 8774 8775 uts4*) 8776 lt_prog_compiler_pic='-pic' 8777 lt_prog_compiler_static='-Bstatic' 8778 ;; 8779 8780 *) 8781 lt_prog_compiler_can_build_shared=no 8782 ;; 8783 esac 8784 fi 8785 8786case $host_os in 8787 # For platforms which do not support PIC, -DPIC is meaningless: 8788 *djgpp*) 8789 lt_prog_compiler_pic= 8790 ;; 8791 *) 8792 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8793 ;; 8794esac 8795 8796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 8797$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8798if ${lt_cv_prog_compiler_pic+:} false; then : 8799 $as_echo_n "(cached) " >&6 8800else 8801 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 8802fi 8803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 8804$as_echo "$lt_cv_prog_compiler_pic" >&6; } 8805lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 8806 8807# 8808# Check to make sure the PIC flag actually works. 8809# 8810if test -n "$lt_prog_compiler_pic"; then 8811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8812$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8813if ${lt_cv_prog_compiler_pic_works+:} false; then : 8814 $as_echo_n "(cached) " >&6 8815else 8816 lt_cv_prog_compiler_pic_works=no 8817 ac_outfile=conftest.$ac_objext 8818 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8819 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 8820 # Insert the option either (1) after the last *FLAGS variable, or 8821 # (2) before a word containing "conftest.", or (3) at the end. 8822 # Note that $ac_compile itself does not contain backslashes and begins 8823 # with a dollar sign (not a hyphen), so the echo should work correctly. 8824 # The option is referenced via a variable to avoid confusing sed. 8825 lt_compile=`echo "$ac_compile" | $SED \ 8826 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8827 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8828 -e 's:$: $lt_compiler_flag:'` 8829 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8830 (eval "$lt_compile" 2>conftest.err) 8831 ac_status=$? 8832 cat conftest.err >&5 8833 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8834 if (exit $ac_status) && test -s "$ac_outfile"; then 8835 # The compiler can only warn and ignore the option if not recognized 8836 # So say no if there are warnings other than the usual output. 8837 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8838 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8839 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8840 lt_cv_prog_compiler_pic_works=yes 8841 fi 8842 fi 8843 $RM conftest* 8844 8845fi 8846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 8847$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8848 8849if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 8850 case $lt_prog_compiler_pic in 8851 "" | " "*) ;; 8852 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8853 esac 8854else 8855 lt_prog_compiler_pic= 8856 lt_prog_compiler_can_build_shared=no 8857fi 8858 8859fi 8860 8861 8862 8863 8864 8865 8866 8867 8868 8869 8870 8871# 8872# Check to make sure the static flag actually works. 8873# 8874wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8876$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8877if ${lt_cv_prog_compiler_static_works+:} false; then : 8878 $as_echo_n "(cached) " >&6 8879else 8880 lt_cv_prog_compiler_static_works=no 8881 save_LDFLAGS="$LDFLAGS" 8882 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8883 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8884 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8885 # The linker can only warn and ignore the option if not recognized 8886 # So say no if there are warnings 8887 if test -s conftest.err; then 8888 # Append any errors to the config.log. 8889 cat conftest.err 1>&5 8890 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 8891 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8892 if diff conftest.exp conftest.er2 >/dev/null; then 8893 lt_cv_prog_compiler_static_works=yes 8894 fi 8895 else 8896 lt_cv_prog_compiler_static_works=yes 8897 fi 8898 fi 8899 $RM -r conftest* 8900 LDFLAGS="$save_LDFLAGS" 8901 8902fi 8903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 8904$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8905 8906if test x"$lt_cv_prog_compiler_static_works" = xyes; then 8907 : 8908else 8909 lt_prog_compiler_static= 8910fi 8911 8912 8913 8914 8915 8916 8917 8918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8919$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8920if ${lt_cv_prog_compiler_c_o+:} false; then : 8921 $as_echo_n "(cached) " >&6 8922else 8923 lt_cv_prog_compiler_c_o=no 8924 $RM -r conftest 2>/dev/null 8925 mkdir conftest 8926 cd conftest 8927 mkdir out 8928 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8929 8930 lt_compiler_flag="-o out/conftest2.$ac_objext" 8931 # Insert the option either (1) after the last *FLAGS variable, or 8932 # (2) before a word containing "conftest.", or (3) at the end. 8933 # Note that $ac_compile itself does not contain backslashes and begins 8934 # with a dollar sign (not a hyphen), so the echo should work correctly. 8935 lt_compile=`echo "$ac_compile" | $SED \ 8936 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8937 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8938 -e 's:$: $lt_compiler_flag:'` 8939 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8940 (eval "$lt_compile" 2>out/conftest.err) 8941 ac_status=$? 8942 cat out/conftest.err >&5 8943 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8944 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8945 then 8946 # The compiler can only warn and ignore the option if not recognized 8947 # So say no if there are warnings 8948 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8949 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8950 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8951 lt_cv_prog_compiler_c_o=yes 8952 fi 8953 fi 8954 chmod u+w . 2>&5 8955 $RM conftest* 8956 # SGI C++ compiler will create directory out/ii_files/ for 8957 # template instantiation 8958 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8959 $RM out/* && rmdir out 8960 cd .. 8961 $RM -r conftest 8962 $RM conftest* 8963 8964fi 8965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8966$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8967 8968 8969 8970 8971 8972 8973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8974$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8975if ${lt_cv_prog_compiler_c_o+:} false; then : 8976 $as_echo_n "(cached) " >&6 8977else 8978 lt_cv_prog_compiler_c_o=no 8979 $RM -r conftest 2>/dev/null 8980 mkdir conftest 8981 cd conftest 8982 mkdir out 8983 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8984 8985 lt_compiler_flag="-o out/conftest2.$ac_objext" 8986 # Insert the option either (1) after the last *FLAGS variable, or 8987 # (2) before a word containing "conftest.", or (3) at the end. 8988 # Note that $ac_compile itself does not contain backslashes and begins 8989 # with a dollar sign (not a hyphen), so the echo should work correctly. 8990 lt_compile=`echo "$ac_compile" | $SED \ 8991 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8992 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8993 -e 's:$: $lt_compiler_flag:'` 8994 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8995 (eval "$lt_compile" 2>out/conftest.err) 8996 ac_status=$? 8997 cat out/conftest.err >&5 8998 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8999 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9000 then 9001 # The compiler can only warn and ignore the option if not recognized 9002 # So say no if there are warnings 9003 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9004 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9005 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9006 lt_cv_prog_compiler_c_o=yes 9007 fi 9008 fi 9009 chmod u+w . 2>&5 9010 $RM conftest* 9011 # SGI C++ compiler will create directory out/ii_files/ for 9012 # template instantiation 9013 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9014 $RM out/* && rmdir out 9015 cd .. 9016 $RM -r conftest 9017 $RM conftest* 9018 9019fi 9020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9021$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9022 9023 9024 9025 9026hard_links="nottested" 9027if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 9028 # do not overwrite the value of need_locks provided by the user 9029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9030$as_echo_n "checking if we can lock with hard links... " >&6; } 9031 hard_links=yes 9032 $RM conftest* 9033 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9034 touch conftest.a 9035 ln conftest.a conftest.b 2>&5 || hard_links=no 9036 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9038$as_echo "$hard_links" >&6; } 9039 if test "$hard_links" = no; then 9040 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 9041$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 9042 need_locks=warn 9043 fi 9044else 9045 need_locks=no 9046fi 9047 9048 9049 9050 9051 9052 9053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9054$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9055 9056 runpath_var= 9057 allow_undefined_flag= 9058 always_export_symbols=no 9059 archive_cmds= 9060 archive_expsym_cmds= 9061 compiler_needs_object=no 9062 enable_shared_with_static_runtimes=no 9063 export_dynamic_flag_spec= 9064 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9065 hardcode_automatic=no 9066 hardcode_direct=no 9067 hardcode_direct_absolute=no 9068 hardcode_libdir_flag_spec= 9069 hardcode_libdir_separator= 9070 hardcode_minus_L=no 9071 hardcode_shlibpath_var=unsupported 9072 inherit_rpath=no 9073 link_all_deplibs=unknown 9074 module_cmds= 9075 module_expsym_cmds= 9076 old_archive_from_new_cmds= 9077 old_archive_from_expsyms_cmds= 9078 thread_safe_flag_spec= 9079 whole_archive_flag_spec= 9080 # include_expsyms should be a list of space-separated symbols to be *always* 9081 # included in the symbol list 9082 include_expsyms= 9083 # exclude_expsyms can be an extended regexp of symbols to exclude 9084 # it will be wrapped by ` (' and `)$', so one must not match beginning or 9085 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 9086 # as well as any symbol that contains `d'. 9087 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9088 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9089 # platforms (ab)use it in PIC code, but their linkers get confused if 9090 # the symbol is explicitly referenced. Since portable code cannot 9091 # rely on this symbol name, it's probably fine to never include it in 9092 # preloaded symbol tables. 9093 # Exclude shared library initialization/finalization symbols. 9094 extract_expsyms_cmds= 9095 9096 case $host_os in 9097 cygwin* | mingw* | pw32* | cegcc*) 9098 # FIXME: the MSVC++ port hasn't been tested in a loooong time 9099 # When not using gcc, we currently assume that we are using 9100 # Microsoft Visual C++. 9101 if test "$GCC" != yes; then 9102 with_gnu_ld=no 9103 fi 9104 ;; 9105 interix*) 9106 # we just hope/assume this is gcc and not c89 (= MSVC++) 9107 with_gnu_ld=yes 9108 ;; 9109 openbsd*) 9110 with_gnu_ld=no 9111 ;; 9112 linux* | k*bsd*-gnu | gnu*) 9113 link_all_deplibs=no 9114 ;; 9115 esac 9116 9117 ld_shlibs=yes 9118 9119 # On some targets, GNU ld is compatible enough with the native linker 9120 # that we're better off using the native interface for both. 9121 lt_use_gnu_ld_interface=no 9122 if test "$with_gnu_ld" = yes; then 9123 case $host_os in 9124 aix*) 9125 # The AIX port of GNU ld has always aspired to compatibility 9126 # with the native linker. However, as the warning in the GNU ld 9127 # block says, versions before 2.19.5* couldn't really create working 9128 # shared libraries, regardless of the interface used. 9129 case `$LD -v 2>&1` in 9130 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9131 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9132 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9133 *) 9134 lt_use_gnu_ld_interface=yes 9135 ;; 9136 esac 9137 ;; 9138 *) 9139 lt_use_gnu_ld_interface=yes 9140 ;; 9141 esac 9142 fi 9143 9144 if test "$lt_use_gnu_ld_interface" = yes; then 9145 # If archive_cmds runs LD, not CC, wlarc should be empty 9146 wlarc='${wl}' 9147 9148 # Set some defaults for GNU ld with shared library support. These 9149 # are reset later if shared libraries are not supported. Putting them 9150 # here allows them to be overridden if necessary. 9151 runpath_var=LD_RUN_PATH 9152 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9153 export_dynamic_flag_spec='${wl}--export-dynamic' 9154 # ancient GNU ld didn't support --whole-archive et. al. 9155 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9156 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 9157 else 9158 whole_archive_flag_spec= 9159 fi 9160 supports_anon_versioning=no 9161 case `$LD -v 2>&1` in 9162 *GNU\ gold*) supports_anon_versioning=yes ;; 9163 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9164 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9165 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9166 *\ 2.11.*) ;; # other 2.11 versions 9167 *) supports_anon_versioning=yes ;; 9168 esac 9169 9170 # See if GNU ld supports shared libraries. 9171 case $host_os in 9172 aix[3-9]*) 9173 # On AIX/PPC, the GNU linker is very broken 9174 if test "$host_cpu" != ia64; then 9175 ld_shlibs=no 9176 cat <<_LT_EOF 1>&2 9177 9178*** Warning: the GNU linker, at least up to release 2.19, is reported 9179*** to be unable to reliably create shared libraries on AIX. 9180*** Therefore, libtool is disabling shared libraries support. If you 9181*** really care for shared libraries, you may want to install binutils 9182*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9183*** You will then need to restart the configuration process. 9184 9185_LT_EOF 9186 fi 9187 ;; 9188 9189 amigaos*) 9190 case $host_cpu in 9191 powerpc) 9192 # see comment about AmigaOS4 .so support 9193 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9194 archive_expsym_cmds='' 9195 ;; 9196 m68k) 9197 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)' 9198 hardcode_libdir_flag_spec='-L$libdir' 9199 hardcode_minus_L=yes 9200 ;; 9201 esac 9202 ;; 9203 9204 beos*) 9205 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9206 allow_undefined_flag=unsupported 9207 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9208 # support --undefined. This deserves some investigation. FIXME 9209 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9210 else 9211 ld_shlibs=no 9212 fi 9213 ;; 9214 9215 cygwin* | mingw* | pw32* | cegcc*) 9216 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9217 # as there is no search path for DLLs. 9218 hardcode_libdir_flag_spec='-L$libdir' 9219 export_dynamic_flag_spec='${wl}--export-all-symbols' 9220 allow_undefined_flag=unsupported 9221 always_export_symbols=no 9222 enable_shared_with_static_runtimes=yes 9223 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' 9224 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 9225 9226 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9227 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9228 # If the export-symbols file already is a .def file (1st line 9229 # is EXPORTS), use it as is; otherwise, prepend... 9230 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9231 cp $export_symbols $output_objdir/$soname.def; 9232 else 9233 echo EXPORTS > $output_objdir/$soname.def; 9234 cat $export_symbols >> $output_objdir/$soname.def; 9235 fi~ 9236 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9237 else 9238 ld_shlibs=no 9239 fi 9240 ;; 9241 9242 haiku*) 9243 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9244 link_all_deplibs=yes 9245 ;; 9246 9247 interix[3-9]*) 9248 hardcode_direct=no 9249 hardcode_shlibpath_var=no 9250 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9251 export_dynamic_flag_spec='${wl}-E' 9252 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9253 # Instead, shared libraries are loaded at an image base (0x10000000 by 9254 # default) and relocated if they conflict, which is a slow very memory 9255 # consuming and fragmenting process. To avoid this, we pick a random, 9256 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9257 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9258 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9259 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' 9260 ;; 9261 9262 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9263 tmp_diet=no 9264 if test "$host_os" = linux-dietlibc; then 9265 case $cc_basename in 9266 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9267 esac 9268 fi 9269 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9270 && test "$tmp_diet" = no 9271 then 9272 tmp_addflag=' $pic_flag' 9273 tmp_sharedflag='-shared' 9274 case $cc_basename,$host_cpu in 9275 pgcc*) # Portland Group C compiler 9276 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' 9277 tmp_addflag=' $pic_flag' 9278 ;; 9279 pgf77* | pgf90* | pgf95* | pgfortran*) 9280 # Portland Group f77 and f90 compilers 9281 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' 9282 tmp_addflag=' $pic_flag -Mnomain' ;; 9283 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9284 tmp_addflag=' -i_dynamic' ;; 9285 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9286 tmp_addflag=' -i_dynamic -nofor_main' ;; 9287 ifc* | ifort*) # Intel Fortran compiler 9288 tmp_addflag=' -nofor_main' ;; 9289 lf95*) # Lahey Fortran 8.1 9290 whole_archive_flag_spec= 9291 tmp_sharedflag='--shared' ;; 9292 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9293 tmp_sharedflag='-qmkshrobj' 9294 tmp_addflag= ;; 9295 nvcc*) # Cuda Compiler Driver 2.2 9296 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' 9297 compiler_needs_object=yes 9298 ;; 9299 esac 9300 case `$CC -V 2>&1 | sed 5q` in 9301 *Sun\ C*) # Sun C 5.9 9302 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' 9303 compiler_needs_object=yes 9304 tmp_sharedflag='-G' ;; 9305 *Sun\ F*) # Sun Fortran 8.3 9306 tmp_sharedflag='-G' ;; 9307 esac 9308 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9309 9310 if test "x$supports_anon_versioning" = xyes; then 9311 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9312 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9313 echo "local: *; };" >> $output_objdir/$libname.ver~ 9314 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 9315 fi 9316 9317 case $cc_basename in 9318 xlf* | bgf* | bgxlf* | mpixlf*) 9319 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9320 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9321 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9322 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 9323 if test "x$supports_anon_versioning" = xyes; then 9324 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9325 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9326 echo "local: *; };" >> $output_objdir/$libname.ver~ 9327 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9328 fi 9329 ;; 9330 esac 9331 else 9332 ld_shlibs=no 9333 fi 9334 ;; 9335 9336 netbsd* | netbsdelf*-gnu) 9337 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9338 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9339 wlarc= 9340 else 9341 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9342 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9343 fi 9344 ;; 9345 9346 solaris*) 9347 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9348 ld_shlibs=no 9349 cat <<_LT_EOF 1>&2 9350 9351*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9352*** create shared libraries on Solaris systems. Therefore, libtool 9353*** is disabling shared libraries support. We urge you to upgrade GNU 9354*** binutils to release 2.9.1 or newer. Another option is to modify 9355*** your PATH or compiler configuration so that the native linker is 9356*** used, and then restart. 9357 9358_LT_EOF 9359 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9360 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9361 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9362 else 9363 ld_shlibs=no 9364 fi 9365 ;; 9366 9367 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9368 case `$LD -v 2>&1` in 9369 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9370 ld_shlibs=no 9371 cat <<_LT_EOF 1>&2 9372 9373*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 9374*** reliably create shared libraries on SCO systems. Therefore, libtool 9375*** is disabling shared libraries support. We urge you to upgrade GNU 9376*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9377*** your PATH or compiler configuration so that the native linker is 9378*** used, and then restart. 9379 9380_LT_EOF 9381 ;; 9382 *) 9383 # For security reasons, it is highly recommended that you always 9384 # use absolute paths for naming shared libraries, and exclude the 9385 # DT_RUNPATH tag from executables and libraries. But doing so 9386 # requires that you compile everything twice, which is a pain. 9387 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9388 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9389 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9390 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9391 else 9392 ld_shlibs=no 9393 fi 9394 ;; 9395 esac 9396 ;; 9397 9398 sunos4*) 9399 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9400 wlarc= 9401 hardcode_direct=yes 9402 hardcode_shlibpath_var=no 9403 ;; 9404 9405 *) 9406 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9407 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9408 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9409 else 9410 ld_shlibs=no 9411 fi 9412 ;; 9413 esac 9414 9415 if test "$ld_shlibs" = no; then 9416 runpath_var= 9417 hardcode_libdir_flag_spec= 9418 export_dynamic_flag_spec= 9419 whole_archive_flag_spec= 9420 fi 9421 else 9422 # PORTME fill in a description of your system's linker (not GNU ld) 9423 case $host_os in 9424 aix3*) 9425 allow_undefined_flag=unsupported 9426 always_export_symbols=yes 9427 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' 9428 # Note: this linker hardcodes the directories in LIBPATH if there 9429 # are no directories specified by -L. 9430 hardcode_minus_L=yes 9431 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 9432 # Neither direct hardcoding nor static linking is supported with a 9433 # broken collect2. 9434 hardcode_direct=unsupported 9435 fi 9436 ;; 9437 9438 aix[4-9]*) 9439 if test "$host_cpu" = ia64; then 9440 # On IA64, the linker does run time linking by default, so we don't 9441 # have to do anything special. 9442 aix_use_runtimelinking=no 9443 exp_sym_flag='-Bexport' 9444 no_entry_flag="" 9445 else 9446 # If we're using GNU nm, then we don't want the "-C" option. 9447 # -C means demangle to AIX nm, but means don't demangle with GNU nm 9448 # Also, AIX nm treats weak defined symbols like other global 9449 # defined symbols, whereas GNU nm marks them as "W". 9450 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9451 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' 9452 else 9453 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' 9454 fi 9455 aix_use_runtimelinking=no 9456 9457 # Test if we are trying to use run time linking or normal 9458 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9459 # need to do runtime linking. 9460 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9461 for ld_flag in $LDFLAGS; do 9462 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 9463 aix_use_runtimelinking=yes 9464 break 9465 fi 9466 done 9467 ;; 9468 esac 9469 9470 exp_sym_flag='-bexport' 9471 no_entry_flag='-bnoentry' 9472 fi 9473 9474 # When large executables or shared objects are built, AIX ld can 9475 # have problems creating the table of contents. If linking a library 9476 # or program results in "error TOC overflow" add -mminimal-toc to 9477 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9478 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9479 9480 archive_cmds='' 9481 hardcode_direct=yes 9482 hardcode_direct_absolute=yes 9483 hardcode_libdir_separator=':' 9484 link_all_deplibs=yes 9485 file_list_spec='${wl}-f,' 9486 9487 if test "$GCC" = yes; then 9488 case $host_os in aix4.[012]|aix4.[012].*) 9489 # We only want to do this on AIX 4.2 and lower, the check 9490 # below for broken collect2 doesn't work under 4.3+ 9491 collect2name=`${CC} -print-prog-name=collect2` 9492 if test -f "$collect2name" && 9493 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9494 then 9495 # We have reworked collect2 9496 : 9497 else 9498 # We have old collect2 9499 hardcode_direct=unsupported 9500 # It fails to find uninstalled libraries when the uninstalled 9501 # path is not listed in the libpath. Setting hardcode_minus_L 9502 # to unsupported forces relinking 9503 hardcode_minus_L=yes 9504 hardcode_libdir_flag_spec='-L$libdir' 9505 hardcode_libdir_separator= 9506 fi 9507 ;; 9508 esac 9509 shared_flag='-shared' 9510 if test "$aix_use_runtimelinking" = yes; then 9511 shared_flag="$shared_flag "'${wl}-G' 9512 fi 9513 link_all_deplibs=no 9514 else 9515 # not using gcc 9516 if test "$host_cpu" = ia64; then 9517 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9518 # chokes on -Wl,-G. The following line is correct: 9519 shared_flag='-G' 9520 else 9521 if test "$aix_use_runtimelinking" = yes; then 9522 shared_flag='${wl}-G' 9523 else 9524 shared_flag='${wl}-bM:SRE' 9525 fi 9526 fi 9527 fi 9528 9529 export_dynamic_flag_spec='${wl}-bexpall' 9530 # It seems that -bexpall does not export symbols beginning with 9531 # underscore (_), so it is better to generate a list of symbols to export. 9532 always_export_symbols=yes 9533 if test "$aix_use_runtimelinking" = yes; then 9534 # Warning - without using the other runtime loading flags (-brtl), 9535 # -berok will link without error, but may produce a broken library. 9536 allow_undefined_flag='-berok' 9537 # Determine the default libpath from the value encoded in an 9538 # empty executable. 9539 if test "${lt_cv_aix_libpath+set}" = set; then 9540 aix_libpath=$lt_cv_aix_libpath 9541else 9542 if ${lt_cv_aix_libpath_+:} false; then : 9543 $as_echo_n "(cached) " >&6 9544else 9545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9546/* end confdefs.h. */ 9547 9548int 9549main () 9550{ 9551 9552 ; 9553 return 0; 9554} 9555_ACEOF 9556if ac_fn_c_try_link "$LINENO"; then : 9557 9558 lt_aix_libpath_sed=' 9559 /Import File Strings/,/^$/ { 9560 /^0/ { 9561 s/^0 *\([^ ]*\) *$/\1/ 9562 p 9563 } 9564 }' 9565 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9566 # Check for a 64-bit object if we didn't find anything. 9567 if test -z "$lt_cv_aix_libpath_"; then 9568 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9569 fi 9570fi 9571rm -f core conftest.err conftest.$ac_objext \ 9572 conftest$ac_exeext conftest.$ac_ext 9573 if test -z "$lt_cv_aix_libpath_"; then 9574 lt_cv_aix_libpath_="/usr/lib:/lib" 9575 fi 9576 9577fi 9578 9579 aix_libpath=$lt_cv_aix_libpath_ 9580fi 9581 9582 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9583 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" 9584 else 9585 if test "$host_cpu" = ia64; then 9586 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 9587 allow_undefined_flag="-z nodefs" 9588 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" 9589 else 9590 # Determine the default libpath from the value encoded in an 9591 # empty executable. 9592 if test "${lt_cv_aix_libpath+set}" = set; then 9593 aix_libpath=$lt_cv_aix_libpath 9594else 9595 if ${lt_cv_aix_libpath_+:} false; then : 9596 $as_echo_n "(cached) " >&6 9597else 9598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9599/* end confdefs.h. */ 9600 9601int 9602main () 9603{ 9604 9605 ; 9606 return 0; 9607} 9608_ACEOF 9609if ac_fn_c_try_link "$LINENO"; then : 9610 9611 lt_aix_libpath_sed=' 9612 /Import File Strings/,/^$/ { 9613 /^0/ { 9614 s/^0 *\([^ ]*\) *$/\1/ 9615 p 9616 } 9617 }' 9618 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9619 # Check for a 64-bit object if we didn't find anything. 9620 if test -z "$lt_cv_aix_libpath_"; then 9621 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9622 fi 9623fi 9624rm -f core conftest.err conftest.$ac_objext \ 9625 conftest$ac_exeext conftest.$ac_ext 9626 if test -z "$lt_cv_aix_libpath_"; then 9627 lt_cv_aix_libpath_="/usr/lib:/lib" 9628 fi 9629 9630fi 9631 9632 aix_libpath=$lt_cv_aix_libpath_ 9633fi 9634 9635 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9636 # Warning - without using the other run time loading flags, 9637 # -berok will link without error, but may produce a broken library. 9638 no_undefined_flag=' ${wl}-bernotok' 9639 allow_undefined_flag=' ${wl}-berok' 9640 if test "$with_gnu_ld" = yes; then 9641 # We only use this code for GNU lds that support --whole-archive. 9642 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 9643 else 9644 # Exported symbols can be pulled into shared objects from archives 9645 whole_archive_flag_spec='$convenience' 9646 fi 9647 archive_cmds_need_lc=yes 9648 # This is similar to how AIX traditionally builds its shared libraries. 9649 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' 9650 fi 9651 fi 9652 ;; 9653 9654 amigaos*) 9655 case $host_cpu in 9656 powerpc) 9657 # see comment about AmigaOS4 .so support 9658 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9659 archive_expsym_cmds='' 9660 ;; 9661 m68k) 9662 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)' 9663 hardcode_libdir_flag_spec='-L$libdir' 9664 hardcode_minus_L=yes 9665 ;; 9666 esac 9667 ;; 9668 9669 bsdi[45]*) 9670 export_dynamic_flag_spec=-rdynamic 9671 ;; 9672 9673 cygwin* | mingw* | pw32* | cegcc*) 9674 # When not using gcc, we currently assume that we are using 9675 # Microsoft Visual C++. 9676 # hardcode_libdir_flag_spec is actually meaningless, as there is 9677 # no search path for DLLs. 9678 case $cc_basename in 9679 cl*) 9680 # Native MSVC 9681 hardcode_libdir_flag_spec=' ' 9682 allow_undefined_flag=unsupported 9683 always_export_symbols=yes 9684 file_list_spec='@' 9685 # Tell ltmain to make .lib files, not .a files. 9686 libext=lib 9687 # Tell ltmain to make .dll files, not .so files. 9688 shrext_cmds=".dll" 9689 # FIXME: Setting linknames here is a bad hack. 9690 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 9691 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9692 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 9693 else 9694 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 9695 fi~ 9696 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 9697 linknames=' 9698 # The linker will not automatically build a static lib if we build a DLL. 9699 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 9700 enable_shared_with_static_runtimes=yes 9701 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 9702 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 9703 # Don't use ranlib 9704 old_postinstall_cmds='chmod 644 $oldlib' 9705 postlink_cmds='lt_outputfile="@OUTPUT@"~ 9706 lt_tool_outputfile="@TOOL_OUTPUT@"~ 9707 case $lt_outputfile in 9708 *.exe|*.EXE) ;; 9709 *) 9710 lt_outputfile="$lt_outputfile.exe" 9711 lt_tool_outputfile="$lt_tool_outputfile.exe" 9712 ;; 9713 esac~ 9714 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 9715 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 9716 $RM "$lt_outputfile.manifest"; 9717 fi' 9718 ;; 9719 *) 9720 # Assume MSVC wrapper 9721 hardcode_libdir_flag_spec=' ' 9722 allow_undefined_flag=unsupported 9723 # Tell ltmain to make .lib files, not .a files. 9724 libext=lib 9725 # Tell ltmain to make .dll files, not .so files. 9726 shrext_cmds=".dll" 9727 # FIXME: Setting linknames here is a bad hack. 9728 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 9729 # The linker will automatically build a .lib file if we build a DLL. 9730 old_archive_from_new_cmds='true' 9731 # FIXME: Should let the user specify the lib program. 9732 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9733 enable_shared_with_static_runtimes=yes 9734 ;; 9735 esac 9736 ;; 9737 9738 darwin* | rhapsody*) 9739 9740 9741 archive_cmds_need_lc=no 9742 hardcode_direct=no 9743 hardcode_automatic=yes 9744 hardcode_shlibpath_var=unsupported 9745 if test "$lt_cv_ld_force_load" = "yes"; then 9746 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\"`' 9747 9748 else 9749 whole_archive_flag_spec='' 9750 fi 9751 link_all_deplibs=yes 9752 allow_undefined_flag="$_lt_dar_allow_undefined" 9753 case $cc_basename in 9754 ifort*) _lt_dar_can_shared=yes ;; 9755 *) _lt_dar_can_shared=$GCC ;; 9756 esac 9757 if test "$_lt_dar_can_shared" = "yes"; then 9758 output_verbose_link_cmd=func_echo_all 9759 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 9760 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 9761 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}" 9762 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}" 9763 9764 else 9765 ld_shlibs=no 9766 fi 9767 9768 ;; 9769 9770 dgux*) 9771 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9772 hardcode_libdir_flag_spec='-L$libdir' 9773 hardcode_shlibpath_var=no 9774 ;; 9775 9776 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9777 # support. Future versions do this automatically, but an explicit c++rt0.o 9778 # does not break anything, and helps significantly (at the cost of a little 9779 # extra space). 9780 freebsd2.2*) 9781 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9782 hardcode_libdir_flag_spec='-R$libdir' 9783 hardcode_direct=yes 9784 hardcode_shlibpath_var=no 9785 ;; 9786 9787 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9788 freebsd2.*) 9789 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9790 hardcode_direct=yes 9791 hardcode_minus_L=yes 9792 hardcode_shlibpath_var=no 9793 ;; 9794 9795 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9796 freebsd* | dragonfly*) 9797 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9798 hardcode_libdir_flag_spec='-R$libdir' 9799 hardcode_direct=yes 9800 hardcode_shlibpath_var=no 9801 ;; 9802 9803 hpux9*) 9804 if test "$GCC" = yes; then 9805 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' 9806 else 9807 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' 9808 fi 9809 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9810 hardcode_libdir_separator=: 9811 hardcode_direct=yes 9812 9813 # hardcode_minus_L: Not really in the search PATH, 9814 # but as the default location of the library. 9815 hardcode_minus_L=yes 9816 export_dynamic_flag_spec='${wl}-E' 9817 ;; 9818 9819 hpux10*) 9820 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9821 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9822 else 9823 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9824 fi 9825 if test "$with_gnu_ld" = no; then 9826 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9827 hardcode_libdir_separator=: 9828 hardcode_direct=yes 9829 hardcode_direct_absolute=yes 9830 export_dynamic_flag_spec='${wl}-E' 9831 # hardcode_minus_L: Not really in the search PATH, 9832 # but as the default location of the library. 9833 hardcode_minus_L=yes 9834 fi 9835 ;; 9836 9837 hpux11*) 9838 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9839 case $host_cpu in 9840 hppa*64*) 9841 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9842 ;; 9843 ia64*) 9844 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9845 ;; 9846 *) 9847 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9848 ;; 9849 esac 9850 else 9851 case $host_cpu in 9852 hppa*64*) 9853 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9854 ;; 9855 ia64*) 9856 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9857 ;; 9858 *) 9859 9860 # Older versions of the 11.00 compiler do not understand -b yet 9861 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 9862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 9863$as_echo_n "checking if $CC understands -b... " >&6; } 9864if ${lt_cv_prog_compiler__b+:} false; then : 9865 $as_echo_n "(cached) " >&6 9866else 9867 lt_cv_prog_compiler__b=no 9868 save_LDFLAGS="$LDFLAGS" 9869 LDFLAGS="$LDFLAGS -b" 9870 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9871 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9872 # The linker can only warn and ignore the option if not recognized 9873 # So say no if there are warnings 9874 if test -s conftest.err; then 9875 # Append any errors to the config.log. 9876 cat conftest.err 1>&5 9877 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9878 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9879 if diff conftest.exp conftest.er2 >/dev/null; then 9880 lt_cv_prog_compiler__b=yes 9881 fi 9882 else 9883 lt_cv_prog_compiler__b=yes 9884 fi 9885 fi 9886 $RM -r conftest* 9887 LDFLAGS="$save_LDFLAGS" 9888 9889fi 9890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 9891$as_echo "$lt_cv_prog_compiler__b" >&6; } 9892 9893if test x"$lt_cv_prog_compiler__b" = xyes; then 9894 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9895else 9896 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9897fi 9898 9899 ;; 9900 esac 9901 fi 9902 if test "$with_gnu_ld" = no; then 9903 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9904 hardcode_libdir_separator=: 9905 9906 case $host_cpu in 9907 hppa*64*|ia64*) 9908 hardcode_direct=no 9909 hardcode_shlibpath_var=no 9910 ;; 9911 *) 9912 hardcode_direct=yes 9913 hardcode_direct_absolute=yes 9914 export_dynamic_flag_spec='${wl}-E' 9915 9916 # hardcode_minus_L: Not really in the search PATH, 9917 # but as the default location of the library. 9918 hardcode_minus_L=yes 9919 ;; 9920 esac 9921 fi 9922 ;; 9923 9924 irix5* | irix6* | nonstopux*) 9925 if test "$GCC" = yes; then 9926 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' 9927 # Try to use the -exported_symbol ld option, if it does not 9928 # work, assume that -exports_file does not work either and 9929 # implicitly export all symbols. 9930 # This should be the same for all languages, so no per-tag cache variable. 9931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 9932$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 9933if ${lt_cv_irix_exported_symbol+:} false; then : 9934 $as_echo_n "(cached) " >&6 9935else 9936 save_LDFLAGS="$LDFLAGS" 9937 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 9938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9939/* end confdefs.h. */ 9940int foo (void) { return 0; } 9941_ACEOF 9942if ac_fn_c_try_link "$LINENO"; then : 9943 lt_cv_irix_exported_symbol=yes 9944else 9945 lt_cv_irix_exported_symbol=no 9946fi 9947rm -f core conftest.err conftest.$ac_objext \ 9948 conftest$ac_exeext conftest.$ac_ext 9949 LDFLAGS="$save_LDFLAGS" 9950fi 9951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 9952$as_echo "$lt_cv_irix_exported_symbol" >&6; } 9953 if test "$lt_cv_irix_exported_symbol" = yes; then 9954 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' 9955 fi 9956 else 9957 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' 9958 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' 9959 fi 9960 archive_cmds_need_lc='no' 9961 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9962 hardcode_libdir_separator=: 9963 inherit_rpath=yes 9964 link_all_deplibs=yes 9965 ;; 9966 9967 netbsd* | netbsdelf*-gnu) 9968 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9969 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9970 else 9971 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9972 fi 9973 hardcode_libdir_flag_spec='-R$libdir' 9974 hardcode_direct=yes 9975 hardcode_shlibpath_var=no 9976 ;; 9977 9978 newsos6) 9979 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9980 hardcode_direct=yes 9981 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9982 hardcode_libdir_separator=: 9983 hardcode_shlibpath_var=no 9984 ;; 9985 9986 *nto* | *qnx*) 9987 ;; 9988 9989 openbsd*) 9990 if test -f /usr/libexec/ld.so; then 9991 hardcode_direct=yes 9992 hardcode_shlibpath_var=no 9993 hardcode_direct_absolute=yes 9994 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9995 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9996 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 9997 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9998 export_dynamic_flag_spec='${wl}-E' 9999 else 10000 case $host_os in 10001 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 10002 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10003 hardcode_libdir_flag_spec='-R$libdir' 10004 ;; 10005 *) 10006 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10007 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 10008 ;; 10009 esac 10010 fi 10011 else 10012 ld_shlibs=no 10013 fi 10014 ;; 10015 10016 os2*) 10017 hardcode_libdir_flag_spec='-L$libdir' 10018 hardcode_minus_L=yes 10019 allow_undefined_flag=unsupported 10020 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' 10021 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 10022 ;; 10023 10024 osf3*) 10025 if test "$GCC" = yes; then 10026 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 10027 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' 10028 else 10029 allow_undefined_flag=' -expect_unresolved \*' 10030 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' 10031 fi 10032 archive_cmds_need_lc='no' 10033 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10034 hardcode_libdir_separator=: 10035 ;; 10036 10037 osf4* | osf5*) # as osf3* with the addition of -msym flag 10038 if test "$GCC" = yes; then 10039 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 10040 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' 10041 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10042 else 10043 allow_undefined_flag=' -expect_unresolved \*' 10044 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' 10045 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~ 10046 $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' 10047 10048 # Both c and cxx compiler support -rpath directly 10049 hardcode_libdir_flag_spec='-rpath $libdir' 10050 fi 10051 archive_cmds_need_lc='no' 10052 hardcode_libdir_separator=: 10053 ;; 10054 10055 solaris*) 10056 no_undefined_flag=' -z defs' 10057 if test "$GCC" = yes; then 10058 wlarc='${wl}' 10059 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 10060 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10061 $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' 10062 else 10063 case `$CC -V 2>&1` in 10064 *"Compilers 5.0"*) 10065 wlarc='' 10066 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 10067 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10068 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10069 ;; 10070 *) 10071 wlarc='${wl}' 10072 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10073 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10074 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10075 ;; 10076 esac 10077 fi 10078 hardcode_libdir_flag_spec='-R$libdir' 10079 hardcode_shlibpath_var=no 10080 case $host_os in 10081 solaris2.[0-5] | solaris2.[0-5].*) ;; 10082 *) 10083 # The compiler driver will combine and reorder linker options, 10084 # but understands `-z linker_flag'. GCC discards it without `$wl', 10085 # but is careful enough not to reorder. 10086 # Supported since Solaris 2.6 (maybe 2.5.1?) 10087 if test "$GCC" = yes; then 10088 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 10089 else 10090 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10091 fi 10092 ;; 10093 esac 10094 link_all_deplibs=yes 10095 ;; 10096 10097 sunos4*) 10098 if test "x$host_vendor" = xsequent; then 10099 # Use $CC to link under sequent, because it throws in some extra .o 10100 # files that make .init and .fini sections work. 10101 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10102 else 10103 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10104 fi 10105 hardcode_libdir_flag_spec='-L$libdir' 10106 hardcode_direct=yes 10107 hardcode_minus_L=yes 10108 hardcode_shlibpath_var=no 10109 ;; 10110 10111 sysv4) 10112 case $host_vendor in 10113 sni) 10114 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10115 hardcode_direct=yes # is this really true??? 10116 ;; 10117 siemens) 10118 ## LD is ld it makes a PLAMLIB 10119 ## CC just makes a GrossModule. 10120 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10121 reload_cmds='$CC -r -o $output$reload_objs' 10122 hardcode_direct=no 10123 ;; 10124 motorola) 10125 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10126 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10127 ;; 10128 esac 10129 runpath_var='LD_RUN_PATH' 10130 hardcode_shlibpath_var=no 10131 ;; 10132 10133 sysv4.3*) 10134 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10135 hardcode_shlibpath_var=no 10136 export_dynamic_flag_spec='-Bexport' 10137 ;; 10138 10139 sysv4*MP*) 10140 if test -d /usr/nec; then 10141 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10142 hardcode_shlibpath_var=no 10143 runpath_var=LD_RUN_PATH 10144 hardcode_runpath_var=yes 10145 ld_shlibs=yes 10146 fi 10147 ;; 10148 10149 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10150 no_undefined_flag='${wl}-z,text' 10151 archive_cmds_need_lc=no 10152 hardcode_shlibpath_var=no 10153 runpath_var='LD_RUN_PATH' 10154 10155 if test "$GCC" = yes; then 10156 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10157 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10158 else 10159 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10160 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10161 fi 10162 ;; 10163 10164 sysv5* | sco3.2v5* | sco5v6*) 10165 # Note: We can NOT use -z defs as we might desire, because we do not 10166 # link with -lc, and that would cause any symbols used from libc to 10167 # always be unresolved, which means just about no library would 10168 # ever link correctly. If we're not using GNU ld we use -z text 10169 # though, which does catch some bad symbols but isn't as heavy-handed 10170 # as -z defs. 10171 no_undefined_flag='${wl}-z,text' 10172 allow_undefined_flag='${wl}-z,nodefs' 10173 archive_cmds_need_lc=no 10174 hardcode_shlibpath_var=no 10175 hardcode_libdir_flag_spec='${wl}-R,$libdir' 10176 hardcode_libdir_separator=':' 10177 link_all_deplibs=yes 10178 export_dynamic_flag_spec='${wl}-Bexport' 10179 runpath_var='LD_RUN_PATH' 10180 10181 if test "$GCC" = yes; then 10182 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10183 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10184 else 10185 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10186 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10187 fi 10188 ;; 10189 10190 uts4*) 10191 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10192 hardcode_libdir_flag_spec='-L$libdir' 10193 hardcode_shlibpath_var=no 10194 ;; 10195 10196 *) 10197 ld_shlibs=no 10198 ;; 10199 esac 10200 10201 if test x$host_vendor = xsni; then 10202 case $host in 10203 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10204 export_dynamic_flag_spec='${wl}-Blargedynsym' 10205 ;; 10206 esac 10207 fi 10208 fi 10209 10210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10211$as_echo "$ld_shlibs" >&6; } 10212test "$ld_shlibs" = no && can_build_shared=no 10213 10214with_gnu_ld=$with_gnu_ld 10215 10216 10217 10218 10219 10220 10221 10222 10223 10224 10225 10226 10227 10228 10229 10230# 10231# Do we need to explicitly link libc? 10232# 10233case "x$archive_cmds_need_lc" in 10234x|xyes) 10235 # Assume -lc should be added 10236 archive_cmds_need_lc=yes 10237 10238 if test "$enable_shared" = yes && test "$GCC" = yes; then 10239 case $archive_cmds in 10240 *'~'*) 10241 # FIXME: we may have to deal with multi-command sequences. 10242 ;; 10243 '$CC '*) 10244 # Test whether the compiler implicitly links with -lc since on some 10245 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10246 # to ld, don't add -lc before -lgcc. 10247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10248$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 10249if ${lt_cv_archive_cmds_need_lc+:} false; then : 10250 $as_echo_n "(cached) " >&6 10251else 10252 $RM conftest* 10253 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10254 10255 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10256 (eval $ac_compile) 2>&5 10257 ac_status=$? 10258 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10259 test $ac_status = 0; } 2>conftest.err; then 10260 soname=conftest 10261 lib=conftest 10262 libobjs=conftest.$ac_objext 10263 deplibs= 10264 wl=$lt_prog_compiler_wl 10265 pic_flag=$lt_prog_compiler_pic 10266 compiler_flags=-v 10267 linker_flags=-v 10268 verstring= 10269 output_objdir=. 10270 libname=conftest 10271 lt_save_allow_undefined_flag=$allow_undefined_flag 10272 allow_undefined_flag= 10273 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10274 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10275 ac_status=$? 10276 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10277 test $ac_status = 0; } 10278 then 10279 lt_cv_archive_cmds_need_lc=no 10280 else 10281 lt_cv_archive_cmds_need_lc=yes 10282 fi 10283 allow_undefined_flag=$lt_save_allow_undefined_flag 10284 else 10285 cat conftest.err 1>&5 10286 fi 10287 $RM conftest* 10288 10289fi 10290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 10291$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 10292 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 10293 ;; 10294 esac 10295 fi 10296 ;; 10297esac 10298 10299 10300 10301 10302 10303 10304 10305 10306 10307 10308 10309 10310 10311 10312 10313 10314 10315 10316 10317 10318 10319 10320 10321 10322 10323 10324 10325 10326 10327 10328 10329 10330 10331 10332 10333 10334 10335 10336 10337 10338 10339 10340 10341 10342 10343 10344 10345 10346 10347 10348 10349 10350 10351 10352 10353 10354 10355 10356 10357 10358 10359 10360 10361 10362 10363 10364 10365 10366 10367 10368 10369 10370 10371 10372 10373 10374 10375 10376 10377 10378 10379 10380 10381 10382 10383 10384 10385 10386 10387 10388 10389 10390 10391 10392 10393 10394 10395 10396 10397 10398 10399 10400 10401 10402 10403 10404 10405 10406 10407 10408 10409 10410 10411 10412 10413 10414 10415 10416 10417 10418 10419 10420 10421 10422 10423 10424 10425 10426 10427 10428 10429 10430 10431 10432 10433 10434 10435 10436 10437 10438 10439 10440 10441 10442 10443 10444 10445 10446 10447 10448 10449 10450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 10451$as_echo_n "checking dynamic linker characteristics... " >&6; } 10452 10453if test "$GCC" = yes; then 10454 case $host_os in 10455 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 10456 *) lt_awk_arg="/^libraries:/" ;; 10457 esac 10458 case $host_os in 10459 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 10460 *) lt_sed_strip_eq="s,=/,/,g" ;; 10461 esac 10462 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 10463 case $lt_search_path_spec in 10464 *\;*) 10465 # if the path contains ";" then we assume it to be the separator 10466 # otherwise default to the standard path separator (i.e. ":") - it is 10467 # assumed that no part of a normal pathname contains ";" but that should 10468 # okay in the real world where ";" in dirpaths is itself problematic. 10469 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 10470 ;; 10471 *) 10472 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 10473 ;; 10474 esac 10475 # Ok, now we have the path, separated by spaces, we can step through it 10476 # and add multilib dir if necessary. 10477 lt_tmp_lt_search_path_spec= 10478 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10479 for lt_sys_path in $lt_search_path_spec; do 10480 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 10481 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 10482 else 10483 test -d "$lt_sys_path" && \ 10484 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10485 fi 10486 done 10487 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 10488BEGIN {RS=" "; FS="/|\n";} { 10489 lt_foo=""; 10490 lt_count=0; 10491 for (lt_i = NF; lt_i > 0; lt_i--) { 10492 if ($lt_i != "" && $lt_i != ".") { 10493 if ($lt_i == "..") { 10494 lt_count++; 10495 } else { 10496 if (lt_count == 0) { 10497 lt_foo="/" $lt_i lt_foo; 10498 } else { 10499 lt_count--; 10500 } 10501 } 10502 } 10503 } 10504 if (lt_foo != "") { lt_freq[lt_foo]++; } 10505 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10506}'` 10507 # AWK program above erroneously prepends '/' to C:/dos/paths 10508 # for these hosts. 10509 case $host_os in 10510 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 10511 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 10512 esac 10513 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 10514else 10515 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10516fi 10517library_names_spec= 10518libname_spec='lib$name' 10519soname_spec= 10520shrext_cmds=".so" 10521postinstall_cmds= 10522postuninstall_cmds= 10523finish_cmds= 10524finish_eval= 10525shlibpath_var= 10526shlibpath_overrides_runpath=unknown 10527version_type=none 10528dynamic_linker="$host_os ld.so" 10529sys_lib_dlsearch_path_spec="/lib /usr/lib" 10530need_lib_prefix=unknown 10531hardcode_into_libs=no 10532 10533# when you set need_version to no, make sure it does not cause -set_version 10534# flags to be left without arguments 10535need_version=unknown 10536 10537case $host_os in 10538aix3*) 10539 version_type=linux # correct to gnu/linux during the next big refactor 10540 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 10541 shlibpath_var=LIBPATH 10542 10543 # AIX 3 has no versioning support, so we append a major version to the name. 10544 soname_spec='${libname}${release}${shared_ext}$major' 10545 ;; 10546 10547aix[4-9]*) 10548 version_type=linux # correct to gnu/linux during the next big refactor 10549 need_lib_prefix=no 10550 need_version=no 10551 hardcode_into_libs=yes 10552 if test "$host_cpu" = ia64; then 10553 # AIX 5 supports IA64 10554 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 10555 shlibpath_var=LD_LIBRARY_PATH 10556 else 10557 # With GCC up to 2.95.x, collect2 would create an import file 10558 # for dependence libraries. The import file would start with 10559 # the line `#! .'. This would cause the generated library to 10560 # depend on `.', always an invalid library. This was fixed in 10561 # development snapshots of GCC prior to 3.0. 10562 case $host_os in 10563 aix4 | aix4.[01] | aix4.[01].*) 10564 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10565 echo ' yes ' 10566 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 10567 : 10568 else 10569 can_build_shared=no 10570 fi 10571 ;; 10572 esac 10573 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 10574 # soname into executable. Probably we can add versioning support to 10575 # collect2, so additional links can be useful in future. 10576 if test "$aix_use_runtimelinking" = yes; then 10577 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10578 # instead of lib<name>.a to let people know that these are not 10579 # typical AIX shared libraries. 10580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10581 else 10582 # We preserve .a as extension for shared libraries through AIX4.2 10583 # and later when we are not doing run time linking. 10584 library_names_spec='${libname}${release}.a $libname.a' 10585 soname_spec='${libname}${release}${shared_ext}$major' 10586 fi 10587 shlibpath_var=LIBPATH 10588 fi 10589 ;; 10590 10591amigaos*) 10592 case $host_cpu in 10593 powerpc) 10594 # Since July 2007 AmigaOS4 officially supports .so libraries. 10595 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10597 ;; 10598 m68k) 10599 library_names_spec='$libname.ixlibrary $libname.a' 10600 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10601 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' 10602 ;; 10603 esac 10604 ;; 10605 10606beos*) 10607 library_names_spec='${libname}${shared_ext}' 10608 dynamic_linker="$host_os ld.so" 10609 shlibpath_var=LIBRARY_PATH 10610 ;; 10611 10612bsdi[45]*) 10613 version_type=linux # correct to gnu/linux during the next big refactor 10614 need_version=no 10615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10616 soname_spec='${libname}${release}${shared_ext}$major' 10617 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10618 shlibpath_var=LD_LIBRARY_PATH 10619 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10620 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10621 # the default ld.so.conf also contains /usr/contrib/lib and 10622 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10623 # libtool to hard-code these into programs 10624 ;; 10625 10626cygwin* | mingw* | pw32* | cegcc*) 10627 version_type=windows 10628 shrext_cmds=".dll" 10629 need_version=no 10630 need_lib_prefix=no 10631 10632 case $GCC,$cc_basename in 10633 yes,*) 10634 # gcc 10635 library_names_spec='$libname.dll.a' 10636 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10637 postinstall_cmds='base_file=`basename \${file}`~ 10638 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10639 dldir=$destdir/`dirname \$dlpath`~ 10640 test -d \$dldir || mkdir -p \$dldir~ 10641 $install_prog $dir/$dlname \$dldir/$dlname~ 10642 chmod a+x \$dldir/$dlname~ 10643 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10644 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10645 fi' 10646 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10647 dlpath=$dir/\$dldll~ 10648 $RM \$dlpath' 10649 shlibpath_overrides_runpath=yes 10650 10651 case $host_os in 10652 cygwin*) 10653 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10654 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10655 10656 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 10657 ;; 10658 mingw* | cegcc*) 10659 # MinGW DLLs use traditional 'lib' prefix 10660 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10661 ;; 10662 pw32*) 10663 # pw32 DLLs use 'pw' prefix rather than 'lib' 10664 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10665 ;; 10666 esac 10667 dynamic_linker='Win32 ld.exe' 10668 ;; 10669 10670 *,cl*) 10671 # Native MSVC 10672 libname_spec='$name' 10673 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10674 library_names_spec='${libname}.dll.lib' 10675 10676 case $build_os in 10677 mingw*) 10678 sys_lib_search_path_spec= 10679 lt_save_ifs=$IFS 10680 IFS=';' 10681 for lt_path in $LIB 10682 do 10683 IFS=$lt_save_ifs 10684 # Let DOS variable expansion print the short 8.3 style file name. 10685 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 10686 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 10687 done 10688 IFS=$lt_save_ifs 10689 # Convert to MSYS style. 10690 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 10691 ;; 10692 cygwin*) 10693 # Convert to unix form, then to dos form, then back to unix form 10694 # but this time dos style (no spaces!) so that the unix form looks 10695 # like /cygdrive/c/PROGRA~1:/cygdr... 10696 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 10697 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 10698 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10699 ;; 10700 *) 10701 sys_lib_search_path_spec="$LIB" 10702 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 10703 # It is most probably a Windows format PATH. 10704 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 10705 else 10706 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10707 fi 10708 # FIXME: find the short name or the path components, as spaces are 10709 # common. (e.g. "Program Files" -> "PROGRA~1") 10710 ;; 10711 esac 10712 10713 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10714 postinstall_cmds='base_file=`basename \${file}`~ 10715 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10716 dldir=$destdir/`dirname \$dlpath`~ 10717 test -d \$dldir || mkdir -p \$dldir~ 10718 $install_prog $dir/$dlname \$dldir/$dlname' 10719 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10720 dlpath=$dir/\$dldll~ 10721 $RM \$dlpath' 10722 shlibpath_overrides_runpath=yes 10723 dynamic_linker='Win32 link.exe' 10724 ;; 10725 10726 *) 10727 # Assume MSVC wrapper 10728 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 10729 dynamic_linker='Win32 ld.exe' 10730 ;; 10731 esac 10732 # FIXME: first we should search . and the directory the executable is in 10733 shlibpath_var=PATH 10734 ;; 10735 10736darwin* | rhapsody*) 10737 dynamic_linker="$host_os dyld" 10738 version_type=darwin 10739 need_lib_prefix=no 10740 need_version=no 10741 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 10742 soname_spec='${libname}${release}${major}$shared_ext' 10743 shlibpath_overrides_runpath=yes 10744 shlibpath_var=DYLD_LIBRARY_PATH 10745 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10746 10747 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10748 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10749 ;; 10750 10751dgux*) 10752 version_type=linux # correct to gnu/linux during the next big refactor 10753 need_lib_prefix=no 10754 need_version=no 10755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 10756 soname_spec='${libname}${release}${shared_ext}$major' 10757 shlibpath_var=LD_LIBRARY_PATH 10758 ;; 10759 10760freebsd* | dragonfly*) 10761 # DragonFly does not have aout. When/if they implement a new 10762 # versioning mechanism, adjust this. 10763 if test -x /usr/bin/objformat; then 10764 objformat=`/usr/bin/objformat` 10765 else 10766 case $host_os in 10767 freebsd[23].*) objformat=aout ;; 10768 *) objformat=elf ;; 10769 esac 10770 fi 10771 version_type=freebsd-$objformat 10772 case $version_type in 10773 freebsd-elf*) 10774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10775 need_version=no 10776 need_lib_prefix=no 10777 ;; 10778 freebsd-*) 10779 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 10780 need_version=yes 10781 ;; 10782 esac 10783 shlibpath_var=LD_LIBRARY_PATH 10784 case $host_os in 10785 freebsd2.*) 10786 shlibpath_overrides_runpath=yes 10787 ;; 10788 freebsd3.[01]* | freebsdelf3.[01]*) 10789 shlibpath_overrides_runpath=yes 10790 hardcode_into_libs=yes 10791 ;; 10792 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10793 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10794 shlibpath_overrides_runpath=no 10795 hardcode_into_libs=yes 10796 ;; 10797 *) # from 4.6 on, and DragonFly 10798 shlibpath_overrides_runpath=yes 10799 hardcode_into_libs=yes 10800 ;; 10801 esac 10802 ;; 10803 10804gnu*) 10805 version_type=linux # correct to gnu/linux during the next big refactor 10806 need_lib_prefix=no 10807 need_version=no 10808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10809 soname_spec='${libname}${release}${shared_ext}$major' 10810 shlibpath_var=LD_LIBRARY_PATH 10811 shlibpath_overrides_runpath=no 10812 hardcode_into_libs=yes 10813 ;; 10814 10815haiku*) 10816 version_type=linux # correct to gnu/linux during the next big refactor 10817 need_lib_prefix=no 10818 need_version=no 10819 dynamic_linker="$host_os runtime_loader" 10820 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10821 soname_spec='${libname}${release}${shared_ext}$major' 10822 shlibpath_var=LIBRARY_PATH 10823 shlibpath_overrides_runpath=yes 10824 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 10825 hardcode_into_libs=yes 10826 ;; 10827 10828hpux9* | hpux10* | hpux11*) 10829 # Give a soname corresponding to the major version so that dld.sl refuses to 10830 # link against other versions. 10831 version_type=sunos 10832 need_lib_prefix=no 10833 need_version=no 10834 case $host_cpu in 10835 ia64*) 10836 shrext_cmds='.so' 10837 hardcode_into_libs=yes 10838 dynamic_linker="$host_os dld.so" 10839 shlibpath_var=LD_LIBRARY_PATH 10840 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10842 soname_spec='${libname}${release}${shared_ext}$major' 10843 if test "X$HPUX_IA64_MODE" = X32; then 10844 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10845 else 10846 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10847 fi 10848 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10849 ;; 10850 hppa*64*) 10851 shrext_cmds='.sl' 10852 hardcode_into_libs=yes 10853 dynamic_linker="$host_os dld.sl" 10854 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10855 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10857 soname_spec='${libname}${release}${shared_ext}$major' 10858 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10859 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10860 ;; 10861 *) 10862 shrext_cmds='.sl' 10863 dynamic_linker="$host_os dld.sl" 10864 shlibpath_var=SHLIB_PATH 10865 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10867 soname_spec='${libname}${release}${shared_ext}$major' 10868 ;; 10869 esac 10870 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 10871 postinstall_cmds='chmod 555 $lib' 10872 # or fails outright, so override atomically: 10873 install_override_mode=555 10874 ;; 10875 10876interix[3-9]*) 10877 version_type=linux # correct to gnu/linux during the next big refactor 10878 need_lib_prefix=no 10879 need_version=no 10880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10881 soname_spec='${libname}${release}${shared_ext}$major' 10882 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 10883 shlibpath_var=LD_LIBRARY_PATH 10884 shlibpath_overrides_runpath=no 10885 hardcode_into_libs=yes 10886 ;; 10887 10888irix5* | irix6* | nonstopux*) 10889 case $host_os in 10890 nonstopux*) version_type=nonstopux ;; 10891 *) 10892 if test "$lt_cv_prog_gnu_ld" = yes; then 10893 version_type=linux # correct to gnu/linux during the next big refactor 10894 else 10895 version_type=irix 10896 fi ;; 10897 esac 10898 need_lib_prefix=no 10899 need_version=no 10900 soname_spec='${libname}${release}${shared_ext}$major' 10901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 10902 case $host_os in 10903 irix5* | nonstopux*) 10904 libsuff= shlibsuff= 10905 ;; 10906 *) 10907 case $LD in # libtool.m4 will add one of these switches to LD 10908 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 10909 libsuff= shlibsuff= libmagic=32-bit;; 10910 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 10911 libsuff=32 shlibsuff=N32 libmagic=N32;; 10912 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 10913 libsuff=64 shlibsuff=64 libmagic=64-bit;; 10914 *) libsuff= shlibsuff= libmagic=never-match;; 10915 esac 10916 ;; 10917 esac 10918 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 10919 shlibpath_overrides_runpath=no 10920 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 10921 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 10922 hardcode_into_libs=yes 10923 ;; 10924 10925# No shared lib support for Linux oldld, aout, or coff. 10926linux*oldld* | linux*aout* | linux*coff*) 10927 dynamic_linker=no 10928 ;; 10929 10930# This must be glibc/ELF. 10931linux* | k*bsd*-gnu | kopensolaris*-gnu) 10932 version_type=linux # correct to gnu/linux during the next big refactor 10933 need_lib_prefix=no 10934 need_version=no 10935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10936 soname_spec='${libname}${release}${shared_ext}$major' 10937 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 10938 shlibpath_var=LD_LIBRARY_PATH 10939 shlibpath_overrides_runpath=no 10940 10941 # Some binutils ld are patched to set DT_RUNPATH 10942 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 10943 $as_echo_n "(cached) " >&6 10944else 10945 lt_cv_shlibpath_overrides_runpath=no 10946 save_LDFLAGS=$LDFLAGS 10947 save_libdir=$libdir 10948 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 10949 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 10950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10951/* end confdefs.h. */ 10952 10953int 10954main () 10955{ 10956 10957 ; 10958 return 0; 10959} 10960_ACEOF 10961if ac_fn_c_try_link "$LINENO"; then : 10962 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 10963 lt_cv_shlibpath_overrides_runpath=yes 10964fi 10965fi 10966rm -f core conftest.err conftest.$ac_objext \ 10967 conftest$ac_exeext conftest.$ac_ext 10968 LDFLAGS=$save_LDFLAGS 10969 libdir=$save_libdir 10970 10971fi 10972 10973 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 10974 10975 # This implies no fast_install, which is unacceptable. 10976 # Some rework will be needed to allow for fast_install 10977 # before this can be enabled. 10978 hardcode_into_libs=yes 10979 10980 # Append ld.so.conf contents to the search path 10981 if test -f /etc/ld.so.conf; then 10982 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' ' '` 10983 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 10984 fi 10985 10986 # We used to test for /lib/ld.so.1 and disable shared libraries on 10987 # powerpc, because MkLinux only supported shared libraries with the 10988 # GNU dynamic linker. Since this was broken with cross compilers, 10989 # most powerpc-linux boxes support dynamic linking these days and 10990 # people can always --disable-shared, the test was removed, and we 10991 # assume the GNU/Linux dynamic linker is in use. 10992 dynamic_linker='GNU/Linux ld.so' 10993 ;; 10994 10995netbsdelf*-gnu) 10996 version_type=linux 10997 need_lib_prefix=no 10998 need_version=no 10999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11000 soname_spec='${libname}${release}${shared_ext}$major' 11001 shlibpath_var=LD_LIBRARY_PATH 11002 shlibpath_overrides_runpath=no 11003 hardcode_into_libs=yes 11004 dynamic_linker='NetBSD ld.elf_so' 11005 ;; 11006 11007netbsd*) 11008 version_type=sunos 11009 need_lib_prefix=no 11010 need_version=no 11011 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11012 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11013 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11014 dynamic_linker='NetBSD (a.out) ld.so' 11015 else 11016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11017 soname_spec='${libname}${release}${shared_ext}$major' 11018 dynamic_linker='NetBSD ld.elf_so' 11019 fi 11020 shlibpath_var=LD_LIBRARY_PATH 11021 shlibpath_overrides_runpath=yes 11022 hardcode_into_libs=yes 11023 ;; 11024 11025newsos6) 11026 version_type=linux # correct to gnu/linux during the next big refactor 11027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11028 shlibpath_var=LD_LIBRARY_PATH 11029 shlibpath_overrides_runpath=yes 11030 ;; 11031 11032*nto* | *qnx*) 11033 version_type=qnx 11034 need_lib_prefix=no 11035 need_version=no 11036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11037 soname_spec='${libname}${release}${shared_ext}$major' 11038 shlibpath_var=LD_LIBRARY_PATH 11039 shlibpath_overrides_runpath=no 11040 hardcode_into_libs=yes 11041 dynamic_linker='ldqnx.so' 11042 ;; 11043 11044openbsd*) 11045 version_type=sunos 11046 sys_lib_dlsearch_path_spec="/usr/lib" 11047 need_lib_prefix=no 11048 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 11049 case $host_os in 11050 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 11051 *) need_version=no ;; 11052 esac 11053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11054 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11055 shlibpath_var=LD_LIBRARY_PATH 11056 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 11057 case $host_os in 11058 openbsd2.[89] | openbsd2.[89].*) 11059 shlibpath_overrides_runpath=no 11060 ;; 11061 *) 11062 shlibpath_overrides_runpath=yes 11063 ;; 11064 esac 11065 else 11066 shlibpath_overrides_runpath=yes 11067 fi 11068 ;; 11069 11070os2*) 11071 libname_spec='$name' 11072 shrext_cmds=".dll" 11073 need_lib_prefix=no 11074 library_names_spec='$libname${shared_ext} $libname.a' 11075 dynamic_linker='OS/2 ld.exe' 11076 shlibpath_var=LIBPATH 11077 ;; 11078 11079osf3* | osf4* | osf5*) 11080 version_type=osf 11081 need_lib_prefix=no 11082 need_version=no 11083 soname_spec='${libname}${release}${shared_ext}$major' 11084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11085 shlibpath_var=LD_LIBRARY_PATH 11086 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11087 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 11088 ;; 11089 11090rdos*) 11091 dynamic_linker=no 11092 ;; 11093 11094solaris*) 11095 version_type=linux # correct to gnu/linux during the next big refactor 11096 need_lib_prefix=no 11097 need_version=no 11098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11099 soname_spec='${libname}${release}${shared_ext}$major' 11100 shlibpath_var=LD_LIBRARY_PATH 11101 shlibpath_overrides_runpath=yes 11102 hardcode_into_libs=yes 11103 # ldd complains unless libraries are executable 11104 postinstall_cmds='chmod +x $lib' 11105 ;; 11106 11107sunos4*) 11108 version_type=sunos 11109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11110 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11111 shlibpath_var=LD_LIBRARY_PATH 11112 shlibpath_overrides_runpath=yes 11113 if test "$with_gnu_ld" = yes; then 11114 need_lib_prefix=no 11115 fi 11116 need_version=yes 11117 ;; 11118 11119sysv4 | sysv4.3*) 11120 version_type=linux # correct to gnu/linux during the next big refactor 11121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11122 soname_spec='${libname}${release}${shared_ext}$major' 11123 shlibpath_var=LD_LIBRARY_PATH 11124 case $host_vendor in 11125 sni) 11126 shlibpath_overrides_runpath=no 11127 need_lib_prefix=no 11128 runpath_var=LD_RUN_PATH 11129 ;; 11130 siemens) 11131 need_lib_prefix=no 11132 ;; 11133 motorola) 11134 need_lib_prefix=no 11135 need_version=no 11136 shlibpath_overrides_runpath=no 11137 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11138 ;; 11139 esac 11140 ;; 11141 11142sysv4*MP*) 11143 if test -d /usr/nec ;then 11144 version_type=linux # correct to gnu/linux during the next big refactor 11145 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 11146 soname_spec='$libname${shared_ext}.$major' 11147 shlibpath_var=LD_LIBRARY_PATH 11148 fi 11149 ;; 11150 11151sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11152 version_type=freebsd-elf 11153 need_lib_prefix=no 11154 need_version=no 11155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 11156 soname_spec='${libname}${release}${shared_ext}$major' 11157 shlibpath_var=LD_LIBRARY_PATH 11158 shlibpath_overrides_runpath=yes 11159 hardcode_into_libs=yes 11160 if test "$with_gnu_ld" = yes; then 11161 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11162 else 11163 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11164 case $host_os in 11165 sco3.2v5*) 11166 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11167 ;; 11168 esac 11169 fi 11170 sys_lib_dlsearch_path_spec='/usr/lib' 11171 ;; 11172 11173tpf*) 11174 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 11175 version_type=linux # correct to gnu/linux during the next big refactor 11176 need_lib_prefix=no 11177 need_version=no 11178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11179 shlibpath_var=LD_LIBRARY_PATH 11180 shlibpath_overrides_runpath=no 11181 hardcode_into_libs=yes 11182 ;; 11183 11184uts4*) 11185 version_type=linux # correct to gnu/linux during the next big refactor 11186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11187 soname_spec='${libname}${release}${shared_ext}$major' 11188 shlibpath_var=LD_LIBRARY_PATH 11189 ;; 11190 11191*) 11192 dynamic_linker=no 11193 ;; 11194esac 11195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 11196$as_echo "$dynamic_linker" >&6; } 11197test "$dynamic_linker" = no && can_build_shared=no 11198 11199variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11200if test "$GCC" = yes; then 11201 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11202fi 11203 11204if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 11205 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 11206fi 11207if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 11208 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 11209fi 11210 11211 11212 11213 11214 11215 11216 11217 11218 11219 11220 11221 11222 11223 11224 11225 11226 11227 11228 11229 11230 11231 11232 11233 11234 11235 11236 11237 11238 11239 11240 11241 11242 11243 11244 11245 11246 11247 11248 11249 11250 11251 11252 11253 11254 11255 11256 11257 11258 11259 11260 11261 11262 11263 11264 11265 11266 11267 11268 11269 11270 11271 11272 11273 11274 11275 11276 11277 11278 11279 11280 11281 11282 11283 11284 11285 11286 11287 11288 11289 11290 11291 11292 11293 11294 11295 11296 11297 11298 11299 11300 11301 11302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 11303$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 11304hardcode_action= 11305if test -n "$hardcode_libdir_flag_spec" || 11306 test -n "$runpath_var" || 11307 test "X$hardcode_automatic" = "Xyes" ; then 11308 11309 # We can hardcode non-existent directories. 11310 if test "$hardcode_direct" != no && 11311 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11312 # have to relink, otherwise we might link with an installed library 11313 # when we should be linking with a yet-to-be-installed one 11314 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 11315 test "$hardcode_minus_L" != no; then 11316 # Linking always hardcodes the temporary library directory. 11317 hardcode_action=relink 11318 else 11319 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11320 hardcode_action=immediate 11321 fi 11322else 11323 # We cannot hardcode anything, or else we can only hardcode existing 11324 # directories. 11325 hardcode_action=unsupported 11326fi 11327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 11328$as_echo "$hardcode_action" >&6; } 11329 11330if test "$hardcode_action" = relink || 11331 test "$inherit_rpath" = yes; then 11332 # Fast installation is not supported 11333 enable_fast_install=no 11334elif test "$shlibpath_overrides_runpath" = yes || 11335 test "$enable_shared" = no; then 11336 # Fast installation is not necessary 11337 enable_fast_install=needless 11338fi 11339 11340 11341 11342 11343 11344 11345 if test "x$enable_dlopen" != xyes; then 11346 enable_dlopen=unknown 11347 enable_dlopen_self=unknown 11348 enable_dlopen_self_static=unknown 11349else 11350 lt_cv_dlopen=no 11351 lt_cv_dlopen_libs= 11352 11353 case $host_os in 11354 beos*) 11355 lt_cv_dlopen="load_add_on" 11356 lt_cv_dlopen_libs= 11357 lt_cv_dlopen_self=yes 11358 ;; 11359 11360 mingw* | pw32* | cegcc*) 11361 lt_cv_dlopen="LoadLibrary" 11362 lt_cv_dlopen_libs= 11363 ;; 11364 11365 cygwin*) 11366 lt_cv_dlopen="dlopen" 11367 lt_cv_dlopen_libs= 11368 ;; 11369 11370 darwin*) 11371 # if libdl is installed we need to link against it 11372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11373$as_echo_n "checking for dlopen in -ldl... " >&6; } 11374if ${ac_cv_lib_dl_dlopen+:} false; then : 11375 $as_echo_n "(cached) " >&6 11376else 11377 ac_check_lib_save_LIBS=$LIBS 11378LIBS="-ldl $LIBS" 11379cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11380/* end confdefs.h. */ 11381 11382/* Override any GCC internal prototype to avoid an error. 11383 Use char because int might match the return type of a GCC 11384 builtin and then its argument prototype would still apply. */ 11385#ifdef __cplusplus 11386extern "C" 11387#endif 11388char dlopen (); 11389int 11390main () 11391{ 11392return dlopen (); 11393 ; 11394 return 0; 11395} 11396_ACEOF 11397if ac_fn_c_try_link "$LINENO"; then : 11398 ac_cv_lib_dl_dlopen=yes 11399else 11400 ac_cv_lib_dl_dlopen=no 11401fi 11402rm -f core conftest.err conftest.$ac_objext \ 11403 conftest$ac_exeext conftest.$ac_ext 11404LIBS=$ac_check_lib_save_LIBS 11405fi 11406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11407$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11408if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11409 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11410else 11411 11412 lt_cv_dlopen="dyld" 11413 lt_cv_dlopen_libs= 11414 lt_cv_dlopen_self=yes 11415 11416fi 11417 11418 ;; 11419 11420 *) 11421 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 11422if test "x$ac_cv_func_shl_load" = xyes; then : 11423 lt_cv_dlopen="shl_load" 11424else 11425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 11426$as_echo_n "checking for shl_load in -ldld... " >&6; } 11427if ${ac_cv_lib_dld_shl_load+:} false; then : 11428 $as_echo_n "(cached) " >&6 11429else 11430 ac_check_lib_save_LIBS=$LIBS 11431LIBS="-ldld $LIBS" 11432cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11433/* end confdefs.h. */ 11434 11435/* Override any GCC internal prototype to avoid an error. 11436 Use char because int might match the return type of a GCC 11437 builtin and then its argument prototype would still apply. */ 11438#ifdef __cplusplus 11439extern "C" 11440#endif 11441char shl_load (); 11442int 11443main () 11444{ 11445return shl_load (); 11446 ; 11447 return 0; 11448} 11449_ACEOF 11450if ac_fn_c_try_link "$LINENO"; then : 11451 ac_cv_lib_dld_shl_load=yes 11452else 11453 ac_cv_lib_dld_shl_load=no 11454fi 11455rm -f core conftest.err conftest.$ac_objext \ 11456 conftest$ac_exeext conftest.$ac_ext 11457LIBS=$ac_check_lib_save_LIBS 11458fi 11459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 11460$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 11461if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 11462 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 11463else 11464 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 11465if test "x$ac_cv_func_dlopen" = xyes; then : 11466 lt_cv_dlopen="dlopen" 11467else 11468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11469$as_echo_n "checking for dlopen in -ldl... " >&6; } 11470if ${ac_cv_lib_dl_dlopen+:} false; then : 11471 $as_echo_n "(cached) " >&6 11472else 11473 ac_check_lib_save_LIBS=$LIBS 11474LIBS="-ldl $LIBS" 11475cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11476/* end confdefs.h. */ 11477 11478/* Override any GCC internal prototype to avoid an error. 11479 Use char because int might match the return type of a GCC 11480 builtin and then its argument prototype would still apply. */ 11481#ifdef __cplusplus 11482extern "C" 11483#endif 11484char dlopen (); 11485int 11486main () 11487{ 11488return dlopen (); 11489 ; 11490 return 0; 11491} 11492_ACEOF 11493if ac_fn_c_try_link "$LINENO"; then : 11494 ac_cv_lib_dl_dlopen=yes 11495else 11496 ac_cv_lib_dl_dlopen=no 11497fi 11498rm -f core conftest.err conftest.$ac_objext \ 11499 conftest$ac_exeext conftest.$ac_ext 11500LIBS=$ac_check_lib_save_LIBS 11501fi 11502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11503$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11504if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11505 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11506else 11507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 11508$as_echo_n "checking for dlopen in -lsvld... " >&6; } 11509if ${ac_cv_lib_svld_dlopen+:} false; then : 11510 $as_echo_n "(cached) " >&6 11511else 11512 ac_check_lib_save_LIBS=$LIBS 11513LIBS="-lsvld $LIBS" 11514cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11515/* end confdefs.h. */ 11516 11517/* Override any GCC internal prototype to avoid an error. 11518 Use char because int might match the return type of a GCC 11519 builtin and then its argument prototype would still apply. */ 11520#ifdef __cplusplus 11521extern "C" 11522#endif 11523char dlopen (); 11524int 11525main () 11526{ 11527return dlopen (); 11528 ; 11529 return 0; 11530} 11531_ACEOF 11532if ac_fn_c_try_link "$LINENO"; then : 11533 ac_cv_lib_svld_dlopen=yes 11534else 11535 ac_cv_lib_svld_dlopen=no 11536fi 11537rm -f core conftest.err conftest.$ac_objext \ 11538 conftest$ac_exeext conftest.$ac_ext 11539LIBS=$ac_check_lib_save_LIBS 11540fi 11541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 11542$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11543if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 11544 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 11545else 11546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 11547$as_echo_n "checking for dld_link in -ldld... " >&6; } 11548if ${ac_cv_lib_dld_dld_link+:} false; then : 11549 $as_echo_n "(cached) " >&6 11550else 11551 ac_check_lib_save_LIBS=$LIBS 11552LIBS="-ldld $LIBS" 11553cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11554/* end confdefs.h. */ 11555 11556/* Override any GCC internal prototype to avoid an error. 11557 Use char because int might match the return type of a GCC 11558 builtin and then its argument prototype would still apply. */ 11559#ifdef __cplusplus 11560extern "C" 11561#endif 11562char dld_link (); 11563int 11564main () 11565{ 11566return dld_link (); 11567 ; 11568 return 0; 11569} 11570_ACEOF 11571if ac_fn_c_try_link "$LINENO"; then : 11572 ac_cv_lib_dld_dld_link=yes 11573else 11574 ac_cv_lib_dld_dld_link=no 11575fi 11576rm -f core conftest.err conftest.$ac_objext \ 11577 conftest$ac_exeext conftest.$ac_ext 11578LIBS=$ac_check_lib_save_LIBS 11579fi 11580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 11581$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11582if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 11583 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 11584fi 11585 11586 11587fi 11588 11589 11590fi 11591 11592 11593fi 11594 11595 11596fi 11597 11598 11599fi 11600 11601 ;; 11602 esac 11603 11604 if test "x$lt_cv_dlopen" != xno; then 11605 enable_dlopen=yes 11606 else 11607 enable_dlopen=no 11608 fi 11609 11610 case $lt_cv_dlopen in 11611 dlopen) 11612 save_CPPFLAGS="$CPPFLAGS" 11613 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11614 11615 save_LDFLAGS="$LDFLAGS" 11616 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11617 11618 save_LIBS="$LIBS" 11619 LIBS="$lt_cv_dlopen_libs $LIBS" 11620 11621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 11622$as_echo_n "checking whether a program can dlopen itself... " >&6; } 11623if ${lt_cv_dlopen_self+:} false; then : 11624 $as_echo_n "(cached) " >&6 11625else 11626 if test "$cross_compiling" = yes; then : 11627 lt_cv_dlopen_self=cross 11628else 11629 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11630 lt_status=$lt_dlunknown 11631 cat > conftest.$ac_ext <<_LT_EOF 11632#line $LINENO "configure" 11633#include "confdefs.h" 11634 11635#if HAVE_DLFCN_H 11636#include <dlfcn.h> 11637#endif 11638 11639#include <stdio.h> 11640 11641#ifdef RTLD_GLOBAL 11642# define LT_DLGLOBAL RTLD_GLOBAL 11643#else 11644# ifdef DL_GLOBAL 11645# define LT_DLGLOBAL DL_GLOBAL 11646# else 11647# define LT_DLGLOBAL 0 11648# endif 11649#endif 11650 11651/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11652 find out it does not work in some platform. */ 11653#ifndef LT_DLLAZY_OR_NOW 11654# ifdef RTLD_LAZY 11655# define LT_DLLAZY_OR_NOW RTLD_LAZY 11656# else 11657# ifdef DL_LAZY 11658# define LT_DLLAZY_OR_NOW DL_LAZY 11659# else 11660# ifdef RTLD_NOW 11661# define LT_DLLAZY_OR_NOW RTLD_NOW 11662# else 11663# ifdef DL_NOW 11664# define LT_DLLAZY_OR_NOW DL_NOW 11665# else 11666# define LT_DLLAZY_OR_NOW 0 11667# endif 11668# endif 11669# endif 11670# endif 11671#endif 11672 11673/* When -fvisbility=hidden is used, assume the code has been annotated 11674 correspondingly for the symbols needed. */ 11675#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11676int fnord () __attribute__((visibility("default"))); 11677#endif 11678 11679int fnord () { return 42; } 11680int main () 11681{ 11682 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11683 int status = $lt_dlunknown; 11684 11685 if (self) 11686 { 11687 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11688 else 11689 { 11690 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11691 else puts (dlerror ()); 11692 } 11693 /* dlclose (self); */ 11694 } 11695 else 11696 puts (dlerror ()); 11697 11698 return status; 11699} 11700_LT_EOF 11701 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11702 (eval $ac_link) 2>&5 11703 ac_status=$? 11704 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11705 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11706 (./conftest; exit; ) >&5 2>/dev/null 11707 lt_status=$? 11708 case x$lt_status in 11709 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11710 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11711 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11712 esac 11713 else : 11714 # compilation failed 11715 lt_cv_dlopen_self=no 11716 fi 11717fi 11718rm -fr conftest* 11719 11720 11721fi 11722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 11723$as_echo "$lt_cv_dlopen_self" >&6; } 11724 11725 if test "x$lt_cv_dlopen_self" = xyes; then 11726 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 11728$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 11729if ${lt_cv_dlopen_self_static+:} false; then : 11730 $as_echo_n "(cached) " >&6 11731else 11732 if test "$cross_compiling" = yes; then : 11733 lt_cv_dlopen_self_static=cross 11734else 11735 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11736 lt_status=$lt_dlunknown 11737 cat > conftest.$ac_ext <<_LT_EOF 11738#line $LINENO "configure" 11739#include "confdefs.h" 11740 11741#if HAVE_DLFCN_H 11742#include <dlfcn.h> 11743#endif 11744 11745#include <stdio.h> 11746 11747#ifdef RTLD_GLOBAL 11748# define LT_DLGLOBAL RTLD_GLOBAL 11749#else 11750# ifdef DL_GLOBAL 11751# define LT_DLGLOBAL DL_GLOBAL 11752# else 11753# define LT_DLGLOBAL 0 11754# endif 11755#endif 11756 11757/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11758 find out it does not work in some platform. */ 11759#ifndef LT_DLLAZY_OR_NOW 11760# ifdef RTLD_LAZY 11761# define LT_DLLAZY_OR_NOW RTLD_LAZY 11762# else 11763# ifdef DL_LAZY 11764# define LT_DLLAZY_OR_NOW DL_LAZY 11765# else 11766# ifdef RTLD_NOW 11767# define LT_DLLAZY_OR_NOW RTLD_NOW 11768# else 11769# ifdef DL_NOW 11770# define LT_DLLAZY_OR_NOW DL_NOW 11771# else 11772# define LT_DLLAZY_OR_NOW 0 11773# endif 11774# endif 11775# endif 11776# endif 11777#endif 11778 11779/* When -fvisbility=hidden is used, assume the code has been annotated 11780 correspondingly for the symbols needed. */ 11781#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11782int fnord () __attribute__((visibility("default"))); 11783#endif 11784 11785int fnord () { return 42; } 11786int main () 11787{ 11788 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11789 int status = $lt_dlunknown; 11790 11791 if (self) 11792 { 11793 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11794 else 11795 { 11796 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11797 else puts (dlerror ()); 11798 } 11799 /* dlclose (self); */ 11800 } 11801 else 11802 puts (dlerror ()); 11803 11804 return status; 11805} 11806_LT_EOF 11807 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11808 (eval $ac_link) 2>&5 11809 ac_status=$? 11810 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11811 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11812 (./conftest; exit; ) >&5 2>/dev/null 11813 lt_status=$? 11814 case x$lt_status in 11815 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11816 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11817 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 11818 esac 11819 else : 11820 # compilation failed 11821 lt_cv_dlopen_self_static=no 11822 fi 11823fi 11824rm -fr conftest* 11825 11826 11827fi 11828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 11829$as_echo "$lt_cv_dlopen_self_static" >&6; } 11830 fi 11831 11832 CPPFLAGS="$save_CPPFLAGS" 11833 LDFLAGS="$save_LDFLAGS" 11834 LIBS="$save_LIBS" 11835 ;; 11836 esac 11837 11838 case $lt_cv_dlopen_self in 11839 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11840 *) enable_dlopen_self=unknown ;; 11841 esac 11842 11843 case $lt_cv_dlopen_self_static in 11844 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11845 *) enable_dlopen_self_static=unknown ;; 11846 esac 11847fi 11848 11849 11850 11851 11852 11853 11854 11855 11856 11857 11858 11859 11860 11861 11862 11863 11864 11865striplib= 11866old_striplib= 11867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 11868$as_echo_n "checking whether stripping libraries is possible... " >&6; } 11869if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 11870 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11871 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11873$as_echo "yes" >&6; } 11874else 11875# FIXME - insert some real tests, host_os isn't really good enough 11876 case $host_os in 11877 darwin*) 11878 if test -n "$STRIP" ; then 11879 striplib="$STRIP -x" 11880 old_striplib="$STRIP -S" 11881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11882$as_echo "yes" >&6; } 11883 else 11884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11885$as_echo "no" >&6; } 11886 fi 11887 ;; 11888 *) 11889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11890$as_echo "no" >&6; } 11891 ;; 11892 esac 11893fi 11894 11895 11896 11897 11898 11899 11900 11901 11902 11903 11904 11905 11906 # Report which library types will actually be built 11907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 11908$as_echo_n "checking if libtool supports shared libraries... " >&6; } 11909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 11910$as_echo "$can_build_shared" >&6; } 11911 11912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 11913$as_echo_n "checking whether to build shared libraries... " >&6; } 11914 test "$can_build_shared" = "no" && enable_shared=no 11915 11916 # On AIX, shared libraries and static libraries use the same namespace, and 11917 # are all built from PIC. 11918 case $host_os in 11919 aix3*) 11920 test "$enable_shared" = yes && enable_static=no 11921 if test -n "$RANLIB"; then 11922 archive_cmds="$archive_cmds~\$RANLIB \$lib" 11923 postinstall_cmds='$RANLIB $lib' 11924 fi 11925 ;; 11926 11927 aix[4-9]*) 11928 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 11929 test "$enable_shared" = yes && enable_static=no 11930 fi 11931 ;; 11932 esac 11933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 11934$as_echo "$enable_shared" >&6; } 11935 11936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 11937$as_echo_n "checking whether to build static libraries... " >&6; } 11938 # Make sure either enable_shared or enable_static is yes. 11939 test "$enable_shared" = yes || enable_static=yes 11940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 11941$as_echo "$enable_static" >&6; } 11942 11943 11944 11945 11946fi 11947ac_ext=c 11948ac_cpp='$CPP $CPPFLAGS' 11949ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11950ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11951ac_compiler_gnu=$ac_cv_c_compiler_gnu 11952 11953CC="$lt_save_CC" 11954 11955 11956 11957 11958 11959 11960 11961 11962 11963 11964 11965 11966 11967 11968 11969 ac_config_commands="$ac_config_commands libtool" 11970 11971 11972 11973 11974# Only expand once: 11975 11976 11977 11978ac_fn_c_check_type "$LINENO" "byte" "ac_cv_type_byte" "$ac_includes_default" 11979if test "x$ac_cv_type_byte" = xyes; then : 11980 $as_echo "#define HAVE_BYTE_TYPEDEF 1" >>confdefs.h 11981 11982fi 11983 11984ac_fn_c_check_type "$LINENO" "ushort" "ac_cv_type_ushort" "$ac_includes_default" 11985if test "x$ac_cv_type_ushort" = xyes; then : 11986 $as_echo "#define HAVE_USHORT_TYPEDEF 1" >>confdefs.h 11987 11988fi 11989 11990ac_fn_c_check_type "$LINENO" "ulong" "ac_cv_type_ulong" "$ac_includes_default" 11991if test "x$ac_cv_type_ulong" = xyes; then : 11992 $as_echo "#define HAVE_ULONG_TYPEDEF 1" >>confdefs.h 11993 11994fi 11995 11996ac_fn_c_check_type "$LINENO" "u16" "ac_cv_type_u16" "$ac_includes_default" 11997if test "x$ac_cv_type_u16" = xyes; then : 11998 $as_echo "#define HAVE_U16_TYPEDEF 1" >>confdefs.h 11999 12000fi 12001 12002ac_fn_c_check_type "$LINENO" "u32" "ac_cv_type_u32" "$ac_includes_default" 12003if test "x$ac_cv_type_u32" = xyes; then : 12004 $as_echo "#define HAVE_U32_TYPEDEF 1" >>confdefs.h 12005 12006fi 12007 12008 12009ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" 12010if test "x$ac_cv_type_off_t" = xyes; then : 12011 12012else 12013 12014cat >>confdefs.h <<_ACEOF 12015#define off_t long int 12016_ACEOF 12017 12018fi 12019 12020ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 12021if test "x$ac_cv_type_size_t" = xyes; then : 12022 12023else 12024 12025cat >>confdefs.h <<_ACEOF 12026#define size_t unsigned int 12027_ACEOF 12028 12029fi 12030 12031ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default" 12032if test "x$ac_cv_type_ssize_t" = xyes; then : 12033 12034else 12035 12036cat >>confdefs.h <<_ACEOF 12037#define ssize_t int 12038_ACEOF 12039 12040fi 12041 12042ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t" 12043case $ac_cv_c_uint32_t in #( 12044 no|yes) ;; #( 12045 *) 12046 12047$as_echo "#define _UINT32_T 1" >>confdefs.h 12048 12049 12050cat >>confdefs.h <<_ACEOF 12051#define uint32_t $ac_cv_c_uint32_t 12052_ACEOF 12053;; 12054 esac 12055 12056 12057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 12058$as_echo_n "checking whether byte ordering is bigendian... " >&6; } 12059if ${ac_cv_c_bigendian+:} false; then : 12060 $as_echo_n "(cached) " >&6 12061else 12062 ac_cv_c_bigendian=unknown 12063 # See if we're dealing with a universal compiler. 12064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12065/* end confdefs.h. */ 12066#ifndef __APPLE_CC__ 12067 not a universal capable compiler 12068 #endif 12069 typedef int dummy; 12070 12071_ACEOF 12072if ac_fn_c_try_compile "$LINENO"; then : 12073 12074 # Check for potential -arch flags. It is not universal unless 12075 # there are at least two -arch flags with different values. 12076 ac_arch= 12077 ac_prev= 12078 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 12079 if test -n "$ac_prev"; then 12080 case $ac_word in 12081 i?86 | x86_64 | ppc | ppc64) 12082 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 12083 ac_arch=$ac_word 12084 else 12085 ac_cv_c_bigendian=universal 12086 break 12087 fi 12088 ;; 12089 esac 12090 ac_prev= 12091 elif test "x$ac_word" = "x-arch"; then 12092 ac_prev=arch 12093 fi 12094 done 12095fi 12096rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12097 if test $ac_cv_c_bigendian = unknown; then 12098 # See if sys/param.h defines the BYTE_ORDER macro. 12099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12100/* end confdefs.h. */ 12101#include <sys/types.h> 12102 #include <sys/param.h> 12103 12104int 12105main () 12106{ 12107#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 12108 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 12109 && LITTLE_ENDIAN) 12110 bogus endian macros 12111 #endif 12112 12113 ; 12114 return 0; 12115} 12116_ACEOF 12117if ac_fn_c_try_compile "$LINENO"; then : 12118 # It does; now see whether it defined to BIG_ENDIAN or not. 12119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12120/* end confdefs.h. */ 12121#include <sys/types.h> 12122 #include <sys/param.h> 12123 12124int 12125main () 12126{ 12127#if BYTE_ORDER != BIG_ENDIAN 12128 not big endian 12129 #endif 12130 12131 ; 12132 return 0; 12133} 12134_ACEOF 12135if ac_fn_c_try_compile "$LINENO"; then : 12136 ac_cv_c_bigendian=yes 12137else 12138 ac_cv_c_bigendian=no 12139fi 12140rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12141fi 12142rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12143 fi 12144 if test $ac_cv_c_bigendian = unknown; then 12145 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 12146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12147/* end confdefs.h. */ 12148#include <limits.h> 12149 12150int 12151main () 12152{ 12153#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 12154 bogus endian macros 12155 #endif 12156 12157 ; 12158 return 0; 12159} 12160_ACEOF 12161if ac_fn_c_try_compile "$LINENO"; then : 12162 # It does; now see whether it defined to _BIG_ENDIAN or not. 12163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12164/* end confdefs.h. */ 12165#include <limits.h> 12166 12167int 12168main () 12169{ 12170#ifndef _BIG_ENDIAN 12171 not big endian 12172 #endif 12173 12174 ; 12175 return 0; 12176} 12177_ACEOF 12178if ac_fn_c_try_compile "$LINENO"; then : 12179 ac_cv_c_bigendian=yes 12180else 12181 ac_cv_c_bigendian=no 12182fi 12183rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12184fi 12185rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12186 fi 12187 if test $ac_cv_c_bigendian = unknown; then 12188 # Compile a test program. 12189 if test "$cross_compiling" = yes; then : 12190 # Try to guess by grepping values from an object file. 12191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12192/* end confdefs.h. */ 12193short int ascii_mm[] = 12194 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 12195 short int ascii_ii[] = 12196 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 12197 int use_ascii (int i) { 12198 return ascii_mm[i] + ascii_ii[i]; 12199 } 12200 short int ebcdic_ii[] = 12201 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 12202 short int ebcdic_mm[] = 12203 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 12204 int use_ebcdic (int i) { 12205 return ebcdic_mm[i] + ebcdic_ii[i]; 12206 } 12207 extern int foo; 12208 12209int 12210main () 12211{ 12212return use_ascii (foo) == use_ebcdic (foo); 12213 ; 12214 return 0; 12215} 12216_ACEOF 12217if ac_fn_c_try_compile "$LINENO"; then : 12218 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 12219 ac_cv_c_bigendian=yes 12220 fi 12221 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 12222 if test "$ac_cv_c_bigendian" = unknown; then 12223 ac_cv_c_bigendian=no 12224 else 12225 # finding both strings is unlikely to happen, but who knows? 12226 ac_cv_c_bigendian=unknown 12227 fi 12228 fi 12229fi 12230rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12231else 12232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12233/* end confdefs.h. */ 12234$ac_includes_default 12235int 12236main () 12237{ 12238 12239 /* Are we little or big endian? From Harbison&Steele. */ 12240 union 12241 { 12242 long int l; 12243 char c[sizeof (long int)]; 12244 } u; 12245 u.l = 1; 12246 return u.c[sizeof (long int) - 1] == 1; 12247 12248 ; 12249 return 0; 12250} 12251_ACEOF 12252if ac_fn_c_try_run "$LINENO"; then : 12253 ac_cv_c_bigendian=no 12254else 12255 ac_cv_c_bigendian=yes 12256fi 12257rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12258 conftest.$ac_objext conftest.beam conftest.$ac_ext 12259fi 12260 12261 fi 12262fi 12263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 12264$as_echo "$ac_cv_c_bigendian" >&6; } 12265 case $ac_cv_c_bigendian in #( 12266 yes) 12267 $as_echo "#define BIG_ENDIAN_HOST 1" >>confdefs.h 12268;; #( 12269 no) 12270 $as_echo "#define LITTLE_ENDIAN_HOST 1" >>confdefs.h 12271 ;; #( 12272 universal) 12273 12274$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 12275 12276 ;; #( 12277 *) 12278 as_fn_error $? "unknown endianness 12279 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 12280 esac 12281 12282 12283for ac_header in stdint.h 12284do : 12285 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default" 12286if test "x$ac_cv_header_stdint_h" = xyes; then : 12287 cat >>confdefs.h <<_ACEOF 12288#define HAVE_STDINT_H 1 12289_ACEOF 12290 12291fi 12292 12293done 12294 12295for ac_header in zlib.h 12296do : 12297 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default" 12298if test "x$ac_cv_header_zlib_h" = xyes; then : 12299 cat >>confdefs.h <<_ACEOF 12300#define HAVE_ZLIB_H 1 12301_ACEOF 12302 12303else 12304 as_fn_error $? "Zlib header (zlib.h) not found. You may need to install a zlib development package." "$LINENO" 5 12305fi 12306 12307done 12308 12309 12310ac_fn_c_check_func "$LINENO" "getopt" "ac_cv_func_getopt" 12311if test "x$ac_cv_func_getopt" = xyes; then : 12312 $as_echo "#define HAVE_GETOPT 1" >>confdefs.h 12313 12314fi 12315 12316ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday" 12317if test "x$ac_cv_func_gettimeofday" = xyes; then : 12318 $as_echo "#define HAVE_GETTIMEOFDAY 1" >>confdefs.h 12319 12320fi 12321 12322ac_fn_c_check_func "$LINENO" "pread" "ac_cv_func_pread" 12323if test "x$ac_cv_func_pread" = xyes; then : 12324 $as_echo "#define HAVE_PREAD 1" >>confdefs.h 12325 12326fi 12327 12328ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf" 12329if test "x$ac_cv_func_vasprintf" = xyes; then : 12330 $as_echo "#define HAVE_VASPRINTF 1" >>confdefs.h 12331 12332fi 12333 12334ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf" 12335if test "x$ac_cv_func_vsnprintf" = xyes; then : 12336 $as_echo "#define HAVE_VSNPRINTF 1" >>confdefs.h 12337 12338fi 12339 12340ac_fn_c_check_func "$LINENO" "vsprintf" "ac_cv_func_vsprintf" 12341if test "x$ac_cv_func_vsprintf" = xyes; then : 12342 $as_echo "#define HAVE_VSPRINTF 1" >>confdefs.h 12343 12344fi 12345 12346 12347ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" 12348if test "x$ac_cv_func_gethostbyname" = xyes; then : 12349 $as_echo "#define HAVE_GETHOSTBYNAME 1" >>confdefs.h 12350 12351else 12352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 12353$as_echo_n "checking for gethostbyname in -lnsl... " >&6; } 12354if ${ac_cv_lib_nsl_gethostbyname+:} false; then : 12355 $as_echo_n "(cached) " >&6 12356else 12357 ac_check_lib_save_LIBS=$LIBS 12358LIBS="-lnsl $LIBS" 12359cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12360/* end confdefs.h. */ 12361 12362/* Override any GCC internal prototype to avoid an error. 12363 Use char because int might match the return type of a GCC 12364 builtin and then its argument prototype would still apply. */ 12365#ifdef __cplusplus 12366extern "C" 12367#endif 12368char gethostbyname (); 12369int 12370main () 12371{ 12372return gethostbyname (); 12373 ; 12374 return 0; 12375} 12376_ACEOF 12377if ac_fn_c_try_link "$LINENO"; then : 12378 ac_cv_lib_nsl_gethostbyname=yes 12379else 12380 ac_cv_lib_nsl_gethostbyname=no 12381fi 12382rm -f core conftest.err conftest.$ac_objext \ 12383 conftest$ac_exeext conftest.$ac_ext 12384LIBS=$ac_check_lib_save_LIBS 12385fi 12386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 12387$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } 12388if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then : 12389 $as_echo "#define HAVE_GETHOSTBYNAME 1" >>confdefs.h 12390 12391 LIBS="${LIBS} -lsocket -lnsl" 12392fi 12393 12394fi 12395 12396 12397ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r" 12398if test "x$ac_cv_func_gethostbyname_r" = xyes; then : 12399 12400 $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h 12401 12402 # We look for the one that returns `int'. 12403 # Hopefully this check is robust enough. 12404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12405/* end confdefs.h. */ 12406#include <netdb.h> 12407 12408_ACEOF 12409if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12410 $EGREP "int.*gethostbyname_r" >/dev/null 2>&1; then : 12411 12412 $as_echo "#define GETHOSTBYNAME_R_RETURNS_INT 1" >>confdefs.h 12413 12414fi 12415rm -f conftest* 12416 12417 12418fi 12419 12420 12421for ac_func in memset socket strchr strdup strstr 12422do : 12423 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 12424ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 12425if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 12426 cat >>confdefs.h <<_ACEOF 12427#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 12428_ACEOF 12429 12430fi 12431done 12432 12433 12434for ac_header in stdlib.h 12435do : 12436 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" 12437if test "x$ac_cv_header_stdlib_h" = xyes; then : 12438 cat >>confdefs.h <<_ACEOF 12439#define HAVE_STDLIB_H 1 12440_ACEOF 12441 12442fi 12443 12444done 12445 12446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5 12447$as_echo_n "checking for GNU libc compatible malloc... " >&6; } 12448if ${ac_cv_func_malloc_0_nonnull+:} false; then : 12449 $as_echo_n "(cached) " >&6 12450else 12451 if test "$cross_compiling" = yes; then : 12452 ac_cv_func_malloc_0_nonnull=no 12453else 12454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12455/* end confdefs.h. */ 12456#if defined STDC_HEADERS || defined HAVE_STDLIB_H 12457# include <stdlib.h> 12458#else 12459char *malloc (); 12460#endif 12461 12462int 12463main () 12464{ 12465return ! malloc (0); 12466 ; 12467 return 0; 12468} 12469_ACEOF 12470if ac_fn_c_try_run "$LINENO"; then : 12471 ac_cv_func_malloc_0_nonnull=yes 12472else 12473 ac_cv_func_malloc_0_nonnull=no 12474fi 12475rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12476 conftest.$ac_objext conftest.beam conftest.$ac_ext 12477fi 12478 12479fi 12480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5 12481$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; } 12482if test $ac_cv_func_malloc_0_nonnull = yes; then : 12483 12484$as_echo "#define HAVE_MALLOC 1" >>confdefs.h 12485 12486else 12487 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h 12488 12489 case " $LIBOBJS " in 12490 *" malloc.$ac_objext "* ) ;; 12491 *) LIBOBJS="$LIBOBJS malloc.$ac_objext" 12492 ;; 12493esac 12494 12495 12496$as_echo "#define malloc malloc" >>confdefs.h 12497 12498fi 12499 12500 12501for ac_header in stdlib.h 12502do : 12503 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" 12504if test "x$ac_cv_header_stdlib_h" = xyes; then : 12505 cat >>confdefs.h <<_ACEOF 12506#define HAVE_STDLIB_H 1 12507_ACEOF 12508 12509fi 12510 12511done 12512 12513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5 12514$as_echo_n "checking for GNU libc compatible realloc... " >&6; } 12515if ${ac_cv_func_realloc_0_nonnull+:} false; then : 12516 $as_echo_n "(cached) " >&6 12517else 12518 if test "$cross_compiling" = yes; then : 12519 ac_cv_func_realloc_0_nonnull=no 12520else 12521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12522/* end confdefs.h. */ 12523#if defined STDC_HEADERS || defined HAVE_STDLIB_H 12524# include <stdlib.h> 12525#else 12526char *realloc (); 12527#endif 12528 12529int 12530main () 12531{ 12532return ! realloc (0, 0); 12533 ; 12534 return 0; 12535} 12536_ACEOF 12537if ac_fn_c_try_run "$LINENO"; then : 12538 ac_cv_func_realloc_0_nonnull=yes 12539else 12540 ac_cv_func_realloc_0_nonnull=no 12541fi 12542rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12543 conftest.$ac_objext conftest.beam conftest.$ac_ext 12544fi 12545 12546fi 12547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5 12548$as_echo "$ac_cv_func_realloc_0_nonnull" >&6; } 12549if test $ac_cv_func_realloc_0_nonnull = yes; then : 12550 12551$as_echo "#define HAVE_REALLOC 1" >>confdefs.h 12552 12553else 12554 $as_echo "#define HAVE_REALLOC 1" >>confdefs.h 12555 12556 case " $LIBOBJS " in 12557 *" realloc.$ac_objext "* ) ;; 12558 *) LIBOBJS="$LIBOBJS realloc.$ac_objext" 12559 ;; 12560esac 12561 12562 12563$as_echo "#define realloc realloc" >>confdefs.h 12564 12565fi 12566 12567 12568 12569# Check whether --enable-data-files was given. 12570if test "${enable_data_files+set}" = set; then : 12571 enableval=$enable_data_files; 12572fi 12573 12574 12575if test "x$enable_data_files" != xno; then : 12576 GEOIP_DB_FILE=GeoIP.dat 12577 12578fi 12579 12580ac_config_files="$ac_config_files Makefile GeoIP.spec geoip.pc libGeoIP/Makefile apps/Makefile conf/Makefile data/Makefile man/Makefile test/Makefile" 12581 12582cat >confcache <<\_ACEOF 12583# This file is a shell script that caches the results of configure 12584# tests run on this system so they can be shared between configure 12585# scripts and configure runs, see configure's option --config-cache. 12586# It is not useful on other systems. If it contains results you don't 12587# want to keep, you may remove or edit it. 12588# 12589# config.status only pays attention to the cache file if you give it 12590# the --recheck option to rerun configure. 12591# 12592# `ac_cv_env_foo' variables (set or unset) will be overridden when 12593# loading this file, other *unset* `ac_cv_foo' will be assigned the 12594# following values. 12595 12596_ACEOF 12597 12598# The following way of writing the cache mishandles newlines in values, 12599# but we know of no workaround that is simple, portable, and efficient. 12600# So, we kill variables containing newlines. 12601# Ultrix sh set writes to stderr and can't be redirected directly, 12602# and sets the high bit in the cache file unless we assign to the vars. 12603( 12604 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 12605 eval ac_val=\$$ac_var 12606 case $ac_val in #( 12607 *${as_nl}*) 12608 case $ac_var in #( 12609 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 12610$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 12611 esac 12612 case $ac_var in #( 12613 _ | IFS | as_nl) ;; #( 12614 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 12615 *) { eval $ac_var=; unset $ac_var;} ;; 12616 esac ;; 12617 esac 12618 done 12619 12620 (set) 2>&1 | 12621 case $as_nl`(ac_space=' '; set) 2>&1` in #( 12622 *${as_nl}ac_space=\ *) 12623 # `set' does not quote correctly, so add quotes: double-quote 12624 # substitution turns \\\\ into \\, and sed turns \\ into \. 12625 sed -n \ 12626 "s/'/'\\\\''/g; 12627 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 12628 ;; #( 12629 *) 12630 # `set' quotes correctly as required by POSIX, so do not add quotes. 12631 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 12632 ;; 12633 esac | 12634 sort 12635) | 12636 sed ' 12637 /^ac_cv_env_/b end 12638 t clear 12639 :clear 12640 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 12641 t end 12642 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 12643 :end' >>confcache 12644if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 12645 if test -w "$cache_file"; then 12646 if test "x$cache_file" != "x/dev/null"; then 12647 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 12648$as_echo "$as_me: updating cache $cache_file" >&6;} 12649 if test ! -f "$cache_file" || test -h "$cache_file"; then 12650 cat confcache >"$cache_file" 12651 else 12652 case $cache_file in #( 12653 */* | ?:*) 12654 mv -f confcache "$cache_file"$$ && 12655 mv -f "$cache_file"$$ "$cache_file" ;; #( 12656 *) 12657 mv -f confcache "$cache_file" ;; 12658 esac 12659 fi 12660 fi 12661 else 12662 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 12663$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 12664 fi 12665fi 12666rm -f confcache 12667 12668test "x$prefix" = xNONE && prefix=$ac_default_prefix 12669# Let make expand exec_prefix. 12670test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 12671 12672# Transform confdefs.h into DEFS. 12673# Protect against shell expansion while executing Makefile rules. 12674# Protect against Makefile macro expansion. 12675# 12676# If the first sed substitution is executed (which looks for macros that 12677# take arguments), then branch to the quote section. Otherwise, 12678# look for a macro that doesn't take arguments. 12679ac_script=' 12680:mline 12681/\\$/{ 12682 N 12683 s,\\\n,, 12684 b mline 12685} 12686t clear 12687:clear 12688s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g 12689t quote 12690s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g 12691t quote 12692b any 12693:quote 12694s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g 12695s/\[/\\&/g 12696s/\]/\\&/g 12697s/\$/$$/g 12698H 12699:any 12700${ 12701 g 12702 s/^\n// 12703 s/\n/ /g 12704 p 12705} 12706' 12707DEFS=`sed -n "$ac_script" confdefs.h` 12708 12709 12710ac_libobjs= 12711ac_ltlibobjs= 12712U= 12713for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 12714 # 1. Remove the extension, and $U if already installed. 12715 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 12716 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 12717 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 12718 # will be set to the directory where LIBOBJS objects are built. 12719 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 12720 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 12721done 12722LIBOBJS=$ac_libobjs 12723 12724LTLIBOBJS=$ac_ltlibobjs 12725 12726 12727if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 12728 as_fn_error $? "conditional \"AMDEP\" was never defined. 12729Usually this means the macro was only invoked conditionally." "$LINENO" 5 12730fi 12731if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 12732 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 12733Usually this means the macro was only invoked conditionally." "$LINENO" 5 12734fi 12735 if test -n "$EXEEXT"; then 12736 am__EXEEXT_TRUE= 12737 am__EXEEXT_FALSE='#' 12738else 12739 am__EXEEXT_TRUE='#' 12740 am__EXEEXT_FALSE= 12741fi 12742 12743 12744 12745: "${CONFIG_STATUS=./config.status}" 12746ac_write_fail=0 12747ac_clean_files_save=$ac_clean_files 12748ac_clean_files="$ac_clean_files $CONFIG_STATUS" 12749{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 12750$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 12751as_write_fail=0 12752cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 12753#! $SHELL 12754# Generated by $as_me. 12755# Run this file to recreate the current configuration. 12756# Compiler output produced by configure, useful for debugging 12757# configure, is in config.log if it exists. 12758 12759debug=false 12760ac_cs_recheck=false 12761ac_cs_silent=false 12762 12763SHELL=\${CONFIG_SHELL-$SHELL} 12764export SHELL 12765_ASEOF 12766cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 12767## -------------------- ## 12768## M4sh Initialization. ## 12769## -------------------- ## 12770 12771# Be more Bourne compatible 12772DUALCASE=1; export DUALCASE # for MKS sh 12773if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 12774 emulate sh 12775 NULLCMD=: 12776 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 12777 # is contrary to our usage. Disable this feature. 12778 alias -g '${1+"$@"}'='"$@"' 12779 setopt NO_GLOB_SUBST 12780else 12781 case `(set -o) 2>/dev/null` in #( 12782 *posix*) : 12783 set -o posix ;; #( 12784 *) : 12785 ;; 12786esac 12787fi 12788 12789 12790as_nl=' 12791' 12792export as_nl 12793# Printing a long string crashes Solaris 7 /usr/bin/printf. 12794as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 12795as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 12796as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 12797# Prefer a ksh shell builtin over an external printf program on Solaris, 12798# but without wasting forks for bash or zsh. 12799if test -z "$BASH_VERSION$ZSH_VERSION" \ 12800 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 12801 as_echo='print -r --' 12802 as_echo_n='print -rn --' 12803elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 12804 as_echo='printf %s\n' 12805 as_echo_n='printf %s' 12806else 12807 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 12808 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 12809 as_echo_n='/usr/ucb/echo -n' 12810 else 12811 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 12812 as_echo_n_body='eval 12813 arg=$1; 12814 case $arg in #( 12815 *"$as_nl"*) 12816 expr "X$arg" : "X\\(.*\\)$as_nl"; 12817 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 12818 esac; 12819 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 12820 ' 12821 export as_echo_n_body 12822 as_echo_n='sh -c $as_echo_n_body as_echo' 12823 fi 12824 export as_echo_body 12825 as_echo='sh -c $as_echo_body as_echo' 12826fi 12827 12828# The user is always right. 12829if test "${PATH_SEPARATOR+set}" != set; then 12830 PATH_SEPARATOR=: 12831 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 12832 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 12833 PATH_SEPARATOR=';' 12834 } 12835fi 12836 12837 12838# IFS 12839# We need space, tab and new line, in precisely that order. Quoting is 12840# there to prevent editors from complaining about space-tab. 12841# (If _AS_PATH_WALK were called with IFS unset, it would disable word 12842# splitting by setting IFS to empty value.) 12843IFS=" "" $as_nl" 12844 12845# Find who we are. Look in the path if we contain no directory separator. 12846as_myself= 12847case $0 in #(( 12848 *[\\/]* ) as_myself=$0 ;; 12849 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12850for as_dir in $PATH 12851do 12852 IFS=$as_save_IFS 12853 test -z "$as_dir" && as_dir=. 12854 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 12855 done 12856IFS=$as_save_IFS 12857 12858 ;; 12859esac 12860# We did not find ourselves, most probably we were run as `sh COMMAND' 12861# in which case we are not to be found in the path. 12862if test "x$as_myself" = x; then 12863 as_myself=$0 12864fi 12865if test ! -f "$as_myself"; then 12866 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 12867 exit 1 12868fi 12869 12870# Unset variables that we do not need and which cause bugs (e.g. in 12871# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 12872# suppresses any "Segmentation fault" message there. '((' could 12873# trigger a bug in pdksh 5.2.14. 12874for as_var in BASH_ENV ENV MAIL MAILPATH 12875do eval test x\${$as_var+set} = xset \ 12876 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 12877done 12878PS1='$ ' 12879PS2='> ' 12880PS4='+ ' 12881 12882# NLS nuisances. 12883LC_ALL=C 12884export LC_ALL 12885LANGUAGE=C 12886export LANGUAGE 12887 12888# CDPATH. 12889(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 12890 12891 12892# as_fn_error STATUS ERROR [LINENO LOG_FD] 12893# ---------------------------------------- 12894# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 12895# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 12896# script with STATUS, using 1 if that was 0. 12897as_fn_error () 12898{ 12899 as_status=$1; test $as_status -eq 0 && as_status=1 12900 if test "$4"; then 12901 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 12902 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 12903 fi 12904 $as_echo "$as_me: error: $2" >&2 12905 as_fn_exit $as_status 12906} # as_fn_error 12907 12908 12909# as_fn_set_status STATUS 12910# ----------------------- 12911# Set $? to STATUS, without forking. 12912as_fn_set_status () 12913{ 12914 return $1 12915} # as_fn_set_status 12916 12917# as_fn_exit STATUS 12918# ----------------- 12919# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 12920as_fn_exit () 12921{ 12922 set +e 12923 as_fn_set_status $1 12924 exit $1 12925} # as_fn_exit 12926 12927# as_fn_unset VAR 12928# --------------- 12929# Portably unset VAR. 12930as_fn_unset () 12931{ 12932 { eval $1=; unset $1;} 12933} 12934as_unset=as_fn_unset 12935# as_fn_append VAR VALUE 12936# ---------------------- 12937# Append the text in VALUE to the end of the definition contained in VAR. Take 12938# advantage of any shell optimizations that allow amortized linear growth over 12939# repeated appends, instead of the typical quadratic growth present in naive 12940# implementations. 12941if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 12942 eval 'as_fn_append () 12943 { 12944 eval $1+=\$2 12945 }' 12946else 12947 as_fn_append () 12948 { 12949 eval $1=\$$1\$2 12950 } 12951fi # as_fn_append 12952 12953# as_fn_arith ARG... 12954# ------------------ 12955# Perform arithmetic evaluation on the ARGs, and store the result in the 12956# global $as_val. Take advantage of shells that can avoid forks. The arguments 12957# must be portable across $(()) and expr. 12958if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 12959 eval 'as_fn_arith () 12960 { 12961 as_val=$(( $* )) 12962 }' 12963else 12964 as_fn_arith () 12965 { 12966 as_val=`expr "$@" || test $? -eq 1` 12967 } 12968fi # as_fn_arith 12969 12970 12971if expr a : '\(a\)' >/dev/null 2>&1 && 12972 test "X`expr 00001 : '.*\(...\)'`" = X001; then 12973 as_expr=expr 12974else 12975 as_expr=false 12976fi 12977 12978if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 12979 as_basename=basename 12980else 12981 as_basename=false 12982fi 12983 12984if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 12985 as_dirname=dirname 12986else 12987 as_dirname=false 12988fi 12989 12990as_me=`$as_basename -- "$0" || 12991$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 12992 X"$0" : 'X\(//\)$' \| \ 12993 X"$0" : 'X\(/\)' \| . 2>/dev/null || 12994$as_echo X/"$0" | 12995 sed '/^.*\/\([^/][^/]*\)\/*$/{ 12996 s//\1/ 12997 q 12998 } 12999 /^X\/\(\/\/\)$/{ 13000 s//\1/ 13001 q 13002 } 13003 /^X\/\(\/\).*/{ 13004 s//\1/ 13005 q 13006 } 13007 s/.*/./; q'` 13008 13009# Avoid depending upon Character Ranges. 13010as_cr_letters='abcdefghijklmnopqrstuvwxyz' 13011as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 13012as_cr_Letters=$as_cr_letters$as_cr_LETTERS 13013as_cr_digits='0123456789' 13014as_cr_alnum=$as_cr_Letters$as_cr_digits 13015 13016ECHO_C= ECHO_N= ECHO_T= 13017case `echo -n x` in #((((( 13018-n*) 13019 case `echo 'xy\c'` in 13020 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 13021 xy) ECHO_C='\c';; 13022 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 13023 ECHO_T=' ';; 13024 esac;; 13025*) 13026 ECHO_N='-n';; 13027esac 13028 13029rm -f conf$$ conf$$.exe conf$$.file 13030if test -d conf$$.dir; then 13031 rm -f conf$$.dir/conf$$.file 13032else 13033 rm -f conf$$.dir 13034 mkdir conf$$.dir 2>/dev/null 13035fi 13036if (echo >conf$$.file) 2>/dev/null; then 13037 if ln -s conf$$.file conf$$ 2>/dev/null; then 13038 as_ln_s='ln -s' 13039 # ... but there are two gotchas: 13040 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 13041 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 13042 # In both cases, we have to default to `cp -p'. 13043 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 13044 as_ln_s='cp -p' 13045 elif ln conf$$.file conf$$ 2>/dev/null; then 13046 as_ln_s=ln 13047 else 13048 as_ln_s='cp -p' 13049 fi 13050else 13051 as_ln_s='cp -p' 13052fi 13053rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 13054rmdir conf$$.dir 2>/dev/null 13055 13056 13057# as_fn_mkdir_p 13058# ------------- 13059# Create "$as_dir" as a directory, including parents if necessary. 13060as_fn_mkdir_p () 13061{ 13062 13063 case $as_dir in #( 13064 -*) as_dir=./$as_dir;; 13065 esac 13066 test -d "$as_dir" || eval $as_mkdir_p || { 13067 as_dirs= 13068 while :; do 13069 case $as_dir in #( 13070 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 13071 *) as_qdir=$as_dir;; 13072 esac 13073 as_dirs="'$as_qdir' $as_dirs" 13074 as_dir=`$as_dirname -- "$as_dir" || 13075$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13076 X"$as_dir" : 'X\(//\)[^/]' \| \ 13077 X"$as_dir" : 'X\(//\)$' \| \ 13078 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 13079$as_echo X"$as_dir" | 13080 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13081 s//\1/ 13082 q 13083 } 13084 /^X\(\/\/\)[^/].*/{ 13085 s//\1/ 13086 q 13087 } 13088 /^X\(\/\/\)$/{ 13089 s//\1/ 13090 q 13091 } 13092 /^X\(\/\).*/{ 13093 s//\1/ 13094 q 13095 } 13096 s/.*/./; q'` 13097 test -d "$as_dir" && break 13098 done 13099 test -z "$as_dirs" || eval "mkdir $as_dirs" 13100 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 13101 13102 13103} # as_fn_mkdir_p 13104if mkdir -p . 2>/dev/null; then 13105 as_mkdir_p='mkdir -p "$as_dir"' 13106else 13107 test -d ./-p && rmdir ./-p 13108 as_mkdir_p=false 13109fi 13110 13111if test -x / >/dev/null 2>&1; then 13112 as_test_x='test -x' 13113else 13114 if ls -dL / >/dev/null 2>&1; then 13115 as_ls_L_option=L 13116 else 13117 as_ls_L_option= 13118 fi 13119 as_test_x=' 13120 eval sh -c '\'' 13121 if test -d "$1"; then 13122 test -d "$1/."; 13123 else 13124 case $1 in #( 13125 -*)set "./$1";; 13126 esac; 13127 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 13128 ???[sx]*):;;*)false;;esac;fi 13129 '\'' sh 13130 ' 13131fi 13132as_executable_p=$as_test_x 13133 13134# Sed expression to map a string onto a valid CPP name. 13135as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 13136 13137# Sed expression to map a string onto a valid variable name. 13138as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 13139 13140 13141exec 6>&1 13142## ----------------------------------- ## 13143## Main body of $CONFIG_STATUS script. ## 13144## ----------------------------------- ## 13145_ASEOF 13146test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 13147 13148cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13149# Save the log message, to keep $0 and so on meaningful, and to 13150# report actual input values of CONFIG_FILES etc. instead of their 13151# values after options handling. 13152ac_log=" 13153This file was extended by GeoIP $as_me 1.5.1, which was 13154generated by GNU Autoconf 2.68. Invocation command line was 13155 13156 CONFIG_FILES = $CONFIG_FILES 13157 CONFIG_HEADERS = $CONFIG_HEADERS 13158 CONFIG_LINKS = $CONFIG_LINKS 13159 CONFIG_COMMANDS = $CONFIG_COMMANDS 13160 $ $0 $@ 13161 13162on `(hostname || uname -n) 2>/dev/null | sed 1q` 13163" 13164 13165_ACEOF 13166 13167case $ac_config_files in *" 13168"*) set x $ac_config_files; shift; ac_config_files=$*;; 13169esac 13170 13171 13172 13173cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13174# Files that config.status was made for. 13175config_files="$ac_config_files" 13176config_commands="$ac_config_commands" 13177 13178_ACEOF 13179 13180cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13181ac_cs_usage="\ 13182\`$as_me' instantiates files and other configuration actions 13183from templates according to the current configuration. Unless the files 13184and actions are specified as TAGs, all are instantiated by default. 13185 13186Usage: $0 [OPTION]... [TAG]... 13187 13188 -h, --help print this help, then exit 13189 -V, --version print version number and configuration settings, then exit 13190 --config print configuration, then exit 13191 -q, --quiet, --silent 13192 do not print progress messages 13193 -d, --debug don't remove temporary files 13194 --recheck update $as_me by reconfiguring in the same conditions 13195 --file=FILE[:TEMPLATE] 13196 instantiate the configuration file FILE 13197 13198Configuration files: 13199$config_files 13200 13201Configuration commands: 13202$config_commands 13203 13204Report bugs to <support@maxmind.com>." 13205 13206_ACEOF 13207cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13208ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 13209ac_cs_version="\\ 13210GeoIP config.status 1.5.1 13211configured by $0, generated by GNU Autoconf 2.68, 13212 with options \\"\$ac_cs_config\\" 13213 13214Copyright (C) 2010 Free Software Foundation, Inc. 13215This config.status script is free software; the Free Software Foundation 13216gives unlimited permission to copy, distribute and modify it." 13217 13218ac_pwd='$ac_pwd' 13219srcdir='$srcdir' 13220INSTALL='$INSTALL' 13221MKDIR_P='$MKDIR_P' 13222AWK='$AWK' 13223test -n "\$AWK" || AWK=awk 13224_ACEOF 13225 13226cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13227# The default lists apply if the user does not specify any file. 13228ac_need_defaults=: 13229while test $# != 0 13230do 13231 case $1 in 13232 --*=?*) 13233 ac_option=`expr "X$1" : 'X\([^=]*\)='` 13234 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 13235 ac_shift=: 13236 ;; 13237 --*=) 13238 ac_option=`expr "X$1" : 'X\([^=]*\)='` 13239 ac_optarg= 13240 ac_shift=: 13241 ;; 13242 *) 13243 ac_option=$1 13244 ac_optarg=$2 13245 ac_shift=shift 13246 ;; 13247 esac 13248 13249 case $ac_option in 13250 # Handling of the options. 13251 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 13252 ac_cs_recheck=: ;; 13253 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 13254 $as_echo "$ac_cs_version"; exit ;; 13255 --config | --confi | --conf | --con | --co | --c ) 13256 $as_echo "$ac_cs_config"; exit ;; 13257 --debug | --debu | --deb | --de | --d | -d ) 13258 debug=: ;; 13259 --file | --fil | --fi | --f ) 13260 $ac_shift 13261 case $ac_optarg in 13262 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 13263 '') as_fn_error $? "missing file argument" ;; 13264 esac 13265 as_fn_append CONFIG_FILES " '$ac_optarg'" 13266 ac_need_defaults=false;; 13267 --he | --h | --help | --hel | -h ) 13268 $as_echo "$ac_cs_usage"; exit ;; 13269 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 13270 | -silent | --silent | --silen | --sile | --sil | --si | --s) 13271 ac_cs_silent=: ;; 13272 13273 # This is an error. 13274 -*) as_fn_error $? "unrecognized option: \`$1' 13275Try \`$0 --help' for more information." ;; 13276 13277 *) as_fn_append ac_config_targets " $1" 13278 ac_need_defaults=false ;; 13279 13280 esac 13281 shift 13282done 13283 13284ac_configure_extra_args= 13285 13286if $ac_cs_silent; then 13287 exec 6>/dev/null 13288 ac_configure_extra_args="$ac_configure_extra_args --silent" 13289fi 13290 13291_ACEOF 13292cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13293if \$ac_cs_recheck; then 13294 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 13295 shift 13296 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 13297 CONFIG_SHELL='$SHELL' 13298 export CONFIG_SHELL 13299 exec "\$@" 13300fi 13301 13302_ACEOF 13303cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13304exec 5>>config.log 13305{ 13306 echo 13307 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 13308## Running $as_me. ## 13309_ASBOX 13310 $as_echo "$ac_log" 13311} >&5 13312 13313_ACEOF 13314cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13315# 13316# INIT-COMMANDS 13317# 13318AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 13319 13320 13321# The HP-UX ksh and POSIX shell print the target directory to stdout 13322# if CDPATH is set. 13323(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 13324 13325sed_quote_subst='$sed_quote_subst' 13326double_quote_subst='$double_quote_subst' 13327delay_variable_subst='$delay_variable_subst' 13328macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 13329macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 13330enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 13331enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 13332pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 13333enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 13334SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 13335ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 13336PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 13337host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 13338host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 13339host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 13340build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 13341build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 13342build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 13343SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 13344Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 13345GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 13346EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 13347FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 13348LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 13349NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 13350LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 13351max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 13352ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 13353exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 13354lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 13355lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 13356lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 13357lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 13358lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 13359reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 13360reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 13361OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 13362deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 13363file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 13364file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 13365want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 13366DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 13367sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 13368AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 13369AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 13370archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 13371STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 13372RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 13373old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 13374old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 13375old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 13376lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 13377CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 13378CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 13379compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 13380GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 13381lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 13382lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 13383lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 13384lt_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"`' 13385nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 13386lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 13387objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 13388MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 13389lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 13390lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 13391lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 13392lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 13393lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 13394need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 13395MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 13396DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 13397NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 13398LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 13399OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 13400OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 13401libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 13402shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 13403extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 13404archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 13405enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 13406export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 13407whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 13408compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 13409old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 13410old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 13411archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 13412archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 13413module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 13414module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 13415with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 13416allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 13417no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 13418hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 13419hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 13420hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 13421hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 13422hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 13423hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 13424hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 13425inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 13426link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 13427always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 13428export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 13429exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 13430include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 13431prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 13432postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 13433file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 13434variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 13435need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 13436need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 13437version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 13438runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 13439shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 13440shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 13441libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 13442library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 13443soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 13444install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 13445postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 13446postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 13447finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 13448finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 13449hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 13450sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 13451sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 13452hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 13453enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 13454enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 13455enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 13456old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 13457striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 13458 13459LTCC='$LTCC' 13460LTCFLAGS='$LTCFLAGS' 13461compiler='$compiler_DEFAULT' 13462 13463# A function that is used when there is no print builtin or printf. 13464func_fallback_echo () 13465{ 13466 eval 'cat <<_LTECHO_EOF 13467\$1 13468_LTECHO_EOF' 13469} 13470 13471# Quote evaled strings. 13472for var in SHELL \ 13473ECHO \ 13474PATH_SEPARATOR \ 13475SED \ 13476GREP \ 13477EGREP \ 13478FGREP \ 13479LD \ 13480NM \ 13481LN_S \ 13482lt_SP2NL \ 13483lt_NL2SP \ 13484reload_flag \ 13485OBJDUMP \ 13486deplibs_check_method \ 13487file_magic_cmd \ 13488file_magic_glob \ 13489want_nocaseglob \ 13490DLLTOOL \ 13491sharedlib_from_linklib_cmd \ 13492AR \ 13493AR_FLAGS \ 13494archiver_list_spec \ 13495STRIP \ 13496RANLIB \ 13497CC \ 13498CFLAGS \ 13499compiler \ 13500lt_cv_sys_global_symbol_pipe \ 13501lt_cv_sys_global_symbol_to_cdecl \ 13502lt_cv_sys_global_symbol_to_c_name_address \ 13503lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 13504nm_file_list_spec \ 13505lt_prog_compiler_no_builtin_flag \ 13506lt_prog_compiler_pic \ 13507lt_prog_compiler_wl \ 13508lt_prog_compiler_static \ 13509lt_cv_prog_compiler_c_o \ 13510need_locks \ 13511MANIFEST_TOOL \ 13512DSYMUTIL \ 13513NMEDIT \ 13514LIPO \ 13515OTOOL \ 13516OTOOL64 \ 13517shrext_cmds \ 13518export_dynamic_flag_spec \ 13519whole_archive_flag_spec \ 13520compiler_needs_object \ 13521with_gnu_ld \ 13522allow_undefined_flag \ 13523no_undefined_flag \ 13524hardcode_libdir_flag_spec \ 13525hardcode_libdir_separator \ 13526exclude_expsyms \ 13527include_expsyms \ 13528file_list_spec \ 13529variables_saved_for_relink \ 13530libname_spec \ 13531library_names_spec \ 13532soname_spec \ 13533install_override_mode \ 13534finish_eval \ 13535old_striplib \ 13536striplib; do 13537 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 13538 *[\\\\\\\`\\"\\\$]*) 13539 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 13540 ;; 13541 *) 13542 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 13543 ;; 13544 esac 13545done 13546 13547# Double-quote double-evaled strings. 13548for var in reload_cmds \ 13549old_postinstall_cmds \ 13550old_postuninstall_cmds \ 13551old_archive_cmds \ 13552extract_expsyms_cmds \ 13553old_archive_from_new_cmds \ 13554old_archive_from_expsyms_cmds \ 13555archive_cmds \ 13556archive_expsym_cmds \ 13557module_cmds \ 13558module_expsym_cmds \ 13559export_symbols_cmds \ 13560prelink_cmds \ 13561postlink_cmds \ 13562postinstall_cmds \ 13563postuninstall_cmds \ 13564finish_cmds \ 13565sys_lib_search_path_spec \ 13566sys_lib_dlsearch_path_spec; do 13567 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 13568 *[\\\\\\\`\\"\\\$]*) 13569 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 13570 ;; 13571 *) 13572 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 13573 ;; 13574 esac 13575done 13576 13577ac_aux_dir='$ac_aux_dir' 13578xsi_shell='$xsi_shell' 13579lt_shell_append='$lt_shell_append' 13580 13581# See if we are running on zsh, and set the options which allow our 13582# commands through without removal of \ escapes INIT. 13583if test -n "\${ZSH_VERSION+set}" ; then 13584 setopt NO_GLOB_SUBST 13585fi 13586 13587 13588 PACKAGE='$PACKAGE' 13589 VERSION='$VERSION' 13590 TIMESTAMP='$TIMESTAMP' 13591 RM='$RM' 13592 ofile='$ofile' 13593 13594 13595 13596 13597_ACEOF 13598 13599cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13600 13601# Handling of arguments. 13602for ac_config_target in $ac_config_targets 13603do 13604 case $ac_config_target in 13605 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 13606 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 13607 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 13608 "GeoIP.spec") CONFIG_FILES="$CONFIG_FILES GeoIP.spec" ;; 13609 "geoip.pc") CONFIG_FILES="$CONFIG_FILES geoip.pc" ;; 13610 "libGeoIP/Makefile") CONFIG_FILES="$CONFIG_FILES libGeoIP/Makefile" ;; 13611 "apps/Makefile") CONFIG_FILES="$CONFIG_FILES apps/Makefile" ;; 13612 "conf/Makefile") CONFIG_FILES="$CONFIG_FILES conf/Makefile" ;; 13613 "data/Makefile") CONFIG_FILES="$CONFIG_FILES data/Makefile" ;; 13614 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 13615 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;; 13616 13617 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 13618 esac 13619done 13620 13621 13622# If the user did not use the arguments to specify the items to instantiate, 13623# then the envvar interface is used. Set only those that are not. 13624# We use the long form for the default assignment because of an extremely 13625# bizarre bug on SunOS 4.1.3. 13626if $ac_need_defaults; then 13627 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 13628 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 13629fi 13630 13631# Have a temporary directory for convenience. Make it in the build tree 13632# simply because there is no reason against having it here, and in addition, 13633# creating and moving files from /tmp can sometimes cause problems. 13634# Hook for its removal unless debugging. 13635# Note that there is a small window in which the directory will not be cleaned: 13636# after its creation but before its name has been assigned to `$tmp'. 13637$debug || 13638{ 13639 tmp= ac_tmp= 13640 trap 'exit_status=$? 13641 : "${ac_tmp:=$tmp}" 13642 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 13643' 0 13644 trap 'as_fn_exit 1' 1 2 13 15 13645} 13646# Create a (secure) tmp directory for tmp files. 13647 13648{ 13649 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 13650 test -d "$tmp" 13651} || 13652{ 13653 tmp=./conf$$-$RANDOM 13654 (umask 077 && mkdir "$tmp") 13655} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 13656ac_tmp=$tmp 13657 13658# Set up the scripts for CONFIG_FILES section. 13659# No need to generate them if there are no CONFIG_FILES. 13660# This happens for instance with `./config.status config.h'. 13661if test -n "$CONFIG_FILES"; then 13662 13663 13664ac_cr=`echo X | tr X '\015'` 13665# On cygwin, bash can eat \r inside `` if the user requested igncr. 13666# But we know of no other shell where ac_cr would be empty at this 13667# point, so we can use a bashism as a fallback. 13668if test "x$ac_cr" = x; then 13669 eval ac_cr=\$\'\\r\' 13670fi 13671ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 13672if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 13673 ac_cs_awk_cr='\\r' 13674else 13675 ac_cs_awk_cr=$ac_cr 13676fi 13677 13678echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 13679_ACEOF 13680 13681 13682{ 13683 echo "cat >conf$$subs.awk <<_ACEOF" && 13684 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 13685 echo "_ACEOF" 13686} >conf$$subs.sh || 13687 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 13688ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 13689ac_delim='%!_!# ' 13690for ac_last_try in false false false false false :; do 13691 . ./conf$$subs.sh || 13692 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 13693 13694 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 13695 if test $ac_delim_n = $ac_delim_num; then 13696 break 13697 elif $ac_last_try; then 13698 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 13699 else 13700 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 13701 fi 13702done 13703rm -f conf$$subs.sh 13704 13705cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13706cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 13707_ACEOF 13708sed -n ' 13709h 13710s/^/S["/; s/!.*/"]=/ 13711p 13712g 13713s/^[^!]*!// 13714:repl 13715t repl 13716s/'"$ac_delim"'$// 13717t delim 13718:nl 13719h 13720s/\(.\{148\}\)..*/\1/ 13721t more1 13722s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 13723p 13724n 13725b repl 13726:more1 13727s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 13728p 13729g 13730s/.\{148\}// 13731t nl 13732:delim 13733h 13734s/\(.\{148\}\)..*/\1/ 13735t more2 13736s/["\\]/\\&/g; s/^/"/; s/$/"/ 13737p 13738b 13739:more2 13740s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 13741p 13742g 13743s/.\{148\}// 13744t delim 13745' <conf$$subs.awk | sed ' 13746/^[^""]/{ 13747 N 13748 s/\n// 13749} 13750' >>$CONFIG_STATUS || ac_write_fail=1 13751rm -f conf$$subs.awk 13752cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13753_ACAWK 13754cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 13755 for (key in S) S_is_set[key] = 1 13756 FS = "" 13757 13758} 13759{ 13760 line = $ 0 13761 nfields = split(line, field, "@") 13762 substed = 0 13763 len = length(field[1]) 13764 for (i = 2; i < nfields; i++) { 13765 key = field[i] 13766 keylen = length(key) 13767 if (S_is_set[key]) { 13768 value = S[key] 13769 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 13770 len += length(value) + length(field[++i]) 13771 substed = 1 13772 } else 13773 len += 1 + keylen 13774 } 13775 13776 print line 13777} 13778 13779_ACAWK 13780_ACEOF 13781cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13782if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 13783 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 13784else 13785 cat 13786fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 13787 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 13788_ACEOF 13789 13790# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 13791# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 13792# trailing colons and then remove the whole line if VPATH becomes empty 13793# (actually we leave an empty line to preserve line numbers). 13794if test "x$srcdir" = x.; then 13795 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 13796h 13797s/// 13798s/^/:/ 13799s/[ ]*$/:/ 13800s/:\$(srcdir):/:/g 13801s/:\${srcdir}:/:/g 13802s/:@srcdir@:/:/g 13803s/^:*// 13804s/:*$// 13805x 13806s/\(=[ ]*\).*/\1/ 13807G 13808s/\n// 13809s/^[^=]*=[ ]*$// 13810}' 13811fi 13812 13813cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13814fi # test -n "$CONFIG_FILES" 13815 13816 13817eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS" 13818shift 13819for ac_tag 13820do 13821 case $ac_tag in 13822 :[FHLC]) ac_mode=$ac_tag; continue;; 13823 esac 13824 case $ac_mode$ac_tag in 13825 :[FHL]*:*);; 13826 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 13827 :[FH]-) ac_tag=-:-;; 13828 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 13829 esac 13830 ac_save_IFS=$IFS 13831 IFS=: 13832 set x $ac_tag 13833 IFS=$ac_save_IFS 13834 shift 13835 ac_file=$1 13836 shift 13837 13838 case $ac_mode in 13839 :L) ac_source=$1;; 13840 :[FH]) 13841 ac_file_inputs= 13842 for ac_f 13843 do 13844 case $ac_f in 13845 -) ac_f="$ac_tmp/stdin";; 13846 *) # Look for the file first in the build tree, then in the source tree 13847 # (if the path is not absolute). The absolute path cannot be DOS-style, 13848 # because $ac_f cannot contain `:'. 13849 test -f "$ac_f" || 13850 case $ac_f in 13851 [\\/$]*) false;; 13852 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 13853 esac || 13854 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 13855 esac 13856 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 13857 as_fn_append ac_file_inputs " '$ac_f'" 13858 done 13859 13860 # Let's still pretend it is `configure' which instantiates (i.e., don't 13861 # use $as_me), people would be surprised to read: 13862 # /* config.h. Generated by config.status. */ 13863 configure_input='Generated from '` 13864 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 13865 `' by configure.' 13866 if test x"$ac_file" != x-; then 13867 configure_input="$ac_file. $configure_input" 13868 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 13869$as_echo "$as_me: creating $ac_file" >&6;} 13870 fi 13871 # Neutralize special characters interpreted by sed in replacement strings. 13872 case $configure_input in #( 13873 *\&* | *\|* | *\\* ) 13874 ac_sed_conf_input=`$as_echo "$configure_input" | 13875 sed 's/[\\\\&|]/\\\\&/g'`;; #( 13876 *) ac_sed_conf_input=$configure_input;; 13877 esac 13878 13879 case $ac_tag in 13880 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 13881 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 13882 esac 13883 ;; 13884 esac 13885 13886 ac_dir=`$as_dirname -- "$ac_file" || 13887$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13888 X"$ac_file" : 'X\(//\)[^/]' \| \ 13889 X"$ac_file" : 'X\(//\)$' \| \ 13890 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 13891$as_echo X"$ac_file" | 13892 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13893 s//\1/ 13894 q 13895 } 13896 /^X\(\/\/\)[^/].*/{ 13897 s//\1/ 13898 q 13899 } 13900 /^X\(\/\/\)$/{ 13901 s//\1/ 13902 q 13903 } 13904 /^X\(\/\).*/{ 13905 s//\1/ 13906 q 13907 } 13908 s/.*/./; q'` 13909 as_dir="$ac_dir"; as_fn_mkdir_p 13910 ac_builddir=. 13911 13912case "$ac_dir" in 13913.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 13914*) 13915 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 13916 # A ".." for each directory in $ac_dir_suffix. 13917 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 13918 case $ac_top_builddir_sub in 13919 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 13920 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 13921 esac ;; 13922esac 13923ac_abs_top_builddir=$ac_pwd 13924ac_abs_builddir=$ac_pwd$ac_dir_suffix 13925# for backward compatibility: 13926ac_top_builddir=$ac_top_build_prefix 13927 13928case $srcdir in 13929 .) # We are building in place. 13930 ac_srcdir=. 13931 ac_top_srcdir=$ac_top_builddir_sub 13932 ac_abs_top_srcdir=$ac_pwd ;; 13933 [\\/]* | ?:[\\/]* ) # Absolute name. 13934 ac_srcdir=$srcdir$ac_dir_suffix; 13935 ac_top_srcdir=$srcdir 13936 ac_abs_top_srcdir=$srcdir ;; 13937 *) # Relative name. 13938 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 13939 ac_top_srcdir=$ac_top_build_prefix$srcdir 13940 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 13941esac 13942ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 13943 13944 13945 case $ac_mode in 13946 :F) 13947 # 13948 # CONFIG_FILE 13949 # 13950 13951 case $INSTALL in 13952 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 13953 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 13954 esac 13955 ac_MKDIR_P=$MKDIR_P 13956 case $MKDIR_P in 13957 [\\/$]* | ?:[\\/]* ) ;; 13958 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 13959 esac 13960_ACEOF 13961 13962cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13963# If the template does not know about datarootdir, expand it. 13964# FIXME: This hack should be removed a few years after 2.60. 13965ac_datarootdir_hack=; ac_datarootdir_seen= 13966ac_sed_dataroot=' 13967/datarootdir/ { 13968 p 13969 q 13970} 13971/@datadir@/p 13972/@docdir@/p 13973/@infodir@/p 13974/@localedir@/p 13975/@mandir@/p' 13976case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 13977*datarootdir*) ac_datarootdir_seen=yes;; 13978*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 13979 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 13980$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 13981_ACEOF 13982cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13983 ac_datarootdir_hack=' 13984 s&@datadir@&$datadir&g 13985 s&@docdir@&$docdir&g 13986 s&@infodir@&$infodir&g 13987 s&@localedir@&$localedir&g 13988 s&@mandir@&$mandir&g 13989 s&\\\${datarootdir}&$datarootdir&g' ;; 13990esac 13991_ACEOF 13992 13993# Neutralize VPATH when `$srcdir' = `.'. 13994# Shell code in configure.ac might set extrasub. 13995# FIXME: do we really want to maintain this feature? 13996cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13997ac_sed_extra="$ac_vpsub 13998$extrasub 13999_ACEOF 14000cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14001:t 14002/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 14003s|@configure_input@|$ac_sed_conf_input|;t t 14004s&@top_builddir@&$ac_top_builddir_sub&;t t 14005s&@top_build_prefix@&$ac_top_build_prefix&;t t 14006s&@srcdir@&$ac_srcdir&;t t 14007s&@abs_srcdir@&$ac_abs_srcdir&;t t 14008s&@top_srcdir@&$ac_top_srcdir&;t t 14009s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 14010s&@builddir@&$ac_builddir&;t t 14011s&@abs_builddir@&$ac_abs_builddir&;t t 14012s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 14013s&@INSTALL@&$ac_INSTALL&;t t 14014s&@MKDIR_P@&$ac_MKDIR_P&;t t 14015$ac_datarootdir_hack 14016" 14017eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 14018 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14019 14020test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 14021 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 14022 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 14023 "$ac_tmp/out"`; test -z "$ac_out"; } && 14024 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 14025which seems to be undefined. Please make sure it is defined" >&5 14026$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 14027which seems to be undefined. Please make sure it is defined" >&2;} 14028 14029 rm -f "$ac_tmp/stdin" 14030 case $ac_file in 14031 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 14032 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 14033 esac \ 14034 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14035 ;; 14036 14037 14038 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 14039$as_echo "$as_me: executing $ac_file commands" >&6;} 14040 ;; 14041 esac 14042 14043 14044 case $ac_file$ac_mode in 14045 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 14046 # Autoconf 2.62 quotes --file arguments for eval, but not when files 14047 # are listed without --file. Let's play safe and only enable the eval 14048 # if we detect the quoting. 14049 case $CONFIG_FILES in 14050 *\'*) eval set x "$CONFIG_FILES" ;; 14051 *) set x $CONFIG_FILES ;; 14052 esac 14053 shift 14054 for mf 14055 do 14056 # Strip MF so we end up with the name of the file. 14057 mf=`echo "$mf" | sed -e 's/:.*$//'` 14058 # Check whether this is an Automake generated Makefile or not. 14059 # We used to match only the files named `Makefile.in', but 14060 # some people rename them; so instead we look at the file content. 14061 # Grep'ing the first line is not enough: some people post-process 14062 # each Makefile.in and add a new line on top of each file to say so. 14063 # Grep'ing the whole file is not good either: AIX grep has a line 14064 # limit of 2048, but all sed's we know have understand at least 4000. 14065 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 14066 dirpart=`$as_dirname -- "$mf" || 14067$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14068 X"$mf" : 'X\(//\)[^/]' \| \ 14069 X"$mf" : 'X\(//\)$' \| \ 14070 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 14071$as_echo X"$mf" | 14072 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14073 s//\1/ 14074 q 14075 } 14076 /^X\(\/\/\)[^/].*/{ 14077 s//\1/ 14078 q 14079 } 14080 /^X\(\/\/\)$/{ 14081 s//\1/ 14082 q 14083 } 14084 /^X\(\/\).*/{ 14085 s//\1/ 14086 q 14087 } 14088 s/.*/./; q'` 14089 else 14090 continue 14091 fi 14092 # Extract the definition of DEPDIR, am__include, and am__quote 14093 # from the Makefile without running `make'. 14094 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 14095 test -z "$DEPDIR" && continue 14096 am__include=`sed -n 's/^am__include = //p' < "$mf"` 14097 test -z "am__include" && continue 14098 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 14099 # When using ansi2knr, U may be empty or an underscore; expand it 14100 U=`sed -n 's/^U = //p' < "$mf"` 14101 # Find all dependency output files, they are included files with 14102 # $(DEPDIR) in their names. We invoke sed twice because it is the 14103 # simplest approach to changing $(DEPDIR) to its actual value in the 14104 # expansion. 14105 for file in `sed -n " 14106 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 14107 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 14108 # Make sure the directory exists. 14109 test -f "$dirpart/$file" && continue 14110 fdir=`$as_dirname -- "$file" || 14111$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14112 X"$file" : 'X\(//\)[^/]' \| \ 14113 X"$file" : 'X\(//\)$' \| \ 14114 X"$file" : 'X\(/\)' \| . 2>/dev/null || 14115$as_echo X"$file" | 14116 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14117 s//\1/ 14118 q 14119 } 14120 /^X\(\/\/\)[^/].*/{ 14121 s//\1/ 14122 q 14123 } 14124 /^X\(\/\/\)$/{ 14125 s//\1/ 14126 q 14127 } 14128 /^X\(\/\).*/{ 14129 s//\1/ 14130 q 14131 } 14132 s/.*/./; q'` 14133 as_dir=$dirpart/$fdir; as_fn_mkdir_p 14134 # echo "creating $dirpart/$file" 14135 echo '# dummy' > "$dirpart/$file" 14136 done 14137 done 14138} 14139 ;; 14140 "libtool":C) 14141 14142 # See if we are running on zsh, and set the options which allow our 14143 # commands through without removal of \ escapes. 14144 if test -n "${ZSH_VERSION+set}" ; then 14145 setopt NO_GLOB_SUBST 14146 fi 14147 14148 cfgfile="${ofile}T" 14149 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 14150 $RM "$cfgfile" 14151 14152 cat <<_LT_EOF >> "$cfgfile" 14153#! $SHELL 14154 14155# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 14156# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 14157# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 14158# NOTE: Changes made to this file will be lost: look at ltmain.sh. 14159# 14160# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 14161# 2006, 2007, 2008, 2009, 2010, 2011 Free Software 14162# Foundation, Inc. 14163# Written by Gordon Matzigkeit, 1996 14164# 14165# This file is part of GNU Libtool. 14166# 14167# GNU Libtool is free software; you can redistribute it and/or 14168# modify it under the terms of the GNU General Public License as 14169# published by the Free Software Foundation; either version 2 of 14170# the License, or (at your option) any later version. 14171# 14172# As a special exception to the GNU General Public License, 14173# if you distribute this file as part of a program or library that 14174# is built using GNU Libtool, you may include this file under the 14175# same distribution terms that you use for the rest of that program. 14176# 14177# GNU Libtool is distributed in the hope that it will be useful, 14178# but WITHOUT ANY WARRANTY; without even the implied warranty of 14179# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14180# GNU General Public License for more details. 14181# 14182# You should have received a copy of the GNU General Public License 14183# along with GNU Libtool; see the file COPYING. If not, a copy 14184# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 14185# obtained by writing to the Free Software Foundation, Inc., 14186# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 14187 14188 14189# The names of the tagged configurations supported by this script. 14190available_tags="" 14191 14192# ### BEGIN LIBTOOL CONFIG 14193 14194# Which release of libtool.m4 was used? 14195macro_version=$macro_version 14196macro_revision=$macro_revision 14197 14198# Whether or not to build shared libraries. 14199build_libtool_libs=$enable_shared 14200 14201# Whether or not to build static libraries. 14202build_old_libs=$enable_static 14203 14204# What type of objects to build. 14205pic_mode=$pic_mode 14206 14207# Whether or not to optimize for fast installation. 14208fast_install=$enable_fast_install 14209 14210# Shell to use when invoking shell scripts. 14211SHELL=$lt_SHELL 14212 14213# An echo program that protects backslashes. 14214ECHO=$lt_ECHO 14215 14216# The PATH separator for the build system. 14217PATH_SEPARATOR=$lt_PATH_SEPARATOR 14218 14219# The host system. 14220host_alias=$host_alias 14221host=$host 14222host_os=$host_os 14223 14224# The build system. 14225build_alias=$build_alias 14226build=$build 14227build_os=$build_os 14228 14229# A sed program that does not truncate output. 14230SED=$lt_SED 14231 14232# Sed that helps us avoid accidentally triggering echo(1) options like -n. 14233Xsed="\$SED -e 1s/^X//" 14234 14235# A grep program that handles long lines. 14236GREP=$lt_GREP 14237 14238# An ERE matcher. 14239EGREP=$lt_EGREP 14240 14241# A literal string matcher. 14242FGREP=$lt_FGREP 14243 14244# A BSD- or MS-compatible name lister. 14245NM=$lt_NM 14246 14247# Whether we need soft or hard links. 14248LN_S=$lt_LN_S 14249 14250# What is the maximum length of a command? 14251max_cmd_len=$max_cmd_len 14252 14253# Object file suffix (normally "o"). 14254objext=$ac_objext 14255 14256# Executable file suffix (normally ""). 14257exeext=$exeext 14258 14259# whether the shell understands "unset". 14260lt_unset=$lt_unset 14261 14262# turn spaces into newlines. 14263SP2NL=$lt_lt_SP2NL 14264 14265# turn newlines into spaces. 14266NL2SP=$lt_lt_NL2SP 14267 14268# convert \$build file names to \$host format. 14269to_host_file_cmd=$lt_cv_to_host_file_cmd 14270 14271# convert \$build files to toolchain format. 14272to_tool_file_cmd=$lt_cv_to_tool_file_cmd 14273 14274# An object symbol dumper. 14275OBJDUMP=$lt_OBJDUMP 14276 14277# Method to check whether dependent libraries are shared objects. 14278deplibs_check_method=$lt_deplibs_check_method 14279 14280# Command to use when deplibs_check_method = "file_magic". 14281file_magic_cmd=$lt_file_magic_cmd 14282 14283# How to find potential files when deplibs_check_method = "file_magic". 14284file_magic_glob=$lt_file_magic_glob 14285 14286# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 14287want_nocaseglob=$lt_want_nocaseglob 14288 14289# DLL creation program. 14290DLLTOOL=$lt_DLLTOOL 14291 14292# Command to associate shared and link libraries. 14293sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 14294 14295# The archiver. 14296AR=$lt_AR 14297 14298# Flags to create an archive. 14299AR_FLAGS=$lt_AR_FLAGS 14300 14301# How to feed a file listing to the archiver. 14302archiver_list_spec=$lt_archiver_list_spec 14303 14304# A symbol stripping program. 14305STRIP=$lt_STRIP 14306 14307# Commands used to install an old-style archive. 14308RANLIB=$lt_RANLIB 14309old_postinstall_cmds=$lt_old_postinstall_cmds 14310old_postuninstall_cmds=$lt_old_postuninstall_cmds 14311 14312# Whether to use a lock for old archive extraction. 14313lock_old_archive_extraction=$lock_old_archive_extraction 14314 14315# A C compiler. 14316LTCC=$lt_CC 14317 14318# LTCC compiler flags. 14319LTCFLAGS=$lt_CFLAGS 14320 14321# Take the output of nm and produce a listing of raw symbols and C names. 14322global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 14323 14324# Transform the output of nm in a proper C declaration. 14325global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 14326 14327# Transform the output of nm in a C name address pair. 14328global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 14329 14330# Transform the output of nm in a C name address pair when lib prefix is needed. 14331global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 14332 14333# Specify filename containing input files for \$NM. 14334nm_file_list_spec=$lt_nm_file_list_spec 14335 14336# The root where to search for dependent libraries,and in which our libraries should be installed. 14337lt_sysroot=$lt_sysroot 14338 14339# The name of the directory that contains temporary libtool files. 14340objdir=$objdir 14341 14342# Used to examine libraries when file_magic_cmd begins with "file". 14343MAGIC_CMD=$MAGIC_CMD 14344 14345# Must we lock files when doing compilation? 14346need_locks=$lt_need_locks 14347 14348# Manifest tool. 14349MANIFEST_TOOL=$lt_MANIFEST_TOOL 14350 14351# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 14352DSYMUTIL=$lt_DSYMUTIL 14353 14354# Tool to change global to local symbols on Mac OS X. 14355NMEDIT=$lt_NMEDIT 14356 14357# Tool to manipulate fat objects and archives on Mac OS X. 14358LIPO=$lt_LIPO 14359 14360# ldd/readelf like tool for Mach-O binaries on Mac OS X. 14361OTOOL=$lt_OTOOL 14362 14363# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 14364OTOOL64=$lt_OTOOL64 14365 14366# Old archive suffix (normally "a"). 14367libext=$libext 14368 14369# Shared library suffix (normally ".so"). 14370shrext_cmds=$lt_shrext_cmds 14371 14372# The commands to extract the exported symbol list from a shared archive. 14373extract_expsyms_cmds=$lt_extract_expsyms_cmds 14374 14375# Variables whose values should be saved in libtool wrapper scripts and 14376# restored at link time. 14377variables_saved_for_relink=$lt_variables_saved_for_relink 14378 14379# Do we need the "lib" prefix for modules? 14380need_lib_prefix=$need_lib_prefix 14381 14382# Do we need a version for libraries? 14383need_version=$need_version 14384 14385# Library versioning type. 14386version_type=$version_type 14387 14388# Shared library runtime path variable. 14389runpath_var=$runpath_var 14390 14391# Shared library path variable. 14392shlibpath_var=$shlibpath_var 14393 14394# Is shlibpath searched before the hard-coded library search path? 14395shlibpath_overrides_runpath=$shlibpath_overrides_runpath 14396 14397# Format of library name prefix. 14398libname_spec=$lt_libname_spec 14399 14400# List of archive names. First name is the real one, the rest are links. 14401# The last name is the one that the linker finds with -lNAME 14402library_names_spec=$lt_library_names_spec 14403 14404# The coded name of the library, if different from the real name. 14405soname_spec=$lt_soname_spec 14406 14407# Permission mode override for installation of shared libraries. 14408install_override_mode=$lt_install_override_mode 14409 14410# Command to use after installation of a shared archive. 14411postinstall_cmds=$lt_postinstall_cmds 14412 14413# Command to use after uninstallation of a shared archive. 14414postuninstall_cmds=$lt_postuninstall_cmds 14415 14416# Commands used to finish a libtool library installation in a directory. 14417finish_cmds=$lt_finish_cmds 14418 14419# As "finish_cmds", except a single script fragment to be evaled but 14420# not shown. 14421finish_eval=$lt_finish_eval 14422 14423# Whether we should hardcode library paths into libraries. 14424hardcode_into_libs=$hardcode_into_libs 14425 14426# Compile-time system search path for libraries. 14427sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 14428 14429# Run-time system search path for libraries. 14430sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 14431 14432# Whether dlopen is supported. 14433dlopen_support=$enable_dlopen 14434 14435# Whether dlopen of programs is supported. 14436dlopen_self=$enable_dlopen_self 14437 14438# Whether dlopen of statically linked programs is supported. 14439dlopen_self_static=$enable_dlopen_self_static 14440 14441# Commands to strip libraries. 14442old_striplib=$lt_old_striplib 14443striplib=$lt_striplib 14444 14445 14446# The linker used to build libraries. 14447LD=$lt_LD 14448 14449# How to create reloadable object files. 14450reload_flag=$lt_reload_flag 14451reload_cmds=$lt_reload_cmds 14452 14453# Commands used to build an old-style archive. 14454old_archive_cmds=$lt_old_archive_cmds 14455 14456# A language specific compiler. 14457CC=$lt_compiler 14458 14459# Is the compiler the GNU compiler? 14460with_gcc=$GCC 14461 14462# Compiler flag to turn off builtin functions. 14463no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 14464 14465# Additional compiler flags for building library objects. 14466pic_flag=$lt_lt_prog_compiler_pic 14467 14468# How to pass a linker flag through the compiler. 14469wl=$lt_lt_prog_compiler_wl 14470 14471# Compiler flag to prevent dynamic linking. 14472link_static_flag=$lt_lt_prog_compiler_static 14473 14474# Does compiler simultaneously support -c and -o options? 14475compiler_c_o=$lt_lt_cv_prog_compiler_c_o 14476 14477# Whether or not to add -lc for building shared libraries. 14478build_libtool_need_lc=$archive_cmds_need_lc 14479 14480# Whether or not to disallow shared libs when runtime libs are static. 14481allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 14482 14483# Compiler flag to allow reflexive dlopens. 14484export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 14485 14486# Compiler flag to generate shared objects directly from archives. 14487whole_archive_flag_spec=$lt_whole_archive_flag_spec 14488 14489# Whether the compiler copes with passing no objects directly. 14490compiler_needs_object=$lt_compiler_needs_object 14491 14492# Create an old-style archive from a shared archive. 14493old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 14494 14495# Create a temporary old-style archive to link instead of a shared archive. 14496old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 14497 14498# Commands used to build a shared archive. 14499archive_cmds=$lt_archive_cmds 14500archive_expsym_cmds=$lt_archive_expsym_cmds 14501 14502# Commands used to build a loadable module if different from building 14503# a shared archive. 14504module_cmds=$lt_module_cmds 14505module_expsym_cmds=$lt_module_expsym_cmds 14506 14507# Whether we are building with GNU ld or not. 14508with_gnu_ld=$lt_with_gnu_ld 14509 14510# Flag that allows shared libraries with undefined symbols to be built. 14511allow_undefined_flag=$lt_allow_undefined_flag 14512 14513# Flag that enforces no undefined symbols. 14514no_undefined_flag=$lt_no_undefined_flag 14515 14516# Flag to hardcode \$libdir into a binary during linking. 14517# This must work even if \$libdir does not exist 14518hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 14519 14520# Whether we need a single "-rpath" flag with a separated argument. 14521hardcode_libdir_separator=$lt_hardcode_libdir_separator 14522 14523# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 14524# DIR into the resulting binary. 14525hardcode_direct=$hardcode_direct 14526 14527# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 14528# DIR into the resulting binary and the resulting library dependency is 14529# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 14530# library is relocated. 14531hardcode_direct_absolute=$hardcode_direct_absolute 14532 14533# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 14534# into the resulting binary. 14535hardcode_minus_L=$hardcode_minus_L 14536 14537# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 14538# into the resulting binary. 14539hardcode_shlibpath_var=$hardcode_shlibpath_var 14540 14541# Set to "yes" if building a shared library automatically hardcodes DIR 14542# into the library and all subsequent libraries and executables linked 14543# against it. 14544hardcode_automatic=$hardcode_automatic 14545 14546# Set to yes if linker adds runtime paths of dependent libraries 14547# to runtime path list. 14548inherit_rpath=$inherit_rpath 14549 14550# Whether libtool must link a program against all its dependency libraries. 14551link_all_deplibs=$link_all_deplibs 14552 14553# Set to "yes" if exported symbols are required. 14554always_export_symbols=$always_export_symbols 14555 14556# The commands to list exported symbols. 14557export_symbols_cmds=$lt_export_symbols_cmds 14558 14559# Symbols that should not be listed in the preloaded symbols. 14560exclude_expsyms=$lt_exclude_expsyms 14561 14562# Symbols that must always be exported. 14563include_expsyms=$lt_include_expsyms 14564 14565# Commands necessary for linking programs (against libraries) with templates. 14566prelink_cmds=$lt_prelink_cmds 14567 14568# Commands necessary for finishing linking programs. 14569postlink_cmds=$lt_postlink_cmds 14570 14571# Specify filename containing input files. 14572file_list_spec=$lt_file_list_spec 14573 14574# How to hardcode a shared library path into an executable. 14575hardcode_action=$hardcode_action 14576 14577# ### END LIBTOOL CONFIG 14578 14579_LT_EOF 14580 14581 case $host_os in 14582 aix3*) 14583 cat <<\_LT_EOF >> "$cfgfile" 14584# AIX sometimes has problems with the GCC collect2 program. For some 14585# reason, if we set the COLLECT_NAMES environment variable, the problems 14586# vanish in a puff of smoke. 14587if test "X${COLLECT_NAMES+set}" != Xset; then 14588 COLLECT_NAMES= 14589 export COLLECT_NAMES 14590fi 14591_LT_EOF 14592 ;; 14593 esac 14594 14595 14596ltmain="$ac_aux_dir/ltmain.sh" 14597 14598 14599 # We use sed instead of cat because bash on DJGPP gets confused if 14600 # if finds mixed CR/LF and LF-only lines. Since sed operates in 14601 # text mode, it properly converts lines to CR/LF. This bash problem 14602 # is reportedly fixed, but why not run on old versions too? 14603 sed '$q' "$ltmain" >> "$cfgfile" \ 14604 || (rm -f "$cfgfile"; exit 1) 14605 14606 if test x"$xsi_shell" = xyes; then 14607 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ 14608func_dirname ()\ 14609{\ 14610\ case ${1} in\ 14611\ */*) func_dirname_result="${1%/*}${2}" ;;\ 14612\ * ) func_dirname_result="${3}" ;;\ 14613\ esac\ 14614} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ 14615 && mv -f "$cfgfile.tmp" "$cfgfile" \ 14616 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 14617test 0 -eq $? || _lt_function_replace_fail=: 14618 14619 14620 sed -e '/^func_basename ()$/,/^} # func_basename /c\ 14621func_basename ()\ 14622{\ 14623\ func_basename_result="${1##*/}"\ 14624} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ 14625 && mv -f "$cfgfile.tmp" "$cfgfile" \ 14626 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 14627test 0 -eq $? || _lt_function_replace_fail=: 14628 14629 14630 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ 14631func_dirname_and_basename ()\ 14632{\ 14633\ case ${1} in\ 14634\ */*) func_dirname_result="${1%/*}${2}" ;;\ 14635\ * ) func_dirname_result="${3}" ;;\ 14636\ esac\ 14637\ func_basename_result="${1##*/}"\ 14638} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ 14639 && mv -f "$cfgfile.tmp" "$cfgfile" \ 14640 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 14641test 0 -eq $? || _lt_function_replace_fail=: 14642 14643 14644 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ 14645func_stripname ()\ 14646{\ 14647\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ 14648\ # positional parameters, so assign one to ordinary parameter first.\ 14649\ func_stripname_result=${3}\ 14650\ func_stripname_result=${func_stripname_result#"${1}"}\ 14651\ func_stripname_result=${func_stripname_result%"${2}"}\ 14652} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ 14653 && mv -f "$cfgfile.tmp" "$cfgfile" \ 14654 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 14655test 0 -eq $? || _lt_function_replace_fail=: 14656 14657 14658 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ 14659func_split_long_opt ()\ 14660{\ 14661\ func_split_long_opt_name=${1%%=*}\ 14662\ func_split_long_opt_arg=${1#*=}\ 14663} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ 14664 && mv -f "$cfgfile.tmp" "$cfgfile" \ 14665 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 14666test 0 -eq $? || _lt_function_replace_fail=: 14667 14668 14669 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ 14670func_split_short_opt ()\ 14671{\ 14672\ func_split_short_opt_arg=${1#??}\ 14673\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ 14674} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ 14675 && mv -f "$cfgfile.tmp" "$cfgfile" \ 14676 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 14677test 0 -eq $? || _lt_function_replace_fail=: 14678 14679 14680 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ 14681func_lo2o ()\ 14682{\ 14683\ case ${1} in\ 14684\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ 14685\ *) func_lo2o_result=${1} ;;\ 14686\ esac\ 14687} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ 14688 && mv -f "$cfgfile.tmp" "$cfgfile" \ 14689 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 14690test 0 -eq $? || _lt_function_replace_fail=: 14691 14692 14693 sed -e '/^func_xform ()$/,/^} # func_xform /c\ 14694func_xform ()\ 14695{\ 14696 func_xform_result=${1%.*}.lo\ 14697} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ 14698 && mv -f "$cfgfile.tmp" "$cfgfile" \ 14699 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 14700test 0 -eq $? || _lt_function_replace_fail=: 14701 14702 14703 sed -e '/^func_arith ()$/,/^} # func_arith /c\ 14704func_arith ()\ 14705{\ 14706 func_arith_result=$(( $* ))\ 14707} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ 14708 && mv -f "$cfgfile.tmp" "$cfgfile" \ 14709 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 14710test 0 -eq $? || _lt_function_replace_fail=: 14711 14712 14713 sed -e '/^func_len ()$/,/^} # func_len /c\ 14714func_len ()\ 14715{\ 14716 func_len_result=${#1}\ 14717} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ 14718 && mv -f "$cfgfile.tmp" "$cfgfile" \ 14719 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 14720test 0 -eq $? || _lt_function_replace_fail=: 14721 14722fi 14723 14724if test x"$lt_shell_append" = xyes; then 14725 sed -e '/^func_append ()$/,/^} # func_append /c\ 14726func_append ()\ 14727{\ 14728 eval "${1}+=\\${2}"\ 14729} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ 14730 && mv -f "$cfgfile.tmp" "$cfgfile" \ 14731 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 14732test 0 -eq $? || _lt_function_replace_fail=: 14733 14734 14735 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ 14736func_append_quoted ()\ 14737{\ 14738\ func_quote_for_eval "${2}"\ 14739\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ 14740} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ 14741 && mv -f "$cfgfile.tmp" "$cfgfile" \ 14742 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 14743test 0 -eq $? || _lt_function_replace_fail=: 14744 14745 14746 # Save a `func_append' function call where possible by direct use of '+=' 14747 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ 14748 && mv -f "$cfgfile.tmp" "$cfgfile" \ 14749 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 14750 test 0 -eq $? || _lt_function_replace_fail=: 14751else 14752 # Save a `func_append' function call even when '+=' is not available 14753 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ 14754 && mv -f "$cfgfile.tmp" "$cfgfile" \ 14755 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 14756 test 0 -eq $? || _lt_function_replace_fail=: 14757fi 14758 14759if test x"$_lt_function_replace_fail" = x":"; then 14760 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 14761$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} 14762fi 14763 14764 14765 mv -f "$cfgfile" "$ofile" || 14766 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 14767 chmod +x "$ofile" 14768 14769 ;; 14770 14771 esac 14772done # for ac_tag 14773 14774 14775as_fn_exit 0 14776_ACEOF 14777ac_clean_files=$ac_clean_files_save 14778 14779test $ac_write_fail = 0 || 14780 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 14781 14782 14783# configure is writing to config.log, and then calls config.status. 14784# config.status does its own redirection, appending to config.log. 14785# Unfortunately, on DOS this fails, as config.log is still kept open 14786# by configure, so config.status won't be able to write to it; its 14787# output is simply discarded. So we exec the FD to /dev/null, 14788# effectively closing config.log, so it can be properly (re)opened and 14789# appended to by config.status. When coming back to configure, we 14790# need to make the FD available again. 14791if test "$no_create" != yes; then 14792 ac_cs_success=: 14793 ac_config_status_args= 14794 test "$silent" = yes && 14795 ac_config_status_args="$ac_config_status_args --quiet" 14796 exec 5>/dev/null 14797 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 14798 exec 5>>config.log 14799 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 14800 # would make configure fail if this is the last instruction. 14801 $ac_cs_success || as_fn_exit 1 14802fi 14803if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 14804 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 14805$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 14806fi 14807 14808